@skyfox2000/webui 1.5.20 → 1.5.22
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-CLWorNtQ.js → baseLayout-BbWv6Njy.js} +3 -3
- package/lib/assets/modules/{file-upload-CpTDROv6.js → file-upload-czkP0_KZ.js} +1 -1
- package/lib/assets/modules/{index-BPkIfeL2.js → index-BM6-4CHA.js} +2 -2
- package/lib/assets/modules/{index-DhwX_8DI.js → index-CnrS4kfC.js} +2 -2
- package/lib/assets/modules/{index-PnsEwJ_e.js → index-D62pvKsu.js} +1 -1
- package/lib/assets/modules/{menuTabs-XbW0Xz-k.js → menuTabs-DA2V4Fdt.js} +2 -2
- package/lib/assets/modules/{toolIcon-BN8AWlHl.js → toolIcon-BPUk821a.js} +1 -1
- package/lib/assets/modules/{upload-template-Bk6atnPk.js → upload-template-1qHFUTUu.js} +743 -736
- package/lib/assets/modules/{uploadList-CIeqOE9n.js → uploadList-BVcO1MPp.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/locales/default.d.ts +1 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +14 -14
- package/package.json +1 -1
- package/src/components/form/select/index.vue +0 -2
- package/src/locales/default.ts +2 -1
- package/src/utils/data.ts +4 -3
- package/src/utils/options.ts +4 -1
- package/src/utils/table.ts +7 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (e, t, a) =>
|
|
1
|
+
var mr = Object.defineProperty;
|
|
2
|
+
var pr = (e, t, a) => t in e ? mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var ne = (e, t, a) => pr(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as wa from "vue";
|
|
5
|
-
import { effectScope as
|
|
6
|
-
import { Switch as
|
|
7
|
-
import { createPinia as
|
|
8
|
-
import
|
|
9
|
-
import { EnvConfig as Jt, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as
|
|
10
|
-
import { httpPost as Xe, ResStatus as ie, setToken as Ht, fieldMapping as
|
|
5
|
+
import { effectScope as _r, ref as w, shallowRef as ke, computed as et, watch as B, isRef as gr, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ft, createVNode as Ye, Text as hr, nextTick as Er, provide as ka, toRaw as fs, reactive as vr, 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 br } from "vue";
|
|
6
|
+
import { Switch as yr, AutoComplete as Ir, Input as Nr, CheckboxGroup as Sr, Checkbox as Tr, RadioGroup as Lr, Radio as Or, Select as Ar, SelectOption as Pr } from "ant-design-vue";
|
|
7
|
+
import { createPinia as Rr, defineStore as kt } from "pinia";
|
|
8
|
+
import wr from "pinia-plugin-persistedstate";
|
|
9
|
+
import { EnvConfig as Jt, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as kr, combineParams as Dt } from "@skyfox2000/microbase";
|
|
10
|
+
import { httpPost as Xe, ResStatus as ie, setToken as Ht, httpGet as ms, fieldMapping as Dr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Cr } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
|
-
import { createRouter as
|
|
12
|
+
import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
|
|
13
13
|
import aa from "async-validator";
|
|
14
14
|
import "dayjs";
|
|
15
15
|
import "vue-draggable-next";
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const Ur = Rr();
|
|
17
|
+
Ur.use(wr);
|
|
18
18
|
var Re = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(Re || {});
|
|
19
19
|
/*!
|
|
20
20
|
* shared v11.2.7
|
|
@@ -39,11 +39,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
39
39
|
e.measure(t, a, n), e.clearMarks(a), e.clearMarks(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const xr = /\{([0-9a-zA-Z]+)\}/g;
|
|
43
43
|
function na(e, ...t) {
|
|
44
|
-
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
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),
|
|
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]", ot = (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 On;
|
|
48
48
|
const We = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
49
|
function An(e) {
|
|
@@ -52,7 +52,7 @@ function An(e) {
|
|
|
52
52
|
function Pn(e) {
|
|
53
53
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Gr(e) {
|
|
56
56
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${Pn(r)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (n, s, r) => `${s}='${Pn(r)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Le("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
57
57
|
// In href, src, action, formaction attributes
|
|
58
58
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -62,16 +62,16 @@ function Wr(e) {
|
|
|
62
62
|
e = e.replace(n, "$1javascript:");
|
|
63
63
|
}), e;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const Kr = Object.prototype.hasOwnProperty;
|
|
66
66
|
function be(e, t) {
|
|
67
|
-
return
|
|
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",
|
|
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), ps = Object.prototype.toString, rn = (e) => ps.call(e), F = (e) => rn(e) === "[object Object]", Br = (e) => e == null ? "" : J(e) || F(e) && e.toString === ps ? JSON.stringify(e, null, 2) : String(e);
|
|
70
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 Rn = 2;
|
|
74
|
-
function
|
|
74
|
+
function jr(e, t = 0, a = e.length) {
|
|
75
75
|
const n = e.split(/\r?\n/);
|
|
76
76
|
let s = 0;
|
|
77
77
|
const r = [];
|
|
@@ -133,7 +133,7 @@ function Bt(e, t) {
|
|
|
133
133
|
* (c) 2025 kazuya kawaguchi
|
|
134
134
|
* Released under the MIT License.
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
136
|
+
function Jr(e, t, a) {
|
|
137
137
|
return { line: e, column: t, offset: a };
|
|
138
138
|
}
|
|
139
139
|
function $a(e, t, a) {
|
|
@@ -160,7 +160,7 @@ const D = {
|
|
|
160
160
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
161
161
|
// minifier error codes
|
|
162
162
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
163
|
-
},
|
|
163
|
+
}, Qr = 17, Xr = {
|
|
164
164
|
// tokenizer error messages
|
|
165
165
|
[D.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
166
166
|
[D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -183,18 +183,18 @@ const D = {
|
|
|
183
183
|
[D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
184
184
|
};
|
|
185
185
|
function dt(e, t, a = {}) {
|
|
186
|
-
const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s ||
|
|
186
|
+
const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s || Xr)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
|
|
187
187
|
return l.code = e, t && (l.location = t), l.domain = n, l;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function qr(e) {
|
|
190
190
|
throw e;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
`,
|
|
194
|
-
function
|
|
192
|
+
const zr = /<\/?[\w\s="/.':;#-\/]+>/, Zr = (e) => zr.test(e), Se = " ", eo = "\r", re = `
|
|
193
|
+
`, to = "\u2028", ao = "\u2029";
|
|
194
|
+
function no(e) {
|
|
195
195
|
const t = e;
|
|
196
196
|
let a = 0, n = 1, s = 1, r = 0;
|
|
197
|
-
const o = (v) => t[v] ===
|
|
197
|
+
const o = (v) => t[v] === eo && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === ao, c = (v) => t[v] === to, 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:
|
|
220
|
+
peekOffset: R,
|
|
221
221
|
charAt: S,
|
|
222
222
|
currentChar: O,
|
|
223
223
|
currentPeek: d,
|
|
@@ -228,9 +228,9 @@ function ao(e) {
|
|
|
228
228
|
skipToPeek: L
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const Pe = void 0,
|
|
232
|
-
function
|
|
233
|
-
const a = t.location !== !1, n =
|
|
231
|
+
const Pe = void 0, so = ".", wn = "'", ro = "tokenizer";
|
|
232
|
+
function oo(e, t = {}) {
|
|
233
|
+
const a = t.location !== !1, n = no(e), s = () => n.index(), r = () => Jr(n.line(), n.column(), n.index()), o = r(), l = s(), i = {
|
|
234
234
|
currentType: 13,
|
|
235
235
|
offset: l,
|
|
236
236
|
startLoc: o,
|
|
@@ -247,7 +247,7 @@ function ro(e, t = {}) {
|
|
|
247
247
|
const j = c();
|
|
248
248
|
if (f.column += N, f.offset += N, m) {
|
|
249
249
|
const q = a ? $a(j.startLoc, f) : null, V = dt(u, q, {
|
|
250
|
-
domain:
|
|
250
|
+
domain: ro,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
253
253
|
m(V);
|
|
@@ -263,7 +263,7 @@ function ro(e, t = {}) {
|
|
|
263
263
|
13
|
|
264
264
|
/* TokenTypes.EOF */
|
|
265
265
|
);
|
|
266
|
-
function
|
|
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),
|
|
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(),
|
|
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
|
-
|
|
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 =
|
|
511
|
+
const f = R(
|
|
512
512
|
u,
|
|
513
513
|
"|"
|
|
514
514
|
/* TokenChars.Pipe */
|
|
@@ -629,8 +629,8 @@ function ro(e, t = {}) {
|
|
|
629
629
|
context: c
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
const
|
|
633
|
-
function
|
|
632
|
+
const lo = "parser", io = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
633
|
+
function co(e, t, a) {
|
|
634
634
|
switch (e) {
|
|
635
635
|
case "\\\\":
|
|
636
636
|
return "\\";
|
|
@@ -643,13 +643,13 @@ function io(e, t, a) {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function uo(e = {}) {
|
|
647
647
|
const t = e.location !== !1, { onError: a } = e;
|
|
648
648
|
function n(d, _, y, E, ...b) {
|
|
649
649
|
const L = d.currentPosition();
|
|
650
650
|
if (L.offset += E, L.column += E, a) {
|
|
651
651
|
const v = t ? $a(y, L) : null, C = dt(_, v, {
|
|
652
|
-
domain:
|
|
652
|
+
domain: lo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
655
655
|
a(C);
|
|
@@ -676,7 +676,7 @@ function co(e = {}) {
|
|
|
676
676
|
}
|
|
677
677
|
function c(d, _) {
|
|
678
678
|
const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(9, E, b);
|
|
679
|
-
return L.value = _.replace(
|
|
679
|
+
return L.value = _.replace(io, co), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
680
680
|
}
|
|
681
681
|
function m(d) {
|
|
682
682
|
const _ = d.nextToken(), y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(8, E, b);
|
|
@@ -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
|
|
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,10 +766,10 @@ 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 :
|
|
769
|
+
return _.currentType === 13 ? b : R(d, y, E, b);
|
|
770
770
|
}
|
|
771
771
|
function O(d) {
|
|
772
|
-
const _ =
|
|
772
|
+
const _ = oo(d, te({}, e)), y = _.context(), E = s(0, y.offset, y.startLoc);
|
|
773
773
|
return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), y.currentType !== 13 && n(_, D.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, d[y.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
|
|
774
774
|
}
|
|
775
775
|
return { parse: O };
|
|
@@ -780,7 +780,7 @@ function Te(e) {
|
|
|
780
780
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
781
781
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function fo(e, t = {}) {
|
|
784
784
|
const a = {
|
|
785
785
|
ast: e,
|
|
786
786
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -832,8 +832,8 @@ function cn(e, t) {
|
|
|
832
832
|
break;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
const a =
|
|
835
|
+
function mo(e, t = {}) {
|
|
836
|
+
const a = fo(e);
|
|
837
837
|
a.helper(
|
|
838
838
|
"normalize"
|
|
839
839
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -841,7 +841,7 @@ function fo(e, t = {}) {
|
|
|
841
841
|
const n = a.context();
|
|
842
842
|
e.helpers = Array.from(n.helpers);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function po(e) {
|
|
845
845
|
const t = e.body;
|
|
846
846
|
return t.type === 2 ? Dn(t) : t.cases.forEach((a) => Dn(a)), e;
|
|
847
847
|
}
|
|
@@ -866,7 +866,7 @@ function Dn(e) {
|
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
const
|
|
869
|
+
const _o = "minifier";
|
|
870
870
|
function tt(e) {
|
|
871
871
|
switch (e.t = e.type, e.type) {
|
|
872
872
|
case 0: {
|
|
@@ -914,14 +914,14 @@ function tt(e) {
|
|
|
914
914
|
default:
|
|
915
915
|
if (process.env.NODE_ENV !== "production")
|
|
916
916
|
throw dt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
917
|
-
domain:
|
|
917
|
+
domain: _o,
|
|
918
918
|
args: [e.type]
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
delete e.type;
|
|
922
922
|
}
|
|
923
|
-
const
|
|
924
|
-
function
|
|
923
|
+
const go = "parser";
|
|
924
|
+
function ho(e, t) {
|
|
925
925
|
const { filename: a, breakLineCode: n, needIndent: s } = t, r = t.location !== !1, o = {
|
|
926
926
|
filename: a,
|
|
927
927
|
code: "",
|
|
@@ -963,14 +963,14 @@ function go(e, t) {
|
|
|
963
963
|
needIndent: () => o.needIndent
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Eo(e, t) {
|
|
967
967
|
const { helper: a } = e;
|
|
968
968
|
e.push(`${a(
|
|
969
969
|
"linked"
|
|
970
970
|
/* HelperNameMap.LINKED */
|
|
971
971
|
)}(`), lt(e, t.key), t.modifier ? (e.push(", "), lt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function vo(e, t) {
|
|
974
974
|
const { helper: a, needIndent: n } = e;
|
|
975
975
|
e.push(`${a(
|
|
976
976
|
"normalize"
|
|
@@ -981,7 +981,7 @@ function Eo(e, t) {
|
|
|
981
981
|
e.push(", ");
|
|
982
982
|
e.deindent(n()), e.push("])");
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function bo(e, t) {
|
|
985
985
|
const { helper: a, needIndent: n } = e;
|
|
986
986
|
if (t.cases.length > 1) {
|
|
987
987
|
e.push(`${a(
|
|
@@ -994,23 +994,23 @@ function vo(e, t) {
|
|
|
994
994
|
e.deindent(n()), e.push("])");
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function yo(e, t) {
|
|
998
998
|
t.body ? lt(e, t.body) : e.push("null");
|
|
999
999
|
}
|
|
1000
1000
|
function lt(e, t) {
|
|
1001
1001
|
const { helper: a } = e;
|
|
1002
1002
|
switch (t.type) {
|
|
1003
1003
|
case 0:
|
|
1004
|
-
|
|
1004
|
+
yo(e, t);
|
|
1005
1005
|
break;
|
|
1006
1006
|
case 1:
|
|
1007
|
-
|
|
1007
|
+
bo(e, t);
|
|
1008
1008
|
break;
|
|
1009
1009
|
case 2:
|
|
1010
|
-
|
|
1010
|
+
vo(e, t);
|
|
1011
1011
|
break;
|
|
1012
1012
|
case 6:
|
|
1013
|
-
|
|
1013
|
+
Eo(e, t);
|
|
1014
1014
|
break;
|
|
1015
1015
|
case 8:
|
|
1016
1016
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1045,16 +1045,16 @@ function lt(e, t) {
|
|
|
1045
1045
|
default:
|
|
1046
1046
|
if (process.env.NODE_ENV !== "production")
|
|
1047
1047
|
throw dt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1048
|
-
domain:
|
|
1048
|
+
domain: go,
|
|
1049
1049
|
args: [t.type]
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const Io = (e, t = {}) => {
|
|
1054
1054
|
const a = A(t.mode) ? t.mode : "normal", n = A(t.filename) ? t.filename : "message.intl";
|
|
1055
1055
|
t.sourceMap;
|
|
1056
1056
|
const s = t.breakLineCode != null ? t.breakLineCode : a === "arrow" ? ";" : `
|
|
1057
|
-
`, r = t.needIndent ? t.needIndent : a !== "arrow", o = e.helpers || [], l =
|
|
1057
|
+
`, r = t.needIndent ? t.needIndent : a !== "arrow", o = e.helpers || [], l = ho(e, {
|
|
1058
1058
|
filename: n,
|
|
1059
1059
|
breakLineCode: s,
|
|
1060
1060
|
needIndent: r
|
|
@@ -1068,55 +1068,55 @@ const yo = (e, t = {}) => {
|
|
|
1068
1068
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1069
1069
|
};
|
|
1070
1070
|
};
|
|
1071
|
-
function
|
|
1072
|
-
const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l =
|
|
1073
|
-
return n ? (r &&
|
|
1071
|
+
function No(e, t = {}) {
|
|
1072
|
+
const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l = uo(a).parse(e);
|
|
1073
|
+
return n ? (r && po(l), s && tt(l), { ast: l, code: "" }) : (mo(l, a), Io(l, a));
|
|
1074
1074
|
}
|
|
1075
1075
|
/*!
|
|
1076
1076
|
* core-base v11.2.7
|
|
1077
1077
|
* (c) 2025 kazuya kawaguchi
|
|
1078
1078
|
* Released under the MIT License.
|
|
1079
1079
|
*/
|
|
1080
|
-
function
|
|
1080
|
+
function So() {
|
|
1081
1081
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (We().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (We().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1082
1082
|
}
|
|
1083
1083
|
function he(e) {
|
|
1084
1084
|
return U(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1087
|
-
function So(e) {
|
|
1088
|
-
return Ue(e, ps);
|
|
1089
|
-
}
|
|
1090
|
-
const _s = ["c", "cases"];
|
|
1086
|
+
const _s = ["b", "body"];
|
|
1091
1087
|
function To(e) {
|
|
1092
|
-
return Ue(e, _s
|
|
1088
|
+
return Ue(e, _s);
|
|
1093
1089
|
}
|
|
1094
|
-
const gs = ["
|
|
1090
|
+
const gs = ["c", "cases"];
|
|
1095
1091
|
function Lo(e) {
|
|
1096
|
-
return Ue(e, gs);
|
|
1092
|
+
return Ue(e, gs, []);
|
|
1097
1093
|
}
|
|
1098
|
-
const hs = ["
|
|
1094
|
+
const hs = ["s", "static"];
|
|
1099
1095
|
function Oo(e) {
|
|
1100
|
-
return Ue(e, hs
|
|
1096
|
+
return Ue(e, hs);
|
|
1097
|
+
}
|
|
1098
|
+
const Es = ["i", "items"];
|
|
1099
|
+
function Ao(e) {
|
|
1100
|
+
return Ue(e, Es, []);
|
|
1101
1101
|
}
|
|
1102
|
-
const
|
|
1102
|
+
const vs = ["t", "type"];
|
|
1103
1103
|
function un(e) {
|
|
1104
|
-
return Ue(e,
|
|
1104
|
+
return Ue(e, vs);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const bs = ["v", "value"];
|
|
1107
1107
|
function Gt(e, t) {
|
|
1108
|
-
const a = Ue(e,
|
|
1108
|
+
const a = Ue(e, bs);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
1111
|
throw Nt(t);
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1114
|
-
function Ao(e) {
|
|
1115
|
-
return Ue(e, bs);
|
|
1116
|
-
}
|
|
1117
|
-
const ys = ["k", "key"];
|
|
1113
|
+
const ys = ["m", "modifier"];
|
|
1118
1114
|
function Po(e) {
|
|
1119
|
-
|
|
1115
|
+
return Ue(e, ys);
|
|
1116
|
+
}
|
|
1117
|
+
const Is = ["k", "key"];
|
|
1118
|
+
function Ro(e) {
|
|
1119
|
+
const t = Ue(e, Is);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
1122
|
throw Nt(
|
|
@@ -1132,31 +1132,31 @@ function Ue(e, t, a) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
return a;
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1136
|
-
...ps,
|
|
1135
|
+
const Ns = [
|
|
1137
1136
|
..._s,
|
|
1138
1137
|
...gs,
|
|
1139
1138
|
...hs,
|
|
1139
|
+
...Es,
|
|
1140
|
+
...Is,
|
|
1140
1141
|
...ys,
|
|
1141
1142
|
...bs,
|
|
1142
|
-
...vs
|
|
1143
|
-
...Es
|
|
1143
|
+
...vs
|
|
1144
1144
|
];
|
|
1145
1145
|
function Nt(e) {
|
|
1146
1146
|
return new Error(`unhandled node type: ${e}`);
|
|
1147
1147
|
}
|
|
1148
1148
|
function Ca(e) {
|
|
1149
|
-
return (a) =>
|
|
1149
|
+
return (a) => wo(a, e);
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const a =
|
|
1151
|
+
function wo(e, t) {
|
|
1152
|
+
const a = To(t);
|
|
1153
1153
|
if (a == null)
|
|
1154
1154
|
throw Nt(
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
1158
1158
|
if (un(a) === 1) {
|
|
1159
|
-
const r =
|
|
1159
|
+
const r = Lo(a);
|
|
1160
1160
|
return e.plural(r.reduce((o, l) => [
|
|
1161
1161
|
...o,
|
|
1162
1162
|
Cn(e, l)
|
|
@@ -1165,11 +1165,11 @@ function Ro(e, t) {
|
|
|
1165
1165
|
return Cn(e, a);
|
|
1166
1166
|
}
|
|
1167
1167
|
function Cn(e, t) {
|
|
1168
|
-
const a =
|
|
1168
|
+
const a = Oo(t);
|
|
1169
1169
|
if (a != null)
|
|
1170
1170
|
return e.type === "text" ? a : e.normalize([a]);
|
|
1171
1171
|
{
|
|
1172
|
-
const n =
|
|
1172
|
+
const n = Ao(t).reduce((s, r) => [...s, Ha(e, r)], []);
|
|
1173
1173
|
return e.normalize(n);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
@@ -1197,7 +1197,7 @@ function Ha(e, t) {
|
|
|
1197
1197
|
throw Nt(a);
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
|
-
const n = t, s =
|
|
1200
|
+
const n = t, s = Po(n), r = Ro(n);
|
|
1201
1201
|
return e.linked(Ha(e, r), s ? Ha(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
@@ -1208,28 +1208,28 @@ function Ha(e, t) {
|
|
|
1208
1208
|
throw new Error(`unhandled node on format message part: ${a}`);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1212
|
-
function
|
|
1213
|
-
t &&
|
|
1211
|
+
const ko = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1212
|
+
function Do(e, t) {
|
|
1213
|
+
t && Zr(e) && Le(na(ko, { source: e }));
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const Co = (e) => e;
|
|
1216
1216
|
let Kt = W();
|
|
1217
|
-
function
|
|
1217
|
+
function Fo(e, t = {}) {
|
|
1218
1218
|
let a = !1;
|
|
1219
|
-
const n = t.onError ||
|
|
1219
|
+
const n = t.onError || qr;
|
|
1220
1220
|
return t.onError = (s) => {
|
|
1221
1221
|
a = !0, n(s);
|
|
1222
|
-
}, { ...
|
|
1222
|
+
}, { ...No(e, t), detectError: a };
|
|
1223
1223
|
}
|
|
1224
1224
|
// @__NO_SIDE_EFFECTS__
|
|
1225
|
-
function
|
|
1225
|
+
function Mo(e, t) {
|
|
1226
1226
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
|
|
1227
1227
|
const a = x(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1228
|
-
process.env.NODE_ENV !== "production" &&
|
|
1229
|
-
const s = (t.onCacheKey ||
|
|
1228
|
+
process.env.NODE_ENV !== "production" && Do(e, a);
|
|
1229
|
+
const s = (t.onCacheKey || Co)(e), r = Kt[s];
|
|
1230
1230
|
if (r)
|
|
1231
1231
|
return r;
|
|
1232
|
-
const { ast: o, detectError: l } =
|
|
1232
|
+
const { ast: o, detectError: l } = Fo(e, {
|
|
1233
1233
|
...t,
|
|
1234
1234
|
location: process.env.NODE_ENV !== "production",
|
|
1235
1235
|
jit: !0
|
|
@@ -1247,10 +1247,10 @@ function Fo(e, t) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
let St = null;
|
|
1250
|
-
function
|
|
1250
|
+
function Uo(e) {
|
|
1251
1251
|
St = e;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function xo(e, t, a) {
|
|
1254
1254
|
St && St.emit("i18n:init", {
|
|
1255
1255
|
timestamp: Date.now(),
|
|
1256
1256
|
i18n: e,
|
|
@@ -1258,12 +1258,12 @@ function Uo(e, t, a) {
|
|
|
1258
1258
|
meta: a
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
|
-
const
|
|
1262
|
-
function
|
|
1261
|
+
const Vo = /* @__PURE__ */ $o("function:translate");
|
|
1262
|
+
function $o(e) {
|
|
1263
1263
|
return (t) => St && St.emit(e, t);
|
|
1264
1264
|
}
|
|
1265
1265
|
const oe = {
|
|
1266
|
-
INVALID_ARGUMENT:
|
|
1266
|
+
INVALID_ARGUMENT: Qr,
|
|
1267
1267
|
// 17
|
|
1268
1268
|
INVALID_DATE_ARGUMENT: 18,
|
|
1269
1269
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1271,11 +1271,11 @@ const oe = {
|
|
|
1271
1271
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1272
1272
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1273
1273
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1274
|
-
},
|
|
1274
|
+
}, Ho = 24;
|
|
1275
1275
|
function we(e) {
|
|
1276
|
-
return dt(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1276
|
+
return dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Wo } : void 0);
|
|
1277
1277
|
}
|
|
1278
|
-
const
|
|
1278
|
+
const Wo = {
|
|
1279
1279
|
[oe.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1280
1280
|
[oe.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1281
1281
|
[oe.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1296,7 +1296,7 @@ function Fn(e) {
|
|
|
1296
1296
|
return Fa;
|
|
1297
1297
|
if (e.constructor.name === "Function") {
|
|
1298
1298
|
const t = e();
|
|
1299
|
-
if (
|
|
1299
|
+
if (Yr(t))
|
|
1300
1300
|
throw we(oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1301
1301
|
return Fa = t;
|
|
1302
1302
|
} else
|
|
@@ -1304,13 +1304,13 @@ function Fn(e) {
|
|
|
1304
1304
|
} else
|
|
1305
1305
|
throw we(oe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Go(e, t, a) {
|
|
1308
1308
|
return [.../* @__PURE__ */ new Set([
|
|
1309
1309
|
a,
|
|
1310
1310
|
...J(t) ? t : U(t) ? Object.keys(t) : A(t) ? [t] : [a]
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ss(e, t, a) {
|
|
1314
1314
|
const n = A(a) ? a : Tt, s = e;
|
|
1315
1315
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1316
1316
|
let r = s.__localeChainCache.get(n);
|
|
@@ -1328,20 +1328,20 @@ function Mn(e, t, a) {
|
|
|
1328
1328
|
let n = !0;
|
|
1329
1329
|
for (let s = 0; s < t.length && x(n); s++) {
|
|
1330
1330
|
const r = t[s];
|
|
1331
|
-
A(r) && (n =
|
|
1331
|
+
A(r) && (n = Ko(e, t[s], a));
|
|
1332
1332
|
}
|
|
1333
1333
|
return n;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Ko(e, t, a) {
|
|
1336
1336
|
let n;
|
|
1337
1337
|
const s = t.split("-");
|
|
1338
1338
|
do {
|
|
1339
1339
|
const r = s.join("-");
|
|
1340
|
-
n =
|
|
1340
|
+
n = Yo(e, r, a), s.splice(-1, 1);
|
|
1341
1341
|
} while (s.length && n === !0);
|
|
1342
1342
|
return n;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Yo(e, t, a) {
|
|
1345
1345
|
let n = !1;
|
|
1346
1346
|
if (!e.includes(t) && (n = !0, t)) {
|
|
1347
1347
|
n = t[t.length - 1] !== "!";
|
|
@@ -1511,15 +1511,15 @@ xe[
|
|
|
1511
1511
|
/* Actions.APPEND */
|
|
1512
1512
|
]
|
|
1513
1513
|
};
|
|
1514
|
-
const
|
|
1515
|
-
function Bo(e) {
|
|
1516
|
-
return Yo.test(e);
|
|
1517
|
-
}
|
|
1514
|
+
const Bo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1518
1515
|
function jo(e) {
|
|
1516
|
+
return Bo.test(e);
|
|
1517
|
+
}
|
|
1518
|
+
function Jo(e) {
|
|
1519
1519
|
const t = e.charCodeAt(0), a = e.charCodeAt(e.length - 1);
|
|
1520
1520
|
return t === a && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Qo(e) {
|
|
1523
1523
|
if (e == null)
|
|
1524
1524
|
return "o";
|
|
1525
1525
|
switch (e.charCodeAt(0)) {
|
|
@@ -1556,11 +1556,11 @@ function Jo(e) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return "i";
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Xo(e) {
|
|
1560
1560
|
const t = e.trim();
|
|
1561
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1561
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : jo(t) ? Jo(t) : "*" + t;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function qo(e) {
|
|
1564
1564
|
const t = [];
|
|
1565
1565
|
let a = -1, n = 0, s = 0, r, o, l, i, c, m, g;
|
|
1566
1566
|
const p = [];
|
|
@@ -1592,7 +1592,7 @@ function Xo(e) {
|
|
|
1592
1592
|
/* Actions.APPEND */
|
|
1593
1593
|
]();
|
|
1594
1594
|
else {
|
|
1595
|
-
if (s = 0, o === void 0 || (o =
|
|
1595
|
+
if (s = 0, o === void 0 || (o = Xo(o), o === !1))
|
|
1596
1596
|
return !1;
|
|
1597
1597
|
p[
|
|
1598
1598
|
1
|
|
@@ -1601,36 +1601,36 @@ function Xo(e) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
1603
|
function I() {
|
|
1604
|
-
const
|
|
1605
|
-
if (n === 5 &&
|
|
1606
|
-
return a++, l = "\\" +
|
|
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;
|
|
1610
1610
|
}
|
|
1611
1611
|
for (; n !== null; )
|
|
1612
1612
|
if (a++, r = e[a], !(r === "\\" && I())) {
|
|
1613
|
-
if (i =
|
|
1613
|
+
if (i = Qo(r), g = xe[n], c = g[i] || g.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
|
|
1614
1614
|
return;
|
|
1615
1615
|
if (n === 7)
|
|
1616
1616
|
return t;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
const Un = /* @__PURE__ */ new Map();
|
|
1620
|
-
function
|
|
1620
|
+
function zo(e, t) {
|
|
1621
1621
|
return U(e) ? e[t] : null;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function Zo(e, t) {
|
|
1624
1624
|
if (!U(e))
|
|
1625
1625
|
return null;
|
|
1626
1626
|
let a = Un.get(t);
|
|
1627
|
-
if (a || (a =
|
|
1627
|
+
if (a || (a = qo(t), a && Un.set(t, a)), !a)
|
|
1628
1628
|
return null;
|
|
1629
1629
|
const n = a.length;
|
|
1630
1630
|
let s = e, r = 0;
|
|
1631
1631
|
for (; r < n; ) {
|
|
1632
1632
|
const o = a[r];
|
|
1633
|
-
if (
|
|
1633
|
+
if (Ns.includes(o) && he(s))
|
|
1634
1634
|
return null;
|
|
1635
1635
|
const l = s[o];
|
|
1636
1636
|
if (l === void 0 || G(s))
|
|
@@ -1647,7 +1647,7 @@ const ce = {
|
|
|
1647
1647
|
CANNOT_FORMAT_DATE: 5,
|
|
1648
1648
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1649
1649
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1650
|
-
},
|
|
1650
|
+
}, el = 8, tl = {
|
|
1651
1651
|
[ce.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1652
1652
|
[ce.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1653
1653
|
[ce.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1657,20 +1657,16 @@ const ce = {
|
|
|
1657
1657
|
[ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1658
1658
|
};
|
|
1659
1659
|
function Je(e, ...t) {
|
|
1660
|
-
return na(
|
|
1660
|
+
return na(tl[e], ...t);
|
|
1661
1661
|
}
|
|
1662
|
-
const
|
|
1663
|
-
function
|
|
1662
|
+
const al = "11.2.7", ra = -1, Tt = "en-US", Xt = "", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1663
|
+
function nl() {
|
|
1664
1664
|
return {
|
|
1665
1665
|
upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1666
1666
|
lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1667
1667
|
capitalize: (e, t) => t === "text" && A(e) ? xn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? xn(e.children) : e
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
let Ss;
|
|
1671
|
-
function nl(e) {
|
|
1672
|
-
Ss = e;
|
|
1673
|
-
}
|
|
1674
1670
|
let Ts;
|
|
1675
1671
|
function sl(e) {
|
|
1676
1672
|
Ts = e;
|
|
@@ -1679,19 +1675,23 @@ let Ls;
|
|
|
1679
1675
|
function rl(e) {
|
|
1680
1676
|
Ls = e;
|
|
1681
1677
|
}
|
|
1682
|
-
let Os
|
|
1683
|
-
|
|
1678
|
+
let Os;
|
|
1679
|
+
function ol(e) {
|
|
1684
1680
|
Os = e;
|
|
1685
|
-
}
|
|
1681
|
+
}
|
|
1686
1682
|
let As = null;
|
|
1687
|
-
const
|
|
1683
|
+
const ll = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1688
1684
|
As = e;
|
|
1689
|
-
}, il = () => As;
|
|
1685
|
+
}, il = /* @__NO_SIDE_EFFECTS__ */ () => As;
|
|
1686
|
+
let Ps = null;
|
|
1687
|
+
const Vn = (e) => {
|
|
1688
|
+
Ps = e;
|
|
1689
|
+
}, cl = () => Ps;
|
|
1690
1690
|
let $n = 0;
|
|
1691
|
-
function
|
|
1692
|
-
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version :
|
|
1691
|
+
function ul(e = {}) {
|
|
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 : 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, nl()), 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 : Ts;
|
|
1693
1693
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Je(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
|
-
const b = G(e.messageResolver) ? e.messageResolver :
|
|
1694
|
+
const b = G(e.messageResolver) ? e.messageResolver : Ls || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : Os || 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
|
$n++;
|
|
1696
1696
|
const Q = {
|
|
1697
1697
|
version: a,
|
|
@@ -1704,7 +1704,7 @@ function cl(e = {}) {
|
|
|
1704
1704
|
missing: g,
|
|
1705
1705
|
missingWarn: p,
|
|
1706
1706
|
fallbackWarn: I,
|
|
1707
|
-
fallbackFormat:
|
|
1707
|
+
fallbackFormat: R,
|
|
1708
1708
|
unresolving: S,
|
|
1709
1709
|
postTranslation: O,
|
|
1710
1710
|
processor: d,
|
|
@@ -1717,13 +1717,13 @@ function cl(e = {}) {
|
|
|
1717
1717
|
onWarn: t,
|
|
1718
1718
|
__meta: Ee
|
|
1719
1719
|
};
|
|
1720
|
-
return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1720
|
+
return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && xo(Q, a, Ee), Q;
|
|
1721
1721
|
}
|
|
1722
1722
|
const Ma = (e) => ({ [e]: W() });
|
|
1723
1723
|
function oa(e, t) {
|
|
1724
1724
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Rs(e, t) {
|
|
1727
1727
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1728
1728
|
}
|
|
1729
1729
|
function dn(e, t, a, n, s) {
|
|
@@ -1741,33 +1741,33 @@ function dn(e, t, a, n, s) {
|
|
|
1741
1741
|
const l = r(e, a, t, s);
|
|
1742
1742
|
return A(l) ? l : t;
|
|
1743
1743
|
} else
|
|
1744
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1744
|
+
return process.env.NODE_ENV !== "production" && Rs(n, t) && o(Je(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
|
|
1745
1745
|
}
|
|
1746
1746
|
function Et(e, t, a) {
|
|
1747
1747
|
const n = e;
|
|
1748
1748
|
n.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, a, t);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function ws(e, t) {
|
|
1751
1751
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function fl(e, t) {
|
|
1754
1754
|
const a = t.indexOf(e);
|
|
1755
1755
|
if (a === -1)
|
|
1756
1756
|
return !1;
|
|
1757
1757
|
for (let n = a + 1; n < t.length; n++)
|
|
1758
|
-
if (
|
|
1758
|
+
if (ws(e, t[n]))
|
|
1759
1759
|
return !0;
|
|
1760
1760
|
return !1;
|
|
1761
1761
|
}
|
|
1762
|
-
const Hn = typeof Intl < "u",
|
|
1762
|
+
const Hn = typeof Intl < "u", ks = {
|
|
1763
1763
|
dateTimeFormat: Hn && typeof Intl.DateTimeFormat < "u",
|
|
1764
1764
|
numberFormat: Hn && typeof Intl.NumberFormat < "u"
|
|
1765
1765
|
};
|
|
1766
1766
|
function Wn(e, ...t) {
|
|
1767
1767
|
const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
|
|
1768
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1768
|
+
if (process.env.NODE_ENV !== "production" && !ks.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,
|
|
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,9 +1800,9 @@ 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)),
|
|
1803
|
+
return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1804
1804
|
}
|
|
1805
|
-
const
|
|
1805
|
+
const Ds = [
|
|
1806
1806
|
"localeMatcher",
|
|
1807
1807
|
"weekday",
|
|
1808
1808
|
"era",
|
|
@@ -1838,7 +1838,7 @@ function Wa(...e) {
|
|
|
1838
1838
|
} catch {
|
|
1839
1839
|
throw we(oe.INVALID_ISO_DATE_ARGUMENT);
|
|
1840
1840
|
}
|
|
1841
|
-
} else if (
|
|
1841
|
+
} else if (Hr(t)) {
|
|
1842
1842
|
if (isNaN(t.getTime()))
|
|
1843
1843
|
throw we(oe.INVALID_DATE_ARGUMENT);
|
|
1844
1844
|
l = t;
|
|
@@ -1847,7 +1847,7 @@ function Wa(...e) {
|
|
|
1847
1847
|
else
|
|
1848
1848
|
throw we(oe.INVALID_ARGUMENT);
|
|
1849
1849
|
return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
|
|
1850
|
-
|
|
1850
|
+
Ds.includes(i) ? o[i] = a[i] : r[i] = a[i];
|
|
1851
1851
|
}), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
|
|
1852
1852
|
}
|
|
1853
1853
|
function Gn(e, t, a) {
|
|
@@ -1859,9 +1859,9 @@ function Gn(e, t, a) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
function Kn(e, ...t) {
|
|
1861
1861
|
const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
|
|
1862
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1862
|
+
if (process.env.NODE_ENV !== "production" && !ks.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,
|
|
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,9 +1894,9 @@ 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)),
|
|
1897
|
+
return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1898
1898
|
}
|
|
1899
|
-
const
|
|
1899
|
+
const Cs = [
|
|
1900
1900
|
"localeMatcher",
|
|
1901
1901
|
"style",
|
|
1902
1902
|
"currency",
|
|
@@ -1925,7 +1925,7 @@ function Ga(...e) {
|
|
|
1925
1925
|
throw we(oe.INVALID_ARGUMENT);
|
|
1926
1926
|
const l = t;
|
|
1927
1927
|
return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
|
|
1928
|
-
|
|
1928
|
+
Cs.includes(i) ? o[i] = a[i] : r[i] = a[i];
|
|
1929
1929
|
}), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
|
|
1930
1930
|
}
|
|
1931
1931
|
function Yn(e, t, a) {
|
|
@@ -1935,26 +1935,26 @@ function Yn(e, t, a) {
|
|
|
1935
1935
|
n.__numberFormatters.has(r) && n.__numberFormatters.delete(r);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
const
|
|
1938
|
+
const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" : on(e), gl = Br;
|
|
1939
1939
|
function Bn(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
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function hl(e) {
|
|
1943
1943
|
const t = ee(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1944
1944
|
return e.named && (ee(e.named.count) || ee(e.named.n)) ? ee(e.named.count) ? e.named.count : ee(e.named.n) ? e.named.n : t : t;
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function El(e, t) {
|
|
1947
1947
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1950
|
-
const t = e.locale, a =
|
|
1951
|
-
ee(e.pluralIndex) &&
|
|
1949
|
+
function vl(e = {}) {
|
|
1950
|
+
const t = e.locale, a = hl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : Bn, s = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? Bn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
|
|
1951
|
+
ee(e.pluralIndex) && El(a, i);
|
|
1952
1952
|
const c = (d) => i[d];
|
|
1953
1953
|
function m(d, _) {
|
|
1954
1954
|
const y = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
|
|
1955
|
-
return y || (e.parent ? e.parent.message(d) :
|
|
1955
|
+
return y || (e.parent ? e.parent.message(d) : ml);
|
|
1956
1956
|
}
|
|
1957
|
-
const g = (d) => e.modifiers ? e.modifiers[d] :
|
|
1957
|
+
const g = (d) => e.modifiers ? e.modifiers[d] : dl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : _l, I = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : gl, R = F(e.processor) && A(e.processor.type) ? e.processor.type : pl, 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:
|
|
1972
|
+
type: R,
|
|
1973
1973
|
interpolate: I,
|
|
1974
1974
|
normalize: p,
|
|
1975
1975
|
values: te(W(), o, i)
|
|
@@ -1978,26 +1978,26 @@ 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,
|
|
1982
|
-
p &&
|
|
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
|
+
p && bl(c);
|
|
1983
1983
|
let [d, _, y] = I ? [
|
|
1984
1984
|
i,
|
|
1985
1985
|
O,
|
|
1986
1986
|
l[O] || W()
|
|
1987
|
-
] :
|
|
1988
|
-
if (!I && !(A(E) || he(E) || pe(E)) && S && (E =
|
|
1987
|
+
] : Fs(e, i, O, o, g, m), E = d, b = i;
|
|
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;
|
|
1992
1992
|
let L = !1;
|
|
1993
1993
|
const v = () => {
|
|
1994
1994
|
L = !0;
|
|
1995
|
-
}, C = pe(E) ? E :
|
|
1995
|
+
}, C = pe(E) ? E : Ms(e, i, _, E, b, v);
|
|
1996
1996
|
if (L)
|
|
1997
1997
|
return E;
|
|
1998
|
-
const M =
|
|
1998
|
+
const M = Sl(e, _, y, c), K = vl(M), Ee = yl(e, C, K);
|
|
1999
1999
|
let Q = n ? n(Ee, i) : Ee;
|
|
2000
|
-
if (p && A(Q) && (Q =
|
|
2000
|
+
if (p && A(Q) && (Q = Gr(Q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2001
2001
|
const qe = {
|
|
2002
2002
|
timestamp: Date.now(),
|
|
2003
2003
|
key: A(i) ? i : pe(E) ? E.key : "",
|
|
@@ -2005,21 +2005,21 @@ function Jn(e, ...t) {
|
|
|
2005
2005
|
format: A(E) ? E : pe(E) ? E.source : "",
|
|
2006
2006
|
message: Q
|
|
2007
2007
|
};
|
|
2008
|
-
qe.meta = te({}, e.__meta, /* @__PURE__ */
|
|
2008
|
+
qe.meta = te({}, e.__meta, /* @__PURE__ */ il() || {}), Vo(qe);
|
|
2009
2009
|
}
|
|
2010
2010
|
return Q;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function bl(e) {
|
|
2013
2013
|
J(e.list) ? e.list = e.list.map((t) => A(t) ? An(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2014
2014
|
A(e.named[t]) && (e.named[t] = An(e.named[t]));
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Fs(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,
|
|
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
|
-
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !
|
|
2022
|
+
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !ws(a, p) && oa(s, t) && l(Je(ce.FALLBACK_TO_TRANSLATE, {
|
|
2023
2023
|
key: t,
|
|
2024
2024
|
target: p
|
|
2025
2025
|
})), process.env.NODE_ENV !== "production" && a !== p) {
|
|
@@ -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:
|
|
2030
|
+
from: R,
|
|
2031
2031
|
to: S,
|
|
2032
2032
|
groupId: `${O}:${t}`
|
|
2033
2033
|
});
|
|
@@ -2046,7 +2046,7 @@ function Cs(e, t, a, n, s, r) {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
if (A(I) || he(I) || pe(I))
|
|
2048
2048
|
break;
|
|
2049
|
-
if (!
|
|
2049
|
+
if (!fl(p, m)) {
|
|
2050
2050
|
const b = dn(
|
|
2051
2051
|
e,
|
|
2052
2052
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2057,11 +2057,11 @@ function Cs(e, t, a, n, s, r) {
|
|
|
2057
2057
|
);
|
|
2058
2058
|
b !== t && (I = b);
|
|
2059
2059
|
}
|
|
2060
|
-
|
|
2060
|
+
R = S;
|
|
2061
2061
|
}
|
|
2062
2062
|
return [I, p, g];
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Ms(e, t, a, n, s, r) {
|
|
2065
2065
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2066
2066
|
if (pe(n)) {
|
|
2067
2067
|
const p = n;
|
|
@@ -2073,7 +2073,7 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
let i = null, c, m;
|
|
2075
2075
|
process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", fe && fe(c));
|
|
2076
|
-
const g = o(n,
|
|
2076
|
+
const g = o(n, Il(e, a, s, n, l, r));
|
|
2077
2077
|
if (process.env.NODE_ENV !== "production" && Ne) {
|
|
2078
2078
|
const p = window.performance.now(), I = e.__v_emitter;
|
|
2079
2079
|
I && i && I.emit("message-compilation", {
|
|
@@ -2085,7 +2085,7 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
return g.locale = a, g.key = t, g.source = n, g;
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function yl(e, t, a) {
|
|
2089
2089
|
let n = null, s, r;
|
|
2090
2090
|
process.env.NODE_ENV !== "production" && Ne && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", fe && fe(s));
|
|
2091
2091
|
const o = t(a);
|
|
@@ -2107,14 +2107,14 @@ function Ka(...e) {
|
|
|
2107
2107
|
const r = ee(t) ? String(t) : (pe(t), t);
|
|
2108
2108
|
return ee(a) ? s.plural = a : A(a) ? s.default = a : F(a) && !sa(a) ? s.named = a : J(a) && (s.list = a), ee(n) ? s.plural = n : A(n) ? s.default = n : F(n) && te(s, n), [r, s];
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Il(e, t, a, n, s, r) {
|
|
2111
2111
|
return {
|
|
2112
2112
|
locale: t,
|
|
2113
2113
|
key: a,
|
|
2114
2114
|
warnHtmlMessage: s,
|
|
2115
2115
|
onError: (o) => {
|
|
2116
2116
|
if (r && r(o), process.env.NODE_ENV !== "production") {
|
|
2117
|
-
const l =
|
|
2117
|
+
const l = Nl(n), i = `Message compilation error: ${o.message}`, c = o.location && l && jr(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
|
|
2118
2118
|
m && l && m.emit("compile-error", {
|
|
2119
2119
|
message: l,
|
|
2120
2120
|
error: o.message,
|
|
@@ -2126,24 +2126,24 @@ ${c}` : i);
|
|
|
2126
2126
|
} else
|
|
2127
2127
|
throw o;
|
|
2128
2128
|
},
|
|
2129
|
-
onCacheKey: (o) =>
|
|
2129
|
+
onCacheKey: (o) => Vr(t, a, o)
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Nl(e) {
|
|
2133
2133
|
if (A(e))
|
|
2134
2134
|
return e;
|
|
2135
2135
|
if (e.loc && e.loc.source)
|
|
2136
2136
|
return e.loc.source;
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function Sl(e, t, a, n) {
|
|
2139
2139
|
const { modifiers: s, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: m } = e, p = {
|
|
2140
2140
|
locale: t,
|
|
2141
2141
|
modifiers: s,
|
|
2142
2142
|
pluralRules: r,
|
|
2143
|
-
messages: (I,
|
|
2143
|
+
messages: (I, R) => {
|
|
2144
2144
|
let S = o(a, I);
|
|
2145
|
-
if (S == null && (m ||
|
|
2146
|
-
const [, , O] =
|
|
2145
|
+
if (S == null && (m || R)) {
|
|
2146
|
+
const [, , O] = Fs(
|
|
2147
2147
|
m || e,
|
|
2148
2148
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2149
2149
|
I,
|
|
@@ -2156,7 +2156,7 @@ function Nl(e, t, a, n) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
if (A(S) || he(S)) {
|
|
2158
2158
|
let O = !1;
|
|
2159
|
-
const _ =
|
|
2159
|
+
const _ = Ms(e, I, t, S, I, () => {
|
|
2160
2160
|
O = !0;
|
|
2161
2161
|
});
|
|
2162
2162
|
return O ? jn : _;
|
|
@@ -2165,23 +2165,23 @@ function Nl(e, t, a, n) {
|
|
|
2165
2165
|
};
|
|
2166
2166
|
return e.processor && (p.processor = e.processor), n.list && (p.list = n.list), n.named && (p.named = n.named), ee(n.plural) && (p.pluralIndex = n.plural), p;
|
|
2167
2167
|
}
|
|
2168
|
-
|
|
2169
|
-
function
|
|
2170
|
-
return
|
|
2168
|
+
So();
|
|
2169
|
+
function Tl() {
|
|
2170
|
+
return Us().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Us() {
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
|
-
const
|
|
2175
|
+
const Ll = typeof Proxy == "function", Ol = "devtools-plugin:setup", Al = "plugin:settings:set";
|
|
2176
2176
|
let Ze, Ya;
|
|
2177
|
-
function
|
|
2177
|
+
function Pl() {
|
|
2178
2178
|
var e;
|
|
2179
2179
|
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ze = !0, Ya = globalThis.perf_hooks.performance) : Ze = !1), Ze;
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2182
|
-
return
|
|
2181
|
+
function Rl() {
|
|
2182
|
+
return Pl() ? Ya.now() : Date.now();
|
|
2183
2183
|
}
|
|
2184
|
-
class
|
|
2184
|
+
class wl {
|
|
2185
2185
|
constructor(t, a) {
|
|
2186
2186
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = a;
|
|
2187
2187
|
const n = {};
|
|
@@ -2209,9 +2209,9 @@ class Rl {
|
|
|
2209
2209
|
r = o;
|
|
2210
2210
|
},
|
|
2211
2211
|
now() {
|
|
2212
|
-
return
|
|
2212
|
+
return Rl();
|
|
2213
2213
|
}
|
|
2214
|
-
}, a && a.on(
|
|
2214
|
+
}, a && a.on(Al, (o, l) => {
|
|
2215
2215
|
o === this.plugin.id && this.fallbacks.setSettings(l);
|
|
2216
2216
|
}), this.proxiedOn = new Proxy({}, {
|
|
2217
2217
|
get: (o, l) => this.target ? this.target.on[l] : (...i) => {
|
|
@@ -2243,12 +2243,12 @@ class Rl {
|
|
|
2243
2243
|
a.resolve(await this.target[a.method](...a.args));
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
const a = e, n =
|
|
2246
|
+
function kl(e, t) {
|
|
2247
|
+
const a = e, n = Us(), s = Tl(), r = Ll && a.enableEarlyProxy;
|
|
2248
2248
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2249
|
-
s.emit(
|
|
2249
|
+
s.emit(Ol, e, t);
|
|
2250
2250
|
else {
|
|
2251
|
-
const o = r ? new
|
|
2251
|
+
const o = r ? new wl(a, s) : null;
|
|
2252
2252
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2253
2253
|
pluginDescriptor: a,
|
|
2254
2254
|
setupFn: t,
|
|
@@ -2261,13 +2261,13 @@ function wl(e, t) {
|
|
|
2261
2261
|
* (c) 2025 kazuya kawaguchi
|
|
2262
2262
|
* Released under the MIT License.
|
|
2263
2263
|
*/
|
|
2264
|
-
const
|
|
2265
|
-
function
|
|
2264
|
+
const Dl = "11.2.7";
|
|
2265
|
+
function Cl() {
|
|
2266
2266
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (We().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (We().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (We().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (We().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2267
2267
|
}
|
|
2268
2268
|
const Y = {
|
|
2269
2269
|
// composer module errors
|
|
2270
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2270
|
+
UNEXPECTED_RETURN_TYPE: Ho,
|
|
2271
2271
|
// 24
|
|
2272
2272
|
// legacy module errors
|
|
2273
2273
|
INVALID_ARGUMENT: 25,
|
|
@@ -2288,9 +2288,9 @@ const Y = {
|
|
|
2288
2288
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2289
2289
|
};
|
|
2290
2290
|
function ue(e, ...t) {
|
|
2291
|
-
return dt(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2291
|
+
return dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Fl, args: t } : void 0);
|
|
2292
2292
|
}
|
|
2293
|
-
const
|
|
2293
|
+
const Fl = {
|
|
2294
2294
|
[Y.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2295
2295
|
[Y.INVALID_ARGUMENT]: "Invalid argument",
|
|
2296
2296
|
[Y.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2302,8 +2302,8 @@ const Cl = {
|
|
|
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
|
-
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Qe = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"),
|
|
2306
|
-
FALLBACK_TO_ROOT:
|
|
2305
|
+
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Qe = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), xs = Oe("__setPluralRules"), Vs = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
|
+
FALLBACK_TO_ROOT: el,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2309
2309
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2317,7 +2317,7 @@ const Cl = {
|
|
|
2317
2317
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2318
2318
|
// duplicate `useI18n` calling
|
|
2319
2319
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2320
|
-
},
|
|
2320
|
+
}, Ml = {
|
|
2321
2321
|
[_e.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2322
2322
|
[_e.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2323
2323
|
[_e.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2333,7 +2333,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2333
2333
|
[_e.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2334
2334
|
};
|
|
2335
2335
|
function it(e, ...t) {
|
|
2336
|
-
return na(
|
|
2336
|
+
return na(Ml[e], ...t);
|
|
2337
2337
|
}
|
|
2338
2338
|
function Ot(e) {
|
|
2339
2339
|
if (!U(e) || he(e))
|
|
@@ -2356,7 +2356,7 @@ function Ot(e) {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
s = s[a[o]];
|
|
2358
2358
|
}
|
|
2359
|
-
if (r || (he(s) ?
|
|
2359
|
+
if (r || (he(s) ? Ns.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
|
|
2360
2360
|
const o = s[a[n]];
|
|
2361
2361
|
U(o) && Ot(o);
|
|
2362
2362
|
}
|
|
@@ -2376,10 +2376,10 @@ function mn(e, t) {
|
|
|
2376
2376
|
be(o, l) && Ot(o[l]);
|
|
2377
2377
|
return o;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function $s(e) {
|
|
2380
2380
|
return e.type;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function Hs(e, t, a) {
|
|
2383
2383
|
let n = U(t.messages) ? t.messages : W();
|
|
2384
2384
|
"__i18nGlobal" in a && (n = mn(e.locale.value, {
|
|
2385
2385
|
messages: n,
|
|
@@ -2405,24 +2405,24 @@ function $s(e, t, a) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
function Qn(e) {
|
|
2408
|
-
return Ye(
|
|
2408
|
+
return Ye(hr, null, e, 0);
|
|
2409
2409
|
}
|
|
2410
2410
|
function st() {
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
2412
|
return e in wa ? wa[e] : wa.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
|
-
const Xn = "__INTLIFY_META__", qn = () => [],
|
|
2414
|
+
const Xn = "__INTLIFY_META__", qn = () => [], Ul = () => !1;
|
|
2415
2415
|
let zn = 0;
|
|
2416
2416
|
function Zn(e) {
|
|
2417
2417
|
return ((t, a, n, s) => e(a, n, st() || void 0, s));
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2419
|
+
const xl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2420
2420
|
const e = st();
|
|
2421
2421
|
let t = null;
|
|
2422
|
-
return e && (t =
|
|
2422
|
+
return e && (t = $s(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 ?
|
|
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,13 +2431,13 @@ 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,
|
|
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 = (() => {
|
|
2438
2438
|
n && Vn(null);
|
|
2439
2439
|
const h = {
|
|
2440
|
-
version:
|
|
2440
|
+
version: Dl,
|
|
2441
2441
|
locale: l.value,
|
|
2442
2442
|
fallbackLocale: i.value,
|
|
2443
2443
|
messages: c.value,
|
|
@@ -2456,7 +2456,7 @@ function pn(e = {}) {
|
|
|
2456
2456
|
__meta: { framework: "vue" }
|
|
2457
2457
|
};
|
|
2458
2458
|
h.datetimeFormats = m.value, h.numberFormats = g.value, h.__datetimeFormatters = F(v) ? v.__datetimeFormatters : void 0, h.__numberFormatters = F(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (h.__v_emitter = F(v) ? v.__v_emitter : void 0);
|
|
2459
|
-
const T =
|
|
2459
|
+
const T = ul(h);
|
|
2460
2460
|
return n && Vn(T), T;
|
|
2461
2461
|
})(), Et(v, l.value, i.value);
|
|
2462
2462
|
function M() {
|
|
@@ -2498,26 +2498,26 @@ function pn(e = {}) {
|
|
|
2498
2498
|
M();
|
|
2499
2499
|
let ze;
|
|
2500
2500
|
try {
|
|
2501
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ?
|
|
2501
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ? cl() : void 0), ze = h(v);
|
|
2502
2502
|
} finally {
|
|
2503
2503
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = void 0);
|
|
2504
2504
|
}
|
|
2505
2505
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2506
2506
|
ee(ze) && ze === ra || H === "translate exists" && !ze) {
|
|
2507
|
-
const [He,
|
|
2508
|
-
if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H,
|
|
2507
|
+
const [He, dr] = T();
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H, dr) && (R && (oa(I, He) || Rs(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 &&
|
|
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 &&
|
|
2520
|
+
return t && R ? z(t) : $e(He);
|
|
2521
2521
|
} else {
|
|
2522
2522
|
if ($t(ze))
|
|
2523
2523
|
return ze;
|
|
@@ -2574,11 +2574,11 @@ function pn(e = {}) {
|
|
|
2574
2574
|
return !1;
|
|
2575
2575
|
const H = A(T) ? T : l.value, z = Ve(H), $e = v.messageResolver(z, h);
|
|
2576
2576
|
return he($e) || pe($e) || A($e);
|
|
2577
|
-
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]),
|
|
2577
|
+
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), Ul, (H) => x(H));
|
|
2578
2578
|
}
|
|
2579
2579
|
function _t(h) {
|
|
2580
2580
|
let T = null;
|
|
2581
|
-
const H =
|
|
2581
|
+
const H = Ss(v, i.value, l.value);
|
|
2582
2582
|
for (let z = 0; z < H.length; z++) {
|
|
2583
2583
|
const $e = c.value[H[z]] || {}, $t = v.messageResolver($e, h);
|
|
2584
2584
|
if ($t != null) {
|
|
@@ -2671,10 +2671,10 @@ function pn(e = {}) {
|
|
|
2671
2671
|
I = h, v.fallbackWarn = I;
|
|
2672
2672
|
},
|
|
2673
2673
|
get fallbackRoot() {
|
|
2674
|
-
return
|
|
2674
|
+
return R;
|
|
2675
2675
|
},
|
|
2676
2676
|
set fallbackRoot(h) {
|
|
2677
|
-
|
|
2677
|
+
R = h;
|
|
2678
2678
|
},
|
|
2679
2679
|
get fallbackFormat() {
|
|
2680
2680
|
return S;
|
|
@@ -2702,68 +2702,68 @@ function pn(e = {}) {
|
|
|
2702
2702
|
setPostTranslationHandler: Ea,
|
|
2703
2703
|
getMissingHandler: va,
|
|
2704
2704
|
setMissingHandler: ba,
|
|
2705
|
-
[
|
|
2705
|
+
[xs]: Aa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats = qe, V.numberFormats = ga, V.rt = Ia, V.te = Pa, V.tm = gt, 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[
|
|
2707
|
+
return V.datetimeFormats = qe, V.numberFormats = ga, V.rt = Ia, V.te = Pa, V.tm = gt, 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[Vs] = a, V[Ba] = xt, V[ja] = Vt, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Qe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
2709
|
}, V[Lt] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const Ws = "vue-i18n: composer properties", Ua = {
|
|
2714
2714
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2715
2715
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2716
2716
|
"vue-i18n-timeline": "Vue I18n"
|
|
2717
|
-
}, xl = {
|
|
2718
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2719
2717
|
}, Vl = {
|
|
2718
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2719
|
+
}, $l = {
|
|
2720
2720
|
"vue-i18n-timeline": 16764185
|
|
2721
2721
|
};
|
|
2722
2722
|
let Xa;
|
|
2723
|
-
async function
|
|
2723
|
+
async function Hl(e, t) {
|
|
2724
2724
|
return new Promise((a, n) => {
|
|
2725
2725
|
try {
|
|
2726
|
-
|
|
2726
|
+
kl({
|
|
2727
2727
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2728
2728
|
label: Ua["vue-devtools-plugin-vue-i18n"],
|
|
2729
2729
|
packageName: "vue-i18n",
|
|
2730
2730
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2731
2731
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2732
|
-
componentStateTypes: [
|
|
2732
|
+
componentStateTypes: [Ws],
|
|
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 && es(l, o.__VUE_I18N__) : es(l, o.__VUE_I18N__));
|
|
2740
2740
|
}), s.addInspector({
|
|
2741
2741
|
id: "vue-i18n-resource-inspector",
|
|
2742
2742
|
label: Ua["vue-i18n-resource-inspector"],
|
|
2743
2743
|
icon: "language",
|
|
2744
|
-
treeFilterPlaceholder:
|
|
2744
|
+
treeFilterPlaceholder: Vl["vue-i18n-resource-inspector"]
|
|
2745
2745
|
}), s.on.getInspectorTree((o) => {
|
|
2746
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2746
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && jl(o, t);
|
|
2747
2747
|
});
|
|
2748
2748
|
const r = /* @__PURE__ */ new Map();
|
|
2749
2749
|
s.on.getInspectorState(async (o) => {
|
|
2750
2750
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2751
|
-
if (s.unhighlightElement(),
|
|
2751
|
+
if (s.unhighlightElement(), Ql(o, t), o.nodeId === "global") {
|
|
2752
2752
|
if (!r.has(o.app)) {
|
|
2753
2753
|
const [l] = await s.getComponentInstances(o.app);
|
|
2754
2754
|
r.set(o.app, l);
|
|
2755
2755
|
}
|
|
2756
2756
|
s.highlightElement(r.get(o.app));
|
|
2757
2757
|
} else {
|
|
2758
|
-
const l =
|
|
2758
|
+
const l = Jl(o.nodeId, t);
|
|
2759
2759
|
l && s.highlightElement(l);
|
|
2760
2760
|
}
|
|
2761
2761
|
}), s.on.editInspectorState((o) => {
|
|
2762
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2762
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ql(o, t);
|
|
2763
2763
|
}), s.addTimelineLayer({
|
|
2764
2764
|
id: "vue-i18n-timeline",
|
|
2765
2765
|
label: Ua["vue-i18n-timeline"],
|
|
2766
|
-
color:
|
|
2766
|
+
color: $l["vue-i18n-timeline"]
|
|
2767
2767
|
}), a(!0);
|
|
2768
2768
|
});
|
|
2769
2769
|
} catch (s) {
|
|
@@ -2771,14 +2771,14 @@ async function $l(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Gs(e) {
|
|
2775
2775
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function Wl(e, t, a) {
|
|
2778
2778
|
const n = a.mode === "composition" ? a.global : a.global.__composer;
|
|
2779
2779
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== n) {
|
|
2780
2780
|
const s = {
|
|
2781
|
-
label: `i18n (${
|
|
2781
|
+
label: `i18n (${Gs(e)} Scope)`,
|
|
2782
2782
|
textColor: 0,
|
|
2783
2783
|
backgroundColor: 16764185
|
|
2784
2784
|
};
|
|
@@ -2786,7 +2786,7 @@ function Hl(e, t, a) {
|
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
2788
|
function es(e, t) {
|
|
2789
|
-
const a =
|
|
2789
|
+
const a = Ws;
|
|
2790
2790
|
e.state.push({
|
|
2791
2791
|
type: a,
|
|
2792
2792
|
key: "locale",
|
|
@@ -2828,30 +2828,30 @@ 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] =
|
|
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
|
-
const
|
|
2834
|
+
const Gl = {
|
|
2835
2835
|
"<": "<",
|
|
2836
2836
|
">": ">",
|
|
2837
2837
|
'"': """,
|
|
2838
2838
|
"&": "&"
|
|
2839
2839
|
};
|
|
2840
|
-
function Gl(e) {
|
|
2841
|
-
return e.replace(/[<>"&]/g, Kl);
|
|
2842
|
-
}
|
|
2843
2840
|
function Kl(e) {
|
|
2844
|
-
return
|
|
2841
|
+
return e.replace(/[<>"&]/g, Yl);
|
|
2845
2842
|
}
|
|
2846
2843
|
function Yl(e) {
|
|
2844
|
+
return Gl[e] || e;
|
|
2845
|
+
}
|
|
2846
|
+
function Bl(e) {
|
|
2847
2847
|
return {
|
|
2848
2848
|
_custom: {
|
|
2849
2849
|
type: "function",
|
|
2850
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2850
|
+
display: `<span>ƒ</span> ${e.source ? `("${Kl(e.source)}")` : "(?)"}`
|
|
2851
2851
|
}
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function jl(e, t) {
|
|
2855
2855
|
e.rootNodes.push({
|
|
2856
2856
|
id: "global",
|
|
2857
2857
|
label: "Global Scope"
|
|
@@ -2861,11 +2861,11 @@ function Bl(e, t) {
|
|
|
2861
2861
|
const r = t.mode === "composition" ? s : s.__composer;
|
|
2862
2862
|
a !== r && e.rootNodes.push({
|
|
2863
2863
|
id: r.id.toString(),
|
|
2864
|
-
label: `${
|
|
2864
|
+
label: `${Gs(n)} Scope`
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Jl(e, t) {
|
|
2869
2869
|
let a = null;
|
|
2870
2870
|
if (e !== "global") {
|
|
2871
2871
|
for (const [n, s] of t.__instances.entries())
|
|
@@ -2876,7 +2876,7 @@ function jl(e, t) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return a;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function Ks(e, t) {
|
|
2880
2880
|
if (e === "global")
|
|
2881
2881
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2882
2882
|
{
|
|
@@ -2884,11 +2884,11 @@ function Gs(e, t) {
|
|
|
2884
2884
|
return a ? t.mode === "composition" ? a : a.__composer : null;
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2888
|
-
const a =
|
|
2889
|
-
return a && (e.state =
|
|
2887
|
+
function Ql(e, t) {
|
|
2888
|
+
const a = Ks(e.nodeId, t);
|
|
2889
|
+
return a && (e.state = Xl(a)), null;
|
|
2890
2890
|
}
|
|
2891
|
-
function
|
|
2891
|
+
function Xl(e) {
|
|
2892
2892
|
const t = {}, a = "Locale related info", n = [
|
|
2893
2893
|
{
|
|
2894
2894
|
type: a,
|
|
@@ -2963,28 +2963,28 @@ function At(e, t) {
|
|
|
2963
2963
|
});
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2967
|
-
const a =
|
|
2966
|
+
function ql(e, t) {
|
|
2967
|
+
const a = Ks(e.nodeId, t);
|
|
2968
2968
|
if (a) {
|
|
2969
2969
|
const [n] = e.path;
|
|
2970
2970
|
n === "locale" && A(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (A(e.state.value) || J(e.state.value) || U(e.state.value)) ? a.fallbackLocale.value = e.state.value : n === "inheritLocale" && x(e.state.value) && (a.inheritLocale = e.state.value);
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
|
-
function
|
|
2973
|
+
function zl(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
|
|
2975
|
+
let R = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
2977
2977
|
const b = e.sharedMessages;
|
|
2978
|
-
|
|
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
|
-
},
|
|
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:
|
|
2987
|
+
messages: R,
|
|
2988
2988
|
flatJson: E,
|
|
2989
2989
|
datetimeFormats: _,
|
|
2990
2990
|
numberFormats: y,
|
|
@@ -3006,7 +3006,7 @@ function ql(e) {
|
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
3008
|
function qa(e = {}) {
|
|
3009
|
-
const t = pn(
|
|
3009
|
+
const t = pn(zl(e)), { __extender: a } = e, n = {
|
|
3010
3010
|
// id
|
|
3011
3011
|
id: t.id,
|
|
3012
3012
|
// locale
|
|
@@ -3174,7 +3174,7 @@ function qa(e = {}) {
|
|
|
3174
3174
|
s[Lt] && s[Lt]();
|
|
3175
3175
|
}), n;
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function Zl(e, t, a) {
|
|
3178
3178
|
return {
|
|
3179
3179
|
beforeCreate() {
|
|
3180
3180
|
const n = st();
|
|
@@ -3205,7 +3205,7 @@ function zl(e, t, a) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
else
|
|
3207
3207
|
this.$i18n = e;
|
|
3208
|
-
s.__i18nGlobal &&
|
|
3208
|
+
s.__i18nGlobal && Hs(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$te = (r, o) => this.$i18n.te(r, o), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), a.__setInstance(n, this.$i18n);
|
|
3209
3209
|
},
|
|
3210
3210
|
mounted() {
|
|
3211
3211
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3228,7 +3228,7 @@ function zl(e, t, a) {
|
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
3230
|
function ts(e, t) {
|
|
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[
|
|
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[xs](t.pluralizationRules || e.pluralizationRules);
|
|
3232
3232
|
const a = mn(e.locale, {
|
|
3233
3233
|
messages: t.messages,
|
|
3234
3234
|
__i18n: t.__i18n
|
|
@@ -3253,7 +3253,7 @@ const gn = {
|
|
|
3253
3253
|
type: Object
|
|
3254
3254
|
}
|
|
3255
3255
|
};
|
|
3256
|
-
function
|
|
3256
|
+
function ei({ slots: e }, t) {
|
|
3257
3257
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, s) => [
|
|
3258
3258
|
...n,
|
|
3259
3259
|
// prettier-ignore
|
|
@@ -3263,10 +3263,10 @@ function Zl({ slots: e }, t) {
|
|
|
3263
3263
|
return s && (a[n] = s()), a;
|
|
3264
3264
|
}, W());
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3266
|
+
function Ys() {
|
|
3267
3267
|
return Ke;
|
|
3268
3268
|
}
|
|
3269
|
-
const
|
|
3269
|
+
const ti = /* @__PURE__ */ De({
|
|
3270
3270
|
/* eslint-disable */
|
|
3271
3271
|
name: "i18n-t",
|
|
3272
3272
|
props: te({
|
|
@@ -3289,15 +3289,15 @@ const ei = /* @__PURE__ */ De({
|
|
|
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 =
|
|
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 : Ys();
|
|
3293
3293
|
return ye(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
3296
|
-
}), as =
|
|
3297
|
-
function
|
|
3296
|
+
}), as = ti;
|
|
3297
|
+
function ai(e) {
|
|
3298
3298
|
return J(e) && !A(e[0]);
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function Bs(e, t, a, n) {
|
|
3301
3301
|
const { slots: s, attrs: r } = t;
|
|
3302
3302
|
return () => {
|
|
3303
3303
|
const o = { part: !0 };
|
|
@@ -3306,14 +3306,14 @@ 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
|
|
3310
|
-
return
|
|
3309
|
+
const R = s[p.type], S = R ? R({ [p.type]: p.value, index: I, parts: i }) : [p.value];
|
|
3310
|
+
return ai(S) && (S[0].key = `${p.type}-${I}`), S;
|
|
3311
3311
|
}) : A(i) && (c = [i]);
|
|
3312
|
-
const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag :
|
|
3312
|
+
const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ys();
|
|
3313
3313
|
return ye(g, m, c);
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
3316
|
-
const
|
|
3316
|
+
const ni = /* @__PURE__ */ De({
|
|
3317
3317
|
/* eslint-disable */
|
|
3318
3318
|
name: "i18n-n",
|
|
3319
3319
|
props: te({
|
|
@@ -3332,13 +3332,13 @@ const ai = /* @__PURE__ */ De({
|
|
|
3332
3332
|
useScope: e.scope,
|
|
3333
3333
|
__useComponent: !0
|
|
3334
3334
|
});
|
|
3335
|
-
return
|
|
3335
|
+
return Bs(e, t, Cs, (...n) => (
|
|
3336
3336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3337
3337
|
a[Ja](...n)
|
|
3338
3338
|
));
|
|
3339
3339
|
}
|
|
3340
|
-
}), ns =
|
|
3341
|
-
function
|
|
3340
|
+
}), ns = ni;
|
|
3341
|
+
function si(e, t) {
|
|
3342
3342
|
const a = e;
|
|
3343
3343
|
if (e.mode === "composition")
|
|
3344
3344
|
return a.__getInstance(t) || e.global;
|
|
@@ -3347,13 +3347,13 @@ function ni(e, t) {
|
|
|
3347
3347
|
return n != null ? n.__composer : e.global.__composer;
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
|
-
function
|
|
3350
|
+
function ri(e) {
|
|
3351
3351
|
const t = (o) => {
|
|
3352
3352
|
process.env.NODE_ENV !== "production" && sn(it(_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);
|
|
3356
|
-
const c =
|
|
3356
|
+
const c = si(e, l.$), m = ss(i);
|
|
3357
3357
|
return [
|
|
3358
3358
|
Reflect.apply(c.t, c, [...rs(m)]),
|
|
3359
3359
|
c
|
|
@@ -3397,15 +3397,15 @@ function rs(e) {
|
|
|
3397
3397
|
const { path: t, locale: a, args: n, choice: s, plural: r } = e, o = {}, l = n || {};
|
|
3398
3398
|
return A(a) && (o.locale = a), ee(s) && (o.plural = s), ee(r) && (o.plural = r), [t, l, o];
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function oi(e, t, ...a) {
|
|
3401
3401
|
const n = F(a[0]) ? a[0] : {};
|
|
3402
|
-
(x(n.globalInstall) ? n.globalInstall : !0) && ([as.name, "I18nT"].forEach((r) => e.component(r, as)), [ns.name, "I18nN"].forEach((r) => e.component(r, ns)), [ls.name, "I18nD"].forEach((r) => e.component(r, ls))), e.directive("t",
|
|
3402
|
+
(x(n.globalInstall) ? n.globalInstall : !0) && ([as.name, "I18nT"].forEach((r) => e.component(r, as)), [ns.name, "I18nN"].forEach((r) => e.component(r, ns)), [ls.name, "I18nD"].forEach((r) => e.component(r, ls))), e.directive("t", ri(t));
|
|
3403
3403
|
}
|
|
3404
|
-
const
|
|
3405
|
-
function
|
|
3404
|
+
const li = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
|
+
function ii(e = {}) {
|
|
3406
3406
|
const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
3407
|
process.env.NODE_ENV !== "production" && t && sn(it(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
|
-
const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] =
|
|
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;
|
|
3411
3411
|
}
|
|
@@ -3427,12 +3427,12 @@ function li(e = {}) {
|
|
|
3427
3427
|
m.__composerExtend = S.__composerExtend, m.__vueI18nExtend = S.__vueI18nExtend;
|
|
3428
3428
|
}
|
|
3429
3429
|
let I = null;
|
|
3430
|
-
!t && a && (I =
|
|
3431
|
-
const
|
|
3430
|
+
!t && a && (I = hi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && oi(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(Zl(r, r.__composer, m));
|
|
3431
|
+
const R = g.unmount;
|
|
3432
3432
|
if (g.unmount = () => {
|
|
3433
|
-
I && I(), m.dispose(),
|
|
3433
|
+
I && I(), m.dispose(), R();
|
|
3434
3434
|
}, process.env.NODE_ENV !== "production") {
|
|
3435
|
-
if (!await
|
|
3435
|
+
if (!await Hl(g, m))
|
|
3436
3436
|
throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3437
3437
|
const O = ln();
|
|
3438
3438
|
if (t) {
|
|
@@ -3469,51 +3469,51 @@ function la(e = {}) {
|
|
|
3469
3469
|
throw ue(Y.MUST_BE_CALL_SETUP_TOP);
|
|
3470
3470
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3471
3471
|
throw ue(Y.NOT_INSTALLED);
|
|
3472
|
-
const a =
|
|
3472
|
+
const a = ui(t), n = di(a), s = $s(t), r = fi(e, s);
|
|
3473
3473
|
if (r === "global")
|
|
3474
|
-
return
|
|
3474
|
+
return Hs(n, e, s), n;
|
|
3475
3475
|
if (r === "parent") {
|
|
3476
|
-
let i =
|
|
3476
|
+
let i = mi(a, t, e.__useComponent);
|
|
3477
3477
|
return i == null && (process.env.NODE_ENV !== "production" && Le(it(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
|
|
3478
3478
|
}
|
|
3479
3479
|
const o = a;
|
|
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 = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(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(it(_e.DUPLICATE_USE_I18N_CALLING));
|
|
3486
3486
|
return l;
|
|
3487
3487
|
}
|
|
3488
|
-
function
|
|
3489
|
-
const a =
|
|
3488
|
+
function ci(e, t) {
|
|
3489
|
+
const a = _r(), 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];
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3495
|
-
const t = at(e.isCE ?
|
|
3494
|
+
function ui(e) {
|
|
3495
|
+
const t = at(e.isCE ? li : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3496
3496
|
if (!t)
|
|
3497
3497
|
throw ue(e.isCE ? Y.NOT_INSTALLED_WITH_PROVIDE : Y.UNEXPECTED_ERROR);
|
|
3498
3498
|
return t;
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3500
|
+
function fi(e, t) {
|
|
3501
3501
|
return sa(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function di(e) {
|
|
3504
3504
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function mi(e, t, a = !1) {
|
|
3507
3507
|
let n = null;
|
|
3508
3508
|
const s = t.root;
|
|
3509
|
-
let r =
|
|
3509
|
+
let r = pi(t, a);
|
|
3510
3510
|
for (; r != null; ) {
|
|
3511
3511
|
const o = e;
|
|
3512
3512
|
if (e.mode === "composition")
|
|
3513
3513
|
n = o.__getInstance(r);
|
|
3514
3514
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3515
3515
|
const l = o.__getInstance(r);
|
|
3516
|
-
l != null && (n = l.__composer, a && n && !n[
|
|
3516
|
+
l != null && (n = l.__composer, a && n && !n[Vs] && (n = null));
|
|
3517
3517
|
}
|
|
3518
3518
|
if (n != null || s === r)
|
|
3519
3519
|
break;
|
|
@@ -3521,10 +3521,10 @@ function di(e, t, a = !1) {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
return n;
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function pi(e, t = !1) {
|
|
3525
3525
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function _i(e, t, a) {
|
|
3528
3528
|
let n = null;
|
|
3529
3529
|
Rt(() => {
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3539,18 +3539,18 @@ function pi(e, t, a) {
|
|
|
3539
3539
|
r && (r(), delete s[Qa]);
|
|
3540
3540
|
}, t);
|
|
3541
3541
|
}
|
|
3542
|
-
const
|
|
3542
|
+
const gi = [
|
|
3543
3543
|
"locale",
|
|
3544
3544
|
"fallbackLocale",
|
|
3545
3545
|
"availableLocales"
|
|
3546
3546
|
], os = ["t", "rt", "d", "n", "tm", "te"];
|
|
3547
|
-
function
|
|
3547
|
+
function hi(e, t) {
|
|
3548
3548
|
const a = /* @__PURE__ */ Object.create(null);
|
|
3549
|
-
return
|
|
3549
|
+
return gi.forEach((s) => {
|
|
3550
3550
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3551
3551
|
if (!r)
|
|
3552
3552
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3553
|
-
const o =
|
|
3553
|
+
const o = gr(r.value) ? {
|
|
3554
3554
|
get() {
|
|
3555
3555
|
return r.value.value;
|
|
3556
3556
|
},
|
|
@@ -3575,7 +3575,7 @@ function gi(e, t) {
|
|
|
3575
3575
|
});
|
|
3576
3576
|
};
|
|
3577
3577
|
}
|
|
3578
|
-
const
|
|
3578
|
+
const Ei = /* @__PURE__ */ De({
|
|
3579
3579
|
/* eslint-disable */
|
|
3580
3580
|
name: "i18n-d",
|
|
3581
3581
|
props: te({
|
|
@@ -3594,22 +3594,22 @@ const hi = /* @__PURE__ */ De({
|
|
|
3594
3594
|
useScope: e.scope,
|
|
3595
3595
|
__useComponent: !0
|
|
3596
3596
|
});
|
|
3597
|
-
return
|
|
3597
|
+
return Bs(e, t, Ds, (...n) => (
|
|
3598
3598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3599
3599
|
a[ja](...n)
|
|
3600
3600
|
));
|
|
3601
3601
|
}
|
|
3602
|
-
}), ls =
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3602
|
+
}), ls = Ei;
|
|
3603
|
+
Cl();
|
|
3604
|
+
sl(Mo);
|
|
3605
|
+
rl(Zo);
|
|
3606
|
+
ol(Ss);
|
|
3607
3607
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3608
3608
|
const e = We();
|
|
3609
|
-
e.__INTLIFY__ = !0,
|
|
3609
|
+
e.__INTLIFY__ = !0, Uo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3610
3610
|
}
|
|
3611
3611
|
process.env.NODE_ENV;
|
|
3612
|
-
const
|
|
3612
|
+
const vi = {
|
|
3613
3613
|
webui: {
|
|
3614
3614
|
// 通用
|
|
3615
3615
|
common: {
|
|
@@ -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: {
|
|
@@ -3989,18 +3990,18 @@ function Pt(e, t) {
|
|
|
3989
3990
|
let za = "/", qt = {
|
|
3990
3991
|
"zh-CN": "简体中文"
|
|
3991
3992
|
};
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3993
|
+
const js = {};
|
|
3994
|
+
function bi() {
|
|
3994
3995
|
return localStorage.getItem("language") || "zh-CN";
|
|
3995
3996
|
}
|
|
3996
|
-
const me =
|
|
3997
|
+
const me = ii({
|
|
3997
3998
|
legacy: !1,
|
|
3998
3999
|
// 使用Composition API模式
|
|
3999
|
-
locale:
|
|
4000
|
+
locale: bi(),
|
|
4000
4001
|
// 从localStorage获取语言设置
|
|
4001
4002
|
fallbackLocale: "en-US",
|
|
4002
4003
|
// 回退语言
|
|
4003
|
-
messages:
|
|
4004
|
+
messages: js,
|
|
4004
4005
|
silentTranslationWarn: !0,
|
|
4005
4006
|
// 禁用翻译警告
|
|
4006
4007
|
fallbackWarn: !1,
|
|
@@ -4008,7 +4009,7 @@ const me = li({
|
|
|
4008
4009
|
missingWarn: !1
|
|
4009
4010
|
// 禁用缺失警告
|
|
4010
4011
|
});
|
|
4011
|
-
async function
|
|
4012
|
+
async function yi(e) {
|
|
4012
4013
|
try {
|
|
4013
4014
|
const t = await fetch(`${za}locales/${e}.json`);
|
|
4014
4015
|
if (!t.ok)
|
|
@@ -4018,7 +4019,7 @@ async function bi(e) {
|
|
|
4018
4019
|
return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
|
|
4019
4020
|
}
|
|
4020
4021
|
}
|
|
4021
|
-
function
|
|
4022
|
+
function Js(e) {
|
|
4022
4023
|
try {
|
|
4023
4024
|
const t = localStorage.getItem(`locale_cache_${e}`);
|
|
4024
4025
|
if (t)
|
|
@@ -4028,7 +4029,7 @@ function js(e) {
|
|
|
4028
4029
|
}
|
|
4029
4030
|
return null;
|
|
4030
4031
|
}
|
|
4031
|
-
function
|
|
4032
|
+
function Qs(e, t) {
|
|
4032
4033
|
try {
|
|
4033
4034
|
const a = {
|
|
4034
4035
|
messages: t,
|
|
@@ -4054,17 +4055,17 @@ function Za(e) {
|
|
|
4054
4055
|
}
|
|
4055
4056
|
return e;
|
|
4056
4057
|
}
|
|
4057
|
-
async function
|
|
4058
|
-
const t = Za(
|
|
4058
|
+
async function Xs(e) {
|
|
4059
|
+
const t = Za(vi), a = Js(e);
|
|
4059
4060
|
let n = {};
|
|
4060
4061
|
try {
|
|
4061
|
-
n = await
|
|
4062
|
+
n = await yi(e);
|
|
4062
4063
|
} catch {
|
|
4063
4064
|
}
|
|
4064
4065
|
let s = t;
|
|
4065
|
-
a && Object.keys(a).length > 0 && (s = Pt(s, a)), n && Object.keys(n).length > 0 && (s = Pt(s, n)),
|
|
4066
|
+
a && Object.keys(a).length > 0 && (s = Pt(s, a)), n && Object.keys(n).length > 0 && (s = Pt(s, n)), js[e] = s, me.global.setLocaleMessage(e, s), Qs(e, s);
|
|
4066
4067
|
}
|
|
4067
|
-
async function
|
|
4068
|
+
async function Ec(e = "/", t) {
|
|
4068
4069
|
za = e;
|
|
4069
4070
|
try {
|
|
4070
4071
|
const n = await fetch(`${za}locales/languages.json`);
|
|
@@ -4073,31 +4074,31 @@ async function hc(e = "/", t) {
|
|
|
4073
4074
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
4074
4075
|
}
|
|
4075
4076
|
const a = localStorage.getItem("language") || t || "zh-CN";
|
|
4076
|
-
me.global.locale.value = a, localStorage.setItem("language", a), await
|
|
4077
|
+
me.global.locale.value = a, localStorage.setItem("language", a), await Xs(a);
|
|
4077
4078
|
}
|
|
4078
|
-
async function
|
|
4079
|
-
await
|
|
4079
|
+
async function vc(e) {
|
|
4080
|
+
await Xs(e), me.global.locale.value = e, localStorage.setItem("language", e);
|
|
4080
4081
|
}
|
|
4081
|
-
function
|
|
4082
|
+
function bc(e = "code") {
|
|
4082
4083
|
const t = me.global.locale.value;
|
|
4083
4084
|
return e === "display" ? qt[t] : t;
|
|
4084
4085
|
}
|
|
4085
|
-
function
|
|
4086
|
+
function yc() {
|
|
4086
4087
|
return Object.keys(qt).map((e) => ({
|
|
4087
4088
|
label: qt[e],
|
|
4088
4089
|
key: e
|
|
4089
4090
|
}));
|
|
4090
4091
|
}
|
|
4091
|
-
function
|
|
4092
|
+
function P(e, t) {
|
|
4092
4093
|
try {
|
|
4093
4094
|
const a = me.global.t(e, t);
|
|
4094
4095
|
if (a === e) {
|
|
4095
4096
|
const n = me.global.getLocaleMessage(me.global.locale.value);
|
|
4096
4097
|
if (!n || Object.keys(n).length === 0) {
|
|
4097
|
-
const r =
|
|
4098
|
+
const r = Js(me.global.locale.value);
|
|
4098
4099
|
if (r) {
|
|
4099
4100
|
const o = Pt({}, r);
|
|
4100
|
-
me.global.setLocaleMessage(me.global.locale.value, o),
|
|
4101
|
+
me.global.setLocaleMessage(me.global.locale.value, o), Qs(me.global.locale.value, o);
|
|
4101
4102
|
const l = me.global.t(e, t || {});
|
|
4102
4103
|
return l === e ? e : l;
|
|
4103
4104
|
}
|
|
@@ -4145,46 +4146,46 @@ ne($, "setOptions", (t, a) => {
|
|
|
4145
4146
|
ne($, "initOptions", () => {
|
|
4146
4147
|
$.initialized || ($.EnableDisable = [
|
|
4147
4148
|
{
|
|
4148
|
-
label:
|
|
4149
|
-
text: `✅ ${
|
|
4149
|
+
label: P("webui.common.enable"),
|
|
4150
|
+
text: `✅ ${P("webui.common.enable")}`,
|
|
4150
4151
|
value: 1
|
|
4151
4152
|
},
|
|
4152
4153
|
{
|
|
4153
|
-
label:
|
|
4154
|
-
text: `🚫 ${
|
|
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:
|
|
4160
|
-
text: `✅ ${
|
|
4160
|
+
label: P("webui.common.success"),
|
|
4161
|
+
text: `✅ ${P("webui.common.success")}`,
|
|
4161
4162
|
value: 1
|
|
4162
4163
|
},
|
|
4163
4164
|
{
|
|
4164
|
-
label:
|
|
4165
|
-
text: `🚫 ${
|
|
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:
|
|
4171
|
-
text: `✅ ${
|
|
4171
|
+
label: P("webui.common.yes"),
|
|
4172
|
+
text: `✅ ${P("webui.common.yes")}`,
|
|
4172
4173
|
value: 1
|
|
4173
4174
|
},
|
|
4174
4175
|
{
|
|
4175
|
-
label:
|
|
4176
|
-
text: `❎ ${
|
|
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:
|
|
4182
|
-
text: `${
|
|
4182
|
+
label: P("webui.common.male"),
|
|
4183
|
+
text: `${P("webui.common.male")} 👨`,
|
|
4183
4184
|
value: "M"
|
|
4184
4185
|
},
|
|
4185
4186
|
{
|
|
4186
|
-
label:
|
|
4187
|
-
text: `${
|
|
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);
|
|
@@ -4209,7 +4210,7 @@ ne($, "YesNo", []), /**
|
|
|
4209
4210
|
* - 女 F
|
|
4210
4211
|
*/
|
|
4211
4212
|
ne($, "MaleFemale", []);
|
|
4212
|
-
let en = $,
|
|
4213
|
+
let en = $, qs = "";
|
|
4213
4214
|
const ia = {
|
|
4214
4215
|
login: {
|
|
4215
4216
|
api: "PLATFORM_API",
|
|
@@ -4227,7 +4228,7 @@ const ia = {
|
|
|
4227
4228
|
authorize: !0,
|
|
4228
4229
|
url: "/api/LoginSrv/logout"
|
|
4229
4230
|
}
|
|
4230
|
-
},
|
|
4231
|
+
}, zs = {
|
|
4231
4232
|
host: {
|
|
4232
4233
|
api: "SITEHOST_API",
|
|
4233
4234
|
url: "/openapi/RCSiteHostSrv/get",
|
|
@@ -4239,8 +4240,8 @@ const ia = {
|
|
|
4239
4240
|
hideErrorToast: !0
|
|
4240
4241
|
}
|
|
4241
4242
|
};
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4243
|
+
function Ic() {
|
|
4244
|
+
qs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), zs.host.loadingText = P("webui.stores.hostInfo.loading");
|
|
4244
4245
|
}
|
|
4245
4246
|
const Ct = {
|
|
4246
4247
|
/**
|
|
@@ -4313,18 +4314,18 @@ const Ct = {
|
|
|
4313
4314
|
type: Object,
|
|
4314
4315
|
required: !1
|
|
4315
4316
|
}
|
|
4316
|
-
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", jt = [],
|
|
4317
|
+
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", jt = [], Ii = (e) => {
|
|
4317
4318
|
for (const t of e) {
|
|
4318
4319
|
const a = jt.findIndex((n) => n.path === t.path);
|
|
4319
4320
|
a !== -1 && jt.splice(a, 1), jt.push(t), ca.addRoute(t);
|
|
4320
4321
|
}
|
|
4321
|
-
},
|
|
4322
|
+
}, Zs = (e, t, a, n = "") => {
|
|
4322
4323
|
const s = n + (n ? "/" : "") + e.path;
|
|
4323
|
-
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) =>
|
|
4324
|
-
}, ca =
|
|
4325
|
-
history:
|
|
4324
|
+
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => Zs(r, t, e, s));
|
|
4325
|
+
}, ca = Fr({
|
|
4326
|
+
history: Mr("/"),
|
|
4326
4327
|
routes: jt
|
|
4327
|
-
}),
|
|
4328
|
+
}), Ni = (e, t) => {
|
|
4328
4329
|
var s, r;
|
|
4329
4330
|
const a = ((s = e.meta) == null ? void 0 : s.roles) ?? [], n = (r = e.meta) == null ? void 0 : r.permission;
|
|
4330
4331
|
if (!t)
|
|
@@ -4345,7 +4346,7 @@ const Ct = {
|
|
|
4345
4346
|
}
|
|
4346
4347
|
}
|
|
4347
4348
|
return !1;
|
|
4348
|
-
}, yt =
|
|
4349
|
+
}, yt = w(null);
|
|
4349
4350
|
ca.beforeEach((e, t, a) => {
|
|
4350
4351
|
var l;
|
|
4351
4352
|
const n = e;
|
|
@@ -4380,24 +4381,24 @@ ca.beforeEach((e, t, a) => {
|
|
|
4380
4381
|
};
|
|
4381
4382
|
return;
|
|
4382
4383
|
}
|
|
4383
|
-
const m =
|
|
4384
|
+
const m = Ni(n, i.isLogin);
|
|
4384
4385
|
a();
|
|
4385
4386
|
}
|
|
4386
4387
|
}
|
|
4387
4388
|
});
|
|
4388
|
-
const
|
|
4389
|
+
const Si = (e) => {
|
|
4389
4390
|
if (yt.value) {
|
|
4390
4391
|
const { to: t, next: a } = yt.value;
|
|
4391
4392
|
yt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4392
4393
|
}
|
|
4393
|
-
},
|
|
4394
|
+
}, Ti = (e) => {
|
|
4394
4395
|
const t = hn();
|
|
4395
4396
|
if (t.TabEnabled) {
|
|
4396
|
-
if (
|
|
4397
|
+
if (Li(e.key, t.TabPanes))
|
|
4397
4398
|
return;
|
|
4398
4399
|
t.TabPanes.push(e);
|
|
4399
4400
|
}
|
|
4400
|
-
},
|
|
4401
|
+
}, Li = (e, t) => t.find((a) => a.key === e), hn = kt("pageInfo", {
|
|
4401
4402
|
state: () => ({
|
|
4402
4403
|
TabActive: "",
|
|
4403
4404
|
TabPanes: [],
|
|
@@ -4442,7 +4443,7 @@ const Ni = (e) => {
|
|
|
4442
4443
|
// 默认为true
|
|
4443
4444
|
keepAlive: !(a.meta && !a.meta.keepAlive)
|
|
4444
4445
|
};
|
|
4445
|
-
|
|
4446
|
+
Ti(n), this.TabActive = e;
|
|
4446
4447
|
}
|
|
4447
4448
|
},
|
|
4448
4449
|
persist: !1
|
|
@@ -4463,13 +4464,13 @@ class ae {
|
|
|
4463
4464
|
*/
|
|
4464
4465
|
static async callMainAppMethod(t, a) {
|
|
4465
4466
|
if (!this.isInMicroApp())
|
|
4466
|
-
throw new Error(
|
|
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(
|
|
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 ||
|
|
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
|
/**
|
|
@@ -4552,14 +4553,14 @@ const It = {
|
|
|
4552
4553
|
userLogout: ae.userLogout.bind(ae),
|
|
4553
4554
|
mainAppPush: ae.mainAppPush.bind(ae),
|
|
4554
4555
|
isInMicroApp: ae.isInMicroApp.bind(ae)
|
|
4555
|
-
},
|
|
4556
|
+
}, Oi = {
|
|
4556
4557
|
appList: {
|
|
4557
4558
|
api: "PLATFORM_API",
|
|
4558
4559
|
authorize: !0,
|
|
4559
4560
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
4560
4561
|
loadingText: !1
|
|
4561
4562
|
}
|
|
4562
|
-
}, xa = /* @__PURE__ */ new Map(),
|
|
4563
|
+
}, xa = /* @__PURE__ */ new Map(), Ai = (e) => {
|
|
4563
4564
|
const t = Ie(), { roles: a, permission: n } = e.meta || {};
|
|
4564
4565
|
if (ve(a) && ve(n))
|
|
4565
4566
|
return !0;
|
|
@@ -4570,17 +4571,17 @@ const It = {
|
|
|
4570
4571
|
return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
|
|
4571
4572
|
}
|
|
4572
4573
|
return !1;
|
|
4573
|
-
},
|
|
4574
|
+
}, er = (e) => e.map((t) => {
|
|
4574
4575
|
const a = { ...t };
|
|
4575
|
-
return
|
|
4576
|
-
}).filter(Boolean),
|
|
4576
|
+
return Ai(a) ? (a.children && (a.children = er(a.children)), a) : null;
|
|
4577
|
+
}).filter(Boolean), tr = (e, t = "") => {
|
|
4577
4578
|
for (const a of e) {
|
|
4578
4579
|
if (!a.children && !a.redirect) {
|
|
4579
4580
|
let n = t + a.path;
|
|
4580
4581
|
return n.startsWith("/") || (n = "/" + n), n;
|
|
4581
4582
|
}
|
|
4582
4583
|
if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
|
|
4583
|
-
const n =
|
|
4584
|
+
const n = tr(a.children, t + a.path + "/");
|
|
4584
4585
|
if (n)
|
|
4585
4586
|
return n;
|
|
4586
4587
|
}
|
|
@@ -4619,7 +4620,7 @@ const It = {
|
|
|
4619
4620
|
});
|
|
4620
4621
|
},
|
|
4621
4622
|
async getRemoteAppList() {
|
|
4622
|
-
return Xe(
|
|
4623
|
+
return Xe(Oi.appList, {
|
|
4623
4624
|
Query: {
|
|
4624
4625
|
AppCode: this.appInfo.AppCode,
|
|
4625
4626
|
Enabled: 1
|
|
@@ -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(
|
|
4639
|
+
se.error(P("webui.stores.appInfo.loadAppListFailed"));
|
|
4639
4640
|
return;
|
|
4640
4641
|
}
|
|
4641
4642
|
let t = "";
|
|
@@ -4663,7 +4664,7 @@ const It = {
|
|
|
4663
4664
|
flattenRoutes: {},
|
|
4664
4665
|
Routes: t ?? [],
|
|
4665
4666
|
defaultPage: ""
|
|
4666
|
-
}), (!Ce() || !
|
|
4667
|
+
}), (!Ce() || !kr()) && (await Ie().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
|
|
4667
4668
|
},
|
|
4668
4669
|
/**
|
|
4669
4670
|
* 设置当前应用路由信息
|
|
@@ -4678,18 +4679,18 @@ const It = {
|
|
|
4678
4679
|
};
|
|
4679
4680
|
const t = this.appInfo.flattenRoutes;
|
|
4680
4681
|
for (const a of e)
|
|
4681
|
-
|
|
4682
|
+
Zs(a, t, void 0);
|
|
4682
4683
|
if (Object.keys(t).forEach((a) => {
|
|
4683
4684
|
const n = t[a];
|
|
4684
4685
|
n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
|
|
4685
4686
|
}), Ie().isLogin) {
|
|
4686
|
-
const a =
|
|
4687
|
-
if (
|
|
4687
|
+
const a = er(this.appInfo.Routes);
|
|
4688
|
+
if (Ii(a), this.appInfo.defaultPage = tr(a) || "", this.appInfo.defaultPage) {
|
|
4688
4689
|
if (this.menuLoaded = !0, Ce()) {
|
|
4689
4690
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4690
4691
|
It.mainAppPush(n);
|
|
4691
4692
|
}
|
|
4692
|
-
|
|
4693
|
+
Si(this.appInfo.defaultPage);
|
|
4693
4694
|
}
|
|
4694
4695
|
}
|
|
4695
4696
|
},
|
|
@@ -4707,7 +4708,7 @@ const It = {
|
|
|
4707
4708
|
* @param path 路由地址
|
|
4708
4709
|
*/
|
|
4709
4710
|
push(e) {
|
|
4710
|
-
this.findRoute(e) && hn().setTabActive(e),
|
|
4711
|
+
this.findRoute(e) && hn().setTabActive(e), Er(() => {
|
|
4711
4712
|
if (ca.push({ path: e }), Ce()) {
|
|
4712
4713
|
const a = this.formatRoute(e);
|
|
4713
4714
|
It.mainAppPush(a);
|
|
@@ -4782,7 +4783,7 @@ const It = {
|
|
|
4782
4783
|
}
|
|
4783
4784
|
},
|
|
4784
4785
|
persist: !1
|
|
4785
|
-
}), ua = 1400,
|
|
4786
|
+
}), ua = 1400, Pi = (e) => {
|
|
4786
4787
|
let t = {
|
|
4787
4788
|
Option: {
|
|
4788
4789
|
Mode: "MicroApp"
|
|
@@ -4790,7 +4791,7 @@ const It = {
|
|
|
4790
4791
|
Query: e
|
|
4791
4792
|
};
|
|
4792
4793
|
return Xe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4793
|
-
},
|
|
4794
|
+
}, Ri = (e) => {
|
|
4794
4795
|
let t = {
|
|
4795
4796
|
Query: {
|
|
4796
4797
|
AppId: e
|
|
@@ -4803,22 +4804,22 @@ const It = {
|
|
|
4803
4804
|
Ie().logout(!1);
|
|
4804
4805
|
return;
|
|
4805
4806
|
}
|
|
4806
|
-
return se.error(
|
|
4807
|
+
return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
|
|
4807
4808
|
});
|
|
4808
|
-
},
|
|
4809
|
+
}, wi = () => {
|
|
4809
4810
|
let e = {
|
|
4810
4811
|
Option: {},
|
|
4811
4812
|
Query: {}
|
|
4812
4813
|
};
|
|
4813
4814
|
return Xe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4814
|
-
},
|
|
4815
|
+
}, ki = (e) => {
|
|
4815
4816
|
try {
|
|
4816
4817
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
4817
4818
|
return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
|
|
4818
4819
|
} catch (t) {
|
|
4819
|
-
return console.error(
|
|
4820
|
+
return console.error(qs, t), !1;
|
|
4820
4821
|
}
|
|
4821
|
-
}, de =
|
|
4822
|
+
}, de = w(""), vt = w(null), Ie = kt("userInfo", {
|
|
4822
4823
|
state: () => ({
|
|
4823
4824
|
isLogin: !1,
|
|
4824
4825
|
userInfo: {
|
|
@@ -4844,20 +4845,20 @@ const It = {
|
|
|
4844
4845
|
* @returns
|
|
4845
4846
|
*/
|
|
4846
4847
|
async login(e, t) {
|
|
4847
|
-
const a = await
|
|
4848
|
+
const a = await Pi(e);
|
|
4848
4849
|
if (a) {
|
|
4849
4850
|
const n = a;
|
|
4850
4851
|
if (n.errno)
|
|
4851
4852
|
return n;
|
|
4852
4853
|
{
|
|
4853
4854
|
const s = a.data;
|
|
4854
|
-
if (this.token = s.token, Ht(this.token), this.isLogin = !0,
|
|
4855
|
+
if (this.token = s.token, Ht(this.token), this.isLogin = !0, ki(s))
|
|
4855
4856
|
this.userInfo = {
|
|
4856
4857
|
...this.userInfo,
|
|
4857
4858
|
...s.UserInfo
|
|
4858
4859
|
}, de.value = s.UserInfo.UserLevel;
|
|
4859
4860
|
else {
|
|
4860
|
-
se.error(
|
|
4861
|
+
se.error(P("webui.stores.userInfo.userInfoParseFailed"));
|
|
4861
4862
|
return;
|
|
4862
4863
|
}
|
|
4863
4864
|
t && Fe().toDefaultApp();
|
|
@@ -4875,7 +4876,7 @@ const It = {
|
|
|
4875
4876
|
if (vt.value && vt.value.appId === e)
|
|
4876
4877
|
return !0;
|
|
4877
4878
|
try {
|
|
4878
|
-
const t = await
|
|
4879
|
+
const t = await Ri(e);
|
|
4879
4880
|
return t ? (vt.value = {
|
|
4880
4881
|
appId: e,
|
|
4881
4882
|
permits: t.permits || [],
|
|
@@ -4970,12 +4971,12 @@ const It = {
|
|
|
4970
4971
|
if (Ce())
|
|
4971
4972
|
return It.userLogout(), Promise.resolve();
|
|
4972
4973
|
try {
|
|
4973
|
-
e && await
|
|
4974
|
+
e && await wi();
|
|
4974
4975
|
} catch (t) {
|
|
4975
4976
|
console.error("调用登出接口失败", t);
|
|
4976
4977
|
} finally {
|
|
4977
4978
|
await this.clean(), e && setTimeout(async () => {
|
|
4978
|
-
se.success(
|
|
4979
|
+
se.success(P("webui.stores.userInfo.logoutSuccess"));
|
|
4979
4980
|
}, 1e3), setTimeout(async () => {
|
|
4980
4981
|
Fe().logout();
|
|
4981
4982
|
}, 2e3);
|
|
@@ -5005,59 +5006,59 @@ const It = {
|
|
|
5005
5006
|
}, da = (e, t) => {
|
|
5006
5007
|
const a = e.page, n = t.url;
|
|
5007
5008
|
if (!n || !n.url) {
|
|
5008
|
-
const
|
|
5009
|
-
return console.warn(
|
|
5009
|
+
const o = P("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
|
|
5010
|
+
return console.warn(o), Promise.reject(new Error(o));
|
|
5010
5011
|
}
|
|
5011
5012
|
n.api || (n.api = a.api), n.authorize === void 0 && (n.authorize = a.authorize);
|
|
5012
5013
|
let s = Dt(
|
|
5013
5014
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
5014
5015
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5015
5016
|
);
|
|
5016
|
-
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((
|
|
5017
|
+
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ms : Xe)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (Ie().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
5017
5018
|
}, En = (e, t) => {
|
|
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
|
-
},
|
|
5022
|
+
}, Nc = (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))), ar = (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(
|
|
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 ||
|
|
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(
|
|
5033
|
-
},
|
|
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));
|
|
5034
|
+
}, Di = (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 ||
|
|
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(
|
|
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(
|
|
5045
|
-
},
|
|
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));
|
|
5046
|
+
}, Ci = (e, t) => En(e, {
|
|
5046
5047
|
urlKey: "tree",
|
|
5047
5048
|
params: {},
|
|
5048
5049
|
loadingState: e.isTreeLoading,
|
|
5049
5050
|
loadingText: !1,
|
|
5050
5051
|
processParams: () => Dt(e.treeQuery, t)
|
|
5051
|
-
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])),
|
|
5052
|
+
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Fi = (e, t) => {
|
|
5052
5053
|
for (const a of e) {
|
|
5053
5054
|
if (a.key === t) return a;
|
|
5054
5055
|
if (a.children) {
|
|
5055
|
-
const n =
|
|
5056
|
+
const n = Fi(a.children, t);
|
|
5056
5057
|
if (n) return n;
|
|
5057
5058
|
}
|
|
5058
5059
|
}
|
|
5059
5060
|
return null;
|
|
5060
|
-
},
|
|
5061
|
+
}, Sc = kt("settingInfo", {
|
|
5061
5062
|
state: () => ({
|
|
5062
5063
|
fullscreen: !1,
|
|
5063
5064
|
menuCollapse: !1,
|
|
@@ -5101,34 +5102,34 @@ const It = {
|
|
|
5101
5102
|
persist: !1
|
|
5102
5103
|
});
|
|
5103
5104
|
let ct;
|
|
5104
|
-
const
|
|
5105
|
+
const Tc = (e) => {
|
|
5105
5106
|
ct = new aa({}), ct.messages({
|
|
5106
|
-
required: "${label}" +
|
|
5107
|
+
required: "${label}" + P("webui.utils.formValidate.required"),
|
|
5107
5108
|
types: {
|
|
5108
|
-
number: "${label}" +
|
|
5109
|
+
number: "${label}" + P("webui.utils.formValidate.numberType")
|
|
5109
5110
|
},
|
|
5110
|
-
enum: "${label}" +
|
|
5111
|
+
enum: "${label}" + P("webui.utils.formValidate.enum"),
|
|
5111
5112
|
string: {
|
|
5112
|
-
len: "${label}" +
|
|
5113
|
-
min: "${label}" +
|
|
5114
|
-
max: "${label}" +
|
|
5115
|
-
range: "${label}" +
|
|
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}" +
|
|
5119
|
-
min: "${label}" +
|
|
5120
|
-
max: "${label}" +
|
|
5121
|
-
range: "${label}" +
|
|
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}" +
|
|
5125
|
-
min: "${label}" +
|
|
5126
|
-
max: "${label}" +
|
|
5127
|
-
range: "${label}" +
|
|
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
|
});
|
|
5131
|
-
},
|
|
5132
|
+
}, Lc = (e) => {
|
|
5132
5133
|
if (!e || ve(e))
|
|
5133
5134
|
return [];
|
|
5134
5135
|
const t = [], a = ct.messages(), n = (r, o, l) => {
|
|
@@ -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(
|
|
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(
|
|
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({
|
|
@@ -5182,26 +5183,26 @@ const Sc = (e) => {
|
|
|
5182
5183
|
rules: i
|
|
5183
5184
|
});
|
|
5184
5185
|
}), t;
|
|
5185
|
-
},
|
|
5186
|
+
}, Oc = (e) => {
|
|
5186
5187
|
const t = new aa({});
|
|
5187
5188
|
return t.messages(ct.messages()), t.define(e), t;
|
|
5188
5189
|
}, Ft = async (e) => {
|
|
5189
5190
|
const t = e.formData.value, a = e.formRules.value;
|
|
5190
5191
|
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ct.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5191
5192
|
}).catch(({ fields: n }) => n));
|
|
5192
|
-
},
|
|
5193
|
+
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ct.messages()), a.define(t)), a.validate(e).then(() => {
|
|
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 =
|
|
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,
|
|
5200
5201
|
ruleKey: a,
|
|
5201
5202
|
errInfo: n
|
|
5202
5203
|
};
|
|
5203
|
-
},
|
|
5204
|
-
let a =
|
|
5204
|
+
}, Mi = (e, t) => {
|
|
5205
|
+
let a = w({
|
|
5205
5206
|
msg: "",
|
|
5206
5207
|
errClass: ""
|
|
5207
5208
|
});
|
|
@@ -5212,7 +5213,7 @@ const Sc = (e) => {
|
|
|
5212
5213
|
() => n == null ? void 0 : n.value,
|
|
5213
5214
|
(s) => {
|
|
5214
5215
|
if (a.value.errClass = "", a.value.msg = "", !ve(s)) {
|
|
5215
|
-
const r =
|
|
5216
|
+
const r = Ui(
|
|
5216
5217
|
{
|
|
5217
5218
|
label: e.label,
|
|
5218
5219
|
rule: e.rule
|
|
@@ -5225,8 +5226,8 @@ const Sc = (e) => {
|
|
|
5225
5226
|
},
|
|
5226
5227
|
{ deep: !0 }
|
|
5227
5228
|
), a;
|
|
5228
|
-
},
|
|
5229
|
-
const n =
|
|
5229
|
+
}, Ui = (e, t, a) => {
|
|
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) => {
|
|
@@ -5252,34 +5253,34 @@ const Sc = (e) => {
|
|
|
5252
5253
|
});
|
|
5253
5254
|
}
|
|
5254
5255
|
}), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
|
|
5255
|
-
},
|
|
5256
|
+
}, Pc = (e, t) => {
|
|
5256
5257
|
ka(Re.LabelText, e.label || ""), ka(Re.RuleKey, e.rule || "");
|
|
5257
|
-
const a =
|
|
5258
|
+
const a = Mi(e, t);
|
|
5258
5259
|
return ka(Re.ErrInfo, a), a;
|
|
5259
|
-
},
|
|
5260
|
+
}, xi = (e, t) => {
|
|
5260
5261
|
if (!t)
|
|
5261
5262
|
return;
|
|
5262
5263
|
const [a, ...n] = e;
|
|
5263
5264
|
if (e.length === 1)
|
|
5264
5265
|
return t[a];
|
|
5265
5266
|
if (t[a])
|
|
5266
|
-
return
|
|
5267
|
-
}, Pc = (e) => {
|
|
5268
|
-
ar(e);
|
|
5267
|
+
return xi(n, t[a].fields);
|
|
5269
5268
|
}, Rc = (e) => {
|
|
5270
|
-
|
|
5271
|
-
a[e.primaryKey ?? t.primaryKey] = null, ar(e);
|
|
5269
|
+
nr(e);
|
|
5272
5270
|
}, wc = (e) => {
|
|
5271
|
+
const t = e.page, a = e.formData.value;
|
|
5272
|
+
a[e.primaryKey ?? t.primaryKey] = null, nr(e);
|
|
5273
|
+
}, kc = (e) => {
|
|
5273
5274
|
bn(e), e.visible.value = !1;
|
|
5274
|
-
},
|
|
5275
|
+
}, nr = async (e) => {
|
|
5275
5276
|
var n;
|
|
5276
5277
|
const t = e.page;
|
|
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(
|
|
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
|
-
return
|
|
5283
|
+
return ar(
|
|
5283
5284
|
{
|
|
5284
5285
|
page: t,
|
|
5285
5286
|
// 转换为AnyControl接口
|
|
@@ -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(
|
|
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,36 +5312,36 @@ const Sc = (e) => {
|
|
|
5311
5312
|
{
|
|
5312
5313
|
field: p,
|
|
5313
5314
|
fieldValue: i,
|
|
5314
|
-
message:
|
|
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(
|
|
5320
|
-
} else se.error((s == null ? void 0 : s.msg) ??
|
|
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) ??
|
|
5324
|
+
se.error((s == null ? void 0 : s.msg) ?? P("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
|
|
5324
5325
|
});
|
|
5325
|
-
},
|
|
5326
|
+
}, Dc = async (e) => {
|
|
5326
5327
|
const t = e.page, a = e.grid;
|
|
5327
5328
|
e.isFormLoading.value = !0;
|
|
5328
5329
|
const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
|
|
5329
|
-
return
|
|
5330
|
-
e.isFormLoading.value = !1, r &&
|
|
5330
|
+
return or(a, { [s]: n[s] }, e.detailUrl).then((r) => {
|
|
5331
|
+
e.isFormLoading.value = !1, r && sr(e, r);
|
|
5331
5332
|
});
|
|
5332
|
-
},
|
|
5333
|
+
}, Cc = (e) => {
|
|
5333
5334
|
const t = e.grid;
|
|
5334
5335
|
t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5335
5336
|
e.visible.value = !0;
|
|
5336
5337
|
}, 1));
|
|
5337
|
-
},
|
|
5338
|
+
}, sr = (e, t) => {
|
|
5338
5339
|
bn(e);
|
|
5339
5340
|
const a = { ...e.formData.value, ...t };
|
|
5340
5341
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5341
5342
|
}, bn = (e) => {
|
|
5342
5343
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5343
|
-
},
|
|
5344
|
+
}, Fc = (e, t) => {
|
|
5344
5345
|
const a = Ie();
|
|
5345
5346
|
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) => {
|
|
5346
5347
|
if (!t) {
|
|
@@ -5351,7 +5352,7 @@ const Sc = (e) => {
|
|
|
5351
5352
|
}
|
|
5352
5353
|
return !0;
|
|
5353
5354
|
});
|
|
5354
|
-
},
|
|
5355
|
+
}, Mc = (e, t) => {
|
|
5355
5356
|
const a = t == null ? void 0 : t.filter((n) => {
|
|
5356
5357
|
const s = e.find(
|
|
5357
5358
|
(r) => r.dataIndex === n.dataIndex || r.key === n.key || r.title === n.title
|
|
@@ -5359,25 +5360,31 @@ const Sc = (e) => {
|
|
|
5359
5360
|
return s ? { ...n, ...s } : !1;
|
|
5360
5361
|
});
|
|
5361
5362
|
return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
|
|
5362
|
-
},
|
|
5363
|
+
}, Vi = (e) => rr(e).then((t) => t.rows), rr = (e) => {
|
|
5364
|
+
var a, n, s, r;
|
|
5363
5365
|
e.gridQuery || (e.gridQuery = {});
|
|
5364
5366
|
const t = e.remotePage ? "find" : "list";
|
|
5365
5367
|
return En(e, {
|
|
5366
5368
|
urlKey: t,
|
|
5367
|
-
url:
|
|
5369
|
+
url: {
|
|
5370
|
+
url: ((a = e.gridUrl) == null ? void 0 : a.url) || "",
|
|
5371
|
+
...e.gridUrl,
|
|
5372
|
+
loadingText: ((n = e.gridUrl) == null ? void 0 : n.loadingText) || P("webui.common.dataLoading")
|
|
5373
|
+
},
|
|
5368
5374
|
params: e.gridQuery,
|
|
5369
5375
|
loadingState: e.isGridLoading,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5376
|
+
loadingText: ((s = e.gridUrl) == null ? void 0 : s.loadingText) === !1 ? !1 : ((r = e.gridUrl) == null ? void 0 : r.loadingText) || P("webui.common.dataLoading"),
|
|
5377
|
+
processParams: (o) => {
|
|
5378
|
+
var i;
|
|
5379
|
+
return e.remotePage && (o.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Dt((i = e.gridUrl) == null ? void 0 : i.params, o, e.gridQuery);
|
|
5373
5380
|
}
|
|
5374
|
-
}).then((
|
|
5375
|
-
if ((
|
|
5376
|
-
let
|
|
5377
|
-
return
|
|
5381
|
+
}).then((o) => {
|
|
5382
|
+
if ((o == null ? void 0 : o.status) === ie.SUCCESS) {
|
|
5383
|
+
let l = o.data;
|
|
5384
|
+
return l.rows ? (e.tableData.value = l.rows, e.total.value = l.total) : (e.tableData.value = o.data, e.total.value = o.data.length, l = {
|
|
5378
5385
|
total: e.total.value,
|
|
5379
|
-
rows:
|
|
5380
|
-
}), e.afterLoad && e.afterLoad(
|
|
5386
|
+
rows: o.data
|
|
5387
|
+
}), e.afterLoad && e.afterLoad(l), l;
|
|
5381
5388
|
}
|
|
5382
5389
|
return e.tableData.value = [], e.total.value = 0, e.afterLoad && e.afterLoad({
|
|
5383
5390
|
total: 0,
|
|
@@ -5387,7 +5394,7 @@ const Sc = (e) => {
|
|
|
5387
5394
|
rows: []
|
|
5388
5395
|
};
|
|
5389
5396
|
});
|
|
5390
|
-
},
|
|
5397
|
+
}, $i = (e, t, a = {}) => ar(e, {
|
|
5391
5398
|
urlKey: "update",
|
|
5392
5399
|
url: e.updateUrl,
|
|
5393
5400
|
params: {
|
|
@@ -5398,31 +5405,31 @@ const Sc = (e) => {
|
|
|
5398
5405
|
...a
|
|
5399
5406
|
}).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
|
|
5400
5407
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
|
|
5401
|
-
}, 50), n)),
|
|
5408
|
+
}, 50), n)), Uc = (e, t) => {
|
|
5402
5409
|
const a = {};
|
|
5403
|
-
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey],
|
|
5410
|
+
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], $i(e, a, {
|
|
5404
5411
|
loadingText: !1,
|
|
5405
5412
|
hideErrorToast: !0
|
|
5406
5413
|
});
|
|
5407
|
-
},
|
|
5414
|
+
}, or = async (e, t, a) => await En(e, {
|
|
5408
5415
|
urlKey: "detail",
|
|
5409
5416
|
url: a,
|
|
5410
5417
|
params: t,
|
|
5411
5418
|
loadingState: e.isGridLoading
|
|
5412
|
-
}),
|
|
5419
|
+
}), xc = (e, t) => {
|
|
5413
5420
|
const a = t;
|
|
5414
|
-
return
|
|
5415
|
-
},
|
|
5421
|
+
return or(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
|
|
5422
|
+
}, Vc = (e, t) => {
|
|
5416
5423
|
let a = e.editor;
|
|
5417
|
-
e.rowData.value = t, a && (
|
|
5418
|
-
},
|
|
5424
|
+
e.rowData.value = t, a && (sr(a, t), a.visible.value = !0);
|
|
5425
|
+
}, $c = (e, t) => Di(e, t, {
|
|
5419
5426
|
url: e.deleteUrl,
|
|
5420
5427
|
primaryKey: e.primaryKey
|
|
5421
5428
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5422
5429
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5423
5430
|
}, 50), a));
|
|
5424
5431
|
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 || {});
|
|
5425
|
-
class
|
|
5432
|
+
class Hi {
|
|
5426
5433
|
constructor() {
|
|
5427
5434
|
ne(this, "listeners", {});
|
|
5428
5435
|
}
|
|
@@ -5468,11 +5475,11 @@ class $i {
|
|
|
5468
5475
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5469
5476
|
}
|
|
5470
5477
|
}
|
|
5471
|
-
const nt = new
|
|
5478
|
+
const nt = new Hi(), mt = (e, t, a) => {
|
|
5472
5479
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5473
5480
|
const n = t.inputFactory.value;
|
|
5474
5481
|
n.reloadHandler = (s, r) => {
|
|
5475
|
-
|
|
5482
|
+
Wi(t.url, t, r);
|
|
5476
5483
|
}, nt.on(a.reloadEvent, n.reloadHandler);
|
|
5477
5484
|
}
|
|
5478
5485
|
if (a != null && a.data)
|
|
@@ -5484,10 +5491,10 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5484
5491
|
{ deep: !0, immediate: !0 }
|
|
5485
5492
|
);
|
|
5486
5493
|
else if (t.url && t.url.url)
|
|
5487
|
-
e &&
|
|
5494
|
+
e && lr(t.url, t, t.params ?? {});
|
|
5488
5495
|
else {
|
|
5489
|
-
const n =
|
|
5490
|
-
se.error("`" + n.value + "` " +
|
|
5496
|
+
const n = w(at(Re.LabelText, ""));
|
|
5497
|
+
se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
|
|
5491
5498
|
duration: 5e3
|
|
5492
5499
|
});
|
|
5493
5500
|
}
|
|
@@ -5496,23 +5503,23 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5496
5503
|
const n = {
|
|
5497
5504
|
...e.fieldMap
|
|
5498
5505
|
};
|
|
5499
|
-
t =
|
|
5506
|
+
t = Dr(n, t);
|
|
5500
5507
|
}
|
|
5501
5508
|
t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
|
|
5502
|
-
label:
|
|
5509
|
+
label: P("webui.components.form.radio.all"),
|
|
5503
5510
|
value: e.allValue ?? void 0
|
|
5504
5511
|
}), e.options.value = t;
|
|
5505
|
-
},
|
|
5506
|
-
Array.isArray(a) ? yn(t, a, !0) :
|
|
5512
|
+
}, Wi = (e, t, a) => {
|
|
5513
|
+
Array.isArray(a) ? yn(t, a, !0) : lr(e, t, a);
|
|
5507
5514
|
}, Mt = (e, t) => {
|
|
5508
5515
|
var a;
|
|
5509
5516
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && nt.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5510
|
-
},
|
|
5517
|
+
}, lr = (e, t, a) => {
|
|
5511
5518
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Dt(n, s, a);
|
|
5512
|
-
|
|
5519
|
+
Gi(e, t, t.fieldMap, r).then((o) => {
|
|
5513
5520
|
yn(t, o, !1);
|
|
5514
5521
|
});
|
|
5515
|
-
},
|
|
5522
|
+
}, Gi = (e, t, a, n) => {
|
|
5516
5523
|
const { fieldMap: s, ...r } = e, l = {
|
|
5517
5524
|
...{
|
|
5518
5525
|
url: "",
|
|
@@ -5524,11 +5531,11 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5524
5531
|
},
|
|
5525
5532
|
...r
|
|
5526
5533
|
};
|
|
5527
|
-
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, Xe(l, n).then((
|
|
5528
|
-
if ((
|
|
5529
|
-
if (
|
|
5530
|
-
return
|
|
5531
|
-
} else if ((
|
|
5534
|
+
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ? ms : Xe)(l, n).then((c) => {
|
|
5535
|
+
if ((c == null ? void 0 : c.status) === ie.SUCCESS) {
|
|
5536
|
+
if (c.data)
|
|
5537
|
+
return c.data;
|
|
5538
|
+
} else if ((c == null ? void 0 : c.errno) == ua) {
|
|
5532
5539
|
Ie().logout(!1);
|
|
5533
5540
|
return;
|
|
5534
5541
|
}
|
|
@@ -5536,7 +5543,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5536
5543
|
}).finally(() => {
|
|
5537
5544
|
t.isOptionLoading.value = !1;
|
|
5538
5545
|
});
|
|
5539
|
-
},
|
|
5546
|
+
}, Ki = (e, t, a) => {
|
|
5540
5547
|
if (e === void 0) return;
|
|
5541
5548
|
const n = (r) => {
|
|
5542
5549
|
const o = { ...r };
|
|
@@ -5564,7 +5571,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5564
5571
|
s[o] || (s[o] = {}), s = s[o];
|
|
5565
5572
|
}
|
|
5566
5573
|
s[n[n.length - 1]] = a;
|
|
5567
|
-
},
|
|
5574
|
+
}, ir = (e, t, a) => {
|
|
5568
5575
|
if (a == null) {
|
|
5569
5576
|
Object.entries(t).forEach(([n]) => {
|
|
5570
5577
|
bt(e, n, a);
|
|
@@ -5597,8 +5604,8 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5597
5604
|
var r, o;
|
|
5598
5605
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5599
5606
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Ft(n.editorCtrl), e.selected.value = a;
|
|
5600
|
-
const s =
|
|
5601
|
-
if (e.selectedOptions.value = s, t.formData && t.outFields &&
|
|
5607
|
+
const s = Ki(a, e.options.value);
|
|
5608
|
+
if (e.selectedOptions.value = s, t.formData && t.outFields && ir(t.formData, t.outFields, s), t.changeEvent) {
|
|
5602
5609
|
const [l, i] = t.changeEvent;
|
|
5603
5610
|
if (i)
|
|
5604
5611
|
if (Array.isArray(l))
|
|
@@ -5636,12 +5643,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5636
5643
|
primaryKey: "Id",
|
|
5637
5644
|
statusKey: "Enabled",
|
|
5638
5645
|
remotePage: !0,
|
|
5639
|
-
tableSize:
|
|
5640
|
-
selectable:
|
|
5641
|
-
searchBar:
|
|
5642
|
-
pageSize:
|
|
5643
|
-
rowExpand:
|
|
5644
|
-
buttons:
|
|
5646
|
+
tableSize: w("small"),
|
|
5647
|
+
selectable: w(!1),
|
|
5648
|
+
searchBar: w(!0),
|
|
5649
|
+
pageSize: w(10),
|
|
5650
|
+
rowExpand: w(!1),
|
|
5651
|
+
buttons: w(["New"]),
|
|
5645
5652
|
tools: ["Reload", "RowHeight", "TableHeadset"],
|
|
5646
5653
|
operates: ["Edit", "Delete"]
|
|
5647
5654
|
},
|
|
@@ -5664,7 +5671,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5664
5671
|
value: "Id"
|
|
5665
5672
|
}
|
|
5666
5673
|
}
|
|
5667
|
-
},
|
|
5674
|
+
}, Hc = (e) => {
|
|
5668
5675
|
Z.PageOption = {
|
|
5669
5676
|
...Z.PageOption,
|
|
5670
5677
|
...e.pageOption
|
|
@@ -5681,47 +5688,47 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5681
5688
|
}, _a = (e) => {
|
|
5682
5689
|
for (let t in e.urls)
|
|
5683
5690
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
5684
|
-
},
|
|
5691
|
+
}, Yi = (e, t, a, n) => (_a(e), {
|
|
5685
5692
|
editorCtrl: {
|
|
5686
5693
|
...Z.EditorOption,
|
|
5687
5694
|
name: "",
|
|
5688
5695
|
default: a ? JSON.parse(JSON.stringify(a)) : void 0,
|
|
5689
|
-
visible:
|
|
5696
|
+
visible: w(!1),
|
|
5690
5697
|
page: t,
|
|
5691
|
-
formData:
|
|
5692
|
-
formRules:
|
|
5693
|
-
ruleResults:
|
|
5694
|
-
updateData:
|
|
5698
|
+
formData: w(a ? JSON.parse(JSON.stringify(a)) : void 0),
|
|
5699
|
+
formRules: w(n),
|
|
5700
|
+
ruleResults: w({}),
|
|
5701
|
+
updateData: w(void 0),
|
|
5695
5702
|
saveUrl: e.urls.save,
|
|
5696
5703
|
detailUrl: e.urls.detail,
|
|
5697
|
-
isFormSaving:
|
|
5698
|
-
isFormLoading:
|
|
5704
|
+
isFormSaving: w(!1),
|
|
5705
|
+
isFormLoading: w(!1)
|
|
5699
5706
|
}
|
|
5700
|
-
}),
|
|
5707
|
+
}), Bi = (e, t, a) => {
|
|
5701
5708
|
_a(e);
|
|
5702
5709
|
const n = {
|
|
5703
5710
|
...Z.GridOption,
|
|
5704
|
-
tableSize:
|
|
5705
|
-
selectable:
|
|
5706
|
-
searchBar:
|
|
5707
|
-
pageSize:
|
|
5708
|
-
rowExpand:
|
|
5709
|
-
buttons:
|
|
5711
|
+
tableSize: w(Z.GridOption.tableSize.value),
|
|
5712
|
+
selectable: w(Z.GridOption.selectable.value),
|
|
5713
|
+
searchBar: w(Z.GridOption.searchBar.value),
|
|
5714
|
+
pageSize: w(Z.GridOption.pageSize.value),
|
|
5715
|
+
rowExpand: w(Z.GridOption.rowExpand.value),
|
|
5716
|
+
buttons: w([...Z.GridOption.buttons.value]),
|
|
5710
5717
|
tools: [...Z.GridOption.tools],
|
|
5711
5718
|
operates: [...Z.GridOption.operates],
|
|
5712
|
-
columns:
|
|
5713
|
-
reload:
|
|
5714
|
-
pageNo:
|
|
5715
|
-
total:
|
|
5719
|
+
columns: w(a || []),
|
|
5720
|
+
reload: w(!1),
|
|
5721
|
+
pageNo: w(1),
|
|
5722
|
+
total: w(0),
|
|
5716
5723
|
page: t,
|
|
5717
|
-
selectKeys:
|
|
5718
|
-
selectRows:
|
|
5719
|
-
rowData:
|
|
5724
|
+
selectKeys: w([]),
|
|
5725
|
+
selectRows: w([]),
|
|
5726
|
+
rowData: w(void 0),
|
|
5720
5727
|
gridQuery: {},
|
|
5721
5728
|
tableData: ke(void 0),
|
|
5722
|
-
expandRows:
|
|
5723
|
-
isGridLoading:
|
|
5724
|
-
isGridSaving:
|
|
5729
|
+
expandRows: w({}),
|
|
5730
|
+
isGridLoading: w(!1),
|
|
5731
|
+
isGridSaving: w(!1),
|
|
5725
5732
|
gridUrl: e.urls.list || e.urls.find,
|
|
5726
5733
|
updateUrl: e.urls.update,
|
|
5727
5734
|
deleteUrl: e.urls.delete
|
|
@@ -5731,28 +5738,28 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5731
5738
|
(s) => {
|
|
5732
5739
|
s && (setTimeout(() => {
|
|
5733
5740
|
n.reload.value = !1;
|
|
5734
|
-
}, 1), n.remotePage ?
|
|
5741
|
+
}, 1), n.remotePage ? rr(n) : Vi(n));
|
|
5735
5742
|
}
|
|
5736
5743
|
), {
|
|
5737
5744
|
gridCtrl: n
|
|
5738
5745
|
};
|
|
5739
|
-
},
|
|
5746
|
+
}, Wc = (e, t) => {
|
|
5740
5747
|
_a(e);
|
|
5741
5748
|
const a = {
|
|
5742
5749
|
...Z.TreeOption,
|
|
5743
|
-
reload:
|
|
5750
|
+
reload: w(!1),
|
|
5744
5751
|
page: t,
|
|
5745
|
-
node:
|
|
5752
|
+
node: w(void 0),
|
|
5746
5753
|
url: e.urls.tree,
|
|
5747
5754
|
data: ke(void 0),
|
|
5748
|
-
isTreeLoading:
|
|
5755
|
+
isTreeLoading: w(!1)
|
|
5749
5756
|
};
|
|
5750
5757
|
return B(
|
|
5751
5758
|
() => a.reload.value,
|
|
5752
5759
|
(n) => {
|
|
5753
5760
|
n && (setTimeout(() => {
|
|
5754
5761
|
a.reload.value = !1;
|
|
5755
|
-
}, 1),
|
|
5762
|
+
}, 1), Ci(a));
|
|
5756
5763
|
}
|
|
5757
5764
|
), {
|
|
5758
5765
|
treeCtrl: a
|
|
@@ -5761,13 +5768,13 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5761
5768
|
const a = {
|
|
5762
5769
|
...Z.OptionOption,
|
|
5763
5770
|
url: e,
|
|
5764
|
-
reload:
|
|
5771
|
+
reload: w(!1),
|
|
5765
5772
|
optionQuery: {},
|
|
5766
5773
|
data: ke((t == null ? void 0 : t.data) ?? []),
|
|
5767
|
-
selected:
|
|
5768
|
-
selectedOptions:
|
|
5769
|
-
options:
|
|
5770
|
-
isOptionLoading:
|
|
5774
|
+
selected: w([]),
|
|
5775
|
+
selectedOptions: w([]),
|
|
5776
|
+
options: w((t == null ? void 0 : t.data) ?? []),
|
|
5777
|
+
isOptionLoading: w(!1)
|
|
5771
5778
|
};
|
|
5772
5779
|
return B(
|
|
5773
5780
|
() => a.reload.value,
|
|
@@ -5779,24 +5786,24 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5779
5786
|
), {
|
|
5780
5787
|
optionCtrl: a
|
|
5781
5788
|
};
|
|
5782
|
-
},
|
|
5789
|
+
}, Gc = (e, t, a) => {
|
|
5783
5790
|
_a(e);
|
|
5784
5791
|
const n = {
|
|
5785
5792
|
...Z.PageOption,
|
|
5786
5793
|
...e
|
|
5787
|
-
}, { editorCtrl: s } =
|
|
5794
|
+
}, { editorCtrl: s } = Yi(e, n, t, a), { gridCtrl: r } = Bi(e, n);
|
|
5788
5795
|
return n.editor = s, n.grid = r, r.editor = s, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], s.grid = r, {
|
|
5789
5796
|
pageCtrl: n,
|
|
5790
5797
|
editorCtrl: s,
|
|
5791
5798
|
gridCtrl: r
|
|
5792
5799
|
};
|
|
5793
|
-
},
|
|
5800
|
+
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = w({}), Kc = Ge, Yc = (e) => {
|
|
5794
5801
|
var s;
|
|
5795
5802
|
if (!e.iconUrl) return an;
|
|
5796
|
-
const t =
|
|
5803
|
+
const t = w(!0), a = w("");
|
|
5797
5804
|
let n = !0;
|
|
5798
|
-
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) &&
|
|
5799
|
-
|
|
5805
|
+
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(() => {
|
|
5806
|
+
qi(e.iconUrl, e.monoColor || !1), t.value = !0;
|
|
5800
5807
|
}), De({
|
|
5801
5808
|
props: {
|
|
5802
5809
|
icon: {
|
|
@@ -5824,7 +5831,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5824
5831
|
},
|
|
5825
5832
|
emits: ["update:iconIndex"],
|
|
5826
5833
|
setup(r, { emit: o }) {
|
|
5827
|
-
const l =
|
|
5834
|
+
const l = w(r.icon), i = w(0), c = () => {
|
|
5828
5835
|
r.icons && i.value++;
|
|
5829
5836
|
};
|
|
5830
5837
|
return B(
|
|
@@ -5864,30 +5871,30 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5864
5871
|
style: {
|
|
5865
5872
|
fill: "currentColor",
|
|
5866
5873
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
5867
|
-
transform:
|
|
5874
|
+
transform: Zi(this.angle, this.flip)
|
|
5868
5875
|
}
|
|
5869
5876
|
}) : ye("div", { class: "w-[14px] h-[14px]" });
|
|
5870
5877
|
}
|
|
5871
5878
|
});
|
|
5872
|
-
},
|
|
5879
|
+
}, Ji = (e, t) => {
|
|
5873
5880
|
let a = e.iconUrl;
|
|
5874
5881
|
if (!a)
|
|
5875
5882
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
5876
5883
|
if (Va.has(a))
|
|
5877
5884
|
return Promise.resolve();
|
|
5878
|
-
const n =
|
|
5885
|
+
const n = ur(a);
|
|
5879
5886
|
if (n)
|
|
5880
|
-
return new Promise(async (r) => (
|
|
5887
|
+
return new Promise(async (r) => (cr(n.scriptContent), r()));
|
|
5881
5888
|
t.value = !1;
|
|
5882
5889
|
const s = new Promise(async (r) => {
|
|
5883
|
-
await
|
|
5890
|
+
await Qi(a, e.monoColor || !1), r(), Va.delete(a);
|
|
5884
5891
|
});
|
|
5885
5892
|
return Va.set(a, s), s;
|
|
5886
|
-
},
|
|
5893
|
+
}, Qi = async (e, t) => {
|
|
5887
5894
|
try {
|
|
5888
5895
|
const a = await fetch(e);
|
|
5889
5896
|
if (!a.ok) {
|
|
5890
|
-
se.error(
|
|
5897
|
+
se.error(P("webui.utils.iconLoader.networkError"));
|
|
5891
5898
|
return;
|
|
5892
5899
|
}
|
|
5893
5900
|
let n = await a.text();
|
|
@@ -5896,27 +5903,27 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5896
5903
|
const r = n.match(s);
|
|
5897
5904
|
if (r && r.length > 1) {
|
|
5898
5905
|
let o = r[1];
|
|
5899
|
-
|
|
5906
|
+
Xi(e, o, t, n);
|
|
5900
5907
|
}
|
|
5901
|
-
|
|
5908
|
+
cr(n);
|
|
5902
5909
|
return;
|
|
5903
5910
|
} catch (a) {
|
|
5904
|
-
return console.error(
|
|
5911
|
+
return console.error(P("webui.utils.iconLoader.networkError") + ":", a), null;
|
|
5905
5912
|
}
|
|
5906
|
-
},
|
|
5913
|
+
}, cr = (e) => {
|
|
5907
5914
|
const t = document.createElement("script");
|
|
5908
5915
|
t.textContent = e, document.head.appendChild(t);
|
|
5909
|
-
},
|
|
5916
|
+
}, Xi = (e, t, a, n) => {
|
|
5910
5917
|
let s = `icon_cache:${e}`;
|
|
5911
5918
|
const r = {
|
|
5912
5919
|
windowKey: t,
|
|
5913
5920
|
monoColor: a,
|
|
5914
5921
|
scriptContent: n,
|
|
5915
|
-
expireTime: Date.now() +
|
|
5922
|
+
expireTime: Date.now() + ji
|
|
5916
5923
|
// 缓存时间:7天
|
|
5917
5924
|
};
|
|
5918
5925
|
localStorage.setItem(s, JSON.stringify(r));
|
|
5919
|
-
},
|
|
5926
|
+
}, ur = (e) => {
|
|
5920
5927
|
let t = `icon_cache:${e}`;
|
|
5921
5928
|
const a = localStorage.getItem(t);
|
|
5922
5929
|
if (!a) return null;
|
|
@@ -5927,7 +5934,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5927
5934
|
return console.error("解析缓存失败:", s), null;
|
|
5928
5935
|
}
|
|
5929
5936
|
return n.expireTime < Date.now() ? (localStorage.removeItem(e), null) : n;
|
|
5930
|
-
},
|
|
5937
|
+
}, Bc = () => {
|
|
5931
5938
|
const e = Date.now();
|
|
5932
5939
|
for (const t in localStorage)
|
|
5933
5940
|
if (t.startsWith("icon_cache:")) {
|
|
@@ -5958,12 +5965,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5958
5965
|
fill: "currentColor"
|
|
5959
5966
|
})
|
|
5960
5967
|
]
|
|
5961
|
-
),
|
|
5962
|
-
const a =
|
|
5968
|
+
), qi = (e, t) => {
|
|
5969
|
+
const a = ur(e);
|
|
5963
5970
|
Object.keys(window).forEach((n) => {
|
|
5964
|
-
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !cs.has(n) && (cs.add(n),
|
|
5971
|
+
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !cs.has(n) && (cs.add(n), zi(n, t));
|
|
5965
5972
|
});
|
|
5966
|
-
},
|
|
5973
|
+
}, zi = (e, t) => {
|
|
5967
5974
|
const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
|
|
5968
5975
|
for (const l of r) {
|
|
5969
5976
|
const i = l.id, c = Array.from(o).find((m) => m.id === i);
|
|
@@ -5971,12 +5978,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5971
5978
|
m.hasAttribute("fill") && m.removeAttribute("fill");
|
|
5972
5979
|
})), Ge.value[i] || (Ge.value[i] = ye("svg", { fill: "currentColor" }, [ye("use", { "xlink:href": `#${i}` })]));
|
|
5973
5980
|
}
|
|
5974
|
-
},
|
|
5981
|
+
}, Zi = (e, t) => {
|
|
5975
5982
|
let a = "";
|
|
5976
5983
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5977
|
-
},
|
|
5978
|
-
|
|
5979
|
-
},
|
|
5984
|
+
}, jc = (e, t, a, n) => {
|
|
5985
|
+
fr(e, [], a, n).forEach((r) => t.push(r));
|
|
5986
|
+
}, fr = (e, t, a, n) => {
|
|
5980
5987
|
var o, l, i, c, m, g;
|
|
5981
5988
|
const s = [], r = Ie();
|
|
5982
5989
|
for (const p of e) {
|
|
@@ -5985,17 +5992,17 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5985
5992
|
continue;
|
|
5986
5993
|
const I = p.path.split("/");
|
|
5987
5994
|
I.unshift(...t);
|
|
5988
|
-
const
|
|
5995
|
+
const R = fr(p.children || [], I, a, n), S = {
|
|
5989
5996
|
key: I.join("/"),
|
|
5990
5997
|
label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
|
|
5991
5998
|
title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
|
|
5992
5999
|
icon: p.icon ? ye(a, { ...n, icon: p.icon }) : void 0,
|
|
5993
|
-
children:
|
|
6000
|
+
children: R.length > 0 ? R : void 0
|
|
5994
6001
|
};
|
|
5995
|
-
(
|
|
6002
|
+
(R.length > 0 || !p.children) && s.push(S);
|
|
5996
6003
|
}
|
|
5997
6004
|
return s;
|
|
5998
|
-
}, us =
|
|
6005
|
+
}, us = vr([]), Jc = () => {
|
|
5999
6006
|
us.length = 0;
|
|
6000
6007
|
const e = Fe();
|
|
6001
6008
|
let a = hn().TabActive;
|
|
@@ -6008,7 +6015,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6008
6015
|
};
|
|
6009
6016
|
us.push(o);
|
|
6010
6017
|
});
|
|
6011
|
-
},
|
|
6018
|
+
}, Qc = kt("hostInfo", {
|
|
6012
6019
|
state: () => ({
|
|
6013
6020
|
hostInfo: {
|
|
6014
6021
|
Host: "",
|
|
@@ -6041,7 +6048,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6041
6048
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6042
6049
|
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6043
6050
|
const s = t || window.location.origin;
|
|
6044
|
-
Xe(
|
|
6051
|
+
Xe(zs.host, {
|
|
6045
6052
|
Query: {
|
|
6046
6053
|
Host: s
|
|
6047
6054
|
}
|
|
@@ -6084,7 +6091,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6084
6091
|
if (this.hostInfo.SERVER_HOST)
|
|
6085
6092
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
6086
6093
|
let a = this.hostInfo.SERVER_HOST[t];
|
|
6087
|
-
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,
|
|
6094
|
+
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, Cr[t] = a;
|
|
6088
6095
|
}
|
|
6089
6096
|
},
|
|
6090
6097
|
getHostInfo() {
|
|
@@ -6098,7 +6105,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6098
6105
|
// storage: localStorage,
|
|
6099
6106
|
// pick: ['hostInfo'],
|
|
6100
6107
|
// },
|
|
6101
|
-
}),
|
|
6108
|
+
}), Xc = /* @__PURE__ */ De({
|
|
6102
6109
|
__name: "index",
|
|
6103
6110
|
props: {
|
|
6104
6111
|
...Ct,
|
|
@@ -6118,7 +6125,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6118
6125
|
setup(e, { emit: t }) {
|
|
6119
6126
|
const a = e, n = ut(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
|
|
6120
6127
|
r.inputFactory = ke(n);
|
|
6121
|
-
const o =
|
|
6128
|
+
const o = w([]);
|
|
6122
6129
|
r && B(
|
|
6123
6130
|
() => r.options.value,
|
|
6124
6131
|
(I) => {
|
|
@@ -6144,9 +6151,9 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6144
6151
|
r && mt(r.autoload, r, a);
|
|
6145
6152
|
}), ft(() => {
|
|
6146
6153
|
r && Mt(r, a);
|
|
6147
|
-
}), (I,
|
|
6154
|
+
}), (I, R) => {
|
|
6148
6155
|
var S;
|
|
6149
|
-
return o.value.length === 2 ? (le(), zt(X(
|
|
6156
|
+
return o.value.length === 2 ? (le(), zt(X(yr), wt({
|
|
6150
6157
|
key: 0,
|
|
6151
6158
|
size: e.size,
|
|
6152
6159
|
class: [
|
|
@@ -6162,7 +6169,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6162
6169
|
}, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
|
|
6163
6170
|
};
|
|
6164
6171
|
}
|
|
6165
|
-
}),
|
|
6172
|
+
}), qc = /* @__PURE__ */ De({
|
|
6166
6173
|
inheritAttrs: !1,
|
|
6167
6174
|
__name: "index",
|
|
6168
6175
|
props: {
|
|
@@ -6189,7 +6196,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6189
6196
|
value: "Id",
|
|
6190
6197
|
...o == null ? void 0 : o.fieldMap
|
|
6191
6198
|
};
|
|
6192
|
-
const l =
|
|
6199
|
+
const l = w(void 0);
|
|
6193
6200
|
B(
|
|
6194
6201
|
() => a.value,
|
|
6195
6202
|
() => {
|
|
@@ -6199,12 +6206,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6199
6206
|
), B(
|
|
6200
6207
|
() => l.value,
|
|
6201
6208
|
(S) => {
|
|
6202
|
-
a.autoClean && a.formData && a.outFields && S !== a.value &&
|
|
6209
|
+
a.autoClean && a.formData && a.outFields && S !== a.value && ir(a.formData, a.outFields, null);
|
|
6203
6210
|
}
|
|
6204
6211
|
);
|
|
6205
6212
|
const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
|
|
6206
6213
|
s.inputEmit = g;
|
|
6207
|
-
const p =
|
|
6214
|
+
const p = w((o == null ? void 0 : o.options.value) || []);
|
|
6208
6215
|
o && B(
|
|
6209
6216
|
() => o.options.value,
|
|
6210
6217
|
(S) => {
|
|
@@ -6220,7 +6227,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6220
6227
|
}
|
|
6221
6228
|
};
|
|
6222
6229
|
o.params = Dt(o.params, d), o && mt(!0, o, a);
|
|
6223
|
-
},
|
|
6230
|
+
}, R = (S) => {
|
|
6224
6231
|
const O = pa(o, a, S);
|
|
6225
6232
|
g("update:value", S), g("select", S);
|
|
6226
6233
|
const d = ma(O);
|
|
@@ -6233,19 +6240,19 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6233
6240
|
}), (S, O) => {
|
|
6234
6241
|
var d;
|
|
6235
6242
|
return le(), ge("div", null, [
|
|
6236
|
-
Ye(X(
|
|
6243
|
+
Ye(X(Ir), wt({
|
|
6237
6244
|
value: l.value,
|
|
6238
6245
|
"onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
|
|
6239
6246
|
class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
|
|
6240
6247
|
options: p.value,
|
|
6241
6248
|
onSearch: I,
|
|
6242
|
-
onSelect:
|
|
6249
|
+
onSelect: R
|
|
6243
6250
|
}, X(n), { "allow-clear": !1 }), {
|
|
6244
6251
|
option: Me(({ label: _ }) => [
|
|
6245
6252
|
ta(Be(_), 1)
|
|
6246
6253
|
]),
|
|
6247
6254
|
default: Me(() => [
|
|
6248
|
-
Ye(X(
|
|
6255
|
+
Ye(X(Nr), {
|
|
6249
6256
|
"allow-clear": "",
|
|
6250
6257
|
placeholder: "请输入并选择" + X(m)
|
|
6251
6258
|
}, null, 8, ["placeholder"])
|
|
@@ -6255,10 +6262,10 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6255
6262
|
]);
|
|
6256
6263
|
};
|
|
6257
6264
|
}
|
|
6258
|
-
}),
|
|
6265
|
+
}), ec = { class: "min-h-[32px] pt-[5px]" }, tc = {
|
|
6259
6266
|
key: 1,
|
|
6260
6267
|
class: "text-center text-gray-500"
|
|
6261
|
-
},
|
|
6268
|
+
}, zc = /* @__PURE__ */ De({
|
|
6262
6269
|
inheritAttrs: !1,
|
|
6263
6270
|
__name: "index",
|
|
6264
6271
|
props: {
|
|
@@ -6279,18 +6286,18 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6279
6286
|
},
|
|
6280
6287
|
emits: ["change", "update:labels"],
|
|
6281
6288
|
setup(e, { emit: t }) {
|
|
6282
|
-
var p, I,
|
|
6289
|
+
var p, I, R;
|
|
6283
6290
|
const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6284
6291
|
o.inputFactory = ke(s);
|
|
6285
|
-
const l =
|
|
6292
|
+
const l = w({
|
|
6286
6293
|
...o == null ? void 0 : o.url,
|
|
6287
6294
|
url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
|
|
6288
6295
|
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) || ((
|
|
6296
|
+
params: (o == null ? void 0 : o.params) || ((R = o == null ? void 0 : o.url) == null ? void 0 : R.params),
|
|
6290
6297
|
loadingText: !1
|
|
6291
6298
|
}), { errInfo: i } = s, c = t;
|
|
6292
6299
|
s.inputEmit = c;
|
|
6293
|
-
const m =
|
|
6300
|
+
const m = w((o == null ? void 0 : o.options.value) || []);
|
|
6294
6301
|
o && B(
|
|
6295
6302
|
() => o.options.value,
|
|
6296
6303
|
(S) => {
|
|
@@ -6313,15 +6320,15 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6313
6320
|
}), o && mt(o.autoload, o, a);
|
|
6314
6321
|
}), ft(() => {
|
|
6315
6322
|
o && Mt(o, a);
|
|
6316
|
-
}), (S, O) => (le(), ge("div",
|
|
6317
|
-
Ye(X(
|
|
6323
|
+
}), (S, O) => (le(), ge("div", ec, [
|
|
6324
|
+
Ye(X(Sr), wt({
|
|
6318
6325
|
onChange: g,
|
|
6319
6326
|
class: "w-full mb-[-3px]"
|
|
6320
6327
|
}, X(n)), {
|
|
6321
6328
|
default: Me(() => [
|
|
6322
6329
|
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (d) => {
|
|
6323
6330
|
var _;
|
|
6324
|
-
return le(), zt(X(
|
|
6331
|
+
return le(), zt(X(Tr), {
|
|
6325
6332
|
key: d.value,
|
|
6326
6333
|
value: d.value,
|
|
6327
6334
|
disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
|
|
@@ -6337,16 +6344,16 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6337
6344
|
]),
|
|
6338
6345
|
_: 2
|
|
6339
6346
|
}, 1032, ["value", "disabled", "class"]);
|
|
6340
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6347
|
+
}), 128)) : e.nodata ? (le(), ge("div", tc, Be(e.nodata), 1)) : rt("", !0)
|
|
6341
6348
|
]),
|
|
6342
6349
|
_: 1
|
|
6343
6350
|
}, 16)
|
|
6344
6351
|
]));
|
|
6345
6352
|
}
|
|
6346
|
-
}),
|
|
6353
|
+
}), ac = { class: "min-h-[32px] pt-1" }, nc = {
|
|
6347
6354
|
key: 1,
|
|
6348
6355
|
class: "text-center text-gray-500"
|
|
6349
|
-
},
|
|
6356
|
+
}, Zc = /* @__PURE__ */ De({
|
|
6350
6357
|
inheritAttrs: !1,
|
|
6351
6358
|
__name: "index",
|
|
6352
6359
|
props: {
|
|
@@ -6357,7 +6364,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6357
6364
|
},
|
|
6358
6365
|
nodata: {
|
|
6359
6366
|
type: String,
|
|
6360
|
-
default:
|
|
6367
|
+
default: P("webui.components.form.radio.noData")
|
|
6361
6368
|
},
|
|
6362
6369
|
/**
|
|
6363
6370
|
* 换行数量
|
|
@@ -6368,16 +6375,16 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6368
6375
|
},
|
|
6369
6376
|
emits: ["change", "update:value", "update:labels"],
|
|
6370
6377
|
setup(e, { emit: t }) {
|
|
6371
|
-
var
|
|
6378
|
+
var R, S, O;
|
|
6372
6379
|
const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6373
6380
|
o.inputFactory = ke(s);
|
|
6374
|
-
const l =
|
|
6381
|
+
const l = w({
|
|
6375
6382
|
...o == null ? void 0 : o.url,
|
|
6376
|
-
url: ((
|
|
6383
|
+
url: ((R = o == null ? void 0 : o.url) == null ? void 0 : R.url) || "",
|
|
6377
6384
|
fieldMap: (o == null ? void 0 : o.fieldMap) || ((S = o == null ? void 0 : o.url) == null ? void 0 : S.fieldMap),
|
|
6378
6385
|
params: (o == null ? void 0 : o.params) || ((O = o == null ? void 0 : o.url) == null ? void 0 : O.params),
|
|
6379
6386
|
loadingText: !1
|
|
6380
|
-
}), i =
|
|
6387
|
+
}), i = w(a.value), { errInfo: c } = s, m = w((o == null ? void 0 : o.options.value) || []), g = t;
|
|
6381
6388
|
s.inputEmit = g, o && B(
|
|
6382
6389
|
() => o.options.value,
|
|
6383
6390
|
(d) => {
|
|
@@ -6415,8 +6422,8 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6415
6422
|
}), o && mt(o.autoload, o, a);
|
|
6416
6423
|
}), ft(() => {
|
|
6417
6424
|
o && Mt(o, a);
|
|
6418
|
-
}), (d, _) => (le(), ge("div",
|
|
6419
|
-
Ye(X(
|
|
6425
|
+
}), (d, _) => (le(), ge("div", ac, [
|
|
6426
|
+
Ye(X(Lr), wt({
|
|
6420
6427
|
value: i.value,
|
|
6421
6428
|
"onUpdate:value": _[0] || (_[0] = (y) => i.value = y),
|
|
6422
6429
|
autocheck: !1,
|
|
@@ -6429,7 +6436,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6429
6436
|
return le(), ge(Ke, {
|
|
6430
6437
|
key: y.value
|
|
6431
6438
|
}, [
|
|
6432
|
-
y.visible !== !1 ? (le(), zt(X(
|
|
6439
|
+
y.visible !== !1 ? (le(), zt(X(Or), {
|
|
6433
6440
|
key: 0,
|
|
6434
6441
|
checked: p(y.value, a.value),
|
|
6435
6442
|
value: y.value,
|
|
@@ -6446,16 +6453,16 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6446
6453
|
_: 2
|
|
6447
6454
|
}, 1032, ["checked", "value", "class"])) : rt("", !0)
|
|
6448
6455
|
], 64);
|
|
6449
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6456
|
+
}), 128)) : e.nodata ? (le(), ge("div", nc, Be(e.nodata), 1)) : rt("", !0)
|
|
6450
6457
|
]),
|
|
6451
6458
|
_: 1
|
|
6452
6459
|
}, 16, ["value"])
|
|
6453
6460
|
]));
|
|
6454
6461
|
}
|
|
6455
|
-
}),
|
|
6462
|
+
}), sc = {
|
|
6456
6463
|
key: 0,
|
|
6457
6464
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
6458
|
-
},
|
|
6465
|
+
}, eu = /* @__PURE__ */ De({
|
|
6459
6466
|
inheritAttrs: !1,
|
|
6460
6467
|
__name: "index",
|
|
6461
6468
|
props: {
|
|
@@ -6494,19 +6501,19 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6494
6501
|
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
6502
|
c.inputFactory = ke(s);
|
|
6496
6503
|
const m = Zt();
|
|
6497
|
-
c.autoload = a.autoload ?? c.autoload
|
|
6498
|
-
const g =
|
|
6504
|
+
c.autoload = a.autoload ?? c.autoload;
|
|
6505
|
+
const g = w({
|
|
6499
6506
|
...c == null ? void 0 : c.url,
|
|
6500
6507
|
url: ((_ = c == null ? void 0 : c.url) == null ? void 0 : _.url) || "",
|
|
6501
6508
|
fieldMap: (c == null ? void 0 : c.fieldMap) || ((y = c == null ? void 0 : c.url) == null ? void 0 : y.fieldMap),
|
|
6502
6509
|
params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
|
|
6503
6510
|
loadingText: !1
|
|
6504
|
-
}), p =
|
|
6505
|
-
s.inputEmit =
|
|
6511
|
+
}), p = w(m.placeholder), I = w(c == null ? void 0 : c.selected.value), R = t;
|
|
6512
|
+
s.inputEmit = R;
|
|
6506
6513
|
const S = (b) => {
|
|
6507
6514
|
const L = pa(c, a, b), v = ma(L);
|
|
6508
|
-
I.value = b,
|
|
6509
|
-
}, O =
|
|
6515
|
+
I.value = b, R("update:labels", v), R("update:label", v.join(";")), R("change", b, L), o != null && o.value.errClass && r && Ft(r);
|
|
6516
|
+
}, O = w((c == null ? void 0 : c.options.value) || []), d = (b) => {
|
|
6510
6517
|
if (b.length > 0 && ve(a.value) && a.selectFirst)
|
|
6511
6518
|
for (let L = 0; L < b.length; L++) {
|
|
6512
6519
|
const v = b[L];
|
|
@@ -6537,7 +6544,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6537
6544
|
), B(
|
|
6538
6545
|
() => g.value.loading,
|
|
6539
6546
|
(b) => {
|
|
6540
|
-
b ? p.value = "" : p.value || (p.value =
|
|
6547
|
+
b ? p.value = "" : p.value || (p.value = P("webui.components.form.select.pleaseSelect", [l.value]));
|
|
6541
6548
|
},
|
|
6542
6549
|
{ immediate: !0 }
|
|
6543
6550
|
), B(
|
|
@@ -6550,7 +6557,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6550
6557
|
() => I.value,
|
|
6551
6558
|
(b) => {
|
|
6552
6559
|
const L = b === void 0 ? n ? void 0 : null : b;
|
|
6553
|
-
c && (c.selected.value = L),
|
|
6560
|
+
c && (c.selected.value = L), R("update:value", L);
|
|
6554
6561
|
}
|
|
6555
6562
|
), ea(() => {
|
|
6556
6563
|
c && c.autoload && (c.reload.value = !0);
|
|
@@ -6571,11 +6578,11 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6571
6578
|
}), (b, L) => {
|
|
6572
6579
|
var v, C, M;
|
|
6573
6580
|
return le(), ge("div", null, [
|
|
6574
|
-
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div",
|
|
6581
|
+
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", sc, [
|
|
6575
6582
|
Ye(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6576
|
-
|
|
6583
|
+
br("span", null, Be(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6577
6584
|
])) : rt("", !0),
|
|
6578
|
-
Ye(X(
|
|
6585
|
+
Ye(X(Ar), wt({
|
|
6579
6586
|
class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
|
|
6580
6587
|
value: I.value,
|
|
6581
6588
|
"onUpdate:value": L[0] || (L[0] = (K) => I.value = K),
|
|
@@ -6588,7 +6595,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6588
6595
|
(le(!0), ge(Ke, null, nn(O.value, (K) => (le(), ge(Ke, {
|
|
6589
6596
|
key: K.value
|
|
6590
6597
|
}, [
|
|
6591
|
-
K.visible !== !1 ? (le(), zt(X(
|
|
6598
|
+
K.visible !== !1 ? (le(), zt(X(Pr), {
|
|
6592
6599
|
key: 0,
|
|
6593
6600
|
value: K.value
|
|
6594
6601
|
}, {
|
|
@@ -6604,95 +6611,95 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6604
6611
|
]);
|
|
6605
6612
|
};
|
|
6606
6613
|
}
|
|
6607
|
-
}),
|
|
6608
|
-
label:
|
|
6614
|
+
}), rc = w(!1), tu = {
|
|
6615
|
+
label: P("webui.utils.tools.templateManagement"),
|
|
6609
6616
|
key: "uploadTemp",
|
|
6610
6617
|
type: "primary",
|
|
6611
6618
|
icon: "icon-download",
|
|
6612
6619
|
click: () => {
|
|
6613
|
-
|
|
6620
|
+
rc.value = !0;
|
|
6614
6621
|
}
|
|
6615
6622
|
};
|
|
6616
6623
|
export {
|
|
6617
|
-
|
|
6624
|
+
P as $,
|
|
6618
6625
|
pa as A,
|
|
6619
6626
|
ma as B,
|
|
6620
6627
|
Ft as C,
|
|
6621
|
-
|
|
6628
|
+
zc as D,
|
|
6622
6629
|
la as E,
|
|
6623
|
-
|
|
6624
|
-
|
|
6630
|
+
Zc as F,
|
|
6631
|
+
eu as G,
|
|
6625
6632
|
En as H,
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6633
|
+
Ur as I,
|
|
6634
|
+
Ic as J,
|
|
6635
|
+
Hc as K,
|
|
6629
6636
|
ua as L,
|
|
6630
6637
|
It as M,
|
|
6631
|
-
|
|
6638
|
+
Yi as N,
|
|
6632
6639
|
en as O,
|
|
6633
6640
|
Re as P,
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6641
|
+
Bi as Q,
|
|
6642
|
+
Wc as R,
|
|
6643
|
+
Gc as S,
|
|
6644
|
+
Ki as T,
|
|
6645
|
+
ir as U,
|
|
6646
|
+
Kc as V,
|
|
6647
|
+
Bc as W,
|
|
6648
|
+
zi as X,
|
|
6649
|
+
Zi as Y,
|
|
6650
|
+
jc as Z,
|
|
6651
|
+
Xc as _,
|
|
6652
|
+
Sc as a,
|
|
6646
6653
|
us as a0,
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6654
|
+
Jc as a1,
|
|
6655
|
+
nr as a2,
|
|
6656
|
+
Dc as a3,
|
|
6657
|
+
sr as a4,
|
|
6658
|
+
Tc as a5,
|
|
6659
|
+
Ac as a6,
|
|
6653
6660
|
vn as a7,
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6661
|
+
Lc as a8,
|
|
6662
|
+
Oc as a9,
|
|
6663
|
+
Mc as aa,
|
|
6664
|
+
$i as ab,
|
|
6665
|
+
or as ac,
|
|
6666
|
+
xc as ad,
|
|
6667
|
+
Nc as ae,
|
|
6668
|
+
ar as af,
|
|
6669
|
+
Di as ag,
|
|
6663
6670
|
tn as ah,
|
|
6664
6671
|
nt as ai,
|
|
6665
6672
|
yt as aj,
|
|
6666
6673
|
jt as ak,
|
|
6667
6674
|
Fe as al,
|
|
6668
|
-
|
|
6675
|
+
Qc as am,
|
|
6669
6676
|
hn as an,
|
|
6670
|
-
|
|
6671
|
-
|
|
6677
|
+
rc as ao,
|
|
6678
|
+
tu as ap,
|
|
6672
6679
|
me as aq,
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6680
|
+
Ec as ar,
|
|
6681
|
+
yc as as,
|
|
6682
|
+
bc as at,
|
|
6683
|
+
vc as au,
|
|
6677
6684
|
ct as av,
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
+
wc as b,
|
|
6686
|
+
Yc as c,
|
|
6687
|
+
kc as d,
|
|
6688
|
+
Pc as e,
|
|
6689
|
+
Vc as f,
|
|
6690
|
+
xi as g,
|
|
6691
|
+
$c as h,
|
|
6685
6692
|
ve as i,
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6693
|
+
Fc as j,
|
|
6694
|
+
Cc as k,
|
|
6695
|
+
rr as l,
|
|
6696
|
+
Vi as m,
|
|
6697
|
+
Uc as n,
|
|
6698
|
+
Rc as o,
|
|
6699
|
+
Fi as p,
|
|
6700
|
+
Ci as q,
|
|
6694
6701
|
ca as r,
|
|
6695
|
-
|
|
6702
|
+
qc as s,
|
|
6696
6703
|
Ct as t,
|
|
6697
6704
|
Ie as u,
|
|
6698
6705
|
ut as v,
|