@skyfox2000/webui 1.5.16 → 1.5.18
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-BTMzpIiV.js → baseLayout-C0oro8TZ.js} +7 -7
- package/lib/assets/modules/{file-upload-d6wJYD_r.js → file-upload-CgDrcFNd.js} +1 -1
- package/lib/assets/modules/{index-BhXS0TjD.js → index-ATFhuPny.js} +1 -1
- package/lib/assets/modules/{index-CxB0AuVY.js → index-CBf1uUD5.js} +2 -2
- package/lib/assets/modules/{index-BsaUh4V0.js → index-CSYtMPul.js} +2 -2
- package/lib/assets/modules/{menuTabs-DZNVE3eg.js → menuTabs-Bn4JhD4B.js} +2 -2
- package/lib/assets/modules/{toolIcon-B8bR-dPF.js → toolIcon-BjDYymr7.js} +1 -1
- package/lib/assets/modules/{upload-template-CiWosjbL.js → upload-template-DsasmjJZ.js} +419 -401
- package/lib/assets/modules/{uploadList-DHmkR_yd.js → uploadList-Cv7NFGLh.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +6 -6
- 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 +8 -8
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +9 -9
- package/lib/index.d.ts +1 -1
- package/lib/locales/default.d.ts +22 -8
- package/lib/utils/form-validate.d.ts +1 -0
- package/lib/webui.es.js +72 -71
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/locales/default.ts +23 -9
- package/src/utils/form-validate.ts +10 -0
- package/src/utils/form.ts +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var dr = Object.defineProperty;
|
|
2
2
|
var mr = (e, t, a) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ne = (e, t, a) => mr(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import * as
|
|
5
|
-
import { effectScope as pr, ref as R, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as
|
|
4
|
+
import * as wa from "vue";
|
|
5
|
+
import { effectScope as pr, ref as R, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ft, createVNode as Ye, Text as gr, nextTick as hr, provide as ka, toRaw as fs, reactive as Er, createBlock as zt, createCommentVNode as rt, openBlock as le, unref as X, mergeProps as wt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Me, createTextVNode as ta, toDisplayString as Be, renderList as nn, normalizeClass as ds, createElementVNode as vr } from "vue";
|
|
6
6
|
import { Switch as br, AutoComplete as yr, Input as Ir, CheckboxGroup as Nr, Checkbox as Sr, RadioGroup as Tr, Radio as Lr, Select as Or, SelectOption as Ar } from "ant-design-vue";
|
|
7
7
|
import { createPinia as Pr, defineStore as kt } from "pinia";
|
|
8
8
|
import Rr from "pinia-plugin-persistedstate";
|
|
9
9
|
import { EnvConfig as Jt, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as wr, combineParams as Dt } from "@skyfox2000/microbase";
|
|
10
|
-
import { httpPost as Xe, ResStatus as ie, setToken as Ht, fieldMapping as kr, parseFieldTemplate as Qt, API_HOST as
|
|
10
|
+
import { httpPost as Xe, ResStatus as ie, setToken as Ht, fieldMapping as kr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Dr } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Cr, createWebHashHistory as Fr } from "vue-router";
|
|
13
|
-
import
|
|
13
|
+
import aa from "async-validator";
|
|
14
14
|
import "dayjs";
|
|
15
15
|
import "vue-draggable-next";
|
|
16
16
|
const Mr = Pr();
|
|
@@ -40,10 +40,10 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const Ur = /\{([0-9a-zA-Z]+)\}/g;
|
|
43
|
-
function
|
|
43
|
+
function na(e, ...t) {
|
|
44
44
|
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ur, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
45
45
|
}
|
|
46
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, a) => Vr({ l: e, k: t, s: a }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), $r = (e) => rn(e) === "[object Date]", ot = (e) => rn(e) === "[object RegExp]",
|
|
46
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, a) => Vr({ l: e, k: t, s: a }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), $r = (e) => rn(e) === "[object Date]", ot = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Hr = Object.create, W = (e = null) => Hr(e);
|
|
47
47
|
let On;
|
|
48
48
|
const We = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
49
|
function An(e) {
|
|
@@ -136,7 +136,7 @@ function Bt(e, t) {
|
|
|
136
136
|
function jr(e, t, a) {
|
|
137
137
|
return { line: e, column: t, offset: a };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function $a(e, t, a) {
|
|
140
140
|
return { start: e, end: t };
|
|
141
141
|
}
|
|
142
142
|
const D = {
|
|
@@ -182,8 +182,8 @@ const D = {
|
|
|
182
182
|
// minimizer error messages
|
|
183
183
|
[D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ?
|
|
185
|
+
function dt(e, t, a = {}) {
|
|
186
|
+
const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s || Qr)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
|
|
187
187
|
return l.code = e, t && (l.location = t), l.domain = n, l;
|
|
188
188
|
}
|
|
189
189
|
function Xr(e) {
|
|
@@ -246,7 +246,7 @@ function ro(e, t = {}) {
|
|
|
246
246
|
function g(u, f, N, ...k) {
|
|
247
247
|
const j = c();
|
|
248
248
|
if (f.column += N, f.offset += N, m) {
|
|
249
|
-
const q = a ?
|
|
249
|
+
const q = a ? $a(j.startLoc, f) : null, V = dt(u, q, {
|
|
250
250
|
domain: so,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
@@ -256,7 +256,7 @@ function ro(e, t = {}) {
|
|
|
256
256
|
function p(u, f, N) {
|
|
257
257
|
u.endLoc = r(), u.currentType = f;
|
|
258
258
|
const k = { type: f };
|
|
259
|
-
return a && (k.loc =
|
|
259
|
+
return a && (k.loc = $a(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
|
|
260
260
|
}
|
|
261
261
|
const I = (u) => p(
|
|
262
262
|
u,
|
|
@@ -372,10 +372,10 @@ function ro(e, t = {}) {
|
|
|
372
372
|
f === 95 || // _
|
|
373
373
|
f === 36;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function ga(u) {
|
|
376
376
|
return Q(u, qe);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ha(u) {
|
|
379
379
|
const f = u.charCodeAt(0);
|
|
380
380
|
return f >= 97 && f <= 122 || // a-z
|
|
381
381
|
f >= 65 && f <= 90 || // A-Z
|
|
@@ -384,32 +384,32 @@ function ro(e, t = {}) {
|
|
|
384
384
|
f === 36 || // $
|
|
385
385
|
f === 45;
|
|
386
386
|
}
|
|
387
|
-
function ha(u) {
|
|
388
|
-
return Q(u, ga);
|
|
389
|
-
}
|
|
390
387
|
function Ea(u) {
|
|
391
|
-
|
|
392
|
-
return f >= 48 && f <= 57;
|
|
388
|
+
return Q(u, ha);
|
|
393
389
|
}
|
|
394
390
|
function va(u) {
|
|
395
|
-
|
|
391
|
+
const f = u.charCodeAt(0);
|
|
392
|
+
return f >= 48 && f <= 57;
|
|
396
393
|
}
|
|
397
394
|
function ba(u) {
|
|
395
|
+
return Q(u, va);
|
|
396
|
+
}
|
|
397
|
+
function ya(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, ya);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function pt(u) {
|
|
407
407
|
let f = "", N = "";
|
|
408
|
-
for (; f =
|
|
408
|
+
for (; f = ba(u); )
|
|
409
409
|
N += f;
|
|
410
410
|
return N;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Ia(u) {
|
|
413
413
|
let f = "";
|
|
414
414
|
for (; ; ) {
|
|
415
415
|
const N = u.currentChar();
|
|
@@ -428,10 +428,10 @@ function ro(e, t = {}) {
|
|
|
428
428
|
}
|
|
429
429
|
return f;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Na(u) {
|
|
432
432
|
O(u);
|
|
433
433
|
let f = "", N = "";
|
|
434
|
-
for (; f =
|
|
434
|
+
for (; f = Ea(u); )
|
|
435
435
|
N += f;
|
|
436
436
|
const k = u.currentChar();
|
|
437
437
|
if (k && k !== "}" && k !== Pe && k !== Se && k !== re && k !== " ") {
|
|
@@ -440,23 +440,23 @@ function ro(e, t = {}) {
|
|
|
440
440
|
}
|
|
441
441
|
return u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
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 += `-${pt(u)}`) : f += pt(u), u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ta(u) {
|
|
449
449
|
return u !== wn && u !== re;
|
|
450
450
|
}
|
|
451
451
|
function In(u) {
|
|
452
452
|
O(u), P(u, "'");
|
|
453
453
|
let f = "", N = "";
|
|
454
|
-
for (; f = Q(u,
|
|
455
|
-
f === "\\" ? N +=
|
|
454
|
+
for (; f = Q(u, Ta); )
|
|
455
|
+
f === "\\" ? N += La(u) : N += f;
|
|
456
456
|
const k = u.currentChar();
|
|
457
457
|
return k === re || k === Pe ? (g(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), k === re && (u.next(), P(u, "'")), N) : (P(u, "'"), N);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function La(u) {
|
|
460
460
|
const f = u.currentChar();
|
|
461
461
|
switch (f) {
|
|
462
462
|
case "\\":
|
|
@@ -483,30 +483,30 @@ function ro(e, t = {}) {
|
|
|
483
483
|
}
|
|
484
484
|
return `\\${f}${k}`;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Oa(u) {
|
|
487
487
|
return u !== "{" && u !== "}" && u !== Se && u !== re;
|
|
488
488
|
}
|
|
489
489
|
function Vt(u) {
|
|
490
490
|
O(u);
|
|
491
491
|
let f = "", N = "";
|
|
492
|
-
for (; f = Q(u,
|
|
492
|
+
for (; f = Q(u, Oa); )
|
|
493
493
|
N += f;
|
|
494
494
|
return N;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Aa(u) {
|
|
497
497
|
let f = "", N = "";
|
|
498
|
-
for (; f =
|
|
498
|
+
for (; f = ga(u); )
|
|
499
499
|
N += f;
|
|
500
500
|
return N;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Pa(u) {
|
|
503
503
|
const f = (N) => {
|
|
504
504
|
const k = u.currentChar();
|
|
505
505
|
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Se ? N : (N += k, u.next(), f(N));
|
|
506
506
|
};
|
|
507
507
|
return f("");
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function _t(u) {
|
|
510
510
|
O(u);
|
|
511
511
|
const f = P(
|
|
512
512
|
u,
|
|
@@ -515,7 +515,7 @@ function ro(e, t = {}) {
|
|
|
515
515
|
);
|
|
516
516
|
return O(u), f;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function gt(u, f) {
|
|
519
519
|
let N = null;
|
|
520
520
|
switch (u.currentChar()) {
|
|
521
521
|
case "{":
|
|
@@ -537,13 +537,13 @@ function ro(e, t = {}) {
|
|
|
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, _t(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,
|
|
542
|
+
return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, ht(u, f);
|
|
543
543
|
if (j = y(u, f))
|
|
544
|
-
return N = p(f, 4,
|
|
544
|
+
return N = p(f, 4, Na(u)), O(u), N;
|
|
545
545
|
if (q = E(u, f))
|
|
546
|
-
return N = p(f, 5,
|
|
546
|
+
return N = p(f, 5, Sa(u)), O(u), N;
|
|
547
547
|
if (V = b(u, f))
|
|
548
548
|
return N = p(f, 6, In(u)), O(u), N;
|
|
549
549
|
if (!j && !q && !V)
|
|
@@ -580,21 +580,21 @@ function ro(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, _t(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), Ve(u, f)) : v(u, f) ? (O(u), p(f, 11, Aa(u))) : M(u, f) ? (O(u), j === "{" ? gt(u, f) || k : p(f, 10, Pa(u))) : (N === 7 && g(D.INVALID_LINKED_FORMAT, r(), 0), f.braceNest = 0, f.inLinked = !1, ht(u, f));
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function ht(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 gt(u, f) || I(f);
|
|
593
593
|
if (f.inLinked)
|
|
594
594
|
return Ve(u, f) || I(f);
|
|
595
595
|
switch (u.currentChar()) {
|
|
596
596
|
case "{":
|
|
597
|
-
return
|
|
597
|
+
return gt(u, f) || I(f);
|
|
598
598
|
case "}":
|
|
599
599
|
return g(D.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), p(
|
|
600
600
|
f,
|
|
@@ -606,24 +606,24 @@ function ro(e, t = {}) {
|
|
|
606
606
|
return Ve(u, f) || I(f);
|
|
607
607
|
default: {
|
|
608
608
|
if (K(u))
|
|
609
|
-
return N = p(f, 1,
|
|
609
|
+
return N = p(f, 1, _t(u)), f.braceNest = 0, f.inLinked = !1, N;
|
|
610
610
|
if (Ee(u))
|
|
611
|
-
return p(f, 0,
|
|
611
|
+
return p(f, 0, Ia(u));
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return N;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Ra() {
|
|
618
618
|
const { currentType: u, offset: f, startLoc: N, endLoc: k } = i;
|
|
619
619
|
return i.lastType = u, i.lastOffset = f, i.lastStartLoc = N, i.lastEndLoc = k, i.offset = s(), i.startLoc = r(), n.currentChar() === Pe ? p(
|
|
620
620
|
i,
|
|
621
621
|
13
|
|
622
622
|
/* TokenTypes.EOF */
|
|
623
|
-
) :
|
|
623
|
+
) : ht(n, i);
|
|
624
624
|
}
|
|
625
625
|
return {
|
|
626
|
-
nextToken:
|
|
626
|
+
nextToken: Ra,
|
|
627
627
|
currentOffset: s,
|
|
628
628
|
currentPosition: r,
|
|
629
629
|
context: c
|
|
@@ -648,7 +648,7 @@ function co(e = {}) {
|
|
|
648
648
|
function n(d, _, y, E, ...b) {
|
|
649
649
|
const L = d.currentPosition();
|
|
650
650
|
if (L.offset += E, L.column += E, a) {
|
|
651
|
-
const v = t ?
|
|
651
|
+
const v = t ? $a(y, L) : null, C = dt(_, v, {
|
|
652
652
|
domain: oo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
@@ -913,7 +913,7 @@ function tt(e) {
|
|
|
913
913
|
}
|
|
914
914
|
default:
|
|
915
915
|
if (process.env.NODE_ENV !== "production")
|
|
916
|
-
throw
|
|
916
|
+
throw dt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
917
917
|
domain: po,
|
|
918
918
|
args: [e.type]
|
|
919
919
|
});
|
|
@@ -1044,7 +1044,7 @@ function lt(e, t) {
|
|
|
1044
1044
|
break;
|
|
1045
1045
|
default:
|
|
1046
1046
|
if (process.env.NODE_ENV !== "production")
|
|
1047
|
-
throw
|
|
1047
|
+
throw dt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1048
1048
|
domain: _o,
|
|
1049
1049
|
args: [t.type]
|
|
1050
1050
|
});
|
|
@@ -1108,7 +1108,7 @@ function Gt(e, t) {
|
|
|
1108
1108
|
const a = Ue(e, vs);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
|
-
throw
|
|
1111
|
+
throw Nt(t);
|
|
1112
1112
|
}
|
|
1113
1113
|
const bs = ["m", "modifier"];
|
|
1114
1114
|
function Ao(e) {
|
|
@@ -1119,7 +1119,7 @@ function Po(e) {
|
|
|
1119
1119
|
const t = Ue(e, ys);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
|
-
throw
|
|
1122
|
+
throw Nt(
|
|
1123
1123
|
6
|
|
1124
1124
|
/* NodeTypes.Linked */
|
|
1125
1125
|
);
|
|
@@ -1142,16 +1142,16 @@ const Is = [
|
|
|
1142
1142
|
...vs,
|
|
1143
1143
|
...Es
|
|
1144
1144
|
];
|
|
1145
|
-
function
|
|
1145
|
+
function Nt(e) {
|
|
1146
1146
|
return new Error(`unhandled node type: ${e}`);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Ca(e) {
|
|
1149
1149
|
return (a) => Ro(a, e);
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ro(e, t) {
|
|
1152
1152
|
const a = So(t);
|
|
1153
1153
|
if (a == null)
|
|
1154
|
-
throw
|
|
1154
|
+
throw Nt(
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
@@ -1169,11 +1169,11 @@ function Cn(e, t) {
|
|
|
1169
1169
|
if (a != null)
|
|
1170
1170
|
return e.type === "text" ? a : e.normalize([a]);
|
|
1171
1171
|
{
|
|
1172
|
-
const n = Oo(t).reduce((s, r) => [...s,
|
|
1172
|
+
const n = Oo(t).reduce((s, r) => [...s, Ha(e, r)], []);
|
|
1173
1173
|
return e.normalize(n);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Ha(e, t) {
|
|
1177
1177
|
const a = un(t);
|
|
1178
1178
|
switch (a) {
|
|
1179
1179
|
case 3:
|
|
@@ -1186,7 +1186,7 @@ function $a(e, t) {
|
|
|
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 Nt(a);
|
|
1190
1190
|
}
|
|
1191
1191
|
case 5: {
|
|
1192
1192
|
const n = t;
|
|
@@ -1194,11 +1194,11 @@ function $a(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 Nt(a);
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
1200
|
const n = t, s = Ao(n), r = Po(n);
|
|
1201
|
-
return e.linked(
|
|
1201
|
+
return e.linked(Ha(e, r), s ? Ha(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
1204
1204
|
return Gt(t, a);
|
|
@@ -1210,7 +1210,7 @@ function $a(e, t) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
const wo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1212
1212
|
function ko(e, t) {
|
|
1213
|
-
t && zr(e) && Le(
|
|
1213
|
+
t && zr(e) && Le(na(wo, { source: e }));
|
|
1214
1214
|
}
|
|
1215
1215
|
const Do = (e) => e;
|
|
1216
1216
|
let Kt = W();
|
|
@@ -1233,7 +1233,7 @@ function Fo(e, t) {
|
|
|
1233
1233
|
...t,
|
|
1234
1234
|
location: process.env.NODE_ENV !== "production",
|
|
1235
1235
|
jit: !0
|
|
1236
|
-
}), i =
|
|
1236
|
+
}), i = Ca(o);
|
|
1237
1237
|
return l ? i : Kt[s] = i;
|
|
1238
1238
|
} else {
|
|
1239
1239
|
if (process.env.NODE_ENV !== "production" && !he(e))
|
|
@@ -1241,17 +1241,17 @@ function Fo(e, t) {
|
|
|
1241
1241
|
const a = e.cacheKey;
|
|
1242
1242
|
if (a) {
|
|
1243
1243
|
const n = Kt[a];
|
|
1244
|
-
return n || (Kt[a] =
|
|
1244
|
+
return n || (Kt[a] = Ca(e));
|
|
1245
1245
|
} else
|
|
1246
|
-
return
|
|
1246
|
+
return Ca(e);
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
let
|
|
1249
|
+
let St = null;
|
|
1250
1250
|
function Mo(e) {
|
|
1251
|
-
|
|
1251
|
+
St = e;
|
|
1252
1252
|
}
|
|
1253
1253
|
function Uo(e, t, a) {
|
|
1254
|
-
|
|
1254
|
+
St && St.emit("i18n:init", {
|
|
1255
1255
|
timestamp: Date.now(),
|
|
1256
1256
|
i18n: e,
|
|
1257
1257
|
version: t,
|
|
@@ -1260,7 +1260,7 @@ function Uo(e, t, a) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
const xo = /* @__PURE__ */ Vo("function:translate");
|
|
1262
1262
|
function Vo(e) {
|
|
1263
|
-
return (t) =>
|
|
1263
|
+
return (t) => St && St.emit(e, t);
|
|
1264
1264
|
}
|
|
1265
1265
|
const oe = {
|
|
1266
1266
|
INVALID_ARGUMENT: Jr,
|
|
@@ -1273,7 +1273,7 @@ const oe = {
|
|
|
1273
1273
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1274
1274
|
}, $o = 24;
|
|
1275
1275
|
function we(e) {
|
|
1276
|
-
return
|
|
1276
|
+
return dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Ho } : void 0);
|
|
1277
1277
|
}
|
|
1278
1278
|
const Ho = {
|
|
1279
1279
|
[oe.INVALID_ARGUMENT]: "Invalid arguments",
|
|
@@ -1287,18 +1287,18 @@ const Ho = {
|
|
|
1287
1287
|
function fn(e, t) {
|
|
1288
1288
|
return t.locale != null ? Fn(t.locale) : Fn(e.locale);
|
|
1289
1289
|
}
|
|
1290
|
-
let
|
|
1290
|
+
let Fa;
|
|
1291
1291
|
function Fn(e) {
|
|
1292
1292
|
if (A(e))
|
|
1293
1293
|
return e;
|
|
1294
1294
|
if (G(e)) {
|
|
1295
|
-
if (e.resolvedOnce &&
|
|
1296
|
-
return
|
|
1295
|
+
if (e.resolvedOnce && Fa != null)
|
|
1296
|
+
return Fa;
|
|
1297
1297
|
if (e.constructor.name === "Function") {
|
|
1298
1298
|
const t = e();
|
|
1299
1299
|
if (Kr(t))
|
|
1300
1300
|
throw we(oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1301
|
-
return
|
|
1301
|
+
return Fa = t;
|
|
1302
1302
|
} else
|
|
1303
1303
|
throw we(oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1304
1304
|
} else
|
|
@@ -1311,7 +1311,7 @@ function Wo(e, t, a) {
|
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
1313
|
function Ns(e, t, a) {
|
|
1314
|
-
const n = A(a) ? a :
|
|
1314
|
+
const n = A(a) ? a : Tt, s = e;
|
|
1315
1315
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1316
1316
|
let r = s.__localeChainCache.get(n);
|
|
1317
1317
|
if (!r) {
|
|
@@ -1657,9 +1657,9 @@ const ce = {
|
|
|
1657
1657
|
[ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1658
1658
|
};
|
|
1659
1659
|
function Je(e, ...t) {
|
|
1660
|
-
return
|
|
1660
|
+
return na(el[e], ...t);
|
|
1661
1661
|
}
|
|
1662
|
-
const tl = "11.2.7",
|
|
1662
|
+
const tl = "11.2.7", ra = -1, Tt = "en-US", Xt = "", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1663
1663
|
function al() {
|
|
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,7 +1689,7 @@ const Vn = (e) => {
|
|
|
1689
1689
|
}, il = () => As;
|
|
1690
1690
|
let $n = 0;
|
|
1691
1691
|
function cl(e = {}) {
|
|
1692
|
-
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale :
|
|
1692
|
+
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : Tt, s = G(n) ? Tt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ss;
|
|
1693
1693
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Je(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
1694
|
const b = G(e.messageResolver) ? e.messageResolver : Ts || qo, L = G(e.localeFallbacker) ? e.localeFallbacker : Ls || Wo, 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++;
|
|
@@ -1719,8 +1719,8 @@ function cl(e = {}) {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Uo(Q, a, Ee), Q;
|
|
1721
1721
|
}
|
|
1722
|
-
const
|
|
1723
|
-
function
|
|
1722
|
+
const Ma = (e) => ({ [e]: W() });
|
|
1723
|
+
function oa(e, t) {
|
|
1724
1724
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1725
1725
|
}
|
|
1726
1726
|
function Ps(e, t) {
|
|
@@ -1743,7 +1743,7 @@ function dn(e, t, a, n, s) {
|
|
|
1743
1743
|
} else
|
|
1744
1744
|
return process.env.NODE_ENV !== "production" && Ps(n, t) && o(Je(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Et(e, t, a) {
|
|
1747
1747
|
const n = e;
|
|
1748
1748
|
n.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, a, t);
|
|
1749
1749
|
}
|
|
@@ -1767,7 +1767,7 @@ 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" && !ws.dateTimeFormat)
|
|
1769
1769
|
return r(Je(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
-
const [i, c, m, g] =
|
|
1770
|
+
const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
|
|
1771
1771
|
e,
|
|
1772
1772
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1773
1773
|
s,
|
|
@@ -1778,7 +1778,7 @@ function Wn(e, ...t) {
|
|
|
1778
1778
|
let d = {}, _, y = 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 !== _ &&
|
|
1781
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(I, i) && r(Je(ce.FALLBACK_TO_DATE_FORMAT, {
|
|
1782
1782
|
key: i,
|
|
1783
1783
|
target: _
|
|
1784
1784
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1796,9 +1796,9 @@ function Wn(e, ...t) {
|
|
|
1796
1796
|
dn(e, i, _, p, L), E = b;
|
|
1797
1797
|
}
|
|
1798
1798
|
if (!F(y) || !A(_))
|
|
1799
|
-
return n ?
|
|
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
1803
|
return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
|
|
1804
1804
|
}
|
|
@@ -1824,7 +1824,7 @@ const ks = [
|
|
|
1824
1824
|
"hourCycle",
|
|
1825
1825
|
"fractionalSecondDigits"
|
|
1826
1826
|
];
|
|
1827
|
-
function
|
|
1827
|
+
function Wa(...e) {
|
|
1828
1828
|
const [t, a, n, s] = e, r = W();
|
|
1829
1829
|
let o = W(), l;
|
|
1830
1830
|
if (A(t)) {
|
|
@@ -1861,7 +1861,7 @@ function 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" && !ws.numberFormat)
|
|
1863
1863
|
return r(Je(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
-
const [i, c, m, g] =
|
|
1864
|
+
const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
|
|
1865
1865
|
e,
|
|
1866
1866
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1867
1867
|
s,
|
|
@@ -1872,7 +1872,7 @@ function Kn(e, ...t) {
|
|
|
1872
1872
|
let d = {}, _, y = 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 !== _ &&
|
|
1875
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(I, i) && r(Je(ce.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1876
1876
|
key: i,
|
|
1877
1877
|
target: _
|
|
1878
1878
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1890,9 +1890,9 @@ function Kn(e, ...t) {
|
|
|
1890
1890
|
dn(e, i, _, p, L), E = b;
|
|
1891
1891
|
}
|
|
1892
1892
|
if (!F(y) || !A(_))
|
|
1893
|
-
return n ?
|
|
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
1897
|
return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
|
|
1898
1898
|
}
|
|
@@ -1918,7 +1918,7 @@ const Ds = [
|
|
|
1918
1918
|
"roundingIncrement",
|
|
1919
1919
|
"trailingZeroDisplay"
|
|
1920
1920
|
];
|
|
1921
|
-
function
|
|
1921
|
+
function Ga(...e) {
|
|
1922
1922
|
const [t, a, n, s] = e, r = W();
|
|
1923
1923
|
let o = W();
|
|
1924
1924
|
if (!ee(t))
|
|
@@ -1978,7 +1978,7 @@ function El(e = {}) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
const jn = () => "", pe = (e) => G(e);
|
|
1980
1980
|
function Jn(e, ...t) {
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] =
|
|
1981
|
+
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, P = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || P != null && (A(P) || G(P)), O = fn(e, c);
|
|
1982
1982
|
p && vl(c);
|
|
1983
1983
|
let [d, _, y] = I ? [
|
|
1984
1984
|
i,
|
|
@@ -1986,7 +1986,7 @@ function Jn(e, ...t) {
|
|
|
1986
1986
|
l[O] || W()
|
|
1987
1987
|
] : Cs(e, i, O, o, g, m), E = d, b = i;
|
|
1988
1988
|
if (!I && !(A(E) || he(E) || pe(E)) && S && (E = P, b = E), !I && (!(A(E) || he(E) || pe(E)) || !A(_)))
|
|
1989
|
-
return s ?
|
|
1989
|
+
return s ? ra : i;
|
|
1990
1990
|
if (process.env.NODE_ENV !== "production" && A(E) && e.messageCompiler == null)
|
|
1991
1991
|
return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
1992
1992
|
let L = !1;
|
|
@@ -2019,7 +2019,7 @@ function Cs(e, t, a, n, s, r) {
|
|
|
2019
2019
|
let g = W(), p, I = null, P = 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 && !Rs(a, p) &&
|
|
2022
|
+
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !Rs(a, p) && oa(s, t) && l(Je(ce.FALLBACK_TO_TRANSLATE, {
|
|
2023
2023
|
key: t,
|
|
2024
2024
|
target: p
|
|
2025
2025
|
})), process.env.NODE_ENV !== "production" && a !== p) {
|
|
@@ -2100,12 +2100,12 @@ function bl(e, t, a) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
return o;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ka(...e) {
|
|
2104
2104
|
const [t, a, n] = e, s = W();
|
|
2105
2105
|
if (!A(t) && !ee(t) && !pe(t) && !he(t))
|
|
2106
2106
|
throw we(oe.INVALID_ARGUMENT);
|
|
2107
2107
|
const r = ee(t) ? String(t) : (pe(t), t);
|
|
2108
|
-
return ee(a) ? s.plural = a : A(a) ? s.default = a : F(a) && !
|
|
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
2110
|
function yl(e, t, a, n, s, r) {
|
|
2111
2111
|
return {
|
|
@@ -2173,13 +2173,13 @@ function Ms() {
|
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
const Tl = typeof Proxy == "function", Ll = "devtools-plugin:setup", Ol = "plugin:settings:set";
|
|
2176
|
-
let Ze,
|
|
2176
|
+
let Ze, Ya;
|
|
2177
2177
|
function Al() {
|
|
2178
2178
|
var e;
|
|
2179
|
-
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0,
|
|
2179
|
+
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ze = !0, Ya = globalThis.perf_hooks.performance) : Ze = !1), Ze;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Pl() {
|
|
2182
|
-
return Al() ?
|
|
2182
|
+
return Al() ? Ya.now() : Date.now();
|
|
2183
2183
|
}
|
|
2184
2184
|
class Rl {
|
|
2185
2185
|
constructor(t, a) {
|
|
@@ -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 dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Cl, args: t } : void 0);
|
|
2292
2292
|
}
|
|
2293
2293
|
const Cl = {
|
|
2294
2294
|
[Y.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -2302,7 +2302,7 @@ const Cl = {
|
|
|
2302
2302
|
[Y.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2303
2303
|
[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2304
2304
|
[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2305
|
-
},
|
|
2305
|
+
}, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Qe = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), Us = Oe("__setPluralRules"), xs = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
2306
|
FALLBACK_TO_ROOT: Zo,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2333,15 +2333,15 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2333
2333
|
[_e.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2334
2334
|
};
|
|
2335
2335
|
function it(e, ...t) {
|
|
2336
|
-
return
|
|
2336
|
+
return na(Fl[e], ...t);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Ot(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]) && Ot(e[t]);
|
|
2345
2345
|
else {
|
|
2346
2346
|
const a = t.split("."), n = a.length - 1;
|
|
2347
2347
|
let s = e, r = !1;
|
|
@@ -2358,7 +2358,7 @@ function Lt(e) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
if (r || (he(s) ? Is.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) && Ot(o);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
@@ -2373,7 +2373,7 @@ function mn(e, t) {
|
|
|
2373
2373
|
A(l) && Bt(JSON.parse(l), o);
|
|
2374
2374
|
}), s == null && r)
|
|
2375
2375
|
for (const l in o)
|
|
2376
|
-
be(o, l) &&
|
|
2376
|
+
be(o, l) && Ot(o[l]);
|
|
2377
2377
|
return o;
|
|
2378
2378
|
}
|
|
2379
2379
|
function Vs(e) {
|
|
@@ -2409,7 +2409,7 @@ function Qn(e) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
function st() {
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
|
-
return e in
|
|
2412
|
+
return e in wa ? wa[e] : wa.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
2414
|
const Xn = "__INTLIFY_META__", qn = () => [], Ml = () => !1;
|
|
2415
2415
|
let zn = 0;
|
|
@@ -2426,7 +2426,7 @@ 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 : Tt
|
|
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
|
|
@@ -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 = cl(h);
|
|
2460
2460
|
return n && Vn(T), T;
|
|
2461
|
-
})(),
|
|
2461
|
+
})(), Et(v, l.value, i.value);
|
|
2462
2462
|
function M() {
|
|
2463
2463
|
return [
|
|
2464
2464
|
l.value,
|
|
@@ -2476,22 +2476,22 @@ function pn(e = {}) {
|
|
|
2476
2476
|
}), Ee = et({
|
|
2477
2477
|
get: () => i.value,
|
|
2478
2478
|
set: (h) => {
|
|
2479
|
-
v.fallbackLocale = h, i.value = h,
|
|
2479
|
+
v.fallbackLocale = h, i.value = h, Et(v, l.value, h);
|
|
2480
2480
|
}
|
|
2481
|
-
}), Q = et(() => c.value), qe = /* @__PURE__ */ et(() => m.value),
|
|
2482
|
-
function
|
|
2481
|
+
}), Q = et(() => c.value), qe = /* @__PURE__ */ et(() => m.value), ga = /* @__PURE__ */ et(() => g.value);
|
|
2482
|
+
function ha() {
|
|
2483
2483
|
return G(_) ? _ : null;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2485
|
+
function Ea(h) {
|
|
2486
2486
|
_ = h, v.postTranslation = h;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function va() {
|
|
2489
2489
|
return O;
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function ba(h) {
|
|
2492
2492
|
h !== null && (d = Zn(h)), O = h, v.missing = d;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function ya(h, T) {
|
|
2495
2495
|
return h !== "translate" || !T.resolvedMessage;
|
|
2496
2496
|
}
|
|
2497
2497
|
const Ae = (h, T, H, z, $e, $t) => {
|
|
@@ -2503,9 +2503,9 @@ function pn(e = {}) {
|
|
|
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(ze) && ze ===
|
|
2506
|
+
ee(ze) && ze === ra || H === "translate exists" && !ze) {
|
|
2507
2507
|
const [He, fr] = T();
|
|
2508
|
-
if (process.env.NODE_ENV !== "production" && t && A(He) &&
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H, fr) && (P && (oa(I, He) || Ps(p, He)) && Le(it(_e.FALLBACK_TO_ROOT, {
|
|
2509
2509
|
key: He,
|
|
2510
2510
|
type: H
|
|
2511
2511
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2524,26 +2524,26 @@ function pn(e = {}) {
|
|
|
2524
2524
|
throw ue(Y.UNEXPECTED_RETURN_TYPE);
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
|
-
function
|
|
2528
|
-
return Ae((T) => Reflect.apply(Jn, null, [T, ...h]), () =>
|
|
2527
|
+
function pt(...h) {
|
|
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 Ia(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
2532
2532
|
if (z && !U(z))
|
|
2533
2533
|
throw ue(Y.INVALID_ARGUMENT);
|
|
2534
|
-
return
|
|
2535
|
-
}
|
|
2536
|
-
function Ia(...h) {
|
|
2537
|
-
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Ha(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2534
|
+
return pt(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2538
2535
|
}
|
|
2539
2536
|
function Na(...h) {
|
|
2540
|
-
return Ae((T) => Reflect.apply(
|
|
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));
|
|
2538
|
+
}
|
|
2539
|
+
function Sa(...h) {
|
|
2540
|
+
return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () => Ga(...h), "number format", (T) => Reflect.apply(T.n, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Ta(h) {
|
|
2543
2543
|
return h.map((T) => A(T) || ee(T) || x(T) ? Qn(String(T)) : T);
|
|
2544
2544
|
}
|
|
2545
|
-
const
|
|
2546
|
-
normalize:
|
|
2545
|
+
const La = {
|
|
2546
|
+
normalize: Ta,
|
|
2547
2547
|
interpolate: (h) => h,
|
|
2548
2548
|
type: "vnode"
|
|
2549
2549
|
};
|
|
@@ -2552,23 +2552,23 @@ function pn(e = {}) {
|
|
|
2552
2552
|
let H;
|
|
2553
2553
|
const z = T;
|
|
2554
2554
|
try {
|
|
2555
|
-
z.processor =
|
|
2555
|
+
z.processor = La, H = Reflect.apply(Jn, null, [z, ...h]);
|
|
2556
2556
|
} finally {
|
|
2557
2557
|
z.processor = null;
|
|
2558
2558
|
}
|
|
2559
2559
|
return H;
|
|
2560
|
-
}, () =>
|
|
2560
|
+
}, () => Ka(...h), "translate", (T) => T[Ba](...h), (T) => [Qn(T)], (T) => J(T));
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2563
|
-
return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () =>
|
|
2562
|
+
function Oa(...h) {
|
|
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
2565
|
function Vt(...h) {
|
|
2566
|
-
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () =>
|
|
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
|
-
function
|
|
2568
|
+
function Aa(h) {
|
|
2569
2569
|
L = h, v.pluralRules = L;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function Pa(h, T) {
|
|
2572
2572
|
return Ae(() => {
|
|
2573
2573
|
if (!h)
|
|
2574
2574
|
return !1;
|
|
@@ -2576,7 +2576,7 @@ function pn(e = {}) {
|
|
|
2576
2576
|
return he($e) || pe($e) || A($e);
|
|
2577
2577
|
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), Ml, (H) => x(H));
|
|
2578
2578
|
}
|
|
2579
|
-
function
|
|
2579
|
+
function _t(h) {
|
|
2580
2580
|
let T = null;
|
|
2581
2581
|
const H = Ns(v, i.value, l.value);
|
|
2582
2582
|
for (let z = 0; z < H.length; z++) {
|
|
@@ -2588,28 +2588,28 @@ function pn(e = {}) {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
return T;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const T =
|
|
2591
|
+
function gt(h) {
|
|
2592
|
+
const T = _t(h);
|
|
2593
2593
|
return T ?? (t ? t.tm(h) || {} : {});
|
|
2594
2594
|
}
|
|
2595
2595
|
function Ve(h) {
|
|
2596
2596
|
return c.value[h] || {};
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function ht(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) && Ot(H[z]);
|
|
2603
2603
|
T = H[h];
|
|
2604
2604
|
}
|
|
2605
2605
|
c.value[h] = T, v.messages = c.value;
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function Ra(h, T) {
|
|
2608
2608
|
c.value[h] = c.value[h] || {};
|
|
2609
2609
|
const H = { [h]: T };
|
|
2610
2610
|
if (s)
|
|
2611
2611
|
for (const z in H)
|
|
2612
|
-
be(H, z) &&
|
|
2612
|
+
be(H, z) && Ot(H[z]);
|
|
2613
2613
|
T = H[h], Bt(T, c.value[h]), v.messages = c.value;
|
|
2614
2614
|
}
|
|
2615
2615
|
function u(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, Et(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, Et(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, Et(v, l.value, i.value));
|
|
2647
2647
|
},
|
|
2648
2648
|
get availableLocales() {
|
|
2649
2649
|
return Object.keys(c.value).sort();
|
|
@@ -2694,23 +2694,23 @@ function pn(e = {}) {
|
|
|
2694
2694
|
set escapeParameter(h) {
|
|
2695
2695
|
E = h, v.escapeParameter = h;
|
|
2696
2696
|
},
|
|
2697
|
-
t:
|
|
2697
|
+
t: pt,
|
|
2698
2698
|
getLocaleMessage: Ve,
|
|
2699
|
-
setLocaleMessage:
|
|
2700
|
-
mergeLocaleMessage:
|
|
2701
|
-
getPostTranslationHandler:
|
|
2702
|
-
setPostTranslationHandler:
|
|
2703
|
-
getMissingHandler:
|
|
2704
|
-
setMissingHandler:
|
|
2705
|
-
[Us]:
|
|
2699
|
+
setLocaleMessage: ht,
|
|
2700
|
+
mergeLocaleMessage: Ra,
|
|
2701
|
+
getPostTranslationHandler: ha,
|
|
2702
|
+
setPostTranslationHandler: Ea,
|
|
2703
|
+
getMissingHandler: va,
|
|
2704
|
+
setMissingHandler: ba,
|
|
2705
|
+
[Us]: Aa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats = qe, V.numberFormats =
|
|
2707
|
+
return V.datetimeFormats = qe, V.numberFormats = ga, V.rt = Ia, V.te = Pa, V.tm = gt, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[xs] = a, V[Ba] = xt, V[ja] = Vt, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Qe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
|
-
}, V[
|
|
2709
|
+
}, V[Lt] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
2713
|
-
const Hs = "vue-i18n: composer properties",
|
|
2713
|
+
const Hs = "vue-i18n: composer properties", Ua = {
|
|
2714
2714
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2715
2715
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2716
2716
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -2719,13 +2719,13 @@ const Hs = "vue-i18n: composer properties", Ma = {
|
|
|
2719
2719
|
}, Vl = {
|
|
2720
2720
|
"vue-i18n-timeline": 16764185
|
|
2721
2721
|
};
|
|
2722
|
-
let
|
|
2722
|
+
let Xa;
|
|
2723
2723
|
async function $l(e, t) {
|
|
2724
2724
|
return new Promise((a, n) => {
|
|
2725
2725
|
try {
|
|
2726
2726
|
wl({
|
|
2727
2727
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2728
|
-
label:
|
|
2728
|
+
label: Ua["vue-devtools-plugin-vue-i18n"],
|
|
2729
2729
|
packageName: "vue-i18n",
|
|
2730
2730
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2731
2731
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
@@ -2733,13 +2733,13 @@ async function $l(e, t) {
|
|
|
2733
2733
|
app: e
|
|
2734
2734
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2735
2735
|
}, (s) => {
|
|
2736
|
-
|
|
2736
|
+
Xa = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2737
2737
|
Hl(o, l, t);
|
|
2738
2738
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2739
2739
|
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && es(l, o.__VUE_I18N__) : es(l, o.__VUE_I18N__));
|
|
2740
2740
|
}), s.addInspector({
|
|
2741
2741
|
id: "vue-i18n-resource-inspector",
|
|
2742
|
-
label:
|
|
2742
|
+
label: Ua["vue-i18n-resource-inspector"],
|
|
2743
2743
|
icon: "language",
|
|
2744
2744
|
treeFilterPlaceholder: xl["vue-i18n-resource-inspector"]
|
|
2745
2745
|
}), s.on.getInspectorTree((o) => {
|
|
@@ -2762,7 +2762,7 @@ async function $l(e, t) {
|
|
|
2762
2762
|
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Xl(o, t);
|
|
2763
2763
|
}), s.addTimelineLayer({
|
|
2764
2764
|
id: "vue-i18n-timeline",
|
|
2765
|
-
label:
|
|
2765
|
+
label: Ua["vue-i18n-timeline"],
|
|
2766
2766
|
color: Vl["vue-i18n-timeline"]
|
|
2767
2767
|
}), a(!0);
|
|
2768
2768
|
});
|
|
@@ -2947,10 +2947,10 @@ function Ql(e) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
return t;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2951
|
-
if (
|
|
2950
|
+
function At(e, t) {
|
|
2951
|
+
if (Xa) {
|
|
2952
2952
|
let a;
|
|
2953
|
-
t && "groupId" in t && (a = t.groupId, delete t.groupId),
|
|
2953
|
+
t && "groupId" in t && (a = t.groupId, delete t.groupId), Xa.addTimelineEvent({
|
|
2954
2954
|
layerId: "vue-i18n-timeline",
|
|
2955
2955
|
event: {
|
|
2956
2956
|
title: e,
|
|
@@ -2971,7 +2971,7 @@ function Xl(e, t) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
function ql(e) {
|
|
2974
|
-
const t = A(e.locale) ? e.locale :
|
|
2974
|
+
const t = A(e.locale) ? e.locale : Tt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || ot(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || ot(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = x(e.sync) ? e.sync : !0;
|
|
2975
2975
|
let P = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
2977
2977
|
const b = e.sharedMessages;
|
|
@@ -3005,7 +3005,7 @@ function ql(e) {
|
|
|
3005
3005
|
__injectWithOption: d
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function qa(e = {}) {
|
|
3009
3009
|
const t = pn(ql(e)), { __extender: a } = e, n = {
|
|
3010
3010
|
// id
|
|
3011
3011
|
id: t.id,
|
|
@@ -3171,7 +3171,7 @@ function Xa(e = {}) {
|
|
|
3171
3171
|
r[Qe] && r[Qe](s);
|
|
3172
3172
|
}, n.__disableEmitter = () => {
|
|
3173
3173
|
const s = t;
|
|
3174
|
-
s[
|
|
3174
|
+
s[Lt] && s[Lt]();
|
|
3175
3175
|
}), n;
|
|
3176
3176
|
}
|
|
3177
3177
|
function zl(e, t, a) {
|
|
@@ -3186,7 +3186,7 @@ function zl(e, t, a) {
|
|
|
3186
3186
|
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3187
3187
|
this.$i18n = ts(e, r);
|
|
3188
3188
|
else {
|
|
3189
|
-
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n =
|
|
3189
|
+
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n = qa(r);
|
|
3190
3190
|
const o = this.$i18n;
|
|
3191
3191
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3192
3192
|
}
|
|
@@ -3194,7 +3194,7 @@ function zl(e, t, a) {
|
|
|
3194
3194
|
if (this === this.$root)
|
|
3195
3195
|
this.$i18n = ts(e, s);
|
|
3196
3196
|
else {
|
|
3197
|
-
this.$i18n =
|
|
3197
|
+
this.$i18n = qa({
|
|
3198
3198
|
__i18n: s.__i18n,
|
|
3199
3199
|
__injectWithOption: !0,
|
|
3200
3200
|
__extender: a.__vueI18nExtend,
|
|
@@ -3215,7 +3215,7 @@ function zl(e, t, a) {
|
|
|
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("*", At);
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
3221
3221
|
unmounted() {
|
|
@@ -3223,7 +3223,7 @@ function zl(e, t, a) {
|
|
|
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("*", At), 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
|
}
|
|
@@ -3282,14 +3282,14 @@ const ei = /* @__PURE__ */ De({
|
|
|
3282
3282
|
/* eslint-enable */
|
|
3283
3283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3284
3284
|
setup(e, t) {
|
|
3285
|
-
const { slots: a, attrs: n } = t, s = e.i18n ||
|
|
3285
|
+
const { slots: a, attrs: n } = t, s = e.i18n || la({
|
|
3286
3286
|
useScope: e.scope,
|
|
3287
3287
|
__useComponent: !0
|
|
3288
3288
|
});
|
|
3289
3289
|
return () => {
|
|
3290
3290
|
const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
|
|
3291
3291
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
|
|
3292
|
-
const l = Zl(t, r), i = s[
|
|
3292
|
+
const l = Zl(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Ks();
|
|
3293
3293
|
return ye(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
@@ -3328,13 +3328,13 @@ const ai = /* @__PURE__ */ De({
|
|
|
3328
3328
|
/* eslint-enable */
|
|
3329
3329
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3330
3330
|
setup(e, t) {
|
|
3331
|
-
const a = e.i18n ||
|
|
3331
|
+
const a = e.i18n || la({
|
|
3332
3332
|
useScope: e.scope,
|
|
3333
3333
|
__useComponent: !0
|
|
3334
3334
|
});
|
|
3335
3335
|
return Ys(e, t, Ds, (...n) => (
|
|
3336
3336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3337
|
-
a[
|
|
3337
|
+
a[Ja](...n)
|
|
3338
3338
|
));
|
|
3339
3339
|
}
|
|
3340
3340
|
}), ns = ai;
|
|
@@ -3442,7 +3442,7 @@ function li(e = {}) {
|
|
|
3442
3442
|
const d = r;
|
|
3443
3443
|
d[Qe] && d[Qe](O);
|
|
3444
3444
|
}
|
|
3445
|
-
O.on("*",
|
|
3445
|
+
O.on("*", At);
|
|
3446
3446
|
}
|
|
3447
3447
|
},
|
|
3448
3448
|
// global accessor
|
|
@@ -3463,7 +3463,7 @@ function li(e = {}) {
|
|
|
3463
3463
|
};
|
|
3464
3464
|
return m;
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3466
|
+
function la(e = {}) {
|
|
3467
3467
|
const t = st();
|
|
3468
3468
|
if (t == null)
|
|
3469
3469
|
throw ue(Y.MUST_BE_CALL_SETUP_TOP);
|
|
@@ -3480,13 +3480,13 @@ function oa(e = {}) {
|
|
|
3480
3480
|
let l = o.__getInstance(t);
|
|
3481
3481
|
if (l == null) {
|
|
3482
3482
|
const i = te({}, e);
|
|
3483
|
-
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[
|
|
3483
|
+
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(l)), pi(o, t, l), o.__setInstance(t, l);
|
|
3484
3484
|
} else
|
|
3485
3485
|
process.env.NODE_ENV !== "production" && r === "local" && Le(it(_e.DUPLICATE_USE_I18N_CALLING));
|
|
3486
3486
|
return l;
|
|
3487
3487
|
}
|
|
3488
3488
|
function ii(e, t) {
|
|
3489
|
-
const a = pr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() =>
|
|
3489
|
+
const a = pr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => qa(e)) : a.run(() => pn(e));
|
|
3490
3490
|
if (n == null)
|
|
3491
3491
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3492
3492
|
return [a, n];
|
|
@@ -3498,7 +3498,7 @@ function ci(e) {
|
|
|
3498
3498
|
return t;
|
|
3499
3499
|
}
|
|
3500
3500
|
function ui(e, t) {
|
|
3501
|
-
return
|
|
3501
|
+
return sa(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3502
3502
|
}
|
|
3503
3503
|
function fi(e) {
|
|
3504
3504
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -3530,13 +3530,13 @@ function pi(e, t, a) {
|
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
3531
3531
|
t.__VUE_I18N__ = a, n = ln();
|
|
3532
3532
|
const s = a;
|
|
3533
|
-
s[Qe] && s[Qe](n), n.on("*",
|
|
3533
|
+
s[Qe] && s[Qe](n), n.on("*", At);
|
|
3534
3534
|
}
|
|
3535
|
-
}, t),
|
|
3535
|
+
}, t), ft(() => {
|
|
3536
3536
|
const s = a;
|
|
3537
|
-
process.env.NODE_ENV !== "production" && (n && n.off("*",
|
|
3538
|
-
const r = s[
|
|
3539
|
-
r && (r(), delete s[
|
|
3537
|
+
process.env.NODE_ENV !== "production" && (n && n.off("*", At), s[Lt] && s[Lt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3538
|
+
const r = s[Qa];
|
|
3539
|
+
r && (r(), delete s[Qa]);
|
|
3540
3540
|
}, t);
|
|
3541
3541
|
}
|
|
3542
3542
|
const _i = [
|
|
@@ -3590,13 +3590,13 @@ const hi = /* @__PURE__ */ De({
|
|
|
3590
3590
|
/* eslint-enable */
|
|
3591
3591
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3592
3592
|
setup(e, t) {
|
|
3593
|
-
const a = e.i18n ||
|
|
3593
|
+
const a = e.i18n || la({
|
|
3594
3594
|
useScope: e.scope,
|
|
3595
3595
|
__useComponent: !0
|
|
3596
3596
|
});
|
|
3597
3597
|
return Ys(e, t, ks, (...n) => (
|
|
3598
3598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3599
|
-
a[
|
|
3599
|
+
a[ja](...n)
|
|
3600
3600
|
));
|
|
3601
3601
|
}
|
|
3602
3602
|
}), ls = hi;
|
|
@@ -3857,6 +3857,13 @@ const Ei = {
|
|
|
3857
3857
|
exportFailed: "导出失败",
|
|
3858
3858
|
fileExportFailed: "文件导出失败,请稍后重试"
|
|
3859
3859
|
},
|
|
3860
|
+
form: {
|
|
3861
|
+
saveSuccess: "保存成功!",
|
|
3862
|
+
submitValidationFailed: "提交验证失败",
|
|
3863
|
+
dataAlreadyExists: "数据已存在:{0}",
|
|
3864
|
+
dataDuplicate: "数据重复",
|
|
3865
|
+
saveFailed: "保存失败"
|
|
3866
|
+
},
|
|
3860
3867
|
formValidate: {
|
|
3861
3868
|
required: "不能为空",
|
|
3862
3869
|
numberType: "必须是数字",
|
|
@@ -3884,25 +3891,34 @@ const Ei = {
|
|
|
3884
3891
|
partialUploadFailedCancel: "上传结束,部分文件上传失败,取消保存!",
|
|
3885
3892
|
allUploadFailed: "上传结束,所有文件上传失败!",
|
|
3886
3893
|
fileUploadSuccess: "文件上传成功!",
|
|
3887
|
-
fileUploadFailed: "上传文件失败!"
|
|
3894
|
+
fileUploadFailed: "上传文件失败!",
|
|
3895
|
+
unauthorized: "未授权或授权过期",
|
|
3896
|
+
invalidJsonFormat: "返回的结果不是JSON格式",
|
|
3897
|
+
jsonParseError: "无法解析返回的JSON数据",
|
|
3898
|
+
uploadFailed: "上传失败,状态码:",
|
|
3899
|
+
networkError: "上传失败,网络异常",
|
|
3900
|
+
uploadCancelled: "上传已取消"
|
|
3888
3901
|
},
|
|
3889
3902
|
data: {
|
|
3903
|
+
startExecute: "开始执行...",
|
|
3890
3904
|
executeSuccess: "执行成功!",
|
|
3891
|
-
|
|
3905
|
+
noSaveData: "错误!无保存数据!",
|
|
3906
|
+
savingData: "正在保存数据...",
|
|
3892
3907
|
saveSuccess: "保存成功!",
|
|
3893
|
-
|
|
3908
|
+
deletingData: "正在删除数据...",
|
|
3909
|
+
forbidDeleteWithoutCondition: "错误!禁止无条件删除数据!",
|
|
3894
3910
|
deleteSuccess: "删除成功!",
|
|
3895
3911
|
urlNotSet: "URL未设置: {urlKey}"
|
|
3896
3912
|
},
|
|
3897
3913
|
download: {
|
|
3898
3914
|
downloadFailed: "下载文件失败!",
|
|
3899
|
-
|
|
3915
|
+
fileDownloadFailedRetry: "文件下载失败,请稍后重试",
|
|
3900
3916
|
fileTypeNotSupported: "文件类型不支持预览",
|
|
3901
|
-
|
|
3917
|
+
previewFailed: "文件预览失败!"
|
|
3902
3918
|
},
|
|
3903
3919
|
formExcel: {
|
|
3904
|
-
|
|
3905
|
-
|
|
3920
|
+
noWorksheet: "Excel文件不包含工作表",
|
|
3921
|
+
insufficientData: "Excel文件不包含足够的数据",
|
|
3906
3922
|
validationError: "验证表格数据时发生错误",
|
|
3907
3923
|
missingDuplicateFields: "表头缺少重复检测所需字段",
|
|
3908
3924
|
fileNotExcel: "上传的文件不是Excel文件",
|
|
@@ -3922,9 +3938,7 @@ const Ei = {
|
|
|
3922
3938
|
previewUrlNotConfigured: "预览URL或Excel控制器未配置",
|
|
3923
3939
|
fileLoadFailed: "文件加载失败",
|
|
3924
3940
|
csvProcessingFailed: "CSV格式处理失败",
|
|
3925
|
-
previewFile: "预览文件",
|
|
3926
3941
|
previewFileXlsx: "预览文件.xlsx",
|
|
3927
|
-
previewFileCsv: "preview.csv",
|
|
3928
3942
|
unsupportedRawFormat: "不支持的原始文件格式",
|
|
3929
3943
|
unsupportedFileFormat: "不支持的文件格式",
|
|
3930
3944
|
dataEmpty: "数据为空",
|
|
@@ -3964,15 +3978,15 @@ const Ei = {
|
|
|
3964
3978
|
}
|
|
3965
3979
|
}
|
|
3966
3980
|
};
|
|
3967
|
-
function
|
|
3981
|
+
function Pt(e, t) {
|
|
3968
3982
|
const a = Array.isArray(e) ? [] : {};
|
|
3969
3983
|
for (const n in e)
|
|
3970
|
-
e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] =
|
|
3984
|
+
e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] = Pt(e[n], {}) : a[n] = Array.isArray(e[n]) ? [...e[n]] : e[n]);
|
|
3971
3985
|
for (const n in t)
|
|
3972
|
-
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] =
|
|
3986
|
+
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = Pt(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
|
|
3973
3987
|
return a;
|
|
3974
3988
|
}
|
|
3975
|
-
let
|
|
3989
|
+
let za = "/", qt = {
|
|
3976
3990
|
"zh-CN": "简体中文"
|
|
3977
3991
|
};
|
|
3978
3992
|
const Bs = {};
|
|
@@ -3996,7 +4010,7 @@ const me = li({
|
|
|
3996
4010
|
});
|
|
3997
4011
|
async function bi(e) {
|
|
3998
4012
|
try {
|
|
3999
|
-
const t = await fetch(`${
|
|
4013
|
+
const t = await fetch(`${za}locales/${e}.json`);
|
|
4000
4014
|
if (!t.ok)
|
|
4001
4015
|
throw new Error(`Failed to load locale ${e}`);
|
|
4002
4016
|
return await t.json();
|
|
@@ -4025,35 +4039,35 @@ function Js(e, t) {
|
|
|
4025
4039
|
console.error(`Error caching locale ${e}:`, a);
|
|
4026
4040
|
}
|
|
4027
4041
|
}
|
|
4028
|
-
function
|
|
4042
|
+
function Za(e) {
|
|
4029
4043
|
if (e === null || typeof e != "object")
|
|
4030
4044
|
return e;
|
|
4031
4045
|
if (e instanceof Date)
|
|
4032
4046
|
return new Date(e.getTime());
|
|
4033
4047
|
if (e instanceof Array)
|
|
4034
|
-
return e.map((t) =>
|
|
4048
|
+
return e.map((t) => Za(t));
|
|
4035
4049
|
if (typeof e == "object") {
|
|
4036
4050
|
const t = {};
|
|
4037
4051
|
for (const a in e)
|
|
4038
|
-
e.hasOwnProperty(a) && (t[a] =
|
|
4052
|
+
e.hasOwnProperty(a) && (t[a] = Za(e[a]));
|
|
4039
4053
|
return t;
|
|
4040
4054
|
}
|
|
4041
4055
|
return e;
|
|
4042
4056
|
}
|
|
4043
4057
|
async function Qs(e) {
|
|
4044
|
-
const t =
|
|
4058
|
+
const t = Za(Ei), a = js(e);
|
|
4045
4059
|
let n = {};
|
|
4046
4060
|
try {
|
|
4047
4061
|
n = await bi(e);
|
|
4048
4062
|
} catch {
|
|
4049
4063
|
}
|
|
4050
4064
|
let s = t;
|
|
4051
|
-
a && Object.keys(a).length > 0 && (s =
|
|
4065
|
+
a && Object.keys(a).length > 0 && (s = Pt(s, a)), n && Object.keys(n).length > 0 && (s = Pt(s, n)), Bs[e] = s, me.global.setLocaleMessage(e, s), Js(e, s);
|
|
4052
4066
|
}
|
|
4053
4067
|
async function hc(e = "/", t) {
|
|
4054
|
-
|
|
4068
|
+
za = e;
|
|
4055
4069
|
try {
|
|
4056
|
-
const n = await fetch(`${
|
|
4070
|
+
const n = await fetch(`${za}locales/languages.json`);
|
|
4057
4071
|
n.ok && (qt = await n.json());
|
|
4058
4072
|
} catch (n) {
|
|
4059
4073
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
@@ -4082,7 +4096,7 @@ function w(e, t) {
|
|
|
4082
4096
|
if (!n || Object.keys(n).length === 0) {
|
|
4083
4097
|
const r = js(me.global.locale.value);
|
|
4084
4098
|
if (r) {
|
|
4085
|
-
const o =
|
|
4099
|
+
const o = Pt({}, r);
|
|
4086
4100
|
me.global.setLocaleMessage(me.global.locale.value, o), Js(me.global.locale.value, o);
|
|
4087
4101
|
const l = me.global.t(e, t || {});
|
|
4088
4102
|
return l === e ? e : l;
|
|
@@ -4195,8 +4209,8 @@ ne($, "YesNo", []), /**
|
|
|
4195
4209
|
* - 女 F
|
|
4196
4210
|
*/
|
|
4197
4211
|
ne($, "MaleFemale", []);
|
|
4198
|
-
let
|
|
4199
|
-
const
|
|
4212
|
+
let en = $, Xs = "";
|
|
4213
|
+
const ia = {
|
|
4200
4214
|
login: {
|
|
4201
4215
|
api: "PLATFORM_API",
|
|
4202
4216
|
url: "/openapi/LoginSrv/login",
|
|
@@ -4226,7 +4240,7 @@ const la = {
|
|
|
4226
4240
|
}
|
|
4227
4241
|
};
|
|
4228
4242
|
function yc() {
|
|
4229
|
-
Xs = w("webui.stores.userInfo.tokenParseFailed"),
|
|
4243
|
+
Xs = w("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = w("webui.stores.userInfo.exiting"), qs.host.loadingText = w("webui.stores.hostInfo.loading");
|
|
4230
4244
|
}
|
|
4231
4245
|
const Ct = {
|
|
4232
4246
|
/**
|
|
@@ -4301,12 +4315,12 @@ const Ct = {
|
|
|
4301
4315
|
}, 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) => {
|
|
4302
4316
|
for (const t of e) {
|
|
4303
4317
|
const a = jt.findIndex((n) => n.path === t.path);
|
|
4304
|
-
a !== -1 && jt.splice(a, 1), jt.push(t),
|
|
4318
|
+
a !== -1 && jt.splice(a, 1), jt.push(t), ca.addRoute(t);
|
|
4305
4319
|
}
|
|
4306
4320
|
}, zs = (e, t, a, n = "") => {
|
|
4307
4321
|
const s = n + (n ? "/" : "") + e.path;
|
|
4308
4322
|
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => zs(r, t, e, s));
|
|
4309
|
-
},
|
|
4323
|
+
}, ca = Cr({
|
|
4310
4324
|
history: Fr("/"),
|
|
4311
4325
|
routes: jt
|
|
4312
4326
|
}), Ii = (e, t) => {
|
|
@@ -4330,8 +4344,8 @@ const Ct = {
|
|
|
4330
4344
|
}
|
|
4331
4345
|
}
|
|
4332
4346
|
return !1;
|
|
4333
|
-
},
|
|
4334
|
-
|
|
4347
|
+
}, yt = R(null);
|
|
4348
|
+
ca.beforeEach((e, t, a) => {
|
|
4335
4349
|
var l;
|
|
4336
4350
|
const n = e;
|
|
4337
4351
|
if (e.path.startsWith("/error/") || e.path.startsWith(is))
|
|
@@ -4340,7 +4354,7 @@ ia.beforeEach((e, t, a) => {
|
|
|
4340
4354
|
if (e.path === "/") {
|
|
4341
4355
|
const i = Fe();
|
|
4342
4356
|
if (!i.menuLoaded) {
|
|
4343
|
-
|
|
4357
|
+
yt.value = {
|
|
4344
4358
|
to: e,
|
|
4345
4359
|
next: (c) => {
|
|
4346
4360
|
a({ path: c });
|
|
@@ -4359,7 +4373,7 @@ ia.beforeEach((e, t, a) => {
|
|
|
4359
4373
|
a({ path: is });
|
|
4360
4374
|
else {
|
|
4361
4375
|
if (!Fe().menuLoaded) {
|
|
4362
|
-
|
|
4376
|
+
yt.value = {
|
|
4363
4377
|
to: e,
|
|
4364
4378
|
next: a
|
|
4365
4379
|
};
|
|
@@ -4371,9 +4385,9 @@ ia.beforeEach((e, t, a) => {
|
|
|
4371
4385
|
}
|
|
4372
4386
|
});
|
|
4373
4387
|
const Ni = (e) => {
|
|
4374
|
-
if (
|
|
4375
|
-
const { to: t, next: a } =
|
|
4376
|
-
|
|
4388
|
+
if (yt.value) {
|
|
4389
|
+
const { to: t, next: a } = yt.value;
|
|
4390
|
+
yt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4377
4391
|
}
|
|
4378
4392
|
}, Si = (e) => {
|
|
4379
4393
|
const t = hn();
|
|
@@ -4529,7 +4543,7 @@ class ae {
|
|
|
4529
4543
|
}
|
|
4530
4544
|
ne(ae, "messageId", 0), ne(ae, "callbacks", /* @__PURE__ */ new Map()), ne(ae, "pendingRequests", /* @__PURE__ */ new Map());
|
|
4531
4545
|
ae.init();
|
|
4532
|
-
const
|
|
4546
|
+
const It = {
|
|
4533
4547
|
getAppInfo: ae.getAppInfo.bind(ae),
|
|
4534
4548
|
getHostInfo: ae.getHostInfo.bind(ae),
|
|
4535
4549
|
getUserInfo: ae.getUserInfo.bind(ae),
|
|
@@ -4544,7 +4558,7 @@ const yt = {
|
|
|
4544
4558
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
4545
4559
|
loadingText: !1
|
|
4546
4560
|
}
|
|
4547
|
-
},
|
|
4561
|
+
}, xa = /* @__PURE__ */ new Map(), Oi = (e) => {
|
|
4548
4562
|
const t = Ie(), { roles: a, permission: n } = e.meta || {};
|
|
4549
4563
|
if (ve(a) && ve(n))
|
|
4550
4564
|
return !0;
|
|
@@ -4612,7 +4626,7 @@ const yt = {
|
|
|
4612
4626
|
}).then((e) => {
|
|
4613
4627
|
if ((e == null ? void 0 : e.status) === ie.SUCCESS && e.data)
|
|
4614
4628
|
this.appList.length = 0, this.appList.push(...e.data);
|
|
4615
|
-
else if ((e == null ? void 0 : e.errno) ==
|
|
4629
|
+
else if ((e == null ? void 0 : e.errno) == ua) {
|
|
4616
4630
|
Ie().logout(!1);
|
|
4617
4631
|
return;
|
|
4618
4632
|
}
|
|
@@ -4672,7 +4686,7 @@ const yt = {
|
|
|
4672
4686
|
if (yi(a), this.appInfo.defaultPage = er(a) || "", this.appInfo.defaultPage) {
|
|
4673
4687
|
if (this.menuLoaded = !0, Ce()) {
|
|
4674
4688
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4675
|
-
|
|
4689
|
+
It.mainAppPush(n);
|
|
4676
4690
|
}
|
|
4677
4691
|
Ni(this.appInfo.defaultPage);
|
|
4678
4692
|
}
|
|
@@ -4693,9 +4707,9 @@ const yt = {
|
|
|
4693
4707
|
*/
|
|
4694
4708
|
push(e) {
|
|
4695
4709
|
this.findRoute(e) && hn().setTabActive(e), hr(() => {
|
|
4696
|
-
if (
|
|
4710
|
+
if (ca.push({ path: e }), Ce()) {
|
|
4697
4711
|
const a = this.formatRoute(e);
|
|
4698
|
-
|
|
4712
|
+
It.mainAppPush(a);
|
|
4699
4713
|
}
|
|
4700
4714
|
});
|
|
4701
4715
|
},
|
|
@@ -4714,7 +4728,7 @@ const yt = {
|
|
|
4714
4728
|
* @returns 组件实例
|
|
4715
4729
|
*/
|
|
4716
4730
|
cacheComponent(e, t) {
|
|
4717
|
-
let a =
|
|
4731
|
+
let a = xa.get(t.path);
|
|
4718
4732
|
if (!a)
|
|
4719
4733
|
if (this.CachedComponents.includes(t.path))
|
|
4720
4734
|
a = {
|
|
@@ -4723,7 +4737,7 @@ const yt = {
|
|
|
4723
4737
|
render() {
|
|
4724
4738
|
return ye(e);
|
|
4725
4739
|
}
|
|
4726
|
-
},
|
|
4740
|
+
}, xa.set(t.path, a);
|
|
4727
4741
|
else return e;
|
|
4728
4742
|
return a;
|
|
4729
4743
|
},
|
|
@@ -4732,7 +4746,7 @@ const yt = {
|
|
|
4732
4746
|
* @param path 路由地址
|
|
4733
4747
|
*/
|
|
4734
4748
|
excludeComponent(e) {
|
|
4735
|
-
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1),
|
|
4749
|
+
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), xa.delete(e);
|
|
4736
4750
|
},
|
|
4737
4751
|
/**
|
|
4738
4752
|
* 路由路径层级查询,返回面包屑
|
|
@@ -4763,28 +4777,28 @@ const yt = {
|
|
|
4763
4777
|
}, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
|
|
4764
4778
|
},
|
|
4765
4779
|
logout() {
|
|
4766
|
-
this.clean(), Ce() ?
|
|
4780
|
+
this.clean(), Ce() ? It.mainAppPush("/") : window.location.assign("/");
|
|
4767
4781
|
}
|
|
4768
4782
|
},
|
|
4769
4783
|
persist: !1
|
|
4770
|
-
}),
|
|
4784
|
+
}), ua = 1400, Ai = (e) => {
|
|
4771
4785
|
let t = {
|
|
4772
4786
|
Option: {
|
|
4773
4787
|
Mode: "MicroApp"
|
|
4774
4788
|
},
|
|
4775
4789
|
Query: e
|
|
4776
4790
|
};
|
|
4777
|
-
return Xe(
|
|
4791
|
+
return Xe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4778
4792
|
}, Pi = (e) => {
|
|
4779
4793
|
let t = {
|
|
4780
4794
|
Query: {
|
|
4781
4795
|
AppId: e
|
|
4782
4796
|
}
|
|
4783
4797
|
};
|
|
4784
|
-
return Xe(
|
|
4798
|
+
return Xe(ia.auth, t).then((a) => {
|
|
4785
4799
|
if ((a == null ? void 0 : a.status) === ie.SUCCESS)
|
|
4786
4800
|
return a.data;
|
|
4787
|
-
if ((a == null ? void 0 : a.errno) ==
|
|
4801
|
+
if ((a == null ? void 0 : a.errno) == ua) {
|
|
4788
4802
|
Ie().logout(!1);
|
|
4789
4803
|
return;
|
|
4790
4804
|
}
|
|
@@ -4795,7 +4809,7 @@ const yt = {
|
|
|
4795
4809
|
Option: {},
|
|
4796
4810
|
Query: {}
|
|
4797
4811
|
};
|
|
4798
|
-
return Xe(
|
|
4812
|
+
return Xe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4799
4813
|
}, wi = (e) => {
|
|
4800
4814
|
try {
|
|
4801
4815
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
@@ -4803,7 +4817,7 @@ const yt = {
|
|
|
4803
4817
|
} catch (t) {
|
|
4804
4818
|
return console.error(Xs, t), !1;
|
|
4805
4819
|
}
|
|
4806
|
-
}, de = R(""),
|
|
4820
|
+
}, de = R(""), vt = R(null), Ie = kt("userInfo", {
|
|
4807
4821
|
state: () => ({
|
|
4808
4822
|
isLogin: !1,
|
|
4809
4823
|
userInfo: {
|
|
@@ -4857,11 +4871,11 @@ const yt = {
|
|
|
4857
4871
|
async getRolePermits(e) {
|
|
4858
4872
|
if (!this.isLogin || !this.token)
|
|
4859
4873
|
return !1;
|
|
4860
|
-
if (
|
|
4874
|
+
if (vt.value && vt.value.appId === e)
|
|
4861
4875
|
return !0;
|
|
4862
4876
|
try {
|
|
4863
4877
|
const t = await Pi(e);
|
|
4864
|
-
return t ? (
|
|
4878
|
+
return t ? (vt.value = {
|
|
4865
4879
|
appId: e,
|
|
4866
4880
|
permits: t.permits || [],
|
|
4867
4881
|
lastTime: t.lastTime
|
|
@@ -4886,7 +4900,7 @@ const yt = {
|
|
|
4886
4900
|
*/
|
|
4887
4901
|
hasPermit(e, t) {
|
|
4888
4902
|
var n;
|
|
4889
|
-
const a =
|
|
4903
|
+
const a = vt.value;
|
|
4890
4904
|
return !a || !a.permits ? !1 : ((n = a.permits[e]) == null ? void 0 : n.includes(t)) ?? !1;
|
|
4891
4905
|
},
|
|
4892
4906
|
/**
|
|
@@ -4944,7 +4958,7 @@ const yt = {
|
|
|
4944
4958
|
Code: "",
|
|
4945
4959
|
TenantId: "",
|
|
4946
4960
|
UserLevel: ""
|
|
4947
|
-
}, this.token = "", Ht(this.token), this.isLogin = !1,
|
|
4961
|
+
}, this.token = "", Ht(this.token), this.isLogin = !1, vt.value = null, de.value = "", Fe().clean(), Promise.resolve();
|
|
4948
4962
|
},
|
|
4949
4963
|
/**
|
|
4950
4964
|
* 登出操作
|
|
@@ -4953,7 +4967,7 @@ const yt = {
|
|
|
4953
4967
|
*/
|
|
4954
4968
|
async logout(e) {
|
|
4955
4969
|
if (Ce())
|
|
4956
|
-
return
|
|
4970
|
+
return It.userLogout(), Promise.resolve();
|
|
4957
4971
|
try {
|
|
4958
4972
|
e && await Ri();
|
|
4959
4973
|
} catch (t) {
|
|
@@ -4977,7 +4991,7 @@ const yt = {
|
|
|
4977
4991
|
e.store.init();
|
|
4978
4992
|
}
|
|
4979
4993
|
}
|
|
4980
|
-
}),
|
|
4994
|
+
}), fa = (e, t) => {
|
|
4981
4995
|
var s;
|
|
4982
4996
|
const a = e.page;
|
|
4983
4997
|
return {
|
|
@@ -4987,7 +5001,7 @@ const yt = {
|
|
|
4987
5001
|
...t.url,
|
|
4988
5002
|
loadingText: t.loadingText
|
|
4989
5003
|
};
|
|
4990
|
-
},
|
|
5004
|
+
}, da = (e, t) => {
|
|
4991
5005
|
const a = e.page, n = t.url;
|
|
4992
5006
|
if (!n || !n.url) {
|
|
4993
5007
|
const r = w("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
|
|
@@ -4998,12 +5012,12 @@ const yt = {
|
|
|
4998
5012
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
4999
5013
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
5000
5014
|
);
|
|
5001
|
-
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((r) => (t.loadingState && (t.loadingState.value = !1), (r == null ? void 0 : r.errno) ==
|
|
5015
|
+
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((r) => (t.loadingState && (t.loadingState.value = !1), (r == null ? void 0 : r.errno) == ua ? (Ie().logout(!1), null) : r)).catch((r) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
5002
5016
|
}, En = (e, t) => {
|
|
5003
5017
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5004
|
-
const a =
|
|
5005
|
-
return t.url = a,
|
|
5006
|
-
}, Ic = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || w("webui.utils.data.startExecute"), t.url =
|
|
5018
|
+
const a = fa(e, t);
|
|
5019
|
+
return t.url = a, da(e, t);
|
|
5020
|
+
}, Ic = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || w("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(w("webui.utils.data.executeSuccess"))), a))), tr = (e, t = {}) => {
|
|
5007
5021
|
const a = t.primaryKey || "Id";
|
|
5008
5022
|
if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
|
|
5009
5023
|
return se.error(w("webui.utils.data.noSaveData")), Promise.resolve(null);
|
|
@@ -5013,8 +5027,8 @@ const yt = {
|
|
|
5013
5027
|
loadingText: t.loadingText === !1 ? !1 : t.loadingText || w("webui.utils.data.savingData")
|
|
5014
5028
|
};
|
|
5015
5029
|
n.params.Query[a] = n.params.Data[a];
|
|
5016
|
-
const s =
|
|
5017
|
-
return n.url = s,
|
|
5030
|
+
const s = fa(e, n);
|
|
5031
|
+
return n.url = s, da(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(w("webui.utils.data.saveSuccess"))), r));
|
|
5018
5032
|
}, ki = (e, t, a = {}) => {
|
|
5019
5033
|
const n = a.primaryKey || "Id";
|
|
5020
5034
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
@@ -5025,8 +5039,8 @@ const yt = {
|
|
|
5025
5039
|
};
|
|
5026
5040
|
if (Array.isArray(t) ? s.params.Query[n] = t : s.params.Query[n] = t[n], ve(s.params.Query) || ve(s.params.Query[n]))
|
|
5027
5041
|
return se.error(w("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5028
|
-
const r =
|
|
5029
|
-
return s.url = r,
|
|
5042
|
+
const r = fa(e, s);
|
|
5043
|
+
return s.url = r, da(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(w("webui.utils.data.deleteSuccess"))), o));
|
|
5030
5044
|
}, Di = (e, t) => En(e, {
|
|
5031
5045
|
urlKey: "tree",
|
|
5032
5046
|
params: {},
|
|
@@ -5085,9 +5099,9 @@ const yt = {
|
|
|
5085
5099
|
},
|
|
5086
5100
|
persist: !1
|
|
5087
5101
|
});
|
|
5088
|
-
let
|
|
5102
|
+
let ct;
|
|
5089
5103
|
const Sc = (e) => {
|
|
5090
|
-
|
|
5104
|
+
ct = new aa({}), ct.messages({
|
|
5091
5105
|
required: "${label}" + w("webui.utils.formValidate.required"),
|
|
5092
5106
|
types: {
|
|
5093
5107
|
number: "${label}" + w("webui.utils.formValidate.numberType")
|
|
@@ -5116,7 +5130,7 @@ const Sc = (e) => {
|
|
|
5116
5130
|
}, Tc = (e) => {
|
|
5117
5131
|
if (!e || ve(e))
|
|
5118
5132
|
return [];
|
|
5119
|
-
const t = [], a =
|
|
5133
|
+
const t = [], a = ct.messages(), n = (r, o, l) => {
|
|
5120
5134
|
const i = o.type;
|
|
5121
5135
|
if (i && a.types && i in a.types) {
|
|
5122
5136
|
const m = a.types[i];
|
|
@@ -5167,14 +5181,17 @@ const Sc = (e) => {
|
|
|
5167
5181
|
rules: i
|
|
5168
5182
|
});
|
|
5169
5183
|
}), t;
|
|
5184
|
+
}, Lc = (e) => {
|
|
5185
|
+
const t = new aa({});
|
|
5186
|
+
return t.messages(ct.messages()), t.define(e), t;
|
|
5170
5187
|
}, Ft = async (e) => {
|
|
5171
5188
|
const t = e.formData.value, a = e.formRules.value;
|
|
5172
|
-
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new
|
|
5189
|
+
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ct.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5173
5190
|
}).catch(({ fields: n }) => n));
|
|
5174
|
-
},
|
|
5191
|
+
}, Oc = async (e, t, a) => (a || (a = new aa({}), a.messages(ct.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5175
5192
|
}).catch(({ fields: n }) => n)), vn = (e) => {
|
|
5176
5193
|
e.ruleResults.value = void 0;
|
|
5177
|
-
},
|
|
5194
|
+
}, ut = () => {
|
|
5178
5195
|
const e = at(Re.EditorControl, void 0), t = R(at(Re.LabelText, "")), a = R(at(Re.RuleKey, "")), n = at(Re.ErrInfo, void 0);
|
|
5179
5196
|
return {
|
|
5180
5197
|
editorCtrl: e,
|
|
@@ -5234,10 +5251,10 @@ const Sc = (e) => {
|
|
|
5234
5251
|
});
|
|
5235
5252
|
}
|
|
5236
5253
|
}), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
|
|
5237
|
-
},
|
|
5238
|
-
|
|
5254
|
+
}, Ac = (e, t) => {
|
|
5255
|
+
ka(Re.LabelText, e.label || ""), ka(Re.RuleKey, e.rule || "");
|
|
5239
5256
|
const a = Fi(e, t);
|
|
5240
|
-
return
|
|
5257
|
+
return ka(Re.ErrInfo, a), a;
|
|
5241
5258
|
}, Ui = (e, t) => {
|
|
5242
5259
|
if (!t)
|
|
5243
5260
|
return;
|
|
@@ -5246,12 +5263,12 @@ const Sc = (e) => {
|
|
|
5246
5263
|
return t[a];
|
|
5247
5264
|
if (t[a])
|
|
5248
5265
|
return Ui(n, t[a].fields);
|
|
5249
|
-
}, Ac = (e) => {
|
|
5250
|
-
ar(e);
|
|
5251
5266
|
}, Pc = (e) => {
|
|
5267
|
+
ar(e);
|
|
5268
|
+
}, Rc = (e) => {
|
|
5252
5269
|
const t = e.page, a = e.formData.value;
|
|
5253
5270
|
a[e.primaryKey ?? t.primaryKey] = null, ar(e);
|
|
5254
|
-
},
|
|
5271
|
+
}, wc = (e) => {
|
|
5255
5272
|
bn(e), e.visible.value = !1;
|
|
5256
5273
|
}, ar = async (e) => {
|
|
5257
5274
|
var n;
|
|
@@ -5293,7 +5310,7 @@ const Sc = (e) => {
|
|
|
5293
5310
|
{
|
|
5294
5311
|
field: p,
|
|
5295
5312
|
fieldValue: i,
|
|
5296
|
-
message: "
|
|
5313
|
+
message: w("webui.utils.form.dataDuplicate")
|
|
5297
5314
|
}
|
|
5298
5315
|
]);
|
|
5299
5316
|
}), Object.keys(g).length > 0 && (console.error("保存失败!", g), e.ruleResults.value = g);
|
|
@@ -5304,14 +5321,14 @@ const Sc = (e) => {
|
|
|
5304
5321
|
} else
|
|
5305
5322
|
se.error((s == null ? void 0 : s.msg) ?? w("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
|
|
5306
5323
|
});
|
|
5307
|
-
},
|
|
5324
|
+
}, kc = async (e) => {
|
|
5308
5325
|
const t = e.page, a = e.grid;
|
|
5309
5326
|
e.isFormLoading.value = !0;
|
|
5310
5327
|
const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
|
|
5311
5328
|
return rr(a, { [s]: n[s] }, e.detailUrl).then((r) => {
|
|
5312
5329
|
e.isFormLoading.value = !1, r && nr(e, r);
|
|
5313
5330
|
});
|
|
5314
|
-
},
|
|
5331
|
+
}, Dc = (e) => {
|
|
5315
5332
|
const t = e.grid;
|
|
5316
5333
|
t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5317
5334
|
e.visible.value = !0;
|
|
@@ -5322,9 +5339,9 @@ const Sc = (e) => {
|
|
|
5322
5339
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5323
5340
|
}, bn = (e) => {
|
|
5324
5341
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5325
|
-
},
|
|
5342
|
+
}, Cc = (e, t) => {
|
|
5326
5343
|
const a = Ie();
|
|
5327
|
-
return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(
|
|
5344
|
+
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) => {
|
|
5328
5345
|
if (!t) {
|
|
5329
5346
|
if (s.visible === !1)
|
|
5330
5347
|
return !1;
|
|
@@ -5333,7 +5350,7 @@ const Sc = (e) => {
|
|
|
5333
5350
|
}
|
|
5334
5351
|
return !0;
|
|
5335
5352
|
});
|
|
5336
|
-
},
|
|
5353
|
+
}, Fc = (e, t) => {
|
|
5337
5354
|
const a = t == null ? void 0 : t.filter((n) => {
|
|
5338
5355
|
const s = e.find(
|
|
5339
5356
|
(r) => r.dataIndex === n.dataIndex || r.key === n.key || r.title === n.title
|
|
@@ -5380,7 +5397,7 @@ const Sc = (e) => {
|
|
|
5380
5397
|
...a
|
|
5381
5398
|
}).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
|
|
5382
5399
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
|
|
5383
|
-
}, 50), n)),
|
|
5400
|
+
}, 50), n)), Mc = (e, t) => {
|
|
5384
5401
|
const a = {};
|
|
5385
5402
|
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Vi(e, a, {
|
|
5386
5403
|
loadingText: !1,
|
|
@@ -5391,26 +5408,26 @@ const Sc = (e) => {
|
|
|
5391
5408
|
url: a,
|
|
5392
5409
|
params: t,
|
|
5393
5410
|
loadingState: e.isGridLoading
|
|
5394
|
-
}),
|
|
5411
|
+
}), Uc = (e, t) => {
|
|
5395
5412
|
const a = t;
|
|
5396
5413
|
return rr(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
|
|
5397
|
-
},
|
|
5414
|
+
}, xc = (e, t) => {
|
|
5398
5415
|
let a = e.editor;
|
|
5399
5416
|
e.rowData.value = t, a && (nr(a, t), a.visible.value = !0);
|
|
5400
|
-
},
|
|
5417
|
+
}, Vc = (e, t) => ki(e, t, {
|
|
5401
5418
|
url: e.deleteUrl,
|
|
5402
5419
|
primaryKey: e.primaryKey
|
|
5403
5420
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5404
5421
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5405
5422
|
}, 50), a));
|
|
5406
|
-
var
|
|
5423
|
+
var tn = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(tn || {});
|
|
5407
5424
|
class $i {
|
|
5408
5425
|
constructor() {
|
|
5409
5426
|
ne(this, "listeners", {});
|
|
5410
5427
|
}
|
|
5411
5428
|
// 检查事件名是否符合前缀
|
|
5412
5429
|
isValidPrefix(t) {
|
|
5413
|
-
return Object.values(
|
|
5430
|
+
return Object.values(tn).some((a) => t.startsWith(a + "."));
|
|
5414
5431
|
}
|
|
5415
5432
|
/**
|
|
5416
5433
|
* 事件订阅
|
|
@@ -5419,7 +5436,7 @@ class $i {
|
|
|
5419
5436
|
*/
|
|
5420
5437
|
on(t, a) {
|
|
5421
5438
|
if (!this.isValidPrefix(t)) {
|
|
5422
|
-
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(
|
|
5439
|
+
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(tn).join(", ")} 开头`);
|
|
5423
5440
|
return;
|
|
5424
5441
|
}
|
|
5425
5442
|
this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push(a);
|
|
@@ -5450,7 +5467,7 @@ class $i {
|
|
|
5450
5467
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5451
5468
|
}
|
|
5452
5469
|
}
|
|
5453
|
-
const nt = new $i(),
|
|
5470
|
+
const nt = new $i(), mt = (e, t, a) => {
|
|
5454
5471
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5455
5472
|
const n = t.inputFactory.value;
|
|
5456
5473
|
n.reloadHandler = (s, r) => {
|
|
@@ -5510,7 +5527,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5510
5527
|
if ((i == null ? void 0 : i.status) === ie.SUCCESS) {
|
|
5511
5528
|
if (i.data)
|
|
5512
5529
|
return i.data;
|
|
5513
|
-
} else if ((i == null ? void 0 : i.errno) ==
|
|
5530
|
+
} else if ((i == null ? void 0 : i.errno) == ua) {
|
|
5514
5531
|
Ie().logout(!1);
|
|
5515
5532
|
return;
|
|
5516
5533
|
}
|
|
@@ -5538,7 +5555,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5538
5555
|
const r = s([e], t);
|
|
5539
5556
|
return r.length > 0 ? r[0] : void 0;
|
|
5540
5557
|
}
|
|
5541
|
-
},
|
|
5558
|
+
}, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], bt = (e, t, a) => {
|
|
5542
5559
|
const n = t.split(".");
|
|
5543
5560
|
let s = e;
|
|
5544
5561
|
for (let r = 0; r < n.length - 1; r++) {
|
|
@@ -5549,7 +5566,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5549
5566
|
}, lr = (e, t, a) => {
|
|
5550
5567
|
if (a == null) {
|
|
5551
5568
|
Object.entries(t).forEach(([n]) => {
|
|
5552
|
-
|
|
5569
|
+
bt(e, n, a);
|
|
5553
5570
|
});
|
|
5554
5571
|
return;
|
|
5555
5572
|
}
|
|
@@ -5560,9 +5577,9 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5560
5577
|
const l = parseInt(((o = s.match(/\$\{(\d+)\}/)) == null ? void 0 : o[1]) ?? "0"), i = a[l], c = s.replace(/\$\{\d+\}\./, "");
|
|
5561
5578
|
if (c && i) {
|
|
5562
5579
|
const m = Qt(c, i);
|
|
5563
|
-
|
|
5580
|
+
bt(e, n, m);
|
|
5564
5581
|
} else
|
|
5565
|
-
|
|
5582
|
+
bt(e, n, i);
|
|
5566
5583
|
} catch {
|
|
5567
5584
|
console.error("outFields 格式错误:" + s, "必须是 ${index} 或者 ${index}.${key}");
|
|
5568
5585
|
}
|
|
@@ -5571,11 +5588,11 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5571
5588
|
}) : Object.entries(t).forEach(([n, s]) => {
|
|
5572
5589
|
if (s.includes("${")) {
|
|
5573
5590
|
const r = Qt(s, a);
|
|
5574
|
-
|
|
5591
|
+
bt(e, n, r);
|
|
5575
5592
|
} else
|
|
5576
|
-
|
|
5593
|
+
bt(e, n, a[s]);
|
|
5577
5594
|
});
|
|
5578
|
-
},
|
|
5595
|
+
}, pa = (e, t, a) => {
|
|
5579
5596
|
var r, o;
|
|
5580
5597
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5581
5598
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Ft(n.editorCtrl), e.selected.value = a;
|
|
@@ -5646,7 +5663,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5646
5663
|
value: "Id"
|
|
5647
5664
|
}
|
|
5648
5665
|
}
|
|
5649
|
-
},
|
|
5666
|
+
}, $c = (e) => {
|
|
5650
5667
|
Z.PageOption = {
|
|
5651
5668
|
...Z.PageOption,
|
|
5652
5669
|
...e.pageOption
|
|
@@ -5660,10 +5677,10 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5660
5677
|
...Z.TreeOption,
|
|
5661
5678
|
...e.treeOption
|
|
5662
5679
|
};
|
|
5663
|
-
},
|
|
5680
|
+
}, _a = (e) => {
|
|
5664
5681
|
for (let t in e.urls)
|
|
5665
5682
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
5666
|
-
}, Ki = (e, t, a, n) => (
|
|
5683
|
+
}, Ki = (e, t, a, n) => (_a(e), {
|
|
5667
5684
|
editorCtrl: {
|
|
5668
5685
|
...Z.EditorOption,
|
|
5669
5686
|
name: "",
|
|
@@ -5680,7 +5697,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5680
5697
|
isFormLoading: R(!1)
|
|
5681
5698
|
}
|
|
5682
5699
|
}), Yi = (e, t, a) => {
|
|
5683
|
-
|
|
5700
|
+
_a(e);
|
|
5684
5701
|
const n = {
|
|
5685
5702
|
...Z.GridOption,
|
|
5686
5703
|
tableSize: R(Z.GridOption.tableSize.value),
|
|
@@ -5718,8 +5735,8 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5718
5735
|
), {
|
|
5719
5736
|
gridCtrl: n
|
|
5720
5737
|
};
|
|
5721
|
-
},
|
|
5722
|
-
|
|
5738
|
+
}, Hc = (e, t) => {
|
|
5739
|
+
_a(e);
|
|
5723
5740
|
const a = {
|
|
5724
5741
|
...Z.TreeOption,
|
|
5725
5742
|
reload: R(!1),
|
|
@@ -5756,13 +5773,13 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5756
5773
|
(n) => {
|
|
5757
5774
|
n && (setTimeout(() => {
|
|
5758
5775
|
a.reload.value = !1;
|
|
5759
|
-
}, 1),
|
|
5776
|
+
}, 1), mt(!0, a, t));
|
|
5760
5777
|
}
|
|
5761
5778
|
), {
|
|
5762
5779
|
optionCtrl: a
|
|
5763
5780
|
};
|
|
5764
|
-
},
|
|
5765
|
-
|
|
5781
|
+
}, Wc = (e, t, a) => {
|
|
5782
|
+
_a(e);
|
|
5766
5783
|
const n = {
|
|
5767
5784
|
...Z.PageOption,
|
|
5768
5785
|
...e
|
|
@@ -5772,9 +5789,9 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5772
5789
|
editorCtrl: s,
|
|
5773
5790
|
gridCtrl: r
|
|
5774
5791
|
};
|
|
5775
|
-
}, Bi = 10080 * 60 * 1e3,
|
|
5792
|
+
}, Bi = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = R({}), Gc = Ge, Kc = (e) => {
|
|
5776
5793
|
var s;
|
|
5777
|
-
if (!e.iconUrl) return
|
|
5794
|
+
if (!e.iconUrl) return an;
|
|
5778
5795
|
const t = R(!0), a = R("");
|
|
5779
5796
|
let n = !0;
|
|
5780
5797
|
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) && ji(e, t).then(() => {
|
|
@@ -5836,7 +5853,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5836
5853
|
},
|
|
5837
5854
|
render() {
|
|
5838
5855
|
if (!t.value)
|
|
5839
|
-
return
|
|
5856
|
+
return an;
|
|
5840
5857
|
let r = this.class, o = "";
|
|
5841
5858
|
Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
|
|
5842
5859
|
let l = [o];
|
|
@@ -5855,16 +5872,16 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5855
5872
|
let a = e.iconUrl;
|
|
5856
5873
|
if (!a)
|
|
5857
5874
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
5858
|
-
if (
|
|
5875
|
+
if (Va.has(a))
|
|
5859
5876
|
return Promise.resolve();
|
|
5860
5877
|
const n = cr(a);
|
|
5861
5878
|
if (n)
|
|
5862
5879
|
return new Promise(async (r) => (ir(n.scriptContent), r()));
|
|
5863
5880
|
t.value = !1;
|
|
5864
5881
|
const s = new Promise(async (r) => {
|
|
5865
|
-
await Ji(a, e.monoColor || !1), r(),
|
|
5882
|
+
await Ji(a, e.monoColor || !1), r(), Va.delete(a);
|
|
5866
5883
|
});
|
|
5867
|
-
return
|
|
5884
|
+
return Va.set(a, s), s;
|
|
5868
5885
|
}, Ji = async (e, t) => {
|
|
5869
5886
|
try {
|
|
5870
5887
|
const a = await fetch(e);
|
|
@@ -5909,7 +5926,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5909
5926
|
return console.error("解析缓存失败:", s), null;
|
|
5910
5927
|
}
|
|
5911
5928
|
return n.expireTime < Date.now() ? (localStorage.removeItem(e), null) : n;
|
|
5912
|
-
},
|
|
5929
|
+
}, Yc = () => {
|
|
5913
5930
|
const e = Date.now();
|
|
5914
5931
|
for (const t in localStorage)
|
|
5915
5932
|
if (t.startsWith("icon_cache:")) {
|
|
@@ -5920,7 +5937,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5920
5937
|
setTimeout(() => {
|
|
5921
5938
|
t.value = a, t.value && (e.value = Ge.value[t.value]);
|
|
5922
5939
|
}, 1);
|
|
5923
|
-
},
|
|
5940
|
+
}, an = ye(
|
|
5924
5941
|
"svg",
|
|
5925
5942
|
{ class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
|
|
5926
5943
|
[
|
|
@@ -5956,7 +5973,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5956
5973
|
}, zi = (e, t) => {
|
|
5957
5974
|
let a = "";
|
|
5958
5975
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5959
|
-
},
|
|
5976
|
+
}, Bc = (e, t, a, n) => {
|
|
5960
5977
|
ur(e, [], a, n).forEach((r) => t.push(r));
|
|
5961
5978
|
}, ur = (e, t, a, n) => {
|
|
5962
5979
|
var o, l, i, c, m, g;
|
|
@@ -5977,7 +5994,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5977
5994
|
(P.length > 0 || !p.children) && s.push(S);
|
|
5978
5995
|
}
|
|
5979
5996
|
return s;
|
|
5980
|
-
}, us = Er([]),
|
|
5997
|
+
}, us = Er([]), jc = () => {
|
|
5981
5998
|
us.length = 0;
|
|
5982
5999
|
const e = Fe();
|
|
5983
6000
|
let a = hn().TabActive;
|
|
@@ -5990,7 +6007,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
5990
6007
|
};
|
|
5991
6008
|
us.push(o);
|
|
5992
6009
|
});
|
|
5993
|
-
},
|
|
6010
|
+
}, Jc = kt("hostInfo", {
|
|
5994
6011
|
state: () => ({
|
|
5995
6012
|
hostInfo: {
|
|
5996
6013
|
Host: "",
|
|
@@ -6015,13 +6032,13 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6015
6032
|
*/
|
|
6016
6033
|
async loadHostInfo(e, t) {
|
|
6017
6034
|
if (Ce()) {
|
|
6018
|
-
const n = await
|
|
6035
|
+
const n = await It.getHostInfo();
|
|
6019
6036
|
this._setHostInfo(n);
|
|
6020
6037
|
return;
|
|
6021
6038
|
}
|
|
6022
6039
|
let a = (e || this.getSiteHostApi()).trim();
|
|
6023
6040
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
|
|
6024
|
-
|
|
6041
|
+
Da.SITEHOST_API || (Da.SITEHOST_API = a);
|
|
6025
6042
|
const s = t || window.location.origin;
|
|
6026
6043
|
Xe(qs.host, {
|
|
6027
6044
|
Query: {
|
|
@@ -6061,7 +6078,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6061
6078
|
}, this.hostInfo.API_HOST)
|
|
6062
6079
|
for (const t in this.hostInfo.API_HOST) {
|
|
6063
6080
|
let a = this.hostInfo.API_HOST[t];
|
|
6064
|
-
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a,
|
|
6081
|
+
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a, Da[t] = a;
|
|
6065
6082
|
}
|
|
6066
6083
|
if (this.hostInfo.SERVER_HOST)
|
|
6067
6084
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
@@ -6080,7 +6097,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6080
6097
|
// storage: localStorage,
|
|
6081
6098
|
// pick: ['hostInfo'],
|
|
6082
6099
|
// },
|
|
6083
|
-
}),
|
|
6100
|
+
}), Qc = /* @__PURE__ */ De({
|
|
6084
6101
|
__name: "index",
|
|
6085
6102
|
props: {
|
|
6086
6103
|
...Ct,
|
|
@@ -6098,7 +6115,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6098
6115
|
},
|
|
6099
6116
|
emits: ["change"],
|
|
6100
6117
|
setup(e, { emit: t }) {
|
|
6101
|
-
const a = e, n =
|
|
6118
|
+
const a = e, n = ut(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
|
|
6102
6119
|
r.inputFactory = ke(n);
|
|
6103
6120
|
const o = R([]);
|
|
6104
6121
|
r && B(
|
|
@@ -6108,7 +6125,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6108
6125
|
},
|
|
6109
6126
|
{ immediate: !0, deep: !0 }
|
|
6110
6127
|
);
|
|
6111
|
-
const l = t, { editorCtrl: i, errInfo: c } =
|
|
6128
|
+
const l = t, { editorCtrl: i, errInfo: c } = ut(), { t: m } = la(), g = et(() => {
|
|
6112
6129
|
switch (a.size) {
|
|
6113
6130
|
case "small":
|
|
6114
6131
|
return "w-[46px]";
|
|
@@ -6123,8 +6140,8 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6123
6140
|
console.error("Switch组件: ", a.data), se.error(m("webui.components.form.switch.error"));
|
|
6124
6141
|
return;
|
|
6125
6142
|
}
|
|
6126
|
-
r &&
|
|
6127
|
-
}),
|
|
6143
|
+
r && mt(r.autoload, r, a);
|
|
6144
|
+
}), ft(() => {
|
|
6128
6145
|
r && Mt(r, a);
|
|
6129
6146
|
}), (I, P) => {
|
|
6130
6147
|
var S;
|
|
@@ -6144,7 +6161,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6144
6161
|
}, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
|
|
6145
6162
|
};
|
|
6146
6163
|
}
|
|
6147
|
-
}),
|
|
6164
|
+
}), Xc = /* @__PURE__ */ De({
|
|
6148
6165
|
inheritAttrs: !1,
|
|
6149
6166
|
__name: "index",
|
|
6150
6167
|
props: {
|
|
@@ -6165,7 +6182,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6165
6182
|
},
|
|
6166
6183
|
emits: ["update:value", "select", "change", "update:labels"],
|
|
6167
6184
|
setup(e, { emit: t }) {
|
|
6168
|
-
const a = e, n = Zt(), s =
|
|
6185
|
+
const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6169
6186
|
o.inputFactory = ke(s), o.fieldMap = {
|
|
6170
6187
|
label: "Name",
|
|
6171
6188
|
value: "Id",
|
|
@@ -6201,16 +6218,16 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6201
6218
|
SearchField: "%" + S.trim() + "%"
|
|
6202
6219
|
}
|
|
6203
6220
|
};
|
|
6204
|
-
o.params = Dt(o.params, d), o &&
|
|
6221
|
+
o.params = Dt(o.params, d), o && mt(!0, o, a);
|
|
6205
6222
|
}, P = (S) => {
|
|
6206
|
-
const O =
|
|
6223
|
+
const O = pa(o, a, S);
|
|
6207
6224
|
g("update:value", S), g("select", S);
|
|
6208
|
-
const d =
|
|
6225
|
+
const d = ma(O);
|
|
6209
6226
|
g("update:labels", d), c != null && c.value.errClass && i && Ft(i);
|
|
6210
6227
|
};
|
|
6211
6228
|
return ea(() => {
|
|
6212
6229
|
o && o.autoload && (o.reload.value = !0);
|
|
6213
|
-
}),
|
|
6230
|
+
}), ft(() => {
|
|
6214
6231
|
o && Mt(o, a);
|
|
6215
6232
|
}), (S, O) => {
|
|
6216
6233
|
var d;
|
|
@@ -6240,7 +6257,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6240
6257
|
}), Zi = { class: "min-h-[32px] pt-[5px]" }, ec = {
|
|
6241
6258
|
key: 1,
|
|
6242
6259
|
class: "text-center text-gray-500"
|
|
6243
|
-
},
|
|
6260
|
+
}, qc = /* @__PURE__ */ De({
|
|
6244
6261
|
inheritAttrs: !1,
|
|
6245
6262
|
__name: "index",
|
|
6246
6263
|
props: {
|
|
@@ -6262,7 +6279,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6262
6279
|
emits: ["change", "update:labels"],
|
|
6263
6280
|
setup(e, { emit: t }) {
|
|
6264
6281
|
var p, I, P;
|
|
6265
|
-
const a = e, n = Zt(), s =
|
|
6282
|
+
const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6266
6283
|
o.inputFactory = ke(s);
|
|
6267
6284
|
const l = R({
|
|
6268
6285
|
...o == null ? void 0 : o.url,
|
|
@@ -6281,7 +6298,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6281
6298
|
{ immediate: !0, deep: !0 }
|
|
6282
6299
|
);
|
|
6283
6300
|
const g = (S) => {
|
|
6284
|
-
const d =
|
|
6301
|
+
const d = pa(o, a, S), _ = ma(d);
|
|
6285
6302
|
c("update:labels", _);
|
|
6286
6303
|
};
|
|
6287
6304
|
return ea(() => {
|
|
@@ -6292,8 +6309,8 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6292
6309
|
label: "Name",
|
|
6293
6310
|
value: "Id",
|
|
6294
6311
|
key: "Id"
|
|
6295
|
-
}), o &&
|
|
6296
|
-
}),
|
|
6312
|
+
}), o && mt(o.autoload, o, a);
|
|
6313
|
+
}), ft(() => {
|
|
6297
6314
|
o && Mt(o, a);
|
|
6298
6315
|
}), (S, O) => (le(), ge("div", Zi, [
|
|
6299
6316
|
Ye(X(Nr), wt({
|
|
@@ -6301,7 +6318,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6301
6318
|
class: "w-full mb-[-3px]"
|
|
6302
6319
|
}, X(n)), {
|
|
6303
6320
|
default: Me(() => [
|
|
6304
|
-
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 },
|
|
6321
|
+
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (d) => {
|
|
6305
6322
|
var _;
|
|
6306
6323
|
return le(), zt(X(Sr), {
|
|
6307
6324
|
key: d.value,
|
|
@@ -6328,7 +6345,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6328
6345
|
}), tc = { class: "min-h-[32px] pt-1" }, ac = {
|
|
6329
6346
|
key: 1,
|
|
6330
6347
|
class: "text-center text-gray-500"
|
|
6331
|
-
},
|
|
6348
|
+
}, zc = /* @__PURE__ */ De({
|
|
6332
6349
|
inheritAttrs: !1,
|
|
6333
6350
|
__name: "index",
|
|
6334
6351
|
props: {
|
|
@@ -6351,7 +6368,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6351
6368
|
emits: ["change", "update:value", "update:labels"],
|
|
6352
6369
|
setup(e, { emit: t }) {
|
|
6353
6370
|
var P, S, O;
|
|
6354
|
-
const a = e, n = Zt(), s =
|
|
6371
|
+
const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6355
6372
|
o.inputFactory = ke(s);
|
|
6356
6373
|
const l = R({
|
|
6357
6374
|
...o == null ? void 0 : o.url,
|
|
@@ -6384,7 +6401,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6384
6401
|
}
|
|
6385
6402
|
return d === _;
|
|
6386
6403
|
}, I = (d) => {
|
|
6387
|
-
const _ = d.target.value, y =
|
|
6404
|
+
const _ = d.target.value, y = pa(o, a, _), E = ma(y);
|
|
6388
6405
|
g("update:labels", E);
|
|
6389
6406
|
};
|
|
6390
6407
|
return ea(() => {
|
|
@@ -6394,8 +6411,8 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6394
6411
|
label: "Name",
|
|
6395
6412
|
value: "Id",
|
|
6396
6413
|
key: "Id"
|
|
6397
|
-
}), o &&
|
|
6398
|
-
}),
|
|
6414
|
+
}), o && mt(o.autoload, o, a);
|
|
6415
|
+
}), ft(() => {
|
|
6399
6416
|
o && Mt(o, a);
|
|
6400
6417
|
}), (d, _) => (le(), ge("div", tc, [
|
|
6401
6418
|
Ye(X(Tr), wt({
|
|
@@ -6406,7 +6423,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6406
6423
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6407
6424
|
}, X(n)), {
|
|
6408
6425
|
default: Me(() => [
|
|
6409
|
-
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 },
|
|
6426
|
+
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (y) => {
|
|
6410
6427
|
var E;
|
|
6411
6428
|
return le(), ge(Ke, {
|
|
6412
6429
|
key: y.value
|
|
@@ -6437,7 +6454,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6437
6454
|
}), nc = {
|
|
6438
6455
|
key: 0,
|
|
6439
6456
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
6440
|
-
},
|
|
6457
|
+
}, Zc = /* @__PURE__ */ De({
|
|
6441
6458
|
inheritAttrs: !1,
|
|
6442
6459
|
__name: "index",
|
|
6443
6460
|
props: {
|
|
@@ -6473,7 +6490,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6473
6490
|
emits: ["change", "update:value", "update:label", "update:labels"],
|
|
6474
6491
|
setup(e, { emit: t }) {
|
|
6475
6492
|
var _, y, E;
|
|
6476
|
-
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s =
|
|
6493
|
+
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ut(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = Ut(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
|
|
6477
6494
|
c.inputFactory = ke(s);
|
|
6478
6495
|
const m = Zt();
|
|
6479
6496
|
c.autoload = a.autoload ?? !1;
|
|
@@ -6486,7 +6503,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6486
6503
|
}), p = R(m.placeholder), I = R(c == null ? void 0 : c.selected.value), P = t;
|
|
6487
6504
|
s.inputEmit = P;
|
|
6488
6505
|
const S = (b) => {
|
|
6489
|
-
const L =
|
|
6506
|
+
const L = pa(c, a, b), v = ma(L);
|
|
6490
6507
|
I.value = b, P("update:labels", v), P("update:label", v.join(";")), P("change", b, L), o != null && o.value.errClass && r && Ft(r);
|
|
6491
6508
|
}, O = R((c == null ? void 0 : c.options.value) || []), d = (b) => {
|
|
6492
6509
|
if (b.length > 0 && ve(a.value) && a.selectFirst)
|
|
@@ -6542,19 +6559,19 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6542
6559
|
value: "Id",
|
|
6543
6560
|
key: "Id"
|
|
6544
6561
|
}), a.dataKey) {
|
|
6545
|
-
const b = JSON.parse(JSON.stringify(
|
|
6562
|
+
const b = JSON.parse(JSON.stringify(en.getOptions(a.dataKey)));
|
|
6546
6563
|
O.value = b, d(b);
|
|
6547
6564
|
} else if (c) {
|
|
6548
6565
|
const b = c.options.value || [];
|
|
6549
|
-
b.length > 0 ? (O.value = b, d(b)) :
|
|
6566
|
+
b.length > 0 ? (O.value = b, d(b)) : mt(c.autoload, c, a);
|
|
6550
6567
|
}
|
|
6551
|
-
}),
|
|
6568
|
+
}), ft(() => {
|
|
6552
6569
|
c && Mt(c, a);
|
|
6553
6570
|
}), (b, L) => {
|
|
6554
6571
|
var v, C, M;
|
|
6555
6572
|
return le(), ge("div", null, [
|
|
6556
6573
|
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", nc, [
|
|
6557
|
-
Ye(X(
|
|
6574
|
+
Ye(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6558
6575
|
vr("span", null, Be(X(w)("webui.components.form.upload.dataLoading")), 1)
|
|
6559
6576
|
])) : rt("", !0),
|
|
6560
6577
|
Ye(X(Or), wt({
|
|
@@ -6567,7 +6584,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6567
6584
|
"label-in-value": !1
|
|
6568
6585
|
}, X(m)), {
|
|
6569
6586
|
default: Me(() => [
|
|
6570
|
-
(le(!0), ge(Ke, null,
|
|
6587
|
+
(le(!0), ge(Ke, null, nn(O.value, (K) => (le(), ge(Ke, {
|
|
6571
6588
|
key: K.value
|
|
6572
6589
|
}, [
|
|
6573
6590
|
K.visible !== !1 ? (le(), zt(X(Ar), {
|
|
@@ -6586,7 +6603,7 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6586
6603
|
]);
|
|
6587
6604
|
};
|
|
6588
6605
|
}
|
|
6589
|
-
}), sc = R(!1),
|
|
6606
|
+
}), sc = R(!1), eu = {
|
|
6590
6607
|
label: w("webui.utils.tools.templateManagement"),
|
|
6591
6608
|
key: "uploadTemp",
|
|
6592
6609
|
type: "primary",
|
|
@@ -6597,88 +6614,89 @@ const nt = new $i(), dt = (e, t, a) => {
|
|
|
6597
6614
|
};
|
|
6598
6615
|
export {
|
|
6599
6616
|
w as $,
|
|
6600
|
-
|
|
6601
|
-
|
|
6617
|
+
pa as A,
|
|
6618
|
+
ma as B,
|
|
6602
6619
|
Ft as C,
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6620
|
+
qc as D,
|
|
6621
|
+
la as E,
|
|
6622
|
+
zc as F,
|
|
6623
|
+
Zc as G,
|
|
6607
6624
|
En as H,
|
|
6608
6625
|
Mr as I,
|
|
6609
6626
|
yc as J,
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6627
|
+
$c as K,
|
|
6628
|
+
ua as L,
|
|
6629
|
+
It as M,
|
|
6613
6630
|
Ki as N,
|
|
6614
|
-
|
|
6631
|
+
en as O,
|
|
6615
6632
|
Re as P,
|
|
6616
6633
|
Yi as Q,
|
|
6617
|
-
|
|
6618
|
-
|
|
6634
|
+
Hc as R,
|
|
6635
|
+
Wc as S,
|
|
6619
6636
|
Gi as T,
|
|
6620
6637
|
lr as U,
|
|
6621
|
-
|
|
6622
|
-
|
|
6638
|
+
Gc as V,
|
|
6639
|
+
Yc as W,
|
|
6623
6640
|
qi as X,
|
|
6624
6641
|
zi as Y,
|
|
6625
|
-
|
|
6626
|
-
|
|
6642
|
+
Bc as Z,
|
|
6643
|
+
Qc as _,
|
|
6627
6644
|
Nc as a,
|
|
6628
6645
|
us as a0,
|
|
6629
|
-
|
|
6646
|
+
jc as a1,
|
|
6630
6647
|
ar as a2,
|
|
6631
|
-
|
|
6648
|
+
kc as a3,
|
|
6632
6649
|
nr as a4,
|
|
6633
6650
|
Sc as a5,
|
|
6634
|
-
|
|
6651
|
+
Oc as a6,
|
|
6635
6652
|
vn as a7,
|
|
6636
6653
|
Tc as a8,
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6654
|
+
Lc as a9,
|
|
6655
|
+
Fc as aa,
|
|
6656
|
+
Vi as ab,
|
|
6657
|
+
rr as ac,
|
|
6658
|
+
Uc as ad,
|
|
6659
|
+
Ic as ae,
|
|
6660
|
+
tr as af,
|
|
6661
|
+
ki as ag,
|
|
6662
|
+
tn as ah,
|
|
6663
|
+
nt as ai,
|
|
6664
|
+
yt as aj,
|
|
6665
|
+
jt as ak,
|
|
6666
|
+
Fe as al,
|
|
6667
|
+
Jc as am,
|
|
6668
|
+
hn as an,
|
|
6669
|
+
sc as ao,
|
|
6670
|
+
eu as ap,
|
|
6671
|
+
me as aq,
|
|
6672
|
+
hc as ar,
|
|
6673
|
+
bc as as,
|
|
6674
|
+
vc as at,
|
|
6675
|
+
Ec as au,
|
|
6676
|
+
ct as av,
|
|
6677
|
+
Rc as b,
|
|
6678
|
+
Kc as c,
|
|
6679
|
+
wc as d,
|
|
6680
|
+
Ac as e,
|
|
6681
|
+
xc as f,
|
|
6664
6682
|
Ui as g,
|
|
6665
|
-
|
|
6683
|
+
Vc as h,
|
|
6666
6684
|
ve as i,
|
|
6667
|
-
|
|
6668
|
-
|
|
6685
|
+
Cc as j,
|
|
6686
|
+
Dc as k,
|
|
6669
6687
|
sr as l,
|
|
6670
6688
|
xi as m,
|
|
6671
|
-
|
|
6672
|
-
|
|
6689
|
+
Mc as n,
|
|
6690
|
+
Pc as o,
|
|
6673
6691
|
Ci as p,
|
|
6674
6692
|
Di as q,
|
|
6675
|
-
|
|
6676
|
-
|
|
6693
|
+
ca as r,
|
|
6694
|
+
Xc as s,
|
|
6677
6695
|
Ct as t,
|
|
6678
6696
|
Ie as u,
|
|
6679
|
-
|
|
6697
|
+
ut as v,
|
|
6680
6698
|
Ut as w,
|
|
6681
|
-
|
|
6699
|
+
mt as x,
|
|
6682
6700
|
Mt as y,
|
|
6683
|
-
|
|
6701
|
+
an as z
|
|
6684
6702
|
};
|