@10yun/open-sdk 0.3.121 → 0.3.122
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-eOxp6uCK.js → 404-BzS1uV1B.js} +1 -1
- package/dist/{404-BFyR7lt-.cjs → 404-DJdhv64H.cjs} +1 -1
- package/dist/{alone_run-DeT-QveB.cjs → alone_run-1wMs67Iw.cjs} +1 -1
- package/dist/{alone_run-D6MaSiBX.js → alone_run-D6iWzaJ1.js} +1 -1
- package/dist/{index-B5asDzhG.js → index-CXMwNJfl.js} +975 -960
- package/dist/{index-BDkGvqi-.cjs → index-CYJLKCkv.cjs} +1 -1
- package/dist/{login-B9AHugy2.js → login-1tlYEiXY.js} +1 -1
- package/dist/{login-x6WIbNRH.cjs → login-B0exzC2L.cjs} +1 -1
- package/dist/{none-sp97NM-k.cjs → none-CQcLemU1.cjs} +1 -1
- package/dist/{none-BtuWNAZm.js → none-CX-nyJTn.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as Le, mapState as Re } from "pinia";
|
|
2
|
-
import { effectScope as xo, ref as Vo, shallowRef as Bo, computed as Et, watch as Pn, isRef as Go, defineComponent as ta, getCurrentInstance as
|
|
3
|
-
import zo, { ElMessage as
|
|
2
|
+
import { effectScope as xo, ref as Vo, shallowRef as Bo, computed as Et, watch as Pn, isRef as Go, defineComponent as ta, getCurrentInstance as Nt, h as Ir, Fragment as le, inject as $o, onMounted as Wo, onUnmounted as Yo, createVNode as b, Text as Ho, resolveComponent as L, createBlock as $, openBlock as F, withCtx as C, createElementVNode as D, createElementBlock as W, renderList as Ne, createTextVNode as V, toDisplayString as z, createCommentVNode as te, Transition as Ko, normalizeClass as Kt, resolveDynamicComponent as jo, withDirectives as Rt, withModifiers as qo, normalizeStyle as Fn, vShow as Lr, mergeProps as Xo, renderSlot as Qo, createSlots as Jo, resolveDirective as na } from "vue";
|
|
3
|
+
import zo, { ElMessage as Na, ElMessageBox as Zo, ElNotification as es } from "element-plus";
|
|
4
4
|
import * as ts from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
@@ -208,7 +208,7 @@ function fs(e) {
|
|
|
208
208
|
r[a] = e.charCodeAt(a);
|
|
209
209
|
return n;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ds(e) {
|
|
212
212
|
return new U(function(t) {
|
|
213
213
|
var n = e.transaction(Mn, zt), r = aa([""]);
|
|
214
214
|
n.objectStore(Mn).put(r, "key"), n.onabort = function(a) {
|
|
@@ -223,8 +223,8 @@ function _s(e) {
|
|
|
223
223
|
return !1;
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return typeof Vt == "boolean" ? U.resolve(Vt) :
|
|
226
|
+
function _s(e) {
|
|
227
|
+
return typeof Vt == "boolean" ? U.resolve(Vt) : ds(e).then(function(t) {
|
|
228
228
|
return Vt = t, Vt;
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -390,8 +390,8 @@ function ps(e) {
|
|
|
390
390
|
}).then(function(f) {
|
|
391
391
|
n.db = a.db = f, t._dbInfo = n;
|
|
392
392
|
for (var u = 0; u < c.length; u++) {
|
|
393
|
-
var
|
|
394
|
-
|
|
393
|
+
var _ = c[u];
|
|
394
|
+
_ !== t && (_._dbInfo.db = n.db, _._dbInfo.version = n.version);
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}
|
|
@@ -421,7 +421,7 @@ function Es(e, t) {
|
|
|
421
421
|
});
|
|
422
422
|
return Q(r, t), r;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Ss(e, t) {
|
|
425
425
|
var n = this, r = new U(function(a, o) {
|
|
426
426
|
n.ready().then(function() {
|
|
427
427
|
Ue(n._dbInfo, Pt, function(s, l) {
|
|
@@ -434,10 +434,10 @@ function bs(e, t) {
|
|
|
434
434
|
c.onsuccess = function() {
|
|
435
435
|
var u = c.result;
|
|
436
436
|
if (u) {
|
|
437
|
-
var
|
|
438
|
-
Pr(
|
|
437
|
+
var _ = u.value;
|
|
438
|
+
Pr(_) && (_ = Rr(_));
|
|
439
439
|
var g = e(
|
|
440
|
-
|
|
440
|
+
_,
|
|
441
441
|
u.key,
|
|
442
442
|
f++
|
|
443
443
|
);
|
|
@@ -455,13 +455,13 @@ function bs(e, t) {
|
|
|
455
455
|
});
|
|
456
456
|
return Q(r, t), r;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function bs(e, t, n) {
|
|
459
459
|
var r = this;
|
|
460
460
|
e = Me(e);
|
|
461
461
|
var a = new U(function(o, s) {
|
|
462
462
|
var l;
|
|
463
463
|
r.ready().then(function() {
|
|
464
|
-
return l = r._dbInfo, us.call(t) === "[object Blob]" ?
|
|
464
|
+
return l = r._dbInfo, us.call(t) === "[object Blob]" ? _s(l.db).then(function(i) {
|
|
465
465
|
return i ? t : ms(t);
|
|
466
466
|
}) : t;
|
|
467
467
|
}).then(function(i) {
|
|
@@ -473,11 +473,11 @@ function Ss(e, t, n) {
|
|
|
473
473
|
r._dbInfo.storeName
|
|
474
474
|
);
|
|
475
475
|
i === null && (i = void 0);
|
|
476
|
-
var
|
|
476
|
+
var _ = u.put(i, e);
|
|
477
477
|
f.oncomplete = function() {
|
|
478
478
|
i === void 0 && (i = null), o(i);
|
|
479
479
|
}, f.onabort = f.onerror = function() {
|
|
480
|
-
var g =
|
|
480
|
+
var g = _.error ? _.error : _.transaction.error;
|
|
481
481
|
s(g);
|
|
482
482
|
};
|
|
483
483
|
} catch (g) {
|
|
@@ -595,7 +595,7 @@ function As(e, t) {
|
|
|
595
595
|
});
|
|
596
596
|
return Q(r, t), r;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Ns(e) {
|
|
599
599
|
var t = this, n = new U(function(r, a) {
|
|
600
600
|
t.ready().then(function() {
|
|
601
601
|
Ue(t._dbInfo, Pt, function(o, s) {
|
|
@@ -623,7 +623,7 @@ function Cs(e) {
|
|
|
623
623
|
});
|
|
624
624
|
return Q(n, e), n;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Cs(e, t) {
|
|
627
627
|
t = ra.apply(this, arguments);
|
|
628
628
|
var n = this.config();
|
|
629
629
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -645,11 +645,11 @@ function Ns(e, t) {
|
|
|
645
645
|
jt(e);
|
|
646
646
|
const c = ve[e.name], f = c.forages;
|
|
647
647
|
l.close();
|
|
648
|
-
for (let
|
|
649
|
-
const g = f[
|
|
648
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
649
|
+
const g = f[_];
|
|
650
650
|
g._dbInfo.db = null, g._dbInfo.version = i;
|
|
651
651
|
}
|
|
652
|
-
return new U((
|
|
652
|
+
return new U((_, g) => {
|
|
653
653
|
const T = ct.open(e.name, i);
|
|
654
654
|
T.onerror = (p) => {
|
|
655
655
|
T.result.close(), g(p);
|
|
@@ -658,27 +658,27 @@ function Ns(e, t) {
|
|
|
658
658
|
p.deleteObjectStore(e.storeName);
|
|
659
659
|
}, T.onsuccess = () => {
|
|
660
660
|
const p = T.result;
|
|
661
|
-
p.close(),
|
|
661
|
+
p.close(), _(p);
|
|
662
662
|
};
|
|
663
|
-
}).then((
|
|
664
|
-
c.db =
|
|
663
|
+
}).then((_) => {
|
|
664
|
+
c.db = _;
|
|
665
665
|
for (let g = 0; g < f.length; g++) {
|
|
666
666
|
const T = f[g];
|
|
667
|
-
T._dbInfo.db =
|
|
667
|
+
T._dbInfo.db = _, Un(T._dbInfo);
|
|
668
668
|
}
|
|
669
|
-
}).catch((
|
|
670
|
-
throw (xn(e,
|
|
671
|
-
}),
|
|
669
|
+
}).catch((_) => {
|
|
670
|
+
throw (xn(e, _) || U.resolve()).catch(() => {
|
|
671
|
+
}), _;
|
|
672
672
|
});
|
|
673
673
|
}) : a = s.then((l) => {
|
|
674
674
|
jt(e);
|
|
675
675
|
const i = ve[e.name], c = i.forages;
|
|
676
676
|
l.close();
|
|
677
677
|
for (var f = 0; f < c.length; f++) {
|
|
678
|
-
const
|
|
679
|
-
|
|
678
|
+
const _ = c[f];
|
|
679
|
+
_._dbInfo.db = null;
|
|
680
680
|
}
|
|
681
|
-
return new U((
|
|
681
|
+
return new U((_, g) => {
|
|
682
682
|
var T = ct.deleteDatabase(e.name);
|
|
683
683
|
T.onerror = () => {
|
|
684
684
|
const p = T.result;
|
|
@@ -686,17 +686,17 @@ function Ns(e, t) {
|
|
|
686
686
|
}, T.onblocked = () => {
|
|
687
687
|
}, T.onsuccess = () => {
|
|
688
688
|
const p = T.result;
|
|
689
|
-
p && p.close(),
|
|
689
|
+
p && p.close(), _(p);
|
|
690
690
|
};
|
|
691
|
-
}).then((
|
|
692
|
-
i.db =
|
|
691
|
+
}).then((_) => {
|
|
692
|
+
i.db = _;
|
|
693
693
|
for (var g = 0; g < c.length; g++) {
|
|
694
694
|
const T = c[g];
|
|
695
695
|
Un(T._dbInfo);
|
|
696
696
|
}
|
|
697
|
-
}).catch((
|
|
698
|
-
throw (xn(e,
|
|
699
|
-
}),
|
|
697
|
+
}).catch((_) => {
|
|
698
|
+
throw (xn(e, _) || U.resolve()).catch(() => {
|
|
699
|
+
}), _;
|
|
700
700
|
});
|
|
701
701
|
});
|
|
702
702
|
}
|
|
@@ -706,20 +706,20 @@ var Os = {
|
|
|
706
706
|
_driver: "asyncStorage",
|
|
707
707
|
_initStorage: ps,
|
|
708
708
|
_support: cs(),
|
|
709
|
-
iterate:
|
|
709
|
+
iterate: Ss,
|
|
710
710
|
getItem: Es,
|
|
711
|
-
setItem:
|
|
711
|
+
setItem: bs,
|
|
712
712
|
removeItem: vs,
|
|
713
713
|
clear: ys,
|
|
714
714
|
length: Ts,
|
|
715
715
|
key: As,
|
|
716
|
-
keys:
|
|
717
|
-
dropInstance:
|
|
716
|
+
keys: Ns,
|
|
717
|
+
dropInstance: Cs
|
|
718
718
|
};
|
|
719
719
|
function Is() {
|
|
720
720
|
return typeof openDatabase == "function";
|
|
721
721
|
}
|
|
722
|
-
var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ls = "~~local_forage_type~",
|
|
722
|
+
var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ls = "~~local_forage_type~", Ca = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", Vn = qt.length, ia = "arbf", Bn = "blob", Mr = "si08", Ur = "ui08", xr = "uic8", Vr = "si16", Br = "si32", Gr = "ur16", $r = "ui32", Wr = "fl32", Yr = "fl64", Oa = Vn + ia.length, Ia = Object.prototype.toString;
|
|
723
723
|
function Hr(e) {
|
|
724
724
|
var t = e.length * 0.75, n = e.length, r, a = 0, o, s, l, i;
|
|
725
725
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
@@ -759,8 +759,8 @@ function Ds(e) {
|
|
|
759
759
|
Vn,
|
|
760
760
|
Oa
|
|
761
761
|
), r;
|
|
762
|
-
if (n === Bn &&
|
|
763
|
-
var a = t.match(
|
|
762
|
+
if (n === Bn && Ca.test(t)) {
|
|
763
|
+
var a = t.match(Ca);
|
|
764
764
|
r = a[1], t = t.substring(a[0].length);
|
|
765
765
|
}
|
|
766
766
|
var o = Hr(t);
|
|
@@ -904,11 +904,11 @@ function Ps(e, t) {
|
|
|
904
904
|
`SELECT * FROM ${s.storeName}`,
|
|
905
905
|
[],
|
|
906
906
|
function(i, c) {
|
|
907
|
-
for (var f = c.rows, u = f.length,
|
|
908
|
-
var g = f.item(
|
|
907
|
+
for (var f = c.rows, u = f.length, _ = 0; _ < u; _++) {
|
|
908
|
+
var g = f.item(_), T = g.value;
|
|
909
909
|
if (T && (T = s.serializer.deserialize(
|
|
910
910
|
T
|
|
911
|
-
)), T = e(T, g.key,
|
|
911
|
+
)), T = e(T, g.key, _ + 1), T !== void 0) {
|
|
912
912
|
a(T);
|
|
913
913
|
return;
|
|
914
914
|
}
|
|
@@ -933,9 +933,9 @@ function jr(e, t, n, r) {
|
|
|
933
933
|
var i = t, c = a._dbInfo;
|
|
934
934
|
c.serializer.serialize(t, function(f, u) {
|
|
935
935
|
u ? l(u) : c.db.transaction(
|
|
936
|
-
function(
|
|
936
|
+
function(_) {
|
|
937
937
|
$e(
|
|
938
|
-
|
|
938
|
+
_,
|
|
939
939
|
c,
|
|
940
940
|
`INSERT OR REPLACE INTO ${c.storeName} (key, value) VALUES (?, ?)`,
|
|
941
941
|
[e, f],
|
|
@@ -947,8 +947,8 @@ function jr(e, t, n, r) {
|
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
},
|
|
950
|
-
function(
|
|
951
|
-
if (
|
|
950
|
+
function(_) {
|
|
951
|
+
if (_.code === _.QUOTA_ERR) {
|
|
952
952
|
if (r > 0) {
|
|
953
953
|
s(
|
|
954
954
|
jr.apply(a, [
|
|
@@ -960,7 +960,7 @@ function jr(e, t, n, r) {
|
|
|
960
960
|
);
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
|
-
l(
|
|
963
|
+
l(_);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
);
|
|
@@ -1143,7 +1143,7 @@ function $s(e, t) {
|
|
|
1143
1143
|
);
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
for (var f = [], u = 0,
|
|
1146
|
+
for (var f = [], u = 0, _ = o.storeNames.length; u < _; u++)
|
|
1147
1147
|
f.push(
|
|
1148
1148
|
c(o.storeNames[u])
|
|
1149
1149
|
);
|
|
@@ -1338,7 +1338,7 @@ const ri = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
}, Xr = Array.isArray || function(e) {
|
|
1340
1340
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
1341
|
-
},
|
|
1341
|
+
}, St = {}, La = {}, lt = {
|
|
1342
1342
|
INDEXEDDB: Os,
|
|
1343
1343
|
WEBSQL: Ws,
|
|
1344
1344
|
LOCALSTORAGE: ai
|
|
@@ -1390,7 +1390,7 @@ class ca {
|
|
|
1390
1390
|
for (let n in lt)
|
|
1391
1391
|
if (lt.hasOwnProperty(n)) {
|
|
1392
1392
|
const r = lt[n], a = r._driver;
|
|
1393
|
-
this[n] = a,
|
|
1393
|
+
this[n] = a, St[a] || this.defineDriver(r);
|
|
1394
1394
|
}
|
|
1395
1395
|
this._defaultConfig = Tn({}, ii), this._config = Tn({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
1396
1396
|
});
|
|
@@ -1426,8 +1426,8 @@ class ca {
|
|
|
1426
1426
|
return;
|
|
1427
1427
|
}
|
|
1428
1428
|
const c = yn.concat("_initStorage");
|
|
1429
|
-
for (let
|
|
1430
|
-
const T = c[
|
|
1429
|
+
for (let _ = 0, g = c.length; _ < g; _++) {
|
|
1430
|
+
const T = c[_];
|
|
1431
1431
|
if ((!oi(
|
|
1432
1432
|
Yt,
|
|
1433
1433
|
T
|
|
@@ -1437,7 +1437,7 @@ class ca {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
(function() {
|
|
1440
|
-
const
|
|
1440
|
+
const _ = function(g) {
|
|
1441
1441
|
return function() {
|
|
1442
1442
|
const T = new Error(
|
|
1443
1443
|
`Method ${g} is not implemented by the current driver`
|
|
@@ -1450,13 +1450,13 @@ class ca {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
for (let g = 0, T = Yt.length; g < T; g++) {
|
|
1452
1452
|
const p = Yt[g];
|
|
1453
|
-
t[p] || (t[p] =
|
|
1453
|
+
t[p] || (t[p] = _(
|
|
1454
1454
|
p
|
|
1455
1455
|
));
|
|
1456
1456
|
}
|
|
1457
1457
|
})();
|
|
1458
|
-
const u = function(
|
|
1459
|
-
|
|
1458
|
+
const u = function(_) {
|
|
1459
|
+
St[l], St[l] = t, La[l] = _, o();
|
|
1460
1460
|
};
|
|
1461
1461
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, s) : u(!!t._support) : u(!0);
|
|
1462
1462
|
} catch (l) {
|
|
@@ -1469,7 +1469,7 @@ class ca {
|
|
|
1469
1469
|
return this._driver || null;
|
|
1470
1470
|
}
|
|
1471
1471
|
getDriver(t, n, r) {
|
|
1472
|
-
const a =
|
|
1472
|
+
const a = St[t] ? U.resolve(St[t]) : U.reject(new Error("Driver not found."));
|
|
1473
1473
|
return st(a, n, r), a;
|
|
1474
1474
|
}
|
|
1475
1475
|
getSerializer(t) {
|
|
@@ -1493,10 +1493,10 @@ class ca {
|
|
|
1493
1493
|
function i(f) {
|
|
1494
1494
|
return function() {
|
|
1495
1495
|
let u = 0;
|
|
1496
|
-
function
|
|
1496
|
+
function _() {
|
|
1497
1497
|
for (; u < f.length; ) {
|
|
1498
1498
|
let T = f[u];
|
|
1499
|
-
return u++, a._dbInfo = null, a._ready = null, a.getDriver(T).then(l).catch(
|
|
1499
|
+
return u++, a._dbInfo = null, a._ready = null, a.getDriver(T).then(l).catch(_);
|
|
1500
1500
|
}
|
|
1501
1501
|
s();
|
|
1502
1502
|
const g = new Error(
|
|
@@ -1504,7 +1504,7 @@ class ca {
|
|
|
1504
1504
|
);
|
|
1505
1505
|
return a._driverSet = U.reject(g), a._driverSet;
|
|
1506
1506
|
}
|
|
1507
|
-
return
|
|
1507
|
+
return _();
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
const c = this._driverSet !== null ? this._driverSet.catch(() => U.resolve()) : U.resolve();
|
|
@@ -1655,8 +1655,8 @@ const I = new is({
|
|
|
1655
1655
|
db_name: "ShiyunConsole"
|
|
1656
1656
|
});
|
|
1657
1657
|
window.gbIdbObj = fi;
|
|
1658
|
-
const
|
|
1659
|
-
window.gbSessObj =
|
|
1658
|
+
const di = new ui({});
|
|
1659
|
+
window.gbSessObj = di;
|
|
1660
1660
|
I.idbGetItem = function(e) {
|
|
1661
1661
|
return window.gbIdbObj.idbGetItem(e);
|
|
1662
1662
|
};
|
|
@@ -1683,14 +1683,14 @@ I.idbGetJson = function(e, t) {
|
|
|
1683
1683
|
* (c) 2021-2022 Teng Mao Qing
|
|
1684
1684
|
* Released under the MIT License.
|
|
1685
1685
|
*/
|
|
1686
|
-
var pe = typeof window < "u" ? window.proxy || window : {},
|
|
1686
|
+
var pe = typeof window < "u" ? window.proxy || window : {}, _i = function(e) {
|
|
1687
1687
|
pe != null && pe.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), pe.qiankunName && (window.moudleQiankunAppLifeCycles[pe.qiankunName] = e));
|
|
1688
1688
|
};
|
|
1689
1689
|
function mi(e = "/", t = null, n = {}) {
|
|
1690
1690
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
1691
1691
|
}
|
|
1692
1692
|
var At = {};
|
|
1693
|
-
function
|
|
1693
|
+
function bt(e) {
|
|
1694
1694
|
if (!pe.__POWERED_BY_QIANKUN__)
|
|
1695
1695
|
return !1;
|
|
1696
1696
|
if (!Object.prototype.toString.call(e) === "[object Object]")
|
|
@@ -1712,11 +1712,11 @@ function hi(e) {
|
|
|
1712
1712
|
t.SA_ACCOUNT_REFRESH();
|
|
1713
1713
|
break;
|
|
1714
1714
|
}
|
|
1715
|
-
|
|
1715
|
+
Ct().SA_MSG_CONTENT(n.msg);
|
|
1716
1716
|
}, !0), At.setGlobalState = e && e.setGlobalState, At.name = e && e.name;
|
|
1717
1717
|
}
|
|
1718
1718
|
function gi(e, t, n) {
|
|
1719
|
-
|
|
1719
|
+
_i({
|
|
1720
1720
|
/**
|
|
1721
1721
|
* @name 微应用初始化
|
|
1722
1722
|
* @param {Object} props 主应用下发的props
|
|
@@ -1748,7 +1748,7 @@ function gi(e, t, n) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
});
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1751
|
+
const Ct = Le("cloudSdkQiankunStore", {
|
|
1752
1752
|
state: () => ({
|
|
1753
1753
|
// 是否是乾坤
|
|
1754
1754
|
qiankunExistState: pe.__POWERED_BY_QIANKUN__ || !1,
|
|
@@ -1763,24 +1763,24 @@ const Nt = Le("cloudSdkQiankunStore", {
|
|
|
1763
1763
|
async init() {
|
|
1764
1764
|
},
|
|
1765
1765
|
QK_SEND_LOGIN_MSG() {
|
|
1766
|
-
|
|
1766
|
+
bt({
|
|
1767
1767
|
COMM_TYPE: "LoginSucc"
|
|
1768
1768
|
});
|
|
1769
1769
|
},
|
|
1770
1770
|
QK_SEND_LOGOUT_MSG() {
|
|
1771
|
-
|
|
1771
|
+
bt({
|
|
1772
1772
|
COMM_TYPE: "LoginLogout"
|
|
1773
1773
|
});
|
|
1774
1774
|
},
|
|
1775
1775
|
QK_SEND_MSG_REG_SUBMENU(e) {
|
|
1776
|
-
|
|
1776
|
+
bt({
|
|
1777
1777
|
COMM_TYPE: "MicroRegisterMenu",
|
|
1778
1778
|
COMM_TYPESTR: "注册子应用菜单",
|
|
1779
1779
|
data: e || []
|
|
1780
1780
|
});
|
|
1781
1781
|
},
|
|
1782
1782
|
QK_SEND_MSG_ROUTER_BEFORE(e) {
|
|
1783
|
-
|
|
1783
|
+
bt({
|
|
1784
1784
|
COMM_TYPE: "routerBefore",
|
|
1785
1785
|
routerBase: e
|
|
1786
1786
|
// toData: toPath
|
|
@@ -1799,7 +1799,7 @@ const Nt = Le("cloudSdkQiankunStore", {
|
|
|
1799
1799
|
},
|
|
1800
1800
|
// 发送消息给主应用
|
|
1801
1801
|
QIANKUN_SEND_MSG_TO_MAIN(e, t) {
|
|
1802
|
-
|
|
1802
|
+
bt({
|
|
1803
1803
|
COMM_TYPE: e,
|
|
1804
1804
|
data: t || ""
|
|
1805
1805
|
});
|
|
@@ -1825,10 +1825,10 @@ const wa = {};
|
|
|
1825
1825
|
function ua(e) {
|
|
1826
1826
|
wa[e] || (wa[e] = !0, void 0);
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const Ce = typeof window < "u";
|
|
1829
1829
|
let Ee, Je;
|
|
1830
1830
|
if (process.env.NODE_ENV !== "production") {
|
|
1831
|
-
const e =
|
|
1831
|
+
const e = Ce && window.performance;
|
|
1832
1832
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
1833
1833
|
e.clearMeasures && (Ee = (t) => {
|
|
1834
1834
|
e.mark(t);
|
|
@@ -1840,7 +1840,7 @@ const Ei = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
1840
1840
|
function Zt(e, ...t) {
|
|
1841
1841
|
return t.length === 1 && H(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ei, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
1842
1842
|
}
|
|
1843
|
-
const we = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
1843
|
+
const we = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Si = (e, t, n) => bi({ l: e, k: t, s: n }), bi = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ie = (e) => typeof e == "number" && isFinite(e), vi = (e) => fa(e) === "[object Date]", ut = (e) => fa(e) === "[object RegExp]", en = (e) => G(e) && Object.keys(e).length === 0, ce = Object.assign, yi = Object.create, X = (e = null) => yi(e);
|
|
1844
1844
|
let Da;
|
|
1845
1845
|
const Qe = () => Da || (Da = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : X());
|
|
1846
1846
|
function ka(e) {
|
|
@@ -1863,8 +1863,8 @@ const Ai = Object.prototype.hasOwnProperty;
|
|
|
1863
1863
|
function Ae(e, t) {
|
|
1864
1864
|
return Ai.call(e, t);
|
|
1865
1865
|
}
|
|
1866
|
-
const ae = Array.isArray, J = (e) => typeof e == "function", P = (e) => typeof e == "string", K = (e) => typeof e == "boolean", H = (e) => e !== null && typeof e == "object",
|
|
1867
|
-
function
|
|
1866
|
+
const ae = Array.isArray, J = (e) => typeof e == "function", P = (e) => typeof e == "string", K = (e) => typeof e == "boolean", H = (e) => e !== null && typeof e == "object", Ni = (e) => H(e) && J(e.then) && J(e.catch), Qr = Object.prototype.toString, fa = (e) => Qr.call(e), G = (e) => fa(e) === "[object Object]", Ci = (e) => e == null ? "" : ae(e) || G(e) && e.toString === Qr ? JSON.stringify(e, null, 2) : String(e);
|
|
1867
|
+
function da(e, t = "") {
|
|
1868
1868
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
1869
1869
|
}
|
|
1870
1870
|
const Pa = 2;
|
|
@@ -1896,7 +1896,7 @@ function Oi(e, t = 0, n = e.length) {
|
|
|
1896
1896
|
return o.join(`
|
|
1897
1897
|
`);
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function _a() {
|
|
1900
1900
|
const e = /* @__PURE__ */ new Map();
|
|
1901
1901
|
return {
|
|
1902
1902
|
events: e,
|
|
@@ -1979,7 +1979,7 @@ const x = {
|
|
|
1979
1979
|
// minimizer error messages
|
|
1980
1980
|
[x.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
1981
1981
|
};
|
|
1982
|
-
function
|
|
1982
|
+
function _t(e, t, n = {}) {
|
|
1983
1983
|
const { domain: r, messages: a, args: o } = n, s = process.env.NODE_ENV !== "production" ? Zt((a || wi)[e] || "", ...o || []) : e, l = new SyntaxError(String(s));
|
|
1984
1984
|
return l.code = e, t && (l.location = t), l.domain = r, l;
|
|
1985
1985
|
}
|
|
@@ -1991,11 +1991,11 @@ const ki = /<\/?[\w\s="/.':;#-\/]+>/, Ri = (e) => ki.test(e), Oe = " ", Pi = "\r
|
|
|
1991
1991
|
function Ui(e) {
|
|
1992
1992
|
const t = e;
|
|
1993
1993
|
let n = 0, r = 1, a = 1, o = 0;
|
|
1994
|
-
const s = (A) => t[A] === Pi && t[A + 1] === fe, l = (A) => t[A] === fe, i = (A) => t[A] === Mi, c = (A) => t[A] === Fi, f = (A) => s(A) || l(A) || i(A) || c(A), u = () => n,
|
|
1994
|
+
const s = (A) => t[A] === Pi && t[A + 1] === fe, l = (A) => t[A] === fe, i = (A) => t[A] === Mi, c = (A) => t[A] === Fi, f = (A) => s(A) || l(A) || i(A) || c(A), u = () => n, _ = () => r, g = () => a, T = () => o, p = (A) => s(A) || i(A) || c(A) ? fe : t[A], w = () => p(n), m = () => p(n + o);
|
|
1995
1995
|
function E() {
|
|
1996
1996
|
return o = 0, f(n) && (r++, a = 0), s(n) && n++, n++, a++, t[n];
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function S() {
|
|
1999
1999
|
return s(n + o) && o++, o++, t[n + o];
|
|
2000
2000
|
}
|
|
2001
2001
|
function y() {
|
|
@@ -2012,14 +2012,14 @@ function Ui(e) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
return {
|
|
2014
2014
|
index: u,
|
|
2015
|
-
line:
|
|
2015
|
+
line: _,
|
|
2016
2016
|
column: g,
|
|
2017
2017
|
peekOffset: T,
|
|
2018
2018
|
charAt: p,
|
|
2019
2019
|
currentChar: w,
|
|
2020
2020
|
currentPeek: m,
|
|
2021
2021
|
next: E,
|
|
2022
|
-
peek:
|
|
2022
|
+
peek: S,
|
|
2023
2023
|
reset: y,
|
|
2024
2024
|
resetPeek: k,
|
|
2025
2025
|
skipToPeek: R
|
|
@@ -2040,140 +2040,140 @@ function Bi(e, t = {}) {
|
|
|
2040
2040
|
inLinked: !1,
|
|
2041
2041
|
text: ""
|
|
2042
2042
|
}, c = () => i, { onError: f } = t;
|
|
2043
|
-
function u(
|
|
2043
|
+
function u(d, h, N, ...M) {
|
|
2044
2044
|
const ne = c();
|
|
2045
|
-
if (h.column +=
|
|
2046
|
-
const oe = n ? $n(ne.startLoc, h) : null, j =
|
|
2045
|
+
if (h.column += N, h.offset += N, f) {
|
|
2046
|
+
const oe = n ? $n(ne.startLoc, h) : null, j = _t(d, oe, {
|
|
2047
2047
|
domain: Vi,
|
|
2048
2048
|
args: M
|
|
2049
2049
|
});
|
|
2050
2050
|
f(j);
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
|
-
function d
|
|
2054
|
-
|
|
2053
|
+
function _(d, h, N) {
|
|
2054
|
+
d.endLoc = o(), d.currentType = h;
|
|
2055
2055
|
const M = { type: h };
|
|
2056
|
-
return n && (M.loc = $n(
|
|
2056
|
+
return n && (M.loc = $n(d.startLoc, d.endLoc)), N != null && (M.value = N), M;
|
|
2057
2057
|
}
|
|
2058
|
-
const g = (
|
|
2059
|
-
|
|
2058
|
+
const g = (d) => _(
|
|
2059
|
+
d,
|
|
2060
2060
|
13
|
|
2061
2061
|
/* TokenTypes.EOF */
|
|
2062
2062
|
);
|
|
2063
|
-
function T(
|
|
2064
|
-
return
|
|
2063
|
+
function T(d, h) {
|
|
2064
|
+
return d.currentChar() === h ? (d.next(), h) : (u(x.EXPECTED_TOKEN, o(), 0, h), "");
|
|
2065
2065
|
}
|
|
2066
|
-
function p(
|
|
2066
|
+
function p(d) {
|
|
2067
2067
|
let h = "";
|
|
2068
|
-
for (;
|
|
2069
|
-
h +=
|
|
2068
|
+
for (; d.currentPeek() === Oe || d.currentPeek() === fe; )
|
|
2069
|
+
h += d.currentPeek(), d.peek();
|
|
2070
2070
|
return h;
|
|
2071
2071
|
}
|
|
2072
|
-
function w(
|
|
2073
|
-
const h = p(
|
|
2074
|
-
return
|
|
2072
|
+
function w(d) {
|
|
2073
|
+
const h = p(d);
|
|
2074
|
+
return d.skipToPeek(), h;
|
|
2075
2075
|
}
|
|
2076
|
-
function m(
|
|
2077
|
-
if (
|
|
2076
|
+
function m(d) {
|
|
2077
|
+
if (d === ke)
|
|
2078
2078
|
return !1;
|
|
2079
|
-
const h =
|
|
2079
|
+
const h = d.charCodeAt(0);
|
|
2080
2080
|
return h >= 97 && h <= 122 || // a-z
|
|
2081
2081
|
h >= 65 && h <= 90 || // A-Z
|
|
2082
2082
|
h === 95;
|
|
2083
2083
|
}
|
|
2084
|
-
function E(
|
|
2085
|
-
if (
|
|
2084
|
+
function E(d) {
|
|
2085
|
+
if (d === ke)
|
|
2086
2086
|
return !1;
|
|
2087
|
-
const h =
|
|
2087
|
+
const h = d.charCodeAt(0);
|
|
2088
2088
|
return h >= 48 && h <= 57;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const { currentType:
|
|
2092
|
-
if (
|
|
2090
|
+
function S(d, h) {
|
|
2091
|
+
const { currentType: N } = h;
|
|
2092
|
+
if (N !== 2)
|
|
2093
2093
|
return !1;
|
|
2094
|
-
p(
|
|
2095
|
-
const M = m(
|
|
2096
|
-
return
|
|
2094
|
+
p(d);
|
|
2095
|
+
const M = m(d.currentPeek());
|
|
2096
|
+
return d.resetPeek(), M;
|
|
2097
2097
|
}
|
|
2098
|
-
function y(
|
|
2099
|
-
const { currentType:
|
|
2100
|
-
if (
|
|
2098
|
+
function y(d, h) {
|
|
2099
|
+
const { currentType: N } = h;
|
|
2100
|
+
if (N !== 2)
|
|
2101
2101
|
return !1;
|
|
2102
|
-
p(
|
|
2103
|
-
const M =
|
|
2104
|
-
return
|
|
2102
|
+
p(d);
|
|
2103
|
+
const M = d.currentPeek() === "-" ? d.peek() : d.currentPeek(), ne = E(M);
|
|
2104
|
+
return d.resetPeek(), ne;
|
|
2105
2105
|
}
|
|
2106
|
-
function k(
|
|
2107
|
-
const { currentType:
|
|
2108
|
-
if (
|
|
2106
|
+
function k(d, h) {
|
|
2107
|
+
const { currentType: N } = h;
|
|
2108
|
+
if (N !== 2)
|
|
2109
2109
|
return !1;
|
|
2110
|
-
p(
|
|
2111
|
-
const M =
|
|
2112
|
-
return
|
|
2110
|
+
p(d);
|
|
2111
|
+
const M = d.currentPeek() === Fa;
|
|
2112
|
+
return d.resetPeek(), M;
|
|
2113
2113
|
}
|
|
2114
|
-
function R(
|
|
2115
|
-
const { currentType:
|
|
2116
|
-
if (
|
|
2114
|
+
function R(d, h) {
|
|
2115
|
+
const { currentType: N } = h;
|
|
2116
|
+
if (N !== 7)
|
|
2117
2117
|
return !1;
|
|
2118
|
-
p(
|
|
2119
|
-
const M =
|
|
2120
|
-
return
|
|
2118
|
+
p(d);
|
|
2119
|
+
const M = d.currentPeek() === ".";
|
|
2120
|
+
return d.resetPeek(), M;
|
|
2121
2121
|
}
|
|
2122
|
-
function A(
|
|
2123
|
-
const { currentType:
|
|
2124
|
-
if (
|
|
2122
|
+
function A(d, h) {
|
|
2123
|
+
const { currentType: N } = h;
|
|
2124
|
+
if (N !== 8)
|
|
2125
2125
|
return !1;
|
|
2126
|
-
p(
|
|
2127
|
-
const M = m(
|
|
2128
|
-
return
|
|
2126
|
+
p(d);
|
|
2127
|
+
const M = m(d.currentPeek());
|
|
2128
|
+
return d.resetPeek(), M;
|
|
2129
2129
|
}
|
|
2130
|
-
function B(
|
|
2131
|
-
const { currentType:
|
|
2132
|
-
if (!(
|
|
2130
|
+
function B(d, h) {
|
|
2131
|
+
const { currentType: N } = h;
|
|
2132
|
+
if (!(N === 7 || N === 11))
|
|
2133
2133
|
return !1;
|
|
2134
|
-
p(
|
|
2135
|
-
const M =
|
|
2136
|
-
return
|
|
2134
|
+
p(d);
|
|
2135
|
+
const M = d.currentPeek() === ":";
|
|
2136
|
+
return d.resetPeek(), M;
|
|
2137
2137
|
}
|
|
2138
|
-
function Y(
|
|
2139
|
-
const { currentType:
|
|
2140
|
-
if (
|
|
2138
|
+
function Y(d, h) {
|
|
2139
|
+
const { currentType: N } = h;
|
|
2140
|
+
if (N !== 9)
|
|
2141
2141
|
return !1;
|
|
2142
2142
|
const M = () => {
|
|
2143
|
-
const oe =
|
|
2144
|
-
return oe === "{" ? m(
|
|
2143
|
+
const oe = d.currentPeek();
|
|
2144
|
+
return oe === "{" ? m(d.peek()) : oe === "@" || oe === "|" || oe === ":" || oe === "." || oe === Oe || !oe ? !1 : oe === fe ? (d.peek(), M()) : _e(d, !1);
|
|
2145
2145
|
}, ne = M();
|
|
2146
|
-
return
|
|
2147
|
-
}
|
|
2148
|
-
function re(
|
|
2149
|
-
p(
|
|
2150
|
-
const h =
|
|
2151
|
-
return
|
|
2152
|
-
}
|
|
2153
|
-
function
|
|
2154
|
-
const
|
|
2155
|
-
const j =
|
|
2156
|
-
return j === "{" || j === "@" || !j ? ne : j === "|" ? !(oe === Oe || oe === fe) : j === Oe ? (
|
|
2157
|
-
}, M =
|
|
2158
|
-
return h &&
|
|
2159
|
-
}
|
|
2160
|
-
function ee(
|
|
2161
|
-
const
|
|
2162
|
-
return
|
|
2163
|
-
}
|
|
2164
|
-
function et(
|
|
2165
|
-
const h =
|
|
2146
|
+
return d.resetPeek(), ne;
|
|
2147
|
+
}
|
|
2148
|
+
function re(d) {
|
|
2149
|
+
p(d);
|
|
2150
|
+
const h = d.currentPeek() === "|";
|
|
2151
|
+
return d.resetPeek(), h;
|
|
2152
|
+
}
|
|
2153
|
+
function _e(d, h = !0) {
|
|
2154
|
+
const N = (ne = !1, oe = "") => {
|
|
2155
|
+
const j = d.currentPeek();
|
|
2156
|
+
return j === "{" || j === "@" || !j ? ne : j === "|" ? !(oe === Oe || oe === fe) : j === Oe ? (d.peek(), N(!0, Oe)) : j === fe ? (d.peek(), N(!0, fe)) : !0;
|
|
2157
|
+
}, M = N();
|
|
2158
|
+
return h && d.resetPeek(), M;
|
|
2159
|
+
}
|
|
2160
|
+
function ee(d, h) {
|
|
2161
|
+
const N = d.currentChar();
|
|
2162
|
+
return N === ke ? ke : h(N) ? (d.next(), N) : null;
|
|
2163
|
+
}
|
|
2164
|
+
function et(d) {
|
|
2165
|
+
const h = d.charCodeAt(0);
|
|
2166
2166
|
return h >= 97 && h <= 122 || // a-z
|
|
2167
2167
|
h >= 65 && h <= 90 || // A-Z
|
|
2168
2168
|
h >= 48 && h <= 57 || // 0-9
|
|
2169
2169
|
h === 95 || // _
|
|
2170
2170
|
h === 36;
|
|
2171
2171
|
}
|
|
2172
|
-
function sn(
|
|
2173
|
-
return ee(
|
|
2172
|
+
function sn(d) {
|
|
2173
|
+
return ee(d, et);
|
|
2174
2174
|
}
|
|
2175
|
-
function ln(
|
|
2176
|
-
const h =
|
|
2175
|
+
function ln(d) {
|
|
2176
|
+
const h = d.charCodeAt(0);
|
|
2177
2177
|
return h >= 97 && h <= 122 || // a-z
|
|
2178
2178
|
h >= 65 && h <= 90 || // A-Z
|
|
2179
2179
|
h >= 48 && h <= 57 || // 0-9
|
|
@@ -2181,239 +2181,239 @@ function Bi(e, t = {}) {
|
|
|
2181
2181
|
h === 36 || // $
|
|
2182
2182
|
h === 45;
|
|
2183
2183
|
}
|
|
2184
|
-
function cn(
|
|
2185
|
-
return ee(
|
|
2184
|
+
function cn(d) {
|
|
2185
|
+
return ee(d, ln);
|
|
2186
2186
|
}
|
|
2187
|
-
function un(
|
|
2188
|
-
const h =
|
|
2187
|
+
function un(d) {
|
|
2188
|
+
const h = d.charCodeAt(0);
|
|
2189
2189
|
return h >= 48 && h <= 57;
|
|
2190
2190
|
}
|
|
2191
|
-
function fn(
|
|
2192
|
-
return ee(
|
|
2191
|
+
function fn(d) {
|
|
2192
|
+
return ee(d, un);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2195
|
-
const h =
|
|
2194
|
+
function dn(d) {
|
|
2195
|
+
const h = d.charCodeAt(0);
|
|
2196
2196
|
return h >= 48 && h <= 57 || // 0-9
|
|
2197
2197
|
h >= 65 && h <= 70 || // A-F
|
|
2198
2198
|
h >= 97 && h <= 102;
|
|
2199
2199
|
}
|
|
2200
|
-
function De(
|
|
2201
|
-
return ee(
|
|
2200
|
+
function De(d) {
|
|
2201
|
+
return ee(d, dn);
|
|
2202
2202
|
}
|
|
2203
|
-
function mt(
|
|
2204
|
-
let h = "",
|
|
2205
|
-
for (; h = fn(
|
|
2206
|
-
|
|
2207
|
-
return
|
|
2203
|
+
function mt(d) {
|
|
2204
|
+
let h = "", N = "";
|
|
2205
|
+
for (; h = fn(d); )
|
|
2206
|
+
N += h;
|
|
2207
|
+
return N;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function _n(d) {
|
|
2210
2210
|
let h = "";
|
|
2211
2211
|
for (; ; ) {
|
|
2212
|
-
const
|
|
2213
|
-
if (
|
|
2212
|
+
const N = d.currentChar();
|
|
2213
|
+
if (N === "{" || N === "}" || N === "@" || N === "|" || !N)
|
|
2214
2214
|
break;
|
|
2215
|
-
if (
|
|
2216
|
-
if (
|
|
2217
|
-
h +=
|
|
2215
|
+
if (N === Oe || N === fe)
|
|
2216
|
+
if (_e(d))
|
|
2217
|
+
h += N, d.next();
|
|
2218
2218
|
else {
|
|
2219
|
-
if (re(
|
|
2219
|
+
if (re(d))
|
|
2220
2220
|
break;
|
|
2221
|
-
h +=
|
|
2221
|
+
h += N, d.next();
|
|
2222
2222
|
}
|
|
2223
2223
|
else
|
|
2224
|
-
h +=
|
|
2224
|
+
h += N, d.next();
|
|
2225
2225
|
}
|
|
2226
2226
|
return h;
|
|
2227
2227
|
}
|
|
2228
|
-
function mn(
|
|
2229
|
-
w(
|
|
2230
|
-
let h = "",
|
|
2231
|
-
for (; h = cn(
|
|
2232
|
-
|
|
2233
|
-
const M =
|
|
2228
|
+
function mn(d) {
|
|
2229
|
+
w(d);
|
|
2230
|
+
let h = "", N = "";
|
|
2231
|
+
for (; h = cn(d); )
|
|
2232
|
+
N += h;
|
|
2233
|
+
const M = d.currentChar();
|
|
2234
2234
|
if (M && M !== "}" && M !== ke && M !== Oe && M !== fe && M !== " ") {
|
|
2235
|
-
const ne = Ut(
|
|
2236
|
-
return u(x.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0,
|
|
2235
|
+
const ne = Ut(d);
|
|
2236
|
+
return u(x.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N + ne), N + ne;
|
|
2237
2237
|
}
|
|
2238
|
-
return
|
|
2238
|
+
return d.currentChar() === ke && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N;
|
|
2239
2239
|
}
|
|
2240
|
-
function hn(
|
|
2241
|
-
w(
|
|
2240
|
+
function hn(d) {
|
|
2241
|
+
w(d);
|
|
2242
2242
|
let h = "";
|
|
2243
|
-
return
|
|
2243
|
+
return d.currentChar() === "-" ? (d.next(), h += `-${mt(d)}`) : h += mt(d), d.currentChar() === ke && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h;
|
|
2244
2244
|
}
|
|
2245
|
-
function gn(
|
|
2246
|
-
return
|
|
2245
|
+
function gn(d) {
|
|
2246
|
+
return d !== Fa && d !== fe;
|
|
2247
2247
|
}
|
|
2248
|
-
function Ta(
|
|
2249
|
-
w(
|
|
2250
|
-
let h = "",
|
|
2251
|
-
for (; h = ee(
|
|
2252
|
-
h === "\\" ?
|
|
2253
|
-
const M =
|
|
2254
|
-
return M === fe || M === ke ? (u(x.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), M === fe && (
|
|
2248
|
+
function Ta(d) {
|
|
2249
|
+
w(d), T(d, "'");
|
|
2250
|
+
let h = "", N = "";
|
|
2251
|
+
for (; h = ee(d, gn); )
|
|
2252
|
+
h === "\\" ? N += pn(d) : N += h;
|
|
2253
|
+
const M = d.currentChar();
|
|
2254
|
+
return M === fe || M === ke ? (u(x.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), M === fe && (d.next(), T(d, "'")), N) : (T(d, "'"), N);
|
|
2255
2255
|
}
|
|
2256
|
-
function pn(
|
|
2257
|
-
const h =
|
|
2256
|
+
function pn(d) {
|
|
2257
|
+
const h = d.currentChar();
|
|
2258
2258
|
switch (h) {
|
|
2259
2259
|
case "\\":
|
|
2260
2260
|
case "'":
|
|
2261
|
-
return
|
|
2261
|
+
return d.next(), `\\${h}`;
|
|
2262
2262
|
case "u":
|
|
2263
|
-
return Mt(
|
|
2263
|
+
return Mt(d, h, 4);
|
|
2264
2264
|
case "U":
|
|
2265
|
-
return Mt(
|
|
2265
|
+
return Mt(d, h, 6);
|
|
2266
2266
|
default:
|
|
2267
2267
|
return u(x.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, h), "";
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
function Mt(
|
|
2271
|
-
T(
|
|
2270
|
+
function Mt(d, h, N) {
|
|
2271
|
+
T(d, h);
|
|
2272
2272
|
let M = "";
|
|
2273
|
-
for (let ne = 0; ne <
|
|
2274
|
-
const oe = De(
|
|
2273
|
+
for (let ne = 0; ne < N; ne++) {
|
|
2274
|
+
const oe = De(d);
|
|
2275
2275
|
if (!oe) {
|
|
2276
|
-
u(x.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${M}${
|
|
2276
|
+
u(x.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${M}${d.currentChar()}`);
|
|
2277
2277
|
break;
|
|
2278
2278
|
}
|
|
2279
2279
|
M += oe;
|
|
2280
2280
|
}
|
|
2281
2281
|
return `\\${h}${M}`;
|
|
2282
2282
|
}
|
|
2283
|
-
function En(
|
|
2284
|
-
return
|
|
2285
|
-
}
|
|
2286
|
-
function Ut(
|
|
2287
|
-
w(
|
|
2288
|
-
let h = "",
|
|
2289
|
-
for (; h = ee(
|
|
2290
|
-
|
|
2291
|
-
return
|
|
2292
|
-
}
|
|
2293
|
-
function
|
|
2294
|
-
let h = "",
|
|
2295
|
-
for (; h = sn(
|
|
2296
|
-
|
|
2297
|
-
return
|
|
2298
|
-
}
|
|
2299
|
-
function
|
|
2300
|
-
const h = (
|
|
2301
|
-
const M =
|
|
2302
|
-
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === Oe ?
|
|
2283
|
+
function En(d) {
|
|
2284
|
+
return d !== "{" && d !== "}" && d !== Oe && d !== fe;
|
|
2285
|
+
}
|
|
2286
|
+
function Ut(d) {
|
|
2287
|
+
w(d);
|
|
2288
|
+
let h = "", N = "";
|
|
2289
|
+
for (; h = ee(d, En); )
|
|
2290
|
+
N += h;
|
|
2291
|
+
return N;
|
|
2292
|
+
}
|
|
2293
|
+
function Sn(d) {
|
|
2294
|
+
let h = "", N = "";
|
|
2295
|
+
for (; h = sn(d); )
|
|
2296
|
+
N += h;
|
|
2297
|
+
return N;
|
|
2298
|
+
}
|
|
2299
|
+
function bn(d) {
|
|
2300
|
+
const h = (N) => {
|
|
2301
|
+
const M = d.currentChar();
|
|
2302
|
+
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === Oe ? N : (N += M, d.next(), h(N));
|
|
2303
2303
|
};
|
|
2304
2304
|
return h("");
|
|
2305
2305
|
}
|
|
2306
|
-
function ht(
|
|
2307
|
-
w(
|
|
2306
|
+
function ht(d) {
|
|
2307
|
+
w(d);
|
|
2308
2308
|
const h = T(
|
|
2309
|
-
|
|
2309
|
+
d,
|
|
2310
2310
|
"|"
|
|
2311
2311
|
/* TokenChars.Pipe */
|
|
2312
2312
|
);
|
|
2313
|
-
return w(
|
|
2313
|
+
return w(d), h;
|
|
2314
2314
|
}
|
|
2315
|
-
function gt(
|
|
2316
|
-
let
|
|
2317
|
-
switch (
|
|
2315
|
+
function gt(d, h) {
|
|
2316
|
+
let N = null;
|
|
2317
|
+
switch (d.currentChar()) {
|
|
2318
2318
|
case "{":
|
|
2319
|
-
return h.braceNest >= 1 && u(x.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0),
|
|
2319
|
+
return h.braceNest >= 1 && u(x.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), d.next(), N = _(
|
|
2320
2320
|
h,
|
|
2321
2321
|
2,
|
|
2322
2322
|
"{"
|
|
2323
2323
|
/* TokenChars.BraceLeft */
|
|
2324
|
-
), w(
|
|
2324
|
+
), w(d), h.braceNest++, N;
|
|
2325
2325
|
case "}":
|
|
2326
|
-
return h.braceNest > 0 && h.currentType === 2 && u(x.EMPTY_PLACEHOLDER, o(), 0),
|
|
2326
|
+
return h.braceNest > 0 && h.currentType === 2 && u(x.EMPTY_PLACEHOLDER, o(), 0), d.next(), N = _(
|
|
2327
2327
|
h,
|
|
2328
2328
|
3,
|
|
2329
2329
|
"}"
|
|
2330
2330
|
/* TokenChars.BraceRight */
|
|
2331
|
-
), h.braceNest--, h.braceNest > 0 && w(
|
|
2331
|
+
), h.braceNest--, h.braceNest > 0 && w(d), h.inLinked && h.braceNest === 0 && (h.inLinked = !1), N;
|
|
2332
2332
|
case "@":
|
|
2333
|
-
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0),
|
|
2333
|
+
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N = He(d, h) || g(h), h.braceNest = 0, N;
|
|
2334
2334
|
default: {
|
|
2335
2335
|
let ne = !0, oe = !0, j = !0;
|
|
2336
|
-
if (re(
|
|
2337
|
-
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0),
|
|
2336
|
+
if (re(d))
|
|
2337
|
+
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, N;
|
|
2338
2338
|
if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
|
|
2339
|
-
return u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, pt(
|
|
2340
|
-
if (ne =
|
|
2341
|
-
return
|
|
2342
|
-
if (oe = y(
|
|
2343
|
-
return
|
|
2344
|
-
if (j = k(
|
|
2345
|
-
return
|
|
2339
|
+
return u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, pt(d, h);
|
|
2340
|
+
if (ne = S(d, h))
|
|
2341
|
+
return N = _(h, 4, mn(d)), w(d), N;
|
|
2342
|
+
if (oe = y(d, h))
|
|
2343
|
+
return N = _(h, 5, hn(d)), w(d), N;
|
|
2344
|
+
if (j = k(d, h))
|
|
2345
|
+
return N = _(h, 6, Ta(d)), w(d), N;
|
|
2346
2346
|
if (!ne && !oe && !j)
|
|
2347
|
-
return
|
|
2347
|
+
return N = _(h, 12, Ut(d)), u(x.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), w(d), N;
|
|
2348
2348
|
break;
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
|
-
return
|
|
2351
|
+
return N;
|
|
2352
2352
|
}
|
|
2353
|
-
function He(
|
|
2354
|
-
const { currentType:
|
|
2353
|
+
function He(d, h) {
|
|
2354
|
+
const { currentType: N } = h;
|
|
2355
2355
|
let M = null;
|
|
2356
|
-
const ne =
|
|
2357
|
-
switch ((
|
|
2356
|
+
const ne = d.currentChar();
|
|
2357
|
+
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (ne === fe || ne === Oe) && u(x.INVALID_LINKED_FORMAT, o(), 0), ne) {
|
|
2358
2358
|
case "@":
|
|
2359
|
-
return
|
|
2359
|
+
return d.next(), M = _(
|
|
2360
2360
|
h,
|
|
2361
2361
|
7,
|
|
2362
2362
|
"@"
|
|
2363
2363
|
/* TokenChars.LinkedAlias */
|
|
2364
2364
|
), h.inLinked = !0, M;
|
|
2365
2365
|
case ".":
|
|
2366
|
-
return w(
|
|
2366
|
+
return w(d), d.next(), _(
|
|
2367
2367
|
h,
|
|
2368
2368
|
8,
|
|
2369
2369
|
"."
|
|
2370
2370
|
/* TokenChars.LinkedDot */
|
|
2371
2371
|
);
|
|
2372
2372
|
case ":":
|
|
2373
|
-
return w(
|
|
2373
|
+
return w(d), d.next(), _(
|
|
2374
2374
|
h,
|
|
2375
2375
|
9,
|
|
2376
2376
|
":"
|
|
2377
2377
|
/* TokenChars.LinkedDelimiter */
|
|
2378
2378
|
);
|
|
2379
2379
|
default:
|
|
2380
|
-
return re(
|
|
2380
|
+
return re(d) ? (M = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, M) : R(d, h) || B(d, h) ? (w(d), He(d, h)) : A(d, h) ? (w(d), _(h, 11, Sn(d))) : Y(d, h) ? (w(d), ne === "{" ? gt(d, h) || M : _(h, 10, bn(d))) : (N === 7 && u(x.INVALID_LINKED_FORMAT, o(), 0), h.braceNest = 0, h.inLinked = !1, pt(d, h));
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
function pt(
|
|
2384
|
-
let
|
|
2383
|
+
function pt(d, h) {
|
|
2384
|
+
let N = {
|
|
2385
2385
|
type: 13
|
|
2386
2386
|
/* TokenTypes.EOF */
|
|
2387
2387
|
};
|
|
2388
2388
|
if (h.braceNest > 0)
|
|
2389
|
-
return gt(
|
|
2389
|
+
return gt(d, h) || g(h);
|
|
2390
2390
|
if (h.inLinked)
|
|
2391
|
-
return He(
|
|
2392
|
-
switch (
|
|
2391
|
+
return He(d, h) || g(h);
|
|
2392
|
+
switch (d.currentChar()) {
|
|
2393
2393
|
case "{":
|
|
2394
|
-
return gt(
|
|
2394
|
+
return gt(d, h) || g(h);
|
|
2395
2395
|
case "}":
|
|
2396
|
-
return u(x.UNBALANCED_CLOSING_BRACE, o(), 0),
|
|
2396
|
+
return u(x.UNBALANCED_CLOSING_BRACE, o(), 0), d.next(), _(
|
|
2397
2397
|
h,
|
|
2398
2398
|
3,
|
|
2399
2399
|
"}"
|
|
2400
2400
|
/* TokenChars.BraceRight */
|
|
2401
2401
|
);
|
|
2402
2402
|
case "@":
|
|
2403
|
-
return He(
|
|
2403
|
+
return He(d, h) || g(h);
|
|
2404
2404
|
default: {
|
|
2405
|
-
if (re(
|
|
2406
|
-
return
|
|
2407
|
-
if (
|
|
2408
|
-
return
|
|
2405
|
+
if (re(d))
|
|
2406
|
+
return N = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, N;
|
|
2407
|
+
if (_e(d))
|
|
2408
|
+
return _(h, 0, _n(d));
|
|
2409
2409
|
break;
|
|
2410
2410
|
}
|
|
2411
2411
|
}
|
|
2412
|
-
return
|
|
2412
|
+
return N;
|
|
2413
2413
|
}
|
|
2414
2414
|
function vn() {
|
|
2415
|
-
const { currentType:
|
|
2416
|
-
return i.lastType =
|
|
2415
|
+
const { currentType: d, offset: h, startLoc: N, endLoc: M } = i;
|
|
2416
|
+
return i.lastType = d, i.lastOffset = h, i.lastStartLoc = N, i.lastEndLoc = M, i.offset = a(), i.startLoc = o(), r.currentChar() === ke ? _(
|
|
2417
2417
|
i,
|
|
2418
2418
|
13
|
|
2419
2419
|
/* TokenTypes.EOF */
|
|
@@ -2442,87 +2442,87 @@ function Wi(e, t, n) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function Yi(e = {}) {
|
|
2444
2444
|
const t = e.location !== !1, { onError: n } = e;
|
|
2445
|
-
function r(m, E,
|
|
2445
|
+
function r(m, E, S, y, ...k) {
|
|
2446
2446
|
const R = m.currentPosition();
|
|
2447
2447
|
if (R.offset += y, R.column += y, n) {
|
|
2448
|
-
const A = t ? $n(
|
|
2448
|
+
const A = t ? $n(S, R) : null, B = _t(E, A, {
|
|
2449
2449
|
domain: Gi,
|
|
2450
2450
|
args: k
|
|
2451
2451
|
});
|
|
2452
2452
|
n(B);
|
|
2453
2453
|
}
|
|
2454
2454
|
}
|
|
2455
|
-
function a(m, E,
|
|
2455
|
+
function a(m, E, S) {
|
|
2456
2456
|
const y = { type: m };
|
|
2457
|
-
return t && (y.start = E, y.end = E, y.loc = { start:
|
|
2457
|
+
return t && (y.start = E, y.end = E, y.loc = { start: S, end: S }), y;
|
|
2458
2458
|
}
|
|
2459
|
-
function o(m, E,
|
|
2460
|
-
t && (m.end = E, m.loc && (m.loc.end =
|
|
2459
|
+
function o(m, E, S, y) {
|
|
2460
|
+
t && (m.end = E, m.loc && (m.loc.end = S));
|
|
2461
2461
|
}
|
|
2462
2462
|
function s(m, E) {
|
|
2463
|
-
const
|
|
2463
|
+
const S = m.context(), y = a(3, S.offset, S.startLoc);
|
|
2464
2464
|
return y.value = E, o(y, m.currentOffset(), m.currentPosition()), y;
|
|
2465
2465
|
}
|
|
2466
2466
|
function l(m, E) {
|
|
2467
|
-
const
|
|
2467
|
+
const S = m.context(), { lastOffset: y, lastStartLoc: k } = S, R = a(5, y, k);
|
|
2468
2468
|
return R.index = parseInt(E, 10), m.nextToken(), o(R, m.currentOffset(), m.currentPosition()), R;
|
|
2469
2469
|
}
|
|
2470
2470
|
function i(m, E) {
|
|
2471
|
-
const
|
|
2471
|
+
const S = m.context(), { lastOffset: y, lastStartLoc: k } = S, R = a(4, y, k);
|
|
2472
2472
|
return R.key = E, m.nextToken(), o(R, m.currentOffset(), m.currentPosition()), R;
|
|
2473
2473
|
}
|
|
2474
2474
|
function c(m, E) {
|
|
2475
|
-
const
|
|
2475
|
+
const S = m.context(), { lastOffset: y, lastStartLoc: k } = S, R = a(9, y, k);
|
|
2476
2476
|
return R.value = E.replace($i, Wi), m.nextToken(), o(R, m.currentOffset(), m.currentPosition()), R;
|
|
2477
2477
|
}
|
|
2478
2478
|
function f(m) {
|
|
2479
|
-
const E = m.nextToken(),
|
|
2480
|
-
return E.type !== 11 ? (r(m, x.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
2479
|
+
const E = m.nextToken(), S = m.context(), { lastOffset: y, lastStartLoc: k } = S, R = a(8, y, k);
|
|
2480
|
+
return E.type !== 11 ? (r(m, x.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), R.value = "", o(R, y, k), {
|
|
2481
2481
|
nextConsumeToken: E,
|
|
2482
2482
|
node: R
|
|
2483
|
-
}) : (E.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
2483
|
+
}) : (E.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ie(E)), R.value = E.value || "", o(R, m.currentOffset(), m.currentPosition()), {
|
|
2484
2484
|
node: R
|
|
2485
2485
|
});
|
|
2486
2486
|
}
|
|
2487
2487
|
function u(m, E) {
|
|
2488
|
-
const
|
|
2488
|
+
const S = m.context(), y = a(7, S.offset, S.startLoc);
|
|
2489
2489
|
return y.value = E, o(y, m.currentOffset(), m.currentPosition()), y;
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2492
|
-
const E = m.context(),
|
|
2491
|
+
function _(m) {
|
|
2492
|
+
const E = m.context(), S = a(6, E.offset, E.startLoc);
|
|
2493
2493
|
let y = m.nextToken();
|
|
2494
2494
|
if (y.type === 8) {
|
|
2495
2495
|
const k = f(m);
|
|
2496
|
-
|
|
2496
|
+
S.modifier = k.node, y = k.nextConsumeToken || m.nextToken();
|
|
2497
2497
|
}
|
|
2498
2498
|
switch (y.type !== 9 && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)), y = m.nextToken(), y.type === 2 && (y = m.nextToken()), y.type) {
|
|
2499
2499
|
case 10:
|
|
2500
|
-
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)),
|
|
2500
|
+
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)), S.key = u(m, y.value || "");
|
|
2501
2501
|
break;
|
|
2502
2502
|
case 4:
|
|
2503
|
-
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)),
|
|
2503
|
+
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)), S.key = i(m, y.value || "");
|
|
2504
2504
|
break;
|
|
2505
2505
|
case 5:
|
|
2506
|
-
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)),
|
|
2506
|
+
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)), S.key = l(m, y.value || "");
|
|
2507
2507
|
break;
|
|
2508
2508
|
case 6:
|
|
2509
|
-
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)),
|
|
2509
|
+
y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(y)), S.key = c(m, y.value || "");
|
|
2510
2510
|
break;
|
|
2511
2511
|
default: {
|
|
2512
2512
|
r(m, x.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
|
|
2513
2513
|
const k = m.context(), R = a(7, k.offset, k.startLoc);
|
|
2514
|
-
return R.value = "", o(R, k.offset, k.startLoc),
|
|
2514
|
+
return R.value = "", o(R, k.offset, k.startLoc), S.key = R, o(S, k.offset, k.startLoc), {
|
|
2515
2515
|
nextConsumeToken: y,
|
|
2516
|
-
node:
|
|
2516
|
+
node: S
|
|
2517
2517
|
};
|
|
2518
2518
|
}
|
|
2519
2519
|
}
|
|
2520
|
-
return o(
|
|
2521
|
-
node:
|
|
2520
|
+
return o(S, m.currentOffset(), m.currentPosition()), {
|
|
2521
|
+
node: S
|
|
2522
2522
|
};
|
|
2523
2523
|
}
|
|
2524
2524
|
function g(m) {
|
|
2525
|
-
const E = m.context(),
|
|
2525
|
+
const E = m.context(), S = E.currentType === 1 ? m.currentOffset() : E.offset, y = E.currentType === 1 ? E.endLoc : E.startLoc, k = a(2, S, y);
|
|
2526
2526
|
k.items = [];
|
|
2527
2527
|
let R = null;
|
|
2528
2528
|
do {
|
|
@@ -2541,7 +2541,7 @@ function Yi(e = {}) {
|
|
|
2541
2541
|
Y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(Y)), k.items.push(c(m, Y.value || ""));
|
|
2542
2542
|
break;
|
|
2543
2543
|
case 7: {
|
|
2544
|
-
const re =
|
|
2544
|
+
const re = _(m);
|
|
2545
2545
|
k.items.push(re.node), R = re.nextConsumeToken || null;
|
|
2546
2546
|
break;
|
|
2547
2547
|
}
|
|
@@ -2550,24 +2550,24 @@ function Yi(e = {}) {
|
|
|
2550
2550
|
const A = E.currentType === 1 ? E.lastOffset : m.currentOffset(), B = E.currentType === 1 ? E.lastEndLoc : m.currentPosition();
|
|
2551
2551
|
return o(k, A, B), k;
|
|
2552
2552
|
}
|
|
2553
|
-
function T(m, E,
|
|
2553
|
+
function T(m, E, S, y) {
|
|
2554
2554
|
const k = m.context();
|
|
2555
2555
|
let R = y.items.length === 0;
|
|
2556
|
-
const A = a(1, E,
|
|
2556
|
+
const A = a(1, E, S);
|
|
2557
2557
|
A.cases = [], A.cases.push(y);
|
|
2558
2558
|
do {
|
|
2559
2559
|
const B = g(m);
|
|
2560
2560
|
R || (R = B.items.length === 0), A.cases.push(B);
|
|
2561
2561
|
} while (k.currentType !== 13);
|
|
2562
|
-
return R && r(m, x.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
2562
|
+
return R && r(m, x.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(A, m.currentOffset(), m.currentPosition()), A;
|
|
2563
2563
|
}
|
|
2564
2564
|
function p(m) {
|
|
2565
|
-
const E = m.context(), { offset:
|
|
2566
|
-
return E.currentType === 13 ? k : T(m,
|
|
2565
|
+
const E = m.context(), { offset: S, startLoc: y } = E, k = g(m);
|
|
2566
|
+
return E.currentType === 13 ? k : T(m, S, y, k);
|
|
2567
2567
|
}
|
|
2568
2568
|
function w(m) {
|
|
2569
|
-
const E = Bi(m, ce({}, e)),
|
|
2570
|
-
return t && y.loc && (y.loc.source = m), y.body = p(E), e.onCacheKey && (y.cacheKey = e.onCacheKey(m)),
|
|
2569
|
+
const E = Bi(m, ce({}, e)), S = E.context(), y = a(0, S.offset, S.startLoc);
|
|
2570
|
+
return t && y.loc && (y.loc.source = m), y.body = p(E), e.onCacheKey && (y.cacheKey = e.onCacheKey(m)), S.currentType !== 13 && r(E, x.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, m[S.offset] || ""), o(y, E.currentOffset(), E.currentPosition()), y;
|
|
2571
2571
|
}
|
|
2572
2572
|
return { parse: w };
|
|
2573
2573
|
}
|
|
@@ -2655,7 +2655,7 @@ function Ua(e) {
|
|
|
2655
2655
|
t.push(r.value);
|
|
2656
2656
|
}
|
|
2657
2657
|
if (t.length === e.items.length) {
|
|
2658
|
-
e.static =
|
|
2658
|
+
e.static = da(t);
|
|
2659
2659
|
for (let n = 0; n < e.items.length; n++) {
|
|
2660
2660
|
const r = e.items[n];
|
|
2661
2661
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -2710,7 +2710,7 @@ function it(e) {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
default:
|
|
2712
2712
|
if (process.env.NODE_ENV !== "production")
|
|
2713
|
-
throw
|
|
2713
|
+
throw _t(x.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
2714
2714
|
domain: qi,
|
|
2715
2715
|
args: [e.type]
|
|
2716
2716
|
});
|
|
@@ -2747,7 +2747,7 @@ function Qi(e, t) {
|
|
|
2747
2747
|
const w = --s.indentLevel;
|
|
2748
2748
|
p && c(w);
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function _() {
|
|
2751
2751
|
c(s.indentLevel);
|
|
2752
2752
|
}
|
|
2753
2753
|
return {
|
|
@@ -2755,7 +2755,7 @@ function Qi(e, t) {
|
|
|
2755
2755
|
push: i,
|
|
2756
2756
|
indent: f,
|
|
2757
2757
|
deindent: u,
|
|
2758
|
-
newline:
|
|
2758
|
+
newline: _,
|
|
2759
2759
|
helper: (p) => `_${p}`,
|
|
2760
2760
|
needIndent: () => s.needIndent
|
|
2761
2761
|
};
|
|
@@ -2841,7 +2841,7 @@ function ft(e, t) {
|
|
|
2841
2841
|
break;
|
|
2842
2842
|
default:
|
|
2843
2843
|
if (process.env.NODE_ENV !== "production")
|
|
2844
|
-
throw
|
|
2844
|
+
throw _t(x.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
2845
2845
|
domain: Xi,
|
|
2846
2846
|
args: [t.type]
|
|
2847
2847
|
});
|
|
@@ -2856,7 +2856,7 @@ const tl = (e, t = {}) => {
|
|
|
2856
2856
|
breakLineCode: a,
|
|
2857
2857
|
needIndent: o
|
|
2858
2858
|
});
|
|
2859
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${
|
|
2859
|
+
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${da(s.map((f) => `${f}: _${f}`), ", ")} } = ctx`), l.newline()), l.push("return "), ft(l, e), l.deindent(o), l.push("}"), delete e.helpers;
|
|
2860
2860
|
const { code: i, map: c } = l.context();
|
|
2861
2861
|
return {
|
|
2862
2862
|
ast: e,
|
|
@@ -3006,10 +3006,10 @@ function Wn(e, t) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
3008
|
const fl = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
3009
|
-
function
|
|
3009
|
+
function dl(e, t) {
|
|
3010
3010
|
t && Ri(e) && (Zt(fl, { source: e }), void 0);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const _l = (e) => e;
|
|
3013
3013
|
let $t = X();
|
|
3014
3014
|
function ml(e, t = {}) {
|
|
3015
3015
|
let n = !1;
|
|
@@ -3022,8 +3022,8 @@ function ml(e, t = {}) {
|
|
|
3022
3022
|
function hl(e, t) {
|
|
3023
3023
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
|
|
3024
3024
|
const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
3025
|
-
process.env.NODE_ENV !== "production" &&
|
|
3026
|
-
const a = (t.onCacheKey ||
|
|
3025
|
+
process.env.NODE_ENV !== "production" && dl(e, n);
|
|
3026
|
+
const a = (t.onCacheKey || _l)(e), o = $t[a];
|
|
3027
3027
|
if (o)
|
|
3028
3028
|
return o;
|
|
3029
3029
|
const { ast: s, detectError: l } = ml(e, {
|
|
@@ -3055,11 +3055,11 @@ function pl(e, t, n) {
|
|
|
3055
3055
|
meta: n
|
|
3056
3056
|
});
|
|
3057
3057
|
}
|
|
3058
|
-
const El = /* @__PURE__ */
|
|
3059
|
-
function
|
|
3058
|
+
const El = /* @__PURE__ */ Sl("function:translate");
|
|
3059
|
+
function Sl(e) {
|
|
3060
3060
|
return (t) => It && It.emit(e, t);
|
|
3061
3061
|
}
|
|
3062
|
-
const
|
|
3062
|
+
const de = {
|
|
3063
3063
|
INVALID_ARGUMENT: Li,
|
|
3064
3064
|
// 17
|
|
3065
3065
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -3068,38 +3068,38 @@ const _e = {
|
|
|
3068
3068
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
3069
3069
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
3070
3070
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3071
|
-
},
|
|
3071
|
+
}, bl = 24;
|
|
3072
3072
|
function Fe(e) {
|
|
3073
|
-
return
|
|
3073
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: vl } : void 0);
|
|
3074
3074
|
}
|
|
3075
3075
|
const vl = {
|
|
3076
|
-
[
|
|
3077
|
-
[
|
|
3078
|
-
[
|
|
3079
|
-
[
|
|
3080
|
-
[
|
|
3081
|
-
[
|
|
3082
|
-
[
|
|
3076
|
+
[de.INVALID_ARGUMENT]: "Invalid arguments",
|
|
3077
|
+
[de.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
3078
|
+
[de.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
3079
|
+
[de.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
3080
|
+
[de.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
3081
|
+
[de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
3082
|
+
[de.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
3083
3083
|
};
|
|
3084
3084
|
function ga(e, t) {
|
|
3085
3085
|
return t.locale != null ? Va(t.locale) : Va(e.locale);
|
|
3086
3086
|
}
|
|
3087
|
-
let
|
|
3087
|
+
let Nn;
|
|
3088
3088
|
function Va(e) {
|
|
3089
3089
|
if (P(e))
|
|
3090
3090
|
return e;
|
|
3091
3091
|
if (J(e)) {
|
|
3092
|
-
if (e.resolvedOnce &&
|
|
3093
|
-
return
|
|
3092
|
+
if (e.resolvedOnce && Nn != null)
|
|
3093
|
+
return Nn;
|
|
3094
3094
|
if (e.constructor.name === "Function") {
|
|
3095
3095
|
const t = e();
|
|
3096
|
-
if (
|
|
3097
|
-
throw Fe(
|
|
3098
|
-
return
|
|
3096
|
+
if (Ni(t))
|
|
3097
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
3098
|
+
return Nn = t;
|
|
3099
3099
|
} else
|
|
3100
|
-
throw Fe(
|
|
3100
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
3101
3101
|
} else
|
|
3102
|
-
throw Fe(
|
|
3102
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_TYPE);
|
|
3103
3103
|
}
|
|
3104
3104
|
function yl(e, t, n) {
|
|
3105
3105
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -3308,9 +3308,9 @@ Ye[
|
|
|
3308
3308
|
/* Actions.APPEND */
|
|
3309
3309
|
]
|
|
3310
3310
|
};
|
|
3311
|
-
const
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3311
|
+
const Nl = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
3312
|
+
function Cl(e) {
|
|
3313
|
+
return Nl.test(e);
|
|
3314
3314
|
}
|
|
3315
3315
|
function Ol(e) {
|
|
3316
3316
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -3355,43 +3355,43 @@ function Il(e) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
function Ll(e) {
|
|
3357
3357
|
const t = e.trim();
|
|
3358
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
3358
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Cl(t) ? Ol(t) : "*" + t;
|
|
3359
3359
|
}
|
|
3360
3360
|
function wl(e) {
|
|
3361
3361
|
const t = [];
|
|
3362
3362
|
let n = -1, r = 0, a = 0, o, s, l, i, c, f, u;
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3363
|
+
const _ = [];
|
|
3364
|
+
_[
|
|
3365
3365
|
0
|
|
3366
3366
|
/* Actions.APPEND */
|
|
3367
3367
|
] = () => {
|
|
3368
3368
|
s === void 0 ? s = l : s += l;
|
|
3369
|
-
},
|
|
3369
|
+
}, _[
|
|
3370
3370
|
1
|
|
3371
3371
|
/* Actions.PUSH */
|
|
3372
3372
|
] = () => {
|
|
3373
3373
|
s !== void 0 && (t.push(s), s = void 0);
|
|
3374
|
-
},
|
|
3374
|
+
}, _[
|
|
3375
3375
|
2
|
|
3376
3376
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
3377
3377
|
] = () => {
|
|
3378
|
-
|
|
3378
|
+
_[
|
|
3379
3379
|
0
|
|
3380
3380
|
/* Actions.APPEND */
|
|
3381
3381
|
](), a++;
|
|
3382
|
-
},
|
|
3382
|
+
}, _[
|
|
3383
3383
|
3
|
|
3384
3384
|
/* Actions.PUSH_SUB_PATH */
|
|
3385
3385
|
] = () => {
|
|
3386
3386
|
if (a > 0)
|
|
3387
|
-
a--, r = 4,
|
|
3387
|
+
a--, r = 4, _[
|
|
3388
3388
|
0
|
|
3389
3389
|
/* Actions.APPEND */
|
|
3390
3390
|
]();
|
|
3391
3391
|
else {
|
|
3392
3392
|
if (a = 0, s === void 0 || (s = Ll(s), s === !1))
|
|
3393
3393
|
return !1;
|
|
3394
|
-
|
|
3394
|
+
_[
|
|
3395
3395
|
1
|
|
3396
3396
|
/* Actions.PUSH */
|
|
3397
3397
|
]();
|
|
@@ -3400,14 +3400,14 @@ function wl(e) {
|
|
|
3400
3400
|
function g() {
|
|
3401
3401
|
const T = e[n + 1];
|
|
3402
3402
|
if (r === 5 && T === "'" || r === 6 && T === '"')
|
|
3403
|
-
return n++, l = "\\" + T,
|
|
3403
|
+
return n++, l = "\\" + T, _[
|
|
3404
3404
|
0
|
|
3405
3405
|
/* Actions.APPEND */
|
|
3406
3406
|
](), !0;
|
|
3407
3407
|
}
|
|
3408
3408
|
for (; r !== null; )
|
|
3409
3409
|
if (n++, o = e[n], !(o === "\\" && g())) {
|
|
3410
|
-
if (i = Il(o), u = Ye[r], c = u[i] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f =
|
|
3410
|
+
if (i = Il(o), u = Ye[r], c = u[i] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = _[c[1]], f && (l = o, f() === !1))))
|
|
3411
3411
|
return;
|
|
3412
3412
|
if (r === 7)
|
|
3413
3413
|
return t;
|
|
@@ -3486,9 +3486,9 @@ const Wa = (e) => {
|
|
|
3486
3486
|
}, $l = () => fo;
|
|
3487
3487
|
let Ya = 0;
|
|
3488
3488
|
function Wl(e = {}) {
|
|
3489
|
-
const t = J(e.onWarn) ? e.onWarn : pi, n = P(e.version) ? e.version : Fl, r = P(e.locale) || J(e.locale) ? e.locale : Lt, a = J(r) ? Lt : r, o = ae(e.fallbackLocale) || G(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = G(e.messages) ? e.messages :
|
|
3489
|
+
const t = J(e.onWarn) ? e.onWarn : pi, n = P(e.version) ? e.version : Fl, r = P(e.locale) || J(e.locale) ? e.locale : Lt, a = J(r) ? Lt : r, o = ae(e.fallbackLocale) || G(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = G(e.messages) ? e.messages : Cn(a), l = G(e.datetimeFormats) ? e.datetimeFormats : Cn(a), i = G(e.numberFormats) ? e.numberFormats : Cn(a), c = ce(X(), e.modifiers, Ml()), f = e.pluralRules || X(), u = J(e.missing) ? e.missing : null, _ = K(e.missingWarn) || ut(e.missingWarn) ? e.missingWarn : !0, g = K(e.fallbackWarn) || ut(e.fallbackWarn) ? e.fallbackWarn : !0, T = !!e.fallbackFormat, p = !!e.unresolving, w = J(e.postTranslation) ? e.postTranslation : null, m = G(e.processor) ? e.processor : null, E = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, y = J(e.messageCompiler) ? e.messageCompiler : io;
|
|
3490
3490
|
process.env.NODE_ENV !== "production" && J(e.messageCompiler) && ua(ze(me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3491
|
-
const k = J(e.messageResolver) ? e.messageResolver : lo || Dl, R = J(e.localeFallbacker) ? e.localeFallbacker : co || yl, A = H(e.fallbackContext) ? e.fallbackContext : void 0, B = e, Y = H(B.__datetimeFormatters) ? B.__datetimeFormatters : /* @__PURE__ */ new Map(), re = H(B.__numberFormatters) ? B.__numberFormatters : /* @__PURE__ */ new Map(),
|
|
3491
|
+
const k = J(e.messageResolver) ? e.messageResolver : lo || Dl, R = J(e.localeFallbacker) ? e.localeFallbacker : co || yl, A = H(e.fallbackContext) ? e.fallbackContext : void 0, B = e, Y = H(B.__datetimeFormatters) ? B.__datetimeFormatters : /* @__PURE__ */ new Map(), re = H(B.__numberFormatters) ? B.__numberFormatters : /* @__PURE__ */ new Map(), _e = H(B.__meta) ? B.__meta : {};
|
|
3492
3492
|
Ya++;
|
|
3493
3493
|
const ee = {
|
|
3494
3494
|
version: n,
|
|
@@ -3499,24 +3499,24 @@ function Wl(e = {}) {
|
|
|
3499
3499
|
modifiers: c,
|
|
3500
3500
|
pluralRules: f,
|
|
3501
3501
|
missing: u,
|
|
3502
|
-
missingWarn:
|
|
3502
|
+
missingWarn: _,
|
|
3503
3503
|
fallbackWarn: g,
|
|
3504
3504
|
fallbackFormat: T,
|
|
3505
3505
|
unresolving: p,
|
|
3506
3506
|
postTranslation: w,
|
|
3507
3507
|
processor: m,
|
|
3508
3508
|
warnHtmlMessage: E,
|
|
3509
|
-
escapeParameter:
|
|
3509
|
+
escapeParameter: S,
|
|
3510
3510
|
messageCompiler: y,
|
|
3511
3511
|
messageResolver: k,
|
|
3512
3512
|
localeFallbacker: R,
|
|
3513
3513
|
fallbackContext: A,
|
|
3514
3514
|
onWarn: t,
|
|
3515
|
-
__meta:
|
|
3515
|
+
__meta: _e
|
|
3516
3516
|
};
|
|
3517
|
-
return ee.datetimeFormats = l, ee.numberFormats = i, ee.__datetimeFormatters = Y, ee.__numberFormatters = re, process.env.NODE_ENV !== "production" && (ee.__v_emitter = B.__v_emitter != null ? B.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && pl(ee, n,
|
|
3517
|
+
return ee.datetimeFormats = l, ee.numberFormats = i, ee.__datetimeFormatters = Y, ee.__numberFormatters = re, process.env.NODE_ENV !== "production" && (ee.__v_emitter = B.__v_emitter != null ? B.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && pl(ee, n, _e), ee;
|
|
3518
3518
|
}
|
|
3519
|
-
const
|
|
3519
|
+
const Cn = (e) => ({ [e]: X() });
|
|
3520
3520
|
function nn(e, t) {
|
|
3521
3521
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3522
3522
|
}
|
|
@@ -3564,7 +3564,7 @@ function Ka(e, ...t) {
|
|
|
3564
3564
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
3565
3565
|
if (process.env.NODE_ENV !== "production" && !ho.dateTimeFormat)
|
|
3566
3566
|
return o(ze(me.CANNOT_FORMAT_DATE)), Xt;
|
|
3567
|
-
const [i, c, f, u] = Yn(...t),
|
|
3567
|
+
const [i, c, f, u] = Yn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, g = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, T = !!f.part, p = ga(e, f), w = s(
|
|
3568
3568
|
e,
|
|
3569
3569
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3570
3570
|
a,
|
|
@@ -3572,7 +3572,7 @@ function Ka(e, ...t) {
|
|
|
3572
3572
|
);
|
|
3573
3573
|
if (!P(i) || i === "")
|
|
3574
3574
|
return new Intl.DateTimeFormat(p, u).format(c);
|
|
3575
|
-
let m = {}, E,
|
|
3575
|
+
let m = {}, E, S = null, y = p, k = null;
|
|
3576
3576
|
const R = "datetime format";
|
|
3577
3577
|
for (let Y = 0; Y < w.length; Y++) {
|
|
3578
3578
|
if (E = k = w[Y], process.env.NODE_ENV !== "production" && p !== E && nn(g, i) && o(ze(me.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -3588,16 +3588,16 @@ function Ka(e, ...t) {
|
|
|
3588
3588
|
groupId: `${R}:${i}`
|
|
3589
3589
|
});
|
|
3590
3590
|
}
|
|
3591
|
-
if (m = n[E] || {},
|
|
3591
|
+
if (m = n[E] || {}, S = m[i], G(S))
|
|
3592
3592
|
break;
|
|
3593
|
-
pa(e, i, E,
|
|
3593
|
+
pa(e, i, E, _, R), y = k;
|
|
3594
3594
|
}
|
|
3595
|
-
if (!G(
|
|
3595
|
+
if (!G(S) || !P(E))
|
|
3596
3596
|
return r ? tn : i;
|
|
3597
3597
|
let A = `${E}__${i}`;
|
|
3598
3598
|
en(u) || (A = `${A}__${JSON.stringify(u)}`);
|
|
3599
3599
|
let B = l.get(A);
|
|
3600
|
-
return B || (B = new Intl.DateTimeFormat(E, ce({},
|
|
3600
|
+
return B || (B = new Intl.DateTimeFormat(E, ce({}, S, u)), l.set(A, B)), T ? B.formatToParts(c) : B.format(c);
|
|
3601
3601
|
}
|
|
3602
3602
|
const go = [
|
|
3603
3603
|
"localeMatcher",
|
|
@@ -3627,22 +3627,22 @@ function Yn(...e) {
|
|
|
3627
3627
|
if (P(t)) {
|
|
3628
3628
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
3629
3629
|
if (!i)
|
|
3630
|
-
throw Fe(
|
|
3630
|
+
throw Fe(de.INVALID_ISO_DATE_ARGUMENT);
|
|
3631
3631
|
const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
3632
3632
|
l = new Date(c);
|
|
3633
3633
|
try {
|
|
3634
3634
|
l.toISOString();
|
|
3635
3635
|
} catch {
|
|
3636
|
-
throw Fe(
|
|
3636
|
+
throw Fe(de.INVALID_ISO_DATE_ARGUMENT);
|
|
3637
3637
|
}
|
|
3638
3638
|
} else if (vi(t)) {
|
|
3639
3639
|
if (isNaN(t.getTime()))
|
|
3640
|
-
throw Fe(
|
|
3640
|
+
throw Fe(de.INVALID_DATE_ARGUMENT);
|
|
3641
3641
|
l = t;
|
|
3642
3642
|
} else if (ie(t))
|
|
3643
3643
|
l = t;
|
|
3644
3644
|
else
|
|
3645
|
-
throw Fe(
|
|
3645
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3646
3646
|
return P(n) ? o.key = n : G(n) && Object.keys(n).forEach((i) => {
|
|
3647
3647
|
go.includes(i) ? s[i] = n[i] : o[i] = n[i];
|
|
3648
3648
|
}), P(r) ? o.locale = r : G(r) && (s = r), G(a) && (s = a), [o.key || "", l, o, s];
|
|
@@ -3658,7 +3658,7 @@ function qa(e, ...t) {
|
|
|
3658
3658
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
3659
3659
|
if (process.env.NODE_ENV !== "production" && !ho.numberFormat)
|
|
3660
3660
|
return o(ze(me.CANNOT_FORMAT_NUMBER)), Xt;
|
|
3661
|
-
const [i, c, f, u] = Hn(...t),
|
|
3661
|
+
const [i, c, f, u] = Hn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, g = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, T = !!f.part, p = ga(e, f), w = s(
|
|
3662
3662
|
e,
|
|
3663
3663
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3664
3664
|
a,
|
|
@@ -3666,7 +3666,7 @@ function qa(e, ...t) {
|
|
|
3666
3666
|
);
|
|
3667
3667
|
if (!P(i) || i === "")
|
|
3668
3668
|
return new Intl.NumberFormat(p, u).format(c);
|
|
3669
|
-
let m = {}, E,
|
|
3669
|
+
let m = {}, E, S = null, y = p, k = null;
|
|
3670
3670
|
const R = "number format";
|
|
3671
3671
|
for (let Y = 0; Y < w.length; Y++) {
|
|
3672
3672
|
if (E = k = w[Y], process.env.NODE_ENV !== "production" && p !== E && nn(g, i) && o(ze(me.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -3682,16 +3682,16 @@ function qa(e, ...t) {
|
|
|
3682
3682
|
groupId: `${R}:${i}`
|
|
3683
3683
|
});
|
|
3684
3684
|
}
|
|
3685
|
-
if (m = n[E] || {},
|
|
3685
|
+
if (m = n[E] || {}, S = m[i], G(S))
|
|
3686
3686
|
break;
|
|
3687
|
-
pa(e, i, E,
|
|
3687
|
+
pa(e, i, E, _, R), y = k;
|
|
3688
3688
|
}
|
|
3689
|
-
if (!G(
|
|
3689
|
+
if (!G(S) || !P(E))
|
|
3690
3690
|
return r ? tn : i;
|
|
3691
3691
|
let A = `${E}__${i}`;
|
|
3692
3692
|
en(u) || (A = `${A}__${JSON.stringify(u)}`);
|
|
3693
3693
|
let B = l.get(A);
|
|
3694
|
-
return B || (B = new Intl.NumberFormat(E, ce({},
|
|
3694
|
+
return B || (B = new Intl.NumberFormat(E, ce({}, S, u)), l.set(A, B)), T ? B.formatToParts(c) : B.format(c);
|
|
3695
3695
|
}
|
|
3696
3696
|
const po = [
|
|
3697
3697
|
"localeMatcher",
|
|
@@ -3719,7 +3719,7 @@ function Hn(...e) {
|
|
|
3719
3719
|
const [t, n, r, a] = e, o = X();
|
|
3720
3720
|
let s = X();
|
|
3721
3721
|
if (!ie(t))
|
|
3722
|
-
throw Fe(
|
|
3722
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3723
3723
|
const l = t;
|
|
3724
3724
|
return P(n) ? o.key = n : G(n) && Object.keys(n).forEach((i) => {
|
|
3725
3725
|
po.includes(i) ? s[i] = n[i] : o[i] = n[i];
|
|
@@ -3732,7 +3732,7 @@ function Xa(e, t, n) {
|
|
|
3732
3732
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
|
-
const Hl = (e) => e, Kl = (e) => "", jl = "text", ql = (e) => e.length === 0 ? "" :
|
|
3735
|
+
const Hl = (e) => e, Kl = (e) => "", jl = "text", ql = (e) => e.length === 0 ? "" : da(e), Xl = Ci;
|
|
3736
3736
|
function Qa(e, t) {
|
|
3737
3737
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
3738
3738
|
}
|
|
@@ -3748,17 +3748,17 @@ function zl(e = {}) {
|
|
|
3748
3748
|
ie(e.pluralIndex) && Jl(n, i);
|
|
3749
3749
|
const c = (m) => i[m];
|
|
3750
3750
|
function f(m, E) {
|
|
3751
|
-
const
|
|
3752
|
-
return
|
|
3751
|
+
const S = J(e.messages) ? e.messages(m, !!E) : H(e.messages) ? e.messages[m] : !1;
|
|
3752
|
+
return S || (e.parent ? e.parent.message(m) : Kl);
|
|
3753
3753
|
}
|
|
3754
|
-
const u = (m) => e.modifiers ? e.modifiers[m] : Hl,
|
|
3754
|
+
const u = (m) => e.modifiers ? e.modifiers[m] : Hl, _ = G(e.processor) && J(e.processor.normalize) ? e.processor.normalize : ql, g = G(e.processor) && J(e.processor.interpolate) ? e.processor.interpolate : Xl, T = G(e.processor) && P(e.processor.type) ? e.processor.type : jl, w = {
|
|
3755
3755
|
list: l,
|
|
3756
3756
|
named: c,
|
|
3757
3757
|
plural: o,
|
|
3758
3758
|
linked: (m, ...E) => {
|
|
3759
|
-
const [
|
|
3759
|
+
const [S, y] = E;
|
|
3760
3760
|
let k = "text", R = "";
|
|
3761
|
-
E.length === 1 ? H(
|
|
3761
|
+
E.length === 1 ? H(S) ? (R = S.modifier || R, k = S.type || k) : P(S) && (R = S || R) : E.length === 2 && (P(S) && (R = S || R), P(y) && (k = y || k));
|
|
3762
3762
|
const A = f(m, !0)(w), B = (
|
|
3763
3763
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
3764
3764
|
k === "vnode" && ae(A) && R ? A[0] : A
|
|
@@ -3768,38 +3768,38 @@ function zl(e = {}) {
|
|
|
3768
3768
|
message: f,
|
|
3769
3769
|
type: T,
|
|
3770
3770
|
interpolate: g,
|
|
3771
|
-
normalize:
|
|
3771
|
+
normalize: _,
|
|
3772
3772
|
values: ce(X(), s, i)
|
|
3773
3773
|
};
|
|
3774
3774
|
return w;
|
|
3775
3775
|
}
|
|
3776
|
-
const Ja = () => "",
|
|
3776
|
+
const Ja = () => "", Se = (e) => J(e);
|
|
3777
3777
|
function za(e, ...t) {
|
|
3778
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: l } = e, [i, c] = Kn(...t), f = K(c.missingWarn) ? c.missingWarn : e.missingWarn, u = K(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn,
|
|
3779
|
-
|
|
3780
|
-
let [m, E,
|
|
3778
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: l } = e, [i, c] = Kn(...t), f = K(c.missingWarn) ? c.missingWarn : e.missingWarn, u = K(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, _ = K(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, T = P(c.default) || K(c.default) ? K(c.default) ? o ? i : () => i : c.default : n ? o ? i : () => i : null, p = n || T != null && (P(T) || J(T)), w = ga(e, c);
|
|
3779
|
+
_ && Zl(c);
|
|
3780
|
+
let [m, E, S] = g ? [
|
|
3781
3781
|
i,
|
|
3782
3782
|
w,
|
|
3783
3783
|
l[w] || X()
|
|
3784
3784
|
] : Eo(e, i, w, s, u, f), y = m, k = i;
|
|
3785
|
-
if (!g && !(P(y) || ye(y) ||
|
|
3785
|
+
if (!g && !(P(y) || ye(y) || Se(y)) && p && (y = T, k = y), !g && (!(P(y) || ye(y) || Se(y)) || !P(E)))
|
|
3786
3786
|
return a ? tn : i;
|
|
3787
3787
|
if (process.env.NODE_ENV !== "production" && P(y) && e.messageCompiler == null)
|
|
3788
3788
|
return `${i}`, i;
|
|
3789
3789
|
let R = !1;
|
|
3790
3790
|
const A = () => {
|
|
3791
3791
|
R = !0;
|
|
3792
|
-
}, B =
|
|
3792
|
+
}, B = Se(y) ? y : So(e, i, E, y, k, A);
|
|
3793
3793
|
if (R)
|
|
3794
3794
|
return y;
|
|
3795
|
-
const Y = ac(e, E,
|
|
3796
|
-
let ee = r ? r(
|
|
3797
|
-
if (
|
|
3795
|
+
const Y = ac(e, E, S, c), re = zl(Y), _e = ec(e, B, re);
|
|
3796
|
+
let ee = r ? r(_e, i) : _e;
|
|
3797
|
+
if (_ && P(ee) && (ee = Ti(ee)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3798
3798
|
const et = {
|
|
3799
3799
|
timestamp: Date.now(),
|
|
3800
|
-
key: P(i) ? i :
|
|
3801
|
-
locale: E || (
|
|
3802
|
-
format: P(y) ? y :
|
|
3800
|
+
key: P(i) ? i : Se(y) ? y.key : "",
|
|
3801
|
+
locale: E || (Se(y) ? y.locale : ""),
|
|
3802
|
+
format: P(y) ? y : Se(y) ? y.source : "",
|
|
3803
3803
|
message: ee
|
|
3804
3804
|
};
|
|
3805
3805
|
et.meta = ce({}, e.__meta, /* @__PURE__ */ Gl() || {}), El(et);
|
|
@@ -3813,13 +3813,13 @@ function Zl(e) {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
function Eo(e, t, n, r, a, o) {
|
|
3815
3815
|
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, f = c(e, r, n);
|
|
3816
|
-
let u = X(),
|
|
3816
|
+
let u = X(), _, g = null, T = n, p = null;
|
|
3817
3817
|
const w = "translate";
|
|
3818
3818
|
for (let m = 0; m < f.length; m++) {
|
|
3819
|
-
if (
|
|
3819
|
+
if (_ = p = f[m], process.env.NODE_ENV !== "production" && n !== _ && !mo(n, _) && nn(a, t) && l(ze(me.FALLBACK_TO_TRANSLATE, {
|
|
3820
3820
|
key: t,
|
|
3821
|
-
target:
|
|
3822
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
3821
|
+
target: _
|
|
3822
|
+
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
3823
3823
|
const k = e.__v_emitter;
|
|
3824
3824
|
k && k.emit("fallback", {
|
|
3825
3825
|
type: w,
|
|
@@ -3829,9 +3829,9 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3829
3829
|
groupId: `${w}:${t}`
|
|
3830
3830
|
});
|
|
3831
3831
|
}
|
|
3832
|
-
u = s[
|
|
3833
|
-
let E = null,
|
|
3834
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3832
|
+
u = s[_] || X();
|
|
3833
|
+
let E = null, S, y;
|
|
3834
|
+
if (process.env.NODE_ENV !== "production" && Ce && (E = window.performance.now(), S = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(S)), (g = i(u, t)) === null && (g = u[t]), process.env.NODE_ENV !== "production" && Ce) {
|
|
3835
3835
|
const k = window.performance.now(), R = e.__v_emitter;
|
|
3836
3836
|
R && E && g && R.emit("message-resolve", {
|
|
3837
3837
|
type: "message-resolve",
|
|
@@ -3839,16 +3839,16 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3839
3839
|
message: g,
|
|
3840
3840
|
time: k - E,
|
|
3841
3841
|
groupId: `${w}:${t}`
|
|
3842
|
-
}),
|
|
3842
|
+
}), S && y && Ee && Je && (Ee(y), Je("intlify message resolve", S, y));
|
|
3843
3843
|
}
|
|
3844
|
-
if (P(g) || ye(g) ||
|
|
3844
|
+
if (P(g) || ye(g) || Se(g))
|
|
3845
3845
|
break;
|
|
3846
|
-
if (!Yl(
|
|
3846
|
+
if (!Yl(_, f)) {
|
|
3847
3847
|
const k = pa(
|
|
3848
3848
|
e,
|
|
3849
3849
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3850
3850
|
t,
|
|
3851
|
-
|
|
3851
|
+
_,
|
|
3852
3852
|
o,
|
|
3853
3853
|
w
|
|
3854
3854
|
);
|
|
@@ -3856,27 +3856,27 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
T = p;
|
|
3858
3858
|
}
|
|
3859
|
-
return [g,
|
|
3859
|
+
return [g, _, u];
|
|
3860
3860
|
}
|
|
3861
|
-
function
|
|
3861
|
+
function So(e, t, n, r, a, o) {
|
|
3862
3862
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
3863
|
-
if (
|
|
3864
|
-
const
|
|
3865
|
-
return
|
|
3863
|
+
if (Se(r)) {
|
|
3864
|
+
const _ = r;
|
|
3865
|
+
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
3866
3866
|
}
|
|
3867
3867
|
if (s == null) {
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3868
|
+
const _ = () => r;
|
|
3869
|
+
return _.locale = n, _.key = t, _;
|
|
3870
3870
|
}
|
|
3871
3871
|
let i = null, c, f;
|
|
3872
|
-
process.env.NODE_ENV !== "production" &&
|
|
3872
|
+
process.env.NODE_ENV !== "production" && Ce && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
|
|
3873
3873
|
const u = s(r, tc(e, n, a, r, l, o));
|
|
3874
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3875
|
-
const
|
|
3874
|
+
if (process.env.NODE_ENV !== "production" && Ce) {
|
|
3875
|
+
const _ = window.performance.now(), g = e.__v_emitter;
|
|
3876
3876
|
g && i && g.emit("message-compilation", {
|
|
3877
3877
|
type: "message-compilation",
|
|
3878
3878
|
message: r,
|
|
3879
|
-
time:
|
|
3879
|
+
time: _ - i,
|
|
3880
3880
|
groupId: `translate:${t}`
|
|
3881
3881
|
}), c && f && Ee && Je && (Ee(f), Je("intlify message compilation", c, f));
|
|
3882
3882
|
}
|
|
@@ -3884,9 +3884,9 @@ function bo(e, t, n, r, a, o) {
|
|
|
3884
3884
|
}
|
|
3885
3885
|
function ec(e, t, n) {
|
|
3886
3886
|
let r = null, a, o;
|
|
3887
|
-
process.env.NODE_ENV !== "production" &&
|
|
3887
|
+
process.env.NODE_ENV !== "production" && Ce && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ee && Ee(a));
|
|
3888
3888
|
const s = t(n);
|
|
3889
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3889
|
+
if (process.env.NODE_ENV !== "production" && Ce) {
|
|
3890
3890
|
const l = window.performance.now(), i = e.__v_emitter;
|
|
3891
3891
|
i && r && i.emit("message-evaluation", {
|
|
3892
3892
|
type: "message-evaluation",
|
|
@@ -3899,9 +3899,9 @@ function ec(e, t, n) {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
function Kn(...e) {
|
|
3901
3901
|
const [t, n, r] = e, a = X();
|
|
3902
|
-
if (!P(t) && !ie(t) && !
|
|
3903
|
-
throw Fe(
|
|
3904
|
-
const o = ie(t) ? String(t) : (
|
|
3902
|
+
if (!P(t) && !ie(t) && !Se(t) && !ye(t))
|
|
3903
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3904
|
+
const o = ie(t) ? String(t) : (Se(t), t);
|
|
3905
3905
|
return ie(n) ? a.plural = n : P(n) ? a.default = n : G(n) && !en(n) ? a.named = n : ae(n) && (a.list = n), ie(r) ? a.plural = r : P(r) ? a.default = r : G(r) && ce(a, r), [o, a];
|
|
3906
3906
|
}
|
|
3907
3907
|
function tc(e, t, n, r, a, o) {
|
|
@@ -3922,7 +3922,7 @@ function tc(e, t, n, r, a, o) {
|
|
|
3922
3922
|
} else
|
|
3923
3923
|
throw s;
|
|
3924
3924
|
},
|
|
3925
|
-
onCacheKey: (s) =>
|
|
3925
|
+
onCacheKey: (s) => Si(t, n, s)
|
|
3926
3926
|
};
|
|
3927
3927
|
}
|
|
3928
3928
|
function nc(e) {
|
|
@@ -3932,7 +3932,7 @@ function nc(e) {
|
|
|
3932
3932
|
return e.loc.source;
|
|
3933
3933
|
}
|
|
3934
3934
|
function ac(e, t, n, r) {
|
|
3935
|
-
const { modifiers: a, pluralRules: o, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: f } = e,
|
|
3935
|
+
const { modifiers: a, pluralRules: o, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: f } = e, _ = {
|
|
3936
3936
|
locale: t,
|
|
3937
3937
|
modifiers: a,
|
|
3938
3938
|
pluralRules: o,
|
|
@@ -3952,20 +3952,20 @@ function ac(e, t, n, r) {
|
|
|
3952
3952
|
}
|
|
3953
3953
|
if (P(p) || ye(p)) {
|
|
3954
3954
|
let w = !1;
|
|
3955
|
-
const E =
|
|
3955
|
+
const E = So(e, g, t, p, g, () => {
|
|
3956
3956
|
w = !0;
|
|
3957
3957
|
});
|
|
3958
3958
|
return w ? Ja : E;
|
|
3959
|
-
} else return
|
|
3959
|
+
} else return Se(p) ? p : Ja;
|
|
3960
3960
|
}
|
|
3961
3961
|
};
|
|
3962
|
-
return e.processor && (
|
|
3962
|
+
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), ie(r.plural) && (_.pluralIndex = r.plural), _;
|
|
3963
3963
|
}
|
|
3964
3964
|
al();
|
|
3965
3965
|
function rc() {
|
|
3966
|
-
return
|
|
3966
|
+
return bo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function bo() {
|
|
3969
3969
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
3970
3970
|
}
|
|
3971
3971
|
const oc = typeof Proxy == "function", sc = "devtools-plugin:setup", ic = "plugin:settings:set";
|
|
@@ -4040,7 +4040,7 @@ class uc {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
4042
|
function fc(e, t) {
|
|
4043
|
-
const n = e, r =
|
|
4043
|
+
const n = e, r = bo(), a = rc(), o = oc && n.enableEarlyProxy;
|
|
4044
4044
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
|
|
4045
4045
|
a.emit(sc, e, t);
|
|
4046
4046
|
else {
|
|
@@ -4057,13 +4057,13 @@ function fc(e, t) {
|
|
|
4057
4057
|
* (c) 2025 kazuya kawaguchi
|
|
4058
4058
|
* Released under the MIT License.
|
|
4059
4059
|
*/
|
|
4060
|
-
const
|
|
4061
|
-
function
|
|
4060
|
+
const dc = "11.1.12";
|
|
4061
|
+
function _c() {
|
|
4062
4062
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Qe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Qe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Qe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
4063
4063
|
}
|
|
4064
4064
|
const Z = {
|
|
4065
4065
|
// composer module errors
|
|
4066
|
-
UNEXPECTED_RETURN_TYPE:
|
|
4066
|
+
UNEXPECTED_RETURN_TYPE: bl,
|
|
4067
4067
|
// 24
|
|
4068
4068
|
// legacy module errors
|
|
4069
4069
|
INVALID_ARGUMENT: 25,
|
|
@@ -4084,7 +4084,7 @@ const Z = {
|
|
|
4084
4084
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
4085
4085
|
};
|
|
4086
4086
|
function he(e, ...t) {
|
|
4087
|
-
return
|
|
4087
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: mc, args: t } : void 0);
|
|
4088
4088
|
}
|
|
4089
4089
|
const mc = {
|
|
4090
4090
|
[Z.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -4098,7 +4098,7 @@ const mc = {
|
|
|
4098
4098
|
[Z.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
4099
4099
|
[Z.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
4100
4100
|
[Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
4101
|
-
}, qn = /* @__PURE__ */ we("__translateVNode"), Xn = /* @__PURE__ */ we("__datetimeParts"), Qn = /* @__PURE__ */ we("__numberParts"), Ze = /* @__PURE__ */ we("__enableEmitter"), wt = /* @__PURE__ */ we("__disableEmitter"), vo = we("__setPluralRules"), yo = /* @__PURE__ */ we("__injectWithOption"), Jn = /* @__PURE__ */ we("__dispose"),
|
|
4101
|
+
}, qn = /* @__PURE__ */ we("__translateVNode"), Xn = /* @__PURE__ */ we("__datetimeParts"), Qn = /* @__PURE__ */ we("__numberParts"), Ze = /* @__PURE__ */ we("__enableEmitter"), wt = /* @__PURE__ */ we("__disableEmitter"), vo = we("__setPluralRules"), yo = /* @__PURE__ */ we("__injectWithOption"), Jn = /* @__PURE__ */ we("__dispose"), be = {
|
|
4102
4102
|
FALLBACK_TO_ROOT: Rl,
|
|
4103
4103
|
// 8
|
|
4104
4104
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -4114,21 +4114,21 @@ const mc = {
|
|
|
4114
4114
|
// duplicate `useI18n` calling
|
|
4115
4115
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
4116
4116
|
}, hc = {
|
|
4117
|
-
[
|
|
4118
|
-
[
|
|
4119
|
-
[
|
|
4117
|
+
[be.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
4118
|
+
[be.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
4119
|
+
[be.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
4120
4120
|
/**
|
|
4121
4121
|
* @deprecated will be removed at vue-i18n v12
|
|
4122
4122
|
*/
|
|
4123
|
-
[
|
|
4123
|
+
[be.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
4124
4124
|
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
|
|
4125
4125
|
/**
|
|
4126
4126
|
* @deprecated will be removed at vue-i18n v12
|
|
4127
4127
|
*/
|
|
4128
|
-
[
|
|
4129
|
-
[
|
|
4128
|
+
[be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
4129
|
+
[be.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
4130
4130
|
};
|
|
4131
|
-
function
|
|
4131
|
+
function dt(e, ...t) {
|
|
4132
4132
|
return Zt(hc[e], ...t);
|
|
4133
4133
|
}
|
|
4134
4134
|
function Dt(e) {
|
|
@@ -4145,7 +4145,7 @@ function Dt(e) {
|
|
|
4145
4145
|
if (n[s] === "__proto__")
|
|
4146
4146
|
throw new Error(`unsafe key: ${n[s]}`);
|
|
4147
4147
|
if (n[s] in a || (a[n[s]] = X()), !H(a[n[s]])) {
|
|
4148
|
-
process.env.NODE_ENV !== "production" && (
|
|
4148
|
+
process.env.NODE_ENV !== "production" && (dt(be.IGNORE_OBJ_FLATTEN, {
|
|
4149
4149
|
key: n[s]
|
|
4150
4150
|
}), void 0), o = !0;
|
|
4151
4151
|
break;
|
|
@@ -4201,20 +4201,20 @@ function Ao(e, t, n) {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
4203
|
function Za(e) {
|
|
4204
|
-
return
|
|
4204
|
+
return b(Ho, null, e, 0);
|
|
4205
4205
|
}
|
|
4206
4206
|
const er = "__INTLIFY_META__", tr = () => [], gc = () => !1;
|
|
4207
4207
|
let nr = 0;
|
|
4208
4208
|
function ar(e) {
|
|
4209
|
-
return (t, n, r, a) => e(n, r,
|
|
4209
|
+
return (t, n, r, a) => e(n, r, Nt() || void 0, a);
|
|
4210
4210
|
}
|
|
4211
4211
|
const pc = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
4212
|
-
const e =
|
|
4212
|
+
const e = Nt();
|
|
4213
4213
|
let t = null;
|
|
4214
4214
|
return e && (t = To(e)[er]) ? { [er]: t } : null;
|
|
4215
4215
|
};
|
|
4216
|
-
function
|
|
4217
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o =
|
|
4216
|
+
function Sa(e = {}) {
|
|
4217
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = Ce ? Vo : Bo;
|
|
4218
4218
|
let s = K(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4219
4219
|
const l = o(
|
|
4220
4220
|
// prettier-ignore
|
|
@@ -4223,25 +4223,25 @@ function ba(e = {}) {
|
|
|
4223
4223
|
// prettier-ignore
|
|
4224
4224
|
t && s ? t.fallbackLocale.value : P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4225
4225
|
), c = o(Ea(l.value, e)), f = o(G(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), u = o(G(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4226
|
-
let
|
|
4226
|
+
let _ = t ? t.missingWarn : K(e.missingWarn) || ut(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : K(e.fallbackWarn) || ut(e.fallbackWarn) ? e.fallbackWarn : !0, T = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, p = !!e.fallbackFormat, w = J(e.missing) ? e.missing : null, m = J(e.missing) ? ar(e.missing) : null, E = J(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
4227
4227
|
const k = t ? t.modifiers : G(e.modifiers) ? e.modifiers : {};
|
|
4228
4228
|
let R = e.pluralRules || t && t.pluralRules, A;
|
|
4229
4229
|
A = (() => {
|
|
4230
4230
|
r && Wa(null);
|
|
4231
4231
|
const v = {
|
|
4232
|
-
version:
|
|
4232
|
+
version: dc,
|
|
4233
4233
|
locale: l.value,
|
|
4234
4234
|
fallbackLocale: i.value,
|
|
4235
4235
|
messages: c.value,
|
|
4236
4236
|
modifiers: k,
|
|
4237
4237
|
pluralRules: R,
|
|
4238
4238
|
missing: m === null ? void 0 : m,
|
|
4239
|
-
missingWarn:
|
|
4239
|
+
missingWarn: _,
|
|
4240
4240
|
fallbackWarn: g,
|
|
4241
4241
|
fallbackFormat: p,
|
|
4242
4242
|
unresolving: !0,
|
|
4243
4243
|
postTranslation: E === null ? void 0 : E,
|
|
4244
|
-
warnHtmlMessage:
|
|
4244
|
+
warnHtmlMessage: S,
|
|
4245
4245
|
escapeParameter: y,
|
|
4246
4246
|
messageResolver: e.messageResolver,
|
|
4247
4247
|
messageCompiler: e.messageCompiler,
|
|
@@ -4265,7 +4265,7 @@ function ba(e = {}) {
|
|
|
4265
4265
|
set: (v) => {
|
|
4266
4266
|
A.locale = v, l.value = v;
|
|
4267
4267
|
}
|
|
4268
|
-
}),
|
|
4268
|
+
}), _e = Et({
|
|
4269
4269
|
get: () => i.value,
|
|
4270
4270
|
set: (v) => {
|
|
4271
4271
|
A.fallbackLocale = v, i.value = v, vt(A, l.value, v);
|
|
@@ -4283,7 +4283,7 @@ function ba(e = {}) {
|
|
|
4283
4283
|
function fn(v) {
|
|
4284
4284
|
v !== null && (m = ar(v)), w = v, A.missing = m;
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function dn(v, O) {
|
|
4287
4287
|
return v !== "translate" || !O.resolvedMessage;
|
|
4288
4288
|
}
|
|
4289
4289
|
const De = (v, O, q, se, Ke, xt) => {
|
|
@@ -4297,7 +4297,7 @@ function ba(e = {}) {
|
|
|
4297
4297
|
if (q !== "translate exists" && // for not `te` (e.g `t`)
|
|
4298
4298
|
ie(tt) && tt === tn || q === "translate exists" && !tt) {
|
|
4299
4299
|
const [je, Uo] = O();
|
|
4300
|
-
if (process.env.NODE_ENV !== "production" && t && P(je) &&
|
|
4300
|
+
if (process.env.NODE_ENV !== "production" && t && P(je) && dn(q, Uo) && (T && (nn(g, je) || _o(_, je)) && (dt(be.FALLBACK_TO_ROOT, {
|
|
4301
4301
|
key: je,
|
|
4302
4302
|
type: q
|
|
4303
4303
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -4319,7 +4319,7 @@ function ba(e = {}) {
|
|
|
4319
4319
|
function mt(...v) {
|
|
4320
4320
|
return De((O) => Reflect.apply(za, null, [O, ...v]), () => Kn(...v), "translate", (O) => Reflect.apply(O.t, O, [...v]), (O) => O, (O) => P(O));
|
|
4321
4321
|
}
|
|
4322
|
-
function
|
|
4322
|
+
function _n(...v) {
|
|
4323
4323
|
const [O, q, se] = v;
|
|
4324
4324
|
if (se && !H(se))
|
|
4325
4325
|
throw he(Z.INVALID_ARGUMENT);
|
|
@@ -4357,15 +4357,15 @@ function ba(e = {}) {
|
|
|
4357
4357
|
function Ut(...v) {
|
|
4358
4358
|
return De((O) => Reflect.apply(Ka, null, [O, ...v]), () => Yn(...v), "datetime format", (O) => O[Xn](...v), tr, (O) => P(O) || ae(O));
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4360
|
+
function Sn(v) {
|
|
4361
4361
|
R = v, A.pluralRules = R;
|
|
4362
4362
|
}
|
|
4363
|
-
function
|
|
4363
|
+
function bn(v, O) {
|
|
4364
4364
|
return De(() => {
|
|
4365
4365
|
if (!v)
|
|
4366
4366
|
return !1;
|
|
4367
4367
|
const q = P(O) ? O : l.value, se = He(q), Ke = A.messageResolver(se, v);
|
|
4368
|
-
return ye(Ke) ||
|
|
4368
|
+
return ye(Ke) || Se(Ke) || P(Ke);
|
|
4369
4369
|
}, () => [v], "translate exists", (q) => Reflect.apply(q.te, q, [v, O]), gc, (q) => K(q));
|
|
4370
4370
|
}
|
|
4371
4371
|
function ht(v) {
|
|
@@ -4404,13 +4404,13 @@ function ba(e = {}) {
|
|
|
4404
4404
|
Ae(q, se) && Dt(q[se]);
|
|
4405
4405
|
O = q[v], Ht(O, c.value[v]), A.messages = c.value;
|
|
4406
4406
|
}
|
|
4407
|
-
function
|
|
4407
|
+
function d(v) {
|
|
4408
4408
|
return f.value[v] || {};
|
|
4409
4409
|
}
|
|
4410
4410
|
function h(v, O) {
|
|
4411
4411
|
f.value[v] = O, A.datetimeFormats = f.value, ja(A, v, O);
|
|
4412
4412
|
}
|
|
4413
|
-
function
|
|
4413
|
+
function N(v, O) {
|
|
4414
4414
|
f.value[v] = ce(f.value[v] || {}, O), A.datetimeFormats = f.value, ja(A, v, O);
|
|
4415
4415
|
}
|
|
4416
4416
|
function M(v) {
|
|
@@ -4422,7 +4422,7 @@ function ba(e = {}) {
|
|
|
4422
4422
|
function oe(v, O) {
|
|
4423
4423
|
u.value[v] = ce(u.value[v] || {}, O), A.numberFormats = u.value, Xa(A, v, O);
|
|
4424
4424
|
}
|
|
4425
|
-
nr++, t &&
|
|
4425
|
+
nr++, t && Ce && (Pn(t.locale, (v) => {
|
|
4426
4426
|
s && (l.value = v, A.locale = v, vt(A, l.value, i.value));
|
|
4427
4427
|
}), Pn(t.fallbackLocale, (v) => {
|
|
4428
4428
|
s && (i.value = v, A.fallbackLocale = v, vt(A, l.value, i.value));
|
|
@@ -4430,7 +4430,7 @@ function ba(e = {}) {
|
|
|
4430
4430
|
const j = {
|
|
4431
4431
|
id: nr,
|
|
4432
4432
|
locale: re,
|
|
4433
|
-
fallbackLocale:
|
|
4433
|
+
fallbackLocale: _e,
|
|
4434
4434
|
get inheritLocale() {
|
|
4435
4435
|
return s;
|
|
4436
4436
|
},
|
|
@@ -4451,10 +4451,10 @@ function ba(e = {}) {
|
|
|
4451
4451
|
return r;
|
|
4452
4452
|
},
|
|
4453
4453
|
get missingWarn() {
|
|
4454
|
-
return
|
|
4454
|
+
return _;
|
|
4455
4455
|
},
|
|
4456
4456
|
set missingWarn(v) {
|
|
4457
|
-
|
|
4457
|
+
_ = v, A.missingWarn = _;
|
|
4458
4458
|
},
|
|
4459
4459
|
get fallbackWarn() {
|
|
4460
4460
|
return g;
|
|
@@ -4475,10 +4475,10 @@ function ba(e = {}) {
|
|
|
4475
4475
|
p = v, A.fallbackFormat = p;
|
|
4476
4476
|
},
|
|
4477
4477
|
get warnHtmlMessage() {
|
|
4478
|
-
return
|
|
4478
|
+
return S;
|
|
4479
4479
|
},
|
|
4480
4480
|
set warnHtmlMessage(v) {
|
|
4481
|
-
|
|
4481
|
+
S = v, A.warnHtmlMessage = v;
|
|
4482
4482
|
},
|
|
4483
4483
|
get escapeParameter() {
|
|
4484
4484
|
return y;
|
|
@@ -4494,25 +4494,25 @@ function ba(e = {}) {
|
|
|
4494
4494
|
setPostTranslationHandler: cn,
|
|
4495
4495
|
getMissingHandler: un,
|
|
4496
4496
|
setMissingHandler: fn,
|
|
4497
|
-
[vo]:
|
|
4497
|
+
[vo]: Sn
|
|
4498
4498
|
};
|
|
4499
|
-
return j.datetimeFormats = et, j.numberFormats = sn, j.rt =
|
|
4499
|
+
return j.datetimeFormats = et, j.numberFormats = sn, j.rt = _n, j.te = bn, j.tm = gt, j.d = mn, j.n = hn, j.getDateTimeFormat = d, j.setDateTimeFormat = h, j.mergeDateTimeFormat = N, j.getNumberFormat = M, j.setNumberFormat = ne, j.mergeNumberFormat = oe, j[yo] = n, j[qn] = Mt, j[Xn] = Ut, j[Qn] = En, process.env.NODE_ENV !== "production" && (j[Ze] = (v) => {
|
|
4500
4500
|
A.__v_emitter = v;
|
|
4501
4501
|
}, j[wt] = () => {
|
|
4502
4502
|
A.__v_emitter = void 0;
|
|
4503
4503
|
}), j;
|
|
4504
4504
|
}
|
|
4505
|
-
const
|
|
4505
|
+
const No = "vue-i18n: composer properties", On = {
|
|
4506
4506
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
4507
4507
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
4508
4508
|
"vue-i18n-timeline": "Vue I18n"
|
|
4509
4509
|
}, Ec = {
|
|
4510
4510
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
4511
|
-
},
|
|
4511
|
+
}, Sc = {
|
|
4512
4512
|
"vue-i18n-timeline": 16764185
|
|
4513
4513
|
};
|
|
4514
4514
|
let zn;
|
|
4515
|
-
async function
|
|
4515
|
+
async function bc(e, t) {
|
|
4516
4516
|
return new Promise((n, r) => {
|
|
4517
4517
|
try {
|
|
4518
4518
|
fc({
|
|
@@ -4521,7 +4521,7 @@ async function Sc(e, t) {
|
|
|
4521
4521
|
packageName: "vue-i18n",
|
|
4522
4522
|
homepage: "https://vue-i18n.intlify.dev",
|
|
4523
4523
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
4524
|
-
componentStateTypes: [
|
|
4524
|
+
componentStateTypes: [No],
|
|
4525
4525
|
app: e
|
|
4526
4526
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4527
4527
|
}, (a) => {
|
|
@@ -4535,7 +4535,7 @@ async function Sc(e, t) {
|
|
|
4535
4535
|
icon: "language",
|
|
4536
4536
|
treeFilterPlaceholder: Ec["vue-i18n-resource-inspector"]
|
|
4537
4537
|
}), a.on.getInspectorTree((s) => {
|
|
4538
|
-
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" &&
|
|
4538
|
+
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && Cc(s, t);
|
|
4539
4539
|
});
|
|
4540
4540
|
const o = /* @__PURE__ */ new Map();
|
|
4541
4541
|
a.on.getInspectorState(async (s) => {
|
|
@@ -4555,7 +4555,7 @@ async function Sc(e, t) {
|
|
|
4555
4555
|
}), a.addTimelineLayer({
|
|
4556
4556
|
id: "vue-i18n-timeline",
|
|
4557
4557
|
label: On["vue-i18n-timeline"],
|
|
4558
|
-
color:
|
|
4558
|
+
color: Sc["vue-i18n-timeline"]
|
|
4559
4559
|
}), n(!0);
|
|
4560
4560
|
});
|
|
4561
4561
|
} catch {
|
|
@@ -4563,14 +4563,14 @@ async function Sc(e, t) {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
});
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function Co(e) {
|
|
4567
4567
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
4568
4568
|
}
|
|
4569
4569
|
function vc(e, t, n) {
|
|
4570
4570
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
4571
4571
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
4572
4572
|
const a = {
|
|
4573
|
-
label: `i18n (${
|
|
4573
|
+
label: `i18n (${Co(e)} Scope)`,
|
|
4574
4574
|
textColor: 0,
|
|
4575
4575
|
backgroundColor: 16764185
|
|
4576
4576
|
};
|
|
@@ -4578,7 +4578,7 @@ function vc(e, t, n) {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
4580
|
function rr(e, t) {
|
|
4581
|
-
const n =
|
|
4581
|
+
const n = No;
|
|
4582
4582
|
e.state.push({
|
|
4583
4583
|
type: n,
|
|
4584
4584
|
key: "locale",
|
|
@@ -4603,7 +4603,7 @@ function rr(e, t) {
|
|
|
4603
4603
|
type: n,
|
|
4604
4604
|
key: "messages",
|
|
4605
4605
|
editable: !1,
|
|
4606
|
-
value:
|
|
4606
|
+
value: ba(t.messages.value)
|
|
4607
4607
|
}), e.state.push({
|
|
4608
4608
|
type: n,
|
|
4609
4609
|
key: "datetimeFormats",
|
|
@@ -4616,11 +4616,11 @@ function rr(e, t) {
|
|
|
4616
4616
|
value: t.numberFormats.value
|
|
4617
4617
|
});
|
|
4618
4618
|
}
|
|
4619
|
-
function
|
|
4619
|
+
function ba(e) {
|
|
4620
4620
|
const t = {};
|
|
4621
4621
|
return Object.keys(e).forEach((n) => {
|
|
4622
4622
|
const r = e[n];
|
|
4623
|
-
J(r) && "source" in r ? t[n] =
|
|
4623
|
+
J(r) && "source" in r ? t[n] = Nc(r) : ye(r) && r.loc && r.loc.source ? t[n] = r.loc.source : H(r) ? t[n] = ba(r) : t[n] = r;
|
|
4624
4624
|
}), t;
|
|
4625
4625
|
}
|
|
4626
4626
|
const yc = {
|
|
@@ -4635,7 +4635,7 @@ function Tc(e) {
|
|
|
4635
4635
|
function Ac(e) {
|
|
4636
4636
|
return yc[e] || e;
|
|
4637
4637
|
}
|
|
4638
|
-
function
|
|
4638
|
+
function Nc(e) {
|
|
4639
4639
|
return {
|
|
4640
4640
|
_custom: {
|
|
4641
4641
|
type: "function",
|
|
@@ -4643,7 +4643,7 @@ function Cc(e) {
|
|
|
4643
4643
|
}
|
|
4644
4644
|
};
|
|
4645
4645
|
}
|
|
4646
|
-
function
|
|
4646
|
+
function Cc(e, t) {
|
|
4647
4647
|
e.rootNodes.push({
|
|
4648
4648
|
id: "global",
|
|
4649
4649
|
label: "Global Scope"
|
|
@@ -4653,7 +4653,7 @@ function Nc(e, t) {
|
|
|
4653
4653
|
const o = t.mode === "composition" ? a : a.__composer;
|
|
4654
4654
|
n !== o && e.rootNodes.push({
|
|
4655
4655
|
id: o.id.toString(),
|
|
4656
|
-
label: `${
|
|
4656
|
+
label: `${Co(r)} Scope`
|
|
4657
4657
|
});
|
|
4658
4658
|
}
|
|
4659
4659
|
}
|
|
@@ -4713,7 +4713,7 @@ function Lc(e) {
|
|
|
4713
4713
|
type: a,
|
|
4714
4714
|
key: "messages",
|
|
4715
4715
|
editable: !1,
|
|
4716
|
-
value:
|
|
4716
|
+
value: ba(e.messages.value)
|
|
4717
4717
|
}
|
|
4718
4718
|
];
|
|
4719
4719
|
t[a] = o;
|
|
@@ -4763,7 +4763,7 @@ function wc(e, t) {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
4765
|
function Dc(e) {
|
|
4766
|
-
const t = P(e.locale) ? e.locale : Lt, n = P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = J(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || ut(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = K(e.silentFallbackWarn) || ut(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = K(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = G(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = J(e.postTranslation) ? e.postTranslation : void 0, u = P(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0,
|
|
4766
|
+
const t = P(e.locale) ? e.locale : Lt, n = P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = J(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || ut(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = K(e.silentFallbackWarn) || ut(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = K(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = G(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = J(e.postTranslation) ? e.postTranslation : void 0, u = P(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, _ = !!e.escapeParameterHtml, g = K(e.sync) ? e.sync : !0;
|
|
4767
4767
|
let T = e.messages;
|
|
4768
4768
|
if (G(e.sharedMessages)) {
|
|
4769
4769
|
const k = e.sharedMessages;
|
|
@@ -4772,14 +4772,14 @@ function Dc(e) {
|
|
|
4772
4772
|
return ce(Y, k[B]), A;
|
|
4773
4773
|
}, T || {});
|
|
4774
4774
|
}
|
|
4775
|
-
const { __i18n: p, __root: w, __injectWithOption: m } = e, E = e.datetimeFormats,
|
|
4775
|
+
const { __i18n: p, __root: w, __injectWithOption: m } = e, E = e.datetimeFormats, S = e.numberFormats, y = e.flatJson;
|
|
4776
4776
|
return {
|
|
4777
4777
|
locale: t,
|
|
4778
4778
|
fallbackLocale: n,
|
|
4779
4779
|
messages: T,
|
|
4780
4780
|
flatJson: y,
|
|
4781
4781
|
datetimeFormats: E,
|
|
4782
|
-
numberFormats:
|
|
4782
|
+
numberFormats: S,
|
|
4783
4783
|
missing: r,
|
|
4784
4784
|
missingWarn: a,
|
|
4785
4785
|
fallbackWarn: o,
|
|
@@ -4789,7 +4789,7 @@ function Dc(e) {
|
|
|
4789
4789
|
pluralRules: c,
|
|
4790
4790
|
postTranslation: f,
|
|
4791
4791
|
warnHtmlMessage: u,
|
|
4792
|
-
escapeParameter:
|
|
4792
|
+
escapeParameter: _,
|
|
4793
4793
|
messageResolver: e.messageResolver,
|
|
4794
4794
|
inheritLocale: g,
|
|
4795
4795
|
__i18n: p,
|
|
@@ -4798,7 +4798,7 @@ function Dc(e) {
|
|
|
4798
4798
|
};
|
|
4799
4799
|
}
|
|
4800
4800
|
function Zn(e = {}) {
|
|
4801
|
-
const t =
|
|
4801
|
+
const t = Sa(Dc(e)), { __extender: n } = e, r = {
|
|
4802
4802
|
// id
|
|
4803
4803
|
id: t.id,
|
|
4804
4804
|
// locale
|
|
@@ -4969,7 +4969,7 @@ function Zn(e = {}) {
|
|
|
4969
4969
|
function kc(e, t, n) {
|
|
4970
4970
|
return {
|
|
4971
4971
|
beforeCreate() {
|
|
4972
|
-
const r =
|
|
4972
|
+
const r = Nt();
|
|
4973
4973
|
if (!r)
|
|
4974
4974
|
throw he(Z.UNEXPECTED_ERROR);
|
|
4975
4975
|
const a = this.$options;
|
|
@@ -5003,12 +5003,12 @@ function kc(e, t, n) {
|
|
|
5003
5003
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
5004
5004
|
const r = this.$i18n;
|
|
5005
5005
|
this.$el.__VUE_I18N__ = r.__composer;
|
|
5006
|
-
const a = this.__v_emitter =
|
|
5006
|
+
const a = this.__v_emitter = _a();
|
|
5007
5007
|
r.__enableEmitter && r.__enableEmitter(a), a.on("*", kt);
|
|
5008
5008
|
}
|
|
5009
5009
|
},
|
|
5010
5010
|
unmounted() {
|
|
5011
|
-
const r =
|
|
5011
|
+
const r = Nt();
|
|
5012
5012
|
if (!r)
|
|
5013
5013
|
throw he(Z.UNEXPECTED_ERROR);
|
|
5014
5014
|
const a = this.$i18n;
|
|
@@ -5091,12 +5091,12 @@ function Lo(e, t, n, r) {
|
|
|
5091
5091
|
return () => {
|
|
5092
5092
|
const s = { part: !0 };
|
|
5093
5093
|
let l = X();
|
|
5094
|
-
e.locale && (s.locale = e.locale), P(e.format) ? s.key = e.format : H(e.format) && (P(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((
|
|
5094
|
+
e.locale && (s.locale = e.locale), P(e.format) ? s.key = e.format : H(e.format) && (P(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? ce(X(), _, { [g]: e.format[g] }) : _, X()));
|
|
5095
5095
|
const i = r(e.value, s, l);
|
|
5096
5096
|
let c = [s.key];
|
|
5097
|
-
ae(i) ? c = i.map((
|
|
5098
|
-
const T = a[
|
|
5099
|
-
return Fc(p) && (p[0].key = `${
|
|
5097
|
+
ae(i) ? c = i.map((_, g) => {
|
|
5098
|
+
const T = a[_.type], p = T ? T({ [_.type]: _.value, index: g, parts: i }) : [_.value];
|
|
5099
|
+
return Fc(p) && (p[0].key = `${_.type}-${g}`), p;
|
|
5100
5100
|
}) : P(i) && (c = [i]);
|
|
5101
5101
|
const f = ce(X(), o), u = P(e.tag) || H(e.tag) ? e.tag : Io();
|
|
5102
5102
|
return Ir(u, f, c);
|
|
@@ -5138,7 +5138,7 @@ function Uc(e, t) {
|
|
|
5138
5138
|
}
|
|
5139
5139
|
function xc(e) {
|
|
5140
5140
|
const t = (s) => {
|
|
5141
|
-
process.env.NODE_ENV !== "production" && ua(
|
|
5141
|
+
process.env.NODE_ENV !== "production" && ua(dt(be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
5142
5142
|
const { instance: l, value: i } = s;
|
|
5143
5143
|
if (!l || !l.$)
|
|
5144
5144
|
throw he(Z.UNEXPECTED_ERROR);
|
|
@@ -5151,12 +5151,12 @@ function xc(e) {
|
|
|
5151
5151
|
return {
|
|
5152
5152
|
created: (s, l) => {
|
|
5153
5153
|
const [i, c] = t(l);
|
|
5154
|
-
|
|
5154
|
+
Ce && e.global === c && (s.__i18nWatcher = Pn(c.locale, () => {
|
|
5155
5155
|
l.instance && l.instance.$forceUpdate();
|
|
5156
5156
|
})), s.__composer = c, s.textContent = i;
|
|
5157
5157
|
},
|
|
5158
5158
|
unmounted: (s) => {
|
|
5159
|
-
|
|
5159
|
+
Ce && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
|
|
5160
5160
|
},
|
|
5161
5161
|
beforeUpdate: (s, { value: l }) => {
|
|
5162
5162
|
if (s.__composer) {
|
|
@@ -5193,13 +5193,13 @@ function Vc(e, t, ...n) {
|
|
|
5193
5193
|
const Bc = /* @__PURE__ */ we("global-vue-i18n");
|
|
5194
5194
|
function Gc(e = {}) {
|
|
5195
5195
|
const t = __VUE_I18N_LEGACY_API__ && K(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
5196
|
-
process.env.NODE_ENV !== "production" && t && ua(
|
|
5196
|
+
process.env.NODE_ENV !== "production" && t && ua(dt(be.DEPRECATE_LEGACY_MODE));
|
|
5197
5197
|
const n = K(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, o] = $c(e, t), s = /* @__PURE__ */ we(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
5198
5198
|
function l(u) {
|
|
5199
5199
|
return r.get(u) || null;
|
|
5200
5200
|
}
|
|
5201
|
-
function i(u,
|
|
5202
|
-
r.set(u,
|
|
5201
|
+
function i(u, _) {
|
|
5202
|
+
r.set(u, _);
|
|
5203
5203
|
}
|
|
5204
5204
|
function c(u) {
|
|
5205
5205
|
r.delete(u);
|
|
@@ -5210,20 +5210,20 @@ function Gc(e = {}) {
|
|
|
5210
5210
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
5211
5211
|
},
|
|
5212
5212
|
// install plugin
|
|
5213
|
-
async install(u, ...
|
|
5214
|
-
if (process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = s, u.provide(u.__VUE_I18N_SYMBOL__, f), G(
|
|
5215
|
-
const p =
|
|
5213
|
+
async install(u, ..._) {
|
|
5214
|
+
if (process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = s, u.provide(u.__VUE_I18N_SYMBOL__, f), G(_[0])) {
|
|
5215
|
+
const p = _[0];
|
|
5216
5216
|
f.__composerExtend = p.__composerExtend, f.__vueI18nExtend = p.__vueI18nExtend;
|
|
5217
5217
|
}
|
|
5218
5218
|
let g = null;
|
|
5219
|
-
!t && n && (g = Qc(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Vc(u, f, ...
|
|
5219
|
+
!t && n && (g = Qc(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Vc(u, f, ..._), __VUE_I18N_LEGACY_API__ && t && u.mixin(kc(o, o.__composer, f));
|
|
5220
5220
|
const T = u.unmount;
|
|
5221
5221
|
if (u.unmount = () => {
|
|
5222
5222
|
g && g(), f.dispose(), T();
|
|
5223
5223
|
}, process.env.NODE_ENV !== "production") {
|
|
5224
|
-
if (!await
|
|
5224
|
+
if (!await bc(u, f))
|
|
5225
5225
|
throw he(Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
5226
|
-
const w =
|
|
5226
|
+
const w = _a();
|
|
5227
5227
|
if (t) {
|
|
5228
5228
|
const m = o;
|
|
5229
5229
|
m.__enableEmitter && m.__enableEmitter(w);
|
|
@@ -5253,7 +5253,7 @@ function Gc(e = {}) {
|
|
|
5253
5253
|
return f;
|
|
5254
5254
|
}
|
|
5255
5255
|
function ya(e = {}) {
|
|
5256
|
-
const t =
|
|
5256
|
+
const t = Nt();
|
|
5257
5257
|
if (t == null)
|
|
5258
5258
|
throw he(Z.MUST_BE_CALL_SETUP_TOP);
|
|
5259
5259
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -5263,19 +5263,19 @@ function ya(e = {}) {
|
|
|
5263
5263
|
return Ao(r, e, a), r;
|
|
5264
5264
|
if (o === "parent") {
|
|
5265
5265
|
let i = Kc(n, t, e.__useComponent);
|
|
5266
|
-
return i == null && (process.env.NODE_ENV !== "production" && (
|
|
5266
|
+
return i == null && (process.env.NODE_ENV !== "production" && (dt(be.NOT_FOUND_PARENT_SCOPE), void 0), i = r), i;
|
|
5267
5267
|
}
|
|
5268
5268
|
const s = n;
|
|
5269
5269
|
let l = s.__getInstance(t);
|
|
5270
5270
|
if (l == null) {
|
|
5271
5271
|
const i = ce({}, e);
|
|
5272
|
-
"__i18n" in a && (i.__i18n = a.__i18n), r && (i.__root = r), l =
|
|
5272
|
+
"__i18n" in a && (i.__i18n = a.__i18n), r && (i.__root = r), l = Sa(i), s.__composerExtend && (l[Jn] = s.__composerExtend(l)), qc(s, t, l), s.__setInstance(t, l);
|
|
5273
5273
|
} else
|
|
5274
|
-
process.env.NODE_ENV !== "production" && o === "local" && (
|
|
5274
|
+
process.env.NODE_ENV !== "production" && o === "local" && (dt(be.DUPLICATE_USE_I18N_CALLING), void 0);
|
|
5275
5275
|
return l;
|
|
5276
5276
|
}
|
|
5277
5277
|
function $c(e, t) {
|
|
5278
|
-
const n = xo(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Zn(e)) : n.run(() =>
|
|
5278
|
+
const n = xo(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Zn(e)) : n.run(() => Sa(e));
|
|
5279
5279
|
if (r == null)
|
|
5280
5280
|
throw he(Z.UNEXPECTED_ERROR);
|
|
5281
5281
|
return [n, r];
|
|
@@ -5317,7 +5317,7 @@ function qc(e, t, n) {
|
|
|
5317
5317
|
let r = null;
|
|
5318
5318
|
Wo(() => {
|
|
5319
5319
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
5320
|
-
t.vnode.el.__VUE_I18N__ = n, r =
|
|
5320
|
+
t.vnode.el.__VUE_I18N__ = n, r = _a();
|
|
5321
5321
|
const a = n;
|
|
5322
5322
|
a[Ze] && a[Ze](r), r.on("*", kt);
|
|
5323
5323
|
}
|
|
@@ -5389,7 +5389,7 @@ const Jc = /* @__PURE__ */ ta({
|
|
|
5389
5389
|
));
|
|
5390
5390
|
}
|
|
5391
5391
|
}), fr = Jc;
|
|
5392
|
-
|
|
5392
|
+
_c();
|
|
5393
5393
|
Ul(hl);
|
|
5394
5394
|
xl(kl);
|
|
5395
5395
|
Vl(so);
|
|
@@ -5496,7 +5496,7 @@ const Ft = Le("cloudSdkLanguageStore", {
|
|
|
5496
5496
|
this.languageName = e, I.localSet(at, e), Xe.locale.value = e;
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
|
-
}),
|
|
5499
|
+
}), dr = "__system:themes__", tu = "light", In = "__system:layoutSidebarState__", nu = "on", _r = "__system:layoutNavTabs__", au = "on", ru = "__system:layoutWatermark__", ou = "on";
|
|
5500
5500
|
function mr() {
|
|
5501
5501
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
5502
5502
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
@@ -5507,7 +5507,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5507
5507
|
/**
|
|
5508
5508
|
* 上边切换卡
|
|
5509
5509
|
*/
|
|
5510
|
-
layoutNavTabs: I.localGet(
|
|
5510
|
+
layoutNavTabs: I.localGet(_r) || au,
|
|
5511
5511
|
/**
|
|
5512
5512
|
* 左边侧栏
|
|
5513
5513
|
*/
|
|
@@ -5517,7 +5517,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5517
5517
|
* auto|light|dark
|
|
5518
5518
|
* 自动生成
|
|
5519
5519
|
*/
|
|
5520
|
-
themesName: I.localGet(
|
|
5520
|
+
themesName: I.localGet(dr) || tu,
|
|
5521
5521
|
themesList: [
|
|
5522
5522
|
{ name: "跟随系统", value: "auto" },
|
|
5523
5523
|
{ name: "明亮", value: "light" },
|
|
@@ -5554,7 +5554,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5554
5554
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
5555
5555
|
pe.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
5556
5556
|
const t = document.querySelector("html");
|
|
5557
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), pe.__POWERED_BY_QIANKUN__ || I.localSet(
|
|
5557
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), pe.__POWERED_BY_QIANKUN__ || I.localSet(_r, e);
|
|
5558
5558
|
},
|
|
5559
5559
|
/**
|
|
5560
5560
|
* 设置主题
|
|
@@ -5563,7 +5563,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5563
5563
|
*/
|
|
5564
5564
|
SA_THEMES_SET(e) {
|
|
5565
5565
|
if (this.themesName = e || "light", !mr()) {
|
|
5566
|
-
__cc_isEEUiApp ?
|
|
5566
|
+
__cc_isEEUiApp ? Na.warning("仅Android设置支持主题功能") : Na.warning("仅客户端或Chrome浏览器支持主题功能");
|
|
5567
5567
|
return;
|
|
5568
5568
|
}
|
|
5569
5569
|
this.synchTheme(e);
|
|
@@ -5590,7 +5590,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5590
5590
|
break;
|
|
5591
5591
|
}
|
|
5592
5592
|
const n = document.querySelector("html");
|
|
5593
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), I.localSet(
|
|
5593
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), I.localSet(dr, this.themesName);
|
|
5594
5594
|
}
|
|
5595
5595
|
}
|
|
5596
5596
|
});
|
|
@@ -5733,7 +5733,7 @@ function fu(e, t) {
|
|
|
5733
5733
|
message: r
|
|
5734
5734
|
};
|
|
5735
5735
|
}
|
|
5736
|
-
class
|
|
5736
|
+
class du {
|
|
5737
5737
|
constructor(t = {}) {
|
|
5738
5738
|
this.flagMap = t.flagMap || {}, this.flagAuth = t.flagAuth || {}, this.flagCurr = "", this.baseURL = t.baseURL || "", this.baseMock = t.baseMock || "", this.requests = Object.assign({}, t.requests || {}), this.requestTemp = {}, this.headers = Object.assign({}, t.headers || {}), this.headerTemp = {}, this.configs = Object.assign({}, t.configs || {}), this.configTemp = {}, this.customs = Object.assign({}, t.customs || {}), this.customTemp = {}, this.encryptURL = t.encryptURL || [], this.encryptFlag = !1, this.retries = 3, this.debugState = t.debug || !1, this.requestHandle = null, this._initReqHandle(t);
|
|
5739
5739
|
}
|
|
@@ -5896,9 +5896,9 @@ class _u {
|
|
|
5896
5896
|
let a = hr(n, this.baseURL);
|
|
5897
5897
|
this.__encryp_parse(n);
|
|
5898
5898
|
let o = this.__parse_method_type(t), s = this.flagAuth[this.flagCurr] || null, l = {};
|
|
5899
|
-
s && (l = s.split(",").reduce((
|
|
5899
|
+
s && (l = s.split(",").reduce((_, g) => {
|
|
5900
5900
|
const [T, p] = g.split("=");
|
|
5901
|
-
return
|
|
5901
|
+
return _[T] = p, _;
|
|
5902
5902
|
}, {}));
|
|
5903
5903
|
let i = Object.assign({}, this.headers, this.headerTemp, {}), c = Object.assign({}, this.requests, this.requestTemp, r || {}), f = Object.assign({}, this.configs, this.configTemp, {}), u = Object.assign({}, this.customs, this.customTemp, {
|
|
5904
5904
|
flag: this.flagCurr,
|
|
@@ -5920,13 +5920,13 @@ class _u {
|
|
|
5920
5920
|
});
|
|
5921
5921
|
if (o != "DOWNLOAD") if (o == "MOCK")
|
|
5922
5922
|
try {
|
|
5923
|
-
let
|
|
5923
|
+
let _ = n.includes(".json") ? `${n}` : `${n}.json`, g = hr(_, this.baseMock + "/");
|
|
5924
5924
|
const T = await fetch(g);
|
|
5925
5925
|
responseInfo.statusCode = T.status, responseInfo.errMsg = "request:ok";
|
|
5926
5926
|
const p = await T.json();
|
|
5927
5927
|
responseInfo.data = p;
|
|
5928
|
-
} catch (
|
|
5929
|
-
let g =
|
|
5928
|
+
} catch (_) {
|
|
5929
|
+
let g = _.message;
|
|
5930
5930
|
g.includes("Unexpected token") && g.includes("is not valid JSON") && (responseInfo.data = {
|
|
5931
5931
|
code: 200,
|
|
5932
5932
|
data: {}
|
|
@@ -6063,8 +6063,8 @@ class _u {
|
|
|
6063
6063
|
if (f === "[object String]" || f === "[object Number]") {
|
|
6064
6064
|
let u = String(c).trim();
|
|
6065
6065
|
if (/^\d+$/.test(u) && (s.endsWith("/") || (s += "/"), s += u), o == 3) {
|
|
6066
|
-
let
|
|
6067
|
-
Object.prototype.toString.call(
|
|
6066
|
+
let _ = r[2];
|
|
6067
|
+
Object.prototype.toString.call(_) === "[object Object]" && (i = _ || {});
|
|
6068
6068
|
}
|
|
6069
6069
|
} else f === "[object Object]" ? i = c || {} : f === "[object FormData]" && (i = c || new FormData());
|
|
6070
6070
|
return a.apiAll(n, s, i);
|
|
@@ -6072,7 +6072,7 @@ class _u {
|
|
|
6072
6072
|
return new Promise((i, c) => c({ message: " 请求错误 " }));
|
|
6073
6073
|
}
|
|
6074
6074
|
}
|
|
6075
|
-
const
|
|
6075
|
+
const _u = Le("cloudSdkCommonStore", {
|
|
6076
6076
|
state: () => ({
|
|
6077
6077
|
loginBaseShow: !1,
|
|
6078
6078
|
// 控制是否打开登录弹窗
|
|
@@ -6137,7 +6137,7 @@ function pu(e) {
|
|
|
6137
6137
|
let Pe = null;
|
|
6138
6138
|
function Po(e = {}) {
|
|
6139
6139
|
const t = Jt();
|
|
6140
|
-
Pe = new
|
|
6140
|
+
Pe = new du({
|
|
6141
6141
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
6142
6142
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
6143
6143
|
baseURL: t.syApiBaseUrl || "",
|
|
@@ -6174,7 +6174,7 @@ function Po(e = {}) {
|
|
|
6174
6174
|
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
6175
6175
|
let a = Object.assign({}, mu, n, t.syOpenApiFlag), o = Object.assign({}, hu, r, t.syOpenApiAuth);
|
|
6176
6176
|
Pe.setApiFlag(a), Pe.setApiAuth(o);
|
|
6177
|
-
const s =
|
|
6177
|
+
const s = _u(), l = Te();
|
|
6178
6178
|
return Pe.interceptors.request.use(
|
|
6179
6179
|
(i) => {
|
|
6180
6180
|
const c = i.customs || {};
|
|
@@ -6188,8 +6188,8 @@ function Po(e = {}) {
|
|
|
6188
6188
|
(i) => Promise.reject(i)
|
|
6189
6189
|
), Pe.interceptors.response.use(
|
|
6190
6190
|
(i) => {
|
|
6191
|
-
var
|
|
6192
|
-
s.SA_LOADING_SHOW(!1), (
|
|
6191
|
+
var _;
|
|
6192
|
+
s.SA_LOADING_SHOW(!1), (_ = i.config) != null && _.customs;
|
|
6193
6193
|
let c = i.status || -1, f = i.data || {}, u = f.status || f.code || -1;
|
|
6194
6194
|
if (u = parseInt(u), f.msg || f.message, c != 200)
|
|
6195
6195
|
return Promise.reject(i);
|
|
@@ -6198,19 +6198,19 @@ function Po(e = {}) {
|
|
|
6198
6198
|
throw { message: "请求出错,稍后重试" };
|
|
6199
6199
|
},
|
|
6200
6200
|
(i) => {
|
|
6201
|
-
var m, E,
|
|
6202
|
-
let c = ((m = i == null ? void 0 : i.response) == null ? void 0 : m.status) || i.status || -1, f = (i == null ? void 0 : i.code) || "", u = i.message || ((
|
|
6201
|
+
var m, E, S, y, k, R, A, B, Y, re, _e, ee;
|
|
6202
|
+
let c = ((m = i == null ? void 0 : i.response) == null ? void 0 : m.status) || i.status || -1, f = (i == null ? void 0 : i.code) || "", u = i.message || ((S = (E = i == null ? void 0 : i.response) == null ? void 0 : E.data) == null ? void 0 : S.message) || ((y = i == null ? void 0 : i.response) == null ? void 0 : y.statusText) || "";
|
|
6203
6203
|
c == -1 && (u.includes("timeout") || f.includes("ECONNABORTED") ? c = 504 : u.includes("Network Error") ? c = 408 : u.includes("Not Found") && (c = 404));
|
|
6204
|
-
let
|
|
6204
|
+
let _ = ((R = (k = i == null ? void 0 : i.response) == null ? void 0 : k.data) == null ? void 0 : R.errorCode) || -1, g = ((B = (A = i == null ? void 0 : i.response) == null ? void 0 : A.data) == null ? void 0 : B.errorMessage) || ((re = (Y = i == null ? void 0 : i.response) == null ? void 0 : Y.data) == null ? void 0 : re.message), T = ((ee = (_e = i == null ? void 0 : i.config) == null ? void 0 : _e.customs) == null ? void 0 : ee.flag) || "", p = fu(c), w = {
|
|
6205
6205
|
type: "error",
|
|
6206
6206
|
title: p.title,
|
|
6207
6207
|
message: p.message,
|
|
6208
6208
|
status: c,
|
|
6209
|
-
code:
|
|
6209
|
+
code: _,
|
|
6210
6210
|
error: g || u,
|
|
6211
6211
|
flag: T
|
|
6212
6212
|
};
|
|
6213
|
-
return (c == 400 || c == 422) && (
|
|
6213
|
+
return (c == 400 || c == 422) && (_ == 400 || _ == 422 || _.toString().startsWith("400")) && (w.message = g || p.message), pu(w), Promise.reject(w);
|
|
6214
6214
|
}
|
|
6215
6215
|
), Pe;
|
|
6216
6216
|
}
|
|
@@ -6250,7 +6250,7 @@ const xe = "syCacheAppInfo", Ve = "syCacheAppToken", yt = "syCacheAppJwt", ot =
|
|
|
6250
6250
|
account_avatar_cdn: "https://10ui.cn/default/avatar/avatar4.jpg",
|
|
6251
6251
|
business_name: ""
|
|
6252
6252
|
};
|
|
6253
|
-
function
|
|
6253
|
+
function Su(e) {
|
|
6254
6254
|
return Math.floor(Date.now() / 1e3) >= e;
|
|
6255
6255
|
}
|
|
6256
6256
|
const Te = Le("cloudSdkAccountStore", {
|
|
@@ -6280,7 +6280,7 @@ const Te = Le("cloudSdkAccountStore", {
|
|
|
6280
6280
|
accountIsLogin: (e) => {
|
|
6281
6281
|
var n;
|
|
6282
6282
|
const t = ((n = e == null ? void 0 : e.accountInfo) == null ? void 0 : n.token_time) || 0;
|
|
6283
|
-
return !!(ea(e.accountToken) && !
|
|
6283
|
+
return !!(ea(e.accountToken) && !Su(t));
|
|
6284
6284
|
},
|
|
6285
6285
|
// identity 身份
|
|
6286
6286
|
accountRole: (e) => {
|
|
@@ -6360,14 +6360,14 @@ const Te = Le("cloudSdkAccountStore", {
|
|
|
6360
6360
|
},
|
|
6361
6361
|
// 登录
|
|
6362
6362
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
6363
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(yt, e.token_jwt || ""), I.localSet(ot, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0),
|
|
6363
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(yt, e.token_jwt || ""), I.localSet(ot, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), Ct().QK_SEND_LOGIN_MSG();
|
|
6364
6364
|
},
|
|
6365
6365
|
/**
|
|
6366
6366
|
* 退出登录(打开登录页面)
|
|
6367
6367
|
* @param appendFrom
|
|
6368
6368
|
*/
|
|
6369
6369
|
async SA_ACCOUNT_LOGOUT(e) {
|
|
6370
|
-
this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(yt, ""), I.localSet(ot, ""), I.localDel(xe), I.localDel(Ve), I.localDel(yt), I.localDel(ot), this.SA_ACCOUNT_REFRESH(),
|
|
6370
|
+
this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(yt, ""), I.localSet(ot, ""), I.localDel(xe), I.localDel(Ve), I.localDel(yt), I.localDel(ot), this.SA_ACCOUNT_REFRESH(), Ct().QK_SEND_LOGOUT_MSG();
|
|
6371
6371
|
},
|
|
6372
6372
|
/**
|
|
6373
6373
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -6383,7 +6383,7 @@ const Te = Le("cloudSdkAccountStore", {
|
|
|
6383
6383
|
ACCOUNT_SET_PREV() {
|
|
6384
6384
|
}
|
|
6385
6385
|
}
|
|
6386
|
-
}), Tt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__",
|
|
6386
|
+
}), Tt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__", Sr = "__syCacheApiCode__", br = "__syCacheApiKey__", kn = "__syCacheSdkConfig__", Rn = "__syCacheSystemConfig__", vr = "cacheClientId", yr = "cacheClientVersion", an = Le("cloudSdkSystemStore", {
|
|
6387
6387
|
state: () => ({
|
|
6388
6388
|
// ServerUrl
|
|
6389
6389
|
cacheServerUrl: "",
|
|
@@ -6458,17 +6458,17 @@ const Te = Le("cloudSdkAccountStore", {
|
|
|
6458
6458
|
}), await ue.appendApiAuth(e);
|
|
6459
6459
|
},
|
|
6460
6460
|
async __load_api_code() {
|
|
6461
|
-
let e = await I.idbGetItem(
|
|
6461
|
+
let e = await I.idbGetItem(Sr);
|
|
6462
6462
|
e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
|
|
6463
|
-
e = t.data || {}, I.idbSetItem(
|
|
6463
|
+
e = t.data || {}, I.idbSetItem(Sr, e);
|
|
6464
6464
|
});
|
|
6465
6465
|
},
|
|
6466
6466
|
async __load_api_key() {
|
|
6467
6467
|
let e = await I.idbGetString(vr);
|
|
6468
|
-
e || (e = cvUtils.randomString(6), await I.idbSetItem(vr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(
|
|
6468
|
+
e || (e = cvUtils.randomString(6), await I.idbSetItem(vr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(br), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
|
|
6469
6469
|
client_id: e
|
|
6470
6470
|
}).then(({ data: t }) => {
|
|
6471
|
-
this.apiKeyData = t, I.idbSetItem(
|
|
6471
|
+
this.apiKeyData = t, I.idbSetItem(br, this.apiKeyData);
|
|
6472
6472
|
});
|
|
6473
6473
|
},
|
|
6474
6474
|
/**
|
|
@@ -6544,7 +6544,7 @@ function Fo(e, t) {
|
|
|
6544
6544
|
name: r
|
|
6545
6545
|
};
|
|
6546
6546
|
}
|
|
6547
|
-
const
|
|
6547
|
+
const bu = {}, vu = bu, yu = vu.VITE_SY_PRODUCT_SIGN;
|
|
6548
6548
|
function Mo(e) {
|
|
6549
6549
|
let t = Object.prototype.toString.call(e);
|
|
6550
6550
|
if (t != "[object String]" && t != "[object Array]")
|
|
@@ -6625,7 +6625,7 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6625
6625
|
isAlone: !0,
|
|
6626
6626
|
name: "login",
|
|
6627
6627
|
path: "/login",
|
|
6628
|
-
component: () => import("./login-
|
|
6628
|
+
component: () => import("./login-1tlYEiXY.js")
|
|
6629
6629
|
}
|
|
6630
6630
|
], Au = [
|
|
6631
6631
|
{
|
|
@@ -6633,22 +6633,22 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6633
6633
|
isAlone: !0,
|
|
6634
6634
|
name: "alone_run",
|
|
6635
6635
|
path: "/alone_run",
|
|
6636
|
-
component: () => import("./alone_run-
|
|
6636
|
+
component: () => import("./alone_run-D6iWzaJ1.js")
|
|
6637
6637
|
},
|
|
6638
6638
|
{
|
|
6639
6639
|
meta: { title: "错误", isAlone: !0 },
|
|
6640
6640
|
isAlone: !0,
|
|
6641
6641
|
name: "404",
|
|
6642
6642
|
path: "/:catchAll(.*)",
|
|
6643
|
-
component: () => import("./404-
|
|
6643
|
+
component: () => import("./404-BzS1uV1B.js")
|
|
6644
6644
|
}
|
|
6645
|
-
],
|
|
6645
|
+
], Nu = [
|
|
6646
6646
|
{
|
|
6647
6647
|
meta: { title: "空页面", isAlone: !1 },
|
|
6648
6648
|
isAlone: !1,
|
|
6649
6649
|
name: "none",
|
|
6650
6650
|
path: "/none",
|
|
6651
|
-
component: () => import("./none-
|
|
6651
|
+
component: () => import("./none-CX-nyJTn.js")
|
|
6652
6652
|
}
|
|
6653
6653
|
], on = Le("cloudSdkPermissionStore", {
|
|
6654
6654
|
state: () => ({
|
|
@@ -6679,7 +6679,7 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6679
6679
|
* @param {*} router
|
|
6680
6680
|
*/
|
|
6681
6681
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
6682
|
-
t = t || "", t != "console_passport" && e.addRoute(...Tu), e.addRoute(...Au), e.addRoute(...
|
|
6682
|
+
t = t || "", t != "console_passport" && e.addRoute(...Tu), e.addRoute(...Au), e.addRoute(...Nu);
|
|
6683
6683
|
},
|
|
6684
6684
|
/**
|
|
6685
6685
|
* 验证路由
|
|
@@ -6699,7 +6699,7 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6699
6699
|
"org-agent": "代理商平台",
|
|
6700
6700
|
"org-super": "超管平台"
|
|
6701
6701
|
};
|
|
6702
|
-
async function
|
|
6702
|
+
async function Cu(e) {
|
|
6703
6703
|
try {
|
|
6704
6704
|
let t = document.querySelector("link[rel*='icon']");
|
|
6705
6705
|
t || (t = document.createElement("link"), t.rel = "shortcut icon", document.head.appendChild(t)), t.href = e, t.type = "image/x-icon";
|
|
@@ -6732,15 +6732,15 @@ const Ou = Le("cloudSdkApplicationStore", {
|
|
|
6732
6732
|
openCaseInfo: (e) => {
|
|
6733
6733
|
let t = window.shiyunProductInfo || {}, n = Jt(), r = an().systemConfig || {}, a = n.syAppConnectRole, o = Object.assign({}, e.defaultCaseInfo, t), s = n.syProductTitle || "ShiyunProduct", l = Ar[a] ? Ar[a] : "管理系统", i = s;
|
|
6734
6734
|
const c = r.PLAT_BRAND || (o == null ? void 0 : o.PLAT_BRAND), f = r.PLAT_LOGO_CDN || o.PLAT_LOGO_CDN;
|
|
6735
|
-
f &&
|
|
6735
|
+
f && Cu(f);
|
|
6736
6736
|
const u = l || "十云";
|
|
6737
|
-
let
|
|
6738
|
-
return a == "org-business" && (
|
|
6737
|
+
let _ = "";
|
|
6738
|
+
return a == "org-business" && (_ = r.BIZS_LOGIN_BG || o.platinfo_login_bg), {
|
|
6739
6739
|
LAST_IP_LOGO: f,
|
|
6740
6740
|
LAST_IP_TITLE: i,
|
|
6741
6741
|
LAST_IP_TYPE: u,
|
|
6742
6742
|
LAST_IP_BRAND: c || i,
|
|
6743
|
-
LAST_IP_LOGIN_BG:
|
|
6743
|
+
LAST_IP_LOGIN_BG: _
|
|
6744
6744
|
};
|
|
6745
6745
|
}
|
|
6746
6746
|
},
|
|
@@ -6761,7 +6761,7 @@ function Iu() {
|
|
|
6761
6761
|
function Lu() {
|
|
6762
6762
|
return {
|
|
6763
6763
|
computed: {
|
|
6764
|
-
...Re(
|
|
6764
|
+
...Re(Ct, ["qiankunExistState"]),
|
|
6765
6765
|
...Re(Ft, ["languageName", "languageList", "languageSelect"]),
|
|
6766
6766
|
...Re(Ge, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
6767
6767
|
...Re(Ro, [
|
|
@@ -6854,7 +6854,7 @@ const ge = (e, t) => {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
}, Du = { class: "cloud-sett-drawer-body" }, ku = { class: "cloud-sett-drawer-skin" };
|
|
6856
6856
|
function Ru(e, t, n, r, a, o) {
|
|
6857
|
-
const s = L("el-card"), l = L("el-form-item"), i = L("el-option"), c = L("el-select"), f = L("cv-icons"), u = L("el-button"),
|
|
6857
|
+
const s = L("el-card"), l = L("el-form-item"), i = L("el-option"), c = L("el-select"), f = L("cv-icons"), u = L("el-button"), _ = L("el-switch"), g = L("el-form"), T = L("el-drawer");
|
|
6858
6858
|
return F(), $(T, {
|
|
6859
6859
|
title: "系统设置",
|
|
6860
6860
|
modelValue: a.localVal,
|
|
@@ -6863,41 +6863,41 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6863
6863
|
size: "450px",
|
|
6864
6864
|
"before-close": o.frameTopSysSettClose
|
|
6865
6865
|
}, {
|
|
6866
|
-
default:
|
|
6866
|
+
default: C(() => [
|
|
6867
6867
|
D("div", Du, [
|
|
6868
|
-
|
|
6868
|
+
b(g, {
|
|
6869
6869
|
labelWidth: "auto",
|
|
6870
6870
|
"label-position": "left"
|
|
6871
6871
|
}, {
|
|
6872
|
-
default:
|
|
6873
|
-
|
|
6872
|
+
default: C(() => [
|
|
6873
|
+
b(l, {
|
|
6874
6874
|
label: "风格",
|
|
6875
6875
|
"label-position": "top"
|
|
6876
6876
|
}, {
|
|
6877
|
-
default:
|
|
6877
|
+
default: C(() => [
|
|
6878
6878
|
D("div", ku, [
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6879
|
+
b(s),
|
|
6880
|
+
b(s),
|
|
6881
|
+
b(s)
|
|
6882
6882
|
])
|
|
6883
6883
|
]),
|
|
6884
6884
|
_: 1
|
|
6885
6885
|
}),
|
|
6886
|
-
|
|
6887
|
-
default:
|
|
6888
|
-
|
|
6886
|
+
b(l, { label: "主题" }, {
|
|
6887
|
+
default: C(() => [
|
|
6888
|
+
b(c, {
|
|
6889
6889
|
modelValue: a.frameSysTheme,
|
|
6890
6890
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => a.frameSysTheme = p),
|
|
6891
6891
|
placeholder: e.$t("选项主题"),
|
|
6892
6892
|
style: { width: "150px" }
|
|
6893
6893
|
}, {
|
|
6894
|
-
default:
|
|
6895
|
-
(F(!0), W(le, null,
|
|
6894
|
+
default: C(() => [
|
|
6895
|
+
(F(!0), W(le, null, Ne(e.themesList, (p, w) => (F(), $(i, {
|
|
6896
6896
|
label: e.$t(p.name),
|
|
6897
6897
|
value: p.value,
|
|
6898
6898
|
key: w
|
|
6899
6899
|
}, {
|
|
6900
|
-
default:
|
|
6900
|
+
default: C(() => [
|
|
6901
6901
|
V(z(e.$t(p.name)), 1)
|
|
6902
6902
|
]),
|
|
6903
6903
|
_: 2
|
|
@@ -6908,15 +6908,15 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6908
6908
|
]),
|
|
6909
6909
|
_: 1
|
|
6910
6910
|
}),
|
|
6911
|
-
|
|
6912
|
-
default:
|
|
6911
|
+
b(l, { label: "暗黑模式" }, {
|
|
6912
|
+
default: C(() => [
|
|
6913
6913
|
a.frameSysTheme == "light" ? (F(), $(u, {
|
|
6914
6914
|
key: 0,
|
|
6915
6915
|
onClick: t[1] || (t[1] = (p) => a.frameSysTheme = "dark"),
|
|
6916
6916
|
class: "light-switch"
|
|
6917
6917
|
}, {
|
|
6918
|
-
default:
|
|
6919
|
-
|
|
6918
|
+
default: C(() => [
|
|
6919
|
+
b(f, { type: "cvSvgViewModeDark" })
|
|
6920
6920
|
]),
|
|
6921
6921
|
_: 1
|
|
6922
6922
|
})) : te("", !0),
|
|
@@ -6925,17 +6925,17 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6925
6925
|
onClick: t[2] || (t[2] = (p) => a.frameSysTheme = "light"),
|
|
6926
6926
|
class: "dark-switch"
|
|
6927
6927
|
}, {
|
|
6928
|
-
default:
|
|
6929
|
-
|
|
6928
|
+
default: C(() => [
|
|
6929
|
+
b(f, { type: "cvSvgViewModeLight" })
|
|
6930
6930
|
]),
|
|
6931
6931
|
_: 1
|
|
6932
6932
|
})) : te("", !0)
|
|
6933
6933
|
]),
|
|
6934
6934
|
_: 1
|
|
6935
6935
|
}),
|
|
6936
|
-
|
|
6937
|
-
default:
|
|
6938
|
-
|
|
6936
|
+
b(l, { label: "侧栏显示" }, {
|
|
6937
|
+
default: C(() => [
|
|
6938
|
+
b(_, {
|
|
6939
6939
|
modelValue: a.frameSidebarState,
|
|
6940
6940
|
"onUpdate:modelValue": t[3] || (t[3] = (p) => a.frameSidebarState = p),
|
|
6941
6941
|
"active-text": "显示",
|
|
@@ -6946,9 +6946,9 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6946
6946
|
]),
|
|
6947
6947
|
_: 1
|
|
6948
6948
|
}),
|
|
6949
|
-
|
|
6950
|
-
default:
|
|
6951
|
-
|
|
6949
|
+
b(l, { label: "导航标签栏" }, {
|
|
6950
|
+
default: C(() => [
|
|
6951
|
+
b(_, {
|
|
6952
6952
|
modelValue: a.frameSysNavTabs,
|
|
6953
6953
|
"onUpdate:modelValue": t[4] || (t[4] = (p) => a.frameSysNavTabs = p),
|
|
6954
6954
|
"active-text": "显示",
|
|
@@ -6959,20 +6959,20 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6959
6959
|
]),
|
|
6960
6960
|
_: 1
|
|
6961
6961
|
}),
|
|
6962
|
-
|
|
6963
|
-
default:
|
|
6964
|
-
|
|
6962
|
+
b(l, { label: "语言" }, {
|
|
6963
|
+
default: C(() => [
|
|
6964
|
+
b(c, {
|
|
6965
6965
|
modelValue: a.frameSysLanguage,
|
|
6966
6966
|
"onUpdate:modelValue": t[5] || (t[5] = (p) => a.frameSysLanguage = p),
|
|
6967
6967
|
placeholder: e.$t("选项语言"),
|
|
6968
6968
|
style: { width: "150px" }
|
|
6969
6969
|
}, {
|
|
6970
|
-
default:
|
|
6971
|
-
(F(!0), W(le, null,
|
|
6970
|
+
default: C(() => [
|
|
6971
|
+
(F(!0), W(le, null, Ne(e.languageSelect, (p, w) => (F(), $(i, {
|
|
6972
6972
|
label: p.label,
|
|
6973
6973
|
value: p.value
|
|
6974
6974
|
}, {
|
|
6975
|
-
default:
|
|
6975
|
+
default: C(() => [
|
|
6976
6976
|
V(z(p.label), 1)
|
|
6977
6977
|
]),
|
|
6978
6978
|
_: 2
|
|
@@ -6983,10 +6983,10 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6983
6983
|
]),
|
|
6984
6984
|
_: 1
|
|
6985
6985
|
}),
|
|
6986
|
-
|
|
6987
|
-
default:
|
|
6988
|
-
|
|
6989
|
-
default:
|
|
6986
|
+
b(l, { label: "版本" }, {
|
|
6987
|
+
default: C(() => [
|
|
6988
|
+
b(u, { onClick: o.frameUpdateVersion }, {
|
|
6989
|
+
default: C(() => [
|
|
6990
6990
|
V(z(e.$t("更新版本")), 1)
|
|
6991
6991
|
]),
|
|
6992
6992
|
_: 1
|
|
@@ -6994,10 +6994,10 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6994
6994
|
]),
|
|
6995
6995
|
_: 1
|
|
6996
6996
|
}),
|
|
6997
|
-
|
|
6998
|
-
default:
|
|
6999
|
-
|
|
7000
|
-
default:
|
|
6997
|
+
b(l, { label: "缓存" }, {
|
|
6998
|
+
default: C(() => [
|
|
6999
|
+
b(u, { onClick: o.frameClearCache }, {
|
|
7000
|
+
default: C(() => [
|
|
7001
7001
|
V(z(e.$t("清除缓存")), 1)
|
|
7002
7002
|
]),
|
|
7003
7003
|
_: 1
|
|
@@ -7038,13 +7038,13 @@ const Pu = /* @__PURE__ */ ge(wu, [["render", Ru]]), Fu = {
|
|
|
7038
7038
|
function Mu(e, t, n, r, a, o) {
|
|
7039
7039
|
const s = L("router-view");
|
|
7040
7040
|
return F(), $(s, { key: a.routeRefreshNum }, {
|
|
7041
|
-
default:
|
|
7042
|
-
|
|
7041
|
+
default: C(({ Component: l, route: i }) => [
|
|
7042
|
+
b(Ko, {
|
|
7043
7043
|
name: a.routeRefreshAnimation,
|
|
7044
7044
|
mode: "out-in",
|
|
7045
7045
|
appear: ""
|
|
7046
7046
|
}, {
|
|
7047
|
-
default:
|
|
7047
|
+
default: C(() => [
|
|
7048
7048
|
(F(), W("div", {
|
|
7049
7049
|
class: Kt(n.className),
|
|
7050
7050
|
key: i.path
|
|
@@ -7058,7 +7058,7 @@ function Mu(e, t, n, r, a, o) {
|
|
|
7058
7058
|
_: 1
|
|
7059
7059
|
});
|
|
7060
7060
|
}
|
|
7061
|
-
const Uu = /* @__PURE__ */ ge(Fu, [["render", Mu]]),
|
|
7061
|
+
const Uu = /* @__PURE__ */ ge(Fu, [["render", Mu]]), Nr = (e) => Math.pow(e, 3), xu = (e) => e < 0.5 ? Nr(e * 2) / 2 : 1 - Nr((1 - e) * 2) / 2, Vu = {
|
|
7062
7062
|
name: "SameNavTabs",
|
|
7063
7063
|
data() {
|
|
7064
7064
|
return {
|
|
@@ -7185,30 +7185,30 @@ function Yu(e, t, n, r, a, o) {
|
|
|
7185
7185
|
const s = L("cv-icons"), l = L("cv-btn-base"), i = L("el-tag"), c = L("el-scrollbar"), f = L("cv-btn-text");
|
|
7186
7186
|
return F(), W("div", Bu, [
|
|
7187
7187
|
D("div", Gu, [
|
|
7188
|
-
|
|
7188
|
+
b(l, {
|
|
7189
7189
|
class: "btn-opt-left",
|
|
7190
7190
|
onClick: o.changeGdtLeft
|
|
7191
7191
|
}, {
|
|
7192
|
-
default:
|
|
7193
|
-
|
|
7192
|
+
default: C(() => [
|
|
7193
|
+
b(s, { type: "ElIconArrowLeft" })
|
|
7194
7194
|
]),
|
|
7195
7195
|
_: 1
|
|
7196
7196
|
}, 8, ["onClick"]),
|
|
7197
7197
|
D("div", $u, [
|
|
7198
|
-
|
|
7199
|
-
default:
|
|
7198
|
+
b(c, { ref: "navScroll1" }, {
|
|
7199
|
+
default: C(() => [
|
|
7200
7200
|
D("div", Wu, [
|
|
7201
|
-
(F(!0), W(le, null,
|
|
7201
|
+
(F(!0), W(le, null, Ne(a.sett_tags, (u, _) => (F(), $(i, {
|
|
7202
7202
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
7203
7203
|
class: Kt(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
7204
7204
|
key: u.name,
|
|
7205
7205
|
closable: u.path !== "/index",
|
|
7206
|
-
onClose: (g) => o.removeTag(u,
|
|
7206
|
+
onClose: (g) => o.removeTag(u, _),
|
|
7207
7207
|
onClick: (g) => o.changeMenu(u),
|
|
7208
7208
|
"disable-transitions": "",
|
|
7209
7209
|
onContextmenu: qo(o.openContextMenu, ["prevent"])
|
|
7210
7210
|
}, {
|
|
7211
|
-
default:
|
|
7211
|
+
default: C(() => [
|
|
7212
7212
|
V(z(u.title), 1)
|
|
7213
7213
|
]),
|
|
7214
7214
|
_: 2
|
|
@@ -7218,19 +7218,19 @@ function Yu(e, t, n, r, a, o) {
|
|
|
7218
7218
|
_: 1
|
|
7219
7219
|
}, 512)
|
|
7220
7220
|
]),
|
|
7221
|
-
|
|
7221
|
+
b(l, {
|
|
7222
7222
|
class: "btn-opt-right",
|
|
7223
7223
|
onClick: o.changeGdtRight
|
|
7224
7224
|
}, {
|
|
7225
|
-
default:
|
|
7226
|
-
|
|
7225
|
+
default: C(() => [
|
|
7226
|
+
b(s, { type: "ElIconArrowRight" })
|
|
7227
7227
|
]),
|
|
7228
7228
|
_: 1
|
|
7229
7229
|
}, 8, ["onClick"]),
|
|
7230
|
-
|
|
7231
|
-
default:
|
|
7230
|
+
b(l, { class: "btn-opt-close" }, {
|
|
7231
|
+
default: C(() => [
|
|
7232
7232
|
t[5] || (t[5] = V(" 关闭操作 ", -1)),
|
|
7233
|
-
|
|
7233
|
+
b(s, { type: "ElIconCaretBottom" })
|
|
7234
7234
|
]),
|
|
7235
7235
|
_: 1
|
|
7236
7236
|
}),
|
|
@@ -7242,52 +7242,52 @@ function Yu(e, t, n, r, a, o) {
|
|
|
7242
7242
|
style: Fn({ left: a.left + "px", top: a.top + "px" })
|
|
7243
7243
|
}, [
|
|
7244
7244
|
D("li", null, [
|
|
7245
|
-
|
|
7245
|
+
b(f, {
|
|
7246
7246
|
onClick: t[0] || (t[0] = (u) => o.curTabReload())
|
|
7247
7247
|
}, {
|
|
7248
|
-
default:
|
|
7248
|
+
default: C(() => [...t[6] || (t[6] = [
|
|
7249
7249
|
V("重新加载", -1)
|
|
7250
7250
|
])]),
|
|
7251
7251
|
_: 1
|
|
7252
7252
|
})
|
|
7253
7253
|
]),
|
|
7254
7254
|
D("li", null, [
|
|
7255
|
-
|
|
7255
|
+
b(f, {
|
|
7256
7256
|
onClick: t[1] || (t[1] = (u) => o.closeAllTabs())
|
|
7257
7257
|
}, {
|
|
7258
|
-
default:
|
|
7258
|
+
default: C(() => [...t[7] || (t[7] = [
|
|
7259
7259
|
V("关闭所有", -1)
|
|
7260
7260
|
])]),
|
|
7261
7261
|
_: 1
|
|
7262
7262
|
})
|
|
7263
7263
|
]),
|
|
7264
7264
|
D("li", null, [
|
|
7265
|
-
|
|
7265
|
+
b(f, {
|
|
7266
7266
|
onClick: t[2] || (t[2] = (u) => o.closeOtherTabs("left")),
|
|
7267
7267
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
7268
7268
|
}, {
|
|
7269
|
-
default:
|
|
7269
|
+
default: C(() => [...t[8] || (t[8] = [
|
|
7270
7270
|
V("关闭左边", -1)
|
|
7271
7271
|
])]),
|
|
7272
7272
|
_: 1
|
|
7273
7273
|
}, 8, ["disabled"])
|
|
7274
7274
|
]),
|
|
7275
7275
|
D("li", null, [
|
|
7276
|
-
|
|
7276
|
+
b(f, {
|
|
7277
7277
|
onClick: t[3] || (t[3] = (u) => o.closeOtherTabs("right")),
|
|
7278
7278
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
7279
7279
|
}, {
|
|
7280
|
-
default:
|
|
7280
|
+
default: C(() => [...t[9] || (t[9] = [
|
|
7281
7281
|
V("关闭右边", -1)
|
|
7282
7282
|
])]),
|
|
7283
7283
|
_: 1
|
|
7284
7284
|
}, 8, ["disabled"])
|
|
7285
7285
|
]),
|
|
7286
7286
|
D("li", null, [
|
|
7287
|
-
|
|
7287
|
+
b(f, {
|
|
7288
7288
|
onClick: t[4] || (t[4] = (u) => o.closeOtherTabs("other"))
|
|
7289
7289
|
}, {
|
|
7290
|
-
default:
|
|
7290
|
+
default: C(() => [...t[10] || (t[10] = [
|
|
7291
7291
|
V("关闭其他", -1)
|
|
7292
7292
|
])]),
|
|
7293
7293
|
_: 1
|
|
@@ -7354,13 +7354,13 @@ const Hu = /* @__PURE__ */ ge(Vu, [["render", Yu]]), Ku = {
|
|
|
7354
7354
|
};
|
|
7355
7355
|
function Ju(e, t, n, r, a, o) {
|
|
7356
7356
|
const s = L("cv-icons"), l = L("SidebarMenuItem", !0), i = L("el-sub-menu"), c = L("cv-badge"), f = L("el-menu-item");
|
|
7357
|
-
return F(!0), W(le, null,
|
|
7357
|
+
return F(!0), W(le, null, Ne(n.menuData, (u) => (F(), W(le, null, [
|
|
7358
7358
|
u.isMenu == !0 ? (F(), W(le, { key: 0 }, [
|
|
7359
7359
|
u.children && u.children.length > 0 && u.children_menu_num > 0 ? (F(), $(i, {
|
|
7360
7360
|
key: u.name,
|
|
7361
7361
|
index: u.name
|
|
7362
7362
|
}, {
|
|
7363
|
-
title:
|
|
7363
|
+
title: C(() => [
|
|
7364
7364
|
D("div", ju, [
|
|
7365
7365
|
u.meta.icon ? (F(), $(s, {
|
|
7366
7366
|
key: 0,
|
|
@@ -7371,8 +7371,8 @@ function Ju(e, t, n, r, a, o) {
|
|
|
7371
7371
|
]),
|
|
7372
7372
|
D("span", null, z(u.meta.title || u.meta.short), 1)
|
|
7373
7373
|
]),
|
|
7374
|
-
default:
|
|
7375
|
-
|
|
7374
|
+
default: C(() => [
|
|
7375
|
+
b(l, {
|
|
7376
7376
|
appData: n.appData,
|
|
7377
7377
|
menuData: u.children,
|
|
7378
7378
|
collapse: n.collapse,
|
|
@@ -7383,12 +7383,12 @@ function Ju(e, t, n, r, a, o) {
|
|
|
7383
7383
|
}, 1032, ["index"])) : (F(), $(f, {
|
|
7384
7384
|
index: u.name,
|
|
7385
7385
|
key: "b" + u.name,
|
|
7386
|
-
onClick: (
|
|
7386
|
+
onClick: (_) => o.handleOpenMenu(u)
|
|
7387
7387
|
}, {
|
|
7388
|
-
title:
|
|
7388
|
+
title: C(() => [
|
|
7389
7389
|
V(z(u.meta.short || u.meta.title), 1)
|
|
7390
7390
|
]),
|
|
7391
|
-
default:
|
|
7391
|
+
default: C(() => [
|
|
7392
7392
|
!u.meta.icon && n.collapse && !n.isChildren ? (F(), W("div", Xu, z(u.meta.short || u.meta.title), 1)) : (F(), W("div", Qu, [
|
|
7393
7393
|
u.meta.icon ? (F(), $(s, {
|
|
7394
7394
|
key: 0,
|
|
@@ -7462,15 +7462,15 @@ function af(e, t, n, r, a, o) {
|
|
|
7462
7462
|
return F(), W("div", ef, [
|
|
7463
7463
|
D("div", tf, z(e.openCaseInfo.LAST_IP_TITLE), 1),
|
|
7464
7464
|
D("div", nf, [
|
|
7465
|
-
|
|
7465
|
+
b(l, {
|
|
7466
7466
|
collapse: n.collapse,
|
|
7467
7467
|
"default-openeds": a.menuDefaultOpeneds,
|
|
7468
7468
|
"default-active": a.activeName,
|
|
7469
7469
|
onOpen: o.handleOpen,
|
|
7470
7470
|
onClose: o.handleClose
|
|
7471
7471
|
}, {
|
|
7472
|
-
default:
|
|
7473
|
-
|
|
7472
|
+
default: C(() => [
|
|
7473
|
+
b(s, {
|
|
7474
7474
|
appData: e.openCaseInfo,
|
|
7475
7475
|
menuData: a.menuCurrList,
|
|
7476
7476
|
collapse: n.collapse
|
|
@@ -7552,37 +7552,37 @@ function lf(e, t, n, r, a, o) {
|
|
|
7552
7552
|
"close-on-press-escape": !1,
|
|
7553
7553
|
onClose: o.handleCancel
|
|
7554
7554
|
}, {
|
|
7555
|
-
footer:
|
|
7555
|
+
footer: C(() => [
|
|
7556
7556
|
D("div", sf, [
|
|
7557
|
-
|
|
7558
|
-
default:
|
|
7557
|
+
b(c, { onClick: o.handleCancel }, {
|
|
7558
|
+
default: C(() => [...t[4] || (t[4] = [
|
|
7559
7559
|
V("取 消", -1)
|
|
7560
7560
|
])]),
|
|
7561
7561
|
_: 1
|
|
7562
7562
|
}, 8, ["onClick"]),
|
|
7563
|
-
|
|
7563
|
+
b(c, {
|
|
7564
7564
|
type: "primary",
|
|
7565
7565
|
onClick: o.handleBeforeOk
|
|
7566
7566
|
}, {
|
|
7567
|
-
default:
|
|
7567
|
+
default: C(() => [...t[5] || (t[5] = [
|
|
7568
7568
|
V("确 定", -1)
|
|
7569
7569
|
])]),
|
|
7570
7570
|
_: 1
|
|
7571
7571
|
}, 8, ["onClick"])
|
|
7572
7572
|
])
|
|
7573
7573
|
]),
|
|
7574
|
-
default:
|
|
7575
|
-
|
|
7574
|
+
default: C(() => [
|
|
7575
|
+
b(i, {
|
|
7576
7576
|
model: a.formData,
|
|
7577
7577
|
"label-width": "auto"
|
|
7578
7578
|
}, {
|
|
7579
|
-
default:
|
|
7580
|
-
|
|
7579
|
+
default: C(() => [
|
|
7580
|
+
b(l, {
|
|
7581
7581
|
prop: "old_pwd",
|
|
7582
7582
|
label: "原密码"
|
|
7583
7583
|
}, {
|
|
7584
|
-
default:
|
|
7585
|
-
|
|
7584
|
+
default: C(() => [
|
|
7585
|
+
b(s, {
|
|
7586
7586
|
type: "password",
|
|
7587
7587
|
"show-password": "",
|
|
7588
7588
|
modelValue: a.formData.old_pwd,
|
|
@@ -7591,12 +7591,12 @@ function lf(e, t, n, r, a, o) {
|
|
|
7591
7591
|
]),
|
|
7592
7592
|
_: 1
|
|
7593
7593
|
}),
|
|
7594
|
-
|
|
7594
|
+
b(l, {
|
|
7595
7595
|
prop: "new_pwd1",
|
|
7596
7596
|
label: "新密码"
|
|
7597
7597
|
}, {
|
|
7598
|
-
default:
|
|
7599
|
-
|
|
7598
|
+
default: C(() => [
|
|
7599
|
+
b(s, {
|
|
7600
7600
|
type: "password",
|
|
7601
7601
|
"show-password": "",
|
|
7602
7602
|
modelValue: a.formData.new_pwd1,
|
|
@@ -7605,12 +7605,12 @@ function lf(e, t, n, r, a, o) {
|
|
|
7605
7605
|
]),
|
|
7606
7606
|
_: 1
|
|
7607
7607
|
}),
|
|
7608
|
-
|
|
7608
|
+
b(l, {
|
|
7609
7609
|
prop: "new_pwd2",
|
|
7610
7610
|
label: "确认密码"
|
|
7611
7611
|
}, {
|
|
7612
|
-
default:
|
|
7613
|
-
|
|
7612
|
+
default: C(() => [
|
|
7613
|
+
b(s, {
|
|
7614
7614
|
type: "password",
|
|
7615
7615
|
"show-password": "",
|
|
7616
7616
|
modelValue: a.formData.new_pwd2,
|
|
@@ -7714,11 +7714,11 @@ const cf = /* @__PURE__ */ ge(of, [["render", lf]]), uf = {
|
|
|
7714
7714
|
// return segs
|
|
7715
7715
|
// }
|
|
7716
7716
|
}
|
|
7717
|
-
}, ff = { class: "cloud-login-change-wrap" },
|
|
7718
|
-
function
|
|
7717
|
+
}, ff = { class: "cloud-login-change-wrap" }, df = { class: "cloud-login-change-box1" }, _f = { class: "cloud-login-change-search" }, mf = { class: "cloud-login-change-box2" }, hf = { class: "cloud-login-change-group-box" }, gf = { class: "cloud-login-change-group-title" }, pf = { class: "cloud-login-change-group-sublist" }, Ef = ["onClick"], Sf = { class: "cloud-login-change-item-left" }, bf = { class: "cloud-login-change-item-left-icon" }, vf = ["src"], yf = { class: "cloud-login-change-item-right" }, Tf = { class: "cloud-login-change-item-right-label" }, Af = { class: "cloud-login-change-item-right-label2" }, Nf = { class: "cloud-login-change-item-more" };
|
|
7718
|
+
function Cf(e, t, n, r, a, o) {
|
|
7719
7719
|
const s = L("el-input"), l = L("el-button"), i = L("cv-icons");
|
|
7720
7720
|
return F(), W("div", ff, [
|
|
7721
|
-
D("div",
|
|
7721
|
+
D("div", df, [
|
|
7722
7722
|
D("div", {
|
|
7723
7723
|
class: "cloud-login-change-refresh",
|
|
7724
7724
|
onClick: t[0] || (t[0] = (...c) => o.chainForceRefresh && o.chainForceRefresh(...c))
|
|
@@ -7732,8 +7732,8 @@ function Nf(e, t, n, r, a, o) {
|
|
|
7732
7732
|
D("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
7733
7733
|
D("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
7734
7734
|
], -1)),
|
|
7735
|
-
D("div",
|
|
7736
|
-
|
|
7735
|
+
D("div", _f, [
|
|
7736
|
+
b(s, {
|
|
7737
7737
|
modelValue: a.chainKeyword,
|
|
7738
7738
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => a.chainKeyword = c),
|
|
7739
7739
|
size: "large",
|
|
@@ -7742,11 +7742,11 @@ function Nf(e, t, n, r, a, o) {
|
|
|
7742
7742
|
style: { "max-width": "500px" },
|
|
7743
7743
|
onInput: o.handleSearch
|
|
7744
7744
|
}, null, 8, ["modelValue", "onInput"]),
|
|
7745
|
-
|
|
7745
|
+
b(l, {
|
|
7746
7746
|
size: "large",
|
|
7747
7747
|
onClick: o.handleSearch
|
|
7748
7748
|
}, {
|
|
7749
|
-
default:
|
|
7749
|
+
default: C(() => [...t[3] || (t[3] = [
|
|
7750
7750
|
V("搜索", -1)
|
|
7751
7751
|
])]),
|
|
7752
7752
|
_: 1
|
|
@@ -7754,19 +7754,19 @@ function Nf(e, t, n, r, a, o) {
|
|
|
7754
7754
|
]),
|
|
7755
7755
|
D("div", mf, [
|
|
7756
7756
|
D("div", hf, [
|
|
7757
|
-
(F(!0), W(le, null,
|
|
7757
|
+
(F(!0), W(le, null, Ne(a.chainLastList, (c, f) => (F(), W("div", {
|
|
7758
7758
|
class: "cloud-login-change-group-item",
|
|
7759
7759
|
key: f
|
|
7760
7760
|
}, [
|
|
7761
7761
|
D("div", gf, z(c.title || "无") + "(" + z(c.total) + ")", 1),
|
|
7762
7762
|
D("div", pf, [
|
|
7763
|
-
(F(!0), W(le, null,
|
|
7763
|
+
(F(!0), W(le, null, Ne(c.list, (u, _) => (F(), W("div", {
|
|
7764
7764
|
class: "cloud-login-change-item-bao",
|
|
7765
|
-
key:
|
|
7765
|
+
key: _,
|
|
7766
7766
|
onClick: (g) => o.chainSelection(u)
|
|
7767
7767
|
}, [
|
|
7768
|
-
D("div",
|
|
7769
|
-
D("div",
|
|
7768
|
+
D("div", Sf, [
|
|
7769
|
+
D("div", bf, [
|
|
7770
7770
|
D("img", {
|
|
7771
7771
|
src: u.business_icon_cdn
|
|
7772
7772
|
}, null, 8, vf)
|
|
@@ -7776,8 +7776,8 @@ function Nf(e, t, n, r, a, o) {
|
|
|
7776
7776
|
D("div", Tf, z(u.business_name), 1),
|
|
7777
7777
|
D("div", Af, "【" + z(u.acc_rules_type_str) + "】", 1)
|
|
7778
7778
|
]),
|
|
7779
|
-
D("div",
|
|
7780
|
-
|
|
7779
|
+
D("div", Nf, [
|
|
7780
|
+
b(i, { type: "ElIconArrowRight" })
|
|
7781
7781
|
])
|
|
7782
7782
|
], 8, Ef))), 128))
|
|
7783
7783
|
])
|
|
@@ -7787,7 +7787,7 @@ function Nf(e, t, n, r, a, o) {
|
|
|
7787
7787
|
])
|
|
7788
7788
|
]);
|
|
7789
7789
|
}
|
|
7790
|
-
const Of = /* @__PURE__ */ ge(uf, [["render",
|
|
7790
|
+
const Of = /* @__PURE__ */ ge(uf, [["render", Cf]]), If = {
|
|
7791
7791
|
name: "SameFrame",
|
|
7792
7792
|
components: {
|
|
7793
7793
|
SidebarMenuBox: rf,
|
|
@@ -7946,7 +7946,7 @@ const Of = /* @__PURE__ */ ge(uf, [["render", Nf]]), If = {
|
|
|
7946
7946
|
class: "chopt-num"
|
|
7947
7947
|
}, xf = { class: "cloud-header__info" }, Vf = ["src"], Bf = { class: "chinfo-infoname" }, Gf = { class: "chinfo-infobname" }, $f = { class: "chinfo-infouname" }, Wf = { class: "cloud-sidebar__wrap" }, Yf = { class: "cloud-pages__wrap" };
|
|
7948
7948
|
function Hf(e, t, n, r, a, o) {
|
|
7949
|
-
const s = L("cv-icons"), l = L("el-breadcrumb-item"), i = L("el-breadcrumb"), c = L("el-dropdown-item"), f = L("el-dropdown-menu"), u = L("el-dropdown"),
|
|
7949
|
+
const s = L("cv-icons"), l = L("el-breadcrumb-item"), i = L("el-breadcrumb"), c = L("el-dropdown-item"), f = L("el-dropdown-menu"), u = L("el-dropdown"), _ = L("SidebarMenuBox"), g = L("SameNavTabs"), T = L("SameRouteView"), p = L("HeaderSysSettDrawer"), w = L("ChangePassword"), m = L("SwitchBusiness");
|
|
7950
7950
|
return F(), W("div", Lf, [
|
|
7951
7951
|
D("header", wf, [
|
|
7952
7952
|
D("div", Df, [
|
|
@@ -7978,28 +7978,28 @@ function Hf(e, t, n, r, a, o) {
|
|
|
7978
7978
|
class: "cloud-header__opt",
|
|
7979
7979
|
onClick: t[1] || (t[1] = (...E) => o.framePageRefresh && o.framePageRefresh(...E))
|
|
7980
7980
|
}, [
|
|
7981
|
-
|
|
7981
|
+
b(s, {
|
|
7982
7982
|
type: "ElIconRefreshRight",
|
|
7983
7983
|
size: "20"
|
|
7984
7984
|
})
|
|
7985
7985
|
]),
|
|
7986
7986
|
D("div", Ff, [
|
|
7987
|
-
|
|
7988
|
-
default:
|
|
7989
|
-
(F(!0), W(le, null,
|
|
7990
|
-
|
|
7991
|
-
key:
|
|
7987
|
+
b(i, { separator: "/" }, {
|
|
7988
|
+
default: C(() => [
|
|
7989
|
+
(F(!0), W(le, null, Ne(a.breadcrumbPath, (E, S) => (F(), W(le, null, [
|
|
7990
|
+
S == a.breadcrumbPath.length - 1 || !E.path || E.path == "" ? (F(), $(l, {
|
|
7991
|
+
key: S,
|
|
7992
7992
|
class: "no-redirect"
|
|
7993
7993
|
}, {
|
|
7994
|
-
default:
|
|
7994
|
+
default: C(() => [
|
|
7995
7995
|
V(z(E.title), 1)
|
|
7996
7996
|
]),
|
|
7997
7997
|
_: 2
|
|
7998
7998
|
}, 1024)) : (F(), $(l, {
|
|
7999
|
-
key: "b" +
|
|
7999
|
+
key: "b" + S,
|
|
8000
8000
|
to: { path: E.path }
|
|
8001
8001
|
}, {
|
|
8002
|
-
default:
|
|
8002
|
+
default: C(() => [
|
|
8003
8003
|
V(z(E.title), 1)
|
|
8004
8004
|
]),
|
|
8005
8005
|
_: 2
|
|
@@ -8014,7 +8014,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8014
8014
|
class: "cloud-header__opt chopt-relative",
|
|
8015
8015
|
onClick: t[2] || (t[2] = (E) => o.frameHandleCommand("msg"))
|
|
8016
8016
|
}, [
|
|
8017
|
-
|
|
8017
|
+
b(s, {
|
|
8018
8018
|
type: "ElIconChatLineRound",
|
|
8019
8019
|
size: "20"
|
|
8020
8020
|
}),
|
|
@@ -8024,23 +8024,23 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8024
8024
|
class: "cloud-header__opt chopt-relative",
|
|
8025
8025
|
onClick: t[3] || (t[3] = (E) => o.frameHandleCommand("gongdan"))
|
|
8026
8026
|
}, [
|
|
8027
|
-
|
|
8027
|
+
b(s, {
|
|
8028
8028
|
type: "ElIconMessage",
|
|
8029
8029
|
size: "20"
|
|
8030
8030
|
}),
|
|
8031
8031
|
a.emailUnreadTotal > 0 ? (F(), W("em", Uf, z(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : te("", !0)
|
|
8032
8032
|
]),
|
|
8033
8033
|
D("div", xf, [
|
|
8034
|
-
|
|
8034
|
+
b(u, {
|
|
8035
8035
|
onCommand: o.frameHandleCommand,
|
|
8036
8036
|
"popper-class": "cloud-header__info_dropdown"
|
|
8037
8037
|
}, {
|
|
8038
|
-
dropdown:
|
|
8039
|
-
|
|
8040
|
-
default:
|
|
8041
|
-
|
|
8042
|
-
default:
|
|
8043
|
-
|
|
8038
|
+
dropdown: C(() => [
|
|
8039
|
+
b(f, null, {
|
|
8040
|
+
default: C(() => [
|
|
8041
|
+
b(c, { command: "account_change" }, {
|
|
8042
|
+
default: C(() => [
|
|
8043
|
+
b(s, {
|
|
8044
8044
|
type: "cvSvgPeopleSwitch",
|
|
8045
8045
|
size: "15"
|
|
8046
8046
|
}),
|
|
@@ -8048,9 +8048,9 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8048
8048
|
]),
|
|
8049
8049
|
_: 1
|
|
8050
8050
|
}),
|
|
8051
|
-
|
|
8052
|
-
default:
|
|
8053
|
-
|
|
8051
|
+
b(c, { command: "account_chgpwd" }, {
|
|
8052
|
+
default: C(() => [
|
|
8053
|
+
b(s, {
|
|
8054
8054
|
type: "cvSvgBaseLockOff",
|
|
8055
8055
|
size: "15"
|
|
8056
8056
|
}),
|
|
@@ -8058,12 +8058,12 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8058
8058
|
]),
|
|
8059
8059
|
_: 1
|
|
8060
8060
|
}),
|
|
8061
|
-
|
|
8061
|
+
b(c, {
|
|
8062
8062
|
command: "clearCache",
|
|
8063
8063
|
divided: ""
|
|
8064
8064
|
}, {
|
|
8065
|
-
default:
|
|
8066
|
-
|
|
8065
|
+
default: C(() => [
|
|
8066
|
+
b(s, {
|
|
8067
8067
|
type: "ElIconDelete",
|
|
8068
8068
|
size: "15"
|
|
8069
8069
|
}),
|
|
@@ -8071,9 +8071,9 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8071
8071
|
]),
|
|
8072
8072
|
_: 1
|
|
8073
8073
|
}),
|
|
8074
|
-
|
|
8075
|
-
default:
|
|
8076
|
-
|
|
8074
|
+
b(c, { command: "logout" }, {
|
|
8075
|
+
default: C(() => [
|
|
8076
|
+
b(s, {
|
|
8077
8077
|
type: "cvSvgArrowExportRight",
|
|
8078
8078
|
size: "14"
|
|
8079
8079
|
}),
|
|
@@ -8085,7 +8085,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8085
8085
|
_: 1
|
|
8086
8086
|
})
|
|
8087
8087
|
]),
|
|
8088
|
-
default:
|
|
8088
|
+
default: C(() => [
|
|
8089
8089
|
D("span", null, [
|
|
8090
8090
|
D("img", {
|
|
8091
8091
|
class: "chinfo-avatar",
|
|
@@ -8096,7 +8096,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8096
8096
|
D("div", Gf, z(o.headerInfoName), 1),
|
|
8097
8097
|
D("div", $f, z(o.headerInfoNick), 1)
|
|
8098
8098
|
]),
|
|
8099
|
-
|
|
8099
|
+
b(s, { type: "ElIconArrowDown" })
|
|
8100
8100
|
])
|
|
8101
8101
|
]),
|
|
8102
8102
|
_: 1
|
|
@@ -8125,28 +8125,28 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8125
8125
|
onClick: t[5] || (t[5] = (...E) => o.frameTopSysSettOpen && o.frameTopSysSettOpen(...E)),
|
|
8126
8126
|
style: { "min-width": "50px" }
|
|
8127
8127
|
}, [
|
|
8128
|
-
|
|
8128
|
+
b(s, {
|
|
8129
8129
|
type: "cvSvgBaseSetting",
|
|
8130
8130
|
size: "20"
|
|
8131
8131
|
})
|
|
8132
8132
|
])
|
|
8133
8133
|
]),
|
|
8134
8134
|
D("section", Wf, [
|
|
8135
|
-
|
|
8135
|
+
b(_, {
|
|
8136
8136
|
collapse: a.frameSidebarOpen == "off"
|
|
8137
8137
|
}, null, 8, ["collapse"])
|
|
8138
8138
|
]),
|
|
8139
8139
|
D("section", Yf, [
|
|
8140
|
-
Rt(
|
|
8140
|
+
Rt(b(g, null, null, 512), [
|
|
8141
8141
|
[Lr, e.layoutNavTabs == "on"]
|
|
8142
8142
|
]),
|
|
8143
|
-
|
|
8143
|
+
b(T, { className: "cloud-pages__box" })
|
|
8144
8144
|
]),
|
|
8145
|
-
|
|
8145
|
+
b(p, {
|
|
8146
8146
|
modelValue: a.frameHeadSysSettDia,
|
|
8147
8147
|
"onUpdate:modelValue": t[6] || (t[6] = (E) => a.frameHeadSysSettDia = E)
|
|
8148
8148
|
}, null, 8, ["modelValue"]),
|
|
8149
|
-
|
|
8149
|
+
b(w, {
|
|
8150
8150
|
modelValue: a.changeShowFlag,
|
|
8151
8151
|
"onUpdate:modelValue": t[7] || (t[7] = (E) => a.changeShowFlag = E)
|
|
8152
8152
|
}, null, 8, ["modelValue"]),
|
|
@@ -8162,7 +8162,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8162
8162
|
}, null, 8, ["modelValue", "onRefreshFunc", "onReselectFunc", "onSelectFunc"])) : te("", !0)
|
|
8163
8163
|
]);
|
|
8164
8164
|
}
|
|
8165
|
-
const
|
|
8165
|
+
const Qd = /* @__PURE__ */ ge(If, [["render", Hf]]), Kf = {
|
|
8166
8166
|
data() {
|
|
8167
8167
|
return {
|
|
8168
8168
|
watemarkText: "shiyun"
|
|
@@ -8191,13 +8191,13 @@ const Q_ = /* @__PURE__ */ ge(If, [["render", Hf]]), Kf = {
|
|
|
8191
8191
|
function jf(e, t, n, r, a, o) {
|
|
8192
8192
|
const s = L("el-watermark");
|
|
8193
8193
|
return F(), $(s, Xo(o.watemarkConf, { style: { height: "100%" } }), {
|
|
8194
|
-
default:
|
|
8194
|
+
default: C(() => [
|
|
8195
8195
|
Qo(e.$slots, "default")
|
|
8196
8196
|
]),
|
|
8197
8197
|
_: 3
|
|
8198
8198
|
}, 16);
|
|
8199
8199
|
}
|
|
8200
|
-
const
|
|
8200
|
+
const Jd = /* @__PURE__ */ ge(Kf, [["render", jf]]), qf = {
|
|
8201
8201
|
name: "SdkFormEdit",
|
|
8202
8202
|
props: {
|
|
8203
8203
|
modelValue: {
|
|
@@ -8246,50 +8246,50 @@ const J_ = /* @__PURE__ */ ge(Kf, [["render", jf]]), qf = {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
}, Xf = { style: { "font-size": "12px" } }, Qf = { style: { color: "red", "font-weight": "bold" } }, Jf = { class: "multiline-text" };
|
|
8248
8248
|
function zf(e, t, n, r, a, o) {
|
|
8249
|
-
const s = L("cv-upload-image"), l = L("cv-input-text"), i = L("cv-input-number"), c = L("cv-input-digit"), f = L("cv-textarea"), u = L("cv-radio-opt-base"),
|
|
8249
|
+
const s = L("cv-upload-image"), l = L("cv-input-text"), i = L("cv-input-number"), c = L("cv-input-digit"), f = L("cv-textarea"), u = L("cv-radio-opt-base"), _ = L("cv-radio-group"), g = L("cv-checkbox-opt-base"), T = L("cv-checkbox-group"), p = L("cv-form-item"), w = L("cv-form-base");
|
|
8250
8250
|
return F(), $(w, {
|
|
8251
8251
|
ref: "refFormBase",
|
|
8252
8252
|
rules: a.formRules,
|
|
8253
8253
|
model: a.formData
|
|
8254
8254
|
}, {
|
|
8255
|
-
default:
|
|
8256
|
-
(F(!0), W(le, null,
|
|
8255
|
+
default: C(() => [
|
|
8256
|
+
(F(!0), W(le, null, Ne(n.fieldsList, (m, E) => (F(), $(p, {
|
|
8257
8257
|
key: E,
|
|
8258
8258
|
label: m.field_form_label,
|
|
8259
8259
|
required: m.field_form_require == "on"
|
|
8260
8260
|
}, Jo({
|
|
8261
|
-
default:
|
|
8261
|
+
default: C(() => [
|
|
8262
8262
|
m.field_form_type == "upload_image" ? (F(), $(s, {
|
|
8263
8263
|
key: 0,
|
|
8264
8264
|
modelValue: a.formData[m.field_form_key],
|
|
8265
|
-
"onUpdate:modelValue": (
|
|
8265
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S,
|
|
8266
8266
|
initValue: a.formData[m.field_form_key + "_CDN"],
|
|
8267
|
-
"onUpdate:initValue": (
|
|
8267
|
+
"onUpdate:initValue": (S) => a.formData[m.field_form_key + "_CDN"] = S
|
|
8268
8268
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "initValue", "onUpdate:initValue"])) : te("", !0),
|
|
8269
8269
|
m.field_form_type == "input_text" ? (F(), $(l, {
|
|
8270
8270
|
key: 1,
|
|
8271
8271
|
modelValue: a.formData[m.field_form_key],
|
|
8272
|
-
"onUpdate:modelValue": (
|
|
8272
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8273
8273
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8274
8274
|
m.field_form_type == "input_number" ? (F(), $(i, {
|
|
8275
8275
|
key: 2,
|
|
8276
8276
|
modelValue: a.formData[m.field_form_key],
|
|
8277
|
-
"onUpdate:modelValue": (
|
|
8277
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8278
8278
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8279
8279
|
m.field_form_type == "input_digit" ? (F(), $(c, {
|
|
8280
8280
|
key: 3,
|
|
8281
8281
|
modelValue: a.formData[m.field_form_key],
|
|
8282
|
-
"onUpdate:modelValue": (
|
|
8282
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8283
8283
|
}, {
|
|
8284
|
-
append:
|
|
8284
|
+
append: C(() => [...t[0] || (t[0] = [
|
|
8285
8285
|
V("元", -1)
|
|
8286
8286
|
])]),
|
|
8287
8287
|
_: 1
|
|
8288
8288
|
}, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8289
8289
|
m.field_form_type == "input_second" ? (F(), W(le, { key: 4 }, [
|
|
8290
|
-
|
|
8290
|
+
b(i, {
|
|
8291
8291
|
modelValue: a.formData[m.field_form_key],
|
|
8292
|
-
"onUpdate:modelValue": (
|
|
8292
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8293
8293
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
8294
8294
|
D("span", Xf, [
|
|
8295
8295
|
t[1] || (t[1] = V(" 计算为 ", -1)),
|
|
@@ -8299,35 +8299,35 @@ function zf(e, t, n, r, a, o) {
|
|
|
8299
8299
|
m.field_form_type == "textarea_base" ? (F(), $(f, {
|
|
8300
8300
|
key: 5,
|
|
8301
8301
|
modelValue: a.formData[m.field_form_key],
|
|
8302
|
-
"onUpdate:modelValue": (
|
|
8302
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8303
8303
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8304
8304
|
m.field_form_type == "encryption" ? (F(), W(le, { key: 6 }, [
|
|
8305
|
-
|
|
8305
|
+
b(f, {
|
|
8306
8306
|
modelValue: a.formData[m.field_form_key],
|
|
8307
|
-
"onUpdate:modelValue": (
|
|
8307
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8308
8308
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
8309
8309
|
t[2] || (t[2] = D("div", { style: { color: "#999", "font-size": "12px" } }, "加密字段配置后,下次呈现加密内容,请自行保存加密原数据", -1))
|
|
8310
8310
|
], 64)) : te("", !0),
|
|
8311
|
-
m.field_form_type == "radio_switch" ? (F(), $(
|
|
8311
|
+
m.field_form_type == "radio_switch" ? (F(), $(_, {
|
|
8312
8312
|
key: 7,
|
|
8313
8313
|
modelValue: a.formData[m.field_form_key],
|
|
8314
|
-
"onUpdate:modelValue": (
|
|
8314
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8315
8315
|
}, {
|
|
8316
|
-
default:
|
|
8317
|
-
|
|
8316
|
+
default: C(() => [
|
|
8317
|
+
b(u, {
|
|
8318
8318
|
label: "开启",
|
|
8319
8319
|
value: "on"
|
|
8320
8320
|
}, {
|
|
8321
|
-
default:
|
|
8321
|
+
default: C(() => [...t[3] || (t[3] = [
|
|
8322
8322
|
V("开启", -1)
|
|
8323
8323
|
])]),
|
|
8324
8324
|
_: 1
|
|
8325
8325
|
}),
|
|
8326
|
-
|
|
8326
|
+
b(u, {
|
|
8327
8327
|
label: "关闭",
|
|
8328
8328
|
value: "off"
|
|
8329
8329
|
}, {
|
|
8330
|
-
default:
|
|
8330
|
+
default: C(() => [...t[4] || (t[4] = [
|
|
8331
8331
|
V("关闭", -1)
|
|
8332
8332
|
])]),
|
|
8333
8333
|
_: 1
|
|
@@ -8335,18 +8335,18 @@ function zf(e, t, n, r, a, o) {
|
|
|
8335
8335
|
]),
|
|
8336
8336
|
_: 1
|
|
8337
8337
|
}, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8338
|
-
m.field_form_type == "radio_base" ? (F(), $(
|
|
8338
|
+
m.field_form_type == "radio_base" ? (F(), $(_, {
|
|
8339
8339
|
key: 8,
|
|
8340
8340
|
modelValue: a.formData[m.field_form_key],
|
|
8341
|
-
"onUpdate:modelValue": (
|
|
8341
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8342
8342
|
}, {
|
|
8343
|
-
default:
|
|
8344
|
-
(F(!0), W(le, null,
|
|
8343
|
+
default: C(() => [
|
|
8344
|
+
(F(!0), W(le, null, Ne(m.field_form_option, (S, y) => (F(), $(u, {
|
|
8345
8345
|
key: y,
|
|
8346
|
-
value:
|
|
8346
|
+
value: S.value
|
|
8347
8347
|
}, {
|
|
8348
|
-
default:
|
|
8349
|
-
V(z(
|
|
8348
|
+
default: C(() => [
|
|
8349
|
+
V(z(S.label), 1)
|
|
8350
8350
|
]),
|
|
8351
8351
|
_: 2
|
|
8352
8352
|
}, 1032, ["value"]))), 128))
|
|
@@ -8356,16 +8356,16 @@ function zf(e, t, n, r, a, o) {
|
|
|
8356
8356
|
m.field_form_type == "checkbox_base" ? (F(), $(T, {
|
|
8357
8357
|
key: 9,
|
|
8358
8358
|
modelValue: a.formData[m.field_form_key],
|
|
8359
|
-
"onUpdate:modelValue": (
|
|
8359
|
+
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
8360
8360
|
}, {
|
|
8361
|
-
default:
|
|
8362
|
-
(F(!0), W(le, null,
|
|
8361
|
+
default: C(() => [
|
|
8362
|
+
(F(!0), W(le, null, Ne(m.field_form_option, (S, y) => (F(), $(g, {
|
|
8363
8363
|
key: y,
|
|
8364
|
-
label:
|
|
8365
|
-
value:
|
|
8364
|
+
label: S.label,
|
|
8365
|
+
value: S.value
|
|
8366
8366
|
}, {
|
|
8367
|
-
default:
|
|
8368
|
-
V(z(
|
|
8367
|
+
default: C(() => [
|
|
8368
|
+
V(z(S.label), 1)
|
|
8369
8369
|
]),
|
|
8370
8370
|
_: 2
|
|
8371
8371
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -8377,7 +8377,7 @@ function zf(e, t, n, r, a, o) {
|
|
|
8377
8377
|
}, [
|
|
8378
8378
|
m.field_form_tip ? {
|
|
8379
8379
|
name: "tip",
|
|
8380
|
-
fn:
|
|
8380
|
+
fn: C(() => [
|
|
8381
8381
|
D("div", Jf, z(m.field_form_tip), 1)
|
|
8382
8382
|
]),
|
|
8383
8383
|
key: "0"
|
|
@@ -8387,12 +8387,16 @@ function zf(e, t, n, r, a, o) {
|
|
|
8387
8387
|
_: 1
|
|
8388
8388
|
}, 8, ["rules", "model"]);
|
|
8389
8389
|
}
|
|
8390
|
-
const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]),
|
|
8390
|
+
const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), ed = {
|
|
8391
8391
|
emits: ["handleCallback", "close"],
|
|
8392
8392
|
props: {
|
|
8393
8393
|
limit: {
|
|
8394
|
-
type: [Number],
|
|
8394
|
+
type: [String, Number],
|
|
8395
8395
|
default: 1
|
|
8396
|
+
},
|
|
8397
|
+
initData: {
|
|
8398
|
+
type: [String, Number],
|
|
8399
|
+
default: ""
|
|
8396
8400
|
}
|
|
8397
8401
|
},
|
|
8398
8402
|
data() {
|
|
@@ -8443,7 +8447,7 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8443
8447
|
this.$refs.refDiaSelectLeft.filter(e);
|
|
8444
8448
|
}
|
|
8445
8449
|
},
|
|
8446
|
-
|
|
8450
|
+
mounted() {
|
|
8447
8451
|
this.initLeftData(), this.initRightData();
|
|
8448
8452
|
},
|
|
8449
8453
|
methods: {
|
|
@@ -8479,20 +8483,20 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8479
8483
|
this.$emit("close");
|
|
8480
8484
|
},
|
|
8481
8485
|
// 单击选择图片
|
|
8482
|
-
handleClickImage(e, t
|
|
8483
|
-
let
|
|
8484
|
-
for (let
|
|
8485
|
-
if (
|
|
8486
|
-
this.activeImageUrl.splice(
|
|
8486
|
+
handleClickImage(e, t) {
|
|
8487
|
+
let n = e.filelog_id, r = e.filelog_full_path, a = e.cdn_full_path;
|
|
8488
|
+
for (let o in this.activeImageUrl)
|
|
8489
|
+
if (r == this.activeImageUrl[o].save_full_path) {
|
|
8490
|
+
this.activeImageUrl.splice(o, 1), this.activeImageState[t] = !1;
|
|
8487
8491
|
return;
|
|
8488
8492
|
}
|
|
8489
8493
|
if (this.activeImageUrl.length + 1 > this.limit)
|
|
8490
8494
|
return this.$message.error("超出数量" + this.limit), !1;
|
|
8491
8495
|
this.activeImageUrl.push({
|
|
8492
|
-
filelog_id:
|
|
8493
|
-
save_full_path:
|
|
8494
|
-
cdn_full_path:
|
|
8495
|
-
}), this.activeImageState[
|
|
8496
|
+
filelog_id: n,
|
|
8497
|
+
save_full_path: r,
|
|
8498
|
+
cdn_full_path: a
|
|
8499
|
+
}), this.activeImageState[t] = !0;
|
|
8496
8500
|
},
|
|
8497
8501
|
// 小红圈提示文本
|
|
8498
8502
|
badgeValue(e) {
|
|
@@ -8519,30 +8523,33 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8519
8523
|
* 初始化 【 文本编辑状态、图片选中状态 】
|
|
8520
8524
|
*/
|
|
8521
8525
|
_initImageState() {
|
|
8522
|
-
|
|
8523
|
-
|
|
8526
|
+
const e = String(this.initData).split(",").map((t) => t.trim());
|
|
8527
|
+
for (let t in this.imageList) {
|
|
8528
|
+
let n = this.imageList[t];
|
|
8529
|
+
this.imageTextEditState[t] = !1, this.activeImageState[t] = !1, this.initData && e.includes(String(n.filelog_id)) && this.handleClickImage(n, t);
|
|
8530
|
+
}
|
|
8524
8531
|
}
|
|
8525
8532
|
}
|
|
8526
|
-
},
|
|
8533
|
+
}, td = {
|
|
8527
8534
|
"element-loading-text": "加载中",
|
|
8528
8535
|
"element-loading-spinner": "el-icon-loading",
|
|
8529
8536
|
class: "cloud-dialog-choice-wrap"
|
|
8530
|
-
},
|
|
8531
|
-
function
|
|
8532
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-btn-base"), c = L("el-upload"), f = L("cv-select-tree"), u = L("el-badge"),
|
|
8533
|
-
return Rt((F(), W("div",
|
|
8534
|
-
D("div",
|
|
8535
|
-
D("section",
|
|
8536
|
-
D("section",
|
|
8537
|
+
}, nd = { style: { width: "100%", height: "500px" } }, ad = { class: "cloud-dia-choice-box" }, rd = { class: "cloud-dia-choice-left" }, od = { class: "cloud-dia-choice-right" }, sd = { class: "cloud-dia-right-tools" }, id = { class: "cloud-dia-right-list" }, ld = ["src", "onClick"], cd = { class: "cloud-dia-right-item_text" }, ud = { key: 1 }, fd = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
8538
|
+
function dd(e, t, n, r, a, o) {
|
|
8539
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-btn-base"), c = L("el-upload"), f = L("cv-select-tree"), u = L("el-badge"), _ = L("cv-icons"), g = L("el-pagination"), T = na("loading");
|
|
8540
|
+
return Rt((F(), W("div", td, [
|
|
8541
|
+
D("div", nd, [
|
|
8542
|
+
D("section", ad, [
|
|
8543
|
+
D("section", rd, [
|
|
8537
8544
|
t[1] || (t[1] = D("div", { class: "cloud-dia-left-title" }, "类别", -1)),
|
|
8538
|
-
|
|
8545
|
+
b(s, {
|
|
8539
8546
|
class: "cloud-dia-left-filter",
|
|
8540
8547
|
modelValue: a.leftFilterText,
|
|
8541
8548
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => a.leftFilterText = p),
|
|
8542
8549
|
placeholder: "请搜索",
|
|
8543
8550
|
clearable: ""
|
|
8544
8551
|
}, null, 8, ["modelValue"]),
|
|
8545
|
-
|
|
8552
|
+
b(l, {
|
|
8546
8553
|
ref: "refDiaSelectLeft",
|
|
8547
8554
|
class: "cloud-dia-left-tree",
|
|
8548
8555
|
data: a.leftTreeList,
|
|
@@ -8552,9 +8559,9 @@ function __(e, t, n, r, a, o) {
|
|
|
8552
8559
|
onNodeClick: o.leftClickNode
|
|
8553
8560
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
8554
8561
|
]),
|
|
8555
|
-
D("section",
|
|
8556
|
-
D("div",
|
|
8557
|
-
|
|
8562
|
+
D("section", od, [
|
|
8563
|
+
D("div", sd, [
|
|
8564
|
+
b(c, {
|
|
8558
8565
|
class: "dialog-choice-image-upload",
|
|
8559
8566
|
action: a.upAction,
|
|
8560
8567
|
"on-preview": o.upHandlePreview,
|
|
@@ -8562,9 +8569,9 @@ function __(e, t, n, r, a, o) {
|
|
|
8562
8569
|
"show-file-list": !1,
|
|
8563
8570
|
"file-list": a.upFileList
|
|
8564
8571
|
}, {
|
|
8565
|
-
default:
|
|
8566
|
-
|
|
8567
|
-
default:
|
|
8572
|
+
default: C(() => [
|
|
8573
|
+
b(i, { type: "primary" }, {
|
|
8574
|
+
default: C(() => [...t[2] || (t[2] = [
|
|
8568
8575
|
V("上传图片", -1)
|
|
8569
8576
|
])]),
|
|
8570
8577
|
_: 1
|
|
@@ -8572,65 +8579,65 @@ function __(e, t, n, r, a, o) {
|
|
|
8572
8579
|
]),
|
|
8573
8580
|
_: 1
|
|
8574
8581
|
}, 8, ["action", "on-preview", "on-remove", "file-list"]),
|
|
8575
|
-
|
|
8582
|
+
b(i, {
|
|
8576
8583
|
type: "primary",
|
|
8577
8584
|
disabled: a.activeImageUrl.length === 0
|
|
8578
8585
|
}, {
|
|
8579
|
-
default:
|
|
8586
|
+
default: C(() => [...t[3] || (t[3] = [
|
|
8580
8587
|
V("使用选中图片", -1)
|
|
8581
8588
|
])]),
|
|
8582
8589
|
_: 1
|
|
8583
8590
|
}, 8, ["disabled"]),
|
|
8584
|
-
|
|
8591
|
+
b(i, {
|
|
8585
8592
|
type: "danger",
|
|
8586
8593
|
disabled: a.activeImageUrl.length === 0
|
|
8587
8594
|
}, {
|
|
8588
|
-
default:
|
|
8595
|
+
default: C(() => [...t[4] || (t[4] = [
|
|
8589
8596
|
V("删除图片", -1)
|
|
8590
8597
|
])]),
|
|
8591
8598
|
_: 1
|
|
8592
8599
|
}, 8, ["disabled"]),
|
|
8593
|
-
|
|
8600
|
+
b(f, {
|
|
8594
8601
|
dataField: a.leftTreeProps,
|
|
8595
8602
|
dataLists: a.leftTreeList,
|
|
8596
8603
|
placeholder: "图片移动至",
|
|
8597
8604
|
style: { "margin-left": "10px", width: "160px" }
|
|
8598
8605
|
}, null, 8, ["dataField", "dataLists"])
|
|
8599
8606
|
]),
|
|
8600
|
-
D("div",
|
|
8601
|
-
(F(!0), W(le, null,
|
|
8607
|
+
D("div", id, [
|
|
8608
|
+
(F(!0), W(le, null, Ne(a.imageList, (p, w) => (F(), W("div", {
|
|
8602
8609
|
class: "cloud-dia-right-item",
|
|
8603
8610
|
key: w
|
|
8604
8611
|
}, [
|
|
8605
|
-
|
|
8612
|
+
b(u, {
|
|
8606
8613
|
class: Kt(o.badgeValue(p.filelog_id) == 0 && "isshowBadge"),
|
|
8607
8614
|
value: o.badgeValue(p.filelog_id)
|
|
8608
8615
|
}, {
|
|
8609
|
-
default:
|
|
8616
|
+
default: C(() => [
|
|
8610
8617
|
D("img", {
|
|
8611
8618
|
class: Kt(a.activeImageState[w] && "active"),
|
|
8612
8619
|
src: p.cdn_full_path,
|
|
8613
8620
|
alt: "",
|
|
8614
|
-
onClick: (m) => o.handleClickImage(
|
|
8615
|
-
}, null, 10,
|
|
8621
|
+
onClick: (m) => o.handleClickImage(p, w)
|
|
8622
|
+
}, null, 10, ld)
|
|
8616
8623
|
]),
|
|
8617
8624
|
_: 2
|
|
8618
8625
|
}, 1032, ["class", "value"]),
|
|
8619
|
-
D("div",
|
|
8626
|
+
D("div", cd, [
|
|
8620
8627
|
a.imageTextEditState[w] ? (F(), $(s, {
|
|
8621
8628
|
key: 0,
|
|
8622
8629
|
label: "文本输入",
|
|
8623
8630
|
modelValue: p.filelog_full_name,
|
|
8624
8631
|
"onUpdate:modelValue": (m) => p.filelog_full_name = m
|
|
8625
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (F(), W("p",
|
|
8626
|
-
|
|
8632
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (F(), W("p", ud, z(p.filelog_full_name), 1)),
|
|
8633
|
+
b(_, {
|
|
8627
8634
|
type: "ElIconEdit",
|
|
8628
8635
|
onClick: (m) => o.handleClickEditImageText(w)
|
|
8629
8636
|
}, null, 8, ["onClick"])
|
|
8630
8637
|
])
|
|
8631
8638
|
]))), 128))
|
|
8632
8639
|
]),
|
|
8633
|
-
|
|
8640
|
+
b(g, {
|
|
8634
8641
|
background: "",
|
|
8635
8642
|
onSizeChange: o.handleSizeChange,
|
|
8636
8643
|
onCurrentChange: o.handleCurrentChange,
|
|
@@ -8642,19 +8649,19 @@ function __(e, t, n, r, a, o) {
|
|
|
8642
8649
|
])
|
|
8643
8650
|
])
|
|
8644
8651
|
]),
|
|
8645
|
-
D("div",
|
|
8646
|
-
|
|
8647
|
-
default:
|
|
8652
|
+
D("div", fd, [
|
|
8653
|
+
b(i, { onClick: o.handleClose }, {
|
|
8654
|
+
default: C(() => [...t[5] || (t[5] = [
|
|
8648
8655
|
V("取 消", -1)
|
|
8649
8656
|
])]),
|
|
8650
8657
|
_: 1
|
|
8651
8658
|
}, 8, ["onClick"]),
|
|
8652
|
-
|
|
8659
|
+
b(i, {
|
|
8653
8660
|
type: "primary",
|
|
8654
8661
|
onClick: o.handleConfirm,
|
|
8655
8662
|
autoLoading: ""
|
|
8656
8663
|
}, {
|
|
8657
|
-
default:
|
|
8664
|
+
default: C(() => [...t[6] || (t[6] = [
|
|
8658
8665
|
V("确 定", -1)
|
|
8659
8666
|
])]),
|
|
8660
8667
|
_: 1
|
|
@@ -8664,16 +8671,16 @@ function __(e, t, n, r, a, o) {
|
|
|
8664
8671
|
[T, a.isLoading]
|
|
8665
8672
|
]);
|
|
8666
8673
|
}
|
|
8667
|
-
const
|
|
8674
|
+
const _d = /* @__PURE__ */ ge(ed, [["render", dd]]), md = {
|
|
8668
8675
|
name: "SdkManageImage",
|
|
8669
8676
|
emits: ["update:modelValue", "update:initValue"],
|
|
8670
8677
|
props: {
|
|
8671
8678
|
modelValue: {
|
|
8672
|
-
type: [String, Array],
|
|
8679
|
+
type: [String, Array, Number],
|
|
8673
8680
|
default: ""
|
|
8674
8681
|
},
|
|
8675
8682
|
initValue: {
|
|
8676
|
-
type: [String, Array],
|
|
8683
|
+
type: [String, Array, Number],
|
|
8677
8684
|
default: ""
|
|
8678
8685
|
},
|
|
8679
8686
|
showBig: {
|
|
@@ -8714,43 +8721,51 @@ const d_ = /* @__PURE__ */ ge(e_, [["render", __]]), m_ = {
|
|
|
8714
8721
|
methods: {
|
|
8715
8722
|
handleDiaImage(e) {
|
|
8716
8723
|
this.$cvDialogRender(
|
|
8717
|
-
|
|
8724
|
+
_d,
|
|
8718
8725
|
{ title: "选择图片", width: "1100px" },
|
|
8719
|
-
{},
|
|
8726
|
+
{ limit: this.multiple ? this.limit : 1, initData: this.localValue },
|
|
8720
8727
|
{
|
|
8721
8728
|
handleCallback: (t) => {
|
|
8722
|
-
|
|
8723
|
-
|
|
8729
|
+
if (this.multiple) {
|
|
8730
|
+
let n = [], r = [];
|
|
8731
|
+
for (let a in t) {
|
|
8732
|
+
let o = t[a];
|
|
8733
|
+
n.push(o.filelog_id), r.push(o.cdn_full_path), this.localValue = n.join(","), this.localInitVal = r;
|
|
8734
|
+
}
|
|
8735
|
+
} else {
|
|
8736
|
+
let n = t[0];
|
|
8737
|
+
this.localValue = n.filelog_id, this.localInitVal = n.cdn_full_path;
|
|
8738
|
+
}
|
|
8724
8739
|
}
|
|
8725
8740
|
}
|
|
8726
8741
|
).show();
|
|
8727
8742
|
}
|
|
8728
8743
|
}
|
|
8729
|
-
},
|
|
8730
|
-
function
|
|
8744
|
+
}, hd = { style: { display: "flex", "flex-direction": "column", gap: "10px" } };
|
|
8745
|
+
function gd(e, t, n, r, a, o) {
|
|
8731
8746
|
const s = L("cv-btn-base"), l = L("cv-upload-image");
|
|
8732
|
-
return F(), W("view",
|
|
8733
|
-
|
|
8747
|
+
return F(), W("view", hd, [
|
|
8748
|
+
b(s, {
|
|
8734
8749
|
onClick: o.handleDiaImage,
|
|
8735
8750
|
style: { width: "150px" }
|
|
8736
8751
|
}, {
|
|
8737
|
-
default:
|
|
8752
|
+
default: C(() => [...t[2] || (t[2] = [
|
|
8738
8753
|
V("选择图片", -1)
|
|
8739
8754
|
])]),
|
|
8740
8755
|
_: 1
|
|
8741
8756
|
}, 8, ["onClick"]),
|
|
8742
|
-
|
|
8743
|
-
modelValue: a.localValue,
|
|
8744
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.localValue = i),
|
|
8757
|
+
b(l, {
|
|
8745
8758
|
showBig: n.showBig,
|
|
8746
8759
|
multiple: n.multiple,
|
|
8747
8760
|
limit: n.limit,
|
|
8761
|
+
modelValue: a.localValue,
|
|
8762
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.localValue = i),
|
|
8748
8763
|
initValue: a.localInitVal,
|
|
8749
8764
|
"onUpdate:initValue": t[1] || (t[1] = (i) => a.localInitVal = i)
|
|
8750
|
-
}, null, 8, ["
|
|
8765
|
+
}, null, 8, ["showBig", "multiple", "limit", "modelValue", "initValue"])
|
|
8751
8766
|
]);
|
|
8752
8767
|
}
|
|
8753
|
-
const
|
|
8768
|
+
const pd = /* @__PURE__ */ ge(md, [["render", gd]]), Ed = {
|
|
8754
8769
|
emits: ["handleCallback", "close"],
|
|
8755
8770
|
props: {
|
|
8756
8771
|
// 选一个就关闭
|
|
@@ -8818,26 +8833,26 @@ const p_ = /* @__PURE__ */ ge(m_, [["render", g_]]), E_ = {
|
|
|
8818
8833
|
this.$emit("close");
|
|
8819
8834
|
}
|
|
8820
8835
|
}
|
|
8821
|
-
},
|
|
8836
|
+
}, Sd = {
|
|
8822
8837
|
"element-loading-text": "加载中",
|
|
8823
8838
|
"element-loading-spinner": "el-icon-loading",
|
|
8824
8839
|
class: "cloud-dialog-choice-wrap"
|
|
8825
|
-
},
|
|
8826
|
-
function
|
|
8827
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"),
|
|
8828
|
-
return Rt((F(), W("div",
|
|
8829
|
-
D("div",
|
|
8830
|
-
D("section",
|
|
8831
|
-
D("section",
|
|
8840
|
+
}, bd = { style: { width: "100%", height: "500px" } }, vd = { class: "cloud-dia-choice-box" }, yd = { class: "cloud-dia-choice-left" }, Td = { class: "cloud-dia-choice-right" }, Ad = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
8841
|
+
function Nd(e, t, n, r, a, o) {
|
|
8842
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"), _ = L("cvTbColumnCheck"), g = L("cvTbColumnText"), T = L("cvTbColumnImg"), p = L("cv-btn-text"), w = L("cvTbColumnOpt"), m = L("cvTableBase"), E = na("loading");
|
|
8843
|
+
return Rt((F(), W("div", Sd, [
|
|
8844
|
+
D("div", bd, [
|
|
8845
|
+
D("section", vd, [
|
|
8846
|
+
D("section", yd, [
|
|
8832
8847
|
t[4] || (t[4] = D("div", { class: "cloud-dia-left-title" }, "分类", -1)),
|
|
8833
|
-
|
|
8848
|
+
b(s, {
|
|
8834
8849
|
class: "cloud-dia-left-filter",
|
|
8835
8850
|
modelValue: a.leftFilterText,
|
|
8836
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
8851
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => a.leftFilterText = S),
|
|
8837
8852
|
placeholder: "请搜索",
|
|
8838
8853
|
clearable: ""
|
|
8839
8854
|
}, null, 8, ["modelValue"]),
|
|
8840
|
-
|
|
8855
|
+
b(l, {
|
|
8841
8856
|
ref: "refDiaSelectLeft",
|
|
8842
8857
|
class: "cloud-dia-left-tree",
|
|
8843
8858
|
data: a.leftTreeList,
|
|
@@ -8847,40 +8862,40 @@ function C_(e, t, n, r, a, o) {
|
|
|
8847
8862
|
onNodeClick: o.leftClickNode
|
|
8848
8863
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
8849
8864
|
]),
|
|
8850
|
-
D("section",
|
|
8851
|
-
|
|
8865
|
+
D("section", Td, [
|
|
8866
|
+
b(u, {
|
|
8852
8867
|
ref: "refFormBase",
|
|
8853
8868
|
rules: a.rightSoRules,
|
|
8854
8869
|
model: a.rightSoData
|
|
8855
8870
|
}, {
|
|
8856
|
-
default:
|
|
8857
|
-
|
|
8858
|
-
default:
|
|
8859
|
-
|
|
8871
|
+
default: C(() => [
|
|
8872
|
+
b(c, { label: "商品搜索" }, {
|
|
8873
|
+
default: C(() => [
|
|
8874
|
+
b(i, {
|
|
8860
8875
|
modelValue: a.rightSoData.key_goods_name,
|
|
8861
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
8876
|
+
"onUpdate:modelValue": t[1] || (t[1] = (S) => a.rightSoData.key_goods_name = S),
|
|
8862
8877
|
placeholder: "请输入商品名称,关键字"
|
|
8863
8878
|
}, null, 8, ["modelValue"])
|
|
8864
8879
|
]),
|
|
8865
8880
|
_: 1
|
|
8866
8881
|
}),
|
|
8867
|
-
|
|
8868
|
-
default:
|
|
8869
|
-
|
|
8882
|
+
b(c, null, {
|
|
8883
|
+
default: C(() => [
|
|
8884
|
+
b(f, {
|
|
8870
8885
|
icon: "ElIconSearch",
|
|
8871
8886
|
type: "primary",
|
|
8872
|
-
onClick: t[2] || (t[2] = (
|
|
8887
|
+
onClick: t[2] || (t[2] = (S) => e.$refs.refDiaSelectTb.searchSubmit(a.rightSoData))
|
|
8873
8888
|
}, {
|
|
8874
|
-
default:
|
|
8889
|
+
default: C(() => [...t[5] || (t[5] = [
|
|
8875
8890
|
V(" 搜索 ", -1)
|
|
8876
8891
|
])]),
|
|
8877
8892
|
_: 1
|
|
8878
8893
|
}),
|
|
8879
|
-
|
|
8894
|
+
b(f, {
|
|
8880
8895
|
icon: "el-icon-refresh-left",
|
|
8881
|
-
onClick: t[3] || (t[3] = (
|
|
8896
|
+
onClick: t[3] || (t[3] = (S) => (a.rightSoData = {}, e.$refs.refDiaSelectTb.searchSubmit()))
|
|
8882
8897
|
}, {
|
|
8883
|
-
default:
|
|
8898
|
+
default: C(() => [...t[6] || (t[6] = [
|
|
8884
8899
|
V(" 重置 ", -1)
|
|
8885
8900
|
])]),
|
|
8886
8901
|
_: 1
|
|
@@ -8891,47 +8906,47 @@ function C_(e, t, n, r, a, o) {
|
|
|
8891
8906
|
]),
|
|
8892
8907
|
_: 1
|
|
8893
8908
|
}, 8, ["rules", "model"]),
|
|
8894
|
-
|
|
8909
|
+
b(m, {
|
|
8895
8910
|
ref: "refDiaSelectTb",
|
|
8896
8911
|
tableConfig: a.tableConfig,
|
|
8897
8912
|
tableRefresh: a.tableRefresh,
|
|
8898
8913
|
height: "390"
|
|
8899
8914
|
}, {
|
|
8900
|
-
default:
|
|
8901
|
-
|
|
8902
|
-
|
|
8915
|
+
default: C(() => [
|
|
8916
|
+
b(_, { label: "选择" }),
|
|
8917
|
+
b(g, {
|
|
8903
8918
|
label: "商品分类",
|
|
8904
8919
|
prop: "cat_name"
|
|
8905
8920
|
}),
|
|
8906
|
-
|
|
8921
|
+
b(T, {
|
|
8907
8922
|
label: "封面图",
|
|
8908
8923
|
prop: "goods_thumb_cdn"
|
|
8909
8924
|
}),
|
|
8910
|
-
|
|
8925
|
+
b(g, {
|
|
8911
8926
|
label: "商品ID",
|
|
8912
8927
|
prop: "goods_id"
|
|
8913
8928
|
}),
|
|
8914
|
-
|
|
8929
|
+
b(g, {
|
|
8915
8930
|
label: "商品名称",
|
|
8916
8931
|
prop: "goods_name"
|
|
8917
8932
|
}),
|
|
8918
|
-
|
|
8933
|
+
b(g, {
|
|
8919
8934
|
label: "商品售价",
|
|
8920
8935
|
prop: "goods_price_market"
|
|
8921
8936
|
}),
|
|
8922
|
-
|
|
8937
|
+
b(g, {
|
|
8923
8938
|
label: "扩展ID",
|
|
8924
8939
|
prop: "goods_expand_id"
|
|
8925
8940
|
}),
|
|
8926
|
-
|
|
8941
|
+
b(w, {
|
|
8927
8942
|
label: "操作",
|
|
8928
8943
|
width: "100"
|
|
8929
8944
|
}, {
|
|
8930
|
-
default:
|
|
8931
|
-
|
|
8932
|
-
onClick: (k) => o.handleSelect(
|
|
8945
|
+
default: C(({ row: S, $index: y }) => [
|
|
8946
|
+
b(p, {
|
|
8947
|
+
onClick: (k) => o.handleSelect(S)
|
|
8933
8948
|
}, {
|
|
8934
|
-
default:
|
|
8949
|
+
default: C(() => [...t[7] || (t[7] = [
|
|
8935
8950
|
V("选择", -1)
|
|
8936
8951
|
])]),
|
|
8937
8952
|
_: 1
|
|
@@ -8945,19 +8960,19 @@ function C_(e, t, n, r, a, o) {
|
|
|
8945
8960
|
])
|
|
8946
8961
|
])
|
|
8947
8962
|
]),
|
|
8948
|
-
D("div",
|
|
8949
|
-
|
|
8950
|
-
default:
|
|
8963
|
+
D("div", Ad, [
|
|
8964
|
+
b(f, { onClick: o.handleClose }, {
|
|
8965
|
+
default: C(() => [...t[8] || (t[8] = [
|
|
8951
8966
|
V("取 消", -1)
|
|
8952
8967
|
])]),
|
|
8953
8968
|
_: 1
|
|
8954
8969
|
}, 8, ["onClick"]),
|
|
8955
|
-
|
|
8970
|
+
b(f, {
|
|
8956
8971
|
type: "primary",
|
|
8957
8972
|
onClick: o.handleConfirm,
|
|
8958
8973
|
autoLoading: ""
|
|
8959
8974
|
}, {
|
|
8960
|
-
default:
|
|
8975
|
+
default: C(() => [...t[9] || (t[9] = [
|
|
8961
8976
|
V("确 定", -1)
|
|
8962
8977
|
])]),
|
|
8963
8978
|
_: 1
|
|
@@ -8967,7 +8982,7 @@ function C_(e, t, n, r, a, o) {
|
|
|
8967
8982
|
[E, a.isLoading]
|
|
8968
8983
|
]);
|
|
8969
8984
|
}
|
|
8970
|
-
const
|
|
8985
|
+
const zd = /* @__PURE__ */ ge(Ed, [["render", Nd]]), Cd = {
|
|
8971
8986
|
emits: ["handleCallback", "close"],
|
|
8972
8987
|
props: {
|
|
8973
8988
|
// 选一个就关闭
|
|
@@ -9035,26 +9050,26 @@ const z_ = /* @__PURE__ */ ge(E_, [["render", C_]]), N_ = {
|
|
|
9035
9050
|
this.$emit("close");
|
|
9036
9051
|
}
|
|
9037
9052
|
}
|
|
9038
|
-
},
|
|
9053
|
+
}, Od = {
|
|
9039
9054
|
"element-loading-text": "加载中",
|
|
9040
9055
|
"element-loading-spinner": "el-icon-loading",
|
|
9041
9056
|
class: "cloud-dialog-choice-wrap"
|
|
9042
|
-
},
|
|
9043
|
-
function
|
|
9044
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"),
|
|
9045
|
-
return Rt((F(), W("div",
|
|
9046
|
-
D("div",
|
|
9047
|
-
D("section",
|
|
9048
|
-
D("section",
|
|
9057
|
+
}, Id = { style: { width: "100%", height: "500px" } }, Ld = { class: "cloud-dia-choice-box" }, wd = { class: "cloud-dia-choice-left" }, Dd = { class: "cloud-dia-choice-right" }, kd = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
9058
|
+
function Rd(e, t, n, r, a, o) {
|
|
9059
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"), _ = L("cvTbColumnCheck"), g = L("cvTbColumnText"), T = L("cvTbColumnImg"), p = L("cv-btn-text"), w = L("cvTbColumnOpt"), m = L("cvTableBase"), E = na("loading");
|
|
9060
|
+
return Rt((F(), W("div", Od, [
|
|
9061
|
+
D("div", Id, [
|
|
9062
|
+
D("section", Ld, [
|
|
9063
|
+
D("section", wd, [
|
|
9049
9064
|
t[4] || (t[4] = D("div", { class: "cloud-dia-left-title" }, "部门", -1)),
|
|
9050
|
-
|
|
9065
|
+
b(s, {
|
|
9051
9066
|
class: "cloud-dia-left-filter",
|
|
9052
9067
|
modelValue: a.leftFilterText,
|
|
9053
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
9068
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => a.leftFilterText = S),
|
|
9054
9069
|
placeholder: "请搜索",
|
|
9055
9070
|
clearable: ""
|
|
9056
9071
|
}, null, 8, ["modelValue"]),
|
|
9057
|
-
|
|
9072
|
+
b(l, {
|
|
9058
9073
|
ref: "refDiaSelectLeft",
|
|
9059
9074
|
class: "cloud-dia-left-tree",
|
|
9060
9075
|
data: a.leftTreeList,
|
|
@@ -9064,39 +9079,39 @@ function R_(e, t, n, r, a, o) {
|
|
|
9064
9079
|
onNodeClick: o.leftClickNode
|
|
9065
9080
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
9066
9081
|
]),
|
|
9067
|
-
D("section",
|
|
9068
|
-
|
|
9082
|
+
D("section", Dd, [
|
|
9083
|
+
b(u, {
|
|
9069
9084
|
ref: "refFormBase",
|
|
9070
9085
|
rules: a.rightSoRules,
|
|
9071
9086
|
model: a.rightSoData
|
|
9072
9087
|
}, {
|
|
9073
|
-
default:
|
|
9074
|
-
|
|
9075
|
-
default:
|
|
9076
|
-
|
|
9088
|
+
default: C(() => [
|
|
9089
|
+
b(c, { label: "名称" }, {
|
|
9090
|
+
default: C(() => [
|
|
9091
|
+
b(i, {
|
|
9077
9092
|
modelValue: a.rightSoData.key_staff_name,
|
|
9078
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
9093
|
+
"onUpdate:modelValue": t[1] || (t[1] = (S) => a.rightSoData.key_staff_name = S)
|
|
9079
9094
|
}, null, 8, ["modelValue"])
|
|
9080
9095
|
]),
|
|
9081
9096
|
_: 1
|
|
9082
9097
|
}),
|
|
9083
|
-
|
|
9084
|
-
default:
|
|
9085
|
-
|
|
9098
|
+
b(c, null, {
|
|
9099
|
+
default: C(() => [
|
|
9100
|
+
b(f, {
|
|
9086
9101
|
icon: "ElIconSearch",
|
|
9087
9102
|
type: "primary",
|
|
9088
|
-
onClick: t[2] || (t[2] = (
|
|
9103
|
+
onClick: t[2] || (t[2] = (S) => e.$refs.refDiaSelectTb.searchSubmit(a.rightSoData))
|
|
9089
9104
|
}, {
|
|
9090
|
-
default:
|
|
9105
|
+
default: C(() => [...t[5] || (t[5] = [
|
|
9091
9106
|
V(" 搜索 ", -1)
|
|
9092
9107
|
])]),
|
|
9093
9108
|
_: 1
|
|
9094
9109
|
}),
|
|
9095
|
-
|
|
9110
|
+
b(f, {
|
|
9096
9111
|
icon: "el-icon-refresh-left",
|
|
9097
|
-
onClick: t[3] || (t[3] = (
|
|
9112
|
+
onClick: t[3] || (t[3] = (S) => (a.rightSoData = {}, e.$refs.refDiaSelectTb.searchSubmit()))
|
|
9098
9113
|
}, {
|
|
9099
|
-
default:
|
|
9114
|
+
default: C(() => [...t[6] || (t[6] = [
|
|
9100
9115
|
V(" 重置 ", -1)
|
|
9101
9116
|
])]),
|
|
9102
9117
|
_: 1
|
|
@@ -9107,49 +9122,49 @@ function R_(e, t, n, r, a, o) {
|
|
|
9107
9122
|
]),
|
|
9108
9123
|
_: 1
|
|
9109
9124
|
}, 8, ["rules", "model"]),
|
|
9110
|
-
|
|
9125
|
+
b(m, {
|
|
9111
9126
|
ref: "refDiaSelectTb",
|
|
9112
9127
|
tableConfig: a.tableConfig,
|
|
9113
9128
|
tableRefresh: a.tableRefresh,
|
|
9114
9129
|
height: "390"
|
|
9115
9130
|
}, {
|
|
9116
|
-
default:
|
|
9117
|
-
|
|
9118
|
-
|
|
9131
|
+
default: C(() => [
|
|
9132
|
+
b(_, { label: "选择" }),
|
|
9133
|
+
b(g, {
|
|
9119
9134
|
label: "ID",
|
|
9120
9135
|
prop: "staff_id",
|
|
9121
9136
|
width: "80"
|
|
9122
9137
|
}),
|
|
9123
|
-
|
|
9138
|
+
b(g, {
|
|
9124
9139
|
label: "名称",
|
|
9125
9140
|
prop: "staff_name"
|
|
9126
9141
|
}),
|
|
9127
|
-
|
|
9142
|
+
b(T, {
|
|
9128
9143
|
label: "头像",
|
|
9129
9144
|
prop: "staff_avatar_cdn"
|
|
9130
9145
|
}),
|
|
9131
|
-
|
|
9146
|
+
b(g, {
|
|
9132
9147
|
label: "部门",
|
|
9133
9148
|
prop: "dept_name"
|
|
9134
9149
|
}),
|
|
9135
|
-
|
|
9150
|
+
b(g, {
|
|
9136
9151
|
label: "角色",
|
|
9137
9152
|
prop: "role_name"
|
|
9138
9153
|
}),
|
|
9139
|
-
|
|
9154
|
+
b(g, {
|
|
9140
9155
|
label: "性别",
|
|
9141
9156
|
prop: "staff_sex",
|
|
9142
9157
|
width: "60"
|
|
9143
9158
|
}),
|
|
9144
|
-
|
|
9159
|
+
b(w, {
|
|
9145
9160
|
label: "操作",
|
|
9146
9161
|
width: "100"
|
|
9147
9162
|
}, {
|
|
9148
|
-
default:
|
|
9149
|
-
|
|
9150
|
-
onClick: (k) => o.handleSelect(
|
|
9163
|
+
default: C(({ row: S, $index: y }) => [
|
|
9164
|
+
b(p, {
|
|
9165
|
+
onClick: (k) => o.handleSelect(S)
|
|
9151
9166
|
}, {
|
|
9152
|
-
default:
|
|
9167
|
+
default: C(() => [...t[7] || (t[7] = [
|
|
9153
9168
|
V("选择", -1)
|
|
9154
9169
|
])]),
|
|
9155
9170
|
_: 1
|
|
@@ -9163,19 +9178,19 @@ function R_(e, t, n, r, a, o) {
|
|
|
9163
9178
|
])
|
|
9164
9179
|
])
|
|
9165
9180
|
]),
|
|
9166
|
-
D("div",
|
|
9167
|
-
|
|
9168
|
-
default:
|
|
9181
|
+
D("div", kd, [
|
|
9182
|
+
b(f, { onClick: o.handleClose }, {
|
|
9183
|
+
default: C(() => [...t[8] || (t[8] = [
|
|
9169
9184
|
V("取 消", -1)
|
|
9170
9185
|
])]),
|
|
9171
9186
|
_: 1
|
|
9172
9187
|
}, 8, ["onClick"]),
|
|
9173
|
-
|
|
9188
|
+
b(f, {
|
|
9174
9189
|
type: "primary",
|
|
9175
9190
|
onClick: o.handleConfirm,
|
|
9176
9191
|
autoLoading: ""
|
|
9177
9192
|
}, {
|
|
9178
|
-
default:
|
|
9193
|
+
default: C(() => [...t[9] || (t[9] = [
|
|
9179
9194
|
V("确 定", -1)
|
|
9180
9195
|
])]),
|
|
9181
9196
|
_: 1
|
|
@@ -9185,7 +9200,7 @@ function R_(e, t, n, r, a, o) {
|
|
|
9185
9200
|
[E, a.isLoading]
|
|
9186
9201
|
]);
|
|
9187
9202
|
}
|
|
9188
|
-
const
|
|
9203
|
+
const Zd = /* @__PURE__ */ ge(Cd, [["render", Rd]]);
|
|
9189
9204
|
(function() {
|
|
9190
9205
|
if (typeof EventTarget < "u") {
|
|
9191
9206
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -9194,7 +9209,7 @@ const Z_ = /* @__PURE__ */ ge(N_, [["render", R_]]);
|
|
|
9194
9209
|
};
|
|
9195
9210
|
}
|
|
9196
9211
|
})();
|
|
9197
|
-
var
|
|
9212
|
+
var Pd = {
|
|
9198
9213
|
methods: {
|
|
9199
9214
|
// 打开协议
|
|
9200
9215
|
jumpsXieyi(e) {
|
|
@@ -9247,25 +9262,25 @@ var P_ = {
|
|
|
9247
9262
|
}
|
|
9248
9263
|
}
|
|
9249
9264
|
};
|
|
9250
|
-
function
|
|
9251
|
-
e.mixin(
|
|
9265
|
+
function Fd(e) {
|
|
9266
|
+
e.mixin(Pd);
|
|
9252
9267
|
}
|
|
9253
|
-
function
|
|
9268
|
+
function Cr(e, t, n) {
|
|
9254
9269
|
const r = t.value;
|
|
9255
9270
|
if (r)
|
|
9256
9271
|
Mo(r) || !1 || e.parentNode && e.parentNode.removeChild(e);
|
|
9257
9272
|
else
|
|
9258
9273
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
9259
9274
|
}
|
|
9260
|
-
function
|
|
9275
|
+
function Md(e, t, n) {
|
|
9261
9276
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
9262
|
-
inserted:
|
|
9277
|
+
inserted: Cr
|
|
9263
9278
|
}) : e.directive("auth", {
|
|
9264
|
-
mounted:
|
|
9279
|
+
mounted: Cr
|
|
9265
9280
|
}), t.$_auth = Mo;
|
|
9266
9281
|
}
|
|
9267
9282
|
/*! Element Plus v2.11.5 */
|
|
9268
|
-
var
|
|
9283
|
+
var Ud = {
|
|
9269
9284
|
name: "zh-cn",
|
|
9270
9285
|
el: {
|
|
9271
9286
|
breadcrumb: {
|
|
@@ -9447,17 +9462,17 @@ var U_ = {
|
|
|
9447
9462
|
}
|
|
9448
9463
|
}
|
|
9449
9464
|
};
|
|
9450
|
-
function
|
|
9465
|
+
function xd(e) {
|
|
9451
9466
|
e.use(zo, {
|
|
9452
9467
|
// size: 'default',
|
|
9453
|
-
locale:
|
|
9468
|
+
locale: Ud
|
|
9454
9469
|
});
|
|
9455
9470
|
for (const [t, n] of Object.entries(ts))
|
|
9456
9471
|
e.component("ElIcon" + t, n);
|
|
9457
9472
|
}
|
|
9458
|
-
const
|
|
9459
|
-
async function
|
|
9460
|
-
const t = await I.idbGetItem(
|
|
9473
|
+
const Vd = "__syCacheSdkConfig__";
|
|
9474
|
+
async function Bd(e) {
|
|
9475
|
+
const t = await I.idbGetItem(Vd), n = {
|
|
9461
9476
|
// upAction: lastConfig.VITE_SY_API_URL + 'sdks.sdk_file/common/upload_image',
|
|
9462
9477
|
signatureFn: ue.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),
|
|
9463
9478
|
upHeaders: {
|
|
@@ -9525,26 +9540,26 @@ async function B_(e) {
|
|
|
9525
9540
|
for (const [r, a] of Object.entries(as))
|
|
9526
9541
|
e.component("cvSvg" + r, a);
|
|
9527
9542
|
}
|
|
9528
|
-
async function
|
|
9543
|
+
async function e_(e, t) {
|
|
9529
9544
|
os(t), Po(e), Ft().init(), Ge().init(), await an().init(), await Te().init();
|
|
9530
9545
|
}
|
|
9531
|
-
async function
|
|
9546
|
+
async function t_(e, t, n, r, a = "", o = null) {
|
|
9532
9547
|
rn().init(r), on().init(n);
|
|
9533
9548
|
let s = e.config.globalProperties;
|
|
9534
9549
|
s.$onLaunched = new Promise((i) => {
|
|
9535
9550
|
s.$isResolve = i;
|
|
9536
|
-
}), s.$request = ue, s.$cache = I,
|
|
9551
|
+
}), s.$request = ue, s.$cache = I, xd(e), await Bd(e), Md(e, s), e.mixin(Lu()), e.component("SdkFormEdit", Zf), e.component("SdkManageImage", pd), Fd(e), await Gd(t, r, a), e.use(wo);
|
|
9537
9552
|
let l = Ft().SA_LANGUAGE_GET();
|
|
9538
9553
|
zc(l, o), window.$t = Xe.t;
|
|
9539
9554
|
}
|
|
9540
|
-
async function
|
|
9541
|
-
const r =
|
|
9555
|
+
async function Gd(e, t, n) {
|
|
9556
|
+
const r = Ct(), a = Te(), o = rn(), s = on();
|
|
9542
9557
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
9543
9558
|
let l = Jt().syProductSign || "";
|
|
9544
9559
|
s.SA_PERMS_ROUTER_ADD(e, l), o.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
9545
9560
|
let i = !1, c = !1, f = !1;
|
|
9546
|
-
e.beforeEach((u,
|
|
9547
|
-
const T = u.path || "", p =
|
|
9561
|
+
e.beforeEach((u, _, g) => {
|
|
9562
|
+
const T = u.path || "", p = _.path, w = u.query || {};
|
|
9548
9563
|
let m = a.accountIsLogin;
|
|
9549
9564
|
if (pe.__POWERED_BY_QIANKUN__ && (m = a.SA_ACCOUNT_IS_LOGGED()), w.token, m) {
|
|
9550
9565
|
if (i || (o.SA_MENU_PARSE(), i = !0), p == "/" && T == "/none") {
|
|
@@ -9561,7 +9576,7 @@ async function G_(e, t, n) {
|
|
|
9561
9576
|
g();
|
|
9562
9577
|
}
|
|
9563
9578
|
}), e.isReady().then(async () => {
|
|
9564
|
-
}), e.afterEach(function(u,
|
|
9579
|
+
}), e.afterEach(function(u, _) {
|
|
9565
9580
|
var g;
|
|
9566
9581
|
if ((g = u == null ? void 0 : u.meta) != null && g.title && !pe.__POWERED_BY_QIANKUN__) {
|
|
9567
9582
|
let T = "管理系统", p = u.meta.title;
|
|
@@ -9569,7 +9584,7 @@ async function G_(e, t, n) {
|
|
|
9569
9584
|
}
|
|
9570
9585
|
});
|
|
9571
9586
|
}
|
|
9572
|
-
async function
|
|
9587
|
+
async function n_(e, t, n) {
|
|
9573
9588
|
pe.__POWERED_BY_QIANKUN__ ? gi(e, t, n) : t();
|
|
9574
9589
|
}
|
|
9575
9590
|
export {
|
|
@@ -9581,21 +9596,21 @@ export {
|
|
|
9581
9596
|
Te as c,
|
|
9582
9597
|
an as d,
|
|
9583
9598
|
Jt as e,
|
|
9584
|
-
|
|
9599
|
+
Qd as f,
|
|
9585
9600
|
Uu as g,
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9601
|
+
Jd as h,
|
|
9602
|
+
zd as i,
|
|
9603
|
+
Zd as j,
|
|
9604
|
+
_d as k,
|
|
9605
|
+
Ct as l,
|
|
9591
9606
|
Ro as m,
|
|
9592
9607
|
rn as n,
|
|
9593
9608
|
on as o,
|
|
9594
9609
|
Po as p,
|
|
9595
9610
|
pe as q,
|
|
9596
|
-
|
|
9611
|
+
e_ as r,
|
|
9597
9612
|
os as s,
|
|
9598
|
-
|
|
9613
|
+
t_ as t,
|
|
9599
9614
|
Ft as u,
|
|
9600
|
-
|
|
9615
|
+
n_ as v
|
|
9601
9616
|
};
|