@skyfox2000/webui 1.5.21 → 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-D1c-i5Jy.js → baseLayout-BbWv6Njy.js} +3 -3
- package/lib/assets/modules/{file-upload-D0PzDzw5.js → file-upload-czkP0_KZ.js} +1 -1
- package/lib/assets/modules/{index-Br13CsSY.js → index-BM6-4CHA.js} +2 -2
- package/lib/assets/modules/{index-2FnjnZKE.js → index-CnrS4kfC.js} +2 -2
- package/lib/assets/modules/{index-xBhZt3kd.js → index-D62pvKsu.js} +1 -1
- package/lib/assets/modules/{menuTabs-DGBmIq_G.js → menuTabs-DA2V4Fdt.js} +2 -2
- package/lib/assets/modules/{toolIcon-CQYHaCan.js → toolIcon-BPUk821a.js} +1 -1
- package/lib/assets/modules/{upload-template-DBTaPGiN.js → upload-template-1qHFUTUu.js} +575 -571
- package/lib/assets/modules/{uploadList-2nN7g3jv.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/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/utils/data.ts +4 -3
- package/src/utils/options.ts +4 -1
- package/src/utils/table.ts +5 -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
|
}
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -769,7 +769,7 @@ function co(e = {}) {
|
|
|
769
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
|
|
@@ -1610,27 +1610,27 @@ function Xo(e) {
|
|
|
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,
|
|
@@ -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,31 +1741,31 @@ 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
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,
|
|
@@ -1802,7 +1802,7 @@ function Wn(e, ...t) {
|
|
|
1802
1802
|
let C = l.get(v);
|
|
1803
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,7 +1859,7 @@ 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
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,
|
|
@@ -1896,7 +1896,7 @@ function Kn(e, ...t) {
|
|
|
1896
1896
|
let C = l.get(v);
|
|
1897
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,
|
|
@@ -1979,12 +1979,12 @@ function El(e = {}) {
|
|
|
1979
1979
|
const jn = () => "", pe = (e) => G(e);
|
|
1980
1980
|
function Jn(e, ...t) {
|
|
1981
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 &&
|
|
1982
|
+
p && bl(c);
|
|
1983
1983
|
let [d, _, y] = I ? [
|
|
1984
1984
|
i,
|
|
1985
1985
|
O,
|
|
1986
1986
|
l[O] || W()
|
|
1987
|
-
] :
|
|
1987
|
+
] : Fs(e, i, O, o, g, m), E = d, b = i;
|
|
1988
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)
|
|
@@ -1992,12 +1992,12 @@ function Jn(e, ...t) {
|
|
|
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
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) {
|
|
@@ -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
|
|
@@ -2061,7 +2061,7 @@ function Cs(e, t, a, n, s, r) {
|
|
|
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,16 +2126,16 @@ ${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,
|
|
@@ -2143,7 +2143,7 @@ function Nl(e, t, a, n) {
|
|
|
2143
2143
|
messages: (I, R) => {
|
|
2144
2144
|
let S = o(a, I);
|
|
2145
2145
|
if (S == null && (m || R)) {
|
|
2146
|
-
const [, , O] =
|
|
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,21 +2405,21 @@ 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
2425
|
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : ke;
|
|
@@ -2437,7 +2437,7 @@ function pn(e = {}) {
|
|
|
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,14 +2498,14 @@ 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")) {
|
|
@@ -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) {
|
|
@@ -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,14 +2963,14 @@ 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
2975
|
let R = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
@@ -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 };
|
|
@@ -3307,13 +3307,13 @@ function Ys(e, t, a, n) {
|
|
|
3307
3307
|
let c = [o.key];
|
|
3308
3308
|
J(i) ? c = i.map((p, I) => {
|
|
3309
3309
|
const R = s[p.type], S = R ? R({ [p.type]: p.value, index: I, parts: i }) : [p.value];
|
|
3310
|
-
return
|
|
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 =
|
|
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
3431
|
const R = g.unmount;
|
|
3432
3432
|
if (g.unmount = () => {
|
|
3433
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: {
|
|
@@ -3990,18 +3990,18 @@ function Pt(e, t) {
|
|
|
3990
3990
|
let za = "/", qt = {
|
|
3991
3991
|
"zh-CN": "简体中文"
|
|
3992
3992
|
};
|
|
3993
|
-
const
|
|
3994
|
-
function
|
|
3993
|
+
const js = {};
|
|
3994
|
+
function bi() {
|
|
3995
3995
|
return localStorage.getItem("language") || "zh-CN";
|
|
3996
3996
|
}
|
|
3997
|
-
const me =
|
|
3997
|
+
const me = ii({
|
|
3998
3998
|
legacy: !1,
|
|
3999
3999
|
// 使用Composition API模式
|
|
4000
|
-
locale:
|
|
4000
|
+
locale: bi(),
|
|
4001
4001
|
// 从localStorage获取语言设置
|
|
4002
4002
|
fallbackLocale: "en-US",
|
|
4003
4003
|
// 回退语言
|
|
4004
|
-
messages:
|
|
4004
|
+
messages: js,
|
|
4005
4005
|
silentTranslationWarn: !0,
|
|
4006
4006
|
// 禁用翻译警告
|
|
4007
4007
|
fallbackWarn: !1,
|
|
@@ -4009,7 +4009,7 @@ const me = li({
|
|
|
4009
4009
|
missingWarn: !1
|
|
4010
4010
|
// 禁用缺失警告
|
|
4011
4011
|
});
|
|
4012
|
-
async function
|
|
4012
|
+
async function yi(e) {
|
|
4013
4013
|
try {
|
|
4014
4014
|
const t = await fetch(`${za}locales/${e}.json`);
|
|
4015
4015
|
if (!t.ok)
|
|
@@ -4019,7 +4019,7 @@ async function bi(e) {
|
|
|
4019
4019
|
return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function Js(e) {
|
|
4023
4023
|
try {
|
|
4024
4024
|
const t = localStorage.getItem(`locale_cache_${e}`);
|
|
4025
4025
|
if (t)
|
|
@@ -4029,7 +4029,7 @@ function js(e) {
|
|
|
4029
4029
|
}
|
|
4030
4030
|
return null;
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4032
|
+
function Qs(e, t) {
|
|
4033
4033
|
try {
|
|
4034
4034
|
const a = {
|
|
4035
4035
|
messages: t,
|
|
@@ -4055,17 +4055,17 @@ function Za(e) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
return e;
|
|
4057
4057
|
}
|
|
4058
|
-
async function
|
|
4059
|
-
const t = Za(
|
|
4058
|
+
async function Xs(e) {
|
|
4059
|
+
const t = Za(vi), a = Js(e);
|
|
4060
4060
|
let n = {};
|
|
4061
4061
|
try {
|
|
4062
|
-
n = await
|
|
4062
|
+
n = await yi(e);
|
|
4063
4063
|
} catch {
|
|
4064
4064
|
}
|
|
4065
4065
|
let s = t;
|
|
4066
|
-
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);
|
|
4067
4067
|
}
|
|
4068
|
-
async function
|
|
4068
|
+
async function Ec(e = "/", t) {
|
|
4069
4069
|
za = e;
|
|
4070
4070
|
try {
|
|
4071
4071
|
const n = await fetch(`${za}locales/languages.json`);
|
|
@@ -4074,16 +4074,16 @@ async function hc(e = "/", t) {
|
|
|
4074
4074
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
4075
4075
|
}
|
|
4076
4076
|
const a = localStorage.getItem("language") || t || "zh-CN";
|
|
4077
|
-
me.global.locale.value = a, localStorage.setItem("language", a), await
|
|
4077
|
+
me.global.locale.value = a, localStorage.setItem("language", a), await Xs(a);
|
|
4078
4078
|
}
|
|
4079
|
-
async function
|
|
4080
|
-
await
|
|
4079
|
+
async function vc(e) {
|
|
4080
|
+
await Xs(e), me.global.locale.value = e, localStorage.setItem("language", e);
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function bc(e = "code") {
|
|
4083
4083
|
const t = me.global.locale.value;
|
|
4084
4084
|
return e === "display" ? qt[t] : t;
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function yc() {
|
|
4087
4087
|
return Object.keys(qt).map((e) => ({
|
|
4088
4088
|
label: qt[e],
|
|
4089
4089
|
key: e
|
|
@@ -4095,10 +4095,10 @@ function P(e, t) {
|
|
|
4095
4095
|
if (a === e) {
|
|
4096
4096
|
const n = me.global.getLocaleMessage(me.global.locale.value);
|
|
4097
4097
|
if (!n || Object.keys(n).length === 0) {
|
|
4098
|
-
const r =
|
|
4098
|
+
const r = Js(me.global.locale.value);
|
|
4099
4099
|
if (r) {
|
|
4100
4100
|
const o = Pt({}, r);
|
|
4101
|
-
me.global.setLocaleMessage(me.global.locale.value, o),
|
|
4101
|
+
me.global.setLocaleMessage(me.global.locale.value, o), Qs(me.global.locale.value, o);
|
|
4102
4102
|
const l = me.global.t(e, t || {});
|
|
4103
4103
|
return l === e ? e : l;
|
|
4104
4104
|
}
|
|
@@ -4210,7 +4210,7 @@ ne($, "YesNo", []), /**
|
|
|
4210
4210
|
* - 女 F
|
|
4211
4211
|
*/
|
|
4212
4212
|
ne($, "MaleFemale", []);
|
|
4213
|
-
let en = $,
|
|
4213
|
+
let en = $, qs = "";
|
|
4214
4214
|
const ia = {
|
|
4215
4215
|
login: {
|
|
4216
4216
|
api: "PLATFORM_API",
|
|
@@ -4228,7 +4228,7 @@ const ia = {
|
|
|
4228
4228
|
authorize: !0,
|
|
4229
4229
|
url: "/api/LoginSrv/logout"
|
|
4230
4230
|
}
|
|
4231
|
-
},
|
|
4231
|
+
}, zs = {
|
|
4232
4232
|
host: {
|
|
4233
4233
|
api: "SITEHOST_API",
|
|
4234
4234
|
url: "/openapi/RCSiteHostSrv/get",
|
|
@@ -4240,8 +4240,8 @@ const ia = {
|
|
|
4240
4240
|
hideErrorToast: !0
|
|
4241
4241
|
}
|
|
4242
4242
|
};
|
|
4243
|
-
function
|
|
4244
|
-
|
|
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");
|
|
4245
4245
|
}
|
|
4246
4246
|
const Ct = {
|
|
4247
4247
|
/**
|
|
@@ -4314,18 +4314,18 @@ const Ct = {
|
|
|
4314
4314
|
type: Object,
|
|
4315
4315
|
required: !1
|
|
4316
4316
|
}
|
|
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 = [],
|
|
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) => {
|
|
4318
4318
|
for (const t of e) {
|
|
4319
4319
|
const a = jt.findIndex((n) => n.path === t.path);
|
|
4320
4320
|
a !== -1 && jt.splice(a, 1), jt.push(t), ca.addRoute(t);
|
|
4321
4321
|
}
|
|
4322
|
-
},
|
|
4322
|
+
}, Zs = (e, t, a, n = "") => {
|
|
4323
4323
|
const s = n + (n ? "/" : "") + e.path;
|
|
4324
|
-
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) =>
|
|
4325
|
-
}, ca =
|
|
4326
|
-
history:
|
|
4324
|
+
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => Zs(r, t, e, s));
|
|
4325
|
+
}, ca = Fr({
|
|
4326
|
+
history: Mr("/"),
|
|
4327
4327
|
routes: jt
|
|
4328
|
-
}),
|
|
4328
|
+
}), Ni = (e, t) => {
|
|
4329
4329
|
var s, r;
|
|
4330
4330
|
const a = ((s = e.meta) == null ? void 0 : s.roles) ?? [], n = (r = e.meta) == null ? void 0 : r.permission;
|
|
4331
4331
|
if (!t)
|
|
@@ -4381,24 +4381,24 @@ ca.beforeEach((e, t, a) => {
|
|
|
4381
4381
|
};
|
|
4382
4382
|
return;
|
|
4383
4383
|
}
|
|
4384
|
-
const m =
|
|
4384
|
+
const m = Ni(n, i.isLogin);
|
|
4385
4385
|
a();
|
|
4386
4386
|
}
|
|
4387
4387
|
}
|
|
4388
4388
|
});
|
|
4389
|
-
const
|
|
4389
|
+
const Si = (e) => {
|
|
4390
4390
|
if (yt.value) {
|
|
4391
4391
|
const { to: t, next: a } = yt.value;
|
|
4392
4392
|
yt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4393
4393
|
}
|
|
4394
|
-
},
|
|
4394
|
+
}, Ti = (e) => {
|
|
4395
4395
|
const t = hn();
|
|
4396
4396
|
if (t.TabEnabled) {
|
|
4397
|
-
if (
|
|
4397
|
+
if (Li(e.key, t.TabPanes))
|
|
4398
4398
|
return;
|
|
4399
4399
|
t.TabPanes.push(e);
|
|
4400
4400
|
}
|
|
4401
|
-
},
|
|
4401
|
+
}, Li = (e, t) => t.find((a) => a.key === e), hn = kt("pageInfo", {
|
|
4402
4402
|
state: () => ({
|
|
4403
4403
|
TabActive: "",
|
|
4404
4404
|
TabPanes: [],
|
|
@@ -4443,7 +4443,7 @@ const Ni = (e) => {
|
|
|
4443
4443
|
// 默认为true
|
|
4444
4444
|
keepAlive: !(a.meta && !a.meta.keepAlive)
|
|
4445
4445
|
};
|
|
4446
|
-
|
|
4446
|
+
Ti(n), this.TabActive = e;
|
|
4447
4447
|
}
|
|
4448
4448
|
},
|
|
4449
4449
|
persist: !1
|
|
@@ -4553,14 +4553,14 @@ const It = {
|
|
|
4553
4553
|
userLogout: ae.userLogout.bind(ae),
|
|
4554
4554
|
mainAppPush: ae.mainAppPush.bind(ae),
|
|
4555
4555
|
isInMicroApp: ae.isInMicroApp.bind(ae)
|
|
4556
|
-
},
|
|
4556
|
+
}, Oi = {
|
|
4557
4557
|
appList: {
|
|
4558
4558
|
api: "PLATFORM_API",
|
|
4559
4559
|
authorize: !0,
|
|
4560
4560
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
4561
4561
|
loadingText: !1
|
|
4562
4562
|
}
|
|
4563
|
-
}, xa = /* @__PURE__ */ new Map(),
|
|
4563
|
+
}, xa = /* @__PURE__ */ new Map(), Ai = (e) => {
|
|
4564
4564
|
const t = Ie(), { roles: a, permission: n } = e.meta || {};
|
|
4565
4565
|
if (ve(a) && ve(n))
|
|
4566
4566
|
return !0;
|
|
@@ -4571,17 +4571,17 @@ const It = {
|
|
|
4571
4571
|
return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
|
|
4572
4572
|
}
|
|
4573
4573
|
return !1;
|
|
4574
|
-
},
|
|
4574
|
+
}, er = (e) => e.map((t) => {
|
|
4575
4575
|
const a = { ...t };
|
|
4576
|
-
return
|
|
4577
|
-
}).filter(Boolean),
|
|
4576
|
+
return Ai(a) ? (a.children && (a.children = er(a.children)), a) : null;
|
|
4577
|
+
}).filter(Boolean), tr = (e, t = "") => {
|
|
4578
4578
|
for (const a of e) {
|
|
4579
4579
|
if (!a.children && !a.redirect) {
|
|
4580
4580
|
let n = t + a.path;
|
|
4581
4581
|
return n.startsWith("/") || (n = "/" + n), n;
|
|
4582
4582
|
}
|
|
4583
4583
|
if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
|
|
4584
|
-
const n =
|
|
4584
|
+
const n = tr(a.children, t + a.path + "/");
|
|
4585
4585
|
if (n)
|
|
4586
4586
|
return n;
|
|
4587
4587
|
}
|
|
@@ -4620,7 +4620,7 @@ const It = {
|
|
|
4620
4620
|
});
|
|
4621
4621
|
},
|
|
4622
4622
|
async getRemoteAppList() {
|
|
4623
|
-
return Xe(
|
|
4623
|
+
return Xe(Oi.appList, {
|
|
4624
4624
|
Query: {
|
|
4625
4625
|
AppCode: this.appInfo.AppCode,
|
|
4626
4626
|
Enabled: 1
|
|
@@ -4664,7 +4664,7 @@ const It = {
|
|
|
4664
4664
|
flattenRoutes: {},
|
|
4665
4665
|
Routes: t ?? [],
|
|
4666
4666
|
defaultPage: ""
|
|
4667
|
-
}), (!Ce() || !
|
|
4667
|
+
}), (!Ce() || !kr()) && (await Ie().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
|
|
4668
4668
|
},
|
|
4669
4669
|
/**
|
|
4670
4670
|
* 设置当前应用路由信息
|
|
@@ -4679,18 +4679,18 @@ const It = {
|
|
|
4679
4679
|
};
|
|
4680
4680
|
const t = this.appInfo.flattenRoutes;
|
|
4681
4681
|
for (const a of e)
|
|
4682
|
-
|
|
4682
|
+
Zs(a, t, void 0);
|
|
4683
4683
|
if (Object.keys(t).forEach((a) => {
|
|
4684
4684
|
const n = t[a];
|
|
4685
4685
|
n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
|
|
4686
4686
|
}), Ie().isLogin) {
|
|
4687
|
-
const a =
|
|
4688
|
-
if (
|
|
4687
|
+
const a = er(this.appInfo.Routes);
|
|
4688
|
+
if (Ii(a), this.appInfo.defaultPage = tr(a) || "", this.appInfo.defaultPage) {
|
|
4689
4689
|
if (this.menuLoaded = !0, Ce()) {
|
|
4690
4690
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4691
4691
|
It.mainAppPush(n);
|
|
4692
4692
|
}
|
|
4693
|
-
|
|
4693
|
+
Si(this.appInfo.defaultPage);
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
},
|
|
@@ -4708,7 +4708,7 @@ const It = {
|
|
|
4708
4708
|
* @param path 路由地址
|
|
4709
4709
|
*/
|
|
4710
4710
|
push(e) {
|
|
4711
|
-
this.findRoute(e) && hn().setTabActive(e),
|
|
4711
|
+
this.findRoute(e) && hn().setTabActive(e), Er(() => {
|
|
4712
4712
|
if (ca.push({ path: e }), Ce()) {
|
|
4713
4713
|
const a = this.formatRoute(e);
|
|
4714
4714
|
It.mainAppPush(a);
|
|
@@ -4783,7 +4783,7 @@ const It = {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
},
|
|
4785
4785
|
persist: !1
|
|
4786
|
-
}), ua = 1400,
|
|
4786
|
+
}), ua = 1400, Pi = (e) => {
|
|
4787
4787
|
let t = {
|
|
4788
4788
|
Option: {
|
|
4789
4789
|
Mode: "MicroApp"
|
|
@@ -4791,7 +4791,7 @@ const It = {
|
|
|
4791
4791
|
Query: e
|
|
4792
4792
|
};
|
|
4793
4793
|
return Xe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4794
|
-
},
|
|
4794
|
+
}, Ri = (e) => {
|
|
4795
4795
|
let t = {
|
|
4796
4796
|
Query: {
|
|
4797
4797
|
AppId: e
|
|
@@ -4806,18 +4806,18 @@ const It = {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
|
|
4808
4808
|
});
|
|
4809
|
-
},
|
|
4809
|
+
}, wi = () => {
|
|
4810
4810
|
let e = {
|
|
4811
4811
|
Option: {},
|
|
4812
4812
|
Query: {}
|
|
4813
4813
|
};
|
|
4814
4814
|
return Xe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4815
|
-
},
|
|
4815
|
+
}, ki = (e) => {
|
|
4816
4816
|
try {
|
|
4817
4817
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
4818
4818
|
return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
|
|
4819
4819
|
} catch (t) {
|
|
4820
|
-
return console.error(
|
|
4820
|
+
return console.error(qs, t), !1;
|
|
4821
4821
|
}
|
|
4822
4822
|
}, de = w(""), vt = w(null), Ie = kt("userInfo", {
|
|
4823
4823
|
state: () => ({
|
|
@@ -4845,14 +4845,14 @@ const It = {
|
|
|
4845
4845
|
* @returns
|
|
4846
4846
|
*/
|
|
4847
4847
|
async login(e, t) {
|
|
4848
|
-
const a = await
|
|
4848
|
+
const a = await Pi(e);
|
|
4849
4849
|
if (a) {
|
|
4850
4850
|
const n = a;
|
|
4851
4851
|
if (n.errno)
|
|
4852
4852
|
return n;
|
|
4853
4853
|
{
|
|
4854
4854
|
const s = a.data;
|
|
4855
|
-
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))
|
|
4856
4856
|
this.userInfo = {
|
|
4857
4857
|
...this.userInfo,
|
|
4858
4858
|
...s.UserInfo
|
|
@@ -4876,7 +4876,7 @@ const It = {
|
|
|
4876
4876
|
if (vt.value && vt.value.appId === e)
|
|
4877
4877
|
return !0;
|
|
4878
4878
|
try {
|
|
4879
|
-
const t = await
|
|
4879
|
+
const t = await Ri(e);
|
|
4880
4880
|
return t ? (vt.value = {
|
|
4881
4881
|
appId: e,
|
|
4882
4882
|
permits: t.permits || [],
|
|
@@ -4971,7 +4971,7 @@ const It = {
|
|
|
4971
4971
|
if (Ce())
|
|
4972
4972
|
return It.userLogout(), Promise.resolve();
|
|
4973
4973
|
try {
|
|
4974
|
-
e && await
|
|
4974
|
+
e && await wi();
|
|
4975
4975
|
} catch (t) {
|
|
4976
4976
|
console.error("调用登出接口失败", t);
|
|
4977
4977
|
} finally {
|
|
@@ -5006,20 +5006,20 @@ const It = {
|
|
|
5006
5006
|
}, da = (e, t) => {
|
|
5007
5007
|
const a = e.page, n = t.url;
|
|
5008
5008
|
if (!n || !n.url) {
|
|
5009
|
-
const
|
|
5010
|
-
return console.warn(
|
|
5009
|
+
const o = P("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
|
|
5010
|
+
return console.warn(o), Promise.reject(new Error(o));
|
|
5011
5011
|
}
|
|
5012
5012
|
n.api || (n.api = a.api), n.authorize === void 0 && (n.authorize = a.authorize);
|
|
5013
5013
|
let s = Dt(
|
|
5014
5014
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
5015
5015
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5016
5016
|
);
|
|
5017
|
-
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));
|
|
5018
5018
|
}, En = (e, t) => {
|
|
5019
5019
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5020
5020
|
const a = fa(e, t);
|
|
5021
5021
|
return t.url = a, da(e, t);
|
|
5022
|
-
},
|
|
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 = {}) => {
|
|
5023
5023
|
const a = t.primaryKey || "Id";
|
|
5024
5024
|
if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
|
|
5025
5025
|
return se.error(P("webui.utils.data.noSaveData")), Promise.resolve(null);
|
|
@@ -5031,7 +5031,7 @@ const It = {
|
|
|
5031
5031
|
n.params.Query[a] = n.params.Data[a];
|
|
5032
5032
|
const s = fa(e, n);
|
|
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
|
-
},
|
|
5034
|
+
}, Di = (e, t, a = {}) => {
|
|
5035
5035
|
const n = a.primaryKey || "Id";
|
|
5036
5036
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
5037
5037
|
const s = {
|
|
@@ -5043,22 +5043,22 @@ const It = {
|
|
|
5043
5043
|
return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5044
5044
|
const r = fa(e, s);
|
|
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
|
-
},
|
|
5046
|
+
}, Ci = (e, t) => En(e, {
|
|
5047
5047
|
urlKey: "tree",
|
|
5048
5048
|
params: {},
|
|
5049
5049
|
loadingState: e.isTreeLoading,
|
|
5050
5050
|
loadingText: !1,
|
|
5051
5051
|
processParams: () => Dt(e.treeQuery, t)
|
|
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) || []), [])),
|
|
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) => {
|
|
5053
5053
|
for (const a of e) {
|
|
5054
5054
|
if (a.key === t) return a;
|
|
5055
5055
|
if (a.children) {
|
|
5056
|
-
const n =
|
|
5056
|
+
const n = Fi(a.children, t);
|
|
5057
5057
|
if (n) return n;
|
|
5058
5058
|
}
|
|
5059
5059
|
}
|
|
5060
5060
|
return null;
|
|
5061
|
-
},
|
|
5061
|
+
}, Sc = kt("settingInfo", {
|
|
5062
5062
|
state: () => ({
|
|
5063
5063
|
fullscreen: !1,
|
|
5064
5064
|
menuCollapse: !1,
|
|
@@ -5102,7 +5102,7 @@ const It = {
|
|
|
5102
5102
|
persist: !1
|
|
5103
5103
|
});
|
|
5104
5104
|
let ct;
|
|
5105
|
-
const
|
|
5105
|
+
const Tc = (e) => {
|
|
5106
5106
|
ct = new aa({}), ct.messages({
|
|
5107
5107
|
required: "${label}" + P("webui.utils.formValidate.required"),
|
|
5108
5108
|
types: {
|
|
@@ -5129,7 +5129,7 @@ const Sc = (e) => {
|
|
|
5129
5129
|
},
|
|
5130
5130
|
...e
|
|
5131
5131
|
});
|
|
5132
|
-
},
|
|
5132
|
+
}, Lc = (e) => {
|
|
5133
5133
|
if (!e || ve(e))
|
|
5134
5134
|
return [];
|
|
5135
5135
|
const t = [], a = ct.messages(), n = (r, o, l) => {
|
|
@@ -5183,14 +5183,14 @@ const Sc = (e) => {
|
|
|
5183
5183
|
rules: i
|
|
5184
5184
|
});
|
|
5185
5185
|
}), t;
|
|
5186
|
-
},
|
|
5186
|
+
}, Oc = (e) => {
|
|
5187
5187
|
const t = new aa({});
|
|
5188
5188
|
return t.messages(ct.messages()), t.define(e), t;
|
|
5189
5189
|
}, Ft = async (e) => {
|
|
5190
5190
|
const t = e.formData.value, a = e.formRules.value;
|
|
5191
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(() => {
|
|
5192
5192
|
}).catch(({ fields: n }) => n));
|
|
5193
|
-
},
|
|
5193
|
+
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ct.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5194
5194
|
}).catch(({ fields: n }) => n)), vn = (e) => {
|
|
5195
5195
|
e.ruleResults.value = void 0;
|
|
5196
5196
|
}, ut = () => {
|
|
@@ -5201,7 +5201,7 @@ const Sc = (e) => {
|
|
|
5201
5201
|
ruleKey: a,
|
|
5202
5202
|
errInfo: n
|
|
5203
5203
|
};
|
|
5204
|
-
},
|
|
5204
|
+
}, Mi = (e, t) => {
|
|
5205
5205
|
let a = w({
|
|
5206
5206
|
msg: "",
|
|
5207
5207
|
errClass: ""
|
|
@@ -5213,7 +5213,7 @@ const Sc = (e) => {
|
|
|
5213
5213
|
() => n == null ? void 0 : n.value,
|
|
5214
5214
|
(s) => {
|
|
5215
5215
|
if (a.value.errClass = "", a.value.msg = "", !ve(s)) {
|
|
5216
|
-
const r =
|
|
5216
|
+
const r = Ui(
|
|
5217
5217
|
{
|
|
5218
5218
|
label: e.label,
|
|
5219
5219
|
rule: e.rule
|
|
@@ -5226,7 +5226,7 @@ const Sc = (e) => {
|
|
|
5226
5226
|
},
|
|
5227
5227
|
{ deep: !0 }
|
|
5228
5228
|
), a;
|
|
5229
|
-
},
|
|
5229
|
+
}, Ui = (e, t, a) => {
|
|
5230
5230
|
const n = w([]), s = w(""), r = w("");
|
|
5231
5231
|
if (!e.rule || !t || !a)
|
|
5232
5232
|
return { msg: s, ruleErrors: n, errClass: r };
|
|
@@ -5253,26 +5253,26 @@ const Sc = (e) => {
|
|
|
5253
5253
|
});
|
|
5254
5254
|
}
|
|
5255
5255
|
}), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
|
|
5256
|
-
},
|
|
5256
|
+
}, Pc = (e, t) => {
|
|
5257
5257
|
ka(Re.LabelText, e.label || ""), ka(Re.RuleKey, e.rule || "");
|
|
5258
|
-
const a =
|
|
5258
|
+
const a = Mi(e, t);
|
|
5259
5259
|
return ka(Re.ErrInfo, a), a;
|
|
5260
|
-
},
|
|
5260
|
+
}, xi = (e, t) => {
|
|
5261
5261
|
if (!t)
|
|
5262
5262
|
return;
|
|
5263
5263
|
const [a, ...n] = e;
|
|
5264
5264
|
if (e.length === 1)
|
|
5265
5265
|
return t[a];
|
|
5266
5266
|
if (t[a])
|
|
5267
|
-
return
|
|
5268
|
-
}, Pc = (e) => {
|
|
5269
|
-
ar(e);
|
|
5267
|
+
return xi(n, t[a].fields);
|
|
5270
5268
|
}, Rc = (e) => {
|
|
5271
|
-
|
|
5272
|
-
a[e.primaryKey ?? t.primaryKey] = null, ar(e);
|
|
5269
|
+
nr(e);
|
|
5273
5270
|
}, wc = (e) => {
|
|
5271
|
+
const t = e.page, a = e.formData.value;
|
|
5272
|
+
a[e.primaryKey ?? t.primaryKey] = null, nr(e);
|
|
5273
|
+
}, kc = (e) => {
|
|
5274
5274
|
bn(e), e.visible.value = !1;
|
|
5275
|
-
},
|
|
5275
|
+
}, nr = async (e) => {
|
|
5276
5276
|
var n;
|
|
5277
5277
|
const t = e.page;
|
|
5278
5278
|
if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
|
|
@@ -5280,7 +5280,7 @@ const Sc = (e) => {
|
|
|
5280
5280
|
if (e.formRules.value && await Ft(e), e.ruleResults.value)
|
|
5281
5281
|
return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
5282
5282
|
const a = e.formData.value;
|
|
5283
|
-
return
|
|
5283
|
+
return ar(
|
|
5284
5284
|
{
|
|
5285
5285
|
page: t,
|
|
5286
5286
|
// 转换为AnyControl接口
|
|
@@ -5323,25 +5323,25 @@ const Sc = (e) => {
|
|
|
5323
5323
|
} else
|
|
5324
5324
|
se.error((s == null ? void 0 : s.msg) ?? P("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
|
|
5325
5325
|
});
|
|
5326
|
-
},
|
|
5326
|
+
}, Dc = async (e) => {
|
|
5327
5327
|
const t = e.page, a = e.grid;
|
|
5328
5328
|
e.isFormLoading.value = !0;
|
|
5329
5329
|
const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
|
|
5330
|
-
return
|
|
5331
|
-
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);
|
|
5332
5332
|
});
|
|
5333
|
-
},
|
|
5333
|
+
}, Cc = (e) => {
|
|
5334
5334
|
const t = e.grid;
|
|
5335
5335
|
t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5336
5336
|
e.visible.value = !0;
|
|
5337
5337
|
}, 1));
|
|
5338
|
-
},
|
|
5338
|
+
}, sr = (e, t) => {
|
|
5339
5339
|
bn(e);
|
|
5340
5340
|
const a = { ...e.formData.value, ...t };
|
|
5341
5341
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5342
5342
|
}, bn = (e) => {
|
|
5343
5343
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5344
|
-
},
|
|
5344
|
+
}, Fc = (e, t) => {
|
|
5345
5345
|
const a = Ie();
|
|
5346
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) => {
|
|
5347
5347
|
if (!t) {
|
|
@@ -5352,7 +5352,7 @@ const Sc = (e) => {
|
|
|
5352
5352
|
}
|
|
5353
5353
|
return !0;
|
|
5354
5354
|
});
|
|
5355
|
-
},
|
|
5355
|
+
}, Mc = (e, t) => {
|
|
5356
5356
|
const a = t == null ? void 0 : t.filter((n) => {
|
|
5357
5357
|
const s = e.find(
|
|
5358
5358
|
(r) => r.dataIndex === n.dataIndex || r.key === n.key || r.title === n.title
|
|
@@ -5360,27 +5360,31 @@ const Sc = (e) => {
|
|
|
5360
5360
|
return s ? { ...n, ...s } : !1;
|
|
5361
5361
|
});
|
|
5362
5362
|
return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
|
|
5363
|
-
},
|
|
5364
|
-
var a, n;
|
|
5363
|
+
}, Vi = (e) => rr(e).then((t) => t.rows), rr = (e) => {
|
|
5364
|
+
var a, n, s, r;
|
|
5365
5365
|
e.gridQuery || (e.gridQuery = {});
|
|
5366
5366
|
const t = e.remotePage ? "find" : "list";
|
|
5367
5367
|
return En(e, {
|
|
5368
5368
|
urlKey: t,
|
|
5369
|
-
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
|
+
},
|
|
5370
5374
|
params: e.gridQuery,
|
|
5371
5375
|
loadingState: e.isGridLoading,
|
|
5372
|
-
loadingText: ((
|
|
5373
|
-
processParams: (
|
|
5374
|
-
var
|
|
5375
|
-
return e.remotePage && (
|
|
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);
|
|
5376
5380
|
}
|
|
5377
|
-
}).then((
|
|
5378
|
-
if ((
|
|
5379
|
-
let
|
|
5380
|
-
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 = {
|
|
5381
5385
|
total: e.total.value,
|
|
5382
|
-
rows:
|
|
5383
|
-
}), e.afterLoad && e.afterLoad(
|
|
5386
|
+
rows: o.data
|
|
5387
|
+
}), e.afterLoad && e.afterLoad(l), l;
|
|
5384
5388
|
}
|
|
5385
5389
|
return e.tableData.value = [], e.total.value = 0, e.afterLoad && e.afterLoad({
|
|
5386
5390
|
total: 0,
|
|
@@ -5390,7 +5394,7 @@ const Sc = (e) => {
|
|
|
5390
5394
|
rows: []
|
|
5391
5395
|
};
|
|
5392
5396
|
});
|
|
5393
|
-
},
|
|
5397
|
+
}, $i = (e, t, a = {}) => ar(e, {
|
|
5394
5398
|
urlKey: "update",
|
|
5395
5399
|
url: e.updateUrl,
|
|
5396
5400
|
params: {
|
|
@@ -5401,31 +5405,31 @@ const Sc = (e) => {
|
|
|
5401
5405
|
...a
|
|
5402
5406
|
}).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
|
|
5403
5407
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
|
|
5404
|
-
}, 50), n)),
|
|
5408
|
+
}, 50), n)), Uc = (e, t) => {
|
|
5405
5409
|
const a = {};
|
|
5406
|
-
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, {
|
|
5407
5411
|
loadingText: !1,
|
|
5408
5412
|
hideErrorToast: !0
|
|
5409
5413
|
});
|
|
5410
|
-
},
|
|
5414
|
+
}, or = async (e, t, a) => await En(e, {
|
|
5411
5415
|
urlKey: "detail",
|
|
5412
5416
|
url: a,
|
|
5413
5417
|
params: t,
|
|
5414
5418
|
loadingState: e.isGridLoading
|
|
5415
|
-
}),
|
|
5419
|
+
}), xc = (e, t) => {
|
|
5416
5420
|
const a = t;
|
|
5417
|
-
return
|
|
5418
|
-
},
|
|
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) => {
|
|
5419
5423
|
let a = e.editor;
|
|
5420
|
-
e.rowData.value = t, a && (
|
|
5421
|
-
},
|
|
5424
|
+
e.rowData.value = t, a && (sr(a, t), a.visible.value = !0);
|
|
5425
|
+
}, $c = (e, t) => Di(e, t, {
|
|
5422
5426
|
url: e.deleteUrl,
|
|
5423
5427
|
primaryKey: e.primaryKey
|
|
5424
5428
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5425
5429
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5426
5430
|
}, 50), a));
|
|
5427
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 || {});
|
|
5428
|
-
class
|
|
5432
|
+
class Hi {
|
|
5429
5433
|
constructor() {
|
|
5430
5434
|
ne(this, "listeners", {});
|
|
5431
5435
|
}
|
|
@@ -5471,11 +5475,11 @@ class $i {
|
|
|
5471
5475
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5472
5476
|
}
|
|
5473
5477
|
}
|
|
5474
|
-
const nt = new
|
|
5478
|
+
const nt = new Hi(), mt = (e, t, a) => {
|
|
5475
5479
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5476
5480
|
const n = t.inputFactory.value;
|
|
5477
5481
|
n.reloadHandler = (s, r) => {
|
|
5478
|
-
|
|
5482
|
+
Wi(t.url, t, r);
|
|
5479
5483
|
}, nt.on(a.reloadEvent, n.reloadHandler);
|
|
5480
5484
|
}
|
|
5481
5485
|
if (a != null && a.data)
|
|
@@ -5487,7 +5491,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5487
5491
|
{ deep: !0, immediate: !0 }
|
|
5488
5492
|
);
|
|
5489
5493
|
else if (t.url && t.url.url)
|
|
5490
|
-
e &&
|
|
5494
|
+
e && lr(t.url, t, t.params ?? {});
|
|
5491
5495
|
else {
|
|
5492
5496
|
const n = w(at(Re.LabelText, ""));
|
|
5493
5497
|
se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
|
|
@@ -5499,23 +5503,23 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5499
5503
|
const n = {
|
|
5500
5504
|
...e.fieldMap
|
|
5501
5505
|
};
|
|
5502
|
-
t =
|
|
5506
|
+
t = Dr(n, t);
|
|
5503
5507
|
}
|
|
5504
5508
|
t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
|
|
5505
5509
|
label: P("webui.components.form.radio.all"),
|
|
5506
5510
|
value: e.allValue ?? void 0
|
|
5507
5511
|
}), e.options.value = t;
|
|
5508
|
-
},
|
|
5509
|
-
Array.isArray(a) ? yn(t, a, !0) :
|
|
5512
|
+
}, Wi = (e, t, a) => {
|
|
5513
|
+
Array.isArray(a) ? yn(t, a, !0) : lr(e, t, a);
|
|
5510
5514
|
}, Mt = (e, t) => {
|
|
5511
5515
|
var a;
|
|
5512
5516
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && nt.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5513
|
-
},
|
|
5517
|
+
}, lr = (e, t, a) => {
|
|
5514
5518
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Dt(n, s, a);
|
|
5515
|
-
|
|
5519
|
+
Gi(e, t, t.fieldMap, r).then((o) => {
|
|
5516
5520
|
yn(t, o, !1);
|
|
5517
5521
|
});
|
|
5518
|
-
},
|
|
5522
|
+
}, Gi = (e, t, a, n) => {
|
|
5519
5523
|
const { fieldMap: s, ...r } = e, l = {
|
|
5520
5524
|
...{
|
|
5521
5525
|
url: "",
|
|
@@ -5527,11 +5531,11 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5527
5531
|
},
|
|
5528
5532
|
...r
|
|
5529
5533
|
};
|
|
5530
|
-
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, Xe(l, n).then((
|
|
5531
|
-
if ((
|
|
5532
|
-
if (
|
|
5533
|
-
return
|
|
5534
|
-
} 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) {
|
|
5535
5539
|
Ie().logout(!1);
|
|
5536
5540
|
return;
|
|
5537
5541
|
}
|
|
@@ -5539,7 +5543,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5539
5543
|
}).finally(() => {
|
|
5540
5544
|
t.isOptionLoading.value = !1;
|
|
5541
5545
|
});
|
|
5542
|
-
},
|
|
5546
|
+
}, Ki = (e, t, a) => {
|
|
5543
5547
|
if (e === void 0) return;
|
|
5544
5548
|
const n = (r) => {
|
|
5545
5549
|
const o = { ...r };
|
|
@@ -5567,7 +5571,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5567
5571
|
s[o] || (s[o] = {}), s = s[o];
|
|
5568
5572
|
}
|
|
5569
5573
|
s[n[n.length - 1]] = a;
|
|
5570
|
-
},
|
|
5574
|
+
}, ir = (e, t, a) => {
|
|
5571
5575
|
if (a == null) {
|
|
5572
5576
|
Object.entries(t).forEach(([n]) => {
|
|
5573
5577
|
bt(e, n, a);
|
|
@@ -5600,8 +5604,8 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5600
5604
|
var r, o;
|
|
5601
5605
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5602
5606
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Ft(n.editorCtrl), e.selected.value = a;
|
|
5603
|
-
const s =
|
|
5604
|
-
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) {
|
|
5605
5609
|
const [l, i] = t.changeEvent;
|
|
5606
5610
|
if (i)
|
|
5607
5611
|
if (Array.isArray(l))
|
|
@@ -5667,7 +5671,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5667
5671
|
value: "Id"
|
|
5668
5672
|
}
|
|
5669
5673
|
}
|
|
5670
|
-
},
|
|
5674
|
+
}, Hc = (e) => {
|
|
5671
5675
|
Z.PageOption = {
|
|
5672
5676
|
...Z.PageOption,
|
|
5673
5677
|
...e.pageOption
|
|
@@ -5684,7 +5688,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5684
5688
|
}, _a = (e) => {
|
|
5685
5689
|
for (let t in e.urls)
|
|
5686
5690
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
5687
|
-
},
|
|
5691
|
+
}, Yi = (e, t, a, n) => (_a(e), {
|
|
5688
5692
|
editorCtrl: {
|
|
5689
5693
|
...Z.EditorOption,
|
|
5690
5694
|
name: "",
|
|
@@ -5700,7 +5704,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5700
5704
|
isFormSaving: w(!1),
|
|
5701
5705
|
isFormLoading: w(!1)
|
|
5702
5706
|
}
|
|
5703
|
-
}),
|
|
5707
|
+
}), Bi = (e, t, a) => {
|
|
5704
5708
|
_a(e);
|
|
5705
5709
|
const n = {
|
|
5706
5710
|
...Z.GridOption,
|
|
@@ -5734,12 +5738,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5734
5738
|
(s) => {
|
|
5735
5739
|
s && (setTimeout(() => {
|
|
5736
5740
|
n.reload.value = !1;
|
|
5737
|
-
}, 1), n.remotePage ?
|
|
5741
|
+
}, 1), n.remotePage ? rr(n) : Vi(n));
|
|
5738
5742
|
}
|
|
5739
5743
|
), {
|
|
5740
5744
|
gridCtrl: n
|
|
5741
5745
|
};
|
|
5742
|
-
},
|
|
5746
|
+
}, Wc = (e, t) => {
|
|
5743
5747
|
_a(e);
|
|
5744
5748
|
const a = {
|
|
5745
5749
|
...Z.TreeOption,
|
|
@@ -5755,7 +5759,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5755
5759
|
(n) => {
|
|
5756
5760
|
n && (setTimeout(() => {
|
|
5757
5761
|
a.reload.value = !1;
|
|
5758
|
-
}, 1),
|
|
5762
|
+
}, 1), Ci(a));
|
|
5759
5763
|
}
|
|
5760
5764
|
), {
|
|
5761
5765
|
treeCtrl: a
|
|
@@ -5782,24 +5786,24 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5782
5786
|
), {
|
|
5783
5787
|
optionCtrl: a
|
|
5784
5788
|
};
|
|
5785
|
-
},
|
|
5789
|
+
}, Gc = (e, t, a) => {
|
|
5786
5790
|
_a(e);
|
|
5787
5791
|
const n = {
|
|
5788
5792
|
...Z.PageOption,
|
|
5789
5793
|
...e
|
|
5790
|
-
}, { editorCtrl: s } =
|
|
5794
|
+
}, { editorCtrl: s } = Yi(e, n, t, a), { gridCtrl: r } = Bi(e, n);
|
|
5791
5795
|
return n.editor = s, n.grid = r, r.editor = s, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], s.grid = r, {
|
|
5792
5796
|
pageCtrl: n,
|
|
5793
5797
|
editorCtrl: s,
|
|
5794
5798
|
gridCtrl: r
|
|
5795
5799
|
};
|
|
5796
|
-
},
|
|
5800
|
+
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = w({}), Kc = Ge, Yc = (e) => {
|
|
5797
5801
|
var s;
|
|
5798
5802
|
if (!e.iconUrl) return an;
|
|
5799
5803
|
const t = w(!0), a = w("");
|
|
5800
5804
|
let n = !0;
|
|
5801
|
-
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) &&
|
|
5802
|
-
|
|
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;
|
|
5803
5807
|
}), De({
|
|
5804
5808
|
props: {
|
|
5805
5809
|
icon: {
|
|
@@ -5867,26 +5871,26 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5867
5871
|
style: {
|
|
5868
5872
|
fill: "currentColor",
|
|
5869
5873
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
5870
|
-
transform:
|
|
5874
|
+
transform: Zi(this.angle, this.flip)
|
|
5871
5875
|
}
|
|
5872
5876
|
}) : ye("div", { class: "w-[14px] h-[14px]" });
|
|
5873
5877
|
}
|
|
5874
5878
|
});
|
|
5875
|
-
},
|
|
5879
|
+
}, Ji = (e, t) => {
|
|
5876
5880
|
let a = e.iconUrl;
|
|
5877
5881
|
if (!a)
|
|
5878
5882
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
5879
5883
|
if (Va.has(a))
|
|
5880
5884
|
return Promise.resolve();
|
|
5881
|
-
const n =
|
|
5885
|
+
const n = ur(a);
|
|
5882
5886
|
if (n)
|
|
5883
|
-
return new Promise(async (r) => (
|
|
5887
|
+
return new Promise(async (r) => (cr(n.scriptContent), r()));
|
|
5884
5888
|
t.value = !1;
|
|
5885
5889
|
const s = new Promise(async (r) => {
|
|
5886
|
-
await
|
|
5890
|
+
await Qi(a, e.monoColor || !1), r(), Va.delete(a);
|
|
5887
5891
|
});
|
|
5888
5892
|
return Va.set(a, s), s;
|
|
5889
|
-
},
|
|
5893
|
+
}, Qi = async (e, t) => {
|
|
5890
5894
|
try {
|
|
5891
5895
|
const a = await fetch(e);
|
|
5892
5896
|
if (!a.ok) {
|
|
@@ -5899,27 +5903,27 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5899
5903
|
const r = n.match(s);
|
|
5900
5904
|
if (r && r.length > 1) {
|
|
5901
5905
|
let o = r[1];
|
|
5902
|
-
|
|
5906
|
+
Xi(e, o, t, n);
|
|
5903
5907
|
}
|
|
5904
|
-
|
|
5908
|
+
cr(n);
|
|
5905
5909
|
return;
|
|
5906
5910
|
} catch (a) {
|
|
5907
5911
|
return console.error(P("webui.utils.iconLoader.networkError") + ":", a), null;
|
|
5908
5912
|
}
|
|
5909
|
-
},
|
|
5913
|
+
}, cr = (e) => {
|
|
5910
5914
|
const t = document.createElement("script");
|
|
5911
5915
|
t.textContent = e, document.head.appendChild(t);
|
|
5912
|
-
},
|
|
5916
|
+
}, Xi = (e, t, a, n) => {
|
|
5913
5917
|
let s = `icon_cache:${e}`;
|
|
5914
5918
|
const r = {
|
|
5915
5919
|
windowKey: t,
|
|
5916
5920
|
monoColor: a,
|
|
5917
5921
|
scriptContent: n,
|
|
5918
|
-
expireTime: Date.now() +
|
|
5922
|
+
expireTime: Date.now() + ji
|
|
5919
5923
|
// 缓存时间:7天
|
|
5920
5924
|
};
|
|
5921
5925
|
localStorage.setItem(s, JSON.stringify(r));
|
|
5922
|
-
},
|
|
5926
|
+
}, ur = (e) => {
|
|
5923
5927
|
let t = `icon_cache:${e}`;
|
|
5924
5928
|
const a = localStorage.getItem(t);
|
|
5925
5929
|
if (!a) return null;
|
|
@@ -5930,7 +5934,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5930
5934
|
return console.error("解析缓存失败:", s), null;
|
|
5931
5935
|
}
|
|
5932
5936
|
return n.expireTime < Date.now() ? (localStorage.removeItem(e), null) : n;
|
|
5933
|
-
},
|
|
5937
|
+
}, Bc = () => {
|
|
5934
5938
|
const e = Date.now();
|
|
5935
5939
|
for (const t in localStorage)
|
|
5936
5940
|
if (t.startsWith("icon_cache:")) {
|
|
@@ -5961,12 +5965,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5961
5965
|
fill: "currentColor"
|
|
5962
5966
|
})
|
|
5963
5967
|
]
|
|
5964
|
-
),
|
|
5965
|
-
const a =
|
|
5968
|
+
), qi = (e, t) => {
|
|
5969
|
+
const a = ur(e);
|
|
5966
5970
|
Object.keys(window).forEach((n) => {
|
|
5967
|
-
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));
|
|
5968
5972
|
});
|
|
5969
|
-
},
|
|
5973
|
+
}, zi = (e, t) => {
|
|
5970
5974
|
const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
|
|
5971
5975
|
for (const l of r) {
|
|
5972
5976
|
const i = l.id, c = Array.from(o).find((m) => m.id === i);
|
|
@@ -5974,12 +5978,12 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5974
5978
|
m.hasAttribute("fill") && m.removeAttribute("fill");
|
|
5975
5979
|
})), Ge.value[i] || (Ge.value[i] = ye("svg", { fill: "currentColor" }, [ye("use", { "xlink:href": `#${i}` })]));
|
|
5976
5980
|
}
|
|
5977
|
-
},
|
|
5981
|
+
}, Zi = (e, t) => {
|
|
5978
5982
|
let a = "";
|
|
5979
5983
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5980
|
-
},
|
|
5981
|
-
|
|
5982
|
-
},
|
|
5984
|
+
}, jc = (e, t, a, n) => {
|
|
5985
|
+
fr(e, [], a, n).forEach((r) => t.push(r));
|
|
5986
|
+
}, fr = (e, t, a, n) => {
|
|
5983
5987
|
var o, l, i, c, m, g;
|
|
5984
5988
|
const s = [], r = Ie();
|
|
5985
5989
|
for (const p of e) {
|
|
@@ -5988,7 +5992,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5988
5992
|
continue;
|
|
5989
5993
|
const I = p.path.split("/");
|
|
5990
5994
|
I.unshift(...t);
|
|
5991
|
-
const R =
|
|
5995
|
+
const R = fr(p.children || [], I, a, n), S = {
|
|
5992
5996
|
key: I.join("/"),
|
|
5993
5997
|
label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
|
|
5994
5998
|
title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
|
|
@@ -5998,7 +6002,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
5998
6002
|
(R.length > 0 || !p.children) && s.push(S);
|
|
5999
6003
|
}
|
|
6000
6004
|
return s;
|
|
6001
|
-
}, us =
|
|
6005
|
+
}, us = vr([]), Jc = () => {
|
|
6002
6006
|
us.length = 0;
|
|
6003
6007
|
const e = Fe();
|
|
6004
6008
|
let a = hn().TabActive;
|
|
@@ -6011,7 +6015,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6011
6015
|
};
|
|
6012
6016
|
us.push(o);
|
|
6013
6017
|
});
|
|
6014
|
-
},
|
|
6018
|
+
}, Qc = kt("hostInfo", {
|
|
6015
6019
|
state: () => ({
|
|
6016
6020
|
hostInfo: {
|
|
6017
6021
|
Host: "",
|
|
@@ -6044,7 +6048,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6044
6048
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6045
6049
|
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6046
6050
|
const s = t || window.location.origin;
|
|
6047
|
-
Xe(
|
|
6051
|
+
Xe(zs.host, {
|
|
6048
6052
|
Query: {
|
|
6049
6053
|
Host: s
|
|
6050
6054
|
}
|
|
@@ -6087,7 +6091,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6087
6091
|
if (this.hostInfo.SERVER_HOST)
|
|
6088
6092
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
6089
6093
|
let a = this.hostInfo.SERVER_HOST[t];
|
|
6090
|
-
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;
|
|
6091
6095
|
}
|
|
6092
6096
|
},
|
|
6093
6097
|
getHostInfo() {
|
|
@@ -6101,7 +6105,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6101
6105
|
// storage: localStorage,
|
|
6102
6106
|
// pick: ['hostInfo'],
|
|
6103
6107
|
// },
|
|
6104
|
-
}),
|
|
6108
|
+
}), Xc = /* @__PURE__ */ De({
|
|
6105
6109
|
__name: "index",
|
|
6106
6110
|
props: {
|
|
6107
6111
|
...Ct,
|
|
@@ -6149,7 +6153,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6149
6153
|
r && Mt(r, a);
|
|
6150
6154
|
}), (I, R) => {
|
|
6151
6155
|
var S;
|
|
6152
|
-
return o.value.length === 2 ? (le(), zt(X(
|
|
6156
|
+
return o.value.length === 2 ? (le(), zt(X(yr), wt({
|
|
6153
6157
|
key: 0,
|
|
6154
6158
|
size: e.size,
|
|
6155
6159
|
class: [
|
|
@@ -6165,7 +6169,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6165
6169
|
}, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
|
|
6166
6170
|
};
|
|
6167
6171
|
}
|
|
6168
|
-
}),
|
|
6172
|
+
}), qc = /* @__PURE__ */ De({
|
|
6169
6173
|
inheritAttrs: !1,
|
|
6170
6174
|
__name: "index",
|
|
6171
6175
|
props: {
|
|
@@ -6202,7 +6206,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6202
6206
|
), B(
|
|
6203
6207
|
() => l.value,
|
|
6204
6208
|
(S) => {
|
|
6205
|
-
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);
|
|
6206
6210
|
}
|
|
6207
6211
|
);
|
|
6208
6212
|
const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
|
|
@@ -6236,7 +6240,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6236
6240
|
}), (S, O) => {
|
|
6237
6241
|
var d;
|
|
6238
6242
|
return le(), ge("div", null, [
|
|
6239
|
-
Ye(X(
|
|
6243
|
+
Ye(X(Ir), wt({
|
|
6240
6244
|
value: l.value,
|
|
6241
6245
|
"onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
|
|
6242
6246
|
class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
|
|
@@ -6248,7 +6252,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6248
6252
|
ta(Be(_), 1)
|
|
6249
6253
|
]),
|
|
6250
6254
|
default: Me(() => [
|
|
6251
|
-
Ye(X(
|
|
6255
|
+
Ye(X(Nr), {
|
|
6252
6256
|
"allow-clear": "",
|
|
6253
6257
|
placeholder: "请输入并选择" + X(m)
|
|
6254
6258
|
}, null, 8, ["placeholder"])
|
|
@@ -6258,10 +6262,10 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6258
6262
|
]);
|
|
6259
6263
|
};
|
|
6260
6264
|
}
|
|
6261
|
-
}),
|
|
6265
|
+
}), ec = { class: "min-h-[32px] pt-[5px]" }, tc = {
|
|
6262
6266
|
key: 1,
|
|
6263
6267
|
class: "text-center text-gray-500"
|
|
6264
|
-
},
|
|
6268
|
+
}, zc = /* @__PURE__ */ De({
|
|
6265
6269
|
inheritAttrs: !1,
|
|
6266
6270
|
__name: "index",
|
|
6267
6271
|
props: {
|
|
@@ -6316,15 +6320,15 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6316
6320
|
}), o && mt(o.autoload, o, a);
|
|
6317
6321
|
}), ft(() => {
|
|
6318
6322
|
o && Mt(o, a);
|
|
6319
|
-
}), (S, O) => (le(), ge("div",
|
|
6320
|
-
Ye(X(
|
|
6323
|
+
}), (S, O) => (le(), ge("div", ec, [
|
|
6324
|
+
Ye(X(Sr), wt({
|
|
6321
6325
|
onChange: g,
|
|
6322
6326
|
class: "w-full mb-[-3px]"
|
|
6323
6327
|
}, X(n)), {
|
|
6324
6328
|
default: Me(() => [
|
|
6325
6329
|
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (d) => {
|
|
6326
6330
|
var _;
|
|
6327
|
-
return le(), zt(X(
|
|
6331
|
+
return le(), zt(X(Tr), {
|
|
6328
6332
|
key: d.value,
|
|
6329
6333
|
value: d.value,
|
|
6330
6334
|
disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
|
|
@@ -6340,16 +6344,16 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6340
6344
|
]),
|
|
6341
6345
|
_: 2
|
|
6342
6346
|
}, 1032, ["value", "disabled", "class"]);
|
|
6343
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6347
|
+
}), 128)) : e.nodata ? (le(), ge("div", tc, Be(e.nodata), 1)) : rt("", !0)
|
|
6344
6348
|
]),
|
|
6345
6349
|
_: 1
|
|
6346
6350
|
}, 16)
|
|
6347
6351
|
]));
|
|
6348
6352
|
}
|
|
6349
|
-
}),
|
|
6353
|
+
}), ac = { class: "min-h-[32px] pt-1" }, nc = {
|
|
6350
6354
|
key: 1,
|
|
6351
6355
|
class: "text-center text-gray-500"
|
|
6352
|
-
},
|
|
6356
|
+
}, Zc = /* @__PURE__ */ De({
|
|
6353
6357
|
inheritAttrs: !1,
|
|
6354
6358
|
__name: "index",
|
|
6355
6359
|
props: {
|
|
@@ -6418,8 +6422,8 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6418
6422
|
}), o && mt(o.autoload, o, a);
|
|
6419
6423
|
}), ft(() => {
|
|
6420
6424
|
o && Mt(o, a);
|
|
6421
|
-
}), (d, _) => (le(), ge("div",
|
|
6422
|
-
Ye(X(
|
|
6425
|
+
}), (d, _) => (le(), ge("div", ac, [
|
|
6426
|
+
Ye(X(Lr), wt({
|
|
6423
6427
|
value: i.value,
|
|
6424
6428
|
"onUpdate:value": _[0] || (_[0] = (y) => i.value = y),
|
|
6425
6429
|
autocheck: !1,
|
|
@@ -6432,7 +6436,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6432
6436
|
return le(), ge(Ke, {
|
|
6433
6437
|
key: y.value
|
|
6434
6438
|
}, [
|
|
6435
|
-
y.visible !== !1 ? (le(), zt(X(
|
|
6439
|
+
y.visible !== !1 ? (le(), zt(X(Or), {
|
|
6436
6440
|
key: 0,
|
|
6437
6441
|
checked: p(y.value, a.value),
|
|
6438
6442
|
value: y.value,
|
|
@@ -6449,16 +6453,16 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6449
6453
|
_: 2
|
|
6450
6454
|
}, 1032, ["checked", "value", "class"])) : rt("", !0)
|
|
6451
6455
|
], 64);
|
|
6452
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6456
|
+
}), 128)) : e.nodata ? (le(), ge("div", nc, Be(e.nodata), 1)) : rt("", !0)
|
|
6453
6457
|
]),
|
|
6454
6458
|
_: 1
|
|
6455
6459
|
}, 16, ["value"])
|
|
6456
6460
|
]));
|
|
6457
6461
|
}
|
|
6458
|
-
}),
|
|
6462
|
+
}), sc = {
|
|
6459
6463
|
key: 0,
|
|
6460
6464
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
6461
|
-
},
|
|
6465
|
+
}, eu = /* @__PURE__ */ De({
|
|
6462
6466
|
inheritAttrs: !1,
|
|
6463
6467
|
__name: "index",
|
|
6464
6468
|
props: {
|
|
@@ -6574,11 +6578,11 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6574
6578
|
}), (b, L) => {
|
|
6575
6579
|
var v, C, M;
|
|
6576
6580
|
return le(), ge("div", null, [
|
|
6577
|
-
(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, [
|
|
6578
6582
|
Ye(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6579
|
-
|
|
6583
|
+
br("span", null, Be(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6580
6584
|
])) : rt("", !0),
|
|
6581
|
-
Ye(X(
|
|
6585
|
+
Ye(X(Ar), wt({
|
|
6582
6586
|
class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
|
|
6583
6587
|
value: I.value,
|
|
6584
6588
|
"onUpdate:value": L[0] || (L[0] = (K) => I.value = K),
|
|
@@ -6591,7 +6595,7 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6591
6595
|
(le(!0), ge(Ke, null, nn(O.value, (K) => (le(), ge(Ke, {
|
|
6592
6596
|
key: K.value
|
|
6593
6597
|
}, [
|
|
6594
|
-
K.visible !== !1 ? (le(), zt(X(
|
|
6598
|
+
K.visible !== !1 ? (le(), zt(X(Pr), {
|
|
6595
6599
|
key: 0,
|
|
6596
6600
|
value: K.value
|
|
6597
6601
|
}, {
|
|
@@ -6607,13 +6611,13 @@ const nt = new $i(), mt = (e, t, a) => {
|
|
|
6607
6611
|
]);
|
|
6608
6612
|
};
|
|
6609
6613
|
}
|
|
6610
|
-
}),
|
|
6614
|
+
}), rc = w(!1), tu = {
|
|
6611
6615
|
label: P("webui.utils.tools.templateManagement"),
|
|
6612
6616
|
key: "uploadTemp",
|
|
6613
6617
|
type: "primary",
|
|
6614
6618
|
icon: "icon-download",
|
|
6615
6619
|
click: () => {
|
|
6616
|
-
|
|
6620
|
+
rc.value = !0;
|
|
6617
6621
|
}
|
|
6618
6622
|
};
|
|
6619
6623
|
export {
|
|
@@ -6621,81 +6625,81 @@ export {
|
|
|
6621
6625
|
pa as A,
|
|
6622
6626
|
ma as B,
|
|
6623
6627
|
Ft as C,
|
|
6624
|
-
|
|
6628
|
+
zc as D,
|
|
6625
6629
|
la as E,
|
|
6626
|
-
|
|
6627
|
-
|
|
6630
|
+
Zc as F,
|
|
6631
|
+
eu as G,
|
|
6628
6632
|
En as H,
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6633
|
+
Ur as I,
|
|
6634
|
+
Ic as J,
|
|
6635
|
+
Hc as K,
|
|
6632
6636
|
ua as L,
|
|
6633
6637
|
It as M,
|
|
6634
|
-
|
|
6638
|
+
Yi as N,
|
|
6635
6639
|
en as O,
|
|
6636
6640
|
Re as P,
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
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,
|
|
6649
6653
|
us as a0,
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6654
|
+
Jc as a1,
|
|
6655
|
+
nr as a2,
|
|
6656
|
+
Dc as a3,
|
|
6657
|
+
sr as a4,
|
|
6658
|
+
Tc as a5,
|
|
6659
|
+
Ac as a6,
|
|
6656
6660
|
vn as a7,
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
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,
|
|
6666
6670
|
tn as ah,
|
|
6667
6671
|
nt as ai,
|
|
6668
6672
|
yt as aj,
|
|
6669
6673
|
jt as ak,
|
|
6670
6674
|
Fe as al,
|
|
6671
|
-
|
|
6675
|
+
Qc as am,
|
|
6672
6676
|
hn as an,
|
|
6673
|
-
|
|
6674
|
-
|
|
6677
|
+
rc as ao,
|
|
6678
|
+
tu as ap,
|
|
6675
6679
|
me as aq,
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
+
Ec as ar,
|
|
6681
|
+
yc as as,
|
|
6682
|
+
bc as at,
|
|
6683
|
+
vc as au,
|
|
6680
6684
|
ct as av,
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
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,
|
|
6688
6692
|
ve as i,
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
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,
|
|
6697
6701
|
ca as r,
|
|
6698
|
-
|
|
6702
|
+
qc as s,
|
|
6699
6703
|
Ct as t,
|
|
6700
6704
|
Ie as u,
|
|
6701
6705
|
ut as v,
|