mvframe 1.0.83 → 1.0.88

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,9 +2,9 @@ import { u as Ol } from "./util.js";
2
2
  import { d as Ml } from "./directive.js";
3
3
  import { s as Qe, p as el, a as $l } from "./store-shared.js";
4
4
  import { createRouter as zl, createWebHistory as El, useRoute as ll, useRouter as al } from "vue-router";
5
- import { computed as x, openBlock as T, createElementBlock as M, mergeProps as ee, unref as n, Fragment as Q, renderList as ne, normalizeClass as B, createCommentVNode as U, createTextVNode as te, toDisplayString as j, renderSlot as H, createElementVNode as u, reactive as W, onUnmounted as de, watch as se, markRaw as we, resolveComponent as V, createVNode as N, withCtx as P, createBlock as q, resolveDynamicComponent as tl, nextTick as pe, getCurrentInstance as ce, ref as Z, onMounted as oe, normalizeStyle as re, defineComponent as ol, cloneVNode as Ie, h as Ve, inject as ge, withModifiers as me, defineAsyncComponent as nl, Teleport as Ll, Transition as sl, createSlots as be, normalizeProps as Te, guardReactiveProps as xe, useSlots as jl, useAttrs as ue, withKeys as Pl, createStaticVNode as Nl, isRef as rl, onBeforeMount as Rl } from "vue";
5
+ import { computed as k, openBlock as S, createElementBlock as $, mergeProps as le, unref as n, Fragment as ee, renderList as oe, normalizeClass as V, createCommentVNode as U, createTextVNode as ae, toDisplayString as E, renderSlot as J, createElementVNode as u, reactive as W, onUnmounted as ce, watch as ne, markRaw as we, resolveComponent as I, createVNode as N, withCtx as L, createBlock as q, resolveDynamicComponent as tl, nextTick as de, getCurrentInstance as ue, ref as Z, onMounted as te, normalizeStyle as se, defineComponent as ol, cloneVNode as Ie, h as Be, inject as ge, withModifiers as me, defineAsyncComponent as nl, Teleport as Ll, Transition as sl, createSlots as pe, normalizeProps as Te, guardReactiveProps as xe, useSlots as jl, useAttrs as be, withKeys as Pl, createStaticVNode as Nl, isRef as rl, onBeforeMount as Rl } from "vue";
6
6
  /* empty css */
7
- import { deepEqual as Be, isInView as Dl, loadMvframeTheme as Il, MVFRAME_STORAGE_LANG as Fe, download as Vl, useRemoteSummary as Bl, useOptions as Fl, useLang as Ul } from "./composition.js";
7
+ import { deepEqual as Ve, isInView as Dl, loadMvframeTheme as Il, MVFRAME_STORAGE_LANG as Fe, download as Bl, useRemoteSummary as Vl, useOptions as Fl, useLang as Ul } from "./composition.js";
8
8
  import Ue from "vuedraggable";
9
9
  import Gl from "./notify.js";
10
10
  const Kl = {
@@ -1139,7 +1139,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1139
1139
  campany: "MStars All Rights Reserved.",
1140
1140
  copyright: "© 2026 mstars.ai",
1141
1141
  email: "info@mstars.ai"
1142
- }, Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1142
+ }, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1143
1143
  __proto__: null,
1144
1144
  default: Ia
