mvframe 1.1.2 → 1.1.7

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 Pa } from "./util.js";
2
2
  import { d as xa } from "./directive.js";
3
3
  import { s as Qe, p as ea, a as Na } from "./store-shared.js";
4
4
  import { createRouter as La, createWebHistory as $a, useRoute as aa, useRouter as la } from "vue-router";
5
- import { computed as C, openBlock as A, createElementBlock as O, mergeProps as ae, unref as t, Fragment as ee, renderList as oe, normalizeClass as G, createCommentVNode as V, createTextVNode as le, toDisplayString as x, renderSlot as J, createElementVNode as d, reactive as Y, onUnmounted as de, watch as te, markRaw as Ae, resolveComponent as R, createVNode as j, withCtx as N, createBlock as q, resolveDynamicComponent as na, nextTick as me, getCurrentInstance as ce, ref as W, onMounted as ne, normalizeStyle as ie, defineComponent as oa, cloneVNode as De, h as Re, inject as _e, withModifiers as pe, defineAsyncComponent as ta, Teleport as ja, Transition as ra, createSlots as ue, normalizeProps as we, guardReactiveProps as Me, useSlots as Ia, useAttrs as be, withKeys as ia, createStaticVNode as Ba, isRef as sa, onBeforeMount as Da } from "vue";
5
+ import { computed as C, openBlock as A, createElementBlock as E, mergeProps as oe, unref as t, Fragment as ne, renderList as se, normalizeClass as G, createCommentVNode as V, createTextVNode as te, toDisplayString as x, renderSlot as Z, createElementVNode as d, reactive as q, onUnmounted as be, watch as re, markRaw as Ae, resolveComponent as F, createVNode as j, withCtx as N, createBlock as Q, resolveDynamicComponent as na, nextTick as de, getCurrentInstance as ue, ref as X, onMounted as ie, normalizeStyle as ce, defineComponent as oa, cloneVNode as De, h as Re, inject as _e, withModifiers as pe, defineAsyncComponent as ta, Teleport as ja, Transition as ra, createSlots as me, normalizeProps as we, guardReactiveProps as Me, useSlots as Ia, useAttrs as ve, withKeys as ia, createStaticVNode as Ba, isRef as sa, onBeforeMount as Da } from "vue";
6
6
  /* empty css */
7
7
  import { deepEqual as Fe, isInView as Ra, loadMvframeTheme as Fa, MVFRAME_STORAGE_LANG as Ge, download as Ga, useRemoteSummary as Va, useOptions as Ka, useLang as Ua } from "./composition.js";
8
8
  import Ve from "vuedraggable";
@@ -1157,17 +1157,17 @@ const Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1157
1157
  if (Fl.indexOf(e) === -1)
1158
1158
  return !1;
