mvframe 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vendor.js CHANGED
@@ -2,7 +2,7 @@ import { u as Ft } from "./util.js";
2
2
  import { d as Ht } from "./directive.js";
3
3
  import { s as dt, p as ft, a as Bt } from "./store-shared.js";
4
4
  import { createRouter as Rt, createWebHistory as Dt, useRoute as pt, useRouter as mt } from "vue-router";
5
- import { computed as O, openBlock as $, createElementBlock as L, mergeProps as Se, unref as a, Fragment as re, renderList as de, normalizeClass as W, createCommentVNode as P, createTextVNode as se, toDisplayString as V, renderSlot as Y, createElementVNode as c, reactive as Z, onUnmounted as Ee, watch as be, markRaw as Le, resolveComponent as H, createVNode as B, withCtx as A, createBlock as G, resolveDynamicComponent as ht, nextTick as $e, getCurrentInstance as Te, ref as le, onMounted as fe, normalizeStyle as Oe, defineComponent as gt, cloneVNode as et, h as tt, inject as Be, withModifiers as ot, defineAsyncComponent as Kt, normalizeProps as je, guardReactiveProps as Fe, createSlots as ke, useSlots as Pt, Transition as Ut, withKeys as Wt, createStaticVNode as Gt, useAttrs as We, isRef as Ge, onBeforeMount as yt, createApp as Jt, shallowRef as qt, withDirectives as Yt, vShow as Zt } from "vue";
5
+ import { computed as I, openBlock as $, createElementBlock as L, mergeProps as Se, unref as a, Fragment as re, renderList as de, normalizeClass as W, createCommentVNode as P, createTextVNode as se, toDisplayString as V, renderSlot as Y, createElementVNode as i, reactive as Z, onUnmounted as Ee, watch as be, markRaw as Le, resolveComponent as F, createVNode as H, withCtx as A, createBlock as G, resolveDynamicComponent as ht, nextTick as $e, getCurrentInstance as Te, ref as le, onMounted as fe, normalizeStyle as Oe, defineComponent as gt, cloneVNode as et, h as tt, inject as Be, withModifiers as ot, defineAsyncComponent as Kt, normalizeProps as je, guardReactiveProps as Fe, createSlots as ke, useSlots as Pt, Transition as Ut, withKeys as Wt, createStaticVNode as Gt, useAttrs as We, isRef as Ge, onBeforeMount as yt, createApp as Jt, shallowRef as qt, withDirectives as Yt, vShow as Zt } from "vue";
6
6
  /* empty css */
7
7
  import { deepEqual as nt, isInView as Xt, loadMvframeTheme as Qt, useOptions as bt, download as vt, useRemoteSummary as eo, formatSummaryCell as to, useLang as oo } from "./composition.js";
8
8
  import He from "vuedraggable";
