mvframe 1.1.3 → 1.1.8

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;
@@ -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({
@@ -11424,26 +11449,33 @@ const Ln = oa({
11424
11449
  radius: {
11425
11450
  type: [String, Number],
11426
11451
  default: "8"
11452
+ },
11453
+ z: {
11454
+ type: [String, Number],
11455
+ default: 999
11427
11456
  }
11428
11457
  },
11429
11458
  setup(e) {
11430
11459
  const o = e;
11431
- return (a, l) => (A(), q(ra, { name: "loadingFade" }, {
11460
+ return (a, l) => (A(), Q(ra, { name: "loadingFade" }, {
11432
11461
  default: N(() => [
11433
- o.loading ? (A(), O("div", {
11462
+ o.loading ? (A(), E("div", {
11434
11463
  key: 0,
11435
- class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
11464
+ class: "MvcLoading absFull hp100 flexMode flexV vc hc",
11436
11465
  role: "status",
11437
11466
  "aria-busy": "true",
11438
11467
  "aria-live": "polite",
11439
- style: ie({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
11468
+ style: ce({
11469
+ borderRadius: `${(Number(o.radius) || 0) / 16}rem`,
11470
+ zIndex: o.z
11471
+ })
11440
11472
  }, [
11441
11473
  d("div", Do, [
11442
11474
  d("i", {
11443
11475
  class: G([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
11444
11476
  "aria-hidden": "true"
11445
11477
  }, null, 2),
11446
- o.showTxt ? (A(), O("span", {
11478
+ o.showTxt ? (A(), E("span", {
11447
11479
  key: 0,
11448
11480
  class: G(["loaderTxt fs14 txt-c", o.txtClass])
11449
11481
  }, x(a.$l(o.txt)), 3)) : V("", !0)
@@ -11453,7 +11485,7 @@ const Ln = oa({
11453
11485
  _: 1
11454
11486
  }));
11455
11487
  }
11456
- }), Fo = /* @__PURE__ */ Q(Ro, [["__scopeId", "data-v-89f58c94"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11488
+ }), Fo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-305a4676"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11457
11489
  __proto__: null,
11458
11490
  default: Fo
11459
11491
  }, 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 +11533,24 @@ const Ln = oa({
11501
11533
  },
11502
11534
  emits: ["success", "submit"],
11503
11535
  setup(e, { emit: o }) {
11504
- const a = e, { proxy: l } = ce(), n = W(null), r = W(!1), c = Y({
11536
+ const a = e, { proxy: l } = ue(), n = X(null), i = X(!1), c = q({
11505
11537
  method: "password",
11506
11538
  form: {},
11507
11539
  remember: !1
11508
11540
  });
11509
- ne(() => {
11541
+ ie(() => {
11510
11542
  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)));
11543
+ const _ = localStorage.getItem(Se);
11544
+ if (_) {
11545
+ const y = JSON.parse(_);
11546
+ 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
11547
  }
11516
11548
  } catch {
11517
11549
  }
11518
11550
  });
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);
11551
+ const w = o, v = (_, y = "info") => {
11552
+ const D = l == null ? void 0 : l.$message;
11553
+ D != null && D[y] && D[y](_);
11522
11554
  }, b = () => {
11523
11555
  try {
11524
11556
  c.remember ? localStorage.setItem(
@@ -11532,76 +11564,76 @@ const Ln = oa({
11532
11564
  } catch {
11533
11565
  }
11534
11566
  }, 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)
11567
+ v("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
11568
+ }, g = () => {
11569
+ v("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
11570
+ }, z = async () => {
11571
+ var T, O;
11572
+ if (a.loading || i.value) return;
11573
+ const _ = await ((O = (T = n.value) == null ? void 0 : T.validate) == null ? void 0 : O.call(T));
11574
+ if (!_) return;
11575
+ const y = String(_.username ?? "").trim();
11576
+ if (!y)
11545
11577
  return;
11546
- const B = String(h.password ?? "").trim();
11547
- if (B) {
11548
- r.value = !0;
11578
+ const D = String(_.password ?? "").trim();
11579
+ if (D) {
11580
+ i.value = !0;
11549
11581
  try {
11550
11582
  const k = await globalThis.$pm(async () => ({
11551
11583
  method: "password",
11552
- username: S,
11553
- password: B
11584
+ username: y,
11585
+ password: D
11554
11586
  }));
11555
- b(), p("submit", {
11587
+ b(), w("submit", {
11556
11588
  method: "password",
11557
- [v.value.username.valueKey]: k.username,
11558
- [v.value.password.valueKey]: k.password
11589
+ [f.value.username.valueKey]: k.username,
11590
+ [f.value.password.valueKey]: k.password
11559
11591
  }), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
11560
11592
  } finally {
11561
- r.value = !1;
11593
+ i.value = !1;
11562
11594
  }
11563
11595
  }
11564
- }, y = C(() => !!a.loading || r.value), P = C(() => {
11565
- const h = globalThis.$config;
11596
+ }, h = C(() => !!a.loading || i.value), P = C(() => {
11597
+ const _ = globalThis.$config;
11566
11598
  return {
11567
- copyright: (h == null ? void 0 : h.copyright) ?? "",
11568
- author: (h == null ? void 0 : h.author) ?? ""
11599
+ copyright: (_ == null ? void 0 : _.copyright) ?? "",
11600
+ author: (_ == null ? void 0 : _.author) ?? ""
11569
11601
  };
11570
- }), D = C(() => u[c.method] ?? "Login"), v = C(() => ({
11602
+ }), B = C(() => u[c.method] ?? "Login"), f = C(() => ({
11571
11603
  username: {
11572
- ...T.username,
11604
+ ...S.username,
11573
11605
  ...a.formFileds.username || {}
11574
11606
  },
11575
11607
  password: {
11576
- ...T.password,
11608
+ ...S.password,
11577
11609
  ...a.formFileds.password || {}
11578
11610
  }
11579
11611
  })), m = C(() => ({
11580
11612
  username: [
11581
11613
  {
11582
11614
  required: !0,
11583
- message: v.value.username.message,
11615
+ message: f.value.username.message,
11584
11616
  trigger: "blur"
11585
11617
  }
11586
11618
  ],
11587
11619
  password: [
11588
11620
  {
11589
11621
  required: !0,
11590
- message: v.value.password.message,
11622
+ message: f.value.password.message,
11591
11623
  trigger: "blur"
11592
11624
  }
11593
11625
  ]
11594
- })), E = C(() => [
11626
+ })), M = C(() => [
11595
11627
  { value: "password", label: "Account" },
11596
11628
  { value: "auth", label: "Google/Apple" },
11597
11629
  { value: "dingtalk", label: "DingTalk" },
11598
11630
  { value: "feishu", label: "Lark" },
11599
11631
  { value: "wechat", label: "Wechat" }
11600
- ].filter((h, S) => a.loginMethods.includes(S))), u = {
11632
+ ].filter((_, y) => a.loginMethods.includes(y))), u = {
11601
11633
  dingtalk: "DingTalk",
11602
11634
  feishu: "Lark",
11603
11635
  wechat: "Wechat"
11604
- }, T = {
11636
+ }, S = {
11605
11637
  username: {
11606
11638
  label: "Account",
11607
11639
  placeholder: "Enter your account",
@@ -11619,48 +11651,48 @@ const Ln = oa({
11619
11651
  valueKey: "password"
11620
11652
  }
11621
11653
  };
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, [
11654
+ return (_, y) => {
11655
+ const D = F("BtnGroup"), T = F("Input"), O = F("el-form-item"), k = F("el-checkbox"), L = F("el-button"), K = F("Form");
11656
+ return A(), E("div", Vo, [
11625
11657
  d("div", Ko, [
11626
11658
  d("div", Uo, [
11627
- d("span", Ho, x(h.$l(a.title)), 1)
11659
+ d("span", Ho, x(_.$l(a.title)), 1)
11628
11660
  ]),
11629
- j(B, {
11661
+ j(D, {
11630
11662
  modelValue: t(c).method,
11631
- "onUpdate:modelValue": S[0] || (S[0] = (U) => t(c).method = U),
11632
- options: t(E),
11633
- disabled: t(y),
11663
+ "onUpdate:modelValue": y[0] || (y[0] = (J) => t(c).method = J),
11664
+ options: t(M),
11665
+ disabled: t(h),
11634
11666
  size: "small",
11635
11667
  class: "mb32"
11636
11668
  }, null, 8, ["modelValue", "options", "disabled"]),
11637
11669
  d("div", Jo, [
11638
- t(c).method === "password" ? (A(), q(F, {
11670
+ t(c).method === "password" ? (A(), Q(K, {
11639
11671
  key: 0,
11640
11672
  ref_key: "pwdFormRef",
11641
11673
  ref: n,
11642
11674
  modelValue: t(c).form,
11643
- "onUpdate:modelValue": S[4] || (S[4] = (U) => t(c).form = U),
11675
+ "onUpdate:modelValue": y[4] || (y[4] = (J) => t(c).form = J),
11644
11676
  size: "default",
11645
11677
  rules: t(m)
11646
11678
  }, {
11647
11679
  default: N(() => [
11648
- j(_, { prop: "username" }, {
11680
+ j(O, { prop: "username" }, {
11649
11681
  default: N(() => [
11650
- j(M, {
11682
+ j(T, {
11651
11683
  modelValue: t(c).form.username,
11652
- "onUpdate:modelValue": S[1] || (S[1] = (U) => t(c).form.username = U),
11684
+ "onUpdate:modelValue": y[1] || (y[1] = (J) => t(c).form.username = J),
11653
11685
  class: "wp100",
11654
11686
  size: "large",
11655
11687
  name: "username",
11656
- placeholder: t(v).username.placeholder,
11657
- disabled: t(y)
11658
- }, ue({ _: 2 }, [
11659
- t(v).username.showPrefix ? {
11688
+ placeholder: t(f).username.placeholder,
11689
+ disabled: t(h)
11690
+ }, me({ _: 2 }, [
11691
+ t(f).username.showPrefix ? {
11660
11692
  name: "prefix",
11661
11693
  fn: N(() => [
11662
11694
  d("i", {
11663
- class: G(t(v).username.icon)
11695
+ class: G(t(f).username.icon)
11664
11696
  }, null, 2)
11665
11697
  ]),
11666
11698
  key: "0"
@@ -11669,25 +11701,25 @@ const Ln = oa({
11669
11701
  ]),
11670
11702
  _: 1
11671
11703
  }),
11672
- j(_, { prop: "password" }, {
11704
+ j(O, { prop: "password" }, {
11673
11705
  default: N(() => [
11674
- j(M, {
11706
+ j(T, {
11675
11707
  modelValue: t(c).form.password,
11676
- "onUpdate:modelValue": S[2] || (S[2] = (U) => t(c).form.password = U),
11708
+ "onUpdate:modelValue": y[2] || (y[2] = (J) => t(c).form.password = J),
11677
11709
  class: "wp100",
11678
11710
  size: "large",
11679
11711
  type: "password",
11680
11712
  name: "password",
11681
- placeholder: t(v).password.placeholder,
11713
+ placeholder: t(f).password.placeholder,
11682
11714
  "show-password": "",
11683
- disabled: t(y),
11684
- onKeyup: ia(w, ["enter"])
11685
- }, ue({ _: 2 }, [
11686
- t(v).password.showPrefix ? {
11715
+ disabled: t(h),
11716
+ onKeyup: ia(z, ["enter"])
11717
+ }, me({ _: 2 }, [
11718
+ t(f).password.showPrefix ? {
11687
11719
  name: "prefix",
11688
11720
  fn: N(() => [
11689
11721
  d("i", {
11690
- class: G(t(v).password.icon)
11722
+ class: G(t(f).password.icon)
11691
11723
  }, null, 2)
11692
11724
  ]),
11693
11725
  key: "0"
@@ -11696,15 +11728,15 @@ const Ln = oa({
11696
11728
  ]),
11697
11729
  _: 1
11698
11730
  }),
11699
- j(_, null, {
11731
+ j(O, null, {
11700
11732
  default: N(() => [
11701
11733
  j(k, {
11702
11734
  modelValue: t(c).remember,
11703
- "onUpdate:modelValue": S[3] || (S[3] = (U) => t(c).remember = U),
11704
- disabled: t(y)
11735
+ "onUpdate:modelValue": y[3] || (y[3] = (J) => t(c).remember = J),
11736
+ disabled: t(h)
11705
11737
  }, {
11706
11738
  default: N(() => [
11707
- le(x(h.$l(a.rememberTxt)), 1)
11739
+ te(x(_.$l(a.rememberTxt)), 1)
11708
11740
  ]),
11709
11741
  _: 1
11710
11742
  }, 8, ["modelValue", "disabled"])
@@ -11715,33 +11747,33 @@ const Ln = oa({
11715
11747
  type: "primary",
11716
11748
  size: "large",
11717
11749
  class: "wp100",
11718
- loading: t(y),
11719
- disabled: t(y),
11720
- onClick: w
11750
+ loading: t(h),
11751
+ disabled: t(h),
11752
+ onClick: z
11721
11753
  }, {
11722
11754
  default: N(() => [
11723
- le(x(h.$l(a.submitTxt)), 1)
11755
+ te(x(_.$l(a.submitTxt)), 1)
11724
11756
  ]),
11725
11757
  _: 1
11726
11758
  }, 8, ["loading", "disabled"])
11727
11759
  ]),
11728
11760
  _: 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)),
11761
+ }, 8, ["modelValue", "rules"])) : t(c).method === "auth" ? (A(), E("div", Zo, [
11762
+ y[7] || (y[7] = d("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
11731
11763
  d("button", {
11732
11764
  type: "button",
11733
11765
  class: "oauthGoogle wp100 mb36",
11734
- disabled: t(y),
11766
+ disabled: t(h),
11735
11767
  onClick: s
11736
- }, [...S[5] || (S[5] = [
11768
+ }, [...y[5] || (y[5] = [
11737
11769
  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
11770
  ])], 8, Yo),
11739
11771
  d("button", {
11740
11772
  type: "button",
11741
11773
  class: "oauthApple wp100 mb16",
11742
- disabled: t(y),
11743
- onClick: f
11744
- }, [...S[6] || (S[6] = [
11774
+ disabled: t(h),
11775
+ onClick: g
11776
+ }, [...y[6] || (y[6] = [
11745
11777
  d("svg", {
11746
11778
  class: "oauthAppleLogo noShrink",
11747
11779
  xmlns: "http://www.w3.org/2000/svg",
@@ -11757,8 +11789,8 @@ const Ln = oa({
11757
11789
  ], -1),
11758
11790
  d("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
11759
11791
  ])], 8, Wo)
11760
- ])) : (A(), O("div", qo, [
11761
- d("p", Xo, x(t(D)), 1),
11792
+ ])) : (A(), E("div", qo, [
11793
+ d("p", Xo, x(t(B)), 1),
11762
11794
  d("div", {
11763
11795
  class: G(["qrBlock w180 h180 radius6", `qr-${t(c).method}`]),
11764
11796
  "aria-hidden": "true"
@@ -11773,7 +11805,7 @@ const Ln = oa({
11773
11805
  ]);
11774
11806
  };
11775
11807
  }
11776
- }), at = /* @__PURE__ */ Q(et, [["__scopeId", "data-v-6faa6992"]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11808
+ }), at = /* @__PURE__ */ le(et, [["__scopeId", "data-v-6faa6992"]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11777
11809
  __proto__: null,
11778
11810
  default: at
11779
11811
  }, Symbol.toStringTag, { value: "Module" })), nt = /* @__PURE__ */ Object.assign({
@@ -11799,18 +11831,18 @@ const Ln = oa({
11799
11831
  },
11800
11832
  setup(e) {
11801
11833
  const o = e;
11802
- Y({});
11834
+ q({});
11803
11835
  const a = C(() => ({
11804
11836
  borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
11805
11837
  }));
11806
- return (l, n) => (A(), O("div", {
11838
+ return (l, n) => (A(), E("div", {
11807
11839
  class: "MvcNote",
11808
- style: ie(t(a))
11840
+ style: ce(t(a))
11809
11841
  }, [
11810
- J(l.$slots, "default", {}, void 0, !0)
11842
+ Z(l.$slots, "default", {}, void 0, !0)
11811
11843
  ], 4));
11812
11844
  }
11813
- }), ot = /* @__PURE__ */ Q(nt, [["__scopeId", "data-v-e3e84cc8"]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11845
+ }), ot = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-e3e84cc8"]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11814
11846
  __proto__: null,
11815
11847
  default: ot
11816
11848
  }, Symbol.toStringTag, { value: "Module" })), rt = {
@@ -11840,35 +11872,35 @@ const Ln = oa({
11840
11872
  }
11841
11873
  },
11842
11874
  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})`
11875
+ const o = e, { proxy: a } = ue(), n = _e("store").tab(), i = C(() => o.title || o.subtitle), c = C(() => n.useTab), w = C(() => {
11876
+ let v = "calc(100vh";
11877
+ return n.useTab && (v += " - 2.25rem"), o.noheader || (v += " - 4rem"), {
11878
+ minHeight: `${v})`
11847
11879
  };
11848
11880
  });
11849
- return (z, b) => (A(), O("div", {
11881
+ return (v, b) => (A(), E("div", {
11850
11882
  class: G(["MvcPage", t(c) && "hasTab"])
11851
11883
  }, [
11852
- o.noheader ? V("", !0) : (A(), O("div", rt, [
11884
+ o.noheader ? V("", !0) : (A(), E("div", rt, [
11853
11885
  d("div", it, [
11854
- z.$slots.header ? J(z.$slots, "header", { key: 0 }, void 0, !0) : t(r) ? (A(), O(ee, { key: 1 }, [
11886
+ v.$slots.header ? Z(v.$slots, "header", { key: 0 }, void 0, !0) : t(i) ? (A(), E(ne, { key: 1 }, [
11855
11887
  d("h3", st, x(o.title), 1),
11856
11888
  d("p", ct, x(o.subtitle), 1)
11857
11889
  ], 64)) : V("", !0)
11858
11890
  ]),
11859
11891
  d("div", ut, [
11860
- z.$slots.right ? J(z.$slots, "right", { key: 0 }, void 0, !0) : V("", !0)
11892
+ v.$slots.right ? Z(v.$slots, "right", { key: 0 }, void 0, !0) : V("", !0)
11861
11893
  ])
11862
11894
  ])),
11863
11895
  d("div", {
11864
11896
  class: G(["PageBody", o.bodyClass]),
11865
- style: ie(t(p))
11897
+ style: ce(t(w))
11866
11898
  }, [
11867
- J(z.$slots, "default", {}, void 0, !0)
11899
+ Z(v.$slots, "default", {}, void 0, !0)
11868
11900
  ], 6)
11869
11901
  ], 2));
11870
11902
  }
11871
- }), mt = /* @__PURE__ */ Q(dt, [["__scopeId", "data-v-060130ad"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11903
+ }), mt = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-060130ad"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11872
11904
  __proto__: null,
11873
11905
  default: mt
11874
11906
  }, Symbol.toStringTag, { value: "Module" })), vt = {
@@ -11927,133 +11959,133 @@ const Ln = oa({
11927
11959
  },
11928
11960
  emits: ["update:modelValue", "change", "focus", "blur"],
11929
11961
  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();
11962
+ 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) => {
11963
+ a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
11964
+ }, z = (r) => {
11965
+ if (i.value = r, r && a.multiple) {
11966
+ const p = a.modelValue;
11967
+ n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
11936
11968
  }
11937
- }, y = (i) => {
11938
- z.value = !0, s("focus", i);
11939
- }, P = (i) => {
11940
- z.value = !1, s("blur", i);
11941
- }, D = () => {
11969
+ }, h = (r) => {
11970
+ v.value = !0, s("focus", r);
11971
+ }, P = (r) => {
11972
+ v.value = !1, s("blur", r);
11973
+ }, B = () => {
11942
11974
  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)) {
11975
+ if (!a.filterable || !i.value) return u();
11976
+ const r = l.value, p = ((I = r == null ? void 0 : r.optionsArray) == null ? void 0 : I.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
11977
+ return Array.isArray(p) ? p.filter(($) => $.visible && !$.isDisabled).map(($) => $.value) : u();
11978
+ }, f = () => {
11979
+ const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
11980
+ return Number.isFinite(p) && p > 0 ? p : 0;
11981
+ }, m = (r) => {
11982
+ const p = B();
11983
+ if (r) {
11984
+ const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
11985
+ for (const Y of p)
11986
+ if (!U.has(Y)) {
11955
11987
  if (I > 0 && H.length >= I) break;
11956
- K.add(Z), H.push(Z);
11988
+ U.add(Y), H.push(Y);
11957
11989
  }
11958
11990
  n.value = H;
11959
11991
  } else {
11960
- const I = new Set(g);
11992
+ const I = new Set(p);
11961
11993
  n.value = n.value.filter(($) => !I.has($));
11962
11994
  }
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));
11995
+ S();
11996
+ }, M = () => {
11997
+ var r, p;
11998
+ 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
11999
  }, 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(() => {
12000
+ const r = a.valueKey;
12001
+ return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
12002
+ }, S = () => {
12003
+ const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
12004
+ c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
12005
+ }, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
11974
12006
  const {
11975
- modelValue: i,
11976
- valueKey: g,
12007
+ modelValue: r,
12008
+ valueKey: p,
11977
12009
  labelKey: I,
11978
12010
  selectAllTxt: $,
11979
- confirmTxt: K,
12011
+ confirmTxt: U,
11980
12012
  nowrap: H,
11981
- ...Z
11982
- } = a, X = Z.props ?? {};
12013
+ ...Y
12014
+ } = a, ae = Y.props ?? {};
11983
12015
  return {
11984
- ...Z,
12016
+ ...Y,
11985
12017
  props: {
11986
- ...X,
11987
- value: g,
12018
+ ...ae,
12019
+ value: p,
11988
12020
  label: I
11989
12021
  }
11990
12022
  };
11991
- }), B = C(
12023
+ }), D = C(
11992
12024
  () => a.nowrap ? {
11993
12025
  collapseTags: !0,
11994
12026
  collapseTagsTooltip: !0,
11995
12027
  maxCollapseTags: 1,
11996
12028
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
11997
12029
  } : {}
11998
- ), M = C(() => {
11999
- const { class: i, ...g } = b;
12000
- return g;
12001
- }), _ = C(() => ({
12002
- ...B.value,
12003
- ...M.value,
12004
- ...S.value,
12030
+ ), T = C(() => {
12031
+ const { class: r, ...p } = b;
12032
+ return p;
12033
+ }), O = C(() => ({
12034
+ ...D.value,
12035
+ ...T.value,
12036
+ ...y.value,
12005
12037
  placeholder: b.placeholder ?? ""
12006
12038
  })), 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(() => ({
12039
+ const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
12040
+ if (!a.filterable || !i.value) return p.length;
12041
+ const I = B();
12042
+ return p.filter(($) => I.includes($)).length;
12043
+ }), L = C(() => B().length), K = C(() => {
12044
+ const r = a.multiple && i.value ? n.value : a.modelValue;
12045
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
12046
+ }), J = C(() => !!b.placeholder), R = C(
12047
+ () => a.materialLabel && (v.value || i.value || K.value || J.value)
12048
+ ), W = C(() => ({
12017
12049
  [b.class]: !!b.class,
12018
12050
  hasLabel: !!a.label,
12019
12051
  isMaterialLabel: !!(a.label && a.materialLabel),
12020
12052
  isTopLabel: !!(a.label && !a.materialLabel),
12021
- isFloat: re.value,
12022
- isFocused: z.value,
12053
+ isFloat: R.value,
12054
+ isFocused: v.value,
12023
12055
  isDisabled: !!b.disabled,
12024
12056
  isSelect: !0
12025
- })), se = C(
12057
+ })), ee = C(
12026
12058
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
12027
12059
  );
12028
- return te(n, () => T(), { deep: !0 }), te(
12060
+ return re(n, () => S(), { deep: !0 }), re(
12029
12061
  () => 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());
12062
+ (r) => {
12063
+ if (a.multiple && i.value) {
12064
+ const p = Array.isArray(r) ? [...r] : r ? [r] : [];
12065
+ JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
12034
12066
  }
12035
12067
  }
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))
12068
+ ), (r, p) => {
12069
+ const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select");
12070
+ return A(), E("div", {
12071
+ class: G(["MvcField MvcFieldSelect", t(W)]),
12072
+ style: ce(t(ee))
12041
12073
  }, [
12042
- a.label ? (A(), O("label", vt, x(a.label), 1)) : V("", !0),
12043
- j(K, ae({
12074
+ a.label ? (A(), E("label", vt, x(a.label), 1)) : V("", !0),
12075
+ j(U, oe({
12044
12076
  ref_key: "selectRef",
12045
12077
  ref: l,
12046
- "model-value": t(h),
12078
+ "model-value": t(_),
12047
12079
  "tag-effect": "plain",
12048
12080
  class: "MvcSelect"
12049
- }, t(_), {
12050
- "onUpdate:modelValue": f,
12051
- onVisibleChange: w,
12052
- onFocus: y,
12081
+ }, t(O), {
12082
+ "onUpdate:modelValue": g,
12083
+ onVisibleChange: z,
12084
+ onFocus: h,
12053
12085
  onBlur: P
12054
- }), ue({
12086
+ }), me({
12055
12087
  default: N(() => [
12056
- J(i.$slots, "default")
12088
+ Z(r.$slots, "default")
12057
12089
  ]),
12058
12090
  _: 2
12059
12091
  }, [
@@ -12063,13 +12095,13 @@ const Ln = oa({
12063
12095
  d("div", pt, [
12064
12096
  j(I, {
12065
12097
  modelValue: t(c),
12066
- "onUpdate:modelValue": g[0] || (g[0] = (H) => sa(c) ? c.value = H : null),
12067
- indeterminate: t(p),
12098
+ "onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
12099
+ indeterminate: t(w),
12068
12100
  class: "h24",
12069
12101
  onChange: m
12070
12102
  }, {
12071
12103
  default: N(() => [
12072
- le(x(e.selectAllTxt), 1)
12104
+ te(x(e.selectAllTxt), 1)
12073
12105
  ]),
12074
12106
  _: 1
12075
12107
  }, 8, ["modelValue", "indeterminate"]),
@@ -12085,10 +12117,10 @@ const Ln = oa({
12085
12117
  j($, {
12086
12118
  type: "primary",
12087
12119
  size: "small",
12088
- onClick: E
12120
+ onClick: M
12089
12121
  }, {
12090
12122
  default: N(() => [
12091
- le(x(e.confirmTxt), 1)
12123
+ te(x(e.confirmTxt), 1)
12092
12124
  ]),
12093
12125
  _: 1
12094
12126
  })
@@ -12159,145 +12191,145 @@ const Ln = oa({
12159
12191
  },
12160
12192
  emits: ["update:modelValue", "change", "focus", "blur"],
12161
12193
  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();
12194
+ 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) => {
12195
+ a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
12196
+ }, z = (r) => {
12197
+ if (i.value = r, r && a.multiple) {
12198
+ const p = a.modelValue;
12199
+ n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
12168
12200
  }
12169
- }, y = (i) => {
12170
- z.value = !0, s("focus", i);
12171
- }, P = (i) => {
12172
- z.value = !1, s("blur", i);
12173
- }, D = () => {
12201
+ }, h = (r) => {
12202
+ v.value = !0, s("focus", r);
12203
+ }, P = (r) => {
12204
+ v.value = !1, s("blur", r);
12205
+ }, B = () => {
12174
12206
  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();
12207
+ if (!a.filterable || !i.value) return u();
12208
+ const r = l.value, p = (($ = r == null ? void 0 : r.filteredOptions) == null ? void 0 : $.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
12209
+ if (!Array.isArray(p)) return u();
12178
12210
  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)) {
12211
+ return p.filter((U) => U.type !== "Group" && !U.disabled).map((U) => typeof U == "object" ? U[I] : U);
12212
+ }, f = () => {
12213
+ const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
12214
+ return Number.isFinite(p) && p > 0 ? p : 0;
12215
+ }, m = (r) => {
12216
+ const p = B();
12217
+ if (r) {
12218
+ const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
12219
+ for (const Y of p)
12220
+ if (!U.has(Y)) {
12189
12221
  if (I > 0 && H.length >= I) break;
12190
- K.add(Z), H.push(Z);
12222
+ U.add(Y), H.push(Y);
12191
12223
  }
12192
12224
  n.value = H;
12193
12225
  } else {
12194
- const I = new Set(g);
12226
+ const I = new Set(p);
12195
12227
  n.value = n.value.filter(($) => !I.has($));
12196
12228
  }
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));
12229
+ S();
12230
+ }, M = () => {
12231
+ var r, p;
12232
+ 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
12233
  }, 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(() => {
12234
+ const r = a.valueKey;
12235
+ return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
12236
+ }, S = () => {
12237
+ const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
12238
+ c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
12239
+ }, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
12208
12240
  const {
12209
- modelValue: i,
12210
- valueKey: g,
12241
+ modelValue: r,
12242
+ valueKey: p,
12211
12243
  labelKey: I,
12212
12244
  selectAllTxt: $,
12213
- confirmTxt: K,
12245
+ confirmTxt: U,
12214
12246
  nowrap: H,
12215
- ...Z
12216
- } = a, X = Z.props ?? {};
12247
+ ...Y
12248
+ } = a, ae = Y.props ?? {};
12217
12249
  return {
12218
- ...Z,
12250
+ ...Y,
12219
12251
  props: {
12220
- ...X,
12221
- value: g,
12252
+ ...ae,
12253
+ value: p,
12222
12254
  label: I
12223
12255
  }
12224
12256
  };
12225
- }), B = C(
12257
+ }), D = C(
12226
12258
  () => a.nowrap ? {
12227
12259
  collapseTags: !0,
12228
12260
  collapseTagsTooltip: !0,
12229
12261
  maxCollapseTags: 1,
12230
12262
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
12231
12263
  } : {}
12232
- ), M = C(() => {
12233
- const { class: i, ...g } = b;
12234
- return g;
12235
- }), _ = C(() => ({
12236
- ...B.value,
12237
- ...M.value,
12238
- ...S.value,
12264
+ ), T = C(() => {
12265
+ const { class: r, ...p } = b;
12266
+ return p;
12267
+ }), O = C(() => ({
12268
+ ...D.value,
12269
+ ...T.value,
12270
+ ...y.value,
12239
12271
  placeholder: b.placeholder ?? ""
12240
12272
  })), 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(() => ({
12273
+ const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
12274
+ if (!a.filterable || !i.value) return p.length;
12275
+ const I = B();
12276
+ return p.filter(($) => I.includes($)).length;
12277
+ }), L = C(() => B().length), K = C(() => {
12278
+ const r = a.multiple && i.value ? n.value : a.modelValue;
12279
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
12280
+ }), J = C(() => !!b.placeholder), R = C(
12281
+ () => a.materialLabel && (v.value || i.value || K.value || J.value)
12282
+ ), W = C(() => ({
12251
12283
  [b.class]: !!b.class,
12252
12284
  hasLabel: !!a.label,
12253
12285
  isMaterialLabel: !!(a.label && a.materialLabel),
12254
12286
  isTopLabel: !!(a.label && !a.materialLabel),
12255
- isFloat: re.value,
12256
- isFocused: z.value,
12287
+ isFloat: R.value,
12288
+ isFocused: v.value,
12257
12289
  isDisabled: !!b.disabled,
12258
12290
  isSelect: !0
12259
- })), se = C(
12291
+ })), ee = C(
12260
12292
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
12261
12293
  );
12262
- return te(n, () => T(), { deep: !0 }), te(
12294
+ return re(n, () => S(), { deep: !0 }), re(
12263
12295
  () => 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());
12296
+ (r) => {
12297
+ if (a.multiple && i.value) {
12298
+ const p = Array.isArray(r) ? [...r] : r ? [r] : [];
12299
+ JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
12268
12300
  }
12269
12301
  }
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))
12302
+ ), (r, p) => {
12303
+ const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select-v2");
12304
+ return A(), E("div", {
12305
+ class: G(["MvcField MvcFieldSelectV2", t(W)]),
12306
+ style: ce(t(ee))
12275
12307
  }, [
12276
- a.label ? (A(), O("label", yt, x(a.label), 1)) : V("", !0),
12277
- j(K, ae({
12308
+ a.label ? (A(), E("label", yt, x(a.label), 1)) : V("", !0),
12309
+ j(U, oe({
12278
12310
  ref_key: "selectRef",
12279
12311
  ref: l,
12280
- "model-value": t(h),
12312
+ "model-value": t(_),
12281
12313
  class: "MvcSelectV2"
12282
- }, t(_), {
12283
- "onUpdate:modelValue": f,
12284
- onVisibleChange: w,
12285
- onFocus: y,
12314
+ }, t(O), {
12315
+ "onUpdate:modelValue": g,
12316
+ onVisibleChange: z,
12317
+ onFocus: h,
12286
12318
  onBlur: P
12287
- }), ue({ _: 2 }, [
12319
+ }), me({ _: 2 }, [
12288
12320
  a.filterable && a.multiple ? {
12289
12321
  name: "header",
12290
12322
  fn: N(() => [
12291
12323
  d("div", At, [
12292
12324
  j(I, {
12293
12325
  modelValue: t(c),
12294
- "onUpdate:modelValue": g[0] || (g[0] = (H) => sa(c) ? c.value = H : null),
12295
- indeterminate: t(p),
12326
+ "onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
12327
+ indeterminate: t(w),
12296
12328
  class: "h24",
12297
12329
  onChange: m
12298
12330
  }, {
12299
12331
  default: N(() => [
12300
- le(x(e.selectAllTxt), 1)
12332
+ te(x(e.selectAllTxt), 1)
12301
12333
  ]),
12302
12334
  _: 1
12303
12335
  }, 8, ["modelValue", "indeterminate"]),
@@ -12306,10 +12338,10 @@ const Ln = oa({
12306
12338
  ]),
12307
12339
  key: "0"
12308
12340
  } : void 0,
12309
- i.$slots.default ? {
12341
+ r.$slots.default ? {
12310
12342
  name: "default",
12311
12343
  fn: N((H) => [
12312
- J(i.$slots, "default", we(Me(H)))
12344
+ Z(r.$slots, "default", we(Me(H)))
12313
12345
  ]),
12314
12346
  key: "1"
12315
12347
  } : void 0,
@@ -12320,10 +12352,10 @@ const Ln = oa({
12320
12352
  j($, {
12321
12353
  type: "primary",
12322
12354
  size: "small",
12323
- onClick: E
12355
+ onClick: M
12324
12356
  }, {
12325
12357
  default: N(() => [
12326
- le(x(e.confirmTxt), 1)
12358
+ te(x(e.confirmTxt), 1)
12327
12359
  ]),
12328
12360
  _: 1
12329
12361
  })
@@ -12355,47 +12387,47 @@ const Ln = oa({
12355
12387
  }
12356
12388
  },
12357
12389
  setup: (e, o) => {
12358
- var p;
12359
- const a = Y({
12390
+ var w;
12391
+ const a = q({
12360
12392
  options: [],
12361
12393
  slots: []
12362
12394
  }), l = e.tableName + "_Column";
12363
12395
  let n = [];
12364
12396
  (() => {
12365
- const z = o.slots.default()[0].children, b = {
12397
+ const v = o.slots.default()[0].children, b = {
12366
12398
  normal: [],
12367
12399
  mmp: [],
12368
12400
  asa: [],
12369
12401
  fixed: [],
12370
12402
  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,
12403
+ }, s = e.tableName ? JSON.parse(localStorage.getItem(l)) : null, g = [void 0];
12404
+ v.forEach((h) => {
12405
+ window.$getType(h.type) === "Symbol" ? n = n.concat(h.children) : n.push(h);
12406
+ }), n.forEach((h, P) => {
12407
+ var B;
12408
+ if (window.$getType(h.type), ((B = h.type) == null ? void 0 : B.name) === "ElTableColumn") {
12409
+ let f = {
12410
+ ...h.props,
12379
12411
  sort: P,
12380
- nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
12412
+ nomove: h.props.nomove || h.props.nomove === "" || h.props.type === "selection" || h.props.label === "Operation",
12381
12413
  resizable: !0,
12382
- visible: y.props.visible !== !1
12414
+ visible: h.props.visible !== !1
12383
12415
  };
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);
12416
+ 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) {
12417
+ const { data: m } = s.filter1((M) => M.prop === h.props.prop);
12418
+ m && (f.sort = m.sort, f.fixed = m.fixed, f.visible = m.visible);
12387
12419
  }
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;
12420
+ 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
12421
  }
12390
12422
  }), 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)));
12423
+ let z = [...b.normal, ...b.mmp, ...b.asa];
12424
+ e.tableName && (z = z.sort((h, P) => h.sort - P.sort), localStorage.setItem(l, JSON.stringify(z)));
12393
12425
  })();
12394
12426
  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 = {
12427
+ if (n.forEach((v) => {
12428
+ window.$getType(v) !== "String" && v.props.visible && c.push(v);
12429
+ }), (w = e.group) != null && w.label) {
12430
+ const v = {
12399
12431
  label: "Group By " + e.group.label,
12400
12432
  // prop: props.group.value,
12401
12433
  width: e.group.width,
@@ -12405,13 +12437,13 @@ const Ln = oa({
12405
12437
  };
12406
12438
  c[0].props.type === "selection" ? c.splice(1, 0, {
12407
12439
  ...c[1],
12408
- props: z
12440
+ props: v
12409
12441
  }) : c.unshift({
12410
12442
  ...c[0],
12411
- props: z
12443
+ props: v
12412
12444
  });
12413
12445
  }
12414
- return c = c.sort((z, b) => z.props.sort - b.props.sort), () => c;
12446
+ return c = c.sort((v, b) => v.props.sort - b.props.sort), () => c;
12415
12447
  }
12416
12448
  }), 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
12449
  class: "flexMode vs hp100",
@@ -12447,7 +12479,7 @@ const Ln = oa({
12447
12479
  },
12448
12480
  emits: "close",
12449
12481
  setup(e, { emit: o }) {
12450
- const a = e, l = Y({
12482
+ const a = e, l = q({
12451
12483
  loading: !1,
12452
12484
  type: "normal",
12453
12485
  columns: {
@@ -12462,43 +12494,43 @@ const Ln = oa({
12462
12494
  columnType: {},
12463
12495
  mounted: !1
12464
12496
  });
12465
- ne(() => {
12466
- r();
12497
+ ie(() => {
12498
+ i();
12467
12499
  });
12468
- const n = o, r = () => {
12500
+ const n = o, i = () => {
12469
12501
  n("mounted");
12470
- const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), E = {};
12502
+ const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), M = {};
12471
12503
  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;
12504
+ 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);
12505
+ }), l.columnType = M;
12474
12506
  }, c = (m) => {
12475
12507
  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 () => {
12508
+ }, w = (m, M) => {
12509
+ m.visible = !0, l.visible.unshift(m), m.type ? l.columns[m.type].splice(M, 1) : l.columns.normal.splice(M, 1);
12510
+ }, v = (m, M) => {
12511
+ l.fixed.unshift(m), l.visible.splice(M, 1);
12512
+ }, b = (m, M) => {
12513
+ l.visible.unshift(m), l.fixed.splice(M, 1);
12514
+ }, s = (m, M) => {
12515
+ l.visible.splice(M, 1), m.type ? l.columns[m.type].unshift(m) : l.columns.normal.unshift(m);
12516
+ }, g = async () => {
12485
12517
  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");
12518
+ const { fixed: m, visible: M, columns: u, selection: S, operation: _ } = l;
12519
+ let y = [];
12520
+ Object.keys(u).map((T) => {
12521
+ y = y.concat(u[T]);
12522
+ }), m.forEach((T) => T.fixed = "left"), y.forEach((T) => T.visible = !1);
12523
+ const D = S.concat(m, M, y, _);
12524
+ D.forEach((T, O) => T.sort = O), localStorage.setItem(`${a.tableName}_Column`, JSON.stringify(D)), l.loading = !1, n("close"), n("init-column");
12493
12525
  });
12494
- }, w = () => {
12526
+ }, z = () => {
12495
12527
  l.loading = !0, localStorage.removeItem(`${a.tableName}_Column`), window.$pm(() => {
12496
12528
  l.loading = !1, n("close"), n("init-column");
12497
12529
  }, 4);
12498
- }, y = C(() => {
12530
+ }, h = C(() => {
12499
12531
  var m;
12500
12532
  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(() => [
12533
+ }), P = C(() => (h.value * 0.3).toFixed(0)), B = C(() => (h.value * 0.7 - 10).toFixed(0)), f = C(() => [
12502
12534
  {
12503
12535
  label: "Base Info",
12504
12536
  value: "normal"
@@ -12514,27 +12546,27 @@ const Ln = oa({
12514
12546
  hide: !l.columnType.mmp
12515
12547
  }
12516
12548
  ]);
12517
- return (m, E) => {
12518
- const u = R("el-scrollbar"), T = R("DrawerArea");
12519
- return A(), q(T, {
12549
+ return (m, M) => {
12550
+ const u = F("el-scrollbar"), S = F("DrawerArea");
12551
+ return A(), Q(S, {
12520
12552
  loading: t(l).loading,
12521
12553
  noscroll: "",
12522
12554
  "cancel-txt": "Reset",
12523
12555
  "cancel-icon": "im-sync",
12524
12556
  class: "MvcTableColumnConfig",
12525
- onCancel: w,
12526
- onSubmit: f
12557
+ onCancel: z,
12558
+ onSubmit: g
12527
12559
  }, {
12528
12560
  default: N(() => [
12529
12561
  d("div", Mt, [
12530
12562
  d("div", kt, [
12531
12563
  d("div", Et, x(m.$l("Column Type")), 1),
12532
12564
  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))
12565
+ (A(!0), E(ne, null, se(t(f), (_) => (A(), E("div", {
12566
+ key: _.value,
12567
+ class: G(["typeItem p8-16 mb4 radius4 txt-nowrap", [t(l).type === _.value && "active", _.hide && "hide"]]),
12568
+ onClick: (y) => c(_.value)
12569
+ }, x(_.label), 11, Pt))), 128))
12538
12570
  ])
12539
12571
  ]),
12540
12572
  d("div", xt, [
@@ -12546,18 +12578,18 @@ const Ln = oa({
12546
12578
  j(u, { style: { height: "calc(100% - 36px)" } }, {
12547
12579
  default: N(() => [
12548
12580
  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,
12581
+ t(l).columns[t(l).type].length === 0 ? (A(), E("span", It, x(m.$l("No Columns")), 1)) : V("", !0),
12582
+ (A(!0), E(ne, null, se(t(l).columns[t(l).type], (_, y) => (A(), E("div", {
12583
+ key: _.prop,
12552
12584
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
12553
12585
  }, [
12554
- d("span", null, x(m.$l(h.label)), 1),
12586
+ d("span", null, x(m.$l(_.label)), 1),
12555
12587
  d("div", Bt, [
12556
12588
  d("div", {
12557
12589
  class: "tipbtn left",
12558
12590
  txt: m.$l("Visible"),
12559
- onClick: (B) => p(h, S)
12560
- }, [...E[0] || (E[0] = [
12591
+ onClick: (D) => w(_, y)
12592
+ }, [...M[0] || (M[0] = [
12561
12593
  d("i", { class: "imicon im-plus fs16" }, null, -1)
12562
12594
  ])], 8, Dt)
12563
12595
  ])
@@ -12574,27 +12606,27 @@ const Ln = oa({
12574
12606
  ]),
12575
12607
  d("div", Vt, [
12576
12608
  d("div", Kt, [
12577
- t(l).fixed.length === 0 ? (A(), O("span", Ut, x(m.$l("No Fixed Columns")), 1)) : V("", !0),
12609
+ t(l).fixed.length === 0 ? (A(), E("span", Ut, x(m.$l("No Fixed Columns")), 1)) : V("", !0),
12578
12610
  j(u, { height: t(P) }, {
12579
12611
  default: N(() => [
12580
12612
  j(t(Ve), {
12581
12613
  list: t(l).fixed,
12582
- "item-key": (h) => h,
12614
+ "item-key": (_) => _,
12583
12615
  handle: ".im-handle",
12584
12616
  "ghost-class": "ghost"
12585
12617
  }, {
12586
- item: N(({ element: h, index: S }) => [
12618
+ item: N(({ element: _, index: y }) => [
12587
12619
  d("div", Ht, [
12588
12620
  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)
12621
+ M[1] || (M[1] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12622
+ d("span", null, x(m.$l(_.label)), 1)
12591
12623
  ]),
12592
12624
  d("div", Zt, [
12593
12625
  d("div", {
12594
12626
  class: "tipbtn red left",
12595
12627
  txt: m.$l("Unfixed"),
12596
- onClick: (B) => b(h, S)
12597
- }, [...E[2] || (E[2] = [
12628
+ onClick: (D) => b(_, y)
12629
+ }, [...M[2] || (M[2] = [
12598
12630
  d("i", { class: "imicon im-download1 fs14" }, null, -1)
12599
12631
  ])], 8, Yt)
12600
12632
  ])
@@ -12606,39 +12638,39 @@ const Ln = oa({
12606
12638
  _: 1
12607
12639
  }, 8, ["height"])
12608
12640
  ]),
12609
- E[6] || (E[6] = d("div", { class: "p4-0" }, [
12641
+ M[6] || (M[6] = d("div", { class: "p4-0" }, [
12610
12642
  d("div", { class: "border-t" })
12611
12643
  ], -1)),
12612
12644
  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) }, {
12645
+ t(l).visible.length === 0 ? (A(), E("span", qt, x(m.$l("No Columns")), 1)) : V("", !0),
12646
+ j(u, { height: t(B) }, {
12615
12647
  default: N(() => [
12616
12648
  j(t(Ve), {
12617
12649
  list: t(l).visible,
12618
- "item-key": (h) => h,
12650
+ "item-key": (_) => _,
12619
12651
  options: { lockAxis: "y" },
12620
12652
  handle: ".im-handle",
12621
12653
  "ghost-class": "ghost"
12622
12654
  }, {
12623
- item: N(({ element: h, index: S }) => [
12655
+ item: N(({ element: _, index: y }) => [
12624
12656
  d("div", Xt, [
12625
12657
  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)
12658
+ M[3] || (M[3] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
12659
+ d("span", null, x(m.$l(_.label)), 1)
12628
12660
  ]),
12629
12661
  d("div", er, [
12630
12662
  d("div", {
12631
12663
  class: "tipbtn left",
12632
12664
  txt: m.$l("Fixed"),
12633
- onClick: (B) => z(h, S)
12634
- }, [...E[4] || (E[4] = [
12665
+ onClick: (D) => v(_, y)
12666
+ }, [...M[4] || (M[4] = [
12635
12667
  d("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
12636
12668
  ])], 8, ar),
12637
12669
  d("div", {
12638
12670
  class: "tipbtn red left",
12639
12671
  txt: m.$l("Hide"),
12640
- onClick: (B) => s(h, S)
12641
- }, [...E[5] || (E[5] = [
12672
+ onClick: (D) => s(_, y)
12673
+ }, [...M[5] || (M[5] = [
12642
12674
  d("i", { class: "imicon im-close fs14" }, null, -1)
12643
12675
  ])], 8, lr)
12644
12676
  ])
@@ -12659,7 +12691,7 @@ const Ln = oa({
12659
12691
  }, 8, ["loading"]);
12660
12692
  };
12661
12693
  }
12662
- }), or = /* @__PURE__ */ Q(nr, [["__scopeId", "data-v-1927ce52"]]), tr = { class: "p16 border-b" }, rr = { class: "flexMode vc g8" }, ir = {
12694
+ }), or = /* @__PURE__ */ le(nr, [["__scopeId", "data-v-1927ce52"]]), tr = { class: "p16 border-b" }, rr = { class: "flexMode vc g8" }, ir = {
12663
12695
  key: 0,
12664
12696
  class: "flexMode vc g8"
12665
12697
  }, 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 +12715,7 @@ const Ln = oa({
12683
12715
  },
12684
12716
  emits: ["mounted"],
12685
12717
  setup(e, { emit: o }) {
12686
- const a = e, l = Y({
12718
+ const a = e, l = q({
12687
12719
  loading: !1,
12688
12720
  columns: [],
12689
12721
  checked: [],
@@ -12691,89 +12723,89 @@ const Ln = oa({
12691
12723
  onlySelection: !1,
12692
12724
  mounted: !1
12693
12725
  });
12694
- ne(() => {
12695
- r();
12726
+ ie(() => {
12727
+ i();
12696
12728
  });
12697
- const n = o, r = () => {
12698
- n("mounted"), c(), p();
12729
+ const n = o, i = () => {
12730
+ n("mounted"), c(), w();
12699
12731
  }, 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 = () => {
12732
+ const f = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), m = ["selection", "operation"];
12733
+ l.columns = f.filter((M) => !m.includes(M.type) && M.label);
12734
+ }, w = () => {
12703
12735
  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;
12736
+ }, v = (f, m) => {
12737
+ f ? m.children.forEach((M) => {
12738
+ M.visible = !0;
12739
+ }) : m.children.forEach((M) => {
12740
+ M.visible = !1;
12709
12741
  });
12710
12742
  }, b = () => {
12711
- window.$copy(f());
12743
+ window.$copy(g());
12712
12744
  }, s = async () => {
12713
12745
  l.loading = !0;
12714
12746
  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 });
12747
+ const f = g("download");
12748
+ let m = l.fileName || z.value;
12749
+ m && !m.toLowerCase().endsWith(".csv") && (m = `${m}.csv`), await Ga({ content: f, filename: m, bom: !0 });
12718
12750
  } finally {
12719
12751
  l.loading = !1;
12720
12752
  }
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;
12753
+ }, g = (f) => {
12754
+ const m = l.onlySelection ? a.selection : a.list, M = {}, u = [];
12755
+ l.columns.filter((O) => O.visible).forEach((O) => {
12756
+ u.push(window.$l(O.label)), M[O.prop] = !0;
12725
12757
  });
12726
- let T = "", h = [], S = v === "download" ? "," : " ";
12727
- (l.useHead || v) && (T = u.join(S) + `
12758
+ let S = "", _ = [], y = f === "download" ? "," : " ";
12759
+ (l.useHead || f) && (S = u.join(y) + `
12728
12760
  `);
12729
- let B = [], M;
12730
- return Object.keys(E).forEach((_, k) => {
12731
- _.includes("country") && (M = k);
12761
+ let D = [], T;
12762
+ return Object.keys(M).forEach((O, k) => {
12763
+ O.includes("country") && (T = k);
12732
12764
  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;
12765
+ m.forEach((K) => {
12766
+ K[O] !== void 0 && L.push(K[O]);
12767
+ }), D.push(L);
12768
+ }), D.forEach((O, k) => {
12769
+ !l.useCountryCode && T === k ? O.forEach((L, K) => {
12770
+ let J = L;
12771
+ 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;
12772
+ }) : O.forEach((L, K) => {
12773
+ _[K] ? _[K] += L + y : _[K] = L + y;
12742
12774
  });
12743
- }), `${T}${h.join(`
12775
+ }), `${S}${_.join(`
12744
12776
  `)}`;
12745
- }, w = C(() => {
12746
- const v = window.$d().format("YYYYMMDDHHmmss");
12747
- return `${a.tableName}_${v}`;
12748
- }), y = C(() => {
12749
- const v = {};
12777
+ }, z = C(() => {
12778
+ const f = window.$d().format("YYYYMMDDHHmmss");
12779
+ return `${a.tableName}_${f}`;
12780
+ }), h = C(() => {
12781
+ const f = {};
12750
12782
  return l.columns.forEach((m) => {
12751
- const E = m.type ? m.type : "normal", u = {
12752
- label: P[E],
12753
- type: E,
12783
+ const M = m.type ? m.type : "normal", u = {
12784
+ label: P[M],
12785
+ type: M,
12754
12786
  visible: 0
12755
12787
  };
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;
12788
+ f[M] ? (f[M].children.push(m), m.visible && f[M].visible++) : (u.children = [m], m.visible && u.visible++, f[M] = u);
12789
+ }), Object.keys(f).forEach((m) => {
12790
+ const M = f[m].visible === f[m].children.length, u = f[m].visible === 0;
12791
+ 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);
12792
+ }), f;
12761
12793
  }), P = {
12762
12794
  asa: "Asa Metrics",
12763
12795
  normal: "Base Info",
12764
12796
  mmp: "MMP Metrics"
12765
12797
  };
12766
12798
  "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" }), {
12799
+ const B = Be("asa.countryAll.obj");
12800
+ return (f, m) => {
12801
+ const M = F("el-checkbox"), u = F("el-button"), S = F("MvcAlert"), _ = F("el-switch"), y = F("Input"), D = F("DrawerArea");
12802
+ return A(), Q(D, oe(f.$attrs, { class: "MvcTableColumnDownload" }), {
12771
12803
  cancel: N(() => [
12772
- j(S, {
12804
+ j(y, {
12773
12805
  modelValue: t(l).fileName,
12774
- "onUpdate:modelValue": m[3] || (m[3] = (M) => t(l).fileName = M),
12806
+ "onUpdate:modelValue": m[3] || (m[3] = (T) => t(l).fileName = T),
12775
12807
  icon: "catalog",
12776
- placeholder: t(w),
12808
+ placeholder: t(z),
12777
12809
  class: "w600"
12778
12810
  }, {
12779
12811
  append: N(() => [
@@ -12785,7 +12817,7 @@ const Ln = oa({
12785
12817
  d("i", { class: "imicon im-download1" }, null, -1)
12786
12818
  ])]),
12787
12819
  default: N(() => [
12788
- le(" " + x(v.$l("Download")), 1)
12820
+ te(" " + x(f.$l("Download")), 1)
12789
12821
  ]),
12790
12822
  _: 1
12791
12823
  }, 8, ["loading"])
@@ -12796,19 +12828,19 @@ const Ln = oa({
12796
12828
  submit: N(() => [...m[6] || (m[6] = [])]),
12797
12829
  default: N(() => [
12798
12830
  d("div", tr, [
12799
- j(T, null, {
12831
+ j(S, null, {
12800
12832
  default: N(() => [
12801
12833
  d("div", rr, [
12802
- d("span", null, x(v.$l("Total")), 1),
12834
+ d("span", null, x(f.$l("Total")), 1),
12803
12835
  d("span", null, x(a.list.length), 1)
12804
12836
  ]),
12805
- a.selection.length ? (A(), O("div", ir, [
12806
- d("span", null, x(v.$l("Selection")), 1),
12837
+ a.selection.length ? (A(), E("div", ir, [
12838
+ d("span", null, x(f.$l("Selection")), 1),
12807
12839
  d("span", null, x(a.selection.length), 1),
12808
- j(E, {
12840
+ j(M, {
12809
12841
  modelValue: t(l).onlySelection,
12810
- "onUpdate:modelValue": m[0] || (m[0] = (M) => t(l).onlySelection = M),
12811
- label: v.$l("Only Selection")
12842
+ "onUpdate:modelValue": m[0] || (m[0] = (T) => t(l).onlySelection = T),
12843
+ label: f.$l("Only Selection")
12812
12844
  }, null, 8, ["modelValue", "label"])
12813
12845
  ])) : V("", !0),
12814
12846
  d("div", sr, [
@@ -12817,14 +12849,14 @@ const Ln = oa({
12817
12849
  d("i", { class: "imicon im-copy" }, null, -1)
12818
12850
  ])]),
12819
12851
  default: N(() => [
12820
- le(" " + x(v.$l("Copy to Clipboard")), 1)
12852
+ te(" " + x(f.$l("Copy to Clipboard")), 1)
12821
12853
  ]),
12822
12854
  _: 1
12823
12855
  }),
12824
- j(E, {
12856
+ j(M, {
12825
12857
  modelValue: t(l).useHead,
12826
- "onUpdate:modelValue": m[1] || (m[1] = (M) => t(l).useHead = M),
12827
- label: v.$l("With Table Head")
12858
+ "onUpdate:modelValue": m[1] || (m[1] = (T) => t(l).useHead = T),
12859
+ label: f.$l("With Table Head")
12828
12860
  }, null, 8, ["modelValue", "label"])
12829
12861
  ])
12830
12862
  ]),
@@ -12832,36 +12864,36 @@ const Ln = oa({
12832
12864
  })
12833
12865
  ]),
12834
12866
  d("div", cr, [
12835
- (A(!0), O(ee, null, oe(t(y), (M) => (A(), O("div", {
12836
- key: M.type
12867
+ (A(!0), E(ne, null, se(t(h), (T) => (A(), E("div", {
12868
+ key: T.type
12837
12869
  }, [
12838
12870
  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)
12871
+ d("span", dr, x(T.label), 1),
12872
+ j(M, {
12873
+ modelValue: T.checkstatus,
12874
+ "onUpdate:modelValue": (O) => T.checkstatus = O,
12875
+ indeterminate: T.indeterminate,
12876
+ label: f.$l("Check"),
12877
+ onChange: (O) => v(O, T)
12846
12878
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
12847
12879
  ]),
12848
- (A(!0), O(ee, null, oe(M.children, (_, k) => (A(), q(E, {
12849
- modelValue: _.visible,
12850
- "onUpdate:modelValue": (L) => _.visible = L,
12880
+ (A(!0), E(ne, null, se(T.children, (O, k) => (A(), Q(M, {
12881
+ modelValue: O.visible,
12882
+ "onUpdate:modelValue": (L) => O.visible = L,
12851
12883
  key: k,
12852
- label: _.label,
12853
- value: _.value,
12884
+ label: O.label,
12885
+ value: O.value,
12854
12886
  class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
12855
12887
  }, {
12856
12888
  default: N(() => {
12857
12889
  var L;
12858
12890
  return [
12859
12891
  d("div", mr, [
12860
- d("span", null, x(_.label), 1),
12861
- (L = _.prop) != null && L.includes("country") ? (A(), q(h, {
12892
+ d("span", null, x(O.label), 1),
12893
+ (L = O.prop) != null && L.includes("country") ? (A(), Q(_, {
12862
12894
  key: 0,
12863
12895
  modelValue: t(l).useCountryCode,
12864
- "onUpdate:modelValue": m[2] || (m[2] = (F) => t(l).useCountryCode = F),
12896
+ "onUpdate:modelValue": m[2] || (m[2] = (K) => t(l).useCountryCode = K),
12865
12897
  "inline-prompt": "",
12866
12898
  "active-text": "Use Alpha-2 Code",
12867
12899
  "inactive-text": "Use Country Name",
@@ -12971,10 +13003,10 @@ const Ln = oa({
12971
13003
  },
12972
13004
  emits: ["selection-change", "refresh"],
12973
13005
  setup(e, { expose: o, emit: a }) {
12974
- const l = e, n = Y({
13006
+ const l = e, n = q({
12975
13007
  loading: !0,
12976
13008
  selection: []
12977
- }), r = Y({
13009
+ }), i = q({
12978
13010
  list: [],
12979
13011
  total: 0,
12980
13012
  page: 1,
@@ -12983,7 +13015,7 @@ const Ln = oa({
12983
13015
  summaryType: "remote",
12984
13016
  nopagination: !1,
12985
13017
  params: {}
12986
- }), c = Y({
13018
+ }), c = q({
12987
13019
  tabelKey: 0,
12988
13020
  current: "",
12989
13021
  list: [
@@ -12997,147 +13029,147 @@ const Ln = oa({
12997
13029
  cpt: Ae(br)
12998
13030
  }
12999
13031
  ]
13000
- }), p = W(null), { proxy: z } = ce();
13032
+ }), w = X(null), { proxy: v } = ue();
13001
13033
  Da(() => {
13002
13034
  s();
13003
- }), ne(() => {
13004
- f();
13035
+ }), ie(() => {
13036
+ g();
13005
13037
  });
13006
13038
  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)
13039
+ n.loading = l.defaultLoading, l.pageSize && (i.pageSize = l.pageSize);
13040
+ }, g = () => {
13041
+ T(), l.defer === !1 && h();
13042
+ }, z = (r) => {
13043
+ h(r);
13044
+ }, h = async (r = {}) => {
13045
+ var H, Y;
13046
+ if (r.refresh && n.loading)
13015
13047
  return;
13016
13048
  n.loading = !0;
13017
- const g = {
13018
- pageSize: i.pageSize || r.pageSize,
13019
- pageStart: i.pageStart || r.page
13049
+ const p = {
13050
+ pageSize: r.pageSize || i.pageSize,
13051
+ pageStart: r.pageStart || i.page
13020
13052
  };
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")
13053
+ r.refresh && (p.remote = !0);
13054
+ const { list: I = [], total: $, summary: U } = await l.loadData(p) || {};
13055
+ 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;
13056
+ }, P = (r) => {
13057
+ r ? i.summary = r : i.summary = !1;
13058
+ }, B = (r) => {
13059
+ if (i.summaryType === "locale")
13028
13060
  return [];
13029
- if (r.summaryType === "remote") {
13030
- const g = ($, K) => {
13061
+ if (i.summaryType === "remote") {
13062
+ const p = ($, U) => {
13031
13063
  if ($ != null)
13032
- return typeof $ == "function" ? $(K) : $[K];
13064
+ return typeof $ == "function" ? $(U) : $[U];
13033
13065
  }, 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, $);
13066
+ var H, Y;
13067
+ const U = p(l.summaryMetric, $);
13068
+ return U !== void 0 ? U : p((Y = (H = globalThis.$config) == null ? void 0 : H.table) == null ? void 0 : Y.summaryMetric, $);
13037
13069
  };
13038
- return Va(i, r.summary, { resolveMetric: I });
13070
+ return Va(r, i.summary, { resolveMetric: I });
13039
13071
  }
13040
13072
  return [];
13041
- }, v = () => {
13042
- p.value.$refs.scrollBarRef.setScrollTop(0);
13073
+ }, f = () => {
13074
+ w.value.$refs.scrollBarRef.setScrollTop(0);
13043
13075
  }, m = () => {
13044
- y({
13076
+ h({
13045
13077
  pageStart: 1
13046
13078
  });
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);
13079
+ }, M = () => {
13080
+ h();
13081
+ }, u = (r) => {
13082
+ if (n.selection = r, b("selection-change", r), n.shiftKey) {
13083
+ 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;
13084
+ let H = $, Y = U;
13085
+ $ > U && (H = U, Y = $);
13086
+ for (let ae = H; ae <= Y; ae++)
13087
+ v.$refs.body.toggleRowSelection(i.list[ae], !0);
13056
13088
  }
13057
- }, T = () => {
13058
- n.loading || (y({ refresh: !0 }), b("refresh"));
13059
- }, h = () => {
13060
- c.current = 0;
13061
13089
  }, S = () => {
13090
+ n.loading || (h({ refresh: !0 }), b("refresh"));
13091
+ }, _ = () => {
13092
+ c.current = 0;
13093
+ }, y = () => {
13062
13094
  c.current = 1;
13063
- }, B = () => {
13095
+ }, D = () => {
13064
13096
  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);
13097
+ }, T = () => {
13098
+ document.addEventListener("keydown", O), document.addEventListener("keyup", k);
13099
+ }, O = (r) => {
13100
+ r.keyCode === 16 && (n.shiftKey = !0);
13101
+ }, k = (r) => {
13102
+ r.keyCode === 16 && (n.shiftKey = !1);
13071
13103
  }, 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(() => {
13104
+ document.removeEventListener("keydown", O), document.removeEventListener("keyup", k);
13105
+ }, K = ({ i: r, row: p }) => {
13106
+ i.list[r] = p;
13107
+ }, J = C(() => {
13108
+ var p;
13109
+ let r = l.height || ((p = globalThis.$config.options) == null ? void 0 : p.pageHeight) || 640;
13110
+ return l.noheader === !1 && (r -= 64), l.nofooter === !1 && (r -= 56), r -= l.minusHeight, r;
13111
+ }), R = C(() => !!i.summary), W = C(() => i.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), ee = C(() => {
13080
13112
  if (l.tool) {
13081
- const { column: i = !0, download: g = !0, refresh: I = !0 } = l.tool;
13113
+ const { column: r = !0, download: p = !0, refresh: I = !0 } = l.tool;
13082
13114
  return {
13083
- column: i,
13084
- download: g,
13115
+ column: r,
13116
+ download: p,
13085
13117
  refresh: I
13086
13118
  };
13087
13119
  } else
13088
13120
  return !1;
13089
13121
  });
13090
- return de(() => {
13122
+ return be(() => {
13091
13123
  L();
13092
13124
  }), 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", {
13125
+ initTable: z,
13126
+ editRow: K
13127
+ }), (r, p) => {
13128
+ const I = F("el-button"), $ = F("Loading"), U = F("el-table"), H = F("el-pagination"), Y = F("Drawer");
13129
+ return A(), E("div", vr, [
13130
+ l.noheader === !1 ? (A(), E("div", {
13099
13131
  key: 0,
13100
13132
  class: G(["flexMode hb g12 p16 bg-white", l.autoHeader ? "minh64" : "h64"])
13101
13133
  }, [
13102
13134
  d("div", {
13103
13135
  class: G(["flexMode vc flexGrow maxwp100", l.headerClass])
13104
13136
  }, [
13105
- J(i.$slots, "header", {}, void 0, !0)
13137
+ Z(r.$slots, "header", {}, void 0, !0)
13106
13138
  ], 2),
13107
- t(se) ? (A(), O("div", pr, [
13108
- t(se).refresh ? (A(), q(I, {
13139
+ t(ee) ? (A(), E("div", pr, [
13140
+ t(ee).refresh ? (A(), Q(I, {
13109
13141
  key: 0,
13110
- onClick: T
13142
+ onClick: S
13111
13143
  }, {
13112
- icon: N(() => [...g[2] || (g[2] = [
13144
+ icon: N(() => [...p[2] || (p[2] = [
13113
13145
  d("i", { class: "imicon im-reload" }, null, -1)
13114
13146
  ])]),
13115
13147
  default: N(() => [
13116
- le(" " + x(i.$l("Refresh")), 1)
13148
+ te(" " + x(r.$l("Refresh")), 1)
13117
13149
  ]),
13118
13150
  _: 1
13119
13151
  })) : V("", !0),
13120
- t(se).column ? (A(), q(I, {
13152
+ t(ee).column ? (A(), Q(I, {
13121
13153
  key: 1,
13122
- onClick: h
13154
+ onClick: _
13123
13155
  }, {
13124
- icon: N(() => [...g[3] || (g[3] = [
13156
+ icon: N(() => [...p[3] || (p[3] = [
13125
13157
  d("i", { class: "imicon im-layout" }, null, -1)
13126
13158
  ])]),
13127
13159
  default: N(() => [
13128
- le(" " + x(i.$l("Columns")), 1)
13160
+ te(" " + x(r.$l("Columns")), 1)
13129
13161
  ]),
13130
13162
  _: 1
13131
13163
  })) : V("", !0),
13132
- t(se).download ? (A(), q(I, {
13164
+ t(ee).download ? (A(), Q(I, {
13133
13165
  key: 2,
13134
- onClick: S
13166
+ onClick: y
13135
13167
  }, {
13136
- icon: N(() => [...g[4] || (g[4] = [
13168
+ icon: N(() => [...p[4] || (p[4] = [
13137
13169
  d("i", { class: "imicon im-download" }, null, -1)
13138
13170
  ])]),
13139
13171
  default: N(() => [
13140
- le(" " + x(i.$l("Download")), 1)
13172
+ te(" " + x(r.$l("Download")), 1)
13141
13173
  ]),
13142
13174
  _: 1
13143
13175
  })) : V("", !0)
@@ -13147,28 +13179,28 @@ const Ln = oa({
13147
13179
  j($, {
13148
13180
  loading: t(n).loading
13149
13181
  }, null, 8, ["loading"]),
13150
- (A(), q(K, {
13182
+ (A(), Q(U, {
13151
13183
  ref_key: "body",
13152
- ref: p,
13184
+ ref: w,
13153
13185
  key: t(n).tableKey,
13154
- height: t(U),
13155
- data: t(r).list,
13186
+ height: t(J),
13187
+ data: t(i).list,
13156
13188
  "default-expand-all": l.defaultExpandAll,
13157
13189
  "row-key": l.rowKey,
13158
13190
  stripe: "",
13159
13191
  border: "",
13160
- "show-summary": t(re),
13161
- "summary-method": D,
13192
+ "show-summary": t(R),
13193
+ "summary-method": B,
13162
13194
  class: "MainTable",
13163
13195
  onSelectionChange: u
13164
13196
  }, {
13165
13197
  default: N(() => [
13166
- j(t(Ct), ae({
13198
+ j(t(Ct), oe({
13167
13199
  "table-name": l.tableName,
13168
- column: t(se) ? t(se).column : !1
13169
- }, i.$attrs), {
13200
+ column: t(ee) ? t(ee).column : !1
13201
+ }, r.$attrs), {
13170
13202
  default: N(() => [
13171
- J(i.$slots, "default", {}, void 0, !0)
13203
+ Z(r.$slots, "default", {}, void 0, !0)
13172
13204
  ]),
13173
13205
  _: 3
13174
13206
  }, 16, ["table-name", "column"])
@@ -13176,34 +13208,34 @@ const Ln = oa({
13176
13208
  _: 3
13177
13209
  }, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
13178
13210
  ]),
13179
- l.nofooter === !1 ? (A(), O("div", hr, [
13211
+ l.nofooter === !1 ? (A(), E("div", hr, [
13180
13212
  j(H, {
13181
- "current-page": t(r).page,
13182
- "onUpdate:currentPage": g[0] || (g[0] = (X) => t(r).page = X),
13213
+ "current-page": t(i).page,
13214
+ "onUpdate:currentPage": p[0] || (p[0] = (ae) => t(i).page = ae),
13183
13215
  background: "",
13184
- total: t(r).total,
13185
- "default-page-size": t(r).pageSize,
13216
+ total: t(i).total,
13217
+ "default-page-size": t(i).pageSize,
13186
13218
  "page-sizes": l.pageSizes,
13187
13219
  "pager-count": 5,
13188
- layout: t(ve),
13220
+ layout: t(W),
13189
13221
  class: "wp100",
13190
13222
  onSizeChange: m,
13191
- onCurrentChange: E
13223
+ onCurrentChange: M
13192
13224
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
13193
13225
  ])) : V("", !0),
13194
- j(Z, {
13226
+ j(Y, {
13195
13227
  current: t(c).current,
13196
- "onUpdate:current": g[1] || (g[1] = (X) => t(c).current = X),
13228
+ "onUpdate:current": p[1] || (p[1] = (ae) => t(c).current = ae),
13197
13229
  "table-name": l.tableName,
13198
13230
  drawer: t(c).list,
13199
- list: t(r).list,
13231
+ list: t(i).list,
13200
13232
  selection: t(n).selection,
13201
- onInitColumn: B
13233
+ onInitColumn: D
13202
13234
  }, null, 8, ["current", "table-name", "drawer", "list", "selection"])
13203
13235
  ]);
13204
13236
  };
13205
13237
  }
13206
- }), gr = /* @__PURE__ */ Q(_r, [["__scopeId", "data-v-f79bf58d"]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13238
+ }), gr = /* @__PURE__ */ le(_r, [["__scopeId", "data-v-f79bf58d"]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13207
13239
  __proto__: null,
13208
13240
  default: gr
13209
13241
  }, Symbol.toStringTag, { value: "Module" })), Ar = { class: "minh480 pt16" }, zr = /* @__PURE__ */ Object.assign({
@@ -13253,24 +13285,24 @@ const Ln = oa({
13253
13285
  },
13254
13286
  emits: ["update:modelValue", "change"],
13255
13287
  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) => {
13288
+ 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
13289
  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;
13290
+ const g = a.options.find((z) => i(z) === s);
13291
+ l("change", s, g);
13292
+ }, w = C(
13293
+ () => a.options.find((s) => i(s) === a.modelValue)
13294
+ ), v = C(() => {
13295
+ const s = w.value;
13264
13296
  if (!(!s || !["Object", "Array"].includes(globalThis.$getType(s))))
13265
13297
  return s[a.componentKey];
13266
13298
  }), b = C(() => {
13267
- const s = p.value;
13299
+ const s = w.value;
13268
13300
  return !s || !["Object", "Array"].includes(globalThis.$getType(s)) ? {} : s[a.panePropsKey] ?? {};
13269
13301
  });
13270
- return (s, f) => {
13271
- const w = R("BtnGroup");
13272
- return A(), O("div", ae({ class: "MvcTabs" }, t(n)), [
13273
- j(w, {
13302
+ return (s, g) => {
13303
+ const z = F("BtnGroup");
13304
+ return A(), E("div", oe({ class: "MvcTabs" }, t(n)), [
13305
+ j(z, {
13274
13306
  "model-value": a.modelValue,
13275
13307
  options: a.options,
13276
13308
  "value-key": a.valueKey,
@@ -13281,7 +13313,7 @@ const Ln = oa({
13281
13313
  "onUpdate:modelValue": c
13282
13314
  }, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
13283
13315
  d("div", Ar, [
13284
- t(z) ? (A(), q(na(t(z)), we(ae({ key: 0 }, t(b))), null, 16)) : V("", !0)
13316
+ t(v) ? (A(), Q(na(t(v)), we(oe({ key: 0 }, t(b))), null, 16)) : V("", !0)
13285
13317
  ])
13286
13318
  ], 16);
13287
13319
  };
@@ -13337,95 +13369,95 @@ const Ln = oa({
13337
13369
  "focus"
13338
13370
  ],
13339
13371
  setup(e, { emit: o }) {
13340
- const a = e, l = be(), n = W(null);
13341
- let r = null;
13342
- const c = Y({
13372
+ const a = e, l = ve(), n = X(null);
13373
+ let i = null;
13374
+ const c = q({
13343
13375
  val: "",
13344
13376
  isComposing: !1,
13345
13377
  focused: !1
13346
- }), p = o, { proxy: z } = ce(), b = C(() => {
13378
+ }), w = o, { proxy: v } = ue(), b = C(() => {
13347
13379
  const { class: k, ...L } = l;
13348
13380
  return L;
13349
13381
  });
13350
- ne(() => {
13351
- var L, F;
13382
+ ie(() => {
13383
+ var L, K;
13352
13384
  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));
13385
+ 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
13386
  });
13355
13387
  const s = () => {
13356
13388
  c.isComposing = !0;
13357
- }, f = () => {
13358
- c.isComposing = !1, me(() => m(c.val));
13359
- }, w = (k) => {
13389
+ }, g = () => {
13390
+ c.isComposing = !1, de(() => m(c.val));
13391
+ }, z = (k) => {
13360
13392
  c.isComposing || m(k);
13361
- }, y = (k) => {
13362
- c.focused = !0, p("focus", k);
13393
+ }, h = (k) => {
13394
+ c.focused = !0, w("focus", k);
13363
13395
  }, P = (k) => {
13364
- c.focused = !1, p("blur", k);
13365
- }, D = (k) => {
13396
+ c.focused = !1, w("blur", k);
13397
+ }, B = (k) => {
13366
13398
  const L = String(k ?? "").split(/\r?\n/);
13367
13399
  return a.output === "array" ? L : L.join(",");
13368
- }, v = (k) => Array.isArray(k) ? k.join(`
13400
+ }, f = (k) => Array.isArray(k) ? k.join(`
13369
13401
  `) : String(k ?? "").replace(/,/g, `
13370
13402
  `), 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"];
13403
+ const L = B(k);
13404
+ w("update:modelValue", L), w("input", L);
13405
+ }, M = C(() => {
13406
+ if (!a.height) return v.$attrs["input-style"];
13375
13407
  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(() => ({
13408
+ return { ...v.$attrs["input-style"] && typeof v.$attrs["input-style"] == "object" ? { ...v.$attrs["input-style"] } : {}, height: k, minHeight: k };
13409
+ }), u = C(() => !!(v.$attrs.maxlength || S.value)), S = C(() => v.$attrs.max), _ = C(() => String(c.val ?? "").length > 0), y = C(() => !!l.placeholder), D = C(
13410
+ () => a.materialLabel && (c.focused || _.value || y.value)
13411
+ ), T = C(() => ({
13380
13412
  [l.class]: !!l.class,
13381
13413
  hasLabel: !!a.label,
13382
13414
  isMaterialLabel: !!(a.label && a.materialLabel),
13383
13415
  isTopLabel: !!(a.label && !a.materialLabel),
13384
- isFloat: B.value,
13416
+ isFloat: D.value,
13385
13417
  isFocused: c.focused,
13386
13418
  isDisabled: !!l.disabled,
13387
13419
  isTextarea: !0
13388
- })), _ = C(
13420
+ })), O = C(
13389
13421
  () => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
13390
13422
  );
13391
- return te(
13423
+ return re(
13392
13424
  () => a.modelValue,
13393
13425
  (k) => {
13394
- const L = v(k);
13426
+ const L = f(k);
13395
13427
  c.val !== L && (c.val = L);
13396
13428
  },
13397
13429
  { immediate: !0 }
13398
- ), de(() => {
13399
- r && (r.removeEventListener("compositionstart", s), r.removeEventListener("compositionend", f), r = null);
13430
+ ), be(() => {
13431
+ i && (i.removeEventListener("compositionstart", s), i.removeEventListener("compositionend", g), i = null);
13400
13432
  }), (k, L) => {
13401
- const F = R("el-input");
13402
- return A(), O("div", {
13403
- class: G(["MvcField MvcFieldTextarea", t(M)]),
13404
- style: ie(t(_))
13433
+ const K = F("el-input");
13434
+ return A(), E("div", {
13435
+ class: G(["MvcField MvcFieldTextarea", t(T)]),
13436
+ style: ce(t(O))
13405
13437
  }, [
13406
- a.label ? (A(), O("label", Sr, x(a.label), 1)) : V("", !0),
13407
- j(F, ae({
13438
+ a.label ? (A(), E("label", Sr, x(a.label), 1)) : V("", !0),
13439
+ j(K, oe({
13408
13440
  ref_key: "inputRef",
13409
13441
  ref: n,
13410
13442
  type: "textarea",
13411
13443
  modelValue: t(c).val,
13412
- "onUpdate:modelValue": L[0] || (L[0] = (U) => t(c).val = U),
13444
+ "onUpdate:modelValue": L[0] || (L[0] = (J) => t(c).val = J),
13413
13445
  rows: a.rows,
13414
13446
  style: t(b).style,
13415
- "input-style": t(E),
13447
+ "input-style": t(M),
13416
13448
  "show-word-limit": t(u),
13417
- maxlength: t(T),
13449
+ maxlength: t(S),
13418
13450
  resize: a.resize,
13419
13451
  class: "MvcTextarea"
13420
13452
  }, t(b), {
13421
- onInput: w,
13422
- onFocus: y,
13453
+ onInput: z,
13454
+ onFocus: h,
13423
13455
  onBlur: P
13424
13456
  }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength", "resize"])
13425
13457
  ], 6);
13426
13458
  };
13427
13459
  }
13428
- }), Cr = /* @__PURE__ */ Q(Tr, [["__scopeId", "data-v-90814c5c"]]), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13460
+ }), Cr = /* @__PURE__ */ le(Tr, [["__scopeId", "data-v-90814c5c"]]), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13429
13461
  __proto__: null,
13430
13462
  default: Cr
13431
13463
  }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
@@ -13477,11 +13509,13 @@ const xr = (e, o = {}) => {
13477
13509
  }, Nr = {
13478
13510
  name: "Matt Avias Frame",
13479
13511
  copyright: "©2026",
13480
- version: "1.1.3",
13512
+ version: "1.1.8",
13481
13513
  author: "Matt Avias",
13482
13514
  date: "2026-02-26",
13483
13515
  /** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
13484
13516
  lang: "en_us",
13517
+ /** 视觉主题名;main 为默认主题,glass 为内置毛玻璃主题 */
13518
+ theme: "main",
13485
13519
  /** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
13486
13520
  table: {
13487
13521
  /** 同 Table 的 summary-metric:{ [prop]: { unit, precision, currency } } 或 (prop) => metric */
@@ -13513,7 +13547,7 @@ const xr = (e, o = {}) => {
13513
13547
  export {
13514
13548
  Tn as D,
13515
13549
  el as M,
13516
- Q as _,
13550
+ le as _,
13517
13551
  Jr as a,
13518
13552
  on as b,
13519
13553
  Ie as c,