1159
1159
  {
1160
- const o = /* @__PURE__ */ new Date(), a = new Date(o.getFullYear(), 0, 1), l = new Date(o.getFullYear(), 6, 1), n = (z) => {
1161
- var D;
1162
- const s = ((D = new Intl.DateTimeFormat("en-US", {
1160
+ const o = /* @__PURE__ */ new Date(), a = new Date(o.getFullYear(), 0, 1), l = new Date(o.getFullYear(), 6, 1), n = (v) => {
1161
+ var B;
1162
+ const s = ((B = new Intl.DateTimeFormat("en-US", {
1163
1163
  timeZone: e,
1164
1164
  timeZoneName: "longOffset"
1165
- }).formatToParts(z).find((v) => v.type === "timeZoneName").value.match(/[+-]\d{2}(?::\d{2})?/)) == null ? void 0 : D[0]) || "+00:00", [f, w, y, P] = s.match(
1165
+ }).formatToParts(v).find((f) => f.type === "timeZoneName").value.match(/[+-]\d{2}(?::\d{2})?/)) == null ? void 0 : B[0]) || "+00:00", [g, z, h, P] = s.match(
1166
1166
  /([+-])(\d{2})(?::?(\d{2}))?/
1167
1167
  );
1168
- return (w === "+" ? -1 : 1) * (parseInt(y) * 60 + parseInt(P || "00"));
1169
- }, r = n(o), c = n(a), p = n(l);
1170
- return r < Math.max(c, p);
1168
+ return (z === "+" ? -1 : 1) * (parseInt(h) * 60 + parseInt(P || "00"));
1169
+ }, i = n(o), c = n(a), w = n(l);
1170
+ return i < Math.max(c, w);
1171
1171
  }
1172
1172
  }, ka = Object.freeze([
1173
1173
  {
@@ -6646,8 +6646,8 @@ function Jl(e) {
6646
6646
  const l = a == null ? void 0 : a.children;
6647
6647
  if (Array.isArray(l))
6648
6648
  for (const n of l) {
6649
- const r = n == null ? void 0 : n.code;
6650
- r != null && !Object.prototype.hasOwnProperty.call(o, r) && (o[r] = n);
6649
+ const i = n == null ? void 0 : n.code;
6650
+ i != null && !Object.prototype.hasOwnProperty.call(o, i) && (o[i] = n);
6651
6651
  }
6652
6652
  }
6653
6653
  return Object.freeze(o);
@@ -9611,13 +9611,13 @@ function je(e) {
9611
9611
  const a = String(e).split(".");
9612
9612
  let l = o;
9613
9613
  for (let n = 0; n < a.length; n++) {
9614
- const r = a[n];
9615
- if (l == null || typeof l != "object" || !Object.prototype.hasOwnProperty.call(l, r)) {
9616
- console.error(`[mvframe] useMap: no node at "${r}" in "${e}"`);
9614
+ const i = a[n];
9615
+ if (l == null || typeof l != "object" || !Object.prototype.hasOwnProperty.call(l, i)) {
9616
+ console.error(`[mvframe] useMap: no node at "${i}" in "${e}"`);
9617
9617
  return;
9618
9618
  }
9619
9619
  l = /** @type {Record<string, unknown>} */
9620
- l[r];
9620
+ l[i];
9621
9621
  }
9622
9622
  return l;
9623
9623
  }
@@ -9682,10 +9682,10 @@ function ze(e) {
9682
9682
  function Ie(e, o) {
9683
9683
  const a = { ...e };
9684
9684
  for (const l of Object.keys(o)) {
9685
- const n = o[l], r = a[l];
9686
- n != null && typeof n == "object" && !Array.isArray(n) && r != null && typeof r == "object" && !Array.isArray(r) ? a[l] = Ie(
9685
+ const n = o[l], i = a[l];
9686
+ n != null && typeof n == "object" && !Array.isArray(n) && i != null && typeof i == "object" && !Array.isArray(i) ? a[l] = Ie(
9687
9687
  /** @type {Record<string, unknown>} */
9688
- r,
9688
+ i,
9689
9689
  /** @type {Record<string, unknown>} */
9690
9690
  n
9691
9691
  ) : a[l] = n;
@@ -9748,7 +9748,7 @@ function sn() {
9748
9748
  }
9749
9749
  .mvframeTopToastItem {
9750
9750
  pointer-events: auto;
9751
- min-width: 18.75rem;
9751
+ min-width: 1rem;
9752
9752
  max-width: min(90vw, 35rem);
9753
9753
  padding: 0.625rem 1rem;
9754
9754
  border-radius: 0.25rem;
@@ -9811,29 +9811,29 @@ function un(e, o) {
9811
9811
  return { message: String(e), duration: a, showClose: !1 };
9812
9812
  }
9813
9813
  function ge(e, o) {
9814
- const a = We[e] || We.error, { message: l, duration: n, showClose: r } = un(o, e), c = cn();
9814
+ const a = We[e] || We.error, { message: l, duration: n, showClose: i } = un(o, e), c = cn();
9815
9815
  if (!c) {
9816
9816
  console.error("[mvframe/message]", l);
9817
9817
  return;
9818
9818
  }
9819
- const p = document.createElement("div");
9820
- p.className = "mvframeTopToastItem", p.style.setProperty("--mvframe-toast-border", a.border), p.style.setProperty("--mvframe-toast-bg", a.bg), p.style.setProperty("--mvframe-toast-color", a.color), p.setAttribute(
9819
+ const w = document.createElement("div");
9820
+ w.className = "mvframeTopToastItem", w.style.setProperty("--mvframe-toast-border", a.border), w.style.setProperty("--mvframe-toast-bg", a.bg), w.style.setProperty("--mvframe-toast-color", a.color), w.setAttribute(
9821
9821
  "role",
9822
9822
  e === "error" ? "alert" : "status"
9823
9823
  );
9824
- const z = document.createElement("div");
9825
- z.className = "mvframeTopToastText", z.textContent = l, p.appendChild(z);
9824
+ const v = document.createElement("div");
9825
+ v.className = "mvframeTopToastText", v.textContent = l, w.appendChild(v);
9826
9826
  let b = null, s = null;
9827
- const f = () => {
9828
- b && (clearTimeout(b), b = null), s && (clearTimeout(s), s = null), p.parentNode && (p.classList.add("mvframeTopToastLeave"), s = window.setTimeout(() => {
9829
- p.remove(), s = null;
9827
+ const g = () => {
9828
+ b && (clearTimeout(b), b = null), s && (clearTimeout(s), s = null), w.parentNode && (w.classList.add("mvframeTopToastLeave"), s = window.setTimeout(() => {
9829
+ w.remove(), s = null;
9830
9830
  }, 200));
9831
9831
  };
9832
- if (r || n === 0) {
9833
- const w = document.createElement("button");
9834
- w.type = "button", w.className = "mvframeTopToastClose", w.setAttribute("aria-label", "Close"), w.textContent = "×", w.addEventListener("click", f), p.appendChild(w);
9832
+ if (i || n === 0) {
9833
+ const z = document.createElement("button");
9834
+ z.type = "button", z.className = "mvframeTopToastClose", z.setAttribute("aria-label", "Close"), z.textContent = "×", z.addEventListener("click", g), w.appendChild(z);
9835
9835
  }
9836
- c.appendChild(p), n > 0 && (b = window.setTimeout(f, n));
9836
+ c.appendChild(w), n > 0 && (b = window.setTimeout(g, n));
9837
9837
  }
9838
9838
  function Yr() {
9839
9839
  return {
@@ -9853,26 +9853,26 @@ const ye = (e) => {
9853
9853
  } catch {
9854
9854
  }
9855
9855
  }, dn = ({ router: e, useAdmin: o, adminPermission: a, noaccess: l }) => {
9856
- e.beforeEach((n, r, c) => {
9857
- ye(!0), o && n.meta.admin ? a() ? c() : l && l(n, r, c) : c();
9858
- }), e.afterEach((n, r, c) => {
9859
- var z, b;
9856
+ e.beforeEach((n, i, c) => {
9857
+ ye(!0), o && n.meta.admin ? a() ? c() : l && l(n, i, c) : c();
9858
+ }), e.afterEach((n, i, c) => {
9859
+ var v, b;
9860
9860
  if (c) {
9861
9861
  ye(!1);
9862
9862
  return;
9863
9863
  }
9864
- const p = Qe.tab(ea);
9865
- document.title = ((z = n.meta) == null ? void 0 : z.title) || ((b = globalThis.$config) == null ? void 0 : b.name), p.saveTab(n), ye(!1);
9864
+ const w = Qe.tab(ea);
9865
+ document.title = ((v = n.meta) == null ? void 0 : v.title) || ((b = globalThis.$config) == null ? void 0 : b.name), w.saveTab(n), ye(!1);
9866
9866
  }), e.onError(() => {
9867
9867
  ye(!1);
9868
9868
  });
9869
- }, mn = (e, { routes: o, guard: a, useAdmin: l = !1, adminPermission: n = () => !0, noaccess: r }) => {
9869
+ }, mn = (e, { routes: o, guard: a, useAdmin: l = !1, adminPermission: n = () => !0, noaccess: i }) => {
9870
9870
  const c = La({
9871
9871
  history: $a(),
9872
9872
  routes: o
9873
9873
  });
9874
- a && a(c), dn({ router: c, useAdmin: l, adminPermission: n, noaccess: r }), e.use(c), globalThis.$router = c;
9875
- }, Q = (e, o) => {
9874
+ a && a(c), dn({ router: c, useAdmin: l, adminPermission: n, noaccess: i }), e.use(c), globalThis.$router = c;
9875
+ }, le = (e, o) => {
9876
9876
  const a = e.__vccOpts || e;
9877
9877
  for (const [l, n] of o)
9878
9878
  a[l] = n;
@@ -9922,14 +9922,14 @@ const ye = (e) => {
9922
9922
  const a = e, l = o, n = (b) => {
9923
9923
  const s = b.value;
9924
9924
  return s === a.modelValue && (s !== void 0 || a.modelValue !== void 0);
9925
- }, r = (b) => {
9925
+ }, i = (b) => {
9926
9926
  a.disabled || (l("update:modelValue", b.value), l("change", b.value));
9927
9927
  }, c = C(() => {
9928
- const b = a.options, s = Array.isArray(b) ? b : [], f = a.valueKey, w = a.labelKey, y = a.iconKey;
9928
+ const b = a.options, s = Array.isArray(b) ? b : [], g = a.valueKey, z = a.labelKey, h = a.iconKey;
9929
9929
  return s.filter((P) => P != null).map((P) => typeof P == "object" && !Array.isArray(P) ? {
9930
- value: P[f],
9931
- label: P[w] ?? "",
9932
- icon: P[y] || "",
9930
+ value: P[g],
9931
+ label: P[z] ?? "",
9932
+ icon: P[h] || "",
9933
9933
  disabled: P.disabled,
9934
9934
  raw: P
9935
9935
  } : {
@@ -9939,27 +9939,27 @@ const ye = (e) => {
9939
9939
  disabled: P.disabled,
9940
9940
  raw: P
9941
9941
  });
9942
- }), p = C(() => ({ small: "g4", default: "g6", large: "g8" })[a.size] ?? "g6"), z = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : "");
9943
- return (b, s) => (A(), O("div", ae({
9944
- class: ["MvcBtnGroup flexMode", [t(p), t(z), b.$attrs.class]]
9942
+ }), w = C(() => ({ small: "g4", default: "g6", large: "g8" })[a.size] ?? "g6"), v = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : "");
9943
+ return (b, s) => (A(), E("div", oe({
9944
+ class: ["MvcBtnGroup flexMode", [t(w), t(v), b.$attrs.class]]
9945
9945
  }, b.$attrs, { role: "group" }), [
9946
- (A(!0), O(ee, null, oe(t(c), (f) => (A(), O("button", {
9947
- key: f.value,
9946
+ (A(!0), E(ne, null, se(t(c), (g) => (A(), E("button", {
9947
+ key: g.value,
9948
9948
  type: "button",
9949
- class: G(["btnItem", { isActive: n(f) }]),
9950
- disabled: a.disabled || f.disabled,
9951
- onClick: (w) => r(f)
9949
+ class: G(["btnItem", { isActive: n(g) }]),
9950
+ disabled: a.disabled || g.disabled,
9951
+ onClick: (z) => i(g)
9952
9952
  }, [
9953
- f.icon ? (A(), O("i", {
9953
+ g.icon ? (A(), E("i", {
9954
9954
  key: 0,
9955
- class: G([[f.icon, a.iconClass], "noShrink fs16"]),
9955
+ class: G([[g.icon, a.iconClass], "noShrink fs16"]),
9956
9956
  "aria-hidden": "true"
9957
9957
  }, null, 2)) : V("", !0),
9958
- le(" " + x(b.$l(f.label)), 1)
9958
+ te(" " + x(b.$l(g.label)), 1)
9959
9959
  ], 10, bn))), 128))
9960
9960
  ], 16));
9961
9961
  }
9962
- }), pn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-97a2b9b8"]]), fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9962
+ }), pn = /* @__PURE__ */ le(vn, [["__scopeId", "data-v-97a2b9b8"]]), fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9963
9963
  __proto__: null,
9964
9964
  default: pn
9965
9965
  }, Symbol.toStringTag, { value: "Module" })), hn = {
@@ -10003,29 +10003,29 @@ const ye = (e) => {
10003
10003
  },
10004
10004
  setup(e) {
10005
10005
  const o = e;
10006
- return (a, l) => (A(), O("div", ae({
10006
+ return (a, l) => (A(), E("div", oe({
10007
10007
  class: ["MvcCard", { "MvcCard--fillParent": o.fillParent }]
10008
10008
  }, a.$attrs), [
10009
- o.title || a.$slots.header ? (A(), O("div", {
10009
+ o.title || a.$slots.header ? (A(), E("div", {
10010
10010
  key: 0,
10011
10011
  class: G(["header", o.headerClass])
10012
10012
  }, [
10013
- a.$slots.header ? J(a.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (A(), O("span", hn, x(o.title), 1)) : V("", !0)
10013
+ a.$slots.header ? Z(a.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (A(), E("span", hn, x(o.title), 1)) : V("", !0)
10014
10014
  ], 2)) : V("", !0),
10015
10015
  d("div", {
10016
10016
  class: G(["body", o.bodyClass])
10017
10017
  }, [
10018
- J(a.$slots, "default", {}, void 0, !0)
10018
+ Z(a.$slots, "default", {}, void 0, !0)
10019
10019
  ], 2),
10020
- a.$slots.footer ? (A(), O("div", {
10020
+ a.$slots.footer ? (A(), E("div", {
10021
10021
  key: 1,
10022
10022
  class: G(["footer", o.footerClass])
10023
10023
  }, [
10024
- J(a.$slots, "footer", {}, void 0, !0)
10024
+ Z(a.$slots, "footer", {}, void 0, !0)
10025
10025
  ], 2)) : V("", !0)
10026
10026
  ], 16));
10027
10027
  }
10028
- }), gn = /* @__PURE__ */ Q(_n, [["__scopeId", "data-v-610b0b4c"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10028
+ }), gn = /* @__PURE__ */ le(_n, [["__scopeId", "data-v-610b0b4c"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10029
10029
  __proto__: null,
10030
10030
  default: gn
10031
10031
  }, Symbol.toStringTag, { value: "Module" })), An = { class: "MvcDrawer" }, zn = { class: "dragArea" }, wn = {
@@ -10059,65 +10059,65 @@ const ye = (e) => {
10059
10059
  size: 640,
10060
10060
  params: {},
10061
10061
  direction: "rtl"
10062
- }), n = Y({
10062
+ }), n = q({
10063
10063
  drawerInfo: l(),
10064
10064
  cpt: null,
10065
10065
  mounted: !1,
10066
10066
  dragMode: !1
10067
- }), r = o, c = () => {
10067
+ }), i = o, c = () => {
10068
10068
  n.mounted = !0;
10069
- }, p = () => {
10070
- r("update:current", ""), n.mounted = !1, D.value ? n.drawerInfo = l() : me(() => {
10069
+ }, w = () => {
10070
+ i("update:current", ""), n.mounted = !1, B.value ? n.drawerInfo = l() : de(() => {
10071
10071
  delete n.drawerInfo.cpt;
10072
10072
  });
10073
- }, z = () => {
10074
- n.drawerInfo.visible && (r("update:current", ""), n.drawerInfo.visible = !1);
10073
+ }, v = () => {
10074
+ n.drawerInfo.visible && (i("update:current", ""), n.drawerInfo.visible = !1);
10075
10075
  }, b = () => {
10076
10076
  n.drawerInfo.cpt = n.cpt;
10077
- }, s = (v) => {
10078
- n.dragMode = !0, document.addEventListener("mousemove", f), document.addEventListener("mouseup", w);
10079
- }, f = (v) => {
10080
- var m, E;
10081
- if (v.x > 80) {
10082
- const T = (((E = (m = globalThis.$config) == null ? void 0 : m.options) == null ? void 0 : E.innerWidth) ?? window.innerWidth) - v.x;
10083
- T > 480 && (n.drawerInfo.size = T);
10077
+ }, s = (f) => {
10078
+ n.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", z);
10079
+ }, g = (f) => {
10080
+ var m, M;
10081
+ if (f.x > 80) {
10082
+ const S = (((M = (m = globalThis.$config) == null ? void 0 : m.options) == null ? void 0 : M.innerWidth) ?? window.innerWidth) - f.x;
10083
+ S > 480 && (n.drawerInfo.size = S);
10084
10084
  }
10085
- }, w = () => {
10086
- n.dragMode = !1, y();
10087
- }, y = () => {
10088
- document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", w);
10089
- }, P = C(() => !!n.drawerInfo.title), D = C(() => !a.keepalive);
10090
- return de(() => {
10091
- y();
10092
- }), te(
10085
+ }, z = () => {
10086
+ n.dragMode = !1, h();
10087
+ }, h = () => {
10088
+ document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", z);
10089
+ }, P = C(() => !!n.drawerInfo.title), B = C(() => !a.keepalive);
10090
+ return be(() => {
10091
+ h();
10092
+ }), re(
10093
10093
  () => a.current,
10094
- (v) => {
10094
+ (f) => {
10095
10095
  if (a.drawer.length)
10096
- if (window.$getType(v) === "Number") {
10097
- const m = a.drawer[v], E = {
10096
+ if (window.$getType(f) === "Number") {
10097
+ const m = a.drawer[f], M = {
10098
10098
  ...m,
10099
10099
  size: m.size || 640,
10100
10100
  direction: m.direction || "rtl",
10101
10101
  visible: !0
10102
10102
  };
10103
- E.cpt ? (n.cpt = Ae(E.cpt), delete E.cpt) : (n.cpt = null, c()), n.drawerInfo = E;
10103
+ M.cpt ? (n.cpt = Ae(M.cpt), delete M.cpt) : (n.cpt = null, c()), n.drawerInfo = M;
10104
10104
  } else
10105
- z();
10105
+ v();
10106
10106
  }
10107
- ), (v, m) => {
10108
- const E = R("Loading"), u = R("el-drawer");
10109
- return A(), O("div", An, [
10107
+ ), (f, m) => {
10108
+ const M = F("Loading"), u = F("el-drawer");
10109
+ return A(), E("div", An, [
10110
10110
  j(u, {
10111
10111
  modelValue: t(n).drawerInfo.visible,
10112
- "onUpdate:modelValue": m[0] || (m[0] = (T) => t(n).drawerInfo.visible = T),
10113
- title: v.$l(t(n).drawerInfo.title),
10112
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => t(n).drawerInfo.visible = S),
10113
+ title: f.$l(t(n).drawerInfo.title),
10114
10114
  "with-header": t(P),
10115
10115
  "append-to-body": "",
10116
10116
  size: t(n).drawerInfo.size,
10117
10117
  height: t(n).drawerInfo.height,
10118
10118
  direction: t(n).drawerInfo.direction,
10119
- "destroy-on-close": t(D),
10120
- onClosed: p,
10119
+ "destroy-on-close": t(B),
10120
+ onClosed: w,
10121
10121
  onOpened: b,
10122
10122
  class: G(t(n).dragMode && "notransition noevent noselect")
10123
10123
  }, {
@@ -10130,18 +10130,18 @@ const ye = (e) => {
10130
10130
  d("i", { class: "imicon im-handle fs12" }, null, -1)
10131
10131
  ])], 34)
10132
10132
  ]),
10133
- t(P) ? V("", !0) : (A(), O("div", wn, [
10133
+ t(P) ? V("", !0) : (A(), E("div", wn, [
10134
10134
  d("i", {
10135
10135
  class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
10136
- onClick: z
10136
+ onClick: v
10137
10137
  })
10138
10138
  ])),
10139
- j(E, {
10139
+ j(M, {
10140
10140
  loading: !t(n).mounted
10141
10141
  }, null, 8, ["loading"]),
10142
- v.$slots.default ? J(v.$slots, "default", { key: 1 }, void 0, !0) : (A(), q(na(t(n).drawerInfo.cpt), ae({ key: 2 }, v.$attrs, {
10142
+ f.$slots.default ? Z(f.$slots, "default", { key: 1 }, void 0, !0) : (A(), Q(na(t(n).drawerInfo.cpt), oe({ key: 2 }, f.$attrs, {
10143
10143
  params: t(n).drawerInfo.params,
10144
- onClose: z,
10144
+ onClose: v,
10145
10145
  onMounted: c
10146
10146
  }), null, 16, ["params"]))
10147
10147
  ]),
@@ -10150,7 +10150,7 @@ const ye = (e) => {
10150
10150
  ]);
10151
10151
  };
10152
10152
  }
10153
- }), Tn = /* @__PURE__ */ Q(Sn, [["__scopeId", "data-v-3bd55143"]]), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10153
+ }), Tn = /* @__PURE__ */ le(Sn, [["__scopeId", "data-v-3bd55143"]]), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10154
10154
  __proto__: null,
10155
10155
  default: Tn
10156
10156
  }, Symbol.toStringTag, { value: "Module" })), Mn = {
@@ -10217,61 +10217,61 @@ const ye = (e) => {
10217
10217
  },
10218
10218
  emits: ["close", "submit", "cancel", "mounted"],
10219
10219
  setup(e, { expose: o, emit: a }) {
10220
- const l = e, { proxy: n } = ce(), r = W(), c = a;
10221
- ne(() => {
10220
+ const l = e, { proxy: n } = ue(), i = X(), c = a;
10221
+ ie(() => {
10222
10222
  c("mounted");
10223
10223
  });
10224
- const p = () => {
10224
+ const w = () => {
10225
10225
  c("close"), c("cancel");
10226
- }, z = () => {
10226
+ }, v = () => {
10227
10227
  c("submit");
10228
10228
  };
10229
10229
  o({
10230
- toClose: p,
10231
- scrollTo: (w) => {
10232
- var y;
10233
- (y = r.value) == null || y.setScrollTop(w);
10230
+ toClose: w,
10231
+ scrollTo: (z) => {
10232
+ var h;
10233
+ (h = i.value) == null || h.setScrollTop(z);
10234
10234
  }
10235
10235
  });
10236
- const s = C(() => [l.loading && "noevent", n.$attrs.class]), f = C(() => {
10237
- const y = l.nofooter ? 0 : 4;
10236
+ const s = C(() => [l.loading && "noevent", n.$attrs.class]), g = C(() => {
10237
+ const h = l.nofooter ? 0 : 4;
10238
10238
  return {
10239
- height: l.height ? `${3.5 + y + l.height / 16}rem` : `calc(100vh - ${3.5}rem - ${y}rem - ${l.minusHeight / 16}rem)`
10239
+ height: l.height ? `${3.5 + h + l.height / 16}rem` : `calc(100vh - ${3.5}rem - ${h}rem - ${l.minusHeight / 16}rem)`
10240
10240
  };
10241
10241
  });
10242
- return (w, y) => {
10243
- const P = R("Loading"), D = R("el-scrollbar"), v = R("el-button");
10244
- return A(), O(ee, null, [
10242
+ return (z, h) => {
10243
+ const P = F("Loading"), B = F("el-scrollbar"), f = F("el-button");
10244
+ return A(), E(ne, null, [
10245
10245
  d("div", {
10246
10246
  class: G(["MvcDrawerBody VAfter", t(s)]),
10247
- style: ie(t(f))
10247
+ style: ce(t(g))
10248
10248
  }, [
10249
10249
  j(P, {
10250
10250
  loading: l.loading,
10251
10251
  txt: l.loadingTxt
10252
10252
  }, null, 8, ["loading", "txt"]),
10253
- l.noscroll ? J(w.$slots, "default", { key: 0 }, void 0, !0) : (A(), q(D, {
10253
+ l.noscroll ? Z(z.$slots, "default", { key: 0 }, void 0, !0) : (A(), Q(B, {
10254
10254
  key: 1,
10255
10255
  ref_key: "scrollbar",
10256
- ref: r,
10256
+ ref: i,
10257
10257
  class: "wp100"
10258
10258
  }, {
10259
10259
  default: N(() => [
10260
- J(w.$slots, "default", {}, void 0, !0)
10260
+ Z(z.$slots, "default", {}, void 0, !0)
10261
10261
  ]),
10262
10262
  _: 3
10263
10263
  }, 512))
10264
10264
  ], 6),
10265
- l.nofooter ? V("", !0) : (A(), O("div", {
10265
+ l.nofooter ? V("", !0) : (A(), E("div", {
10266
10266
  key: 0,
10267
10267
  class: G(["drawerFooter relative flexMode vc hb h64", l.footerClass])
10268
10268
  }, [
10269
- w.$slots.footer ? J(w.$slots, "footer", { key: 0 }, void 0, !0) : (A(), O("div", Mn, [
10270
- w.$slots.cancel ? J(w.$slots, "cancel", { key: 0 }, void 0, !0) : l.showCancel ? (A(), q(v, {
10269
+ z.$slots.footer ? Z(z.$slots, "footer", { key: 0 }, void 0, !0) : (A(), E("div", Mn, [
10270
+ z.$slots.cancel ? Z(z.$slots, "cancel", { key: 0 }, void 0, !0) : l.showCancel ? (A(), Q(f, {
10271
10271
  key: 1,
10272
10272
  plain: "",
10273
10273
  size: "large",
10274
- onClick: p
10274
+ onClick: w
10275
10275
  }, {
10276
10276
  icon: N(() => [
10277
10277
  d("i", {
@@ -10279,16 +10279,16 @@ const ye = (e) => {
10279
10279
  }, null, 2)
10280
10280
  ]),
10281
10281
  default: N(() => [
10282
- d("span", kn, x(w.$l(l.cancelTxt)), 1)
10282
+ d("span", kn, x(z.$l(l.cancelTxt)), 1)
10283
10283
  ]),
10284
10284
  _: 1
10285
10285
  })) : V("", !0),
10286
- w.$slots.submit ? J(w.$slots, "submit", { key: 2 }, void 0, !0) : l.showConfirm ? (A(), q(v, {
10286
+ z.$slots.submit ? Z(z.$slots, "submit", { key: 2 }, void 0, !0) : l.showConfirm ? (A(), Q(f, {
10287
10287
  key: 3,
10288
10288
  type: "primary",
10289
10289
  size: "large",
10290
10290
  loading: l.loading,
10291
- onClick: z
10291
+ onClick: v
10292
10292
  }, {
10293
10293
  icon: N(() => [
10294
10294
  d("i", {
@@ -10296,17 +10296,17 @@ const ye = (e) => {
10296
10296
  }, null, 2)
10297
10297
  ]),
10298
10298
  default: N(() => [
10299
- d("span", En, x(w.$l(l.confirmTxt)), 1)
10299
+ d("span", En, x(z.$l(l.confirmTxt)), 1)
10300
10300
  ]),
10301
10301
  _: 1
10302
10302
  }, 8, ["loading"])) : V("", !0),
10303
- w.$slots.footerright ? J(w.$slots, "footerright", { key: 4 }, void 0, !0) : V("", !0)
10303
+ z.$slots.footerright ? Z(z.$slots, "footerright", { key: 4 }, void 0, !0) : V("", !0)
10304
10304
  ]))
10305
10305
  ], 2))
10306
10306
  ], 64);
10307
10307
  };
10308
10308
  }
10309
- }), Pn = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-33acb7b3"]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10309
+ }), Pn = /* @__PURE__ */ le(On, [["__scopeId", "data-v-33acb7b3"]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10310
10310
  __proto__: null,
10311
10311
  default: Pn
10312
10312
  }, Symbol.toStringTag, { value: "Module" }));
@@ -10314,7 +10314,7 @@ function Nn(e) {
10314
10314
  var a;
10315
10315
  if (e == null) return [];
10316
10316
  const o = Array.isArray(e) ? e : [e];
10317
- if (o.length === 1 && ((a = o[0]) == null ? void 0 : a.type) === ee) {
10317
+ if (o.length === 1 && ((a = o[0]) == null ? void 0 : a.type) === ne) {
10318
10318
  const l = o[0].children;
10319
10319
  return l == null ? [] : Array.isArray(l) ? l : [l];
10320
10320
  }
@@ -10333,31 +10333,31 @@ const Ln = oa({
10333
10333
  setup(e, o) {
10334
10334
  function a(n) {
10335
10335
  if (!Array.isArray(n)) return [];
10336
- const r = n.filter((b) => b && b.children !== "v-if"), c = r.length !== n.length, p = r.map((b) => l(b));
10337
- return c || p.some((b, s) => b !== r[s]) ? p : n;
10336
+ const i = n.filter((b) => b && b.children !== "v-if"), c = i.length !== n.length, w = i.map((b) => l(b));
10337
+ return c || w.some((b, s) => b !== i[s]) ? w : n;
10338
10338
  }
10339
10339
  function l(n) {
10340
- var p, z, b, s;
10340
+ var w, v, b, s;
10341
10341
  if (!n) return n;
10342
- const r = n.children, c = window.$getType(r);
10343
- if (((p = n.type) == null ? void 0 : p.name) === "ElFormItem" && ((z = n.props) == null ? void 0 : z.label) != null) {
10344
- const f = ((s = (b = n.props.label).$l) == null ? void 0 : s.call(b)) || n.props.label;
10342
+ const i = n.children, c = window.$getType(i);
10343
+ if (((w = n.type) == null ? void 0 : w.name) === "ElFormItem" && ((v = n.props) == null ? void 0 : v.label) != null) {
10344
+ const g = ((s = (b = n.props.label).$l) == null ? void 0 : s.call(b)) || n.props.label;
10345
10345
  if (c === "Array") {
10346
- const w = a(r);
10347
- return qe(w, r) ? De(n, { label: f }) : Re(n.type, { ...n.props || {}, label: f }, w);
10346
+ const z = a(i);
10347
+ return qe(z, i) ? De(n, { label: g }) : Re(n.type, { ...n.props || {}, label: g }, z);
10348
10348
  }
10349
- return De(n, { label: f });
10349
+ return De(n, { label: g });
10350
10350
  }
10351
10351
  if (c === "Array") {
10352
- const f = a(r);
10353
- return qe(f, r) ? n : Re(n.type, n.props, f);
10352
+ const g = a(i);
10353
+ return qe(g, i) ? n : Re(n.type, n.props, g);
10354
10354
  }
10355
10355
  return n;
10356
10356
  }
10357
10357
  return () => {
10358
- var c, p;
10359
- const n = (p = (c = o.slots).default) == null ? void 0 : p.call(c), r = Nn(n);
10360
- return a(r);
10358
+ var c, w;
10359
+ const n = (w = (c = o.slots).default) == null ? void 0 : w.call(c), i = Nn(n);
10360
+ return a(i);
10361
10361
  };
10362
10362
  }
10363
10363
  }), $n = { class: "MvcForm" }, jn = /* @__PURE__ */ Object.assign({
@@ -10379,25 +10379,25 @@ const Ln = oa({
10379
10379
  }
10380
10380
  },
10381
10381
  setup(e, { expose: o, emit: a }) {
10382
- const l = e, n = Y({
10382
+ const l = e, n = q({
10383
10383
  form: {}
10384
- }), { proxy: r } = ce(), c = a, p = async () => {
10384
+ }), { proxy: i } = ue(), c = a, w = async () => {
10385
10385
  var s;
10386
10386
  try {
10387
- return (s = r.$refs) != null && s.form ? (await r.$refs.form.validate(), z()) : !1;
10387
+ return (s = i.$refs) != null && s.form ? (await i.$refs.form.validate(), v()) : !1;
10388
10388
  } catch {
10389
10389
  return !1;
10390
10390
  }
10391
- }, z = () => n.form, b = C(() => {
10391
+ }, v = () => n.form, b = C(() => {
10392
10392
  const s = {};
10393
- for (let f in l.rules)
10394
- s[f] = l.rules[f].map((w) => ({
10395
- ...w,
10396
- ...w.message && { message: window.$l(w.message) }
10393
+ for (let g in l.rules)
10394
+ s[g] = l.rules[g].map((z) => ({
10395
+ ...z,
10396
+ ...z.message && { message: window.$l(z.message) }
10397
10397
  }));
10398
10398
  return s;
10399
10399
  });
10400
- return te(
10400
+ return re(
10401
10401
  () => n.form,
10402
10402
  (s) => {
10403
10403
  s && !Fe(s, l.modelValue) && c("update:modelValue", s);
@@ -10405,7 +10405,7 @@ const Ln = oa({
10405
10405
  {
10406
10406
  deep: !0
10407
10407
  }
10408
- ), te(
10408
+ ), re(
10409
10409
  () => l.modelValue,
10410
10410
  (s) => {
10411
10411
  s && !Fe(s, n.form) && (n.form = s);
@@ -10415,11 +10415,11 @@ const Ln = oa({
10415
10415
  deep: !0
10416
10416
  }
10417
10417
  ), o({
10418
- validate: p
10419
- }), (s, f) => {
10420
- const w = R("el-form");
10421
- return A(), O("div", $n, [
10422
- j(w, {
10418
+ validate: w
10419
+ }), (s, g) => {
10420
+ const z = F("el-form");
10421
+ return A(), E("div", $n, [
10422
+ j(z, {
10423
10423
  ref: "form",
10424
10424
  model: t(n).form,
10425
10425
  rules: t(b),
@@ -10430,7 +10430,7 @@ const Ln = oa({
10430
10430
  default: N(() => [
10431
10431
  j(t(Ln), null, {
10432
10432
  default: N(() => [
10433
- J(s.$slots, "default")
10433
+ Z(s.$slots, "default")
10434
10434
  ]),
10435
10435
  _: 3
10436
10436
  })
@@ -10449,69 +10449,69 @@ const Ln = oa({
10449
10449
  }, {
10450
10450
  __name: "Tab",
10451
10451
  setup(e) {
10452
- const o = Y({
10452
+ const o = q({
10453
10453
  active: 2,
10454
10454
  pageScrolled: !1
10455
10455
  });
10456
10456
  let a = null, l = null;
10457
- const n = _e("store"), r = n.tab(), c = n.rmenu(), p = aa(), z = la(), { proxy: b } = ce();
10458
- ne(() => {
10459
- s(), y();
10457
+ const n = _e("store"), i = n.tab(), c = n.rmenu(), w = aa(), v = la(), { proxy: b } = ue();
10458
+ ie(() => {
10459
+ s(), h();
10460
10460
  });
10461
10461
  const s = () => {
10462
- b.$el.addEventListener("scroll", D);
10463
- }, f = (M) => {
10464
- let _ = M == null ? void 0 : M.parentElement;
10465
- for (; _ && _ !== document.body; ) {
10466
- const { overflowY: k, overflow: L } = getComputedStyle(_), F = k || L;
10467
- if ((F === "auto" || F === "scroll" || F === "overlay") && _.scrollHeight > _.clientHeight)
10468
- return _;
10469
- _ = _.parentElement;
10462
+ b.$el.addEventListener("scroll", B);
10463
+ }, g = (T) => {
10464
+ let O = T == null ? void 0 : T.parentElement;
10465
+ for (; O && O !== document.body; ) {
10466
+ const { overflowY: k, overflow: L } = getComputedStyle(O), K = k || L;
10467
+ if ((K === "auto" || K === "scroll" || K === "overlay") && O.scrollHeight > O.clientHeight)
10468
+ return O;
10469
+ O = O.parentElement;
10470
10470
  }
10471
10471
  return null;
10472
- }, w = () => {
10473
- const M = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, _ = a ? a.scrollTop : 0;
10474
- o.pageScrolled = M > 0 || _ > 0;
10475
- }, y = () => {
10476
- a = f(b.$el);
10477
- const M = () => {
10478
- w();
10472
+ }, z = () => {
10473
+ const T = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, O = a ? a.scrollTop : 0;
10474
+ o.pageScrolled = T > 0 || O > 0;
10475
+ }, h = () => {
10476
+ a = g(b.$el);
10477
+ const T = () => {
10478
+ z();
10479
10479
  };
10480
- window.addEventListener("scroll", M, { passive: !0 }), a && a.addEventListener("scroll", M, { passive: !0 }), w(), l = () => {
10481
- window.removeEventListener("scroll", M), a && a.removeEventListener("scroll", M), a = null;
10480
+ window.addEventListener("scroll", T, { passive: !0 }), a && a.addEventListener("scroll", T, { passive: !0 }), z(), l = () => {
10481
+ window.removeEventListener("scroll", T), a && a.removeEventListener("scroll", T), a = null;
10482
10482
  };
10483
10483
  }, P = () => {
10484
- const M = localStorage.getItem("tabsScroll");
10485
- M && (b.$el.scrollLeft = Number(M));
10486
- }, D = (M) => {
10487
- let _ = null;
10488
- _ !== null && clearTimeout(_), _ = setTimeout(function() {
10489
- const { scrollLeft: k } = M.target;
10484
+ const T = localStorage.getItem("tabsScroll");
10485
+ T && (b.$el.scrollLeft = Number(T));
10486
+ }, B = (T) => {
10487
+ let O = null;
10488
+ O !== null && clearTimeout(O), O = setTimeout(function() {
10489
+ const { scrollLeft: k } = T.target;
10490
10490
  localStorage.setItem("tabsScroll", k);
10491
10491
  }, 100);
10492
- }, v = () => {
10493
- me(() => {
10494
- const M = b.$el.querySelector(`#tab_${S.value}`);
10495
- Ra(b.$el, M) ? P() : b.$el.scrollLeft = (M == null ? void 0 : M.offsetLeft) - 16;
10492
+ }, f = () => {
10493
+ de(() => {
10494
+ const T = b.$el.querySelector(`#tab_${y.value}`);
10495
+ Ra(b.$el, T) ? P() : b.$el.scrollLeft = (T == null ? void 0 : T.offsetLeft) - 16;
10496
10496
  });
10497
- }, m = (M, _, k) => {
10497
+ }, m = (T, O, k) => {
10498
10498
  c.saveData("type", "tabManager"), c.saveData("options", [
10499
10499
  {
10500
10500
  label: "Close",
10501
10501
  value: "close",
10502
10502
  icon: "im-close",
10503
- disabled: h.value.length === 1,
10503
+ disabled: _.value.length === 1,
10504
10504
  cb: () => {
10505
- r.closeTab(_, k);
10505
+ i.closeTab(O, k);
10506
10506
  }
10507
10507
  },
10508
10508
  {
10509
10509
  label: "Close Right",
10510
10510
  value: "closeRight",
10511
10511
  icon: "im-right",
10512
- disabled: k === h.value.length - 1,
10512
+ disabled: k === _.value.length - 1,
10513
10513
  cb: () => {
10514
- r.closeRightTab(_, k);
10514
+ i.closeRightTab(O, k);
10515
10515
  }
10516
10516
  },
10517
10517
  {
@@ -10520,83 +10520,83 @@ const Ln = oa({
10520
10520
  icon: "im-left",
10521
10521
  disabled: k === 0,
10522
10522
  cb: () => {
10523
- r.closeLeftTab(_, k);
10523
+ i.closeLeftTab(O, k);
10524
10524
  }
10525
10525
  },
10526
10526
  {
10527
10527
  label: "Close Other",
10528
10528
  value: "closeOther",
10529
10529
  icon: "im-left",
10530
- disabled: h.value.length === 1,
10530
+ disabled: _.value.length === 1,
10531
10531
  cb: () => {
10532
- r.closeOtherTab(_, k);
10532
+ i.closeOtherTab(O, k);
10533
10533
  }
10534
10534
  }
10535
10535
  ]), c.show({
10536
10536
  position: {
10537
- x: M.clientX,
10538
- y: M.clientY
10537
+ x: T.clientX,
10538
+ y: T.clientY
10539
10539
  }
10540
10540
  });
10541
- }, E = (M) => {
10542
- const _ = M.name === S.value, k = JSON.stringify(M.params ?? {}) === JSON.stringify(p.params ?? {}), L = JSON.stringify(M.query ?? {}) === JSON.stringify(p.query ?? {});
10543
- (!_ || !k || !L) && z.push({
10544
- name: M.name,
10545
- params: M.params,
10546
- query: M.query
10541
+ }, M = (T) => {
10542
+ const O = T.name === y.value, k = JSON.stringify(T.params ?? {}) === JSON.stringify(w.params ?? {}), L = JSON.stringify(T.query ?? {}) === JSON.stringify(w.query ?? {});
10543
+ (!O || !k || !L) && v.push({
10544
+ name: T.name,
10545
+ params: T.params,
10546
+ query: T.query
10547
10547
  });
10548
- }, u = (M) => {
10549
- console.info(M.name, S.value), M.name === S.value ? z.replace({ name: M.name, query: { t: +/* @__PURE__ */ new Date() } }) : E(M);
10550
- }, T = (M, _) => {
10551
- r.closeTab(M, _);
10552
- }, h = C(() => r.tabs), S = C(() => p.name), B = C(() => h.value.length);
10553
- return te(
10554
- () => B.value,
10555
- (M) => {
10556
- localStorage.setItem("tabs", JSON.stringify(h.value)), M && v();
10548
+ }, u = (T) => {
10549
+ console.info(T.name, y.value), T.name === y.value ? v.replace({ name: T.name, query: { t: +/* @__PURE__ */ new Date() } }) : M(T);
10550
+ }, S = (T, O) => {
10551
+ i.closeTab(T, O);
10552
+ }, _ = C(() => i.tabs), y = C(() => w.name), D = C(() => _.value.length);
10553
+ return re(
10554
+ () => D.value,
10555
+ (T) => {
10556
+ localStorage.setItem("tabs", JSON.stringify(_.value)), T && f();
10557
10557
  },
10558
10558
  {
10559
10559
  immediate: !0
10560
10560
  }
10561
- ), te(
10562
- () => S.value,
10561
+ ), re(
10562
+ () => y.value,
10563
10563
  () => {
10564
- me(() => {
10565
- w();
10564
+ de(() => {
10565
+ z();
10566
10566
  });
10567
10567
  }
10568
- ), de(() => {
10569
- b.$el.removeEventListener("scroll", D), l == null || l(), l = null;
10570
- }), (M, _) => (A(), O("div", Bn, [
10568
+ ), be(() => {
10569
+ b.$el.removeEventListener("scroll", B), l == null || l(), l = null;
10570
+ }), (T, O) => (A(), E("div", Bn, [
10571
10571
  d("div", Dn, [
10572
- (A(!0), O(ee, null, oe(t(h), (k, L) => (A(), O("div", {
10572
+ (A(!0), E(ne, null, se(t(_), (k, L) => (A(), E("div", {
10573
10573
  key: k.name,
10574
10574
  id: `tab_${k.name}`,
10575
10575
  class: G(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
10576
- k.name === t(S) && "active",
10577
- t(h).length > 1 && "hoverItem"
10576
+ k.name === t(y) && "active",
10577
+ t(_).length > 1 && "hoverItem"
10578
10578
  ]]),
10579
- onContextmenu: pe((F) => m(F, k, L), ["prevent", "stop"]),
10580
- onClick: (F) => E(k),
10581
- onDblclick: (F) => u(k)
10579
+ onContextmenu: pe((K) => m(K, k, L), ["prevent", "stop"]),
10580
+ onClick: (K) => M(k),
10581
+ onDblclick: (K) => u(k)
10582
10582
  }, [
10583
- k.icon ? (A(), O("i", {
10583
+ k.icon ? (A(), E("i", {
10584
10584
  key: 0,
10585
10585
  class: G(["imicon", k.icon])
10586
10586
  }, null, 2)) : V("", !0),
10587
- le(" " + x(k.meta.title) + " ", 1),
10587
+ te(" " + x(k.meta.title) + " ", 1),
10588
10588
  d("div", {
10589
10589
  class: "abs r flexMode hc vc w20 h20",
10590
- onClick: pe((F) => T(k, L), ["stop"])
10591
- }, [..._[0] || (_[0] = [
10590
+ onClick: pe((K) => S(k, L), ["stop"])
10591
+ }, [...O[0] || (O[0] = [
10592
10592
  d("span", null, "✕", -1)
10593
10593
  ])], 8, Fn)
10594
10594
  ], 42, Rn))), 128)),
10595
- _[1] || (_[1] = d("div", { class: "w16 h16 noShrink" }, null, -1))
10595
+ O[1] || (O[1] = d("div", { class: "w16 h16 noShrink" }, null, -1))
10596
10596
  ])
10597
10597
  ]));
10598
10598
  }
10599
- }), Vn = /* @__PURE__ */ Q(Gn, [["__scopeId", "data-v-e9bf80ea"]]), Kn = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Un = { class: "logo" }, Hn = { class: "logomini" }, Jn = { class: "MenuArea p4 yscroll" }, Zn = ["onClick"], Yn = { class: "itemIcon w24 txt-c txt-tip fs18" }, Wn = { key: 1 }, qn = {
10599
+ }), Vn = /* @__PURE__ */ le(Gn, [["__scopeId", "data-v-e9bf80ea"]]), Kn = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Un = { class: "logo" }, Hn = { class: "logomini" }, Jn = { class: "MenuArea p4 yscroll" }, Zn = ["onClick"], Yn = { class: "itemIcon w24 txt-c txt-tip fs18" }, Wn = { key: 1 }, qn = {
10600
10600
  key: 0,
10601
10601
  class: "itemChildrenArea mt2 p4"
10602
10602
  }, Xn = ["onClick"], Qn = { class: "itemIcon w24 txt-c txt-tip fs18" }, eo = { class: "h64 p8-4" }, ao = { class: "flexMode vc g8 p8-16 radius4 hover" }, lo = /* @__PURE__ */ Object.assign({
@@ -10619,124 +10619,124 @@ const Ln = oa({
10619
10619
  }
10620
10620
  },
10621
10621
  setup(e, { emit: o }) {
10622
- const a = e, l = Y({
10622
+ const a = e, l = q({
10623
10623
  collapse: !1
10624
- }), n = aa(), r = la(), c = _e("store"), p = c.launch();
10625
- ne(() => {
10624
+ }), n = aa(), i = la(), c = _e("store"), w = c.launch();
10625
+ ie(() => {
10626
10626
  b();
10627
10627
  });
10628
- const z = o, b = () => {
10628
+ const v = o, b = () => {
10629
10629
  const u = localStorage.getItem("collapse");
10630
- u && (l.collapse = JSON.parse(u)), document.addEventListener("keydown", f);
10630
+ u && (l.collapse = JSON.parse(u)), document.addEventListener("keydown", g);
10631
10631
  }, s = (u) => {
10632
- l.collapse === !0 ? l.collapse = !1 : l.collapse === !1 ? l.collapse = !0 : l.collapse = u, localStorage.setItem("collapse", l.collapse), z("on-collapse-change", l.collapse);
10633
- }, f = (u) => {
10632
+ l.collapse === !0 ? l.collapse = !1 : l.collapse === !1 ? l.collapse = !0 : l.collapse = u, localStorage.setItem("collapse", l.collapse), v("on-collapse-change", l.collapse);
10633
+ }, g = (u) => {
10634
10634
  u.shiftKey && (u.metaKey || u.ctrlKey) && (u.keyCode === 37 ? s(!0) : u.keyCode === 39 && s(!1));
10635
- }, w = (u) => {
10636
- var T;
10637
- return (T = u == null ? void 0 : u.children) != null && T.length ? w(u.children[0]) : u;
10638
- }, y = (u) => {
10639
- var T;
10640
- return ((T = u == null ? void 0 : u.children) == null ? void 0 : T.some((h) => h.name === n.name || y(h))) ?? !1;
10635
+ }, z = (u) => {
10636
+ var S;
10637
+ return (S = u == null ? void 0 : u.children) != null && S.length ? z(u.children[0]) : u;
10638
+ }, h = (u) => {
10639
+ var S;
10640
+ return ((S = u == null ? void 0 : u.children) == null ? void 0 : S.some((_) => _.name === n.name || h(_))) ?? !1;
10641
10641
  }, P = (u) => {
10642
- const T = w(u);
10643
- T != null && T.name && r.push({ name: T.name });
10644
- }, D = () => {
10645
- const u = { ...n.query, _: Date.now() }, T = n.name ? { name: n.name, params: n.params, query: u } : { path: n.path, query: u };
10646
- r.replace(T).catch(() => {
10642
+ const S = z(u);
10643
+ S != null && S.name && i.push({ name: S.name });
10644
+ }, B = () => {
10645
+ const u = { ...n.query, _: Date.now() }, S = n.name ? { name: n.name, params: n.params, query: u } : { path: n.path, query: u };
10646
+ i.replace(S).catch(() => {
10647
10647
  });
10648
- }, v = () => {
10648
+ }, f = () => {
10649
10649
  var u;
10650
10650
  return ((u = globalThis.$config) == null ? void 0 : u.loginPageName) || "Entry";
10651
10651
  }, m = () => {
10652
10652
  const u = () => {
10653
- var h, S;
10653
+ var _, y;
10654
10654
  try {
10655
- const B = c.tab();
10656
- (h = B.closeAllTab) == null || h.call(B), (S = B.$patch) == null || S.call(B, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
10655
+ const D = c.tab();
10656
+ (_ = D.closeAllTab) == null || _.call(D), (y = D.$patch) == null || y.call(D, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
10657
10657
  } catch {
10658
10658
  }
10659
- }, T = () => {
10660
- if (u(), typeof p.clearLogin == "function")
10661
- p.clearLogin();
10659
+ }, S = () => {
10660
+ if (u(), typeof w.clearLogin == "function")
10661
+ w.clearLogin();
10662
10662
  else {
10663
10663
  try {
10664
10664
  localStorage.removeItem("login");
10665
10665
  } catch {
10666
10666
  }
10667
- p.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
10667
+ w.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
10668
10668
  }
10669
10669
  };
10670
- p.$patch({ loggingOut: !0 }), r.replace({ name: v() }).catch(() => r.replace({ path: "/" })).then(T).catch(() => {
10671
- p.$patch({ loggingOut: !1 });
10670
+ w.$patch({ loggingOut: !0 }), i.replace({ name: f() }).catch(() => i.replace({ path: "/" })).then(S).catch(() => {
10671
+ w.$patch({ loggingOut: !1 });
10672
10672
  try {
10673
- r.replace({ path: "/" });
10673
+ i.replace({ path: "/" });
10674
10674
  } catch {
10675
10675
  }
10676
- T();
10676
+ S();
10677
10677
  });
10678
- }, E = C(() => l.collapse ? "im-verticalleft" : "im-verticalright");
10679
- return de(() => {
10680
- document.removeEventListener("keydown", f);
10681
- }), (u, T) => {
10682
- const h = R("el-popconfirm");
10683
- return A(), O("div", {
10678
+ }, M = C(() => l.collapse ? "im-verticalleft" : "im-verticalright");
10679
+ return be(() => {
10680
+ document.removeEventListener("keydown", g);
10681
+ }), (u, S) => {
10682
+ const _ = F("el-popconfirm");
10683
+ return A(), E("div", {
10684
10684
  class: G(["FrameMenu sticky vh100 noselect noShrink", t(l).collapse && "collapse"])
10685
10685
  }, [
10686
10686
  d("div", Kn, [
10687
10687
  d("div", Un, [
10688
- J(u.$slots, "logo", {}, void 0, !0)
10688
+ Z(u.$slots, "logo", {}, void 0, !0)
10689
10689
  ]),
10690
10690
  d("div", Hn, [
10691
- J(u.$slots, "logomini", {}, void 0, !0)
10691
+ Z(u.$slots, "logomini", {}, void 0, !0)
10692
10692
  ]),
10693
10693
  d("div", {
10694
10694
  class: "collapseArea hover abs",
10695
- onClick: T[0] || (T[0] = (S) => s(t(l).collapse))
10695
+ onClick: S[0] || (S[0] = (y) => s(t(l).collapse))
10696
10696
  }, [
10697
10697
  d("i", {
10698
- class: G(["imicon fs20", t(E)])
10698
+ class: G(["imicon fs20", t(M)])
10699
10699
  }, null, 2)
10700
10700
  ])
10701
10701
  ]),
10702
10702
  d("div", Jn, [
10703
- (A(!0), O(ee, null, oe(a.routes, (S, B) => {
10704
- var M, _;
10705
- return A(), O("div", {
10706
- key: B,
10703
+ (A(!0), E(ne, null, se(a.routes, (y, D) => {
10704
+ var T, O;
10705
+ return A(), E("div", {
10706
+ key: D,
10707
10707
  class: "menuItemWrap mb2"
10708
10708
  }, [
10709
10709
  d("div", {
10710
10710
  class: G(["menuItem flexMode vc g8 radius4 p0-16", [
10711
- t(n).name === S.name && "active bg-primary",
10711
+ t(n).name === y.name && "active bg-primary",
10712
10712
  t(l).collapse && "hc",
10713
- t(l).collapse && y(S) && "activeChild"
10713
+ t(l).collapse && h(y) && "activeChild"
10714
10714
  ]]),
10715
- onClick: (k) => P(S),
10716
- onDblclick: D
10715
+ onClick: (k) => P(y),
10716
+ onDblclick: B
10717
10717
  }, [
10718
10718
  d("div", Yn, [
10719
- S.meta.icon ? (A(), O("i", {
10719
+ y.meta.icon ? (A(), E("i", {
10720
10720
  key: 0,
10721
- class: G([a.iconClass, S.meta.icon])
10722
- }, null, 2)) : (A(), O("span", Wn, x(((M = S.meta.title) == null ? void 0 : M.substr(0, 1)) || "U"), 1))
10721
+ class: G([a.iconClass, y.meta.icon])
10722
+ }, null, 2)) : (A(), E("span", Wn, x(((T = y.meta.title) == null ? void 0 : T.substr(0, 1)) || "U"), 1))
10723
10723
  ]),
10724
10724
  d("div", {
10725
10725
  class: G(["itemTitle txt-nowrap fs14", [
10726
- t(n).name === S.name && "active",
10726
+ t(n).name === y.name && "active",
10727
10727
  t(l).collapse && "hide"
10728
10728
  ]])
10729
- }, x(S.meta.title), 3)
10729
+ }, x(y.meta.title), 3)
10730
10730
  ], 42, Zn),
10731
- (_ = S.children) != null && _.length ? (A(), O("div", qn, [
10732
- (A(!0), O(ee, null, oe(S.children, (k, L) => (A(), O("div", {
10731
+ (O = y.children) != null && O.length ? (A(), E("div", qn, [
10732
+ (A(!0), E(ne, null, se(y.children, (k, L) => (A(), E("div", {
10733
10733
  key: L,
10734
10734
  class: G(["childrenItem flexMode vc g8 radius4 h40 p0-16", t(n).name === k.name && "active bg-primary"]),
10735
- onClick: (F) => P(k),
10736
- onDblclick: D
10735
+ onClick: (K) => P(k),
10736
+ onDblclick: B
10737
10737
  }, [
10738
10738
  d("div", Qn, [
10739
- k.meta.icon ? (A(), O("i", {
10739
+ k.meta.icon ? (A(), E("i", {
10740
10740
  key: 0,
10741
10741
  class: G([a.iconClass, k.meta.icon])
10742
10742
  }, null, 2)) : V("", !0)
@@ -10753,17 +10753,17 @@ const Ln = oa({
10753
10753
  }), 128))
10754
10754
  ]),
10755
10755
  d("div", eo, [
10756
- j(h, {
10756
+ j(_, {
10757
10757
  placement: "top",
10758
10758
  title: u.$l("Log out?"),
10759
10759
  onConfirm: m
10760
10760
  }, {
10761
10761
  reference: N(() => [
10762
10762
  d("div", ao, [
10763
- T[1] || (T[1] = d("i", { class: "imicon im-power fs24" }, null, -1)),
10763
+ S[1] || (S[1] = d("i", { class: "imicon im-power fs24" }, null, -1)),
10764
10764
  d("span", {
10765
10765
  class: G(["fs14", t(l).collapse && "hide"])
10766
- }, x(t(p).userinfo[a.usernameKey]), 3)
10766
+ }, x(t(w).userinfo[a.usernameKey]), 3)
10767
10767
  ])
10768
10768
  ]),
10769
10769
  _: 1
@@ -10772,28 +10772,28 @@ const Ln = oa({
10772
10772
  ], 2);
10773
10773
  };
10774
10774
  }
10775
- }), no = /* @__PURE__ */ Q(lo, [["__scopeId", "data-v-d7eb624b"]]), oo = { class: "FrameFooter" }, to = { class: "txt-tip" }, ro = { class: "txt-primary" }, io = /* @__PURE__ */ Object.assign({
10775
+ }), no = /* @__PURE__ */ le(lo, [["__scopeId", "data-v-81e9f3a9"]]), oo = { class: "FrameFooter" }, to = { class: "txt-tip" }, ro = { class: "txt-primary" }, io = /* @__PURE__ */ Object.assign({
10776
10776
  name: "FrameFooter",
10777
10777
  inheritAttrs: !1
10778
10778
  }, {
10779
10779
  __name: "Footer",
10780
10780
  setup(e) {
10781
- Y({});
10781
+ q({});
10782
10782
  const o = C(() => globalThis.$config);
10783
- return (a, l) => (A(), O("div", oo, [
10783
+ return (a, l) => (A(), E("div", oo, [
10784
10784
  d("span", to, x(t(o).copyright), 1),
10785
10785
  d("span", ro, x(t(o).author), 1)
10786
10786
  ]));
10787
10787
  }
10788
- }), so = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-c3ba0162"]]), co = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, uo = /* @__PURE__ */ Object.assign({
10788
+ }), so = /* @__PURE__ */ le(io, [["__scopeId", "data-v-c3ba0162"]]), co = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, uo = /* @__PURE__ */ Object.assign({
10789
10789
  name: "FrameTool",
10790
10790
  inheritAttrs: !1
10791
10791
  }, {
10792
10792
  __name: "Tool",
10793
10793
  setup(e) {
10794
10794
  const o = ta(() => import("./Config.js"));
10795
- Y({});
10796
- const a = Y({
10795
+ q({});
10796
+ const a = q({
10797
10797
  current: "",
10798
10798
  list: [
10799
10799
  {
@@ -10804,9 +10804,9 @@ const Ln = oa({
10804
10804
  }), l = () => {
10805
10805
  a.current = 0;
10806
10806
  };
10807
- return (n, r) => {
10808
- const c = R("Icon"), p = R("Drawer");
10809
- return A(), O(ee, null, [
10807
+ return (n, i) => {
10808
+ const c = F("Icon"), w = F("Drawer");
10809
+ return A(), E(ne, null, [
10810
10810
  d("div", co, [
10811
10811
  d("div", {
10812
10812
  class: "hover w24 h24 flexMode hc vc radius",
@@ -10818,9 +10818,9 @@ const Ln = oa({
10818
10818
  })
10819
10819
  ])
10820
10820
  ]),
10821
- j(p, {
10821
+ j(w, {
10822
10822
  current: t(a).current,
10823
- "onUpdate:current": r[0] || (r[0] = (z) => t(a).current = z),
10823
+ "onUpdate:current": i[0] || (i[0] = (v) => t(a).current = v),
10824
10824
  drawer: t(a).list
10825
10825
  }, null, 8, ["current", "drawer"])
10826
10826
  ], 64);
@@ -10835,17 +10835,17 @@ const Ln = oa({
10835
10835
  }, {
10836
10836
  __name: "RightMenu",
10837
10837
  setup(e) {
10838
- const a = _e("store").rmenu(), l = W(null), n = Y({
10838
+ const a = _e("store").rmenu(), l = X(null), n = q({
10839
10839
  x: 0,
10840
10840
  y: 0,
10841
10841
  ready: !1
10842
- }), r = (u, T, h) => Math.min(Math.max(u, T), h), c = (u) => Number.isFinite(Number(u)), p = () => {
10843
- const { position: u, el: T } = a;
10844
- if (T != null && T.getBoundingClientRect) {
10845
- const h = T.getBoundingClientRect();
10842
+ }), i = (u, S, _) => Math.min(Math.max(u, S), _), c = (u) => Number.isFinite(Number(u)), w = () => {
10843
+ const { position: u, el: S } = a;
10844
+ if (S != null && S.getBoundingClientRect) {
10845
+ const _ = S.getBoundingClientRect();
10846
10846
  return {
10847
- x: h.left,
10848
- y: h.bottom + 4
10847
+ x: _.left,
10848
+ y: _.bottom + 4
10849
10849
  };
10850
10850
  }
10851
10851
  return u && c(u.x) && c(u.y) ? {
@@ -10855,91 +10855,91 @@ const Ln = oa({
10855
10855
  x: 0,
10856
10856
  y: 0
10857
10857
  };
10858
- }, z = async () => {
10858
+ }, v = async () => {
10859
10859
  if (n.ready = !1, !m.value)
10860
10860
  return;
10861
- await me();
10861
+ await de();
10862
10862
  const u = l.value;
10863
10863
  if (!u)
10864
10864
  return;
10865
- const T = p(), h = u.getBoundingClientRect(), S = 8, B = Math.max(S, window.innerWidth - h.width - S), M = Math.max(S, window.innerHeight - h.height - S);
10866
- n.x = r(T.x, S, B), n.y = r(T.y, S, M), n.ready = !0;
10865
+ const S = w(), _ = u.getBoundingClientRect(), y = 8, D = Math.max(y, window.innerWidth - _.width - y), T = Math.max(y, window.innerHeight - _.height - y);
10866
+ n.x = i(S.x, y, D), n.y = i(S.y, y, T), n.ready = !0;
10867
10867
  }, b = () => {
10868
10868
  a.visible && a.hide(), n.ready = !1;
10869
10869
  }, s = (u) => {
10870
- var T;
10871
- !m.value || (T = l.value) != null && T.contains(u.target) || b();
10872
- }, f = (u) => {
10873
- var T;
10874
- !m.value || (T = l.value) != null && T.contains(u.target) || b();
10875
- }, w = (u) => {
10870
+ var S;
10871
+ !m.value || (S = l.value) != null && S.contains(u.target) || b();
10872
+ }, g = (u) => {
10873
+ var S;
10874
+ !m.value || (S = l.value) != null && S.contains(u.target) || b();
10875
+ }, z = (u) => {
10876
10876
  u.key === "Escape" && b();
10877
- }, y = (u) => typeof u.disabled == "function" ? u.disabled(u) : !!u.disabled, P = (u, T) => u.value ?? u.label ?? T, D = (u) => {
10878
- var T, h;
10879
- if (!y(u))
10877
+ }, h = (u) => typeof u.disabled == "function" ? u.disabled(u) : !!u.disabled, P = (u, S) => u.value ?? u.label ?? S, B = (u) => {
10878
+ var S, _;
10879
+ if (!h(u))
10880
10880
  try {
10881
- (T = u.cb) == null || T.call(u, u), (h = u.onClick) == null || h.call(u, u);
10881
+ (S = u.cb) == null || S.call(u, u), (_ = u.onClick) == null || _.call(u, u);
10882
10882
  } finally {
10883
10883
  b();
10884
10884
  }
10885
- }, v = C(() => Array.isArray(a.options) ? a.options.filter(Boolean) : []), m = C(() => a.visible && v.value.length > 0), E = C(() => ({
10885
+ }, f = C(() => Array.isArray(a.options) ? a.options.filter(Boolean) : []), m = C(() => a.visible && f.value.length > 0), M = C(() => ({
10886
10886
  left: `${n.x}px`,
10887
10887
  top: `${n.y}px`,
10888
10888
  visibility: n.ready ? "visible" : "hidden"
10889
10889
  }));
10890
- return te(
10890
+ return re(
10891
10891
  () => {
10892
- var u, T;
10892
+ var u, S;
10893
10893
  return [
10894
10894
  a.visible,
10895
10895
  a.el,
10896
10896
  a.options,
10897
10897
  (u = a.position) == null ? void 0 : u.x,
10898
- (T = a.position) == null ? void 0 : T.y,
10899
- v.value.length
10898
+ (S = a.position) == null ? void 0 : S.y,
10899
+ f.value.length
10900
10900
  ];
10901
10901
  },
10902
10902
  () => {
10903
- z();
10903
+ v();
10904
10904
  },
10905
10905
  {
10906
10906
  flush: "post"
10907
10907
  }
10908
- ), ne(() => {
10909
- document.addEventListener("pointerdown", s, !0), document.addEventListener("contextmenu", f, !0), document.addEventListener("keydown", w), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
10910
- }), de(() => {
10911
- document.removeEventListener("pointerdown", s, !0), document.removeEventListener("contextmenu", f, !0), document.removeEventListener("keydown", w), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
10912
- }), (u, T) => (A(), q(ja, { to: "body" }, [
10908
+ ), ie(() => {
10909
+ document.addEventListener("pointerdown", s, !0), document.addEventListener("contextmenu", g, !0), document.addEventListener("keydown", z), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
10910
+ }), be(() => {
10911
+ document.removeEventListener("pointerdown", s, !0), document.removeEventListener("contextmenu", g, !0), document.removeEventListener("keydown", z), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
10912
+ }), (u, S) => (A(), Q(ja, { to: "body" }, [
10913
10913
  j(ra, { name: "FrameRightMenuFade" }, {
10914
10914
  default: N(() => [
10915
- t(m) ? (A(), O("div", {
10915
+ t(m) ? (A(), E("div", {
10916
10916
  key: 0,
10917
10917
  ref_key: "menuRef",
10918
10918
  ref: l,
10919
10919
  class: "FrameRightMenu",
10920
- style: ie(t(E)),
10921
- onClick: T[0] || (T[0] = pe(() => {
10920
+ style: ce(t(M)),
10921
+ onClick: S[0] || (S[0] = pe(() => {
10922
10922
  }, ["stop"])),
10923
- onPointerdown: T[1] || (T[1] = pe(() => {
10923
+ onPointerdown: S[1] || (S[1] = pe(() => {
10924
10924
  }, ["stop"])),
10925
- onContextmenu: T[2] || (T[2] = pe(() => {
10925
+ onContextmenu: S[2] || (S[2] = pe(() => {
10926
10926
  }, ["prevent", "stop"]))
10927
10927
  }, [
10928
- (A(!0), O(ee, null, oe(t(v), (h, S) => (A(), O(ee, {
10929
- key: P(h, S)
10928
+ (A(!0), E(ne, null, se(t(f), (_, y) => (A(), E(ne, {
10929
+ key: P(_, y)
10930
10930
  }, [
10931
- h.divider ? (A(), O("div", mo)) : (A(), O("button", {
10931
+ _.divider ? (A(), E("div", mo)) : (A(), E("button", {
10932
10932
  key: 1,
10933
10933
  type: "button",
10934
- class: G(["menuItem", { disabled: y(h) }]),
10935
- disabled: y(h),
10936
- onClick: (B) => D(h)
10934
+ class: G(["menuItem", { disabled: h(_) }]),
10935
+ disabled: h(_),
10936
+ onClick: (D) => B(_)
10937
10937
  }, [
10938
- h.icon ? (A(), O("i", {
10938
+ _.icon ? (A(), E("i", {
10939
10939
  key: 0,
10940
- class: G(["imicon menuIcon", h.icon])
10940
+ class: G(["imicon menuIcon", _.icon])
10941
10941
  }, null, 2)) : V("", !0),
10942
- d("span", vo, x(h.label), 1)
10942
+ d("span", vo, x(_.label), 1)
10943
10943
  ], 10, bo))
10944
10944
  ], 64))), 128))
10945
10945
  ], 36)) : V("", !0)
@@ -10948,7 +10948,7 @@ const Ln = oa({
10948
10948
  })
10949
10949
  ]));
10950
10950
  }
10951
- }), fo = /* @__PURE__ */ Q(po, [["__scopeId", "data-v-388539e5"]]), ho = { class: "MvcFrame" }, _o = /* @__PURE__ */ Object.assign({
10951
+ }), fo = /* @__PURE__ */ le(po, [["__scopeId", "data-v-388539e5"]]), ho = { class: "MvcFrame" }, _o = /* @__PURE__ */ Object.assign({
10952
10952
  name: "MvcFrame",
10953
10953
  inheritAttrs: !1
10954
10954
  }, {
@@ -10971,50 +10971,50 @@ const Ln = oa({
10971
10971
  }
10972
10972
  },
10973
10973
  setup(e) {
10974
- const o = e, a = Y({}), l = _e("store"), n = l.tab(), r = l.init();
10975
- ne(() => {
10974
+ const o = e, a = q({}), l = _e("store"), n = l.tab(), i = l.init();
10975
+ ie(() => {
10976
10976
  c();
10977
10977
  });
10978
10978
  const c = () => {
10979
- Fa(), p();
10980
- }, p = () => {
10981
- var f, w, y, P, D, v;
10982
- if ((w = (f = globalThis.$config) == null ? void 0 : f.iconfont) != null && w.url) {
10979
+ Fa(), w();
10980
+ }, w = () => {
10981
+ var g, z, h, P, B, f;
10982
+ if ((z = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && z.url) {
10983
10983
  const m = document.createElement("script");
10984
- if (m.id = "iconfont", m.type = "text/javascript", m.src = (P = (y = globalThis.$config) == null ? void 0 : y.iconfont) == null ? void 0 : P.url, document.getElementById("iconfont"))
10984
+ if (m.id = "iconfont", m.type = "text/javascript", m.src = (P = (h = globalThis.$config) == null ? void 0 : h.iconfont) == null ? void 0 : P.url, document.getElementById("iconfont"))
10985
10985
  return;
10986
- document.head.appendChild(m), (v = (D = globalThis.$config) == null ? void 0 : D.iconfont) == null || delete v.url;
10986
+ document.head.appendChild(m), (f = (B = globalThis.$config) == null ? void 0 : B.iconfont) == null || delete f.url;
10987
10987
  }
10988
- }, z = (f) => {
10989
- a.collapse = f;
10990
- }, b = C(() => r.pageLoading), s = C(() => ({
10988
+ }, v = (g) => {
10989
+ a.collapse = g;
10990
+ }, b = C(() => i.pageLoading), s = C(() => ({
10991
10991
  maxWidth: a.collapse ? "calc(100% - 4rem)" : "calc(100% - 12rem)"
10992
10992
  }));
10993
- return (f, w) => {
10994
- const y = R("Loading"), P = R("router-view");
10995
- return A(), O("div", ho, [
10996
- j(no, ae(o.menu, { onOnCollapseChange: z }), ue({ _: 2 }, [
10997
- f.$slots.logo ? {
10993
+ return (g, z) => {
10994
+ const h = F("Loading"), P = F("router-view");
10995
+ return A(), E("div", ho, [
10996
+ j(no, oe(o.menu, { onOnCollapseChange: v }), me({ _: 2 }, [
10997
+ g.$slots.logo ? {
10998
10998
  name: "logo",
10999
10999
  fn: N(() => [
11000
- J(f.$slots, "logo", {}, void 0, !0)
11000
+ Z(g.$slots, "logo", {}, void 0, !0)
11001
11001
  ]),
11002
11002
  key: "0"
11003
11003
  } : void 0,
11004
- f.$slots.logomini ? {
11004
+ g.$slots.logomini ? {
11005
11005
  name: "logomini",
11006
11006
  fn: N(() => [
11007
- J(f.$slots, "logomini", {}, void 0, !0)
11007
+ Z(g.$slots, "logomini", {}, void 0, !0)
11008
11008
  ]),
11009
11009
  key: "1"
11010
11010
  } : void 0
11011
11011
  ]), 1040),
11012
11012
  d("div", {
11013
11013
  class: "PageArea",
11014
- style: ie(t(s))
11014
+ style: ce(t(s))
11015
11015
  }, [
11016
- j(y, { loading: t(b) }, null, 8, ["loading"]),
11017
- t(n).useTab ? (A(), q(Vn, { key: 0 })) : V("", !0),
11016
+ j(h, { loading: t(b) }, null, 8, ["loading"]),
11017
+ t(n).useTab ? (A(), Q(Vn, { key: 0 })) : V("", !0),
11018
11018
  j(uo),
11019
11019
  j(P, we(Me(o.page)), null, 16),
11020
11020
  j(so)
@@ -11023,7 +11023,7 @@ const Ln = oa({
11023
11023
  ]);
11024
11024
  };
11025
11025
  }
11026
- }), go = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-ae3008b4"]]), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11026
+ }), go = /* @__PURE__ */ le(_o, [["__scopeId", "data-v-ae3008b4"]]), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11027
11027
  __proto__: null,
11028
11028
  default: go
11029
11029
  }, Symbol.toStringTag, { value: "Module" })), Ao = ["xlink:href"], zo = /* @__PURE__ */ Object.assign({
@@ -11041,24 +11041,24 @@ const Ln = oa({
11041
11041
  }
11042
11042
  },
11043
11043
  setup(e) {
11044
- const o = e, a = Y({
11044
+ const o = e, a = q({
11045
11045
  prefix: "imc"
11046
11046
  });
11047
- ne(() => {
11048
- var n, r;
11049
- (r = (n = globalThis.$config) == null ? void 0 : n.iconfont) != null && r.prefix && (a.prefix = globalThis.$config.iconfont.prefix);
11047
+ ie(() => {
11048
+ var n, i;
11049
+ (i = (n = globalThis.$config) == null ? void 0 : n.iconfont) != null && i.prefix && (a.prefix = globalThis.$config.iconfont.prefix);
11050
11050
  });
11051
11051
  const l = C(() => {
11052
- const r = `${(Number(o.size) || 20) / 16}rem`;
11052
+ const i = `${(Number(o.size) || 20) / 16}rem`;
11053
11053
  return {
11054
- width: r,
11055
- height: r
11054
+ width: i,
11055
+ height: i
11056
11056
  };
11057
11057
  });
11058
- return (n, r) => (A(), O("svg", {
11058
+ return (n, i) => (A(), E("svg", {
11059
11059
  class: "MvcIcon",
11060
11060
  "aria-hidden": "true",
11061
- style: ie(t(l))
11061
+ style: ce(t(l))
11062
11062
  }, [
11063
11063
  d("use", {
11064
11064
  "xlink:href": `#${t(a).prefix}-${e.name}`
@@ -11088,6 +11088,10 @@ const Ln = oa({
11088
11088
  materialLabel: {
11089
11089
  type: Boolean,
11090
11090
  default: !1
11091
+ },
11092
+ focus: {
11093
+ type: Boolean,
11094
+ default: !1
11091
11095
  }
11092
11096
  },
11093
11097
  emits: [
@@ -11099,84 +11103,105 @@ const Ln = oa({
11099
11103
  "focus"
11100
11104
  ],
11101
11105
  setup(e, { emit: o }) {
11102
- const a = e, l = Ia(), n = be(), r = W(null);
11103
- let c = null;
11104
- const p = Y({
11106
+ const a = e, l = Ia(), n = ve(), i = X(null);
11107
+ let c = null, w = null;
11108
+ const v = q({
11105
11109
  val: "",
11106
11110
  isComposing: !1,
11107
11111
  focused: !1
11108
- }), z = o, { proxy: b } = ce(), s = C(() => {
11109
- const { class: _, ...k } = n;
11110
- return k;
11112
+ }), b = o, { proxy: s } = ue(), g = C(() => {
11113
+ const { class: R, ...W } = n;
11114
+ return W;
11111
11115
  });
11112
- ne(() => {
11113
- var k, L, F;
11114
- const _ = (k = r.value) == null ? void 0 : k.$el;
11115
- c = ((L = _ == null ? void 0 : _.querySelector) == null ? void 0 : L.call(_, "input")) || ((F = _ == null ? void 0 : _.querySelector) == null ? void 0 : F.call(_, "textarea")), c && (c.addEventListener("compositionstart", f), c.addEventListener("compositionend", w));
11116
+ ie(() => {
11117
+ c = z(), c && (c.addEventListener("compositionstart", f), c.addEventListener("compositionend", m)), a.focus && B();
11116
11118
  });
11117
- const f = () => {
11118
- p.isComposing = !0;
11119
- }, w = () => {
11120
- p.isComposing = !1, me(() => m(p.val));
11121
- }, y = (_) => {
11122
- p.isComposing || m(_);
11123
- }, P = (_) => {
11124
- p.focused = !0, z("focus", _);
11125
- }, D = (_) => {
11126
- p.focused = !1, z("blur", _);
11127
- }, v = (_) => {
11128
- z("enter", p.val, _);
11129
- }, m = (_) => {
11130
- z("update:modelValue", _), z("input", _);
11131
- }, E = C(() => !!(b.$attrs.maxlength || u.value)), u = C(() => b.$attrs.max), T = C(() => String(p.val ?? "").length > 0), h = C(() => !!n.placeholder), S = C(
11132
- () => a.materialLabel && (p.focused || T.value || h.value || l.prefix)
11133
- ), B = C(() => ({
11119
+ const z = () => {
11120
+ var W, ee, r;
11121
+ const R = (W = i.value) == null ? void 0 : W.$el;
11122
+ return c = ((ee = R == null ? void 0 : R.querySelector) == null ? void 0 : ee.call(R, "input")) || ((r = R == null ? void 0 : R.querySelector) == null ? void 0 : r.call(R, "textarea")) || c, c;
11123
+ }, h = () => {
11124
+ w && (clearTimeout(w), w = null);
11125
+ }, P = () => {
11126
+ var W, ee;
11127
+ (ee = (W = i.value) == null ? void 0 : W.focus) == null || ee.call(W);
11128
+ const R = z();
11129
+ return R ? (R.focus(), document.activeElement === R) : !1;
11130
+ }, B = (R = 0) => {
11131
+ h(), de(() => {
11132
+ !a.focus || typeof window > "u" || P() || R >= 5 || (w = setTimeout(() => {
11133
+ w = null, B(R + 1);
11134
+ }, 30));
11135
+ });
11136
+ }, f = () => {
11137
+ v.isComposing = !0;
11138
+ }, m = () => {
11139
+ v.isComposing = !1, de(() => y(v.val));
11140
+ }, M = (R) => {
11141
+ v.isComposing || y(R);
11142
+ }, u = (R) => {
11143
+ v.focused = !0, b("focus", R);
11144
+ }, S = (R) => {
11145
+ v.focused = !1, b("blur", R);
11146
+ }, _ = (R) => {
11147
+ b("enter", v.val, R);
11148
+ }, y = (R) => {
11149
+ b("update:modelValue", R), b("input", R);
11150
+ }, D = C(() => !!(s.$attrs.maxlength || T.value)), T = C(() => s.$attrs.max), O = C(() => String(v.val ?? "").length > 0), k = C(() => !!n.placeholder), L = C(
11151
+ () => a.materialLabel && (v.focused || O.value || k.value || l.prefix)
11152
+ ), K = C(() => ({
11134
11153
  [n.class]: !!n.class,
11135
11154
  hasLabel: !!a.label,
11136
11155
  isMaterialLabel: !!(a.label && a.materialLabel),
11137
11156
  isTopLabel: !!(a.label && !a.materialLabel),
11138
- isFloat: S.value,
11139
- isFocused: p.focused,
11157
+ isFloat: L.value,
11158
+ isFocused: v.focused,
11140
11159
  isDisabled: !!n.disabled
11141
- })), M = C(
11160
+ })), J = C(
11142
11161
  () => a.materialLabel ? {
11143
11162
  "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))"
11144
11163
  } : void 0
11145
11164
  );
11146
- return te(
11165
+ return re(
11147
11166
  () => a.modelValue,
11148
- (_) => {
11149
- const k = String(_ ?? "");
11150
- String(p.val) !== k && (p.val = k);
11167
+ (R) => {
11168
+ const W = String(R ?? "");
11169
+ String(v.val) !== W && (v.val = W);
11151
11170
  },
11152
11171
  { immediate: !0 }
11153
- ), de(() => {
11154
- c && (c.removeEventListener("compositionstart", f), c.removeEventListener("compositionend", w), c = null);
11155
- }), (_, k) => {
11156
- const L = R("el-input");
11157
- return A(), O("div", {
11158
- class: G(["MvcField MvcFieldInput", t(B)]),
11159
- style: ie(t(M))
11172
+ ), re(
11173
+ () => a.focus,
11174
+ (R) => {
11175
+ R ? B() : h();
11176
+ },
11177
+ { flush: "post" }
11178
+ ), be(() => {
11179
+ h(), c && (c.removeEventListener("compositionstart", f), c.removeEventListener("compositionend", m), c = null);
11180
+ }), (R, W) => {
11181
+ const ee = F("el-input");
11182
+ return A(), E("div", {
11183
+ class: G(["MvcField MvcFieldInput", t(K)]),
11184
+ style: ce(t(J))
11160
11185
  }, [
11161
- a.label ? (A(), O("label", So, x(a.label), 1)) : V("", !0),
11162
- j(L, ae({
11186
+ a.label ? (A(), E("label", So, x(a.label), 1)) : V("", !0),
11187
+ j(ee, oe({
11163
11188
  ref_key: "inputRef",
11164
- ref: r,
11165
- modelValue: t(p).val,
11166
- "onUpdate:modelValue": k[0] || (k[0] = (F) => t(p).val = F),
11167
- "show-word-limit": t(E),
11168
- maxlength: t(u),
11189
+ ref: i,
11190
+ modelValue: t(v).val,
11191
+ "onUpdate:modelValue": W[0] || (W[0] = (r) => t(v).val = r),
11192
+ "show-word-limit": t(D),
11193
+ maxlength: t(T),
11169
11194
  class: "MvcInput"
11170
- }, t(s), {
11171
- onInput: y,
11172
- onKeydown: ia(v, ["enter"]),
11173
- onFocus: P,
11174
- onBlur: D
11175
- }), ue({ _: 2 }, [
11176
- oe(t(l), (F, U) => ({
11177
- name: U,
11178
- fn: N((re) => [
11179
- J(_.$slots, U, we(Me(re || {})))
11195
+ }, t(g), {
11196
+ onInput: M,
11197
+ onKeydown: ia(_, ["enter"]),
11198
+ onFocus: u,
11199
+ onBlur: S
11200
+ }), me({ _: 2 }, [
11201
+ se(t(l), (r, p) => ({
11202
+ name: p,
11203
+ fn: N((I) => [
11204
+ Z(R.$slots, p, we(Me(I || {})))
11180
11205
  ])
11181
11206
  }))
11182
11207
  ]), 1040, ["modelValue", "show-word-limit", "maxlength"])
@@ -11209,45 +11234,45 @@ const Ln = oa({
11209
11234
  }
11210
11235
  },
11211
11236
  setup(e) {
11212
- const o = e, a = be(), l = C(() => {
11237
+ const o = e, a = ve(), l = C(() => {
11213
11238
  const { class: b, ...s } = a;
11214
11239
  return s;
11215
- }), n = Y({
11240
+ }), n = q({
11216
11241
  lang: "en_us"
11217
11242
  });
11218
- ne(() => {
11243
+ ie(() => {
11219
11244
  c();
11220
11245
  });
11221
- const r = (b) => {
11222
- var f;
11223
- const s = (typeof localStorage < "u" ? localStorage.getItem(Ge) : null) || ((f = globalThis.$config) == null ? void 0 : f.lang) || "en_us";
11246
+ const i = (b) => {
11247
+ var g;
11248
+ const s = (typeof localStorage < "u" ? localStorage.getItem(Ge) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
11224
11249
  b == null || b === s || (typeof localStorage < "u" && localStorage.setItem(Ge, b), window.location.reload());
11225
11250
  }, c = () => {
11226
- var f;
11227
- const b = ((f = globalThis.$getLang) == null ? void 0 : f.call(globalThis)) || "en_us", s = p.value.map((w) => w.value);
11251
+ var g;
11252
+ const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", s = w.value.map((z) => z.value);
11228
11253
  n.lang = s.includes(b) ? b : s[0] || "en_us";
11229
- }, p = C(() => {
11254
+ }, w = C(() => {
11230
11255
  var s;
11231
- return ((s = globalThis.$config) != null && s.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : el.filter((f) => f.use !== !1)).filter((f) => f && f.use !== !1 && f.value);
11232
- }), z = C(() => p.value.find((b) => b.value === n.lang) ?? null);
11256
+ return ((s = globalThis.$config) != null && s.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : el.filter((g) => g.use !== !1)).filter((g) => g && g.use !== !1 && g.value);
11257
+ }), v = C(() => w.value.find((b) => b.value === n.lang) ?? null);
11233
11258
  return (b, s) => {
11234
- const f = R("el-option"), w = R("el-select");
11235
- return A(), q(w, ae({
11259
+ const g = F("el-option"), z = F("el-select");
11260
+ return A(), Q(z, oe({
11236
11261
  modelValue: n.lang,
11237
- "onUpdate:modelValue": s[0] || (s[0] = (y) => n.lang = y),
11262
+ "onUpdate:modelValue": s[0] || (s[0] = (h) => n.lang = h),
11238
11263
  class: ["MvcLang w140", b.$attrs.class],
11239
11264
  teleported: o.teleported
11240
- }, l.value, { onChange: r }), ue({
11265
+ }, l.value, { onChange: i }), me({
11241
11266
  default: N(() => [
11242
- (A(!0), O(ee, null, oe(p.value, (y) => (A(), q(f, {
11243
- key: y.value,
11244
- label: y.label,
11245
- value: y.value
11267
+ (A(!0), E(ne, null, se(w.value, (h) => (A(), Q(g, {
11268
+ key: h.value,
11269
+ label: h.label,
11270
+ value: h.value
11246
11271
  }, {
11247
11272
  default: N(() => [
11248
11273
  d("div", Eo, [
11249
- o.useIcon ? (A(), O("span", Oo, x(y.txt), 1)) : V("", !0),
11250
- d("span", Po, x(y.label), 1)
11274
+ o.useIcon ? (A(), E("span", Oo, x(h.txt), 1)) : V("", !0),
11275
+ d("span", Po, x(h.label), 1)
11251
11276
  ])
11252
11277
  ]),
11253
11278
  _: 2
@@ -11258,8 +11283,8 @@ const Ln = oa({
11258
11283
  o.useIcon ? {
11259
11284
  name: "prefix",
11260
11285
  fn: N(() => [
11261
- z.value ? (A(), O("div", Mo, [
11262
- d("span", ko, x(z.value.txt), 1)
11286
+ v.value ? (A(), E("div", Mo, [
11287
+ d("span", ko, x(v.value.txt), 1)
11263
11288
  ])) : V("", !0)
11264
11289
  ]),
11265
11290
  key: "0"
@@ -11327,17 +11352,17 @@ const Ln = oa({
11327
11352
  },
11328
11353
  emits: ["update:modelValue", "change"],
11329
11354
  setup(e, { emit: o }) {
11330
- const a = e, l = o, n = (s) => s.value === a.modelValue, r = (s) => {
11355
+ const a = e, l = o, n = (s) => s.value === a.modelValue, i = (s) => {
11331
11356
  a.loading || a.disabled || s.disabled || (l("update:modelValue", s.value), l("change", s.value, s.raw));
11332
11357
  }, c = (s) => {
11333
- var y;
11334
- const f = s.value, w = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, f)) ?? typeof f;
11335
- return w === "Object" || w === "Array" ? JSON.stringify(f) : String(f);
11336
- }, p = C(() => {
11337
- const s = a.options, f = Array.isArray(s) ? s : [], w = a.valueKey, y = a.labelKey;
11338
- return f.filter((P) => P != null).map((P) => typeof P == "object" && !Array.isArray(P) ? {
11339
- value: P[w],
11340
- label: P[y] ?? "",
11358
+ var h;
11359
+ const g = s.value, z = ((h = globalThis.$getType) == null ? void 0 : h.call(globalThis, g)) ?? typeof g;
11360
+ return z === "Object" || z === "Array" ? JSON.stringify(g) : String(g);
11361
+ }, w = C(() => {
11362
+ const s = a.options, g = Array.isArray(s) ? s : [], z = a.valueKey, h = a.labelKey;
11363
+ return g.filter((P) => P != null).map((P) => typeof P == "object" && !Array.isArray(P) ? {
11364
+ value: P[z],
11365
+ label: P[h] ?? "",
11341
11366
  disabled: !!P.disabled,
11342
11367
  raw: P
11343
11368
  } : {
@@ -11346,9 +11371,9 @@ const Ln = oa({
11346
11371
  disabled: !1,
11347
11372
  raw: P
11348
11373
  });
11349
- }), z = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : ""), b = C(() => {
11350
- var f, w;
11351
- const s = (w = (f = a.loadingTxt) == null ? void 0 : f.trim) == null ? void 0 : w.call(f);
11374
+ }), v = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : ""), b = C(() => {
11375
+ var g, z;
11376
+ const s = (z = (g = a.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : z.call(g);
11352
11377
  return {
11353
11378
  icon: a.loadingIcon,
11354
11379
  showTxt: !!s,
@@ -11356,36 +11381,36 @@ const Ln = oa({
11356
11381
  radius: 8
11357
11382
  };
11358
11383
  });
11359
- return (s, f) => {
11360
- const w = R("Loading");
11361
- return A(), O("div", ae({
11362
- class: ["MvcList", [t(z), s.$attrs.class]]
11384
+ return (s, g) => {
11385
+ const z = F("Loading");
11386
+ return A(), E("div", oe({
11387
+ class: ["MvcList", [t(v), s.$attrs.class]]
11363
11388
  }, s.$attrs), [
11364
11389
  d("div", Lo, [
11365
11390
  d("div", {
11366
11391
  class: G(["listScroll yscroll", a.listClass]),
11367
11392
  role: "listbox"
11368
11393
  }, [
11369
- (A(!0), O(ee, null, oe(t(p), (y) => (A(), O("div", {
11370
- key: c(y),
11371
- class: G(["listItem", [a.itemClass, { active: n(y), isDisabled: y.disabled }]]),
11394
+ (A(!0), E(ne, null, se(t(w), (h) => (A(), E("div", {
11395
+ key: c(h),
11396
+ class: G(["listItem", [a.itemClass, { active: n(h), isDisabled: h.disabled }]]),
11372
11397
  role: "option",
11373
- "aria-selected": n(y),
11374
- onClick: (P) => r(y)
11398
+ "aria-selected": n(h),
11399
+ onClick: (P) => i(h)
11375
11400
  }, [
11376
- J(s.$slots, "item", { option: y }, () => [
11377
- le(x(s.$l(y.label)), 1)
11401
+ Z(s.$slots, "item", { option: h }, () => [
11402
+ te(x(s.$l(h.label)), 1)
11378
11403
  ], !0)
11379
11404
  ], 10, $o))), 128))
11380
11405
  ], 2),
11381
- j(w, ae({
11406
+ j(z, oe({
11382
11407
  loading: a.loading
11383
11408
  }, t(b)), null, 16, ["loading"])
11384
11409
  ])
11385
11410
  ], 16);
11386
11411
  };
11387
11412
  }
11388
- }), Io = /* @__PURE__ */ Q(jo, [["__scopeId", "data-v-dc08ad7c"]]), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11413
+ }), Io = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-dc08ad7c"]]), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11389
11414
  __proto__: null,
11390
11415
  default: Io
11391
11416
  }, Symbol.toStringTag, { value: "Module" })), Do = { class: "content flexMode flexV vc g12 relative z1" }, Ro = /* @__PURE__ */ Object.assign({
@@ -11428,22 +11453,22 @@ const Ln = oa({
11428
11453
  },
11429
11454
  setup(e) {
11430
11455
  const o = e;
11431
- return (a, l) => (A(), q(ra, { name: "loadingFade" }, {
11456
+ return (a, l) => (A(), Q(ra, { name: "loadingFade" }, {
11432
11457
  default: N(() => [
11433
- o.loading ? (A(), O("div", {
11458
+ o.loading ? (A(), E("div", {
11434
11459
  key: 0,
11435
11460
  class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
11436
11461
  role: "status",
11437
11462
  "aria-busy": "true",
11438
11463
  "aria-live": "polite",
11439
- style: ie({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
11464
+ style: ce({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
11440
11465
  }, [
11441
11466
  d("div", Do, [
11442
11467
  d("i", {
11443
11468
  class: G([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
11444
11469
  "aria-hidden": "true"
11445
11470
  }, null, 2),
11446
- o.showTxt ? (A(), O("span", {
11471
+ o.showTxt ? (A(), E("span", {
11447
11472
  key: 0,
11448
11473
  class: G(["loaderTxt fs14 txt-c", o.txtClass])
11449
11474
  }, x(a.$l(o.txt)), 3)) : V("", !0)
@@ -11453,7 +11478,7 @@ const Ln = oa({
11453
11478
  _: 1
11454
11479
  }));
11455
11480
  }
11456
- }), Fo = /* @__PURE__ */ Q(Ro, [["__scopeId", "data-v-89f58c94"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11481
+ }), Fo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-89f58c94"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11457
11482
  __proto__: null,
11458
11483
  default: Fo
11459
11484
  }, Symbol.toStringTag, { value: "Module" })), Vo = { class: "MvcLogin flexMode flexV hc vc wp100 vh100 p24-16" }, Ko = { class: "panelWrap wp100 maxw400 p24 radius8 border noShrink" }, Uo = { class: "flexMode vc hb mb16" }, Ho = { class: "pl8 fs20 fw700 txt-h1" }, Jo = { class: "contentArea minh160" }, Zo = {
@@ -11501,24 +11526,24 @@ const Ln = oa({
11501
11526
  },
11502
11527
  emits: ["success", "submit"],
11503
11528
  setup(e, { emit: o }) {
11504
- const a = e, { proxy: l } = ce(), n = W(null), r = W(!1), c = Y({
11529
+ const a = e, { proxy: l } = ue(), n = X(null), i = X(!1), c = q({
11505
11530
  method: "password",
11506
11531
  form: {},
11507
11532
  remember: !1
11508
11533
  });
11509
- ne(() => {
11534
+ ie(() => {
11510
11535
  try {
11511
- const h = localStorage.getItem(Se);
11512
- if (h) {
11513
- const S = JSON.parse(h);
11514
- S && typeof S == "object" && S.remember && (c.remember = !0, S.username != null && (c.form.username = String(S.username)), S.password != null && (c.form.password = String(S.password)));
11536
+ const _ = localStorage.getItem(Se);
11537
+ if (_) {
11538
+ const y = JSON.parse(_);
11539
+ y && typeof y == "object" && y.remember && (c.remember = !0, y.username != null && (c.form.username = String(y.username)), y.password != null && (c.form.password = String(y.password)));
11515
11540
  }
11516
11541
  } catch {
11517
11542
  }
11518
11543
  });
11519
- const p = o, z = (h, S = "info") => {
11520
- const B = l == null ? void 0 : l.$message;
11521
- B != null && B[S] && B[S](h);
11544
+ const w = o, v = (_, y = "info") => {
11545
+ const D = l == null ? void 0 : l.$message;
11546
+ D != null && D[y] && D[y](_);
11522
11547
  }, b = () => {
11523
11548
  try {
11524
11549
  c.remember ? localStorage.setItem(
@@ -11532,76 +11557,76 @@ const Ln = oa({
11532
11557
  } catch {
11533
11558
  }
11534
11559
  }, s = () => {
11535
- z("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
11536
- }, f = () => {
11537
- z("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
11538
- }, w = async () => {
11539
- var M, _;
11540
- if (a.loading || r.value) return;
11541
- const h = await ((_ = (M = n.value) == null ? void 0 : M.validate) == null ? void 0 : _.call(M));
11542
- if (!h) return;
11543
- const S = String(h.username ?? "").trim();
11544
- if (!S)
11560
+ v("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
11561
+ }, g = () => {
11562
+ v("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
11563
+ }, z = async () => {
11564
+ var T, O;
11565
+ if (a.loading || i.value) return;
11566
+ const _ = await ((O = (T = n.value) == null ? void 0 : T.validate) == null ? void 0 : O.call(T));
11567
+ if (!_) return;
11568
+ const y = String(_.username ?? "").trim();
11569
+ if (!y)
11545
11570
  return;
11546
- const B = String(h.password ?? "").trim();
11547
- if (B) {
11548
- r.value = !0;
11571
+ const D = String(_.password ?? "").trim();
11572
+ if (D) {
11573
+ i.value = !0;
11549
11574
  try {
11550
11575
  const k = await globalThis.$pm(async () => ({
11551
11576
  method: "password",
11552
- username: S,
11553
- password: B
11577
+ username: y,
11578
+ password: D
11554
11579
  }));
11555
- b(), p("submit", {
11580
+ b(), w("submit", {
11556
11581
  method: "password",
11557
- [v.value.username.valueKey]: k.username,
11558
- [v.value.password.valueKey]: k.password
11582
+ [f.value.username.valueKey]: k.username,
11583
+ [f.value.password.valueKey]: k.password
11559
11584
  }), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
11560
11585
  } finally {
11561
- r.value = !1;
11586
+ i.value = !1;
11562
11587
  }
11563
11588
  }
11564
- }, y = C(() => !!a.loading || r.value), P = C(() => {
11565
- const h = globalThis.$config;
11589
+ }, h = C(() => !!a.loading || i.value), P = C(() => {
11590
+ const _ = globalThis.$config;
11566
11591
  return {
11567
- copyright: (h == null ? void 0 : h.copyright) ?? "",
11568
- author: (h == null ? void 0 : h.author) ?? ""
11592
+ copyright: (_ == null ? void 0 : _.copyright) ?? "",
11593
+ author: (_ == null ? void 0 : _.author) ?? ""
11569
11594
  };
11570
- }), D = C(() => u[c.method] ?? "Login"), v = C(() => ({
11595
+ }), B = C(() => u[c.method] ?? "Login"), f = C(() => ({
11571
11596
  username: {
11572
- ...T.username,
11597
+ ...S.username,
11573
11598
  ...a.formFileds.username || {}
11574
11599
  },
11575
11600
  password: {
11576
- ...T.password,
11601
+ ...S.password,
11577
11602
  ...a.formFileds.password || {}
11578
11603
  }
11579
11604
  })), m = C(() => ({
11580
11605
  username: [
11581
11606
  {
11582
11607
  required: !0,
11583
- message: v.value.username.message,
11608
+ message: f.value.username.message,
11584
11609
  trigger: "blur"
11585
11610
  }
11586
11611
  ],
11587
11612
  password: [
11588
11613
  {
11589
11614
  required: !0,
11590
- message: v.value.password.message,
11615
+ message: f.value.password.message,
11591
11616
  trigger: "blur"
11592
11617
  }
11593
11618
  ]
11594
- })), E = C(() => [
11619
+ })), M = C(() => [
11595
11620
  { value: "password", label: "Account" },
11596
11621
  { value: "auth", label: "Google/Apple" },
11597
11622
  { value: "dingtalk", label: "DingTalk" },
11598
11623
  { value: "feishu", label: "Lark" },
11599
11624
  { value: "wechat", label: "Wechat" }
11600
- ].filter((h, S) => a.loginMethods.includes(S))), u = {
11625
+ ].filter((_, y) => a.loginMethods.includes(y))), u = {
11601
11626
  dingtalk: "DingTalk",
11602
11627
  feishu: "Lark",
11603
11628
  wechat: "Wechat"
11604
- }, T = {
11629
+ }, S = {
11605
11630
  username: {
11606
11631
  label: "Account",
11607
11632
  placeholder: "Enter your account",
@@ -11619,48 +11644,48 @@ const Ln = oa({
11619
11644
  valueKey: "password"
11620
11645
  }
11621
11646
  };
11622
- return (h, S) => {
11623
- const B = R("BtnGroup"), M = R("Input"), _ = R("el-form-item"), k = R("el-checkbox"), L = R("el-button"), F = R("Form");
11624
- return A(), O("div", Vo, [
11647
+ return (_, y) => {
11648
+ const D = F("BtnGroup"), T = F("Input"), O = F("el-form-item"), k = F("el-checkbox"), L = F("el-button"), K = F("Form");
11649
+ return A(), E("div", Vo, [
11625
11650
  d("div", Ko, [
11626
11651
  d("div", Uo, [
11627
- d("span", Ho, x(h.$l(a.title)), 1)
11652
+ d("span", Ho, x(_.$l(a.title)), 1)
11628
11653
  ]),
11629
- j(B, {
11654
+ j(D, {
11630
11655
  modelValue: t(c).method,
11631
- "onUpdate:modelValue": S[0] || (S[0] = (U) => t(c).method = U),
11632
- options: t(E),
11633
- disabled: t(y),
11656
+ "onUpdate:modelValue": y[0] || (y[0] = (J) => t(c).method = J),
11657
+ options: t(M),
11658
+ disabled: t(h),
11634
11659
  size: "small",
11635
11660
  class: "mb32"
11636
11661
  }, null, 8, ["modelValue", "options", "disabled"]),
11637
11662
  d("div", Jo, [
11638
- t(c).method === "password" ? (A(), q(F, {
11663
+ t(c).method === "password" ? (A(), Q(K, {
11639
11664
  key: 0,
11640
11665
  ref_key: "pwdFormRef",
11641
11666
  ref: n,
11642
11667
  modelValue: t(c).form,
11643
- "onUpdate:modelValue": S[4] || (S[4] = (U) => t(c).form = U),
11668
+ "onUpdate:modelValue": y[4] || (y[4] = (J) => t(c).form = J),
11644
11669
  size: "default",
11645
11670
  rules: t(m)
11646
11671
  }, {
11647
11672
  default: N(() => [
11648
- j(_, { prop: "username" }, {
11673
+ j(O, { prop: "username" }, {
11649
11674
  default: N(() => [
11650
- j(M, {
11675
+ j(T, {
11651
11676
  modelValue: t(c).form.username,
11652
- "onUpdate:modelValue": S[1] || (S[1] = (U) => t(c).form.username = U),
11677
+ "onUpdate:modelValue": y[1] || (y[1] = (J) => t(c).form.username = J),
11653
11678
  class: "wp100",
11654
11679
  size: "large",
11655
11680
  name: "username",
11656
- placeholder: t(v).username.placeholder,
11657
- disabled: t(y)
11658
- }, ue({ _: 2 }, [
11659
- t(v).username.showPrefix ? {
11681
+ placeholder: t(f).username.placeholder,
11682
+ disabled: t(h)
11683
+ }, me({ _: 2 }, [
11684
+ t(f).username.showPrefix ? {
11660
11685
  name: "prefix",
11661
11686
  fn: N(() => [
11662
11687
  d("i", {
11663
- class: G(t(v).username.icon)
11688
+ class: G(t(f).username.icon)
11664
11689
  }, null, 2)
11665
11690
  ]),
11666
11691
  key: "0"
@@ -11669,25 +11694,25 @@ const Ln = oa({
11669
11694
  ]),
11670
11695
  _: 1
11671
11696
  }),
11672
- j(_, { prop: "password" }, {
11697
+ j(O, { prop: "password" }, {
11673
11698
  default: N(() => [
11674
- j(M, {
11699
+ j(T, {
11675
11700
  modelValue: t(c).form.password,
11676
- "onUpdate:modelValue": S[2] || (S[2] = (U) => t(c).form.password = U),
11701
+ "onUpdate:modelValue": y[2] || (y[2] = (J) => t(c).form.password = J),
11677
11702
  class: "wp100",
11678
11703
  size: "large",
11679
11704
  type: "password",
11680
11705
  name: "password",
11681
- placeholder: t(v).password.placeholder,
11706
+ placeholder: t(f).password.placeholder,
11682
11707
  "show-password": "",
11683
- disabled: t(y),
11684
- onKeyup: ia(w, ["enter"])
11685
- }, ue({ _: 2 }, [
11686
- t(v).password.showPrefix ? {
11708
+ disabled: t(h),
11709
+ onKeyup: ia(z, ["enter"])
11710
+ }, me({ _: 2 }, [
11711
+ t(f).password.showPrefix ? {
11687
11712
  name: "prefix",
11688
11713
  fn: N(() => [
11689
11714
  d("i", {
11690
- class: G(t(v).password.icon)
11715
+ class: G(t(f).password.icon)
11691
11716
  }, null, 2)
11692
11717
  ]),
11693
11718
  key: "0"
@@ -11696,15 +11721,15 @@ const Ln = oa({
11696
11721
  ]),
11697
11722
  _: 1
11698
11723
  }),
11699
- j(_, null, {
11724
+ j(O, null, {
11700
11725
  default: N(() => [
11701
11726
  j(k, {
11702
11727
  modelValue: t(c).remember,
11703
- "onUpdate:modelValue": S[3] || (S[3] = (U) => t(c).remember = U),
11704
- disabled: t(y)
11728
+ "onUpdate:modelValue": y[3] || (y[3] = (J) => t(c).remember = J),
11729
+ disabled: t(h)
11705
11730
  }, {
11706
11731
  default: N(() => [
11707
- le(x(h.$l(a.rememberTxt)), 1)
11732
+ te(x(_.$l(a.rememberTxt)), 1)
11708
11733
  ]),
11709
11734
  _: 1
11710
11735
  }, 8, ["modelValue", "disabled"])
@@ -11715,33 +11740,33 @@ const Ln = oa({
11715
11740
  type: "primary",
11716
11741
  size: "large",
11717
11742
  class: "wp100",
11718
- loading: t(y),
11719
- disabled: t(y),
11720
- onClick: w
11743
+ loading: t(h),
11744
+ disabled: t(h),
11745
+ onClick: z
11721
11746
  }, {
11722
11747
  default: N(() => [
11723
- le(x(h.$l(a.submitTxt)), 1)
11748
+ te(x(_.$l(a.submitTxt)), 1)
11724
11749
  ]),
11725
11750
  _: 1
11726
11751
  }, 8, ["loading", "disabled"])
11727
11752
  ]),
11728
11753
  _: 1
11729
- }, 8, ["modelValue", "rules"])) : t(c).method === "auth" ? (A(), O("div", Zo, [
11730
- S[7] || (S[7] = d("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
11754
+ }, 8, ["modelValue", "rules"])) : t(c).method === "auth" ? (A(), E("div", Zo, [
11755
+ y[7] || (y[7] = d("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
11731
11756
  d("button", {
11732
11757
  type: "button",
11733
11758
  class: "oauthGoogle wp100 mb36",
11734
- disabled: t(y),
11759
+ disabled: t(h),
11735
11760
  onClick: s
11736
- }, [...S[5] || (S[5] = [
11761
+ }, [...y[5] || (y[5] = [
11737
11762
  Ba('<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)
11738
11763
  ])], 8, Yo),
11739
11764
  d("button", {
11740
11765
  type: "button",
11741
11766
  class: "oauthApple wp100 mb16",
11742
- disabled: t(y),
11743
- onClick: f
11744
- }, [...S[6] || (S[6] = [
11767
+ disabled: t(h),
11768
+ onClick: g
11769
+ }, [...y[6] || (y[6] = [
11745
11770
  d("svg", {
11746
11771
  class: "oauthAppleLogo noShrink",
11747
11772
  xmlns: "http://www.w3.org/2000/svg",
@@ -11757,8 +11782,8 @@ const Ln = oa({
11757
11782
  ], -1),
11758
11783
  d("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
11759
11784
  ])], 8, Wo)
11760
- ])) : (A(), O("div", qo, [
11761
- d("p", Xo, x(t(D)), 1),
11785
+ ])) : (A(), E("div", qo, [
11786
+ d("p", Xo, x(t(B)), 1),
11762
11787
  d("div", {
11763
11788
  class: G(["qrBlock w180 h180 radius6", `qr-${t(c).method}`]),
11764
11789
  "aria-hidden": "true"
@@ -11773,7 +11798,7 @@ const Ln = oa({
11773
11798
  ]);
11774
11799
  };
11775
11800
  }
11776
- }), at = /* @__PURE__ */ Q(et, [["__scopeId", "data-v-6faa6992"]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11801
+ }), at = /* @__PURE__ */ le(et, [["__scopeId", "data-v-6faa6992"]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11777
11802
  __proto__: null,
11778
11803
  default: at
11779
11804
  }, Symbol.toStringTag, { value: "Module" })), nt = /* @__PURE__ */ Object.assign({
@@ -11799,18 +11824,18 @@ const Ln = oa({
11799
11824
  },
11800
11825
  setup(e) {
11801
11826
  const o = e;
11802
- Y({});
11827
+ q({});
11803
11828
  const a = C(() => ({
11804
11829
  borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
11805
11830
  }));
11806
- return (l, n) => (A(), O("div", {
11831
+ return (l, n) => (A(), E("div", {
11807
11832
  class: "MvcNote",
11808
- style: ie(t(a))
11833
+ style: ce(t(a))
11809
11834
  }, [
11810
- J(l.$slots, "default", {}, void 0, !0)
11835
+ Z(l.$slots, "default", {}, void 0, !0)
11811
11836
  ], 4));
11812
11837
  }
11813
- }), ot = /* @__PURE__ */ Q(nt, [["__scopeId", "data-v-e3e84cc8"]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11838
+ }), ot = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-e3e84cc8"]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11814
11839
  __proto__: null,
11815
11840
  default: ot
11816
11841
  }, Symbol.toStringTag, { value: "Module" })), rt = {
@@ -11840,35 +11865,35 @@ const Ln = oa({
11840
11865
  }
11841
11866
  },
11842
11867
  setup(e) {
11843
- const o = e, { proxy: a } = ce(), n = _e("store").tab(), r = C(() => o.title || o.subtitle), c = C(() => n.useTab), p = C(() => {
11844
- let z = "calc(100vh";
11845
- return n.useTab && (z += " - 2.25rem"), o.noheader || (z += " - 4rem"), {
11846
- minHeight: `${z})`
11868
+ const o = e, { proxy: a } = ue(), n = _e("store").tab(), i = C(() => o.title || o.subtitle), c = C(() => n.useTab), w = C(() => {
11869
+ let v = "calc(100vh";
11870
+ return n.useTab && (v += " - 2.25rem"), o.noheader || (v += " - 4rem"), {
11871
+ minHeight: `${v})`
11847
11872
  };
11848
11873
  });
11849
- return (z, b) => (A(), O("div", {
11874
+ return (v, b) => (A(), E("div", {
11850
11875
  class: G(["MvcPage", t(c) && "hasTab"])
11851
11876
  }, [
11852
- o.noheader ? V("", !0) : (A(), O("div", rt, [
11877
+ o.noheader ? V("", !0) : (A(), E("div", rt, [
11853
11878
  d("div", it, [
11854
- z.$slots.header ? J(z.$slots, "header", { key: 0 }, void 0, !0) : t(r) ? (A(), O(ee, { key: 1 }, [
11879
+ v.$slots.header ? Z(v.$slots, "header", { key: 0 }, void 0, !0) : t(i) ? (A(), E(ne, { key: 1 }, [
11855
11880
  d("h3", st, x(o.title), 1),
11856
11881
  d("p", ct, x(o.subtitle), 1)
11857
11882
  ], 64)) : V("", !0)
11858
11883
  ]),
11859
11884
  d("div", ut, [
11860
- z.$slots.right ? J(z.$slots, "right", { key: 0 }, void 0, !0) : V("", !0)
11885
+ v.$slots.right ? Z(v.$slots, "right", { key: 0 }, void 0, !0) : V("", !0)
11861
11886
  ])
11862
11887
  ])),
11863
11888
  d("div", {
11864
11889
  class: G(["PageBody", o.bodyClass]),
11865
- style: ie(t(p))
11890
+ style: ce(t(w))
11866
11891
  }, [
11867
- J(z.$slots, "default", {}, void 0, !0)
11892
+ Z(v.$slots, "default", {}, void 0, !0)
11868
11893
  ], 6)
11869
11894
  ], 2));
11870
11895
  }
11871
- }), mt = /* @__PURE__ */ Q(dt, [["__scopeId", "data-v-060130ad"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11896
+ }), mt = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-060130ad"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11872
11897
  __proto__: null,
11873
11898
  default: mt
11874
11899
  }, Symbol.toStringTag, { value: "Module" })), vt = {
@@ -11927,133 +11952,133 @@ const Ln = oa({
11927
11952
  },
11928
11953
  emits: ["update:modelValue", "change", "focus", "blur"],
11929
11954
  setup(e, { emit: o }) {
11930
- const a = e, l = W(null), n = W([]), r = W(!1), c = W(!1), p = W(!1), z = W(!1), b = be(), s = o, f = (i) => {
11931
- a.multiple ? (n.value = Array.isArray(i) ? [...i] : [], T()) : (s("update:modelValue", i), s("change", i));
11932
- }, w = (i) => {
11933
- if (r.value = i, i && a.multiple) {
11934
- const g = a.modelValue;
11935
- n.value = Array.isArray(g) ? [...g] : g ? [g] : [], T();
11955
+ const a = e, l = X(null), n = X([]), i = X(!1), c = X(!1), w = X(!1), v = X(!1), b = ve(), s = o, g = (r) => {
11956
+ a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
11957
+ }, z = (r) => {
11958
+ if (i.value = r, r && a.multiple) {
11959
+ const p = a.modelValue;
11960
+ n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
11936
11961
  }
11937
- }, y = (i) => {
11938
- z.value = !0, s("focus", i);
11939
- }, P = (i) => {
11940
- z.value = !1, s("blur", i);
11941
- }, D = () => {
11962
+ }, h = (r) => {
11963
+ v.value = !0, s("focus", r);
11964
+ }, P = (r) => {
11965
+ v.value = !1, s("blur", r);
11966
+ }, B = () => {
11942
11967
  var I;
11943
- if (!a.filterable || !r.value) return u();
11944
- const i = l.value, g = ((I = i == null ? void 0 : i.optionsArray) == null ? void 0 : I.value) ?? (i == null ? void 0 : i.optionsArray) ?? [];
11945
- return Array.isArray(g) ? g.filter(($) => $.visible && !$.isDisabled).map(($) => $.value) : u();
11946
- }, v = () => {
11947
- const i = b.multipleLimit ?? b["multiple-limit"], g = Number(i);
11948
- return Number.isFinite(g) && g > 0 ? g : 0;
11949
- }, m = (i) => {
11950
- const g = D();
11951
- if (i) {
11952
- const I = v(), $ = Array.isArray(n.value) ? [...n.value] : [], K = new Set($), H = [...$];
11953
- for (const Z of g)
11954
- if (!K.has(Z)) {
11968
+ if (!a.filterable || !i.value) return u();
11969
+ const r = l.value, p = ((I = r == null ? void 0 : r.optionsArray) == null ? void 0 : I.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
11970
+ return Array.isArray(p) ? p.filter(($) => $.visible && !$.isDisabled).map(($) => $.value) : u();
11971
+ }, f = () => {
11972
+ const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
11973
+ return Number.isFinite(p) && p > 0 ? p : 0;
11974
+ }, m = (r) => {
11975
+ const p = B();
11976
+ if (r) {
11977
+ const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
11978
+ for (const Y of p)
11979
+ if (!U.has(Y)) {
11955
11980
  if (I > 0 && H.length >= I) break;
11956
- K.add(Z), H.push(Z);
11981
+ U.add(Y), H.push(Y);
11957
11982
  }
11958
11983
  n.value = H;
11959
11984
  } else {
11960
- const I = new Set(g);
11985
+ const I = new Set(p);
11961
11986
  n.value = n.value.filter(($) => !I.has($));
11962
11987
  }
11963
- T();
11964
- }, E = () => {
11965
- var i, g;
11966
- a.multiple && (s("update:modelValue", n.value), s("change", n.value), (g = (i = l.value) == null ? void 0 : i.blur) == null || g.call(i));
11988
+ S();
11989
+ }, M = () => {
11990
+ var r, p;
11991
+ a.multiple && (s("update:modelValue", n.value), s("change", n.value), (p = (r = l.value) == null ? void 0 : r.blur) == null || p.call(r));
11967
11992
  }, u = () => {
11968
- const i = a.valueKey;
11969
- return (a.options || []).map((g) => typeof g == "object" ? g[i] : g);
11970
- }, T = () => {
11971
- const i = D(), g = new Set(n.value ?? []), I = i.filter((K) => g.has(K)).length, $ = i.length;
11972
- c.value = $ > 0 && I === $, p.value = I > 0 && I < $;
11973
- }, h = C(() => a.multiple && r.value ? n.value : a.modelValue), S = C(() => {
11993
+ const r = a.valueKey;
11994
+ return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
11995
+ }, S = () => {
11996
+ const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
11997
+ c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
11998
+ }, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
11974
11999
  const {
11975
- modelValue: i,
11976
- valueKey: g,
12000
+ modelValue: r,
12001
+ valueKey: p,
11977
12002
  labelKey: I,
11978
12003
  selectAllTxt: $,
11979
- confirmTxt: K,
12004
+ confirmTxt: U,
11980
12005
  nowrap: H,
11981
- ...Z
11982
- } = a, X = Z.props ?? {};
12006
+ ...Y
12007
+ } = a, ae = Y.props ?? {};
11983
12008
  return {
11984
- ...Z,
12009
+ ...Y,
11985
12010
  props: {
11986
- ...X,
11987
- value: g,
12011
+ ...ae,
12012
+ value: p,
11988
12013
  label: I
11989
12014
  }
11990
12015
  };
11991
- }), B = C(
12016
+ }), D = C(
11992
12017
  () => a.nowrap ? {
11993
12018
  collapseTags: !0,
11994
12019
  collapseTagsTooltip: !0,
11995
12020
  maxCollapseTags: 1,
11996
12021
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
11997
12022
  } : {}
11998
- ), M = C(() => {
11999
- const { class: i, ...g } = b;
12000
- return g;
12001
- }), _ = C(() => ({
12002
- ...B.value,
12003
- ...M.value,
12004
- ...S.value,
12023
+ ), T = C(() => {
12024
+ const { class: r, ...p } = b;
12025
+ return p;
12026
+ }), O = C(() => ({
12027
+ ...D.value,
12028
+ ...T.value,
12029
+ ...y.value,
12005
12030
  placeholder: b.placeholder ?? ""
12006
12031
  })), k = C(() => {
12007
- const i = a.multiple && r.value ? n.value : a.modelValue, g = Array.isArray(i) ? i : i ? [i] : [];
12008
- if (!a.filterable || !r.value) return g.length;
12009
- const I = D();
12010
- return g.filter(($) => I.includes($)).length;
12011
- }), L = C(() => D().length), F = C(() => {
12012
- const i = a.multiple && r.value ? n.value : a.modelValue;
12013
- return Array.isArray(i) ? i.length > 0 : i != null && String(i) !== "";
12014
- }), U = C(() => !!b.placeholder), re = C(
12015
- () => a.materialLabel && (z.value || r.value || F.value || U.value)
12016
- ), ve = C(() => ({
12032
+ const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
12033
+ if (!a.filterable || !i.value) return p.length;
12034
+ const I = B();
12035
+ return p.filter(($) => I.includes($)).length;
12036
+ }), L = C(() => B().length), K = C(() => {
12037
+ const r = a.multiple && i.value ? n.value : a.modelValue;
12038
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
12039
+ }), J = C(() => !!b.placeholder), R = C(
12040
+ () => a.materialLabel && (v.value || i.value || K.value || J.value)
12041
+ ), W = C(() => ({
12017
12042
  [b.class]: !!b.class,
12018
12043
  hasLabel: !!a.label,
12019
12044
  isMaterialLabel: !!(a.label && a.materialLabel),
12020
12045
  isTopLabel: !!(a.label && !a.materialLabel),
12021
- isFloat: re.value,
12022
- isFocused: z.value,
12046
+ isFloat: R.value,
12047
+ isFocused: v.value,
12023
12048
  isDisabled: !!b.disabled,
12024
12049
  isSelect: !0
12025
- })), se = C(
12050
+ })), ee = C(
12026
12051
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
12027
12052
  );
12028
- return te(n, () => T(), { deep: !0 }), te(
12053
+ return re(n, () => S(), { deep: !0 }), re(
12029
12054
  () => a.modelValue,
12030
- (i) => {
12031
- if (a.multiple && r.value) {
12032
- const g = Array.isArray(i) ? [...i] : i ? [i] : [];
12033
- JSON.stringify(g) !== JSON.stringify(n.value) && (n.value = g, T());
12055
+ (r) => {
12056
+ if (a.multiple && i.value) {
12057
+ const p = Array.isArray(r) ? [...r] : r ? [r] : [];
12058
+ JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
12034
12059
  }
12035
12060
  }
12036
- ), (i, g) => {
12037
- const I = R("el-checkbox"), $ = R("el-button"), K = R("el-select");
12038
- return A(), O("div", {
12039
- class: G(["MvcField MvcFieldSelect", t(ve)]),
12040
- style: ie(t(se))
12061
+ ), (r, p) => {
12062
+ const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select");
12063
+ return A(), E("div", {
12064
+ class: G(["MvcField MvcFieldSelect", t(W)]),
12065
+ style: ce(t(ee))
12041
12066
  }, [
12042
- a.label ? (A(), O("label", vt, x(a.label), 1)) : V("", !0),
12043
- j(K, ae({
12067
+ a.label ? (A(), E("label", vt, x(a.label), 1)) : V("", !0),
12068
+ j(U, oe({
12044
12069
  ref_key: "selectRef",
12045
12070
  ref: l,
12046
- "model-value": t(h),
12071
+ "model-value": t(_),
12047
12072
  "tag-effect": "plain",
12048
12073
  class: "MvcSelect"
12049
- }, t(_), {
12050
- "onUpdate:modelValue": f,
12051
- onVisibleChange: w,
12052
- onFocus: y,
12074
+ }, t(O), {
12075
+ "onUpdate:modelValue": g,
12076
+ onVisibleChange: z,
12077
+ onFocus: h,
12053
12078
  onBlur: P
12054
- }), ue({
12079
+ }), me({
12055
12080
  default: N(() => [
12056
- J(i.$slots, "default")
12081
+ Z(r.$slots, "default")
12057
12082
  ]),
12058
12083
  _: 2
12059
12084
  }, [
@@ -12063,13 +12088,13 @@ const Ln = oa({
12063
12088
  d("div", pt, [
12064
12089
  j(I, {
12065
12090
  modelValue: t(c),
12066
- "onUpdate:modelValue": g[0] || (g[0] = (H) => sa(c) ? c.value = H : null),
12067
- indeterminate: t(p),
12091
+ "onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
12092
+ indeterminate: t(w),
12068
12093
  class: "h24",
12069
12094
  onChange: m
12070
12095
  }, {
12071
12096
  default: N(() => [
12072
- le(x(e.selectAllTxt), 1)
12097
+ te(x(e.selectAllTxt), 1)
12073
12098
  ]),
12074
12099
  _: 1
12075
12100
  }, 8, ["modelValue", "indeterminate"]),
@@ -12085,10 +12110,10 @@ const Ln = oa({
12085
12110
  j($, {
12086
12111
  type: "primary",
12087
12112
  size: "small",
12088
- onClick: E
12113
+ onClick: M
12089
12114
  }, {
12090
12115
  default: N(() => [
12091
- le(x(e.confirmTxt), 1)
12116
+ te(x(e.confirmTxt), 1)
12092
12117
  ]),
12093
12118
  _: 1
12094
12119
  })
@@ -12159,145 +12184,145 @@ const Ln = oa({
12159
12184
  },
12160
12185
  emits: ["update:modelValue", "change", "focus", "blur"],
12161
12186
  setup(e, { emit: o }) {
12162
- const a = e, l = W(null), n = W([]), r = W(!1), c = W(!1), p = W(!1), z = W(!1), b = be(), s = o, f = (i) => {
12163
- a.multiple ? (n.value = Array.isArray(i) ? [...i] : [], T()) : (s("update:modelValue", i), s("change", i));
12164
- }, w = (i) => {
12165
- if (r.value = i, i && a.multiple) {
12166
- const g = a.modelValue;
12167
- n.value = Array.isArray(g) ? [...g] : g ? [g] : [], T();
12187
+ const a = e, l = X(null), n = X([]), i = X(!1), c = X(!1), w = X(!1), v = X(!1), b = ve(), s = o, g = (r) => {
12188
+ a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
12189
+ }, z = (r) => {
12190
+ if (i.value = r, r && a.multiple) {
12191
+ const p = a.modelValue;
12192
+ n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
12168
12193
  }
12169
- }, y = (i) => {
12170
- z.value = !0, s("focus", i);
12171
- }, P = (i) => {
12172
- z.value = !1, s("blur", i);
12173
- }, D = () => {
12194
+ }, h = (r) => {
12195
+ v.value = !0, s("focus", r);
12196
+ }, P = (r) => {
12197
+ v.value = !1, s("blur", r);
12198
+ }, B = () => {
12174
12199
  var $;
12175
- if (!a.filterable || !r.value) return u();
12176
- const i = l.value, g = (($ = i == null ? void 0 : i.filteredOptions) == null ? void 0 : $.value) ?? (i == null ? void 0 : i.filteredOptions) ?? [];
12177
- if (!Array.isArray(g)) return u();
12200
+ if (!a.filterable || !i.value) return u();
12201
+ const r = l.value, p = (($ = r == null ? void 0 : r.filteredOptions) == null ? void 0 : $.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
12202
+ if (!Array.isArray(p)) return u();
12178
12203
  const I = a.valueKey;
12179
- return g.filter((K) => K.type !== "Group" && !K.disabled).map((K) => typeof K == "object" ? K[I] : K);
12180
- }, v = () => {
12181
- const i = b.multipleLimit ?? b["multiple-limit"], g = Number(i);
12182
- return Number.isFinite(g) && g > 0 ? g : 0;
12183
- }, m = (i) => {
12184
- const g = D();
12185
- if (i) {
12186
- const I = v(), $ = Array.isArray(n.value) ? [...n.value] : [], K = new Set($), H = [...$];
12187
- for (const Z of g)
12188
- if (!K.has(Z)) {
12204
+ return p.filter((U) => U.type !== "Group" && !U.disabled).map((U) => typeof U == "object" ? U[I] : U);
12205
+ }, f = () => {
12206
+ const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
12207
+ return Number.isFinite(p) && p > 0 ? p : 0;
12208
+ }, m = (r) => {
12209
+ const p = B();
12210
+ if (r) {
12211
+ const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
12212
+ for (const Y of p)
12213
+ if (!U.has(Y)) {
12189
12214
  if (I > 0 && H.length >= I) break;
12190
- K.add(Z), H.push(Z);
12215
+ U.add(Y), H.push(Y);
12191
12216
  }
12192
12217
  n.value = H;
12193
12218
  } else {
12194
- const I = new Set(g);
12219
+ const I = new Set(p);
12195
12220
  n.value = n.value.filter(($) => !I.has($));
12196
12221
  }
12197
- T();
12198
- }, E = () => {
12199
- var i, g;
12200
- a.multiple && (s("update:modelValue", n.value), s("change", n.value), (g = (i = l.value) == null ? void 0 : i.blur) == null || g.call(i));
12222
+ S();
12223
+ }, M = () => {
12224
+ var r, p;
12225
+ a.multiple && (s("update:modelValue", n.value), s("change", n.value), (p = (r = l.value) == null ? void 0 : r.blur) == null || p.call(r));
12201
12226
  }, u = () => {
12202
- const i = a.valueKey;
12203
- return (a.options || []).map((g) => typeof g == "object" ? g[i] : g);
12204
- }, T = () => {
12205
- const i = D(), g = new Set(n.value ?? []), I = i.filter((K) => g.has(K)).length, $ = i.length;
12206
- c.value = $ > 0 && I === $, p.value = I > 0 && I < $;
12207
- }, h = C(() => a.multiple && r.value ? n.value : a.modelValue), S = C(() => {
12227
+ const r = a.valueKey;
12228
+ return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
12229
+ }, S = () => {
12230
+ const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
12231
+ c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
12232
+ }, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
12208
12233
  const {
12209
- modelValue: i,
12210
- valueKey: g,
12234
+ modelValue: r,
12235
+ valueKey: p,
12211
12236
  labelKey: I,
12212
12237
  selectAllTxt: $,
12213
- confirmTxt: K,
12238
+ confirmTxt: U,
12214
12239
  nowrap: H,
12215
- ...Z
12216
- } = a, X = Z.props ?? {};
12240
+ ...Y
12241
+ } = a, ae = Y.props ?? {};
12217
12242
  return {
12218
- ...Z,
12243
+ ...Y,
12219
12244
  props: {
12220
- ...X,
12221
- value: g,
12245
+ ...ae,
12246
+ value: p,
12222
12247
  label: I
12223
12248
  }
12224
12249
  };
12225
- }), B = C(
12250
+ }), D = C(
12226
12251
  () => a.nowrap ? {
12227
12252
  collapseTags: !0,
12228
12253
  collapseTagsTooltip: !0,
12229
12254
  maxCollapseTags: 1,
12230
12255
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
12231
12256
  } : {}
12232
- ), M = C(() => {
12233
- const { class: i, ...g } = b;
12234
- return g;
12235
- }), _ = C(() => ({
12236
- ...B.value,
12237
- ...M.value,
12238
- ...S.value,
12257
+ ), T = C(() => {
12258
+ const { class: r, ...p } = b;
12259
+ return p;
12260
+ }), O = C(() => ({
12261
+ ...D.value,
12262
+ ...T.value,
12263
+ ...y.value,
12239
12264
  placeholder: b.placeholder ?? ""
12240
12265
  })), k = C(() => {
12241
- const i = a.multiple && r.value ? n.value : a.modelValue, g = Array.isArray(i) ? i : i ? [i] : [];
12242
- if (!a.filterable || !r.value) return g.length;
12243
- const I = D();
12244
- return g.filter(($) => I.includes($)).length;
12245
- }), L = C(() => D().length), F = C(() => {
12246
- const i = a.multiple && r.value ? n.value : a.modelValue;
12247
- return Array.isArray(i) ? i.length > 0 : i != null && String(i) !== "";
12248
- }), U = C(() => !!b.placeholder), re = C(
12249
- () => a.materialLabel && (z.value || r.value || F.value || U.value)
12250
- ), ve = C(() => ({
12266
+ const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
12267
+ if (!a.filterable || !i.value) return p.length;
12268
+ const I = B();
12269
+ return p.filter(($) => I.includes($)).length;
12270
+ }), L = C(() => B().length), K = C(() => {
12271
+ const r = a.multiple && i.value ? n.value : a.modelValue;
12272
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
12273
+ }), J = C(() => !!b.placeholder), R = C(
12274
+ () => a.materialLabel && (v.value || i.value || K.value || J.value)
12275
+ ), W = C(() => ({
12251
12276
  [b.class]: !!b.class,
12252
12277
  hasLabel: !!a.label,
12253
12278
  isMaterialLabel: !!(a.label && a.materialLabel),
12254
12279
  isTopLabel: !!(a.label && !a.materialLabel),
12255
- isFloat: re.value,
12256
- isFocused: z.value,
12280
+ isFloat: R.value,
12281
+ isFocused: v.value,
12257
12282
  isDisabled: !!b.disabled,
12258
12283
  isSelect: !0
12259
- })), se = C(
12284
+ })), ee = C(
12260
12285
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
12261
12286
  );
12262
- return te(n, () => T(), { deep: !0 }), te(
12287
+ return re(n, () => S(), { deep: !0 }), re(
12263
12288
  () => a.modelValue,
12264
- (i) => {
12265
- if (a.multiple && r.value) {
12266
- const g = Array.isArray(i) ? [...i] : i ? [i] : [];
12267
- JSON.stringify(g) !== JSON.stringify(n.value) && (n.value = g, T());
12289
+ (r) => {
12290
+ if (a.multiple && i.value) {
12291
+ const p = Array.isArray(r) ? [...r] : r ? [r] : [];
12292
+ JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
12268
12293
  }
12269
12294
  }
12270
- ), (i, g) => {
12271
- const I = R("el-checkbox"), $ = R("el-button"), K = R("el-select-v2");
12272
- return A(), O("div", {
12273
- class: G(["MvcField MvcFieldSelectV2", t(ve)]),
12274
- style: ie(t(se))
12295
+ ), (r, p) => {
12296
+ const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select-v2");
12297
+ return A(), E("div", {
12298
+ class: G(["MvcField MvcFieldSelectV2", t(W)]),
12299
+ style: ce(t(ee))
12275
12300
  }, [
12276
- a.label ? (A(), O("label", yt, x(a.label), 1)) : V("", !0),
12277
- j(K, ae({
12301
+ a.label ? (A(), E("label", yt, x(a.label), 1)) : V("", !0),
12302
+ j(U, oe({
12278
12303
  ref_key: "selectRef",
12279
12304
  ref: l,
12280
- "model-value": t(h),
12305
+ "model-value": t(_),
12281
12306
  class: "MvcSelectV2"
12282
- }, t(_), {
12283
- "onUpdate:modelValue": f,
12284
- onVisibleChange: w,
12285
- onFocus: y,
12307
+ }, t(O), {
12308
+ "onUpdate:modelValue": g,
12309
+ onVisibleChange: z,
12310
+ onFocus: h,
12286
12311
  onBlur: P
12287
- }), ue({ _: 2 }, [
12312
+ }), me({ _: 2 }, [
12288
12313
  a.filterable && a.multiple ? {
12289
12314
  name: "header",
12290
12315
  fn: N(() => [
12291
12316
  d("div", At, [
12292
12317
  j(I, {
12293
12318
  modelValue: t(c),
12294
- "onUpdate:modelValue": g[0] || (g[0] = (H) => sa(c) ? c.value = H : null),
12295
- indeterminate: t(p),
12319
+ "onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
12320
+ indeterminate: t(w),
12296
12321
  class: "h24",
12297
12322
  onChange: m
12298
12323
  }, {
12299
12324
  default: N(() => [
12300
- le(x(e.selectAllTxt), 1)
12325
+ te(x(e.selectAllTxt), 1)
12301
12326
  ]),
12302
12327
  _: 1
12303
12328
  }, 8, ["modelValue", "indeterminate"]),
@@ -12306,10 +12331,10 @@ const Ln = oa({
12306
12331
  ]),
12307
12332
  key: "0"
12308
12333
  } : void 0,
12309
- i.$slots.default ? {
12334
+ r.$slots.default ? {
12310
12335
  name: "default",
12311
12336
  fn: N((H) => [
12312
- J(i.$slots, "default", we(Me(H)))
12337
+ Z(r.$slots, "default", we(Me(H)))
12313
12338
  ]),
12314
12339
  key: "1"
12315
12340
  } : void 0,
@@ -12320,10 +12345,10 @@ const Ln = oa({
12320
12345
  j($, {
12321
12346
  type: "primary",
12322
12347
  size: "small",
12323
- onClick: E
12348
+ onClick: M
12324
12349
  }, {
12325
12350
  default: N(() => [
12326
- le(x(e.confirmTxt), 1)
12351
+ te(x(e.confirmTxt), 1)
12327
12352
  ]),
12328
12353
  _: 1
12329
12354
  })
@@ -12355,47 +12380,47 @@ const Ln = oa({
12355
12380
  }
12356
12381
  },
12357
12382
  setup: (e, o) => {
12358
- var p;
12359
- const a = Y({
12383
+ var w;
12384
+ const a = q({
12360
12385
  options: [],
12361
12386
  slots: []
12362
12387
  }), l = e.tableName + "_Column";
12363
12388
  let n = [];
12364
12389
  (() => {
12365
- const z = o.slots.default()[0].children, b = {
12390
+ const v = o.slots.default()[0].children, b = {
12366
12391
  normal: [],
12367
12392
  mmp: [],
12368
12393
  asa: [],
12369
12394
  fixed: [],
12370
12395
  columns: []
12371
- }, s = e.tableName ? JSON.parse(localStorage.getItem(l)) : null, f = [void 0];
12372
- z.forEach((y) => {
12373
- window.$getType(y.type) === "Symbol" ? n = n.concat(y.children) : n.push(y);
12374
- }), n.forEach((y, P) => {
12375
- var D;
12376
- if (window.$getType(y.type), ((D = y.type) == null ? void 0 : D.name) === "ElTableColumn") {
12377
- let v = {
12378
- ...y.props,
12396
+ }, s = e.tableName ? JSON.parse(localStorage.getItem(l)) : null, g = [void 0];
12397
+ v.forEach((h) => {
12398
+ window.$getType(h.type) === "Symbol" ? n = n.concat(h.children) : n.push(h);
12399
+ }), n.forEach((h, P) => {
12400
+ var B;
12401
+ if (window.$getType(h.type), ((B = h.type) == null ? void 0 : B.name) === "ElTableColumn") {
12402
+ let f = {
12403
+ ...h.props,
12379
12404
  sort: P,
12380
- nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
12405
+ nomove: h.props.nomove || h.props.nomove === "" || h.props.type === "selection" || h.props.label === "Operation",
12381
12406
  resizable: !0,
12382
- visible: y.props.visible !== !1
12407
+ visible: h.props.visible !== !1
12383
12408
  };
12384
- if (v.labelKey || (v.labelKey = v.label), v.label = window.$l(v.labelKey), e.column && (s != null && s.length) && f.indexOf(y.props.prop) === -1) {
12385
- const { data: m } = s.filter1((E) => E.prop === y.props.prop);
12386
- m && (v.sort = m.sort, v.fixed = m.fixed, v.visible = m.visible);
12409
+ if (f.labelKey || (f.labelKey = f.label), f.label = window.$l(f.labelKey), e.column && (s != null && s.length) && g.indexOf(h.props.prop) === -1) {
12410
+ const { data: m } = s.filter1((M) => M.prop === h.props.prop);
12411
+ m && (f.sort = m.sort, f.fixed = m.fixed, f.visible = m.visible);
12387
12412
  }
12388
- y.props.fixed && b.fixed.push(v), y.props.type === "mmp" ? b.mmp.push(v) : y.props.type === "asa" ? b.asa.push(v) : b.normal.push(v), y.props = v;
12413
+ h.props.fixed && b.fixed.push(f), h.props.type === "mmp" ? b.mmp.push(f) : h.props.type === "asa" ? b.asa.push(f) : b.normal.push(f), h.props = f;
12389
12414
  }
12390
12415
  }), a.columnInfo = b;
12391
- let w = [...b.normal, ...b.mmp, ...b.asa];
12392
- e.tableName && (w = w.sort((y, P) => y.sort - P.sort), localStorage.setItem(l, JSON.stringify(w)));
12416
+ let z = [...b.normal, ...b.mmp, ...b.asa];
12417
+ e.tableName && (z = z.sort((h, P) => h.sort - P.sort), localStorage.setItem(l, JSON.stringify(z)));
12393
12418
  })();
12394
12419
  let c = [];
12395
- if (n.forEach((z) => {
12396
- window.$getType(z) !== "String" && z.props.visible && c.push(z);
12397
- }), (p = e.group) != null && p.label) {
12398
- const z = {
12420
+ if (n.forEach((v) => {
12421
+ window.$getType(v) !== "String" && v.props.visible && c.push(v);
12422
+ }), (w = e.group) != null && w.label) {
12423
+ const v = {
12399
12424
  label: "Group By " + e.group.label,
12400
12425
  // prop: props.group.value,
12401
12426
  width: e.group.width,
@@ -12405,13 +12430,13 @@ const Ln = oa({
12405
12430
  };
12406
12431
  c[0].props.type === "selection" ? c.splice(1, 0, {
12407
12432
  ...c[1],
12408
- props: z
12433
+ props: v
12409
12434
  }) : c.unshift({
12410
12435
  ...c[0],
12411
- props: z
12436
+ props: v
12412
12437
  });
12413
12438
  }
12414
- return c = c.sort((z, b) => z.props.sort - b.props.sort), () => c;
12439
+ return c = c.sort((v, b) => v.props.sort - b.props.sort), () => c;
12415
12440
  }
12416
12441
  }), Mt = { class: "hp100 flexMode" }, kt = { class: "w200 hp100 border-r fs14" }, Et = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Ot = { class: "p4" }, Pt = ["onClick"], xt = {
12417
12442
  class: "flexMode vs hp100",
@@ -12447,7 +12472,7 @@ const Ln = oa({
12447
12472
  },
12448
12473
  emits: "close",
12449
12474
  setup(e, { emit: o }) {
12450
- const a = e, l = Y({
12475
+ const a = e, l = q({
12451
12476
  loading: !1,
12452
12477
  type: "normal",
12453
12478
  columns: {
@@ -12462,43 +12487,43 @@ const Ln = oa({
12462
12487
  columnType: {},
12463
12488
  mounted: !1
12464
12489
  });
12465
- ne(() => {
12466
- r();
12490
+ ie(() => {
12491
+ i();
12467
12492
  });
12468
- const n = o, r = () => {
12493
+ const n = o, i = () => {
12469
12494
  n("mounted");
12470
- const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), E = {};
12495
+ const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), M = {};
12471
12496
  m.forEach((u) => {
12472
- u.type && (E[u.type] = !0), u.visible ? u.type === "selection" ? l.selection.push(u) : u.type === "operation" ? l.operation.push(u) : u.label && (u.fixed ? l.fixed.push(u) : l.visible.push(u)) : u.type === "mmp" ? l.columns.mmp.push(u) : u.type === "asa" ? l.columns.asa.push(u) : l.columns.normal.push(u);
12473
- }), l.columnType = E;
12497
+ u.type && (M[u.type] = !0), u.visible ? u.type === "selection" ? l.selection.push(u) : u.type === "operation" ? l.operation.push(u) : u.label && (u.fixed ? l.fixed.push(u) : l.visible.push(u)) : u.type === "mmp" ? l.columns.mmp.push(u) : u.type === "asa" ? l.columns.asa.push(u) : l.columns.normal.push(u);
12498
+ }), l.columnType = M;
12474
12499
  }, c = (m) => {
12475
12500
  l.type = m;
12476
- }, p = (m, E) => {
12477
- m.visible = !0, l.visible.unshift(m), m.type ? l.columns[m.type].splice(E, 1) : l.columns.normal.splice(E, 1);
12478
- }, z = (m, E) => {
12479
- l.fixed.unshift(m), l.visible.splice(E, 1);
12480
- }, b = (m, E) => {
12481
- l.visible.unshift(m), l.fixed.splice(E, 1);
12482
- }, s = (m, E) => {
12483
- l.visible.splice(E, 1), m.type ? l.columns[m.type].unshift(m) : l.columns.normal.unshift(m);
12484
- }, f = async () => {
12501
+ }, w = (m, M) => {
12502
+ m.visible = !0, l.visible.unshift(m), m.type ? l.columns[m.type].splice(M, 1) : l.columns.normal.splice(M, 1);
12503
+ }, v = (m, M) => {
12504
+ l.fixed.unshift(m), l.visible.splice(M, 1);
12505
+ }, b = (m, M) => {
12506
+ l.visible.unshift(m), l.fixed.splice(M, 1);
12507
+ }, s = (m, M) => {
12508
+ l.visible.splice(M, 1), m.type ? l.columns[m.type].unshift(m) : l.columns.normal.unshift(m);
12509
+ }, g = async () => {
12485
12510
  l.loading = !0, window.$pm(() => {
12486
- const { fixed: m, visible: E, columns: u, selection: T, operation: h } = l;
12487
- let S = [];
12488
- Object.keys(u).map((M) => {
12489
- S = S.concat(u[M]);
12490
- }), m.forEach((M) => M.fixed = "left"), S.forEach((M) => M.visible = !1);
12491
- const B = T.concat(m, E, S, h);
12492
- B.forEach((M, _) => M.sort = _), localStorage.setItem(`${a.tableName}_Column`, JSON.stringify(B)), l.loading = !1, n("close"), n("init-column");
12511
+ const { fixed: m, visible: M, columns: u, selection: S, operation: _ } = l;
12512
+ let y = [];
12513
+ Object.keys(u).map((T) => {
12514
+ y = y.concat(u[T]);
12515
+ }), m.forEach((T) => T.fixed = "left"), y.forEach((T) => T.visible = !1);
12516
+ const D = S.concat(m, M, y, _);
12517
+ D.forEach((T, O) => T.sort = O), localStorage.setItem(`${a.tableName}_Column`, JSON.stringify(D)), l.loading = !1, n("close"), n("init-column");
12493
12518
  });
12494
- }, w = () => {
12519
+ }, z = () => {
12495
12520
  l.loading = !0, localStorage.removeItem(`${a.tableName}_Column`), window.$pm(() => {
12496
12521
  l.loading = !1, n("close"), n("init-column");
12497
12522
  }, 4);
12498
- }, y = C(() => {
12523
+ }, h = C(() => {
12499
12524
  var m;
12500
12525
  return ((m = globalThis.$config.options) == null ? void 0 : m.drawerHeight) || 540;
12501
- }), P = C(() => (y.value * 0.3).toFixed(0)), D = C(() => (y.value * 0.7 - 10).toFixed(0)), v = C(() => [
12526
+ }), P = C(() => (h.value * 0.3).toFixed(0)), B = C(() => (h.value * 0.7 - 10).toFixed(0)), f = C(() => [
12502
12527
  {
12503
12528
  label: "Base Info",
12504
12529
  value: "normal"
@@ -12514,27 +12539,27 @@ const Ln = oa({
12514
12539
  hide: !l.columnType.mmp
12515
12540
  }
12516
12541
  ]);
12517
- return (m, E) => {
12518
- const u = R("el-scrollbar"), T = R("DrawerArea");
12519
- return A(), q(T, {
12542
+ return (m, M) => {
12543
+ const u = F("el-scrollbar"), S = F("DrawerArea");
12544
+ return A(), Q(S, {
12520
12545
  loading: t(l).loading,
12521
12546
  noscroll: "",
12522
12547
  "cancel-txt": "Reset",
12523
12548
  "cancel-icon": "im-sync",
12524
12549
  class: "MvcTableColumnConfig",
12525
- onCancel: w,
12526
- onSubmit: f
12550
+ onCancel: z,
12551
+ onSubmit: g
12527
12552
  }, {
12528
12553
  default: N(() => [
12529
12554
  d("div", Mt, [
12530
12555
  d("div", kt, [
12531
12556
  d("div", Et, x(m.$l("Column Type")), 1),
12532
12557
  d("div", Ot, [
12533
- (A(!0), O(ee, null, oe(t(v), (h) => (A(), O("div", {
12534
- key: h.value,
12535
- class: G(["typeItem p8-16 mb4 radius4 txt-nowrap", [t(l).type === h.value && "active", h.hide && "hide"]]),
12536
- onClick: (S) => c(h.value)
12537
- }, x(h.label), 11, Pt))), 128))
12558
+ (A(!0), E(ne, null, se(t(f), (_) => (A(), E("div", {
12559
+ key: _.value,
12560
+ class: G(["typeItem p8-16 mb4 radius4 txt-nowrap", [t(l).type === _.value && "active", _.hide && "hide"]]),
12561
+ onClick: (y) => c(_.value)
12562
+ }, x(_.label), 11, Pt))), 128))
12538
12563
  ])
12539
12564
  ]),
12540
12565
  d("div", xt, [
@@ -12546,18 +12571,18 @@ const Ln = oa({
12546
12571
  j(u, { style: { height: "calc(100% - 36px)" } }, {
12547
12572
  default: N(() => [
12548
12573
  d("div", jt, [
12549
- t(l).columns[t(l).type].length === 0 ? (A(), O("span", It, x(m.$l("No Columns")), 1)) : V("", !0),
12550
- (A(!0), O(ee, null, oe(t(l).columns[t(l).type], (h, S) => (A(), O("div", {
12551
- key: h.prop,
12574
+ t(l).columns[t(l).type].length === 0 ? (A(), E("span", It, x(m.$l("No Columns")), 1)) : V("", !0),
12575
+ (A(!0), E(ne, null, se(t(l).columns[t(l).type], (_, y) => (A(), E("div", {
12576
+ key: _.prop,
12552
12577
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
12553
12578
  }, [
12554
- d("span", null, x(m.$l(h.label)), 1),
12579
+ d("span", null, x(m.$l(_.label)), 1),
12555
12580
  d("div", Bt, [
12556
12581
  d("div", {
12557
12582
  class: "tipbtn left",
12558
12583
  txt: m.$l("Visible"),
12559
- onClick: (B) => p(h, S)
12560
- }, [...E[0] || (E[0] = [
12584
+ onClick: (D) => w(_, y)
12585
+ }, [...M[0] || (M[0] = [
12561
12586
  d("i", { class: "imicon im-plus fs16" }, null, -1)
12562
12587
  ])], 8, Dt)
12563
12588
  ])
@@ -12574,27 +12599,27 @@ const Ln = oa({
12574
12599
  ]),
12575
12600
  d("div", Vt, [
12576
12601
  d("div", Kt, [
12577
- t(l).fixed.length === 0 ? (A(), O("span", Ut, x(m.$l("No Fixed Columns")), 1)) : V("", !0),
12602
+ t(l).fixed.length === 0 ? (A(), E("span", Ut, x(m.$l("No Fixed Columns")), 1)) : V("", !0),
12578
12603
  j(u, { height: t(P) }, {
12579
12604
  default: N(() => [
12580
12605
  j(t(Ve), {
12581
12606
  list: t(l).fixed,
12582
- "item-key": (h) => h,
12607
+ "item-key": (_) => _,
12583
12608
  handle: ".im-handle",
12584
12609
  "ghost-class": "ghost"
12585
12610
  }, {
12586
- item: N(({ element: h, index: S }) => [
12611
+ item: N(({ element: _, index: y }) => [
12587
12612
  d("div", Ht, [
12588
12613
  d("div", Jt, [
12589
- E[1] || (E[1] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12590
- d("span", null, x(m.$l(h.label)), 1)
12614
+ M[1] || (M[1] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12615
+ d("span", null, x(m.$l(_.label)), 1)
12591
12616
  ]),
12592
12617
  d("div", Zt, [
12593
12618
  d("div", {
12594
12619
  class: "tipbtn red left",
12595
12620
  txt: m.$l("Unfixed"),
12596
- onClick: (B) => b(h, S)
12597
- }, [...E[2] || (E[2] = [
12621
+ onClick: (D) => b(_, y)
12622
+ }, [...M[2] || (M[2] = [
12598
12623
  d("i", { class: "imicon im-download1 fs14" }, null, -1)
12599
12624
  ])], 8, Yt)
12600
12625
  ])
@@ -12606,39 +12631,39 @@ const Ln = oa({
12606
12631
  _: 1
12607
12632
  }, 8, ["height"])
12608
12633
  ]),
12609
- E[6] || (E[6] = d("div", { class: "p4-0" }, [
12634
+ M[6] || (M[6] = d("div", { class: "p4-0" }, [
12610
12635
  d("div", { class: "border-t" })
12611
12636
  ], -1)),
12612
12637
  d("div", Wt, [
12613
- t(l).visible.length === 0 ? (A(), O("span", qt, x(m.$l("No Columns")), 1)) : V("", !0),
12614
- j(u, { height: t(D) }, {
12638
+ t(l).visible.length === 0 ? (A(), E("span", qt, x(m.$l("No Columns")), 1)) : V("", !0),
12639
+ j(u, { height: t(B) }, {
12615
12640
  default: N(() => [
12616
12641
  j(t(Ve), {
12617
12642
  list: t(l).visible,
12618
- "item-key": (h) => h,
12643
+ "item-key": (_) => _,
12619
12644
  options: { lockAxis: "y" },
12620
12645
  handle: ".im-handle",
12621
12646
  "ghost-class": "ghost"
12622
12647
  }, {
12623
- item: N(({ element: h, index: S }) => [
12648
+ item: N(({ element: _, index: y }) => [
12624
12649
  d("div", Xt, [
12625
12650
  d("div", Qt, [
12626
- E[3] || (E[3] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12627
- d("span", null, x(m.$l(h.label)), 1)
12651
+ M[3] || (M[3] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12652
+ d("span", null, x(m.$l(_.label)), 1)
12628
12653
  ]),
12629
12654
  d("div", er, [
12630
12655
  d("div", {
12631
12656
  class: "tipbtn left",
12632
12657
  txt: m.$l("Fixed"),
12633
- onClick: (B) => z(h, S)
12634
- }, [...E[4] || (E[4] = [
12658
+ onClick: (D) => v(_, y)
12659
+ }, [...M[4] || (M[4] = [
12635
12660
  d("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
12636
12661
  ])], 8, ar),
12637
12662
  d("div", {
12638
12663
  class: "tipbtn red left",
12639
12664
  txt: m.$l("Hide"),
12640
- onClick: (B) => s(h, S)
12641
- }, [...E[5] || (E[5] = [
12665
+ onClick: (D) => s(_, y)
12666
+ }, [...M[5] || (M[5] = [
12642
12667
  d("i", { class: "imicon im-close fs14" }, null, -1)
12643
12668
  ])], 8, lr)
12644
12669
  ])
@@ -12659,7 +12684,7 @@ const Ln = oa({
12659
12684
  }, 8, ["loading"]);
12660
12685
  };
12661
12686
  }
12662
- }), or = /* @__PURE__ */ Q(nr, [["__scopeId", "data-v-1927ce52"]]), tr = { class: "p16 border-b" }, rr = { class: "flexMode vc g8" }, ir = {
12687
+ }), or = /* @__PURE__ */ le(nr, [["__scopeId", "data-v-1927ce52"]]), tr = { class: "p16 border-b" }, rr = { class: "flexMode vc g8" }, ir = {
12663
12688
  key: 0,
12664
12689
  class: "flexMode vc g8"
12665
12690
  }, sr = { class: "flexMode g16 hr vc" }, cr = { class: "TheEnd p16" }, ur = { class: "sticky flexMode vc hb p4-8 mt16 mb8 fs14 txt-dark9 z9 backdrop border-l4-primary bg-gray3 radius4" }, dr = { class: "fw700" }, mr = { class: "flexMode vc g8" }, br = /* @__PURE__ */ Object.assign({
@@ -12683,7 +12708,7 @@ const Ln = oa({
12683
12708
  },
12684
12709
  emits: ["mounted"],
12685
12710
  setup(e, { emit: o }) {
12686
- const a = e, l = Y({
12711
+ const a = e, l = q({
12687
12712
  loading: !1,
12688
12713
  columns: [],
12689
12714
  checked: [],
@@ -12691,89 +12716,89 @@ const Ln = oa({
12691
12716
  onlySelection: !1,
12692
12717
  mounted: !1
12693
12718
  });
12694
- ne(() => {
12695
- r();
12719
+ ie(() => {
12720
+ i();
12696
12721
  });
12697
- const n = o, r = () => {
12698
- n("mounted"), c(), p();
12722
+ const n = o, i = () => {
12723
+ n("mounted"), c(), w();
12699
12724
  }, c = () => {
12700
- const v = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), m = ["selection", "operation"];
12701
- l.columns = v.filter((E) => !m.includes(E.type) && E.label);
12702
- }, p = () => {
12725
+ const f = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), m = ["selection", "operation"];
12726
+ l.columns = f.filter((M) => !m.includes(M.type) && M.label);
12727
+ }, w = () => {
12703
12728
  a.selection.length && (l.onlySelection = !0);
12704
- }, z = (v, m) => {
12705
- v ? m.children.forEach((E) => {
12706
- E.visible = !0;
12707
- }) : m.children.forEach((E) => {
12708
- E.visible = !1;
12729
+ }, v = (f, m) => {
12730
+ f ? m.children.forEach((M) => {
12731
+ M.visible = !0;
12732
+ }) : m.children.forEach((M) => {
12733
+ M.visible = !1;
12709
12734
  });
12710
12735
  }, b = () => {
12711
- window.$copy(f());
12736
+ window.$copy(g());
12712
12737
  }, s = async () => {
12713
12738
  l.loading = !0;
12714
12739
  try {
12715
- const v = f("download");
12716
- let m = l.fileName || w.value;
12717
- m && !m.toLowerCase().endsWith(".csv") && (m = `${m}.csv`), await Ga({ content: v, filename: m, bom: !0 });
12740
+ const f = g("download");
12741
+ let m = l.fileName || z.value;
12742
+ m && !m.toLowerCase().endsWith(".csv") && (m = `${m}.csv`), await Ga({ content: f, filename: m, bom: !0 });
12718
12743
  } finally {
12719
12744
  l.loading = !1;
12720
12745
  }
12721
- }, f = (v) => {
12722
- const m = l.onlySelection ? a.selection : a.list, E = {}, u = [];
12723
- l.columns.filter((_) => _.visible).forEach((_) => {
12724
- u.push(window.$l(_.label)), E[_.prop] = !0;
12746
+ }, g = (f) => {
12747
+ const m = l.onlySelection ? a.selection : a.list, M = {}, u = [];
12748
+ l.columns.filter((O) => O.visible).forEach((O) => {
12749
+ u.push(window.$l(O.label)), M[O.prop] = !0;
12725
12750
  });
12726
- let T = "", h = [], S = v === "download" ? "," : " ";
12727
- (l.useHead || v) && (T = u.join(S) + `
12751
+ let S = "", _ = [], y = f === "download" ? "," : " ";
12752
+ (l.useHead || f) && (S = u.join(y) + `
12728
12753
  `);
12729
- let B = [], M;
12730
- return Object.keys(E).forEach((_, k) => {
12731
- _.includes("country") && (M = k);
12754
+ let D = [], T;
12755
+ return Object.keys(M).forEach((O, k) => {
12756
+ O.includes("country") && (T = k);
12732
12757
  const L = [];
12733
- m.forEach((F) => {
12734
- F[_] !== void 0 && L.push(F[_]);
12735
- }), B.push(L);
12736
- }), B.forEach((_, k) => {
12737
- !l.useCountryCode && M === k ? _.forEach((L, F) => {
12738
- let U = L;
12739
- window.$getType(L) === "Array" ? U = L.map((re) => D[re.toUpperCase()].label.$l()).join(",") : window.$getType(L) === "String" ? U = L.split(",").map((re) => D[re.toUpperCase()].label.$l()).join(",") : U = JSON.stringify(L), h[F] ? h[F] += U + S : h[F] = U + S;
12740
- }) : _.forEach((L, F) => {
12741
- h[F] ? h[F] += L + S : h[F] = L + S;
12758
+ m.forEach((K) => {
12759
+ K[O] !== void 0 && L.push(K[O]);
12760
+ }), D.push(L);
12761
+ }), D.forEach((O, k) => {
12762
+ !l.useCountryCode && T === k ? O.forEach((L, K) => {
12763
+ let J = L;
12764
+ window.$getType(L) === "Array" ? J = L.map((R) => B[R.toUpperCase()].label.$l()).join(",") : window.$getType(L) === "String" ? J = L.split(",").map((R) => B[R.toUpperCase()].label.$l()).join(",") : J = JSON.stringify(L), _[K] ? _[K] += J + y : _[K] = J + y;
12765
+ }) : O.forEach((L, K) => {
12766
+ _[K] ? _[K] += L + y : _[K] = L + y;
12742
12767
  });
12743
- }), `${T}${h.join(`
12768
+ }), `${S}${_.join(`
12744
12769
  `)}`;
12745
- }, w = C(() => {
12746
- const v = window.$d().format("YYYYMMDDHHmmss");
12747
- return `${a.tableName}_${v}`;
12748
- }), y = C(() => {
12749
- const v = {};
12770
+ }, z = C(() => {
12771
+ const f = window.$d().format("YYYYMMDDHHmmss");
12772
+ return `${a.tableName}_${f}`;
12773
+ }), h = C(() => {
12774
+ const f = {};
12750
12775
  return l.columns.forEach((m) => {
12751
- const E = m.type ? m.type : "normal", u = {
12752
- label: P[E],
12753
- type: E,
12776
+ const M = m.type ? m.type : "normal", u = {
12777
+ label: P[M],
12778
+ type: M,
12754
12779
  visible: 0
12755
12780
  };
12756
- v[E] ? (v[E].children.push(m), m.visible && v[E].visible++) : (u.children = [m], m.visible && u.visible++, v[E] = u);
12757
- }), Object.keys(v).forEach((m) => {
12758
- const E = v[m].visible === v[m].children.length, u = v[m].visible === 0;
12759
- E ? (v[m].checkstatus = !0, v[m].indeterminate = !1) : u ? (v[m].checkstatus = !1, v[m].indeterminate = !1) : (v[m].checkstatus = !1, v[m].indeterminate = !0);
12760
- }), v;
12781
+ f[M] ? (f[M].children.push(m), m.visible && f[M].visible++) : (u.children = [m], m.visible && u.visible++, f[M] = u);
12782
+ }), Object.keys(f).forEach((m) => {
12783
+ const M = f[m].visible === f[m].children.length, u = f[m].visible === 0;
12784
+ M ? (f[m].checkstatus = !0, f[m].indeterminate = !1) : u ? (f[m].checkstatus = !1, f[m].indeterminate = !1) : (f[m].checkstatus = !1, f[m].indeterminate = !0);
12785
+ }), f;
12761
12786
  }), P = {
12762
12787
  asa: "Asa Metrics",
12763
12788
  normal: "Base Info",
12764
12789
  mmp: "MMP Metrics"
12765
12790
  };
12766
12791
  "Check All".$l(), "Cancel All".$l();
12767
- const D = Be("asa.countryAll.obj");
12768
- return (v, m) => {
12769
- const E = R("el-checkbox"), u = R("el-button"), T = R("MvcAlert"), h = R("el-switch"), S = R("Input"), B = R("DrawerArea");
12770
- return A(), q(B, ae(v.$attrs, { class: "MvcTableColumnDownload" }), {
12792
+ const B = Be("asa.countryAll.obj");
12793
+ return (f, m) => {
12794
+ const M = F("el-checkbox"), u = F("el-button"), S = F("MvcAlert"), _ = F("el-switch"), y = F("Input"), D = F("DrawerArea");
12795
+ return A(), Q(D, oe(f.$attrs, { class: "MvcTableColumnDownload" }), {
12771
12796
  cancel: N(() => [
12772
- j(S, {
12797
+ j(y, {
12773
12798
  modelValue: t(l).fileName,
12774
- "onUpdate:modelValue": m[3] || (m[3] = (M) => t(l).fileName = M),
12799
+ "onUpdate:modelValue": m[3] || (m[3] = (T) => t(l).fileName = T),
12775
12800
  icon: "catalog",
12776
- placeholder: t(w),
12801
+ placeholder: t(z),
12777
12802
  class: "w600"
12778
12803
  }, {
12779
12804
  append: N(() => [
@@ -12785,7 +12810,7 @@ const Ln = oa({
12785
12810
  d("i", { class: "imicon im-download1" }, null, -1)
12786
12811
  ])]),
12787
12812
  default: N(() => [
12788
- le(" " + x(v.$l("Download")), 1)
12813
+ te(" " + x(f.$l("Download")), 1)
12789
12814
  ]),
12790
12815
  _: 1
12791
12816
  }, 8, ["loading"])
@@ -12796,19 +12821,19 @@ const Ln = oa({
12796
12821
  submit: N(() => [...m[6] || (m[6] = [])]),
12797
12822
  default: N(() => [
12798
12823
  d("div", tr, [
12799
- j(T, null, {
12824
+ j(S, null, {
12800
12825
  default: N(() => [
12801
12826
  d("div", rr, [
12802
- d("span", null, x(v.$l("Total")), 1),
12827
+ d("span", null, x(f.$l("Total")), 1),
12803
12828
  d("span", null, x(a.list.length), 1)
12804
12829
  ]),
12805
- a.selection.length ? (A(), O("div", ir, [
12806
- d("span", null, x(v.$l("Selection")), 1),
12830
+ a.selection.length ? (A(), E("div", ir, [
12831
+ d("span", null, x(f.$l("Selection")), 1),
12807
12832
  d("span", null, x(a.selection.length), 1),
12808
- j(E, {
12833
+ j(M, {
12809
12834
  modelValue: t(l).onlySelection,
12810
- "onUpdate:modelValue": m[0] || (m[0] = (M) => t(l).onlySelection = M),
12811
- label: v.$l("Only Selection")
12835
+ "onUpdate:modelValue": m[0] || (m[0] = (T) => t(l).onlySelection = T),
12836
+ label: f.$l("Only Selection")
12812
12837
  }, null, 8, ["modelValue", "label"])
12813
12838
  ])) : V("", !0),
12814
12839
  d("div", sr, [
@@ -12817,14 +12842,14 @@ const Ln = oa({
12817
12842
  d("i", { class: "imicon im-copy" }, null, -1)
12818
12843
  ])]),
12819
12844
  default: N(() => [
12820
- le(" " + x(v.$l("Copy to Clipboard")), 1)
12845
+ te(" " + x(f.$l("Copy to Clipboard")), 1)
12821
12846
  ]),
12822
12847
  _: 1
12823
12848
  }),
12824
- j(E, {
12849
+ j(M, {
12825
12850
  modelValue: t(l).useHead,
12826
- "onUpdate:modelValue": m[1] || (m[1] = (M) => t(l).useHead = M),
12827
- label: v.$l("With Table Head")
12851
+ "onUpdate:modelValue": m[1] || (m[1] = (T) => t(l).useHead = T),
12852
+ label: f.$l("With Table Head")
12828
12853
  }, null, 8, ["modelValue", "label"])
12829
12854
  ])
12830
12855
  ]),
@@ -12832,36 +12857,36 @@ const Ln = oa({
12832
12857
  })
12833
12858
  ]),
12834
12859
  d("div", cr, [
12835
- (A(!0), O(ee, null, oe(t(y), (M) => (A(), O("div", {
12836
- key: M.type
12860
+ (A(!0), E(ne, null, se(t(h), (T) => (A(), E("div", {
12861
+ key: T.type
12837
12862
  }, [
12838
12863
  d("div", ur, [
12839
- d("span", dr, x(M.label), 1),
12840
- j(E, {
12841
- modelValue: M.checkstatus,
12842
- "onUpdate:modelValue": (_) => M.checkstatus = _,
12843
- indeterminate: M.indeterminate,
12844
- label: v.$l("Check"),
12845
- onChange: (_) => z(_, M)
12864
+ d("span", dr, x(T.label), 1),
12865
+ j(M, {
12866
+ modelValue: T.checkstatus,
12867
+ "onUpdate:modelValue": (O) => T.checkstatus = O,
12868
+ indeterminate: T.indeterminate,
12869
+ label: f.$l("Check"),
12870
+ onChange: (O) => v(O, T)
12846
12871
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
12847
12872
  ]),
12848
- (A(!0), O(ee, null, oe(M.children, (_, k) => (A(), q(E, {
12849
- modelValue: _.visible,
12850
- "onUpdate:modelValue": (L) => _.visible = L,
12873
+ (A(!0), E(ne, null, se(T.children, (O, k) => (A(), Q(M, {
12874
+ modelValue: O.visible,
12875
+ "onUpdate:modelValue": (L) => O.visible = L,
12851
12876
  key: k,
12852
- label: _.label,
12853
- value: _.value,
12877
+ label: O.label,
12878
+ value: O.value,
12854
12879
  class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
12855
12880
  }, {
12856
12881
  default: N(() => {
12857
12882
  var L;
12858
12883
  return [
12859
12884
  d("div", mr, [
12860
- d("span", null, x(_.label), 1),
12861
- (L = _.prop) != null && L.includes("country") ? (A(), q(h, {
12885
+ d("span", null, x(O.label), 1),
12886
+ (L = O.prop) != null && L.includes("country") ? (A(), Q(_, {
12862
12887
  key: 0,
12863
12888
  modelValue: t(l).useCountryCode,
12864
- "onUpdate:modelValue": m[2] || (m[2] = (F) => t(l).useCountryCode = F),
12889
+ "onUpdate:modelValue": m[2] || (m[2] = (K) => t(l).useCountryCode = K),
12865
12890
  "inline-prompt": "",
12866
12891
  "active-text": "Use Alpha-2 Code",
12867
12892
  "inactive-text": "Use Country Name",
@@ -12971,10 +12996,10 @@ const Ln = oa({
12971
12996
  },
12972
12997
  emits: ["selection-change", "refresh"],
12973
12998
  setup(e, { expose: o, emit: a }) {
12974
- const l = e, n = Y({
12999
+ const l = e, n = q({
12975
13000
  loading: !0,
12976
13001
  selection: []
12977
- }), r = Y({
13002
+ }), i = q({
12978
13003
  list: [],
12979
13004
  total: 0,
12980
13005
  page: 1,
@@ -12983,7 +13008,7 @@ const Ln = oa({
12983
13008
  summaryType: "remote",
12984
13009
  nopagination: !1,
12985
13010
  params: {}
12986
- }), c = Y({
13011
+ }), c = q({
12987
13012
  tabelKey: 0,
12988
13013
  current: "",
12989
13014
  list: [
@@ -12997,147 +13022,147 @@ const Ln = oa({
12997
13022
  cpt: Ae(br)
12998
13023
  }
12999
13024
  ]
13000
- }), p = W(null), { proxy: z } = ce();
13025
+ }), w = X(null), { proxy: v } = ue();
13001
13026
  Da(() => {
13002
13027
  s();
13003
- }), ne(() => {
13004
- f();
13028
+ }), ie(() => {
13029
+ g();
13005
13030
  });
13006
13031
  const b = a, s = () => {
13007
- n.loading = l.defaultLoading, l.pageSize && (r.pageSize = l.pageSize);
13008
- }, f = () => {
13009
- M(), l.defer === !1 && y();
13010
- }, w = (i) => {
13011
- y(i);
13012
- }, y = async (i = {}) => {
13013
- var H, Z;
13014
- if (i.refresh && n.loading)
13032
+ n.loading = l.defaultLoading, l.pageSize && (i.pageSize = l.pageSize);
13033
+ }, g = () => {
13034
+ T(), l.defer === !1 && h();
13035
+ }, z = (r) => {
13036
+ h(r);
13037
+ }, h = async (r = {}) => {
13038
+ var H, Y;
13039
+ if (r.refresh && n.loading)
13015
13040
  return;
13016
13041
  n.loading = !0;
13017
- const g = {
13018
- pageSize: i.pageSize || r.pageSize,
13019
- pageStart: i.pageStart || r.page
13042
+ const p = {
13043
+ pageSize: r.pageSize || i.pageSize,
13044
+ pageStart: r.pageStart || i.page
13020
13045
  };
13021
- i.refresh && (g.remote = !0);
13022
- const { list: I = [], total: $, summary: K } = await l.loadData(g) || {};
13023
- r.list = I.map((X, Oa) => (X.index = Oa, X)), $ === void 0 ? (r.total = r.list.length, r.nopagination = !0) : (r.total = $, r.nopagination = !1), (Z = (H = globalThis.$config) == null ? void 0 : H.table) != null && Z.scrollToTop && v(), P(K), n.loading = !1;
13024
- }, P = (i) => {
13025
- i ? r.summary = i : r.summary = !1;
13026
- }, D = (i) => {
13027
- if (r.summaryType === "locale")
13046
+ r.refresh && (p.remote = !0);
13047
+ const { list: I = [], total: $, summary: U } = await l.loadData(p) || {};
13048
+ i.list = I.map((ae, Oa) => (ae.index = Oa, ae)), $ === void 0 ? (i.total = i.list.length, i.nopagination = !0) : (i.total = $, i.nopagination = !1), (Y = (H = globalThis.$config) == null ? void 0 : H.table) != null && Y.scrollToTop && f(), P(U), n.loading = !1;
13049
+ }, P = (r) => {
13050
+ r ? i.summary = r : i.summary = !1;
13051
+ }, B = (r) => {
13052
+ if (i.summaryType === "locale")
13028
13053
  return [];
13029
- if (r.summaryType === "remote") {
13030
- const g = ($, K) => {
13054
+ if (i.summaryType === "remote") {
13055
+ const p = ($, U) => {
13031
13056
  if ($ != null)
13032
- return typeof $ == "function" ? $(K) : $[K];
13057
+ return typeof $ == "function" ? $(U) : $[U];
13033
13058
  }, I = ($) => {
13034
- var H, Z;
13035
- const K = g(l.summaryMetric, $);
13036
- return K !== void 0 ? K : g((Z = (H = globalThis.$config) == null ? void 0 : H.table) == null ? void 0 : Z.summaryMetric, $);
13059
+ var H, Y;
13060
+ const U = p(l.summaryMetric, $);
13061
+ return U !== void 0 ? U : p((Y = (H = globalThis.$config) == null ? void 0 : H.table) == null ? void 0 : Y.summaryMetric, $);
13037
13062
  };
13038
- return Va(i, r.summary, { resolveMetric: I });
13063
+ return Va(r, i.summary, { resolveMetric: I });
13039
13064
  }
13040
13065
  return [];
13041
- }, v = () => {
13042
- p.value.$refs.scrollBarRef.setScrollTop(0);
13066
+ }, f = () => {
13067
+ w.value.$refs.scrollBarRef.setScrollTop(0);
13043
13068
  }, m = () => {
13044
- y({
13069
+ h({
13045
13070
  pageStart: 1
13046
13071
  });
13047
- }, E = () => {
13048
- y();
13049
- }, u = (i) => {
13050
- if (n.selection = i, b("selection-change", i), n.shiftKey) {
13051
- const g = i[i.length - 2], I = i[i.length - 1], $ = r.list.filter1((X) => X.id === g.id).index || 0, K = r.list.filter1((X) => X.id === I.id).index;
13052
- let H = $, Z = K;
13053
- $ > K && (H = K, Z = $);
13054
- for (let X = H; X <= Z; X++)
13055
- z.$refs.body.toggleRowSelection(r.list[X], !0);
13072
+ }, M = () => {
13073
+ h();
13074
+ }, u = (r) => {
13075
+ if (n.selection = r, b("selection-change", r), n.shiftKey) {
13076
+ const p = r[r.length - 2], I = r[r.length - 1], $ = i.list.filter1((ae) => ae.id === p.id).index || 0, U = i.list.filter1((ae) => ae.id === I.id).index;
13077
+ let H = $, Y = U;
13078
+ $ > U && (H = U, Y = $);
13079
+ for (let ae = H; ae <= Y; ae++)
13080
+ v.$refs.body.toggleRowSelection(i.list[ae], !0);
13056
13081
  }
13057
- }, T = () => {
13058
- n.loading || (y({ refresh: !0 }), b("refresh"));
13059
- }, h = () => {
13060
- c.current = 0;
13061
13082
  }, S = () => {
13083
+ n.loading || (h({ refresh: !0 }), b("refresh"));
13084
+ }, _ = () => {
13085
+ c.current = 0;
13086
+ }, y = () => {
13062
13087
  c.current = 1;
13063
- }, B = () => {
13088
+ }, D = () => {
13064
13089
  n.tableKey++;
13065
- }, M = () => {
13066
- document.addEventListener("keydown", _), document.addEventListener("keyup", k);
13067
- }, _ = (i) => {
13068
- i.keyCode === 16 && (n.shiftKey = !0);
13069
- }, k = (i) => {
13070
- i.keyCode === 16 && (n.shiftKey = !1);
13090
+ }, T = () => {
13091
+ document.addEventListener("keydown", O), document.addEventListener("keyup", k);
13092
+ }, O = (r) => {
13093
+ r.keyCode === 16 && (n.shiftKey = !0);
13094
+ }, k = (r) => {
13095
+ r.keyCode === 16 && (n.shiftKey = !1);
13071
13096
  }, L = () => {
13072
- document.removeEventListener("keydown", _), document.removeEventListener("keyup", k);
13073
- }, F = ({ i, row: g }) => {
13074
- r.list[i] = g;
13075
- }, U = C(() => {
13076
- var g;
13077
- let i = l.height || ((g = globalThis.$config.options) == null ? void 0 : g.pageHeight) || 640;
13078
- return l.noheader === !1 && (i -= 64), l.nofooter === !1 && (i -= 56), i -= l.minusHeight, i;
13079
- }), re = C(() => !!r.summary), ve = C(() => r.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), se = C(() => {
13097
+ document.removeEventListener("keydown", O), document.removeEventListener("keyup", k);
13098
+ }, K = ({ i: r, row: p }) => {
13099
+ i.list[r] = p;
13100
+ }, J = C(() => {
13101
+ var p;
13102
+ let r = l.height || ((p = globalThis.$config.options) == null ? void 0 : p.pageHeight) || 640;
13103
+ return l.noheader === !1 && (r -= 64), l.nofooter === !1 && (r -= 56), r -= l.minusHeight, r;
13104
+ }), R = C(() => !!i.summary), W = C(() => i.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), ee = C(() => {
13080
13105
  if (l.tool) {
13081
- const { column: i = !0, download: g = !0, refresh: I = !0 } = l.tool;
13106
+ const { column: r = !0, download: p = !0, refresh: I = !0 } = l.tool;
13082
13107
  return {
13083
- column: i,
13084
- download: g,
13108
+ column: r,
13109
+ download: p,
13085
13110
  refresh: I
13086
13111
  };
13087
13112
  } else
13088
13113
  return !1;
13089
13114
  });
13090
- return de(() => {
13115
+ return be(() => {
13091
13116
  L();
13092
13117
  }), o({
13093
- initTable: w,
13094
- editRow: F
13095
- }), (i, g) => {
13096
- const I = R("el-button"), $ = R("Loading"), K = R("el-table"), H = R("el-pagination"), Z = R("Drawer");
13097
- return A(), O("div", vr, [
13098
- l.noheader === !1 ? (A(), O("div", {
13118
+ initTable: z,
13119
+ editRow: K
13120
+ }), (r, p) => {
13121
+ const I = F("el-button"), $ = F("Loading"), U = F("el-table"), H = F("el-pagination"), Y = F("Drawer");
13122
+ return A(), E("div", vr, [
13123
+ l.noheader === !1 ? (A(), E("div", {
13099
13124
  key: 0,
13100
13125
  class: G(["flexMode hb g12 p16 bg-white", l.autoHeader ? "minh64" : "h64"])
13101
13126
  }, [
13102
13127
  d("div", {
13103
13128
  class: G(["flexMode vc flexGrow maxwp100", l.headerClass])
13104
13129
  }, [
13105
- J(i.$slots, "header", {}, void 0, !0)
13130
+ Z(r.$slots, "header", {}, void 0, !0)
13106
13131
  ], 2),
13107
- t(se) ? (A(), O("div", pr, [
13108
- t(se).refresh ? (A(), q(I, {
13132
+ t(ee) ? (A(), E("div", pr, [
13133
+ t(ee).refresh ? (A(), Q(I, {
13109
13134
  key: 0,
13110
- onClick: T
13135
+ onClick: S
13111
13136
  }, {
13112
- icon: N(() => [...g[2] || (g[2] = [
13137
+ icon: N(() => [...p[2] || (p[2] = [
13113
13138
  d("i", { class: "imicon im-reload" }, null, -1)
13114
13139
  ])]),
13115
13140
  default: N(() => [
13116
- le(" " + x(i.$l("Refresh")), 1)
13141
+ te(" " + x(r.$l("Refresh")), 1)
13117
13142
  ]),
13118
13143
  _: 1
13119
13144
  })) : V("", !0),
13120
- t(se).column ? (A(), q(I, {
13145
+ t(ee).column ? (A(), Q(I, {
13121
13146
  key: 1,
13122
- onClick: h
13147
+ onClick: _
13123
13148
  }, {
13124
- icon: N(() => [...g[3] || (g[3] = [
13149
+ icon: N(() => [...p[3] || (p[3] = [
13125
13150
  d("i", { class: "imicon im-layout" }, null, -1)
13126
13151
  ])]),
13127
13152
  default: N(() => [
13128
- le(" " + x(i.$l("Columns")), 1)
13153
+ te(" " + x(r.$l("Columns")), 1)
13129
13154
  ]),
13130
13155
  _: 1
13131
13156
  })) : V("", !0),
13132
- t(se).download ? (A(), q(I, {
13157
+ t(ee).download ? (A(), Q(I, {
13133
13158
  key: 2,
13134
- onClick: S
13159
+ onClick: y
13135
13160
  }, {
13136
- icon: N(() => [...g[4] || (g[4] = [
13161
+ icon: N(() => [...p[4] || (p[4] = [
13137
13162
  d("i", { class: "imicon im-download" }, null, -1)
13138
13163
  ])]),
13139
13164
  default: N(() => [
13140
- le(" " + x(i.$l("Download")), 1)
13165
+ te(" " + x(r.$l("Download")), 1)
13141
13166
  ]),
13142
13167
  _: 1
13143
13168
  })) : V("", !0)
@@ -13147,28 +13172,28 @@ const Ln = oa({
13147
13172
  j($, {
13148
13173
  loading: t(n).loading
13149
13174
  }, null, 8, ["loading"]),
13150
- (A(), q(K, {
13175
+ (A(), Q(U, {
13151
13176
  ref_key: "body",
13152
- ref: p,
13177
+ ref: w,
13153
13178
  key: t(n).tableKey,
13154
- height: t(U),
13155
- data: t(r).list,
13179
+ height: t(J),
13180
+ data: t(i).list,
13156
13181
  "default-expand-all": l.defaultExpandAll,
13157
13182
  "row-key": l.rowKey,
13158
13183
  stripe: "",
13159
13184
  border: "",
13160
- "show-summary": t(re),
13161
- "summary-method": D,
13185
+ "show-summary": t(R),
13186
+ "summary-method": B,
13162
13187
  class: "MainTable",
13163
13188
  onSelectionChange: u
13164
13189
  }, {
13165
13190
  default: N(() => [
13166
- j(t(Ct), ae({
13191
+ j(t(Ct), oe({
13167
13192
  "table-name": l.tableName,
13168
- column: t(se) ? t(se).column : !1
13169
- }, i.$attrs), {
13193
+ column: t(ee) ? t(ee).column : !1
13194
+ }, r.$attrs), {
13170
13195
  default: N(() => [
13171
- J(i.$slots, "default", {}, void 0, !0)
13196
+ Z(r.$slots, "default", {}, void 0, !0)
13172
13197
  ]),
13173
13198
  _: 3
13174
13199
  }, 16, ["table-name", "column"])
@@ -13176,34 +13201,34 @@ const Ln = oa({
13176
13201
  _: 3
13177
13202
  }, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
13178
13203
  ]),
13179
- l.nofooter === !1 ? (A(), O("div", hr, [
13204
+ l.nofooter === !1 ? (A(), E("div", hr, [
13180
13205
  j(H, {
13181
- "current-page": t(r).page,
13182
- "onUpdate:currentPage": g[0] || (g[0] = (X) => t(r).page = X),
13206
+ "current-page": t(i).page,
13207
+ "onUpdate:currentPage": p[0] || (p[0] = (ae) => t(i).page = ae),
13183
13208
  background: "",
13184
- total: t(r).total,
13185
- "default-page-size": t(r).pageSize,
13209
+ total: t(i).total,
13210
+ "default-page-size": t(i).pageSize,
13186
13211
  "page-sizes": l.pageSizes,
13187
13212
  "pager-count": 5,
13188
- layout: t(ve),
13213
+ layout: t(W),
13189
13214
  class: "wp100",
13190
13215
  onSizeChange: m,
13191
- onCurrentChange: E
13216
+ onCurrentChange: M
13192
13217
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
13193
13218
  ])) : V("", !0),
13194
- j(Z, {
13219
+ j(Y, {
13195
13220
  current: t(c).current,
13196
- "onUpdate:current": g[1] || (g[1] = (X) => t(c).current = X),
13221
+ "onUpdate:current": p[1] || (p[1] = (ae) => t(c).current = ae),
13197
13222
  "table-name": l.tableName,
13198
13223
  drawer: t(c).list,
13199
- list: t(r).list,
13224
+ list: t(i).list,
13200
13225
  selection: t(n).selection,
13201
- onInitColumn: B
13226
+ onInitColumn: D
13202
13227
  }, null, 8, ["current", "table-name", "drawer", "list", "selection"])
13203
13228
  ]);
13204
13229
  };
13205
13230
  }
13206
- }), gr = /* @__PURE__ */ Q(_r, [["__scopeId", "data-v-f79bf58d"]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13231
+ }), gr = /* @__PURE__ */ le(_r, [["__scopeId", "data-v-f79bf58d"]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13207
13232
  __proto__: null,
13208
13233
  default: gr
13209
13234
  }, Symbol.toStringTag, { value: "Module" })), Ar = { class: "minh480 pt16" }, zr = /* @__PURE__ */ Object.assign({
@@ -13253,24 +13278,24 @@ const Ln = oa({
13253
13278
  },
13254
13279
  emits: ["update:modelValue", "change"],
13255
13280
  setup(e, { emit: o }) {
13256
- const a = e, l = o, n = be(), r = (s) => s == null ? s : ["Object", "Array"].includes(globalThis.$getType(s)) ? s[a.valueKey] : s, c = (s) => {
13281
+ const a = e, l = o, n = ve(), i = (s) => s == null ? s : ["Object", "Array"].includes(globalThis.$getType(s)) ? s[a.valueKey] : s, c = (s) => {
13257
13282
  l("update:modelValue", s);
13258
- const f = a.options.find((w) => r(w) === s);
13259
- l("change", s, f);
13260
- }, p = C(
13261
- () => a.options.find((s) => r(s) === a.modelValue)
13262
- ), z = C(() => {
13263
- const s = p.value;
13283
+ const g = a.options.find((z) => i(z) === s);
13284
+ l("change", s, g);
13285
+ }, w = C(
13286
+ () => a.options.find((s) => i(s) === a.modelValue)
13287
+ ), v = C(() => {
13288
+ const s = w.value;
13264
13289
  if (!(!s || !["Object", "Array"].includes(globalThis.$getType(s))))
13265
13290
  return s[a.componentKey];
13266
13291
  }), b = C(() => {
13267
- const s = p.value;
13292
+ const s = w.value;
13268
13293
  return !s || !["Object", "Array"].includes(globalThis.$getType(s)) ? {} : s[a.panePropsKey] ?? {};
13269
13294
  });
13270
- return (s, f) => {
13271
- const w = R("BtnGroup");
13272
- return A(), O("div", ae({ class: "MvcTabs" }, t(n)), [
13273
- j(w, {
13295
+ return (s, g) => {
13296
+ const z = F("BtnGroup");
13297
+ return A(), E("div", oe({ class: "MvcTabs" }, t(n)), [
13298
+ j(z, {
13274
13299
  "model-value": a.modelValue,
13275
13300
  options: a.options,
13276
13301
  "value-key": a.valueKey,
@@ -13281,7 +13306,7 @@ const Ln = oa({
13281
13306
  "onUpdate:modelValue": c
13282
13307
  }, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
13283
13308
  d("div", Ar, [
13284
- t(z) ? (A(), q(na(t(z)), we(ae({ key: 0 }, t(b))), null, 16)) : V("", !0)
13309
+ t(v) ? (A(), Q(na(t(v)), we(oe({ key: 0 }, t(b))), null, 16)) : V("", !0)
13285
13310
  ])
13286
13311
  ], 16);
13287
13312
  };
@@ -13337,95 +13362,95 @@ const Ln = oa({
13337
13362
  "focus"
13338
13363
  ],
13339
13364
  setup(e, { emit: o }) {
13340
- const a = e, l = be(), n = W(null);
13341
- let r = null;
13342
- const c = Y({
13365
+ const a = e, l = ve(), n = X(null);
13366
+ let i = null;
13367
+ const c = q({
13343
13368
  val: "",
13344
13369
  isComposing: !1,
13345
13370
  focused: !1
13346
- }), p = o, { proxy: z } = ce(), b = C(() => {
13371
+ }), w = o, { proxy: v } = ue(), b = C(() => {
13347
13372
  const { class: k, ...L } = l;
13348
13373
  return L;
13349
13374
  });
13350
- ne(() => {
13351
- var L, F;
13375
+ ie(() => {
13376
+ var L, K;
13352
13377
  const k = (L = n.value) == null ? void 0 : L.$el;
13353
- r = (F = k == null ? void 0 : k.querySelector) == null ? void 0 : F.call(k, "textarea"), r && (r.addEventListener("compositionstart", s), r.addEventListener("compositionend", f));
13378
+ i = (K = k == null ? void 0 : k.querySelector) == null ? void 0 : K.call(k, "textarea"), i && (i.addEventListener("compositionstart", s), i.addEventListener("compositionend", g));
13354
13379
  });
13355
13380
  const s = () => {
13356
13381
  c.isComposing = !0;
13357
- }, f = () => {
13358
- c.isComposing = !1, me(() => m(c.val));
13359
- }, w = (k) => {
13382
+ }, g = () => {
13383
+ c.isComposing = !1, de(() => m(c.val));
13384
+ }, z = (k) => {
13360
13385
  c.isComposing || m(k);
13361
- }, y = (k) => {
13362
- c.focused = !0, p("focus", k);
13386
+ }, h = (k) => {
13387
+ c.focused = !0, w("focus", k);
13363
13388
  }, P = (k) => {
13364
- c.focused = !1, p("blur", k);
13365
- }, D = (k) => {
13389
+ c.focused = !1, w("blur", k);
13390
+ }, B = (k) => {
13366
13391
  const L = String(k ?? "").split(/\r?\n/);
13367
13392
  return a.output === "array" ? L : L.join(",");
13368
- }, v = (k) => Array.isArray(k) ? k.join(`
13393
+ }, f = (k) => Array.isArray(k) ? k.join(`
13369
13394
  `) : String(k ?? "").replace(/,/g, `
13370
13395
  `), m = (k) => {
13371
- const L = D(k);
13372
- p("update:modelValue", L), p("input", L);
13373
- }, E = C(() => {
13374
- if (!a.height) return z.$attrs["input-style"];
13396
+ const L = B(k);
13397
+ w("update:modelValue", L), w("input", L);
13398
+ }, M = C(() => {
13399
+ if (!a.height) return v.$attrs["input-style"];
13375
13400
  const k = typeof a.height == "number" ? `${a.height}px` : a.height;
13376
- return { ...z.$attrs["input-style"] && typeof z.$attrs["input-style"] == "object" ? { ...z.$attrs["input-style"] } : {}, height: k, minHeight: k };
13377
- }), u = C(() => !!(z.$attrs.maxlength || T.value)), T = C(() => z.$attrs.max), h = C(() => String(c.val ?? "").length > 0), S = C(() => !!l.placeholder), B = C(
13378
- () => a.materialLabel && (c.focused || h.value || S.value)
13379
- ), M = C(() => ({
13401
+ return { ...v.$attrs["input-style"] && typeof v.$attrs["input-style"] == "object" ? { ...v.$attrs["input-style"] } : {}, height: k, minHeight: k };
13402
+ }), u = C(() => !!(v.$attrs.maxlength || S.value)), S = C(() => v.$attrs.max), _ = C(() => String(c.val ?? "").length > 0), y = C(() => !!l.placeholder), D = C(
13403
+ () => a.materialLabel && (c.focused || _.value || y.value)
13404
+ ), T = C(() => ({
13380
13405
  [l.class]: !!l.class,
13381
13406
  hasLabel: !!a.label,
13382
13407
  isMaterialLabel: !!(a.label && a.materialLabel),
13383
13408
  isTopLabel: !!(a.label && !a.materialLabel),
13384
- isFloat: B.value,
13409
+ isFloat: D.value,
13385
13410
  isFocused: c.focused,
13386
13411
  isDisabled: !!l.disabled,
13387
13412
  isTextarea: !0
13388
- })), _ = C(
13413
+ })), O = C(
13389
13414
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
13390
13415
  );
13391
- return te(
13416
+ return re(
13392
13417
  () => a.modelValue,
13393
13418
  (k) => {
13394
- const L = v(k);
13419
+ const L = f(k);
13395
13420
  c.val !== L && (c.val = L);
13396
13421
  },
13397
13422
  { immediate: !0 }
13398
- ), de(() => {
13399
- r && (r.removeEventListener("compositionstart", s), r.removeEventListener("compositionend", f), r = null);
13423
+ ), be(() => {
13424
+ i && (i.removeEventListener("compositionstart", s), i.removeEventListener("compositionend", g), i = null);
13400
13425
  }), (k, L) => {
13401
- const F = R("el-input");
13402
- return A(), O("div", {
13403
- class: G(["MvcField MvcFieldTextarea", t(M)]),
13404
- style: ie(t(_))
13426
+ const K = F("el-input");
13427
+ return A(), E("div", {
13428
+ class: G(["MvcField MvcFieldTextarea", t(T)]),
13429
+ style: ce(t(O))
13405
13430
  }, [
13406
- a.label ? (A(), O("label", Sr, x(a.label), 1)) : V("", !0),
13407
- j(F, ae({
13431
+ a.label ? (A(), E("label", Sr, x(a.label), 1)) : V("", !0),
13432
+ j(K, oe({
13408
13433
  ref_key: "inputRef",
13409
13434
  ref: n,
13410
13435
  type: "textarea",
13411
13436
  modelValue: t(c).val,
13412
- "onUpdate:modelValue": L[0] || (L[0] = (U) => t(c).val = U),
13437
+ "onUpdate:modelValue": L[0] || (L[0] = (J) => t(c).val = J),
13413
13438
  rows: a.rows,
13414
13439
  style: t(b).style,
13415
- "input-style": t(E),
13440
+ "input-style": t(M),
13416
13441
  "show-word-limit": t(u),
13417
- maxlength: t(T),
13442
+ maxlength: t(S),
13418
13443
  resize: a.resize,
13419
13444
  class: "MvcTextarea"
13420
13445
  }, t(b), {
13421
- onInput: w,
13422
- onFocus: y,
13446
+ onInput: z,
13447
+ onFocus: h,
13423
13448
  onBlur: P
13424
13449
  }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength", "resize"])
13425
13450
  ], 6);
13426
13451
  };
13427
13452
  }
13428
- }), Cr = /* @__PURE__ */ Q(Tr, [["__scopeId", "data-v-90814c5c"]]), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13453
+ }), Cr = /* @__PURE__ */ le(Tr, [["__scopeId", "data-v-90814c5c"]]), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13429
13454
  __proto__: null,
13430
13455
  default: Cr
13431
13456
  }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
@@ -13477,11 +13502,13 @@ const xr = (e, o = {}) => {
13477
13502
  }, Nr = {
13478
13503
  name: "Matt Avias Frame",
13479
13504
  copyright: "©2026",
13480
- version: "1.1.2",
13505
+ version: "1.1.7",
13481
13506
  author: "Matt Avias",
13482
13507
  date: "2026-02-26",
13483
13508
  /** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
13484
13509
  lang: "en_us",
13510
+ /** 视觉主题名;main 为默认主题,glass 为内置毛玻璃主题 */
13511
+ theme: "main",
13485
13512
  /** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
13486
13513
  table: {
13487
13514
  /** 同 Table 的 summary-metric:{ [prop]: { unit, precision, currency } } 或 (prop) => metric */
@@ -13513,7 +13540,7 @@ const xr = (e, o = {}) => {
13513
13540
  export {
13514
13541
  Tn as D,
13515
13542
  el as M,
13516
- Q as _,
13543
+ le as _,
13517
13544
  Jr as a,
13518
13545
  on as b,
13519
13546
  Ie as c,