@skyfox2000/webui 1.5.20 → 1.5.21

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.
@@ -2,7 +2,7 @@ var dr = Object.defineProperty;
2
2
  var mr = (e, t, a) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var ne = (e, t, a) => mr(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import * as wa from "vue";
5
- import { effectScope as pr, ref as R, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ft, createVNode as Ye, Text as gr, nextTick as hr, provide as ka, toRaw as fs, reactive as Er, createBlock as zt, createCommentVNode as rt, openBlock as le, unref as X, mergeProps as wt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Me, createTextVNode as ta, toDisplayString as Be, renderList as nn, normalizeClass as ds, createElementVNode as vr } from "vue";
5
+ import { effectScope as pr, ref as w, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ft, createVNode as Ye, Text as gr, nextTick as hr, provide as ka, toRaw as fs, reactive as Er, createBlock as zt, createCommentVNode as rt, openBlock as le, unref as X, mergeProps as wt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Me, createTextVNode as ta, toDisplayString as Be, renderList as nn, normalizeClass as ds, createElementVNode as vr } from "vue";
6
6
  import { Switch as br, AutoComplete as yr, Input as Ir, CheckboxGroup as Nr, Checkbox as Sr, RadioGroup as Tr, Radio as Lr, Select as Or, SelectOption as Ar } from "ant-design-vue";
7
7
  import { createPinia as Pr, defineStore as kt } from "pinia";
8
8
  import Rr from "pinia-plugin-persistedstate";
@@ -194,7 +194,7 @@ const qr = /<\/?[\w\s="/.':;#-\/]+>/, zr = (e) => qr.test(e), Se = " ", Zr = "\r
194
194
  function ao(e) {
195
195
  const t = e;
196
196
  let a = 0, n = 1, s = 1, r = 0;
197
- const o = (v) => t[v] === Zr && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === to, c = (v) => t[v] === eo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, I = () => s, P = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
197
+ const o = (v) => t[v] === Zr && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === to, c = (v) => t[v] === eo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, I = () => s, R = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
198
198
  function _() {
199
199
  return r = 0, m(a) && (n++, s = 0), o(a) && a++, a++, s++, t[a];
200
200
  }
@@ -217,7 +217,7 @@ function ao(e) {
217
217
  index: g,
218
218
  line: p,
219
219
  column: I,
220
- peekOffset: P,
220
+ peekOffset: R,
221
221
  charAt: S,
222
222
  currentChar: O,
223
223
  currentPeek: d,
@@ -263,7 +263,7 @@ function ro(e, t = {}) {
263
263
  13
264
264
  /* TokenTypes.EOF */
265
265
  );
266
- function P(u, f) {
266
+ function R(u, f) {
267
267
  return u.currentChar() === f ? (u.next(), f) : (g(D.EXPECTED_TOKEN, r(), 0, f), "");
268
268
  }
269
269
  function S(u) {
@@ -449,12 +449,12 @@ function ro(e, t = {}) {
449
449
  return u !== wn && u !== re;
450
450
  }
451
451
  function In(u) {
452
- O(u), P(u, "'");
452
+ O(u), R(u, "'");
453
453
  let f = "", N = "";
454
454
  for (; f = Q(u, Ta); )
455
455
  f === "\\" ? N += La(u) : N += f;
456
456
  const k = u.currentChar();
457
- return k === re || k === Pe ? (g(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), k === re && (u.next(), P(u, "'")), N) : (P(u, "'"), N);
457
+ return k === re || k === Pe ? (g(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), k === re && (u.next(), R(u, "'")), N) : (R(u, "'"), N);
458
458
  }
459
459
  function La(u) {
460
460
  const f = u.currentChar();
@@ -471,7 +471,7 @@ function ro(e, t = {}) {
471
471
  }
472
472
  }
473
473
  function xt(u, f, N) {
474
- P(u, f);
474
+ R(u, f);
475
475
  let k = "";
476
476
  for (let j = 0; j < N; j++) {
477
477
  const q = Ae(u);
@@ -508,7 +508,7 @@ function ro(e, t = {}) {
508
508
  }
509
509
  function _t(u) {
510
510
  O(u);
511
- const f = P(
511
+ const f = R(
512
512
  u,
513
513
  "|"
514
514
  /* TokenChars.Pipe */
@@ -753,7 +753,7 @@ function co(e = {}) {
753
753
  const v = _.currentType === 1 ? _.lastOffset : d.currentOffset(), C = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
754
754
  return r(b, v, C), b;
755
755
  }
756
- function P(d, _, y, E) {
756
+ function R(d, _, y, E) {
757
757
  const b = d.context();
758
758
  let L = E.items.length === 0;
759
759
  const v = s(1, _, y);
@@ -766,7 +766,7 @@ function co(e = {}) {
766
766
  }
767
767
  function S(d) {
768
768
  const _ = d.context(), { offset: y, startLoc: E } = _, b = I(d);
769
- return _.currentType === 13 ? b : P(d, y, E, b);
769
+ return _.currentType === 13 ? b : R(d, y, E, b);
770
770
  }
771
771
  function O(d) {
772
772
  const _ = ro(d, te({}, e)), y = _.context(), E = s(0, y.offset, y.startLoc);
@@ -1601,9 +1601,9 @@ function Xo(e) {
1601
1601
  }
1602
1602
  };
1603
1603
  function I() {
1604
- const P = e[a + 1];
1605
- if (n === 5 && P === "'" || n === 6 && P === '"')
1606
- return a++, l = "\\" + P, p[
1604
+ const R = e[a + 1];
1605
+ if (n === 5 && R === "'" || n === 6 && R === '"')
1606
+ return a++, l = "\\" + R, p[
1607
1607
  0
1608
1608
  /* Actions.APPEND */
1609
1609
  ](), !0;
@@ -1689,7 +1689,7 @@ const Vn = (e) => {
1689
1689
  }, il = () => As;
1690
1690
  let $n = 0;
1691
1691
  function cl(e = {}) {
1692
- const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : Tt, s = G(n) ? Tt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ss;
1692
+ const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : Tt, s = G(n) ? Tt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ss;
1693
1693
  process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Je(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1694
1694
  const b = G(e.messageResolver) ? e.messageResolver : Ts || qo, L = G(e.localeFallbacker) ? e.localeFallbacker : Ls || Wo, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
1695
1695
  $n++;
@@ -1704,7 +1704,7 @@ function cl(e = {}) {
1704
1704
  missing: g,
1705
1705
  missingWarn: p,
1706
1706
  fallbackWarn: I,
1707
- fallbackFormat: P,
1707
+ fallbackFormat: R,
1708
1708
  unresolving: S,
1709
1709
  postTranslation: O,
1710
1710
  processor: d,
@@ -1767,7 +1767,7 @@ function Wn(e, ...t) {
1767
1767
  const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
1768
1768
  if (process.env.NODE_ENV !== "production" && !ws.dateTimeFormat)
1769
1769
  return r(Je(ce.CANNOT_FORMAT_DATE)), Xt;
1770
- const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
1770
+ const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1771
1771
  e,
1772
1772
  // eslint-disable-line @typescript-eslint/no-explicit-any
1773
1773
  s,
@@ -1800,7 +1800,7 @@ function Wn(e, ...t) {
1800
1800
  let v = `${_}__${i}`;
1801
1801
  sa(g) || (v = `${v}__${JSON.stringify(g)}`);
1802
1802
  let C = l.get(v);
1803
- return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
1803
+ return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1804
1804
  }
1805
1805
  const ks = [
1806
1806
  "localeMatcher",
@@ -1861,7 +1861,7 @@ function Kn(e, ...t) {
1861
1861
  const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
1862
1862
  if (process.env.NODE_ENV !== "production" && !ws.numberFormat)
1863
1863
  return r(Je(ce.CANNOT_FORMAT_NUMBER)), Xt;
1864
- const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
1864
+ const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1865
1865
  e,
1866
1866
  // eslint-disable-line @typescript-eslint/no-explicit-any
1867
1867
  s,
@@ -1894,7 +1894,7 @@ function Kn(e, ...t) {
1894
1894
  let v = `${_}__${i}`;
1895
1895
  sa(g) || (v = `${v}__${JSON.stringify(g)}`);
1896
1896
  let C = l.get(v);
1897
- return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
1897
+ return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1898
1898
  }
1899
1899
  const Ds = [
1900
1900
  "localeMatcher",
@@ -1954,7 +1954,7 @@ function El(e = {}) {
1954
1954
  const y = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
1955
1955
  return y || (e.parent ? e.parent.message(d) : dl);
1956
1956
  }
1957
- const g = (d) => e.modifiers ? e.modifiers[d] : fl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : pl, I = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : _l, P = F(e.processor) && A(e.processor.type) ? e.processor.type : ml, O = {
1957
+ const g = (d) => e.modifiers ? e.modifiers[d] : fl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : pl, I = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : _l, R = F(e.processor) && A(e.processor.type) ? e.processor.type : ml, O = {
1958
1958
  list: l,
1959
1959
  named: c,
1960
1960
  plural: r,
@@ -1969,7 +1969,7 @@ function El(e = {}) {
1969
1969
  return L ? g(L)(C, b) : C;
1970
1970
  },
1971
1971
  message: m,
1972
- type: P,
1972
+ type: R,
1973
1973
  interpolate: I,
1974
1974
  normalize: p,
1975
1975
  values: te(W(), o, i)
@@ -1978,14 +1978,14 @@ function El(e = {}) {
1978
1978
  }
1979
1979
  const jn = () => "", pe = (e) => G(e);
1980
1980
  function Jn(e, ...t) {
1981
- const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, P = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || P != null && (A(P) || G(P)), O = fn(e, c);
1981
+ const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, R = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = fn(e, c);
1982
1982
  p && vl(c);
1983
1983
  let [d, _, y] = I ? [
1984
1984
  i,
1985
1985
  O,
1986
1986
  l[O] || W()
1987
1987
  ] : Cs(e, i, O, o, g, m), E = d, b = i;
1988
- if (!I && !(A(E) || he(E) || pe(E)) && S && (E = P, b = E), !I && (!(A(E) || he(E) || pe(E)) || !A(_)))
1988
+ if (!I && !(A(E) || he(E) || pe(E)) && S && (E = R, b = E), !I && (!(A(E) || he(E) || pe(E)) || !A(_)))
1989
1989
  return s ? ra : i;
1990
1990
  if (process.env.NODE_ENV !== "production" && A(E) && e.messageCompiler == null)
1991
1991
  return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
@@ -2016,7 +2016,7 @@ function vl(e) {
2016
2016
  }
2017
2017
  function Cs(e, t, a, n, s, r) {
2018
2018
  const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, n, a);
2019
- let g = W(), p, I = null, P = a, S = null;
2019
+ let g = W(), p, I = null, R = a, S = null;
2020
2020
  const O = "translate";
2021
2021
  for (let d = 0; d < m.length; d++) {
2022
2022
  if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !Rs(a, p) && oa(s, t) && l(Je(ce.FALLBACK_TO_TRANSLATE, {
@@ -2027,7 +2027,7 @@ function Cs(e, t, a, n, s, r) {
2027
2027
  b && b.emit("fallback", {
2028
2028
  type: O,
2029
2029
  key: t,
2030
- from: P,
2030
+ from: R,
2031
2031
  to: S,
2032
2032
  groupId: `${O}:${t}`
2033
2033
  });
@@ -2057,7 +2057,7 @@ function Cs(e, t, a, n, s, r) {
2057
2057
  );
2058
2058
  b !== t && (I = b);
2059
2059
  }
2060
- P = S;
2060
+ R = S;
2061
2061
  }
2062
2062
  return [I, p, g];
2063
2063
  }
@@ -2140,9 +2140,9 @@ function Nl(e, t, a, n) {
2140
2140
  locale: t,
2141
2141
  modifiers: s,
2142
2142
  pluralRules: r,
2143
- messages: (I, P) => {
2143
+ messages: (I, R) => {
2144
2144
  let S = o(a, I);
2145
- if (S == null && (m || P)) {
2145
+ if (S == null && (m || R)) {
2146
2146
  const [, , O] = Cs(
2147
2147
  m || e,
2148
2148
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
@@ -2422,7 +2422,7 @@ const Ul = /* @__NO_SIDE_EFFECTS__ */ () => {
2422
2422
  return e && (t = Vs(e)[Xn]) ? { [Xn]: t } : null;
2423
2423
  };
2424
2424
  function pn(e = {}) {
2425
- const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? R : ke;
2425
+ const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : ke;
2426
2426
  let o = x(e.inheritLocale) ? e.inheritLocale : !0;
2427
2427
  const l = r(
2428
2428
  // prettier-ignore
@@ -2431,7 +2431,7 @@ function pn(e = {}) {
2431
2431
  // prettier-ignore
2432
2432
  t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
2433
2433
  ), c = r(mn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
2434
- let p = t ? t.missingWarn : x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? Zn(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
2434
+ let p = t ? t.missingWarn : x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? Zn(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
2435
2435
  const b = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
2436
2436
  let L = e.pluralRules || t && t.pluralRules, v;
2437
2437
  v = (() => {
@@ -2505,19 +2505,19 @@ function pn(e = {}) {
2505
2505
  if (H !== "translate exists" && // for not `te` (e.g `t`)
2506
2506
  ee(ze) && ze === ra || H === "translate exists" && !ze) {
2507
2507
  const [He, fr] = T();
2508
- if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H, fr) && (P && (oa(I, He) || Ps(p, He)) && Le(it(_e.FALLBACK_TO_ROOT, {
2508
+ if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H, fr) && (R && (oa(I, He) || Ps(p, He)) && Le(it(_e.FALLBACK_TO_ROOT, {
2509
2509
  key: He,
2510
2510
  type: H
2511
2511
  })), process.env.NODE_ENV !== "production")) {
2512
2512
  const { __v_emitter: Nn } = v;
2513
- Nn && P && Nn.emit("fallback", {
2513
+ Nn && R && Nn.emit("fallback", {
2514
2514
  type: H,
2515
2515
  key: He,
2516
2516
  to: "global",
2517
2517
  groupId: `${H}:${He}`
2518
2518
  });
2519
2519
  }
2520
- return t && P ? z(t) : $e(He);
2520
+ return t && R ? z(t) : $e(He);
2521
2521
  } else {
2522
2522
  if ($t(ze))
2523
2523
  return ze;
@@ -2671,10 +2671,10 @@ function pn(e = {}) {
2671
2671
  I = h, v.fallbackWarn = I;
2672
2672
  },
2673
2673
  get fallbackRoot() {
2674
- return P;
2674
+ return R;
2675
2675
  },
2676
2676
  set fallbackRoot(h) {
2677
- P = h;
2677
+ R = h;
2678
2678
  },
2679
2679
  get fallbackFormat() {
2680
2680
  return S;
@@ -2972,19 +2972,19 @@ function Xl(e, t) {
2972
2972
  }
2973
2973
  function ql(e) {
2974
2974
  const t = A(e.locale) ? e.locale : Tt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || ot(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || ot(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = x(e.sync) ? e.sync : !0;
2975
- let P = e.messages;
2975
+ let R = e.messages;
2976
2976
  if (F(e.sharedMessages)) {
2977
2977
  const b = e.sharedMessages;
2978
- P = Object.keys(b).reduce((v, C) => {
2978
+ R = Object.keys(b).reduce((v, C) => {
2979
2979
  const M = v[C] || (v[C] = {});
2980
2980
  return te(M, b[C]), v;
2981
- }, P || {});
2981
+ }, R || {});
2982
2982
  }
2983
2983
  const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats, y = e.numberFormats, E = e.flatJson;
2984
2984
  return {
2985
2985
  locale: t,
2986
2986
  fallbackLocale: a,
2987
- messages: P,
2987
+ messages: R,
2988
2988
  flatJson: E,
2989
2989
  datetimeFormats: _,
2990
2990
  numberFormats: y,
@@ -3306,7 +3306,7 @@ function Ys(e, t, a, n) {
3306
3306
  const i = n(e.value, o, l);
3307
3307
  let c = [o.key];
3308
3308
  J(i) ? c = i.map((p, I) => {
3309
- const P = s[p.type], S = P ? P({ [p.type]: p.value, index: I, parts: i }) : [p.value];
3309
+ const R = s[p.type], S = R ? R({ [p.type]: p.value, index: I, parts: i }) : [p.value];
3310
3310
  return ti(S) && (S[0].key = `${p.type}-${I}`), S;
3311
3311
  }) : A(i) && (c = [i]);
3312
3312
  const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ks();
@@ -3428,9 +3428,9 @@ function li(e = {}) {
3428
3428
  }
3429
3429
  let I = null;
3430
3430
  !t && a && (I = gi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && ri(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(zl(r, r.__composer, m));
3431
- const P = g.unmount;
3431
+ const R = g.unmount;
3432
3432
  if (g.unmount = () => {
3433
- I && I(), m.dispose(), P();
3433
+ I && I(), m.dispose(), R();
3434
3434
  }, process.env.NODE_ENV !== "production") {
3435
3435
  if (!await $l(g, m))
3436
3436
  throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
@@ -3648,7 +3648,8 @@ const Ei = {
3648
3648
  reset: "重置",
3649
3649
  more: "更多",
3650
3650
  moreActions: "更多操作",
3651
- uploadSave: "上传保存"
3651
+ uploadSave: "上传保存",
3652
+ dataLoading: "数据加载中..."
3652
3653
  },
3653
3654
  // 组件相关
3654
3655
  components: {
@@ -4088,7 +4089,7 @@ function bc() {
4088
4089
  key: e
4089
4090
  }));
4090
4091
  }
4091
- function w(e, t) {
4092
+ function P(e, t) {
4092
4093
  try {
4093
4094
  const a = me.global.t(e, t);
4094
4095
  if (a === e) {
@@ -4145,46 +4146,46 @@ ne($, "setOptions", (t, a) => {
4145
4146
  ne($, "initOptions", () => {
4146
4147
  $.initialized || ($.EnableDisable = [
4147
4148
  {
4148
- label: w("webui.common.enable"),
4149
- text: `✅ ${w("webui.common.enable")}`,
4149
+ label: P("webui.common.enable"),
4150
+ text: `✅ ${P("webui.common.enable")}`,
4150
4151
  value: 1
4151
4152
  },
4152
4153
  {
4153
- label: w("webui.common.disable"),
4154
- text: `🚫 ${w("webui.common.disable")}`,
4154
+ label: P("webui.common.disable"),
4155
+ text: `🚫 ${P("webui.common.disable")}`,
4155
4156
  value: 0
4156
4157
  }
4157
4158
  ], $.SuccessResult = [
4158
4159
  {
4159
- label: w("webui.common.success"),
4160
- text: `✅ ${w("webui.common.success")}`,
4160
+ label: P("webui.common.success"),
4161
+ text: `✅ ${P("webui.common.success")}`,
4161
4162
  value: 1
4162
4163
  },
4163
4164
  {
4164
- label: w("webui.common.failed"),
4165
- text: `🚫 ${w("webui.common.failed")}`,
4165
+ label: P("webui.common.failed"),
4166
+ text: `🚫 ${P("webui.common.failed")}`,
4166
4167
  value: 0
4167
4168
  }
4168
4169
  ], $.YesNo = [
4169
4170
  {
4170
- label: w("webui.common.yes"),
4171
- text: `✅ ${w("webui.common.yes")}`,
4171
+ label: P("webui.common.yes"),
4172
+ text: `✅ ${P("webui.common.yes")}`,
4172
4173
  value: 1
4173
4174
  },
4174
4175
  {
4175
- label: w("webui.common.no"),
4176
- text: `❎ ${w("webui.common.no")}`,
4176
+ label: P("webui.common.no"),
4177
+ text: `❎ ${P("webui.common.no")}`,
4177
4178
  value: 0
4178
4179
  }
4179
4180
  ], $.MaleFemale = [
4180
4181
  {
4181
- label: w("webui.common.male"),
4182
- text: `${w("webui.common.male")} 👨`,
4182
+ label: P("webui.common.male"),
4183
+ text: `${P("webui.common.male")} 👨`,
4183
4184
  value: "M"
4184
4185
  },
4185
4186
  {
4186
- label: w("webui.common.female"),
4187
- text: `${w("webui.common.female")} 👩`,
4187
+ label: P("webui.common.female"),
4188
+ text: `${P("webui.common.female")} 👩`,
4188
4189
  value: "F"
4189
4190
  }
4190
4191
  ], $.setOptions("EnableDisable", $.EnableDisable), $.setOptions("SuccessResult", $.SuccessResult), $.setOptions("YesNo", $.YesNo), $.setOptions("MaleFemale", $.MaleFemale), $.initialized = !0);
@@ -4240,7 +4241,7 @@ const ia = {
4240
4241
  }
4241
4242
  };
4242
4243
  function yc() {
4243
- Xs = w("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = w("webui.stores.userInfo.exiting"), qs.host.loadingText = w("webui.stores.hostInfo.loading");
4244
+ Xs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), qs.host.loadingText = P("webui.stores.hostInfo.loading");
4244
4245
  }
4245
4246
  const Ct = {
4246
4247
  /**
@@ -4345,7 +4346,7 @@ const Ct = {
4345
4346
  }
4346
4347
  }
4347
4348
  return !1;
4348
- }, yt = R(null);
4349
+ }, yt = w(null);
4349
4350
  ca.beforeEach((e, t, a) => {
4350
4351
  var l;
4351
4352
  const n = e;
@@ -4463,13 +4464,13 @@ class ae {
4463
4464
  */
4464
4465
  static async callMainAppMethod(t, a) {
4465
4466
  if (!this.isInMicroApp())
4466
- throw new Error(w("webui.utils.microOpenapis.interfaceNotConfigured", { method: t }));
4467
+ throw new Error(P("webui.utils.microOpenapis.interfaceNotConfigured", { method: t }));
4467
4468
  const n = `${t}_${JSON.stringify(a)}`;
4468
4469
  if (this.pendingRequests.has(n))
4469
4470
  return this.pendingRequests.get(n);
4470
4471
  const s = ++this.messageId, r = new Promise((l, i) => {
4471
4472
  this.callbacks.set(s, { resolve: l, reject: i }), setTimeout(() => {
4472
- this.callbacks.has(s) && (this.callbacks.delete(s), this.pendingRequests.delete(n), i(new Error(w("webui.utils.microOpenapis.apiCallTimeout", { method: t }))));
4473
+ this.callbacks.has(s) && (this.callbacks.delete(s), this.pendingRequests.delete(n), i(new Error(P("webui.utils.microOpenapis.apiCallTimeout", { method: t }))));
4473
4474
  }, 1e4);
4474
4475
  });
4475
4476
  this.pendingRequests.set(n, r);
@@ -4494,7 +4495,7 @@ class ae {
4494
4495
  static handleResponseData(t) {
4495
4496
  if (t && t.type === "API_RESPONSE" && typeof t.id == "number") {
4496
4497
  const { id: a, success: n, result: s, error: r } = t, o = this.callbacks.get(a);
4497
- o && (this.callbacks.delete(a), n ? o.resolve(s) : o.reject(new Error(r || w("webui.utils.formCsv.unknownError"))));
4498
+ o && (this.callbacks.delete(a), n ? o.resolve(s) : o.reject(new Error(r || P("webui.utils.formCsv.unknownError"))));
4498
4499
  }
4499
4500
  }
4500
4501
  /**
@@ -4635,7 +4636,7 @@ const It = {
4635
4636
  },
4636
4637
  async toDefaultApp(e) {
4637
4638
  if (this.appList.length === 0 && await this.loadAppList(), this.appList.length === 0) {
4638
- se.error(w("webui.stores.appInfo.loadAppListFailed"));
4639
+ se.error(P("webui.stores.appInfo.loadAppListFailed"));
4639
4640
  return;
4640
4641
  }
4641
4642
  let t = "";
@@ -4803,7 +4804,7 @@ const It = {
4803
4804
  Ie().logout(!1);
4804
4805
  return;
4805
4806
  }
4806
- return se.error(w("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
4807
+ return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
4807
4808
  });
4808
4809
  }, Ri = () => {
4809
4810
  let e = {
@@ -4818,7 +4819,7 @@ const It = {
4818
4819
  } catch (t) {
4819
4820
  return console.error(Xs, t), !1;
4820
4821
  }
4821
- }, de = R(""), vt = R(null), Ie = kt("userInfo", {
4822
+ }, de = w(""), vt = w(null), Ie = kt("userInfo", {
4822
4823
  state: () => ({
4823
4824
  isLogin: !1,
4824
4825
  userInfo: {
@@ -4857,7 +4858,7 @@ const It = {
4857
4858
  ...s.UserInfo
4858
4859
  }, de.value = s.UserInfo.UserLevel;
4859
4860
  else {
4860
- se.error(w("webui.stores.userInfo.userInfoParseFailed"));
4861
+ se.error(P("webui.stores.userInfo.userInfoParseFailed"));
4861
4862
  return;
4862
4863
  }
4863
4864
  t && Fe().toDefaultApp();
@@ -4975,7 +4976,7 @@ const It = {
4975
4976
  console.error("调用登出接口失败", t);
4976
4977
  } finally {
4977
4978
  await this.clean(), e && setTimeout(async () => {
4978
- se.success(w("webui.stores.userInfo.logoutSuccess"));
4979
+ se.success(P("webui.stores.userInfo.logoutSuccess"));
4979
4980
  }, 1e3), setTimeout(async () => {
4980
4981
  Fe().logout();
4981
4982
  }, 2e3);
@@ -5005,7 +5006,7 @@ const It = {
5005
5006
  }, da = (e, t) => {
5006
5007
  const a = e.page, n = t.url;
5007
5008
  if (!n || !n.url) {
5008
- const r = w("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
5009
+ const r = P("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
5009
5010
  return console.warn(r), Promise.reject(new Error(r));
5010
5011
  }
5011
5012
  n.api || (n.api = a.api), n.authorize === void 0 && (n.authorize = a.authorize);
@@ -5018,30 +5019,30 @@ const It = {
5018
5019
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
5019
5020
  const a = fa(e, t);
5020
5021
  return t.url = a, da(e, t);
5021
- }, Ic = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || w("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(w("webui.utils.data.executeSuccess"))), a))), tr = (e, t = {}) => {
5022
+ }, Ic = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || P("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.executeSuccess"))), a))), tr = (e, t = {}) => {
5022
5023
  const a = t.primaryKey || "Id";
5023
5024
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
5024
- return se.error(w("webui.utils.data.noSaveData")), Promise.resolve(null);
5025
+ return se.error(P("webui.utils.data.noSaveData")), Promise.resolve(null);
5025
5026
  const n = {
5026
5027
  ...t,
5027
5028
  urlKey: t.urlKey || "save",
5028
- loadingText: t.loadingText === !1 ? !1 : t.loadingText || w("webui.utils.data.savingData")
5029
+ loadingText: t.loadingText === !1 ? !1 : t.loadingText || P("webui.utils.data.savingData")
5029
5030
  };
5030
5031
  n.params.Query[a] = n.params.Data[a];
5031
5032
  const s = fa(e, n);
5032
- return n.url = s, da(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(w("webui.utils.data.saveSuccess"))), r));
5033
+ return n.url = s, da(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.saveSuccess"))), r));
5033
5034
  }, ki = (e, t, a = {}) => {
5034
5035
  const n = a.primaryKey || "Id";
5035
5036
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
5036
5037
  const s = {
5037
5038
  ...a,
5038
5039
  urlKey: "delete",
5039
- loadingText: a.loadingText === !1 ? !1 : a.loadingText || w("webui.utils.data.deletingData")
5040
+ loadingText: a.loadingText === !1 ? !1 : a.loadingText || P("webui.utils.data.deletingData")
5040
5041
  };
5041
5042
  if (Array.isArray(t) ? s.params.Query[n] = t : s.params.Query[n] = t[n], ve(s.params.Query) || ve(s.params.Query[n]))
5042
- return se.error(w("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
5043
+ return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
5043
5044
  const r = fa(e, s);
5044
- return s.url = r, da(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(w("webui.utils.data.deleteSuccess"))), o));
5045
+ return s.url = r, da(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(P("webui.utils.data.deleteSuccess"))), o));
5045
5046
  }, Di = (e, t) => En(e, {
5046
5047
  urlKey: "tree",
5047
5048
  params: {},
@@ -5103,28 +5104,28 @@ const It = {
5103
5104
  let ct;
5104
5105
  const Sc = (e) => {
5105
5106
  ct = new aa({}), ct.messages({
5106
- required: "${label}" + w("webui.utils.formValidate.required"),
5107
+ required: "${label}" + P("webui.utils.formValidate.required"),
5107
5108
  types: {
5108
- number: "${label}" + w("webui.utils.formValidate.numberType")
5109
+ number: "${label}" + P("webui.utils.formValidate.numberType")
5109
5110
  },
5110
- enum: "${label}" + w("webui.utils.formValidate.enum"),
5111
+ enum: "${label}" + P("webui.utils.formValidate.enum"),
5111
5112
  string: {
5112
- len: "${label}" + w("webui.utils.formValidate.stringLen"),
5113
- min: "${label}" + w("webui.utils.formValidate.stringMin"),
5114
- max: "${label}" + w("webui.utils.formValidate.stringMax"),
5115
- range: "${label}" + w("webui.utils.formValidate.stringRange")
5113
+ len: "${label}" + P("webui.utils.formValidate.stringLen"),
5114
+ min: "${label}" + P("webui.utils.formValidate.stringMin"),
5115
+ max: "${label}" + P("webui.utils.formValidate.stringMax"),
5116
+ range: "${label}" + P("webui.utils.formValidate.stringRange")
5116
5117
  },
5117
5118
  number: {
5118
- len: "${label}" + w("webui.utils.formValidate.numberLen"),
5119
- min: "${label}" + w("webui.utils.formValidate.numberMin"),
5120
- max: "${label}" + w("webui.utils.formValidate.numberMax"),
5121
- range: "${label}" + w("webui.utils.formValidate.numberRange")
5119
+ len: "${label}" + P("webui.utils.formValidate.numberLen"),
5120
+ min: "${label}" + P("webui.utils.formValidate.numberMin"),
5121
+ max: "${label}" + P("webui.utils.formValidate.numberMax"),
5122
+ range: "${label}" + P("webui.utils.formValidate.numberRange")
5122
5123
  },
5123
5124
  array: {
5124
- len: "${label}" + w("webui.utils.formValidate.arrayLen"),
5125
- min: "${label}" + w("webui.utils.formValidate.arrayMin"),
5126
- max: "${label}" + w("webui.utils.formValidate.arrayMax"),
5127
- range: "${label}" + w("webui.utils.formValidate.arrayRange")
5125
+ len: "${label}" + P("webui.utils.formValidate.arrayLen"),
5126
+ min: "${label}" + P("webui.utils.formValidate.arrayMin"),
5127
+ max: "${label}" + P("webui.utils.formValidate.arrayMax"),
5128
+ range: "${label}" + P("webui.utils.formValidate.arrayRange")
5128
5129
  },
5129
5130
  ...e
5130
5131
  });
@@ -5164,7 +5165,7 @@ const Sc = (e) => {
5164
5165
  c = c.replace(/\$\{label\}/g, ""), c && i.push(c);
5165
5166
  }
5166
5167
  } catch (c) {
5167
- console.error(w("webui.utils.formValidate.formatValidationError") + ":", c);
5168
+ console.error(P("webui.utils.formValidate.formatValidationError") + ":", c);
5168
5169
  }
5169
5170
  };
5170
5171
  return Object.keys(e).forEach((r) => {
@@ -5174,7 +5175,7 @@ const Sc = (e) => {
5174
5175
  c && typeof c == "object" && n(r, c, l);
5175
5176
  }), o && typeof o == "object" && "fields" in o;
5176
5177
  } catch (c) {
5177
- console.error(w("webui.utils.formValidate.processValidationError") + ":", c);
5178
+ console.error(P("webui.utils.formValidate.processValidationError") + ":", c);
5178
5179
  }
5179
5180
  const i = Array.from(new Set(l));
5180
5181
  r && i.length > 0 && t.push({
@@ -5193,7 +5194,7 @@ const Sc = (e) => {
5193
5194
  }).catch(({ fields: n }) => n)), vn = (e) => {
5194
5195
  e.ruleResults.value = void 0;
5195
5196
  }, ut = () => {
5196
- const e = at(Re.EditorControl, void 0), t = R(at(Re.LabelText, "")), a = R(at(Re.RuleKey, "")), n = at(Re.ErrInfo, void 0);
5197
+ const e = at(Re.EditorControl, void 0), t = w(at(Re.LabelText, "")), a = w(at(Re.RuleKey, "")), n = at(Re.ErrInfo, void 0);
5197
5198
  return {
5198
5199
  editorCtrl: e,
5199
5200
  labelText: t,
@@ -5201,7 +5202,7 @@ const Sc = (e) => {
5201
5202
  errInfo: n
5202
5203
  };
5203
5204
  }, Fi = (e, t) => {
5204
- let a = R({
5205
+ let a = w({
5205
5206
  msg: "",
5206
5207
  errClass: ""
5207
5208
  });
@@ -5226,7 +5227,7 @@ const Sc = (e) => {
5226
5227
  { deep: !0 }
5227
5228
  ), a;
5228
5229
  }, Mi = (e, t, a) => {
5229
- const n = R([]), s = R(""), r = R("");
5230
+ const n = w([]), s = w(""), r = w("");
5230
5231
  if (!e.rule || !t || !a)
5231
5232
  return { msg: s, ruleErrors: n, errClass: r };
5232
5233
  e.rule.split("|").forEach((i) => {
@@ -5277,7 +5278,7 @@ const Sc = (e) => {
5277
5278
  if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
5278
5279
  return e.isFormSaving.value = !1, Promise.resolve();
5279
5280
  if (e.formRules.value && await Ft(e), e.ruleResults.value)
5280
- return se.error(w("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
5281
+ return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
5281
5282
  const a = e.formData.value;
5282
5283
  return tr(
5283
5284
  {
@@ -5299,7 +5300,7 @@ const Sc = (e) => {
5299
5300
  ).then((s) => {
5300
5301
  var r, o;
5301
5302
  if ((s == null ? void 0 : s.status) === ie.SUCCESS)
5302
- se.success(w("webui.utils.form.saveSuccess")), e.grid && (e.grid.reload.value = !0), e.afterSave && e.afterSave(s), e.autoClose !== !1 && (e.visible.value = !1);
5303
+ se.success(P("webui.utils.form.saveSuccess")), e.grid && (e.grid.reload.value = !0), e.afterSave && e.afterSave(s), e.autoClose !== !1 && (e.visible.value = !1);
5303
5304
  else if (s != null && s.msg && ((r = s == null ? void 0 : s.msg) == null ? void 0 : r.indexOf("Duplicate entry")) > -1) {
5304
5305
  const l = (o = s == null ? void 0 : s.msg) == null ? void 0 : o.match(/Duplicate entry '([^']+)' for key '([^']+)'/);
5305
5306
  if (l && l.length > 2 && l[1] && l[2]) {
@@ -5311,16 +5312,16 @@ const Sc = (e) => {
5311
5312
  {
5312
5313
  field: p,
5313
5314
  fieldValue: i,
5314
- message: w("webui.utils.form.dataDuplicate")
5315
+ message: P("webui.utils.form.dataDuplicate")
5315
5316
  }
5316
5317
  ]);
5317
5318
  }), Object.keys(g).length > 0 && (console.error("保存失败!", g), e.ruleResults.value = g);
5318
5319
  }
5319
- se.error(w("webui.utils.form.dataAlreadyExists").replace("{0}", i));
5320
- } else se.error((s == null ? void 0 : s.msg) ?? w("webui.utils.form.saveFailed"));
5320
+ se.error(P("webui.utils.form.dataAlreadyExists").replace("{0}", i));
5321
+ } else se.error((s == null ? void 0 : s.msg) ?? P("webui.utils.form.saveFailed"));
5321
5322
  e.afterSave && e.afterSave(s);
5322
5323
  } else
5323
- se.error((s == null ? void 0 : s.msg) ?? w("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
5324
+ se.error((s == null ? void 0 : s.msg) ?? P("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
5324
5325
  });
5325
5326
  }, kc = async (e) => {
5326
5327
  const t = e.page, a = e.grid;
@@ -5360,6 +5361,7 @@ const Sc = (e) => {
5360
5361
  });
5361
5362
  return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
5362
5363
  }, xi = (e) => sr(e).then((t) => t.rows), sr = (e) => {
5364
+ var a, n;
5363
5365
  e.gridQuery || (e.gridQuery = {});
5364
5366
  const t = e.remotePage ? "find" : "list";
5365
5367
  return En(e, {
@@ -5367,17 +5369,18 @@ const Sc = (e) => {
5367
5369
  url: e.gridUrl,
5368
5370
  params: e.gridQuery,
5369
5371
  loadingState: e.isGridLoading,
5370
- processParams: (a) => {
5371
- var s;
5372
- return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Dt((s = e.gridUrl) == null ? void 0 : s.params, a, e.gridQuery);
5372
+ loadingText: ((a = e.gridUrl) == null ? void 0 : a.loadingText) === !1 ? !1 : ((n = e.gridUrl) == null ? void 0 : n.loadingText) || P("webui.common.dataLoading"),
5373
+ processParams: (s) => {
5374
+ var o;
5375
+ return e.remotePage && (s.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Dt((o = e.gridUrl) == null ? void 0 : o.params, s, e.gridQuery);
5373
5376
  }
5374
- }).then((a) => {
5375
- if ((a == null ? void 0 : a.status) === ie.SUCCESS) {
5376
- let n = a.data;
5377
- return n.rows ? (e.tableData.value = n.rows, e.total.value = n.total) : (e.tableData.value = a.data, e.total.value = a.data.length, n = {
5377
+ }).then((s) => {
5378
+ if ((s == null ? void 0 : s.status) === ie.SUCCESS) {
5379
+ let r = s.data;
5380
+ return r.rows ? (e.tableData.value = r.rows, e.total.value = r.total) : (e.tableData.value = s.data, e.total.value = s.data.length, r = {
5378
5381
  total: e.total.value,
5379
- rows: a.data
5380
- }), e.afterLoad && e.afterLoad(n), n;
5382
+ rows: s.data
5383
+ }), e.afterLoad && e.afterLoad(r), r;
5381
5384
  }
5382
5385
  return e.tableData.value = [], e.total.value = 0, e.afterLoad && e.afterLoad({
5383
5386
  total: 0,
@@ -5486,8 +5489,8 @@ const nt = new $i(), mt = (e, t, a) => {
5486
5489
  else if (t.url && t.url.url)
5487
5490
  e && or(t.url, t, t.params ?? {});
5488
5491
  else {
5489
- const n = R(at(Re.LabelText, ""));
5490
- se.error("`" + n.value + "` " + w("webui.utils.options.notConfigured"), {
5492
+ const n = w(at(Re.LabelText, ""));
5493
+ se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
5491
5494
  duration: 5e3
5492
5495
  });
5493
5496
  }
@@ -5499,7 +5502,7 @@ const nt = new $i(), mt = (e, t, a) => {
5499
5502
  t = kr(n, t);
5500
5503
  }
5501
5504
  t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
5502
- label: w("webui.components.form.radio.all"),
5505
+ label: P("webui.components.form.radio.all"),
5503
5506
  value: e.allValue ?? void 0
5504
5507
  }), e.options.value = t;
5505
5508
  }, Hi = (e, t, a) => {
@@ -5636,12 +5639,12 @@ const nt = new $i(), mt = (e, t, a) => {
5636
5639
  primaryKey: "Id",
5637
5640
  statusKey: "Enabled",
5638
5641
  remotePage: !0,
5639
- tableSize: R("small"),
5640
- selectable: R(!1),
5641
- searchBar: R(!0),
5642
- pageSize: R(10),
5643
- rowExpand: R(!1),
5644
- buttons: R(["New"]),
5642
+ tableSize: w("small"),
5643
+ selectable: w(!1),
5644
+ searchBar: w(!0),
5645
+ pageSize: w(10),
5646
+ rowExpand: w(!1),
5647
+ buttons: w(["New"]),
5645
5648
  tools: ["Reload", "RowHeight", "TableHeadset"],
5646
5649
  operates: ["Edit", "Delete"]
5647
5650
  },
@@ -5686,42 +5689,42 @@ const nt = new $i(), mt = (e, t, a) => {
5686
5689
  ...Z.EditorOption,
5687
5690
  name: "",
5688
5691
  default: a ? JSON.parse(JSON.stringify(a)) : void 0,
5689
- visible: R(!1),
5692
+ visible: w(!1),
5690
5693
  page: t,
5691
- formData: R(a ? JSON.parse(JSON.stringify(a)) : void 0),
5692
- formRules: R(n),
5693
- ruleResults: R({}),
5694
- updateData: R(void 0),
5694
+ formData: w(a ? JSON.parse(JSON.stringify(a)) : void 0),
5695
+ formRules: w(n),
5696
+ ruleResults: w({}),
5697
+ updateData: w(void 0),
5695
5698
  saveUrl: e.urls.save,
5696
5699
  detailUrl: e.urls.detail,
5697
- isFormSaving: R(!1),
5698
- isFormLoading: R(!1)
5700
+ isFormSaving: w(!1),
5701
+ isFormLoading: w(!1)
5699
5702
  }
5700
5703
  }), Yi = (e, t, a) => {
5701
5704
  _a(e);
5702
5705
  const n = {
5703
5706
  ...Z.GridOption,
5704
- tableSize: R(Z.GridOption.tableSize.value),
5705
- selectable: R(Z.GridOption.selectable.value),
5706
- searchBar: R(Z.GridOption.searchBar.value),
5707
- pageSize: R(Z.GridOption.pageSize.value),
5708
- rowExpand: R(Z.GridOption.rowExpand.value),
5709
- buttons: R([...Z.GridOption.buttons.value]),
5707
+ tableSize: w(Z.GridOption.tableSize.value),
5708
+ selectable: w(Z.GridOption.selectable.value),
5709
+ searchBar: w(Z.GridOption.searchBar.value),
5710
+ pageSize: w(Z.GridOption.pageSize.value),
5711
+ rowExpand: w(Z.GridOption.rowExpand.value),
5712
+ buttons: w([...Z.GridOption.buttons.value]),
5710
5713
  tools: [...Z.GridOption.tools],
5711
5714
  operates: [...Z.GridOption.operates],
5712
- columns: R(a || []),
5713
- reload: R(!1),
5714
- pageNo: R(1),
5715
- total: R(0),
5715
+ columns: w(a || []),
5716
+ reload: w(!1),
5717
+ pageNo: w(1),
5718
+ total: w(0),
5716
5719
  page: t,
5717
- selectKeys: R([]),
5718
- selectRows: R([]),
5719
- rowData: R(void 0),
5720
+ selectKeys: w([]),
5721
+ selectRows: w([]),
5722
+ rowData: w(void 0),
5720
5723
  gridQuery: {},
5721
5724
  tableData: ke(void 0),
5722
- expandRows: R({}),
5723
- isGridLoading: R(!1),
5724
- isGridSaving: R(!1),
5725
+ expandRows: w({}),
5726
+ isGridLoading: w(!1),
5727
+ isGridSaving: w(!1),
5725
5728
  gridUrl: e.urls.list || e.urls.find,
5726
5729
  updateUrl: e.urls.update,
5727
5730
  deleteUrl: e.urls.delete
@@ -5740,12 +5743,12 @@ const nt = new $i(), mt = (e, t, a) => {
5740
5743
  _a(e);
5741
5744
  const a = {
5742
5745
  ...Z.TreeOption,
5743
- reload: R(!1),
5746
+ reload: w(!1),
5744
5747
  page: t,
5745
- node: R(void 0),
5748
+ node: w(void 0),
5746
5749
  url: e.urls.tree,
5747
5750
  data: ke(void 0),
5748
- isTreeLoading: R(!1)
5751
+ isTreeLoading: w(!1)
5749
5752
  };
5750
5753
  return B(
5751
5754
  () => a.reload.value,
@@ -5761,13 +5764,13 @@ const nt = new $i(), mt = (e, t, a) => {
5761
5764
  const a = {
5762
5765
  ...Z.OptionOption,
5763
5766
  url: e,
5764
- reload: R(!1),
5767
+ reload: w(!1),
5765
5768
  optionQuery: {},
5766
5769
  data: ke((t == null ? void 0 : t.data) ?? []),
5767
- selected: R([]),
5768
- selectedOptions: R([]),
5769
- options: R((t == null ? void 0 : t.data) ?? []),
5770
- isOptionLoading: R(!1)
5770
+ selected: w([]),
5771
+ selectedOptions: w([]),
5772
+ options: w((t == null ? void 0 : t.data) ?? []),
5773
+ isOptionLoading: w(!1)
5771
5774
  };
5772
5775
  return B(
5773
5776
  () => a.reload.value,
@@ -5790,10 +5793,10 @@ const nt = new $i(), mt = (e, t, a) => {
5790
5793
  editorCtrl: s,
5791
5794
  gridCtrl: r
5792
5795
  };
5793
- }, Bi = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = R({}), Gc = Ge, Kc = (e) => {
5796
+ }, Bi = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = w({}), Gc = Ge, Kc = (e) => {
5794
5797
  var s;
5795
5798
  if (!e.iconUrl) return an;
5796
- const t = R(!0), a = R("");
5799
+ const t = w(!0), a = w("");
5797
5800
  let n = !0;
5798
5801
  return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) && ji(e, t).then(() => {
5799
5802
  Xi(e.iconUrl, e.monoColor || !1), t.value = !0;
@@ -5824,7 +5827,7 @@ const nt = new $i(), mt = (e, t, a) => {
5824
5827
  },
5825
5828
  emits: ["update:iconIndex"],
5826
5829
  setup(r, { emit: o }) {
5827
- const l = R(r.icon), i = R(0), c = () => {
5830
+ const l = w(r.icon), i = w(0), c = () => {
5828
5831
  r.icons && i.value++;
5829
5832
  };
5830
5833
  return B(
@@ -5887,7 +5890,7 @@ const nt = new $i(), mt = (e, t, a) => {
5887
5890
  try {
5888
5891
  const a = await fetch(e);
5889
5892
  if (!a.ok) {
5890
- se.error(w("webui.utils.iconLoader.networkError"));
5893
+ se.error(P("webui.utils.iconLoader.networkError"));
5891
5894
  return;
5892
5895
  }
5893
5896
  let n = await a.text();
@@ -5901,7 +5904,7 @@ const nt = new $i(), mt = (e, t, a) => {
5901
5904
  ir(n);
5902
5905
  return;
5903
5906
  } catch (a) {
5904
- return console.error(w("webui.utils.iconLoader.networkError") + ":", a), null;
5907
+ return console.error(P("webui.utils.iconLoader.networkError") + ":", a), null;
5905
5908
  }
5906
5909
  }, ir = (e) => {
5907
5910
  const t = document.createElement("script");
@@ -5985,14 +5988,14 @@ const nt = new $i(), mt = (e, t, a) => {
5985
5988
  continue;
5986
5989
  const I = p.path.split("/");
5987
5990
  I.unshift(...t);
5988
- const P = ur(p.children || [], I, a, n), S = {
5991
+ const R = ur(p.children || [], I, a, n), S = {
5989
5992
  key: I.join("/"),
5990
5993
  label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
5991
5994
  title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
5992
5995
  icon: p.icon ? ye(a, { ...n, icon: p.icon }) : void 0,
5993
- children: P.length > 0 ? P : void 0
5996
+ children: R.length > 0 ? R : void 0
5994
5997
  };
5995
- (P.length > 0 || !p.children) && s.push(S);
5998
+ (R.length > 0 || !p.children) && s.push(S);
5996
5999
  }
5997
6000
  return s;
5998
6001
  }, us = Er([]), jc = () => {
@@ -6118,7 +6121,7 @@ const nt = new $i(), mt = (e, t, a) => {
6118
6121
  setup(e, { emit: t }) {
6119
6122
  const a = e, n = ut(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
6120
6123
  r.inputFactory = ke(n);
6121
- const o = R([]);
6124
+ const o = w([]);
6122
6125
  r && B(
6123
6126
  () => r.options.value,
6124
6127
  (I) => {
@@ -6144,7 +6147,7 @@ const nt = new $i(), mt = (e, t, a) => {
6144
6147
  r && mt(r.autoload, r, a);
6145
6148
  }), ft(() => {
6146
6149
  r && Mt(r, a);
6147
- }), (I, P) => {
6150
+ }), (I, R) => {
6148
6151
  var S;
6149
6152
  return o.value.length === 2 ? (le(), zt(X(br), wt({
6150
6153
  key: 0,
@@ -6189,7 +6192,7 @@ const nt = new $i(), mt = (e, t, a) => {
6189
6192
  value: "Id",
6190
6193
  ...o == null ? void 0 : o.fieldMap
6191
6194
  };
6192
- const l = R(void 0);
6195
+ const l = w(void 0);
6193
6196
  B(
6194
6197
  () => a.value,
6195
6198
  () => {
@@ -6204,7 +6207,7 @@ const nt = new $i(), mt = (e, t, a) => {
6204
6207
  );
6205
6208
  const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
6206
6209
  s.inputEmit = g;
6207
- const p = R((o == null ? void 0 : o.options.value) || []);
6210
+ const p = w((o == null ? void 0 : o.options.value) || []);
6208
6211
  o && B(
6209
6212
  () => o.options.value,
6210
6213
  (S) => {
@@ -6220,7 +6223,7 @@ const nt = new $i(), mt = (e, t, a) => {
6220
6223
  }
6221
6224
  };
6222
6225
  o.params = Dt(o.params, d), o && mt(!0, o, a);
6223
- }, P = (S) => {
6226
+ }, R = (S) => {
6224
6227
  const O = pa(o, a, S);
6225
6228
  g("update:value", S), g("select", S);
6226
6229
  const d = ma(O);
@@ -6239,7 +6242,7 @@ const nt = new $i(), mt = (e, t, a) => {
6239
6242
  class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
6240
6243
  options: p.value,
6241
6244
  onSearch: I,
6242
- onSelect: P
6245
+ onSelect: R
6243
6246
  }, X(n), { "allow-clear": !1 }), {
6244
6247
  option: Me(({ label: _ }) => [
6245
6248
  ta(Be(_), 1)
@@ -6279,18 +6282,18 @@ const nt = new $i(), mt = (e, t, a) => {
6279
6282
  },
6280
6283
  emits: ["change", "update:labels"],
6281
6284
  setup(e, { emit: t }) {
6282
- var p, I, P;
6285
+ var p, I, R;
6283
6286
  const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6284
6287
  o.inputFactory = ke(s);
6285
- const l = R({
6288
+ const l = w({
6286
6289
  ...o == null ? void 0 : o.url,
6287
6290
  url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
6288
6291
  fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
6289
- params: (o == null ? void 0 : o.params) || ((P = o == null ? void 0 : o.url) == null ? void 0 : P.params),
6292
+ params: (o == null ? void 0 : o.params) || ((R = o == null ? void 0 : o.url) == null ? void 0 : R.params),
6290
6293
  loadingText: !1
6291
6294
  }), { errInfo: i } = s, c = t;
6292
6295
  s.inputEmit = c;
6293
- const m = R((o == null ? void 0 : o.options.value) || []);
6296
+ const m = w((o == null ? void 0 : o.options.value) || []);
6294
6297
  o && B(
6295
6298
  () => o.options.value,
6296
6299
  (S) => {
@@ -6357,7 +6360,7 @@ const nt = new $i(), mt = (e, t, a) => {
6357
6360
  },
6358
6361
  nodata: {
6359
6362
  type: String,
6360
- default: w("webui.components.form.radio.noData")
6363
+ default: P("webui.components.form.radio.noData")
6361
6364
  },
6362
6365
  /**
6363
6366
  * 换行数量
@@ -6368,16 +6371,16 @@ const nt = new $i(), mt = (e, t, a) => {
6368
6371
  },
6369
6372
  emits: ["change", "update:value", "update:labels"],
6370
6373
  setup(e, { emit: t }) {
6371
- var P, S, O;
6374
+ var R, S, O;
6372
6375
  const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6373
6376
  o.inputFactory = ke(s);
6374
- const l = R({
6377
+ const l = w({
6375
6378
  ...o == null ? void 0 : o.url,
6376
- url: ((P = o == null ? void 0 : o.url) == null ? void 0 : P.url) || "",
6379
+ url: ((R = o == null ? void 0 : o.url) == null ? void 0 : R.url) || "",
6377
6380
  fieldMap: (o == null ? void 0 : o.fieldMap) || ((S = o == null ? void 0 : o.url) == null ? void 0 : S.fieldMap),
6378
6381
  params: (o == null ? void 0 : o.params) || ((O = o == null ? void 0 : o.url) == null ? void 0 : O.params),
6379
6382
  loadingText: !1
6380
- }), i = R(a.value), { errInfo: c } = s, m = R((o == null ? void 0 : o.options.value) || []), g = t;
6383
+ }), i = w(a.value), { errInfo: c } = s, m = w((o == null ? void 0 : o.options.value) || []), g = t;
6381
6384
  s.inputEmit = g, o && B(
6382
6385
  () => o.options.value,
6383
6386
  (d) => {
@@ -6494,19 +6497,19 @@ const nt = new $i(), mt = (e, t, a) => {
6494
6497
  const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ut(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = Ut(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
6495
6498
  c.inputFactory = ke(s);
6496
6499
  const m = Zt();
6497
- c.autoload = a.autoload ?? c.autoload, console.log("props.autoload: ", a.autoload), console.log("optionCtrl.autoload: ", c.autoload);
6498
- const g = R({
6500
+ c.autoload = a.autoload ?? c.autoload;
6501
+ const g = w({
6499
6502
  ...c == null ? void 0 : c.url,
6500
6503
  url: ((_ = c == null ? void 0 : c.url) == null ? void 0 : _.url) || "",
6501
6504
  fieldMap: (c == null ? void 0 : c.fieldMap) || ((y = c == null ? void 0 : c.url) == null ? void 0 : y.fieldMap),
6502
6505
  params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
6503
6506
  loadingText: !1
6504
- }), p = R(m.placeholder), I = R(c == null ? void 0 : c.selected.value), P = t;
6505
- s.inputEmit = P;
6507
+ }), p = w(m.placeholder), I = w(c == null ? void 0 : c.selected.value), R = t;
6508
+ s.inputEmit = R;
6506
6509
  const S = (b) => {
6507
6510
  const L = pa(c, a, b), v = ma(L);
6508
- I.value = b, P("update:labels", v), P("update:label", v.join(";")), P("change", b, L), o != null && o.value.errClass && r && Ft(r);
6509
- }, O = R((c == null ? void 0 : c.options.value) || []), d = (b) => {
6511
+ I.value = b, R("update:labels", v), R("update:label", v.join(";")), R("change", b, L), o != null && o.value.errClass && r && Ft(r);
6512
+ }, O = w((c == null ? void 0 : c.options.value) || []), d = (b) => {
6510
6513
  if (b.length > 0 && ve(a.value) && a.selectFirst)
6511
6514
  for (let L = 0; L < b.length; L++) {
6512
6515
  const v = b[L];
@@ -6537,7 +6540,7 @@ const nt = new $i(), mt = (e, t, a) => {
6537
6540
  ), B(
6538
6541
  () => g.value.loading,
6539
6542
  (b) => {
6540
- b ? p.value = "" : p.value || (p.value = w("webui.components.form.select.pleaseSelect", [l.value]));
6543
+ b ? p.value = "" : p.value || (p.value = P("webui.components.form.select.pleaseSelect", [l.value]));
6541
6544
  },
6542
6545
  { immediate: !0 }
6543
6546
  ), B(
@@ -6550,7 +6553,7 @@ const nt = new $i(), mt = (e, t, a) => {
6550
6553
  () => I.value,
6551
6554
  (b) => {
6552
6555
  const L = b === void 0 ? n ? void 0 : null : b;
6553
- c && (c.selected.value = L), P("update:value", L);
6556
+ c && (c.selected.value = L), R("update:value", L);
6554
6557
  }
6555
6558
  ), ea(() => {
6556
6559
  c && c.autoload && (c.reload.value = !0);
@@ -6573,7 +6576,7 @@ const nt = new $i(), mt = (e, t, a) => {
6573
6576
  return le(), ge("div", null, [
6574
6577
  (C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", nc, [
6575
6578
  Ye(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
6576
- vr("span", null, Be(X(w)("webui.components.form.upload.dataLoading")), 1)
6579
+ vr("span", null, Be(X(P)("webui.components.form.upload.dataLoading")), 1)
6577
6580
  ])) : rt("", !0),
6578
6581
  Ye(X(Or), wt({
6579
6582
  class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
@@ -6604,8 +6607,8 @@ const nt = new $i(), mt = (e, t, a) => {
6604
6607
  ]);
6605
6608
  };
6606
6609
  }
6607
- }), sc = R(!1), eu = {
6608
- label: w("webui.utils.tools.templateManagement"),
6610
+ }), sc = w(!1), eu = {
6611
+ label: P("webui.utils.tools.templateManagement"),
6609
6612
  key: "uploadTemp",
6610
6613
  type: "primary",
6611
6614
  icon: "icon-download",
@@ -6614,7 +6617,7 @@ const nt = new $i(), mt = (e, t, a) => {
6614
6617
  }
6615
6618
  };
6616
6619
  export {
6617
- w as $,
6620
+ P as $,
6618
6621
  pa as A,
6619
6622
  ma as B,
6620
6623
  Ft as C,