@skyfox2000/webui 1.5.22 → 1.5.23
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-BbWv6Njy.js → baseLayout-CZbP7pSZ.js} +3 -3
- package/lib/assets/modules/{file-upload-czkP0_KZ.js → file-upload-DLtJQx0S.js} +1 -1
- package/lib/assets/modules/{index-CnrS4kfC.js → index-BZ3_aX3_.js} +2 -2
- package/lib/assets/modules/{index-D62pvKsu.js → index-CBd7UKIQ.js} +1 -1
- package/lib/assets/modules/{index-BM6-4CHA.js → index-DAXFE4kZ.js} +2 -2
- package/lib/assets/modules/{menuTabs-DA2V4Fdt.js → menuTabs-CQLWwGac.js} +2 -2
- package/lib/assets/modules/{toolIcon-BPUk821a.js → toolIcon-D0gDhlS9.js} +1 -1
- package/lib/assets/modules/{upload-template-1qHFUTUu.js → upload-template-Diw75DK3.js} +543 -538
- package/lib/assets/modules/{uploadList-BVcO1MPp.js → uploadList-C2ZpgPoa.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 +67 -65
- package/package.json +1 -1
- package/src/directives/permission.ts +4 -1
- package/src/router/index.ts +4 -1
- package/src/stores/appInfo.ts +8 -3
- package/src/stores/userInfo.ts +6 -1
|
@@ -2,12 +2,12 @@ var mr = Object.defineProperty;
|
|
|
2
2
|
var pr = (e, t, a) => t in e ? mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ne = (e, t, a) => pr(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as wa from "vue";
|
|
5
|
-
import { effectScope as _r, ref as w, shallowRef as ke, computed as
|
|
6
|
-
import { Switch as
|
|
7
|
-
import { createPinia as Rr, defineStore as
|
|
5
|
+
import { effectScope as _r, ref as w, shallowRef as ke, computed as tt, watch as B, isRef as gr, defineComponent as De, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as hr, nextTick as Er, provide as ka, toRaw as fs, reactive as vr, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Ue, createTextVNode as ta, toDisplayString as je, renderList as nn, normalizeClass as ds, createElementVNode as br } from "vue";
|
|
6
|
+
import { Switch as Ir, AutoComplete as yr, Input as Nr, CheckboxGroup as Sr, Checkbox as Tr, RadioGroup as Lr, Radio as Or, Select as Ar, SelectOption as Pr } from "ant-design-vue";
|
|
7
|
+
import { createPinia as Rr, defineStore as Dt } from "pinia";
|
|
8
8
|
import wr from "pinia-plugin-persistedstate";
|
|
9
|
-
import { EnvConfig as
|
|
10
|
-
import { httpPost as
|
|
9
|
+
import { EnvConfig as Fe, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as kr, combineParams as Ct } from "@skyfox2000/microbase";
|
|
10
|
+
import { httpPost as qe, ResStatus as ie, setToken as Wt, httpGet as ms, fieldMapping as Dr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Cr } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
|
|
13
13
|
import aa from "async-validator";
|
|
@@ -29,13 +29,13 @@ function sn(e) {
|
|
|
29
29
|
Ln[e] || (Ln[e] = !0, Le(e));
|
|
30
30
|
}
|
|
31
31
|
const Ne = typeof window < "u";
|
|
32
|
-
let fe,
|
|
32
|
+
let fe, Je;
|
|
33
33
|
if (process.env.NODE_ENV !== "production") {
|
|
34
34
|
const e = Ne && window.performance;
|
|
35
35
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
36
36
|
e.clearMeasures && (fe = (t) => {
|
|
37
37
|
e.mark(t);
|
|
38
|
-
},
|
|
38
|
+
}, Je = (t, a, n) => {
|
|
39
39
|
e.measure(t, a, n), e.clearMarks(a), e.clearMarks(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -43,9 +43,9 @@ 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) => rn(e) === "[object Date]",
|
|
46
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) => rn(e) === "[object Date]", lt = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Wr = Object.create, W = (e = null) => Wr(e);
|
|
47
47
|
let On;
|
|
48
|
-
const
|
|
48
|
+
const Ge = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
49
|
function An(e) {
|
|
50
50
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
51
51
|
}
|
|
@@ -116,15 +116,15 @@ function ln() {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
119
|
+
const Gt = (e) => !U(e) || J(e);
|
|
120
|
+
function jt(e, t) {
|
|
121
|
+
if (Gt(e) || Gt(t))
|
|
122
122
|
throw new Error("Invalid value");
|
|
123
123
|
const a = [{ src: e, des: t }];
|
|
124
124
|
for (; a.length; ) {
|
|
125
125
|
const { src: n, des: s } = a.pop();
|
|
126
126
|
Object.keys(n).forEach((r) => {
|
|
127
|
-
r !== "__proto__" && (U(n[r]) && !U(s[r]) && (s[r] = Array.isArray(n[r]) ? [] : W()),
|
|
127
|
+
r !== "__proto__" && (U(n[r]) && !U(s[r]) && (s[r] = Array.isArray(n[r]) ? [] : W()), Gt(s[r]) || Gt(n[r]) ? s[r] = n[r] : a.push({ src: n[r], des: s[r] }));
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -182,7 +182,7 @@ const D = {
|
|
|
182
182
|
// minimizer error messages
|
|
183
183
|
[D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function mt(e, t, a = {}) {
|
|
186
186
|
const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s || Xr)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
|
|
187
187
|
return l.code = e, t && (l.location = t), l.domain = n, l;
|
|
188
188
|
}
|
|
@@ -194,11 +194,11 @@ const zr = /<\/?[\w\s="/.':;#-\/]+>/, Zr = (e) => zr.test(e), Se = " ", eo = "\r
|
|
|
194
194
|
function no(e) {
|
|
195
195
|
const t = e;
|
|
196
196
|
let a = 0, n = 1, s = 1, r = 0;
|
|
197
|
-
const o = (v) => t[v] === eo && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === ao, c = (v) => t[v] === to, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n,
|
|
197
|
+
const o = (v) => t[v] === eo && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === ao, c = (v) => t[v] === to, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, y = () => s, R = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
|
|
198
198
|
function _() {
|
|
199
199
|
return r = 0, m(a) && (n++, s = 0), o(a) && a++, a++, s++, t[a];
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function I() {
|
|
202
202
|
return o(a + r) && r++, r++, t[a + r];
|
|
203
203
|
}
|
|
204
204
|
function E() {
|
|
@@ -216,13 +216,13 @@ function no(e) {
|
|
|
216
216
|
return {
|
|
217
217
|
index: g,
|
|
218
218
|
line: p,
|
|
219
|
-
column:
|
|
219
|
+
column: y,
|
|
220
220
|
peekOffset: R,
|
|
221
221
|
charAt: S,
|
|
222
222
|
currentChar: O,
|
|
223
223
|
currentPeek: d,
|
|
224
224
|
next: _,
|
|
225
|
-
peek:
|
|
225
|
+
peek: I,
|
|
226
226
|
reset: E,
|
|
227
227
|
resetPeek: b,
|
|
228
228
|
skipToPeek: L
|
|
@@ -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 ? $a(j.startLoc, f) : null, V =
|
|
249
|
+
const q = a ? $a(j.startLoc, f) : null, V = mt(u, q, {
|
|
250
250
|
domain: ro,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
@@ -258,7 +258,7 @@ function oo(e, t = {}) {
|
|
|
258
258
|
const k = { type: f };
|
|
259
259
|
return a && (k.loc = $a(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const y = (u) => p(
|
|
262
262
|
u,
|
|
263
263
|
13
|
|
264
264
|
/* TokenTypes.EOF */
|
|
@@ -290,7 +290,7 @@ function oo(e, t = {}) {
|
|
|
290
290
|
const f = u.charCodeAt(0);
|
|
291
291
|
return f >= 48 && f <= 57;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function I(u, f) {
|
|
294
294
|
const { currentType: N } = f;
|
|
295
295
|
if (N !== 2)
|
|
296
296
|
return !1;
|
|
@@ -364,7 +364,7 @@ function oo(e, t = {}) {
|
|
|
364
364
|
const N = u.currentChar();
|
|
365
365
|
return N === Pe ? Pe : f(N) ? (u.next(), N) : null;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function ze(u) {
|
|
368
368
|
const f = u.charCodeAt(0);
|
|
369
369
|
return f >= 97 && f <= 122 || // a-z
|
|
370
370
|
f >= 65 && f <= 90 || // A-Z
|
|
@@ -373,7 +373,7 @@ function oo(e, t = {}) {
|
|
|
373
373
|
f === 36;
|
|
374
374
|
}
|
|
375
375
|
function ga(u) {
|
|
376
|
-
return Q(u,
|
|
376
|
+
return Q(u, ze);
|
|
377
377
|
}
|
|
378
378
|
function ha(u) {
|
|
379
379
|
const f = u.charCodeAt(0);
|
|
@@ -394,22 +394,22 @@ function oo(e, t = {}) {
|
|
|
394
394
|
function ba(u) {
|
|
395
395
|
return Q(u, va);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ia(u) {
|
|
398
398
|
const f = u.charCodeAt(0);
|
|
399
399
|
return f >= 48 && f <= 57 || // 0-9
|
|
400
400
|
f >= 65 && f <= 70 || // A-F
|
|
401
401
|
f >= 97 && f <= 102;
|
|
402
402
|
}
|
|
403
403
|
function Ae(u) {
|
|
404
|
-
return Q(u,
|
|
404
|
+
return Q(u, Ia);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function _t(u) {
|
|
407
407
|
let f = "", N = "";
|
|
408
408
|
for (; f = ba(u); )
|
|
409
409
|
N += f;
|
|
410
410
|
return N;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ya(u) {
|
|
413
413
|
let f = "";
|
|
414
414
|
for (; ; ) {
|
|
415
415
|
const N = u.currentChar();
|
|
@@ -435,7 +435,7 @@ function oo(e, t = {}) {
|
|
|
435
435
|
N += f;
|
|
436
436
|
const k = u.currentChar();
|
|
437
437
|
if (k && k !== "}" && k !== Pe && k !== Se && k !== re && k !== " ") {
|
|
438
|
-
const j =
|
|
438
|
+
const j = $t(u);
|
|
439
439
|
return g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N + j), N + j;
|
|
440
440
|
}
|
|
441
441
|
return u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N;
|
|
@@ -443,12 +443,12 @@ function oo(e, t = {}) {
|
|
|
443
443
|
function Sa(u) {
|
|
444
444
|
O(u);
|
|
445
445
|
let f = "";
|
|
446
|
-
return u.currentChar() === "-" ? (u.next(), f += `-${
|
|
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
449
|
return u !== wn && u !== re;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function yn(u) {
|
|
452
452
|
O(u), R(u, "'");
|
|
453
453
|
let f = "", N = "";
|
|
454
454
|
for (; f = Q(u, Ta); )
|
|
@@ -463,14 +463,14 @@ function oo(e, t = {}) {
|
|
|
463
463
|
case "'":
|
|
464
464
|
return u.next(), `\\${f}`;
|
|
465
465
|
case "u":
|
|
466
|
-
return
|
|
466
|
+
return Vt(u, f, 4);
|
|
467
467
|
case "U":
|
|
468
|
-
return
|
|
468
|
+
return Vt(u, f, 6);
|
|
469
469
|
default:
|
|
470
470
|
return g(D.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, f), "";
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Vt(u, f, N) {
|
|
474
474
|
R(u, f);
|
|
475
475
|
let k = "";
|
|
476
476
|
for (let j = 0; j < N; j++) {
|
|
@@ -486,7 +486,7 @@ function oo(e, t = {}) {
|
|
|
486
486
|
function Oa(u) {
|
|
487
487
|
return u !== "{" && u !== "}" && u !== Se && u !== re;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function $t(u) {
|
|
490
490
|
O(u);
|
|
491
491
|
let f = "", N = "";
|
|
492
492
|
for (; f = Q(u, Oa); )
|
|
@@ -506,7 +506,7 @@ function oo(e, t = {}) {
|
|
|
506
506
|
};
|
|
507
507
|
return f("");
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function gt(u) {
|
|
510
510
|
O(u);
|
|
511
511
|
const f = R(
|
|
512
512
|
u,
|
|
@@ -515,7 +515,7 @@ function oo(e, t = {}) {
|
|
|
515
515
|
);
|
|
516
516
|
return O(u), f;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ht(u, f) {
|
|
519
519
|
let N = null;
|
|
520
520
|
switch (u.currentChar()) {
|
|
521
521
|
case "{":
|
|
@@ -533,27 +533,27 @@ function oo(e, t = {}) {
|
|
|
533
533
|
/* TokenChars.BraceRight */
|
|
534
534
|
), f.braceNest--, f.braceNest > 0 && O(u), f.inLinked && f.braceNest === 0 && (f.inLinked = !1), N;
|
|
535
535
|
case "@":
|
|
536
|
-
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N =
|
|
536
|
+
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = $e(u, f) || y(f), f.braceNest = 0, N;
|
|
537
537
|
default: {
|
|
538
538
|
let j = !0, q = !0, V = !0;
|
|
539
539
|
if (K(u))
|
|
540
|
-
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = p(f, 1,
|
|
540
|
+
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, N;
|
|
541
541
|
if (f.braceNest > 0 && (f.currentType === 4 || f.currentType === 5 || f.currentType === 6))
|
|
542
|
-
return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0,
|
|
543
|
-
if (j =
|
|
542
|
+
return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, Et(u, f);
|
|
543
|
+
if (j = I(u, f))
|
|
544
544
|
return N = p(f, 4, Na(u)), O(u), N;
|
|
545
545
|
if (q = E(u, f))
|
|
546
546
|
return N = p(f, 5, Sa(u)), O(u), N;
|
|
547
547
|
if (V = b(u, f))
|
|
548
|
-
return N = p(f, 6,
|
|
548
|
+
return N = p(f, 6, yn(u)), O(u), N;
|
|
549
549
|
if (!j && !q && !V)
|
|
550
|
-
return N = p(f, 12,
|
|
550
|
+
return N = p(f, 12, $t(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
|
|
551
551
|
break;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
return N;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function $e(u, f) {
|
|
557
557
|
const { currentType: N } = f;
|
|
558
558
|
let k = null;
|
|
559
559
|
const j = u.currentChar();
|
|
@@ -580,21 +580,21 @@ function oo(e, t = {}) {
|
|
|
580
580
|
/* TokenChars.LinkedDelimiter */
|
|
581
581
|
);
|
|
582
582
|
default:
|
|
583
|
-
return K(u) ? (k = p(f, 1,
|
|
583
|
+
return K(u) ? (k = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), $e(u, f)) : v(u, f) ? (O(u), p(f, 11, Aa(u))) : M(u, f) ? (O(u), j === "{" ? ht(u, f) || k : p(f, 10, Pa(u))) : (N === 7 && g(D.INVALID_LINKED_FORMAT, r(), 0), f.braceNest = 0, f.inLinked = !1, Et(u, f));
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Et(u, f) {
|
|
587
587
|
let N = {
|
|
588
588
|
type: 13
|
|
589
589
|
/* TokenTypes.EOF */
|
|
590
590
|
};
|
|
591
591
|
if (f.braceNest > 0)
|
|
592
|
-
return
|
|
592
|
+
return ht(u, f) || y(f);
|
|
593
593
|
if (f.inLinked)
|
|
594
|
-
return
|
|
594
|
+
return $e(u, f) || y(f);
|
|
595
595
|
switch (u.currentChar()) {
|
|
596
596
|
case "{":
|
|
597
|
-
return
|
|
597
|
+
return ht(u, f) || y(f);
|
|
598
598
|
case "}":
|
|
599
599
|
return g(D.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), p(
|
|
600
600
|
f,
|
|
@@ -603,12 +603,12 @@ function oo(e, t = {}) {
|
|
|
603
603
|
/* TokenChars.BraceRight */
|
|
604
604
|
);
|
|
605
605
|
case "@":
|
|
606
|
-
return
|
|
606
|
+
return $e(u, f) || y(f);
|
|
607
607
|
default: {
|
|
608
608
|
if (K(u))
|
|
609
|
-
return N = p(f, 1,
|
|
609
|
+
return N = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, N;
|
|
610
610
|
if (Ee(u))
|
|
611
|
-
return p(f, 0,
|
|
611
|
+
return p(f, 0, ya(u));
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
@@ -620,7 +620,7 @@ function oo(e, t = {}) {
|
|
|
620
620
|
i,
|
|
621
621
|
13
|
|
622
622
|
/* TokenTypes.EOF */
|
|
623
|
-
) :
|
|
623
|
+
) : Et(n, i);
|
|
624
624
|
}
|
|
625
625
|
return {
|
|
626
626
|
nextToken: Ra,
|
|
@@ -645,87 +645,87 @@ function co(e, t, a) {
|
|
|
645
645
|
}
|
|
646
646
|
function uo(e = {}) {
|
|
647
647
|
const t = e.location !== !1, { onError: a } = e;
|
|
648
|
-
function n(d, _,
|
|
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 ? $a(
|
|
651
|
+
const v = t ? $a(I, L) : null, C = mt(_, v, {
|
|
652
652
|
domain: lo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
655
655
|
a(C);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function s(d, _,
|
|
658
|
+
function s(d, _, I) {
|
|
659
659
|
const E = { type: d };
|
|
660
|
-
return t && (E.start = _, E.end = _, E.loc = { start:
|
|
660
|
+
return t && (E.start = _, E.end = _, E.loc = { start: I, end: I }), E;
|
|
661
661
|
}
|
|
662
|
-
function r(d, _,
|
|
663
|
-
t && (d.end = _, d.loc && (d.loc.end =
|
|
662
|
+
function r(d, _, I, E) {
|
|
663
|
+
t && (d.end = _, d.loc && (d.loc.end = I));
|
|
664
664
|
}
|
|
665
665
|
function o(d, _) {
|
|
666
|
-
const
|
|
666
|
+
const I = d.context(), E = s(3, I.offset, I.startLoc);
|
|
667
667
|
return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
|
|
668
668
|
}
|
|
669
669
|
function l(d, _) {
|
|
670
|
-
const
|
|
670
|
+
const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(5, E, b);
|
|
671
671
|
return L.index = parseInt(_, 10), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
672
672
|
}
|
|
673
673
|
function i(d, _) {
|
|
674
|
-
const
|
|
674
|
+
const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(4, E, b);
|
|
675
675
|
return L.key = _, d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
676
676
|
}
|
|
677
677
|
function c(d, _) {
|
|
678
|
-
const
|
|
678
|
+
const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(9, E, b);
|
|
679
679
|
return L.value = _.replace(io, co), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
680
680
|
}
|
|
681
681
|
function m(d) {
|
|
682
|
-
const _ = d.nextToken(),
|
|
683
|
-
return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
682
|
+
const _ = d.nextToken(), I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(8, E, b);
|
|
683
|
+
return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, I.lastStartLoc, 0), L.value = "", r(L, E, b), {
|
|
684
684
|
nextConsumeToken: _,
|
|
685
685
|
node: L
|
|
686
|
-
}) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
686
|
+
}) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Te(_)), L.value = _.value || "", r(L, d.currentOffset(), d.currentPosition()), {
|
|
687
687
|
node: L
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
function g(d, _) {
|
|
691
|
-
const
|
|
691
|
+
const I = d.context(), E = s(7, I.offset, I.startLoc);
|
|
692
692
|
return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
|
|
693
693
|
}
|
|
694
694
|
function p(d) {
|
|
695
|
-
const _ = d.context(),
|
|
695
|
+
const _ = d.context(), I = s(6, _.offset, _.startLoc);
|
|
696
696
|
let E = d.nextToken();
|
|
697
697
|
if (E.type === 8) {
|
|
698
698
|
const b = m(d);
|
|
699
|
-
|
|
699
|
+
I.modifier = b.node, E = b.nextConsumeToken || d.nextToken();
|
|
700
700
|
}
|
|
701
701
|
switch (E.type !== 9 && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), E = d.nextToken(), E.type === 2 && (E = d.nextToken()), E.type) {
|
|
702
702
|
case 10:
|
|
703
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
703
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = g(d, E.value || "");
|
|
704
704
|
break;
|
|
705
705
|
case 4:
|
|
706
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
706
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = i(d, E.value || "");
|
|
707
707
|
break;
|
|
708
708
|
case 5:
|
|
709
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
709
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = l(d, E.value || "");
|
|
710
710
|
break;
|
|
711
711
|
case 6:
|
|
712
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
712
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = c(d, E.value || "");
|
|
713
713
|
break;
|
|
714
714
|
default: {
|
|
715
715
|
n(d, D.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
|
|
716
716
|
const b = d.context(), L = s(7, b.offset, b.startLoc);
|
|
717
|
-
return L.value = "", r(L, b.offset, b.startLoc),
|
|
717
|
+
return L.value = "", r(L, b.offset, b.startLoc), I.key = L, r(I, b.offset, b.startLoc), {
|
|
718
718
|
nextConsumeToken: E,
|
|
719
|
-
node:
|
|
719
|
+
node: I
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
return r(
|
|
724
|
-
node:
|
|
723
|
+
return r(I, d.currentOffset(), d.currentPosition()), {
|
|
724
|
+
node: I
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
const _ = d.context(),
|
|
727
|
+
function y(d) {
|
|
728
|
+
const _ = d.context(), I = _.currentType === 1 ? d.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, b = s(2, I, E);
|
|
729
729
|
b.items = [];
|
|
730
730
|
let L = null;
|
|
731
731
|
do {
|
|
@@ -753,24 +753,24 @@ function uo(e = {}) {
|
|
|
753
753
|
const v = _.currentType === 1 ? _.lastOffset : d.currentOffset(), C = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
|
|
754
754
|
return r(b, v, C), b;
|
|
755
755
|
}
|
|
756
|
-
function R(d, _,
|
|
756
|
+
function R(d, _, I, E) {
|
|
757
757
|
const b = d.context();
|
|
758
758
|
let L = E.items.length === 0;
|
|
759
|
-
const v = s(1, _,
|
|
759
|
+
const v = s(1, _, I);
|
|
760
760
|
v.cases = [], v.cases.push(E);
|
|
761
761
|
do {
|
|
762
|
-
const C =
|
|
762
|
+
const C = y(d);
|
|
763
763
|
L || (L = C.items.length === 0), v.cases.push(C);
|
|
764
764
|
} while (b.currentType !== 13);
|
|
765
|
-
return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
765
|
+
return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL, I, 0), r(v, d.currentOffset(), d.currentPosition()), v;
|
|
766
766
|
}
|
|
767
767
|
function S(d) {
|
|
768
|
-
const _ = d.context(), { offset:
|
|
769
|
-
return _.currentType === 13 ? b : R(d,
|
|
768
|
+
const _ = d.context(), { offset: I, startLoc: E } = _, b = y(d);
|
|
769
|
+
return _.currentType === 13 ? b : R(d, I, E, b);
|
|
770
770
|
}
|
|
771
771
|
function O(d) {
|
|
772
|
-
const _ = oo(d, te({}, e)),
|
|
773
|
-
return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)),
|
|
772
|
+
const _ = oo(d, te({}, e)), I = _.context(), E = s(0, I.offset, I.startLoc);
|
|
773
|
+
return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), I.currentType !== 13 && n(_, D.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, d[I.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
|
|
774
774
|
}
|
|
775
775
|
return { parse: O };
|
|
776
776
|
}
|
|
@@ -867,24 +867,24 @@ function Dn(e) {
|
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
const _o = "minifier";
|
|
870
|
-
function
|
|
870
|
+
function at(e) {
|
|
871
871
|
switch (e.t = e.type, e.type) {
|
|
872
872
|
case 0: {
|
|
873
873
|
const t = e;
|
|
874
|
-
|
|
874
|
+
at(t.body), t.b = t.body, delete t.body;
|
|
875
875
|
break;
|
|
876
876
|
}
|
|
877
877
|
case 1: {
|
|
878
878
|
const t = e, a = t.cases;
|
|
879
879
|
for (let n = 0; n < a.length; n++)
|
|
880
|
-
|
|
880
|
+
at(a[n]);
|
|
881
881
|
t.c = a, delete t.cases;
|
|
882
882
|
break;
|
|
883
883
|
}
|
|
884
884
|
case 2: {
|
|
885
885
|
const t = e, a = t.items;
|
|
886
886
|
for (let n = 0; n < a.length; n++)
|
|
887
|
-
|
|
887
|
+
at(a[n]);
|
|
888
888
|
t.i = a, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
889
889
|
break;
|
|
890
890
|
}
|
|
@@ -898,7 +898,7 @@ function tt(e) {
|
|
|
898
898
|
}
|
|
899
899
|
case 6: {
|
|
900
900
|
const t = e;
|
|
901
|
-
|
|
901
|
+
at(t.key), t.k = t.key, delete t.key, t.modifier && (at(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
902
902
|
break;
|
|
903
903
|
}
|
|
904
904
|
case 5: {
|
|
@@ -913,7 +913,7 @@ function tt(e) {
|
|
|
913
913
|
}
|
|
914
914
|
default:
|
|
915
915
|
if (process.env.NODE_ENV !== "production")
|
|
916
|
-
throw
|
|
916
|
+
throw mt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
917
917
|
domain: _o,
|
|
918
918
|
args: [e.type]
|
|
919
919
|
});
|
|
@@ -968,7 +968,7 @@ function Eo(e, t) {
|
|
|
968
968
|
e.push(`${a(
|
|
969
969
|
"linked"
|
|
970
970
|
/* HelperNameMap.LINKED */
|
|
971
|
-
)}(`),
|
|
971
|
+
)}(`), it(e, t.key), t.modifier ? (e.push(", "), it(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
972
972
|
}
|
|
973
973
|
function vo(e, t) {
|
|
974
974
|
const { helper: a, needIndent: n } = e;
|
|
@@ -977,7 +977,7 @@ function vo(e, t) {
|
|
|
977
977
|
/* HelperNameMap.NORMALIZE */
|
|
978
978
|
)}([`), e.indent(n());
|
|
979
979
|
const s = t.items.length;
|
|
980
|
-
for (let r = 0; r < s && (
|
|
980
|
+
for (let r = 0; r < s && (it(e, t.items[r]), r !== s - 1); r++)
|
|
981
981
|
e.push(", ");
|
|
982
982
|
e.deindent(n()), e.push("])");
|
|
983
983
|
}
|
|
@@ -989,19 +989,19 @@ function bo(e, t) {
|
|
|
989
989
|
/* HelperNameMap.PLURAL */
|
|
990
990
|
)}([`), e.indent(n());
|
|
991
991
|
const s = t.cases.length;
|
|
992
|
-
for (let r = 0; r < s && (
|
|
992
|
+
for (let r = 0; r < s && (it(e, t.cases[r]), r !== s - 1); r++)
|
|
993
993
|
e.push(", ");
|
|
994
994
|
e.deindent(n()), e.push("])");
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
t.body ?
|
|
997
|
+
function Io(e, t) {
|
|
998
|
+
t.body ? it(e, t.body) : e.push("null");
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function it(e, t) {
|
|
1001
1001
|
const { helper: a } = e;
|
|
1002
1002
|
switch (t.type) {
|
|
1003
1003
|
case 0:
|
|
1004
|
-
|
|
1004
|
+
Io(e, t);
|
|
1005
1005
|
break;
|
|
1006
1006
|
case 1:
|
|
1007
1007
|
bo(e, t);
|
|
@@ -1044,13 +1044,13 @@ function lt(e, t) {
|
|
|
1044
1044
|
break;
|
|
1045
1045
|
default:
|
|
1046
1046
|
if (process.env.NODE_ENV !== "production")
|
|
1047
|
-
throw
|
|
1047
|
+
throw mt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1048
1048
|
domain: go,
|
|
1049
1049
|
args: [t.type]
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const yo = (e, t = {}) => {
|
|
1054
1054
|
const a = A(t.mode) ? t.mode : "normal", n = A(t.filename) ? t.filename : "message.intl";
|
|
1055
1055
|
t.sourceMap;
|
|
1056
1056
|
const s = t.breakLineCode != null ? t.breakLineCode : a === "arrow" ? ";" : `
|
|
@@ -1059,7 +1059,7 @@ const Io = (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 { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "),
|
|
1062
|
+
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(r), l.push("}"), delete e.helpers;
|
|
1063
1063
|
const { code: i, map: c } = l.context();
|
|
1064
1064
|
return {
|
|
1065
1065
|
ast: e,
|
|
@@ -1070,7 +1070,7 @@ const Io = (e, t = {}) => {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
function No(e, t = {}) {
|
|
1072
1072
|
const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l = uo(a).parse(e);
|
|
1073
|
-
return n ? (r && po(l), s &&
|
|
1073
|
+
return n ? (r && po(l), s && at(l), { ast: l, code: "" }) : (mo(l, a), yo(l, a));
|
|
1074
1074
|
}
|
|
1075
1075
|
/*!
|
|
1076
1076
|
* core-base v11.2.7
|
|
@@ -1078,53 +1078,53 @@ function No(e, t = {}) {
|
|
|
1078
1078
|
* Released under the MIT License.
|
|
1079
1079
|
*/
|
|
1080
1080
|
function So() {
|
|
1081
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
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
1084
|
return U(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
1086
|
const _s = ["b", "body"];
|
|
1087
1087
|
function To(e) {
|
|
1088
|
-
return
|
|
1088
|
+
return xe(e, _s);
|
|
1089
1089
|
}
|
|
1090
1090
|
const gs = ["c", "cases"];
|
|
1091
1091
|
function Lo(e) {
|
|
1092
|
-
return
|
|
1092
|
+
return xe(e, gs, []);
|
|
1093
1093
|
}
|
|
1094
1094
|
const hs = ["s", "static"];
|
|
1095
1095
|
function Oo(e) {
|
|
1096
|
-
return
|
|
1096
|
+
return xe(e, hs);
|
|
1097
1097
|
}
|
|
1098
1098
|
const Es = ["i", "items"];
|
|
1099
1099
|
function Ao(e) {
|
|
1100
|
-
return
|
|
1100
|
+
return xe(e, Es, []);
|
|
1101
1101
|
}
|
|
1102
1102
|
const vs = ["t", "type"];
|
|
1103
1103
|
function un(e) {
|
|
1104
|
-
return
|
|
1104
|
+
return xe(e, vs);
|
|
1105
1105
|
}
|
|
1106
1106
|
const bs = ["v", "value"];
|
|
1107
|
-
function
|
|
1108
|
-
const a =
|
|
1107
|
+
function Kt(e, t) {
|
|
1108
|
+
const a = xe(e, bs);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
|
-
throw
|
|
1111
|
+
throw St(t);
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const Is = ["m", "modifier"];
|
|
1114
1114
|
function Po(e) {
|
|
1115
|
-
return
|
|
1115
|
+
return xe(e, Is);
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const ys = ["k", "key"];
|
|
1118
1118
|
function Ro(e) {
|
|
1119
|
-
const t =
|
|
1119
|
+
const t = xe(e, ys);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
|
-
throw
|
|
1122
|
+
throw St(
|
|
1123
1123
|
6
|
|
1124
1124
|
/* NodeTypes.Linked */
|
|
1125
1125
|
);
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function xe(e, t, a) {
|
|
1128
1128
|
for (let n = 0; n < t.length; n++) {
|
|
1129
1129
|
const s = t[n];
|
|
1130
1130
|
if (be(e, s) && e[s] != null)
|
|
@@ -1137,12 +1137,12 @@ const Ns = [
|
|
|
1137
1137
|
...gs,
|
|
1138
1138
|
...hs,
|
|
1139
1139
|
...Es,
|
|
1140
|
-
...Is,
|
|
1141
1140
|
...ys,
|
|
1141
|
+
...Is,
|
|
1142
1142
|
...bs,
|
|
1143
1143
|
...vs
|
|
1144
1144
|
];
|
|
1145
|
-
function
|
|
1145
|
+
function St(e) {
|
|
1146
1146
|
return new Error(`unhandled node type: ${e}`);
|
|
1147
1147
|
}
|
|
1148
1148
|
function Ca(e) {
|
|
@@ -1151,7 +1151,7 @@ function Ca(e) {
|
|
|
1151
1151
|
function wo(e, t) {
|
|
1152
1152
|
const a = To(t);
|
|
1153
1153
|
if (a == null)
|
|
1154
|
-
throw
|
|
1154
|
+
throw St(
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
@@ -1177,16 +1177,16 @@ function Ha(e, t) {
|
|
|
1177
1177
|
const a = un(t);
|
|
1178
1178
|
switch (a) {
|
|
1179
1179
|
case 3:
|
|
1180
|
-
return
|
|
1180
|
+
return Kt(t, a);
|
|
1181
1181
|
case 9:
|
|
1182
|
-
return
|
|
1182
|
+
return Kt(t, a);
|
|
1183
1183
|
case 4: {
|
|
1184
1184
|
const n = t;
|
|
1185
1185
|
if (be(n, "k") && n.k)
|
|
1186
1186
|
return e.interpolate(e.named(n.k));
|
|
1187
1187
|
if (be(n, "key") && n.key)
|
|
1188
1188
|
return e.interpolate(e.named(n.key));
|
|
1189
|
-
throw
|
|
1189
|
+
throw St(a);
|
|
1190
1190
|
}
|
|
1191
1191
|
case 5: {
|
|
1192
1192
|
const n = t;
|
|
@@ -1194,16 +1194,16 @@ function Ha(e, t) {
|
|
|
1194
1194
|
return e.interpolate(e.list(n.i));
|
|
1195
1195
|
if (be(n, "index") && ee(n.index))
|
|
1196
1196
|
return e.interpolate(e.list(n.index));
|
|
1197
|
-
throw
|
|
1197
|
+
throw St(a);
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
1200
|
const n = t, s = Po(n), r = Ro(n);
|
|
1201
1201
|
return e.linked(Ha(e, r), s ? Ha(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
1204
|
-
return
|
|
1204
|
+
return Kt(t, a);
|
|
1205
1205
|
case 8:
|
|
1206
|
-
return
|
|
1206
|
+
return Kt(t, a);
|
|
1207
1207
|
default:
|
|
1208
1208
|
throw new Error(`unhandled node on format message part: ${a}`);
|
|
1209
1209
|
}
|
|
@@ -1213,7 +1213,7 @@ function Do(e, t) {
|
|
|
1213
1213
|
t && Zr(e) && Le(na(ko, { source: e }));
|
|
1214
1214
|
}
|
|
1215
1215
|
const Co = (e) => e;
|
|
1216
|
-
let
|
|
1216
|
+
let Yt = W();
|
|
1217
1217
|
function Fo(e, t = {}) {
|
|
1218
1218
|
let a = !1;
|
|
1219
1219
|
const n = t.onError || qr;
|
|
@@ -1226,7 +1226,7 @@ function Mo(e, t) {
|
|
|
1226
1226
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
|
|
1227
1227
|
const a = x(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1228
1228
|
process.env.NODE_ENV !== "production" && Do(e, a);
|
|
1229
|
-
const s = (t.onCacheKey || Co)(e), r =
|
|
1229
|
+
const s = (t.onCacheKey || Co)(e), r = Yt[s];
|
|
1230
1230
|
if (r)
|
|
1231
1231
|
return r;
|
|
1232
1232
|
const { ast: o, detectError: l } = Fo(e, {
|
|
@@ -1234,24 +1234,24 @@ function Mo(e, t) {
|
|
|
1234
1234
|
location: process.env.NODE_ENV !== "production",
|
|
1235
1235
|
jit: !0
|
|
1236
1236
|
}), i = Ca(o);
|
|
1237
|
-
return l ? i :
|
|
1237
|
+
return l ? i : Yt[s] = i;
|
|
1238
1238
|
} else {
|
|
1239
1239
|
if (process.env.NODE_ENV !== "production" && !he(e))
|
|
1240
1240
|
return Le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1241
1241
|
const a = e.cacheKey;
|
|
1242
1242
|
if (a) {
|
|
1243
|
-
const n =
|
|
1244
|
-
return n || (
|
|
1243
|
+
const n = Yt[a];
|
|
1244
|
+
return n || (Yt[a] = Ca(e));
|
|
1245
1245
|
} else
|
|
1246
1246
|
return Ca(e);
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
let
|
|
1249
|
+
let Tt = null;
|
|
1250
1250
|
function Uo(e) {
|
|
1251
|
-
|
|
1251
|
+
Tt = e;
|
|
1252
1252
|
}
|
|
1253
1253
|
function xo(e, t, a) {
|
|
1254
|
-
|
|
1254
|
+
Tt && Tt.emit("i18n:init", {
|
|
1255
1255
|
timestamp: Date.now(),
|
|
1256
1256
|
i18n: e,
|
|
1257
1257
|
version: t,
|
|
@@ -1260,7 +1260,7 @@ function xo(e, t, a) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
const Vo = /* @__PURE__ */ $o("function:translate");
|
|
1262
1262
|
function $o(e) {
|
|
1263
|
-
return (t) =>
|
|
1263
|
+
return (t) => Tt && Tt.emit(e, t);
|
|
1264
1264
|
}
|
|
1265
1265
|
const oe = {
|
|
1266
1266
|
INVALID_ARGUMENT: Qr,
|
|
@@ -1273,7 +1273,7 @@ const oe = {
|
|
|
1273
1273
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1274
1274
|
}, Ho = 24;
|
|
1275
1275
|
function we(e) {
|
|
1276
|
-
return
|
|
1276
|
+
return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: Wo } : void 0);
|
|
1277
1277
|
}
|
|
1278
1278
|
const Wo = {
|
|
1279
1279
|
[oe.INVALID_ARGUMENT]: "Invalid arguments",
|
|
@@ -1311,7 +1311,7 @@ function Go(e, t, a) {
|
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
1313
|
function Ss(e, t, a) {
|
|
1314
|
-
const n = A(a) ? a :
|
|
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);
|
|
1317
1317
|
if (!r) {
|
|
@@ -1350,8 +1350,8 @@ function Yo(e, t, a) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
return n;
|
|
1352
1352
|
}
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1353
|
+
const Ve = [];
|
|
1354
|
+
Ve[
|
|
1355
1355
|
0
|
|
1356
1356
|
/* States.BEFORE_PATH */
|
|
1357
1357
|
] = {
|
|
@@ -1373,7 +1373,7 @@ xe[
|
|
|
1373
1373
|
/* States.AFTER_PATH */
|
|
1374
1374
|
]
|
|
1375
1375
|
};
|
|
1376
|
-
|
|
1376
|
+
Ve[
|
|
1377
1377
|
1
|
|
1378
1378
|
/* States.IN_PATH */
|
|
1379
1379
|
] = {
|
|
@@ -1394,7 +1394,7 @@ xe[
|
|
|
1394
1394
|
/* States.AFTER_PATH */
|
|
1395
1395
|
]
|
|
1396
1396
|
};
|
|
1397
|
-
|
|
1397
|
+
Ve[
|
|
1398
1398
|
2
|
|
1399
1399
|
/* States.BEFORE_IDENT */
|
|
1400
1400
|
] = {
|
|
@@ -1413,7 +1413,7 @@ xe[
|
|
|
1413
1413
|
/* Actions.APPEND */
|
|
1414
1414
|
]
|
|
1415
1415
|
};
|
|
1416
|
-
|
|
1416
|
+
Ve[
|
|
1417
1417
|
3
|
|
1418
1418
|
/* States.IN_IDENT */
|
|
1419
1419
|
] = {
|
|
@@ -1448,7 +1448,7 @@ xe[
|
|
|
1448
1448
|
/* Actions.PUSH */
|
|
1449
1449
|
]
|
|
1450
1450
|
};
|
|
1451
|
-
|
|
1451
|
+
Ve[
|
|
1452
1452
|
4
|
|
1453
1453
|
/* States.IN_SUB_PATH */
|
|
1454
1454
|
] = {
|
|
@@ -1479,7 +1479,7 @@ xe[
|
|
|
1479
1479
|
/* Actions.APPEND */
|
|
1480
1480
|
]
|
|
1481
1481
|
};
|
|
1482
|
-
|
|
1482
|
+
Ve[
|
|
1483
1483
|
5
|
|
1484
1484
|
/* States.IN_SINGLE_QUOTE */
|
|
1485
1485
|
] = {
|
|
@@ -1495,7 +1495,7 @@ xe[
|
|
|
1495
1495
|
/* Actions.APPEND */
|
|
1496
1496
|
]
|
|
1497
1497
|
};
|
|
1498
|
-
|
|
1498
|
+
Ve[
|
|
1499
1499
|
6
|
|
1500
1500
|
/* States.IN_DOUBLE_QUOTE */
|
|
1501
1501
|
] = {
|
|
@@ -1600,7 +1600,7 @@ function qo(e) {
|
|
|
1600
1600
|
]();
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
|
-
function
|
|
1603
|
+
function y() {
|
|
1604
1604
|
const R = e[a + 1];
|
|
1605
1605
|
if (n === 5 && R === "'" || n === 6 && R === '"')
|
|
1606
1606
|
return a++, l = "\\" + R, p[
|
|
@@ -1609,8 +1609,8 @@ function qo(e) {
|
|
|
1609
1609
|
](), !0;
|
|
1610
1610
|
}
|
|
1611
1611
|
for (; n !== null; )
|
|
1612
|
-
if (a++, r = e[a], !(r === "\\" &&
|
|
1613
|
-
if (i = Qo(r), g =
|
|
1612
|
+
if (a++, r = e[a], !(r === "\\" && y())) {
|
|
1613
|
+
if (i = Qo(r), g = Ve[n], c = g[i] || g.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
|
|
1614
1614
|
return;
|
|
1615
1615
|
if (n === 7)
|
|
1616
1616
|
return t;
|
|
@@ -1656,10 +1656,10 @@ const ce = {
|
|
|
1656
1656
|
[ce.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1657
1657
|
[ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1659
|
+
function Qe(e, ...t) {
|
|
1660
1660
|
return na(tl[e], ...t);
|
|
1661
1661
|
}
|
|
1662
|
-
const al = "11.2.7", ra = -1,
|
|
1662
|
+
const al = "11.2.7", ra = -1, Lt = "en-US", Xt = "", xn = (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,
|
|
@@ -1689,8 +1689,8 @@ const Vn = (e) => {
|
|
|
1689
1689
|
}, cl = () => Ps;
|
|
1690
1690
|
let $n = 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 :
|
|
1693
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(
|
|
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 : Ts;
|
|
1693
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Qe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
1694
|
const b = G(e.messageResolver) ? e.messageResolver : Ls || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : Os || Go, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
|
|
1695
1695
|
$n++;
|
|
1696
1696
|
const Q = {
|
|
@@ -1703,13 +1703,13 @@ function ul(e = {}) {
|
|
|
1703
1703
|
pluralRules: m,
|
|
1704
1704
|
missing: g,
|
|
1705
1705
|
missingWarn: p,
|
|
1706
|
-
fallbackWarn:
|
|
1706
|
+
fallbackWarn: y,
|
|
1707
1707
|
fallbackFormat: R,
|
|
1708
1708
|
unresolving: S,
|
|
1709
1709
|
postTranslation: O,
|
|
1710
1710
|
processor: d,
|
|
1711
1711
|
warnHtmlMessage: _,
|
|
1712
|
-
escapeParameter:
|
|
1712
|
+
escapeParameter: I,
|
|
1713
1713
|
messageCompiler: E,
|
|
1714
1714
|
messageResolver: b,
|
|
1715
1715
|
localeFallbacker: L,
|
|
@@ -1741,9 +1741,9 @@ 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" && Rs(n, t) && o(
|
|
1744
|
+
return process.env.NODE_ENV !== "production" && Rs(n, t) && o(Qe(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
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
|
}
|
|
@@ -1766,8 +1766,8 @@ const Hn = typeof Intl < "u", ks = {
|
|
|
1766
1766
|
function Wn(e, ...t) {
|
|
1767
1767
|
const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
|
|
1768
1768
|
if (process.env.NODE_ENV !== "production" && !ks.dateTimeFormat)
|
|
1769
|
-
return r(
|
|
1770
|
-
const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
1769
|
+
return r(Qe(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
+
const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
|
|
1771
1771
|
e,
|
|
1772
1772
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1773
1773
|
s,
|
|
@@ -1775,10 +1775,10 @@ function Wn(e, ...t) {
|
|
|
1775
1775
|
);
|
|
1776
1776
|
if (!A(i) || i === "")
|
|
1777
1777
|
return new Intl.DateTimeFormat(S, g).format(c);
|
|
1778
|
-
let d = {}, _,
|
|
1778
|
+
let d = {}, _, I = null, E = S, b = null;
|
|
1779
1779
|
const L = "datetime format";
|
|
1780
1780
|
for (let M = 0; M < O.length; M++) {
|
|
1781
|
-
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(
|
|
1781
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(y, i) && r(Qe(ce.FALLBACK_TO_DATE_FORMAT, {
|
|
1782
1782
|
key: i,
|
|
1783
1783
|
target: _
|
|
1784
1784
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1791,16 +1791,16 @@ function Wn(e, ...t) {
|
|
|
1791
1791
|
groupId: `${L}:${i}`
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
|
-
if (d = a[_] || {},
|
|
1794
|
+
if (d = a[_] || {}, I = d[i], F(I))
|
|
1795
1795
|
break;
|
|
1796
1796
|
dn(e, i, _, p, L), E = b;
|
|
1797
1797
|
}
|
|
1798
|
-
if (!F(
|
|
1798
|
+
if (!F(I) || !A(_))
|
|
1799
1799
|
return n ? ra : i;
|
|
1800
1800
|
let v = `${_}__${i}`;
|
|
1801
1801
|
sa(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
1802
1802
|
let C = l.get(v);
|
|
1803
|
-
return C || (C = new Intl.DateTimeFormat(_, te({},
|
|
1803
|
+
return C || (C = new Intl.DateTimeFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1804
1804
|
}
|
|
1805
1805
|
const Ds = [
|
|
1806
1806
|
"localeMatcher",
|
|
@@ -1860,8 +1860,8 @@ function Gn(e, t, a) {
|
|
|
1860
1860
|
function Kn(e, ...t) {
|
|
1861
1861
|
const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
|
|
1862
1862
|
if (process.env.NODE_ENV !== "production" && !ks.numberFormat)
|
|
1863
|
-
return r(
|
|
1864
|
-
const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
1863
|
+
return r(Qe(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
+
const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
|
|
1865
1865
|
e,
|
|
1866
1866
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1867
1867
|
s,
|
|
@@ -1869,10 +1869,10 @@ function Kn(e, ...t) {
|
|
|
1869
1869
|
);
|
|
1870
1870
|
if (!A(i) || i === "")
|
|
1871
1871
|
return new Intl.NumberFormat(S, g).format(c);
|
|
1872
|
-
let d = {}, _,
|
|
1872
|
+
let d = {}, _, I = null, E = S, b = null;
|
|
1873
1873
|
const L = "number format";
|
|
1874
1874
|
for (let M = 0; M < O.length; M++) {
|
|
1875
|
-
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(
|
|
1875
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(y, i) && r(Qe(ce.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1876
1876
|
key: i,
|
|
1877
1877
|
target: _
|
|
1878
1878
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1885,16 +1885,16 @@ function Kn(e, ...t) {
|
|
|
1885
1885
|
groupId: `${L}:${i}`
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
|
-
if (d = a[_] || {},
|
|
1888
|
+
if (d = a[_] || {}, I = d[i], F(I))
|
|
1889
1889
|
break;
|
|
1890
1890
|
dn(e, i, _, p, L), E = b;
|
|
1891
1891
|
}
|
|
1892
|
-
if (!F(
|
|
1892
|
+
if (!F(I) || !A(_))
|
|
1893
1893
|
return n ? ra : i;
|
|
1894
1894
|
let v = `${_}__${i}`;
|
|
1895
1895
|
sa(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
1896
1896
|
let C = l.get(v);
|
|
1897
|
-
return C || (C = new Intl.NumberFormat(_, te({},
|
|
1897
|
+
return C || (C = new Intl.NumberFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
|
|
1898
1898
|
}
|
|
1899
1899
|
const Cs = [
|
|
1900
1900
|
"localeMatcher",
|
|
@@ -1951,17 +1951,17 @@ function vl(e = {}) {
|
|
|
1951
1951
|
ee(e.pluralIndex) && El(a, i);
|
|
1952
1952
|
const c = (d) => i[d];
|
|
1953
1953
|
function m(d, _) {
|
|
1954
|
-
const
|
|
1955
|
-
return
|
|
1954
|
+
const I = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
|
|
1955
|
+
return I || (e.parent ? e.parent.message(d) : ml);
|
|
1956
1956
|
}
|
|
1957
|
-
const g = (d) => e.modifiers ? e.modifiers[d] : dl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : _l,
|
|
1957
|
+
const g = (d) => e.modifiers ? e.modifiers[d] : dl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : _l, y = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : gl, R = F(e.processor) && A(e.processor.type) ? e.processor.type : pl, O = {
|
|
1958
1958
|
list: l,
|
|
1959
1959
|
named: c,
|
|
1960
1960
|
plural: r,
|
|
1961
1961
|
linked: (d, ..._) => {
|
|
1962
|
-
const [
|
|
1962
|
+
const [I, E] = _;
|
|
1963
1963
|
let b = "text", L = "";
|
|
1964
|
-
_.length === 1 ? U(
|
|
1964
|
+
_.length === 1 ? U(I) ? (L = I.modifier || L, b = I.type || b) : A(I) && (L = I || L) : _.length === 2 && (A(I) && (L = I || L), A(E) && (b = E || b));
|
|
1965
1965
|
const v = m(d, !0)(O), C = (
|
|
1966
1966
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1967
1967
|
b === "vnode" && J(v) && L ? v[0] : v
|
|
@@ -1970,7 +1970,7 @@ function vl(e = {}) {
|
|
|
1970
1970
|
},
|
|
1971
1971
|
message: m,
|
|
1972
1972
|
type: R,
|
|
1973
|
-
interpolate:
|
|
1973
|
+
interpolate: y,
|
|
1974
1974
|
normalize: p,
|
|
1975
1975
|
values: te(W(), o, i)
|
|
1976
1976
|
};
|
|
@@ -1978,14 +1978,14 @@ function vl(e = {}) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
const jn = () => "", pe = (e) => G(e);
|
|
1980
1980
|
function Jn(e, ...t) {
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter,
|
|
1981
|
+
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, y = !!c.resolvedMessage, R = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = fn(e, c);
|
|
1982
1982
|
p && bl(c);
|
|
1983
|
-
let [d, _,
|
|
1983
|
+
let [d, _, I] = y ? [
|
|
1984
1984
|
i,
|
|
1985
1985
|
O,
|
|
1986
1986
|
l[O] || W()
|
|
1987
1987
|
] : Fs(e, i, O, o, g, m), E = d, b = i;
|
|
1988
|
-
if (!
|
|
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)
|
|
1991
1991
|
return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
@@ -1995,17 +1995,17 @@ function Jn(e, ...t) {
|
|
|
1995
1995
|
}, C = pe(E) ? E : Ms(e, i, _, E, b, v);
|
|
1996
1996
|
if (L)
|
|
1997
1997
|
return E;
|
|
1998
|
-
const M = Sl(e, _,
|
|
1998
|
+
const M = Sl(e, _, I, c), K = vl(M), Ee = Il(e, C, K);
|
|
1999
1999
|
let Q = n ? n(Ee, i) : Ee;
|
|
2000
2000
|
if (p && A(Q) && (Q = Gr(Q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2001
|
-
const
|
|
2001
|
+
const ze = {
|
|
2002
2002
|
timestamp: Date.now(),
|
|
2003
2003
|
key: A(i) ? i : pe(E) ? E.key : "",
|
|
2004
2004
|
locale: _ || (pe(E) ? E.locale : ""),
|
|
2005
2005
|
format: A(E) ? E : pe(E) ? E.source : "",
|
|
2006
2006
|
message: Q
|
|
2007
2007
|
};
|
|
2008
|
-
|
|
2008
|
+
ze.meta = te({}, e.__meta, /* @__PURE__ */ il() || {}), Vo(ze);
|
|
2009
2009
|
}
|
|
2010
2010
|
return Q;
|
|
2011
2011
|
}
|
|
@@ -2016,10 +2016,10 @@ function bl(e) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
function Fs(e, t, a, n, s, r) {
|
|
2018
2018
|
const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, n, a);
|
|
2019
|
-
let g = W(), p,
|
|
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 && !ws(a, p) && oa(s, t) && l(
|
|
2022
|
+
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !ws(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) {
|
|
@@ -2033,18 +2033,18 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
2035
|
g = o[p] || W();
|
|
2036
|
-
let _ = null,
|
|
2037
|
-
if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(),
|
|
2036
|
+
let _ = null, I, E;
|
|
2037
|
+
if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(), I = "intlify-message-resolve-start", E = "intlify-message-resolve-end", fe && fe(I)), (y = i(g, t)) === null && (y = g[t]), process.env.NODE_ENV !== "production" && Ne) {
|
|
2038
2038
|
const b = window.performance.now(), L = e.__v_emitter;
|
|
2039
|
-
L && _ &&
|
|
2039
|
+
L && _ && y && L.emit("message-resolve", {
|
|
2040
2040
|
type: "message-resolve",
|
|
2041
2041
|
key: t,
|
|
2042
|
-
message:
|
|
2042
|
+
message: y,
|
|
2043
2043
|
time: b - _,
|
|
2044
2044
|
groupId: `${O}:${t}`
|
|
2045
|
-
}),
|
|
2045
|
+
}), I && E && fe && Je && (fe(E), Je("intlify message resolve", I, E));
|
|
2046
2046
|
}
|
|
2047
|
-
if (A(
|
|
2047
|
+
if (A(y) || he(y) || pe(y))
|
|
2048
2048
|
break;
|
|
2049
2049
|
if (!fl(p, m)) {
|
|
2050
2050
|
const b = dn(
|
|
@@ -2055,11 +2055,11 @@ function Fs(e, t, a, n, s, r) {
|
|
|
2055
2055
|
r,
|
|
2056
2056
|
O
|
|
2057
2057
|
);
|
|
2058
|
-
b !== t && (
|
|
2058
|
+
b !== t && (y = b);
|
|
2059
2059
|
}
|
|
2060
2060
|
R = S;
|
|
2061
2061
|
}
|
|
2062
|
-
return [
|
|
2062
|
+
return [y, p, g];
|
|
2063
2063
|
}
|
|
2064
2064
|
function Ms(e, t, a, n, s, r) {
|
|
2065
2065
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
@@ -2073,19 +2073,19 @@ function Ms(e, t, a, n, s, r) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
let i = null, c, m;
|
|
2075
2075
|
process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", fe && fe(c));
|
|
2076
|
-
const g = o(n,
|
|
2076
|
+
const g = o(n, yl(e, a, s, n, l, r));
|
|
2077
2077
|
if (process.env.NODE_ENV !== "production" && Ne) {
|
|
2078
|
-
const p = window.performance.now(),
|
|
2079
|
-
|
|
2078
|
+
const p = window.performance.now(), y = e.__v_emitter;
|
|
2079
|
+
y && i && y.emit("message-compilation", {
|
|
2080
2080
|
type: "message-compilation",
|
|
2081
2081
|
message: n,
|
|
2082
2082
|
time: p - i,
|
|
2083
2083
|
groupId: `translate:${t}`
|
|
2084
|
-
}), c && m && fe &&
|
|
2084
|
+
}), c && m && fe && Je && (fe(m), Je("intlify message compilation", c, m));
|
|
2085
2085
|
}
|
|
2086
2086
|
return g.locale = a, g.key = t, g.source = n, g;
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Il(e, t, a) {
|
|
2089
2089
|
let n = null, s, r;
|
|
2090
2090
|
process.env.NODE_ENV !== "production" && Ne && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", fe && fe(s));
|
|
2091
2091
|
const o = t(a);
|
|
@@ -2096,7 +2096,7 @@ function yl(e, t, a) {
|
|
|
2096
2096
|
value: o,
|
|
2097
2097
|
time: l - n,
|
|
2098
2098
|
groupId: `translate:${t.key}`
|
|
2099
|
-
}), s && r && fe &&
|
|
2099
|
+
}), s && r && fe && Je && (fe(r), Je("intlify message evaluation", s, r));
|
|
2100
2100
|
}
|
|
2101
2101
|
return o;
|
|
2102
2102
|
}
|
|
@@ -2107,7 +2107,7 @@ function Ka(...e) {
|
|
|
2107
2107
|
const r = ee(t) ? String(t) : (pe(t), t);
|
|
2108
2108
|
return ee(a) ? s.plural = a : A(a) ? s.default = a : F(a) && !sa(a) ? s.named = a : J(a) && (s.list = a), ee(n) ? s.plural = n : A(n) ? s.default = n : F(n) && te(s, n), [r, s];
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function yl(e, t, a, n, s, r) {
|
|
2111
2111
|
return {
|
|
2112
2112
|
locale: t,
|
|
2113
2113
|
key: a,
|
|
@@ -2140,23 +2140,23 @@ function Sl(e, t, a, n) {
|
|
|
2140
2140
|
locale: t,
|
|
2141
2141
|
modifiers: s,
|
|
2142
2142
|
pluralRules: r,
|
|
2143
|
-
messages: (
|
|
2144
|
-
let S = o(a,
|
|
2143
|
+
messages: (y, R) => {
|
|
2144
|
+
let S = o(a, y);
|
|
2145
2145
|
if (S == null && (m || R)) {
|
|
2146
2146
|
const [, , O] = Fs(
|
|
2147
2147
|
m || e,
|
|
2148
2148
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2149
|
-
|
|
2149
|
+
y,
|
|
2150
2150
|
t,
|
|
2151
2151
|
l,
|
|
2152
2152
|
i,
|
|
2153
2153
|
c
|
|
2154
2154
|
);
|
|
2155
|
-
S = o(O,
|
|
2155
|
+
S = o(O, y);
|
|
2156
2156
|
}
|
|
2157
2157
|
if (A(S) || he(S)) {
|
|
2158
2158
|
let O = !1;
|
|
2159
|
-
const _ = Ms(e,
|
|
2159
|
+
const _ = Ms(e, y, t, S, y, () => {
|
|
2160
2160
|
O = !0;
|
|
2161
2161
|
});
|
|
2162
2162
|
return O ? jn : _;
|
|
@@ -2173,10 +2173,10 @@ function Us() {
|
|
|
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
|
|
2176
|
+
let et, Ya;
|
|
2177
2177
|
function Pl() {
|
|
2178
2178
|
var e;
|
|
2179
|
-
return
|
|
2179
|
+
return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (et = !0, Ya = globalThis.perf_hooks.performance) : et = !1), et;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Rl() {
|
|
2182
2182
|
return Pl() ? Ya.now() : Date.now();
|
|
@@ -2263,7 +2263,7 @@ function kl(e, t) {
|
|
|
2263
2263
|
*/
|
|
2264
2264
|
const Dl = "11.2.7";
|
|
2265
2265
|
function Cl() {
|
|
2266
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2266
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ge().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ge().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2267
2267
|
}
|
|
2268
2268
|
const Y = {
|
|
2269
2269
|
// composer module errors
|
|
@@ -2288,7 +2288,7 @@ const Y = {
|
|
|
2288
2288
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2289
2289
|
};
|
|
2290
2290
|
function ue(e, ...t) {
|
|
2291
|
-
return
|
|
2291
|
+
return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: Fl, args: t } : void 0);
|
|
2292
2292
|
}
|
|
2293
2293
|
const Fl = {
|
|
2294
2294
|
[Y.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -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
|
-
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"),
|
|
2305
|
+
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Xe = /* @__PURE__ */ Oe("__enableEmitter"), Ot = /* @__PURE__ */ Oe("__disableEmitter"), xs = Oe("__setPluralRules"), Vs = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
2306
|
FALLBACK_TO_ROOT: el,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2332,16 +2332,16 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2332
2332
|
[_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2333
2333
|
[_e.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2334
2334
|
};
|
|
2335
|
-
function
|
|
2335
|
+
function ct(e, ...t) {
|
|
2336
2336
|
return na(Ml[e], ...t);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function At(e) {
|
|
2339
2339
|
if (!U(e) || he(e))
|
|
2340
2340
|
return e;
|
|
2341
2341
|
for (const t in e)
|
|
2342
2342
|
if (be(e, t))
|
|
2343
2343
|
if (!t.includes("."))
|
|
2344
|
-
U(e[t]) &&
|
|
2344
|
+
U(e[t]) && At(e[t]);
|
|
2345
2345
|
else {
|
|
2346
2346
|
const a = t.split("."), n = a.length - 1;
|
|
2347
2347
|
let s = e, r = !1;
|
|
@@ -2349,7 +2349,7 @@ function Ot(e) {
|
|
|
2349
2349
|
if (a[o] === "__proto__")
|
|
2350
2350
|
throw new Error(`unsafe key: ${a[o]}`);
|
|
2351
2351
|
if (a[o] in s || (s[a[o]] = W()), !U(s[a[o]])) {
|
|
2352
|
-
process.env.NODE_ENV !== "production" && Le(
|
|
2352
|
+
process.env.NODE_ENV !== "production" && Le(ct(_e.IGNORE_OBJ_FLATTEN, {
|
|
2353
2353
|
key: a[o]
|
|
2354
2354
|
})), r = !0;
|
|
2355
2355
|
break;
|
|
@@ -2358,7 +2358,7 @@ function Ot(e) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
if (r || (he(s) ? Ns.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
|
|
2360
2360
|
const o = s[a[n]];
|
|
2361
|
-
U(o) &&
|
|
2361
|
+
U(o) && At(o);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
@@ -2368,12 +2368,12 @@ function mn(e, t) {
|
|
|
2368
2368
|
if (J(n) && n.forEach((l) => {
|
|
2369
2369
|
if ("locale" in l && "resource" in l) {
|
|
2370
2370
|
const { locale: i, resource: c } = l;
|
|
2371
|
-
i ? (o[i] = o[i] || W(),
|
|
2371
|
+
i ? (o[i] = o[i] || W(), jt(c, o[i])) : jt(c, o);
|
|
2372
2372
|
} else
|
|
2373
|
-
A(l) &&
|
|
2373
|
+
A(l) && jt(JSON.parse(l), o);
|
|
2374
2374
|
}), s == null && r)
|
|
2375
2375
|
for (const l in o)
|
|
2376
|
-
be(o, l) &&
|
|
2376
|
+
be(o, l) && At(o[l]);
|
|
2377
2377
|
return o;
|
|
2378
2378
|
}
|
|
2379
2379
|
function $s(e) {
|
|
@@ -2405,19 +2405,19 @@ function Hs(e, t, a) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
function Qn(e) {
|
|
2408
|
-
return
|
|
2408
|
+
return Be(hr, null, e, 0);
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function rt() {
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
2412
|
return e in wa ? wa[e] : wa.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
2414
|
const Xn = "__INTLIFY_META__", qn = () => [], Ul = () => !1;
|
|
2415
2415
|
let zn = 0;
|
|
2416
2416
|
function Zn(e) {
|
|
2417
|
-
return ((t, a, n, s) => e(a, n,
|
|
2417
|
+
return ((t, a, n, s) => e(a, n, rt() || void 0, s));
|
|
2418
2418
|
}
|
|
2419
2419
|
const xl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2420
|
-
const e =
|
|
2420
|
+
const e = rt();
|
|
2421
2421
|
let t = null;
|
|
2422
2422
|
return e && (t = $s(e)[Xn]) ? { [Xn]: t } : null;
|
|
2423
2423
|
};
|
|
@@ -2426,12 +2426,12 @@ function pn(e = {}) {
|
|
|
2426
2426
|
let o = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2427
2427
|
const l = r(
|
|
2428
2428
|
// prettier-ignore
|
|
2429
|
-
t && o ? t.locale.value : A(e.locale) ? e.locale :
|
|
2429
|
+
t && o ? t.locale.value : A(e.locale) ? e.locale : Lt
|
|
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
2433
|
), c = r(mn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2434
|
-
let p = t ? t.missingWarn : x(e.missingWarn) ||
|
|
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) ? Zn(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 = (() => {
|
|
@@ -2445,11 +2445,11 @@ function pn(e = {}) {
|
|
|
2445
2445
|
pluralRules: L,
|
|
2446
2446
|
missing: d === null ? void 0 : d,
|
|
2447
2447
|
missingWarn: p,
|
|
2448
|
-
fallbackWarn:
|
|
2448
|
+
fallbackWarn: y,
|
|
2449
2449
|
fallbackFormat: S,
|
|
2450
2450
|
unresolving: !0,
|
|
2451
2451
|
postTranslation: _ === null ? void 0 : _,
|
|
2452
|
-
warnHtmlMessage:
|
|
2452
|
+
warnHtmlMessage: I,
|
|
2453
2453
|
escapeParameter: E,
|
|
2454
2454
|
messageResolver: e.messageResolver,
|
|
2455
2455
|
messageCompiler: e.messageCompiler,
|
|
@@ -2458,7 +2458,7 @@ function pn(e = {}) {
|
|
|
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
2460
|
return n && Vn(T), T;
|
|
2461
|
-
})(),
|
|
2461
|
+
})(), vt(v, l.value, i.value);
|
|
2462
2462
|
function M() {
|
|
2463
2463
|
return [
|
|
2464
2464
|
l.value,
|
|
@@ -2468,17 +2468,17 @@ function pn(e = {}) {
|
|
|
2468
2468
|
g.value
|
|
2469
2469
|
];
|
|
2470
2470
|
}
|
|
2471
|
-
const K =
|
|
2471
|
+
const K = tt({
|
|
2472
2472
|
get: () => l.value,
|
|
2473
2473
|
set: (h) => {
|
|
2474
2474
|
v.locale = h, l.value = h;
|
|
2475
2475
|
}
|
|
2476
|
-
}), Ee =
|
|
2476
|
+
}), Ee = tt({
|
|
2477
2477
|
get: () => i.value,
|
|
2478
2478
|
set: (h) => {
|
|
2479
|
-
v.fallbackLocale = h, i.value = h,
|
|
2479
|
+
v.fallbackLocale = h, i.value = h, vt(v, l.value, h);
|
|
2480
2480
|
}
|
|
2481
|
-
}), Q =
|
|
2481
|
+
}), Q = tt(() => c.value), ze = /* @__PURE__ */ tt(() => m.value), ga = /* @__PURE__ */ tt(() => g.value);
|
|
2482
2482
|
function ha() {
|
|
2483
2483
|
return G(_) ? _ : null;
|
|
2484
2484
|
}
|
|
@@ -2491,47 +2491,47 @@ function pn(e = {}) {
|
|
|
2491
2491
|
function ba(h) {
|
|
2492
2492
|
h !== null && (d = Zn(h)), O = h, v.missing = d;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function Ia(h, T) {
|
|
2495
2495
|
return h !== "translate" || !T.resolvedMessage;
|
|
2496
2496
|
}
|
|
2497
|
-
const Ae = (h, T, H, z,
|
|
2497
|
+
const Ae = (h, T, H, z, He, Ht) => {
|
|
2498
2498
|
M();
|
|
2499
|
-
let
|
|
2499
|
+
let Ze;
|
|
2500
2500
|
try {
|
|
2501
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ? cl() : void 0),
|
|
2501
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ? cl() : void 0), Ze = h(v);
|
|
2502
2502
|
} finally {
|
|
2503
2503
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = void 0);
|
|
2504
2504
|
}
|
|
2505
2505
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2506
|
-
ee(
|
|
2507
|
-
const [
|
|
2508
|
-
if (process.env.NODE_ENV !== "production" && t && A(
|
|
2509
|
-
key:
|
|
2506
|
+
ee(Ze) && Ze === ra || H === "translate exists" && !Ze) {
|
|
2507
|
+
const [We, dr] = T();
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && t && A(We) && Ia(H, dr) && (R && (oa(y, We) || Rs(p, We)) && Le(ct(_e.FALLBACK_TO_ROOT, {
|
|
2509
|
+
key: We,
|
|
2510
2510
|
type: H
|
|
2511
2511
|
})), process.env.NODE_ENV !== "production")) {
|
|
2512
2512
|
const { __v_emitter: Nn } = v;
|
|
2513
2513
|
Nn && R && Nn.emit("fallback", {
|
|
2514
2514
|
type: H,
|
|
2515
|
-
key:
|
|
2515
|
+
key: We,
|
|
2516
2516
|
to: "global",
|
|
2517
|
-
groupId: `${H}:${
|
|
2517
|
+
groupId: `${H}:${We}`
|
|
2518
2518
|
});
|
|
2519
2519
|
}
|
|
2520
|
-
return t && R ? z(t) :
|
|
2520
|
+
return t && R ? z(t) : He(We);
|
|
2521
2521
|
} else {
|
|
2522
|
-
if (
|
|
2523
|
-
return
|
|
2522
|
+
if (Ht(Ze))
|
|
2523
|
+
return Ze;
|
|
2524
2524
|
throw ue(Y.UNEXPECTED_RETURN_TYPE);
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
|
-
function
|
|
2527
|
+
function _t(...h) {
|
|
2528
2528
|
return Ae((T) => Reflect.apply(Jn, null, [T, ...h]), () => Ka(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function ya(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
2532
2532
|
if (z && !U(z))
|
|
2533
2533
|
throw ue(Y.INVALID_ARGUMENT);
|
|
2534
|
-
return
|
|
2534
|
+
return _t(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2535
2535
|
}
|
|
2536
2536
|
function Na(...h) {
|
|
2537
2537
|
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
@@ -2547,7 +2547,7 @@ function pn(e = {}) {
|
|
|
2547
2547
|
interpolate: (h) => h,
|
|
2548
2548
|
type: "vnode"
|
|
2549
2549
|
};
|
|
2550
|
-
function
|
|
2550
|
+
function Vt(...h) {
|
|
2551
2551
|
return Ae((T) => {
|
|
2552
2552
|
let H;
|
|
2553
2553
|
const z = T;
|
|
@@ -2562,7 +2562,7 @@ function pn(e = {}) {
|
|
|
2562
2562
|
function Oa(...h) {
|
|
2563
2563
|
return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () => Ga(...h), "number format", (T) => T[Ja](...h), qn, (T) => A(T) || J(T));
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function $t(...h) {
|
|
2566
2566
|
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => T[ja](...h), qn, (T) => A(T) || J(T));
|
|
2567
2567
|
}
|
|
2568
2568
|
function Aa(h) {
|
|
@@ -2572,34 +2572,34 @@ function pn(e = {}) {
|
|
|
2572
2572
|
return Ae(() => {
|
|
2573
2573
|
if (!h)
|
|
2574
2574
|
return !1;
|
|
2575
|
-
const H = A(T) ? T : l.value, z =
|
|
2576
|
-
return he(
|
|
2575
|
+
const H = A(T) ? T : l.value, z = $e(H), He = v.messageResolver(z, h);
|
|
2576
|
+
return he(He) || pe(He) || A(He);
|
|
2577
2577
|
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), Ul, (H) => x(H));
|
|
2578
2578
|
}
|
|
2579
|
-
function
|
|
2579
|
+
function gt(h) {
|
|
2580
2580
|
let T = null;
|
|
2581
2581
|
const H = Ss(v, i.value, l.value);
|
|
2582
2582
|
for (let z = 0; z < H.length; z++) {
|
|
2583
|
-
const
|
|
2584
|
-
if (
|
|
2585
|
-
T =
|
|
2583
|
+
const He = c.value[H[z]] || {}, Ht = v.messageResolver(He, h);
|
|
2584
|
+
if (Ht != null) {
|
|
2585
|
+
T = Ht;
|
|
2586
2586
|
break;
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
return T;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const T =
|
|
2591
|
+
function ht(h) {
|
|
2592
|
+
const T = gt(h);
|
|
2593
2593
|
return T ?? (t ? t.tm(h) || {} : {});
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2595
|
+
function $e(h) {
|
|
2596
2596
|
return c.value[h] || {};
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Et(h, T) {
|
|
2599
2599
|
if (s) {
|
|
2600
2600
|
const H = { [h]: T };
|
|
2601
2601
|
for (const z in H)
|
|
2602
|
-
be(H, z) &&
|
|
2602
|
+
be(H, z) && At(H[z]);
|
|
2603
2603
|
T = H[h];
|
|
2604
2604
|
}
|
|
2605
2605
|
c.value[h] = T, v.messages = c.value;
|
|
@@ -2609,8 +2609,8 @@ function pn(e = {}) {
|
|
|
2609
2609
|
const H = { [h]: T };
|
|
2610
2610
|
if (s)
|
|
2611
2611
|
for (const z in H)
|
|
2612
|
-
be(H, z) &&
|
|
2613
|
-
T = H[h],
|
|
2612
|
+
be(H, z) && At(H[z]);
|
|
2613
|
+
T = H[h], jt(T, c.value[h]), v.messages = c.value;
|
|
2614
2614
|
}
|
|
2615
2615
|
function u(h) {
|
|
2616
2616
|
return m.value[h] || {};
|
|
@@ -2631,9 +2631,9 @@ function pn(e = {}) {
|
|
|
2631
2631
|
g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value, Yn(v, h, T);
|
|
2632
2632
|
}
|
|
2633
2633
|
zn++, t && Ne && (B(t.locale, (h) => {
|
|
2634
|
-
o && (l.value = h, v.locale = h,
|
|
2634
|
+
o && (l.value = h, v.locale = h, vt(v, l.value, i.value));
|
|
2635
2635
|
}), B(t.fallbackLocale, (h) => {
|
|
2636
|
-
o && (i.value = h, v.fallbackLocale = h,
|
|
2636
|
+
o && (i.value = h, v.fallbackLocale = h, vt(v, l.value, i.value));
|
|
2637
2637
|
}));
|
|
2638
2638
|
const V = {
|
|
2639
2639
|
id: zn,
|
|
@@ -2643,7 +2643,7 @@ function pn(e = {}) {
|
|
|
2643
2643
|
return o;
|
|
2644
2644
|
},
|
|
2645
2645
|
set inheritLocale(h) {
|
|
2646
|
-
o = h, h && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value,
|
|
2646
|
+
o = h, h && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, vt(v, l.value, i.value));
|
|
2647
2647
|
},
|
|
2648
2648
|
get availableLocales() {
|
|
2649
2649
|
return Object.keys(c.value).sort();
|
|
@@ -2665,10 +2665,10 @@ function pn(e = {}) {
|
|
|
2665
2665
|
p = h, v.missingWarn = p;
|
|
2666
2666
|
},
|
|
2667
2667
|
get fallbackWarn() {
|
|
2668
|
-
return
|
|
2668
|
+
return y;
|
|
2669
2669
|
},
|
|
2670
2670
|
set fallbackWarn(h) {
|
|
2671
|
-
|
|
2671
|
+
y = h, v.fallbackWarn = y;
|
|
2672
2672
|
},
|
|
2673
2673
|
get fallbackRoot() {
|
|
2674
2674
|
return R;
|
|
@@ -2683,10 +2683,10 @@ function pn(e = {}) {
|
|
|
2683
2683
|
S = h, v.fallbackFormat = S;
|
|
2684
2684
|
},
|
|
2685
2685
|
get warnHtmlMessage() {
|
|
2686
|
-
return
|
|
2686
|
+
return I;
|
|
2687
2687
|
},
|
|
2688
2688
|
set warnHtmlMessage(h) {
|
|
2689
|
-
|
|
2689
|
+
I = h, v.warnHtmlMessage = h;
|
|
2690
2690
|
},
|
|
2691
2691
|
get escapeParameter() {
|
|
2692
2692
|
return E;
|
|
@@ -2694,9 +2694,9 @@ function pn(e = {}) {
|
|
|
2694
2694
|
set escapeParameter(h) {
|
|
2695
2695
|
E = h, v.escapeParameter = h;
|
|
2696
2696
|
},
|
|
2697
|
-
t:
|
|
2698
|
-
getLocaleMessage:
|
|
2699
|
-
setLocaleMessage:
|
|
2697
|
+
t: _t,
|
|
2698
|
+
getLocaleMessage: $e,
|
|
2699
|
+
setLocaleMessage: Et,
|
|
2700
2700
|
mergeLocaleMessage: Ra,
|
|
2701
2701
|
getPostTranslationHandler: ha,
|
|
2702
2702
|
setPostTranslationHandler: Ea,
|
|
@@ -2704,9 +2704,9 @@ function pn(e = {}) {
|
|
|
2704
2704
|
setMissingHandler: ba,
|
|
2705
2705
|
[xs]: Aa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats =
|
|
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[Vs] = a, V[Ba] = Vt, V[ja] = $t, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Xe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
|
-
}, V[
|
|
2709
|
+
}, V[Ot] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
@@ -2947,7 +2947,7 @@ function Xl(e) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
return t;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function Pt(e, t) {
|
|
2951
2951
|
if (Xa) {
|
|
2952
2952
|
let a;
|
|
2953
2953
|
t && "groupId" in t && (a = t.groupId, delete t.groupId), Xa.addTimelineEvent({
|
|
@@ -2971,7 +2971,7 @@ function ql(e, t) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
function zl(e) {
|
|
2974
|
-
const t = A(e.locale) ? e.locale :
|
|
2974
|
+
const t = A(e.locale) ? e.locale : Lt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, y = x(e.sync) ? e.sync : !0;
|
|
2975
2975
|
let R = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
2977
2977
|
const b = e.sharedMessages;
|
|
@@ -2980,14 +2980,14 @@ function zl(e) {
|
|
|
2980
2980
|
return te(M, b[C]), v;
|
|
2981
2981
|
}, R || {});
|
|
2982
2982
|
}
|
|
2983
|
-
const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats,
|
|
2983
|
+
const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats, I = e.numberFormats, E = e.flatJson;
|
|
2984
2984
|
return {
|
|
2985
2985
|
locale: t,
|
|
2986
2986
|
fallbackLocale: a,
|
|
2987
2987
|
messages: R,
|
|
2988
2988
|
flatJson: E,
|
|
2989
2989
|
datetimeFormats: _,
|
|
2990
|
-
numberFormats:
|
|
2990
|
+
numberFormats: I,
|
|
2991
2991
|
missing: n,
|
|
2992
2992
|
missingWarn: s,
|
|
2993
2993
|
fallbackWarn: r,
|
|
@@ -2999,7 +2999,7 @@ function zl(e) {
|
|
|
2999
2999
|
warnHtmlMessage: g,
|
|
3000
3000
|
escapeParameter: p,
|
|
3001
3001
|
messageResolver: e.messageResolver,
|
|
3002
|
-
inheritLocale:
|
|
3002
|
+
inheritLocale: y,
|
|
3003
3003
|
__i18n: S,
|
|
3004
3004
|
__root: O,
|
|
3005
3005
|
__injectWithOption: d
|
|
@@ -3168,16 +3168,16 @@ function qa(e = {}) {
|
|
|
3168
3168
|
};
|
|
3169
3169
|
return n.__extender = a, process.env.NODE_ENV !== "production" && (n.__enableEmitter = (s) => {
|
|
3170
3170
|
const r = t;
|
|
3171
|
-
r[
|
|
3171
|
+
r[Xe] && r[Xe](s);
|
|
3172
3172
|
}, n.__disableEmitter = () => {
|
|
3173
3173
|
const s = t;
|
|
3174
|
-
s[
|
|
3174
|
+
s[Ot] && s[Ot]();
|
|
3175
3175
|
}), n;
|
|
3176
3176
|
}
|
|
3177
3177
|
function Zl(e, t, a) {
|
|
3178
3178
|
return {
|
|
3179
3179
|
beforeCreate() {
|
|
3180
|
-
const n =
|
|
3180
|
+
const n = rt();
|
|
3181
3181
|
if (!n)
|
|
3182
3182
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3183
3183
|
const s = this.$options;
|
|
@@ -3209,21 +3209,21 @@ function Zl(e, t, a) {
|
|
|
3209
3209
|
},
|
|
3210
3210
|
mounted() {
|
|
3211
3211
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
3212
|
-
const n =
|
|
3212
|
+
const n = rt();
|
|
3213
3213
|
if (!n)
|
|
3214
3214
|
return;
|
|
3215
3215
|
const s = this.$i18n;
|
|
3216
3216
|
n.__VUE_I18N__ = s.__composer;
|
|
3217
3217
|
const r = this.__v_emitter = ln();
|
|
3218
|
-
s.__enableEmitter && s.__enableEmitter(r), r.on("*",
|
|
3218
|
+
s.__enableEmitter && s.__enableEmitter(r), r.on("*", Pt);
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
3221
3221
|
unmounted() {
|
|
3222
|
-
const n =
|
|
3222
|
+
const n = rt();
|
|
3223
3223
|
if (!n)
|
|
3224
3224
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3225
3225
|
const s = this.$i18n;
|
|
3226
|
-
process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
3226
|
+
process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Pt), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete n.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), a.__deleteInstance(n), delete this.$i18n;
|
|
3227
3227
|
}
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
@@ -3257,14 +3257,14 @@ function ei({ slots: e }, t) {
|
|
|
3257
3257
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, s) => [
|
|
3258
3258
|
...n,
|
|
3259
3259
|
// prettier-ignore
|
|
3260
|
-
...s.type ===
|
|
3260
|
+
...s.type === Ye ? s.children : [s]
|
|
3261
3261
|
], []) : t.reduce((a, n) => {
|
|
3262
3262
|
const s = e[n];
|
|
3263
3263
|
return s && (a[n] = s()), a;
|
|
3264
3264
|
}, W());
|
|
3265
3265
|
}
|
|
3266
3266
|
function Ys() {
|
|
3267
|
-
return
|
|
3267
|
+
return Ye;
|
|
3268
3268
|
}
|
|
3269
3269
|
const ti = /* @__PURE__ */ De({
|
|
3270
3270
|
/* eslint-disable */
|
|
@@ -3290,7 +3290,7 @@ const ti = /* @__PURE__ */ De({
|
|
|
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
3292
|
const l = ei(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Ys();
|
|
3293
|
-
return
|
|
3293
|
+
return Ie(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
3296
3296
|
}), as = ti;
|
|
@@ -3302,15 +3302,15 @@ function Bs(e, t, a, n) {
|
|
|
3302
3302
|
return () => {
|
|
3303
3303
|
const o = { part: !0 };
|
|
3304
3304
|
let l = W();
|
|
3305
|
-
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p,
|
|
3305
|
+
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, y) => a.includes(y) ? te(W(), p, { [y]: e.format[y] }) : p, W()));
|
|
3306
3306
|
const i = n(e.value, o, l);
|
|
3307
3307
|
let c = [o.key];
|
|
3308
|
-
J(i) ? c = i.map((p,
|
|
3309
|
-
const R = s[p.type], S = R ? R({ [p.type]: p.value, index:
|
|
3310
|
-
return ai(S) && (S[0].key = `${p.type}-${
|
|
3308
|
+
J(i) ? c = i.map((p, y) => {
|
|
3309
|
+
const R = s[p.type], S = R ? R({ [p.type]: p.value, index: y, parts: i }) : [p.value];
|
|
3310
|
+
return ai(S) && (S[0].key = `${p.type}-${y}`), S;
|
|
3311
3311
|
}) : A(i) && (c = [i]);
|
|
3312
3312
|
const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ys();
|
|
3313
|
-
return
|
|
3313
|
+
return Ie(g, m, c);
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
3316
3316
|
const ni = /* @__PURE__ */ De({
|
|
@@ -3349,7 +3349,7 @@ function si(e, t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
function ri(e) {
|
|
3351
3351
|
const t = (o) => {
|
|
3352
|
-
process.env.NODE_ENV !== "production" && sn(
|
|
3352
|
+
process.env.NODE_ENV !== "production" && sn(ct(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3353
3353
|
const { instance: l, value: i } = o;
|
|
3354
3354
|
if (!l || !l.$)
|
|
3355
3355
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
@@ -3404,7 +3404,7 @@ function oi(e, t, ...a) {
|
|
|
3404
3404
|
const li = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
3405
|
function ii(e = {}) {
|
|
3406
3406
|
const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
|
-
process.env.NODE_ENV !== "production" && t && sn(
|
|
3407
|
+
process.env.NODE_ENV !== "production" && t && sn(ct(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
3408
|
const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ci(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3409
3409
|
function l(g) {
|
|
3410
3410
|
return n.get(g) || null;
|
|
@@ -3426,11 +3426,11 @@ function ii(e = {}) {
|
|
|
3426
3426
|
const S = p[0];
|
|
3427
3427
|
m.__composerExtend = S.__composerExtend, m.__vueI18nExtend = S.__vueI18nExtend;
|
|
3428
3428
|
}
|
|
3429
|
-
let
|
|
3430
|
-
!t && a && (
|
|
3429
|
+
let y = null;
|
|
3430
|
+
!t && a && (y = hi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && oi(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(Zl(r, r.__composer, m));
|
|
3431
3431
|
const R = g.unmount;
|
|
3432
3432
|
if (g.unmount = () => {
|
|
3433
|
-
|
|
3433
|
+
y && y(), m.dispose(), R();
|
|
3434
3434
|
}, process.env.NODE_ENV !== "production") {
|
|
3435
3435
|
if (!await Hl(g, m))
|
|
3436
3436
|
throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
@@ -3440,9 +3440,9 @@ function ii(e = {}) {
|
|
|
3440
3440
|
d.__enableEmitter && d.__enableEmitter(O);
|
|
3441
3441
|
} else {
|
|
3442
3442
|
const d = r;
|
|
3443
|
-
d[
|
|
3443
|
+
d[Xe] && d[Xe](O);
|
|
3444
3444
|
}
|
|
3445
|
-
O.on("*",
|
|
3445
|
+
O.on("*", Pt);
|
|
3446
3446
|
}
|
|
3447
3447
|
},
|
|
3448
3448
|
// global accessor
|
|
@@ -3464,7 +3464,7 @@ function ii(e = {}) {
|
|
|
3464
3464
|
return m;
|
|
3465
3465
|
}
|
|
3466
3466
|
function la(e = {}) {
|
|
3467
|
-
const t =
|
|
3467
|
+
const t = rt();
|
|
3468
3468
|
if (t == null)
|
|
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__)
|
|
@@ -3474,7 +3474,7 @@ function la(e = {}) {
|
|
|
3474
3474
|
return Hs(n, e, s), n;
|
|
3475
3475
|
if (r === "parent") {
|
|
3476
3476
|
let i = mi(a, t, e.__useComponent);
|
|
3477
|
-
return i == null && (process.env.NODE_ENV !== "production" && Le(
|
|
3477
|
+
return i == null && (process.env.NODE_ENV !== "production" && Le(ct(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
|
|
3478
3478
|
}
|
|
3479
3479
|
const o = a;
|
|
3480
3480
|
let l = o.__getInstance(t);
|
|
@@ -3482,7 +3482,7 @@ function la(e = {}) {
|
|
|
3482
3482
|
const i = te({}, e);
|
|
3483
3483
|
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(l)), _i(o, t, l), o.__setInstance(t, l);
|
|
3484
3484
|
} else
|
|
3485
|
-
process.env.NODE_ENV !== "production" && r === "local" && Le(
|
|
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) {
|
|
@@ -3492,7 +3492,7 @@ function ci(e, t) {
|
|
|
3492
3492
|
return [a, n];
|
|
3493
3493
|
}
|
|
3494
3494
|
function ui(e) {
|
|
3495
|
-
const t =
|
|
3495
|
+
const t = nt(e.isCE ? li : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3496
3496
|
if (!t)
|
|
3497
3497
|
throw ue(e.isCE ? Y.NOT_INSTALLED_WITH_PROVIDE : Y.UNEXPECTED_ERROR);
|
|
3498
3498
|
return t;
|
|
@@ -3526,15 +3526,15 @@ function pi(e, t = !1) {
|
|
|
3526
3526
|
}
|
|
3527
3527
|
function _i(e, t, a) {
|
|
3528
3528
|
let n = null;
|
|
3529
|
-
|
|
3529
|
+
wt(() => {
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
3531
3531
|
t.__VUE_I18N__ = a, n = ln();
|
|
3532
3532
|
const s = a;
|
|
3533
|
-
s[
|
|
3533
|
+
s[Xe] && s[Xe](n), n.on("*", Pt);
|
|
3534
3534
|
}
|
|
3535
|
-
}, t),
|
|
3535
|
+
}, t), dt(() => {
|
|
3536
3536
|
const s = a;
|
|
3537
|
-
process.env.NODE_ENV !== "production" && (n && n.off("*",
|
|
3537
|
+
process.env.NODE_ENV !== "production" && (n && n.off("*", Pt), s[Ot] && s[Ot](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3538
3538
|
const r = s[Qa];
|
|
3539
3539
|
r && (r(), delete s[Qa]);
|
|
3540
3540
|
}, t);
|
|
@@ -3605,7 +3605,7 @@ sl(Mo);
|
|
|
3605
3605
|
rl(Zo);
|
|
3606
3606
|
ol(Ss);
|
|
3607
3607
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3608
|
-
const e =
|
|
3608
|
+
const e = Ge();
|
|
3609
3609
|
e.__INTLIFY__ = !0, Uo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3610
3610
|
}
|
|
3611
3611
|
process.env.NODE_ENV;
|
|
@@ -3979,12 +3979,12 @@ const vi = {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
3981
|
};
|
|
3982
|
-
function
|
|
3982
|
+
function Rt(e, t) {
|
|
3983
3983
|
const a = Array.isArray(e) ? [] : {};
|
|
3984
3984
|
for (const n in e)
|
|
3985
|
-
e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] =
|
|
3985
|
+
e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] = Rt(e[n], {}) : a[n] = Array.isArray(e[n]) ? [...e[n]] : e[n]);
|
|
3986
3986
|
for (const n in t)
|
|
3987
|
-
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] =
|
|
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
3990
|
let za = "/", qt = {
|
|
@@ -4009,7 +4009,7 @@ const me = ii({
|
|
|
4009
4009
|
missingWarn: !1
|
|
4010
4010
|
// 禁用缺失警告
|
|
4011
4011
|
});
|
|
4012
|
-
async function
|
|
4012
|
+
async function Ii(e) {
|
|
4013
4013
|
try {
|
|
4014
4014
|
const t = await fetch(`${za}locales/${e}.json`);
|
|
4015
4015
|
if (!t.ok)
|
|
@@ -4059,11 +4059,11 @@ async function Xs(e) {
|
|
|
4059
4059
|
const t = Za(vi), a = Js(e);
|
|
4060
4060
|
let n = {};
|
|
4061
4061
|
try {
|
|
4062
|
-
n = await
|
|
4062
|
+
n = await Ii(e);
|
|
4063
4063
|
} catch {
|
|
4064
4064
|
}
|
|
4065
4065
|
let s = t;
|
|
4066
|
-
a && Object.keys(a).length > 0 && (s =
|
|
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), Qs(e, s);
|
|
4067
4067
|
}
|
|
4068
4068
|
async function Ec(e = "/", t) {
|
|
4069
4069
|
za = e;
|
|
@@ -4083,7 +4083,7 @@ function bc(e = "code") {
|
|
|
4083
4083
|
const t = me.global.locale.value;
|
|
4084
4084
|
return e === "display" ? qt[t] : t;
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function Ic() {
|
|
4087
4087
|
return Object.keys(qt).map((e) => ({
|
|
4088
4088
|
label: qt[e],
|
|
4089
4089
|
key: e
|
|
@@ -4097,7 +4097,7 @@ function P(e, t) {
|
|
|
4097
4097
|
if (!n || Object.keys(n).length === 0) {
|
|
4098
4098
|
const r = Js(me.global.locale.value);
|
|
4099
4099
|
if (r) {
|
|
4100
|
-
const o =
|
|
4100
|
+
const o = Rt({}, r);
|
|
4101
4101
|
me.global.setLocaleMessage(me.global.locale.value, o), Qs(me.global.locale.value, o);
|
|
4102
4102
|
const l = me.global.t(e, t || {});
|
|
4103
4103
|
return l === e ? e : l;
|
|
@@ -4240,10 +4240,10 @@ const ia = {
|
|
|
4240
4240
|
hideErrorToast: !0
|
|
4241
4241
|
}
|
|
4242
4242
|
};
|
|
4243
|
-
function
|
|
4243
|
+
function yc() {
|
|
4244
4244
|
qs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), zs.host.loadingText = P("webui.stores.hostInfo.loading");
|
|
4245
4245
|
}
|
|
4246
|
-
const
|
|
4246
|
+
const Ft = {
|
|
4247
4247
|
/**
|
|
4248
4248
|
* 自动加载数据
|
|
4249
4249
|
*/
|
|
@@ -4314,27 +4314,29 @@ const Ct = {
|
|
|
4314
4314
|
type: Object,
|
|
4315
4315
|
required: !1
|
|
4316
4316
|
}
|
|
4317
|
-
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/",
|
|
4317
|
+
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", Jt = [], yi = (e) => {
|
|
4318
4318
|
for (const t of e) {
|
|
4319
|
-
const a =
|
|
4320
|
-
a !== -1 &&
|
|
4319
|
+
const a = Jt.findIndex((n) => n.path === t.path);
|
|
4320
|
+
a !== -1 && Jt.splice(a, 1), Jt.push(t), ca.addRoute(t);
|
|
4321
4321
|
}
|
|
4322
4322
|
}, Zs = (e, t, a, n = "") => {
|
|
4323
4323
|
const s = n + (n ? "/" : "") + e.path;
|
|
4324
4324
|
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => Zs(r, t, e, s));
|
|
4325
4325
|
}, ca = Fr({
|
|
4326
4326
|
history: Mr("/"),
|
|
4327
|
-
routes:
|
|
4327
|
+
routes: Jt
|
|
4328
4328
|
}), Ni = (e, t) => {
|
|
4329
4329
|
var s, r;
|
|
4330
4330
|
const a = ((s = e.meta) == null ? void 0 : s.roles) ?? [], n = (r = e.meta) == null ? void 0 : r.permission;
|
|
4331
4331
|
if (!t)
|
|
4332
4332
|
return a.length === 0 && !n;
|
|
4333
4333
|
if (t) {
|
|
4334
|
-
const o =
|
|
4335
|
-
if (
|
|
4334
|
+
const o = ye();
|
|
4335
|
+
if (Fe.VITE_PERMISSION_MODE === "none")
|
|
4336
|
+
return !0;
|
|
4337
|
+
if (Fe.VITE_PERMISSION_MODE === "role")
|
|
4336
4338
|
return a.length === 0 ? !0 : o.hasRole(a);
|
|
4337
|
-
if (
|
|
4339
|
+
if (Fe.VITE_PERMISSION_MODE === "permit") {
|
|
4338
4340
|
if (a.length === 0 && !n)
|
|
4339
4341
|
return !0;
|
|
4340
4342
|
let l = !1, i = !1;
|
|
@@ -4354,7 +4356,7 @@ ca.beforeEach((e, t, a) => {
|
|
|
4354
4356
|
return a();
|
|
4355
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);
|
|
4356
4358
|
if (e.path === "/") {
|
|
4357
|
-
const i =
|
|
4359
|
+
const i = Me();
|
|
4358
4360
|
if (!i.menuLoaded) {
|
|
4359
4361
|
yt.value = {
|
|
4360
4362
|
to: e,
|
|
@@ -4370,11 +4372,11 @@ ca.beforeEach((e, t, a) => {
|
|
|
4370
4372
|
if (!o)
|
|
4371
4373
|
a();
|
|
4372
4374
|
else {
|
|
4373
|
-
const i =
|
|
4375
|
+
const i = ye();
|
|
4374
4376
|
if (!i.isLogin)
|
|
4375
4377
|
a({ path: is });
|
|
4376
4378
|
else {
|
|
4377
|
-
if (!
|
|
4379
|
+
if (!Me().menuLoaded) {
|
|
4378
4380
|
yt.value = {
|
|
4379
4381
|
to: e,
|
|
4380
4382
|
next: a
|
|
@@ -4398,7 +4400,7 @@ const Si = (e) => {
|
|
|
4398
4400
|
return;
|
|
4399
4401
|
t.TabPanes.push(e);
|
|
4400
4402
|
}
|
|
4401
|
-
}, Li = (e, t) => t.find((a) => a.key === e), hn =
|
|
4403
|
+
}, Li = (e, t) => t.find((a) => a.key === e), hn = Dt("pageInfo", {
|
|
4402
4404
|
state: () => ({
|
|
4403
4405
|
TabActive: "",
|
|
4404
4406
|
TabPanes: [],
|
|
@@ -4411,7 +4413,7 @@ const Si = (e) => {
|
|
|
4411
4413
|
*/
|
|
4412
4414
|
removeTabPane(e) {
|
|
4413
4415
|
if (this.TabEnabled) {
|
|
4414
|
-
|
|
4416
|
+
Me().excludeComponent(e);
|
|
4415
4417
|
let a = 0, n = [...this.TabPanes];
|
|
4416
4418
|
for (let s = 0; s < n.length; s++)
|
|
4417
4419
|
if (n[s].key === e) {
|
|
@@ -4432,7 +4434,7 @@ const Si = (e) => {
|
|
|
4432
4434
|
* @returns
|
|
4433
4435
|
*/
|
|
4434
4436
|
async setTabActive(e) {
|
|
4435
|
-
let a =
|
|
4437
|
+
let a = Me().findRoute(e);
|
|
4436
4438
|
if (!a) return;
|
|
4437
4439
|
const n = {
|
|
4438
4440
|
key: e,
|
|
@@ -4545,7 +4547,7 @@ class ae {
|
|
|
4545
4547
|
}
|
|
4546
4548
|
ne(ae, "messageId", 0), ne(ae, "callbacks", /* @__PURE__ */ new Map()), ne(ae, "pendingRequests", /* @__PURE__ */ new Map());
|
|
4547
4549
|
ae.init();
|
|
4548
|
-
const
|
|
4550
|
+
const Nt = {
|
|
4549
4551
|
getAppInfo: ae.getAppInfo.bind(ae),
|
|
4550
4552
|
getHostInfo: ae.getHostInfo.bind(ae),
|
|
4551
4553
|
getUserInfo: ae.getUserInfo.bind(ae),
|
|
@@ -4561,12 +4563,12 @@ const It = {
|
|
|
4561
4563
|
loadingText: !1
|
|
4562
4564
|
}
|
|
4563
4565
|
}, xa = /* @__PURE__ */ new Map(), Ai = (e) => {
|
|
4564
|
-
const t =
|
|
4565
|
-
if (ve(a) && ve(n))
|
|
4566
|
+
const t = ye(), { roles: a, permission: n } = e.meta || {};
|
|
4567
|
+
if (ve(a) && ve(n) || Fe.VITE_PERMISSION_MODE === "none")
|
|
4566
4568
|
return !0;
|
|
4567
|
-
if (
|
|
4569
|
+
if (Fe.VITE_PERMISSION_MODE === "role")
|
|
4568
4570
|
return ve(a) ? !0 : t.hasRole(a);
|
|
4569
|
-
if (
|
|
4571
|
+
if (Fe.VITE_PERMISSION_MODE === "permit") {
|
|
4570
4572
|
let s = !1, r = !1;
|
|
4571
4573
|
return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
|
|
4572
4574
|
}
|
|
@@ -4586,7 +4588,7 @@ const It = {
|
|
|
4586
4588
|
return n;
|
|
4587
4589
|
}
|
|
4588
4590
|
}
|
|
4589
|
-
},
|
|
4591
|
+
}, Me = Dt("appInfo", {
|
|
4590
4592
|
state: () => ({
|
|
4591
4593
|
appInfo: {
|
|
4592
4594
|
Id: "",
|
|
@@ -4620,7 +4622,7 @@ const It = {
|
|
|
4620
4622
|
});
|
|
4621
4623
|
},
|
|
4622
4624
|
async getRemoteAppList() {
|
|
4623
|
-
return
|
|
4625
|
+
return qe(Oi.appList, {
|
|
4624
4626
|
Query: {
|
|
4625
4627
|
AppCode: this.appInfo.AppCode,
|
|
4626
4628
|
Enabled: 1
|
|
@@ -4629,7 +4631,7 @@ const It = {
|
|
|
4629
4631
|
if ((e == null ? void 0 : e.status) === ie.SUCCESS && e.data)
|
|
4630
4632
|
this.appList.length = 0, this.appList.push(...e.data);
|
|
4631
4633
|
else if ((e == null ? void 0 : e.errno) == ua) {
|
|
4632
|
-
|
|
4634
|
+
ye().logout(!1);
|
|
4633
4635
|
return;
|
|
4634
4636
|
}
|
|
4635
4637
|
});
|
|
@@ -4659,12 +4661,15 @@ const It = {
|
|
|
4659
4661
|
async setActiveApp(e, t) {
|
|
4660
4662
|
this.menuLoaded = !1;
|
|
4661
4663
|
const a = this.appList.find((n) => n.AppCode === e);
|
|
4662
|
-
a && (a.AppCode !== this.appInfo.AppCode && (this.appInfo = {
|
|
4664
|
+
if (a && (a.AppCode !== this.appInfo.AppCode && (this.appInfo = {
|
|
4663
4665
|
...a,
|
|
4664
4666
|
flattenRoutes: {},
|
|
4665
4667
|
Routes: t ?? [],
|
|
4666
4668
|
defaultPage: ""
|
|
4667
|
-
}),
|
|
4669
|
+
}), !Ce() || !kr())) {
|
|
4670
|
+
const n = ye();
|
|
4671
|
+
Fe.VITE_PERMISSION_MODE !== "none" && await n.getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes);
|
|
4672
|
+
}
|
|
4668
4673
|
},
|
|
4669
4674
|
/**
|
|
4670
4675
|
* 设置当前应用路由信息
|
|
@@ -4683,12 +4688,12 @@ const It = {
|
|
|
4683
4688
|
if (Object.keys(t).forEach((a) => {
|
|
4684
4689
|
const n = t[a];
|
|
4685
4690
|
n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
|
|
4686
|
-
}),
|
|
4691
|
+
}), ye().isLogin) {
|
|
4687
4692
|
const a = er(this.appInfo.Routes);
|
|
4688
|
-
if (
|
|
4693
|
+
if (yi(a), this.appInfo.defaultPage = tr(a) || "", this.appInfo.defaultPage) {
|
|
4689
4694
|
if (this.menuLoaded = !0, Ce()) {
|
|
4690
4695
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4691
|
-
|
|
4696
|
+
Nt.mainAppPush(n);
|
|
4692
4697
|
}
|
|
4693
4698
|
Si(this.appInfo.defaultPage);
|
|
4694
4699
|
}
|
|
@@ -4711,7 +4716,7 @@ const It = {
|
|
|
4711
4716
|
this.findRoute(e) && hn().setTabActive(e), Er(() => {
|
|
4712
4717
|
if (ca.push({ path: e }), Ce()) {
|
|
4713
4718
|
const a = this.formatRoute(e);
|
|
4714
|
-
|
|
4719
|
+
Nt.mainAppPush(a);
|
|
4715
4720
|
}
|
|
4716
4721
|
});
|
|
4717
4722
|
},
|
|
@@ -4737,7 +4742,7 @@ const It = {
|
|
|
4737
4742
|
// 设置组件包装器的名称为路由路径
|
|
4738
4743
|
name: t.path,
|
|
4739
4744
|
render() {
|
|
4740
|
-
return
|
|
4745
|
+
return Ie(e);
|
|
4741
4746
|
}
|
|
4742
4747
|
}, xa.set(t.path, a);
|
|
4743
4748
|
else return e;
|
|
@@ -4779,7 +4784,7 @@ const It = {
|
|
|
4779
4784
|
}, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
|
|
4780
4785
|
},
|
|
4781
4786
|
logout() {
|
|
4782
|
-
this.clean(), Ce() ?
|
|
4787
|
+
this.clean(), Ce() ? Nt.mainAppPush("/") : window.location.assign("/");
|
|
4783
4788
|
}
|
|
4784
4789
|
},
|
|
4785
4790
|
persist: !1
|
|
@@ -4790,18 +4795,18 @@ const It = {
|
|
|
4790
4795
|
},
|
|
4791
4796
|
Query: e
|
|
4792
4797
|
};
|
|
4793
|
-
return
|
|
4798
|
+
return qe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4794
4799
|
}, Ri = (e) => {
|
|
4795
4800
|
let t = {
|
|
4796
4801
|
Query: {
|
|
4797
4802
|
AppId: e
|
|
4798
4803
|
}
|
|
4799
4804
|
};
|
|
4800
|
-
return
|
|
4805
|
+
return qe(ia.auth, t).then((a) => {
|
|
4801
4806
|
if ((a == null ? void 0 : a.status) === ie.SUCCESS)
|
|
4802
4807
|
return a.data;
|
|
4803
4808
|
if ((a == null ? void 0 : a.errno) == ua) {
|
|
4804
|
-
|
|
4809
|
+
ye().logout(!1);
|
|
4805
4810
|
return;
|
|
4806
4811
|
}
|
|
4807
4812
|
return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
|
|
@@ -4811,7 +4816,7 @@ const It = {
|
|
|
4811
4816
|
Option: {},
|
|
4812
4817
|
Query: {}
|
|
4813
4818
|
};
|
|
4814
|
-
return
|
|
4819
|
+
return qe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4815
4820
|
}, ki = (e) => {
|
|
4816
4821
|
try {
|
|
4817
4822
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
@@ -4819,7 +4824,7 @@ const It = {
|
|
|
4819
4824
|
} catch (t) {
|
|
4820
4825
|
return console.error(qs, t), !1;
|
|
4821
4826
|
}
|
|
4822
|
-
}, de = w(""),
|
|
4827
|
+
}, de = w(""), bt = w(null), ye = Dt("userInfo", {
|
|
4823
4828
|
state: () => ({
|
|
4824
4829
|
isLogin: !1,
|
|
4825
4830
|
userInfo: {
|
|
@@ -4837,7 +4842,7 @@ const It = {
|
|
|
4837
4842
|
* 启动时初始化用户信息
|
|
4838
4843
|
*/
|
|
4839
4844
|
init() {
|
|
4840
|
-
Ce() || (this.token ? (
|
|
4845
|
+
Ce() || (this.token ? (Wt(this.token), de.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
|
|
4841
4846
|
},
|
|
4842
4847
|
/**
|
|
4843
4848
|
* 登录操作
|
|
@@ -4852,7 +4857,7 @@ const It = {
|
|
|
4852
4857
|
return n;
|
|
4853
4858
|
{
|
|
4854
4859
|
const s = a.data;
|
|
4855
|
-
if (this.token = s.token,
|
|
4860
|
+
if (this.token = s.token, Wt(this.token), this.isLogin = !0, ki(s))
|
|
4856
4861
|
this.userInfo = {
|
|
4857
4862
|
...this.userInfo,
|
|
4858
4863
|
...s.UserInfo
|
|
@@ -4861,7 +4866,7 @@ const It = {
|
|
|
4861
4866
|
se.error(P("webui.stores.userInfo.userInfoParseFailed"));
|
|
4862
4867
|
return;
|
|
4863
4868
|
}
|
|
4864
|
-
t &&
|
|
4869
|
+
t && Me().toDefaultApp();
|
|
4865
4870
|
}
|
|
4866
4871
|
}
|
|
4867
4872
|
},
|
|
@@ -4873,11 +4878,11 @@ const It = {
|
|
|
4873
4878
|
async getRolePermits(e) {
|
|
4874
4879
|
if (!this.isLogin || !this.token)
|
|
4875
4880
|
return !1;
|
|
4876
|
-
if (
|
|
4881
|
+
if (Fe.VITE_PERMISSION_MODE === "none" || bt.value && bt.value.appId === e)
|
|
4877
4882
|
return !0;
|
|
4878
4883
|
try {
|
|
4879
4884
|
const t = await Ri(e);
|
|
4880
|
-
return t ? (
|
|
4885
|
+
return t ? (bt.value = {
|
|
4881
4886
|
appId: e,
|
|
4882
4887
|
permits: t.permits || [],
|
|
4883
4888
|
lastTime: t.lastTime
|
|
@@ -4902,7 +4907,7 @@ const It = {
|
|
|
4902
4907
|
*/
|
|
4903
4908
|
hasPermit(e, t) {
|
|
4904
4909
|
var n;
|
|
4905
|
-
const a =
|
|
4910
|
+
const a = bt.value;
|
|
4906
4911
|
return !a || !a.permits ? !1 : ((n = a.permits[e]) == null ? void 0 : n.includes(t)) ?? !1;
|
|
4907
4912
|
},
|
|
4908
4913
|
/**
|
|
@@ -4922,7 +4927,7 @@ const It = {
|
|
|
4922
4927
|
de.value || (de.value = e.UserLevel, this.userInfo = {
|
|
4923
4928
|
...this.userInfo,
|
|
4924
4929
|
...e
|
|
4925
|
-
}, this.token = t,
|
|
4930
|
+
}, this.token = t, Wt(this.token), this.isLogin = !0);
|
|
4926
4931
|
},
|
|
4927
4932
|
/**
|
|
4928
4933
|
* 获取用户Token
|
|
@@ -4960,7 +4965,7 @@ const It = {
|
|
|
4960
4965
|
Code: "",
|
|
4961
4966
|
TenantId: "",
|
|
4962
4967
|
UserLevel: ""
|
|
4963
|
-
}, this.token = "",
|
|
4968
|
+
}, this.token = "", Wt(this.token), this.isLogin = !1, bt.value = null, de.value = "", Me().clean(), Promise.resolve();
|
|
4964
4969
|
},
|
|
4965
4970
|
/**
|
|
4966
4971
|
* 登出操作
|
|
@@ -4969,7 +4974,7 @@ const It = {
|
|
|
4969
4974
|
*/
|
|
4970
4975
|
async logout(e) {
|
|
4971
4976
|
if (Ce())
|
|
4972
|
-
return
|
|
4977
|
+
return Nt.userLogout(), Promise.resolve();
|
|
4973
4978
|
try {
|
|
4974
4979
|
e && await wi();
|
|
4975
4980
|
} catch (t) {
|
|
@@ -4978,7 +4983,7 @@ const It = {
|
|
|
4978
4983
|
await this.clean(), e && setTimeout(async () => {
|
|
4979
4984
|
se.success(P("webui.stores.userInfo.logoutSuccess"));
|
|
4980
4985
|
}, 1e3), setTimeout(async () => {
|
|
4981
|
-
|
|
4986
|
+
Me().logout();
|
|
4982
4987
|
}, 2e3);
|
|
4983
4988
|
}
|
|
4984
4989
|
return Promise.resolve();
|
|
@@ -5010,11 +5015,11 @@ const It = {
|
|
|
5010
5015
|
return console.warn(o), Promise.reject(new Error(o));
|
|
5011
5016
|
}
|
|
5012
5017
|
n.api || (n.api = a.api), n.authorize === void 0 && (n.authorize = a.authorize);
|
|
5013
|
-
let s =
|
|
5018
|
+
let s = Ct(
|
|
5014
5019
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
5015
5020
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5016
5021
|
);
|
|
5017
|
-
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ms :
|
|
5022
|
+
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ms : 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));
|
|
5018
5023
|
}, En = (e, t) => {
|
|
5019
5024
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5020
5025
|
const a = fa(e, t);
|
|
@@ -5048,7 +5053,7 @@ const It = {
|
|
|
5048
5053
|
params: {},
|
|
5049
5054
|
loadingState: e.isTreeLoading,
|
|
5050
5055
|
loadingText: !1,
|
|
5051
|
-
processParams: () =>
|
|
5056
|
+
processParams: () => Ct(e.treeQuery, t)
|
|
5052
5057
|
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Fi = (e, t) => {
|
|
5053
5058
|
for (const a of e) {
|
|
5054
5059
|
if (a.key === t) return a;
|
|
@@ -5058,7 +5063,7 @@ const It = {
|
|
|
5058
5063
|
}
|
|
5059
5064
|
}
|
|
5060
5065
|
return null;
|
|
5061
|
-
}, Sc =
|
|
5066
|
+
}, Sc = Dt("settingInfo", {
|
|
5062
5067
|
state: () => ({
|
|
5063
5068
|
fullscreen: !1,
|
|
5064
5069
|
menuCollapse: !1,
|
|
@@ -5101,9 +5106,9 @@ const It = {
|
|
|
5101
5106
|
},
|
|
5102
5107
|
persist: !1
|
|
5103
5108
|
});
|
|
5104
|
-
let
|
|
5109
|
+
let ut;
|
|
5105
5110
|
const Tc = (e) => {
|
|
5106
|
-
|
|
5111
|
+
ut = new aa({}), ut.messages({
|
|
5107
5112
|
required: "${label}" + P("webui.utils.formValidate.required"),
|
|
5108
5113
|
types: {
|
|
5109
5114
|
number: "${label}" + P("webui.utils.formValidate.numberType")
|
|
@@ -5132,7 +5137,7 @@ const Tc = (e) => {
|
|
|
5132
5137
|
}, Lc = (e) => {
|
|
5133
5138
|
if (!e || ve(e))
|
|
5134
5139
|
return [];
|
|
5135
|
-
const t = [], a =
|
|
5140
|
+
const t = [], a = ut.messages(), n = (r, o, l) => {
|
|
5136
5141
|
const i = o.type;
|
|
5137
5142
|
if (i && a.types && i in a.types) {
|
|
5138
5143
|
const m = a.types[i];
|
|
@@ -5142,8 +5147,8 @@ const Tc = (e) => {
|
|
|
5142
5147
|
for (const m of c)
|
|
5143
5148
|
if (i === m && a[m]) {
|
|
5144
5149
|
const g = a[m], p = ["len", "min", "max", "range"];
|
|
5145
|
-
for (const
|
|
5146
|
-
|
|
5150
|
+
for (const y of p)
|
|
5151
|
+
y === "range" && o.min != null && o.max != null && g.range ? s(g.range, r, { min: o.min, max: o.max }, l) : y !== "range" && o[y] != null && g[y] && s(g[y], r, { [y]: o[y] }, l);
|
|
5147
5152
|
}
|
|
5148
5153
|
if (o.required && a.required && s(a.required, r, {}, l), o.pattern && a.pattern && s(o.message, r, {}, l), o.enum && Array.isArray(o.enum) && a.enum) {
|
|
5149
5154
|
const m = o.enum.join(", ");
|
|
@@ -5185,16 +5190,16 @@ const Tc = (e) => {
|
|
|
5185
5190
|
}), t;
|
|
5186
5191
|
}, Oc = (e) => {
|
|
5187
5192
|
const t = new aa({});
|
|
5188
|
-
return t.messages(
|
|
5189
|
-
},
|
|
5193
|
+
return t.messages(ut.messages()), t.define(e), t;
|
|
5194
|
+
}, Mt = async (e) => {
|
|
5190
5195
|
const t = e.formData.value, a = e.formRules.value;
|
|
5191
|
-
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(
|
|
5196
|
+
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ut.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5192
5197
|
}).catch(({ fields: n }) => n));
|
|
5193
|
-
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(
|
|
5198
|
+
}, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ut.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5194
5199
|
}).catch(({ fields: n }) => n)), vn = (e) => {
|
|
5195
5200
|
e.ruleResults.value = void 0;
|
|
5196
|
-
},
|
|
5197
|
-
const e =
|
|
5201
|
+
}, ft = () => {
|
|
5202
|
+
const e = nt(Re.EditorControl, void 0), t = w(nt(Re.LabelText, "")), a = w(nt(Re.RuleKey, "")), n = nt(Re.ErrInfo, void 0);
|
|
5198
5203
|
return {
|
|
5199
5204
|
editorCtrl: e,
|
|
5200
5205
|
labelText: t,
|
|
@@ -5277,7 +5282,7 @@ const Tc = (e) => {
|
|
|
5277
5282
|
const t = e.page;
|
|
5278
5283
|
if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
|
|
5279
5284
|
return e.isFormSaving.value = !1, Promise.resolve();
|
|
5280
|
-
if (e.formRules.value && await
|
|
5285
|
+
if (e.formRules.value && await Mt(e), e.ruleResults.value)
|
|
5281
5286
|
return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
5282
5287
|
const a = e.formData.value;
|
|
5283
5288
|
return ar(
|
|
@@ -5342,7 +5347,7 @@ const Tc = (e) => {
|
|
|
5342
5347
|
}, bn = (e) => {
|
|
5343
5348
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5344
5349
|
}, Fc = (e, t) => {
|
|
5345
|
-
const a =
|
|
5350
|
+
const a = ye();
|
|
5346
5351
|
return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ca.currentRoute.value.path, s.permit) || s.enabled === !1 ? !1 : typeof s.enabled == "function" ? s.enabled() : !0).filter((s) => {
|
|
5347
5352
|
if (!t) {
|
|
5348
5353
|
if (s.visible === !1)
|
|
@@ -5376,7 +5381,7 @@ const Tc = (e) => {
|
|
|
5376
5381
|
loadingText: ((s = e.gridUrl) == null ? void 0 : s.loadingText) === !1 ? !1 : ((r = e.gridUrl) == null ? void 0 : r.loadingText) || P("webui.common.dataLoading"),
|
|
5377
5382
|
processParams: (o) => {
|
|
5378
5383
|
var i;
|
|
5379
|
-
return e.remotePage && (o.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]),
|
|
5384
|
+
return e.remotePage && (o.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Ct((i = e.gridUrl) == null ? void 0 : i.params, o, e.gridQuery);
|
|
5380
5385
|
}
|
|
5381
5386
|
}).then((o) => {
|
|
5382
5387
|
if ((o == null ? void 0 : o.status) === ie.SUCCESS) {
|
|
@@ -5475,30 +5480,30 @@ class Hi {
|
|
|
5475
5480
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5476
5481
|
}
|
|
5477
5482
|
}
|
|
5478
|
-
const
|
|
5483
|
+
const st = new Hi(), pt = (e, t, a) => {
|
|
5479
5484
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5480
5485
|
const n = t.inputFactory.value;
|
|
5481
5486
|
n.reloadHandler = (s, r) => {
|
|
5482
5487
|
Wi(t.url, t, r);
|
|
5483
|
-
},
|
|
5488
|
+
}, st.on(a.reloadEvent, n.reloadHandler);
|
|
5484
5489
|
}
|
|
5485
5490
|
if (a != null && a.data)
|
|
5486
5491
|
B(
|
|
5487
5492
|
() => a.data,
|
|
5488
5493
|
() => {
|
|
5489
|
-
|
|
5494
|
+
In(t, a.data, !0);
|
|
5490
5495
|
},
|
|
5491
5496
|
{ deep: !0, immediate: !0 }
|
|
5492
5497
|
);
|
|
5493
5498
|
else if (t.url && t.url.url)
|
|
5494
5499
|
e && lr(t.url, t, t.params ?? {});
|
|
5495
5500
|
else {
|
|
5496
|
-
const n = w(
|
|
5501
|
+
const n = w(nt(Re.LabelText, ""));
|
|
5497
5502
|
se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
|
|
5498
5503
|
duration: 5e3
|
|
5499
5504
|
});
|
|
5500
5505
|
}
|
|
5501
|
-
},
|
|
5506
|
+
}, In = (e, t, a) => {
|
|
5502
5507
|
if (a) {
|
|
5503
5508
|
const n = {
|
|
5504
5509
|
...e.fieldMap
|
|
@@ -5510,14 +5515,14 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5510
5515
|
value: e.allValue ?? void 0
|
|
5511
5516
|
}), e.options.value = t;
|
|
5512
5517
|
}, Wi = (e, t, a) => {
|
|
5513
|
-
Array.isArray(a) ?
|
|
5514
|
-
},
|
|
5518
|
+
Array.isArray(a) ? In(t, a, !0) : lr(e, t, a);
|
|
5519
|
+
}, Ut = (e, t) => {
|
|
5515
5520
|
var a;
|
|
5516
|
-
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler &&
|
|
5521
|
+
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && st.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5517
5522
|
}, lr = (e, t, a) => {
|
|
5518
|
-
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r =
|
|
5523
|
+
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Ct(n, s, a);
|
|
5519
5524
|
Gi(e, t, t.fieldMap, r).then((o) => {
|
|
5520
|
-
|
|
5525
|
+
In(t, o, !1);
|
|
5521
5526
|
});
|
|
5522
5527
|
}, Gi = (e, t, a, n) => {
|
|
5523
5528
|
const { fieldMap: s, ...r } = e, l = {
|
|
@@ -5531,12 +5536,12 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5531
5536
|
},
|
|
5532
5537
|
...r
|
|
5533
5538
|
};
|
|
5534
|
-
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ? ms :
|
|
5539
|
+
return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ? ms : qe)(l, n).then((c) => {
|
|
5535
5540
|
if ((c == null ? void 0 : c.status) === ie.SUCCESS) {
|
|
5536
5541
|
if (c.data)
|
|
5537
5542
|
return c.data;
|
|
5538
5543
|
} else if ((c == null ? void 0 : c.errno) == ua) {
|
|
5539
|
-
|
|
5544
|
+
ye().logout(!1);
|
|
5540
5545
|
return;
|
|
5541
5546
|
}
|
|
5542
5547
|
return [];
|
|
@@ -5563,7 +5568,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5563
5568
|
const r = s([e], t);
|
|
5564
5569
|
return r.length > 0 ? r[0] : void 0;
|
|
5565
5570
|
}
|
|
5566
|
-
}, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label],
|
|
5571
|
+
}, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], It = (e, t, a) => {
|
|
5567
5572
|
const n = t.split(".");
|
|
5568
5573
|
let s = e;
|
|
5569
5574
|
for (let r = 0; r < n.length - 1; r++) {
|
|
@@ -5574,7 +5579,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5574
5579
|
}, ir = (e, t, a) => {
|
|
5575
5580
|
if (a == null) {
|
|
5576
5581
|
Object.entries(t).forEach(([n]) => {
|
|
5577
|
-
|
|
5582
|
+
It(e, n, a);
|
|
5578
5583
|
});
|
|
5579
5584
|
return;
|
|
5580
5585
|
}
|
|
@@ -5585,9 +5590,9 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5585
5590
|
const l = parseInt(((o = s.match(/\$\{(\d+)\}/)) == null ? void 0 : o[1]) ?? "0"), i = a[l], c = s.replace(/\$\{\d+\}\./, "");
|
|
5586
5591
|
if (c && i) {
|
|
5587
5592
|
const m = Qt(c, i);
|
|
5588
|
-
|
|
5593
|
+
It(e, n, m);
|
|
5589
5594
|
} else
|
|
5590
|
-
|
|
5595
|
+
It(e, n, i);
|
|
5591
5596
|
} catch {
|
|
5592
5597
|
console.error("outFields 格式错误:" + s, "必须是 ${index} 或者 ${index}.${key}");
|
|
5593
5598
|
}
|
|
@@ -5596,14 +5601,14 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5596
5601
|
}) : Object.entries(t).forEach(([n, s]) => {
|
|
5597
5602
|
if (s.includes("${")) {
|
|
5598
5603
|
const r = Qt(s, a);
|
|
5599
|
-
|
|
5604
|
+
It(e, n, r);
|
|
5600
5605
|
} else
|
|
5601
|
-
|
|
5606
|
+
It(e, n, a[s]);
|
|
5602
5607
|
});
|
|
5603
5608
|
}, pa = (e, t, a) => {
|
|
5604
5609
|
var r, o;
|
|
5605
5610
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5606
|
-
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) &&
|
|
5611
|
+
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Mt(n.editorCtrl), e.selected.value = a;
|
|
5607
5612
|
const s = Ki(a, e.options.value);
|
|
5608
5613
|
if (e.selectedOptions.value = s, t.formData && t.outFields && ir(t.formData, t.outFields, s), t.changeEvent) {
|
|
5609
5614
|
const [l, i] = t.changeEvent;
|
|
@@ -5613,7 +5618,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5613
5618
|
const m = Qt(i, { selectedValues: a });
|
|
5614
5619
|
try {
|
|
5615
5620
|
const g = JSON.parse(m);
|
|
5616
|
-
|
|
5621
|
+
st.emit(c, g, a, s);
|
|
5617
5622
|
} catch (g) {
|
|
5618
5623
|
console.error("eventParamsValue: ", m, g);
|
|
5619
5624
|
}
|
|
@@ -5622,15 +5627,15 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5622
5627
|
const c = Qt(i, { selectedValues: a });
|
|
5623
5628
|
try {
|
|
5624
5629
|
const m = JSON.parse(c);
|
|
5625
|
-
|
|
5630
|
+
st.emit(l, m, a, s);
|
|
5626
5631
|
} catch (m) {
|
|
5627
5632
|
console.error("eventParamsValue: ", c, m);
|
|
5628
5633
|
}
|
|
5629
5634
|
}
|
|
5630
5635
|
else
|
|
5631
5636
|
Array.isArray(l) ? l.every((c) => {
|
|
5632
|
-
|
|
5633
|
-
}) :
|
|
5637
|
+
st.emit(c, s, a);
|
|
5638
|
+
}) : st.emit(l, s, a);
|
|
5634
5639
|
}
|
|
5635
5640
|
return n != null && n.inputEmit && n.inputEmit("change", a, s), s;
|
|
5636
5641
|
}, Z = {
|
|
@@ -5764,7 +5769,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5764
5769
|
), {
|
|
5765
5770
|
treeCtrl: a
|
|
5766
5771
|
};
|
|
5767
|
-
},
|
|
5772
|
+
}, xt = (e, t) => {
|
|
5768
5773
|
const a = {
|
|
5769
5774
|
...Z.OptionOption,
|
|
5770
5775
|
url: e,
|
|
@@ -5781,7 +5786,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5781
5786
|
(n) => {
|
|
5782
5787
|
n && (setTimeout(() => {
|
|
5783
5788
|
a.reload.value = !1;
|
|
5784
|
-
}, 1),
|
|
5789
|
+
}, 1), pt(!0, a, t));
|
|
5785
5790
|
}
|
|
5786
5791
|
), {
|
|
5787
5792
|
optionCtrl: a
|
|
@@ -5797,12 +5802,12 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5797
5802
|
editorCtrl: s,
|
|
5798
5803
|
gridCtrl: r
|
|
5799
5804
|
};
|
|
5800
|
-
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(),
|
|
5805
|
+
}, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ke = w({}), Kc = Ke, Yc = (e) => {
|
|
5801
5806
|
var s;
|
|
5802
5807
|
if (!e.iconUrl) return an;
|
|
5803
5808
|
const t = w(!0), a = w("");
|
|
5804
5809
|
let n = !0;
|
|
5805
|
-
return (s = e.icons) != null && s.length && (n = e.icons.every((r) =>
|
|
5810
|
+
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) && Ji(e, t).then(() => {
|
|
5806
5811
|
qi(e.iconUrl, e.monoColor || !1), t.value = !0;
|
|
5807
5812
|
}), De({
|
|
5808
5813
|
props: {
|
|
@@ -5843,21 +5848,21 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5843
5848
|
), B(
|
|
5844
5849
|
() => i.value,
|
|
5845
5850
|
(m) => {
|
|
5846
|
-
r.icons && (m >= r.icons.length && (i.value = 0), l.value = r.icons[i.value],
|
|
5851
|
+
r.icons && (m >= r.icons.length && (i.value = 0), l.value = r.icons[i.value], Bt(a, l, l.value), o("update:iconIndex", i.value));
|
|
5847
5852
|
},
|
|
5848
5853
|
{ immediate: !0 }
|
|
5849
5854
|
), B(
|
|
5850
|
-
() =>
|
|
5855
|
+
() => Ke.value,
|
|
5851
5856
|
() => {
|
|
5852
|
-
|
|
5857
|
+
Bt(a, l, l.value);
|
|
5853
5858
|
},
|
|
5854
5859
|
{ deep: !0 }
|
|
5855
5860
|
), B(
|
|
5856
5861
|
() => r.icon,
|
|
5857
5862
|
(m) => {
|
|
5858
|
-
|
|
5863
|
+
Bt(a, l, m);
|
|
5859
5864
|
}
|
|
5860
|
-
),
|
|
5865
|
+
), Bt(a, l, l.value), { isLoaded: t, Icon: a, handleClick: c };
|
|
5861
5866
|
},
|
|
5862
5867
|
render() {
|
|
5863
5868
|
if (!t.value)
|
|
@@ -5865,7 +5870,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5865
5870
|
let r = this.class, o = "";
|
|
5866
5871
|
Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
|
|
5867
5872
|
let l = [o];
|
|
5868
|
-
return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ?
|
|
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(fs(a.value), {
|
|
5869
5874
|
onClick: this.$props.clickable ? this.handleClick : void 0,
|
|
5870
5875
|
class: `${l.join(" ")}`,
|
|
5871
5876
|
style: {
|
|
@@ -5873,7 +5878,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5873
5878
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
5874
5879
|
transform: Zi(this.angle, this.flip)
|
|
5875
5880
|
}
|
|
5876
|
-
}) :
|
|
5881
|
+
}) : Ie("div", { class: "w-[14px] h-[14px]" });
|
|
5877
5882
|
}
|
|
5878
5883
|
});
|
|
5879
5884
|
}, Ji = (e, t) => {
|
|
@@ -5941,15 +5946,15 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5941
5946
|
const a = localStorage.getItem(t);
|
|
5942
5947
|
a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
|
|
5943
5948
|
}
|
|
5944
|
-
},
|
|
5949
|
+
}, Bt = (e, t, a) => {
|
|
5945
5950
|
setTimeout(() => {
|
|
5946
|
-
t.value = a, t.value && (e.value =
|
|
5951
|
+
t.value = a, t.value && (e.value = Ke.value[t.value]);
|
|
5947
5952
|
}, 1);
|
|
5948
|
-
}, an =
|
|
5953
|
+
}, an = Ie(
|
|
5949
5954
|
"svg",
|
|
5950
5955
|
{ class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
|
|
5951
5956
|
[
|
|
5952
|
-
|
|
5957
|
+
Ie("circle", {
|
|
5953
5958
|
cx: "25",
|
|
5954
5959
|
cy: "25",
|
|
5955
5960
|
r: "20",
|
|
@@ -5958,7 +5963,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5958
5963
|
style: { strokeWidth: "3 !important" }
|
|
5959
5964
|
// 强制应用线宽
|
|
5960
5965
|
}),
|
|
5961
|
-
|
|
5966
|
+
Ie("circle", {
|
|
5962
5967
|
cx: "25",
|
|
5963
5968
|
cy: "6",
|
|
5964
5969
|
r: "6",
|
|
@@ -5976,7 +5981,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5976
5981
|
const i = l.id, c = Array.from(o).find((m) => m.id === i);
|
|
5977
5982
|
c && t && (c.innerHTML = l.innerHTML, c.querySelectorAll("*").forEach((m) => {
|
|
5978
5983
|
m.hasAttribute("fill") && m.removeAttribute("fill");
|
|
5979
|
-
})),
|
|
5984
|
+
})), Ke.value[i] || (Ke.value[i] = Ie("svg", { fill: "currentColor" }, [Ie("use", { "xlink:href": `#${i}` })]));
|
|
5980
5985
|
}
|
|
5981
5986
|
}, Zi = (e, t) => {
|
|
5982
5987
|
let a = "";
|
|
@@ -5985,18 +5990,18 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
5985
5990
|
fr(e, [], a, n).forEach((r) => t.push(r));
|
|
5986
5991
|
}, fr = (e, t, a, n) => {
|
|
5987
5992
|
var o, l, i, c, m, g;
|
|
5988
|
-
const s = [], r =
|
|
5993
|
+
const s = [], r = ye();
|
|
5989
5994
|
for (const p of e) {
|
|
5990
5995
|
if (p.redirect || (o = p.meta) != null && o.hidden || // 隐藏菜单
|
|
5991
5996
|
p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (i = (l = p.meta) == null ? void 0 : l.roles) != null && i.length && !r.hasRole(p.meta.roles) && (c = p.meta) != null && c.permission && !r.hasPermit(p.meta.permission, ":page"))
|
|
5992
5997
|
continue;
|
|
5993
|
-
const
|
|
5994
|
-
|
|
5995
|
-
const R = fr(p.children || [],
|
|
5996
|
-
key:
|
|
5998
|
+
const y = p.path.split("/");
|
|
5999
|
+
y.unshift(...t);
|
|
6000
|
+
const R = fr(p.children || [], y, a, n), S = {
|
|
6001
|
+
key: y.join("/"),
|
|
5997
6002
|
label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
|
|
5998
6003
|
title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
|
|
5999
|
-
icon: p.icon ?
|
|
6004
|
+
icon: p.icon ? Ie(a, { ...n, icon: p.icon }) : void 0,
|
|
6000
6005
|
children: R.length > 0 ? R : void 0
|
|
6001
6006
|
};
|
|
6002
6007
|
(R.length > 0 || !p.children) && s.push(S);
|
|
@@ -6004,7 +6009,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6004
6009
|
return s;
|
|
6005
6010
|
}, us = vr([]), Jc = () => {
|
|
6006
6011
|
us.length = 0;
|
|
6007
|
-
const e =
|
|
6012
|
+
const e = Me();
|
|
6008
6013
|
let a = hn().TabActive;
|
|
6009
6014
|
e.matchedRoutes(a).forEach((s, r) => {
|
|
6010
6015
|
var l;
|
|
@@ -6015,7 +6020,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6015
6020
|
};
|
|
6016
6021
|
us.push(o);
|
|
6017
6022
|
});
|
|
6018
|
-
}, Qc =
|
|
6023
|
+
}, Qc = Dt("hostInfo", {
|
|
6019
6024
|
state: () => ({
|
|
6020
6025
|
hostInfo: {
|
|
6021
6026
|
Host: "",
|
|
@@ -6040,7 +6045,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6040
6045
|
*/
|
|
6041
6046
|
async loadHostInfo(e, t) {
|
|
6042
6047
|
if (Ce()) {
|
|
6043
|
-
const n = await
|
|
6048
|
+
const n = await Nt.getHostInfo();
|
|
6044
6049
|
this._setHostInfo(n);
|
|
6045
6050
|
return;
|
|
6046
6051
|
}
|
|
@@ -6048,7 +6053,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6048
6053
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6049
6054
|
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6050
6055
|
const s = t || window.location.origin;
|
|
6051
|
-
|
|
6056
|
+
qe(zs.host, {
|
|
6052
6057
|
Query: {
|
|
6053
6058
|
Host: s
|
|
6054
6059
|
}
|
|
@@ -6108,7 +6113,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6108
6113
|
}), Xc = /* @__PURE__ */ De({
|
|
6109
6114
|
__name: "index",
|
|
6110
6115
|
props: {
|
|
6111
|
-
...
|
|
6116
|
+
...Ft,
|
|
6112
6117
|
/**
|
|
6113
6118
|
* 选择项数据
|
|
6114
6119
|
*/
|
|
@@ -6123,37 +6128,37 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6123
6128
|
},
|
|
6124
6129
|
emits: ["change"],
|
|
6125
6130
|
setup(e, { emit: t }) {
|
|
6126
|
-
const a = e, n =
|
|
6131
|
+
const a = e, n = ft(), s = xt(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
|
|
6127
6132
|
r.inputFactory = ke(n);
|
|
6128
6133
|
const o = w([]);
|
|
6129
6134
|
r && B(
|
|
6130
6135
|
() => r.options.value,
|
|
6131
|
-
(
|
|
6132
|
-
o.value =
|
|
6136
|
+
(y) => {
|
|
6137
|
+
o.value = y || [];
|
|
6133
6138
|
},
|
|
6134
6139
|
{ immediate: !0, deep: !0 }
|
|
6135
6140
|
);
|
|
6136
|
-
const l = t, { editorCtrl: i, errInfo: c } =
|
|
6141
|
+
const l = t, { editorCtrl: i, errInfo: c } = ft(), { t: m } = la(), g = tt(() => {
|
|
6137
6142
|
switch (a.size) {
|
|
6138
6143
|
case "small":
|
|
6139
6144
|
return "w-[46px]";
|
|
6140
6145
|
default:
|
|
6141
6146
|
return "w-[58px]";
|
|
6142
6147
|
}
|
|
6143
|
-
}), p = (
|
|
6144
|
-
c != null && c.value.errClass && i &&
|
|
6148
|
+
}), p = (y) => {
|
|
6149
|
+
c != null && c.value.errClass && i && Mt(i), l("change", y);
|
|
6145
6150
|
};
|
|
6146
|
-
return
|
|
6151
|
+
return wt(() => {
|
|
6147
6152
|
if (!a.data || a.data.length != 2) {
|
|
6148
6153
|
console.error("Switch组件: ", a.data), se.error(m("webui.components.form.switch.error"));
|
|
6149
6154
|
return;
|
|
6150
6155
|
}
|
|
6151
|
-
r &&
|
|
6152
|
-
}),
|
|
6153
|
-
r &&
|
|
6154
|
-
}), (
|
|
6156
|
+
r && pt(r.autoload, r, a);
|
|
6157
|
+
}), dt(() => {
|
|
6158
|
+
r && Ut(r, a);
|
|
6159
|
+
}), (y, R) => {
|
|
6155
6160
|
var S;
|
|
6156
|
-
return o.value.length === 2 ? (le(), zt(X(
|
|
6161
|
+
return o.value.length === 2 ? (le(), zt(X(Ir), kt({
|
|
6157
6162
|
key: 0,
|
|
6158
6163
|
size: e.size,
|
|
6159
6164
|
class: [
|
|
@@ -6166,14 +6171,14 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6166
6171
|
unCheckedChildren: o.value[1].label,
|
|
6167
6172
|
unCheckedValue: o.value[1].value,
|
|
6168
6173
|
onChange: p
|
|
6169
|
-
},
|
|
6174
|
+
}, y.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : ot("", !0);
|
|
6170
6175
|
};
|
|
6171
6176
|
}
|
|
6172
6177
|
}), qc = /* @__PURE__ */ De({
|
|
6173
6178
|
inheritAttrs: !1,
|
|
6174
6179
|
__name: "index",
|
|
6175
6180
|
props: {
|
|
6176
|
-
...
|
|
6181
|
+
...Ft,
|
|
6177
6182
|
value: {
|
|
6178
6183
|
type: [String, Number, Array, null],
|
|
6179
6184
|
default: void 0
|
|
@@ -6190,7 +6195,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6190
6195
|
},
|
|
6191
6196
|
emits: ["update:value", "select", "change", "update:labels"],
|
|
6192
6197
|
setup(e, { emit: t }) {
|
|
6193
|
-
const a = e, n = Zt(), s =
|
|
6198
|
+
const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6194
6199
|
o.inputFactory = ke(s), o.fieldMap = {
|
|
6195
6200
|
label: "Name",
|
|
6196
6201
|
value: "Id",
|
|
@@ -6219,40 +6224,40 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6219
6224
|
},
|
|
6220
6225
|
{ immediate: !0, deep: !0 }
|
|
6221
6226
|
);
|
|
6222
|
-
const
|
|
6227
|
+
const y = (S) => {
|
|
6223
6228
|
if (p.value = [], S === "") return;
|
|
6224
6229
|
let d = {
|
|
6225
6230
|
Query: {
|
|
6226
6231
|
SearchField: "%" + S.trim() + "%"
|
|
6227
6232
|
}
|
|
6228
6233
|
};
|
|
6229
|
-
o.params =
|
|
6234
|
+
o.params = Ct(o.params, d), o && pt(!0, o, a);
|
|
6230
6235
|
}, R = (S) => {
|
|
6231
6236
|
const O = pa(o, a, S);
|
|
6232
6237
|
g("update:value", S), g("select", S);
|
|
6233
6238
|
const d = ma(O);
|
|
6234
|
-
g("update:labels", d), c != null && c.value.errClass && i &&
|
|
6239
|
+
g("update:labels", d), c != null && c.value.errClass && i && Mt(i);
|
|
6235
6240
|
};
|
|
6236
6241
|
return ea(() => {
|
|
6237
6242
|
o && o.autoload && (o.reload.value = !0);
|
|
6238
|
-
}),
|
|
6239
|
-
o &&
|
|
6243
|
+
}), dt(() => {
|
|
6244
|
+
o && Ut(o, a);
|
|
6240
6245
|
}), (S, O) => {
|
|
6241
6246
|
var d;
|
|
6242
6247
|
return le(), ge("div", null, [
|
|
6243
|
-
|
|
6248
|
+
Be(X(yr), kt({
|
|
6244
6249
|
value: l.value,
|
|
6245
6250
|
"onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
|
|
6246
6251
|
class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
|
|
6247
6252
|
options: p.value,
|
|
6248
|
-
onSearch:
|
|
6253
|
+
onSearch: y,
|
|
6249
6254
|
onSelect: R
|
|
6250
6255
|
}, X(n), { "allow-clear": !1 }), {
|
|
6251
|
-
option:
|
|
6252
|
-
ta(
|
|
6256
|
+
option: Ue(({ label: _ }) => [
|
|
6257
|
+
ta(je(_), 1)
|
|
6253
6258
|
]),
|
|
6254
|
-
default:
|
|
6255
|
-
|
|
6259
|
+
default: Ue(() => [
|
|
6260
|
+
Be(X(Nr), {
|
|
6256
6261
|
"allow-clear": "",
|
|
6257
6262
|
placeholder: "请输入并选择" + X(m)
|
|
6258
6263
|
}, null, 8, ["placeholder"])
|
|
@@ -6269,7 +6274,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6269
6274
|
inheritAttrs: !1,
|
|
6270
6275
|
__name: "index",
|
|
6271
6276
|
props: {
|
|
6272
|
-
...
|
|
6277
|
+
...Ft,
|
|
6273
6278
|
nodata: {
|
|
6274
6279
|
type: String,
|
|
6275
6280
|
default: ""
|
|
@@ -6286,13 +6291,13 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6286
6291
|
},
|
|
6287
6292
|
emits: ["change", "update:labels"],
|
|
6288
6293
|
setup(e, { emit: t }) {
|
|
6289
|
-
var p,
|
|
6290
|
-
const a = e, n = Zt(), s =
|
|
6294
|
+
var p, y, R;
|
|
6295
|
+
const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6291
6296
|
o.inputFactory = ke(s);
|
|
6292
6297
|
const l = w({
|
|
6293
6298
|
...o == null ? void 0 : o.url,
|
|
6294
6299
|
url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
|
|
6295
|
-
fieldMap: (o == null ? void 0 : o.fieldMap) || ((
|
|
6300
|
+
fieldMap: (o == null ? void 0 : o.fieldMap) || ((y = o == null ? void 0 : o.url) == null ? void 0 : y.fieldMap),
|
|
6296
6301
|
params: (o == null ? void 0 : o.params) || ((R = o == null ? void 0 : o.url) == null ? void 0 : R.params),
|
|
6297
6302
|
loadingText: !1
|
|
6298
6303
|
}), { errInfo: i } = s, c = t;
|
|
@@ -6311,22 +6316,22 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6311
6316
|
};
|
|
6312
6317
|
return ea(() => {
|
|
6313
6318
|
o && o.autoload && (o.reload.value = !0);
|
|
6314
|
-
}),
|
|
6319
|
+
}), wt(() => {
|
|
6315
6320
|
l.value && !l.value.fieldMap && (l.value.fieldMap = {
|
|
6316
6321
|
title: "Name",
|
|
6317
6322
|
label: "Name",
|
|
6318
6323
|
value: "Id",
|
|
6319
6324
|
key: "Id"
|
|
6320
|
-
}), o &&
|
|
6321
|
-
}),
|
|
6322
|
-
o &&
|
|
6325
|
+
}), o && pt(o.autoload, o, a);
|
|
6326
|
+
}), dt(() => {
|
|
6327
|
+
o && Ut(o, a);
|
|
6323
6328
|
}), (S, O) => (le(), ge("div", ec, [
|
|
6324
|
-
|
|
6329
|
+
Be(X(Sr), kt({
|
|
6325
6330
|
onChange: g,
|
|
6326
6331
|
class: "w-full mb-[-3px]"
|
|
6327
6332
|
}, X(n)), {
|
|
6328
|
-
default:
|
|
6329
|
-
m.value.length > 0 ? (le(!0), ge(
|
|
6333
|
+
default: Ue(() => [
|
|
6334
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (d) => {
|
|
6330
6335
|
var _;
|
|
6331
6336
|
return le(), zt(X(Tr), {
|
|
6332
6337
|
key: d.value,
|
|
@@ -6339,12 +6344,12 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6339
6344
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
6340
6345
|
])
|
|
6341
6346
|
}, {
|
|
6342
|
-
default:
|
|
6343
|
-
ta(
|
|
6347
|
+
default: Ue(() => [
|
|
6348
|
+
ta(je(d.label), 1)
|
|
6344
6349
|
]),
|
|
6345
6350
|
_: 2
|
|
6346
6351
|
}, 1032, ["value", "disabled", "class"]);
|
|
6347
|
-
}), 128)) : e.nodata ? (le(), ge("div", tc,
|
|
6352
|
+
}), 128)) : e.nodata ? (le(), ge("div", tc, je(e.nodata), 1)) : ot("", !0)
|
|
6348
6353
|
]),
|
|
6349
6354
|
_: 1
|
|
6350
6355
|
}, 16)
|
|
@@ -6357,7 +6362,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6357
6362
|
inheritAttrs: !1,
|
|
6358
6363
|
__name: "index",
|
|
6359
6364
|
props: {
|
|
6360
|
-
...
|
|
6365
|
+
...Ft,
|
|
6361
6366
|
value: {
|
|
6362
6367
|
type: [String, Number, null, Array],
|
|
6363
6368
|
default: void 0
|
|
@@ -6376,7 +6381,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6376
6381
|
emits: ["change", "update:value", "update:labels"],
|
|
6377
6382
|
setup(e, { emit: t }) {
|
|
6378
6383
|
var R, S, O;
|
|
6379
|
-
const a = e, n = Zt(), s =
|
|
6384
|
+
const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6380
6385
|
o.inputFactory = ke(s);
|
|
6381
6386
|
const l = w({
|
|
6382
6387
|
...o == null ? void 0 : o.url,
|
|
@@ -6404,42 +6409,42 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6404
6409
|
);
|
|
6405
6410
|
const p = (d, _) => {
|
|
6406
6411
|
if (typeof d == "object" && typeof _ == "object") {
|
|
6407
|
-
const
|
|
6408
|
-
return
|
|
6412
|
+
const I = JSON.stringify(d) === JSON.stringify(_);
|
|
6413
|
+
return I && (i.value = d), I;
|
|
6409
6414
|
}
|
|
6410
6415
|
return d === _;
|
|
6411
|
-
},
|
|
6412
|
-
const _ = d.target.value,
|
|
6416
|
+
}, y = (d) => {
|
|
6417
|
+
const _ = d.target.value, I = pa(o, a, _), E = ma(I);
|
|
6413
6418
|
g("update:labels", E);
|
|
6414
6419
|
};
|
|
6415
6420
|
return ea(() => {
|
|
6416
6421
|
o && o.autoload && (o.reload.value = !0);
|
|
6417
|
-
}),
|
|
6422
|
+
}), wt(() => {
|
|
6418
6423
|
l.value && !l.value.fieldMap && (l.value.fieldMap = {
|
|
6419
6424
|
label: "Name",
|
|
6420
6425
|
value: "Id",
|
|
6421
6426
|
key: "Id"
|
|
6422
|
-
}), o &&
|
|
6423
|
-
}),
|
|
6424
|
-
o &&
|
|
6427
|
+
}), o && pt(o.autoload, o, a);
|
|
6428
|
+
}), dt(() => {
|
|
6429
|
+
o && Ut(o, a);
|
|
6425
6430
|
}), (d, _) => (le(), ge("div", ac, [
|
|
6426
|
-
|
|
6431
|
+
Be(X(Lr), kt({
|
|
6427
6432
|
value: i.value,
|
|
6428
|
-
"onUpdate:value": _[0] || (_[0] = (
|
|
6433
|
+
"onUpdate:value": _[0] || (_[0] = (I) => i.value = I),
|
|
6429
6434
|
autocheck: !1,
|
|
6430
|
-
onChange:
|
|
6435
|
+
onChange: y,
|
|
6431
6436
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6432
6437
|
}, X(n)), {
|
|
6433
|
-
default:
|
|
6434
|
-
m.value.length > 0 ? (le(!0), ge(
|
|
6438
|
+
default: Ue(() => [
|
|
6439
|
+
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (I) => {
|
|
6435
6440
|
var E;
|
|
6436
|
-
return le(), ge(
|
|
6437
|
-
key:
|
|
6441
|
+
return le(), ge(Ye, {
|
|
6442
|
+
key: I.value
|
|
6438
6443
|
}, [
|
|
6439
|
-
|
|
6444
|
+
I.visible !== !1 ? (le(), zt(X(Or), {
|
|
6440
6445
|
key: 0,
|
|
6441
|
-
checked: p(
|
|
6442
|
-
value:
|
|
6446
|
+
checked: p(I.value, a.value),
|
|
6447
|
+
value: I.value,
|
|
6443
6448
|
class: ds([
|
|
6444
6449
|
((E = X(c)) == null ? void 0 : E.errClass) === "error" ? "error !text-red-400" : "",
|
|
6445
6450
|
"text-nowrap",
|
|
@@ -6447,13 +6452,13 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6447
6452
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
6448
6453
|
])
|
|
6449
6454
|
}, {
|
|
6450
|
-
default:
|
|
6451
|
-
ta(
|
|
6455
|
+
default: Ue(() => [
|
|
6456
|
+
ta(je(I.label), 1)
|
|
6452
6457
|
]),
|
|
6453
6458
|
_: 2
|
|
6454
|
-
}, 1032, ["checked", "value", "class"])) :
|
|
6459
|
+
}, 1032, ["checked", "value", "class"])) : ot("", !0)
|
|
6455
6460
|
], 64);
|
|
6456
|
-
}), 128)) : e.nodata ? (le(), ge("div", nc,
|
|
6461
|
+
}), 128)) : e.nodata ? (le(), ge("div", nc, je(e.nodata), 1)) : ot("", !0)
|
|
6457
6462
|
]),
|
|
6458
6463
|
_: 1
|
|
6459
6464
|
}, 16, ["value"])
|
|
@@ -6466,7 +6471,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6466
6471
|
inheritAttrs: !1,
|
|
6467
6472
|
__name: "index",
|
|
6468
6473
|
props: {
|
|
6469
|
-
...
|
|
6474
|
+
...Ft,
|
|
6470
6475
|
value: {
|
|
6471
6476
|
type: [String, Number, Array, null],
|
|
6472
6477
|
default: void 0
|
|
@@ -6497,33 +6502,33 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6497
6502
|
},
|
|
6498
6503
|
emits: ["change", "update:value", "update:label", "update:labels"],
|
|
6499
6504
|
setup(e, { emit: t }) {
|
|
6500
|
-
var _,
|
|
6501
|
-
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s =
|
|
6505
|
+
var _, I, E;
|
|
6506
|
+
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ft(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = xt(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
|
|
6502
6507
|
c.inputFactory = ke(s);
|
|
6503
6508
|
const m = Zt();
|
|
6504
6509
|
c.autoload = a.autoload ?? c.autoload;
|
|
6505
6510
|
const g = w({
|
|
6506
6511
|
...c == null ? void 0 : c.url,
|
|
6507
6512
|
url: ((_ = c == null ? void 0 : c.url) == null ? void 0 : _.url) || "",
|
|
6508
|
-
fieldMap: (c == null ? void 0 : c.fieldMap) || ((
|
|
6513
|
+
fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
|
|
6509
6514
|
params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
|
|
6510
6515
|
loadingText: !1
|
|
6511
|
-
}), p = w(m.placeholder),
|
|
6516
|
+
}), p = w(m.placeholder), y = w(c == null ? void 0 : c.selected.value), R = t;
|
|
6512
6517
|
s.inputEmit = R;
|
|
6513
6518
|
const S = (b) => {
|
|
6514
6519
|
const L = pa(c, a, b), v = ma(L);
|
|
6515
|
-
|
|
6520
|
+
y.value = b, R("update:labels", v), R("update:label", v.join(";")), R("change", b, L), o != null && o.value.errClass && r && Mt(r);
|
|
6516
6521
|
}, O = w((c == null ? void 0 : c.options.value) || []), d = (b) => {
|
|
6517
6522
|
if (b.length > 0 && ve(a.value) && a.selectFirst)
|
|
6518
6523
|
for (let L = 0; L < b.length; L++) {
|
|
6519
6524
|
const v = b[L];
|
|
6520
6525
|
if (v.disabled === void 0 || v.disabled === !1) {
|
|
6521
|
-
|
|
6526
|
+
y.value = v.value;
|
|
6522
6527
|
break;
|
|
6523
6528
|
}
|
|
6524
6529
|
}
|
|
6525
|
-
else b.length > 0 && (
|
|
6526
|
-
b.length > 0 &&
|
|
6530
|
+
else b.length > 0 && (y.value = a.value === null ? void 0 : a.value);
|
|
6531
|
+
b.length > 0 && y.value !== void 0 && S(y.value);
|
|
6527
6532
|
};
|
|
6528
6533
|
return c && (B(
|
|
6529
6534
|
() => c.options.value,
|
|
@@ -6534,7 +6539,7 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6534
6539
|
), B(
|
|
6535
6540
|
() => c.selected.value,
|
|
6536
6541
|
(b) => {
|
|
6537
|
-
|
|
6542
|
+
y.value = b;
|
|
6538
6543
|
}
|
|
6539
6544
|
)), B(
|
|
6540
6545
|
() => O.value,
|
|
@@ -6550,18 +6555,18 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6550
6555
|
), B(
|
|
6551
6556
|
() => a.value,
|
|
6552
6557
|
(b) => {
|
|
6553
|
-
|
|
6558
|
+
y.value = b;
|
|
6554
6559
|
},
|
|
6555
6560
|
{ immediate: !0 }
|
|
6556
6561
|
), B(
|
|
6557
|
-
() =>
|
|
6562
|
+
() => y.value,
|
|
6558
6563
|
(b) => {
|
|
6559
6564
|
const L = b === void 0 ? n ? void 0 : null : b;
|
|
6560
6565
|
c && (c.selected.value = L), R("update:value", L);
|
|
6561
6566
|
}
|
|
6562
6567
|
), ea(() => {
|
|
6563
6568
|
c && c.autoload && (c.reload.value = !0);
|
|
6564
|
-
}),
|
|
6569
|
+
}), wt(() => {
|
|
6565
6570
|
if (g.value && !g.value.fieldMap && (g.value.fieldMap = {
|
|
6566
6571
|
label: "Name",
|
|
6567
6572
|
value: "Id",
|
|
@@ -6571,39 +6576,39 @@ const nt = new Hi(), mt = (e, t, a) => {
|
|
|
6571
6576
|
O.value = b, d(b);
|
|
6572
6577
|
} else if (c) {
|
|
6573
6578
|
const b = c.options.value || [];
|
|
6574
|
-
b.length > 0 ? (O.value = b, d(b)) :
|
|
6579
|
+
b.length > 0 ? (O.value = b, d(b)) : pt(c.autoload, c, a);
|
|
6575
6580
|
}
|
|
6576
|
-
}),
|
|
6577
|
-
c &&
|
|
6581
|
+
}), dt(() => {
|
|
6582
|
+
c && Ut(c, a);
|
|
6578
6583
|
}), (b, L) => {
|
|
6579
6584
|
var v, C, M;
|
|
6580
6585
|
return le(), ge("div", null, [
|
|
6581
6586
|
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", sc, [
|
|
6582
|
-
|
|
6583
|
-
br("span", null,
|
|
6584
|
-
])) :
|
|
6585
|
-
|
|
6587
|
+
Be(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6588
|
+
br("span", null, je(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6589
|
+
])) : ot("", !0),
|
|
6590
|
+
Be(X(Ar), kt({
|
|
6586
6591
|
class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
|
|
6587
|
-
value:
|
|
6588
|
-
"onUpdate:value": L[0] || (L[0] = (K) =>
|
|
6592
|
+
value: y.value,
|
|
6593
|
+
"onUpdate:value": L[0] || (L[0] = (K) => y.value = K),
|
|
6589
6594
|
"allow-clear": !0,
|
|
6590
6595
|
onChange: S,
|
|
6591
6596
|
placeholder: p.value,
|
|
6592
6597
|
"label-in-value": !1
|
|
6593
6598
|
}, X(m)), {
|
|
6594
|
-
default:
|
|
6595
|
-
(le(!0), ge(
|
|
6599
|
+
default: Ue(() => [
|
|
6600
|
+
(le(!0), ge(Ye, null, nn(O.value, (K) => (le(), ge(Ye, {
|
|
6596
6601
|
key: K.value
|
|
6597
6602
|
}, [
|
|
6598
6603
|
K.visible !== !1 ? (le(), zt(X(Pr), {
|
|
6599
6604
|
key: 0,
|
|
6600
6605
|
value: K.value
|
|
6601
6606
|
}, {
|
|
6602
|
-
default:
|
|
6603
|
-
ta(
|
|
6607
|
+
default: Ue(() => [
|
|
6608
|
+
ta(je(K.label), 1)
|
|
6604
6609
|
]),
|
|
6605
6610
|
_: 2
|
|
6606
|
-
}, 1032, ["value"])) :
|
|
6611
|
+
}, 1032, ["value"])) : ot("", !0)
|
|
6607
6612
|
], 64))), 128))
|
|
6608
6613
|
]),
|
|
6609
6614
|
_: 1
|
|
@@ -6624,17 +6629,17 @@ export {
|
|
|
6624
6629
|
P as $,
|
|
6625
6630
|
pa as A,
|
|
6626
6631
|
ma as B,
|
|
6627
|
-
|
|
6632
|
+
Mt as C,
|
|
6628
6633
|
zc as D,
|
|
6629
6634
|
la as E,
|
|
6630
6635
|
Zc as F,
|
|
6631
6636
|
eu as G,
|
|
6632
6637
|
En as H,
|
|
6633
6638
|
Ur as I,
|
|
6634
|
-
|
|
6639
|
+
yc as J,
|
|
6635
6640
|
Hc as K,
|
|
6636
6641
|
ua as L,
|
|
6637
|
-
|
|
6642
|
+
Nt as M,
|
|
6638
6643
|
Yi as N,
|
|
6639
6644
|
en as O,
|
|
6640
6645
|
Re as P,
|
|
@@ -6668,20 +6673,20 @@ export {
|
|
|
6668
6673
|
ar as af,
|
|
6669
6674
|
Di as ag,
|
|
6670
6675
|
tn as ah,
|
|
6671
|
-
|
|
6676
|
+
st as ai,
|
|
6672
6677
|
yt as aj,
|
|
6673
|
-
|
|
6674
|
-
|
|
6678
|
+
Jt as ak,
|
|
6679
|
+
Me as al,
|
|
6675
6680
|
Qc as am,
|
|
6676
6681
|
hn as an,
|
|
6677
6682
|
rc as ao,
|
|
6678
6683
|
tu as ap,
|
|
6679
6684
|
me as aq,
|
|
6680
6685
|
Ec as ar,
|
|
6681
|
-
|
|
6686
|
+
Ic as as,
|
|
6682
6687
|
bc as at,
|
|
6683
6688
|
vc as au,
|
|
6684
|
-
|
|
6689
|
+
ut as av,
|
|
6685
6690
|
wc as b,
|
|
6686
6691
|
Yc as c,
|
|
6687
6692
|
kc as d,
|
|
@@ -6700,11 +6705,11 @@ export {
|
|
|
6700
6705
|
Ci as q,
|
|
6701
6706
|
ca as r,
|
|
6702
6707
|
qc as s,
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6708
|
+
Ft as t,
|
|
6709
|
+
ye as u,
|
|
6710
|
+
ft as v,
|
|
6711
|
+
xt as w,
|
|
6712
|
+
pt as x,
|
|
6713
|
+
Ut as y,
|
|
6709
6714
|
an as z
|
|
6710
6715
|
};
|