1145
1145
  }, Symbol.toStringTag, { value: "Module" })), Ge = Object.freeze([
@@ -3594,7 +3594,7 @@ function Je(e) {
3594
3594
  }
3595
3595
  return Object.freeze(o);
3596
3596
  }
3597
- function Ba(e) {
3597
+ function Va(e) {
3598
3598
  const o = /* @__PURE__ */ Object.create(null);
3599
3599
  for (const l of e) {
3600
3600
  const a = l == null ? void 0 : l.children;
@@ -3610,7 +3610,7 @@ const Fa = Object.freeze({
3610
3610
  all: Ge,
3611
3611
  allObj: Je(Ge),
3612
3612
  group: Ke,
3613
- groupObj: Ba(Ke),
3613
+ groupObj: Va(Ke),
3614
3614
  asa: He,
3615
3615
  asaObj: Je(He)
3616
3616
  }), Ua = {
@@ -3634,7 +3634,7 @@ const Fa = Object.freeze({
3634
3634
  ],
3635
3635
  /** `common/timezone.js`:Ads Manager 时区整点偏移选项与工具方法 */
3636
3636
  ...Da,
3637
- meta: Va,
3637
+ meta: Ba,
3638
3638
  /** `common/country/`:国家/地区列表与分组,含 `*Obj` 映射 */
3639
3639
  country: Fa
3640
3640
  }, Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -4060,7 +4060,7 @@ function De(e) {
4060
4060
  }
4061
4061
  De.lang = Za;
4062
4062
  De.jump = (e) => Se(he(Ne(e)));
4063
- function Vs(e) {
4063
+ function Bs(e) {
4064
4064
  !e || typeof e != "object" || Array.isArray(e) || (Le = Re(je(), e));
4065
4065
  }
4066
4066
  function Xa(e, o = {}) {
@@ -4183,19 +4183,19 @@ function _e(e, o) {
4183
4183
  );
4184
4184
  const A = document.createElement("div");
4185
4185
  A.className = "mvframeTopToastText", A.textContent = a, _.appendChild(A);
4186
- let p = null, r = null;
4186
+ let b = null, i = null;
4187
4187
  const g = () => {
4188
- p && (clearTimeout(p), p = null), r && (clearTimeout(r), r = null), _.parentNode && (_.classList.add("mvframeTopToastLeave"), r = window.setTimeout(() => {
4189
- _.remove(), r = null;
4188
+ b && (clearTimeout(b), b = null), i && (clearTimeout(i), i = null), _.parentNode && (_.classList.add("mvframeTopToastLeave"), i = window.setTimeout(() => {
4189
+ _.remove(), i = null;
4190
4190
  }, 200));
4191
4191
  };
4192
4192
  if (s || t === 0) {
4193
- const C = document.createElement("button");
4194
- C.type = "button", C.className = "mvframeTopToastClose", C.setAttribute("aria-label", "Close"), C.textContent = "×", C.addEventListener("click", g), _.appendChild(C);
4193
+ const T = document.createElement("button");
4194
+ T.type = "button", T.className = "mvframeTopToastClose", T.setAttribute("aria-label", "Close"), T.textContent = "×", T.addEventListener("click", g), _.appendChild(T);
4195
4195
  }
4196
- c.appendChild(_), t > 0 && (p = window.setTimeout(g, t));
4196
+ c.appendChild(_), t > 0 && (b = window.setTimeout(g, t));
4197
4197
  }
4198
- function Bs() {
4198
+ function Vs() {
4199
4199
  return {
4200
4200
  success: (e) => _e("success", e),
4201
4201
  warning: (e) => _e("warning", e),
@@ -4216,13 +4216,13 @@ const ye = (e) => {
4216
4216
  e.beforeEach((t, s, c) => {
4217
4217
  ye(!0), o && t.meta.admin ? l() ? c() : a && a(t, s, c) : c();
4218
4218
  }), e.afterEach((t, s, c) => {
4219
- var A, p;
4219
+ var A, b;
4220
4220
  if (c) {
4221
4221
  ye(!1);
4222
4222
  return;
4223
4223
  }
4224
4224
  const _ = Qe.tab(el);
4225
- document.title = ((A = t.meta) == null ? void 0 : A.title) || ((p = globalThis.$config) == null ? void 0 : p.name), _.saveTab(t), ye(!1);
4225
+ document.title = ((A = t.meta) == null ? void 0 : A.title) || ((b = globalThis.$config) == null ? void 0 : b.name), _.saveTab(t), ye(!1);
4226
4226
  }), e.onError(() => {
4227
4227
  ye(!1);
4228
4228
  });
@@ -4232,7 +4232,7 @@ const ye = (e) => {
4232
4232
  routes: o
4233
4233
  });
4234
4234
  l && l(c), at({ router: c, useAdmin: a, adminPermission: t, noaccess: s }), e.use(c), globalThis.$router = c;
4235
- }, X = (e, o) => {
4235
+ }, Q = (e, o) => {
4236
4236
  const l = e.__vccOpts || e;
4237
4237
  for (const [a, t] of o)
4238
4238
  l[a] = t;
@@ -4279,47 +4279,47 @@ const ye = (e) => {
4279
4279
  },
4280
4280
  emits: ["update:modelValue", "change"],
4281
4281
  setup(e, { emit: o }) {
4282
- const l = e, a = o, t = (p) => {
4283
- const r = p.value;
4284
- return r === l.modelValue && (r !== void 0 || l.modelValue !== void 0);
4285
- }, s = (p) => {
4286
- l.disabled || (a("update:modelValue", p.value), a("change", p.value));
4287
- }, c = x(() => {
4288
- const p = l.options, r = Array.isArray(p) ? p : [], g = l.valueKey, C = l.labelKey, y = l.iconKey;
4289
- return r.filter((E) => E != null).map((E) => typeof E == "object" && !Array.isArray(E) ? {
4290
- value: E[g],
4291
- label: E[C] ?? "",
4292
- icon: E[y] || "",
4293
- disabled: E.disabled,
4294
- raw: E
4282
+ const l = e, a = o, t = (b) => {
4283
+ const i = b.value;
4284
+ return i === l.modelValue && (i !== void 0 || l.modelValue !== void 0);
4285
+ }, s = (b) => {
4286
+ l.disabled || (a("update:modelValue", b.value), a("change", b.value));
4287
+ }, c = k(() => {
4288
+ const b = l.options, i = Array.isArray(b) ? b : [], g = l.valueKey, T = l.labelKey, y = l.iconKey;
4289
+ return i.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
4290
+ value: z[g],
4291
+ label: z[T] ?? "",
4292
+ icon: z[y] || "",
4293
+ disabled: z.disabled,
4294
+ raw: z
4295
4295
  } : {
4296
- value: E,
4297
- label: String(E),
4296
+ value: z,
4297
+ label: String(z),
4298
4298
  icon: "",
4299
- disabled: E.disabled,
4300
- raw: E
4299
+ disabled: z.disabled,
4300
+ raw: z
4301
4301
  });
4302
- }), _ = x(() => ({ small: "g4", default: "g6", large: "g8" })[l.size] ?? "g6"), A = x(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : "");
4303
- return (p, r) => (T(), M("div", ee({
4304
- class: ["MvcBtnGroup flexMode", [n(_), n(A), p.$attrs.class]]
4305
- }, p.$attrs, { role: "group" }), [
4306
- (T(!0), M(Q, null, ne(n(c), (g) => (T(), M("button", {
4302
+ }), _ = k(() => ({ small: "g4", default: "g6", large: "g8" })[l.size] ?? "g6"), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : "");
4303
+ return (b, i) => (S(), $("div", le({
4304
+ class: ["MvcBtnGroup flexMode", [n(_), n(A), b.$attrs.class]]
4305
+ }, b.$attrs, { role: "group" }), [
4306
+ (S(!0), $(ee, null, oe(n(c), (g) => (S(), $("button", {
4307
4307
  key: g.value,
4308
4308
  type: "button",
4309
- class: B(["btnItem", { isActive: t(g) }]),
4309
+ class: V(["btnItem", { isActive: t(g) }]),
4310
4310
  disabled: l.disabled || g.disabled,
4311
- onClick: (C) => s(g)
4311
+ onClick: (T) => s(g)
4312
4312
  }, [
4313
- g.icon ? (T(), M("i", {
4313
+ g.icon ? (S(), $("i", {
4314
4314
  key: 0,
4315
- class: B([[g.icon, l.iconClass], "noShrink fs16"]),
4315
+ class: V([[g.icon, l.iconClass], "noShrink fs16"]),
4316
4316
  "aria-hidden": "true"
4317
4317
  }, null, 2)) : U("", !0),
4318
- te(" " + j(p.$l(g.label)), 1)
4318
+ ae(" " + E(b.$l(g.label)), 1)
4319
4319
  ], 10, ot))), 128))
4320
4320
  ], 16));
4321
4321
  }
4322
- }), st = /* @__PURE__ */ X(nt, [["__scopeId", "data-v-39d01040"]]), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4322
+ }), st = /* @__PURE__ */ Q(nt, [["__scopeId", "data-v-97a2b9b8"]]), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4323
4323
  __proto__: null,
4324
4324
  default: st
4325
4325
  }, Symbol.toStringTag, { value: "Module" })), it = {
@@ -4363,29 +4363,29 @@ const ye = (e) => {
4363
4363
  },
4364
4364
  setup(e) {
4365
4365
  const o = e;
4366
- return (l, a) => (T(), M("div", ee({
4366
+ return (l, a) => (S(), $("div", le({
4367
4367
  class: ["MvcCard", { "MvcCard--fillParent": o.fillParent }]
4368
4368
  }, l.$attrs), [
4369
- o.title || l.$slots.header ? (T(), M("div", {
4369
+ o.title || l.$slots.header ? (S(), $("div", {
4370
4370
  key: 0,
4371
- class: B(["header", o.headerClass])
4371
+ class: V(["header", o.headerClass])
4372
4372
  }, [
4373
- l.$slots.header ? H(l.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (T(), M("span", it, j(o.title), 1)) : U("", !0)
4373
+ l.$slots.header ? J(l.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (S(), $("span", it, E(o.title), 1)) : U("", !0)
4374
4374
  ], 2)) : U("", !0),
4375
4375
  u("div", {
4376
- class: B(["body", o.bodyClass])
4376
+ class: V(["body", o.bodyClass])
4377
4377
  }, [
4378
- H(l.$slots, "default", {}, void 0, !0)
4378
+ J(l.$slots, "default", {}, void 0, !0)
4379
4379
  ], 2),
4380
- l.$slots.footer ? (T(), M("div", {
4380
+ l.$slots.footer ? (S(), $("div", {
4381
4381
  key: 1,
4382
- class: B(["footer", o.footerClass])
4382
+ class: V(["footer", o.footerClass])
4383
4383
  }, [
4384
- H(l.$slots, "footer", {}, void 0, !0)
4384
+ J(l.$slots, "footer", {}, void 0, !0)
4385
4385
  ], 2)) : U("", !0)
4386
4386
  ], 16));
4387
4387
  }
4388
- }), ct = /* @__PURE__ */ X(ut, [["__scopeId", "data-v-610b0b4c"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4388
+ }), ct = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-610b0b4c"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4389
4389
  __proto__: null,
4390
4390
  default: ct
4391
4391
  }, Symbol.toStringTag, { value: "Module" })), pt = { class: "MvcDrawer" }, bt = { class: "dragArea" }, ft = {
@@ -4427,79 +4427,79 @@ const ye = (e) => {
4427
4427
  }), s = o, c = () => {
4428
4428
  t.mounted = !0;
4429
4429
  }, _ = () => {
4430
- s("update:current", ""), t.mounted = !1, D.value ? t.drawerInfo = a() : pe(() => {
4430
+ s("update:current", ""), t.mounted = !1, B.value ? t.drawerInfo = a() : de(() => {
4431
4431
  delete t.drawerInfo.cpt;
4432
4432
  });
4433
4433
  }, A = () => {
4434
4434
  t.drawerInfo.visible && (s("update:current", ""), t.drawerInfo.visible = !1);
4435
- }, p = () => {
4435
+ }, b = () => {
4436
4436
  t.drawerInfo.cpt = t.cpt;
4437
- }, r = (v) => {
4438
- t.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", C);
4439
- }, g = (v) => {
4440
- var d, O;
4441
- if (v.x > 80) {
4442
- const k = (((O = (d = globalThis.$config) == null ? void 0 : d.options) == null ? void 0 : O.innerWidth) ?? window.innerWidth) - v.x;
4443
- k > 480 && (t.drawerInfo.size = k);
4437
+ }, i = (m) => {
4438
+ t.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", T);
4439
+ }, g = (m) => {
4440
+ var p, x;
4441
+ if (m.x > 80) {
4442
+ const C = (((x = (p = globalThis.$config) == null ? void 0 : p.options) == null ? void 0 : x.innerWidth) ?? window.innerWidth) - m.x;
4443
+ C > 480 && (t.drawerInfo.size = C);
4444
4444
  }
4445
- }, C = () => {
4445
+ }, T = () => {
4446
4446
  t.dragMode = !1, y();
4447
4447
  }, y = () => {
4448
- document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", C);
4449
- }, E = x(() => !!t.drawerInfo.title), D = x(() => !l.keepalive);
4450
- return de(() => {
4448
+ document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", T);
4449
+ }, z = k(() => !!t.drawerInfo.title), B = k(() => !l.keepalive);
4450
+ return ce(() => {
4451
4451
  y();
4452
- }), se(
4452
+ }), ne(
4453
4453
  () => l.current,
4454
- (v) => {
4454
+ (m) => {
4455
4455
  if (l.drawer.length)
4456
- if (window.$getType(v) === "Number") {
4457
- const d = l.drawer[v], O = {
4458
- ...d,
4459
- size: d.size || 640,
4460
- direction: d.direction || "rtl",
4456
+ if (window.$getType(m) === "Number") {
4457
+ const p = l.drawer[m], x = {
4458
+ ...p,
4459
+ size: p.size || 640,
4460
+ direction: p.direction || "rtl",
4461
4461
  visible: !0
4462
4462
  };
4463
- O.cpt ? (t.cpt = we(O.cpt), delete O.cpt) : (t.cpt = null, c()), t.drawerInfo = O;
4463
+ x.cpt ? (t.cpt = we(x.cpt), delete x.cpt) : (t.cpt = null, c()), t.drawerInfo = x;
4464
4464
  } else
4465
4465
  A();
4466
4466
  }
4467
- ), (v, d) => {
4468
- const O = V("Loading"), i = V("el-drawer");
4469
- return T(), M("div", pt, [
4470
- N(i, {
4467
+ ), (m, p) => {
4468
+ const x = I("Loading"), d = I("el-drawer");
4469
+ return S(), $("div", pt, [
4470
+ N(d, {
4471
4471
  modelValue: n(t).drawerInfo.visible,
4472
- "onUpdate:modelValue": d[0] || (d[0] = (k) => n(t).drawerInfo.visible = k),
4473
- title: v.$l(n(t).drawerInfo.title),
4474
- "with-header": n(E),
4472
+ "onUpdate:modelValue": p[0] || (p[0] = (C) => n(t).drawerInfo.visible = C),
4473
+ title: m.$l(n(t).drawerInfo.title),
4474
+ "with-header": n(z),
4475
4475
  "append-to-body": "",
4476
4476
  size: n(t).drawerInfo.size,
4477
4477
  height: n(t).drawerInfo.height,
4478
4478
  direction: n(t).drawerInfo.direction,
4479
- "destroy-on-close": n(D),
4479
+ "destroy-on-close": n(B),
4480
4480
  onClosed: _,
4481
- onOpened: p,
4482
- class: B(n(t).dragMode && "notransition noevent noselect")
4481
+ onOpened: b,
4482
+ class: V(n(t).dragMode && "notransition noevent noselect")
4483
4483
  }, {
4484
- default: P(() => [
4484
+ default: L(() => [
4485
4485
  u("div", bt, [
4486
4486
  u("div", {
4487
- class: B(["dragHandle", n(t).dragMode && "active"]),
4488
- onMousedown: r
4489
- }, [...d[1] || (d[1] = [
4487
+ class: V(["dragHandle", n(t).dragMode && "active"]),
4488
+ onMousedown: i
4489
+ }, [...p[1] || (p[1] = [
4490
4490
  u("i", { class: "imicon im-handle fs12" }, null, -1)
4491
4491
  ])], 34)
4492
4492
  ]),
4493
- n(E) ? U("", !0) : (T(), M("div", ft, [
4493
+ n(z) ? U("", !0) : (S(), $("div", ft, [
4494
4494
  u("i", {
4495
4495
  class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
4496
4496
  onClick: A
4497
4497
  })
4498
4498
  ])),
4499
- N(O, {
4499
+ N(x, {
4500
4500
  loading: !n(t).mounted
4501
4501
  }, null, 8, ["loading"]),
4502
- v.$slots.default ? H(v.$slots, "default", { key: 1 }, void 0, !0) : (T(), q(tl(n(t).drawerInfo.cpt), ee({ key: 2 }, v.$attrs, {
4502
+ m.$slots.default ? J(m.$slots, "default", { key: 1 }, void 0, !0) : (S(), q(tl(n(t).drawerInfo.cpt), le({ key: 2 }, m.$attrs, {
4503
4503
  params: n(t).drawerInfo.params,
4504
4504
  onClose: A,
4505
4505
  onMounted: c
@@ -4510,7 +4510,7 @@ const ye = (e) => {
4510
4510
  ]);
4511
4511
  };
4512
4512
  }
4513
- }), vt = /* @__PURE__ */ X(mt, [["__scopeId", "data-v-3bd55143"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4513
+ }), vt = /* @__PURE__ */ Q(mt, [["__scopeId", "data-v-3bd55143"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4514
4514
  __proto__: null,
4515
4515
  default: vt
4516
4516
  }, Symbol.toStringTag, { value: "Module" })), gt = {
@@ -4577,8 +4577,8 @@ const ye = (e) => {
4577
4577
  },
4578
4578
  emits: ["close", "submit", "cancel", "mounted"],
4579
4579
  setup(e, { expose: o, emit: l }) {
4580
- const a = e, { proxy: t } = ce(), s = Z(), c = l;
4581
- oe(() => {
4580
+ const a = e, { proxy: t } = ue(), s = Z(), c = l;
4581
+ te(() => {
4582
4582
  c("mounted");
4583
4583
  });
4584
4584
  const _ = () => {
@@ -4588,85 +4588,85 @@ const ye = (e) => {
4588
4588
  };
4589
4589
  o({
4590
4590
  toClose: _,
4591
- scrollTo: (C) => {
4591
+ scrollTo: (T) => {
4592
4592
  var y;
4593
- (y = s.value) == null || y.setScrollTop(C);
4593
+ (y = s.value) == null || y.setScrollTop(T);
4594
4594
  }
4595
4595
  });
4596
- const r = x(() => [a.loading && "noevent", t.$attrs.class]), g = x(() => {
4596
+ const i = k(() => [a.loading && "noevent", t.$attrs.class]), g = k(() => {
4597
4597
  const y = a.nofooter ? 0 : 4;
4598
4598
  return {
4599
4599
  height: a.height ? `${3.5 + y + a.height / 16}rem` : `calc(100vh - ${3.5}rem - ${y}rem - ${a.minusHeight / 16}rem)`
4600
4600
  };
4601
4601
  });
4602
- return (C, y) => {
4603
- const E = V("Loading"), D = V("el-scrollbar"), v = V("el-button");
4604
- return T(), M(Q, null, [
4602
+ return (T, y) => {
4603
+ const z = I("Loading"), B = I("el-scrollbar"), m = I("el-button");
4604
+ return S(), $(ee, null, [
4605
4605
  u("div", {
4606
- class: B(["MvcDrawerBody VAfter", n(r)]),
4607
- style: re(n(g))
4606
+ class: V(["MvcDrawerBody VAfter", n(i)]),
4607
+ style: se(n(g))
4608
4608
  }, [
4609
- N(E, {
4609
+ N(z, {
4610
4610
  loading: a.loading,
4611
4611
  txt: a.loadingTxt
4612
4612
  }, null, 8, ["loading", "txt"]),
4613
- a.noscroll ? H(C.$slots, "default", { key: 0 }, void 0, !0) : (T(), q(D, {
4613
+ a.noscroll ? J(T.$slots, "default", { key: 0 }, void 0, !0) : (S(), q(B, {
4614
4614
  key: 1,
4615
4615
  ref_key: "scrollbar",
4616
4616
  ref: s,
4617
4617
  class: "wp100"
4618
4618
  }, {
4619
- default: P(() => [
4620
- H(C.$slots, "default", {}, void 0, !0)
4619
+ default: L(() => [
4620
+ J(T.$slots, "default", {}, void 0, !0)
4621
4621
  ]),
4622
4622
  _: 3
4623
4623
  }, 512))
4624
4624
  ], 6),
4625
- a.nofooter ? U("", !0) : (T(), M("div", {
4625
+ a.nofooter ? U("", !0) : (S(), $("div", {
4626
4626
  key: 0,
4627
- class: B(["drawerFooter relative flexMode vc hb h64", a.footerClass])
4627
+ class: V(["drawerFooter relative flexMode vc hb h64", a.footerClass])
4628
4628
  }, [
4629
- C.$slots.footer ? H(C.$slots, "footer", { key: 0 }, void 0, !0) : (T(), M("div", gt, [
4630
- C.$slots.cancel ? H(C.$slots, "cancel", { key: 0 }, void 0, !0) : a.showCancel ? (T(), q(v, {
4629
+ T.$slots.footer ? J(T.$slots, "footer", { key: 0 }, void 0, !0) : (S(), $("div", gt, [
4630
+ T.$slots.cancel ? J(T.$slots, "cancel", { key: 0 }, void 0, !0) : a.showCancel ? (S(), q(m, {
4631
4631
  key: 1,
4632
4632
  plain: "",
4633
4633
  size: "large",
4634
4634
  onClick: _
4635
4635
  }, {
4636
- icon: P(() => [
4636
+ icon: L(() => [
4637
4637
  u("i", {
4638
- class: B(["imicon", a.cancelIcon])
4638
+ class: V(["imicon", a.cancelIcon])
4639
4639
  }, null, 2)
4640
4640
  ]),
4641
- default: P(() => [
4642
- u("span", _t, j(C.$l(a.cancelTxt)), 1)
4641
+ default: L(() => [
4642
+ u("span", _t, E(T.$l(a.cancelTxt)), 1)
4643
4643
  ]),
4644
4644
  _: 1
4645
4645
  })) : U("", !0),
4646
- C.$slots.submit ? H(C.$slots, "submit", { key: 2 }, void 0, !0) : a.showConfirm ? (T(), q(v, {
4646
+ T.$slots.submit ? J(T.$slots, "submit", { key: 2 }, void 0, !0) : a.showConfirm ? (S(), q(m, {
4647
4647
  key: 3,
4648
4648
  type: "primary",
4649
4649
  size: "large",
4650
4650
  loading: a.loading,
4651
4651
  onClick: A
4652
4652
  }, {
4653
- icon: P(() => [
4653
+ icon: L(() => [
4654
4654
  u("i", {
4655
- class: B(["imicon", a.confirmIcon])
4655
+ class: V(["imicon", a.confirmIcon])
4656
4656
  }, null, 2)
4657
4657
  ]),
4658
- default: P(() => [
4659
- u("span", yt, j(C.$l(a.confirmTxt)), 1)
4658
+ default: L(() => [
4659
+ u("span", yt, E(T.$l(a.confirmTxt)), 1)
4660
4660
  ]),
4661
4661
  _: 1
4662
4662
  }, 8, ["loading"])) : U("", !0),
4663
- C.$slots.footerright ? H(C.$slots, "footerright", { key: 4 }, void 0, !0) : U("", !0)
4663
+ T.$slots.footerright ? J(T.$slots, "footerright", { key: 4 }, void 0, !0) : U("", !0)
4664
4664
  ]))
4665
4665
  ], 2))
4666
4666
  ], 64);
4667
4667
  };
4668
4668
  }
4669
- }), St = /* @__PURE__ */ X(wt, [["__scopeId", "data-v-33acb7b3"]]), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4669
+ }), St = /* @__PURE__ */ Q(wt, [["__scopeId", "data-v-33acb7b3"]]), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4670
4670
  __proto__: null,
4671
4671
  default: St
4672
4672
  }, Symbol.toStringTag, { value: "Module" }));
@@ -4674,7 +4674,7 @@ function At(e) {
4674
4674
  var l;
4675
4675
  if (e == null) return [];
4676
4676
  const o = Array.isArray(e) ? e : [e];
4677
- if (o.length === 1 && ((l = o[0]) == null ? void 0 : l.type) === Q) {
4677
+ if (o.length === 1 && ((l = o[0]) == null ? void 0 : l.type) === ee) {
4678
4678
  const a = o[0].children;
4679
4679
  return a == null ? [] : Array.isArray(a) ? a : [a];
4680
4680
  }
@@ -4693,24 +4693,24 @@ const Ct = ol({
4693
4693
  setup(e, o) {
4694
4694
  function l(t) {
4695
4695
  if (!Array.isArray(t)) return [];
4696
- const s = t.filter((p) => p && p.children !== "v-if"), c = s.length !== t.length, _ = s.map((p) => a(p));
4697
- return c || _.some((p, r) => p !== s[r]) ? _ : t;
4696
+ const s = t.filter((b) => b && b.children !== "v-if"), c = s.length !== t.length, _ = s.map((b) => a(b));
4697
+ return c || _.some((b, i) => b !== s[i]) ? _ : t;
4698
4698
  }
4699
4699
  function a(t) {
4700
- var _, A, p, r;
4700
+ var _, A, b, i;
4701
4701
  if (!t) return t;
4702
4702
  const s = t.children, c = window.$getType(s);
4703
4703
  if (((_ = t.type) == null ? void 0 : _.name) === "ElFormItem" && ((A = t.props) == null ? void 0 : A.label) != null) {
4704
- const g = ((r = (p = t.props.label).$l) == null ? void 0 : r.call(p)) || t.props.label;
4704
+ const g = ((i = (b = t.props.label).$l) == null ? void 0 : i.call(b)) || t.props.label;
4705
4705
  if (c === "Array") {
4706
- const C = l(s);
4707
- return qe(C, s) ? Ie(t, { label: g }) : Ve(t.type, { ...t.props || {}, label: g }, C);
4706
+ const T = l(s);
4707
+ return qe(T, s) ? Ie(t, { label: g }) : Be(t.type, { ...t.props || {}, label: g }, T);
4708
4708
  }
4709
4709
  return Ie(t, { label: g });
4710
4710
  }
4711
4711
  if (c === "Array") {
4712
4712
  const g = l(s);
4713
- return qe(g, s) ? t : Ve(t.type, t.props, g);
4713
+ return qe(g, s) ? t : Be(t.type, t.props, g);
4714
4714
  }
4715
4715
  return t;
4716
4716
  }
@@ -4741,34 +4741,34 @@ const Ct = ol({
4741
4741
  setup(e, { expose: o, emit: l }) {
4742
4742
  const a = e, t = W({
4743
4743
  form: {}
4744
- }), { proxy: s } = ce(), c = l, _ = async () => {
4745
- var r;
4744
+ }), { proxy: s } = ue(), c = l, _ = async () => {
4745
+ var i;
4746
4746
  try {
4747
- return (r = s.$refs) != null && r.form ? (await s.$refs.form.validate(), A()) : !1;
4747
+ return (i = s.$refs) != null && i.form ? (await s.$refs.form.validate(), A()) : !1;
4748
4748
  } catch {
4749
4749
  return !1;
4750
4750
  }
4751
- }, A = () => t.form, p = x(() => {
4752
- const r = {};
4751
+ }, A = () => t.form, b = k(() => {
4752
+ const i = {};
4753
4753
  for (let g in a.rules)
4754
- r[g] = a.rules[g].map((C) => ({
4755
- ...C,
4756
- ...C.message && { message: window.$l(C.message) }
4754
+ i[g] = a.rules[g].map((T) => ({
4755
+ ...T,
4756
+ ...T.message && { message: window.$l(T.message) }
4757
4757
  }));
4758
- return r;
4758
+ return i;
4759
4759
  });
4760
- return se(
4760
+ return ne(
4761
4761
  () => t.form,
4762
- (r) => {
4763
- r && !Be(r, a.modelValue) && c("update:modelValue", r);
4762
+ (i) => {
4763
+ i && !Ve(i, a.modelValue) && c("update:modelValue", i);
4764
4764
  },
4765
4765
  {
4766
4766
  deep: !0
4767
4767
  }
4768
- ), se(
4768
+ ), ne(
4769
4769
  () => a.modelValue,
4770
- (r) => {
4771
- r && !Be(r, t.form) && (t.form = r);
4770
+ (i) => {
4771
+ i && !Ve(i, t.form) && (t.form = i);
4772
4772
  },
4773
4773
  {
4774
4774
  immediate: !0,
@@ -4776,21 +4776,21 @@ const Ct = ol({
4776
4776
  }
4777
4777
  ), o({
4778
4778
  validate: _
4779
- }), (r, g) => {
4780
- const C = V("el-form");
4781
- return T(), M("div", kt, [
4782
- N(C, {
4779
+ }), (i, g) => {
4780
+ const T = I("el-form");
4781
+ return S(), $("div", kt, [
4782
+ N(T, {
4783
4783
  ref: "form",
4784
4784
  model: n(t).form,
4785
- rules: n(p),
4785
+ rules: n(b),
4786
4786
  size: a.size,
4787
4787
  "validate-on-rule-change": !1,
4788
4788
  "label-position": "top"
4789
4789
  }, {
4790
- default: P(() => [
4790
+ default: L(() => [
4791
4791
  N(n(Ct), null, {
4792
- default: P(() => [
4793
- H(r.$slots, "default")
4792
+ default: L(() => [
4793
+ J(i.$slots, "default")
4794
4794
  ]),
4795
4795
  _: 3
4796
4796
  })
@@ -4814,149 +4814,149 @@ const Ct = ol({
4814
4814
  pageScrolled: !1
4815
4815
  });
4816
4816
  let l = null, a = null;
4817
- const t = ge("store"), s = t.tab(), c = t.rmenu(), _ = ll(), A = al(), { proxy: p } = ce();
4818
- oe(() => {
4819
- r(), y();
4817
+ const t = ge("store"), s = t.tab(), c = t.rmenu(), _ = ll(), A = al(), { proxy: b } = ue();
4818
+ te(() => {
4819
+ i(), y();
4820
4820
  });
4821
- const r = () => {
4822
- p.$el.addEventListener("scroll", D);
4823
- }, g = (w) => {
4824
- let m = w == null ? void 0 : w.parentElement;
4825
- for (; m && m !== document.body; ) {
4826
- const { overflowY: $, overflow: I } = getComputedStyle(m), G = $ || I;
4827
- if ((G === "auto" || G === "scroll" || G === "overlay") && m.scrollHeight > m.clientHeight)
4828
- return m;
4829
- m = m.parentElement;
4821
+ const i = () => {
4822
+ b.$el.addEventListener("scroll", B);
4823
+ }, g = (f) => {
4824
+ let O = f == null ? void 0 : f.parentElement;
4825
+ for (; O && O !== document.body; ) {
4826
+ const { overflowY: M, overflow: j } = getComputedStyle(O), F = M || j;
4827
+ if ((F === "auto" || F === "scroll" || F === "overlay") && O.scrollHeight > O.clientHeight)
4828
+ return O;
4829
+ O = O.parentElement;
4830
4830
  }
4831
4831
  return null;
4832
- }, C = () => {
4833
- const w = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, m = l ? l.scrollTop : 0;
4834
- o.pageScrolled = w > 0 || m > 0;
4832
+ }, T = () => {
4833
+ const f = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, O = l ? l.scrollTop : 0;
4834
+ o.pageScrolled = f > 0 || O > 0;
4835
4835
  }, y = () => {
4836
- l = g(p.$el);
4837
- const w = () => {
4838
- C();
4836
+ l = g(b.$el);
4837
+ const f = () => {
4838
+ T();
4839
4839
  };
4840
- window.addEventListener("scroll", w, { passive: !0 }), l && l.addEventListener("scroll", w, { passive: !0 }), C(), a = () => {
4841
- window.removeEventListener("scroll", w), l && l.removeEventListener("scroll", w), l = null;
4840
+ window.addEventListener("scroll", f, { passive: !0 }), l && l.addEventListener("scroll", f, { passive: !0 }), T(), a = () => {
4841
+ window.removeEventListener("scroll", f), l && l.removeEventListener("scroll", f), l = null;
4842
4842
  };
4843
- }, E = () => {
4844
- const w = localStorage.getItem("tabsScroll");
4845
- w && (p.$el.scrollLeft = Number(w));
4846
- }, D = (w) => {
4847
- let m = null;
4848
- m !== null && clearTimeout(m), m = setTimeout(function() {
4849
- const { scrollLeft: $ } = w.target;
4850
- localStorage.setItem("tabsScroll", $);
4843
+ }, z = () => {
4844
+ const f = localStorage.getItem("tabsScroll");
4845
+ f && (b.$el.scrollLeft = Number(f));
4846
+ }, B = (f) => {
4847
+ let O = null;
4848
+ O !== null && clearTimeout(O), O = setTimeout(function() {
4849
+ const { scrollLeft: M } = f.target;
4850
+ localStorage.setItem("tabsScroll", M);
4851
4851
  }, 100);
4852
- }, v = () => {
4853
- pe(() => {
4854
- const w = p.$el.querySelector(`#tab_${S.value}`);
4855
- Dl(p.$el, w) ? E() : p.$el.scrollLeft = (w == null ? void 0 : w.offsetLeft) - 16;
4852
+ }, m = () => {
4853
+ de(() => {
4854
+ const f = b.$el.querySelector(`#tab_${w.value}`);
4855
+ Dl(b.$el, f) ? z() : b.$el.scrollLeft = (f == null ? void 0 : f.offsetLeft) - 16;
4856
4856
  });
4857
- }, d = (w, m, $) => {
4857
+ }, p = (f, O, M) => {
4858
4858
  c.saveData("type", "tabManager"), c.saveData("options", [
4859
4859
  {
4860
4860
  label: "Close",
4861
4861
  value: "close",
4862
4862
  icon: "im-close",
4863
- disabled: h.value.length === 1,
4863
+ disabled: v.value.length === 1,
4864
4864
  cb: () => {
4865
- s.closeTab(m, $);
4865
+ s.closeTab(O, M);
4866
4866
  }
4867
4867
  },
4868
4868
  {
4869
4869
  label: "Close Right",
4870
4870
  value: "closeRight",
4871
4871
  icon: "im-right",
4872
- disabled: $ === h.value.length - 1,
4872
+ disabled: M === v.value.length - 1,
4873
4873
  cb: () => {
4874
- s.closeRightTab(m, $);
4874
+ s.closeRightTab(O, M);
4875
4875
  }
4876
4876
  },
4877
4877
  {
4878
4878
  label: "Close Left",
4879
4879
  value: "closeLeft",
4880
4880
  icon: "im-left",
4881
- disabled: $ === 0,
4881
+ disabled: M === 0,
4882
4882
  cb: () => {
4883
- s.closeLeftTab(m, $);
4883
+ s.closeLeftTab(O, M);
4884
4884
  }
4885
4885
  },
4886
4886
  {
4887
4887
  label: "Close Other",
4888
4888
  value: "closeOther",
4889
4889
  icon: "im-left",
4890
- disabled: h.value.length === 1,
4890
+ disabled: v.value.length === 1,
4891
4891
  cb: () => {
4892
- s.closeOtherTab(m, $);
4892
+ s.closeOtherTab(O, M);
4893
4893
  }
4894
4894
  }
4895
4895
  ]), c.show({
4896
4896
  position: {
4897
- x: w.clientX,
4898
- y: w.clientY
4897
+ x: f.clientX,
4898
+ y: f.clientY
4899
4899
  }
4900
4900
  });
4901
- }, O = (w) => {
4902
- const m = w.name === S.value, $ = JSON.stringify(w.params ?? {}) === JSON.stringify(_.params ?? {}), I = JSON.stringify(w.query ?? {}) === JSON.stringify(_.query ?? {});
4903
- (!m || !$ || !I) && A.push({
4904
- name: w.name,
4905
- params: w.params,
4906
- query: w.query
4901
+ }, x = (f) => {
4902
+ const O = f.name === w.value, M = JSON.stringify(f.params ?? {}) === JSON.stringify(_.params ?? {}), j = JSON.stringify(f.query ?? {}) === JSON.stringify(_.query ?? {});
4903
+ (!O || !M || !j) && A.push({
4904
+ name: f.name,
4905
+ params: f.params,
4906
+ query: f.query
4907
4907
  });
4908
- }, i = (w) => {
4909
- console.info(w.name, S.value), w.name === S.value ? A.replace({ name: w.name, query: { t: +/* @__PURE__ */ new Date() } }) : O(w);
4910
- }, k = (w, m) => {
4911
- s.closeTab(w, m);
4912
- }, h = x(() => s.tabs), S = x(() => _.name), z = x(() => h.value.length);
4913
- return se(
4914
- () => z.value,
4915
- (w) => {
4916
- localStorage.setItem("tabs", JSON.stringify(h.value)), w && v();
4908
+ }, d = (f) => {
4909
+ console.info(f.name, w.value), f.name === w.value ? A.replace({ name: f.name, query: { t: +/* @__PURE__ */ new Date() } }) : x(f);
4910
+ }, C = (f, O) => {
4911
+ s.closeTab(f, O);
4912
+ }, v = k(() => s.tabs), w = k(() => _.name), D = k(() => v.value.length);
4913
+ return ne(
4914
+ () => D.value,
4915
+ (f) => {
4916
+ localStorage.setItem("tabs", JSON.stringify(v.value)), f && m();
4917
4917
  },
4918
4918
  {
4919
4919
  immediate: !0
4920
4920
  }
4921
- ), se(
4922
- () => S.value,
4921
+ ), ne(
4922
+ () => w.value,
4923
4923
  () => {
4924
- pe(() => {
4925
- C();
4924
+ de(() => {
4925
+ T();
4926
4926
  });
4927
4927
  }
4928
- ), de(() => {
4929
- p.$el.removeEventListener("scroll", D), a == null || a(), a = null;
4930
- }), (w, m) => (T(), M("div", Mt, [
4928
+ ), ce(() => {
4929
+ b.$el.removeEventListener("scroll", B), a == null || a(), a = null;
4930
+ }), (f, O) => (S(), $("div", Mt, [
4931
4931
  u("div", $t, [
4932
- (T(!0), M(Q, null, ne(n(h), ($, I) => (T(), M("div", {
4933
- key: $.name,
4934
- id: `tab_${$.name}`,
4935
- class: B(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
4936
- $.name === n(S) && "active",
4937
- n(h).length > 1 && "hoverItem"
4932
+ (S(!0), $(ee, null, oe(n(v), (M, j) => (S(), $("div", {
4933
+ key: M.name,
4934
+ id: `tab_${M.name}`,
4935
+ class: V(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
4936
+ M.name === n(w) && "active",
4937
+ n(v).length > 1 && "hoverItem"
4938
4938
  ]]),
4939
- onContextmenu: me((G) => d(G, $, I), ["prevent", "stop"]),
4940
- onClick: (G) => O($),
4941
- onDblclick: (G) => i($)
4939
+ onContextmenu: me((F) => p(F, M, j), ["prevent", "stop"]),
4940
+ onClick: (F) => x(M),
4941
+ onDblclick: (F) => d(M)
4942
4942
  }, [
4943
- $.icon ? (T(), M("i", {
4943
+ M.icon ? (S(), $("i", {
4944
4944
  key: 0,
4945
- class: B(["imicon", $.icon])
4945
+ class: V(["imicon", M.icon])
4946
4946
  }, null, 2)) : U("", !0),
4947
- te(" " + j($.meta.title) + " ", 1),
4947
+ ae(" " + E(M.meta.title) + " ", 1),
4948
4948
  u("div", {
4949
4949
  class: "abs r flexMode hc vc w20 h20",
4950
- onClick: me((G) => k($, I), ["stop"])
4951
- }, [...m[0] || (m[0] = [
4950
+ onClick: me((F) => C(M, j), ["stop"])
4951
+ }, [...O[0] || (O[0] = [
4952
4952
  u("span", null, "✕", -1)
4953
4953
  ])], 8, Et)
4954
4954
  ], 42, zt))), 128)),
4955
- m[1] || (m[1] = u("div", { class: "w16 h16 noShrink" }, null, -1))
4955
+ O[1] || (O[1] = u("div", { class: "w16 h16 noShrink" }, null, -1))
4956
4956
  ])
4957
4957
  ]));
4958
4958
  }
4959
- }), jt = /* @__PURE__ */ X(Lt, [["__scopeId", "data-v-e9bf80ea"]]), Pt = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Nt = { class: "logo" }, Rt = { class: "logomini" }, Dt = { class: "MenuArea p4 yscroll" }, It = ["onClick"], Vt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Bt = { key: 1 }, Ft = {
4959
+ }), jt = /* @__PURE__ */ Q(Lt, [["__scopeId", "data-v-e9bf80ea"]]), Pt = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Nt = { class: "logo" }, Rt = { class: "logomini" }, Dt = { class: "MenuArea p4 yscroll" }, It = ["onClick"], Bt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Vt = { key: 1 }, Ft = {
4960
4960
  key: 0,
4961
4961
  class: "itemChildrenArea mt2 p4"
4962
4962
  }, Ut = ["onClick"], Gt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Kt = { class: "h64 p8-4" }, Ht = { class: "flexMode vc g8 p8-16 radius4 hover" }, Jt = /* @__PURE__ */ Object.assign({
@@ -4982,42 +4982,42 @@ const Ct = ol({
4982
4982
  const l = e, a = W({
4983
4983
  collapse: !1
4984
4984
  }), t = ll(), s = al(), c = ge("store"), _ = c.launch();
4985
- oe(() => {
4986
- p();
4985
+ te(() => {
4986
+ b();
4987
4987
  });
4988
- const A = o, p = () => {
4989
- const i = localStorage.getItem("collapse");
4990
- i && (a.collapse = JSON.parse(i)), document.addEventListener("keydown", g);
4991
- }, r = (i) => {
4992
- a.collapse === !0 ? a.collapse = !1 : a.collapse === !1 ? a.collapse = !0 : a.collapse = i, localStorage.setItem("collapse", a.collapse), A("on-collapse-change", a.collapse);
4993
- }, g = (i) => {
4994
- i.shiftKey && (i.metaKey || i.ctrlKey) && (i.keyCode === 37 ? r(!0) : i.keyCode === 39 && r(!1));
4995
- }, C = (i) => {
4996
- var k;
4997
- return (k = i == null ? void 0 : i.children) != null && k.length ? C(i.children[0]) : i;
4998
- }, y = (i) => {
4999
- var k;
5000
- return ((k = i == null ? void 0 : i.children) == null ? void 0 : k.some((h) => h.name === t.name || y(h))) ?? !1;
5001
- }, E = (i) => {
5002
- const k = C(i);
5003
- k != null && k.name && s.push({ name: k.name });
5004
- }, D = () => {
5005
- const i = { ...t.query, _: Date.now() }, k = t.name ? { name: t.name, params: t.params, query: i } : { path: t.path, query: i };
5006
- s.replace(k).catch(() => {
4988
+ const A = o, b = () => {
4989
+ const d = localStorage.getItem("collapse");
4990
+ d && (a.collapse = JSON.parse(d)), document.addEventListener("keydown", g);
4991
+ }, i = (d) => {
4992
+ a.collapse === !0 ? a.collapse = !1 : a.collapse === !1 ? a.collapse = !0 : a.collapse = d, localStorage.setItem("collapse", a.collapse), A("on-collapse-change", a.collapse);
4993
+ }, g = (d) => {
4994
+ d.shiftKey && (d.metaKey || d.ctrlKey) && (d.keyCode === 37 ? i(!0) : d.keyCode === 39 && i(!1));
4995
+ }, T = (d) => {
4996
+ var C;
4997
+ return (C = d == null ? void 0 : d.children) != null && C.length ? T(d.children[0]) : d;
4998
+ }, y = (d) => {
4999
+ var C;
5000
+ return ((C = d == null ? void 0 : d.children) == null ? void 0 : C.some((v) => v.name === t.name || y(v))) ?? !1;
5001
+ }, z = (d) => {
5002
+ const C = T(d);
5003
+ C != null && C.name && s.push({ name: C.name });
5004
+ }, B = () => {
5005
+ const d = { ...t.query, _: Date.now() }, C = t.name ? { name: t.name, params: t.params, query: d } : { path: t.path, query: d };
5006
+ s.replace(C).catch(() => {
5007
5007
  });
5008
- }, v = () => {
5009
- var i;
5010
- return ((i = globalThis.$config) == null ? void 0 : i.loginPageName) || "Entry";
5011
- }, d = () => {
5012
- const i = () => {
5013
- var h, S;
5008
+ }, m = () => {
5009
+ var d;
5010
+ return ((d = globalThis.$config) == null ? void 0 : d.loginPageName) || "Entry";
5011
+ }, p = () => {
5012
+ const d = () => {
5013
+ var v, w;
5014
5014
  try {
5015
- const z = c.tab();
5016
- (h = z.closeAllTab) == null || h.call(z), (S = z.$patch) == null || S.call(z, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
5015
+ const D = c.tab();
5016
+ (v = D.closeAllTab) == null || v.call(D), (w = D.$patch) == null || w.call(D, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
5017
5017
  } catch {
5018
5018
  }
5019
- }, k = () => {
5020
- if (i(), typeof _.clearLogin == "function")
5019
+ }, C = () => {
5020
+ if (d(), typeof _.clearLogin == "function")
5021
5021
  _.clearLogin();
5022
5022
  else {
5023
5023
  try {
@@ -5027,103 +5027,103 @@ const Ct = ol({
5027
5027
  _.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
5028
5028
  }
5029
5029
  };
5030
- _.$patch({ loggingOut: !0 }), s.replace({ name: v() }).catch(() => s.replace({ path: "/" })).then(k).catch(() => {
5030
+ _.$patch({ loggingOut: !0 }), s.replace({ name: m() }).catch(() => s.replace({ path: "/" })).then(C).catch(() => {
5031
5031
  _.$patch({ loggingOut: !1 });
5032
5032
  try {
5033
5033
  s.replace({ path: "/" });
5034
5034
  } catch {
5035
5035
  }
5036
- k();
5036
+ C();
5037
5037
  });
5038
- }, O = x(() => a.collapse ? "im-verticalleft" : "im-verticalright");
5039
- return de(() => {
5038
+ }, x = k(() => a.collapse ? "im-verticalleft" : "im-verticalright");
5039
+ return ce(() => {
5040
5040
  document.removeEventListener("keydown", g);
5041
- }), (i, k) => {
5042
- const h = V("el-popconfirm");
5043
- return T(), M("div", {
5044
- class: B(["FrameMenu sticky vh100 noselect noShrink", n(a).collapse && "collapse"])
5041
+ }), (d, C) => {
5042
+ const v = I("el-popconfirm");
5043
+ return S(), $("div", {
5044
+ class: V(["FrameMenu sticky vh100 noselect noShrink", n(a).collapse && "collapse"])
5045
5045
  }, [
5046
5046
  u("div", Pt, [
5047
5047
  u("div", Nt, [
5048
- H(i.$slots, "logo", {}, void 0, !0)
5048
+ J(d.$slots, "logo", {}, void 0, !0)
5049
5049
  ]),
5050
5050
  u("div", Rt, [
5051
- H(i.$slots, "logomini", {}, void 0, !0)
5051
+ J(d.$slots, "logomini", {}, void 0, !0)
5052
5052
  ]),
5053
5053
  u("div", {
5054
5054
  class: "collapseArea hover abs",
5055
- onClick: k[0] || (k[0] = (S) => r(n(a).collapse))
5055
+ onClick: C[0] || (C[0] = (w) => i(n(a).collapse))
5056
5056
  }, [
5057
5057
  u("i", {
5058
- class: B(["imicon fs20", n(O)])
5058
+ class: V(["imicon fs20", n(x)])
5059
5059
  }, null, 2)
5060
5060
  ])
5061
5061
  ]),
5062
5062
  u("div", Dt, [
5063
- (T(!0), M(Q, null, ne(l.routes, (S, z) => {
5064
- var w, m;
5065
- return T(), M("div", {
5066
- key: z,
5063
+ (S(!0), $(ee, null, oe(l.routes, (w, D) => {
5064
+ var f, O;
5065
+ return S(), $("div", {
5066
+ key: D,
5067
5067
  class: "menuItemWrap mb2"
5068
5068
  }, [
5069
5069
  u("div", {
5070
- class: B(["menuItem flexMode vc g8 radius4 p0-16", [
5071
- n(t).name === S.name && "active bg-primary",
5070
+ class: V(["menuItem flexMode vc g8 radius4 p0-16", [
5071
+ n(t).name === w.name && "active bg-primary",
5072
5072
  n(a).collapse && "hc",
5073
- n(a).collapse && y(S) && "activeChild"
5073
+ n(a).collapse && y(w) && "activeChild"
5074
5074
  ]]),
5075
- onClick: ($) => E(S),
5076
- onDblclick: D
5075
+ onClick: (M) => z(w),
5076
+ onDblclick: B
5077
5077
  }, [
5078
- u("div", Vt, [
5079
- S.meta.icon ? (T(), M("i", {
5078
+ u("div", Bt, [
5079
+ w.meta.icon ? (S(), $("i", {
5080
5080
  key: 0,
5081
- class: B([l.iconClass, S.meta.icon])
5082
- }, null, 2)) : (T(), M("span", Bt, j(((w = S.meta.title) == null ? void 0 : w.substr(0, 1)) || "U"), 1))
5081
+ class: V([l.iconClass, w.meta.icon])
5082
+ }, null, 2)) : (S(), $("span", Vt, E(((f = w.meta.title) == null ? void 0 : f.substr(0, 1)) || "U"), 1))
5083
5083
  ]),
5084
5084
  u("div", {
5085
- class: B(["itemTitle txt-nowrap fs14", [
5086
- n(t).name === S.name && "active",
5085
+ class: V(["itemTitle txt-nowrap fs14", [
5086
+ n(t).name === w.name && "active",
5087
5087
  n(a).collapse && "hide"
5088
5088
  ]])
5089
- }, j(S.meta.title), 3)
5089
+ }, E(w.meta.title), 3)
5090
5090
  ], 42, It),
5091
- (m = S.children) != null && m.length ? (T(), M("div", Ft, [
5092
- (T(!0), M(Q, null, ne(S.children, ($, I) => (T(), M("div", {
5093
- key: I,
5094
- class: B(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name === $.name && "active bg-primary"]),
5095
- onClick: (G) => E($),
5096
- onDblclick: D
5091
+ (O = w.children) != null && O.length ? (S(), $("div", Ft, [
5092
+ (S(!0), $(ee, null, oe(w.children, (M, j) => (S(), $("div", {
5093
+ key: j,
5094
+ class: V(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name === M.name && "active bg-primary"]),
5095
+ onClick: (F) => z(M),
5096
+ onDblclick: B
5097
5097
  }, [
5098
5098
  u("div", Gt, [
5099
- $.meta.icon ? (T(), M("i", {
5099
+ M.meta.icon ? (S(), $("i", {
5100
5100
  key: 0,
5101
- class: B([l.iconClass, $.meta.icon])
5101
+ class: V([l.iconClass, M.meta.icon])
5102
5102
  }, null, 2)) : U("", !0)
5103
5103
  ]),
5104
5104
  u("div", {
5105
- class: B(["itemTitle txt-nowrap fs14", [
5106
- n(t).name === $.name && "active",
5105
+ class: V(["itemTitle txt-nowrap fs14", [
5106
+ n(t).name === M.name && "active",
5107
5107
  n(a).collapse && "hide"
5108
5108
  ]])
5109
- }, j($.meta.title), 3)
5109
+ }, E(M.meta.title), 3)
5110
5110
  ], 42, Ut))), 128))
5111
5111
  ])) : U("", !0)
5112
5112
  ]);
5113
5113
  }), 128))
5114
5114
  ]),
5115
5115
  u("div", Kt, [
5116
- N(h, {
5116
+ N(v, {
5117
5117
  placement: "top",
5118
- title: i.$l("Log out?"),
5119
- onConfirm: d
5118
+ title: d.$l("Log out?"),
5119
+ onConfirm: p
5120
5120
  }, {
5121
- reference: P(() => [
5121
+ reference: L(() => [
5122
5122
  u("div", Ht, [
5123
- k[1] || (k[1] = u("i", { class: "imicon im-power fs24" }, null, -1)),
5123
+ C[1] || (C[1] = u("i", { class: "imicon im-power fs24" }, null, -1)),
5124
5124
  u("span", {
5125
- class: B(["fs14", n(a).collapse && "hide"])
5126
- }, j(n(_).userinfo[l.usernameKey]), 3)
5125
+ class: V(["fs14", n(a).collapse && "hide"])
5126
+ }, E(n(_).userinfo[l.usernameKey]), 3)
5127
5127
  ])
5128
5128
  ]),
5129
5129
  _: 1
@@ -5132,20 +5132,20 @@ const Ct = ol({
5132
5132
  ], 2);
5133
5133
  };
5134
5134
  }
5135
- }), Yt = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-d7eb624b"]]), Wt = { class: "FrameFooter" }, Zt = { class: "txt-tip" }, qt = { class: "txt-primary" }, Xt = /* @__PURE__ */ Object.assign({
5135
+ }), Yt = /* @__PURE__ */ Q(Jt, [["__scopeId", "data-v-d7eb624b"]]), Wt = { class: "FrameFooter" }, Zt = { class: "txt-tip" }, qt = { class: "txt-primary" }, Xt = /* @__PURE__ */ Object.assign({
5136
5136
  name: "FrameFooter",
5137
5137
  inheritAttrs: !1
5138
5138
  }, {
5139
5139
  __name: "Footer",
5140
5140
  setup(e) {
5141
5141
  W({});
5142
- const o = x(() => globalThis.$config);
5143
- return (l, a) => (T(), M("div", Wt, [
5144
- u("span", Zt, j(n(o).copyright), 1),
5145
- u("span", qt, j(n(o).author), 1)
5142
+ const o = k(() => globalThis.$config);
5143
+ return (l, a) => (S(), $("div", Wt, [
5144
+ u("span", Zt, E(n(o).copyright), 1),
5145
+ u("span", qt, E(n(o).author), 1)
5146
5146
  ]));
5147
5147
  }
5148
- }), Qt = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-c3ba0162"]]), eo = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, lo = /* @__PURE__ */ Object.assign({
5148
+ }), Qt = /* @__PURE__ */ Q(Xt, [["__scopeId", "data-v-c3ba0162"]]), eo = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, lo = /* @__PURE__ */ Object.assign({
5149
5149
  name: "FrameTool",
5150
5150
  inheritAttrs: !1
5151
5151
  }, {
@@ -5165,8 +5165,8 @@ const Ct = ol({
5165
5165
  l.current = 0;
5166
5166
  };
5167
5167
  return (t, s) => {
5168
- const c = V("Icon"), _ = V("Drawer");
5169
- return T(), M(Q, null, [
5168
+ const c = I("Icon"), _ = I("Drawer");
5169
+ return S(), $(ee, null, [
5170
5170
  u("div", eo, [
5171
5171
  u("div", {
5172
5172
  class: "hover w24 h24 flexMode hc vc radius",
@@ -5199,64 +5199,64 @@ const Ct = ol({
5199
5199
  x: 0,
5200
5200
  y: 0,
5201
5201
  ready: !1
5202
- }), s = (i, k, h) => Math.min(Math.max(i, k), h), c = (i) => Number.isFinite(Number(i)), _ = () => {
5203
- const { position: i, el: k } = l;
5204
- if (k != null && k.getBoundingClientRect) {
5205
- const h = k.getBoundingClientRect();
5202
+ }), s = (d, C, v) => Math.min(Math.max(d, C), v), c = (d) => Number.isFinite(Number(d)), _ = () => {
5203
+ const { position: d, el: C } = l;
5204
+ if (C != null && C.getBoundingClientRect) {
5205
+ const v = C.getBoundingClientRect();
5206
5206
  return {
5207
- x: h.left,
5208
- y: h.bottom + 4
5207
+ x: v.left,
5208
+ y: v.bottom + 4
5209
5209
  };
5210
5210
  }
5211
- return i && c(i.x) && c(i.y) ? {
5212
- x: Number(i.x),
5213
- y: Number(i.y)
5211
+ return d && c(d.x) && c(d.y) ? {
5212
+ x: Number(d.x),
5213
+ y: Number(d.y)
5214
5214
  } : {
5215
5215
  x: 0,
5216
5216
  y: 0
5217
5217
  };
5218
5218
  }, A = async () => {
5219
- if (t.ready = !1, !d.value)
5219
+ if (t.ready = !1, !p.value)
5220
5220
  return;
5221
- await pe();
5222
- const i = a.value;
5223
- if (!i)
5221
+ await de();
5222
+ const d = a.value;
5223
+ if (!d)
5224
5224
  return;
5225
- const k = _(), h = i.getBoundingClientRect(), S = 8, z = Math.max(S, window.innerWidth - h.width - S), w = Math.max(S, window.innerHeight - h.height - S);
5226
- t.x = s(k.x, S, z), t.y = s(k.y, S, w), t.ready = !0;
5227
- }, p = () => {
5225
+ const C = _(), v = d.getBoundingClientRect(), w = 8, D = Math.max(w, window.innerWidth - v.width - w), f = Math.max(w, window.innerHeight - v.height - w);
5226
+ t.x = s(C.x, w, D), t.y = s(C.y, w, f), t.ready = !0;
5227
+ }, b = () => {
5228
5228
  l.visible && l.hide(), t.ready = !1;
5229
- }, r = (i) => {
5230
- var k;
5231
- !d.value || (k = a.value) != null && k.contains(i.target) || p();
5232
- }, g = (i) => {
5233
- var k;
5234
- !d.value || (k = a.value) != null && k.contains(i.target) || p();
5235
- }, C = (i) => {
5236
- i.key === "Escape" && p();
5237
- }, y = (i) => typeof i.disabled == "function" ? i.disabled(i) : !!i.disabled, E = (i, k) => i.value ?? i.label ?? k, D = (i) => {
5238
- var k, h;
5239
- if (!y(i))
5229
+ }, i = (d) => {
5230
+ var C;
5231
+ !p.value || (C = a.value) != null && C.contains(d.target) || b();
5232
+ }, g = (d) => {
5233
+ var C;
5234
+ !p.value || (C = a.value) != null && C.contains(d.target) || b();
5235
+ }, T = (d) => {
5236
+ d.key === "Escape" && b();
5237
+ }, y = (d) => typeof d.disabled == "function" ? d.disabled(d) : !!d.disabled, z = (d, C) => d.value ?? d.label ?? C, B = (d) => {
5238
+ var C, v;
5239
+ if (!y(d))
5240
5240
  try {
5241
- (k = i.cb) == null || k.call(i, i), (h = i.onClick) == null || h.call(i, i);
5241
+ (C = d.cb) == null || C.call(d, d), (v = d.onClick) == null || v.call(d, d);
5242
5242
  } finally {
5243
- p();
5243
+ b();
5244
5244
  }
5245
- }, v = x(() => Array.isArray(l.options) ? l.options.filter(Boolean) : []), d = x(() => l.visible && v.value.length > 0), O = x(() => ({
5245
+ }, m = k(() => Array.isArray(l.options) ? l.options.filter(Boolean) : []), p = k(() => l.visible && m.value.length > 0), x = k(() => ({
5246
5246
  left: `${t.x}px`,
5247
5247
  top: `${t.y}px`,
5248
5248
  visibility: t.ready ? "visible" : "hidden"
5249
5249
  }));
5250
- return se(
5250
+ return ne(
5251
5251
  () => {
5252
- var i, k;
5252
+ var d, C;
5253
5253
  return [
5254
5254
  l.visible,
5255
5255
  l.el,
5256
5256
  l.options,
5257
- (i = l.position) == null ? void 0 : i.x,
5258
- (k = l.position) == null ? void 0 : k.y,
5259
- v.value.length
5257
+ (d = l.position) == null ? void 0 : d.x,
5258
+ (C = l.position) == null ? void 0 : C.y,
5259
+ m.value.length
5260
5260
  ];
5261
5261
  },
5262
5262
  () => {
@@ -5265,41 +5265,41 @@ const Ct = ol({
5265
5265
  {
5266
5266
  flush: "post"
5267
5267
  }
5268
- ), oe(() => {
5269
- document.addEventListener("pointerdown", r, !0), document.addEventListener("contextmenu", g, !0), document.addEventListener("keydown", C), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0);
5270
- }), de(() => {
5271
- document.removeEventListener("pointerdown", r, !0), document.removeEventListener("contextmenu", g, !0), document.removeEventListener("keydown", C), window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
5272
- }), (i, k) => (T(), q(Ll, { to: "body" }, [
5268
+ ), te(() => {
5269
+ document.addEventListener("pointerdown", i, !0), document.addEventListener("contextmenu", g, !0), document.addEventListener("keydown", T), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
5270
+ }), ce(() => {
5271
+ document.removeEventListener("pointerdown", i, !0), document.removeEventListener("contextmenu", g, !0), document.removeEventListener("keydown", T), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
5272
+ }), (d, C) => (S(), q(Ll, { to: "body" }, [
5273
5273
  N(sl, { name: "FrameRightMenuFade" }, {
5274
- default: P(() => [
5275
- n(d) ? (T(), M("div", {
5274
+ default: L(() => [
5275
+ n(p) ? (S(), $("div", {
5276
5276
  key: 0,
5277
5277
  ref_key: "menuRef",
5278
5278
  ref: a,
5279
5279
  class: "FrameRightMenu",
5280
- style: re(n(O)),
5281
- onClick: k[0] || (k[0] = me(() => {
5280
+ style: se(n(x)),
5281
+ onClick: C[0] || (C[0] = me(() => {
5282
5282
  }, ["stop"])),
5283
- onPointerdown: k[1] || (k[1] = me(() => {
5283
+ onPointerdown: C[1] || (C[1] = me(() => {
5284
5284
  }, ["stop"])),
5285
- onContextmenu: k[2] || (k[2] = me(() => {
5285
+ onContextmenu: C[2] || (C[2] = me(() => {
5286
5286
  }, ["prevent", "stop"]))
5287
5287
  }, [
5288
- (T(!0), M(Q, null, ne(n(v), (h, S) => (T(), M(Q, {
5289
- key: E(h, S)
5288
+ (S(!0), $(ee, null, oe(n(m), (v, w) => (S(), $(ee, {
5289
+ key: z(v, w)
5290
5290
  }, [
5291
- h.divider ? (T(), M("div", ao)) : (T(), M("button", {
5291
+ v.divider ? (S(), $("div", ao)) : (S(), $("button", {
5292
5292
  key: 1,
5293
5293
  type: "button",
5294
- class: B(["menuItem", { disabled: y(h) }]),
5295
- disabled: y(h),
5296
- onClick: (z) => D(h)
5294
+ class: V(["menuItem", { disabled: y(v) }]),
5295
+ disabled: y(v),
5296
+ onClick: (D) => B(v)
5297
5297
  }, [
5298
- h.icon ? (T(), M("i", {
5298
+ v.icon ? (S(), $("i", {
5299
5299
  key: 0,
5300
- class: B(["imicon menuIcon", h.icon])
5300
+ class: V(["imicon menuIcon", v.icon])
5301
5301
  }, null, 2)) : U("", !0),
5302
- u("span", oo, j(h.label), 1)
5302
+ u("span", oo, E(v.label), 1)
5303
5303
  ], 10, to))
5304
5304
  ], 64))), 128))
5305
5305
  ], 36)) : U("", !0)
@@ -5308,7 +5308,7 @@ const Ct = ol({
5308
5308
  })
5309
5309
  ]));
5310
5310
  }
5311
- }), so = /* @__PURE__ */ X(no, [["__scopeId", "data-v-388539e5"]]), ro = { class: "MvcFrame" }, io = /* @__PURE__ */ Object.assign({
5311
+ }), so = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-388539e5"]]), ro = { class: "MvcFrame" }, io = /* @__PURE__ */ Object.assign({
5312
5312
  name: "MvcFrame",
5313
5313
  inheritAttrs: !1
5314
5314
  }, {
@@ -5332,58 +5332,58 @@ const Ct = ol({
5332
5332
  },
5333
5333
  setup(e) {
5334
5334
  const o = e, l = W({}), a = ge("store"), t = a.tab(), s = a.init();
5335
- oe(() => {
5335
+ te(() => {
5336
5336
  c();
5337
5337
  });
5338
5338
  const c = () => {
5339
5339
  Il(), _();
5340
5340
  }, _ = () => {
5341
- var g, C, y, E, D, v;
5342
- if ((C = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && C.url) {
5343
- const d = document.createElement("script");
5344
- if (d.id = "iconfont", d.type = "text/javascript", d.src = (E = (y = globalThis.$config) == null ? void 0 : y.iconfont) == null ? void 0 : E.url, document.getElementById("iconfont"))
5341
+ var g, T, y, z, B, m;
5342
+ if ((T = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && T.url) {
5343
+ const p = document.createElement("script");
5344
+ if (p.id = "iconfont", p.type = "text/javascript", p.src = (z = (y = globalThis.$config) == null ? void 0 : y.iconfont) == null ? void 0 : z.url, document.getElementById("iconfont"))
5345
5345
  return;
5346
- document.head.appendChild(d), (v = (D = globalThis.$config) == null ? void 0 : D.iconfont) == null || delete v.url;
5346
+ document.head.appendChild(p), (m = (B = globalThis.$config) == null ? void 0 : B.iconfont) == null || delete m.url;
5347
5347
  }
5348
5348
  }, A = (g) => {
5349
5349
  l.collapse = g;
5350
- }, p = x(() => s.pageLoading), r = x(() => ({
5350
+ }, b = k(() => s.pageLoading), i = k(() => ({
5351
5351
  maxWidth: l.collapse ? "calc(100% - 4rem)" : "calc(100% - 12rem)"
5352
5352
  }));
5353
- return (g, C) => {
5354
- const y = V("Loading"), E = V("router-view");
5355
- return T(), M("div", ro, [
5356
- N(Yt, ee(o.menu, { onOnCollapseChange: A }), be({ _: 2 }, [
5353
+ return (g, T) => {
5354
+ const y = I("Loading"), z = I("router-view");
5355
+ return S(), $("div", ro, [
5356
+ N(Yt, le(o.menu, { onOnCollapseChange: A }), pe({ _: 2 }, [
5357
5357
  g.$slots.logo ? {
5358
5358
  name: "logo",
5359
- fn: P(() => [
5360
- H(g.$slots, "logo", {}, void 0, !0)
5359
+ fn: L(() => [
5360
+ J(g.$slots, "logo", {}, void 0, !0)
5361
5361
  ]),
5362
5362
  key: "0"
5363
5363
  } : void 0,
5364
5364
  g.$slots.logomini ? {
5365
5365
  name: "logomini",
5366
- fn: P(() => [
5367
- H(g.$slots, "logomini", {}, void 0, !0)
5366
+ fn: L(() => [
5367
+ J(g.$slots, "logomini", {}, void 0, !0)
5368
5368
  ]),
5369
5369
  key: "1"
5370
5370
  } : void 0
5371
5371
  ]), 1040),
5372
5372
  u("div", {
5373
5373
  class: "PageArea",
5374
- style: re(n(r))
5374
+ style: se(n(i))
5375
5375
  }, [
5376
- N(y, { loading: n(p) }, null, 8, ["loading"]),
5377
- n(t).useTab ? (T(), q(jt, { key: 0 })) : U("", !0),
5376
+ N(y, { loading: n(b) }, null, 8, ["loading"]),
5377
+ n(t).useTab ? (S(), q(jt, { key: 0 })) : U("", !0),
5378
5378
  N(lo),
5379
- N(E, Te(xe(o.page)), null, 16),
5379
+ N(z, Te(xe(o.page)), null, 16),
5380
5380
  N(Qt)
5381
5381
  ], 4),
5382
5382
  N(so)
5383
5383
  ]);
5384
5384
  };
5385
5385
  }
5386
- }), uo = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ae3008b4"]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5386
+ }), uo = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-ae3008b4"]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5387
5387
  __proto__: null,
5388
5388
  default: uo
5389
5389
  }, Symbol.toStringTag, { value: "Module" })), po = ["xlink:href"], bo = /* @__PURE__ */ Object.assign({
@@ -5404,21 +5404,21 @@ const Ct = ol({
5404
5404
  const o = e, l = W({
5405
5405
  prefix: "imc"
5406
5406
  });
5407
- oe(() => {
5407
+ te(() => {
5408
5408
  var t, s;
5409
5409
  (s = (t = globalThis.$config) == null ? void 0 : t.iconfont) != null && s.prefix && (l.prefix = globalThis.$config.iconfont.prefix);
5410
5410
  });
5411
- const a = x(() => {
5411
+ const a = k(() => {
5412
5412
  const s = `${(Number(o.size) || 20) / 16}rem`;
5413
5413
  return {
5414
5414
  width: s,
5415
5415
  height: s
5416
5416
  };
5417
5417
  });
5418
- return (t, s) => (T(), M("svg", {
5418
+ return (t, s) => (S(), $("svg", {
5419
5419
  class: "MvcIcon",
5420
5420
  "aria-hidden": "true",
5421
- style: re(n(a))
5421
+ style: se(n(a))
5422
5422
  }, [
5423
5423
  u("use", {
5424
5424
  "xlink:href": `#${n(l).prefix}-${e.name}`
@@ -5458,75 +5458,79 @@ const Ct = ol({
5458
5458
  "focus"
5459
5459
  ],
5460
5460
  setup(e, { emit: o }) {
5461
- const l = e, a = jl(), t = ue(), s = Z(null);
5461
+ const l = e, a = jl(), t = be(), s = Z(null);
5462
5462
  let c = null;
5463
5463
  const _ = W({
5464
5464
  val: "",
5465
5465
  isComposing: !1,
5466
5466
  focused: !1
5467
- }), A = o, { proxy: p } = ce();
5468
- oe(() => {
5469
- var w, m, $;
5470
- const z = (w = s.value) == null ? void 0 : w.$el;
5471
- c = ((m = z == null ? void 0 : z.querySelector) == null ? void 0 : m.call(z, "input")) || (($ = z == null ? void 0 : z.querySelector) == null ? void 0 : $.call(z, "textarea")), c && (c.addEventListener("compositionstart", r), c.addEventListener("compositionend", g));
5467
+ }), A = o, { proxy: b } = ue(), i = k(() => {
5468
+ const { class: f, ...O } = t;
5469
+ return O;
5470
+ });
5471
+ te(() => {
5472
+ var O, M, j;
5473
+ const f = (O = s.value) == null ? void 0 : O.$el;
5474
+ c = ((M = f == null ? void 0 : f.querySelector) == null ? void 0 : M.call(f, "input")) || ((j = f == null ? void 0 : f.querySelector) == null ? void 0 : j.call(f, "textarea")), c && (c.addEventListener("compositionstart", g), c.addEventListener("compositionend", T));
5472
5475
  });
5473
- const r = () => {
5476
+ const g = () => {
5474
5477
  _.isComposing = !0;
5475
- }, g = () => {
5476
- _.isComposing = !1, pe(() => D(_.val));
5477
- }, C = (z) => {
5478
- _.isComposing || D(z);
5479
- }, y = (z) => {
5480
- _.focused = !0, A("focus", z);
5481
- }, E = (z) => {
5482
- _.focused = !1, A("blur", z);
5483
- }, D = (z) => {
5484
- A("update:modelValue", z), A("input", z);
5485
- }, v = x(() => !!(p.$attrs.maxlength || d.value)), d = x(() => p.$attrs.max), O = x(() => String(_.val ?? "").length > 0), i = x(() => !!t.placeholder), k = x(
5486
- () => l.materialLabel && (_.focused || O.value || i.value)
5487
- ), h = x(() => ({
5478
+ }, T = () => {
5479
+ _.isComposing = !1, de(() => m(_.val));
5480
+ }, y = (f) => {
5481
+ _.isComposing || m(f);
5482
+ }, z = (f) => {
5483
+ _.focused = !0, A("focus", f);
5484
+ }, B = (f) => {
5485
+ _.focused = !1, A("blur", f);
5486
+ }, m = (f) => {
5487
+ A("update:modelValue", f), A("input", f);
5488
+ }, p = k(() => !!(b.$attrs.maxlength || x.value)), x = k(() => b.$attrs.max), d = k(() => String(_.val ?? "").length > 0), C = k(() => !!t.placeholder), v = k(
5489
+ () => l.materialLabel && (_.focused || d.value || C.value)
5490
+ ), w = k(() => ({
5491
+ [t.class]: !!t.class,
5488
5492
  hasLabel: !!l.label,
5489
5493
  isMaterialLabel: !!(l.label && l.materialLabel),
5490
5494
  isTopLabel: !!(l.label && !l.materialLabel),
5491
- isFloat: k.value,
5495
+ isFloat: v.value,
5492
5496
  isFocused: _.focused,
5493
5497
  isDisabled: !!t.disabled
5494
- })), S = x(
5498
+ })), D = k(
5495
5499
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
5496
5500
  );
5497
- return se(
5501
+ return ne(
5498
5502
  () => l.modelValue,
5499
- (z) => {
5500
- const w = String(z ?? "");
5501
- String(_.val) !== w && (_.val = w);
5503
+ (f) => {
5504
+ const O = String(f ?? "");
5505
+ String(_.val) !== O && (_.val = O);
5502
5506
  },
5503
5507
  { immediate: !0 }
5504
- ), de(() => {
5505
- c && (c.removeEventListener("compositionstart", r), c.removeEventListener("compositionend", g), c = null);
5506
- }), (z, w) => {
5507
- const m = V("el-input");
5508
- return T(), M("div", {
5509
- class: B(["MvcField MvcFieldInput", n(h)]),
5510
- style: re(n(S))
5508
+ ), ce(() => {
5509
+ c && (c.removeEventListener("compositionstart", g), c.removeEventListener("compositionend", T), c = null);
5510
+ }), (f, O) => {
5511
+ const M = I("el-input");
5512
+ return S(), $("div", {
5513
+ class: V(["MvcField MvcFieldInput", n(w)]),
5514
+ style: se(n(D))
5511
5515
  }, [
5512
- l.label ? (T(), M("label", mo, j(l.label), 1)) : U("", !0),
5513
- N(m, ee({
5516
+ l.label ? (S(), $("label", mo, E(l.label), 1)) : U("", !0),
5517
+ N(M, le({
5514
5518
  ref_key: "inputRef",
5515
5519
  ref: s,
5516
5520
  modelValue: n(_).val,
5517
- "onUpdate:modelValue": w[0] || (w[0] = ($) => n(_).val = $),
5518
- "show-word-limit": n(v),
5519
- maxlength: n(d),
5521
+ "onUpdate:modelValue": O[0] || (O[0] = (j) => n(_).val = j),
5522
+ "show-word-limit": n(p),
5523
+ maxlength: n(x),
5520
5524
  class: "MvcInput"
5521
- }, z.$attrs, {
5522
- onInput: C,
5523
- onFocus: y,
5524
- onBlur: E
5525
- }), be({ _: 2 }, [
5526
- ne(n(a), ($, I) => ({
5527
- name: I,
5528
- fn: P((G) => [
5529
- H(z.$slots, I, Te(xe(G || {})))
5525
+ }, n(i), {
5526
+ onInput: y,
5527
+ onFocus: z,
5528
+ onBlur: B
5529
+ }), pe({ _: 2 }, [
5530
+ oe(n(a), (j, F) => ({
5531
+ name: F,
5532
+ fn: L((H) => [
5533
+ J(f.$slots, F, Te(xe(H || {})))
5530
5534
  ])
5531
5535
  }))
5532
5536
  ]), 1040, ["modelValue", "show-word-limit", "maxlength"])
@@ -5552,50 +5556,50 @@ const Ct = ol({
5552
5556
  }
5553
5557
  },
5554
5558
  setup(e) {
5555
- const o = e, l = ue(), a = x(() => {
5556
- const { class: p, ...r } = l;
5557
- return r;
5559
+ const o = e, l = be(), a = k(() => {
5560
+ const { class: b, ...i } = l;
5561
+ return i;
5558
5562
  }), t = W({
5559
5563
  lang: "en_us"
5560
5564
  });
5561
- oe(() => {
5565
+ te(() => {
5562
5566
  c();
5563
5567
  });
5564
- const s = (p) => {
5568
+ const s = (b) => {
5565
5569
  var g;
5566
- const r = (typeof localStorage < "u" ? localStorage.getItem(Fe) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
5567
- p == null || p === r || (typeof localStorage < "u" && localStorage.setItem(Fe, p), window.location.reload());
5570
+ const i = (typeof localStorage < "u" ? localStorage.getItem(Fe) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
5571
+ b == null || b === i || (typeof localStorage < "u" && localStorage.setItem(Fe, b), window.location.reload());
5568
5572
  }, c = () => {
5569
5573
  var g;
5570
- const p = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", r = _.value.map((C) => C.value);
5571
- t.lang = r.includes(p) ? p : r[0] || "en_us";
5572
- }, _ = x(() => {
5573
- var r;
5574
- return ((r = globalThis.$config) != null && r.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : Xl.filter((g) => g.use !== !1)).filter((g) => g && g.use !== !1 && g.value);
5575
- }), A = x(() => _.value.find((p) => p.value === t.lang) ?? null);
5576
- return (p, r) => {
5577
- const g = V("el-option"), C = V("el-select");
5578
- return T(), q(C, ee({
5574
+ const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", i = _.value.map((T) => T.value);
5575
+ t.lang = i.includes(b) ? b : i[0] || "en_us";
5576
+ }, _ = k(() => {
5577
+ var i;
5578
+ return ((i = globalThis.$config) != null && i.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : Xl.filter((g) => g.use !== !1)).filter((g) => g && g.use !== !1 && g.value);
5579
+ }), A = k(() => _.value.find((b) => b.value === t.lang) ?? null);
5580
+ return (b, i) => {
5581
+ const g = I("el-option"), T = I("el-select");
5582
+ return S(), q(T, le({
5579
5583
  modelValue: t.lang,
5580
- "onUpdate:modelValue": r[0] || (r[0] = (y) => t.lang = y),
5581
- class: ["MvcLang w140", p.$attrs.class],
5584
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => t.lang = y),
5585
+ class: ["MvcLang w140", b.$attrs.class],
5582
5586
  teleported: o.teleported
5583
5587
  }, a.value, { onChange: s }), {
5584
- prefix: P(() => [
5585
- A.value ? (T(), M("div", go, [
5586
- u("span", _o, j(A.value.txt), 1)
5588
+ prefix: L(() => [
5589
+ A.value ? (S(), $("div", go, [
5590
+ u("span", _o, E(A.value.txt), 1)
5587
5591
  ])) : U("", !0)
5588
5592
  ]),
5589
- default: P(() => [
5590
- (T(!0), M(Q, null, ne(_.value, (y) => (T(), q(g, {
5593
+ default: L(() => [
5594
+ (S(!0), $(ee, null, oe(_.value, (y) => (S(), q(g, {
5591
5595
  key: y.value,
5592
5596
  label: y.label,
5593
5597
  value: y.value
5594
5598
  }, {
5595
- default: P(() => [
5599
+ default: L(() => [
5596
5600
  u("div", yo, [
5597
- u("span", wo, j(y.txt), 1),
5598
- u("span", So, j(y.label), 1)
5601
+ u("span", wo, E(y.txt), 1),
5602
+ u("span", So, E(y.label), 1)
5599
5603
  ])
5600
5604
  ]),
5601
5605
  _: 2
@@ -5661,65 +5665,65 @@ const Ct = ol({
5661
5665
  },
5662
5666
  emits: ["update:modelValue", "change"],
5663
5667
  setup(e, { emit: o }) {
5664
- const l = e, a = o, t = (r) => r.value === l.modelValue, s = (r) => {
5665
- l.loading || l.disabled || r.disabled || (a("update:modelValue", r.value), a("change", r.value, r.raw));
5666
- }, c = (r) => {
5668
+ const l = e, a = o, t = (i) => i.value === l.modelValue, s = (i) => {
5669
+ l.loading || l.disabled || i.disabled || (a("update:modelValue", i.value), a("change", i.value, i.raw));
5670
+ }, c = (i) => {
5667
5671
  var y;
5668
- const g = r.value, C = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, g)) ?? typeof g;
5669
- return C === "Object" || C === "Array" ? JSON.stringify(g) : String(g);
5670
- }, _ = x(() => {
5671
- const r = l.options, g = Array.isArray(r) ? r : [], C = l.valueKey, y = l.labelKey;
5672
- return g.filter((E) => E != null).map((E) => typeof E == "object" && !Array.isArray(E) ? {
5673
- value: E[C],
5674
- label: E[y] ?? "",
5675
- disabled: !!E.disabled,
5676
- raw: E
5672
+ const g = i.value, T = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, g)) ?? typeof g;
5673
+ return T === "Object" || T === "Array" ? JSON.stringify(g) : String(g);
5674
+ }, _ = k(() => {
5675
+ const i = l.options, g = Array.isArray(i) ? i : [], T = l.valueKey, y = l.labelKey;
5676
+ return g.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
5677
+ value: z[T],
5678
+ label: z[y] ?? "",
5679
+ disabled: !!z.disabled,
5680
+ raw: z
5677
5681
  } : {
5678
- value: E,
5679
- label: String(E),
5682
+ value: z,
5683
+ label: String(z),
5680
5684
  disabled: !1,
5681
- raw: E
5685
+ raw: z
5682
5686
  });
5683
- }), A = x(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : ""), p = x(() => {
5684
- var g, C;
5685
- const r = (C = (g = l.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : C.call(g);
5687
+ }), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : ""), b = k(() => {
5688
+ var g, T;
5689
+ const i = (T = (g = l.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : T.call(g);
5686
5690
  return {
5687
5691
  icon: l.loadingIcon,
5688
- showTxt: !!r,
5689
- txt: r || "- LOADING -",
5692
+ showTxt: !!i,
5693
+ txt: i || "- LOADING -",
5690
5694
  radius: 8
5691
5695
  };
5692
5696
  });
5693
- return (r, g) => {
5694
- const C = V("Loading");
5695
- return T(), M("div", ee({
5696
- class: ["MvcList", [n(A), r.$attrs.class]]
5697
- }, r.$attrs), [
5697
+ return (i, g) => {
5698
+ const T = I("Loading");
5699
+ return S(), $("div", le({
5700
+ class: ["MvcList", [n(A), i.$attrs.class]]
5701
+ }, i.$attrs), [
5698
5702
  u("div", Co, [
5699
5703
  u("div", {
5700
- class: B(["listScroll yscroll", l.listClass]),
5704
+ class: V(["listScroll yscroll", l.listClass]),
5701
5705
  role: "listbox"
5702
5706
  }, [
5703
- (T(!0), M(Q, null, ne(n(_), (y) => (T(), M("div", {
5707
+ (S(!0), $(ee, null, oe(n(_), (y) => (S(), $("div", {
5704
5708
  key: c(y),
5705
- class: B(["listItem", { active: t(y), isDisabled: y.disabled }]),
5709
+ class: V(["listItem", { active: t(y), isDisabled: y.disabled }]),
5706
5710
  role: "option",
5707
5711
  "aria-selected": t(y),
5708
- onClick: (E) => s(y)
5712
+ onClick: (z) => s(y)
5709
5713
  }, [
5710
- H(r.$slots, "item", { option: y }, () => [
5711
- te(j(r.$l(y.label)), 1)
5714
+ J(i.$slots, "item", { option: y }, () => [
5715
+ ae(E(i.$l(y.label)), 1)
5712
5716
  ], !0)
5713
5717
  ], 10, ko))), 128))
5714
5718
  ], 2),
5715
- N(C, ee({
5719
+ N(T, le({
5716
5720
  loading: l.loading
5717
- }, n(p)), null, 16, ["loading"])
5721
+ }, n(b)), null, 16, ["loading"])
5718
5722
  ])
5719
5723
  ], 16);
5720
5724
  };
5721
5725
  }
5722
- }), Oo = /* @__PURE__ */ X(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5726
+ }), Oo = /* @__PURE__ */ Q(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5723
5727
  __proto__: null,
5724
5728
  default: Oo
5725
5729
  }, Symbol.toStringTag, { value: "Module" })), $o = { class: "content flexMode flexV vc g12 relative z1" }, zo = /* @__PURE__ */ Object.assign({
@@ -5762,38 +5766,38 @@ const Ct = ol({
5762
5766
  },
5763
5767
  setup(e) {
5764
5768
  const o = e;
5765
- return (l, a) => (T(), q(sl, { name: "loadingFade" }, {
5766
- default: P(() => [
5767
- o.loading ? (T(), M("div", {
5769
+ return (l, a) => (S(), q(sl, { name: "loadingFade" }, {
5770
+ default: L(() => [
5771
+ o.loading ? (S(), $("div", {
5768
5772
  key: 0,
5769
5773
  class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
5770
5774
  role: "status",
5771
5775
  "aria-busy": "true",
5772
5776
  "aria-live": "polite",
5773
- style: re({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
5777
+ style: se({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
5774
5778
  }, [
5775
5779
  u("div", $o, [
5776
5780
  u("i", {
5777
- class: B([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
5781
+ class: V([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
5778
5782
  "aria-hidden": "true"
5779
5783
  }, null, 2),
5780
- o.showTxt ? (T(), M("span", {
5784
+ o.showTxt ? (S(), $("span", {
5781
5785
  key: 0,
5782
- class: B(["loaderTxt fs14 txt-c", o.txtClass])
5783
- }, j(l.$l(o.txt)), 3)) : U("", !0)
5786
+ class: V(["loaderTxt fs14 txt-c", o.txtClass])
5787
+ }, E(l.$l(o.txt)), 3)) : U("", !0)
5784
5788
  ])
5785
5789
  ], 4)) : U("", !0)
5786
5790
  ]),
5787
5791
  _: 1
5788
5792
  }));
5789
5793
  }
5790
- }), Eo = /* @__PURE__ */ X(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5794
+ }), Eo = /* @__PURE__ */ Q(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5791
5795
  __proto__: null,
5792
5796
  default: Eo
5793
5797
  }, Symbol.toStringTag, { value: "Module" })), jo = { class: "MvcLogin flexMode flexV hc vc wp100 vh100 p24-16" }, Po = { class: "panelWrap wp100 maxw400 p24 radius8 border noShrink" }, No = { class: "flexMode vc hb mb16" }, Ro = { class: "pl8 fs20 fw700 txt-h1" }, Do = { class: "contentArea minh160" }, Io = {
5794
5798
  key: 1,
5795
5799
  class: "oauthAuthPanel flexMode flexV g8 wp100 vl"
5796
- }, Vo = ["disabled"], Bo = ["disabled"], Fo = {
5800
+ }, Bo = ["disabled"], Vo = ["disabled"], Fo = {
5797
5801
  key: 2,
5798
5802
  class: "scanArea flexMode flexV vc g12"
5799
5803
  }, Uo = { class: "scanTitle m0 block fs14 txt-h2" }, Go = { class: "footerLine flexMode flexWrap hc g8 mt24 fs12 txt-tip" }, Ae = "mvframe_login_remember", Ko = /* @__PURE__ */ Object.assign({
@@ -5835,25 +5839,25 @@ const Ct = ol({
5835
5839
  },
5836
5840
  emits: ["success", "submit"],
5837
5841
  setup(e, { emit: o }) {
5838
- const l = e, { proxy: a } = ce(), t = Z(null), s = Z(!1), c = W({
5842
+ const l = e, { proxy: a } = ue(), t = Z(null), s = Z(!1), c = W({
5839
5843
  method: "password",
5840
5844
  form: {},
5841
5845
  remember: !1
5842
5846
  });
5843
- oe(() => {
5847
+ te(() => {
5844
5848
  try {
5845
- const h = localStorage.getItem(Ae);
5846
- if (h) {
5847
- const S = JSON.parse(h);
5848
- 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)));
5849
+ const v = localStorage.getItem(Ae);
5850
+ if (v) {
5851
+ const w = JSON.parse(v);
5852
+ w && typeof w == "object" && w.remember && (c.remember = !0, w.username != null && (c.form.username = String(w.username)), w.password != null && (c.form.password = String(w.password)));
5849
5853
  }
5850
5854
  } catch {
5851
5855
  }
5852
5856
  });
5853
- const _ = o, A = (h, S = "info") => {
5854
- const z = a == null ? void 0 : a.$message;
5855
- z != null && z[S] && z[S](h);
5856
- }, p = () => {
5857
+ const _ = o, A = (v, w = "info") => {
5858
+ const D = a == null ? void 0 : a.$message;
5859
+ D != null && D[w] && D[w](v);
5860
+ }, b = () => {
5857
5861
  try {
5858
5862
  c.remember ? localStorage.setItem(
5859
5863
  Ae,
@@ -5865,77 +5869,77 @@ const Ct = ol({
5865
5869
  ) : localStorage.removeItem(Ae);
5866
5870
  } catch {
5867
5871
  }
5868
- }, r = () => {
5872
+ }, i = () => {
5869
5873
  A("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
5870
5874
  }, g = () => {
5871
5875
  A("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
5872
- }, C = async () => {
5873
- var w, m;
5876
+ }, T = async () => {
5877
+ var f, O;
5874
5878
  if (l.loading || s.value) return;
5875
- const h = await ((m = (w = t.value) == null ? void 0 : w.validate) == null ? void 0 : m.call(w));
5876
- if (!h) return;
5877
- const S = String(h.username ?? "").trim();
5878
- if (!S)
5879
+ const v = await ((O = (f = t.value) == null ? void 0 : f.validate) == null ? void 0 : O.call(f));
5880
+ if (!v) return;
5881
+ const w = String(v.username ?? "").trim();
5882
+ if (!w)
5879
5883
  return;
5880
- const z = String(h.password ?? "").trim();
5881
- if (z) {
5884
+ const D = String(v.password ?? "").trim();
5885
+ if (D) {
5882
5886
  s.value = !0;
5883
5887
  try {
5884
- const $ = await globalThis.$pm(async () => ({
5888
+ const M = await globalThis.$pm(async () => ({
5885
5889
  method: "password",
5886
- username: S,
5887
- password: z
5890
+ username: w,
5891
+ password: D
5888
5892
  }));
5889
- p(), _("submit", {
5893
+ b(), _("submit", {
5890
5894
  method: "password",
5891
- [v.value.username.valueKey]: $.username,
5892
- [v.value.password.valueKey]: $.password
5895
+ [m.value.username.valueKey]: M.username,
5896
+ [m.value.password.valueKey]: M.password
5893
5897
  }), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
5894
5898
  } finally {
5895
5899
  s.value = !1;
5896
5900
  }
5897
5901
  }
5898
- }, y = x(() => !!l.loading || s.value), E = x(() => {
5899
- const h = globalThis.$config;
5902
+ }, y = k(() => !!l.loading || s.value), z = k(() => {
5903
+ const v = globalThis.$config;
5900
5904
  return {
5901
- copyright: (h == null ? void 0 : h.copyright) ?? "",
5902
- author: (h == null ? void 0 : h.author) ?? ""
5905
+ copyright: (v == null ? void 0 : v.copyright) ?? "",
5906
+ author: (v == null ? void 0 : v.author) ?? ""
5903
5907
  };
5904
- }), D = x(() => i[c.method] ?? "Login"), v = x(() => ({
5908
+ }), B = k(() => d[c.method] ?? "Login"), m = k(() => ({
5905
5909
  username: {
5906
- ...k.username,
5910
+ ...C.username,
5907
5911
  ...l.formFileds.username || {}
5908
5912
  },
5909
5913
  password: {
5910
- ...k.password,
5914
+ ...C.password,
5911
5915
  ...l.formFileds.password || {}
5912
5916
  }
5913
- })), d = x(() => ({
5917
+ })), p = k(() => ({
5914
5918
  username: [
5915
5919
  {
5916
5920
  required: !0,
5917
- message: v.value.username.message,
5921
+ message: m.value.username.message,
5918
5922
  trigger: "blur"
5919
5923
  }
5920
5924
  ],
5921
5925
  password: [
5922
5926
  {
5923
5927
  required: !0,
5924
- message: v.value.password.message,
5928
+ message: m.value.password.message,
5925
5929
  trigger: "blur"
5926
5930
  }
5927
5931
  ]
5928
- })), O = x(() => [
5932
+ })), x = k(() => [
5929
5933
  { value: "password", label: "Account" },
5930
5934
  { value: "auth", label: "Google/Apple" },
5931
5935
  { value: "dingtalk", label: "DingTalk" },
5932
5936
  { value: "feishu", label: "Lark" },
5933
5937
  { value: "wechat", label: "Wechat" }
5934
- ].filter((h, S) => l.loginMethods.includes(S))), i = {
5938
+ ].filter((v, w) => l.loginMethods.includes(w))), d = {
5935
5939
  dingtalk: "DingTalk",
5936
5940
  feishu: "Lark",
5937
5941
  wechat: "Wechat"
5938
- }, k = {
5942
+ }, C = {
5939
5943
  username: {
5940
5944
  label: "Account",
5941
5945
  placeholder: "Enter your account",
@@ -5953,48 +5957,48 @@ const Ct = ol({
5953
5957
  valueKey: "password"
5954
5958
  }
5955
5959
  };
5956
- return (h, S) => {
5957
- const z = V("BtnGroup"), w = V("Input"), m = V("el-form-item"), $ = V("el-checkbox"), I = V("el-button"), G = V("Form");
5958
- return T(), M("div", jo, [
5960
+ return (v, w) => {
5961
+ const D = I("BtnGroup"), f = I("Input"), O = I("el-form-item"), M = I("el-checkbox"), j = I("el-button"), F = I("Form");
5962
+ return S(), $("div", jo, [
5959
5963
  u("div", Po, [
5960
5964
  u("div", No, [
5961
- u("span", Ro, j(h.$l(l.title)), 1)
5965
+ u("span", Ro, E(v.$l(l.title)), 1)
5962
5966
  ]),
5963
- N(z, {
5967
+ N(D, {
5964
5968
  modelValue: n(c).method,
5965
- "onUpdate:modelValue": S[0] || (S[0] = (Y) => n(c).method = Y),
5966
- options: n(O),
5969
+ "onUpdate:modelValue": w[0] || (w[0] = (H) => n(c).method = H),
5970
+ options: n(x),
5967
5971
  disabled: n(y),
5968
5972
  size: "small",
5969
5973
  class: "mb32"
5970
5974
  }, null, 8, ["modelValue", "options", "disabled"]),
5971
5975
  u("div", Do, [
5972
- n(c).method === "password" ? (T(), q(G, {
5976
+ n(c).method === "password" ? (S(), q(F, {
5973
5977
  key: 0,
5974
5978
  ref_key: "pwdFormRef",
5975
5979
  ref: t,
5976
5980
  modelValue: n(c).form,
5977
- "onUpdate:modelValue": S[4] || (S[4] = (Y) => n(c).form = Y),
5981
+ "onUpdate:modelValue": w[4] || (w[4] = (H) => n(c).form = H),
5978
5982
  size: "default",
5979
- rules: n(d)
5983
+ rules: n(p)
5980
5984
  }, {
5981
- default: P(() => [
5982
- N(m, { prop: "username" }, {
5983
- default: P(() => [
5984
- N(w, {
5985
+ default: L(() => [
5986
+ N(O, { prop: "username" }, {
5987
+ default: L(() => [
5988
+ N(f, {
5985
5989
  modelValue: n(c).form.username,
5986
- "onUpdate:modelValue": S[1] || (S[1] = (Y) => n(c).form.username = Y),
5990
+ "onUpdate:modelValue": w[1] || (w[1] = (H) => n(c).form.username = H),
5987
5991
  class: "wp100",
5988
5992
  size: "large",
5989
5993
  name: "username",
5990
- placeholder: n(v).username.placeholder,
5994
+ placeholder: n(m).username.placeholder,
5991
5995
  disabled: n(y)
5992
- }, be({ _: 2 }, [
5993
- n(v).username.showPrefix ? {
5996
+ }, pe({ _: 2 }, [
5997
+ n(m).username.showPrefix ? {
5994
5998
  name: "prefix",
5995
- fn: P(() => [
5999
+ fn: L(() => [
5996
6000
  u("i", {
5997
- class: B(n(v).username.icon)
6001
+ class: V(n(m).username.icon)
5998
6002
  }, null, 2)
5999
6003
  ]),
6000
6004
  key: "0"
@@ -6003,25 +6007,25 @@ const Ct = ol({
6003
6007
  ]),
6004
6008
  _: 1
6005
6009
  }),
6006
- N(m, { prop: "password" }, {
6007
- default: P(() => [
6008
- N(w, {
6010
+ N(O, { prop: "password" }, {
6011
+ default: L(() => [
6012
+ N(f, {
6009
6013
  modelValue: n(c).form.password,
6010
- "onUpdate:modelValue": S[2] || (S[2] = (Y) => n(c).form.password = Y),
6014
+ "onUpdate:modelValue": w[2] || (w[2] = (H) => n(c).form.password = H),
6011
6015
  class: "wp100",
6012
6016
  size: "large",
6013
6017
  type: "password",
6014
6018
  name: "password",
6015
- placeholder: n(v).password.placeholder,
6019
+ placeholder: n(m).password.placeholder,
6016
6020
  "show-password": "",
6017
6021
  disabled: n(y),
6018
- onKeyup: Pl(C, ["enter"])
6019
- }, be({ _: 2 }, [
6020
- n(v).password.showPrefix ? {
6022
+ onKeyup: Pl(T, ["enter"])
6023
+ }, pe({ _: 2 }, [
6024
+ n(m).password.showPrefix ? {
6021
6025
  name: "prefix",
6022
- fn: P(() => [
6026
+ fn: L(() => [
6023
6027
  u("i", {
6024
- class: B(n(v).password.icon)
6028
+ class: V(n(m).password.icon)
6025
6029
  }, null, 2)
6026
6030
  ]),
6027
6031
  key: "0"
@@ -6030,52 +6034,52 @@ const Ct = ol({
6030
6034
  ]),
6031
6035
  _: 1
6032
6036
  }),
6033
- N(m, null, {
6034
- default: P(() => [
6035
- N($, {
6037
+ N(O, null, {
6038
+ default: L(() => [
6039
+ N(M, {
6036
6040
  modelValue: n(c).remember,
6037
- "onUpdate:modelValue": S[3] || (S[3] = (Y) => n(c).remember = Y),
6041
+ "onUpdate:modelValue": w[3] || (w[3] = (H) => n(c).remember = H),
6038
6042
  disabled: n(y)
6039
6043
  }, {
6040
- default: P(() => [
6041
- te(j(h.$l(l.rememberTxt)), 1)
6044
+ default: L(() => [
6045
+ ae(E(v.$l(l.rememberTxt)), 1)
6042
6046
  ]),
6043
6047
  _: 1
6044
6048
  }, 8, ["modelValue", "disabled"])
6045
6049
  ]),
6046
6050
  _: 1
6047
6051
  }),
6048
- N(I, {
6052
+ N(j, {
6049
6053
  type: "primary",
6050
6054
  size: "large",
6051
6055
  class: "wp100",
6052
6056
  loading: n(y),
6053
6057
  disabled: n(y),
6054
- onClick: C
6058
+ onClick: T
6055
6059
  }, {
6056
- default: P(() => [
6057
- te(j(h.$l(l.submitTxt)), 1)
6060
+ default: L(() => [
6061
+ ae(E(v.$l(l.submitTxt)), 1)
6058
6062
  ]),
6059
6063
  _: 1
6060
6064
  }, 8, ["loading", "disabled"])
6061
6065
  ]),
6062
6066
  _: 1
6063
- }, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (T(), M("div", Io, [
6064
- S[7] || (S[7] = u("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
6067
+ }, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (S(), $("div", Io, [
6068
+ w[7] || (w[7] = u("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
6065
6069
  u("button", {
6066
6070
  type: "button",
6067
6071
  class: "oauthGoogle wp100 mb36",
6068
6072
  disabled: n(y),
6069
- onClick: r
6070
- }, [...S[5] || (S[5] = [
6073
+ onClick: i
6074
+ }, [...w[5] || (w[5] = [
6071
6075
  Nl('<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)
6072
- ])], 8, Vo),
6076
+ ])], 8, Bo),
6073
6077
  u("button", {
6074
6078
  type: "button",
6075
6079
  class: "oauthApple wp100 mb16",
6076
6080
  disabled: n(y),
6077
6081
  onClick: g
6078
- }, [...S[6] || (S[6] = [
6082
+ }, [...w[6] || (w[6] = [
6079
6083
  u("svg", {
6080
6084
  class: "oauthAppleLogo noShrink",
6081
6085
  xmlns: "http://www.w3.org/2000/svg",
@@ -6090,24 +6094,24 @@ const Ct = ol({
6090
6094
  })
6091
6095
  ], -1),
6092
6096
  u("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
6093
- ])], 8, Bo)
6094
- ])) : (T(), M("div", Fo, [
6095
- u("p", Uo, j(n(D)), 1),
6097
+ ])], 8, Vo)
6098
+ ])) : (S(), $("div", Fo, [
6099
+ u("p", Uo, E(n(B)), 1),
6096
6100
  u("div", {
6097
- class: B(["qrBlock w180 h180 radius6", `qr-${n(c).method}`]),
6101
+ class: V(["qrBlock w180 h180 radius6", `qr-${n(c).method}`]),
6098
6102
  "aria-hidden": "true"
6099
6103
  }, null, 2)
6100
6104
  ]))
6101
6105
  ])
6102
6106
  ]),
6103
6107
  u("div", Go, [
6104
- u("span", null, j(n(E).copyright), 1),
6105
- u("span", null, j(n(E).author), 1)
6108
+ u("span", null, E(n(z).copyright), 1),
6109
+ u("span", null, E(n(z).author), 1)
6106
6110
  ])
6107
6111
  ]);
6108
6112
  };
6109
6113
  }
6110
- }), Ho = /* @__PURE__ */ X(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6114
+ }), Ho = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6111
6115
  __proto__: null,
6112
6116
  default: Ho
6113
6117
  }, Symbol.toStringTag, { value: "Module" })), Yo = /* @__PURE__ */ Object.assign({
@@ -6134,17 +6138,17 @@ const Ct = ol({
6134
6138
  setup(e) {
6135
6139
  const o = e;
6136
6140
  W({});
6137
- const l = x(() => ({
6141
+ const l = k(() => ({
6138
6142
  borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
6139
6143
  }));
6140
- return (a, t) => (T(), M("div", {
6144
+ return (a, t) => (S(), $("div", {
6141
6145
  class: "MvcNote",
6142
- style: re(n(l))
6146
+ style: se(n(l))
6143
6147
  }, [
6144
- H(a.$slots, "default", {}, void 0, !0)
6148
+ J(a.$slots, "default", {}, void 0, !0)
6145
6149
  ], 4));
6146
6150
  }
6147
- }), Wo = /* @__PURE__ */ X(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6151
+ }), Wo = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6148
6152
  __proto__: null,
6149
6153
  default: Wo
6150
6154
  }, Symbol.toStringTag, { value: "Module" })), qo = {
@@ -6174,35 +6178,35 @@ const Ct = ol({
6174
6178
  }
6175
6179
  },
6176
6180
  setup(e) {
6177
- const o = e, { proxy: l } = ce(), t = ge("store").tab(), s = x(() => o.title || o.subtitle), c = x(() => t.useTab), _ = x(() => {
6181
+ const o = e, { proxy: l } = ue(), t = ge("store").tab(), s = k(() => o.title || o.subtitle), c = k(() => t.useTab), _ = k(() => {
6178
6182
  let A = "calc(100vh";
6179
6183
  return t.useTab && (A += " - 2.25rem"), o.noheader || (A += " - 4rem"), {
6180
6184
  minHeight: `${A})`
6181
6185
  };
6182
6186
  });
6183
- return (A, p) => (T(), M("div", {
6184
- class: B(["MvcPage", n(c) && "hasTab"])
6187
+ return (A, b) => (S(), $("div", {
6188
+ class: V(["MvcPage", n(c) && "hasTab"])
6185
6189
  }, [
6186
- o.noheader ? U("", !0) : (T(), M("div", qo, [
6190
+ o.noheader ? U("", !0) : (S(), $("div", qo, [
6187
6191
  u("div", Xo, [
6188
- A.$slots.header ? H(A.$slots, "header", { key: 0 }, void 0, !0) : n(s) ? (T(), M(Q, { key: 1 }, [
6189
- u("h3", Qo, j(o.title), 1),
6190
- u("p", en, j(o.subtitle), 1)
6192
+ A.$slots.header ? J(A.$slots, "header", { key: 0 }, void 0, !0) : n(s) ? (S(), $(ee, { key: 1 }, [
6193
+ u("h3", Qo, E(o.title), 1),
6194
+ u("p", en, E(o.subtitle), 1)
6191
6195
  ], 64)) : U("", !0)
6192
6196
  ]),
6193
6197
  u("div", ln, [
6194
- A.$slots.right ? H(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
6198
+ A.$slots.right ? J(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
6195
6199
  ])
6196
6200
  ])),
6197
6201
  u("div", {
6198
- class: B(["PageBody", o.bodyClass]),
6199
- style: re(n(_))
6202
+ class: V(["PageBody", o.bodyClass]),
6203
+ style: se(n(_))
6200
6204
  }, [
6201
- H(A.$slots, "default", {}, void 0, !0)
6205
+ J(A.$slots, "default", {}, void 0, !0)
6202
6206
  ], 6)
6203
6207
  ], 2));
6204
6208
  }
6205
- }), tn = /* @__PURE__ */ X(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6209
+ }), tn = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6206
6210
  __proto__: null,
6207
6211
  default: tn
6208
6212
  }, Symbol.toStringTag, { value: "Module" })), nn = {
@@ -6261,164 +6265,168 @@ const Ct = ol({
6261
6265
  },
6262
6266
  emits: ["update:modelValue", "change", "focus", "blur"],
6263
6267
  setup(e, { emit: o }) {
6264
- const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), p = ue(), r = o, g = (b) => {
6265
- l.multiple ? (t.value = Array.isArray(b) ? [...b] : [], k()) : (r("update:modelValue", b), r("change", b));
6266
- }, C = (b) => {
6267
- if (s.value = b, b && l.multiple) {
6268
- const f = l.modelValue;
6269
- t.value = Array.isArray(f) ? [...f] : f ? [f] : [], k();
6268
+ const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), b = be(), i = o, g = (r) => {
6269
+ l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
6270
+ }, T = (r) => {
6271
+ if (s.value = r, r && l.multiple) {
6272
+ const h = l.modelValue;
6273
+ t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
6270
6274
  }
6271
- }, y = (b) => {
6272
- A.value = !0, r("focus", b);
6273
- }, E = (b) => {
6274
- A.value = !1, r("blur", b);
6275
- }, D = () => {
6276
- var L;
6277
- if (!l.filterable || !s.value) return i();
6278
- const b = a.value, f = ((L = b == null ? void 0 : b.optionsArray) == null ? void 0 : L.value) ?? (b == null ? void 0 : b.optionsArray) ?? [];
6279
- return Array.isArray(f) ? f.filter((R) => R.visible && !R.isDisabled).map((R) => R.value) : i();
6280
- }, v = () => {
6281
- const b = p.multipleLimit ?? p["multiple-limit"], f = Number(b);
6282
- return Number.isFinite(f) && f > 0 ? f : 0;
6283
- }, d = (b) => {
6284
- const f = D();
6285
- if (b) {
6286
- const L = v(), R = Array.isArray(t.value) ? [...t.value] : [], F = new Set(R), K = [...R];
6287
- for (const J of f)
6288
- if (!F.has(J)) {
6289
- if (L > 0 && K.length >= L) break;
6290
- F.add(J), K.push(J);
6275
+ }, y = (r) => {
6276
+ A.value = !0, i("focus", r);
6277
+ }, z = (r) => {
6278
+ A.value = !1, i("blur", r);
6279
+ }, B = () => {
6280
+ var R;
6281
+ if (!l.filterable || !s.value) return d();
6282
+ const r = a.value, h = ((R = r == null ? void 0 : r.optionsArray) == null ? void 0 : R.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
6283
+ return Array.isArray(h) ? h.filter((P) => P.visible && !P.isDisabled).map((P) => P.value) : d();
6284
+ }, m = () => {
6285
+ const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
6286
+ return Number.isFinite(h) && h > 0 ? h : 0;
6287
+ }, p = (r) => {
6288
+ const h = B();
6289
+ if (r) {
6290
+ const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
6291
+ for (const Y of h)
6292
+ if (!G.has(Y)) {
6293
+ if (R > 0 && K.length >= R) break;
6294
+ G.add(Y), K.push(Y);
6291
6295
  }
6292
6296
  t.value = K;
6293
6297
  } else {
6294
- const L = new Set(f);
6295
- t.value = t.value.filter((R) => !L.has(R));
6298
+ const R = new Set(h);
6299
+ t.value = t.value.filter((P) => !R.has(P));
6296
6300
  }
6297
- k();
6298
- }, O = () => {
6299
- var b, f;
6300
- l.multiple && (r("update:modelValue", t.value), r("change", t.value), (f = (b = a.value) == null ? void 0 : b.blur) == null || f.call(b));
6301
- }, i = () => {
6302
- const b = l.valueKey;
6303
- return (l.options || []).map((f) => typeof f == "object" ? f[b] : f);
6304
- }, k = () => {
6305
- const b = D(), f = new Set(t.value ?? []), L = b.filter((F) => f.has(F)).length, R = b.length;
6306
- c.value = R > 0 && L === R, _.value = L > 0 && L < R;
6307
- }, h = x(() => l.multiple && s.value ? t.value : l.modelValue), S = x(() => {
6301
+ C();
6302
+ }, x = () => {
6303
+ var r, h;
6304
+ l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
6305
+ }, d = () => {
6306
+ const r = l.valueKey;
6307
+ return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
6308
+ }, C = () => {
6309
+ const r = B(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
6310
+ c.value = P > 0 && R === P, _.value = R > 0 && R < P;
6311
+ }, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
6308
6312
  const {
6309
- modelValue: b,
6310
- valueKey: f,
6311
- labelKey: L,
6312
- selectAllTxt: R,
6313
- confirmTxt: F,
6313
+ modelValue: r,
6314
+ valueKey: h,
6315
+ labelKey: R,
6316
+ selectAllTxt: P,
6317
+ confirmTxt: G,
6314
6318
  nowrap: K,
6315
- ...J
6316
- } = l, le = J.props ?? {};
6319
+ ...Y
6320
+ } = l, X = Y.props ?? {};
6317
6321
  return {
6318
- ...J,
6322
+ ...Y,
6319
6323
  props: {
6320
- ...le,
6321
- value: f,
6322
- label: L
6324
+ ...X,
6325
+ value: h,
6326
+ label: R
6323
6327
  }
6324
6328
  };
6325
- }), z = x(
6329
+ }), D = k(
6326
6330
  () => l.nowrap ? {
6327
6331
  collapseTags: !0,
6328
6332
  collapseTagsTooltip: !0,
6329
6333
  maxCollapseTags: 1,
6330
6334
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
6331
6335
  } : {}
6332
- ), w = x(() => ({
6333
- ...z.value,
6334
- ...ue(),
6335
- ...S.value,
6336
- placeholder: p.placeholder ?? ""
6337
- })), m = x(() => {
6338
- const b = l.multiple && s.value ? t.value : l.modelValue, f = Array.isArray(b) ? b : b ? [b] : [];
6339
- if (!l.filterable || !s.value) return f.length;
6340
- const L = D();
6341
- return f.filter((R) => L.includes(R)).length;
6342
- }), $ = x(() => D().length), I = x(() => {
6343
- const b = l.multiple && s.value ? t.value : l.modelValue;
6344
- return Array.isArray(b) ? b.length > 0 : b != null && String(b) !== "";
6345
- }), G = x(() => !!p.placeholder), Y = x(
6346
- () => l.materialLabel && (A.value || s.value || I.value || G.value)
6347
- ), ie = x(() => ({
6336
+ ), f = k(() => {
6337
+ const { class: r, ...h } = b;
6338
+ return h;
6339
+ }), O = k(() => ({
6340
+ ...D.value,
6341
+ ...f.value,
6342
+ ...w.value,
6343
+ placeholder: b.placeholder ?? ""
6344
+ })), M = k(() => {
6345
+ const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
6346
+ if (!l.filterable || !s.value) return h.length;
6347
+ const R = B();
6348
+ return h.filter((P) => R.includes(P)).length;
6349
+ }), j = k(() => B().length), F = k(() => {
6350
+ const r = l.multiple && s.value ? t.value : l.modelValue;
6351
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
6352
+ }), H = k(() => !!b.placeholder), ie = k(
6353
+ () => l.materialLabel && (A.value || s.value || F.value || H.value)
6354
+ ), fe = k(() => ({
6355
+ [b.class]: !!b.class,
6348
6356
  hasLabel: !!l.label,
6349
6357
  isMaterialLabel: !!(l.label && l.materialLabel),
6350
6358
  isTopLabel: !!(l.label && !l.materialLabel),
6351
- isFloat: Y.value,
6359
+ isFloat: ie.value,
6352
6360
  isFocused: A.value,
6353
- isDisabled: !!p.disabled,
6361
+ isDisabled: !!b.disabled,
6354
6362
  isSelect: !0
6355
- })), fe = x(
6363
+ })), re = k(
6356
6364
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
6357
6365
  );
6358
- return se(t, () => k(), { deep: !0 }), se(
6366
+ return ne(t, () => C(), { deep: !0 }), ne(
6359
6367
  () => l.modelValue,
6360
- (b) => {
6368
+ (r) => {
6361
6369
  if (l.multiple && s.value) {
6362
- const f = Array.isArray(b) ? [...b] : b ? [b] : [];
6363
- JSON.stringify(f) !== JSON.stringify(t.value) && (t.value = f, k());
6370
+ const h = Array.isArray(r) ? [...r] : r ? [r] : [];
6371
+ JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
6364
6372
  }
6365
6373
  }
6366
- ), (b, f) => {
6367
- const L = V("el-checkbox"), R = V("el-button"), F = V("el-select");
6368
- return T(), M("div", {
6369
- class: B(["MvcField MvcFieldSelect", n(ie)]),
6370
- style: re(n(fe))
6374
+ ), (r, h) => {
6375
+ const R = I("el-checkbox"), P = I("el-button"), G = I("el-select");
6376
+ return S(), $("div", {
6377
+ class: V(["MvcField MvcFieldSelect", n(fe)]),
6378
+ style: se(n(re))
6371
6379
  }, [
6372
- l.label ? (T(), M("label", nn, j(l.label), 1)) : U("", !0),
6373
- N(F, ee({
6380
+ l.label ? (S(), $("label", nn, E(l.label), 1)) : U("", !0),
6381
+ N(G, le({
6374
6382
  ref_key: "selectRef",
6375
6383
  ref: a,
6376
- "model-value": n(h),
6384
+ "model-value": n(v),
6377
6385
  "tag-effect": "plain",
6378
6386
  class: "MvcSelect"
6379
- }, n(w), {
6387
+ }, n(O), {
6380
6388
  "onUpdate:modelValue": g,
6381
- onVisibleChange: C,
6389
+ onVisibleChange: T,
6382
6390
  onFocus: y,
6383
- onBlur: E
6384
- }), be({
6385
- default: P(() => [
6386
- H(b.$slots, "default")
6391
+ onBlur: z
6392
+ }), pe({
6393
+ default: L(() => [
6394
+ J(r.$slots, "default")
6387
6395
  ]),
6388
6396
  _: 2
6389
6397
  }, [
6390
6398
  l.filterable && l.multiple ? {
6391
6399
  name: "header",
6392
- fn: P(() => [
6400
+ fn: L(() => [
6393
6401
  u("div", sn, [
6394
- N(L, {
6402
+ N(R, {
6395
6403
  modelValue: n(c),
6396
- "onUpdate:modelValue": f[0] || (f[0] = (K) => rl(c) ? c.value = K : null),
6404
+ "onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
6397
6405
  indeterminate: n(_),
6398
6406
  class: "h24",
6399
- onChange: d
6407
+ onChange: p
6400
6408
  }, {
6401
- default: P(() => [
6402
- te(j(e.selectAllTxt), 1)
6409
+ default: L(() => [
6410
+ ae(E(e.selectAllTxt), 1)
6403
6411
  ]),
6404
6412
  _: 1
6405
6413
  }, 8, ["modelValue", "indeterminate"]),
6406
- u("span", rn, j(n(m)) + "/" + j(n($)), 1)
6414
+ u("span", rn, E(n(M)) + "/" + E(n(j)), 1)
6407
6415
  ])
6408
6416
  ]),
6409
6417
  key: "0"
6410
6418
  } : void 0,
6411
6419
  l.multiple ? {
6412
6420
  name: "footer",
6413
- fn: P(() => [
6421
+ fn: L(() => [
6414
6422
  u("div", un, [
6415
- N(R, {
6423
+ N(P, {
6416
6424
  type: "primary",
6417
6425
  size: "small",
6418
- onClick: O
6426
+ onClick: x
6419
6427
  }, {
6420
- default: P(() => [
6421
- te(j(e.confirmTxt), 1)
6428
+ default: L(() => [
6429
+ ae(E(e.confirmTxt), 1)
6422
6430
  ]),
6423
6431
  _: 1
6424
6432
  })
@@ -6489,167 +6497,171 @@ const Ct = ol({
6489
6497
  },
6490
6498
  emits: ["update:modelValue", "change", "focus", "blur"],
6491
6499
  setup(e, { emit: o }) {
6492
- const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), p = ue(), r = o, g = (b) => {
6493
- l.multiple ? (t.value = Array.isArray(b) ? [...b] : [], k()) : (r("update:modelValue", b), r("change", b));
6494
- }, C = (b) => {
6495
- if (s.value = b, b && l.multiple) {
6496
- const f = l.modelValue;
6497
- t.value = Array.isArray(f) ? [...f] : f ? [f] : [], k();
6500
+ const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), b = be(), i = o, g = (r) => {
6501
+ l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
6502
+ }, T = (r) => {
6503
+ if (s.value = r, r && l.multiple) {
6504
+ const h = l.modelValue;
6505
+ t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
6498
6506
  }
6499
- }, y = (b) => {
6500
- A.value = !0, r("focus", b);
6501
- }, E = (b) => {
6502
- A.value = !1, r("blur", b);
6503
- }, D = () => {
6504
- var R;
6505
- if (!l.filterable || !s.value) return i();
6506
- const b = a.value, f = ((R = b == null ? void 0 : b.filteredOptions) == null ? void 0 : R.value) ?? (b == null ? void 0 : b.filteredOptions) ?? [];
6507
- if (!Array.isArray(f)) return i();
6508
- const L = l.valueKey;
6509
- return f.filter((F) => F.type !== "Group" && !F.disabled).map((F) => typeof F == "object" ? F[L] : F);
6510
- }, v = () => {
6511
- const b = p.multipleLimit ?? p["multiple-limit"], f = Number(b);
6512
- return Number.isFinite(f) && f > 0 ? f : 0;
6513
- }, d = (b) => {
6514
- const f = D();
6515
- if (b) {
6516
- const L = v(), R = Array.isArray(t.value) ? [...t.value] : [], F = new Set(R), K = [...R];
6517
- for (const J of f)
6518
- if (!F.has(J)) {
6519
- if (L > 0 && K.length >= L) break;
6520
- F.add(J), K.push(J);
6507
+ }, y = (r) => {
6508
+ A.value = !0, i("focus", r);
6509
+ }, z = (r) => {
6510
+ A.value = !1, i("blur", r);
6511
+ }, B = () => {
6512
+ var P;
6513
+ if (!l.filterable || !s.value) return d();
6514
+ const r = a.value, h = ((P = r == null ? void 0 : r.filteredOptions) == null ? void 0 : P.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
6515
+ if (!Array.isArray(h)) return d();
6516
+ const R = l.valueKey;
6517
+ return h.filter((G) => G.type !== "Group" && !G.disabled).map((G) => typeof G == "object" ? G[R] : G);
6518
+ }, m = () => {
6519
+ const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
6520
+ return Number.isFinite(h) && h > 0 ? h : 0;
6521
+ }, p = (r) => {
6522
+ const h = B();
6523
+ if (r) {
6524
+ const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
6525
+ for (const Y of h)
6526
+ if (!G.has(Y)) {
6527
+ if (R > 0 && K.length >= R) break;
6528
+ G.add(Y), K.push(Y);
6521
6529
  }
6522
6530
  t.value = K;
6523
6531
  } else {
6524
- const L = new Set(f);
6525
- t.value = t.value.filter((R) => !L.has(R));
6532
+ const R = new Set(h);
6533
+ t.value = t.value.filter((P) => !R.has(P));
6526
6534
  }
6527
- k();
6528
- }, O = () => {
6529
- var b, f;
6530
- l.multiple && (r("update:modelValue", t.value), r("change", t.value), (f = (b = a.value) == null ? void 0 : b.blur) == null || f.call(b));
6531
- }, i = () => {
6532
- const b = l.valueKey;
6533
- return (l.options || []).map((f) => typeof f == "object" ? f[b] : f);
6534
- }, k = () => {
6535
- const b = D(), f = new Set(t.value ?? []), L = b.filter((F) => f.has(F)).length, R = b.length;
6536
- c.value = R > 0 && L === R, _.value = L > 0 && L < R;
6537
- }, h = x(() => l.multiple && s.value ? t.value : l.modelValue), S = x(() => {
6535
+ C();
6536
+ }, x = () => {
6537
+ var r, h;
6538
+ l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
6539
+ }, d = () => {
6540
+ const r = l.valueKey;
6541
+ return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
6542
+ }, C = () => {
6543
+ const r = B(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
6544
+ c.value = P > 0 && R === P, _.value = R > 0 && R < P;
6545
+ }, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
6538
6546
  const {
6539
- modelValue: b,
6540
- valueKey: f,
6541
- labelKey: L,
6542
- selectAllTxt: R,
6543
- confirmTxt: F,
6547
+ modelValue: r,
6548
+ valueKey: h,
6549
+ labelKey: R,
6550
+ selectAllTxt: P,
6551
+ confirmTxt: G,
6544
6552
  nowrap: K,
6545
- ...J
6546
- } = l, le = J.props ?? {};
6553
+ ...Y
6554
+ } = l, X = Y.props ?? {};
6547
6555
  return {
6548
- ...J,
6556
+ ...Y,
6549
6557
  props: {
6550
- ...le,
6551
- value: f,
6552
- label: L
6558
+ ...X,
6559
+ value: h,
6560
+ label: R
6553
6561
  }
6554
6562
  };
6555
- }), z = x(
6563
+ }), D = k(
6556
6564
  () => l.nowrap ? {
6557
6565
  collapseTags: !0,
6558
6566
  collapseTagsTooltip: !0,
6559
6567
  maxCollapseTags: 1,
6560
6568
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
6561
6569
  } : {}
6562
- ), w = x(() => ({
6563
- ...z.value,
6564
- ...ue(),
6565
- ...S.value,
6566
- placeholder: p.placeholder ?? ""
6567
- })), m = x(() => {
6568
- const b = l.multiple && s.value ? t.value : l.modelValue, f = Array.isArray(b) ? b : b ? [b] : [];
6569
- if (!l.filterable || !s.value) return f.length;
6570
- const L = D();
6571
- return f.filter((R) => L.includes(R)).length;
6572
- }), $ = x(() => D().length), I = x(() => {
6573
- const b = l.multiple && s.value ? t.value : l.modelValue;
6574
- return Array.isArray(b) ? b.length > 0 : b != null && String(b) !== "";
6575
- }), G = x(() => !!p.placeholder), Y = x(
6576
- () => l.materialLabel && (A.value || s.value || I.value || G.value)
6577
- ), ie = x(() => ({
6570
+ ), f = k(() => {
6571
+ const { class: r, ...h } = b;
6572
+ return h;
6573
+ }), O = k(() => ({
6574
+ ...D.value,
6575
+ ...f.value,
6576
+ ...w.value,
6577
+ placeholder: b.placeholder ?? ""
6578
+ })), M = k(() => {
6579
+ const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
6580
+ if (!l.filterable || !s.value) return h.length;
6581
+ const R = B();
6582
+ return h.filter((P) => R.includes(P)).length;
6583
+ }), j = k(() => B().length), F = k(() => {
6584
+ const r = l.multiple && s.value ? t.value : l.modelValue;
6585
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
6586
+ }), H = k(() => !!b.placeholder), ie = k(
6587
+ () => l.materialLabel && (A.value || s.value || F.value || H.value)
6588
+ ), fe = k(() => ({
6589
+ [b.class]: !!b.class,
6578
6590
  hasLabel: !!l.label,
6579
6591
  isMaterialLabel: !!(l.label && l.materialLabel),
6580
6592
  isTopLabel: !!(l.label && !l.materialLabel),
6581
- isFloat: Y.value,
6593
+ isFloat: ie.value,
6582
6594
  isFocused: A.value,
6583
- isDisabled: !!p.disabled,
6595
+ isDisabled: !!b.disabled,
6584
6596
  isSelect: !0
6585
- })), fe = x(
6597
+ })), re = k(
6586
6598
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
6587
6599
  );
6588
- return se(t, () => k(), { deep: !0 }), se(
6600
+ return ne(t, () => C(), { deep: !0 }), ne(
6589
6601
  () => l.modelValue,
6590
- (b) => {
6602
+ (r) => {
6591
6603
  if (l.multiple && s.value) {
6592
- const f = Array.isArray(b) ? [...b] : b ? [b] : [];
6593
- JSON.stringify(f) !== JSON.stringify(t.value) && (t.value = f, k());
6604
+ const h = Array.isArray(r) ? [...r] : r ? [r] : [];
6605
+ JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
6594
6606
  }
6595
6607
  }
6596
- ), (b, f) => {
6597
- const L = V("el-checkbox"), R = V("el-button"), F = V("el-select-v2");
6598
- return T(), M("div", {
6599
- class: B(["MvcField MvcFieldSelectV2", n(ie)]),
6600
- style: re(n(fe))
6608
+ ), (r, h) => {
6609
+ const R = I("el-checkbox"), P = I("el-button"), G = I("el-select-v2");
6610
+ return S(), $("div", {
6611
+ class: V(["MvcField MvcFieldSelectV2", n(fe)]),
6612
+ style: se(n(re))
6601
6613
  }, [
6602
- l.label ? (T(), M("label", pn, j(l.label), 1)) : U("", !0),
6603
- N(F, ee({
6614
+ l.label ? (S(), $("label", pn, E(l.label), 1)) : U("", !0),
6615
+ N(G, le({
6604
6616
  ref_key: "selectRef",
6605
6617
  ref: a,
6606
- "model-value": n(h),
6618
+ "model-value": n(v),
6607
6619
  class: "MvcSelectV2"
6608
- }, n(w), {
6620
+ }, n(O), {
6609
6621
  "onUpdate:modelValue": g,
6610
- onVisibleChange: C,
6622
+ onVisibleChange: T,
6611
6623
  onFocus: y,
6612
- onBlur: E
6613
- }), be({ _: 2 }, [
6624
+ onBlur: z
6625
+ }), pe({ _: 2 }, [
6614
6626
  l.filterable && l.multiple ? {
6615
6627
  name: "header",
6616
- fn: P(() => [
6628
+ fn: L(() => [
6617
6629
  u("div", bn, [
6618
- N(L, {
6630
+ N(R, {
6619
6631
  modelValue: n(c),
6620
- "onUpdate:modelValue": f[0] || (f[0] = (K) => rl(c) ? c.value = K : null),
6632
+ "onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
6621
6633
  indeterminate: n(_),
6622
6634
  class: "h24",
6623
- onChange: d
6635
+ onChange: p
6624
6636
  }, {
6625
- default: P(() => [
6626
- te(j(e.selectAllTxt), 1)
6637
+ default: L(() => [
6638
+ ae(E(e.selectAllTxt), 1)
6627
6639
  ]),
6628
6640
  _: 1
6629
6641
  }, 8, ["modelValue", "indeterminate"]),
6630
- u("span", fn, j(n(m)) + "/" + j(n($)), 1)
6642
+ u("span", fn, E(n(M)) + "/" + E(n(j)), 1)
6631
6643
  ])
6632
6644
  ]),
6633
6645
  key: "0"
6634
6646
  } : void 0,
6635
- b.$slots.default ? {
6647
+ r.$slots.default ? {
6636
6648
  name: "default",
6637
- fn: P((K) => [
6638
- H(b.$slots, "default", Te(xe(K)))
6649
+ fn: L((K) => [
6650
+ J(r.$slots, "default", Te(xe(K)))
6639
6651
  ]),
6640
6652
  key: "1"
6641
6653
  } : void 0,
6642
6654
  l.multiple ? {
6643
6655
  name: "footer",
6644
- fn: P(() => [
6656
+ fn: L(() => [
6645
6657
  u("div", mn, [
6646
- N(R, {
6658
+ N(P, {
6647
6659
  type: "primary",
6648
6660
  size: "small",
6649
- onClick: O
6661
+ onClick: x
6650
6662
  }, {
6651
- default: P(() => [
6652
- te(j(e.confirmTxt), 1)
6663
+ default: L(() => [
6664
+ ae(E(e.confirmTxt), 1)
6653
6665
  ]),
6654
6666
  _: 1
6655
6667
  })
@@ -6688,34 +6700,34 @@ const Ct = ol({
6688
6700
  }), a = e.tableName + "_Column";
6689
6701
  let t = [];
6690
6702
  (() => {
6691
- const A = o.slots.default()[0].children, p = {
6703
+ const A = o.slots.default()[0].children, b = {
6692
6704
  normal: [],
6693
6705
  mmp: [],
6694
6706
  asa: [],
6695
6707
  fixed: [],
6696
6708
  columns: []
6697
- }, r = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
6709
+ }, i = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
6698
6710
  A.forEach((y) => {
6699
6711
  window.$getType(y.type) === "Symbol" ? t = t.concat(y.children) : t.push(y);
6700
- }), t.forEach((y, E) => {
6701
- var D;
6702
- if (window.$getType(y.type), ((D = y.type) == null ? void 0 : D.name) === "ElTableColumn") {
6703
- let v = {
6712
+ }), t.forEach((y, z) => {
6713
+ var B;
6714
+ if (window.$getType(y.type), ((B = y.type) == null ? void 0 : B.name) === "ElTableColumn") {
6715
+ let m = {
6704
6716
  ...y.props,
6705
- sort: E,
6717
+ sort: z,
6706
6718
  nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
6707
6719
  resizable: !0,
6708
6720
  visible: y.props.visible !== !1
6709
6721
  };
6710
- if (v.labelKey || (v.labelKey = v.label), v.label = window.$l(v.labelKey), e.column && (r != null && r.length) && g.indexOf(y.props.prop) === -1) {
6711
- const { data: d } = r.filter1((O) => O.prop === y.props.prop);
6712
- d && (v.sort = d.sort, v.fixed = d.fixed, v.visible = d.visible);
6722
+ if (m.labelKey || (m.labelKey = m.label), m.label = window.$l(m.labelKey), e.column && (i != null && i.length) && g.indexOf(y.props.prop) === -1) {
6723
+ const { data: p } = i.filter1((x) => x.prop === y.props.prop);
6724
+ p && (m.sort = p.sort, m.fixed = p.fixed, m.visible = p.visible);
6713
6725
  }
6714
- y.props.fixed && p.fixed.push(v), y.props.type === "mmp" ? p.mmp.push(v) : y.props.type === "asa" ? p.asa.push(v) : p.normal.push(v), y.props = v;
6726
+ y.props.fixed && b.fixed.push(m), y.props.type === "mmp" ? b.mmp.push(m) : y.props.type === "asa" ? b.asa.push(m) : b.normal.push(m), y.props = m;
6715
6727
  }
6716
- }), l.columnInfo = p;
6717
- let C = [...p.normal, ...p.mmp, ...p.asa];
6718
- e.tableName && (C = C.sort((y, E) => y.sort - E.sort), localStorage.setItem(a, JSON.stringify(C)));
6728
+ }), l.columnInfo = b;
6729
+ let T = [...b.normal, ...b.mmp, ...b.asa];
6730
+ e.tableName && (T = T.sort((y, z) => y.sort - z.sort), localStorage.setItem(a, JSON.stringify(T)));
6719
6731
  })();
6720
6732
  let c = [];
6721
6733
  if (t.forEach((A) => {
@@ -6737,7 +6749,7 @@ const Ct = ol({
6737
6749
  props: A
6738
6750
  });
6739
6751
  }
6740
- return c = c.sort((A, p) => A.props.sort - p.props.sort), () => c;
6752
+ return c = c.sort((A, b) => A.props.sort - b.props.sort), () => c;
6741
6753
  }
6742
6754
  }), _n = { class: "hp100 flexMode" }, yn = { class: "w200 hp100 border-r fs14" }, wn = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Sn = { class: "p4" }, Tn = ["onClick"], An = {
6743
6755
  class: "flexMode vs hp100",
@@ -6754,7 +6766,7 @@ const Ct = ol({
6754
6766
  }, Rn = {
6755
6767
  key: 0,
6756
6768
  class: "absCenter fs12 txt-dark5 txt-nowrap"
6757
- }, Dn = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, In = { class: "flexMode vc g8 txt-nowrap" }, Vn = { class: "flexMode vc g8" }, Bn = ["txt", "onClick"], Fn = {
6769
+ }, Dn = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, In = { class: "flexMode vc g8 txt-nowrap" }, Bn = { class: "flexMode vc g8" }, Vn = ["txt", "onClick"], Fn = {
6758
6770
  class: "relative",
6759
6771
  style: { height: "calc(70% - 10px)" }
6760
6772
  }, Un = {
@@ -6788,43 +6800,43 @@ const Ct = ol({
6788
6800
  columnType: {},
6789
6801
  mounted: !1
6790
6802
  });
6791
- oe(() => {
6803
+ te(() => {
6792
6804
  s();
6793
6805
  });
6794
6806
  const t = o, s = () => {
6795
6807
  t("mounted");
6796
- const d = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), O = {};
6797
- d.forEach((i) => {
6798
- i.type && (O[i.type] = !0), i.visible ? i.type === "selection" ? a.selection.push(i) : i.type === "operation" ? a.operation.push(i) : i.label && (i.fixed ? a.fixed.push(i) : a.visible.push(i)) : i.type === "mmp" ? a.columns.mmp.push(i) : i.type === "asa" ? a.columns.asa.push(i) : a.columns.normal.push(i);
6799
- }), a.columnType = O;
6800
- }, c = (d) => {
6801
- a.type = d;
6802
- }, _ = (d, O) => {
6803
- d.visible = !0, a.visible.unshift(d), d.type ? a.columns[d.type].splice(O, 1) : a.columns.normal.splice(O, 1);
6804
- }, A = (d, O) => {
6805
- a.fixed.unshift(d), a.visible.splice(O, 1);
6806
- }, p = (d, O) => {
6807
- a.visible.unshift(d), a.fixed.splice(O, 1);
6808
- }, r = (d, O) => {
6809
- a.visible.splice(O, 1), d.type ? a.columns[d.type].unshift(d) : a.columns.normal.unshift(d);
6808
+ const p = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), x = {};
6809
+ p.forEach((d) => {
6810
+ d.type && (x[d.type] = !0), d.visible ? d.type === "selection" ? a.selection.push(d) : d.type === "operation" ? a.operation.push(d) : d.label && (d.fixed ? a.fixed.push(d) : a.visible.push(d)) : d.type === "mmp" ? a.columns.mmp.push(d) : d.type === "asa" ? a.columns.asa.push(d) : a.columns.normal.push(d);
6811
+ }), a.columnType = x;
6812
+ }, c = (p) => {
6813
+ a.type = p;
6814
+ }, _ = (p, x) => {
6815
+ p.visible = !0, a.visible.unshift(p), p.type ? a.columns[p.type].splice(x, 1) : a.columns.normal.splice(x, 1);
6816
+ }, A = (p, x) => {
6817
+ a.fixed.unshift(p), a.visible.splice(x, 1);
6818
+ }, b = (p, x) => {
6819
+ a.visible.unshift(p), a.fixed.splice(x, 1);
6820
+ }, i = (p, x) => {
6821
+ a.visible.splice(x, 1), p.type ? a.columns[p.type].unshift(p) : a.columns.normal.unshift(p);
6810
6822
  }, g = async () => {
6811
6823
  a.loading = !0, window.$pm(() => {
6812
- const { fixed: d, visible: O, columns: i, selection: k, operation: h } = a;
6813
- let S = [];
6814
- Object.keys(i).map((w) => {
6815
- S = S.concat(i[w]);
6816
- }), d.forEach((w) => w.fixed = "left"), S.forEach((w) => w.visible = !1);
6817
- const z = k.concat(d, O, S, h);
6818
- z.forEach((w, m) => w.sort = m), localStorage.setItem(`${l.tableName}_Column`, JSON.stringify(z)), a.loading = !1, t("close"), t("init-column");
6824
+ const { fixed: p, visible: x, columns: d, selection: C, operation: v } = a;
6825
+ let w = [];
6826
+ Object.keys(d).map((f) => {
6827
+ w = w.concat(d[f]);
6828
+ }), p.forEach((f) => f.fixed = "left"), w.forEach((f) => f.visible = !1);
6829
+ const D = C.concat(p, x, w, v);
6830
+ D.forEach((f, O) => f.sort = O), localStorage.setItem(`${l.tableName}_Column`, JSON.stringify(D)), a.loading = !1, t("close"), t("init-column");
6819
6831
  });
6820
- }, C = () => {
6832
+ }, T = () => {
6821
6833
  a.loading = !0, localStorage.removeItem(`${l.tableName}_Column`), window.$pm(() => {
6822
6834
  a.loading = !1, t("close"), t("init-column");
6823
6835
  }, 4);
6824
- }, y = x(() => {
6825
- var d;
6826
- return ((d = globalThis.$config.options) == null ? void 0 : d.drawerHeight) || 540;
6827
- }), E = x(() => (y.value * 0.3).toFixed(0)), D = x(() => (y.value * 0.7 - 10).toFixed(0)), v = x(() => [
6836
+ }, y = k(() => {
6837
+ var p;
6838
+ return ((p = globalThis.$config.options) == null ? void 0 : p.drawerHeight) || 540;
6839
+ }), z = k(() => (y.value * 0.3).toFixed(0)), B = k(() => (y.value * 0.7 - 10).toFixed(0)), m = k(() => [
6828
6840
  {
6829
6841
  label: "Base Info",
6830
6842
  value: "normal"
@@ -6840,50 +6852,50 @@ const Ct = ol({
6840
6852
  hide: !a.columnType.mmp
6841
6853
  }
6842
6854
  ]);
6843
- return (d, O) => {
6844
- const i = V("el-scrollbar"), k = V("DrawerArea");
6845
- return T(), q(k, {
6855
+ return (p, x) => {
6856
+ const d = I("el-scrollbar"), C = I("DrawerArea");
6857
+ return S(), q(C, {
6846
6858
  loading: n(a).loading,
6847
6859
  noscroll: "",
6848
6860
  "cancel-txt": "Reset",
6849
6861
  "cancel-icon": "im-sync",
6850
6862
  class: "MvcTableColumnConfig",
6851
- onCancel: C,
6863
+ onCancel: T,
6852
6864
  onSubmit: g
6853
6865
  }, {
6854
- default: P(() => [
6866
+ default: L(() => [
6855
6867
  u("div", _n, [
6856
6868
  u("div", yn, [
6857
- u("div", wn, j(d.$l("Column Type")), 1),
6869
+ u("div", wn, E(p.$l("Column Type")), 1),
6858
6870
  u("div", Sn, [
6859
- (T(!0), M(Q, null, ne(n(v), (h) => (T(), M("div", {
6860
- key: h.value,
6861
- class: B(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type === h.value && "active", h.hide && "hide"]]),
6862
- onClick: (S) => c(h.value)
6863
- }, j(h.label), 11, Tn))), 128))
6871
+ (S(!0), $(ee, null, oe(n(m), (v) => (S(), $("div", {
6872
+ key: v.value,
6873
+ class: V(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type === v.value && "active", v.hide && "hide"]]),
6874
+ onClick: (w) => c(v.value)
6875
+ }, E(v.label), 11, Tn))), 128))
6864
6876
  ])
6865
6877
  ]),
6866
6878
  u("div", An, [
6867
6879
  u("div", Cn, [
6868
6880
  u("div", kn, [
6869
- u("span", null, j(d.$l("Columns")), 1),
6870
- u("span", xn, j(n(a).columns[n(a).type].length), 1)
6881
+ u("span", null, E(p.$l("Columns")), 1),
6882
+ u("span", xn, E(n(a).columns[n(a).type].length), 1)
6871
6883
  ]),
6872
- N(i, { style: { height: "calc(100% - 36px)" } }, {
6873
- default: P(() => [
6884
+ N(d, { style: { height: "calc(100% - 36px)" } }, {
6885
+ default: L(() => [
6874
6886
  u("div", On, [
6875
- n(a).columns[n(a).type].length === 0 ? (T(), M("span", Mn, j(d.$l("No Columns")), 1)) : U("", !0),
6876
- (T(!0), M(Q, null, ne(n(a).columns[n(a).type], (h, S) => (T(), M("div", {
6877
- key: h.prop,
6887
+ n(a).columns[n(a).type].length === 0 ? (S(), $("span", Mn, E(p.$l("No Columns")), 1)) : U("", !0),
6888
+ (S(!0), $(ee, null, oe(n(a).columns[n(a).type], (v, w) => (S(), $("div", {
6889
+ key: v.prop,
6878
6890
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
6879
6891
  }, [
6880
- u("span", null, j(d.$l(h.label)), 1),
6892
+ u("span", null, E(p.$l(v.label)), 1),
6881
6893
  u("div", $n, [
6882
6894
  u("div", {
6883
6895
  class: "tipbtn left",
6884
- txt: d.$l("Visible"),
6885
- onClick: (z) => _(h, S)
6886
- }, [...O[0] || (O[0] = [
6896
+ txt: p.$l("Visible"),
6897
+ onClick: (D) => _(v, w)
6898
+ }, [...x[0] || (x[0] = [
6887
6899
  u("i", { class: "imicon im-plus fs16" }, null, -1)
6888
6900
  ])], 8, zn)
6889
6901
  ])
@@ -6895,34 +6907,34 @@ const Ct = ol({
6895
6907
  ]),
6896
6908
  u("div", En, [
6897
6909
  u("div", Ln, [
6898
- u("span", null, j(d.$l("Visible Columns")), 1),
6899
- u("span", jn, j(n(a).visible.length), 1)
6910
+ u("span", null, E(p.$l("Visible Columns")), 1),
6911
+ u("span", jn, E(n(a).visible.length), 1)
6900
6912
  ]),
6901
6913
  u("div", Pn, [
6902
6914
  u("div", Nn, [
6903
- n(a).fixed.length === 0 ? (T(), M("span", Rn, j(d.$l("No Fixed Columns")), 1)) : U("", !0),
6904
- N(i, { height: n(E) }, {
6905
- default: P(() => [
6915
+ n(a).fixed.length === 0 ? (S(), $("span", Rn, E(p.$l("No Fixed Columns")), 1)) : U("", !0),
6916
+ N(d, { height: n(z) }, {
6917
+ default: L(() => [
6906
6918
  N(n(Ue), {
6907
6919
  list: n(a).fixed,
6908
- "item-key": (h) => h,
6920
+ "item-key": (v) => v,
6909
6921
  handle: ".im-handle",
6910
6922
  "ghost-class": "ghost"
6911
6923
  }, {
6912
- item: P(({ element: h, index: S }) => [
6924
+ item: L(({ element: v, index: w }) => [
6913
6925
  u("div", Dn, [
6914
6926
  u("div", In, [
6915
- O[1] || (O[1] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6916
- u("span", null, j(d.$l(h.label)), 1)
6927
+ x[1] || (x[1] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6928
+ u("span", null, E(p.$l(v.label)), 1)
6917
6929
  ]),
6918
- u("div", Vn, [
6930
+ u("div", Bn, [
6919
6931
  u("div", {
6920
6932
  class: "tipbtn red left",
6921
- txt: d.$l("Unfixed"),
6922
- onClick: (z) => p(h, S)
6923
- }, [...O[2] || (O[2] = [
6933
+ txt: p.$l("Unfixed"),
6934
+ onClick: (D) => b(v, w)
6935
+ }, [...x[2] || (x[2] = [
6924
6936
  u("i", { class: "imicon im-download1 fs14" }, null, -1)
6925
- ])], 8, Bn)
6937
+ ])], 8, Vn)
6926
6938
  ])
6927
6939
  ])
6928
6940
  ]),
@@ -6932,39 +6944,39 @@ const Ct = ol({
6932
6944
  _: 1
6933
6945
  }, 8, ["height"])
6934
6946
  ]),
6935
- O[6] || (O[6] = u("div", { class: "p4-0" }, [
6947
+ x[6] || (x[6] = u("div", { class: "p4-0" }, [
6936
6948
  u("div", { class: "border-t" })
6937
6949
  ], -1)),
6938
6950
  u("div", Fn, [
6939
- n(a).visible.length === 0 ? (T(), M("span", Un, j(d.$l("No Columns")), 1)) : U("", !0),
6940
- N(i, { height: n(D) }, {
6941
- default: P(() => [
6951
+ n(a).visible.length === 0 ? (S(), $("span", Un, E(p.$l("No Columns")), 1)) : U("", !0),
6952
+ N(d, { height: n(B) }, {
6953
+ default: L(() => [
6942
6954
  N(n(Ue), {
6943
6955
  list: n(a).visible,
6944
- "item-key": (h) => h,
6956
+ "item-key": (v) => v,
6945
6957
  options: { lockAxis: "y" },
6946
6958
  handle: ".im-handle",
6947
6959
  "ghost-class": "ghost"
6948
6960
  }, {
6949
- item: P(({ element: h, index: S }) => [
6961
+ item: L(({ element: v, index: w }) => [
6950
6962
  u("div", Gn, [
6951
6963
  u("div", Kn, [
6952
- O[3] || (O[3] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6953
- u("span", null, j(d.$l(h.label)), 1)
6964
+ x[3] || (x[3] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6965
+ u("span", null, E(p.$l(v.label)), 1)
6954
6966
  ]),
6955
6967
  u("div", Hn, [
6956
6968
  u("div", {
6957
6969
  class: "tipbtn left",
6958
- txt: d.$l("Fixed"),
6959
- onClick: (z) => A(h, S)
6960
- }, [...O[4] || (O[4] = [
6970
+ txt: p.$l("Fixed"),
6971
+ onClick: (D) => A(v, w)
6972
+ }, [...x[4] || (x[4] = [
6961
6973
  u("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
6962
6974
  ])], 8, Jn),
6963
6975
  u("div", {
6964
6976
  class: "tipbtn red left",
6965
- txt: d.$l("Hide"),
6966
- onClick: (z) => r(h, S)
6967
- }, [...O[5] || (O[5] = [
6977
+ txt: p.$l("Hide"),
6978
+ onClick: (D) => i(v, w)
6979
+ }, [...x[5] || (x[5] = [
6968
6980
  u("i", { class: "imicon im-close fs14" }, null, -1)
6969
6981
  ])], 8, Yn)
6970
6982
  ])
@@ -6985,7 +6997,7 @@ const Ct = ol({
6985
6997
  }, 8, ["loading"]);
6986
6998
  };
6987
6999
  }
6988
- }), Zn = /* @__PURE__ */ X(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
7000
+ }), Zn = /* @__PURE__ */ Q(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
6989
7001
  key: 0,
6990
7002
  class: "flexMode vc g8"
6991
7003
  }, es = { class: "flexMode g16 hr vc" }, ls = { class: "TheEnd p16" }, as = { class: "sticky flexMode vc hb p4-8 mt16 mb8 fs14 txt-dark9 z9 backdrop border-l4-primary bg-gray3 radius4" }, ts = { class: "fw700" }, os = { class: "flexMode vc g8" }, ns = /* @__PURE__ */ Object.assign({
@@ -7017,101 +7029,101 @@ const Ct = ol({
7017
7029
  onlySelection: !1,
7018
7030
  mounted: !1
7019
7031
  });
7020
- oe(() => {
7032
+ te(() => {
7021
7033
  s();
7022
7034
  });
7023
7035
  const t = o, s = () => {
7024
7036
  t("mounted"), c(), _();
7025
7037
  }, c = () => {
7026
- const v = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), d = ["selection", "operation"];
7027
- a.columns = v.filter((O) => !d.includes(O.type) && O.label);
7038
+ const m = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), p = ["selection", "operation"];
7039
+ a.columns = m.filter((x) => !p.includes(x.type) && x.label);
7028
7040
  }, _ = () => {
7029
7041
  l.selection.length && (a.onlySelection = !0);
7030
- }, A = (v, d) => {
7031
- v ? d.children.forEach((O) => {
7032
- O.visible = !0;
7033
- }) : d.children.forEach((O) => {
7034
- O.visible = !1;
7042
+ }, A = (m, p) => {
7043
+ m ? p.children.forEach((x) => {
7044
+ x.visible = !0;
7045
+ }) : p.children.forEach((x) => {
7046
+ x.visible = !1;
7035
7047
  });
7036
- }, p = () => {
7048
+ }, b = () => {
7037
7049
  window.$copy(g());
7038
- }, r = async () => {
7050
+ }, i = async () => {
7039
7051
  a.loading = !0;
7040
7052
  try {
7041
- const v = g("download");
7042
- let d = a.fileName || C.value;
7043
- d && !d.toLowerCase().endsWith(".csv") && (d = `${d}.csv`), await Vl({ content: v, filename: d, bom: !0 });
7053
+ const m = g("download");
7054
+ let p = a.fileName || T.value;
7055
+ p && !p.toLowerCase().endsWith(".csv") && (p = `${p}.csv`), await Bl({ content: m, filename: p, bom: !0 });
7044
7056
  } finally {
7045
7057
  a.loading = !1;
7046
7058
  }
7047
- }, g = (v) => {
7048
- const d = a.onlySelection ? l.selection : l.list, O = {}, i = [];
7049
- a.columns.filter((m) => m.visible).forEach((m) => {
7050
- i.push(window.$l(m.label)), O[m.prop] = !0;
7059
+ }, g = (m) => {
7060
+ const p = a.onlySelection ? l.selection : l.list, x = {}, d = [];
7061
+ a.columns.filter((O) => O.visible).forEach((O) => {
7062
+ d.push(window.$l(O.label)), x[O.prop] = !0;
7051
7063
  });
7052
- let k = "", h = [], S = v === "download" ? "," : " ";
7053
- (a.useHead || v) && (k = i.join(S) + `
7064
+ let C = "", v = [], w = m === "download" ? "," : " ";
7065
+ (a.useHead || m) && (C = d.join(w) + `
7054
7066
  `);
7055
- let z = [], w;
7056
- return Object.keys(O).forEach((m, $) => {
7057
- m.includes("country") && (w = $);
7058
- const I = [];
7059
- d.forEach((G) => {
7060
- G[m] !== void 0 && I.push(G[m]);
7061
- }), z.push(I);
7062
- }), z.forEach((m, $) => {
7063
- !a.useCountryCode && w === $ ? m.forEach((I, G) => {
7064
- let Y = I;
7065
- window.$getType(I) === "Array" ? Y = I.map((ie) => D[ie.toUpperCase()].label.$l()).join(",") : window.$getType(I) === "String" ? Y = I.split(",").map((ie) => D[ie.toUpperCase()].label.$l()).join(",") : Y = JSON.stringify(I), h[G] ? h[G] += Y + S : h[G] = Y + S;
7066
- }) : m.forEach((I, G) => {
7067
- h[G] ? h[G] += I + S : h[G] = I + S;
7067
+ let D = [], f;
7068
+ return Object.keys(x).forEach((O, M) => {
7069
+ O.includes("country") && (f = M);
7070
+ const j = [];
7071
+ p.forEach((F) => {
7072
+ F[O] !== void 0 && j.push(F[O]);
7073
+ }), D.push(j);
7074
+ }), D.forEach((O, M) => {
7075
+ !a.useCountryCode && f === M ? O.forEach((j, F) => {
7076
+ let H = j;
7077
+ window.$getType(j) === "Array" ? H = j.map((ie) => B[ie.toUpperCase()].label.$l()).join(",") : window.$getType(j) === "String" ? H = j.split(",").map((ie) => B[ie.toUpperCase()].label.$l()).join(",") : H = JSON.stringify(j), v[F] ? v[F] += H + w : v[F] = H + w;
7078
+ }) : O.forEach((j, F) => {
7079
+ v[F] ? v[F] += j + w : v[F] = j + w;
7068
7080
  });
7069
- }), `${k}${h.join(`
7081
+ }), `${C}${v.join(`
7070
7082
  `)}`;
7071
- }, C = x(() => {
7072
- const v = window.$d().format("YYYYMMDDHHmmss");
7073
- return `${l.tableName}_${v}`;
7074
- }), y = x(() => {
7075
- const v = {};
7076
- return a.columns.forEach((d) => {
7077
- const O = d.type ? d.type : "normal", i = {
7078
- label: E[O],
7079
- type: O,
7083
+ }, T = k(() => {
7084
+ const m = window.$d().format("YYYYMMDDHHmmss");
7085
+ return `${l.tableName}_${m}`;
7086
+ }), y = k(() => {
7087
+ const m = {};
7088
+ return a.columns.forEach((p) => {
7089
+ const x = p.type ? p.type : "normal", d = {
7090
+ label: z[x],
7091
+ type: x,
7080
7092
  visible: 0
7081
7093
  };
7082
- v[O] ? (v[O].children.push(d), d.visible && v[O].visible++) : (i.children = [d], d.visible && i.visible++, v[O] = i);
7083
- }), Object.keys(v).forEach((d) => {
7084
- const O = v[d].visible === v[d].children.length, i = v[d].visible === 0;
7085
- O ? (v[d].checkstatus = !0, v[d].indeterminate = !1) : i ? (v[d].checkstatus = !1, v[d].indeterminate = !1) : (v[d].checkstatus = !1, v[d].indeterminate = !0);
7086
- }), v;
7087
- }), E = {
7094
+ m[x] ? (m[x].children.push(p), p.visible && m[x].visible++) : (d.children = [p], p.visible && d.visible++, m[x] = d);
7095
+ }), Object.keys(m).forEach((p) => {
7096
+ const x = m[p].visible === m[p].children.length, d = m[p].visible === 0;
7097
+ x ? (m[p].checkstatus = !0, m[p].indeterminate = !1) : d ? (m[p].checkstatus = !1, m[p].indeterminate = !1) : (m[p].checkstatus = !1, m[p].indeterminate = !0);
7098
+ }), m;
7099
+ }), z = {
7088
7100
  asa: "Asa Metrics",
7089
7101
  normal: "Base Info",
7090
7102
  mmp: "MMP Metrics"
7091
7103
  };
7092
7104
  "Check All".$l(), "Cancel All".$l();
7093
- const D = De("asa.countryAll.obj");
7094
- return (v, d) => {
7095
- const O = V("el-checkbox"), i = V("el-button"), k = V("MvcAlert"), h = V("el-switch"), S = V("Input"), z = V("DrawerArea");
7096
- return T(), q(z, ee(v.$attrs, { class: "MvcTableColumnDownload" }), {
7097
- cancel: P(() => [
7098
- N(S, {
7105
+ const B = De("asa.countryAll.obj");
7106
+ return (m, p) => {
7107
+ const x = I("el-checkbox"), d = I("el-button"), C = I("MvcAlert"), v = I("el-switch"), w = I("Input"), D = I("DrawerArea");
7108
+ return S(), q(D, le(m.$attrs, { class: "MvcTableColumnDownload" }), {
7109
+ cancel: L(() => [
7110
+ N(w, {
7099
7111
  modelValue: n(a).fileName,
7100
- "onUpdate:modelValue": d[3] || (d[3] = (w) => n(a).fileName = w),
7112
+ "onUpdate:modelValue": p[3] || (p[3] = (f) => n(a).fileName = f),
7101
7113
  icon: "catalog",
7102
- placeholder: n(C),
7114
+ placeholder: n(T),
7103
7115
  class: "w600"
7104
7116
  }, {
7105
- append: P(() => [
7106
- N(i, {
7117
+ append: L(() => [
7118
+ N(d, {
7107
7119
  loading: n(a).loading,
7108
- onClick: r
7120
+ onClick: i
7109
7121
  }, {
7110
- icon: P(() => [...d[5] || (d[5] = [
7122
+ icon: L(() => [...p[5] || (p[5] = [
7111
7123
  u("i", { class: "imicon im-download1" }, null, -1)
7112
7124
  ])]),
7113
- default: P(() => [
7114
- te(" " + j(v.$l("Download")), 1)
7125
+ default: L(() => [
7126
+ ae(" " + E(m.$l("Download")), 1)
7115
7127
  ]),
7116
7128
  _: 1
7117
7129
  }, 8, ["loading"])
@@ -7119,38 +7131,38 @@ const Ct = ol({
7119
7131
  _: 1
7120
7132
  }, 8, ["modelValue", "placeholder"])
7121
7133
  ]),
7122
- submit: P(() => [...d[6] || (d[6] = [])]),
7123
- default: P(() => [
7134
+ submit: L(() => [...p[6] || (p[6] = [])]),
7135
+ default: L(() => [
7124
7136
  u("div", qn, [
7125
- N(k, null, {
7126
- default: P(() => [
7137
+ N(C, null, {
7138
+ default: L(() => [
7127
7139
  u("div", Xn, [
7128
- u("span", null, j(v.$l("Total")), 1),
7129
- u("span", null, j(l.list.length), 1)
7140
+ u("span", null, E(m.$l("Total")), 1),
7141
+ u("span", null, E(l.list.length), 1)
7130
7142
  ]),
7131
- l.selection.length ? (T(), M("div", Qn, [
7132
- u("span", null, j(v.$l("Selection")), 1),
7133
- u("span", null, j(l.selection.length), 1),
7134
- N(O, {
7143
+ l.selection.length ? (S(), $("div", Qn, [
7144
+ u("span", null, E(m.$l("Selection")), 1),
7145
+ u("span", null, E(l.selection.length), 1),
7146
+ N(x, {
7135
7147
  modelValue: n(a).onlySelection,
7136
- "onUpdate:modelValue": d[0] || (d[0] = (w) => n(a).onlySelection = w),
7137
- label: v.$l("Only Selection")
7148
+ "onUpdate:modelValue": p[0] || (p[0] = (f) => n(a).onlySelection = f),
7149
+ label: m.$l("Only Selection")
7138
7150
  }, null, 8, ["modelValue", "label"])
7139
7151
  ])) : U("", !0),
7140
7152
  u("div", es, [
7141
- N(i, { onClick: p }, {
7142
- icon: P(() => [...d[4] || (d[4] = [
7153
+ N(d, { onClick: b }, {
7154
+ icon: L(() => [...p[4] || (p[4] = [
7143
7155
  u("i", { class: "imicon im-copy" }, null, -1)
7144
7156
  ])]),
7145
- default: P(() => [
7146
- te(" " + j(v.$l("Copy to Clipboard")), 1)
7157
+ default: L(() => [
7158
+ ae(" " + E(m.$l("Copy to Clipboard")), 1)
7147
7159
  ]),
7148
7160
  _: 1
7149
7161
  }),
7150
- N(O, {
7162
+ N(x, {
7151
7163
  modelValue: n(a).useHead,
7152
- "onUpdate:modelValue": d[1] || (d[1] = (w) => n(a).useHead = w),
7153
- label: v.$l("With Table Head")
7164
+ "onUpdate:modelValue": p[1] || (p[1] = (f) => n(a).useHead = f),
7165
+ label: m.$l("With Table Head")
7154
7166
  }, null, 8, ["modelValue", "label"])
7155
7167
  ])
7156
7168
  ]),
@@ -7158,36 +7170,36 @@ const Ct = ol({
7158
7170
  })
7159
7171
  ]),
7160
7172
  u("div", ls, [
7161
- (T(!0), M(Q, null, ne(n(y), (w) => (T(), M("div", {
7162
- key: w.type
7173
+ (S(!0), $(ee, null, oe(n(y), (f) => (S(), $("div", {
7174
+ key: f.type
7163
7175
  }, [
7164
7176
  u("div", as, [
7165
- u("span", ts, j(w.label), 1),
7166
- N(O, {
7167
- modelValue: w.checkstatus,
7168
- "onUpdate:modelValue": (m) => w.checkstatus = m,
7169
- indeterminate: w.indeterminate,
7170
- label: v.$l("Check"),
7171
- onChange: (m) => A(m, w)
7177
+ u("span", ts, E(f.label), 1),
7178
+ N(x, {
7179
+ modelValue: f.checkstatus,
7180
+ "onUpdate:modelValue": (O) => f.checkstatus = O,
7181
+ indeterminate: f.indeterminate,
7182
+ label: m.$l("Check"),
7183
+ onChange: (O) => A(O, f)
7172
7184
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
7173
7185
  ]),
7174
- (T(!0), M(Q, null, ne(w.children, (m, $) => (T(), q(O, {
7175
- modelValue: m.visible,
7176
- "onUpdate:modelValue": (I) => m.visible = I,
7177
- key: $,
7178
- label: m.label,
7179
- value: m.value,
7186
+ (S(!0), $(ee, null, oe(f.children, (O, M) => (S(), q(x, {
7187
+ modelValue: O.visible,
7188
+ "onUpdate:modelValue": (j) => O.visible = j,
7189
+ key: M,
7190
+ label: O.label,
7191
+ value: O.value,
7180
7192
  class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
7181
7193
  }, {
7182
- default: P(() => {
7183
- var I;
7194
+ default: L(() => {
7195
+ var j;
7184
7196
  return [
7185
7197
  u("div", os, [
7186
- u("span", null, j(m.label), 1),
7187
- (I = m.prop) != null && I.includes("country") ? (T(), q(h, {
7198
+ u("span", null, E(O.label), 1),
7199
+ (j = O.prop) != null && j.includes("country") ? (S(), q(v, {
7188
7200
  key: 0,
7189
7201
  modelValue: n(a).useCountryCode,
7190
- "onUpdate:modelValue": d[2] || (d[2] = (G) => n(a).useCountryCode = G),
7202
+ "onUpdate:modelValue": p[2] || (p[2] = (F) => n(a).useCountryCode = F),
7191
7203
  "inline-prompt": "",
7192
7204
  "active-text": "Use Alpha-2 Code",
7193
7205
  "inactive-text": "Use Country Name",
@@ -7323,178 +7335,178 @@ const Ct = ol({
7323
7335
  cpt: we(ns)
7324
7336
  }
7325
7337
  ]
7326
- }), _ = Z(null), { proxy: A } = ce();
7338
+ }), _ = Z(null), { proxy: A } = ue();
7327
7339
  Rl(() => {
7328
- r();
7329
- }), oe(() => {
7340
+ i();
7341
+ }), te(() => {
7330
7342
  g();
7331
7343
  });
7332
- const p = l, r = () => {
7344
+ const b = l, i = () => {
7333
7345
  t.loading = a.defaultLoading, a.pageSize && (s.pageSize = a.pageSize);
7334
7346
  }, g = () => {
7335
- w(), a.defer === !1 && y();
7336
- }, C = (f) => {
7337
- y(f);
7338
- }, y = async (f = {}) => {
7339
- var J, le;
7340
- if (f.refresh && t.loading)
7347
+ f(), a.defer === !1 && y();
7348
+ }, T = (r) => {
7349
+ y(r);
7350
+ }, y = async (r = {}) => {
7351
+ var K, Y;
7352
+ if (r.refresh && t.loading)
7341
7353
  return;
7342
7354
  t.loading = !0;
7343
- const L = {
7344
- pageSize: f.pageSize || s.pageSize,
7345
- pageStart: f.pageStart || s.page
7355
+ const h = {
7356
+ pageSize: r.pageSize || s.pageSize,
7357
+ pageStart: r.pageStart || s.page
7346
7358
  };
7347
- f.refresh && (L.remote = !0);
7348
- const { list: R = [], total: F, summary: K } = await a.loadData(L) || {};
7349
- s.list = R.map((ae, xl) => (ae.index = xl, ae)), F === void 0 ? (s.total = s.list.length, s.nopagination = !0) : (s.total = F, s.nopagination = !1), (le = (J = globalThis.$config) == null ? void 0 : J.table) != null && le.scrollToTop && v(), E(K), t.loading = !1;
7350
- }, E = (f) => {
7351
- f ? s.summary = f : s.summary = !1;
7352
- }, D = (f) => {
7359
+ r.refresh && (h.remote = !0);
7360
+ const { list: R = [], total: P, summary: G } = await a.loadData(h) || {};
7361
+ s.list = R.map((X, xl) => (X.index = xl, X)), P === void 0 ? (s.total = s.list.length, s.nopagination = !0) : (s.total = P, s.nopagination = !1), (Y = (K = globalThis.$config) == null ? void 0 : K.table) != null && Y.scrollToTop && m(), z(G), t.loading = !1;
7362
+ }, z = (r) => {
7363
+ r ? s.summary = r : s.summary = !1;
7364
+ }, B = (r) => {
7353
7365
  if (s.summaryType === "locale")
7354
7366
  return [];
7355
7367
  if (s.summaryType === "remote") {
7356
- const L = (F, K) => {
7357
- if (F != null)
7358
- return typeof F == "function" ? F(K) : F[K];
7359
- }, R = (F) => {
7360
- var J, le;
7361
- const K = L(a.summaryMetric, F);
7362
- return K !== void 0 ? K : L((le = (J = globalThis.$config) == null ? void 0 : J.table) == null ? void 0 : le.summaryMetric, F);
7368
+ const h = (P, G) => {
7369
+ if (P != null)
7370
+ return typeof P == "function" ? P(G) : P[G];
7371
+ }, R = (P) => {
7372
+ var K, Y;
7373
+ const G = h(a.summaryMetric, P);
7374
+ return G !== void 0 ? G : h((Y = (K = globalThis.$config) == null ? void 0 : K.table) == null ? void 0 : Y.summaryMetric, P);
7363
7375
  };
7364
- return Bl(f, s.summary, { resolveMetric: R });
7376
+ return Vl(r, s.summary, { resolveMetric: R });
7365
7377
  }
7366
7378
  return [];
7367
- }, v = () => {
7379
+ }, m = () => {
7368
7380
  _.value.$refs.scrollBarRef.setScrollTop(0);
7369
- }, d = () => {
7381
+ }, p = () => {
7370
7382
  y({
7371
7383
  pageStart: 1
7372
7384
  });
7373
- }, O = () => {
7385
+ }, x = () => {
7374
7386
  y();
7375
- }, i = (f) => {
7376
- if (t.selection = f, p("selection-change", f), t.shiftKey) {
7377
- const L = f[f.length - 2], R = f[f.length - 1], F = s.list.filter1((ae) => ae.id === L.id).index || 0, K = s.list.filter1((ae) => ae.id === R.id).index;
7378
- let J = F, le = K;
7379
- F > K && (J = K, le = F);
7380
- for (let ae = J; ae <= le; ae++)
7381
- A.$refs.body.toggleRowSelection(s.list[ae], !0);
7387
+ }, d = (r) => {
7388
+ if (t.selection = r, b("selection-change", r), t.shiftKey) {
7389
+ const h = r[r.length - 2], R = r[r.length - 1], P = s.list.filter1((X) => X.id === h.id).index || 0, G = s.list.filter1((X) => X.id === R.id).index;
7390
+ let K = P, Y = G;
7391
+ P > G && (K = G, Y = P);
7392
+ for (let X = K; X <= Y; X++)
7393
+ A.$refs.body.toggleRowSelection(s.list[X], !0);
7382
7394
  }
7383
- }, k = () => {
7384
- t.loading || (y({ refresh: !0 }), p("refresh"));
7385
- }, h = () => {
7395
+ }, C = () => {
7396
+ t.loading || (y({ refresh: !0 }), b("refresh"));
7397
+ }, v = () => {
7386
7398
  c.current = 0;
7387
- }, S = () => {
7399
+ }, w = () => {
7388
7400
  c.current = 1;
7389
- }, z = () => {
7401
+ }, D = () => {
7390
7402
  t.tableKey++;
7391
- }, w = () => {
7392
- document.addEventListener("keydown", m), document.addEventListener("keyup", $);
7393
- }, m = (f) => {
7394
- f.keyCode === 16 && (t.shiftKey = !0);
7395
- }, $ = (f) => {
7396
- f.keyCode === 16 && (t.shiftKey = !1);
7397
- }, I = () => {
7398
- document.removeEventListener("keydown", m), document.removeEventListener("keyup", $);
7399
- }, G = ({ i: f, row: L }) => {
7400
- s.list[f] = L;
7401
- }, Y = x(() => {
7402
- var L;
7403
- let f = a.height || ((L = globalThis.$config.options) == null ? void 0 : L.pageHeight) || 640;
7404
- return a.noheader === !1 && (f -= 64), a.nofooter === !1 && (f -= 56), f -= a.minusHeight, f;
7405
- }), ie = x(() => !!s.summary), fe = x(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), b = x(() => {
7403
+ }, f = () => {
7404
+ document.addEventListener("keydown", O), document.addEventListener("keyup", M);
7405
+ }, O = (r) => {
7406
+ r.keyCode === 16 && (t.shiftKey = !0);
7407
+ }, M = (r) => {
7408
+ r.keyCode === 16 && (t.shiftKey = !1);
7409
+ }, j = () => {
7410
+ document.removeEventListener("keydown", O), document.removeEventListener("keyup", M);
7411
+ }, F = ({ i: r, row: h }) => {
7412
+ s.list[r] = h;
7413
+ }, H = k(() => {
7414
+ var h;
7415
+ let r = a.height || ((h = globalThis.$config.options) == null ? void 0 : h.pageHeight) || 640;
7416
+ return a.noheader === !1 && (r -= 64), a.nofooter === !1 && (r -= 56), r -= a.minusHeight, r;
7417
+ }), ie = k(() => !!s.summary), fe = k(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), re = k(() => {
7406
7418
  if (a.tool) {
7407
- const { column: f = !0, download: L = !0, refresh: R = !0 } = a.tool;
7419
+ const { column: r = !0, download: h = !0, refresh: R = !0 } = a.tool;
7408
7420
  return {
7409
- column: f,
7410
- download: L,
7421
+ column: r,
7422
+ download: h,
7411
7423
  refresh: R
7412
7424
  };
7413
7425
  } else
7414
7426
  return !1;
7415
7427
  });
7416
- return de(() => {
7417
- I();
7428
+ return ce(() => {
7429
+ j();
7418
7430
  }), o({
7419
- initTable: C,
7420
- editRow: G
7421
- }), (f, L) => {
7422
- const R = V("el-button"), F = V("Loading"), K = V("el-table"), J = V("el-pagination"), le = V("Drawer");
7423
- return T(), M("div", ss, [
7424
- a.noheader === !1 ? (T(), M("div", {
7431
+ initTable: T,
7432
+ editRow: F
7433
+ }), (r, h) => {
7434
+ const R = I("el-button"), P = I("Loading"), G = I("el-table"), K = I("el-pagination"), Y = I("Drawer");
7435
+ return S(), $("div", ss, [
7436
+ a.noheader === !1 ? (S(), $("div", {
7425
7437
  key: 0,
7426
- class: B(["flexMode hb g12 p16 bg-white", a.autoHeader ? "minh64" : "h64"])
7438
+ class: V(["flexMode hb g12 p16 bg-white", a.autoHeader ? "minh64" : "h64"])
7427
7439
  }, [
7428
7440
  u("div", {
7429
- class: B(["flexMode vc flexGrow maxwp100", a.headerClass])
7441
+ class: V(["flexMode vc flexGrow maxwp100", a.headerClass])
7430
7442
  }, [
7431
- H(f.$slots, "header", {}, void 0, !0)
7443
+ J(r.$slots, "header", {}, void 0, !0)
7432
7444
  ], 2),
7433
- n(b) ? (T(), M("div", rs, [
7434
- n(b).refresh ? (T(), q(R, {
7445
+ n(re) ? (S(), $("div", rs, [
7446
+ n(re).refresh ? (S(), q(R, {
7435
7447
  key: 0,
7436
- onClick: k
7448
+ onClick: C
7437
7449
  }, {
7438
- icon: P(() => [...L[2] || (L[2] = [
7450
+ icon: L(() => [...h[2] || (h[2] = [
7439
7451
  u("i", { class: "imicon im-reload" }, null, -1)
7440
7452
  ])]),
7441
- default: P(() => [
7442
- te(" " + j(f.$l("Refresh")), 1)
7453
+ default: L(() => [
7454
+ ae(" " + E(r.$l("Refresh")), 1)
7443
7455
  ]),
7444
7456
  _: 1
7445
7457
  })) : U("", !0),
7446
- n(b).column ? (T(), q(R, {
7458
+ n(re).column ? (S(), q(R, {
7447
7459
  key: 1,
7448
- onClick: h
7460
+ onClick: v
7449
7461
  }, {
7450
- icon: P(() => [...L[3] || (L[3] = [
7462
+ icon: L(() => [...h[3] || (h[3] = [
7451
7463
  u("i", { class: "imicon im-layout" }, null, -1)
7452
7464
  ])]),
7453
- default: P(() => [
7454
- te(" " + j(f.$l("Columns")), 1)
7465
+ default: L(() => [
7466
+ ae(" " + E(r.$l("Columns")), 1)
7455
7467
  ]),
7456
7468
  _: 1
7457
7469
  })) : U("", !0),
7458
- n(b).download ? (T(), q(R, {
7470
+ n(re).download ? (S(), q(R, {
7459
7471
  key: 2,
7460
- onClick: S
7472
+ onClick: w
7461
7473
  }, {
7462
- icon: P(() => [...L[4] || (L[4] = [
7474
+ icon: L(() => [...h[4] || (h[4] = [
7463
7475
  u("i", { class: "imicon im-download" }, null, -1)
7464
7476
  ])]),
7465
- default: P(() => [
7466
- te(" " + j(f.$l("Download")), 1)
7477
+ default: L(() => [
7478
+ ae(" " + E(r.$l("Download")), 1)
7467
7479
  ]),
7468
7480
  _: 1
7469
7481
  })) : U("", !0)
7470
7482
  ])) : U("", !0)
7471
7483
  ], 2)) : U("", !0),
7472
7484
  u("div", is, [
7473
- N(F, {
7485
+ N(P, {
7474
7486
  loading: n(t).loading
7475
7487
  }, null, 8, ["loading"]),
7476
- (T(), q(K, {
7488
+ (S(), q(G, {
7477
7489
  ref_key: "body",
7478
7490
  ref: _,
7479
7491
  key: n(t).tableKey,
7480
- height: n(Y),
7492
+ height: n(H),
7481
7493
  data: n(s).list,
7482
7494
  "default-expand-all": a.defaultExpandAll,
7483
7495
  "row-key": a.rowKey,
7484
7496
  stripe: "",
7485
7497
  border: "",
7486
7498
  "show-summary": n(ie),
7487
- "summary-method": D,
7499
+ "summary-method": B,
7488
7500
  class: "MainTable",
7489
- onSelectionChange: i
7501
+ onSelectionChange: d
7490
7502
  }, {
7491
- default: P(() => [
7492
- N(n(gn), ee({
7503
+ default: L(() => [
7504
+ N(n(gn), le({
7493
7505
  "table-name": a.tableName,
7494
- column: n(b) ? n(b).column : !1
7495
- }, f.$attrs), {
7496
- default: P(() => [
7497
- H(f.$slots, "default", {}, void 0, !0)
7506
+ column: n(re) ? n(re).column : !1
7507
+ }, r.$attrs), {
7508
+ default: L(() => [
7509
+ J(r.$slots, "default", {}, void 0, !0)
7498
7510
  ]),
7499
7511
  _: 3
7500
7512
  }, 16, ["table-name", "column"])
@@ -7502,10 +7514,10 @@ const Ct = ol({
7502
7514
  _: 3
7503
7515
  }, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
7504
7516
  ]),
7505
- a.nofooter === !1 ? (T(), M("div", us, [
7506
- N(J, {
7517
+ a.nofooter === !1 ? (S(), $("div", us, [
7518
+ N(K, {
7507
7519
  "current-page": n(s).page,
7508
- "onUpdate:currentPage": L[0] || (L[0] = (ae) => n(s).page = ae),
7520
+ "onUpdate:currentPage": h[0] || (h[0] = (X) => n(s).page = X),
7509
7521
  background: "",
7510
7522
  total: n(s).total,
7511
7523
  "default-page-size": n(s).pageSize,
@@ -7513,23 +7525,23 @@ const Ct = ol({
7513
7525
  "pager-count": 5,
7514
7526
  layout: n(fe),
7515
7527
  class: "wp100",
7516
- onSizeChange: d,
7517
- onCurrentChange: O
7528
+ onSizeChange: p,
7529
+ onCurrentChange: x
7518
7530
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
7519
7531
  ])) : U("", !0),
7520
- N(le, {
7532
+ N(Y, {
7521
7533
  current: n(c).current,
7522
- "onUpdate:current": L[1] || (L[1] = (ae) => n(c).current = ae),
7534
+ "onUpdate:current": h[1] || (h[1] = (X) => n(c).current = X),
7523
7535
  "table-name": a.tableName,
7524
7536
  drawer: n(c).list,
7525
7537
  list: n(s).list,
7526
7538
  selection: n(t).selection,
7527
- onInitColumn: z
7539
+ onInitColumn: D
7528
7540
  }, null, 8, ["current", "table-name", "drawer", "list", "selection"])
7529
7541
  ]);
7530
7542
  };
7531
7543
  }
7532
- }), ds = /* @__PURE__ */ X(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7544
+ }), ds = /* @__PURE__ */ Q(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7533
7545
  __proto__: null,
7534
7546
  default: ds
7535
7547
  }, Symbol.toStringTag, { value: "Module" })), bs = { class: "minh480 pt16" }, fs = /* @__PURE__ */ Object.assign({
@@ -7579,24 +7591,24 @@ const Ct = ol({
7579
7591
  },
7580
7592
  emits: ["update:modelValue", "change"],
7581
7593
  setup(e, { emit: o }) {
7582
- const l = e, a = o, t = ue(), s = (r) => r == null ? r : ["Object", "Array"].includes(globalThis.$getType(r)) ? r[l.valueKey] : r, c = (r) => {
7583
- a("update:modelValue", r);
7584
- const g = l.options.find((C) => s(C) === r);
7585
- a("change", r, g);
7586
- }, _ = x(
7587
- () => l.options.find((r) => s(r) === l.modelValue)
7588
- ), A = x(() => {
7589
- const r = _.value;
7590
- if (!(!r || !["Object", "Array"].includes(globalThis.$getType(r))))
7591
- return r[l.componentKey];
7592
- }), p = x(() => {
7593
- const r = _.value;
7594
- return !r || !["Object", "Array"].includes(globalThis.$getType(r)) ? {} : r[l.panePropsKey] ?? {};
7594
+ const l = e, a = o, t = be(), s = (i) => i == null ? i : ["Object", "Array"].includes(globalThis.$getType(i)) ? i[l.valueKey] : i, c = (i) => {
7595
+ a("update:modelValue", i);
7596
+ const g = l.options.find((T) => s(T) === i);
7597
+ a("change", i, g);
7598
+ }, _ = k(
7599
+ () => l.options.find((i) => s(i) === l.modelValue)
7600
+ ), A = k(() => {
7601
+ const i = _.value;
7602
+ if (!(!i || !["Object", "Array"].includes(globalThis.$getType(i))))
7603
+ return i[l.componentKey];
7604
+ }), b = k(() => {
7605
+ const i = _.value;
7606
+ return !i || !["Object", "Array"].includes(globalThis.$getType(i)) ? {} : i[l.panePropsKey] ?? {};
7595
7607
  });
7596
- return (r, g) => {
7597
- const C = V("BtnGroup");
7598
- return T(), M("div", ee({ class: "MvcTabs" }, n(t)), [
7599
- N(C, {
7608
+ return (i, g) => {
7609
+ const T = I("BtnGroup");
7610
+ return S(), $("div", le({ class: "MvcTabs" }, n(t)), [
7611
+ N(T, {
7600
7612
  "model-value": l.modelValue,
7601
7613
  options: l.options,
7602
7614
  "value-key": l.valueKey,
@@ -7607,7 +7619,7 @@ const Ct = ol({
7607
7619
  "onUpdate:modelValue": c
7608
7620
  }, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
7609
7621
  u("div", bs, [
7610
- n(A) ? (T(), q(tl(n(A)), Te(ee({ key: 0 }, n(p))), null, 16)) : U("", !0)
7622
+ n(A) ? (S(), q(tl(n(A)), Te(le({ key: 0 }, n(b))), null, 16)) : U("", !0)
7611
7623
  ])
7612
7624
  ], 16);
7613
7625
  };
@@ -7663,90 +7675,94 @@ const Ct = ol({
7663
7675
  "focus"
7664
7676
  ],
7665
7677
  setup(e, { emit: o }) {
7666
- const l = e, a = ue(), t = Z(null);
7678
+ const l = e, a = be(), t = Z(null);
7667
7679
  let s = null;
7668
7680
  const c = W({
7669
7681
  val: "",
7670
7682
  isComposing: !1,
7671
7683
  focused: !1
7672
- }), _ = o, { proxy: A } = ce();
7673
- oe(() => {
7674
- var $, I;
7675
- const m = ($ = t.value) == null ? void 0 : $.$el;
7676
- s = (I = m == null ? void 0 : m.querySelector) == null ? void 0 : I.call(m, "textarea"), s && (s.addEventListener("compositionstart", p), s.addEventListener("compositionend", r));
7684
+ }), _ = o, { proxy: A } = ue(), b = k(() => {
7685
+ const { class: M, ...j } = a;
7686
+ return j;
7687
+ });
7688
+ te(() => {
7689
+ var j, F;
7690
+ const M = (j = t.value) == null ? void 0 : j.$el;
7691
+ s = (F = M == null ? void 0 : M.querySelector) == null ? void 0 : F.call(M, "textarea"), s && (s.addEventListener("compositionstart", i), s.addEventListener("compositionend", g));
7677
7692
  });
7678
- const p = () => {
7693
+ const i = () => {
7679
7694
  c.isComposing = !0;
7680
- }, r = () => {
7681
- c.isComposing = !1, pe(() => v(c.val));
7682
- }, g = (m) => {
7683
- c.isComposing || v(m);
7684
- }, C = (m) => {
7685
- c.focused = !0, _("focus", m);
7686
- }, y = (m) => {
7687
- c.focused = !1, _("blur", m);
7688
- }, E = (m) => {
7689
- const $ = String(m ?? "").split(/\r?\n/);
7690
- return l.output === "array" ? $ : $.join(",");
7691
- }, D = (m) => Array.isArray(m) ? m.join(`
7692
- `) : String(m ?? "").replace(/,/g, `
7693
- `), v = (m) => {
7694
- const $ = E(m);
7695
- _("update:modelValue", $), _("input", $);
7696
- }, d = x(() => {
7695
+ }, g = () => {
7696
+ c.isComposing = !1, de(() => p(c.val));
7697
+ }, T = (M) => {
7698
+ c.isComposing || p(M);
7699
+ }, y = (M) => {
7700
+ c.focused = !0, _("focus", M);
7701
+ }, z = (M) => {
7702
+ c.focused = !1, _("blur", M);
7703
+ }, B = (M) => {
7704
+ const j = String(M ?? "").split(/\r?\n/);
7705
+ return l.output === "array" ? j : j.join(",");
7706
+ }, m = (M) => Array.isArray(M) ? M.join(`
7707
+ `) : String(M ?? "").replace(/,/g, `
7708
+ `), p = (M) => {
7709
+ const j = B(M);
7710
+ _("update:modelValue", j), _("input", j);
7711
+ }, x = k(() => {
7697
7712
  if (!l.height) return A.$attrs["input-style"];
7698
- const m = typeof l.height == "number" ? `${l.height}px` : l.height;
7699
- return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height: m, minHeight: m };
7700
- }), O = x(() => !!(A.$attrs.maxlength || i.value)), i = x(() => A.$attrs.max), k = x(() => String(c.val ?? "").length > 0), h = x(() => !!a.placeholder), S = x(
7701
- () => l.materialLabel && (c.focused || k.value || h.value)
7702
- ), z = x(() => ({
7713
+ const M = typeof l.height == "number" ? `${l.height}px` : l.height;
7714
+ return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height: M, minHeight: M };
7715
+ }), d = k(() => !!(A.$attrs.maxlength || C.value)), C = k(() => A.$attrs.max), v = k(() => String(c.val ?? "").length > 0), w = k(() => !!a.placeholder), D = k(
7716
+ () => l.materialLabel && (c.focused || v.value || w.value)
7717
+ ), f = k(() => ({
7718
+ [a.class]: !!a.class,
7703
7719
  hasLabel: !!l.label,
7704
7720
  isMaterialLabel: !!(l.label && l.materialLabel),
7705
7721
  isTopLabel: !!(l.label && !l.materialLabel),
7706
- isFloat: S.value,
7722
+ isFloat: D.value,
7707
7723
  isFocused: c.focused,
7708
7724
  isDisabled: !!a.disabled,
7709
7725
  isTextarea: !0
7710
- })), w = x(
7726
+ })), O = k(
7711
7727
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
7712
7728
  );
7713
- return se(
7729
+ return ne(
7714
7730
  () => l.modelValue,
7715
- (m) => {
7716
- const $ = D(m);
7717
- c.val !== $ && (c.val = $);
7731
+ (M) => {
7732
+ const j = m(M);
7733
+ c.val !== j && (c.val = j);
7718
7734
  },
7719
7735
  { immediate: !0 }
7720
- ), de(() => {
7721
- s && (s.removeEventListener("compositionstart", p), s.removeEventListener("compositionend", r), s = null);
7722
- }), (m, $) => {
7723
- const I = V("el-input");
7724
- return T(), M("div", {
7725
- class: B(["MvcField MvcFieldTextarea", n(z)]),
7726
- style: re(n(w))
7736
+ ), ce(() => {
7737
+ s && (s.removeEventListener("compositionstart", i), s.removeEventListener("compositionend", g), s = null);
7738
+ }), (M, j) => {
7739
+ const F = I("el-input");
7740
+ return S(), $("div", {
7741
+ class: V(["MvcField MvcFieldTextarea", n(f)]),
7742
+ style: se(n(O))
7727
7743
  }, [
7728
- l.label ? (T(), M("label", vs, j(l.label), 1)) : U("", !0),
7729
- N(I, ee({
7744
+ l.label ? (S(), $("label", vs, E(l.label), 1)) : U("", !0),
7745
+ N(F, le({
7730
7746
  ref_key: "inputRef",
7731
7747
  ref: t,
7732
7748
  type: "textarea",
7733
7749
  modelValue: n(c).val,
7734
- "onUpdate:modelValue": $[0] || ($[0] = (G) => n(c).val = G),
7750
+ "onUpdate:modelValue": j[0] || (j[0] = (H) => n(c).val = H),
7735
7751
  rows: l.rows,
7736
- style: m.$attrs.style,
7737
- "input-style": n(d),
7738
- "show-word-limit": n(O),
7739
- maxlength: n(i),
7752
+ style: n(b).style,
7753
+ "input-style": n(x),
7754
+ "show-word-limit": n(d),
7755
+ maxlength: n(C),
7740
7756
  class: "MvcTextarea"
7741
- }, m.$attrs, {
7742
- onInput: g,
7743
- onFocus: C,
7744
- onBlur: y
7757
+ }, n(b), {
7758
+ onInput: T,
7759
+ onFocus: y,
7760
+ onBlur: z
7745
7761
  }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"])
7746
7762
  ], 6);
7747
7763
  };
7748
7764
  }
7749
- }), gs = /* @__PURE__ */ X(hs, [["__scopeId", "data-v-d15ee96a"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7765
+ }), gs = /* @__PURE__ */ Q(hs, [["__scopeId", "data-v-e6e80c47"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7750
7766
  __proto__: null,
7751
7767
  default: gs
7752
7768
  }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
@@ -7798,7 +7814,7 @@ const As = (e, o = {}) => {
7798
7814
  }, Cs = {
7799
7815
  name: "Matt Avias Frame",
7800
7816
  copyright: "©2026",
7801
- version: "1.0.83",
7817
+ version: "1.0.88",
7802
7818
  author: "Matt Avias",
7803
7819
  date: "2026-02-26",
7804
7820
  /** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
@@ -7834,12 +7850,12 @@ const As = (e, o = {}) => {
7834
7850
  export {
7835
7851
  vt as D,
7836
7852
  Xl as M,
7837
- X as _,
7853
+ Q as _,
7838
7854
  Is as a,
7839
7855
  Za as b,
7840
7856
  Re as c,
7841
7857
  Us as d,
7842
- Bs as e,
7858
+ Vs as e,
7843
7859
  Fs as f,
7844
7860
  Ds as g,
7845
7861
  Xa as h,
@@ -7848,7 +7864,7 @@ export {
7848
7864
  Gs as k,
7849
7865
  ve as m,
7850
7866
  ql as n,
7851
- Vs as p,
7867
+ Bs as p,
7852
7868
  _e as s,
7853
7869
  De as u
7854
7870
  };