@gonsin/gview 2.0.31 → 2.0.32

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.
@@ -1,7 +1,7 @@
1
1
  var zo = Object.defineProperty;
2
2
  var Ko = (e, n, t) => n in e ? zo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var It = (e, n, t) => (Ko(e, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { defineComponent as ee, ref as H, computed as E, resolveComponent as G, openBlock as p, createBlock as I, normalizeClass as O, unref as f, withCtx as C, createElementBlock as W, Fragment as Me, renderList as xe, createVNode as V, createTextVNode as ne, createCommentVNode as R, toDisplayString as we, nextTick as Ho, createElementVNode as J, normalizeStyle as qt, renderSlot as Ue, isRef as eo, Transition as Wo, onMounted as pt, mergeProps as et, createSlots as bt, normalizeProps as $t, guardReactiveProps as Rt, inject as Ge, useSlots as to, withModifiers as Kt, resolveDynamicComponent as qo, TransitionGroup as Qo, toRefs as Xo, watch as Te, provide as no, reactive as on, toRaw as Ht, onBeforeUnmount as mt, onBeforeMount as At, shallowRef as Yo, defineAsyncComponent as Zo } from "vue";
4
+ import { defineComponent as ee, ref as H, computed as E, resolveComponent as G, openBlock as p, createBlock as L, normalizeClass as O, unref as f, withCtx as C, createElementBlock as W, Fragment as Me, renderList as xe, createVNode as V, createTextVNode as ne, createCommentVNode as R, toDisplayString as we, nextTick as Ho, createElementVNode as J, normalizeStyle as qt, renderSlot as Ue, isRef as eo, Transition as Wo, onMounted as pt, mergeProps as et, createSlots as bt, normalizeProps as $t, guardReactiveProps as Rt, inject as Ge, useSlots as to, withModifiers as Kt, resolveDynamicComponent as qo, TransitionGroup as Qo, toRefs as Xo, watch as Te, provide as no, reactive as on, toRaw as Ht, onBeforeUnmount as mt, onBeforeMount as At, shallowRef as Yo, defineAsyncComponent as Zo } from "vue";
5
5
  import { useRouter as rt, useRoute as Ct } from "vue-router";
6
6
  import { defineStore as Qt } from "pinia";
7
7
  import { MessagePlugin as oe, Button as Jo, Loading as ea, Tooltip as ut, Link as ta, Tree as na, Card as oa, DialogPlugin as Gt } from "tdesign-vue-next";
@@ -582,21 +582,21 @@ const Qa = /* @__PURE__ */ ee({
582
582
  __name: "GLayoutHeaderTab",
583
583
  setup(e) {
584
584
  const n = `${ke("layoutHeaderTab")}`, t = rt(), o = Ct(), a = H(""), l = Et(), r = Pe(), i = E(() => l.tabMenuList), s = E(() => r.homeUrl);
585
- function u(M, T, g) {
586
- T.trigger === "document" && (a.value = null), M && (a.value = g);
585
+ function u(M, T, w) {
586
+ T.trigger === "document" && (a.value = null), M && (a.value = w);
587
587
  }
588
588
  function c(M) {
589
589
  M === "/home" ? t.push({ path: s.value, query: vn(s.value) }) : t.push({ path: M, query: vn(M) });
590
590
  }
591
591
  function d({ value: M, index: T }) {
592
- const { tabMenuList: g } = l;
593
- if (g.length > 2) {
594
- const w = g[T + 1] || g[T - 1];
592
+ const { tabMenuList: w } = l;
593
+ if (w.length > 2) {
594
+ const y = w[T + 1] || w[T - 1];
595
595
  l.subtractCurrentTabMenuItem({ path: M, itemIdx: T });
596
- const v = decodeURIComponent(o.fullPath);
597
- M === v && t.push({
598
- path: w.path,
599
- query: w.query
596
+ const g = decodeURIComponent(o.fullPath);
597
+ M === g && t.push({
598
+ path: y.path,
599
+ query: y.query
600
600
  });
601
601
  }
602
602
  }
@@ -609,18 +609,18 @@ const Qa = /* @__PURE__ */ ee({
609
609
  }), r.toggleGlobalReload(), a.value = null;
610
610
  }
611
611
  function b(M, T) {
612
- l.subtractTabMenuItemAhead({ path: M, itemIdx: T }), P("ahead", T);
612
+ l.subtractTabMenuItemAhead({ path: M, itemIdx: T }), B("ahead", T);
613
613
  }
614
- function x(M, T) {
615
- l.subtractTabMenuItemBehind({ path: M, itemIdx: T }), P("behind", T);
614
+ function S(M, T) {
615
+ l.subtractTabMenuItemBehind({ path: M, itemIdx: T }), B("behind", T);
616
616
  }
617
617
  function N(M, T) {
618
- i.value.length > 2 && (l.subtractTabMenuItemOther({ path: M, itemIdx: T }), P("other", T));
618
+ i.value.length > 2 && (l.subtractTabMenuItemOther({ path: M, itemIdx: T }), B("other", T));
619
619
  }
620
- function P(M, T) {
621
- const g = o.fullPath, { tabMenuList: w } = l, v = w.findIndex((L) => L.path === g);
622
- if (M === "other" && v !== T || M === "ahead" && v < T || M === "behind" && v === -1) {
623
- const L = M === "behind" ? w.length - 1 : 1, _ = w[L];
620
+ function B(M, T) {
621
+ const w = o.fullPath, { tabMenuList: y } = l, g = y.findIndex((k) => k.path === w);
622
+ if (M === "other" && g !== T || M === "ahead" && g < T || M === "behind" && g === -1) {
623
+ const k = M === "behind" ? y.length - 1 : 1, _ = y[k];
624
624
  t.push({
625
625
  path: _.path,
626
626
  query: _.query
@@ -630,8 +630,8 @@ const Qa = /* @__PURE__ */ ee({
630
630
  }
631
631
  const h = E(() => decodeURIComponent(o.fullPath));
632
632
  return (M, T) => {
633
- const g = G("t-dropdown-item"), w = G("t-dropdown-menu"), v = G("t-dropdown"), y = G("t-tab-panel"), L = G("t-tabs");
634
- return p(), I(L, {
633
+ const w = G("t-dropdown-item"), y = G("t-dropdown-menu"), g = G("t-dropdown"), v = G("t-tab-panel"), k = G("t-tabs");
634
+ return p(), L(k, {
635
635
  class: O(`${n}`),
636
636
  size: "large",
637
637
  value: f(h),
@@ -639,23 +639,23 @@ const Qa = /* @__PURE__ */ ee({
639
639
  onRemove: d
640
640
  }, {
641
641
  default: C(() => [
642
- (p(!0), W(Me, null, xe(f(i), (_, B) => (p(), I(y, {
642
+ (p(!0), W(Me, null, xe(f(i), (_, P) => (p(), L(v, {
643
643
  key: _.path,
644
644
  value: _.path,
645
645
  removable: !_.isHome
646
646
  }, {
647
647
  label: C(() => [
648
- V(v, {
648
+ V(g, {
649
649
  trigger: "context-menu",
650
650
  "popup-props": {
651
- onVisibleChange: (k, X) => u(k, X, _.path),
651
+ onVisibleChange: (I, X) => u(I, X, _.path),
652
652
  visible: a.value != "" ? a.value === _.path : !1
653
653
  }
654
654
  }, {
655
655
  dropdown: C(() => [
656
- V(w, null, {
656
+ V(y, null, {
657
657
  default: C(() => [
658
- _.isHome ? (p(), I(g, {
658
+ _.isHome ? (p(), L(w, {
659
659
  key: 0,
660
660
  onClick: () => c(_.path)
661
661
  }, {
@@ -665,7 +665,7 @@ const Qa = /* @__PURE__ */ ee({
665
665
  ]),
666
666
  _: 2
667
667
  }, 1032, ["onClick"])) : R("", !0),
668
- _.isHome ? R("", !0) : (p(), I(g, {
668
+ _.isHome ? R("", !0) : (p(), L(w, {
669
669
  key: 1,
670
670
  onClick: () => m(_)
671
671
  }, {
@@ -675,9 +675,9 @@ const Qa = /* @__PURE__ */ ee({
675
675
  ]),
676
676
  _: 2
677
677
  }, 1032, ["onClick"])),
678
- B > 1 ? (p(), I(g, {
678
+ P > 1 ? (p(), L(w, {
679
679
  key: 2,
680
- onClick: () => b(_.path, B)
680
+ onClick: () => b(_.path, P)
681
681
  }, {
682
682
  default: C(() => [
683
683
  V(f(la)),
@@ -685,9 +685,9 @@ const Qa = /* @__PURE__ */ ee({
685
685
  ]),
686
686
  _: 2
687
687
  }, 1032, ["onClick"])) : R("", !0),
688
- B > 0 && B < f(i).length - 1 ? (p(), I(g, {
688
+ P > 0 && P < f(i).length - 1 ? (p(), L(w, {
689
689
  key: 3,
690
- onClick: () => x(_.path, B)
690
+ onClick: () => S(_.path, P)
691
691
  }, {
692
692
  default: C(() => [
693
693
  V(f(ra)),
@@ -695,9 +695,9 @@ const Qa = /* @__PURE__ */ ee({
695
695
  ]),
696
696
  _: 2
697
697
  }, 1032, ["onClick"])) : R("", !0),
698
- B > 0 && f(i).length > 2 ? (p(), I(g, {
698
+ P > 0 && f(i).length > 2 ? (p(), L(w, {
699
699
  key: 4,
700
- onClick: () => N(_.path, B)
700
+ onClick: () => N(_.path, P)
701
701
  }, {
702
702
  default: C(() => [
703
703
  V(f(ia)),
@@ -737,12 +737,12 @@ const Xa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
737
737
  o.userLogout(), t.push({ name: "login" });
738
738
  }
739
739
  return (u, c) => {
740
- const d = G("t-button"), m = G("t-dropdown-item"), b = G("t-dropdown-menu"), x = G("t-dropdown"), N = G("t-tooltip"), P = G("t-head-menu"), h = G("t-header");
741
- return p(), I(h, {
740
+ const d = G("t-button"), m = G("t-dropdown-item"), b = G("t-dropdown-menu"), S = G("t-dropdown"), N = G("t-tooltip"), B = G("t-head-menu"), h = G("t-header");
741
+ return p(), L(h, {
742
742
  class: O(n)
743
743
  }, {
744
744
  default: C(() => [
745
- V(P, { theme: f(l) }, {
745
+ V(B, { theme: f(l) }, {
746
746
  logo: C(() => [
747
747
  J("div", {
748
748
  class: O(`${n}--logo`)
@@ -772,7 +772,7 @@ const Xa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
772
772
  J("div", {
773
773
  class: O(`${n}--operations`)
774
774
  }, [
775
- V(x, {
775
+ V(S, {
776
776
  trigger: "click",
777
777
  placement: "bottom-right",
778
778
  class: O(`${n}--operations-userInfo`)
@@ -849,7 +849,7 @@ const Ja = /* @__PURE__ */ ee({
849
849
  const n = `${ke("layoutContent")}`;
850
850
  return (t, o) => {
851
851
  const a = G("t-content"), l = G("t-layout");
852
- return p(), I(l, {
852
+ return p(), L(l, {
853
853
  class: O(`${n}`)
854
854
  }, {
855
855
  default: C(() => [
@@ -975,7 +975,7 @@ const rl = /* @__PURE__ */ ee({
975
975
  class: O(`${n}`),
976
976
  key: m
977
977
  }, [
978
- !d.children || !d.children.length ? (p(), I(s, {
978
+ !d.children || !d.children.length ? (p(), L(s, {
979
979
  key: 0,
980
980
  class: O(`${n}--level${d.level}`),
981
981
  name: d.path,
@@ -984,11 +984,11 @@ const rl = /* @__PURE__ */ ee({
984
984
  }, {
985
985
  icon: C(() => [
986
986
  d.level == 1 ? (p(), W(Me, { key: 0 }, [
987
- d.icon ? (p(), I(i, {
987
+ d.icon ? (p(), L(i, {
988
988
  key: 0,
989
989
  name: d.icon,
990
990
  size: "large"
991
- }, null, 8, ["name"])) : (p(), I(f(pn), {
991
+ }, null, 8, ["name"])) : (p(), L(f(pn), {
992
992
  key: 1,
993
993
  size: "large"
994
994
  }))
@@ -998,7 +998,7 @@ const rl = /* @__PURE__ */ ee({
998
998
  ne(" " + we(d.title), 1)
999
999
  ]),
1000
1000
  _: 2
1001
- }, 1032, ["class", "name", "value", "onClick"])) : (p(), I(c, {
1001
+ }, 1032, ["class", "name", "value", "onClick"])) : (p(), L(c, {
1002
1002
  key: 1,
1003
1003
  class: O(`${n}--level${d.level}`),
1004
1004
  name: d.name,
@@ -1007,18 +1007,18 @@ const rl = /* @__PURE__ */ ee({
1007
1007
  }, {
1008
1008
  icon: C(() => [
1009
1009
  d.level == 1 ? (p(), W(Me, { key: 0 }, [
1010
- d.icon ? (p(), I(i, {
1010
+ d.icon ? (p(), L(i, {
1011
1011
  key: 0,
1012
1012
  name: d.icon,
1013
1013
  size: "large"
1014
- }, null, 8, ["name"])) : (p(), I(f(pn), {
1014
+ }, null, 8, ["name"])) : (p(), L(f(pn), {
1015
1015
  key: 1,
1016
1016
  size: "large"
1017
1017
  }))
1018
1018
  ], 64)) : R("", !0)
1019
1019
  ]),
1020
1020
  default: C(() => [
1021
- d.children ? (p(), I(u, {
1021
+ d.children ? (p(), L(u, {
1022
1022
  key: 0,
1023
1023
  sideMenuTree: d.children
1024
1024
  }, null, 8, ["sideMenuTree"])) : R("", !0)
@@ -1057,7 +1057,7 @@ const je = (e, n) => {
1057
1057
  }), []));
1058
1058
  return (u, c) => {
1059
1059
  const d = G("t-menu"), m = G("t-drawer");
1060
- return p(), I(m, {
1060
+ return p(), L(m, {
1061
1061
  class: O(`${n}`),
1062
1062
  size: "232px",
1063
1063
  placement: "left",
@@ -1117,10 +1117,10 @@ const ul = /* @__PURE__ */ ee({
1117
1117
  });
1118
1118
  return (u, c) => {
1119
1119
  const d = G("t-radio-button"), m = G("t-radio-group"), b = G("t-drawer");
1120
- return p(), I(b, {
1120
+ return p(), L(b, {
1121
1121
  class: O(`${f(n)}`),
1122
1122
  visible: f(r),
1123
- "onUpdate:visible": c[2] || (c[2] = (x) => eo(r) ? r.value = x : null),
1123
+ "onUpdate:visible": c[2] || (c[2] = (S) => eo(r) ? r.value = S : null),
1124
1124
  footer: !1
1125
1125
  }, {
1126
1126
  header: C(() => [
@@ -1136,19 +1136,19 @@ const ul = /* @__PURE__ */ ee({
1136
1136
  }, "主题色", 2),
1137
1137
  V(m, {
1138
1138
  modelValue: f(l).brandTheme,
1139
- "onUpdate:modelValue": c[0] || (c[0] = (x) => f(l).brandTheme = x),
1139
+ "onUpdate:modelValue": c[0] || (c[0] = (S) => f(l).brandTheme = S),
1140
1140
  onChange: i
1141
1141
  }, {
1142
1142
  default: C(() => [
1143
- (p(!0), W(Me, null, xe(o.slice(0, o.length - 1), (x, N) => (p(), W("div", { key: N }, [
1144
- (p(), I(d, {
1143
+ (p(!0), W(Me, null, xe(o.slice(0, o.length - 1), (S, N) => (p(), W("div", { key: N }, [
1144
+ (p(), L(d, {
1145
1145
  key: N,
1146
- value: x,
1146
+ value: S,
1147
1147
  class: O(`${f(n)}--container-color-group`)
1148
1148
  }, {
1149
1149
  default: C(() => [
1150
1150
  J("div", {
1151
- style: qt(s(x)),
1151
+ style: qt(s(S)),
1152
1152
  class: O(`${f(n)}--container-color-item`)
1153
1153
  }, null, 6)
1154
1154
  ]),
@@ -1163,18 +1163,18 @@ const ul = /* @__PURE__ */ ee({
1163
1163
  }, "主题模式", 2),
1164
1164
  V(m, {
1165
1165
  modelValue: f(l).displayMode,
1166
- "onUpdate:modelValue": c[1] || (c[1] = (x) => f(l).displayMode = x),
1166
+ "onUpdate:modelValue": c[1] || (c[1] = (S) => f(l).displayMode = S),
1167
1167
  variant: "default-filled",
1168
1168
  onChange: i
1169
1169
  }, {
1170
1170
  default: C(() => [
1171
- (p(), W(Me, null, xe(a, (x, N) => J("div", { key: N }, [
1172
- (p(), I(d, {
1171
+ (p(), W(Me, null, xe(a, (S, N) => J("div", { key: N }, [
1172
+ (p(), L(d, {
1173
1173
  key: N,
1174
- value: x.type
1174
+ value: S.type
1175
1175
  }, {
1176
1176
  default: C(() => [
1177
- ne(we(x.text), 1)
1177
+ ne(we(S.text), 1)
1178
1178
  ]),
1179
1179
  _: 2
1180
1180
  }, 1032, ["value"]))
@@ -1191,7 +1191,7 @@ const ul = /* @__PURE__ */ ee({
1191
1191
  });
1192
1192
  const cl = {};
1193
1193
  function dl(e, n) {
1194
- return p(), I(Wo, {
1194
+ return p(), L(Wo, {
1195
1195
  name: "scale",
1196
1196
  mode: "out-in",
1197
1197
  appear: ""
@@ -1223,7 +1223,7 @@ const ml = /* @__PURE__ */ je(cl, [["render", dl]]), fl = /* @__PURE__ */ ee({
1223
1223
  default: C(() => [
1224
1224
  V(ml, null, {
1225
1225
  default: C(() => [
1226
- (p(), I(l, {
1226
+ (p(), L(l, {
1227
1227
  key: `${e.title}-${Date.now()}`,
1228
1228
  class: O(`${t}`),
1229
1229
  bordered: !1,
@@ -1261,7 +1261,7 @@ const fo = /* @__PURE__ */ ee({
1261
1261
  const n = Pe();
1262
1262
  return pt(() => {
1263
1263
  n.loadLocalThemeConfig();
1264
- }), (t, o) => (p(), I(fl, { title: e.title }, {
1264
+ }), (t, o) => (p(), L(fl, { title: e.title }, {
1265
1265
  default: C(() => [
1266
1266
  Ue(t.$slots, "default")
1267
1267
  ]),
@@ -1276,7 +1276,7 @@ const fo = /* @__PURE__ */ ee({
1276
1276
  setup(e) {
1277
1277
  return (n, t) => {
1278
1278
  const o = G("t-dialog");
1279
- return p(), I(o, et({
1279
+ return p(), L(o, et({
1280
1280
  class: `${f(Ga)}`,
1281
1281
  placement: "center"
1282
1282
  }, e.commonDialogProps), bt({ _: 2 }, [
@@ -1378,7 +1378,7 @@ const go = it(gl), vl = /* @__PURE__ */ ee({
1378
1378
  return p(), W("div", {
1379
1379
  class: O(`${f(za)}`)
1380
1380
  }, [
1381
- e.tableType === "base" ? (p(), I(l, et({
1381
+ e.tableType === "base" ? (p(), L(l, et({
1382
1382
  key: 0,
1383
1383
  ref_key: "tTableRef",
1384
1384
  ref: t,
@@ -1395,7 +1395,7 @@ const go = it(gl), vl = /* @__PURE__ */ ee({
1395
1395
  Ue(o.$slots, u, $t(Rt({ ...c })))
1396
1396
  ])
1397
1397
  }))
1398
- ]), 1040)) : e.tableType == "primary" ? (p(), I(r, et({
1398
+ ]), 1040)) : e.tableType == "primary" ? (p(), L(r, et({
1399
1399
  key: 1,
1400
1400
  ref_key: "tTableRef",
1401
1401
  ref: t,
@@ -1412,7 +1412,7 @@ const go = it(gl), vl = /* @__PURE__ */ ee({
1412
1412
  Ue(o.$slots, u, $t(Rt({ ...c })))
1413
1413
  ])
1414
1414
  }))
1415
- ]), 1040)) : e.tableType === "enhanced" ? (p(), I(i, et({
1415
+ ]), 1040)) : e.tableType === "enhanced" ? (p(), L(i, et({
1416
1416
  key: 2,
1417
1417
  ref_key: "tTableRef",
1418
1418
  ref: t,
@@ -1476,10 +1476,10 @@ const $n = (e) => {
1476
1476
  }) => {
1477
1477
  const u = Rn(t, e) || "file", c = Rn(o, e), d = new XMLHttpRequest();
1478
1478
  l && (d.withCredentials = !0), d.upload.onprogress = (b) => {
1479
- const x = b.total > 0 ? Ia.round(b.loaded / b.total, 2) : 0;
1480
- r(x, b);
1481
- }, d.onerror = function(x) {
1482
- s(x);
1479
+ const S = b.total > 0 ? Ia.round(b.loaded / b.total, 2) : 0;
1480
+ r(S, b);
1481
+ }, d.onerror = function(S) {
1482
+ s(S);
1483
1483
  }, d.onload = () => {
1484
1484
  if (d.status < 200 || d.status >= 300) {
1485
1485
  s($n(d));
@@ -1677,7 +1677,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1677
1677
  return p(), W("span", {
1678
1678
  class: O(o)
1679
1679
  }, [
1680
- ["uploading"].includes(e.file.status ?? "") ? (p(), I(f(ea), {
1680
+ ["uploading"].includes(e.file.status ?? "") ? (p(), L(f(ea), {
1681
1681
  key: 0,
1682
1682
  size: "small",
1683
1683
  text: `${a(((i = e.file) == null ? void 0 : i.percent) ?? 1)}`
@@ -1699,7 +1699,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1699
1699
  default: C(() => {
1700
1700
  var m;
1701
1701
  return [
1702
- (m = f(n)) != null && m.showRetryButton ? (p(), I(f(oo), { key: 0 })) : R("", !0)
1702
+ (m = f(n)) != null && m.showRetryButton ? (p(), L(f(oo), { key: 0 })) : R("", !0)
1703
1703
  ];
1704
1704
  }),
1705
1705
  _: 1
@@ -1709,7 +1709,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1709
1709
  class: O([(c = f(n)) == null ? void 0 : c.iconClass, `${(d = f(n)) == null ? void 0 : d.iconClass}-success`])
1710
1710
  }, [
1711
1711
  V(f(fa))
1712
- ], 2)) : e.file.status == "init" ? (p(), I(f(ut), {
1712
+ ], 2)) : e.file.status == "init" ? (p(), L(f(ut), {
1713
1713
  key: 3,
1714
1714
  content: "开始上传",
1715
1715
  placement: "mouse",
@@ -1721,7 +1721,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1721
1721
  return [
1722
1722
  J("span", {
1723
1723
  class: O([(m = f(n)) == null ? void 0 : m.iconClass, `${(b = f(n)) == null ? void 0 : b.iconClass}-start`]),
1724
- onClick: r[1] || (r[1] = (x) => {
1724
+ onClick: r[1] || (r[1] = (S) => {
1725
1725
  var N;
1726
1726
  return (N = f(n)) == null ? void 0 : N.onUpload(e.file);
1727
1727
  })
@@ -1731,7 +1731,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1731
1731
  ];
1732
1732
  }),
1733
1733
  _: 1
1734
- })) : (p(), I(f(ut), {
1734
+ })) : (p(), L(f(ut), {
1735
1735
  key: 4,
1736
1736
  content: "暂停上传",
1737
1737
  placement: "mouse",
@@ -1743,7 +1743,7 @@ const kl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-0f11e190"]]), Il = /* @
1743
1743
  return [
1744
1744
  J("span", {
1745
1745
  class: O([(m = f(n)) == null ? void 0 : m.iconClass, `${(b = f(n)) == null ? void 0 : b.iconClass}-cancel`]),
1746
- onClick: r[2] || (r[2] = (x) => {
1746
+ onClick: r[2] || (r[2] = (S) => {
1747
1747
  var N;
1748
1748
  return (N = f(n)) == null ? void 0 : N.onAbort(e.file);
1749
1749
  })
@@ -1776,7 +1776,7 @@ const Ll = /* @__PURE__ */ je(Il, [["__scopeId", "data-v-7d97aaed"]]), Nl = /* @
1776
1776
  return p(), W("div", {
1777
1777
  class: O(o)
1778
1778
  }, [
1779
- e.file.url && e.file.status == "done" ? (p(), I(f(ut), {
1779
+ e.file.url && e.file.status == "done" ? (p(), L(f(ut), {
1780
1780
  key: 0,
1781
1781
  content: "打开文件",
1782
1782
  placement: "mouse",
@@ -1796,7 +1796,7 @@ const Ll = /* @__PURE__ */ je(Il, [["__scopeId", "data-v-7d97aaed"]]), Nl = /* @
1796
1796
  }),
1797
1797
  _: 1
1798
1798
  })) : R("", !0),
1799
- e.file.status == "error" ? (p(), I(f(ut), {
1799
+ e.file.status == "error" ? (p(), L(f(ut), {
1800
1800
  key: 1,
1801
1801
  content: "上传出错",
1802
1802
  placement: "mouse",
@@ -1882,7 +1882,7 @@ const yo = /* @__PURE__ */ je(Nl, [["__scopeId", "data-v-b5ad4552"]]), xl = /* @
1882
1882
  key: 0,
1883
1883
  class: O(`${l}-file-icon`)
1884
1884
  }, [
1885
- (p(), I(qo(f(r))))
1885
+ (p(), L(qo(f(r))))
1886
1886
  ], 2)) : R("", !0),
1887
1887
  V(f(ut), {
1888
1888
  content: e.file.filename,
@@ -1893,7 +1893,7 @@ const yo = /* @__PURE__ */ je(Nl, [["__scopeId", "data-v-b5ad4552"]]), xl = /* @
1893
1893
  default: C(() => {
1894
1894
  var c;
1895
1895
  return [
1896
- (c = f(t)) != null && c.showLink && n.file.url ? (p(), I(f(ta), {
1896
+ (c = f(t)) != null && c.showLink && n.file.url ? (p(), L(f(ta), {
1897
1897
  key: 0,
1898
1898
  class: O(`${l}-name-text`),
1899
1899
  theme: "primary",
@@ -1942,12 +1942,12 @@ const Sl = /* @__PURE__ */ je(xl, [["__scopeId", "data-v-7868283a"]]), _l = /* @
1942
1942
  `${o.value}--list`,
1943
1943
  `${o.value}--list-type-${n.listType}`
1944
1944
  ]);
1945
- return (l, r) => (p(), I(Qo, {
1945
+ return (l, r) => (p(), L(Qo, {
1946
1946
  tag: "div",
1947
1947
  class: O(f(a))
1948
1948
  }, {
1949
1949
  default: C(() => [
1950
- (p(!0), W(Me, null, xe(e.fileList, (i, s) => (p(), I(Sl, {
1950
+ (p(!0), W(Me, null, xe(e.fileList, (i, s) => (p(), L(Sl, {
1951
1951
  key: `fileItem-${s}`,
1952
1952
  file: i,
1953
1953
  listType: e.listType
@@ -1985,7 +1985,7 @@ const Dl = /* @__PURE__ */ je(_l, [["__scopeId", "data-v-4f294e87"]]), Vl = /* @
1985
1985
  };
1986
1986
  return (r, i) => {
1987
1987
  var s, u;
1988
- return e.fileTree && ((u = (s = e.fileTree) == null ? void 0 : s.childFiles) != null && u.length) ? (p(), I(f(na), {
1988
+ return e.fileTree && ((u = (s = e.fileTree) == null ? void 0 : s.childFiles) != null && u.length) ? (p(), L(f(na), {
1989
1989
  key: 0,
1990
1990
  hover: "",
1991
1991
  icon: l,
@@ -1997,7 +1997,7 @@ const Dl = /* @__PURE__ */ je(_l, [["__scopeId", "data-v-4f294e87"]]), Vl = /* @
1997
1997
  keys: { value: "fileId", label: "filename", children: "childFiles" }
1998
1998
  }, {
1999
1999
  operations: C(({ node: c }) => [
2000
- c.data.fileUploadType == "file" ? (p(), I(yo, {
2000
+ c.data.fileUploadType == "file" ? (p(), L(yo, {
2001
2001
  key: 0,
2002
2002
  file: c.data
2003
2003
  }, null, 8, ["file"])) : R("", !0)
@@ -2288,8 +2288,8 @@ const El = /* @__PURE__ */ ee({
2288
2288
  showPreviewButton: d,
2289
2289
  imageLoading: m,
2290
2290
  download: b,
2291
- showLink: x
2292
- } = Xo(t), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), h = H([]), M = E(() => t.directory ? h.value.length ? Nn(h.value) : { fileId: "" } : { fileId: "" }), T = E(() => t.limit > 0 && h.value.length >= t.limit), g = E(() => t.buttonText ? t.buttonText : t.directory ? T.value ? "重新选择" : "上传文件夹" : T.value ? "重新选择" : "上传文件"), w = (K) => {
2291
+ showLink: S
2292
+ } = Xo(t), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), h = H([]), M = E(() => t.directory ? h.value.length ? Nn(h.value) : { fileId: "" } : { fileId: "" }), T = E(() => t.limit > 0 && h.value.length >= t.limit), w = E(() => t.buttonText ? t.buttonText : t.directory ? T.value ? "重新选择" : "上传文件夹" : T.value ? "重新选择" : "上传文件"), y = (K) => {
2293
2293
  N.clear();
2294
2294
  const ue = K == null ? void 0 : K.map((te, me) => {
2295
2295
  const D = te.status ?? "done", $ = on({
@@ -2302,25 +2302,25 @@ const El = /* @__PURE__ */ ee({
2302
2302
  });
2303
2303
  h.value = ue ?? [];
2304
2304
  };
2305
- w(t.defaultFileList), Te(
2305
+ y(t.defaultFileList), Te(
2306
2306
  () => l == null ? void 0 : l.value,
2307
2307
  (K) => {
2308
- K && w(K);
2308
+ K && y(K);
2309
2309
  },
2310
2310
  { immediate: !0, deep: !0 }
2311
2311
  );
2312
- const v = (K) => {
2312
+ const g = (K) => {
2313
2313
  n("update:fileList", h.value), n("change", h.value, K);
2314
- }, y = (K) => {
2314
+ }, v = (K) => {
2315
2315
  const ue = (ae, le) => {
2316
2316
  const Be = N.get(K.fileId);
2317
2317
  Be && (Be.status = "uploading", Be.percent = ae, n("progress", Be, le));
2318
2318
  }, te = (ae) => {
2319
2319
  const le = N.get(K.fileId);
2320
- le && (le.status = "done", le.percent = 1, le.response = ae, ae.state == 200 ? (P.delete(le.fileId), le.url = ae.data[0], v(le), n("success", le)) : n("error", le));
2320
+ le && (le.status = "done", le.percent = 1, le.response = ae, ae.state == 200 ? (B.delete(le.fileId), le.url = ae.data[0], g(le), n("success", le)) : n("error", le));
2321
2321
  }, me = (ae) => {
2322
2322
  const le = N.get(K.fileId);
2323
- le && (le.status = "error", le.percent = 0, le.response = ae, P.delete(le.fileId), n("error", le), v(le));
2323
+ le && (le.status = "error", le.percent = 0, le.response = ae, B.delete(le.fileId), n("error", le), g(le));
2324
2324
  }, D = {
2325
2325
  fileItem: K,
2326
2326
  action: t.action,
@@ -2334,14 +2334,14 @@ const El = /* @__PURE__ */ ee({
2334
2334
  };
2335
2335
  K.status = "uploading", K.percent = 0;
2336
2336
  const $ = ct(t.customRequest) ? t.customRequest(D) : bl(D);
2337
- P.set(K.fileId, $);
2338
- }, L = (K) => {
2337
+ B.set(K.fileId, $);
2338
+ }, k = (K) => {
2339
2339
  var te;
2340
- const ue = P.get(K.fileId);
2340
+ const ue = B.get(K.fileId);
2341
2341
  if (ue) {
2342
- (te = ue.abort) == null || te.call(ue), P.delete(K.fileId);
2342
+ (te = ue.abort) == null || te.call(ue), B.delete(K.fileId);
2343
2343
  const me = N.get(K.fileId);
2344
- me && (me.status = "error", me.percent = 0, v(me));
2344
+ me && (me.status = "error", me.percent = 0, g(me));
2345
2345
  }
2346
2346
  }, _ = async (K, ue) => {
2347
2347
  const te = `${Vt(10)}-${K.name}`, me = void 0, D = on({
@@ -2354,8 +2354,8 @@ const El = /* @__PURE__ */ ee({
2354
2354
  percent: 0,
2355
2355
  fileUploadType: "file"
2356
2356
  });
2357
- N.set(te, D), h.value = [...h.value, D], v(D), t.autoUpload && y(D);
2358
- }, B = (K) => {
2357
+ N.set(te, D), h.value = [...h.value, D], g(D), t.autoUpload && v(D);
2358
+ }, P = (K) => {
2359
2359
  if (t.limit > 0 && h.value.length + K.length > t.limit) {
2360
2360
  if (h.value.length > K.length)
2361
2361
  return;
@@ -2370,14 +2370,14 @@ const El = /* @__PURE__ */ ee({
2370
2370
  console.error(me);
2371
2371
  }) : _(te);
2372
2372
  }
2373
- }, k = (K) => {
2374
- h.value = h.value.filter((ue) => ue.fileId !== K.fileId), v(K);
2373
+ }, I = (K) => {
2374
+ h.value = h.value.filter((ue) => ue.fileId !== K.fileId), g(K);
2375
2375
  }, X = (K) => {
2376
2376
  ct(t.onBeforeRemove) ? Promise.resolve(t.onBeforeRemove(K)).then((ue) => {
2377
- ue && k(K);
2377
+ ue && I(K);
2378
2378
  }).catch((ue) => {
2379
2379
  console.error(ue);
2380
- }) : k(K);
2380
+ }) : I(K);
2381
2381
  }, j = E(
2382
2382
  () => h.value.filter((K) => Boolean(K.url)).map((K) => K.url)
2383
2383
  ), se = H(!1), U = H(0), Se = (K) => {
@@ -2403,12 +2403,12 @@ const El = /* @__PURE__ */ ee({
2403
2403
  showRetryButton: s,
2404
2404
  showCancelButton: u,
2405
2405
  showPreviewButton: d,
2406
- showLink: x,
2406
+ showLink: S,
2407
2407
  imageLoading: m,
2408
2408
  download: b,
2409
2409
  slots: a,
2410
- onUpload: y,
2411
- onAbort: L,
2410
+ onUpload: v,
2411
+ onAbort: k,
2412
2412
  onRemove: X,
2413
2413
  onPreview: Se
2414
2414
  })
@@ -2417,12 +2417,12 @@ const El = /* @__PURE__ */ ee({
2417
2417
  return p(), W("div", {
2418
2418
  class: O([`${o}`])
2419
2419
  }, [
2420
- e.showUploadButton ? (p(), I(kl, et({
2420
+ e.showUploadButton ? (p(), L(kl, et({
2421
2421
  key: 0,
2422
2422
  disabled: f(r),
2423
2423
  listType: f(i),
2424
- uploaderText: f(g),
2425
- uploadFiles: B,
2424
+ uploaderText: f(w),
2425
+ uploadFiles: P,
2426
2426
  multiple: e.multiple,
2427
2427
  directory: e.directory,
2428
2428
  hide: !e.showUploadButton || f(T) && !(f(kn)(e.showUploadButton) && e.showUploadButton.showOnExceedLimit),
@@ -2430,16 +2430,16 @@ const El = /* @__PURE__ */ ee({
2430
2430
  onButtonClick: e.onButtonClick,
2431
2431
  buttonProps: e.buttonProps
2432
2432
  }, { ...(te = h.value) != null && te.length ? {} : { tip: e.tip } }), null, 16, ["disabled", "listType", "uploaderText", "multiple", "directory", "hide", "accept", "onButtonClick", "buttonProps"])) : R("", !0),
2433
- e.showFileList && h.value.length ? (p(), I(f(oa), {
2433
+ e.showFileList && h.value.length ? (p(), L(f(oa), {
2434
2434
  key: 1,
2435
2435
  class: O(`${o}--card`),
2436
2436
  size: "small"
2437
2437
  }, {
2438
2438
  default: C(() => [
2439
- e.directory ? e.directory && f(M) ? (p(), I(Al, {
2439
+ e.directory ? e.directory && f(M) ? (p(), L(Al, {
2440
2440
  key: 1,
2441
2441
  fileTree: f(M)
2442
- }, null, 8, ["fileTree"])) : R("", !0) : (p(), I(Dl, {
2442
+ }, null, 8, ["fileTree"])) : R("", !0) : (p(), L(Dl, {
2443
2443
  key: 0,
2444
2444
  fileList: h.value,
2445
2445
  listType: f(i)
@@ -2552,7 +2552,7 @@ const qe = new Bl(Pl), Mt = {
2552
2552
  const c = Ht(u);
2553
2553
  if (((d = n.button) == null ? void 0 : d.fileUploadType) == "file") {
2554
2554
  if (c.length && c.every((b) => b.status == "done")) {
2555
- const { response: b, filename: x, url: N } = c[0];
2555
+ const { response: b, filename: S, url: N } = c[0];
2556
2556
  b && b.state == 200 && i({ fileUrls: [N] });
2557
2557
  }
2558
2558
  } else if (((m = n.button) == null ? void 0 : m.fileUploadType) == "path" && c.length && u.every((b) => b.url)) {
@@ -2575,8 +2575,8 @@ const qe = new Bl(Pl), Mt = {
2575
2575
  props: {
2576
2576
  ...r.value
2577
2577
  }
2578
- }).then((x) => {
2579
- x.state == 200 ? oe.success("导入成功") : oe.error(`导入失败 ${x.message}`);
2578
+ }).then((S) => {
2579
+ S.state == 200 ? oe.success("导入成功") : oe.error(`导入失败 ${S.message}`);
2580
2580
  });
2581
2581
  }
2582
2582
  function s(u) {
@@ -2585,7 +2585,7 @@ const qe = new Bl(Pl), Mt = {
2585
2585
  }
2586
2586
  return (u, c) => {
2587
2587
  var d, m;
2588
- return p(), I(f(bn), et({
2588
+ return p(), L(f(bn), et({
2589
2589
  action: f(o),
2590
2590
  limit: 1,
2591
2591
  multiple: !1,
@@ -2607,7 +2607,7 @@ const qe = new Bl(Pl), Mt = {
2607
2607
  setup(e) {
2608
2608
  return (n, t) => {
2609
2609
  const o = G("t-tag");
2610
- return p(), I(o, null, {
2610
+ return p(), L(o, null, {
2611
2611
  default: C(() => [
2612
2612
  ne(we(e.modelValue), 1)
2613
2613
  ]),
@@ -2708,7 +2708,7 @@ const wn = /* @__PURE__ */ ee({
2708
2708
  r(Ve(o.value));
2709
2709
  }), (s, u) => {
2710
2710
  const c = G("t-input");
2711
- return p(), I(c, {
2711
+ return p(), L(c, {
2712
2712
  modelValue: l.value,
2713
2713
  "onUpdate:modelValue": u[0] || (u[0] = (d) => l.value = d),
2714
2714
  type: f(a),
@@ -2745,7 +2745,7 @@ const wn = /* @__PURE__ */ ee({
2745
2745
  }
2746
2746
  return (l, r) => {
2747
2747
  const i = G("t-checkbox");
2748
- return p(), I(i, {
2748
+ return p(), L(i, {
2749
2749
  modelValue: o.value,
2750
2750
  "onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
2751
2751
  onChange: a
@@ -2785,7 +2785,7 @@ const wn = /* @__PURE__ */ ee({
2785
2785
  n("update:modelValue", Ve(o.value));
2786
2786
  }), (r, i) => {
2787
2787
  const s = G("t-switch");
2788
- return p(), I(s, {
2788
+ return p(), L(s, {
2789
2789
  modelValue: a.value,
2790
2790
  "onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u),
2791
2791
  onChange: l,
@@ -2946,19 +2946,19 @@ const ko = /* @__PURE__ */ ee({
2946
2946
  n("update:modelValue", Ve(o.value));
2947
2947
  }), (c, d) => {
2948
2948
  const m = G("t-radio"), b = G("t-radio-group");
2949
- return p(), I(b, {
2949
+ return p(), L(b, {
2950
2950
  modelValue: s.value,
2951
- "onUpdate:modelValue": d[0] || (d[0] = (x) => s.value = x),
2951
+ "onUpdate:modelValue": d[0] || (d[0] = (S) => s.value = S),
2952
2952
  onChange: u,
2953
2953
  disabled: e.disabled
2954
2954
  }, {
2955
2955
  default: C(() => [
2956
- (p(!0), W(Me, null, xe(f(i), (x) => (p(), I(m, {
2957
- key: x.key,
2958
- value: x.value
2956
+ (p(!0), W(Me, null, xe(f(i), (S) => (p(), L(m, {
2957
+ key: S.key,
2958
+ value: S.value
2959
2959
  }, {
2960
2960
  default: C(() => [
2961
- ne(we(x.label), 1)
2961
+ ne(we(S.label), 1)
2962
2962
  ]),
2963
2963
  _: 2
2964
2964
  }, 1032, ["value"]))), 128))
@@ -3021,9 +3021,9 @@ const ko = /* @__PURE__ */ ee({
3021
3021
  u(Ve(o.value));
3022
3022
  }), (d, m) => {
3023
3023
  const b = G("t-select");
3024
- return p(), I(b, {
3024
+ return p(), L(b, {
3025
3025
  modelValue: s.value,
3026
- "onUpdate:modelValue": m[0] || (m[0] = (x) => s.value = x),
3026
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => s.value = S),
3027
3027
  placeholder: e.placeholder,
3028
3028
  options: f(i),
3029
3029
  multiple: e.multiple,
@@ -3076,13 +3076,13 @@ const ko = /* @__PURE__ */ ee({
3076
3076
  t.disabled && n("update:modelValue", Ve(o.value));
3077
3077
  }
3078
3078
  ), (i, s) => {
3079
- var d, m, b, x, N, P, h;
3079
+ var d, m, b, S, N, B, h;
3080
3080
  const u = G("t-date-picker"), c = G("t-time-picker");
3081
3081
  return p(), W(Me, null, [
3082
- ((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((m = e.formItem) == null ? void 0 : m.itemType) === "date_time_selector" ? (p(), I(u, {
3082
+ ((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((m = e.formItem) == null ? void 0 : m.itemType) === "date_time_selector" ? (p(), L(u, {
3083
3083
  key: 0,
3084
3084
  "enable-time-picker": ((b = e.formItem) == null ? void 0 : b.itemType) === "date_time_selector",
3085
- placeholder: (x = e.formItem) == null ? void 0 : x.placeholder,
3085
+ placeholder: (S = e.formItem) == null ? void 0 : S.placeholder,
3086
3086
  modelValue: a.value,
3087
3087
  "onUpdate:modelValue": s[0] || (s[0] = (M) => a.value = M),
3088
3088
  format: e.formItem.format || "YYYY-MM-DD HH:mm:ss",
@@ -3092,9 +3092,9 @@ const ko = /* @__PURE__ */ ee({
3092
3092
  onBlur: r,
3093
3093
  clearable: ""
3094
3094
  }, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : R("", !0),
3095
- ((N = e.formItem) == null ? void 0 : N.itemType) === "time_selector" ? (p(), I(c, {
3095
+ ((N = e.formItem) == null ? void 0 : N.itemType) === "time_selector" ? (p(), L(c, {
3096
3096
  key: 1,
3097
- placeholder: (P = e.formItem) == null ? void 0 : P.placeholder,
3097
+ placeholder: (B = e.formItem) == null ? void 0 : B.placeholder,
3098
3098
  modelValue: a.value,
3099
3099
  "onUpdate:modelValue": s[1] || (s[1] = (M) => a.value = M),
3100
3100
  onChange: l,
@@ -3161,9 +3161,9 @@ const ko = /* @__PURE__ */ ee({
3161
3161
  u(Ve(a.value));
3162
3162
  }), (d, m) => {
3163
3163
  const b = G("t-tree-select");
3164
- return p(), I(b, {
3164
+ return p(), L(b, {
3165
3165
  modelValue: o.value,
3166
- "onUpdate:modelValue": m[0] || (m[0] = (x) => o.value = x),
3166
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => o.value = S),
3167
3167
  data: f(s),
3168
3168
  placeholder: e.placeholder,
3169
3169
  multiple: e.multiple,
@@ -3230,9 +3230,9 @@ const ko = /* @__PURE__ */ ee({
3230
3230
  u(Ve(o.value));
3231
3231
  }), (d, m) => {
3232
3232
  const b = G("t-cascader");
3233
- return p(), I(b, {
3233
+ return p(), L(b, {
3234
3234
  modelValue: s.value,
3235
- "onUpdate:modelValue": m[0] || (m[0] = (x) => s.value = x),
3235
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => s.value = S),
3236
3236
  options: f(i),
3237
3237
  multiple: e.multiple,
3238
3238
  disabled: e.disabled,
@@ -3291,7 +3291,7 @@ const ko = /* @__PURE__ */ ee({
3291
3291
  }
3292
3292
  return (u, c) => {
3293
3293
  var d;
3294
- return e.formItem.fileUploadType != "path" ? (p(), I(f(bn), {
3294
+ return e.formItem.fileUploadType != "path" ? (p(), L(f(bn), {
3295
3295
  key: 0,
3296
3296
  fileList: f(o),
3297
3297
  action: f(l),
@@ -3303,7 +3303,7 @@ const ko = /* @__PURE__ */ ee({
3303
3303
  onRemove: i,
3304
3304
  onChange: r,
3305
3305
  onError: s
3306
- }, null, 8, ["fileList", "action", "tip", "disabled", "accept"])) : (p(), I(f(bn), {
3306
+ }, null, 8, ["fileList", "action", "tip", "disabled", "accept"])) : (p(), L(f(bn), {
3307
3307
  key: 1,
3308
3308
  directory: !0,
3309
3309
  fileList: f(o),
@@ -3329,35 +3329,35 @@ var Kl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3329
3329
  (function(t, o) {
3330
3330
  e.exports = o();
3331
3331
  })(Kl, function() {
3332
- var t, o, a = 1e3, l = 6e4, r = 36e5, i = 864e5, s = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, c = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, m = { years: u, months: c, days: i, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, b = function(w) {
3333
- return w instanceof g;
3334
- }, x = function(w, v, y) {
3335
- return new g(w, y, v.$l);
3336
- }, N = function(w) {
3337
- return o.p(w) + "s";
3338
- }, P = function(w) {
3339
- return w < 0;
3340
- }, h = function(w) {
3341
- return P(w) ? Math.ceil(w) : Math.floor(w);
3342
- }, M = function(w) {
3343
- return Math.abs(w);
3344
- }, T = function(w, v) {
3345
- return w ? P(w) ? { negative: !0, format: "" + M(w) + v } : { negative: !1, format: "" + w + v } : { negative: !1, format: "" };
3346
- }, g = function() {
3347
- function w(y, L, _) {
3348
- var B = this;
3349
- if (this.$d = {}, this.$l = _, y === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), L)
3350
- return x(y * m[N(L)], this);
3351
- if (typeof y == "number")
3352
- return this.$ms = y, this.parseFromMilliseconds(), this;
3353
- if (typeof y == "object")
3354
- return Object.keys(y).forEach(function(j) {
3355
- B.$d[N(j)] = y[j];
3332
+ var t, o, a = 1e3, l = 6e4, r = 36e5, i = 864e5, s = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, c = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, m = { years: u, months: c, days: i, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, b = function(y) {
3333
+ return y instanceof w;
3334
+ }, S = function(y, g, v) {
3335
+ return new w(y, v, g.$l);
3336
+ }, N = function(y) {
3337
+ return o.p(y) + "s";
3338
+ }, B = function(y) {
3339
+ return y < 0;
3340
+ }, h = function(y) {
3341
+ return B(y) ? Math.ceil(y) : Math.floor(y);
3342
+ }, M = function(y) {
3343
+ return Math.abs(y);
3344
+ }, T = function(y, g) {
3345
+ return y ? B(y) ? { negative: !0, format: "" + M(y) + g } : { negative: !1, format: "" + y + g } : { negative: !1, format: "" };
3346
+ }, w = function() {
3347
+ function y(v, k, _) {
3348
+ var P = this;
3349
+ if (this.$d = {}, this.$l = _, v === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), k)
3350
+ return S(v * m[N(k)], this);
3351
+ if (typeof v == "number")
3352
+ return this.$ms = v, this.parseFromMilliseconds(), this;
3353
+ if (typeof v == "object")
3354
+ return Object.keys(v).forEach(function(j) {
3355
+ P.$d[N(j)] = v[j];
3356
3356
  }), this.calMilliseconds(), this;
3357
- if (typeof y == "string") {
3358
- var k = y.match(d);
3359
- if (k) {
3360
- var X = k.slice(2).map(function(j) {
3357
+ if (typeof v == "string") {
3358
+ var I = v.match(d);
3359
+ if (I) {
3360
+ var X = I.slice(2).map(function(j) {
3361
3361
  return j != null ? Number(j) : 0;
3362
3362
  });
3363
3363
  return this.$d.years = X[0], this.$d.months = X[1], this.$d.weeks = X[2], this.$d.days = X[3], this.$d.hours = X[4], this.$d.minutes = X[5], this.$d.seconds = X[6], this.calMilliseconds(), this;
@@ -3365,90 +3365,90 @@ var Kl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3365
3365
  }
3366
3366
  return this;
3367
3367
  }
3368
- var v = w.prototype;
3369
- return v.calMilliseconds = function() {
3370
- var y = this;
3371
- this.$ms = Object.keys(this.$d).reduce(function(L, _) {
3372
- return L + (y.$d[_] || 0) * m[_];
3368
+ var g = y.prototype;
3369
+ return g.calMilliseconds = function() {
3370
+ var v = this;
3371
+ this.$ms = Object.keys(this.$d).reduce(function(k, _) {
3372
+ return k + (v.$d[_] || 0) * m[_];
3373
3373
  }, 0);
3374
- }, v.parseFromMilliseconds = function() {
3375
- var y = this.$ms;
3376
- this.$d.years = h(y / u), y %= u, this.$d.months = h(y / c), y %= c, this.$d.days = h(y / i), y %= i, this.$d.hours = h(y / r), y %= r, this.$d.minutes = h(y / l), y %= l, this.$d.seconds = h(y / a), y %= a, this.$d.milliseconds = y;
3377
- }, v.toISOString = function() {
3378
- var y = T(this.$d.years, "Y"), L = T(this.$d.months, "M"), _ = +this.$d.days || 0;
3374
+ }, g.parseFromMilliseconds = function() {
3375
+ var v = this.$ms;
3376
+ this.$d.years = h(v / u), v %= u, this.$d.months = h(v / c), v %= c, this.$d.days = h(v / i), v %= i, this.$d.hours = h(v / r), v %= r, this.$d.minutes = h(v / l), v %= l, this.$d.seconds = h(v / a), v %= a, this.$d.milliseconds = v;
3377
+ }, g.toISOString = function() {
3378
+ var v = T(this.$d.years, "Y"), k = T(this.$d.months, "M"), _ = +this.$d.days || 0;
3379
3379
  this.$d.weeks && (_ += 7 * this.$d.weeks);
3380
- var B = T(_, "D"), k = T(this.$d.hours, "H"), X = T(this.$d.minutes, "M"), j = this.$d.seconds || 0;
3380
+ var P = T(_, "D"), I = T(this.$d.hours, "H"), X = T(this.$d.minutes, "M"), j = this.$d.seconds || 0;
3381
3381
  this.$d.milliseconds && (j += this.$d.milliseconds / 1e3);
3382
- var se = T(j, "S"), U = y.negative || L.negative || B.negative || k.negative || X.negative || se.negative, Se = k.format || X.format || se.format ? "T" : "", ce = (U ? "-" : "") + "P" + y.format + L.format + B.format + Se + k.format + X.format + se.format;
3382
+ var se = T(j, "S"), U = v.negative || k.negative || P.negative || I.negative || X.negative || se.negative, Se = I.format || X.format || se.format ? "T" : "", ce = (U ? "-" : "") + "P" + v.format + k.format + P.format + Se + I.format + X.format + se.format;
3383
3383
  return ce === "P" || ce === "-P" ? "P0D" : ce;
3384
- }, v.toJSON = function() {
3384
+ }, g.toJSON = function() {
3385
3385
  return this.toISOString();
3386
- }, v.format = function(y) {
3387
- var L = y || "YYYY-MM-DDTHH:mm:ss", _ = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
3388
- return L.replace(s, function(B, k) {
3389
- return k || String(_[B]);
3386
+ }, g.format = function(v) {
3387
+ var k = v || "YYYY-MM-DDTHH:mm:ss", _ = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
3388
+ return k.replace(s, function(P, I) {
3389
+ return I || String(_[P]);
3390
3390
  });
3391
- }, v.as = function(y) {
3392
- return this.$ms / m[N(y)];
3393
- }, v.get = function(y) {
3394
- var L = this.$ms, _ = N(y);
3395
- return _ === "milliseconds" ? L %= 1e3 : L = _ === "weeks" ? h(L / m[_]) : this.$d[_], L === 0 ? 0 : L;
3396
- }, v.add = function(y, L, _) {
3397
- var B;
3398
- return B = L ? y * m[N(L)] : b(y) ? y.$ms : x(y, this).$ms, x(this.$ms + B * (_ ? -1 : 1), this);
3399
- }, v.subtract = function(y, L) {
3400
- return this.add(y, L, !0);
3401
- }, v.locale = function(y) {
3402
- var L = this.clone();
3403
- return L.$l = y, L;
3404
- }, v.clone = function() {
3405
- return x(this.$ms, this);
3406
- }, v.humanize = function(y) {
3407
- return t().add(this.$ms, "ms").locale(this.$l).fromNow(!y);
3408
- }, v.milliseconds = function() {
3391
+ }, g.as = function(v) {
3392
+ return this.$ms / m[N(v)];
3393
+ }, g.get = function(v) {
3394
+ var k = this.$ms, _ = N(v);
3395
+ return _ === "milliseconds" ? k %= 1e3 : k = _ === "weeks" ? h(k / m[_]) : this.$d[_], k === 0 ? 0 : k;
3396
+ }, g.add = function(v, k, _) {
3397
+ var P;
3398
+ return P = k ? v * m[N(k)] : b(v) ? v.$ms : S(v, this).$ms, S(this.$ms + P * (_ ? -1 : 1), this);
3399
+ }, g.subtract = function(v, k) {
3400
+ return this.add(v, k, !0);
3401
+ }, g.locale = function(v) {
3402
+ var k = this.clone();
3403
+ return k.$l = v, k;
3404
+ }, g.clone = function() {
3405
+ return S(this.$ms, this);
3406
+ }, g.humanize = function(v) {
3407
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!v);
3408
+ }, g.milliseconds = function() {
3409
3409
  return this.get("milliseconds");
3410
- }, v.asMilliseconds = function() {
3410
+ }, g.asMilliseconds = function() {
3411
3411
  return this.as("milliseconds");
3412
- }, v.seconds = function() {
3412
+ }, g.seconds = function() {
3413
3413
  return this.get("seconds");
3414
- }, v.asSeconds = function() {
3414
+ }, g.asSeconds = function() {
3415
3415
  return this.as("seconds");
3416
- }, v.minutes = function() {
3416
+ }, g.minutes = function() {
3417
3417
  return this.get("minutes");
3418
- }, v.asMinutes = function() {
3418
+ }, g.asMinutes = function() {
3419
3419
  return this.as("minutes");
3420
- }, v.hours = function() {
3420
+ }, g.hours = function() {
3421
3421
  return this.get("hours");
3422
- }, v.asHours = function() {
3422
+ }, g.asHours = function() {
3423
3423
  return this.as("hours");
3424
- }, v.days = function() {
3424
+ }, g.days = function() {
3425
3425
  return this.get("days");
3426
- }, v.asDays = function() {
3426
+ }, g.asDays = function() {
3427
3427
  return this.as("days");
3428
- }, v.weeks = function() {
3428
+ }, g.weeks = function() {
3429
3429
  return this.get("weeks");
3430
- }, v.asWeeks = function() {
3430
+ }, g.asWeeks = function() {
3431
3431
  return this.as("weeks");
3432
- }, v.months = function() {
3432
+ }, g.months = function() {
3433
3433
  return this.get("months");
3434
- }, v.asMonths = function() {
3434
+ }, g.asMonths = function() {
3435
3435
  return this.as("months");
3436
- }, v.years = function() {
3436
+ }, g.years = function() {
3437
3437
  return this.get("years");
3438
- }, v.asYears = function() {
3438
+ }, g.asYears = function() {
3439
3439
  return this.as("years");
3440
- }, w;
3440
+ }, y;
3441
3441
  }();
3442
- return function(w, v, y) {
3443
- t = y, o = y().$utils(), y.duration = function(B, k) {
3444
- var X = y.locale();
3445
- return x(B, { $l: X }, k);
3446
- }, y.isDuration = b;
3447
- var L = v.prototype.add, _ = v.prototype.subtract;
3448
- v.prototype.add = function(B, k) {
3449
- return b(B) && (B = B.asMilliseconds()), L.bind(this)(B, k);
3450
- }, v.prototype.subtract = function(B, k) {
3451
- return b(B) && (B = B.asMilliseconds()), _.bind(this)(B, k);
3442
+ return function(y, g, v) {
3443
+ t = v, o = v().$utils(), v.duration = function(P, I) {
3444
+ var X = v.locale();
3445
+ return S(P, { $l: X }, I);
3446
+ }, v.isDuration = b;
3447
+ var k = g.prototype.add, _ = g.prototype.subtract;
3448
+ g.prototype.add = function(P, I) {
3449
+ return b(P) && (P = P.asMilliseconds()), k.bind(this)(P, I);
3450
+ }, g.prototype.subtract = function(P, I) {
3451
+ return b(P) && (P = P.asMilliseconds()), _.bind(this)(P, I);
3452
3452
  };
3453
3453
  };
3454
3454
  });
@@ -3504,7 +3504,7 @@ const Wl = Tn, ql = /* @__PURE__ */ ee({
3504
3504
  ), (i, s) => {
3505
3505
  var c;
3506
3506
  const u = G("t-time-picker");
3507
- return p(), I(u, {
3507
+ return p(), L(u, {
3508
3508
  placeholder: (c = e.formItem) == null ? void 0 : c.placeholder,
3509
3509
  modelValue: a.value,
3510
3510
  "onUpdate:modelValue": s[0] || (s[0] = (d) => a.value = d),
@@ -3562,19 +3562,19 @@ const Ql = /* @__PURE__ */ ee({
3562
3562
  }, d = (h) => {
3563
3563
  }, m = H(!1), b = (h) => {
3564
3564
  m.value = !0;
3565
- }, x = (h) => {
3565
+ }, S = (h) => {
3566
3566
  m.value = !1, t.originValue && t.originValue != h.getHtml() && n("blur:modelValue", h.getHtml());
3567
3567
  }, N = () => {
3568
3568
  const h = r.value;
3569
3569
  h != null && h.disable();
3570
- }, P = () => {
3570
+ }, B = () => {
3571
3571
  const h = r.value;
3572
3572
  h != null && h.enable();
3573
3573
  };
3574
3574
  return Te(
3575
3575
  () => t.disabled,
3576
3576
  () => {
3577
- t.disabled ? N() : P();
3577
+ t.disabled ? N() : B();
3578
3578
  }
3579
3579
  ), mt(() => {
3580
3580
  n("update:modelValue", "");
@@ -3598,7 +3598,7 @@ const Ql = /* @__PURE__ */ ee({
3598
3598
  onOnChange: c,
3599
3599
  onOnDestroyed: d,
3600
3600
  onOnFocus: b,
3601
- onOnBlur: x
3601
+ onOnBlur: S
3602
3602
  }, null, 8, ["class", "mode", "modelValue"])
3603
3603
  ], 2));
3604
3604
  }
@@ -3657,10 +3657,10 @@ const Xl = /* @__PURE__ */ je(Ql, [["__scopeId", "data-v-053cc99d"]]), Yl = /* @
3657
3657
  return mt(() => {
3658
3658
  l(Ve(o.value));
3659
3659
  }), (c, d) => {
3660
- const m = G("t-button"), b = G("t-input"), x = G("t-input-group"), N = G("t-space");
3661
- return p(), I(N, null, {
3660
+ const m = G("t-button"), b = G("t-input"), S = G("t-input-group"), N = G("t-space");
3661
+ return p(), L(N, null, {
3662
3662
  default: C(() => [
3663
- a.value.length == 0 ? (p(), I(m, {
3663
+ a.value.length == 0 ? (p(), L(m, {
3664
3664
  key: 0,
3665
3665
  onClick: r,
3666
3666
  variant: "outline"
@@ -3669,16 +3669,16 @@ const Xl = /* @__PURE__ */ je(Ql, [["__scopeId", "data-v-053cc99d"]]), Yl = /* @
3669
3669
  ne("添加" + we(e.formItem.name), 1)
3670
3670
  ]),
3671
3671
  _: 1
3672
- })) : (p(), I(N, {
3672
+ })) : (p(), L(N, {
3673
3673
  key: 1,
3674
3674
  direction: "vertical"
3675
3675
  }, {
3676
3676
  default: C(() => [
3677
- (p(!0), W(Me, null, xe(a.value, (P, h) => (p(), I(x, { key: h }, {
3677
+ (p(!0), W(Me, null, xe(a.value, (B, h) => (p(), L(S, { key: h }, {
3678
3678
  default: C(() => [
3679
3679
  V(b, {
3680
3680
  style: { width: "200px" },
3681
- value: P,
3681
+ value: B,
3682
3682
  placeholder: e.placeholder,
3683
3683
  onChange: (M) => i(M, h),
3684
3684
  onBlur: u,
@@ -3694,7 +3694,7 @@ const Xl = /* @__PURE__ */ je(Ql, [["__scopeId", "data-v-053cc99d"]]), Yl = /* @
3694
3694
  ]),
3695
3695
  _: 2
3696
3696
  }, 1032, ["onClick"]),
3697
- h == a.value.length - 1 ? (p(), I(m, {
3697
+ h == a.value.length - 1 ? (p(), L(m, {
3698
3698
  key: 0,
3699
3699
  variant: "outline",
3700
3700
  theme: "default",
@@ -3757,19 +3757,19 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3757
3757
  emits: ["after-update-value"],
3758
3758
  setup(e, { expose: n, emit: t }) {
3759
3759
  const o = e, a = `${ke("formItem")}`, l = E(() => o.formModel), { handleItemShowIf: r, handleItemDisableIf: i } = _o({ formModel: l });
3760
- function s(P, h) {
3761
- t("after-update-value", P, h);
3760
+ function s(B, h) {
3761
+ t("after-update-value", B, h);
3762
3762
  }
3763
3763
  const u = E(() => o.formItem.disableIf ? i(o.formItem.disableIf, o.formItem) : !1), c = H(!0);
3764
3764
  function d() {
3765
3765
  return u.value;
3766
3766
  }
3767
- function m(P) {
3768
- c.value = P;
3767
+ function m(B) {
3768
+ c.value = B;
3769
3769
  }
3770
3770
  const b = E(
3771
3771
  () => o.formItem.keyName ? o.formItem.keyName : o.formItem.name
3772
- ), x = E(() => {
3772
+ ), S = E(() => {
3773
3773
  switch (o.formItem.itemType) {
3774
3774
  case "text_input":
3775
3775
  case "rich_text":
@@ -3791,15 +3791,15 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3791
3791
  }), N = E(() => {
3792
3792
  if (o.formItem.placeholder && o.formItem.placeholder !== "")
3793
3793
  return o.formItem.placeholder;
3794
- const P = o.formItem.name.replace(/:|:|(\s*)|/g, "");
3795
- return P !== "" ? `${x.value}${P}` : "";
3794
+ const B = o.formItem.name.replace(/:|:|(\s*)|/g, "");
3795
+ return B !== "" ? `${S.value}${B}` : "";
3796
3796
  });
3797
3797
  return n({
3798
3798
  formItem: o.formItem,
3799
3799
  formItemId: b.value,
3800
3800
  getDisableFlag: d,
3801
3801
  setBlockShowFlag: m
3802
- }), (P, h) => {
3802
+ }), (B, h) => {
3803
3803
  const M = G("t-divider"), T = G("t-form-item");
3804
3804
  return p(), W("div", {
3805
3805
  ref: "formItemRef",
@@ -3807,7 +3807,7 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3807
3807
  id: f(b)
3808
3808
  }, [
3809
3809
  c.value ? (p(), W(Me, { key: 0 }, [
3810
- e.formItem.itemType === "line" && e.formItem.name && f(r)(e.formItem.showIf, e.formItem) ? (p(), I(M, {
3810
+ e.formItem.itemType === "line" && e.formItem.name && f(r)(e.formItem.showIf, e.formItem) ? (p(), L(M, {
3811
3811
  key: 0,
3812
3812
  align: "left"
3813
3813
  }, {
@@ -3815,100 +3815,100 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3815
3815
  ne(we(e.formItem.name), 1)
3816
3816
  ]),
3817
3817
  _: 1
3818
- })) : e.formItem.itemType !== "hidden" && f(r)(e.formItem.showIf, e.formItem) ? (p(), I(T, {
3818
+ })) : e.formItem.itemType !== "hidden" && f(r)(e.formItem.showIf, e.formItem) ? (p(), L(T, {
3819
3819
  key: 1,
3820
3820
  ref: `item_${e.formItem.keyName}`,
3821
3821
  id: e.formItem.keyName,
3822
3822
  requiredMark: e.formItem.required && !f(u),
3823
- label: e.formItem.name,
3823
+ label: e.formItem.name.replace(/:|:/, ""),
3824
3824
  name: e.formItem.inputType != "RE_PASSWORD" ? e.formItem.keyName : "rePassword",
3825
3825
  class: O([`${e.isLabelNameShow ? "" : `${a}-label--hidden`}`])
3826
3826
  }, {
3827
3827
  default: C(() => {
3828
- var g, w, v, y;
3828
+ var w, y, g, v;
3829
3829
  return [
3830
- e.formItem.itemType === "label" ? (p(), I(wo, {
3830
+ e.formItem.itemType === "label" ? (p(), L(wo, {
3831
3831
  key: 0,
3832
3832
  modelValue: f(re)(f(l), e.formItem.keyName)
3833
3833
  }, null, 8, ["modelValue"])) : R("", !0),
3834
- e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), I(wn, {
3834
+ e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), L(wn, {
3835
3835
  key: 1,
3836
3836
  formItem: e.formItem,
3837
- inputType: (w = (g = e.formItem) == null ? void 0 : g.inputType) == null ? void 0 : w.toLowerCase(),
3837
+ inputType: (y = (w = e.formItem) == null ? void 0 : w.inputType) == null ? void 0 : y.toLowerCase(),
3838
3838
  modelValue: f(re)(f(l), e.formItem.keyName),
3839
3839
  placeholder: f(N),
3840
3840
  disabled: f(u),
3841
- "onUpdate:modelValue": h[0] || (h[0] = (L) => s(e.formItem.keyName, L))
3841
+ "onUpdate:modelValue": h[0] || (h[0] = (k) => s(e.formItem.keyName, k))
3842
3842
  }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : R("", !0),
3843
- e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), I(wn, {
3843
+ e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), L(wn, {
3844
3844
  key: 2,
3845
3845
  formItem: e.formItem,
3846
3846
  inputType: e.formItem.inputType.toLowerCase(),
3847
3847
  modelValue: f(re)(f(l), "rePassword"),
3848
3848
  placeholder: f(N),
3849
3849
  disabled: f(u),
3850
- "onUpdate:modelValue": h[1] || (h[1] = (L) => s("rePassword", L))
3850
+ "onUpdate:modelValue": h[1] || (h[1] = (k) => s("rePassword", k))
3851
3851
  }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : R("", !0),
3852
- e.formItem.itemType === "check_box" ? (p(), I(Co, {
3852
+ e.formItem.itemType === "check_box" ? (p(), L(Co, {
3853
3853
  key: 3,
3854
3854
  modelValue: f(re)(f(l), e.formItem.keyName, !1),
3855
3855
  disabled: f(u),
3856
- "onUpdate:modelValue": h[2] || (h[2] = (L) => s(e.formItem.keyName, L))
3856
+ "onUpdate:modelValue": h[2] || (h[2] = (k) => s(e.formItem.keyName, k))
3857
3857
  }, null, 8, ["modelValue", "disabled"])) : R("", !0),
3858
- e.formItem.itemType === "switch" ? (p(), I(Mo, {
3858
+ e.formItem.itemType === "switch" ? (p(), L(Mo, {
3859
3859
  key: 4,
3860
3860
  formItem: e.formItem,
3861
3861
  viewName: e.viewName,
3862
3862
  modelValue: f(re)(f(l), e.formItem.keyName, !1),
3863
3863
  disabled: f(u),
3864
- "onUpdate:modelValue": h[3] || (h[3] = (L) => s(e.formItem.keyName, L))
3864
+ "onUpdate:modelValue": h[3] || (h[3] = (k) => s(e.formItem.keyName, k))
3865
3865
  }, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : R("", !0),
3866
- e.formItem.itemType === "radio" ? (p(), I(ko, {
3866
+ e.formItem.itemType === "radio" ? (p(), L(ko, {
3867
3867
  key: 5,
3868
3868
  modelValue: f(re)(f(l), e.formItem.keyName),
3869
3869
  formItem: e.formItem,
3870
3870
  viewName: e.viewName,
3871
3871
  disabled: f(u),
3872
- "onUpdate:modelValue": h[4] || (h[4] = (L) => s(e.formItem.keyName, L))
3872
+ "onUpdate:modelValue": h[4] || (h[4] = (k) => s(e.formItem.keyName, k))
3873
3873
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : R("", !0),
3874
- e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (p(), I(Io, {
3875
- key: (v = e.formItem.listData) == null ? void 0 : v.dataId,
3874
+ e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (p(), L(Io, {
3875
+ key: (g = e.formItem.listData) == null ? void 0 : g.dataId,
3876
3876
  modelValue: f(re)(f(l), e.formItem.keyName),
3877
3877
  formItem: e.formItem,
3878
3878
  viewName: e.viewName,
3879
3879
  multiple: e.formItem.itemType === "multi_selector",
3880
3880
  disabled: f(u),
3881
3881
  placeholder: f(N),
3882
- "onUpdate:modelValue": h[5] || (h[5] = (L) => s(e.formItem.keyName, L))
3882
+ "onUpdate:modelValue": h[5] || (h[5] = (k) => s(e.formItem.keyName, k))
3883
3883
  }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : R("", !0),
3884
- e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (p(), I(Lo, {
3884
+ e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (p(), L(Lo, {
3885
3885
  key: 7,
3886
3886
  modelValue: f(re)(f(l), e.formItem.keyName),
3887
3887
  formItem: e.formItem,
3888
3888
  viewName: e.viewName,
3889
3889
  disabled: f(u),
3890
3890
  placeholder: f(N),
3891
- "onUpdate:modelValue": h[6] || (h[6] = (L) => s(e.formItem.keyName, L))
3891
+ "onUpdate:modelValue": h[6] || (h[6] = (k) => s(e.formItem.keyName, k))
3892
3892
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : R("", !0),
3893
- e.formItem.itemType == "delay_selector" ? (p(), I(ql, {
3893
+ e.formItem.itemType == "delay_selector" ? (p(), L(ql, {
3894
3894
  key: 8,
3895
3895
  modelValue: f(re)(f(l), e.formItem.keyName),
3896
3896
  formItem: e.formItem,
3897
3897
  viewName: e.viewName,
3898
3898
  disabled: f(u),
3899
3899
  placeholder: f(N),
3900
- "onUpdate:modelValue": h[7] || (h[7] = (L) => s(e.formItem.keyName, L))
3900
+ "onUpdate:modelValue": h[7] || (h[7] = (k) => s(e.formItem.keyName, k))
3901
3901
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : R("", !0),
3902
- e.formItem.itemType === "tree_check_box" ? (p(), I(No, {
3902
+ e.formItem.itemType === "tree_check_box" ? (p(), L(No, {
3903
3903
  key: 9,
3904
3904
  modelValue: f(re)(f(l), e.formItem.keyName),
3905
3905
  formItem: e.formItem,
3906
3906
  viewName: e.viewName,
3907
3907
  disabled: f(u),
3908
3908
  placeholder: f(N),
3909
- "onUpdate:modelValue": h[8] || (h[8] = (L) => s(e.formItem.keyName, L))
3909
+ "onUpdate:modelValue": h[8] || (h[8] = (k) => s(e.formItem.keyName, k))
3910
3910
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : R("", !0),
3911
- e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (p(), I(xo, {
3911
+ e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (p(), L(xo, {
3912
3912
  key: 10,
3913
3913
  modelValue: f(re)(f(l), e.formItem.keyName),
3914
3914
  formItem: e.formItem,
@@ -3916,36 +3916,36 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3916
3916
  multiple: e.formItem.itemType === "multi_tree_selector",
3917
3917
  disabled: f(u),
3918
3918
  placeholder: f(N),
3919
- "onUpdate:modelValue": h[9] || (h[9] = (L) => s(e.formItem.keyName, L))
3919
+ "onUpdate:modelValue": h[9] || (h[9] = (k) => s(e.formItem.keyName, k))
3920
3920
  }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : R("", !0),
3921
- e.formItem.itemType === "file" ? (p(), I(So, {
3921
+ e.formItem.itemType === "file" ? (p(), L(So, {
3922
3922
  key: 11,
3923
3923
  modelValue: f(re)(f(l), e.formItem.keyName),
3924
3924
  formItem: e.formItem,
3925
3925
  viewName: e.viewName,
3926
3926
  disabled: f(u),
3927
3927
  placeholder: f(N),
3928
- fileName: e.formItem.fileUploadType == "file" ? f(re)(f(l), e.formItem.filenameKeyName) || ((y = f(re)(f(l), e.formItem.keyName)) == null ? void 0 : y.split("/").slice(-1)[0]) : "",
3929
- "onUpdate:fileName": h[10] || (h[10] = (L) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, L)),
3930
- "onUpdate:modelValue": h[11] || (h[11] = (L) => s(e.formItem.keyName, L))
3928
+ fileName: e.formItem.fileUploadType == "file" ? f(re)(f(l), e.formItem.filenameKeyName) || ((v = f(re)(f(l), e.formItem.keyName)) == null ? void 0 : v.split("/").slice(-1)[0]) : "",
3929
+ "onUpdate:fileName": h[10] || (h[10] = (k) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, k)),
3930
+ "onUpdate:modelValue": h[11] || (h[11] = (k) => s(e.formItem.keyName, k))
3931
3931
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder", "fileName"])) : R("", !0),
3932
- e.formItem.itemType === "tag" ? (p(), I(Yl, {
3932
+ e.formItem.itemType === "tag" ? (p(), L(Yl, {
3933
3933
  key: 12,
3934
3934
  modelValue: f(re)(f(l), e.formItem.keyName),
3935
3935
  formItem: e.formItem,
3936
3936
  viewName: e.viewName,
3937
3937
  disabled: f(u),
3938
3938
  placeholder: f(N),
3939
- "onUpdate:modelValue": h[12] || (h[12] = (L) => s(e.formItem.keyName, L))
3939
+ "onUpdate:modelValue": h[12] || (h[12] = (k) => s(e.formItem.keyName, k))
3940
3940
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : R("", !0),
3941
- e.formItem.itemType === "rich_text" ? (p(), I(Xl, {
3941
+ e.formItem.itemType === "rich_text" ? (p(), L(Xl, {
3942
3942
  key: 13,
3943
3943
  modelValue: f(re)(f(l), e.formItem.keyName),
3944
3944
  formItem: e.formItem,
3945
3945
  viewName: e.viewName,
3946
3946
  disabled: f(u),
3947
3947
  placeholder: f(N),
3948
- "onUpdate:modelValue": h[13] || (h[13] = (L) => s(e.formItem.keyName, L))
3948
+ "onUpdate:modelValue": h[13] || (h[13] = (k) => s(e.formItem.keyName, k))
3949
3949
  }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : R("", !0)
3950
3950
  ];
3951
3951
  }),
@@ -3956,7 +3956,7 @@ const Zl = ["id"], Jl = /* @__PURE__ */ ee({
3956
3956
  };
3957
3957
  }
3958
3958
  });
3959
- const Do = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-6b43df92"]]), er = /* @__PURE__ */ ee({
3959
+ const Do = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-3a07e2bb"]]), er = /* @__PURE__ */ ee({
3960
3960
  __name: "index",
3961
3961
  props: {
3962
3962
  viewName: null,
@@ -3979,22 +3979,22 @@ const Do = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-6b43df92"]]), er = /* @
3979
3979
  function s(u, c) {
3980
3980
  Je(r.value, u, c), i.value && clearTimeout(i.value), i.value = setTimeout(() => {
3981
3981
  Object.keys(r.value).forEach((d) => {
3982
- (r.value[d] ?? "") == "" && delete r.value[d];
3982
+ (r.value[d] === "" || r.value[d] === null) && delete r.value[d];
3983
3983
  }), n("header-filter-change", r.value);
3984
3984
  }, 500);
3985
3985
  }
3986
3986
  return (u, c) => {
3987
3987
  const d = G("t-button");
3988
- return p(), I(f(go), null, bt({
3988
+ return p(), L(f(go), null, bt({
3989
3989
  "left-operations": C(() => [
3990
3990
  (p(!0), W(Me, null, xe(f(o), (m) => (p(), W(Me, {
3991
3991
  key: m.buttonId
3992
3992
  }, [
3993
- m.action == "UPLOAD_FILE" ? (p(), I($l, {
3993
+ m.action == "UPLOAD_FILE" ? (p(), L($l, {
3994
3994
  key: 0,
3995
3995
  button: m,
3996
3996
  viewName: e.viewName
3997
- }, null, 8, ["button", "viewName"])) : (p(), I(d, {
3997
+ }, null, 8, ["button", "viewName"])) : (p(), L(d, {
3998
3998
  key: 1,
3999
3999
  theme: "primary",
4000
4000
  onClick: (b) => a(m)
@@ -4030,7 +4030,7 @@ const Do = /* @__PURE__ */ je(Jl, [["__scopeId", "data-v-6b43df92"]]), er = /* @
4030
4030
  };
4031
4031
  }
4032
4032
  });
4033
- const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id"], or = /* @__PURE__ */ ee({
4033
+ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-b7fdaa3f"]]), nr = ["id"], or = /* @__PURE__ */ ee({
4034
4034
  __name: "GFormBlock",
4035
4035
  props: {
4036
4036
  name: null,
@@ -4077,113 +4077,113 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4077
4077
  },
4078
4078
  emits: ["confirm-form", "confirm-and-close", "close-dialog"],
4079
4079
  setup(e, { emit: n }) {
4080
- const t = e, o = E(() => {
4081
- var g;
4082
- return (g = t.board) == null ? void 0 : g.formItems;
4083
- }), a = H({}), { handleItemShowIf: l } = _o({ formModel: a });
4080
+ const t = e, o = E(() => "280px"), a = E(() => {
4081
+ var y;
4082
+ return (y = t.board) == null ? void 0 : y.formItems;
4083
+ }), l = H({}), { handleItemShowIf: r } = _o({ formModel: l });
4084
4084
  Te(
4085
4085
  () => t.formData,
4086
4086
  () => {
4087
- a.value = xn(t.formData, o.value);
4087
+ l.value = xn(t.formData, a.value);
4088
4088
  },
4089
4089
  {
4090
4090
  immediate: !0,
4091
4091
  deep: !0
4092
4092
  }
4093
4093
  );
4094
- const r = H(), i = E(() => {
4095
- var g;
4096
- return (g = r.value) == null ? void 0 : g.tFormRef;
4097
- }), s = H({});
4098
- async function u() {
4099
- let g = [];
4100
- return c.value && (g = c == null ? void 0 : c.value.map((w) => {
4101
- const { formItem: v } = w, y = [];
4102
- return v.required && v.keyName && y.push({
4094
+ const i = H(), s = E(() => {
4095
+ var y;
4096
+ return (y = i.value) == null ? void 0 : y.tFormRef;
4097
+ }), u = H({});
4098
+ async function c() {
4099
+ let y = [];
4100
+ return d.value && (y = d == null ? void 0 : d.value.map((g) => {
4101
+ const { formItem: v } = g, k = [];
4102
+ return v.required && v.keyName && k.push({
4103
4103
  validator: () => {
4104
- const L = re(a.value, v.keyName);
4105
- return mo(L) ? {
4104
+ const _ = re(l.value, v.keyName);
4105
+ return mo(_) ? {
4106
4106
  result: !1,
4107
4107
  message: `${v.name.replace(/\s/g, "").replace(/[::;\s]/g, "")}为必填项!`
4108
4108
  } : { result: !0 };
4109
4109
  },
4110
4110
  trigger: "blur"
4111
- }), v.inputType === "RE_PASSWORD" && y.push({
4111
+ }), v.inputType === "RE_PASSWORD" && k.push({
4112
4112
  validator: () => ({
4113
- result: re(a.value, "password") === re(a.value, "rePassword"),
4113
+ result: re(l.value, "password") === re(l.value, "rePassword"),
4114
4114
  message: "两次输入密码不一致!"
4115
4115
  }),
4116
4116
  trigger: "blur"
4117
- }), (v.keyName === "startTime" || v.keyName === "endTime") && y.push({
4117
+ }), (v.keyName === "startTime" || v.keyName === "endTime") && k.push({
4118
4118
  validator: () => ({
4119
- result: re(a.value, "endTime") - re(a.value, "startTime") > 0,
4119
+ result: re(l.value, "endTime") - re(l.value, "startTime") > 0,
4120
4120
  message: "结束时间不能早于开始时间!"
4121
4121
  })
4122
4122
  }), {
4123
4123
  keyName: v.inputType !== "RE_PASSWORD" ? v.keyName : "rePassword",
4124
- rules: y
4124
+ rules: k
4125
4125
  };
4126
- })), g == null ? void 0 : g.reduce((w, v) => (v.rules.length && (w[v.keyName] = v.rules), w), {});
4126
+ })), y == null ? void 0 : y.reduce((g, v) => (v.rules.length && (g[v.keyName] = v.rules), g), {});
4127
4127
  }
4128
- const c = H(), d = H();
4129
- function m(g, w, v) {
4130
- c.value && c.value.forEach((y) => {
4131
- y.formItemId && w.includes(y.formItemId) && y.$el.classList.contains(g) && y.setBlockShowFlag(v);
4128
+ const d = H(), m = H();
4129
+ function b(y, g, v) {
4130
+ d.value && d.value.forEach((k) => {
4131
+ k.formItemId && g.includes(k.formItemId) && k.$el.classList.contains(y) && k.setBlockShowFlag(v);
4132
4132
  });
4133
4133
  }
4134
4134
  pt(async () => {
4135
- s.value = await u();
4135
+ u.value = await c();
4136
4136
  });
4137
- function b(g, w) {
4138
- Je(a.value, g, w), i.value && x([g]);
4139
- }
4140
- async function x(g = []) {
4141
- var y;
4142
- const w = N();
4143
- return (g.length ? g.some((L) => w.includes(L)) : !0) ? (y = i.value) == null ? void 0 : y.validate({
4144
- fields: g.length ? g : w
4137
+ function S(y, g) {
4138
+ Je(l.value, y, g), s.value && N([y]);
4139
+ }
4140
+ async function N(y = []) {
4141
+ var k;
4142
+ const g = B();
4143
+ return (y.length ? y.some((_) => g.includes(_)) : !0) ? (k = s.value) == null ? void 0 : k.validate({
4144
+ fields: y.length ? y : g
4145
4145
  }) : Promise.resolve({});
4146
4146
  }
4147
- const N = () => {
4148
- var g;
4149
- return (g = c == null ? void 0 : c.value) == null ? void 0 : g.flatMap((w) => {
4150
- const { formItem: v } = w;
4151
- return (v.keyName ?? "") != "" && !w.getDisableFlag() ? v.inputType !== "RE_PASSWORD" ? v.keyName : "rePassword" : [];
4147
+ const B = () => {
4148
+ var y;
4149
+ return (y = d == null ? void 0 : d.value) == null ? void 0 : y.flatMap((g) => {
4150
+ const { formItem: v } = g;
4151
+ return (v.keyName ?? "") != "" && !g.getDisableFlag() ? v.inputType !== "RE_PASSWORD" ? v.keyName : "rePassword" : [];
4152
4152
  });
4153
- }, P = E(() => {
4154
- var g;
4155
- return (g = t.board) == null ? void 0 : g.okButton;
4156
- }), h = E(() => {
4157
- var g;
4158
- return (g = t.board) == null ? void 0 : g.cancelButton;
4153
+ }, h = E(() => {
4154
+ var y;
4155
+ return (y = t.board) == null ? void 0 : y.okButton;
4156
+ }), M = E(() => {
4157
+ var y;
4158
+ return (y = t.board) == null ? void 0 : y.cancelButton;
4159
4159
  });
4160
- function M(g) {
4161
- for (const w in g) {
4162
- const v = g[w].find((y) => y.result === !1);
4160
+ function T(y) {
4161
+ for (const g in y) {
4162
+ const v = y[g].find((k) => k.result === !1);
4163
4163
  if (v)
4164
4164
  return { ...v };
4165
4165
  }
4166
4166
  return null;
4167
4167
  }
4168
- function T(g) {
4169
- switch (g.action) {
4168
+ function w(y) {
4169
+ switch (y.action) {
4170
4170
  case "CONFIRM": {
4171
- x().then((w) => {
4172
- if (!Object.keys(w).length)
4173
- n("confirm-form", Ht(a.value), g.buttonId);
4171
+ N().then((g) => {
4172
+ if (!Object.keys(g).length)
4173
+ n("confirm-form", Ht(l.value), y.buttonId);
4174
4174
  else {
4175
- const v = M(w);
4175
+ const v = T(g);
4176
4176
  oe.warning(v == null ? void 0 : v.message);
4177
4177
  }
4178
4178
  });
4179
4179
  break;
4180
4180
  }
4181
4181
  case "CONFIRM_AND_CLOSE": {
4182
- x().then((w) => {
4183
- if (!Object.keys(w).length)
4184
- n("confirm-and-close", Ht(a.value), g.buttonId);
4182
+ N().then((g) => {
4183
+ if (!Object.keys(g).length)
4184
+ n("confirm-and-close", Ht(l.value), y.buttonId);
4185
4185
  else {
4186
- const v = M(w);
4186
+ const v = T(g);
4187
4187
  oe.warning(v == null ? void 0 : v.message);
4188
4188
  }
4189
4189
  });
@@ -4194,73 +4194,73 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4194
4194
  break;
4195
4195
  }
4196
4196
  default: {
4197
- console.log(g);
4197
+ console.log(y);
4198
4198
  break;
4199
4199
  }
4200
4200
  }
4201
4201
  }
4202
- return (g, w) => {
4202
+ return (y, g) => {
4203
4203
  const v = G("t-button");
4204
- return p(), I(f(po), {
4204
+ return p(), L(f(po), {
4205
4205
  ref_key: "commonFormRef",
4206
- ref: r,
4206
+ ref: i,
4207
4207
  commonFormProps: {
4208
- data: a.value,
4209
- rules: s.value,
4208
+ data: l.value,
4209
+ rules: u.value,
4210
4210
  labelAlign: "right",
4211
- labelWidth: "205px"
4211
+ labelWidth: f(o)
4212
4212
  }
4213
4213
  }, {
4214
4214
  body: C(() => [
4215
- (p(!0), W(Me, null, xe(f(o), (y) => (p(), W(Me, {
4216
- key: `${y.name}_${y.keyName}`
4215
+ (p(!0), W(Me, null, xe(f(a), (k) => (p(), W(Me, {
4216
+ key: `${k.name}_${k.keyName}`
4217
4217
  }, [
4218
- y.itemType === "block_start" || y.itemType === "block_end" ? (p(), I(or, {
4218
+ k.itemType === "block_start" || k.itemType === "block_end" ? (p(), L(or, {
4219
4219
  key: 0,
4220
4220
  ref_for: !0,
4221
4221
  ref_key: "formBlockRef",
4222
- ref: d,
4223
- name: y.name,
4224
- blockType: y.itemType,
4225
- showIf: f(l)(y.showIf),
4226
- onBlockShowIfChange: m
4227
- }, null, 8, ["name", "blockType", "showIf"])) : (p(), I(Do, {
4222
+ ref: m,
4223
+ name: k.name,
4224
+ blockType: k.itemType,
4225
+ showIf: f(r)(k.showIf),
4226
+ onBlockShowIfChange: b
4227
+ }, null, 8, ["name", "blockType", "showIf"])) : (p(), L(Do, {
4228
4228
  key: 1,
4229
4229
  ref_for: !0,
4230
4230
  ref_key: "formItemRef",
4231
- ref: c,
4232
- formModel: a.value,
4233
- formItem: y,
4231
+ ref: d,
4232
+ formModel: l.value,
4233
+ formItem: k,
4234
4234
  viewName: e.viewName,
4235
- onAfterUpdateValue: b
4235
+ onAfterUpdateValue: S
4236
4236
  }, null, 8, ["formModel", "formItem", "viewName"]))
4237
4237
  ], 64))), 128))
4238
4238
  ]),
4239
4239
  footer: C(() => {
4240
- var y, L;
4240
+ var k, _;
4241
4241
  return [
4242
- f(h) && ((y = f(h)) == null ? void 0 : y.name) !== "" ? (p(), I(v, {
4242
+ f(M) && ((k = f(M)) == null ? void 0 : k.name) !== "" ? (p(), L(v, {
4243
4243
  key: 0,
4244
4244
  theme: "default",
4245
- onClick: w[0] || (w[0] = (_) => f(h) && T(f(h)))
4245
+ onClick: g[0] || (g[0] = (P) => f(M) && w(f(M)))
4246
4246
  }, {
4247
4247
  default: C(() => {
4248
- var _;
4248
+ var P;
4249
4249
  return [
4250
- ne(we((_ = f(h)) == null ? void 0 : _.name), 1)
4250
+ ne(we((P = f(M)) == null ? void 0 : P.name), 1)
4251
4251
  ];
4252
4252
  }),
4253
4253
  _: 1
4254
4254
  })) : R("", !0),
4255
- f(P) && ((L = f(P)) == null ? void 0 : L.name) !== "" ? (p(), I(v, {
4255
+ f(h) && ((_ = f(h)) == null ? void 0 : _.name) !== "" ? (p(), L(v, {
4256
4256
  key: 1,
4257
4257
  theme: "primary",
4258
- onClick: w[1] || (w[1] = (_) => f(P) && T(f(P)))
4258
+ onClick: g[1] || (g[1] = (P) => f(h) && w(f(h)))
4259
4259
  }, {
4260
4260
  default: C(() => {
4261
- var _;
4261
+ var P;
4262
4262
  return [
4263
- ne(we((_ = f(P)) == null ? void 0 : _.name), 1)
4263
+ ne(we((P = f(h)) == null ? void 0 : P.name), 1)
4264
4264
  ];
4265
4265
  }),
4266
4266
  _: 1
@@ -4298,11 +4298,11 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4298
4298
  return p(), W("div", {
4299
4299
  key: c.keyName
4300
4300
  }, [
4301
- c.itemType === "label" ? (p(), I(wo, {
4301
+ c.itemType === "label" ? (p(), L(wo, {
4302
4302
  key: 0,
4303
4303
  modelValue: f(re)(f(l), e.col.colKey)
4304
4304
  }, null, 8, ["modelValue"])) : R("", !0),
4305
- c.itemType == "text_input" ? (p(), I(wn, {
4305
+ c.itemType == "text_input" ? (p(), L(wn, {
4306
4306
  key: 1,
4307
4307
  formItem: c,
4308
4308
  viewName: e.viewName,
@@ -4312,7 +4312,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4312
4312
  "onUpdate:modelValue": u[0] || (u[0] = (m) => e.col.colKey && r(e.col.colKey, m)),
4313
4313
  "onBlur:modelValue": (m) => i(c)
4314
4314
  }, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : R("", !0),
4315
- c.itemType === "check_box" ? (p(), I(Co, {
4315
+ c.itemType === "check_box" ? (p(), L(Co, {
4316
4316
  key: 2,
4317
4317
  formItem: c,
4318
4318
  viewName: e.viewName,
@@ -4321,7 +4321,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4321
4321
  "onUpdate:modelValue": u[1] || (u[1] = (m) => e.col.colKey && r(e.col.colKey, m)),
4322
4322
  "onBlur:modelValue": (m) => i(c)
4323
4323
  }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : R("", !0),
4324
- c.itemType === "switch" ? (p(), I(Mo, {
4324
+ c.itemType === "switch" ? (p(), L(Mo, {
4325
4325
  key: 3,
4326
4326
  formItem: c,
4327
4327
  viewName: e.viewName,
@@ -4330,7 +4330,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4330
4330
  "onUpdate:modelValue": u[2] || (u[2] = (m) => e.col.colKey && r(e.col.colKey, m)),
4331
4331
  "onBlur:modelValue": (m) => i(c)
4332
4332
  }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : R("", !0),
4333
- c.itemType === "radio" ? (p(), I(ko, {
4333
+ c.itemType === "radio" ? (p(), L(ko, {
4334
4334
  key: 4,
4335
4335
  originValue: f(re)(e.row, e.col.colKey),
4336
4336
  modelValue: f(re)(f(l), e.col.colKey),
@@ -4339,7 +4339,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4339
4339
  "onUpdate:modelValue": u[3] || (u[3] = (m) => e.col.colKey && r(e.col.colKey, m)),
4340
4340
  "onBlur:modelValue": (m) => i(c)
4341
4341
  }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : R("", !0),
4342
- c.itemType === "selector" || c.itemType === "multi_selector" ? (p(), I(Io, {
4342
+ c.itemType === "selector" || c.itemType === "multi_selector" ? (p(), L(Io, {
4343
4343
  key: 5,
4344
4344
  originValue: f(re)(e.row, e.col.colKey),
4345
4345
  modelValue: f(re)(f(l), e.col.colKey),
@@ -4349,7 +4349,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4349
4349
  "onUpdate:modelValue": u[4] || (u[4] = (m) => e.col.colKey && r(e.col.colKey, m)),
4350
4350
  "onBlur:modelValue": (m) => i(c)
4351
4351
  }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : R("", !0),
4352
- c.itemType === "date_selector" || c.itemType === "time_selector" || c.itemType === "date_time_selector" ? (p(), I(Lo, {
4352
+ c.itemType === "date_selector" || c.itemType === "time_selector" || c.itemType === "date_time_selector" ? (p(), L(Lo, {
4353
4353
  key: 6,
4354
4354
  originValue: f(re)(e.row, e.col.colKey),
4355
4355
  modelValue: f(re)(f(l), e.col.colKey),
@@ -4358,7 +4358,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4358
4358
  "onUpdate:modelValue": u[5] || (u[5] = (m) => e.col.colKey && r(e.col.colKey, m)),
4359
4359
  "onBlur:modelValue": (m) => i(c)
4360
4360
  }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : R("", !0),
4361
- c.itemType === "tree_check_box" ? (p(), I(No, {
4361
+ c.itemType === "tree_check_box" ? (p(), L(No, {
4362
4362
  key: 7,
4363
4363
  originValue: f(re)(e.row, e.col.colKey),
4364
4364
  modelValue: f(re)(f(l), e.col.colKey),
@@ -4367,7 +4367,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4367
4367
  "onUpdate:modelValue": u[6] || (u[6] = (m) => e.col.colKey && r(e.col.colKey, m)),
4368
4368
  "onBlur:modelValue": (m) => i(c)
4369
4369
  }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : R("", !0),
4370
- c.itemType === "multi_tree_selector" || c.itemType === "tree_selector" ? (p(), I(xo, {
4370
+ c.itemType === "multi_tree_selector" || c.itemType === "tree_selector" ? (p(), L(xo, {
4371
4371
  key: 8,
4372
4372
  originValue: f(re)(e.row, e.col.colKey),
4373
4373
  modelValue: f(re)(f(l), e.col.colKey),
@@ -4377,7 +4377,7 @@ const tr = /* @__PURE__ */ je(er, [["__scopeId", "data-v-63f59cd7"]]), nr = ["id
4377
4377
  "onUpdate:modelValue": u[7] || (u[7] = (m) => e.col.colKey && r(e.col.colKey, m)),
4378
4378
  "onBlur:modelValue": (m) => i(c)
4379
4379
  }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : R("", !0),
4380
- c.itemType === "file" ? (p(), I(So, {
4380
+ c.itemType === "file" ? (p(), L(So, {
4381
4381
  key: 9,
4382
4382
  modelValue: f(re)(f(l), e.col.colKey),
4383
4383
  formItem: c,
@@ -4496,10 +4496,10 @@ var dt = {
4496
4496
  break;
4497
4497
  m === 47 && (c = d);
4498
4498
  }
4499
- var x = "";
4499
+ var S = "";
4500
4500
  for (d = o + c + 1; d <= a; ++d)
4501
- (d === a || n.charCodeAt(d) === 47) && (x.length === 0 ? x += ".." : x += "/..");
4502
- return x.length > 0 ? x + t.slice(r + c) : (r += c, t.charCodeAt(r) === 47 && ++r, t.slice(r));
4501
+ (d === a || n.charCodeAt(d) === 47) && (S.length === 0 ? S += ".." : S += "/..");
4502
+ return S.length > 0 ? S + t.slice(r + c) : (r += c, t.charCodeAt(r) === 47 && ++r, t.slice(r));
4503
4503
  },
4504
4504
  _makeLong: function(n) {
4505
4505
  return n;
@@ -4628,38 +4628,38 @@ function cr(e, {
4628
4628
  outline: s,
4629
4629
  archive: b
4630
4630
  } = {}) {
4631
- var { fromMime: c, toMime: d, expected: m } = new ur(), b = b || "canvas", x = N || t.replace(/@\d+x$/i, "") || sr(n), N = c(d(x) || x), P = d(N), h = e.length;
4632
- if (!x)
4631
+ var { fromMime: c, toMime: d, expected: m } = new ur(), b = b || "canvas", S = N || t.replace(/@\d+x$/i, "") || sr(n), N = c(d(S) || S), B = d(N), h = e.length;
4632
+ if (!S)
4633
4633
  throw new Error(
4634
4634
  "Cannot determine image format (use a filename extension or 'format' argument)"
4635
4635
  );
4636
4636
  if (!N)
4637
- throw new Error(`Unsupported file format "${x}" (expected ${m})`);
4637
+ throw new Error(`Unsupported file format "${S}" (expected ${m})`);
4638
4638
  if (!h)
4639
4639
  throw new RangeError(
4640
4640
  "Canvas has no associated contexts (try calling getContext or newPage first)"
4641
4641
  );
4642
- let M, T, g = n.replace(/{(\d*)}/g, (v, y) => (T = !0, y = parseInt(y, 10), M = isFinite(y) ? y : isFinite(M) ? M : -1, "{}")), w = a > 0 ? a - 1 : a < 0 ? h + a : void 0;
4643
- if (isFinite(w) && w < 0 || w >= h)
4642
+ let M, T, w = n.replace(/{(\d*)}/g, (g, v) => (T = !0, v = parseInt(v, 10), M = isFinite(v) ? v : isFinite(M) ? M : -1, "{}")), y = a > 0 ? a - 1 : a < 0 ? h + a : void 0;
4643
+ if (isFinite(y) && y < 0 || y >= h)
4644
4644
  throw new RangeError(
4645
- h == 1 ? `Canvas only has a ‘page 1’ (${w} is out of bounds)` : `Canvas has pages 1–${h} (${w} is out of bounds)`
4645
+ h == 1 ? `Canvas only has a ‘page 1’ (${y} is out of bounds)` : `Canvas has pages 1–${h} (${y} is out of bounds)`
4646
4646
  );
4647
- if (e = isFinite(w) ? [e[w]] : T || N == "pdf" ? e : e.slice(-1), l === void 0)
4647
+ if (e = isFinite(y) ? [e[y]] : T || N == "pdf" ? e : e.slice(-1), l === void 0)
4648
4648
  l = 0.92;
4649
4649
  else if (typeof l != "number" || !isFinite(l) || l < 0 || l > 1)
4650
4650
  throw new TypeError(
4651
4651
  "The quality option must be an number in the 0.0–1.0 range"
4652
4652
  );
4653
4653
  if (i === void 0) {
4654
- let v = (t || Vo(n, x)).match(/@(\d+)x$/i);
4655
- i = v ? parseInt(v[1], 10) : 1;
4654
+ let g = (t || Vo(n, S)).match(/@(\d+)x$/i);
4655
+ i = g ? parseInt(g[1], 10) : 1;
4656
4656
  } else if (typeof i != "number" || !Number.isInteger(i) || i < 1)
4657
4657
  throw new TypeError("The density option must be a non-negative integer");
4658
4658
  return s === void 0 ? s = !0 : N == "svg" && (s = !!s), {
4659
4659
  filename: n,
4660
- pattern: g,
4660
+ pattern: w,
4661
4661
  format: N,
4662
- mime: P,
4662
+ mime: B,
4663
4663
  pages: e,
4664
4664
  padding: M,
4665
4665
  quality: l,
@@ -4809,27 +4809,27 @@ let br = class {
4809
4809
  },
4810
4810
  saveAs(i, s) {
4811
4811
  s = typeof s == "number" ? { quality: s } : s;
4812
- let u = hn(this.pages, { filename: i, ...s }), { pattern: c, padding: d, mime: m, quality: b, matte: x, density: N, archive: P } = u, h = fn(u.pages, N);
4813
- return d == null ? gr(h[0], m, b, x, i) : vr(
4812
+ let u = hn(this.pages, { filename: i, ...s }), { pattern: c, padding: d, mime: m, quality: b, matte: S, density: N, archive: B } = u, h = fn(u.pages, N);
4813
+ return d == null ? gr(h[0], m, b, S, i) : vr(
4814
4814
  h,
4815
4815
  m,
4816
4816
  b,
4817
- x,
4818
- P,
4817
+ S,
4818
+ B,
4819
4819
  c,
4820
4820
  d
4821
4821
  );
4822
4822
  },
4823
4823
  toBuffer(i = "png", s = {}) {
4824
4824
  s = typeof s == "number" ? { quality: s } : s;
4825
- let u = hn(this.pages, { extension: i, ...s }), { mime: c, quality: d, matte: m, pages: b, density: x } = u, N = fn(b, x, m)[0];
4825
+ let u = hn(this.pages, { extension: i, ...s }), { mime: c, quality: d, matte: m, pages: b, density: S } = u, N = fn(b, S, m)[0];
4826
4826
  return mn(N, c, d, m);
4827
4827
  },
4828
4828
  [Kn]: o.toDataURL.bind(o),
4829
4829
  toDataURL(i = "png", s = {}) {
4830
4830
  s = typeof s == "number" ? { quality: s } : s;
4831
- let u = hn(this.pages, { extension: i, ...s }), { mime: c, quality: d, matte: m, pages: b, density: x } = u, N = fn(b, x, m)[0], P = N[N === o ? Kn : "toDataURL"](c, d);
4832
- return Promise.resolve(P);
4831
+ let u = hn(this.pages, { extension: i, ...s }), { mime: c, quality: d, matte: m, pages: b, density: S } = u, N = fn(b, S, m)[0], B = N[N === o ? Kn : "toDataURL"](c, d);
4832
+ return Promise.resolve(B);
4833
4833
  }
4834
4834
  });
4835
4835
  }
@@ -5056,36 +5056,36 @@ const Vr = ht(
5056
5056
  return t;
5057
5057
  }, Or = (e, n, t) => {
5058
5058
  const l = t;
5059
- var r, i, s, u, c, d, m, w, b, x, g, N, v, y, _, L;
5060
- const P = new Array(t), h = new Array(4096), M = new Array(4096), T = new Array(4096 + 1);
5059
+ var r, i, s, u, c, d, m, y, b, S, w, N, g, v, _, k;
5060
+ const B = new Array(t), h = new Array(4096), M = new Array(4096), T = new Array(4096 + 1);
5061
5061
  for (N = e, i = 1 << N, c = i + 1, r = i + 2, m = -1, u = N + 1, s = (1 << u) - 1, b = 0; b < i; b++)
5062
5062
  h[b] = 0, M[b] = b;
5063
- var g, w, v, y, L, _;
5064
- for (g = w = v = y = L = _ = 0, x = 0; x < l; ) {
5065
- if (y === 0) {
5066
- if (w < u) {
5067
- g += n[_] << w, w += 8, _++;
5063
+ var w, y, g, v, k, _;
5064
+ for (w = y = g = v = k = _ = 0, S = 0; S < l; ) {
5065
+ if (v === 0) {
5066
+ if (y < u) {
5067
+ w += n[_] << y, y += 8, _++;
5068
5068
  continue;
5069
5069
  }
5070
- if (b = g & s, g >>= u, w -= u, b > r || b == c)
5070
+ if (b = w & s, w >>= u, y -= u, b > r || b == c)
5071
5071
  break;
5072
5072
  if (b == i) {
5073
5073
  u = N + 1, s = (1 << u) - 1, r = i + 2, m = -1;
5074
5074
  continue;
5075
5075
  }
5076
5076
  if (m == -1) {
5077
- T[y++] = M[b], m = b, v = b;
5077
+ T[v++] = M[b], m = b, g = b;
5078
5078
  continue;
5079
5079
  }
5080
- for (d = b, b == r && (T[y++] = v, b = m); b > i; )
5081
- T[y++] = M[b], b = h[b];
5082
- v = M[b] & 255, T[y++] = v, r < 4096 && (h[r] = m, M[r] = v, r++, !(r & s) && r < 4096 && (u++, s += r)), m = d;
5080
+ for (d = b, b == r && (T[v++] = g, b = m); b > i; )
5081
+ T[v++] = M[b], b = h[b];
5082
+ g = M[b] & 255, T[v++] = g, r < 4096 && (h[r] = m, M[r] = g, r++, !(r & s) && r < 4096 && (u++, s += r)), m = d;
5083
5083
  }
5084
- y--, P[L++] = T[y], x++;
5084
+ v--, B[k++] = T[v], S++;
5085
5085
  }
5086
- for (x = L; x < l; x++)
5087
- P[x] = 0;
5088
- return P;
5086
+ for (S = k; S < l; S++)
5087
+ B[S] = 0;
5088
+ return B;
5089
5089
  }, jr = (e) => {
5090
5090
  const n = new Uint8Array(e);
5091
5091
  return xt(_r(n), Ur);
@@ -5310,12 +5310,12 @@ class at {
5310
5310
  let o = 0, a = 0, l = 0;
5311
5311
  const r = new Array(t.length), i = new Array(t.length);
5312
5312
  for (var s = 0; s < t.length; s++) {
5313
- const b = t[s].dataCount, x = t[s].totalCount - b;
5314
- a = Math.max(a, b), l = Math.max(l, x), r[s] = new Array(b);
5313
+ const b = t[s].dataCount, S = t[s].totalCount - b;
5314
+ a = Math.max(a, b), l = Math.max(l, S), r[s] = new Array(b);
5315
5315
  for (var u = 0; u < r[s].length; u++)
5316
5316
  r[s][u] = 255 & n.buffer[u + o];
5317
5317
  o += b;
5318
- const N = ye.getErrorCorrectPolynomial(x), h = new Tt(r[s], N.getLength() - 1).mod(N);
5318
+ const N = ye.getErrorCorrectPolynomial(S), h = new Tt(r[s], N.getLength() - 1).mod(N);
5319
5319
  i[s] = new Array(N.getLength() - 1);
5320
5320
  for (var u = 0; u < i[s].length; u++) {
5321
5321
  const T = u + h.getLength() - i[s].length;
@@ -5845,64 +5845,64 @@ function oi(e, n) {
5845
5845
  for (var h = 0; h < De; h++)
5846
5846
  t[h][0] >>= ot, t[h][1] >>= ot, t[h][2] >>= ot, t[h][3] = h;
5847
5847
  }
5848
- function u(h, M, T, g, w) {
5849
- t[M][0] -= h * (t[M][0] - T) / Ut, t[M][1] -= h * (t[M][1] - g) / Ut, t[M][2] -= h * (t[M][2] - w) / Ut;
5848
+ function u(h, M, T, w, y) {
5849
+ t[M][0] -= h * (t[M][0] - T) / Ut, t[M][1] -= h * (t[M][1] - w) / Ut, t[M][2] -= h * (t[M][2] - y) / Ut;
5850
5850
  }
5851
- function c(h, M, T, g, w) {
5852
- for (var v = Math.abs(M - h), y = Math.min(M + h, De), L = M + 1, _ = M - 1, B = 1, k, X; L < y || _ > v; )
5853
- X = r[B++], L < y && (k = t[L++], k[0] -= X * (k[0] - T) / vt, k[1] -= X * (k[1] - g) / vt, k[2] -= X * (k[2] - w) / vt), _ > v && (k = t[_--], k[0] -= X * (k[0] - T) / vt, k[1] -= X * (k[1] - g) / vt, k[2] -= X * (k[2] - w) / vt);
5851
+ function c(h, M, T, w, y) {
5852
+ for (var g = Math.abs(M - h), v = Math.min(M + h, De), k = M + 1, _ = M - 1, P = 1, I, X; k < v || _ > g; )
5853
+ X = r[P++], k < v && (I = t[k++], I[0] -= X * (I[0] - T) / vt, I[1] -= X * (I[1] - w) / vt, I[2] -= X * (I[2] - y) / vt), _ > g && (I = t[_--], I[0] -= X * (I[0] - T) / vt, I[1] -= X * (I[1] - w) / vt, I[2] -= X * (I[2] - y) / vt);
5854
5854
  }
5855
5855
  function d(h, M, T) {
5856
- var g = 2147483647, w = g, v = -1, y = v, L, _, B, k, X;
5857
- for (L = 0; L < De; L++)
5858
- _ = t[L], B = Math.abs(_[0] - h) + Math.abs(_[1] - M) + Math.abs(_[2] - T), B < g && (g = B, v = L), k = B - (a[L] >> Fo - ot), k < w && (w = k, y = L), X = l[L] >> Vn, l[L] -= X, a[L] += X << Oo;
5859
- return l[v] += Qr, a[v] -= Xr, y;
5856
+ var w = 2147483647, y = w, g = -1, v = g, k, _, P, I, X;
5857
+ for (k = 0; k < De; k++)
5858
+ _ = t[k], P = Math.abs(_[0] - h) + Math.abs(_[1] - M) + Math.abs(_[2] - T), P < w && (w = P, g = k), I = P - (a[k] >> Fo - ot), I < y && (y = I, v = k), X = l[k] >> Vn, l[k] -= X, a[k] += X << Oo;
5859
+ return l[g] += Qr, a[g] -= Xr, v;
5860
5860
  }
5861
5861
  function m() {
5862
- var h, M, T, g, w, v, y = 0, L = 0;
5862
+ var h, M, T, w, y, g, v = 0, k = 0;
5863
5863
  for (h = 0; h < De; h++) {
5864
- for (T = t[h], w = h, v = T[1], M = h + 1; M < De; M++)
5865
- g = t[M], g[1] < v && (w = M, v = g[1]);
5866
- if (g = t[w], h != w && (M = g[0], g[0] = T[0], T[0] = M, M = g[1], g[1] = T[1], T[1] = M, M = g[2], g[2] = T[2], T[2] = M, M = g[3], g[3] = T[3], T[3] = M), v != y) {
5867
- for (o[y] = L + h >> 1, M = y + 1; M < v; M++)
5864
+ for (T = t[h], y = h, g = T[1], M = h + 1; M < De; M++)
5865
+ w = t[M], w[1] < g && (y = M, g = w[1]);
5866
+ if (w = t[y], h != y && (M = w[0], w[0] = T[0], T[0] = M, M = w[1], w[1] = T[1], T[1] = M, M = w[2], w[2] = T[2], T[2] = M, M = w[3], w[3] = T[3], T[3] = M), g != v) {
5867
+ for (o[v] = k + h >> 1, M = v + 1; M < g; M++)
5868
5868
  o[M] = h;
5869
- y = v, L = h;
5869
+ v = g, k = h;
5870
5870
  }
5871
5871
  }
5872
- for (o[y] = L + Hn >> 1, M = y + 1; M < 256; M++)
5872
+ for (o[v] = k + Hn >> 1, M = v + 1; M < 256; M++)
5873
5873
  o[M] = Hn;
5874
5874
  }
5875
5875
  function b(h, M, T) {
5876
- for (var g, w, v, y = 1e3, L = -1, _ = o[M], B = _ - 1; _ < De || B >= 0; )
5877
- _ < De && (w = t[_], v = w[1] - M, v >= y ? _ = De : (_++, v < 0 && (v = -v), g = w[0] - h, g < 0 && (g = -g), v += g, v < y && (g = w[2] - T, g < 0 && (g = -g), v += g, v < y && (y = v, L = w[3])))), B >= 0 && (w = t[B], v = M - w[1], v >= y ? B = -1 : (B--, v < 0 && (v = -v), g = w[0] - h, g < 0 && (g = -g), v += g, v < y && (g = w[2] - T, g < 0 && (g = -g), v += g, v < y && (y = v, L = w[3]))));
5878
- return L;
5879
- }
5880
- function x() {
5881
- var h, M = e.length, T = 30 + (n - 1) / 3, g = M / (3 * n), w = ~~(g / qr), v = Ut, y = Jr, L = y >> Mn;
5882
- for (L <= 1 && (L = 0), h = 0; h < L; h++)
5883
- r[h] = v * ((L * L - h * h) * Wn / (L * L));
5876
+ for (var w, y, g, v = 1e3, k = -1, _ = o[M], P = _ - 1; _ < De || P >= 0; )
5877
+ _ < De && (y = t[_], g = y[1] - M, g >= v ? _ = De : (_++, g < 0 && (g = -g), w = y[0] - h, w < 0 && (w = -w), g += w, g < v && (w = y[2] - T, w < 0 && (w = -w), g += w, g < v && (v = g, k = y[3])))), P >= 0 && (y = t[P], g = M - y[1], g >= v ? P = -1 : (P--, g < 0 && (g = -g), w = y[0] - h, w < 0 && (w = -w), g += w, g < v && (w = y[2] - T, w < 0 && (w = -w), g += w, g < v && (v = g, k = y[3]))));
5878
+ return k;
5879
+ }
5880
+ function S() {
5881
+ var h, M = e.length, T = 30 + (n - 1) / 3, w = M / (3 * n), y = ~~(w / qr), g = Ut, v = Jr, k = v >> Mn;
5882
+ for (k <= 1 && (k = 0), h = 0; h < k; h++)
5883
+ r[h] = g * ((k * k - h * h) * Wn / (k * k));
5884
5884
  var _;
5885
5885
  M < ni ? (n = 1, _ = 3) : M % qn !== 0 ? _ = 3 * qn : M % Qn !== 0 ? _ = 3 * Qn : M % Xn !== 0 ? _ = 3 * Xn : _ = 3 * Ro;
5886
- var B, k, X, j, se = 0;
5887
- for (h = 0; h < g; )
5888
- if (B = (e[se] & 255) << ot, k = (e[se + 1] & 255) << ot, X = (e[se + 2] & 255) << ot, j = d(B, k, X), u(v, j, B, k, X), L !== 0 && c(L, j, B, k, X), se += _, se >= M && (se -= M), h++, w === 0 && (w = 1), h % w === 0)
5889
- for (v -= v / T, y -= y / ei, L = y >> Mn, L <= 1 && (L = 0), j = 0; j < L; j++)
5890
- r[j] = v * ((L * L - j * j) * Wn / (L * L));
5886
+ var P, I, X, j, se = 0;
5887
+ for (h = 0; h < w; )
5888
+ if (P = (e[se] & 255) << ot, I = (e[se + 1] & 255) << ot, X = (e[se + 2] & 255) << ot, j = d(P, I, X), u(g, j, P, I, X), k !== 0 && c(k, j, P, I, X), se += _, se >= M && (se -= M), h++, y === 0 && (y = 1), h % y === 0)
5889
+ for (g -= g / T, v -= v / ei, k = v >> Mn, k <= 1 && (k = 0), j = 0; j < k; j++)
5890
+ r[j] = g * ((k * k - j * j) * Wn / (k * k));
5891
5891
  }
5892
5892
  function N() {
5893
- i(), x(), s(), m();
5893
+ i(), S(), s(), m();
5894
5894
  }
5895
5895
  this.buildColormap = N;
5896
- function P() {
5896
+ function B() {
5897
5897
  for (var h = [], M = [], T = 0; T < De; T++)
5898
5898
  M[t[T][3]] = T;
5899
- for (var g = 0, w = 0; w < De; w++) {
5900
- var v = M[w];
5901
- h[g++] = t[v][0], h[g++] = t[v][1], h[g++] = t[v][2];
5899
+ for (var w = 0, y = 0; y < De; y++) {
5900
+ var g = M[y];
5901
+ h[w++] = t[g][0], h[w++] = t[g][1], h[w++] = t[g][2];
5902
5902
  }
5903
5903
  return h;
5904
5904
  }
5905
- this.getColormap = P, this.lookupRGB = b;
5905
+ this.getColormap = B, this.lookupRGB = b;
5906
5906
  }
5907
5907
  var Yn = -1, Ft = 12, Lt = 5003, ai = [
5908
5908
  0,
@@ -5924,24 +5924,24 @@ var Yn = -1, Ft = 12, Lt = 5003, ai = [
5924
5924
  65535
5925
5925
  ];
5926
5926
  function li(e, n, t, o) {
5927
- var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Lt), i = new Int32Array(Lt), s, u = 0, c, d = 0, m, b = !1, x, N, P, h, M, T;
5928
- function g(j, se) {
5927
+ var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Lt), i = new Int32Array(Lt), s, u = 0, c, d = 0, m, b = !1, S, N, B, h, M, T;
5928
+ function w(j, se) {
5929
5929
  l[c++] = j, c >= 254 && _(se);
5930
5930
  }
5931
- function w(j) {
5932
- v(Lt), d = N + 2, b = !0, X(N, j);
5931
+ function y(j) {
5932
+ g(Lt), d = N + 2, b = !0, X(N, j);
5933
5933
  }
5934
- function v(j) {
5934
+ function g(j) {
5935
5935
  for (var se = 0; se < j; ++se)
5936
5936
  r[se] = -1;
5937
5937
  }
5938
- function y(j, se) {
5938
+ function v(j, se) {
5939
5939
  var U, Se, ce, K, ue, te, me;
5940
- for (x = j, b = !1, T = x, m = B(T), N = 1 << j - 1, P = N + 1, d = N + 2, c = 0, K = k(), me = 0, U = Lt; U < 65536; U *= 2)
5940
+ for (S = j, b = !1, T = S, m = P(T), N = 1 << j - 1, B = N + 1, d = N + 2, c = 0, K = I(), me = 0, U = Lt; U < 65536; U *= 2)
5941
5941
  ++me;
5942
- me = 8 - me, te = Lt, v(te), X(N, se);
5942
+ me = 8 - me, te = Lt, g(te), X(N, se);
5943
5943
  e:
5944
- for (; (Se = k()) != Yn; ) {
5944
+ for (; (Se = I()) != Yn; ) {
5945
5945
  if (U = (Se << Ft) + K, ce = Se << me ^ K, r[ce] === U) {
5946
5946
  K = i[ce];
5947
5947
  continue;
@@ -5954,20 +5954,20 @@ function li(e, n, t, o) {
5954
5954
  }
5955
5955
  while (r[ce] >= 0);
5956
5956
  }
5957
- X(K, se), K = Se, d < 1 << Ft ? (i[ce] = d++, r[ce] = U) : w(se);
5957
+ X(K, se), K = Se, d < 1 << Ft ? (i[ce] = d++, r[ce] = U) : y(se);
5958
5958
  }
5959
- X(K, se), X(P, se);
5959
+ X(K, se), X(B, se);
5960
5960
  }
5961
- function L(j) {
5962
- j.writeByte(a), h = e * n, M = 0, y(a + 1, j), j.writeByte(0);
5961
+ function k(j) {
5962
+ j.writeByte(a), h = e * n, M = 0, v(a + 1, j), j.writeByte(0);
5963
5963
  }
5964
5964
  function _(j) {
5965
5965
  c > 0 && (j.writeByte(c), j.writeBytes(l, 0, c), c = 0);
5966
5966
  }
5967
- function B(j) {
5967
+ function P(j) {
5968
5968
  return (1 << j) - 1;
5969
5969
  }
5970
- function k() {
5970
+ function I() {
5971
5971
  if (h === 0)
5972
5972
  return Yn;
5973
5973
  --h;
@@ -5976,14 +5976,14 @@ function li(e, n, t, o) {
5976
5976
  }
5977
5977
  function X(j, se) {
5978
5978
  for (s &= ai[u], u > 0 ? s |= j << u : s = j, u += T; u >= 8; )
5979
- g(s & 255, se), s >>= 8, u -= 8;
5980
- if ((d > m || b) && (b ? (m = B(T = x), b = !1) : (++T, T == Ft ? m = 1 << Ft : m = B(T))), j == P) {
5979
+ w(s & 255, se), s >>= 8, u -= 8;
5980
+ if ((d > m || b) && (b ? (m = P(T = S), b = !1) : (++T, T == Ft ? m = 1 << Ft : m = P(T))), j == B) {
5981
5981
  for (; u > 0; )
5982
- g(s & 255, se), s >>= 8, u -= 8;
5982
+ w(s & 255, se), s >>= 8, u -= 8;
5983
5983
  _(se);
5984
5984
  }
5985
5985
  }
5986
- this.encode = L;
5986
+ this.encode = k;
5987
5987
  }
5988
5988
  function Oe() {
5989
5989
  this.page = -1, this.pages = [], this.newPage();
@@ -6117,13 +6117,13 @@ be.prototype.ditherPixels = function(e, n) {
6117
6117
  n && (s = s * -1);
6118
6118
  for (var c = s == 1 ? 0 : r - 1, d = s == 1 ? r : 0; c !== d; c += s) {
6119
6119
  a = u * r + c;
6120
- var m = a * 3, b = i[m], x = i[m + 1], N = i[m + 2];
6121
- m = this.findClosestRGB(b, x, N), this.usedEntry[m] = !0, this.indexedPixels[a] = m, m *= 3;
6122
- for (var P = this.colorTab[m], h = this.colorTab[m + 1], M = this.colorTab[m + 2], T = b - P, g = x - h, w = N - M, v = s == 1 ? 0 : o.length - 1, y = s == 1 ? o.length : 0; v !== y; v += s) {
6123
- var L = o[v][1], _ = o[v][2];
6124
- if (L + c >= 0 && L + c < r && _ + u >= 0 && _ + u < l) {
6125
- var B = o[v][0];
6126
- m = a + L + _ * r, m *= 3, i[m] = Math.max(0, Math.min(255, i[m] + T * B)), i[m + 1] = Math.max(0, Math.min(255, i[m + 1] + g * B)), i[m + 2] = Math.max(0, Math.min(255, i[m + 2] + w * B));
6120
+ var m = a * 3, b = i[m], S = i[m + 1], N = i[m + 2];
6121
+ m = this.findClosestRGB(b, S, N), this.usedEntry[m] = !0, this.indexedPixels[a] = m, m *= 3;
6122
+ for (var B = this.colorTab[m], h = this.colorTab[m + 1], M = this.colorTab[m + 2], T = b - B, w = S - h, y = N - M, g = s == 1 ? 0 : o.length - 1, v = s == 1 ? o.length : 0; g !== v; g += s) {
6123
+ var k = o[g][1], _ = o[g][2];
6124
+ if (k + c >= 0 && k + c < r && _ + u >= 0 && _ + u < l) {
6125
+ var P = o[g][0];
6126
+ m = a + k + _ * r, m *= 3, i[m] = Math.max(0, Math.min(255, i[m] + T * P)), i[m + 1] = Math.max(0, Math.min(255, i[m + 1] + w * P)), i[m + 2] = Math.max(0, Math.min(255, i[m + 2] + y * P));
6127
6127
  }
6128
6128
  }
6129
6129
  }
@@ -6319,24 +6319,24 @@ class ve {
6319
6319
  })), n.fillStyle = u;
6320
6320
  }
6321
6321
  _draw() {
6322
- var n, t, o, a, l, r, i, s, u, c, d, m, b, x, N, P, h, M, T;
6322
+ var n, t, o, a, l, r, i, s, u, c, d, m, b, S, N, B, h, M, T;
6323
6323
  return ri(this, void 0, void 0, function* () {
6324
- const g = (n = this.qrCode) === null || n === void 0 ? void 0 : n.moduleCount, w = this.options.size;
6325
- let v = this.options.margin;
6326
- (v < 0 || v * 2 >= w) && (v = 0);
6327
- const y = Math.ceil(v), L = w - 2 * v, _ = this.options.whiteMargin, B = this.options.backgroundDimming, k = Math.ceil(L / g), X = k * g, j = X + 2 * y, se = new Xe(j, j), U = se.getContext("2d");
6328
- this._clear(), U.save(), U.translate(y, y);
6324
+ const w = (n = this.qrCode) === null || n === void 0 ? void 0 : n.moduleCount, y = this.options.size;
6325
+ let g = this.options.margin;
6326
+ (g < 0 || g * 2 >= y) && (g = 0);
6327
+ const v = Math.ceil(g), k = y - 2 * g, _ = this.options.whiteMargin, P = this.options.backgroundDimming, I = Math.ceil(k / w), X = I * w, j = X + 2 * v, se = new Xe(j, j), U = se.getContext("2d");
6328
+ this._clear(), U.save(), U.translate(v, v);
6329
6329
  const Se = new Xe(j, j), ce = Se.getContext("2d");
6330
6330
  let K = null, ue = [];
6331
6331
  if (this.options.gifBackground) {
6332
6332
  const z = jr(this.options.gifBackground);
6333
6333
  if (K = z, ue = Gr(z, !0), this.options.autoColor) {
6334
- let Q = 0, ie = 0, de = 0, S = 0;
6334
+ let Q = 0, ie = 0, de = 0, x = 0;
6335
6335
  for (let A = 0; A < ue[0].colorTable.length; A++) {
6336
6336
  const F = ue[0].colorTable[A];
6337
- F[0] > 200 || F[1] > 200 || F[2] > 200 || F[0] === 0 && F[1] === 0 && F[2] === 0 || (S++, Q += F[0], ie += F[1], de += F[2]);
6337
+ F[0] > 200 || F[1] > 200 || F[2] > 200 || F[0] === 0 && F[1] === 0 && F[2] === 0 || (x++, Q += F[0], ie += F[1], de += F[2]);
6338
6338
  }
6339
- Q = ~~(Q / S), ie = ~~(ie / S), de = ~~(de / S), this.options.colorDark = `rgb(${Q},${ie},${de})`;
6339
+ Q = ~~(Q / x), ie = ~~(ie / x), de = ~~(de / x), this.options.colorDark = `rgb(${Q},${ie},${de})`;
6340
6340
  }
6341
6341
  } else if (this.options.backgroundImage) {
6342
6342
  const z = yield Zn(this.options.backgroundImage);
@@ -6344,26 +6344,26 @@ class ve {
6344
6344
  const Q = ve._getAverageRGB(z);
6345
6345
  this.options.colorDark = `rgb(${Q.r},${Q.g},${Q.b})`;
6346
6346
  }
6347
- ce.drawImage(z, 0, 0, z.width, z.height, 0, 0, j, j), ce.rect(0, 0, j, j), ce.fillStyle = B, ce.fill();
6347
+ ce.drawImage(z, 0, 0, z.width, z.height, 0, 0, j, j), ce.rect(0, 0, j, j), ce.fillStyle = P, ce.fill();
6348
6348
  } else
6349
6349
  ce.rect(0, 0, j, j), ce.fillStyle = this.options.colorLight, ce.fill();
6350
6350
  const te = ye.getPatternPosition(this.qrCode.typeNumber), me = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || jt, D = (1 - me) * 0.5;
6351
- for (let z = 0; z < g; z++)
6352
- for (let Q = 0; Q < g; Q++) {
6353
- const ie = this.qrCode.isDark(z, Q), de = Q < 8 && (z < 8 || z >= g - 8) || Q >= g - 8 && z < 8, S = z == 6 && Q >= 8 && Q <= g - 8 || Q == 6 && z >= 8 && z <= g - 8;
6354
- let A = de || S;
6351
+ for (let z = 0; z < w; z++)
6352
+ for (let Q = 0; Q < w; Q++) {
6353
+ const ie = this.qrCode.isDark(z, Q), de = Q < 8 && (z < 8 || z >= w - 8) || Q >= w - 8 && z < 8, x = z == 6 && Q >= 8 && Q <= w - 8 || Q == 6 && z >= 8 && z <= w - 8;
6354
+ let A = de || x;
6355
6355
  for (let Z = 1; Z < te.length - 1; Z++)
6356
6356
  A = A || z >= te[Z] - 2 && z <= te[Z] + 2 && Q >= te[Z] - 2 && Q <= te[Z] + 2;
6357
- const F = Q * k + (A ? 0 : D * k), fe = z * k + (A ? 0 : D * k);
6357
+ const F = Q * I + (A ? 0 : D * I), fe = z * I + (A ? 0 : D * I);
6358
6358
  if (U.strokeStyle = ie ? this.options.colorDark : this.options.colorLight, U.lineWidth = 0.5, U.fillStyle = ie ? this.options.colorDark : this.options.colorLight, te.length === 0)
6359
- A || U.fillRect(F, fe, (A ? 1 : me) * k, (A ? 1 : me) * k);
6359
+ A || U.fillRect(F, fe, (A ? 1 : me) * I, (A ? 1 : me) * I);
6360
6360
  else {
6361
- const Z = Q < g - 4 && Q >= g - 4 - 5 && z < g - 4 && z >= g - 4 - 5;
6362
- !A && !Z && U.fillRect(F, fe, (A ? 1 : me) * k, (A ? 1 : me) * k);
6361
+ const Z = Q < w - 4 && Q >= w - 4 - 5 && z < w - 4 && z >= w - 4 - 5;
6362
+ !A && !Z && U.fillRect(F, fe, (A ? 1 : me) * I, (A ? 1 : me) * I);
6363
6363
  }
6364
6364
  }
6365
6365
  const $ = te[te.length - 1], ae = this.options.colorLight;
6366
- if (U.fillStyle = ae, U.fillRect(0, 0, 8 * k, 8 * k), U.fillRect(0, (g - 8) * k, 8 * k, 8 * k), U.fillRect((g - 8) * k, 0, 8 * k, 8 * k), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (U.fillRect(8 * k, 6 * k, (g - 8 - 8) * k, k), U.fillRect(6 * k, 8 * k, k, (g - 8 - 8) * k)), !((i = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || i === void 0) && i.protectors && ve._drawAlignProtector(U, $, $, k), !((u = (s = this.options.components) === null || s === void 0 ? void 0 : s.alignment) === null || u === void 0) && u.protectors)
6366
+ if (U.fillStyle = ae, U.fillRect(0, 0, 8 * I, 8 * I), U.fillRect(0, (w - 8) * I, 8 * I, 8 * I), U.fillRect((w - 8) * I, 0, 8 * I, 8 * I), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (U.fillRect(8 * I, 6 * I, (w - 8 - 8) * I, I), U.fillRect(6 * I, 8 * I, I, (w - 8 - 8) * I)), !((i = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || i === void 0) && i.protectors && ve._drawAlignProtector(U, $, $, I), !((u = (s = this.options.components) === null || s === void 0 ? void 0 : s.alignment) === null || u === void 0) && u.protectors)
6367
6367
  for (let z = 0; z < te.length; z++)
6368
6368
  for (let Q = 0; Q < te.length; Q++) {
6369
6369
  const ie = te[Q], de = te[z];
@@ -6372,16 +6372,16 @@ class ve {
6372
6372
  continue;
6373
6373
  if (ie === $ && de === $)
6374
6374
  continue;
6375
- ve._drawAlignProtector(U, ie, de, k);
6375
+ ve._drawAlignProtector(U, ie, de, I);
6376
6376
  }
6377
6377
  }
6378
- U.fillStyle = this.options.colorDark, U.fillRect(0, 0, 7 * k, k), U.fillRect((g - 7) * k, 0, 7 * k, k), U.fillRect(0, 6 * k, 7 * k, k), U.fillRect((g - 7) * k, 6 * k, 7 * k, k), U.fillRect(0, (g - 7) * k, 7 * k, k), U.fillRect(0, (g - 7 + 6) * k, 7 * k, k), U.fillRect(0, 0, k, 7 * k), U.fillRect(6 * k, 0, k, 7 * k), U.fillRect((g - 7) * k, 0, k, 7 * k), U.fillRect((g - 7 + 6) * k, 0, k, 7 * k), U.fillRect(0, (g - 7) * k, k, 7 * k), U.fillRect(6 * k, (g - 7) * k, k, 7 * k), U.fillRect(2 * k, 2 * k, 3 * k, 3 * k), U.fillRect((g - 7 + 2) * k, 2 * k, 3 * k, 3 * k), U.fillRect(2 * k, (g - 7 + 2) * k, 3 * k, 3 * k);
6378
+ U.fillStyle = this.options.colorDark, U.fillRect(0, 0, 7 * I, I), U.fillRect((w - 7) * I, 0, 7 * I, I), U.fillRect(0, 6 * I, 7 * I, I), U.fillRect((w - 7) * I, 6 * I, 7 * I, I), U.fillRect(0, (w - 7) * I, 7 * I, I), U.fillRect(0, (w - 7 + 6) * I, 7 * I, I), U.fillRect(0, 0, I, 7 * I), U.fillRect(6 * I, 0, I, 7 * I), U.fillRect((w - 7) * I, 0, I, 7 * I), U.fillRect((w - 7 + 6) * I, 0, I, 7 * I), U.fillRect(0, (w - 7) * I, I, 7 * I), U.fillRect(6 * I, (w - 7) * I, I, 7 * I), U.fillRect(2 * I, 2 * I, 3 * I, 3 * I), U.fillRect((w - 7 + 2) * I, 2 * I, 3 * I, 3 * I), U.fillRect(2 * I, (w - 7 + 2) * I, 3 * I, 3 * I);
6379
6379
  const le = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) || jt, Be = (1 - le) * 0.5;
6380
- for (let z = 0; z < g - 8; z += 2)
6381
- ve._drawDot(U, 8 + z, 6, k, Be, le), ve._drawDot(U, 6, 8 + z, k, Be, le);
6380
+ for (let z = 0; z < w - 8; z += 2)
6381
+ ve._drawDot(U, 8 + z, 6, I, Be, le), ve._drawDot(U, 6, 8 + z, I, Be, le);
6382
6382
  const ze = ((b = (m = this.options.components) === null || m === void 0 ? void 0 : m.cornerAlignment) === null || b === void 0 ? void 0 : b.scale) || jt, Ce = (1 - ze) * 0.5;
6383
- ve._drawAlign(U, $, $, k, Ce, ze, this.options.colorDark, ((N = (x = this.options.components) === null || x === void 0 ? void 0 : x.cornerAlignment) === null || N === void 0 ? void 0 : N.protectors) || !1);
6384
- const he = ((h = (P = this.options.components) === null || P === void 0 ? void 0 : P.alignment) === null || h === void 0 ? void 0 : h.scale) || jt, Le = (1 - he) * 0.5;
6383
+ ve._drawAlign(U, $, $, I, Ce, ze, this.options.colorDark, ((N = (S = this.options.components) === null || S === void 0 ? void 0 : S.cornerAlignment) === null || N === void 0 ? void 0 : N.protectors) || !1);
6384
+ const he = ((h = (B = this.options.components) === null || B === void 0 ? void 0 : B.alignment) === null || h === void 0 ? void 0 : h.scale) || jt, Le = (1 - he) * 0.5;
6385
6385
  for (let z = 0; z < te.length; z++)
6386
6386
  for (let Q = 0; Q < te.length; Q++) {
6387
6387
  const ie = te[Q], de = te[z];
@@ -6390,28 +6390,28 @@ class ve {
6390
6390
  continue;
6391
6391
  if (ie === $ && de === $)
6392
6392
  continue;
6393
- ve._drawAlign(U, ie, de, k, Le, he, this.options.colorDark, ((T = (M = this.options.components) === null || M === void 0 ? void 0 : M.alignment) === null || T === void 0 ? void 0 : T.protectors) || !1);
6393
+ ve._drawAlign(U, ie, de, I, Le, he, this.options.colorDark, ((T = (M = this.options.components) === null || M === void 0 ? void 0 : M.alignment) === null || T === void 0 ? void 0 : T.protectors) || !1);
6394
6394
  }
6395
6395
  }
6396
- if (_ && (U.fillStyle = this.options.backgroundColor, U.fillRect(-y, -y, j, y), U.fillRect(-y, X, j, y), U.fillRect(X, -y, y, j), U.fillRect(-y, -y, y, j)), this.options.logoImage) {
6396
+ if (_ && (U.fillStyle = this.options.backgroundColor, U.fillRect(-v, -v, j, v), U.fillRect(-v, X, j, v), U.fillRect(X, -v, v, j), U.fillRect(-v, -v, v, j)), this.options.logoImage) {
6397
6397
  const z = yield Zn(this.options.logoImage);
6398
6398
  let Q = this.options.logoScale, ie = this.options.logoMargin, de = this.options.logoCornerRadius;
6399
6399
  (Q <= 0 || Q >= 1) && (Q = 0.2), ie < 0 && (ie = 0), de < 0 && (de = 0);
6400
- const S = X * Q, A = 0.5 * (j - S), F = A;
6401
- U.restore(), U.fillStyle = this.options.logoBackgroundColor, U.save(), ve._prepareRoundedCornerClip(U, A - ie, F - ie, S + 2 * ie, S + 2 * ie, de + ie), U.clip();
6400
+ const x = X * Q, A = 0.5 * (j - x), F = A;
6401
+ U.restore(), U.fillStyle = this.options.logoBackgroundColor, U.save(), ve._prepareRoundedCornerClip(U, A - ie, F - ie, x + 2 * ie, x + 2 * ie, de + ie), U.clip();
6402
6402
  const fe = U.globalCompositeOperation;
6403
- U.globalCompositeOperation = "destination-out", U.fill(), U.globalCompositeOperation = fe, U.restore(), U.save(), ve._prepareRoundedCornerClip(U, A, F, S, S, de), U.clip(), U.drawImage(z, A, F, S, S), U.restore(), U.save(), U.translate(y, y);
6403
+ U.globalCompositeOperation = "destination-out", U.fill(), U.globalCompositeOperation = fe, U.restore(), U.save(), ve._prepareRoundedCornerClip(U, A, F, x, x, de), U.clip(), U.drawImage(z, A, F, x, x), U.restore(), U.save(), U.translate(v, v);
6404
6404
  }
6405
6405
  if (K) {
6406
- let z, Q, ie, de, S, A;
6406
+ let z, Q, ie, de, x, A;
6407
6407
  if (ue.forEach(function(F) {
6408
- z || (z = new be(w, w), z.setDelay(F.delay), z.setRepeat(0));
6408
+ z || (z = new be(y, y), z.setDelay(F.delay), z.setRepeat(0));
6409
6409
  const { width: fe, height: Z } = F.dims;
6410
- Q || (Q = new Xe(fe, Z), ie = Q.getContext("2d"), ie.rect(0, 0, Q.width, Q.height), ie.fillStyle = "#ffffff", ie.fill()), (!de || !A || fe !== de.width || Z !== de.height) && (de = new Xe(fe, Z), S = de.getContext("2d"), A = S.createImageData(fe, Z)), A.data.set(F.patch), S.putImageData(A, 0, 0), ie.drawImage(de.getContext("2d").canvas, F.dims.left, F.dims.top);
6410
+ Q || (Q = new Xe(fe, Z), ie = Q.getContext("2d"), ie.rect(0, 0, Q.width, Q.height), ie.fillStyle = "#ffffff", ie.fill()), (!de || !A || fe !== de.width || Z !== de.height) && (de = new Xe(fe, Z), x = de.getContext("2d"), A = x.createImageData(fe, Z)), A.data.set(F.patch), x.putImageData(A, 0, 0), ie.drawImage(de.getContext("2d").canvas, F.dims.left, F.dims.top);
6411
6411
  const Y = new Xe(j, j), ge = Y.getContext("2d");
6412
- ge.drawImage(Q.getContext("2d").canvas, 0, 0, j, j), ge.rect(0, 0, j, j), ge.fillStyle = B, ge.fill(), ge.drawImage(se.getContext("2d").canvas, 0, 0, j, j);
6413
- const pe = new Xe(w, w), _e = pe.getContext("2d");
6414
- _e.drawImage(Y.getContext("2d").canvas, 0, 0, w, w), z.addFrame(_e.getImageData(0, 0, pe.width, pe.height).data);
6412
+ ge.drawImage(Q.getContext("2d").canvas, 0, 0, j, j), ge.rect(0, 0, j, j), ge.fillStyle = P, ge.fill(), ge.drawImage(se.getContext("2d").canvas, 0, 0, j, j);
6413
+ const pe = new Xe(y, y), _e = pe.getContext("2d");
6414
+ _e.drawImage(Y.getContext("2d").canvas, 0, 0, y, y), z.addFrame(_e.getImageData(0, 0, pe.width, pe.height).data);
6415
6415
  }), !z)
6416
6416
  throw new Error("No frames.");
6417
6417
  if (z.finish(), Jn(this.canvas)) {
@@ -6420,9 +6420,9 @@ class ve {
6420
6420
  }
6421
6421
  return Promise.resolve(Buffer.from(z.stream().toFlattenUint8Array()));
6422
6422
  } else {
6423
- ce.drawImage(se.getContext("2d").canvas, 0, 0, j, j), U.drawImage(Se.getContext("2d").canvas, -y, -y, j, j);
6424
- const z = new Xe(w, w);
6425
- z.getContext("2d").drawImage(se.getContext("2d").canvas, 0, 0, w, w), this.canvas = z;
6423
+ ce.drawImage(se.getContext("2d").canvas, 0, 0, j, j), U.drawImage(Se.getContext("2d").canvas, -v, -v, j, j);
6424
+ const z = new Xe(y, y);
6425
+ z.getContext("2d").drawImage(se.getContext("2d").canvas, 0, 0, y, y), this.canvas = z;
6426
6426
  const ie = this.options.gifBackground ? "gif" : "png";
6427
6427
  return Jn(this.canvas) ? Promise.resolve(this.canvas.toDataURL(ie)) : Promise.resolve(this.canvas.toBuffer(ie));
6428
6428
  }
@@ -6685,18 +6685,18 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6685
6685
  ],
6686
6686
  setup(e, { emit: n }) {
6687
6687
  const t = e, { reload: o, reloadFlag: a } = di(), l = E(() => {
6688
- var T, g, w, v;
6689
- return (g = (T = t.board) == null ? void 0 : T.tableData) != null && g.keyName ? (v = (w = t.board) == null ? void 0 : w.tableData) == null ? void 0 : v.keyName : "";
6688
+ var T, w, y, g;
6689
+ return (w = (T = t.board) == null ? void 0 : T.tableData) != null && w.keyName ? (g = (y = t.board) == null ? void 0 : y.tableData) == null ? void 0 : g.keyName : "";
6690
6690
  }), r = E(() => {
6691
- var T, g;
6691
+ var T, w;
6692
6692
  if ((T = t.board) != null && T.columns) {
6693
- let w = [];
6693
+ let y = [];
6694
6694
  try {
6695
- w = ll((g = t.board) == null ? void 0 : g.columns);
6696
- } catch (v) {
6697
- console.error("生成tableColumn出错", v);
6695
+ y = ll((w = t.board) == null ? void 0 : w.columns);
6696
+ } catch (g) {
6697
+ console.error("生成tableColumn出错", g);
6698
6698
  }
6699
- return w;
6699
+ return y;
6700
6700
  } else
6701
6701
  return [];
6702
6702
  }), i = H([]);
@@ -6718,63 +6718,63 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6718
6718
  showJumper: !0,
6719
6719
  pageSizeOptions: u
6720
6720
  }));
6721
- function d(T, g) {
6721
+ function d(T, w) {
6722
6722
  if (T.value != "")
6723
6723
  try {
6724
- return lt.render(T.value, { item: g });
6725
- } catch (w) {
6726
- console.error("GTable returnValue Error", w);
6724
+ return lt.render(T.value, { item: w });
6725
+ } catch (y) {
6726
+ console.error("GTable returnValue Error", y);
6727
6727
  }
6728
6728
  else
6729
- return g[T.keyName];
6729
+ return w[T.keyName];
6730
6730
  }
6731
6731
  function m(T) {
6732
6732
  return !ft(T) && T !== "";
6733
6733
  }
6734
6734
  const b = () => "<span class='empty'>----</span>";
6735
- function x(T, g) {
6736
- var w;
6735
+ function S(T, w) {
6736
+ var y;
6737
6737
  if (!Fe(T.enums)) {
6738
- let v = T.enums.filter((y) => {
6739
- if (g[T.keyName] == null && (g[T.keyName] = ""), y.value == String(g[T.keyName]))
6740
- return y.text;
6738
+ let g = T.enums.filter((v) => {
6739
+ if (w[T.keyName] == null && (w[T.keyName] = ""), v.value == String(w[T.keyName]))
6740
+ return v.text;
6741
6741
  });
6742
- return v.length ? (w = v.shift()) == null ? void 0 : w.text : m(g[T.keyName]) ? g[T.keyName] : b();
6742
+ return g.length ? (y = g.shift()) == null ? void 0 : y.text : m(w[T.keyName]) ? w[T.keyName] : b();
6743
6743
  }
6744
6744
  }
6745
- function N(T, g) {
6745
+ function N(T, w) {
6746
6746
  if (T.value != "")
6747
- return lt.render(T.value, { item: g });
6747
+ return lt.render(T.value, { item: w });
6748
6748
  if (T.value == "")
6749
- return m(g[T.keyName]) ? yt(g[T.keyName]).format("YYYY-MM-DD HH:mm:ss") : b();
6749
+ return m(w[T.keyName]) ? yt(w[T.keyName]).format("YYYY-MM-DD HH:mm:ss") : b();
6750
6750
  }
6751
- function P(T, g) {
6752
- return T.filter((w) => {
6753
- if (w.showIf != "1") {
6754
- let v, y;
6751
+ function B(T, w) {
6752
+ return T.filter((y) => {
6753
+ if (y.showIf != "1") {
6754
+ let g, v;
6755
6755
  try {
6756
- v = lt.render(w.showIf, { item: g }), y = yn(v, { item: g });
6757
- } catch (L) {
6758
- console.warn(L);
6756
+ g = lt.render(y.showIf, { item: w }), v = yn(g, { item: w });
6757
+ } catch (k) {
6758
+ console.warn(k);
6759
6759
  }
6760
- return y;
6760
+ return v;
6761
6761
  } else
6762
- return w;
6762
+ return y;
6763
6763
  });
6764
6764
  }
6765
- function h(T, g) {
6766
- n("table-button-action", T, g);
6765
+ function h(T, w) {
6766
+ n("table-button-action", T, w);
6767
6767
  }
6768
- function M(T, g) {
6769
- n("table-form-confirm", T, g);
6768
+ function M(T, w) {
6769
+ n("table-form-confirm", T, w);
6770
6770
  }
6771
6771
  return Te(
6772
6772
  () => t.tableData,
6773
6773
  () => o(),
6774
6774
  { deep: !0 }
6775
- ), (T, g) => {
6776
- const w = G("t-button"), v = G("t-popup"), y = G("t-image"), L = G("t-image-viewer");
6777
- return f(a) ? R("", !0) : (p(), I(f(vo), {
6775
+ ), (T, w) => {
6776
+ const y = G("t-button"), g = G("t-popup"), v = G("t-image"), k = G("t-image-viewer");
6777
+ return f(a) ? R("", !0) : (p(), L(f(vo), {
6778
6778
  key: 0,
6779
6779
  tableType: "primary",
6780
6780
  commonTableProps: {
@@ -6786,34 +6786,34 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6786
6786
  onSelectChange: s
6787
6787
  }
6788
6788
  }, {
6789
- TEXT: C(({ col: _, row: B }) => [
6790
- m(d(_, B)) ? (p(), W("span", mi, we(d(_, B)), 1)) : (p(), W("span", {
6789
+ TEXT: C(({ col: _, row: P }) => [
6790
+ m(d(_, P)) ? (p(), W("span", mi, we(d(_, P)), 1)) : (p(), W("span", {
6791
6791
  key: 1,
6792
6792
  innerHTML: b()
6793
6793
  }, null, 8, fi))
6794
6794
  ]),
6795
- ENUMS: C(({ col: _, row: B }) => [
6795
+ ENUMS: C(({ col: _, row: P }) => [
6796
6796
  J("span", {
6797
- innerHTML: x(_, B)
6797
+ innerHTML: S(_, P)
6798
6798
  }, null, 8, hi)
6799
6799
  ]),
6800
- DATE: C(({ col: _, row: B }) => [
6800
+ DATE: C(({ col: _, row: P }) => [
6801
6801
  J("span", {
6802
- innerHTML: N(_, B)
6802
+ innerHTML: N(_, P)
6803
6803
  }, null, 8, pi)
6804
6804
  ]),
6805
- QR_CODE: C(({ col: _, row: B }) => [
6806
- V(v, null, {
6805
+ QR_CODE: C(({ col: _, row: P }) => [
6806
+ V(g, null, {
6807
6807
  content: C(() => [
6808
6808
  V(ci, {
6809
- text: d(_, B),
6809
+ text: d(_, P),
6810
6810
  size: 80,
6811
6811
  margin: 0
6812
6812
  }, null, 8, ["text"]),
6813
- J("div", gi, we(B.code), 1)
6813
+ J("div", gi, we(P.code), 1)
6814
6814
  ]),
6815
6815
  default: C(() => [
6816
- V(w, {
6816
+ V(y, {
6817
6817
  variant: "text",
6818
6818
  theme: "primary"
6819
6819
  }, {
@@ -6826,37 +6826,37 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6826
6826
  _: 2
6827
6827
  }, 1024)
6828
6828
  ]),
6829
- FORM_ITEM: C(({ col: _, row: B }) => [
6829
+ FORM_ITEM: C(({ col: _, row: P }) => [
6830
6830
  V(lr, {
6831
6831
  viewName: e.viewName,
6832
6832
  col: _,
6833
- row: B,
6833
+ row: P,
6834
6834
  onBlur: M
6835
6835
  }, null, 8, ["viewName", "col", "row"])
6836
6836
  ]),
6837
- IMAGE: C(({ col: _, row: B }) => [
6837
+ IMAGE: C(({ col: _, row: P }) => [
6838
6838
  J("div", {
6839
6839
  class: O(`${f(Ae)}__imageViewer`)
6840
6840
  }, [
6841
- d(_, B) ? (p(), I(L, {
6841
+ d(_, P) ? (p(), L(k, {
6842
6842
  key: 0,
6843
- images: [d(_, B)]
6843
+ images: [d(_, P)]
6844
6844
  }, {
6845
- trigger: C(({ open: k }) => [
6845
+ trigger: C(({ open: I }) => [
6846
6846
  J("div", {
6847
6847
  class: O(`${f(Ae)}__imageViewer--image`)
6848
6848
  }, [
6849
- V(y, {
6849
+ V(v, {
6850
6850
  class: O(`${f(Ae)}__imageViewer--image-img`),
6851
- src: d(_, B),
6851
+ src: d(_, P),
6852
6852
  shape: "round",
6853
6853
  fit: "scale-down"
6854
6854
  }, {
6855
6855
  error: C(() => [
6856
- _.name == "头像" ? (p(), I(f(an), { key: 0 })) : (p(), I(f(St), { key: 1 }))
6856
+ _.name == "头像" ? (p(), L(f(an), { key: 0 })) : (p(), L(f(St), { key: 1 }))
6857
6857
  ]),
6858
6858
  loading: C(() => [
6859
- _.name == "头像" ? (p(), I(f(an), { key: 0 })) : (p(), I(f(St), {
6859
+ _.name == "头像" ? (p(), L(f(an), { key: 0 })) : (p(), L(f(St), {
6860
6860
  key: 1,
6861
6861
  size: "large"
6862
6862
  }))
@@ -6865,7 +6865,7 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6865
6865
  }, 1032, ["class", "src"]),
6866
6866
  J("div", {
6867
6867
  class: O(`${f(Ae)}__imageViewer--hover`),
6868
- onClick: k
6868
+ onClick: I
6869
6869
  }, [
6870
6870
  J("span", null, [
6871
6871
  V(f(Ta), { size: "1.4em" }),
@@ -6879,25 +6879,25 @@ const mi = { key: 0 }, fi = ["innerHTML"], hi = ["innerHTML"], pi = ["innerHTML"
6879
6879
  key: 1,
6880
6880
  class: O(`${f(Ae)}__imageViewer--placeholder`)
6881
6881
  }, [
6882
- _.name == "头像" ? (p(), I(f(an), {
6882
+ _.name == "头像" ? (p(), L(f(an), {
6883
6883
  key: 0,
6884
6884
  size: "large"
6885
- })) : (p(), I(f(St), {
6885
+ })) : (p(), L(f(St), {
6886
6886
  key: 1,
6887
6887
  size: "large"
6888
6888
  }))
6889
6889
  ], 2))
6890
6890
  ], 2)
6891
6891
  ]),
6892
- BUTTONS: C(({ col: _, row: B }) => [
6893
- (p(!0), W(Me, null, xe(P(_.buttons, B), (k) => (p(), I(w, {
6892
+ BUTTONS: C(({ col: _, row: P }) => [
6893
+ (p(!0), W(Me, null, xe(B(_.buttons, P), (I) => (p(), L(y, {
6894
6894
  theme: "primary",
6895
6895
  variant: "text",
6896
- key: k.buttonId,
6897
- onClick: (X) => h(k, B)
6896
+ key: I.buttonId,
6897
+ onClick: (X) => h(I, P)
6898
6898
  }, {
6899
6899
  default: C(() => [
6900
- ne(we(k.name), 1)
6900
+ ne(we(I.name), 1)
6901
6901
  ]),
6902
6902
  _: 2
6903
6903
  }, 1032, ["onClick"]))), 128))
@@ -6932,25 +6932,25 @@ const bi = /* @__PURE__ */ je(yi, [["__scopeId", "data-v-f4795824"]]), wi = /* @
6932
6932
  i.value = b;
6933
6933
  try {
6934
6934
  t.setCurrentTabMenuItemActiveTab(l.value, b);
6935
- } catch (x) {
6936
- console.error("tab切换出错", x);
6935
+ } catch (S) {
6936
+ console.error("tab切换出错", S);
6937
6937
  }
6938
6938
  }
6939
6939
  const c = Pe(), d = E(() => c.homeUrl);
6940
6940
  function m() {
6941
- const b = o.fullPath, x = t.returnPrevTabMenuPathItemByPath(b);
6942
- x && (t.removeTabMenuItemByPath(b), console.log(x), x != "/home" ? a.push(x) : d.value && a.push({ path: d.value, query: vn(d.value) }));
6941
+ const b = o.fullPath, S = t.returnPrevTabMenuPathItemByPath(b);
6942
+ S && (t.removeTabMenuItemByPath(b), console.log(S), S != "/home" ? a.push(S) : d.value && a.push({ path: d.value, query: vn(d.value) }));
6943
6943
  }
6944
- return (b, x) => {
6945
- const N = G("t-card"), P = G("t-tab-panel"), h = G("t-tabs");
6946
- return p(), I(h, {
6944
+ return (b, S) => {
6945
+ const N = G("t-card"), B = G("t-tab-panel"), h = G("t-tabs");
6946
+ return p(), L(h, {
6947
6947
  class: O(`${f(Wa)}`),
6948
6948
  placement: "left",
6949
6949
  value: i.value,
6950
6950
  onChange: u
6951
6951
  }, {
6952
6952
  default: C(() => [
6953
- (p(!0), W(Me, null, xe(f(r), (M, T) => (p(), I(P, {
6953
+ (p(!0), W(Me, null, xe(f(r), (M, T) => (p(), L(B, {
6954
6954
  key: `${T}${M.title}`,
6955
6955
  value: T,
6956
6956
  label: M.title,
@@ -6959,7 +6959,7 @@ const bi = /* @__PURE__ */ je(yi, [["__scopeId", "data-v-f4795824"]]), wi = /* @
6959
6959
  default: C(() => [
6960
6960
  V(N, { bordered: !1 }, {
6961
6961
  content: C(() => [
6962
- M.board ? (p(), I(Go, {
6962
+ M.board ? (p(), L(Go, {
6963
6963
  key: M.title,
6964
6964
  viewName: e.viewName,
6965
6965
  board: M.board,
@@ -6988,7 +6988,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
6988
6988
  },
6989
6989
  emits: ["update:isDialogVisible", "close-dialog"],
6990
6990
  setup(e, { emit: n }) {
6991
- const t = e, o = Zo(() => import("./index-48d546bb.mjs")), a = Ln(), l = E(() => t.dialogViewInfo.view), r = E(() => t.dialogViewInfo.name), i = E(() => {
6991
+ const t = e, o = Zo(() => import("./index-27f60871.mjs")), a = Ln(), l = E(() => t.dialogViewInfo.view), r = E(() => t.dialogViewInfo.name), i = E(() => {
6992
6992
  var h;
6993
6993
  return ((h = t.dialogViewBoard) == null ? void 0 : h.boardType) ?? "default";
6994
6994
  }), s = E(() => {
@@ -7021,13 +7021,13 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7021
7021
  M = `${location.origin}/${T}`;
7022
7022
  }
7023
7023
  return t.dialogViewInfo.link ? M : "";
7024
- }), x = H(), N = H(!0);
7025
- function P() {
7024
+ }), S = H(), N = H(!0);
7025
+ function B() {
7026
7026
  N.value = !1;
7027
7027
  }
7028
7028
  return (h, M) => {
7029
7029
  const T = G("t-loading");
7030
- return p(), I(f(ho), {
7030
+ return p(), L(f(ho), {
7031
7031
  commonDialogProps: {
7032
7032
  visible: e.isDialogVisible,
7033
7033
  width: f(s),
@@ -7044,7 +7044,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7044
7044
  text: "加载中"
7045
7045
  }, {
7046
7046
  default: C(() => [
7047
- e.dialogType === "view" ? (p(), I(f(o), {
7047
+ e.dialogType === "view" ? (p(), L(f(o), {
7048
7048
  key: 0,
7049
7049
  viewName: f(l),
7050
7050
  board: e.dialogViewBoard,
@@ -7054,11 +7054,11 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7054
7054
  key: 1,
7055
7055
  class: O(`${f(Ae)}__iframe`),
7056
7056
  ref_key: "dialogIframeRef",
7057
- ref: x,
7057
+ ref: S,
7058
7058
  src: f(b),
7059
7059
  scrolling: "auto",
7060
7060
  frameborder: "0",
7061
- onload: P,
7061
+ onload: B,
7062
7062
  style: { width: "100%", height: "720px" }
7063
7063
  }, null, 10, Ti)) : R("", !0)
7064
7064
  ]),
@@ -7088,7 +7088,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7088
7088
  }), c = H([]), d = H({}), m = E(() => {
7089
7089
  var D;
7090
7090
  return (D = t.board) == null ? void 0 : D.header;
7091
- }), b = H({}), x = E(() => {
7091
+ }), b = H({}), S = E(() => {
7092
7092
  if (Fe(a.query))
7093
7093
  return {};
7094
7094
  {
@@ -7100,10 +7100,10 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7100
7100
  page: 0,
7101
7101
  totalCount: 0,
7102
7102
  pageCount: 0
7103
- }), P = E(() => {
7103
+ }), B = E(() => {
7104
7104
  var $;
7105
7105
  let D = {};
7106
- return m.value && b.value && Object.assign(D, b.value), t.dialogProps && (($ = Object.keys(t.dialogProps)) != null && $.length) && Object.assign(D, t.dialogProps), s.value === "table" && Object.assign(D, N.value), Object.assign(D, x.value), D;
7106
+ return m.value && b.value && Object.assign(D, b.value), t.dialogProps && (($ = Object.keys(t.dialogProps)) != null && $.length) && Object.assign(D, t.dialogProps), s.value === "table" && Object.assign(D, N.value), Object.assign(D, S.value), D;
7107
7107
  });
7108
7108
  async function h() {
7109
7109
  var D;
@@ -7112,7 +7112,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7112
7112
  const $ = await Yt({
7113
7113
  dataId: u.value,
7114
7114
  viewName: t.viewName,
7115
- props: P.value
7115
+ props: B.value
7116
7116
  });
7117
7117
  if (r.sendRegisterMessage(u.value), $.state === 200 && $.data)
7118
7118
  s.value == "table" && (N.value = {
@@ -7143,23 +7143,23 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7143
7143
  deep: !0
7144
7144
  }
7145
7145
  );
7146
- const M = H(!1), T = H(!1), g = H(""), w = H({}), v = H(), y = H();
7147
- async function L(D, $ = {}) {
7146
+ const M = H(!1), T = H(!1), w = H(""), y = H({}), g = H(), v = H();
7147
+ async function k(D, $ = {}) {
7148
7148
  if ((D ?? "") != "") {
7149
7149
  $.viewName = D;
7150
7150
  const ae = await bo($);
7151
- ae.state === 200 && (v.value = ae.data.boards[0], y.value = ae.data.props);
7151
+ ae.state === 200 && (g.value = ae.data.boards[0], v.value = ae.data.props);
7152
7152
  }
7153
7153
  }
7154
7154
  async function _(D) {
7155
7155
  M.value = D;
7156
7156
  }
7157
- async function B(D, $ = {}) {
7157
+ async function P(D, $ = {}) {
7158
7158
  var ae, le, Be, ze;
7159
7159
  try {
7160
7160
  switch (D.action) {
7161
7161
  case "VIEW_BY_DIALOG": {
7162
- (D.view ?? "") != "" ? (g.value = "view", await L(D.view), w.value = D, i.initPropsSource($), await _(!0), T.value = !0) : (D.link ?? "") != "" && (g.value = "iframe", w.value = D, i.initPropsSource($), v.value = {}, y.value = (ae = D.props) == null ? void 0 : ae.map((Ce) => Ce.keyName), await _(!0), T.value = !0);
7162
+ (D.view ?? "") != "" ? (w.value = "view", await k(D.view), y.value = D, i.initPropsSource($), await _(!0), T.value = !0) : (D.link ?? "") != "" && (w.value = "iframe", y.value = D, i.initPropsSource($), g.value = {}, v.value = (ae = D.props) == null ? void 0 : ae.map((Ce) => Ce.keyName), await _(!0), T.value = !0);
7163
7163
  break;
7164
7164
  }
7165
7165
  case "VIEW": {
@@ -7287,7 +7287,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7287
7287
  console.error("按钮动作出错", Ce);
7288
7288
  }
7289
7289
  }
7290
- function k(D) {
7290
+ function I(D) {
7291
7291
  b.value = D, N.value = {
7292
7292
  count: 15,
7293
7293
  page: 0,
@@ -7307,7 +7307,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7307
7307
  }
7308
7308
  async function U(D, $) {
7309
7309
  let ae = {};
7310
- Object.keys(P.value).length && Object.assign(ae, P.value), Object.assign(ae, D);
7310
+ Object.keys(B.value).length && Object.assign(ae, B.value), Object.assign(ae, D);
7311
7311
  const le = await Ul({
7312
7312
  buttonId: $,
7313
7313
  props: ae,
@@ -7341,7 +7341,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7341
7341
  }
7342
7342
  async function ce(D, $) {
7343
7343
  let ae = {};
7344
- Object.keys(P.value).length && Object.assign(ae, P.value);
7344
+ Object.keys(B.value).length && Object.assign(ae, B.value);
7345
7345
  const le = await Fl({
7346
7346
  viewName: t.viewName,
7347
7347
  buttonId: D.buttonId,
@@ -7352,7 +7352,7 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7352
7352
  }
7353
7353
  async function K(D, $) {
7354
7354
  let ae = {};
7355
- Object.keys(P.value).length && Object.assign(ae, P.value), Object.assign(ae, D);
7355
+ Object.keys(B.value).length && Object.assign(ae, B.value), Object.assign(ae, D);
7356
7356
  const le = await jl({
7357
7357
  buttonId: $,
7358
7358
  props: ae,
@@ -7375,17 +7375,17 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7375
7375
  function me() {
7376
7376
  n("close-dialog");
7377
7377
  }
7378
- return no(kt, P.value), (D, $) => (p(), W("div", {
7378
+ return no(kt, B.value), (D, $) => (p(), W("div", {
7379
7379
  class: O(`${f(Ka)}`)
7380
7380
  }, [
7381
- f(m) ? (p(), I(tr, {
7381
+ f(m) ? (p(), L(tr, {
7382
7382
  key: 0,
7383
7383
  viewName: e.viewName,
7384
7384
  headerInfo: f(m),
7385
- onHeaderButtonAction: B,
7386
- onHeaderFilterChange: k
7385
+ onHeaderButtonAction: P,
7386
+ onHeaderFilterChange: I
7387
7387
  }, null, 8, ["viewName", "headerInfo"])) : R("", !0),
7388
- f(s) === "form" ? (p(), I(ar, {
7388
+ f(s) === "form" ? (p(), L(ar, {
7389
7389
  key: 1,
7390
7390
  viewName: e.viewName,
7391
7391
  board: e.board,
@@ -7394,34 +7394,34 @@ const Ti = ["src"], Ci = /* @__PURE__ */ ee({
7394
7394
  onConfirmAndClose: te,
7395
7395
  onCloseDialog: me
7396
7396
  }, null, 8, ["viewName", "board", "formData"])) : R("", !0),
7397
- f(s) === "table" ? (p(), I(bi, {
7397
+ f(s) === "table" ? (p(), L(bi, {
7398
7398
  key: 2,
7399
7399
  viewName: e.viewName,
7400
7400
  board: e.board,
7401
7401
  tableData: c.value,
7402
7402
  paginationProps: N.value,
7403
- onTableButtonAction: B,
7403
+ onTableButtonAction: P,
7404
7404
  onTableFormConfirm: Se,
7405
7405
  onReturnSelectedKey: j,
7406
7406
  onReturnPaginationProps: se
7407
7407
  }, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : R("", !0),
7408
- f(s) === "tab" ? (p(), I(wi, {
7408
+ f(s) === "tab" ? (p(), L(wi, {
7409
7409
  key: 3,
7410
7410
  viewName: e.viewName,
7411
7411
  board: e.board
7412
7412
  }, null, 8, ["viewName", "board"])) : R("", !0),
7413
- M.value ? (p(), I(Ci, {
7413
+ M.value ? (p(), L(Ci, {
7414
7414
  key: 4,
7415
7415
  ref: "dialogRef",
7416
- dialogType: g.value,
7416
+ dialogType: w.value,
7417
7417
  isDialogVisible: T.value,
7418
7418
  "onUpdate:isDialogVisible": [
7419
7419
  $[0] || ($[0] = (ae) => T.value = ae),
7420
7420
  ue
7421
7421
  ],
7422
- dialogViewInfo: w.value,
7423
- dialogViewBoard: v.value,
7424
- dialogViewProps: y.value,
7422
+ dialogViewInfo: y.value,
7423
+ dialogViewBoard: g.value,
7424
+ dialogViewProps: v.value,
7425
7425
  onCloseDialog: ue
7426
7426
  }, null, 8, ["dialogType", "isDialogVisible", "dialogViewInfo", "dialogViewBoard", "dialogViewProps"])) : R("", !0)
7427
7427
  ], 2));
@@ -7442,40 +7442,40 @@ const Mi = /* @__PURE__ */ ee({
7442
7442
  });
7443
7443
  });
7444
7444
  const c = E(() => {
7445
- var P;
7446
- return o.query && ((P = o.query) != null && P.viewName) ? o.query.viewName : null;
7445
+ var B;
7446
+ return o.query && ((B = o.query) != null && B.viewName) ? o.query.viewName : null;
7447
7447
  }), d = E(() => {
7448
7448
  if (Fe(o.query))
7449
7449
  return {};
7450
7450
  {
7451
- const { viewName: P, ...h } = o.query;
7451
+ const { viewName: B, ...h } = o.query;
7452
7452
  return h;
7453
7453
  }
7454
7454
  }), m = H(), b = E(() => {
7455
- var P;
7456
- return ((P = m.value) == null ? void 0 : P.viewName) ?? "";
7455
+ var B;
7456
+ return ((B = m.value) == null ? void 0 : B.viewName) ?? "";
7457
7457
  });
7458
7458
  Te(
7459
7459
  () => c.value,
7460
7460
  async () => {
7461
- Fe(c.value) || await x(c.value);
7461
+ Fe(c.value) || await S(c.value);
7462
7462
  },
7463
7463
  {
7464
7464
  deep: !0,
7465
7465
  immediate: !0
7466
7466
  }
7467
7467
  );
7468
- async function x(P, h = {}) {
7468
+ async function S(B, h = {}) {
7469
7469
  var M;
7470
- h.viewName = P, Fe(d.value) && Object.assign(h, d.value);
7470
+ h.viewName = B, Fe(d.value) && Object.assign(h, d.value);
7471
7471
  try {
7472
7472
  const T = await bo(h);
7473
7473
  if (T.state === 200 && T.data) {
7474
7474
  m.value = T.data, i.value = (M = T.data) == null ? void 0 : M.title;
7475
- const g = decodeURIComponent(o.fullPath);
7475
+ const w = decodeURIComponent(o.fullPath);
7476
7476
  l.appendTabMenuItem({
7477
7477
  title: i.value,
7478
- path: g,
7478
+ path: w,
7479
7479
  query: o.query
7480
7480
  });
7481
7481
  } else
@@ -7485,17 +7485,17 @@ const Mi = /* @__PURE__ */ ee({
7485
7485
  }
7486
7486
  }
7487
7487
  const N = E(() => a.isGlobalLoaded);
7488
- return (P, h) => (p(), I(fo, { title: i.value }, {
7488
+ return (B, h) => (p(), L(fo, { title: i.value }, {
7489
7489
  default: C(() => {
7490
7490
  var M;
7491
7491
  return [
7492
7492
  f(N) ? (p(!0), W(Me, { key: 0 }, xe((M = m.value) == null ? void 0 : M.boards, (T) => {
7493
- var g, w;
7494
- return p(), I(Go, {
7495
- key: `${(g = m.value) == null ? void 0 : g.viewName}_${T.boardType}`,
7493
+ var w, y;
7494
+ return p(), L(Go, {
7495
+ key: `${(w = m.value) == null ? void 0 : w.viewName}_${T.boardType}`,
7496
7496
  board: T,
7497
7497
  viewName: f(b),
7498
- viewProps: (w = m.value) == null ? void 0 : w.props
7498
+ viewProps: (y = m.value) == null ? void 0 : y.props
7499
7499
  }, null, 8, ["board", "viewName", "viewProps"]);
7500
7500
  }), 128)) : R("", !0)
7501
7501
  ];
@@ -7617,7 +7617,7 @@ const Ai = ["poster"], Ei = ["src"], Pi = ["src"], Bi = /* @__PURE__ */ ee({
7617
7617
  ], 2));
7618
7618
  }
7619
7619
  });
7620
- const Ui = /* @__PURE__ */ je(Bi, [["__scopeId", "data-v-5d5914b8"]]), $s = it(Ui), Fi = "@gonsin/gview", Oi = "2.0.31", ji = "dist/index.mjs", $i = "dist/types/index.d.ts", Ri = [
7620
+ const Ui = /* @__PURE__ */ je(Bi, [["__scopeId", "data-v-5d5914b8"]]), $s = it(Ui), Fi = "@gonsin/gview", Oi = "2.0.32", ji = "dist/index.mjs", $i = "dist/types/index.d.ts", Ri = [
7621
7621
  "dist",
7622
7622
  "README.md"
7623
7623
  ], Gi = {
@@ -8277,12 +8277,12 @@ const Yi = { class: "menu-title" }, Zi = {
8277
8277
  l.value = !l.value, l.value ? N.value.expandAll() : N.value.foldAll();
8278
8278
  }, i = H(!1), s = H(""), u = H([]), c = H([]);
8279
8279
  async function d() {
8280
- const S = await Qi();
8281
- if (S.state == 200) {
8282
- const A = Wt(S.data, null, 1);
8280
+ const x = await Qi();
8281
+ if (x.state == 200) {
8282
+ const A = Wt(x.data, null, 1);
8283
8283
  u.value = A, c.value = A;
8284
8284
  } else
8285
- console.error(`获取菜单数据出错: ${S.message}`), oe.error(`获取菜单数据出错: ${S.message}`);
8285
+ console.error(`获取菜单数据出错: ${x.message}`), oe.error(`获取菜单数据出错: ${x.message}`);
8286
8286
  }
8287
8287
  const m = H({
8288
8288
  edificeKey: "",
@@ -8311,7 +8311,7 @@ const Yi = { class: "menu-title" }, Zi = {
8311
8311
  trigger: "blur"
8312
8312
  },
8313
8313
  {
8314
- validator: (S) => se(S, "parent"),
8314
+ validator: (x) => se(x, "parent"),
8315
8315
  trigger: "blur",
8316
8316
  type: "error",
8317
8317
  message: "输入的菜单标识已存在"
@@ -8319,21 +8319,21 @@ const Yi = { class: "menu-title" }, Zi = {
8319
8319
  ],
8320
8320
  children: [
8321
8321
  {
8322
- validator: (S) => S.every((A) => !(A.title.trim() === "" || A.name.trim() === "")),
8322
+ validator: (x) => x.every((A) => !(A.title.trim() === "" || A.name.trim() === "")),
8323
8323
  message: "分组或菜单项存在内容为空",
8324
8324
  trigger: "blur",
8325
8325
  type: "error"
8326
8326
  },
8327
8327
  {
8328
- validator: (S) => S.every((A) => se(A.name, "children") ? !0 : (oe.error(`${A.name} 与存在的菜单名称标识重复了`), !1)),
8328
+ validator: (x) => x.every((A) => se(A.name, "children") ? !0 : (oe.error(`${A.name} 与存在的菜单名称标识重复了`), !1)),
8329
8329
  message: "输入的菜单标识存在重复项",
8330
8330
  trigger: "blur",
8331
8331
  type: "error"
8332
8332
  }
8333
8333
  ]
8334
- }, x = H(), N = E(() => x.value.tTableRef), P = H(), h = E(() => P.value.tFormRef), M = E(() => {
8335
- var S;
8336
- return (S = N.value) == null ? void 0 : S.getTreeNode();
8334
+ }, S = H(), N = E(() => S.value.tTableRef), B = H(), h = E(() => B.value.tFormRef), M = E(() => {
8335
+ var x;
8336
+ return (x = N.value) == null ? void 0 : x.getTreeNode();
8337
8337
  }), T = E(() => {
8338
8338
  switch (s.value) {
8339
8339
  case "addGroup":
@@ -8347,55 +8347,55 @@ const Yi = { class: "menu-title" }, Zi = {
8347
8347
  default:
8348
8348
  return "";
8349
8349
  }
8350
- }), g = E(() => M.value ? On(M.value) : []), w = E(
8351
- () => g.value.filter((S) => !S.url).map((S) => ({
8352
- label: S.title,
8353
- value: S.name
8350
+ }), w = E(() => M.value ? On(M.value) : []), y = E(
8351
+ () => w.value.filter((x) => !x.url).map((x) => ({
8352
+ label: x.title,
8353
+ value: x.name
8354
8354
  }))
8355
- ), v = Ct(), y = Et();
8356
- function L() {
8357
- const { fullPath: S, query: A } = v, F = decodeURIComponent(S);
8358
- y.appendTabMenuItem({
8355
+ ), g = Ct(), v = Et();
8356
+ function k() {
8357
+ const { fullPath: x, query: A } = g, F = decodeURIComponent(x);
8358
+ v.appendTabMenuItem({
8359
8359
  title: t.value,
8360
8360
  path: F,
8361
8361
  query: A
8362
8362
  });
8363
8363
  }
8364
8364
  const _ = H([]);
8365
- function B(S) {
8366
- return S && S.length ? S.filter((A) => A.url && A.url !== "") : [];
8365
+ function P(x) {
8366
+ return x && x.length ? x.filter((A) => A.url && A.url !== "") : [];
8367
8367
  }
8368
- const k = E(() => _.value.map((S) => ({
8369
- label: `${S.title}-${S.url}`,
8370
- value: S.url
8368
+ const I = E(() => _.value.map((x) => ({
8369
+ label: `${x.title}-${x.url}`,
8370
+ value: x.url
8371
8371
  })));
8372
- function X(S) {
8373
- return _.value.length ? _.value.some((A) => A.url === S.url) : !1;
8372
+ function X(x) {
8373
+ return _.value.length ? _.value.some((A) => A.url === x.url) : !1;
8374
8374
  }
8375
8375
  async function j() {
8376
- const S = await Xi();
8377
- S.state == 200 ? _.value = B(S.data) : (console.error(`获取内置菜单列表出错: ${S.message}`), oe.error(`获取内置菜单列表出错: ${S.message}`));
8376
+ const x = await Xi();
8377
+ x.state == 200 ? _.value = P(x.data) : (console.error(`获取内置菜单列表出错: ${x.message}`), oe.error(`获取内置菜单列表出错: ${x.message}`));
8378
8378
  }
8379
8379
  pt(() => {
8380
- d(), j(), L();
8380
+ d(), j(), k();
8381
8381
  });
8382
- function se(S, A) {
8382
+ function se(x, A) {
8383
8383
  var F, fe;
8384
- if (g.value && g.value.length) {
8385
- const Z = g.value.map((Y) => {
8384
+ if (w.value && w.value.length) {
8385
+ const Z = w.value.map((Y) => {
8386
8386
  if (s.value == "addGroup")
8387
8387
  return Y.name;
8388
8388
  if (Y.parent != m.value.name)
8389
8389
  return Y.name;
8390
8390
  });
8391
- if ((s.value == "addGroup" || A == "children") && Z.includes(S))
8391
+ if ((s.value == "addGroup" || A == "children") && Z.includes(x))
8392
8392
  return !1;
8393
8393
  }
8394
8394
  if (A == "parent") {
8395
8395
  if (s.value == "addGroup" && m.value.children && (F = m.value.children) != null && F.length)
8396
- return m.value.children.every((Z) => Z.name !== S);
8396
+ return m.value.children.every((Z) => Z.name !== x);
8397
8397
  } else if (A == "children") {
8398
- if (S === m.value.name)
8398
+ if (x === m.value.name)
8399
8399
  return !1;
8400
8400
  const Z = (fe = m.value.children) == null ? void 0 : fe.map((ge) => ge.name), Y = Z == null ? void 0 : Z.filter(
8401
8401
  (ge, pe) => Z.indexOf(ge) !== Z.lastIndexOf(ge) && Z.indexOf(ge) === pe
@@ -8405,18 +8405,18 @@ const Yi = { class: "menu-title" }, Zi = {
8405
8405
  }
8406
8406
  return !0;
8407
8407
  }
8408
- function U(S) {
8409
- return S && S.length ? S.filter((A) => !A.isGroup) : [];
8408
+ function U(x) {
8409
+ return x && x.length ? x.filter((A) => !A.isGroup) : [];
8410
8410
  }
8411
- function Se(S) {
8412
- return S && S.length ? S.filter((A) => A.isGroup) : [];
8411
+ function Se(x) {
8412
+ return x && x.length ? x.filter((A) => A.isGroup) : [];
8413
8413
  }
8414
- function ce(S = M.value) {
8414
+ function ce(x = M.value) {
8415
8415
  var A;
8416
8416
  try {
8417
8417
  if (N.value) {
8418
8418
  const F = N.value.getTreeExpandedRow("unique");
8419
- (A = N.value) == null || A.resetData(S);
8419
+ (A = N.value) == null || A.resetData(x);
8420
8420
  const Z = N.value.getTreeExpandedRow("all").filter((Y) => !F.some((pe) => pe === Y.id));
8421
8421
  Z && Z.forEach((Y) => {
8422
8422
  (!Y.parent || Y.parent && Y.parent.id && !Z.some((ge) => ge.id === Y.parent.id)) && N.value.toggleExpandData(Y);
@@ -8442,18 +8442,18 @@ const Yi = { class: "menu-title" }, Zi = {
8442
8442
  children: []
8443
8443
  });
8444
8444
  }
8445
- function te(S) {
8445
+ function te(x) {
8446
8446
  if (m.value.children) {
8447
- const A = m.value.children.indexOf(S);
8447
+ const A = m.value.children.indexOf(x);
8448
8448
  A != -1 && m.value.children.splice(A, 1);
8449
8449
  }
8450
8450
  }
8451
8451
  function me() {
8452
8452
  if ((m.value.level == 1 || m.value.level == 2) && m.value.children) {
8453
- const S = m.value.level + 1;
8453
+ const x = m.value.level + 1;
8454
8454
  m.value.children.push({
8455
8455
  edificeKey: a.value,
8456
- level: S,
8456
+ level: x,
8457
8457
  icon: null,
8458
8458
  title: "",
8459
8459
  name: "",
@@ -8464,11 +8464,11 @@ const Yi = { class: "menu-title" }, Zi = {
8464
8464
  });
8465
8465
  }
8466
8466
  }
8467
- function D(S) {
8468
- m.value = _t(S), S.isGroup ? s.value = "editGroup" : (s.value = "editItem", m.value.isInner = X(S)), i.value = !0;
8467
+ function D(x) {
8468
+ m.value = _t(x), x.isGroup ? s.value = "editGroup" : (s.value = "editItem", m.value.isInner = X(x)), i.value = !0;
8469
8469
  }
8470
- function $(S) {
8471
- m.value = _t(S), i.value = !0, s.value = "moveItemTo";
8470
+ function $(x) {
8471
+ m.value = _t(x), i.value = !0, s.value = "moveItemTo";
8472
8472
  }
8473
8473
  function ae() {
8474
8474
  i.value = !1, setTimeout(() => {
@@ -8476,8 +8476,8 @@ const Yi = { class: "menu-title" }, Zi = {
8476
8476
  }, 100);
8477
8477
  }
8478
8478
  function le() {
8479
- var S;
8480
- (S = h.value) == null || S.reset(), m.value = {
8479
+ var x;
8480
+ (x = h.value) == null || x.reset(), m.value = {
8481
8481
  edificeKey: a.value,
8482
8482
  parent: null,
8483
8483
  name: "",
@@ -8490,8 +8490,8 @@ const Yi = { class: "menu-title" }, Zi = {
8490
8490
  };
8491
8491
  }
8492
8492
  function Be() {
8493
- var S;
8494
- (S = h.value) == null || S.validate().then((A) => {
8493
+ var x;
8494
+ (x = h.value) == null || x.validate().then((A) => {
8495
8495
  var F, fe, Z, Y, ge, pe, _e;
8496
8496
  if (!Object.keys(A).length)
8497
8497
  s.value == "addGroup" ? (m.value.edificeKey = a.value, m.value.children && ((F = m.value.children) != null && F.length) && m.value.children.forEach((q) => {
@@ -8514,37 +8514,37 @@ const Yi = { class: "menu-title" }, Zi = {
8514
8514
  }
8515
8515
  });
8516
8516
  }
8517
- function ze(S, A) {
8517
+ function ze(x, A) {
8518
8518
  if (N.value) {
8519
- const F = g.value.find((fe) => fe.name == S);
8519
+ const F = w.value.find((fe) => fe.name == x);
8520
8520
  if (F) {
8521
8521
  const { parent: fe } = F;
8522
- A !== fe && (m.value.parent = A, N.value.remove(S), N.value.appendTo(A, m.value));
8522
+ A !== fe && (m.value.parent = A, N.value.remove(x), N.value.appendTo(A, m.value));
8523
8523
  }
8524
8524
  }
8525
8525
  }
8526
- function Ce(S) {
8526
+ function Ce(x) {
8527
8527
  try {
8528
8528
  const A = Gt.confirm({
8529
8529
  theme: "info",
8530
8530
  header: "撤销组",
8531
- body: `确定要撤销${S.title}吗?`,
8531
+ body: `确定要撤销${x.title}吗?`,
8532
8532
  className: zt,
8533
8533
  onConfirm: () => {
8534
8534
  var fe, Z, Y, ge;
8535
8535
  let F = [];
8536
- if (S.level == 1)
8537
- (fe = S.children) == null || fe.forEach((pe) => {
8536
+ if (x.level == 1)
8537
+ (fe = x.children) == null || fe.forEach((pe) => {
8538
8538
  pe.level = 1, pe.parent = null, F.push(pe);
8539
- }), (Z = N.value) == null || Z.remove(S.name), F.length && F.forEach((pe) => {
8539
+ }), (Z = N.value) == null || Z.remove(x.name), F.length && F.forEach((pe) => {
8540
8540
  var _e;
8541
8541
  (_e = N.value) == null || _e.appendTo("", pe);
8542
8542
  });
8543
- else if (S.level == 2) {
8544
- const { parent: pe } = S;
8545
- (Y = S.children) == null || Y.forEach((_e) => {
8543
+ else if (x.level == 2) {
8544
+ const { parent: pe } = x;
8545
+ (Y = x.children) == null || Y.forEach((_e) => {
8546
8546
  _e.level = 2, _e.parent = pe, F.push(_e);
8547
- }), (ge = N.value) == null || ge.remove(S.name), ce(), F.forEach((_e) => {
8547
+ }), (ge = N.value) == null || ge.remove(x.name), ce(), F.forEach((_e) => {
8548
8548
  var q;
8549
8549
  (q = N.value) == null || q.appendTo(pe, _e);
8550
8550
  });
@@ -8569,17 +8569,17 @@ const Yi = { class: "menu-title" }, Zi = {
8569
8569
  ce();
8570
8570
  }
8571
8571
  async function he() {
8572
- var S;
8572
+ var x;
8573
8573
  try {
8574
- (S = N.value) == null || S.resetData(u.value), oe.success("撤销菜单方案成功!");
8574
+ (x = N.value) == null || x.resetData(u.value), oe.success("撤销菜单方案成功!");
8575
8575
  } catch (A) {
8576
8576
  oe.error(`撤销菜单方案出错${A}`), console.error(`撤销菜单方案出错${A}`);
8577
8577
  }
8578
8578
  }
8579
8579
  async function Le() {
8580
- const S = On(M.value);
8580
+ const x = On(M.value);
8581
8581
  try {
8582
- const A = await qi({ menus: [...S] });
8582
+ const A = await qi({ menus: [...x] });
8583
8583
  if (A.state == 200)
8584
8584
  c.value = Wt(A.data, null, 1), oe.success("保存菜单方案成功!");
8585
8585
  else
@@ -8588,8 +8588,8 @@ const Yi = { class: "menu-title" }, Zi = {
8588
8588
  oe.error(A.message);
8589
8589
  }
8590
8590
  }
8591
- function z(S) {
8592
- const { current: A, target: F, currentIndex: fe, targetIndex: Z } = S, Y = A.level, ge = A.parent, pe = F.level, _e = F.parent;
8591
+ function z(x) {
8592
+ const { current: A, target: F, currentIndex: fe, targetIndex: Z } = x, Y = A.level, ge = A.parent, pe = F.level, _e = F.parent;
8593
8593
  if (Y == pe) {
8594
8594
  if (ge == _e)
8595
8595
  return !0;
@@ -8598,44 +8598,44 @@ const Yi = { class: "menu-title" }, Zi = {
8598
8598
  oe.info("不同层级的菜单项,请使用转移至功能转移菜单");
8599
8599
  return ce(), !1;
8600
8600
  }
8601
- function Q(S) {
8602
- S.code && oe.error("不同层级的菜单项,不允许调整顺序");
8601
+ function Q(x) {
8602
+ x.code && oe.error("不同层级的菜单项,不允许调整顺序");
8603
8603
  }
8604
- function ie(S, A) {
8604
+ function ie(x, A) {
8605
8605
  var fe;
8606
- const F = (fe = N.value) == null ? void 0 : fe.getData(S.name);
8606
+ const F = (fe = N.value) == null ? void 0 : fe.getData(x.name);
8607
8607
  if (F) {
8608
8608
  const { parent: Z } = F;
8609
8609
  if (Z) {
8610
- const { children: Y } = Z.row, ge = Y == null ? void 0 : Y.findIndex((pe) => pe.name == S.name);
8610
+ const { children: Y } = Z.row, ge = Y == null ? void 0 : Y.findIndex((pe) => pe.name == x.name);
8611
8611
  Y && (de(Y, A, ge), ce());
8612
8612
  } else {
8613
- const Y = _t(M.value), ge = Y.findIndex((pe) => pe.name == S.name);
8613
+ const Y = _t(M.value), ge = Y.findIndex((pe) => pe.name == x.name);
8614
8614
  de(Y, A, ge), ce(Y);
8615
8615
  }
8616
8616
  }
8617
8617
  }
8618
- function de(S, A, F) {
8618
+ function de(x, A, F) {
8619
8619
  switch (A) {
8620
8620
  case "up": {
8621
- F != 0 ? [S[F - 1], S[F]] = [
8622
- S[F],
8623
- S[F - 1]
8621
+ F != 0 ? [x[F - 1], x[F]] = [
8622
+ x[F],
8623
+ x[F - 1]
8624
8624
  ] : oe.info("该菜单项已经在该组的第一个了!");
8625
8625
  break;
8626
8626
  }
8627
8627
  case "down": {
8628
- F != S.length - 1 ? [S[F + 1], S[F]] = [
8629
- S[F],
8630
- S[F + 1]
8628
+ F != x.length - 1 ? [x[F + 1], x[F]] = [
8629
+ x[F],
8630
+ x[F + 1]
8631
8631
  ] : oe.info("该菜单项已经在该组的最后一个了!");
8632
8632
  break;
8633
8633
  }
8634
8634
  }
8635
8635
  }
8636
- return (S, A) => {
8636
+ return (x, A) => {
8637
8637
  const F = G("t-button"), fe = G("t-icon"), Z = G("t-input"), Y = G("t-form-item"), ge = G("t-option"), pe = G("t-select"), _e = G("t-input-group");
8638
- return p(), I(f(ki), { title: t.value }, {
8638
+ return p(), L(f(ki), { title: t.value }, {
8639
8639
  default: C(() => [
8640
8640
  V(f(go), null, {
8641
8641
  "left-operations": C(() => [
@@ -8682,7 +8682,7 @@ const Yi = { class: "menu-title" }, Zi = {
8682
8682
  }),
8683
8683
  V(f(vo), {
8684
8684
  ref_key: "commonTableRef",
8685
- ref: x,
8685
+ ref: S,
8686
8686
  id: "menu-table",
8687
8687
  tableType: "enhanced",
8688
8688
  commonTableProps: {
@@ -8703,7 +8703,7 @@ const Yi = { class: "menu-title" }, Zi = {
8703
8703
  }
8704
8704
  }, {
8705
8705
  treeExpandAndFoldIcon: C(({ type: q }) => [
8706
- q === "expand" ? (p(), I(f(Ca), { key: 0 })) : (p(), I(f(Ma), { key: 1 }))
8706
+ q === "expand" ? (p(), L(f(Ca), { key: 0 })) : (p(), L(f(Ma), { key: 1 }))
8707
8707
  ]),
8708
8708
  drag: C(() => [
8709
8709
  V(f(ka))
@@ -8714,12 +8714,12 @@ const Yi = { class: "menu-title" }, Zi = {
8714
8714
  class: O(["title", q.isGroup ? "title-bold" : "title-child"])
8715
8715
  }, [
8716
8716
  q.level == 1 && q.isGroup ? (p(), W(Me, { key: 0 }, [
8717
- q.icon ? (p(), I(fe, {
8717
+ q.icon ? (p(), L(fe, {
8718
8718
  key: 0,
8719
8719
  class: "title-icon",
8720
8720
  name: q.icon,
8721
8721
  size: "large"
8722
- }, null, 8, ["name"])) : (p(), I(f(pn), {
8722
+ }, null, 8, ["name"])) : (p(), L(f(pn), {
8723
8723
  key: 1,
8724
8724
  class: "title-icon",
8725
8725
  size: "large"
@@ -8800,7 +8800,7 @@ const Yi = { class: "menu-title" }, Zi = {
8800
8800
  default: C(() => [
8801
8801
  V(f(po), {
8802
8802
  ref_key: "commonFormRef",
8803
- ref: P,
8803
+ ref: B,
8804
8804
  commonFormProps: {
8805
8805
  rules: b,
8806
8806
  data: m.value,
@@ -8861,7 +8861,7 @@ const Yi = { class: "menu-title" }, Zi = {
8861
8861
  ]),
8862
8862
  _: 1
8863
8863
  }),
8864
- m.value.level == 1 ? (p(), I(Y, {
8864
+ m.value.level == 1 ? (p(), L(Y, {
8865
8865
  key: 0,
8866
8866
  name: "icon",
8867
8867
  label: "图标标识"
@@ -8885,7 +8885,7 @@ const Yi = { class: "menu-title" }, Zi = {
8885
8885
  ])) : (p(), W("span", ns, "请选择图标标识"))
8886
8886
  ]),
8887
8887
  default: C(() => [
8888
- (p(!0), W(Me, null, xe(f(Wi), (q) => (p(), I(ge, {
8888
+ (p(!0), W(Me, null, xe(f(Wi), (q) => (p(), L(ge, {
8889
8889
  value: q.stem,
8890
8890
  key: q.stem,
8891
8891
  class: "overlay-options"
@@ -8906,7 +8906,7 @@ const Yi = { class: "menu-title" }, Zi = {
8906
8906
  ]),
8907
8907
  _: 1
8908
8908
  })) : R("", !0),
8909
- m.value.isGroup ? R("", !0) : (p(), I(Y, {
8909
+ m.value.isGroup ? R("", !0) : (p(), L(Y, {
8910
8910
  key: 1,
8911
8911
  name: "parent",
8912
8912
  label: "父菜单",
@@ -8914,14 +8914,14 @@ const Yi = { class: "menu-title" }, Zi = {
8914
8914
  }, {
8915
8915
  default: C(() => [
8916
8916
  V(pe, {
8917
- options: f(w),
8917
+ options: f(y),
8918
8918
  modelValue: m.value.parent,
8919
8919
  "onUpdate:modelValue": A[3] || (A[3] = (q) => m.value.parent = q)
8920
8920
  }, null, 8, ["options", "modelValue"])
8921
8921
  ]),
8922
8922
  _: 1
8923
8923
  })),
8924
- !Se(m.value.children).length && m.value.level == 1 ? (p(), I(Y, {
8924
+ !Se(m.value.children).length && m.value.level == 1 ? (p(), L(Y, {
8925
8925
  key: 2,
8926
8926
  name: "children",
8927
8927
  label: "分组"
@@ -8939,7 +8939,7 @@ const Yi = { class: "menu-title" }, Zi = {
8939
8939
  ]),
8940
8940
  _: 1
8941
8941
  })) : R("", !0),
8942
- (p(!0), W(Me, null, xe(Se(m.value.children), (q, Ne) => (p(), I(Y, {
8942
+ (p(!0), W(Me, null, xe(Se(m.value.children), (q, Ne) => (p(), L(Y, {
8943
8943
  name: "children",
8944
8944
  key: "group" + Ne,
8945
8945
  label: Ne == 0 ? "分组" : " "
@@ -8977,7 +8977,7 @@ const Yi = { class: "menu-title" }, Zi = {
8977
8977
  ]),
8978
8978
  _: 2
8979
8979
  }, 1032, ["onClick"]),
8980
- Ne == Se(m.value.children).length - 1 ? (p(), I(F, {
8980
+ Ne == Se(m.value.children).length - 1 ? (p(), L(F, {
8981
8981
  key: 0,
8982
8982
  variant: "outline",
8983
8983
  theme: "default",
@@ -8994,7 +8994,7 @@ const Yi = { class: "menu-title" }, Zi = {
8994
8994
  ]),
8995
8995
  _: 2
8996
8996
  }, 1032, ["label"]))), 128)),
8997
- !U(m.value.children).length && m.value.isGroup ? (p(), I(Y, {
8997
+ !U(m.value.children).length && m.value.isGroup ? (p(), L(Y, {
8998
8998
  key: 3,
8999
8999
  name: "children",
9000
9000
  label: "子菜单项"
@@ -9012,7 +9012,7 @@ const Yi = { class: "menu-title" }, Zi = {
9012
9012
  ]),
9013
9013
  _: 1
9014
9014
  })) : R("", !0),
9015
- (p(!0), W(Me, null, xe(U(m.value.children), (q, Ne) => (p(), I(Y, {
9015
+ (p(!0), W(Me, null, xe(U(m.value.children), (q, Ne) => (p(), L(Y, {
9016
9016
  name: "children",
9017
9017
  key: "item" + Ne,
9018
9018
  label: Ne == 0 ? "子菜单项" : " "
@@ -9050,7 +9050,7 @@ const Yi = { class: "menu-title" }, Zi = {
9050
9050
  ]),
9051
9051
  _: 2
9052
9052
  }, 1032, ["onClick"]),
9053
- Ne == U(m.value.children).length - 1 ? (p(), I(F, {
9053
+ Ne == U(m.value.children).length - 1 ? (p(), L(F, {
9054
9054
  key: 0,
9055
9055
  variant: "outline",
9056
9056
  theme: "default",
@@ -9099,7 +9099,7 @@ const Yi = { class: "menu-title" }, Zi = {
9099
9099
  ]),
9100
9100
  _: 1
9101
9101
  }),
9102
- m.value.isInner ? (p(), I(Y, {
9102
+ m.value.isInner ? (p(), L(Y, {
9103
9103
  key: 0,
9104
9104
  label: "选择菜单"
9105
9105
  }, {
@@ -9107,12 +9107,12 @@ const Yi = { class: "menu-title" }, Zi = {
9107
9107
  V(pe, {
9108
9108
  modelValue: m.value.url,
9109
9109
  "onUpdate:modelValue": A[5] || (A[5] = (q) => m.value.url = q),
9110
- options: f(k)
9110
+ options: f(I)
9111
9111
  }, null, 8, ["modelValue", "options"])
9112
9112
  ]),
9113
9113
  _: 1
9114
9114
  })) : R("", !0),
9115
- m.value.isInner ? R("", !0) : (p(), I(Y, {
9115
+ m.value.isInner ? R("", !0) : (p(), L(Y, {
9116
9116
  key: 1,
9117
9117
  label: "菜单路径"
9118
9118
  }, {
@@ -9130,7 +9130,7 @@ const Yi = { class: "menu-title" }, Zi = {
9130
9130
  } : s.value == "moveItemTo" ? {
9131
9131
  name: "body",
9132
9132
  fn: C(() => [
9133
- m.value.isGroup ? R("", !0) : (p(), I(Y, {
9133
+ m.value.isGroup ? R("", !0) : (p(), L(Y, {
9134
9134
  key: 0,
9135
9135
  name: "parent",
9136
9136
  label: "转移至",
@@ -9138,7 +9138,7 @@ const Yi = { class: "menu-title" }, Zi = {
9138
9138
  }, {
9139
9139
  default: C(() => [
9140
9140
  V(pe, {
9141
- options: f(w),
9141
+ options: f(y),
9142
9142
  modelValue: m.value.parent,
9143
9143
  "onUpdate:modelValue": A[7] || (A[7] = (q) => m.value.parent = q),
9144
9144
  autosize: ""