mvframe 1.0.82 → 1.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vendor.js CHANGED
@@ -2,7 +2,7 @@ import { u as 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 B, 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 Ve, 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
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";
8
8
  import Ue from "vuedraggable";
@@ -4183,17 +4183,17 @@ 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
4198
  function Bs() {
4199
4199
  return {
@@ -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
4309
  class: B(["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
4315
  class: B([[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
4371
  class: B(["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
4376
  class: B(["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
4382
  class: B(["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, V.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), V = 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(V),
4480
4480
  onClosed: _,
4481
- onOpened: p,
4481
+ onOpened: b,
4482
4482
  class: B(n(t).dragMode && "notransition noevent noselect")
4483
4483
  }, {
4484
- default: P(() => [
4484
+ default: L(() => [
4485
4485
  u("div", bt, [
4486
4486
  u("div", {
4487
4487
  class: B(["dragHandle", n(t).dragMode && "active"]),
4488
- onMousedown: r
4489
- }, [...d[1] || (d[1] = [
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"), V = 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: B(["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(V, {
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
4627
  class: B(["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
4638
  class: B(["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
4655
  class: B(["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,18 +4693,18 @@ 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 }) : Ve(t.type, { ...t.props || {}, label: g }, T);
4708
4708
  }
4709
4709
  return Ie(t, { label: g });
4710
4710
  }
@@ -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 && !Be(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 && !Be(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", V);
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
+ }, V = (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", V), 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}`,
4932
+ (S(!0), $(ee, null, oe(n(v), (M, j) => (S(), $("div", {
4933
+ key: M.name,
4934
+ id: `tab_${M.name}`,
4935
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"
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: B(["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"], Vt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Bt = { 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
+ }, V = () => {
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", {
5041
+ }), (d, C) => {
5042
+ const v = I("el-popconfirm");
5043
+ return S(), $("div", {
5044
5044
  class: B(["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: B(["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
5070
  class: B(["menuItem flexMode vc g8 radius4 p0-16", [
5071
- n(t).name === S.name && "active bg-primary",
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: V
5077
5077
  }, [
5078
5078
  u("div", Vt, [
5079
- S.meta.icon ? (T(), M("i", {
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: B([l.iconClass, w.meta.icon])
5082
+ }, null, 2)) : (S(), $("span", Bt, E(((f = w.meta.title) == null ? void 0 : f.substr(0, 1)) || "U"), 1))
5083
5083
  ]),
5084
5084
  u("div", {
5085
5085
  class: B(["itemTitle txt-nowrap fs14", [
5086
- n(t).name === S.name && "active",
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: B(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name === M.name && "active bg-primary"]),
5095
+ onClick: (F) => z(M),
5096
+ onDblclick: V
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: B([l.iconClass, M.meta.icon])
5102
5102
  }, null, 2)) : U("", !0)
5103
5103
  ]),
5104
5104
  u("div", {
5105
5105
  class: B(["itemTitle txt-nowrap fs14", [
5106
- n(t).name === $.name && "active",
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
5125
  class: B(["fs14", n(a).collapse && "hide"])
5126
- }, j(n(_).userinfo[l.usernameKey]), 3)
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, V = (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: B(["menuItem", { disabled: y(v) }]),
5295
+ disabled: y(v),
5296
+ onClick: (D) => V(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: B(["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, V, 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 = (V = globalThis.$config) == null ? void 0 : V.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,78 @@ 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
+ }, V = (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(() => ({
5488
5491
  hasLabel: !!l.label,
5489
5492
  isMaterialLabel: !!(l.label && l.materialLabel),
5490
5493
  isTopLabel: !!(l.label && !l.materialLabel),
5491
- isFloat: k.value,
5494
+ isFloat: v.value,
5492
5495
  isFocused: _.focused,
5493
5496
  isDisabled: !!t.disabled
5494
- })), S = x(
5497
+ })), D = k(
5495
5498
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
5496
5499
  );
5497
- return se(
5500
+ return ne(
5498
5501
  () => l.modelValue,
5499
- (z) => {
5500
- const w = String(z ?? "");
5501
- String(_.val) !== w && (_.val = w);
5502
+ (f) => {
5503
+ const O = String(f ?? "");
5504
+ String(_.val) !== O && (_.val = O);
5502
5505
  },
5503
5506
  { 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))
5507
+ ), ce(() => {
5508
+ c && (c.removeEventListener("compositionstart", g), c.removeEventListener("compositionend", T), c = null);
5509
+ }), (f, O) => {
5510
+ const M = I("el-input");
5511
+ return S(), $("div", {
5512
+ class: B(["MvcField MvcFieldInput", n(w)]),
5513
+ style: se(n(D))
5511
5514
  }, [
5512
- l.label ? (T(), M("label", mo, j(l.label), 1)) : U("", !0),
5513
- N(m, ee({
5515
+ l.label ? (S(), $("label", mo, E(l.label), 1)) : U("", !0),
5516
+ N(M, le({
5514
5517
  ref_key: "inputRef",
5515
5518
  ref: s,
5516
5519
  modelValue: n(_).val,
5517
- "onUpdate:modelValue": w[0] || (w[0] = ($) => n(_).val = $),
5518
- "show-word-limit": n(v),
5519
- maxlength: n(d),
5520
+ "onUpdate:modelValue": O[0] || (O[0] = (j) => n(_).val = j),
5521
+ "show-word-limit": n(p),
5522
+ maxlength: n(x),
5520
5523
  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 || {})))
5524
+ }, n(i), {
5525
+ onInput: y,
5526
+ onFocus: z,
5527
+ onBlur: V
5528
+ }), pe({ _: 2 }, [
5529
+ oe(n(a), (j, F) => ({
5530
+ name: F,
5531
+ fn: L((H) => [
5532
+ J(f.$slots, F, Te(xe(H || {})))
5530
5533
  ])
5531
5534
  }))
5532
5535
  ]), 1040, ["modelValue", "show-word-limit", "maxlength"])
@@ -5552,50 +5555,50 @@ const Ct = ol({
5552
5555
  }
5553
5556
  },
5554
5557
  setup(e) {
5555
- const o = e, l = ue(), a = x(() => {
5556
- const { class: p, ...r } = l;
5557
- return r;
5558
+ const o = e, l = be(), a = k(() => {
5559
+ const { class: b, ...i } = l;
5560
+ return i;
5558
5561
  }), t = W({
5559
5562
  lang: "en_us"
5560
5563
  });
5561
- oe(() => {
5564
+ te(() => {
5562
5565
  c();
5563
5566
  });
5564
- const s = (p) => {
5567
+ const s = (b) => {
5565
5568
  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());
5569
+ const i = (typeof localStorage < "u" ? localStorage.getItem(Fe) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
5570
+ b == null || b === i || (typeof localStorage < "u" && localStorage.setItem(Fe, b), window.location.reload());
5568
5571
  }, c = () => {
5569
5572
  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({
5573
+ const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", i = _.value.map((T) => T.value);
5574
+ t.lang = i.includes(b) ? b : i[0] || "en_us";
5575
+ }, _ = k(() => {
5576
+ var i;
5577
+ 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);
5578
+ }), A = k(() => _.value.find((b) => b.value === t.lang) ?? null);
5579
+ return (b, i) => {
5580
+ const g = I("el-option"), T = I("el-select");
5581
+ return S(), q(T, le({
5579
5582
  modelValue: t.lang,
5580
- "onUpdate:modelValue": r[0] || (r[0] = (y) => t.lang = y),
5581
- class: ["MvcLang w140", p.$attrs.class],
5583
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => t.lang = y),
5584
+ class: ["MvcLang w140", b.$attrs.class],
5582
5585
  teleported: o.teleported
5583
5586
  }, a.value, { onChange: s }), {
5584
- prefix: P(() => [
5585
- A.value ? (T(), M("div", go, [
5586
- u("span", _o, j(A.value.txt), 1)
5587
+ prefix: L(() => [
5588
+ A.value ? (S(), $("div", go, [
5589
+ u("span", _o, E(A.value.txt), 1)
5587
5590
  ])) : U("", !0)
5588
5591
  ]),
5589
- default: P(() => [
5590
- (T(!0), M(Q, null, ne(_.value, (y) => (T(), q(g, {
5592
+ default: L(() => [
5593
+ (S(!0), $(ee, null, oe(_.value, (y) => (S(), q(g, {
5591
5594
  key: y.value,
5592
5595
  label: y.label,
5593
5596
  value: y.value
5594
5597
  }, {
5595
- default: P(() => [
5598
+ default: L(() => [
5596
5599
  u("div", yo, [
5597
- u("span", wo, j(y.txt), 1),
5598
- u("span", So, j(y.label), 1)
5600
+ u("span", wo, E(y.txt), 1),
5601
+ u("span", So, E(y.label), 1)
5599
5602
  ])
5600
5603
  ]),
5601
5604
  _: 2
@@ -5661,65 +5664,65 @@ const Ct = ol({
5661
5664
  },
5662
5665
  emits: ["update:modelValue", "change"],
5663
5666
  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) => {
5667
+ const l = e, a = o, t = (i) => i.value === l.modelValue, s = (i) => {
5668
+ l.loading || l.disabled || i.disabled || (a("update:modelValue", i.value), a("change", i.value, i.raw));
5669
+ }, c = (i) => {
5667
5670
  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
5671
+ const g = i.value, T = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, g)) ?? typeof g;
5672
+ return T === "Object" || T === "Array" ? JSON.stringify(g) : String(g);
5673
+ }, _ = k(() => {
5674
+ const i = l.options, g = Array.isArray(i) ? i : [], T = l.valueKey, y = l.labelKey;
5675
+ return g.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
5676
+ value: z[T],
5677
+ label: z[y] ?? "",
5678
+ disabled: !!z.disabled,
5679
+ raw: z
5677
5680
  } : {
5678
- value: E,
5679
- label: String(E),
5681
+ value: z,
5682
+ label: String(z),
5680
5683
  disabled: !1,
5681
- raw: E
5684
+ raw: z
5682
5685
  });
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);
5686
+ }), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : ""), b = k(() => {
5687
+ var g, T;
5688
+ const i = (T = (g = l.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : T.call(g);
5686
5689
  return {
5687
5690
  icon: l.loadingIcon,
5688
- showTxt: !!r,
5689
- txt: r || "- LOADING -",
5691
+ showTxt: !!i,
5692
+ txt: i || "- LOADING -",
5690
5693
  radius: 8
5691
5694
  };
5692
5695
  });
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), [
5696
+ return (i, g) => {
5697
+ const T = I("Loading");
5698
+ return S(), $("div", le({
5699
+ class: ["MvcList", [n(A), i.$attrs.class]]
5700
+ }, i.$attrs), [
5698
5701
  u("div", Co, [
5699
5702
  u("div", {
5700
5703
  class: B(["listScroll yscroll", l.listClass]),
5701
5704
  role: "listbox"
5702
5705
  }, [
5703
- (T(!0), M(Q, null, ne(n(_), (y) => (T(), M("div", {
5706
+ (S(!0), $(ee, null, oe(n(_), (y) => (S(), $("div", {
5704
5707
  key: c(y),
5705
5708
  class: B(["listItem", { active: t(y), isDisabled: y.disabled }]),
5706
5709
  role: "option",
5707
5710
  "aria-selected": t(y),
5708
- onClick: (E) => s(y)
5711
+ onClick: (z) => s(y)
5709
5712
  }, [
5710
- H(r.$slots, "item", { option: y }, () => [
5711
- te(j(r.$l(y.label)), 1)
5713
+ J(i.$slots, "item", { option: y }, () => [
5714
+ ae(E(i.$l(y.label)), 1)
5712
5715
  ], !0)
5713
5716
  ], 10, ko))), 128))
5714
5717
  ], 2),
5715
- N(C, ee({
5718
+ N(T, le({
5716
5719
  loading: l.loading
5717
- }, n(p)), null, 16, ["loading"])
5720
+ }, n(b)), null, 16, ["loading"])
5718
5721
  ])
5719
5722
  ], 16);
5720
5723
  };
5721
5724
  }
5722
- }), Oo = /* @__PURE__ */ X(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5725
+ }), Oo = /* @__PURE__ */ Q(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5723
5726
  __proto__: null,
5724
5727
  default: Oo
5725
5728
  }, Symbol.toStringTag, { value: "Module" })), $o = { class: "content flexMode flexV vc g12 relative z1" }, zo = /* @__PURE__ */ Object.assign({
@@ -5762,32 +5765,32 @@ const Ct = ol({
5762
5765
  },
5763
5766
  setup(e) {
5764
5767
  const o = e;
5765
- return (l, a) => (T(), q(sl, { name: "loadingFade" }, {
5766
- default: P(() => [
5767
- o.loading ? (T(), M("div", {
5768
+ return (l, a) => (S(), q(sl, { name: "loadingFade" }, {
5769
+ default: L(() => [
5770
+ o.loading ? (S(), $("div", {
5768
5771
  key: 0,
5769
5772
  class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
5770
5773
  role: "status",
5771
5774
  "aria-busy": "true",
5772
5775
  "aria-live": "polite",
5773
- style: re({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
5776
+ style: se({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
5774
5777
  }, [
5775
5778
  u("div", $o, [
5776
5779
  u("i", {
5777
5780
  class: B([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
5778
5781
  "aria-hidden": "true"
5779
5782
  }, null, 2),
5780
- o.showTxt ? (T(), M("span", {
5783
+ o.showTxt ? (S(), $("span", {
5781
5784
  key: 0,
5782
5785
  class: B(["loaderTxt fs14 txt-c", o.txtClass])
5783
- }, j(l.$l(o.txt)), 3)) : U("", !0)
5786
+ }, E(l.$l(o.txt)), 3)) : U("", !0)
5784
5787
  ])
5785
5788
  ], 4)) : U("", !0)
5786
5789
  ]),
5787
5790
  _: 1
5788
5791
  }));
5789
5792
  }
5790
- }), Eo = /* @__PURE__ */ X(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5793
+ }), Eo = /* @__PURE__ */ Q(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5791
5794
  __proto__: null,
5792
5795
  default: Eo
5793
5796
  }, 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 = {
@@ -5835,25 +5838,25 @@ const Ct = ol({
5835
5838
  },
5836
5839
  emits: ["success", "submit"],
5837
5840
  setup(e, { emit: o }) {
5838
- const l = e, { proxy: a } = ce(), t = Z(null), s = Z(!1), c = W({
5841
+ const l = e, { proxy: a } = ue(), t = Z(null), s = Z(!1), c = W({
5839
5842
  method: "password",
5840
5843
  form: {},
5841
5844
  remember: !1
5842
5845
  });
5843
- oe(() => {
5846
+ te(() => {
5844
5847
  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)));
5848
+ const v = localStorage.getItem(Ae);
5849
+ if (v) {
5850
+ const w = JSON.parse(v);
5851
+ 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
5852
  }
5850
5853
  } catch {
5851
5854
  }
5852
5855
  });
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 = () => {
5856
+ const _ = o, A = (v, w = "info") => {
5857
+ const D = a == null ? void 0 : a.$message;
5858
+ D != null && D[w] && D[w](v);
5859
+ }, b = () => {
5857
5860
  try {
5858
5861
  c.remember ? localStorage.setItem(
5859
5862
  Ae,
@@ -5865,77 +5868,77 @@ const Ct = ol({
5865
5868
  ) : localStorage.removeItem(Ae);
5866
5869
  } catch {
5867
5870
  }
5868
- }, r = () => {
5871
+ }, i = () => {
5869
5872
  A("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
5870
5873
  }, g = () => {
5871
5874
  A("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
5872
- }, C = async () => {
5873
- var w, m;
5875
+ }, T = async () => {
5876
+ var f, O;
5874
5877
  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)
5878
+ const v = await ((O = (f = t.value) == null ? void 0 : f.validate) == null ? void 0 : O.call(f));
5879
+ if (!v) return;
5880
+ const w = String(v.username ?? "").trim();
5881
+ if (!w)
5879
5882
  return;
5880
- const z = String(h.password ?? "").trim();
5881
- if (z) {
5883
+ const D = String(v.password ?? "").trim();
5884
+ if (D) {
5882
5885
  s.value = !0;
5883
5886
  try {
5884
- const $ = await globalThis.$pm(async () => ({
5887
+ const M = await globalThis.$pm(async () => ({
5885
5888
  method: "password",
5886
- username: S,
5887
- password: z
5889
+ username: w,
5890
+ password: D
5888
5891
  }));
5889
- p(), _("submit", {
5892
+ b(), _("submit", {
5890
5893
  method: "password",
5891
- [v.value.username.valueKey]: $.username,
5892
- [v.value.password.valueKey]: $.password
5894
+ [m.value.username.valueKey]: M.username,
5895
+ [m.value.password.valueKey]: M.password
5893
5896
  }), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
5894
5897
  } finally {
5895
5898
  s.value = !1;
5896
5899
  }
5897
5900
  }
5898
- }, y = x(() => !!l.loading || s.value), E = x(() => {
5899
- const h = globalThis.$config;
5901
+ }, y = k(() => !!l.loading || s.value), z = k(() => {
5902
+ const v = globalThis.$config;
5900
5903
  return {
5901
- copyright: (h == null ? void 0 : h.copyright) ?? "",
5902
- author: (h == null ? void 0 : h.author) ?? ""
5904
+ copyright: (v == null ? void 0 : v.copyright) ?? "",
5905
+ author: (v == null ? void 0 : v.author) ?? ""
5903
5906
  };
5904
- }), D = x(() => i[c.method] ?? "Login"), v = x(() => ({
5907
+ }), V = k(() => d[c.method] ?? "Login"), m = k(() => ({
5905
5908
  username: {
5906
- ...k.username,
5909
+ ...C.username,
5907
5910
  ...l.formFileds.username || {}
5908
5911
  },
5909
5912
  password: {
5910
- ...k.password,
5913
+ ...C.password,
5911
5914
  ...l.formFileds.password || {}
5912
5915
  }
5913
- })), d = x(() => ({
5916
+ })), p = k(() => ({
5914
5917
  username: [
5915
5918
  {
5916
5919
  required: !0,
5917
- message: v.value.username.message,
5920
+ message: m.value.username.message,
5918
5921
  trigger: "blur"
5919
5922
  }
5920
5923
  ],
5921
5924
  password: [
5922
5925
  {
5923
5926
  required: !0,
5924
- message: v.value.password.message,
5927
+ message: m.value.password.message,
5925
5928
  trigger: "blur"
5926
5929
  }
5927
5930
  ]
5928
- })), O = x(() => [
5931
+ })), x = k(() => [
5929
5932
  { value: "password", label: "Account" },
5930
5933
  { value: "auth", label: "Google/Apple" },
5931
5934
  { value: "dingtalk", label: "DingTalk" },
5932
5935
  { value: "feishu", label: "Lark" },
5933
5936
  { value: "wechat", label: "Wechat" }
5934
- ].filter((h, S) => l.loginMethods.includes(S))), i = {
5937
+ ].filter((v, w) => l.loginMethods.includes(w))), d = {
5935
5938
  dingtalk: "DingTalk",
5936
5939
  feishu: "Lark",
5937
5940
  wechat: "Wechat"
5938
- }, k = {
5941
+ }, C = {
5939
5942
  username: {
5940
5943
  label: "Account",
5941
5944
  placeholder: "Enter your account",
@@ -5953,48 +5956,48 @@ const Ct = ol({
5953
5956
  valueKey: "password"
5954
5957
  }
5955
5958
  };
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, [
5959
+ return (v, w) => {
5960
+ const D = I("BtnGroup"), f = I("Input"), O = I("el-form-item"), M = I("el-checkbox"), j = I("el-button"), F = I("Form");
5961
+ return S(), $("div", jo, [
5959
5962
  u("div", Po, [
5960
5963
  u("div", No, [
5961
- u("span", Ro, j(h.$l(l.title)), 1)
5964
+ u("span", Ro, E(v.$l(l.title)), 1)
5962
5965
  ]),
5963
- N(z, {
5966
+ N(D, {
5964
5967
  modelValue: n(c).method,
5965
- "onUpdate:modelValue": S[0] || (S[0] = (Y) => n(c).method = Y),
5966
- options: n(O),
5968
+ "onUpdate:modelValue": w[0] || (w[0] = (H) => n(c).method = H),
5969
+ options: n(x),
5967
5970
  disabled: n(y),
5968
5971
  size: "small",
5969
5972
  class: "mb32"
5970
5973
  }, null, 8, ["modelValue", "options", "disabled"]),
5971
5974
  u("div", Do, [
5972
- n(c).method === "password" ? (T(), q(G, {
5975
+ n(c).method === "password" ? (S(), q(F, {
5973
5976
  key: 0,
5974
5977
  ref_key: "pwdFormRef",
5975
5978
  ref: t,
5976
5979
  modelValue: n(c).form,
5977
- "onUpdate:modelValue": S[4] || (S[4] = (Y) => n(c).form = Y),
5980
+ "onUpdate:modelValue": w[4] || (w[4] = (H) => n(c).form = H),
5978
5981
  size: "default",
5979
- rules: n(d)
5982
+ rules: n(p)
5980
5983
  }, {
5981
- default: P(() => [
5982
- N(m, { prop: "username" }, {
5983
- default: P(() => [
5984
- N(w, {
5984
+ default: L(() => [
5985
+ N(O, { prop: "username" }, {
5986
+ default: L(() => [
5987
+ N(f, {
5985
5988
  modelValue: n(c).form.username,
5986
- "onUpdate:modelValue": S[1] || (S[1] = (Y) => n(c).form.username = Y),
5989
+ "onUpdate:modelValue": w[1] || (w[1] = (H) => n(c).form.username = H),
5987
5990
  class: "wp100",
5988
5991
  size: "large",
5989
5992
  name: "username",
5990
- placeholder: n(v).username.placeholder,
5993
+ placeholder: n(m).username.placeholder,
5991
5994
  disabled: n(y)
5992
- }, be({ _: 2 }, [
5993
- n(v).username.showPrefix ? {
5995
+ }, pe({ _: 2 }, [
5996
+ n(m).username.showPrefix ? {
5994
5997
  name: "prefix",
5995
- fn: P(() => [
5998
+ fn: L(() => [
5996
5999
  u("i", {
5997
- class: B(n(v).username.icon)
6000
+ class: B(n(m).username.icon)
5998
6001
  }, null, 2)
5999
6002
  ]),
6000
6003
  key: "0"
@@ -6003,25 +6006,25 @@ const Ct = ol({
6003
6006
  ]),
6004
6007
  _: 1
6005
6008
  }),
6006
- N(m, { prop: "password" }, {
6007
- default: P(() => [
6008
- N(w, {
6009
+ N(O, { prop: "password" }, {
6010
+ default: L(() => [
6011
+ N(f, {
6009
6012
  modelValue: n(c).form.password,
6010
- "onUpdate:modelValue": S[2] || (S[2] = (Y) => n(c).form.password = Y),
6013
+ "onUpdate:modelValue": w[2] || (w[2] = (H) => n(c).form.password = H),
6011
6014
  class: "wp100",
6012
6015
  size: "large",
6013
6016
  type: "password",
6014
6017
  name: "password",
6015
- placeholder: n(v).password.placeholder,
6018
+ placeholder: n(m).password.placeholder,
6016
6019
  "show-password": "",
6017
6020
  disabled: n(y),
6018
- onKeyup: Pl(C, ["enter"])
6019
- }, be({ _: 2 }, [
6020
- n(v).password.showPrefix ? {
6021
+ onKeyup: Pl(T, ["enter"])
6022
+ }, pe({ _: 2 }, [
6023
+ n(m).password.showPrefix ? {
6021
6024
  name: "prefix",
6022
- fn: P(() => [
6025
+ fn: L(() => [
6023
6026
  u("i", {
6024
- class: B(n(v).password.icon)
6027
+ class: B(n(m).password.icon)
6025
6028
  }, null, 2)
6026
6029
  ]),
6027
6030
  key: "0"
@@ -6030,44 +6033,44 @@ const Ct = ol({
6030
6033
  ]),
6031
6034
  _: 1
6032
6035
  }),
6033
- N(m, null, {
6034
- default: P(() => [
6035
- N($, {
6036
+ N(O, null, {
6037
+ default: L(() => [
6038
+ N(M, {
6036
6039
  modelValue: n(c).remember,
6037
- "onUpdate:modelValue": S[3] || (S[3] = (Y) => n(c).remember = Y),
6040
+ "onUpdate:modelValue": w[3] || (w[3] = (H) => n(c).remember = H),
6038
6041
  disabled: n(y)
6039
6042
  }, {
6040
- default: P(() => [
6041
- te(j(h.$l(l.rememberTxt)), 1)
6043
+ default: L(() => [
6044
+ ae(E(v.$l(l.rememberTxt)), 1)
6042
6045
  ]),
6043
6046
  _: 1
6044
6047
  }, 8, ["modelValue", "disabled"])
6045
6048
  ]),
6046
6049
  _: 1
6047
6050
  }),
6048
- N(I, {
6051
+ N(j, {
6049
6052
  type: "primary",
6050
6053
  size: "large",
6051
6054
  class: "wp100",
6052
6055
  loading: n(y),
6053
6056
  disabled: n(y),
6054
- onClick: C
6057
+ onClick: T
6055
6058
  }, {
6056
- default: P(() => [
6057
- te(j(h.$l(l.submitTxt)), 1)
6059
+ default: L(() => [
6060
+ ae(E(v.$l(l.submitTxt)), 1)
6058
6061
  ]),
6059
6062
  _: 1
6060
6063
  }, 8, ["loading", "disabled"])
6061
6064
  ]),
6062
6065
  _: 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)),
6066
+ }, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (S(), $("div", Io, [
6067
+ w[7] || (w[7] = u("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
6065
6068
  u("button", {
6066
6069
  type: "button",
6067
6070
  class: "oauthGoogle wp100 mb36",
6068
6071
  disabled: n(y),
6069
- onClick: r
6070
- }, [...S[5] || (S[5] = [
6072
+ onClick: i
6073
+ }, [...w[5] || (w[5] = [
6071
6074
  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
6075
  ])], 8, Vo),
6073
6076
  u("button", {
@@ -6075,7 +6078,7 @@ const Ct = ol({
6075
6078
  class: "oauthApple wp100 mb16",
6076
6079
  disabled: n(y),
6077
6080
  onClick: g
6078
- }, [...S[6] || (S[6] = [
6081
+ }, [...w[6] || (w[6] = [
6079
6082
  u("svg", {
6080
6083
  class: "oauthAppleLogo noShrink",
6081
6084
  xmlns: "http://www.w3.org/2000/svg",
@@ -6091,8 +6094,8 @@ const Ct = ol({
6091
6094
  ], -1),
6092
6095
  u("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
6093
6096
  ])], 8, Bo)
6094
- ])) : (T(), M("div", Fo, [
6095
- u("p", Uo, j(n(D)), 1),
6097
+ ])) : (S(), $("div", Fo, [
6098
+ u("p", Uo, E(n(V)), 1),
6096
6099
  u("div", {
6097
6100
  class: B(["qrBlock w180 h180 radius6", `qr-${n(c).method}`]),
6098
6101
  "aria-hidden": "true"
@@ -6101,13 +6104,13 @@ const Ct = ol({
6101
6104
  ])
6102
6105
  ]),
6103
6106
  u("div", Go, [
6104
- u("span", null, j(n(E).copyright), 1),
6105
- u("span", null, j(n(E).author), 1)
6107
+ u("span", null, E(n(z).copyright), 1),
6108
+ u("span", null, E(n(z).author), 1)
6106
6109
  ])
6107
6110
  ]);
6108
6111
  };
6109
6112
  }
6110
- }), Ho = /* @__PURE__ */ X(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6113
+ }), Ho = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6111
6114
  __proto__: null,
6112
6115
  default: Ho
6113
6116
  }, Symbol.toStringTag, { value: "Module" })), Yo = /* @__PURE__ */ Object.assign({
@@ -6134,17 +6137,17 @@ const Ct = ol({
6134
6137
  setup(e) {
6135
6138
  const o = e;
6136
6139
  W({});
6137
- const l = x(() => ({
6140
+ const l = k(() => ({
6138
6141
  borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
6139
6142
  }));
6140
- return (a, t) => (T(), M("div", {
6143
+ return (a, t) => (S(), $("div", {
6141
6144
  class: "MvcNote",
6142
- style: re(n(l))
6145
+ style: se(n(l))
6143
6146
  }, [
6144
- H(a.$slots, "default", {}, void 0, !0)
6147
+ J(a.$slots, "default", {}, void 0, !0)
6145
6148
  ], 4));
6146
6149
  }
6147
- }), Wo = /* @__PURE__ */ X(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6150
+ }), Wo = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6148
6151
  __proto__: null,
6149
6152
  default: Wo
6150
6153
  }, Symbol.toStringTag, { value: "Module" })), qo = {
@@ -6174,35 +6177,35 @@ const Ct = ol({
6174
6177
  }
6175
6178
  },
6176
6179
  setup(e) {
6177
- const o = e, { proxy: l } = ce(), t = ge("store").tab(), s = x(() => o.title || o.subtitle), c = x(() => t.useTab), _ = x(() => {
6180
+ const o = e, { proxy: l } = ue(), t = ge("store").tab(), s = k(() => o.title || o.subtitle), c = k(() => t.useTab), _ = k(() => {
6178
6181
  let A = "calc(100vh";
6179
6182
  return t.useTab && (A += " - 2.25rem"), o.noheader || (A += " - 4rem"), {
6180
6183
  minHeight: `${A})`
6181
6184
  };
6182
6185
  });
6183
- return (A, p) => (T(), M("div", {
6186
+ return (A, b) => (S(), $("div", {
6184
6187
  class: B(["MvcPage", n(c) && "hasTab"])
6185
6188
  }, [
6186
- o.noheader ? U("", !0) : (T(), M("div", qo, [
6189
+ o.noheader ? U("", !0) : (S(), $("div", qo, [
6187
6190
  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)
6191
+ A.$slots.header ? J(A.$slots, "header", { key: 0 }, void 0, !0) : n(s) ? (S(), $(ee, { key: 1 }, [
6192
+ u("h3", Qo, E(o.title), 1),
6193
+ u("p", en, E(o.subtitle), 1)
6191
6194
  ], 64)) : U("", !0)
6192
6195
  ]),
6193
6196
  u("div", ln, [
6194
- A.$slots.right ? H(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
6197
+ A.$slots.right ? J(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
6195
6198
  ])
6196
6199
  ])),
6197
6200
  u("div", {
6198
6201
  class: B(["PageBody", o.bodyClass]),
6199
- style: re(n(_))
6202
+ style: se(n(_))
6200
6203
  }, [
6201
- H(A.$slots, "default", {}, void 0, !0)
6204
+ J(A.$slots, "default", {}, void 0, !0)
6202
6205
  ], 6)
6203
6206
  ], 2));
6204
6207
  }
6205
- }), tn = /* @__PURE__ */ X(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6208
+ }), tn = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6206
6209
  __proto__: null,
6207
6210
  default: tn
6208
6211
  }, Symbol.toStringTag, { value: "Module" })), nn = {
@@ -6261,164 +6264,167 @@ const Ct = ol({
6261
6264
  },
6262
6265
  emits: ["update:modelValue", "change", "focus", "blur"],
6263
6266
  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();
6267
+ 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) => {
6268
+ l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
6269
+ }, T = (r) => {
6270
+ if (s.value = r, r && l.multiple) {
6271
+ const h = l.modelValue;
6272
+ t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
6270
6273
  }
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);
6274
+ }, y = (r) => {
6275
+ A.value = !0, i("focus", r);
6276
+ }, z = (r) => {
6277
+ A.value = !1, i("blur", r);
6278
+ }, V = () => {
6279
+ var R;
6280
+ if (!l.filterable || !s.value) return d();
6281
+ const r = a.value, h = ((R = r == null ? void 0 : r.optionsArray) == null ? void 0 : R.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
6282
+ return Array.isArray(h) ? h.filter((P) => P.visible && !P.isDisabled).map((P) => P.value) : d();
6283
+ }, m = () => {
6284
+ const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
6285
+ return Number.isFinite(h) && h > 0 ? h : 0;
6286
+ }, p = (r) => {
6287
+ const h = V();
6288
+ if (r) {
6289
+ const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
6290
+ for (const Y of h)
6291
+ if (!G.has(Y)) {
6292
+ if (R > 0 && K.length >= R) break;
6293
+ G.add(Y), K.push(Y);
6291
6294
  }
6292
6295
  t.value = K;
6293
6296
  } else {
6294
- const L = new Set(f);
6295
- t.value = t.value.filter((R) => !L.has(R));
6297
+ const R = new Set(h);
6298
+ t.value = t.value.filter((P) => !R.has(P));
6296
6299
  }
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(() => {
6300
+ C();
6301
+ }, x = () => {
6302
+ var r, h;
6303
+ l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
6304
+ }, d = () => {
6305
+ const r = l.valueKey;
6306
+ return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
6307
+ }, C = () => {
6308
+ const r = V(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
6309
+ c.value = P > 0 && R === P, _.value = R > 0 && R < P;
6310
+ }, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
6308
6311
  const {
6309
- modelValue: b,
6310
- valueKey: f,
6311
- labelKey: L,
6312
- selectAllTxt: R,
6313
- confirmTxt: F,
6312
+ modelValue: r,
6313
+ valueKey: h,
6314
+ labelKey: R,
6315
+ selectAllTxt: P,
6316
+ confirmTxt: G,
6314
6317
  nowrap: K,
6315
- ...J
6316
- } = l, le = J.props ?? {};
6318
+ ...Y
6319
+ } = l, X = Y.props ?? {};
6317
6320
  return {
6318
- ...J,
6321
+ ...Y,
6319
6322
  props: {
6320
- ...le,
6321
- value: f,
6322
- label: L
6323
+ ...X,
6324
+ value: h,
6325
+ label: R
6323
6326
  }
6324
6327
  };
6325
- }), z = x(
6328
+ }), D = k(
6326
6329
  () => l.nowrap ? {
6327
6330
  collapseTags: !0,
6328
6331
  collapseTagsTooltip: !0,
6329
6332
  maxCollapseTags: 1,
6330
6333
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
6331
6334
  } : {}
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(() => ({
6335
+ ), f = k(() => {
6336
+ const { class: r, ...h } = b;
6337
+ return h;
6338
+ }), O = k(() => ({
6339
+ ...D.value,
6340
+ ...f.value,
6341
+ ...w.value,
6342
+ placeholder: b.placeholder ?? ""
6343
+ })), M = k(() => {
6344
+ const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
6345
+ if (!l.filterable || !s.value) return h.length;
6346
+ const R = V();
6347
+ return h.filter((P) => R.includes(P)).length;
6348
+ }), j = k(() => V().length), F = k(() => {
6349
+ const r = l.multiple && s.value ? t.value : l.modelValue;
6350
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
6351
+ }), H = k(() => !!b.placeholder), ie = k(
6352
+ () => l.materialLabel && (A.value || s.value || F.value || H.value)
6353
+ ), fe = k(() => ({
6348
6354
  hasLabel: !!l.label,
6349
6355
  isMaterialLabel: !!(l.label && l.materialLabel),
6350
6356
  isTopLabel: !!(l.label && !l.materialLabel),
6351
- isFloat: Y.value,
6357
+ isFloat: ie.value,
6352
6358
  isFocused: A.value,
6353
- isDisabled: !!p.disabled,
6359
+ isDisabled: !!b.disabled,
6354
6360
  isSelect: !0
6355
- })), fe = x(
6361
+ })), re = k(
6356
6362
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
6357
6363
  );
6358
- return se(t, () => k(), { deep: !0 }), se(
6364
+ return ne(t, () => C(), { deep: !0 }), ne(
6359
6365
  () => l.modelValue,
6360
- (b) => {
6366
+ (r) => {
6361
6367
  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());
6368
+ const h = Array.isArray(r) ? [...r] : r ? [r] : [];
6369
+ JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
6364
6370
  }
6365
6371
  }
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))
6372
+ ), (r, h) => {
6373
+ const R = I("el-checkbox"), P = I("el-button"), G = I("el-select");
6374
+ return S(), $("div", {
6375
+ class: B(["MvcField MvcFieldSelect", n(fe)]),
6376
+ style: se(n(re))
6371
6377
  }, [
6372
- l.label ? (T(), M("label", nn, j(l.label), 1)) : U("", !0),
6373
- N(F, ee({
6378
+ l.label ? (S(), $("label", nn, E(l.label), 1)) : U("", !0),
6379
+ N(G, le({
6374
6380
  ref_key: "selectRef",
6375
6381
  ref: a,
6376
- "model-value": n(h),
6382
+ "model-value": n(v),
6377
6383
  "tag-effect": "plain",
6378
6384
  class: "MvcSelect"
6379
- }, n(w), {
6385
+ }, n(O), {
6380
6386
  "onUpdate:modelValue": g,
6381
- onVisibleChange: C,
6387
+ onVisibleChange: T,
6382
6388
  onFocus: y,
6383
- onBlur: E
6384
- }), be({
6385
- default: P(() => [
6386
- H(b.$slots, "default")
6389
+ onBlur: z
6390
+ }), pe({
6391
+ default: L(() => [
6392
+ J(r.$slots, "default")
6387
6393
  ]),
6388
6394
  _: 2
6389
6395
  }, [
6390
6396
  l.filterable && l.multiple ? {
6391
6397
  name: "header",
6392
- fn: P(() => [
6398
+ fn: L(() => [
6393
6399
  u("div", sn, [
6394
- N(L, {
6400
+ N(R, {
6395
6401
  modelValue: n(c),
6396
- "onUpdate:modelValue": f[0] || (f[0] = (K) => rl(c) ? c.value = K : null),
6402
+ "onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
6397
6403
  indeterminate: n(_),
6398
6404
  class: "h24",
6399
- onChange: d
6405
+ onChange: p
6400
6406
  }, {
6401
- default: P(() => [
6402
- te(j(e.selectAllTxt), 1)
6407
+ default: L(() => [
6408
+ ae(E(e.selectAllTxt), 1)
6403
6409
  ]),
6404
6410
  _: 1
6405
6411
  }, 8, ["modelValue", "indeterminate"]),
6406
- u("span", rn, j(n(m)) + "/" + j(n($)), 1)
6412
+ u("span", rn, E(n(M)) + "/" + E(n(j)), 1)
6407
6413
  ])
6408
6414
  ]),
6409
6415
  key: "0"
6410
6416
  } : void 0,
6411
6417
  l.multiple ? {
6412
6418
  name: "footer",
6413
- fn: P(() => [
6419
+ fn: L(() => [
6414
6420
  u("div", un, [
6415
- N(R, {
6421
+ N(P, {
6416
6422
  type: "primary",
6417
6423
  size: "small",
6418
- onClick: O
6424
+ onClick: x
6419
6425
  }, {
6420
- default: P(() => [
6421
- te(j(e.confirmTxt), 1)
6426
+ default: L(() => [
6427
+ ae(E(e.confirmTxt), 1)
6422
6428
  ]),
6423
6429
  _: 1
6424
6430
  })
@@ -6489,167 +6495,170 @@ const Ct = ol({
6489
6495
  },
6490
6496
  emits: ["update:modelValue", "change", "focus", "blur"],
6491
6497
  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();
6498
+ 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) => {
6499
+ l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
6500
+ }, T = (r) => {
6501
+ if (s.value = r, r && l.multiple) {
6502
+ const h = l.modelValue;
6503
+ t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
6498
6504
  }
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);
6505
+ }, y = (r) => {
6506
+ A.value = !0, i("focus", r);
6507
+ }, z = (r) => {
6508
+ A.value = !1, i("blur", r);
6509
+ }, V = () => {
6510
+ var P;
6511
+ if (!l.filterable || !s.value) return d();
6512
+ const r = a.value, h = ((P = r == null ? void 0 : r.filteredOptions) == null ? void 0 : P.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
6513
+ if (!Array.isArray(h)) return d();
6514
+ const R = l.valueKey;
6515
+ return h.filter((G) => G.type !== "Group" && !G.disabled).map((G) => typeof G == "object" ? G[R] : G);
6516
+ }, m = () => {
6517
+ const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
6518
+ return Number.isFinite(h) && h > 0 ? h : 0;
6519
+ }, p = (r) => {
6520
+ const h = V();
6521
+ if (r) {
6522
+ const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
6523
+ for (const Y of h)
6524
+ if (!G.has(Y)) {
6525
+ if (R > 0 && K.length >= R) break;
6526
+ G.add(Y), K.push(Y);
6521
6527
  }
6522
6528
  t.value = K;
6523
6529
  } else {
6524
- const L = new Set(f);
6525
- t.value = t.value.filter((R) => !L.has(R));
6530
+ const R = new Set(h);
6531
+ t.value = t.value.filter((P) => !R.has(P));
6526
6532
  }
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(() => {
6533
+ C();
6534
+ }, x = () => {
6535
+ var r, h;
6536
+ l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
6537
+ }, d = () => {
6538
+ const r = l.valueKey;
6539
+ return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
6540
+ }, C = () => {
6541
+ const r = V(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
6542
+ c.value = P > 0 && R === P, _.value = R > 0 && R < P;
6543
+ }, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
6538
6544
  const {
6539
- modelValue: b,
6540
- valueKey: f,
6541
- labelKey: L,
6542
- selectAllTxt: R,
6543
- confirmTxt: F,
6545
+ modelValue: r,
6546
+ valueKey: h,
6547
+ labelKey: R,
6548
+ selectAllTxt: P,
6549
+ confirmTxt: G,
6544
6550
  nowrap: K,
6545
- ...J
6546
- } = l, le = J.props ?? {};
6551
+ ...Y
6552
+ } = l, X = Y.props ?? {};
6547
6553
  return {
6548
- ...J,
6554
+ ...Y,
6549
6555
  props: {
6550
- ...le,
6551
- value: f,
6552
- label: L
6556
+ ...X,
6557
+ value: h,
6558
+ label: R
6553
6559
  }
6554
6560
  };
6555
- }), z = x(
6561
+ }), D = k(
6556
6562
  () => l.nowrap ? {
6557
6563
  collapseTags: !0,
6558
6564
  collapseTagsTooltip: !0,
6559
6565
  maxCollapseTags: 1,
6560
6566
  tagTooltip: { popperStyle: { maxWidth: "400px" } }
6561
6567
  } : {}
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(() => ({
6568
+ ), f = k(() => {
6569
+ const { class: r, ...h } = b;
6570
+ return h;
6571
+ }), O = k(() => ({
6572
+ ...D.value,
6573
+ ...f.value,
6574
+ ...w.value,
6575
+ placeholder: b.placeholder ?? ""
6576
+ })), M = k(() => {
6577
+ const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
6578
+ if (!l.filterable || !s.value) return h.length;
6579
+ const R = V();
6580
+ return h.filter((P) => R.includes(P)).length;
6581
+ }), j = k(() => V().length), F = k(() => {
6582
+ const r = l.multiple && s.value ? t.value : l.modelValue;
6583
+ return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
6584
+ }), H = k(() => !!b.placeholder), ie = k(
6585
+ () => l.materialLabel && (A.value || s.value || F.value || H.value)
6586
+ ), fe = k(() => ({
6578
6587
  hasLabel: !!l.label,
6579
6588
  isMaterialLabel: !!(l.label && l.materialLabel),
6580
6589
  isTopLabel: !!(l.label && !l.materialLabel),
6581
- isFloat: Y.value,
6590
+ isFloat: ie.value,
6582
6591
  isFocused: A.value,
6583
- isDisabled: !!p.disabled,
6592
+ isDisabled: !!b.disabled,
6584
6593
  isSelect: !0
6585
- })), fe = x(
6594
+ })), re = k(
6586
6595
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
6587
6596
  );
6588
- return se(t, () => k(), { deep: !0 }), se(
6597
+ return ne(t, () => C(), { deep: !0 }), ne(
6589
6598
  () => l.modelValue,
6590
- (b) => {
6599
+ (r) => {
6591
6600
  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());
6601
+ const h = Array.isArray(r) ? [...r] : r ? [r] : [];
6602
+ JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
6594
6603
  }
6595
6604
  }
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))
6605
+ ), (r, h) => {
6606
+ const R = I("el-checkbox"), P = I("el-button"), G = I("el-select-v2");
6607
+ return S(), $("div", {
6608
+ class: B(["MvcField MvcFieldSelectV2", n(fe)]),
6609
+ style: se(n(re))
6601
6610
  }, [
6602
- l.label ? (T(), M("label", pn, j(l.label), 1)) : U("", !0),
6603
- N(F, ee({
6611
+ l.label ? (S(), $("label", pn, E(l.label), 1)) : U("", !0),
6612
+ N(G, le({
6604
6613
  ref_key: "selectRef",
6605
6614
  ref: a,
6606
- "model-value": n(h),
6615
+ "model-value": n(v),
6607
6616
  class: "MvcSelectV2"
6608
- }, n(w), {
6617
+ }, n(O), {
6609
6618
  "onUpdate:modelValue": g,
6610
- onVisibleChange: C,
6619
+ onVisibleChange: T,
6611
6620
  onFocus: y,
6612
- onBlur: E
6613
- }), be({ _: 2 }, [
6621
+ onBlur: z
6622
+ }), pe({ _: 2 }, [
6614
6623
  l.filterable && l.multiple ? {
6615
6624
  name: "header",
6616
- fn: P(() => [
6625
+ fn: L(() => [
6617
6626
  u("div", bn, [
6618
- N(L, {
6627
+ N(R, {
6619
6628
  modelValue: n(c),
6620
- "onUpdate:modelValue": f[0] || (f[0] = (K) => rl(c) ? c.value = K : null),
6629
+ "onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
6621
6630
  indeterminate: n(_),
6622
6631
  class: "h24",
6623
- onChange: d
6632
+ onChange: p
6624
6633
  }, {
6625
- default: P(() => [
6626
- te(j(e.selectAllTxt), 1)
6634
+ default: L(() => [
6635
+ ae(E(e.selectAllTxt), 1)
6627
6636
  ]),
6628
6637
  _: 1
6629
6638
  }, 8, ["modelValue", "indeterminate"]),
6630
- u("span", fn, j(n(m)) + "/" + j(n($)), 1)
6639
+ u("span", fn, E(n(M)) + "/" + E(n(j)), 1)
6631
6640
  ])
6632
6641
  ]),
6633
6642
  key: "0"
6634
6643
  } : void 0,
6635
- b.$slots.default ? {
6644
+ r.$slots.default ? {
6636
6645
  name: "default",
6637
- fn: P((K) => [
6638
- H(b.$slots, "default", Te(xe(K)))
6646
+ fn: L((K) => [
6647
+ J(r.$slots, "default", Te(xe(K)))
6639
6648
  ]),
6640
6649
  key: "1"
6641
6650
  } : void 0,
6642
6651
  l.multiple ? {
6643
6652
  name: "footer",
6644
- fn: P(() => [
6653
+ fn: L(() => [
6645
6654
  u("div", mn, [
6646
- N(R, {
6655
+ N(P, {
6647
6656
  type: "primary",
6648
6657
  size: "small",
6649
- onClick: O
6658
+ onClick: x
6650
6659
  }, {
6651
- default: P(() => [
6652
- te(j(e.confirmTxt), 1)
6660
+ default: L(() => [
6661
+ ae(E(e.confirmTxt), 1)
6653
6662
  ]),
6654
6663
  _: 1
6655
6664
  })
@@ -6688,34 +6697,34 @@ const Ct = ol({
6688
6697
  }), a = e.tableName + "_Column";
6689
6698
  let t = [];
6690
6699
  (() => {
6691
- const A = o.slots.default()[0].children, p = {
6700
+ const A = o.slots.default()[0].children, b = {
6692
6701
  normal: [],
6693
6702
  mmp: [],
6694
6703
  asa: [],
6695
6704
  fixed: [],
6696
6705
  columns: []
6697
- }, r = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
6706
+ }, i = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
6698
6707
  A.forEach((y) => {
6699
6708
  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 = {
6709
+ }), t.forEach((y, z) => {
6710
+ var V;
6711
+ if (window.$getType(y.type), ((V = y.type) == null ? void 0 : V.name) === "ElTableColumn") {
6712
+ let m = {
6704
6713
  ...y.props,
6705
- sort: E,
6714
+ sort: z,
6706
6715
  nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
6707
6716
  resizable: !0,
6708
6717
  visible: y.props.visible !== !1
6709
6718
  };
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);
6719
+ 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) {
6720
+ const { data: p } = i.filter1((x) => x.prop === y.props.prop);
6721
+ p && (m.sort = p.sort, m.fixed = p.fixed, m.visible = p.visible);
6713
6722
  }
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;
6723
+ 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
6724
  }
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)));
6725
+ }), l.columnInfo = b;
6726
+ let T = [...b.normal, ...b.mmp, ...b.asa];
6727
+ e.tableName && (T = T.sort((y, z) => y.sort - z.sort), localStorage.setItem(a, JSON.stringify(T)));
6719
6728
  })();
6720
6729
  let c = [];
6721
6730
  if (t.forEach((A) => {
@@ -6737,7 +6746,7 @@ const Ct = ol({
6737
6746
  props: A
6738
6747
  });
6739
6748
  }
6740
- return c = c.sort((A, p) => A.props.sort - p.props.sort), () => c;
6749
+ return c = c.sort((A, b) => A.props.sort - b.props.sort), () => c;
6741
6750
  }
6742
6751
  }), _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
6752
  class: "flexMode vs hp100",
@@ -6788,43 +6797,43 @@ const Ct = ol({
6788
6797
  columnType: {},
6789
6798
  mounted: !1
6790
6799
  });
6791
- oe(() => {
6800
+ te(() => {
6792
6801
  s();
6793
6802
  });
6794
6803
  const t = o, s = () => {
6795
6804
  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);
6805
+ const p = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), x = {};
6806
+ p.forEach((d) => {
6807
+ 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);
6808
+ }), a.columnType = x;
6809
+ }, c = (p) => {
6810
+ a.type = p;
6811
+ }, _ = (p, x) => {
6812
+ p.visible = !0, a.visible.unshift(p), p.type ? a.columns[p.type].splice(x, 1) : a.columns.normal.splice(x, 1);
6813
+ }, A = (p, x) => {
6814
+ a.fixed.unshift(p), a.visible.splice(x, 1);
6815
+ }, b = (p, x) => {
6816
+ a.visible.unshift(p), a.fixed.splice(x, 1);
6817
+ }, i = (p, x) => {
6818
+ a.visible.splice(x, 1), p.type ? a.columns[p.type].unshift(p) : a.columns.normal.unshift(p);
6810
6819
  }, g = async () => {
6811
6820
  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");
6821
+ const { fixed: p, visible: x, columns: d, selection: C, operation: v } = a;
6822
+ let w = [];
6823
+ Object.keys(d).map((f) => {
6824
+ w = w.concat(d[f]);
6825
+ }), p.forEach((f) => f.fixed = "left"), w.forEach((f) => f.visible = !1);
6826
+ const D = C.concat(p, x, w, v);
6827
+ D.forEach((f, O) => f.sort = O), localStorage.setItem(`${l.tableName}_Column`, JSON.stringify(D)), a.loading = !1, t("close"), t("init-column");
6819
6828
  });
6820
- }, C = () => {
6829
+ }, T = () => {
6821
6830
  a.loading = !0, localStorage.removeItem(`${l.tableName}_Column`), window.$pm(() => {
6822
6831
  a.loading = !1, t("close"), t("init-column");
6823
6832
  }, 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(() => [
6833
+ }, y = k(() => {
6834
+ var p;
6835
+ return ((p = globalThis.$config.options) == null ? void 0 : p.drawerHeight) || 540;
6836
+ }), z = k(() => (y.value * 0.3).toFixed(0)), V = k(() => (y.value * 0.7 - 10).toFixed(0)), m = k(() => [
6828
6837
  {
6829
6838
  label: "Base Info",
6830
6839
  value: "normal"
@@ -6840,50 +6849,50 @@ const Ct = ol({
6840
6849
  hide: !a.columnType.mmp
6841
6850
  }
6842
6851
  ]);
6843
- return (d, O) => {
6844
- const i = V("el-scrollbar"), k = V("DrawerArea");
6845
- return T(), q(k, {
6852
+ return (p, x) => {
6853
+ const d = I("el-scrollbar"), C = I("DrawerArea");
6854
+ return S(), q(C, {
6846
6855
  loading: n(a).loading,
6847
6856
  noscroll: "",
6848
6857
  "cancel-txt": "Reset",
6849
6858
  "cancel-icon": "im-sync",
6850
6859
  class: "MvcTableColumnConfig",
6851
- onCancel: C,
6860
+ onCancel: T,
6852
6861
  onSubmit: g
6853
6862
  }, {
6854
- default: P(() => [
6863
+ default: L(() => [
6855
6864
  u("div", _n, [
6856
6865
  u("div", yn, [
6857
- u("div", wn, j(d.$l("Column Type")), 1),
6866
+ u("div", wn, E(p.$l("Column Type")), 1),
6858
6867
  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))
6868
+ (S(!0), $(ee, null, oe(n(m), (v) => (S(), $("div", {
6869
+ key: v.value,
6870
+ class: B(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type === v.value && "active", v.hide && "hide"]]),
6871
+ onClick: (w) => c(v.value)
6872
+ }, E(v.label), 11, Tn))), 128))
6864
6873
  ])
6865
6874
  ]),
6866
6875
  u("div", An, [
6867
6876
  u("div", Cn, [
6868
6877
  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)
6878
+ u("span", null, E(p.$l("Columns")), 1),
6879
+ u("span", xn, E(n(a).columns[n(a).type].length), 1)
6871
6880
  ]),
6872
- N(i, { style: { height: "calc(100% - 36px)" } }, {
6873
- default: P(() => [
6881
+ N(d, { style: { height: "calc(100% - 36px)" } }, {
6882
+ default: L(() => [
6874
6883
  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,
6884
+ n(a).columns[n(a).type].length === 0 ? (S(), $("span", Mn, E(p.$l("No Columns")), 1)) : U("", !0),
6885
+ (S(!0), $(ee, null, oe(n(a).columns[n(a).type], (v, w) => (S(), $("div", {
6886
+ key: v.prop,
6878
6887
  class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
6879
6888
  }, [
6880
- u("span", null, j(d.$l(h.label)), 1),
6889
+ u("span", null, E(p.$l(v.label)), 1),
6881
6890
  u("div", $n, [
6882
6891
  u("div", {
6883
6892
  class: "tipbtn left",
6884
- txt: d.$l("Visible"),
6885
- onClick: (z) => _(h, S)
6886
- }, [...O[0] || (O[0] = [
6893
+ txt: p.$l("Visible"),
6894
+ onClick: (D) => _(v, w)
6895
+ }, [...x[0] || (x[0] = [
6887
6896
  u("i", { class: "imicon im-plus fs16" }, null, -1)
6888
6897
  ])], 8, zn)
6889
6898
  ])
@@ -6895,32 +6904,32 @@ const Ct = ol({
6895
6904
  ]),
6896
6905
  u("div", En, [
6897
6906
  u("div", Ln, [
6898
- u("span", null, j(d.$l("Visible Columns")), 1),
6899
- u("span", jn, j(n(a).visible.length), 1)
6907
+ u("span", null, E(p.$l("Visible Columns")), 1),
6908
+ u("span", jn, E(n(a).visible.length), 1)
6900
6909
  ]),
6901
6910
  u("div", Pn, [
6902
6911
  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(() => [
6912
+ n(a).fixed.length === 0 ? (S(), $("span", Rn, E(p.$l("No Fixed Columns")), 1)) : U("", !0),
6913
+ N(d, { height: n(z) }, {
6914
+ default: L(() => [
6906
6915
  N(n(Ue), {
6907
6916
  list: n(a).fixed,
6908
- "item-key": (h) => h,
6917
+ "item-key": (v) => v,
6909
6918
  handle: ".im-handle",
6910
6919
  "ghost-class": "ghost"
6911
6920
  }, {
6912
- item: P(({ element: h, index: S }) => [
6921
+ item: L(({ element: v, index: w }) => [
6913
6922
  u("div", Dn, [
6914
6923
  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)
6924
+ x[1] || (x[1] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6925
+ u("span", null, E(p.$l(v.label)), 1)
6917
6926
  ]),
6918
6927
  u("div", Vn, [
6919
6928
  u("div", {
6920
6929
  class: "tipbtn red left",
6921
- txt: d.$l("Unfixed"),
6922
- onClick: (z) => p(h, S)
6923
- }, [...O[2] || (O[2] = [
6930
+ txt: p.$l("Unfixed"),
6931
+ onClick: (D) => b(v, w)
6932
+ }, [...x[2] || (x[2] = [
6924
6933
  u("i", { class: "imicon im-download1 fs14" }, null, -1)
6925
6934
  ])], 8, Bn)
6926
6935
  ])
@@ -6932,39 +6941,39 @@ const Ct = ol({
6932
6941
  _: 1
6933
6942
  }, 8, ["height"])
6934
6943
  ]),
6935
- O[6] || (O[6] = u("div", { class: "p4-0" }, [
6944
+ x[6] || (x[6] = u("div", { class: "p4-0" }, [
6936
6945
  u("div", { class: "border-t" })
6937
6946
  ], -1)),
6938
6947
  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(() => [
6948
+ n(a).visible.length === 0 ? (S(), $("span", Un, E(p.$l("No Columns")), 1)) : U("", !0),
6949
+ N(d, { height: n(V) }, {
6950
+ default: L(() => [
6942
6951
  N(n(Ue), {
6943
6952
  list: n(a).visible,
6944
- "item-key": (h) => h,
6953
+ "item-key": (v) => v,
6945
6954
  options: { lockAxis: "y" },
6946
6955
  handle: ".im-handle",
6947
6956
  "ghost-class": "ghost"
6948
6957
  }, {
6949
- item: P(({ element: h, index: S }) => [
6958
+ item: L(({ element: v, index: w }) => [
6950
6959
  u("div", Gn, [
6951
6960
  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)
6961
+ x[3] || (x[3] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
6962
+ u("span", null, E(p.$l(v.label)), 1)
6954
6963
  ]),
6955
6964
  u("div", Hn, [
6956
6965
  u("div", {
6957
6966
  class: "tipbtn left",
6958
- txt: d.$l("Fixed"),
6959
- onClick: (z) => A(h, S)
6960
- }, [...O[4] || (O[4] = [
6967
+ txt: p.$l("Fixed"),
6968
+ onClick: (D) => A(v, w)
6969
+ }, [...x[4] || (x[4] = [
6961
6970
  u("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
6962
6971
  ])], 8, Jn),
6963
6972
  u("div", {
6964
6973
  class: "tipbtn red left",
6965
- txt: d.$l("Hide"),
6966
- onClick: (z) => r(h, S)
6967
- }, [...O[5] || (O[5] = [
6974
+ txt: p.$l("Hide"),
6975
+ onClick: (D) => i(v, w)
6976
+ }, [...x[5] || (x[5] = [
6968
6977
  u("i", { class: "imicon im-close fs14" }, null, -1)
6969
6978
  ])], 8, Yn)
6970
6979
  ])
@@ -6985,7 +6994,7 @@ const Ct = ol({
6985
6994
  }, 8, ["loading"]);
6986
6995
  };
6987
6996
  }
6988
- }), Zn = /* @__PURE__ */ X(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
6997
+ }), Zn = /* @__PURE__ */ Q(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
6989
6998
  key: 0,
6990
6999
  class: "flexMode vc g8"
6991
7000
  }, 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 +7026,101 @@ const Ct = ol({
7017
7026
  onlySelection: !1,
7018
7027
  mounted: !1
7019
7028
  });
7020
- oe(() => {
7029
+ te(() => {
7021
7030
  s();
7022
7031
  });
7023
7032
  const t = o, s = () => {
7024
7033
  t("mounted"), c(), _();
7025
7034
  }, 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);
7035
+ const m = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), p = ["selection", "operation"];
7036
+ a.columns = m.filter((x) => !p.includes(x.type) && x.label);
7028
7037
  }, _ = () => {
7029
7038
  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;
7039
+ }, A = (m, p) => {
7040
+ m ? p.children.forEach((x) => {
7041
+ x.visible = !0;
7042
+ }) : p.children.forEach((x) => {
7043
+ x.visible = !1;
7035
7044
  });
7036
- }, p = () => {
7045
+ }, b = () => {
7037
7046
  window.$copy(g());
7038
- }, r = async () => {
7047
+ }, i = async () => {
7039
7048
  a.loading = !0;
7040
7049
  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 });
7050
+ const m = g("download");
7051
+ let p = a.fileName || T.value;
7052
+ p && !p.toLowerCase().endsWith(".csv") && (p = `${p}.csv`), await Vl({ content: m, filename: p, bom: !0 });
7044
7053
  } finally {
7045
7054
  a.loading = !1;
7046
7055
  }
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;
7056
+ }, g = (m) => {
7057
+ const p = a.onlySelection ? l.selection : l.list, x = {}, d = [];
7058
+ a.columns.filter((O) => O.visible).forEach((O) => {
7059
+ d.push(window.$l(O.label)), x[O.prop] = !0;
7051
7060
  });
7052
- let k = "", h = [], S = v === "download" ? "," : " ";
7053
- (a.useHead || v) && (k = i.join(S) + `
7061
+ let C = "", v = [], w = m === "download" ? "," : " ";
7062
+ (a.useHead || m) && (C = d.join(w) + `
7054
7063
  `);
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;
7064
+ let D = [], f;
7065
+ return Object.keys(x).forEach((O, M) => {
7066
+ O.includes("country") && (f = M);
7067
+ const j = [];
7068
+ p.forEach((F) => {
7069
+ F[O] !== void 0 && j.push(F[O]);
7070
+ }), D.push(j);
7071
+ }), D.forEach((O, M) => {
7072
+ !a.useCountryCode && f === M ? O.forEach((j, F) => {
7073
+ let H = j;
7074
+ window.$getType(j) === "Array" ? H = j.map((ie) => V[ie.toUpperCase()].label.$l()).join(",") : window.$getType(j) === "String" ? H = j.split(",").map((ie) => V[ie.toUpperCase()].label.$l()).join(",") : H = JSON.stringify(j), v[F] ? v[F] += H + w : v[F] = H + w;
7075
+ }) : O.forEach((j, F) => {
7076
+ v[F] ? v[F] += j + w : v[F] = j + w;
7068
7077
  });
7069
- }), `${k}${h.join(`
7078
+ }), `${C}${v.join(`
7070
7079
  `)}`;
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,
7080
+ }, T = k(() => {
7081
+ const m = window.$d().format("YYYYMMDDHHmmss");
7082
+ return `${l.tableName}_${m}`;
7083
+ }), y = k(() => {
7084
+ const m = {};
7085
+ return a.columns.forEach((p) => {
7086
+ const x = p.type ? p.type : "normal", d = {
7087
+ label: z[x],
7088
+ type: x,
7080
7089
  visible: 0
7081
7090
  };
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 = {
7091
+ m[x] ? (m[x].children.push(p), p.visible && m[x].visible++) : (d.children = [p], p.visible && d.visible++, m[x] = d);
7092
+ }), Object.keys(m).forEach((p) => {
7093
+ const x = m[p].visible === m[p].children.length, d = m[p].visible === 0;
7094
+ 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);
7095
+ }), m;
7096
+ }), z = {
7088
7097
  asa: "Asa Metrics",
7089
7098
  normal: "Base Info",
7090
7099
  mmp: "MMP Metrics"
7091
7100
  };
7092
7101
  "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, {
7102
+ const V = De("asa.countryAll.obj");
7103
+ return (m, p) => {
7104
+ const x = I("el-checkbox"), d = I("el-button"), C = I("MvcAlert"), v = I("el-switch"), w = I("Input"), D = I("DrawerArea");
7105
+ return S(), q(D, le(m.$attrs, { class: "MvcTableColumnDownload" }), {
7106
+ cancel: L(() => [
7107
+ N(w, {
7099
7108
  modelValue: n(a).fileName,
7100
- "onUpdate:modelValue": d[3] || (d[3] = (w) => n(a).fileName = w),
7109
+ "onUpdate:modelValue": p[3] || (p[3] = (f) => n(a).fileName = f),
7101
7110
  icon: "catalog",
7102
- placeholder: n(C),
7111
+ placeholder: n(T),
7103
7112
  class: "w600"
7104
7113
  }, {
7105
- append: P(() => [
7106
- N(i, {
7114
+ append: L(() => [
7115
+ N(d, {
7107
7116
  loading: n(a).loading,
7108
- onClick: r
7117
+ onClick: i
7109
7118
  }, {
7110
- icon: P(() => [...d[5] || (d[5] = [
7119
+ icon: L(() => [...p[5] || (p[5] = [
7111
7120
  u("i", { class: "imicon im-download1" }, null, -1)
7112
7121
  ])]),
7113
- default: P(() => [
7114
- te(" " + j(v.$l("Download")), 1)
7122
+ default: L(() => [
7123
+ ae(" " + E(m.$l("Download")), 1)
7115
7124
  ]),
7116
7125
  _: 1
7117
7126
  }, 8, ["loading"])
@@ -7119,38 +7128,38 @@ const Ct = ol({
7119
7128
  _: 1
7120
7129
  }, 8, ["modelValue", "placeholder"])
7121
7130
  ]),
7122
- submit: P(() => [...d[6] || (d[6] = [])]),
7123
- default: P(() => [
7131
+ submit: L(() => [...p[6] || (p[6] = [])]),
7132
+ default: L(() => [
7124
7133
  u("div", qn, [
7125
- N(k, null, {
7126
- default: P(() => [
7134
+ N(C, null, {
7135
+ default: L(() => [
7127
7136
  u("div", Xn, [
7128
- u("span", null, j(v.$l("Total")), 1),
7129
- u("span", null, j(l.list.length), 1)
7137
+ u("span", null, E(m.$l("Total")), 1),
7138
+ u("span", null, E(l.list.length), 1)
7130
7139
  ]),
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, {
7140
+ l.selection.length ? (S(), $("div", Qn, [
7141
+ u("span", null, E(m.$l("Selection")), 1),
7142
+ u("span", null, E(l.selection.length), 1),
7143
+ N(x, {
7135
7144
  modelValue: n(a).onlySelection,
7136
- "onUpdate:modelValue": d[0] || (d[0] = (w) => n(a).onlySelection = w),
7137
- label: v.$l("Only Selection")
7145
+ "onUpdate:modelValue": p[0] || (p[0] = (f) => n(a).onlySelection = f),
7146
+ label: m.$l("Only Selection")
7138
7147
  }, null, 8, ["modelValue", "label"])
7139
7148
  ])) : U("", !0),
7140
7149
  u("div", es, [
7141
- N(i, { onClick: p }, {
7142
- icon: P(() => [...d[4] || (d[4] = [
7150
+ N(d, { onClick: b }, {
7151
+ icon: L(() => [...p[4] || (p[4] = [
7143
7152
  u("i", { class: "imicon im-copy" }, null, -1)
7144
7153
  ])]),
7145
- default: P(() => [
7146
- te(" " + j(v.$l("Copy to Clipboard")), 1)
7154
+ default: L(() => [
7155
+ ae(" " + E(m.$l("Copy to Clipboard")), 1)
7147
7156
  ]),
7148
7157
  _: 1
7149
7158
  }),
7150
- N(O, {
7159
+ N(x, {
7151
7160
  modelValue: n(a).useHead,
7152
- "onUpdate:modelValue": d[1] || (d[1] = (w) => n(a).useHead = w),
7153
- label: v.$l("With Table Head")
7161
+ "onUpdate:modelValue": p[1] || (p[1] = (f) => n(a).useHead = f),
7162
+ label: m.$l("With Table Head")
7154
7163
  }, null, 8, ["modelValue", "label"])
7155
7164
  ])
7156
7165
  ]),
@@ -7158,36 +7167,36 @@ const Ct = ol({
7158
7167
  })
7159
7168
  ]),
7160
7169
  u("div", ls, [
7161
- (T(!0), M(Q, null, ne(n(y), (w) => (T(), M("div", {
7162
- key: w.type
7170
+ (S(!0), $(ee, null, oe(n(y), (f) => (S(), $("div", {
7171
+ key: f.type
7163
7172
  }, [
7164
7173
  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)
7174
+ u("span", ts, E(f.label), 1),
7175
+ N(x, {
7176
+ modelValue: f.checkstatus,
7177
+ "onUpdate:modelValue": (O) => f.checkstatus = O,
7178
+ indeterminate: f.indeterminate,
7179
+ label: m.$l("Check"),
7180
+ onChange: (O) => A(O, f)
7172
7181
  }, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
7173
7182
  ]),
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,
7183
+ (S(!0), $(ee, null, oe(f.children, (O, M) => (S(), q(x, {
7184
+ modelValue: O.visible,
7185
+ "onUpdate:modelValue": (j) => O.visible = j,
7186
+ key: M,
7187
+ label: O.label,
7188
+ value: O.value,
7180
7189
  class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
7181
7190
  }, {
7182
- default: P(() => {
7183
- var I;
7191
+ default: L(() => {
7192
+ var j;
7184
7193
  return [
7185
7194
  u("div", os, [
7186
- u("span", null, j(m.label), 1),
7187
- (I = m.prop) != null && I.includes("country") ? (T(), q(h, {
7195
+ u("span", null, E(O.label), 1),
7196
+ (j = O.prop) != null && j.includes("country") ? (S(), q(v, {
7188
7197
  key: 0,
7189
7198
  modelValue: n(a).useCountryCode,
7190
- "onUpdate:modelValue": d[2] || (d[2] = (G) => n(a).useCountryCode = G),
7199
+ "onUpdate:modelValue": p[2] || (p[2] = (F) => n(a).useCountryCode = F),
7191
7200
  "inline-prompt": "",
7192
7201
  "active-text": "Use Alpha-2 Code",
7193
7202
  "inactive-text": "Use Country Name",
@@ -7323,178 +7332,178 @@ const Ct = ol({
7323
7332
  cpt: we(ns)
7324
7333
  }
7325
7334
  ]
7326
- }), _ = Z(null), { proxy: A } = ce();
7335
+ }), _ = Z(null), { proxy: A } = ue();
7327
7336
  Rl(() => {
7328
- r();
7329
- }), oe(() => {
7337
+ i();
7338
+ }), te(() => {
7330
7339
  g();
7331
7340
  });
7332
- const p = l, r = () => {
7341
+ const b = l, i = () => {
7333
7342
  t.loading = a.defaultLoading, a.pageSize && (s.pageSize = a.pageSize);
7334
7343
  }, 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)
7344
+ f(), a.defer === !1 && y();
7345
+ }, T = (r) => {
7346
+ y(r);
7347
+ }, y = async (r = {}) => {
7348
+ var K, Y;
7349
+ if (r.refresh && t.loading)
7341
7350
  return;
7342
7351
  t.loading = !0;
7343
- const L = {
7344
- pageSize: f.pageSize || s.pageSize,
7345
- pageStart: f.pageStart || s.page
7352
+ const h = {
7353
+ pageSize: r.pageSize || s.pageSize,
7354
+ pageStart: r.pageStart || s.page
7346
7355
  };
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) => {
7356
+ r.refresh && (h.remote = !0);
7357
+ const { list: R = [], total: P, summary: G } = await a.loadData(h) || {};
7358
+ 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;
7359
+ }, z = (r) => {
7360
+ r ? s.summary = r : s.summary = !1;
7361
+ }, V = (r) => {
7353
7362
  if (s.summaryType === "locale")
7354
7363
  return [];
7355
7364
  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);
7365
+ const h = (P, G) => {
7366
+ if (P != null)
7367
+ return typeof P == "function" ? P(G) : P[G];
7368
+ }, R = (P) => {
7369
+ var K, Y;
7370
+ const G = h(a.summaryMetric, P);
7371
+ return G !== void 0 ? G : h((Y = (K = globalThis.$config) == null ? void 0 : K.table) == null ? void 0 : Y.summaryMetric, P);
7363
7372
  };
7364
- return Bl(f, s.summary, { resolveMetric: R });
7373
+ return Bl(r, s.summary, { resolveMetric: R });
7365
7374
  }
7366
7375
  return [];
7367
- }, v = () => {
7376
+ }, m = () => {
7368
7377
  _.value.$refs.scrollBarRef.setScrollTop(0);
7369
- }, d = () => {
7378
+ }, p = () => {
7370
7379
  y({
7371
7380
  pageStart: 1
7372
7381
  });
7373
- }, O = () => {
7382
+ }, x = () => {
7374
7383
  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);
7384
+ }, d = (r) => {
7385
+ if (t.selection = r, b("selection-change", r), t.shiftKey) {
7386
+ 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;
7387
+ let K = P, Y = G;
7388
+ P > G && (K = G, Y = P);
7389
+ for (let X = K; X <= Y; X++)
7390
+ A.$refs.body.toggleRowSelection(s.list[X], !0);
7382
7391
  }
7383
- }, k = () => {
7384
- t.loading || (y({ refresh: !0 }), p("refresh"));
7385
- }, h = () => {
7392
+ }, C = () => {
7393
+ t.loading || (y({ refresh: !0 }), b("refresh"));
7394
+ }, v = () => {
7386
7395
  c.current = 0;
7387
- }, S = () => {
7396
+ }, w = () => {
7388
7397
  c.current = 1;
7389
- }, z = () => {
7398
+ }, D = () => {
7390
7399
  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(() => {
7400
+ }, f = () => {
7401
+ document.addEventListener("keydown", O), document.addEventListener("keyup", M);
7402
+ }, O = (r) => {
7403
+ r.keyCode === 16 && (t.shiftKey = !0);
7404
+ }, M = (r) => {
7405
+ r.keyCode === 16 && (t.shiftKey = !1);
7406
+ }, j = () => {
7407
+ document.removeEventListener("keydown", O), document.removeEventListener("keyup", M);
7408
+ }, F = ({ i: r, row: h }) => {
7409
+ s.list[r] = h;
7410
+ }, H = k(() => {
7411
+ var h;
7412
+ let r = a.height || ((h = globalThis.$config.options) == null ? void 0 : h.pageHeight) || 640;
7413
+ return a.noheader === !1 && (r -= 64), a.nofooter === !1 && (r -= 56), r -= a.minusHeight, r;
7414
+ }), ie = k(() => !!s.summary), fe = k(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), re = k(() => {
7406
7415
  if (a.tool) {
7407
- const { column: f = !0, download: L = !0, refresh: R = !0 } = a.tool;
7416
+ const { column: r = !0, download: h = !0, refresh: R = !0 } = a.tool;
7408
7417
  return {
7409
- column: f,
7410
- download: L,
7418
+ column: r,
7419
+ download: h,
7411
7420
  refresh: R
7412
7421
  };
7413
7422
  } else
7414
7423
  return !1;
7415
7424
  });
7416
- return de(() => {
7417
- I();
7425
+ return ce(() => {
7426
+ j();
7418
7427
  }), 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", {
7428
+ initTable: T,
7429
+ editRow: F
7430
+ }), (r, h) => {
7431
+ const R = I("el-button"), P = I("Loading"), G = I("el-table"), K = I("el-pagination"), Y = I("Drawer");
7432
+ return S(), $("div", ss, [
7433
+ a.noheader === !1 ? (S(), $("div", {
7425
7434
  key: 0,
7426
7435
  class: B(["flexMode hb g12 p16 bg-white", a.autoHeader ? "minh64" : "h64"])
7427
7436
  }, [
7428
7437
  u("div", {
7429
7438
  class: B(["flexMode vc flexGrow maxwp100", a.headerClass])
7430
7439
  }, [
7431
- H(f.$slots, "header", {}, void 0, !0)
7440
+ J(r.$slots, "header", {}, void 0, !0)
7432
7441
  ], 2),
7433
- n(b) ? (T(), M("div", rs, [
7434
- n(b).refresh ? (T(), q(R, {
7442
+ n(re) ? (S(), $("div", rs, [
7443
+ n(re).refresh ? (S(), q(R, {
7435
7444
  key: 0,
7436
- onClick: k
7445
+ onClick: C
7437
7446
  }, {
7438
- icon: P(() => [...L[2] || (L[2] = [
7447
+ icon: L(() => [...h[2] || (h[2] = [
7439
7448
  u("i", { class: "imicon im-reload" }, null, -1)
7440
7449
  ])]),
7441
- default: P(() => [
7442
- te(" " + j(f.$l("Refresh")), 1)
7450
+ default: L(() => [
7451
+ ae(" " + E(r.$l("Refresh")), 1)
7443
7452
  ]),
7444
7453
  _: 1
7445
7454
  })) : U("", !0),
7446
- n(b).column ? (T(), q(R, {
7455
+ n(re).column ? (S(), q(R, {
7447
7456
  key: 1,
7448
- onClick: h
7457
+ onClick: v
7449
7458
  }, {
7450
- icon: P(() => [...L[3] || (L[3] = [
7459
+ icon: L(() => [...h[3] || (h[3] = [
7451
7460
  u("i", { class: "imicon im-layout" }, null, -1)
7452
7461
  ])]),
7453
- default: P(() => [
7454
- te(" " + j(f.$l("Columns")), 1)
7462
+ default: L(() => [
7463
+ ae(" " + E(r.$l("Columns")), 1)
7455
7464
  ]),
7456
7465
  _: 1
7457
7466
  })) : U("", !0),
7458
- n(b).download ? (T(), q(R, {
7467
+ n(re).download ? (S(), q(R, {
7459
7468
  key: 2,
7460
- onClick: S
7469
+ onClick: w
7461
7470
  }, {
7462
- icon: P(() => [...L[4] || (L[4] = [
7471
+ icon: L(() => [...h[4] || (h[4] = [
7463
7472
  u("i", { class: "imicon im-download" }, null, -1)
7464
7473
  ])]),
7465
- default: P(() => [
7466
- te(" " + j(f.$l("Download")), 1)
7474
+ default: L(() => [
7475
+ ae(" " + E(r.$l("Download")), 1)
7467
7476
  ]),
7468
7477
  _: 1
7469
7478
  })) : U("", !0)
7470
7479
  ])) : U("", !0)
7471
7480
  ], 2)) : U("", !0),
7472
7481
  u("div", is, [
7473
- N(F, {
7482
+ N(P, {
7474
7483
  loading: n(t).loading
7475
7484
  }, null, 8, ["loading"]),
7476
- (T(), q(K, {
7485
+ (S(), q(G, {
7477
7486
  ref_key: "body",
7478
7487
  ref: _,
7479
7488
  key: n(t).tableKey,
7480
- height: n(Y),
7489
+ height: n(H),
7481
7490
  data: n(s).list,
7482
7491
  "default-expand-all": a.defaultExpandAll,
7483
7492
  "row-key": a.rowKey,
7484
7493
  stripe: "",
7485
7494
  border: "",
7486
7495
  "show-summary": n(ie),
7487
- "summary-method": D,
7496
+ "summary-method": V,
7488
7497
  class: "MainTable",
7489
- onSelectionChange: i
7498
+ onSelectionChange: d
7490
7499
  }, {
7491
- default: P(() => [
7492
- N(n(gn), ee({
7500
+ default: L(() => [
7501
+ N(n(gn), le({
7493
7502
  "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)
7503
+ column: n(re) ? n(re).column : !1
7504
+ }, r.$attrs), {
7505
+ default: L(() => [
7506
+ J(r.$slots, "default", {}, void 0, !0)
7498
7507
  ]),
7499
7508
  _: 3
7500
7509
  }, 16, ["table-name", "column"])
@@ -7502,10 +7511,10 @@ const Ct = ol({
7502
7511
  _: 3
7503
7512
  }, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
7504
7513
  ]),
7505
- a.nofooter === !1 ? (T(), M("div", us, [
7506
- N(J, {
7514
+ a.nofooter === !1 ? (S(), $("div", us, [
7515
+ N(K, {
7507
7516
  "current-page": n(s).page,
7508
- "onUpdate:currentPage": L[0] || (L[0] = (ae) => n(s).page = ae),
7517
+ "onUpdate:currentPage": h[0] || (h[0] = (X) => n(s).page = X),
7509
7518
  background: "",
7510
7519
  total: n(s).total,
7511
7520
  "default-page-size": n(s).pageSize,
@@ -7513,23 +7522,23 @@ const Ct = ol({
7513
7522
  "pager-count": 5,
7514
7523
  layout: n(fe),
7515
7524
  class: "wp100",
7516
- onSizeChange: d,
7517
- onCurrentChange: O
7525
+ onSizeChange: p,
7526
+ onCurrentChange: x
7518
7527
  }, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
7519
7528
  ])) : U("", !0),
7520
- N(le, {
7529
+ N(Y, {
7521
7530
  current: n(c).current,
7522
- "onUpdate:current": L[1] || (L[1] = (ae) => n(c).current = ae),
7531
+ "onUpdate:current": h[1] || (h[1] = (X) => n(c).current = X),
7523
7532
  "table-name": a.tableName,
7524
7533
  drawer: n(c).list,
7525
7534
  list: n(s).list,
7526
7535
  selection: n(t).selection,
7527
- onInitColumn: z
7536
+ onInitColumn: D
7528
7537
  }, null, 8, ["current", "table-name", "drawer", "list", "selection"])
7529
7538
  ]);
7530
7539
  };
7531
7540
  }
7532
- }), ds = /* @__PURE__ */ X(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7541
+ }), ds = /* @__PURE__ */ Q(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7533
7542
  __proto__: null,
7534
7543
  default: ds
7535
7544
  }, Symbol.toStringTag, { value: "Module" })), bs = { class: "minh480 pt16" }, fs = /* @__PURE__ */ Object.assign({
@@ -7579,24 +7588,24 @@ const Ct = ol({
7579
7588
  },
7580
7589
  emits: ["update:modelValue", "change"],
7581
7590
  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] ?? {};
7591
+ const l = e, a = o, t = be(), s = (i) => i == null ? i : ["Object", "Array"].includes(globalThis.$getType(i)) ? i[l.valueKey] : i, c = (i) => {
7592
+ a("update:modelValue", i);
7593
+ const g = l.options.find((T) => s(T) === i);
7594
+ a("change", i, g);
7595
+ }, _ = k(
7596
+ () => l.options.find((i) => s(i) === l.modelValue)
7597
+ ), A = k(() => {
7598
+ const i = _.value;
7599
+ if (!(!i || !["Object", "Array"].includes(globalThis.$getType(i))))
7600
+ return i[l.componentKey];
7601
+ }), b = k(() => {
7602
+ const i = _.value;
7603
+ return !i || !["Object", "Array"].includes(globalThis.$getType(i)) ? {} : i[l.panePropsKey] ?? {};
7595
7604
  });
7596
- return (r, g) => {
7597
- const C = V("BtnGroup");
7598
- return T(), M("div", ee({ class: "MvcTabs" }, n(t)), [
7599
- N(C, {
7605
+ return (i, g) => {
7606
+ const T = I("BtnGroup");
7607
+ return S(), $("div", le({ class: "MvcTabs" }, n(t)), [
7608
+ N(T, {
7600
7609
  "model-value": l.modelValue,
7601
7610
  options: l.options,
7602
7611
  "value-key": l.valueKey,
@@ -7607,7 +7616,7 @@ const Ct = ol({
7607
7616
  "onUpdate:modelValue": c
7608
7617
  }, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
7609
7618
  u("div", bs, [
7610
- n(A) ? (T(), q(tl(n(A)), Te(ee({ key: 0 }, n(p))), null, 16)) : U("", !0)
7619
+ n(A) ? (S(), q(tl(n(A)), Te(le({ key: 0 }, n(b))), null, 16)) : U("", !0)
7611
7620
  ])
7612
7621
  ], 16);
7613
7622
  };
@@ -7663,90 +7672,93 @@ const Ct = ol({
7663
7672
  "focus"
7664
7673
  ],
7665
7674
  setup(e, { emit: o }) {
7666
- const l = e, a = ue(), t = Z(null);
7675
+ const l = e, a = be(), t = Z(null);
7667
7676
  let s = null;
7668
7677
  const c = W({
7669
7678
  val: "",
7670
7679
  isComposing: !1,
7671
7680
  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));
7681
+ }), _ = o, { proxy: A } = ue(), b = k(() => {
7682
+ const { class: M, ...j } = a;
7683
+ return j;
7684
+ });
7685
+ te(() => {
7686
+ var j, F;
7687
+ const M = (j = t.value) == null ? void 0 : j.$el;
7688
+ 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
7689
  });
7678
- const p = () => {
7690
+ const i = () => {
7679
7691
  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(() => {
7692
+ }, g = () => {
7693
+ c.isComposing = !1, de(() => p(c.val));
7694
+ }, T = (M) => {
7695
+ c.isComposing || p(M);
7696
+ }, y = (M) => {
7697
+ c.focused = !0, _("focus", M);
7698
+ }, z = (M) => {
7699
+ c.focused = !1, _("blur", M);
7700
+ }, V = (M) => {
7701
+ const j = String(M ?? "").split(/\r?\n/);
7702
+ return l.output === "array" ? j : j.join(",");
7703
+ }, m = (M) => Array.isArray(M) ? M.join(`
7704
+ `) : String(M ?? "").replace(/,/g, `
7705
+ `), p = (M) => {
7706
+ const j = V(M);
7707
+ _("update:modelValue", j), _("input", j);
7708
+ }, x = k(() => {
7697
7709
  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(() => ({
7710
+ const M = typeof l.height == "number" ? `${l.height}px` : l.height;
7711
+ return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height: M, minHeight: M };
7712
+ }), 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(
7713
+ () => l.materialLabel && (c.focused || v.value || w.value)
7714
+ ), f = k(() => ({
7703
7715
  hasLabel: !!l.label,
7704
7716
  isMaterialLabel: !!(l.label && l.materialLabel),
7705
7717
  isTopLabel: !!(l.label && !l.materialLabel),
7706
- isFloat: S.value,
7718
+ isFloat: D.value,
7707
7719
  isFocused: c.focused,
7708
7720
  isDisabled: !!a.disabled,
7709
7721
  isTextarea: !0
7710
- })), w = x(
7722
+ })), O = k(
7711
7723
  () => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
7712
7724
  );
7713
- return se(
7725
+ return ne(
7714
7726
  () => l.modelValue,
7715
- (m) => {
7716
- const $ = D(m);
7717
- c.val !== $ && (c.val = $);
7727
+ (M) => {
7728
+ const j = m(M);
7729
+ c.val !== j && (c.val = j);
7718
7730
  },
7719
7731
  { 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))
7732
+ ), ce(() => {
7733
+ s && (s.removeEventListener("compositionstart", i), s.removeEventListener("compositionend", g), s = null);
7734
+ }), (M, j) => {
7735
+ const F = I("el-input");
7736
+ return S(), $("div", {
7737
+ class: B(["MvcField MvcFieldTextarea", n(f)]),
7738
+ style: se(n(O))
7727
7739
  }, [
7728
- l.label ? (T(), M("label", vs, j(l.label), 1)) : U("", !0),
7729
- N(I, ee({
7740
+ l.label ? (S(), $("label", vs, E(l.label), 1)) : U("", !0),
7741
+ N(F, le({
7730
7742
  ref_key: "inputRef",
7731
7743
  ref: t,
7732
7744
  type: "textarea",
7733
7745
  modelValue: n(c).val,
7734
- "onUpdate:modelValue": $[0] || ($[0] = (G) => n(c).val = G),
7746
+ "onUpdate:modelValue": j[0] || (j[0] = (H) => n(c).val = H),
7735
7747
  rows: l.rows,
7736
- style: m.$attrs.style,
7737
- "input-style": n(d),
7738
- "show-word-limit": n(O),
7739
- maxlength: n(i),
7748
+ style: n(b).style,
7749
+ "input-style": n(x),
7750
+ "show-word-limit": n(d),
7751
+ maxlength: n(C),
7740
7752
  class: "MvcTextarea"
7741
- }, m.$attrs, {
7742
- onInput: g,
7743
- onFocus: C,
7744
- onBlur: y
7753
+ }, n(b), {
7754
+ onInput: T,
7755
+ onFocus: y,
7756
+ onBlur: z
7745
7757
  }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"])
7746
7758
  ], 6);
7747
7759
  };
7748
7760
  }
7749
- }), gs = /* @__PURE__ */ X(hs, [["__scopeId", "data-v-d15ee96a"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7761
+ }), gs = /* @__PURE__ */ Q(hs, [["__scopeId", "data-v-0c6cb715"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7750
7762
  __proto__: null,
7751
7763
  default: gs
7752
7764
  }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
@@ -7798,7 +7810,7 @@ const As = (e, o = {}) => {
7798
7810
  }, Cs = {
7799
7811
  name: "Matt Avias Frame",
7800
7812
  copyright: "©2026",
7801
- version: "1.0.82",
7813
+ version: "1.0.86",
7802
7814
  author: "Matt Avias",
7803
7815
  date: "2026-02-26",
7804
7816
  /** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
@@ -7834,7 +7846,7 @@ const As = (e, o = {}) => {
7834
7846
  export {
7835
7847
  vt as D,
7836
7848
  Xl as M,
7837
- X as _,
7849
+ Q as _,
7838
7850
  Is as a,
7839
7851
  Za as b,
7840
7852
  Re as c,