iking-web-ui-pro 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcessDetail/ik.index.es.js +609 -614
- package/dist/IkDescription/ik.index.es.js +445 -450
- package/dist/IkDetailPreviewFiles/ik.index.es.js +451 -456
- package/dist/IkPreviewFile/ik.index.es.js +443 -448
- package/dist/IkUploadFile/ik.index.es.js +143 -139
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/{index-CughgR_O.mjs → index-skQr1Jxv.mjs} +1406 -1407
- package/dist/{index.es-DgqPc8il.mjs → index.es--LLk46rW.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/{jspdf.es.min-CVLIg3IF.mjs → jspdf.es.min-DW3hZMv2.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as le, openBlock as T, createElementBlock as P, createElementVNode as A, computed as ue, inject as bt, useModel as
|
|
2
|
-
import { useLocale as Gl, useNamespace as Su, useZIndex as $l, ElIcon as Ae, EVENT_CODE as Ct, ElUpload as Pa, ElTooltip as Da, ElProgress as Zt, ElButton as Kl, ElMessage as
|
|
1
|
+
import { defineComponent as le, openBlock as T, createElementBlock as P, createElementVNode as A, computed as ue, inject as bt, useModel as yi, ref as Ce, reactive as Fl, watch as Bt, nextTick as Ht, Fragment as be, createBlock as Z, unref as C, createCommentVNode as B, createVNode as q, withCtx as Y, toDisplayString as ge, mergeModels as ft, resolveComponent as ai, normalizeStyle as De, normalizeClass as J, mergeProps as si, createTextVNode as lt, h as Nl, createSlots as Cu, renderSlot as Re, getCurrentScope as Bl, onScopeDispose as Hl, markRaw as Ia, effectScope as Ul, shallowRef as zl, onMounted as jl, Teleport as ku, Transition as wu, withModifiers as Pe, resolveDynamicComponent as Vl, renderList as Tu, withDirectives as ql, vShow as Wl } from "vue";
|
|
2
|
+
import { useLocale as Gl, useNamespace as Su, useZIndex as $l, ElIcon as Ae, EVENT_CODE as Ct, ElUpload as Pa, ElTooltip as Da, ElProgress as Zt, ElButton as Kl, ElMessage as Jt } from "element-plus";
|
|
3
3
|
import { buildUUID as Au, ikColor as Yl, paramType as La, _ as Li, ikFile as Xl } from "iking-utils-pro";
|
|
4
4
|
import Zl from "axios";
|
|
5
5
|
const nt = (a, s) => (a.install = (r) => {
|
|
@@ -803,7 +803,7 @@ const ne = (a, s) => {
|
|
|
803
803
|
)
|
|
804
804
|
])]));
|
|
805
805
|
}
|
|
806
|
-
}), Ri = nt(Nc),
|
|
806
|
+
}), Ri = nt(Nc), _i = (a, s) => {
|
|
807
807
|
const r = a.__vccOpts || a;
|
|
808
808
|
for (const [t, e] of s)
|
|
809
809
|
r[t] = e;
|
|
@@ -923,7 +923,7 @@ const ne = (a, s) => {
|
|
|
923
923
|
}),
|
|
924
924
|
emits: /* @__PURE__ */ ft(["close"], ["update:show"]),
|
|
925
925
|
setup(a, { emit: s }) {
|
|
926
|
-
const r = a, t = s, e =
|
|
926
|
+
const r = a, t = s, e = yi(a, "show"), i = ue(() => ({
|
|
927
927
|
name: "name",
|
|
928
928
|
url: "url",
|
|
929
929
|
suffix: "suffix",
|
|
@@ -1184,7 +1184,7 @@ const Gc = {
|
|
|
1184
1184
|
n("dblclick", f);
|
|
1185
1185
|
};
|
|
1186
1186
|
return (f, d) => {
|
|
1187
|
-
const g =
|
|
1187
|
+
const g = ai("el-tooltip"), v = ai("el-button");
|
|
1188
1188
|
return T(), P(
|
|
1189
1189
|
"i",
|
|
1190
1190
|
{
|
|
@@ -1289,7 +1289,7 @@ const Gc = {
|
|
|
1289
1289
|
],
|
|
1290
1290
|
64
|
|
1291
1291
|
/* STABLE_FRAGMENT */
|
|
1292
|
-
)) : (T(), Z(v,
|
|
1292
|
+
)) : (T(), Z(v, si({ key: 1 }, f.$attrs, {
|
|
1293
1293
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
1294
1294
|
}), {
|
|
1295
1295
|
default: Y(() => [
|
|
@@ -1308,7 +1308,7 @@ const Gc = {
|
|
|
1308
1308
|
);
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
|
-
}), Qc = /* @__PURE__ */
|
|
1311
|
+
}), Qc = /* @__PURE__ */ _i(Jc, [["__scopeId", "data-v-9ebb0a94"]]), de = nt(Qc), ef = /* @__PURE__ */ le({
|
|
1312
1312
|
__name: "CloseIcon",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
showBg: {
|
|
@@ -1338,7 +1338,7 @@ const Gc = {
|
|
|
1338
1338
|
/* CLASS */
|
|
1339
1339
|
));
|
|
1340
1340
|
}
|
|
1341
|
-
}), tf = /* @__PURE__ */
|
|
1341
|
+
}), tf = /* @__PURE__ */ _i(ef, [["__scopeId", "data-v-da9210e2"]]), nf = { class: "base-header" }, rf = /* @__PURE__ */ le({
|
|
1342
1342
|
__name: "IkBaseDialog",
|
|
1343
1343
|
props: /* @__PURE__ */ ft({
|
|
1344
1344
|
title: { default: "" },
|
|
@@ -1360,7 +1360,7 @@ const Gc = {
|
|
|
1360
1360
|
}),
|
|
1361
1361
|
emits: ["update:modelValue"],
|
|
1362
1362
|
setup(a) {
|
|
1363
|
-
const s = a, r =
|
|
1363
|
+
const s = a, r = yi(a, "modelValue"), t = Ce(s.fullscreen), e = le({
|
|
1364
1364
|
setup() {
|
|
1365
1365
|
return () => Nl(tf, {
|
|
1366
1366
|
showBg: s.showCloseBg,
|
|
@@ -1369,8 +1369,8 @@ const Gc = {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
1371
|
return (i, n) => {
|
|
1372
|
-
const o =
|
|
1373
|
-
return T(), Z(o,
|
|
1372
|
+
const o = ai("el-dialog");
|
|
1373
|
+
return T(), Z(o, si({
|
|
1374
1374
|
modelValue: r.value,
|
|
1375
1375
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => r.value = u),
|
|
1376
1376
|
"align-center": ""
|
|
@@ -1543,7 +1543,7 @@ var of = function(a, s) {
|
|
|
1543
1543
|
}, e.onerror = function(i) {
|
|
1544
1544
|
e.removeAttribute("loading"), t(i);
|
|
1545
1545
|
}, e.setAttribute("loading", ""), e;
|
|
1546
|
-
},
|
|
1546
|
+
}, Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1547
1547
|
function uf(a) {
|
|
1548
1548
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1549
1549
|
}
|
|
@@ -1566,7 +1566,7 @@ function Pu() {
|
|
|
1566
1566
|
return Mi = a, Mi;
|
|
1567
1567
|
}
|
|
1568
1568
|
var Fi, Ua;
|
|
1569
|
-
function
|
|
1569
|
+
function bi() {
|
|
1570
1570
|
if (Ua) return Fi;
|
|
1571
1571
|
Ua = 1;
|
|
1572
1572
|
var a = Pu();
|
|
@@ -1582,7 +1582,7 @@ var Ni, za;
|
|
|
1582
1582
|
function cf() {
|
|
1583
1583
|
if (za) return Ni;
|
|
1584
1584
|
za = 1;
|
|
1585
|
-
var a =
|
|
1585
|
+
var a = bi(), s = Array.prototype, r = s.splice;
|
|
1586
1586
|
function t(e) {
|
|
1587
1587
|
var i = this.__data__, n = a(i, e);
|
|
1588
1588
|
if (n < 0)
|
|
@@ -1596,7 +1596,7 @@ var Bi, ja;
|
|
|
1596
1596
|
function ff() {
|
|
1597
1597
|
if (ja) return Bi;
|
|
1598
1598
|
ja = 1;
|
|
1599
|
-
var a =
|
|
1599
|
+
var a = bi();
|
|
1600
1600
|
function s(r) {
|
|
1601
1601
|
var t = this.__data__, e = a(t, r);
|
|
1602
1602
|
return e < 0 ? void 0 : t[e][1];
|
|
@@ -1607,7 +1607,7 @@ var Hi, Va;
|
|
|
1607
1607
|
function hf() {
|
|
1608
1608
|
if (Va) return Hi;
|
|
1609
1609
|
Va = 1;
|
|
1610
|
-
var a =
|
|
1610
|
+
var a = bi();
|
|
1611
1611
|
function s(r) {
|
|
1612
1612
|
return a(this.__data__, r) > -1;
|
|
1613
1613
|
}
|
|
@@ -1617,7 +1617,7 @@ var Ui, qa;
|
|
|
1617
1617
|
function df() {
|
|
1618
1618
|
if (qa) return Ui;
|
|
1619
1619
|
qa = 1;
|
|
1620
|
-
var a =
|
|
1620
|
+
var a = bi();
|
|
1621
1621
|
function s(r, t) {
|
|
1622
1622
|
var e = this.__data__, i = a(e, r);
|
|
1623
1623
|
return i < 0 ? (++this.size, e.push([r, t])) : e[i][1] = t, this;
|
|
@@ -1625,7 +1625,7 @@ function df() {
|
|
|
1625
1625
|
return Ui = s, Ui;
|
|
1626
1626
|
}
|
|
1627
1627
|
var zi, Wa;
|
|
1628
|
-
function
|
|
1628
|
+
function Ci() {
|
|
1629
1629
|
if (Wa) return zi;
|
|
1630
1630
|
Wa = 1;
|
|
1631
1631
|
var a = lf(), s = cf(), r = ff(), t = hf(), e = df();
|
|
@@ -1642,7 +1642,7 @@ var ji, Ga;
|
|
|
1642
1642
|
function gf() {
|
|
1643
1643
|
if (Ga) return ji;
|
|
1644
1644
|
Ga = 1;
|
|
1645
|
-
var a =
|
|
1645
|
+
var a = Ci();
|
|
1646
1646
|
function s() {
|
|
1647
1647
|
this.__data__ = new a(), this.size = 0;
|
|
1648
1648
|
}
|
|
@@ -1680,7 +1680,7 @@ var Gi, Xa;
|
|
|
1680
1680
|
function Du() {
|
|
1681
1681
|
if (Xa) return Gi;
|
|
1682
1682
|
Xa = 1;
|
|
1683
|
-
var a = typeof
|
|
1683
|
+
var a = typeof Qt == "object" && Qt && Qt.Object === Object && Qt;
|
|
1684
1684
|
return Gi = a, Gi;
|
|
1685
1685
|
}
|
|
1686
1686
|
var $i, Za;
|
|
@@ -1725,7 +1725,7 @@ function _f() {
|
|
|
1725
1725
|
return Xi = r, Xi;
|
|
1726
1726
|
}
|
|
1727
1727
|
var Zi, ts;
|
|
1728
|
-
function
|
|
1728
|
+
function ki() {
|
|
1729
1729
|
if (ts) return Zi;
|
|
1730
1730
|
ts = 1;
|
|
1731
1731
|
var a = ia(), s = yf(), r = _f(), t = "[object Null]", e = "[object Undefined]", i = a ? a.toStringTag : void 0;
|
|
@@ -1748,7 +1748,7 @@ var Qi, ns;
|
|
|
1748
1748
|
function Lu() {
|
|
1749
1749
|
if (ns) return Qi;
|
|
1750
1750
|
ns = 1;
|
|
1751
|
-
var a =
|
|
1751
|
+
var a = ki(), s = jt(), r = "[object AsyncFunction]", t = "[object Function]", e = "[object GeneratorFunction]", i = "[object Proxy]";
|
|
1752
1752
|
function n(o) {
|
|
1753
1753
|
if (!s(o))
|
|
1754
1754
|
return !1;
|
|
@@ -1840,7 +1840,7 @@ function na() {
|
|
|
1840
1840
|
return on = r, on;
|
|
1841
1841
|
}
|
|
1842
1842
|
var un, fs;
|
|
1843
|
-
function
|
|
1843
|
+
function wi() {
|
|
1844
1844
|
if (fs) return un;
|
|
1845
1845
|
fs = 1;
|
|
1846
1846
|
var a = ht(), s = a(Object, "create");
|
|
@@ -1850,7 +1850,7 @@ var ln, hs;
|
|
|
1850
1850
|
function Tf() {
|
|
1851
1851
|
if (hs) return ln;
|
|
1852
1852
|
hs = 1;
|
|
1853
|
-
var a =
|
|
1853
|
+
var a = wi();
|
|
1854
1854
|
function s() {
|
|
1855
1855
|
this.__data__ = a ? a(null) : {}, this.size = 0;
|
|
1856
1856
|
}
|
|
@@ -1870,7 +1870,7 @@ var fn, gs;
|
|
|
1870
1870
|
function Af() {
|
|
1871
1871
|
if (gs) return fn;
|
|
1872
1872
|
gs = 1;
|
|
1873
|
-
var a =
|
|
1873
|
+
var a = wi(), s = "__lodash_hash_undefined__", r = Object.prototype, t = r.hasOwnProperty;
|
|
1874
1874
|
function e(i) {
|
|
1875
1875
|
var n = this.__data__;
|
|
1876
1876
|
if (a) {
|
|
@@ -1885,7 +1885,7 @@ var hn, vs;
|
|
|
1885
1885
|
function Ef() {
|
|
1886
1886
|
if (vs) return hn;
|
|
1887
1887
|
vs = 1;
|
|
1888
|
-
var a =
|
|
1888
|
+
var a = wi(), s = Object.prototype, r = s.hasOwnProperty;
|
|
1889
1889
|
function t(e) {
|
|
1890
1890
|
var i = this.__data__;
|
|
1891
1891
|
return a ? i[e] !== void 0 : r.call(i, e);
|
|
@@ -1896,7 +1896,7 @@ var dn, ps;
|
|
|
1896
1896
|
function xf() {
|
|
1897
1897
|
if (ps) return dn;
|
|
1898
1898
|
ps = 1;
|
|
1899
|
-
var a =
|
|
1899
|
+
var a = wi(), s = "__lodash_hash_undefined__";
|
|
1900
1900
|
function r(t, e) {
|
|
1901
1901
|
var i = this.__data__;
|
|
1902
1902
|
return this.size += this.has(t) ? 0 : 1, i[t] = a && e === void 0 ? s : e, this;
|
|
@@ -1921,7 +1921,7 @@ var vn, ys;
|
|
|
1921
1921
|
function Pf() {
|
|
1922
1922
|
if (ys) return vn;
|
|
1923
1923
|
ys = 1;
|
|
1924
|
-
var a = If(), s =
|
|
1924
|
+
var a = If(), s = Ci(), r = na();
|
|
1925
1925
|
function t() {
|
|
1926
1926
|
this.size = 0, this.__data__ = {
|
|
1927
1927
|
hash: new a(),
|
|
@@ -1942,7 +1942,7 @@ function Df() {
|
|
|
1942
1942
|
return pn = a, pn;
|
|
1943
1943
|
}
|
|
1944
1944
|
var mn, bs;
|
|
1945
|
-
function
|
|
1945
|
+
function Ti() {
|
|
1946
1946
|
if (bs) return mn;
|
|
1947
1947
|
bs = 1;
|
|
1948
1948
|
var a = Df();
|
|
@@ -1956,7 +1956,7 @@ var yn, Cs;
|
|
|
1956
1956
|
function Lf() {
|
|
1957
1957
|
if (Cs) return yn;
|
|
1958
1958
|
Cs = 1;
|
|
1959
|
-
var a =
|
|
1959
|
+
var a = Ti();
|
|
1960
1960
|
function s(r) {
|
|
1961
1961
|
var t = a(this, r).delete(r);
|
|
1962
1962
|
return this.size -= t ? 1 : 0, t;
|
|
@@ -1967,7 +1967,7 @@ var _n, ks;
|
|
|
1967
1967
|
function Rf() {
|
|
1968
1968
|
if (ks) return _n;
|
|
1969
1969
|
ks = 1;
|
|
1970
|
-
var a =
|
|
1970
|
+
var a = Ti();
|
|
1971
1971
|
function s(r) {
|
|
1972
1972
|
return a(this, r).get(r);
|
|
1973
1973
|
}
|
|
@@ -1977,7 +1977,7 @@ var bn, ws;
|
|
|
1977
1977
|
function Of() {
|
|
1978
1978
|
if (ws) return bn;
|
|
1979
1979
|
ws = 1;
|
|
1980
|
-
var a =
|
|
1980
|
+
var a = Ti();
|
|
1981
1981
|
function s(r) {
|
|
1982
1982
|
return a(this, r).has(r);
|
|
1983
1983
|
}
|
|
@@ -1987,7 +1987,7 @@ var Cn, Ts;
|
|
|
1987
1987
|
function Mf() {
|
|
1988
1988
|
if (Ts) return Cn;
|
|
1989
1989
|
Ts = 1;
|
|
1990
|
-
var a =
|
|
1990
|
+
var a = Ti();
|
|
1991
1991
|
function s(r, t) {
|
|
1992
1992
|
var e = a(this, r), i = e.size;
|
|
1993
1993
|
return e.set(r, t), this.size += e.size == i ? 0 : 1, this;
|
|
@@ -2012,7 +2012,7 @@ var wn, As;
|
|
|
2012
2012
|
function Nf() {
|
|
2013
2013
|
if (As) return wn;
|
|
2014
2014
|
As = 1;
|
|
2015
|
-
var a =
|
|
2015
|
+
var a = Ci(), s = na(), r = Ff(), t = 200;
|
|
2016
2016
|
function e(i, n) {
|
|
2017
2017
|
var o = this.__data__;
|
|
2018
2018
|
if (o instanceof a) {
|
|
@@ -2029,7 +2029,7 @@ var Tn, Es;
|
|
|
2029
2029
|
function Bf() {
|
|
2030
2030
|
if (Es) return Tn;
|
|
2031
2031
|
Es = 1;
|
|
2032
|
-
var a =
|
|
2032
|
+
var a = Ci(), s = gf(), r = vf(), t = pf(), e = mf(), i = Nf();
|
|
2033
2033
|
function n(o) {
|
|
2034
2034
|
var u = this.__data__ = new a(o);
|
|
2035
2035
|
this.size = u.size;
|
|
@@ -2087,7 +2087,7 @@ function Mu() {
|
|
|
2087
2087
|
return xn = e, xn;
|
|
2088
2088
|
}
|
|
2089
2089
|
var In, Ls;
|
|
2090
|
-
function
|
|
2090
|
+
function Si() {
|
|
2091
2091
|
if (Ls) return In;
|
|
2092
2092
|
Ls = 1;
|
|
2093
2093
|
var a = Mu(), s = Ou();
|
|
@@ -2126,7 +2126,7 @@ var Ln, Ms;
|
|
|
2126
2126
|
function jf() {
|
|
2127
2127
|
if (Ms) return Ln;
|
|
2128
2128
|
Ms = 1;
|
|
2129
|
-
var a =
|
|
2129
|
+
var a = ki(), s = Vt(), r = "[object Arguments]";
|
|
2130
2130
|
function t(e) {
|
|
2131
2131
|
return s(e) && a(e) == r;
|
|
2132
2132
|
}
|
|
@@ -2192,7 +2192,7 @@ var Bn, js;
|
|
|
2192
2192
|
function Gf() {
|
|
2193
2193
|
if (js) return Bn;
|
|
2194
2194
|
js = 1;
|
|
2195
|
-
var a =
|
|
2195
|
+
var a = ki(), s = Nu(), r = Vt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[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]", x = "[object DataView]", w = "[object Float32Array]", k = "[object Float64Array]", M = "[object Int8Array]", L = "[object Int16Array]", N = "[object Int32Array]", ie = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", G = "[object Uint16Array]", H = "[object Uint32Array]", j = {};
|
|
2196
2196
|
j[w] = j[k] = j[M] = j[L] = j[N] = j[ie] = j[ee] = j[G] = j[H] = !0, j[t] = j[e] = j[p] = j[i] = j[x] = j[n] = j[o] = j[u] = j[l] = j[c] = j[f] = j[d] = j[g] = j[v] = j[m] = !1;
|
|
2197
2197
|
function fe(ce) {
|
|
2198
2198
|
return r(ce) && s(ce.length) && !!j[a(ce)];
|
|
@@ -2317,7 +2317,7 @@ var Kn, Qs;
|
|
|
2317
2317
|
function Xf() {
|
|
2318
2318
|
if (Qs) return Kn;
|
|
2319
2319
|
Qs = 1;
|
|
2320
|
-
var a =
|
|
2320
|
+
var a = Si(), s = ua();
|
|
2321
2321
|
function r(t, e) {
|
|
2322
2322
|
return t && a(e, s(e), t);
|
|
2323
2323
|
}
|
|
@@ -2365,7 +2365,7 @@ var Jn, no;
|
|
|
2365
2365
|
function Qf() {
|
|
2366
2366
|
if (no) return Jn;
|
|
2367
2367
|
no = 1;
|
|
2368
|
-
var a =
|
|
2368
|
+
var a = Si(), s = la();
|
|
2369
2369
|
function r(t, e) {
|
|
2370
2370
|
return t && a(e, s(e), t);
|
|
2371
2371
|
}
|
|
@@ -2435,7 +2435,7 @@ var nr, lo;
|
|
|
2435
2435
|
function nh() {
|
|
2436
2436
|
if (lo) return nr;
|
|
2437
2437
|
lo = 1;
|
|
2438
|
-
var a =
|
|
2438
|
+
var a = Si(), s = ca();
|
|
2439
2439
|
function r(t, e) {
|
|
2440
2440
|
return a(t, s(t), e);
|
|
2441
2441
|
}
|
|
@@ -2474,7 +2474,7 @@ var or, go;
|
|
|
2474
2474
|
function rh() {
|
|
2475
2475
|
if (go) return or;
|
|
2476
2476
|
go = 1;
|
|
2477
|
-
var a =
|
|
2477
|
+
var a = Si(), s = qu();
|
|
2478
2478
|
function r(t, e) {
|
|
2479
2479
|
return a(t, s(t), e);
|
|
2480
2480
|
}
|
|
@@ -2543,7 +2543,7 @@ var vr, ko;
|
|
|
2543
2543
|
function fa() {
|
|
2544
2544
|
if (ko) return vr;
|
|
2545
2545
|
ko = 1;
|
|
2546
|
-
var a = oh(), s = na(), r = uh(), t = lh(), e = ch(), i =
|
|
2546
|
+
var a = oh(), s = na(), r = uh(), t = lh(), e = ch(), i = ki(), n = Ru(), o = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", g = n(a), v = n(s), m = n(r), p = n(t), x = n(e), w = i;
|
|
2547
2547
|
return (a && w(new a(new ArrayBuffer(1))) != d || s && w(new s()) != o || r && w(r.resolve()) != l || t && w(new t()) != c || e && w(new e()) != f) && (w = function(k) {
|
|
2548
2548
|
var M = i(k), L = M == u ? k.constructor : void 0, N = L ? n(L) : "";
|
|
2549
2549
|
if (N)
|
|
@@ -3043,7 +3043,7 @@ function Fh(a) {
|
|
|
3043
3043
|
return (s = r == null ? void 0 : r.$el) != null ? s : r;
|
|
3044
3044
|
}
|
|
3045
3045
|
const Nh = Gu ? window : void 0;
|
|
3046
|
-
function
|
|
3046
|
+
function ei(...a) {
|
|
3047
3047
|
let s, r, t, e;
|
|
3048
3048
|
if (Lh(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, s = Nh) : [s, r, t, e] = a, !s)
|
|
3049
3049
|
return Rh;
|
|
@@ -3256,7 +3256,7 @@ const Vh = {
|
|
|
3256
3256
|
});
|
|
3257
3257
|
});
|
|
3258
3258
|
d.run(() => {
|
|
3259
|
-
|
|
3259
|
+
ei(document, "keydown", I), ei(document, "wheel", y);
|
|
3260
3260
|
});
|
|
3261
3261
|
}
|
|
3262
3262
|
function j() {
|
|
@@ -3277,8 +3277,8 @@ const Vh = {
|
|
|
3277
3277
|
offsetX: y + Ne.pageX - se,
|
|
3278
3278
|
offsetY: D + Ne.pageY - he
|
|
3279
3279
|
};
|
|
3280
|
-
}), Te =
|
|
3281
|
-
|
|
3280
|
+
}), Te = ei(document, "mousemove", ve);
|
|
3281
|
+
ei(document, "mouseup", () => {
|
|
3282
3282
|
Te();
|
|
3283
3283
|
}), I.preventDefault();
|
|
3284
3284
|
}
|
|
@@ -4558,7 +4558,7 @@ var Mr = {
|
|
|
4558
4558
|
4: 5104,
|
|
4559
4559
|
5: 5105,
|
|
4560
4560
|
6: 5106
|
|
4561
|
-
},
|
|
4561
|
+
}, oi = /* @__PURE__ */ O(
|
|
4562
4562
|
function a(s) {
|
|
4563
4563
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
4564
4564
|
errorType: "",
|
|
@@ -4600,7 +4600,7 @@ var Mr = {
|
|
|
4600
4600
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
4601
4601
|
}
|
|
4602
4602
|
}
|
|
4603
|
-
), Ie = "play",
|
|
4603
|
+
), Ie = "play", Ai = "playing", dt = "ended", It = "pause", qt = "error", Ei = "seeking", qe = "seeked", xe = "timeupdate", Wt = "waiting", Ve = "canplay", gd = "canplaythrough", Ge = "durationchange", Qu = "volumechange", We = "loadeddata", vd = "loadedmetadata", el = "ratechange", tl = "progress", va = "loadstart", gt = "emptied", pd = "stalled", md = "suspend", yd = "abort", _d = "bufferedChange", pa = "focus", il = "blur", ma = "ready", nl = "urlNull", ct = "autoplay_started", ya = "autoplay_was_prevented", xi = "complete", ui = "replay", _a = "destroy", Ii = "urlchange", Jr = "download_speed_change", rl = "leaveplayer", al = "enterplayer", sl = "loading", je = "fullscreen_change", li = "cssFullscreen_change", ci = "mini_state_change", ba = "definition_change", bd = "before_definition_change", Qr = "after_definition_change", Cd = "SEI_PARSED", kd = "retry", tt = "video_resize", ea = "pip_change", ol = "rotate", ul = "screenShot", fi = "playnext", ll = "shortcut", cl = "xglog", hi = "user_action", Pi = "reset", fl = "source_error", hl = "source_success", wd = "switch_subtitle", dl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], gl = {
|
|
4604
4604
|
STATS_INFO: "stats_info",
|
|
4605
4605
|
STATS_DOWNLOAD: "stats_download",
|
|
4606
4606
|
STATS_RESET: "stats_reset"
|
|
@@ -4615,8 +4615,8 @@ const Td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4615
4615
|
BUFFER_CHANGE: _d,
|
|
4616
4616
|
CANPLAY: Ve,
|
|
4617
4617
|
CANPLAY_THROUGH: gd,
|
|
4618
|
-
COMPLETE:
|
|
4619
|
-
CSS_FULLSCREEN_CHANGE:
|
|
4618
|
+
COMPLETE: xi,
|
|
4619
|
+
CSS_FULLSCREEN_CHANGE: li,
|
|
4620
4620
|
DEFINITION_CHANGE: ba,
|
|
4621
4621
|
DESTROY: _a,
|
|
4622
4622
|
DOWNLOAD_SPEED_CHANGE: Jr,
|
|
@@ -4632,24 +4632,24 @@ const Td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4632
4632
|
LOADED_METADATA: vd,
|
|
4633
4633
|
LOADING: sl,
|
|
4634
4634
|
LOAD_START: va,
|
|
4635
|
-
MINI_STATE_CHANGE:
|
|
4635
|
+
MINI_STATE_CHANGE: ci,
|
|
4636
4636
|
PAUSE: It,
|
|
4637
4637
|
PIP_CHANGE: ea,
|
|
4638
4638
|
PLAY: Ie,
|
|
4639
4639
|
PLAYER_BLUR: il,
|
|
4640
4640
|
PLAYER_FOCUS: pa,
|
|
4641
|
-
PLAYING:
|
|
4642
|
-
PLAYNEXT:
|
|
4641
|
+
PLAYING: Ai,
|
|
4642
|
+
PLAYNEXT: fi,
|
|
4643
4643
|
PROGRESS: tl,
|
|
4644
4644
|
RATE_CHANGE: el,
|
|
4645
4645
|
READY: ma,
|
|
4646
|
-
REPLAY:
|
|
4647
|
-
RESET:
|
|
4646
|
+
REPLAY: ui,
|
|
4647
|
+
RESET: Pi,
|
|
4648
4648
|
RETRY: kd,
|
|
4649
4649
|
ROTATE: ol,
|
|
4650
4650
|
SCREEN_SHOT: ul,
|
|
4651
4651
|
SEEKED: qe,
|
|
4652
|
-
SEEKING:
|
|
4652
|
+
SEEKING: Ei,
|
|
4653
4653
|
SEI_PARSED: Cd,
|
|
4654
4654
|
SHORTCUT: ll,
|
|
4655
4655
|
SOURCE_ERROR: fl,
|
|
@@ -4659,9 +4659,9 @@ const Td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4659
4659
|
SUSPEND: md,
|
|
4660
4660
|
SWITCH_SUBTITLE: wd,
|
|
4661
4661
|
TIME_UPDATE: xe,
|
|
4662
|
-
URL_CHANGE:
|
|
4662
|
+
URL_CHANGE: Ii,
|
|
4663
4663
|
URL_NULL: nl,
|
|
4664
|
-
USER_ACTION:
|
|
4664
|
+
USER_ACTION: hi,
|
|
4665
4665
|
VIDEO_EVENTS: dl,
|
|
4666
4666
|
VIDEO_RESIZE: tt,
|
|
4667
4667
|
VOLUME_CHANGE: Qu,
|
|
@@ -4802,7 +4802,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
4802
4802
|
u ? u.error(f, g) : n.errorHandler("error", g);
|
|
4803
4803
|
}
|
|
4804
4804
|
var v = Ko[4];
|
|
4805
|
-
n.emit(fl, new
|
|
4805
|
+
n.emit(fl, new oi(n, {
|
|
4806
4806
|
errorType: v,
|
|
4807
4807
|
errorCode: 4,
|
|
4808
4808
|
errorMessage: "sources_load_error",
|
|
@@ -4839,7 +4839,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
4839
4839
|
this.media.currentSrc || this.media.srcObject || (u = "empty_src", n = {
|
|
4840
4840
|
code: 6,
|
|
4841
4841
|
message: u
|
|
4842
|
-
}), this.emit(e, new
|
|
4842
|
+
}), this.emit(e, new oi(this, {
|
|
4843
4843
|
errorType: o,
|
|
4844
4844
|
errorCode: n.code,
|
|
4845
4845
|
errorMessage: n.message || "",
|
|
@@ -5060,7 +5060,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
5060
5060
|
},
|
|
5061
5061
|
set: function(e) {
|
|
5062
5062
|
if (this.media) {
|
|
5063
|
-
if (this.emit(
|
|
5063
|
+
if (this.emit(Ii, e), this.emit(Wt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
|
|
5064
5064
|
this.onWaiting();
|
|
5065
5065
|
return;
|
|
5066
5066
|
}
|
|
@@ -5203,7 +5203,7 @@ var Ad = /* @__PURE__ */ (function(a) {
|
|
|
5203
5203
|
}
|
|
5204
5204
|
}]), a;
|
|
5205
5205
|
})(), Xo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Zo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Jo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], et = "data-xgplayerid";
|
|
5206
|
-
function
|
|
5206
|
+
function ti(a, s, r) {
|
|
5207
5207
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
5208
5208
|
e[i - 3] = arguments[i];
|
|
5209
5209
|
var n = s.call.apply(s, [a].concat(e));
|
|
@@ -5213,7 +5213,7 @@ function ei(a, s, r) {
|
|
|
5213
5213
|
r.call.apply(r, [a].concat(u));
|
|
5214
5214
|
}) : r.call.apply(r, [a].concat(e)));
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function di(a, s) {
|
|
5217
5217
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
5218
5218
|
pre: null,
|
|
5219
5219
|
next: null
|
|
@@ -5231,15 +5231,15 @@ function hi(a, s) {
|
|
|
5231
5231
|
try {
|
|
5232
5232
|
var n = Le.apply(void 0, [this, a, s].concat(Array.prototype.slice.call(arguments)));
|
|
5233
5233
|
n ? n.then ? n.then(function(o) {
|
|
5234
|
-
o !== !1 &&
|
|
5234
|
+
o !== !1 && ti.apply(void 0, [e, s, r.next].concat(Fe(t)));
|
|
5235
5235
|
}).catch(function(o) {
|
|
5236
5236
|
throw o;
|
|
5237
|
-
}) :
|
|
5237
|
+
}) : ti.apply(void 0, [this, s, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && ti.apply(void 0, [this, s, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
5238
5238
|
} catch (o) {
|
|
5239
5239
|
throw o.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(o.message), o;
|
|
5240
5240
|
}
|
|
5241
5241
|
else
|
|
5242
|
-
|
|
5242
|
+
ti.apply(void 0, [this, s, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
5243
5243
|
}).bind(this);
|
|
5244
5244
|
}
|
|
5245
5245
|
function pl(a, s) {
|
|
@@ -5251,12 +5251,12 @@ function pl(a, s) {
|
|
|
5251
5251
|
return e;
|
|
5252
5252
|
return -1;
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function gi(a, s) {
|
|
5255
5255
|
var r = this.__hooks;
|
|
5256
5256
|
if (r)
|
|
5257
5257
|
return r.hasOwnProperty(a) ? (Array.isArray(r[a]) || (r[a] = []), pl.call(this, a, s) === -1 && r[a].push(s), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
5258
5258
|
}
|
|
5259
|
-
function
|
|
5259
|
+
function vi(a, s) {
|
|
5260
5260
|
var r = this.__hooks;
|
|
5261
5261
|
if (r)
|
|
5262
5262
|
if (Array.isArray(r[a])) {
|
|
@@ -5454,21 +5454,21 @@ var it = /* @__PURE__ */ (function() {
|
|
|
5454
5454
|
}, {
|
|
5455
5455
|
key: "hook",
|
|
5456
5456
|
value: function(r, t) {
|
|
5457
|
-
return
|
|
5457
|
+
return di.call.apply(di, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5458
5458
|
}
|
|
5459
5459
|
}, {
|
|
5460
5460
|
key: "useHooks",
|
|
5461
5461
|
value: function(r, t) {
|
|
5462
5462
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
5463
5463
|
i[n - 2] = arguments[n];
|
|
5464
|
-
return
|
|
5464
|
+
return gi.call.apply(gi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5465
5465
|
}
|
|
5466
5466
|
}, {
|
|
5467
5467
|
key: "removeHooks",
|
|
5468
5468
|
value: function(r, t) {
|
|
5469
5469
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
5470
5470
|
i[n - 2] = arguments[n];
|
|
5471
|
-
return
|
|
5471
|
+
return vi.call.apply(vi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
5472
5472
|
}
|
|
5473
5473
|
}, {
|
|
5474
5474
|
key: "registerPlugin",
|
|
@@ -6347,7 +6347,7 @@ var Hd = function(s, r) {
|
|
|
6347
6347
|
};
|
|
6348
6348
|
Object.keys(l).map(function(f) {
|
|
6349
6349
|
e.root.style[f] = l[f];
|
|
6350
|
-
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(
|
|
6350
|
+
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(ci, function(f) {
|
|
6351
6351
|
f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
|
|
6352
6352
|
});
|
|
6353
6353
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -6721,7 +6721,7 @@ function qd(a) {
|
|
|
6721
6721
|
}
|
|
6722
6722
|
return null;
|
|
6723
6723
|
}
|
|
6724
|
-
var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null,
|
|
6724
|
+
var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Di = /* @__PURE__ */ (function(a) {
|
|
6725
6725
|
U(r, a);
|
|
6726
6726
|
var s = z(r);
|
|
6727
6727
|
function r(t) {
|
|
@@ -6739,7 +6739,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6739
6739
|
n.resize();
|
|
6740
6740
|
}, 100);
|
|
6741
6741
|
}, k = h.getFullScreenEl();
|
|
6742
|
-
n._fullActionFrom ? n._fullActionFrom = "" : n.emit(
|
|
6742
|
+
n._fullActionFrom ? n._fullActionFrom = "" : n.emit(hi, {
|
|
6743
6743
|
eventType: "system",
|
|
6744
6744
|
action: "switch_fullscreen",
|
|
6745
6745
|
pluginName: "player",
|
|
@@ -6825,7 +6825,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6825
6825
|
if (n && n.nodeType === 1)
|
|
6826
6826
|
this.root = n;
|
|
6827
6827
|
else
|
|
6828
|
-
return this.emit(qt, new
|
|
6828
|
+
return this.emit(qt, new oi("use", this.config.vid, {
|
|
6829
6829
|
line: 32,
|
|
6830
6830
|
handle: "Constructor",
|
|
6831
6831
|
msg: "container id can't be empty"
|
|
@@ -6902,7 +6902,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
6902
6902
|
K.logInfo("_startInit readyState", u), this.config.autoplay && (!h.isMSE(this.media) && this.load(), ($.os.isIpad || $.os.isPhone) && this.mediaPlay());
|
|
6903
6903
|
var l = this.config.startTime;
|
|
6904
6904
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ve, this.canPlayFunc), (!this.hasStart || this.state < X.ATTACHED) && me.afterInit(this), this.hasStart = !0, this.setState(X.ATTACHED), h.setTimeout(this, function() {
|
|
6905
|
-
i.emit(
|
|
6905
|
+
i.emit(xi);
|
|
6906
6906
|
}, 0);
|
|
6907
6907
|
}
|
|
6908
6908
|
}
|
|
@@ -7203,7 +7203,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7203
7203
|
var e = this, i = E.NOT_ALLOW_AUTOPLAY, n = E.PLAYING, o = E.NO_START, u = E.PAUSED, l = E.REPLAY, c = E.ENTER, f = E.ENDED, d = E.ERROR, g = E.LOADING, v = [i, n, o, u, l, c, f, d, g];
|
|
7204
7204
|
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) {
|
|
7205
7205
|
e.removeClass(m);
|
|
7206
|
-
}), this.addClass(E.NO_START), this.emit(
|
|
7206
|
+
}), this.addClass(E.NO_START), this.emit(Pi);
|
|
7207
7207
|
}
|
|
7208
7208
|
}, {
|
|
7209
7209
|
key: "reset",
|
|
@@ -7249,7 +7249,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7249
7249
|
i && i.catch && i.catch(function(n) {
|
|
7250
7250
|
console.log(n);
|
|
7251
7251
|
});
|
|
7252
|
-
}), e.emit(
|
|
7252
|
+
}), e.emit(ui), e.onPlay();
|
|
7253
7253
|
});
|
|
7254
7254
|
}
|
|
7255
7255
|
}, {
|
|
@@ -7334,7 +7334,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7334
7334
|
var i = e ? "".concat(E.INNER_FULLSCREEN, " ").concat(E.CSS_FULLSCREEN) : E.CSS_FULLSCREEN;
|
|
7335
7335
|
this.changeFullStyle(this.root, e, i);
|
|
7336
7336
|
var n = this.config.fullscreen, o = n === void 0 ? {} : n, u = o.useCssFullscreen === !0 || typeof o.useCssFullscreen == "function" && o.useCssFullscreen();
|
|
7337
|
-
u && (this.fullscreen = !0, this.emit(je, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
7337
|
+
u && (this.fullscreen = !0, this.emit(je, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(li, !0);
|
|
7338
7338
|
}
|
|
7339
7339
|
}, {
|
|
7340
7340
|
key: "exitCssFullscreen",
|
|
@@ -7346,7 +7346,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7346
7346
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, o = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
7347
7347
|
o ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(je, !1)) : this.removeClass(e);
|
|
7348
7348
|
}
|
|
7349
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
7349
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(li, !1);
|
|
7350
7350
|
}
|
|
7351
7351
|
}, {
|
|
7352
7352
|
key: "getRotateFullscreen",
|
|
@@ -7516,7 +7516,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7516
7516
|
value: function(e, i, n) {
|
|
7517
7517
|
if (!(!this.media || !i || !e)) {
|
|
7518
7518
|
var o = h.typeOf(e) === "String" ? e : e.type || "";
|
|
7519
|
-
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
7519
|
+
n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(hi, oe({
|
|
7520
7520
|
eventType: o,
|
|
7521
7521
|
action: i,
|
|
7522
7522
|
currentTime: this.currentTime,
|
|
@@ -7604,7 +7604,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7604
7604
|
value: function(e) {
|
|
7605
7605
|
var i = this;
|
|
7606
7606
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Le(this, "playnext", function() {
|
|
7607
|
-
i.start(), i.emit(
|
|
7607
|
+
i.start(), i.emit(fi, e);
|
|
7608
7608
|
});
|
|
7609
7609
|
}
|
|
7610
7610
|
}, {
|
|
@@ -7848,7 +7848,7 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7848
7848
|
}, {
|
|
7849
7849
|
key: "hook",
|
|
7850
7850
|
value: function(e, i) {
|
|
7851
|
-
return
|
|
7851
|
+
return di.call.apply(di, [this].concat(Array.prototype.slice.call(arguments)));
|
|
7852
7852
|
}
|
|
7853
7853
|
}, {
|
|
7854
7854
|
key: "runHooks",
|
|
@@ -7860,12 +7860,12 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7860
7860
|
}, {
|
|
7861
7861
|
key: "useHooks",
|
|
7862
7862
|
value: function(e, i) {
|
|
7863
|
-
return
|
|
7863
|
+
return gi.call.apply(gi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
7864
7864
|
}
|
|
7865
7865
|
}, {
|
|
7866
7866
|
key: "removeHooks",
|
|
7867
7867
|
value: function(e, i) {
|
|
7868
|
-
return
|
|
7868
|
+
return vi.call.apply(vi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
7869
7869
|
}
|
|
7870
7870
|
}, {
|
|
7871
7871
|
key: "usePluginHooks",
|
|
@@ -7937,9 +7937,9 @@ var Wd = ["play", "pause", "replay", "retry"], uu = 0, lu = 0, Ze = null, Pi = /
|
|
|
7937
7937
|
}
|
|
7938
7938
|
}]), r;
|
|
7939
7939
|
})(Ad);
|
|
7940
|
-
b(
|
|
7941
|
-
b(
|
|
7942
|
-
|
|
7940
|
+
b(Di, "defaultPreset", null);
|
|
7941
|
+
b(Di, "XgVideoProxy", null);
|
|
7942
|
+
Di.instManager = bl.getInstance();
|
|
7943
7943
|
function rt(a, s, r) {
|
|
7944
7944
|
try {
|
|
7945
7945
|
return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[s], `">
|
|
@@ -8006,7 +8006,7 @@ var ta = /* @__PURE__ */ (function(a) {
|
|
|
8006
8006
|
key: "afterCreate",
|
|
8007
8007
|
value: function() {
|
|
8008
8008
|
var e = this;
|
|
8009
|
-
W(V(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
8009
|
+
W(V(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(li, function(i) {
|
|
8010
8010
|
e.animate(i);
|
|
8011
8011
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
8012
8012
|
pre: function(n) {
|
|
@@ -9478,11 +9478,11 @@ var Je = {
|
|
|
9478
9478
|
e.vt = _e(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
9479
9479
|
var i = e._state, n = i.isTimeUpdate, o = i.isFFSend, u = i.autoplayStart;
|
|
9480
9480
|
K.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || u) && e._sendFF("loadedData"), o || e.emitLog(Je.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
9481
|
-
}), this.on(
|
|
9481
|
+
}), this.on(Ei, this._onSeeking), this.on(qe, this._onSeeked), this.on(_a, function() {
|
|
9482
9482
|
e.endState("destroy");
|
|
9483
|
-
}), this.on(
|
|
9483
|
+
}), this.on(Ii, function() {
|
|
9484
9484
|
e.endState("urlChange"), K.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
9485
|
-
}), this.on([
|
|
9485
|
+
}), this.on([Ai, Ve], this._onPlaying), this.on(Wt, this._onWaiting), this.on(qt, this._onError), this.on(Pi, function() {
|
|
9486
9486
|
K.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
9487
9487
|
});
|
|
9488
9488
|
}
|
|
@@ -9694,11 +9694,11 @@ var ag = /* @__PURE__ */ (function(a) {
|
|
|
9694
9694
|
var e = this;
|
|
9695
9695
|
this.config.useVideoPoster && this.config.poster && (this.player.media.poster = this.config.poster), this.on(dt, function() {
|
|
9696
9696
|
e.isEndedShow && e.show();
|
|
9697
|
-
}), this.on(
|
|
9697
|
+
}), this.on(Ai, function() {
|
|
9698
9698
|
e.hide();
|
|
9699
9699
|
}), this.config.hideCanplay ? (this.once(xe, function() {
|
|
9700
9700
|
e.onTimeUpdate();
|
|
9701
|
-
}), this.on(
|
|
9701
|
+
}), this.on(Ii, function() {
|
|
9702
9702
|
e.show(), e.config.useVideoPoster || h.addClass(e.root, "xg-showplay"), e.once(xe, function() {
|
|
9703
9703
|
e.onTimeUpdate();
|
|
9704
9704
|
});
|
|
@@ -9830,7 +9830,7 @@ var ug = /* @__PURE__ */ (function(a) {
|
|
|
9830
9830
|
e.toggleTo("play");
|
|
9831
9831
|
}), this.on(It, function() {
|
|
9832
9832
|
e.toggleTo("pause");
|
|
9833
|
-
}), this.on(
|
|
9833
|
+
}), this.on(Pi, function() {
|
|
9834
9834
|
e.onPlayerReset();
|
|
9835
9835
|
});
|
|
9836
9836
|
}
|
|
@@ -10426,7 +10426,7 @@ var Vr = {
|
|
|
10426
10426
|
var i = this.player, n = this.playerConfig, o = this.config.target || this.player.root;
|
|
10427
10427
|
this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(u) {
|
|
10428
10428
|
e.lastStyle[u] = o.style[u], o.style[u] = "".concat(e.pos[u], "px");
|
|
10429
|
-
}), n.fluid && (o.style["padding-top"] = ""), this.emit(
|
|
10429
|
+
}), n.fluid && (o.style["padding-top"] = ""), this.emit(ci, !0), i.isMini = this.isMini = !0;
|
|
10430
10430
|
}
|
|
10431
10431
|
}
|
|
10432
10432
|
}, {
|
|
@@ -10438,7 +10438,7 @@ var Vr = {
|
|
|
10438
10438
|
var i = this.player, n = this.playerConfig, o = this.config.target || this.player.root;
|
|
10439
10439
|
h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(u) {
|
|
10440
10440
|
o.style[u] = e.lastStyle[u];
|
|
10441
|
-
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(
|
|
10441
|
+
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(ci, !1), this.isMini = i.isMini = !1;
|
|
10442
10442
|
}
|
|
10443
10443
|
}, {
|
|
10444
10444
|
key: "updatePos",
|
|
@@ -10492,7 +10492,7 @@ var Vr = {
|
|
|
10492
10492
|
};
|
|
10493
10493
|
}
|
|
10494
10494
|
}]), r;
|
|
10495
|
-
})(Q),
|
|
10495
|
+
})(Q), ii = {
|
|
10496
10496
|
mouseenter: "onMouseEnter",
|
|
10497
10497
|
mouseleave: "onMouseLeave",
|
|
10498
10498
|
mousemove: "onMouseMove"
|
|
@@ -10578,8 +10578,8 @@ var Vr = {
|
|
|
10578
10578
|
key: "initEvents",
|
|
10579
10579
|
value: function() {
|
|
10580
10580
|
var e = this, i = this.player, n = i.media, o = i.root, u = this.playerConfig.enableContextmenu;
|
|
10581
|
-
o && o.addEventListener("click", this.onVideoClick, !1), o && o.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
10582
|
-
o.addEventListener(l, e[
|
|
10581
|
+
o && o.addEventListener("click", this.onVideoClick, !1), o && o.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ii).map(function(l) {
|
|
10582
|
+
o.addEventListener(l, e[ii[l]], !1);
|
|
10583
10583
|
}), !u && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
10584
10584
|
}
|
|
10585
10585
|
}, {
|
|
@@ -10607,8 +10607,8 @@ var Vr = {
|
|
|
10607
10607
|
key: "destroy",
|
|
10608
10608
|
value: function() {
|
|
10609
10609
|
var e = this, i = this.player, n = i.video, o = i.root;
|
|
10610
|
-
this.clickTimer && clearTimeout(this.clickTimer), o.removeEventListener("click", this.onVideoClick, !1), o.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
10611
|
-
o.removeEventListener(u, e[
|
|
10610
|
+
this.clickTimer && clearTimeout(this.clickTimer), o.removeEventListener("click", this.onVideoClick, !1), o.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ii).map(function(u) {
|
|
10611
|
+
o.removeEventListener(u, e[ii[u]], !1);
|
|
10612
10612
|
});
|
|
10613
10613
|
}
|
|
10614
10614
|
}], [{
|
|
@@ -11595,7 +11595,7 @@ var kg = /* @__PURE__ */ (function(a) {
|
|
|
11595
11595
|
return O(r, [{
|
|
11596
11596
|
key: "afterCreate",
|
|
11597
11597
|
value: function() {
|
|
11598
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ge, this._onDurationChange), this.on(We, this._onLoadedData), this.on(xe, this._onTimeupdate), this.on(
|
|
11598
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ge, this._onDurationChange), this.on(We, this._onLoadedData), this.on(xe, this._onTimeupdate), this.on(Ei, this._onSeeking), this.on(Ie, this._onPlay);
|
|
11599
11599
|
}
|
|
11600
11600
|
}, {
|
|
11601
11601
|
key: "setConfig",
|
|
@@ -11839,7 +11839,7 @@ var wt = {
|
|
|
11839
11839
|
key: "afterCreate",
|
|
11840
11840
|
value: function() {
|
|
11841
11841
|
var e = this;
|
|
11842
|
-
this.isPIPAvailable() && (W(V(r.prototype), "afterCreate", this).call(this), this.pMode = wt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
11842
|
+
this.isPIPAvailable() && (W(V(r.prototype), "afterCreate", this).call(this), this.pMode = wt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(xi, function() {
|
|
11843
11843
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
11844
11844
|
}));
|
|
11845
11845
|
}
|
|
@@ -12022,7 +12022,7 @@ var Pg = /* @__PURE__ */ (function(a) {
|
|
|
12022
12022
|
var e;
|
|
12023
12023
|
return R(this, r), e = s.call(this, t), b(_(e), "playNext", function(i) {
|
|
12024
12024
|
var n = _(e), o = n.player;
|
|
12025
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), o.emit(
|
|
12025
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), o.emit(fi, e.idx + 1)) : (e.nextHandler(), o.emit(fi));
|
|
12026
12026
|
}), e.idx = -1, e;
|
|
12027
12027
|
}
|
|
12028
12028
|
return O(r, [{
|
|
@@ -12186,7 +12186,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
12186
12186
|
return document.body.removeChild(e);
|
|
12187
12187
|
}, 333), !0;
|
|
12188
12188
|
}
|
|
12189
|
-
},
|
|
12189
|
+
}, pi = {
|
|
12190
12190
|
createRequest: function(s) {
|
|
12191
12191
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new XMLHttpRequest();
|
|
12192
12192
|
return r.timeout && (t.timeout = r.timeout), typeof r.withCredentials == "boolean" && (t.withCredentials = r.withCredentials), t;
|
|
@@ -12201,8 +12201,8 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
12201
12201
|
downloadFromURL: function(s, r) {
|
|
12202
12202
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12203
12203
|
return new Promise(function(e, i) {
|
|
12204
|
-
var n =
|
|
12205
|
-
n.open("GET", s, !0), n.responseType = "blob", t.headers &&
|
|
12204
|
+
var n = pi.createRequest(s, t);
|
|
12205
|
+
n.open("GET", s, !0), n.responseType = "blob", t.headers && pi.setHeaders(n, t.headers), t.withCredentials && (n.withCredentials = !0), n.onload = function(o) {
|
|
12206
12206
|
o.target.status === 200 ? (El(o.target.response, r, t.mimeType || Se.mimeType), e(o.target.response)) : i(new Error("HTTP ".concat(o.target.status, ": ").concat(o.target.statusText)));
|
|
12207
12207
|
}, n.onerror = function() {
|
|
12208
12208
|
i(new Error("Network error occurred"));
|
|
@@ -12225,7 +12225,7 @@ function El(a, s, r) {
|
|
|
12225
12225
|
e = u || Se.fileName;
|
|
12226
12226
|
var l = document.createElement("a");
|
|
12227
12227
|
if (l.href = o, l.href.indexOf(o) !== -1)
|
|
12228
|
-
return
|
|
12228
|
+
return pi.downloadFromURL(o, e, t);
|
|
12229
12229
|
}
|
|
12230
12230
|
if (ut.isDataURL(a))
|
|
12231
12231
|
if (a.length > 1024 * 1024 * 1.999 && Lt.supportsBlob()) {
|
|
@@ -12275,7 +12275,7 @@ function El(a, s, r) {
|
|
|
12275
12275
|
}
|
|
12276
12276
|
function Lg(a) {
|
|
12277
12277
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = oe(oe({}, Se), s), t = r.fileName || a.split("/").pop().split("?")[0] || "download";
|
|
12278
|
-
return
|
|
12278
|
+
return pi.downloadFromURL(a, t, r);
|
|
12279
12279
|
}
|
|
12280
12280
|
var Rg = /* @__PURE__ */ (function(a) {
|
|
12281
12281
|
U(r, a);
|
|
@@ -12559,7 +12559,7 @@ var Rg = /* @__PURE__ */ (function(a) {
|
|
|
12559
12559
|
function Fg(a, s) {
|
|
12560
12560
|
return a === Be.SIDE ? s === ae.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
12561
12561
|
}
|
|
12562
|
-
var ot = $.device === "mobile",
|
|
12562
|
+
var ot = $.device === "mobile", mi = /* @__PURE__ */ (function(a) {
|
|
12563
12563
|
U(r, a);
|
|
12564
12564
|
var s = z(r);
|
|
12565
12565
|
function r(t) {
|
|
@@ -12820,7 +12820,7 @@ var ot = $.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12820
12820
|
}, {
|
|
12821
12821
|
key: "defaultConfig",
|
|
12822
12822
|
get: function() {
|
|
12823
|
-
return oe(oe({},
|
|
12823
|
+
return oe(oe({}, mi.defaultConfig), {}, {
|
|
12824
12824
|
position: ae.CONTROLS_RIGHT,
|
|
12825
12825
|
index: 3,
|
|
12826
12826
|
list: [],
|
|
@@ -12832,7 +12832,7 @@ var ot = $.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12832
12832
|
});
|
|
12833
12833
|
}
|
|
12834
12834
|
}]), r;
|
|
12835
|
-
})(
|
|
12835
|
+
})(mi), Bg = /* @__PURE__ */ (function(a) {
|
|
12836
12836
|
U(r, a);
|
|
12837
12837
|
var s = z(r);
|
|
12838
12838
|
function r(t) {
|
|
@@ -12914,7 +12914,7 @@ var ot = $.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12914
12914
|
}, {
|
|
12915
12915
|
key: "defaultConfig",
|
|
12916
12916
|
get: function() {
|
|
12917
|
-
return oe(oe({},
|
|
12917
|
+
return oe(oe({}, mi.defaultConfig), {}, {
|
|
12918
12918
|
position: ae.CONTROLS_RIGHT,
|
|
12919
12919
|
index: 4,
|
|
12920
12920
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -12924,7 +12924,7 @@ var ot = $.device === "mobile", pi = /* @__PURE__ */ (function(a) {
|
|
|
12924
12924
|
});
|
|
12925
12925
|
}
|
|
12926
12926
|
}]), r;
|
|
12927
|
-
})(
|
|
12927
|
+
})(mi), Hg = /* @__PURE__ */ (function(a) {
|
|
12928
12928
|
U(r, a);
|
|
12929
12929
|
var s = z(r);
|
|
12930
12930
|
function r() {
|
|
@@ -13753,7 +13753,7 @@ function Gg() {
|
|
|
13753
13753
|
return !1;
|
|
13754
13754
|
}
|
|
13755
13755
|
}
|
|
13756
|
-
var
|
|
13756
|
+
var ni = null, $g = /* @__PURE__ */ (function(a) {
|
|
13757
13757
|
U(r, a);
|
|
13758
13758
|
var s = z(r);
|
|
13759
13759
|
function r() {
|
|
@@ -13794,7 +13794,7 @@ var ii = null, $g = /* @__PURE__ */ (function(a) {
|
|
|
13794
13794
|
x: 0,
|
|
13795
13795
|
y: 0,
|
|
13796
13796
|
pi: 0
|
|
13797
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== At.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
13797
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== At.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(xi, function() {
|
|
13798
13798
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
13799
13799
|
}), o !== At.POSTER && (o !== At.FIRST_FRAME && (this.on(gt, function() {
|
|
13800
13800
|
e.stop();
|
|
@@ -13947,7 +13947,7 @@ var ii = null, $g = /* @__PURE__ */ (function(a) {
|
|
|
13947
13947
|
}, {
|
|
13948
13948
|
key: "isSupport",
|
|
13949
13949
|
get: function() {
|
|
13950
|
-
return typeof
|
|
13950
|
+
return typeof ni == "boolean" || (ni = Gg()), ni;
|
|
13951
13951
|
}
|
|
13952
13952
|
}, {
|
|
13953
13953
|
key: "supportCanvasFilter",
|
|
@@ -14070,7 +14070,7 @@ var ii = null, $g = /* @__PURE__ */ (function(a) {
|
|
|
14070
14070
|
}, {
|
|
14071
14071
|
key: "afterCreate",
|
|
14072
14072
|
value: function() {
|
|
14073
|
-
this.reset(), this.on(
|
|
14073
|
+
this.reset(), this.on(hi, this._recordUserActions), this.on(Kr.STATS_INFO, this._recordInfo), this.on(Kr.STATS_DOWNLOAD, this._downloadStats), this.on(Kr.STATS_RESET, this._onReset);
|
|
14074
14074
|
}
|
|
14075
14075
|
}, {
|
|
14076
14076
|
key: "destroy",
|
|
@@ -14218,7 +14218,7 @@ var ii = null, $g = /* @__PURE__ */ (function(a) {
|
|
|
14218
14218
|
var e = this, i = this.config.useGapJump;
|
|
14219
14219
|
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(Wt, this.onGapJump), this.on(Ie, function() {
|
|
14220
14220
|
e.hasPlayed = !0;
|
|
14221
|
-
}), this.on(
|
|
14221
|
+
}), this.on(Ei, function() {
|
|
14222
14222
|
e.seekingEventReceived = !0;
|
|
14223
14223
|
}));
|
|
14224
14224
|
}
|
|
@@ -14289,7 +14289,7 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14289
14289
|
key: "afterCreate",
|
|
14290
14290
|
value: function() {
|
|
14291
14291
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, o = i.jumpSize;
|
|
14292
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Wt, this.onWaiting), this.on([
|
|
14292
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Wt, this.onWaiting), this.on([Ai, Ve], function() {
|
|
14293
14293
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
14294
14294
|
}), this.on(Ie, function() {
|
|
14295
14295
|
e.hasPlayed = !0;
|
|
@@ -14311,7 +14311,7 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14311
14311
|
};
|
|
14312
14312
|
}
|
|
14313
14313
|
}]), r;
|
|
14314
|
-
})(Q), Et = "cdn",
|
|
14314
|
+
})(Q), Et = "cdn", ri = ["cdn"], Zg = /* @__PURE__ */ (function(a) {
|
|
14315
14315
|
U(r, a);
|
|
14316
14316
|
var s = z(r);
|
|
14317
14317
|
function r() {
|
|
@@ -14330,7 +14330,7 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14330
14330
|
}), b(_(t), "startTimer", function() {
|
|
14331
14331
|
h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
14332
14332
|
}), b(_(t), "initSpeedList", function() {
|
|
14333
|
-
t.speedListCache = {},
|
|
14333
|
+
t.speedListCache = {}, ri.forEach(function(o) {
|
|
14334
14334
|
t.speedListCache[o] = [];
|
|
14335
14335
|
});
|
|
14336
14336
|
}), b(_(t), "_onRealSpeedChange", function(o) {
|
|
@@ -14387,7 +14387,7 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14387
14387
|
key: "afterCreate",
|
|
14388
14388
|
value: function() {
|
|
14389
14389
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
14390
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
14390
|
+
(n == null ? void 0 : n.length) > 0 && ri.push.apply(ri, Fe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([We, ui], this.startTimer);
|
|
14391
14391
|
}
|
|
14392
14392
|
}, {
|
|
14393
14393
|
key: "getSpeedName",
|
|
@@ -14414,7 +14414,7 @@ var Xg = /* @__PURE__ */ (function(a) {
|
|
|
14414
14414
|
key: "destroy",
|
|
14415
14415
|
value: function() {
|
|
14416
14416
|
var e = this;
|
|
14417
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([We,
|
|
14417
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([We, ui], this.startTimer), ri.forEach(function(i) {
|
|
14418
14418
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
14419
14419
|
}), 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);
|
|
14420
14420
|
}
|
|
@@ -14572,11 +14572,11 @@ var Qg = /* @__PURE__ */ O(function a(s, r) {
|
|
|
14572
14572
|
return R(this, r), s.apply(this, arguments);
|
|
14573
14573
|
}
|
|
14574
14574
|
return O(r);
|
|
14575
|
-
})(
|
|
14575
|
+
})(Di);
|
|
14576
14576
|
b(pe, "defaultPreset", Qg);
|
|
14577
14577
|
b(pe, "Util", h);
|
|
14578
14578
|
b(pe, "Sniffer", $);
|
|
14579
|
-
b(pe, "Errors",
|
|
14579
|
+
b(pe, "Errors", oi);
|
|
14580
14580
|
b(pe, "Events", Td);
|
|
14581
14581
|
b(pe, "Plugin", Q);
|
|
14582
14582
|
b(pe, "BasePlugin", it);
|
|
@@ -14639,7 +14639,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14639
14639
|
}, o = ue(() => ({
|
|
14640
14640
|
...n,
|
|
14641
14641
|
...t.config
|
|
14642
|
-
})), u = s, l =
|
|
14642
|
+
})), u = s, l = yi(a, "modelValue"), c = Au(), f = Su("image-viewer");
|
|
14643
14643
|
function d() {
|
|
14644
14644
|
u("close"), l.value = !1, r.destroy();
|
|
14645
14645
|
}
|
|
@@ -14652,7 +14652,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14652
14652
|
});
|
|
14653
14653
|
});
|
|
14654
14654
|
}), (g, v) => {
|
|
14655
|
-
const m =
|
|
14655
|
+
const m = ai("el-icon");
|
|
14656
14656
|
return l.value ? (T(), Z(ku, {
|
|
14657
14657
|
key: 0,
|
|
14658
14658
|
to: "body"
|
|
@@ -14723,7 +14723,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14723
14723
|
])) : B("v-if", !0);
|
|
14724
14724
|
};
|
|
14725
14725
|
}
|
|
14726
|
-
}), iv = /* @__PURE__ */
|
|
14726
|
+
}), iv = /* @__PURE__ */ _i(tv, [["__scopeId", "data-v-b301aa7d"]]), nv = nt(iv), rv = {
|
|
14727
14727
|
class: "flex align-center",
|
|
14728
14728
|
style: { width: "100%" }
|
|
14729
14729
|
}, av = { class: "fileName simple" }, sv = {
|
|
@@ -14924,7 +14924,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14924
14924
|
}),
|
|
14925
14925
|
emits: /* @__PURE__ */ ft(["delete", "exceed", "handPreview", "success", "error", "outSize", "change", "progress", "progressEnd"], ["update:modelValue"]),
|
|
14926
14926
|
setup(a, { emit: s }) {
|
|
14927
|
-
const r = a, t = s, e =
|
|
14927
|
+
const r = a, t = s, e = yi(a, "modelValue"), n = {
|
|
14928
14928
|
...{
|
|
14929
14929
|
name: "name",
|
|
14930
14930
|
url: "url",
|
|
@@ -14934,7 +14934,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14934
14934
|
...r.defaultFileds
|
|
14935
14935
|
}, { cLoadUrl: o, cUploadUrl: u, cOnlyofficeConfig: l, cHeader: c, cOnlyofficePreviewType: f } = xu(r), d = ue(() => r.size), g = Ce(null), v = Ce([]), m = Ce({}), p = Ce(!1), x = (S) => {
|
|
14936
14936
|
const F = S.size / 1024 / 1024;
|
|
14937
|
-
return F < d.value ? !0 : (t("outSize"),
|
|
14937
|
+
return F < d.value ? !0 : (t("outSize"), Jt({
|
|
14938
14938
|
message: `上传文件大小(${F.toFixed(4)}MB)超出允许最大值(${r.size}MB),请重新选择`,
|
|
14939
14939
|
type: "warning",
|
|
14940
14940
|
showClose: !0,
|
|
@@ -14951,7 +14951,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14951
14951
|
let Ne = !1;
|
|
14952
14952
|
w.value.includes("/") && (Ne = ((se = (D = S == null ? void 0 : S.raw) == null ? void 0 : D.type) == null ? void 0 : se.split("/").shift()) === ((he = w.value) == null ? void 0 : he.split("/").shift()));
|
|
14953
14953
|
const at = (ve = w.value) == null ? void 0 : ve.split(",");
|
|
14954
|
-
!at.includes((Te = S == null ? void 0 : S.raw) == null ? void 0 : Te.type) && !at.includes(`.${S.name.split(".").pop()}`) && !Ne && (
|
|
14954
|
+
!at.includes((Te = S == null ? void 0 : S.raw) == null ? void 0 : Te.type) && !at.includes(`.${S.name.split(".").pop()}`) && !Ne && (Jt({
|
|
14955
14955
|
message: `不允许的文件格式(${S.name}),请重新选择`,
|
|
14956
14956
|
type: "warning",
|
|
14957
14957
|
showClose: !0,
|
|
@@ -14969,7 +14969,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14969
14969
|
S.splice(I), S.forEach((D) => {
|
|
14970
14970
|
var se;
|
|
14971
14971
|
(se = g.value) == null || se.handleStart(D);
|
|
14972
|
-
}), (y = g.value) == null || y.submit(),
|
|
14972
|
+
}), (y = g.value) == null || y.submit(), Jt({
|
|
14973
14973
|
message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
|
|
14974
14974
|
type: "warning",
|
|
14975
14975
|
showClose: !0,
|
|
@@ -14991,7 +14991,11 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
14991
14991
|
}, r.isOnlyOfficePreview && (p.value = !0), t("handPreview", m.value);
|
|
14992
14992
|
}, H = (S) => {
|
|
14993
14993
|
var F, I, y, D;
|
|
14994
|
-
|
|
14994
|
+
Jt({
|
|
14995
|
+
message: "已发送下载请求,即将开始下载",
|
|
14996
|
+
type: "info",
|
|
14997
|
+
duration: 3e3
|
|
14998
|
+
}), Xl.downloadFile(
|
|
14995
14999
|
Ut(
|
|
14996
15000
|
o.value,
|
|
14997
15001
|
S[n.url] || ((I = (F = S == null ? void 0 : S.response) == null ? void 0 : F.data) == null ? void 0 : I.id)
|
|
@@ -15037,7 +15041,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
15037
15041
|
be,
|
|
15038
15042
|
{ key: 0 },
|
|
15039
15043
|
[
|
|
15040
|
-
a.type === "button" ? (T(), Z(C(Pa),
|
|
15044
|
+
a.type === "button" ? (T(), Z(C(Pa), si({
|
|
15041
15045
|
key: 0,
|
|
15042
15046
|
class: "ik-file-upload"
|
|
15043
15047
|
}, S.$attrs, {
|
|
@@ -15510,7 +15514,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
15510
15514
|
}),
|
|
15511
15515
|
_: 3
|
|
15512
15516
|
/* FORWARDED */
|
|
15513
|
-
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (T(), Z(C(Pa),
|
|
15517
|
+
}, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (T(), Z(C(Pa), si({
|
|
15514
15518
|
key: 1,
|
|
15515
15519
|
"file-list": e.value,
|
|
15516
15520
|
"onUpdate:fileList": F[1] || (F[1] = (y) => e.value = y),
|
|
@@ -15755,7 +15759,7 @@ const ev = ["id"], tv = /* @__PURE__ */ le({
|
|
|
15755
15759
|
);
|
|
15756
15760
|
};
|
|
15757
15761
|
}
|
|
15758
|
-
}), Hv = /* @__PURE__ */
|
|
15762
|
+
}), Hv = /* @__PURE__ */ _i(Bv, [["__scopeId", "data-v-e42cb798"]]), qv = nt(Hv);
|
|
15759
15763
|
export {
|
|
15760
15764
|
qv as IkUploadFile,
|
|
15761
15765
|
qv as default
|