@@ -246,13 +246,13 @@ const Ne = (l) => {
246
246
  l.beforeEach((n, s, f) => {
247
247
  Ne(!0), t && n.meta.admin ? o() ? f() : e && e(n, s, f) : f();
248
248
  }), l.afterEach((n, s, f) => {
249
- var y, v;
249
+ var g, b;
250
250
  if (f) {
251
251
  Ne(!1);
252
252
  return;
253
253
  }
254
254
  const _ = dt.tab(ft);
255
- document.title = ((y = n.meta) == null ? void 0 : y.title) || ((v = globalThis.$config) == null ? void 0 : v.name), _.saveTab(n), Ne(!1);
255
+ document.title = ((g = n.meta) == null ? void 0 : g.title) || ((b = globalThis.$config) == null ? void 0 : b.name), _.saveTab(n), Ne(!1);
256
256
  }), l.onError(() => {
257
257
  Ne(!1);
258
258
  });
@@ -309,14 +309,14 @@ const Ne = (l) => {
309
309
  },
310
310
  emits: ["update:modelValue", "change"],
311
311
  setup(l, { emit: t }) {
312
- const o = l, e = t, n = (v) => {
313
- const b = v.value;
314
- return b === o.modelValue && (b !== void 0 || o.modelValue !== void 0);
315
- }, s = (v) => {
316
- o.disabled || (e("update:modelValue", v.value), e("change", v.value));
317
- }, f = O(() => {
318
- const v = o.options, b = Array.isArray(v) ? v : [], T = o.valueKey, M = o.labelKey, p = o.iconKey;
319
- return b.filter((C) => C != null).map((C) => typeof C == "object" && !Array.isArray(C) ? {
312
+ const o = l, e = t, n = (b) => {
313
+ const y = b.value;
314
+ return y === o.modelValue && (y !== void 0 || o.modelValue !== void 0);
315
+ }, s = (b) => {
316
+ o.disabled || (e("update:modelValue", b.value), e("change", b.value));
317
+ }, f = I(() => {
318
+ const b = o.options, y = Array.isArray(b) ? b : [], T = o.valueKey, M = o.labelKey, p = o.iconKey;
319
+ return y.filter((C) => C != null).map((C) => typeof C == "object" && !Array.isArray(C) ? {
320
320
  value: C[T],
321
321
  label: C[M] ?? "",
322
322
  icon: C[p] || "",
@@ -327,10 +327,10 @@ const Ne = (l) => {
327
327
  icon: "",
328
328
  raw: C
329
329
  });
330
- }), _ = O(() => ({ small: "g4", default: "g6", large: "g8" })[o.size] ?? "g6"), y = O(() => o.size === "small" ? "sizeSmall" : o.size === "large" ? "sizeLarge" : "");
331
- return (v, b) => ($(), L("div", Se({
332
- class: ["MvcBtnGroup flexMode", [a(_), a(y), v.$attrs.class]]
333
- }, v.$attrs, { role: "group" }), [
330
+ }), _ = I(() => ({ small: "g4", default: "g6", large: "g8" })[o.size] ?? "g6"), g = I(() => o.size === "small" ? "sizeSmall" : o.size === "large" ? "sizeLarge" : "");
331
+ return (b, y) => ($(), L("div", Se({
332
+ class: ["MvcBtnGroup flexMode", [a(_), a(g), b.$attrs.class]]
333
+ }, b.$attrs, { role: "group" }), [
334
334
  ($(!0), L(re, null, de(a(f), (T) => ($(), L("button", {
335
335
  key: T.value,
336
336
  type: "button",
@@ -343,7 +343,7 @@ const Ne = (l) => {
343
343
  class: W([[T.icon, o.iconClass], "noShrink fs16"]),
344
344
  "aria-hidden": "true"
345
345
  }, null, 2)) : P("", !0),
346
- se(" " + V(v.$l(T.label)), 1)
346
+ se(" " + V(b.$l(T.label)), 1)
347
347
  ], 10, ko))), 128))
348
348
  ], 16));
349
349
  }
@@ -385,7 +385,7 @@ const Ne = (l) => {
385
385
  }, [
386
386
  o.$slots.header ? Y(o.$slots, "header", { key: 0 }, void 0, !0) : t.title ? ($(), L("span", Eo, V(t.title), 1)) : P("", !0)
387
387
  ], 2)) : P("", !0),
388
- c("div", {
388
+ i("div", {
389
389
  class: W(["body", t.bodyClass])
390
390
  }, [
391
391
  Y(o.$slots, "default", {}, void 0, !0)
@@ -443,23 +443,23 @@ const Ne = (l) => {
443
443
  s("update:current", ""), n.mounted = !1, x.value ? n.drawerInfo = e() : $e(() => {
444
444
  delete n.drawerInfo.cpt;
445
445
  });
446
- }, y = () => {
446
+ }, g = () => {
447
447
  n.drawerInfo.visible && (s("update:current", ""), n.drawerInfo.visible = !1);
448
- }, v = () => {
448
+ }, b = () => {
449
449
  n.drawerInfo.cpt = n.cpt;
450
- }, b = (w) => {
450
+ }, y = (w) => {
451
451
  n.dragMode = !0, document.addEventListener("mousemove", T), document.addEventListener("mouseup", M);
452
452
  }, T = (w) => {
453
- var r, u;
453
+ var r, d;
454
454
  if (w.x > 80) {
455
- const k = (((u = (r = globalThis.$config) == null ? void 0 : r.options) == null ? void 0 : u.innerWidth) ?? window.innerWidth) - w.x;
455
+ const k = (((d = (r = globalThis.$config) == null ? void 0 : r.options) == null ? void 0 : d.innerWidth) ?? window.innerWidth) - w.x;
456
456
  k > 480 && (n.drawerInfo.size = k);
457
457
  }
458
458
  }, M = () => {
459
459
  n.dragMode = !1, p();
460
460
  }, p = () => {
461
461
  document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", M);
462
- }, C = O(() => !!n.drawerInfo.title), x = O(() => !o.keepalive);
462
+ }, C = I(() => !!n.drawerInfo.title), x = I(() => !o.keepalive);
463
463
  return Ee(() => {
464
464
  p();
465
465
  }), be(
@@ -467,20 +467,20 @@ const Ne = (l) => {
467
467
  (w) => {
468
468
  if (o.drawer.length)
469
469
  if (window.$getType(w) === "Number") {
470
- const r = o.drawer[w], u = {
470
+ const r = o.drawer[w], d = {
471
471
  ...r,
472
472
  size: r.size || 640,
473
473
  direction: r.direction || "rtl",
474
474
  visible: !0
475
475
  };
476
- u.cpt ? (n.cpt = Le(u.cpt), delete u.cpt) : (n.cpt = null, f()), n.drawerInfo = u;
476
+ d.cpt ? (n.cpt = Le(d.cpt), delete d.cpt) : (n.cpt = null, f()), n.drawerInfo = d;
477
477
  } else
478
- y();
478
+ g();
479
479
  }
480
480
  ), (w, r) => {
481
- const u = H("Loading"), i = H("el-drawer");
481
+ const d = F("Loading"), c = F("el-drawer");
482
482
  return $(), L("div", Io, [
483
- B(i, {
483
+ H(c, {
484
484
  modelValue: a(n).drawerInfo.visible,
485
485
  "onUpdate:modelValue": r[0] || (r[0] = (k) => a(n).drawerInfo.visible = k),
486
486
  title: w.$l(a(n).drawerInfo.title),
@@ -490,30 +490,30 @@ const Ne = (l) => {
490
490
  direction: a(n).drawerInfo.direction,
491
491
  "destroy-on-close": a(x),
492
492
  onClosed: _,
493
- onOpened: v,
493
+ onOpened: b,
494
494
  class: W(a(n).dragMode && "notransition noevent noselect")
495
495
  }, {
496
496
  default: A(() => [
497
- c("div", jo, [
498
- c("div", {
497
+ i("div", jo, [
498
+ i("div", {
499
499
  class: W(["dragHandle", a(n).dragMode && "active"]),
500
- onMousedown: b
500
+ onMousedown: y
501
501
  }, [...r[1] || (r[1] = [
502
- c("i", { class: "imicon im-handle fs12" }, null, -1)
502
+ i("i", { class: "imicon im-handle fs12" }, null, -1)
503
503
  ])], 34)
504
504
  ]),
505
505
  a(C) ? P("", !0) : ($(), L("div", zo, [
506
- c("i", {
506
+ i("i", {
507
507
  class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
508
- onClick: y
508
+ onClick: g
509
509
  })
510
510
  ])),
511
- B(u, {
511
+ H(d, {
512
512
  loading: !a(n).mounted
513
513
  }, null, 8, ["loading"]),
514
514
  w.$slots.default ? Y(w.$slots, "default", { key: 1 }, void 0, !0) : ($(), G(ht(a(n).drawerInfo.cpt), Se({ key: 2 }, w.$attrs, {
515
515
  params: a(n).drawerInfo.params,
516
- onClose: y,
516
+ onClose: g,
517
517
  onMounted: f
518
518
  }), null, 16, ["params"]))
519
519
  ]),
@@ -591,7 +591,7 @@ const Ne = (l) => {
591
591
  });
592
592
  const _ = () => {
593
593
  f("close"), f("cancel");
594
- }, y = () => {
594
+ }, g = () => {
595
595
  f("submit");
596
596
  };
597
597
  t({
@@ -601,17 +601,17 @@ const Ne = (l) => {
601
601
  (p = s.value) == null || p.setScrollTop(M);
602
602
  }
603
603
  });
604
- const b = O(() => [e.loading && "noevent", n.$attrs.class]), T = O(() => ({
604
+ const y = I(() => [e.loading && "noevent", n.$attrs.class]), T = I(() => ({
605
605
  height: `calc(100vh - ${3.5}rem - ${e.nofooter ? 0 : 4}rem - ${e.minusHeight / 16}rem)`
606
606
  }));
607
607
  return (M, p) => {
608
- const C = H("Loading"), x = H("el-scrollbar"), w = H("el-button");
608
+ const C = F("Loading"), x = F("el-scrollbar"), w = F("el-button");
609
609
  return $(), L(re, null, [
610
- c("div", {
611
- class: W(["MvcDrawerBody VAfter", a(b)]),
610
+ i("div", {
611
+ class: W(["MvcDrawerBody VAfter", a(y)]),
612
612
  style: Oe(a(T))
613
613
  }, [
614
- B(C, {
614
+ H(C, {
615
615
  loading: e.loading,
616
616
  txt: e.loadingTxt
617
617
  }, null, 8, ["loading", "txt"]),
@@ -639,12 +639,12 @@ const Ne = (l) => {
639
639
  onClick: _
640
640
  }, {
641
641
  icon: A(() => [
642
- c("i", {
642
+ i("i", {
643
643
  class: W(["imicon", e.cancelIcon])
644
644
  }, null, 2)
645
645
  ]),
646
646
  default: A(() => [
647
- c("span", Bo, V(M.$l(e.cancelTxt)), 1)
647
+ i("span", Bo, V(M.$l(e.cancelTxt)), 1)
648
648
  ]),
649
649
  _: 1
650
650
  })) : P("", !0),
@@ -653,15 +653,15 @@ const Ne = (l) => {
653
653
  type: "primary",
654
654
  size: "large",
655
655
  loading: e.loading,
656
- onClick: y
656
+ onClick: g
657
657
  }, {
658
658
  icon: A(() => [
659
- c("i", {
659
+ i("i", {
660
660
  class: W(["imicon", e.confirmIcon])
661
661
  }, null, 2)
662
662
  ]),
663
663
  default: A(() => [
664
- c("span", Ro, V(M.$l(e.confirmTxt)), 1)
664
+ i("span", Ro, V(M.$l(e.confirmTxt)), 1)
665
665
  ]),
666
666
  _: 1
667
667
  }, 8, ["loading"])) : P("", !0),
@@ -698,15 +698,15 @@ const Wo = gt({
698
698
  setup(l, t) {
699
699
  function o(n) {
700
700
  if (!Array.isArray(n)) return [];
701
- const s = n.filter((v) => v && v.children !== "v-if"), f = s.length !== n.length, _ = s.map((v) => e(v));
702
- return f || _.some((v, b) => v !== s[b]) ? _ : n;
701
+ const s = n.filter((b) => b && b.children !== "v-if"), f = s.length !== n.length, _ = s.map((b) => e(b));
702
+ return f || _.some((b, y) => b !== s[y]) ? _ : n;
703
703
  }
704
704
  function e(n) {
705
- var _, y, v, b;
705
+ var _, g, b, y;
706
706
  if (!n) return n;
707
707
  const s = n.children, f = window.$getType(s);
708
- if (((_ = n.type) == null ? void 0 : _.name) === "ElFormItem" && ((y = n.props) == null ? void 0 : y.label) != null) {
709
- const T = ((b = (v = n.props.label).$l) == null ? void 0 : b.call(v)) || n.props.label;
708
+ if (((_ = n.type) == null ? void 0 : _.name) === "ElFormItem" && ((g = n.props) == null ? void 0 : g.label) != null) {
709
+ const T = ((y = (b = n.props.label).$l) == null ? void 0 : y.call(b)) || n.props.label;
710
710
  if (f === "Array") {
711
711
  const M = o(s);
712
712
  return st(M, s) ? et(n, { label: T }) : tt(n.type, { ...n.props || {}, label: T }, M);
@@ -747,33 +747,33 @@ const Wo = gt({
747
747
  const e = l, n = Z({
748
748
  form: {}
749
749
  }), { proxy: s } = Te(), f = o, _ = async () => {
750
- var b;
750
+ var y;
751
751
  try {
752
- return (b = s.$refs) != null && b.form ? (await s.$refs.form.validate(), y()) : !1;
752
+ return (y = s.$refs) != null && y.form ? (await s.$refs.form.validate(), g()) : !1;
753
753
  } catch {
754
754
  return !1;
755
755
  }
756
- }, y = () => n.form, v = O(() => {
757
- const b = {};
756
+ }, g = () => n.form, b = I(() => {
757
+ const y = {};
758
758
  for (let T in e.rules)
759
- b[T] = e.rules[T].map((M) => ({
759
+ y[T] = e.rules[T].map((M) => ({
760
760
  ...M,
761
761
  ...M.message && { message: window.$l(M.message) }
762
762
  }));
763
- return b;
763
+ return y;
764
764
  });
765
765
  return be(
766
766
  () => n.form,
767
- (b) => {
768
- b && !nt(b, e.modelValue) && f("update:modelValue", b);
767
+ (y) => {
768
+ y && !nt(y, e.modelValue) && f("update:modelValue", y);
769
769
  },
770
770
  {
771
771
  deep: !0
772
772
  }
773
773
  ), be(
774
774
  () => e.modelValue,
775
- (b) => {
776
- b && !nt(b, n.form) && (n.form = b);
775
+ (y) => {
776
+ y && !nt(y, n.form) && (n.form = y);
777
777
  },
778
778
  {
779
779
  immediate: !0,
@@ -781,21 +781,21 @@ const Wo = gt({
781
781
  }
782
782
  ), t({
783
783
  validate: _
784
- }), (b, T) => {
785
- const M = H("el-form");
784
+ }), (y, T) => {
785
+ const M = F("el-form");
786
786
  return $(), L("div", Go, [
787
- B(M, {
787
+ H(M, {
788
788
  ref: "form",
789
789
  model: a(n).form,
790
- rules: a(v),
790
+ rules: a(b),
791
791
  size: e.size,
792
792
  "validate-on-rule-change": !1,
793
793
  "label-position": "top"
794
794
  }, {
795
795
  default: A(() => [
796
- B(a(Wo), null, {
796
+ H(a(Wo), null, {
797
797
  default: A(() => [
798
- Y(b.$slots, "default")
798
+ Y(y.$slots, "default")
799
799
  ]),
800
800
  _: 3
801
801
  })
@@ -819,137 +819,137 @@ const Wo = gt({
819
819
  pageScrolled: !1
820
820
  });
821
821
  let o = null, e = null;
822
- const n = Be("store"), s = n.tab(), f = n.rmenu(), _ = pt(), y = mt(), { proxy: v } = Te();
822
+ const n = Be("store"), s = n.tab(), f = n.rmenu(), _ = pt(), g = mt(), { proxy: b } = Te();
823
823
  fe(() => {
824
- b(), p();
824
+ y(), p();
825
825
  });
826
- const b = () => {
827
- v.$el.addEventListener("scroll", x);
828
- }, T = (g) => {
829
- let S = g == null ? void 0 : g.parentElement;
826
+ const y = () => {
827
+ b.$el.addEventListener("scroll", x);
828
+ }, T = (h) => {
829
+ let S = h == null ? void 0 : h.parentElement;
830
830
  for (; S && S !== document.body; ) {
831
- const { overflowY: I, overflow: z } = getComputedStyle(S), F = I || z;
832
- if ((F === "auto" || F === "scroll" || F === "overlay") && S.scrollHeight > S.clientHeight)
831
+ const { overflowY: O, overflow: B } = getComputedStyle(S), N = O || B;
832
+ if ((N === "auto" || N === "scroll" || N === "overlay") && S.scrollHeight > S.clientHeight)
833
833
  return S;
834
834
  S = S.parentElement;
835
835
  }
836
836
  return null;
837
837
  }, M = () => {
838
- const g = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, S = o ? o.scrollTop : 0;
839
- t.pageScrolled = g > 0 || S > 0;
838
+ const h = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, S = o ? o.scrollTop : 0;
839
+ t.pageScrolled = h > 0 || S > 0;
840
840
  }, p = () => {
841
- o = T(v.$el);
842
- const g = () => {
841
+ o = T(b.$el);
842
+ const h = () => {
843
843
  M();
844
844
  };
845
- window.addEventListener("scroll", g, { passive: !0 }), o && o.addEventListener("scroll", g, { passive: !0 }), M(), e = () => {
846
- window.removeEventListener("scroll", g), o && o.removeEventListener("scroll", g), o = null;
845
+ window.addEventListener("scroll", h, { passive: !0 }), o && o.addEventListener("scroll", h, { passive: !0 }), M(), e = () => {
846
+ window.removeEventListener("scroll", h), o && o.removeEventListener("scroll", h), o = null;
847
847
  };
848
848
  }, C = () => {
849
- const g = localStorage.getItem("tabsScroll");
850
- g && (v.$el.scrollLeft = Number(g));
851
- }, x = (g) => {
849
+ const h = localStorage.getItem("tabsScroll");
850
+ h && (b.$el.scrollLeft = Number(h));
851
+ }, x = (h) => {
852
852
  let S = null;
853
853
  S !== null && clearTimeout(S), S = setTimeout(function() {
854
- const { scrollLeft: I } = g.target;
855
- localStorage.setItem("tabsScroll", I);
854
+ const { scrollLeft: O } = h.target;
855
+ localStorage.setItem("tabsScroll", O);
856
856
  }, 100);
857
857
  }, w = () => {
858
858
  $e(() => {
859
- const g = v.$el.querySelector(`#tab_${d.value}`);
860
- Xt(v.$el, g) ? C() : v.$el.scrollLeft = (g == null ? void 0 : g.offsetLeft) - 16;
859
+ const h = b.$el.querySelector(`#tab_${u.value}`);
860
+ Xt(b.$el, h) ? C() : b.$el.scrollLeft = (h == null ? void 0 : h.offsetLeft) - 16;
861
861
  });
862
- }, r = (g, S, I) => {
862
+ }, r = (h, S, O) => {
863
863
  f.saveData("type", "tabManager"), f.saveData("options", [
864
864
  {
865
865
  label: "Close",
866
866
  value: "close",
867
867
  icon: "im-close",
868
- disabled: h.value.length === 1,
868
+ disabled: m.value.length === 1,
869
869
  cb: () => {
870
- s.closeTab(S, I);
870
+ s.closeTab(S, O);
871
871
  }
872
872
  },
873
873
  {
874
874
  label: "Close Right",
875
875
  value: "closeRight",
876
876
  icon: "im-right",
877
- disabled: I === h.value.length - 1,
877
+ disabled: O === m.value.length - 1,
878
878
  cb: () => {
879
- s.closeRightTab(S, I);
879
+ s.closeRightTab(S, O);
880
880
  }
881
881
  },
882
882
  {
883
883
  label: "Close Left",
884
884
  value: "closeLeft",
885
885
  icon: "im-left",
886
- disabled: I === 0,
886
+ disabled: O === 0,
887
887
  cb: () => {
888
- s.closeLeftTab(S, I);
888
+ s.closeLeftTab(S, O);
889
889
  }
890
890
  },
891
891
  {
892
892
  label: "Close Other",
893
893
  value: "closeOther",
894
894
  icon: "im-left",
895
- disabled: h.value.length === 1,
895
+ disabled: m.value.length === 1,
896
896
  cb: () => {
897
- s.closeOtherTab(S, I);
897
+ s.closeOtherTab(S, O);
898
898
  }
899
899
  }
900
- ]), f.show({ el: g.target });
901
- }, u = (g) => {
902
- g.name !== d.value && y.push({ name: g.name });
903
- }, i = (g) => {
904
- console.info(g.name, d.value), g.name === d.value ? y.replace({ name: g.name, query: { t: +/* @__PURE__ */ new Date() } }) : u(g);
905
- }, k = (g, S) => {
906
- s.closeTab(g, S);
907
- }, h = O(() => s.tabs), d = O(() => _.name), m = O(() => h.value.length);
900
+ ]), f.show({ el: h.target });
901
+ }, d = (h) => {
902
+ h.name !== u.value && g.push({ name: h.name });
903
+ }, c = (h) => {
904
+ console.info(h.name, u.value), h.name === u.value ? g.replace({ name: h.name, query: { t: +/* @__PURE__ */ new Date() } }) : d(h);
905
+ }, k = (h, S) => {
906
+ s.closeTab(h, S);
907
+ }, m = I(() => s.tabs), u = I(() => _.name), v = I(() => m.value.length);
908
908
  return be(
909
- () => m.value,
910
- (g) => {
911
- g && (localStorage.setItem("tabs", JSON.stringify(h.value)), w());
909
+ () => v.value,
910
+ (h) => {
911
+ h && (localStorage.setItem("tabs", JSON.stringify(m.value)), w());
912
912
  },
913
913
  {
914
914
  immediate: !0
915
915
  }
916
916
  ), be(
917
- () => d.value,
917
+ () => u.value,
918
918
  () => {
919
919
  $e(() => {
920
920
  M();
921
921
  });
922
922
  }
923
923
  ), Ee(() => {
924
- v.$el.removeEventListener("scroll", x), e == null || e(), e = null;
925
- }), (g, S) => ($(), L("div", Yo, [
926
- c("div", Zo, [
927
- ($(!0), L(re, null, de(a(h), (I, z) => ($(), L("div", {
928
- key: I.name,
929
- id: `tab_${I.name}`,
924
+ b.$el.removeEventListener("scroll", x), e == null || e(), e = null;
925
+ }), (h, S) => ($(), L("div", Yo, [
926
+ i("div", Zo, [
927
+ ($(!0), L(re, null, de(a(m), (O, B) => ($(), L("div", {
928
+ key: O.name,
929
+ id: `tab_${O.name}`,
930
930
  class: W(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
931
- I.name === a(d) && "active",
932
- a(h).length > 1 && "hoverItem"
931
+ O.name === a(u) && "active",
932
+ a(m).length > 1 && "hoverItem"
933
933
  ]]),
934
- onContextmenu: ot((F) => r(F, I, z), ["prevent", "stop"]),
935
- onClick: (F) => u(I),
936
- onDblclick: (F) => i(I)
934
+ onContextmenu: ot((N) => r(N, O, B), ["prevent", "stop"]),
935
+ onClick: (N) => d(O),
936
+ onDblclick: (N) => c(O)
937
937
  }, [
938
- I.icon ? ($(), L("i", {
938
+ O.icon ? ($(), L("i", {
939
939
  key: 0,
940
- class: W(["imicon", I.icon])
940
+ class: W(["imicon", O.icon])
941
941
  }, null, 2)) : P("", !0),
942
- se(" " + V(I.meta.title) + " ", 1),
943
- c("div", {
942
+ se(" " + V(O.meta.title) + " ", 1),
943
+ i("div", {
944
944
  class: "abs r flexMode hc vc w20 h20",
945
- onClick: ot((F) => k(I, z), ["stop"])
945
+ onClick: ot((N) => k(O, B), ["stop"])
946
946
  }, [...S[0] || (S[0] = [
947
- c("span", null, "✕", -1)
947
+ i("span", null, "✕", -1)
948
948
  ])], 8, Qo)
949
949
  ], 42, Xo))), 128)),
950
- S[1] || (S[1] = c("div", { class: "w16 h16 noShrink" }, null, -1))
950
+ S[1] || (S[1] = i("div", { class: "w16 h16 noShrink" }, null, -1))
951
951
  ]),
952
- c("div", {
952
+ i("div", {
953
953
  class: W(["tabShadow", a(t).pageScrolled && "visible"])
954
954
  }, null, 2)
955
955
  ]));
@@ -981,41 +981,41 @@ const Wo = gt({
981
981
  collapse: !1
982
982
  }), n = pt(), s = mt(), f = Be("store"), _ = f.launch();
983
983
  fe(() => {
984
- console.info(_.userinfo), v();
984
+ console.info(_.userinfo), b();
985
985
  });
986
- const y = t, v = () => {
987
- const i = localStorage.getItem("collapse");
988
- i && (e.collapse = JSON.parse(i)), document.addEventListener("keydown", T);
989
- }, b = (i) => {
990
- e.collapse === !0 ? e.collapse = !1 : e.collapse === !1 ? e.collapse = !0 : e.collapse = i, localStorage.setItem("collapse", e.collapse), y("on-collapse-change", e.collapse);
991
- }, T = (i) => {
992
- i.shiftKey && (i.metaKey || i.ctrlKey) && (i.keyCode === 37 ? b(!0) : i.keyCode === 39 && b(!1));
993
- }, M = (i) => {
986
+ const g = t, b = () => {
987
+ const c = localStorage.getItem("collapse");
988
+ c && (e.collapse = JSON.parse(c)), document.addEventListener("keydown", T);
989
+ }, y = (c) => {
990
+ e.collapse === !0 ? e.collapse = !1 : e.collapse === !1 ? e.collapse = !0 : e.collapse = c, localStorage.setItem("collapse", e.collapse), g("on-collapse-change", e.collapse);
991
+ }, T = (c) => {
992
+ c.shiftKey && (c.metaKey || c.ctrlKey) && (c.keyCode === 37 ? y(!0) : c.keyCode === 39 && y(!1));
993
+ }, M = (c) => {
994
994
  var k;
995
- return (k = i == null ? void 0 : i.children) != null && k.length ? M(i.children[0]) : i;
996
- }, p = (i) => {
995
+ return (k = c == null ? void 0 : c.children) != null && k.length ? M(c.children[0]) : c;
996
+ }, p = (c) => {
997
997
  var k;
998
- return ((k = i == null ? void 0 : i.children) == null ? void 0 : k.some((h) => h.name === n.name || p(h))) ?? !1;
999
- }, C = (i) => {
1000
- const k = M(i);
998
+ return ((k = c == null ? void 0 : c.children) == null ? void 0 : k.some((m) => m.name === n.name || p(m))) ?? !1;
999
+ }, C = (c) => {
1000
+ const k = M(c);
1001
1001
  k != null && k.name && s.push({ name: k.name });
1002
1002
  }, x = () => {
1003
- const i = { ...n.query, _: Date.now() }, k = n.name ? { name: n.name, params: n.params, query: i } : { path: n.path, query: i };
1003
+ const c = { ...n.query, _: Date.now() }, k = n.name ? { name: n.name, params: n.params, query: c } : { path: n.path, query: c };
1004
1004
  s.replace(k).catch(() => {
1005
1005
  });
1006
1006
  }, w = () => {
1007
- var i;
1008
- return ((i = globalThis.$config) == null ? void 0 : i.loginPageName) || "Entry";
1007
+ var c;
1008
+ return ((c = globalThis.$config) == null ? void 0 : c.loginPageName) || "Entry";
1009
1009
  }, r = () => {
1010
- const i = () => {
1011
- var h, d;
1010
+ const c = () => {
1011
+ var m, u;
1012
1012
  try {
1013
- const m = f.tab();
1014
- (h = m.closeAllTab) == null || h.call(m), (d = m.$patch) == null || d.call(m, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
1013
+ const v = f.tab();
1014
+ (m = v.closeAllTab) == null || m.call(v), (u = v.$patch) == null || u.call(v, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
1015
1015
  } catch {
1016
1016
  }
1017
1017
  }, k = () => {
1018
- if (i(), typeof _.clearLogin == "function")
1018
+ if (c(), typeof _.clearLogin == "function")
1019
1019
  _.clearLogin();
1020
1020
  else {
1021
1021
  try {
@@ -1033,96 +1033,93 @@ const Wo = gt({
1033
1033
  }
1034
1034
  k();
1035
1035
  });
1036
- }, u = O(() => e.collapse ? "im-verticalleft" : "im-verticalright");
1036
+ }, d = I(() => e.collapse ? "im-verticalleft" : "im-verticalright");
1037
1037
  return Ee(() => {
1038
1038
  document.removeEventListener("keydown", T);
1039
- }), (i, k) => {
1040
- const h = H("Icon"), d = H("el-popconfirm");
1039
+ }), (c, k) => {
1040
+ const m = F("el-popconfirm");
1041
1041
  return $(), L("div", {
1042
1042
  class: W(["FrameMenu sticky vh100 noselect noShrink", a(e).collapse && "collapse"])
1043
1043
  }, [
1044
- c("div", on, [
1045
- c("div", nn, [
1046
- Y(i.$slots, "logo", {}, void 0, !0)
1044
+ i("div", on, [
1045
+ i("div", nn, [
1046
+ Y(c.$slots, "logo", {}, void 0, !0)
1047
1047
  ]),
1048
- c("div", ln, [
1049
- Y(i.$slots, "logomini", {}, void 0, !0)
1048
+ i("div", ln, [
1049
+ Y(c.$slots, "logomini", {}, void 0, !0)
1050
1050
  ]),
1051
- c("div", {
1051
+ i("div", {
1052
1052
  class: "collapseArea hover abs",
1053
- onClick: k[0] || (k[0] = (m) => b(a(e).collapse))
1053
+ onClick: k[0] || (k[0] = (u) => y(a(e).collapse))
1054
1054
  }, [
1055
- c("i", {
1056
- class: W(["imicon fs20", a(u)])
1055
+ i("i", {
1056
+ class: W(["imicon fs20", a(d)])
1057
1057
  }, null, 2)
1058
1058
  ])
1059
1059
  ]),
1060
- c("div", sn, [
1061
- ($(!0), L(re, null, de(o.routes, (m, g) => {
1062
- var S, I;
1060
+ i("div", sn, [
1061
+ ($(!0), L(re, null, de(o.routes, (u, v) => {
1062
+ var h, S;
1063
1063
  return $(), L("div", {
1064
- key: g,
1064
+ key: v,
1065
1065
  class: "menuItemWrap mb2"
1066
1066
  }, [
1067
- c("div", {
1067
+ i("div", {
1068
1068
  class: W(["menuItem flexMode vc g8 radius4 p0-16", [
1069
- a(n).name === m.name && "active bg-primary",
1069
+ a(n).name === u.name && "active bg-primary",
1070
1070
  a(e).collapse && "hc",
1071
- a(e).collapse && p(m) && "activeChild"
1071
+ a(e).collapse && p(u) && "activeChild"
1072
1072
  ]]),
1073
- onClick: (z) => C(m),
1073
+ onClick: (O) => C(u),
1074
1074
  onDblclick: x
1075
1075
  }, [
1076
- c("div", rn, [
1077
- m.meta.icon ? ($(), L("i", {
1076
+ i("div", rn, [
1077
+ u.meta.icon ? ($(), L("i", {
1078
1078
  key: 0,
1079
- class: W([o.iconClass, m.meta.icon])
1080
- }, null, 2)) : ($(), L("span", cn, V(((S = m.meta.title) == null ? void 0 : S.substr(0, 1)) || "U"), 1))
1079
+ class: W([o.iconClass, u.meta.icon])
1080
+ }, null, 2)) : ($(), L("span", cn, V(((h = u.meta.title) == null ? void 0 : h.substr(0, 1)) || "U"), 1))
1081
1081
  ]),
1082
- c("div", {
1082
+ i("div", {
1083
1083
  class: W(["itemTitle txt-nowrap fs14", [
1084
- a(n).name === m.name && "active",
1084
+ a(n).name === u.name && "active",
1085
1085
  a(e).collapse && "hide"
1086
1086
  ]])
1087
- }, V(m.meta.title), 3)
1087
+ }, V(u.meta.title), 3)
1088
1088
  ], 42, an),
1089
- (I = m.children) != null && I.length ? ($(), L("div", un, [
1090
- ($(!0), L(re, null, de(m.children, (z, F) => ($(), L("div", {
1091
- key: F,
1092
- class: W(["childrenItem flexMode vc g8 radius4 h40 p0-16", a(n).name === z.name && "active bg-primary"]),
1093
- onClick: (R) => C(z),
1089
+ (S = u.children) != null && S.length ? ($(), L("div", un, [
1090
+ ($(!0), L(re, null, de(u.children, (O, B) => ($(), L("div", {
1091
+ key: B,
1092
+ class: W(["childrenItem flexMode vc g8 radius4 h40 p0-16", a(n).name === O.name && "active bg-primary"]),
1093
+ onClick: (N) => C(O),
1094
1094
  onDblclick: x
1095
1095
  }, [
1096
- c("div", fn, [
1097
- z.meta.icon ? ($(), L("i", {
1096
+ i("div", fn, [
1097
+ O.meta.icon ? ($(), L("i", {
1098
1098
  key: 0,
1099
- class: W([o.iconClass, z.meta.icon])
1099
+ class: W([o.iconClass, O.meta.icon])
1100
1100
  }, null, 2)) : P("", !0)
1101
1101
  ]),
1102
- c("div", {
1102
+ i("div", {
1103
1103
  class: W(["itemTitle txt-nowrap fs14", [
1104
- a(n).name === z.name && "active",
1104
+ a(n).name === O.name && "active",
1105
1105
  a(e).collapse && "hide"
1106
1106
  ]])
1107
- }, V(z.meta.title), 3)
1107
+ }, V(O.meta.title), 3)
1108
1108
  ], 42, dn))), 128))
1109
1109
  ])) : P("", !0)
1110
1110
  ]);
1111
1111
  }), 128))
1112
1112
  ]),
1113
- c("div", pn, [
1114
- B(d, {
1113
+ i("div", pn, [
1114
+ H(m, {
1115
1115
  placement: "top",
1116
- title: i.$l("Log out?"),
1116
+ title: c.$l("Log out?"),
1117
1117
  onConfirm: r
1118
1118
  }, {
1119
1119
  reference: A(() => [
1120
- c("div", mn, [
1121
- B(h, {
1122
- name: "power",
1123
- size: "24"
1124
- }),
1125
- c("span", {
1120
+ i("div", mn, [
1121
+ k[1] || (k[1] = i("i", { class: "imicon im-power fs24" }, null, -1)),
1122
+ i("span", {
1126
1123
  class: W(["fs14", a(e).collapse && "hide"])
1127
1124
  }, V(a(_).userinfo[o.usernameKey]), 3)
1128
1125
  ])
@@ -1133,17 +1130,17 @@ const Wo = gt({
1133
1130
  ], 2);
1134
1131
  };
1135
1132
  }
1136
- }), gn = /* @__PURE__ */ ie(hn, [["__scopeId", "data-v-fd4f2416"]]), yn = { class: "FrameFooter" }, bn = { class: "txt-tip" }, vn = { class: "txt-primary" }, _n = /* @__PURE__ */ Object.assign({
1133
+ }), gn = /* @__PURE__ */ ie(hn, [["__scopeId", "data-v-512997f8"]]), yn = { class: "FrameFooter" }, bn = { class: "txt-tip" }, vn = { class: "txt-primary" }, _n = /* @__PURE__ */ Object.assign({
1137
1134
  name: "FrameFooter",
1138
1135
  inheritAttrs: !1
1139
1136
  }, {
1140
1137
  __name: "Footer",
1141
1138
  setup(l) {
1142
1139
  Z({});
1143
- const t = O(() => globalThis.$config);
1140
+ const t = I(() => globalThis.$config);
1144
1141
  return (o, e) => ($(), L("div", yn, [
1145
- c("span", bn, V(a(t).copyright), 1),
1146
- c("span", vn, V(a(t).author), 1)
1142
+ i("span", bn, V(a(t).copyright), 1),
1143
+ i("span", vn, V(a(t).author), 1)
1147
1144
  ]));
1148
1145
  }
1149
1146
  }), wn = /* @__PURE__ */ ie(_n, [["__scopeId", "data-v-c3ba0162"]]), Cn = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, Sn = /* @__PURE__ */ Object.assign({
@@ -1166,22 +1163,22 @@ const Wo = gt({
1166
1163
  o.current = 0;
1167
1164
  };
1168
1165
  return (n, s) => {
1169
- const f = H("Icon"), _ = H("Drawer");
1166
+ const f = F("Icon"), _ = F("Drawer");
1170
1167
  return $(), L(re, null, [
1171
- c("div", Cn, [
1172
- c("div", {
1168
+ i("div", Cn, [
1169
+ i("div", {
1173
1170
  class: "hover w24 h24 flexMode hc vc radius",
1174
1171
  onClick: e
1175
1172
  }, [
1176
- B(f, {
1173
+ H(f, {
1177
1174
  name: "setting",
1178
1175
  size: "24"
1179
1176
  })
1180
1177
  ])
1181
1178
  ]),
1182
- B(_, {
1179
+ H(_, {
1183
1180
  current: a(o).current,
1184
- "onUpdate:current": s[0] || (s[0] = (y) => a(o).current = y),
1181
+ "onUpdate:current": s[0] || (s[0] = (g) => a(o).current = g),
1185
1182
  drawer: a(o).list
1186
1183
  }, null, 8, ["current", "drawer"])
1187
1184
  ], 64);
@@ -1224,42 +1221,42 @@ const Wo = gt({
1224
1221
  const s = () => {
1225
1222
  Qt(), f(), bt();
1226
1223
  }, f = () => {
1227
- var y, v, b, T, M, p;
1228
- if ((v = (y = globalThis.$config) == null ? void 0 : y.iconfont) != null && v.url) {
1224
+ var g, b, y, T, M, p;
1225
+ if ((b = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && b.url) {
1229
1226
  const C = document.createElement("script");
1230
- if (C.id = "iconfont", C.type = "text/javascript", C.src = (T = (b = globalThis.$config) == null ? void 0 : b.iconfont) == null ? void 0 : T.url, document.getElementById("iconfont"))
1227
+ if (C.id = "iconfont", C.type = "text/javascript", C.src = (T = (y = globalThis.$config) == null ? void 0 : y.iconfont) == null ? void 0 : T.url, document.getElementById("iconfont"))
1231
1228
  return;
1232
1229
  document.head.appendChild(C), (p = (M = globalThis.$config) == null ? void 0 : M.iconfont) == null || delete p.url;
1233
1230
  }
1234
- }, _ = O(() => n.pageLoading);
1235
- return (y, v) => {
1236
- const b = H("Loading"), T = H("router-view");
1231
+ }, _ = I(() => n.pageLoading);
1232
+ return (g, b) => {
1233
+ const y = F("Loading"), T = F("router-view");
1237
1234
  return $(), L("div", $n, [
1238
- B(gn, je(Fe(t.menu)), ke({ _: 2 }, [
1239
- y.$slots.logo ? {
1235
+ H(gn, je(Fe(t.menu)), ke({ _: 2 }, [
1236
+ g.$slots.logo ? {
1240
1237
  name: "logo",
1241
1238
  fn: A(() => [
1242
- Y(y.$slots, "logo", {}, void 0, !0)
1239
+ Y(g.$slots, "logo", {}, void 0, !0)
1243
1240
  ]),
1244
1241
  key: "0"
1245
1242
  } : void 0,
1246
- y.$slots.logomini ? {
1243
+ g.$slots.logomini ? {
1247
1244
  name: "logomini",
1248
1245
  fn: A(() => [
1249
- Y(y.$slots, "logomini", {}, void 0, !0)
1246
+ Y(g.$slots, "logomini", {}, void 0, !0)
1250
1247
  ]),
1251
1248
  key: "1"
1252
1249
  } : void 0
1253
1250
  ]), 1040),
1254
- c("div", {
1251
+ i("div", {
1255
1252
  class: "PageArea pageAreaWithLoading",
1256
1253
  "element-loading-text": t.pageLoadingText || "LOADING"
1257
1254
  }, [
1258
- B(b, { loading: a(_) }, null, 8, ["loading"]),
1255
+ H(y, { loading: a(_) }, null, 8, ["loading"]),
1259
1256
  a(e).useTab ? ($(), G(tn, { key: 0 })) : P("", !0),
1260
- B(Sn),
1261
- B(T, je(Fe(t.page)), null, 16),
1262
- B(wn)
1257
+ H(Sn),
1258
+ H(T, je(Fe(t.page)), null, 16),
1259
+ H(wn)
1263
1260
  ], 8, xn)
1264
1261
  ]);
1265
1262
  };
@@ -1289,7 +1286,7 @@ const Wo = gt({
1289
1286
  var n, s;
1290
1287
  (s = (n = globalThis.$config) == null ? void 0 : n.iconfont) != null && s.prefix && (o.prefix = globalThis.$config.iconfont.prefix);
1291
1288
  });
1292
- const e = O(() => {
1289
+ const e = I(() => {
1293
1290
  const s = `${(Number(t.size) || 20) / 16}rem`;
1294
1291
  return {
1295
1292
  width: s,
@@ -1301,7 +1298,7 @@ const Wo = gt({
1301
1298
  "aria-hidden": "true",
1302
1299
  style: Oe(a(e))
1303
1300
  }, [
1304
- c("use", {
1301
+ i("use", {
1305
1302
  "xlink:href": `#${a(o).prefix}-${l.name}`
1306
1303
  }, null, 8, An)
1307
1304
  ], 4));
@@ -1333,21 +1330,21 @@ const Wo = gt({
1333
1330
  const f = Z({
1334
1331
  val: "",
1335
1332
  isComposing: !1
1336
- }), _ = t, { proxy: y } = Te();
1333
+ }), _ = t, { proxy: g } = Te();
1337
1334
  fe(() => {
1338
- var w, r, u;
1335
+ var w, r, d;
1339
1336
  const x = (w = n.value) == null ? void 0 : w.$el;
1340
- s = ((r = x == null ? void 0 : x.querySelector) == null ? void 0 : r.call(x, "input")) || ((u = x == null ? void 0 : x.querySelector) == null ? void 0 : u.call(x, "textarea")), s && (s.addEventListener("compositionstart", v), s.addEventListener("compositionend", b));
1337
+ s = ((r = x == null ? void 0 : x.querySelector) == null ? void 0 : r.call(x, "input")) || ((d = x == null ? void 0 : x.querySelector) == null ? void 0 : d.call(x, "textarea")), s && (s.addEventListener("compositionstart", b), s.addEventListener("compositionend", y));
1341
1338
  });
1342
- const v = () => {
1339
+ const b = () => {
1343
1340
  f.isComposing = !0;
1344
- }, b = () => {
1341
+ }, y = () => {
1345
1342
  f.isComposing = !1, $e(() => M(f.val));
1346
1343
  }, T = (x) => {
1347
1344
  f.isComposing || M(x);
1348
1345
  }, M = (x) => {
1349
1346
  _("update:modelValue", x), _("input", x);
1350
- }, p = O(() => !!(y.$attrs.maxlength || C.value)), C = O(() => y.$attrs.max);
1347
+ }, p = I(() => !!(g.$attrs.maxlength || C.value)), C = I(() => g.$attrs.max);
1351
1348
  return be(
1352
1349
  () => o.modelValue,
1353
1350
  (x) => {
@@ -1356,22 +1353,22 @@ const Wo = gt({
1356
1353
  },
1357
1354
  { immediate: !0 }
1358
1355
  ), Ee(() => {
1359
- s && (s.removeEventListener("compositionstart", v), s.removeEventListener("compositionend", b), s = null);
1356
+ s && (s.removeEventListener("compositionstart", b), s.removeEventListener("compositionend", y), s = null);
1360
1357
  }), (x, w) => {
1361
- const r = H("el-input");
1358
+ const r = F("el-input");
1362
1359
  return $(), G(r, Se({
1363
1360
  ref_key: "inputRef",
1364
1361
  ref: n,
1365
1362
  modelValue: a(f).val,
1366
- "onUpdate:modelValue": w[0] || (w[0] = (u) => a(f).val = u),
1363
+ "onUpdate:modelValue": w[0] || (w[0] = (d) => a(f).val = d),
1367
1364
  "show-word-limit": a(p),
1368
1365
  maxlength: a(C),
1369
1366
  class: "MvcInput"
1370
1367
  }, x.$attrs, { onInput: T }), ke({ _: 2 }, [
1371
- de(a(e), (u, i) => ({
1372
- name: i,
1368
+ de(a(e), (d, c) => ({
1369
+ name: c,
1373
1370
  fn: A((k) => [
1374
- Y(x.$slots, i, je(Fe(k || {})))
1371
+ Y(x.$slots, c, je(Fe(k || {})))
1375
1372
  ])
1376
1373
  }))
1377
1374
  ]), 1040, ["modelValue", "show-word-limit", "maxlength"]);
@@ -1430,8 +1427,8 @@ const Wo = gt({
1430
1427
  "aria-live": "polite",
1431
1428
  style: Oe({ borderRadius: `${t.radius}px` })
1432
1429
  }, [
1433
- c("div", In, [
1434
- c("i", {
1430
+ i("div", In, [
1431
+ i("i", {
1435
1432
  class: W([t.icon, `fs${t.size}`, "imicon ani-rotate"]),
1436
1433
  "aria-hidden": "true"
1437
1434
  }, null, 2),
@@ -1500,18 +1497,18 @@ const Wo = gt({
1500
1497
  });
1501
1498
  fe(() => {
1502
1499
  try {
1503
- const h = localStorage.getItem(De);
1504
- if (h) {
1505
- const d = JSON.parse(h);
1506
- d && typeof d == "object" && d.remember && (f.remember = !0, d.username != null && (f.form.username = String(d.username)), d.password != null && (f.form.password = String(d.password)));
1500
+ const m = localStorage.getItem(De);
1501
+ if (m) {
1502
+ const u = JSON.parse(m);
1503
+ u && typeof u == "object" && u.remember && (f.remember = !0, u.username != null && (f.form.username = String(u.username)), u.password != null && (f.form.password = String(u.password)));
1507
1504
  }
1508
1505
  } catch {
1509
1506
  }
1510
1507
  });
1511
- const _ = t, y = (h, d = "info") => {
1512
- const m = e == null ? void 0 : e.$message;
1513
- m != null && m[d] && m[d](h);
1514
- }, v = () => {
1508
+ const _ = t, g = (m, u = "info") => {
1509
+ const v = e == null ? void 0 : e.$message;
1510
+ v != null && v[u] && v[u](m);
1511
+ }, b = () => {
1515
1512
  try {
1516
1513
  f.remember ? localStorage.setItem(
1517
1514
  De,
@@ -1523,43 +1520,43 @@ const Wo = gt({
1523
1520
  ) : localStorage.removeItem(De);
1524
1521
  } catch {
1525
1522
  }
1526
- }, b = () => {
1527
- y("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
1523
+ }, y = () => {
1524
+ g("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
1528
1525
  }, T = () => {
1529
- y("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
1526
+ g("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
1530
1527
  }, M = async () => {
1531
- var g, S;
1528
+ var h, S;
1532
1529
  if (o.loading || s.value) return;
1533
- const h = await ((S = (g = n.value) == null ? void 0 : g.validate) == null ? void 0 : S.call(g));
1534
- if (!h) return;
1535
- const d = String(h.username ?? "").trim();
1536
- if (!d)
1530
+ const m = await ((S = (h = n.value) == null ? void 0 : h.validate) == null ? void 0 : S.call(h));
1531
+ if (!m) return;
1532
+ const u = String(m.username ?? "").trim();
1533
+ if (!u)
1537
1534
  return;
1538
- const m = String(h.password ?? "").trim();
1539
- if (m) {
1535
+ const v = String(m.password ?? "").trim();
1536
+ if (v) {
1540
1537
  s.value = !0;
1541
1538
  try {
1542
- const I = await globalThis.$pm(async () => ({
1539
+ const O = await globalThis.$pm(async () => ({
1543
1540
  method: "password",
1544
- username: d,
1545
- password: m
1541
+ username: u,
1542
+ password: v
1546
1543
  }));
1547
- v(), _("submit", {
1544
+ b(), _("submit", {
1548
1545
  method: "password",
1549
- [w.value.username.valueKey]: I.username,
1550
- [w.value.password.valueKey]: I.password
1546
+ [w.value.username.valueKey]: O.username,
1547
+ [w.value.password.valueKey]: O.password
1551
1548
  }), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
1552
1549
  } finally {
1553
1550
  s.value = !1;
1554
1551
  }
1555
1552
  }
1556
- }, p = O(() => !!o.loading || s.value), C = O(() => {
1557
- const h = globalThis.$config;
1553
+ }, p = I(() => !!o.loading || s.value), C = I(() => {
1554
+ const m = globalThis.$config;
1558
1555
  return {
1559
- copyright: (h == null ? void 0 : h.copyright) ?? "",
1560
- author: (h == null ? void 0 : h.author) ?? ""
1556
+ copyright: (m == null ? void 0 : m.copyright) ?? "",
1557
+ author: (m == null ? void 0 : m.author) ?? ""
1561
1558
  };
1562
- }), x = O(() => i[f.method] ?? "Login"), w = O(() => ({
1559
+ }), x = I(() => c[f.method] ?? "Login"), w = I(() => ({
1563
1560
  username: {
1564
1561
  ...k.username,
1565
1562
  ...o.formFileds.username || {}
@@ -1568,7 +1565,7 @@ const Wo = gt({
1568
1565
  ...k.password,
1569
1566
  ...o.formFileds.password || {}
1570
1567
  }
1571
- })), r = O(() => ({
1568
+ })), r = I(() => ({
1572
1569
  username: [
1573
1570
  {
1574
1571
  required: !0,
@@ -1583,13 +1580,13 @@ const Wo = gt({
1583
1580
  trigger: "blur"
1584
1581
  }
1585
1582
  ]
1586
- })), u = O(() => [
1583
+ })), d = I(() => [
1587
1584
  { value: "password", label: "Account" },
1588
1585
  { value: "auth", label: "Google/Apple" },
1589
1586
  { value: "dingtalk", label: "DingTalk" },
1590
1587
  { value: "feishu", label: "Lark" },
1591
1588
  { value: "wechat", label: "Wechat" }
1592
- ].filter((h, d) => o.loginMethods.includes(d))), i = {
1589
+ ].filter((m, u) => o.loginMethods.includes(u))), c = {
1593
1590
  dingtalk: "DingTalk",
1594
1591
  feishu: "Lark",
1595
1592
  wechat: "Wechat"
@@ -1611,37 +1608,37 @@ const Wo = gt({
1611
1608
  valueKey: "password"
1612
1609
  }
1613
1610
  };
1614
- return (h, d) => {
1615
- const m = H("BtnGroup"), g = H("Input"), S = H("el-form-item"), I = H("el-checkbox"), z = H("el-button"), F = H("Form");
1611
+ return (m, u) => {
1612
+ const v = F("BtnGroup"), h = F("Input"), S = F("el-form-item"), O = F("el-checkbox"), B = F("el-button"), N = F("Form");
1616
1613
  return $(), L("div", Fn, [
1617
- c("div", Hn, [
1618
- c("div", Bn, [
1619
- c("span", Rn, V(h.$l(o.title)), 1)
1614
+ i("div", Hn, [
1615
+ i("div", Bn, [
1616
+ i("span", Rn, V(m.$l(o.title)), 1)
1620
1617
  ]),
1621
- B(m, {
1618
+ H(v, {
1622
1619
  modelValue: a(f).method,
1623
- "onUpdate:modelValue": d[0] || (d[0] = (R) => a(f).method = R),
1624
- options: a(u),
1620
+ "onUpdate:modelValue": u[0] || (u[0] = (R) => a(f).method = R),
1621
+ options: a(d),
1625
1622
  disabled: a(p),
1626
1623
  size: "small",
1627
1624
  class: "mb32"
1628
1625
  }, null, 8, ["modelValue", "options", "disabled"]),
1629
- c("div", Dn, [
1630
- a(f).method === "password" ? ($(), G(F, {
1626
+ i("div", Dn, [
1627
+ a(f).method === "password" ? ($(), G(N, {
1631
1628
  key: 0,
1632
1629
  ref_key: "pwdFormRef",
1633
1630
  ref: n,
1634
1631
  modelValue: a(f).form,
1635
- "onUpdate:modelValue": d[4] || (d[4] = (R) => a(f).form = R),
1632
+ "onUpdate:modelValue": u[4] || (u[4] = (R) => a(f).form = R),
1636
1633
  size: "default",
1637
1634
  rules: a(r)
1638
1635
  }, {
1639
1636
  default: A(() => [
1640
- B(S, { prop: "username" }, {
1637
+ H(S, { prop: "username" }, {
1641
1638
  default: A(() => [
1642
- B(g, {
1639
+ H(h, {
1643
1640
  modelValue: a(f).form.username,
1644
- "onUpdate:modelValue": d[1] || (d[1] = (R) => a(f).form.username = R),
1641
+ "onUpdate:modelValue": u[1] || (u[1] = (R) => a(f).form.username = R),
1645
1642
  class: "wp100",
1646
1643
  size: "large",
1647
1644
  name: "username",
@@ -1651,7 +1648,7 @@ const Wo = gt({
1651
1648
  a(w).username.showPrefix ? {
1652
1649
  name: "prefix",
1653
1650
  fn: A(() => [
1654
- c("i", {
1651
+ i("i", {
1655
1652
  class: W(a(w).username.icon)
1656
1653
  }, null, 2)
1657
1654
  ]),
@@ -1661,11 +1658,11 @@ const Wo = gt({
1661
1658
  ]),
1662
1659
  _: 1
1663
1660
  }),
1664
- B(S, { prop: "password" }, {
1661
+ H(S, { prop: "password" }, {
1665
1662
  default: A(() => [
1666
- B(g, {
1663
+ H(h, {
1667
1664
  modelValue: a(f).form.password,
1668
- "onUpdate:modelValue": d[2] || (d[2] = (R) => a(f).form.password = R),
1665
+ "onUpdate:modelValue": u[2] || (u[2] = (R) => a(f).form.password = R),
1669
1666
  class: "wp100",
1670
1667
  size: "large",
1671
1668
  type: "password",
@@ -1678,7 +1675,7 @@ const Wo = gt({
1678
1675
  a(w).password.showPrefix ? {
1679
1676
  name: "prefix",
1680
1677
  fn: A(() => [
1681
- c("i", {
1678
+ i("i", {
1682
1679
  class: W(a(w).password.icon)
1683
1680
  }, null, 2)
1684
1681
  ]),
@@ -1688,22 +1685,22 @@ const Wo = gt({
1688
1685
  ]),
1689
1686
  _: 1
1690
1687
  }),
1691
- B(S, null, {
1688
+ H(S, null, {
1692
1689
  default: A(() => [
1693
- B(I, {
1690
+ H(O, {
1694
1691
  modelValue: a(f).remember,
1695
- "onUpdate:modelValue": d[3] || (d[3] = (R) => a(f).remember = R),
1692
+ "onUpdate:modelValue": u[3] || (u[3] = (R) => a(f).remember = R),
1696
1693
  disabled: a(p)
1697
1694
  }, {
1698
1695
  default: A(() => [
1699
- se(V(h.$l(o.rememberTxt)), 1)
1696
+ se(V(m.$l(o.rememberTxt)), 1)
1700
1697
  ]),
1701
1698
  _: 1
1702
1699
  }, 8, ["modelValue", "disabled"])
1703
1700
  ]),
1704
1701
  _: 1
1705
1702
  }),
1706
- B(z, {
1703
+ H(B, {
1707
1704
  type: "primary",
1708
1705
  size: "large",
1709
1706
  class: "wp100",
@@ -1712,29 +1709,29 @@ const Wo = gt({
1712
1709
  onClick: M
1713
1710
  }, {
1714
1711
  default: A(() => [
1715
- se(V(h.$l(o.submitTxt)), 1)
1712
+ se(V(m.$l(o.submitTxt)), 1)
1716
1713
  ]),
1717
1714
  _: 1
1718
1715
  }, 8, ["loading", "disabled"])
1719
1716
  ]),
1720
1717
  _: 1
1721
1718
  }, 8, ["modelValue", "rules"])) : a(f).method === "auth" ? ($(), L("div", Kn, [
1722
- d[7] || (d[7] = c("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
1723
- c("button", {
1719
+ u[7] || (u[7] = i("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
1720
+ i("button", {
1724
1721
  type: "button",
1725
1722
  class: "oauthGoogle wp100 mb36",
1726
1723
  disabled: a(p),
1727
- onClick: b
1728
- }, [...d[5] || (d[5] = [
1724
+ onClick: y
1725
+ }, [...u[5] || (u[5] = [
1729
1726
  Gt('<svg class="oauthGoogleLogo noShrink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="18" height="18" aria-hidden="true" data-v-6faa6992><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" data-v-6faa6992></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" data-v-6faa6992></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" data-v-6faa6992></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" data-v-6faa6992></path></svg><span class="oauthGoogleLabel" data-v-6faa6992>Sign in with Google</span>', 2)
1730
1727
  ])], 8, Pn),
1731
- c("button", {
1728
+ i("button", {
1732
1729
  type: "button",
1733
1730
  class: "oauthApple wp100 mb16",
1734
1731
  disabled: a(p),
1735
1732
  onClick: T
1736
- }, [...d[6] || (d[6] = [
1737
- c("svg", {
1733
+ }, [...u[6] || (u[6] = [
1734
+ i("svg", {
1738
1735
  class: "oauthAppleLogo noShrink",
1739
1736
  xmlns: "http://www.w3.org/2000/svg",
1740
1737
  viewBox: "0 0 24 24",
@@ -1742,25 +1739,25 @@ const Wo = gt({
1742
1739
  height: "22",
1743
1740
  "aria-hidden": "true"
1744
1741
  }, [
1745
- c("path", {
1742
+ i("path", {
1746
1743
  fill: "currentColor",
1747
1744
  d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.38c.843-1.012 1.4-2.427 1.245-3.826-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"
1748
1745
  })
1749
1746
  ], -1),
1750
- c("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
1747
+ i("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
1751
1748
  ])], 8, Un)
1752
1749
  ])) : ($(), L("div", Wn, [
1753
- c("p", Gn, V(a(x)), 1),
1754
- c("div", {
1750
+ i("p", Gn, V(a(x)), 1),
1751
+ i("div", {
1755
1752
  class: W(["qrBlock w180 h180 radius6", `qr-${a(f).method}`]),
1756
1753
  "aria-hidden": "true"
1757
1754
  }, null, 2)
1758
1755
  ]))
1759
1756
  ])
1760
1757
  ]),
1761
- c("div", Jn, [
1762
- c("span", null, V(a(C).copyright), 1),
1763
- c("span", null, V(a(C).author), 1)
1758
+ i("div", Jn, [
1759
+ i("span", null, V(a(C).copyright), 1),
1760
+ i("span", null, V(a(C).author), 1)
1764
1761
  ])
1765
1762
  ]);
1766
1763
  };
@@ -1792,7 +1789,7 @@ const Wo = gt({
1792
1789
  setup(l) {
1793
1790
  const t = l;
1794
1791
  Z({});
1795
- const o = O(() => ({
1792
+ const o = I(() => ({
1796
1793
  borderInlineStart: `${(Number(t.size) || 4) / 16}rem ${t.type} var(--color-${t.color})`
1797
1794
  }));
1798
1795
  return (e, n) => ($(), L("div", {
@@ -1828,24 +1825,24 @@ const Wo = gt({
1828
1825
  }
1829
1826
  },
1830
1827
  setup(l) {
1831
- const t = l, { proxy: o } = Te(), n = Be("store").tab(), s = O(() => t.title || t.subtitle);
1832
- return O(() => n.useTab ? {
1828
+ const t = l, { proxy: o } = Te(), n = Be("store").tab(), s = I(() => t.title || t.subtitle);
1829
+ return I(() => n.useTab ? {
1833
1830
  minHeight: "calc(100vh - 48px - 36px)"
1834
1831
  } : {
1835
1832
  minHeight: "calc(100vh - 48px)"
1836
1833
  }), (f, _) => ($(), L("div", tl, [
1837
1834
  t.noheader ? P("", !0) : ($(), L("div", ol, [
1838
- c("div", nl, [
1835
+ i("div", nl, [
1839
1836
  f.$slots.header ? Y(f.$slots, "header", { key: 0 }, void 0, !0) : a(s) ? ($(), L(re, { key: 1 }, [
1840
- c("h3", ll, V(t.title), 1),
1841
- c("p", sl, V(t.subtitle), 1)
1837
+ i("h3", ll, V(t.title), 1),
1838
+ i("p", sl, V(t.subtitle), 1)
1842
1839
  ], 64)) : P("", !0)
1843
1840
  ]),
1844
- c("div", al, [
1841
+ i("div", al, [
1845
1842
  f.$slots.right ? Y(f.$slots, "right", { key: 0 }, void 0, !0) : P("", !0)
1846
1843
  ])
1847
1844
  ])),
1848
- c("div", rl, [
1845
+ i("div", rl, [
1849
1846
  Y(f.$slots, "default", {}, void 0, !0)
1850
1847
  ])
1851
1848
  ]));
@@ -1898,104 +1895,104 @@ const Wo = gt({
1898
1895
  },
1899
1896
  emits: ["update:modelValue", "change"],
1900
1897
  setup(l, { emit: t }) {
1901
- const o = l, e = le(null), n = le([]), s = le(!1), f = le(!1), _ = le(!1), y = t, v = (d) => {
1902
- o.multiple ? (n.value = Array.isArray(d) ? [...d] : [], x()) : (y("update:modelValue", d), y("change", d));
1903
- }, b = (d) => {
1904
- if (s.value = d, d && o.multiple) {
1905
- const m = o.modelValue;
1906
- n.value = Array.isArray(m) ? [...m] : m ? [m] : [], x();
1898
+ const o = l, e = le(null), n = le([]), s = le(!1), f = le(!1), _ = le(!1), g = t, b = (u) => {
1899
+ o.multiple ? (n.value = Array.isArray(u) ? [...u] : [], x()) : (g("update:modelValue", u), g("change", u));
1900
+ }, y = (u) => {
1901
+ if (s.value = u, u && o.multiple) {
1902
+ const v = o.modelValue;
1903
+ n.value = Array.isArray(v) ? [...v] : v ? [v] : [], x();
1907
1904
  }
1908
1905
  }, T = () => {
1909
- var g;
1906
+ var h;
1910
1907
  if (!o.filterable || !s.value) return C();
1911
- const d = e.value, m = ((g = d == null ? void 0 : d.optionsArray) == null ? void 0 : g.value) ?? (d == null ? void 0 : d.optionsArray) ?? [];
1912
- return Array.isArray(m) ? m.filter((S) => S.visible && !S.isDisabled).map((S) => S.value) : C();
1913
- }, M = (d) => {
1908
+ const u = e.value, v = ((h = u == null ? void 0 : u.optionsArray) == null ? void 0 : h.value) ?? (u == null ? void 0 : u.optionsArray) ?? [];
1909
+ return Array.isArray(v) ? v.filter((S) => S.visible && !S.isDisabled).map((S) => S.value) : C();
1910
+ }, M = (u) => {
1914
1911
  _.value = !1;
1915
- const m = T();
1916
- if (d)
1917
- n.value = [.../* @__PURE__ */ new Set([...n.value, ...m])];
1912
+ const v = T();
1913
+ if (u)
1914
+ n.value = [.../* @__PURE__ */ new Set([...n.value, ...v])];
1918
1915
  else {
1919
- const g = new Set(m);
1920
- n.value = n.value.filter((S) => !g.has(S));
1916
+ const h = new Set(v);
1917
+ n.value = n.value.filter((S) => !h.has(S));
1921
1918
  }
1922
1919
  }, p = () => {
1923
- var d, m;
1924
- o.multiple && (y("update:modelValue", n.value), y("change", n.value), (m = (d = e.value) == null ? void 0 : d.blur) == null || m.call(d));
1920
+ var u, v;
1921
+ o.multiple && (g("update:modelValue", n.value), g("change", n.value), (v = (u = e.value) == null ? void 0 : u.blur) == null || v.call(u));
1925
1922
  }, C = () => {
1926
- const d = o.valueKey;
1927
- return (o.options || []).map((m) => typeof m == "object" ? m[d] : m);
1923
+ const u = o.valueKey;
1924
+ return (o.options || []).map((v) => typeof v == "object" ? v[u] : v);
1928
1925
  }, x = () => {
1929
- const d = T(), m = new Set(n.value ?? []), g = d.filter((I) => m.has(I)).length, S = d.length;
1930
- f.value = S > 0 && g === S, _.value = g > 0 && g < S;
1931
- }, w = O(() => o.multiple && s.value ? n.value : o.modelValue), r = O(() => {
1926
+ const u = T(), v = new Set(n.value ?? []), h = u.filter((O) => v.has(O)).length, S = u.length;
1927
+ f.value = S > 0 && h === S, _.value = h > 0 && h < S;
1928
+ }, w = I(() => o.multiple && s.value ? n.value : o.modelValue), r = I(() => {
1932
1929
  const {
1933
- modelValue: d,
1934
- valueKey: m,
1935
- labelKey: g,
1930
+ modelValue: u,
1931
+ valueKey: v,
1932
+ labelKey: h,
1936
1933
  selectAllTxt: S,
1937
- confirmTxt: I,
1938
- nowrap: z,
1939
- ...F
1940
- } = o, R = F.props ?? {};
1934
+ confirmTxt: O,
1935
+ nowrap: B,
1936
+ ...N
1937
+ } = o, R = N.props ?? {};
1941
1938
  return {
1942
- ...F,
1939
+ ...N,
1943
1940
  props: {
1944
1941
  ...R,
1945
- value: m,
1946
- label: g
1942
+ value: v,
1943
+ label: h
1947
1944
  }
1948
1945
  };
1949
- }), u = O(
1946
+ }), d = I(
1950
1947
  () => o.nowrap ? {
1951
1948
  collapseTags: !0,
1952
1949
  collapseTagsTooltip: !0,
1953
1950
  maxCollapseTags: 1,
1954
1951
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
1955
1952
  } : {}
1956
- ), i = O(() => ({
1957
- ...u.value,
1953
+ ), c = I(() => ({
1954
+ ...d.value,
1958
1955
  ...We(),
1959
1956
  ...r.value
1960
- })), k = O(() => {
1961
- const d = o.multiple && s.value ? n.value : o.modelValue, m = Array.isArray(d) ? d : d ? [d] : [];
1962
- if (!o.filterable || !s.value) return m.length;
1963
- const g = T();
1964
- return m.filter((S) => g.includes(S)).length;
1965
- }), h = O(() => T().length);
1957
+ })), k = I(() => {
1958
+ const u = o.multiple && s.value ? n.value : o.modelValue, v = Array.isArray(u) ? u : u ? [u] : [];
1959
+ if (!o.filterable || !s.value) return v.length;
1960
+ const h = T();
1961
+ return v.filter((S) => h.includes(S)).length;
1962
+ }), m = I(() => T().length);
1966
1963
  return be(n, () => x(), { deep: !0 }), be(
1967
1964
  () => o.modelValue,
1968
- (d) => {
1965
+ (u) => {
1969
1966
  if (o.multiple && s.value) {
1970
- const m = Array.isArray(d) ? [...d] : d ? [d] : [];
1971
- JSON.stringify(m) !== JSON.stringify(n.value) && (n.value = m, x());
1967
+ const v = Array.isArray(u) ? [...u] : u ? [u] : [];
1968
+ JSON.stringify(v) !== JSON.stringify(n.value) && (n.value = v, x());
1972
1969
  }
1973
1970
  }
1974
- ), (d, m) => {
1975
- const g = H("el-checkbox"), S = H("el-button"), I = H("el-select");
1976
- return $(), G(I, Se({
1971
+ ), (u, v) => {
1972
+ const h = F("el-checkbox"), S = F("el-button"), O = F("el-select");
1973
+ return $(), G(O, Se({
1977
1974
  ref_key: "selectRef",
1978
1975
  ref: e,
1979
1976
  "model-value": a(w),
1980
1977
  "tag-effect": "plain",
1981
1978
  class: "MvcSelect"
1982
- }, a(i), {
1983
- "onUpdate:modelValue": v,
1984
- onVisibleChange: b
1979
+ }, a(c), {
1980
+ "onUpdate:modelValue": b,
1981
+ onVisibleChange: y
1985
1982
  }), ke({
1986
1983
  default: A(() => [
1987
- Y(d.$slots, "default")
1984
+ Y(u.$slots, "default")
1988
1985
  ]),
1989
1986
  _: 2
1990
1987
  }, [
1991
1988
  o.filterable ? {
1992
1989
  name: "header",
1993
1990
  fn: A(() => [
1994
- c("div", dl, [
1995
- o.multiple ? ($(), G(g, {
1991
+ i("div", dl, [
1992
+ o.multiple ? ($(), G(h, {
1996
1993
  key: 0,
1997
1994
  modelValue: a(f),
1998
- "onUpdate:modelValue": m[0] || (m[0] = (z) => Ge(f) ? f.value = z : null),
1995
+ "onUpdate:modelValue": v[0] || (v[0] = (B) => Ge(f) ? f.value = B : null),
1999
1996
  indeterminate: a(_),
2000
1997
  class: "h24",
2001
1998
  onChange: M
@@ -2005,7 +2002,7 @@ const Wo = gt({
2005
2002
  ]),
2006
2003
  _: 1
2007
2004
  }, 8, ["modelValue", "indeterminate"])) : ($(), L("span", fl)),
2008
- c("span", pl, V(a(k)) + "/" + V(a(h)), 1)
2005
+ i("span", pl, V(a(k)) + "/" + V(a(m)), 1)
2009
2006
  ])
2010
2007
  ]),
2011
2008
  key: "0"
@@ -2013,8 +2010,8 @@ const Wo = gt({
2013
2010
  o.multiple ? {
2014
2011
  name: "footer",
2015
2012
  fn: A(() => [
2016
- c("div", ml, [
2017
- B(S, {
2013
+ i("div", ml, [
2014
+ H(S, {
2018
2015
  type: "primary",
2019
2016
  size: "small",
2020
2017
  onClick: p
@@ -2079,100 +2076,100 @@ const Wo = gt({
2079
2076
  },
2080
2077
  emits: ["update:modelValue", "change"],
2081
2078
  setup(l, { emit: t }) {
2082
- const o = l, e = le(null), n = le([]), s = le(!1), f = le(!1), _ = le(!1), y = t, v = (d) => {
2083
- o.multiple ? (n.value = Array.isArray(d) ? [...d] : [], x()) : (y("update:modelValue", d), y("change", d));
2084
- }, b = (d) => {
2085
- if (s.value = d, d && o.multiple) {
2086
- const m = o.modelValue;
2087
- n.value = Array.isArray(m) ? [...m] : m ? [m] : [], x();
2079
+ const o = l, e = le(null), n = le([]), s = le(!1), f = le(!1), _ = le(!1), g = t, b = (u) => {
2080
+ o.multiple ? (n.value = Array.isArray(u) ? [...u] : [], x()) : (g("update:modelValue", u), g("change", u));
2081
+ }, y = (u) => {
2082
+ if (s.value = u, u && o.multiple) {
2083
+ const v = o.modelValue;
2084
+ n.value = Array.isArray(v) ? [...v] : v ? [v] : [], x();
2088
2085
  }
2089
2086
  }, T = () => {
2090
2087
  var S;
2091
2088
  if (!o.filterable || !s.value) return C();
2092
- const d = e.value, m = ((S = d == null ? void 0 : d.filteredOptions) == null ? void 0 : S.value) ?? (d == null ? void 0 : d.filteredOptions) ?? [];
2093
- if (!Array.isArray(m)) return C();
2094
- const g = o.valueKey;
2095
- return m.filter((I) => I.type !== "Group" && !I.disabled).map((I) => typeof I == "object" ? I[g] : I);
2096
- }, M = (d) => {
2089
+ const u = e.value, v = ((S = u == null ? void 0 : u.filteredOptions) == null ? void 0 : S.value) ?? (u == null ? void 0 : u.filteredOptions) ?? [];
2090
+ if (!Array.isArray(v)) return C();
2091
+ const h = o.valueKey;
2092
+ return v.filter((O) => O.type !== "Group" && !O.disabled).map((O) => typeof O == "object" ? O[h] : O);
2093
+ }, M = (u) => {
2097
2094
  _.value = !1;
2098
- const m = T();
2099
- if (d)
2100
- n.value = [.../* @__PURE__ */ new Set([...n.value, ...m])];
2095
+ const v = T();
2096
+ if (u)
2097
+ n.value = [.../* @__PURE__ */ new Set([...n.value, ...v])];
2101
2098
  else {
2102
- const g = new Set(m);
2103
- n.value = n.value.filter((S) => !g.has(S));
2099
+ const h = new Set(v);
2100
+ n.value = n.value.filter((S) => !h.has(S));
2104
2101
  }
2105
2102
  }, p = () => {
2106
- var d, m;
2107
- o.multiple && (y("update:modelValue", n.value), y("change", n.value), (m = (d = e.value) == null ? void 0 : d.blur) == null || m.call(d));
2103
+ var u, v;
2104
+ o.multiple && (g("update:modelValue", n.value), g("change", n.value), (v = (u = e.value) == null ? void 0 : u.blur) == null || v.call(u));
2108
2105
  }, C = () => {
2109
- const d = o.valueKey;
2110
- return (o.options || []).map((m) => typeof m == "object" ? m[d] : m);
2106
+ const u = o.valueKey;
2107
+ return (o.options || []).map((v) => typeof v == "object" ? v[u] : v);
2111
2108
  }, x = () => {
2112
- const d = T(), m = new Set(n.value ?? []), g = d.filter((I) => m.has(I)).length, S = d.length;
2113
- f.value = S > 0 && g === S, _.value = g > 0 && g < S;
2114
- }, w = O(() => o.multiple && s.value ? n.value : o.modelValue), r = O(() => {
2109
+ const u = T(), v = new Set(n.value ?? []), h = u.filter((O) => v.has(O)).length, S = u.length;
2110
+ f.value = S > 0 && h === S, _.value = h > 0 && h < S;
2111
+ }, w = I(() => o.multiple && s.value ? n.value : o.modelValue), r = I(() => {
2115
2112
  const {
2116
- modelValue: d,
2117
- valueKey: m,
2118
- labelKey: g,
2113
+ modelValue: u,
2114
+ valueKey: v,
2115
+ labelKey: h,
2119
2116
  selectAllTxt: S,
2120
- confirmTxt: I,
2121
- nowrap: z,
2122
- ...F
2123
- } = o, R = F.props ?? {};
2117
+ confirmTxt: O,
2118
+ nowrap: B,
2119
+ ...N
2120
+ } = o, R = N.props ?? {};
2124
2121
  return {
2125
- ...F,
2122
+ ...N,
2126
2123
  props: {
2127
2124
  ...R,
2128
- value: m,
2129
- label: g
2125
+ value: v,
2126
+ label: h
2130
2127
  }
2131
2128
  };
2132
- }), u = O(
2129
+ }), d = I(
2133
2130
  () => o.nowrap ? {
2134
2131
  collapseTags: !0,
2135
2132
  collapseTagsTooltip: !0,
2136
2133
  maxCollapseTags: 1,
2137
2134
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
2138
2135
  } : {}
2139
- ), i = O(() => ({
2140
- ...u.value,
2136
+ ), c = I(() => ({
2137
+ ...d.value,
2141
2138
  ...We(),
2142
2139
  ...r.value
2143
- })), k = O(() => {
2144
- const d = o.multiple && s.value ? n.value : o.modelValue, m = Array.isArray(d) ? d : d ? [d] : [];
2145
- if (!o.filterable || !s.value) return m.length;
2146
- const g = T();
2147
- return m.filter((S) => g.includes(S)).length;
2148
- }), h = O(() => T().length);
2140
+ })), k = I(() => {
2141
+ const u = o.multiple && s.value ? n.value : o.modelValue, v = Array.isArray(u) ? u : u ? [u] : [];
2142
+ if (!o.filterable || !s.value) return v.length;
2143
+ const h = T();
2144
+ return v.filter((S) => h.includes(S)).length;
2145
+ }), m = I(() => T().length);
2149
2146
  return be(n, () => x(), { deep: !0 }), be(
2150
2147
  () => o.modelValue,
2151
- (d) => {
2148
+ (u) => {
2152
2149
  if (o.multiple && s.value) {
2153
- const m = Array.isArray(d) ? [...d] : d ? [d] : [];
2154
- JSON.stringify(m) !== JSON.stringify(n.value) && (n.value = m, x());
2150
+ const v = Array.isArray(u) ? [...u] : u ? [u] : [];
2151
+ JSON.stringify(v) !== JSON.stringify(n.value) && (n.value = v, x());
2155
2152
  }
2156
2153
  }
2157
- ), (d, m) => {
2158
- const g = H("el-checkbox"), S = H("el-button"), I = H("el-select-v2");
2159
- return $(), G(I, Se({
2154
+ ), (u, v) => {
2155
+ const h = F("el-checkbox"), S = F("el-button"), O = F("el-select-v2");
2156
+ return $(), G(O, Se({
2160
2157
  ref_key: "selectRef",
2161
2158
  ref: e,
2162
2159
  "model-value": a(w),
2163
2160
  class: "MvcSelectV2"
2164
- }, a(i), {
2165
- "onUpdate:modelValue": v,
2166
- onVisibleChange: b
2161
+ }, a(c), {
2162
+ "onUpdate:modelValue": b,
2163
+ onVisibleChange: y
2167
2164
  }), ke({ _: 2 }, [
2168
2165
  o.filterable ? {
2169
2166
  name: "header",
2170
2167
  fn: A(() => [
2171
- c("div", yl, [
2172
- o.multiple ? ($(), G(g, {
2168
+ i("div", yl, [
2169
+ o.multiple ? ($(), G(h, {
2173
2170
  key: 0,
2174
2171
  modelValue: a(f),
2175
- "onUpdate:modelValue": m[0] || (m[0] = (z) => Ge(f) ? f.value = z : null),
2172
+ "onUpdate:modelValue": v[0] || (v[0] = (B) => Ge(f) ? f.value = B : null),
2176
2173
  indeterminate: a(_),
2177
2174
  class: "h24",
2178
2175
  onChange: M
@@ -2182,23 +2179,23 @@ const Wo = gt({
2182
2179
  ]),
2183
2180
  _: 1
2184
2181
  }, 8, ["modelValue", "indeterminate"])) : ($(), L("span", bl)),
2185
- c("span", vl, V(a(k)) + "/" + V(a(h)), 1)
2182
+ i("span", vl, V(a(k)) + "/" + V(a(m)), 1)
2186
2183
  ])
2187
2184
  ]),
2188
2185
  key: "0"
2189
2186
  } : void 0,
2190
- d.$slots.default ? {
2187
+ u.$slots.default ? {
2191
2188
  name: "default",
2192
- fn: A((z) => [
2193
- Y(d.$slots, "default", je(Fe(z)))
2189
+ fn: A((B) => [
2190
+ Y(u.$slots, "default", je(Fe(B)))
2194
2191
  ]),
2195
2192
  key: "1"
2196
2193
  } : void 0,
2197
2194
  o.multiple ? {
2198
2195
  name: "footer",
2199
2196
  fn: A(() => [
2200
- c("div", _l, [
2201
- B(S, {
2197
+ i("div", _l, [
2198
+ H(S, {
2202
2199
  type: "primary",
2203
2200
  size: "small",
2204
2201
  onClick: p
@@ -2242,14 +2239,14 @@ const Wo = gt({
2242
2239
  }), e = l.tableName + "_Column";
2243
2240
  let n = [];
2244
2241
  (() => {
2245
- const y = t.slots.default()[0].children, v = {
2242
+ const g = t.slots.default()[0].children, b = {
2246
2243
  normal: [],
2247
2244
  mmp: [],
2248
2245
  asa: [],
2249
2246
  fixed: [],
2250
2247
  columns: []
2251
- }, b = l.tableName ? JSON.parse(localStorage.getItem(e)) : null, T = [void 0];
2252
- y.forEach((p) => {
2248
+ }, y = l.tableName ? JSON.parse(localStorage.getItem(e)) : null, T = [void 0];
2249
+ g.forEach((p) => {
2253
2250
  window.$getType(p.type) === "Symbol" ? n = n.concat(p.children) : n.push(p);
2254
2251
  }), n.forEach((p, C) => {
2255
2252
  var x;
@@ -2261,21 +2258,21 @@ const Wo = gt({
2261
2258
  resizable: !0,
2262
2259
  visible: p.props.visible !== !1
2263
2260
  };
2264
- if (w.labelKey || (w.labelKey = w.label), w.label = window.$l(w.labelKey), l.column && (b != null && b.length) && T.indexOf(p.props.prop) === -1) {
2265
- const { data: r } = b.filter1((u) => u.prop === p.props.prop);
2261
+ if (w.labelKey || (w.labelKey = w.label), w.label = window.$l(w.labelKey), l.column && (y != null && y.length) && T.indexOf(p.props.prop) === -1) {
2262
+ const { data: r } = y.filter1((d) => d.prop === p.props.prop);
2266
2263
  r && (w.sort = r.sort, w.fixed = r.fixed, w.visible = r.visible);
2267
2264
  }
2268
- p.props.fixed && v.fixed.push(w), p.props.type === "mmp" ? v.mmp.push(w) : p.props.type === "asa" ? v.asa.push(w) : v.normal.push(w), p.props = w;
2265
+ p.props.fixed && b.fixed.push(w), p.props.type === "mmp" ? b.mmp.push(w) : p.props.type === "asa" ? b.asa.push(w) : b.normal.push(w), p.props = w;
2269
2266
  }
2270
- }), o.columnInfo = v;
2271
- let M = [...v.normal, ...v.mmp, ...v.asa];
2267
+ }), o.columnInfo = b;
2268
+ let M = [...b.normal, ...b.mmp, ...b.asa];
2272
2269
  l.tableName && (M = M.sort((p, C) => p.sort - C.sort), localStorage.setItem(e, JSON.stringify(M)));
2273
2270
  })();
2274
2271
  let f = [];
2275
- if (n.forEach((y) => {
2276
- window.$getType(y) !== "String" && y.props.visible && f.push(y);
2272
+ if (n.forEach((g) => {
2273
+ window.$getType(g) !== "String" && g.props.visible && f.push(g);
2277
2274
  }), (_ = l.group) != null && _.label) {
2278
- const y = {
2275
+ const g = {
2279
2276
  label: "Group By " + l.group.label,
2280
2277
  // prop: props.group.value,
2281
2278
  width: l.group.width,
@@ -2285,13 +2282,13 @@ const Wo = gt({
2285
2282
  };
2286
2283
  f[0].props.type === "selection" ? f.splice(1, 0, {
2287
2284
  ...f[1],
2288
- props: y
2285
+ props: g
2289
2286
  }) : f.unshift({
2290
2287
  ...f[0],
2291
- props: y
2288
+ props: g
2292
2289
  });
2293
2290
  }
2294
- return f = f.sort((y, v) => y.props.sort - v.props.sort), () => f;
2291
+ return f = f.sort((g, b) => g.props.sort - b.props.sort), () => f;
2295
2292
  }
2296
2293
  }), $l = { class: "hp100 flexMode" }, xl = { class: "w200 hp100 border-r fs14" }, kl = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Tl = { class: "p4" }, Ml = ["onClick"], Al = {
2297
2294
  class: "flexMode vs hp100",
@@ -2347,38 +2344,38 @@ const Wo = gt({
2347
2344
  });
2348
2345
  const n = t, s = () => {
2349
2346
  n("mounted");
2350
- const r = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), u = {};
2351
- r.forEach((i) => {
2352
- i.type && (u[i.type] = !0), i.visible ? i.type === "selection" ? e.selection.push(i) : i.type === "operation" ? e.operation.push(i) : i.label && (i.fixed ? e.fixed.push(i) : e.visible.push(i)) : i.type === "mmp" ? e.columns.mmp.push(i) : i.type === "asa" ? e.columns.asa.push(i) : e.columns.normal.push(i);
2353
- }), e.columnType = u;
2347
+ const r = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), d = {};
2348
+ r.forEach((c) => {
2349
+ c.type && (d[c.type] = !0), c.visible ? c.type === "selection" ? e.selection.push(c) : c.type === "operation" ? e.operation.push(c) : c.label && (c.fixed ? e.fixed.push(c) : e.visible.push(c)) : c.type === "mmp" ? e.columns.mmp.push(c) : c.type === "asa" ? e.columns.asa.push(c) : e.columns.normal.push(c);
2350
+ }), e.columnType = d;
2354
2351
  }, f = (r) => {
2355
2352
  e.type = r;
2356
- }, _ = (r, u) => {
2357
- r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(u, 1) : e.columns.normal.splice(u, 1);
2358
- }, y = (r, u) => {
2359
- e.fixed.unshift(r), e.visible.splice(u, 1);
2360
- }, v = (r, u) => {
2361
- e.visible.unshift(r), e.fixed.splice(u, 1);
2362
- }, b = (r, u) => {
2363
- e.visible.splice(u, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
2353
+ }, _ = (r, d) => {
2354
+ r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(d, 1) : e.columns.normal.splice(d, 1);
2355
+ }, g = (r, d) => {
2356
+ e.fixed.unshift(r), e.visible.splice(d, 1);
2357
+ }, b = (r, d) => {
2358
+ e.visible.unshift(r), e.fixed.splice(d, 1);
2359
+ }, y = (r, d) => {
2360
+ e.visible.splice(d, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
2364
2361
  }, T = async () => {
2365
2362
  e.loading = !0, window.$pm(() => {
2366
- const { fixed: r, visible: u, columns: i, selection: k, operation: h } = e;
2367
- let d = [];
2368
- Object.keys(i).map((g) => {
2369
- d = d.concat(i[g]);
2370
- }), r.forEach((g) => g.fixed = "left"), d.forEach((g) => g.visible = !1);
2371
- const m = k.concat(r, u, d, h);
2372
- m.forEach((g, S) => g.sort = S), localStorage.setItem(`${o.tableName}_Column`, JSON.stringify(m)), e.loading = !1, n("close"), n("init-column");
2363
+ const { fixed: r, visible: d, columns: c, selection: k, operation: m } = e;
2364
+ let u = [];
2365
+ Object.keys(c).map((h) => {
2366
+ u = u.concat(c[h]);
2367
+ }), r.forEach((h) => h.fixed = "left"), u.forEach((h) => h.visible = !1);
2368
+ const v = k.concat(r, d, u, m);
2369
+ v.forEach((h, S) => h.sort = S), localStorage.setItem(`${o.tableName}_Column`, JSON.stringify(v)), e.loading = !1, n("close"), n("init-column");
2373
2370
  });
2374
2371
  }, M = () => {
2375
2372
  e.loading = !0, localStorage.removeItem(`${o.tableName}_Column`), window.$pm(() => {
2376
2373
  e.loading = !1, n("close"), n("init-column");
2377
2374
  }, 4);
2378
- }, p = O(() => {
2375
+ }, p = I(() => {
2379
2376
  var r;
2380
2377
  return ((r = globalThis.$config.options) == null ? void 0 : r.drawerHeight) || 540;
2381
- }), C = O(() => (p.value * 0.3).toFixed(0)), x = O(() => (p.value * 0.7 - 10).toFixed(0)), w = O(() => [
2378
+ }), C = I(() => (p.value * 0.3).toFixed(0)), x = I(() => (p.value * 0.7 - 10).toFixed(0)), w = I(() => [
2382
2379
  {
2383
2380
  label: "Base Info",
2384
2381
  value: "normal"
@@ -2394,8 +2391,8 @@ const Wo = gt({
2394
2391
  hide: !e.columnType.mmp
2395
2392
  }
2396
2393
  ]);
2397
- return (r, u) => {
2398
- const i = H("el-scrollbar"), k = H("DrawerArea");
2394
+ return (r, d) => {
2395
+ const c = F("el-scrollbar"), k = F("DrawerArea");
2399
2396
  return $(), G(k, {
2400
2397
  loading: a(e).loading,
2401
2398
  noscroll: "",
@@ -2406,39 +2403,39 @@ const Wo = gt({
2406
2403
  onSubmit: T
2407
2404
  }, {
2408
2405
  default: A(() => [
2409
- c("div", $l, [
2410
- c("div", xl, [
2411
- c("div", kl, V(r.$l("Column Type")), 1),
2412
- c("div", Tl, [
2413
- ($(!0), L(re, null, de(a(w), (h) => ($(), L("div", {
2414
- key: h.value,
2415
- class: W(["typeItem p8-16 mb4 radius4 txt-nowrap", [a(e).type === h.value && "active", h.hide && "hide"]]),
2416
- onClick: (d) => f(h.value)
2417
- }, V(h.label), 11, Ml))), 128))
2406
+ i("div", $l, [
2407
+ i("div", xl, [
2408
+ i("div", kl, V(r.$l("Column Type")), 1),
2409
+ i("div", Tl, [
2410
+ ($(!0), L(re, null, de(a(w), (m) => ($(), L("div", {
2411
+ key: m.value,
2412
+ class: W(["typeItem p8-16 mb4 radius4 txt-nowrap", [a(e).type === m.value && "active", m.hide && "hide"]]),
2413
+ onClick: (u) => f(m.value)
2414
+ }, V(m.label), 11, Ml))), 128))
2418
2415
  ])
2419
2416
  ]),
2420
- c("div", Al, [
2421
- c("div", El, [
2422
- c("div", Vl, [
2423
- c("span", null, V(r.$l("Columns")), 1),
2424
- c("span", Ll, V(a(e).columns[a(e).type].length), 1)
2417
+ i("div", Al, [
2418
+ i("div", El, [
2419
+ i("div", Vl, [
2420
+ i("span", null, V(r.$l("Columns")), 1),
2421
+ i("span", Ll, V(a(e).columns[a(e).type].length), 1)
2425
2422
  ]),
2426
- B(i, { style: { height: "calc(100% - 36px)" } }, {
2423
+ H(c, { style: { height: "calc(100% - 36px)" } }, {
2427
2424
  default: A(() => [
2428
- c("div", Ol, [
2425
+ i("div", Ol, [
2429
2426
  a(e).columns[a(e).type].length === 0 ? ($(), L("span", Il, V(r.$l("No Columns")), 1)) : P("", !0),
2430
- ($(!0), L(re, null, de(a(e).columns[a(e).type], (h, d) => ($(), L("div", {
2431
- key: h.prop,
2427
+ ($(!0), L(re, null, de(a(e).columns[a(e).type], (m, u) => ($(), L("div", {
2428
+ key: m.prop,
2432
2429
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
2433
2430
  }, [
2434
- c("span", null, V(r.$l(h.label)), 1),
2435
- c("div", jl, [
2436
- c("div", {
2431
+ i("span", null, V(r.$l(m.label)), 1),
2432
+ i("div", jl, [
2433
+ i("div", {
2437
2434
  class: "tipbtn left",
2438
2435
  txt: r.$l("Visible"),
2439
- onClick: (m) => _(h, d)
2440
- }, [...u[0] || (u[0] = [
2441
- c("i", { class: "imicon im-plus fs16" }, null, -1)
2436
+ onClick: (v) => _(m, u)
2437
+ }, [...d[0] || (d[0] = [
2438
+ i("i", { class: "imicon im-plus fs16" }, null, -1)
2442
2439
  ])], 8, zl)
2443
2440
  ])
2444
2441
  ]))), 128))
@@ -2447,35 +2444,35 @@ const Wo = gt({
2447
2444
  _: 1
2448
2445
  })
2449
2446
  ]),
2450
- c("div", Nl, [
2451
- c("div", Fl, [
2452
- c("span", null, V(r.$l("Visible Columns")), 1),
2453
- c("span", Hl, V(a(e).visible.length), 1)
2447
+ i("div", Nl, [
2448
+ i("div", Fl, [
2449
+ i("span", null, V(r.$l("Visible Columns")), 1),
2450
+ i("span", Hl, V(a(e).visible.length), 1)
2454
2451
  ]),
2455
- c("div", Bl, [
2456
- c("div", Rl, [
2452
+ i("div", Bl, [
2453
+ i("div", Rl, [
2457
2454
  a(e).fixed.length === 0 ? ($(), L("span", Dl, V(r.$l("No Fixed Columns")), 1)) : P("", !0),
2458
- B(i, { height: a(C) }, {
2455
+ H(c, { height: a(C) }, {
2459
2456
  default: A(() => [
2460
- B(a(He), {
2457
+ H(a(He), {
2461
2458
  list: a(e).fixed,
2462
- "item-key": (h) => h,
2459
+ "item-key": (m) => m,
2463
2460
  handle: ".im-handle",
2464
2461
  "ghost-class": "ghost"
2465
2462
  }, {
2466
- item: A(({ element: h, index: d }) => [
2467
- c("div", Kl, [
2468
- c("div", Pl, [
2469
- u[1] || (u[1] = c("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
2470
- c("span", null, V(r.$l(h.label)), 1)
2463
+ item: A(({ element: m, index: u }) => [
2464
+ i("div", Kl, [
2465
+ i("div", Pl, [
2466
+ d[1] || (d[1] = i("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
2467
+ i("span", null, V(r.$l(m.label)), 1)
2471
2468
  ]),
2472
- c("div", Ul, [
2473
- c("div", {
2469
+ i("div", Ul, [
2470
+ i("div", {
2474
2471
  class: "tipbtn red left",
2475
2472
  txt: r.$l("Unfixed"),
2476
- onClick: (m) => v(h, d)
2477
- }, [...u[2] || (u[2] = [
2478
- c("i", { class: "imicon im-download1 fs14" }, null, -1)
2473
+ onClick: (v) => b(m, u)
2474
+ }, [...d[2] || (d[2] = [
2475
+ i("i", { class: "imicon im-download1 fs14" }, null, -1)
2479
2476
  ])], 8, Wl)
2480
2477
  ])
2481
2478
  ])
@@ -2486,40 +2483,40 @@ const Wo = gt({
2486
2483
  _: 1
2487
2484
  }, 8, ["height"])
2488
2485
  ]),
2489
- u[6] || (u[6] = c("div", { class: "p4-0" }, [
2490
- c("div", { class: "border-t" })
2486
+ d[6] || (d[6] = i("div", { class: "p4-0" }, [
2487
+ i("div", { class: "border-t" })
2491
2488
  ], -1)),
2492
- c("div", Gl, [
2489
+ i("div", Gl, [
2493
2490
  a(e).visible.length === 0 ? ($(), L("span", Jl, V(r.$l("No Columns")), 1)) : P("", !0),
2494
- B(i, { height: a(x) }, {
2491
+ H(c, { height: a(x) }, {
2495
2492
  default: A(() => [
2496
- B(a(He), {
2493
+ H(a(He), {
2497
2494
  list: a(e).visible,
2498
- "item-key": (h) => h,
2495
+ "item-key": (m) => m,
2499
2496
  options: { lockAxis: "y" },
2500
2497
  handle: ".im-handle",
2501
2498
  "ghost-class": "ghost"
2502
2499
  }, {
2503
- item: A(({ element: h, index: d }) => [
2504
- c("div", ql, [
2505
- c("div", Yl, [
2506
- u[3] || (u[3] = c("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
2507
- c("span", null, V(r.$l(h.label)), 1)
2500
+ item: A(({ element: m, index: u }) => [
2501
+ i("div", ql, [
2502
+ i("div", Yl, [
2503
+ d[3] || (d[3] = i("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
2504
+ i("span", null, V(r.$l(m.label)), 1)
2508
2505
  ]),
2509
- c("div", Zl, [
2510
- c("div", {
2506
+ i("div", Zl, [
2507
+ i("div", {
2511
2508
  class: "tipbtn left",
2512
2509
  txt: r.$l("Fixed"),
2513
- onClick: (m) => y(h, d)
2514
- }, [...u[4] || (u[4] = [
2515
- c("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
2510
+ onClick: (v) => g(m, u)
2511
+ }, [...d[4] || (d[4] = [
2512
+ i("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
2516
2513
  ])], 8, Xl),
2517
- c("div", {
2514
+ i("div", {
2518
2515
  class: "tipbtn red left",
2519
2516
  txt: r.$l("Hide"),
2520
- onClick: (m) => b(h, d)
2521
- }, [...u[5] || (u[5] = [
2522
- c("i", { class: "imicon im-close fs14" }, null, -1)
2517
+ onClick: (v) => y(m, u)
2518
+ }, [...d[5] || (d[5] = [
2519
+ i("i", { class: "imicon im-close fs14" }, null, -1)
2523
2520
  ])], 8, Ql)
2524
2521
  ])
2525
2522
  ])
@@ -2578,18 +2575,18 @@ const Wo = gt({
2578
2575
  n("mounted"), f(), _();
2579
2576
  }, f = () => {
2580
2577
  const w = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), r = ["selection", "operation"];
2581
- e.columns = w.filter((u) => !r.includes(u.type) && u.label);
2578
+ e.columns = w.filter((d) => !r.includes(d.type) && d.label);
2582
2579
  }, _ = () => {
2583
2580
  o.selection.length && (e.onlySelection = !0);
2584
- }, y = (w, r) => {
2585
- w ? r.children.forEach((u) => {
2586
- u.visible = !0;
2587
- }) : r.children.forEach((u) => {
2588
- u.visible = !1;
2581
+ }, g = (w, r) => {
2582
+ w ? r.children.forEach((d) => {
2583
+ d.visible = !0;
2584
+ }) : r.children.forEach((d) => {
2585
+ d.visible = !1;
2589
2586
  });
2590
- }, v = () => {
2587
+ }, b = () => {
2591
2588
  window.$copy(T());
2592
- }, b = async () => {
2589
+ }, y = async () => {
2593
2590
  e.loading = !0;
2594
2591
  try {
2595
2592
  const w = T("download");
@@ -2599,44 +2596,44 @@ const Wo = gt({
2599
2596
  e.loading = !1;
2600
2597
  }
2601
2598
  }, T = (w) => {
2602
- const r = e.onlySelection ? o.selection : o.list, u = {}, i = [];
2599
+ const r = e.onlySelection ? o.selection : o.list, d = {}, c = [];
2603
2600
  e.columns.filter((S) => S.visible).forEach((S) => {
2604
- i.push(window.$l(S.label)), u[S.prop] = !0;
2601
+ c.push(window.$l(S.label)), d[S.prop] = !0;
2605
2602
  });
2606
- let k = "", h = [], d = w === "download" ? "," : " ";
2607
- (e.useHead || w) && (k = i.join(d) + `
2603
+ let k = "", m = [], u = w === "download" ? "," : " ";
2604
+ (e.useHead || w) && (k = c.join(u) + `
2608
2605
  `);
2609
- let m = [], g;
2610
- return Object.keys(u).forEach((S, I) => {
2611
- S.includes("country") && (g = I);
2612
- const z = [];
2613
- r.forEach((F) => {
2614
- F[S] !== void 0 && z.push(F[S]);
2615
- }), m.push(z);
2616
- }), m.forEach((S, I) => {
2617
- !e.useCountryCode && g === I ? S.forEach((z, F) => {
2618
- let R = z;
2619
- window.$getType(z) === "Array" ? R = z.map((Q) => x[Q.toUpperCase()].label.$l()).join(",") : window.$getType(z) === "String" ? R = z.split(",").map((Q) => x[Q.toUpperCase()].label.$l()).join(",") : R = JSON.stringify(z), h[F] ? h[F] += R + d : h[F] = R + d;
2620
- }) : S.forEach((z, F) => {
2621
- h[F] ? h[F] += z + d : h[F] = z + d;
2606
+ let v = [], h;
2607
+ return Object.keys(d).forEach((S, O) => {
2608
+ S.includes("country") && (h = O);
2609
+ const B = [];
2610
+ r.forEach((N) => {
2611
+ N[S] !== void 0 && B.push(N[S]);
2612
+ }), v.push(B);
2613
+ }), v.forEach((S, O) => {
2614
+ !e.useCountryCode && h === O ? S.forEach((B, N) => {
2615
+ let R = B;
2616
+ window.$getType(B) === "Array" ? R = B.map((Q) => x[Q.toUpperCase()].label.$l()).join(",") : window.$getType(B) === "String" ? R = B.split(",").map((Q) => x[Q.toUpperCase()].label.$l()).join(",") : R = JSON.stringify(B), m[N] ? m[N] += R + u : m[N] = R + u;
2617
+ }) : S.forEach((B, N) => {
2618
+ m[N] ? m[N] += B + u : m[N] = B + u;
2622
2619
  });
2623
- }), `${k}${h.join(`
2620
+ }), `${k}${m.join(`
2624
2621
  `)}`;
2625
- }, M = O(() => {
2622
+ }, M = I(() => {
2626
2623
  const w = window.$d().format("YYYYMMDDHHmmss");
2627
2624
  return `${o.tableName}_${w}`;
2628
- }), p = O(() => {
2625
+ }), p = I(() => {
2629
2626
  const w = {};
2630
2627
  return e.columns.forEach((r) => {
2631
- const u = r.type ? r.type : "normal", i = {
2632
- label: C[u],
2633
- type: u,
2628
+ const d = r.type ? r.type : "normal", c = {
2629
+ label: C[d],
2630
+ type: d,
2634
2631
  visible: 0
2635
2632
  };
2636
- w[u] ? (w[u].children.push(r), r.visible && w[u].visible++) : (i.children = [r], r.visible && i.visible++, w[u] = i);
2633
+ w[d] ? (w[d].children.push(r), r.visible && w[d].visible++) : (c.children = [r], r.visible && c.visible++, w[d] = c);
2637
2634
  }), Object.keys(w).forEach((r) => {
2638
- const u = w[r].visible === w[r].children.length, i = w[r].visible === 0;
2639
- u ? (w[r].checkstatus = !0, w[r].indeterminate = !1) : i ? (w[r].checkstatus = !1, w[r].indeterminate = !1) : (w[r].checkstatus = !1, w[r].indeterminate = !0);
2635
+ const d = w[r].visible === w[r].children.length, c = w[r].visible === 0;
2636
+ d ? (w[r].checkstatus = !0, w[r].indeterminate = !1) : c ? (w[r].checkstatus = !1, w[r].indeterminate = !1) : (w[r].checkstatus = !1, w[r].indeterminate = !0);
2640
2637
  }), w;
2641
2638
  }), C = {
2642
2639
  asa: "Asa Metrics",
@@ -2646,23 +2643,23 @@ const Wo = gt({
2646
2643
  "Check All".$l(), "Cancel All".$l();
2647
2644
  const x = Xe("asa.countryAll.obj");
2648
2645
  return (w, r) => {
2649
- const u = H("el-checkbox"), i = H("el-button"), k = H("MvcAlert"), h = H("el-switch"), d = H("Input"), m = H("DrawerArea");
2650
- return $(), G(m, Se(w.$attrs, { class: "MvcTableColumnDownload" }), {
2646
+ const d = F("el-checkbox"), c = F("el-button"), k = F("MvcAlert"), m = F("el-switch"), u = F("Input"), v = F("DrawerArea");
2647
+ return $(), G(v, Se(w.$attrs, { class: "MvcTableColumnDownload" }), {
2651
2648
  cancel: A(() => [
2652
- B(d, {
2649
+ H(u, {
2653
2650
  modelValue: a(e).fileName,
2654
- "onUpdate:modelValue": r[3] || (r[3] = (g) => a(e).fileName = g),
2651
+ "onUpdate:modelValue": r[3] || (r[3] = (h) => a(e).fileName = h),
2655
2652
  icon: "catalog",
2656
2653
  placeholder: a(M),
2657
2654
  class: "w600"
2658
2655
  }, {
2659
2656
  append: A(() => [
2660
- B(i, {
2657
+ H(c, {
2661
2658
  loading: a(e).loading,
2662
- onClick: b
2659
+ onClick: y
2663
2660
  }, {
2664
2661
  icon: A(() => [...r[5] || (r[5] = [
2665
- c("i", { class: "imicon im-download1" }, null, -1)
2662
+ i("i", { class: "imicon im-download1" }, null, -1)
2666
2663
  ])]),
2667
2664
  default: A(() => [
2668
2665
  se(" " + V(w.$l("Download")), 1)
@@ -2675,35 +2672,35 @@ const Wo = gt({
2675
2672
  ]),
2676
2673
  submit: A(() => [...r[6] || (r[6] = [])]),
2677
2674
  default: A(() => [
2678
- c("div", os, [
2679
- B(k, null, {
2675
+ i("div", os, [
2676
+ H(k, null, {
2680
2677
  default: A(() => [
2681
- c("div", ns, [
2682
- c("span", null, V(w.$l("Total")), 1),
2683
- c("span", null, V(o.list.length), 1)
2678
+ i("div", ns, [
2679
+ i("span", null, V(w.$l("Total")), 1),
2680
+ i("span", null, V(o.list.length), 1)
2684
2681
  ]),
2685
2682
  o.selection.length ? ($(), L("div", ls, [
2686
- c("span", null, V(w.$l("Selection")), 1),
2687
- c("span", null, V(o.selection.length), 1),
2688
- B(u, {
2683
+ i("span", null, V(w.$l("Selection")), 1),
2684
+ i("span", null, V(o.selection.length), 1),
2685
+ H(d, {
2689
2686
  modelValue: a(e).onlySelection,
2690
- "onUpdate:modelValue": r[0] || (r[0] = (g) => a(e).onlySelection = g),
2687
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => a(e).onlySelection = h),
2691
2688
  label: w.$l("Only Selection")
2692
2689
  }, null, 8, ["modelValue", "label"])
2693
2690
  ])) : P("", !0),
2694
- c("div", ss, [
2695
- B(i, { onClick: v }, {
2691
+ i("div", ss, [
2692
+ H(c, { onClick: b }, {
2696
2693
  icon: A(() => [...r[4] || (r[4] = [
2697
- c("i", { class: "imicon im-copy" }, null, -1)
2694
+ i("i", { class: "imicon im-copy" }, null, -1)
2698
2695
  ])]),
2699
2696
  default: A(() => [
2700
2697
  se(" " + V(w.$l("Copy to Clipboard")), 1)
2701
2698
  ]),
2702
2699
  _: 1
2703
2700
  }),
2704
- B(u, {
2701
+ H(d, {
2705
2702
  modelValue: a(e).useHead,
2706
- "onUpdate:modelValue": r[1] || (r[1] = (g) => a(e).useHead = g),
2703
+ "onUpdate:modelValue": r[1] || (r[1] = (h) => a(e).useHead = h),
2707
2704
  label: w.$l("With Table Head")
2708
2705
  }, null, 8, ["modelValue", "label"])
2709
2706
  ])
@@ -2711,37 +2708,37 @@ const Wo = gt({
2711
2708
  _: 1
2712
2709
  })
2713
2710
  ]),
2714
- c("div", as, [
2715
- ($(!0), L(re, null, de(a(p), (g) => ($(), L("div", {
2716
- key: g.type
2711
+ i("div", as, [
2712
+ ($(!0), L(re, null, de(a(p), (h) => ($(), L("div", {
2713
+ key: h.type
2717
2714
  }, [
2718
- c("div", rs, [
2719
- c("span", is, V(g.label), 1),
2720
- B(u, {
2721
- modelValue: g.checkstatus,
2722
- "onUpdate:modelValue": (S) => g.checkstatus = S,
2723
- indeterminate: g.indeterminate,
2715
+ i("div", rs, [
2716
+ i("span", is, V(h.label), 1),
2717
+ H(d, {
2718
+ modelValue: h.checkstatus,
2719
+ "onUpdate:modelValue": (S) => h.checkstatus = S,
2720
+ indeterminate: h.indeterminate,
2724
2721
  label: w.$l("Check"),
2725
- onChange: (S) => y(S, g)
2722
+ onChange: (S) => g(S, h)
2726
2723
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
2727
2724
  ]),
2728
- ($(!0), L(re, null, de(g.children, (S, I) => ($(), G(u, {
2725
+ ($(!0), L(re, null, de(h.children, (S, O) => ($(), G(d, {
2729
2726
  modelValue: S.visible,
2730
- "onUpdate:modelValue": (z) => S.visible = z,
2731
- key: I,
2727
+ "onUpdate:modelValue": (B) => S.visible = B,
2728
+ key: O,
2732
2729
  label: S.label,
2733
2730
  value: S.value,
2734
2731
  class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
2735
2732
  }, {
2736
2733
  default: A(() => {
2737
- var z;
2734
+ var B;
2738
2735
  return [
2739
- c("div", cs, [
2740
- c("span", null, V(S.label), 1),
2741
- (z = S.prop) != null && z.includes("country") ? ($(), G(h, {
2736
+ i("div", cs, [
2737
+ i("span", null, V(S.label), 1),
2738
+ (B = S.prop) != null && B.includes("country") ? ($(), G(m, {
2742
2739
  key: 0,
2743
2740
  modelValue: a(e).useCountryCode,
2744
- "onUpdate:modelValue": r[2] || (r[2] = (F) => a(e).useCountryCode = F),
2741
+ "onUpdate:modelValue": r[2] || (r[2] = (N) => a(e).useCountryCode = N),
2745
2742
  "inline-prompt": "",
2746
2743
  "active-text": "Use Alpha-2 Code",
2747
2744
  "inactive-text": "Use Country Name",
@@ -2877,16 +2874,16 @@ const Wo = gt({
2877
2874
  cpt: Le(us)
2878
2875
  }
2879
2876
  ]
2880
- }), _ = le(null), { proxy: y } = Te();
2877
+ }), _ = le(null), { proxy: g } = Te();
2881
2878
  yt(() => {
2882
- b();
2879
+ y();
2883
2880
  }), fe(() => {
2884
2881
  T();
2885
2882
  });
2886
- const v = o, b = () => {
2883
+ const b = o, y = () => {
2887
2884
  n.loading = e.defaultLoading, e.pageSize && (s.pageSize = e.pageSize);
2888
2885
  }, T = () => {
2889
- g(), e.defer === !1 && p();
2886
+ h(), e.defer === !1 && p();
2890
2887
  }, M = (U) => {
2891
2888
  p(U);
2892
2889
  }, p = async (U = {}) => {
@@ -2923,39 +2920,39 @@ const Wo = gt({
2923
2920
  p({
2924
2921
  pageStart: 1
2925
2922
  });
2926
- }, u = () => {
2923
+ }, d = () => {
2927
2924
  p();
2928
- }, i = (U) => {
2929
- if (n.selection = U, v("selection-change", U), n.shiftKey) {
2925
+ }, c = (U) => {
2926
+ if (n.selection = U, b("selection-change", U), n.shiftKey) {
2930
2927
  const q = U[U.length - 2], ge = U[U.length - 1], ne = s.list.filter1((ye) => ye.id === q.id).index || 0, ce = s.list.filter1((ye) => ye.id === ge.id).index;
2931
2928
  let ve = ne, _e = ce;
2932
2929
  ne > ce && (ve = ce, _e = ne);
2933
2930
  for (let ye = ve; ye <= _e; ye++)
2934
- y.$refs.body.toggleRowSelection(s.list[ye], !0);
2931
+ g.$refs.body.toggleRowSelection(s.list[ye], !0);
2935
2932
  }
2936
2933
  }, k = () => {
2937
- n.loading || (p({ refresh: !0 }), v("refresh"));
2938
- }, h = () => {
2934
+ n.loading || (p({ refresh: !0 }), b("refresh"));
2935
+ }, m = () => {
2939
2936
  f.current = 0;
2940
- }, d = () => {
2937
+ }, u = () => {
2941
2938
  f.current = 1;
2942
- }, m = () => {
2939
+ }, v = () => {
2943
2940
  n.tableKey++;
2944
- }, g = () => {
2945
- document.addEventListener("keydown", S), document.addEventListener("keyup", I);
2941
+ }, h = () => {
2942
+ document.addEventListener("keydown", S), document.addEventListener("keyup", O);
2946
2943
  }, S = (U) => {
2947
2944
  U.keyCode === 16 && (n.shiftKey = !0);
2948
- }, I = (U) => {
2945
+ }, O = (U) => {
2949
2946
  U.keyCode === 16 && (n.shiftKey = !1);
2950
- }, z = () => {
2951
- document.removeEventListener("keydown", S), document.removeEventListener("keyup", I);
2952
- }, F = ({ i: U, row: q }) => {
2947
+ }, B = () => {
2948
+ document.removeEventListener("keydown", S), document.removeEventListener("keyup", O);
2949
+ }, N = ({ i: U, row: q }) => {
2953
2950
  s.list[U] = q;
2954
- }, R = O(() => {
2951
+ }, R = I(() => {
2955
2952
  var q;
2956
2953
  let U = e.height || ((q = globalThis.$config.options) == null ? void 0 : q.pageHeight) || 640;
2957
2954
  return e.noheader === !1 && (U -= 64), e.nofooter === !1 && (U -= 56), U -= e.minusHeight, U;
2958
- }), Q = O(() => !!s.summary), ue = O(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), pe = O(() => {
2955
+ }), Q = I(() => !!s.summary), ue = I(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), pe = I(() => {
2959
2956
  if (e.tool) {
2960
2957
  const { column: U = !0, download: q = !0, refresh: ge = !0 } = e.tool;
2961
2958
  return {
@@ -2967,18 +2964,18 @@ const Wo = gt({
2967
2964
  return !1;
2968
2965
  });
2969
2966
  return Ee(() => {
2970
- z();
2967
+ B();
2971
2968
  }), t({
2972
2969
  initTable: M,
2973
- editRow: F
2970
+ editRow: N
2974
2971
  }), (U, q) => {
2975
- const ge = H("el-button"), ne = H("Loading"), ce = H("el-table"), ve = H("el-pagination"), _e = H("Drawer");
2972
+ const ge = F("el-button"), ne = F("Loading"), ce = F("el-table"), ve = F("el-pagination"), _e = F("Drawer");
2976
2973
  return $(), L("div", ds, [
2977
2974
  e.noheader === !1 ? ($(), L("div", {
2978
2975
  key: 0,
2979
2976
  class: W(["flexMode hb g12 p16 bg-white", e.autoHeader ? "minh64" : "h64"])
2980
2977
  }, [
2981
- c("div", {
2978
+ i("div", {
2982
2979
  class: W(["flexMode vc flexGrow maxwp100", e.headerClass])
2983
2980
  }, [
2984
2981
  Y(U.$slots, "header", {}, void 0, !0)
@@ -2989,7 +2986,7 @@ const Wo = gt({
2989
2986
  onClick: k
2990
2987
  }, {
2991
2988
  icon: A(() => [...q[2] || (q[2] = [
2992
- c("i", { class: "imicon im-reload" }, null, -1)
2989
+ i("i", { class: "imicon im-reload" }, null, -1)
2993
2990
  ])]),
2994
2991
  default: A(() => [
2995
2992
  se(" " + V(U.$l("Refresh")), 1)
@@ -2998,10 +2995,10 @@ const Wo = gt({
2998
2995
  })) : P("", !0),
2999
2996
  a(pe).column ? ($(), G(ge, {
3000
2997
  key: 1,
3001
- onClick: h
2998
+ onClick: m
3002
2999
  }, {
3003
3000
  icon: A(() => [...q[3] || (q[3] = [
3004
- c("i", { class: "imicon im-layout" }, null, -1)
3001
+ i("i", { class: "imicon im-layout" }, null, -1)
3005
3002
  ])]),
3006
3003
  default: A(() => [
3007
3004
  se(" " + V(U.$l("Columns")), 1)
@@ -3010,10 +3007,10 @@ const Wo = gt({
3010
3007
  })) : P("", !0),
3011
3008
  a(pe).download ? ($(), G(ge, {
3012
3009
  key: 2,
3013
- onClick: d
3010
+ onClick: u
3014
3011
  }, {
3015
3012
  icon: A(() => [...q[4] || (q[4] = [
3016
- c("i", { class: "imicon im-download" }, null, -1)
3013
+ i("i", { class: "imicon im-download" }, null, -1)
3017
3014
  ])]),
3018
3015
  default: A(() => [
3019
3016
  se(" " + V(U.$l("Download")), 1)
@@ -3022,8 +3019,8 @@ const Wo = gt({
3022
3019
  })) : P("", !0)
3023
3020
  ])) : P("", !0)
3024
3021
  ], 2)) : P("", !0),
3025
- c("div", ps, [
3026
- B(ne, {
3022
+ i("div", ps, [
3023
+ H(ne, {
3027
3024
  loading: a(n).loading
3028
3025
  }, null, 8, ["loading"]),
3029
3026
  ($(), G(ce, {
@@ -3039,10 +3036,10 @@ const Wo = gt({
3039
3036
  "show-summary": a(Q),
3040
3037
  "summary-method": x,
3041
3038
  class: "MainTable",
3042
- onSelectionChange: i
3039
+ onSelectionChange: c
3043
3040
  }, {
3044
3041
  default: A(() => [
3045
- B(a(Sl), Se({
3042
+ H(a(Sl), Se({
3046
3043
  "table-name": e.tableName,
3047
3044
  column: a(pe) ? a(pe).column : !1
3048
3045
  }, U.$attrs), {
@@ -3056,7 +3053,7 @@ const Wo = gt({
3056
3053
  }, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
3057
3054
  ]),
3058
3055
  e.nofooter === !1 ? ($(), L("div", ms, [
3059
- B(ve, {
3056
+ H(ve, {
3060
3057
  "current-page": a(s).page,
3061
3058
  "onUpdate:currentPage": q[0] || (q[0] = (ye) => a(s).page = ye),
3062
3059
  background: "",
@@ -3067,17 +3064,17 @@ const Wo = gt({
3067
3064
  layout: a(ue),
3068
3065
  class: "wp100",
3069
3066
  onSizeChange: r,
3070
- onCurrentChange: u
3067
+ onCurrentChange: d
3071
3068
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
3072
3069
  ])) : P("", !0),
3073
- B(_e, {
3070
+ H(_e, {
3074
3071
  current: a(f).current,
3075
3072
  "onUpdate:current": q[1] || (q[1] = (ye) => a(f).current = ye),
3076
3073
  "table-name": e.tableName,
3077
3074
  drawer: a(f).list,
3078
3075
  list: a(s).list,
3079
3076
  selection: a(n).selection,
3080
- onInitColumn: m
3077
+ onInitColumn: v
3081
3078
  }, null, 8, ["current", "table-name", "drawer", "list", "selection"])
3082
3079
  ]);
3083
3080
  };
@@ -3132,24 +3129,24 @@ const Wo = gt({
3132
3129
  },
3133
3130
  emits: ["update:modelValue", "change"],
3134
3131
  setup(l, { emit: t }) {
3135
- const o = l, e = t, n = We(), s = (b) => b == null ? b : ["Object", "Array"].includes(globalThis.$getType(b)) ? b[o.valueKey] : b, f = (b) => {
3136
- e("update:modelValue", b);
3137
- const T = o.options.find((M) => s(M) === b);
3138
- e("change", b, T);
3139
- }, _ = O(
3140
- () => o.options.find((b) => s(b) === o.modelValue)
3141
- ), y = O(() => {
3142
- const b = _.value;
3143
- if (!(!b || !["Object", "Array"].includes(globalThis.$getType(b))))
3144
- return b[o.componentKey];
3145
- }), v = O(() => {
3146
- const b = _.value;
3147
- return !b || !["Object", "Array"].includes(globalThis.$getType(b)) ? {} : b[o.panePropsKey] ?? {};
3132
+ const o = l, e = t, n = We(), s = (y) => y == null ? y : ["Object", "Array"].includes(globalThis.$getType(y)) ? y[o.valueKey] : y, f = (y) => {
3133
+ e("update:modelValue", y);
3134
+ const T = o.options.find((M) => s(M) === y);
3135
+ e("change", y, T);
3136
+ }, _ = I(
3137
+ () => o.options.find((y) => s(y) === o.modelValue)
3138
+ ), g = I(() => {
3139
+ const y = _.value;
3140
+ if (!(!y || !["Object", "Array"].includes(globalThis.$getType(y))))
3141
+ return y[o.componentKey];
3142
+ }), b = I(() => {
3143
+ const y = _.value;
3144
+ return !y || !["Object", "Array"].includes(globalThis.$getType(y)) ? {} : y[o.panePropsKey] ?? {};
3148
3145
  });
3149
- return (b, T) => {
3150
- const M = H("BtnGroup");
3146
+ return (y, T) => {
3147
+ const M = F("BtnGroup");
3151
3148
  return $(), L("div", Se({ class: "MvcTabs" }, a(n)), [
3152
- B(M, {
3149
+ H(M, {
3153
3150
  "model-value": o.modelValue,
3154
3151
  options: o.options,
3155
3152
  "value-key": o.valueKey,
@@ -3159,8 +3156,8 @@ const Wo = gt({
3159
3156
  disabled: o.disabled,
3160
3157
  "onUpdate:modelValue": f
3161
3158
  }, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
3162
- c("div", bs, [
3163
- a(y) ? ($(), G(ht(a(y)), je(Se({ key: 0 }, a(v))), null, 16)) : P("", !0)
3159
+ i("div", bs, [
3160
+ a(g) ? ($(), G(ht(a(g)), je(Se({ key: 0 }, a(b))), null, 16)) : P("", !0)
3164
3161
  ])
3165
3162
  ], 16);
3166
3163
  };
@@ -3212,53 +3209,53 @@ const Wo = gt({
3212
3209
  isComposing: !1
3213
3210
  }), f = t, { proxy: _ } = Te();
3214
3211
  fe(() => {
3215
- var u, i;
3216
- const r = (u = e.value) == null ? void 0 : u.$el;
3217
- n = (i = r == null ? void 0 : r.querySelector) == null ? void 0 : i.call(r, "textarea"), n && (n.addEventListener("compositionstart", y), n.addEventListener("compositionend", v));
3212
+ var d, c;
3213
+ const r = (d = e.value) == null ? void 0 : d.$el;
3214
+ n = (c = r == null ? void 0 : r.querySelector) == null ? void 0 : c.call(r, "textarea"), n && (n.addEventListener("compositionstart", g), n.addEventListener("compositionend", b));
3218
3215
  });
3219
- const y = () => {
3216
+ const g = () => {
3220
3217
  s.isComposing = !0;
3221
- }, v = () => {
3218
+ }, b = () => {
3222
3219
  s.isComposing = !1, $e(() => p(s.val));
3223
- }, b = (r) => {
3220
+ }, y = (r) => {
3224
3221
  s.isComposing || p(r);
3225
3222
  }, T = (r) => {
3226
- const u = String(r ?? "").split(/\r?\n/);
3227
- return o.output === "array" ? u : u.join(",");
3223
+ const d = String(r ?? "").split(/\r?\n/);
3224
+ return o.output === "array" ? d : d.join(",");
3228
3225
  }, M = (r) => Array.isArray(r) ? r.join(`
3229
3226
  `) : String(r ?? "").replace(/,/g, `
3230
3227
  `), p = (r) => {
3231
- const u = T(r);
3232
- f("update:modelValue", u), f("input", u);
3233
- }, C = O(() => {
3228
+ const d = T(r);
3229
+ f("update:modelValue", d), f("input", d);
3230
+ }, C = I(() => {
3234
3231
  if (!o.height) return _.$attrs["input-style"];
3235
3232
  const r = typeof o.height == "number" ? `${o.height}px` : o.height;
3236
3233
  return { ..._.$attrs["input-style"] && typeof _.$attrs["input-style"] == "object" ? { ..._.$attrs["input-style"] } : {}, height: r, minHeight: r };
3237
- }), x = O(() => !!(_.$attrs.maxlength || w.value)), w = O(() => _.$attrs.max);
3234
+ }), x = I(() => !!(_.$attrs.maxlength || w.value)), w = I(() => _.$attrs.max);
3238
3235
  return be(
3239
3236
  () => o.modelValue,
3240
3237
  (r) => {
3241
- const u = M(r);
3242
- s.val !== u && (s.val = u);
3238
+ const d = M(r);
3239
+ s.val !== d && (s.val = d);
3243
3240
  },
3244
3241
  { immediate: !0 }
3245
3242
  ), Ee(() => {
3246
- n && (n.removeEventListener("compositionstart", y), n.removeEventListener("compositionend", v), n = null);
3247
- }), (r, u) => {
3248
- const i = H("el-input");
3249
- return $(), G(i, Se({
3243
+ n && (n.removeEventListener("compositionstart", g), n.removeEventListener("compositionend", b), n = null);
3244
+ }), (r, d) => {
3245
+ const c = F("el-input");
3246
+ return $(), G(c, Se({
3250
3247
  ref_key: "inputRef",
3251
3248
  ref: e,
3252
3249
  type: "textarea",
3253
3250
  modelValue: a(s).val,
3254
- "onUpdate:modelValue": u[0] || (u[0] = (k) => a(s).val = k),
3251
+ "onUpdate:modelValue": d[0] || (d[0] = (k) => a(s).val = k),
3255
3252
  rows: o.rows,
3256
3253
  style: r.$attrs.style,
3257
3254
  "input-style": a(C),
3258
3255
  "show-word-limit": a(x),
3259
3256
  maxlength: a(w),
3260
3257
  class: "MvcTextarea"
3261
- }, r.$attrs, { onInput: b }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"]);
3258
+ }, r.$attrs, { onInput: y }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"]);
3262
3259
  };
3263
3260
  }
3264
3261
  }), Cs = /* @__PURE__ */ ie(ws, [["__scopeId", "data-v-4dba94bf"]]), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3318,38 +3315,38 @@ const Wo = gt({
3318
3315
  });
3319
3316
  const n = t, s = () => {
3320
3317
  n("mounted");
3321
- const r = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), u = {};
3322
- r.forEach((i) => {
3323
- i.type && (u[i.type] = !0), i.visible ? i.type === "selection" ? e.selection.push(i) : i.type === "operation" ? e.operation.push(i) : i.label && (i.fixed ? e.fixed.push(i) : e.visible.push(i)) : i.type === "mmp" ? e.columns.mmp.push(i) : i.type === "asa" ? e.columns.asa.push(i) : e.columns.normal.push(i);
3324
- }), e.columnType = u;
3318
+ const r = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), d = {};
3319
+ r.forEach((c) => {
3320
+ c.type && (d[c.type] = !0), c.visible ? c.type === "selection" ? e.selection.push(c) : c.type === "operation" ? e.operation.push(c) : c.label && (c.fixed ? e.fixed.push(c) : e.visible.push(c)) : c.type === "mmp" ? e.columns.mmp.push(c) : c.type === "asa" ? e.columns.asa.push(c) : e.columns.normal.push(c);
3321
+ }), e.columnType = d;
3325
3322
  }, f = (r) => {
3326
3323
  e.type = r;
3327
- }, _ = (r, u) => {
3328
- r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(u, 1) : e.columns.normal.splice(u, 1);
3329
- }, y = (r, u) => {
3330
- e.fixed.unshift(r), e.visible.splice(u, 1);
3331
- }, v = (r, u) => {
3332
- e.visible.unshift(r), e.fixed.splice(u, 1);
3333
- }, b = (r, u) => {
3334
- e.visible.splice(u, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
3324
+ }, _ = (r, d) => {
3325
+ r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(d, 1) : e.columns.normal.splice(d, 1);
3326
+ }, g = (r, d) => {
3327
+ e.fixed.unshift(r), e.visible.splice(d, 1);
3328
+ }, b = (r, d) => {
3329
+ e.visible.unshift(r), e.fixed.splice(d, 1);
3330
+ }, y = (r, d) => {
3331
+ e.visible.splice(d, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
3335
3332
  }, T = async () => {
3336
3333
  e.loading = !0, window.$pm(() => {
3337
- const { fixed: r, visible: u, columns: i, selection: k, operation: h } = e;
3338
- let d = [];
3339
- Object.keys(i).map((g) => {
3340
- d = d.concat(i[g]);
3341
- }), r.forEach((g) => g.fixed = "left"), d.forEach((g) => g.visible = !1);
3342
- const m = k.concat(r, u, d, h);
3343
- m.forEach((g, S) => g.sort = S), localStorage.setItem(`${o.tableName}_Column`, JSON.stringify(m)), e.loading = !1, n("close"), n("init-column");
3334
+ const { fixed: r, visible: d, columns: c, selection: k, operation: m } = e;
3335
+ let u = [];
3336
+ Object.keys(c).map((h) => {
3337
+ u = u.concat(c[h]);
3338
+ }), r.forEach((h) => h.fixed = "left"), u.forEach((h) => h.visible = !1);
3339
+ const v = k.concat(r, d, u, m);
3340
+ v.forEach((h, S) => h.sort = S), localStorage.setItem(`${o.tableName}_Column`, JSON.stringify(v)), e.loading = !1, n("close"), n("init-column");
3344
3341
  });
3345
3342
  }, M = () => {
3346
3343
  e.loading = !0, localStorage.removeItem(`${o.tableName}_Column`), window.$pm(() => {
3347
3344
  e.loading = !1, n("close"), n("init-column");
3348
3345
  }, 4);
3349
- }, p = O(() => {
3346
+ }, p = I(() => {
3350
3347
  var r;
3351
3348
  return ((r = globalThis.$config.options) == null ? void 0 : r.drawerHeight) || 540;
3352
- }), C = O(() => (p.value * 0.3).toFixed(0)), x = O(() => (p.value * 0.7 - 26).toFixed(0)), w = O(() => [
3349
+ }), C = I(() => (p.value * 0.3).toFixed(0)), x = I(() => (p.value * 0.7 - 26).toFixed(0)), w = I(() => [
3353
3350
  {
3354
3351
  label: "Base Info",
3355
3352
  value: "normal"
@@ -3365,8 +3362,8 @@ const Wo = gt({
3365
3362
  hide: !e.columnType.mmp
3366
3363
  }
3367
3364
  ]);
3368
- return (r, u) => {
3369
- const i = H("el-scrollbar"), k = H("DrawerArea");
3365
+ return (r, d) => {
3366
+ const c = F("el-scrollbar"), k = F("DrawerArea");
3370
3367
  return $(), G(k, {
3371
3368
  loading: a(e).loading,
3372
3369
  noscroll: "",
@@ -3377,41 +3374,41 @@ const Wo = gt({
3377
3374
  onSubmit: T
3378
3375
  }, {
3379
3376
  default: A(() => [
3380
- c("div", $s, [
3381
- c("div", xs, [
3382
- c("div", ks, V(r.$l("Column Type")), 1),
3383
- c("div", Ts, [
3384
- ($(!0), L(re, null, de(a(w), (h) => ($(), L("div", {
3385
- key: h.value,
3386
- class: W(["typeItem p8-16 mb4 radius4", [a(e).type === h.value && "active", h.hide && "hide"]]),
3387
- onClick: (d) => f(h.value)
3377
+ i("div", $s, [
3378
+ i("div", xs, [
3379
+ i("div", ks, V(r.$l("Column Type")), 1),
3380
+ i("div", Ts, [
3381
+ ($(!0), L(re, null, de(a(w), (m) => ($(), L("div", {
3382
+ key: m.value,
3383
+ class: W(["typeItem p8-16 mb4 radius4", [a(e).type === m.value && "active", m.hide && "hide"]]),
3384
+ onClick: (u) => f(m.value)
3388
3385
  }, [
3389
- c("span", As, V(h.label), 1)
3386
+ i("span", As, V(m.label), 1)
3390
3387
  ], 10, Ms))), 128))
3391
3388
  ])
3392
3389
  ]),
3393
- c("div", Es, [
3394
- c("div", Vs, [
3395
- c("div", Ls, [
3396
- c("span", null, V(r.$l("Columns")), 1),
3397
- c("span", Os, V(a(e).columns[a(e).type].length), 1)
3390
+ i("div", Es, [
3391
+ i("div", Vs, [
3392
+ i("div", Ls, [
3393
+ i("span", null, V(r.$l("Columns")), 1),
3394
+ i("span", Os, V(a(e).columns[a(e).type].length), 1)
3398
3395
  ]),
3399
- B(i, { style: { height: "calc(100% - 2.25rem)" } }, {
3396
+ H(c, { style: { height: "calc(100% - 2.25rem)" } }, {
3400
3397
  default: A(() => [
3401
- c("div", Is, [
3398
+ i("div", Is, [
3402
3399
  a(e).columns[a(e).type].length === 0 ? ($(), L("span", js, V(r.$l("No Columns")), 1)) : P("", !0),
3403
- ($(!0), L(re, null, de(a(e).columns[a(e).type], (h, d) => ($(), L("div", {
3404
- key: h.prop,
3400
+ ($(!0), L(re, null, de(a(e).columns[a(e).type], (m, u) => ($(), L("div", {
3401
+ key: m.prop,
3405
3402
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 border radius4 txt-nowrap"
3406
3403
  }, [
3407
- c("span", null, V(r.$l(h.label)), 1),
3408
- c("div", zs, [
3409
- c("div", {
3404
+ i("span", null, V(r.$l(m.label)), 1),
3405
+ i("div", zs, [
3406
+ i("div", {
3410
3407
  class: "tipbtn left",
3411
3408
  txt: r.$l("Visible"),
3412
- onClick: (m) => _(h, d)
3413
- }, [...u[0] || (u[0] = [
3414
- c("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
3409
+ onClick: (v) => _(m, u)
3410
+ }, [...d[0] || (d[0] = [
3411
+ i("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
3415
3412
  ])], 8, Ns)
3416
3413
  ])
3417
3414
  ]))), 128))
@@ -3420,37 +3417,37 @@ const Wo = gt({
3420
3417
  _: 1
3421
3418
  })
3422
3419
  ]),
3423
- c("div", Fs, [
3424
- c("div", Hs, [
3425
- c("span", null, V(r.$l("Visible Columns")), 1),
3426
- c("span", Bs, V(a(e).visible.length), 1)
3420
+ i("div", Fs, [
3421
+ i("div", Hs, [
3422
+ i("span", null, V(r.$l("Visible Columns")), 1),
3423
+ i("span", Bs, V(a(e).visible.length), 1)
3427
3424
  ]),
3428
- c("div", Rs, [
3429
- c("div", Ds, [
3425
+ i("div", Rs, [
3426
+ i("div", Ds, [
3430
3427
  a(e).fixed.length === 0 ? ($(), L("span", Ks, V(r.$l("No Fixed Columns")), 1)) : P("", !0),
3431
- B(i, { height: a(C) }, {
3428
+ H(c, { height: a(C) }, {
3432
3429
  default: A(() => [
3433
- B(a(He), {
3430
+ H(a(He), {
3434
3431
  list: a(e).fixed,
3435
- "item-key": (h) => h,
3432
+ "item-key": (m) => m,
3436
3433
  handle: ".im-handle",
3437
3434
  "ghost-class": "ghost"
3438
3435
  }, {
3439
- item: A(({ element: h, index: d }) => [
3440
- c("div", Ps, [
3441
- c("div", Us, [
3442
- u[1] || (u[1] = c("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
3443
- c("i", { class: "imicon im-handle" })
3436
+ item: A(({ element: m, index: u }) => [
3437
+ i("div", Ps, [
3438
+ i("div", Us, [
3439
+ d[1] || (d[1] = i("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
3440
+ i("i", { class: "imicon im-handle" })
3444
3441
  ], -1)),
3445
- c("span", null, V(r.$l(h.label)), 1)
3442
+ i("span", null, V(r.$l(m.label)), 1)
3446
3443
  ]),
3447
- c("div", Ws, [
3448
- c("div", {
3444
+ i("div", Ws, [
3445
+ i("div", {
3449
3446
  class: "tipbtn red left",
3450
3447
  txt: r.$l("Unfixed"),
3451
- onClick: (m) => v(h, d)
3452
- }, [...u[2] || (u[2] = [
3453
- c("i", { class: "imicon im-minus-square fs20 txt-p hover" }, null, -1)
3448
+ onClick: (v) => b(m, u)
3449
+ }, [...d[2] || (d[2] = [
3450
+ i("i", { class: "imicon im-minus-square fs20 txt-p hover" }, null, -1)
3454
3451
  ])], 8, Gs)
3455
3452
  ])
3456
3453
  ])
@@ -3461,44 +3458,44 @@ const Wo = gt({
3461
3458
  _: 1
3462
3459
  }, 8, ["height"])
3463
3460
  ]),
3464
- c("div", Js, [
3465
- u[3] || (u[3] = c("i", { class: "imicon im-doubleup fs12" }, null, -1)),
3466
- c("span", qs, V(r.$l("Fixed")), 1),
3467
- u[4] || (u[4] = c("i", { class: "imicon im-doubleup fs12" }, null, -1))
3461
+ i("div", Js, [
3462
+ d[3] || (d[3] = i("i", { class: "imicon im-doubleup fs12" }, null, -1)),
3463
+ i("span", qs, V(r.$l("Fixed")), 1),
3464
+ d[4] || (d[4] = i("i", { class: "imicon im-doubleup fs12" }, null, -1))
3468
3465
  ]),
3469
- c("div", Ys, [
3466
+ i("div", Ys, [
3470
3467
  a(e).visible.length === 0 ? ($(), L("span", Zs, V(r.$l("No Columns")), 1)) : P("", !0),
3471
- B(i, { height: a(x) }, {
3468
+ H(c, { height: a(x) }, {
3472
3469
  default: A(() => [
3473
- B(a(He), {
3470
+ H(a(He), {
3474
3471
  list: a(e).visible,
3475
- "item-key": (h) => h,
3472
+ "item-key": (m) => m,
3476
3473
  options: { lockAxis: "y" },
3477
3474
  handle: ".im-handle",
3478
3475
  "ghost-class": "ghost"
3479
3476
  }, {
3480
- item: A(({ element: h, index: d }) => [
3481
- c("div", Xs, [
3482
- c("div", Qs, [
3483
- u[5] || (u[5] = c("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
3484
- c("i", { class: "imicon im-handle" })
3477
+ item: A(({ element: m, index: u }) => [
3478
+ i("div", Xs, [
3479
+ i("div", Qs, [
3480
+ d[5] || (d[5] = i("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
3481
+ i("i", { class: "imicon im-handle" })
3485
3482
  ], -1)),
3486
- c("span", null, V(r.$l(h.label)), 1)
3483
+ i("span", null, V(r.$l(m.label)), 1)
3487
3484
  ]),
3488
- c("div", ea, [
3489
- c("div", {
3485
+ i("div", ea, [
3486
+ i("div", {
3490
3487
  class: "tipbtn left",
3491
3488
  txt: r.$l("Fixed"),
3492
- onClick: (m) => y(h, d)
3493
- }, [...u[6] || (u[6] = [
3494
- c("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
3489
+ onClick: (v) => g(m, u)
3490
+ }, [...d[6] || (d[6] = [
3491
+ i("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
3495
3492
  ])], 8, ta),
3496
- c("div", {
3493
+ i("div", {
3497
3494
  class: "tipbtn red left",
3498
3495
  txt: r.$l("Hide"),
3499
- onClick: (m) => b(h, d)
3500
- }, [...u[7] || (u[7] = [
3501
- c("i", { class: "imicon im-close-square fs20 txt-p hover" }, null, -1)
3496
+ onClick: (v) => y(m, u)
3497
+ }, [...d[7] || (d[7] = [
3498
+ i("i", { class: "imicon im-close-square fs20 txt-p hover" }, null, -1)
3502
3499
  ])], 8, oa)
3503
3500
  ])
3504
3501
  ])
@@ -3553,74 +3550,74 @@ const Wo = gt({
3553
3550
  const n = t, s = () => {
3554
3551
  n("mounted"), f(), _();
3555
3552
  }, f = () => {
3556
- const u = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), i = ["selection", "operation"];
3557
- e.columns = u.filter(
3558
- (k) => !i.includes(k.type) && k.label
3553
+ const d = JSON.parse(localStorage.getItem(`${o.tableName}_Column`)), c = ["selection", "operation"];
3554
+ e.columns = d.filter(
3555
+ (k) => !c.includes(k.type) && k.label
3559
3556
  );
3560
3557
  }, _ = () => {
3561
3558
  o.selection.length && (e.onlySelection = !0);
3562
- }, y = (u, i) => {
3563
- u ? i.children.forEach((k) => {
3559
+ }, g = (d, c) => {
3560
+ d ? c.children.forEach((k) => {
3564
3561
  k.visible = !0;
3565
- }) : i.children.forEach((k) => {
3562
+ }) : c.children.forEach((k) => {
3566
3563
  k.visible = !1;
3567
3564
  });
3568
- }, v = (u) => {
3569
- window.$copy(T({ type: u }));
3570
- }, b = async () => {
3565
+ }, b = (d) => {
3566
+ window.$copy(T({ type: d }));
3567
+ }, y = async () => {
3571
3568
  e.loading = !0;
3572
3569
  try {
3573
- const u = T("download");
3574
- let i = e.fileName || M.value;
3575
- i && !i.toLowerCase().endsWith(".csv") && (i = `${i}.csv`), await vt({ content: u, filename: i, bom: !0 });
3570
+ const d = T("download");
3571
+ let c = e.fileName || M.value;
3572
+ c && !c.toLowerCase().endsWith(".csv") && (c = `${c}.csv`), await vt({ content: d, filename: c, bom: !0 });
3576
3573
  } finally {
3577
3574
  e.loading = !1;
3578
3575
  }
3579
- }, T = (u) => {
3580
- const i = e.onlySelection ? o.selection : o.list, k = {}, h = [];
3581
- e.columns.filter((z) => z.visible).forEach((z) => {
3582
- h.push(window.$l(z.label)), k[z.prop] = !0;
3576
+ }, T = (d) => {
3577
+ const c = e.onlySelection ? o.selection : o.list, k = {}, m = [];
3578
+ e.columns.filter((B) => B.visible).forEach((B) => {
3579
+ m.push(window.$l(B.label)), k[B.prop] = !0;
3583
3580
  });
3584
- let d = "", m = [], g = u === "download" ? "," : " ";
3585
- ["download", "withHeadCopy"].includes(u) && (d = h.join(g) + `
3581
+ let u = "", v = [], h = d === "download" ? "," : " ";
3582
+ ["download", "withHeadCopy"].includes(d) && (u = m.join(h) + `
3586
3583
  `);
3587
- let S = [], I;
3588
- return Object.keys(k).forEach((z, F) => {
3589
- z.includes("country") && (I = F);
3584
+ let S = [], O;
3585
+ return Object.keys(k).forEach((B, N) => {
3586
+ B.includes("country") && (O = N);
3590
3587
  const R = [];
3591
- i.forEach((Q) => {
3592
- Q[z] !== void 0 && R.push(Q[z]);
3588
+ c.forEach((Q) => {
3589
+ Q[B] !== void 0 && R.push(Q[B]);
3593
3590
  }), S.push(R);
3594
- }), S.forEach((z, F) => {
3595
- !e.useCountryCode && I === F ? z.forEach((R, Q) => {
3591
+ }), S.forEach((B, N) => {
3592
+ !e.useCountryCode && O === N ? B.forEach((R, Q) => {
3596
3593
  let ue = R;
3597
- window.$getType(R) === "Array" ? ue = R.map((pe) => r[pe.toUpperCase()].label.$l()).join(",") : window.$getType(R) === "String" ? ue = R.split(",").map((pe) => r[pe.toUpperCase()].label.$l()).join(",") : ue = JSON.stringify(R), m[Q] ? m[Q] += ue + g : m[Q] = ue + g;
3598
- }) : z.forEach((R, Q) => {
3599
- m[Q] ? m[Q] += R + g : m[Q] = R + g;
3594
+ window.$getType(R) === "Array" ? ue = R.map((pe) => r[pe.toUpperCase()].label.$l()).join(",") : window.$getType(R) === "String" ? ue = R.split(",").map((pe) => r[pe.toUpperCase()].label.$l()).join(",") : ue = JSON.stringify(R), v[Q] ? v[Q] += ue + h : v[Q] = ue + h;
3595
+ }) : B.forEach((R, Q) => {
3596
+ v[Q] ? v[Q] += R + h : v[Q] = R + h;
3600
3597
  });
3601
- }), `${d}${m.join(`
3598
+ }), `${u}${v.join(`
3602
3599
  `)}`;
3603
- }, M = O(() => {
3604
- const u = window.$d().format("YYYYMMDDHHmmss");
3605
- return `${o.tableName}_${u}`;
3606
- }), p = O(() => {
3607
- const u = {};
3608
- return e.columns.forEach((i) => {
3609
- const k = i.type ? i.type : "normal", h = {
3600
+ }, M = I(() => {
3601
+ const d = window.$d().format("YYYYMMDDHHmmss");
3602
+ return `${o.tableName}_${d}`;
3603
+ }), p = I(() => {
3604
+ const d = {};
3605
+ return e.columns.forEach((c) => {
3606
+ const k = c.type ? c.type : "normal", m = {
3610
3607
  label: x[k],
3611
3608
  type: k,
3612
3609
  visible: 0
3613
3610
  };
3614
- u[k] ? (u[k].children.push(i), i.visible && u[k].visible++) : (h.children = [i], i.visible && h.visible++, u[k] = h);
3615
- }), Object.keys(u).forEach((i) => {
3616
- const k = u[i].visible === u[i].children.length, h = u[i].visible === 0;
3617
- k ? (u[i].checkstatus = !0, u[i].indeterminate = !1) : h ? (u[i].checkstatus = !1, u[i].indeterminate = !1) : (u[i].checkstatus = !1, u[i].indeterminate = !0);
3618
- }), u;
3619
- }), C = O(() => {
3620
- const u = [];
3611
+ d[k] ? (d[k].children.push(c), c.visible && d[k].visible++) : (m.children = [c], c.visible && m.visible++, d[k] = m);
3612
+ }), Object.keys(d).forEach((c) => {
3613
+ const k = d[c].visible === d[c].children.length, m = d[c].visible === 0;
3614
+ k ? (d[c].checkstatus = !0, d[c].indeterminate = !1) : m ? (d[c].checkstatus = !1, d[c].indeterminate = !1) : (d[c].checkstatus = !1, d[c].indeterminate = !0);
3615
+ }), d;
3616
+ }), C = I(() => {
3617
+ const d = [];
3621
3618
  for (let k in p.value)
3622
- u.push(p.value[k].children);
3623
- return u.flat().filter((k) => k.visible).length <= 0;
3619
+ d.push(p.value[k].children);
3620
+ return d.flat().filter((k) => k.visible).length <= 0;
3624
3621
  }), x = {
3625
3622
  asa: "Asa Metrics",
3626
3623
  normal: "Base Info",
@@ -3639,31 +3636,31 @@ const Wo = gt({
3639
3636
  icon: "im-header"
3640
3637
  }
3641
3638
  ], r = {};
3642
- return (u, i) => {
3643
- const k = H("el-checkbox"), h = H("el-button"), d = H("el-dropdown-item"), m = H("el-dropdown-menu"), g = H("el-dropdown"), S = H("el-switch"), I = H("Input"), z = H("DrawerArea");
3644
- return $(), G(z, Se(u.$attrs, { class: "MvcVTableColumnDownload" }), {
3639
+ return (d, c) => {
3640
+ const k = F("el-checkbox"), m = F("el-button"), u = F("el-dropdown-item"), v = F("el-dropdown-menu"), h = F("el-dropdown"), S = F("el-switch"), O = F("Input"), B = F("DrawerArea");
3641
+ return $(), G(B, Se(d.$attrs, { class: "MvcVTableColumnDownload" }), {
3645
3642
  cancel: A(() => [
3646
- B(I, {
3643
+ H(O, {
3647
3644
  modelValue: a(e).fileName,
3648
- "onUpdate:modelValue": i[2] || (i[2] = (F) => a(e).fileName = F),
3645
+ "onUpdate:modelValue": c[2] || (c[2] = (N) => a(e).fileName = N),
3649
3646
  icon: "catalog",
3650
3647
  placeholder: a(M),
3651
3648
  class: "w600"
3652
3649
  }, {
3653
- prefix: A(() => [...i[4] || (i[4] = [
3654
- c("i", { class: "imicon im-file-text" }, null, -1)
3650
+ prefix: A(() => [...c[4] || (c[4] = [
3651
+ i("i", { class: "imicon im-file-text" }, null, -1)
3655
3652
  ])]),
3656
3653
  append: A(() => [
3657
- B(h, {
3654
+ H(m, {
3658
3655
  loading: a(e).loading,
3659
3656
  disabled: a(C),
3660
- onClick: b
3657
+ onClick: y
3661
3658
  }, {
3662
- icon: A(() => [...i[5] || (i[5] = [
3663
- c("i", { class: "imicon im-download" }, null, -1)
3659
+ icon: A(() => [...c[5] || (c[5] = [
3660
+ i("i", { class: "imicon im-download" }, null, -1)
3664
3661
  ])]),
3665
3662
  default: A(() => [
3666
- se(" " + V(u.$l("Download")), 1)
3663
+ se(" " + V(d.$l("Download")), 1)
3667
3664
  ]),
3668
3665
  _: 1
3669
3666
  }, 8, ["loading", "disabled"])
@@ -3671,39 +3668,39 @@ const Wo = gt({
3671
3668
  _: 1
3672
3669
  }, 8, ["modelValue", "placeholder"])
3673
3670
  ]),
3674
- submit: A(() => [...i[6] || (i[6] = [])]),
3671
+ submit: A(() => [...c[6] || (c[6] = [])]),
3675
3672
  default: A(() => [
3676
- c("div", sa, [
3677
- c("div", aa, [
3678
- c("div", null, [
3679
- c("div", ra, [
3680
- c("h4", ia, V(u.$l("Total")), 1),
3681
- c("span", null, V(o.list.length), 1)
3673
+ i("div", sa, [
3674
+ i("div", aa, [
3675
+ i("div", null, [
3676
+ i("div", ra, [
3677
+ i("h4", ia, V(d.$l("Total")), 1),
3678
+ i("span", null, V(o.list.length), 1)
3682
3679
  ]),
3683
3680
  o.selection.length ? ($(), G(k, {
3684
3681
  key: 0,
3685
3682
  modelValue: a(e).onlySelection,
3686
- "onUpdate:modelValue": i[0] || (i[0] = (F) => a(e).onlySelection = F),
3687
- label: `${u.$l("Only Selection")}: ${o.selection.length}`
3683
+ "onUpdate:modelValue": c[0] || (c[0] = (N) => a(e).onlySelection = N),
3684
+ label: `${d.$l("Only Selection")}: ${o.selection.length}`
3688
3685
  }, null, 8, ["modelValue", "label"])) : P("", !0)
3689
3686
  ]),
3690
- B(g, {
3687
+ H(h, {
3691
3688
  trigger: "click",
3692
3689
  placement: "bottom",
3693
- onCommand: v
3690
+ onCommand: b
3694
3691
  }, {
3695
3692
  dropdown: A(() => [
3696
- B(m, null, {
3693
+ H(v, null, {
3697
3694
  default: A(() => [
3698
- ($(), L(re, null, de(w, (F, R) => B(d, {
3695
+ ($(), L(re, null, de(w, (N, R) => H(u, {
3699
3696
  key: R,
3700
- command: F.command
3697
+ command: N.command
3701
3698
  }, {
3702
3699
  default: A(() => [
3703
- c("i", {
3704
- class: W(["imicon", F.icon])
3700
+ i("i", {
3701
+ class: W(["imicon", N.icon])
3705
3702
  }, null, 2),
3706
- se(" " + V(F.label.$l()), 1)
3703
+ se(" " + V(N.label.$l()), 1)
3707
3704
  ]),
3708
3705
  _: 2
3709
3706
  }, 1032, ["command"])), 64))
@@ -3712,15 +3709,15 @@ const Wo = gt({
3712
3709
  })
3713
3710
  ]),
3714
3711
  default: A(() => [
3715
- B(h, {
3712
+ H(m, {
3716
3713
  type: "primary",
3717
3714
  class: "reverse"
3718
3715
  }, {
3719
- icon: A(() => [...i[3] || (i[3] = [
3720
- c("i", { class: "imicon im-down" }, null, -1)
3716
+ icon: A(() => [...c[3] || (c[3] = [
3717
+ i("i", { class: "imicon im-down" }, null, -1)
3721
3718
  ])]),
3722
3719
  default: A(() => [
3723
- se(" " + V(u.$l("Copy to Clipboard")), 1)
3720
+ se(" " + V(d.$l("Copy to Clipboard")), 1)
3724
3721
  ]),
3725
3722
  _: 1
3726
3723
  })
@@ -3729,21 +3726,21 @@ const Wo = gt({
3729
3726
  })
3730
3727
  ])
3731
3728
  ]),
3732
- c("div", ca, [
3733
- ($(!0), L(re, null, de(a(p), (F) => ($(), L("div", {
3734
- key: F.type
3729
+ i("div", ca, [
3730
+ ($(!0), L(re, null, de(a(p), (N) => ($(), L("div", {
3731
+ key: N.type
3735
3732
  }, [
3736
- c("div", ua, [
3737
- c("span", da, V(F.label), 1),
3738
- B(k, {
3739
- modelValue: F.checkstatus,
3740
- "onUpdate:modelValue": (R) => F.checkstatus = R,
3741
- indeterminate: F.indeterminate,
3742
- label: u.$l("Check All"),
3743
- onChange: (R) => y(R, F)
3733
+ i("div", ua, [
3734
+ i("span", da, V(N.label), 1),
3735
+ H(k, {
3736
+ modelValue: N.checkstatus,
3737
+ "onUpdate:modelValue": (R) => N.checkstatus = R,
3738
+ indeterminate: N.indeterminate,
3739
+ label: d.$l("Check All"),
3740
+ onChange: (R) => g(R, N)
3744
3741
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
3745
3742
  ]),
3746
- ($(!0), L(re, null, de(F.children, (R, Q) => ($(), G(k, {
3743
+ ($(!0), L(re, null, de(N.children, (R, Q) => ($(), G(k, {
3747
3744
  modelValue: R.visible,
3748
3745
  "onUpdate:modelValue": (ue) => R.visible = ue,
3749
3746
  key: Q,
@@ -3754,12 +3751,12 @@ const Wo = gt({
3754
3751
  default: A(() => {
3755
3752
  var ue;
3756
3753
  return [
3757
- c("div", fa, [
3758
- c("span", null, V(R.label), 1),
3754
+ i("div", fa, [
3755
+ i("span", null, V(R.label), 1),
3759
3756
  (ue = R.prop) != null && ue.includes("country") ? ($(), G(S, {
3760
3757
  key: 0,
3761
3758
  modelValue: a(e).useCountryCode,
3762
- "onUpdate:modelValue": i[1] || (i[1] = (pe) => a(e).useCountryCode = pe),
3759
+ "onUpdate:modelValue": c[1] || (c[1] = (pe) => a(e).useCountryCode = pe),
3763
3760
  "inline-prompt": "",
3764
3761
  "active-text": "Use Alpha-2 Code",
3765
3762
  "inactive-text": "Use Country Name",
@@ -3807,8 +3804,8 @@ class ma {
3807
3804
  };
3808
3805
  t.addEventListener("blur", e), this.eventHandlers.push({ type: "blur", handler: e }), this.element = t, this.container.appendChild(t);
3809
3806
  const n = (_) => {
3810
- var y, v;
3811
- _.key === "a" && (_.ctrlKey || _.metaKey) && ((v = (y = this.table) == null ? void 0 : y.editorManager) != null && v.editingEditor) && _.stopPropagation();
3807
+ var g, b;
3808
+ _.key === "a" && (_.ctrlKey || _.metaKey) && ((b = (g = this.table) == null ? void 0 : g.editorManager) != null && b.editingEditor) && _.stopPropagation();
3812
3809
  };
3813
3810
  t.addEventListener("keydown", n), this.eventHandlers.push({ type: "keydown", handler: n });
3814
3811
  const s = (_) => {
@@ -3816,8 +3813,8 @@ class ma {
3816
3813
  };
3817
3814
  t.addEventListener("wheel", s), this.eventHandlers.push({ type: "wheel", handler: s });
3818
3815
  const f = (_) => {
3819
- var y;
3820
- ((y = this.element) == null ? void 0 : y.style.opacity) === "0" && _.preventDefault();
3816
+ var g;
3817
+ ((g = this.element) == null ? void 0 : g.style.opacity) === "0" && _.preventDefault();
3821
3818
  };
3822
3819
  t.addEventListener("paste", f), this.eventHandlers.push({ type: "paste", handler: f });
3823
3820
  }
@@ -3902,37 +3899,37 @@ const ga = /* @__PURE__ */ Object.assign({
3902
3899
  const e = l, n = o, s = le(e.modelValue), f = le(null);
3903
3900
  fe(() => {
3904
3901
  $e(() => {
3905
- var v, b;
3906
- (b = (v = f.value) == null ? void 0 : v.focus) == null || b.call(v);
3902
+ var b, y;
3903
+ (y = (b = f.value) == null ? void 0 : b.focus) == null || y.call(b);
3907
3904
  });
3908
3905
  });
3909
- const _ = (v) => {
3910
- n("update:modelValue", v), n("commit", v);
3911
- }, y = O(() => (e.values || []).map((b) => {
3912
- if (b != null && typeof b == "object") {
3913
- const T = "value" in b ? b.value : "v" in b ? b.v : b.label ?? b.text, M = "label" in b ? b.label : "text" in b ? b.text : String(T);
3906
+ const _ = (b) => {
3907
+ n("update:modelValue", b), n("commit", b);
3908
+ }, g = I(() => (e.values || []).map((y) => {
3909
+ if (y != null && typeof y == "object") {
3910
+ const T = "value" in y ? y.value : "v" in y ? y.v : y.label ?? y.text, M = "label" in y ? y.label : "text" in y ? y.text : String(T);
3914
3911
  return { value: T, label: M };
3915
3912
  }
3916
- return { value: b, label: String(b) };
3913
+ return { value: y, label: String(y) };
3917
3914
  }));
3918
3915
  return be(
3919
3916
  () => e.modelValue,
3920
- (v) => {
3921
- s.value = v;
3917
+ (b) => {
3918
+ s.value = b;
3922
3919
  }
3923
3920
  ), t({
3924
3921
  focus: () => {
3925
- var v, b;
3926
- return (b = (v = f.value) == null ? void 0 : v.focus) == null ? void 0 : b.call(v);
3922
+ var b, y;
3923
+ return (y = (b = f.value) == null ? void 0 : b.focus) == null ? void 0 : y.call(b);
3927
3924
  },
3928
3925
  getModelValue: () => s.value
3929
- }), (v, b) => {
3930
- const T = H("el-option"), M = H("el-select");
3926
+ }), (b, y) => {
3927
+ const T = F("el-option"), M = F("el-select");
3931
3928
  return $(), G(M, {
3932
3929
  ref_key: "selRef",
3933
3930
  ref: f,
3934
3931
  modelValue: a(s),
3935
- "onUpdate:modelValue": b[0] || (b[0] = (p) => Ge(s) ? s.value = p : null),
3932
+ "onUpdate:modelValue": y[0] || (y[0] = (p) => Ge(s) ? s.value = p : null),
3936
3933
  class: "TableSelect",
3937
3934
  size: "large",
3938
3935
  filterable: "",
@@ -3941,7 +3938,7 @@ const ga = /* @__PURE__ */ Object.assign({
3941
3938
  onChange: _
3942
3939
  }, {
3943
3940
  default: A(() => [
3944
- ($(!0), L(re, null, de(a(y), (p) => ($(), G(T, {
3941
+ ($(!0), L(re, null, de(a(g), (p) => ($(), G(T, {
3945
3942
  key: String(p.value),
3946
3943
  label: p.label,
3947
3944
  value: p.value
@@ -4032,31 +4029,31 @@ function it(l, t) {
4032
4029
  const e = `${typeof ((r = (w = globalThis.$config) == null ? void 0 : w.iconfont) == null ? void 0 : r.prefix) == "string" && globalThis.$config.iconfont.prefix ? globalThis.$config.iconfont.prefix : "imc"}-${l}`, n = document.getElementById(e);
4033
4030
  if (!n || n.tagName.toLowerCase() !== "symbol")
4034
4031
  return null;
4035
- const s = n.getAttribute("viewBox") || "", f = n.innerHTML, y = `<svg xmlns="http://www.w3.org/2000/svg"${s ? ` viewBox="${s.replace(/"/g, "&quot;")}"` : ""}>${f}</svg>`, v = (t == null ? void 0 : t.width) ?? 20, b = (t == null ? void 0 : t.height) ?? 20, T = (t == null ? void 0 : t.positionType) ?? "inlineFront", p = {
4032
+ const s = n.getAttribute("viewBox") || "", f = n.innerHTML, g = `<svg xmlns="http://www.w3.org/2000/svg"${s ? ` viewBox="${s.replace(/"/g, "&quot;")}"` : ""}>${f}</svg>`, b = (t == null ? void 0 : t.width) ?? 20, y = (t == null ? void 0 : t.height) ?? 20, T = (t == null ? void 0 : t.positionType) ?? "inlineFront", p = {
4036
4033
  type: "svg",
4037
4034
  name: (t == null ? void 0 : t.id) != null && String(t.id) !== "" ? String(t.id) : l,
4038
- svg: y,
4039
- width: v,
4040
- height: b,
4035
+ svg: g,
4036
+ width: b,
4037
+ height: y,
4041
4038
  positionType: T
4042
4039
  };
4043
4040
  if ((t == null ? void 0 : t.interactive) !== !1) {
4044
4041
  p.interactive = !0;
4045
- const u = (t == null ? void 0 : t.cursor) ?? "pointer";
4046
- if (u && (p.cursor = u), (t == null ? void 0 : t.hover) !== !1) {
4047
- const i = t != null && t.hover && typeof t.hover == "object" ? t.hover : {};
4042
+ const d = (t == null ? void 0 : t.cursor) ?? "pointer";
4043
+ if (d && (p.cursor = d), (t == null ? void 0 : t.hover) !== !1) {
4044
+ const c = t != null && t.hover && typeof t.hover == "object" ? t.hover : {};
4048
4045
  p.hover = {
4049
- bgColor: i.bgColor ?? ae("--color-bg-menu-item-hover", "rgba(0, 0, 0, 0.06)")
4050
- }, i.width != null && (p.hover.width = i.width), i.height != null && (p.hover.height = i.height), i.image != null && (p.hover.image = i.image);
4046
+ bgColor: c.bgColor ?? ae("--color-bg-menu-item-hover", "rgba(0, 0, 0, 0.06)")
4047
+ }, c.width != null && (p.hover.width = c.width), c.height != null && (p.hover.height = c.height), c.image != null && (p.hover.image = c.image);
4051
4048
  }
4052
4049
  } else
4053
4050
  p.interactive = !1;
4054
4051
  const x = t == null ? void 0 : t.tooltip;
4055
4052
  if (x != null && typeof x == "object" && typeof x.title == "string" && x.title !== "") {
4056
- const u = typeof globalThis.$l == "function" ? globalThis.$l(x.title) : x.title;
4053
+ const d = typeof globalThis.$l == "function" ? globalThis.$l(x.title) : x.title;
4057
4054
  p.tooltip = {
4058
4055
  ...x,
4059
- title: u,
4056
+ title: d,
4060
4057
  placement: x.placement ?? "top"
4061
4058
  };
4062
4059
  }
@@ -4154,20 +4151,20 @@ function Sa(l) {
4154
4151
  l.style = (e) => {
4155
4152
  let n = {};
4156
4153
  if (typeof o == "function") {
4157
- const v = o(e);
4158
- v && typeof v == "object" && (n = { ...v });
4154
+ const b = o(e);
4155
+ b && typeof b == "object" && (n = { ...b });
4159
4156
  } else o && typeof o == "object" && (n = { ...o });
4160
4157
  let s = !1;
4161
4158
  try {
4162
- const v = e.table.getCellOriginRecord(e.col, e.row);
4163
- s = (v == null ? void 0 : v[t]) === !0;
4159
+ const b = e.table.getCellOriginRecord(e.col, e.row);
4160
+ s = (b == null ? void 0 : b[t]) === !0;
4164
4161
  } catch {
4165
4162
  }
4166
4163
  const f = ae(
4167
4164
  "--color-on-primary-text",
4168
4165
  ae("--color-txt-white", "#ffffff")
4169
- ), _ = ae("--color-txt-p", "#555555"), y = s ? f : _;
4170
- return { ...n, fill: y, color: y };
4166
+ ), _ = ae("--color-txt-p", "#555555"), g = s ? f : _;
4167
+ return { ...n, fill: g, color: g };
4171
4168
  };
4172
4169
  }
4173
4170
  function Pe(l, t) {
@@ -4225,7 +4222,7 @@ function ka({
4225
4222
  width: p.width
4226
4223
  }));
4227
4224
  const _ = [];
4228
- let y = 0, v = !0, b = !1;
4225
+ let g = 0, b = !0, y = !1;
4229
4226
  const T = (p) => {
4230
4227
  var x, w;
4231
4228
  const C = ct(p, e);
@@ -4235,71 +4232,71 @@ function ka({
4235
4232
  if (p == null)
4236
4233
  continue;
4237
4234
  if (p.type === "selection") {
4238
- b = !0, _.push({
4235
+ y = !0, _.push({
4239
4236
  field: Ae,
4240
4237
  title: "",
4241
4238
  width: p.width ?? 48,
4242
4239
  minWidth: 48,
4243
4240
  headerType: "checkbox",
4244
4241
  cellType: "checkbox"
4245
- }), v && y++;
4242
+ }), b && g++;
4246
4243
  continue;
4247
4244
  }
4248
- const C = n.find((h) => h.field === p.prop);
4245
+ const C = n.find((m) => m.field === p.prop);
4249
4246
  let x = {}, w, r;
4250
4247
  if (C != null && C.vtable && typeof C.vtable == "object") {
4251
4248
  x = { ...C.vtable }, r = x.cellSelectable, delete x.cellSelectable, w = x.mvcIcon, delete x.mvcIcon, delete x.switchLoadingKey, delete x.editorLoadingKey;
4252
- const h = x.inputEditor === !0, d = x.inputEditorConfig;
4249
+ const m = x.inputEditor === !0, u = x.inputEditorConfig;
4253
4250
  delete x.inputEditor, delete x.inputEditorConfig;
4254
- const m = x.editorValues;
4255
- if (delete x.editorValues, h && l && p.prop != null && p.prop !== "") {
4256
- const g = ha(
4251
+ const v = x.editorValues;
4252
+ if (delete x.editorValues, m && l && p.prop != null && p.prop !== "") {
4253
+ const h = ha(
4257
4254
  l,
4258
4255
  p.prop,
4259
- d
4256
+ u
4260
4257
  );
4261
- g && (x.editor = g);
4258
+ h && (x.editor = h);
4262
4259
  }
4263
- if (Array.isArray(m) && m.length && l) {
4264
- const g = ba(
4260
+ if (Array.isArray(v) && v.length && l) {
4261
+ const h = ba(
4265
4262
  l,
4266
4263
  p.prop,
4267
- m
4264
+ v
4268
4265
  );
4269
- g && (x.editor = g);
4266
+ h && (x.editor = h);
4270
4267
  }
4271
4268
  }
4272
- const u = (C == null ? void 0 : C.minWidth) ?? 80, i = {
4269
+ const d = (C == null ? void 0 : C.minWidth) ?? 80, c = {
4273
4270
  field: p.prop,
4274
4271
  title: globalThis.$l(p.labelKey ?? p.label),
4275
- width: p.width ?? (C == null ? void 0 : C.width) ?? u,
4276
- minWidth: u,
4272
+ width: p.width ?? (C == null ? void 0 : C.width) ?? d,
4273
+ minWidth: d,
4277
4274
  cellType: "text",
4278
4275
  ...x
4279
4276
  };
4280
- if (i.icon == null && w != null) {
4281
- const h = $t(w);
4282
- h && (i.icon = h);
4277
+ if (c.icon == null && w != null) {
4278
+ const m = $t(w);
4279
+ m && (c.icon = m);
4283
4280
  }
4284
- if (i.cellType === "switch" && p.prop != null && p.prop !== "" && (Sa(i), wa(
4285
- i,
4281
+ if (c.cellType === "switch" && p.prop != null && p.prop !== "" && (Sa(c), wa(
4282
+ c,
4286
4283
  p.prop,
4287
4284
  C != null && C.vtable && typeof C.vtable.switchLoadingKey == "string" ? C.vtable.switchLoadingKey : void 0
4288
- )), i.editor && p.prop != null && p.prop !== "" && Ca(
4289
- i,
4285
+ )), c.editor && p.prop != null && p.prop !== "" && Ca(
4286
+ c,
4290
4287
  p.prop,
4291
4288
  C != null && C.vtable && typeof C.vtable.editorLoadingKey == "string" ? C.vtable.editorLoadingKey : void 0
4292
4289
  ), o && typeof o == "object") {
4293
- const h = o[p.prop];
4294
- i.aggregation = {
4290
+ const m = o[p.prop];
4291
+ c.aggregation = {
4295
4292
  aggregationType: no.CUSTOM,
4296
- aggregationFun: () => h === void 0 ? "" : h,
4297
- formatFun: (d) => to(p.prop, d, T(p.prop))
4293
+ aggregationFun: () => m === void 0 ? "" : m,
4294
+ formatFun: (u) => to(p.prop, u, T(p.prop))
4298
4295
  };
4299
4296
  }
4300
- (p.type === "operation" || r === !1) && (i.disableSelect = !0, i.disableHeaderSelect = !0), _.push(i);
4297
+ (p.type === "operation" || r === !1) && (c.disableSelect = !0, c.disableHeaderSelect = !0), _.push(c);
4301
4298
  const k = p.fixed === "left" || p.fixed === !0;
4302
- v && k ? y++ : k || (v = !1);
4299
+ b && k ? g++ : k || (b = !1);
4303
4300
  }
4304
4301
  let M = 0;
4305
4302
  for (let p = f.length - 1; p >= 0; p--) {
@@ -4311,14 +4308,14 @@ function ka({
4311
4308
  else
4312
4309
  break;
4313
4310
  }
4314
- return _.length === 1 ? Pe(_[0], "both") : _.length > 1 && (Pe(_[0], "start"), Pe(_[_.length - 1], "end")), { columns: _, frozenColCount: y, rightFrozenColCount: M, hasSelection: b };
4311
+ return _.length === 1 ? Pe(_[0], "both") : _.length > 1 && (Pe(_[0], "start"), Pe(_[_.length - 1], "end")), { columns: _, frozenColCount: g, rightFrozenColCount: M, hasSelection: y };
4315
4312
  }
4316
4313
  function ct(l, t) {
4317
4314
  if (t != null)
4318
4315
  return typeof t == "function" ? t(l) : t[l];
4319
4316
  }
4320
4317
  function Ta(l = {}) {
4321
- const { frameSideLines: t = !1 } = l, o = ae("--color-border", "#e5e5e5"), e = ae("--color-white", "#ffffff"), n = ae("--color-bg-page-header", e), s = ae("--color-bg-menu-children", "#f9f9f9"), f = ae("--color-txt-h2", "#333333"), _ = ae("--color-txt-p", "#555555"), y = ae("--color-primary", "#007bff"), v = ae("--color-primary-bg-txt", "rgba(0, 123, 255, 0.12)"), b = ae(
4318
+ const { frameSideLines: t = !1 } = l, o = ae("--color-border", "#e5e5e5"), e = ae("--color-white", "#ffffff"), n = ae("--color-bg-page-header", e), s = ae("--color-bg-menu-children", "#f9f9f9"), f = ae("--color-txt-h2", "#333333"), _ = ae("--color-txt-p", "#555555"), g = ae("--color-primary", "#007bff"), b = ae("--color-primary-bg-txt", "rgba(0, 123, 255, 0.12)"), y = ae(
4322
4319
  "--color-vtable-hover-cross",
4323
4320
  "rgba(0, 123, 255, 0.045)"
4324
4321
  ), T = ae("--color-on-primary-text", "#ffffff"), M = ae("--color-bg-body", "#fafafa"), p = ae("--color-txt-tip", "#999999"), C = typeof document < "u" && getComputedStyle(document.body).fontFamily || "system-ui,sans-serif", w = {
@@ -4329,15 +4326,15 @@ function Ta(l = {}) {
4329
4326
  headerStyle: {
4330
4327
  bgColor: n,
4331
4328
  color: (r) => {
4332
- var m, g, S, I;
4333
- const { col: u, row: i, table: k } = r, h = k.columnHeaderLevelCount ?? 1;
4334
- if (typeof i != "number" || i < 0 || i >= h || (g = (m = k.options) == null ? void 0 : m.select) != null && g.disableHeaderSelect)
4329
+ var v, h, S, O;
4330
+ const { col: d, row: c, table: k } = r, m = k.columnHeaderLevelCount ?? 1;
4331
+ if (typeof c != "number" || c < 0 || c >= m || (h = (v = k.options) == null ? void 0 : v.select) != null && h.disableHeaderSelect)
4335
4332
  return f;
4336
- const d = (S = k.stateManager) == null ? void 0 : S.select;
4337
- if (!((I = d == null ? void 0 : d.ranges) != null && I.length) || d.highlightScope === "none")
4333
+ const u = (S = k.stateManager) == null ? void 0 : S.select;
4334
+ if (!((O = u == null ? void 0 : u.ranges) != null && O.length) || u.highlightScope === "none")
4338
4335
  return f;
4339
4336
  try {
4340
- if (ao(k.stateManager, u, i))
4337
+ if (ao(k.stateManager, d, c))
4341
4338
  return T;
4342
4339
  } catch {
4343
4340
  }
@@ -4348,26 +4345,26 @@ function Ta(l = {}) {
4348
4345
  fontWeight: "600",
4349
4346
  borderColor: o,
4350
4347
  hover: {
4351
- cellBgColor: v
4348
+ cellBgColor: b
4352
4349
  },
4353
4350
  select: {
4354
- cellBgColor: y,
4355
- inlineColumnBgColor: y
4351
+ cellBgColor: g,
4352
+ inlineColumnBgColor: g
4356
4353
  }
4357
4354
  },
4358
4355
  bodyStyle: {
4359
4356
  bgColor: (r) => {
4360
- const { row: u, table: i } = r, k = i.columnHeaderLevelCount ?? 1, h = u - k;
4361
- return h < 0 || h % 2 === 0 ? e : M;
4357
+ const { row: d, table: c } = r, k = c.columnHeaderLevelCount ?? 1, m = d - k;
4358
+ return m < 0 || m % 2 === 0 ? e : M;
4362
4359
  },
4363
4360
  color: _,
4364
4361
  fontSize: 14,
4365
4362
  fontFamily: C,
4366
4363
  borderColor: o,
4367
4364
  hover: {
4368
- cellBgColor: b,
4369
- inlineRowBgColor: b,
4370
- inlineColumnBgColor: b
4365
+ cellBgColor: y,
4366
+ inlineRowBgColor: y,
4367
+ inlineColumnBgColor: y
4371
4368
  }
4372
4369
  },
4373
4370
  bottomFrozenStyle: {
@@ -4394,7 +4391,7 @@ function Ta(l = {}) {
4394
4391
  // 见 vtable create-select-border:`overlay` 会给选区 rect 填 `cellBgColor`,易盖住单元格文本;
4395
4392
  // `replace` 时 fill 为 false,只保留描边,文字保持可读。
4396
4393
  selectionStyle: {
4397
- cellBorderColor: y,
4394
+ cellBorderColor: g,
4398
4395
  cellBorderLineWidth: 2,
4399
4396
  selectionFillMode: "replace"
4400
4397
  },
@@ -4412,17 +4409,17 @@ function Ta(l = {}) {
4412
4409
  fontSize: 12
4413
4410
  },
4414
4411
  functionalIconsStyle: {
4415
- sort_color: y,
4412
+ sort_color: g,
4416
4413
  sort_color_2: p,
4417
- frozen_color: y
4414
+ frozen_color: g
4418
4415
  },
4419
4416
  /** 未配置时 VTable 默认勾选项与表体底色接近,选中态几乎不可见 */
4420
4417
  checkboxStyle: {
4421
4418
  size: 16,
4422
4419
  defaultFill: e,
4423
4420
  defaultStroke: p,
4424
- checkedFill: y,
4425
- checkedStroke: y
4421
+ checkedFill: g,
4422
+ checkedStroke: g
4426
4423
  },
4427
4424
  /**
4428
4425
  * 开关:打开态轨道 `--color-primary`;标签字色由列 `style` 在 columns 内按
@@ -4432,7 +4429,7 @@ function Ta(l = {}) {
4432
4429
  boxWidth: 30,
4433
4430
  boxHeight: 16,
4434
4431
  circleRadius: 6,
4435
- checkedFill: y,
4432
+ checkedFill: g,
4436
4433
  uncheckedFill: o,
4437
4434
  circleFill: e
4438
4435
  }
@@ -4638,8 +4635,8 @@ const Aa = {
4638
4635
  cpt: Le(pa)
4639
4636
  }
4640
4637
  ]
4641
- }), _ = le(null), y = qt(null);
4642
- let v, b = !1, T, M, p = 0;
4638
+ }), _ = le(null), g = qt(null);
4639
+ let b, y = !1, T, M, p = 0;
4643
4640
  const C = Z({
4644
4641
  show: !1,
4645
4642
  left: 0,
@@ -4649,7 +4646,7 @@ const Aa = {
4649
4646
  });
4650
4647
  let x = { col: -1, row: -1 }, w = null;
4651
4648
  yt(() => {
4652
- u();
4649
+ d();
4653
4650
  }), fe(() => {
4654
4651
  var E;
4655
4652
  e.tableName && ((E = e.columnMetas) != null && E.length) && $a(e.tableName, e.columnMetas), typeof MutationObserver < "u" && (T = new MutationObserver(() => {
@@ -4657,39 +4654,39 @@ const Aa = {
4657
4654
  }), T.observe(document.documentElement, {
4658
4655
  attributes: !0,
4659
4656
  attributeFilter: ["class"]
4660
- })), i();
4657
+ })), c();
4661
4658
  });
4662
- const r = o, u = () => {
4659
+ const r = o, d = () => {
4663
4660
  n.loading = e.defaultLoading, e.pageSize && (s.pageSize = e.pageSize);
4664
- }, i = () => {
4661
+ }, c = () => {
4665
4662
  e.defer === !1 && Ie();
4666
- }, k = (E, N) => {
4667
- if (!N)
4663
+ }, k = (E, z) => {
4664
+ if (!z)
4668
4665
  return E;
4669
4666
  for (const j of E)
4670
4667
  (!(Ae in j) || j[Ae] !== !0) && (j[Ae] = !1);
4671
4668
  return E;
4672
- }, h = () => ka({
4669
+ }, m = () => ka({
4673
4670
  tableName: e.tableName,
4674
4671
  columnMetas: e.columnMetas,
4675
4672
  summaryData: s.summary || null,
4676
4673
  summaryMetricProp: e.summaryMetric
4677
- }), d = (E) => {
4678
- const N = [];
4674
+ }), u = (E) => {
4675
+ const z = [];
4679
4676
  for (const j of E)
4680
- j != null && j.field && (j.cellType === "switch" || j.cellType === "checkbox") && N.push(j.field);
4681
- return N;
4682
- }, m = (E) => {
4683
- const N = [];
4677
+ j != null && j.field && (j.cellType === "switch" || j.cellType === "checkbox") && z.push(j.field);
4678
+ return z;
4679
+ }, v = (E) => {
4680
+ const z = [];
4684
4681
  for (const j of E)
4685
- !(j != null && j.field) || !j.editor || N.push(j.field);
4686
- return N;
4687
- }, g = () => {
4682
+ !(j != null && j.field) || !j.editor || z.push(j.field);
4683
+ return z;
4684
+ }, h = () => {
4688
4685
  var X, ee;
4689
- const E = y.value;
4686
+ const E = g.value;
4690
4687
  if (!((X = E == null ? void 0 : E.stateManager) != null && X.checkedState) || !((ee = E.dataSource) != null && ee.getIndexKey))
4691
4688
  return;
4692
- const N = h(), j = d(N.columns);
4689
+ const z = m(), j = u(z.columns);
4693
4690
  if (!j.length)
4694
4691
  return;
4695
4692
  const K = E.stateManager.checkedState;
@@ -4701,36 +4698,36 @@ const Aa = {
4701
4698
  }
4702
4699
  }, S = (E) => {
4703
4700
  var K, X;
4704
- const N = (K = e.columnMetas) == null ? void 0 : K.find((ee) => ee != null && ee.field === E), j = (X = N == null ? void 0 : N.vtable) == null ? void 0 : X.switchLoadingKey;
4701
+ const z = (K = e.columnMetas) == null ? void 0 : K.find((ee) => ee != null && ee.field === E), j = (X = z == null ? void 0 : z.vtable) == null ? void 0 : X.switchLoadingKey;
4705
4702
  return typeof j == "string" && j ? j : xt(E);
4706
- }, I = (E) => {
4703
+ }, O = (E) => {
4707
4704
  var K, X;
4708
- const N = (K = e.columnMetas) == null ? void 0 : K.find((ee) => ee != null && ee.field === E), j = (X = N == null ? void 0 : N.vtable) == null ? void 0 : X.editorLoadingKey;
4705
+ const z = (K = e.columnMetas) == null ? void 0 : K.find((ee) => ee != null && ee.field === E), j = (X = z == null ? void 0 : z.vtable) == null ? void 0 : X.editorLoadingKey;
4709
4706
  return typeof j == "string" && j ? j : kt(E);
4710
- }, z = () => {
4711
- g();
4707
+ }, B = () => {
4708
+ h();
4712
4709
  const E = Ae;
4713
- if (!h().hasSelection) {
4710
+ if (!m().hasSelection) {
4714
4711
  n.selection = [], r("selection-change", []);
4715
4712
  return;
4716
4713
  }
4717
4714
  const j = s.list.filter((K) => K[E] === !0);
4718
4715
  n.selection = j, r("selection-change", j);
4719
- }, F = () => {
4720
- if (w != null && y.value)
4716
+ }, N = () => {
4717
+ if (w != null && g.value)
4721
4718
  try {
4722
- y.value.off(w);
4719
+ g.value.off(w);
4723
4720
  } catch {
4724
4721
  }
4725
4722
  w = null;
4726
4723
  }, R = () => {
4727
- const E = y.value;
4724
+ const E = g.value;
4728
4725
  if (!E || !C.show)
4729
4726
  return;
4730
- const { col: N, row: j } = x;
4731
- if (!(!Number.isFinite(N) || !Number.isFinite(j)))
4727
+ const { col: z, row: j } = x;
4728
+ if (!(!Number.isFinite(z) || !Number.isFinite(j)))
4732
4729
  try {
4733
- const K = E.getCellRelativeRect(N, j);
4730
+ const K = E.getCellRelativeRect(z, j);
4734
4731
  if (!K)
4735
4732
  return;
4736
4733
  const X = K.width != null ? K.width : K.right - K.left, ee = K.height != null ? K.height : K.bottom - K.top;
@@ -4738,10 +4735,10 @@ const Aa = {
4738
4735
  } catch {
4739
4736
  }
4740
4737
  }, Q = () => {
4741
- C.show = !1, x = { col: -1, row: -1 }, C.left = 0, C.top = 0, C.width = 0, C.height = 0, F();
4742
- }, ue = (E, N, j) => {
4743
- F(), x = { col: N, row: j }, C.show = !0, $e(() => {
4744
- if (R(), !E || y.value !== E)
4738
+ C.show = !1, x = { col: -1, row: -1 }, C.left = 0, C.top = 0, C.width = 0, C.height = 0, N();
4739
+ }, ue = (E, z, j) => {
4740
+ N(), x = { col: z, row: j }, C.show = !0, $e(() => {
4741
+ if (R(), !E || g.value !== E)
4745
4742
  return;
4746
4743
  const K = () => {
4747
4744
  R();
@@ -4751,22 +4748,22 @@ const Aa = {
4751
4748
  K
4752
4749
  );
4753
4750
  });
4754
- }, pe = (E, N) => {
4755
- const j = y.value;
4756
- !j || !Number.isFinite(E) || !Number.isFinite(N) || ue(j, E, N);
4751
+ }, pe = (E, z) => {
4752
+ const j = g.value;
4753
+ !j || !Number.isFinite(E) || !Number.isFinite(z) || ue(j, E, z);
4757
4754
  }, U = (E) => {
4758
- if (b)
4755
+ if (y)
4759
4756
  return;
4760
- b = !0;
4761
- const N = () => {
4762
- z();
4757
+ y = !0;
4758
+ const z = () => {
4759
+ B();
4763
4760
  }, j = (D) => {
4764
4761
  var te, me;
4765
4762
  try {
4766
4763
  (me = (te = E.editorManager) == null ? void 0 : te.cancelEdit) == null || me.call(te);
4767
4764
  } catch {
4768
4765
  }
4769
- N();
4766
+ z();
4770
4767
  const J = D == null ? void 0 : D.field;
4771
4768
  typeof J != "string" || !J || r("switch-change", {
4772
4769
  field: J,
@@ -4780,8 +4777,8 @@ const Aa = {
4780
4777
  const J = D == null ? void 0 : D.field;
4781
4778
  if (typeof J != "string" || !J)
4782
4779
  return;
4783
- const te = h();
4784
- if (!new Set(m(te.columns)).has(J))
4780
+ const te = m();
4781
+ if (!new Set(v(te.columns)).has(J))
4785
4782
  return;
4786
4783
  const he = D.recordIndex;
4787
4784
  let Ce;
@@ -4803,12 +4800,12 @@ const Aa = {
4803
4800
  rawValue: D.rawValue,
4804
4801
  col: D.col,
4805
4802
  cellRow: D.row,
4806
- loadingKey: I(J)
4803
+ loadingKey: O(J)
4807
4804
  });
4808
4805
  }, X = (D) => {
4809
- if (y.value !== E || D == null)
4806
+ if (g.value !== E || D == null)
4810
4807
  return;
4811
- const J = D.col, te = D.row, me = h(), he = Number.isFinite(J) && J >= 0 && J < me.columns.length ? me.columns[J] : null, Ce = (he == null ? void 0 : he.field) ?? null;
4808
+ const J = D.col, te = D.row, me = m(), he = Number.isFinite(J) && J >= 0 && J < me.columns.length ? me.columns[J] : null, Ce = (he == null ? void 0 : he.field) ?? null;
4812
4809
  let oe = null;
4813
4810
  try {
4814
4811
  oe = E.getCellOriginRecord(J, te);
@@ -4834,7 +4831,7 @@ const Aa = {
4834
4831
  typeof globalThis.requestAnimationFrame != "function" || p !== 0 || (p = globalThis.requestAnimationFrame(() => {
4835
4832
  var J, te, me, he, Ce, oe;
4836
4833
  p = 0;
4837
- const D = y.value;
4834
+ const D = g.value;
4838
4835
  if (!(!D || D !== E))
4839
4836
  try {
4840
4837
  (te = (J = D.scenegraph) == null ? void 0 : J.clearCells) == null || te.call(J), (me = D.clearCellStyleCache) == null || me.call(D), (Ce = (he = D.scenegraph) == null ? void 0 : he.createSceneGraph) == null || Ce.call(he, !0), (oe = D.render) == null || oe.call(D);
@@ -4851,7 +4848,7 @@ const Aa = {
4851
4848
  !Number.isFinite(te) || !Number.isFinite(me) || (async () => {
4852
4849
  ue(E, te, me);
4853
4850
  try {
4854
- const he = await e.loadTreeChildren({ record: J, col: te, row: me }), Ce = Array.isArray(he) ? he : [], oe = y.value;
4851
+ const he = await e.loadTreeChildren({ record: J, col: te, row: me }), Ce = Array.isArray(he) ? he : [], oe = g.value;
4855
4852
  if (!oe || oe !== E)
4856
4853
  return;
4857
4854
  oe.setRecordChildren(Ce, te, me);
@@ -4861,7 +4858,7 @@ const Aa = {
4861
4858
  }
4862
4859
  })();
4863
4860
  };
4864
- E.on(xe.CHECKBOX_STATE_CHANGE, N), E.on(xe.SWITCH_STATE_CHANGE, j), E.on(xe.CHANGE_CELL_VALUE, K), E.on(
4861
+ E.on(xe.CHECKBOX_STATE_CHANGE, z), E.on(xe.SWITCH_STATE_CHANGE, j), E.on(xe.CHANGE_CELL_VALUE, K), E.on(
4865
4862
  xe.TREE_HIERARCHY_STATE_CHANGE,
4866
4863
  we
4867
4864
  ), E.on(
@@ -4879,9 +4876,9 @@ const Aa = {
4879
4876
  }), ge = () => Ta({
4880
4877
  frameSideLines: s.list.length === 0
4881
4878
  }), ne = () => {
4882
- const E = h(), N = k(s.list, E.hasSelection), j = 40, K = E.columns.some((X) => (X == null ? void 0 : X.tree) === !0);
4879
+ const E = m(), z = k(s.list, E.hasSelection), j = 40, K = E.columns.some((X) => (X == null ? void 0 : X.tree) === !0);
4883
4880
  return {
4884
- records: N,
4881
+ records: z,
4885
4882
  columns: E.columns,
4886
4883
  frozenColCount: E.frozenColCount,
4887
4884
  rightFrozenColCount: E.rightFrozenColCount ?? 0,
@@ -4913,30 +4910,30 @@ const Aa = {
4913
4910
  };
4914
4911
  }, ce = async () => {
4915
4912
  var E;
4916
- if (!(!y.value || n.loading || !((E = e.columnMetas) != null && E.length)))
4913
+ if (!(!g.value || n.loading || !((E = e.columnMetas) != null && E.length)))
4917
4914
  try {
4918
- await y.value.updateOption(ne());
4915
+ await g.value.updateOption(ne());
4919
4916
  } catch {
4920
4917
  }
4921
4918
  }, ve = () => {
4922
- if (p !== 0 && globalThis.cancelAnimationFrame && (globalThis.cancelAnimationFrame(p), p = 0), clearTimeout(M), T == null || T.disconnect(), T = void 0, v == null || v.disconnect(), v = void 0, b = !1, Q(), y.value) {
4919
+ if (p !== 0 && globalThis.cancelAnimationFrame && (globalThis.cancelAnimationFrame(p), p = 0), clearTimeout(M), T == null || T.disconnect(), T = void 0, b == null || b.disconnect(), b = void 0, y = !1, Q(), g.value) {
4923
4920
  try {
4924
- y.value.release();
4921
+ g.value.release();
4925
4922
  } catch {
4926
4923
  }
4927
- y.value = null;
4924
+ g.value = null;
4928
4925
  }
4929
4926
  }, _e = async () => {
4930
- var N;
4931
- if (await $e(), !_.value || n.loading || !((N = e.columnMetas) != null && N.length))
4927
+ var z;
4928
+ if (await $e(), !_.value || n.loading || !((z = e.columnMetas) != null && z.length))
4932
4929
  return;
4933
4930
  const E = ne();
4934
- if (y.value ? await y.value.updateOption(E) : (y.value = new ro(_.value, E), U(y.value), v = new ResizeObserver(() => {
4931
+ if (g.value ? await g.value.updateOption(E) : (g.value = new ro(_.value, E), U(g.value), b = new ResizeObserver(() => {
4935
4932
  var j, K;
4936
- (K = (j = y.value) == null ? void 0 : j.resize) == null || K.call(j), R();
4937
- }), v.observe(_.value)), y.value && e.scrollToTopOnLoad)
4933
+ (K = (j = g.value) == null ? void 0 : j.resize) == null || K.call(j), R();
4934
+ }), b.observe(_.value)), g.value && e.scrollToTopOnLoad)
4938
4935
  try {
4939
- y.value.scrollTop = 0;
4936
+ g.value.scrollTop = 0;
4940
4937
  } catch {
4941
4938
  }
4942
4939
  }, ye = (E) => {
@@ -4945,12 +4942,12 @@ const Aa = {
4945
4942
  if (E.refresh && n.loading)
4946
4943
  return;
4947
4944
  n.loading = !0;
4948
- const N = {
4945
+ const z = {
4949
4946
  pageSize: E.pageSize || s.pageSize,
4950
4947
  pageStart: E.pageStart || s.page
4951
4948
  };
4952
- E.refresh && (N.remote = !0);
4953
- const { list: j = [], total: K, summary: X } = await e.loadData(N) || {};
4949
+ E.refresh && (z.remote = !0);
4950
+ const { list: j = [], total: K, summary: X } = await e.loadData(z) || {};
4954
4951
  s.list = j.map((ee, we) => (ee.index = we, ee)), K === void 0 ? (s.total = s.list.length, s.nopagination = !0) : (s.total = K, s.nopagination = !1), X ? s.summary = X : s.summary = !1, n.loading = !1, await _e();
4955
4952
  }, Mt = () => {
4956
4953
  Ie({
@@ -4966,40 +4963,40 @@ const Aa = {
4966
4963
  f.current = 1;
4967
4964
  }, Ot = async () => {
4968
4965
  await _e();
4969
- }, It = async ({ i: E, row: N }) => {
4966
+ }, It = async ({ i: E, row: z }) => {
4970
4967
  var j, K, X, ee;
4971
- if (s.list[E] = N, y.value) {
4968
+ if (s.list[E] = z, g.value) {
4972
4969
  await $e();
4973
4970
  try {
4974
- (K = (j = y.value.editorManager) == null ? void 0 : j.cancelEdit) == null || K.call(j);
4971
+ (K = (j = g.value.editorManager) == null ? void 0 : j.cancelEdit) == null || K.call(j);
4975
4972
  } catch {
4976
4973
  }
4977
4974
  await $e();
4978
4975
  try {
4979
- await y.value.updateOption(ne()), await $e(), (ee = (X = y.value).resize) == null || ee.call(X);
4976
+ await g.value.updateOption(ne()), await $e(), (ee = (X = g.value).resize) == null || ee.call(X);
4980
4977
  } catch {
4981
4978
  }
4982
4979
  }
4983
- }, jt = O(() => ({
4980
+ }, jt = I(() => ({
4984
4981
  left: `${C.left}px`,
4985
4982
  top: `${C.top}px`,
4986
4983
  width: `${C.width}px`,
4987
4984
  height: `${C.height}px`
4988
- })), zt = O(() => {
4989
- var N;
4990
- let E = e.height || ((N = globalThis.$config.options) == null ? void 0 : N.pageHeight) || 640;
4985
+ })), zt = I(() => {
4986
+ var z;
4987
+ let E = e.height || ((z = globalThis.$config.options) == null ? void 0 : z.pageHeight) || 640;
4991
4988
  return e.noheader === !1 && (E -= 64), e.nofooter === !1 && (E -= 56), E -= e.minusHeight, E;
4992
- }), Nt = O(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), Me = O(() => {
4989
+ }), Nt = I(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), Me = I(() => {
4993
4990
  if (e.tool) {
4994
4991
  const {
4995
4992
  column: E = !0,
4996
- download: N = !0,
4993
+ download: z = !0,
4997
4994
  refresh: j = !0,
4998
4995
  showLabel: K
4999
4996
  } = e.tool;
5000
4997
  return {
5001
4998
  column: E,
5002
- download: N,
4999
+ download: z,
5003
5000
  refresh: j,
5004
5001
  showLabel: K
5005
5002
  };
@@ -5020,21 +5017,21 @@ const Aa = {
5020
5017
  hideCellLoadMask: Q
5021
5018
  });
5022
5019
  const Ve = Xe.lang("common.vTableTool") || {};
5023
- return (E, N) => {
5024
- const j = H("Loading"), K = H("el-button"), X = H("el-pagination"), ee = H("Card");
5020
+ return (E, z) => {
5021
+ const j = F("Loading"), K = F("el-button"), X = F("el-pagination"), ee = F("Card");
5025
5022
  return $(), G(ee, {
5026
5023
  class: "MvcVTable",
5027
5024
  "body-class": "p0"
5028
5025
  }, {
5029
5026
  default: A(() => [
5030
- B(j, {
5027
+ H(j, {
5031
5028
  loading: a(n).loading
5032
5029
  }, null, 8, ["loading"]),
5033
5030
  e.noheader === !1 ? ($(), L("div", {
5034
5031
  key: 0,
5035
5032
  class: W(["tableHeader flexMode hb g12 p16", e.autoHeader ? "minh64" : "h64"])
5036
5033
  }, [
5037
- c("div", {
5034
+ i("div", {
5038
5035
  class: W(["flexMode vc flexGrow maxwp100", e.headerClass])
5039
5036
  }, [
5040
5037
  Y(E.$slots, "header", {}, void 0, !0)
@@ -5048,7 +5045,7 @@ const Aa = {
5048
5045
  onClick: Et
5049
5046
  }, ke({
5050
5047
  icon: A(() => [
5051
- N[2] || (N[2] = c("i", { class: "imicon im-reload" }, null, -1))
5048
+ z[2] || (z[2] = i("i", { class: "imicon im-reload" }, null, -1))
5052
5049
  ]),
5053
5050
  _: 2
5054
5051
  }, [
@@ -5068,7 +5065,7 @@ const Aa = {
5068
5065
  onClick: Vt
5069
5066
  }, ke({
5070
5067
  icon: A(() => [
5071
- N[3] || (N[3] = c("i", { class: "imicon im-layout" }, null, -1))
5068
+ z[3] || (z[3] = i("i", { class: "imicon im-layout" }, null, -1))
5072
5069
  ]),
5073
5070
  _: 2
5074
5071
  }, [
@@ -5088,7 +5085,7 @@ const Aa = {
5088
5085
  onClick: Lt
5089
5086
  }, ke({
5090
5087
  icon: A(() => [
5091
- N[4] || (N[4] = c("i", { class: "imicon im-download" }, null, -1))
5088
+ z[4] || (z[4] = i("i", { class: "imicon im-download" }, null, -1))
5092
5089
  ]),
5093
5090
  _: 2
5094
5091
  }, [
@@ -5102,30 +5099,30 @@ const Aa = {
5102
5099
  ]), 1032, ["txt"])) : P("", !0)
5103
5100
  ])) : P("", !0)
5104
5101
  ], 2)) : P("", !0),
5105
- c("div", Ea, [
5106
- c("div", {
5102
+ i("div", Ea, [
5103
+ i("div", {
5107
5104
  class: "vtableWrapper relative wp100 z1",
5108
5105
  style: Oe({ height: `${a(zt)}px` })
5109
5106
  }, [
5110
- c("div", {
5107
+ i("div", {
5111
5108
  ref_key: "vtableHost",
5112
5109
  ref: _,
5113
5110
  class: "vtableHost relative wp100 vtableHostFill"
5114
5111
  }, null, 512),
5115
- Yt(c("div", {
5112
+ Yt(i("div", {
5116
5113
  class: "treeCellLoadMask abs flexMode hc vc",
5117
5114
  style: Oe(a(jt))
5118
- }, [...N[5] || (N[5] = [
5119
- c("i", { class: "imicon im-loading ani-rotate fs18 txt-primary loadMaskIcon" }, null, -1)
5115
+ }, [...z[5] || (z[5] = [
5116
+ i("i", { class: "imicon im-loading ani-rotate fs18 txt-primary loadMaskIcon" }, null, -1)
5120
5117
  ])], 4), [
5121
5118
  [Zt, a(C).show]
5122
5119
  ])
5123
5120
  ], 4)
5124
5121
  ]),
5125
5122
  e.nofooter === !1 ? ($(), L("div", Va, [
5126
- B(X, {
5123
+ H(X, {
5127
5124
  "current-page": a(s).page,
5128
- "onUpdate:currentPage": N[0] || (N[0] = (we) => a(s).page = we),
5125
+ "onUpdate:currentPage": z[0] || (z[0] = (we) => a(s).page = we),
5129
5126
  background: "",
5130
5127
  total: a(s).total,
5131
5128
  "default-page-size": a(s).pageSize,
@@ -5137,9 +5134,9 @@ const Aa = {
5137
5134
  onCurrentChange: At
5138
5135
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
5139
5136
  ])) : P("", !0),
5140
- B(St, {
5137
+ H(St, {
5141
5138
  current: a(f).current,
5142
- "onUpdate:current": N[1] || (N[1] = (we) => a(f).current = we),
5139
+ "onUpdate:current": z[1] || (z[1] = (we) => a(f).current = we),
5143
5140
  "table-name": e.tableName,
5144
5141
  drawer: a(f).list,
5145
5142
  list: a(s).list,
@@ -5162,7 +5159,7 @@ const Aa = {
5162
5159
  }, za = {
5163
5160
  name: "Matt Avias Frame",
5164
5161
  copyright: "©2026",
5165
- version: "1.0.17",
5162
+ version: "1.0.18",
5166
5163
  author: "Matt Avias",
5167
5164
  date: "2026-02-26",
5168
5165
  /** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */