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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ae, createElementBlock as $, openBlock as U, createElementVNode as q, inject as
|
|
1
|
+
import { defineComponent as ae, createElementBlock as $, openBlock as U, createElementVNode as q, inject as tt, computed as re, resolveComponent as Kt, normalizeStyle as Ct, normalizeClass as ee, createBlock as Ke, Fragment as kt, withCtx as ne, mergeProps as lu, createTextVNode as Lr, toDisplayString as Tt, createVNode as Z, unref as F, mergeModels as wt, useModel as Ur, ref as be, h as _l, createSlots as bl, renderSlot as lt, createCommentVNode as he, getCurrentScope as Cl, onScopeDispose as kl, watch as St, markRaw as ya, effectScope as Tl, shallowRef as wl, nextTick as jr, onMounted as Sl, Teleport as cu, Transition as fu, withModifiers as El, resolveDynamicComponent as xl, renderList as Il, withDirectives as Pl, vShow as Al, reactive as Ll } from "vue";
|
|
2
2
|
import { ikColor as Rl, paramType as _a, _ as pi, buildUUID as hu } from "iking-utils-pro";
|
|
3
|
-
import { useLocale as Dl, useNamespace as du, useZIndex as Ol, ElIcon as Me, EVENT_CODE as
|
|
4
|
-
const
|
|
3
|
+
import { useLocale as Dl, useNamespace as du, useZIndex as Ol, ElIcon as Me, EVENT_CODE as it } from "element-plus";
|
|
4
|
+
const ft = (s, a) => (s.install = (n) => {
|
|
5
5
|
for (const t of [s, ...Object.values({})])
|
|
6
6
|
n.component(t.name, t);
|
|
7
7
|
}, s), Rr = (s, a) => {
|
|
@@ -311,14 +311,17 @@ const qr = (s, a) => {
|
|
|
311
311
|
"flv",
|
|
312
312
|
"tls"
|
|
313
313
|
], ec = (s) => {
|
|
314
|
-
const a =
|
|
314
|
+
const a = tt("loadUrl"), n = re(() => s.loadUrl || s.fileUrl || (a == null ? void 0 : a.value)), t = tt("uploadUrl"), e = re(() => s.action || s.uploadUrl || (t == null ? void 0 : t.value)), i = tt("token"), r = re(() => s.token || (i == null ? void 0 : i.value)), o = tt("header"), u = re(() => s.header || (o == null ? void 0 : o.value) || {
|
|
315
|
+
Authorization: r.value
|
|
316
|
+
}), l = tt("onlyofficeConfig"), c = re(() => s.onlyofficeConfig || (l == null ? void 0 : l.value)), f = tt("userInfo"), d = re(() => s.userInfo || (f == null ? void 0 : f.value)), p = [...Ca, ...Ca.map((g) => g.toLocaleUpperCase())];
|
|
315
317
|
return {
|
|
316
318
|
cLoadUrl: n,
|
|
317
319
|
cUploadUrl: e,
|
|
318
320
|
cToken: r,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
321
|
+
cHeader: u,
|
|
322
|
+
cOnlyofficeConfig: c,
|
|
323
|
+
cUserInfo: d,
|
|
324
|
+
cOnlyofficePreviewType: p
|
|
322
325
|
};
|
|
323
326
|
};
|
|
324
327
|
function Vr(s) {
|
|
@@ -524,7 +527,7 @@ const tc = {
|
|
|
524
527
|
);
|
|
525
528
|
};
|
|
526
529
|
}
|
|
527
|
-
}), uc = /* @__PURE__ */ qr(oc, [["__scopeId", "data-v-
|
|
530
|
+
}), uc = /* @__PURE__ */ qr(oc, [["__scopeId", "data-v-9ebb0a94"]]), lc = ft(uc), cc = /* @__PURE__ */ ae({
|
|
528
531
|
__name: "CloseIcon",
|
|
529
532
|
props: {
|
|
530
533
|
showBg: {
|
|
@@ -554,7 +557,7 @@ const tc = {
|
|
|
554
557
|
/* CLASS */
|
|
555
558
|
));
|
|
556
559
|
}
|
|
557
|
-
}), fc = /* @__PURE__ */ qr(cc, [["__scopeId", "data-v-
|
|
560
|
+
}), fc = /* @__PURE__ */ qr(cc, [["__scopeId", "data-v-da9210e2"]]), hc = { class: "base-header" }, dc = /* @__PURE__ */ ae({
|
|
558
561
|
__name: "IkBaseDialog",
|
|
559
562
|
props: /* @__PURE__ */ wt({
|
|
560
563
|
title: { default: "" },
|
|
@@ -598,7 +601,7 @@ const tc = {
|
|
|
598
601
|
"modal-class": "baseDialog"
|
|
599
602
|
}), bl({
|
|
600
603
|
icon: ne(() => [
|
|
601
|
-
|
|
604
|
+
lt(i.$slots, "title", {}, () => [
|
|
602
605
|
Lr(
|
|
603
606
|
Tt(s.title),
|
|
604
607
|
1
|
|
@@ -608,7 +611,7 @@ const tc = {
|
|
|
608
611
|
]),
|
|
609
612
|
header: ne(() => [
|
|
610
613
|
q("div", hc, [
|
|
611
|
-
|
|
614
|
+
lt(i.$slots, "header", {}, () => [
|
|
612
615
|
Lr(
|
|
613
616
|
Tt(s.title),
|
|
614
617
|
1
|
|
@@ -616,12 +619,12 @@ const tc = {
|
|
|
616
619
|
)
|
|
617
620
|
])
|
|
618
621
|
]),
|
|
619
|
-
he(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
|
|
620
|
-
:name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
|
|
622
|
+
he(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
|
|
623
|
+
:name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
|
|
621
624
|
class="absolute! top-[18px] right-[50px] icon-dialog-full" :title="isFull ? '退出全屏' : '全屏'" /> `)
|
|
622
625
|
]),
|
|
623
626
|
default: ne(() => [
|
|
624
|
-
|
|
627
|
+
lt(i.$slots, "default")
|
|
625
628
|
]),
|
|
626
629
|
_: 2
|
|
627
630
|
/* DYNAMIC */
|
|
@@ -629,14 +632,14 @@ const tc = {
|
|
|
629
632
|
i.$slots.footer ? {
|
|
630
633
|
name: "footer",
|
|
631
634
|
fn: ne(() => [
|
|
632
|
-
|
|
635
|
+
lt(i.$slots, "footer")
|
|
633
636
|
]),
|
|
634
637
|
key: "0"
|
|
635
638
|
} : void 0
|
|
636
639
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
637
640
|
};
|
|
638
641
|
}
|
|
639
|
-
}), ka =
|
|
642
|
+
}), ka = ft(dc);
|
|
640
643
|
function gc(s, a, n, t) {
|
|
641
644
|
function e(i) {
|
|
642
645
|
return i instanceof n ? i : new n(function(r) {
|
|
@@ -1957,8 +1960,8 @@ var dr, To;
|
|
|
1957
1960
|
function Of() {
|
|
1958
1961
|
if (To) return dr;
|
|
1959
1962
|
To = 1;
|
|
1960
|
-
var s = Kc(), a = $c(), n = bu(), t = sf(), e = lf(), i = cf(), r = ff(), o = df(), u = gf(), l = pf(), c = vf(), f = Qr(), d = Cf(), p = xf(), g = Pf(), v = Wr(), m = Cu(), T = Lf(), b = xt(), C = Df(), I = Xr(), w = Zr(), S = 1, D = 2, W = 4, B = "[object Arguments]", O = "[object Array]", P = "[object Boolean]", Q = "[object Date]", ie = "[object Error]", me = "[object Function]", Lt = "[object GeneratorFunction]", Rt = "[object Map]",
|
|
1961
|
-
Y[B] = Y[O] = Y[de] = Y[ye] = Y[P] = Y[Q] = Y[_e] = Y[ke] = Y[Ve] = Y[Ot] = Y[Mt] = Y[Rt] = Y[
|
|
1963
|
+
var s = Kc(), a = $c(), n = bu(), t = sf(), e = lf(), i = cf(), r = ff(), o = df(), u = gf(), l = pf(), c = vf(), f = Qr(), d = Cf(), p = xf(), g = Pf(), v = Wr(), m = Cu(), T = Lf(), b = xt(), C = Df(), I = Xr(), w = Zr(), S = 1, D = 2, W = 4, B = "[object Arguments]", O = "[object Array]", P = "[object Boolean]", Q = "[object Date]", ie = "[object Error]", me = "[object Function]", Lt = "[object GeneratorFunction]", Rt = "[object Map]", dt = "[object Number]", gt = "[object Object]", Dt = "[object RegExp]", xe = "[object Set]", M = "[object String]", z = "[object Symbol]", J = "[object WeakMap]", de = "[object ArrayBuffer]", ye = "[object DataView]", _e = "[object Float32Array]", ke = "[object Float64Array]", Ve = "[object Int8Array]", Ot = "[object Int16Array]", Mt = "[object Int32Array]", pt = "[object Uint8Array]", dl = "[object Uint8ClampedArray]", gl = "[object Uint16Array]", pl = "[object Uint32Array]", Y = {};
|
|
1964
|
+
Y[B] = Y[O] = Y[de] = Y[ye] = Y[P] = Y[Q] = Y[_e] = Y[ke] = Y[Ve] = Y[Ot] = Y[Mt] = Y[Rt] = Y[dt] = Y[gt] = Y[Dt] = Y[xe] = Y[M] = Y[z] = Y[pt] = Y[dl] = Y[gl] = Y[pl] = !0, Y[ie] = Y[me] = Y[J] = !1;
|
|
1962
1965
|
function Ft(K, Je, Qe, vl, Nt, De) {
|
|
1963
1966
|
var ce, Bt = Je & S, Ht = Je & D, ml = Je & W;
|
|
1964
1967
|
if (Qe && (ce = Nt ? Qe(K, vl, Nt, De) : Qe(K)), ce !== void 0)
|
|
@@ -1973,7 +1976,7 @@ function Of() {
|
|
|
1973
1976
|
var et = f(K), pa = et == me || et == Lt;
|
|
1974
1977
|
if (m(K))
|
|
1975
1978
|
return i(K, Bt);
|
|
1976
|
-
if (et ==
|
|
1979
|
+
if (et == gt || et == B || pa && !Nt) {
|
|
1977
1980
|
if (ce = Ht || pa ? {} : g(K), !Bt)
|
|
1978
1981
|
return Ht ? u(K, e(ce, K)) : o(K, t(ce, K));
|
|
1979
1982
|
} else {
|
|
@@ -2239,7 +2242,7 @@ const Uf = /* @__PURE__ */ ae({
|
|
|
2239
2242
|
/* STYLE */
|
|
2240
2243
|
));
|
|
2241
2244
|
}
|
|
2242
|
-
}), jf =
|
|
2245
|
+
}), jf = ft(Uf);
|
|
2243
2246
|
var So;
|
|
2244
2247
|
const Lu = typeof window < "u", qf = (s) => typeof s == "string", Vf = () => {
|
|
2245
2248
|
};
|
|
@@ -2427,11 +2430,11 @@ const Qf = {
|
|
|
2427
2430
|
let _e = J / M, ke = de / M;
|
|
2428
2431
|
const Ve = z * Math.PI / 180, Ot = Math.cos(Ve), Mt = Math.sin(Ve);
|
|
2429
2432
|
_e = _e * Ot + ke * Mt, ke = ke * Ot - J / M * Mt;
|
|
2430
|
-
const
|
|
2433
|
+
const pt = {
|
|
2431
2434
|
transform: `scale(${M}) rotate(${z}deg) translate(${_e}px, ${ke}px)`,
|
|
2432
2435
|
transition: ye ? "transform .3s" : ""
|
|
2433
2436
|
};
|
|
2434
|
-
return v.value.name === e.CONTAIN.name && (
|
|
2437
|
+
return v.value.name === e.CONTAIN.name && (pt.maxWidth = pt.maxHeight = "100%"), pt;
|
|
2435
2438
|
});
|
|
2436
2439
|
function B() {
|
|
2437
2440
|
P(), r("close");
|
|
@@ -2440,27 +2443,27 @@ const Qf = {
|
|
|
2440
2443
|
const M = pi.throttle((J) => {
|
|
2441
2444
|
switch (J.code) {
|
|
2442
2445
|
// ESC
|
|
2443
|
-
case
|
|
2446
|
+
case it.esc:
|
|
2444
2447
|
i.closeOnPressEscape && B();
|
|
2445
2448
|
break;
|
|
2446
2449
|
// SPACE
|
|
2447
|
-
case
|
|
2450
|
+
case it.space:
|
|
2448
2451
|
Rt();
|
|
2449
2452
|
break;
|
|
2450
2453
|
// LEFT_ARROW
|
|
2451
|
-
case
|
|
2452
|
-
|
|
2454
|
+
case it.left:
|
|
2455
|
+
gt();
|
|
2453
2456
|
break;
|
|
2454
2457
|
// UP_ARROW
|
|
2455
|
-
case
|
|
2458
|
+
case it.up:
|
|
2456
2459
|
xe("zoomIn");
|
|
2457
2460
|
break;
|
|
2458
2461
|
// RIGHT_ARROW
|
|
2459
|
-
case
|
|
2462
|
+
case it.right:
|
|
2460
2463
|
Dt();
|
|
2461
2464
|
break;
|
|
2462
2465
|
// DOWN_ARROW
|
|
2463
|
-
case
|
|
2466
|
+
case it.down:
|
|
2464
2467
|
xe("zoomOut");
|
|
2465
2468
|
break;
|
|
2466
2469
|
}
|
|
@@ -2512,15 +2515,15 @@ const Qf = {
|
|
|
2512
2515
|
const M = t(e), z = Object.values(e), J = v.value.name, ye = ((z == null ? void 0 : z.findIndex((_e) => _e.name === J)) + 1) % M.length;
|
|
2513
2516
|
v.value = e[M[ye]], Lt();
|
|
2514
2517
|
}
|
|
2515
|
-
function
|
|
2518
|
+
function dt(M) {
|
|
2516
2519
|
const z = i.urlList.length;
|
|
2517
2520
|
g.value = (M + z) % z;
|
|
2518
2521
|
}
|
|
2519
|
-
function
|
|
2520
|
-
C.value && !i.infinite ||
|
|
2522
|
+
function gt() {
|
|
2523
|
+
C.value && !i.infinite || dt(g.value - 1);
|
|
2521
2524
|
}
|
|
2522
2525
|
function Dt() {
|
|
2523
|
-
I.value && !i.infinite ||
|
|
2526
|
+
I.value && !i.infinite || dt(g.value + 1);
|
|
2524
2527
|
}
|
|
2525
2528
|
function xe(M, z = {}) {
|
|
2526
2529
|
if (p.value) return;
|
|
@@ -2564,7 +2567,7 @@ const Qf = {
|
|
|
2564
2567
|
/**
|
|
2565
2568
|
* @description manually switch image
|
|
2566
2569
|
*/
|
|
2567
|
-
setActiveItem:
|
|
2570
|
+
setActiveItem: dt
|
|
2568
2571
|
}), (M, z) => (U(), Ke(cu, { to: "body" }, [
|
|
2569
2572
|
Z(fu, {
|
|
2570
2573
|
name: "viewer-fade",
|
|
@@ -2619,7 +2622,7 @@ const Qf = {
|
|
|
2619
2622
|
"span",
|
|
2620
2623
|
{
|
|
2621
2624
|
class: ee(S.value),
|
|
2622
|
-
onClick:
|
|
2625
|
+
onClick: gt
|
|
2623
2626
|
},
|
|
2624
2627
|
[
|
|
2625
2628
|
Z(F(Me), null, {
|
|
@@ -2768,7 +2771,7 @@ const Qf = {
|
|
|
2768
2771
|
2
|
|
2769
2772
|
/* CLASS */
|
|
2770
2773
|
),
|
|
2771
|
-
|
|
2774
|
+
lt(M.$slots, "default")
|
|
2772
2775
|
],
|
|
2773
2776
|
6
|
|
2774
2777
|
/* CLASS, STYLE */
|
|
@@ -2779,7 +2782,7 @@ const Qf = {
|
|
|
2779
2782
|
})
|
|
2780
2783
|
]));
|
|
2781
2784
|
}
|
|
2782
|
-
}), nh =
|
|
2785
|
+
}), nh = ft(ih);
|
|
2783
2786
|
function Lo(s, a) {
|
|
2784
2787
|
var n = Object.keys(s);
|
|
2785
2788
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3782,7 +3785,7 @@ var Oo = {
|
|
|
3782
3785
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3783
3786
|
}
|
|
3784
3787
|
}
|
|
3785
|
-
), ve = "play", na = "playing", Ye = "ended",
|
|
3788
|
+
), ve = "play", na = "playing", Ye = "ended", ht = "pause", Pt = "error", ci = "seeking", Ae = "seeked", pe = "timeupdate", At = "waiting", Pe = "canplay", Ch = "canplaythrough", Re = "durationchange", Nu = "volumechange", Le = "loadeddata", kh = "loadedmetadata", Bu = "ratechange", Hu = "progress", ra = "loadstart", Xe = "emptied", Th = "stalled", wh = "suspend", Sh = "abort", Eh = "bufferedChange", aa = "focus", Uu = "blur", sa = "ready", ju = "urlNull", We = "autoplay_started", oa = "autoplay_was_prevented", fi = "complete", Yt = "replay", ua = "destroy", hi = "urlchange", Fr = "download_speed_change", qu = "leaveplayer", Vu = "enterplayer", zu = "loading", Ie = "fullscreen_change", Xt = "cssFullscreen_change", Zt = "mini_state_change", la = "definition_change", xh = "before_definition_change", Nr = "after_definition_change", Ih = "SEI_PARSED", Ph = "retry", Ue = "video_resize", Br = "pip_change", Gu = "rotate", Wu = "screenShot", Jt = "playnext", Ku = "shortcut", $u = "xglog", Qt = "user_action", di = "reset", Yu = "source_error", Xu = "source_success", Ah = "switch_subtitle", Zu = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Ju = {
|
|
3786
3789
|
STATS_INFO: "stats_info",
|
|
3787
3790
|
STATS_DOWNLOAD: "stats_download",
|
|
3788
3791
|
STATS_RESET: "stats_reset"
|
|
@@ -3815,7 +3818,7 @@ const Lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3815
3818
|
LOADING: zu,
|
|
3816
3819
|
LOAD_START: ra,
|
|
3817
3820
|
MINI_STATE_CHANGE: Zt,
|
|
3818
|
-
PAUSE:
|
|
3821
|
+
PAUSE: ht,
|
|
3819
3822
|
PIP_CHANGE: Br,
|
|
3820
3823
|
PLAY: ve,
|
|
3821
3824
|
PLAYER_BLUR: Uu,
|
|
@@ -5783,7 +5786,7 @@ function Xh(s) {
|
|
|
5783
5786
|
return Et(n.lang, ge.lang), (a = n.langKeys).push.apply(a, Ce(ge.langKeys)), Et(n.textKeys, ge.textKeys), n;
|
|
5784
5787
|
}
|
|
5785
5788
|
ca($h);
|
|
5786
|
-
var
|
|
5789
|
+
var ct = {
|
|
5787
5790
|
get textKeys() {
|
|
5788
5791
|
return ge.textKeys;
|
|
5789
5792
|
},
|
|
@@ -5980,7 +5983,7 @@ var Jh = ["play", "pause", "replay", "retry"], Yo = 0, Xo = 0, Fe = null, gi = /
|
|
|
5980
5983
|
}, e._offsetInfo = {
|
|
5981
5984
|
currentTime: -1,
|
|
5982
5985
|
duration: 0
|
|
5983
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n =
|
|
5986
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = ct.init(e._pluginInfoId), H.os.isAndroid && H.osVersion > 0 && H.osVersion < 6 && (e.config.autoplay = !1), e.database = new Oh(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5984
5987
|
isActiveLocked: !1
|
|
5985
5988
|
}, e.instManager = Fe;
|
|
5986
5989
|
var u = e._initDOM();
|
|
@@ -6093,7 +6096,7 @@ var Jh = ["play", "pause", "replay", "retry"], Yo = 0, Xo = 0, Fe = null, gi = /
|
|
|
6093
6096
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
6094
6097
|
this._loadingPlugins = [];
|
|
6095
6098
|
var r = this.config.ignores || [], o = this.config.plugins || [], u = this.config.i18n || [];
|
|
6096
|
-
i &&
|
|
6099
|
+
i && ct.extend(u, this.__i18n);
|
|
6097
6100
|
var l = r.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
6098
6101
|
o.forEach(function(f) {
|
|
6099
6102
|
try {
|
|
@@ -6899,11 +6902,11 @@ var Jh = ["play", "pause", "replay", "retry"], Yo = 0, Xo = 0, Fe = null, gi = /
|
|
|
6899
6902
|
return this.config.lang;
|
|
6900
6903
|
},
|
|
6901
6904
|
set: function(e) {
|
|
6902
|
-
var i =
|
|
6905
|
+
var i = ct.langKeys.filter(function(r) {
|
|
6903
6906
|
return r === e;
|
|
6904
6907
|
});
|
|
6905
6908
|
if (i.length === 0 && e !== "zh") {
|
|
6906
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
6909
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(ct.langKeys.join(), "] "));
|
|
6907
6910
|
return;
|
|
6908
6911
|
}
|
|
6909
6912
|
this.config.lang = e, oe.setLang(e, this);
|
|
@@ -7512,7 +7515,7 @@ var sl = /* @__PURE__ */ (function(s) {
|
|
|
7512
7515
|
key: "listenEvents",
|
|
7513
7516
|
value: function() {
|
|
7514
7517
|
var e = this, i = this.player;
|
|
7515
|
-
this.on([ve,
|
|
7518
|
+
this.on([ve, ht, Pt, Xe], function() {
|
|
7516
7519
|
e.animate(i.paused);
|
|
7517
7520
|
});
|
|
7518
7521
|
}
|
|
@@ -8990,7 +8993,7 @@ var pd = /* @__PURE__ */ (function(s) {
|
|
|
8990
8993
|
e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
|
|
8991
8994
|
}), this.on(ve, function() {
|
|
8992
8995
|
e.toggleTo("play");
|
|
8993
|
-
}), this.on(
|
|
8996
|
+
}), this.on(ht, function() {
|
|
8994
8997
|
e.toggleTo("pause");
|
|
8995
8998
|
}), this.on(di, function() {
|
|
8996
8999
|
e.onPlayerReset();
|
|
@@ -9533,7 +9536,7 @@ var Sr = {
|
|
|
9533
9536
|
key: "afterCreate",
|
|
9534
9537
|
value: function() {
|
|
9535
9538
|
var e = this;
|
|
9536
|
-
this.initIcons(), this.on(
|
|
9539
|
+
this.initIcons(), this.on(ht, function() {
|
|
9537
9540
|
e.setAttr("data-state", "pause");
|
|
9538
9541
|
}), this.on(ve, function() {
|
|
9539
9542
|
e.setAttr("data-state", "play");
|
|
@@ -9909,7 +9912,7 @@ function Sd() {
|
|
|
9909
9912
|
<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"/>
|
|
9910
9913
|
</svg>`, "image/svg+xml").firstChild;
|
|
9911
9914
|
}
|
|
9912
|
-
var
|
|
9915
|
+
var nt = {
|
|
9913
9916
|
AUTO: "auto",
|
|
9914
9917
|
SEEKING: "seeking",
|
|
9915
9918
|
PLAYBACK: "playbackrate"
|
|
@@ -9947,7 +9950,7 @@ var it = {
|
|
|
9947
9950
|
}, 10), !!u.isStart) {
|
|
9948
9951
|
u.scope > -1 && i.cancelable && i.preventDefault();
|
|
9949
9952
|
var c = e.config, f = c.disableGesture, d = c.gestureX;
|
|
9950
|
-
!f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(
|
|
9953
|
+
!f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(nt.AUTO);
|
|
9951
9954
|
}
|
|
9952
9955
|
}), _(y(e), "onRootTouchMove", function(i) {
|
|
9953
9956
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -10033,7 +10036,7 @@ var it = {
|
|
|
10033
10036
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
10034
10037
|
}), ["dragend", "click"].forEach(function(d) {
|
|
10035
10038
|
f.addCallBack(d, function() {
|
|
10036
|
-
e.changeAction(
|
|
10039
|
+
e.changeAction(nt.AUTO);
|
|
10037
10040
|
});
|
|
10038
10041
|
}));
|
|
10039
10042
|
}
|
|
@@ -10139,7 +10142,7 @@ var it = {
|
|
|
10139
10142
|
}, 500);
|
|
10140
10143
|
break;
|
|
10141
10144
|
}
|
|
10142
|
-
this.changeAction(
|
|
10145
|
+
this.changeAction(nt.AUTO);
|
|
10143
10146
|
}
|
|
10144
10147
|
}, {
|
|
10145
10148
|
key: "checkIsRootTarget",
|
|
@@ -10203,7 +10206,7 @@ var it = {
|
|
|
10203
10206
|
prop: "playbackRate",
|
|
10204
10207
|
from: o.playbackRate,
|
|
10205
10208
|
to: r.pressRate
|
|
10206
|
-
}), o.playbackRate = r.pressRate, this.changeAction(
|
|
10209
|
+
}), o.playbackRate = r.pressRate, this.changeAction(nt.PLAYBACK));
|
|
10207
10210
|
}
|
|
10208
10211
|
}, {
|
|
10209
10212
|
key: "onPressEnd",
|
|
@@ -10213,7 +10216,7 @@ var it = {
|
|
|
10213
10216
|
prop: "playbackRate",
|
|
10214
10217
|
from: o.playbackRate,
|
|
10215
10218
|
to: i.rate
|
|
10216
|
-
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
10219
|
+
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(nt.AUTO));
|
|
10217
10220
|
}
|
|
10218
10221
|
}, {
|
|
10219
10222
|
key: "updateTime",
|
|
@@ -10248,7 +10251,7 @@ var it = {
|
|
|
10248
10251
|
value: function(e) {
|
|
10249
10252
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = this.player, o = this.config, u = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
10250
10253
|
if (!(!e || typeof e != "number" || u || o.disableActive)) {
|
|
10251
|
-
e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(
|
|
10254
|
+
e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(nt.SEEKING);
|
|
10252
10255
|
var l = r.plugins.start;
|
|
10253
10256
|
l && l.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);
|
|
10254
10257
|
}
|
|
@@ -10946,7 +10949,7 @@ function Od() {
|
|
|
10946
10949
|
fill="white" />
|
|
10947
10950
|
</svg>`, "image/svg+xml").firstChild;
|
|
10948
10951
|
}
|
|
10949
|
-
var
|
|
10952
|
+
var rt = {
|
|
10950
10953
|
PIP: "picture-in-picture",
|
|
10951
10954
|
INLINE: "inline",
|
|
10952
10955
|
FULLSCREEN: "fullscreen"
|
|
@@ -10981,7 +10984,7 @@ var nt = {
|
|
|
10981
10984
|
key: "afterCreate",
|
|
10982
10985
|
value: function() {
|
|
10983
10986
|
var e = this;
|
|
10984
|
-
this.isPIPAvailable() && (N(R(n.prototype), "afterCreate", this).call(this), this.pMode =
|
|
10987
|
+
this.isPIPAvailable() && (N(R(n.prototype), "afterCreate", this).call(this), this.pMode = rt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(fi, function() {
|
|
10985
10988
|
e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10986
10989
|
}));
|
|
10987
10990
|
}
|
|
@@ -11018,7 +11021,7 @@ var nt = {
|
|
|
11018
11021
|
i.emit(Br, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
11019
11022
|
}, this.onWebkitpresentationmodechanged = function(r) {
|
|
11020
11023
|
var o = i.media.webkitPresentationMode;
|
|
11021
|
-
e.pMode ===
|
|
11024
|
+
e.pMode === rt.FULLSCREEN && o !== rt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === rt.PIP ? e.enterPIPCallback(r) : o === rt.INLINE && e.leavePIPCallback(r);
|
|
11022
11025
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), n.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
11023
11026
|
}
|
|
11024
11027
|
}, {
|
|
@@ -11095,7 +11098,7 @@ var nt = {
|
|
|
11095
11098
|
key: "isPip",
|
|
11096
11099
|
get: function() {
|
|
11097
11100
|
var e, i = this.player;
|
|
11098
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
11101
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === rt.PIP;
|
|
11099
11102
|
}
|
|
11100
11103
|
}, {
|
|
11101
11104
|
key: "isPIPAvailable",
|
|
@@ -11591,7 +11594,7 @@ var Vd = /* @__PURE__ */ (function(s) {
|
|
|
11591
11594
|
SIDE: "side",
|
|
11592
11595
|
MIDDLE: "middle",
|
|
11593
11596
|
DEFAULT: "default"
|
|
11594
|
-
},
|
|
11597
|
+
}, at = {
|
|
11595
11598
|
CLICK: "click",
|
|
11596
11599
|
HOVER: "hover"
|
|
11597
11600
|
};
|
|
@@ -11610,7 +11613,7 @@ var Ge = H.device === "mobile", ni = /* @__PURE__ */ (function(s) {
|
|
|
11610
11613
|
}), _(y(e), "switchActiveState", function(i) {
|
|
11611
11614
|
i.stopPropagation();
|
|
11612
11615
|
var r = e.config.toggleMode;
|
|
11613
|
-
r ===
|
|
11616
|
+
r === at.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
11614
11617
|
}), _(y(e), "onLeave", function(i) {
|
|
11615
11618
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
11616
11619
|
pluginName: e.pluginName
|
|
@@ -11636,7 +11639,7 @@ var Ge = H.device === "mobile", ni = /* @__PURE__ */ (function(s) {
|
|
|
11636
11639
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
11637
11640
|
}), Ge && this.on(aa, function() {
|
|
11638
11641
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
11639
|
-
}), Ge ? (i.toggleMode =
|
|
11642
|
+
}), Ge ? (i.toggleMode = at.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === at.CLICK ? "click" : "mouseenter", i.toggleMode === at.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);
|
|
11640
11643
|
}
|
|
11641
11644
|
}, {
|
|
11642
11645
|
key: "initIcons",
|
|
@@ -11737,7 +11740,7 @@ var Ge = H.device === "mobile", ni = /* @__PURE__ */ (function(s) {
|
|
|
11737
11740
|
key: "destroy",
|
|
11738
11741
|
value: function() {
|
|
11739
11742
|
var e = this.config;
|
|
11740
|
-
e.toggleMode ===
|
|
11743
|
+
e.toggleMode === at.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);
|
|
11741
11744
|
}
|
|
11742
11745
|
}, {
|
|
11743
11746
|
key: "render",
|
|
@@ -11765,7 +11768,7 @@ var Ge = H.device === "mobile", ni = /* @__PURE__ */ (function(s) {
|
|
|
11765
11768
|
hidePortrait: !0,
|
|
11766
11769
|
isShowIcon: !1,
|
|
11767
11770
|
isItemClickHide: !0,
|
|
11768
|
-
toggleMode:
|
|
11771
|
+
toggleMode: at.HOVER,
|
|
11769
11772
|
heightLimit: !0
|
|
11770
11773
|
};
|
|
11771
11774
|
}
|
|
@@ -12271,7 +12274,7 @@ function Zd(s) {
|
|
|
12271
12274
|
s.positionDots();
|
|
12272
12275
|
});
|
|
12273
12276
|
}
|
|
12274
|
-
var
|
|
12277
|
+
var st = {
|
|
12275
12278
|
dragmove: "onProgressMove",
|
|
12276
12279
|
dragstart: "onProgressDragStart",
|
|
12277
12280
|
dragend: "onProgressDragEnd",
|
|
@@ -12351,8 +12354,8 @@ var at = {
|
|
|
12351
12354
|
key: "bindEvents",
|
|
12352
12355
|
value: function() {
|
|
12353
12356
|
var e = this, i = this.player.plugins.progress;
|
|
12354
|
-
if (i && (Object.keys(
|
|
12355
|
-
e[
|
|
12357
|
+
if (i && (Object.keys(st).map(function(o) {
|
|
12358
|
+
e[st[o]] = e[st[o]].bind(e), i.addCallBack(o, e[st[o]]);
|
|
12356
12359
|
}), H.device !== "mobile")) {
|
|
12357
12360
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
12358
12361
|
var r = this.hook("previewClick", function() {
|
|
@@ -12510,8 +12513,8 @@ var at = {
|
|
|
12510
12513
|
key: "destroy",
|
|
12511
12514
|
value: function() {
|
|
12512
12515
|
var e = this, i = this.player.plugins.progress;
|
|
12513
|
-
i && Object.keys(
|
|
12514
|
-
i.removeCallBack(r, e[
|
|
12516
|
+
i && Object.keys(st).map(function(r) {
|
|
12517
|
+
i.removeCallBack(r, e[st[r]]);
|
|
12515
12518
|
}), 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);
|
|
12516
12519
|
}
|
|
12517
12520
|
}, {
|
|
@@ -12772,7 +12775,7 @@ var eg = /* @__PURE__ */ (function(s) {
|
|
|
12772
12775
|
};
|
|
12773
12776
|
}
|
|
12774
12777
|
}]), n;
|
|
12775
|
-
})(G),
|
|
12778
|
+
})(G), ot = {
|
|
12776
12779
|
REAL_TIME: "realtime",
|
|
12777
12780
|
FIRST_FRAME: "firstframe",
|
|
12778
12781
|
POSTER: "poster"
|
|
@@ -12814,7 +12817,7 @@ var zt = null, ng = /* @__PURE__ */ (function(s) {
|
|
|
12814
12817
|
}
|
|
12815
12818
|
}), _(y(t), "start", function(o, u) {
|
|
12816
12819
|
var l = t.player.video, c = tg(), f = t.checkVideoIsSupport(l);
|
|
12817
|
-
!f || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode ===
|
|
12820
|
+
!f || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode === ot.REAL_TIME || c - t.preTime >= u) && (l && l.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(y(t), t.start, u) : h.requestAnimationFrame(t.start));
|
|
12818
12821
|
}), _(y(t), "stop", function() {
|
|
12819
12822
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12820
12823
|
}), t;
|
|
@@ -12833,14 +12836,14 @@ var zt = null, ng = /* @__PURE__ */ (function(s) {
|
|
|
12833
12836
|
x: 0,
|
|
12834
12837
|
y: 0,
|
|
12835
12838
|
pi: 0
|
|
12836
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !==
|
|
12839
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== ot.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(fi, function() {
|
|
12837
12840
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12838
|
-
}), o !==
|
|
12841
|
+
}), o !== ot.POSTER && (o !== ot.FIRST_FRAME && (this.on(Xe, function() {
|
|
12839
12842
|
e.stop();
|
|
12840
12843
|
}), this.on(ve, function() {
|
|
12841
12844
|
var l = e.config.startInterval;
|
|
12842
12845
|
e._checkIfCanStart() && e.start(0, l);
|
|
12843
|
-
}), this.on(
|
|
12846
|
+
}), this.on(ht, function() {
|
|
12844
12847
|
e.stop();
|
|
12845
12848
|
})), this.on(Le, this.onLoadedData), this.on(ra, function() {
|
|
12846
12849
|
e._isLoaded = !1, e.stop();
|
|
@@ -12907,7 +12910,7 @@ var zt = null, ng = /* @__PURE__ */ (function(s) {
|
|
|
12907
12910
|
key: "_checkIfCanStart",
|
|
12908
12911
|
value: function() {
|
|
12909
12912
|
var e = this.config.mode;
|
|
12910
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
12913
|
+
return this._isLoaded && !this.player.paused && e !== ot.FIRST_FRAME && e !== ot.POSTER;
|
|
12911
12914
|
}
|
|
12912
12915
|
}, {
|
|
12913
12916
|
key: "renderOnce",
|
|
@@ -13349,7 +13352,7 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13349
13352
|
};
|
|
13350
13353
|
}
|
|
13351
13354
|
}]), n;
|
|
13352
|
-
})(G),
|
|
13355
|
+
})(G), ut = "cdn", Gt = ["cdn"], og = /* @__PURE__ */ (function(s) {
|
|
13353
13356
|
A(n, s);
|
|
13354
13357
|
var a = L(n);
|
|
13355
13358
|
function n() {
|
|
@@ -13358,7 +13361,7 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13358
13361
|
for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
|
|
13359
13362
|
i[r] = arguments[r];
|
|
13360
13363
|
return t = a.call.apply(a, [this].concat(i)), _(y(t), "getSpeed", function() {
|
|
13361
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
13364
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ut;
|
|
13362
13365
|
if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
|
|
13363
13366
|
return 0;
|
|
13364
13367
|
var u = 0;
|
|
@@ -13372,7 +13375,7 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13372
13375
|
t.speedListCache[o] = [];
|
|
13373
13376
|
});
|
|
13374
13377
|
}), _(y(t), "_onRealSpeedChange", function(o) {
|
|
13375
|
-
o.speed && t.appendList(o.speed, o.type ||
|
|
13378
|
+
o.speed && t.appendList(o.speed, o.type || ut);
|
|
13376
13379
|
}), _(y(t), "testSpeed", function() {
|
|
13377
13380
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
13378
13381
|
var o = t.config, u = o.url, l = o.loadSize, c = o.testCnt, f = o.testTimeStep, d = u + (u.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -13397,17 +13400,17 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13397
13400
|
}
|
|
13398
13401
|
}
|
|
13399
13402
|
}), _(y(t), "appendList", function(o) {
|
|
13400
|
-
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
13403
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ut;
|
|
13401
13404
|
if (!(!t.speedListCache || !t.speedListCache[u])) {
|
|
13402
13405
|
var l = t.config.saveSpeedMax;
|
|
13403
13406
|
t.speedListCache[u].length >= l && t.speedListCache[u].shift(), t.speedListCache[u].push(o);
|
|
13404
13407
|
var c = y(t), f = c.player;
|
|
13405
|
-
f && (u ===
|
|
13408
|
+
f && (u === ut ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
|
|
13406
13409
|
}
|
|
13407
13410
|
}), _(y(t), "updateSpeed", function() {
|
|
13408
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
13411
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ut, u = t.getSpeed(o), l = y(t), c = l.player;
|
|
13409
13412
|
if (c)
|
|
13410
|
-
if (o ===
|
|
13413
|
+
if (o === ut)
|
|
13411
13414
|
(!c.avgSpeed || u !== c.avgSpeed) && (c.avgSpeed = u, c.emit(Fr, {
|
|
13412
13415
|
speed: u,
|
|
13413
13416
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -13489,7 +13492,7 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13489
13492
|
var u = o.getVideoPlaybackQuality;
|
|
13490
13493
|
u && (this.on(ve, function() {
|
|
13491
13494
|
e._startTick();
|
|
13492
|
-
}), this.on(
|
|
13495
|
+
}), this.on(ht, function() {
|
|
13493
13496
|
e._stopTick();
|
|
13494
13497
|
}), this.on(Ye, function() {
|
|
13495
13498
|
e._stopTick();
|
|
@@ -13585,7 +13588,7 @@ var sg = /* @__PURE__ */ (function(s) {
|
|
|
13585
13588
|
}
|
|
13586
13589
|
}]), n;
|
|
13587
13590
|
})(G);
|
|
13588
|
-
|
|
13591
|
+
ct.use(rg);
|
|
13589
13592
|
var lg = /* @__PURE__ */ x(function s(a, n) {
|
|
13590
13593
|
var t, e, i;
|
|
13591
13594
|
E(this, s);
|
|
@@ -13618,7 +13621,7 @@ _(se, "Errors", $t);
|
|
|
13618
13621
|
_(se, "Events", Lh);
|
|
13619
13622
|
_(se, "Plugin", G);
|
|
13620
13623
|
_(se, "BasePlugin", je);
|
|
13621
|
-
_(se, "I18N",
|
|
13624
|
+
_(se, "I18N", ct);
|
|
13622
13625
|
_(se, "STATE_CLASS", k);
|
|
13623
13626
|
_(se, "InstManager", rl);
|
|
13624
13627
|
_(se, "PlayIcon", sl);
|
|
@@ -13749,7 +13752,7 @@ const cg = ["id"], fg = /* @__PURE__ */ ae({
|
|
|
13749
13752
|
2
|
|
13750
13753
|
/* CLASS */
|
|
13751
13754
|
),
|
|
13752
|
-
|
|
13755
|
+
lt(p.$slots, "default", {}, void 0, !0)
|
|
13753
13756
|
],
|
|
13754
13757
|
6
|
|
13755
13758
|
/* CLASS, STYLE */
|
|
@@ -13761,7 +13764,7 @@ const cg = ["id"], fg = /* @__PURE__ */ ae({
|
|
|
13761
13764
|
])) : he("v-if", !0);
|
|
13762
13765
|
};
|
|
13763
13766
|
}
|
|
13764
|
-
}), hg = /* @__PURE__ */ qr(fg, [["__scopeId", "data-v-b301aa7d"]]), dg =
|
|
13767
|
+
}), hg = /* @__PURE__ */ qr(fg, [["__scopeId", "data-v-b301aa7d"]]), dg = ft(hg), gg = { class: "head-logo" }, pg = ["src"], vg = { class: "text-preview-container" }, mg = { class: "text-preview-header" }, yg = { class: "file-name" }, _g = { class: "text-preview-content" }, bg = /* @__PURE__ */ ae({
|
|
13765
13768
|
__name: "IkPreviewFileDialog",
|
|
13766
13769
|
props: /* @__PURE__ */ wt({
|
|
13767
13770
|
file: {
|
|
@@ -13979,7 +13982,7 @@ const cg = ["id"], fg = /* @__PURE__ */ ae({
|
|
|
13979
13982
|
)) : he("v-if", !0);
|
|
13980
13983
|
};
|
|
13981
13984
|
}
|
|
13982
|
-
}), wg =
|
|
13985
|
+
}), wg = ft(bg);
|
|
13983
13986
|
export {
|
|
13984
13987
|
wg as IkPreviewFileDialog,
|
|
13985
13988
|
wg as default
|