xto-fronted 0.4.82 → 0.4.84
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/{index-Bh-uiX8x.js → index-BZaqYObA.js} +1 -1
- package/dist/{index-CxZil1E5.js → index-CbwOysFI.js} +1 -1
- package/dist/{index-CAP6PwZY.js → index-Jynxhhda.js} +1 -1
- package/dist/{index-DFzwy0q2.js → index-XgzSS-fV.js} +1 -1
- package/dist/{index-D57cM0yg.js → index-_iZKFlCa.js} +1397 -1350
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Layout/TopMenu.vue +37 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as P, computed as j, watch as
|
|
1
|
+
import { ref as P, computed as j, watch as Xe, defineComponent as Ae, resolveComponent as Bt, openBlock as w, createBlock as ce, unref as y, withCtx as X, createElementBlock as N, Fragment as he, renderList as ge, createElementVNode as s, toDisplayString as q, createCommentVNode as ie, normalizeClass as _e, withDirectives as at, vShow as Jt, createVNode as R, createTextVNode as De, onMounted as _t, onUnmounted as wt, vModelText as yt, Transition as Ve, withModifiers as it, normalizeStyle as Ye, reactive as kt, createStaticVNode as st, withKeys as Zt } from "vue";
|
|
2
2
|
import { defineStore as lt } from "pinia";
|
|
3
|
-
import { useRoute as qe, useRouter as Pe, createRouter as bt, createWebHistory as
|
|
4
|
-
import { SubMenu as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Drawer as
|
|
7
|
-
import { Form as ts, FormItem as mt, Input as
|
|
3
|
+
import { useRoute as qe, useRouter as Pe, createRouter as bt, createWebHistory as xt } from "vue-router";
|
|
4
|
+
import { SubMenu as gt, MenuItem as He, Menu as Ct, Tabs as Qt, TabPane as es } from "@xto/navigation";
|
|
5
|
+
import { Icon as Z, Button as je } from "@xto/base";
|
|
6
|
+
import { Drawer as Nt, Message as Le } from "@xto/feedback";
|
|
7
|
+
import { Form as ts, FormItem as mt, Input as Tt, Checkbox as ss } from "@xto/form";
|
|
8
8
|
import ns from "axios";
|
|
9
9
|
const nt = P(""), ot = P(""), rt = P("");
|
|
10
10
|
function os(r) {
|
|
@@ -37,7 +37,7 @@ function rs() {
|
|
|
37
37
|
return "";
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Oa = {
|
|
41
41
|
appId: nt,
|
|
42
42
|
clientId: ot,
|
|
43
43
|
apiBaseUrl: rt
|
|
@@ -67,59 +67,59 @@ const Na = {
|
|
|
67
67
|
v.startsWith(Ke) && r.removeItem(v);
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
71
|
-
get: Ze.get,
|
|
72
|
-
set: Ze.set,
|
|
73
|
-
remove: Ze.remove,
|
|
74
|
-
clear: Ze.clear
|
|
75
|
-
}, $a = {
|
|
70
|
+
}), Qe = Rt(window.localStorage), et = Rt(window.sessionStorage), W = {
|
|
76
71
|
get: Qe.get,
|
|
77
72
|
set: Qe.set,
|
|
78
73
|
remove: Qe.remove,
|
|
79
74
|
clear: Qe.clear
|
|
75
|
+
}, Ua = {
|
|
76
|
+
get: et.get,
|
|
77
|
+
set: et.set,
|
|
78
|
+
remove: et.remove,
|
|
79
|
+
clear: et.clear
|
|
80
80
|
}, Re = lt("app", () => {
|
|
81
|
-
const r = P(
|
|
82
|
-
r.value = z,
|
|
83
|
-
},
|
|
84
|
-
f.value = z,
|
|
81
|
+
const r = P(W.get("appName") || "XTO App"), f = P(W.get("indexPath") || "/dashboard"), v = P(W.get("isDark") || !1), p = P(W.get("theme") || "light"), h = P(W.get("layout") || "sidebar"), b = P(W.get("isCollapsed") || !1), T = P(W.get("showTabs") ?? !0), g = P(W.get("showFooter") ?? !0), I = P(W.get("showBreadcrumb") ?? !0), _ = P(W.get("primaryColor") || "#409eff"), x = P([]), M = P([]), E = j(() => v.value ? "dark" : "light"), G = (z) => {
|
|
82
|
+
r.value = z, W.set("appName", z);
|
|
83
|
+
}, Q = (z) => {
|
|
84
|
+
f.value = z, W.set("indexPath", z);
|
|
85
85
|
}, O = () => {
|
|
86
86
|
v.value = !v.value, p.value = v.value ? "dark" : "light", V();
|
|
87
87
|
}, A = (z) => {
|
|
88
88
|
p.value = z, v.value = z === "dark", V();
|
|
89
89
|
}, V = () => {
|
|
90
90
|
const z = document.documentElement;
|
|
91
|
-
v.value ? z.classList.add("dark") : z.classList.remove("dark"),
|
|
91
|
+
v.value ? z.classList.add("dark") : z.classList.remove("dark"), W.set("isDark", v.value), W.set("theme", p.value);
|
|
92
92
|
}, S = () => {
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
h.value = z,
|
|
96
|
-
},
|
|
97
|
-
T.value = !T.value,
|
|
93
|
+
b.value = !b.value, W.set("isCollapsed", b.value);
|
|
94
|
+
}, H = (z) => {
|
|
95
|
+
h.value = z, W.set("layout", z);
|
|
96
|
+
}, Y = () => {
|
|
97
|
+
T.value = !T.value, W.set("showTabs", T.value);
|
|
98
98
|
}, oe = () => {
|
|
99
|
-
g.value = !g.value,
|
|
99
|
+
g.value = !g.value, W.set("showFooter", g.value);
|
|
100
100
|
}, U = () => {
|
|
101
|
-
I.value = !I.value,
|
|
101
|
+
I.value = !I.value, W.set("showBreadcrumb", I.value);
|
|
102
102
|
}, L = (z) => {
|
|
103
|
-
_.value = z, document.documentElement.style.setProperty("--color-primary", z),
|
|
104
|
-
},
|
|
103
|
+
_.value = z, document.documentElement.style.setProperty("--color-primary", z), W.set("primaryColor", z);
|
|
104
|
+
}, J = (z) => {
|
|
105
105
|
x.value.includes(z) || x.value.push(z);
|
|
106
|
-
},
|
|
106
|
+
}, ee = (z) => {
|
|
107
107
|
const le = x.value.indexOf(z);
|
|
108
108
|
le > -1 && x.value.splice(le, 1);
|
|
109
109
|
}, $ = () => {
|
|
110
110
|
x.value = [];
|
|
111
111
|
}, re = (z) => {
|
|
112
112
|
M.value = z;
|
|
113
|
-
},
|
|
113
|
+
}, te = () => {
|
|
114
114
|
V(), _.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", _.value);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
116
|
+
return Xe(v, V), {
|
|
117
117
|
appName: r,
|
|
118
118
|
indexPath: f,
|
|
119
119
|
isDark: v,
|
|
120
120
|
theme: p,
|
|
121
121
|
layout: h,
|
|
122
|
-
isCollapsed:
|
|
122
|
+
isCollapsed: b,
|
|
123
123
|
showTabs: T,
|
|
124
124
|
showFooter: g,
|
|
125
125
|
showBreadcrumb: I,
|
|
@@ -127,21 +127,21 @@ const Na = {
|
|
|
127
127
|
cachedViews: x,
|
|
128
128
|
mixSubMenus: M,
|
|
129
129
|
themeClass: E,
|
|
130
|
-
setAppName:
|
|
131
|
-
setIndexPath:
|
|
130
|
+
setAppName: G,
|
|
131
|
+
setIndexPath: Q,
|
|
132
132
|
toggleTheme: O,
|
|
133
133
|
toggleCollapse: S,
|
|
134
134
|
setTheme: A,
|
|
135
|
-
setLayout:
|
|
136
|
-
toggleTabs:
|
|
135
|
+
setLayout: H,
|
|
136
|
+
toggleTabs: Y,
|
|
137
137
|
toggleFooter: oe,
|
|
138
138
|
toggleBreadcrumb: U,
|
|
139
139
|
setPrimaryColor: L,
|
|
140
|
-
addCachedView:
|
|
141
|
-
removeCachedView:
|
|
140
|
+
addCachedView: J,
|
|
141
|
+
removeCachedView: ee,
|
|
142
142
|
clearCachedViews: $,
|
|
143
143
|
setMixSubMenus: re,
|
|
144
|
-
initTheme:
|
|
144
|
+
initTheme: te
|
|
145
145
|
};
|
|
146
146
|
}), ht = "menu_list", as = {
|
|
147
147
|
menuCode: "home",
|
|
@@ -152,19 +152,19 @@ const Na = {
|
|
|
152
152
|
isDefault: !1,
|
|
153
153
|
isOut: !1
|
|
154
154
|
}, ze = lt("menu", () => {
|
|
155
|
-
const r = P(
|
|
155
|
+
const r = P(W.get(ht) || []), f = j(() => r.value.length > 0);
|
|
156
156
|
return {
|
|
157
157
|
menuList: r,
|
|
158
158
|
hasMenu: f,
|
|
159
159
|
setMenuList: (h) => {
|
|
160
|
-
r.value = [as, ...h],
|
|
160
|
+
r.value = [as, ...h], W.set(ht, r.value);
|
|
161
161
|
},
|
|
162
162
|
clearMenu: () => {
|
|
163
|
-
r.value = [],
|
|
163
|
+
r.value = [], W.remove(ht);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
}), Et = "/vite.svg", vt = "user_info", $e = lt("user", () => {
|
|
167
|
-
const r = P(
|
|
167
|
+
const r = P(W.get(vt)), f = j(() => !!r.value), v = j(() => {
|
|
168
168
|
var M;
|
|
169
169
|
return ((M = r.value) == null ? void 0 : M.userId) || "";
|
|
170
170
|
}), p = j(() => {
|
|
@@ -173,7 +173,7 @@ const Na = {
|
|
|
173
173
|
}), h = j(() => {
|
|
174
174
|
var M;
|
|
175
175
|
return ((M = r.value) == null ? void 0 : M.departmentName) || "";
|
|
176
|
-
}),
|
|
176
|
+
}), b = j(() => {
|
|
177
177
|
var M;
|
|
178
178
|
return ((M = r.value) == null ? void 0 : M.email) || "";
|
|
179
179
|
}), T = j(() => {
|
|
@@ -192,50 +192,50 @@ const Na = {
|
|
|
192
192
|
userId: v,
|
|
193
193
|
userName: p,
|
|
194
194
|
departmentName: h,
|
|
195
|
-
email:
|
|
195
|
+
email: b,
|
|
196
196
|
mobilePhone: T,
|
|
197
197
|
positionName: g,
|
|
198
198
|
avatar: I,
|
|
199
199
|
setUserInfo: (M) => {
|
|
200
|
-
r.value = M,
|
|
200
|
+
r.value = M, W.set(vt, M);
|
|
201
201
|
},
|
|
202
202
|
clearUserInfo: () => {
|
|
203
|
-
r.value = null,
|
|
203
|
+
r.value = null, W.remove(vt);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
}),
|
|
207
|
-
|
|
208
|
-
}, ls = () =>
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
}, ds = () =>
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
|
|
206
|
+
}), $t = "token", St = "token_type", Mt = "refresh_token", It = "expires_time", Lt = "refresh_time", At = "code", ut = () => W.get($t), is = (r) => {
|
|
207
|
+
W.set($t, r);
|
|
208
|
+
}, ls = () => W.get(St), cs = (r) => {
|
|
209
|
+
W.set(St, r);
|
|
210
|
+
}, Ba = () => W.get(Mt), us = (r) => {
|
|
211
|
+
W.set(Mt, r);
|
|
212
|
+
}, ds = () => W.get(It), fs = (r) => {
|
|
213
|
+
W.set(It, r);
|
|
214
|
+
}, Pa = () => W.get(Lt), ps = (r) => {
|
|
215
|
+
W.set(Lt, r);
|
|
216
|
+
}, Ra = () => W.get(At), ms = (r) => {
|
|
217
|
+
W.set(At, r);
|
|
218
218
|
}, Dt = (r) => {
|
|
219
219
|
is(r.access_token), cs(r.token_type || "Bearer"), us(r.refresh_token), fs(r.expires_time), ps(r.refresh_time), r.code && ms(r.code);
|
|
220
|
-
},
|
|
221
|
-
|
|
220
|
+
}, We = () => {
|
|
221
|
+
W.remove($t), W.remove(St), W.remove(Mt), W.remove(It), W.remove(Lt), W.remove(At);
|
|
222
222
|
}, hs = () => {
|
|
223
223
|
const r = ds();
|
|
224
224
|
return r ? Date.now() > r : !0;
|
|
225
|
-
}, zt = () => !!ut() && !hs(),
|
|
226
|
-
const r = P(ut()), f = j(() => zt()), v = P(""), p = P(""), h = P(""),
|
|
225
|
+
}, zt = () => !!ut() && !hs(), Je = lt("auth", () => {
|
|
226
|
+
const r = P(ut()), f = j(() => zt()), v = P(""), p = P(""), h = P(""), b = P("/login");
|
|
227
227
|
return {
|
|
228
228
|
token: r,
|
|
229
229
|
isLoggedIn: f,
|
|
230
230
|
baseUrl: v,
|
|
231
231
|
appId: p,
|
|
232
232
|
clientId: h,
|
|
233
|
-
loginPath:
|
|
233
|
+
loginPath: b,
|
|
234
234
|
login: (E) => {
|
|
235
235
|
r.value = E.access_token, Dt(E);
|
|
236
236
|
},
|
|
237
237
|
logout: () => {
|
|
238
|
-
r.value = null,
|
|
238
|
+
r.value = null, We();
|
|
239
239
|
},
|
|
240
240
|
setBaseUrl: (E) => {
|
|
241
241
|
v.value = E;
|
|
@@ -247,16 +247,16 @@ const Na = {
|
|
|
247
247
|
h.value = E;
|
|
248
248
|
},
|
|
249
249
|
setLoginPath: (E) => {
|
|
250
|
-
|
|
250
|
+
b.value = E;
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}), vs = { class: "menu-item__content" }, gs = { class: "menu-item__icon" }, _s = {
|
|
254
254
|
key: 1,
|
|
255
255
|
class: "menu-item__char"
|
|
256
|
-
}, ws = { class: "menu-item__text" }, ys = { class: "menu-item__content" },
|
|
256
|
+
}, ws = { class: "menu-item__text" }, ys = { class: "menu-item__content" }, ks = {
|
|
257
257
|
key: 0,
|
|
258
258
|
class: "menu-item__icon"
|
|
259
|
-
},
|
|
259
|
+
}, bs = {
|
|
260
260
|
key: 1,
|
|
261
261
|
class: "menu-item__char"
|
|
262
262
|
}, xs = { class: "menu-item__text" }, Cs = /* @__PURE__ */ Ae({
|
|
@@ -404,46 +404,46 @@ const Na = {
|
|
|
404
404
|
list: "list",
|
|
405
405
|
grid: "grid"
|
|
406
406
|
}[g] || g;
|
|
407
|
-
}, h = (g) => g ? g.charAt(0) : "",
|
|
407
|
+
}, h = (g) => g ? g.charAt(0) : "", b = (g) => v.has(g), T = j(() => f.menu.children && f.menu.children.length > 0);
|
|
408
408
|
return (g, I) => {
|
|
409
|
-
const _ =
|
|
410
|
-
return T.value ? (
|
|
409
|
+
const _ = Bt("SidebarMenuItem", !0);
|
|
410
|
+
return T.value ? (w(), ce(y(gt), {
|
|
411
411
|
key: 0,
|
|
412
412
|
index: r.menu.menuUrl
|
|
413
413
|
}, {
|
|
414
|
-
title:
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
title: X(() => [
|
|
415
|
+
s("span", vs, [
|
|
416
|
+
s("span", gs, [
|
|
417
|
+
b(p(r.menu.icon)) ? (w(), ce(y(Z), {
|
|
418
418
|
key: 0,
|
|
419
419
|
name: p(r.menu.icon),
|
|
420
420
|
size: 16
|
|
421
|
-
}, null, 8, ["name"])) : (
|
|
421
|
+
}, null, 8, ["name"])) : (w(), N("span", _s, q(h(r.menu.menuName)), 1))
|
|
422
422
|
]),
|
|
423
|
-
|
|
423
|
+
s("span", ws, q(r.menu.menuName), 1)
|
|
424
424
|
])
|
|
425
425
|
]),
|
|
426
|
-
default:
|
|
427
|
-
(
|
|
426
|
+
default: X(() => [
|
|
427
|
+
(w(!0), N(he, null, ge(r.menu.children, (x) => (w(), ce(_, {
|
|
428
428
|
key: x.menuUrl,
|
|
429
429
|
menu: x
|
|
430
430
|
}, null, 8, ["menu"]))), 128))
|
|
431
431
|
]),
|
|
432
432
|
_: 1
|
|
433
|
-
}, 8, ["index"])) : (
|
|
433
|
+
}, 8, ["index"])) : (w(), ce(y(He), {
|
|
434
434
|
key: 1,
|
|
435
435
|
index: r.menu.menuUrl
|
|
436
436
|
}, {
|
|
437
|
-
default:
|
|
438
|
-
|
|
439
|
-
r.menu.menuName !== "首页" ? (
|
|
440
|
-
|
|
437
|
+
default: X(() => [
|
|
438
|
+
s("span", ys, [
|
|
439
|
+
r.menu.menuName !== "首页" ? (w(), N("span", ks, [
|
|
440
|
+
b(p(r.menu.icon)) ? (w(), ce(y(Z), {
|
|
441
441
|
key: 0,
|
|
442
442
|
name: p(r.menu.icon),
|
|
443
443
|
size: 16
|
|
444
|
-
}, null, 8, ["name"])) : (
|
|
444
|
+
}, null, 8, ["name"])) : (w(), N("span", bs, q(h(r.menu.menuName)), 1))
|
|
445
445
|
])) : ie("", !0),
|
|
446
|
-
|
|
446
|
+
s("span", xs, q(r.menu.menuName), 1)
|
|
447
447
|
])
|
|
448
448
|
]),
|
|
449
449
|
_: 1
|
|
@@ -455,13 +455,13 @@ const Na = {
|
|
|
455
455
|
for (const [p, h] of f)
|
|
456
456
|
v[p] = h;
|
|
457
457
|
return v;
|
|
458
|
-
},
|
|
458
|
+
}, Ns = /* @__PURE__ */ Se(Cs, [["__scopeId", "data-v-d160ae6a"]]), Es = {
|
|
459
459
|
key: 0,
|
|
460
460
|
class: "sidebar__logo"
|
|
461
461
|
}, $s = {
|
|
462
462
|
key: 1,
|
|
463
463
|
class: "sidebar__user"
|
|
464
|
-
}, Ss = { class: "sidebar__user-info" }, Ms = { class: "sidebar__user-name" }, Is = { class: "sidebar__user-role" },
|
|
464
|
+
}, Ss = { class: "sidebar__user-info" }, Ms = { class: "sidebar__user-name" }, Is = { class: "sidebar__user-role" }, Ot = "sidebar_opened_menus", Ls = /* @__PURE__ */ Ae({
|
|
465
465
|
__name: "Sidebar",
|
|
466
466
|
props: {
|
|
467
467
|
menuList: { default: () => [] },
|
|
@@ -469,79 +469,79 @@ const Na = {
|
|
|
469
469
|
showUser: { type: Boolean, default: !0 }
|
|
470
470
|
},
|
|
471
471
|
setup(r) {
|
|
472
|
-
const f = r, v = qe(), p = Pe(), h = ze(),
|
|
473
|
-
|
|
474
|
-
|
|
472
|
+
const f = r, v = qe(), p = Pe(), h = ze(), b = $e(), T = Je(), g = Re(), I = j(() => f.menuList.length > 0 ? f.menuList : h.menuList), _ = j(() => g.isCollapsed), x = j(() => v.path), M = P(W.get(Ot) || []);
|
|
473
|
+
Xe(M, (S) => {
|
|
474
|
+
W.set(Ot, S);
|
|
475
475
|
}, { deep: !0 });
|
|
476
|
-
const E = (S,
|
|
476
|
+
const E = (S, H, Y = []) => {
|
|
477
477
|
var oe;
|
|
478
478
|
for (const U of S) {
|
|
479
|
-
if (
|
|
480
|
-
return [...
|
|
479
|
+
if (H === U.menuUrl || H.startsWith(U.menuUrl + "/"))
|
|
480
|
+
return [...Y, U.menuUrl];
|
|
481
481
|
if ((oe = U.children) != null && oe.length) {
|
|
482
|
-
const L = E(U.children,
|
|
482
|
+
const L = E(U.children, H, [...Y, U.menuUrl]);
|
|
483
483
|
if (L) return L;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
return null;
|
|
487
487
|
};
|
|
488
|
-
|
|
489
|
-
if (
|
|
490
|
-
const
|
|
491
|
-
|
|
488
|
+
Xe([() => v.path, I], ([S, H]) => {
|
|
489
|
+
if (H.length > 0) {
|
|
490
|
+
const Y = E(H, S);
|
|
491
|
+
Y ? M.value = Y.slice(0, -1) : M.value = [];
|
|
492
492
|
}
|
|
493
493
|
}, { immediate: !0 });
|
|
494
|
-
const
|
|
494
|
+
const G = j(() => g.isDark ? "#1d1e1f" : "#fff"), Q = j(() => g.isDark ? "#cfd3dc" : "#303133"), O = j(() => "#409eff"), A = (S) => {
|
|
495
495
|
S && S !== v.path && p.push(S);
|
|
496
496
|
}, V = () => {
|
|
497
|
-
T.logout(),
|
|
497
|
+
T.logout(), b.clearUserInfo(), h.clearMenu(), p.push("/login");
|
|
498
498
|
};
|
|
499
|
-
return (S,
|
|
500
|
-
class:
|
|
499
|
+
return (S, H) => (w(), N("div", {
|
|
500
|
+
class: _e(["sidebar", { "sidebar--collapsed": _.value }])
|
|
501
501
|
}, [
|
|
502
|
-
f.showLogo ? (
|
|
503
|
-
|
|
502
|
+
f.showLogo ? (w(), N("div", Es, [
|
|
503
|
+
H[2] || (H[2] = s("img", {
|
|
504
504
|
src: Et,
|
|
505
505
|
alt: "Logo",
|
|
506
506
|
class: "sidebar__logo-img"
|
|
507
507
|
}, null, -1)),
|
|
508
|
-
at(
|
|
508
|
+
at(s("span", { class: "sidebar__logo-text" }, q(y(g).appName), 513), [
|
|
509
509
|
[Jt, !_.value]
|
|
510
510
|
])
|
|
511
511
|
])) : ie("", !0),
|
|
512
|
-
R(
|
|
512
|
+
R(y(Ct), {
|
|
513
513
|
modelValue: x.value,
|
|
514
|
-
"onUpdate:modelValue":
|
|
514
|
+
"onUpdate:modelValue": H[0] || (H[0] = (Y) => x.value = Y),
|
|
515
515
|
openeds: M.value,
|
|
516
|
-
"onUpdate:openeds":
|
|
516
|
+
"onUpdate:openeds": H[1] || (H[1] = (Y) => M.value = Y),
|
|
517
517
|
mode: "vertical",
|
|
518
518
|
collapse: _.value,
|
|
519
519
|
"collapse-transition": !1,
|
|
520
|
-
"background-color":
|
|
521
|
-
"text-color":
|
|
520
|
+
"background-color": G.value,
|
|
521
|
+
"text-color": Q.value,
|
|
522
522
|
"active-text-color": O.value,
|
|
523
523
|
class: "sidebar__menu",
|
|
524
524
|
onSelect: A
|
|
525
525
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
(
|
|
528
|
-
key:
|
|
529
|
-
menu:
|
|
526
|
+
default: X(() => [
|
|
527
|
+
(w(!0), N(he, null, ge(I.value, (Y) => (w(), ce(Ns, {
|
|
528
|
+
key: Y.menuUrl,
|
|
529
|
+
menu: Y
|
|
530
530
|
}, null, 8, ["menu"]))), 128))
|
|
531
531
|
]),
|
|
532
532
|
_: 1
|
|
533
533
|
}, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
|
|
534
|
-
f.showUser && !_.value ? (
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
534
|
+
f.showUser && !_.value ? (w(), N("div", $s, [
|
|
535
|
+
s("div", Ss, [
|
|
536
|
+
s("span", Ms, q(y(b).userName), 1),
|
|
537
|
+
s("span", Is, q(y(b).departmentName), 1)
|
|
538
538
|
]),
|
|
539
|
-
R(
|
|
539
|
+
R(y(je), {
|
|
540
540
|
type: "text",
|
|
541
541
|
size: "small",
|
|
542
542
|
onClick: V
|
|
543
543
|
}, {
|
|
544
|
-
default:
|
|
544
|
+
default: X(() => [...H[3] || (H[3] = [
|
|
545
545
|
De("退出", -1)
|
|
546
546
|
])]),
|
|
547
547
|
_: 1
|
|
@@ -549,7 +549,7 @@ const Na = {
|
|
|
549
549
|
])) : ie("", !0)
|
|
550
550
|
], 2));
|
|
551
551
|
}
|
|
552
|
-
}),
|
|
552
|
+
}), Ut = /* @__PURE__ */ Se(Ls, [["__scopeId", "data-v-3c79a9c4"]]), As = { class: "header" }, Ts = { class: "header__left" }, Os = {
|
|
553
553
|
key: 0,
|
|
554
554
|
class: "header__breadcrumb"
|
|
555
555
|
}, Us = {
|
|
@@ -588,7 +588,7 @@ const Na = {
|
|
|
588
588
|
}, un = { class: "layout-option__label" }, dn = { class: "settings-section" }, fn = { class: "settings-color-options" }, pn = ["title", "onClick"], mn = { class: "settings-section" }, hn = { class: "settings-switch-list" }, vn = { class: "settings-switch-item" }, gn = { class: "settings-switch-item" }, _n = /* @__PURE__ */ Ae({
|
|
589
589
|
__name: "Header",
|
|
590
590
|
setup(r) {
|
|
591
|
-
const f = qe(), v = Pe(), p = Re(), h = $e(),
|
|
591
|
+
const f = qe(), v = Pe(), p = Re(), h = $e(), b = Je(), T = ze(), g = P(!1), I = P(!1), _ = P(null), x = P(!1), M = P(!1), E = P(""), G = P(null), Q = P(!1), O = [
|
|
592
592
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
593
593
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
594
594
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
@@ -602,12 +602,12 @@ const Na = {
|
|
|
602
602
|
], V = j(() => f.matched.filter((B) => B.meta && B.meta.title).map((B) => ({
|
|
603
603
|
title: B.meta.title,
|
|
604
604
|
path: B.path
|
|
605
|
-
}))), S = (
|
|
605
|
+
}))), S = (K, B = "") => {
|
|
606
606
|
const t = [];
|
|
607
|
-
return
|
|
607
|
+
return K.forEach((e) => {
|
|
608
608
|
e.children && e.children.length > 0 ? t.push(...S(e.children, e.menuName)) : t.push({ ...e, parentTitle: B, title: e.menuName, path: e.menuUrl });
|
|
609
609
|
}), t;
|
|
610
|
-
},
|
|
610
|
+
}, H = /* @__PURE__ */ new Set([
|
|
611
611
|
"arrow-up",
|
|
612
612
|
"arrow-down",
|
|
613
613
|
"arrow-left",
|
|
@@ -709,10 +709,10 @@ const Na = {
|
|
|
709
709
|
"sun",
|
|
710
710
|
"theme",
|
|
711
711
|
"skin"
|
|
712
|
-
]),
|
|
713
|
-
if (!
|
|
714
|
-
if (
|
|
715
|
-
const t =
|
|
712
|
+
]), Y = (K) => {
|
|
713
|
+
if (!K || K === "") return "";
|
|
714
|
+
if (K.startsWith("tineco-icon-")) {
|
|
715
|
+
const t = K.replace("tineco-icon-", "");
|
|
716
716
|
return {
|
|
717
717
|
home: "home",
|
|
718
718
|
dashboard: "dashboard",
|
|
@@ -745,216 +745,216 @@ const Na = {
|
|
|
745
745
|
app: "app",
|
|
746
746
|
list: "list",
|
|
747
747
|
grid: "grid"
|
|
748
|
-
}[
|
|
749
|
-
}, oe = (
|
|
748
|
+
}[K] || K;
|
|
749
|
+
}, oe = (K) => K ? K.charAt(0) : "", U = (K) => H.has(K), L = j(() => E.value.trim() ? S(T.menuList).filter(
|
|
750
750
|
(B) => B.title.toLowerCase().includes(E.value.toLowerCase())
|
|
751
|
-
) : []),
|
|
751
|
+
) : []), J = j(() => p.layout), ee = () => {
|
|
752
752
|
p.toggleCollapse();
|
|
753
753
|
}, $ = () => {
|
|
754
754
|
p.toggleTheme();
|
|
755
755
|
}, re = () => {
|
|
756
756
|
I.value = !0;
|
|
757
|
-
},
|
|
758
|
-
p.setLayout(
|
|
759
|
-
}, z = (
|
|
760
|
-
|
|
757
|
+
}, te = (K) => {
|
|
758
|
+
p.setLayout(K), I.value = !1;
|
|
759
|
+
}, z = (K) => {
|
|
760
|
+
Q.value = K;
|
|
761
761
|
const B = document.documentElement;
|
|
762
|
-
|
|
762
|
+
K ? B.classList.add("grey-mode") : B.classList.remove("grey-mode");
|
|
763
763
|
}, le = () => {
|
|
764
|
-
z(!
|
|
765
|
-
},
|
|
764
|
+
z(!Q.value), I.value = !1;
|
|
765
|
+
}, de = () => {
|
|
766
766
|
p.toggleTheme(), I.value = !1;
|
|
767
767
|
}, Ce = () => {
|
|
768
768
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
769
|
-
},
|
|
769
|
+
}, fe = () => {
|
|
770
770
|
x.value = !!document.fullscreenElement;
|
|
771
|
-
}, be = () => {
|
|
772
|
-
g.value = !g.value;
|
|
773
771
|
}, ke = () => {
|
|
772
|
+
g.value = !g.value;
|
|
773
|
+
}, be = () => {
|
|
774
774
|
g.value = !1;
|
|
775
|
-
},
|
|
775
|
+
}, we = () => {
|
|
776
776
|
M.value = !1, E.value = "";
|
|
777
|
-
}, Te = (
|
|
778
|
-
v.push(
|
|
779
|
-
},
|
|
780
|
-
p.setPrimaryColor(
|
|
777
|
+
}, Te = (K) => {
|
|
778
|
+
v.push(K), we();
|
|
779
|
+
}, Ne = (K) => {
|
|
780
|
+
p.setPrimaryColor(K), I.value = !1;
|
|
781
781
|
}, Oe = () => {
|
|
782
|
-
|
|
782
|
+
be(), v.push("/profile");
|
|
783
783
|
}, C = () => {
|
|
784
|
-
|
|
784
|
+
be(), v.push("/change-password");
|
|
785
785
|
}, Ue = () => {
|
|
786
|
-
|
|
787
|
-
}, Be = (
|
|
788
|
-
_.value && !_.value.contains(
|
|
789
|
-
}, Me = (
|
|
790
|
-
|
|
786
|
+
be(), b.logout(), h.clearUserInfo(), T.clearMenu(), v.push("/login");
|
|
787
|
+
}, Be = (K) => {
|
|
788
|
+
_.value && !_.value.contains(K.target) && be(), G.value && !G.value.contains(K.target) && we();
|
|
789
|
+
}, Me = (K) => {
|
|
790
|
+
K.key === "Escape" && (we(), be());
|
|
791
791
|
};
|
|
792
|
-
return
|
|
793
|
-
document.addEventListener("click", Be), document.addEventListener("fullscreenchange",
|
|
794
|
-
}),
|
|
795
|
-
document.removeEventListener("click", Be), document.removeEventListener("fullscreenchange",
|
|
796
|
-
}), (
|
|
792
|
+
return _t(() => {
|
|
793
|
+
document.addEventListener("click", Be), document.addEventListener("fullscreenchange", fe), document.addEventListener("keydown", Me), p.initTheme(), Q.value = document.documentElement.classList.contains("grey-mode");
|
|
794
|
+
}), wt(() => {
|
|
795
|
+
document.removeEventListener("click", Be), document.removeEventListener("fullscreenchange", fe), document.removeEventListener("keydown", Me);
|
|
796
|
+
}), (K, B) => {
|
|
797
797
|
var t;
|
|
798
|
-
return
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
return w(), N("div", As, [
|
|
799
|
+
s("div", Ts, [
|
|
800
|
+
s("div", {
|
|
801
801
|
class: "header__collapse",
|
|
802
|
-
onClick:
|
|
802
|
+
onClick: ee
|
|
803
803
|
}, [
|
|
804
|
-
R(
|
|
805
|
-
name:
|
|
804
|
+
R(y(Z), {
|
|
805
|
+
name: y(p).isCollapsed ? "menu-unfold" : "menu-fold",
|
|
806
806
|
size: 18
|
|
807
807
|
}, null, 8, ["name"])
|
|
808
808
|
]),
|
|
809
|
-
|
|
810
|
-
(
|
|
809
|
+
y(p).showBreadcrumb ? (w(), N("div", Os, [
|
|
810
|
+
(w(!0), N(he, null, ge(V.value, (e, o) => (w(), N("span", {
|
|
811
811
|
key: e.path
|
|
812
812
|
}, [
|
|
813
|
-
o > 0 ? (
|
|
814
|
-
|
|
815
|
-
class:
|
|
816
|
-
},
|
|
813
|
+
o > 0 ? (w(), N("span", Us, "/")) : ie("", !0),
|
|
814
|
+
s("span", {
|
|
815
|
+
class: _e({ "is-current": o === V.value.length - 1 })
|
|
816
|
+
}, q(e.title), 3)
|
|
817
817
|
]))), 128))
|
|
818
818
|
])) : ie("", !0)
|
|
819
819
|
]),
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
s("div", Bs, [
|
|
821
|
+
s("div", {
|
|
822
822
|
class: "header__search",
|
|
823
823
|
ref_key: "searchRef",
|
|
824
|
-
ref:
|
|
824
|
+
ref: G
|
|
825
825
|
}, [
|
|
826
|
-
R(
|
|
826
|
+
R(y(Z), {
|
|
827
827
|
name: "search",
|
|
828
828
|
size: 14,
|
|
829
829
|
class: "header__search-icon"
|
|
830
830
|
}),
|
|
831
|
-
at(
|
|
831
|
+
at(s("input", {
|
|
832
832
|
"onUpdate:modelValue": B[0] || (B[0] = (e) => E.value = e),
|
|
833
833
|
type: "text",
|
|
834
834
|
class: "header__search-input",
|
|
835
835
|
placeholder: "搜索菜单...",
|
|
836
836
|
onFocus: B[1] || (B[1] = (e) => M.value = !0)
|
|
837
837
|
}, null, 544), [
|
|
838
|
-
[
|
|
838
|
+
[yt, E.value]
|
|
839
839
|
]),
|
|
840
840
|
R(Ve, { name: "search-dropdown" }, {
|
|
841
|
-
default:
|
|
842
|
-
M.value && (L.value.length > 0 || E.value) ? (
|
|
843
|
-
L.value.length > 0 ? (
|
|
844
|
-
(
|
|
841
|
+
default: X(() => [
|
|
842
|
+
M.value && (L.value.length > 0 || E.value) ? (w(), N("div", Ps, [
|
|
843
|
+
L.value.length > 0 ? (w(), N("div", Rs, [
|
|
844
|
+
(w(!0), N(he, null, ge(L.value, (e) => (w(), N("div", {
|
|
845
845
|
key: e.path,
|
|
846
846
|
class: "header__search-item",
|
|
847
847
|
onClick: (o) => Te(e.path)
|
|
848
848
|
}, [
|
|
849
|
-
e.title !== "首页" ? (
|
|
850
|
-
U(
|
|
849
|
+
e.title !== "首页" ? (w(), N("span", zs, [
|
|
850
|
+
U(Y(e.icon)) ? (w(), ce(y(Z), {
|
|
851
851
|
key: 0,
|
|
852
|
-
name:
|
|
852
|
+
name: Y(e.icon),
|
|
853
853
|
size: 16
|
|
854
|
-
}, null, 8, ["name"])) : (
|
|
854
|
+
}, null, 8, ["name"])) : (w(), N("span", Fs, q(oe(e.title)), 1))
|
|
855
855
|
])) : ie("", !0),
|
|
856
|
-
|
|
857
|
-
e.parentTitle ? (
|
|
856
|
+
s("span", Vs, q(e.title), 1),
|
|
857
|
+
e.parentTitle ? (w(), N("span", js, q(e.parentTitle), 1)) : ie("", !0)
|
|
858
858
|
], 8, Ds))), 128))
|
|
859
|
-
])) : (
|
|
859
|
+
])) : (w(), N("div", qs, " 未找到匹配的菜单 "))
|
|
860
860
|
])) : ie("", !0)
|
|
861
861
|
]),
|
|
862
862
|
_: 1
|
|
863
863
|
})
|
|
864
864
|
], 512),
|
|
865
|
-
|
|
865
|
+
s("div", {
|
|
866
866
|
class: "header__action",
|
|
867
867
|
onClick: Ce,
|
|
868
868
|
title: x.value ? "退出全屏" : "全屏"
|
|
869
869
|
}, [
|
|
870
|
-
R(
|
|
870
|
+
R(y(Z), {
|
|
871
871
|
name: x.value ? "fullscreen-exit" : "fullscreen",
|
|
872
872
|
size: 16
|
|
873
873
|
}, null, 8, ["name"])
|
|
874
874
|
], 8, Gs),
|
|
875
|
-
|
|
875
|
+
s("div", {
|
|
876
876
|
class: "header__action",
|
|
877
877
|
onClick: re,
|
|
878
878
|
title: "换肤设置"
|
|
879
879
|
}, [
|
|
880
|
-
R(
|
|
880
|
+
R(y(Z), {
|
|
881
881
|
name: "skin",
|
|
882
882
|
size: 16
|
|
883
883
|
})
|
|
884
884
|
]),
|
|
885
|
-
|
|
885
|
+
s("div", {
|
|
886
886
|
class: "header__action",
|
|
887
887
|
onClick: $,
|
|
888
888
|
title: "切换主题"
|
|
889
889
|
}, [
|
|
890
|
-
R(
|
|
891
|
-
name:
|
|
890
|
+
R(y(Z), {
|
|
891
|
+
name: y(p).isDark ? "sun" : "moon",
|
|
892
892
|
size: 16
|
|
893
893
|
}, null, 8, ["name"])
|
|
894
894
|
]),
|
|
895
|
-
|
|
895
|
+
s("div", {
|
|
896
896
|
class: "header__user",
|
|
897
897
|
ref_key: "dropdownRef",
|
|
898
898
|
ref: _
|
|
899
899
|
}, [
|
|
900
|
-
|
|
900
|
+
s("div", {
|
|
901
901
|
class: "header__user-trigger",
|
|
902
|
-
onClick: it(
|
|
902
|
+
onClick: it(ke, ["stop"])
|
|
903
903
|
}, [
|
|
904
|
-
|
|
905
|
-
|
|
904
|
+
s("div", Ks, [
|
|
905
|
+
s("span", null, q(((t = y(h).userName) == null ? void 0 : t.charAt(0)) || "U"), 1)
|
|
906
906
|
]),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
class:
|
|
907
|
+
s("span", Hs, q(y(h).userName), 1),
|
|
908
|
+
s("span", {
|
|
909
|
+
class: _e(["header__user-arrow", { "is-active": g.value }])
|
|
910
910
|
}, "▼", 2)
|
|
911
911
|
]),
|
|
912
912
|
R(Ve, { name: "dropdown" }, {
|
|
913
|
-
default:
|
|
913
|
+
default: X(() => {
|
|
914
914
|
var e;
|
|
915
915
|
return [
|
|
916
|
-
g.value ? (
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
916
|
+
g.value ? (w(), N("div", Ws, [
|
|
917
|
+
s("div", Xs, [
|
|
918
|
+
s("div", Ys, [
|
|
919
|
+
s("span", null, q(((e = y(h).userName) == null ? void 0 : e.charAt(0)) || "U"), 1)
|
|
920
920
|
]),
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
921
|
+
s("div", Js, [
|
|
922
|
+
s("div", Zs, q(y(h).userName), 1),
|
|
923
|
+
s("div", Qs, q(y(h).departmentName), 1)
|
|
924
924
|
])
|
|
925
925
|
]),
|
|
926
|
-
B[7] || (B[7] =
|
|
927
|
-
|
|
928
|
-
|
|
926
|
+
B[7] || (B[7] = s("div", { class: "header__dropdown-divider" }, null, -1)),
|
|
927
|
+
s("div", en, [
|
|
928
|
+
s("div", {
|
|
929
929
|
class: "header__dropdown-item",
|
|
930
930
|
onClick: Oe
|
|
931
931
|
}, [
|
|
932
|
-
R(
|
|
932
|
+
R(y(Z), {
|
|
933
933
|
name: "user",
|
|
934
934
|
size: 16
|
|
935
935
|
}),
|
|
936
|
-
B[3] || (B[3] =
|
|
936
|
+
B[3] || (B[3] = s("span", null, "个人信息", -1))
|
|
937
937
|
]),
|
|
938
|
-
|
|
938
|
+
s("div", {
|
|
939
939
|
class: "header__dropdown-item",
|
|
940
940
|
onClick: C
|
|
941
941
|
}, [
|
|
942
|
-
R(
|
|
942
|
+
R(y(Z), {
|
|
943
943
|
name: "lock",
|
|
944
944
|
size: 16
|
|
945
945
|
}),
|
|
946
|
-
B[4] || (B[4] =
|
|
946
|
+
B[4] || (B[4] = s("span", null, "修改密码", -1))
|
|
947
947
|
]),
|
|
948
|
-
B[6] || (B[6] =
|
|
949
|
-
|
|
948
|
+
B[6] || (B[6] = s("div", { class: "header__dropdown-divider" }, null, -1)),
|
|
949
|
+
s("div", {
|
|
950
950
|
class: "header__dropdown-item header__dropdown-item--danger",
|
|
951
951
|
onClick: Ue
|
|
952
952
|
}, [
|
|
953
|
-
R(
|
|
953
|
+
R(y(Z), {
|
|
954
954
|
name: "logout",
|
|
955
955
|
size: 16
|
|
956
956
|
}),
|
|
957
|
-
B[5] || (B[5] =
|
|
957
|
+
B[5] || (B[5] = s("span", null, "退出登录", -1))
|
|
958
958
|
])
|
|
959
959
|
])
|
|
960
960
|
])) : ie("", !0)
|
|
@@ -964,58 +964,58 @@ const Na = {
|
|
|
964
964
|
})
|
|
965
965
|
], 512)
|
|
966
966
|
]),
|
|
967
|
-
R(
|
|
967
|
+
R(y(Nt), {
|
|
968
968
|
modelValue: I.value,
|
|
969
969
|
"onUpdate:modelValue": B[2] || (B[2] = (e) => I.value = e),
|
|
970
970
|
title: "换肤设置",
|
|
971
971
|
direction: "rtl",
|
|
972
972
|
size: "320px"
|
|
973
973
|
}, {
|
|
974
|
-
default:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
B[11] || (B[11] =
|
|
978
|
-
|
|
979
|
-
(
|
|
974
|
+
default: X(() => [
|
|
975
|
+
s("div", tn, [
|
|
976
|
+
s("div", sn, [
|
|
977
|
+
B[11] || (B[11] = s("div", { class: "settings-title" }, "布局模式", -1)),
|
|
978
|
+
s("div", nn, [
|
|
979
|
+
(w(), N(he, null, ge(O, (e) => s("div", {
|
|
980
980
|
key: e.value,
|
|
981
|
-
class:
|
|
982
|
-
onClick: (o) =>
|
|
981
|
+
class: _e(["layout-option", { "is-active": J.value === e.value }]),
|
|
982
|
+
onClick: (o) => te(e.value)
|
|
983
983
|
}, [
|
|
984
|
-
|
|
985
|
-
e.value === "sidebar" ? (
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
984
|
+
s("div", rn, [
|
|
985
|
+
e.value === "sidebar" ? (w(), N("div", an, [...B[8] || (B[8] = [
|
|
986
|
+
s("div", { class: "preview-aside" }, null, -1),
|
|
987
|
+
s("div", { class: "preview-main" }, [
|
|
988
|
+
s("div", { class: "preview-header" }),
|
|
989
|
+
s("div", { class: "preview-content" })
|
|
990
990
|
], -1)
|
|
991
|
-
])])) : e.value === "top" ? (
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
])])) : (
|
|
995
|
-
|
|
996
|
-
|
|
991
|
+
])])) : e.value === "top" ? (w(), N("div", ln, [...B[9] || (B[9] = [
|
|
992
|
+
s("div", { class: "preview-header-full" }, null, -1),
|
|
993
|
+
s("div", { class: "preview-content-full" }, null, -1)
|
|
994
|
+
])])) : (w(), N("div", cn, [...B[10] || (B[10] = [
|
|
995
|
+
s("div", { class: "preview-header-mix" }, [
|
|
996
|
+
s("div", { class: "preview-mix-left" })
|
|
997
997
|
], -1),
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
998
|
+
s("div", { class: "preview-mix-body" }, [
|
|
999
|
+
s("div", { class: "preview-mix-aside" }),
|
|
1000
|
+
s("div", { class: "preview-mix-content" })
|
|
1001
1001
|
], -1)
|
|
1002
1002
|
])]))
|
|
1003
1003
|
]),
|
|
1004
|
-
|
|
1004
|
+
s("span", un, q(e.label), 1)
|
|
1005
1005
|
], 10, on)), 64))
|
|
1006
1006
|
])
|
|
1007
1007
|
]),
|
|
1008
|
-
|
|
1009
|
-
B[12] || (B[12] =
|
|
1010
|
-
|
|
1011
|
-
(
|
|
1008
|
+
s("div", dn, [
|
|
1009
|
+
B[12] || (B[12] = s("div", { class: "settings-title" }, "主题色", -1)),
|
|
1010
|
+
s("div", fn, [
|
|
1011
|
+
(w(), N(he, null, ge(A, (e) => s("div", {
|
|
1012
1012
|
key: e.value,
|
|
1013
|
-
class:
|
|
1014
|
-
style:
|
|
1013
|
+
class: _e(["color-option", { "is-active": y(p).primaryColor === e.value }]),
|
|
1014
|
+
style: Ye({ backgroundColor: e.value }),
|
|
1015
1015
|
title: e.label,
|
|
1016
|
-
onClick: (o) =>
|
|
1016
|
+
onClick: (o) => Ne(e.value)
|
|
1017
1017
|
}, [
|
|
1018
|
-
|
|
1018
|
+
y(p).primaryColor === e.value ? (w(), ce(y(Z), {
|
|
1019
1019
|
key: 0,
|
|
1020
1020
|
name: "check",
|
|
1021
1021
|
size: 12,
|
|
@@ -1024,25 +1024,25 @@ const Na = {
|
|
|
1024
1024
|
], 14, pn)), 64))
|
|
1025
1025
|
])
|
|
1026
1026
|
]),
|
|
1027
|
-
|
|
1028
|
-
B[17] || (B[17] =
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
B[14] || (B[14] =
|
|
1032
|
-
|
|
1033
|
-
class:
|
|
1027
|
+
s("div", mn, [
|
|
1028
|
+
B[17] || (B[17] = s("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1029
|
+
s("div", hn, [
|
|
1030
|
+
s("div", vn, [
|
|
1031
|
+
B[14] || (B[14] = s("span", null, "灰色模式", -1)),
|
|
1032
|
+
s("div", {
|
|
1033
|
+
class: _e(["switch-wrapper", { "is-checked": Q.value }]),
|
|
1034
1034
|
onClick: le
|
|
1035
1035
|
}, [...B[13] || (B[13] = [
|
|
1036
|
-
|
|
1036
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
1037
1037
|
])], 2)
|
|
1038
1038
|
]),
|
|
1039
|
-
|
|
1040
|
-
B[16] || (B[16] =
|
|
1041
|
-
|
|
1042
|
-
class:
|
|
1043
|
-
onClick:
|
|
1039
|
+
s("div", gn, [
|
|
1040
|
+
B[16] || (B[16] = s("span", null, "暗黑模式", -1)),
|
|
1041
|
+
s("div", {
|
|
1042
|
+
class: _e(["switch-wrapper", { "is-checked": y(p).isDark }]),
|
|
1043
|
+
onClick: de
|
|
1044
1044
|
}, [...B[15] || (B[15] = [
|
|
1045
|
-
|
|
1045
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
1046
1046
|
])], 2)
|
|
1047
1047
|
])
|
|
1048
1048
|
])
|
|
@@ -1054,62 +1054,68 @@ const Na = {
|
|
|
1054
1054
|
]);
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
|
-
}), wn = /* @__PURE__ */ Se(_n, [["__scopeId", "data-v-89179947"]]), yn = { class: "top-menu" },
|
|
1057
|
+
}), wn = /* @__PURE__ */ Se(_n, [["__scopeId", "data-v-89179947"]]), yn = { class: "top-menu" }, kn = { class: "top-menu__logo" }, bn = { class: "top-menu__logo-text" }, xn = { class: "top-menu__menu-content" }, Cn = {
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
class: "top-menu__menu-icon"
|
|
1060
|
-
},
|
|
1060
|
+
}, Nn = {
|
|
1061
|
+
key: 1,
|
|
1062
|
+
class: "top-menu__menu-char"
|
|
1063
|
+
}, En = { class: "top-menu__menu-text" }, $n = { class: "top-menu__menu-content" }, Sn = { class: "top-menu__menu-icon" }, Mn = {
|
|
1061
1064
|
key: 1,
|
|
1062
1065
|
class: "top-menu__menu-char"
|
|
1063
|
-
},
|
|
1066
|
+
}, In = { class: "top-menu__menu-text" }, Ln = { class: "top-menu__menu-content" }, An = { class: "top-menu__menu-icon" }, Tn = {
|
|
1064
1067
|
key: 1,
|
|
1065
1068
|
class: "top-menu__menu-char"
|
|
1066
|
-
},
|
|
1069
|
+
}, On = { class: "top-menu__menu-text" }, Un = { class: "top-menu__menu-content" }, Bn = { class: "top-menu__menu-icon" }, Pn = {
|
|
1070
|
+
key: 1,
|
|
1071
|
+
class: "top-menu__menu-char"
|
|
1072
|
+
}, Rn = { class: "top-menu__menu-text" }, Dn = { class: "top-menu__menu-content" }, zn = {
|
|
1067
1073
|
key: 0,
|
|
1068
1074
|
class: "top-menu__menu-icon"
|
|
1069
|
-
},
|
|
1075
|
+
}, Fn = {
|
|
1070
1076
|
key: 1,
|
|
1071
1077
|
class: "top-menu__menu-char"
|
|
1072
|
-
},
|
|
1078
|
+
}, Vn = { class: "top-menu__menu-text" }, jn = { class: "top-menu__actions" }, qn = {
|
|
1073
1079
|
key: 0,
|
|
1074
1080
|
class: "top-menu__search-dropdown"
|
|
1075
|
-
},
|
|
1081
|
+
}, Gn = {
|
|
1076
1082
|
key: 0,
|
|
1077
1083
|
class: "top-menu__search-results"
|
|
1078
|
-
},
|
|
1084
|
+
}, Kn = ["onClick"], Hn = {
|
|
1079
1085
|
key: 0,
|
|
1080
1086
|
class: "top-menu__search-icon-item"
|
|
1081
|
-
},
|
|
1087
|
+
}, Wn = {
|
|
1082
1088
|
key: 1,
|
|
1083
1089
|
class: "top-menu__search-char"
|
|
1084
|
-
},
|
|
1090
|
+
}, Xn = { class: "top-menu__search-item-title" }, Yn = {
|
|
1085
1091
|
key: 1,
|
|
1086
1092
|
class: "top-menu__search-item-parent"
|
|
1087
|
-
},
|
|
1093
|
+
}, Jn = {
|
|
1088
1094
|
key: 1,
|
|
1089
1095
|
class: "top-menu__search-empty"
|
|
1090
|
-
},
|
|
1096
|
+
}, Zn = ["title"], Qn = { class: "top-menu__avatar" }, eo = { class: "top-menu__user-name" }, to = {
|
|
1091
1097
|
key: 0,
|
|
1092
1098
|
class: "top-menu__dropdown"
|
|
1093
|
-
},
|
|
1099
|
+
}, so = { class: "top-menu__dropdown-header" }, no = { class: "top-menu__dropdown-avatar" }, oo = { class: "top-menu__dropdown-info" }, ro = { class: "top-menu__dropdown-name" }, ao = { class: "top-menu__dropdown-role" }, io = { class: "top-menu__dropdown-menu" }, lo = { class: "settings-drawer" }, co = { class: "settings-section" }, uo = { class: "settings-layout-options" }, fo = ["onClick"], po = { class: "layout-option__preview" }, mo = {
|
|
1094
1100
|
key: 0,
|
|
1095
1101
|
class: "layout-preview-sidebar"
|
|
1096
|
-
},
|
|
1102
|
+
}, ho = {
|
|
1097
1103
|
key: 1,
|
|
1098
1104
|
class: "layout-preview-top"
|
|
1099
|
-
},
|
|
1105
|
+
}, vo = {
|
|
1100
1106
|
key: 2,
|
|
1101
1107
|
class: "layout-preview-mix"
|
|
1102
|
-
},
|
|
1108
|
+
}, go = { class: "layout-option__label" }, _o = { class: "settings-section" }, wo = { class: "settings-color-options" }, yo = ["title", "onClick"], ko = { class: "settings-section" }, bo = { class: "settings-switch-list" }, xo = { class: "settings-switch-item" }, Co = { class: "settings-switch-item" }, No = /* @__PURE__ */ Ae({
|
|
1103
1109
|
__name: "TopMenu",
|
|
1104
1110
|
setup(r) {
|
|
1105
|
-
const f = qe(), v = Pe(), p = ze(), h = Re(),
|
|
1111
|
+
const f = qe(), v = Pe(), p = ze(), h = Re(), b = $e(), T = Je(), g = j(() => f.path), I = (e, o = "") => {
|
|
1106
1112
|
const c = [];
|
|
1107
|
-
return e.forEach((
|
|
1108
|
-
|
|
1113
|
+
return e.forEach((n) => {
|
|
1114
|
+
n.children && n.children.length > 0 ? c.push(...I(n.children, n.menuName)) : c.push({ ...n, parentTitle: o, title: n.menuName, path: n.menuUrl });
|
|
1109
1115
|
}), c;
|
|
1110
|
-
}, _ = j(() =>
|
|
1111
|
-
(o) => o.title.toLowerCase().includes(
|
|
1112
|
-
) : []), x = j(() => h.isDark ? "#1d1e1f" : "#fff"), M = j(() => h.isDark ? "#cfd3dc" : "#303133"), E = j(() => "#409eff"),
|
|
1116
|
+
}, _ = j(() => H.value.trim() ? I(p.menuList).filter(
|
|
1117
|
+
(o) => o.title.toLowerCase().includes(H.value.toLowerCase())
|
|
1118
|
+
) : []), x = j(() => h.isDark ? "#1d1e1f" : "#fff"), M = j(() => h.isDark ? "#cfd3dc" : "#303133"), E = j(() => "#409eff"), G = P(!1), Q = P(null), O = P(!1), A = P(!1), V = P(!1), S = P(!1), H = P(""), Y = P(null), oe = (e) => {
|
|
1113
1119
|
e && e !== f.path && v.push(e);
|
|
1114
1120
|
}, U = /* @__PURE__ */ new Set([
|
|
1115
1121
|
"arrow-up",
|
|
@@ -1250,35 +1256,35 @@ const Na = {
|
|
|
1250
1256
|
list: "list",
|
|
1251
1257
|
grid: "grid"
|
|
1252
1258
|
}[e] || e;
|
|
1253
|
-
},
|
|
1259
|
+
}, J = (e) => e ? e.charAt(0) : "", ee = (e) => U.has(e), $ = () => {
|
|
1254
1260
|
h.toggleTheme(), A.value = !1;
|
|
1255
1261
|
}, re = () => {
|
|
1256
1262
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1257
|
-
},
|
|
1263
|
+
}, te = () => {
|
|
1258
1264
|
O.value = !!document.fullscreenElement;
|
|
1259
1265
|
}, z = () => {
|
|
1260
|
-
|
|
1266
|
+
G.value = !G.value;
|
|
1261
1267
|
}, le = () => {
|
|
1262
|
-
|
|
1263
|
-
}, ue = () => {
|
|
1264
|
-
S.value = !1, K.value = "";
|
|
1265
|
-
}, Ce = (e) => {
|
|
1266
|
-
v.push(e), ue();
|
|
1268
|
+
G.value = !1;
|
|
1267
1269
|
}, de = () => {
|
|
1270
|
+
S.value = !1, H.value = "";
|
|
1271
|
+
}, Ce = (e) => {
|
|
1272
|
+
v.push(e), de();
|
|
1273
|
+
}, fe = () => {
|
|
1268
1274
|
A.value = !0;
|
|
1269
|
-
},
|
|
1275
|
+
}, ke = (e) => {
|
|
1270
1276
|
V.value = e;
|
|
1271
1277
|
const o = document.documentElement;
|
|
1272
1278
|
e ? o.classList.add("grey-mode") : o.classList.remove("grey-mode");
|
|
1273
|
-
},
|
|
1274
|
-
|
|
1275
|
-
},
|
|
1279
|
+
}, be = () => {
|
|
1280
|
+
ke(!V.value), A.value = !1;
|
|
1281
|
+
}, we = () => {
|
|
1276
1282
|
h.toggleTheme(), A.value = !1;
|
|
1277
1283
|
}, Te = [
|
|
1278
1284
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1279
1285
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1280
1286
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1281
|
-
],
|
|
1287
|
+
], Ne = j(() => h.layout), Oe = (e) => {
|
|
1282
1288
|
h.setLayout(e), A.value = !1;
|
|
1283
1289
|
}, C = [
|
|
1284
1290
|
{ value: "#409eff", label: "默认蓝" },
|
|
@@ -1293,29 +1299,29 @@ const Na = {
|
|
|
1293
1299
|
le(), v.push("/profile");
|
|
1294
1300
|
}, Me = () => {
|
|
1295
1301
|
le(), v.push("/change-password");
|
|
1296
|
-
},
|
|
1297
|
-
le(), T.logout(),
|
|
1302
|
+
}, K = () => {
|
|
1303
|
+
le(), T.logout(), b.clearUserInfo(), p.clearMenu(), v.push("/login");
|
|
1298
1304
|
}, B = (e) => {
|
|
1299
|
-
|
|
1305
|
+
Q.value && !Q.value.contains(e.target) && le(), Y.value && !Y.value.contains(e.target) && de();
|
|
1300
1306
|
}, t = (e) => {
|
|
1301
|
-
e.key === "Escape" && (
|
|
1307
|
+
e.key === "Escape" && (de(), le());
|
|
1302
1308
|
};
|
|
1303
|
-
return
|
|
1304
|
-
document.addEventListener("click", B), document.addEventListener("fullscreenchange",
|
|
1305
|
-
}),
|
|
1306
|
-
document.removeEventListener("click", B), document.removeEventListener("fullscreenchange",
|
|
1309
|
+
return _t(() => {
|
|
1310
|
+
document.addEventListener("click", B), document.addEventListener("fullscreenchange", te), document.addEventListener("keydown", t), V.value = document.documentElement.classList.contains("grey-mode");
|
|
1311
|
+
}), wt(() => {
|
|
1312
|
+
document.removeEventListener("click", B), document.removeEventListener("fullscreenchange", te), document.removeEventListener("keydown", t);
|
|
1307
1313
|
}), (e, o) => {
|
|
1308
1314
|
var c;
|
|
1309
|
-
return
|
|
1310
|
-
|
|
1311
|
-
o[3] || (o[3] =
|
|
1315
|
+
return w(), N("div", yn, [
|
|
1316
|
+
s("div", kn, [
|
|
1317
|
+
o[3] || (o[3] = s("img", {
|
|
1312
1318
|
src: Et,
|
|
1313
1319
|
alt: "Logo",
|
|
1314
1320
|
class: "top-menu__logo-img"
|
|
1315
1321
|
}, null, -1)),
|
|
1316
|
-
|
|
1322
|
+
s("span", bn, q(y(h).appName), 1)
|
|
1317
1323
|
]),
|
|
1318
|
-
R(
|
|
1324
|
+
R(y(Ct), {
|
|
1319
1325
|
"model-value": g.value,
|
|
1320
1326
|
mode: "horizontal",
|
|
1321
1327
|
"background-color": x.value,
|
|
@@ -1324,61 +1330,102 @@ const Na = {
|
|
|
1324
1330
|
class: "top-menu__menu",
|
|
1325
1331
|
onSelect: oe
|
|
1326
1332
|
}, {
|
|
1327
|
-
default:
|
|
1328
|
-
(
|
|
1329
|
-
key:
|
|
1333
|
+
default: X(() => [
|
|
1334
|
+
(w(!0), N(he, null, ge(y(p).menuList, (n) => (w(), N(he, {
|
|
1335
|
+
key: n.menuUrl
|
|
1330
1336
|
}, [
|
|
1331
|
-
|
|
1337
|
+
n.children && n.children.length > 0 ? (w(), ce(y(gt), {
|
|
1332
1338
|
key: 0,
|
|
1333
|
-
index:
|
|
1339
|
+
index: n.menuUrl
|
|
1334
1340
|
}, {
|
|
1335
|
-
title:
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1341
|
+
title: X(() => [
|
|
1342
|
+
s("span", xn, [
|
|
1343
|
+
n.menuName !== "首页" ? (w(), N("span", Cn, [
|
|
1344
|
+
ee(L(n.icon)) ? (w(), ce(y(Z), {
|
|
1339
1345
|
key: 0,
|
|
1340
|
-
name: L(
|
|
1346
|
+
name: L(n.icon),
|
|
1341
1347
|
size: 16
|
|
1342
|
-
}, null, 8, ["name"])) : (
|
|
1348
|
+
}, null, 8, ["name"])) : (w(), N("span", Nn, q(J(n.menuName)), 1))
|
|
1343
1349
|
])) : ie("", !0),
|
|
1344
|
-
|
|
1350
|
+
s("span", En, q(n.menuName), 1)
|
|
1345
1351
|
])
|
|
1346
1352
|
]),
|
|
1347
|
-
default:
|
|
1348
|
-
(
|
|
1349
|
-
key:
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1353
|
+
default: X(() => [
|
|
1354
|
+
(w(!0), N(he, null, ge(n.children, (a) => (w(), N(he, {
|
|
1355
|
+
key: a.menuUrl
|
|
1356
|
+
}, [
|
|
1357
|
+
a.children && a.children.length > 0 ? (w(), ce(y(gt), {
|
|
1358
|
+
key: 0,
|
|
1359
|
+
index: a.menuUrl
|
|
1360
|
+
}, {
|
|
1361
|
+
title: X(() => [
|
|
1362
|
+
s("span", $n, [
|
|
1363
|
+
s("span", Sn, [
|
|
1364
|
+
ee(L(a.icon)) ? (w(), ce(y(Z), {
|
|
1365
|
+
key: 0,
|
|
1366
|
+
name: L(a.icon),
|
|
1367
|
+
size: 16
|
|
1368
|
+
}, null, 8, ["name"])) : (w(), N("span", Mn, q(J(a.menuName)), 1))
|
|
1369
|
+
]),
|
|
1370
|
+
s("span", In, q(a.menuName), 1)
|
|
1371
|
+
])
|
|
1372
|
+
]),
|
|
1373
|
+
default: X(() => [
|
|
1374
|
+
(w(!0), N(he, null, ge(a.children, (u) => (w(), ce(y(He), {
|
|
1375
|
+
key: u.menuUrl,
|
|
1376
|
+
index: u.menuUrl
|
|
1377
|
+
}, {
|
|
1378
|
+
default: X(() => [
|
|
1379
|
+
s("span", Ln, [
|
|
1380
|
+
s("span", An, [
|
|
1381
|
+
ee(L(u.icon)) ? (w(), ce(y(Z), {
|
|
1382
|
+
key: 0,
|
|
1383
|
+
name: L(u.icon),
|
|
1384
|
+
size: 16
|
|
1385
|
+
}, null, 8, ["name"])) : (w(), N("span", Tn, q(J(u.menuName)), 1))
|
|
1386
|
+
]),
|
|
1387
|
+
s("span", On, q(u.menuName), 1)
|
|
1388
|
+
])
|
|
1389
|
+
]),
|
|
1390
|
+
_: 2
|
|
1391
|
+
}, 1032, ["index"]))), 128))
|
|
1392
|
+
]),
|
|
1393
|
+
_: 2
|
|
1394
|
+
}, 1032, ["index"])) : (w(), ce(y(He), {
|
|
1395
|
+
key: 1,
|
|
1396
|
+
index: a.menuUrl
|
|
1397
|
+
}, {
|
|
1398
|
+
default: X(() => [
|
|
1399
|
+
s("span", Un, [
|
|
1400
|
+
s("span", Bn, [
|
|
1401
|
+
ee(L(a.icon)) ? (w(), ce(y(Z), {
|
|
1402
|
+
key: 0,
|
|
1403
|
+
name: L(a.icon),
|
|
1404
|
+
size: 16
|
|
1405
|
+
}, null, 8, ["name"])) : (w(), N("span", Pn, q(J(a.menuName)), 1))
|
|
1406
|
+
]),
|
|
1407
|
+
s("span", Rn, q(a.menuName), 1)
|
|
1408
|
+
])
|
|
1409
|
+
]),
|
|
1410
|
+
_: 2
|
|
1411
|
+
}, 1032, ["index"]))
|
|
1412
|
+
], 64))), 128))
|
|
1366
1413
|
]),
|
|
1367
1414
|
_: 2
|
|
1368
|
-
}, 1032, ["index"])) : (
|
|
1415
|
+
}, 1032, ["index"])) : (w(), ce(y(He), {
|
|
1369
1416
|
key: 1,
|
|
1370
|
-
index:
|
|
1417
|
+
index: n.menuUrl
|
|
1371
1418
|
}, {
|
|
1372
|
-
default:
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1419
|
+
default: X(() => [
|
|
1420
|
+
s("span", Dn, [
|
|
1421
|
+
n.menuName !== "首页" ? (w(), N("span", zn, [
|
|
1422
|
+
ee(L(n.icon)) ? (w(), ce(y(Z), {
|
|
1376
1423
|
key: 0,
|
|
1377
|
-
name: L(
|
|
1424
|
+
name: L(n.icon),
|
|
1378
1425
|
size: 16
|
|
1379
|
-
}, null, 8, ["name"])) : (
|
|
1426
|
+
}, null, 8, ["name"])) : (w(), N("span", Fn, q(J(n.menuName)), 1))
|
|
1380
1427
|
])) : ie("", !0),
|
|
1381
|
-
|
|
1428
|
+
s("span", Vn, q(n.menuName), 1)
|
|
1382
1429
|
])
|
|
1383
1430
|
]),
|
|
1384
1431
|
_: 2
|
|
@@ -1387,144 +1434,144 @@ const Na = {
|
|
|
1387
1434
|
]),
|
|
1388
1435
|
_: 1
|
|
1389
1436
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1390
|
-
|
|
1391
|
-
|
|
1437
|
+
s("div", jn, [
|
|
1438
|
+
s("div", {
|
|
1392
1439
|
class: "top-menu__search",
|
|
1393
1440
|
ref_key: "searchRef",
|
|
1394
|
-
ref:
|
|
1441
|
+
ref: Y
|
|
1395
1442
|
}, [
|
|
1396
|
-
R(
|
|
1443
|
+
R(y(Z), {
|
|
1397
1444
|
name: "search",
|
|
1398
1445
|
size: 14,
|
|
1399
1446
|
class: "top-menu__search-icon"
|
|
1400
1447
|
}),
|
|
1401
|
-
at(
|
|
1402
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1448
|
+
at(s("input", {
|
|
1449
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => H.value = n),
|
|
1403
1450
|
type: "text",
|
|
1404
1451
|
class: "top-menu__search-input",
|
|
1405
1452
|
placeholder: "搜索菜单...",
|
|
1406
|
-
onFocus: o[1] || (o[1] = (
|
|
1453
|
+
onFocus: o[1] || (o[1] = (n) => S.value = !0)
|
|
1407
1454
|
}, null, 544), [
|
|
1408
|
-
[
|
|
1455
|
+
[yt, H.value]
|
|
1409
1456
|
]),
|
|
1410
1457
|
R(Ve, { name: "search-dropdown" }, {
|
|
1411
|
-
default:
|
|
1412
|
-
S.value && (_.value.length > 0 ||
|
|
1413
|
-
_.value.length > 0 ? (
|
|
1414
|
-
(
|
|
1415
|
-
key:
|
|
1458
|
+
default: X(() => [
|
|
1459
|
+
S.value && (_.value.length > 0 || H.value) ? (w(), N("div", qn, [
|
|
1460
|
+
_.value.length > 0 ? (w(), N("div", Gn, [
|
|
1461
|
+
(w(!0), N(he, null, ge(_.value, (n) => (w(), N("div", {
|
|
1462
|
+
key: n.path,
|
|
1416
1463
|
class: "top-menu__search-item",
|
|
1417
|
-
onClick: (
|
|
1464
|
+
onClick: (a) => Ce(n.path)
|
|
1418
1465
|
}, [
|
|
1419
|
-
|
|
1420
|
-
|
|
1466
|
+
n.title !== "首页" ? (w(), N("span", Hn, [
|
|
1467
|
+
ee(L(n.icon)) ? (w(), ce(y(Z), {
|
|
1421
1468
|
key: 0,
|
|
1422
|
-
name: L(
|
|
1469
|
+
name: L(n.icon),
|
|
1423
1470
|
size: 16
|
|
1424
|
-
}, null, 8, ["name"])) : (
|
|
1471
|
+
}, null, 8, ["name"])) : (w(), N("span", Wn, q(J(n.title)), 1))
|
|
1425
1472
|
])) : ie("", !0),
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
], 8,
|
|
1429
|
-
])) : (
|
|
1473
|
+
s("span", Xn, q(n.title), 1),
|
|
1474
|
+
n.parentTitle ? (w(), N("span", Yn, q(n.parentTitle), 1)) : ie("", !0)
|
|
1475
|
+
], 8, Kn))), 128))
|
|
1476
|
+
])) : (w(), N("div", Jn, " 未找到匹配的菜单 "))
|
|
1430
1477
|
])) : ie("", !0)
|
|
1431
1478
|
]),
|
|
1432
1479
|
_: 1
|
|
1433
1480
|
})
|
|
1434
1481
|
], 512),
|
|
1435
|
-
|
|
1482
|
+
s("div", {
|
|
1436
1483
|
class: "top-menu__action",
|
|
1437
1484
|
onClick: re,
|
|
1438
1485
|
title: O.value ? "退出全屏" : "全屏"
|
|
1439
1486
|
}, [
|
|
1440
|
-
R(
|
|
1487
|
+
R(y(Z), {
|
|
1441
1488
|
name: O.value ? "fullscreen-exit" : "fullscreen",
|
|
1442
1489
|
size: 16
|
|
1443
1490
|
}, null, 8, ["name"])
|
|
1444
|
-
], 8,
|
|
1445
|
-
|
|
1491
|
+
], 8, Zn),
|
|
1492
|
+
s("div", {
|
|
1446
1493
|
class: "top-menu__action",
|
|
1447
|
-
onClick:
|
|
1494
|
+
onClick: fe,
|
|
1448
1495
|
title: "换肤设置"
|
|
1449
1496
|
}, [
|
|
1450
|
-
R(
|
|
1497
|
+
R(y(Z), {
|
|
1451
1498
|
name: "skin",
|
|
1452
1499
|
size: 16
|
|
1453
1500
|
})
|
|
1454
1501
|
]),
|
|
1455
|
-
|
|
1502
|
+
s("div", {
|
|
1456
1503
|
class: "top-menu__action",
|
|
1457
1504
|
onClick: $,
|
|
1458
1505
|
title: "切换主题"
|
|
1459
1506
|
}, [
|
|
1460
|
-
R(
|
|
1461
|
-
name:
|
|
1507
|
+
R(y(Z), {
|
|
1508
|
+
name: y(h).isDark ? "sun" : "moon",
|
|
1462
1509
|
size: 16
|
|
1463
1510
|
}, null, 8, ["name"])
|
|
1464
1511
|
]),
|
|
1465
|
-
|
|
1512
|
+
s("div", {
|
|
1466
1513
|
class: "top-menu__user",
|
|
1467
1514
|
ref_key: "dropdownRef",
|
|
1468
|
-
ref:
|
|
1515
|
+
ref: Q
|
|
1469
1516
|
}, [
|
|
1470
|
-
|
|
1517
|
+
s("div", {
|
|
1471
1518
|
class: "top-menu__user-trigger",
|
|
1472
1519
|
onClick: it(z, ["stop"])
|
|
1473
1520
|
}, [
|
|
1474
|
-
|
|
1475
|
-
|
|
1521
|
+
s("div", Qn, [
|
|
1522
|
+
s("span", null, q(((c = y(b).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
|
|
1476
1523
|
]),
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
class:
|
|
1524
|
+
s("span", eo, q(y(b).userName), 1),
|
|
1525
|
+
s("span", {
|
|
1526
|
+
class: _e(["top-menu__user-arrow", { "is-active": G.value }])
|
|
1480
1527
|
}, "▼", 2)
|
|
1481
1528
|
]),
|
|
1482
1529
|
R(Ve, { name: "dropdown" }, {
|
|
1483
|
-
default:
|
|
1484
|
-
var
|
|
1530
|
+
default: X(() => {
|
|
1531
|
+
var n;
|
|
1485
1532
|
return [
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1533
|
+
G.value ? (w(), N("div", to, [
|
|
1534
|
+
s("div", so, [
|
|
1535
|
+
s("div", no, [
|
|
1536
|
+
s("span", null, q(((n = y(b).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
|
|
1490
1537
|
]),
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1538
|
+
s("div", oo, [
|
|
1539
|
+
s("div", ro, q(y(b).userName), 1),
|
|
1540
|
+
s("div", ao, q(y(b).departmentName), 1)
|
|
1494
1541
|
])
|
|
1495
1542
|
]),
|
|
1496
|
-
o[8] || (o[8] =
|
|
1497
|
-
|
|
1498
|
-
|
|
1543
|
+
o[8] || (o[8] = s("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1544
|
+
s("div", io, [
|
|
1545
|
+
s("div", {
|
|
1499
1546
|
class: "top-menu__dropdown-item",
|
|
1500
1547
|
onClick: Be
|
|
1501
1548
|
}, [
|
|
1502
|
-
R(
|
|
1549
|
+
R(y(Z), {
|
|
1503
1550
|
name: "user",
|
|
1504
1551
|
size: 16
|
|
1505
1552
|
}),
|
|
1506
|
-
o[4] || (o[4] =
|
|
1553
|
+
o[4] || (o[4] = s("span", null, "个人信息", -1))
|
|
1507
1554
|
]),
|
|
1508
|
-
|
|
1555
|
+
s("div", {
|
|
1509
1556
|
class: "top-menu__dropdown-item",
|
|
1510
1557
|
onClick: Me
|
|
1511
1558
|
}, [
|
|
1512
|
-
R(
|
|
1559
|
+
R(y(Z), {
|
|
1513
1560
|
name: "lock",
|
|
1514
1561
|
size: 16
|
|
1515
1562
|
}),
|
|
1516
|
-
o[5] || (o[5] =
|
|
1563
|
+
o[5] || (o[5] = s("span", null, "修改密码", -1))
|
|
1517
1564
|
]),
|
|
1518
|
-
o[7] || (o[7] =
|
|
1519
|
-
|
|
1565
|
+
o[7] || (o[7] = s("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1566
|
+
s("div", {
|
|
1520
1567
|
class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
|
|
1521
|
-
onClick:
|
|
1568
|
+
onClick: K
|
|
1522
1569
|
}, [
|
|
1523
|
-
R(
|
|
1570
|
+
R(y(Z), {
|
|
1524
1571
|
name: "logout",
|
|
1525
1572
|
size: 16
|
|
1526
1573
|
}),
|
|
1527
|
-
o[6] || (o[6] =
|
|
1574
|
+
o[6] || (o[6] = s("span", null, "退出登录", -1))
|
|
1528
1575
|
])
|
|
1529
1576
|
])
|
|
1530
1577
|
])) : ie("", !0)
|
|
@@ -1534,85 +1581,85 @@ const Na = {
|
|
|
1534
1581
|
})
|
|
1535
1582
|
], 512)
|
|
1536
1583
|
]),
|
|
1537
|
-
R(
|
|
1584
|
+
R(y(Nt), {
|
|
1538
1585
|
modelValue: A.value,
|
|
1539
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
1586
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => A.value = n),
|
|
1540
1587
|
title: "换肤设置",
|
|
1541
1588
|
direction: "rtl",
|
|
1542
1589
|
size: "320px"
|
|
1543
1590
|
}, {
|
|
1544
|
-
default:
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
o[12] || (o[12] =
|
|
1548
|
-
|
|
1549
|
-
(
|
|
1550
|
-
key:
|
|
1551
|
-
class:
|
|
1552
|
-
onClick: (
|
|
1591
|
+
default: X(() => [
|
|
1592
|
+
s("div", lo, [
|
|
1593
|
+
s("div", co, [
|
|
1594
|
+
o[12] || (o[12] = s("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1595
|
+
s("div", uo, [
|
|
1596
|
+
(w(), N(he, null, ge(Te, (n) => s("div", {
|
|
1597
|
+
key: n.value,
|
|
1598
|
+
class: _e(["layout-option", { "is-active": Ne.value === n.value }]),
|
|
1599
|
+
onClick: (a) => Oe(n.value)
|
|
1553
1600
|
}, [
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1601
|
+
s("div", po, [
|
|
1602
|
+
n.value === "sidebar" ? (w(), N("div", mo, [...o[9] || (o[9] = [
|
|
1603
|
+
s("div", { class: "preview-aside" }, null, -1),
|
|
1604
|
+
s("div", { class: "preview-main" }, [
|
|
1605
|
+
s("div", { class: "preview-header" }),
|
|
1606
|
+
s("div", { class: "preview-content" })
|
|
1560
1607
|
], -1)
|
|
1561
|
-
])])) :
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
])])) : (
|
|
1565
|
-
|
|
1566
|
-
|
|
1608
|
+
])])) : n.value === "top" ? (w(), N("div", ho, [...o[10] || (o[10] = [
|
|
1609
|
+
s("div", { class: "preview-header-full" }, null, -1),
|
|
1610
|
+
s("div", { class: "preview-content-full" }, null, -1)
|
|
1611
|
+
])])) : (w(), N("div", vo, [...o[11] || (o[11] = [
|
|
1612
|
+
s("div", { class: "preview-header-mix" }, [
|
|
1613
|
+
s("div", { class: "preview-mix-left" })
|
|
1567
1614
|
], -1),
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1615
|
+
s("div", { class: "preview-mix-body" }, [
|
|
1616
|
+
s("div", { class: "preview-mix-aside" }),
|
|
1617
|
+
s("div", { class: "preview-mix-content" })
|
|
1571
1618
|
], -1)
|
|
1572
1619
|
])]))
|
|
1573
1620
|
]),
|
|
1574
|
-
|
|
1575
|
-
], 10,
|
|
1621
|
+
s("span", go, q(n.label), 1)
|
|
1622
|
+
], 10, fo)), 64))
|
|
1576
1623
|
])
|
|
1577
1624
|
]),
|
|
1578
|
-
|
|
1579
|
-
o[13] || (o[13] =
|
|
1580
|
-
|
|
1581
|
-
(
|
|
1582
|
-
key:
|
|
1583
|
-
class:
|
|
1584
|
-
style:
|
|
1585
|
-
title:
|
|
1586
|
-
onClick: (
|
|
1625
|
+
s("div", _o, [
|
|
1626
|
+
o[13] || (o[13] = s("div", { class: "settings-title" }, "主题色", -1)),
|
|
1627
|
+
s("div", wo, [
|
|
1628
|
+
(w(), N(he, null, ge(C, (n) => s("div", {
|
|
1629
|
+
key: n.value,
|
|
1630
|
+
class: _e(["color-option", { "is-active": y(h).primaryColor === n.value }]),
|
|
1631
|
+
style: Ye({ backgroundColor: n.value }),
|
|
1632
|
+
title: n.label,
|
|
1633
|
+
onClick: (a) => Ue(n.value)
|
|
1587
1634
|
}, [
|
|
1588
|
-
|
|
1635
|
+
y(h).primaryColor === n.value ? (w(), ce(y(Z), {
|
|
1589
1636
|
key: 0,
|
|
1590
1637
|
name: "check",
|
|
1591
1638
|
size: 12,
|
|
1592
1639
|
color: "#fff"
|
|
1593
1640
|
})) : ie("", !0)
|
|
1594
|
-
], 14,
|
|
1641
|
+
], 14, yo)), 64))
|
|
1595
1642
|
])
|
|
1596
1643
|
]),
|
|
1597
|
-
|
|
1598
|
-
o[18] || (o[18] =
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
o[15] || (o[15] =
|
|
1602
|
-
|
|
1603
|
-
class:
|
|
1604
|
-
onClick:
|
|
1644
|
+
s("div", ko, [
|
|
1645
|
+
o[18] || (o[18] = s("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1646
|
+
s("div", bo, [
|
|
1647
|
+
s("div", xo, [
|
|
1648
|
+
o[15] || (o[15] = s("span", null, "灰色模式", -1)),
|
|
1649
|
+
s("div", {
|
|
1650
|
+
class: _e(["switch-wrapper", { "is-checked": V.value }]),
|
|
1651
|
+
onClick: be
|
|
1605
1652
|
}, [...o[14] || (o[14] = [
|
|
1606
|
-
|
|
1653
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
1607
1654
|
])], 2)
|
|
1608
1655
|
]),
|
|
1609
|
-
|
|
1610
|
-
o[17] || (o[17] =
|
|
1611
|
-
|
|
1612
|
-
class:
|
|
1613
|
-
onClick:
|
|
1656
|
+
s("div", Co, [
|
|
1657
|
+
o[17] || (o[17] = s("span", null, "暗黑模式", -1)),
|
|
1658
|
+
s("div", {
|
|
1659
|
+
class: _e(["switch-wrapper", { "is-checked": y(h).isDark }]),
|
|
1660
|
+
onClick: we
|
|
1614
1661
|
}, [...o[16] || (o[16] = [
|
|
1615
|
-
|
|
1662
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
1616
1663
|
])], 2)
|
|
1617
1664
|
])
|
|
1618
1665
|
])
|
|
@@ -1624,73 +1671,73 @@ const Na = {
|
|
|
1624
1671
|
]);
|
|
1625
1672
|
};
|
|
1626
1673
|
}
|
|
1627
|
-
}),
|
|
1674
|
+
}), Eo = /* @__PURE__ */ Se(No, [["__scopeId", "data-v-5b8c9d39"]]), $o = { class: "mix-top-menu" }, So = { class: "mix-top-menu__logo" }, Mo = { class: "mix-top-menu__logo-text" }, Io = { class: "mix-top-menu__menu-content" }, Lo = {
|
|
1628
1675
|
key: 0,
|
|
1629
1676
|
class: "mix-top-menu__menu-icon"
|
|
1630
|
-
},
|
|
1677
|
+
}, Ao = {
|
|
1631
1678
|
key: 1,
|
|
1632
1679
|
class: "mix-top-menu__menu-char"
|
|
1633
|
-
},
|
|
1680
|
+
}, To = { class: "mix-top-menu__menu-text" }, Oo = { class: "mix-top-menu__actions" }, Uo = {
|
|
1634
1681
|
key: 0,
|
|
1635
1682
|
class: "mix-top-menu__search-dropdown"
|
|
1636
|
-
},
|
|
1683
|
+
}, Bo = {
|
|
1637
1684
|
key: 0,
|
|
1638
1685
|
class: "mix-top-menu__search-results"
|
|
1639
|
-
},
|
|
1686
|
+
}, Po = ["onClick"], Ro = {
|
|
1640
1687
|
key: 0,
|
|
1641
1688
|
class: "mix-top-menu__search-icon-item"
|
|
1642
|
-
},
|
|
1689
|
+
}, Do = {
|
|
1643
1690
|
key: 1,
|
|
1644
1691
|
class: "mix-top-menu__search-char"
|
|
1645
|
-
},
|
|
1692
|
+
}, zo = { class: "mix-top-menu__search-item-title" }, Fo = {
|
|
1646
1693
|
key: 1,
|
|
1647
1694
|
class: "mix-top-menu__search-item-parent"
|
|
1648
|
-
},
|
|
1695
|
+
}, Vo = {
|
|
1649
1696
|
key: 1,
|
|
1650
1697
|
class: "mix-top-menu__search-empty"
|
|
1651
|
-
},
|
|
1698
|
+
}, jo = ["title"], qo = { class: "mix-top-menu__avatar" }, Go = { class: "mix-top-menu__user-name" }, Ko = {
|
|
1652
1699
|
key: 0,
|
|
1653
1700
|
class: "mix-top-menu__dropdown"
|
|
1654
|
-
},
|
|
1701
|
+
}, Ho = { class: "mix-top-menu__dropdown-header" }, Wo = { class: "mix-top-menu__dropdown-avatar" }, Xo = { class: "mix-top-menu__dropdown-info" }, Yo = { class: "mix-top-menu__dropdown-name" }, Jo = { class: "mix-top-menu__dropdown-role" }, Zo = { class: "mix-top-menu__dropdown-menu" }, Qo = { class: "settings-drawer" }, er = { class: "settings-section" }, tr = { class: "settings-layout-options" }, sr = ["onClick"], nr = { class: "layout-option__preview" }, or = {
|
|
1655
1702
|
key: 0,
|
|
1656
1703
|
class: "layout-preview-sidebar"
|
|
1657
|
-
},
|
|
1704
|
+
}, rr = {
|
|
1658
1705
|
key: 1,
|
|
1659
1706
|
class: "layout-preview-top"
|
|
1660
|
-
},
|
|
1707
|
+
}, ar = {
|
|
1661
1708
|
key: 2,
|
|
1662
1709
|
class: "layout-preview-mix"
|
|
1663
|
-
},
|
|
1710
|
+
}, ir = { class: "layout-option__label" }, lr = { class: "settings-section" }, cr = { class: "settings-color-options" }, ur = ["title", "onClick"], dr = { class: "settings-section" }, fr = { class: "settings-switch-list" }, pr = { class: "settings-switch-item" }, mr = { class: "settings-switch-item" }, hr = /* @__PURE__ */ Ae({
|
|
1664
1711
|
__name: "MixTopMenu",
|
|
1665
1712
|
setup(r) {
|
|
1666
|
-
const f = qe(), v = Pe(), p = ze(), h = Re(),
|
|
1713
|
+
const f = qe(), v = Pe(), p = ze(), h = Re(), b = $e(), T = Je(), g = P(""), I = (n, a = "") => {
|
|
1667
1714
|
const u = [];
|
|
1668
|
-
return
|
|
1669
|
-
|
|
1715
|
+
return n.forEach((i) => {
|
|
1716
|
+
i.children && i.children.length > 0 ? u.push(...I(i.children, i.menuName)) : u.push({ ...i, parentTitle: a, title: i.menuName, path: i.menuUrl });
|
|
1670
1717
|
}), u;
|
|
1671
1718
|
}, _ = j(() => L.value.trim() ? I(p.menuList).filter(
|
|
1672
|
-
(
|
|
1719
|
+
(a) => a.title.toLowerCase().includes(L.value.toLowerCase())
|
|
1673
1720
|
) : []), x = j(() => {
|
|
1674
|
-
const
|
|
1675
|
-
return (
|
|
1676
|
-
}), M = j(() => p.menuList.find((
|
|
1721
|
+
const n = p.menuList.find((a) => a.menuUrl === g.value);
|
|
1722
|
+
return (n == null ? void 0 : n.children) || [];
|
|
1723
|
+
}), M = j(() => p.menuList.find((n) => !!(f.path === n.menuUrl || n.children && n.children.some((a) => f.path.startsWith(a.menuUrl) || f.path === a.menuUrl)))), E = () => {
|
|
1677
1724
|
M.value ? g.value = M.value.menuUrl : p.menuList.length > 0 && (g.value = p.menuList[0].menuUrl);
|
|
1678
|
-
},
|
|
1679
|
-
g.value =
|
|
1680
|
-
const
|
|
1681
|
-
if (
|
|
1682
|
-
if (
|
|
1683
|
-
const u =
|
|
1725
|
+
}, G = (n) => {
|
|
1726
|
+
g.value = n;
|
|
1727
|
+
const a = p.menuList.find((u) => u.menuUrl === n);
|
|
1728
|
+
if (a)
|
|
1729
|
+
if (a.children && a.children.length > 0) {
|
|
1730
|
+
const u = a.children[0].menuUrl;
|
|
1684
1731
|
f.path !== u && v.push(u);
|
|
1685
1732
|
} else
|
|
1686
|
-
f.path !==
|
|
1687
|
-
},
|
|
1688
|
-
|
|
1733
|
+
f.path !== n && v.push(n);
|
|
1734
|
+
}, Q = j(() => h.isDark ? "#1d1e1f" : "#fff"), O = j(() => h.isDark ? "#cfd3dc" : "#303133"), A = j(() => "#409eff"), V = P(!1), S = P(null), H = P(!1), Y = P(!1), oe = P(!1), U = P(!1), L = P(""), J = P(null);
|
|
1735
|
+
Xe(() => f.path, () => {
|
|
1689
1736
|
E(), h.setMixSubMenus(x.value);
|
|
1690
|
-
}),
|
|
1691
|
-
|
|
1737
|
+
}), Xe(() => p.menuList, (n) => {
|
|
1738
|
+
n && n.length > 0 && (E(), h.setMixSubMenus(x.value));
|
|
1692
1739
|
}, { immediate: !0 });
|
|
1693
|
-
const
|
|
1740
|
+
const ee = /* @__PURE__ */ new Set([
|
|
1694
1741
|
"arrow-up",
|
|
1695
1742
|
"arrow-down",
|
|
1696
1743
|
"arrow-left",
|
|
@@ -1792,10 +1839,10 @@ const Na = {
|
|
|
1792
1839
|
"sun",
|
|
1793
1840
|
"theme",
|
|
1794
1841
|
"skin"
|
|
1795
|
-
]), $ = (
|
|
1796
|
-
if (!
|
|
1797
|
-
if (
|
|
1798
|
-
const u =
|
|
1842
|
+
]), $ = (n) => {
|
|
1843
|
+
if (!n || n === "") return "";
|
|
1844
|
+
if (n.startsWith("tineco-icon-")) {
|
|
1845
|
+
const u = n.replace("tineco-icon-", "");
|
|
1799
1846
|
return {
|
|
1800
1847
|
home: "home",
|
|
1801
1848
|
dashboard: "dashboard",
|
|
@@ -1828,37 +1875,37 @@ const Na = {
|
|
|
1828
1875
|
app: "app",
|
|
1829
1876
|
list: "list",
|
|
1830
1877
|
grid: "grid"
|
|
1831
|
-
}[
|
|
1832
|
-
}, re = (
|
|
1833
|
-
h.toggleTheme(),
|
|
1878
|
+
}[n] || n;
|
|
1879
|
+
}, re = (n) => n ? n.charAt(0) : "", te = (n) => ee.has(n), z = () => {
|
|
1880
|
+
h.toggleTheme(), Y.value = !1;
|
|
1834
1881
|
}, le = () => {
|
|
1835
1882
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1836
|
-
},
|
|
1837
|
-
|
|
1883
|
+
}, de = () => {
|
|
1884
|
+
H.value = !!document.fullscreenElement;
|
|
1838
1885
|
}, Ce = () => {
|
|
1839
1886
|
V.value = !V.value;
|
|
1840
|
-
},
|
|
1887
|
+
}, fe = () => {
|
|
1841
1888
|
V.value = !1;
|
|
1842
|
-
},
|
|
1889
|
+
}, ke = () => {
|
|
1843
1890
|
U.value = !1, L.value = "";
|
|
1844
|
-
},
|
|
1845
|
-
v.push(
|
|
1846
|
-
},
|
|
1847
|
-
|
|
1848
|
-
}, Te = (
|
|
1849
|
-
oe.value =
|
|
1850
|
-
const
|
|
1851
|
-
|
|
1852
|
-
},
|
|
1853
|
-
Te(!oe.value),
|
|
1891
|
+
}, be = (n) => {
|
|
1892
|
+
v.push(n), ke();
|
|
1893
|
+
}, we = () => {
|
|
1894
|
+
Y.value = !0;
|
|
1895
|
+
}, Te = (n) => {
|
|
1896
|
+
oe.value = n;
|
|
1897
|
+
const a = document.documentElement;
|
|
1898
|
+
n ? a.classList.add("grey-mode") : a.classList.remove("grey-mode");
|
|
1899
|
+
}, Ne = () => {
|
|
1900
|
+
Te(!oe.value), Y.value = !1;
|
|
1854
1901
|
}, Oe = () => {
|
|
1855
|
-
h.toggleTheme(),
|
|
1902
|
+
h.toggleTheme(), Y.value = !1;
|
|
1856
1903
|
}, C = [
|
|
1857
1904
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1858
1905
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1859
1906
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1860
|
-
], Ue = j(() => h.layout), Be = (
|
|
1861
|
-
h.setLayout(
|
|
1907
|
+
], Ue = j(() => h.layout), Be = (n) => {
|
|
1908
|
+
h.setLayout(n), Y.value = !1;
|
|
1862
1909
|
}, Me = [
|
|
1863
1910
|
{ value: "#409eff", label: "默认蓝" },
|
|
1864
1911
|
{ value: "#1890ff", label: "科技蓝" },
|
|
@@ -1866,58 +1913,58 @@ const Na = {
|
|
|
1866
1913
|
{ value: "#faad14", label: "日落橙" },
|
|
1867
1914
|
{ value: "#f5222d", label: "薄暮红" },
|
|
1868
1915
|
{ value: "#722ed1", label: "酱紫" }
|
|
1869
|
-
],
|
|
1870
|
-
h.setPrimaryColor(
|
|
1916
|
+
], K = (n) => {
|
|
1917
|
+
h.setPrimaryColor(n), Y.value = !1;
|
|
1871
1918
|
}, B = () => {
|
|
1872
|
-
|
|
1919
|
+
fe(), v.push("/profile");
|
|
1873
1920
|
}, t = () => {
|
|
1874
|
-
|
|
1921
|
+
fe(), v.push("/change-password");
|
|
1875
1922
|
}, e = () => {
|
|
1876
|
-
|
|
1877
|
-
}, o = (
|
|
1878
|
-
S.value && !S.value.contains(
|
|
1879
|
-
}, c = (
|
|
1880
|
-
|
|
1923
|
+
fe(), T.logout(), b.clearUserInfo(), p.clearMenu(), v.push("/login");
|
|
1924
|
+
}, o = (n) => {
|
|
1925
|
+
S.value && !S.value.contains(n.target) && fe(), J.value && !J.value.contains(n.target) && ke();
|
|
1926
|
+
}, c = (n) => {
|
|
1927
|
+
n.key === "Escape" && (ke(), fe());
|
|
1881
1928
|
};
|
|
1882
|
-
return
|
|
1883
|
-
document.addEventListener("click", o), document.addEventListener("fullscreenchange",
|
|
1884
|
-
}),
|
|
1885
|
-
document.removeEventListener("click", o), document.removeEventListener("fullscreenchange",
|
|
1886
|
-
}), (
|
|
1929
|
+
return _t(() => {
|
|
1930
|
+
document.addEventListener("click", o), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", c), oe.value = document.documentElement.classList.contains("grey-mode"), E();
|
|
1931
|
+
}), wt(() => {
|
|
1932
|
+
document.removeEventListener("click", o), document.removeEventListener("fullscreenchange", de), document.removeEventListener("keydown", c);
|
|
1933
|
+
}), (n, a) => {
|
|
1887
1934
|
var u;
|
|
1888
|
-
return
|
|
1889
|
-
|
|
1890
|
-
|
|
1935
|
+
return w(), N("div", $o, [
|
|
1936
|
+
s("div", So, [
|
|
1937
|
+
a[3] || (a[3] = s("img", {
|
|
1891
1938
|
src: Et,
|
|
1892
1939
|
alt: "Logo",
|
|
1893
1940
|
class: "mix-top-menu__logo-img"
|
|
1894
1941
|
}, null, -1)),
|
|
1895
|
-
|
|
1942
|
+
s("span", Mo, q(y(h).appName), 1)
|
|
1896
1943
|
]),
|
|
1897
|
-
R(
|
|
1944
|
+
R(y(Ct), {
|
|
1898
1945
|
"model-value": g.value,
|
|
1899
1946
|
mode: "horizontal",
|
|
1900
|
-
"background-color":
|
|
1947
|
+
"background-color": Q.value,
|
|
1901
1948
|
"text-color": O.value,
|
|
1902
1949
|
"active-text-color": A.value,
|
|
1903
1950
|
class: "mix-top-menu__menu",
|
|
1904
|
-
onSelect:
|
|
1951
|
+
onSelect: G
|
|
1905
1952
|
}, {
|
|
1906
|
-
default:
|
|
1907
|
-
(
|
|
1908
|
-
key:
|
|
1909
|
-
index:
|
|
1953
|
+
default: X(() => [
|
|
1954
|
+
(w(!0), N(he, null, ge(y(p).menuList, (i) => (w(), ce(y(He), {
|
|
1955
|
+
key: i.menuUrl,
|
|
1956
|
+
index: i.menuUrl
|
|
1910
1957
|
}, {
|
|
1911
|
-
default:
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1958
|
+
default: X(() => [
|
|
1959
|
+
s("span", Io, [
|
|
1960
|
+
i.menuName !== "首页" ? (w(), N("span", Lo, [
|
|
1961
|
+
te($(i.icon)) ? (w(), ce(y(Z), {
|
|
1915
1962
|
key: 0,
|
|
1916
|
-
name: $(
|
|
1963
|
+
name: $(i.icon),
|
|
1917
1964
|
size: 16
|
|
1918
|
-
}, null, 8, ["name"])) : (
|
|
1965
|
+
}, null, 8, ["name"])) : (w(), N("span", Ao, q(re(i.menuName)), 1))
|
|
1919
1966
|
])) : ie("", !0),
|
|
1920
|
-
|
|
1967
|
+
s("span", To, q(i.menuName), 1)
|
|
1921
1968
|
])
|
|
1922
1969
|
]),
|
|
1923
1970
|
_: 2
|
|
@@ -1925,144 +1972,144 @@ const Na = {
|
|
|
1925
1972
|
]),
|
|
1926
1973
|
_: 1
|
|
1927
1974
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1928
|
-
|
|
1929
|
-
|
|
1975
|
+
s("div", Oo, [
|
|
1976
|
+
s("div", {
|
|
1930
1977
|
class: "mix-top-menu__search",
|
|
1931
1978
|
ref_key: "searchRef",
|
|
1932
|
-
ref:
|
|
1979
|
+
ref: J
|
|
1933
1980
|
}, [
|
|
1934
|
-
R(
|
|
1981
|
+
R(y(Z), {
|
|
1935
1982
|
name: "search",
|
|
1936
1983
|
size: 14,
|
|
1937
1984
|
class: "mix-top-menu__search-icon"
|
|
1938
1985
|
}),
|
|
1939
|
-
at(
|
|
1940
|
-
"onUpdate:modelValue":
|
|
1986
|
+
at(s("input", {
|
|
1987
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => L.value = i),
|
|
1941
1988
|
type: "text",
|
|
1942
1989
|
class: "mix-top-menu__search-input",
|
|
1943
1990
|
placeholder: "搜索菜单...",
|
|
1944
|
-
onFocus:
|
|
1991
|
+
onFocus: a[1] || (a[1] = (i) => U.value = !0)
|
|
1945
1992
|
}, null, 544), [
|
|
1946
|
-
[
|
|
1993
|
+
[yt, L.value]
|
|
1947
1994
|
]),
|
|
1948
1995
|
R(Ve, { name: "search-dropdown" }, {
|
|
1949
|
-
default:
|
|
1950
|
-
U.value && (_.value.length > 0 || L.value) ? (
|
|
1951
|
-
_.value.length > 0 ? (
|
|
1952
|
-
(
|
|
1953
|
-
key:
|
|
1996
|
+
default: X(() => [
|
|
1997
|
+
U.value && (_.value.length > 0 || L.value) ? (w(), N("div", Uo, [
|
|
1998
|
+
_.value.length > 0 ? (w(), N("div", Bo, [
|
|
1999
|
+
(w(!0), N(he, null, ge(_.value, (i) => (w(), N("div", {
|
|
2000
|
+
key: i.path,
|
|
1954
2001
|
class: "mix-top-menu__search-item",
|
|
1955
|
-
onClick: (l) =>
|
|
2002
|
+
onClick: (l) => be(i.path)
|
|
1956
2003
|
}, [
|
|
1957
|
-
|
|
1958
|
-
|
|
2004
|
+
i.title !== "首页" ? (w(), N("span", Ro, [
|
|
2005
|
+
te($(i.icon)) ? (w(), ce(y(Z), {
|
|
1959
2006
|
key: 0,
|
|
1960
|
-
name: $(
|
|
2007
|
+
name: $(i.icon),
|
|
1961
2008
|
size: 16
|
|
1962
|
-
}, null, 8, ["name"])) : (
|
|
2009
|
+
}, null, 8, ["name"])) : (w(), N("span", Do, q(re(i.title)), 1))
|
|
1963
2010
|
])) : ie("", !0),
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
], 8,
|
|
1967
|
-
])) : (
|
|
2011
|
+
s("span", zo, q(i.title), 1),
|
|
2012
|
+
i.parentTitle ? (w(), N("span", Fo, q(i.parentTitle), 1)) : ie("", !0)
|
|
2013
|
+
], 8, Po))), 128))
|
|
2014
|
+
])) : (w(), N("div", Vo, " 未找到匹配的菜单 "))
|
|
1968
2015
|
])) : ie("", !0)
|
|
1969
2016
|
]),
|
|
1970
2017
|
_: 1
|
|
1971
2018
|
})
|
|
1972
2019
|
], 512),
|
|
1973
|
-
|
|
2020
|
+
s("div", {
|
|
1974
2021
|
class: "mix-top-menu__action",
|
|
1975
2022
|
onClick: le,
|
|
1976
|
-
title:
|
|
2023
|
+
title: H.value ? "退出全屏" : "全屏"
|
|
1977
2024
|
}, [
|
|
1978
|
-
R(
|
|
1979
|
-
name:
|
|
2025
|
+
R(y(Z), {
|
|
2026
|
+
name: H.value ? "fullscreen-exit" : "fullscreen",
|
|
1980
2027
|
size: 16
|
|
1981
2028
|
}, null, 8, ["name"])
|
|
1982
|
-
], 8,
|
|
1983
|
-
|
|
2029
|
+
], 8, jo),
|
|
2030
|
+
s("div", {
|
|
1984
2031
|
class: "mix-top-menu__action",
|
|
1985
|
-
onClick:
|
|
2032
|
+
onClick: we,
|
|
1986
2033
|
title: "换肤设置"
|
|
1987
2034
|
}, [
|
|
1988
|
-
R(
|
|
2035
|
+
R(y(Z), {
|
|
1989
2036
|
name: "skin",
|
|
1990
2037
|
size: 16
|
|
1991
2038
|
})
|
|
1992
2039
|
]),
|
|
1993
|
-
|
|
2040
|
+
s("div", {
|
|
1994
2041
|
class: "mix-top-menu__action",
|
|
1995
2042
|
onClick: z,
|
|
1996
2043
|
title: "切换主题"
|
|
1997
2044
|
}, [
|
|
1998
|
-
R(
|
|
1999
|
-
name:
|
|
2045
|
+
R(y(Z), {
|
|
2046
|
+
name: y(h).isDark ? "sun" : "moon",
|
|
2000
2047
|
size: 16
|
|
2001
2048
|
}, null, 8, ["name"])
|
|
2002
2049
|
]),
|
|
2003
|
-
|
|
2050
|
+
s("div", {
|
|
2004
2051
|
class: "mix-top-menu__user",
|
|
2005
2052
|
ref_key: "dropdownRef",
|
|
2006
2053
|
ref: S
|
|
2007
2054
|
}, [
|
|
2008
|
-
|
|
2055
|
+
s("div", {
|
|
2009
2056
|
class: "mix-top-menu__user-trigger",
|
|
2010
2057
|
onClick: it(Ce, ["stop"])
|
|
2011
2058
|
}, [
|
|
2012
|
-
|
|
2013
|
-
|
|
2059
|
+
s("div", qo, [
|
|
2060
|
+
s("span", null, q(((u = y(b).userName) == null ? void 0 : u.charAt(0)) || "U"), 1)
|
|
2014
2061
|
]),
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
class:
|
|
2062
|
+
s("span", Go, q(y(b).userName), 1),
|
|
2063
|
+
s("span", {
|
|
2064
|
+
class: _e(["mix-top-menu__user-arrow", { "is-active": V.value }])
|
|
2018
2065
|
}, "▼", 2)
|
|
2019
2066
|
]),
|
|
2020
2067
|
R(Ve, { name: "dropdown" }, {
|
|
2021
|
-
default:
|
|
2022
|
-
var
|
|
2068
|
+
default: X(() => {
|
|
2069
|
+
var i;
|
|
2023
2070
|
return [
|
|
2024
|
-
V.value ? (
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2071
|
+
V.value ? (w(), N("div", Ko, [
|
|
2072
|
+
s("div", Ho, [
|
|
2073
|
+
s("div", Wo, [
|
|
2074
|
+
s("span", null, q(((i = y(b).userName) == null ? void 0 : i.charAt(0)) || "U"), 1)
|
|
2028
2075
|
]),
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2076
|
+
s("div", Xo, [
|
|
2077
|
+
s("div", Yo, q(y(b).userName), 1),
|
|
2078
|
+
s("div", Jo, q(y(b).departmentName), 1)
|
|
2032
2079
|
])
|
|
2033
2080
|
]),
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2081
|
+
a[8] || (a[8] = s("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2082
|
+
s("div", Zo, [
|
|
2083
|
+
s("div", {
|
|
2037
2084
|
class: "mix-top-menu__dropdown-item",
|
|
2038
2085
|
onClick: B
|
|
2039
2086
|
}, [
|
|
2040
|
-
R(
|
|
2087
|
+
R(y(Z), {
|
|
2041
2088
|
name: "user",
|
|
2042
2089
|
size: 16
|
|
2043
2090
|
}),
|
|
2044
|
-
|
|
2091
|
+
a[4] || (a[4] = s("span", null, "个人信息", -1))
|
|
2045
2092
|
]),
|
|
2046
|
-
|
|
2093
|
+
s("div", {
|
|
2047
2094
|
class: "mix-top-menu__dropdown-item",
|
|
2048
2095
|
onClick: t
|
|
2049
2096
|
}, [
|
|
2050
|
-
R(
|
|
2097
|
+
R(y(Z), {
|
|
2051
2098
|
name: "lock",
|
|
2052
2099
|
size: 16
|
|
2053
2100
|
}),
|
|
2054
|
-
|
|
2101
|
+
a[5] || (a[5] = s("span", null, "修改密码", -1))
|
|
2055
2102
|
]),
|
|
2056
|
-
|
|
2057
|
-
|
|
2103
|
+
a[7] || (a[7] = s("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2104
|
+
s("div", {
|
|
2058
2105
|
class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
|
|
2059
2106
|
onClick: e
|
|
2060
2107
|
}, [
|
|
2061
|
-
R(
|
|
2108
|
+
R(y(Z), {
|
|
2062
2109
|
name: "logout",
|
|
2063
2110
|
size: 16
|
|
2064
2111
|
}),
|
|
2065
|
-
|
|
2112
|
+
a[6] || (a[6] = s("span", null, "退出登录", -1))
|
|
2066
2113
|
])
|
|
2067
2114
|
])
|
|
2068
2115
|
])) : ie("", !0)
|
|
@@ -2072,85 +2119,85 @@ const Na = {
|
|
|
2072
2119
|
})
|
|
2073
2120
|
], 512)
|
|
2074
2121
|
]),
|
|
2075
|
-
R(
|
|
2076
|
-
modelValue:
|
|
2077
|
-
"onUpdate:modelValue":
|
|
2122
|
+
R(y(Nt), {
|
|
2123
|
+
modelValue: Y.value,
|
|
2124
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => Y.value = i),
|
|
2078
2125
|
title: "换肤设置",
|
|
2079
2126
|
direction: "rtl",
|
|
2080
2127
|
size: "320px"
|
|
2081
2128
|
}, {
|
|
2082
|
-
default:
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
(
|
|
2088
|
-
key:
|
|
2089
|
-
class:
|
|
2090
|
-
onClick: (l) => Be(
|
|
2129
|
+
default: X(() => [
|
|
2130
|
+
s("div", Qo, [
|
|
2131
|
+
s("div", er, [
|
|
2132
|
+
a[12] || (a[12] = s("div", { class: "settings-title" }, "布局模式", -1)),
|
|
2133
|
+
s("div", tr, [
|
|
2134
|
+
(w(), N(he, null, ge(C, (i) => s("div", {
|
|
2135
|
+
key: i.value,
|
|
2136
|
+
class: _e(["layout-option", { "is-active": Ue.value === i.value }]),
|
|
2137
|
+
onClick: (l) => Be(i.value)
|
|
2091
2138
|
}, [
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2139
|
+
s("div", nr, [
|
|
2140
|
+
i.value === "sidebar" ? (w(), N("div", or, [...a[9] || (a[9] = [
|
|
2141
|
+
s("div", { class: "preview-aside" }, null, -1),
|
|
2142
|
+
s("div", { class: "preview-main" }, [
|
|
2143
|
+
s("div", { class: "preview-header" }),
|
|
2144
|
+
s("div", { class: "preview-content" })
|
|
2098
2145
|
], -1)
|
|
2099
|
-
])])) :
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
])])) : (
|
|
2103
|
-
|
|
2104
|
-
|
|
2146
|
+
])])) : i.value === "top" ? (w(), N("div", rr, [...a[10] || (a[10] = [
|
|
2147
|
+
s("div", { class: "preview-header-full" }, null, -1),
|
|
2148
|
+
s("div", { class: "preview-content-full" }, null, -1)
|
|
2149
|
+
])])) : (w(), N("div", ar, [...a[11] || (a[11] = [
|
|
2150
|
+
s("div", { class: "preview-header-mix" }, [
|
|
2151
|
+
s("div", { class: "preview-mix-left" })
|
|
2105
2152
|
], -1),
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2153
|
+
s("div", { class: "preview-mix-body" }, [
|
|
2154
|
+
s("div", { class: "preview-mix-aside" }),
|
|
2155
|
+
s("div", { class: "preview-mix-content" })
|
|
2109
2156
|
], -1)
|
|
2110
2157
|
])]))
|
|
2111
2158
|
]),
|
|
2112
|
-
|
|
2113
|
-
], 10,
|
|
2159
|
+
s("span", ir, q(i.label), 1)
|
|
2160
|
+
], 10, sr)), 64))
|
|
2114
2161
|
])
|
|
2115
2162
|
]),
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
(
|
|
2120
|
-
key:
|
|
2121
|
-
class:
|
|
2122
|
-
style:
|
|
2123
|
-
title:
|
|
2124
|
-
onClick: (l) =>
|
|
2163
|
+
s("div", lr, [
|
|
2164
|
+
a[13] || (a[13] = s("div", { class: "settings-title" }, "主题色", -1)),
|
|
2165
|
+
s("div", cr, [
|
|
2166
|
+
(w(), N(he, null, ge(Me, (i) => s("div", {
|
|
2167
|
+
key: i.value,
|
|
2168
|
+
class: _e(["color-option", { "is-active": y(h).primaryColor === i.value }]),
|
|
2169
|
+
style: Ye({ backgroundColor: i.value }),
|
|
2170
|
+
title: i.label,
|
|
2171
|
+
onClick: (l) => K(i.value)
|
|
2125
2172
|
}, [
|
|
2126
|
-
|
|
2173
|
+
y(h).primaryColor === i.value ? (w(), ce(y(Z), {
|
|
2127
2174
|
key: 0,
|
|
2128
2175
|
name: "check",
|
|
2129
2176
|
size: 12,
|
|
2130
2177
|
color: "#fff"
|
|
2131
2178
|
})) : ie("", !0)
|
|
2132
|
-
], 14,
|
|
2179
|
+
], 14, ur)), 64))
|
|
2133
2180
|
])
|
|
2134
2181
|
]),
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
class:
|
|
2142
|
-
onClick:
|
|
2143
|
-
}, [...
|
|
2144
|
-
|
|
2182
|
+
s("div", dr, [
|
|
2183
|
+
a[18] || (a[18] = s("div", { class: "settings-title" }, "功能设置", -1)),
|
|
2184
|
+
s("div", fr, [
|
|
2185
|
+
s("div", pr, [
|
|
2186
|
+
a[15] || (a[15] = s("span", null, "灰色模式", -1)),
|
|
2187
|
+
s("div", {
|
|
2188
|
+
class: _e(["switch-wrapper", { "is-checked": oe.value }]),
|
|
2189
|
+
onClick: Ne
|
|
2190
|
+
}, [...a[14] || (a[14] = [
|
|
2191
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
2145
2192
|
])], 2)
|
|
2146
2193
|
]),
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
class:
|
|
2194
|
+
s("div", mr, [
|
|
2195
|
+
a[17] || (a[17] = s("span", null, "暗黑模式", -1)),
|
|
2196
|
+
s("div", {
|
|
2197
|
+
class: _e(["switch-wrapper", { "is-checked": y(h).isDark }]),
|
|
2151
2198
|
onClick: Oe
|
|
2152
|
-
}, [...
|
|
2153
|
-
|
|
2199
|
+
}, [...a[16] || (a[16] = [
|
|
2200
|
+
s("span", { class: "switch-core" }, null, -1)
|
|
2154
2201
|
])], 2)
|
|
2155
2202
|
])
|
|
2156
2203
|
])
|
|
@@ -2162,71 +2209,71 @@ const Na = {
|
|
|
2162
2209
|
]);
|
|
2163
2210
|
};
|
|
2164
2211
|
}
|
|
2165
|
-
}),
|
|
2212
|
+
}), vr = /* @__PURE__ */ Se(hr, [["__scopeId", "data-v-25806305"]]), gr = {
|
|
2166
2213
|
key: 0,
|
|
2167
2214
|
class: "layout layout--sidebar"
|
|
2168
|
-
},
|
|
2215
|
+
}, _r = { class: "layout__main" }, wr = { class: "layout__header" }, yr = { class: "layout__content" }, kr = {
|
|
2169
2216
|
key: 1,
|
|
2170
2217
|
class: "layout layout--top"
|
|
2171
|
-
},
|
|
2218
|
+
}, br = { class: "layout__top-menu" }, xr = { class: "layout__main" }, Cr = { class: "layout__content" }, Nr = {
|
|
2172
2219
|
key: 2,
|
|
2173
2220
|
class: "layout layout--mix"
|
|
2174
|
-
},
|
|
2221
|
+
}, Er = { class: "layout__mix-top-menu" }, $r = { class: "layout__mix-body" }, Sr = { class: "layout__content" }, Mr = /* @__PURE__ */ Ae({
|
|
2175
2222
|
__name: "index",
|
|
2176
2223
|
setup(r) {
|
|
2177
2224
|
const f = Re(), v = ze(), p = j(
|
|
2178
2225
|
() => f.isCollapsed ? "64px" : "210px"
|
|
2179
|
-
), h = j(() => f.layout),
|
|
2226
|
+
), h = j(() => f.layout), b = j(() => h.value === "mix"), T = j(() => h.value === "sidebar" ? v.menuList : h.value === "mix" ? f.mixSubMenus : []), g = j(() => b.value ? T.value.length > 0 : !1);
|
|
2180
2227
|
return (I, _) => {
|
|
2181
|
-
const x =
|
|
2182
|
-
return
|
|
2183
|
-
h.value === "sidebar" ? (
|
|
2184
|
-
|
|
2228
|
+
const x = Bt("router-view");
|
|
2229
|
+
return w(), N(he, null, [
|
|
2230
|
+
h.value === "sidebar" ? (w(), N("div", gr, [
|
|
2231
|
+
s("aside", {
|
|
2185
2232
|
class: "layout__aside",
|
|
2186
|
-
style:
|
|
2233
|
+
style: Ye({ width: p.value })
|
|
2187
2234
|
}, [
|
|
2188
|
-
R(
|
|
2235
|
+
R(Ut, {
|
|
2189
2236
|
"menu-list": T.value,
|
|
2190
2237
|
"show-logo": !0,
|
|
2191
2238
|
"show-user": !0
|
|
2192
2239
|
}, null, 8, ["menu-list"])
|
|
2193
2240
|
], 4),
|
|
2194
|
-
|
|
2195
|
-
|
|
2241
|
+
s("div", _r, [
|
|
2242
|
+
s("header", wr, [
|
|
2196
2243
|
R(wn)
|
|
2197
2244
|
]),
|
|
2198
|
-
|
|
2245
|
+
s("main", yr, [
|
|
2199
2246
|
R(x)
|
|
2200
2247
|
])
|
|
2201
2248
|
])
|
|
2202
2249
|
])) : ie("", !0),
|
|
2203
|
-
h.value === "top" ? (
|
|
2204
|
-
|
|
2205
|
-
R(
|
|
2250
|
+
h.value === "top" ? (w(), N("div", kr, [
|
|
2251
|
+
s("div", br, [
|
|
2252
|
+
R(Eo)
|
|
2206
2253
|
]),
|
|
2207
|
-
|
|
2208
|
-
|
|
2254
|
+
s("div", xr, [
|
|
2255
|
+
s("main", Cr, [
|
|
2209
2256
|
R(x)
|
|
2210
2257
|
])
|
|
2211
2258
|
])
|
|
2212
2259
|
])) : ie("", !0),
|
|
2213
|
-
h.value === "mix" ? (
|
|
2214
|
-
|
|
2215
|
-
R(
|
|
2260
|
+
h.value === "mix" ? (w(), N("div", Nr, [
|
|
2261
|
+
s("div", Er, [
|
|
2262
|
+
R(vr)
|
|
2216
2263
|
]),
|
|
2217
|
-
|
|
2218
|
-
g.value ? (
|
|
2264
|
+
s("div", $r, [
|
|
2265
|
+
g.value ? (w(), N("aside", {
|
|
2219
2266
|
key: 0,
|
|
2220
2267
|
class: "layout__aside",
|
|
2221
|
-
style:
|
|
2268
|
+
style: Ye({ width: p.value })
|
|
2222
2269
|
}, [
|
|
2223
|
-
R(
|
|
2270
|
+
R(Ut, {
|
|
2224
2271
|
"menu-list": T.value,
|
|
2225
2272
|
"show-logo": !1,
|
|
2226
2273
|
"show-user": !1
|
|
2227
2274
|
}, null, 8, ["menu-list"])
|
|
2228
2275
|
], 4)) : ie("", !0),
|
|
2229
|
-
|
|
2276
|
+
s("main", Sr, [
|
|
2230
2277
|
R(x)
|
|
2231
2278
|
])
|
|
2232
2279
|
])
|
|
@@ -2234,10 +2281,10 @@ const Na = {
|
|
|
2234
2281
|
], 64);
|
|
2235
2282
|
};
|
|
2236
2283
|
}
|
|
2237
|
-
}), Ft = /* @__PURE__ */ Se(
|
|
2284
|
+
}), Ft = /* @__PURE__ */ Se(Mr, [["__scopeId", "data-v-fb6a0b14"]]), Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2238
2285
|
__proto__: null,
|
|
2239
2286
|
default: Ft
|
|
2240
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2287
|
+
}, Symbol.toStringTag, { value: "Module" })), Lr = { class: "tabs-wrapper" }, Ar = { class: "tab-label" }, Tr = ["onClick"], Or = /* @__PURE__ */ Ae({
|
|
2241
2288
|
__name: "Tabs",
|
|
2242
2289
|
setup(r) {
|
|
2243
2290
|
const f = qe(), v = Pe(), p = j(() => {
|
|
@@ -2251,7 +2298,7 @@ const Na = {
|
|
|
2251
2298
|
affix: !0
|
|
2252
2299
|
});
|
|
2253
2300
|
}), g;
|
|
2254
|
-
}), h = j(() => f.path),
|
|
2301
|
+
}), h = j(() => f.path), b = (g) => {
|
|
2255
2302
|
v.push(g);
|
|
2256
2303
|
}, T = (g) => {
|
|
2257
2304
|
const I = p.value.find((_) => _.path === g);
|
|
@@ -2260,28 +2307,28 @@ const Na = {
|
|
|
2260
2307
|
x && v.push(x.path);
|
|
2261
2308
|
}
|
|
2262
2309
|
};
|
|
2263
|
-
return (g, I) => (
|
|
2264
|
-
R(
|
|
2310
|
+
return (g, I) => (w(), N("div", Lr, [
|
|
2311
|
+
R(y(Qt), {
|
|
2265
2312
|
modelValue: h.value,
|
|
2266
2313
|
"onUpdate:modelValue": I[0] || (I[0] = (_) => h.value = _),
|
|
2267
2314
|
type: "card",
|
|
2268
|
-
onTabClick:
|
|
2315
|
+
onTabClick: b
|
|
2269
2316
|
}, {
|
|
2270
|
-
default:
|
|
2271
|
-
(
|
|
2317
|
+
default: X(() => [
|
|
2318
|
+
(w(!0), N(he, null, ge(p.value, (_) => (w(), ce(y(es), {
|
|
2272
2319
|
key: _.path,
|
|
2273
2320
|
name: _.path,
|
|
2274
2321
|
label: _.title,
|
|
2275
2322
|
closable: !_.affix
|
|
2276
2323
|
}, {
|
|
2277
|
-
label:
|
|
2278
|
-
|
|
2279
|
-
De(
|
|
2280
|
-
_.affix ? ie("", !0) : (
|
|
2324
|
+
label: X(() => [
|
|
2325
|
+
s("span", Ar, [
|
|
2326
|
+
De(q(_.title) + " ", 1),
|
|
2327
|
+
_.affix ? ie("", !0) : (w(), N("span", {
|
|
2281
2328
|
key: 0,
|
|
2282
2329
|
class: "tab-close",
|
|
2283
2330
|
onClick: it((x) => T(_.path), ["stop"])
|
|
2284
|
-
}, " ✕ ", 8,
|
|
2331
|
+
}, " ✕ ", 8, Tr))
|
|
2285
2332
|
])
|
|
2286
2333
|
]),
|
|
2287
2334
|
_: 2
|
|
@@ -2291,23 +2338,23 @@ const Na = {
|
|
|
2291
2338
|
}, 8, ["modelValue"])
|
|
2292
2339
|
]));
|
|
2293
2340
|
}
|
|
2294
|
-
}),
|
|
2295
|
-
function
|
|
2296
|
-
return
|
|
2297
|
-
|
|
2341
|
+
}), Da = /* @__PURE__ */ Se(Or, [["__scopeId", "data-v-9156d8cd"]]), Ur = {}, Br = { class: "footer" };
|
|
2342
|
+
function Pr(r, f) {
|
|
2343
|
+
return w(), N("div", Br, [...f[0] || (f[0] = [
|
|
2344
|
+
s("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
|
|
2298
2345
|
])]);
|
|
2299
2346
|
}
|
|
2300
|
-
const
|
|
2301
|
-
var
|
|
2302
|
-
function
|
|
2347
|
+
const za = /* @__PURE__ */ Se(Ur, [["render", Pr], ["__scopeId", "data-v-4852826a"]]);
|
|
2348
|
+
var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2349
|
+
function Dr(r) {
|
|
2303
2350
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2304
2351
|
}
|
|
2305
2352
|
var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
2306
2353
|
(function(r) {
|
|
2307
2354
|
(function(f) {
|
|
2308
|
-
var v, p = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, h = Math.ceil,
|
|
2309
|
-
function
|
|
2310
|
-
var L,
|
|
2355
|
+
var v, p = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, h = Math.ceil, b = Math.floor, T = "[BigNumber Error] ", g = T + "Number primitive has more than 15 significant digits: ", I = 1e14, _ = 14, x = 9007199254740991, M = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], E = 1e7, G = 1e9;
|
|
2356
|
+
function Q(U) {
|
|
2357
|
+
var L, J, ee, $ = C.prototype = { constructor: C, toString: null, valueOf: null }, re = new C(1), te = 20, z = 4, le = -7, de = 21, Ce = -1e7, fe = 1e7, ke = !1, be = 1, we = 0, Te = {
|
|
2311
2358
|
prefix: "",
|
|
2312
2359
|
groupSize: 3,
|
|
2313
2360
|
secondaryGroupSize: 0,
|
|
@@ -2317,62 +2364,62 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2317
2364
|
fractionGroupSeparator: " ",
|
|
2318
2365
|
// non-breaking space
|
|
2319
2366
|
suffix: ""
|
|
2320
|
-
},
|
|
2367
|
+
}, Ne = "0123456789abcdefghijklmnopqrstuvwxyz", Oe = !0;
|
|
2321
2368
|
function C(t, e) {
|
|
2322
|
-
var o, c,
|
|
2369
|
+
var o, c, n, a, u, i, l, m, d = this;
|
|
2323
2370
|
if (!(d instanceof C)) return new C(t, e);
|
|
2324
2371
|
if (e == null) {
|
|
2325
2372
|
if (t && t._isBigNumber === !0) {
|
|
2326
|
-
d.s = t.s, !t.c || t.e >
|
|
2373
|
+
d.s = t.s, !t.c || t.e > fe ? d.c = d.e = null : t.e < Ce ? d.c = [d.e = 0] : (d.e = t.e, d.c = t.c.slice());
|
|
2327
2374
|
return;
|
|
2328
2375
|
}
|
|
2329
|
-
if ((
|
|
2376
|
+
if ((i = typeof t == "number") && t * 0 == 0) {
|
|
2330
2377
|
if (d.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
|
|
2331
|
-
for (
|
|
2332
|
-
|
|
2378
|
+
for (a = 0, u = t; u >= 10; u /= 10, a++) ;
|
|
2379
|
+
a > fe ? d.c = d.e = null : (d.e = a, d.c = [t]);
|
|
2333
2380
|
return;
|
|
2334
2381
|
}
|
|
2335
2382
|
m = String(t);
|
|
2336
2383
|
} else {
|
|
2337
|
-
if (!p.test(m = String(t))) return
|
|
2384
|
+
if (!p.test(m = String(t))) return ee(d, m, i);
|
|
2338
2385
|
d.s = m.charCodeAt(0) == 45 ? (m = m.slice(1), -1) : 1;
|
|
2339
2386
|
}
|
|
2340
|
-
(
|
|
2387
|
+
(a = m.indexOf(".")) > -1 && (m = m.replace(".", "")), (u = m.search(/e/i)) > 0 ? (a < 0 && (a = u), a += +m.slice(u + 1), m = m.substring(0, u)) : a < 0 && (a = m.length);
|
|
2341
2388
|
} else {
|
|
2342
|
-
if (S(e, 2,
|
|
2343
|
-
return d = new C(t),
|
|
2344
|
-
if (m = String(t),
|
|
2345
|
-
if (t * 0 != 0) return
|
|
2389
|
+
if (S(e, 2, Ne.length, "Base"), e == 10 && Oe)
|
|
2390
|
+
return d = new C(t), K(d, te + d.e + 1, z);
|
|
2391
|
+
if (m = String(t), i = typeof t == "number") {
|
|
2392
|
+
if (t * 0 != 0) return ee(d, m, i, e);
|
|
2346
2393
|
if (d.s = 1 / t < 0 ? (m = m.slice(1), -1) : 1, C.DEBUG && m.replace(/^0\.0*|\./, "").length > 15)
|
|
2347
2394
|
throw Error(g + t);
|
|
2348
2395
|
} else
|
|
2349
2396
|
d.s = m.charCodeAt(0) === 45 ? (m = m.slice(1), -1) : 1;
|
|
2350
|
-
for (o =
|
|
2397
|
+
for (o = Ne.slice(0, e), a = u = 0, l = m.length; u < l; u++)
|
|
2351
2398
|
if (o.indexOf(c = m.charAt(u)) < 0) {
|
|
2352
2399
|
if (c == ".") {
|
|
2353
|
-
if (u >
|
|
2354
|
-
|
|
2400
|
+
if (u > a) {
|
|
2401
|
+
a = l;
|
|
2355
2402
|
continue;
|
|
2356
2403
|
}
|
|
2357
|
-
} else if (!
|
|
2358
|
-
|
|
2404
|
+
} else if (!n && (m == m.toUpperCase() && (m = m.toLowerCase()) || m == m.toLowerCase() && (m = m.toUpperCase()))) {
|
|
2405
|
+
n = !0, u = -1, a = 0;
|
|
2359
2406
|
continue;
|
|
2360
2407
|
}
|
|
2361
|
-
return
|
|
2408
|
+
return ee(d, String(t), i, e);
|
|
2362
2409
|
}
|
|
2363
|
-
|
|
2410
|
+
i = !1, m = J(m, e, 10, d.s), (a = m.indexOf(".")) > -1 ? m = m.replace(".", "") : a = m.length;
|
|
2364
2411
|
}
|
|
2365
2412
|
for (u = 0; m.charCodeAt(u) === 48; u++) ;
|
|
2366
2413
|
for (l = m.length; m.charCodeAt(--l) === 48; ) ;
|
|
2367
2414
|
if (m = m.slice(u, ++l)) {
|
|
2368
|
-
if (l -= u,
|
|
2415
|
+
if (l -= u, i && C.DEBUG && l > 15 && (t > x || t !== b(t)))
|
|
2369
2416
|
throw Error(g + d.s * t);
|
|
2370
|
-
if ((
|
|
2417
|
+
if ((a = a - u - 1) > fe)
|
|
2371
2418
|
d.c = d.e = null;
|
|
2372
|
-
else if (
|
|
2419
|
+
else if (a < Ce)
|
|
2373
2420
|
d.c = [d.e = 0];
|
|
2374
2421
|
else {
|
|
2375
|
-
if (d.e =
|
|
2422
|
+
if (d.e = a, d.c = [], u = (a + 1) % _, a < 0 && (u += _), u < l) {
|
|
2376
2423
|
for (u && d.c.push(+m.slice(0, u)), l -= _; u < l; )
|
|
2377
2424
|
d.c.push(+m.slice(u, u += _));
|
|
2378
2425
|
u = _ - (m = m.slice(u)).length;
|
|
@@ -2384,66 +2431,66 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2384
2431
|
} else
|
|
2385
2432
|
d.c = [d.e = 0];
|
|
2386
2433
|
}
|
|
2387
|
-
C.clone =
|
|
2434
|
+
C.clone = Q, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = function(t) {
|
|
2388
2435
|
var e, o;
|
|
2389
2436
|
if (t != null)
|
|
2390
2437
|
if (typeof t == "object") {
|
|
2391
|
-
if (t.hasOwnProperty(e = "DECIMAL_PLACES") && (o = t[e], S(o, 0,
|
|
2438
|
+
if (t.hasOwnProperty(e = "DECIMAL_PLACES") && (o = t[e], S(o, 0, G, e), te = o), t.hasOwnProperty(e = "ROUNDING_MODE") && (o = t[e], S(o, 0, 8, e), z = o), t.hasOwnProperty(e = "EXPONENTIAL_AT") && (o = t[e], o && o.pop ? (S(o[0], -G, 0, e), S(o[1], 0, G, e), le = o[0], de = o[1]) : (S(o, -G, G, e), le = -(de = o < 0 ? -o : o))), t.hasOwnProperty(e = "RANGE"))
|
|
2392
2439
|
if (o = t[e], o && o.pop)
|
|
2393
|
-
S(o[0], -
|
|
2394
|
-
else if (S(o, -
|
|
2395
|
-
Ce = -(
|
|
2440
|
+
S(o[0], -G, -1, e), S(o[1], 1, G, e), Ce = o[0], fe = o[1];
|
|
2441
|
+
else if (S(o, -G, G, e), o)
|
|
2442
|
+
Ce = -(fe = o < 0 ? -o : o);
|
|
2396
2443
|
else
|
|
2397
2444
|
throw Error(T + e + " cannot be zero: " + o);
|
|
2398
2445
|
if (t.hasOwnProperty(e = "CRYPTO"))
|
|
2399
2446
|
if (o = t[e], o === !!o)
|
|
2400
2447
|
if (o)
|
|
2401
2448
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
2402
|
-
|
|
2449
|
+
ke = o;
|
|
2403
2450
|
else
|
|
2404
|
-
throw
|
|
2451
|
+
throw ke = !o, Error(T + "crypto unavailable");
|
|
2405
2452
|
else
|
|
2406
|
-
|
|
2453
|
+
ke = o;
|
|
2407
2454
|
else
|
|
2408
2455
|
throw Error(T + e + " not true or false: " + o);
|
|
2409
|
-
if (t.hasOwnProperty(e = "MODULO_MODE") && (o = t[e], S(o, 0, 9, e),
|
|
2456
|
+
if (t.hasOwnProperty(e = "MODULO_MODE") && (o = t[e], S(o, 0, 9, e), be = o), t.hasOwnProperty(e = "POW_PRECISION") && (o = t[e], S(o, 0, G, e), we = o), t.hasOwnProperty(e = "FORMAT"))
|
|
2410
2457
|
if (o = t[e], typeof o == "object") Te = o;
|
|
2411
2458
|
else throw Error(T + e + " not an object: " + o);
|
|
2412
2459
|
if (t.hasOwnProperty(e = "ALPHABET"))
|
|
2413
2460
|
if (o = t[e], typeof o == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(o))
|
|
2414
|
-
Oe = o.slice(0, 10) == "0123456789",
|
|
2461
|
+
Oe = o.slice(0, 10) == "0123456789", Ne = o;
|
|
2415
2462
|
else
|
|
2416
2463
|
throw Error(T + e + " invalid: " + o);
|
|
2417
2464
|
} else
|
|
2418
2465
|
throw Error(T + "Object expected: " + t);
|
|
2419
2466
|
return {
|
|
2420
|
-
DECIMAL_PLACES:
|
|
2467
|
+
DECIMAL_PLACES: te,
|
|
2421
2468
|
ROUNDING_MODE: z,
|
|
2422
|
-
EXPONENTIAL_AT: [le,
|
|
2423
|
-
RANGE: [Ce,
|
|
2424
|
-
CRYPTO:
|
|
2425
|
-
MODULO_MODE:
|
|
2426
|
-
POW_PRECISION:
|
|
2469
|
+
EXPONENTIAL_AT: [le, de],
|
|
2470
|
+
RANGE: [Ce, fe],
|
|
2471
|
+
CRYPTO: ke,
|
|
2472
|
+
MODULO_MODE: be,
|
|
2473
|
+
POW_PRECISION: we,
|
|
2427
2474
|
FORMAT: Te,
|
|
2428
|
-
ALPHABET:
|
|
2475
|
+
ALPHABET: Ne
|
|
2429
2476
|
};
|
|
2430
2477
|
}, C.isBigNumber = function(t) {
|
|
2431
2478
|
if (!t || t._isBigNumber !== !0) return !1;
|
|
2432
2479
|
if (!C.DEBUG) return !0;
|
|
2433
|
-
var e, o, c = t.c,
|
|
2480
|
+
var e, o, c = t.c, n = t.e, a = t.s;
|
|
2434
2481
|
e: if ({}.toString.call(c) == "[object Array]") {
|
|
2435
|
-
if ((
|
|
2482
|
+
if ((a === 1 || a === -1) && n >= -G && n <= G && n === b(n)) {
|
|
2436
2483
|
if (c[0] === 0) {
|
|
2437
|
-
if (
|
|
2484
|
+
if (n === 0 && c.length === 1) return !0;
|
|
2438
2485
|
break e;
|
|
2439
2486
|
}
|
|
2440
|
-
if (e = (
|
|
2487
|
+
if (e = (n + 1) % _, e < 1 && (e += _), String(c[0]).length == e) {
|
|
2441
2488
|
for (e = 0; e < c.length; e++)
|
|
2442
|
-
if (o = c[e], o < 0 || o >= I || o !==
|
|
2489
|
+
if (o = c[e], o < 0 || o >= I || o !== b(o)) break e;
|
|
2443
2490
|
if (o !== 0) return !0;
|
|
2444
2491
|
}
|
|
2445
2492
|
}
|
|
2446
|
-
} else if (c === null &&
|
|
2493
|
+
} else if (c === null && n === null && (a === null || a === 1 || a === -1))
|
|
2447
2494
|
return !0;
|
|
2448
2495
|
throw Error(T + "Invalid BigNumber: " + t);
|
|
2449
2496
|
}, C.maximum = C.max = function() {
|
|
@@ -2452,218 +2499,218 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2452
2499
|
return Be(arguments, 1);
|
|
2453
2500
|
}, C.random = function() {
|
|
2454
2501
|
var t = 9007199254740992, e = Math.random() * t & 2097151 ? function() {
|
|
2455
|
-
return
|
|
2502
|
+
return b(Math.random() * t);
|
|
2456
2503
|
} : function() {
|
|
2457
2504
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
2458
2505
|
};
|
|
2459
2506
|
return function(o) {
|
|
2460
|
-
var c,
|
|
2461
|
-
if (o == null ? o =
|
|
2507
|
+
var c, n, a, u, i, l = 0, m = [], d = new C(re);
|
|
2508
|
+
if (o == null ? o = te : S(o, 0, G), u = h(o / _), ke)
|
|
2462
2509
|
if (crypto.getRandomValues) {
|
|
2463
2510
|
for (c = crypto.getRandomValues(new Uint32Array(u *= 2)); l < u; )
|
|
2464
|
-
|
|
2511
|
+
i = c[l] * 131072 + (c[l + 1] >>> 11), i >= 9e15 ? (n = crypto.getRandomValues(new Uint32Array(2)), c[l] = n[0], c[l + 1] = n[1]) : (m.push(i % 1e14), l += 2);
|
|
2465
2512
|
l = u / 2;
|
|
2466
2513
|
} else if (crypto.randomBytes) {
|
|
2467
2514
|
for (c = crypto.randomBytes(u *= 7); l < u; )
|
|
2468
|
-
|
|
2515
|
+
i = (c[l] & 31) * 281474976710656 + c[l + 1] * 1099511627776 + c[l + 2] * 4294967296 + c[l + 3] * 16777216 + (c[l + 4] << 16) + (c[l + 5] << 8) + c[l + 6], i >= 9e15 ? crypto.randomBytes(7).copy(c, l) : (m.push(i % 1e14), l += 7);
|
|
2469
2516
|
l = u / 7;
|
|
2470
2517
|
} else
|
|
2471
|
-
throw
|
|
2472
|
-
if (!
|
|
2518
|
+
throw ke = !1, Error(T + "crypto unavailable");
|
|
2519
|
+
if (!ke)
|
|
2473
2520
|
for (; l < u; )
|
|
2474
|
-
|
|
2475
|
-
for (u = m[--l], o %= _, u && o && (
|
|
2521
|
+
i = e(), i < 9e15 && (m[l++] = i % 1e14);
|
|
2522
|
+
for (u = m[--l], o %= _, u && o && (i = M[_ - o], m[l] = b(u / i) * i); m[l] === 0; m.pop(), l--) ;
|
|
2476
2523
|
if (l < 0)
|
|
2477
|
-
m = [
|
|
2524
|
+
m = [a = 0];
|
|
2478
2525
|
else {
|
|
2479
|
-
for (
|
|
2480
|
-
for (l = 1,
|
|
2481
|
-
l < _ && (
|
|
2526
|
+
for (a = -1; m[0] === 0; m.splice(0, 1), a -= _) ;
|
|
2527
|
+
for (l = 1, i = m[0]; i >= 10; i /= 10, l++) ;
|
|
2528
|
+
l < _ && (a -= _ - l);
|
|
2482
2529
|
}
|
|
2483
|
-
return d.e =
|
|
2530
|
+
return d.e = a, d.c = m, d;
|
|
2484
2531
|
};
|
|
2485
2532
|
}(), C.sum = function() {
|
|
2486
2533
|
for (var t = 1, e = arguments, o = new C(e[0]); t < e.length; ) o = o.plus(e[t++]);
|
|
2487
2534
|
return o;
|
|
2488
|
-
},
|
|
2535
|
+
}, J = /* @__PURE__ */ function() {
|
|
2489
2536
|
var t = "0123456789";
|
|
2490
|
-
function e(o, c,
|
|
2491
|
-
for (var u,
|
|
2492
|
-
for (l =
|
|
2493
|
-
for (
|
|
2494
|
-
|
|
2537
|
+
function e(o, c, n, a) {
|
|
2538
|
+
for (var u, i = [0], l, m = 0, d = o.length; m < d; ) {
|
|
2539
|
+
for (l = i.length; l--; i[l] *= c) ;
|
|
2540
|
+
for (i[0] += a.indexOf(o.charAt(m++)), u = 0; u < i.length; u++)
|
|
2541
|
+
i[u] > n - 1 && (i[u + 1] == null && (i[u + 1] = 0), i[u + 1] += i[u] / n | 0, i[u] %= n);
|
|
2495
2542
|
}
|
|
2496
|
-
return
|
|
2543
|
+
return i.reverse();
|
|
2497
2544
|
}
|
|
2498
|
-
return function(o, c,
|
|
2499
|
-
var
|
|
2500
|
-
for (
|
|
2545
|
+
return function(o, c, n, a, u) {
|
|
2546
|
+
var i, l, m, d, k, D, F, ne, pe = o.indexOf("."), ve = te, se = z;
|
|
2547
|
+
for (pe >= 0 && (d = we, we = 0, o = o.replace(".", ""), ne = new C(c), D = ne.pow(o.length - pe), we = d, ne.c = e(
|
|
2501
2548
|
oe(A(D.c), D.e, "0"),
|
|
2502
2549
|
10,
|
|
2503
|
-
|
|
2550
|
+
n,
|
|
2504
2551
|
t
|
|
2505
|
-
), ne.e = ne.c.length), F = e(o, c,
|
|
2506
|
-
if (!F[0]) return
|
|
2507
|
-
if (
|
|
2508
|
-
o =
|
|
2552
|
+
), ne.e = ne.c.length), F = e(o, c, n, u ? (i = Ne, t) : (i = t, Ne)), m = d = F.length; F[--d] == 0; F.pop()) ;
|
|
2553
|
+
if (!F[0]) return i.charAt(0);
|
|
2554
|
+
if (pe < 0 ? --m : (D.c = F, D.e = m, D.s = a, D = L(D, ne, ve, se, n), F = D.c, k = D.r, m = D.e), l = m + ve + 1, pe = F[l], d = n / 2, k = k || l < 0 || F[l + 1] != null, k = se < 4 ? (pe != null || k) && (se == 0 || se == (D.s < 0 ? 3 : 2)) : pe > d || pe == d && (se == 4 || k || se == 6 && F[l - 1] & 1 || se == (D.s < 0 ? 8 : 7)), l < 1 || !F[0])
|
|
2555
|
+
o = k ? oe(i.charAt(1), -ve, i.charAt(0)) : i.charAt(0);
|
|
2509
2556
|
else {
|
|
2510
|
-
if (F.length = l,
|
|
2511
|
-
for (--
|
|
2557
|
+
if (F.length = l, k)
|
|
2558
|
+
for (--n; ++F[--l] > n; )
|
|
2512
2559
|
F[l] = 0, l || (++m, F = [1].concat(F));
|
|
2513
2560
|
for (d = F.length; !F[--d]; ) ;
|
|
2514
|
-
for (
|
|
2515
|
-
o = oe(o, m,
|
|
2561
|
+
for (pe = 0, o = ""; pe <= d; o += i.charAt(F[pe++])) ;
|
|
2562
|
+
o = oe(o, m, i.charAt(0));
|
|
2516
2563
|
}
|
|
2517
2564
|
return o;
|
|
2518
2565
|
};
|
|
2519
2566
|
}(), L = /* @__PURE__ */ function() {
|
|
2520
|
-
function t(c,
|
|
2521
|
-
var u,
|
|
2522
|
-
for (c = c.slice();
|
|
2523
|
-
l = c[
|
|
2567
|
+
function t(c, n, a) {
|
|
2568
|
+
var u, i, l, m, d = 0, k = c.length, D = n % E, F = n / E | 0;
|
|
2569
|
+
for (c = c.slice(); k--; )
|
|
2570
|
+
l = c[k] % E, m = c[k] / E | 0, u = F * l + m * D, i = D * l + u % E * E + d, d = (i / a | 0) + (u / E | 0) + F * m, c[k] = i % a;
|
|
2524
2571
|
return d && (c = [d].concat(c)), c;
|
|
2525
2572
|
}
|
|
2526
|
-
function e(c,
|
|
2527
|
-
var
|
|
2528
|
-
if (
|
|
2529
|
-
l =
|
|
2573
|
+
function e(c, n, a, u) {
|
|
2574
|
+
var i, l;
|
|
2575
|
+
if (a != u)
|
|
2576
|
+
l = a > u ? 1 : -1;
|
|
2530
2577
|
else
|
|
2531
|
-
for (
|
|
2532
|
-
if (c[
|
|
2533
|
-
l = c[
|
|
2578
|
+
for (i = l = 0; i < a; i++)
|
|
2579
|
+
if (c[i] != n[i]) {
|
|
2580
|
+
l = c[i] > n[i] ? 1 : -1;
|
|
2534
2581
|
break;
|
|
2535
2582
|
}
|
|
2536
2583
|
return l;
|
|
2537
2584
|
}
|
|
2538
|
-
function o(c,
|
|
2539
|
-
for (var
|
|
2540
|
-
c[
|
|
2585
|
+
function o(c, n, a, u) {
|
|
2586
|
+
for (var i = 0; a--; )
|
|
2587
|
+
c[a] -= i, i = c[a] < n[a] ? 1 : 0, c[a] = i * u + c[a] - n[a];
|
|
2541
2588
|
for (; !c[0] && c.length > 1; c.splice(0, 1)) ;
|
|
2542
2589
|
}
|
|
2543
|
-
return function(c,
|
|
2544
|
-
var l, m, d,
|
|
2545
|
-
if (!xe || !xe[0] || !
|
|
2590
|
+
return function(c, n, a, u, i) {
|
|
2591
|
+
var l, m, d, k, D, F, ne, pe, ve, se, ae, ye, Ze, ft, pt, Ie, Ge, Ee = c.s == n.s ? 1 : -1, xe = c.c, me = n.c;
|
|
2592
|
+
if (!xe || !xe[0] || !me || !me[0])
|
|
2546
2593
|
return new C(
|
|
2547
2594
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
2548
|
-
!c.s || !
|
|
2595
|
+
!c.s || !n.s || (xe ? me && xe[0] == me[0] : !me) ? NaN : (
|
|
2549
2596
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
2550
|
-
xe && xe[0] == 0 || !
|
|
2597
|
+
xe && xe[0] == 0 || !me ? Ee * 0 : Ee / 0
|
|
2551
2598
|
)
|
|
2552
2599
|
);
|
|
2553
|
-
for (
|
|
2554
|
-
if (
|
|
2555
|
-
|
|
2600
|
+
for (pe = new C(Ee), ve = pe.c = [], m = c.e - n.e, Ee = a + m + 1, i || (i = I, m = O(c.e / _) - O(n.e / _), Ee = Ee / _ | 0), d = 0; me[d] == (xe[d] || 0); d++) ;
|
|
2601
|
+
if (me[d] > (xe[d] || 0) && m--, Ee < 0)
|
|
2602
|
+
ve.push(1), k = !0;
|
|
2556
2603
|
else {
|
|
2557
|
-
for (ft = xe.length, Ie =
|
|
2558
|
-
Ge =
|
|
2604
|
+
for (ft = xe.length, Ie = me.length, d = 0, Ee += 2, D = b(i / (me[0] + 1)), D > 1 && (me = t(me, D, i), xe = t(xe, D, i), Ie = me.length, ft = xe.length), Ze = Ie, se = xe.slice(0, Ie), ae = se.length; ae < Ie; se[ae++] = 0) ;
|
|
2605
|
+
Ge = me.slice(), Ge = [0].concat(Ge), pt = me[0], me[1] >= i / 2 && pt++;
|
|
2559
2606
|
do {
|
|
2560
|
-
if (D = 0, l = e(
|
|
2561
|
-
if (
|
|
2562
|
-
for (D >=
|
|
2563
|
-
D--, o(F, Ie < ne ? Ge :
|
|
2607
|
+
if (D = 0, l = e(me, se, Ie, ae), l < 0) {
|
|
2608
|
+
if (ye = se[0], Ie != ae && (ye = ye * i + (se[1] || 0)), D = b(ye / pt), D > 1)
|
|
2609
|
+
for (D >= i && (D = i - 1), F = t(me, D, i), ne = F.length, ae = se.length; e(F, se, ne, ae) == 1; )
|
|
2610
|
+
D--, o(F, Ie < ne ? Ge : me, ne, i), ne = F.length, l = 1;
|
|
2564
2611
|
else
|
|
2565
|
-
D == 0 && (l = D = 1), F =
|
|
2566
|
-
if (ne < ae && (F = [0].concat(F)), o(
|
|
2567
|
-
for (; e(
|
|
2568
|
-
D++, o(
|
|
2569
|
-
} else l === 0 && (D++,
|
|
2570
|
-
|
|
2571
|
-
} while ((
|
|
2572
|
-
|
|
2612
|
+
D == 0 && (l = D = 1), F = me.slice(), ne = F.length;
|
|
2613
|
+
if (ne < ae && (F = [0].concat(F)), o(se, F, ae, i), ae = se.length, l == -1)
|
|
2614
|
+
for (; e(me, se, Ie, ae) < 1; )
|
|
2615
|
+
D++, o(se, Ie < ae ? Ge : me, ae, i), ae = se.length;
|
|
2616
|
+
} else l === 0 && (D++, se = [0]);
|
|
2617
|
+
ve[d++] = D, se[0] ? se[ae++] = xe[Ze] || 0 : (se = [xe[Ze]], ae = 1);
|
|
2618
|
+
} while ((Ze++ < ft || se[0] != null) && Ee--);
|
|
2619
|
+
k = se[0] != null, ve[0] || ve.splice(0, 1);
|
|
2573
2620
|
}
|
|
2574
|
-
if (
|
|
2575
|
-
for (d = 1,
|
|
2576
|
-
|
|
2621
|
+
if (i == I) {
|
|
2622
|
+
for (d = 1, Ee = ve[0]; Ee >= 10; Ee /= 10, d++) ;
|
|
2623
|
+
K(pe, a + (pe.e = d + m * _ - 1) + 1, u, k);
|
|
2577
2624
|
} else
|
|
2578
|
-
|
|
2579
|
-
return
|
|
2625
|
+
pe.e = m, pe.r = +k;
|
|
2626
|
+
return pe;
|
|
2580
2627
|
};
|
|
2581
2628
|
}();
|
|
2582
2629
|
function Ue(t, e, o, c) {
|
|
2583
|
-
var
|
|
2630
|
+
var n, a, u, i, l;
|
|
2584
2631
|
if (o == null ? o = z : S(o, 0, 8), !t.c) return t.toString();
|
|
2585
|
-
if (
|
|
2586
|
-
l = A(t.c), l = c == 1 || c == 2 && (u <= le || u >=
|
|
2587
|
-
else if (t =
|
|
2588
|
-
for (;
|
|
2589
|
-
l =
|
|
2590
|
-
} else if (e -= u + (c === 2 &&
|
|
2632
|
+
if (n = t.c[0], u = t.e, e == null)
|
|
2633
|
+
l = A(t.c), l = c == 1 || c == 2 && (u <= le || u >= de) ? Y(l, u) : oe(l, u, "0");
|
|
2634
|
+
else if (t = K(new C(t), e, o), a = t.e, l = A(t.c), i = l.length, c == 1 || c == 2 && (e <= a || a <= le)) {
|
|
2635
|
+
for (; i < e; l += "0", i++) ;
|
|
2636
|
+
l = Y(l, a);
|
|
2637
|
+
} else if (e -= u + (c === 2 && a > u), l = oe(l, a, "0"), a + 1 > i) {
|
|
2591
2638
|
if (--e > 0) for (l += "."; e--; l += "0") ;
|
|
2592
|
-
} else if (e +=
|
|
2593
|
-
for (
|
|
2594
|
-
return t.s < 0 &&
|
|
2639
|
+
} else if (e += a - i, e > 0)
|
|
2640
|
+
for (a + 1 == i && (l += "."); e--; l += "0") ;
|
|
2641
|
+
return t.s < 0 && n ? "-" + l : l;
|
|
2595
2642
|
}
|
|
2596
2643
|
function Be(t, e) {
|
|
2597
|
-
for (var o, c,
|
|
2598
|
-
c = new C(t[
|
|
2599
|
-
return
|
|
2644
|
+
for (var o, c, n = 1, a = new C(t[0]); n < t.length; n++)
|
|
2645
|
+
c = new C(t[n]), (!c.s || (o = V(a, c)) === e || o === 0 && a.s === e) && (a = c);
|
|
2646
|
+
return a;
|
|
2600
2647
|
}
|
|
2601
2648
|
function Me(t, e, o) {
|
|
2602
|
-
for (var c = 1,
|
|
2603
|
-
for (
|
|
2604
|
-
return (o = c + o * _ - 1) >
|
|
2649
|
+
for (var c = 1, n = e.length; !e[--n]; e.pop()) ;
|
|
2650
|
+
for (n = e[0]; n >= 10; n /= 10, c++) ;
|
|
2651
|
+
return (o = c + o * _ - 1) > fe ? t.c = t.e = null : o < Ce ? t.c = [t.e = 0] : (t.e = o, t.c = e), t;
|
|
2605
2652
|
}
|
|
2606
|
-
|
|
2607
|
-
var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, e = /^([^.]+)\.$/, o = /^\.([^.]+)$/, c = /^-?(Infinity|NaN)$/,
|
|
2608
|
-
return function(
|
|
2609
|
-
var m, d =
|
|
2653
|
+
ee = /* @__PURE__ */ function() {
|
|
2654
|
+
var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, e = /^([^.]+)\.$/, o = /^\.([^.]+)$/, c = /^-?(Infinity|NaN)$/, n = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
2655
|
+
return function(a, u, i, l) {
|
|
2656
|
+
var m, d = i ? u : u.replace(n, "");
|
|
2610
2657
|
if (c.test(d))
|
|
2611
|
-
|
|
2658
|
+
a.s = isNaN(d) ? null : d < 0 ? -1 : 1;
|
|
2612
2659
|
else {
|
|
2613
|
-
if (!
|
|
2614
|
-
return m = (F = F.toLowerCase()) == "x" ? 16 : F == "b" ? 2 : 8, !l || l == m ? D :
|
|
2660
|
+
if (!i && (d = d.replace(t, function(k, D, F) {
|
|
2661
|
+
return m = (F = F.toLowerCase()) == "x" ? 16 : F == "b" ? 2 : 8, !l || l == m ? D : k;
|
|
2615
2662
|
}), l && (m = l, d = d.replace(e, "$1").replace(o, "0.$1")), u != d))
|
|
2616
2663
|
return new C(d, m);
|
|
2617
2664
|
if (C.DEBUG)
|
|
2618
2665
|
throw Error(T + "Not a" + (l ? " base " + l : "") + " number: " + u);
|
|
2619
|
-
|
|
2666
|
+
a.s = null;
|
|
2620
2667
|
}
|
|
2621
|
-
|
|
2668
|
+
a.c = a.e = null;
|
|
2622
2669
|
};
|
|
2623
2670
|
}();
|
|
2624
|
-
function
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2671
|
+
function K(t, e, o, c) {
|
|
2672
|
+
var n, a, u, i, l, m, d, k = t.c, D = M;
|
|
2673
|
+
if (k) {
|
|
2627
2674
|
e: {
|
|
2628
|
-
for (
|
|
2629
|
-
if (
|
|
2630
|
-
|
|
2631
|
-
else if (m = h((
|
|
2675
|
+
for (n = 1, i = k[0]; i >= 10; i /= 10, n++) ;
|
|
2676
|
+
if (a = e - n, a < 0)
|
|
2677
|
+
a += _, u = e, l = k[m = 0], d = b(l / D[n - u - 1] % 10);
|
|
2678
|
+
else if (m = h((a + 1) / _), m >= k.length)
|
|
2632
2679
|
if (c) {
|
|
2633
|
-
for (;
|
|
2634
|
-
l = d = 0,
|
|
2680
|
+
for (; k.length <= m; k.push(0)) ;
|
|
2681
|
+
l = d = 0, n = 1, a %= _, u = a - _ + 1;
|
|
2635
2682
|
} else
|
|
2636
2683
|
break e;
|
|
2637
2684
|
else {
|
|
2638
|
-
for (l =
|
|
2639
|
-
|
|
2685
|
+
for (l = i = k[m], n = 1; i >= 10; i /= 10, n++) ;
|
|
2686
|
+
a %= _, u = a - _ + n, d = u < 0 ? 0 : b(l / D[n - u - 1] % 10);
|
|
2640
2687
|
}
|
|
2641
2688
|
if (c = c || e < 0 || // Are there any non-zero digits after the rounding digit?
|
|
2642
2689
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
2643
2690
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
2644
|
-
|
|
2645
|
-
(
|
|
2646
|
-
return
|
|
2647
|
-
if (
|
|
2691
|
+
k[m + 1] != null || (u < 0 ? l : l % D[n - u - 1]), c = o < 4 ? (d || c) && (o == 0 || o == (t.s < 0 ? 3 : 2)) : d > 5 || d == 5 && (o == 4 || c || o == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
2692
|
+
(a > 0 ? u > 0 ? l / D[n - u] : 0 : k[m - 1]) % 10 & 1 || o == (t.s < 0 ? 8 : 7)), e < 1 || !k[0])
|
|
2693
|
+
return k.length = 0, c ? (e -= t.e + 1, k[0] = D[(_ - e % _) % _], t.e = -e || 0) : k[0] = t.e = 0, t;
|
|
2694
|
+
if (a == 0 ? (k.length = m, i = 1, m--) : (k.length = m + 1, i = D[_ - a], k[m] = u > 0 ? b(l / D[n - u] % D[u]) * i : 0), c)
|
|
2648
2695
|
for (; ; )
|
|
2649
2696
|
if (m == 0) {
|
|
2650
|
-
for (
|
|
2651
|
-
for (u =
|
|
2652
|
-
|
|
2697
|
+
for (a = 1, u = k[0]; u >= 10; u /= 10, a++) ;
|
|
2698
|
+
for (u = k[0] += i, i = 1; u >= 10; u /= 10, i++) ;
|
|
2699
|
+
a != i && (t.e++, k[0] == I && (k[0] = 1));
|
|
2653
2700
|
break;
|
|
2654
2701
|
} else {
|
|
2655
|
-
if (
|
|
2656
|
-
|
|
2702
|
+
if (k[m] += i, k[m] != I) break;
|
|
2703
|
+
k[m--] = 0, i = 1;
|
|
2657
2704
|
}
|
|
2658
|
-
for (
|
|
2705
|
+
for (a = k.length; k[--a] === 0; k.pop()) ;
|
|
2659
2706
|
}
|
|
2660
|
-
t.e >
|
|
2707
|
+
t.e > fe ? t.c = t.e = null : t.e < Ce && (t.c = [t.e = 0]);
|
|
2661
2708
|
}
|
|
2662
2709
|
return t;
|
|
2663
2710
|
}
|
|
2664
2711
|
function B(t) {
|
|
2665
2712
|
var e, o = t.e;
|
|
2666
|
-
return o === null ? t.toString() : (e = A(t.c), e = o <= le || o >=
|
|
2713
|
+
return o === null ? t.toString() : (e = A(t.c), e = o <= le || o >= de ? Y(e, o) : oe(e, o, "0"), t.s < 0 ? "-" + e : e);
|
|
2667
2714
|
}
|
|
2668
2715
|
return $.absoluteValue = $.abs = function() {
|
|
2669
2716
|
var t = new C(this);
|
|
@@ -2671,50 +2718,50 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2671
2718
|
}, $.comparedTo = function(t, e) {
|
|
2672
2719
|
return V(this, new C(t, e));
|
|
2673
2720
|
}, $.decimalPlaces = $.dp = function(t, e) {
|
|
2674
|
-
var o, c,
|
|
2721
|
+
var o, c, n, a = this;
|
|
2675
2722
|
if (t != null)
|
|
2676
|
-
return S(t, 0,
|
|
2677
|
-
if (!(o =
|
|
2678
|
-
if (c = ((
|
|
2723
|
+
return S(t, 0, G), e == null ? e = z : S(e, 0, 8), K(new C(a), t + a.e + 1, e);
|
|
2724
|
+
if (!(o = a.c)) return null;
|
|
2725
|
+
if (c = ((n = o.length - 1) - O(this.e / _)) * _, n = o[n]) for (; n % 10 == 0; n /= 10, c--) ;
|
|
2679
2726
|
return c < 0 && (c = 0), c;
|
|
2680
2727
|
}, $.dividedBy = $.div = function(t, e) {
|
|
2681
|
-
return L(this, new C(t, e),
|
|
2728
|
+
return L(this, new C(t, e), te, z);
|
|
2682
2729
|
}, $.dividedToIntegerBy = $.idiv = function(t, e) {
|
|
2683
2730
|
return L(this, new C(t, e), 0, 1);
|
|
2684
2731
|
}, $.exponentiatedBy = $.pow = function(t, e) {
|
|
2685
|
-
var o, c,
|
|
2732
|
+
var o, c, n, a, u, i, l, m, d, k = this;
|
|
2686
2733
|
if (t = new C(t), t.c && !t.isInteger())
|
|
2687
2734
|
throw Error(T + "Exponent not an integer: " + B(t));
|
|
2688
|
-
if (e != null && (e = new C(e)),
|
|
2689
|
-
return d = new C(Math.pow(+B(
|
|
2735
|
+
if (e != null && (e = new C(e)), i = t.e > 14, !k.c || !k.c[0] || k.c[0] == 1 && !k.e && k.c.length == 1 || !t.c || !t.c[0])
|
|
2736
|
+
return d = new C(Math.pow(+B(k), i ? t.s * (2 - H(t)) : +B(t))), e ? d.mod(e) : d;
|
|
2690
2737
|
if (l = t.s < 0, e) {
|
|
2691
2738
|
if (e.c ? !e.c[0] : !e.s) return new C(NaN);
|
|
2692
|
-
c = !l &&
|
|
2739
|
+
c = !l && k.isInteger() && e.isInteger(), c && (k = k.mod(e));
|
|
2693
2740
|
} else {
|
|
2694
|
-
if (t.e > 9 && (
|
|
2695
|
-
return
|
|
2696
|
-
|
|
2741
|
+
if (t.e > 9 && (k.e > 0 || k.e < -1 || (k.e == 0 ? k.c[0] > 1 || i && k.c[1] >= 24e7 : k.c[0] < 8e13 || i && k.c[0] <= 9999975e7)))
|
|
2742
|
+
return a = k.s < 0 && H(t) ? -0 : 0, k.e > -1 && (a = 1 / a), new C(l ? 1 / a : a);
|
|
2743
|
+
we && (a = h(we / _ + 2));
|
|
2697
2744
|
}
|
|
2698
|
-
for (
|
|
2745
|
+
for (i ? (o = new C(0.5), l && (t.s = 1), m = H(t)) : (n = Math.abs(+B(t)), m = n % 2), d = new C(re); ; ) {
|
|
2699
2746
|
if (m) {
|
|
2700
|
-
if (d = d.times(
|
|
2701
|
-
|
|
2747
|
+
if (d = d.times(k), !d.c) break;
|
|
2748
|
+
a ? d.c.length > a && (d.c.length = a) : c && (d = d.mod(e));
|
|
2702
2749
|
}
|
|
2703
|
-
if (
|
|
2704
|
-
if (
|
|
2705
|
-
m =
|
|
2706
|
-
} else if (t = t.times(o),
|
|
2707
|
-
m =
|
|
2750
|
+
if (n) {
|
|
2751
|
+
if (n = b(n / 2), n === 0) break;
|
|
2752
|
+
m = n % 2;
|
|
2753
|
+
} else if (t = t.times(o), K(t, t.e + 1, 1), t.e > 14)
|
|
2754
|
+
m = H(t);
|
|
2708
2755
|
else {
|
|
2709
|
-
if (
|
|
2710
|
-
m =
|
|
2756
|
+
if (n = +B(t), n === 0) break;
|
|
2757
|
+
m = n % 2;
|
|
2711
2758
|
}
|
|
2712
|
-
|
|
2759
|
+
k = k.times(k), a ? k.c && k.c.length > a && (k.c.length = a) : c && (k = k.mod(e));
|
|
2713
2760
|
}
|
|
2714
|
-
return c ? d : (l && (d = re.div(d)), e ? d.mod(e) :
|
|
2761
|
+
return c ? d : (l && (d = re.div(d)), e ? d.mod(e) : a ? K(d, we, z, u) : d);
|
|
2715
2762
|
}, $.integerValue = function(t) {
|
|
2716
2763
|
var e = new C(this);
|
|
2717
|
-
return t == null ? t = z : S(t, 0, 8),
|
|
2764
|
+
return t == null ? t = z : S(t, 0, 8), K(e, e.e + 1, t);
|
|
2718
2765
|
}, $.isEqualTo = $.eq = function(t, e) {
|
|
2719
2766
|
return V(this, new C(t, e)) === 0;
|
|
2720
2767
|
}, $.isFinite = function() {
|
|
@@ -2738,142 +2785,142 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2738
2785
|
}, $.isZero = function() {
|
|
2739
2786
|
return !!this.c && this.c[0] == 0;
|
|
2740
2787
|
}, $.minus = function(t, e) {
|
|
2741
|
-
var o, c,
|
|
2742
|
-
if (t = new C(t, e), e = t.s, !
|
|
2743
|
-
if (
|
|
2788
|
+
var o, c, n, a, u = this, i = u.s;
|
|
2789
|
+
if (t = new C(t, e), e = t.s, !i || !e) return new C(NaN);
|
|
2790
|
+
if (i != e)
|
|
2744
2791
|
return t.s = -e, u.plus(t);
|
|
2745
|
-
var l = u.e / _, m = t.e / _, d = u.c,
|
|
2792
|
+
var l = u.e / _, m = t.e / _, d = u.c, k = t.c;
|
|
2746
2793
|
if (!l || !m) {
|
|
2747
|
-
if (!d || !
|
|
2748
|
-
if (!d[0] || !
|
|
2749
|
-
return
|
|
2794
|
+
if (!d || !k) return d ? (t.s = -e, t) : new C(k ? u : NaN);
|
|
2795
|
+
if (!d[0] || !k[0])
|
|
2796
|
+
return k[0] ? (t.s = -e, t) : new C(d[0] ? u : (
|
|
2750
2797
|
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
2751
2798
|
z == 3 ? -0 : 0
|
|
2752
2799
|
));
|
|
2753
2800
|
}
|
|
2754
|
-
if (l = O(l), m = O(m), d = d.slice(),
|
|
2755
|
-
for ((
|
|
2756
|
-
|
|
2801
|
+
if (l = O(l), m = O(m), d = d.slice(), i = l - m) {
|
|
2802
|
+
for ((a = i < 0) ? (i = -i, n = d) : (m = l, n = k), n.reverse(), e = i; e--; n.push(0)) ;
|
|
2803
|
+
n.reverse();
|
|
2757
2804
|
} else
|
|
2758
|
-
for (c = (
|
|
2759
|
-
if (d[e] !=
|
|
2760
|
-
|
|
2805
|
+
for (c = (a = (i = d.length) < (e = k.length)) ? i : e, i = e = 0; e < c; e++)
|
|
2806
|
+
if (d[e] != k[e]) {
|
|
2807
|
+
a = d[e] < k[e];
|
|
2761
2808
|
break;
|
|
2762
2809
|
}
|
|
2763
|
-
if (
|
|
2764
|
-
for (e = I - 1; c >
|
|
2765
|
-
if (d[--c] <
|
|
2810
|
+
if (a && (n = d, d = k, k = n, t.s = -t.s), e = (c = k.length) - (o = d.length), e > 0) for (; e--; d[o++] = 0) ;
|
|
2811
|
+
for (e = I - 1; c > i; ) {
|
|
2812
|
+
if (d[--c] < k[c]) {
|
|
2766
2813
|
for (o = c; o && !d[--o]; d[o] = e) ;
|
|
2767
2814
|
--d[o], d[c] += I;
|
|
2768
2815
|
}
|
|
2769
|
-
d[c] -=
|
|
2816
|
+
d[c] -= k[c];
|
|
2770
2817
|
}
|
|
2771
2818
|
for (; d[0] == 0; d.splice(0, 1), --m) ;
|
|
2772
2819
|
return d[0] ? Me(t, d, m) : (t.s = z == 3 ? -1 : 1, t.c = [t.e = 0], t);
|
|
2773
2820
|
}, $.modulo = $.mod = function(t, e) {
|
|
2774
|
-
var o, c,
|
|
2775
|
-
return t = new C(t, e), !
|
|
2821
|
+
var o, c, n = this;
|
|
2822
|
+
return t = new C(t, e), !n.c || !t.s || t.c && !t.c[0] ? new C(NaN) : !t.c || n.c && !n.c[0] ? new C(n) : (be == 9 ? (c = t.s, t.s = 1, o = L(n, t, 0, 3), t.s = c, o.s *= c) : o = L(n, t, 0, be), t = n.minus(o.times(t)), !t.c[0] && be == 1 && (t.s = n.s), t);
|
|
2776
2823
|
}, $.multipliedBy = $.times = function(t, e) {
|
|
2777
|
-
var o, c,
|
|
2778
|
-
if (!ae || !
|
|
2779
|
-
return !
|
|
2780
|
-
for (c = O(
|
|
2781
|
-
for (
|
|
2782
|
-
for (o = 0, D =
|
|
2783
|
-
m = ae[--u] %
|
|
2784
|
-
ne[
|
|
2824
|
+
var o, c, n, a, u, i, l, m, d, k, D, F, ne, pe, ve, se = this, ae = se.c, ye = (t = new C(t, e)).c;
|
|
2825
|
+
if (!ae || !ye || !ae[0] || !ye[0])
|
|
2826
|
+
return !se.s || !t.s || ae && !ae[0] && !ye || ye && !ye[0] && !ae ? t.c = t.e = t.s = null : (t.s *= se.s, !ae || !ye ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
|
|
2827
|
+
for (c = O(se.e / _) + O(t.e / _), t.s *= se.s, l = ae.length, k = ye.length, l < k && (ne = ae, ae = ye, ye = ne, n = l, l = k, k = n), n = l + k, ne = []; n--; ne.push(0)) ;
|
|
2828
|
+
for (pe = I, ve = E, n = k; --n >= 0; ) {
|
|
2829
|
+
for (o = 0, D = ye[n] % ve, F = ye[n] / ve | 0, u = l, a = n + u; a > n; )
|
|
2830
|
+
m = ae[--u] % ve, d = ae[u] / ve | 0, i = F * m + d * D, m = D * m + i % ve * ve + ne[a] + o, o = (m / pe | 0) + (i / ve | 0) + F * d, ne[a--] = m % pe;
|
|
2831
|
+
ne[a] = o;
|
|
2785
2832
|
}
|
|
2786
2833
|
return o ? ++c : ne.splice(0, 1), Me(t, ne, c);
|
|
2787
2834
|
}, $.negated = function() {
|
|
2788
2835
|
var t = new C(this);
|
|
2789
2836
|
return t.s = -t.s || null, t;
|
|
2790
2837
|
}, $.plus = function(t, e) {
|
|
2791
|
-
var o, c = this,
|
|
2792
|
-
if (t = new C(t, e), e = t.s, !
|
|
2793
|
-
if (
|
|
2838
|
+
var o, c = this, n = c.s;
|
|
2839
|
+
if (t = new C(t, e), e = t.s, !n || !e) return new C(NaN);
|
|
2840
|
+
if (n != e)
|
|
2794
2841
|
return t.s = -e, c.minus(t);
|
|
2795
|
-
var
|
|
2796
|
-
if (!
|
|
2797
|
-
if (!
|
|
2798
|
-
if (!
|
|
2842
|
+
var a = c.e / _, u = t.e / _, i = c.c, l = t.c;
|
|
2843
|
+
if (!a || !u) {
|
|
2844
|
+
if (!i || !l) return new C(n / 0);
|
|
2845
|
+
if (!i[0] || !l[0]) return l[0] ? t : new C(i[0] ? c : n * 0);
|
|
2799
2846
|
}
|
|
2800
|
-
if (
|
|
2801
|
-
for (
|
|
2847
|
+
if (a = O(a), u = O(u), i = i.slice(), n = a - u) {
|
|
2848
|
+
for (n > 0 ? (u = a, o = l) : (n = -n, o = i), o.reverse(); n--; o.push(0)) ;
|
|
2802
2849
|
o.reverse();
|
|
2803
2850
|
}
|
|
2804
|
-
for (
|
|
2805
|
-
|
|
2806
|
-
return
|
|
2851
|
+
for (n = i.length, e = l.length, n - e < 0 && (o = l, l = i, i = o, e = n), n = 0; e; )
|
|
2852
|
+
n = (i[--e] = i[e] + l[e] + n) / I | 0, i[e] = I === i[e] ? 0 : i[e] % I;
|
|
2853
|
+
return n && (i = [n].concat(i), ++u), Me(t, i, u);
|
|
2807
2854
|
}, $.precision = $.sd = function(t, e) {
|
|
2808
|
-
var o, c,
|
|
2855
|
+
var o, c, n, a = this;
|
|
2809
2856
|
if (t != null && t !== !!t)
|
|
2810
|
-
return S(t, 1,
|
|
2811
|
-
if (!(o =
|
|
2812
|
-
if (
|
|
2813
|
-
for (;
|
|
2814
|
-
for (
|
|
2857
|
+
return S(t, 1, G), e == null ? e = z : S(e, 0, 8), K(new C(a), t, e);
|
|
2858
|
+
if (!(o = a.c)) return null;
|
|
2859
|
+
if (n = o.length - 1, c = n * _ + 1, n = o[n]) {
|
|
2860
|
+
for (; n % 10 == 0; n /= 10, c--) ;
|
|
2861
|
+
for (n = o[0]; n >= 10; n /= 10, c++) ;
|
|
2815
2862
|
}
|
|
2816
|
-
return t &&
|
|
2863
|
+
return t && a.e + 1 > c && (c = a.e + 1), c;
|
|
2817
2864
|
}, $.shiftedBy = function(t) {
|
|
2818
2865
|
return S(t, -x, x), this.times("1e" + t);
|
|
2819
2866
|
}, $.squareRoot = $.sqrt = function() {
|
|
2820
|
-
var t, e, o, c,
|
|
2821
|
-
if (
|
|
2822
|
-
return new C(!
|
|
2823
|
-
if (
|
|
2824
|
-
for (l = o.e,
|
|
2825
|
-
if (
|
|
2826
|
-
if (o.e < l && --
|
|
2827
|
-
if (!c && (
|
|
2828
|
-
o =
|
|
2867
|
+
var t, e, o, c, n, a = this, u = a.c, i = a.s, l = a.e, m = te + 4, d = new C("0.5");
|
|
2868
|
+
if (i !== 1 || !u || !u[0])
|
|
2869
|
+
return new C(!i || i < 0 && (!u || u[0]) ? NaN : u ? a : 1 / 0);
|
|
2870
|
+
if (i = Math.sqrt(+B(a)), i == 0 || i == 1 / 0 ? (e = A(u), (e.length + l) % 2 == 0 && (e += "0"), i = Math.sqrt(+e), l = O((l + 1) / 2) - (l < 0 || l % 2), i == 1 / 0 ? e = "5e" + l : (e = i.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + l), o = new C(e)) : o = new C(i + ""), o.c[0]) {
|
|
2871
|
+
for (l = o.e, i = l + m, i < 3 && (i = 0); ; )
|
|
2872
|
+
if (n = o, o = d.times(n.plus(L(a, n, m, 1))), A(n.c).slice(0, i) === (e = A(o.c)).slice(0, i))
|
|
2873
|
+
if (o.e < l && --i, e = e.slice(i - 3, i + 1), e == "9999" || !c && e == "4999") {
|
|
2874
|
+
if (!c && (K(n, n.e + te + 2, 0), n.times(n).eq(a))) {
|
|
2875
|
+
o = n;
|
|
2829
2876
|
break;
|
|
2830
2877
|
}
|
|
2831
|
-
m += 4,
|
|
2878
|
+
m += 4, i += 4, c = 1;
|
|
2832
2879
|
} else {
|
|
2833
|
-
(!+e || !+e.slice(1) && e.charAt(0) == "5") && (
|
|
2880
|
+
(!+e || !+e.slice(1) && e.charAt(0) == "5") && (K(o, o.e + te + 2, 1), t = !o.times(o).eq(a));
|
|
2834
2881
|
break;
|
|
2835
2882
|
}
|
|
2836
2883
|
}
|
|
2837
|
-
return
|
|
2884
|
+
return K(o, o.e + te + 1, z, t);
|
|
2838
2885
|
}, $.toExponential = function(t, e) {
|
|
2839
|
-
return t != null && (S(t, 0,
|
|
2886
|
+
return t != null && (S(t, 0, G), t++), Ue(this, t, e, 1);
|
|
2840
2887
|
}, $.toFixed = function(t, e) {
|
|
2841
|
-
return t != null && (S(t, 0,
|
|
2888
|
+
return t != null && (S(t, 0, G), t = t + this.e + 1), Ue(this, t, e);
|
|
2842
2889
|
}, $.toFormat = function(t, e, o) {
|
|
2843
|
-
var c,
|
|
2890
|
+
var c, n = this;
|
|
2844
2891
|
if (o == null)
|
|
2845
2892
|
t != null && e && typeof e == "object" ? (o = e, e = null) : t && typeof t == "object" ? (o = t, t = e = null) : o = Te;
|
|
2846
2893
|
else if (typeof o != "object")
|
|
2847
2894
|
throw Error(T + "Argument not an object: " + o);
|
|
2848
|
-
if (c =
|
|
2849
|
-
var
|
|
2850
|
-
if (l && (
|
|
2851
|
-
for (
|
|
2852
|
-
l > 0 && (d += m + F.slice(
|
|
2895
|
+
if (c = n.toFixed(t, e), n.c) {
|
|
2896
|
+
var a, u = c.split("."), i = +o.groupSize, l = +o.secondaryGroupSize, m = o.groupSeparator || "", d = u[0], k = u[1], D = n.s < 0, F = D ? d.slice(1) : d, ne = F.length;
|
|
2897
|
+
if (l && (a = i, i = l, l = a, ne -= a), i > 0 && ne > 0) {
|
|
2898
|
+
for (a = ne % i || i, d = F.substr(0, a); a < ne; a += i) d += m + F.substr(a, i);
|
|
2899
|
+
l > 0 && (d += m + F.slice(a)), D && (d = "-" + d);
|
|
2853
2900
|
}
|
|
2854
|
-
c =
|
|
2901
|
+
c = k ? d + (o.decimalSeparator || "") + ((l = +o.fractionGroupSize) ? k.replace(
|
|
2855
2902
|
new RegExp("\\d{" + l + "}\\B", "g"),
|
|
2856
2903
|
"$&" + (o.fractionGroupSeparator || "")
|
|
2857
|
-
) :
|
|
2904
|
+
) : k) : d;
|
|
2858
2905
|
}
|
|
2859
2906
|
return (o.prefix || "") + c + (o.suffix || "");
|
|
2860
2907
|
}, $.toFraction = function(t) {
|
|
2861
|
-
var e, o, c,
|
|
2862
|
-
if (t != null && (
|
|
2863
|
-
throw Error(T + "Argument " + (
|
|
2908
|
+
var e, o, c, n, a, u, i, l, m, d, k, D, F = this, ne = F.c;
|
|
2909
|
+
if (t != null && (i = new C(t), !i.isInteger() && (i.c || i.s !== 1) || i.lt(re)))
|
|
2910
|
+
throw Error(T + "Argument " + (i.isInteger() ? "out of range: " : "not an integer: ") + B(i));
|
|
2864
2911
|
if (!ne) return new C(F);
|
|
2865
|
-
for (e = new C(re), m = o = new C(re), c = l = new C(re), D = A(ne),
|
|
2866
|
-
o = c, c =
|
|
2867
|
-
return
|
|
2868
|
-
L(l, o,
|
|
2869
|
-
) < 1 ? [m, c] : [l, o],
|
|
2912
|
+
for (e = new C(re), m = o = new C(re), c = l = new C(re), D = A(ne), a = e.e = D.length - F.e - 1, e.c[0] = M[(u = a % _) < 0 ? _ + u : u], t = !t || i.comparedTo(e) > 0 ? a > 0 ? e : m : i, u = fe, fe = 1 / 0, i = new C(D), l.c[0] = 0; d = L(i, e, 0, 1), n = o.plus(d.times(c)), n.comparedTo(t) != 1; )
|
|
2913
|
+
o = c, c = n, m = l.plus(d.times(n = m)), l = n, e = i.minus(d.times(n = e)), i = n;
|
|
2914
|
+
return n = L(t.minus(o), c, 0, 1), l = l.plus(n.times(m)), o = o.plus(n.times(c)), l.s = m.s = F.s, a = a * 2, k = L(m, c, a, z).minus(F).abs().comparedTo(
|
|
2915
|
+
L(l, o, a, z).minus(F).abs()
|
|
2916
|
+
) < 1 ? [m, c] : [l, o], fe = u, k;
|
|
2870
2917
|
}, $.toNumber = function() {
|
|
2871
2918
|
return +B(this);
|
|
2872
2919
|
}, $.toPrecision = function(t, e) {
|
|
2873
|
-
return t != null && S(t, 1,
|
|
2920
|
+
return t != null && S(t, 1, G), Ue(this, t, e, 2);
|
|
2874
2921
|
}, $.toString = function(t) {
|
|
2875
|
-
var e, o = this, c = o.s,
|
|
2876
|
-
return
|
|
2922
|
+
var e, o = this, c = o.s, n = o.e;
|
|
2923
|
+
return n === null ? c ? (e = "Infinity", c < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = n <= le || n >= de ? Y(A(o.c), n) : oe(A(o.c), n, "0") : t === 10 && Oe ? (o = K(new C(o), te + n + 1, z), e = oe(A(o.c), o.e, "0")) : (S(t, 2, Ne.length, "Base"), e = J(oe(A(o.c), n, "0"), 10, t, c, !0)), c < 0 && o.c[0] && (e = "-" + e)), e;
|
|
2877
2924
|
}, $.valueOf = $.toJSON = function() {
|
|
2878
2925
|
return B(this);
|
|
2879
2926
|
}, $._isBigNumber = !0, U != null && C.set(U), C;
|
|
@@ -2883,53 +2930,53 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
|
|
|
2883
2930
|
return U > 0 || U === L ? L : L - 1;
|
|
2884
2931
|
}
|
|
2885
2932
|
function A(U) {
|
|
2886
|
-
for (var L,
|
|
2887
|
-
for (L = U[
|
|
2933
|
+
for (var L, J, ee = 1, $ = U.length, re = U[0] + ""; ee < $; ) {
|
|
2934
|
+
for (L = U[ee++] + "", J = _ - L.length; J--; L = "0" + L) ;
|
|
2888
2935
|
re += L;
|
|
2889
2936
|
}
|
|
2890
2937
|
for ($ = re.length; re.charCodeAt(--$) === 48; ) ;
|
|
2891
2938
|
return re.slice(0, $ + 1 || 1);
|
|
2892
2939
|
}
|
|
2893
2940
|
function V(U, L) {
|
|
2894
|
-
var
|
|
2895
|
-
if (!
|
|
2896
|
-
if (
|
|
2897
|
-
if (
|
|
2898
|
-
if (
|
|
2899
|
-
if (!
|
|
2900
|
-
for (z = (le = $.length) < (
|
|
2901
|
-
return le ==
|
|
2941
|
+
var J, ee, $ = U.c, re = L.c, te = U.s, z = L.s, le = U.e, de = L.e;
|
|
2942
|
+
if (!te || !z) return null;
|
|
2943
|
+
if (J = $ && !$[0], ee = re && !re[0], J || ee) return J ? ee ? 0 : -z : te;
|
|
2944
|
+
if (te != z) return te;
|
|
2945
|
+
if (J = te < 0, ee = le == de, !$ || !re) return ee ? 0 : !$ ^ J ? 1 : -1;
|
|
2946
|
+
if (!ee) return le > de ^ J ? 1 : -1;
|
|
2947
|
+
for (z = (le = $.length) < (de = re.length) ? le : de, te = 0; te < z; te++) if ($[te] != re[te]) return $[te] > re[te] ^ J ? 1 : -1;
|
|
2948
|
+
return le == de ? 0 : le > de ^ J ? 1 : -1;
|
|
2902
2949
|
}
|
|
2903
|
-
function S(U, L,
|
|
2904
|
-
if (U < L || U >
|
|
2905
|
-
throw Error(T + (
|
|
2950
|
+
function S(U, L, J, ee) {
|
|
2951
|
+
if (U < L || U > J || U !== b(U))
|
|
2952
|
+
throw Error(T + (ee || "Argument") + (typeof U == "number" ? U < L || U > J ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(U));
|
|
2906
2953
|
}
|
|
2907
|
-
function
|
|
2954
|
+
function H(U) {
|
|
2908
2955
|
var L = U.c.length - 1;
|
|
2909
2956
|
return O(U.e / _) == L && U.c[L] % 2 != 0;
|
|
2910
2957
|
}
|
|
2911
|
-
function
|
|
2958
|
+
function Y(U, L) {
|
|
2912
2959
|
return (U.length > 1 ? U.charAt(0) + "." + U.slice(1) : U) + (L < 0 ? "e" : "e+") + L;
|
|
2913
2960
|
}
|
|
2914
|
-
function oe(U, L,
|
|
2915
|
-
var
|
|
2961
|
+
function oe(U, L, J) {
|
|
2962
|
+
var ee, $;
|
|
2916
2963
|
if (L < 0) {
|
|
2917
|
-
for ($ =
|
|
2964
|
+
for ($ = J + "."; ++L; $ += J) ;
|
|
2918
2965
|
U = $ + U;
|
|
2919
|
-
} else if (
|
|
2920
|
-
for ($ =
|
|
2966
|
+
} else if (ee = U.length, ++L > ee) {
|
|
2967
|
+
for ($ = J, L -= ee; --L; $ += J) ;
|
|
2921
2968
|
U += $;
|
|
2922
|
-
} else L <
|
|
2969
|
+
} else L < ee && (U = U.slice(0, L) + "." + U.slice(L));
|
|
2923
2970
|
return U;
|
|
2924
2971
|
}
|
|
2925
|
-
v =
|
|
2926
|
-
})(
|
|
2972
|
+
v = Q(), v.default = v.BigNumber = v, r.exports ? r.exports = v : (f || (f = typeof self < "u" && self ? self : window), f.BigNumber = v);
|
|
2973
|
+
})(Rr);
|
|
2927
2974
|
})(jt);
|
|
2928
2975
|
var qt = jt.exports;
|
|
2929
2976
|
(function(r) {
|
|
2930
2977
|
var f = qt, v = r.exports;
|
|
2931
2978
|
(function() {
|
|
2932
|
-
var p = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, h,
|
|
2979
|
+
var p = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, h, b, T = {
|
|
2933
2980
|
// table of character substitutions
|
|
2934
2981
|
"\b": "\\b",
|
|
2935
2982
|
" ": "\\t",
|
|
@@ -2946,10 +2993,10 @@ var qt = jt.exports;
|
|
|
2946
2993
|
}) + '"' : '"' + x + '"';
|
|
2947
2994
|
}
|
|
2948
2995
|
function _(x, M) {
|
|
2949
|
-
var E,
|
|
2996
|
+
var E, G, Q, O, A = h, V, S = M[x], H = S != null && (S instanceof f || f.isBigNumber(S));
|
|
2950
2997
|
switch (S && typeof S == "object" && typeof S.toJSON == "function" && (S = S.toJSON(x)), typeof g == "function" && (S = g.call(M, x, S)), typeof S) {
|
|
2951
2998
|
case "string":
|
|
2952
|
-
return
|
|
2999
|
+
return H ? S : I(S);
|
|
2953
3000
|
case "number":
|
|
2954
3001
|
return isFinite(S) ? String(S) : "null";
|
|
2955
3002
|
case "boolean":
|
|
@@ -2959,43 +3006,43 @@ var qt = jt.exports;
|
|
|
2959
3006
|
case "object":
|
|
2960
3007
|
if (!S)
|
|
2961
3008
|
return "null";
|
|
2962
|
-
if (h +=
|
|
3009
|
+
if (h += b, V = [], Object.prototype.toString.apply(S) === "[object Array]") {
|
|
2963
3010
|
for (O = S.length, E = 0; E < O; E += 1)
|
|
2964
3011
|
V[E] = _(E, S) || "null";
|
|
2965
|
-
return
|
|
3012
|
+
return Q = V.length === 0 ? "[]" : h ? `[
|
|
2966
3013
|
` + h + V.join(`,
|
|
2967
3014
|
` + h) + `
|
|
2968
|
-
` + A + "]" : "[" + V.join(",") + "]", h = A,
|
|
3015
|
+
` + A + "]" : "[" + V.join(",") + "]", h = A, Q;
|
|
2969
3016
|
}
|
|
2970
3017
|
if (g && typeof g == "object")
|
|
2971
3018
|
for (O = g.length, E = 0; E < O; E += 1)
|
|
2972
|
-
typeof g[E] == "string" && (
|
|
3019
|
+
typeof g[E] == "string" && (G = g[E], Q = _(G, S), Q && V.push(I(G) + (h ? ": " : ":") + Q));
|
|
2973
3020
|
else
|
|
2974
|
-
Object.keys(S).forEach(function(
|
|
2975
|
-
var oe = _(
|
|
2976
|
-
oe && V.push(I(
|
|
3021
|
+
Object.keys(S).forEach(function(Y) {
|
|
3022
|
+
var oe = _(Y, S);
|
|
3023
|
+
oe && V.push(I(Y) + (h ? ": " : ":") + oe);
|
|
2977
3024
|
});
|
|
2978
|
-
return
|
|
3025
|
+
return Q = V.length === 0 ? "{}" : h ? `{
|
|
2979
3026
|
` + h + V.join(`,
|
|
2980
3027
|
` + h) + `
|
|
2981
|
-
` + A + "}" : "{" + V.join(",") + "}", h = A,
|
|
3028
|
+
` + A + "}" : "{" + V.join(",") + "}", h = A, Q;
|
|
2982
3029
|
}
|
|
2983
3030
|
}
|
|
2984
3031
|
typeof v.stringify != "function" && (v.stringify = function(x, M, E) {
|
|
2985
|
-
var
|
|
2986
|
-
if (h = "",
|
|
2987
|
-
for (
|
|
2988
|
-
|
|
2989
|
-
else typeof E == "string" && (
|
|
3032
|
+
var G;
|
|
3033
|
+
if (h = "", b = "", typeof E == "number")
|
|
3034
|
+
for (G = 0; G < E; G += 1)
|
|
3035
|
+
b += " ";
|
|
3036
|
+
else typeof E == "string" && (b = E);
|
|
2990
3037
|
if (g = M, M && typeof M != "function" && (typeof M != "object" || typeof M.length != "number"))
|
|
2991
3038
|
throw new Error("JSON.stringify");
|
|
2992
3039
|
return _("", { "": x });
|
|
2993
3040
|
});
|
|
2994
3041
|
})();
|
|
2995
3042
|
})(Vt);
|
|
2996
|
-
var
|
|
2997
|
-
const
|
|
2998
|
-
var
|
|
3043
|
+
var zr = Vt.exports, tt = null;
|
|
3044
|
+
const Fr = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, Vr = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
|
|
3045
|
+
var jr = function(r) {
|
|
2999
3046
|
var f = {
|
|
3000
3047
|
strict: !1,
|
|
3001
3048
|
// not being strict means do not generate syntax errors for "duplicate key"
|
|
@@ -3034,15 +3081,15 @@ var Ur = function(r) {
|
|
|
3034
3081
|
`,
|
|
3035
3082
|
r: "\r",
|
|
3036
3083
|
t: " "
|
|
3037
|
-
},
|
|
3084
|
+
}, b, T = function(O) {
|
|
3038
3085
|
throw {
|
|
3039
3086
|
name: "SyntaxError",
|
|
3040
3087
|
message: O,
|
|
3041
3088
|
at: v,
|
|
3042
|
-
text:
|
|
3089
|
+
text: b
|
|
3043
3090
|
};
|
|
3044
3091
|
}, g = function(O) {
|
|
3045
|
-
return O && O !== p && T("Expected '" + O + "' instead of '" + p + "'"), p =
|
|
3092
|
+
return O && O !== p && T("Expected '" + O + "' instead of '" + p + "'"), p = b.charAt(v), v += 1, p;
|
|
3046
3093
|
}, I = function() {
|
|
3047
3094
|
var O, A = "";
|
|
3048
3095
|
for (p === "-" && (A = "-", g("-")); p >= "0" && p <= "9"; )
|
|
@@ -3056,15 +3103,15 @@ var Ur = function(r) {
|
|
|
3056
3103
|
if (O = +A, !isFinite(O))
|
|
3057
3104
|
T("Bad number");
|
|
3058
3105
|
else
|
|
3059
|
-
return
|
|
3106
|
+
return tt == null && (tt = qt), A.length > 15 ? f.storeAsString ? A : f.useNativeBigInt ? BigInt(A) : new tt(A) : f.alwaysParseAsBig ? f.useNativeBigInt ? BigInt(O) : new tt(O) : O;
|
|
3060
3107
|
}, _ = function() {
|
|
3061
3108
|
var O, A, V = "", S;
|
|
3062
3109
|
if (p === '"')
|
|
3063
|
-
for (var
|
|
3110
|
+
for (var H = v; g(); ) {
|
|
3064
3111
|
if (p === '"')
|
|
3065
|
-
return v - 1 >
|
|
3112
|
+
return v - 1 > H && (V += b.substring(H, v - 1)), g(), V;
|
|
3066
3113
|
if (p === "\\") {
|
|
3067
|
-
if (v - 1 >
|
|
3114
|
+
if (v - 1 > H && (V += b.substring(H, v - 1)), g(), p === "u") {
|
|
3068
3115
|
for (S = 0, A = 0; A < 4 && (O = parseInt(g(), 16), !!isFinite(O)); A += 1)
|
|
3069
3116
|
S = S * 16 + O;
|
|
3070
3117
|
V += String.fromCharCode(S);
|
|
@@ -3072,7 +3119,7 @@ var Ur = function(r) {
|
|
|
3072
3119
|
V += h[p];
|
|
3073
3120
|
else
|
|
3074
3121
|
break;
|
|
3075
|
-
|
|
3122
|
+
H = v;
|
|
3076
3123
|
}
|
|
3077
3124
|
}
|
|
3078
3125
|
T("Bad string");
|
|
@@ -3089,7 +3136,7 @@ var Ur = function(r) {
|
|
|
3089
3136
|
return g("n"), g("u"), g("l"), g("l"), null;
|
|
3090
3137
|
}
|
|
3091
3138
|
T("Unexpected '" + p + "'");
|
|
3092
|
-
}, E,
|
|
3139
|
+
}, E, G = function() {
|
|
3093
3140
|
var O = [];
|
|
3094
3141
|
if (p === "[") {
|
|
3095
3142
|
if (g("["), x(), p === "]")
|
|
@@ -3101,13 +3148,13 @@ var Ur = function(r) {
|
|
|
3101
3148
|
}
|
|
3102
3149
|
}
|
|
3103
3150
|
T("Bad array");
|
|
3104
|
-
},
|
|
3151
|
+
}, Q = function() {
|
|
3105
3152
|
var O, A = /* @__PURE__ */ Object.create(null);
|
|
3106
3153
|
if (p === "{") {
|
|
3107
3154
|
if (g("{"), x(), p === "}")
|
|
3108
3155
|
return g("}"), A;
|
|
3109
3156
|
for (; p; ) {
|
|
3110
|
-
if (O = _(), x(), g(":"), f.strict === !0 && Object.hasOwnProperty.call(A, O) && T('Duplicate key "' + O + '"'),
|
|
3157
|
+
if (O = _(), x(), g(":"), f.strict === !0 && Object.hasOwnProperty.call(A, O) && T('Duplicate key "' + O + '"'), Fr.test(O) === !0 ? f.protoAction === "error" ? T("Object contains forbidden prototype property") : f.protoAction === "ignore" ? E() : A[O] = E() : Vr.test(O) === !0 ? f.constructorAction === "error" ? T("Object contains forbidden constructor property") : f.constructorAction === "ignore" ? E() : A[O] = E() : A[O] = E(), x(), p === "}")
|
|
3111
3158
|
return g("}"), A;
|
|
3112
3159
|
g(","), x();
|
|
3113
3160
|
}
|
|
@@ -3117,9 +3164,9 @@ var Ur = function(r) {
|
|
|
3117
3164
|
return E = function() {
|
|
3118
3165
|
switch (x(), p) {
|
|
3119
3166
|
case "{":
|
|
3120
|
-
return
|
|
3167
|
+
return Q();
|
|
3121
3168
|
case "[":
|
|
3122
|
-
return
|
|
3169
|
+
return G();
|
|
3123
3170
|
case '"':
|
|
3124
3171
|
return _();
|
|
3125
3172
|
case "-":
|
|
@@ -3129,14 +3176,14 @@ var Ur = function(r) {
|
|
|
3129
3176
|
}
|
|
3130
3177
|
}, function(O, A) {
|
|
3131
3178
|
var V;
|
|
3132
|
-
return
|
|
3133
|
-
var oe, U =
|
|
3179
|
+
return b = O + "", v = 0, p = " ", V = E(), x(), p && T("Syntax error"), typeof A == "function" ? function S(H, Y) {
|
|
3180
|
+
var oe, U = H[Y];
|
|
3134
3181
|
return U && typeof U == "object" && Object.keys(U).forEach(function(L) {
|
|
3135
3182
|
oe = S(U, L), oe !== void 0 ? U[L] = oe : delete U[L];
|
|
3136
|
-
}), A.call(
|
|
3183
|
+
}), A.call(H, Y, U);
|
|
3137
3184
|
}({ "": V }, "") : V;
|
|
3138
3185
|
};
|
|
3139
|
-
},
|
|
3186
|
+
}, qr = jr, Gt = zr.stringify, Kt = qr;
|
|
3140
3187
|
dt.exports = function(r) {
|
|
3141
3188
|
return {
|
|
3142
3189
|
parse: Kt(r),
|
|
@@ -3145,8 +3192,8 @@ dt.exports = function(r) {
|
|
|
3145
3192
|
};
|
|
3146
3193
|
dt.exports.parse = Kt();
|
|
3147
3194
|
dt.exports.stringify = Gt;
|
|
3148
|
-
var
|
|
3149
|
-
const
|
|
3195
|
+
var Gr = dt.exports;
|
|
3196
|
+
const Kr = /* @__PURE__ */ Dr(Gr), Hr = Kr({ storeAsString: !0 }), Wr = () => {
|
|
3150
3197
|
const r = ns.create({
|
|
3151
3198
|
baseURL: void 0,
|
|
3152
3199
|
timeout: 3e4,
|
|
@@ -3158,7 +3205,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
|
|
|
3158
3205
|
(f) => {
|
|
3159
3206
|
if (typeof f == "string")
|
|
3160
3207
|
try {
|
|
3161
|
-
return
|
|
3208
|
+
return Hr.parse(f);
|
|
3162
3209
|
} catch {
|
|
3163
3210
|
return f;
|
|
3164
3211
|
}
|
|
@@ -3175,7 +3222,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
|
|
|
3175
3222
|
), r.interceptors.response.use(
|
|
3176
3223
|
(f) => {
|
|
3177
3224
|
const { data: v } = f;
|
|
3178
|
-
return v.code === 200 || v.code === 0 ? v.data : v.code === 9121 ? (Le.error("登录已过期,请重新登录"),
|
|
3225
|
+
return v.code === 200 || v.code === 0 ? v.data : v.code === 9121 ? (Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login", Promise.reject(new Error(v.message || "EXPIRED OR INVALID TOKEN"))) : (Le.error(v.message || "请求失败"), Promise.reject(new Error(v.message || "请求失败")));
|
|
3179
3226
|
},
|
|
3180
3227
|
(f) => {
|
|
3181
3228
|
var p;
|
|
@@ -3183,10 +3230,10 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
|
|
|
3183
3230
|
if (v) {
|
|
3184
3231
|
const { data: h } = v;
|
|
3185
3232
|
if ((h == null ? void 0 : h.code) === 9121)
|
|
3186
|
-
return Le.error("登录已过期,请重新登录"),
|
|
3233
|
+
return Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login", Promise.reject(f);
|
|
3187
3234
|
switch (v.status) {
|
|
3188
3235
|
case 401:
|
|
3189
|
-
Le.error("登录已过期,请重新登录"),
|
|
3236
|
+
Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login";
|
|
3190
3237
|
break;
|
|
3191
3238
|
case 403:
|
|
3192
3239
|
Le.error("没有权限访问");
|
|
@@ -3205,7 +3252,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
|
|
|
3205
3252
|
return Promise.reject(f);
|
|
3206
3253
|
}
|
|
3207
3254
|
), r;
|
|
3208
|
-
}, Fe =
|
|
3255
|
+
}, Fe = Wr(), ue = {
|
|
3209
3256
|
get(r, f) {
|
|
3210
3257
|
return Fe.get(r, f);
|
|
3211
3258
|
},
|
|
@@ -3226,22 +3273,22 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
|
|
|
3226
3273
|
return Fe.get(r, { ...f, responseType: "blob" });
|
|
3227
3274
|
}
|
|
3228
3275
|
};
|
|
3229
|
-
function
|
|
3230
|
-
return
|
|
3276
|
+
function Xr(r) {
|
|
3277
|
+
return ue.post("/user/v1.0/login/by-domain", r);
|
|
3231
3278
|
}
|
|
3232
|
-
function
|
|
3233
|
-
return
|
|
3279
|
+
function Fa() {
|
|
3280
|
+
return ue.put("/user/v1.0/user/logout");
|
|
3234
3281
|
}
|
|
3235
|
-
function
|
|
3236
|
-
return
|
|
3282
|
+
function Yr() {
|
|
3283
|
+
return ue.get("/user/v1.0/user/get-me");
|
|
3237
3284
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3285
|
+
function Va(r) {
|
|
3286
|
+
return ue.post("/user/v1.0/refresh", { refreshToken: r });
|
|
3240
3287
|
}
|
|
3241
|
-
const
|
|
3288
|
+
const Jr = { class: "login-page" }, Zr = { class: "login-form-section" }, Qr = { class: "form-container" }, ea = { class: "input-wrapper" }, ta = { class: "input-wrapper" }, sa = { class: "form-options" }, na = { key: 0 }, oa = { key: 1 }, ra = /* @__PURE__ */ Ae({
|
|
3242
3289
|
__name: "index",
|
|
3243
3290
|
setup(r) {
|
|
3244
|
-
const f = Pe(), v = qe(), p = P(!1), h = P(!1),
|
|
3291
|
+
const f = Pe(), v = qe(), p = P(!1), h = P(!1), b = kt({
|
|
3245
3292
|
uid: "",
|
|
3246
3293
|
password: ""
|
|
3247
3294
|
}), T = {
|
|
@@ -3256,11 +3303,11 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
|
|
|
3256
3303
|
var _;
|
|
3257
3304
|
try {
|
|
3258
3305
|
await ((_ = g.value) == null ? void 0 : _.validate()), p.value = !0;
|
|
3259
|
-
const x = await
|
|
3306
|
+
const x = await Xr({
|
|
3260
3307
|
appId: ct(),
|
|
3261
3308
|
clientId: Pt(),
|
|
3262
|
-
uid:
|
|
3263
|
-
password:
|
|
3309
|
+
uid: b.uid,
|
|
3310
|
+
password: b.password,
|
|
3264
3311
|
code: !0
|
|
3265
3312
|
});
|
|
3266
3313
|
Dt(x), Le.success("登录成功");
|
|
@@ -3272,35 +3319,35 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
|
|
|
3272
3319
|
p.value = !1;
|
|
3273
3320
|
}
|
|
3274
3321
|
};
|
|
3275
|
-
return (_, x) => (
|
|
3276
|
-
x[10] || (x[10] =
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
x[7] || (x[7] =
|
|
3280
|
-
|
|
3281
|
-
|
|
3322
|
+
return (_, x) => (w(), N("div", Jr, [
|
|
3323
|
+
x[10] || (x[10] = st('<div class="login-brand" data-v-102cb5d3><div class="brand-content" data-v-102cb5d3><div class="brand-logo" data-v-102cb5d3><div class="logo-icon" data-v-102cb5d3><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-102cb5d3><rect width="48" height="48" rx="12" fill="currentColor" data-v-102cb5d3></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-102cb5d3></path></svg></div><span class="logo-text" data-v-102cb5d3>XTO</span></div><div class="brand-slogan" data-v-102cb5d3><h1 data-v-102cb5d3>企业级后台管理解决方案</h1><p data-v-102cb5d3>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-102cb5d3><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>高性能</h4><p data-v-102cb5d3>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><rect x="3" y="3" width="18" height="18" rx="2" data-v-102cb5d3></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>丰富组件</h4><p data-v-102cb5d3>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><circle cx="12" cy="12" r="10" data-v-102cb5d3></circle><path d="M12 6v6l4 2" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>持续更新</h4><p data-v-102cb5d3>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-102cb5d3><div class="decoration-line" data-v-102cb5d3></div><div class="decoration-dots" data-v-102cb5d3><span data-v-102cb5d3></span><span data-v-102cb5d3></span><span data-v-102cb5d3></span></div></div></div><div class="brand-bg" data-v-102cb5d3><div class="bg-grid" data-v-102cb5d3></div><div class="bg-glow" data-v-102cb5d3></div><div class="bg-pattern" data-v-102cb5d3></div></div></div>', 1)),
|
|
3324
|
+
s("div", Zr, [
|
|
3325
|
+
s("div", Qr, [
|
|
3326
|
+
x[7] || (x[7] = s("div", { class: "form-header" }, [
|
|
3327
|
+
s("h2", null, "欢迎登录"),
|
|
3328
|
+
s("p", null, "请输入您的账户信息")
|
|
3282
3329
|
], -1)),
|
|
3283
|
-
R(
|
|
3330
|
+
R(y(ts), {
|
|
3284
3331
|
ref_key: "formRef",
|
|
3285
3332
|
ref: g,
|
|
3286
|
-
model:
|
|
3333
|
+
model: b,
|
|
3287
3334
|
rules: T,
|
|
3288
3335
|
class: "login-form",
|
|
3289
3336
|
"label-width": "0"
|
|
3290
3337
|
}, {
|
|
3291
|
-
default:
|
|
3292
|
-
R(
|
|
3293
|
-
default:
|
|
3294
|
-
|
|
3295
|
-
x[3] || (x[3] =
|
|
3296
|
-
R(
|
|
3297
|
-
modelValue:
|
|
3298
|
-
"onUpdate:modelValue": x[0] || (x[0] = (M) =>
|
|
3338
|
+
default: X(() => [
|
|
3339
|
+
R(y(mt), { prop: "uid" }, {
|
|
3340
|
+
default: X(() => [
|
|
3341
|
+
s("div", ea, [
|
|
3342
|
+
x[3] || (x[3] = s("label", { class: "input-label" }, "用户名", -1)),
|
|
3343
|
+
R(y(Tt), {
|
|
3344
|
+
modelValue: b.uid,
|
|
3345
|
+
"onUpdate:modelValue": x[0] || (x[0] = (M) => b.uid = M),
|
|
3299
3346
|
placeholder: "请输入用户名",
|
|
3300
3347
|
size: "large"
|
|
3301
3348
|
}, {
|
|
3302
|
-
prefix:
|
|
3303
|
-
R(
|
|
3349
|
+
prefix: X(() => [
|
|
3350
|
+
R(y(Z), {
|
|
3304
3351
|
name: "user",
|
|
3305
3352
|
size: 18
|
|
3306
3353
|
})
|
|
@@ -3311,21 +3358,21 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
|
|
|
3311
3358
|
]),
|
|
3312
3359
|
_: 1
|
|
3313
3360
|
}),
|
|
3314
|
-
R(
|
|
3315
|
-
default:
|
|
3316
|
-
|
|
3317
|
-
x[4] || (x[4] =
|
|
3318
|
-
R(
|
|
3319
|
-
modelValue:
|
|
3320
|
-
"onUpdate:modelValue": x[1] || (x[1] = (M) =>
|
|
3361
|
+
R(y(mt), { prop: "password" }, {
|
|
3362
|
+
default: X(() => [
|
|
3363
|
+
s("div", ta, [
|
|
3364
|
+
x[4] || (x[4] = s("label", { class: "input-label" }, "密码", -1)),
|
|
3365
|
+
R(y(Tt), {
|
|
3366
|
+
modelValue: b.password,
|
|
3367
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => b.password = M),
|
|
3321
3368
|
type: "password",
|
|
3322
3369
|
placeholder: "请输入密码",
|
|
3323
3370
|
size: "large",
|
|
3324
3371
|
"show-password": "",
|
|
3325
3372
|
onKeyup: Zt(I, ["enter"])
|
|
3326
3373
|
}, {
|
|
3327
|
-
prefix:
|
|
3328
|
-
R(
|
|
3374
|
+
prefix: X(() => [
|
|
3375
|
+
R(y(Z), {
|
|
3329
3376
|
name: "lock",
|
|
3330
3377
|
size: 18
|
|
3331
3378
|
})
|
|
@@ -3336,32 +3383,32 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
|
|
|
3336
3383
|
]),
|
|
3337
3384
|
_: 1
|
|
3338
3385
|
}),
|
|
3339
|
-
|
|
3340
|
-
R(
|
|
3386
|
+
s("div", sa, [
|
|
3387
|
+
R(y(ss), {
|
|
3341
3388
|
modelValue: h.value,
|
|
3342
3389
|
"onUpdate:modelValue": x[2] || (x[2] = (M) => h.value = M)
|
|
3343
3390
|
}, {
|
|
3344
|
-
default:
|
|
3391
|
+
default: X(() => [...x[5] || (x[5] = [
|
|
3345
3392
|
De("记住我", -1)
|
|
3346
3393
|
])]),
|
|
3347
3394
|
_: 1
|
|
3348
3395
|
}, 8, ["modelValue"]),
|
|
3349
|
-
x[6] || (x[6] =
|
|
3396
|
+
x[6] || (x[6] = s("a", {
|
|
3350
3397
|
href: "#",
|
|
3351
3398
|
class: "forgot-link"
|
|
3352
3399
|
}, "忘记密码?", -1))
|
|
3353
3400
|
]),
|
|
3354
|
-
R(
|
|
3355
|
-
default:
|
|
3356
|
-
R(
|
|
3401
|
+
R(y(mt), null, {
|
|
3402
|
+
default: X(() => [
|
|
3403
|
+
R(y(je), {
|
|
3357
3404
|
type: "primary",
|
|
3358
3405
|
size: "large",
|
|
3359
3406
|
loading: p.value,
|
|
3360
3407
|
class: "login-btn",
|
|
3361
3408
|
onClick: I
|
|
3362
3409
|
}, {
|
|
3363
|
-
default:
|
|
3364
|
-
p.value ? (
|
|
3410
|
+
default: X(() => [
|
|
3411
|
+
p.value ? (w(), N("span", oa, "登录中...")) : (w(), N("span", na, "登 录"))
|
|
3365
3412
|
]),
|
|
3366
3413
|
_: 1
|
|
3367
3414
|
}, 8, ["loading"])
|
|
@@ -3371,165 +3418,165 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
|
|
|
3371
3418
|
]),
|
|
3372
3419
|
_: 1
|
|
3373
3420
|
}, 8, ["model"]),
|
|
3374
|
-
x[8] || (x[8] =
|
|
3421
|
+
x[8] || (x[8] = st('<div class="form-footer" data-v-102cb5d3><p data-v-102cb5d3>其他登录方式</p><div class="social-login" data-v-102cb5d3><button class="social-btn" title="企业微信" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="钉钉" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="飞书" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-102cb5d3></path></svg></button></div></div>', 1))
|
|
3375
3422
|
]),
|
|
3376
|
-
x[9] || (x[9] =
|
|
3377
|
-
|
|
3423
|
+
x[9] || (x[9] = s("div", { class: "copyright" }, [
|
|
3424
|
+
s("p", null, "© 2024 XTO Team. All rights reserved.")
|
|
3378
3425
|
], -1))
|
|
3379
3426
|
])
|
|
3380
3427
|
]));
|
|
3381
3428
|
}
|
|
3382
|
-
}),
|
|
3429
|
+
}), aa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-102cb5d3"]]), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3383
3430
|
__proto__: null,
|
|
3384
|
-
default:
|
|
3385
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3431
|
+
default: aa
|
|
3432
|
+
}, Symbol.toStringTag, { value: "Module" })), la = { class: "error-page" }, ca = { class: "error-container" }, ua = { class: "error-content" }, da = { class: "error-actions" }, fa = /* @__PURE__ */ Ae({
|
|
3386
3433
|
__name: "404",
|
|
3387
3434
|
setup(r) {
|
|
3388
3435
|
const f = Pe(), v = () => {
|
|
3389
3436
|
f.push("/");
|
|
3390
3437
|
};
|
|
3391
|
-
return (p, h) => (
|
|
3392
|
-
|
|
3393
|
-
h[7] || (h[7] =
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3438
|
+
return (p, h) => (w(), N("div", la, [
|
|
3439
|
+
s("div", ca, [
|
|
3440
|
+
h[7] || (h[7] = s("div", { class: "error-bg" }, [
|
|
3441
|
+
s("div", { class: "bg-circle circle-1" }),
|
|
3442
|
+
s("div", { class: "bg-circle circle-2" }),
|
|
3443
|
+
s("div", { class: "bg-circle circle-3" })
|
|
3397
3444
|
], -1)),
|
|
3398
|
-
|
|
3399
|
-
h[5] || (h[5] =
|
|
3400
|
-
|
|
3401
|
-
R(
|
|
3445
|
+
s("div", ua, [
|
|
3446
|
+
h[5] || (h[5] = st('<div class="error-code" data-v-1b083153><span class="code-digit" data-v-1b083153>4</span><span class="code-zero" data-v-1b083153><span class="zero-inner" data-v-1b083153>0</span></span><span class="code-digit" data-v-1b083153>4</span></div><div class="error-illustration" data-v-1b083153><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-1b083153><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--color-fill)" stroke="var(--color-border)" stroke-width="2" data-v-1b083153></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--bg-color)" data-v-1b083153></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><text x="100" y="75" text-anchor="middle" fill="var(--color-primary)" font-size="24" font-weight="600" data-v-1b083153>?</text><circle cx="150" cy="35" r="12" stroke="var(--color-primary)" stroke-width="2" fill="none" data-v-1b083153></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--color-primary)" stroke-width="2" stroke-linecap="round" data-v-1b083153></line></svg></div><h1 class="error-title" data-v-1b083153>页面不存在</h1><p class="error-desc" data-v-1b083153>抱歉,您访问的页面不存在或已被删除</p>', 4)),
|
|
3447
|
+
s("div", da, [
|
|
3448
|
+
R(y(je), {
|
|
3402
3449
|
type: "primary",
|
|
3403
3450
|
size: "large",
|
|
3404
3451
|
onClick: v
|
|
3405
3452
|
}, {
|
|
3406
|
-
icon:
|
|
3407
|
-
|
|
3453
|
+
icon: X(() => [...h[1] || (h[1] = [
|
|
3454
|
+
s("svg", {
|
|
3408
3455
|
viewBox: "0 0 24 24",
|
|
3409
3456
|
fill: "none",
|
|
3410
3457
|
stroke: "currentColor",
|
|
3411
3458
|
"stroke-width": "2"
|
|
3412
3459
|
}, [
|
|
3413
|
-
|
|
3414
|
-
|
|
3460
|
+
s("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
|
|
3461
|
+
s("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
3415
3462
|
], -1)
|
|
3416
3463
|
])]),
|
|
3417
|
-
default:
|
|
3464
|
+
default: X(() => [
|
|
3418
3465
|
h[2] || (h[2] = De(" 返回首页 ", -1))
|
|
3419
3466
|
]),
|
|
3420
3467
|
_: 1
|
|
3421
3468
|
}),
|
|
3422
|
-
R(
|
|
3469
|
+
R(y(je), {
|
|
3423
3470
|
size: "large",
|
|
3424
|
-
onClick: h[0] || (h[0] = (
|
|
3471
|
+
onClick: h[0] || (h[0] = (b) => y(f).go(-1))
|
|
3425
3472
|
}, {
|
|
3426
|
-
icon:
|
|
3427
|
-
|
|
3473
|
+
icon: X(() => [...h[3] || (h[3] = [
|
|
3474
|
+
s("svg", {
|
|
3428
3475
|
viewBox: "0 0 24 24",
|
|
3429
3476
|
fill: "none",
|
|
3430
3477
|
stroke: "currentColor",
|
|
3431
3478
|
"stroke-width": "2"
|
|
3432
3479
|
}, [
|
|
3433
|
-
|
|
3480
|
+
s("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
3434
3481
|
], -1)
|
|
3435
3482
|
])]),
|
|
3436
|
-
default:
|
|
3483
|
+
default: X(() => [
|
|
3437
3484
|
h[4] || (h[4] = De(" 返回上一页 ", -1))
|
|
3438
3485
|
]),
|
|
3439
3486
|
_: 1
|
|
3440
3487
|
})
|
|
3441
3488
|
]),
|
|
3442
|
-
h[6] || (h[6] =
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3489
|
+
h[6] || (h[6] = s("div", { class: "error-tip" }, [
|
|
3490
|
+
s("p", null, "您可以尝试:"),
|
|
3491
|
+
s("ul", null, [
|
|
3492
|
+
s("li", null, "检查您输入的网址是否正确"),
|
|
3493
|
+
s("li", null, "返回首页重新浏览"),
|
|
3494
|
+
s("li", null, "联系管理员反馈问题")
|
|
3448
3495
|
])
|
|
3449
3496
|
], -1))
|
|
3450
3497
|
])
|
|
3451
3498
|
])
|
|
3452
3499
|
]));
|
|
3453
3500
|
}
|
|
3454
|
-
}),
|
|
3501
|
+
}), pa = /* @__PURE__ */ Se(fa, [["__scopeId", "data-v-1b083153"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3455
3502
|
__proto__: null,
|
|
3456
|
-
default:
|
|
3457
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3503
|
+
default: pa
|
|
3504
|
+
}, Symbol.toStringTag, { value: "Module" })), ma = { class: "error-page" }, ha = { class: "error-container" }, va = { class: "error-content" }, ga = { class: "error-actions" }, _a = /* @__PURE__ */ Ae({
|
|
3458
3505
|
__name: "403",
|
|
3459
3506
|
setup(r) {
|
|
3460
3507
|
const f = Pe(), v = () => {
|
|
3461
3508
|
f.push("/");
|
|
3462
3509
|
};
|
|
3463
|
-
return (p, h) => (
|
|
3464
|
-
|
|
3465
|
-
h[7] || (h[7] =
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3510
|
+
return (p, h) => (w(), N("div", ma, [
|
|
3511
|
+
s("div", ha, [
|
|
3512
|
+
h[7] || (h[7] = s("div", { class: "error-bg" }, [
|
|
3513
|
+
s("div", { class: "bg-circle circle-1" }),
|
|
3514
|
+
s("div", { class: "bg-circle circle-2" }),
|
|
3515
|
+
s("div", { class: "bg-circle circle-3" })
|
|
3469
3516
|
], -1)),
|
|
3470
|
-
|
|
3471
|
-
h[5] || (h[5] =
|
|
3472
|
-
|
|
3473
|
-
R(
|
|
3517
|
+
s("div", va, [
|
|
3518
|
+
h[5] || (h[5] = st('<div class="error-code" data-v-d167f981><span class="code-digit" data-v-d167f981>4</span><span class="code-zero warning" data-v-d167f981><span class="zero-inner" data-v-d167f981>0</span></span><span class="code-digit" data-v-d167f981>3</span></div><div class="error-illustration" data-v-d167f981><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-d167f981><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--color-warning-lighter)" stroke="var(--color-warning)" stroke-width="2" data-v-d167f981></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--color-warning)" data-v-d167f981></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--color-warning)" stroke-width="3" data-v-d167f981></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-d167f981></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-d167f981></line></svg></div><h1 class="error-title" data-v-d167f981>无访问权限</h1><p class="error-desc" data-v-d167f981>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
|
|
3519
|
+
s("div", ga, [
|
|
3520
|
+
R(y(je), {
|
|
3474
3521
|
type: "primary",
|
|
3475
3522
|
size: "large",
|
|
3476
3523
|
onClick: v
|
|
3477
3524
|
}, {
|
|
3478
|
-
icon:
|
|
3479
|
-
|
|
3525
|
+
icon: X(() => [...h[1] || (h[1] = [
|
|
3526
|
+
s("svg", {
|
|
3480
3527
|
viewBox: "0 0 24 24",
|
|
3481
3528
|
fill: "none",
|
|
3482
3529
|
stroke: "currentColor",
|
|
3483
3530
|
"stroke-width": "2"
|
|
3484
3531
|
}, [
|
|
3485
|
-
|
|
3486
|
-
|
|
3532
|
+
s("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
|
|
3533
|
+
s("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
3487
3534
|
], -1)
|
|
3488
3535
|
])]),
|
|
3489
|
-
default:
|
|
3536
|
+
default: X(() => [
|
|
3490
3537
|
h[2] || (h[2] = De(" 返回首页 ", -1))
|
|
3491
3538
|
]),
|
|
3492
3539
|
_: 1
|
|
3493
3540
|
}),
|
|
3494
|
-
R(
|
|
3541
|
+
R(y(je), {
|
|
3495
3542
|
size: "large",
|
|
3496
|
-
onClick: h[0] || (h[0] = (
|
|
3543
|
+
onClick: h[0] || (h[0] = (b) => y(f).go(-1))
|
|
3497
3544
|
}, {
|
|
3498
|
-
icon:
|
|
3499
|
-
|
|
3545
|
+
icon: X(() => [...h[3] || (h[3] = [
|
|
3546
|
+
s("svg", {
|
|
3500
3547
|
viewBox: "0 0 24 24",
|
|
3501
3548
|
fill: "none",
|
|
3502
3549
|
stroke: "currentColor",
|
|
3503
3550
|
"stroke-width": "2"
|
|
3504
3551
|
}, [
|
|
3505
|
-
|
|
3552
|
+
s("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
3506
3553
|
], -1)
|
|
3507
3554
|
])]),
|
|
3508
|
-
default:
|
|
3555
|
+
default: X(() => [
|
|
3509
3556
|
h[4] || (h[4] = De(" 返回上一页 ", -1))
|
|
3510
3557
|
]),
|
|
3511
3558
|
_: 1
|
|
3512
3559
|
})
|
|
3513
3560
|
]),
|
|
3514
|
-
h[6] || (h[6] =
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3561
|
+
h[6] || (h[6] = s("div", { class: "error-tip" }, [
|
|
3562
|
+
s("p", null, "可能的原因:"),
|
|
3563
|
+
s("ul", null, [
|
|
3564
|
+
s("li", null, "您的账号权限不足"),
|
|
3565
|
+
s("li", null, "该页面需要特定角色才能访问"),
|
|
3566
|
+
s("li", null, "您的登录状态已过期")
|
|
3520
3567
|
])
|
|
3521
3568
|
], -1))
|
|
3522
3569
|
])
|
|
3523
3570
|
])
|
|
3524
3571
|
]));
|
|
3525
3572
|
}
|
|
3526
|
-
}),
|
|
3527
|
-
function
|
|
3528
|
-
const r = Re(), f = $e(), v =
|
|
3573
|
+
}), ja = /* @__PURE__ */ Se(_a, [["__scopeId", "data-v-d167f981"]]);
|
|
3574
|
+
function qa() {
|
|
3575
|
+
const r = Re(), f = $e(), v = Je(), p = j(() => f.userName || ""), h = j(() => f.userInfo), b = j(() => r.appName), T = j(() => v.isLoggedIn), g = j(() => r.isDark), I = j(() => r.theme), _ = j(() => r.isCollapsed), x = j(() => r.layout);
|
|
3529
3576
|
return {
|
|
3530
3577
|
userName: p,
|
|
3531
3578
|
userInfo: h,
|
|
3532
|
-
appName:
|
|
3579
|
+
appName: b,
|
|
3533
3580
|
isLoggedIn: T,
|
|
3534
3581
|
isDark: g,
|
|
3535
3582
|
theme: I,
|
|
@@ -3543,28 +3590,28 @@ function Ba() {
|
|
|
3543
3590
|
}
|
|
3544
3591
|
};
|
|
3545
3592
|
}
|
|
3546
|
-
function
|
|
3593
|
+
function Ga() {
|
|
3547
3594
|
const r = $e();
|
|
3548
3595
|
return {
|
|
3549
3596
|
isLoggedIn: j(() => r.isLoggedIn)
|
|
3550
3597
|
};
|
|
3551
3598
|
}
|
|
3552
|
-
function
|
|
3553
|
-
const { rules: v, onSubmit: p } = f, h = P(),
|
|
3599
|
+
function Ka(r, f = {}) {
|
|
3600
|
+
const { rules: v, onSubmit: p } = f, h = P(), b = kt({ ...r }), T = P(!1), g = P(!1), I = P(!1), _ = () => {
|
|
3554
3601
|
E(), I.value = !1, g.value = !0;
|
|
3555
|
-
}, x = (
|
|
3556
|
-
Object.assign(
|
|
3602
|
+
}, x = (Q) => {
|
|
3603
|
+
Object.assign(b, Q), I.value = !0, g.value = !0;
|
|
3557
3604
|
}, M = () => {
|
|
3558
3605
|
g.value = !1, E();
|
|
3559
3606
|
}, E = () => {
|
|
3560
|
-
var
|
|
3607
|
+
var Q;
|
|
3561
3608
|
Object.keys(r).forEach((O) => {
|
|
3562
|
-
|
|
3563
|
-
}), (
|
|
3609
|
+
b[O] = r[O];
|
|
3610
|
+
}), (Q = h.value) == null || Q.resetFields();
|
|
3564
3611
|
};
|
|
3565
3612
|
return {
|
|
3566
3613
|
formRef: h,
|
|
3567
|
-
formData:
|
|
3614
|
+
formData: b,
|
|
3568
3615
|
rules: v,
|
|
3569
3616
|
loading: T,
|
|
3570
3617
|
visible: g,
|
|
@@ -3574,9 +3621,9 @@ function Ra(r, f = {}) {
|
|
|
3574
3621
|
close: M,
|
|
3575
3622
|
resetForm: E,
|
|
3576
3623
|
handleSubmit: async () => {
|
|
3577
|
-
var
|
|
3624
|
+
var Q;
|
|
3578
3625
|
try {
|
|
3579
|
-
await ((
|
|
3626
|
+
await ((Q = h.value) == null ? void 0 : Q.validate()), T.value = !0, await (p == null ? void 0 : p(b)), M();
|
|
3580
3627
|
} catch (O) {
|
|
3581
3628
|
console.error(O);
|
|
3582
3629
|
} finally {
|
|
@@ -3585,8 +3632,8 @@ function Ra(r, f = {}) {
|
|
|
3585
3632
|
}
|
|
3586
3633
|
};
|
|
3587
3634
|
}
|
|
3588
|
-
function
|
|
3589
|
-
const { fetchData: f, defaultPageSize: v = 10 } = r, p = P(!1), h = P([]),
|
|
3635
|
+
function Ha(r) {
|
|
3636
|
+
const { fetchData: f, defaultPageSize: v = 10 } = r, p = P(!1), h = P([]), b = P(0), T = P(1), g = P(v), I = kt({}), _ = async () => {
|
|
3590
3637
|
p.value = !0;
|
|
3591
3638
|
try {
|
|
3592
3639
|
const A = {
|
|
@@ -3594,7 +3641,7 @@ function Da(r) {
|
|
|
3594
3641
|
page: T.value,
|
|
3595
3642
|
pageSize: g.value
|
|
3596
3643
|
}, V = await f(A);
|
|
3597
|
-
h.value = V.list,
|
|
3644
|
+
h.value = V.list, b.value = V.total;
|
|
3598
3645
|
} catch (A) {
|
|
3599
3646
|
console.error(A);
|
|
3600
3647
|
} finally {
|
|
@@ -3608,19 +3655,19 @@ function Da(r) {
|
|
|
3608
3655
|
}), T.value = 1, _();
|
|
3609
3656
|
}, E = (A) => {
|
|
3610
3657
|
T.value = A, _();
|
|
3611
|
-
},
|
|
3658
|
+
}, G = (A) => {
|
|
3612
3659
|
g.value = A, T.value = 1, _();
|
|
3613
|
-
},
|
|
3660
|
+
}, Q = () => {
|
|
3614
3661
|
_();
|
|
3615
3662
|
}, O = j(() => ({
|
|
3616
3663
|
current: T.value,
|
|
3617
3664
|
pageSize: g.value,
|
|
3618
|
-
total:
|
|
3665
|
+
total: b.value
|
|
3619
3666
|
}));
|
|
3620
3667
|
return {
|
|
3621
3668
|
loading: p,
|
|
3622
3669
|
data: h,
|
|
3623
|
-
total:
|
|
3670
|
+
total: b,
|
|
3624
3671
|
currentPage: T,
|
|
3625
3672
|
pageSize: g,
|
|
3626
3673
|
searchParams: I,
|
|
@@ -3629,24 +3676,24 @@ function Da(r) {
|
|
|
3629
3676
|
handleSearch: x,
|
|
3630
3677
|
handleReset: M,
|
|
3631
3678
|
handlePageChange: E,
|
|
3632
|
-
handleSizeChange:
|
|
3633
|
-
refresh:
|
|
3679
|
+
handleSizeChange: G,
|
|
3680
|
+
refresh: Q
|
|
3634
3681
|
};
|
|
3635
3682
|
}
|
|
3636
|
-
function
|
|
3683
|
+
function Wa(r) {
|
|
3637
3684
|
return $e().isLoggedIn;
|
|
3638
3685
|
}
|
|
3639
|
-
function
|
|
3686
|
+
function Xa(r) {
|
|
3640
3687
|
return $e().isLoggedIn;
|
|
3641
3688
|
}
|
|
3642
|
-
function
|
|
3689
|
+
function Ya() {
|
|
3643
3690
|
return !0;
|
|
3644
3691
|
}
|
|
3645
3692
|
const Wt = [
|
|
3646
3693
|
{
|
|
3647
3694
|
path: "/login",
|
|
3648
3695
|
name: "Login",
|
|
3649
|
-
component: () => Promise.resolve().then(() =>
|
|
3696
|
+
component: () => Promise.resolve().then(() => ia),
|
|
3650
3697
|
meta: {
|
|
3651
3698
|
title: "登录",
|
|
3652
3699
|
hidden: !0
|
|
@@ -3655,13 +3702,13 @@ const Wt = [
|
|
|
3655
3702
|
], Xt = {
|
|
3656
3703
|
path: "/",
|
|
3657
3704
|
name: "Layout",
|
|
3658
|
-
component: () => Promise.resolve().then(() =>
|
|
3705
|
+
component: () => Promise.resolve().then(() => Ir),
|
|
3659
3706
|
redirect: "/dashboard",
|
|
3660
3707
|
children: [
|
|
3661
3708
|
{
|
|
3662
3709
|
path: "/dashboard",
|
|
3663
3710
|
name: "Dashboard",
|
|
3664
|
-
component: () => import("./index-
|
|
3711
|
+
component: () => import("./index-Jynxhhda.js"),
|
|
3665
3712
|
meta: {
|
|
3666
3713
|
title: "仪表盘",
|
|
3667
3714
|
icon: "dashboard",
|
|
@@ -3672,7 +3719,7 @@ const Wt = [
|
|
|
3672
3719
|
{
|
|
3673
3720
|
path: "/system/user",
|
|
3674
3721
|
name: "SystemUser",
|
|
3675
|
-
component: () => import("./index-
|
|
3722
|
+
component: () => import("./index-XgzSS-fV.js"),
|
|
3676
3723
|
meta: {
|
|
3677
3724
|
title: "用户管理",
|
|
3678
3725
|
icon: "user",
|
|
@@ -3682,7 +3729,7 @@ const Wt = [
|
|
|
3682
3729
|
{
|
|
3683
3730
|
path: "/system/role",
|
|
3684
3731
|
name: "SystemRole",
|
|
3685
|
-
component: () => import("./index-
|
|
3732
|
+
component: () => import("./index-BZaqYObA.js"),
|
|
3686
3733
|
meta: {
|
|
3687
3734
|
title: "角色管理",
|
|
3688
3735
|
icon: "role",
|
|
@@ -3692,7 +3739,7 @@ const Wt = [
|
|
|
3692
3739
|
{
|
|
3693
3740
|
path: "/system/menu",
|
|
3694
3741
|
name: "SystemMenu",
|
|
3695
|
-
component: () => import("./index-
|
|
3742
|
+
component: () => import("./index-CbwOysFI.js"),
|
|
3696
3743
|
meta: {
|
|
3697
3744
|
title: "菜单管理",
|
|
3698
3745
|
icon: "menu",
|
|
@@ -3710,11 +3757,11 @@ const Wt = [
|
|
|
3710
3757
|
}
|
|
3711
3758
|
}
|
|
3712
3759
|
]
|
|
3713
|
-
},
|
|
3760
|
+
}, Ja = [
|
|
3714
3761
|
{
|
|
3715
3762
|
path: "/dashboard",
|
|
3716
3763
|
name: "Dashboard",
|
|
3717
|
-
component: () => import("./index-
|
|
3764
|
+
component: () => import("./index-Jynxhhda.js"),
|
|
3718
3765
|
meta: {
|
|
3719
3766
|
title: "仪表盘",
|
|
3720
3767
|
icon: "dashboard",
|
|
@@ -3734,7 +3781,7 @@ const Wt = [
|
|
|
3734
3781
|
{
|
|
3735
3782
|
path: "user",
|
|
3736
3783
|
name: "SystemUser",
|
|
3737
|
-
component: () => import("./index-
|
|
3784
|
+
component: () => import("./index-XgzSS-fV.js"),
|
|
3738
3785
|
meta: {
|
|
3739
3786
|
title: "用户管理",
|
|
3740
3787
|
icon: "user",
|
|
@@ -3744,7 +3791,7 @@ const Wt = [
|
|
|
3744
3791
|
{
|
|
3745
3792
|
path: "role",
|
|
3746
3793
|
name: "SystemRole",
|
|
3747
|
-
component: () => import("./index-
|
|
3794
|
+
component: () => import("./index-BZaqYObA.js"),
|
|
3748
3795
|
meta: {
|
|
3749
3796
|
title: "角色管理",
|
|
3750
3797
|
icon: "role",
|
|
@@ -3754,7 +3801,7 @@ const Wt = [
|
|
|
3754
3801
|
{
|
|
3755
3802
|
path: "menu",
|
|
3756
3803
|
name: "SystemMenu",
|
|
3757
|
-
component: () => import("./index-
|
|
3804
|
+
component: () => import("./index-CbwOysFI.js"),
|
|
3758
3805
|
meta: {
|
|
3759
3806
|
title: "菜单管理",
|
|
3760
3807
|
icon: "menu",
|
|
@@ -3763,7 +3810,7 @@ const Wt = [
|
|
|
3763
3810
|
}
|
|
3764
3811
|
]
|
|
3765
3812
|
}
|
|
3766
|
-
],
|
|
3813
|
+
], wa = [
|
|
3767
3814
|
{
|
|
3768
3815
|
menuCode: "dashboard",
|
|
3769
3816
|
menuName: "仪表盘",
|
|
@@ -3812,10 +3859,10 @@ const Wt = [
|
|
|
3812
3859
|
]
|
|
3813
3860
|
}
|
|
3814
3861
|
], Yt = bt({
|
|
3815
|
-
history:
|
|
3862
|
+
history: xt(),
|
|
3816
3863
|
routes: [...Wt, Xt],
|
|
3817
3864
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3818
|
-
}),
|
|
3865
|
+
}), ya = ["/login"];
|
|
3819
3866
|
Yt.beforeEach(async (r, f, v) => {
|
|
3820
3867
|
const p = Re();
|
|
3821
3868
|
if (p.initTheme(), zt())
|
|
@@ -3832,19 +3879,19 @@ Yt.beforeEach(async (r, f, v) => {
|
|
|
3832
3879
|
mobilePhone: "13800138000",
|
|
3833
3880
|
positionName: "管理员",
|
|
3834
3881
|
avatar: ""
|
|
3835
|
-
}), ze().setMenuList(
|
|
3882
|
+
}), ze().setMenuList(wa)), r.name && r.meta.keepAlive && p.addCachedView(r.name), v();
|
|
3836
3883
|
}
|
|
3837
3884
|
else
|
|
3838
|
-
|
|
3885
|
+
ya.includes(r.path) ? v() : v("/login");
|
|
3839
3886
|
});
|
|
3840
|
-
function
|
|
3887
|
+
function Za() {
|
|
3841
3888
|
const r = bt({
|
|
3842
|
-
history:
|
|
3889
|
+
history: xt(),
|
|
3843
3890
|
routes: [...Wt, Xt]
|
|
3844
3891
|
});
|
|
3845
3892
|
Yt.matcher = r.matcher;
|
|
3846
3893
|
}
|
|
3847
|
-
function
|
|
3894
|
+
function Qa(r, f = {}) {
|
|
3848
3895
|
const v = f.indexPath || "/dashboard", p = {
|
|
3849
3896
|
path: "/:pathMatch(.*)*",
|
|
3850
3897
|
name: "CatchAll",
|
|
@@ -3861,119 +3908,119 @@ function Ga(r, f = {}) {
|
|
|
3861
3908
|
children: [...r, p]
|
|
3862
3909
|
};
|
|
3863
3910
|
}
|
|
3864
|
-
function
|
|
3911
|
+
function ei(r) {
|
|
3865
3912
|
return bt({
|
|
3866
|
-
history:
|
|
3913
|
+
history: xt(),
|
|
3867
3914
|
routes: r,
|
|
3868
3915
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3869
3916
|
});
|
|
3870
3917
|
}
|
|
3871
|
-
function
|
|
3872
|
-
return
|
|
3918
|
+
function ti(r) {
|
|
3919
|
+
return ue.get("/role/list", { params: r });
|
|
3873
3920
|
}
|
|
3874
|
-
function
|
|
3875
|
-
return
|
|
3921
|
+
function si(r) {
|
|
3922
|
+
return ue.get(`/role/${r}`);
|
|
3876
3923
|
}
|
|
3877
|
-
function
|
|
3878
|
-
return
|
|
3924
|
+
function ni(r) {
|
|
3925
|
+
return ue.post("/role", r);
|
|
3879
3926
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return
|
|
3927
|
+
function oi(r, f) {
|
|
3928
|
+
return ue.put(`/role/${r}`, f);
|
|
3882
3929
|
}
|
|
3883
|
-
function
|
|
3884
|
-
return
|
|
3930
|
+
function ri(r) {
|
|
3931
|
+
return ue.delete(`/role/${r}`);
|
|
3885
3932
|
}
|
|
3886
|
-
function
|
|
3887
|
-
return
|
|
3933
|
+
function ai(r, f) {
|
|
3934
|
+
return ue.patch(`/role/${r}/status`, { status: f });
|
|
3888
3935
|
}
|
|
3889
|
-
function
|
|
3890
|
-
return
|
|
3936
|
+
function ii() {
|
|
3937
|
+
return ue.get("/user/v1.0/menu/list");
|
|
3891
3938
|
}
|
|
3892
|
-
function
|
|
3939
|
+
function ka(r) {
|
|
3893
3940
|
const f = r || ct();
|
|
3894
|
-
return
|
|
3941
|
+
return ue.get(`/user/v1.0/menu/get-menu?appId=${f}`);
|
|
3895
3942
|
}
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3943
|
+
function li(r) {
|
|
3944
|
+
return ue.post("/menu", r);
|
|
3898
3945
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return
|
|
3946
|
+
function ci(r, f) {
|
|
3947
|
+
return ue.put(`/menu/${r}`, f);
|
|
3901
3948
|
}
|
|
3902
|
-
function
|
|
3903
|
-
return
|
|
3949
|
+
function ui(r) {
|
|
3950
|
+
return ue.delete(`/menu/${r}`);
|
|
3904
3951
|
}
|
|
3905
|
-
const
|
|
3906
|
-
function
|
|
3907
|
-
const v = f.whiteList ||
|
|
3908
|
-
r.beforeEach(async (
|
|
3952
|
+
const ba = ["/login", "/404", "/403"];
|
|
3953
|
+
function di(r, f = {}) {
|
|
3954
|
+
const v = f.whiteList || ba, p = f.loginPath || "/login", h = f.homePath || "/";
|
|
3955
|
+
r.beforeEach(async (b, T, g) => {
|
|
3909
3956
|
const I = Re(), _ = $e(), x = ze();
|
|
3910
3957
|
if (I.initTheme(), ut())
|
|
3911
|
-
if (
|
|
3958
|
+
if (b.path === p)
|
|
3912
3959
|
g({ path: h });
|
|
3913
3960
|
else if (_.isLoggedIn)
|
|
3914
|
-
|
|
3961
|
+
b.name && b.meta.keepAlive && I.addCachedView(b.name), g();
|
|
3915
3962
|
else
|
|
3916
3963
|
try {
|
|
3917
3964
|
if (f.fetchUserInfo) {
|
|
3918
3965
|
const E = await f.fetchUserInfo();
|
|
3919
3966
|
_.setUserInfo(E);
|
|
3920
3967
|
} else {
|
|
3921
|
-
const E = await
|
|
3968
|
+
const E = await Yr();
|
|
3922
3969
|
_.setUserInfo(E);
|
|
3923
3970
|
}
|
|
3924
3971
|
if (f.fetchMenu) {
|
|
3925
3972
|
const E = await f.fetchMenu();
|
|
3926
3973
|
x.setMenuList(E);
|
|
3927
3974
|
} else {
|
|
3928
|
-
const E = await
|
|
3975
|
+
const E = await ka(f.appId);
|
|
3929
3976
|
x.setMenuList(E);
|
|
3930
3977
|
}
|
|
3931
|
-
f.onLoginSuccess && f.onLoginSuccess(),
|
|
3978
|
+
f.onLoginSuccess && f.onLoginSuccess(), b.name && b.meta.keepAlive && I.addCachedView(b.name), g({ ...b, replace: !0 });
|
|
3932
3979
|
} catch (E) {
|
|
3933
|
-
console.error("获取用户信息失败:", E), _.clearUserInfo(), x.clearMenu(),
|
|
3980
|
+
console.error("获取用户信息失败:", E), _.clearUserInfo(), x.clearMenu(), We(), g({ path: p, query: { redirect: b.fullPath } });
|
|
3934
3981
|
}
|
|
3935
3982
|
else
|
|
3936
|
-
v.includes(
|
|
3983
|
+
v.includes(b.path) ? g() : g({ path: p, query: { redirect: b.fullPath } });
|
|
3937
3984
|
}), r.afterEach(() => {
|
|
3938
3985
|
});
|
|
3939
3986
|
}
|
|
3940
|
-
function
|
|
3941
|
-
return
|
|
3987
|
+
function fi(r) {
|
|
3988
|
+
return ue.get("/user/list", { params: r });
|
|
3942
3989
|
}
|
|
3943
|
-
function
|
|
3944
|
-
return
|
|
3990
|
+
function pi(r) {
|
|
3991
|
+
return ue.get(`/user/${r}`);
|
|
3945
3992
|
}
|
|
3946
|
-
function
|
|
3947
|
-
return
|
|
3993
|
+
function mi(r) {
|
|
3994
|
+
return ue.post("/user", r);
|
|
3948
3995
|
}
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3996
|
+
function hi(r, f) {
|
|
3997
|
+
return ue.put(`/user/${r}`, f);
|
|
3951
3998
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3999
|
+
function vi(r) {
|
|
4000
|
+
return ue.delete(`/user/${r}`);
|
|
3954
4001
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
4002
|
+
function gi(r) {
|
|
4003
|
+
return ue.post("/user/batch-delete", { ids: r });
|
|
3957
4004
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return
|
|
4005
|
+
function _i(r, f) {
|
|
4006
|
+
return ue.patch(`/user/${r}/status`, { status: f });
|
|
3960
4007
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return
|
|
4008
|
+
function wi(r) {
|
|
4009
|
+
return ue.post(`/user/${r}/reset-password`);
|
|
3963
4010
|
}
|
|
3964
|
-
var
|
|
3965
|
-
const
|
|
4011
|
+
var xa = /* @__PURE__ */ ((r) => (r[r.ENABLED = 1] = "ENABLED", r[r.DISABLED = 0] = "DISABLED", r))(xa || {}), Ca = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.MALE = 1] = "MALE", r[r.FEMALE = 2] = "FEMALE", r))(Ca || {}), Na = /* @__PURE__ */ ((r) => (r[r.DIRECTORY = 0] = "DIRECTORY", r[r.MENU = 1] = "MENU", r[r.BUTTON = 2] = "BUTTON", r))(Na || {});
|
|
4012
|
+
const yi = {
|
|
3966
4013
|
1: "启用",
|
|
3967
4014
|
0: "禁用"
|
|
3968
|
-
},
|
|
4015
|
+
}, ki = {
|
|
3969
4016
|
0: "未知",
|
|
3970
4017
|
1: "男",
|
|
3971
4018
|
2: "女"
|
|
3972
|
-
},
|
|
4019
|
+
}, bi = {
|
|
3973
4020
|
0: "目录",
|
|
3974
4021
|
1: "菜单",
|
|
3975
4022
|
2: "按钮"
|
|
3976
|
-
},
|
|
4023
|
+
}, xi = [
|
|
3977
4024
|
{
|
|
3978
4025
|
label: "启用",
|
|
3979
4026
|
value: 1
|
|
@@ -3984,7 +4031,7 @@ const fi = {
|
|
|
3984
4031
|
value: 0
|
|
3985
4032
|
/* DISABLED */
|
|
3986
4033
|
}
|
|
3987
|
-
],
|
|
4034
|
+
], Ci = [
|
|
3988
4035
|
{
|
|
3989
4036
|
label: "未知",
|
|
3990
4037
|
value: 0
|
|
@@ -4000,7 +4047,7 @@ const fi = {
|
|
|
4000
4047
|
value: 2
|
|
4001
4048
|
/* FEMALE */
|
|
4002
4049
|
}
|
|
4003
|
-
],
|
|
4050
|
+
], Ni = [
|
|
4004
4051
|
{
|
|
4005
4052
|
label: "目录",
|
|
4006
4053
|
value: 0
|
|
@@ -4016,13 +4063,13 @@ const fi = {
|
|
|
4016
4063
|
value: 2
|
|
4017
4064
|
/* BUTTON */
|
|
4018
4065
|
}
|
|
4019
|
-
],
|
|
4066
|
+
], Ei = {
|
|
4020
4067
|
mounted(r, f) {
|
|
4021
4068
|
var p;
|
|
4022
4069
|
$e().isLoggedIn || (p = r.parentNode) == null || p.removeChild(r);
|
|
4023
4070
|
}
|
|
4024
4071
|
};
|
|
4025
|
-
function
|
|
4072
|
+
function $i(r) {
|
|
4026
4073
|
return os({
|
|
4027
4074
|
appId: r.appId,
|
|
4028
4075
|
clientId: r.clientId,
|
|
@@ -4040,47 +4087,47 @@ function wi(r) {
|
|
|
4040
4087
|
}
|
|
4041
4088
|
export {
|
|
4042
4089
|
hs as $,
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4090
|
+
Ra as A,
|
|
4091
|
+
ii as B,
|
|
4092
|
+
ka as C,
|
|
4093
|
+
Pa as D,
|
|
4094
|
+
Ba as E,
|
|
4095
|
+
za as F,
|
|
4096
|
+
Ca as G,
|
|
4050
4097
|
wn as H,
|
|
4051
|
-
|
|
4052
|
-
|
|
4098
|
+
si as I,
|
|
4099
|
+
ti as J,
|
|
4053
4100
|
ut as K,
|
|
4054
4101
|
Ft as L,
|
|
4055
|
-
|
|
4102
|
+
Na as M,
|
|
4056
4103
|
ds as N,
|
|
4057
4104
|
ls as O,
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4105
|
+
pi as P,
|
|
4106
|
+
Yr as Q,
|
|
4107
|
+
fi as R,
|
|
4108
|
+
xa as S,
|
|
4109
|
+
Da as T,
|
|
4110
|
+
Wa as U,
|
|
4111
|
+
Xa as V,
|
|
4065
4112
|
zt as W,
|
|
4066
|
-
|
|
4113
|
+
ue as X,
|
|
4067
4114
|
os as Y,
|
|
4068
|
-
|
|
4115
|
+
Ya as Z,
|
|
4069
4116
|
Se as _,
|
|
4070
|
-
|
|
4117
|
+
xi as a,
|
|
4071
4118
|
Xt as a0,
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4119
|
+
W as a1,
|
|
4120
|
+
Qe as a2,
|
|
4121
|
+
Xr as a3,
|
|
4122
|
+
Fa as a4,
|
|
4123
|
+
wa as a5,
|
|
4124
|
+
Ei as a6,
|
|
4125
|
+
Va as a7,
|
|
4126
|
+
wi as a8,
|
|
4127
|
+
Za as a9,
|
|
4081
4128
|
Yt as aa,
|
|
4082
|
-
|
|
4083
|
-
|
|
4129
|
+
Ua as ab,
|
|
4130
|
+
et as ac,
|
|
4084
4131
|
ms as ad,
|
|
4085
4132
|
ps as ae,
|
|
4086
4133
|
us as af,
|
|
@@ -4088,43 +4135,43 @@ export {
|
|
|
4088
4135
|
fs as ah,
|
|
4089
4136
|
Dt as ai,
|
|
4090
4137
|
cs as aj,
|
|
4091
|
-
|
|
4138
|
+
di as ak,
|
|
4092
4139
|
Wt as al,
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4140
|
+
ci as am,
|
|
4141
|
+
oi as an,
|
|
4142
|
+
ai as ao,
|
|
4143
|
+
hi as ap,
|
|
4144
|
+
_i as aq,
|
|
4145
|
+
qa as ar,
|
|
4099
4146
|
Re as as,
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4147
|
+
Ga as at,
|
|
4148
|
+
Je as au,
|
|
4149
|
+
Ka as av,
|
|
4103
4150
|
ze as aw,
|
|
4104
|
-
|
|
4151
|
+
Ha as ax,
|
|
4105
4152
|
$e as ay,
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4153
|
+
Ni as b,
|
|
4154
|
+
ja as c,
|
|
4155
|
+
Ci as d,
|
|
4156
|
+
ki as e,
|
|
4157
|
+
bi as f,
|
|
4158
|
+
pa as g,
|
|
4159
|
+
Ut as h,
|
|
4160
|
+
aa as i,
|
|
4161
|
+
yi as j,
|
|
4162
|
+
Oa as k,
|
|
4163
|
+
gi as l,
|
|
4164
|
+
We as m,
|
|
4165
|
+
Qa as n,
|
|
4166
|
+
li as o,
|
|
4167
|
+
ni as p,
|
|
4168
|
+
ei as q,
|
|
4169
|
+
mi as r,
|
|
4170
|
+
$i as s,
|
|
4171
|
+
Ja as t,
|
|
4172
|
+
ui as u,
|
|
4173
|
+
ri as v,
|
|
4174
|
+
vi as w,
|
|
4128
4175
|
rs as x,
|
|
4129
4176
|
ct as y,
|
|
4130
4177
|
Pt as z
|