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.
Files changed (86) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +378 -374
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +126 -123
  4. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBaseDialog/ik.index.es.js +4 -4
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +3 -3
  8. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  9. package/dist/IkCalendar/ik.index.es.js +1043 -1039
  10. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  11. package/dist/IkCollapseCard/ik.index.es.js +2 -2
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +122 -119
  14. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  15. package/dist/IkDetailPreviewFiles/ik.index.es.js +121 -118
  16. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  17. package/dist/IkDragList/ik.index.es.js +1 -1
  18. package/dist/IkDragList/iking-web-ui-pro.css +1 -1
  19. package/dist/IkEmpty/ik.index.es.js +6 -6
  20. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  21. package/dist/IkExpandCollapse/ik.index.es.js +11 -11
  22. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  23. package/dist/IkHorizontalStepBar/ik.index.es.js +1 -1
  24. package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
  25. package/dist/IkIconPicker/ik.index.es.js +1 -1
  26. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  27. package/dist/IkImageUploadEditor/ik.index.es.js +127 -124
  28. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
  29. package/dist/IkMonacoEditor/ik.index.es.js +1 -1
  30. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPageFull/ik.index.es.js +441 -437
  32. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  33. package/dist/IkPageTabs/ik.index.es.js +1 -1
  34. package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
  35. package/dist/IkPickerUser/ik.index.es.js +416 -412
  36. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  37. package/dist/IkPlayer/ik.index.es.js +103 -100
  38. package/dist/IkPreviewFile/ik.index.es.js +110 -107
  39. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPreviewFileDialog/ik.index.es.js +90 -87
  41. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPrint/ik.index.es.js +1 -1
  43. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  44. package/dist/IkRadioGroup/ik.index.es.js +2 -2
  45. package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
  46. package/dist/IkSearch/ik.index.es.js +397 -393
  47. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  48. package/dist/IkSearchHead/ik.index.es.js +1 -1
  49. package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
  50. package/dist/IkSelectTag/ik.index.es.js +22 -22
  51. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSideText/ik.index.es.js +42 -39
  53. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  54. package/dist/IkStatu/ik.index.es.js +4 -4
  55. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  56. package/dist/IkStatuOver/ik.index.es.js +2 -2
  57. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +16 -16
  59. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  60. package/dist/IkTinymce/ik.index.es.js +9005 -9004
  61. package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
  62. package/dist/IkTree/ik.index.es.js +13 -13
  63. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  64. package/dist/IkUploadFile/ik.index.es.js +1419 -1416
  65. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  66. package/dist/IkUploadImage/ik.index.es.js +423 -421
  67. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  68. package/dist/IkVerticalStepBar/ik.index.es.js +2 -2
  69. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  70. package/dist/Provider/ik.index.es.js +14 -10
  71. package/dist/iking-web-ui-pro.css +2 -2
  72. package/dist/{index-DzZt3b9I.mjs → index-DTIv4saG.mjs} +16667 -16662
  73. package/dist/{index.es-BGemUek4.mjs → index.es-DJTszikI.mjs} +2 -2
  74. package/dist/index.es.js +1 -1
  75. package/dist/index.umd.js +169 -169
  76. package/dist/{jspdf.es.min-BVrfmj8U.mjs → jspdf.es.min-CB6UoKKF.mjs} +1 -1
  77. package/dist/src/components/IkTinymce/index.d.ts +2 -2
  78. package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
  79. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  80. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
  81. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  82. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
  83. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  84. package/dist/src/components/Provider/index.d.ts +15 -0
  85. package/dist/src/utils/use-provider.d.ts +1 -0
  86. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as ae, computed as Q, createElementBlock as D, openBlock as E, createElementVNode as S, inject as Ct, ref as ge, Fragment as me, createCommentVNode as X, createVNode as Y, renderList as xt, normalizeStyle as Te, toDisplayString as ve, unref as I, normalizeClass as ee, createBlock as oe, renderSlot as Se, withModifiers as Je, mergeModels as Pt, useModel as $r, reactive as El, watch as At, nextTick as fi, withCtx as te, resolveComponent as pt, mergeProps as It, createTextVNode as Lt, h as xl, createSlots as Il, getCurrentScope as Pl, onScopeDispose as Al, markRaw as Ta, effectScope as Ll, shallowRef as Dl, onMounted as vu, Teleport as pu, Transition as mu, resolveDynamicComponent as Rl, withDirectives as Ol, vShow as Ml, useCssVars as Fl, useAttrs as Nl, onUpdated as Bl } from "vue";
2
- import { useLocale as Hl, useNamespace as yu, useZIndex as Ul, ElIcon as je, EVENT_CODE as ut, ElTag as jl } from "element-plus";
1
+ import { defineComponent as ae, computed as J, createElementBlock as D, openBlock as E, createElementVNode as S, inject as ut, ref as ge, Fragment as me, createCommentVNode as X, createVNode as Y, renderList as xt, normalizeStyle as Te, toDisplayString as ve, unref as I, normalizeClass as ee, createBlock as oe, renderSlot as Se, withModifiers as Je, mergeModels as Pt, useModel as $r, reactive as El, watch as At, nextTick as fi, withCtx as te, resolveComponent as mt, mergeProps as It, createTextVNode as Lt, h as xl, createSlots as Il, getCurrentScope as Pl, onScopeDispose as Al, markRaw as Ta, effectScope as Ll, shallowRef as Dl, onMounted as vu, Teleport as pu, Transition as mu, resolveDynamicComponent as Rl, withDirectives as Ol, vShow as Ml, useCssVars as Fl, useAttrs as Nl, onUpdated as Bl } from "vue";
2
+ import { useLocale as Hl, useNamespace as yu, useZIndex as Ul, ElIcon as je, EVENT_CODE as lt, ElTag as jl } from "element-plus";
3
3
  import { paramType as Ur, ikFile as zl, buildUUID as _u, ikColor as Vl, _ as Ti } from "iking-utils-pro";
