@skyfox2000/webui 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-B6inmGis.js → baseLayout-D6mTs3zS.js} +3 -3
- package/lib/assets/modules/{file-upload-D5fgJqbD.js → file-upload-B74s5Vtb.js} +1 -1
- package/lib/assets/modules/{index-CC9JsVjr.js → index-CXDKjQwi.js} +2 -2
- package/lib/assets/modules/{index-Bypy-Ory.js → index-DP43BJ_M.js} +1 -1
- package/lib/assets/modules/{index-BtAUG8V-.js → index-lmz2beMc.js} +2 -2
- package/lib/assets/modules/{menuTabs-GG2r3rRS.js → menuTabs-DGAhbfbK.js} +2 -2
- package/lib/assets/modules/{toolIcon-BkR48lkW.js → toolIcon-DTZ86PSe.js} +1 -1
- package/lib/assets/modules/{upload-template-8CEyoFgY.js → upload-template-2YQlEeTh.js} +138 -139
- package/lib/assets/modules/{uploadList-CsVXS_Cb.js → uploadList-DlwK6xXN.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/stores/appInfo.ts +1 -2
|
@@ -2,12 +2,12 @@ var pr = Object.defineProperty;
|
|
|
2
2
|
var _r = (e, t, a) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ne = (e, t, a) => _r(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as wa from "vue";
|
|
5
|
-
import { effectScope as gr, ref as w, shallowRef as De, computed as tt, watch as B, isRef as hr, defineComponent as Ce, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as Er, nextTick as vr, provide as ka, toRaw as ds, reactive as br, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Ue, createTextVNode as ta, toDisplayString as je, renderList as
|
|
5
|
+
import { effectScope as gr, ref as w, shallowRef as De, computed as tt, watch as B, isRef as hr, defineComponent as Ce, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as Er, nextTick as vr, provide as ka, toRaw as ds, reactive as br, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Ue, createTextVNode as ta, toDisplayString as je, renderList as nn, normalizeClass as ms, createElementVNode as Ir } from "vue";
|
|
6
6
|
import { Switch as yr, AutoComplete as Nr, Input as Sr, CheckboxGroup as Tr, Checkbox as Lr, RadioGroup as Or, Radio as Ar, Select as Pr, SelectOption as Rr } from "ant-design-vue";
|
|
7
7
|
import { createPinia as wr, defineStore as Dt } from "pinia";
|
|
8
8
|
import kr from "pinia-plugin-persistedstate";
|
|
9
|
-
import { EnvConfig as ke, AppAction as
|
|
10
|
-
import { httpPost as qe,
|
|
9
|
+
import { EnvConfig as ke, AppAction as Sn, AppSource as Tn, isMicroApp as Fe, isBaseMicroApp as Dr, combineParams as Ct } from "@skyfox2000/microbase";
|
|
10
|
+
import { httpPost as qe, ResStatus as ie, setToken as Wt, httpGet as ps, fieldMapping as Cr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Ln } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
|
|
13
13
|
import aa from "async-validator";
|
|
@@ -25,7 +25,7 @@ function Le(e, t) {
|
|
|
25
25
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
26
26
|
}
|
|
27
27
|
const On = {};
|
|
28
|
-
function
|
|
28
|
+
function sn(e) {
|
|
29
29
|
On[e] || (On[e] = !0, Le(e));
|
|
30
30
|
}
|
|
31
31
|
const Ne = typeof window < "u";
|
|
@@ -43,7 +43,7 @@ const xr = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
43
43
|
function na(e, ...t) {
|
|
44
44
|
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xr, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
45
45
|
}
|
|
46
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) =>
|
|
46
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) => rn(e) === "[object Date]", lt = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Wr = Object.create, W = (e = null) => Wr(e);
|
|
47
47
|
let An;
|
|
48
48
|
const Ge = () => An || (An = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
49
|
function Pn(e) {
|
|
@@ -66,8 +66,8 @@ const Kr = Object.prototype.hasOwnProperty;
|
|
|
66
66
|
function be(e, t) {
|
|
67
67
|
return Kr.call(e, t);
|
|
68
68
|
}
|
|
69
|
-
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Yr = (e) => U(e) && G(e.then) && G(e.catch), _s = Object.prototype.toString,
|
|
70
|
-
function
|
|
69
|
+
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Yr = (e) => U(e) && G(e.then) && G(e.catch), _s = Object.prototype.toString, rn = (e) => _s.call(e), F = (e) => rn(e) === "[object Object]", Br = (e) => e == null ? "" : J(e) || F(e) && e.toString === _s ? JSON.stringify(e, null, 2) : String(e);
|
|
70
|
+
function on(e, t = "") {
|
|
71
71
|
return e.reduce((a, n, s) => s === 0 ? a + n : a + t + n, "");
|
|
72
72
|
}
|
|
73
73
|
const wn = 2;
|
|
@@ -99,7 +99,7 @@ function jr(e, t = 0, a = e.length) {
|
|
|
99
99
|
return r.join(`
|
|
100
100
|
`);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ln() {
|
|
103
103
|
const e = /* @__PURE__ */ new Map();
|
|
104
104
|
return {
|
|
105
105
|
events: e,
|
|
@@ -136,7 +136,7 @@ function jt(e, t) {
|
|
|
136
136
|
function Jr(e, t, a) {
|
|
137
137
|
return { line: e, column: t, offset: a };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function $a(e, t, a) {
|
|
140
140
|
return { start: e, end: t };
|
|
141
141
|
}
|
|
142
142
|
const D = {
|
|
@@ -246,7 +246,7 @@ function oo(e, t = {}) {
|
|
|
246
246
|
function g(u, f, N, ...k) {
|
|
247
247
|
const j = c();
|
|
248
248
|
if (f.column += N, f.offset += N, m) {
|
|
249
|
-
const q = a ?
|
|
249
|
+
const q = a ? $a(j.startLoc, f) : null, V = mt(u, q, {
|
|
250
250
|
domain: ro,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
@@ -256,7 +256,7 @@ function oo(e, t = {}) {
|
|
|
256
256
|
function p(u, f, N) {
|
|
257
257
|
u.endLoc = r(), u.currentType = f;
|
|
258
258
|
const k = { type: f };
|
|
259
|
-
return a && (k.loc =
|
|
259
|
+
return a && (k.loc = $a(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
|
|
260
260
|
}
|
|
261
261
|
const y = (u) => p(
|
|
262
262
|
u,
|
|
@@ -448,7 +448,7 @@ function oo(e, t = {}) {
|
|
|
448
448
|
function Ta(u) {
|
|
449
449
|
return u !== kn && u !== re;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function yn(u) {
|
|
452
452
|
O(u), R(u, "'");
|
|
453
453
|
let f = "", N = "";
|
|
454
454
|
for (; f = Q(u, Ta); )
|
|
@@ -545,7 +545,7 @@ function oo(e, t = {}) {
|
|
|
545
545
|
if (q = E(u, f))
|
|
546
546
|
return N = p(f, 5, Sa(u)), O(u), N;
|
|
547
547
|
if (V = b(u, f))
|
|
548
|
-
return N = p(f, 6,
|
|
548
|
+
return N = p(f, 6, yn(u)), O(u), N;
|
|
549
549
|
if (!j && !q && !V)
|
|
550
550
|
return N = p(f, 12, $t(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
|
|
551
551
|
break;
|
|
@@ -648,7 +648,7 @@ function uo(e = {}) {
|
|
|
648
648
|
function n(d, _, I, E, ...b) {
|
|
649
649
|
const L = d.currentPosition();
|
|
650
650
|
if (L.offset += E, L.column += E, a) {
|
|
651
|
-
const v = t ?
|
|
651
|
+
const v = t ? $a(I, L) : null, C = mt(_, v, {
|
|
652
652
|
domain: lo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
@@ -789,9 +789,9 @@ function fo(e, t = {}) {
|
|
|
789
789
|
}
|
|
790
790
|
function Dn(e, t) {
|
|
791
791
|
for (let a = 0; a < e.length; a++)
|
|
792
|
-
|
|
792
|
+
cn(e[a], t);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function cn(e, t) {
|
|
795
795
|
switch (e.type) {
|
|
796
796
|
case 1:
|
|
797
797
|
Dn(e.cases, t), t.helper(
|
|
@@ -803,7 +803,7 @@ function un(e, t) {
|
|
|
803
803
|
Dn(e.items, t);
|
|
804
804
|
break;
|
|
805
805
|
case 6: {
|
|
806
|
-
|
|
806
|
+
cn(e.key, t), t.helper(
|
|
807
807
|
"linked"
|
|
808
808
|
/* HelperNameMap.LINKED */
|
|
809
809
|
), t.helper(
|
|
@@ -837,7 +837,7 @@ function mo(e, t = {}) {
|
|
|
837
837
|
a.helper(
|
|
838
838
|
"normalize"
|
|
839
839
|
/* HelperNameMap.NORMALIZE */
|
|
840
|
-
), e.body &&
|
|
840
|
+
), e.body && cn(e.body, a);
|
|
841
841
|
const n = a.context();
|
|
842
842
|
e.helpers = Array.from(n.helpers);
|
|
843
843
|
}
|
|
@@ -858,7 +858,7 @@ function Cn(e) {
|
|
|
858
858
|
t.push(n.value);
|
|
859
859
|
}
|
|
860
860
|
if (t.length === e.items.length) {
|
|
861
|
-
e.static =
|
|
861
|
+
e.static = on(t);
|
|
862
862
|
for (let a = 0; a < e.items.length; a++) {
|
|
863
863
|
const n = e.items[a];
|
|
864
864
|
(n.type === 3 || n.type === 9) && delete n.value;
|
|
@@ -1059,7 +1059,7 @@ const yo = (e, t = {}) => {
|
|
|
1059
1059
|
breakLineCode: s,
|
|
1060
1060
|
needIndent: r
|
|
1061
1061
|
});
|
|
1062
|
-
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${
|
|
1062
|
+
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(r), l.push("}"), delete e.helpers;
|
|
1063
1063
|
const { code: i, map: c } = l.context();
|
|
1064
1064
|
return {
|
|
1065
1065
|
ast: e,
|
|
@@ -1081,7 +1081,7 @@ function So() {
|
|
|
1081
1081
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1082
1082
|
}
|
|
1083
1083
|
function he(e) {
|
|
1084
|
-
return U(e) &&
|
|
1084
|
+
return U(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
1086
|
const gs = ["b", "body"];
|
|
1087
1087
|
function To(e) {
|
|
@@ -1100,7 +1100,7 @@ function Ao(e) {
|
|
|
1100
1100
|
return xe(e, vs, []);
|
|
1101
1101
|
}
|
|
1102
1102
|
const bs = ["t", "type"];
|
|
1103
|
-
function
|
|
1103
|
+
function un(e) {
|
|
1104
1104
|
return xe(e, bs);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Is = ["v", "value"];
|
|
@@ -1155,7 +1155,7 @@ function wo(e, t) {
|
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
1158
|
-
if (
|
|
1158
|
+
if (un(a) === 1) {
|
|
1159
1159
|
const r = Lo(a);
|
|
1160
1160
|
return e.plural(r.reduce((o, l) => [
|
|
1161
1161
|
...o,
|
|
@@ -1169,12 +1169,12 @@ function Fn(e, t) {
|
|
|
1169
1169
|
if (a != null)
|
|
1170
1170
|
return e.type === "text" ? a : e.normalize([a]);
|
|
1171
1171
|
{
|
|
1172
|
-
const n = Ao(t).reduce((s, r) => [...s,
|
|
1172
|
+
const n = Ao(t).reduce((s, r) => [...s, Ha(e, r)], []);
|
|
1173
1173
|
return e.normalize(n);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const a =
|
|
1176
|
+
function Ha(e, t) {
|
|
1177
|
+
const a = un(t);
|
|
1178
1178
|
switch (a) {
|
|
1179
1179
|
case 3:
|
|
1180
1180
|
return Kt(t, a);
|
|
@@ -1198,7 +1198,7 @@ function Wa(e, t) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
1200
|
const n = t, s = Po(n), r = Ro(n);
|
|
1201
|
-
return e.linked(
|
|
1201
|
+
return e.linked(Ha(e, r), s ? Ha(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
1204
1204
|
return Kt(t, a);
|
|
@@ -1284,7 +1284,7 @@ const Wo = {
|
|
|
1284
1284
|
[oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1285
1285
|
[oe.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1287
|
+
function fn(e, t) {
|
|
1288
1288
|
return t.locale != null ? Mn(t.locale) : Mn(e.locale);
|
|
1289
1289
|
}
|
|
1290
1290
|
let Fa;
|
|
@@ -1690,7 +1690,7 @@ const $n = (e) => {
|
|
|
1690
1690
|
let Hn = 0;
|
|
1691
1691
|
function ul(e = {}) {
|
|
1692
1692
|
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : al, n = A(e.locale) || G(e.locale) ? e.locale : Lt, s = G(n) ? Lt : 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, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = x(e.fallbackWarn) || lt(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, I = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ls;
|
|
1693
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) &&
|
|
1693
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Qe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
1694
|
const b = G(e.messageResolver) ? e.messageResolver : Os || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : As || Go, 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
|
Hn++;
|
|
1696
1696
|
const Q = {
|
|
@@ -1726,7 +1726,7 @@ function oa(e, t) {
|
|
|
1726
1726
|
function ws(e, t) {
|
|
1727
1727
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function dn(e, t, a, n, s) {
|
|
1730
1730
|
const { missing: r, onWarn: o } = e;
|
|
1731
1731
|
if (process.env.NODE_ENV !== "production") {
|
|
1732
1732
|
const l = e.__v_emitter;
|
|
@@ -1767,7 +1767,7 @@ function Gn(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" && !Ds.dateTimeFormat)
|
|
1769
1769
|
return r(Qe(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
-
const [i, c, m, g] =
|
|
1770
|
+
const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = 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,
|
|
@@ -1793,7 +1793,7 @@ function Gn(e, ...t) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
if (d = a[_] || {}, I = d[i], F(I))
|
|
1795
1795
|
break;
|
|
1796
|
-
|
|
1796
|
+
dn(e, i, _, p, L), E = b;
|
|
1797
1797
|
}
|
|
1798
1798
|
if (!F(I) || !A(_))
|
|
1799
1799
|
return n ? ra : i;
|
|
@@ -1824,7 +1824,7 @@ const Cs = [
|
|
|
1824
1824
|
"hourCycle",
|
|
1825
1825
|
"fractionalSecondDigits"
|
|
1826
1826
|
];
|
|
1827
|
-
function
|
|
1827
|
+
function Wa(...e) {
|
|
1828
1828
|
const [t, a, n, s] = e, r = W();
|
|
1829
1829
|
let o = W(), l;
|
|
1830
1830
|
if (A(t)) {
|
|
@@ -1861,7 +1861,7 @@ function Yn(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" && !Ds.numberFormat)
|
|
1863
1863
|
return r(Qe(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
-
const [i, c, m, g] =
|
|
1864
|
+
const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = 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,
|
|
@@ -1887,7 +1887,7 @@ function Yn(e, ...t) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
if (d = a[_] || {}, I = d[i], F(I))
|
|
1889
1889
|
break;
|
|
1890
|
-
|
|
1890
|
+
dn(e, i, _, p, L), E = b;
|
|
1891
1891
|
}
|
|
1892
1892
|
if (!F(I) || !A(_))
|
|
1893
1893
|
return n ? ra : i;
|
|
@@ -1918,7 +1918,7 @@ const Fs = [
|
|
|
1918
1918
|
"roundingIncrement",
|
|
1919
1919
|
"trailingZeroDisplay"
|
|
1920
1920
|
];
|
|
1921
|
-
function
|
|
1921
|
+
function Ga(...e) {
|
|
1922
1922
|
const [t, a, n, s] = e, r = W();
|
|
1923
1923
|
let o = W();
|
|
1924
1924
|
if (!ee(t))
|
|
@@ -1935,7 +1935,7 @@ function Bn(e, t, a) {
|
|
|
1935
1935
|
n.__numberFormatters.has(r) && n.__numberFormatters.delete(r);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" :
|
|
1938
|
+
const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" : on(e), gl = Br;
|
|
1939
1939
|
function jn(e, t) {
|
|
1940
1940
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1941
1941
|
}
|
|
@@ -1978,7 +1978,7 @@ function vl(e = {}) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
const Jn = () => "", pe = (e) => G(e);
|
|
1980
1980
|
function Qn(e, ...t) {
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, 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, y = !!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 && bl(c);
|
|
1983
1983
|
let [d, _, I] = y ? [
|
|
1984
1984
|
i,
|
|
@@ -2047,7 +2047,7 @@ function Ms(e, t, a, n, s, r) {
|
|
|
2047
2047
|
if (A(y) || he(y) || pe(y))
|
|
2048
2048
|
break;
|
|
2049
2049
|
if (!fl(p, m)) {
|
|
2050
|
-
const b =
|
|
2050
|
+
const b = dn(
|
|
2051
2051
|
e,
|
|
2052
2052
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2053
2053
|
t,
|
|
@@ -2100,7 +2100,7 @@ function Il(e, t, a) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
return o;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ka(...e) {
|
|
2104
2104
|
const [t, a, n] = e, s = W();
|
|
2105
2105
|
if (!A(t) && !ee(t) && !pe(t) && !he(t))
|
|
2106
2106
|
throw we(oe.INVALID_ARGUMENT);
|
|
@@ -2173,13 +2173,13 @@ function xs() {
|
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
const Ll = typeof Proxy == "function", Ol = "devtools-plugin:setup", Al = "plugin:settings:set";
|
|
2176
|
-
let et,
|
|
2176
|
+
let et, Ya;
|
|
2177
2177
|
function Pl() {
|
|
2178
2178
|
var e;
|
|
2179
|
-
return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0,
|
|
2179
|
+
return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (et = !0, Ya = globalThis.perf_hooks.performance) : et = !1), et;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Rl() {
|
|
2182
|
-
return Pl() ?
|
|
2182
|
+
return Pl() ? Ya.now() : Date.now();
|
|
2183
2183
|
}
|
|
2184
2184
|
class wl {
|
|
2185
2185
|
constructor(t, a) {
|
|
@@ -2302,7 +2302,7 @@ const Fl = {
|
|
|
2302
2302
|
[Y.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2303
2303
|
[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2304
2304
|
[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2305
|
-
},
|
|
2305
|
+
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Xe = /* @__PURE__ */ Oe("__enableEmitter"), Ot = /* @__PURE__ */ Oe("__disableEmitter"), Vs = Oe("__setPluralRules"), $s = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
2306
|
FALLBACK_TO_ROOT: el,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2363,7 +2363,7 @@ function At(e) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function mn(e, t) {
|
|
2367
2367
|
const { messages: a, __i18n: n, messageResolver: s, flatJson: r } = t, o = F(a) ? a : J(n) ? W() : { [e]: W() };
|
|
2368
2368
|
if (J(n) && n.forEach((l) => {
|
|
2369
2369
|
if ("locale" in l && "resource" in l) {
|
|
@@ -2381,7 +2381,7 @@ function Hs(e) {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
function Ws(e, t, a) {
|
|
2383
2383
|
let n = U(t.messages) ? t.messages : W();
|
|
2384
|
-
"__i18nGlobal" in a && (n =
|
|
2384
|
+
"__i18nGlobal" in a && (n = mn(e.locale.value, {
|
|
2385
2385
|
messages: n,
|
|
2386
2386
|
__i18n: a.__i18nGlobal
|
|
2387
2387
|
}));
|
|
@@ -2421,7 +2421,7 @@ const xl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2421
2421
|
let t = null;
|
|
2422
2422
|
return e && (t = Hs(e)[qn]) ? { [qn]: t } : null;
|
|
2423
2423
|
};
|
|
2424
|
-
function
|
|
2424
|
+
function pn(e = {}) {
|
|
2425
2425
|
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : De;
|
|
2426
2426
|
let o = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2427
2427
|
const l = r(
|
|
@@ -2430,7 +2430,7 @@ function _n(e = {}) {
|
|
|
2430
2430
|
), i = r(
|
|
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
|
-
), c = r(
|
|
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
2434
|
let p = t ? t.missingWarn : x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = t ? t.fallbackWarn : x(e.fallbackWarn) || lt(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) ? es(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, I = 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;
|
|
@@ -2509,8 +2509,8 @@ function _n(e = {}) {
|
|
|
2509
2509
|
key: We,
|
|
2510
2510
|
type: H
|
|
2511
2511
|
})), process.env.NODE_ENV !== "production")) {
|
|
2512
|
-
const { __v_emitter:
|
|
2513
|
-
|
|
2512
|
+
const { __v_emitter: Nn } = v;
|
|
2513
|
+
Nn && R && Nn.emit("fallback", {
|
|
2514
2514
|
type: H,
|
|
2515
2515
|
key: We,
|
|
2516
2516
|
to: "global",
|
|
@@ -2525,7 +2525,7 @@ function _n(e = {}) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
2527
|
function _t(...h) {
|
|
2528
|
-
return Ae((T) => Reflect.apply(Qn, null, [T, ...h]), () =>
|
|
2528
|
+
return Ae((T) => Reflect.apply(Qn, null, [T, ...h]), () => Ka(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
|
|
2529
2529
|
}
|
|
2530
2530
|
function ya(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
@@ -2534,10 +2534,10 @@ function _n(e = {}) {
|
|
|
2534
2534
|
return _t(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2535
2535
|
}
|
|
2536
2536
|
function Na(...h) {
|
|
2537
|
-
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () =>
|
|
2537
|
+
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2538
2538
|
}
|
|
2539
2539
|
function Sa(...h) {
|
|
2540
|
-
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () =>
|
|
2540
|
+
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ga(...h), "number format", (T) => Reflect.apply(T.n, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2541
2541
|
}
|
|
2542
2542
|
function Ta(h) {
|
|
2543
2543
|
return h.map((T) => A(T) || ee(T) || x(T) ? Xn(String(T)) : T);
|
|
@@ -2557,13 +2557,13 @@ function _n(e = {}) {
|
|
|
2557
2557
|
z.processor = null;
|
|
2558
2558
|
}
|
|
2559
2559
|
return H;
|
|
2560
|
-
}, () =>
|
|
2560
|
+
}, () => Ka(...h), "translate", (T) => T[Ba](...h), (T) => [Xn(T)], (T) => J(T));
|
|
2561
2561
|
}
|
|
2562
2562
|
function Oa(...h) {
|
|
2563
|
-
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () =>
|
|
2563
|
+
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ga(...h), "number format", (T) => T[Ja](...h), zn, (T) => A(T) || J(T));
|
|
2564
2564
|
}
|
|
2565
2565
|
function $t(...h) {
|
|
2566
|
-
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () =>
|
|
2566
|
+
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => T[ja](...h), zn, (T) => A(T) || J(T));
|
|
2567
2567
|
}
|
|
2568
2568
|
function Aa(h) {
|
|
2569
2569
|
L = h, v.pluralRules = L;
|
|
@@ -2704,7 +2704,7 @@ function _n(e = {}) {
|
|
|
2704
2704
|
setMissingHandler: ba,
|
|
2705
2705
|
[Vs]: Aa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats = ze, V.numberFormats = ga, V.rt = ya, V.te = Pa, V.tm = ht, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[$s] = a, V[
|
|
2707
|
+
return V.datetimeFormats = ze, V.numberFormats = ga, V.rt = ya, V.te = Pa, V.tm = ht, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[$s] = a, V[Ba] = Vt, V[ja] = $t, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Xe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
2709
|
}, V[Ot] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
@@ -2719,7 +2719,7 @@ const Gs = "vue-i18n: composer properties", Ua = {
|
|
|
2719
2719
|
}, $l = {
|
|
2720
2720
|
"vue-i18n-timeline": 16764185
|
|
2721
2721
|
};
|
|
2722
|
-
let
|
|
2722
|
+
let Xa;
|
|
2723
2723
|
async function Hl(e, t) {
|
|
2724
2724
|
return new Promise((a, n) => {
|
|
2725
2725
|
try {
|
|
@@ -2733,7 +2733,7 @@ async function Hl(e, t) {
|
|
|
2733
2733
|
app: e
|
|
2734
2734
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2735
2735
|
}, (s) => {
|
|
2736
|
-
|
|
2736
|
+
Xa = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2737
2737
|
Wl(o, l, t);
|
|
2738
2738
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2739
2739
|
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && ts(l, o.__VUE_I18N__) : ts(l, o.__VUE_I18N__));
|
|
@@ -2811,7 +2811,7 @@ function ts(e, t) {
|
|
|
2811
2811
|
type: a,
|
|
2812
2812
|
key: "messages",
|
|
2813
2813
|
editable: !1,
|
|
2814
|
-
value:
|
|
2814
|
+
value: _n(t.messages.value)
|
|
2815
2815
|
}), e.state.push({
|
|
2816
2816
|
type: a,
|
|
2817
2817
|
key: "datetimeFormats",
|
|
@@ -2824,11 +2824,11 @@ function ts(e, t) {
|
|
|
2824
2824
|
value: t.numberFormats.value
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function _n(e) {
|
|
2828
2828
|
const t = {};
|
|
2829
2829
|
return Object.keys(e).forEach((a) => {
|
|
2830
2830
|
const n = e[a];
|
|
2831
|
-
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] =
|
|
2831
|
+
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] = _n(n) : t[a] = n;
|
|
2832
2832
|
}), t;
|
|
2833
2833
|
}
|
|
2834
2834
|
const Gl = {
|
|
@@ -2921,7 +2921,7 @@ function Xl(e) {
|
|
|
2921
2921
|
type: s,
|
|
2922
2922
|
key: "messages",
|
|
2923
2923
|
editable: !1,
|
|
2924
|
-
value:
|
|
2924
|
+
value: _n(e.messages.value)
|
|
2925
2925
|
}
|
|
2926
2926
|
];
|
|
2927
2927
|
t[s] = r;
|
|
@@ -2948,9 +2948,9 @@ function Xl(e) {
|
|
|
2948
2948
|
return t;
|
|
2949
2949
|
}
|
|
2950
2950
|
function Pt(e, t) {
|
|
2951
|
-
if (
|
|
2951
|
+
if (Xa) {
|
|
2952
2952
|
let a;
|
|
2953
|
-
t && "groupId" in t && (a = t.groupId, delete t.groupId),
|
|
2953
|
+
t && "groupId" in t && (a = t.groupId, delete t.groupId), Xa.addTimelineEvent({
|
|
2954
2954
|
layerId: "vue-i18n-timeline",
|
|
2955
2955
|
event: {
|
|
2956
2956
|
title: e,
|
|
@@ -3005,8 +3005,8 @@ function zl(e) {
|
|
|
3005
3005
|
__injectWithOption: d
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const t =
|
|
3008
|
+
function qa(e = {}) {
|
|
3009
|
+
const t = pn(zl(e)), { __extender: a } = e, n = {
|
|
3010
3010
|
// id
|
|
3011
3011
|
id: t.id,
|
|
3012
3012
|
// locale
|
|
@@ -3186,7 +3186,7 @@ function Zl(e, t, a) {
|
|
|
3186
3186
|
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3187
3187
|
this.$i18n = as(e, r);
|
|
3188
3188
|
else {
|
|
3189
|
-
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n =
|
|
3189
|
+
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n = qa(r);
|
|
3190
3190
|
const o = this.$i18n;
|
|
3191
3191
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3192
3192
|
}
|
|
@@ -3194,7 +3194,7 @@ function Zl(e, t, a) {
|
|
|
3194
3194
|
if (this === this.$root)
|
|
3195
3195
|
this.$i18n = as(e, s);
|
|
3196
3196
|
else {
|
|
3197
|
-
this.$i18n =
|
|
3197
|
+
this.$i18n = qa({
|
|
3198
3198
|
__i18n: s.__i18n,
|
|
3199
3199
|
__injectWithOption: !0,
|
|
3200
3200
|
__extender: a.__vueI18nExtend,
|
|
@@ -3214,7 +3214,7 @@ function Zl(e, t, a) {
|
|
|
3214
3214
|
return;
|
|
3215
3215
|
const s = this.$i18n;
|
|
3216
3216
|
n.__VUE_I18N__ = s.__composer;
|
|
3217
|
-
const r = this.__v_emitter =
|
|
3217
|
+
const r = this.__v_emitter = ln();
|
|
3218
3218
|
s.__enableEmitter && s.__enableEmitter(r), r.on("*", Pt);
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
@@ -3229,13 +3229,13 @@ function Zl(e, t, a) {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
function as(e, t) {
|
|
3231
3231
|
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Vs](t.pluralizationRules || e.pluralizationRules);
|
|
3232
|
-
const a =
|
|
3232
|
+
const a = mn(e.locale, {
|
|
3233
3233
|
messages: t.messages,
|
|
3234
3234
|
__i18n: t.__i18n
|
|
3235
3235
|
});
|
|
3236
3236
|
return Object.keys(a).forEach((n) => e.mergeLocaleMessage(n, a[n])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
3237
3237
|
}
|
|
3238
|
-
const
|
|
3238
|
+
const gn = {
|
|
3239
3239
|
tag: {
|
|
3240
3240
|
type: [String, Object]
|
|
3241
3241
|
},
|
|
@@ -3278,7 +3278,7 @@ const ti = /* @__PURE__ */ Ce({
|
|
|
3278
3278
|
type: [Number, String],
|
|
3279
3279
|
validator: (e) => ee(e) || !isNaN(e)
|
|
3280
3280
|
}
|
|
3281
|
-
},
|
|
3281
|
+
}, gn),
|
|
3282
3282
|
/* eslint-enable */
|
|
3283
3283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3284
3284
|
setup(e, t) {
|
|
@@ -3289,7 +3289,7 @@ const ti = /* @__PURE__ */ Ce({
|
|
|
3289
3289
|
return () => {
|
|
3290
3290
|
const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
|
|
3291
3291
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
|
|
3292
|
-
const l = ei(t, r), i = s[
|
|
3292
|
+
const l = ei(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Bs();
|
|
3293
3293
|
return Ie(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
@@ -3324,7 +3324,7 @@ const ni = /* @__PURE__ */ Ce({
|
|
|
3324
3324
|
format: {
|
|
3325
3325
|
type: [String, Object]
|
|
3326
3326
|
}
|
|
3327
|
-
},
|
|
3327
|
+
}, gn),
|
|
3328
3328
|
/* eslint-enable */
|
|
3329
3329
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3330
3330
|
setup(e, t) {
|
|
@@ -3334,7 +3334,7 @@ const ni = /* @__PURE__ */ Ce({
|
|
|
3334
3334
|
});
|
|
3335
3335
|
return js(e, t, Fs, (...n) => (
|
|
3336
3336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3337
|
-
a[
|
|
3337
|
+
a[Ja](...n)
|
|
3338
3338
|
));
|
|
3339
3339
|
}
|
|
3340
3340
|
}), ss = ni;
|
|
@@ -3349,7 +3349,7 @@ function si(e, t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
function ri(e) {
|
|
3351
3351
|
const t = (o) => {
|
|
3352
|
-
process.env.NODE_ENV !== "production" &&
|
|
3352
|
+
process.env.NODE_ENV !== "production" && sn(ct(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3353
3353
|
const { instance: l, value: i } = o;
|
|
3354
3354
|
if (!l || !l.$)
|
|
3355
3355
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
@@ -3404,7 +3404,7 @@ function oi(e, t, ...a) {
|
|
|
3404
3404
|
const li = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
3405
|
function ii(e = {}) {
|
|
3406
3406
|
const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3407
|
+
process.env.NODE_ENV !== "production" && t && sn(ct(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
3408
|
const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ci(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3409
3409
|
function l(g) {
|
|
3410
3410
|
return n.get(g) || null;
|
|
@@ -3434,7 +3434,7 @@ function ii(e = {}) {
|
|
|
3434
3434
|
}, process.env.NODE_ENV !== "production") {
|
|
3435
3435
|
if (!await Hl(g, m))
|
|
3436
3436
|
throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3437
|
-
const O =
|
|
3437
|
+
const O = ln();
|
|
3438
3438
|
if (t) {
|
|
3439
3439
|
const d = r;
|
|
3440
3440
|
d.__enableEmitter && d.__enableEmitter(O);
|
|
@@ -3480,13 +3480,13 @@ function la(e = {}) {
|
|
|
3480
3480
|
let l = o.__getInstance(t);
|
|
3481
3481
|
if (l == null) {
|
|
3482
3482
|
const i = te({}, e);
|
|
3483
|
-
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l =
|
|
3483
|
+
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(l)), _i(o, t, l), o.__setInstance(t, l);
|
|
3484
3484
|
} else
|
|
3485
3485
|
process.env.NODE_ENV !== "production" && r === "local" && Le(ct(_e.DUPLICATE_USE_I18N_CALLING));
|
|
3486
3486
|
return l;
|
|
3487
3487
|
}
|
|
3488
3488
|
function ci(e, t) {
|
|
3489
|
-
const a = gr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() =>
|
|
3489
|
+
const a = gr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => qa(e)) : a.run(() => pn(e));
|
|
3490
3490
|
if (n == null)
|
|
3491
3491
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3492
3492
|
return [a, n];
|
|
@@ -3528,15 +3528,15 @@ function _i(e, t, a) {
|
|
|
3528
3528
|
let n = null;
|
|
3529
3529
|
wt(() => {
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
3531
|
-
t.__VUE_I18N__ = a, n =
|
|
3531
|
+
t.__VUE_I18N__ = a, n = ln();
|
|
3532
3532
|
const s = a;
|
|
3533
3533
|
s[Xe] && s[Xe](n), n.on("*", Pt);
|
|
3534
3534
|
}
|
|
3535
3535
|
}, t), dt(() => {
|
|
3536
3536
|
const s = a;
|
|
3537
3537
|
process.env.NODE_ENV !== "production" && (n && n.off("*", Pt), s[Ot] && s[Ot](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3538
|
-
const r = s[
|
|
3539
|
-
r && (r(), delete s[
|
|
3538
|
+
const r = s[Qa];
|
|
3539
|
+
r && (r(), delete s[Qa]);
|
|
3540
3540
|
}, t);
|
|
3541
3541
|
}
|
|
3542
3542
|
const gi = [
|
|
@@ -3586,7 +3586,7 @@ const Ei = /* @__PURE__ */ Ce({
|
|
|
3586
3586
|
format: {
|
|
3587
3587
|
type: [String, Object]
|
|
3588
3588
|
}
|
|
3589
|
-
},
|
|
3589
|
+
}, gn),
|
|
3590
3590
|
/* eslint-enable */
|
|
3591
3591
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3592
3592
|
setup(e, t) {
|
|
@@ -3596,7 +3596,7 @@ const Ei = /* @__PURE__ */ Ce({
|
|
|
3596
3596
|
});
|
|
3597
3597
|
return js(e, t, Cs, (...n) => (
|
|
3598
3598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3599
|
-
a[
|
|
3599
|
+
a[ja](...n)
|
|
3600
3600
|
));
|
|
3601
3601
|
}
|
|
3602
3602
|
}), is = Ei;
|
|
@@ -3987,7 +3987,7 @@ function Rt(e, t) {
|
|
|
3987
3987
|
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = Rt(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
|
|
3988
3988
|
return a;
|
|
3989
3989
|
}
|
|
3990
|
-
let
|
|
3990
|
+
let za = "/", qt = {
|
|
3991
3991
|
"zh-CN": "简体中文"
|
|
3992
3992
|
};
|
|
3993
3993
|
const Js = {};
|
|
@@ -4011,7 +4011,7 @@ const me = ii({
|
|
|
4011
4011
|
});
|
|
4012
4012
|
async function Ii(e) {
|
|
4013
4013
|
try {
|
|
4014
|
-
const t = await fetch(`${
|
|
4014
|
+
const t = await fetch(`${za}locales/${e}.json`);
|
|
4015
4015
|
if (!t.ok)
|
|
4016
4016
|
throw new Error(`Failed to load locale ${e}`);
|
|
4017
4017
|
return await t.json();
|
|
@@ -4040,23 +4040,23 @@ function Xs(e, t) {
|
|
|
4040
4040
|
console.error(`Error caching locale ${e}:`, a);
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function Za(e) {
|
|
4044
4044
|
if (e === null || typeof e != "object")
|
|
4045
4045
|
return e;
|
|
4046
4046
|
if (e instanceof Date)
|
|
4047
4047
|
return new Date(e.getTime());
|
|
4048
4048
|
if (e instanceof Array)
|
|
4049
|
-
return e.map((t) =>
|
|
4049
|
+
return e.map((t) => Za(t));
|
|
4050
4050
|
if (typeof e == "object") {
|
|
4051
4051
|
const t = {};
|
|
4052
4052
|
for (const a in e)
|
|
4053
|
-
e.hasOwnProperty(a) && (t[a] =
|
|
4053
|
+
e.hasOwnProperty(a) && (t[a] = Za(e[a]));
|
|
4054
4054
|
return t;
|
|
4055
4055
|
}
|
|
4056
4056
|
return e;
|
|
4057
4057
|
}
|
|
4058
4058
|
async function qs(e) {
|
|
4059
|
-
const t =
|
|
4059
|
+
const t = Za(vi), a = Qs(e);
|
|
4060
4060
|
let n = {};
|
|
4061
4061
|
try {
|
|
4062
4062
|
n = await Ii(e);
|
|
@@ -4066,9 +4066,9 @@ async function qs(e) {
|
|
|
4066
4066
|
a && Object.keys(a).length > 0 && (s = Rt(s, a)), n && Object.keys(n).length > 0 && (s = Rt(s, n)), Js[e] = s, me.global.setLocaleMessage(e, s), Xs(e, s);
|
|
4067
4067
|
}
|
|
4068
4068
|
async function Ec(e = "/", t) {
|
|
4069
|
-
|
|
4069
|
+
za = e;
|
|
4070
4070
|
try {
|
|
4071
|
-
const n = await fetch(`${
|
|
4071
|
+
const n = await fetch(`${za}locales/languages.json`);
|
|
4072
4072
|
n.ok && (qt = await n.json());
|
|
4073
4073
|
} catch (n) {
|
|
4074
4074
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
@@ -4210,7 +4210,7 @@ ne($, "YesNo", []), /**
|
|
|
4210
4210
|
* - 女 F
|
|
4211
4211
|
*/
|
|
4212
4212
|
ne($, "MaleFemale", []);
|
|
4213
|
-
let
|
|
4213
|
+
let en = $, zs = "";
|
|
4214
4214
|
const ia = {
|
|
4215
4215
|
login: {
|
|
4216
4216
|
api: "PLATFORM_API",
|
|
@@ -4394,13 +4394,13 @@ const Si = (e) => {
|
|
|
4394
4394
|
yt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4395
4395
|
}
|
|
4396
4396
|
}, Ti = (e) => {
|
|
4397
|
-
const t =
|
|
4397
|
+
const t = hn();
|
|
4398
4398
|
if (t.TabEnabled) {
|
|
4399
4399
|
if (Li(e.key, t.TabPanes))
|
|
4400
4400
|
return;
|
|
4401
4401
|
t.TabPanes.push(e);
|
|
4402
4402
|
}
|
|
4403
|
-
}, Li = (e, t) => t.find((a) => a.key === e),
|
|
4403
|
+
}, Li = (e, t) => t.find((a) => a.key === e), hn = Dt("pageInfo", {
|
|
4404
4404
|
state: () => ({
|
|
4405
4405
|
TabActive: "",
|
|
4406
4406
|
TabPanes: [],
|
|
@@ -4596,8 +4596,8 @@ const Nt = {
|
|
|
4596
4596
|
AppCode: "",
|
|
4597
4597
|
Version: "",
|
|
4598
4598
|
Host: "",
|
|
4599
|
-
Source:
|
|
4600
|
-
Action:
|
|
4599
|
+
Source: Tn.Manual,
|
|
4600
|
+
Action: Sn.App,
|
|
4601
4601
|
Path: "",
|
|
4602
4602
|
Icon: "",
|
|
4603
4603
|
Routes: [],
|
|
@@ -4625,7 +4625,6 @@ const Nt = {
|
|
|
4625
4625
|
return qe(Oi.appList, {
|
|
4626
4626
|
Query: {
|
|
4627
4627
|
AppCode: this.appInfo.AppCode,
|
|
4628
|
-
Host: $a.SITE_HOST,
|
|
4629
4628
|
Enabled: 1
|
|
4630
4629
|
}
|
|
4631
4630
|
}).then((e) => {
|
|
@@ -4714,7 +4713,7 @@ const Nt = {
|
|
|
4714
4713
|
* @param path 路由地址
|
|
4715
4714
|
*/
|
|
4716
4715
|
push(e) {
|
|
4717
|
-
this.findRoute(e) &&
|
|
4716
|
+
this.findRoute(e) && hn().setTabActive(e), vr(() => {
|
|
4718
4717
|
if (ca.push({ path: e }), Fe()) {
|
|
4719
4718
|
const a = this.formatRoute(e);
|
|
4720
4719
|
Nt.mainAppPush(a);
|
|
@@ -4774,8 +4773,8 @@ const Nt = {
|
|
|
4774
4773
|
AppCode: "",
|
|
4775
4774
|
Version: "",
|
|
4776
4775
|
Host: "",
|
|
4777
|
-
Source:
|
|
4778
|
-
Action:
|
|
4776
|
+
Source: Tn.Manual,
|
|
4777
|
+
Action: Sn.App,
|
|
4779
4778
|
Path: "",
|
|
4780
4779
|
Icon: "",
|
|
4781
4780
|
Routes: [],
|
|
@@ -5021,7 +5020,7 @@ const Nt = {
|
|
|
5021
5020
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5022
5021
|
);
|
|
5023
5022
|
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ps : qe)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (ye().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
5024
|
-
},
|
|
5023
|
+
}, En = (e, t) => {
|
|
5025
5024
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5026
5025
|
const a = fa(e, t);
|
|
5027
5026
|
return t.url = a, da(e, t);
|
|
@@ -5049,7 +5048,7 @@ const Nt = {
|
|
|
5049
5048
|
return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5050
5049
|
const r = fa(e, s);
|
|
5051
5050
|
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));
|
|
5052
|
-
}, Ci = (e, t) =>
|
|
5051
|
+
}, Ci = (e, t) => En(e, {
|
|
5053
5052
|
urlKey: "tree",
|
|
5054
5053
|
params: {},
|
|
5055
5054
|
loadingState: e.isTreeLoading,
|
|
@@ -5194,10 +5193,10 @@ const Tc = (e) => {
|
|
|
5194
5193
|
return t.messages(ut.messages()), t.define(e), t;
|
|
5195
5194
|
}, Mt = async (e) => {
|
|
5196
5195
|
const t = e.formData.value, a = e.formRules.value;
|
|
5197
|
-
ve(a) || (
|
|
5196
|
+
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ut.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5198
5197
|
}).catch(({ fields: n }) => n));
|
|
5199
5198
|
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ut.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5200
|
-
}).catch(({ fields: n }) => n)),
|
|
5199
|
+
}).catch(({ fields: n }) => n)), vn = (e) => {
|
|
5201
5200
|
e.ruleResults.value = void 0;
|
|
5202
5201
|
}, ft = () => {
|
|
5203
5202
|
const e = nt(Re.EditorControl, void 0), t = w(nt(Re.LabelText, "")), a = w(nt(Re.RuleKey, "")), n = nt(Re.ErrInfo, void 0);
|
|
@@ -5277,11 +5276,11 @@ const Tc = (e) => {
|
|
|
5277
5276
|
const t = e.page, a = e.formData.value;
|
|
5278
5277
|
a[e.primaryKey ?? t.primaryKey] = null, sr(e);
|
|
5279
5278
|
}, kc = (e) => {
|
|
5280
|
-
|
|
5279
|
+
bn(e), e.visible.value = !1;
|
|
5281
5280
|
}, sr = async (e) => {
|
|
5282
5281
|
var n;
|
|
5283
5282
|
const t = e.page;
|
|
5284
|
-
if (e.isFormSaving.value = !0,
|
|
5283
|
+
if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
|
|
5285
5284
|
return e.isFormSaving.value = !1, Promise.resolve();
|
|
5286
5285
|
if (e.formRules.value && await Mt(e), e.ruleResults.value)
|
|
5287
5286
|
return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
@@ -5338,15 +5337,15 @@ const Tc = (e) => {
|
|
|
5338
5337
|
});
|
|
5339
5338
|
}, Cc = (e) => {
|
|
5340
5339
|
const t = e.grid;
|
|
5341
|
-
t && (t.rowData.value = void 0), e && (
|
|
5340
|
+
t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5342
5341
|
e.visible.value = !0;
|
|
5343
5342
|
}, 1));
|
|
5344
5343
|
}, rr = (e, t) => {
|
|
5345
|
-
|
|
5344
|
+
bn(e);
|
|
5346
5345
|
const a = { ...e.formData.value, ...t };
|
|
5347
5346
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5348
|
-
},
|
|
5349
|
-
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {},
|
|
5347
|
+
}, bn = (e) => {
|
|
5348
|
+
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5350
5349
|
}, Fc = (e, t) => {
|
|
5351
5350
|
const a = ye();
|
|
5352
5351
|
return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ca.currentRoute.value.path, s.permit) || s.enabled === !1 ? !1 : typeof s.enabled == "function" ? s.enabled() : !0).filter((s) => {
|
|
@@ -5370,7 +5369,7 @@ const Tc = (e) => {
|
|
|
5370
5369
|
var a, n, s, r;
|
|
5371
5370
|
e.gridQuery || (e.gridQuery = {});
|
|
5372
5371
|
const t = e.remotePage ? "find" : "list";
|
|
5373
|
-
return
|
|
5372
|
+
return En(e, {
|
|
5374
5373
|
urlKey: t,
|
|
5375
5374
|
url: {
|
|
5376
5375
|
url: ((a = e.gridUrl) == null ? void 0 : a.url) || "",
|
|
@@ -5417,7 +5416,7 @@ const Tc = (e) => {
|
|
|
5417
5416
|
loadingText: !1,
|
|
5418
5417
|
hideErrorToast: !0
|
|
5419
5418
|
});
|
|
5420
|
-
}, lr = async (e, t, a) => await
|
|
5419
|
+
}, lr = async (e, t, a) => await En(e, {
|
|
5421
5420
|
urlKey: "detail",
|
|
5422
5421
|
url: a,
|
|
5423
5422
|
params: t,
|
|
@@ -5434,14 +5433,14 @@ const Tc = (e) => {
|
|
|
5434
5433
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5435
5434
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5436
5435
|
}, 50), a));
|
|
5437
|
-
var
|
|
5436
|
+
var tn = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(tn || {});
|
|
5438
5437
|
class Hi {
|
|
5439
5438
|
constructor() {
|
|
5440
5439
|
ne(this, "listeners", {});
|
|
5441
5440
|
}
|
|
5442
5441
|
// 检查事件名是否符合前缀
|
|
5443
5442
|
isValidPrefix(t) {
|
|
5444
|
-
return Object.values(
|
|
5443
|
+
return Object.values(tn).some((a) => t.startsWith(a + "."));
|
|
5445
5444
|
}
|
|
5446
5445
|
/**
|
|
5447
5446
|
* 事件订阅
|
|
@@ -5450,7 +5449,7 @@ class Hi {
|
|
|
5450
5449
|
*/
|
|
5451
5450
|
on(t, a) {
|
|
5452
5451
|
if (!this.isValidPrefix(t)) {
|
|
5453
|
-
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(
|
|
5452
|
+
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(tn).join(", ")} 开头`);
|
|
5454
5453
|
return;
|
|
5455
5454
|
}
|
|
5456
5455
|
this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push(a);
|
|
@@ -5492,7 +5491,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5492
5491
|
B(
|
|
5493
5492
|
() => a.data,
|
|
5494
5493
|
() => {
|
|
5495
|
-
|
|
5494
|
+
In(t, a.data, !0);
|
|
5496
5495
|
},
|
|
5497
5496
|
{ deep: !0, immediate: !0 }
|
|
5498
5497
|
);
|
|
@@ -5504,7 +5503,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5504
5503
|
duration: 5e3
|
|
5505
5504
|
});
|
|
5506
5505
|
}
|
|
5507
|
-
},
|
|
5506
|
+
}, In = (e, t, a) => {
|
|
5508
5507
|
if (a) {
|
|
5509
5508
|
const n = {
|
|
5510
5509
|
...e.fieldMap
|
|
@@ -5516,14 +5515,14 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5516
5515
|
value: e.allValue ?? void 0
|
|
5517
5516
|
}), e.options.value = t;
|
|
5518
5517
|
}, Wi = (e, t, a) => {
|
|
5519
|
-
Array.isArray(a) ?
|
|
5518
|
+
Array.isArray(a) ? In(t, a, !0) : ir(e, t, a);
|
|
5520
5519
|
}, Ut = (e, t) => {
|
|
5521
5520
|
var a;
|
|
5522
5521
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && st.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5523
5522
|
}, ir = (e, t, a) => {
|
|
5524
5523
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Ct(n, s, a);
|
|
5525
5524
|
Gi(e, t, t.fieldMap, r).then((o) => {
|
|
5526
|
-
|
|
5525
|
+
In(t, o, !1);
|
|
5527
5526
|
});
|
|
5528
5527
|
}, Gi = (e, t, a, n) => {
|
|
5529
5528
|
const { fieldMap: s, ...r } = e, l = {
|
|
@@ -5805,7 +5804,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5805
5804
|
};
|
|
5806
5805
|
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), us = /* @__PURE__ */ new Set(), Ke = w({}), Kc = Ke, Yc = (e) => {
|
|
5807
5806
|
var s;
|
|
5808
|
-
if (!e.iconUrl) return
|
|
5807
|
+
if (!e.iconUrl) return an;
|
|
5809
5808
|
const t = w(!0), a = w("");
|
|
5810
5809
|
let n = !0;
|
|
5811
5810
|
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) && Ji(e, t).then(() => {
|
|
@@ -5867,7 +5866,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5867
5866
|
},
|
|
5868
5867
|
render() {
|
|
5869
5868
|
if (!t.value)
|
|
5870
|
-
return
|
|
5869
|
+
return an;
|
|
5871
5870
|
let r = this.class, o = "";
|
|
5872
5871
|
Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
|
|
5873
5872
|
let l = [o];
|
|
@@ -5951,7 +5950,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5951
5950
|
setTimeout(() => {
|
|
5952
5951
|
t.value = a, t.value && (e.value = Ke.value[t.value]);
|
|
5953
5952
|
}, 1);
|
|
5954
|
-
},
|
|
5953
|
+
}, an = Ie(
|
|
5955
5954
|
"svg",
|
|
5956
5955
|
{ class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
|
|
5957
5956
|
[
|
|
@@ -6011,7 +6010,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6011
6010
|
}, fs = br([]), Jc = () => {
|
|
6012
6011
|
fs.length = 0;
|
|
6013
6012
|
const e = Me();
|
|
6014
|
-
let a =
|
|
6013
|
+
let a = hn().TabActive;
|
|
6015
6014
|
e.matchedRoutes(a).forEach((s, r) => {
|
|
6016
6015
|
var l;
|
|
6017
6016
|
const o = {
|
|
@@ -6054,7 +6053,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6054
6053
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6055
6054
|
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6056
6055
|
const s = t || window.location.origin;
|
|
6057
|
-
|
|
6056
|
+
Ln.SITE_HOST = s, qe(Zs.host, {
|
|
6058
6057
|
Query: {
|
|
6059
6058
|
Host: s
|
|
6060
6059
|
}
|
|
@@ -6097,7 +6096,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6097
6096
|
if (this.hostInfo.SERVER_HOST)
|
|
6098
6097
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
6099
6098
|
let a = this.hostInfo.SERVER_HOST[t];
|
|
6100
|
-
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a,
|
|
6099
|
+
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a, Ln[t] = a;
|
|
6101
6100
|
}
|
|
6102
6101
|
},
|
|
6103
6102
|
getHostInfo() {
|
|
@@ -6332,7 +6331,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6332
6331
|
class: "w-full mb-[-3px]"
|
|
6333
6332
|
}, X(n)), {
|
|
6334
6333
|
default: Ue(() => [
|
|
6335
|
-
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 },
|
|
6334
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (d) => {
|
|
6336
6335
|
var _;
|
|
6337
6336
|
return le(), zt(X(Lr), {
|
|
6338
6337
|
key: d.value,
|
|
@@ -6437,7 +6436,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6437
6436
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6438
6437
|
}, X(n)), {
|
|
6439
6438
|
default: Ue(() => [
|
|
6440
|
-
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 },
|
|
6439
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (I) => {
|
|
6441
6440
|
var E;
|
|
6442
6441
|
return le(), ge(Ye, {
|
|
6443
6442
|
key: I.value
|
|
@@ -6573,7 +6572,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6573
6572
|
value: "Id",
|
|
6574
6573
|
key: "Id"
|
|
6575
6574
|
}), a.dataKey) {
|
|
6576
|
-
const b = JSON.parse(JSON.stringify(
|
|
6575
|
+
const b = JSON.parse(JSON.stringify(en.getOptions(a.dataKey)));
|
|
6577
6576
|
O.value = b, d(b);
|
|
6578
6577
|
} else if (c) {
|
|
6579
6578
|
const b = c.options.value || [];
|
|
@@ -6585,7 +6584,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6585
6584
|
var v, C, M;
|
|
6586
6585
|
return le(), ge("div", null, [
|
|
6587
6586
|
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", sc, [
|
|
6588
|
-
Be(X(
|
|
6587
|
+
Be(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6589
6588
|
Ir("span", null, je(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6590
6589
|
])) : ot("", !0),
|
|
6591
6590
|
Be(X(Pr), kt({
|
|
@@ -6598,7 +6597,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6598
6597
|
"label-in-value": !1
|
|
6599
6598
|
}, X(m)), {
|
|
6600
6599
|
default: Ue(() => [
|
|
6601
|
-
(le(!0), ge(Ye, null,
|
|
6600
|
+
(le(!0), ge(Ye, null, nn(O.value, (K) => (le(), ge(Ye, {
|
|
6602
6601
|
key: K.value
|
|
6603
6602
|
}, [
|
|
6604
6603
|
K.visible !== !1 ? (le(), zt(X(Rr), {
|
|
@@ -6635,14 +6634,14 @@ export {
|
|
|
6635
6634
|
la as E,
|
|
6636
6635
|
Zc as F,
|
|
6637
6636
|
eu as G,
|
|
6638
|
-
|
|
6637
|
+
En as H,
|
|
6639
6638
|
Ur as I,
|
|
6640
6639
|
yc as J,
|
|
6641
6640
|
Hc as K,
|
|
6642
6641
|
ua as L,
|
|
6643
6642
|
Nt as M,
|
|
6644
6643
|
Yi as N,
|
|
6645
|
-
|
|
6644
|
+
en as O,
|
|
6646
6645
|
Re as P,
|
|
6647
6646
|
Bi as Q,
|
|
6648
6647
|
Wc as R,
|
|
@@ -6663,7 +6662,7 @@ export {
|
|
|
6663
6662
|
rr as a4,
|
|
6664
6663
|
Tc as a5,
|
|
6665
6664
|
Ac as a6,
|
|
6666
|
-
|
|
6665
|
+
vn as a7,
|
|
6667
6666
|
Lc as a8,
|
|
6668
6667
|
Oc as a9,
|
|
6669
6668
|
Mc as aa,
|
|
@@ -6673,13 +6672,13 @@ export {
|
|
|
6673
6672
|
Nc as ae,
|
|
6674
6673
|
nr as af,
|
|
6675
6674
|
Di as ag,
|
|
6676
|
-
|
|
6675
|
+
tn as ah,
|
|
6677
6676
|
st as ai,
|
|
6678
6677
|
yt as aj,
|
|
6679
6678
|
Jt as ak,
|
|
6680
6679
|
Me as al,
|
|
6681
6680
|
Qc as am,
|
|
6682
|
-
|
|
6681
|
+
hn as an,
|
|
6683
6682
|
rc as ao,
|
|
6684
6683
|
tu as ap,
|
|
6685
6684
|
me as aq,
|
|
@@ -6712,5 +6711,5 @@ export {
|
|
|
6712
6711
|
xt as w,
|
|
6713
6712
|
pt as x,
|
|
6714
6713
|
Ut as y,
|
|
6715
|
-
|
|
6714
|
+
an as z
|
|
6716
6715
|
};
|