@10yun/open-sdk 0.3.97 → 0.3.98
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/dist/{404-DIY1-gwa.cjs → 404-BF-98DI2.cjs} +1 -1
- package/dist/{404-DE7Pk-6G.js → 404-CRUQ2RGL.js} +1 -1
- package/dist/{alone_run-B72RhBny.js → alone_run-D3hGeSjr.js} +1 -1
- package/dist/{alone_run-BR__Dya8.cjs → alone_run-ErREtrxQ.cjs} +1 -1
- package/dist/{index-eCmAf5ru.js → index-CYNRKRHo.js} +633 -620
- package/dist/index-UENhK8Dd.cjs +25 -0
- package/dist/{login-BCLKLSlo.js → login-CMkucPpJ.js} +124 -124
- package/dist/{login-DbsijHDN.cjs → login-DsaaTEyf.cjs} +1 -1
- package/dist/{none-CEhsRvE2.cjs → none-CxRhvKIK.cjs} +1 -1
- package/dist/{none-wMSqEt4-.js → none-GtWlMjrR.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-BcokQifq.cjs +0 -25
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { effectScope as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
1
|
+
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
+
import { effectScope as Ds, ref as Rs, shallowRef as ks, computed as gt, watch as wn, isRef as Ps, defineComponent as Jn, getCurrentInstance as yt, h as Sa, Fragment as he, inject as Fs, onMounted as Ms, onUnmounted as Us, createVNode as w, Text as Bs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as R, createElementVNode as P, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, Transition as xs, normalizeClass as va, resolveDynamicComponent as Vs, withDirectives as Aa, withModifiers as Gs, normalizeStyle as Dn, vShow as ya, mergeProps as $s, renderSlot as Ws } from "vue";
|
|
3
|
+
import Ys, { ElMessage as vr, ElMessageBox as Hs, ElNotification as Ks } from "element-plus";
|
|
4
|
+
import * as js from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
7
|
-
import
|
|
7
|
+
import qs from "@10yun/cv-pc-ui";
|
|
8
8
|
import "@10yun/cv-pc-ui/lib/cv-ui.css";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
9
|
+
import * as Xs from "@10yun/cv-icons-vue";
|
|
10
|
+
import Qs from "axios";
|
|
11
11
|
let Na = {};
|
|
12
|
-
function
|
|
12
|
+
function Js(e = {}) {
|
|
13
13
|
Na = e;
|
|
14
14
|
}
|
|
15
15
|
function Nt() {
|
|
@@ -20,10 +20,10 @@ function Nt() {
|
|
|
20
20
|
* (c) 2021-2022 Teng Mao Qing
|
|
21
21
|
* Released under the MIT License.
|
|
22
22
|
*/
|
|
23
|
-
var me = typeof window < "u" ? window.proxy || window : {},
|
|
23
|
+
var me = typeof window < "u" ? window.proxy || window : {}, zs = function(e) {
|
|
24
24
|
me != null && me.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), me.qiankunName && (window.moudleQiankunAppLifeCycles[me.qiankunName] = e));
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function Zs(e = "/", t = null, n = {}) {
|
|
27
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
28
28
|
}
|
|
29
29
|
var At = {};
|
|
@@ -39,7 +39,7 @@ function Ut(e) {
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function eo(e) {
|
|
43
43
|
let t = Te();
|
|
44
44
|
e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
|
|
45
45
|
if (n && n.msg)
|
|
@@ -52,8 +52,8 @@ function to(e) {
|
|
|
52
52
|
Tt().SA_MSG_CONTENT(n.msg);
|
|
53
53
|
}, !0), At.setGlobalState = e && e.setGlobalState, At.name = e && e.name;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function to(e, t, n) {
|
|
56
|
+
zs({
|
|
57
57
|
/**
|
|
58
58
|
* @name 微应用初始化
|
|
59
59
|
* @param {Object} props 主应用下发的props
|
|
@@ -68,7 +68,7 @@ function no(e, t, n) {
|
|
|
68
68
|
* @description 应用每次进入都会调用 mount 方法,通常我们在这里触发应用的渲染方法
|
|
69
69
|
*/
|
|
70
70
|
mount(r) {
|
|
71
|
-
|
|
71
|
+
eo(r), t(r, !0);
|
|
72
72
|
},
|
|
73
73
|
/**
|
|
74
74
|
* @name 微应用卸载/切出
|
|
@@ -85,7 +85,7 @@ function no(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
const Tt =
|
|
88
|
+
const Tt = De("cloudSdkQiankunStore", {
|
|
89
89
|
state: () => ({
|
|
90
90
|
// 是否是乾坤
|
|
91
91
|
qiankunExistState: me.__POWERED_BY_QIANKUN__ || !1,
|
|
@@ -163,26 +163,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
163
163
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const no = /\{([0-9a-zA-Z]+)\}/g;
|
|
167
167
|
function Xt(e, ...t) {
|
|
168
|
-
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
168
|
+
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(no, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
169
169
|
}
|
|
170
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
170
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ro = (e, t, n) => ao({ l: e, k: t, s: n }), ao = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), so = (e) => zn(e) === "[object Date]", lt = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, oo = Object.create, K = (e = null) => oo(e);
|
|
171
171
|
let Ar;
|
|
172
172
|
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
173
173
|
function yr(e) {
|
|
174
174
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const io = Object.prototype.hasOwnProperty;
|
|
177
177
|
function ve(e, t) {
|
|
178
|
-
return
|
|
178
|
+
return io.call(e, t);
|
|
179
179
|
}
|
|
180
|
-
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object",
|
|
180
|
+
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object", lo = (e) => G(e) && q(e.then) && q(e.catch), Ta = Object.prototype.toString, zn = (e) => Ta.call(e), V = (e) => zn(e) === "[object Object]", co = (e) => e == null ? "" : re(e) || V(e) && e.toString === Ta ? JSON.stringify(e, null, 2) : String(e);
|
|
181
181
|
function Zn(e, t = "") {
|
|
182
182
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
183
183
|
}
|
|
184
184
|
const Nr = 2;
|
|
185
|
-
function
|
|
185
|
+
function uo(e, t = 0, n = e.length) {
|
|
186
186
|
const r = e.split(/\r?\n/);
|
|
187
187
|
let a = 0;
|
|
188
188
|
const s = [];
|
|
@@ -210,7 +210,7 @@ function fo(e, t = 0, n = e.length) {
|
|
|
210
210
|
return s.join(`
|
|
211
211
|
`);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function fo(e, t) {
|
|
214
214
|
}
|
|
215
215
|
const Tr = {};
|
|
216
216
|
function er(e) {
|
|
@@ -250,7 +250,7 @@ function Wt(e, t) {
|
|
|
250
250
|
* (c) 2025 kazuya kawaguchi
|
|
251
251
|
* Released under the MIT License.
|
|
252
252
|
*/
|
|
253
|
-
function
|
|
253
|
+
function _o(e, t, n) {
|
|
254
254
|
return { line: e, column: t, offset: n };
|
|
255
255
|
}
|
|
256
256
|
function Rn(e, t, n) {
|
|
@@ -277,7 +277,7 @@ const M = {
|
|
|
277
277
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
278
278
|
// minifier error codes
|
|
279
279
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
280
|
-
},
|
|
280
|
+
}, mo = 17, ho = {
|
|
281
281
|
// tokenizer error messages
|
|
282
282
|
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
283
283
|
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -300,18 +300,18 @@ const M = {
|
|
|
300
300
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
301
301
|
};
|
|
302
302
|
function ft(e, t, n = {}) {
|
|
303
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a ||
|
|
303
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || ho)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
304
304
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function go(e) {
|
|
307
307
|
throw e;
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
`,
|
|
311
|
-
function
|
|
309
|
+
const po = /<\/?[\w\s="/.':;#-\/]+>/, Eo = (e) => po.test(e), Ce = " ", bo = "\r", ce = `
|
|
310
|
+
`, So = "\u2028", vo = "\u2029";
|
|
311
|
+
function Ao(e) {
|
|
312
312
|
const t = e;
|
|
313
313
|
let n = 0, r = 1, a = 1, s = 0;
|
|
314
|
-
const o = (v) => t[v] ===
|
|
314
|
+
const o = (v) => t[v] === bo && t[v + 1] === ce, i = (v) => t[v] === ce, l = (v) => t[v] === vo, c = (v) => t[v] === So, f = (v) => o(v) || i(v) || l(v) || c(v), u = () => n, m = () => r, p = () => a, A = () => s, E = (v) => o(v) || l(v) || c(v) ? ce : t[v], C = () => E(n), h = () => E(n + s);
|
|
315
315
|
function g() {
|
|
316
316
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
317
317
|
}
|
|
@@ -345,9 +345,9 @@ function yo(e) {
|
|
|
345
345
|
skipToPeek: L
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
const
|
|
349
|
-
function
|
|
350
|
-
const n = t.location !== !1, r =
|
|
348
|
+
const Fe = void 0, yo = ".", Or = "'", No = "tokenizer";
|
|
349
|
+
function To(e, t = {}) {
|
|
350
|
+
const n = t.location !== !1, r = Ao(e), a = () => r.index(), s = () => _o(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
351
351
|
currentType: 13,
|
|
352
352
|
offset: i,
|
|
353
353
|
startLoc: o,
|
|
@@ -360,20 +360,20 @@ function Oo(e, t = {}) {
|
|
|
360
360
|
inLinked: !1,
|
|
361
361
|
text: ""
|
|
362
362
|
}, c = () => l, { onError: f } = t;
|
|
363
|
-
function u(_, d, y, ...
|
|
363
|
+
function u(_, d, y, ...k) {
|
|
364
364
|
const z = c();
|
|
365
365
|
if (d.column += y, d.offset += y, f) {
|
|
366
366
|
const Z = n ? Rn(z.startLoc, d) : null, W = ft(_, Z, {
|
|
367
|
-
domain:
|
|
368
|
-
args:
|
|
367
|
+
domain: No,
|
|
368
|
+
args: k
|
|
369
369
|
});
|
|
370
370
|
f(W);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
function m(_, d, y) {
|
|
374
374
|
_.endLoc = s(), _.currentType = d;
|
|
375
|
-
const
|
|
376
|
-
return n && (
|
|
375
|
+
const k = { type: d };
|
|
376
|
+
return n && (k.loc = Rn(_.startLoc, _.endLoc)), y != null && (k.value = y), k;
|
|
377
377
|
}
|
|
378
378
|
const p = (_) => m(
|
|
379
379
|
_,
|
|
@@ -394,7 +394,7 @@ function Oo(e, t = {}) {
|
|
|
394
394
|
return _.skipToPeek(), d;
|
|
395
395
|
}
|
|
396
396
|
function h(_) {
|
|
397
|
-
if (_ ===
|
|
397
|
+
if (_ === Fe)
|
|
398
398
|
return !1;
|
|
399
399
|
const d = _.charCodeAt(0);
|
|
400
400
|
return d >= 97 && d <= 122 || // a-z
|
|
@@ -402,7 +402,7 @@ function Oo(e, t = {}) {
|
|
|
402
402
|
d === 95;
|
|
403
403
|
}
|
|
404
404
|
function g(_) {
|
|
405
|
-
if (_ ===
|
|
405
|
+
if (_ === Fe)
|
|
406
406
|
return !1;
|
|
407
407
|
const d = _.charCodeAt(0);
|
|
408
408
|
return d >= 48 && d <= 57;
|
|
@@ -412,15 +412,15 @@ function Oo(e, t = {}) {
|
|
|
412
412
|
if (y !== 2)
|
|
413
413
|
return !1;
|
|
414
414
|
E(_);
|
|
415
|
-
const
|
|
416
|
-
return _.resetPeek(),
|
|
415
|
+
const k = h(_.currentPeek());
|
|
416
|
+
return _.resetPeek(), k;
|
|
417
417
|
}
|
|
418
418
|
function S(_, d) {
|
|
419
419
|
const { currentType: y } = d;
|
|
420
420
|
if (y !== 2)
|
|
421
421
|
return !1;
|
|
422
422
|
E(_);
|
|
423
|
-
const
|
|
423
|
+
const k = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), z = g(k);
|
|
424
424
|
return _.resetPeek(), z;
|
|
425
425
|
}
|
|
426
426
|
function O(_, d) {
|
|
@@ -428,41 +428,41 @@ function Oo(e, t = {}) {
|
|
|
428
428
|
if (y !== 2)
|
|
429
429
|
return !1;
|
|
430
430
|
E(_);
|
|
431
|
-
const
|
|
432
|
-
return _.resetPeek(),
|
|
431
|
+
const k = _.currentPeek() === Or;
|
|
432
|
+
return _.resetPeek(), k;
|
|
433
433
|
}
|
|
434
434
|
function L(_, d) {
|
|
435
435
|
const { currentType: y } = d;
|
|
436
436
|
if (y !== 7)
|
|
437
437
|
return !1;
|
|
438
438
|
E(_);
|
|
439
|
-
const
|
|
440
|
-
return _.resetPeek(),
|
|
439
|
+
const k = _.currentPeek() === ".";
|
|
440
|
+
return _.resetPeek(), k;
|
|
441
441
|
}
|
|
442
442
|
function v(_, d) {
|
|
443
443
|
const { currentType: y } = d;
|
|
444
444
|
if (y !== 8)
|
|
445
445
|
return !1;
|
|
446
446
|
E(_);
|
|
447
|
-
const
|
|
448
|
-
return _.resetPeek(),
|
|
447
|
+
const k = h(_.currentPeek());
|
|
448
|
+
return _.resetPeek(), k;
|
|
449
449
|
}
|
|
450
450
|
function x(_, d) {
|
|
451
451
|
const { currentType: y } = d;
|
|
452
452
|
if (!(y === 7 || y === 11))
|
|
453
453
|
return !1;
|
|
454
454
|
E(_);
|
|
455
|
-
const
|
|
456
|
-
return _.resetPeek(),
|
|
455
|
+
const k = _.currentPeek() === ":";
|
|
456
|
+
return _.resetPeek(), k;
|
|
457
457
|
}
|
|
458
458
|
function Y(_, d) {
|
|
459
459
|
const { currentType: y } = d;
|
|
460
460
|
if (y !== 9)
|
|
461
461
|
return !1;
|
|
462
|
-
const
|
|
462
|
+
const k = () => {
|
|
463
463
|
const Z = _.currentPeek();
|
|
464
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(),
|
|
465
|
-
}, z =
|
|
464
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), k()) : Se(_, !1);
|
|
465
|
+
}, z = k();
|
|
466
466
|
return _.resetPeek(), z;
|
|
467
467
|
}
|
|
468
468
|
function se(_) {
|
|
@@ -474,12 +474,12 @@ function Oo(e, t = {}) {
|
|
|
474
474
|
const y = (z = !1, Z = "") => {
|
|
475
475
|
const W = _.currentPeek();
|
|
476
476
|
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
477
|
-
},
|
|
478
|
-
return d && _.resetPeek(),
|
|
477
|
+
}, k = y();
|
|
478
|
+
return d && _.resetPeek(), k;
|
|
479
479
|
}
|
|
480
480
|
function oe(_, d) {
|
|
481
481
|
const y = _.currentChar();
|
|
482
|
-
return y ===
|
|
482
|
+
return y === Fe ? Fe : d(y) ? (_.next(), y) : null;
|
|
483
483
|
}
|
|
484
484
|
function Ze(_) {
|
|
485
485
|
const d = _.charCodeAt(0);
|
|
@@ -550,12 +550,12 @@ function Oo(e, t = {}) {
|
|
|
550
550
|
let d = "", y = "";
|
|
551
551
|
for (; d = sn(_); )
|
|
552
552
|
y += d;
|
|
553
|
-
return _.currentChar() ===
|
|
553
|
+
return _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y;
|
|
554
554
|
}
|
|
555
555
|
function _n(_) {
|
|
556
556
|
C(_);
|
|
557
557
|
let d = "";
|
|
558
|
-
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() ===
|
|
558
|
+
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d;
|
|
559
559
|
}
|
|
560
560
|
function dn(_) {
|
|
561
561
|
return _ !== Or && _ !== ce;
|
|
@@ -565,8 +565,8 @@ function Oo(e, t = {}) {
|
|
|
565
565
|
let d = "", y = "";
|
|
566
566
|
for (; d = oe(_, dn); )
|
|
567
567
|
d === "\\" ? y += mn(_) : y += d;
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const k = _.currentChar();
|
|
569
|
+
return k === ce || k === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), k === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
570
570
|
}
|
|
571
571
|
function mn(_) {
|
|
572
572
|
const d = _.currentChar();
|
|
@@ -584,16 +584,16 @@ function Oo(e, t = {}) {
|
|
|
584
584
|
}
|
|
585
585
|
function Ft(_, d, y) {
|
|
586
586
|
A(_, d);
|
|
587
|
-
let
|
|
587
|
+
let k = "";
|
|
588
588
|
for (let z = 0; z < y; z++) {
|
|
589
589
|
const Z = Ie(_);
|
|
590
590
|
if (!Z) {
|
|
591
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
591
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${k}${_.currentChar()}`);
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
|
|
594
|
+
k += Z;
|
|
595
595
|
}
|
|
596
|
-
return `\\${d}${
|
|
596
|
+
return `\\${d}${k}`;
|
|
597
597
|
}
|
|
598
598
|
function hn(_) {
|
|
599
599
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -613,8 +613,8 @@ function Oo(e, t = {}) {
|
|
|
613
613
|
}
|
|
614
614
|
function En(_) {
|
|
615
615
|
const d = (y) => {
|
|
616
|
-
const
|
|
617
|
-
return
|
|
616
|
+
const k = _.currentChar();
|
|
617
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Ce ? y : (y += k, _.next(), d(y));
|
|
618
618
|
};
|
|
619
619
|
return d("");
|
|
620
620
|
}
|
|
@@ -667,16 +667,16 @@ function Oo(e, t = {}) {
|
|
|
667
667
|
}
|
|
668
668
|
function $e(_, d) {
|
|
669
669
|
const { currentType: y } = d;
|
|
670
|
-
let
|
|
670
|
+
let k = null;
|
|
671
671
|
const z = _.currentChar();
|
|
672
672
|
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
673
673
|
case "@":
|
|
674
|
-
return _.next(),
|
|
674
|
+
return _.next(), k = m(
|
|
675
675
|
d,
|
|
676
676
|
7,
|
|
677
677
|
"@"
|
|
678
678
|
/* TokenChars.LinkedAlias */
|
|
679
|
-
), d.inLinked = !0,
|
|
679
|
+
), d.inLinked = !0, k;
|
|
680
680
|
case ".":
|
|
681
681
|
return C(_), _.next(), m(
|
|
682
682
|
d,
|
|
@@ -692,7 +692,7 @@ function Oo(e, t = {}) {
|
|
|
692
692
|
/* TokenChars.LinkedDelimiter */
|
|
693
693
|
);
|
|
694
694
|
default:
|
|
695
|
-
return se(_) ? (
|
|
695
|
+
return se(_) ? (k = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, k) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? mt(_, d) || k : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
function ht(_, d) {
|
|
@@ -727,8 +727,8 @@ function Oo(e, t = {}) {
|
|
|
727
727
|
return y;
|
|
728
728
|
}
|
|
729
729
|
function bn() {
|
|
730
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
731
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
730
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: k } = l;
|
|
731
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = k, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
732
732
|
l,
|
|
733
733
|
13
|
|
734
734
|
/* TokenTypes.EOF */
|
|
@@ -741,8 +741,8 @@ function Oo(e, t = {}) {
|
|
|
741
741
|
context: c
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
const
|
|
745
|
-
function
|
|
744
|
+
const Oo = "parser", Io = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
745
|
+
function Co(e, t, n) {
|
|
746
746
|
switch (e) {
|
|
747
747
|
case "\\\\":
|
|
748
748
|
return "\\";
|
|
@@ -755,13 +755,13 @@ function Lo(e, t, n) {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Lo(e = {}) {
|
|
759
759
|
const t = e.location !== !1, { onError: n } = e;
|
|
760
760
|
function r(h, g, N, S, ...O) {
|
|
761
761
|
const L = h.currentPosition();
|
|
762
762
|
if (L.offset += S, L.column += S, n) {
|
|
763
763
|
const v = t ? Rn(N, L) : null, x = ft(g, v, {
|
|
764
|
-
domain:
|
|
764
|
+
domain: Oo,
|
|
765
765
|
args: O
|
|
766
766
|
});
|
|
767
767
|
n(x);
|
|
@@ -788,7 +788,7 @@ function wo(e = {}) {
|
|
|
788
788
|
}
|
|
789
789
|
function c(h, g) {
|
|
790
790
|
const N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(9, S, O);
|
|
791
|
-
return L.value = g.replace(
|
|
791
|
+
return L.value = g.replace(Io, Co), h.nextToken(), s(L, h.currentOffset(), h.currentPosition()), L;
|
|
792
792
|
}
|
|
793
793
|
function f(h) {
|
|
794
794
|
const g = h.nextToken(), N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(8, S, O);
|
|
@@ -881,7 +881,7 @@ function wo(e = {}) {
|
|
|
881
881
|
return g.currentType === 13 ? O : A(h, N, S, O);
|
|
882
882
|
}
|
|
883
883
|
function C(h) {
|
|
884
|
-
const g =
|
|
884
|
+
const g = To(h, ie({}, e)), N = g.context(), S = a(0, N.offset, N.startLoc);
|
|
885
885
|
return t && S.loc && (S.loc.source = h), S.body = E(g), e.onCacheKey && (S.cacheKey = e.onCacheKey(h)), N.currentType !== 13 && r(g, M.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, h[N.offset] || ""), s(S, g.currentOffset(), g.currentPosition()), S;
|
|
886
886
|
}
|
|
887
887
|
return { parse: C };
|
|
@@ -892,7 +892,7 @@ function ye(e) {
|
|
|
892
892
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
893
893
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function wo(e, t = {}) {
|
|
896
896
|
const n = {
|
|
897
897
|
ast: e,
|
|
898
898
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -944,8 +944,8 @@ function nr(e, t) {
|
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
const n =
|
|
947
|
+
function Do(e, t = {}) {
|
|
948
|
+
const n = wo(e);
|
|
949
949
|
n.helper(
|
|
950
950
|
"normalize"
|
|
951
951
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -953,7 +953,7 @@ function Ro(e, t = {}) {
|
|
|
953
953
|
const r = n.context();
|
|
954
954
|
e.helpers = Array.from(r.helpers);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Ro(e) {
|
|
957
957
|
const t = e.body;
|
|
958
958
|
return t.type === 2 ? Cr(t) : t.cases.forEach((n) => Cr(n)), e;
|
|
959
959
|
}
|
|
@@ -1032,8 +1032,8 @@ function st(e) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
delete e.type;
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1035
|
+
const Po = "parser";
|
|
1036
|
+
function Fo(e, t) {
|
|
1037
1037
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
1038
1038
|
filename: n,
|
|
1039
1039
|
code: "",
|
|
@@ -1075,14 +1075,14 @@ function Mo(e, t) {
|
|
|
1075
1075
|
needIndent: () => o.needIndent
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Mo(e, t) {
|
|
1079
1079
|
const { helper: n } = e;
|
|
1080
1080
|
e.push(`${n(
|
|
1081
1081
|
"linked"
|
|
1082
1082
|
/* HelperNameMap.LINKED */
|
|
1083
1083
|
)}(`), ct(e, t.key), t.modifier ? (e.push(", "), ct(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Uo(e, t) {
|
|
1086
1086
|
const { helper: n, needIndent: r } = e;
|
|
1087
1087
|
e.push(`${n(
|
|
1088
1088
|
"normalize"
|
|
@@ -1093,7 +1093,7 @@ function Bo(e, t) {
|
|
|
1093
1093
|
e.push(", ");
|
|
1094
1094
|
e.deindent(r()), e.push("])");
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Bo(e, t) {
|
|
1097
1097
|
const { helper: n, needIndent: r } = e;
|
|
1098
1098
|
if (t.cases.length > 1) {
|
|
1099
1099
|
e.push(`${n(
|
|
@@ -1106,23 +1106,23 @@ function xo(e, t) {
|
|
|
1106
1106
|
e.deindent(r()), e.push("])");
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function xo(e, t) {
|
|
1110
1110
|
t.body ? ct(e, t.body) : e.push("null");
|
|
1111
1111
|
}
|
|
1112
1112
|
function ct(e, t) {
|
|
1113
1113
|
const { helper: n } = e;
|
|
1114
1114
|
switch (t.type) {
|
|
1115
1115
|
case 0:
|
|
1116
|
-
|
|
1116
|
+
xo(e, t);
|
|
1117
1117
|
break;
|
|
1118
1118
|
case 1:
|
|
1119
|
-
|
|
1119
|
+
Bo(e, t);
|
|
1120
1120
|
break;
|
|
1121
1121
|
case 2:
|
|
1122
|
-
|
|
1122
|
+
Uo(e, t);
|
|
1123
1123
|
break;
|
|
1124
1124
|
case 6:
|
|
1125
|
-
|
|
1125
|
+
Mo(e, t);
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 8:
|
|
1128
1128
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1157,16 +1157,16 @@ function ct(e, t) {
|
|
|
1157
1157
|
default:
|
|
1158
1158
|
if (process.env.NODE_ENV !== "production")
|
|
1159
1159
|
throw ft(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1160
|
-
domain:
|
|
1160
|
+
domain: Po,
|
|
1161
1161
|
args: [t.type]
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const Vo = (e, t = {}) => {
|
|
1166
1166
|
const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
1167
1167
|
t.sourceMap;
|
|
1168
1168
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1169
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1169
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Fo(e, {
|
|
1170
1170
|
filename: r,
|
|
1171
1171
|
breakLineCode: a,
|
|
1172
1172
|
needIndent: s
|
|
@@ -1180,35 +1180,35 @@ const Go = (e, t = {}) => {
|
|
|
1180
1180
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1181
1181
|
};
|
|
1182
1182
|
};
|
|
1183
|
-
function
|
|
1184
|
-
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1185
|
-
return r ? (s &&
|
|
1183
|
+
function Go(e, t = {}) {
|
|
1184
|
+
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Lo(n).parse(e);
|
|
1185
|
+
return r ? (s && Ro(i), a && st(i), { ast: i, code: "" }) : (Do(i, n), Vo(i, n));
|
|
1186
1186
|
}
|
|
1187
1187
|
/*!
|
|
1188
1188
|
* core-base v11.1.3
|
|
1189
1189
|
* (c) 2025 kazuya kawaguchi
|
|
1190
1190
|
* Released under the MIT License.
|
|
1191
1191
|
*/
|
|
1192
|
-
function
|
|
1192
|
+
function $o() {
|
|
1193
1193
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1194
1194
|
}
|
|
1195
1195
|
function Ee(e) {
|
|
1196
1196
|
return G(e) && rr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
1197
1197
|
}
|
|
1198
1198
|
const Oa = ["b", "body"];
|
|
1199
|
-
function
|
|
1199
|
+
function Wo(e) {
|
|
1200
1200
|
return xe(e, Oa);
|
|
1201
1201
|
}
|
|
1202
1202
|
const Ia = ["c", "cases"];
|
|
1203
|
-
function
|
|
1203
|
+
function Yo(e) {
|
|
1204
1204
|
return xe(e, Ia, []);
|
|
1205
1205
|
}
|
|
1206
1206
|
const Ca = ["s", "static"];
|
|
1207
|
-
function
|
|
1207
|
+
function Ho(e) {
|
|
1208
1208
|
return xe(e, Ca);
|
|
1209
1209
|
}
|
|
1210
1210
|
const La = ["i", "items"];
|
|
1211
|
-
function
|
|
1211
|
+
function Ko(e) {
|
|
1212
1212
|
return xe(e, La, []);
|
|
1213
1213
|
}
|
|
1214
1214
|
const wa = ["t", "type"];
|
|
@@ -1223,12 +1223,12 @@ function xt(e, t) {
|
|
|
1223
1223
|
throw Ot(t);
|
|
1224
1224
|
}
|
|
1225
1225
|
const Ra = ["m", "modifier"];
|
|
1226
|
-
function
|
|
1226
|
+
function jo(e) {
|
|
1227
1227
|
return xe(e, Ra);
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1231
|
-
const t = xe(e,
|
|
1229
|
+
const ka = ["k", "key"];
|
|
1230
|
+
function qo(e) {
|
|
1231
|
+
const t = xe(e, ka);
|
|
1232
1232
|
if (t)
|
|
1233
1233
|
return t;
|
|
1234
1234
|
throw Ot(
|
|
@@ -1244,12 +1244,12 @@ function xe(e, t, n) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
return n;
|
|
1246
1246
|
}
|
|
1247
|
-
const
|
|
1247
|
+
const Pa = [
|
|
1248
1248
|
...Oa,
|
|
1249
1249
|
...Ia,
|
|
1250
1250
|
...Ca,
|
|
1251
1251
|
...La,
|
|
1252
|
-
...
|
|
1252
|
+
...ka,
|
|
1253
1253
|
...Ra,
|
|
1254
1254
|
...Da,
|
|
1255
1255
|
...wa
|
|
@@ -1258,17 +1258,17 @@ function Ot(e) {
|
|
|
1258
1258
|
return new Error(`unhandled node type: ${e}`);
|
|
1259
1259
|
}
|
|
1260
1260
|
function Sn(e) {
|
|
1261
|
-
return (n) =>
|
|
1261
|
+
return (n) => Xo(n, e);
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1263
|
+
function Xo(e, t) {
|
|
1264
|
+
const n = Wo(t);
|
|
1265
1265
|
if (n == null)
|
|
1266
1266
|
throw Ot(
|
|
1267
1267
|
0
|
|
1268
1268
|
/* NodeTypes.Resource */
|
|
1269
1269
|
);
|
|
1270
1270
|
if (rr(n) === 1) {
|
|
1271
|
-
const s =
|
|
1271
|
+
const s = Yo(n);
|
|
1272
1272
|
return e.plural(s.reduce((o, i) => [
|
|
1273
1273
|
...o,
|
|
1274
1274
|
Lr(e, i)
|
|
@@ -1277,15 +1277,15 @@ function Qo(e, t) {
|
|
|
1277
1277
|
return Lr(e, n);
|
|
1278
1278
|
}
|
|
1279
1279
|
function Lr(e, t) {
|
|
1280
|
-
const n =
|
|
1280
|
+
const n = Ho(t);
|
|
1281
1281
|
if (n != null)
|
|
1282
1282
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1283
1283
|
{
|
|
1284
|
-
const r =
|
|
1284
|
+
const r = Ko(t).reduce((a, s) => [...a, kn(e, s)], []);
|
|
1285
1285
|
return e.normalize(r);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function kn(e, t) {
|
|
1289
1289
|
const n = rr(t);
|
|
1290
1290
|
switch (n) {
|
|
1291
1291
|
case 3:
|
|
@@ -1309,8 +1309,8 @@ function Pn(e, t) {
|
|
|
1309
1309
|
throw Ot(n);
|
|
1310
1310
|
}
|
|
1311
1311
|
case 6: {
|
|
1312
|
-
const r = t, a =
|
|
1313
|
-
return e.linked(
|
|
1312
|
+
const r = t, a = jo(r), s = qo(r);
|
|
1313
|
+
return e.linked(kn(e, s), a ? kn(e, a) : void 0, e.type);
|
|
1314
1314
|
}
|
|
1315
1315
|
case 7:
|
|
1316
1316
|
return xt(t, n);
|
|
@@ -1320,28 +1320,28 @@ function Pn(e, t) {
|
|
|
1320
1320
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
t &&
|
|
1323
|
+
const Qo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1324
|
+
function Jo(e, t) {
|
|
1325
|
+
t && Eo(e) && (Xt(Qo, { source: e }), void 0);
|
|
1326
1326
|
}
|
|
1327
|
-
const
|
|
1327
|
+
const zo = (e) => e;
|
|
1328
1328
|
let Vt = K();
|
|
1329
|
-
function
|
|
1329
|
+
function Zo(e, t = {}) {
|
|
1330
1330
|
let n = !1;
|
|
1331
|
-
const r = t.onError ||
|
|
1331
|
+
const r = t.onError || go;
|
|
1332
1332
|
return t.onError = (a) => {
|
|
1333
1333
|
n = !0, r(a);
|
|
1334
|
-
}, {
|
|
1334
|
+
}, { ...Go(e, t), detectError: n };
|
|
1335
1335
|
}
|
|
1336
1336
|
// @__NO_SIDE_EFFECTS__
|
|
1337
|
-
function
|
|
1337
|
+
function ei(e, t) {
|
|
1338
1338
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1339
1339
|
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1340
|
-
process.env.NODE_ENV !== "production" &&
|
|
1341
|
-
const a = (t.onCacheKey ||
|
|
1340
|
+
process.env.NODE_ENV !== "production" && Jo(e, n);
|
|
1341
|
+
const a = (t.onCacheKey || zo)(e), s = Vt[a];
|
|
1342
1342
|
if (s)
|
|
1343
1343
|
return s;
|
|
1344
|
-
const { ast: o, detectError: i } =
|
|
1344
|
+
const { ast: o, detectError: i } = Zo(e, {
|
|
1345
1345
|
...t,
|
|
1346
1346
|
location: process.env.NODE_ENV !== "production",
|
|
1347
1347
|
jit: !0
|
|
@@ -1359,10 +1359,10 @@ function ti(e, t) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
let It = null;
|
|
1362
|
-
function
|
|
1362
|
+
function ti(e) {
|
|
1363
1363
|
It = e;
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function ni(e, t, n) {
|
|
1366
1366
|
It && It.emit("i18n:init", {
|
|
1367
1367
|
timestamp: Date.now(),
|
|
1368
1368
|
i18n: e,
|
|
@@ -1370,12 +1370,12 @@ function ri(e, t, n) {
|
|
|
1370
1370
|
meta: n
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1373
|
+
const ri = /* @__PURE__ */ ai("function:translate");
|
|
1374
|
+
function ai(e) {
|
|
1375
1375
|
return (t) => It && It.emit(e, t);
|
|
1376
1376
|
}
|
|
1377
1377
|
const le = {
|
|
1378
|
-
INVALID_ARGUMENT:
|
|
1378
|
+
INVALID_ARGUMENT: mo,
|
|
1379
1379
|
// 17
|
|
1380
1380
|
INVALID_DATE_ARGUMENT: 18,
|
|
1381
1381
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1383,11 +1383,11 @@ const le = {
|
|
|
1383
1383
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1384
1384
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1385
1385
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1386
|
-
},
|
|
1387
|
-
function
|
|
1388
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1386
|
+
}, si = 24;
|
|
1387
|
+
function we(e) {
|
|
1388
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: oi } : void 0);
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const oi = {
|
|
1391
1391
|
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1392
1392
|
[le.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1393
1393
|
[le.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1408,15 +1408,15 @@ function wr(e) {
|
|
|
1408
1408
|
return vn;
|
|
1409
1409
|
if (e.constructor.name === "Function") {
|
|
1410
1410
|
const t = e();
|
|
1411
|
-
if (
|
|
1412
|
-
throw
|
|
1411
|
+
if (lo(t))
|
|
1412
|
+
throw we(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1413
1413
|
return vn = t;
|
|
1414
1414
|
} else
|
|
1415
|
-
throw
|
|
1415
|
+
throw we(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1416
1416
|
} else
|
|
1417
|
-
throw
|
|
1417
|
+
throw we(le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function ii(e, t, n) {
|
|
1420
1420
|
return [.../* @__PURE__ */ new Set([
|
|
1421
1421
|
n,
|
|
1422
1422
|
...re(t) ? t : G(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
@@ -1440,20 +1440,20 @@ function Dr(e, t, n) {
|
|
|
1440
1440
|
let r = !0;
|
|
1441
1441
|
for (let a = 0; a < t.length && $(r); a++) {
|
|
1442
1442
|
const s = t[a];
|
|
1443
|
-
I(s) && (r =
|
|
1443
|
+
I(s) && (r = li(e, t[a], n));
|
|
1444
1444
|
}
|
|
1445
1445
|
return r;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function li(e, t, n) {
|
|
1448
1448
|
let r;
|
|
1449
1449
|
const a = t.split("-");
|
|
1450
1450
|
do {
|
|
1451
1451
|
const s = a.join("-");
|
|
1452
|
-
r =
|
|
1452
|
+
r = ci(e, s, n), a.splice(-1, 1);
|
|
1453
1453
|
} while (a.length && r === !0);
|
|
1454
1454
|
return r;
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function ci(e, t, n) {
|
|
1457
1457
|
let r = !1;
|
|
1458
1458
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1459
1459
|
r = t[t.length - 1] !== "!";
|
|
@@ -1623,15 +1623,15 @@ Ve[
|
|
|
1623
1623
|
/* Actions.APPEND */
|
|
1624
1624
|
]
|
|
1625
1625
|
};
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1626
|
+
const ui = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1627
|
+
function fi(e) {
|
|
1628
|
+
return ui.test(e);
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function _i(e) {
|
|
1631
1631
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1632
1632
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function di(e) {
|
|
1635
1635
|
if (e == null)
|
|
1636
1636
|
return "o";
|
|
1637
1637
|
switch (e.charCodeAt(0)) {
|
|
@@ -1668,11 +1668,11 @@ function mi(e) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return "i";
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function mi(e) {
|
|
1672
1672
|
const t = e.trim();
|
|
1673
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1673
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : fi(t) ? _i(t) : "*" + t;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function hi(e) {
|
|
1676
1676
|
const t = [];
|
|
1677
1677
|
let n = -1, r = 0, a = 0, s, o, i, l, c, f, u;
|
|
1678
1678
|
const m = [];
|
|
@@ -1704,7 +1704,7 @@ function gi(e) {
|
|
|
1704
1704
|
/* Actions.APPEND */
|
|
1705
1705
|
]();
|
|
1706
1706
|
else {
|
|
1707
|
-
if (a = 0, o === void 0 || (o =
|
|
1707
|
+
if (a = 0, o === void 0 || (o = mi(o), o === !1))
|
|
1708
1708
|
return !1;
|
|
1709
1709
|
m[
|
|
1710
1710
|
1
|
|
@@ -1722,27 +1722,27 @@ function gi(e) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
for (; r !== null; )
|
|
1724
1724
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1725
|
-
if (l =
|
|
1725
|
+
if (l = di(s), u = Ve[r], c = u[l] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = m[c[1]], f && (i = s, f() === !1))))
|
|
1726
1726
|
return;
|
|
1727
1727
|
if (r === 7)
|
|
1728
1728
|
return t;
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
const Rr = /* @__PURE__ */ new Map();
|
|
1732
|
-
function
|
|
1732
|
+
function gi(e, t) {
|
|
1733
1733
|
return G(e) ? e[t] : null;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function pi(e, t) {
|
|
1736
1736
|
if (!G(e))
|
|
1737
1737
|
return null;
|
|
1738
1738
|
let n = Rr.get(t);
|
|
1739
|
-
if (n || (n =
|
|
1739
|
+
if (n || (n = hi(t), n && Rr.set(t, n)), !n)
|
|
1740
1740
|
return null;
|
|
1741
1741
|
const r = n.length;
|
|
1742
1742
|
let a = e, s = 0;
|
|
1743
1743
|
for (; s < r; ) {
|
|
1744
1744
|
const o = n[s];
|
|
1745
|
-
if (
|
|
1745
|
+
if (Pa.includes(o) && Ee(a))
|
|
1746
1746
|
return null;
|
|
1747
1747
|
const i = a[o];
|
|
1748
1748
|
if (i === void 0 || q(a))
|
|
@@ -1759,7 +1759,7 @@ const _e = {
|
|
|
1759
1759
|
CANNOT_FORMAT_DATE: 5,
|
|
1760
1760
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1761
1761
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1762
|
-
},
|
|
1762
|
+
}, Ei = 8, bi = {
|
|
1763
1763
|
[_e.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1764
1764
|
[_e.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1765
1765
|
[_e.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1769,41 +1769,41 @@ const _e = {
|
|
|
1769
1769
|
[_e.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."
|
|
1770
1770
|
};
|
|
1771
1771
|
function Je(e, ...t) {
|
|
1772
|
-
return Xt(
|
|
1772
|
+
return Xt(bi[e], ...t);
|
|
1773
1773
|
}
|
|
1774
|
-
const
|
|
1775
|
-
function
|
|
1774
|
+
const Si = "11.1.3", Jt = -1, Ct = "en-US", Ht = "", kr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1775
|
+
function vi() {
|
|
1776
1776
|
return {
|
|
1777
1777
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1778
1778
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1779
|
-
capitalize: (e, t) => t === "text" && I(e) ?
|
|
1779
|
+
capitalize: (e, t) => t === "text" && I(e) ? kr(e) : t === "vnode" && G(e) && "__v_isVNode" in e ? kr(e.children) : e
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
let Ma;
|
|
1783
|
-
function
|
|
1783
|
+
function Ai(e) {
|
|
1784
1784
|
Ma = e;
|
|
1785
1785
|
}
|
|
1786
1786
|
let Ua;
|
|
1787
|
-
function
|
|
1787
|
+
function yi(e) {
|
|
1788
1788
|
Ua = e;
|
|
1789
1789
|
}
|
|
1790
1790
|
let Ba;
|
|
1791
|
-
function
|
|
1791
|
+
function Ni(e) {
|
|
1792
1792
|
Ba = e;
|
|
1793
1793
|
}
|
|
1794
1794
|
let xa = null;
|
|
1795
|
-
const
|
|
1795
|
+
const Ti = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1796
1796
|
xa = e;
|
|
1797
|
-
},
|
|
1797
|
+
}, Oi = /* @__NO_SIDE_EFFECTS__ */ () => xa;
|
|
1798
1798
|
let Va = null;
|
|
1799
|
-
const
|
|
1799
|
+
const Pr = (e) => {
|
|
1800
1800
|
Va = e;
|
|
1801
|
-
},
|
|
1801
|
+
}, Ii = () => Va;
|
|
1802
1802
|
let Fr = 0;
|
|
1803
|
-
function
|
|
1804
|
-
const t = q(e.onWarn) ? e.onWarn :
|
|
1803
|
+
function Ci(e = {}) {
|
|
1804
|
+
const t = q(e.onWarn) ? e.onWarn : fo, n = I(e.version) ? e.version : Si, r = I(e.locale) || q(e.locale) ? e.locale : Ct, a = q(r) ? Ct : r, s = re(e.fallbackLocale) || V(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : An(a), i = V(e.datetimeFormats) ? e.datetimeFormats : An(a), l = V(e.numberFormats) ? e.numberFormats : An(a), c = ie(K(), e.modifiers, vi()), f = e.pluralRules || K(), u = q(e.missing) ? e.missing : null, m = $(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, p = $(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, E = !!e.unresolving, C = q(e.postTranslation) ? e.postTranslation : null, h = V(e.processor) ? e.processor : null, g = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, S = q(e.messageCompiler) ? e.messageCompiler : Ma;
|
|
1805
1805
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1806
|
-
const O = q(e.messageResolver) ? e.messageResolver : Ua ||
|
|
1806
|
+
const O = q(e.messageResolver) ? e.messageResolver : Ua || gi, L = q(e.localeFallbacker) ? e.localeFallbacker : Ba || ii, v = G(e.fallbackContext) ? e.fallbackContext : void 0, x = e, Y = G(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), se = G(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), Se = G(x.__meta) ? x.__meta : {};
|
|
1807
1807
|
Fr++;
|
|
1808
1808
|
const oe = {
|
|
1809
1809
|
version: n,
|
|
@@ -1829,7 +1829,7 @@ function Li(e = {}) {
|
|
|
1829
1829
|
onWarn: t,
|
|
1830
1830
|
__meta: Se
|
|
1831
1831
|
};
|
|
1832
|
-
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1832
|
+
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ni(oe, n, Se), oe;
|
|
1833
1833
|
}
|
|
1834
1834
|
const An = (e) => ({ [e]: K() });
|
|
1835
1835
|
function zt(e, t) {
|
|
@@ -1862,7 +1862,7 @@ function pt(e, t, n) {
|
|
|
1862
1862
|
function $a(e, t) {
|
|
1863
1863
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function Li(e, t) {
|
|
1866
1866
|
const n = t.indexOf(e);
|
|
1867
1867
|
if (n === -1)
|
|
1868
1868
|
return !1;
|
|
@@ -1879,7 +1879,7 @@ function Ur(e, ...t) {
|
|
|
1879
1879
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1880
1880
|
if (process.env.NODE_ENV !== "production" && !Wa.dateTimeFormat)
|
|
1881
1881
|
return s(Je(_e.CANNOT_FORMAT_DATE)), Ht;
|
|
1882
|
-
const [l, c, f, u] =
|
|
1882
|
+
const [l, c, f, u] = Pn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
1883
1883
|
e,
|
|
1884
1884
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1885
1885
|
a,
|
|
@@ -1936,28 +1936,28 @@ const Ya = [
|
|
|
1936
1936
|
"hourCycle",
|
|
1937
1937
|
"fractionalSecondDigits"
|
|
1938
1938
|
];
|
|
1939
|
-
function
|
|
1939
|
+
function Pn(...e) {
|
|
1940
1940
|
const [t, n, r, a] = e, s = K();
|
|
1941
1941
|
let o = K(), i;
|
|
1942
1942
|
if (I(t)) {
|
|
1943
1943
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1944
1944
|
if (!l)
|
|
1945
|
-
throw
|
|
1945
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1946
1946
|
const c = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
1947
1947
|
i = new Date(c);
|
|
1948
1948
|
try {
|
|
1949
1949
|
i.toISOString();
|
|
1950
1950
|
} catch {
|
|
1951
|
-
throw
|
|
1951
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1952
1952
|
}
|
|
1953
|
-
} else if (
|
|
1953
|
+
} else if (so(t)) {
|
|
1954
1954
|
if (isNaN(t.getTime()))
|
|
1955
|
-
throw
|
|
1955
|
+
throw we(le.INVALID_DATE_ARGUMENT);
|
|
1956
1956
|
i = t;
|
|
1957
1957
|
} else if (ae(t))
|
|
1958
1958
|
i = t;
|
|
1959
1959
|
else
|
|
1960
|
-
throw
|
|
1960
|
+
throw we(le.INVALID_ARGUMENT);
|
|
1961
1961
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
1962
1962
|
Ya.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
1963
1963
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
@@ -2034,7 +2034,7 @@ function Fn(...e) {
|
|
|
2034
2034
|
const [t, n, r, a] = e, s = K();
|
|
2035
2035
|
let o = K();
|
|
2036
2036
|
if (!ae(t))
|
|
2037
|
-
throw
|
|
2037
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2038
2038
|
const i = t;
|
|
2039
2039
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2040
2040
|
Ha.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
@@ -2047,26 +2047,26 @@ function Vr(e, t, n) {
|
|
|
2047
2047
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
const
|
|
2050
|
+
const wi = (e) => e, Di = (e) => "", Ri = "text", ki = (e) => e.length === 0 ? "" : Zn(e), Pi = co;
|
|
2051
2051
|
function Gr(e, t) {
|
|
2052
2052
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Fi(e) {
|
|
2055
2055
|
const t = ae(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2056
2056
|
return e.named && (ae(e.named.count) || ae(e.named.n)) ? ae(e.named.count) ? e.named.count : ae(e.named.n) ? e.named.n : t : t;
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Mi(e, t) {
|
|
2059
2059
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const t = e.locale, n =
|
|
2063
|
-
ae(e.pluralIndex) &&
|
|
2061
|
+
function Ui(e = {}) {
|
|
2062
|
+
const t = e.locale, n = Fi(e), r = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? e.pluralRules[t] : Gr, a = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? Gr : void 0, s = (h) => h[r(n, h.length, a)], o = e.list || [], i = (h) => o[h], l = e.named || K();
|
|
2063
|
+
ae(e.pluralIndex) && Mi(n, l);
|
|
2064
2064
|
const c = (h) => l[h];
|
|
2065
2065
|
function f(h, g) {
|
|
2066
2066
|
const N = q(e.messages) ? e.messages(h, !!g) : G(e.messages) ? e.messages[h] : !1;
|
|
2067
|
-
return N || (e.parent ? e.parent.message(h) :
|
|
2067
|
+
return N || (e.parent ? e.parent.message(h) : Di);
|
|
2068
2068
|
}
|
|
2069
|
-
const u = (h) => e.modifiers ? e.modifiers[h] :
|
|
2069
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : wi, m = V(e.processor) && q(e.processor.normalize) ? e.processor.normalize : ki, p = V(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Pi, A = V(e.processor) && I(e.processor.type) ? e.processor.type : Ri, C = {
|
|
2070
2070
|
list: i,
|
|
2071
2071
|
named: c,
|
|
2072
2072
|
plural: s,
|
|
@@ -2091,7 +2091,7 @@ function Bi(e = {}) {
|
|
|
2091
2091
|
const $r = () => "", pe = (e) => q(e);
|
|
2092
2092
|
function Wr(e, ...t) {
|
|
2093
2093
|
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [l, c] = Mn(...t), f = $(c.missingWarn) ? c.missingWarn : e.missingWarn, u = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, A = I(c.default) || $(c.default) ? $(c.default) ? s ? l : () => l : c.default : n ? s ? l : () => l : null, E = n || A != null && (I(A) || q(A)), C = ar(e, c);
|
|
2094
|
-
m &&
|
|
2094
|
+
m && Bi(c);
|
|
2095
2095
|
let [h, g, N] = p ? [
|
|
2096
2096
|
l,
|
|
2097
2097
|
C,
|
|
@@ -2107,7 +2107,7 @@ function Wr(e, ...t) {
|
|
|
2107
2107
|
}, x = pe(S) ? S : ja(e, l, g, S, O, v);
|
|
2108
2108
|
if (L)
|
|
2109
2109
|
return S;
|
|
2110
|
-
const Y =
|
|
2110
|
+
const Y = $i(e, g, N, c), se = Ui(Y), Se = xi(e, x, se), oe = r ? r(Se, l) : Se;
|
|
2111
2111
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2112
2112
|
const Ze = {
|
|
2113
2113
|
timestamp: Date.now(),
|
|
@@ -2116,11 +2116,11 @@ function Wr(e, ...t) {
|
|
|
2116
2116
|
format: I(S) ? S : pe(S) ? S.source : "",
|
|
2117
2117
|
message: oe
|
|
2118
2118
|
};
|
|
2119
|
-
Ze.meta = ie({}, e.__meta, /* @__PURE__ */
|
|
2119
|
+
Ze.meta = ie({}, e.__meta, /* @__PURE__ */ Oi() || {}), ri(Ze);
|
|
2120
2120
|
}
|
|
2121
2121
|
return oe;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Bi(e) {
|
|
2124
2124
|
re(e.list) ? e.list = e.list.map((t) => I(t) ? yr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2125
2125
|
I(e.named[t]) && (e.named[t] = yr(e.named[t]));
|
|
2126
2126
|
});
|
|
@@ -2157,7 +2157,7 @@ function Ka(e, t, n, r, a, s) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
if (I(p) || Ee(p) || pe(p))
|
|
2159
2159
|
break;
|
|
2160
|
-
if (!
|
|
2160
|
+
if (!Li(m, f)) {
|
|
2161
2161
|
const O = sr(
|
|
2162
2162
|
e,
|
|
2163
2163
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2184,7 +2184,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
let l = null, c, f;
|
|
2186
2186
|
process.env.NODE_ENV !== "production" && Ae && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ge && ge(c));
|
|
2187
|
-
const u = o(r,
|
|
2187
|
+
const u = o(r, Vi(e, n, a, r, i, s));
|
|
2188
2188
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
2189
2189
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
2190
2190
|
p && l && p.emit("message-compilation", {
|
|
@@ -2196,7 +2196,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function xi(e, t, n) {
|
|
2200
2200
|
let r = null, a, s;
|
|
2201
2201
|
process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
2202
2202
|
const o = t(n);
|
|
@@ -2214,18 +2214,18 @@ function Vi(e, t, n) {
|
|
|
2214
2214
|
function Mn(...e) {
|
|
2215
2215
|
const [t, n, r] = e, a = K();
|
|
2216
2216
|
if (!I(t) && !ae(t) && !pe(t) && !Ee(t))
|
|
2217
|
-
throw
|
|
2217
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2218
2218
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
2219
2219
|
return ae(n) ? a.plural = n : I(n) ? a.default = n : V(n) && !Qt(n) ? a.named = n : re(n) && (a.list = n), ae(r) ? a.plural = r : I(r) ? a.default = r : V(r) && ie(a, r), [s, a];
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function Vi(e, t, n, r, a, s) {
|
|
2222
2222
|
return {
|
|
2223
2223
|
locale: t,
|
|
2224
2224
|
key: n,
|
|
2225
2225
|
warnHtmlMessage: a,
|
|
2226
2226
|
onError: (o) => {
|
|
2227
2227
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2228
|
-
const i =
|
|
2228
|
+
const i = Gi(r), l = `Message compilation error: ${o.message}`, c = o.location && i && uo(i, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2229
2229
|
f && i && f.emit("compile-error", {
|
|
2230
2230
|
message: i,
|
|
2231
2231
|
error: o.message,
|
|
@@ -2236,16 +2236,16 @@ function Gi(e, t, n, r, a, s) {
|
|
|
2236
2236
|
} else
|
|
2237
2237
|
throw o;
|
|
2238
2238
|
},
|
|
2239
|
-
onCacheKey: (o) =>
|
|
2239
|
+
onCacheKey: (o) => ro(t, n, o)
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function Gi(e) {
|
|
2243
2243
|
if (I(e))
|
|
2244
2244
|
return e;
|
|
2245
2245
|
if (e.loc && e.loc.source)
|
|
2246
2246
|
return e.loc.source;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function $i(e, t, n, r) {
|
|
2249
2249
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: l, missingWarn: c, fallbackContext: f } = e, m = {
|
|
2250
2250
|
locale: t,
|
|
2251
2251
|
modifiers: a,
|
|
@@ -2275,23 +2275,23 @@ function Wi(e, t, n, r) {
|
|
|
2275
2275
|
};
|
|
2276
2276
|
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), ae(r.plural) && (m.pluralIndex = r.plural), m;
|
|
2277
2277
|
}
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2278
|
+
$o();
|
|
2279
|
+
function Wi() {
|
|
2280
2280
|
return qa().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2281
2281
|
}
|
|
2282
2282
|
function qa() {
|
|
2283
2283
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2284
2284
|
}
|
|
2285
|
-
const
|
|
2285
|
+
const Yi = typeof Proxy == "function", Hi = "devtools-plugin:setup", Ki = "plugin:settings:set";
|
|
2286
2286
|
let tt, Un;
|
|
2287
|
-
function
|
|
2287
|
+
function ji() {
|
|
2288
2288
|
var e;
|
|
2289
2289
|
return tt !== void 0 || (typeof window < "u" && window.performance ? (tt = !0, Un = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (tt = !0, Un = globalThis.perf_hooks.performance) : tt = !1), tt;
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2291
|
+
function qi() {
|
|
2292
|
+
return ji() ? Un.now() : Date.now();
|
|
2293
2293
|
}
|
|
2294
|
-
class
|
|
2294
|
+
class Xi {
|
|
2295
2295
|
constructor(t, n) {
|
|
2296
2296
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2297
2297
|
const r = {};
|
|
@@ -2319,9 +2319,9 @@ class Qi {
|
|
|
2319
2319
|
s = o;
|
|
2320
2320
|
},
|
|
2321
2321
|
now() {
|
|
2322
|
-
return
|
|
2322
|
+
return qi();
|
|
2323
2323
|
}
|
|
2324
|
-
}, n && n.on(
|
|
2324
|
+
}, n && n.on(Ki, (o, i) => {
|
|
2325
2325
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2326
2326
|
}), this.proxiedOn = new Proxy({}, {
|
|
2327
2327
|
get: (o, i) => this.target ? this.target.on[i] : (...l) => {
|
|
@@ -2353,12 +2353,12 @@ class Qi {
|
|
|
2353
2353
|
n.resolve(await this.target[n.method](...n.args));
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const n = e, r = qa(), a =
|
|
2356
|
+
function Qi(e, t) {
|
|
2357
|
+
const n = e, r = qa(), a = Wi(), s = Yi && n.enableEarlyProxy;
|
|
2358
2358
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2359
|
-
a.emit(
|
|
2359
|
+
a.emit(Hi, e, t);
|
|
2360
2360
|
else {
|
|
2361
|
-
const o = s ? new
|
|
2361
|
+
const o = s ? new Xi(n, a) : null;
|
|
2362
2362
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2363
2363
|
pluginDescriptor: n,
|
|
2364
2364
|
setupFn: t,
|
|
@@ -2371,13 +2371,13 @@ function Ji(e, t) {
|
|
|
2371
2371
|
* (c) 2025 kazuya kawaguchi
|
|
2372
2372
|
* Released under the MIT License.
|
|
2373
2373
|
*/
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2374
|
+
const Ji = "11.1.3";
|
|
2375
|
+
function zi() {
|
|
2376
2376
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2377
2377
|
}
|
|
2378
2378
|
const X = {
|
|
2379
2379
|
// composer module errors
|
|
2380
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2380
|
+
UNEXPECTED_RETURN_TYPE: si,
|
|
2381
2381
|
// 24
|
|
2382
2382
|
// legacy module errors
|
|
2383
2383
|
INVALID_ARGUMENT: 25,
|
|
@@ -2398,9 +2398,9 @@ const X = {
|
|
|
2398
2398
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2399
2399
|
};
|
|
2400
2400
|
function de(e, ...t) {
|
|
2401
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2401
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: Zi, args: t } : void 0);
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2403
|
+
const Zi = {
|
|
2404
2404
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2405
2405
|
[X.INVALID_ARGUMENT]: "Invalid argument",
|
|
2406
2406
|
[X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2413,7 +2413,7 @@ const el = {
|
|
|
2413
2413
|
[X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2414
2414
|
[X.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2415
2415
|
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), Xa = Oe("__setPluralRules"), Qa = /* @__PURE__ */ Oe("__injectWithOption"), Gn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
2416
|
-
FALLBACK_TO_ROOT:
|
|
2416
|
+
FALLBACK_TO_ROOT: Ei,
|
|
2417
2417
|
// 8
|
|
2418
2418
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2419
2419
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2425,7 +2425,7 @@ const el = {
|
|
|
2425
2425
|
* @deprecated will be removed at vue-i18n v12
|
|
2426
2426
|
*/
|
|
2427
2427
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2428
|
-
},
|
|
2428
|
+
}, el = {
|
|
2429
2429
|
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2430
2430
|
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2431
2431
|
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2440,7 +2440,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2440
2440
|
[Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2441
2441
|
};
|
|
2442
2442
|
function Rt(e, ...t) {
|
|
2443
|
-
return Xt(
|
|
2443
|
+
return Xt(el[e], ...t);
|
|
2444
2444
|
}
|
|
2445
2445
|
function wt(e) {
|
|
2446
2446
|
if (!G(e) || Ee(e))
|
|
@@ -2463,7 +2463,7 @@ function wt(e) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
a = a[n[o]];
|
|
2465
2465
|
}
|
|
2466
|
-
if (s || (Ee(a) ?
|
|
2466
|
+
if (s || (Ee(a) ? Pa.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !Ee(a)) {
|
|
2467
2467
|
const o = a[n[r]];
|
|
2468
2468
|
G(o) && wt(o);
|
|
2469
2469
|
}
|
|
@@ -2512,20 +2512,20 @@ function za(e, t, n) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
function Yr(e) {
|
|
2515
|
-
return w(
|
|
2515
|
+
return w(Bs, null, e, 0);
|
|
2516
2516
|
}
|
|
2517
|
-
const Hr = "__INTLIFY_META__", Kr = () => [],
|
|
2517
|
+
const Hr = "__INTLIFY_META__", Kr = () => [], tl = () => !1;
|
|
2518
2518
|
let jr = 0;
|
|
2519
2519
|
function qr(e) {
|
|
2520
2520
|
return (t, n, r, a) => e(n, r, yt() || void 0, a);
|
|
2521
2521
|
}
|
|
2522
|
-
const
|
|
2522
|
+
const nl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2523
2523
|
const e = yt();
|
|
2524
2524
|
let t = null;
|
|
2525
2525
|
return e && (t = Ja(e)[Hr]) ? { [Hr]: t } : null;
|
|
2526
2526
|
};
|
|
2527
2527
|
function ir(e = {}) {
|
|
2528
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ?
|
|
2528
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ? Rs : ks;
|
|
2529
2529
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2530
2530
|
const i = s(
|
|
2531
2531
|
// prettier-ignore
|
|
@@ -2538,9 +2538,9 @@ function ir(e = {}) {
|
|
|
2538
2538
|
const O = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2539
2539
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2540
2540
|
v = (() => {
|
|
2541
|
-
r &&
|
|
2541
|
+
r && Pr(null);
|
|
2542
2542
|
const b = {
|
|
2543
|
-
version:
|
|
2543
|
+
version: Ji,
|
|
2544
2544
|
locale: i.value,
|
|
2545
2545
|
fallbackLocale: l.value,
|
|
2546
2546
|
messages: c.value,
|
|
@@ -2559,8 +2559,8 @@ function ir(e = {}) {
|
|
|
2559
2559
|
__meta: { framework: "vue" }
|
|
2560
2560
|
};
|
|
2561
2561
|
b.datetimeFormats = f.value, b.numberFormats = u.value, b.__datetimeFormatters = V(v) ? v.__datetimeFormatters : void 0, b.__numberFormatters = V(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = V(v) ? v.__v_emitter : void 0);
|
|
2562
|
-
const T =
|
|
2563
|
-
return r &&
|
|
2562
|
+
const T = Ci(b);
|
|
2563
|
+
return r && Pr(T), T;
|
|
2564
2564
|
})(), pt(v, i.value, l.value);
|
|
2565
2565
|
function Y() {
|
|
2566
2566
|
return [
|
|
@@ -2601,14 +2601,14 @@ function ir(e = {}) {
|
|
|
2601
2601
|
Y();
|
|
2602
2602
|
let et;
|
|
2603
2603
|
try {
|
|
2604
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ?
|
|
2604
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? Ii() : void 0), et = b(v);
|
|
2605
2605
|
} finally {
|
|
2606
2606
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2609
2609
|
ae(et) && et === Jt || H === "translate exists" && !et) {
|
|
2610
|
-
const [Ye,
|
|
2611
|
-
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H,
|
|
2610
|
+
const [Ye, ws] = T();
|
|
2611
|
+
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H, ws) && (A && (zt(p, Ye) || Ga(m, Ye)) && (Rt(Ne.FALLBACK_TO_ROOT, {
|
|
2612
2612
|
key: Ye,
|
|
2613
2613
|
type: H
|
|
2614
2614
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -2637,7 +2637,7 @@ function ir(e = {}) {
|
|
|
2637
2637
|
return _t(T, H, ie({ resolvedMessage: !0 }, ee || {}));
|
|
2638
2638
|
}
|
|
2639
2639
|
function fn(...b) {
|
|
2640
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2640
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => Reflect.apply(T.d, T, [...b]), () => Ht, (T) => I(T));
|
|
2641
2641
|
}
|
|
2642
2642
|
function _n(...b) {
|
|
2643
2643
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => Reflect.apply(T.n, T, [...b]), () => Ht, (T) => I(T));
|
|
@@ -2666,7 +2666,7 @@ function ir(e = {}) {
|
|
|
2666
2666
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => T[Vn](...b), Kr, (T) => I(T) || re(T));
|
|
2667
2667
|
}
|
|
2668
2668
|
function gn(...b) {
|
|
2669
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2669
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => T[xn](...b), Kr, (T) => I(T) || re(T));
|
|
2670
2670
|
}
|
|
2671
2671
|
function pn(b) {
|
|
2672
2672
|
L = b, v.pluralRules = L;
|
|
@@ -2677,7 +2677,7 @@ function ir(e = {}) {
|
|
|
2677
2677
|
return !1;
|
|
2678
2678
|
const H = I(T) ? T : i.value, ee = $e(H), We = v.messageResolver(ee, b);
|
|
2679
2679
|
return Ee(We) || pe(We) || I(We);
|
|
2680
|
-
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]),
|
|
2680
|
+
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), tl, (H) => $(H));
|
|
2681
2681
|
}
|
|
2682
2682
|
function dt(b) {
|
|
2683
2683
|
let T = null;
|
|
@@ -2724,7 +2724,7 @@ function ir(e = {}) {
|
|
|
2724
2724
|
function y(b, T) {
|
|
2725
2725
|
f.value[b] = ie(f.value[b] || {}, T), v.datetimeFormats = f.value, Br(v, b, T);
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function k(b) {
|
|
2728
2728
|
return u.value[b] || {};
|
|
2729
2729
|
}
|
|
2730
2730
|
function z(b, T) {
|
|
@@ -2807,7 +2807,7 @@ function ir(e = {}) {
|
|
|
2807
2807
|
setMissingHandler: ln,
|
|
2808
2808
|
[Xa]: pn
|
|
2809
2809
|
};
|
|
2810
|
-
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = mt, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat =
|
|
2810
|
+
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = mt, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat = k, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[Qa] = n, W[Bn] = Ft, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2811
2811
|
v.__v_emitter = b;
|
|
2812
2812
|
}, W[Lt] = () => {
|
|
2813
2813
|
v.__v_emitter = void 0;
|
|
@@ -2817,16 +2817,16 @@ const Za = "vue-i18n: composer properties", yn = {
|
|
|
2817
2817
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2818
2818
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2819
2819
|
"vue-i18n-timeline": "Vue I18n"
|
|
2820
|
-
},
|
|
2820
|
+
}, rl = {
|
|
2821
2821
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2822
|
-
},
|
|
2822
|
+
}, al = {
|
|
2823
2823
|
"vue-i18n-timeline": 16764185
|
|
2824
2824
|
};
|
|
2825
2825
|
let $n;
|
|
2826
|
-
async function
|
|
2826
|
+
async function sl(e, t) {
|
|
2827
2827
|
return new Promise((n, r) => {
|
|
2828
2828
|
try {
|
|
2829
|
-
|
|
2829
|
+
Qi({
|
|
2830
2830
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2831
2831
|
label: yn["vue-devtools-plugin-vue-i18n"],
|
|
2832
2832
|
packageName: "vue-i18n",
|
|
@@ -2837,36 +2837,36 @@ async function ol(e, t) {
|
|
|
2837
2837
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2838
2838
|
}, (a) => {
|
|
2839
2839
|
$n = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2840
|
-
|
|
2840
|
+
ol(o, i, t);
|
|
2841
2841
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2842
2842
|
o.vnode.el && o.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && Xr(i, o.vnode.el.__VUE_I18N__) : Xr(i, o.vnode.el.__VUE_I18N__));
|
|
2843
2843
|
}), a.addInspector({
|
|
2844
2844
|
id: "vue-i18n-resource-inspector",
|
|
2845
2845
|
label: yn["vue-i18n-resource-inspector"],
|
|
2846
2846
|
icon: "language",
|
|
2847
|
-
treeFilterPlaceholder:
|
|
2847
|
+
treeFilterPlaceholder: rl["vue-i18n-resource-inspector"]
|
|
2848
2848
|
}), a.on.getInspectorTree((o) => {
|
|
2849
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2849
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && fl(o, t);
|
|
2850
2850
|
});
|
|
2851
2851
|
const s = /* @__PURE__ */ new Map();
|
|
2852
2852
|
a.on.getInspectorState(async (o) => {
|
|
2853
2853
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2854
|
-
if (a.unhighlightElement(),
|
|
2854
|
+
if (a.unhighlightElement(), dl(o, t), o.nodeId === "global") {
|
|
2855
2855
|
if (!s.has(o.app)) {
|
|
2856
2856
|
const [i] = await a.getComponentInstances(o.app);
|
|
2857
2857
|
s.set(o.app, i);
|
|
2858
2858
|
}
|
|
2859
2859
|
a.highlightElement(s.get(o.app));
|
|
2860
2860
|
} else {
|
|
2861
|
-
const i =
|
|
2861
|
+
const i = _l(o.nodeId, t);
|
|
2862
2862
|
i && a.highlightElement(i);
|
|
2863
2863
|
}
|
|
2864
2864
|
}), a.on.editInspectorState((o) => {
|
|
2865
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2865
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && hl(o, t);
|
|
2866
2866
|
}), a.addTimelineLayer({
|
|
2867
2867
|
id: "vue-i18n-timeline",
|
|
2868
2868
|
label: yn["vue-i18n-timeline"],
|
|
2869
|
-
color:
|
|
2869
|
+
color: al["vue-i18n-timeline"]
|
|
2870
2870
|
}), n(!0);
|
|
2871
2871
|
});
|
|
2872
2872
|
} catch {
|
|
@@ -2877,7 +2877,7 @@ async function ol(e, t) {
|
|
|
2877
2877
|
function es(e) {
|
|
2878
2878
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function ol(e, t, n) {
|
|
2881
2881
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2882
2882
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2883
2883
|
const a = {
|
|
@@ -2931,30 +2931,30 @@ function lr(e) {
|
|
|
2931
2931
|
const t = {};
|
|
2932
2932
|
return Object.keys(e).forEach((n) => {
|
|
2933
2933
|
const r = e[n];
|
|
2934
|
-
q(r) && "source" in r ? t[n] =
|
|
2934
|
+
q(r) && "source" in r ? t[n] = ul(r) : Ee(r) && r.loc && r.loc.source ? t[n] = r.loc.source : G(r) ? t[n] = lr(r) : t[n] = r;
|
|
2935
2935
|
}), t;
|
|
2936
2936
|
}
|
|
2937
|
-
const
|
|
2937
|
+
const il = {
|
|
2938
2938
|
"<": "<",
|
|
2939
2939
|
">": ">",
|
|
2940
2940
|
'"': """,
|
|
2941
2941
|
"&": "&"
|
|
2942
2942
|
};
|
|
2943
|
+
function ll(e) {
|
|
2944
|
+
return e.replace(/[<>"&]/g, cl);
|
|
2945
|
+
}
|
|
2943
2946
|
function cl(e) {
|
|
2944
|
-
return e
|
|
2947
|
+
return il[e] || e;
|
|
2945
2948
|
}
|
|
2946
2949
|
function ul(e) {
|
|
2947
|
-
return ll[e] || e;
|
|
2948
|
-
}
|
|
2949
|
-
function fl(e) {
|
|
2950
2950
|
return {
|
|
2951
2951
|
_custom: {
|
|
2952
2952
|
type: "function",
|
|
2953
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2953
|
+
display: `<span>ƒ</span> ${e.source ? `("${ll(e.source)}")` : "(?)"}`
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
}
|
|
2957
|
-
function
|
|
2957
|
+
function fl(e, t) {
|
|
2958
2958
|
e.rootNodes.push({
|
|
2959
2959
|
id: "global",
|
|
2960
2960
|
label: "Global Scope"
|
|
@@ -2968,7 +2968,7 @@ function _l(e, t) {
|
|
|
2968
2968
|
});
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
function
|
|
2971
|
+
function _l(e, t) {
|
|
2972
2972
|
let n = null;
|
|
2973
2973
|
if (e !== "global") {
|
|
2974
2974
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2987,11 +2987,11 @@ function ts(e, t) {
|
|
|
2987
2987
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function dl(e, t) {
|
|
2991
2991
|
const n = ts(e.nodeId, t);
|
|
2992
|
-
return n && (e.state =
|
|
2992
|
+
return n && (e.state = ml(n)), null;
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2994
|
+
function ml(e) {
|
|
2995
2995
|
const t = {}, n = "Locale related info", r = [
|
|
2996
2996
|
{
|
|
2997
2997
|
type: n,
|
|
@@ -3066,14 +3066,14 @@ function Dt(e, t) {
|
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function hl(e, t) {
|
|
3070
3070
|
const n = ts(e.nodeId, t);
|
|
3071
3071
|
if (n) {
|
|
3072
3072
|
const [r] = e.path;
|
|
3073
3073
|
r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || re(e.state.value) || G(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && $(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3076
|
+
function gl(e) {
|
|
3077
3077
|
const t = I(e.locale) ? e.locale : Ct, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = $(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = $(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = q(e.postTranslation) ? e.postTranslation : void 0, u = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, p = $(e.sync) ? e.sync : !0;
|
|
3078
3078
|
let A = e.messages;
|
|
3079
3079
|
if (V(e.sharedMessages)) {
|
|
@@ -3109,7 +3109,7 @@ function pl(e) {
|
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
3111
|
function Wn(e = {}) {
|
|
3112
|
-
const t = ir(
|
|
3112
|
+
const t = ir(gl(e)), { __extender: n } = e, r = {
|
|
3113
3113
|
// id
|
|
3114
3114
|
id: t.id,
|
|
3115
3115
|
// locale
|
|
@@ -3277,7 +3277,7 @@ function Wn(e = {}) {
|
|
|
3277
3277
|
a[Lt] && a[Lt]();
|
|
3278
3278
|
}), r;
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function pl(e, t, n) {
|
|
3281
3281
|
return {
|
|
3282
3282
|
beforeCreate() {
|
|
3283
3283
|
const r = yt();
|
|
@@ -3353,7 +3353,7 @@ const cr = {
|
|
|
3353
3353
|
type: Object
|
|
3354
3354
|
}
|
|
3355
3355
|
};
|
|
3356
|
-
function
|
|
3356
|
+
function El({ slots: e }, t) {
|
|
3357
3357
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3358
3358
|
...r,
|
|
3359
3359
|
// prettier-ignore
|
|
@@ -3366,7 +3366,7 @@ function bl({ slots: e }, t) {
|
|
|
3366
3366
|
function ns() {
|
|
3367
3367
|
return he;
|
|
3368
3368
|
}
|
|
3369
|
-
const
|
|
3369
|
+
const bl = /* @__PURE__ */ Jn({
|
|
3370
3370
|
/* eslint-disable */
|
|
3371
3371
|
name: "i18n-t",
|
|
3372
3372
|
props: ie({
|
|
@@ -3389,12 +3389,12 @@ const Sl = /* @__PURE__ */ Jn({
|
|
|
3389
3389
|
return () => {
|
|
3390
3390
|
const s = Object.keys(n).filter((u) => u !== "_"), o = K();
|
|
3391
3391
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3392
|
-
const i =
|
|
3392
|
+
const i = El(t, s), l = a[Bn](e.keypath, i, o), c = ie(K(), r), f = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3393
3393
|
return Sa(f, c, l);
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
|
-
}), Jr =
|
|
3397
|
-
function
|
|
3396
|
+
}), Jr = bl;
|
|
3397
|
+
function Sl(e) {
|
|
3398
3398
|
return re(e) && !I(e[0]);
|
|
3399
3399
|
}
|
|
3400
3400
|
function rs(e, t, n, r) {
|
|
@@ -3407,13 +3407,13 @@ function rs(e, t, n, r) {
|
|
|
3407
3407
|
let c = [o.key];
|
|
3408
3408
|
re(l) ? c = l.map((m, p) => {
|
|
3409
3409
|
const A = a[m.type], E = A ? A({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3410
|
-
return
|
|
3410
|
+
return Sl(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
3411
3411
|
}) : I(l) && (c = [l]);
|
|
3412
3412
|
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3413
3413
|
return Sa(u, f, c);
|
|
3414
3414
|
};
|
|
3415
3415
|
}
|
|
3416
|
-
const
|
|
3416
|
+
const vl = /* @__PURE__ */ Jn({
|
|
3417
3417
|
/* eslint-disable */
|
|
3418
3418
|
name: "i18n-n",
|
|
3419
3419
|
props: ie({
|
|
@@ -3437,8 +3437,8 @@ const Al = /* @__PURE__ */ Jn({
|
|
|
3437
3437
|
n[Vn](...r)
|
|
3438
3438
|
));
|
|
3439
3439
|
}
|
|
3440
|
-
}), zr =
|
|
3441
|
-
function
|
|
3440
|
+
}), zr = vl;
|
|
3441
|
+
function Al(e, t) {
|
|
3442
3442
|
const n = e;
|
|
3443
3443
|
if (e.mode === "composition")
|
|
3444
3444
|
return n.__getInstance(t) || e.global;
|
|
@@ -3447,13 +3447,13 @@ function yl(e, t) {
|
|
|
3447
3447
|
return r != null ? r.__composer : e.global.__composer;
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function yl(e) {
|
|
3451
3451
|
const t = (o) => {
|
|
3452
3452
|
process.env.NODE_ENV !== "production" && er(Rt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3453
3453
|
const { instance: i, value: l } = o;
|
|
3454
3454
|
if (!i || !i.$)
|
|
3455
3455
|
throw de(X.UNEXPECTED_ERROR);
|
|
3456
|
-
const c =
|
|
3456
|
+
const c = Al(e, i.$), f = Zr(l);
|
|
3457
3457
|
return [
|
|
3458
3458
|
Reflect.apply(c.t, c, [...ea(f)]),
|
|
3459
3459
|
c
|
|
@@ -3497,15 +3497,15 @@ function ea(e) {
|
|
|
3497
3497
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3498
3498
|
return I(n) && (o.locale = n), ae(a) && (o.plural = a), ae(s) && (o.plural = s), [t, i, o];
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3500
|
+
function Nl(e, t, ...n) {
|
|
3501
3501
|
const r = V(n[0]) ? n[0] : {};
|
|
3502
|
-
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t",
|
|
3502
|
+
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t", yl(t));
|
|
3503
3503
|
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3504
|
+
const Tl = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3505
|
+
function Ol(e = {}) {
|
|
3506
3506
|
const t = __VUE_I18N_LEGACY_API__ && $(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3507
3507
|
process.env.NODE_ENV !== "production" && t && er(Rt(Ne.DEPRECATE_LEGACY_MODE));
|
|
3508
|
-
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3508
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Il(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3509
3509
|
function i(u) {
|
|
3510
3510
|
return r.get(u) || null;
|
|
3511
3511
|
}
|
|
@@ -3527,12 +3527,12 @@ function Il(e = {}) {
|
|
|
3527
3527
|
f.__composerExtend = E.__composerExtend, f.__vueI18nExtend = E.__vueI18nExtend;
|
|
3528
3528
|
}
|
|
3529
3529
|
let p = null;
|
|
3530
|
-
!t && n && (p =
|
|
3530
|
+
!t && n && (p = Fl(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Nl(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(pl(s, s.__composer, f));
|
|
3531
3531
|
const A = u.unmount;
|
|
3532
3532
|
if (u.unmount = () => {
|
|
3533
3533
|
p && p(), f.dispose(), A();
|
|
3534
3534
|
}, process.env.NODE_ENV !== "production") {
|
|
3535
|
-
if (!await
|
|
3535
|
+
if (!await sl(u, f))
|
|
3536
3536
|
throw de(X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3537
3537
|
const C = tr();
|
|
3538
3538
|
if (t) {
|
|
@@ -3569,11 +3569,11 @@ function ur(e = {}) {
|
|
|
3569
3569
|
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3570
3570
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3571
3571
|
throw de(X.NOT_INSTALLED);
|
|
3572
|
-
const n =
|
|
3572
|
+
const n = Cl(t), r = wl(n), a = Ja(t), s = Ll(e, a);
|
|
3573
3573
|
if (s === "global")
|
|
3574
3574
|
return za(r, e, a), r;
|
|
3575
3575
|
if (s === "parent") {
|
|
3576
|
-
let l =
|
|
3576
|
+
let l = Dl(n, t, e.__useComponent);
|
|
3577
3577
|
return l == null && (process.env.NODE_ENV !== "production" && (Rt(Ne.NOT_FOUND_PARENT_SCOPE), void 0), l = r), l;
|
|
3578
3578
|
}
|
|
3579
3579
|
const o = n;
|
|
@@ -3584,28 +3584,28 @@ function ur(e = {}) {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
return i;
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3588
|
-
const n =
|
|
3587
|
+
function Il(e, t) {
|
|
3588
|
+
const n = Ds(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Wn(e)) : n.run(() => ir(e));
|
|
3589
3589
|
if (r == null)
|
|
3590
3590
|
throw de(X.UNEXPECTED_ERROR);
|
|
3591
3591
|
return [n, r];
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const t =
|
|
3593
|
+
function Cl(e) {
|
|
3594
|
+
const t = Fs(e.isCE ? Tl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3595
3595
|
if (!t)
|
|
3596
3596
|
throw de(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
|
|
3597
3597
|
return t;
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function Ll(e, t) {
|
|
3600
3600
|
return Qt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function wl(e) {
|
|
3603
3603
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3605
|
+
function Dl(e, t, n = !1) {
|
|
3606
3606
|
let r = null;
|
|
3607
3607
|
const a = t.root;
|
|
3608
|
-
let s =
|
|
3608
|
+
let s = Rl(t, n);
|
|
3609
3609
|
for (; s != null; ) {
|
|
3610
3610
|
const o = e;
|
|
3611
3611
|
if (e.mode === "composition")
|
|
@@ -3620,36 +3620,36 @@ function Rl(e, t, n = !1) {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
return r;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3623
|
+
function Rl(e, t = !1) {
|
|
3624
3624
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3625
3625
|
}
|
|
3626
3626
|
function kl(e, t, n) {
|
|
3627
3627
|
let r = null;
|
|
3628
|
-
|
|
3628
|
+
Ms(() => {
|
|
3629
3629
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3630
3630
|
t.vnode.el.__VUE_I18N__ = n, r = tr();
|
|
3631
3631
|
const a = n;
|
|
3632
3632
|
a[ze] && a[ze](r), r.on("*", Dt);
|
|
3633
3633
|
}
|
|
3634
|
-
}, t),
|
|
3634
|
+
}, t), Us(() => {
|
|
3635
3635
|
const a = n;
|
|
3636
3636
|
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", Dt), a[Lt] && a[Lt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3637
3637
|
const s = a[Gn];
|
|
3638
3638
|
s && (s(), delete a[Gn]);
|
|
3639
3639
|
}, t);
|
|
3640
3640
|
}
|
|
3641
|
-
const
|
|
3641
|
+
const Pl = [
|
|
3642
3642
|
"locale",
|
|
3643
3643
|
"fallbackLocale",
|
|
3644
3644
|
"availableLocales"
|
|
3645
3645
|
], ta = ["t", "rt", "d", "n", "tm", "te"];
|
|
3646
|
-
function
|
|
3646
|
+
function Fl(e, t) {
|
|
3647
3647
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3648
|
-
return
|
|
3648
|
+
return Pl.forEach((a) => {
|
|
3649
3649
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3650
3650
|
if (!s)
|
|
3651
3651
|
throw de(X.UNEXPECTED_ERROR);
|
|
3652
|
-
const o =
|
|
3652
|
+
const o = Ps(s.value) ? {
|
|
3653
3653
|
get() {
|
|
3654
3654
|
return s.value.value;
|
|
3655
3655
|
},
|
|
@@ -3674,7 +3674,7 @@ function Ml(e, t) {
|
|
|
3674
3674
|
});
|
|
3675
3675
|
};
|
|
3676
3676
|
}
|
|
3677
|
-
const
|
|
3677
|
+
const Ml = /* @__PURE__ */ Jn({
|
|
3678
3678
|
/* eslint-disable */
|
|
3679
3679
|
name: "i18n-d",
|
|
3680
3680
|
props: ie({
|
|
@@ -3698,17 +3698,17 @@ const Ul = /* @__PURE__ */ Jn({
|
|
|
3698
3698
|
n[xn](...r)
|
|
3699
3699
|
));
|
|
3700
3700
|
}
|
|
3701
|
-
}), na =
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3701
|
+
}), na = Ml;
|
|
3702
|
+
zi();
|
|
3703
|
+
Ai(ei);
|
|
3704
|
+
yi(pi);
|
|
3705
|
+
Ni(Fa);
|
|
3706
3706
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3707
3707
|
const e = je();
|
|
3708
|
-
e.__INTLIFY__ = !0,
|
|
3708
|
+
e.__INTLIFY__ = !0, ti(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3709
3709
|
}
|
|
3710
3710
|
process.env.NODE_ENV;
|
|
3711
|
-
const as =
|
|
3711
|
+
const as = Ol({
|
|
3712
3712
|
legacy: !1,
|
|
3713
3713
|
locale: "zh",
|
|
3714
3714
|
//默认显示的语言
|
|
@@ -3725,18 +3725,18 @@ const as = Il({
|
|
|
3725
3725
|
silentFallbackWarn: !0,
|
|
3726
3726
|
fallbackWarn: !1
|
|
3727
3727
|
}), Ke = as.global;
|
|
3728
|
-
async function
|
|
3728
|
+
async function Ul(e, t) {
|
|
3729
3729
|
const n = await t(e);
|
|
3730
3730
|
Ke.setLocaleMessage(e, n), Ke.locale && Ke.locale.value !== void 0 ? Ke.locale.value = e : Ke.locale = e;
|
|
3731
3731
|
}
|
|
3732
3732
|
const nt = "__system:language__", rt = "zh";
|
|
3733
|
-
function
|
|
3733
|
+
function Bl() {
|
|
3734
3734
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function xl(e) {
|
|
3737
3737
|
return e ? e.toLowerCase().trim() : "";
|
|
3738
3738
|
}
|
|
3739
|
-
const
|
|
3739
|
+
const kt = De("cloudSdkLanguageStore", {
|
|
3740
3740
|
state: () => ({
|
|
3741
3741
|
languageDefault: rt,
|
|
3742
3742
|
languageName: D.localGet(nt) || rt,
|
|
@@ -3757,22 +3757,22 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3757
3757
|
}),
|
|
3758
3758
|
getters: {
|
|
3759
3759
|
languageSelect: (e) => {
|
|
3760
|
-
let t = [];
|
|
3761
|
-
|
|
3760
|
+
let t = [], n = e.languageList;
|
|
3761
|
+
for (let r in n)
|
|
3762
3762
|
t.push({
|
|
3763
|
-
label: r,
|
|
3764
|
-
value:
|
|
3763
|
+
label: n[r],
|
|
3764
|
+
value: r
|
|
3765
3765
|
});
|
|
3766
|
-
|
|
3766
|
+
return t;
|
|
3767
3767
|
}
|
|
3768
3768
|
},
|
|
3769
3769
|
actions: {
|
|
3770
3770
|
// 初始化
|
|
3771
3771
|
async init() {
|
|
3772
|
-
let e =
|
|
3772
|
+
let e = Bl() || rt;
|
|
3773
3773
|
e = localStorage.getItem(nt) || e;
|
|
3774
3774
|
const t = cvUtils.urlGetParameterAll();
|
|
3775
|
-
t.language && (e = t.language), e =
|
|
3775
|
+
t.language && (e = t.language), e = xl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3776
3776
|
},
|
|
3777
3777
|
async clear_cache() {
|
|
3778
3778
|
D.localSet(nt, rt);
|
|
@@ -3806,28 +3806,28 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3806
3806
|
this.languageName = e, D.localSet(nt, e), Ke.locale.value = e;
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
|
-
}), ra = "__system:themes__",
|
|
3809
|
+
}), ra = "__system:themes__", Vl = "light", Nn = "__system:layoutSidebarState__", Gl = "on", aa = "__system:layoutNavTabs__", $l = "on", Wl = "__system:layoutWatermark__", Yl = "on";
|
|
3810
3810
|
function sa() {
|
|
3811
3811
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
3812
3812
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
3813
3813
|
}
|
|
3814
|
-
const
|
|
3814
|
+
const Be = De("cloudSdkThemesStore", {
|
|
3815
3815
|
state: () => ({
|
|
3816
3816
|
layoutName: "",
|
|
3817
3817
|
/**
|
|
3818
3818
|
* 上边切换卡
|
|
3819
3819
|
*/
|
|
3820
|
-
layoutNavTabs: D.localGet(aa) ||
|
|
3820
|
+
layoutNavTabs: D.localGet(aa) || $l,
|
|
3821
3821
|
/**
|
|
3822
3822
|
* 左边侧栏
|
|
3823
3823
|
*/
|
|
3824
|
-
layoutSidebarState: D.localGet(Nn) ||
|
|
3824
|
+
layoutSidebarState: D.localGet(Nn) || Gl,
|
|
3825
3825
|
/**
|
|
3826
3826
|
* 主题皮肤
|
|
3827
3827
|
* auto|light|dark
|
|
3828
3828
|
* 自动生成
|
|
3829
3829
|
*/
|
|
3830
|
-
themesName: D.localGet(ra) ||
|
|
3830
|
+
themesName: D.localGet(ra) || Vl,
|
|
3831
3831
|
themesList: [
|
|
3832
3832
|
{ name: "跟随系统", value: "auto" },
|
|
3833
3833
|
{ name: "明亮", value: "light" },
|
|
@@ -3836,7 +3836,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3836
3836
|
/**
|
|
3837
3837
|
* 水印
|
|
3838
3838
|
*/
|
|
3839
|
-
watermarkState: D.localGet(
|
|
3839
|
+
watermarkState: D.localGet(Wl) || Yl
|
|
3840
3840
|
}),
|
|
3841
3841
|
actions: {
|
|
3842
3842
|
async init() {
|
|
@@ -3910,10 +3910,10 @@ function ss() {
|
|
|
3910
3910
|
function os() {
|
|
3911
3911
|
return window.innerHeight;
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function Hl() {
|
|
3914
3914
|
return ss() - os() > 50 ? "landscape" : "portrait";
|
|
3915
3915
|
}
|
|
3916
|
-
const Gt = ss(),
|
|
3916
|
+
const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
3917
3917
|
state: () => ({
|
|
3918
3918
|
// 窗口是否激活
|
|
3919
3919
|
windowActive: !0,
|
|
@@ -3924,7 +3924,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
3924
3924
|
// 浏览器尺寸信息
|
|
3925
3925
|
windowWidth: Gt,
|
|
3926
3926
|
// 窗口宽度
|
|
3927
|
-
windowHeight:
|
|
3927
|
+
windowHeight: Kl,
|
|
3928
3928
|
// 浏览器窗口方向
|
|
3929
3929
|
windowOrientation: Tn,
|
|
3930
3930
|
windowLandscape: Tn === "landscape",
|
|
@@ -3970,7 +3970,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
3970
3970
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
}), Et = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr =
|
|
3973
|
+
}), Et = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr = De("cloudSdkSystemStore", {
|
|
3974
3974
|
state: () => ({
|
|
3975
3975
|
// ServerUrl
|
|
3976
3976
|
cacheServerUrl: "",
|
|
@@ -4100,7 +4100,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4100
4100
|
function Yn(e) {
|
|
4101
4101
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4102
4102
|
}
|
|
4103
|
-
const at = "syCacheAppInfo",
|
|
4103
|
+
const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St = "syCacheAppRbac", ca = {
|
|
4104
4104
|
nickname: "",
|
|
4105
4105
|
staff_nickname: "",
|
|
4106
4106
|
id: 0,
|
|
@@ -4120,7 +4120,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4120
4120
|
account_avatar: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4121
4121
|
account_avatar_cdn: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4122
4122
|
business_name: ""
|
|
4123
|
-
}, Te =
|
|
4123
|
+
}, Te = De("cloudSdkAccountStore", {
|
|
4124
4124
|
state: () => ({
|
|
4125
4125
|
// staffId: 0,
|
|
4126
4126
|
account_nick: "",
|
|
@@ -4128,7 +4128,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4128
4128
|
accountRbacData: [],
|
|
4129
4129
|
// 账号信息
|
|
4130
4130
|
accountInfo: D.localGet(at) || {},
|
|
4131
|
-
accountToken: D.localGet(
|
|
4131
|
+
accountToken: D.localGet(Me) || "",
|
|
4132
4132
|
accountJwt: D.localGet(bt) || ""
|
|
4133
4133
|
}),
|
|
4134
4134
|
getters: {
|
|
@@ -4166,7 +4166,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4166
4166
|
async clear_all() {
|
|
4167
4167
|
},
|
|
4168
4168
|
SA_ACCOUNT_IS_LOGGED() {
|
|
4169
|
-
return this.accountToken = D.localGet(
|
|
4169
|
+
return this.accountToken = D.localGet(Me) || "", !!Yn(this.accountToken);
|
|
4170
4170
|
},
|
|
4171
4171
|
SA_ACCOUNT_JWT_GET() {
|
|
4172
4172
|
return this.accountJwt || "";
|
|
@@ -4175,7 +4175,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4175
4175
|
return this.accountToken || "";
|
|
4176
4176
|
},
|
|
4177
4177
|
SA_ACCOUNT_TOKEN_SET(e) {
|
|
4178
|
-
this.accountToken = e, D.localSet(
|
|
4178
|
+
this.accountToken = e, D.localSet(Me, this.accountToken);
|
|
4179
4179
|
},
|
|
4180
4180
|
/**
|
|
4181
4181
|
* 获取用户信息(并保存)
|
|
@@ -4212,21 +4212,21 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4212
4212
|
return this.account_nick;
|
|
4213
4213
|
},
|
|
4214
4214
|
SA_ACCOUNT_REFRESH() {
|
|
4215
|
-
this.accountInfo = D.localGet(at) || ca, this.accountToken = D.localGet(
|
|
4215
|
+
this.accountInfo = D.localGet(at) || ca, this.accountToken = D.localGet(Me) || "", this.accountJwt = D.localGet(bt) || "", fe.setDefHeaders({
|
|
4216
4216
|
syOpenAppToken: this.accountToken || "",
|
|
4217
4217
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4218
4218
|
});
|
|
4219
4219
|
},
|
|
4220
4220
|
// 登录
|
|
4221
4221
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4222
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(
|
|
4222
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(Me, e.token_access || ""), D.localSet(bt, e.token_jwt || ""), D.localSet(St, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(Me, e.token_access || ""), Tt().QK_SEND_LOGIN_MSG();
|
|
4223
4223
|
},
|
|
4224
4224
|
/**
|
|
4225
4225
|
* 登出(打开登录页面)
|
|
4226
4226
|
* @param appendFrom
|
|
4227
4227
|
*/
|
|
4228
4228
|
SA_ACCOUNT_LOGOUT() {
|
|
4229
|
-
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(
|
|
4229
|
+
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(Me, ""), D.localSet(bt, ""), D.localSet(St, ""), D.localDel(at), D.localDel(Me), D.localDel(bt), D.localDel(St), this.SA_ACCOUNT_REFRESH(), Tt().QK_SEND_LOGOUT_MSG();
|
|
4230
4230
|
},
|
|
4231
4231
|
/**
|
|
4232
4232
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4268,7 +4268,7 @@ function ls(e, t) {
|
|
|
4268
4268
|
name: r
|
|
4269
4269
|
};
|
|
4270
4270
|
}
|
|
4271
|
-
const
|
|
4271
|
+
const jl = {}, ql = jl, Xl = ql.VITE_SY_PRODUCT_SIGN;
|
|
4272
4272
|
function cs(e) {
|
|
4273
4273
|
let t = Object.prototype.toString.call(e);
|
|
4274
4274
|
if (t != "[object String]" && t != "[object Array]")
|
|
@@ -4287,48 +4287,20 @@ function cs(e) {
|
|
|
4287
4287
|
function Kt(e, t) {
|
|
4288
4288
|
if (e = e || "", e = e.trim(), e == "")
|
|
4289
4289
|
return !1;
|
|
4290
|
-
e.includes("@") || (e = `${
|
|
4290
|
+
e.includes("@") || (e = `${Xl}@${e}`);
|
|
4291
4291
|
let n = t || D.localGet("syCacheAppRbac") || "";
|
|
4292
4292
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4293
4293
|
}
|
|
4294
|
-
const
|
|
4295
|
-
"org-business": "商家平台",
|
|
4296
|
-
"org-operator": "运营平台",
|
|
4297
|
-
"org-agent": "代理商平台",
|
|
4298
|
-
"org-admin": "超管平台"
|
|
4299
|
-
};
|
|
4300
|
-
let us = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4301
|
-
const Jl = window.shiyunProductInfo || {
|
|
4302
|
-
system_type: us
|
|
4303
|
-
}, Zt = Be("cloudSdkProductStore", {
|
|
4294
|
+
const Zt = De("cloudSdkProductStore", {
|
|
4304
4295
|
state: () => ({
|
|
4305
|
-
|
|
4296
|
+
/**
|
|
4297
|
+
* 默认应用信息
|
|
4298
|
+
*/
|
|
4306
4299
|
defaultProductInfo: {
|
|
4307
|
-
/**
|
|
4308
|
-
* 应用信息
|
|
4309
|
-
*/
|
|
4310
4300
|
info_title: Nt().syProductTitle || "ShiyunProduct",
|
|
4311
4301
|
info_logo: "",
|
|
4312
|
-
info_version: "v1.25.xxxx"
|
|
4302
|
+
info_version: "v1.25.xxxx"
|
|
4313
4303
|
// 版本
|
|
4314
|
-
/**
|
|
4315
|
-
* 平台信息
|
|
4316
|
-
*/
|
|
4317
|
-
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4318
|
-
// logo
|
|
4319
|
-
platinfo_login_bg: "",
|
|
4320
|
-
// 登录背景
|
|
4321
|
-
platinfo_brand: "shiyun",
|
|
4322
|
-
// 品牌
|
|
4323
|
-
platinfo_title: "十云",
|
|
4324
|
-
// 标题
|
|
4325
|
-
platinfo_short: "十云",
|
|
4326
|
-
/**
|
|
4327
|
-
*
|
|
4328
|
-
*/
|
|
4329
|
-
privacy_url: "//api.10yun.com/privacy.html",
|
|
4330
|
-
system_type: us
|
|
4331
|
-
// 后台系统类型
|
|
4332
4304
|
},
|
|
4333
4305
|
currMenuInfo: {},
|
|
4334
4306
|
// 菜单角标
|
|
@@ -4338,7 +4310,10 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4338
4310
|
menuOriginal: []
|
|
4339
4311
|
}),
|
|
4340
4312
|
getters: {
|
|
4341
|
-
openProductInfo: (e) =>
|
|
4313
|
+
openProductInfo: (e) => {
|
|
4314
|
+
let t = window.shiyunProductInfo || {};
|
|
4315
|
+
return Object.assign({}, e.defaultProductInfo, t);
|
|
4316
|
+
},
|
|
4342
4317
|
// 当前展开
|
|
4343
4318
|
menuCurrOpeneds: (e) => e.menuOpeneds,
|
|
4344
4319
|
// 当前拥有
|
|
@@ -4381,38 +4356,38 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4381
4356
|
return this.menuTree;
|
|
4382
4357
|
}
|
|
4383
4358
|
}
|
|
4384
|
-
}),
|
|
4359
|
+
}), Ql = [
|
|
4385
4360
|
{
|
|
4386
4361
|
meta: { title: "登录", isAlone: !0 },
|
|
4387
4362
|
isAlone: !0,
|
|
4388
4363
|
name: "login",
|
|
4389
4364
|
path: "/login",
|
|
4390
|
-
component: () => import("./login-
|
|
4365
|
+
component: () => import("./login-CMkucPpJ.js")
|
|
4391
4366
|
}
|
|
4392
|
-
],
|
|
4367
|
+
], Jl = [
|
|
4393
4368
|
{
|
|
4394
4369
|
meta: { title: "不建议单独运行", isAlone: !0 },
|
|
4395
4370
|
isAlone: !0,
|
|
4396
4371
|
name: "alone_run",
|
|
4397
4372
|
path: "/alone_run",
|
|
4398
|
-
component: () => import("./alone_run-
|
|
4373
|
+
component: () => import("./alone_run-D3hGeSjr.js")
|
|
4399
4374
|
},
|
|
4400
4375
|
{
|
|
4401
4376
|
meta: { title: "错误", isAlone: !0 },
|
|
4402
4377
|
isAlone: !0,
|
|
4403
4378
|
name: "404",
|
|
4404
4379
|
path: "/:catchAll(.*)",
|
|
4405
|
-
component: () => import("./404-
|
|
4380
|
+
component: () => import("./404-CRUQ2RGL.js")
|
|
4406
4381
|
}
|
|
4407
|
-
],
|
|
4382
|
+
], zl = [
|
|
4408
4383
|
{
|
|
4409
4384
|
meta: { title: "空页面", isAlone: !1 },
|
|
4410
4385
|
isAlone: !1,
|
|
4411
4386
|
name: "none",
|
|
4412
4387
|
path: "/none",
|
|
4413
|
-
component: () => import("./none-
|
|
4388
|
+
component: () => import("./none-GtWlMjrR.js")
|
|
4414
4389
|
}
|
|
4415
|
-
], en =
|
|
4390
|
+
], en = De("cloudSdkPermissionStore", {
|
|
4416
4391
|
state: () => ({
|
|
4417
4392
|
originalRoutes: [],
|
|
4418
4393
|
whiteList: ["404", "login", "alone_run", "none"],
|
|
@@ -4441,7 +4416,7 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4441
4416
|
* @param {*} router
|
|
4442
4417
|
*/
|
|
4443
4418
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
4444
|
-
t = t || "", t != "console_passport" && e.addRoute(...
|
|
4419
|
+
t = t || "", t != "console_passport" && e.addRoute(...Ql), e.addRoute(...Jl), e.addRoute(...zl);
|
|
4445
4420
|
},
|
|
4446
4421
|
/**
|
|
4447
4422
|
* 验证路由
|
|
@@ -4455,10 +4430,47 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4455
4430
|
async SA_PERMS_REFRESH() {
|
|
4456
4431
|
}
|
|
4457
4432
|
}
|
|
4433
|
+
}), fa = {
|
|
4434
|
+
"org-business": "商家平台",
|
|
4435
|
+
"org-operator": "运营平台",
|
|
4436
|
+
"org-agent": "代理商平台",
|
|
4437
|
+
"org-admin": "超管平台"
|
|
4438
|
+
};
|
|
4439
|
+
let Zl = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4440
|
+
const ec = De("cloudSdkApplicationStore", {
|
|
4441
|
+
state: () => ({
|
|
4442
|
+
/**
|
|
4443
|
+
* 平台信息
|
|
4444
|
+
*/
|
|
4445
|
+
defaultCaseInfo: {
|
|
4446
|
+
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4447
|
+
platinfo_version: "",
|
|
4448
|
+
platinfo_login_bg: "",
|
|
4449
|
+
// 登录背景
|
|
4450
|
+
platinfo_brand: "shiyun",
|
|
4451
|
+
// 品牌
|
|
4452
|
+
platinfo_title: "十云",
|
|
4453
|
+
// 标题
|
|
4454
|
+
platinfo_short: "十云",
|
|
4455
|
+
privacy_url: "//api.10yun.com/privacy.html",
|
|
4456
|
+
system_type: Zl
|
|
4457
|
+
// 后台系统类型
|
|
4458
|
+
}
|
|
4459
|
+
}),
|
|
4460
|
+
getters: {
|
|
4461
|
+
openCaseInfo: (e) => {
|
|
4462
|
+
let t = window.shiyunProductInfo || {};
|
|
4463
|
+
return Object.assign({}, e.defaultCaseInfo, t);
|
|
4464
|
+
}
|
|
4465
|
+
},
|
|
4466
|
+
actions: {
|
|
4467
|
+
async init() {
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4458
4470
|
});
|
|
4459
4471
|
function tc() {
|
|
4460
4472
|
return new Promise(async (e) => {
|
|
4461
|
-
|
|
4473
|
+
kt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
|
|
4462
4474
|
e();
|
|
4463
4475
|
});
|
|
4464
4476
|
});
|
|
@@ -4466,10 +4478,10 @@ function tc() {
|
|
|
4466
4478
|
function nc() {
|
|
4467
4479
|
return {
|
|
4468
4480
|
computed: {
|
|
4469
|
-
...
|
|
4470
|
-
...
|
|
4471
|
-
...
|
|
4472
|
-
...
|
|
4481
|
+
...Le(Tt, ["qiankunExistState"]),
|
|
4482
|
+
...Le(kt, ["languageName", "languageList", "languageSelect"]),
|
|
4483
|
+
...Le(Be, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
4484
|
+
...Le(is, [
|
|
4473
4485
|
"windowWidth",
|
|
4474
4486
|
"windowHeight",
|
|
4475
4487
|
"windowActive",
|
|
@@ -4479,7 +4491,7 @@ function nc() {
|
|
|
4479
4491
|
"windowPortrait",
|
|
4480
4492
|
"formLabelPosition"
|
|
4481
4493
|
]),
|
|
4482
|
-
...
|
|
4494
|
+
...Le(fr, [
|
|
4483
4495
|
"cacheServerUrl",
|
|
4484
4496
|
"systemConfig",
|
|
4485
4497
|
"systemInfo",
|
|
@@ -4487,7 +4499,7 @@ function nc() {
|
|
|
4487
4499
|
"sysIsEEUiApp",
|
|
4488
4500
|
"sysIsSoftware"
|
|
4489
4501
|
]),
|
|
4490
|
-
...
|
|
4502
|
+
...Le(Te, [
|
|
4491
4503
|
"accountIsLogin",
|
|
4492
4504
|
"accountInfo",
|
|
4493
4505
|
"accountToken",
|
|
@@ -4496,7 +4508,8 @@ function nc() {
|
|
|
4496
4508
|
"staffId",
|
|
4497
4509
|
"staffNick"
|
|
4498
4510
|
]),
|
|
4499
|
-
...
|
|
4511
|
+
...Le(Zt, ["openProductInfo", "menuBadge", "menuCurrOpeneds", "menuCurrOnly"]),
|
|
4512
|
+
...Le(ec, ["openCaseInfo"])
|
|
4500
4513
|
},
|
|
4501
4514
|
watch: {
|
|
4502
4515
|
windowActive(t) {
|
|
@@ -4506,57 +4519,12 @@ function nc() {
|
|
|
4506
4519
|
}
|
|
4507
4520
|
};
|
|
4508
4521
|
}
|
|
4509
|
-
const
|
|
4522
|
+
const Re = (e, t) => {
|
|
4510
4523
|
const n = e.__vccOpts || e;
|
|
4511
4524
|
for (const [r, a] of t)
|
|
4512
4525
|
n[r] = a;
|
|
4513
4526
|
return n;
|
|
4514
4527
|
}, rc = {
|
|
4515
|
-
props: {
|
|
4516
|
-
className: ""
|
|
4517
|
-
},
|
|
4518
|
-
data() {
|
|
4519
|
-
return {
|
|
4520
|
-
routeRefreshAnimation: "",
|
|
4521
|
-
routeRefreshNum: 0
|
|
4522
|
-
};
|
|
4523
|
-
},
|
|
4524
|
-
computed: {
|
|
4525
|
-
...Fe(en, ["routeAlive"])
|
|
4526
|
-
},
|
|
4527
|
-
watch: {
|
|
4528
|
-
routeAlive(e) {
|
|
4529
|
-
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4530
|
-
this.routeRefreshAnimation = "";
|
|
4531
|
-
});
|
|
4532
|
-
}
|
|
4533
|
-
},
|
|
4534
|
-
methods: {}
|
|
4535
|
-
};
|
|
4536
|
-
function ac(e, t, n, r, a, s) {
|
|
4537
|
-
const o = B("router-view");
|
|
4538
|
-
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4539
|
-
default: R(({ Component: i, route: l }) => [
|
|
4540
|
-
w(Vs, {
|
|
4541
|
-
name: a.routeRefreshAnimation,
|
|
4542
|
-
mode: "out-in",
|
|
4543
|
-
appear: ""
|
|
4544
|
-
}, {
|
|
4545
|
-
default: R(() => [
|
|
4546
|
-
(U(), Q("div", {
|
|
4547
|
-
class: va(n.className),
|
|
4548
|
-
key: l.path
|
|
4549
|
-
}, [
|
|
4550
|
-
(U(), J(Gs(i)))
|
|
4551
|
-
], 2))
|
|
4552
|
-
]),
|
|
4553
|
-
_: 2
|
|
4554
|
-
}, 1032, ["name"])
|
|
4555
|
-
]),
|
|
4556
|
-
_: 1
|
|
4557
|
-
});
|
|
4558
|
-
}
|
|
4559
|
-
const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
4560
4528
|
name: "HeaderSysSettDrawer",
|
|
4561
4529
|
components: {},
|
|
4562
4530
|
props: {
|
|
@@ -4579,16 +4547,16 @@ const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
|
4579
4547
|
this.localVal = e;
|
|
4580
4548
|
},
|
|
4581
4549
|
frameSysTheme(e) {
|
|
4582
|
-
|
|
4550
|
+
Be().SA_THEMES_SET(e);
|
|
4583
4551
|
},
|
|
4584
4552
|
frameSysLanguage(e) {
|
|
4585
|
-
|
|
4553
|
+
kt().SA_LANGUAGE_SET(e);
|
|
4586
4554
|
},
|
|
4587
4555
|
frameSidebarState(e) {
|
|
4588
|
-
|
|
4556
|
+
Be().SA_LAYOUT_SLIDEBAR_SET(e);
|
|
4589
4557
|
},
|
|
4590
4558
|
frameSysNavTabs(e) {
|
|
4591
|
-
|
|
4559
|
+
Be().SA_LAYOUT_NAVTABS_SET(e);
|
|
4592
4560
|
}
|
|
4593
4561
|
},
|
|
4594
4562
|
created() {
|
|
@@ -4607,8 +4575,8 @@ const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
|
4607
4575
|
this.$parent.frameHandleCommand("clearCache");
|
|
4608
4576
|
}
|
|
4609
4577
|
}
|
|
4610
|
-
},
|
|
4611
|
-
function
|
|
4578
|
+
}, ac = { class: "cloud-sett-drawer-body" }, sc = { class: "cloud-sett-drawer-skin" };
|
|
4579
|
+
function oc(e, t, n, r, a, s) {
|
|
4612
4580
|
const o = B("el-card"), i = B("el-form-item"), l = B("el-option"), c = B("el-select"), f = B("cv-icons"), u = B("el-button"), m = B("el-switch"), p = B("el-form"), A = B("el-drawer");
|
|
4613
4581
|
return U(), J(A, {
|
|
4614
4582
|
title: "系统设置",
|
|
@@ -4619,7 +4587,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4619
4587
|
"before-close": s.frameTopSysSettClose
|
|
4620
4588
|
}, {
|
|
4621
4589
|
default: R(() => [
|
|
4622
|
-
|
|
4590
|
+
P("div", ac, [
|
|
4623
4591
|
w(p, {
|
|
4624
4592
|
labelWidth: "auto",
|
|
4625
4593
|
"label-position": "left"
|
|
@@ -4630,7 +4598,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4630
4598
|
"label-position": "top"
|
|
4631
4599
|
}, {
|
|
4632
4600
|
default: R(() => [
|
|
4633
|
-
|
|
4601
|
+
P("div", sc, [
|
|
4634
4602
|
w(o),
|
|
4635
4603
|
w(o),
|
|
4636
4604
|
w(o)
|
|
@@ -4768,7 +4736,52 @@ function cc(e, t, n, r, a, s) {
|
|
|
4768
4736
|
_: 1
|
|
4769
4737
|
}, 8, ["modelValue", "before-close"]);
|
|
4770
4738
|
}
|
|
4771
|
-
const
|
|
4739
|
+
const ic = /* @__PURE__ */ Re(rc, [["render", oc]]), lc = {
|
|
4740
|
+
props: {
|
|
4741
|
+
className: ""
|
|
4742
|
+
},
|
|
4743
|
+
data() {
|
|
4744
|
+
return {
|
|
4745
|
+
routeRefreshAnimation: "",
|
|
4746
|
+
routeRefreshNum: 0
|
|
4747
|
+
};
|
|
4748
|
+
},
|
|
4749
|
+
computed: {
|
|
4750
|
+
...Le(en, ["routeAlive"])
|
|
4751
|
+
},
|
|
4752
|
+
watch: {
|
|
4753
|
+
routeAlive(e) {
|
|
4754
|
+
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4755
|
+
this.routeRefreshAnimation = "";
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
methods: {}
|
|
4760
|
+
};
|
|
4761
|
+
function cc(e, t, n, r, a, s) {
|
|
4762
|
+
const o = B("router-view");
|
|
4763
|
+
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4764
|
+
default: R(({ Component: i, route: l }) => [
|
|
4765
|
+
w(xs, {
|
|
4766
|
+
name: a.routeRefreshAnimation,
|
|
4767
|
+
mode: "out-in",
|
|
4768
|
+
appear: ""
|
|
4769
|
+
}, {
|
|
4770
|
+
default: R(() => [
|
|
4771
|
+
(U(), Q("div", {
|
|
4772
|
+
class: va(n.className),
|
|
4773
|
+
key: l.path
|
|
4774
|
+
}, [
|
|
4775
|
+
(U(), J(Vs(i)))
|
|
4776
|
+
], 2))
|
|
4777
|
+
]),
|
|
4778
|
+
_: 2
|
|
4779
|
+
}, 1032, ["name"])
|
|
4780
|
+
]),
|
|
4781
|
+
_: 1
|
|
4782
|
+
});
|
|
4783
|
+
}
|
|
4784
|
+
const uc = /* @__PURE__ */ Re(lc, [["render", cc]]), _a = (e) => Math.pow(e, 3), fc = (e) => e < 0.5 ? _a(e * 2) / 2 : 1 - _a((1 - e) * 2) / 2, _c = {
|
|
4772
4785
|
name: "SameNavTabs",
|
|
4773
4786
|
data() {
|
|
4774
4787
|
return {
|
|
@@ -4894,7 +4907,7 @@ const uc = /* @__PURE__ */ we(oc, [["render", cc]]), _a = (e) => Math.pow(e, 3),
|
|
|
4894
4907
|
function pc(e, t, n, r, a, s) {
|
|
4895
4908
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
4896
4909
|
return U(), Q("div", dc, [
|
|
4897
|
-
|
|
4910
|
+
P("div", mc, [
|
|
4898
4911
|
w(i, {
|
|
4899
4912
|
class: "btn-opt-left",
|
|
4900
4913
|
onClick: s.changeGdtLeft
|
|
@@ -4904,10 +4917,10 @@ function pc(e, t, n, r, a, s) {
|
|
|
4904
4917
|
]),
|
|
4905
4918
|
_: 1
|
|
4906
4919
|
}, 8, ["onClick"]),
|
|
4907
|
-
|
|
4920
|
+
P("div", hc, [
|
|
4908
4921
|
w(c, { ref: "navScroll1" }, {
|
|
4909
4922
|
default: R(() => [
|
|
4910
|
-
|
|
4923
|
+
P("div", gc, [
|
|
4911
4924
|
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4912
4925
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
4913
4926
|
class: va(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
@@ -4916,7 +4929,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4916
4929
|
onClose: (p) => s.removeTag(u, m),
|
|
4917
4930
|
onClick: (p) => s.changeMenu(u),
|
|
4918
4931
|
"disable-transitions": "",
|
|
4919
|
-
onContextmenu:
|
|
4932
|
+
onContextmenu: Gs(s.openContextMenu, ["prevent"])
|
|
4920
4933
|
}, {
|
|
4921
4934
|
default: R(() => [
|
|
4922
4935
|
te(ne(u.title), 1)
|
|
@@ -4944,14 +4957,14 @@ function pc(e, t, n, r, a, s) {
|
|
|
4944
4957
|
]),
|
|
4945
4958
|
_: 1
|
|
4946
4959
|
}),
|
|
4947
|
-
Aa(
|
|
4960
|
+
Aa(P("div", {
|
|
4948
4961
|
class: "cloud-navtabs__contextmenu",
|
|
4949
4962
|
style: Dn(a.contextMenuStyle)
|
|
4950
4963
|
}, [
|
|
4951
|
-
|
|
4964
|
+
P("ul", {
|
|
4952
4965
|
style: Dn({ left: a.left + "px", top: a.top + "px" })
|
|
4953
4966
|
}, [
|
|
4954
|
-
|
|
4967
|
+
P("li", null, [
|
|
4955
4968
|
w(f, {
|
|
4956
4969
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
4957
4970
|
}, {
|
|
@@ -4961,7 +4974,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4961
4974
|
_: 1
|
|
4962
4975
|
})
|
|
4963
4976
|
]),
|
|
4964
|
-
|
|
4977
|
+
P("li", null, [
|
|
4965
4978
|
w(f, {
|
|
4966
4979
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
4967
4980
|
}, {
|
|
@@ -4971,7 +4984,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4971
4984
|
_: 1
|
|
4972
4985
|
})
|
|
4973
4986
|
]),
|
|
4974
|
-
|
|
4987
|
+
P("li", null, [
|
|
4975
4988
|
w(f, {
|
|
4976
4989
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
4977
4990
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
@@ -4982,7 +4995,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4982
4995
|
_: 1
|
|
4983
4996
|
}, 8, ["disabled"])
|
|
4984
4997
|
]),
|
|
4985
|
-
|
|
4998
|
+
P("li", null, [
|
|
4986
4999
|
w(f, {
|
|
4987
5000
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
4988
5001
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
@@ -4993,7 +5006,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4993
5006
|
_: 1
|
|
4994
5007
|
}, 8, ["disabled"])
|
|
4995
5008
|
]),
|
|
4996
|
-
|
|
5009
|
+
P("li", null, [
|
|
4997
5010
|
w(f, {
|
|
4998
5011
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
4999
5012
|
}, {
|
|
@@ -5010,7 +5023,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
5010
5023
|
])
|
|
5011
5024
|
]);
|
|
5012
5025
|
}
|
|
5013
|
-
const Ec = /* @__PURE__ */
|
|
5026
|
+
const Ec = /* @__PURE__ */ Re(_c, [["render", pc]]), bc = {
|
|
5014
5027
|
name: "SidebarMenuItem",
|
|
5015
5028
|
props: {
|
|
5016
5029
|
menuData: {
|
|
@@ -5071,7 +5084,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5071
5084
|
index: u.name
|
|
5072
5085
|
}, {
|
|
5073
5086
|
title: R(() => [
|
|
5074
|
-
|
|
5087
|
+
P("div", Sc, [
|
|
5075
5088
|
u.meta.icon ? (U(), J(o, {
|
|
5076
5089
|
key: 0,
|
|
5077
5090
|
type: u.meta.icon,
|
|
@@ -5079,7 +5092,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5079
5092
|
}, null, 8, ["type"])) : ue("", !0),
|
|
5080
5093
|
!u.meta.icon && n.collapse ? (U(), Q("span", vc, ne(u.meta.short || u.meta.title), 1)) : ue("", !0)
|
|
5081
5094
|
]),
|
|
5082
|
-
|
|
5095
|
+
P("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5083
5096
|
]),
|
|
5084
5097
|
default: R(() => [
|
|
5085
5098
|
w(i, {
|
|
@@ -5122,7 +5135,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5122
5135
|
], 64)) : ue("", !0)
|
|
5123
5136
|
], 64))), 256);
|
|
5124
5137
|
}
|
|
5125
|
-
const Tc = /* @__PURE__ */
|
|
5138
|
+
const Tc = /* @__PURE__ */ Re(bc, [["render", Nc]]), Oc = {
|
|
5126
5139
|
name: "SidebarMenuBox",
|
|
5127
5140
|
components: {
|
|
5128
5141
|
SidebarMenuItem: Tc
|
|
@@ -5137,7 +5150,7 @@ const Tc = /* @__PURE__ */ we(bc, [["render", Nc]]), Oc = {
|
|
|
5137
5150
|
return {
|
|
5138
5151
|
// 左侧菜单默认展开
|
|
5139
5152
|
menuDefaultOpeneds: [],
|
|
5140
|
-
|
|
5153
|
+
menuCurrList: [],
|
|
5141
5154
|
// 当前激活菜单的 index
|
|
5142
5155
|
activeName: null
|
|
5143
5156
|
};
|
|
@@ -5151,14 +5164,14 @@ const Tc = /* @__PURE__ */ we(bc, [["render", Nc]]), Oc = {
|
|
|
5151
5164
|
}
|
|
5152
5165
|
},
|
|
5153
5166
|
menuCurrOnly(e) {
|
|
5154
|
-
this.
|
|
5167
|
+
this.menuCurrList = e;
|
|
5155
5168
|
},
|
|
5156
5169
|
menuCurrOpeneds(e) {
|
|
5157
5170
|
this.menuDefaultOpeneds = e;
|
|
5158
5171
|
}
|
|
5159
5172
|
},
|
|
5160
5173
|
created() {
|
|
5161
|
-
this.
|
|
5174
|
+
this.menuCurrList = this.menuCurrOnly, this.menuDefaultOpeneds = this.menuCurrOpeneds;
|
|
5162
5175
|
},
|
|
5163
5176
|
methods: {
|
|
5164
5177
|
handleOpen(e, t) {
|
|
@@ -5170,8 +5183,8 @@ const Tc = /* @__PURE__ */ we(bc, [["render", Nc]]), Oc = {
|
|
|
5170
5183
|
function wc(e, t, n, r, a, s) {
|
|
5171
5184
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
5172
5185
|
return U(), Q("div", Ic, [
|
|
5173
|
-
|
|
5174
|
-
|
|
5186
|
+
P("div", Cc, ne(e.openProductInfo.info_title), 1),
|
|
5187
|
+
P("div", Lc, [
|
|
5175
5188
|
w(i, {
|
|
5176
5189
|
collapse: n.collapse,
|
|
5177
5190
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -5182,7 +5195,7 @@ function wc(e, t, n, r, a, s) {
|
|
|
5182
5195
|
default: R(() => [
|
|
5183
5196
|
w(o, {
|
|
5184
5197
|
appData: e.openProductInfo,
|
|
5185
|
-
menuData: a.
|
|
5198
|
+
menuData: a.menuCurrList,
|
|
5186
5199
|
collapse: n.collapse
|
|
5187
5200
|
}, null, 8, ["appData", "menuData", "collapse"])
|
|
5188
5201
|
]),
|
|
@@ -5191,7 +5204,7 @@ function wc(e, t, n, r, a, s) {
|
|
|
5191
5204
|
])
|
|
5192
5205
|
]);
|
|
5193
5206
|
}
|
|
5194
|
-
const Dc = /* @__PURE__ */
|
|
5207
|
+
const Dc = /* @__PURE__ */ Re(Oc, [["render", wc]]), Rc = {
|
|
5195
5208
|
name: "ChangePassword",
|
|
5196
5209
|
props: {
|
|
5197
5210
|
modelValue: {
|
|
@@ -5242,8 +5255,8 @@ const Dc = /* @__PURE__ */ we(Oc, [["render", wc]]), Rc = {
|
|
|
5242
5255
|
});
|
|
5243
5256
|
}
|
|
5244
5257
|
}
|
|
5245
|
-
},
|
|
5246
|
-
function
|
|
5258
|
+
}, kc = { class: "dialog-footer" };
|
|
5259
|
+
function Pc(e, t, n, r, a, s) {
|
|
5247
5260
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
5248
5261
|
return U(), J(f, {
|
|
5249
5262
|
width: 520,
|
|
@@ -5253,7 +5266,7 @@ function kc(e, t, n, r, a, s) {
|
|
|
5253
5266
|
onClose: s.handleCancel
|
|
5254
5267
|
}, {
|
|
5255
5268
|
footer: R(() => [
|
|
5256
|
-
|
|
5269
|
+
P("div", kc, [
|
|
5257
5270
|
w(c, { onClick: s.handleCancel }, {
|
|
5258
5271
|
default: R(() => t[4] || (t[4] = [
|
|
5259
5272
|
te("取 消")
|
|
@@ -5326,7 +5339,7 @@ function kc(e, t, n, r, a, s) {
|
|
|
5326
5339
|
_: 1
|
|
5327
5340
|
}, 8, ["modelValue", "onClose"]);
|
|
5328
5341
|
}
|
|
5329
|
-
const Fc = /* @__PURE__ */
|
|
5342
|
+
const Fc = /* @__PURE__ */ Re(Rc, [["render", Pc]]), Mc = {
|
|
5330
5343
|
name: "SwitchBusiness",
|
|
5331
5344
|
props: {
|
|
5332
5345
|
modelValue: {
|
|
@@ -5414,17 +5427,17 @@ const Fc = /* @__PURE__ */ we(Rc, [["render", kc]]), Mc = {
|
|
|
5414
5427
|
function zc(e, t, n, r, a, s) {
|
|
5415
5428
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
5416
5429
|
return U(), Q("div", Uc, [
|
|
5417
|
-
|
|
5418
|
-
|
|
5430
|
+
P("div", Bc, [
|
|
5431
|
+
P("div", {
|
|
5419
5432
|
class: "cloud-login-change-reset",
|
|
5420
5433
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
5421
5434
|
}, ne(n.reselectTitle), 1),
|
|
5422
|
-
t[3] || (t[3] =
|
|
5423
|
-
t[4] || (t[4] =
|
|
5424
|
-
|
|
5425
|
-
|
|
5435
|
+
t[3] || (t[3] = P("div", { class: "cloud-login-change-title" }, "选择商户", -1)),
|
|
5436
|
+
t[4] || (t[4] = P("div", { class: "cloud-login-change-desc" }, [
|
|
5437
|
+
P("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
5438
|
+
P("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
5426
5439
|
], -1)),
|
|
5427
|
-
|
|
5440
|
+
P("div", xc, [
|
|
5428
5441
|
w(o, {
|
|
5429
5442
|
modelValue: a.chainKeyword,
|
|
5430
5443
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -5444,31 +5457,31 @@ function zc(e, t, n, r, a, s) {
|
|
|
5444
5457
|
_: 1
|
|
5445
5458
|
}, 8, ["onClick"])
|
|
5446
5459
|
]),
|
|
5447
|
-
|
|
5448
|
-
|
|
5460
|
+
P("div", Vc, [
|
|
5461
|
+
P("div", Gc, [
|
|
5449
5462
|
(U(!0), Q(he, null, Xe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
5450
5463
|
class: "cloud-login-change-group-item",
|
|
5451
5464
|
key: f
|
|
5452
5465
|
}, [
|
|
5453
|
-
|
|
5454
|
-
|
|
5466
|
+
P("div", $c, ne(c.title || "无") + "(" + ne(c.total) + ")", 1),
|
|
5467
|
+
P("div", Wc, [
|
|
5455
5468
|
(U(!0), Q(he, null, Xe(c.list, (u, m) => (U(), Q("div", {
|
|
5456
5469
|
class: "cloud-login-change-item-bao",
|
|
5457
5470
|
key: m,
|
|
5458
5471
|
onClick: (p) => s.chainSelection(u)
|
|
5459
5472
|
}, [
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5473
|
+
P("div", Hc, [
|
|
5474
|
+
P("div", Kc, [
|
|
5475
|
+
P("img", {
|
|
5463
5476
|
src: u.business_icon_cdn
|
|
5464
5477
|
}, null, 8, jc)
|
|
5465
5478
|
])
|
|
5466
5479
|
]),
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5480
|
+
P("div", qc, [
|
|
5481
|
+
P("div", Xc, ne(u.business_name), 1),
|
|
5482
|
+
P("div", Qc, "【" + ne(u.acc_role_type_str) + "】", 1)
|
|
5470
5483
|
]),
|
|
5471
|
-
|
|
5484
|
+
P("div", Jc, [
|
|
5472
5485
|
w(l, { type: "ElIconArrowRight" })
|
|
5473
5486
|
])
|
|
5474
5487
|
], 8, Yc))), 128))
|
|
@@ -5479,13 +5492,13 @@ function zc(e, t, n, r, a, s) {
|
|
|
5479
5492
|
])
|
|
5480
5493
|
]);
|
|
5481
5494
|
}
|
|
5482
|
-
const Zc = /* @__PURE__ */
|
|
5495
|
+
const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
5483
5496
|
name: "SameFrame",
|
|
5484
5497
|
components: {
|
|
5485
5498
|
SidebarMenuBox: Dc,
|
|
5486
5499
|
SameNavTabs: Ec,
|
|
5487
|
-
SameRouteView:
|
|
5488
|
-
HeaderSysSettDrawer:
|
|
5500
|
+
SameRouteView: uc,
|
|
5501
|
+
HeaderSysSettDrawer: ic,
|
|
5489
5502
|
ChangePassword: Fc,
|
|
5490
5503
|
SwitchBusiness: Zc
|
|
5491
5504
|
},
|
|
@@ -5525,7 +5538,7 @@ const Zc = /* @__PURE__ */ we(Mc, [["render", zc]]), eu = {
|
|
|
5525
5538
|
},
|
|
5526
5539
|
mounted() {
|
|
5527
5540
|
this.frameSidebarOpen = this.layoutSidebarState, is().$subscribe((t, n) => {
|
|
5528
|
-
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on",
|
|
5541
|
+
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5529
5542
|
}), window.onresize = () => {
|
|
5530
5543
|
(document.mozFullScreen || document.fullScreen || //谷歌浏览器及Webkit内核浏览器
|
|
5531
5544
|
document.webkitIsFullScreen || document.webkitRequestFullScreen || document.mozRequestFullScreen || document.msFullscreenEnabled) === void 0 && (this.full_screen = !1);
|
|
@@ -5533,7 +5546,7 @@ const Zc = /* @__PURE__ */ we(Mc, [["render", zc]]), eu = {
|
|
|
5533
5546
|
},
|
|
5534
5547
|
methods: {
|
|
5535
5548
|
frameSwicthMenu() {
|
|
5536
|
-
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on",
|
|
5549
|
+
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5537
5550
|
},
|
|
5538
5551
|
framePageRefresh() {
|
|
5539
5552
|
this.jumpsReload();
|
|
@@ -5634,18 +5647,18 @@ const Zc = /* @__PURE__ */ we(Mc, [["render", zc]]), eu = {
|
|
|
5634
5647
|
function hu(e, t, n, r, a, s) {
|
|
5635
5648
|
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), A = B("SameRouteView"), E = B("HeaderSysSettDrawer"), C = B("ChangePassword"), h = B("SwitchBusiness");
|
|
5636
5649
|
return U(), Q("div", tu, [
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5650
|
+
P("header", nu, [
|
|
5651
|
+
P("div", ru, [
|
|
5652
|
+
P("a", au, [
|
|
5653
|
+
P("img", {
|
|
5641
5654
|
class: "cloud-header__logo-img",
|
|
5642
|
-
src: e.
|
|
5655
|
+
src: e.openCaseInfo.platinfo_logo,
|
|
5643
5656
|
alt: ""
|
|
5644
5657
|
}, null, 8, su)
|
|
5645
5658
|
]),
|
|
5646
|
-
|
|
5659
|
+
P("div", ou, ne(e.openCaseInfo.platinfo_title), 1)
|
|
5647
5660
|
]),
|
|
5648
|
-
|
|
5661
|
+
P("div", {
|
|
5649
5662
|
class: "cloud-header__opt",
|
|
5650
5663
|
onClick: t[0] || (t[0] = (...g) => s.frameSwicthMenu && s.frameSwicthMenu(...g))
|
|
5651
5664
|
}, [
|
|
@@ -5660,7 +5673,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5660
5673
|
size: "20"
|
|
5661
5674
|
})) : ue("", !0)
|
|
5662
5675
|
]),
|
|
5663
|
-
|
|
5676
|
+
P("div", {
|
|
5664
5677
|
class: "cloud-header__opt",
|
|
5665
5678
|
onClick: t[1] || (t[1] = (...g) => s.framePageRefresh && s.framePageRefresh(...g))
|
|
5666
5679
|
}, [
|
|
@@ -5669,7 +5682,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5669
5682
|
size: "20"
|
|
5670
5683
|
})
|
|
5671
5684
|
]),
|
|
5672
|
-
|
|
5685
|
+
P("div", iu, [
|
|
5673
5686
|
w(l, { separator: "/" }, {
|
|
5674
5687
|
default: R(() => [
|
|
5675
5688
|
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
@@ -5695,8 +5708,8 @@ function hu(e, t, n, r, a, s) {
|
|
|
5695
5708
|
_: 1
|
|
5696
5709
|
})
|
|
5697
5710
|
]),
|
|
5698
|
-
t[13] || (t[13] =
|
|
5699
|
-
|
|
5711
|
+
t[13] || (t[13] = P("div", { class: "cloud-header__seat" }, null, -1)),
|
|
5712
|
+
P("div", {
|
|
5700
5713
|
class: "cloud-header__opt chopt-relative",
|
|
5701
5714
|
onClick: t[2] || (t[2] = (g) => s.frameHandleCommand("msg"))
|
|
5702
5715
|
}, [
|
|
@@ -5706,7 +5719,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5706
5719
|
}),
|
|
5707
5720
|
a.chatUnreadTotal > 0 ? (U(), Q("em", lu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : ue("", !0)
|
|
5708
5721
|
]),
|
|
5709
|
-
|
|
5722
|
+
P("div", {
|
|
5710
5723
|
class: "cloud-header__opt chopt-relative",
|
|
5711
5724
|
onClick: t[3] || (t[3] = (g) => s.frameHandleCommand("gongdan"))
|
|
5712
5725
|
}, [
|
|
@@ -5716,7 +5729,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5716
5729
|
}),
|
|
5717
5730
|
a.emailUnreadTotal > 0 ? (U(), Q("em", cu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : ue("", !0)
|
|
5718
5731
|
]),
|
|
5719
|
-
|
|
5732
|
+
P("div", uu, [
|
|
5720
5733
|
w(u, {
|
|
5721
5734
|
onCommand: s.frameHandleCommand,
|
|
5722
5735
|
"popper-class": "cloud-header__info_dropdown"
|
|
@@ -5772,20 +5785,20 @@ function hu(e, t, n, r, a, s) {
|
|
|
5772
5785
|
})
|
|
5773
5786
|
]),
|
|
5774
5787
|
default: R(() => [
|
|
5775
|
-
|
|
5776
|
-
|
|
5788
|
+
P("span", null, [
|
|
5789
|
+
P("img", {
|
|
5777
5790
|
class: "chinfo-avatar",
|
|
5778
5791
|
src: e.accountInfo.account_avatar_cdn,
|
|
5779
5792
|
title: "头像"
|
|
5780
5793
|
}, null, 8, fu),
|
|
5781
|
-
|
|
5794
|
+
P("div", _u, ne(s.headerInfoName), 1),
|
|
5782
5795
|
w(o, { type: "ElIconArrowDown" })
|
|
5783
5796
|
])
|
|
5784
5797
|
]),
|
|
5785
5798
|
_: 1
|
|
5786
5799
|
}, 8, ["onCommand"])
|
|
5787
5800
|
]),
|
|
5788
|
-
|
|
5801
|
+
P("div", {
|
|
5789
5802
|
title: "全屏",
|
|
5790
5803
|
class: "cloud-header__opt",
|
|
5791
5804
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
@@ -5802,7 +5815,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5802
5815
|
size: "20"
|
|
5803
5816
|
})) : ue("", !0)
|
|
5804
5817
|
]),
|
|
5805
|
-
|
|
5818
|
+
P("div", {
|
|
5806
5819
|
title: "设置",
|
|
5807
5820
|
class: "cloud-header__opt",
|
|
5808
5821
|
onClick: t[5] || (t[5] = (...g) => s.frameTopSysSettOpen && s.frameTopSysSettOpen(...g)),
|
|
@@ -5814,12 +5827,12 @@ function hu(e, t, n, r, a, s) {
|
|
|
5814
5827
|
})
|
|
5815
5828
|
])
|
|
5816
5829
|
]),
|
|
5817
|
-
|
|
5830
|
+
P("section", du, [
|
|
5818
5831
|
w(m, {
|
|
5819
5832
|
collapse: a.frameSidebarOpen == "off"
|
|
5820
5833
|
}, null, 8, ["collapse"])
|
|
5821
5834
|
]),
|
|
5822
|
-
|
|
5835
|
+
P("section", mu, [
|
|
5823
5836
|
Aa(w(p, null, null, 512), [
|
|
5824
5837
|
[ya, e.layoutNavTabs == "on"]
|
|
5825
5838
|
]),
|
|
@@ -5844,7 +5857,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5844
5857
|
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
|
|
5845
5858
|
]);
|
|
5846
5859
|
}
|
|
5847
|
-
const Yf = /* @__PURE__ */
|
|
5860
|
+
const Yf = /* @__PURE__ */ Re(eu, [["render", hu]]), gu = {
|
|
5848
5861
|
data() {
|
|
5849
5862
|
return {
|
|
5850
5863
|
watemarkText: "shiyun"
|
|
@@ -5852,9 +5865,9 @@ const Yf = /* @__PURE__ */ we(eu, [["render", hu]]), gu = {
|
|
|
5852
5865
|
},
|
|
5853
5866
|
computed: {
|
|
5854
5867
|
watemarkConf() {
|
|
5855
|
-
let
|
|
5856
|
-
return
|
|
5857
|
-
content:
|
|
5868
|
+
let e = this.openCaseInfo.platinfo_brand || "", n = Te().accountInfo || null;
|
|
5869
|
+
return n && n.account_mobile_hide && (e = n.business_name + n.account_mobile_hide), {
|
|
5870
|
+
content: e,
|
|
5858
5871
|
zIndex: -1,
|
|
5859
5872
|
rotate: -22,
|
|
5860
5873
|
gap: [100, 100],
|
|
@@ -5872,14 +5885,14 @@ const Yf = /* @__PURE__ */ we(eu, [["render", hu]]), gu = {
|
|
|
5872
5885
|
};
|
|
5873
5886
|
function pu(e, t, n, r, a, s) {
|
|
5874
5887
|
const o = B("el-watermark");
|
|
5875
|
-
return U(), J(o,
|
|
5888
|
+
return U(), J(o, $s(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5876
5889
|
default: R(() => [
|
|
5877
|
-
|
|
5890
|
+
Ws(e.$slots, "default")
|
|
5878
5891
|
]),
|
|
5879
5892
|
_: 3
|
|
5880
5893
|
}, 16);
|
|
5881
5894
|
}
|
|
5882
|
-
const Hf = /* @__PURE__ */
|
|
5895
|
+
const Hf = /* @__PURE__ */ Re(gu, [["render", pu]]);
|
|
5883
5896
|
(function() {
|
|
5884
5897
|
if (typeof EventTarget < "u") {
|
|
5885
5898
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -6066,7 +6079,7 @@ function j(e, t) {
|
|
|
6066
6079
|
function ot(e, t, n) {
|
|
6067
6080
|
typeof t == "function" && e.then(t), typeof n == "function" && e.catch(n);
|
|
6068
6081
|
}
|
|
6069
|
-
function
|
|
6082
|
+
function ke(e) {
|
|
6070
6083
|
return typeof e != "string" && (e = String(e)), e;
|
|
6071
6084
|
}
|
|
6072
6085
|
function dr() {
|
|
@@ -6075,7 +6088,7 @@ function dr() {
|
|
|
6075
6088
|
}
|
|
6076
6089
|
const Hn = "local-forage-detect-blob-support";
|
|
6077
6090
|
let $t;
|
|
6078
|
-
const be = {}, Au = Object.prototype.toString,
|
|
6091
|
+
const be = {}, Au = Object.prototype.toString, Pt = "readonly", tn = "readwrite";
|
|
6079
6092
|
function yu(e) {
|
|
6080
6093
|
for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
|
|
6081
6094
|
r[a] = e.charCodeAt(a);
|
|
@@ -6119,9 +6132,9 @@ function jn(e, t) {
|
|
|
6119
6132
|
if (r)
|
|
6120
6133
|
return r.reject(t), r.promise;
|
|
6121
6134
|
}
|
|
6122
|
-
function
|
|
6135
|
+
function us(e, t) {
|
|
6123
6136
|
return new F(function(n, r) {
|
|
6124
|
-
if (be[e.name] = be[e.name] ||
|
|
6137
|
+
if (be[e.name] = be[e.name] || ms(), e.db)
|
|
6125
6138
|
if (t)
|
|
6126
6139
|
jt(e), e.db.close();
|
|
6127
6140
|
else
|
|
@@ -6148,12 +6161,12 @@ function fs(e, t) {
|
|
|
6148
6161
|
});
|
|
6149
6162
|
}
|
|
6150
6163
|
function mr(e) {
|
|
6151
|
-
return
|
|
6164
|
+
return us(e, !1);
|
|
6152
6165
|
}
|
|
6153
6166
|
function hr(e) {
|
|
6154
|
-
return
|
|
6167
|
+
return us(e, !0);
|
|
6155
6168
|
}
|
|
6156
|
-
function
|
|
6169
|
+
function fs(e, t) {
|
|
6157
6170
|
if (!e.db)
|
|
6158
6171
|
return !0;
|
|
6159
6172
|
var n = !e.db.objectStoreNames.contains(e.storeName), r = e.version < e.db.version, a = e.version > e.db.version;
|
|
@@ -6179,11 +6192,11 @@ function Ou(e) {
|
|
|
6179
6192
|
}, r.readAsBinaryString(e);
|
|
6180
6193
|
});
|
|
6181
6194
|
}
|
|
6182
|
-
function
|
|
6195
|
+
function _s(e) {
|
|
6183
6196
|
var t = yu(atob(e.data));
|
|
6184
6197
|
return _r([t], { type: e.type });
|
|
6185
6198
|
}
|
|
6186
|
-
function
|
|
6199
|
+
function ds(e) {
|
|
6187
6200
|
return e && e.__local_forage_encoded_blob;
|
|
6188
6201
|
}
|
|
6189
6202
|
function Iu(e) {
|
|
@@ -6200,7 +6213,7 @@ function Cu(e) {
|
|
|
6200
6213
|
const a = n[r];
|
|
6201
6214
|
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
6202
6215
|
}
|
|
6203
|
-
return e.db = null, mr(e).then((a) => (e.db = a,
|
|
6216
|
+
return e.db = null, mr(e).then((a) => (e.db = a, fs(e) ? hr(e) : a)).then((a) => {
|
|
6204
6217
|
e.db = t.db = a;
|
|
6205
6218
|
for (var s = 0; s < n.length; s++)
|
|
6206
6219
|
n[s]._dbInfo.db = a;
|
|
@@ -6208,7 +6221,7 @@ function Cu(e) {
|
|
|
6208
6221
|
throw jn(e, a), a;
|
|
6209
6222
|
});
|
|
6210
6223
|
}
|
|
6211
|
-
function
|
|
6224
|
+
function Pe(e, t, n, r) {
|
|
6212
6225
|
r === void 0 && (r = 1);
|
|
6213
6226
|
try {
|
|
6214
6227
|
var a = e.db.transaction(e.storeName, t);
|
|
@@ -6221,12 +6234,12 @@ function Re(e, t, n, r) {
|
|
|
6221
6234
|
) && e.version <= e.db.version)
|
|
6222
6235
|
return e.db && (e.version = e.db.version + 1), hr(e);
|
|
6223
6236
|
}).then(() => Cu(e).then(function() {
|
|
6224
|
-
|
|
6237
|
+
Pe(e, t, n, r - 1);
|
|
6225
6238
|
})).catch(n);
|
|
6226
6239
|
n(s);
|
|
6227
6240
|
}
|
|
6228
6241
|
}
|
|
6229
|
-
function
|
|
6242
|
+
function ms() {
|
|
6230
6243
|
return {
|
|
6231
6244
|
// Running localForages sharing a database.
|
|
6232
6245
|
forages: [],
|
|
@@ -6246,7 +6259,7 @@ function Lu(e) {
|
|
|
6246
6259
|
for (var r in e)
|
|
6247
6260
|
n[r] = e[r];
|
|
6248
6261
|
var a = be[n.name];
|
|
6249
|
-
a || (a =
|
|
6262
|
+
a || (a = ms(), be[n.name] = a), a.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Iu);
|
|
6250
6263
|
var s = [];
|
|
6251
6264
|
function o() {
|
|
6252
6265
|
return F.resolve();
|
|
@@ -6259,7 +6272,7 @@ function Lu(e) {
|
|
|
6259
6272
|
return F.all(s).then(function() {
|
|
6260
6273
|
return n.db = a.db, mr(n);
|
|
6261
6274
|
}).then(function(f) {
|
|
6262
|
-
return n.db = f,
|
|
6275
|
+
return n.db = f, fs(n, t._defaultConfig.version) ? hr(n) : f;
|
|
6263
6276
|
}).then(function(f) {
|
|
6264
6277
|
n.db = a.db = f, t._dbInfo = n;
|
|
6265
6278
|
for (var u = 0; u < c.length; u++) {
|
|
@@ -6270,10 +6283,10 @@ function Lu(e) {
|
|
|
6270
6283
|
}
|
|
6271
6284
|
function wu(e, t) {
|
|
6272
6285
|
var n = this;
|
|
6273
|
-
e =
|
|
6286
|
+
e = ke(e);
|
|
6274
6287
|
var r = new F(function(a, s) {
|
|
6275
6288
|
n.ready().then(function() {
|
|
6276
|
-
|
|
6289
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6277
6290
|
if (o)
|
|
6278
6291
|
return s(o);
|
|
6279
6292
|
try {
|
|
@@ -6282,7 +6295,7 @@ function wu(e, t) {
|
|
|
6282
6295
|
), c = l.get(e);
|
|
6283
6296
|
c.onsuccess = function() {
|
|
6284
6297
|
var f = c.result;
|
|
6285
|
-
f === void 0 && (f = null),
|
|
6298
|
+
f === void 0 && (f = null), ds(f) && (f = _s(f)), a(f);
|
|
6286
6299
|
}, c.onerror = function() {
|
|
6287
6300
|
s(c.error);
|
|
6288
6301
|
};
|
|
@@ -6297,7 +6310,7 @@ function wu(e, t) {
|
|
|
6297
6310
|
function Du(e, t) {
|
|
6298
6311
|
var n = this, r = new F(function(a, s) {
|
|
6299
6312
|
n.ready().then(function() {
|
|
6300
|
-
|
|
6313
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6301
6314
|
if (o)
|
|
6302
6315
|
return s(o);
|
|
6303
6316
|
try {
|
|
@@ -6308,7 +6321,7 @@ function Du(e, t) {
|
|
|
6308
6321
|
var u = c.result;
|
|
6309
6322
|
if (u) {
|
|
6310
6323
|
var m = u.value;
|
|
6311
|
-
|
|
6324
|
+
ds(m) && (m = _s(m));
|
|
6312
6325
|
var p = e(
|
|
6313
6326
|
m,
|
|
6314
6327
|
u.key,
|
|
@@ -6330,7 +6343,7 @@ function Du(e, t) {
|
|
|
6330
6343
|
}
|
|
6331
6344
|
function Ru(e, t, n) {
|
|
6332
6345
|
var r = this;
|
|
6333
|
-
e =
|
|
6346
|
+
e = ke(e);
|
|
6334
6347
|
var a = new F(function(s, o) {
|
|
6335
6348
|
var i;
|
|
6336
6349
|
r.ready().then(function() {
|
|
@@ -6338,7 +6351,7 @@ function Ru(e, t, n) {
|
|
|
6338
6351
|
return l ? t : Ou(t);
|
|
6339
6352
|
}) : t;
|
|
6340
6353
|
}).then(function(l) {
|
|
6341
|
-
|
|
6354
|
+
Pe(r._dbInfo, tn, function(c, f) {
|
|
6342
6355
|
if (c)
|
|
6343
6356
|
return o(c);
|
|
6344
6357
|
try {
|
|
@@ -6361,12 +6374,12 @@ function Ru(e, t, n) {
|
|
|
6361
6374
|
});
|
|
6362
6375
|
return j(a, n), a;
|
|
6363
6376
|
}
|
|
6364
|
-
function
|
|
6377
|
+
function ku(e, t) {
|
|
6365
6378
|
var n = this;
|
|
6366
|
-
e =
|
|
6379
|
+
e = ke(e);
|
|
6367
6380
|
var r = new F(function(a, s) {
|
|
6368
6381
|
n.ready().then(function() {
|
|
6369
|
-
|
|
6382
|
+
Pe(n._dbInfo, tn, function(o, i) {
|
|
6370
6383
|
if (o)
|
|
6371
6384
|
return s(o);
|
|
6372
6385
|
try {
|
|
@@ -6389,10 +6402,10 @@ function Pu(e, t) {
|
|
|
6389
6402
|
});
|
|
6390
6403
|
return j(r, t), r;
|
|
6391
6404
|
}
|
|
6392
|
-
function
|
|
6405
|
+
function Pu(e) {
|
|
6393
6406
|
var t = this, n = new F(function(r, a) {
|
|
6394
6407
|
t.ready().then(function() {
|
|
6395
|
-
|
|
6408
|
+
Pe(t._dbInfo, tn, function(s, o) {
|
|
6396
6409
|
if (s)
|
|
6397
6410
|
return a(s);
|
|
6398
6411
|
try {
|
|
@@ -6416,7 +6429,7 @@ function ku(e) {
|
|
|
6416
6429
|
function Fu(e) {
|
|
6417
6430
|
var t = this, n = new F(function(r, a) {
|
|
6418
6431
|
t.ready().then(function() {
|
|
6419
|
-
|
|
6432
|
+
Pe(t._dbInfo, Pt, function(s, o) {
|
|
6420
6433
|
if (s)
|
|
6421
6434
|
return a(s);
|
|
6422
6435
|
try {
|
|
@@ -6443,7 +6456,7 @@ function Mu(e, t) {
|
|
|
6443
6456
|
return;
|
|
6444
6457
|
}
|
|
6445
6458
|
n.ready().then(function() {
|
|
6446
|
-
|
|
6459
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6447
6460
|
if (o)
|
|
6448
6461
|
return s(o);
|
|
6449
6462
|
try {
|
|
@@ -6471,7 +6484,7 @@ function Mu(e, t) {
|
|
|
6471
6484
|
function Uu(e) {
|
|
6472
6485
|
var t = this, n = new F(function(r, a) {
|
|
6473
6486
|
t.ready().then(function() {
|
|
6474
|
-
|
|
6487
|
+
Pe(t._dbInfo, Pt, function(s, o) {
|
|
6475
6488
|
if (s)
|
|
6476
6489
|
return a(s);
|
|
6477
6490
|
try {
|
|
@@ -6582,8 +6595,8 @@ var xu = {
|
|
|
6582
6595
|
iterate: Du,
|
|
6583
6596
|
getItem: wu,
|
|
6584
6597
|
setItem: Ru,
|
|
6585
|
-
removeItem:
|
|
6586
|
-
clear:
|
|
6598
|
+
removeItem: ku,
|
|
6599
|
+
clear: Pu,
|
|
6587
6600
|
length: Fu,
|
|
6588
6601
|
key: Mu,
|
|
6589
6602
|
keys: Uu,
|
|
@@ -6592,26 +6605,26 @@ var xu = {
|
|
|
6592
6605
|
function Vu() {
|
|
6593
6606
|
return typeof openDatabase == "function";
|
|
6594
6607
|
}
|
|
6595
|
-
var
|
|
6596
|
-
function
|
|
6608
|
+
var Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Gu = "~~local_forage_type~", da = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", qn = qt.length, gr = "arbf", Xn = "blob", hs = "si08", gs = "ui08", ps = "uic8", Es = "si16", bs = "si32", Ss = "ur16", vs = "ui32", As = "fl32", ys = "fl64", ma = qn + gr.length, ha = Object.prototype.toString;
|
|
6609
|
+
function Ns(e) {
|
|
6597
6610
|
var t = e.length * 0.75, n = e.length, r, a = 0, s, o, i, l;
|
|
6598
6611
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
6599
6612
|
var c = new ArrayBuffer(t), f = new Uint8Array(c);
|
|
6600
6613
|
for (r = 0; r < n; r += 4)
|
|
6601
|
-
s =
|
|
6614
|
+
s = Ue.indexOf(e[r]), o = Ue.indexOf(e[r + 1]), i = Ue.indexOf(e[r + 2]), l = Ue.indexOf(e[r + 3]), f[a++] = s << 2 | o >> 4, f[a++] = (o & 15) << 4 | i >> 2, f[a++] = (i & 3) << 6 | l & 63;
|
|
6602
6615
|
return c;
|
|
6603
6616
|
}
|
|
6604
6617
|
function Qn(e) {
|
|
6605
6618
|
var t = new Uint8Array(e), n = "", r;
|
|
6606
6619
|
for (r = 0; r < t.length; r += 3)
|
|
6607
|
-
n +=
|
|
6620
|
+
n += Ue[t[r] >> 2], n += Ue[(t[r] & 3) << 4 | t[r + 1] >> 4], n += Ue[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += Ue[t[r + 2] & 63];
|
|
6608
6621
|
return t.length % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : t.length % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
6609
6622
|
}
|
|
6610
6623
|
function $u(e, t) {
|
|
6611
6624
|
var n = "";
|
|
6612
6625
|
if (e && (n = ha.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && ha.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
6613
6626
|
var r, a = qt;
|
|
6614
|
-
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a +=
|
|
6627
|
+
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a += hs : n === "[object Uint8Array]" ? a += gs : n === "[object Uint8ClampedArray]" ? a += ps : n === "[object Int16Array]" ? a += Es : n === "[object Uint16Array]" ? a += Ss : n === "[object Int32Array]" ? a += bs : n === "[object Uint32Array]" ? a += vs : n === "[object Float32Array]" ? a += As : n === "[object Float64Array]" ? a += ys : t(new Error("Failed to get type for BinaryArray"))), t(a + Qn(r));
|
|
6615
6628
|
} else if (n === "[object Blob]") {
|
|
6616
6629
|
var s = new FileReader();
|
|
6617
6630
|
s.onload = function() {
|
|
@@ -6636,29 +6649,29 @@ function Wu(e) {
|
|
|
6636
6649
|
var a = t.match(da);
|
|
6637
6650
|
r = a[1], t = t.substring(a[0].length);
|
|
6638
6651
|
}
|
|
6639
|
-
var s =
|
|
6652
|
+
var s = Ns(t);
|
|
6640
6653
|
switch (n) {
|
|
6641
6654
|
case gr:
|
|
6642
6655
|
return s;
|
|
6643
6656
|
case Xn:
|
|
6644
6657
|
return _r([s], { type: r });
|
|
6645
|
-
case
|
|
6658
|
+
case hs:
|
|
6646
6659
|
return new Int8Array(s);
|
|
6647
|
-
case
|
|
6660
|
+
case gs:
|
|
6648
6661
|
return new Uint8Array(s);
|
|
6649
|
-
case
|
|
6662
|
+
case ps:
|
|
6650
6663
|
return new Uint8ClampedArray(s);
|
|
6651
|
-
case
|
|
6664
|
+
case Es:
|
|
6652
6665
|
return new Int16Array(s);
|
|
6653
|
-
case vs:
|
|
6654
|
-
return new Uint16Array(s);
|
|
6655
6666
|
case Ss:
|
|
6667
|
+
return new Uint16Array(s);
|
|
6668
|
+
case bs:
|
|
6656
6669
|
return new Int32Array(s);
|
|
6657
|
-
case
|
|
6670
|
+
case vs:
|
|
6658
6671
|
return new Uint32Array(s);
|
|
6659
|
-
case
|
|
6672
|
+
case As:
|
|
6660
6673
|
return new Float32Array(s);
|
|
6661
|
-
case
|
|
6674
|
+
case ys:
|
|
6662
6675
|
return new Float64Array(s);
|
|
6663
6676
|
default:
|
|
6664
6677
|
throw new Error("Unkown type: " + n);
|
|
@@ -6667,10 +6680,10 @@ function Wu(e) {
|
|
|
6667
6680
|
var pr = {
|
|
6668
6681
|
serialize: $u,
|
|
6669
6682
|
deserialize: Wu,
|
|
6670
|
-
stringToBuffer:
|
|
6683
|
+
stringToBuffer: Ns,
|
|
6671
6684
|
bufferToString: Qn
|
|
6672
6685
|
};
|
|
6673
|
-
function
|
|
6686
|
+
function Ts(e, t, n, r) {
|
|
6674
6687
|
e.executeSql(
|
|
6675
6688
|
`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,
|
|
6676
6689
|
[],
|
|
@@ -6697,7 +6710,7 @@ function Yu(e) {
|
|
|
6697
6710
|
return o(i);
|
|
6698
6711
|
}
|
|
6699
6712
|
n.db.transaction(function(i) {
|
|
6700
|
-
|
|
6713
|
+
Ts(
|
|
6701
6714
|
i,
|
|
6702
6715
|
n,
|
|
6703
6716
|
function() {
|
|
@@ -6721,7 +6734,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6721
6734
|
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
|
|
6722
6735
|
[t.storeName],
|
|
6723
6736
|
function(l, c) {
|
|
6724
|
-
c.rows.length ? s(l, i) :
|
|
6737
|
+
c.rows.length ? s(l, i) : Ts(
|
|
6725
6738
|
l,
|
|
6726
6739
|
t,
|
|
6727
6740
|
function() {
|
|
@@ -6743,7 +6756,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6743
6756
|
}
|
|
6744
6757
|
function Hu(e, t) {
|
|
6745
6758
|
var n = this;
|
|
6746
|
-
e =
|
|
6759
|
+
e = ke(e);
|
|
6747
6760
|
var r = new F(function(a, s) {
|
|
6748
6761
|
n.ready().then(function() {
|
|
6749
6762
|
var o = n._dbInfo;
|
|
@@ -6797,9 +6810,9 @@ function Ku(e, t) {
|
|
|
6797
6810
|
});
|
|
6798
6811
|
return j(r, t), r;
|
|
6799
6812
|
}
|
|
6800
|
-
function
|
|
6813
|
+
function Os(e, t, n, r) {
|
|
6801
6814
|
var a = this;
|
|
6802
|
-
e =
|
|
6815
|
+
e = ke(e);
|
|
6803
6816
|
var s = new F(function(o, i) {
|
|
6804
6817
|
a.ready().then(function() {
|
|
6805
6818
|
t === void 0 && (t = null);
|
|
@@ -6824,7 +6837,7 @@ function Is(e, t, n, r) {
|
|
|
6824
6837
|
if (m.code === m.QUOTA_ERR) {
|
|
6825
6838
|
if (r > 0) {
|
|
6826
6839
|
o(
|
|
6827
|
-
|
|
6840
|
+
Os.apply(a, [
|
|
6828
6841
|
e,
|
|
6829
6842
|
l,
|
|
6830
6843
|
n,
|
|
@@ -6843,11 +6856,11 @@ function Is(e, t, n, r) {
|
|
|
6843
6856
|
return j(s, n), s;
|
|
6844
6857
|
}
|
|
6845
6858
|
function ju(e, t, n) {
|
|
6846
|
-
return
|
|
6859
|
+
return Os.apply(this, [e, t, n, 1]);
|
|
6847
6860
|
}
|
|
6848
6861
|
function qu(e, t) {
|
|
6849
6862
|
var n = this;
|
|
6850
|
-
e =
|
|
6863
|
+
e = ke(e);
|
|
6851
6864
|
var r = new F(function(a, s) {
|
|
6852
6865
|
n.ready().then(function() {
|
|
6853
6866
|
var o = n._dbInfo;
|
|
@@ -7055,7 +7068,7 @@ function nf() {
|
|
|
7055
7068
|
return !1;
|
|
7056
7069
|
}
|
|
7057
7070
|
}
|
|
7058
|
-
function
|
|
7071
|
+
function Is(e, t) {
|
|
7059
7072
|
var n = e.name + "/";
|
|
7060
7073
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
7061
7074
|
}
|
|
@@ -7075,7 +7088,7 @@ function sf(e) {
|
|
|
7075
7088
|
if (e)
|
|
7076
7089
|
for (var r in e)
|
|
7077
7090
|
n[r] = e[r];
|
|
7078
|
-
return n.keyPrefix =
|
|
7091
|
+
return n.keyPrefix = Is(e, t._defaultConfig), af() ? (t._dbInfo = n, n.serializer = pr, F.resolve()) : F.reject();
|
|
7079
7092
|
}
|
|
7080
7093
|
function of(e) {
|
|
7081
7094
|
var t = this, n = t.ready().then(function() {
|
|
@@ -7088,7 +7101,7 @@ function of(e) {
|
|
|
7088
7101
|
}
|
|
7089
7102
|
function lf(e, t) {
|
|
7090
7103
|
var n = this;
|
|
7091
|
-
e =
|
|
7104
|
+
e = ke(e);
|
|
7092
7105
|
var r = n.ready().then(function() {
|
|
7093
7106
|
var a = n._dbInfo, s = localStorage.getItem(a.keyPrefix + e);
|
|
7094
7107
|
return s && (s = a.serializer.deserialize(s)), s;
|
|
@@ -7142,7 +7155,7 @@ function _f(e) {
|
|
|
7142
7155
|
}
|
|
7143
7156
|
function df(e, t) {
|
|
7144
7157
|
var n = this;
|
|
7145
|
-
e =
|
|
7158
|
+
e = ke(e);
|
|
7146
7159
|
var r = n.ready().then(function() {
|
|
7147
7160
|
var a = n._dbInfo;
|
|
7148
7161
|
localStorage.removeItem(a.keyPrefix + e);
|
|
@@ -7151,7 +7164,7 @@ function df(e, t) {
|
|
|
7151
7164
|
}
|
|
7152
7165
|
function mf(e, t, n) {
|
|
7153
7166
|
var r = this;
|
|
7154
|
-
e =
|
|
7167
|
+
e = ke(e);
|
|
7155
7168
|
var a = r.ready().then(function() {
|
|
7156
7169
|
t === void 0 && (t = null);
|
|
7157
7170
|
var s = t;
|
|
@@ -7178,7 +7191,7 @@ function hf(e, t) {
|
|
|
7178
7191
|
}
|
|
7179
7192
|
var r = this, a;
|
|
7180
7193
|
return e.name ? a = new F(function(s) {
|
|
7181
|
-
e.storeName ? s(
|
|
7194
|
+
e.storeName ? s(Is(e, r._defaultConfig)) : s(`${e.name}/`);
|
|
7182
7195
|
}).then(function(s) {
|
|
7183
7196
|
for (var o = localStorage.length - 1; o >= 0; o--) {
|
|
7184
7197
|
var i = localStorage.key(o);
|
|
@@ -7209,7 +7222,7 @@ const pf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7209
7222
|
r++;
|
|
7210
7223
|
}
|
|
7211
7224
|
return !1;
|
|
7212
|
-
},
|
|
7225
|
+
}, Cs = Array.isArray || function(e) {
|
|
7213
7226
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7214
7227
|
}, vt = {}, ga = {}, it = {
|
|
7215
7228
|
INDEXEDDB: xu,
|
|
@@ -7254,7 +7267,7 @@ function Ln() {
|
|
|
7254
7267
|
const t = arguments[e];
|
|
7255
7268
|
if (t)
|
|
7256
7269
|
for (let n in t)
|
|
7257
|
-
t.hasOwnProperty(n) && (
|
|
7270
|
+
t.hasOwnProperty(n) && (Cs(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
7258
7271
|
}
|
|
7259
7272
|
return arguments[0];
|
|
7260
7273
|
}
|
|
@@ -7355,7 +7368,7 @@ class Er {
|
|
|
7355
7368
|
}
|
|
7356
7369
|
setDriver(t, n, r) {
|
|
7357
7370
|
const a = this;
|
|
7358
|
-
|
|
7371
|
+
Cs(t) || (t = [t]);
|
|
7359
7372
|
const s = this._getSupportedDrivers(t);
|
|
7360
7373
|
function o() {
|
|
7361
7374
|
a._config.driver = a.driver();
|
|
@@ -7574,7 +7587,7 @@ class nn {
|
|
|
7574
7587
|
}
|
|
7575
7588
|
/* 初始化 request 句柄 */
|
|
7576
7589
|
_initReqHandle() {
|
|
7577
|
-
this.requestHandle =
|
|
7590
|
+
this.requestHandle = Qs.create({
|
|
7578
7591
|
timeout: 1e4,
|
|
7579
7592
|
// request timeout
|
|
7580
7593
|
// 表示跨域请求时是否需要使用凭证;
|
|
@@ -7949,7 +7962,7 @@ const If = {
|
|
|
7949
7962
|
};
|
|
7950
7963
|
nn.prototype.resetNetError = function(e) {
|
|
7951
7964
|
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
7952
|
-
return Te().SA_ACCOUNT_LOGOUT(),
|
|
7965
|
+
return Te().SA_ACCOUNT_LOGOUT(), Hs.alert("未经授权,请登录", "友情提示", {
|
|
7953
7966
|
// if you want to disable its autofocus
|
|
7954
7967
|
// autofocus: false,
|
|
7955
7968
|
confirmButtonText: "OK",
|
|
@@ -7958,7 +7971,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
7958
7971
|
}
|
|
7959
7972
|
}), !1;
|
|
7960
7973
|
let t = (e.status ? `[ ${e.status} ] ` : "") + (e.title || "提示");
|
|
7961
|
-
|
|
7974
|
+
Ks({
|
|
7962
7975
|
title: t,
|
|
7963
7976
|
message: e.message,
|
|
7964
7977
|
type: e.type || "info",
|
|
@@ -7979,7 +7992,7 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
7979
7992
|
}), t > 0 && (__ajaxList = __ajaxList.filter((n) => n.id !== e)), t;
|
|
7980
7993
|
};
|
|
7981
7994
|
let qe = null;
|
|
7982
|
-
function
|
|
7995
|
+
function Ls(e = {}) {
|
|
7983
7996
|
const t = Nt();
|
|
7984
7997
|
qe = new nn({
|
|
7985
7998
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
@@ -8013,7 +8026,7 @@ function ws(e = {}) {
|
|
|
8013
8026
|
return qe.setApiFlag(a), qe.setApiAuth(s), qe;
|
|
8014
8027
|
}
|
|
8015
8028
|
function Lf() {
|
|
8016
|
-
return qe || (qe =
|
|
8029
|
+
return qe || (qe = Ls()), qe;
|
|
8017
8030
|
}
|
|
8018
8031
|
const fe = new Proxy(
|
|
8019
8032
|
{},
|
|
@@ -8070,7 +8083,7 @@ var wf = {
|
|
|
8070
8083
|
},
|
|
8071
8084
|
// 跨应用路由跳转
|
|
8072
8085
|
jumpsQiankun(e) {
|
|
8073
|
-
|
|
8086
|
+
Zs(e);
|
|
8074
8087
|
}
|
|
8075
8088
|
}
|
|
8076
8089
|
};
|
|
@@ -8267,16 +8280,16 @@ var Rf = {
|
|
|
8267
8280
|
}
|
|
8268
8281
|
}
|
|
8269
8282
|
};
|
|
8270
|
-
function
|
|
8271
|
-
e.use(
|
|
8283
|
+
function kf(e) {
|
|
8284
|
+
e.use(Ys, {
|
|
8272
8285
|
// size: 'default',
|
|
8273
8286
|
locale: Rf
|
|
8274
8287
|
});
|
|
8275
|
-
for (const [t, n] of Object.entries(
|
|
8288
|
+
for (const [t, n] of Object.entries(js))
|
|
8276
8289
|
e.component("ElIcon" + t, n);
|
|
8277
8290
|
}
|
|
8278
|
-
function
|
|
8279
|
-
e.use(
|
|
8291
|
+
function Pf(e) {
|
|
8292
|
+
e.use(qs, {
|
|
8280
8293
|
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8281
8294
|
uploadImg: {
|
|
8282
8295
|
// fileSize: 5,
|
|
@@ -8305,20 +8318,20 @@ function kf(e) {
|
|
|
8305
8318
|
// }
|
|
8306
8319
|
}
|
|
8307
8320
|
});
|
|
8308
|
-
for (const [t, n] of Object.entries(
|
|
8321
|
+
for (const [t, n] of Object.entries(Xs))
|
|
8309
8322
|
e.component("cvSvg" + t, n);
|
|
8310
8323
|
}
|
|
8311
8324
|
async function Kf(e, t) {
|
|
8312
|
-
|
|
8325
|
+
Js(t), Ls(e), kt().init(), Be().init(), await fr().init(), await Te().init();
|
|
8313
8326
|
}
|
|
8314
8327
|
async function jf(e, t, n, r, a = "", s = null) {
|
|
8315
8328
|
Zt().init(r), en().init(n);
|
|
8316
8329
|
let o = e.config.globalProperties;
|
|
8317
8330
|
o.$onLaunched = new Promise((l) => {
|
|
8318
8331
|
o.$isResolve = l;
|
|
8319
|
-
}), o.$request = fe, o.$cache = D,
|
|
8320
|
-
let i =
|
|
8321
|
-
|
|
8332
|
+
}), o.$request = fe, o.$cache = D, kf(e), Pf(e), Df(e, o), e.mixin(nc()), e.mixin(wf), await Ff(t, r, a), e.use(as);
|
|
8333
|
+
let i = kt().SA_LANGUAGE_GET();
|
|
8334
|
+
Ul(i, s), window.$t = Ke.t;
|
|
8322
8335
|
}
|
|
8323
8336
|
async function Ff(e, t, n) {
|
|
8324
8337
|
const r = Tt(), a = Te(), s = Zt(), o = en();
|
|
@@ -8353,29 +8366,29 @@ async function Ff(e, t, n) {
|
|
|
8353
8366
|
});
|
|
8354
8367
|
}
|
|
8355
8368
|
async function qf(e, t, n) {
|
|
8356
|
-
me.__POWERED_BY_QIANKUN__ ?
|
|
8369
|
+
me.__POWERED_BY_QIANKUN__ ? to(e, t, n) : t();
|
|
8357
8370
|
}
|
|
8358
8371
|
export {
|
|
8359
8372
|
fe as H,
|
|
8360
8373
|
Zc as S,
|
|
8361
|
-
|
|
8362
|
-
|
|
8374
|
+
Re as _,
|
|
8375
|
+
Be as a,
|
|
8363
8376
|
Te as b,
|
|
8364
8377
|
fr as c,
|
|
8365
8378
|
Nt as d,
|
|
8366
8379
|
Yf as e,
|
|
8367
|
-
|
|
8380
|
+
uc as f,
|
|
8368
8381
|
Hf as g,
|
|
8369
8382
|
Tt as h,
|
|
8370
8383
|
is as i,
|
|
8371
8384
|
Zt as j,
|
|
8372
8385
|
en as k,
|
|
8373
8386
|
D as l,
|
|
8374
|
-
|
|
8387
|
+
Ls as m,
|
|
8375
8388
|
Kf as n,
|
|
8376
8389
|
jf as o,
|
|
8377
8390
|
qf as p,
|
|
8378
8391
|
me as q,
|
|
8379
|
-
|
|
8380
|
-
|
|
8392
|
+
Js as s,
|
|
8393
|
+
kt as u
|
|
8381
8394
|
};
|