iking-web-ui-pro 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +378 -374
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +126 -123
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +4 -4
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +3 -3
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +1043 -1039
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +2 -2
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +122 -119
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +121 -118
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkDragList/ik.index.es.js +1 -1
- package/dist/IkDragList/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +6 -6
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +11 -11
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkHorizontalStepBar/ik.index.es.js +1 -1
- package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +1 -1
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkImageUploadEditor/ik.index.es.js +127 -124
- package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +1 -1
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +441 -437
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPageTabs/ik.index.es.js +1 -1
- package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +416 -412
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkPlayer/ik.index.es.js +103 -100
- package/dist/IkPreviewFile/ik.index.es.js +110 -107
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +90 -87
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkPrint/ik.index.es.js +1 -1
- package/dist/IkPrint/iking-web-ui-pro.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +2 -2
- package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +397 -393
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkSearchHead/ik.index.es.js +1 -1
- package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +22 -22
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +42 -39
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +4 -4
- package/dist/IkStatu/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +2 -2
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +16 -16
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTinymce/ik.index.es.js +9005 -9004
- package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +13 -13
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1419 -1416
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +423 -421
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +2 -2
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/Provider/ik.index.es.js +14 -10
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-DzZt3b9I.mjs → index-DTIv4saG.mjs} +16667 -16662
- package/dist/{index.es-BGemUek4.mjs → index.es-DJTszikI.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +169 -169
- package/dist/{jspdf.es.min-BVrfmj8U.mjs → jspdf.es.min-CB6UoKKF.mjs} +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +2 -2
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +15 -0
- package/dist/src/utils/use-provider.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ae, computed as
|
|
1
|
+
import { defineComponent as ae, computed as ie, createElementBlock as S, openBlock as k, createElementVNode as T, inject as ct, ref as me, Fragment as le, createCommentVNode as A, createVNode as K, renderList as De, normalizeStyle as ye, toDisplayString as J, unref as L, normalizeClass as Q, createBlock as pe, renderSlot as We, withModifiers as Qe, mergeModels as Lt, useModel as $r, reactive as vl, watch as _t, nextTick as Ot, withCtx as oe, resolveComponent as bt, mergeProps as Kr, createTextVNode as tt, h as xu, createSlots as Iu, getCurrentScope as Pu, onScopeDispose as Au, markRaw as Sa, effectScope as Lu, shallowRef as Ou, onMounted as ml, Teleport as yl, Transition as _l, resolveDynamicComponent as Du, withDirectives as Ru, vShow as Fu } from "vue";
|
|
2
2
|
import { paramType as Hr, ikFile as Mu, buildUUID as bl, ikColor as Nu, _ as wi, ikDate as Bu } from "iking-utils-pro";
|
|
3
|
-
import { useLocale as Hu, useNamespace as Cl, useZIndex as Uu, ElIcon as je, EVENT_CODE as
|
|
3
|
+
import { useLocale as Hu, useNamespace as Cl, useZIndex as Uu, ElIcon as je, EVENT_CODE as ft } from "element-plus";
|
|
4
4
|
const Ne = (a, s) => (a.install = (n) => {
|
|
5
5
|
for (const t of [a, ...Object.values({})])
|
|
6
6
|
n.component(t.name, t);
|
|
@@ -258,7 +258,7 @@ const Ne = (a, s) => (a.install = (n) => {
|
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
setup(a) {
|
|
261
|
-
const s = a, n =
|
|
261
|
+
const s = a, n = ie(() => s.file ? Qt(s.file, s.fields) : s.type);
|
|
262
262
|
return (t, e) => n.value === "image" ? (k(), S("svg", Vu, [...e[0] || (e[0] = [
|
|
263
263
|
T(
|
|
264
264
|
"path",
|
|
@@ -917,14 +917,17 @@ const fi = (a, s) => {
|
|
|
917
917
|
"flv",
|
|
918
918
|
"tls"
|
|
919
919
|
], Yr = (a) => {
|
|
920
|
-
const s =
|
|
920
|
+
const s = ct("loadUrl"), n = ie(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = ct("uploadUrl"), e = ie(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ct("token"), r = ie(() => a.token || (i == null ? void 0 : i.value)), o = ct("header"), l = ie(() => a.header || (o == null ? void 0 : o.value) || {
|
|
921
|
+
Authorization: r.value
|
|
922
|
+
}), u = ct("onlyofficeConfig"), c = ie(() => a.onlyofficeConfig || (u == null ? void 0 : u.value)), f = ct("userInfo"), g = ie(() => a.userInfo || (f == null ? void 0 : f.value)), p = [...Ia, ...Ia.map((d) => d.toLocaleUpperCase())];
|
|
921
923
|
return {
|
|
922
924
|
cLoadUrl: n,
|
|
923
925
|
cUploadUrl: e,
|
|
924
926
|
cToken: r,
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
927
|
+
cHeader: l,
|
|
928
|
+
cOnlyofficeConfig: c,
|
|
929
|
+
cUserInfo: g,
|
|
930
|
+
cOnlyofficePreviewType: p
|
|
928
931
|
};
|
|
929
932
|
}, Ti = (a, s = 2) => {
|
|
930
933
|
if (a === void 0) return "";
|
|
@@ -932,7 +935,7 @@ const fi = (a, s) => {
|
|
|
932
935
|
const n = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
933
936
|
let e = a / Math.pow(1024, t);
|
|
934
937
|
return (e % 1 === 0 ? e.toFixed(s || 0) : e.toFixed(s)) + " " + n[t];
|
|
935
|
-
},
|
|
938
|
+
}, Ct = (a, s) => {
|
|
936
939
|
if (!s) return "";
|
|
937
940
|
const n = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
|
|
938
941
|
return s.startsWith("http") ? s.replace(n, "$1$2") : `${a || location.origin}${s}`.replace(n, "$1$2");
|
|
@@ -1048,7 +1051,7 @@ const fi = (a, s) => {
|
|
|
1048
1051
|
},
|
|
1049
1052
|
emits: ["handPreview", "download", "close"],
|
|
1050
1053
|
setup(a, { emit: s }) {
|
|
1051
|
-
const n = a, t =
|
|
1054
|
+
const n = a, t = ie(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = Yr(n), o = s, l = ie(() => ({
|
|
1052
1055
|
name: "name",
|
|
1053
1056
|
url: "url",
|
|
1054
1057
|
suffix: "suffix",
|
|
@@ -1059,14 +1062,14 @@ const fi = (a, s) => {
|
|
|
1059
1062
|
u.value = {
|
|
1060
1063
|
...v,
|
|
1061
1064
|
name: v.name,
|
|
1062
|
-
url:
|
|
1065
|
+
url: Ct(
|
|
1063
1066
|
e.value,
|
|
1064
1067
|
v[l.value.url] || ((b = (w = v == null ? void 0 : v.response) == null ? void 0 : w.data) == null ? void 0 : b.id) || (v == null ? void 0 : v.id)
|
|
1065
1068
|
)
|
|
1066
1069
|
}, n.isOnlyOfficePreview && (c.value = !0), o("handPreview", u.value);
|
|
1067
1070
|
}, g = (v) => {
|
|
1068
1071
|
n.customDownload ? o("download", v) : Mu.downloadFile(
|
|
1069
|
-
|
|
1072
|
+
Ct(
|
|
1070
1073
|
e.value,
|
|
1071
1074
|
v[l.value.url] || v.attachmentId || v.id
|
|
1072
1075
|
),
|
|
@@ -1074,7 +1077,7 @@ const fi = (a, s) => {
|
|
|
1074
1077
|
);
|
|
1075
1078
|
}, p = (v) => {
|
|
1076
1079
|
o("close", v);
|
|
1077
|
-
}, d =
|
|
1080
|
+
}, d = ie(() => Hr.isNumber(n.width) ? `${n.width}px` : n.width), m = ie(() => n.list.map((v) => {
|
|
1078
1081
|
var b;
|
|
1079
1082
|
const w = v[l.value.name] || v.attachmentName;
|
|
1080
1083
|
return {
|
|
@@ -1366,7 +1369,7 @@ const fi = (a, s) => {
|
|
|
1366
1369
|
}),
|
|
1367
1370
|
emits: /* @__PURE__ */ Lt(["close"], ["update:show"]),
|
|
1368
1371
|
setup(a, { emit: s }) {
|
|
1369
|
-
const n = a, t = s, e = $r(a, "show"), i =
|
|
1372
|
+
const n = a, t = s, e = $r(a, "show"), i = ie(() => ({
|
|
1370
1373
|
name: "name",
|
|
1371
1374
|
url: "url",
|
|
1372
1375
|
suffix: "suffix",
|
|
@@ -1384,7 +1387,7 @@ const fi = (a, s) => {
|
|
|
1384
1387
|
if (o.value = {
|
|
1385
1388
|
...d,
|
|
1386
1389
|
name: d[i.value.name],
|
|
1387
|
-
url:
|
|
1390
|
+
url: Ct(n.loadUrl, D)
|
|
1388
1391
|
}, d && Qt(d, i.value) === "image") {
|
|
1389
1392
|
u.image = !0;
|
|
1390
1393
|
return;
|
|
@@ -1409,7 +1412,7 @@ const fi = (a, s) => {
|
|
|
1409
1412
|
document: {
|
|
1410
1413
|
key: (d == null ? void 0 : d.key) || bl(),
|
|
1411
1414
|
title: U,
|
|
1412
|
-
url:
|
|
1415
|
+
url: Ct(n.loadUrl, D),
|
|
1413
1416
|
fileType: q,
|
|
1414
1417
|
...((E = n.onlyOfficeConfig) == null ? void 0 : E.document) || {}
|
|
1415
1418
|
},
|
|
@@ -1422,7 +1425,7 @@ const fi = (a, s) => {
|
|
|
1422
1425
|
console.info("预览错误: ", I);
|
|
1423
1426
|
}
|
|
1424
1427
|
};
|
|
1425
|
-
|
|
1428
|
+
_t([e, n.file], ([d, m]) => {
|
|
1426
1429
|
d && Ot(() => {
|
|
1427
1430
|
c(n.file);
|
|
1428
1431
|
});
|
|
@@ -1588,10 +1591,10 @@ const Vc = {
|
|
|
1588
1591
|
},
|
|
1589
1592
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
1590
1593
|
setup(a, { emit: s }) {
|
|
1591
|
-
const n = a, t =
|
|
1594
|
+
const n = a, t = ie(() => n), e = ie(() => {
|
|
1592
1595
|
const { name: f } = t.value;
|
|
1593
1596
|
return /^http?:\/\//.test(f) ? "img" : /i-[^:]+:[^:]+/.test(f) ? "unocss" : f != null && f.startsWith("iksig") ? "iksig" : f != null && f.includes(":") ? "iconify" : f != null && f.startsWith("iksvg") ? "svg" : "i";
|
|
1594
|
-
}), i =
|
|
1597
|
+
}), i = ie(() => {
|
|
1595
1598
|
const f = [];
|
|
1596
1599
|
if (t.value.flip)
|
|
1597
1600
|
switch (t.value.flip) {
|
|
@@ -1627,7 +1630,7 @@ const Vc = {
|
|
|
1627
1630
|
r("dblclick", f);
|
|
1628
1631
|
};
|
|
1629
1632
|
return (f, g) => {
|
|
1630
|
-
const p =
|
|
1633
|
+
const p = bt("el-tooltip"), d = bt("el-button");
|
|
1631
1634
|
return k(), S(
|
|
1632
1635
|
"i",
|
|
1633
1636
|
{
|
|
@@ -1751,7 +1754,7 @@ const Vc = {
|
|
|
1751
1754
|
);
|
|
1752
1755
|
};
|
|
1753
1756
|
}
|
|
1754
|
-
}), Xc = /* @__PURE__ */ fi(Yc, [["__scopeId", "data-v-
|
|
1757
|
+
}), Xc = /* @__PURE__ */ fi(Yc, [["__scopeId", "data-v-9ebb0a94"]]), et = Ne(Xc), Jc = /* @__PURE__ */ ae({
|
|
1755
1758
|
__name: "CloseIcon",
|
|
1756
1759
|
props: {
|
|
1757
1760
|
showBg: {
|
|
@@ -1781,7 +1784,7 @@ const Vc = {
|
|
|
1781
1784
|
/* CLASS */
|
|
1782
1785
|
));
|
|
1783
1786
|
}
|
|
1784
|
-
}), Zc = /* @__PURE__ */ fi(Jc, [["__scopeId", "data-v-
|
|
1787
|
+
}), Zc = /* @__PURE__ */ fi(Jc, [["__scopeId", "data-v-da9210e2"]]), Qc = { class: "base-header" }, ef = /* @__PURE__ */ ae({
|
|
1785
1788
|
__name: "IkBaseDialog",
|
|
1786
1789
|
props: /* @__PURE__ */ Lt({
|
|
1787
1790
|
title: { default: "" },
|
|
@@ -1812,7 +1815,7 @@ const Vc = {
|
|
|
1812
1815
|
}
|
|
1813
1816
|
});
|
|
1814
1817
|
return (i, r) => {
|
|
1815
|
-
const o =
|
|
1818
|
+
const o = bt("el-dialog");
|
|
1816
1819
|
return k(), pe(o, Kr({
|
|
1817
1820
|
modelValue: n.value,
|
|
1818
1821
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
|
|
@@ -1843,8 +1846,8 @@ const Vc = {
|
|
|
1843
1846
|
)
|
|
1844
1847
|
])
|
|
1845
1848
|
]),
|
|
1846
|
-
A(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
|
|
1847
|
-
:name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
|
|
1849
|
+
A(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
|
|
1850
|
+
:name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
|
|
1848
1851
|
class="absolute! top-[18px] right-[50px] icon-dialog-full" :title="isFull ? '退出全屏' : '全屏'" /> `)
|
|
1849
1852
|
]),
|
|
1850
1853
|
default: oe(() => [
|
|
@@ -3184,8 +3187,8 @@ var Cr, Ao;
|
|
|
3184
3187
|
function Ch() {
|
|
3185
3188
|
if (Ao) return Cr;
|
|
3186
3189
|
Ao = 1;
|
|
3187
|
-
var a = Ff(), s = Mf(), n = Il(), t = $f(), e = Xf(), i = Jf(), r = Zf(), o = eh(), l = th(), u = ih(), c = nh(), f = sa(), g = lh(), p = gh(), d = vh(), m = Qr(), v = Pl(), w = yh(), b = Rt(), C = bh(), O = na(), E = ra(), I = 1, D = 2, q = 4, U = "[object Arguments]", P = "[object Array]", M = "[object Boolean]", te = "[object Date]", se = "[object Error]", ke = "[object Function]", Bt = "[object GeneratorFunction]", Ht = "[object Map]",
|
|
3188
|
-
Z[U] = Z[P] = Z[ve] = Z[we] = Z[M] = Z[te] = Z[Te] = Z[Ee] = Z[Xe] = Z[jt] = Z[zt] = Z[Ht] = Z[
|
|
3190
|
+
var a = Ff(), s = Mf(), n = Il(), t = $f(), e = Xf(), i = Jf(), r = Zf(), o = eh(), l = th(), u = ih(), c = nh(), f = sa(), g = lh(), p = gh(), d = vh(), m = Qr(), v = Pl(), w = yh(), b = Rt(), C = bh(), O = na(), E = ra(), I = 1, D = 2, q = 4, U = "[object Arguments]", P = "[object Array]", M = "[object Boolean]", te = "[object Date]", se = "[object Error]", ke = "[object Function]", Bt = "[object GeneratorFunction]", Ht = "[object Map]", wt = "[object Number]", Tt = "[object Object]", Ut = "[object RegExp]", Le = "[object Set]", j = "[object String]", $ = "[object Symbol]", ne = "[object WeakMap]", ve = "[object ArrayBuffer]", we = "[object DataView]", Te = "[object Float32Array]", Ee = "[object Float64Array]", Xe = "[object Int8Array]", jt = "[object Int16Array]", zt = "[object Int32Array]", St = "[object Uint8Array]", Cu = "[object Uint8ClampedArray]", ku = "[object Uint16Array]", wu = "[object Uint32Array]", Z = {};
|
|
3191
|
+
Z[U] = Z[P] = Z[ve] = Z[we] = Z[M] = Z[te] = Z[Te] = Z[Ee] = Z[Xe] = Z[jt] = Z[zt] = Z[Ht] = Z[wt] = Z[Tt] = Z[Ut] = Z[Le] = Z[j] = Z[$] = Z[St] = Z[Cu] = Z[ku] = Z[wu] = !0, Z[se] = Z[ke] = Z[ne] = !1;
|
|
3189
3192
|
function Vt(X, ot, lt, Tu, qt, He) {
|
|
3190
3193
|
var de, Gt = ot & I, Wt = ot & D, Su = ot & q;
|
|
3191
3194
|
if (lt && (de = qt ? lt(X, Tu, qt, He) : lt(X)), de !== void 0)
|
|
@@ -3200,7 +3203,7 @@ function Ch() {
|
|
|
3200
3203
|
var ut = f(X), ka = ut == ke || ut == Bt;
|
|
3201
3204
|
if (v(X))
|
|
3202
3205
|
return i(X, Gt);
|
|
3203
|
-
if (ut ==
|
|
3206
|
+
if (ut == Tt || ut == U || ka && !qt) {
|
|
3204
3207
|
if (de = Wt || ka ? {} : d(X), !Gt)
|
|
3205
3208
|
return Wt ? l(X, e(de, X)) : o(X, t(de, X));
|
|
3206
3209
|
} else {
|
|
@@ -3493,7 +3496,7 @@ function Kt(...a) {
|
|
|
3493
3496
|
Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
|
|
3494
3497
|
const i = [], r = () => {
|
|
3495
3498
|
i.forEach((c) => c()), i.length = 0;
|
|
3496
|
-
}, o = (c, f, g, p) => (c.addEventListener(f, g, p), () => c.removeEventListener(f, g, p)), l =
|
|
3499
|
+
}, o = (c, f, g, p) => (c.addEventListener(f, g, p), () => c.removeEventListener(f, g, p)), l = _t(() => [Dh(s), Ul(e)], ([c, f]) => {
|
|
3497
3500
|
r(), c && i.push(...n.flatMap((g) => t.map((p) => o(c, g, p, f))));
|
|
3498
3501
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
3499
3502
|
l(), r();
|
|
@@ -3638,61 +3641,61 @@ const Uh = {
|
|
|
3638
3641
|
offsetX: 0,
|
|
3639
3642
|
offsetY: 0,
|
|
3640
3643
|
enableTransition: !1
|
|
3641
|
-
}), w = me(i.zIndex ?? u()), b =
|
|
3644
|
+
}), w = me(i.zIndex ?? u()), b = ie(() => {
|
|
3642
3645
|
const { urlList: j } = i;
|
|
3643
3646
|
return j.length <= 1;
|
|
3644
|
-
}), C =
|
|
3647
|
+
}), C = ie(() => d.value === 0), O = ie(() => d.value === i.urlList.length - 1), E = ie(() => i.urlList[d.value]), I = ie(() => [
|
|
3645
3648
|
l.e("btn"),
|
|
3646
3649
|
l.e("prev"),
|
|
3647
3650
|
l.is("disabled", !i.infinite && C.value)
|
|
3648
|
-
]), D =
|
|
3651
|
+
]), D = ie(() => [
|
|
3649
3652
|
l.e("btn"),
|
|
3650
3653
|
l.e("next"),
|
|
3651
3654
|
l.is("disabled", !i.infinite && O.value)
|
|
3652
|
-
]), q =
|
|
3653
|
-
const { scale: j, deg: $, offsetX:
|
|
3654
|
-
let Te =
|
|
3655
|
+
]), q = ie(() => {
|
|
3656
|
+
const { scale: j, deg: $, offsetX: ne, offsetY: ve, enableTransition: we } = v.value;
|
|
3657
|
+
let Te = ne / j, Ee = ve / j;
|
|
3655
3658
|
const Xe = $ * Math.PI / 180, jt = Math.cos(Xe), zt = Math.sin(Xe);
|
|
3656
|
-
Te = Te * jt + Ee * zt, Ee = Ee * jt -
|
|
3657
|
-
const
|
|
3659
|
+
Te = Te * jt + Ee * zt, Ee = Ee * jt - ne / j * zt;
|
|
3660
|
+
const St = {
|
|
3658
3661
|
transform: `scale(${j}) rotate(${$}deg) translate(${Te}px, ${Ee}px)`,
|
|
3659
3662
|
transition: we ? "transform .3s" : ""
|
|
3660
3663
|
};
|
|
3661
|
-
return m.value.name === e.CONTAIN.name && (
|
|
3664
|
+
return m.value.name === e.CONTAIN.name && (St.maxWidth = St.maxHeight = "100%"), St;
|
|
3662
3665
|
});
|
|
3663
3666
|
function U() {
|
|
3664
3667
|
M(), r("close");
|
|
3665
3668
|
}
|
|
3666
3669
|
function P() {
|
|
3667
|
-
const j = wi.throttle((
|
|
3668
|
-
switch (
|
|
3670
|
+
const j = wi.throttle((ne) => {
|
|
3671
|
+
switch (ne.code) {
|
|
3669
3672
|
// ESC
|
|
3670
|
-
case
|
|
3673
|
+
case ft.esc:
|
|
3671
3674
|
i.closeOnPressEscape && U();
|
|
3672
3675
|
break;
|
|
3673
3676
|
// SPACE
|
|
3674
|
-
case
|
|
3677
|
+
case ft.space:
|
|
3675
3678
|
Ht();
|
|
3676
3679
|
break;
|
|
3677
3680
|
// LEFT_ARROW
|
|
3678
|
-
case
|
|
3679
|
-
|
|
3681
|
+
case ft.left:
|
|
3682
|
+
Tt();
|
|
3680
3683
|
break;
|
|
3681
3684
|
// UP_ARROW
|
|
3682
|
-
case
|
|
3685
|
+
case ft.up:
|
|
3683
3686
|
Le("zoomIn");
|
|
3684
3687
|
break;
|
|
3685
3688
|
// RIGHT_ARROW
|
|
3686
|
-
case
|
|
3689
|
+
case ft.right:
|
|
3687
3690
|
Ut();
|
|
3688
3691
|
break;
|
|
3689
3692
|
// DOWN_ARROW
|
|
3690
|
-
case
|
|
3693
|
+
case ft.down:
|
|
3691
3694
|
Le("zoomOut");
|
|
3692
3695
|
break;
|
|
3693
3696
|
}
|
|
3694
|
-
}), $ = wi.throttle((
|
|
3695
|
-
const ve =
|
|
3697
|
+
}), $ = wi.throttle((ne) => {
|
|
3698
|
+
const ve = ne.deltaY || ne.deltaX;
|
|
3696
3699
|
Le(ve < 0 ? "zoomIn" : "zoomOut", {
|
|
3697
3700
|
zoomRate: i.zoomRate,
|
|
3698
3701
|
enableTransition: !1
|
|
@@ -3714,11 +3717,11 @@ const Uh = {
|
|
|
3714
3717
|
function ke(j) {
|
|
3715
3718
|
if (p.value || j.button !== 0 || !c.value) return;
|
|
3716
3719
|
v.value.enableTransition = !1;
|
|
3717
|
-
const { offsetX: $, offsetY:
|
|
3720
|
+
const { offsetX: $, offsetY: ne } = v.value, ve = j.pageX, we = j.pageY, Te = wi.throttle((Xe) => {
|
|
3718
3721
|
v.value = {
|
|
3719
3722
|
...v.value,
|
|
3720
3723
|
offsetX: $ + Xe.pageX - ve,
|
|
3721
|
-
offsetY:
|
|
3724
|
+
offsetY: ne + Xe.pageY - we
|
|
3722
3725
|
};
|
|
3723
3726
|
}), Ee = Kt(document, "mousemove", Te);
|
|
3724
3727
|
Kt(document, "mouseup", () => {
|
|
@@ -3736,22 +3739,22 @@ const Uh = {
|
|
|
3736
3739
|
}
|
|
3737
3740
|
function Ht() {
|
|
3738
3741
|
if (p.value) return;
|
|
3739
|
-
const j = t(e), $ = Object.values(e),
|
|
3742
|
+
const j = t(e), $ = Object.values(e), ne = m.value.name, we = (($ == null ? void 0 : $.findIndex((Te) => Te.name === ne)) + 1) % j.length;
|
|
3740
3743
|
m.value = e[j[we]], Bt();
|
|
3741
3744
|
}
|
|
3742
|
-
function
|
|
3745
|
+
function wt(j) {
|
|
3743
3746
|
const $ = i.urlList.length;
|
|
3744
3747
|
d.value = (j + $) % $;
|
|
3745
3748
|
}
|
|
3746
|
-
function
|
|
3747
|
-
C.value && !i.infinite ||
|
|
3749
|
+
function Tt() {
|
|
3750
|
+
C.value && !i.infinite || wt(d.value - 1);
|
|
3748
3751
|
}
|
|
3749
3752
|
function Ut() {
|
|
3750
|
-
O.value && !i.infinite ||
|
|
3753
|
+
O.value && !i.infinite || wt(d.value + 1);
|
|
3751
3754
|
}
|
|
3752
3755
|
function Le(j, $ = {}) {
|
|
3753
3756
|
if (p.value) return;
|
|
3754
|
-
const { minScale:
|
|
3757
|
+
const { minScale: ne, maxScale: ve } = i, { zoomRate: we, rotateDeg: Te, enableTransition: Ee } = {
|
|
3755
3758
|
zoomRate: i.zoomRate,
|
|
3756
3759
|
rotateDeg: 90,
|
|
3757
3760
|
enableTransition: !0,
|
|
@@ -3759,7 +3762,7 @@ const Uh = {
|
|
|
3759
3762
|
};
|
|
3760
3763
|
switch (j) {
|
|
3761
3764
|
case "zoomOut":
|
|
3762
|
-
v.value.scale >
|
|
3765
|
+
v.value.scale > ne && (v.value.scale = Number.parseFloat(
|
|
3763
3766
|
(v.value.scale / we).toFixed(3)
|
|
3764
3767
|
));
|
|
3765
3768
|
break;
|
|
@@ -3777,12 +3780,12 @@ const Uh = {
|
|
|
3777
3780
|
}
|
|
3778
3781
|
v.value.enableTransition = Ee;
|
|
3779
3782
|
}
|
|
3780
|
-
return
|
|
3783
|
+
return _t(E, () => {
|
|
3781
3784
|
Ot(() => {
|
|
3782
3785
|
const j = f.value[0];
|
|
3783
3786
|
j != null && j.complete || (p.value = !0);
|
|
3784
3787
|
});
|
|
3785
|
-
}),
|
|
3788
|
+
}), _t(d, (j) => {
|
|
3786
3789
|
Bt(), r("switch", j);
|
|
3787
3790
|
}), ml(() => {
|
|
3788
3791
|
var j, $;
|
|
@@ -3791,7 +3794,7 @@ const Uh = {
|
|
|
3791
3794
|
/**
|
|
3792
3795
|
* @description manually switch image
|
|
3793
3796
|
*/
|
|
3794
|
-
setActiveItem:
|
|
3797
|
+
setActiveItem: wt
|
|
3795
3798
|
}), (j, $) => (k(), pe(yl, { to: "body" }, [
|
|
3796
3799
|
K(_l, {
|
|
3797
3800
|
name: "viewer-fade",
|
|
@@ -3812,7 +3815,7 @@ const Uh = {
|
|
|
3812
3815
|
"div",
|
|
3813
3816
|
{
|
|
3814
3817
|
class: Q(L(l).e("mask")),
|
|
3815
|
-
onClick: $[0] || ($[0] = Qe((
|
|
3818
|
+
onClick: $[0] || ($[0] = Qe((ne) => j.hideOnClickModal && U(), ["self"]))
|
|
3816
3819
|
},
|
|
3817
3820
|
null,
|
|
3818
3821
|
2
|
|
@@ -3846,7 +3849,7 @@ const Uh = {
|
|
|
3846
3849
|
"span",
|
|
3847
3850
|
{
|
|
3848
3851
|
class: Q(I.value),
|
|
3849
|
-
onClick:
|
|
3852
|
+
onClick: Tt
|
|
3850
3853
|
},
|
|
3851
3854
|
[
|
|
3852
3855
|
K(L(je), null, {
|
|
@@ -3896,7 +3899,7 @@ const Uh = {
|
|
|
3896
3899
|
},
|
|
3897
3900
|
[
|
|
3898
3901
|
K(L(je), {
|
|
3899
|
-
onClick: $[1] || ($[1] = (
|
|
3902
|
+
onClick: $[1] || ($[1] = (ne) => Le("zoomOut"))
|
|
3900
3903
|
}, {
|
|
3901
3904
|
default: oe(() => [
|
|
3902
3905
|
K(L(yc))
|
|
@@ -3905,7 +3908,7 @@ const Uh = {
|
|
|
3905
3908
|
/* STABLE */
|
|
3906
3909
|
}),
|
|
3907
3910
|
K(L(je), {
|
|
3908
|
-
onClick: $[2] || ($[2] = (
|
|
3911
|
+
onClick: $[2] || ($[2] = (ne) => Le("zoomIn"))
|
|
3909
3912
|
}, {
|
|
3910
3913
|
default: oe(() => [
|
|
3911
3914
|
K(L(vc))
|
|
@@ -3939,7 +3942,7 @@ const Uh = {
|
|
|
3939
3942
|
/* CLASS */
|
|
3940
3943
|
),
|
|
3941
3944
|
K(L(je), {
|
|
3942
|
-
onClick: $[3] || ($[3] = (
|
|
3945
|
+
onClick: $[3] || ($[3] = (ne) => Le("anticlockwise"))
|
|
3943
3946
|
}, {
|
|
3944
3947
|
default: oe(() => [
|
|
3945
3948
|
K(L(cc))
|
|
@@ -3948,7 +3951,7 @@ const Uh = {
|
|
|
3948
3951
|
/* STABLE */
|
|
3949
3952
|
}),
|
|
3950
3953
|
K(L(je), {
|
|
3951
|
-
onClick: $[4] || ($[4] = (
|
|
3954
|
+
onClick: $[4] || ($[4] = (ne) => Le("clockwise"))
|
|
3952
3955
|
}, {
|
|
3953
3956
|
default: oe(() => [
|
|
3954
3957
|
K(L(hc))
|
|
@@ -3974,11 +3977,11 @@ const Uh = {
|
|
|
3974
3977
|
(k(!0), S(
|
|
3975
3978
|
le,
|
|
3976
3979
|
null,
|
|
3977
|
-
De(j.urlList, (
|
|
3980
|
+
De(j.urlList, (ne, ve) => Ru((k(), S("img", {
|
|
3978
3981
|
ref_for: !0,
|
|
3979
3982
|
ref: (we) => f.value[ve] = we,
|
|
3980
|
-
key:
|
|
3981
|
-
src:
|
|
3983
|
+
key: ne,
|
|
3984
|
+
src: ne,
|
|
3982
3985
|
style: ye(q.value),
|
|
3983
3986
|
class: Q(L(l).e("img")),
|
|
3984
3987
|
crossorigin: j.crossorigin,
|
|
@@ -5009,7 +5012,7 @@ var jo = {
|
|
|
5009
5012
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
5010
5013
|
}
|
|
5011
5014
|
}
|
|
5012
|
-
), Ce = "play", ca = "playing", rt = "ended",
|
|
5015
|
+
), Ce = "play", ca = "playing", rt = "ended", kt = "pause", Mt = "error", yi = "seeking", Fe = "seeked", be = "timeupdate", Nt = "waiting", Re = "canplay", ld = "canplaythrough", Be = "durationchange", Gl = "volumechange", Me = "loadeddata", ud = "loadedmetadata", Wl = "ratechange", $l = "progress", fa = "loadstart", at = "emptied", cd = "stalled", fd = "suspend", hd = "abort", dd = "bufferedChange", ha = "focus", Kl = "blur", da = "ready", Yl = "urlNull", it = "autoplay_started", ga = "autoplay_was_prevented", _i = "complete", ii = "replay", pa = "destroy", bi = "urlchange", Vr = "download_speed_change", Xl = "leaveplayer", Jl = "enterplayer", Zl = "loading", Oe = "fullscreen_change", ni = "cssFullscreen_change", ri = "mini_state_change", va = "definition_change", gd = "before_definition_change", qr = "after_definition_change", pd = "SEI_PARSED", vd = "retry", $e = "video_resize", Gr = "pip_change", Ql = "rotate", eu = "screenShot", ai = "playnext", tu = "shortcut", iu = "xglog", si = "user_action", Ci = "reset", nu = "source_error", ru = "source_success", md = "switch_subtitle", au = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], su = {
|
|
5013
5016
|
STATS_INFO: "stats_info",
|
|
5014
5017
|
STATS_DOWNLOAD: "stats_download",
|
|
5015
5018
|
STATS_RESET: "stats_reset"
|
|
@@ -5042,7 +5045,7 @@ const yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5042
5045
|
LOADING: Zl,
|
|
5043
5046
|
LOAD_START: fa,
|
|
5044
5047
|
MINI_STATE_CHANGE: ri,
|
|
5045
|
-
PAUSE:
|
|
5048
|
+
PAUSE: kt,
|
|
5046
5049
|
PIP_CHANGE: Gr,
|
|
5047
5050
|
PLAY: Ce,
|
|
5048
5051
|
PLAYER_BLUR: Kl,
|
|
@@ -7010,7 +7013,7 @@ function Nd(a) {
|
|
|
7010
7013
|
return Dt(n.lang, _e.lang), (s = n.langKeys).push.apply(s, Se(_e.langKeys)), Dt(n.textKeys, _e.textKeys), n;
|
|
7011
7014
|
}
|
|
7012
7015
|
ma(Fd);
|
|
7013
|
-
var
|
|
7016
|
+
var yt = {
|
|
7014
7017
|
get textKeys() {
|
|
7015
7018
|
return _e.textKeys;
|
|
7016
7019
|
},
|
|
@@ -7207,7 +7210,7 @@ var Hd = ["play", "pause", "replay", "retry"], il = 0, nl = 0, ze = null, ki = /
|
|
|
7207
7210
|
}, e._offsetInfo = {
|
|
7208
7211
|
currentTime: -1,
|
|
7209
7212
|
duration: 0
|
|
7210
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
7213
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = yt.init(e._pluginInfoId), V.os.isAndroid && V.osVersion > 0 && V.osVersion < 6 && (e.config.autoplay = !1), e.database = new Cd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
7211
7214
|
isActiveLocked: !1
|
|
7212
7215
|
}, e.instManager = ze;
|
|
7213
7216
|
var l = e._initDOM();
|
|
@@ -7320,7 +7323,7 @@ var Hd = ["play", "pause", "replay", "retry"], il = 0, nl = 0, ze = null, ki = /
|
|
|
7320
7323
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
7321
7324
|
this._loadingPlugins = [];
|
|
7322
7325
|
var r = this.config.ignores || [], o = this.config.plugins || [], l = this.config.i18n || [];
|
|
7323
|
-
i &&
|
|
7326
|
+
i && yt.extend(l, this.__i18n);
|
|
7324
7327
|
var u = r.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
7325
7328
|
o.forEach(function(f) {
|
|
7326
7329
|
try {
|
|
@@ -8126,11 +8129,11 @@ var Hd = ["play", "pause", "replay", "retry"], il = 0, nl = 0, ze = null, ki = /
|
|
|
8126
8129
|
return this.config.lang;
|
|
8127
8130
|
},
|
|
8128
8131
|
set: function(e) {
|
|
8129
|
-
var i =
|
|
8132
|
+
var i = yt.langKeys.filter(function(r) {
|
|
8130
8133
|
return r === e;
|
|
8131
8134
|
});
|
|
8132
8135
|
if (i.length === 0 && e !== "zh") {
|
|
8133
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
8136
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(yt.langKeys.join(), "] "));
|
|
8134
8137
|
return;
|
|
8135
8138
|
}
|
|
8136
8139
|
this.config.lang = e, ce.setLang(e, this);
|
|
@@ -8739,7 +8742,7 @@ var gu = /* @__PURE__ */ (function(a) {
|
|
|
8739
8742
|
key: "listenEvents",
|
|
8740
8743
|
value: function() {
|
|
8741
8744
|
var e = this, i = this.player;
|
|
8742
|
-
this.on([Ce,
|
|
8745
|
+
this.on([Ce, kt, Mt, at], function() {
|
|
8743
8746
|
e.animate(i.paused);
|
|
8744
8747
|
});
|
|
8745
8748
|
}
|
|
@@ -10217,7 +10220,7 @@ var ig = /* @__PURE__ */ (function(a) {
|
|
|
10217
10220
|
e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
|
|
10218
10221
|
}), this.on(Ce, function() {
|
|
10219
10222
|
e.toggleTo("play");
|
|
10220
|
-
}), this.on(
|
|
10223
|
+
}), this.on(kt, function() {
|
|
10221
10224
|
e.toggleTo("pause");
|
|
10222
10225
|
}), this.on(Ci, function() {
|
|
10223
10226
|
e.onPlayerReset();
|
|
@@ -10760,7 +10763,7 @@ var Dr = {
|
|
|
10760
10763
|
key: "afterCreate",
|
|
10761
10764
|
value: function() {
|
|
10762
10765
|
var e = this;
|
|
10763
|
-
this.initIcons(), this.on(
|
|
10766
|
+
this.initIcons(), this.on(kt, function() {
|
|
10764
10767
|
e.setAttr("data-state", "pause");
|
|
10765
10768
|
}), this.on(Ce, function() {
|
|
10766
10769
|
e.setAttr("data-state", "play");
|
|
@@ -11136,7 +11139,7 @@ function hg() {
|
|
|
11136
11139
|
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
11137
11140
|
</svg>`, "image/svg+xml").firstChild;
|
|
11138
11141
|
}
|
|
11139
|
-
var
|
|
11142
|
+
var ht = {
|
|
11140
11143
|
AUTO: "auto",
|
|
11141
11144
|
SEEKING: "seeking",
|
|
11142
11145
|
PLAYBACK: "playbackrate"
|
|
@@ -11174,7 +11177,7 @@ var ft = {
|
|
|
11174
11177
|
}, 10), !!l.isStart) {
|
|
11175
11178
|
l.scope > -1 && i.cancelable && i.preventDefault();
|
|
11176
11179
|
var c = e.config, f = c.disableGesture, g = c.gestureX;
|
|
11177
|
-
!f && g ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(
|
|
11180
|
+
!f && g ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(ht.AUTO);
|
|
11178
11181
|
}
|
|
11179
11182
|
}), _(y(e), "onRootTouchMove", function(i) {
|
|
11180
11183
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -11260,7 +11263,7 @@ var ft = {
|
|
|
11260
11263
|
e.activeSeekNote(g.currentTime, g.forward);
|
|
11261
11264
|
}), ["dragend", "click"].forEach(function(g) {
|
|
11262
11265
|
f.addCallBack(g, function() {
|
|
11263
|
-
e.changeAction(
|
|
11266
|
+
e.changeAction(ht.AUTO);
|
|
11264
11267
|
});
|
|
11265
11268
|
}));
|
|
11266
11269
|
}
|
|
@@ -11366,7 +11369,7 @@ var ft = {
|
|
|
11366
11369
|
}, 500);
|
|
11367
11370
|
break;
|
|
11368
11371
|
}
|
|
11369
|
-
this.changeAction(
|
|
11372
|
+
this.changeAction(ht.AUTO);
|
|
11370
11373
|
}
|
|
11371
11374
|
}, {
|
|
11372
11375
|
key: "checkIsRootTarget",
|
|
@@ -11430,7 +11433,7 @@ var ft = {
|
|
|
11430
11433
|
prop: "playbackRate",
|
|
11431
11434
|
from: o.playbackRate,
|
|
11432
11435
|
to: r.pressRate
|
|
11433
|
-
}), o.playbackRate = r.pressRate, this.changeAction(
|
|
11436
|
+
}), o.playbackRate = r.pressRate, this.changeAction(ht.PLAYBACK));
|
|
11434
11437
|
}
|
|
11435
11438
|
}, {
|
|
11436
11439
|
key: "onPressEnd",
|
|
@@ -11440,7 +11443,7 @@ var ft = {
|
|
|
11440
11443
|
prop: "playbackRate",
|
|
11441
11444
|
from: o.playbackRate,
|
|
11442
11445
|
to: i.rate
|
|
11443
|
-
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
11446
|
+
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(ht.AUTO));
|
|
11444
11447
|
}
|
|
11445
11448
|
}, {
|
|
11446
11449
|
key: "updateTime",
|
|
@@ -11475,7 +11478,7 @@ var ft = {
|
|
|
11475
11478
|
value: function(e) {
|
|
11476
11479
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = this.player, o = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
11477
11480
|
if (!(!e || typeof e != "number" || l || o.disableActive)) {
|
|
11478
|
-
e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(
|
|
11481
|
+
e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(ht.SEEKING);
|
|
11479
11482
|
var u = r.plugins.start;
|
|
11480
11483
|
u && u.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
11481
11484
|
}
|
|
@@ -12173,7 +12176,7 @@ function Cg() {
|
|
|
12173
12176
|
fill="white" />
|
|
12174
12177
|
</svg>`, "image/svg+xml").firstChild;
|
|
12175
12178
|
}
|
|
12176
|
-
var
|
|
12179
|
+
var dt = {
|
|
12177
12180
|
PIP: "picture-in-picture",
|
|
12178
12181
|
INLINE: "inline",
|
|
12179
12182
|
FULLSCREEN: "fullscreen"
|
|
@@ -12208,7 +12211,7 @@ var ht = {
|
|
|
12208
12211
|
key: "afterCreate",
|
|
12209
12212
|
value: function() {
|
|
12210
12213
|
var e = this;
|
|
12211
|
-
this.isPIPAvailable() && (z(H(n.prototype), "afterCreate", this).call(this), this.pMode =
|
|
12214
|
+
this.isPIPAvailable() && (z(H(n.prototype), "afterCreate", this).call(this), this.pMode = dt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(_i, function() {
|
|
12212
12215
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
12213
12216
|
}));
|
|
12214
12217
|
}
|
|
@@ -12245,7 +12248,7 @@ var ht = {
|
|
|
12245
12248
|
i.emit(Gr, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
12246
12249
|
}, this.onWebkitpresentationmodechanged = function(r) {
|
|
12247
12250
|
var o = i.media.webkitPresentationMode;
|
|
12248
|
-
e.pMode ===
|
|
12251
|
+
e.pMode === dt.FULLSCREEN && o !== dt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === dt.PIP ? e.enterPIPCallback(r) : o === dt.INLINE && e.leavePIPCallback(r);
|
|
12249
12252
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), n.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
12250
12253
|
}
|
|
12251
12254
|
}, {
|
|
@@ -12322,7 +12325,7 @@ var ht = {
|
|
|
12322
12325
|
key: "isPip",
|
|
12323
12326
|
get: function() {
|
|
12324
12327
|
var e, i = this.player;
|
|
12325
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
12328
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === dt.PIP;
|
|
12326
12329
|
}
|
|
12327
12330
|
}, {
|
|
12328
12331
|
key: "isPIPAvailable",
|
|
@@ -12818,7 +12821,7 @@ var Ag = /* @__PURE__ */ (function(a) {
|
|
|
12818
12821
|
SIDE: "side",
|
|
12819
12822
|
MIDDLE: "middle",
|
|
12820
12823
|
DEFAULT: "default"
|
|
12821
|
-
},
|
|
12824
|
+
}, gt = {
|
|
12822
12825
|
CLICK: "click",
|
|
12823
12826
|
HOVER: "hover"
|
|
12824
12827
|
};
|
|
@@ -12837,7 +12840,7 @@ var Ze = V.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12837
12840
|
}), _(y(e), "switchActiveState", function(i) {
|
|
12838
12841
|
i.stopPropagation();
|
|
12839
12842
|
var r = e.config.toggleMode;
|
|
12840
|
-
r ===
|
|
12843
|
+
r === gt.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
12841
12844
|
}), _(y(e), "onLeave", function(i) {
|
|
12842
12845
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
12843
12846
|
pluginName: e.pluginName
|
|
@@ -12863,7 +12866,7 @@ var Ze = V.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12863
12866
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
12864
12867
|
}), Ze && this.on(ha, function() {
|
|
12865
12868
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
12866
|
-
}), Ze ? (i.toggleMode =
|
|
12869
|
+
}), Ze ? (i.toggleMode = gt.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === gt.CLICK ? "click" : "mouseenter", i.toggleMode === gt.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
12867
12870
|
}
|
|
12868
12871
|
}, {
|
|
12869
12872
|
key: "initIcons",
|
|
@@ -12964,7 +12967,7 @@ var Ze = V.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12964
12967
|
key: "destroy",
|
|
12965
12968
|
value: function() {
|
|
12966
12969
|
var e = this.config;
|
|
12967
|
-
e.toggleMode ===
|
|
12970
|
+
e.toggleMode === gt.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
|
|
12968
12971
|
}
|
|
12969
12972
|
}, {
|
|
12970
12973
|
key: "render",
|
|
@@ -12992,7 +12995,7 @@ var Ze = V.device === "mobile", ci = /* @__PURE__ */ (function(a) {
|
|
|
12992
12995
|
hidePortrait: !0,
|
|
12993
12996
|
isShowIcon: !1,
|
|
12994
12997
|
isItemClickHide: !0,
|
|
12995
|
-
toggleMode:
|
|
12998
|
+
toggleMode: gt.HOVER,
|
|
12996
12999
|
heightLimit: !0
|
|
12997
13000
|
};
|
|
12998
13001
|
}
|
|
@@ -13498,7 +13501,7 @@ function Bg(a) {
|
|
|
13498
13501
|
a.positionDots();
|
|
13499
13502
|
});
|
|
13500
13503
|
}
|
|
13501
|
-
var
|
|
13504
|
+
var pt = {
|
|
13502
13505
|
dragmove: "onProgressMove",
|
|
13503
13506
|
dragstart: "onProgressDragStart",
|
|
13504
13507
|
dragend: "onProgressDragEnd",
|
|
@@ -13578,8 +13581,8 @@ var gt = {
|
|
|
13578
13581
|
key: "bindEvents",
|
|
13579
13582
|
value: function() {
|
|
13580
13583
|
var e = this, i = this.player.plugins.progress;
|
|
13581
|
-
if (i && (Object.keys(
|
|
13582
|
-
e[
|
|
13584
|
+
if (i && (Object.keys(pt).map(function(o) {
|
|
13585
|
+
e[pt[o]] = e[pt[o]].bind(e), i.addCallBack(o, e[pt[o]]);
|
|
13583
13586
|
}), V.device !== "mobile")) {
|
|
13584
13587
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
13585
13588
|
var r = this.hook("previewClick", function() {
|
|
@@ -13737,8 +13740,8 @@ var gt = {
|
|
|
13737
13740
|
key: "destroy",
|
|
13738
13741
|
value: function() {
|
|
13739
13742
|
var e = this, i = this.player.plugins.progress;
|
|
13740
|
-
i && Object.keys(
|
|
13741
|
-
i.removeCallBack(r, e[
|
|
13743
|
+
i && Object.keys(pt).map(function(r) {
|
|
13744
|
+
i.removeCallBack(r, e[pt[r]]);
|
|
13742
13745
|
}), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
|
|
13743
13746
|
}
|
|
13744
13747
|
}, {
|
|
@@ -13999,7 +14002,7 @@ var jg = /* @__PURE__ */ (function(a) {
|
|
|
13999
14002
|
};
|
|
14000
14003
|
}
|
|
14001
14004
|
}]), n;
|
|
14002
|
-
})(Y),
|
|
14005
|
+
})(Y), vt = {
|
|
14003
14006
|
REAL_TIME: "realtime",
|
|
14004
14007
|
FIRST_FRAME: "firstframe",
|
|
14005
14008
|
POSTER: "poster"
|
|
@@ -14041,7 +14044,7 @@ var Jt = null, qg = /* @__PURE__ */ (function(a) {
|
|
|
14041
14044
|
}
|
|
14042
14045
|
}), _(y(t), "start", function(o, l) {
|
|
14043
14046
|
var u = t.player.video, c = zg(), f = t.checkVideoIsSupport(u);
|
|
14044
|
-
!f || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode ===
|
|
14047
|
+
!f || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === vt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(y(t), t.start, l) : h.requestAnimationFrame(t.start));
|
|
14045
14048
|
}), _(y(t), "stop", function() {
|
|
14046
14049
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
14047
14050
|
}), t;
|
|
@@ -14060,14 +14063,14 @@ var Jt = null, qg = /* @__PURE__ */ (function(a) {
|
|
|
14060
14063
|
x: 0,
|
|
14061
14064
|
y: 0,
|
|
14062
14065
|
pi: 0
|
|
14063
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !==
|
|
14066
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== vt.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(_i, function() {
|
|
14064
14067
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
14065
|
-
}), o !==
|
|
14068
|
+
}), o !== vt.POSTER && (o !== vt.FIRST_FRAME && (this.on(at, function() {
|
|
14066
14069
|
e.stop();
|
|
14067
14070
|
}), this.on(Ce, function() {
|
|
14068
14071
|
var u = e.config.startInterval;
|
|
14069
14072
|
e._checkIfCanStart() && e.start(0, u);
|
|
14070
|
-
}), this.on(
|
|
14073
|
+
}), this.on(kt, function() {
|
|
14071
14074
|
e.stop();
|
|
14072
14075
|
})), this.on(Me, this.onLoadedData), this.on(fa, function() {
|
|
14073
14076
|
e._isLoaded = !1, e.stop();
|
|
@@ -14134,7 +14137,7 @@ var Jt = null, qg = /* @__PURE__ */ (function(a) {
|
|
|
14134
14137
|
key: "_checkIfCanStart",
|
|
14135
14138
|
value: function() {
|
|
14136
14139
|
var e = this.config.mode;
|
|
14137
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
14140
|
+
return this._isLoaded && !this.player.paused && e !== vt.FIRST_FRAME && e !== vt.POSTER;
|
|
14138
14141
|
}
|
|
14139
14142
|
}, {
|
|
14140
14143
|
key: "renderOnce",
|
|
@@ -14576,7 +14579,7 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14576
14579
|
};
|
|
14577
14580
|
}
|
|
14578
14581
|
}]), n;
|
|
14579
|
-
})(Y),
|
|
14582
|
+
})(Y), mt = "cdn", Zt = ["cdn"], Kg = /* @__PURE__ */ (function(a) {
|
|
14580
14583
|
N(n, a);
|
|
14581
14584
|
var s = B(n);
|
|
14582
14585
|
function n() {
|
|
@@ -14585,7 +14588,7 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14585
14588
|
for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
|
|
14586
14589
|
i[r] = arguments[r];
|
|
14587
14590
|
return t = s.call.apply(s, [this].concat(i)), _(y(t), "getSpeed", function() {
|
|
14588
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
14591
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mt;
|
|
14589
14592
|
if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
|
|
14590
14593
|
return 0;
|
|
14591
14594
|
var l = 0;
|
|
@@ -14599,7 +14602,7 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14599
14602
|
t.speedListCache[o] = [];
|
|
14600
14603
|
});
|
|
14601
14604
|
}), _(y(t), "_onRealSpeedChange", function(o) {
|
|
14602
|
-
o.speed && t.appendList(o.speed, o.type ||
|
|
14605
|
+
o.speed && t.appendList(o.speed, o.type || mt);
|
|
14603
14606
|
}), _(y(t), "testSpeed", function() {
|
|
14604
14607
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
14605
14608
|
var o = t.config, l = o.url, u = o.loadSize, c = o.testCnt, f = o.testTimeStep, g = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -14624,17 +14627,17 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14624
14627
|
}
|
|
14625
14628
|
}
|
|
14626
14629
|
}), _(y(t), "appendList", function(o) {
|
|
14627
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
14630
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mt;
|
|
14628
14631
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
14629
14632
|
var u = t.config.saveSpeedMax;
|
|
14630
14633
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(o);
|
|
14631
14634
|
var c = y(t), f = c.player;
|
|
14632
|
-
f && (l ===
|
|
14635
|
+
f && (l === mt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", l)] = o), t.updateSpeed(l);
|
|
14633
14636
|
}
|
|
14634
14637
|
}), _(y(t), "updateSpeed", function() {
|
|
14635
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
14638
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mt, l = t.getSpeed(o), u = y(t), c = u.player;
|
|
14636
14639
|
if (c)
|
|
14637
|
-
if (o ===
|
|
14640
|
+
if (o === mt)
|
|
14638
14641
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Vr, {
|
|
14639
14642
|
speed: l,
|
|
14640
14643
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -14716,7 +14719,7 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14716
14719
|
var l = o.getVideoPlaybackQuality;
|
|
14717
14720
|
l && (this.on(Ce, function() {
|
|
14718
14721
|
e._startTick();
|
|
14719
|
-
}), this.on(
|
|
14722
|
+
}), this.on(kt, function() {
|
|
14720
14723
|
e._stopTick();
|
|
14721
14724
|
}), this.on(rt, function() {
|
|
14722
14725
|
e._stopTick();
|
|
@@ -14812,7 +14815,7 @@ var $g = /* @__PURE__ */ (function(a) {
|
|
|
14812
14815
|
}
|
|
14813
14816
|
}]), n;
|
|
14814
14817
|
})(Y);
|
|
14815
|
-
|
|
14818
|
+
yt.use(Gg);
|
|
14816
14819
|
var Xg = /* @__PURE__ */ F(function a(s, n) {
|
|
14817
14820
|
var t, e, i;
|
|
14818
14821
|
R(this, a);
|
|
@@ -14845,7 +14848,7 @@ _(ue, "Errors", ti);
|
|
|
14845
14848
|
_(ue, "Events", yd);
|
|
14846
14849
|
_(ue, "Plugin", Y);
|
|
14847
14850
|
_(ue, "BasePlugin", Ke);
|
|
14848
|
-
_(ue, "I18N",
|
|
14851
|
+
_(ue, "I18N", yt);
|
|
14849
14852
|
_(ue, "STATE_CLASS", x);
|
|
14850
14853
|
_(ue, "InstManager", hu);
|
|
14851
14854
|
_(ue, "PlayIcon", gu);
|
|
@@ -14883,7 +14886,7 @@ const Jg = ["id"], Zg = /* @__PURE__ */ ae({
|
|
|
14883
14886
|
}, ["update:modelValue"]),
|
|
14884
14887
|
setup(a, { emit: s }) {
|
|
14885
14888
|
let n = null;
|
|
14886
|
-
const t = a, { cLoadUrl: e } = Yr(t), i =
|
|
14889
|
+
const t = a, { cLoadUrl: e } = Yr(t), i = ie(() => Ct(e.value, t.url)), r = {
|
|
14887
14890
|
width: "100%",
|
|
14888
14891
|
height: "100%",
|
|
14889
14892
|
// 是否自动播放
|
|
@@ -14901,14 +14904,14 @@ const Jg = ["id"], Zg = /* @__PURE__ */ ae({
|
|
|
14901
14904
|
poster: "",
|
|
14902
14905
|
lang: "zh-CN",
|
|
14903
14906
|
screenShot: !0
|
|
14904
|
-
}, o =
|
|
14907
|
+
}, o = ie(() => ({
|
|
14905
14908
|
...r,
|
|
14906
14909
|
...t.config
|
|
14907
14910
|
})), l = s, u = $r(a, "modelValue"), c = bl(), f = Cl("image-viewer");
|
|
14908
14911
|
function g() {
|
|
14909
14912
|
l("close"), u.value = !1, n.destroy();
|
|
14910
14913
|
}
|
|
14911
|
-
return
|
|
14914
|
+
return _t(() => u.value, (p) => {
|
|
14912
14915
|
p && Ot(() => {
|
|
14913
14916
|
n = new ue({
|
|
14914
14917
|
id: c,
|
|
@@ -14917,7 +14920,7 @@ const Jg = ["id"], Zg = /* @__PURE__ */ ae({
|
|
|
14917
14920
|
});
|
|
14918
14921
|
});
|
|
14919
14922
|
}), (p, d) => {
|
|
14920
|
-
const m =
|
|
14923
|
+
const m = bt("el-icon");
|
|
14921
14924
|
return u.value ? (k(), pe(yl, {
|
|
14922
14925
|
key: 0,
|
|
14923
14926
|
to: "body"
|
|
@@ -15087,7 +15090,7 @@ const Jg = ["id"], Zg = /* @__PURE__ */ ae({
|
|
|
15087
15090
|
emits: ["preview"],
|
|
15088
15091
|
setup(a, { emit: s }) {
|
|
15089
15092
|
const n = a, { cLoadUrl: t } = Yr(n), e = vl(_c(n));
|
|
15090
|
-
|
|
15093
|
+
_t(
|
|
15091
15094
|
() => n.dataList,
|
|
15092
15095
|
(c) => {
|
|
15093
15096
|
c && (Ot(() => {
|
|
@@ -15158,9 +15161,9 @@ const Jg = ["id"], Zg = /* @__PURE__ */ ae({
|
|
|
15158
15161
|
let g = document.getElementById(`${c[e.defaultFile.nodeId]}`), p = Array.from(g == null ? void 0 : g.getElementsByClassName("approveList"));
|
|
15159
15162
|
for (let d of p)
|
|
15160
15163
|
d.style.display = f;
|
|
15161
|
-
}, u = (c) =>
|
|
15164
|
+
}, u = (c) => Ct(t.value, c);
|
|
15162
15165
|
return (c, f) => {
|
|
15163
|
-
const g =
|
|
15166
|
+
const g = bt("el-image"), p = bt("IkingApprovalProcessDetail");
|
|
15164
15167
|
return k(), S("div", tp, [
|
|
15165
15168
|
(k(!0), S(
|
|
15166
15169
|
le,
|