4
4
  const Ne = (a, s) => (a.install = (n) => {
5
5
  for (const t of [a, ...Object.values({})])
@@ -258,7 +258,7 @@ const Ne = (a, s) => (a.install = (n) => {
258
258
  }
259
259
  },
260
260
  setup(a) {
261
- const s = a, n = Q(() => s.file ? Qt(s.file, s.fields) : s.type);
261
+ const s = a, n = J(() => s.file ? Qt(s.file, s.fields) : s.type);
262
262
  return (t, e) => n.value === "image" ? (E(), D("svg", Wl, [...e[0] || (e[0] = [
263
263
  S(
264
264
  "path",
@@ -817,14 +817,17 @@ const hi = (a, s) => {
817
817
  "flv",
818
818
  "tls"
819
819
  ], Cu = (a) => {
820
- const s = Ct("loadUrl"), n = Q(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = Ct("uploadUrl"), e = Q(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Ct("token"), r = Q(() => a.token || (i == null ? void 0 : i.value)), o = Ct("onlyofficeConfig"), u = Q(() => a.onlyofficeConfig || (o == null ? void 0 : o.value)), l = Ct("userInfo"), c = Q(() => a.userInfo || (l == null ? void 0 : l.value)), f = [...xa, ...xa.map((d) => d.toLocaleUpperCase())];
820
+ const s = ut("loadUrl"), n = J(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = ut("uploadUrl"), e = J(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ut("token"), r = J(() => a.token || (i == null ? void 0 : i.value)), o = ut("header"), u = J(() => a.header || (o == null ? void 0 : o.value) || {
821
+ Authorization: r.value
822
+ }), l = ut("onlyofficeConfig"), c = J(() => a.onlyofficeConfig || (l == null ? void 0 : l.value)), f = ut("userInfo"), d = J(() => a.userInfo || (f == null ? void 0 : f.value)), g = [...xa, ...xa.map((v) => v.toLocaleUpperCase())];
821
823
  return {
822
824
  cLoadUrl: n,
823
825
  cUploadUrl: e,
824
826
  cToken: r,
825
- cOnlyofficeConfig: u,
826
- cUserInfo: c,
827
- cOnlyofficePreviewType: f
827
+ cHeader: u,
828
+ cOnlyofficeConfig: c,
829
+ cUserInfo: d,
830
+ cOnlyofficePreviewType: g
828
831
  };
829
832
  }, kc = ["onClick"], wc = {
830
833
  class: "flex align-center",
@@ -938,7 +941,7 @@ const hi = (a, s) => {
938
941
  },
939
942
  emits: ["handPreview", "download", "close"],
940
943
  setup(a, { emit: s }) {
941
- const n = a, t = Q(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = Cu(n), o = s, u = Q(() => ({
944
+ const n = a, t = J(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = Cu(n), o = s, u = J(() => ({
942
945
  name: "name",
943
946
  url: "url",
944
947
  suffix: "suffix",
@@ -964,7 +967,7 @@ const hi = (a, s) => {
964
967
  );
965
968
  }, g = (p) => {
966
969
  o("close", p);
967
- }, v = Q(() => Ur.isNumber(n.width) ? `${n.width}px` : n.width), m = Q(() => n.list.map((p) => {
970
+ }, v = J(() => Ur.isNumber(n.width) ? `${n.width}px` : n.width), m = J(() => n.list.map((p) => {
968
971
  var b;
969
972
  const k = p[u.value.name] || p.attachmentName;
970
973
  return {
@@ -1256,7 +1259,7 @@ const hi = (a, s) => {
1256
1259
  }),
1257
1260
  emits: /* @__PURE__ */ Pt(["close"], ["update:show"]),
1258
1261
  setup(a, { emit: s }) {
1259
- const n = a, t = s, e = $r(a, "show"), i = Q(() => ({
1262
+ const n = a, t = s, e = $r(a, "show"), i = J(() => ({
1260
1263
  name: "name",
1261
1264
  url: "url",
1262
1265
  suffix: "suffix",
@@ -1478,10 +1481,10 @@ const qc = {
1478
1481
  },
1479
1482
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
1480
1483
  setup(a, { emit: s }) {
1481
- const n = a, t = Q(() => n), e = Q(() => {
1484
+ const n = a, t = J(() => n), e = J(() => {
1482
1485
  const { name: f } = t.value;
1483
1486
  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";
1484
- }), i = Q(() => {
1487
+ }), i = J(() => {
1485
1488
  const f = [];
1486
1489
  if (t.value.flip)
1487
1490
  switch (t.value.flip) {
@@ -1517,7 +1520,7 @@ const qc = {
1517
1520
  r("dblclick", f);
1518
1521
  };
1519
1522
  return (f, d) => {
1520
- const g = pt("el-tooltip"), v = pt("el-button");
1523
+ const g = mt("el-tooltip"), v = mt("el-button");
1521
1524
  return E(), D(
1522
1525
  "i",
1523
1526
  {
@@ -1641,7 +1644,7 @@ const qc = {
1641
1644
  );
1642
1645
  };
1643
1646
  }
1644
- }), Zc = /* @__PURE__ */ hi(Xc, [["__scopeId", "data-v-d5c74053"]]), Qe = Ne(Zc), Jc = /* @__PURE__ */ ae({
1647
+ }), Zc = /* @__PURE__ */ hi(Xc, [["__scopeId", "data-v-9ebb0a94"]]), Qe = Ne(Zc), Jc = /* @__PURE__ */ ae({
1645
1648
  __name: "CloseIcon",
1646
1649
  props: {
1647
1650
  showBg: {
@@ -1671,7 +1674,7 @@ const qc = {
1671
1674
  /* CLASS */
1672
1675
  ));
1673
1676
  }
1674
- }), Qc = /* @__PURE__ */ hi(Jc, [["__scopeId", "data-v-22f2afe8"]]), ef = { class: "base-header" }, tf = /* @__PURE__ */ ae({
1677
+ }), Qc = /* @__PURE__ */ hi(Jc, [["__scopeId", "data-v-da9210e2"]]), ef = { class: "base-header" }, tf = /* @__PURE__ */ ae({
1675
1678
  __name: "IkBaseDialog",
1676
1679
  props: /* @__PURE__ */ Pt({
1677
1680
  title: { default: "" },
@@ -1702,7 +1705,7 @@ const qc = {
1702
1705
  }
1703
1706
  });
1704
1707
  return (i, r) => {
1705
- const o = pt("el-dialog");
1708
+ const o = mt("el-dialog");
1706
1709
  return E(), oe(o, It({
1707
1710
  modelValue: n.value,
1708
1711
  "onUpdate:modelValue": r[0] || (r[0] = (u) => n.value = u),
@@ -1733,8 +1736,8 @@ const qc = {
1733
1736
  )
1734
1737
  ])
1735
1738
  ]),
1736
- X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"\r
1737
- :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"\r
1739
+ X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
1740
+ :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
1738
1741
  class="absolute! top-[18px] right-[50px] icon-dialog-full" :title="isFull ? '退出全屏' : '全屏'" /> `)
1739
1742
  ]),
1740
1743
  default: te(() => [
@@ -3074,8 +3077,8 @@ var kr, Po;
3074
3077
  function kh() {
3075
3078
  if (Po) return kr;
3076
3079
  Po = 1;
3077
- var a = Ff(), s = Nf(), n = xu(), t = $f(), e = Zf(), i = Jf(), r = Qf(), o = th(), u = ih(), l = nh(), c = rh(), f = aa(), d = lh(), g = vh(), v = mh(), m = Jr(), p = Iu(), k = _h(), b = Ot(), C = Ch(), P = ia(), T = na(), x = 1, R = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ne = "[object Date]", se = "[object Error]", Ce = "[object Function]", Bt = "[object GeneratorFunction]", Ht = "[object Map]", yt = "[object Number]", _t = "[object Object]", Ut = "[object RegExp]", De = "[object Set]", H = "[object String]", W = "[object Symbol]", ie = "[object WeakMap]", pe = "[object ArrayBuffer]", ke = "[object DataView]", we = "[object Float32Array]", xe = "[object Float64Array]", Ye = "[object Int8Array]", jt = "[object Int16Array]", zt = "[object Int32Array]", bt = "[object Uint8Array]", bl = "[object Uint8ClampedArray]", Cl = "[object Uint16Array]", kl = "[object Uint32Array]", Z = {};
3078
- Z[j] = Z[B] = Z[pe] = Z[ke] = Z[O] = Z[ne] = Z[we] = Z[xe] = Z[Ye] = Z[jt] = Z[zt] = Z[Ht] = Z[yt] = Z[_t] = Z[Ut] = Z[De] = Z[H] = Z[W] = Z[bt] = Z[bl] = Z[Cl] = Z[kl] = !0, Z[se] = Z[Ce] = Z[ie] = !1;
3080
+ var a = Ff(), s = Nf(), n = xu(), t = $f(), e = Zf(), i = Jf(), r = Qf(), o = th(), u = ih(), l = nh(), c = rh(), f = aa(), d = lh(), g = vh(), v = mh(), m = Jr(), p = Iu(), k = _h(), b = Ot(), C = Ch(), P = ia(), T = na(), x = 1, R = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ne = "[object Date]", se = "[object Error]", Ce = "[object Function]", Bt = "[object GeneratorFunction]", Ht = "[object Map]", _t = "[object Number]", bt = "[object Object]", Ut = "[object RegExp]", De = "[object Set]", H = "[object String]", W = "[object Symbol]", ie = "[object WeakMap]", pe = "[object ArrayBuffer]", ke = "[object DataView]", we = "[object Float32Array]", xe = "[object Float64Array]", Ye = "[object Int8Array]", jt = "[object Int16Array]", zt = "[object Int32Array]", Ct = "[object Uint8Array]", bl = "[object Uint8ClampedArray]", Cl = "[object Uint16Array]", kl = "[object Uint32Array]", Z = {};
3081
+ Z[j] = Z[B] = Z[pe] = Z[ke] = Z[O] = Z[ne] = Z[we] = Z[xe] = Z[Ye] = Z[jt] = Z[zt] = Z[Ht] = Z[_t] = Z[bt] = Z[Ut] = Z[De] = Z[H] = Z[W] = Z[Ct] = Z[bl] = Z[Cl] = Z[kl] = !0, Z[se] = Z[Ce] = Z[ie] = !1;
3079
3082
  function Vt($, at, st, wl, qt, He) {
3080
3083
  var he, Gt = at & x, Wt = at & R, Tl = at & q;
3081
3084
  if (st && (he = qt ? st($, wl, qt, He) : st($)), he !== void 0)
@@ -3090,7 +3093,7 @@ function kh() {
3090
3093
  var ot = f($), Ca = ot == Ce || ot == Bt;
3091
3094
  if (p($))
3092
3095
  return i($, Gt);
3093
- if (ot == _t || ot == j || Ca && !qt) {
3096
+ if (ot == bt || ot == j || Ca && !qt) {
3094
3097
  if (he = Wt || Ca ? {} : v($), !Gt)
3095
3098
  return Wt ? u($, e(he, $)) : o($, t(he, $));
3096
3099
  } else {
@@ -3528,27 +3531,27 @@ const jh = {
3528
3531
  offsetX: 0,
3529
3532
  offsetY: 0,
3530
3533
  enableTransition: !1
3531
- }), k = ge(i.zIndex ?? l()), b = Q(() => {
3534
+ }), k = ge(i.zIndex ?? l()), b = J(() => {
3532
3535
  const { urlList: H } = i;
3533
3536
  return H.length <= 1;
3534
- }), C = Q(() => v.value === 0), P = Q(() => v.value === i.urlList.length - 1), T = Q(() => i.urlList[v.value]), x = Q(() => [
3537
+ }), C = J(() => v.value === 0), P = J(() => v.value === i.urlList.length - 1), T = J(() => i.urlList[v.value]), x = J(() => [
3535
3538
  u.e("btn"),
3536
3539
  u.e("prev"),
3537
3540
  u.is("disabled", !i.infinite && C.value)
3538
- ]), R = Q(() => [
3541
+ ]), R = J(() => [
3539
3542
  u.e("btn"),
3540
3543
  u.e("next"),
3541
3544
  u.is("disabled", !i.infinite && P.value)
3542
- ]), q = Q(() => {
3545
+ ]), q = J(() => {
3543
3546
  const { scale: H, deg: W, offsetX: ie, offsetY: pe, enableTransition: ke } = p.value;
3544
3547
  let we = ie / H, xe = pe / H;
3545
3548
  const Ye = W * Math.PI / 180, jt = Math.cos(Ye), zt = Math.sin(Ye);
3546
3549
  we = we * jt + xe * zt, xe = xe * jt - ie / H * zt;
3547
- const bt = {
3550
+ const Ct = {
3548
3551
  transform: `scale(${H}) rotate(${W}deg) translate(${we}px, ${xe}px)`,
3549
3552
  transition: ke ? "transform .3s" : ""
3550
3553
  };
3551
- return m.value.name === e.CONTAIN.name && (bt.maxWidth = bt.maxHeight = "100%"), bt;
3554
+ return m.value.name === e.CONTAIN.name && (Ct.maxWidth = Ct.maxHeight = "100%"), Ct;
3552
3555
  });
3553
3556
  function j() {
3554
3557
  O(), r("close");
@@ -3557,27 +3560,27 @@ const jh = {
3557
3560
  const H = Ti.throttle((ie) => {
3558
3561
  switch (ie.code) {
3559
3562
  // ESC
3560
- case ut.esc:
3563
+ case lt.esc:
3561
3564
  i.closeOnPressEscape && j();
3562
3565
  break;
3563
3566
  // SPACE
3564
- case ut.space:
3567
+ case lt.space:
3565
3568
  Ht();
3566
3569
  break;
3567
3570
  // LEFT_ARROW
3568
- case ut.left:
3569
- _t();
3571
+ case lt.left:
3572
+ bt();
3570
3573
  break;
3571
3574
  // UP_ARROW
3572
- case ut.up:
3575
+ case lt.up:
3573
3576
  De("zoomIn");
3574
3577
  break;
3575
3578
  // RIGHT_ARROW
3576
- case ut.right:
3579
+ case lt.right:
3577
3580
  Ut();
3578
3581
  break;
3579
3582
  // DOWN_ARROW
3580
- case ut.down:
3583
+ case lt.down:
3581
3584
  De("zoomOut");
3582
3585
  break;
3583
3586
  }
@@ -3629,15 +3632,15 @@ const jh = {
3629
3632
  const H = t(e), W = Object.values(e), ie = m.value.name, ke = ((W == null ? void 0 : W.findIndex((we) => we.name === ie)) + 1) % H.length;
3630
3633
  m.value = e[H[ke]], Bt();
3631
3634
  }
3632
- function yt(H) {
3635
+ function _t(H) {
3633
3636
  const W = i.urlList.length;
3634
3637
  v.value = (H + W) % W;
3635
3638
  }
3636
- function _t() {
3637
- C.value && !i.infinite || yt(v.value - 1);
3639
+ function bt() {
3640
+ C.value && !i.infinite || _t(v.value - 1);
3638
3641
  }
3639
3642
  function Ut() {
3640
- P.value && !i.infinite || yt(v.value + 1);
3643
+ P.value && !i.infinite || _t(v.value + 1);
3641
3644
  }
3642
3645
  function De(H, W = {}) {
3643
3646
  if (g.value) return;
@@ -3681,7 +3684,7 @@ const jh = {
3681
3684
  /**
3682
3685
  * @description manually switch image
3683
3686
  */
3684
- setActiveItem: yt
3687
+ setActiveItem: _t
3685
3688
  }), (H, W) => (E(), oe(pu, { to: "body" }, [
3686
3689
  Y(mu, {
3687
3690
  name: "viewer-fade",
@@ -3736,7 +3739,7 @@ const jh = {
3736
3739
  "span",
3737
3740
  {
3738
3741
  class: ee(x.value),
3739
- onClick: _t
3742
+ onClick: bt
3740
3743
  },
3741
3744
  [
3742
3745
  Y(I(je), null, {
@@ -4899,7 +4902,7 @@ var Uo = {
4899
4902
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
4900
4903
  }
4901
4904
  }
4902
- ), be = "play", la = "playing", it = "ended", mt = "pause", Ft = "error", _i = "seeking", Me = "seeked", _e = "timeupdate", Nt = "waiting", Oe = "canplay", ld = "canplaythrough", Be = "durationchange", qu = "volumechange", Fe = "loadeddata", cd = "loadedmetadata", Gu = "ratechange", Wu = "progress", ca = "loadstart", nt = "emptied", fd = "stalled", hd = "suspend", dd = "abort", gd = "bufferedChange", fa = "focus", Ku = "blur", ha = "ready", $u = "urlNull", et = "autoplay_started", da = "autoplay_was_prevented", bi = "complete", ii = "replay", ga = "destroy", Ci = "urlchange", qr = "download_speed_change", Yu = "leaveplayer", Xu = "enterplayer", Zu = "loading", Re = "fullscreen_change", ni = "cssFullscreen_change", ri = "mini_state_change", va = "definition_change", vd = "before_definition_change", Gr = "after_definition_change", pd = "SEI_PARSED", md = "retry", We = "video_resize", Wr = "pip_change", Ju = "rotate", Qu = "screenShot", ai = "playnext", el = "shortcut", tl = "xglog", si = "user_action", ki = "reset", il = "source_error", nl = "source_success", yd = "switch_subtitle", rl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], al = {
4905
+ ), be = "play", la = "playing", it = "ended", yt = "pause", Ft = "error", _i = "seeking", Me = "seeked", _e = "timeupdate", Nt = "waiting", Oe = "canplay", ld = "canplaythrough", Be = "durationchange", qu = "volumechange", Fe = "loadeddata", cd = "loadedmetadata", Gu = "ratechange", Wu = "progress", ca = "loadstart", nt = "emptied", fd = "stalled", hd = "suspend", dd = "abort", gd = "bufferedChange", fa = "focus", Ku = "blur", ha = "ready", $u = "urlNull", et = "autoplay_started", da = "autoplay_was_prevented", bi = "complete", ii = "replay", ga = "destroy", Ci = "urlchange", qr = "download_speed_change", Yu = "leaveplayer", Xu = "enterplayer", Zu = "loading", Re = "fullscreen_change", ni = "cssFullscreen_change", ri = "mini_state_change", va = "definition_change", vd = "before_definition_change", Gr = "after_definition_change", pd = "SEI_PARSED", md = "retry", We = "video_resize", Wr = "pip_change", Ju = "rotate", Qu = "screenShot", ai = "playnext", el = "shortcut", tl = "xglog", si = "user_action", ki = "reset", il = "source_error", nl = "source_success", yd = "switch_subtitle", rl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], al = {
4903
4906
  STATS_INFO: "stats_info",
4904
4907
  STATS_DOWNLOAD: "stats_download",
4905
4908
  STATS_RESET: "stats_reset"
@@ -4932,7 +4935,7 @@ const _d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4932
4935
  LOADING: Zu,
4933
4936
  LOAD_START: ca,
4934
4937
  MINI_STATE_CHANGE: ri,
4935
- PAUSE: mt,
4938
+ PAUSE: yt,
4936
4939
  PIP_CHANGE: Wr,
4937
4940
  PLAY: be,
4938
4941
  PLAYER_BLUR: Ku,
@@ -5866,7 +5869,7 @@ const Xo = /* @__PURE__ */ Yr(Sd);
5866
5869
  var Ed = {
5867
5870
  CONTROLS: "controls",
5868
5871
  ROOT: "root"
5869
- }, J = {
5872
+ }, Q = {
5870
5873
  ROOT: "root",
5871
5874
  ROOT_LEFT: "rootLeft",
5872
5875
  ROOT_RIGHT: "rootRight",
@@ -6214,7 +6217,7 @@ var K = /* @__PURE__ */ (function(a) {
6214
6217
  }, {
6215
6218
  key: "POSITIONS",
6216
6219
  get: function() {
6217
- return J;
6220
+ return Q;
6218
6221
  }
6219
6222
  }]), n;
6220
6223
  })(Ke), Ld = /* @__PURE__ */ (function() {
@@ -6708,16 +6711,16 @@ var Od = function(s, n) {
6708
6711
  if (!i.root) {
6709
6712
  var u = i.position ? i.position : i.config && i.config.position ? i.config.position : o.position;
6710
6713
  switch (u) {
6711
- case J.CONTROLS_LEFT:
6714
+ case Q.CONTROLS_LEFT:
6712
6715
  i.root = this.left;
6713
6716
  break;
6714
- case J.CONTROLS_RIGHT:
6717
+ case Q.CONTROLS_RIGHT:
6715
6718
  i.root = this.right;
6716
6719
  break;
6717
- case J.CONTROLS_CENTER:
6720
+ case Q.CONTROLS_CENTER:
6718
6721
  i.root = this.center;
6719
6722
  break;
6720
- case J.CONTROLS:
6723
+ case Q.CONTROLS:
6721
6724
  i.root = this.root;
6722
6725
  break;
6723
6726
  default:
@@ -6900,7 +6903,7 @@ function Bd(a) {
6900
6903
  return Rt(n.lang, ye.lang), (s = n.langKeys).push.apply(s, Ee(ye.langKeys)), Rt(n.textKeys, ye.textKeys), n;
6901
6904
  }
6902
6905
  pa(Fd);
6903
- var vt = {
6906
+ var pt = {
6904
6907
  get textKeys() {
6905
6908
  return ye.textKeys;
6906
6909
  },
@@ -7097,7 +7100,7 @@ var Ud = ["play", "pause", "replay", "retry"], tu = 0, iu = 0, ze = null, wi = /
7097
7100
  }, e._offsetInfo = {
7098
7101
  currentTime: -1,
7099
7102
  duration: 0
7100
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = vt.init(e._pluginInfoId), z.os.isAndroid && z.osVersion > 0 && z.osVersion < 6 && (e.config.autoplay = !1), e.database = new kd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
7103
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = pt.init(e._pluginInfoId), z.os.isAndroid && z.osVersion > 0 && z.osVersion < 6 && (e.config.autoplay = !1), e.database = new kd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
7101
7104
  isActiveLocked: !1
7102
7105
  }, e.instManager = ze;
7103
7106
  var u = e._initDOM();
@@ -7210,7 +7213,7 @@ var Ud = ["play", "pause", "replay", "retry"], tu = 0, iu = 0, ze = null, wi = /
7210
7213
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
7211
7214
  this._loadingPlugins = [];
7212
7215
  var r = this.config.ignores || [], o = this.config.plugins || [], u = this.config.i18n || [];
7213
- i && vt.extend(u, this.__i18n);
7216
+ i && pt.extend(u, this.__i18n);
7214
7217
  var l = r.join("||").toLowerCase().split("||"), c = this.plugins;
7215
7218
  o.forEach(function(f) {
7216
7219
  try {
@@ -7247,13 +7250,13 @@ var Ud = ["play", "pause", "replay", "retry"], tu = 0, iu = 0, ze = null, wi = /
7247
7250
  value: function(e) {
7248
7251
  var i = null;
7249
7252
  switch (e) {
7250
- case J.ROOT_RIGHT:
7253
+ case Q.ROOT_RIGHT:
7251
7254
  this.rightBar || (this.rightBar = h.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
7252
7255
  break;
7253
- case J.ROOT_LEFT:
7256
+ case Q.ROOT_LEFT:
7254
7257
  this.leftBar || (this.leftBar = h.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
7255
7258
  break;
7256
- case J.ROOT_TOP:
7259
+ case Q.ROOT_TOP:
7257
7260
  this.topBar || (this.topBar = h.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && h.addClass(this.topBar, w.TOP_BAR_AUTOHIDE)), i = this.topBar;
7258
7261
  break;
7259
7262
  default:
@@ -8016,11 +8019,11 @@ var Ud = ["play", "pause", "replay", "retry"], tu = 0, iu = 0, ze = null, wi = /
8016
8019
  return this.config.lang;
8017
8020
  },
8018
8021
  set: function(e) {
8019
- var i = vt.langKeys.filter(function(r) {
8022
+ var i = pt.langKeys.filter(function(r) {
8020
8023
  return r === e;
8021
8024
  });
8022
8025
  if (i.length === 0 && e !== "zh") {
8023
- console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(vt.langKeys.join(), "] "));
8026
+ console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(pt.langKeys.join(), "] "));
8024
8027
  return;
8025
8028
  }
8026
8029
  this.config.lang = e, le.setLang(e, this);
@@ -8363,7 +8366,7 @@ var Kr = /* @__PURE__ */ (function(a) {
8363
8366
  key: "defaultConfig",
8364
8367
  get: function() {
8365
8368
  return {
8366
- position: J.CONTROLS_RIGHT,
8369
+ position: Q.CONTROLS_RIGHT,
8367
8370
  index: 1,
8368
8371
  disable: !1,
8369
8372
  target: null
@@ -8433,7 +8436,7 @@ var qd = /* @__PURE__ */ (function(a) {
8433
8436
  key: "defaultConfig",
8434
8437
  get: function() {
8435
8438
  return {
8436
- position: J.ROOT_TOP,
8439
+ position: Q.ROOT_TOP,
8437
8440
  index: 0
8438
8441
  };
8439
8442
  }
@@ -8574,7 +8577,7 @@ var hl = /* @__PURE__ */ (function(a) {
8574
8577
  key: "defaultConfig",
8575
8578
  get: function() {
8576
8579
  return {
8577
- position: J.CONTROLS_RIGHT,
8580
+ position: Q.CONTROLS_RIGHT,
8578
8581
  index: 0,
8579
8582
  useCssFullscreen: !1,
8580
8583
  rotateFullscreen: !1,
@@ -8629,7 +8632,7 @@ var dl = /* @__PURE__ */ (function(a) {
8629
8632
  key: "listenEvents",
8630
8633
  value: function() {
8631
8634
  var e = this, i = this.player;
8632
- this.on([be, mt, Ft, nt], function() {
8635
+ this.on([be, yt, Ft, nt], function() {
8633
8636
  e.animate(i.paused);
8634
8637
  });
8635
8638
  }
@@ -8685,7 +8688,7 @@ var dl = /* @__PURE__ */ (function(a) {
8685
8688
  key: "defaultConfig",
8686
8689
  get: function() {
8687
8690
  return {
8688
- position: J.CONTROLS_LEFT,
8691
+ position: Q.CONTROLS_LEFT,
8689
8692
  index: 0,
8690
8693
  disable: !1
8691
8694
  };
@@ -9292,7 +9295,7 @@ var dl = /* @__PURE__ */ (function(a) {
9292
9295
  key: "defaultConfig",
9293
9296
  get: function() {
9294
9297
  return {
9295
- position: J.CONTROLS_CENTER,
9298
+ position: Q.CONTROLS_CENTER,
9296
9299
  index: 0,
9297
9300
  disable: !1,
9298
9301
  isDraggingSeek: !0,
@@ -9470,7 +9473,7 @@ var dl = /* @__PURE__ */ (function(a) {
9470
9473
  key: "defaultConfig",
9471
9474
  get: function() {
9472
9475
  return {
9473
- position: J.CONTROLS_LEFT,
9476
+ position: Q.CONTROLS_LEFT,
9474
9477
  index: 2,
9475
9478
  disable: !1
9476
9479
  };
@@ -9683,7 +9686,7 @@ var pl = /* @__PURE__ */ (function(a) {
9683
9686
  key: "defaultConfig",
9684
9687
  get: function() {
9685
9688
  return {
9686
- position: J.CONTROLS_RIGHT,
9689
+ position: Q.CONTROLS_RIGHT,
9687
9690
  index: 1,
9688
9691
  disable: !1,
9689
9692
  showValueLabel: !1,
@@ -10107,7 +10110,7 @@ var ng = /* @__PURE__ */ (function(a) {
10107
10110
  e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
10108
10111
  }), this.on(be, function() {
10109
10112
  e.toggleTo("play");
10110
- }), this.on(mt, function() {
10113
+ }), this.on(yt, function() {
10111
10114
  e.toggleTo("pause");
10112
10115
  }), this.on(ki, function() {
10113
10116
  e.onPlayerReset();
@@ -10345,7 +10348,7 @@ var ng = /* @__PURE__ */ (function(a) {
10345
10348
  key: "defaultConfig",
10346
10349
  get: function() {
10347
10350
  return {
10348
- position: J.CONTROLS_RIGHT,
10351
+ position: Q.CONTROLS_RIGHT,
10349
10352
  index: 10
10350
10353
  };
10351
10354
  }
@@ -10650,7 +10653,7 @@ var Or = {
10650
10653
  key: "afterCreate",
10651
10654
  value: function() {
10652
10655
  var e = this;
10653
- this.initIcons(), this.on(mt, function() {
10656
+ this.initIcons(), this.on(yt, function() {
10654
10657
  e.setAttr("data-state", "pause");
10655
10658
  }), this.on(be, function() {
10656
10659
  e.setAttr("data-state", "play");
@@ -11026,7 +11029,7 @@ function dg() {
11026
11029
  <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"/>
11027
11030
  </svg>`, "image/svg+xml").firstChild;
11028
11031
  }
11029
- var lt = {
11032
+ var ct = {
11030
11033
  AUTO: "auto",
11031
11034
  SEEKING: "seeking",
11032
11035
  PLAYBACK: "playbackrate"
@@ -11064,7 +11067,7 @@ var lt = {
11064
11067
  }, 10), !!u.isStart) {
11065
11068
  u.scope > -1 && i.cancelable && i.preventDefault();
11066
11069
  var c = e.config, f = c.disableGesture, d = c.gestureX;
11067
- !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(lt.AUTO);
11070
+ !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(ct.AUTO);
11068
11071
  }
11069
11072
  }), _(y(e), "onRootTouchMove", function(i) {
11070
11073
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -11150,7 +11153,7 @@ var lt = {
11150
11153
  e.activeSeekNote(d.currentTime, d.forward);
11151
11154
  }), ["dragend", "click"].forEach(function(d) {
11152
11155
  f.addCallBack(d, function() {
11153
- e.changeAction(lt.AUTO);
11156
+ e.changeAction(ct.AUTO);
11154
11157
  });
11155
11158
  }));
11156
11159
  }
@@ -11256,7 +11259,7 @@ var lt = {
11256
11259
  }, 500);
11257
11260
  break;
11258
11261
  }
11259
- this.changeAction(lt.AUTO);
11262
+ this.changeAction(ct.AUTO);
11260
11263
  }
11261
11264
  }, {
11262
11265
  key: "checkIsRootTarget",
@@ -11320,7 +11323,7 @@ var lt = {
11320
11323
  prop: "playbackRate",
11321
11324
  from: o.playbackRate,
11322
11325
  to: r.pressRate
11323
- }), o.playbackRate = r.pressRate, this.changeAction(lt.PLAYBACK));
11326
+ }), o.playbackRate = r.pressRate, this.changeAction(ct.PLAYBACK));
11324
11327
  }
11325
11328
  }, {
11326
11329
  key: "onPressEnd",
@@ -11330,7 +11333,7 @@ var lt = {
11330
11333
  prop: "playbackRate",
11331
11334
  from: o.playbackRate,
11332
11335
  to: i.rate
11333
- }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(lt.AUTO));
11336
+ }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(ct.AUTO));
11334
11337
  }
11335
11338
  }, {
11336
11339
  key: "updateTime",
@@ -11365,7 +11368,7 @@ var lt = {
11365
11368
  value: function(e) {
11366
11369
  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);
11367
11370
  if (!(!e || typeof e != "number" || u || o.disableActive)) {
11368
- e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(lt.SEEKING);
11371
+ e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(ct.SEEKING);
11369
11372
  var l = r.plugins.start;
11370
11373
  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);
11371
11374
  }
@@ -11794,7 +11797,7 @@ var mg = /* @__PURE__ */ (function(a) {
11794
11797
  key: "defaultConfig",
11795
11798
  get: function() {
11796
11799
  return {
11797
- position: J.ROOT
11800
+ position: Q.ROOT
11798
11801
  };
11799
11802
  }
11800
11803
  }]), n;
@@ -12036,7 +12039,7 @@ var bg = /* @__PURE__ */ (function(a) {
12036
12039
  key: "defaultConfig",
12037
12040
  get: function() {
12038
12041
  return {
12039
- position: J.CONTROLS_RIGHT,
12042
+ position: Q.CONTROLS_RIGHT,
12040
12043
  index: 6,
12041
12044
  innerRotate: !0,
12042
12045
  clockwise: !1,
@@ -12063,7 +12066,7 @@ function kg() {
12063
12066
  fill="white" />
12064
12067
  </svg>`, "image/svg+xml").firstChild;
12065
12068
  }
12066
- var ct = {
12069
+ var ft = {
12067
12070
  PIP: "picture-in-picture",
12068
12071
  INLINE: "inline",
12069
12072
  FULLSCREEN: "fullscreen"
@@ -12098,7 +12101,7 @@ var ct = {
12098
12101
  key: "afterCreate",
12099
12102
  value: function() {
12100
12103
  var e = this;
12101
- this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ct.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(bi, function() {
12104
+ this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ft.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(bi, function() {
12102
12105
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
12103
12106
  }));
12104
12107
  }
@@ -12135,7 +12138,7 @@ var ct = {
12135
12138
  i.emit(Wr, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
12136
12139
  }, this.onWebkitpresentationmodechanged = function(r) {
12137
12140
  var o = i.media.webkitPresentationMode;
12138
- e.pMode === ct.FULLSCREEN && o !== ct.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === ct.PIP ? e.enterPIPCallback(r) : o === ct.INLINE && e.leavePIPCallback(r);
12141
+ e.pMode === ft.FULLSCREEN && o !== ft.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === ft.PIP ? e.enterPIPCallback(r) : o === ft.INLINE && e.leavePIPCallback(r);
12139
12142
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), n.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
12140
12143
  }
12141
12144
  }, {
@@ -12212,7 +12215,7 @@ var ct = {
12212
12215
  key: "isPip",
12213
12216
  get: function() {
12214
12217
  var e, i = this.player;
12215
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ct.PIP;
12218
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ft.PIP;
12216
12219
  }
12217
12220
  }, {
12218
12221
  key: "isPIPAvailable",
@@ -12251,7 +12254,7 @@ var ct = {
12251
12254
  key: "defaultConfig",
12252
12255
  get: function() {
12253
12256
  return {
12254
- position: J.CONTROLS_RIGHT,
12257
+ position: Q.CONTROLS_RIGHT,
12255
12258
  index: 6,
12256
12259
  showIcon: !1,
12257
12260
  preferDocument: !1,
@@ -12335,7 +12338,7 @@ var Sg = /* @__PURE__ */ (function(a) {
12335
12338
  key: "defaultConfig",
12336
12339
  get: function() {
12337
12340
  return {
12338
- position: J.CONTROLS_LEFT,
12341
+ position: Q.CONTROLS_LEFT,
12339
12342
  index: 1,
12340
12343
  url: null,
12341
12344
  urlList: []
@@ -12500,7 +12503,7 @@ var Lg = /* @__PURE__ */ (function(a) {
12500
12503
  key: "defaultConfig",
12501
12504
  get: function() {
12502
12505
  return {
12503
- position: J.CONTROLS_RIGHT,
12506
+ position: Q.CONTROLS_RIGHT,
12504
12507
  index: 3,
12505
12508
  disable: !0
12506
12509
  };
@@ -12618,7 +12621,7 @@ var Lg = /* @__PURE__ */ (function(a) {
12618
12621
  key: "defaultConfig",
12619
12622
  get: function() {
12620
12623
  return {
12621
- position: J.CONTROLS_RIGHT,
12624
+ position: Q.CONTROLS_RIGHT,
12622
12625
  index: 5,
12623
12626
  quality: 0.92,
12624
12627
  type: "image/png",
@@ -12708,12 +12711,12 @@ var Lg = /* @__PURE__ */ (function(a) {
12708
12711
  SIDE: "side",
12709
12712
  MIDDLE: "middle",
12710
12713
  DEFAULT: "default"
12711
- }, ft = {
12714
+ }, ht = {
12712
12715
  CLICK: "click",
12713
12716
  HOVER: "hover"
12714
12717
  };
12715
12718
  function Og(a, s) {
12716
- return a === Ie.SIDE ? s === J.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
12719
+ return a === Ie.SIDE ? s === Q.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
12717
12720
  }
12718
12721
  var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12719
12722
  M(n, a);
@@ -12727,7 +12730,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12727
12730
  }), _(y(e), "switchActiveState", function(i) {
12728
12731
  i.stopPropagation();
12729
12732
  var r = e.config.toggleMode;
12730
- r === ft.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12733
+ r === ht.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12731
12734
  }), _(y(e), "onLeave", function(i) {
12732
12735
  i.stopPropagation(), e.emit("icon_mouseleave", {
12733
12736
  pluginName: e.pluginName
@@ -12753,7 +12756,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12753
12756
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
12754
12757
  }), Ze && this.on(fa, function() {
12755
12758
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
12756
- }), Ze ? (i.toggleMode = ft.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ft.CLICK ? "click" : "mouseenter", i.toggleMode === ft.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);
12759
+ }), Ze ? (i.toggleMode = ht.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ht.CLICK ? "click" : "mouseenter", i.toggleMode === ht.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);
12757
12760
  }
12758
12761
  }, {
12759
12762
  key: "initIcons",
@@ -12854,7 +12857,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12854
12857
  key: "destroy",
12855
12858
  value: function() {
12856
12859
  var e = this.config;
12857
- e.toggleMode === ft.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);
12860
+ e.toggleMode === ht.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);
12858
12861
  }
12859
12862
  }, {
12860
12863
  key: "render",
@@ -12874,7 +12877,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12874
12877
  key: "defaultConfig",
12875
12878
  get: function() {
12876
12879
  return {
12877
- position: J.CONTROLS_RIGHT,
12880
+ position: Q.CONTROLS_RIGHT,
12878
12881
  index: 100,
12879
12882
  list: [],
12880
12883
  listType: "default",
@@ -12882,7 +12885,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12882
12885
  hidePortrait: !0,
12883
12886
  isShowIcon: !1,
12884
12887
  isItemClickHide: !0,
12885
- toggleMode: ft.HOVER,
12888
+ toggleMode: ht.HOVER,
12886
12889
  heightLimit: !0
12887
12890
  };
12888
12891
  }
@@ -12977,7 +12980,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
12977
12980
  key: "defaultConfig",
12978
12981
  get: function() {
12979
12982
  return re(re({}, ci.defaultConfig), {}, {
12980
- position: J.CONTROLS_RIGHT,
12983
+ position: Q.CONTROLS_RIGHT,
12981
12984
  index: 3,
12982
12985
  list: [],
12983
12986
  defaultDefinition: "",
@@ -13071,7 +13074,7 @@ var Ze = z.device === "mobile", ci = /* @__PURE__ */ (function(a) {
13071
13074
  key: "defaultConfig",
13072
13075
  get: function() {
13073
13076
  return re(re({}, ci.defaultConfig), {}, {
13074
- position: J.CONTROLS_RIGHT,
13077
+ position: Q.CONTROLS_RIGHT,
13075
13078
  index: 4,
13076
13079
  list: [2, 1.5, 1, 0.75, 0.5],
13077
13080
  className: "xgplayer-playbackrate",
@@ -13388,7 +13391,7 @@ function Hg(a) {
13388
13391
  a.positionDots();
13389
13392
  });
13390
13393
  }
13391
- var ht = {
13394
+ var dt = {
13392
13395
  dragmove: "onProgressMove",
13393
13396
  dragstart: "onProgressDragStart",
13394
13397
  dragend: "onProgressDragEnd",
@@ -13468,8 +13471,8 @@ var ht = {
13468
13471
  key: "bindEvents",
13469
13472
  value: function() {
13470
13473
  var e = this, i = this.player.plugins.progress;
13471
- if (i && (Object.keys(ht).map(function(o) {
13472
- e[ht[o]] = e[ht[o]].bind(e), i.addCallBack(o, e[ht[o]]);
13474
+ if (i && (Object.keys(dt).map(function(o) {
13475
+ e[dt[o]] = e[dt[o]].bind(e), i.addCallBack(o, e[dt[o]]);
13473
13476
  }), z.device !== "mobile")) {
13474
13477
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
13475
13478
  var r = this.hook("previewClick", function() {
@@ -13627,8 +13630,8 @@ var ht = {
13627
13630
  key: "destroy",
13628
13631
  value: function() {
13629
13632
  var e = this, i = this.player.plugins.progress;
13630
- i && Object.keys(ht).map(function(r) {
13631
- i.removeCallBack(r, e[ht[r]]);
13633
+ i && Object.keys(dt).map(function(r) {
13634
+ i.removeCallBack(r, e[dt[r]]);
13632
13635
  }), 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);
13633
13636
  }
13634
13637
  }, {
@@ -13889,7 +13892,7 @@ var zg = /* @__PURE__ */ (function(a) {
13889
13892
  };
13890
13893
  }
13891
13894
  }]), n;
13892
- })(K), dt = {
13895
+ })(K), gt = {
13893
13896
  REAL_TIME: "realtime",
13894
13897
  FIRST_FRAME: "firstframe",
13895
13898
  POSTER: "poster"
@@ -13931,7 +13934,7 @@ var Zt = null, Gg = /* @__PURE__ */ (function(a) {
13931
13934
  }
13932
13935
  }), _(y(t), "start", function(o, u) {
13933
13936
  var l = t.player.video, c = Vg(), f = t.checkVideoIsSupport(l);
13934
- !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 === dt.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));
13937
+ !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 === gt.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));
13935
13938
  }), _(y(t), "stop", function() {
13936
13939
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
13937
13940
  }), t;
@@ -13950,14 +13953,14 @@ var Zt = null, Gg = /* @__PURE__ */ (function(a) {
13950
13953
  x: 0,
13951
13954
  y: 0,
13952
13955
  pi: 0
13953
- }, 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 !== dt.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(bi, function() {
13956
+ }, 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 !== gt.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(bi, function() {
13954
13957
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
13955
- }), o !== dt.POSTER && (o !== dt.FIRST_FRAME && (this.on(nt, function() {
13958
+ }), o !== gt.POSTER && (o !== gt.FIRST_FRAME && (this.on(nt, function() {
13956
13959
  e.stop();
13957
13960
  }), this.on(be, function() {
13958
13961
  var l = e.config.startInterval;
13959
13962
  e._checkIfCanStart() && e.start(0, l);
13960
- }), this.on(mt, function() {
13963
+ }), this.on(yt, function() {
13961
13964
  e.stop();
13962
13965
  })), this.on(Fe, this.onLoadedData), this.on(ca, function() {
13963
13966
  e._isLoaded = !1, e.stop();
@@ -14024,7 +14027,7 @@ var Zt = null, Gg = /* @__PURE__ */ (function(a) {
14024
14027
  key: "_checkIfCanStart",
14025
14028
  value: function() {
14026
14029
  var e = this.config.mode;
14027
- return this._isLoaded && !this.player.paused && e !== dt.FIRST_FRAME && e !== dt.POSTER;
14030
+ return this._isLoaded && !this.player.paused && e !== gt.FIRST_FRAME && e !== gt.POSTER;
14028
14031
  }
14029
14032
  }, {
14030
14033
  key: "renderOnce",
@@ -14466,7 +14469,7 @@ var $g = /* @__PURE__ */ (function(a) {
14466
14469
  };
14467
14470
  }
14468
14471
  }]), n;
14469
- })(K), gt = "cdn", Jt = ["cdn"], Yg = /* @__PURE__ */ (function(a) {
14472
+ })(K), vt = "cdn", Jt = ["cdn"], Yg = /* @__PURE__ */ (function(a) {
14470
14473
  M(n, a);
14471
14474
  var s = F(n);
14472
14475
  function n() {
@@ -14475,7 +14478,7 @@ var $g = /* @__PURE__ */ (function(a) {
14475
14478
  for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
14476
14479
  i[r] = arguments[r];
14477
14480
  return t = s.call.apply(s, [this].concat(i)), _(y(t), "getSpeed", function() {
14478
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt;
14481
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt;
14479
14482
  if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
14480
14483
  return 0;
14481
14484
  var u = 0;
@@ -14489,7 +14492,7 @@ var $g = /* @__PURE__ */ (function(a) {
14489
14492
  t.speedListCache[o] = [];
14490
14493
  });
14491
14494
  }), _(y(t), "_onRealSpeedChange", function(o) {
14492
- o.speed && t.appendList(o.speed, o.type || gt);
14495
+ o.speed && t.appendList(o.speed, o.type || vt);
14493
14496
  }), _(y(t), "testSpeed", function() {
14494
14497
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
14495
14498
  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();
@@ -14514,17 +14517,17 @@ var $g = /* @__PURE__ */ (function(a) {
14514
14517
  }
14515
14518
  }
14516
14519
  }), _(y(t), "appendList", function(o) {
14517
- var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gt;
14520
+ var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : vt;
14518
14521
  if (!(!t.speedListCache || !t.speedListCache[u])) {
14519
14522
  var l = t.config.saveSpeedMax;
14520
14523
  t.speedListCache[u].length >= l && t.speedListCache[u].shift(), t.speedListCache[u].push(o);
14521
14524
  var c = y(t), f = c.player;
14522
- f && (u === gt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14525
+ f && (u === vt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14523
14526
  }
14524
14527
  }), _(y(t), "updateSpeed", function() {
14525
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt, u = t.getSpeed(o), l = y(t), c = l.player;
14528
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt, u = t.getSpeed(o), l = y(t), c = l.player;
14526
14529
  if (c)
14527
- if (o === gt)
14530
+ if (o === vt)
14528
14531
  (!c.avgSpeed || u !== c.avgSpeed) && (c.avgSpeed = u, c.emit(qr, {
14529
14532
  speed: u,
14530
14533
  realTimeSpeed: c.realTimeSpeed
@@ -14606,7 +14609,7 @@ var $g = /* @__PURE__ */ (function(a) {
14606
14609
  var u = o.getVideoPlaybackQuality;
14607
14610
  u && (this.on(be, function() {
14608
14611
  e._startTick();
14609
- }), this.on(mt, function() {
14612
+ }), this.on(yt, function() {
14610
14613
  e._stopTick();
14611
14614
  }), this.on(it, function() {
14612
14615
  e._stopTick();
@@ -14702,7 +14705,7 @@ var $g = /* @__PURE__ */ (function(a) {
14702
14705
  }
14703
14706
  }]), n;
14704
14707
  })(K);
14705
- vt.use(Wg);
14708
+ pt.use(Wg);
14706
14709
  var Zg = /* @__PURE__ */ L(function a(s, n) {
14707
14710
  var t, e, i;
14708
14711
  A(this, a);
@@ -14735,7 +14738,7 @@ _(ue, "Errors", ti);
14735
14738
  _(ue, "Events", _d);
14736
14739
  _(ue, "Plugin", K);
14737
14740
  _(ue, "BasePlugin", Ke);
14738
- _(ue, "I18N", vt);
14741
+ _(ue, "I18N", pt);
14739
14742
  _(ue, "STATE_CLASS", w);
14740
14743
  _(ue, "InstManager", fl);
14741
14744
  _(ue, "PlayIcon", dl);
@@ -14773,7 +14776,7 @@ const Jg = ["id"], Qg = /* @__PURE__ */ ae({
14773
14776
  }, ["update:modelValue"]),
14774
14777
  setup(a, { emit: s }) {
14775
14778
  let n = null;
14776
- const t = a, { cLoadUrl: e } = Cu(t), i = Q(() => Dt(e.value, t.url)), r = {
14779
+ const t = a, { cLoadUrl: e } = Cu(t), i = J(() => Dt(e.value, t.url)), r = {
14777
14780
  width: "100%",
14778
14781
  height: "100%",
14779
14782
  // 是否自动播放
@@ -14791,7 +14794,7 @@ const Jg = ["id"], Qg = /* @__PURE__ */ ae({
14791
14794
  poster: "",
14792
14795
  lang: "zh-CN",
14793
14796
  screenShot: !0
14794
- }, o = Q(() => ({
14797
+ }, o = J(() => ({
14795
14798
  ...r,
14796
14799
  ...t.config
14797
14800
  })), u = s, l = $r(a, "modelValue"), c = _u(), f = yu("image-viewer");
@@ -14807,7 +14810,7 @@ const Jg = ["id"], Qg = /* @__PURE__ */ ae({
14807
14810
  });
14808
14811
  });
14809
14812
  }), (g, v) => {
14810
- const m = pt("el-icon");
14813
+ const m = mt("el-icon");
14811
14814
  return l.value ? (E(), oe(pu, {
14812
14815
  key: 0,
14813
14816
  to: "body"
@@ -14934,7 +14937,7 @@ const Jg = ["id"], Qg = /* @__PURE__ */ ae({
14934
14937
  tag: "tag",
14935
14938
  fileList: "fileList",
14936
14939
  ...s.fileField
14937
- }, t = Nl(), e = Q(() => typeof s.labelWidth == "number" ? `${s.labelWidth}px` : s.labelWidth), i = (/* @__PURE__ */ new Date()).getTime(), r = ge(""), o = Q(() => s.listData.filter((l) => l.show !== !1)), u = () => {
14940
+ }, t = Nl(), e = J(() => typeof s.labelWidth == "number" ? `${s.labelWidth}px` : s.labelWidth), i = (/* @__PURE__ */ new Date()).getTime(), r = ge(""), o = J(() => s.listData.filter((l) => l.show !== !1)), u = () => {
14938
14941
  var c;
14939
14942
  const l = Number(
14940
14943
  (t == null ? void 0 : t.column) || s.column || s.props.column || ((c = s.titleProps) == null ? void 0 : c.column)
@@ -14955,7 +14958,7 @@ const Jg = ["id"], Qg = /* @__PURE__ */ ae({
14955
14958
  });
14956
14959
  };
14957
14960
  return vu(u), Bl(u), (l, c) => {
14958
- const f = pt("el-descriptions-item"), d = pt("el-descriptions");
14961
+ const f = mt("el-descriptions-item"), d = mt("el-descriptions");
14959
14962
  return E(), oe(d, It({
14960
14963
  id: `ik-description__container-${I(i)}`,
14961
14964
  class: "margin-top"