iking-web-ui-pro 0.2.50 → 0.2.52
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 +527 -513
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +342 -328
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +380 -366
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +456 -442
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/ik.index.es.js +30 -31
- package/dist/IkSelectTag/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/style.css +1 -1
- package/dist/IkStatu/ik.index.es.js +4 -5
- package/dist/IkStatu/ik.index.umd.js +1 -1
- package/dist/IkStatu/style.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +2 -3
- package/dist/IkStatuOver/ik.index.umd.js +1 -1
- package/dist/IkStatuOver/style.css +1 -1
- package/dist/index.es.js +2186 -2173
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as X, openBlock as E, createElementBlock as A, createElementVNode as T, inject as ot, mergeModels as wt, useModel as ci, ref as ge, reactive as rr, watch as ut, nextTick as fi, Fragment as
|
|
1
|
+
import { defineComponent as Q, computed as X, openBlock as E, createElementBlock as A, createElementVNode as T, inject as ot, mergeModels as wt, useModel as ci, ref as ge, reactive as rr, watch as ut, nextTick as fi, Fragment as ke, createBlock as fe, unref as S, createCommentVNode as Y, createVNode as G, withCtx as ee, resolveComponent as ct, normalizeClass as K, normalizeStyle as se, createTextVNode as ti, toDisplayString as We, h as sr, mergeProps as or, createSlots as ar, renderSlot as Re, getCurrentScope as lr, onScopeDispose as ur, markRaw as Oi, effectScope as cr, shallowRef as fr, onMounted as hr, Teleport as Cn, Transition as kn, withModifiers as Ct, resolveDynamicComponent as dr, renderList as kt, withDirectives as gr, vShow as pr } from "vue";
|
|
2
2
|
import { buildUUID as wn, ikColor as vr, paramType as ii, _ as Ut, ikFile as mr } from "iking-utils-pro";
|
|
3
|
-
import { useLocale as yr, useNamespace as bn, useZIndex as _r, ElIcon as
|
|
3
|
+
import { useLocale as yr, useNamespace as bn, useZIndex as _r, ElIcon as Le, EVENT_CODE as Xe } from "element-plus";
|
|
4
4
|
const Ne = (a, o) => {
|
|
5
5
|
if (a.install = (r) => {
|
|
6
6
|
for (const t of [a, ...Object.values(o ?? {})])
|
|
@@ -929,19 +929,19 @@ const hi = (a, o) => {
|
|
|
929
929
|
return (u, c) => {
|
|
930
930
|
var h, d, g;
|
|
931
931
|
return r.value ? (E(), A(
|
|
932
|
-
|
|
932
|
+
ke,
|
|
933
933
|
{ key: 0 },
|
|
934
934
|
[
|
|
935
|
-
(h = i.value) != null && h.url && n.image ? (E(),
|
|
935
|
+
(h = i.value) != null && h.url && n.image ? (E(), fe(S(Po), {
|
|
936
936
|
key: 0,
|
|
937
937
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
938
938
|
ref: "previewImgRef",
|
|
939
939
|
"url-list": [(d = i.value) == null ? void 0 : d.url],
|
|
940
940
|
teleported: "",
|
|
941
941
|
"z-index": 9999
|
|
942
|
-
}, null, 8, ["url-list"])) :
|
|
943
|
-
|
|
944
|
-
|
|
942
|
+
}, null, 8, ["url-list"])) : Y("v-if", !0),
|
|
943
|
+
Y(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
944
|
+
Y(" 文档类 "),
|
|
945
945
|
G(S(Gl), {
|
|
946
946
|
modelValue: n.video,
|
|
947
947
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
|
|
@@ -977,7 +977,7 @@ const hi = (a, o) => {
|
|
|
977
977
|
],
|
|
978
978
|
64
|
|
979
979
|
/* STABLE_FRAGMENT */
|
|
980
|
-
)) :
|
|
980
|
+
)) : Y("v-if", !0);
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
});
|
|
@@ -1057,7 +1057,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1057
1057
|
"i",
|
|
1058
1058
|
{
|
|
1059
1059
|
key: 0,
|
|
1060
|
-
class:
|
|
1060
|
+
class: K(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1061
1061
|
[i.name]: t.value === "unocss",
|
|
1062
1062
|
"show-bg": r.value.showBg || r.value.bg,
|
|
1063
1063
|
default: r.value.size === "default",
|
|
@@ -1073,12 +1073,12 @@ const Ws = Ne(js), Gs = {
|
|
|
1073
1073
|
style: se(e.value)
|
|
1074
1074
|
},
|
|
1075
1075
|
[
|
|
1076
|
-
|
|
1076
|
+
Y(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
1077
1077
|
t.value === "iksig" ? (E(), A(
|
|
1078
1078
|
"i",
|
|
1079
1079
|
{
|
|
1080
1080
|
key: 0,
|
|
1081
|
-
class:
|
|
1081
|
+
class: K(`iksig ${r.value.name}`),
|
|
1082
1082
|
style: se(e.value)
|
|
1083
1083
|
},
|
|
1084
1084
|
null,
|
|
@@ -1096,7 +1096,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1096
1096
|
"i",
|
|
1097
1097
|
{
|
|
1098
1098
|
key: 3,
|
|
1099
|
-
class:
|
|
1099
|
+
class: K(r.value.name),
|
|
1100
1100
|
style: se(e.value)
|
|
1101
1101
|
},
|
|
1102
1102
|
null,
|
|
@@ -1106,7 +1106,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1106
1106
|
],
|
|
1107
1107
|
6
|
|
1108
1108
|
/* CLASS, STYLE */
|
|
1109
|
-
)) : (E(),
|
|
1109
|
+
)) : (E(), fe(s, {
|
|
1110
1110
|
key: 1,
|
|
1111
1111
|
content: r.value.title,
|
|
1112
1112
|
placement: "top"
|
|
@@ -1115,7 +1115,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1115
1115
|
T(
|
|
1116
1116
|
"i",
|
|
1117
1117
|
{
|
|
1118
|
-
class:
|
|
1118
|
+
class: K(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1119
1119
|
[i.name]: t.value === "unocss",
|
|
1120
1120
|
"show-bg": r.value.showBg || r.value.bg,
|
|
1121
1121
|
default: r.value.size === "default",
|
|
@@ -1134,7 +1134,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1134
1134
|
"i",
|
|
1135
1135
|
{
|
|
1136
1136
|
key: 0,
|
|
1137
|
-
class:
|
|
1137
|
+
class: K(`iksig ${r.value.name}`),
|
|
1138
1138
|
style: se(e.value)
|
|
1139
1139
|
},
|
|
1140
1140
|
null,
|
|
@@ -1152,7 +1152,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1152
1152
|
"i",
|
|
1153
1153
|
{
|
|
1154
1154
|
key: 3,
|
|
1155
|
-
class:
|
|
1155
|
+
class: K(r.value.name),
|
|
1156
1156
|
style: se(e.value)
|
|
1157
1157
|
},
|
|
1158
1158
|
null,
|
|
@@ -1167,7 +1167,7 @@ const Ws = Ne(js), Gs = {
|
|
|
1167
1167
|
_: 1
|
|
1168
1168
|
/* STABLE */
|
|
1169
1169
|
}, 8, ["content"]))
|
|
1170
|
-
])) : (E(),
|
|
1170
|
+
])) : (E(), fe(l, {
|
|
1171
1171
|
key: 1,
|
|
1172
1172
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1173
1173
|
}, {
|
|
@@ -1200,7 +1200,7 @@ const Qs = /* @__PURE__ */ hi(Js, [["__scopeId", "data-v-52806adf"]]), je = Ne(Q
|
|
|
1200
1200
|
return (o, r) => (E(), A(
|
|
1201
1201
|
"div",
|
|
1202
1202
|
{
|
|
1203
|
-
class:
|
|
1203
|
+
class: K({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1204
1204
|
},
|
|
1205
1205
|
[
|
|
1206
1206
|
G(S(je), {
|
|
@@ -1248,7 +1248,7 @@ const to = /* @__PURE__ */ hi(eo, [["__scopeId", "data-v-da39e979"]]), io = { cl
|
|
|
1248
1248
|
});
|
|
1249
1249
|
return (n, s) => {
|
|
1250
1250
|
const l = ct("el-dialog");
|
|
1251
|
-
return E(),
|
|
1251
|
+
return E(), fe(l, or({
|
|
1252
1252
|
modelValue: r.value,
|
|
1253
1253
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
1254
1254
|
"align-center": ""
|
|
@@ -1277,13 +1277,13 @@ const to = /* @__PURE__ */ hi(eo, [["__scopeId", "data-v-da39e979"]]), io = { cl
|
|
|
1277
1277
|
)
|
|
1278
1278
|
])
|
|
1279
1279
|
]),
|
|
1280
|
-
n.$attrs.showClose ? (E(),
|
|
1280
|
+
n.$attrs.showClose ? (E(), fe(S(je), {
|
|
1281
1281
|
key: 0,
|
|
1282
1282
|
onClick: e,
|
|
1283
1283
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
1284
1284
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
1285
1285
|
title: t.value ? "退出全屏" : "全屏"
|
|
1286
|
-
}, null, 8, ["name", "title"])) :
|
|
1286
|
+
}, null, 8, ["name", "title"])) : Y("v-if", !0)
|
|
1287
1287
|
]),
|
|
1288
1288
|
default: ee(() => [
|
|
1289
1289
|
Re(n.$slots, "default")
|
|
@@ -1841,11 +1841,11 @@ const Eo = {
|
|
|
1841
1841
|
l.is("disabled", !i.infinite && H.value)
|
|
1842
1842
|
]), te = X(() => {
|
|
1843
1843
|
const { scale: F, deg: W, offsetX: q, offsetY: pe, enableTransition: ye } = y.value;
|
|
1844
|
-
let _e = q / F,
|
|
1844
|
+
let _e = q / F, Pe = pe / F;
|
|
1845
1845
|
const st = W * Math.PI / 180, Ai = Math.cos(st), Di = Math.sin(st);
|
|
1846
|
-
_e = _e * Ai +
|
|
1846
|
+
_e = _e * Ai + Pe * Di, Pe = Pe * Ai - q / F * Di;
|
|
1847
1847
|
const Ht = {
|
|
1848
|
-
transform: `scale(${F}) rotate(${W}deg) translate(${_e}px, ${
|
|
1848
|
+
transform: `scale(${F}) rotate(${W}deg) translate(${_e}px, ${Pe}px)`,
|
|
1849
1849
|
transition: ye ? "transform .3s" : ""
|
|
1850
1850
|
};
|
|
1851
1851
|
return v.value.name === e.CONTAIN.name && (Ht.maxWidth = Ht.maxHeight = "100%"), Ht;
|
|
@@ -1889,13 +1889,13 @@ const Eo = {
|
|
|
1889
1889
|
function ne() {
|
|
1890
1890
|
d.stop();
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function le() {
|
|
1893
1893
|
g.value = !1;
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function ue(F) {
|
|
1896
1896
|
g.value = !1, F.target.alt = s("el.image.error");
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function be(F) {
|
|
1899
1899
|
if (g.value || F.button !== 0 || !c.value)
|
|
1900
1900
|
return;
|
|
1901
1901
|
y.value.enableTransition = !1;
|
|
@@ -1905,9 +1905,9 @@ const Eo = {
|
|
|
1905
1905
|
offsetX: W + st.pageX - pe,
|
|
1906
1906
|
offsetY: q + st.pageY - ye
|
|
1907
1907
|
};
|
|
1908
|
-
}),
|
|
1908
|
+
}), Pe = pt(document, "mousemove", _e);
|
|
1909
1909
|
pt(document, "mouseup", () => {
|
|
1910
|
-
|
|
1910
|
+
Pe();
|
|
1911
1911
|
}), F.preventDefault();
|
|
1912
1912
|
}
|
|
1913
1913
|
function xi() {
|
|
@@ -1938,7 +1938,7 @@ const Eo = {
|
|
|
1938
1938
|
function Ue(F, W = {}) {
|
|
1939
1939
|
if (g.value)
|
|
1940
1940
|
return;
|
|
1941
|
-
const { minScale: q, maxScale: pe } = i, { zoomRate: ye, rotateDeg: _e, enableTransition:
|
|
1941
|
+
const { minScale: q, maxScale: pe } = i, { zoomRate: ye, rotateDeg: _e, enableTransition: Pe } = {
|
|
1942
1942
|
zoomRate: i.zoomRate,
|
|
1943
1943
|
rotateDeg: 90,
|
|
1944
1944
|
enableTransition: !0,
|
|
@@ -1962,7 +1962,7 @@ const Eo = {
|
|
|
1962
1962
|
y.value.deg -= _e, n("rotate", y.value.deg);
|
|
1963
1963
|
break;
|
|
1964
1964
|
}
|
|
1965
|
-
y.value.enableTransition =
|
|
1965
|
+
y.value.enableTransition = Pe;
|
|
1966
1966
|
}
|
|
1967
1967
|
return ut(x, () => {
|
|
1968
1968
|
fi(() => {
|
|
@@ -1979,7 +1979,7 @@ const Eo = {
|
|
|
1979
1979
|
* @description manually switch image
|
|
1980
1980
|
*/
|
|
1981
1981
|
setActiveItem: Bt
|
|
1982
|
-
}), (F, W) => (E(),
|
|
1982
|
+
}), (F, W) => (E(), fe(Cn, { to: "body" }, [
|
|
1983
1983
|
G(kn, {
|
|
1984
1984
|
name: "viewer-fade",
|
|
1985
1985
|
appear: ""
|
|
@@ -1991,29 +1991,29 @@ const Eo = {
|
|
|
1991
1991
|
ref_key: "wrapper",
|
|
1992
1992
|
ref: c,
|
|
1993
1993
|
tabindex: -1,
|
|
1994
|
-
class:
|
|
1994
|
+
class: K(S(l).e("wrapper")),
|
|
1995
1995
|
style: se({ zIndex: C.value })
|
|
1996
1996
|
},
|
|
1997
1997
|
[
|
|
1998
1998
|
T(
|
|
1999
1999
|
"div",
|
|
2000
2000
|
{
|
|
2001
|
-
class:
|
|
2001
|
+
class: K(S(l).e("mask")),
|
|
2002
2002
|
onClick: W[0] || (W[0] = Ct((q) => F.hideOnClickModal && J(), ["self"]))
|
|
2003
2003
|
},
|
|
2004
2004
|
null,
|
|
2005
2005
|
2
|
|
2006
2006
|
/* CLASS */
|
|
2007
2007
|
),
|
|
2008
|
-
|
|
2008
|
+
Y(" CLOSE "),
|
|
2009
2009
|
T(
|
|
2010
2010
|
"span",
|
|
2011
2011
|
{
|
|
2012
|
-
class:
|
|
2012
|
+
class: K([S(l).e("btn"), S(l).e("close")]),
|
|
2013
2013
|
onClick: J
|
|
2014
2014
|
},
|
|
2015
2015
|
[
|
|
2016
|
-
G(S(
|
|
2016
|
+
G(S(Le), null, {
|
|
2017
2017
|
default: ee(() => [
|
|
2018
2018
|
G(S(Tn))
|
|
2019
2019
|
]),
|
|
@@ -2024,19 +2024,19 @@ const Eo = {
|
|
|
2024
2024
|
2
|
|
2025
2025
|
/* CLASS */
|
|
2026
2026
|
),
|
|
2027
|
-
|
|
2028
|
-
b.value ?
|
|
2029
|
-
|
|
2027
|
+
Y(" ARROW "),
|
|
2028
|
+
b.value ? Y("v-if", !0) : (E(), A(
|
|
2029
|
+
ke,
|
|
2030
2030
|
{ key: 0 },
|
|
2031
2031
|
[
|
|
2032
2032
|
T(
|
|
2033
2033
|
"span",
|
|
2034
2034
|
{
|
|
2035
|
-
class:
|
|
2035
|
+
class: K(B.value),
|
|
2036
2036
|
onClick: Pi
|
|
2037
2037
|
},
|
|
2038
2038
|
[
|
|
2039
|
-
G(S(
|
|
2039
|
+
G(S(Le), null, {
|
|
2040
2040
|
default: ee(() => [
|
|
2041
2041
|
G(S(Es))
|
|
2042
2042
|
]),
|
|
@@ -2050,11 +2050,11 @@ const Eo = {
|
|
|
2050
2050
|
T(
|
|
2051
2051
|
"span",
|
|
2052
2052
|
{
|
|
2053
|
-
class:
|
|
2053
|
+
class: K(L.value),
|
|
2054
2054
|
onClick: Li
|
|
2055
2055
|
},
|
|
2056
2056
|
[
|
|
2057
|
-
G(S(
|
|
2057
|
+
G(S(Le), null, {
|
|
2058
2058
|
default: ee(() => [
|
|
2059
2059
|
G(S(xs))
|
|
2060
2060
|
]),
|
|
@@ -2069,20 +2069,20 @@ const Eo = {
|
|
|
2069
2069
|
64
|
|
2070
2070
|
/* STABLE_FRAGMENT */
|
|
2071
2071
|
)),
|
|
2072
|
-
|
|
2072
|
+
Y(" ACTIONS "),
|
|
2073
2073
|
T(
|
|
2074
2074
|
"div",
|
|
2075
2075
|
{
|
|
2076
|
-
class:
|
|
2076
|
+
class: K([S(l).e("btn"), S(l).e("actions")])
|
|
2077
2077
|
},
|
|
2078
2078
|
[
|
|
2079
2079
|
T(
|
|
2080
2080
|
"div",
|
|
2081
2081
|
{
|
|
2082
|
-
class:
|
|
2082
|
+
class: K(S(l).e("actions__inner"))
|
|
2083
2083
|
},
|
|
2084
2084
|
[
|
|
2085
|
-
G(S(
|
|
2085
|
+
G(S(Le), {
|
|
2086
2086
|
onClick: W[1] || (W[1] = (q) => Ue("zoomOut"))
|
|
2087
2087
|
}, {
|
|
2088
2088
|
default: ee(() => [
|
|
@@ -2091,7 +2091,7 @@ const Eo = {
|
|
|
2091
2091
|
_: 1
|
|
2092
2092
|
/* STABLE */
|
|
2093
2093
|
}),
|
|
2094
|
-
G(S(
|
|
2094
|
+
G(S(Le), {
|
|
2095
2095
|
onClick: W[2] || (W[2] = (q) => Ue("zoomIn"))
|
|
2096
2096
|
}, {
|
|
2097
2097
|
default: ee(() => [
|
|
@@ -2103,15 +2103,15 @@ const Eo = {
|
|
|
2103
2103
|
T(
|
|
2104
2104
|
"i",
|
|
2105
2105
|
{
|
|
2106
|
-
class:
|
|
2106
|
+
class: K(S(l).e("actions__divider"))
|
|
2107
2107
|
},
|
|
2108
2108
|
null,
|
|
2109
2109
|
2
|
|
2110
2110
|
/* CLASS */
|
|
2111
2111
|
),
|
|
2112
|
-
G(S(
|
|
2112
|
+
G(S(Le), { onClick: Ii }, {
|
|
2113
2113
|
default: ee(() => [
|
|
2114
|
-
(E(),
|
|
2114
|
+
(E(), fe(dr(v.value.icon)))
|
|
2115
2115
|
]),
|
|
2116
2116
|
_: 1
|
|
2117
2117
|
/* STABLE */
|
|
@@ -2119,13 +2119,13 @@ const Eo = {
|
|
|
2119
2119
|
T(
|
|
2120
2120
|
"i",
|
|
2121
2121
|
{
|
|
2122
|
-
class:
|
|
2122
|
+
class: K(S(l).e("actions__divider"))
|
|
2123
2123
|
},
|
|
2124
2124
|
null,
|
|
2125
2125
|
2
|
|
2126
2126
|
/* CLASS */
|
|
2127
2127
|
),
|
|
2128
|
-
G(S(
|
|
2128
|
+
G(S(Le), {
|
|
2129
2129
|
onClick: W[3] || (W[3] = (q) => Ue("anticlockwise"))
|
|
2130
2130
|
}, {
|
|
2131
2131
|
default: ee(() => [
|
|
@@ -2134,7 +2134,7 @@ const Eo = {
|
|
|
2134
2134
|
_: 1
|
|
2135
2135
|
/* STABLE */
|
|
2136
2136
|
}),
|
|
2137
|
-
G(S(
|
|
2137
|
+
G(S(Le), {
|
|
2138
2138
|
onClick: W[4] || (W[4] = (q) => Ue("clockwise"))
|
|
2139
2139
|
}, {
|
|
2140
2140
|
default: ee(() => [
|
|
@@ -2151,15 +2151,15 @@ const Eo = {
|
|
|
2151
2151
|
2
|
|
2152
2152
|
/* CLASS */
|
|
2153
2153
|
),
|
|
2154
|
-
|
|
2154
|
+
Y(" CANVAS "),
|
|
2155
2155
|
T(
|
|
2156
2156
|
"div",
|
|
2157
2157
|
{
|
|
2158
|
-
class:
|
|
2158
|
+
class: K(S(l).e("canvas"))
|
|
2159
2159
|
},
|
|
2160
2160
|
[
|
|
2161
2161
|
(E(!0), A(
|
|
2162
|
-
|
|
2162
|
+
ke,
|
|
2163
2163
|
null,
|
|
2164
2164
|
kt(F.urlList, (q, pe) => gr((E(), A("img", {
|
|
2165
2165
|
ref_for: !0,
|
|
@@ -2167,11 +2167,11 @@ const Eo = {
|
|
|
2167
2167
|
key: q,
|
|
2168
2168
|
src: q,
|
|
2169
2169
|
style: se(te.value),
|
|
2170
|
-
class:
|
|
2170
|
+
class: K(S(l).e("img")),
|
|
2171
2171
|
crossorigin: F.crossorigin,
|
|
2172
|
-
onLoad:
|
|
2173
|
-
onError:
|
|
2174
|
-
onMousedown:
|
|
2172
|
+
onLoad: le,
|
|
2173
|
+
onError: ue,
|
|
2174
|
+
onMousedown: be
|
|
2175
2175
|
}, null, 46, xo)), [
|
|
2176
2176
|
[pr, pe === p.value]
|
|
2177
2177
|
])),
|
|
@@ -2965,8 +2965,8 @@ function zo(a, o, r) {
|
|
|
2965
2965
|
throw new TypeError("Expected a function");
|
|
2966
2966
|
o = +o || 0, Dn(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
2967
2967
|
function p(z) {
|
|
2968
|
-
var ne = t,
|
|
2969
|
-
return t = e = void 0, u = z, n = a.apply(
|
|
2968
|
+
var ne = t, le = e;
|
|
2969
|
+
return t = e = void 0, u = z, n = a.apply(le, ne), n;
|
|
2970
2970
|
}
|
|
2971
2971
|
function v(z, ne) {
|
|
2972
2972
|
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(z)) : setTimeout(z, ne);
|
|
@@ -2980,12 +2980,12 @@ function zo(a, o, r) {
|
|
|
2980
2980
|
return u = z, s = v(H, o), c ? p(z) : n;
|
|
2981
2981
|
}
|
|
2982
2982
|
function b(z) {
|
|
2983
|
-
var ne = z - l,
|
|
2984
|
-
return h ? Math.min(
|
|
2983
|
+
var ne = z - l, le = z - u, ue = o - ne;
|
|
2984
|
+
return h ? Math.min(ue, i - le) : ue;
|
|
2985
2985
|
}
|
|
2986
2986
|
function w(z) {
|
|
2987
|
-
var ne = z - l,
|
|
2988
|
-
return l === void 0 || ne >= o || ne < 0 || h &&
|
|
2987
|
+
var ne = z - l, le = z - u;
|
|
2988
|
+
return l === void 0 || ne >= o || ne < 0 || h && le >= i;
|
|
2989
2989
|
}
|
|
2990
2990
|
function H() {
|
|
2991
2991
|
var z = Date.now();
|
|
@@ -3006,9 +3006,9 @@ function zo(a, o, r) {
|
|
|
3006
3006
|
return s !== void 0;
|
|
3007
3007
|
}
|
|
3008
3008
|
function J() {
|
|
3009
|
-
for (var z = Date.now(), ne = w(z),
|
|
3010
|
-
|
|
3011
|
-
if (t =
|
|
3009
|
+
for (var z = Date.now(), ne = w(z), le = arguments.length, ue = new Array(le), be = 0; be < le; be++)
|
|
3010
|
+
ue[be] = arguments[be];
|
|
3011
|
+
if (t = ue, e = this, l = z, ne) {
|
|
3012
3012
|
if (s === void 0)
|
|
3013
3013
|
return C(l);
|
|
3014
3014
|
if (h)
|
|
@@ -3199,7 +3199,7 @@ var $i = {
|
|
|
3199
3199
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3200
3200
|
}
|
|
3201
3201
|
}
|
|
3202
|
-
), de = "play", vi = "playing", $e = "ended", rt = "pause", dt = "error", Ot = "seeking",
|
|
3202
|
+
), de = "play", vi = "playing", $e = "ended", rt = "pause", dt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", gt = "waiting", Se = "canplay", $o = "canplaythrough", Be = "durationchange", On = "volumechange", Ie = "loadeddata", Ko = "loadedmetadata", Rn = "ratechange", Mn = "progress", mi = "loadstart", Ke = "emptied", Yo = "stalled", Xo = "suspend", qo = "abort", Zo = "bufferedChange", yi = "focus", Fn = "blur", _i = "ready", Nn = "urlNull", Ge = "autoplay_started", Ci = "autoplay_was_prevented", Rt = "complete", Tt = "replay", ki = "destroy", Mt = "urlchange", ai = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", wi = "definition_change", Jo = "before_definition_change", li = "after_definition_change", Qo = "SEI_PARSED", ea = "retry", Me = "video_resize", ui = "pip_change", zn = "rotate", Vn = "screenShot", xt = "playnext", jn = "shortcut", Wn = "xglog", It = "user_action", Ft = "reset", Gn = "source_error", $n = "source_success", ta = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
|
|
3203
3203
|
STATS_INFO: "stats_info",
|
|
3204
3204
|
STATS_DOWNLOAD: "stats_download",
|
|
3205
3205
|
STATS_RESET: "stats_reset"
|
|
@@ -3212,7 +3212,7 @@ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3212
3212
|
AUTOPLAY_STARTED: Ge,
|
|
3213
3213
|
BEFORE_DEFINITION_CHANGE: Jo,
|
|
3214
3214
|
BUFFER_CHANGE: Zo,
|
|
3215
|
-
CANPLAY:
|
|
3215
|
+
CANPLAY: Se,
|
|
3216
3216
|
CANPLAY_THROUGH: $o,
|
|
3217
3217
|
COMPLETE: Rt,
|
|
3218
3218
|
CSS_FULLSCREEN_CHANGE: Et,
|
|
@@ -3225,9 +3225,9 @@ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3225
3225
|
ENTER_PLAYER: Hn,
|
|
3226
3226
|
ERROR: dt,
|
|
3227
3227
|
FPS_STUCK: Xn,
|
|
3228
|
-
FULLSCREEN_CHANGE:
|
|
3228
|
+
FULLSCREEN_CHANGE: Te,
|
|
3229
3229
|
LEAVE_PLAYER: Bn,
|
|
3230
|
-
LOADED_DATA:
|
|
3230
|
+
LOADED_DATA: Ie,
|
|
3231
3231
|
LOADED_METADATA: Ko,
|
|
3232
3232
|
LOADING: Un,
|
|
3233
3233
|
LOAD_START: mi,
|
|
@@ -3247,7 +3247,7 @@ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3247
3247
|
RETRY: ea,
|
|
3248
3248
|
ROTATE: zn,
|
|
3249
3249
|
SCREEN_SHOT: Vn,
|
|
3250
|
-
SEEKED:
|
|
3250
|
+
SEEKED: xe,
|
|
3251
3251
|
SEEKING: Ot,
|
|
3252
3252
|
SEI_PARSED: Qo,
|
|
3253
3253
|
SHORTCUT: jn,
|
|
@@ -3883,7 +3883,7 @@ function qn(a) {
|
|
|
3883
3883
|
function Zn(a) {
|
|
3884
3884
|
a.__hooks = null;
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function Ee(a, o, r) {
|
|
3887
3887
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3888
3888
|
e[i - 3] = arguments[i];
|
|
3889
3889
|
if (a.__hooks && a.__hooks[o]) {
|
|
@@ -4123,7 +4123,7 @@ const en = /* @__PURE__ */ di(ha);
|
|
|
4123
4123
|
var da = {
|
|
4124
4124
|
CONTROLS: "controls",
|
|
4125
4125
|
ROOT: "root"
|
|
4126
|
-
},
|
|
4126
|
+
}, $ = {
|
|
4127
4127
|
ROOT: "root",
|
|
4128
4128
|
ROOT_LEFT: "rootLeft",
|
|
4129
4129
|
ROOT_RIGHT: "rootRight",
|
|
@@ -4473,7 +4473,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4473
4473
|
}, {
|
|
4474
4474
|
key: "POSITIONS",
|
|
4475
4475
|
get: function() {
|
|
4476
|
-
return
|
|
4476
|
+
return $;
|
|
4477
4477
|
}
|
|
4478
4478
|
}]), r;
|
|
4479
4479
|
}(Fe), ya = /* @__PURE__ */ function() {
|
|
@@ -4964,16 +4964,16 @@ var ka = function(o, r) {
|
|
|
4964
4964
|
if (!i.root) {
|
|
4965
4965
|
var l = i.position ? i.position : i.config && i.config.position ? i.config.position : s.position;
|
|
4966
4966
|
switch (l) {
|
|
4967
|
-
case
|
|
4967
|
+
case $.CONTROLS_LEFT:
|
|
4968
4968
|
i.root = this.left;
|
|
4969
4969
|
break;
|
|
4970
|
-
case
|
|
4970
|
+
case $.CONTROLS_RIGHT:
|
|
4971
4971
|
i.root = this.right;
|
|
4972
4972
|
break;
|
|
4973
|
-
case
|
|
4973
|
+
case $.CONTROLS_CENTER:
|
|
4974
4974
|
i.root = this.center;
|
|
4975
4975
|
break;
|
|
4976
|
-
case
|
|
4976
|
+
case $.CONTROLS:
|
|
4977
4977
|
i.root = this.root;
|
|
4978
4978
|
break;
|
|
4979
4979
|
default:
|
|
@@ -5104,7 +5104,7 @@ var ka = function(o, r) {
|
|
|
5104
5104
|
FORWARD: "forward",
|
|
5105
5105
|
LIVE_TIP: "Live"
|
|
5106
5106
|
}
|
|
5107
|
-
},
|
|
5107
|
+
}, ce = {
|
|
5108
5108
|
lang: {},
|
|
5109
5109
|
langKeys: [],
|
|
5110
5110
|
textKeys: []
|
|
@@ -5120,13 +5120,13 @@ function ht(a, o) {
|
|
|
5120
5120
|
}), a;
|
|
5121
5121
|
}
|
|
5122
5122
|
function Jn() {
|
|
5123
|
-
Object.keys(
|
|
5124
|
-
|
|
5123
|
+
Object.keys(ce.lang.en).map(function(a) {
|
|
5124
|
+
ce.textKeys[a] = a;
|
|
5125
5125
|
});
|
|
5126
5126
|
}
|
|
5127
5127
|
function Ta(a, o) {
|
|
5128
5128
|
var r = [];
|
|
5129
|
-
if (o || (o =
|
|
5129
|
+
if (o || (o = ce), !!o.lang) {
|
|
5130
5130
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
5131
5131
|
var n = i === "zh" ? "zh-cn" : i;
|
|
5132
5132
|
return {
|
|
@@ -5142,7 +5142,7 @@ function Ta(a, o) {
|
|
|
5142
5142
|
}
|
|
5143
5143
|
function bi(a, o) {
|
|
5144
5144
|
var r = a.LANG;
|
|
5145
|
-
if (o || (o =
|
|
5145
|
+
if (o || (o = ce), !!o.lang) {
|
|
5146
5146
|
var t = a.TEXT || {};
|
|
5147
5147
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? ht(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Jn();
|
|
5148
5148
|
}
|
|
@@ -5154,21 +5154,21 @@ function Ea(a) {
|
|
|
5154
5154
|
textKeys: {},
|
|
5155
5155
|
pId: a
|
|
5156
5156
|
};
|
|
5157
|
-
return ht(r.lang,
|
|
5157
|
+
return ht(r.lang, ce.lang), (o = r.langKeys).push.apply(o, ve(ce.langKeys)), ht(r.textKeys, ce.textKeys), r;
|
|
5158
5158
|
}
|
|
5159
5159
|
bi(ba);
|
|
5160
5160
|
var nt = {
|
|
5161
5161
|
get textKeys() {
|
|
5162
|
-
return
|
|
5162
|
+
return ce.textKeys;
|
|
5163
5163
|
},
|
|
5164
5164
|
get langKeys() {
|
|
5165
|
-
return
|
|
5165
|
+
return ce.langKeys;
|
|
5166
5166
|
},
|
|
5167
5167
|
get lang() {
|
|
5168
5168
|
var a = {};
|
|
5169
|
-
return
|
|
5170
|
-
a[o] =
|
|
5171
|
-
}),
|
|
5169
|
+
return ce.langKeys.map(function(o) {
|
|
5170
|
+
a[o] = ce.lang[o];
|
|
5171
|
+
}), ce.lang["zh-cn"] && (a.zh = ce.lang["zh-cn"] || {}), a;
|
|
5172
5172
|
},
|
|
5173
5173
|
extend: Ta,
|
|
5174
5174
|
use: bi,
|
|
@@ -5277,7 +5277,7 @@ function Sa(a) {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
return null;
|
|
5279
5279
|
}
|
|
5280
|
-
var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0,
|
|
5280
|
+
var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Ae = null, Nt = /* @__PURE__ */ function(a) {
|
|
5281
5281
|
D(r, a);
|
|
5282
5282
|
var o = O(r);
|
|
5283
5283
|
function r(t) {
|
|
@@ -5287,7 +5287,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5287
5287
|
e = o.call(this, i), _(m(e), "canPlayFunc", function() {
|
|
5288
5288
|
if (e.config) {
|
|
5289
5289
|
var p = e.config, v = p.autoplay, y = p.defaultPlaybackRate;
|
|
5290
|
-
U.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (v || e._useAutoplay) && e.mediaPlay(), e.off(
|
|
5290
|
+
U.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (v || e._useAutoplay) && e.mediaPlay(), e.off(Se, e.canPlayFunc), e.removeClass(k.ENTER);
|
|
5291
5291
|
}
|
|
5292
5292
|
}), _(m(e), "onFullscreenChange", function(p, v) {
|
|
5293
5293
|
var y = function() {
|
|
@@ -5309,7 +5309,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5309
5309
|
});
|
|
5310
5310
|
var b = Wo(C, e.playerId, Ve);
|
|
5311
5311
|
if (v || C && (C === e._fullscreenEl || b))
|
|
5312
|
-
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(
|
|
5312
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(Te, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5313
5313
|
else if (e.fullscreen) {
|
|
5314
5314
|
y();
|
|
5315
5315
|
var w = m(e), H = w._fullScreenOffset, x = w.config;
|
|
@@ -5321,7 +5321,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5321
5321
|
var B = e._fullscreenEl;
|
|
5322
5322
|
!B && (e.root.contains(p.target) || p.target === e.root) && (B = p.target), e.recoverFullStyle(e.root, B, k.FULLSCREEN);
|
|
5323
5323
|
}
|
|
5324
|
-
e._fullscreenEl = null, e.emit(
|
|
5324
|
+
e._fullscreenEl = null, e.emit(Te, !1);
|
|
5325
5325
|
}
|
|
5326
5326
|
}), _(m(e), "_onWebkitbeginfullscreen", function(p) {
|
|
5327
5327
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
@@ -5358,7 +5358,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5358
5358
|
duration: 0
|
|
5359
5359
|
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), N.os.isAndroid && N.osVersion > 0 && N.osVersion < 6 && (e.config.autoplay = !1), e.database = new sa(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5360
5360
|
isActiveLocked: !1
|
|
5361
|
-
}, e.instManager =
|
|
5361
|
+
}, e.instManager = Ae;
|
|
5362
5362
|
var l = e._initDOM();
|
|
5363
5363
|
if (!l)
|
|
5364
5364
|
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), pi(e);
|
|
@@ -5389,7 +5389,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5389
5389
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5390
5390
|
}
|
|
5391
5391
|
var s = Sa(this.root);
|
|
5392
|
-
s && (U.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ve, this.playerId), (e =
|
|
5392
|
+
s && (U.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ve, this.playerId), (e = Ae) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5393
5393
|
var l = this.constructor.XgVideoProxy;
|
|
5394
5394
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
5395
5395
|
var u = this.innerContainer || this.root;
|
|
@@ -5438,7 +5438,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5438
5438
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
5439
5439
|
}), Xi.forEach(function(i) {
|
|
5440
5440
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5441
|
-
}), N.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
5441
|
+
}), N.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ie, this.resize), this.playFunc = function() {
|
|
5442
5442
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
5443
5443
|
}, this.once(de, this.playFunc);
|
|
5444
5444
|
}
|
|
@@ -5448,7 +5448,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5448
5448
|
var e = this;
|
|
5449
5449
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), Xi.forEach(function(i) {
|
|
5450
5450
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5451
|
-
}), this.playFunc && this.off(de, this.playFunc), this.off(
|
|
5451
|
+
}), this.playFunc && this.off(de, this.playFunc), this.off(Se, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5452
5452
|
}
|
|
5453
5453
|
}, {
|
|
5454
5454
|
key: "_clearUserTimer",
|
|
@@ -5466,7 +5466,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5466
5466
|
var s = this.media.readyState;
|
|
5467
5467
|
U.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (N.os.isIpad || N.os.isPhone) && this.mediaPlay());
|
|
5468
5468
|
var l = this.config.startTime;
|
|
5469
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
5469
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Se, this.canPlayFunc), (!this.hasStart || this.state < V.ATTACHED) && ie.afterInit(this), this.hasStart = !0, this.setState(V.ATTACHED), f.setTimeout(this, function() {
|
|
5470
5470
|
i.emit(Rt);
|
|
5471
5471
|
}, 0);
|
|
5472
5472
|
}
|
|
@@ -5514,13 +5514,13 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5514
5514
|
value: function(e) {
|
|
5515
5515
|
var i = null;
|
|
5516
5516
|
switch (e) {
|
|
5517
|
-
case
|
|
5517
|
+
case $.ROOT_RIGHT:
|
|
5518
5518
|
this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
5519
5519
|
break;
|
|
5520
|
-
case
|
|
5520
|
+
case $.ROOT_LEFT:
|
|
5521
5521
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
5522
5522
|
break;
|
|
5523
|
-
case
|
|
5523
|
+
case $.ROOT_TOP:
|
|
5524
5524
|
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, k.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
5525
5525
|
break;
|
|
5526
5526
|
default:
|
|
@@ -5680,7 +5680,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5680
5680
|
key: "play",
|
|
5681
5681
|
value: function() {
|
|
5682
5682
|
var e = this;
|
|
5683
|
-
return this.removeClass(k.PAUSED),
|
|
5683
|
+
return this.removeClass(k.PAUSED), Ee(this, "play", function() {
|
|
5684
5684
|
return e.mediaPlay();
|
|
5685
5685
|
});
|
|
5686
5686
|
}
|
|
@@ -5688,7 +5688,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5688
5688
|
key: "pause",
|
|
5689
5689
|
value: function() {
|
|
5690
5690
|
var e = this;
|
|
5691
|
-
|
|
5691
|
+
Ee(this, "pause", function() {
|
|
5692
5692
|
M(R(r.prototype), "pause", e).call(e);
|
|
5693
5693
|
});
|
|
5694
5694
|
}
|
|
@@ -5698,7 +5698,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5698
5698
|
var n = this;
|
|
5699
5699
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
5700
5700
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
5701
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
5701
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(xe, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
5702
5702
|
switch (n.removeClass(k.ENTER), n.isSeeking = !1, c) {
|
|
5703
5703
|
case "play":
|
|
5704
5704
|
n.play();
|
|
@@ -5710,7 +5710,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5710
5710
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5711
5711
|
}
|
|
5712
5712
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5713
|
-
}, this.once(
|
|
5713
|
+
}, this.once(xe, this._onceSeekCanplay), this.state < V.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5714
5714
|
}
|
|
5715
5715
|
}
|
|
5716
5716
|
}, {
|
|
@@ -5752,7 +5752,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5752
5752
|
value: function() {
|
|
5753
5753
|
this.load(), this.reloadFunc = function() {
|
|
5754
5754
|
this.play();
|
|
5755
|
-
}, this.once(
|
|
5755
|
+
}, this.once(Ie, this.reloadFunc);
|
|
5756
5756
|
}
|
|
5757
5757
|
}, {
|
|
5758
5758
|
key: "resetState",
|
|
@@ -5782,7 +5782,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5782
5782
|
value: function() {
|
|
5783
5783
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5784
5784
|
if (!(!s || !l)) {
|
|
5785
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ve), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ki), (e =
|
|
5785
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ve), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ki), (e = Ae) === null || e === void 0 || e.remove(this), ie.destroy(this), Zn(this), M(R(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5786
5786
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5787
5787
|
n.removeChild(u[c]);
|
|
5788
5788
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5800,8 +5800,8 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5800
5800
|
key: "replay",
|
|
5801
5801
|
value: function() {
|
|
5802
5802
|
var e = this;
|
|
5803
|
-
this.removeClass(k.ENDED), this.currentTime = 0, this.isSeeking = !1,
|
|
5804
|
-
e.once(
|
|
5803
|
+
this.removeClass(k.ENDED), this.currentTime = 0, this.isSeeking = !1, Ee(this, "replay", function() {
|
|
5804
|
+
e.once(xe, function() {
|
|
5805
5805
|
var i = e.mediaPlay();
|
|
5806
5806
|
i && i.catch && i.catch(function(n) {
|
|
5807
5807
|
console.log(n);
|
|
@@ -5813,11 +5813,11 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5813
5813
|
key: "retry",
|
|
5814
5814
|
value: function() {
|
|
5815
5815
|
var e = this;
|
|
5816
|
-
this.removeClass(k.ERROR), this.addClass(k.LOADING),
|
|
5816
|
+
this.removeClass(k.ERROR), this.addClass(k.LOADING), Ee(this, "retry", function() {
|
|
5817
5817
|
var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
|
|
5818
5818
|
url: n
|
|
5819
5819
|
} : e._preProcessUrl(n);
|
|
5820
|
-
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
5820
|
+
e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(Se, function() {
|
|
5821
5821
|
e.mediaPlay();
|
|
5822
5822
|
});
|
|
5823
5823
|
});
|
|
@@ -5885,7 +5885,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5885
5885
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
5886
5886
|
this.changeFullStyle(this.root, e, i);
|
|
5887
5887
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5888
|
-
l && (this.fullscreen = !0, this.emit(
|
|
5888
|
+
l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Et, !0);
|
|
5889
5889
|
}
|
|
5890
5890
|
}, {
|
|
5891
5891
|
key: "exitCssFullscreen",
|
|
@@ -5895,7 +5895,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5895
5895
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
5896
5896
|
else {
|
|
5897
5897
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5898
|
-
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
5898
|
+
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Te, !1)) : this.removeClass(e);
|
|
5899
5899
|
}
|
|
5900
5900
|
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Et, !1);
|
|
5901
5901
|
}
|
|
@@ -5905,13 +5905,13 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
5905
5905
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5906
5906
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
5907
5907
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
|
|
5908
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(
|
|
5908
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Te, !0);
|
|
5909
5909
|
}
|
|
5910
5910
|
}, {
|
|
5911
5911
|
key: "exitRotateFullscreen",
|
|
5912
5912
|
value: function(e) {
|
|
5913
5913
|
var i = this._fullscreenEl !== this.root ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
|
|
5914
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
5914
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Te, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
5915
5915
|
}
|
|
5916
5916
|
}, {
|
|
5917
5917
|
key: "setRotateDeg",
|
|
@@ -6147,7 +6147,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
6147
6147
|
key: "playNext",
|
|
6148
6148
|
value: function(e) {
|
|
6149
6149
|
var i = this;
|
|
6150
|
-
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0,
|
|
6150
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Ee(this, "playnext", function() {
|
|
6151
6151
|
i.start(), i.emit(xt, e);
|
|
6152
6152
|
});
|
|
6153
6153
|
}
|
|
@@ -6417,7 +6417,7 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
6417
6417
|
key: "setUserActive",
|
|
6418
6418
|
value: function(e, i) {
|
|
6419
6419
|
var n;
|
|
6420
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
6420
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n = Ae) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
6421
6421
|
}
|
|
6422
6422
|
}], [{
|
|
6423
6423
|
key: "debugger",
|
|
@@ -6430,22 +6430,22 @@ var xa = ["play", "pause", "replay", "retry"], on = 0, an = 0, Le = null, Nt = /
|
|
|
6430
6430
|
}, {
|
|
6431
6431
|
key: "instManager",
|
|
6432
6432
|
get: function() {
|
|
6433
|
-
return
|
|
6433
|
+
return Ae;
|
|
6434
6434
|
},
|
|
6435
6435
|
set: function(e) {
|
|
6436
|
-
|
|
6436
|
+
Ae = e;
|
|
6437
6437
|
}
|
|
6438
6438
|
}, {
|
|
6439
6439
|
key: "getCurrentUserActivePlayerId",
|
|
6440
6440
|
value: function() {
|
|
6441
6441
|
var e;
|
|
6442
|
-
return (e =
|
|
6442
|
+
return (e = Ae) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
6443
6443
|
}
|
|
6444
6444
|
}, {
|
|
6445
6445
|
key: "setCurrentUserActive",
|
|
6446
6446
|
value: function(e, i) {
|
|
6447
6447
|
var n;
|
|
6448
|
-
(n =
|
|
6448
|
+
(n = Ae) === null || n === void 0 || n.setActive(e, i);
|
|
6449
6449
|
}
|
|
6450
6450
|
}, {
|
|
6451
6451
|
key: "isHevcSupported",
|
|
@@ -6475,7 +6475,7 @@ Nt.instManager = Qn.getInstance();
|
|
|
6475
6475
|
function re() {
|
|
6476
6476
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6477
6477
|
}
|
|
6478
|
-
var
|
|
6478
|
+
var De = {
|
|
6479
6479
|
LOAD_START: "loadstart",
|
|
6480
6480
|
LOADED_DATA: "loadeddata",
|
|
6481
6481
|
FIRST_FRAME: "firstFrame",
|
|
@@ -6504,13 +6504,13 @@ var Ae = {
|
|
|
6504
6504
|
isLs: !1
|
|
6505
6505
|
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = re(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(m(t), t._waitTimer), t._waittTimer && f.clearTimeout(m(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
6506
6506
|
}), _(m(t), "_onSeeking", function() {
|
|
6507
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = re(), t.emitLog(
|
|
6507
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = re(), t.emitLog(De.SEEK_START, {
|
|
6508
6508
|
start: re()
|
|
6509
6509
|
}));
|
|
6510
6510
|
}), _(m(t), "_onSeeked", function() {
|
|
6511
6511
|
t.suspendSeekingStatus("seeked");
|
|
6512
6512
|
}), _(m(t), "_onWaitingLoadStart", function() {
|
|
6513
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = re(), t.fixedWaitingStart = re(), t._waitType = 1, t.emitLog(
|
|
6513
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = re(), t.fixedWaitingStart = re(), t._waitType = 1, t.emitLog(De.WAIT_START, {
|
|
6514
6514
|
fixedStart: t.fixedWaitingStart,
|
|
6515
6515
|
start: t.waitingStart,
|
|
6516
6516
|
type: 1,
|
|
@@ -6518,7 +6518,7 @@ var Ae = {
|
|
|
6518
6518
|
}));
|
|
6519
6519
|
}), _(m(t), "_onWaiting", function() {
|
|
6520
6520
|
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = re(), t._waitTimer = f.setTimeout(m(t), function() {
|
|
6521
|
-
t._isWaiting && (t.waitingStart = re(), f.clearTimeout(m(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(
|
|
6521
|
+
t._isWaiting && (t.waitingStart = re(), f.clearTimeout(m(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(De.WAIT_START, {
|
|
6522
6522
|
fixedStart: t.fixedWaitingStart,
|
|
6523
6523
|
start: t.waitingStart,
|
|
6524
6524
|
type: t._waitType,
|
|
@@ -6537,16 +6537,16 @@ var Ae = {
|
|
|
6537
6537
|
var e = this;
|
|
6538
6538
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = re(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(mi, function() {
|
|
6539
6539
|
var i = e._state, n = i.autoplayStart, s = i.isFFSend;
|
|
6540
|
-
e.startCostTime = re() - e.newPointTime, U.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(
|
|
6541
|
-
}), this.on(
|
|
6540
|
+
e.startCostTime = re() - e.newPointTime, U.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(De.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = re(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
6541
|
+
}), this.on(Ie, function() {
|
|
6542
6542
|
e.vt = re(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6543
6543
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6544
|
-
U.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(
|
|
6545
|
-
}), this.on(Ot, this._onSeeking), this.on(
|
|
6544
|
+
U.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(De.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6545
|
+
}), this.on(Ot, this._onSeeking), this.on(xe, this._onSeeked), this.on(ki, function() {
|
|
6546
6546
|
e.endState("destroy");
|
|
6547
6547
|
}), this.on(Mt, function() {
|
|
6548
6548
|
e.endState("urlChange"), U.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6549
|
-
}), this.on([vi,
|
|
6549
|
+
}), this.on([vi, Se], this._onPlaying), this.on(gt, this._onWaiting), this.on(dt, this._onError), this.on(Ft, function() {
|
|
6550
6550
|
U.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6551
6551
|
});
|
|
6552
6552
|
}
|
|
@@ -6560,7 +6560,7 @@ var Ae = {
|
|
|
6560
6560
|
value: function(e) {
|
|
6561
6561
|
this.s = re();
|
|
6562
6562
|
var i = this._state, n = i.isFFLoading, s = i.isFFSend;
|
|
6563
|
-
U.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (U.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(
|
|
6563
|
+
U.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (U.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(De.FIRST_FRAME, {
|
|
6564
6564
|
fvt: this.fvt,
|
|
6565
6565
|
costTime: this.fvt,
|
|
6566
6566
|
vt: this.vt,
|
|
@@ -6586,7 +6586,7 @@ var Ae = {
|
|
|
6586
6586
|
value: function(e) {
|
|
6587
6587
|
if (this.seekingStart) {
|
|
6588
6588
|
var i = re(), n = i - this.seekingStart;
|
|
6589
|
-
this.seekingStart = 0, this.emitLog(
|
|
6589
|
+
this.seekingStart = 0, this.emitLog(De.SEEK_END, {
|
|
6590
6590
|
end: i,
|
|
6591
6591
|
costTime: n,
|
|
6592
6592
|
endType: e
|
|
@@ -6598,7 +6598,7 @@ var Ae = {
|
|
|
6598
6598
|
value: function(e) {
|
|
6599
6599
|
if (this._waitTimer && (f.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (f.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
|
|
6600
6600
|
var i = re(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
|
|
6601
|
-
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(
|
|
6601
|
+
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(De.WAIT_END, {
|
|
6602
6602
|
fixedCostTime: s > l ? l : s,
|
|
6603
6603
|
costTime: n > l ? l : n,
|
|
6604
6604
|
type: e === "loadeddata" ? 1 : this._waitType,
|
|
@@ -6847,23 +6847,23 @@ function Ei() {
|
|
|
6847
6847
|
</svg>
|
|
6848
6848
|
`, "image/svg+xml").firstChild;
|
|
6849
6849
|
}
|
|
6850
|
-
var
|
|
6850
|
+
var we = {};
|
|
6851
6851
|
function Da(a, o) {
|
|
6852
6852
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6853
6853
|
start: null,
|
|
6854
6854
|
end: null
|
|
6855
6855
|
};
|
|
6856
|
-
return
|
|
6857
|
-
r.end && r.end(), window.clearTimeout(
|
|
6858
|
-
}, o),
|
|
6856
|
+
return we[a] && window.clearTimeout(we[a].id), we[a] = {}, r.start && r.start(), we[a].id = window.setTimeout(function() {
|
|
6857
|
+
r.end && r.end(), window.clearTimeout(we[a].id), delete we[a];
|
|
6858
|
+
}, o), we[a].id;
|
|
6859
6859
|
}
|
|
6860
6860
|
function ln(a) {
|
|
6861
6861
|
if (a) {
|
|
6862
6862
|
window.clearTimeout(a);
|
|
6863
6863
|
return;
|
|
6864
6864
|
}
|
|
6865
|
-
Object.keys(
|
|
6866
|
-
window.clearTimeout(
|
|
6865
|
+
Object.keys(we).map(function(o) {
|
|
6866
|
+
window.clearTimeout(we[o].id), delete we[o];
|
|
6867
6867
|
});
|
|
6868
6868
|
}
|
|
6869
6869
|
var Oa = /* @__PURE__ */ function(a) {
|
|
@@ -7130,7 +7130,7 @@ var un = /* @__PURE__ */ function(a) {
|
|
|
7130
7130
|
key: "defaultConfig",
|
|
7131
7131
|
get: function() {
|
|
7132
7132
|
return {
|
|
7133
|
-
position:
|
|
7133
|
+
position: $.CONTROLS_RIGHT,
|
|
7134
7134
|
index: 10
|
|
7135
7135
|
};
|
|
7136
7136
|
}
|
|
@@ -7584,7 +7584,7 @@ var Xt = {
|
|
|
7584
7584
|
}), _(m(t), "onVideoClick", function(s) {
|
|
7585
7585
|
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7586
7586
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
7587
|
-
t._clickCount && (t._clickCount--,
|
|
7587
|
+
t._clickCount && (t._clickCount--, Ee(m(t), qt[0], function(h, d) {
|
|
7588
7588
|
t.switchPlayPause(d.e);
|
|
7589
7589
|
}, {
|
|
7590
7590
|
e: s,
|
|
@@ -7598,7 +7598,7 @@ var Xt = {
|
|
|
7598
7598
|
t._clickCount = 0;
|
|
7599
7599
|
return;
|
|
7600
7600
|
}
|
|
7601
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(),
|
|
7601
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Ee(m(t), qt[1], function(h, d) {
|
|
7602
7602
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7603
7603
|
props: "fullscreen",
|
|
7604
7604
|
from: u.fullscreen,
|
|
@@ -7663,7 +7663,7 @@ var Xt = {
|
|
|
7663
7663
|
return {};
|
|
7664
7664
|
}
|
|
7665
7665
|
}]), r;
|
|
7666
|
-
}(Fe),
|
|
7666
|
+
}(Fe), Oe = {
|
|
7667
7667
|
PRESS: "press",
|
|
7668
7668
|
PRESS_END: "pressend",
|
|
7669
7669
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7702,15 +7702,15 @@ var Va = /* @__PURE__ */ function() {
|
|
|
7702
7702
|
};
|
|
7703
7703
|
I(this, a), _(this, "onTouchStart", function(e) {
|
|
7704
7704
|
var i = r._pos, n = r.root, s = dn(e.touches);
|
|
7705
|
-
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(
|
|
7705
|
+
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(Oe.TOUCH_START, e);
|
|
7706
7706
|
}), _(this, "onTouchCancel", function(e) {
|
|
7707
7707
|
r.onTouchEnd(e);
|
|
7708
7708
|
}), _(this, "onTouchEnd", function(e) {
|
|
7709
7709
|
var i = r._pos, n = r.root;
|
|
7710
|
-
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(
|
|
7710
|
+
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(Oe.PRESS_END, e), r.trigger(Oe.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7711
7711
|
}), _(this, "onTouchMove", function(e) {
|
|
7712
7712
|
var i = r._pos, n = r.config, s = dn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
|
|
7713
|
-
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
7713
|
+
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Oe.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Oe.TOUCH_MOVE, e));
|
|
7714
7714
|
}), this._pos = {
|
|
7715
7715
|
moving: !1,
|
|
7716
7716
|
start: !1,
|
|
@@ -7730,7 +7730,7 @@ var Va = /* @__PURE__ */ function() {
|
|
|
7730
7730
|
value: function(r) {
|
|
7731
7731
|
var t = this, e = this.config;
|
|
7732
7732
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
7733
|
-
t.trigger(
|
|
7733
|
+
t.trigger(Oe.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
7734
7734
|
}, e.pressDelay);
|
|
7735
7735
|
}
|
|
7736
7736
|
}, {
|
|
@@ -7743,11 +7743,11 @@ var Va = /* @__PURE__ */ function() {
|
|
|
7743
7743
|
value: function(r) {
|
|
7744
7744
|
var t = this, e = this.config;
|
|
7745
7745
|
if (this.dbIntrvalId) {
|
|
7746
|
-
this.__clearDb(), this.trigger(
|
|
7746
|
+
this.__clearDb(), this.trigger(Oe.DOUBlE_CLICK, r);
|
|
7747
7747
|
return;
|
|
7748
7748
|
}
|
|
7749
7749
|
this.dbIntrvalId = setTimeout(function() {
|
|
7750
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
7750
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(Oe.CLICK, r);
|
|
7751
7751
|
}, e.dbClickDelay);
|
|
7752
7752
|
}
|
|
7753
7753
|
}, {
|
|
@@ -7908,7 +7908,7 @@ var Ze = {
|
|
|
7908
7908
|
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Be, function() {
|
|
7909
7909
|
var d = e.player, g = e.config;
|
|
7910
7910
|
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7911
|
-
}), this.on([
|
|
7911
|
+
}), this.on([Se, $e], function() {
|
|
7912
7912
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
7913
7913
|
!p && g > 0 && (e.pos.time = 0);
|
|
7914
7914
|
});
|
|
@@ -8075,7 +8075,7 @@ var Ze = {
|
|
|
8075
8075
|
key: "onClick",
|
|
8076
8076
|
value: function(e) {
|
|
8077
8077
|
var i = this, n = this.player;
|
|
8078
|
-
|
|
8078
|
+
Ee(this, Jt[0], function(s, l) {
|
|
8079
8079
|
i.clickHandler(l.e);
|
|
8080
8080
|
}, {
|
|
8081
8081
|
e,
|
|
@@ -8086,7 +8086,7 @@ var Ze = {
|
|
|
8086
8086
|
key: "onDbClick",
|
|
8087
8087
|
value: function(e) {
|
|
8088
8088
|
var i = this, n = this.player;
|
|
8089
|
-
|
|
8089
|
+
Ee(this, Jt[1], function(s, l) {
|
|
8090
8090
|
i.dbClickHandler(l.e);
|
|
8091
8091
|
}, {
|
|
8092
8092
|
e,
|
|
@@ -8572,7 +8572,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
8572
8572
|
key: "defaultConfig",
|
|
8573
8573
|
get: function() {
|
|
8574
8574
|
return {
|
|
8575
|
-
position:
|
|
8575
|
+
position: $.ROOT
|
|
8576
8576
|
};
|
|
8577
8577
|
}
|
|
8578
8578
|
}]), r;
|
|
@@ -8949,7 +8949,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
8949
8949
|
e.onMouseLeave();
|
|
8950
8950
|
}), this.on(he, function() {
|
|
8951
8951
|
e.onTimeupdate();
|
|
8952
|
-
}), this.on(
|
|
8952
|
+
}), this.on(xe, function() {
|
|
8953
8953
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8954
8954
|
}), this.on(Mn, function() {
|
|
8955
8955
|
e.onCacheUpdate();
|
|
@@ -9170,7 +9170,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
9170
9170
|
key: "defaultConfig",
|
|
9171
9171
|
get: function() {
|
|
9172
9172
|
return {
|
|
9173
|
-
position:
|
|
9173
|
+
position: $.CONTROLS_CENTER,
|
|
9174
9174
|
index: 0,
|
|
9175
9175
|
disable: !1,
|
|
9176
9176
|
isDragingSeek: !0,
|
|
@@ -9308,7 +9308,7 @@ var Ka = /* @__PURE__ */ function(a) {
|
|
|
9308
9308
|
key: "defaultConfig",
|
|
9309
9309
|
get: function() {
|
|
9310
9310
|
return {
|
|
9311
|
-
position:
|
|
9311
|
+
position: $.CONTROLS_LEFT,
|
|
9312
9312
|
index: 0,
|
|
9313
9313
|
disable: !1
|
|
9314
9314
|
};
|
|
@@ -9377,7 +9377,7 @@ var Qa = /* @__PURE__ */ function(a) {
|
|
|
9377
9377
|
key: "defaultConfig",
|
|
9378
9378
|
get: function() {
|
|
9379
9379
|
return {
|
|
9380
|
-
position:
|
|
9380
|
+
position: $.ROOT_TOP,
|
|
9381
9381
|
index: 0
|
|
9382
9382
|
};
|
|
9383
9383
|
}
|
|
@@ -9426,7 +9426,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9426
9426
|
to: !c
|
|
9427
9427
|
});
|
|
9428
9428
|
}
|
|
9429
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
9429
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Te, function(l) {
|
|
9430
9430
|
var u = e.find(".xg-tips");
|
|
9431
9431
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9432
9432
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
@@ -9518,7 +9518,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9518
9518
|
key: "defaultConfig",
|
|
9519
9519
|
get: function() {
|
|
9520
9520
|
return {
|
|
9521
|
-
position:
|
|
9521
|
+
position: $.CONTROLS_RIGHT,
|
|
9522
9522
|
index: 0,
|
|
9523
9523
|
useCssFullscreen: !1,
|
|
9524
9524
|
rotateFullscreen: !1,
|
|
@@ -9559,7 +9559,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9559
9559
|
key: "afterCreate",
|
|
9560
9560
|
value: function() {
|
|
9561
9561
|
var e = this, i = this.player.controls.config.mode;
|
|
9562
|
-
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Be,
|
|
9562
|
+
this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Be, xe, he], function(n) {
|
|
9563
9563
|
n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9564
9564
|
}), this.on($e, function() {
|
|
9565
9565
|
e.onTimeUpdate(!0);
|
|
@@ -9647,7 +9647,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9647
9647
|
var e = this, i = this.player, n = function() {
|
|
9648
9648
|
e.isActiving = !1;
|
|
9649
9649
|
};
|
|
9650
|
-
this.off(
|
|
9650
|
+
this.off(xe, n), i.isSeeking && i.media.seeking ? this.once(xe, n) : this.isActiving = !1;
|
|
9651
9651
|
}
|
|
9652
9652
|
}, {
|
|
9653
9653
|
key: "destroy",
|
|
@@ -9675,7 +9675,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9675
9675
|
key: "defaultConfig",
|
|
9676
9676
|
get: function() {
|
|
9677
9677
|
return {
|
|
9678
|
-
position:
|
|
9678
|
+
position: $.CONTROLS_LEFT,
|
|
9679
9679
|
index: 2,
|
|
9680
9680
|
disable: !1
|
|
9681
9681
|
};
|
|
@@ -9737,7 +9737,7 @@ var il = /* @__PURE__ */ function(a) {
|
|
|
9737
9737
|
return P(r, [{
|
|
9738
9738
|
key: "afterCreate",
|
|
9739
9739
|
value: function() {
|
|
9740
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Be, this._onDurationChange), this.on(
|
|
9740
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Be, this._onDurationChange), this.on(Ie, this._onLoadedData), this.on(he, this._onTimeupdate), this.on(Ot, this._onSeeking), this.on(de, this._onPlay);
|
|
9741
9741
|
}
|
|
9742
9742
|
}, {
|
|
9743
9743
|
key: "setConfig",
|
|
@@ -9918,7 +9918,7 @@ var ll = /* @__PURE__ */ function(a) {
|
|
|
9918
9918
|
pre: function(u) {
|
|
9919
9919
|
u.preventDefault(), u.stopPropagation();
|
|
9920
9920
|
}
|
|
9921
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), N.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(On, this.onVolumeChange), this.once(
|
|
9921
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), N.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(On, this.onVolumeChange), this.once(Ie, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9922
9922
|
}
|
|
9923
9923
|
}
|
|
9924
9924
|
}, {
|
|
@@ -10025,7 +10025,7 @@ var ll = /* @__PURE__ */ function(a) {
|
|
|
10025
10025
|
key: "defaultConfig",
|
|
10026
10026
|
get: function() {
|
|
10027
10027
|
return {
|
|
10028
|
-
position:
|
|
10028
|
+
position: $.CONTROLS_RIGHT,
|
|
10029
10029
|
index: 1,
|
|
10030
10030
|
disable: !1,
|
|
10031
10031
|
showValueLabel: !1,
|
|
@@ -10135,7 +10135,7 @@ var cl = /* @__PURE__ */ function(a) {
|
|
|
10135
10135
|
key: "defaultConfig",
|
|
10136
10136
|
get: function() {
|
|
10137
10137
|
return {
|
|
10138
|
-
position:
|
|
10138
|
+
position: $.CONTROLS_RIGHT,
|
|
10139
10139
|
index: 6,
|
|
10140
10140
|
innerRotate: !0,
|
|
10141
10141
|
clockwise: !1,
|
|
@@ -10352,7 +10352,7 @@ var Je = {
|
|
|
10352
10352
|
key: "defaultConfig",
|
|
10353
10353
|
get: function() {
|
|
10354
10354
|
return {
|
|
10355
|
-
position:
|
|
10355
|
+
position: $.CONTROLS_RIGHT,
|
|
10356
10356
|
index: 6,
|
|
10357
10357
|
showIcon: !1,
|
|
10358
10358
|
preferDocument: !1,
|
|
@@ -10436,7 +10436,7 @@ var pl = /* @__PURE__ */ function(a) {
|
|
|
10436
10436
|
key: "defaultConfig",
|
|
10437
10437
|
get: function() {
|
|
10438
10438
|
return {
|
|
10439
|
-
position:
|
|
10439
|
+
position: $.CONTROLS_LEFT,
|
|
10440
10440
|
index: 1,
|
|
10441
10441
|
url: null,
|
|
10442
10442
|
urlList: []
|
|
@@ -10476,10 +10476,10 @@ var pl = /* @__PURE__ */ function(a) {
|
|
|
10476
10476
|
}
|
|
10477
10477
|
v = u instanceof g ? u : new g([u], { type: l });
|
|
10478
10478
|
function x(L) {
|
|
10479
|
-
var te = L.split(/[:;,]/), J = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, ne = z(te.pop()),
|
|
10480
|
-
for (
|
|
10481
|
-
|
|
10482
|
-
return new g([
|
|
10479
|
+
var te = L.split(/[:;,]/), J = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, ne = z(te.pop()), le = ne.length, ue = 0, be = new Uint8Array(le);
|
|
10480
|
+
for (ue; ue < le; ++ue)
|
|
10481
|
+
be[ue] = ne.charCodeAt(ue);
|
|
10482
|
+
return new g([be], { type: J });
|
|
10483
10483
|
}
|
|
10484
10484
|
function B(L, te) {
|
|
10485
10485
|
if ("download" in h)
|
|
@@ -10601,7 +10601,7 @@ var _l = /* @__PURE__ */ function(a) {
|
|
|
10601
10601
|
key: "defaultConfig",
|
|
10602
10602
|
get: function() {
|
|
10603
10603
|
return {
|
|
10604
|
-
position:
|
|
10604
|
+
position: $.CONTROLS_RIGHT,
|
|
10605
10605
|
index: 3,
|
|
10606
10606
|
disable: !0
|
|
10607
10607
|
};
|
|
@@ -10719,7 +10719,7 @@ var _l = /* @__PURE__ */ function(a) {
|
|
|
10719
10719
|
key: "defaultConfig",
|
|
10720
10720
|
get: function() {
|
|
10721
10721
|
return {
|
|
10722
|
-
position:
|
|
10722
|
+
position: $.CONTROLS_RIGHT,
|
|
10723
10723
|
index: 5,
|
|
10724
10724
|
quality: 0.92,
|
|
10725
10725
|
type: "image/png",
|
|
@@ -10814,7 +10814,7 @@ var _l = /* @__PURE__ */ function(a) {
|
|
|
10814
10814
|
HOVER: "hover"
|
|
10815
10815
|
};
|
|
10816
10816
|
function wl(a, o) {
|
|
10817
|
-
return a === Ce.SIDE ? o ===
|
|
10817
|
+
return a === Ce.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10818
10818
|
}
|
|
10819
10819
|
var ze = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
10820
10820
|
D(r, a);
|
|
@@ -10848,9 +10848,9 @@ var ze = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
10848
10848
|
key: "afterCreate",
|
|
10849
10849
|
value: function() {
|
|
10850
10850
|
var e = this, i = this.config;
|
|
10851
|
-
this.initIcons(), ze = ze || this.domEventType === "touch", ze && N.device === "mobile" && i.listType === Ce.DEFAULT && (i.listType = Ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Me,
|
|
10851
|
+
this.initIcons(), ze = ze || this.domEventType === "touch", ze && N.device === "mobile" && i.listType === Ce.DEFAULT && (i.listType = Ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Me, Te], function() {
|
|
10852
10852
|
e._resizeList();
|
|
10853
|
-
}), this.once(
|
|
10853
|
+
}), this.once(Se, function() {
|
|
10854
10854
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
10855
10855
|
}), ze && this.on(yi, function() {
|
|
10856
10856
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
@@ -10975,7 +10975,7 @@ var ze = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
10975
10975
|
key: "defaultConfig",
|
|
10976
10976
|
get: function() {
|
|
10977
10977
|
return {
|
|
10978
|
-
position:
|
|
10978
|
+
position: $.CONTROLS_RIGHT,
|
|
10979
10979
|
index: 100,
|
|
10980
10980
|
list: [],
|
|
10981
10981
|
listType: "default",
|
|
@@ -11078,7 +11078,7 @@ var ze = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11078
11078
|
key: "defaultConfig",
|
|
11079
11079
|
get: function() {
|
|
11080
11080
|
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11081
|
-
position:
|
|
11081
|
+
position: $.CONTROLS_RIGHT,
|
|
11082
11082
|
index: 3,
|
|
11083
11083
|
list: [],
|
|
11084
11084
|
defaultDefinition: "",
|
|
@@ -11172,7 +11172,7 @@ var ze = N.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11172
11172
|
key: "defaultConfig",
|
|
11173
11173
|
get: function() {
|
|
11174
11174
|
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11175
|
-
position:
|
|
11175
|
+
position: $.CONTROLS_RIGHT,
|
|
11176
11176
|
index: 4,
|
|
11177
11177
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
11178
11178
|
className: "xgplayer-playbackrate",
|
|
@@ -11281,7 +11281,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11281
11281
|
key: "defaultConfig",
|
|
11282
11282
|
get: function() {
|
|
11283
11283
|
return {
|
|
11284
|
-
position:
|
|
11284
|
+
position: $.CONTROLS_RIGHT,
|
|
11285
11285
|
index: 1,
|
|
11286
11286
|
disable: !1,
|
|
11287
11287
|
target: null
|
|
@@ -12169,7 +12169,7 @@ var yt = null, Ml = /* @__PURE__ */ function(a) {
|
|
|
12169
12169
|
e._checkIfCanStart() && e.start(0, u);
|
|
12170
12170
|
}), this.on(rt, function() {
|
|
12171
12171
|
e.stop();
|
|
12172
|
-
})), this.on(
|
|
12172
|
+
})), this.on(Ie, this.onLoadedData), this.on(mi, function() {
|
|
12173
12173
|
e._isLoaded = !1, e.stop();
|
|
12174
12174
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
12175
12175
|
}
|
|
@@ -12654,7 +12654,7 @@ var Bl = /* @__PURE__ */ function(a) {
|
|
|
12654
12654
|
key: "afterCreate",
|
|
12655
12655
|
value: function() {
|
|
12656
12656
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12657
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(gt, this.onWaiting), this.on([vi,
|
|
12657
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(gt, this.onWaiting), this.on([vi, Se], function() {
|
|
12658
12658
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12659
12659
|
}), this.on(de, function() {
|
|
12660
12660
|
e.hasPlayed = !0;
|
|
@@ -12752,7 +12752,7 @@ var Bl = /* @__PURE__ */ function(a) {
|
|
|
12752
12752
|
key: "afterCreate",
|
|
12753
12753
|
value: function() {
|
|
12754
12754
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
12755
|
-
(n == null ? void 0 : n.length) > 0 && _t.push.apply(_t, ve(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([
|
|
12755
|
+
(n == null ? void 0 : n.length) > 0 && _t.push.apply(_t, ve(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ie, Tt], this.startTimer);
|
|
12756
12756
|
}
|
|
12757
12757
|
}, {
|
|
12758
12758
|
key: "getSpeedName",
|
|
@@ -12779,7 +12779,7 @@ var Bl = /* @__PURE__ */ function(a) {
|
|
|
12779
12779
|
key: "destroy",
|
|
12780
12780
|
value: function() {
|
|
12781
12781
|
var e = this;
|
|
12782
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
12782
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ie, Tt], this.startTimer), _t.forEach(function(i) {
|
|
12783
12783
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
12784
12784
|
}), 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);
|
|
12785
12785
|
}
|
|
@@ -13012,7 +13012,7 @@ const Vl = ["id"], jl = /* @__PURE__ */ Q({
|
|
|
13012
13012
|
});
|
|
13013
13013
|
}), (g, p) => {
|
|
13014
13014
|
const v = ct("el-icon");
|
|
13015
|
-
return u.value ? (E(),
|
|
13015
|
+
return u.value ? (E(), fe(Cn, {
|
|
13016
13016
|
key: 0,
|
|
13017
13017
|
to: "body"
|
|
13018
13018
|
}, [
|
|
@@ -13026,32 +13026,32 @@ const Vl = ["id"], jl = /* @__PURE__ */ Q({
|
|
|
13026
13026
|
{
|
|
13027
13027
|
ref: "wrapper",
|
|
13028
13028
|
tabindex: -1,
|
|
13029
|
-
class:
|
|
13029
|
+
class: K(S(h).e("wrapper")),
|
|
13030
13030
|
style: se({ zIndex: a.zIndex })
|
|
13031
13031
|
},
|
|
13032
13032
|
[
|
|
13033
13033
|
T(
|
|
13034
13034
|
"div",
|
|
13035
13035
|
{
|
|
13036
|
-
class:
|
|
13036
|
+
class: K(S(h).e("mask"))
|
|
13037
13037
|
},
|
|
13038
13038
|
null,
|
|
13039
13039
|
2
|
|
13040
13040
|
/* CLASS */
|
|
13041
13041
|
),
|
|
13042
|
-
|
|
13042
|
+
Y(" CANVAS "),
|
|
13043
13043
|
T(
|
|
13044
13044
|
"div",
|
|
13045
13045
|
{
|
|
13046
|
-
class:
|
|
13046
|
+
class: K(S(h).e("canvas"))
|
|
13047
13047
|
},
|
|
13048
13048
|
[
|
|
13049
13049
|
T("div", { id: S(c) }, null, 8, Vl),
|
|
13050
|
-
|
|
13050
|
+
Y(" CLOSE "),
|
|
13051
13051
|
T(
|
|
13052
13052
|
"span",
|
|
13053
13053
|
{
|
|
13054
|
-
class:
|
|
13054
|
+
class: K([S(h).e("btn"), S(h).e("close")]),
|
|
13055
13055
|
onClick: d
|
|
13056
13056
|
},
|
|
13057
13057
|
[
|
|
@@ -13079,7 +13079,7 @@ const Vl = ["id"], jl = /* @__PURE__ */ Q({
|
|
|
13079
13079
|
_: 3
|
|
13080
13080
|
/* FORWARDED */
|
|
13081
13081
|
})
|
|
13082
|
-
])) :
|
|
13082
|
+
])) : Y("v-if", !0);
|
|
13083
13083
|
};
|
|
13084
13084
|
}
|
|
13085
13085
|
});
|
|
@@ -13174,7 +13174,7 @@ const Wl = /* @__PURE__ */ hi(jl, [["__scopeId", "data-v-b301aa7d"]]), Gl = Ne(W
|
|
|
13174
13174
|
},
|
|
13175
13175
|
emits: ["handPreview"],
|
|
13176
13176
|
setup(a, { emit: o }) {
|
|
13177
|
-
const r = a, t = X(() => r.simple ? "simple" :
|
|
13177
|
+
const r = a, t = X(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = En(r), s = o, l = X(() => ({
|
|
13178
13178
|
name: "name",
|
|
13179
13179
|
url: "url",
|
|
13180
13180
|
suffix: "suffix",
|
|
@@ -13212,16 +13212,16 @@ const Wl = /* @__PURE__ */ hi(jl, [["__scopeId", "data-v-b301aa7d"]]), Gl = Ne(W
|
|
|
13212
13212
|
var b, w, H;
|
|
13213
13213
|
const C = ct("tmplate");
|
|
13214
13214
|
return E(), A(
|
|
13215
|
-
|
|
13215
|
+
ke,
|
|
13216
13216
|
null,
|
|
13217
13217
|
[
|
|
13218
13218
|
(b = a.list) != null && b.length ? (E(), A(
|
|
13219
|
-
|
|
13219
|
+
ke,
|
|
13220
13220
|
{ key: 0 },
|
|
13221
13221
|
[
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13222
|
+
Y(" 简单模式 "),
|
|
13223
|
+
t.value === "simple" ? (E(!0), A(
|
|
13224
|
+
ke,
|
|
13225
13225
|
{ key: 0 },
|
|
13226
13226
|
kt(p.value, (x, B) => (E(), A("div", {
|
|
13227
13227
|
class: "iking-privew-annex simple",
|
|
@@ -13239,22 +13239,22 @@ const Wl = /* @__PURE__ */ hi(jl, [["__scopeId", "data-v-b301aa7d"]]), Gl = Ne(W
|
|
|
13239
13239
|
T(
|
|
13240
13240
|
"div",
|
|
13241
13241
|
{
|
|
13242
|
-
class:
|
|
13242
|
+
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
13243
13243
|
},
|
|
13244
13244
|
[
|
|
13245
|
-
a.showDownloadBtn ? (E(),
|
|
13245
|
+
a.showDownloadBtn ? (E(), fe(S(je), {
|
|
13246
13246
|
key: 0,
|
|
13247
13247
|
name: "iksvg_daochu",
|
|
13248
13248
|
onClick: Ct((L) => d(x), ["stop"]),
|
|
13249
13249
|
size: 20,
|
|
13250
13250
|
active: ""
|
|
13251
|
-
}, null, 8, ["onClick"])) :
|
|
13252
|
-
S(n).includes(x.suffix)
|
|
13251
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0),
|
|
13252
|
+
S(n).includes(x.suffix) && a.showPreviewBtn ? (E(), fe(S(je), {
|
|
13253
13253
|
key: 1,
|
|
13254
13254
|
name: "iksvg_yulan",
|
|
13255
13255
|
size: 20,
|
|
13256
13256
|
active: ""
|
|
13257
|
-
})) :
|
|
13257
|
+
})) : Y("v-if", !0),
|
|
13258
13258
|
Re(v.$slots, "operation", {
|
|
13259
13259
|
data: { ...x, findex: B }
|
|
13260
13260
|
})
|
|
@@ -13265,134 +13265,148 @@ const Wl = /* @__PURE__ */ hi(jl, [["__scopeId", "data-v-b301aa7d"]]), Gl = Ne(W
|
|
|
13265
13265
|
], 12, $l))),
|
|
13266
13266
|
128
|
|
13267
13267
|
/* KEYED_FRAGMENT */
|
|
13268
|
-
)) :
|
|
13269
|
-
|
|
13270
|
-
t.value === "simple-icon" ? (E(!0), A(
|
|
13271
|
-
Oe,
|
|
13268
|
+
)) : t.value === "simple-icon" ? (E(), A(
|
|
13269
|
+
ke,
|
|
13272
13270
|
{ key: 1 },
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
key: B,
|
|
13276
|
-
onClick: (L) => h(x),
|
|
13277
|
-
style: se({ width: g.value })
|
|
13278
|
-
}, [
|
|
13279
|
-
T("div", Xl, [
|
|
13280
|
-
G(S(Mi), {
|
|
13281
|
-
file: x,
|
|
13282
|
-
style: se({ height: `${a.iconSize}px` }),
|
|
13283
|
-
class: "ikui-w-auto",
|
|
13284
|
-
fields: l.value
|
|
13285
|
-
}, null, 8, ["file", "style", "fields"]),
|
|
13286
|
-
T(
|
|
13287
|
-
"div",
|
|
13288
|
-
ql,
|
|
13289
|
-
We(x.name),
|
|
13290
|
-
1
|
|
13291
|
-
/* TEXT */
|
|
13292
|
-
)
|
|
13293
|
-
]),
|
|
13294
|
-
a.showDownloadBtn ? (E(), le(S(je), {
|
|
13295
|
-
key: 0,
|
|
13296
|
-
name: "iksvg_daochu",
|
|
13297
|
-
size: 20,
|
|
13298
|
-
title: "下载",
|
|
13299
|
-
active: "",
|
|
13300
|
-
onClick: Ct((L) => d(x), ["stop"])
|
|
13301
|
-
}, null, 8, ["onClick"])) : $("v-if", !0)
|
|
13302
|
-
], 12, Yl))),
|
|
13303
|
-
128
|
|
13304
|
-
/* KEYED_FRAGMENT */
|
|
13305
|
-
)) : $("v-if", !0),
|
|
13306
|
-
$(" 默认模式 "),
|
|
13307
|
-
t.value === "default" ? (E(), le(C, { key: 2 }, {
|
|
13308
|
-
default: ee(() => [
|
|
13271
|
+
[
|
|
13272
|
+
Y(" 简单图标模式 "),
|
|
13309
13273
|
(E(!0), A(
|
|
13310
|
-
|
|
13274
|
+
ke,
|
|
13311
13275
|
null,
|
|
13312
|
-
kt(p.value, (x, B) => {
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
[
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13341
|
-
|
|
13342
|
-
),
|
|
13343
|
-
T(
|
|
13344
|
-
"div",
|
|
13345
|
-
eu,
|
|
13346
|
-
We(S(zs)(x.size)),
|
|
13347
|
-
1
|
|
13348
|
-
/* TEXT */
|
|
13349
|
-
)
|
|
13350
|
-
]),
|
|
13351
|
-
T(
|
|
13352
|
-
"div",
|
|
13353
|
-
{
|
|
13354
|
-
class: Y(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
13355
|
-
},
|
|
13356
|
-
[
|
|
13357
|
-
a.showDownloadBtn ? (E(), le(S(je), {
|
|
13358
|
-
key: 0,
|
|
13359
|
-
name: "iksvg_daochu",
|
|
13360
|
-
onClick: Ct((te) => d(x), ["stop"]),
|
|
13361
|
-
bg: a.showBg,
|
|
13362
|
-
size: a.showBg ? "default" : 20,
|
|
13363
|
-
title: "下载"
|
|
13364
|
-
}, null, 8, ["onClick", "bg", "size"])) : $("v-if", !0),
|
|
13365
|
-
S(n).includes(x.suffix) || a.showPreviewBtn ? (E(), le(S(je), {
|
|
13366
|
-
key: 1,
|
|
13367
|
-
name: "iksvg_yulan",
|
|
13368
|
-
bg: a.showBg,
|
|
13369
|
-
size: a.showBg ? "default" : 20,
|
|
13370
|
-
title: "预览"
|
|
13371
|
-
}, null, 8, ["bg", "size"])) : $("v-if", !0),
|
|
13372
|
-
Re(v.$slots, "operation", {
|
|
13373
|
-
data: { ...x, findex: B }
|
|
13374
|
-
})
|
|
13375
|
-
],
|
|
13376
|
-
2
|
|
13377
|
-
/* CLASS */
|
|
13378
|
-
)
|
|
13379
|
-
], 8, Zl)
|
|
13380
|
-
],
|
|
13381
|
-
6
|
|
13382
|
-
/* CLASS, STYLE */
|
|
13383
|
-
);
|
|
13384
|
-
}),
|
|
13276
|
+
kt(p.value, (x, B) => (E(), A("div", {
|
|
13277
|
+
class: "iking-privew-annex simple-icon",
|
|
13278
|
+
key: B,
|
|
13279
|
+
onClick: (L) => h(x),
|
|
13280
|
+
style: se({ width: g.value })
|
|
13281
|
+
}, [
|
|
13282
|
+
T("div", Xl, [
|
|
13283
|
+
G(S(Mi), {
|
|
13284
|
+
file: x,
|
|
13285
|
+
style: se({ height: `${a.iconSize}px` }),
|
|
13286
|
+
class: "ikui-w-auto",
|
|
13287
|
+
fields: l.value
|
|
13288
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
13289
|
+
T(
|
|
13290
|
+
"div",
|
|
13291
|
+
ql,
|
|
13292
|
+
We(x.name),
|
|
13293
|
+
1
|
|
13294
|
+
/* TEXT */
|
|
13295
|
+
)
|
|
13296
|
+
]),
|
|
13297
|
+
a.showDownloadBtn ? (E(), fe(S(je), {
|
|
13298
|
+
key: 0,
|
|
13299
|
+
name: "iksvg_daochu",
|
|
13300
|
+
size: 20,
|
|
13301
|
+
title: "下载",
|
|
13302
|
+
active: "",
|
|
13303
|
+
onClick: Ct((L) => d(x), ["stop"])
|
|
13304
|
+
}, null, 8, ["onClick"])) : Y("v-if", !0)
|
|
13305
|
+
], 12, Yl))),
|
|
13385
13306
|
128
|
|
13386
13307
|
/* KEYED_FRAGMENT */
|
|
13387
13308
|
))
|
|
13388
|
-
]
|
|
13389
|
-
|
|
13390
|
-
/*
|
|
13391
|
-
|
|
13309
|
+
],
|
|
13310
|
+
64
|
|
13311
|
+
/* STABLE_FRAGMENT */
|
|
13312
|
+
)) : (E(), A(
|
|
13313
|
+
ke,
|
|
13314
|
+
{ key: 2 },
|
|
13315
|
+
[
|
|
13316
|
+
Y(" 默认模式 "),
|
|
13317
|
+
G(C, null, {
|
|
13318
|
+
default: ee(() => [
|
|
13319
|
+
(E(!0), A(
|
|
13320
|
+
ke,
|
|
13321
|
+
null,
|
|
13322
|
+
kt(p.value, (x, B) => {
|
|
13323
|
+
var L;
|
|
13324
|
+
return E(), A(
|
|
13325
|
+
"div",
|
|
13326
|
+
{
|
|
13327
|
+
class: K(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
13328
|
+
key: B,
|
|
13329
|
+
style: se({
|
|
13330
|
+
marginBottom: B == ((L = a.list) == null ? void 0 : L.length) - 1 ? "0" : "10px",
|
|
13331
|
+
width: g.value
|
|
13332
|
+
})
|
|
13333
|
+
},
|
|
13334
|
+
[
|
|
13335
|
+
T("div", {
|
|
13336
|
+
class: "file-card",
|
|
13337
|
+
onClick: (te) => h(x)
|
|
13338
|
+
}, [
|
|
13339
|
+
G(S(Mi), {
|
|
13340
|
+
file: x,
|
|
13341
|
+
style: se({ height: `${a.iconSize}px` }),
|
|
13342
|
+
class: "ikui-w-auto",
|
|
13343
|
+
fields: l.value
|
|
13344
|
+
}, null, 8, ["file", "style", "fields"]),
|
|
13345
|
+
T("div", Jl, [
|
|
13346
|
+
T(
|
|
13347
|
+
"div",
|
|
13348
|
+
Ql,
|
|
13349
|
+
We(x.name),
|
|
13350
|
+
1
|
|
13351
|
+
/* TEXT */
|
|
13352
|
+
),
|
|
13353
|
+
T(
|
|
13354
|
+
"div",
|
|
13355
|
+
eu,
|
|
13356
|
+
We(S(zs)(x.size)),
|
|
13357
|
+
1
|
|
13358
|
+
/* TEXT */
|
|
13359
|
+
)
|
|
13360
|
+
]),
|
|
13361
|
+
T(
|
|
13362
|
+
"div",
|
|
13363
|
+
{
|
|
13364
|
+
class: K(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
13365
|
+
},
|
|
13366
|
+
[
|
|
13367
|
+
a.showDownloadBtn ? (E(), fe(S(je), {
|
|
13368
|
+
key: 0,
|
|
13369
|
+
name: "iksvg_daochu",
|
|
13370
|
+
onClick: Ct((te) => d(x), ["stop"]),
|
|
13371
|
+
bg: a.showBg,
|
|
13372
|
+
size: a.showBg ? "default" : 20,
|
|
13373
|
+
title: "下载"
|
|
13374
|
+
}, null, 8, ["onClick", "bg", "size"])) : Y("v-if", !0),
|
|
13375
|
+
S(n).includes(x.suffix) && a.showPreviewBtn ? (E(), fe(S(je), {
|
|
13376
|
+
key: 1,
|
|
13377
|
+
name: "iksvg_yulan",
|
|
13378
|
+
bg: a.showBg,
|
|
13379
|
+
size: a.showBg ? "default" : 20,
|
|
13380
|
+
title: "预览"
|
|
13381
|
+
}, null, 8, ["bg", "size"])) : Y("v-if", !0),
|
|
13382
|
+
Re(v.$slots, "operation", {
|
|
13383
|
+
data: { ...x, findex: B }
|
|
13384
|
+
})
|
|
13385
|
+
],
|
|
13386
|
+
2
|
|
13387
|
+
/* CLASS */
|
|
13388
|
+
)
|
|
13389
|
+
], 8, Zl)
|
|
13390
|
+
],
|
|
13391
|
+
6
|
|
13392
|
+
/* CLASS, STYLE */
|
|
13393
|
+
);
|
|
13394
|
+
}),
|
|
13395
|
+
128
|
|
13396
|
+
/* KEYED_FRAGMENT */
|
|
13397
|
+
))
|
|
13398
|
+
]),
|
|
13399
|
+
_: 3
|
|
13400
|
+
/* FORWARDED */
|
|
13401
|
+
})
|
|
13402
|
+
],
|
|
13403
|
+
2112
|
|
13404
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
13405
|
+
))
|
|
13392
13406
|
],
|
|
13393
13407
|
64
|
|
13394
13408
|
/* STABLE_FRAGMENT */
|
|
13395
|
-
)) :
|
|
13409
|
+
)) : Y("v-if", !0),
|
|
13396
13410
|
G(S(Ws), {
|
|
13397
13411
|
show: c.value,
|
|
13398
13412
|
"onUpdate:show": y[0] || (y[0] = (x) => c.value = x),
|