@skyfox2000/webui 1.6.0 → 1.6.1
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-DDSJt-x4.js → baseLayout-B6inmGis.js} +3 -3
- package/lib/assets/modules/{file-upload-Cf_l5UkO.js → file-upload-D5fgJqbD.js} +1 -1
- package/lib/assets/modules/{index-DrXeG06w.js → index-BtAUG8V-.js} +2 -2
- package/lib/assets/modules/{index-cop45Etu.js → index-Bypy-Ory.js} +1 -1
- package/lib/assets/modules/{index-D1xNOLT_.js → index-CC9JsVjr.js} +2 -2
- package/lib/assets/modules/{menuTabs-Bmgx084v.js → menuTabs-GG2r3rRS.js} +2 -2
- package/lib/assets/modules/{toolIcon-CFsCkPLp.js → toolIcon-BkR48lkW.js} +1 -1
- package/lib/assets/modules/{upload-template-JsmaDweb.js → upload-template-8CEyoFgY.js} +396 -395
- package/lib/assets/modules/{uploadList-B-Acsazt.js → uploadList-CsVXS_Cb.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/stores/appInfo.ts +2 -1
- package/src/stores/hostInfo.ts +1 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (e, t, a) =>
|
|
1
|
+
var pr = Object.defineProperty;
|
|
2
|
+
var _r = (e, t, a) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var ne = (e, t, a) => _r(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as wa from "vue";
|
|
5
|
-
import { effectScope as
|
|
6
|
-
import { Switch as
|
|
7
|
-
import { createPinia as
|
|
8
|
-
import
|
|
9
|
-
import { EnvConfig as ke, AppAction as
|
|
10
|
-
import { httpPost as qe, ResStatus as ie, setToken as Wt, httpGet as
|
|
5
|
+
import { effectScope as gr, ref as w, shallowRef as De, computed as tt, watch as B, isRef as hr, defineComponent as Ce, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as Er, nextTick as vr, provide as ka, toRaw as ds, reactive as br, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Ue, createTextVNode as ta, toDisplayString as je, renderList as sn, normalizeClass as ms, createElementVNode as Ir } from "vue";
|
|
6
|
+
import { Switch as yr, AutoComplete as Nr, Input as Sr, CheckboxGroup as Tr, Checkbox as Lr, RadioGroup as Or, Radio as Ar, Select as Pr, SelectOption as Rr } from "ant-design-vue";
|
|
7
|
+
import { createPinia as wr, defineStore as Dt } from "pinia";
|
|
8
|
+
import kr from "pinia-plugin-persistedstate";
|
|
9
|
+
import { EnvConfig as ke, AppAction as Tn, AppSource as Ln, isMicroApp as Fe, isBaseMicroApp as Dr, combineParams as Ct } from "@skyfox2000/microbase";
|
|
10
|
+
import { httpPost as qe, SERVER_HOST as $a, ResStatus as ie, setToken as Wt, httpGet as ps, fieldMapping as Cr, parseFieldTemplate as Qt, API_HOST as Da } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
|
|
13
13
|
import aa from "async-validator";
|
|
14
14
|
import "dayjs";
|
|
15
15
|
import "vue-draggable-next";
|
|
16
|
-
const Ur =
|
|
17
|
-
Ur.use(
|
|
16
|
+
const Ur = wr();
|
|
17
|
+
Ur.use(kr);
|
|
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
|
|
@@ -24,9 +24,9 @@ var Re = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorCo
|
|
|
24
24
|
function Le(e, t) {
|
|
25
25
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
|
|
27
|
+
const On = {};
|
|
28
|
+
function rn(e) {
|
|
29
|
+
On[e] || (On[e] = !0, Le(e));
|
|
30
30
|
}
|
|
31
31
|
const Ne = typeof window < "u";
|
|
32
32
|
let fe, Je;
|
|
@@ -43,17 +43,17 @@ const xr = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
43
43
|
function na(e, ...t) {
|
|
44
44
|
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xr, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
45
45
|
}
|
|
46
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) =>
|
|
47
|
-
let
|
|
48
|
-
const Ge = () =>
|
|
49
|
-
function
|
|
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) => on(e) === "[object Date]", lt = (e) => on(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Wr = Object.create, W = (e = null) => Wr(e);
|
|
47
|
+
let An;
|
|
48
|
+
const Ge = () => An || (An = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
|
+
function Pn(e) {
|
|
50
50
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Rn(e) {
|
|
53
53
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
54
54
|
}
|
|
55
55
|
function Gr(e) {
|
|
56
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${
|
|
56
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${Rn(r)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (n, s, r) => `${s}='${Rn(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,
|
|
59
59
|
// In style attributes within url()
|
|
@@ -66,18 +66,18 @@ const Kr = Object.prototype.hasOwnProperty;
|
|
|
66
66
|
function be(e, t) {
|
|
67
67
|
return Kr.call(e, t);
|
|
68
68
|
}
|
|
69
|
-
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Yr = (e) => U(e) && G(e.then) && G(e.catch),
|
|
70
|
-
function
|
|
69
|
+
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Yr = (e) => U(e) && G(e.then) && G(e.catch), _s = Object.prototype.toString, on = (e) => _s.call(e), F = (e) => on(e) === "[object Object]", Br = (e) => e == null ? "" : J(e) || F(e) && e.toString === _s ? JSON.stringify(e, null, 2) : String(e);
|
|
70
|
+
function ln(e, t = "") {
|
|
71
71
|
return e.reduce((a, n, s) => s === 0 ? a + n : a + t + n, "");
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const wn = 2;
|
|
74
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 = [];
|
|
78
78
|
for (let o = 0; o < n.length; o++)
|
|
79
79
|
if (s += n[o].length + 1, s >= t) {
|
|
80
|
-
for (let l = o -
|
|
80
|
+
for (let l = o - wn; l <= o + wn || a > s; l++) {
|
|
81
81
|
if (l < 0 || l >= n.length)
|
|
82
82
|
continue;
|
|
83
83
|
const i = l + 1;
|
|
@@ -99,7 +99,7 @@ function jr(e, t = 0, a = e.length) {
|
|
|
99
99
|
return r.join(`
|
|
100
100
|
`);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function cn() {
|
|
103
103
|
const e = /* @__PURE__ */ new Map();
|
|
104
104
|
return {
|
|
105
105
|
events: e,
|
|
@@ -136,7 +136,7 @@ function jt(e, t) {
|
|
|
136
136
|
function Jr(e, t, a) {
|
|
137
137
|
return { line: e, column: t, offset: a };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ha(e, t, a) {
|
|
140
140
|
return { start: e, end: t };
|
|
141
141
|
}
|
|
142
142
|
const D = {
|
|
@@ -228,7 +228,7 @@ function no(e) {
|
|
|
228
228
|
skipToPeek: L
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const Pe = void 0, so = ".",
|
|
231
|
+
const Pe = void 0, so = ".", kn = "'", ro = "tokenizer";
|
|
232
232
|
function oo(e, t = {}) {
|
|
233
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,
|
|
@@ -246,7 +246,7 @@ function oo(e, t = {}) {
|
|
|
246
246
|
function g(u, f, N, ...k) {
|
|
247
247
|
const j = c();
|
|
248
248
|
if (f.column += N, f.offset += N, m) {
|
|
249
|
-
const q = a ?
|
|
249
|
+
const q = a ? Ha(j.startLoc, f) : null, V = mt(u, q, {
|
|
250
250
|
domain: ro,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
@@ -256,7 +256,7 @@ function oo(e, t = {}) {
|
|
|
256
256
|
function p(u, f, N) {
|
|
257
257
|
u.endLoc = r(), u.currentType = f;
|
|
258
258
|
const k = { type: f };
|
|
259
|
-
return a && (k.loc =
|
|
259
|
+
return a && (k.loc = Ha(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
|
|
260
260
|
}
|
|
261
261
|
const y = (u) => p(
|
|
262
262
|
u,
|
|
@@ -311,7 +311,7 @@ function oo(e, t = {}) {
|
|
|
311
311
|
if (N !== 2)
|
|
312
312
|
return !1;
|
|
313
313
|
S(u);
|
|
314
|
-
const k = u.currentPeek() ===
|
|
314
|
+
const k = u.currentPeek() === kn;
|
|
315
315
|
return u.resetPeek(), k;
|
|
316
316
|
}
|
|
317
317
|
function L(u, f) {
|
|
@@ -446,9 +446,9 @@ function oo(e, t = {}) {
|
|
|
446
446
|
return u.currentChar() === "-" ? (u.next(), f += `-${_t(u)}`) : f += _t(u), u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f;
|
|
447
447
|
}
|
|
448
448
|
function Ta(u) {
|
|
449
|
-
return u !==
|
|
449
|
+
return u !== kn && u !== re;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Nn(u) {
|
|
452
452
|
O(u), R(u, "'");
|
|
453
453
|
let f = "", N = "";
|
|
454
454
|
for (; f = Q(u, Ta); )
|
|
@@ -545,7 +545,7 @@ function oo(e, t = {}) {
|
|
|
545
545
|
if (q = E(u, f))
|
|
546
546
|
return N = p(f, 5, Sa(u)), O(u), N;
|
|
547
547
|
if (V = b(u, f))
|
|
548
|
-
return N = p(f, 6,
|
|
548
|
+
return N = p(f, 6, Nn(u)), O(u), N;
|
|
549
549
|
if (!j && !q && !V)
|
|
550
550
|
return N = p(f, 12, $t(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
|
|
551
551
|
break;
|
|
@@ -648,7 +648,7 @@ function uo(e = {}) {
|
|
|
648
648
|
function n(d, _, I, E, ...b) {
|
|
649
649
|
const L = d.currentPosition();
|
|
650
650
|
if (L.offset += E, L.column += E, a) {
|
|
651
|
-
const v = t ?
|
|
651
|
+
const v = t ? Ha(I, L) : null, C = mt(_, v, {
|
|
652
652
|
domain: lo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
@@ -787,23 +787,23 @@ function fo(e, t = {}) {
|
|
|
787
787
|
};
|
|
788
788
|
return { context: () => a, helper: (r) => (a.helpers.add(r), r) };
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Dn(e, t) {
|
|
791
791
|
for (let a = 0; a < e.length; a++)
|
|
792
|
-
|
|
792
|
+
un(e[a], t);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function un(e, t) {
|
|
795
795
|
switch (e.type) {
|
|
796
796
|
case 1:
|
|
797
|
-
|
|
797
|
+
Dn(e.cases, t), t.helper(
|
|
798
798
|
"plural"
|
|
799
799
|
/* HelperNameMap.PLURAL */
|
|
800
800
|
);
|
|
801
801
|
break;
|
|
802
802
|
case 2:
|
|
803
|
-
|
|
803
|
+
Dn(e.items, t);
|
|
804
804
|
break;
|
|
805
805
|
case 6: {
|
|
806
|
-
|
|
806
|
+
un(e.key, t), t.helper(
|
|
807
807
|
"linked"
|
|
808
808
|
/* HelperNameMap.LINKED */
|
|
809
809
|
), t.helper(
|
|
@@ -837,15 +837,15 @@ function mo(e, t = {}) {
|
|
|
837
837
|
a.helper(
|
|
838
838
|
"normalize"
|
|
839
839
|
/* HelperNameMap.NORMALIZE */
|
|
840
|
-
), e.body &&
|
|
840
|
+
), e.body && un(e.body, a);
|
|
841
841
|
const n = a.context();
|
|
842
842
|
e.helpers = Array.from(n.helpers);
|
|
843
843
|
}
|
|
844
844
|
function po(e) {
|
|
845
845
|
const t = e.body;
|
|
846
|
-
return t.type === 2 ?
|
|
846
|
+
return t.type === 2 ? Cn(t) : t.cases.forEach((a) => Cn(a)), e;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Cn(e) {
|
|
849
849
|
if (e.items.length === 1) {
|
|
850
850
|
const t = e.items[0];
|
|
851
851
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -858,7 +858,7 @@ function Dn(e) {
|
|
|
858
858
|
t.push(n.value);
|
|
859
859
|
}
|
|
860
860
|
if (t.length === e.items.length) {
|
|
861
|
-
e.static =
|
|
861
|
+
e.static = ln(t);
|
|
862
862
|
for (let a = 0; a < e.items.length; a++) {
|
|
863
863
|
const n = e.items[a];
|
|
864
864
|
(n.type === 3 || n.type === 9) && delete n.value;
|
|
@@ -1059,7 +1059,7 @@ const yo = (e, t = {}) => {
|
|
|
1059
1059
|
breakLineCode: s,
|
|
1060
1060
|
needIndent: r
|
|
1061
1061
|
});
|
|
1062
|
-
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${
|
|
1062
|
+
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${ln(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(r), l.push("}"), delete e.helpers;
|
|
1063
1063
|
const { code: i, map: c } = l.context();
|
|
1064
1064
|
return {
|
|
1065
1065
|
ast: e,
|
|
@@ -1081,42 +1081,42 @@ function So() {
|
|
|
1081
1081
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1082
1082
|
}
|
|
1083
1083
|
function he(e) {
|
|
1084
|
-
return U(e) &&
|
|
1084
|
+
return U(e) && fn(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1086
|
+
const gs = ["b", "body"];
|
|
1087
1087
|
function To(e) {
|
|
1088
|
-
return xe(e,
|
|
1088
|
+
return xe(e, gs);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const hs = ["c", "cases"];
|
|
1091
1091
|
function Lo(e) {
|
|
1092
|
-
return xe(e,
|
|
1092
|
+
return xe(e, hs, []);
|
|
1093
1093
|
}
|
|
1094
|
-
const
|
|
1094
|
+
const Es = ["s", "static"];
|
|
1095
1095
|
function Oo(e) {
|
|
1096
|
-
return xe(e,
|
|
1096
|
+
return xe(e, Es);
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1098
|
+
const vs = ["i", "items"];
|
|
1099
1099
|
function Ao(e) {
|
|
1100
|
-
return xe(e,
|
|
1100
|
+
return xe(e, vs, []);
|
|
1101
1101
|
}
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1104
|
-
return xe(e,
|
|
1102
|
+
const bs = ["t", "type"];
|
|
1103
|
+
function fn(e) {
|
|
1104
|
+
return xe(e, bs);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const Is = ["v", "value"];
|
|
1107
1107
|
function Kt(e, t) {
|
|
1108
|
-
const a = xe(e,
|
|
1108
|
+
const a = xe(e, Is);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
1111
|
throw St(t);
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const ys = ["m", "modifier"];
|
|
1114
1114
|
function Po(e) {
|
|
1115
|
-
return xe(e,
|
|
1115
|
+
return xe(e, ys);
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const Ns = ["k", "key"];
|
|
1118
1118
|
function Ro(e) {
|
|
1119
|
-
const t = xe(e,
|
|
1119
|
+
const t = xe(e, Ns);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
1122
|
throw St(
|
|
@@ -1132,15 +1132,15 @@ function xe(e, t, a) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
return a;
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1136
|
-
..._s,
|
|
1135
|
+
const Ss = [
|
|
1137
1136
|
...gs,
|
|
1138
1137
|
...hs,
|
|
1139
1138
|
...Es,
|
|
1139
|
+
...vs,
|
|
1140
|
+
...Ns,
|
|
1140
1141
|
...ys,
|
|
1141
1142
|
...Is,
|
|
1142
|
-
...bs
|
|
1143
|
-
...vs
|
|
1143
|
+
...bs
|
|
1144
1144
|
];
|
|
1145
1145
|
function St(e) {
|
|
1146
1146
|
return new Error(`unhandled node type: ${e}`);
|
|
@@ -1155,26 +1155,26 @@ function wo(e, t) {
|
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
1158
|
-
if (
|
|
1158
|
+
if (fn(a) === 1) {
|
|
1159
1159
|
const r = Lo(a);
|
|
1160
1160
|
return e.plural(r.reduce((o, l) => [
|
|
1161
1161
|
...o,
|
|
1162
|
-
|
|
1162
|
+
Fn(e, l)
|
|
1163
1163
|
], []));
|
|
1164
1164
|
} else
|
|
1165
|
-
return
|
|
1165
|
+
return Fn(e, a);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Fn(e, t) {
|
|
1168
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 = Ao(t).reduce((s, r) => [...s,
|
|
1172
|
+
const n = Ao(t).reduce((s, r) => [...s, Wa(e, r)], []);
|
|
1173
1173
|
return e.normalize(n);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const a =
|
|
1176
|
+
function Wa(e, t) {
|
|
1177
|
+
const a = fn(t);
|
|
1178
1178
|
switch (a) {
|
|
1179
1179
|
case 3:
|
|
1180
1180
|
return Kt(t, a);
|
|
@@ -1198,7 +1198,7 @@ function Ha(e, t) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
1200
|
const n = t, s = Po(n), r = Ro(n);
|
|
1201
|
-
return e.linked(
|
|
1201
|
+
return e.linked(Wa(e, r), s ? Wa(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
1204
1204
|
return Kt(t, a);
|
|
@@ -1284,11 +1284,11 @@ const Wo = {
|
|
|
1284
1284
|
[oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1285
1285
|
[oe.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1288
|
-
return t.locale != null ?
|
|
1287
|
+
function dn(e, t) {
|
|
1288
|
+
return t.locale != null ? Mn(t.locale) : Mn(e.locale);
|
|
1289
1289
|
}
|
|
1290
1290
|
let Fa;
|
|
1291
|
-
function
|
|
1291
|
+
function Mn(e) {
|
|
1292
1292
|
if (A(e))
|
|
1293
1293
|
return e;
|
|
1294
1294
|
if (G(e)) {
|
|
@@ -1310,7 +1310,7 @@ function Go(e, t, a) {
|
|
|
1310
1310
|
...J(t) ? t : U(t) ? Object.keys(t) : A(t) ? [t] : [a]
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ts(e, t, a) {
|
|
1314
1314
|
const n = A(a) ? a : Lt, s = e;
|
|
1315
1315
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1316
1316
|
let r = s.__localeChainCache.get(n);
|
|
@@ -1318,13 +1318,13 @@ function Ss(e, t, a) {
|
|
|
1318
1318
|
r = [];
|
|
1319
1319
|
let o = [a];
|
|
1320
1320
|
for (; J(o); )
|
|
1321
|
-
o =
|
|
1321
|
+
o = Un(r, o, t);
|
|
1322
1322
|
const l = J(t) || !F(t) ? t : t.default ? t.default : null;
|
|
1323
|
-
o = A(l) ? [l] : l, J(o) &&
|
|
1323
|
+
o = A(l) ? [l] : l, J(o) && Un(r, o, !1), s.__localeChainCache.set(n, r);
|
|
1324
1324
|
}
|
|
1325
1325
|
return r;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Un(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];
|
|
@@ -1616,21 +1616,21 @@ function qo(e) {
|
|
|
1616
1616
|
return t;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
const
|
|
1619
|
+
const xn = /* @__PURE__ */ new Map();
|
|
1620
1620
|
function zo(e, t) {
|
|
1621
1621
|
return U(e) ? e[t] : null;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Zo(e, t) {
|
|
1624
1624
|
if (!U(e))
|
|
1625
1625
|
return null;
|
|
1626
|
-
let a =
|
|
1627
|
-
if (a || (a = qo(t), a &&
|
|
1626
|
+
let a = xn.get(t);
|
|
1627
|
+
if (a || (a = qo(t), a && xn.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 (Ss.includes(o) && he(s))
|
|
1634
1634
|
return null;
|
|
1635
1635
|
const l = s[o];
|
|
1636
1636
|
if (l === void 0 || G(s))
|
|
@@ -1659,43 +1659,43 @@ const ce = {
|
|
|
1659
1659
|
function Qe(e, ...t) {
|
|
1660
1660
|
return na(tl[e], ...t);
|
|
1661
1661
|
}
|
|
1662
|
-
const al = "11.2.7", ra = -1, Lt = "en-US", Xt = "",
|
|
1662
|
+
const al = "11.2.7", ra = -1, Lt = "en-US", Xt = "", Vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1663
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
|
-
capitalize: (e, t) => t === "text" && A(e) ?
|
|
1667
|
+
capitalize: (e, t) => t === "text" && A(e) ? Vn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? Vn(e.children) : e
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
let Ts;
|
|
1671
|
-
function sl(e) {
|
|
1672
|
-
Ts = e;
|
|
1673
|
-
}
|
|
1674
1670
|
let Ls;
|
|
1675
|
-
function
|
|
1671
|
+
function sl(e) {
|
|
1676
1672
|
Ls = e;
|
|
1677
1673
|
}
|
|
1678
1674
|
let Os;
|
|
1679
|
-
function
|
|
1675
|
+
function rl(e) {
|
|
1680
1676
|
Os = e;
|
|
1681
1677
|
}
|
|
1682
|
-
let As
|
|
1683
|
-
|
|
1678
|
+
let As;
|
|
1679
|
+
function ol(e) {
|
|
1684
1680
|
As = e;
|
|
1685
|
-
}
|
|
1681
|
+
}
|
|
1686
1682
|
let Ps = null;
|
|
1687
|
-
const
|
|
1683
|
+
const ll = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1688
1684
|
Ps = e;
|
|
1689
|
-
},
|
|
1690
|
-
let
|
|
1685
|
+
}, il = /* @__NO_SIDE_EFFECTS__ */ () => Ps;
|
|
1686
|
+
let Rs = null;
|
|
1687
|
+
const $n = (e) => {
|
|
1688
|
+
Rs = e;
|
|
1689
|
+
}, cl = () => Rs;
|
|
1690
|
+
let Hn = 0;
|
|
1691
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 : Lt, s = G(n) ? Lt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler :
|
|
1693
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) &&
|
|
1694
|
-
const b = G(e.messageResolver) ? e.messageResolver :
|
|
1695
|
-
|
|
1692
|
+
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : al, n = A(e.locale) || G(e.locale) ? e.locale : Lt, s = G(n) ? Lt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ls;
|
|
1693
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && rn(Qe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
|
+
const b = G(e.messageResolver) ? e.messageResolver : Os || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : As || Go, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
|
|
1695
|
+
Hn++;
|
|
1696
1696
|
const Q = {
|
|
1697
1697
|
version: a,
|
|
1698
|
-
cid:
|
|
1698
|
+
cid: Hn,
|
|
1699
1699
|
locale: n,
|
|
1700
1700
|
fallbackLocale: r,
|
|
1701
1701
|
messages: o,
|
|
@@ -1723,10 +1723,10 @@ 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 ws(e, t) {
|
|
1727
1727
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function mn(e, t, a, n, s) {
|
|
1730
1730
|
const { missing: r, onWarn: o } = e;
|
|
1731
1731
|
if (process.env.NODE_ENV !== "production") {
|
|
1732
1732
|
const l = e.__v_emitter;
|
|
@@ -1741,13 +1741,13 @@ 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" && ws(n, t) && o(Qe(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
|
|
1745
1745
|
}
|
|
1746
1746
|
function vt(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 ks(e, t) {
|
|
1751
1751
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1752
1752
|
}
|
|
1753
1753
|
function fl(e, t) {
|
|
@@ -1755,19 +1755,19 @@ function fl(e, t) {
|
|
|
1755
1755
|
if (a === -1)
|
|
1756
1756
|
return !1;
|
|
1757
1757
|
for (let n = a + 1; n < t.length; n++)
|
|
1758
|
-
if (
|
|
1758
|
+
if (ks(e, t[n]))
|
|
1759
1759
|
return !0;
|
|
1760
1760
|
return !1;
|
|
1761
1761
|
}
|
|
1762
|
-
const
|
|
1763
|
-
dateTimeFormat:
|
|
1764
|
-
numberFormat:
|
|
1762
|
+
const Wn = typeof Intl < "u", Ds = {
|
|
1763
|
+
dateTimeFormat: Wn && typeof Intl.DateTimeFormat < "u",
|
|
1764
|
+
numberFormat: Wn && typeof Intl.NumberFormat < "u"
|
|
1765
1765
|
};
|
|
1766
|
-
function
|
|
1766
|
+
function Gn(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" && !Ds.dateTimeFormat)
|
|
1769
1769
|
return r(Qe(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
-
const [i, c, m, g] =
|
|
1770
|
+
const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = dn(e, m), O = o(
|
|
1771
1771
|
e,
|
|
1772
1772
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1773
1773
|
s,
|
|
@@ -1793,7 +1793,7 @@ function Wn(e, ...t) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
if (d = a[_] || {}, I = d[i], F(I))
|
|
1795
1795
|
break;
|
|
1796
|
-
|
|
1796
|
+
mn(e, i, _, p, L), E = b;
|
|
1797
1797
|
}
|
|
1798
1798
|
if (!F(I) || !A(_))
|
|
1799
1799
|
return n ? ra : i;
|
|
@@ -1802,7 +1802,7 @@ function Wn(e, ...t) {
|
|
|
1802
1802
|
let C = l.get(v);
|
|
1803
1803
|
return C || (C = new Intl.DateTimeFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1804
1804
|
}
|
|
1805
|
-
const
|
|
1805
|
+
const Cs = [
|
|
1806
1806
|
"localeMatcher",
|
|
1807
1807
|
"weekday",
|
|
1808
1808
|
"era",
|
|
@@ -1824,7 +1824,7 @@ const Ds = [
|
|
|
1824
1824
|
"hourCycle",
|
|
1825
1825
|
"fractionalSecondDigits"
|
|
1826
1826
|
];
|
|
1827
|
-
function
|
|
1827
|
+
function Ga(...e) {
|
|
1828
1828
|
const [t, a, n, s] = e, r = W();
|
|
1829
1829
|
let o = W(), l;
|
|
1830
1830
|
if (A(t)) {
|
|
@@ -1847,21 +1847,21 @@ 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
|
+
Cs.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
|
-
function
|
|
1853
|
+
function Kn(e, t, a) {
|
|
1854
1854
|
const n = e;
|
|
1855
1855
|
for (const s in a) {
|
|
1856
1856
|
const r = `${t}__${s}`;
|
|
1857
1857
|
n.__datetimeFormatters.has(r) && n.__datetimeFormatters.delete(r);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Yn(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" && !Ds.numberFormat)
|
|
1863
1863
|
return r(Qe(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
-
const [i, c, m, g] =
|
|
1864
|
+
const [i, c, m, g] = Ka(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = dn(e, m), O = o(
|
|
1865
1865
|
e,
|
|
1866
1866
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1867
1867
|
s,
|
|
@@ -1887,7 +1887,7 @@ function Kn(e, ...t) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
if (d = a[_] || {}, I = d[i], F(I))
|
|
1889
1889
|
break;
|
|
1890
|
-
|
|
1890
|
+
mn(e, i, _, p, L), E = b;
|
|
1891
1891
|
}
|
|
1892
1892
|
if (!F(I) || !A(_))
|
|
1893
1893
|
return n ? ra : i;
|
|
@@ -1896,7 +1896,7 @@ function Kn(e, ...t) {
|
|
|
1896
1896
|
let C = l.get(v);
|
|
1897
1897
|
return C || (C = new Intl.NumberFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1898
1898
|
}
|
|
1899
|
-
const
|
|
1899
|
+
const Fs = [
|
|
1900
1900
|
"localeMatcher",
|
|
1901
1901
|
"style",
|
|
1902
1902
|
"currency",
|
|
@@ -1918,25 +1918,25 @@ const Cs = [
|
|
|
1918
1918
|
"roundingIncrement",
|
|
1919
1919
|
"trailingZeroDisplay"
|
|
1920
1920
|
];
|
|
1921
|
-
function
|
|
1921
|
+
function Ka(...e) {
|
|
1922
1922
|
const [t, a, n, s] = e, r = W();
|
|
1923
1923
|
let o = W();
|
|
1924
1924
|
if (!ee(t))
|
|
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
|
+
Fs.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
|
-
function
|
|
1931
|
+
function Bn(e, t, a) {
|
|
1932
1932
|
const n = e;
|
|
1933
1933
|
for (const s in a) {
|
|
1934
1934
|
const r = `${t}__${s}`;
|
|
1935
1935
|
n.__numberFormatters.has(r) && n.__numberFormatters.delete(r);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" :
|
|
1939
|
-
function
|
|
1938
|
+
const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" : ln(e), gl = Br;
|
|
1939
|
+
function jn(e, t) {
|
|
1940
1940
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1941
1941
|
}
|
|
1942
1942
|
function hl(e) {
|
|
@@ -1947,7 +1947,7 @@ function El(e, t) {
|
|
|
1947
1947
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1948
1948
|
}
|
|
1949
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] :
|
|
1950
|
+
const t = e.locale, a = hl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : jn, s = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? jn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
|
|
1951
1951
|
ee(e.pluralIndex) && El(a, i);
|
|
1952
1952
|
const c = (d) => i[d];
|
|
1953
1953
|
function m(d, _) {
|
|
@@ -1976,15 +1976,15 @@ function vl(e = {}) {
|
|
|
1976
1976
|
};
|
|
1977
1977
|
return O;
|
|
1978
1978
|
}
|
|
1979
|
-
const
|
|
1980
|
-
function
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] =
|
|
1979
|
+
const Jn = () => "", pe = (e) => G(e);
|
|
1980
|
+
function Qn(e, ...t) {
|
|
1981
|
+
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ya(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, y = !!c.resolvedMessage, R = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = dn(e, c);
|
|
1982
1982
|
p && bl(c);
|
|
1983
1983
|
let [d, _, I] = y ? [
|
|
1984
1984
|
i,
|
|
1985
1985
|
O,
|
|
1986
1986
|
l[O] || W()
|
|
1987
|
-
] :
|
|
1987
|
+
] : Ms(e, i, O, o, g, m), E = d, b = i;
|
|
1988
1988
|
if (!y && !(A(E) || he(E) || pe(E)) && S && (E = R, b = E), !y && (!(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,7 +1992,7 @@ 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 : Us(e, i, _, E, b, v);
|
|
1996
1996
|
if (L)
|
|
1997
1997
|
return E;
|
|
1998
1998
|
const M = Sl(e, _, I, c), K = vl(M), Ee = Il(e, C, K);
|
|
@@ -2010,16 +2010,16 @@ function Jn(e, ...t) {
|
|
|
2010
2010
|
return Q;
|
|
2011
2011
|
}
|
|
2012
2012
|
function bl(e) {
|
|
2013
|
-
J(e.list) ? e.list = e.list.map((t) => A(t) ?
|
|
2014
|
-
A(e.named[t]) && (e.named[t] =
|
|
2013
|
+
J(e.list) ? e.list = e.list.map((t) => A(t) ? Pn(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2014
|
+
A(e.named[t]) && (e.named[t] = Pn(e.named[t]));
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Ms(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, y = 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 && !ks(a, p) && oa(s, t) && l(Qe(ce.FALLBACK_TO_TRANSLATE, {
|
|
2023
2023
|
key: t,
|
|
2024
2024
|
target: p
|
|
2025
2025
|
})), process.env.NODE_ENV !== "production" && a !== p) {
|
|
@@ -2047,7 +2047,7 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2047
2047
|
if (A(y) || he(y) || pe(y))
|
|
2048
2048
|
break;
|
|
2049
2049
|
if (!fl(p, m)) {
|
|
2050
|
-
const b =
|
|
2050
|
+
const b = mn(
|
|
2051
2051
|
e,
|
|
2052
2052
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2053
2053
|
t,
|
|
@@ -2061,7 +2061,7 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
return [y, p, g];
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Us(e, t, a, n, s, r) {
|
|
2065
2065
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2066
2066
|
if (pe(n)) {
|
|
2067
2067
|
const p = n;
|
|
@@ -2100,7 +2100,7 @@ function Il(e, t, a) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
return o;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ya(...e) {
|
|
2104
2104
|
const [t, a, n] = e, s = W();
|
|
2105
2105
|
if (!A(t) && !ee(t) && !pe(t) && !he(t))
|
|
2106
2106
|
throw we(oe.INVALID_ARGUMENT);
|
|
@@ -2143,7 +2143,7 @@ function Sl(e, t, a, n) {
|
|
|
2143
2143
|
messages: (y, R) => {
|
|
2144
2144
|
let S = o(a, y);
|
|
2145
2145
|
if (S == null && (m || R)) {
|
|
2146
|
-
const [, , O] =
|
|
2146
|
+
const [, , O] = Ms(
|
|
2147
2147
|
m || e,
|
|
2148
2148
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2149
2149
|
y,
|
|
@@ -2156,30 +2156,30 @@ function Sl(e, t, a, n) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
if (A(S) || he(S)) {
|
|
2158
2158
|
let O = !1;
|
|
2159
|
-
const _ =
|
|
2159
|
+
const _ = Us(e, y, t, S, y, () => {
|
|
2160
2160
|
O = !0;
|
|
2161
2161
|
});
|
|
2162
|
-
return O ?
|
|
2163
|
-
} else return pe(S) ? S :
|
|
2162
|
+
return O ? Jn : _;
|
|
2163
|
+
} else return pe(S) ? S : Jn;
|
|
2164
2164
|
}
|
|
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
2168
|
So();
|
|
2169
2169
|
function Tl() {
|
|
2170
|
-
return
|
|
2170
|
+
return xs().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function xs() {
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
const Ll = typeof Proxy == "function", Ol = "devtools-plugin:setup", Al = "plugin:settings:set";
|
|
2176
|
-
let et,
|
|
2176
|
+
let et, Ba;
|
|
2177
2177
|
function Pl() {
|
|
2178
2178
|
var e;
|
|
2179
|
-
return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0,
|
|
2179
|
+
return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0, Ba = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (et = !0, Ba = globalThis.perf_hooks.performance) : et = !1), et;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Rl() {
|
|
2182
|
-
return Pl() ?
|
|
2182
|
+
return Pl() ? Ba.now() : Date.now();
|
|
2183
2183
|
}
|
|
2184
2184
|
class wl {
|
|
2185
2185
|
constructor(t, a) {
|
|
@@ -2244,7 +2244,7 @@ class wl {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
function kl(e, t) {
|
|
2247
|
-
const a = e, n =
|
|
2247
|
+
const a = e, n = xs(), s = Tl(), r = Ll && a.enableEarlyProxy;
|
|
2248
2248
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2249
2249
|
s.emit(Ol, e, t);
|
|
2250
2250
|
else {
|
|
@@ -2302,7 +2302,7 @@ const Fl = {
|
|
|
2302
2302
|
[Y.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2303
2303
|
[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2304
2304
|
[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2305
|
-
},
|
|
2305
|
+
}, ja = /* @__PURE__ */ Oe("__translateVNode"), Ja = /* @__PURE__ */ Oe("__datetimeParts"), Qa = /* @__PURE__ */ Oe("__numberParts"), Xe = /* @__PURE__ */ Oe("__enableEmitter"), Ot = /* @__PURE__ */ Oe("__disableEmitter"), Vs = Oe("__setPluralRules"), $s = /* @__PURE__ */ Oe("__injectWithOption"), Xa = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
2306
|
FALLBACK_TO_ROOT: el,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2356,14 +2356,14 @@ function At(e) {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
s = s[a[o]];
|
|
2358
2358
|
}
|
|
2359
|
-
if (r || (he(s) ?
|
|
2359
|
+
if (r || (he(s) ? Ss.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) && At(o);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function pn(e, t) {
|
|
2367
2367
|
const { messages: a, __i18n: n, messageResolver: s, flatJson: r } = t, o = F(a) ? a : J(n) ? W() : { [e]: W() };
|
|
2368
2368
|
if (J(n) && n.forEach((l) => {
|
|
2369
2369
|
if ("locale" in l && "resource" in l) {
|
|
@@ -2376,12 +2376,12 @@ function mn(e, t) {
|
|
|
2376
2376
|
be(o, l) && At(o[l]);
|
|
2377
2377
|
return o;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function Hs(e) {
|
|
2380
2380
|
return e.type;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function Ws(e, t, a) {
|
|
2383
2383
|
let n = U(t.messages) ? t.messages : W();
|
|
2384
|
-
"__i18nGlobal" in a && (n =
|
|
2384
|
+
"__i18nGlobal" in a && (n = pn(e.locale.value, {
|
|
2385
2385
|
messages: n,
|
|
2386
2386
|
__i18n: a.__i18nGlobal
|
|
2387
2387
|
}));
|
|
@@ -2404,24 +2404,24 @@ function Hs(e, t, a) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2408
|
-
return Be(
|
|
2407
|
+
function Xn(e) {
|
|
2408
|
+
return Be(Er, null, e, 0);
|
|
2409
2409
|
}
|
|
2410
2410
|
function rt() {
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
2412
|
return e in wa ? wa[e] : wa.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
|
-
const
|
|
2415
|
-
let
|
|
2416
|
-
function
|
|
2414
|
+
const qn = "__INTLIFY_META__", zn = () => [], Ul = () => !1;
|
|
2415
|
+
let Zn = 0;
|
|
2416
|
+
function es(e) {
|
|
2417
2417
|
return ((t, a, n, s) => e(a, n, rt() || void 0, s));
|
|
2418
2418
|
}
|
|
2419
2419
|
const xl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2420
2420
|
const e = rt();
|
|
2421
2421
|
let t = null;
|
|
2422
|
-
return e && (t =
|
|
2422
|
+
return e && (t = Hs(e)[qn]) ? { [qn]: t } : null;
|
|
2423
2423
|
};
|
|
2424
|
-
function
|
|
2424
|
+
function _n(e = {}) {
|
|
2425
2425
|
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : De;
|
|
2426
2426
|
let o = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2427
2427
|
const l = r(
|
|
@@ -2430,12 +2430,12 @@ function pn(e = {}) {
|
|
|
2430
2430
|
), i = r(
|
|
2431
2431
|
// prettier-ignore
|
|
2432
2432
|
t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2433
|
-
), c = r(
|
|
2434
|
-
let p = t ? t.missingWarn : x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = t ? t.fallbackWarn : x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ?
|
|
2433
|
+
), c = r(pn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2434
|
+
let p = t ? t.missingWarn : x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = t ? t.fallbackWarn : x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? es(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2435
2435
|
const b = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
2436
2436
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2437
2437
|
v = (() => {
|
|
2438
|
-
n &&
|
|
2438
|
+
n && $n(null);
|
|
2439
2439
|
const h = {
|
|
2440
2440
|
version: Dl,
|
|
2441
2441
|
locale: l.value,
|
|
@@ -2457,7 +2457,7 @@ function pn(e = {}) {
|
|
|
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
2459
|
const T = ul(h);
|
|
2460
|
-
return n &&
|
|
2460
|
+
return n && $n(T), T;
|
|
2461
2461
|
})(), vt(v, l.value, i.value);
|
|
2462
2462
|
function M() {
|
|
2463
2463
|
return [
|
|
@@ -2489,7 +2489,7 @@ function pn(e = {}) {
|
|
|
2489
2489
|
return O;
|
|
2490
2490
|
}
|
|
2491
2491
|
function ba(h) {
|
|
2492
|
-
h !== null && (d =
|
|
2492
|
+
h !== null && (d = es(h)), O = h, v.missing = d;
|
|
2493
2493
|
}
|
|
2494
2494
|
function Ia(h, T) {
|
|
2495
2495
|
return h !== "translate" || !T.resolvedMessage;
|
|
@@ -2504,13 +2504,13 @@ function pn(e = {}) {
|
|
|
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 [We,
|
|
2508
|
-
if (process.env.NODE_ENV !== "production" && t && A(We) && Ia(H,
|
|
2507
|
+
const [We, mr] = T();
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && t && A(We) && Ia(H, mr) && (R && (oa(y, We) || ws(p, We)) && Le(ct(_e.FALLBACK_TO_ROOT, {
|
|
2509
2509
|
key: We,
|
|
2510
2510
|
type: H
|
|
2511
2511
|
})), process.env.NODE_ENV !== "production")) {
|
|
2512
|
-
const { __v_emitter:
|
|
2513
|
-
|
|
2512
|
+
const { __v_emitter: Sn } = v;
|
|
2513
|
+
Sn && R && Sn.emit("fallback", {
|
|
2514
2514
|
type: H,
|
|
2515
2515
|
key: We,
|
|
2516
2516
|
to: "global",
|
|
@@ -2525,7 +2525,7 @@ function pn(e = {}) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
2527
|
function _t(...h) {
|
|
2528
|
-
return Ae((T) => Reflect.apply(
|
|
2528
|
+
return Ae((T) => Reflect.apply(Qn, null, [T, ...h]), () => Ya(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
|
|
2529
2529
|
}
|
|
2530
2530
|
function ya(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
@@ -2534,13 +2534,13 @@ function pn(e = {}) {
|
|
|
2534
2534
|
return _t(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2535
2535
|
}
|
|
2536
2536
|
function Na(...h) {
|
|
2537
|
-
return Ae((T) => Reflect.apply(
|
|
2537
|
+
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () => Ga(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2538
2538
|
}
|
|
2539
2539
|
function Sa(...h) {
|
|
2540
|
-
return Ae((T) => Reflect.apply(
|
|
2540
|
+
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ka(...h), "number format", (T) => Reflect.apply(T.n, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2541
2541
|
}
|
|
2542
2542
|
function Ta(h) {
|
|
2543
|
-
return h.map((T) => A(T) || ee(T) || x(T) ?
|
|
2543
|
+
return h.map((T) => A(T) || ee(T) || x(T) ? Xn(String(T)) : T);
|
|
2544
2544
|
}
|
|
2545
2545
|
const La = {
|
|
2546
2546
|
normalize: Ta,
|
|
@@ -2552,18 +2552,18 @@ function pn(e = {}) {
|
|
|
2552
2552
|
let H;
|
|
2553
2553
|
const z = T;
|
|
2554
2554
|
try {
|
|
2555
|
-
z.processor = La, H = Reflect.apply(
|
|
2555
|
+
z.processor = La, H = Reflect.apply(Qn, null, [z, ...h]);
|
|
2556
2556
|
} finally {
|
|
2557
2557
|
z.processor = null;
|
|
2558
2558
|
}
|
|
2559
2559
|
return H;
|
|
2560
|
-
}, () =>
|
|
2560
|
+
}, () => Ya(...h), "translate", (T) => T[ja](...h), (T) => [Xn(T)], (T) => J(T));
|
|
2561
2561
|
}
|
|
2562
2562
|
function Oa(...h) {
|
|
2563
|
-
return Ae((T) => Reflect.apply(
|
|
2563
|
+
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ka(...h), "number format", (T) => T[Qa](...h), zn, (T) => A(T) || J(T));
|
|
2564
2564
|
}
|
|
2565
2565
|
function $t(...h) {
|
|
2566
|
-
return Ae((T) => Reflect.apply(
|
|
2566
|
+
return Ae((T) => Reflect.apply(Gn, null, [T, ...h]), () => Ga(...h), "datetime format", (T) => T[Ja](...h), zn, (T) => A(T) || J(T));
|
|
2567
2567
|
}
|
|
2568
2568
|
function Aa(h) {
|
|
2569
2569
|
L = h, v.pluralRules = L;
|
|
@@ -2578,7 +2578,7 @@ function pn(e = {}) {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
function gt(h) {
|
|
2580
2580
|
let T = null;
|
|
2581
|
-
const H =
|
|
2581
|
+
const H = Ts(v, i.value, l.value);
|
|
2582
2582
|
for (let z = 0; z < H.length; z++) {
|
|
2583
2583
|
const He = c.value[H[z]] || {}, Ht = v.messageResolver(He, h);
|
|
2584
2584
|
if (Ht != null) {
|
|
@@ -2616,27 +2616,27 @@ function pn(e = {}) {
|
|
|
2616
2616
|
return m.value[h] || {};
|
|
2617
2617
|
}
|
|
2618
2618
|
function f(h, T) {
|
|
2619
|
-
m.value[h] = T, v.datetimeFormats = m.value,
|
|
2619
|
+
m.value[h] = T, v.datetimeFormats = m.value, Kn(v, h, T);
|
|
2620
2620
|
}
|
|
2621
2621
|
function N(h, T) {
|
|
2622
|
-
m.value[h] = te(m.value[h] || {}, T), v.datetimeFormats = m.value,
|
|
2622
|
+
m.value[h] = te(m.value[h] || {}, T), v.datetimeFormats = m.value, Kn(v, h, T);
|
|
2623
2623
|
}
|
|
2624
2624
|
function k(h) {
|
|
2625
2625
|
return g.value[h] || {};
|
|
2626
2626
|
}
|
|
2627
2627
|
function j(h, T) {
|
|
2628
|
-
g.value[h] = T, v.numberFormats = g.value,
|
|
2628
|
+
g.value[h] = T, v.numberFormats = g.value, Bn(v, h, T);
|
|
2629
2629
|
}
|
|
2630
2630
|
function q(h, T) {
|
|
2631
|
-
g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value,
|
|
2631
|
+
g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value, Bn(v, h, T);
|
|
2632
2632
|
}
|
|
2633
|
-
|
|
2633
|
+
Zn++, t && Ne && (B(t.locale, (h) => {
|
|
2634
2634
|
o && (l.value = h, v.locale = h, vt(v, l.value, i.value));
|
|
2635
2635
|
}), B(t.fallbackLocale, (h) => {
|
|
2636
2636
|
o && (i.value = h, v.fallbackLocale = h, vt(v, l.value, i.value));
|
|
2637
2637
|
}));
|
|
2638
2638
|
const V = {
|
|
2639
|
-
id:
|
|
2639
|
+
id: Zn,
|
|
2640
2640
|
locale: K,
|
|
2641
2641
|
fallbackLocale: Ee,
|
|
2642
2642
|
get inheritLocale() {
|
|
@@ -2702,15 +2702,15 @@ function pn(e = {}) {
|
|
|
2702
2702
|
setPostTranslationHandler: Ea,
|
|
2703
2703
|
getMissingHandler: va,
|
|
2704
2704
|
setMissingHandler: ba,
|
|
2705
|
-
[
|
|
2705
|
+
[Vs]: Aa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats = ze, V.numberFormats = ga, V.rt = ya, V.te = Pa, V.tm = ht, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[
|
|
2707
|
+
return V.datetimeFormats = ze, V.numberFormats = ga, V.rt = ya, V.te = Pa, V.tm = ht, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[$s] = a, V[ja] = Vt, V[Ja] = $t, V[Qa] = Oa, process.env.NODE_ENV !== "production" && (V[Xe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
2709
|
}, V[Ot] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const Gs = "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"
|
|
@@ -2719,7 +2719,7 @@ const Ws = "vue-i18n: composer properties", Ua = {
|
|
|
2719
2719
|
}, $l = {
|
|
2720
2720
|
"vue-i18n-timeline": 16764185
|
|
2721
2721
|
};
|
|
2722
|
-
let
|
|
2722
|
+
let qa;
|
|
2723
2723
|
async function Hl(e, t) {
|
|
2724
2724
|
return new Promise((a, n) => {
|
|
2725
2725
|
try {
|
|
@@ -2729,14 +2729,14 @@ async function Hl(e, t) {
|
|
|
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: [Gs],
|
|
2733
2733
|
app: e
|
|
2734
2734
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2735
2735
|
}, (s) => {
|
|
2736
|
-
|
|
2736
|
+
qa = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2737
2737
|
Wl(o, l, t);
|
|
2738
2738
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2739
|
-
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer &&
|
|
2739
|
+
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && ts(l, o.__VUE_I18N__) : ts(l, o.__VUE_I18N__));
|
|
2740
2740
|
}), s.addInspector({
|
|
2741
2741
|
id: "vue-i18n-resource-inspector",
|
|
2742
2742
|
label: Ua["vue-i18n-resource-inspector"],
|
|
@@ -2771,22 +2771,22 @@ async function Hl(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Ks(e) {
|
|
2775
2775
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2776
2776
|
}
|
|
2777
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 (${Ks(e)} Scope)`,
|
|
2782
2782
|
textColor: 0,
|
|
2783
2783
|
backgroundColor: 16764185
|
|
2784
2784
|
};
|
|
2785
2785
|
t.tags.push(s);
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
const a =
|
|
2788
|
+
function ts(e, t) {
|
|
2789
|
+
const a = Gs;
|
|
2790
2790
|
e.state.push({
|
|
2791
2791
|
type: a,
|
|
2792
2792
|
key: "locale",
|
|
@@ -2811,7 +2811,7 @@ function es(e, t) {
|
|
|
2811
2811
|
type: a,
|
|
2812
2812
|
key: "messages",
|
|
2813
2813
|
editable: !1,
|
|
2814
|
-
value:
|
|
2814
|
+
value: gn(t.messages.value)
|
|
2815
2815
|
}), e.state.push({
|
|
2816
2816
|
type: a,
|
|
2817
2817
|
key: "datetimeFormats",
|
|
@@ -2824,11 +2824,11 @@ function es(e, t) {
|
|
|
2824
2824
|
value: t.numberFormats.value
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function gn(e) {
|
|
2828
2828
|
const t = {};
|
|
2829
2829
|
return Object.keys(e).forEach((a) => {
|
|
2830
2830
|
const n = e[a];
|
|
2831
|
-
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] =
|
|
2831
|
+
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] = gn(n) : t[a] = n;
|
|
2832
2832
|
}), t;
|
|
2833
2833
|
}
|
|
2834
2834
|
const Gl = {
|
|
@@ -2861,7 +2861,7 @@ function jl(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: `${Ks(n)} Scope`
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
@@ -2876,7 +2876,7 @@ function Jl(e, t) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return a;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function Ys(e, t) {
|
|
2880
2880
|
if (e === "global")
|
|
2881
2881
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2882
2882
|
{
|
|
@@ -2885,7 +2885,7 @@ function Ks(e, t) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
2887
|
function Ql(e, t) {
|
|
2888
|
-
const a =
|
|
2888
|
+
const a = Ys(e.nodeId, t);
|
|
2889
2889
|
return a && (e.state = Xl(a)), null;
|
|
2890
2890
|
}
|
|
2891
2891
|
function Xl(e) {
|
|
@@ -2921,7 +2921,7 @@ function Xl(e) {
|
|
|
2921
2921
|
type: s,
|
|
2922
2922
|
key: "messages",
|
|
2923
2923
|
editable: !1,
|
|
2924
|
-
value:
|
|
2924
|
+
value: gn(e.messages.value)
|
|
2925
2925
|
}
|
|
2926
2926
|
];
|
|
2927
2927
|
t[s] = r;
|
|
@@ -2948,9 +2948,9 @@ function Xl(e) {
|
|
|
2948
2948
|
return t;
|
|
2949
2949
|
}
|
|
2950
2950
|
function Pt(e, t) {
|
|
2951
|
-
if (
|
|
2951
|
+
if (qa) {
|
|
2952
2952
|
let a;
|
|
2953
|
-
t && "groupId" in t && (a = t.groupId, delete t.groupId),
|
|
2953
|
+
t && "groupId" in t && (a = t.groupId, delete t.groupId), qa.addTimelineEvent({
|
|
2954
2954
|
layerId: "vue-i18n-timeline",
|
|
2955
2955
|
event: {
|
|
2956
2956
|
title: e,
|
|
@@ -2964,7 +2964,7 @@ function Pt(e, t) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
function ql(e, t) {
|
|
2967
|
-
const a =
|
|
2967
|
+
const a = Ys(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);
|
|
@@ -3005,8 +3005,8 @@ function zl(e) {
|
|
|
3005
3005
|
__injectWithOption: d
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const t =
|
|
3008
|
+
function za(e = {}) {
|
|
3009
|
+
const t = _n(zl(e)), { __extender: a } = e, n = {
|
|
3010
3010
|
// id
|
|
3011
3011
|
id: t.id,
|
|
3012
3012
|
// locale
|
|
@@ -3184,17 +3184,17 @@ function Zl(e, t, a) {
|
|
|
3184
3184
|
if (s.i18n) {
|
|
3185
3185
|
const r = s.i18n;
|
|
3186
3186
|
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3187
|
-
this.$i18n =
|
|
3187
|
+
this.$i18n = as(e, r);
|
|
3188
3188
|
else {
|
|
3189
|
-
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n =
|
|
3189
|
+
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n = za(r);
|
|
3190
3190
|
const o = this.$i18n;
|
|
3191
3191
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3192
3192
|
}
|
|
3193
3193
|
} else if (s.__i18n)
|
|
3194
3194
|
if (this === this.$root)
|
|
3195
|
-
this.$i18n =
|
|
3195
|
+
this.$i18n = as(e, s);
|
|
3196
3196
|
else {
|
|
3197
|
-
this.$i18n =
|
|
3197
|
+
this.$i18n = za({
|
|
3198
3198
|
__i18n: s.__i18n,
|
|
3199
3199
|
__injectWithOption: !0,
|
|
3200
3200
|
__extender: a.__vueI18nExtend,
|
|
@@ -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 && Ws(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) {
|
|
@@ -3214,7 +3214,7 @@ function Zl(e, t, a) {
|
|
|
3214
3214
|
return;
|
|
3215
3215
|
const s = this.$i18n;
|
|
3216
3216
|
n.__VUE_I18N__ = s.__composer;
|
|
3217
|
-
const r = this.__v_emitter =
|
|
3217
|
+
const r = this.__v_emitter = cn();
|
|
3218
3218
|
s.__enableEmitter && s.__enableEmitter(r), r.on("*", Pt);
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
@@ -3227,15 +3227,15 @@ function Zl(e, t, a) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
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[
|
|
3232
|
-
const a =
|
|
3230
|
+
function as(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[Vs](t.pluralizationRules || e.pluralizationRules);
|
|
3232
|
+
const a = pn(e.locale, {
|
|
3233
3233
|
messages: t.messages,
|
|
3234
3234
|
__i18n: t.__i18n
|
|
3235
3235
|
});
|
|
3236
3236
|
return Object.keys(a).forEach((n) => e.mergeLocaleMessage(n, a[n])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
3237
3237
|
}
|
|
3238
|
-
const
|
|
3238
|
+
const hn = {
|
|
3239
3239
|
tag: {
|
|
3240
3240
|
type: [String, Object]
|
|
3241
3241
|
},
|
|
@@ -3263,7 +3263,7 @@ function ei({ slots: e }, t) {
|
|
|
3263
3263
|
return s && (a[n] = s()), a;
|
|
3264
3264
|
}, W());
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3266
|
+
function Bs() {
|
|
3267
3267
|
return Ye;
|
|
3268
3268
|
}
|
|
3269
3269
|
const ti = /* @__PURE__ */ Ce({
|
|
@@ -3278,7 +3278,7 @@ const ti = /* @__PURE__ */ Ce({
|
|
|
3278
3278
|
type: [Number, String],
|
|
3279
3279
|
validator: (e) => ee(e) || !isNaN(e)
|
|
3280
3280
|
}
|
|
3281
|
-
},
|
|
3281
|
+
}, hn),
|
|
3282
3282
|
/* eslint-enable */
|
|
3283
3283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3284
3284
|
setup(e, t) {
|
|
@@ -3289,15 +3289,15 @@ const ti = /* @__PURE__ */ Ce({
|
|
|
3289
3289
|
return () => {
|
|
3290
3290
|
const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
|
|
3291
3291
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
|
|
3292
|
-
const l = ei(t, r), i = s[
|
|
3292
|
+
const l = ei(t, r), i = s[ja](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Bs();
|
|
3293
3293
|
return Ie(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
3296
|
-
}),
|
|
3296
|
+
}), ns = ti;
|
|
3297
3297
|
function ai(e) {
|
|
3298
3298
|
return J(e) && !A(e[0]);
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function js(e, t, a, n) {
|
|
3301
3301
|
const { slots: s, attrs: r } = t;
|
|
3302
3302
|
return () => {
|
|
3303
3303
|
const o = { part: !0 };
|
|
@@ -3309,7 +3309,7 @@ function Bs(e, t, a, n) {
|
|
|
3309
3309
|
const R = s[p.type], S = R ? R({ [p.type]: p.value, index: y, parts: i }) : [p.value];
|
|
3310
3310
|
return ai(S) && (S[0].key = `${p.type}-${y}`), 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 : Bs();
|
|
3313
3313
|
return Ie(g, m, c);
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
@@ -3324,7 +3324,7 @@ const ni = /* @__PURE__ */ Ce({
|
|
|
3324
3324
|
format: {
|
|
3325
3325
|
type: [String, Object]
|
|
3326
3326
|
}
|
|
3327
|
-
},
|
|
3327
|
+
}, hn),
|
|
3328
3328
|
/* eslint-enable */
|
|
3329
3329
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3330
3330
|
setup(e, t) {
|
|
@@ -3332,12 +3332,12 @@ const ni = /* @__PURE__ */ Ce({
|
|
|
3332
3332
|
useScope: e.scope,
|
|
3333
3333
|
__useComponent: !0
|
|
3334
3334
|
});
|
|
3335
|
-
return
|
|
3335
|
+
return js(e, t, Fs, (...n) => (
|
|
3336
3336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3337
|
-
a[
|
|
3337
|
+
a[Qa](...n)
|
|
3338
3338
|
));
|
|
3339
3339
|
}
|
|
3340
|
-
}),
|
|
3340
|
+
}), ss = ni;
|
|
3341
3341
|
function si(e, t) {
|
|
3342
3342
|
const a = e;
|
|
3343
3343
|
if (e.mode === "composition")
|
|
@@ -3349,13 +3349,13 @@ function si(e, t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
function ri(e) {
|
|
3351
3351
|
const t = (o) => {
|
|
3352
|
-
process.env.NODE_ENV !== "production" &&
|
|
3352
|
+
process.env.NODE_ENV !== "production" && rn(ct(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3353
3353
|
const { instance: l, value: i } = o;
|
|
3354
3354
|
if (!l || !l.$)
|
|
3355
3355
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3356
|
-
const c = si(e, l.$), m =
|
|
3356
|
+
const c = si(e, l.$), m = rs(i);
|
|
3357
3357
|
return [
|
|
3358
|
-
Reflect.apply(c.t, c, [...
|
|
3358
|
+
Reflect.apply(c.t, c, [...os(m)]),
|
|
3359
3359
|
c
|
|
3360
3360
|
];
|
|
3361
3361
|
};
|
|
@@ -3371,9 +3371,9 @@ function ri(e) {
|
|
|
3371
3371
|
},
|
|
3372
3372
|
beforeUpdate: (o, { value: l }) => {
|
|
3373
3373
|
if (o.__composer) {
|
|
3374
|
-
const i = o.__composer, c =
|
|
3374
|
+
const i = o.__composer, c = rs(l);
|
|
3375
3375
|
o.textContent = Reflect.apply(i.t, i, [
|
|
3376
|
-
...
|
|
3376
|
+
...os(c)
|
|
3377
3377
|
]);
|
|
3378
3378
|
}
|
|
3379
3379
|
},
|
|
@@ -3383,7 +3383,7 @@ function ri(e) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
};
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function rs(e) {
|
|
3387
3387
|
if (A(e))
|
|
3388
3388
|
return { path: e };
|
|
3389
3389
|
if (F(e)) {
|
|
@@ -3393,18 +3393,18 @@ function ss(e) {
|
|
|
3393
3393
|
} else
|
|
3394
3394
|
throw ue(Y.INVALID_VALUE);
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function os(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
3400
|
function oi(e, t, ...a) {
|
|
3401
3401
|
const n = F(a[0]) ? a[0] : {};
|
|
3402
|
-
(x(n.globalInstall) ? n.globalInstall : !0) && ([
|
|
3402
|
+
(x(n.globalInstall) ? n.globalInstall : !0) && ([ns.name, "I18nT"].forEach((r) => e.component(r, ns)), [ss.name, "I18nN"].forEach((r) => e.component(r, ss)), [is.name, "I18nD"].forEach((r) => e.component(r, is))), e.directive("t", ri(t));
|
|
3403
3403
|
}
|
|
3404
3404
|
const li = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
3405
|
function ii(e = {}) {
|
|
3406
3406
|
const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3407
|
+
process.env.NODE_ENV !== "production" && t && rn(ct(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
3408
|
const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ci(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3409
3409
|
function l(g) {
|
|
3410
3410
|
return n.get(g) || null;
|
|
@@ -3434,7 +3434,7 @@ function ii(e = {}) {
|
|
|
3434
3434
|
}, process.env.NODE_ENV !== "production") {
|
|
3435
3435
|
if (!await Hl(g, m))
|
|
3436
3436
|
throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3437
|
-
const O =
|
|
3437
|
+
const O = cn();
|
|
3438
3438
|
if (t) {
|
|
3439
3439
|
const d = r;
|
|
3440
3440
|
d.__enableEmitter && d.__enableEmitter(O);
|
|
@@ -3469,9 +3469,9 @@ 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 = ui(t), n = di(a), s =
|
|
3472
|
+
const a = ui(t), n = di(a), s = Hs(t), r = fi(e, s);
|
|
3473
3473
|
if (r === "global")
|
|
3474
|
-
return
|
|
3474
|
+
return Ws(n, e, s), n;
|
|
3475
3475
|
if (r === "parent") {
|
|
3476
3476
|
let i = mi(a, t, e.__useComponent);
|
|
3477
3477
|
return i == null && (process.env.NODE_ENV !== "production" && Le(ct(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
|
|
@@ -3480,13 +3480,13 @@ function la(e = {}) {
|
|
|
3480
3480
|
let l = o.__getInstance(t);
|
|
3481
3481
|
if (l == null) {
|
|
3482
3482
|
const i = te({}, e);
|
|
3483
|
-
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l =
|
|
3483
|
+
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = _n(i), o.__composerExtend && (l[Xa] = o.__composerExtend(l)), _i(o, t, l), o.__setInstance(t, l);
|
|
3484
3484
|
} else
|
|
3485
3485
|
process.env.NODE_ENV !== "production" && r === "local" && Le(ct(_e.DUPLICATE_USE_I18N_CALLING));
|
|
3486
3486
|
return l;
|
|
3487
3487
|
}
|
|
3488
3488
|
function ci(e, t) {
|
|
3489
|
-
const a =
|
|
3489
|
+
const a = gr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => za(e)) : a.run(() => _n(e));
|
|
3490
3490
|
if (n == null)
|
|
3491
3491
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3492
3492
|
return [a, n];
|
|
@@ -3513,7 +3513,7 @@ function mi(e, t, a = !1) {
|
|
|
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[$s] && (n = null));
|
|
3517
3517
|
}
|
|
3518
3518
|
if (n != null || s === r)
|
|
3519
3519
|
break;
|
|
@@ -3528,29 +3528,29 @@ function _i(e, t, a) {
|
|
|
3528
3528
|
let n = null;
|
|
3529
3529
|
wt(() => {
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
3531
|
-
t.__VUE_I18N__ = a, n =
|
|
3531
|
+
t.__VUE_I18N__ = a, n = cn();
|
|
3532
3532
|
const s = a;
|
|
3533
3533
|
s[Xe] && s[Xe](n), n.on("*", Pt);
|
|
3534
3534
|
}
|
|
3535
3535
|
}, t), dt(() => {
|
|
3536
3536
|
const s = a;
|
|
3537
3537
|
process.env.NODE_ENV !== "production" && (n && n.off("*", Pt), s[Ot] && s[Ot](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3538
|
-
const r = s[
|
|
3539
|
-
r && (r(), delete s[
|
|
3538
|
+
const r = s[Xa];
|
|
3539
|
+
r && (r(), delete s[Xa]);
|
|
3540
3540
|
}, t);
|
|
3541
3541
|
}
|
|
3542
3542
|
const gi = [
|
|
3543
3543
|
"locale",
|
|
3544
3544
|
"fallbackLocale",
|
|
3545
3545
|
"availableLocales"
|
|
3546
|
-
],
|
|
3546
|
+
], ls = ["t", "rt", "d", "n", "tm", "te"];
|
|
3547
3547
|
function hi(e, t) {
|
|
3548
3548
|
const a = /* @__PURE__ */ Object.create(null);
|
|
3549
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 = hr(r.value) ? {
|
|
3554
3554
|
get() {
|
|
3555
3555
|
return r.value.value;
|
|
3556
3556
|
},
|
|
@@ -3564,13 +3564,13 @@ function hi(e, t) {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
};
|
|
3566
3566
|
Object.defineProperty(a, s, o);
|
|
3567
|
-
}), e.config.globalProperties.$i18n = a,
|
|
3567
|
+
}), e.config.globalProperties.$i18n = a, ls.forEach((s) => {
|
|
3568
3568
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3569
3569
|
if (!r || !r.value)
|
|
3570
3570
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3571
3571
|
Object.defineProperty(e.config.globalProperties, `$${s}`, r);
|
|
3572
3572
|
}), () => {
|
|
3573
|
-
delete e.config.globalProperties.$i18n,
|
|
3573
|
+
delete e.config.globalProperties.$i18n, ls.forEach((s) => {
|
|
3574
3574
|
delete e.config.globalProperties[`$${s}`];
|
|
3575
3575
|
});
|
|
3576
3576
|
};
|
|
@@ -3586,7 +3586,7 @@ const Ei = /* @__PURE__ */ Ce({
|
|
|
3586
3586
|
format: {
|
|
3587
3587
|
type: [String, Object]
|
|
3588
3588
|
}
|
|
3589
|
-
},
|
|
3589
|
+
}, hn),
|
|
3590
3590
|
/* eslint-enable */
|
|
3591
3591
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3592
3592
|
setup(e, t) {
|
|
@@ -3594,16 +3594,16 @@ const Ei = /* @__PURE__ */ Ce({
|
|
|
3594
3594
|
useScope: e.scope,
|
|
3595
3595
|
__useComponent: !0
|
|
3596
3596
|
});
|
|
3597
|
-
return
|
|
3597
|
+
return js(e, t, Cs, (...n) => (
|
|
3598
3598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3599
|
-
a[
|
|
3599
|
+
a[Ja](...n)
|
|
3600
3600
|
));
|
|
3601
3601
|
}
|
|
3602
|
-
}),
|
|
3602
|
+
}), is = Ei;
|
|
3603
3603
|
Cl();
|
|
3604
3604
|
sl(Mo);
|
|
3605
3605
|
rl(Zo);
|
|
3606
|
-
ol(
|
|
3606
|
+
ol(Ts);
|
|
3607
3607
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3608
3608
|
const e = Ge();
|
|
3609
3609
|
e.__INTLIFY__ = !0, Uo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -3987,10 +3987,10 @@ function Rt(e, t) {
|
|
|
3987
3987
|
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = Rt(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
|
|
3988
3988
|
return a;
|
|
3989
3989
|
}
|
|
3990
|
-
let
|
|
3990
|
+
let Za = "/", qt = {
|
|
3991
3991
|
"zh-CN": "简体中文"
|
|
3992
3992
|
};
|
|
3993
|
-
const
|
|
3993
|
+
const Js = {};
|
|
3994
3994
|
function bi() {
|
|
3995
3995
|
return localStorage.getItem("language") || "zh-CN";
|
|
3996
3996
|
}
|
|
@@ -4001,7 +4001,7 @@ const me = ii({
|
|
|
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,
|
|
@@ -4011,7 +4011,7 @@ const me = ii({
|
|
|
4011
4011
|
});
|
|
4012
4012
|
async function Ii(e) {
|
|
4013
4013
|
try {
|
|
4014
|
-
const t = await fetch(`${
|
|
4014
|
+
const t = await fetch(`${Za}locales/${e}.json`);
|
|
4015
4015
|
if (!t.ok)
|
|
4016
4016
|
throw new Error(`Failed to load locale ${e}`);
|
|
4017
4017
|
return await t.json();
|
|
@@ -4019,7 +4019,7 @@ async function Ii(e) {
|
|
|
4019
4019
|
return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function Qs(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 Xs(e, t) {
|
|
4033
4033
|
try {
|
|
4034
4034
|
const a = {
|
|
4035
4035
|
messages: t,
|
|
@@ -4040,44 +4040,44 @@ function Qs(e, t) {
|
|
|
4040
4040
|
console.error(`Error caching locale ${e}:`, a);
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function en(e) {
|
|
4044
4044
|
if (e === null || typeof e != "object")
|
|
4045
4045
|
return e;
|
|
4046
4046
|
if (e instanceof Date)
|
|
4047
4047
|
return new Date(e.getTime());
|
|
4048
4048
|
if (e instanceof Array)
|
|
4049
|
-
return e.map((t) =>
|
|
4049
|
+
return e.map((t) => en(t));
|
|
4050
4050
|
if (typeof e == "object") {
|
|
4051
4051
|
const t = {};
|
|
4052
4052
|
for (const a in e)
|
|
4053
|
-
e.hasOwnProperty(a) && (t[a] =
|
|
4053
|
+
e.hasOwnProperty(a) && (t[a] = en(e[a]));
|
|
4054
4054
|
return t;
|
|
4055
4055
|
}
|
|
4056
4056
|
return e;
|
|
4057
4057
|
}
|
|
4058
|
-
async function
|
|
4059
|
-
const t =
|
|
4058
|
+
async function qs(e) {
|
|
4059
|
+
const t = en(vi), a = Qs(e);
|
|
4060
4060
|
let n = {};
|
|
4061
4061
|
try {
|
|
4062
4062
|
n = await Ii(e);
|
|
4063
4063
|
} catch {
|
|
4064
4064
|
}
|
|
4065
4065
|
let s = t;
|
|
4066
|
-
a && Object.keys(a).length > 0 && (s = Rt(s, a)), n && Object.keys(n).length > 0 && (s = Rt(s, n)),
|
|
4066
|
+
a && Object.keys(a).length > 0 && (s = Rt(s, a)), n && Object.keys(n).length > 0 && (s = Rt(s, n)), Js[e] = s, me.global.setLocaleMessage(e, s), Xs(e, s);
|
|
4067
4067
|
}
|
|
4068
4068
|
async function Ec(e = "/", t) {
|
|
4069
|
-
|
|
4069
|
+
Za = e;
|
|
4070
4070
|
try {
|
|
4071
|
-
const n = await fetch(`${
|
|
4071
|
+
const n = await fetch(`${Za}locales/languages.json`);
|
|
4072
4072
|
n.ok && (qt = await n.json());
|
|
4073
4073
|
} catch (n) {
|
|
4074
4074
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
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 qs(a);
|
|
4078
4078
|
}
|
|
4079
4079
|
async function vc(e) {
|
|
4080
|
-
await
|
|
4080
|
+
await qs(e), me.global.locale.value = e, localStorage.setItem("language", e);
|
|
4081
4081
|
}
|
|
4082
4082
|
function bc(e = "code") {
|
|
4083
4083
|
const t = me.global.locale.value;
|
|
@@ -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 = Qs(me.global.locale.value);
|
|
4099
4099
|
if (r) {
|
|
4100
4100
|
const o = Rt({}, r);
|
|
4101
|
-
me.global.setLocaleMessage(me.global.locale.value, o),
|
|
4101
|
+
me.global.setLocaleMessage(me.global.locale.value, o), Xs(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
|
|
4213
|
+
let tn = $, zs = "";
|
|
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",
|
|
@@ -4241,7 +4241,7 @@ const ia = {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
};
|
|
4243
4243
|
function yc() {
|
|
4244
|
-
|
|
4244
|
+
zs = 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 Ft = {
|
|
4247
4247
|
/**
|
|
@@ -4314,14 +4314,14 @@ const Ft = {
|
|
|
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,
|
|
4317
|
+
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, cs = "/login/", Jt = [], yi = (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
|
+
}, er = (e, t, a, n = "") => {
|
|
4323
4323
|
const s = n + (n ? "/" : "") + e.path;
|
|
4324
|
-
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) =>
|
|
4324
|
+
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => er(r, t, e, s));
|
|
4325
4325
|
}, ca = Fr({
|
|
4326
4326
|
history: Mr("/"),
|
|
4327
4327
|
routes: Jt
|
|
@@ -4352,7 +4352,7 @@ const Ft = {
|
|
|
4352
4352
|
ca.beforeEach((e, t, a) => {
|
|
4353
4353
|
var l;
|
|
4354
4354
|
const n = e;
|
|
4355
|
-
if (e.path.startsWith("/error/") || e.path.startsWith(
|
|
4355
|
+
if (e.path.startsWith("/error/") || e.path.startsWith(cs))
|
|
4356
4356
|
return a();
|
|
4357
4357
|
const s = n.meta, o = ((s == null ? void 0 : s.roles) ?? []).length > 0 || ((l = s == null ? void 0 : s.permission) == null ? void 0 : l.length);
|
|
4358
4358
|
if (e.path === "/") {
|
|
@@ -4374,7 +4374,7 @@ ca.beforeEach((e, t, a) => {
|
|
|
4374
4374
|
else {
|
|
4375
4375
|
const i = ye();
|
|
4376
4376
|
if (!i.isLogin)
|
|
4377
|
-
a({ path:
|
|
4377
|
+
a({ path: cs });
|
|
4378
4378
|
else {
|
|
4379
4379
|
if (!Me().menuLoaded) {
|
|
4380
4380
|
yt.value = {
|
|
@@ -4394,13 +4394,13 @@ const Si = (e) => {
|
|
|
4394
4394
|
yt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4395
4395
|
}
|
|
4396
4396
|
}, Ti = (e) => {
|
|
4397
|
-
const t =
|
|
4397
|
+
const t = En();
|
|
4398
4398
|
if (t.TabEnabled) {
|
|
4399
4399
|
if (Li(e.key, t.TabPanes))
|
|
4400
4400
|
return;
|
|
4401
4401
|
t.TabPanes.push(e);
|
|
4402
4402
|
}
|
|
4403
|
-
}, Li = (e, t) => t.find((a) => a.key === e),
|
|
4403
|
+
}, Li = (e, t) => t.find((a) => a.key === e), En = Dt("pageInfo", {
|
|
4404
4404
|
state: () => ({
|
|
4405
4405
|
TabActive: "",
|
|
4406
4406
|
TabPanes: [],
|
|
@@ -4573,17 +4573,17 @@ const Nt = {
|
|
|
4573
4573
|
return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
|
|
4574
4574
|
}
|
|
4575
4575
|
return !1;
|
|
4576
|
-
},
|
|
4576
|
+
}, tr = (e) => e.map((t) => {
|
|
4577
4577
|
const a = { ...t };
|
|
4578
|
-
return Ai(a) ? (a.children && (a.children =
|
|
4579
|
-
}).filter(Boolean),
|
|
4578
|
+
return Ai(a) ? (a.children && (a.children = tr(a.children)), a) : null;
|
|
4579
|
+
}).filter(Boolean), ar = (e, t = "") => {
|
|
4580
4580
|
for (const a of e) {
|
|
4581
4581
|
if (!a.children && !a.redirect) {
|
|
4582
4582
|
let n = t + a.path;
|
|
4583
4583
|
return n.startsWith("/") || (n = "/" + n), n;
|
|
4584
4584
|
}
|
|
4585
4585
|
if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
|
|
4586
|
-
const n =
|
|
4586
|
+
const n = ar(a.children, t + a.path + "/");
|
|
4587
4587
|
if (n)
|
|
4588
4588
|
return n;
|
|
4589
4589
|
}
|
|
@@ -4596,8 +4596,8 @@ const Nt = {
|
|
|
4596
4596
|
AppCode: "",
|
|
4597
4597
|
Version: "",
|
|
4598
4598
|
Host: "",
|
|
4599
|
-
Source:
|
|
4600
|
-
Action:
|
|
4599
|
+
Source: Ln.Manual,
|
|
4600
|
+
Action: Tn.App,
|
|
4601
4601
|
Path: "",
|
|
4602
4602
|
Icon: "",
|
|
4603
4603
|
Routes: [],
|
|
@@ -4625,6 +4625,7 @@ const Nt = {
|
|
|
4625
4625
|
return qe(Oi.appList, {
|
|
4626
4626
|
Query: {
|
|
4627
4627
|
AppCode: this.appInfo.AppCode,
|
|
4628
|
+
Host: $a.SITE_HOST,
|
|
4628
4629
|
Enabled: 1
|
|
4629
4630
|
}
|
|
4630
4631
|
}).then((e) => {
|
|
@@ -4666,7 +4667,7 @@ const Nt = {
|
|
|
4666
4667
|
flattenRoutes: {},
|
|
4667
4668
|
Routes: t ?? [],
|
|
4668
4669
|
defaultPage: ""
|
|
4669
|
-
}), !Fe() || !
|
|
4670
|
+
}), !Fe() || !Dr())) {
|
|
4670
4671
|
const n = ye();
|
|
4671
4672
|
ke.VITE_PERMISSION_MODE !== "none" && await n.getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes);
|
|
4672
4673
|
}
|
|
@@ -4684,13 +4685,13 @@ const Nt = {
|
|
|
4684
4685
|
};
|
|
4685
4686
|
const t = this.appInfo.flattenRoutes;
|
|
4686
4687
|
for (const a of e)
|
|
4687
|
-
|
|
4688
|
+
er(a, t, void 0);
|
|
4688
4689
|
if (Object.keys(t).forEach((a) => {
|
|
4689
4690
|
const n = t[a];
|
|
4690
4691
|
n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
|
|
4691
4692
|
}), ye().isLogin) {
|
|
4692
|
-
const a =
|
|
4693
|
-
if (yi(a), this.appInfo.defaultPage =
|
|
4693
|
+
const a = tr(this.appInfo.Routes);
|
|
4694
|
+
if (yi(a), this.appInfo.defaultPage = ar(a) || "", this.appInfo.defaultPage) {
|
|
4694
4695
|
if (this.menuLoaded = !0, Fe()) {
|
|
4695
4696
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4696
4697
|
Nt.mainAppPush(n);
|
|
@@ -4713,7 +4714,7 @@ const Nt = {
|
|
|
4713
4714
|
* @param path 路由地址
|
|
4714
4715
|
*/
|
|
4715
4716
|
push(e) {
|
|
4716
|
-
this.findRoute(e) &&
|
|
4717
|
+
this.findRoute(e) && En().setTabActive(e), vr(() => {
|
|
4717
4718
|
if (ca.push({ path: e }), Fe()) {
|
|
4718
4719
|
const a = this.formatRoute(e);
|
|
4719
4720
|
Nt.mainAppPush(a);
|
|
@@ -4773,8 +4774,8 @@ const Nt = {
|
|
|
4773
4774
|
AppCode: "",
|
|
4774
4775
|
Version: "",
|
|
4775
4776
|
Host: "",
|
|
4776
|
-
Source:
|
|
4777
|
-
Action:
|
|
4777
|
+
Source: Ln.Manual,
|
|
4778
|
+
Action: Tn.App,
|
|
4778
4779
|
Path: "",
|
|
4779
4780
|
Icon: "",
|
|
4780
4781
|
Routes: [],
|
|
@@ -4822,7 +4823,7 @@ const Nt = {
|
|
|
4822
4823
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
4823
4824
|
return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
|
|
4824
4825
|
} catch (t) {
|
|
4825
|
-
return console.error(
|
|
4826
|
+
return console.error(zs, t), !1;
|
|
4826
4827
|
}
|
|
4827
4828
|
}, de = w(""), bt = w(null), ye = Dt("userInfo", {
|
|
4828
4829
|
state: () => ({
|
|
@@ -5019,12 +5020,12 @@ const Nt = {
|
|
|
5019
5020
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
5020
5021
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5021
5022
|
);
|
|
5022
|
-
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ?
|
|
5023
|
-
},
|
|
5023
|
+
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ps : qe)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (ye().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
5024
|
+
}, vn = (e, t) => {
|
|
5024
5025
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5025
5026
|
const a = fa(e, t);
|
|
5026
5027
|
return t.url = a, da(e, t);
|
|
5027
|
-
}, 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))),
|
|
5028
|
+
}, 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))), nr = (e, t = {}) => {
|
|
5028
5029
|
const a = t.primaryKey || "Id";
|
|
5029
5030
|
if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
|
|
5030
5031
|
return se.error(P("webui.utils.data.noSaveData")), Promise.resolve(null);
|
|
@@ -5048,7 +5049,7 @@ const Nt = {
|
|
|
5048
5049
|
return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5049
5050
|
const r = fa(e, s);
|
|
5050
5051
|
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));
|
|
5051
|
-
}, Ci = (e, t) =>
|
|
5052
|
+
}, Ci = (e, t) => vn(e, {
|
|
5052
5053
|
urlKey: "tree",
|
|
5053
5054
|
params: {},
|
|
5054
5055
|
loadingState: e.isTreeLoading,
|
|
@@ -5193,10 +5194,10 @@ const Tc = (e) => {
|
|
|
5193
5194
|
return t.messages(ut.messages()), t.define(e), t;
|
|
5194
5195
|
}, Mt = async (e) => {
|
|
5195
5196
|
const t = e.formData.value, a = e.formRules.value;
|
|
5196
|
-
ve(a) || (
|
|
5197
|
+
ve(a) || (bn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ut.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5197
5198
|
}).catch(({ fields: n }) => n));
|
|
5198
5199
|
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ut.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5199
|
-
}).catch(({ fields: n }) => n)),
|
|
5200
|
+
}).catch(({ fields: n }) => n)), bn = (e) => {
|
|
5200
5201
|
e.ruleResults.value = void 0;
|
|
5201
5202
|
}, ft = () => {
|
|
5202
5203
|
const e = nt(Re.EditorControl, void 0), t = w(nt(Re.LabelText, "")), a = w(nt(Re.RuleKey, "")), n = nt(Re.ErrInfo, void 0);
|
|
@@ -5224,7 +5225,7 @@ const Tc = (e) => {
|
|
|
5224
5225
|
rule: e.rule
|
|
5225
5226
|
},
|
|
5226
5227
|
t == null ? void 0 : t.formRules.value,
|
|
5227
|
-
|
|
5228
|
+
ds(s)
|
|
5228
5229
|
);
|
|
5229
5230
|
a.value.errClass = r.errClass.value, a.value.msg = r.msg.value;
|
|
5230
5231
|
}
|
|
@@ -5271,21 +5272,21 @@ const Tc = (e) => {
|
|
|
5271
5272
|
if (t[a])
|
|
5272
5273
|
return xi(n, t[a].fields);
|
|
5273
5274
|
}, Rc = (e) => {
|
|
5274
|
-
|
|
5275
|
+
sr(e);
|
|
5275
5276
|
}, wc = (e) => {
|
|
5276
5277
|
const t = e.page, a = e.formData.value;
|
|
5277
|
-
a[e.primaryKey ?? t.primaryKey] = null,
|
|
5278
|
+
a[e.primaryKey ?? t.primaryKey] = null, sr(e);
|
|
5278
5279
|
}, kc = (e) => {
|
|
5279
|
-
|
|
5280
|
-
},
|
|
5280
|
+
In(e), e.visible.value = !1;
|
|
5281
|
+
}, sr = async (e) => {
|
|
5281
5282
|
var n;
|
|
5282
5283
|
const t = e.page;
|
|
5283
|
-
if (e.isFormSaving.value = !0,
|
|
5284
|
+
if (e.isFormSaving.value = !0, bn(e), e.beforeSave && e.beforeSave() === !1)
|
|
5284
5285
|
return e.isFormSaving.value = !1, Promise.resolve();
|
|
5285
5286
|
if (e.formRules.value && await Mt(e), e.ruleResults.value)
|
|
5286
5287
|
return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
5287
5288
|
const a = e.formData.value;
|
|
5288
|
-
return
|
|
5289
|
+
return nr(
|
|
5289
5290
|
{
|
|
5290
5291
|
page: t,
|
|
5291
5292
|
// 转换为AnyControl接口
|
|
@@ -5332,20 +5333,20 @@ const Tc = (e) => {
|
|
|
5332
5333
|
const t = e.page, a = e.grid;
|
|
5333
5334
|
e.isFormLoading.value = !0;
|
|
5334
5335
|
const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
|
|
5335
|
-
return
|
|
5336
|
-
e.isFormLoading.value = !1, r &&
|
|
5336
|
+
return lr(a, { [s]: n[s] }, e.detailUrl).then((r) => {
|
|
5337
|
+
e.isFormLoading.value = !1, r && rr(e, r);
|
|
5337
5338
|
});
|
|
5338
5339
|
}, Cc = (e) => {
|
|
5339
5340
|
const t = e.grid;
|
|
5340
|
-
t && (t.rowData.value = void 0), e && (
|
|
5341
|
+
t && (t.rowData.value = void 0), e && (In(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5341
5342
|
e.visible.value = !0;
|
|
5342
5343
|
}, 1));
|
|
5343
|
-
},
|
|
5344
|
-
|
|
5344
|
+
}, rr = (e, t) => {
|
|
5345
|
+
In(e);
|
|
5345
5346
|
const a = { ...e.formData.value, ...t };
|
|
5346
5347
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5347
|
-
},
|
|
5348
|
-
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {},
|
|
5348
|
+
}, In = (e) => {
|
|
5349
|
+
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, bn(e);
|
|
5349
5350
|
}, Fc = (e, t) => {
|
|
5350
5351
|
const a = ye();
|
|
5351
5352
|
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) => {
|
|
@@ -5365,11 +5366,11 @@ const Tc = (e) => {
|
|
|
5365
5366
|
return s ? { ...n, ...s } : !1;
|
|
5366
5367
|
});
|
|
5367
5368
|
return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
|
|
5368
|
-
}, Vi = (e) =>
|
|
5369
|
+
}, Vi = (e) => or(e).then((t) => t.rows), or = (e) => {
|
|
5369
5370
|
var a, n, s, r;
|
|
5370
5371
|
e.gridQuery || (e.gridQuery = {});
|
|
5371
5372
|
const t = e.remotePage ? "find" : "list";
|
|
5372
|
-
return
|
|
5373
|
+
return vn(e, {
|
|
5373
5374
|
urlKey: t,
|
|
5374
5375
|
url: {
|
|
5375
5376
|
url: ((a = e.gridUrl) == null ? void 0 : a.url) || "",
|
|
@@ -5399,7 +5400,7 @@ const Tc = (e) => {
|
|
|
5399
5400
|
rows: []
|
|
5400
5401
|
};
|
|
5401
5402
|
});
|
|
5402
|
-
}, $i = (e, t, a = {}) =>
|
|
5403
|
+
}, $i = (e, t, a = {}) => nr(e, {
|
|
5403
5404
|
urlKey: "update",
|
|
5404
5405
|
url: e.updateUrl,
|
|
5405
5406
|
params: {
|
|
@@ -5416,31 +5417,31 @@ const Tc = (e) => {
|
|
|
5416
5417
|
loadingText: !1,
|
|
5417
5418
|
hideErrorToast: !0
|
|
5418
5419
|
});
|
|
5419
|
-
},
|
|
5420
|
+
}, lr = async (e, t, a) => await vn(e, {
|
|
5420
5421
|
urlKey: "detail",
|
|
5421
5422
|
url: a,
|
|
5422
5423
|
params: t,
|
|
5423
5424
|
loadingState: e.isGridLoading
|
|
5424
5425
|
}), xc = (e, t) => {
|
|
5425
5426
|
const a = t;
|
|
5426
|
-
return
|
|
5427
|
+
return lr(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));
|
|
5427
5428
|
}, Vc = (e, t) => {
|
|
5428
5429
|
let a = e.editor;
|
|
5429
|
-
e.rowData.value = t, a && (
|
|
5430
|
+
e.rowData.value = t, a && (rr(a, t), a.visible.value = !0);
|
|
5430
5431
|
}, $c = (e, t) => Di(e, t, {
|
|
5431
5432
|
url: e.deleteUrl,
|
|
5432
5433
|
primaryKey: e.primaryKey
|
|
5433
5434
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5434
5435
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5435
5436
|
}, 50), a));
|
|
5436
|
-
var
|
|
5437
|
+
var an = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(an || {});
|
|
5437
5438
|
class Hi {
|
|
5438
5439
|
constructor() {
|
|
5439
5440
|
ne(this, "listeners", {});
|
|
5440
5441
|
}
|
|
5441
5442
|
// 检查事件名是否符合前缀
|
|
5442
5443
|
isValidPrefix(t) {
|
|
5443
|
-
return Object.values(
|
|
5444
|
+
return Object.values(an).some((a) => t.startsWith(a + "."));
|
|
5444
5445
|
}
|
|
5445
5446
|
/**
|
|
5446
5447
|
* 事件订阅
|
|
@@ -5449,7 +5450,7 @@ class Hi {
|
|
|
5449
5450
|
*/
|
|
5450
5451
|
on(t, a) {
|
|
5451
5452
|
if (!this.isValidPrefix(t)) {
|
|
5452
|
-
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(
|
|
5453
|
+
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(an).join(", ")} 开头`);
|
|
5453
5454
|
return;
|
|
5454
5455
|
}
|
|
5455
5456
|
this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push(a);
|
|
@@ -5491,38 +5492,38 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5491
5492
|
B(
|
|
5492
5493
|
() => a.data,
|
|
5493
5494
|
() => {
|
|
5494
|
-
|
|
5495
|
+
yn(t, a.data, !0);
|
|
5495
5496
|
},
|
|
5496
5497
|
{ deep: !0, immediate: !0 }
|
|
5497
5498
|
);
|
|
5498
5499
|
else if (t.url && t.url.url)
|
|
5499
|
-
e &&
|
|
5500
|
+
e && ir(t.url, t, t.params ?? {});
|
|
5500
5501
|
else {
|
|
5501
5502
|
const n = w(nt(Re.LabelText, ""));
|
|
5502
5503
|
se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
|
|
5503
5504
|
duration: 5e3
|
|
5504
5505
|
});
|
|
5505
5506
|
}
|
|
5506
|
-
},
|
|
5507
|
+
}, yn = (e, t, a) => {
|
|
5507
5508
|
if (a) {
|
|
5508
5509
|
const n = {
|
|
5509
5510
|
...e.fieldMap
|
|
5510
5511
|
};
|
|
5511
|
-
t =
|
|
5512
|
+
t = Cr(n, t);
|
|
5512
5513
|
}
|
|
5513
5514
|
t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
|
|
5514
5515
|
label: P("webui.components.form.radio.all"),
|
|
5515
5516
|
value: e.allValue ?? void 0
|
|
5516
5517
|
}), e.options.value = t;
|
|
5517
5518
|
}, Wi = (e, t, a) => {
|
|
5518
|
-
Array.isArray(a) ?
|
|
5519
|
+
Array.isArray(a) ? yn(t, a, !0) : ir(e, t, a);
|
|
5519
5520
|
}, Ut = (e, t) => {
|
|
5520
5521
|
var a;
|
|
5521
5522
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && st.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5522
|
-
},
|
|
5523
|
+
}, ir = (e, t, a) => {
|
|
5523
5524
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Ct(n, s, a);
|
|
5524
5525
|
Gi(e, t, t.fieldMap, r).then((o) => {
|
|
5525
|
-
|
|
5526
|
+
yn(t, o, !1);
|
|
5526
5527
|
});
|
|
5527
5528
|
}, Gi = (e, t, a, n) => {
|
|
5528
5529
|
const { fieldMap: s, ...r } = e, l = {
|
|
@@ -5536,7 +5537,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5536
5537
|
},
|
|
5537
5538
|
...r
|
|
5538
5539
|
};
|
|
5539
|
-
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ?
|
|
5540
|
+
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ? ps : qe)(l, n).then((c) => {
|
|
5540
5541
|
if ((c == null ? void 0 : c.status) === ie.SUCCESS) {
|
|
5541
5542
|
if (c.data)
|
|
5542
5543
|
return c.data;
|
|
@@ -5576,7 +5577,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5576
5577
|
s[o] || (s[o] = {}), s = s[o];
|
|
5577
5578
|
}
|
|
5578
5579
|
s[n[n.length - 1]] = a;
|
|
5579
|
-
},
|
|
5580
|
+
}, cr = (e, t, a) => {
|
|
5580
5581
|
if (a == null) {
|
|
5581
5582
|
Object.entries(t).forEach(([n]) => {
|
|
5582
5583
|
It(e, n, a);
|
|
@@ -5610,7 +5611,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5610
5611
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5611
5612
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Mt(n.editorCtrl), e.selected.value = a;
|
|
5612
5613
|
const s = Ki(a, e.options.value);
|
|
5613
|
-
if (e.selectedOptions.value = s, t.formData && t.outFields &&
|
|
5614
|
+
if (e.selectedOptions.value = s, t.formData && t.outFields && cr(t.formData, t.outFields, s), t.changeEvent) {
|
|
5614
5615
|
const [l, i] = t.changeEvent;
|
|
5615
5616
|
if (i)
|
|
5616
5617
|
if (Array.isArray(l))
|
|
@@ -5743,7 +5744,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5743
5744
|
(s) => {
|
|
5744
5745
|
s && (setTimeout(() => {
|
|
5745
5746
|
n.reload.value = !1;
|
|
5746
|
-
}, 1), n.remotePage ?
|
|
5747
|
+
}, 1), n.remotePage ? or(n) : Vi(n));
|
|
5747
5748
|
}
|
|
5748
5749
|
), {
|
|
5749
5750
|
gridCtrl: n
|
|
@@ -5802,9 +5803,9 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5802
5803
|
editorCtrl: s,
|
|
5803
5804
|
gridCtrl: r
|
|
5804
5805
|
};
|
|
5805
|
-
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(),
|
|
5806
|
+
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), us = /* @__PURE__ */ new Set(), Ke = w({}), Kc = Ke, Yc = (e) => {
|
|
5806
5807
|
var s;
|
|
5807
|
-
if (!e.iconUrl) return
|
|
5808
|
+
if (!e.iconUrl) return nn;
|
|
5808
5809
|
const t = w(!0), a = w("");
|
|
5809
5810
|
let n = !0;
|
|
5810
5811
|
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) && Ji(e, t).then(() => {
|
|
@@ -5866,11 +5867,11 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5866
5867
|
},
|
|
5867
5868
|
render() {
|
|
5868
5869
|
if (!t.value)
|
|
5869
|
-
return
|
|
5870
|
+
return nn;
|
|
5870
5871
|
let r = this.class, o = "";
|
|
5871
5872
|
Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
|
|
5872
5873
|
let l = [o];
|
|
5873
|
-
return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? Ie(
|
|
5874
|
+
return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? Ie(ds(a.value), {
|
|
5874
5875
|
onClick: this.$props.clickable ? this.handleClick : void 0,
|
|
5875
5876
|
class: `${l.join(" ")}`,
|
|
5876
5877
|
style: {
|
|
@@ -5887,9 +5888,9 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5887
5888
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
5888
5889
|
if (Va.has(a))
|
|
5889
5890
|
return Promise.resolve();
|
|
5890
|
-
const n =
|
|
5891
|
+
const n = fr(a);
|
|
5891
5892
|
if (n)
|
|
5892
|
-
return new Promise(async (r) => (
|
|
5893
|
+
return new Promise(async (r) => (ur(n.scriptContent), r()));
|
|
5893
5894
|
t.value = !1;
|
|
5894
5895
|
const s = new Promise(async (r) => {
|
|
5895
5896
|
await Qi(a, e.monoColor || !1), r(), Va.delete(a);
|
|
@@ -5910,12 +5911,12 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5910
5911
|
let o = r[1];
|
|
5911
5912
|
Xi(e, o, t, n);
|
|
5912
5913
|
}
|
|
5913
|
-
|
|
5914
|
+
ur(n);
|
|
5914
5915
|
return;
|
|
5915
5916
|
} catch (a) {
|
|
5916
5917
|
return console.error(P("webui.utils.iconLoader.networkError") + ":", a), null;
|
|
5917
5918
|
}
|
|
5918
|
-
},
|
|
5919
|
+
}, ur = (e) => {
|
|
5919
5920
|
const t = document.createElement("script");
|
|
5920
5921
|
t.textContent = e, document.head.appendChild(t);
|
|
5921
5922
|
}, Xi = (e, t, a, n) => {
|
|
@@ -5928,7 +5929,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5928
5929
|
// 缓存时间:7天
|
|
5929
5930
|
};
|
|
5930
5931
|
localStorage.setItem(s, JSON.stringify(r));
|
|
5931
|
-
},
|
|
5932
|
+
}, fr = (e) => {
|
|
5932
5933
|
let t = `icon_cache:${e}`;
|
|
5933
5934
|
const a = localStorage.getItem(t);
|
|
5934
5935
|
if (!a) return null;
|
|
@@ -5950,7 +5951,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5950
5951
|
setTimeout(() => {
|
|
5951
5952
|
t.value = a, t.value && (e.value = Ke.value[t.value]);
|
|
5952
5953
|
}, 1);
|
|
5953
|
-
},
|
|
5954
|
+
}, nn = Ie(
|
|
5954
5955
|
"svg",
|
|
5955
5956
|
{ class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
|
|
5956
5957
|
[
|
|
@@ -5971,9 +5972,9 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5971
5972
|
})
|
|
5972
5973
|
]
|
|
5973
5974
|
), qi = (e, t) => {
|
|
5974
|
-
const a =
|
|
5975
|
+
const a = fr(e);
|
|
5975
5976
|
Object.keys(window).forEach((n) => {
|
|
5976
|
-
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !
|
|
5977
|
+
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !us.has(n) && (us.add(n), zi(n, t));
|
|
5977
5978
|
});
|
|
5978
5979
|
}, zi = (e, t) => {
|
|
5979
5980
|
const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
|
|
@@ -5987,8 +5988,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5987
5988
|
let a = "";
|
|
5988
5989
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5989
5990
|
}, jc = (e, t, a, n) => {
|
|
5990
|
-
|
|
5991
|
-
},
|
|
5991
|
+
dr(e, [], a, n).forEach((r) => t.push(r));
|
|
5992
|
+
}, dr = (e, t, a, n) => {
|
|
5992
5993
|
var o, l, i, c, m, g;
|
|
5993
5994
|
const s = [], r = ye();
|
|
5994
5995
|
for (const p of e) {
|
|
@@ -5997,7 +5998,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5997
5998
|
continue;
|
|
5998
5999
|
const y = p.path.split("/");
|
|
5999
6000
|
y.unshift(...t);
|
|
6000
|
-
const R =
|
|
6001
|
+
const R = dr(p.children || [], y, a, n), S = {
|
|
6001
6002
|
key: y.join("/"),
|
|
6002
6003
|
label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
|
|
6003
6004
|
title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
|
|
@@ -6007,10 +6008,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6007
6008
|
(R.length > 0 || !p.children) && s.push(S);
|
|
6008
6009
|
}
|
|
6009
6010
|
return s;
|
|
6010
|
-
},
|
|
6011
|
-
|
|
6011
|
+
}, fs = br([]), Jc = () => {
|
|
6012
|
+
fs.length = 0;
|
|
6012
6013
|
const e = Me();
|
|
6013
|
-
let a =
|
|
6014
|
+
let a = En().TabActive;
|
|
6014
6015
|
e.matchedRoutes(a).forEach((s, r) => {
|
|
6015
6016
|
var l;
|
|
6016
6017
|
const o = {
|
|
@@ -6018,7 +6019,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6018
6019
|
path: s.path,
|
|
6019
6020
|
breadcrumbName: ((l = s.name) == null ? void 0 : l.toString()) ?? ""
|
|
6020
6021
|
};
|
|
6021
|
-
|
|
6022
|
+
fs.push(o);
|
|
6022
6023
|
});
|
|
6023
6024
|
}, Qc = Dt("hostInfo", {
|
|
6024
6025
|
state: () => ({
|
|
@@ -6053,7 +6054,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6053
6054
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6054
6055
|
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6055
6056
|
const s = t || window.location.origin;
|
|
6056
|
-
qe(
|
|
6057
|
+
$a.SITE_HOST = s, qe(Zs.host, {
|
|
6057
6058
|
Query: {
|
|
6058
6059
|
Host: s
|
|
6059
6060
|
}
|
|
@@ -6096,7 +6097,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6096
6097
|
if (this.hostInfo.SERVER_HOST)
|
|
6097
6098
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
6098
6099
|
let a = this.hostInfo.SERVER_HOST[t];
|
|
6099
|
-
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a,
|
|
6100
|
+
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a, $a[t] = a;
|
|
6100
6101
|
}
|
|
6101
6102
|
},
|
|
6102
6103
|
getHostInfo() {
|
|
@@ -6158,7 +6159,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6158
6159
|
r && Ut(r, a);
|
|
6159
6160
|
}), (y, R) => {
|
|
6160
6161
|
var S;
|
|
6161
|
-
return o.value.length === 2 ? (le(), zt(X(
|
|
6162
|
+
return o.value.length === 2 ? (le(), zt(X(yr), kt({
|
|
6162
6163
|
key: 0,
|
|
6163
6164
|
size: e.size,
|
|
6164
6165
|
class: [
|
|
@@ -6211,7 +6212,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6211
6212
|
), B(
|
|
6212
6213
|
() => l.value,
|
|
6213
6214
|
(S) => {
|
|
6214
|
-
a.autoClean && a.formData && a.outFields && S !== a.value &&
|
|
6215
|
+
a.autoClean && a.formData && a.outFields && S !== a.value && cr(a.formData, a.outFields, null);
|
|
6215
6216
|
}
|
|
6216
6217
|
);
|
|
6217
6218
|
const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
|
|
@@ -6245,7 +6246,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6245
6246
|
}), (S, O) => {
|
|
6246
6247
|
var d;
|
|
6247
6248
|
return le(), ge("div", null, [
|
|
6248
|
-
Be(X(
|
|
6249
|
+
Be(X(Nr), kt({
|
|
6249
6250
|
value: l.value,
|
|
6250
6251
|
"onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
|
|
6251
6252
|
class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
|
|
@@ -6257,7 +6258,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6257
6258
|
ta(je(_), 1)
|
|
6258
6259
|
]),
|
|
6259
6260
|
default: Ue(() => [
|
|
6260
|
-
Be(X(
|
|
6261
|
+
Be(X(Sr), {
|
|
6261
6262
|
"allow-clear": "",
|
|
6262
6263
|
placeholder: "请输入并选择" + X(m)
|
|
6263
6264
|
}, null, 8, ["placeholder"])
|
|
@@ -6326,18 +6327,18 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6326
6327
|
}), dt(() => {
|
|
6327
6328
|
o && Ut(o, a);
|
|
6328
6329
|
}), (S, O) => (le(), ge("div", ec, [
|
|
6329
|
-
Be(X(
|
|
6330
|
+
Be(X(Tr), kt({
|
|
6330
6331
|
onChange: g,
|
|
6331
6332
|
class: "w-full mb-[-3px]"
|
|
6332
6333
|
}, X(n)), {
|
|
6333
6334
|
default: Ue(() => [
|
|
6334
|
-
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 },
|
|
6335
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, sn(m.value, (d) => {
|
|
6335
6336
|
var _;
|
|
6336
|
-
return le(), zt(X(
|
|
6337
|
+
return le(), zt(X(Lr), {
|
|
6337
6338
|
key: d.value,
|
|
6338
6339
|
value: d.value,
|
|
6339
6340
|
disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
|
|
6340
|
-
class:
|
|
6341
|
+
class: ms([
|
|
6341
6342
|
((_ = X(i)) == null ? void 0 : _.errClass) === "error" ? "error !text-red-400" : "",
|
|
6342
6343
|
"text-nowrap",
|
|
6343
6344
|
"pb-1",
|
|
@@ -6428,7 +6429,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6428
6429
|
}), dt(() => {
|
|
6429
6430
|
o && Ut(o, a);
|
|
6430
6431
|
}), (d, _) => (le(), ge("div", ac, [
|
|
6431
|
-
Be(X(
|
|
6432
|
+
Be(X(Or), kt({
|
|
6432
6433
|
value: i.value,
|
|
6433
6434
|
"onUpdate:value": _[0] || (_[0] = (I) => i.value = I),
|
|
6434
6435
|
autocheck: !1,
|
|
@@ -6436,16 +6437,16 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6436
6437
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6437
6438
|
}, X(n)), {
|
|
6438
6439
|
default: Ue(() => [
|
|
6439
|
-
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 },
|
|
6440
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, sn(m.value, (I) => {
|
|
6440
6441
|
var E;
|
|
6441
6442
|
return le(), ge(Ye, {
|
|
6442
6443
|
key: I.value
|
|
6443
6444
|
}, [
|
|
6444
|
-
I.visible !== !1 ? (le(), zt(X(
|
|
6445
|
+
I.visible !== !1 ? (le(), zt(X(Ar), {
|
|
6445
6446
|
key: 0,
|
|
6446
6447
|
checked: p(I.value, a.value),
|
|
6447
6448
|
value: I.value,
|
|
6448
|
-
class:
|
|
6449
|
+
class: ms([
|
|
6449
6450
|
((E = X(c)) == null ? void 0 : E.errClass) === "error" ? "error !text-red-400" : "",
|
|
6450
6451
|
"text-nowrap",
|
|
6451
6452
|
"pb-1",
|
|
@@ -6572,7 +6573,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6572
6573
|
value: "Id",
|
|
6573
6574
|
key: "Id"
|
|
6574
6575
|
}), a.dataKey) {
|
|
6575
|
-
const b = JSON.parse(JSON.stringify(
|
|
6576
|
+
const b = JSON.parse(JSON.stringify(tn.getOptions(a.dataKey)));
|
|
6576
6577
|
O.value = b, d(b);
|
|
6577
6578
|
} else if (c) {
|
|
6578
6579
|
const b = c.options.value || [];
|
|
@@ -6584,10 +6585,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6584
6585
|
var v, C, M;
|
|
6585
6586
|
return le(), ge("div", null, [
|
|
6586
6587
|
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", sc, [
|
|
6587
|
-
Be(X(
|
|
6588
|
-
|
|
6588
|
+
Be(X(nn), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6589
|
+
Ir("span", null, je(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6589
6590
|
])) : ot("", !0),
|
|
6590
|
-
Be(X(
|
|
6591
|
+
Be(X(Pr), kt({
|
|
6591
6592
|
class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
|
|
6592
6593
|
value: y.value,
|
|
6593
6594
|
"onUpdate:value": L[0] || (L[0] = (K) => y.value = K),
|
|
@@ -6597,10 +6598,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6597
6598
|
"label-in-value": !1
|
|
6598
6599
|
}, X(m)), {
|
|
6599
6600
|
default: Ue(() => [
|
|
6600
|
-
(le(!0), ge(Ye, null,
|
|
6601
|
+
(le(!0), ge(Ye, null, sn(O.value, (K) => (le(), ge(Ye, {
|
|
6601
6602
|
key: K.value
|
|
6602
6603
|
}, [
|
|
6603
|
-
K.visible !== !1 ? (le(), zt(X(
|
|
6604
|
+
K.visible !== !1 ? (le(), zt(X(Rr), {
|
|
6604
6605
|
key: 0,
|
|
6605
6606
|
value: K.value
|
|
6606
6607
|
}, {
|
|
@@ -6634,20 +6635,20 @@ export {
|
|
|
6634
6635
|
la as E,
|
|
6635
6636
|
Zc as F,
|
|
6636
6637
|
eu as G,
|
|
6637
|
-
|
|
6638
|
+
vn as H,
|
|
6638
6639
|
Ur as I,
|
|
6639
6640
|
yc as J,
|
|
6640
6641
|
Hc as K,
|
|
6641
6642
|
ua as L,
|
|
6642
6643
|
Nt as M,
|
|
6643
6644
|
Yi as N,
|
|
6644
|
-
|
|
6645
|
+
tn as O,
|
|
6645
6646
|
Re as P,
|
|
6646
6647
|
Bi as Q,
|
|
6647
6648
|
Wc as R,
|
|
6648
6649
|
Gc as S,
|
|
6649
6650
|
Ki as T,
|
|
6650
|
-
|
|
6651
|
+
cr as U,
|
|
6651
6652
|
Kc as V,
|
|
6652
6653
|
Bc as W,
|
|
6653
6654
|
zi as X,
|
|
@@ -6655,30 +6656,30 @@ export {
|
|
|
6655
6656
|
jc as Z,
|
|
6656
6657
|
Xc as _,
|
|
6657
6658
|
Sc as a,
|
|
6658
|
-
|
|
6659
|
+
fs as a0,
|
|
6659
6660
|
Jc as a1,
|
|
6660
|
-
|
|
6661
|
+
sr as a2,
|
|
6661
6662
|
Dc as a3,
|
|
6662
|
-
|
|
6663
|
+
rr as a4,
|
|
6663
6664
|
Tc as a5,
|
|
6664
6665
|
Ac as a6,
|
|
6665
|
-
|
|
6666
|
+
bn as a7,
|
|
6666
6667
|
Lc as a8,
|
|
6667
6668
|
Oc as a9,
|
|
6668
6669
|
Mc as aa,
|
|
6669
6670
|
$i as ab,
|
|
6670
|
-
|
|
6671
|
+
lr as ac,
|
|
6671
6672
|
xc as ad,
|
|
6672
6673
|
Nc as ae,
|
|
6673
|
-
|
|
6674
|
+
nr as af,
|
|
6674
6675
|
Di as ag,
|
|
6675
|
-
|
|
6676
|
+
an as ah,
|
|
6676
6677
|
st as ai,
|
|
6677
6678
|
yt as aj,
|
|
6678
6679
|
Jt as ak,
|
|
6679
6680
|
Me as al,
|
|
6680
6681
|
Qc as am,
|
|
6681
|
-
|
|
6682
|
+
En as an,
|
|
6682
6683
|
rc as ao,
|
|
6683
6684
|
tu as ap,
|
|
6684
6685
|
me as aq,
|
|
@@ -6697,7 +6698,7 @@ export {
|
|
|
6697
6698
|
ve as i,
|
|
6698
6699
|
Fc as j,
|
|
6699
6700
|
Cc as k,
|
|
6700
|
-
|
|
6701
|
+
or as l,
|
|
6701
6702
|
Vi as m,
|
|
6702
6703
|
Uc as n,
|
|
6703
6704
|
Rc as o,
|
|
@@ -6711,5 +6712,5 @@ export {
|
|
|
6711
6712
|
xt as w,
|
|
6712
6713
|
pt as x,
|
|
6713
6714
|
Ut as y,
|
|
6714
|
-
|
|
6715
|
+
nn as z
|
|
6715
6716
|
};
|