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,6 +1,6 @@
1
- import { defineComponent as re, computed as te, createElementBlock as R, openBlock as x, createElementVNode as S, inject as bt, mergeModels as Et, useModel as Gr, ref as ge, reactive as Sl, watch as xt, nextTick as Wr, createCommentVNode as X, Fragment as ke, createBlock as ve, createVNode as Y, unref as I, withCtx as se, toDisplayString as we, resolveComponent as Jt, normalizeStyle as Te, normalizeClass as Q, mergeProps as gu, createTextVNode as Fr, h as El, createSlots as xl, renderSlot as qe, getCurrentScope as Il, onScopeDispose as Pl, markRaw as wa, effectScope as Al, shallowRef as Ll, onMounted as Dl, Teleport as vu, Transition as pu, withModifiers as Je, resolveDynamicComponent as Rl, renderList as Yt, withDirectives as Ol, vShow as Ml } from "vue";
1
+ import { defineComponent as re, computed as ee, createElementBlock as R, openBlock as x, createElementVNode as S, inject as ut, mergeModels as Et, useModel as Gr, ref as ge, reactive as Sl, watch as xt, nextTick as Wr, createCommentVNode as X, Fragment as ke, createBlock as ve, createVNode as Y, unref as I, withCtx as se, toDisplayString as we, resolveComponent as Jt, normalizeStyle as Te, normalizeClass as Q, mergeProps as gu, createTextVNode as Fr, h as El, createSlots as xl, renderSlot as qe, getCurrentScope as Il, onScopeDispose as Pl, markRaw as wa, effectScope as Al, shallowRef as Ll, onMounted as Dl, Teleport as vu, Transition as pu, withModifiers as Je, resolveDynamicComponent as Rl, renderList as Yt, withDirectives as Ol, vShow as Ml } from "vue";
2
2
  import { buildUUID as mu, ikColor as Fl, paramType as Nr, _ as bi, ikFile as Nl } from "iking-utils-pro";
