@gonsin/gview 2.0.16 → 2.0.17

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,10 +1,10 @@
1
1
  var fo = Object.defineProperty;
2
2
  var ho = (e, n, t) => n in e ? fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var ft = (e, n, t) => (ho(e, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { defineComponent as ee, ref as W, computed as F, resolveComponent as j, openBlock as p, createBlock as _, normalizeClass as Y, unref as m, withCtx as k, createElementBlock as X, Fragment as pe, renderList as Ie, createVNode as S, createTextVNode as Q, createCommentVNode as K, toDisplayString as ye, nextTick as po, createElementVNode as le, normalizeStyle as It, renderSlot as Fe, isRef as kn, onMounted as at, mergeProps as Qt, createSlots as Lt, normalizeProps as In, guardReactiveProps as Ln, watch as ge, onBeforeUnmount as nt, onBeforeMount as bt, shallowRef as go, defineAsyncComponent as vo, Transition as yo, withModifiers as on } from "vue";
4
+ import { defineComponent as ee, ref as W, computed as F, resolveComponent as j, openBlock as p, createBlock as _, normalizeClass as Y, unref as m, withCtx as k, createElementBlock as X, Fragment as pe, renderList as Ie, createVNode as S, createTextVNode as Q, createCommentVNode as K, toDisplayString as ye, nextTick as po, createElementVNode as le, normalizeStyle as Lt, renderSlot as Fe, isRef as kn, onMounted as at, mergeProps as Qt, createSlots as Nt, normalizeProps as In, guardReactiveProps as Ln, watch as ge, onBeforeUnmount as nt, onBeforeMount as bt, shallowRef as go, defineAsyncComponent as vo, Transition as yo, withModifiers as on } from "vue";
5
5
  import { useRouter as ct, useRoute as dt } from "vue-router";
6
- import { defineStore as Nt } from "pinia";
7
- import { MessagePlugin as J, DialogPlugin as kt } from "tdesign-vue-next";
6
+ import { defineStore as _t } from "pinia";
7
+ import { MessagePlugin as Z, DialogPlugin as kt } from "tdesign-vue-next";
8
8
  import bo from "axios";
9
9
  import { customAlphabet as wo } from "nanoid";
10
10
  import { get as ae, set as We, cloneDeep as vt } from "lodash-es";
@@ -13,7 +13,7 @@ import { Toolbar as Mo, Editor as To } from "@wangeditor/editor-for-vue";
13
13
  import et from "mustache";
14
14
  import Co from "he";
15
15
  import ko from "nprogress";
16
- const yt = "config", an = "themeConfig", Io = "user", Oi = "menu", ln = "initTabMenuList", rn = "tabMenu", Pt = "sideMenuConfig", Bi = "token", Fi = "tokenExpiredTime", ji = "dataId", sn = "sessionId", Lo = {
16
+ const yt = "config", an = "themeConfig", Io = "user", Oi = "menu", ln = "initTabMenuList", rn = "tabMenu", Ot = "sideMenuConfig", Bi = "token", Fi = "tokenExpiredTime", ji = "dataId", sn = "sessionId", Lo = {
17
17
  brandTheme: "default",
18
18
  // 主题色
19
19
  displayMode: "light"
@@ -101,7 +101,7 @@ class Sn {
101
101
  this.storage.clear();
102
102
  }
103
103
  }
104
- const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
104
+ const pt = new Sn("session"), qe = new Sn("local"), Be = _t("setting", {
105
105
  state: () => ({
106
106
  // 登录标志
107
107
  isUserLogin: !!pt.getItem(Io) || !1,
@@ -116,7 +116,7 @@ const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
116
116
  ...Lo
117
117
  },
118
118
  // 侧边菜单配置
119
- sideMenuTree: qe.getItem(Pt) || [],
119
+ sideMenuTree: qe.getItem(Ot) || [],
120
120
  // 用户传入GView的信息与配置
121
121
  userConfig: qe.getItem(yt) || {
122
122
  userInfo: {
@@ -165,7 +165,7 @@ const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
165
165
  },
166
166
  setSideMenuConfig(e) {
167
167
  const n = _n(e);
168
- this.sideMenuTree = n, qe.setItem(Pt, n);
168
+ this.sideMenuTree = n, qe.setItem(Ot, n);
169
169
  },
170
170
  /**
171
171
  * @description 用户登录后初始化配置
@@ -173,7 +173,7 @@ const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
173
173
  async initUserConfig(e) {
174
174
  qe.setItem(yt, e), this.userConfig = { ...e };
175
175
  const { userMenu: n } = e, t = Nn(n, null, 1);
176
- qe.setItem(Pt, t), this.sideMenuTree = t, this.setUserLoginStatus(!0);
176
+ qe.setItem(Ot, t), this.sideMenuTree = t, this.setUserLoginStatus(!0);
177
177
  },
178
178
  /**
179
179
  * @description 用户退出
@@ -211,7 +211,7 @@ const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
211
211
  this.changeMode(e), this.changeBrandTheme(e), this.changeTheme(e);
212
212
  }
213
213
  }
214
- }), _t = Nt("tabMenu", {
214
+ }), xt = _t("tabMenu", {
215
215
  state: () => ({
216
216
  // 初始化tab菜单列表
217
217
  initTabMenuList: pt.getItem(ln) || [],
@@ -266,7 +266,7 @@ const pt = new Sn("session"), qe = new Sn("local"), Be = Nt("setting", {
266
266
  this.setTabMenuList(this.initTabMenuList);
267
267
  }
268
268
  }
269
- }), No = window.location.origin.replace(window.location.protocol, "ws:") + "/gview/websocket", Ot = (e, n = "") => n ? {
269
+ }), No = window.location.origin.replace(window.location.protocol, "ws:") + "/gview/websocket", Bt = (e, n = "") => n ? {
270
270
  head: "gonsin",
271
271
  cmd: {
272
272
  cmd: "gview_client",
@@ -299,10 +299,10 @@ function Ri(e) {
299
299
  function zi(e) {
300
300
  return He(e, "AsyncFunction");
301
301
  }
302
- function Gi(e) {
302
+ function $i(e) {
303
303
  return He(e, "Promise") && Vn(e) && cn(e.then) && cn(e.catch);
304
304
  }
305
- function $i(e) {
305
+ function Gi(e) {
306
306
  return He(e, "String");
307
307
  }
308
308
  function Ki(e) {
@@ -324,7 +324,7 @@ function Se(e) {
324
324
  function An(e) {
325
325
  return Se(e) || (e + "").trim() == "";
326
326
  }
327
- const qt = Nt("socket", {
327
+ const qt = _t("socket", {
328
328
  state: () => ({
329
329
  socket: null,
330
330
  socketInterval: void 0,
@@ -345,12 +345,12 @@ const qt = Nt("socket", {
345
345
  initSocket() {
346
346
  const e = this;
347
347
  this.isSocketLinked = !1, this.socket = new WebSocket(No), this.socket.onopen = function(n) {
348
- let t = Ot("heart");
348
+ let t = Bt("heart");
349
349
  e.socketInterval = setInterval(function() {
350
350
  e.socket && e.socket.send(JSON.stringify(t));
351
351
  }, _o);
352
352
  }, this.socket.onclose = function(n) {
353
- J.error("WebSocket 断开连接"), e.socketInterval = null, e.isSocketResetting = !0, e.socket = null, J.error("WebSocket 重新连接..."), e.socketTimeout = setTimeout(function() {
353
+ Z.error("WebSocket 断开连接"), e.socketInterval = null, e.isSocketResetting = !0, e.socket = null, Z.error("WebSocket 重新连接..."), e.socketTimeout = setTimeout(function() {
354
354
  e.isSocketResetting && (e.initSocket(), e.isSocketLinked && (clearTimeout(e.socketTimeout), setTimeout(() => {
355
355
  window.dispatchEvent(new CustomEvent("onSocketReload"));
356
356
  }, 2e3)));
@@ -369,15 +369,15 @@ const qt = Nt("socket", {
369
369
  }, e.isSocketLinked = !0;
370
370
  },
371
371
  sendRegisterMessage(e) {
372
- let n = Ot("register", e);
372
+ let n = Bt("register", e);
373
373
  dn(this.socket) || this.socket.send(JSON.stringify(n));
374
374
  },
375
375
  sendUnregisterMessage(e) {
376
- let n = Ot("unregister", e);
376
+ let n = Bt("unregister", e);
377
377
  dn(this.socket) || this.socket.send(JSON.stringify(n));
378
378
  }
379
379
  }
380
- }), Xt = Nt("props", {
380
+ }), Xt = _t("props", {
381
381
  state: () => ({
382
382
  propsSource: {}
383
383
  }),
@@ -392,16 +392,16 @@ const qt = Nt("socket", {
392
392
  }), n;
393
393
  }
394
394
  }
395
- }), Z = "GView";
395
+ }), J = "GView";
396
396
  function mn(e) {
397
397
  let n = {};
398
398
  return e.indexOf("?") !== -1 && e.split("?")[1].split("&").forEach((o) => {
399
399
  n[o.split("=")[0]] = o.split("=")[1];
400
400
  }), n;
401
401
  }
402
- function zt(e, n) {
403
- const t = new URLSearchParams(n), o = `?${t.toString()}`;
404
- return Yt(e) || (e = `http://${e}`), t.toString() ? `${e}${o}` : e;
402
+ function It(e, n, t = !0) {
403
+ const o = new URLSearchParams(n), a = `?${o.toString()}`;
404
+ return t && !Yt(e) && (e = `http://${e}`), o.toString() ? `${e}${a}` : e;
405
405
  }
406
406
  function Yt(e) {
407
407
  return /^(?:https?|ftp):\/\/(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|localhost|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(:\d+)?(\/[^\s]*)?$/i.test(e);
@@ -409,7 +409,7 @@ function Yt(e) {
409
409
  const Vo = /* @__PURE__ */ ee({
410
410
  __name: "GLayoutHeaderTab",
411
411
  setup(e) {
412
- const n = ct(), t = dt(), o = W(""), a = _t(), l = Be(), i = F(() => a.tabMenuList), u = F(() => l.homeUrl);
412
+ const n = ct(), t = dt(), o = W(""), a = xt(), l = Be(), i = F(() => a.tabMenuList), u = F(() => l.homeUrl);
413
413
  function r(T, h, C) {
414
414
  h.trigger === "document" && (o.value = null), T && (o.value = C);
415
415
  }
@@ -459,7 +459,7 @@ const Vo = /* @__PURE__ */ ee({
459
459
  return (T, h) => {
460
460
  const C = j("t-icon"), x = j("t-dropdown-item"), g = j("t-dropdown-menu"), M = j("t-dropdown"), v = j("t-tab-panel"), f = j("t-tabs");
461
461
  return p(), _(f, {
462
- class: Y(`${m(Z)}__header-tabs`),
462
+ class: Y(`${m(J)}__header-tabs`),
463
463
  size: "large",
464
464
  value: decodeURIComponent(T.$route.fullPath),
465
465
  onChange: c,
@@ -566,21 +566,21 @@ const Ao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
566
566
  return (r, c) => {
567
567
  const s = j("t-icon"), d = j("t-button"), b = j("t-dropdown-item"), y = j("t-dropdown-menu"), N = j("t-dropdown"), P = j("t-tooltip"), T = j("t-head-menu"), h = j("t-header");
568
568
  return p(), _(h, {
569
- class: Y(`${m(Z)}__header`)
569
+ class: Y(`${m(J)}__header`)
570
570
  }, {
571
571
  default: k(() => [
572
572
  S(T, { theme: m(a) }, {
573
573
  logo: k(() => [
574
574
  le("div", {
575
- class: Y(`${m(Z)}__header-logo-container`)
575
+ class: Y(`${m(J)}__header-logo-container`)
576
576
  }, [
577
577
  le("div", {
578
- class: Y(`${m(Z)}__header—logo`),
579
- style: It({ backgroundImage: `url(${m(Ao)})` })
578
+ class: Y(`${m(J)}__header—logo`),
579
+ style: Lt({ backgroundImage: `url(${m(Ao)})` })
580
580
  }, null, 6)
581
581
  ], 2),
582
582
  le("div", {
583
- class: Y(`${m(Z)}__header—collapse`)
583
+ class: Y(`${m(J)}__header—collapse`)
584
584
  }, [
585
585
  S(d, {
586
586
  theme: "default",
@@ -600,7 +600,7 @@ const Ao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
600
600
  ]),
601
601
  operations: k(() => [
602
602
  le("div", {
603
- class: Y(`${m(Z)}__header-operations-container`)
603
+ class: Y(`${m(J)}__header-operations-container`)
604
604
  }, [
605
605
  S(N, { trigger: "click" }, {
606
606
  dropdown: k(() => [
@@ -674,11 +674,11 @@ const Po = /* @__PURE__ */ ee({
674
674
  return (n, t) => {
675
675
  const o = j("t-content"), a = j("t-layout");
676
676
  return p(), _(a, {
677
- class: Y(`${m(Z)}__content-layout`)
677
+ class: Y(`${m(J)}__content-layout`)
678
678
  }, {
679
679
  default: k(() => [
680
680
  S(o, {
681
- class: Y(`${m(Z)}__content`)
681
+ class: Y(`${m(J)}__content`)
682
682
  }, {
683
683
  default: k(() => [
684
684
  Fe(n.$slots, "default")
@@ -835,7 +835,7 @@ function Uo(e, n) {
835
835
  let t = jo(e, n);
836
836
  return Function(t)();
837
837
  }
838
- function Gt(e, n = {}) {
838
+ function $t(e, n = {}) {
839
839
  return Uo(e, n)(n);
840
840
  }
841
841
  function Ro(e) {
@@ -890,7 +890,7 @@ function lt(e, n, t) {
890
890
  a.component(n || l || o.name, e), t && a.directive(t.name, t.comp);
891
891
  }, o;
892
892
  }
893
- const Go = /* @__PURE__ */ ee({
893
+ const $o = /* @__PURE__ */ ee({
894
894
  __name: "GLayoutSideMenuContent",
895
895
  props: {
896
896
  sideMenuTree: null
@@ -898,10 +898,10 @@ const Go = /* @__PURE__ */ ee({
898
898
  setup(e) {
899
899
  const n = Be(), t = ct(), o = (a) => {
900
900
  if (Yt(a)) {
901
- const i = zt(a, { token: n.token, _venuServType: 2 });
901
+ const i = It(a, { token: n.token, _venuServType: 2 });
902
902
  window.open(i, "_blank");
903
903
  } else if (a.startsWith(":")) {
904
- const i = zt(
904
+ const i = It(
905
905
  `${window.location.protocol}//${window.location.hostname}${a}`,
906
906
  { token: n.token, _venuServType: 2 }
907
907
  );
@@ -912,7 +912,7 @@ const Go = /* @__PURE__ */ ee({
912
912
  return (a, l) => {
913
913
  const i = j("t-icon"), u = j("t-menu-item"), r = j("GLayoutSideMenuContent", !0), c = j("t-submenu");
914
914
  return p(!0), X(pe, null, Ie(e.sideMenuTree, (s, d) => (p(), X("div", {
915
- class: Y(`${m(Z)}__side-menu-content`),
915
+ class: Y(`${m(J)}__side-menu-content`),
916
916
  key: d
917
917
  }, [
918
918
  !s.children || !s.children.length ? (p(), _(u, {
@@ -976,7 +976,7 @@ const Ze = (e, n) => {
976
976
  for (const [o, a] of n)
977
977
  t[o] = a;
978
978
  return t;
979
- }, $o = /* @__PURE__ */ Ze(Go, [["__scopeId", "data-v-db9b7cab"]]), Ko = /* @__PURE__ */ ee({
979
+ }, Go = /* @__PURE__ */ Ze($o, [["__scopeId", "data-v-db9b7cab"]]), Ko = /* @__PURE__ */ ee({
980
980
  __name: "GLayoutSideMenu",
981
981
  setup(e) {
982
982
  ct();
@@ -999,7 +999,7 @@ const Ze = (e, n) => {
999
999
  return (r, c) => {
1000
1000
  const s = j("t-menu"), d = j("t-drawer");
1001
1001
  return p(), _(d, {
1002
- class: Y(`${m(Z)}__drawer`),
1002
+ class: Y(`${m(J)}__drawer`),
1003
1003
  size: "232px",
1004
1004
  placement: "left",
1005
1005
  visible: m(l),
@@ -1017,7 +1017,7 @@ const Ze = (e, n) => {
1017
1017
  defaultExpanded: m(u)
1018
1018
  }, {
1019
1019
  default: k(() => [
1020
- S($o, { sideMenuTree: m(o) }, null, 8, ["sideMenuTree"])
1020
+ S(Go, { sideMenuTree: m(o) }, null, 8, ["sideMenuTree"])
1021
1021
  ]),
1022
1022
  _: 1
1023
1023
  }, 8, ["theme", "value", "defaultExpanded"])
@@ -1037,8 +1037,8 @@ const Wo = /* @__PURE__ */ ee({
1037
1037
  background: Fo(n.value, Oo)["--td-brand-color"]
1038
1038
  }));
1039
1039
  return (o, a) => (p(), X("div", {
1040
- style: It(m(t)),
1041
- class: Y(`${m(Z)}__color-container`)
1040
+ style: Lt(m(t)),
1041
+ class: Y(`${m(J)}__color-container`)
1042
1042
  }, null, 6));
1043
1043
  }
1044
1044
  });
@@ -1072,7 +1072,7 @@ const Ho = /* @__PURE__ */ ee({
1072
1072
  return (u, r) => {
1073
1073
  const c = j("t-icon"), s = j("t-radio-button"), d = j("t-radio-group"), b = j("t-drawer");
1074
1074
  return p(), _(b, {
1075
- class: Y(`${m(Z)}__setting-panel`),
1075
+ class: Y(`${m(J)}__setting-panel`),
1076
1076
  visible: m(l),
1077
1077
  "onUpdate:visible": r[2] || (r[2] = (y) => kn(l) ? l.value = y : null),
1078
1078
  footer: !1
@@ -1083,10 +1083,10 @@ const Ho = /* @__PURE__ */ ee({
1083
1083
  ]),
1084
1084
  default: k(() => [
1085
1085
  le("div", {
1086
- class: Y(`${m(Z)}__setting-container`)
1086
+ class: Y(`${m(J)}__setting-container`)
1087
1087
  }, [
1088
1088
  le("div", {
1089
- class: Y(`${m(Z)}__setting-container--title`)
1089
+ class: Y(`${m(J)}__setting-container--title`)
1090
1090
  }, "主题色", 2),
1091
1091
  S(d, {
1092
1092
  modelValue: m(a).brandTheme,
@@ -1098,7 +1098,7 @@ const Ho = /* @__PURE__ */ ee({
1098
1098
  (p(), _(s, {
1099
1099
  key: N,
1100
1100
  value: y,
1101
- class: Y(`${m(Z)}__setting-container--color-group`)
1101
+ class: Y(`${m(J)}__setting-container--color-group`)
1102
1102
  }, {
1103
1103
  default: k(() => [
1104
1104
  S(Wo, { value: y }, null, 8, ["value"])
@@ -1110,7 +1110,7 @@ const Ho = /* @__PURE__ */ ee({
1110
1110
  _: 1
1111
1111
  }, 8, ["modelValue"]),
1112
1112
  le("div", {
1113
- class: Y(`${m(Z)}__setting-container--title`)
1113
+ class: Y(`${m(J)}__setting-container--title`)
1114
1114
  }, "主题模式", 2),
1115
1115
  S(d, {
1116
1116
  modelValue: m(a).displayMode,
@@ -1149,7 +1149,7 @@ const Qo = /* @__PURE__ */ ee({
1149
1149
  return (n, t) => {
1150
1150
  const o = j("t-card"), a = j("t-content"), l = j("t-layout");
1151
1151
  return p(), X("div", {
1152
- class: Y(`${m(Z)}__layout-main`)
1152
+ class: Y(`${m(J)}__layout-main`)
1153
1153
  }, [
1154
1154
  S(l, null, {
1155
1155
  default: k(() => [
@@ -1159,7 +1159,7 @@ const Qo = /* @__PURE__ */ ee({
1159
1159
  S(Po, null, {
1160
1160
  default: k(() => [
1161
1161
  S(o, {
1162
- class: Y(`${m(Z)}__card`),
1162
+ class: Y(`${m(J)}__card`),
1163
1163
  bordered: !1,
1164
1164
  title: e.title
1165
1165
  }, {
@@ -1208,9 +1208,9 @@ const En = /* @__PURE__ */ ee({
1208
1208
  return (n, t) => {
1209
1209
  const o = j("t-dialog");
1210
1210
  return p(), _(o, Qt({
1211
- class: `${m(Z)}__common-dialog`,
1211
+ class: `${m(J)}__common-dialog`,
1212
1212
  placement: "center"
1213
- }, e.commonDialogProps), Lt({ _: 2 }, [
1213
+ }, e.commonDialogProps), Nt({ _: 2 }, [
1214
1214
  Ie(n.$slots, (a, l) => ({
1215
1215
  name: l,
1216
1216
  fn: k((i) => [
@@ -1234,16 +1234,16 @@ const Pn = lt(qo), On = /* @__PURE__ */ ee({
1234
1234
  }), (o, a) => {
1235
1235
  const l = j("t-form");
1236
1236
  return p(), X("div", {
1237
- class: Y(`${m(Z)}__common-form`)
1237
+ class: Y(`${m(J)}__common-form`)
1238
1238
  }, [
1239
1239
  S(l, Qt({
1240
1240
  ref_key: "tFormRef",
1241
1241
  ref: t,
1242
- class: `${m(Z)}__common-form-main`
1242
+ class: `${m(J)}__common-form-main`
1243
1243
  }, e.commonFormProps), {
1244
1244
  default: k(() => [
1245
1245
  le("div", {
1246
- class: Y(`${m(Z)}__common-form-main--body`),
1246
+ class: Y(`${m(J)}__common-form-main--body`),
1247
1247
  ref: "commonFormBodyRef"
1248
1248
  }, [
1249
1249
  Fe(o.$slots, "body")
@@ -1252,7 +1252,7 @@ const Pn = lt(qo), On = /* @__PURE__ */ ee({
1252
1252
  _: 3
1253
1253
  }, 16, ["class"]),
1254
1254
  le("div", {
1255
- class: Y(`${m(Z)}__common-form-footer`)
1255
+ class: Y(`${m(J)}__common-form-footer`)
1256
1256
  }, [
1257
1257
  Fe(o.$slots, "footer")
1258
1258
  ], 2)
@@ -1266,15 +1266,15 @@ const Xo = lt(On), Yo = /* @__PURE__ */ ee({
1266
1266
  return (n, t) => {
1267
1267
  const o = j("t-row");
1268
1268
  return p(), X("div", {
1269
- class: Y(`${m(Z)}__common-header`)
1269
+ class: Y(`${m(J)}__common-header`)
1270
1270
  }, [
1271
1271
  S(o, { justify: "space-between" }, {
1272
1272
  default: k(() => [
1273
1273
  le("div", {
1274
- class: Y(`${m(Z)}__common-header--left`)
1274
+ class: Y(`${m(J)}__common-header--left`)
1275
1275
  }, [
1276
1276
  S(o, {
1277
- class: Y(`${m(Z)}__common-header--left-row`)
1277
+ class: Y(`${m(J)}__common-header--left-row`)
1278
1278
  }, {
1279
1279
  default: k(() => [
1280
1280
  Fe(n.$slots, "left-operations")
@@ -1283,7 +1283,7 @@ const Xo = lt(On), Yo = /* @__PURE__ */ ee({
1283
1283
  }, 8, ["class"])
1284
1284
  ], 2),
1285
1285
  le("div", {
1286
- class: Y(`${m(Z)}__common-header--right`)
1286
+ class: Y(`${m(J)}__common-header--right`)
1287
1287
  }, [
1288
1288
  Fe(n.$slots, "right-operations")
1289
1289
  ], 2)
@@ -1306,7 +1306,7 @@ const Bn = lt(Yo), Zo = /* @__PURE__ */ ee({
1306
1306
  }), (o, a) => {
1307
1307
  const l = j("t-enhanced-table");
1308
1308
  return p(), X("div", {
1309
- class: Y(`${m(Z)}__common-table`)
1309
+ class: Y(`${m(J)}__common-table`)
1310
1310
  }, [
1311
1311
  S(l, Qt({
1312
1312
  ref_key: "tTableRef",
@@ -1317,7 +1317,7 @@ const Bn = lt(Yo), Zo = /* @__PURE__ */ ee({
1317
1317
  hover: !0,
1318
1318
  bordered: !0,
1319
1319
  tableLayout: "auto"
1320
- }), Lt({ _: 2 }, [
1320
+ }), Nt({ _: 2 }, [
1321
1321
  Ie(o.$slots, (i, u) => ({
1322
1322
  name: u,
1323
1323
  fn: k((r) => [
@@ -1430,7 +1430,7 @@ const Qe = new na(Jo), mt = {
1430
1430
  confirm: "/restapi/s09/gview/active/confirm",
1431
1431
  // 触发 - 触发批量操作事件 POST
1432
1432
  batch: "/restapi/s09/gview/active/batch"
1433
- }, jn = (e) => Qe.get(mt.getOneView, e), xt = (e) => Qe.post(mt.getBoardData, e), oa = (e) => Qe.post(mt.confirm, e), aa = (e) => Qe.post(mt.batch, e), la = (e) => Qe.post(mt.activeFile, e), ia = (e) => Qe.post(mt.downloadFile, e), ra = /* @__PURE__ */ ee({
1433
+ }, jn = (e) => Qe.get(mt.getOneView, e), St = (e) => Qe.post(mt.getBoardData, e), oa = (e) => Qe.post(mt.confirm, e), aa = (e) => Qe.post(mt.batch, e), la = (e) => Qe.post(mt.activeFile, e), ia = (e) => Qe.post(mt.downloadFile, e), ra = /* @__PURE__ */ ee({
1434
1434
  __name: "GHeaderUpload",
1435
1435
  props: {
1436
1436
  formItem: null,
@@ -1441,7 +1441,7 @@ const Qe = new na(Jo), mt = {
1441
1441
  function a(u) {
1442
1442
  var c;
1443
1443
  const { response: r } = u;
1444
- r.state == 200 ? (c = r.data) != null && c.length && (J.success("上传成功"), l(r.data[0])) : (console.log(r), J.error(`上传失败:${r.message}`));
1444
+ r.state == 200 ? (c = r.data) != null && c.length && (Z.success("上传成功"), l(r.data[0])) : (console.log(r), Z.error(`上传失败:${r.message}`));
1445
1445
  }
1446
1446
  function l(u) {
1447
1447
  let r = [];
@@ -1451,11 +1451,11 @@ const Qe = new na(Jo), mt = {
1451
1451
  props: {},
1452
1452
  fileUrls: r
1453
1453
  }).then((c) => {
1454
- c.state == 200 ? J.success("导入成功") : J.error(`导入失败 ${c.message}`);
1454
+ c.state == 200 ? Z.success("导入成功") : Z.error(`导入失败 ${c.message}`);
1455
1455
  });
1456
1456
  }
1457
1457
  function i(u) {
1458
- J.error(`上传失败:${u}`);
1458
+ Z.error(`上传失败:${u}`);
1459
1459
  }
1460
1460
  return (u, r) => {
1461
1461
  const c = j("t-icon"), s = j("t-button"), d = j("t-upload");
@@ -1499,7 +1499,7 @@ const sa = /* @__PURE__ */ Ze(ra, [["__scopeId", "data-v-15e7203e"]]), Un = /* @
1499
1499
  };
1500
1500
  }
1501
1501
  });
1502
- function Ne(e) {
1502
+ function _e(e) {
1503
1503
  switch (e) {
1504
1504
  case "check_box":
1505
1505
  case "switch":
@@ -1523,7 +1523,7 @@ function Zt(e, n) {
1523
1523
  t.keyName && An(ae(e, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && We(
1524
1524
  e,
1525
1525
  t.keyName,
1526
- Ne(t.itemType)
1526
+ _e(t.itemType)
1527
1527
  );
1528
1528
  }), vt(e, {});
1529
1529
  {
@@ -1532,7 +1532,7 @@ function Zt(e, n) {
1532
1532
  Se(o.keyName) || We(
1533
1533
  t,
1534
1534
  o.keyName,
1535
- Ne(o.itemType)
1535
+ _e(o.itemType)
1536
1536
  );
1537
1537
  }), vt(t, {});
1538
1538
  }
@@ -1555,7 +1555,7 @@ function Rn(e) {
1555
1555
  };
1556
1556
  return u(l, n);
1557
1557
  }
1558
- const $t = /* @__PURE__ */ ee({
1558
+ const Gt = /* @__PURE__ */ ee({
1559
1559
  __name: "GFormInput",
1560
1560
  props: {
1561
1561
  inputType: null,
@@ -1588,7 +1588,7 @@ const $t = /* @__PURE__ */ ee({
1588
1588
  t.originValue && t.originValue != r && n("blur:modelValue", r);
1589
1589
  }
1590
1590
  return nt(() => {
1591
- i(Ne(o.value));
1591
+ i(_e(o.value));
1592
1592
  }), (r, c) => {
1593
1593
  const s = j("t-input");
1594
1594
  return p(), _(s, {
@@ -1635,7 +1635,7 @@ const $t = /* @__PURE__ */ ee({
1635
1635
  }, null, 8, ["modelValue"]);
1636
1636
  };
1637
1637
  }
1638
- }), Gn = /* @__PURE__ */ ee({
1638
+ }), $n = /* @__PURE__ */ ee({
1639
1639
  __name: "GFormSwitch",
1640
1640
  props: {
1641
1641
  modelValue: null,
@@ -1662,10 +1662,10 @@ const $t = /* @__PURE__ */ ee({
1662
1662
  return ge(
1663
1663
  () => t.disabled,
1664
1664
  () => {
1665
- t.disabled && n("update:modelValue", Ne(o.value));
1665
+ t.disabled && n("update:modelValue", _e(o.value));
1666
1666
  }
1667
1667
  ), bt(() => {
1668
- n("update:modelValue", Ne(o.value));
1668
+ n("update:modelValue", _e(o.value));
1669
1669
  }), (i, u) => {
1670
1670
  const r = j("t-switch");
1671
1671
  return p(), _(r, {
@@ -1678,7 +1678,7 @@ const $t = /* @__PURE__ */ ee({
1678
1678
  }
1679
1679
  });
1680
1680
  async function ua(e, n, t, o) {
1681
- const a = await xt({
1681
+ const a = await St({
1682
1682
  viewName: n,
1683
1683
  dataId: t,
1684
1684
  props: o
@@ -1695,10 +1695,10 @@ async function ua(e, n, t, o) {
1695
1695
  parentKeyName: e == null ? void 0 : e.parentKeyName
1696
1696
  });
1697
1697
  } else
1698
- J.error(`获取数据失败:${a.message}`);
1698
+ Z.error(`获取数据失败:${a.message}`);
1699
1699
  }
1700
1700
  async function ca(e, n, t, o) {
1701
- const a = await xt({
1701
+ const a = await St({
1702
1702
  viewName: n,
1703
1703
  dataId: t,
1704
1704
  props: o
@@ -1715,10 +1715,10 @@ async function ca(e, n, t, o) {
1715
1715
  parentKeyName: e == null ? void 0 : e.parentKeyName
1716
1716
  });
1717
1717
  } else
1718
- J.error(`获取数据失败:${a.message}`);
1718
+ Z.error(`获取数据失败:${a.message}`);
1719
1719
  }
1720
1720
  async function da(e, n, t, o) {
1721
- const a = await xt({
1721
+ const a = await St({
1722
1722
  viewName: n,
1723
1723
  dataId: t,
1724
1724
  props: o
@@ -1736,9 +1736,9 @@ async function da(e, n, t, o) {
1736
1736
  }), i;
1737
1737
  }
1738
1738
  } else
1739
- J.error(`获取数据失败:${a.message}`);
1739
+ Z.error(`获取数据失败:${a.message}`);
1740
1740
  }
1741
- function St(e) {
1741
+ function Dt(e) {
1742
1742
  const n = W([]), t = dt(), o = F(() => {
1743
1743
  if (Se(t.query))
1744
1744
  return {};
@@ -1790,7 +1790,7 @@ function St(e) {
1790
1790
  options: n
1791
1791
  };
1792
1792
  }
1793
- const $n = /* @__PURE__ */ ee({
1793
+ const Gn = /* @__PURE__ */ ee({
1794
1794
  __name: "GFormRadio",
1795
1795
  props: {
1796
1796
  modelValue: null,
@@ -1810,7 +1810,7 @@ const $n = /* @__PURE__ */ ee({
1810
1810
  }), l = F(() => {
1811
1811
  var c;
1812
1812
  return (c = t.formItem) == null ? void 0 : c.listData.dataId;
1813
- }), { options: i } = St({
1813
+ }), { options: i } = Dt({
1814
1814
  itemType: o.value,
1815
1815
  viewName: t.viewName,
1816
1816
  listData: a.value,
@@ -1832,10 +1832,10 @@ const $n = /* @__PURE__ */ ee({
1832
1832
  return ge(
1833
1833
  () => t.disabled,
1834
1834
  () => {
1835
- t.disabled && n("update:modelValue", Ne(o.value));
1835
+ t.disabled && n("update:modelValue", _e(o.value));
1836
1836
  }
1837
1837
  ), bt(() => {
1838
- n("update:modelValue", Ne(o.value));
1838
+ n("update:modelValue", _e(o.value));
1839
1839
  }), (c, s) => {
1840
1840
  const d = j("t-radio"), b = j("t-radio-group");
1841
1841
  return p(), _(b, {
@@ -1880,7 +1880,7 @@ const $n = /* @__PURE__ */ ee({
1880
1880
  }), l = F(() => {
1881
1881
  var s;
1882
1882
  return (s = t.formItem) == null ? void 0 : s.listData.dataId;
1883
- }), { options: i } = St({
1883
+ }), { options: i } = Dt({
1884
1884
  itemType: o.value,
1885
1885
  viewName: t.viewName,
1886
1886
  listData: a.value,
@@ -1905,10 +1905,10 @@ const $n = /* @__PURE__ */ ee({
1905
1905
  return ge(
1906
1906
  () => t.disabled,
1907
1907
  () => {
1908
- t.disabled || r(Ne(o.value));
1908
+ t.disabled || r(_e(o.value));
1909
1909
  }
1910
1910
  ), nt(() => {
1911
- r(Ne(o.value));
1911
+ r(_e(o.value));
1912
1912
  }), (s, d) => {
1913
1913
  var y;
1914
1914
  const b = j("t-select");
@@ -1963,7 +1963,7 @@ const $n = /* @__PURE__ */ ee({
1963
1963
  return ge(
1964
1964
  () => t.disabled,
1965
1965
  () => {
1966
- t.disabled && n("update:modelValue", Ne(o.value));
1966
+ t.disabled && n("update:modelValue", _e(o.value));
1967
1967
  }
1968
1968
  ), (u, r) => {
1969
1969
  var d, b, y, N, P, T, h;
@@ -2028,7 +2028,7 @@ const $n = /* @__PURE__ */ ee({
2028
2028
  }), i = F(() => {
2029
2029
  var s;
2030
2030
  return (s = t.formItem) == null ? void 0 : s.treeData.dataId;
2031
- }), { options: u } = St({
2031
+ }), { options: u } = Dt({
2032
2032
  itemType: a.value,
2033
2033
  viewName: t.viewName,
2034
2034
  treeData: l.value,
@@ -2043,10 +2043,10 @@ const $n = /* @__PURE__ */ ee({
2043
2043
  return ge(
2044
2044
  () => t.disabled,
2045
2045
  () => {
2046
- t.disabled || r(Ne(a.value));
2046
+ t.disabled || r(_e(a.value));
2047
2047
  }
2048
2048
  ), nt(() => {
2049
- r(Ne(a.value));
2049
+ r(_e(a.value));
2050
2050
  }), (s, d) => {
2051
2051
  var y;
2052
2052
  const b = j("t-tree-select");
@@ -2086,7 +2086,7 @@ const $n = /* @__PURE__ */ ee({
2086
2086
  }), l = F(() => {
2087
2087
  var s;
2088
2088
  return (s = t.formItem) == null ? void 0 : s.treeData.dataId;
2089
- }), { options: i } = St({
2089
+ }), { options: i } = Dt({
2090
2090
  itemType: o.value,
2091
2091
  viewName: t.viewName,
2092
2092
  treeData: a.value,
@@ -2111,10 +2111,10 @@ const $n = /* @__PURE__ */ ee({
2111
2111
  return ge(
2112
2112
  () => t.disabled,
2113
2113
  () => {
2114
- t.disabled || r(Ne(o.value));
2114
+ t.disabled || r(_e(o.value));
2115
2115
  }
2116
2116
  ), nt(() => {
2117
- r(Ne(o.value));
2117
+ r(_e(o.value));
2118
2118
  }), (s, d) => {
2119
2119
  const b = j("t-cascader");
2120
2120
  return p(), _(b, {
@@ -2145,14 +2145,14 @@ const $n = /* @__PURE__ */ ee({
2145
2145
  function i(c) {
2146
2146
  if (c.length) {
2147
2147
  const { name: s, response: d } = c[0];
2148
- d.data.length ? (n("update:modelValue", d.data[0]), n("blur:modelValue", d.data[0]), n("update:fileName", s), J.success("上传成功")) : (J.success(`上传失败 ${d == null ? void 0 : d.message}`), n("update:fileName", ""), n("update:modelValue", ""), n("blur:modelValue", ""));
2148
+ d.data.length ? (n("update:modelValue", d.data[0]), n("blur:modelValue", d.data[0]), n("update:fileName", s), Z.success("上传成功")) : (Z.success(`上传失败 ${d == null ? void 0 : d.message}`), n("update:fileName", ""), n("update:modelValue", ""), n("blur:modelValue", ""));
2149
2149
  }
2150
2150
  }
2151
2151
  function u(c) {
2152
2152
  n("update:fileName", ""), n("update:modelValue", ""), n("blur:modelValue", "");
2153
2153
  }
2154
2154
  function r(c) {
2155
- J.error(`上传失败:${c}`);
2155
+ Z.error(`上传失败:${c}`);
2156
2156
  }
2157
2157
  return (c, s) => {
2158
2158
  var b, y, N;
@@ -2356,7 +2356,7 @@ const ha = Kt, pa = /* @__PURE__ */ ee({
2356
2356
  return ge(
2357
2357
  () => t.disabled,
2358
2358
  () => {
2359
- t.disabled && n("update:modelValue", Ne(o.value));
2359
+ t.disabled && n("update:modelValue", _e(o.value));
2360
2360
  }
2361
2361
  ), (u, r) => {
2362
2362
  var s;
@@ -2466,7 +2466,7 @@ function Xn(e = {}) {
2466
2466
  if (!Se(o) && o !== 1) {
2467
2467
  let l, i;
2468
2468
  try {
2469
- return l = et.render(o, { form: e.formModel.value }), i = Gt(l, { form: e.formModel.value }), i;
2469
+ return l = et.render(o, { form: e.formModel.value }), i = $t(l, { form: e.formModel.value }), i;
2470
2470
  } catch (u) {
2471
2471
  console.error(o, u.message);
2472
2472
  }
@@ -2477,7 +2477,7 @@ function Xn(e = {}) {
2477
2477
  if (!Se(o) && o !== 0) {
2478
2478
  let l, i;
2479
2479
  try {
2480
- l = et.render(o, { form: e.formModel.value }), i = Gt(l, { form: e.formModel.value });
2480
+ l = et.render(o, { form: e.formModel.value }), i = $t(l, { form: e.formModel.value });
2481
2481
  } catch (u) {
2482
2482
  console.error(o, u.message);
2483
2483
  }
@@ -2532,7 +2532,7 @@ const ya = /* @__PURE__ */ ee({
2532
2532
  n("blur:modelValue", a.value);
2533
2533
  }
2534
2534
  return nt(() => {
2535
- l(Ne(o.value));
2535
+ l(_e(o.value));
2536
2536
  }), (s, d) => {
2537
2537
  const b = j("t-button"), y = j("t-input"), N = j("t-input-group"), P = j("t-space");
2538
2538
  return p(), _(P, null, {
@@ -2625,7 +2625,7 @@ const ya = /* @__PURE__ */ ee({
2625
2625
  const P = j("t-divider"), T = j("t-form-item");
2626
2626
  return p(), X("div", {
2627
2627
  ref: "formItemRef",
2628
- class: Y(`${m(Z)}__form-item`),
2628
+ class: Y(`${m(J)}__form-item`),
2629
2629
  id: m(b)
2630
2630
  }, [
2631
2631
  c.value ? (p(), X(pe, { key: 0 }, [
@@ -2653,7 +2653,7 @@ const ya = /* @__PURE__ */ ee({
2653
2653
  key: 0,
2654
2654
  modelValue: m(ae)(m(a), e.formItem.keyName)
2655
2655
  }, null, 8, ["modelValue"])) : K("", !0),
2656
- e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), _($t, {
2656
+ e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), _(Gt, {
2657
2657
  key: 1,
2658
2658
  formItem: e.formItem,
2659
2659
  inputType: (C = (h = e.formItem) == null ? void 0 : h.inputType) == null ? void 0 : C.toLowerCase(),
@@ -2662,7 +2662,7 @@ const ya = /* @__PURE__ */ ee({
2662
2662
  disabled: m(r),
2663
2663
  "onUpdate:modelValue": N[0] || (N[0] = (g) => u(e.formItem.keyName, g))
2664
2664
  }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : K("", !0),
2665
- e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), _($t, {
2665
+ e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), _(Gt, {
2666
2666
  key: 2,
2667
2667
  formItem: e.formItem,
2668
2668
  inputType: e.formItem.inputType.toLowerCase(),
@@ -2677,7 +2677,7 @@ const ya = /* @__PURE__ */ ee({
2677
2677
  disabled: m(r),
2678
2678
  "onUpdate:modelValue": N[2] || (N[2] = (g) => u(e.formItem.keyName, g))
2679
2679
  }, null, 8, ["modelValue", "disabled"])) : K("", !0),
2680
- e.formItem.itemType === "switch" ? (p(), _(Gn, {
2680
+ e.formItem.itemType === "switch" ? (p(), _($n, {
2681
2681
  key: 4,
2682
2682
  formItem: e.formItem,
2683
2683
  viewName: e.viewName,
@@ -2685,7 +2685,7 @@ const ya = /* @__PURE__ */ ee({
2685
2685
  disabled: m(r),
2686
2686
  "onUpdate:modelValue": N[3] || (N[3] = (g) => u(e.formItem.keyName, g))
2687
2687
  }, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : K("", !0),
2688
- e.formItem.itemType === "radio" ? (p(), _($n, {
2688
+ e.formItem.itemType === "radio" ? (p(), _(Gn, {
2689
2689
  key: 5,
2690
2690
  modelValue: m(ae)(m(a), e.formItem.keyName),
2691
2691
  formItem: e.formItem,
@@ -2799,7 +2799,7 @@ const Yn = /* @__PURE__ */ Ze(wa, [["__scopeId", "data-v-bce49a72"]]), Ma = /* @
2799
2799
  }
2800
2800
  return (c, s) => {
2801
2801
  const d = j("t-button");
2802
- return p(), _(m(Bn), null, Lt({
2802
+ return p(), _(m(Bn), null, Nt({
2803
2803
  "left-operations": k(() => [
2804
2804
  (p(!0), X(pe, null, Ie(m(o), (b) => (p(), X(pe, {
2805
2805
  key: b.buttonId
@@ -2987,7 +2987,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
2987
2987
  n("confirm-form", a.value, M.buttonId);
2988
2988
  else {
2989
2989
  const f = x(v);
2990
- J.warning(f == null ? void 0 : f.message);
2990
+ Z.warning(f == null ? void 0 : f.message);
2991
2991
  }
2992
2992
  });
2993
2993
  break;
@@ -2998,7 +2998,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
2998
2998
  n("confirm-and-close", a.value, M.buttonId);
2999
2999
  else {
3000
3000
  const f = x(v);
3001
- J.warning(f == null ? void 0 : f.message);
3001
+ Z.warning(f == null ? void 0 : f.message);
3002
3002
  }
3003
3003
  });
3004
3004
  break;
@@ -3105,7 +3105,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
3105
3105
  n("blur", u, a.value);
3106
3106
  }
3107
3107
  return (u, r) => (p(), X("div", {
3108
- class: Y(`${m(Z)}__table-form`)
3108
+ class: Y(`${m(J)}__table-form`)
3109
3109
  }, [
3110
3110
  (p(!0), X(pe, null, Ie(m(o), (c) => {
3111
3111
  var s;
@@ -3116,7 +3116,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
3116
3116
  key: 0,
3117
3117
  modelValue: m(ae)(m(a), e.col.colKey)
3118
3118
  }, null, 8, ["modelValue"])) : K("", !0),
3119
- c.itemType == "text_input" ? (p(), _($t, {
3119
+ c.itemType == "text_input" ? (p(), _(Gt, {
3120
3120
  key: 1,
3121
3121
  formItem: c,
3122
3122
  viewName: e.viewName,
@@ -3135,7 +3135,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
3135
3135
  "onUpdate:modelValue": r[1] || (r[1] = (d) => e.col.colKey && l(e.col.colKey, d)),
3136
3136
  "onBlur:modelValue": (d) => i(c)
3137
3137
  }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : K("", !0),
3138
- c.itemType === "switch" ? (p(), _(Gn, {
3138
+ c.itemType === "switch" ? (p(), _($n, {
3139
3139
  key: 3,
3140
3140
  formItem: c,
3141
3141
  viewName: e.viewName,
@@ -3144,7 +3144,7 @@ const Ta = /* @__PURE__ */ Ze(Ma, [["__scopeId", "data-v-db9f8677"]]), Ca = ["id
3144
3144
  "onUpdate:modelValue": r[2] || (r[2] = (d) => e.col.colKey && l(e.col.colKey, d)),
3145
3145
  "onBlur:modelValue": (d) => i(c)
3146
3146
  }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : K("", !0),
3147
- c.itemType === "radio" ? (p(), _($n, {
3147
+ c.itemType === "radio" ? (p(), _(Gn, {
3148
3148
  key: 4,
3149
3149
  originValue: m(ae)(e.row, e.col.colKey),
3150
3150
  modelValue: m(ae)(m(a), e.col.colKey),
@@ -3216,7 +3216,7 @@ function Zn(e = {}) {
3216
3216
  }
3217
3217
  };
3218
3218
  }
3219
- function Bt(e) {
3219
+ function Ft(e) {
3220
3220
  return e === "" ? e : e === "true" || e == "1";
3221
3221
  }
3222
3222
  function Na(e, n) {
@@ -3494,9 +3494,9 @@ function Da(e, {
3494
3494
  archive: y
3495
3495
  };
3496
3496
  }
3497
- class Dt {
3497
+ class Vt {
3498
3498
  static for(n) {
3499
- return new Dt().append(n).get();
3499
+ return new Vt().append(n).get();
3500
3500
  }
3501
3501
  constructor() {
3502
3502
  this.crc = -1;
@@ -3510,7 +3510,7 @@ class Dt {
3510
3510
  return this.crc = t, this;
3511
3511
  }
3512
3512
  }
3513
- Dt.prototype.table = (() => {
3513
+ Vt.prototype.table = (() => {
3514
3514
  var e, n, t, o = [];
3515
3515
  for (e = 0; e < 256; e++) {
3516
3516
  for (t = e, n = 0; n < 8; n++)
@@ -3519,7 +3519,7 @@ Dt.prototype.table = (() => {
3519
3519
  }
3520
3520
  return o;
3521
3521
  })();
3522
- function Ft(e) {
3522
+ function jt(e) {
3523
3523
  let n = new Uint8Array(e), t = new DataView(n.buffer), o = {
3524
3524
  array: n,
3525
3525
  view: t,
@@ -3539,7 +3539,7 @@ function Ft(e) {
3539
3539
  };
3540
3540
  return o;
3541
3541
  }
3542
- class Vt {
3542
+ class At {
3543
3543
  constructor(n) {
3544
3544
  let t = new Date();
3545
3545
  Object.assign(this, {
@@ -3551,16 +3551,16 @@ class Vt {
3551
3551
  }), this.add(n);
3552
3552
  }
3553
3553
  async add(n, t) {
3554
- let o = !t, a = Vt.encoder.encode(`${this.directory}/${o ? "" : n}`), l = new Uint8Array(o ? 0 : await t.arrayBuffer()), i = 30 + a.length, u = i + l.length, r = 16, { offset: c } = this, s = Ft(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, Dt.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
3554
+ let o = !t, a = At.encoder.encode(`${this.directory}/${o ? "" : n}`), l = new Uint8Array(o ? 0 : await t.arrayBuffer()), i = 30 + a.length, u = i + l.length, r = 16, { offset: c } = this, s = jt(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, Vt.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
3555
3555
  c += i;
3556
- let d = Ft(i + l.length + r).set32(0, 67324752).bytes(4, s.array).bytes(30, a).bytes(i, l);
3556
+ let d = jt(i + l.length + r).set32(0, 67324752).bytes(4, s.array).bytes(30, a).bytes(i, l);
3557
3557
  c += l.length, d.set32(u, 134695760).bytes(u + 4, s.array.slice(10, 22)), c += r, this.files.push({ offset: c, folder: o, name: a, header: s, payload: d }), this.offset = c;
3558
3558
  }
3559
3559
  toBuffer() {
3560
3560
  let n = this.files.reduce(
3561
3561
  (d, { name: b }) => 46 + b.length + d,
3562
3562
  0
3563
- ), t = Ft(n + 22), o = 0;
3563
+ ), t = jt(n + 22), o = 0;
3564
3564
  for (var { offset: a, name: l, header: i, folder: u } of this.files)
3565
3565
  t.set32(o, 33639248).set16(o + 4, 20).bytes(o + 6, i.array).set8(o + 38, u ? 16 : 0).set32(o + 42, a).bytes(o + 46, l), o += 46 + l.length;
3566
3566
  t.set32(o, 101010256).set16(o + 8, this.files.length).set16(o + 10, this.files.length).set32(o + 12, n).set32(o + 16, this.offset);
@@ -3573,7 +3573,7 @@ class Vt {
3573
3573
  return new Blob([this.toBuffer()], { type: "application/zip" });
3574
3574
  }
3575
3575
  }
3576
- Vt.encoder = new TextEncoder();
3576
+ At.encoder = new TextEncoder();
3577
3577
  const Jt = (e, n, t, o) => {
3578
3578
  if (o) {
3579
3579
  let { width: a, height: l } = e, i = Object.assign(document.createElement("canvas"), { width: a, height: l }), u = i.getContext("2d");
@@ -3583,7 +3583,7 @@ const Jt = (e, n, t, o) => {
3583
3583
  }, Va = (...e) => Jt(...e).then((n) => n.arrayBuffer()), Aa = async (e, n, t, o, a) => {
3584
3584
  eo(a, await Jt(e, n, t, o));
3585
3585
  }, Ea = async (e, n, t, o, a, l, i) => {
3586
- let u = (s) => l.replace("{}", String(s + 1).padStart(i, "0")), r = Jn(a, ".zip") || "archive", c = new Vt(r);
3586
+ let u = (s) => l.replace("{}", String(s + 1).padStart(i, "0")), r = Jn(a, ".zip") || "archive", c = new At(r);
3587
3587
  await Promise.all(
3588
3588
  e.map(async (s, d) => {
3589
3589
  let b = u(d);
@@ -3598,7 +3598,7 @@ const Jt = (e, n, t, o) => {
3598
3598
  return o.canvas;
3599
3599
  let a = document.createElement("canvas"), l = a.getContext("2d"), i = o.canvas ? o.canvas : o;
3600
3600
  return a.width = i.width * n, a.height = i.height * n, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(n, n), l.drawImage(i, 0, 0), a;
3601
- }), Oa = { asBuffer: Va, asDownload: Aa, asZipDownload: Ea, atScale: Pa, options: Da }, { asBuffer: jt, asDownload: Ba, asZipDownload: Fa, atScale: Ut, options: Rt } = Oa, pn = Symbol.for("toDataURL"), ja = (e) => new Promise(
3601
+ }), Oa = { asBuffer: Va, asDownload: Aa, asZipDownload: Ea, atScale: Pa, options: Da }, { asBuffer: Ut, asDownload: Ba, asZipDownload: Fa, atScale: Rt, options: zt } = Oa, pn = Symbol.for("toDataURL"), ja = (e) => new Promise(
3602
3602
  (n, t) => Object.assign(new to(), {
3603
3603
  crossOrigin: "Anonymous",
3604
3604
  onload: n,
@@ -3615,8 +3615,8 @@ let Ua = class {
3615
3615
  enumerable: !0
3616
3616
  });
3617
3617
  for (var [l, i] of Object.entries({
3618
- png: () => jt(o, "image/png"),
3619
- jpg: () => jt(o, "image/jpeg"),
3618
+ png: () => Ut(o, "image/png"),
3619
+ jpg: () => Ut(o, "image/jpeg"),
3620
3620
  pages: () => a.concat(o).map((u) => u.getContext("2d"))
3621
3621
  }))
3622
3622
  Object.defineProperty(o, l, { get: i });
@@ -3634,7 +3634,7 @@ let Ua = class {
3634
3634
  },
3635
3635
  saveAs(u, r) {
3636
3636
  r = typeof r == "number" ? { quality: r } : r;
3637
- let c = Rt(this.pages, { filename: u, ...r }), { pattern: s, padding: d, mime: b, quality: y, matte: N, density: P, archive: T } = c, h = Ut(c.pages, P);
3637
+ let c = zt(this.pages, { filename: u, ...r }), { pattern: s, padding: d, mime: b, quality: y, matte: N, density: P, archive: T } = c, h = Rt(c.pages, P);
3638
3638
  return d == null ? Ba(h[0], b, y, N, u) : Fa(
3639
3639
  h,
3640
3640
  b,
@@ -3647,13 +3647,13 @@ let Ua = class {
3647
3647
  },
3648
3648
  toBuffer(u = "png", r = {}) {
3649
3649
  r = typeof r == "number" ? { quality: r } : r;
3650
- let c = Rt(this.pages, { extension: u, ...r }), { mime: s, quality: d, matte: b, pages: y, density: N } = c, P = Ut(y, N, b)[0];
3651
- return jt(P, s, d, b);
3650
+ let c = zt(this.pages, { extension: u, ...r }), { mime: s, quality: d, matte: b, pages: y, density: N } = c, P = Rt(y, N, b)[0];
3651
+ return Ut(P, s, d, b);
3652
3652
  },
3653
3653
  [pn]: o.toDataURL.bind(o),
3654
3654
  toDataURL(u = "png", r = {}) {
3655
3655
  r = typeof r == "number" ? { quality: r } : r;
3656
- let c = Rt(this.pages, { extension: u, ...r }), { mime: s, quality: d, matte: b, pages: y, density: N } = c, P = Ut(y, N, b)[0], T = P[P === o ? pn : "toDataURL"](s, d);
3656
+ let c = zt(this.pages, { extension: u, ...r }), { mime: s, quality: d, matte: b, pages: y, density: N } = c, P = Rt(y, N, b)[0], T = P[P === o ? pn : "toDataURL"](s, d);
3657
3657
  return Promise.resolve(T);
3658
3658
  }
3659
3659
  });
@@ -3662,9 +3662,9 @@ let Ua = class {
3662
3662
  const {
3663
3663
  CanvasRenderingContext2D: Ra,
3664
3664
  CanvasGradient: za,
3665
- CanvasPattern: Ga,
3665
+ CanvasPattern: $a,
3666
3666
  Image: to,
3667
- ImageData: $a,
3667
+ ImageData: Ga,
3668
3668
  Path2D: Ka,
3669
3669
  DOMMatrix: Wa,
3670
3670
  DOMRect: Ha,
@@ -3674,9 +3674,9 @@ const {
3674
3674
  loadImage: ja,
3675
3675
  CanvasRenderingContext2D: Ra,
3676
3676
  CanvasGradient: za,
3677
- CanvasPattern: Ga,
3677
+ CanvasPattern: $a,
3678
3678
  Image: to,
3679
- ImageData: $a,
3679
+ ImageData: Ga,
3680
3680
  Path2D: Ka,
3681
3681
  DOMMatrix: Wa,
3682
3682
  DOMRect: Ha,
@@ -3706,7 +3706,7 @@ const {
3706
3706
  }, Ya = (e) => ({
3707
3707
  data: e,
3708
3708
  pos: 0
3709
- }), Oe = () => (e) => e.data[e.pos++], no = (e = 0) => (n) => n.data[n.pos + e], Re = (e) => (n) => n.data.subarray(n.pos, n.pos += e), At = (e) => (n) => n.data.subarray(n.pos, n.pos + e), Wt = (e) => (n) => Array.from(Re(e)(n)).map((t) => String.fromCharCode(t)).join(""), Je = (e) => (n) => {
3709
+ }), Oe = () => (e) => e.data[e.pos++], no = (e = 0) => (n) => n.data[n.pos + e], Re = (e) => (n) => n.data.subarray(n.pos, n.pos += e), Et = (e) => (n) => n.data.subarray(n.pos, n.pos + e), Wt = (e) => (n) => Array.from(Re(e)(n)).map((t) => String.fromCharCode(t)).join(""), Je = (e) => (n) => {
3710
3710
  const t = Re(2)(n);
3711
3711
  return e ? (t[1] << 8) + t[0] : (t[0] << 8) + t[1];
3712
3712
  }, oo = (e, n) => (t, o, a) => {
@@ -3727,7 +3727,7 @@ const {
3727
3727
  return u.length ? l[i] = Za(o, u.index, u.length) : l[i] = o[u.index], l;
3728
3728
  }, {});
3729
3729
  };
3730
- var Et = {
3730
+ var Pt = {
3731
3731
  blocks: (e) => {
3732
3732
  const t = [], o = e.data.length;
3733
3733
  for (var a = 0, l = Oe()(e); l !== 0 && l; l = Oe()(e)) {
@@ -3763,7 +3763,7 @@ const Ja = ot(
3763
3763
  ]
3764
3764
  },
3765
3765
  (e) => {
3766
- var n = At(2)(e);
3766
+ var n = Et(2)(e);
3767
3767
  return n[0] === 33 && n[1] === 249;
3768
3768
  }
3769
3769
  ), el = ot(
@@ -3793,7 +3793,7 @@ const Ja = ot(
3793
3793
  },
3794
3794
  (e, n, t) => t.descriptor.lct.exists
3795
3795
  ),
3796
- { data: [{ minCodeSize: Oe() }, Et] }
3796
+ { data: [{ minCodeSize: Oe() }, Pt] }
3797
3797
  ]
3798
3798
  },
3799
3799
  (e) => no()(e) === 44
@@ -3805,11 +3805,11 @@ const Ja = ot(
3805
3805
  {
3806
3806
  preData: (e, n, t) => Re(t.text.blockSize)(e)
3807
3807
  },
3808
- Et
3808
+ Pt
3809
3809
  ]
3810
3810
  },
3811
3811
  (e) => {
3812
- var n = At(2)(e);
3812
+ var n = Et(2)(e);
3813
3813
  return n[0] === 33 && n[1] === 1;
3814
3814
  }
3815
3815
  ), nl = ot(
@@ -3818,19 +3818,19 @@ const Ja = ot(
3818
3818
  { codes: Re(2) },
3819
3819
  { blockSize: Oe() },
3820
3820
  { id: (e, n, t) => Wt(t.blockSize)(e) },
3821
- Et
3821
+ Pt
3822
3822
  ]
3823
3823
  },
3824
3824
  (e) => {
3825
- var n = At(2)(e);
3825
+ var n = Et(2)(e);
3826
3826
  return n[0] === 33 && n[1] === 255;
3827
3827
  }
3828
3828
  ), ol = ot(
3829
3829
  {
3830
- comment: [{ codes: Re(2) }, Et]
3830
+ comment: [{ codes: Re(2) }, Pt]
3831
3831
  },
3832
3832
  (e) => {
3833
- var n = At(2)(e);
3833
+ var n = Et(2)(e);
3834
3834
  return n[0] === 33 && n[1] === 254;
3835
3835
  }
3836
3836
  ), al = [
@@ -4049,7 +4049,7 @@ class Ye {
4049
4049
  t + a <= -1 || this.moduleCount <= t + a || (0 <= o && o <= 6 && (a == 0 || a == 6) || 0 <= a && a <= 6 && (o == 0 || o == 6) || 2 <= o && o <= 4 && 2 <= a && a <= 4 ? this.modules[n + o][t + a] = !0 : this.modules[n + o][t + a] = !1);
4050
4050
  }
4051
4051
  getBestMaskPattern() {
4052
- if (Number.isInteger(this.maskPattern) && Object.values($e).includes(this.maskPattern))
4052
+ if (Number.isInteger(this.maskPattern) && Object.values(Ge).includes(this.maskPattern))
4053
4053
  return this.maskPattern;
4054
4054
  let n = 0, t = 0;
4055
4055
  for (let o = 0; o < 8; o++) {
@@ -4163,7 +4163,7 @@ class Ye {
4163
4163
  }
4164
4164
  Ye.PAD0 = 236;
4165
4165
  Ye.PAD1 = 17;
4166
- const xe = { L: 1, M: 0, Q: 3, H: 2 }, Ee = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }, $e = {
4166
+ const xe = { L: 1, M: 0, Q: 3, H: 2 }, Ee = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }, Ge = {
4167
4167
  PATTERN000: 0,
4168
4168
  PATTERN001: 1,
4169
4169
  PATTERN010: 2,
@@ -4197,21 +4197,21 @@ class ce {
4197
4197
  }
4198
4198
  static getMask(n, t, o) {
4199
4199
  switch (n) {
4200
- case $e.PATTERN000:
4200
+ case Ge.PATTERN000:
4201
4201
  return (t + o) % 2 == 0;
4202
- case $e.PATTERN001:
4202
+ case Ge.PATTERN001:
4203
4203
  return t % 2 == 0;
4204
- case $e.PATTERN010:
4204
+ case Ge.PATTERN010:
4205
4205
  return o % 3 == 0;
4206
- case $e.PATTERN011:
4206
+ case Ge.PATTERN011:
4207
4207
  return (t + o) % 3 == 0;
4208
- case $e.PATTERN100:
4208
+ case Ge.PATTERN100:
4209
4209
  return (Math.floor(t / 2) + Math.floor(o / 3)) % 2 == 0;
4210
- case $e.PATTERN101:
4210
+ case Ge.PATTERN101:
4211
4211
  return t * o % 2 + t * o % 3 == 0;
4212
- case $e.PATTERN110:
4212
+ case Ge.PATTERN110:
4213
4213
  return (t * o % 2 + t * o % 3) % 2 == 0;
4214
- case $e.PATTERN111:
4214
+ case Ge.PATTERN111:
4215
4215
  return (t * o % 3 + (t + o) % 2) % 2 == 0;
4216
4216
  default:
4217
4217
  throw new Error(`bad maskPattern:${n}`);
@@ -4761,27 +4761,27 @@ function Ll(e, n, t, o) {
4761
4761
  i[oe] = -1;
4762
4762
  }
4763
4763
  function f(O, oe) {
4764
- var B, De, re, Le, Ae, me, Te;
4765
- for (N = O, y = !1, x = N, b = R(x), P = 1 << O - 1, T = P + 1, d = P + 2, s = 0, Le = I(), Te = 0, B = ht; B < 65536; B *= 2)
4766
- ++Te;
4767
- Te = 8 - Te, me = ht, v(me), H(P, oe);
4764
+ var B, De, re, Ne, Ae, me, Ce;
4765
+ for (N = O, y = !1, x = N, b = R(x), P = 1 << O - 1, T = P + 1, d = P + 2, s = 0, Ne = I(), Ce = 0, B = ht; B < 65536; B *= 2)
4766
+ ++Ce;
4767
+ Ce = 8 - Ce, me = ht, v(me), H(P, oe);
4768
4768
  e:
4769
4769
  for (; (De = I()) != Mn; ) {
4770
- if (B = (De << Mt) + Le, re = De << Te ^ Le, i[re] === B) {
4771
- Le = u[re];
4770
+ if (B = (De << Mt) + Ne, re = De << Ce ^ Ne, i[re] === B) {
4771
+ Ne = u[re];
4772
4772
  continue;
4773
4773
  } else if (i[re] >= 0) {
4774
4774
  Ae = me - re, re === 0 && (Ae = 1);
4775
4775
  do
4776
4776
  if ((re -= Ae) < 0 && (re += me), i[re] === B) {
4777
- Le = u[re];
4777
+ Ne = u[re];
4778
4778
  continue e;
4779
4779
  }
4780
4780
  while (i[re] >= 0);
4781
4781
  }
4782
- H(Le, oe), Le = De, d < 1 << Mt ? (u[re] = d++, i[re] = B) : M(oe);
4782
+ H(Ne, oe), Ne = De, d < 1 << Mt ? (u[re] = d++, i[re] = B) : M(oe);
4783
4783
  }
4784
- H(Le, oe), H(T, oe);
4784
+ H(Ne, oe), H(T, oe);
4785
4785
  }
4786
4786
  function w(O) {
4787
4787
  O.writeByte(a), h = e * n, C = 0, f(a + 1, O), O.writeByte(0);
@@ -5045,7 +5045,7 @@ var Nl = globalThis && globalThis.__awaiter || function(e, n, t, o) {
5045
5045
  c((o = o.apply(e, n || [])).next());
5046
5046
  });
5047
5047
  };
5048
- const { Canvas: Ge } = qa, Ct = 0.4;
5048
+ const { Canvas: $e } = qa, Ct = 0.4;
5049
5049
  function Tn(e) {
5050
5050
  if (!e)
5051
5051
  return;
@@ -5090,7 +5090,7 @@ class ue {
5090
5090
  throw new Error("dotScale should be in range (0, 1].");
5091
5091
  t.components.data.scale = t.dotScale, t.components.timing.scale = t.dotScale, t.components.alignment.scale = t.dotScale;
5092
5092
  }
5093
- this.options = t, this.canvas = new Ge(n.size, n.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new Ye(-1, this.options.correctLevel), Number.isInteger(this.options.maskPattern) && (this.qrCode.maskPattern = this.options.maskPattern), Number.isInteger(this.options.version) && (this.qrCode.typeNumber = this.options.version), this.qrCode.addData(this.options.text), this.qrCode.make();
5093
+ this.options = t, this.canvas = new $e(n.size, n.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new Ye(-1, this.options.correctLevel), Number.isInteger(this.options.maskPattern) && (this.qrCode.maskPattern = this.options.maskPattern), Number.isInteger(this.options.version) && (this.qrCode.typeNumber = this.options.version), this.qrCode.addData(this.options.text), this.qrCode.make();
5094
5094
  }
5095
5095
  draw() {
5096
5096
  return new Promise((n) => this._draw().then(n));
@@ -5115,7 +5115,7 @@ class ue {
5115
5115
  };
5116
5116
  let r = 0;
5117
5117
  l = n.naturalHeight || n.height, a = n.naturalWidth || n.width;
5118
- const s = new Ge(a, l).getContext("2d");
5118
+ const s = new $e(a, l).getContext("2d");
5119
5119
  if (!s)
5120
5120
  return o;
5121
5121
  s.drawImage(n, 0, 0);
@@ -5149,17 +5149,17 @@ class ue {
5149
5149
  const g = (n = this.qrCode) === null || n === void 0 ? void 0 : n.moduleCount, M = this.options.size;
5150
5150
  let v = this.options.margin;
5151
5151
  (v < 0 || v * 2 >= M) && (v = 0);
5152
- const f = Math.ceil(v), w = M - 2 * v, E = this.options.whiteMargin, R = this.options.backgroundDimming, I = Math.ceil(w / g), H = I * g, O = H + 2 * f, oe = new Ge(O, O), B = oe.getContext("2d");
5152
+ const f = Math.ceil(v), w = M - 2 * v, E = this.options.whiteMargin, R = this.options.backgroundDimming, I = Math.ceil(w / g), H = I * g, O = H + 2 * f, oe = new $e(O, O), B = oe.getContext("2d");
5153
5153
  this._clear(), B.save(), B.translate(f, f);
5154
- const De = new Ge(O, O), re = De.getContext("2d");
5155
- let Le = null, Ae = [];
5154
+ const De = new $e(O, O), re = De.getContext("2d");
5155
+ let Ne = null, Ae = [];
5156
5156
  if (this.options.gifBackground) {
5157
5157
  const z = rl(this.options.gifBackground);
5158
- if (Le = z, Ae = cl(z, !0), this.options.autoColor) {
5158
+ if (Ne = z, Ae = cl(z, !0), this.options.autoColor) {
5159
5159
  let L = 0, D = 0, A = 0, te = 0;
5160
5160
  for (let q = 0; q < Ae[0].colorTable.length; q++) {
5161
- const $ = Ae[0].colorTable[q];
5162
- $[0] > 200 || $[1] > 200 || $[2] > 200 || $[0] === 0 && $[1] === 0 && $[2] === 0 || (te++, L += $[0], D += $[1], A += $[2]);
5161
+ const G = Ae[0].colorTable[q];
5162
+ G[0] > 200 || G[1] > 200 || G[2] > 200 || G[0] === 0 && G[1] === 0 && G[2] === 0 || (te++, L += G[0], D += G[1], A += G[2]);
5163
5163
  }
5164
5164
  L = ~~(L / te), D = ~~(D / te), A = ~~(A / te), this.options.colorDark = `rgb(${L},${D},${A})`;
5165
5165
  }
@@ -5172,19 +5172,19 @@ class ue {
5172
5172
  re.drawImage(z, 0, 0, z.width, z.height, 0, 0, O, O), re.rect(0, 0, O, O), re.fillStyle = R, re.fill();
5173
5173
  } else
5174
5174
  re.rect(0, 0, O, O), re.fillStyle = this.options.colorLight, re.fill();
5175
- const me = ce.getPatternPosition(this.qrCode.typeNumber), Te = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || Ct, V = (1 - Te) * 0.5;
5175
+ const me = ce.getPatternPosition(this.qrCode.typeNumber), Ce = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || Ct, V = (1 - Ce) * 0.5;
5176
5176
  for (let z = 0; z < g; z++)
5177
5177
  for (let L = 0; L < g; L++) {
5178
5178
  const D = this.qrCode.isDark(z, L), A = L < 8 && (z < 8 || z >= g - 8) || L >= g - 8 && z < 8, te = z == 6 && L >= 8 && L <= g - 8 || L == 6 && z >= 8 && z <= g - 8;
5179
5179
  let q = A || te;
5180
5180
  for (let ne = 1; ne < me.length - 1; ne++)
5181
5181
  q = q || z >= me[ne] - 2 && z <= me[ne] + 2 && L >= me[ne] - 2 && L <= me[ne] + 2;
5182
- const $ = L * I + (q ? 0 : V * I), se = z * I + (q ? 0 : V * I);
5182
+ const G = L * I + (q ? 0 : V * I), se = z * I + (q ? 0 : V * I);
5183
5183
  if (B.strokeStyle = D ? this.options.colorDark : this.options.colorLight, B.lineWidth = 0.5, B.fillStyle = D ? this.options.colorDark : this.options.colorLight, me.length === 0)
5184
- q || B.fillRect($, se, (q ? 1 : Te) * I, (q ? 1 : Te) * I);
5184
+ q || B.fillRect(G, se, (q ? 1 : Ce) * I, (q ? 1 : Ce) * I);
5185
5185
  else {
5186
5186
  const ne = L < g - 4 && L >= g - 4 - 5 && z < g - 4 && z >= g - 4 - 5;
5187
- !q && !ne && B.fillRect($, se, (q ? 1 : Te) * I, (q ? 1 : Te) * I);
5187
+ !q && !ne && B.fillRect(G, se, (q ? 1 : Ce) * I, (q ? 1 : Ce) * I);
5188
5188
  }
5189
5189
  }
5190
5190
  const U = me[me.length - 1], ie = this.options.colorLight;
@@ -5206,7 +5206,7 @@ class ue {
5206
5206
  ue._drawDot(B, 8 + z, 6, I, ze, Me), ue._drawDot(B, 6, 8 + z, I, ze, Me);
5207
5207
  const fe = ((y = (b = this.options.components) === null || b === void 0 ? void 0 : b.cornerAlignment) === null || y === void 0 ? void 0 : y.scale) || Ct, he = (1 - fe) * 0.5;
5208
5208
  ue._drawAlign(B, U, U, I, he, fe, this.options.colorDark, ((P = (N = this.options.components) === null || N === void 0 ? void 0 : N.cornerAlignment) === null || P === void 0 ? void 0 : P.protectors) || !1);
5209
- const Ce = ((h = (T = this.options.components) === null || T === void 0 ? void 0 : T.alignment) === null || h === void 0 ? void 0 : h.scale) || Ct, _e = (1 - Ce) * 0.5;
5209
+ const Te = ((h = (T = this.options.components) === null || T === void 0 ? void 0 : T.alignment) === null || h === void 0 ? void 0 : h.scale) || Ct, Le = (1 - Te) * 0.5;
5210
5210
  for (let z = 0; z < me.length; z++)
5211
5211
  for (let L = 0; L < me.length; L++) {
5212
5212
  const D = me[L], A = me[z];
@@ -5215,27 +5215,27 @@ class ue {
5215
5215
  continue;
5216
5216
  if (D === U && A === U)
5217
5217
  continue;
5218
- ue._drawAlign(B, D, A, I, _e, Ce, this.options.colorDark, ((x = (C = this.options.components) === null || C === void 0 ? void 0 : C.alignment) === null || x === void 0 ? void 0 : x.protectors) || !1);
5218
+ ue._drawAlign(B, D, A, I, Le, Te, this.options.colorDark, ((x = (C = this.options.components) === null || C === void 0 ? void 0 : C.alignment) === null || x === void 0 ? void 0 : x.protectors) || !1);
5219
5219
  }
5220
5220
  }
5221
5221
  if (E && (B.fillStyle = this.options.backgroundColor, B.fillRect(-f, -f, O, f), B.fillRect(-f, H, O, f), B.fillRect(H, -f, f, O), B.fillRect(-f, -f, f, O)), this.options.logoImage) {
5222
5222
  const z = yield Tn(this.options.logoImage);
5223
5223
  let L = this.options.logoScale, D = this.options.logoMargin, A = this.options.logoCornerRadius;
5224
5224
  (L <= 0 || L >= 1) && (L = 0.2), D < 0 && (D = 0), A < 0 && (A = 0);
5225
- const te = H * L, q = 0.5 * (O - te), $ = q;
5226
- B.restore(), B.fillStyle = this.options.logoBackgroundColor, B.save(), ue._prepareRoundedCornerClip(B, q - D, $ - D, te + 2 * D, te + 2 * D, A + D), B.clip();
5225
+ const te = H * L, q = 0.5 * (O - te), G = q;
5226
+ B.restore(), B.fillStyle = this.options.logoBackgroundColor, B.save(), ue._prepareRoundedCornerClip(B, q - D, G - D, te + 2 * D, te + 2 * D, A + D), B.clip();
5227
5227
  const se = B.globalCompositeOperation;
5228
- B.globalCompositeOperation = "destination-out", B.fill(), B.globalCompositeOperation = se, B.restore(), B.save(), ue._prepareRoundedCornerClip(B, q, $, te, te, A), B.clip(), B.drawImage(z, q, $, te, te), B.restore(), B.save(), B.translate(f, f);
5228
+ B.globalCompositeOperation = "destination-out", B.fill(), B.globalCompositeOperation = se, B.restore(), B.save(), ue._prepareRoundedCornerClip(B, q, G, te, te, A), B.clip(), B.drawImage(z, q, G, te, te), B.restore(), B.save(), B.translate(f, f);
5229
5229
  }
5230
- if (Le) {
5230
+ if (Ne) {
5231
5231
  let z, L, D, A, te, q;
5232
- if (Ae.forEach(function($) {
5233
- z || (z = new de(M, M), z.setDelay($.delay), z.setRepeat(0));
5234
- const { width: se, height: ne } = $.dims;
5235
- L || (L = new Ge(se, ne), D = L.getContext("2d"), D.rect(0, 0, L.width, L.height), D.fillStyle = "#ffffff", D.fill()), (!A || !q || se !== A.width || ne !== A.height) && (A = new Ge(se, ne), te = A.getContext("2d"), q = te.createImageData(se, ne)), q.data.set($.patch), te.putImageData(q, 0, 0), D.drawImage(A.getContext("2d").canvas, $.dims.left, $.dims.top);
5236
- const we = new Ge(O, O), G = we.getContext("2d");
5237
- G.drawImage(L.getContext("2d").canvas, 0, 0, O, O), G.rect(0, 0, O, O), G.fillStyle = R, G.fill(), G.drawImage(oe.getContext("2d").canvas, 0, 0, O, O);
5238
- const ve = new Ge(M, M), Pe = ve.getContext("2d");
5232
+ if (Ae.forEach(function(G) {
5233
+ z || (z = new de(M, M), z.setDelay(G.delay), z.setRepeat(0));
5234
+ const { width: se, height: ne } = G.dims;
5235
+ L || (L = new $e(se, ne), D = L.getContext("2d"), D.rect(0, 0, L.width, L.height), D.fillStyle = "#ffffff", D.fill()), (!A || !q || se !== A.width || ne !== A.height) && (A = new $e(se, ne), te = A.getContext("2d"), q = te.createImageData(se, ne)), q.data.set(G.patch), te.putImageData(q, 0, 0), D.drawImage(A.getContext("2d").canvas, G.dims.left, G.dims.top);
5236
+ const we = new $e(O, O), $ = we.getContext("2d");
5237
+ $.drawImage(L.getContext("2d").canvas, 0, 0, O, O), $.rect(0, 0, O, O), $.fillStyle = R, $.fill(), $.drawImage(oe.getContext("2d").canvas, 0, 0, O, O);
5238
+ const ve = new $e(M, M), Pe = ve.getContext("2d");
5239
5239
  Pe.drawImage(we.getContext("2d").canvas, 0, 0, M, M), z.addFrame(Pe.getImageData(0, 0, ve.width, ve.height).data);
5240
5240
  }), !z)
5241
5241
  throw new Error("No frames.");
@@ -5246,7 +5246,7 @@ class ue {
5246
5246
  return Promise.resolve(Buffer.from(z.stream().toFlattenUint8Array()));
5247
5247
  } else {
5248
5248
  re.drawImage(oe.getContext("2d").canvas, 0, 0, O, O), B.drawImage(De.getContext("2d").canvas, -f, -f, O, O);
5249
- const z = new Ge(M, M);
5249
+ const z = new $e(M, M);
5250
5250
  z.getContext("2d").drawImage(oe.getContext("2d").canvas, 0, 0, M, M), this.canvas = z;
5251
5251
  const D = this.options.gifBackground ? "gif" : "png";
5252
5252
  return Cn(this.canvas) ? Promise.resolve(this.canvas.toDataURL(D)) : Promise.resolve(this.canvas.toBuffer(D));
@@ -5463,10 +5463,10 @@ const _l = {
5463
5463
  correctLevel: o.correctLevel,
5464
5464
  logoMargin: o.logoMargin,
5465
5465
  logoCornerRadius: o.logoCornerRadius,
5466
- whiteMargin: Bt(o.whiteMargin),
5466
+ whiteMargin: Ft(o.whiteMargin),
5467
5467
  dotScale: o.dotScale,
5468
- autoColor: Bt(o.autoColor),
5469
- binarize: Bt(o.binarize),
5468
+ autoColor: Ft(o.autoColor),
5469
+ binarize: Ft(o.binarize),
5470
5470
  binarizeThreshold: o.binarizeThreshold,
5471
5471
  components: o.components
5472
5472
  }).draw().then((a) => {
@@ -5540,7 +5540,7 @@ const Dl = /* @__PURE__ */ Ze(_l, [["render", Sl]]), Vl = ["innerHTML"], Al = {
5540
5540
  if (C.showIf != "1") {
5541
5541
  let x, g;
5542
5542
  try {
5543
- x = et.render(C.showIf, { item: h }), g = Gt(x, { item: h });
5543
+ x = et.render(C.showIf, { item: h }), g = $t(x, { item: h });
5544
5544
  } catch (M) {
5545
5545
  console.warn(M);
5546
5546
  }
@@ -5706,7 +5706,7 @@ const Fl = /* @__PURE__ */ Ze(Bl, [["__scopeId", "data-v-78e0f314"]]), jl = /* @
5706
5706
  return (r, c) => {
5707
5707
  const s = j("t-card"), d = j("t-tab-panel"), b = j("t-tabs");
5708
5708
  return p(), _(b, {
5709
- class: Y(`${m(Z)}__tab`),
5709
+ class: Y(`${m(J)}__tab`),
5710
5710
  placement: "left",
5711
5711
  value: o.value,
5712
5712
  onChange: a
@@ -5749,7 +5749,7 @@ const Ul = /* @__PURE__ */ ee({
5749
5749
  },
5750
5750
  emits: ["update:isDialogVisible", "close-dialog"],
5751
5751
  setup(e, { emit: n }) {
5752
- const t = e, o = vo(() => import("./index-7e7060bd.mjs")), a = Xt(), l = F(() => t.dialogViewInfo.view), i = F(() => t.dialogViewInfo.name), u = F(() => {
5752
+ const t = e, o = vo(() => import("./index-4bce9212.mjs")), a = Xt(), l = F(() => t.dialogViewInfo.view), i = F(() => t.dialogViewInfo.name), u = F(() => {
5753
5753
  var b;
5754
5754
  return (b = t.dialogViewBoard) == null ? void 0 : b.boardType;
5755
5755
  }), r = F(() => {
@@ -5835,7 +5835,7 @@ const Ul = /* @__PURE__ */ ee({
5835
5835
  var V;
5836
5836
  try {
5837
5837
  if (!st(c.value) && !st(t.viewName)) {
5838
- const U = await xt({
5838
+ const U = await St({
5839
5839
  dataId: c.value,
5840
5840
  viewName: t.viewName,
5841
5841
  props: T.value
@@ -5905,18 +5905,18 @@ const Ul = /* @__PURE__ */ ee({
5905
5905
  let fe;
5906
5906
  V.confirmMessage != "" ? fe = et.render(V.confirmMessage, { item: U }) : fe = `是否确定${V.name}`;
5907
5907
  let he = {};
5908
- V.props ? V.props.forEach((_e) => {
5909
- _e.keyName && (U[_e.keyName] ?? "") != "" && (he[_e.keyName] = U[_e.keyName]);
5908
+ V.props ? V.props.forEach((Le) => {
5909
+ Le.keyName && (U[Le.keyName] ?? "") != "" && (he[Le.keyName] = U[Le.keyName]);
5910
5910
  }) : he = { ...U };
5911
- const Ce = kt.confirm({
5911
+ const Te = kt.confirm({
5912
5912
  theme: "info",
5913
5913
  header: V.name,
5914
5914
  body: fe,
5915
5915
  onConfirm: () => {
5916
- V.buttonId && B(he, V.buttonId), Ce.destroy();
5916
+ V.buttonId && B(he, V.buttonId), Te.destroy();
5917
5917
  },
5918
5918
  onCancel: () => {
5919
- J.info(`已取消${V.name}`);
5919
+ Z.info(`已取消${V.name}`);
5920
5920
  }
5921
5921
  });
5922
5922
  break;
@@ -5927,18 +5927,18 @@ const Ul = /* @__PURE__ */ ee({
5927
5927
  header: V.name,
5928
5928
  body: `此操作将${V.name},是否继续`,
5929
5929
  onConfirm: () => {
5930
- H.value.length == 0 ? J.error("请选择批量操作对象!") : re(V, H.value), fe.destroy();
5930
+ H.value.length == 0 ? Z.error("请选择批量操作对象!") : re(V, H.value), fe.destroy();
5931
5931
  },
5932
5932
  onCancel: () => {
5933
- J.info(`已取消${V.name}`);
5933
+ Z.info(`已取消${V.name}`);
5934
5934
  }
5935
5935
  });
5936
5936
  break;
5937
5937
  }
5938
5938
  case "LINK": {
5939
5939
  let fe = {};
5940
- if ((Me = V == null ? void 0 : V.props) == null || Me.forEach((Ce) => {
5941
- Ce.keyName && (U[Ce.keyName] ?? "") != "" && (fe[Ce.keyName] = U[Ce.keyName]);
5940
+ if ((Me = V == null ? void 0 : V.props) == null || Me.forEach((Te) => {
5941
+ Te.keyName && (U[Te.keyName] ?? "") != "" && (fe[Te.keyName] = U[Te.keyName]);
5942
5942
  }), !Yt(V.link))
5943
5943
  o.push({
5944
5944
  path: V.link,
@@ -5947,11 +5947,11 @@ const Ul = /* @__PURE__ */ ee({
5947
5947
  }
5948
5948
  });
5949
5949
  else {
5950
- const Ce = zt(V.link, {
5950
+ const Te = It(V.link, {
5951
5951
  ...fe,
5952
5952
  token: l.token
5953
5953
  });
5954
- window.open(Ce, "_blank");
5954
+ window.open(Te, "_blank");
5955
5955
  }
5956
5956
  break;
5957
5957
  }
@@ -5960,24 +5960,21 @@ const Ul = /* @__PURE__ */ ee({
5960
5960
  if ((ze = V == null ? void 0 : V.props) == null || ze.forEach((he) => {
5961
5961
  he.keyName && (U[he.keyName] ?? "") != "" && (fe[he.keyName] = U[he.keyName]);
5962
5962
  }), (V.buttonId ?? "") != "") {
5963
- const he = await Le(
5963
+ const he = await Ne(
5964
5964
  fe,
5965
5965
  V.buttonId
5966
5966
  );
5967
5967
  if (he) {
5968
- const { url: Ce, filename: _e } = he, z = document.createElement("a");
5969
- z.style.display = "none", z.setAttribute("target", "_blank"), _e && z.setAttribute("download", _e), z.setAttribute("href", Ce), z.click(), J.info("即将开始下载");
5968
+ const { url: Te, filename: Le } = he, z = document.createElement("a");
5969
+ z.style.display = "none", z.setAttribute("target", "_blank"), Le && z.setAttribute("download", Le), z.setAttribute("href", Te), z.click(), console.log(`下载链接:${Te}`), Z.info(`即将开始下载 ${Le}`);
5970
5970
  }
5971
5971
  } else if ((V.downloadUrl ?? "") != "") {
5972
- const he = Co.decode(et.render(V.downloadUrl, { item: U })), Ce = o.resolve({
5973
- path: he,
5974
- query: fe
5975
- });
5976
- if ((he ?? "") != "" && (Ce.href ?? !1)) {
5977
- const _e = he.split("/").slice(-1)[0], z = document.createElement("a");
5978
- z.style.display = "none", z.setAttribute("target", "_blank"), _e && z.setAttribute("download", _e), z.setAttribute("href", Ce.href), z.click(), J.info("即将开始下载");
5972
+ const he = Co.decode(et.render(V.downloadUrl, { item: U })), Te = It(he, fe, !1);
5973
+ if ((he ?? "") != "" && (Te ?? !1)) {
5974
+ const Le = he.split("/").slice(-1)[0], z = document.createElement("a");
5975
+ z.style.display = "none", z.setAttribute("target", "_blank"), Le && z.setAttribute("download", Le), z.setAttribute("href", Te), z.click(), console.log(`下载链接:${Te}`), Z.info(`即将开始下载 ${Le}`);
5979
5976
  } else
5980
- J.info("未设置下载链接");
5977
+ Z.info("未设置下载链接");
5981
5978
  }
5982
5979
  break;
5983
5980
  }
@@ -6014,7 +6011,7 @@ const Ul = /* @__PURE__ */ ee({
6014
6011
  props: ie,
6015
6012
  viewName: t.viewName
6016
6013
  });
6017
- Me.state === 200 ? J.success("提交成功") : J.error(`提交失败:${Me.message}`);
6014
+ Me.state === 200 ? Z.success("提交成功") : Z.error(`提交失败:${Me.message}`);
6018
6015
  }
6019
6016
  function De(V, U) {
6020
6017
  if (V.itemType == "selector" || V.itemType == "time_selector" || V.itemType == "date_time_selector" || V.itemType == "tree_check_box" || V.itemType === "multi_tree_selector" || V.itemType === "tree_selector") {
@@ -6025,7 +6022,7 @@ const Ul = /* @__PURE__ */ ee({
6025
6022
  B(U, V.buttonId), ie.destroy();
6026
6023
  },
6027
6024
  onCancel: () => {
6028
- J.info("已取消修改。");
6025
+ Z.info("已取消修改。");
6029
6026
  }
6030
6027
  });
6031
6028
  } else
@@ -6040,9 +6037,9 @@ const Ul = /* @__PURE__ */ ee({
6040
6037
  props: ie,
6041
6038
  keys: U
6042
6039
  });
6043
- Me.state == 200 ? J.success(`${V.name} 操作成功!`) : J.error(`提交出错:${Me.message}`);
6040
+ Me.state == 200 ? Z.success(`${V.name} 操作成功!`) : Z.error(`提交出错:${Me.message}`);
6044
6041
  }
6045
- async function Le(V, U) {
6042
+ async function Ne(V, U) {
6046
6043
  let ie = {};
6047
6044
  Object.keys(T.value).length && Object.assign(ie, T.value), Object.assign(ie, V);
6048
6045
  const Me = await ia({
@@ -6054,7 +6051,7 @@ const Ul = /* @__PURE__ */ ee({
6054
6051
  const ze = Me.data.url, fe = Me.data.filename;
6055
6052
  return { url: ze, filename: fe };
6056
6053
  } else
6057
- console.log("下载文件请求出错", Me.message);
6054
+ Z.error(`下载请求出错:${Me.message}`), console.log("下载文件请求出错", Me.message);
6058
6055
  }
6059
6056
  function Ae() {
6060
6057
  x.value = !1, setTimeout(() => {
@@ -6062,13 +6059,13 @@ const Ul = /* @__PURE__ */ ee({
6062
6059
  });
6063
6060
  }
6064
6061
  function me(V, U) {
6065
- B(V, U), Te();
6062
+ B(V, U), Ce();
6066
6063
  }
6067
- function Te() {
6064
+ function Ce() {
6068
6065
  n("close-dialog");
6069
6066
  }
6070
6067
  return (V, U) => (p(), X("div", {
6071
- class: Y(`${m(Z)}__board`)
6068
+ class: Y(`${m(J)}__board`)
6072
6069
  }, [
6073
6070
  m(b) ? (p(), _(Ta, {
6074
6071
  key: 0,
@@ -6084,7 +6081,7 @@ const Ul = /* @__PURE__ */ ee({
6084
6081
  formData: d.value,
6085
6082
  onConfirmForm: B,
6086
6083
  onConfirmAndClose: me,
6087
- onCloseDialog: Te
6084
+ onCloseDialog: Ce
6088
6085
  }, null, 8, ["viewName", "board", "formData"])) : K("", !0),
6089
6086
  m(r) === "table" ? (p(), _(Fl, {
6090
6087
  key: 2,
@@ -6125,7 +6122,7 @@ const Rl = /* @__PURE__ */ ee({
6125
6122
  config: null
6126
6123
  },
6127
6124
  setup(e) {
6128
- const n = e, t = ct(), o = dt(), a = Be(), l = _t(), i = qt(), u = W(""), r = F(() => a.isUserLogin), c = F(() => a.homeUrl);
6125
+ const n = e, t = ct(), o = dt(), a = Be(), l = xt(), i = qt(), u = W(""), r = F(() => a.isUserLogin), c = F(() => a.homeUrl);
6129
6126
  bt(async () => {
6130
6127
  r.value || (await a.initUserConfig(n.config), await l.initTabMenu(), t.push(c.value));
6131
6128
  }), at(async () => {
@@ -6167,7 +6164,7 @@ const Rl = /* @__PURE__ */ ee({
6167
6164
  } else
6168
6165
  throw C;
6169
6166
  } catch (C) {
6170
- console.log("获取视图信息出错", C), J.error("获取视图信息出错", C.message);
6167
+ console.log("获取视图信息出错", C), Z.error("获取视图信息出错", C.message);
6171
6168
  }
6172
6169
  }
6173
6170
  const N = F(() => a.isGlobalLoaded);
@@ -6200,7 +6197,7 @@ const Rl = /* @__PURE__ */ ee({
6200
6197
  _: 1
6201
6198
  }, 8, ["title"]));
6202
6199
  }
6203
- }), zl = lt(En), Gl = /* @__PURE__ */ ee({
6200
+ }), zl = lt(En), $l = /* @__PURE__ */ ee({
6204
6201
  __name: "GLoginTitle",
6205
6202
  props: {
6206
6203
  title: { default: "公信会务管理系统" },
@@ -6208,33 +6205,33 @@ const Rl = /* @__PURE__ */ ee({
6208
6205
  },
6209
6206
  setup(e) {
6210
6207
  return (n, t) => (p(), X("div", {
6211
- class: Y(`${m(Z)}__login-title`)
6208
+ class: Y(`${m(J)}__login-title`)
6212
6209
  }, [
6213
6210
  le("div", {
6214
- class: Y(`${m(Z)}__login-title--mainTitle`)
6211
+ class: Y(`${m(J)}__login-title--mainTitle`)
6215
6212
  }, ye(e.title), 3),
6216
6213
  le("div", {
6217
- class: Y(`${m(Z)}__login-title--subTitle`)
6214
+ class: Y(`${m(J)}__login-title--subTitle`)
6218
6215
  }, ye(e.subTitle), 3)
6219
6216
  ], 2));
6220
6217
  }
6221
6218
  });
6222
- const $l = /* @__PURE__ */ le("span", null, [
6219
+ const Gl = /* @__PURE__ */ le("span", null, [
6223
6220
  /* @__PURE__ */ Q("登录即代表同意 "),
6224
6221
  /* @__PURE__ */ le("a", { href: "#" }, "服务条款"),
6225
6222
  /* @__PURE__ */ Q(" 或 "),
6226
6223
  /* @__PURE__ */ le("a", { href: "#" }, "隐私协议")
6227
6224
  ], -1), Kl = [
6228
- $l
6225
+ Gl
6229
6226
  ], Wl = /* @__PURE__ */ ee({
6230
6227
  __name: "GLoginForm",
6231
6228
  setup(e) {
6232
6229
  return (n, t) => (p(), X("div", {
6233
- class: Y(`${m(Z)}__login-form`)
6230
+ class: Y(`${m(J)}__login-form`)
6234
6231
  }, [
6235
6232
  Fe(n.$slots, "tabs"),
6236
6233
  le("div", {
6237
- class: Y(`${m(Z)}__login-form--footer`)
6234
+ class: Y(`${m(J)}__login-form--footer`)
6238
6235
  }, Kl, 2)
6239
6236
  ], 2));
6240
6237
  }
@@ -6247,14 +6244,14 @@ const Hl = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
6247
6244
  },
6248
6245
  setup(e) {
6249
6246
  return (n, t) => (p(), X("div", {
6250
- class: Y(`${m(Z)}__login-footer`)
6247
+ class: Y(`${m(J)}__login-footer`)
6251
6248
  }, [
6252
6249
  le("span", {
6253
- class: Y(`${m(Z)}__login-footer--logo`),
6254
- style: It({ backgroundImage: `url(${m(Hl)})` })
6250
+ class: Y(`${m(J)}__login-footer--logo`),
6251
+ style: Lt({ backgroundImage: `url(${m(Hl)})` })
6255
6252
  }, null, 6),
6256
6253
  le("div", {
6257
- class: Y(`${m(Z)}__login-footer--copyright`)
6254
+ class: Y(`${m(J)}__login-footer--copyright`)
6258
6255
  }, [
6259
6256
  le("div", { innerHTML: e.copyrightInfoEng }, null, 8, Ql),
6260
6257
  le("div", { innerHTML: e.copyrightInfoCN }, null, 8, ql)
@@ -6273,11 +6270,11 @@ const Yl = ["id", "poster"], Zl = ["src"], Jl = ["src"], ei = /* @__PURE__ */ ee
6273
6270
  },
6274
6271
  setup(e) {
6275
6272
  return (n, t) => (p(), X("div", {
6276
- class: Y(`${m(Z)}__login-wrapper`)
6273
+ class: Y(`${m(J)}__login-wrapper`)
6277
6274
  }, [
6278
6275
  le("video", {
6279
- id: `${m(Z)}__login-wrapper--bgVideo`,
6280
- style: It({ backgroundImage: `url(${e.bgImgSrc})` }),
6276
+ id: `${m(J)}__login-wrapper--bgVideo`,
6277
+ style: Lt({ backgroundImage: `url(${e.bgImgSrc})` }),
6281
6278
  poster: e.bgImgSrc,
6282
6279
  autoplay: "",
6283
6280
  muted: "",
@@ -6293,12 +6290,12 @@ const Yl = ["id", "poster"], Zl = ["src"], Jl = ["src"], ei = /* @__PURE__ */ ee
6293
6290
  }, null, 8, Jl)
6294
6291
  ], 12, Yl),
6295
6292
  le("div", {
6296
- class: Y(`${m(Z)}__login-wrapper--overlay`)
6293
+ class: Y(`${m(J)}__login-wrapper--overlay`)
6297
6294
  }, null, 2),
6298
6295
  le("div", {
6299
- class: Y(`${m(Z)}__login-wrapper--container`)
6296
+ class: Y(`${m(J)}__login-wrapper--container`)
6300
6297
  }, [
6301
- S(Gl, {
6298
+ S($l, {
6302
6299
  title: e.title,
6303
6300
  subTitle: e.subTitle
6304
6301
  }, null, 8, ["title", "subTitle"]),
@@ -6313,7 +6310,7 @@ const Yl = ["id", "poster"], Zl = ["src"], Jl = ["src"], ei = /* @__PURE__ */ ee
6313
6310
  ], 2));
6314
6311
  }
6315
6312
  });
6316
- const ti = /* @__PURE__ */ Ze(ei, [["__scopeId", "data-v-b1b26512"]]), er = lt(ti), ni = "@gonsin/gview", oi = "2.0.16", ai = "dist/index.mjs", li = "dist/types/index.d.ts", ii = [
6313
+ const ti = /* @__PURE__ */ Ze(ei, [["__scopeId", "data-v-b1b26512"]]), er = lt(ti), ni = "@gonsin/gview", oi = "2.0.17", ai = "dist/index.mjs", li = "dist/types/index.d.ts", ii = [
6317
6314
  "dist",
6318
6315
  "README.md"
6319
6316
  ], ri = {
@@ -7036,7 +7033,7 @@ const hi = { class: "menu-title" }, pi = {
7036
7033
  label: L.title,
7037
7034
  value: L.name
7038
7035
  }))
7039
- ), g = dt(), M = _t();
7036
+ ), g = dt(), M = xt();
7040
7037
  function v() {
7041
7038
  const { fullPath: L, query: D } = g, A = decodeURIComponent(L);
7042
7039
  M.appendTabMenuItem({
@@ -7061,7 +7058,7 @@ const hi = { class: "menu-title" }, pi = {
7061
7058
  }
7062
7059
  async function I() {
7063
7060
  const L = await fi();
7064
- L.state == 200 ? f.value = w(L.data) : (console.log(L.message), J.error(`获取内置菜单列表出错: ${L.message}`));
7061
+ L.state == 200 ? f.value = w(L.data) : (console.log(L.message), Z.error(`获取内置菜单列表出错: ${L.message}`));
7065
7062
  }
7066
7063
  function H(L) {
7067
7064
  return L && L.length ? L.filter((D) => !D.isGroup) : [];
@@ -7075,9 +7072,9 @@ const hi = { class: "menu-title" }, pi = {
7075
7072
  if (y.value) {
7076
7073
  const A = y.value.getTreeExpandedRow("unique");
7077
7074
  (D = y.value) == null || D.resetData(L);
7078
- const q = y.value.getTreeExpandedRow("all").filter(($) => !A.some((ne) => ne === $.id));
7079
- q && q.forEach(($) => {
7080
- (!$.parent || $.parent && $.parent.id && !q.some((se) => se.id === $.parent.id)) && y.value.toggleExpandData($);
7075
+ const q = y.value.getTreeExpandedRow("all").filter((G) => !A.some((ne) => ne === G.id));
7076
+ q && q.forEach((G) => {
7077
+ (!G.parent || G.parent && G.parent.id && !q.some((se) => se.id === G.parent.id)) && y.value.toggleExpandData(G);
7081
7078
  });
7082
7079
  }
7083
7080
  } catch (A) {
@@ -7106,7 +7103,7 @@ const hi = { class: "menu-title" }, pi = {
7106
7103
  D != -1 && s.value.children.splice(D, 1);
7107
7104
  }
7108
7105
  }
7109
- function Le() {
7106
+ function Ne() {
7110
7107
  if ((s.value.level == 1 || s.value.level == 2) && s.value.children) {
7111
7108
  const L = s.value.level + 1;
7112
7109
  s.value.children.push({
@@ -7128,7 +7125,7 @@ const hi = { class: "menu-title" }, pi = {
7128
7125
  function me(L) {
7129
7126
  s.value = vt(L), u.value = !0, r.value = "moveItemTo";
7130
7127
  }
7131
- function Te() {
7128
+ function Ce() {
7132
7129
  u.value = !1, setTimeout(() => {
7133
7130
  V();
7134
7131
  }, 100);
@@ -7149,23 +7146,23 @@ const hi = { class: "menu-title" }, pi = {
7149
7146
  function U() {
7150
7147
  var L;
7151
7148
  (L = P.value) == null || L.validate().then((D) => {
7152
- var A, te, q, $, se, ne, we;
7149
+ var A, te, q, G, se, ne, we;
7153
7150
  if (!Object.keys(D).length)
7154
- r.value == "addGroup" ? (s.value.edificeKey = a.value, s.value.children && ((A = s.value.children) != null && A.length) && s.value.children.forEach((G) => {
7155
- G.parent == "" && (G.parent = s.value.name);
7156
- }), (te = y.value) == null || te.appendTo("", s.value), J.success("保存新增组成功!")) : r.value == "editGroup" || r.value == "editItem" ? ((q = y.value) == null || q.setData(s.value.name, s.value), s.value.isGroup ? ((se = ($ = s.value) == null ? void 0 : $.children) == null || se.forEach((G) => {
7151
+ r.value == "addGroup" ? (s.value.edificeKey = a.value, s.value.children && ((A = s.value.children) != null && A.length) && s.value.children.forEach(($) => {
7152
+ $.parent == "" && ($.parent = s.value.name);
7153
+ }), (te = y.value) == null || te.appendTo("", s.value), Z.success("保存新增组成功!")) : r.value == "editGroup" || r.value == "editItem" ? ((q = y.value) == null || q.setData(s.value.name, s.value), s.value.isGroup ? ((se = (G = s.value) == null ? void 0 : G.children) == null || se.forEach(($) => {
7157
7154
  var ve;
7158
- (ve = y.value) == null || ve.setData(G.name, G);
7159
- }), J.success("编辑组成功!")) : (ie(
7155
+ (ve = y.value) == null || ve.setData($.name, $);
7156
+ }), Z.success("编辑组成功!")) : (ie(
7160
7157
  s.value.name,
7161
7158
  s.value.parent
7162
- ), J.success("编辑菜单成功!"))) : r.value == "moveItemTo" && (ie(
7159
+ ), Z.success("编辑菜单成功!"))) : r.value == "moveItemTo" && (ie(
7163
7160
  s.value.name,
7164
7161
  s.value.parent
7165
- ), J.success("转移组成功!")), oe(), Te();
7162
+ ), Z.success("转移组成功!")), oe(), Ce();
7166
7163
  else {
7167
- const G = (we = (ne = Object.values(D)[0]) == null ? void 0 : ne[0]) == null ? void 0 : we.message;
7168
- J.warning(`${G}`);
7164
+ const $ = (we = (ne = Object.values(D)[0]) == null ? void 0 : ne[0]) == null ? void 0 : we.message;
7165
+ Z.warning(`${$}`);
7169
7166
  }
7170
7167
  });
7171
7168
  }
@@ -7185,7 +7182,7 @@ const hi = { class: "menu-title" }, pi = {
7185
7182
  header: "撤销组",
7186
7183
  body: `确定要撤销${L.title}吗?`,
7187
7184
  onConfirm: () => {
7188
- var te, q, $, se;
7185
+ var te, q, G, se;
7189
7186
  let A = [];
7190
7187
  if (L.level == 1)
7191
7188
  (te = L.children) == null || te.forEach((ne) => {
@@ -7196,17 +7193,17 @@ const hi = { class: "menu-title" }, pi = {
7196
7193
  });
7197
7194
  else if (L.level == 2) {
7198
7195
  const { parent: ne } = L;
7199
- ($ = L.children) == null || $.forEach((we) => {
7196
+ (G = L.children) == null || G.forEach((we) => {
7200
7197
  we.level = 2, we.parent = ne, A.push(we);
7201
7198
  }), (se = y.value) == null || se.remove(L.name), oe(), A.forEach((we) => {
7202
- var G;
7203
- (G = y.value) == null || G.appendTo(ne, we);
7199
+ var $;
7200
+ ($ = y.value) == null || $.appendTo(ne, we);
7204
7201
  });
7205
7202
  }
7206
- D.destroy(), J.success("撤销组成功");
7203
+ D.destroy(), Z.success("撤销组成功");
7207
7204
  },
7208
7205
  onCancel: () => {
7209
- D.destroy(), J.info("已取消撤销组操作");
7206
+ D.destroy(), Z.info("已取消撤销组操作");
7210
7207
  }
7211
7208
  });
7212
7209
  } catch (D) {
@@ -7216,40 +7213,44 @@ const hi = { class: "menu-title" }, pi = {
7216
7213
  }
7217
7214
  function ze() {
7218
7215
  var L;
7219
- (L = y.value) == null || L.resetData(n.sideMenuTree), J.success("恢复默认菜单方案成功!");
7216
+ (L = y.value) == null || L.resetData(n.sideMenuTree), Z.success("恢复默认菜单方案成功!");
7220
7217
  }
7221
7218
  async function fe() {
7222
7219
  const L = un(T.value);
7223
7220
  try {
7224
- (await mi({ menus: [...L] })).state == 200 && (n.setSideMenuConfig(T.value), c.value = T.value, J.success("保存菜单方案成功!"));
7221
+ const D = await mi({ menus: [...L] });
7222
+ if (D.state == 200)
7223
+ n.setSideMenuConfig(T.value), c.value = T.value, Z.success("保存菜单方案成功!");
7224
+ else
7225
+ throw D;
7225
7226
  } catch (D) {
7226
- J.error(D.message);
7227
+ Z.error(D.message);
7227
7228
  }
7228
7229
  }
7229
7230
  function he(L) {
7230
- const { current: D, target: A, currentIndex: te, targetIndex: q } = L, $ = D.level, se = D.parent, ne = A.level, we = A.parent;
7231
- if ($ == ne) {
7231
+ const { current: D, target: A, currentIndex: te, targetIndex: q } = L, G = D.level, se = D.parent, ne = A.level, we = A.parent;
7232
+ if (G == ne) {
7232
7233
  if (se == we)
7233
7234
  return !0;
7234
- J.info("不同父菜单的菜单项,请使用转移至功能转移菜单");
7235
+ Z.info("不同父菜单的菜单项,请使用转移至功能转移菜单");
7235
7236
  } else
7236
- J.info("不同层级的菜单项,请使用转移至功能转移菜单");
7237
+ Z.info("不同层级的菜单项,请使用转移至功能转移菜单");
7237
7238
  return oe(), !1;
7238
7239
  }
7239
- function Ce(L) {
7240
- L.code && J.error("不同层级的菜单项,不允许调整顺序");
7240
+ function Te(L) {
7241
+ L.code && Z.error("不同层级的菜单项,不允许调整顺序");
7241
7242
  }
7242
- function _e(L, D) {
7243
+ function Le(L, D) {
7243
7244
  var te;
7244
7245
  const A = (te = y.value) == null ? void 0 : te.getData(L.name);
7245
7246
  if (A) {
7246
7247
  const { parent: q } = A;
7247
7248
  if (q) {
7248
- const { children: $ } = q.row, se = $ == null ? void 0 : $.findIndex((ne) => ne.name == L.name);
7249
- $ && (z($, D, se), oe());
7249
+ const { children: G } = q.row, se = G == null ? void 0 : G.findIndex((ne) => ne.name == L.name);
7250
+ G && (z(G, D, se), oe());
7250
7251
  } else {
7251
- const $ = vt(T.value), se = $.findIndex((ne) => ne.name == L.name);
7252
- z($, D, se), oe($);
7252
+ const G = vt(T.value), se = G.findIndex((ne) => ne.name == L.name);
7253
+ z(G, D, se), oe(G);
7253
7254
  }
7254
7255
  }
7255
7256
  }
@@ -7259,20 +7260,20 @@ const hi = { class: "menu-title" }, pi = {
7259
7260
  A != 0 ? [L[A - 1], L[A]] = [
7260
7261
  L[A],
7261
7262
  L[A - 1]
7262
- ] : J.info("该菜单项已经在该组的第一个了!");
7263
+ ] : Z.info("该菜单项已经在该组的第一个了!");
7263
7264
  break;
7264
7265
  }
7265
7266
  case "down": {
7266
7267
  A != L.length - 1 ? [L[A + 1], L[A]] = [
7267
7268
  L[A],
7268
7269
  L[A + 1]
7269
- ] : J.info("该菜单项已经在该组的最后一个了!");
7270
+ ] : Z.info("该菜单项已经在该组的最后一个了!");
7270
7271
  break;
7271
7272
  }
7272
7273
  }
7273
7274
  }
7274
7275
  return (L, D) => {
7275
- const A = j("t-button"), te = j("t-icon"), q = j("t-input"), $ = j("t-form-item"), se = j("t-option"), ne = j("t-select"), we = j("t-input-group");
7276
+ const A = j("t-button"), te = j("t-icon"), q = j("t-input"), G = j("t-form-item"), se = j("t-option"), ne = j("t-select"), we = j("t-input-group");
7276
7277
  return p(), _(m(zl), { title: t.value }, {
7277
7278
  default: k(() => [
7278
7279
  S(m(Bn), null, {
@@ -7329,7 +7330,7 @@ const hi = { class: "menu-title" }, pi = {
7329
7330
  columns: o,
7330
7331
  dragSort: "row-handler",
7331
7332
  beforeDragSort: he,
7332
- onAbnormalDragSort: Ce,
7333
+ onAbnormalDragSort: Te,
7333
7334
  tree: {
7334
7335
  childrenKey: "children",
7335
7336
  defaultExpandAll: !0,
@@ -7339,8 +7340,8 @@ const hi = { class: "menu-title" }, pi = {
7339
7340
  maxHeight: "calc(100vh - 233px)"
7340
7341
  }
7341
7342
  }, {
7342
- treeExpandAndFoldIcon: k(({ type: G }) => [
7343
- G === "expand" ? (p(), _(te, {
7343
+ treeExpandAndFoldIcon: k(({ type: $ }) => [
7344
+ $ === "expand" ? (p(), _(te, {
7344
7345
  key: 0,
7345
7346
  name: "chevron-right"
7346
7347
  })) : (p(), _(te, {
@@ -7351,16 +7352,16 @@ const hi = { class: "menu-title" }, pi = {
7351
7352
  drag: k(() => [
7352
7353
  S(te, { name: "move" })
7353
7354
  ]),
7354
- title: k(({ row: G }) => [
7355
+ title: k(({ row: $ }) => [
7355
7356
  le("span", hi, [
7356
7357
  le("span", {
7357
- class: Y(["title", G.isGroup ? "title-bold" : "title-child"])
7358
+ class: Y(["title", $.isGroup ? "title-bold" : "title-child"])
7358
7359
  }, [
7359
- G.level == 1 && G.isGroup ? (p(), X(pe, { key: 0 }, [
7360
- G.icon ? (p(), _(te, {
7360
+ $.level == 1 && $.isGroup ? (p(), X(pe, { key: 0 }, [
7361
+ $.icon ? (p(), _(te, {
7361
7362
  key: 0,
7362
7363
  class: "title-icon",
7363
- name: G.icon,
7364
+ name: $.icon,
7364
7365
  size: "large"
7365
7366
  }, null, 8, ["name"])) : (p(), _(te, {
7366
7367
  key: 1,
@@ -7369,17 +7370,17 @@ const hi = { class: "menu-title" }, pi = {
7369
7370
  size: "large"
7370
7371
  }))
7371
7372
  ], 64)) : K("", !0),
7372
- Q(" " + ye(G.title), 1)
7373
+ Q(" " + ye($.title), 1)
7373
7374
  ], 2),
7374
- G.isGroup ? (p(), X("span", pi, ye(G.children.length) + "项", 1)) : K("", !0)
7375
+ $.isGroup ? (p(), X("span", pi, ye($.children.length) + "项", 1)) : K("", !0)
7375
7376
  ])
7376
7377
  ]),
7377
- operations: k(({ row: G }) => [
7378
+ operations: k(({ row: $ }) => [
7378
7379
  le("div", gi, [
7379
7380
  S(A, {
7380
7381
  variant: "text",
7381
7382
  theme: "primary",
7382
- onClick: (ve) => Ae(G)
7383
+ onClick: (ve) => Ae($)
7383
7384
  }, {
7384
7385
  default: k(() => [
7385
7386
  Q(" 编辑修改 ")
@@ -7389,18 +7390,18 @@ const hi = { class: "menu-title" }, pi = {
7389
7390
  S(A, {
7390
7391
  variant: "text",
7391
7392
  theme: "primary",
7392
- disabled: G.isGroup,
7393
- onClick: (ve) => me(G)
7393
+ disabled: $.isGroup,
7394
+ onClick: (ve) => me($)
7394
7395
  }, {
7395
7396
  default: k(() => [
7396
- Q(ye(G.isGroup ? "-----" : "转移至"), 1)
7397
+ Q(ye($.isGroup ? "-----" : "转移至"), 1)
7397
7398
  ]),
7398
7399
  _: 2
7399
7400
  }, 1032, ["disabled", "onClick"]),
7400
7401
  S(A, {
7401
7402
  variant: "text",
7402
7403
  theme: "primary",
7403
- onClick: (ve) => _e(G, "up")
7404
+ onClick: (ve) => Le($, "up")
7404
7405
  }, {
7405
7406
  default: k(() => [
7406
7407
  Q(" 上移 ")
@@ -7410,7 +7411,7 @@ const hi = { class: "menu-title" }, pi = {
7410
7411
  S(A, {
7411
7412
  variant: "text",
7412
7413
  theme: "primary",
7413
- onClick: (ve) => _e(G, "down")
7414
+ onClick: (ve) => Le($, "down")
7414
7415
  }, {
7415
7416
  default: k(() => [
7416
7417
  Q(" 下移 ")
@@ -7420,11 +7421,11 @@ const hi = { class: "menu-title" }, pi = {
7420
7421
  S(A, {
7421
7422
  variant: "text",
7422
7423
  theme: "primary",
7423
- disabled: !G.isGroup,
7424
- onClick: (ve) => Me(G)
7424
+ disabled: !$.isGroup,
7425
+ onClick: (ve) => Me($)
7425
7426
  }, {
7426
7427
  default: k(() => [
7427
- Q(ye(G.isGroup ? "撤销组" : "-----"), 1)
7428
+ Q(ye($.isGroup ? "撤销组" : "-----"), 1)
7428
7429
  ]),
7429
7430
  _: 2
7430
7431
  }, 1032, ["disabled", "onClick"])
@@ -7435,7 +7436,7 @@ const hi = { class: "menu-title" }, pi = {
7435
7436
  S(m(Pn), {
7436
7437
  commonDialogProps: {
7437
7438
  visible: u.value,
7438
- onClose: Te,
7439
+ onClose: Ce,
7439
7440
  header: m(h),
7440
7441
  footer: !1,
7441
7442
  width: "650px"
@@ -7451,11 +7452,11 @@ const hi = { class: "menu-title" }, pi = {
7451
7452
  labelAlign: "right",
7452
7453
  labelWidth: "150px"
7453
7454
  }
7454
- }, Lt({
7455
+ }, Nt({
7455
7456
  footer: k(() => [
7456
7457
  S(A, {
7457
7458
  theme: "default",
7458
- onClick: Te
7459
+ onClick: Ce
7459
7460
  }, {
7460
7461
  default: k(() => [
7461
7462
  Q("取消")
@@ -7474,7 +7475,7 @@ const hi = { class: "menu-title" }, pi = {
7474
7475
  r.value == "addGroup" || r.value == "editGroup" || r.value == "editItem" ? {
7475
7476
  name: "body",
7476
7477
  fn: k(() => [
7477
- S($, {
7478
+ S(G, {
7478
7479
  name: "title",
7479
7480
  label: "组名称",
7480
7481
  requiredMark: !0
@@ -7483,13 +7484,13 @@ const hi = { class: "menu-title" }, pi = {
7483
7484
  S(q, {
7484
7485
  style: { width: "360px" },
7485
7486
  modelValue: s.value.title,
7486
- "onUpdate:modelValue": D[0] || (D[0] = (G) => s.value.title = G),
7487
+ "onUpdate:modelValue": D[0] || (D[0] = ($) => s.value.title = $),
7487
7488
  placeholder: "请输入组名称"
7488
7489
  }, null, 8, ["modelValue"])
7489
7490
  ]),
7490
7491
  _: 1
7491
7492
  }),
7492
- S($, {
7493
+ S(G, {
7493
7494
  name: "name",
7494
7495
  label: "名称标识",
7495
7496
  requiredMark: !0
@@ -7498,14 +7499,14 @@ const hi = { class: "menu-title" }, pi = {
7498
7499
  S(q, {
7499
7500
  style: { width: "360px" },
7500
7501
  modelValue: s.value.name,
7501
- "onUpdate:modelValue": D[1] || (D[1] = (G) => s.value.name = G),
7502
+ "onUpdate:modelValue": D[1] || (D[1] = ($) => s.value.name = $),
7502
7503
  placeholder: "输入该菜单的唯一标识,设置后不能修改",
7503
7504
  disabled: r.value == "editGroup" || r.value == "editItem"
7504
7505
  }, null, 8, ["modelValue", "disabled"])
7505
7506
  ]),
7506
7507
  _: 1
7507
7508
  }),
7508
- s.value.level == 1 ? (p(), _($, {
7509
+ s.value.level == 1 ? (p(), _(G, {
7509
7510
  key: 0,
7510
7511
  name: "icon",
7511
7512
  label: "图标标识"
@@ -7513,7 +7514,7 @@ const hi = { class: "menu-title" }, pi = {
7513
7514
  default: k(() => [
7514
7515
  S(ne, {
7515
7516
  modelValue: s.value.icon,
7516
- "onUpdate:modelValue": D[2] || (D[2] = (G) => s.value.icon = G),
7517
+ "onUpdate:modelValue": D[2] || (D[2] = ($) => s.value.icon = $),
7517
7518
  placeholder: "请选择图标标识",
7518
7519
  popupProps: { overlayInnerStyle: { width: "326px" } },
7519
7520
  clearable: !0
@@ -7528,15 +7529,15 @@ const hi = { class: "menu-title" }, pi = {
7528
7529
  ])) : (p(), X("span", bi, "请选择图标标识"))
7529
7530
  ]),
7530
7531
  default: k(() => [
7531
- (p(!0), X(pe, null, Ie(m(di), (G) => (p(), _(se, {
7532
- value: G.stem,
7533
- key: G.stem,
7532
+ (p(!0), X(pe, null, Ie(m(di), ($) => (p(), _(se, {
7533
+ value: $.stem,
7534
+ key: $.stem,
7534
7535
  class: "overlay-options"
7535
7536
  }, {
7536
7537
  default: k(() => [
7537
7538
  le("span", vi, [
7538
7539
  S(te, {
7539
- name: G.stem,
7540
+ name: $.stem,
7540
7541
  size: "small"
7541
7542
  }, null, 8, ["name"])
7542
7543
  ])
@@ -7549,7 +7550,7 @@ const hi = { class: "menu-title" }, pi = {
7549
7550
  ]),
7550
7551
  _: 1
7551
7552
  })) : K("", !0),
7552
- s.value.isGroup ? K("", !0) : (p(), _($, {
7553
+ s.value.isGroup ? K("", !0) : (p(), _(G, {
7553
7554
  key: 1,
7554
7555
  name: "parent",
7555
7556
  label: "父菜单",
@@ -7559,12 +7560,12 @@ const hi = { class: "menu-title" }, pi = {
7559
7560
  S(ne, {
7560
7561
  options: m(x),
7561
7562
  modelValue: s.value.parent,
7562
- "onUpdate:modelValue": D[3] || (D[3] = (G) => s.value.parent = G)
7563
+ "onUpdate:modelValue": D[3] || (D[3] = ($) => s.value.parent = $)
7563
7564
  }, null, 8, ["options", "modelValue"])
7564
7565
  ]),
7565
7566
  _: 1
7566
7567
  })),
7567
- !O(s.value.children).length && s.value.level == 1 ? (p(), _($, {
7568
+ !O(s.value.children).length && s.value.level == 1 ? (p(), _(G, {
7568
7569
  key: 2,
7569
7570
  label: "分组"
7570
7571
  }, {
@@ -7581,7 +7582,7 @@ const hi = { class: "menu-title" }, pi = {
7581
7582
  ]),
7582
7583
  _: 1
7583
7584
  })) : K("", !0),
7584
- (p(!0), X(pe, null, Ie(O(s.value.children), (G, ve) => (p(), _($, {
7585
+ (p(!0), X(pe, null, Ie(O(s.value.children), ($, ve) => (p(), _(G, {
7585
7586
  key: "group" + ve,
7586
7587
  label: ve == 0 ? "分组" : " "
7587
7588
  }, {
@@ -7590,7 +7591,7 @@ const hi = { class: "menu-title" }, pi = {
7590
7591
  default: k(() => [
7591
7592
  S(q, {
7592
7593
  placeholder: "请输入分组名称 ",
7593
- value: G.title,
7594
+ value: $.title,
7594
7595
  onChange: (Pe) => m(We)(
7595
7596
  O(s.value.children),
7596
7597
  `[${ve}].title`,
@@ -7599,7 +7600,7 @@ const hi = { class: "menu-title" }, pi = {
7599
7600
  }, null, 8, ["value", "onChange"]),
7600
7601
  S(q, {
7601
7602
  placeholder: "请输入分组标识 ",
7602
- value: G.name,
7603
+ value: $.name,
7603
7604
  onChange: (Pe) => m(We)(
7604
7605
  O(s.value.children),
7605
7606
  `[${ve}].name`,
@@ -7609,7 +7610,7 @@ const hi = { class: "menu-title" }, pi = {
7609
7610
  S(A, {
7610
7611
  variant: "outline",
7611
7612
  theme: "default",
7612
- onClick: (Pe) => re(G)
7613
+ onClick: (Pe) => re($)
7613
7614
  }, {
7614
7615
  default: k(() => [
7615
7616
  Q("- ")
@@ -7633,14 +7634,14 @@ const hi = { class: "menu-title" }, pi = {
7633
7634
  ]),
7634
7635
  _: 2
7635
7636
  }, 1032, ["label"]))), 128)),
7636
- !H(s.value.children).length && s.value.isGroup ? (p(), _($, {
7637
+ !H(s.value.children).length && s.value.isGroup ? (p(), _(G, {
7637
7638
  key: 3,
7638
7639
  label: "子菜单项"
7639
7640
  }, {
7640
7641
  default: k(() => [
7641
7642
  S(A, {
7642
7643
  variant: "outline",
7643
- onClick: Le
7644
+ onClick: Ne
7644
7645
  }, {
7645
7646
  default: k(() => [
7646
7647
  Q("添加子菜单")
@@ -7650,7 +7651,7 @@ const hi = { class: "menu-title" }, pi = {
7650
7651
  ]),
7651
7652
  _: 1
7652
7653
  })) : K("", !0),
7653
- (p(!0), X(pe, null, Ie(H(s.value.children), (G, ve) => (p(), _($, {
7654
+ (p(!0), X(pe, null, Ie(H(s.value.children), ($, ve) => (p(), _(G, {
7654
7655
  key: "item" + ve,
7655
7656
  label: ve == 0 ? "子菜单项" : " "
7656
7657
  }, {
@@ -7659,7 +7660,7 @@ const hi = { class: "menu-title" }, pi = {
7659
7660
  default: k(() => [
7660
7661
  S(q, {
7661
7662
  placeholder: "请输入子菜单名称 ",
7662
- value: G.title,
7663
+ value: $.title,
7663
7664
  onChange: (Pe) => m(We)(
7664
7665
  H(s.value.children),
7665
7666
  `[${ve}].title`,
@@ -7668,7 +7669,7 @@ const hi = { class: "menu-title" }, pi = {
7668
7669
  }, null, 8, ["value", "onChange"]),
7669
7670
  S(q, {
7670
7671
  placeholder: "请输入子菜单标识 ",
7671
- value: G.name,
7672
+ value: $.name,
7672
7673
  onChange: (Pe) => m(We)(
7673
7674
  H(s.value.children),
7674
7675
  `[${ve}].name`,
@@ -7678,7 +7679,7 @@ const hi = { class: "menu-title" }, pi = {
7678
7679
  S(A, {
7679
7680
  variant: "outline",
7680
7681
  theme: "default",
7681
- onClick: (Pe) => re(G)
7682
+ onClick: (Pe) => re($)
7682
7683
  }, {
7683
7684
  default: k(() => [
7684
7685
  Q("- ")
@@ -7689,7 +7690,7 @@ const hi = { class: "menu-title" }, pi = {
7689
7690
  key: 0,
7690
7691
  variant: "outline",
7691
7692
  theme: "default",
7692
- onClick: on(Le, ["prevent"])
7693
+ onClick: on(Ne, ["prevent"])
7693
7694
  }, {
7694
7695
  default: k(() => [
7695
7696
  Q("+ ")
@@ -7703,11 +7704,11 @@ const hi = { class: "menu-title" }, pi = {
7703
7704
  _: 2
7704
7705
  }, 1032, ["label"]))), 128)),
7705
7706
  r.value == "editItem" ? (p(), X(pe, { key: 4 }, [
7706
- S($, { label: "是否为内置菜单" }, {
7707
+ S(G, { label: "是否为内置菜单" }, {
7707
7708
  default: k(() => [
7708
7709
  S(ne, {
7709
7710
  modelValue: s.value.isInner,
7710
- "onUpdate:modelValue": D[4] || (D[4] = (G) => s.value.isInner = G)
7711
+ "onUpdate:modelValue": D[4] || (D[4] = ($) => s.value.isInner = $)
7711
7712
  }, {
7712
7713
  default: k(() => [
7713
7714
  S(se, {
@@ -7734,27 +7735,27 @@ const hi = { class: "menu-title" }, pi = {
7734
7735
  ]),
7735
7736
  _: 1
7736
7737
  }),
7737
- s.value.isInner ? (p(), _($, {
7738
+ s.value.isInner ? (p(), _(G, {
7738
7739
  key: 0,
7739
7740
  label: "选择菜单"
7740
7741
  }, {
7741
7742
  default: k(() => [
7742
7743
  S(ne, {
7743
7744
  modelValue: s.value.url,
7744
- "onUpdate:modelValue": D[5] || (D[5] = (G) => s.value.url = G),
7745
+ "onUpdate:modelValue": D[5] || (D[5] = ($) => s.value.url = $),
7745
7746
  options: m(E)
7746
7747
  }, null, 8, ["modelValue", "options"])
7747
7748
  ]),
7748
7749
  _: 1
7749
7750
  })) : K("", !0),
7750
- s.value.isInner ? K("", !0) : (p(), _($, {
7751
+ s.value.isInner ? K("", !0) : (p(), _(G, {
7751
7752
  key: 1,
7752
7753
  label: "菜单路径"
7753
7754
  }, {
7754
7755
  default: k(() => [
7755
7756
  S(q, {
7756
7757
  modelValue: s.value.url,
7757
- "onUpdate:modelValue": D[6] || (D[6] = (G) => s.value.url = G)
7758
+ "onUpdate:modelValue": D[6] || (D[6] = ($) => s.value.url = $)
7758
7759
  }, null, 8, ["modelValue"])
7759
7760
  ]),
7760
7761
  _: 1
@@ -7765,7 +7766,7 @@ const hi = { class: "menu-title" }, pi = {
7765
7766
  } : r.value == "moveItemTo" ? {
7766
7767
  name: "body",
7767
7768
  fn: k(() => [
7768
- s.value.isGroup ? K("", !0) : (p(), _($, {
7769
+ s.value.isGroup ? K("", !0) : (p(), _(G, {
7769
7770
  key: 0,
7770
7771
  name: "parent",
7771
7772
  label: "转移至",
@@ -7775,7 +7776,7 @@ const hi = { class: "menu-title" }, pi = {
7775
7776
  S(ne, {
7776
7777
  options: m(x),
7777
7778
  modelValue: s.value.parent,
7778
- "onUpdate:modelValue": D[7] || (D[7] = (G) => s.value.parent = G),
7779
+ "onUpdate:modelValue": D[7] || (D[7] = ($) => s.value.parent = $),
7779
7780
  autosize: ""
7780
7781
  }, null, 8, ["options", "modelValue"])
7781
7782
  ]),
@@ -7804,7 +7805,7 @@ function Ti(e, n) {
7804
7805
  }
7805
7806
  }
7806
7807
  function nr(e) {
7807
- Be(e), _t(e), Xt(e), qt(e);
7808
+ Be(e), xt(e), Xt(e), qt(e);
7808
7809
  }
7809
7810
  const or = {
7810
7811
  install: Ti
@@ -7815,23 +7816,23 @@ export {
7815
7816
  Fo as B,
7816
7817
  Oo as C,
7817
7818
  Yi as D,
7818
- Gt as E,
7819
+ $t as E,
7819
7820
  Ro as F,
7820
7821
  Pn as G,
7821
7822
  He as H,
7822
- Ot as I,
7823
+ Bt as I,
7823
7824
  cn as J,
7824
7825
  Do as K,
7825
7826
  yt as L,
7826
7827
  Dn as M,
7827
7828
  Vn as N,
7828
7829
  Ui as O,
7829
- Z as P,
7830
+ J as P,
7830
7831
  Ri as Q,
7831
7832
  zi as R,
7832
- Gi as S,
7833
+ $i as S,
7833
7834
  Bi as T,
7834
- $i as U,
7835
+ Gi as U,
7835
7836
  Ki as V,
7836
7837
  No as W,
7837
7838
  Wi as X,
@@ -7853,7 +7854,7 @@ export {
7853
7854
  qe as ab,
7854
7855
  zo as ac,
7855
7856
  mn as ad,
7856
- zt as ae,
7857
+ It as ae,
7857
7858
  Yt as af,
7858
7859
  lt as ag,
7859
7860
  tr as ah,
@@ -7869,7 +7870,7 @@ export {
7869
7870
  Oi as k,
7870
7871
  ln as l,
7871
7872
  rn as m,
7872
- Pt as n,
7873
+ Ot as n,
7873
7874
  Fi as o,
7874
7875
  ji as p,
7875
7876
  sn as q,
@@ -7880,6 +7881,6 @@ export {
7880
7881
  ea as v,
7881
7882
  ta as w,
7882
7883
  Be as x,
7883
- _t as y,
7884
+ xt as y,
7884
7885
  qt as z
7885
7886
  };