3
- import { useLocale as Bl, useNamespace as yu, useZIndex as Hl, ElIcon as He, EVENT_CODE as ut } from "element-plus";
3
+ import { useLocale as Bl, useNamespace as yu, useZIndex as Hl, ElIcon as He, EVENT_CODE as lt } from "element-plus";
4
4
  const Ke = (a, s) => (a.install = (n) => {
5
5
  for (const t of [a, ...Object.values({})])
6
6
  n.component(t.name, t);
@@ -258,7 +258,7 @@ const Ke = (a, s) => (a.install = (n) => {
258
258
  }
259
259
  },
260
260
  setup(a) {
261
- const s = a, n = te(() => s.file ? Xt(s.file, s.fields) : s.type);
261
+ const s = a, n = ee(() => s.file ? Xt(s.file, s.fields) : s.type);
262
262
  return (t, e) => n.value === "image" ? (x(), R("svg", zl, [...e[0] || (e[0] = [
263
263
  S(
264
264
  "path",
@@ -817,14 +817,17 @@ const Kr = (a, s) => {
817
817
  "flv",
818
818
  "tls"
819
819
  ], bu = (a) => {
820
- const s = bt("loadUrl"), n = te(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = bt("uploadUrl"), e = te(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = bt("token"), r = te(() => a.token || (i == null ? void 0 : i.value)), o = bt("onlyofficeConfig"), u = te(() => a.onlyofficeConfig || (o == null ? void 0 : o.value)), l = bt("userInfo"), c = te(() => a.userInfo || (l == null ? void 0 : l.value)), f = [...Ea, ...Ea.map((d) => d.toLocaleUpperCase())];
820
+ const s = ut("loadUrl"), n = ee(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = ut("uploadUrl"), e = ee(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ut("token"), r = ee(() => a.token || (i == null ? void 0 : i.value)), o = ut("header"), u = ee(() => a.header || (o == null ? void 0 : o.value) || {
821
+ Authorization: r.value
822
+ }), l = ut("onlyofficeConfig"), c = ee(() => a.onlyofficeConfig || (l == null ? void 0 : l.value)), f = ut("userInfo"), d = ee(() => a.userInfo || (f == null ? void 0 : f.value)), v = [...Ea, ...Ea.map((g) => g.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: v
828
831
  };
829
832
  }, yc = { class: "head-logo" }, _c = ["src"], bc = { class: "text-preview-container" }, Cc = { class: "text-preview-header" }, kc = { class: "file-name" }, wc = { class: "text-preview-content" }, Tc = /* @__PURE__ */ re({
830
833
  __name: "IkPreviewFileDialog",
@@ -863,7 +866,7 @@ const Kr = (a, s) => {
863
866
  }),
864
867
  emits: /* @__PURE__ */ Et(["close"], ["update:show"]),
865
868
  setup(a, { emit: s }) {
866
- const n = a, t = s, e = Gr(a, "show"), i = te(() => ({
869
+ const n = a, t = s, e = Gr(a, "show"), i = ee(() => ({
867
870
  name: "name",
868
871
  url: "url",
869
872
  suffix: "suffix",
@@ -1085,10 +1088,10 @@ const Ec = {
1085
1088
  },
1086
1089
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
1087
1090
  setup(a, { emit: s }) {
1088
- const n = a, t = te(() => n), e = te(() => {
1091
+ const n = a, t = ee(() => n), e = ee(() => {
1089
1092
  const { name: f } = t.value;
1090
1093
  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";
1091
- }), i = te(() => {
1094
+ }), i = ee(() => {
1092
1095
  const f = [];
1093
1096
  if (t.value.flip)
1094
1097
  switch (t.value.flip) {
@@ -1248,7 +1251,7 @@ const Ec = {
1248
1251
  );
1249
1252
  };
1250
1253
  }
1251
- }), Rc = /* @__PURE__ */ Kr(Dc, [["__scopeId", "data-v-d5c74053"]]), Qe = Ke(Rc), Oc = /* @__PURE__ */ re({
1254
+ }), Rc = /* @__PURE__ */ Kr(Dc, [["__scopeId", "data-v-9ebb0a94"]]), Qe = Ke(Rc), Oc = /* @__PURE__ */ re({
1252
1255
  __name: "CloseIcon",
1253
1256
  props: {
1254
1257
  showBg: {
@@ -1278,7 +1281,7 @@ const Ec = {
1278
1281
  /* CLASS */
1279
1282
  ));
1280
1283
  }
1281
- }), Mc = /* @__PURE__ */ Kr(Oc, [["__scopeId", "data-v-22f2afe8"]]), Fc = { class: "base-header" }, Nc = /* @__PURE__ */ re({
1284
+ }), Mc = /* @__PURE__ */ Kr(Oc, [["__scopeId", "data-v-da9210e2"]]), Fc = { class: "base-header" }, Nc = /* @__PURE__ */ re({
1282
1285
  __name: "IkBaseDialog",
1283
1286
  props: /* @__PURE__ */ Et({
1284
1287
  title: { default: "" },
@@ -1340,8 +1343,8 @@ const Ec = {
1340
1343
  )
1341
1344
  ])
1342
1345
  ]),
1343
- X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"\r
1344
- :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"\r
1346
+ X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
1347
+ :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
1345
1348
  class="absolute! top-[18px] right-[50px] icon-dialog-full" :title="isFull ? '退出全屏' : '全屏'" /> `)
1346
1349
  ]),
1347
1350
  default: se(() => [
@@ -2681,8 +2684,8 @@ var yr, Io;
2681
2684
  function rh() {
2682
2685
  if (Io) return yr;
2683
2686
  Io = 1;
2684
- var a = yf(), s = _f(), n = Eu(), t = Af(), e = Rf(), i = Of(), r = Mf(), o = Nf(), u = Bf(), l = Hf(), c = Uf(), f = ra(), d = Gf(), v = Zf(), g = Qf(), m = Zr(), p = xu(), k = th(), b = At(), C = nh(), P = ta(), T = ia(), E = 1, D = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ie = "[object Date]", ae = "[object Error]", _e = "[object Function]", Ot = "[object GeneratorFunction]", Mt = "[object Map]", mt = "[object Number]", yt = "[object Object]", Ft = "[object RegExp]", Le = "[object Set]", H = "[object String]", W = "[object Symbol]", ee = "[object WeakMap]", de = "[object ArrayBuffer]", be = "[object DataView]", Ce = "[object Float32Array]", Ee = "[object Float64Array]", Ye = "[object Int8Array]", Nt = "[object Int16Array]", Bt = "[object Int32Array]", _t = "[object Uint8Array]", _l = "[object Uint8ClampedArray]", bl = "[object Uint16Array]", Cl = "[object Uint32Array]", Z = {};
2685
- Z[j] = Z[B] = Z[de] = Z[be] = Z[O] = Z[ie] = Z[Ce] = Z[Ee] = Z[Ye] = Z[Nt] = Z[Bt] = Z[Mt] = Z[mt] = Z[yt] = Z[Ft] = Z[Le] = Z[H] = Z[W] = Z[_t] = Z[_l] = Z[bl] = Z[Cl] = !0, Z[ae] = Z[_e] = Z[ee] = !1;
2687
+ var a = yf(), s = _f(), n = Eu(), t = Af(), e = Rf(), i = Of(), r = Mf(), o = Nf(), u = Bf(), l = Hf(), c = Uf(), f = ra(), d = Gf(), v = Zf(), g = Qf(), m = Zr(), p = xu(), k = th(), b = At(), C = nh(), P = ta(), T = ia(), E = 1, D = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ie = "[object Date]", ae = "[object Error]", _e = "[object Function]", Ot = "[object GeneratorFunction]", Mt = "[object Map]", yt = "[object Number]", _t = "[object Object]", Ft = "[object RegExp]", Le = "[object Set]", H = "[object String]", W = "[object Symbol]", te = "[object WeakMap]", de = "[object ArrayBuffer]", be = "[object DataView]", Ce = "[object Float32Array]", Ee = "[object Float64Array]", Ye = "[object Int8Array]", Nt = "[object Int16Array]", Bt = "[object Int32Array]", bt = "[object Uint8Array]", _l = "[object Uint8ClampedArray]", bl = "[object Uint16Array]", Cl = "[object Uint32Array]", Z = {};
2688
+ Z[j] = Z[B] = Z[de] = Z[be] = Z[O] = Z[ie] = Z[Ce] = Z[Ee] = Z[Ye] = Z[Nt] = Z[Bt] = Z[Mt] = Z[yt] = Z[_t] = Z[Ft] = Z[Le] = Z[H] = Z[W] = Z[bt] = Z[_l] = Z[bl] = Z[Cl] = !0, Z[ae] = Z[_e] = Z[te] = !1;
2686
2689
  function Ht($, at, st, kl, Ut, Ne) {
2687
2690
  var fe, jt = at & E, zt = at & D, wl = at & q;
2688
2691
  if (st && (fe = Ut ? st($, kl, Ut, Ne) : st($)), fe !== void 0)
@@ -2697,7 +2700,7 @@ function rh() {
2697
2700
  var ot = f($), ba = ot == _e || ot == Ot;
2698
2701
  if (p($))
2699
2702
  return i($, jt);
2700
- if (ot == yt || ot == j || ba && !Ut) {
2703
+ if (ot == _t || ot == j || ba && !Ut) {
2701
2704
  if (fe = zt || ba ? {} : g($), !jt)
2702
2705
  return zt ? u($, e(fe, $)) : o($, t(fe, $));
2703
2706
  } else {
@@ -3135,61 +3138,61 @@ const wh = {
3135
3138
  offsetX: 0,
3136
3139
  offsetY: 0,
3137
3140
  enableTransition: !1
3138
- }), k = ge(i.zIndex ?? l()), b = te(() => {
3141
+ }), k = ge(i.zIndex ?? l()), b = ee(() => {
3139
3142
  const { urlList: H } = i;
3140
3143
  return H.length <= 1;
3141
- }), C = te(() => g.value === 0), P = te(() => g.value === i.urlList.length - 1), T = te(() => i.urlList[g.value]), E = te(() => [
3144
+ }), C = ee(() => g.value === 0), P = ee(() => g.value === i.urlList.length - 1), T = ee(() => i.urlList[g.value]), E = ee(() => [
3142
3145
  u.e("btn"),
3143
3146
  u.e("prev"),
3144
3147
  u.is("disabled", !i.infinite && C.value)
3145
- ]), D = te(() => [
3148
+ ]), D = ee(() => [
3146
3149
  u.e("btn"),
3147
3150
  u.e("next"),
3148
3151
  u.is("disabled", !i.infinite && P.value)
3149
- ]), q = te(() => {
3150
- const { scale: H, deg: W, offsetX: ee, offsetY: de, enableTransition: be } = p.value;
3151
- let Ce = ee / H, Ee = de / H;
3152
+ ]), q = ee(() => {
3153
+ const { scale: H, deg: W, offsetX: te, offsetY: de, enableTransition: be } = p.value;
3154
+ let Ce = te / H, Ee = de / H;
3152
3155
  const Ye = W * Math.PI / 180, Nt = Math.cos(Ye), Bt = Math.sin(Ye);
3153
- Ce = Ce * Nt + Ee * Bt, Ee = Ee * Nt - ee / H * Bt;
3154
- const _t = {
3156
+ Ce = Ce * Nt + Ee * Bt, Ee = Ee * Nt - te / H * Bt;
3157
+ const bt = {
3155
3158
  transform: `scale(${H}) rotate(${W}deg) translate(${Ce}px, ${Ee}px)`,
3156
3159
  transition: be ? "transform .3s" : ""
3157
3160
  };
3158
- return m.value.name === e.CONTAIN.name && (_t.maxWidth = _t.maxHeight = "100%"), _t;
3161
+ return m.value.name === e.CONTAIN.name && (bt.maxWidth = bt.maxHeight = "100%"), bt;
3159
3162
  });
3160
3163
  function j() {
3161
3164
  O(), r("close");
3162
3165
  }
3163
3166
  function B() {
3164
- const H = bi.throttle((ee) => {
3165
- switch (ee.code) {
3167
+ const H = bi.throttle((te) => {
3168
+ switch (te.code) {
3166
3169
  // ESC
3167
- case ut.esc:
3170
+ case lt.esc:
3168
3171
  i.closeOnPressEscape && j();
3169
3172
  break;
3170
3173
  // SPACE
3171
- case ut.space:
3174
+ case lt.space:
3172
3175
  Mt();
3173
3176
  break;
3174
3177
  // LEFT_ARROW
3175
- case ut.left:
3176
- yt();
3178
+ case lt.left:
3179
+ _t();
3177
3180
  break;
3178
3181
  // UP_ARROW
3179
- case ut.up:
3182
+ case lt.up:
3180
3183
  Le("zoomIn");
3181
3184
  break;
3182
3185
  // RIGHT_ARROW
3183
- case ut.right:
3186
+ case lt.right:
3184
3187
  Ft();
3185
3188
  break;
3186
3189
  // DOWN_ARROW
3187
- case ut.down:
3190
+ case lt.down:
3188
3191
  Le("zoomOut");
3189
3192
  break;
3190
3193
  }
3191
- }), W = bi.throttle((ee) => {
3192
- const de = ee.deltaY || ee.deltaX;
3194
+ }), W = bi.throttle((te) => {
3195
+ const de = te.deltaY || te.deltaX;
3193
3196
  Le(de < 0 ? "zoomIn" : "zoomOut", {
3194
3197
  zoomRate: i.zoomRate,
3195
3198
  enableTransition: !1
@@ -3211,11 +3214,11 @@ const wh = {
3211
3214
  function _e(H) {
3212
3215
  if (v.value || H.button !== 0 || !c.value) return;
3213
3216
  p.value.enableTransition = !1;
3214
- const { offsetX: W, offsetY: ee } = p.value, de = H.pageX, be = H.pageY, Ce = bi.throttle((Ye) => {
3217
+ const { offsetX: W, offsetY: te } = p.value, de = H.pageX, be = H.pageY, Ce = bi.throttle((Ye) => {
3215
3218
  p.value = {
3216
3219
  ...p.value,
3217
3220
  offsetX: W + Ye.pageX - de,
3218
- offsetY: ee + Ye.pageY - be
3221
+ offsetY: te + Ye.pageY - be
3219
3222
  };
3220
3223
  }), Ee = qt(document, "mousemove", Ce);
3221
3224
  qt(document, "mouseup", () => {
@@ -3233,22 +3236,22 @@ const wh = {
3233
3236
  }
3234
3237
  function Mt() {
3235
3238
  if (v.value) return;
3236
- const H = t(e), W = Object.values(e), ee = m.value.name, be = ((W == null ? void 0 : W.findIndex((Ce) => Ce.name === ee)) + 1) % H.length;
3239
+ const H = t(e), W = Object.values(e), te = m.value.name, be = ((W == null ? void 0 : W.findIndex((Ce) => Ce.name === te)) + 1) % H.length;
3237
3240
  m.value = e[H[be]], Ot();
3238
3241
  }
3239
- function mt(H) {
3242
+ function yt(H) {
3240
3243
  const W = i.urlList.length;
3241
3244
  g.value = (H + W) % W;
3242
3245
  }
3243
- function yt() {
3244
- C.value && !i.infinite || mt(g.value - 1);
3246
+ function _t() {
3247
+ C.value && !i.infinite || yt(g.value - 1);
3245
3248
  }
3246
3249
  function Ft() {
3247
- P.value && !i.infinite || mt(g.value + 1);
3250
+ P.value && !i.infinite || yt(g.value + 1);
3248
3251
  }
3249
3252
  function Le(H, W = {}) {
3250
3253
  if (v.value) return;
3251
- const { minScale: ee, maxScale: de } = i, { zoomRate: be, rotateDeg: Ce, enableTransition: Ee } = {
3254
+ const { minScale: te, maxScale: de } = i, { zoomRate: be, rotateDeg: Ce, enableTransition: Ee } = {
3252
3255
  zoomRate: i.zoomRate,
3253
3256
  rotateDeg: 90,
3254
3257
  enableTransition: !0,
@@ -3256,7 +3259,7 @@ const wh = {
3256
3259
  };
3257
3260
  switch (H) {
3258
3261
  case "zoomOut":
3259
- p.value.scale > ee && (p.value.scale = Number.parseFloat(
3262
+ p.value.scale > te && (p.value.scale = Number.parseFloat(
3260
3263
  (p.value.scale / be).toFixed(3)
3261
3264
  ));
3262
3265
  break;
@@ -3288,7 +3291,7 @@ const wh = {
3288
3291
  /**
3289
3292
  * @description manually switch image
3290
3293
  */
3291
- setActiveItem: mt
3294
+ setActiveItem: yt
3292
3295
  }), (H, W) => (x(), ve(vu, { to: "body" }, [
3293
3296
  Y(pu, {
3294
3297
  name: "viewer-fade",
@@ -3309,7 +3312,7 @@ const wh = {
3309
3312
  "div",
3310
3313
  {
3311
3314
  class: Q(I(u).e("mask")),
3312
- onClick: W[0] || (W[0] = Je((ee) => H.hideOnClickModal && j(), ["self"]))
3315
+ onClick: W[0] || (W[0] = Je((te) => H.hideOnClickModal && j(), ["self"]))
3313
3316
  },
3314
3317
  null,
3315
3318
  2
@@ -3343,7 +3346,7 @@ const wh = {
3343
3346
  "span",
3344
3347
  {
3345
3348
  class: Q(E.value),
3346
- onClick: yt
3349
+ onClick: _t
3347
3350
  },
3348
3351
  [
3349
3352
  Y(I(He), null, {
@@ -3393,7 +3396,7 @@ const wh = {
3393
3396
  },
3394
3397
  [
3395
3398
  Y(I(He), {
3396
- onClick: W[1] || (W[1] = (ee) => Le("zoomOut"))
3399
+ onClick: W[1] || (W[1] = (te) => Le("zoomOut"))
3397
3400
  }, {
3398
3401
  default: se(() => [
3399
3402
  Y(I(mc))
@@ -3402,7 +3405,7 @@ const wh = {
3402
3405
  /* STABLE */
3403
3406
  }),
3404
3407
  Y(I(He), {
3405
- onClick: W[2] || (W[2] = (ee) => Le("zoomIn"))
3408
+ onClick: W[2] || (W[2] = (te) => Le("zoomIn"))
3406
3409
  }, {
3407
3410
  default: se(() => [
3408
3411
  Y(I(vc))
@@ -3436,7 +3439,7 @@ const wh = {
3436
3439
  /* CLASS */
3437
3440
  ),
3438
3441
  Y(I(He), {
3439
- onClick: W[3] || (W[3] = (ee) => Le("anticlockwise"))
3442
+ onClick: W[3] || (W[3] = (te) => Le("anticlockwise"))
3440
3443
  }, {
3441
3444
  default: se(() => [
3442
3445
  Y(I(lc))
@@ -3445,7 +3448,7 @@ const wh = {
3445
3448
  /* STABLE */
3446
3449
  }),
3447
3450
  Y(I(He), {
3448
- onClick: W[4] || (W[4] = (ee) => Le("clockwise"))
3451
+ onClick: W[4] || (W[4] = (te) => Le("clockwise"))
3449
3452
  }, {
3450
3453
  default: se(() => [
3451
3454
  Y(I(fc))
@@ -3471,11 +3474,11 @@ const wh = {
3471
3474
  (x(!0), R(
3472
3475
  ke,
3473
3476
  null,
3474
- Yt(H.urlList, (ee, de) => Ol((x(), R("img", {
3477
+ Yt(H.urlList, (te, de) => Ol((x(), R("img", {
3475
3478
  ref_for: !0,
3476
3479
  ref: (be) => f.value[de] = be,
3477
- key: ee,
3478
- src: ee,
3480
+ key: te,
3481
+ src: te,
3479
3482
  style: Te(q.value),
3480
3483
  class: Q(I(u).e("img")),
3481
3484
  crossorigin: H.crossorigin,
@@ -4506,7 +4509,7 @@ var Ho = {
4506
4509
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
4507
4510
  }
4508
4511
  }
4509
- ), ye = "play", ua = "playing", it = "ended", pt = "pause", Dt = "error", vi = "seeking", Oe = "seeked", me = "timeupdate", Rt = "waiting", Re = "canplay", Gh = "canplaythrough", Fe = "durationchange", Vu = "volumechange", Me = "loadeddata", Wh = "loadedmetadata", qu = "ratechange", Gu = "progress", la = "loadstart", nt = "emptied", Kh = "stalled", $h = "suspend", Yh = "abort", Xh = "bufferedChange", ca = "focus", Wu = "blur", fa = "ready", Ku = "urlNull", et = "autoplay_started", ha = "autoplay_was_prevented", pi = "complete", ei = "replay", da = "destroy", mi = "urlchange", jr = "download_speed_change", $u = "leaveplayer", Yu = "enterplayer", Xu = "loading", De = "fullscreen_change", ti = "cssFullscreen_change", ii = "mini_state_change", ga = "definition_change", Zh = "before_definition_change", zr = "after_definition_change", Jh = "SEI_PARSED", Qh = "retry", Ge = "video_resize", Vr = "pip_change", Zu = "rotate", Ju = "screenShot", ni = "playnext", Qu = "shortcut", el = "xglog", ri = "user_action", yi = "reset", tl = "source_error", il = "source_success", ed = "switch_subtitle", nl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], rl = {
4512
+ ), ye = "play", ua = "playing", it = "ended", mt = "pause", Dt = "error", vi = "seeking", Oe = "seeked", me = "timeupdate", Rt = "waiting", Re = "canplay", Gh = "canplaythrough", Fe = "durationchange", Vu = "volumechange", Me = "loadeddata", Wh = "loadedmetadata", qu = "ratechange", Gu = "progress", la = "loadstart", nt = "emptied", Kh = "stalled", $h = "suspend", Yh = "abort", Xh = "bufferedChange", ca = "focus", Wu = "blur", fa = "ready", Ku = "urlNull", et = "autoplay_started", ha = "autoplay_was_prevented", pi = "complete", ei = "replay", da = "destroy", mi = "urlchange", jr = "download_speed_change", $u = "leaveplayer", Yu = "enterplayer", Xu = "loading", De = "fullscreen_change", ti = "cssFullscreen_change", ii = "mini_state_change", ga = "definition_change", Zh = "before_definition_change", zr = "after_definition_change", Jh = "SEI_PARSED", Qh = "retry", Ge = "video_resize", Vr = "pip_change", Zu = "rotate", Ju = "screenShot", ni = "playnext", Qu = "shortcut", el = "xglog", ri = "user_action", yi = "reset", tl = "source_error", il = "source_success", ed = "switch_subtitle", nl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], rl = {
4510
4513
  STATS_INFO: "stats_info",
4511
4514
  STATS_DOWNLOAD: "stats_download",
4512
4515
  STATS_RESET: "stats_reset"
@@ -4539,7 +4542,7 @@ const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4539
4542
  LOADING: Xu,
4540
4543
  LOAD_START: la,
4541
4544
  MINI_STATE_CHANGE: ii,
4542
- PAUSE: pt,
4545
+ PAUSE: mt,
4543
4546
  PIP_CHANGE: Vr,
4544
4547
  PLAY: ye,
4545
4548
  PLAYER_BLUR: Wu,
@@ -6507,7 +6510,7 @@ function bd(a) {
6507
6510
  return Pt(n.lang, pe.lang), (s = n.langKeys).push.apply(s, Se(pe.langKeys)), Pt(n.textKeys, pe.textKeys), n;
6508
6511
  }
6509
6512
  va(yd);
6510
- var vt = {
6513
+ var pt = {
6511
6514
  get textKeys() {
6512
6515
  return pe.textKeys;
6513
6516
  },
@@ -6704,7 +6707,7 @@ var kd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, Ue = null, _i = /
6704
6707
  }, e._offsetInfo = {
6705
6708
  currentTime: -1,
6706
6709
  duration: 0
6707
- }, 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 rd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
6710
+ }, 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 rd(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
6708
6711
  isActiveLocked: !1
6709
6712
  }, e.instManager = Ue;
6710
6713
  var u = e._initDOM();
@@ -6817,7 +6820,7 @@ var kd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, Ue = null, _i = /
6817
6820
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
6818
6821
  this._loadingPlugins = [];
6819
6822
  var r = this.config.ignores || [], o = this.config.plugins || [], u = this.config.i18n || [];
6820
- i && vt.extend(u, this.__i18n);
6823
+ i && pt.extend(u, this.__i18n);
6821
6824
  var l = r.join("||").toLowerCase().split("||"), c = this.plugins;
6822
6825
  o.forEach(function(f) {
6823
6826
  try {
@@ -7623,11 +7626,11 @@ var kd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, Ue = null, _i = /
7623
7626
  return this.config.lang;
7624
7627
  },
7625
7628
  set: function(e) {
7626
- var i = vt.langKeys.filter(function(r) {
7629
+ var i = pt.langKeys.filter(function(r) {
7627
7630
  return r === e;
7628
7631
  });
7629
7632
  if (i.length === 0 && e !== "zh") {
7630
- 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(), "] "));
7633
+ 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(), "] "));
7631
7634
  return;
7632
7635
  }
7633
7636
  this.config.lang = e, ue.setLang(e, this);
@@ -8236,7 +8239,7 @@ var hl = /* @__PURE__ */ (function(a) {
8236
8239
  key: "listenEvents",
8237
8240
  value: function() {
8238
8241
  var e = this, i = this.player;
8239
- this.on([ye, pt, Dt, nt], function() {
8242
+ this.on([ye, mt, Dt, nt], function() {
8240
8243
  e.animate(i.paused);
8241
8244
  });
8242
8245
  }
@@ -9714,7 +9717,7 @@ var Hd = /* @__PURE__ */ (function(a) {
9714
9717
  e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
9715
9718
  }), this.on(ye, function() {
9716
9719
  e.toggleTo("play");
9717
- }), this.on(pt, function() {
9720
+ }), this.on(mt, function() {
9718
9721
  e.toggleTo("pause");
9719
9722
  }), this.on(yi, function() {
9720
9723
  e.onPlayerReset();
@@ -10257,7 +10260,7 @@ var Ar = {
10257
10260
  key: "afterCreate",
10258
10261
  value: function() {
10259
10262
  var e = this;
10260
- this.initIcons(), this.on(pt, function() {
10263
+ this.initIcons(), this.on(mt, function() {
10261
10264
  e.setAttr("data-state", "pause");
10262
10265
  }), this.on(ye, function() {
10263
10266
  e.setAttr("data-state", "play");
@@ -10633,7 +10636,7 @@ function Yd() {
10633
10636
  <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"/>
10634
10637
  </svg>`, "image/svg+xml").firstChild;
10635
10638
  }
10636
- var lt = {
10639
+ var ct = {
10637
10640
  AUTO: "auto",
10638
10641
  SEEKING: "seeking",
10639
10642
  PLAYBACK: "playbackrate"
@@ -10671,7 +10674,7 @@ var lt = {
10671
10674
  }, 10), !!u.isStart) {
10672
10675
  u.scope > -1 && i.cancelable && i.preventDefault();
10673
10676
  var c = e.config, f = c.disableGesture, d = c.gestureX;
10674
- !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(lt.AUTO);
10677
+ !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(ct.AUTO);
10675
10678
  }
10676
10679
  }), _(y(e), "onRootTouchMove", function(i) {
10677
10680
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -10757,7 +10760,7 @@ var lt = {
10757
10760
  e.activeSeekNote(d.currentTime, d.forward);
10758
10761
  }), ["dragend", "click"].forEach(function(d) {
10759
10762
  f.addCallBack(d, function() {
10760
- e.changeAction(lt.AUTO);
10763
+ e.changeAction(ct.AUTO);
10761
10764
  });
10762
10765
  }));
10763
10766
  }
@@ -10863,7 +10866,7 @@ var lt = {
10863
10866
  }, 500);
10864
10867
  break;
10865
10868
  }
10866
- this.changeAction(lt.AUTO);
10869
+ this.changeAction(ct.AUTO);
10867
10870
  }
10868
10871
  }, {
10869
10872
  key: "checkIsRootTarget",
@@ -10927,7 +10930,7 @@ var lt = {
10927
10930
  prop: "playbackRate",
10928
10931
  from: o.playbackRate,
10929
10932
  to: r.pressRate
10930
- }), o.playbackRate = r.pressRate, this.changeAction(lt.PLAYBACK));
10933
+ }), o.playbackRate = r.pressRate, this.changeAction(ct.PLAYBACK));
10931
10934
  }
10932
10935
  }, {
10933
10936
  key: "onPressEnd",
@@ -10937,7 +10940,7 @@ var lt = {
10937
10940
  prop: "playbackRate",
10938
10941
  from: o.playbackRate,
10939
10942
  to: i.rate
10940
- }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(lt.AUTO));
10943
+ }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(ct.AUTO));
10941
10944
  }
10942
10945
  }, {
10943
10946
  key: "updateTime",
@@ -10972,7 +10975,7 @@ var lt = {
10972
10975
  value: function(e) {
10973
10976
  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);
10974
10977
  if (!(!e || typeof e != "number" || u || o.disableActive)) {
10975
- e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(lt.SEEKING);
10978
+ e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(ct.SEEKING);
10976
10979
  var l = r.plugins.start;
10977
10980
  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);
10978
10981
  }
@@ -11670,7 +11673,7 @@ function rg() {
11670
11673
  fill="white" />
11671
11674
  </svg>`, "image/svg+xml").firstChild;
11672
11675
  }
11673
- var ct = {
11676
+ var ft = {
11674
11677
  PIP: "picture-in-picture",
11675
11678
  INLINE: "inline",
11676
11679
  FULLSCREEN: "fullscreen"
@@ -11705,7 +11708,7 @@ var ct = {
11705
11708
  key: "afterCreate",
11706
11709
  value: function() {
11707
11710
  var e = this;
11708
- this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ct.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(pi, function() {
11711
+ this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ft.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(pi, function() {
11709
11712
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
11710
11713
  }));
11711
11714
  }
@@ -11742,7 +11745,7 @@ var ct = {
11742
11745
  i.emit(Vr, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
11743
11746
  }, this.onWebkitpresentationmodechanged = function(r) {
11744
11747
  var o = i.media.webkitPresentationMode;
11745
- 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);
11748
+ 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);
11746
11749
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), n.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
11747
11750
  }
11748
11751
  }, {
@@ -11819,7 +11822,7 @@ var ct = {
11819
11822
  key: "isPip",
11820
11823
  get: function() {
11821
11824
  var e, i = this.player;
11822
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ct.PIP;
11825
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ft.PIP;
11823
11826
  }
11824
11827
  }, {
11825
11828
  key: "isPIPAvailable",
@@ -12315,7 +12318,7 @@ var dg = /* @__PURE__ */ (function(a) {
12315
12318
  SIDE: "side",
12316
12319
  MIDDLE: "middle",
12317
12320
  DEFAULT: "default"
12318
- }, ft = {
12321
+ }, ht = {
12319
12322
  CLICK: "click",
12320
12323
  HOVER: "hover"
12321
12324
  };
@@ -12334,7 +12337,7 @@ var Ze = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12334
12337
  }), _(y(e), "switchActiveState", function(i) {
12335
12338
  i.stopPropagation();
12336
12339
  var r = e.config.toggleMode;
12337
- r === ft.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12340
+ r === ht.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12338
12341
  }), _(y(e), "onLeave", function(i) {
12339
12342
  i.stopPropagation(), e.emit("icon_mouseleave", {
12340
12343
  pluginName: e.pluginName
@@ -12360,7 +12363,7 @@ var Ze = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12360
12363
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
12361
12364
  }), Ze && this.on(ca, function() {
12362
12365
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
12363
- }), 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);
12366
+ }), 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);
12364
12367
  }
12365
12368
  }, {
12366
12369
  key: "initIcons",
@@ -12461,7 +12464,7 @@ var Ze = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12461
12464
  key: "destroy",
12462
12465
  value: function() {
12463
12466
  var e = this.config;
12464
- 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);
12467
+ 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);
12465
12468
  }
12466
12469
  }, {
12467
12470
  key: "render",
@@ -12489,7 +12492,7 @@ var Ze = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12489
12492
  hidePortrait: !0,
12490
12493
  isShowIcon: !1,
12491
12494
  isItemClickHide: !0,
12492
- toggleMode: ft.HOVER,
12495
+ toggleMode: ht.HOVER,
12493
12496
  heightLimit: !0
12494
12497
  };
12495
12498
  }
@@ -12995,7 +12998,7 @@ function Cg(a) {
12995
12998
  a.positionDots();
12996
12999
  });
12997
13000
  }
12998
- var ht = {
13001
+ var dt = {
12999
13002
  dragmove: "onProgressMove",
13000
13003
  dragstart: "onProgressDragStart",
13001
13004
  dragend: "onProgressDragEnd",
@@ -13075,8 +13078,8 @@ var ht = {
13075
13078
  key: "bindEvents",
13076
13079
  value: function() {
13077
13080
  var e = this, i = this.player.plugins.progress;
13078
- if (i && (Object.keys(ht).map(function(o) {
13079
- e[ht[o]] = e[ht[o]].bind(e), i.addCallBack(o, e[ht[o]]);
13081
+ if (i && (Object.keys(dt).map(function(o) {
13082
+ e[dt[o]] = e[dt[o]].bind(e), i.addCallBack(o, e[dt[o]]);
13080
13083
  }), z.device !== "mobile")) {
13081
13084
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
13082
13085
  var r = this.hook("previewClick", function() {
@@ -13234,8 +13237,8 @@ var ht = {
13234
13237
  key: "destroy",
13235
13238
  value: function() {
13236
13239
  var e = this, i = this.player.plugins.progress;
13237
- i && Object.keys(ht).map(function(r) {
13238
- i.removeCallBack(r, e[ht[r]]);
13240
+ i && Object.keys(dt).map(function(r) {
13241
+ i.removeCallBack(r, e[dt[r]]);
13239
13242
  }), 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);
13240
13243
  }
13241
13244
  }, {
@@ -13496,7 +13499,7 @@ var Tg = /* @__PURE__ */ (function(a) {
13496
13499
  };
13497
13500
  }
13498
13501
  }]), n;
13499
- })(K), dt = {
13502
+ })(K), gt = {
13500
13503
  REAL_TIME: "realtime",
13501
13504
  FIRST_FRAME: "firstframe",
13502
13505
  POSTER: "poster"
@@ -13538,7 +13541,7 @@ var Kt = null, xg = /* @__PURE__ */ (function(a) {
13538
13541
  }
13539
13542
  }), _(y(t), "start", function(o, u) {
13540
13543
  var l = t.player.video, c = Sg(), f = t.checkVideoIsSupport(l);
13541
- !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));
13544
+ !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));
13542
13545
  }), _(y(t), "stop", function() {
13543
13546
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
13544
13547
  }), t;
@@ -13557,14 +13560,14 @@ var Kt = null, xg = /* @__PURE__ */ (function(a) {
13557
13560
  x: 0,
13558
13561
  y: 0,
13559
13562
  pi: 0
13560
- }, 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(pi, function() {
13563
+ }, 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(pi, function() {
13561
13564
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
13562
- }), o !== dt.POSTER && (o !== dt.FIRST_FRAME && (this.on(nt, function() {
13565
+ }), o !== gt.POSTER && (o !== gt.FIRST_FRAME && (this.on(nt, function() {
13563
13566
  e.stop();
13564
13567
  }), this.on(ye, function() {
13565
13568
  var l = e.config.startInterval;
13566
13569
  e._checkIfCanStart() && e.start(0, l);
13567
- }), this.on(pt, function() {
13570
+ }), this.on(mt, function() {
13568
13571
  e.stop();
13569
13572
  })), this.on(Me, this.onLoadedData), this.on(la, function() {
13570
13573
  e._isLoaded = !1, e.stop();
@@ -13631,7 +13634,7 @@ var Kt = null, xg = /* @__PURE__ */ (function(a) {
13631
13634
  key: "_checkIfCanStart",
13632
13635
  value: function() {
13633
13636
  var e = this.config.mode;
13634
- return this._isLoaded && !this.player.paused && e !== dt.FIRST_FRAME && e !== dt.POSTER;
13637
+ return this._isLoaded && !this.player.paused && e !== gt.FIRST_FRAME && e !== gt.POSTER;
13635
13638
  }
13636
13639
  }, {
13637
13640
  key: "renderOnce",
@@ -14073,7 +14076,7 @@ var Ag = /* @__PURE__ */ (function(a) {
14073
14076
  };
14074
14077
  }
14075
14078
  }]), n;
14076
- })(K), gt = "cdn", $t = ["cdn"], Lg = /* @__PURE__ */ (function(a) {
14079
+ })(K), vt = "cdn", $t = ["cdn"], Lg = /* @__PURE__ */ (function(a) {
14077
14080
  M(n, a);
14078
14081
  var s = F(n);
14079
14082
  function n() {
@@ -14082,7 +14085,7 @@ var Ag = /* @__PURE__ */ (function(a) {
14082
14085
  for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
14083
14086
  i[r] = arguments[r];
14084
14087
  return t = s.call.apply(s, [this].concat(i)), _(y(t), "getSpeed", function() {
14085
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt;
14088
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt;
14086
14089
  if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
14087
14090
  return 0;
14088
14091
  var u = 0;
@@ -14096,7 +14099,7 @@ var Ag = /* @__PURE__ */ (function(a) {
14096
14099
  t.speedListCache[o] = [];
14097
14100
  });
14098
14101
  }), _(y(t), "_onRealSpeedChange", function(o) {
14099
- o.speed && t.appendList(o.speed, o.type || gt);
14102
+ o.speed && t.appendList(o.speed, o.type || vt);
14100
14103
  }), _(y(t), "testSpeed", function() {
14101
14104
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
14102
14105
  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();
@@ -14121,17 +14124,17 @@ var Ag = /* @__PURE__ */ (function(a) {
14121
14124
  }
14122
14125
  }
14123
14126
  }), _(y(t), "appendList", function(o) {
14124
- var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gt;
14127
+ var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : vt;
14125
14128
  if (!(!t.speedListCache || !t.speedListCache[u])) {
14126
14129
  var l = t.config.saveSpeedMax;
14127
14130
  t.speedListCache[u].length >= l && t.speedListCache[u].shift(), t.speedListCache[u].push(o);
14128
14131
  var c = y(t), f = c.player;
14129
- f && (u === gt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14132
+ f && (u === vt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14130
14133
  }
14131
14134
  }), _(y(t), "updateSpeed", function() {
14132
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt, u = t.getSpeed(o), l = y(t), c = l.player;
14135
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt, u = t.getSpeed(o), l = y(t), c = l.player;
14133
14136
  if (c)
14134
- if (o === gt)
14137
+ if (o === vt)
14135
14138
  (!c.avgSpeed || u !== c.avgSpeed) && (c.avgSpeed = u, c.emit(jr, {
14136
14139
  speed: u,
14137
14140
  realTimeSpeed: c.realTimeSpeed
@@ -14213,7 +14216,7 @@ var Ag = /* @__PURE__ */ (function(a) {
14213
14216
  var u = o.getVideoPlaybackQuality;
14214
14217
  u && (this.on(ye, function() {
14215
14218
  e._startTick();
14216
- }), this.on(pt, function() {
14219
+ }), this.on(mt, function() {
14217
14220
  e._stopTick();
14218
14221
  }), this.on(it, function() {
14219
14222
  e._stopTick();
@@ -14309,7 +14312,7 @@ var Ag = /* @__PURE__ */ (function(a) {
14309
14312
  }
14310
14313
  }]), n;
14311
14314
  })(K);
14312
- vt.use(Ig);
14315
+ pt.use(Ig);
14313
14316
  var Rg = /* @__PURE__ */ L(function a(s, n) {
14314
14317
  var t, e, i;
14315
14318
  A(this, a);
@@ -14342,7 +14345,7 @@ _(oe, "Errors", Qt);
14342
14345
  _(oe, "Events", td);
14343
14346
  _(oe, "Plugin", K);
14344
14347
  _(oe, "BasePlugin", We);
14345
- _(oe, "I18N", vt);
14348
+ _(oe, "I18N", pt);
14346
14349
  _(oe, "STATE_CLASS", w);
14347
14350
  _(oe, "InstManager", cl);
14348
14351
  _(oe, "PlayIcon", hl);
@@ -14380,7 +14383,7 @@ const Og = ["id"], Mg = /* @__PURE__ */ re({
14380
14383
  }, ["update:modelValue"]),
14381
14384
  setup(a, { emit: s }) {
14382
14385
  let n = null;
14383
- const t = a, { cLoadUrl: e } = bu(t), i = te(() => It(e.value, t.url)), r = {
14386
+ const t = a, { cLoadUrl: e } = bu(t), i = ee(() => It(e.value, t.url)), r = {
14384
14387
  width: "100%",
14385
14388
  height: "100%",
14386
14389
  // 是否自动播放
@@ -14398,7 +14401,7 @@ const Og = ["id"], Mg = /* @__PURE__ */ re({
14398
14401
  poster: "",
14399
14402
  lang: "zh-CN",
14400
14403
  screenShot: !0
14401
- }, o = te(() => ({
14404
+ }, o = ee(() => ({
14402
14405
  ...r,
14403
14406
  ...t.config
14404
14407
  })), u = s, l = Gr(a, "modelValue"), c = mu(), f = yu("image-viewer");
@@ -14597,7 +14600,7 @@ const Og = ["id"], Mg = /* @__PURE__ */ re({
14597
14600
  },
14598
14601
  emits: ["handPreview", "download", "close"],
14599
14602
  setup(a, { emit: s }) {
14600
- const n = a, t = te(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = bu(n), o = s, u = te(() => ({
14603
+ const n = a, t = ee(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = bu(n), o = s, u = ee(() => ({
14601
14604
  name: "name",
14602
14605
  url: "url",
14603
14606
  suffix: "suffix",
@@ -14623,7 +14626,7 @@ const Og = ["id"], Mg = /* @__PURE__ */ re({
14623
14626
  );
14624
14627
  }, v = (p) => {
14625
14628
  o("close", p);
14626
- }, g = te(() => Nr.isNumber(n.width) ? `${n.width}px` : n.width), m = te(() => n.list.map((p) => {
14629
+ }, g = ee(() => Nr.isNumber(n.width) ? `${n.width}px` : n.width), m = ee(() => n.list.map((p) => {
14627
14630
  var b;
14628
14631
  const k = p[u.value.name] || p.attachmentName;
14629
14632
  return {