ss-component-new 1.1.415 → 1.1.417
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/array-CP-DB-qS.cjs +7 -0
- package/dist/array-CU7_6w0r.js +346 -0
- package/dist/{index-BSAEf__V.js → index-4pgWhRVN.js} +5 -5
- package/dist/{index-DjhZHYH_.cjs → index-B3AJmz_C.cjs} +1 -1
- package/dist/index-B8GEl5H_.cjs +87 -0
- package/dist/{index-BPDslvev.js → index-B8O_p-_G.js} +2 -2
- package/dist/{index-Dm1_86kX.js → index-BF4CXK8w.js} +3 -3
- package/dist/index-BMFW7H3U.cjs +1 -0
- package/dist/{index-BJitBJZu.cjs → index-BVTdPibL.cjs} +2 -2
- package/dist/{index-faxMOO3y.js → index-Bcyk637L.js} +5 -5
- package/dist/{index-CNQtTLfb.cjs → index-BpsdG9J0.cjs} +1 -1
- package/dist/{index-eSv5uzFM.js → index-Bwr24NdY.js} +354 -359
- package/dist/{index-DuwxEG2Y.js → index-C3T7U42Q.js} +11 -11
- package/dist/index-CCEkCHrk.js +1112 -0
- package/dist/{index-DbuzlHfh.js → index-CChV4BPy.js} +10 -10
- package/dist/{index-8nzu3dKT.js → index-CDLCxYbO.js} +4 -4
- package/dist/{index-BHxsT1eb.cjs → index-CEPaQEEW.cjs} +1 -1
- package/dist/{index-AzrB9NlT.js → index-CFD-iDJS.js} +4 -4
- package/dist/{index-VOSN3Mnh.js → index-CHub3JaO.js} +5 -5
- package/dist/{index-CTTEAggF.cjs → index-CIE6JLs1.cjs} +1 -1
- package/dist/index-CJ4l3GaJ.cjs +1 -0
- package/dist/{index-BxHhG5PY.js → index-CLRc75f_.js} +8 -8
- package/dist/{index-DrCpGMdZ.js → index-CMM_ICmU.js} +3 -3
- package/dist/{index-DrUjNhjW.js → index-COlD7pxM.js} +1 -1
- package/dist/index-CPP5Pt28.js +731 -0
- package/dist/{index-DoIHM98M.js → index-CSsv4KqN.js} +1 -1
- package/dist/{index-3dpRV7yS.cjs → index-CTu1NToC.cjs} +1 -1
- package/dist/{index-CdLmmvxi.cjs → index-CVMCiTTv.cjs} +1 -1
- package/dist/{index-BA-Qtevs.cjs → index-CZbhV1ZJ.cjs} +1 -1
- package/dist/{index-CilqH8oC.cjs → index-CZh-SfBL.cjs} +1 -1
- package/dist/{index-BimZK7wy.cjs → index-CcaDRZTq.cjs} +1 -1
- package/dist/{index-CA9lI4P8.js → index-CeBT1Ulw.js} +4 -4
- package/dist/{index-BVuLbYm9.cjs → index-CeVsvY0k.cjs} +1 -1
- package/dist/{index-ZUmqWSaw.cjs → index-ChcZGPnx.cjs} +1 -1
- package/dist/{index-CffNkMWN.cjs → index-CwIH21hM.cjs} +1 -1
- package/dist/{index-Dxfzna5p.cjs → index-D-RyjmUO.cjs} +1 -1
- package/dist/{index-B6_X9xq9.js → index-D3z4AgL1.js} +4 -4
- package/dist/{index-BJIMXITA.js → index-D5V1e9cO.js} +5 -5
- package/dist/{index-9srnYnzT.js → index-D6iU6Te6.js} +9 -9
- package/dist/{index-BibIA5-P.cjs → index-D88jka5v.cjs} +1 -1
- package/dist/{index-DHhMROzm.cjs → index-DADBCqDR.cjs} +1 -1
- package/dist/{index-9QTlnrEQ.cjs → index-DFb2ZrvR.cjs} +1 -1
- package/dist/{index-DPm-3I4S.js → index-DKCxgFUW.js} +6 -6
- package/dist/{index-BszUQuvL.cjs → index-DLhT_R3Q.cjs} +1 -1
- package/dist/{index-WPbX9sqP.cjs → index-DX66EWCT.cjs} +1 -1
- package/dist/{index-DMp2zGXo.js → index-Dd4IqazP.js} +7 -7
- package/dist/{index-DBB_scdx.cjs → index-WFdingrw.cjs} +1 -1
- package/dist/{index-FBp-XX6h.js → index-dGIARC7m.js} +7051 -7021
- package/dist/{index-BOzZXj2f.js → index-lGikBSHE.js} +7 -7
- package/dist/{index-BJiXsb3E.cjs → index-mGKl9i0X.cjs} +1 -1
- package/dist/{index-Bhg9ISur.js → index-oMbmGcaB.js} +6 -6
- package/dist/{index-C8jmJvXd.cjs → index-pLa33V9a.cjs} +1 -1
- package/dist/{index-UYsrvpRs.js → index-qs1AQKGF.js} +4 -4
- package/dist/index-xzoZUttH.cjs +7 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-BEMlrqwP.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-Bk4PHjWn.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5XW-lZk.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNfIOSKK.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-BJ24PgNH.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DlAg03w9.js +1636 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CNkToObt.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DM39K5kZ.js} +90 -89
- package/dist/login-0tdy4gQs.js +75 -0
- package/dist/login-BEZ7u6zR.cjs +1 -0
- package/dist/{main-C7zpT64X.js → main-Cq1MaQxR.js} +6 -6
- package/dist/{main-NoOanZcQ.cjs → main-DWQfy0Jj.cjs} +1 -1
- package/dist/{menu-B-Z5KAh5.cjs → menu-CAtGS1Fx.cjs} +4 -4
- package/dist/{menu-D9x5_s9p.js → menu-D7VMU4Hp.js} +9 -6
- package/dist/menuIndex-BWim3TlH.js +33 -0
- package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-BazaxATJ.js → threeModel-CLiNKACw.js} +5 -6
- package/dist/{threeModel-MVkoDB-c.cjs → threeModel-CiwhTLoC.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CHtdDFOo.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CwNweo5U.js} +2 -2
- package/package.json +1 -1
- package/dist/array-CYOvmzeK.js +0 -1310
- package/dist/array-DAoy3WS9.cjs +0 -7
- package/dist/index-Bvr0YvSP.cjs +0 -74
- package/dist/index-CyOcoFxe.cjs +0 -1
- package/dist/index-D68A4TXc.cjs +0 -1
- package/dist/index-DIv5glVC.js +0 -1567
- package/dist/index-Dnq8JVuW.cjs +0 -7
- package/dist/index-TEDdJfFz.js +0 -677
- package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
- package/dist/login-CARNmuDg.js +0 -103
- package/dist/login-DsWsywlE.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,1593 +0,0 @@
|
|
|
1
|
-
import { a as As, s as ks, d as Ss, e as bs, f as Ds, g as Es } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js";
|
|
2
|
-
import { ref as ne, reactive as ws, defineComponent as rs, h as Ae, Transition as Ms, withCtx as Ps, withDirectives as Is, createVNode as Ks, vShow as xs, createApp as Ns, toRefs as Cs, nextTick as ns, isRef as Ls, defineProps as js, computed as je, onMounted as Os, watch as be } from "vue";
|
|
3
|
-
import { c as Ee, g as ye, d as we, e as os, u as Te, p as Le, s as ge, E as fe } from "./menu-D9x5_s9p.js";
|
|
4
|
-
import { useRouter as _s } from "vue-router";
|
|
5
|
-
import { u as cs } from "./login-CARNmuDg.js";
|
|
6
|
-
import { g as Us } from "./index-UYsrvpRs.js";
|
|
7
|
-
import { t as Bs, b as Oe, c as Rs, d as $e, g as ve, u as Ts, f as $s, e as Js, h as Gs, i as Hs, I as ie } from "./index-faxMOO3y.js";
|
|
8
|
-
import { c as b, a as Ie, J as zs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js";
|
|
9
|
-
import { g as qs, d as Je } from "./crypto-BRyGpjGR.js";
|
|
10
|
-
import { t as Ys, g as Ge } from "./index-Bhg9ISur.js";
|
|
11
|
-
import { t as Fs } from "./index-B6_X9xq9.js";
|
|
12
|
-
import { t as Ws } from "./index-Dm1_86kX.js";
|
|
13
|
-
import { t as Xs } from "./index-DrCpGMdZ.js";
|
|
14
|
-
import { v as is } from "./index-BPDslvev.js";
|
|
15
|
-
import { u as us } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js";
|
|
16
|
-
import { a as Zs, b as Ne, i as Qs, c as ps, g as ke, d as He, e as fs, h as Vs } from "./index-DbuzlHfh.js";
|
|
17
|
-
import { g as ms } from "./index-DMp2zGXo.js";
|
|
18
|
-
import { d as ea, m as sa, g as aa, f as la, p as ta } from "./array-CYOvmzeK.js";
|
|
19
|
-
function ra(e, s) {
|
|
20
|
-
let a;
|
|
21
|
-
const l = ne(!1), o = ws({
|
|
22
|
-
...e,
|
|
23
|
-
originalPosition: "",
|
|
24
|
-
originalOverflow: "",
|
|
25
|
-
visible: !1
|
|
26
|
-
});
|
|
27
|
-
function n(t) {
|
|
28
|
-
o.text = t;
|
|
29
|
-
}
|
|
30
|
-
function u() {
|
|
31
|
-
const t = o.parent, d = k.ns;
|
|
32
|
-
if (!t.vLoadingAddClassList) {
|
|
33
|
-
let D = t.getAttribute("loading-number");
|
|
34
|
-
D = Number.parseInt(D) - 1, D ? t.setAttribute("loading-number", D.toString()) : (Ne(t, d.bm("parent", "relative")), t.removeAttribute("loading-number")), Ne(t, d.bm("parent", "hidden"));
|
|
35
|
-
}
|
|
36
|
-
y(), f.unmount();
|
|
37
|
-
}
|
|
38
|
-
function y() {
|
|
39
|
-
var t, d;
|
|
40
|
-
(d = (t = k.$el) == null ? void 0 : t.parentNode) == null || d.removeChild(k.$el);
|
|
41
|
-
}
|
|
42
|
-
function c() {
|
|
43
|
-
var t;
|
|
44
|
-
e.beforeClose && !e.beforeClose() || (l.value = !0, clearTimeout(a), a = setTimeout(p, 400), o.visible = !1, (t = e.closed) == null || t.call(e));
|
|
45
|
-
}
|
|
46
|
-
function p() {
|
|
47
|
-
if (!l.value)
|
|
48
|
-
return;
|
|
49
|
-
const t = o.parent;
|
|
50
|
-
l.value = !1, t.vLoadingAddClassList = void 0, u();
|
|
51
|
-
}
|
|
52
|
-
const i = rs({
|
|
53
|
-
name: "ElLoading",
|
|
54
|
-
setup(t, { expose: d }) {
|
|
55
|
-
const { ns: D, zIndex: g } = Zs("loading");
|
|
56
|
-
return d({
|
|
57
|
-
ns: D,
|
|
58
|
-
zIndex: g
|
|
59
|
-
}), () => {
|
|
60
|
-
const v = o.spinner || o.svg, P = Ae("svg", {
|
|
61
|
-
class: "circular",
|
|
62
|
-
viewBox: o.svgViewBox ? o.svgViewBox : "0 0 50 50",
|
|
63
|
-
...v ? { innerHTML: v } : {}
|
|
64
|
-
}, [
|
|
65
|
-
Ae("circle", {
|
|
66
|
-
class: "path",
|
|
67
|
-
cx: "25",
|
|
68
|
-
cy: "25",
|
|
69
|
-
r: "20",
|
|
70
|
-
fill: "none"
|
|
71
|
-
})
|
|
72
|
-
]), O = o.text ? Ae("p", { class: D.b("text") }, [o.text]) : void 0;
|
|
73
|
-
return Ae(Ms, {
|
|
74
|
-
name: D.b("fade"),
|
|
75
|
-
onAfterLeave: p
|
|
76
|
-
}, {
|
|
77
|
-
default: Ps(() => [
|
|
78
|
-
Is(Ks("div", {
|
|
79
|
-
style: {
|
|
80
|
-
backgroundColor: o.background || ""
|
|
81
|
-
},
|
|
82
|
-
class: [
|
|
83
|
-
D.b("mask"),
|
|
84
|
-
o.customClass,
|
|
85
|
-
o.fullscreen ? "is-fullscreen" : ""
|
|
86
|
-
]
|
|
87
|
-
}, [
|
|
88
|
-
Ae("div", {
|
|
89
|
-
class: D.b("spinner")
|
|
90
|
-
}, [P, O])
|
|
91
|
-
]), [[xs, o.visible]])
|
|
92
|
-
])
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}), f = Ns(i);
|
|
97
|
-
Object.assign(f._context, s ?? {});
|
|
98
|
-
const k = f.mount(document.createElement("div"));
|
|
99
|
-
return {
|
|
100
|
-
...Cs(o),
|
|
101
|
-
setText: n,
|
|
102
|
-
removeElLoadingChild: y,
|
|
103
|
-
close: c,
|
|
104
|
-
handleAfterLeave: p,
|
|
105
|
-
vm: k,
|
|
106
|
-
get $el() {
|
|
107
|
-
return k.$el;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
let Ke;
|
|
112
|
-
const he = function(e = {}) {
|
|
113
|
-
if (!Qs)
|
|
114
|
-
return;
|
|
115
|
-
const s = na(e);
|
|
116
|
-
if (s.fullscreen && Ke)
|
|
117
|
-
return Ke;
|
|
118
|
-
const a = ra({
|
|
119
|
-
...s,
|
|
120
|
-
closed: () => {
|
|
121
|
-
var o;
|
|
122
|
-
(o = s.closed) == null || o.call(s), s.fullscreen && (Ke = void 0);
|
|
123
|
-
}
|
|
124
|
-
}, he._context);
|
|
125
|
-
oa(s, s.parent, a), ze(s, s.parent, a), s.parent.vLoadingAddClassList = () => ze(s, s.parent, a);
|
|
126
|
-
let l = s.parent.getAttribute("loading-number");
|
|
127
|
-
return l ? l = `${Number.parseInt(l) + 1}` : l = "1", s.parent.setAttribute("loading-number", l), s.parent.appendChild(a.$el), ns(() => a.visible.value = s.visible), s.fullscreen && (Ke = a), a;
|
|
128
|
-
}, na = (e) => {
|
|
129
|
-
var s, a, l, o;
|
|
130
|
-
let n;
|
|
131
|
-
return ps(e.target) ? n = (s = document.querySelector(e.target)) != null ? s : document.body : n = e.target || document.body, {
|
|
132
|
-
parent: n === document.body || e.body ? document.body : n,
|
|
133
|
-
background: e.background || "",
|
|
134
|
-
svg: e.svg || "",
|
|
135
|
-
svgViewBox: e.svgViewBox || "",
|
|
136
|
-
spinner: e.spinner || !1,
|
|
137
|
-
text: e.text || "",
|
|
138
|
-
fullscreen: n === document.body && ((a = e.fullscreen) != null ? a : !0),
|
|
139
|
-
lock: (l = e.lock) != null ? l : !1,
|
|
140
|
-
customClass: e.customClass || "",
|
|
141
|
-
visible: (o = e.visible) != null ? o : !0,
|
|
142
|
-
beforeClose: e.beforeClose,
|
|
143
|
-
closed: e.closed,
|
|
144
|
-
target: n
|
|
145
|
-
};
|
|
146
|
-
}, oa = async (e, s, a) => {
|
|
147
|
-
const { nextZIndex: l } = a.vm.zIndex || a.vm._.exposed.zIndex, o = {};
|
|
148
|
-
if (e.fullscreen)
|
|
149
|
-
a.originalPosition.value = ke(document.body, "position"), a.originalOverflow.value = ke(document.body, "overflow"), o.zIndex = l();
|
|
150
|
-
else if (e.parent === document.body) {
|
|
151
|
-
a.originalPosition.value = ke(document.body, "position"), await ns();
|
|
152
|
-
for (const n of ["top", "left"]) {
|
|
153
|
-
const u = n === "top" ? "scrollTop" : "scrollLeft";
|
|
154
|
-
o[n] = `${e.target.getBoundingClientRect()[n] + document.body[u] + document.documentElement[u] - Number.parseInt(ke(document.body, `margin-${n}`), 10)}px`;
|
|
155
|
-
}
|
|
156
|
-
for (const n of ["height", "width"])
|
|
157
|
-
o[n] = `${e.target.getBoundingClientRect()[n]}px`;
|
|
158
|
-
} else
|
|
159
|
-
a.originalPosition.value = ke(s, "position");
|
|
160
|
-
for (const [n, u] of Object.entries(o))
|
|
161
|
-
a.$el.style[n] = u;
|
|
162
|
-
}, ze = (e, s, a) => {
|
|
163
|
-
const l = a.vm.ns || a.vm._.exposed.ns;
|
|
164
|
-
["absolute", "fixed", "sticky"].includes(a.originalPosition.value) ? Ne(s, l.bm("parent", "relative")) : He(s, l.bm("parent", "relative")), e.fullscreen && e.lock ? He(s, l.bm("parent", "hidden")) : Ne(s, l.bm("parent", "hidden"));
|
|
165
|
-
};
|
|
166
|
-
he._context = null;
|
|
167
|
-
const Se = Symbol("ElLoading"), ue = (e) => `element-loading-${Vs(e)}`, qe = (e, s) => {
|
|
168
|
-
var a, l, o, n;
|
|
169
|
-
const u = s.instance, y = (t) => fs(s.value) ? s.value[t] : void 0, c = (t) => {
|
|
170
|
-
const d = ps(t) && (u == null ? void 0 : u[t]) || t;
|
|
171
|
-
return ne(d);
|
|
172
|
-
}, p = (t) => c(y(t) || e.getAttribute(ue(t))), i = (a = y("fullscreen")) != null ? a : s.modifiers.fullscreen, f = {
|
|
173
|
-
text: p("text"),
|
|
174
|
-
svg: p("svg"),
|
|
175
|
-
svgViewBox: p("svgViewBox"),
|
|
176
|
-
spinner: p("spinner"),
|
|
177
|
-
background: p("background"),
|
|
178
|
-
customClass: p("customClass"),
|
|
179
|
-
fullscreen: i,
|
|
180
|
-
target: (l = y("target")) != null ? l : i ? void 0 : e,
|
|
181
|
-
body: (o = y("body")) != null ? o : s.modifiers.body,
|
|
182
|
-
lock: (n = y("lock")) != null ? n : s.modifiers.lock
|
|
183
|
-
}, k = he(f);
|
|
184
|
-
k._context = De._context, e[Se] = {
|
|
185
|
-
options: f,
|
|
186
|
-
instance: k
|
|
187
|
-
};
|
|
188
|
-
}, ca = (e, s) => {
|
|
189
|
-
for (const a of Object.keys(e))
|
|
190
|
-
Ls(e[a]) && (e[a].value = s[a]);
|
|
191
|
-
}, De = {
|
|
192
|
-
mounted(e, s) {
|
|
193
|
-
s.value && qe(e, s);
|
|
194
|
-
},
|
|
195
|
-
updated(e, s) {
|
|
196
|
-
const a = e[Se];
|
|
197
|
-
if (!s.value) {
|
|
198
|
-
a == null || a.instance.close(), e[Se] = null;
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
a ? ca(a.options, fs(s.value) ? s.value : {
|
|
202
|
-
text: e.getAttribute(ue("text")),
|
|
203
|
-
svg: e.getAttribute(ue("svg")),
|
|
204
|
-
svgViewBox: e.getAttribute(ue("svgViewBox")),
|
|
205
|
-
spinner: e.getAttribute(ue("spinner")),
|
|
206
|
-
background: e.getAttribute(ue("background")),
|
|
207
|
-
customClass: e.getAttribute(ue("customClass"))
|
|
208
|
-
}) : qe(e, s);
|
|
209
|
-
},
|
|
210
|
-
unmounted(e) {
|
|
211
|
-
var s;
|
|
212
|
-
(s = e[Se]) == null || s.instance.close(), e[Se] = null;
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
De._context = null;
|
|
216
|
-
const ia = {
|
|
217
|
-
install(e) {
|
|
218
|
-
he._context = e._context, De._context = e._context, e.directive("loading", De), e.config.globalProperties.$loading = he;
|
|
219
|
-
},
|
|
220
|
-
directive: De,
|
|
221
|
-
service: he
|
|
222
|
-
}, Ye = async (e) => {
|
|
223
|
-
let s = [];
|
|
224
|
-
e == null || e.forEach((a) => {
|
|
225
|
-
var l;
|
|
226
|
-
(l = a.compData) == null || l.forEach((o) => {
|
|
227
|
-
var n;
|
|
228
|
-
(n = o.contents) == null || n.forEach((u) => {
|
|
229
|
-
var c, p, i, f;
|
|
230
|
-
const y = (p = (c = u == null ? void 0 : u.compData) == null ? void 0 : c.find((k) => (k == null ? void 0 : k.key) === "extra")) == null ? void 0 : p.value;
|
|
231
|
-
(f = (i = u.compData) == null ? void 0 : i.filter((k) => (k == null ? void 0 : k.key) !== "extra")) == null || f.forEach((k) => {
|
|
232
|
-
var t;
|
|
233
|
-
(t = Bs(b(k))) == null || t.forEach(async (d) => {
|
|
234
|
-
var D, g, v, P, O, U, G, J;
|
|
235
|
-
if (d.comp === "Table") {
|
|
236
|
-
const H = await Ee({
|
|
237
|
-
key: {
|
|
238
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
239
|
-
pageKey: a.name,
|
|
240
|
-
type: "method",
|
|
241
|
-
version: 1,
|
|
242
|
-
methodName: (v = (D = a.name) == null ? void 0 : D.split("/")) == null ? void 0 : v[((g = a.name) == null ? void 0 : g.split("/").length) - 1],
|
|
243
|
-
methodKey: (P = Object.values(y[0])) == null ? void 0 : P[0],
|
|
244
|
-
parentTable: (d == null ? void 0 : d.parentTableContents) ?? ""
|
|
245
|
-
},
|
|
246
|
-
value: {
|
|
247
|
-
pageData: {
|
|
248
|
-
comp: (O = Oe(b(d))) == null ? void 0 : O.comp,
|
|
249
|
-
compData: (U = Oe(b(d))) == null ? void 0 : U.compData,
|
|
250
|
-
name: (G = Oe(b(d))) == null ? void 0 : G.name
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}), x = H.data.result, S = await ((J = Rs(b(d))) == null ? void 0 : J.map(async (L) => {
|
|
254
|
-
var W, B;
|
|
255
|
-
let C;
|
|
256
|
-
L.length !== 0 && (C = await Ee({
|
|
257
|
-
key: {
|
|
258
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
259
|
-
pageKey: a.name,
|
|
260
|
-
type: "methodData",
|
|
261
|
-
methodKey: (W = Object.values(y[0])) == null ? void 0 : W[0],
|
|
262
|
-
tableId: x
|
|
263
|
-
},
|
|
264
|
-
value: {
|
|
265
|
-
tableData: L
|
|
266
|
-
}
|
|
267
|
-
}));
|
|
268
|
-
const T = (B = (await ye({
|
|
269
|
-
key: {
|
|
270
|
-
parentTable: L,
|
|
271
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
272
|
-
pageKey: a.name,
|
|
273
|
-
type: "method"
|
|
274
|
-
}
|
|
275
|
-
})).data.result) == null ? void 0 : B.map(async (I) => await we({
|
|
276
|
-
id: I.id,
|
|
277
|
-
key: {
|
|
278
|
-
systemKey: I.key.systemKey,
|
|
279
|
-
pageKey: I.key.pageKey,
|
|
280
|
-
type: I.key.type,
|
|
281
|
-
methodKey: I.key.methodKey,
|
|
282
|
-
parentTable: C.data.result
|
|
283
|
-
}
|
|
284
|
-
}));
|
|
285
|
-
return s.push(T), C;
|
|
286
|
-
}));
|
|
287
|
-
s.push(H), s.push(S);
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
}), await Promise.all(s);
|
|
294
|
-
}, ys = Te(), Re = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((a) => {
|
|
295
|
-
var l;
|
|
296
|
-
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) !== "CALCULATOR";
|
|
297
|
-
})), s.compData && (s.compData = Re(s.compData)), s)), Fe = async (e) => {
|
|
298
|
-
var s, a, l, o, n, u, y, c, p, i, f, k, t, d, D, g, v, P, O, U, G, J, H;
|
|
299
|
-
if ((e == null ? void 0 : e.length) === 0) {
|
|
300
|
-
const x = await ye({
|
|
301
|
-
key: {
|
|
302
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
303
|
-
layer: "superAdmin"
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
if (((s = x == null ? void 0 : x.data) == null ? void 0 : s.code) === 200 && (o = (l = (a = x == null ? void 0 : x.data) == null ? void 0 : a.result) == null ? void 0 : l[0]) != null && o.id) {
|
|
307
|
-
const S = (u = (n = x == null ? void 0 : x.data) == null ? void 0 : n.result) == null ? void 0 : u[0], L = (p = (c = (y = x == null ? void 0 : x.data) == null ? void 0 : y.result) == null ? void 0 : c[0]) == null ? void 0 : p.key;
|
|
308
|
-
L.systemType = "管理系统", await we({
|
|
309
|
-
id: S == null ? void 0 : S.id,
|
|
310
|
-
key: L
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
try {
|
|
316
|
-
const x = await ye({
|
|
317
|
-
key: {
|
|
318
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
319
|
-
layer: "superAdmin"
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
if (((i = x == null ? void 0 : x.data) == null ? void 0 : i.code) === 200 && (t = (k = (f = x == null ? void 0 : x.data) == null ? void 0 : f.result) == null ? void 0 : k[0]) != null && t.id) {
|
|
323
|
-
const S = (D = (d = x == null ? void 0 : x.data) == null ? void 0 : d.result) == null ? void 0 : D[0], L = (P = (v = (g = x == null ? void 0 : x.data) == null ? void 0 : g.result) == null ? void 0 : v[0]) == null ? void 0 : P.key, C = (O = b(e)) == null ? void 0 : O.map((R) => {
|
|
324
|
-
var T;
|
|
325
|
-
return (T = R.compData) == null ? void 0 : T[0];
|
|
326
|
-
});
|
|
327
|
-
L.systemType = (G = (U = C == null ? void 0 : C.find((R) => (R == null ? void 0 : R.key) === "type")) == null ? void 0 : U.contents) == null ? void 0 : G[0], L.name = (H = (J = C == null ? void 0 : C.find((R) => (R == null ? void 0 : R.key) === "name")) == null ? void 0 : J.contents) == null ? void 0 : H[0], await we({
|
|
328
|
-
id: S == null ? void 0 : S.id,
|
|
329
|
-
key: L
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
} catch (x) {
|
|
333
|
-
return Promise.reject(x);
|
|
334
|
-
}
|
|
335
|
-
}, ds = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((a) => {
|
|
336
|
-
var l;
|
|
337
|
-
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "CALCULATOR";
|
|
338
|
-
})), s.compData && (s.compData = ds(s.compData)), s)), We = (e) => {
|
|
339
|
-
const s = ds(e);
|
|
340
|
-
let a = [];
|
|
341
|
-
return s == null || s.forEach((l) => {
|
|
342
|
-
var o;
|
|
343
|
-
(o = l.compData) != null && o.find((n) => {
|
|
344
|
-
var u;
|
|
345
|
-
return (u = n == null ? void 0 : n.contents) == null ? void 0 : u.find((y) => (y == null ? void 0 : y.comp) === "calculator");
|
|
346
|
-
}) && a.push(l);
|
|
347
|
-
}), a;
|
|
348
|
-
}, Xe = async (e) => {
|
|
349
|
-
var s, a, l, o;
|
|
350
|
-
try {
|
|
351
|
-
const n = await Ee({
|
|
352
|
-
key: {
|
|
353
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
354
|
-
pageKey: "menu",
|
|
355
|
-
type: "structure"
|
|
356
|
-
},
|
|
357
|
-
value: {
|
|
358
|
-
pageData: e
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
if (((s = n == null ? void 0 : n.data) == null ? void 0 : s.code) === 200) {
|
|
362
|
-
const u = (l = (a = e == null ? void 0 : e.compData) == null ? void 0 : a[0]) == null ? void 0 : l.contents;
|
|
363
|
-
ys.setRawMenus(u ?? []);
|
|
364
|
-
}
|
|
365
|
-
return (o = n == null ? void 0 : n.data) == null ? void 0 : o.code;
|
|
366
|
-
} catch (n) {
|
|
367
|
-
return Promise.reject(n);
|
|
368
|
-
}
|
|
369
|
-
}, ua = async (e, s) => {
|
|
370
|
-
var a, l, o, n;
|
|
371
|
-
try {
|
|
372
|
-
const u = await we({
|
|
373
|
-
id: e,
|
|
374
|
-
value: {
|
|
375
|
-
pageData: s
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
if (((a = u == null ? void 0 : u.data) == null ? void 0 : a.code) === 200) {
|
|
379
|
-
const y = (o = (l = s == null ? void 0 : s.compData) == null ? void 0 : l[0]) == null ? void 0 : o.contents;
|
|
380
|
-
ys.setRawMenus(y ?? []);
|
|
381
|
-
}
|
|
382
|
-
return (n = u == null ? void 0 : u.data) == null ? void 0 : n.code;
|
|
383
|
-
} catch (u) {
|
|
384
|
-
return Promise.reject(u);
|
|
385
|
-
}
|
|
386
|
-
}, Ze = async () => {
|
|
387
|
-
var e;
|
|
388
|
-
try {
|
|
389
|
-
const s = qs(), a = await Ee({
|
|
390
|
-
key: {
|
|
391
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
392
|
-
pageKey: "secret",
|
|
393
|
-
type: "system"
|
|
394
|
-
},
|
|
395
|
-
value: {
|
|
396
|
-
cryptoInfo: {
|
|
397
|
-
publicKey: s.publicKey,
|
|
398
|
-
privateKey: s.privateKey
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
return ((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 200;
|
|
403
|
-
} catch (s) {
|
|
404
|
-
throw s;
|
|
405
|
-
}
|
|
406
|
-
}, sl = async (e) => {
|
|
407
|
-
var o, n, u, y, c, p;
|
|
408
|
-
let s = b(e);
|
|
409
|
-
s = [...s, Ys, Fs, Ws, Xs];
|
|
410
|
-
const { menuExist: a, structureExist: l } = await is();
|
|
411
|
-
if (sessionStorage.getItem("systemKey") && !a && !l) {
|
|
412
|
-
const i = (o = Re(s)) == null ? void 0 : o.filter((t) => {
|
|
413
|
-
var d, D, g;
|
|
414
|
-
return ((d = t == null ? void 0 : t.comp) == null ? void 0 : d.toUpperCase()) !== "MENU" && ((D = t == null ? void 0 : t.comp) == null ? void 0 : D.toUpperCase()) !== "MENUTOP" && ((g = t == null ? void 0 : t.comp) == null ? void 0 : g.toUpperCase()) !== "SYSTEM";
|
|
415
|
-
}), f = s == null ? void 0 : s.find((t) => t.comp === "Menu"), k = s == null ? void 0 : s.filter((t) => t.comp === "System");
|
|
416
|
-
await Xe(f), await Fe(k), Ze(), await $e(i), await Ye((n = We(b(e))) == null ? void 0 : n.filter((t) => {
|
|
417
|
-
var d;
|
|
418
|
-
return ((d = t == null ? void 0 : t.comp) == null ? void 0 : d.toUpperCase()) !== "MENU";
|
|
419
|
-
}));
|
|
420
|
-
} else {
|
|
421
|
-
const f = (y = (u = (await ye({
|
|
422
|
-
key: {
|
|
423
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
424
|
-
}
|
|
425
|
-
})).data.result) == null ? void 0 : u.filter((g) => {
|
|
426
|
-
var v;
|
|
427
|
-
return ((v = g == null ? void 0 : g.key) == null ? void 0 : v.layer) !== "superAdmin";
|
|
428
|
-
})) == null ? void 0 : y.map((g) => g.id), k = f == null ? void 0 : f.map(async (g) => await os({
|
|
429
|
-
id: g
|
|
430
|
-
}));
|
|
431
|
-
await Promise.all(k);
|
|
432
|
-
const t = (c = Re(s)) == null ? void 0 : c.filter((g) => {
|
|
433
|
-
var v, P, O;
|
|
434
|
-
return ((v = g == null ? void 0 : g.comp) == null ? void 0 : v.toUpperCase()) !== "MENU" && ((P = g == null ? void 0 : g.comp) == null ? void 0 : P.toUpperCase()) !== "MENUTOP" && ((O = g == null ? void 0 : g.comp) == null ? void 0 : O.toUpperCase()) !== "SYSTEM";
|
|
435
|
-
}), d = s == null ? void 0 : s.find((g) => g.comp === "Menu"), D = s == null ? void 0 : s.filter((g) => g.comp === "System");
|
|
436
|
-
await Xe(d), await Fe(D), Ze(), await $e(t), await Ye((p = We(b(e))) == null ? void 0 : p.filter((g) => {
|
|
437
|
-
var v;
|
|
438
|
-
return ((v = g == null ? void 0 : g.comp) == null ? void 0 : v.toUpperCase()) !== "MENU";
|
|
439
|
-
}));
|
|
440
|
-
}
|
|
441
|
-
}, al = rs({
|
|
442
|
-
name: "menu",
|
|
443
|
-
components: {
|
|
444
|
-
ssMenu: ks,
|
|
445
|
-
DynamicIcon: As
|
|
446
|
-
},
|
|
447
|
-
setup() {
|
|
448
|
-
const e = js({
|
|
449
|
-
mode: {
|
|
450
|
-
type: String,
|
|
451
|
-
default: "vertical"
|
|
452
|
-
}
|
|
453
|
-
}), s = ne("sub-menu-more"), a = Te(), l = us(Le), o = ne(0), n = _s(), {
|
|
454
|
-
rawMenus: u,
|
|
455
|
-
activeTopMenuPath: y,
|
|
456
|
-
isRefreshMenus: c,
|
|
457
|
-
menuTriggerType: p,
|
|
458
|
-
permissionSideMenus: i,
|
|
459
|
-
platform: f,
|
|
460
|
-
cacheInputMenu: k
|
|
461
|
-
} = ge(a), t = cs(), { structureData: d } = ge(t), D = ne([]), g = ne([]), v = je(() => e == null ? void 0 : e.mode), P = (r) => {
|
|
462
|
-
const h = ia.service({
|
|
463
|
-
lock: !0,
|
|
464
|
-
text: "Loading",
|
|
465
|
-
background: "rgba(0, 0, 0, 0.7)"
|
|
466
|
-
});
|
|
467
|
-
r || h.close();
|
|
468
|
-
}, O = (r) => {
|
|
469
|
-
let h = [], A = [];
|
|
470
|
-
return r == null || r.forEach((E) => {
|
|
471
|
-
h = U(E, A);
|
|
472
|
-
}), h;
|
|
473
|
-
}, U = (r, h) => {
|
|
474
|
-
const A = h, E = [];
|
|
475
|
-
r == null || r.forEach((M) => {
|
|
476
|
-
Array.isArray(M) ? E.push({ children: U(M, []) }) : E.push({ title: M });
|
|
477
|
-
});
|
|
478
|
-
let w = E.reduce((M, _) => (Object.entries(_).forEach(([N, j]) => {
|
|
479
|
-
M[N] === void 0 ? j != null && j.title ? M[N] = [j] : M[N] = j : (Array.isArray(M[N]) || (M[N] = [{ title: M[N] }]), j != null && j.title || Array.isArray(j) ? M[N].push(j) : M[N].push({ title: j }));
|
|
480
|
-
}), M), {});
|
|
481
|
-
return w = G(b(w)), A.push(w), Array.isArray(A) && (A == null ? void 0 : A.length) > 1 ? A : A == null ? void 0 : A[0];
|
|
482
|
-
}, G = (r) => {
|
|
483
|
-
var h, A, E;
|
|
484
|
-
return Array.isArray(r == null ? void 0 : r.title) && ((h = r == null ? void 0 : r.title) == null ? void 0 : h.length) === ((E = (A = r == null ? void 0 : r.title) == null ? void 0 : A.filter((w) => w.title)) == null ? void 0 : E.length) ? r == null ? void 0 : r.title : Array.isArray(r == null ? void 0 : r.children) ? J(r) : r;
|
|
485
|
-
}, J = (r) => {
|
|
486
|
-
var A;
|
|
487
|
-
const h = r;
|
|
488
|
-
return h.children = (A = h.children) == null ? void 0 : A.map((E) => {
|
|
489
|
-
var w;
|
|
490
|
-
return (w = E == null ? void 0 : E.title) != null && w.children ? E == null ? void 0 : E.title : E;
|
|
491
|
-
}), h;
|
|
492
|
-
}, H = ne({}), x = (r) => r == null ? void 0 : r.map((h) => h.children && h.children.length > 0 ? {
|
|
493
|
-
...h,
|
|
494
|
-
// 水平菜单仅显示一层
|
|
495
|
-
children: h.level === 0 ? [] : h.children ?? [],
|
|
496
|
-
childMenus: x(h.children)
|
|
497
|
-
} : h), S = (r, h) => {
|
|
498
|
-
var A, E;
|
|
499
|
-
return h === 0 ? ((E = (A = g.value) == null ? void 0 : A.find((w) => {
|
|
500
|
-
var M;
|
|
501
|
-
return (M = r.title) == null ? void 0 : M.includes(w.value);
|
|
502
|
-
})) == null ? void 0 : E.value) ?? "wenjianjia" : h === 1 ? "wenjianjia" : "wenjian";
|
|
503
|
-
}, L = (r) => {
|
|
504
|
-
var h, A;
|
|
505
|
-
return (A = (h = g.value) == null ? void 0 : h.find((E) => {
|
|
506
|
-
var w;
|
|
507
|
-
return (w = r.title) == null ? void 0 : w.includes(E.value);
|
|
508
|
-
})) == null ? void 0 : A.value;
|
|
509
|
-
}, C = (r, h = "", A = 0) => {
|
|
510
|
-
var _;
|
|
511
|
-
let E, w = b(r);
|
|
512
|
-
const M = (_ = d.value) == null ? void 0 : _.map((N) => {
|
|
513
|
-
var j;
|
|
514
|
-
return (j = N == null ? void 0 : N.key) == null ? void 0 : j.pageKey;
|
|
515
|
-
});
|
|
516
|
-
return Array.isArray(w) || (w = [w]), E = w == null ? void 0 : w.map((N) => {
|
|
517
|
-
const j = h ? `${h}/${N.title}` : N.title, le = {
|
|
518
|
-
...N,
|
|
519
|
-
path: j,
|
|
520
|
-
level: A,
|
|
521
|
-
show: !0,
|
|
522
|
-
// icon: Icon[`${level}`],
|
|
523
|
-
icon: f.value === "client" ? S(N, A) : L(N),
|
|
524
|
-
carryData: M == null ? void 0 : M.includes(j),
|
|
525
|
-
//便于角色授权菜单那里给叶子节点添加按钮节点
|
|
526
|
-
isPenultimate: !N.children,
|
|
527
|
-
// 便于自定义新增菜单
|
|
528
|
-
children: [],
|
|
529
|
-
childMenus: []
|
|
530
|
-
};
|
|
531
|
-
return N.children && N.children.length > 0 && (le.children = C(N.children, j, A + 1)), le;
|
|
532
|
-
}), E;
|
|
533
|
-
}, R = je(() => {
|
|
534
|
-
let r = b(D.value);
|
|
535
|
-
if (r = [...r, ...i.value], (r == null ? void 0 : r.length) === 0)
|
|
536
|
-
return n.push("/"), [];
|
|
537
|
-
const h = z(r, q.value);
|
|
538
|
-
h.isFlag || (r = h == null ? void 0 : h.data);
|
|
539
|
-
const A = x(r);
|
|
540
|
-
return a.setMenus(A), A;
|
|
541
|
-
}), T = async (r) => {
|
|
542
|
-
var E, w, M;
|
|
543
|
-
let h;
|
|
544
|
-
const A = await ye({
|
|
545
|
-
key: {
|
|
546
|
-
type: "menuConfigData",
|
|
547
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
548
|
-
pageKey: "/平台管理/菜单管理/" + (r == null ? void 0 : r.path),
|
|
549
|
-
tableId: ""
|
|
550
|
-
}
|
|
551
|
-
});
|
|
552
|
-
return ((E = A == null ? void 0 : A.data) == null ? void 0 : E.code) === 200 && (h = (M = (w = A.data) == null ? void 0 : w.result) == null ? void 0 : M.map((_) => {
|
|
553
|
-
var N;
|
|
554
|
-
return {
|
|
555
|
-
id: _ == null ? void 0 : _.id,
|
|
556
|
-
...(N = _ == null ? void 0 : _.value) == null ? void 0 : N.tableData
|
|
557
|
-
};
|
|
558
|
-
})), (h == null ? void 0 : h.length) > 0 ? h : null;
|
|
559
|
-
}, W = async (r, h) => {
|
|
560
|
-
var A, E, w;
|
|
561
|
-
for (const M of h || [])
|
|
562
|
-
if (((A = M == null ? void 0 : M.menuConfig) == null ? void 0 : A.path) === r.path)
|
|
563
|
-
return {
|
|
564
|
-
...r,
|
|
565
|
-
config: await T(r),
|
|
566
|
-
icon: (w = (E = M == null ? void 0 : M.data) == null ? void 0 : E.menuConfig) == null ? void 0 : w.menuIcon
|
|
567
|
-
};
|
|
568
|
-
return r;
|
|
569
|
-
}, B = ne(null), I = (r) => {
|
|
570
|
-
var h, A;
|
|
571
|
-
if (r != null && r.config)
|
|
572
|
-
return r == null ? void 0 : r.config;
|
|
573
|
-
{
|
|
574
|
-
const E = (A = (h = B.value) == null ? void 0 : h.config) == null ? void 0 : A.filter((w) => w == null ? void 0 : w.allowInherit);
|
|
575
|
-
return (E == null ? void 0 : E.length) === 0 ? null : E;
|
|
576
|
-
}
|
|
577
|
-
}, Z = async (r) => await Promise.all(
|
|
578
|
-
r == null ? void 0 : r.map(async (h) => {
|
|
579
|
-
let A = await W(h, H.value);
|
|
580
|
-
return console.log(4560, B.value), A != null && A.config ? B.value = A : B.value = null, A != null && A.childMenus && (A == null ? void 0 : A.childMenus.length) > 0 && (A = {
|
|
581
|
-
...A,
|
|
582
|
-
config: B.value ? A == null ? void 0 : A.config : I(A),
|
|
583
|
-
children: await Z(h == null ? void 0 : h.childMenus),
|
|
584
|
-
childMenus: await Z(h == null ? void 0 : h.childMenus)
|
|
585
|
-
}), {
|
|
586
|
-
...A,
|
|
587
|
-
config: B.value ? A == null ? void 0 : A.config : I(A)
|
|
588
|
-
};
|
|
589
|
-
})
|
|
590
|
-
), V = async (r) => {
|
|
591
|
-
var A, E;
|
|
592
|
-
const h = await ye({
|
|
593
|
-
key: {
|
|
594
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
595
|
-
// pageKey: '平台管理/菜单管理/' + menu?.path,
|
|
596
|
-
type: "structure",
|
|
597
|
-
rootNodePath: r == null ? void 0 : r.path,
|
|
598
|
-
structureBelong: "dialogConfig",
|
|
599
|
-
parentTable: "",
|
|
600
|
-
version: 1
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
if (((A = h == null ? void 0 : h.data) == null ? void 0 : A.code) === 200) {
|
|
604
|
-
B.value = null;
|
|
605
|
-
const w = b(h.data.result);
|
|
606
|
-
return H.value = (E = b(w)) == null ? void 0 : E.map((_) => {
|
|
607
|
-
var N;
|
|
608
|
-
return (N = _ == null ? void 0 : _.value) == null ? void 0 : N.pageData;
|
|
609
|
-
}), console.log(7778, w), (w == null ? void 0 : w.length) === 0 ? w : await Z(r.childMenus);
|
|
610
|
-
}
|
|
611
|
-
}, te = async (r) => {
|
|
612
|
-
var h, A, E;
|
|
613
|
-
if (a.setMenuTriggerType("click"), l.setRouteToChildPath(""), a.setActiveTopMenuPath(r == null ? void 0 : r.path), a.setActiveMainMenu(r), r != null && r.childMenus && ((h = r == null ? void 0 : r.childMenus) == null ? void 0 : h.length) > 0) {
|
|
614
|
-
const w = (E = (A = r == null ? void 0 : r.childMenus) == null ? void 0 : A[0]) == null ? void 0 : E.path;
|
|
615
|
-
a.setActiveMenuPath(w);
|
|
616
|
-
const M = await V(r);
|
|
617
|
-
console.log(666, M);
|
|
618
|
-
const _ = (M == null ? void 0 : M.length) === 0 ? r == null ? void 0 : r.childMenus : M;
|
|
619
|
-
a.setAsideMenus(_);
|
|
620
|
-
} else
|
|
621
|
-
a.setAsideMenus([]);
|
|
622
|
-
r.isRouter ? n.push(r.path) : n.push("/");
|
|
623
|
-
}, oe = (r) => {
|
|
624
|
-
l.setRouteToChildPath(""), p.value === "click" ? o.value === 1 ? a.setActiveMenuPath(sessionStorage.getItem("pageKey")) : r !== s.value && a.setActiveMenuPath(r) : a.setMenuTriggerType("click"), r != null && r.startsWith("/") ? n.push(r) : n.push("/"), o.value++;
|
|
625
|
-
}, $ = (r) => {
|
|
626
|
-
r !== s.value && a.setActiveMenuPath(r);
|
|
627
|
-
}, K = (r) => {
|
|
628
|
-
const h = document.documentElement;
|
|
629
|
-
r == null || r.forEach((A) => {
|
|
630
|
-
h.style.setProperty(A.name, A.value);
|
|
631
|
-
});
|
|
632
|
-
};
|
|
633
|
-
Os(() => {
|
|
634
|
-
o.value = 1, g.value = Us();
|
|
635
|
-
});
|
|
636
|
-
const q = je(() => {
|
|
637
|
-
const r = sessionStorage.getItem("authority");
|
|
638
|
-
return r ? JSON.parse(r) : [];
|
|
639
|
-
});
|
|
640
|
-
be(() => f.value, (r) => {
|
|
641
|
-
r === "browser" ? (K(Ss), K(bs)) : r === "client" && (K(Ds), K(Es));
|
|
642
|
-
}, { immediate: !0 }), be(() => u.value, (r) => {
|
|
643
|
-
if (r) {
|
|
644
|
-
const h = r;
|
|
645
|
-
D.value = C(O(h));
|
|
646
|
-
} else
|
|
647
|
-
a.setActiveMenuPath("");
|
|
648
|
-
}, {
|
|
649
|
-
immediate: !0
|
|
650
|
-
});
|
|
651
|
-
const ae = (r, h) => {
|
|
652
|
-
function A(E) {
|
|
653
|
-
E == null || E.forEach((w) => {
|
|
654
|
-
w.show = h == null ? void 0 : h.some((M) => M == null ? void 0 : M.includes(w.path)), w.children && A(w.children);
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
return A(r), r;
|
|
658
|
-
}, z = (r, h) => {
|
|
659
|
-
if (Array.isArray(h)) {
|
|
660
|
-
const A = Array.from(new Set(h == null ? void 0 : h.map((E) => E.substring(0, E.lastIndexOf("/")))));
|
|
661
|
-
return {
|
|
662
|
-
data: ae(r, A),
|
|
663
|
-
isFlag: !1
|
|
664
|
-
};
|
|
665
|
-
} else
|
|
666
|
-
return {
|
|
667
|
-
isFlag: (h == null ? void 0 : h.toUpperCase()) === "SUPERADMIN"
|
|
668
|
-
};
|
|
669
|
-
}, m = (r) => {
|
|
670
|
-
var A;
|
|
671
|
-
const h = [r == null ? void 0 : r.title];
|
|
672
|
-
if (r != null && r.children && ((A = r == null ? void 0 : r.children) == null ? void 0 : A.length) > 0) {
|
|
673
|
-
const E = r.children.map((w) => m(w));
|
|
674
|
-
h.push(...E);
|
|
675
|
-
}
|
|
676
|
-
return h;
|
|
677
|
-
}, Y = (r, h, A, E) => r.map((w) => {
|
|
678
|
-
var M, _;
|
|
679
|
-
if (w.path === A) {
|
|
680
|
-
const N = { ...w };
|
|
681
|
-
return console.log(7771, N, E), E === "create" ? N.children.push(h) : E === "update" ? N.children = (M = N.children) == null ? void 0 : M.map((j) => (j == null ? void 0 : j.path) === (h == null ? void 0 : h.path) ? h : j) : E === "delete" && (N.children = (_ = N.children) == null ? void 0 : _.filter((j) => (j == null ? void 0 : j.path) !== (h == null ? void 0 : h.path))), N;
|
|
682
|
-
} else
|
|
683
|
-
return {
|
|
684
|
-
...w,
|
|
685
|
-
children: Y(w.children, h, A, E)
|
|
686
|
-
// 递归更新子节点
|
|
687
|
-
};
|
|
688
|
-
}), ee = async (r) => {
|
|
689
|
-
var A, E, w, M, _, N;
|
|
690
|
-
const h = (A = d.value) == null ? void 0 : A.find((j) => {
|
|
691
|
-
var le;
|
|
692
|
-
return ((le = j == null ? void 0 : j.key) == null ? void 0 : le.pageKey) === "menu";
|
|
693
|
-
});
|
|
694
|
-
if (h) {
|
|
695
|
-
const j = {
|
|
696
|
-
...(E = h.value) == null ? void 0 : E.pageData,
|
|
697
|
-
compData: (_ = (M = (w = h.value) == null ? void 0 : w.pageData) == null ? void 0 : M.compData) == null ? void 0 : _.map((ce) => ce.key === "menuContents" ? {
|
|
698
|
-
...ce,
|
|
699
|
-
contents: r
|
|
700
|
-
} : ce)
|
|
701
|
-
};
|
|
702
|
-
await ua(h == null ? void 0 : h.id, j);
|
|
703
|
-
const le = (N = R.value) == null ? void 0 : N.find((ce) => (ce == null ? void 0 : ce.path) === y.value);
|
|
704
|
-
await te(le), P(!1), fe.success("响应成功");
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
return be(() => c.value, async (r) => {
|
|
708
|
-
var h, A, E, w, M, _, N;
|
|
709
|
-
if (r)
|
|
710
|
-
try {
|
|
711
|
-
const j = (E = (A = (h = k.value) == null ? void 0 : h.data) == null ? void 0 : A.path) == null ? void 0 : E.split("/").slice(0, -1).join("/"), le = Y(D.value, (w = k.value) == null ? void 0 : w.data, j, (M = k.value) == null ? void 0 : M.type), ce = (_ = le == null ? void 0 : le.filter((Pe) => Pe.path !== "系统管理" && Pe.path !== "平台管理")) == null ? void 0 : _.map((Pe) => m(Pe));
|
|
712
|
-
console.log(777, le, ce, (N = k.value) == null ? void 0 : N.data), P(!0), await ee(ce);
|
|
713
|
-
} catch (j) {
|
|
714
|
-
throw fe.error(j), new Error(j);
|
|
715
|
-
}
|
|
716
|
-
}, { immediate: !0 }), {
|
|
717
|
-
mode: v,
|
|
718
|
-
renderMenuList: R,
|
|
719
|
-
clickMenu: te,
|
|
720
|
-
openMenu: oe,
|
|
721
|
-
closeMenu: $,
|
|
722
|
-
changeMenuStyle: K
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
var xe = { exports: {} }, pa = xe.exports, Qe;
|
|
727
|
-
function fa() {
|
|
728
|
-
return Qe || (Qe = 1, function(e, s) {
|
|
729
|
-
(function(a, l) {
|
|
730
|
-
l();
|
|
731
|
-
})(pa, function() {
|
|
732
|
-
function a(p, i) {
|
|
733
|
-
return typeof i > "u" ? i = { autoBom: !1 } : typeof i != "object" && (console.warn("Deprecated: Expected third argument to be a object"), i = { autoBom: !i }), i.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(p.type) ? new Blob(["\uFEFF", p], { type: p.type }) : p;
|
|
734
|
-
}
|
|
735
|
-
function l(p, i, f) {
|
|
736
|
-
var k = new XMLHttpRequest();
|
|
737
|
-
k.open("GET", p), k.responseType = "blob", k.onload = function() {
|
|
738
|
-
c(k.response, i, f);
|
|
739
|
-
}, k.onerror = function() {
|
|
740
|
-
console.error("could not download file");
|
|
741
|
-
}, k.send();
|
|
742
|
-
}
|
|
743
|
-
function o(p) {
|
|
744
|
-
var i = new XMLHttpRequest();
|
|
745
|
-
i.open("HEAD", p, !1);
|
|
746
|
-
try {
|
|
747
|
-
i.send();
|
|
748
|
-
} catch {
|
|
749
|
-
}
|
|
750
|
-
return 200 <= i.status && 299 >= i.status;
|
|
751
|
-
}
|
|
752
|
-
function n(p) {
|
|
753
|
-
try {
|
|
754
|
-
p.dispatchEvent(new MouseEvent("click"));
|
|
755
|
-
} catch {
|
|
756
|
-
var i = document.createEvent("MouseEvents");
|
|
757
|
-
i.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), p.dispatchEvent(i);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
var u = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof Ie == "object" && Ie.global === Ie ? Ie : void 0, y = u.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), c = u.saveAs || (typeof window != "object" || window !== u ? function() {
|
|
761
|
-
} : "download" in HTMLAnchorElement.prototype && !y ? function(p, i, f) {
|
|
762
|
-
var k = u.URL || u.webkitURL, t = document.createElement("a");
|
|
763
|
-
i = i || p.name || "download", t.download = i, t.rel = "noopener", typeof p == "string" ? (t.href = p, t.origin === location.origin ? n(t) : o(t.href) ? l(p, i, f) : n(t, t.target = "_blank")) : (t.href = k.createObjectURL(p), setTimeout(function() {
|
|
764
|
-
k.revokeObjectURL(t.href);
|
|
765
|
-
}, 4e4), setTimeout(function() {
|
|
766
|
-
n(t);
|
|
767
|
-
}, 0));
|
|
768
|
-
} : "msSaveOrOpenBlob" in navigator ? function(p, i, f) {
|
|
769
|
-
if (i = i || p.name || "download", typeof p != "string") navigator.msSaveOrOpenBlob(a(p, f), i);
|
|
770
|
-
else if (o(p)) l(p, i, f);
|
|
771
|
-
else {
|
|
772
|
-
var k = document.createElement("a");
|
|
773
|
-
k.href = p, k.target = "_blank", setTimeout(function() {
|
|
774
|
-
n(k);
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
} : function(p, i, f, k) {
|
|
778
|
-
if (k = k || open("", "_blank"), k && (k.document.title = k.document.body.innerText = "downloading..."), typeof p == "string") return l(p, i, f);
|
|
779
|
-
var t = p.type === "application/octet-stream", d = /constructor/i.test(u.HTMLElement) || u.safari, D = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
780
|
-
if ((D || t && d || y) && typeof FileReader < "u") {
|
|
781
|
-
var g = new FileReader();
|
|
782
|
-
g.onloadend = function() {
|
|
783
|
-
var O = g.result;
|
|
784
|
-
O = D ? O : O.replace(/^data:[^;]*;/, "data:attachment/file;"), k ? k.location.href = O : location = O, k = null;
|
|
785
|
-
}, g.readAsDataURL(p);
|
|
786
|
-
} else {
|
|
787
|
-
var v = u.URL || u.webkitURL, P = v.createObjectURL(p);
|
|
788
|
-
k ? k.location = P : location.href = P, k = null, setTimeout(function() {
|
|
789
|
-
v.revokeObjectURL(P);
|
|
790
|
-
}, 4e4);
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
u.saveAs = c.saveAs = c, e.exports = c;
|
|
794
|
-
});
|
|
795
|
-
}(xe)), xe.exports;
|
|
796
|
-
}
|
|
797
|
-
var ya = fa();
|
|
798
|
-
const da = cs(), { loginUserInfo: Ve, cryptoInfo: de } = ge(da), F = us(Le), { itemData: ha, curStructureCompIds: me, isSubmitCurStructure: ga, isRefreshCurStructure: va, freshContent: es } = ge(F), hs = Te(Le), { activeMenuPath: se, activeAsideMenu: _e, platform: ss, buttonTriggerType: Aa } = ge(hs), re = Ts(Le), { selectTitle: pe } = ge(re), ka = (e, s) => {
|
|
799
|
-
const a = new zs();
|
|
800
|
-
e.forEach((l) => {
|
|
801
|
-
a.file(l.name, l.content);
|
|
802
|
-
}), a.generateAsync({ type: "blob" }).then((l) => {
|
|
803
|
-
ya.saveAs(l, `${s}.zip`);
|
|
804
|
-
});
|
|
805
|
-
}, ll = () => {
|
|
806
|
-
const e = [
|
|
807
|
-
{ name: ss.value === "browser" ? "insoftest-SSIP.exe" : "insofrobot-TubeBending.exe", content: "欢迎使用" }
|
|
808
|
-
], s = ss.value === "browser" ? "insoftest-SSIP" : "insofrobot-TubeBending";
|
|
809
|
-
ka(e, s);
|
|
810
|
-
}, tl = () => {
|
|
811
|
-
F.setIsEdit("edit"), F.setSubmitCurStructure(se.value !== "/平台管理/菜单管理");
|
|
812
|
-
}, rl = () => {
|
|
813
|
-
F.setIsEdit("view"), F.setRefreshCurStructure(!0);
|
|
814
|
-
}, nl = async (e) => {
|
|
815
|
-
var s;
|
|
816
|
-
if ((e == null ? void 0 : e.key) === "main" || pe.value.length === 1)
|
|
817
|
-
X.value = await ve(se.value, sessionStorage.getItem("systemKey")), re.setSelectIndex(""), re.setSelectMenu(""), re.setSelectTitle([]);
|
|
818
|
-
else {
|
|
819
|
-
const a = [], l = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
|
|
820
|
-
X.value = await ve(se.value, sessionStorage.getItem("systemKey"), l);
|
|
821
|
-
let o = -1;
|
|
822
|
-
(s = pe.value) == null || s.forEach((n, u) => {
|
|
823
|
-
(n == null ? void 0 : n.key) === (e == null ? void 0 : e.key) && (o = u), (o === -1 || o >= u) && a.push(n);
|
|
824
|
-
}), re.setSelectTitle(a), l !== "" ? re.setSelectMenu(e == null ? void 0 : e.key) : (re.setSelectIndex(""), re.setSelectMenu(""));
|
|
825
|
-
}
|
|
826
|
-
F.setItemData(X.value), F.setOriginalData(X.value);
|
|
827
|
-
}, Ue = async (e, s, a, l = "contentConfig") => {
|
|
828
|
-
var o, n, u;
|
|
829
|
-
try {
|
|
830
|
-
let y, c;
|
|
831
|
-
s === "create" ? (y = {
|
|
832
|
-
key: {
|
|
833
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
834
|
-
pageKey: a,
|
|
835
|
-
type: "structure",
|
|
836
|
-
structureBelong: l,
|
|
837
|
-
parentTable: "",
|
|
838
|
-
version: 1
|
|
839
|
-
},
|
|
840
|
-
value: {
|
|
841
|
-
pageData: {
|
|
842
|
-
...e,
|
|
843
|
-
compData: (o = e == null ? void 0 : e.compData) == null ? void 0 : o.filter((i) => (i == null ? void 0 : i.key) !== "tableContents")
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}, c = Ee) : s === "update" ? (y = {
|
|
847
|
-
id: e == null ? void 0 : e.id,
|
|
848
|
-
key: {
|
|
849
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
850
|
-
pageKey: a,
|
|
851
|
-
type: "structure",
|
|
852
|
-
structureBelong: l,
|
|
853
|
-
parentTable: "",
|
|
854
|
-
version: 1
|
|
855
|
-
},
|
|
856
|
-
value: {
|
|
857
|
-
pageData: {
|
|
858
|
-
...e,
|
|
859
|
-
compData: (n = e == null ? void 0 : e.compData) == null ? void 0 : n.filter((i) => (i == null ? void 0 : i.key) !== "tableContents")
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}, c = we) : s === "delete" && (y = {
|
|
863
|
-
id: e,
|
|
864
|
-
key: {
|
|
865
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
866
|
-
pageKey: a,
|
|
867
|
-
type: "structure",
|
|
868
|
-
structureBelong: l,
|
|
869
|
-
parentTable: "",
|
|
870
|
-
version: 1
|
|
871
|
-
}
|
|
872
|
-
}, c = os);
|
|
873
|
-
const p = await c(y);
|
|
874
|
-
if (((u = p == null ? void 0 : p.data) == null ? void 0 : u.code) === 200)
|
|
875
|
-
return p.data.result;
|
|
876
|
-
throw fe.error("保存响应失败"), new Error("保存响应失败");
|
|
877
|
-
} catch {
|
|
878
|
-
fe.error("保存响应失败");
|
|
879
|
-
}
|
|
880
|
-
}, ol = async (e) => {
|
|
881
|
-
var p;
|
|
882
|
-
const s = JSON.parse(b(JSON.stringify(ha.value)));
|
|
883
|
-
if (!ga.value)
|
|
884
|
-
return hs.setCacheStructures({
|
|
885
|
-
key: Aa.value,
|
|
886
|
-
data: s
|
|
887
|
-
}), fe.success("已暂存");
|
|
888
|
-
const a = s == null ? void 0 : s.map((i) => i.id), l = a.filter((i) => {
|
|
889
|
-
var f;
|
|
890
|
-
return !((f = me.value) != null && f.includes(i));
|
|
891
|
-
}), o = (p = me.value) == null ? void 0 : p.filter((i) => !a.includes(i)), n = [...l, ...o], u = s == null ? void 0 : s.filter((i) => !i.id), y = s == null ? void 0 : s.filter((i) => i.id);
|
|
892
|
-
let c = [];
|
|
893
|
-
n && (n == null ? void 0 : n.length) > 0 && (n == null || n.forEach((i) => {
|
|
894
|
-
i && c.push(Ue(i, "delete", e));
|
|
895
|
-
})), u && (u == null ? void 0 : u.length) > 0 && (u == null || u.forEach((i) => {
|
|
896
|
-
i && c.push(Ue(i, "create", e));
|
|
897
|
-
})), y && (y == null ? void 0 : y.length) > 0 && (y == null || y.forEach((i) => {
|
|
898
|
-
a != null && a.includes(i.id) && (console.log("clickSavePage5", "包含"), i && c.push(Ue(i, "update", e)));
|
|
899
|
-
})), Promise.all(c).then(() => {
|
|
900
|
-
fe.success("保存成功"), F.setRefreshCurStructure(!0);
|
|
901
|
-
}).catch((i) => {
|
|
902
|
-
fe.success(i);
|
|
903
|
-
});
|
|
904
|
-
}, cl = (e) => ms(e), X = ne([]), il = async (e, s = "data") => {
|
|
905
|
-
var l, o, n, u, y, c;
|
|
906
|
-
if ((e == null ? void 0 : e.type) === "delete")
|
|
907
|
-
await Js((l = e == null ? void 0 : e.singleContent) == null ? void 0 : l.id);
|
|
908
|
-
else if ((e == null ? void 0 : e.buttonName) === "新增") {
|
|
909
|
-
let p = {};
|
|
910
|
-
for (let i in e == null ? void 0 : e.singleContent)
|
|
911
|
-
i !== "id" && i !== "index" && (p[i] = e == null ? void 0 : e.singleContent[i]);
|
|
912
|
-
await Gs(
|
|
913
|
-
s,
|
|
914
|
-
se.value,
|
|
915
|
-
e == null ? void 0 : e.index,
|
|
916
|
-
sessionStorage.getItem("systemKey"),
|
|
917
|
-
Object.values(p),
|
|
918
|
-
e == null ? void 0 : e.column,
|
|
919
|
-
e
|
|
920
|
-
);
|
|
921
|
-
} else if ((e == null ? void 0 : e.buttonName) === "编辑") {
|
|
922
|
-
let p = {}, i = (o = e == null ? void 0 : e.singleContent) == null ? void 0 : o.id;
|
|
923
|
-
for (let f in e == null ? void 0 : e.singleContent)
|
|
924
|
-
f !== "id" && f !== "index" && (p[f] = e == null ? void 0 : e.singleContent[f]);
|
|
925
|
-
await Hs(
|
|
926
|
-
s,
|
|
927
|
-
se.value,
|
|
928
|
-
e == null ? void 0 : e.index,
|
|
929
|
-
i,
|
|
930
|
-
sessionStorage.getItem("systemKey"),
|
|
931
|
-
Object.values(p),
|
|
932
|
-
e == null ? void 0 : e.column
|
|
933
|
-
);
|
|
934
|
-
}
|
|
935
|
-
let a = (u = (n = pe.value) == null ? void 0 : n[pe.value.length - 1]) != null && u.key ? parseInt((c = (y = pe.value) == null ? void 0 : y[pe.value.length - 1]) == null ? void 0 : c.key) : "";
|
|
936
|
-
X.value = await ve(se.value, sessionStorage.getItem("systemKey"), a), F.setItemData(X.value), F.setOriginalData(X.value);
|
|
937
|
-
}, Sa = async (e) => {
|
|
938
|
-
var a, l, o, n, u;
|
|
939
|
-
const s = await ye({
|
|
940
|
-
id: e
|
|
941
|
-
});
|
|
942
|
-
return (u = (n = (o = (l = (a = s == null ? void 0 : s.data) == null ? void 0 : a.result) == null ? void 0 : l[0]) == null ? void 0 : o.value) == null ? void 0 : n.pageData) == null ? void 0 : u.name;
|
|
943
|
-
}, ul = async (e) => {
|
|
944
|
-
var l, o;
|
|
945
|
-
const s = await Sa(e == null ? void 0 : e.index);
|
|
946
|
-
await $s(e == null ? void 0 : e.index, {
|
|
947
|
-
comp: "Form",
|
|
948
|
-
compData: (l = b(e == null ? void 0 : e.contents)) == null ? void 0 : l.filter((n) => n.contents),
|
|
949
|
-
name: s
|
|
950
|
-
});
|
|
951
|
-
const a = (o = b(X.value)) == null ? void 0 : o.map((n) => ((n == null ? void 0 : n.id) === (e == null ? void 0 : e.index) && (n.compData = e == null ? void 0 : e.contents), n));
|
|
952
|
-
F.setItemData(a), F.setOriginalData(a);
|
|
953
|
-
}, pl = (e) => {
|
|
954
|
-
X.value = e, F.setItemData(X.value), F.setOriginalData(X.value);
|
|
955
|
-
}, as = (e) => {
|
|
956
|
-
var s, a, l;
|
|
957
|
-
return ((a = (s = Ve.value) == null ? void 0 : s.layer) == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? !0 : ((l = Ve.value) == null ? void 0 : l.account) === (e == null ? void 0 : e.account);
|
|
958
|
-
}, ls = async (e, s, a) => {
|
|
959
|
-
const l = Ge("/系统管理/角色管理"), o = Ge("/系统管理/部门管理");
|
|
960
|
-
return await Promise.all([l, o]).then((u) => {
|
|
961
|
-
var p, i;
|
|
962
|
-
const y = (p = u == null ? void 0 : u[0]) == null ? void 0 : p.map((f) => ({
|
|
963
|
-
label: f == null ? void 0 : f.roleName,
|
|
964
|
-
value: f == null ? void 0 : f.roleName
|
|
965
|
-
})), c = (i = u == null ? void 0 : u[1]) == null ? void 0 : i.map((f) => ({
|
|
966
|
-
label: f == null ? void 0 : f.deptName,
|
|
967
|
-
value: f == null ? void 0 : f.deptName
|
|
968
|
-
}));
|
|
969
|
-
return a ? e == null ? void 0 : e.map((f) => {
|
|
970
|
-
var k;
|
|
971
|
-
return {
|
|
972
|
-
...f,
|
|
973
|
-
compData: (k = f == null ? void 0 : f.compData) == null ? void 0 : k.map((t) => {
|
|
974
|
-
var d, D;
|
|
975
|
-
return (t == null ? void 0 : t.key) === "header" ? {
|
|
976
|
-
...t,
|
|
977
|
-
contents: (d = t == null ? void 0 : t.contents) == null ? void 0 : d.map((g) => g.prop === "userDept" ? {
|
|
978
|
-
...g,
|
|
979
|
-
options: c
|
|
980
|
-
} : g.prop === "userRoles" ? {
|
|
981
|
-
...g,
|
|
982
|
-
options: y
|
|
983
|
-
} : g)
|
|
984
|
-
} : (t == null ? void 0 : t.key) === "tableContents" ? {
|
|
985
|
-
...t,
|
|
986
|
-
contents: (D = t == null ? void 0 : t.contents) == null ? void 0 : D.map((g) => {
|
|
987
|
-
var v;
|
|
988
|
-
return {
|
|
989
|
-
...g,
|
|
990
|
-
password: as(g) ? Je(g == null ? void 0 : g.password, (v = de == null ? void 0 : de.value) == null ? void 0 : v.privateKey) : g == null ? void 0 : g.password
|
|
991
|
-
};
|
|
992
|
-
})
|
|
993
|
-
} : t;
|
|
994
|
-
})
|
|
995
|
-
};
|
|
996
|
-
}) : e == null ? void 0 : e.map((f) => {
|
|
997
|
-
var k;
|
|
998
|
-
return {
|
|
999
|
-
...f,
|
|
1000
|
-
compData: (k = f == null ? void 0 : f.compData) == null ? void 0 : k.map((t) => {
|
|
1001
|
-
var d, D, g;
|
|
1002
|
-
return (t == null ? void 0 : t.key) === "rowButton" || (t == null ? void 0 : t.key) === "extraButton" ? {
|
|
1003
|
-
...t,
|
|
1004
|
-
contents: (d = t == null ? void 0 : t.contents) == null ? void 0 : d.filter((v) => s == null ? void 0 : s.includes(v == null ? void 0 : v.label))
|
|
1005
|
-
} : (t == null ? void 0 : t.key) === "header" ? {
|
|
1006
|
-
...t,
|
|
1007
|
-
contents: (D = t == null ? void 0 : t.contents) == null ? void 0 : D.map((v) => v.prop === "userDept" ? {
|
|
1008
|
-
...v,
|
|
1009
|
-
options: c
|
|
1010
|
-
} : v.prop === "userRoles" ? {
|
|
1011
|
-
...v,
|
|
1012
|
-
options: y
|
|
1013
|
-
} : v)
|
|
1014
|
-
} : (t == null ? void 0 : t.key) === "tableContents" ? {
|
|
1015
|
-
...t,
|
|
1016
|
-
contents: (g = t == null ? void 0 : t.contents) == null ? void 0 : g.map((v) => {
|
|
1017
|
-
var P;
|
|
1018
|
-
return {
|
|
1019
|
-
...v,
|
|
1020
|
-
password: as(v) ? Je(v == null ? void 0 : v.password, (P = de == null ? void 0 : de.value) == null ? void 0 : P.privateKey) : v == null ? void 0 : v.password
|
|
1021
|
-
};
|
|
1022
|
-
})
|
|
1023
|
-
} : t;
|
|
1024
|
-
})
|
|
1025
|
-
};
|
|
1026
|
-
});
|
|
1027
|
-
});
|
|
1028
|
-
};
|
|
1029
|
-
be(
|
|
1030
|
-
() => [se.value, va.value],
|
|
1031
|
-
async (e) => {
|
|
1032
|
-
var l, o, n, u, y, c, p, i;
|
|
1033
|
-
const s = e == null ? void 0 : e[0], a = e == null ? void 0 : e[1];
|
|
1034
|
-
if (s || a) {
|
|
1035
|
-
await is(), sessionStorage.setItem("pageKey", se.value), console.log("当前菜单的结构0:", _e.value);
|
|
1036
|
-
let f;
|
|
1037
|
-
if ((l = _e.value) != null && l.config) {
|
|
1038
|
-
const d = (c = (y = (u = (n = (o = _e.value) == null ? void 0 : o.config) == null ? void 0 : n[0]) == null ? void 0 : u.structureIds) == null ? void 0 : y.filter((g) => (g == null ? void 0 : g.key) === "contentConfig")) == null ? void 0 : c.map((g) => g == null ? void 0 : g.id), D = await ve(s, sessionStorage.getItem("systemKey"), "", se.value, !0, d);
|
|
1039
|
-
f = D == null ? void 0 : D.flatMap((g) => g == null ? void 0 : g.structure), console.log("当前菜单的结构1:", f, d);
|
|
1040
|
-
} else
|
|
1041
|
-
f = await ve(s, sessionStorage.getItem("systemKey"), "", se.value), console.log("当前菜单的结构2:", f);
|
|
1042
|
-
F.setExtraContents([]);
|
|
1043
|
-
const k = sessionStorage.getItem("authority"), t = JSON.parse(k || "");
|
|
1044
|
-
if (Array.isArray(t)) {
|
|
1045
|
-
const d = Array.isArray(t) && (t == null ? void 0 : t.filter((g) => g == null ? void 0 : g.includes(s))), D = d == null ? void 0 : d.map((g) => {
|
|
1046
|
-
var v;
|
|
1047
|
-
return ((v = g == null ? void 0 : g.split("/")) == null ? void 0 : v.pop()) || "";
|
|
1048
|
-
});
|
|
1049
|
-
X.value = s === "/系统管理/用户管理" ? await ls(f, D, !1) : f == null ? void 0 : f.map((g) => {
|
|
1050
|
-
var v;
|
|
1051
|
-
return {
|
|
1052
|
-
...g,
|
|
1053
|
-
compData: (v = g == null ? void 0 : g.compData) == null ? void 0 : v.map((P) => {
|
|
1054
|
-
var O;
|
|
1055
|
-
return (P == null ? void 0 : P.key) === "rowButton" || (P == null ? void 0 : P.key) === "extraButton" ? {
|
|
1056
|
-
...P,
|
|
1057
|
-
contents: (O = P == null ? void 0 : P.contents) == null ? void 0 : O.filter((U) => D == null ? void 0 : D.includes(U == null ? void 0 : U.label))
|
|
1058
|
-
} : P;
|
|
1059
|
-
})
|
|
1060
|
-
};
|
|
1061
|
-
});
|
|
1062
|
-
} else typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? X.value = s === "/系统管理/用户管理" ? await ls(f, null, !0) : f : X.value = [];
|
|
1063
|
-
re.setSelectTitle([]), re.setSelectIndex(""), re.setSelectMenu(""), F.setItemData(X.value), F.setOriginalData(X.value), F.setCurStructureCompIds((p = X.value) == null ? void 0 : p.map((d) => d == null ? void 0 : d.id)), F.setRefreshCurStructure(!1), pe.value = (i = se.value) == null ? void 0 : i.split("/").filter((d) => d !== "").map((d) => ({ value: d.trim() }));
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
immediate: !0
|
|
1068
|
-
}
|
|
1069
|
-
);
|
|
1070
|
-
be(
|
|
1071
|
-
() => es.value,
|
|
1072
|
-
async () => {
|
|
1073
|
-
es.value && (X.value = await ve(se.value, sessionStorage.getItem("systemKey"), "", se.value), F.setFreshContent(!1));
|
|
1074
|
-
},
|
|
1075
|
-
{ deep: !0 }
|
|
1076
|
-
);
|
|
1077
|
-
const ba = (e) => {
|
|
1078
|
-
var o, n, u;
|
|
1079
|
-
const s = (o = e.map((y) => {
|
|
1080
|
-
var p, i;
|
|
1081
|
-
let c = (i = (p = y.key.split("(")) == null ? void 0 : p[1]) == null ? void 0 : i.trim();
|
|
1082
|
-
return c == null ? void 0 : c.slice(0, c.length - 1);
|
|
1083
|
-
})) == null ? void 0 : o.filter((y) => y), a = [];
|
|
1084
|
-
s == null || s.forEach((y) => {
|
|
1085
|
-
var p, i;
|
|
1086
|
-
const c = [];
|
|
1087
|
-
if ((p = ea(y)) == null || p.forEach((f) => {
|
|
1088
|
-
var k, t, d, D, g, v, P, O, U, G, J, H, x, S;
|
|
1089
|
-
if (f.includes("{") && f.includes("[")) {
|
|
1090
|
-
let L = b(f).split(":");
|
|
1091
|
-
f = (v = (t = (k = b(L)) == null ? void 0 : k[0]) == null ? void 0 : t.split("{")) == null ? void 0 : v[((g = (D = (d = b(L)) == null ? void 0 : d[0]) == null ? void 0 : D.split("{")) == null ? void 0 : g.length) - 1].replaceAll("'", ""), c.push(f);
|
|
1092
|
-
let C = (U = (O = (P = L == null ? void 0 : L[(L == null ? void 0 : L.length) - 1]) == null ? void 0 : P.split("}")) == null ? void 0 : O[0]) == null ? void 0 : U.replaceAll("'", '"'), R = [];
|
|
1093
|
-
(J = (G = C.slice(1, C.length - 1)) == null ? void 0 : G.split(",")) == null || J.forEach((T) => {
|
|
1094
|
-
R.push(T);
|
|
1095
|
-
}), c.push(R);
|
|
1096
|
-
} else if (f.includes("{")) {
|
|
1097
|
-
let L = (H = f.split(":")) == null ? void 0 : H[0];
|
|
1098
|
-
f = (S = L == null ? void 0 : L.split("{")) == null ? void 0 : S[((x = L == null ? void 0 : L.split("{")) == null ? void 0 : x.length) - 1].replaceAll("'", ""), c.push(f);
|
|
1099
|
-
} else
|
|
1100
|
-
c.push(f);
|
|
1101
|
-
}), !c.some((f) => Array.isArray(f)))
|
|
1102
|
-
a.push(c);
|
|
1103
|
-
else {
|
|
1104
|
-
let f = [];
|
|
1105
|
-
c == null || c.forEach((k, t) => {
|
|
1106
|
-
t !== c.length - 1 && f.push(k);
|
|
1107
|
-
}), (i = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) == null || i.forEach((k) => {
|
|
1108
|
-
let t = b(f);
|
|
1109
|
-
t.push(k), a.push(t);
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
const l = (u = (n = a.filter((y) => y.length !== 0)) == null ? void 0 : n.filter((y) => y.length !== 0)) == null ? void 0 : u.map((y) => {
|
|
1114
|
-
let c = "";
|
|
1115
|
-
return y.forEach((p) => {
|
|
1116
|
-
p.includes("{") || (c = c === "" ? c + b(p) : c + "/" + b(p));
|
|
1117
|
-
}), c;
|
|
1118
|
-
});
|
|
1119
|
-
return sa([...new Set(l)]);
|
|
1120
|
-
}, Da = (e) => ({
|
|
1121
|
-
comp: "Menu",
|
|
1122
|
-
compData: [{
|
|
1123
|
-
contents: ba(b(e)),
|
|
1124
|
-
key: "menuContents"
|
|
1125
|
-
}],
|
|
1126
|
-
name: ""
|
|
1127
|
-
}), Ea = (e) => ({
|
|
1128
|
-
comp: "MenuTop",
|
|
1129
|
-
compData: [
|
|
1130
|
-
{
|
|
1131
|
-
key: "menuContents",
|
|
1132
|
-
contents: JSON.parse(e == null ? void 0 : e.value.trim().replaceAll("'", '"'))
|
|
1133
|
-
}
|
|
1134
|
-
],
|
|
1135
|
-
name: ""
|
|
1136
|
-
}), wa = (e) => {
|
|
1137
|
-
const s = e == null ? void 0 : e.filter((l) => {
|
|
1138
|
-
var o;
|
|
1139
|
-
return !((o = l == null ? void 0 : l.key) != null && o.includes("("));
|
|
1140
|
-
}), a = s == null ? void 0 : s.find((l) => {
|
|
1141
|
-
var o;
|
|
1142
|
-
return ie(l.value.replaceAll("'", '"')) && ((o = JSON.parse(l.value.replaceAll("'", '"'))) == null ? void 0 : o.every((n) => typeof n == "string"));
|
|
1143
|
-
});
|
|
1144
|
-
return Ea(a);
|
|
1145
|
-
}, Ma = (e) => {
|
|
1146
|
-
var o;
|
|
1147
|
-
let s = [];
|
|
1148
|
-
const a = e == null ? void 0 : e.filter((n) => {
|
|
1149
|
-
var u;
|
|
1150
|
-
return !((u = n == null ? void 0 : n.key) != null && u.includes("("));
|
|
1151
|
-
}), l = a == null ? void 0 : a.find((n) => {
|
|
1152
|
-
var u;
|
|
1153
|
-
return ie(n.value.replaceAll("'", '"')) && !((u = JSON.parse(n.value.replaceAll("'", '"'))) != null && u.every((y) => typeof y == "string"));
|
|
1154
|
-
});
|
|
1155
|
-
return (o = JSON.parse(l.value.replaceAll("'", '"'))) == null || o.forEach((n) => {
|
|
1156
|
-
var u, y, c, p;
|
|
1157
|
-
((u = Object.keys(n)) == null ? void 0 : u[0]) === "类型" ? s.push({
|
|
1158
|
-
comp: "System",
|
|
1159
|
-
compData: [
|
|
1160
|
-
{
|
|
1161
|
-
key: "type",
|
|
1162
|
-
contents: [(y = Object.values(n)) == null ? void 0 : y[0]]
|
|
1163
|
-
}
|
|
1164
|
-
]
|
|
1165
|
-
}) : ((c = Object.keys(n)) == null ? void 0 : c[0]) === "名称" && s.push({
|
|
1166
|
-
comp: "System",
|
|
1167
|
-
compData: [
|
|
1168
|
-
{
|
|
1169
|
-
key: "name",
|
|
1170
|
-
contents: [(p = Object.values(n)) == null ? void 0 : p[0]]
|
|
1171
|
-
}
|
|
1172
|
-
]
|
|
1173
|
-
});
|
|
1174
|
-
}), s;
|
|
1175
|
-
}, gs = (e) => {
|
|
1176
|
-
const s = [];
|
|
1177
|
-
let a = !1;
|
|
1178
|
-
return e.forEach((l) => {
|
|
1179
|
-
Array.isArray(l) && (a = !0, l.forEach((o) => {
|
|
1180
|
-
const n = e.map((u) => u === l ? o : u);
|
|
1181
|
-
s.push(...gs(n));
|
|
1182
|
-
}));
|
|
1183
|
-
}), a ? s : [e];
|
|
1184
|
-
}, Pa = (e) => {
|
|
1185
|
-
var u, y;
|
|
1186
|
-
if (!e) return;
|
|
1187
|
-
let s = [];
|
|
1188
|
-
const a = aa(e), l = b(a).replaceAll("{", "").replaceAll("}", "").trim();
|
|
1189
|
-
let o = [];
|
|
1190
|
-
return l.split(":").forEach((c) => {
|
|
1191
|
-
var p;
|
|
1192
|
-
if (c.includes("[")) {
|
|
1193
|
-
const i = (p = c.slice(1, c.length - 1)) == null ? void 0 : p.split(",");
|
|
1194
|
-
o.push(i);
|
|
1195
|
-
} else
|
|
1196
|
-
o.push(c);
|
|
1197
|
-
}), (u = gs(o)) == null || u.forEach((c) => {
|
|
1198
|
-
s.push(c);
|
|
1199
|
-
}), (y = s == null ? void 0 : s.filter((c) => c.length !== 0)) == null ? void 0 : y.map((c) => {
|
|
1200
|
-
let p = "";
|
|
1201
|
-
return c.forEach((i) => {
|
|
1202
|
-
i.includes("{") || (p = p === "" ? p + b(i).trim() : p + "/" + b(i).trim());
|
|
1203
|
-
}), p;
|
|
1204
|
-
});
|
|
1205
|
-
}, ts = (e) => {
|
|
1206
|
-
var y, c, p, i, f, k, t, d, D, g, v, P, O, U, G, J, H, x, S, L, C, R, T, W;
|
|
1207
|
-
const s = (y = Me(b(e))) == null ? void 0 : y[0], a = "[" + ((c = Me(b(e))) == null ? void 0 : c[2]) + "]";
|
|
1208
|
-
let l = [], o = [], n = "";
|
|
1209
|
-
const u = (i = (p = a == null ? void 0 : a.trim()) == null ? void 0 : p.slice(1, (a == null ? void 0 : a.trim().length) - 1)) == null ? void 0 : i.replaceAll("'", '"');
|
|
1210
|
-
if (ie(u) ? l = JSON.parse(u) : ie((t = (k = (f = u == null ? void 0 : u.split("}")) == null ? void 0 : f[0]) == null ? void 0 : k.replace(":", "")) == null ? void 0 : t.replaceAll("\\", "\\\\")) && (l = JSON.parse((g = (D = (d = u == null ? void 0 : u.split("}")) == null ? void 0 : d[0]) == null ? void 0 : D.replace(":", "")) == null ? void 0 : g.replaceAll("\\", "\\\\"))), !(s != null && s.includes("(")))
|
|
1211
|
-
s.includes("{") ? ie((P = (v = s == null ? void 0 : s.split("{")) == null ? void 0 : v[1]) == null ? void 0 : P.replaceAll("'", '"')) && (o = JSON.parse((U = (O = s == null ? void 0 : s.split("{")) == null ? void 0 : O[1]) == null ? void 0 : U.replaceAll("'", '"'))) : o = JSON.parse(s == null ? void 0 : s.replaceAll("'", '"'));
|
|
1212
|
-
else {
|
|
1213
|
-
let B = [];
|
|
1214
|
-
if (((J = (G = s == null ? void 0 : s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : G.split(",")) == null ? void 0 : J.length) > 1)
|
|
1215
|
-
(x = (H = s == null ? void 0 : s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : H.split(",")) == null || x.forEach((I) => {
|
|
1216
|
-
var Z, V, te, oe, $, K, q, ae, z, m, Y, ee, r, h, A, E, w, M;
|
|
1217
|
-
if (!(I != null && I.includes("(")))
|
|
1218
|
-
B.push(I == null ? void 0 : I.replaceAll("'", ""));
|
|
1219
|
-
else if (I != null && I.includes("[")) {
|
|
1220
|
-
let _ = (h = (r = (ee = (Y = I == null ? void 0 : I.split("[")) == null ? void 0 : Y[((m = I == null ? void 0 : I.split("[")) == null ? void 0 : m.length) - 1]) == null ? void 0 : ee.split("]")) == null ? void 0 : r[0]) == null ? void 0 : h.replaceAll("'", "");
|
|
1221
|
-
_ = _ + "[" + ((M = (w = (E = I == null ? void 0 : I.split("(")) == null ? void 0 : E[((A = I == null ? void 0 : I.split("(")) == null ? void 0 : A.length) - 1]) == null ? void 0 : w.split(")")) == null ? void 0 : M[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", B.push(_);
|
|
1222
|
-
} else {
|
|
1223
|
-
let _ = ($ = (oe = (te = (V = I == null ? void 0 : I.split(":")) == null ? void 0 : V[((Z = I == null ? void 0 : I.split(":")) == null ? void 0 : Z.length) - 1]) == null ? void 0 : te.split(")")) == null ? void 0 : oe[0]) == null ? void 0 : $.replaceAll("'", "");
|
|
1224
|
-
_ = _ + "[" + ((z = (ae = (q = I == null ? void 0 : I.split("(")) == null ? void 0 : q[((K = I == null ? void 0 : I.split("(")) == null ? void 0 : K.length) - 1]) == null ? void 0 : ae.split(")")) == null ? void 0 : z[0].replaceAll(":", "/").replaceAll("'", "")) + "]", B.push(_);
|
|
1225
|
-
}
|
|
1226
|
-
}), o = B;
|
|
1227
|
-
else {
|
|
1228
|
-
const I = ((R = (C = (L = (S = s == null ? void 0 : s.slice(1, s == null ? void 0 : s.length)) == null ? void 0 : S.split("(")) == null ? void 0 : L[1]) == null ? void 0 : C.split(")")) == null ? void 0 : R[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
1229
|
-
n = n + I + "[" + ((W = (T = s == null ? void 0 : s.slice(1, s == null ? void 0 : s.length)) == null ? void 0 : T.split("[")) == null ? void 0 : W[1]);
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
return {
|
|
1233
|
-
tableColumns: o,
|
|
1234
|
-
tableContents: l != null && l.every((B) => Array.isArray(B)) ? l : [l],
|
|
1235
|
-
tablePath: n
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
let Q = "$R";
|
|
1239
|
-
const Ia = (e) => /^'[^']+':\{.*\}$/.exec(b(e)), Ka = (e) => /^'([^']+)':.*$/.exec(b(e)), Me = (e) => {
|
|
1240
|
-
let s = e;
|
|
1241
|
-
const a = [];
|
|
1242
|
-
let l = "";
|
|
1243
|
-
for (const o of s)
|
|
1244
|
-
o.includes("{") || l.includes("{") || o.includes("[") || l.includes("[") || o.includes("【") || l.includes("【") || o.includes("(") || l.includes("(") || o.includes("(") || l.includes("(") || o.includes("/*") || l.includes("/*") ? (l += o.trim(), b(l).split("{").length - 1 === b(l).split("}").length - 1 && b(l).split("【").length - 1 === b(l).split("】").length - 1 && b(l).split("[").length - 1 === b(l).split("]").length - 1 && b(l).split("(").length - 1 === b(l).split(")").length - 1 && b(l).split("(").length - 1 === b(l).split(")").length - 1 && b(l).split("/*").length - 1 === b(l).split("*/").length - 1 && l[l.length - 1] !== "," && (a.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : a.push(o.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1245
|
-
return a;
|
|
1246
|
-
}, xa = (e) => /^\[.*?\]:\[.*?\]$/.exec(b(e)), Na = (e) => {
|
|
1247
|
-
var s, a, l, o, n, u, y, c, p, i, f, k, t, d, D, g, v;
|
|
1248
|
-
if (Ka(e)) {
|
|
1249
|
-
let P = {}, O = (l = (a = (s = e == null ? void 0 : e.replace(":", Q)) == null ? void 0 : s.split(Q)) == null ? void 0 : a[0]) == null ? void 0 : l.replaceAll("'", ""), U = "";
|
|
1250
|
-
return U = U + ((y = (u = (n = (o = e == null ? void 0 : e.split("{")) == null ? void 0 : o[1]) == null ? void 0 : n.split("}")) == null ? void 0 : u[0]) == null ? void 0 : y.replace(":", "/").replaceAll("'", "")) + "[", U = U + ((i = (p = (c = e == null ? void 0 : e.split("[")) == null ? void 0 : c[1]) == null ? void 0 : p.split("]")) == null ? void 0 : i[0]) + "]", P[O] = U, {
|
|
1251
|
-
groupName: "",
|
|
1252
|
-
formContents: [[P]]
|
|
1253
|
-
};
|
|
1254
|
-
} else {
|
|
1255
|
-
let P = {}, O = "", U = (t = (k = (f = e == null ? void 0 : e.split("]")) == null ? void 0 : f[0]) == null ? void 0 : k.split("[")) == null ? void 0 : t[1];
|
|
1256
|
-
(d = U == null ? void 0 : U.split(":")) == null || d.forEach((J, H) => {
|
|
1257
|
-
var x;
|
|
1258
|
-
((x = U == null ? void 0 : U.split(":")) == null ? void 0 : x.length) - 1 === H && (O = J == null ? void 0 : J.replaceAll("'", ""));
|
|
1259
|
-
});
|
|
1260
|
-
let G = "";
|
|
1261
|
-
return G = (v = (g = (D = e == null ? void 0 : e.split("]")) == null ? void 0 : D[1]) == null ? void 0 : g.replace(":", Q).split(Q)) == null ? void 0 : v[1].replaceAll("'", ""), P[O] = G, {
|
|
1262
|
-
groupName: "",
|
|
1263
|
-
formContents: [[P]]
|
|
1264
|
-
};
|
|
1265
|
-
}
|
|
1266
|
-
}, vs = (e) => {
|
|
1267
|
-
var l, o, n, u, y, c, p, i, f, k, t, d, D, g, v, P, O, U, G, J, H, x, S, L, C, R, T, W, B, I, Z, V, te, oe;
|
|
1268
|
-
let s = "";
|
|
1269
|
-
e = e.replace(/:([^=]*)==/g, ":");
|
|
1270
|
-
let a = e;
|
|
1271
|
-
if (Ia(b(e)) !== null && (s = (o = (l = b(e).replace(":", Q).split(Q)) == null ? void 0 : l[0]) == null ? void 0 : o.replaceAll("'", ""), a = (n = b(e).replace(":", Q).split(Q)) == null ? void 0 : n[1]), xa(b(a).slice(1, ((u = b(a)) == null ? void 0 : u.length) - 1)))
|
|
1272
|
-
if (((c = b(a).slice(1, ((y = b(a)) == null ? void 0 : y.length) - 1)) == null ? void 0 : c[1]) !== "[") {
|
|
1273
|
-
const $ = ts(b(a).slice(1, ((p = b(a)) == null ? void 0 : p.length) - 1));
|
|
1274
|
-
return {
|
|
1275
|
-
groupName: s,
|
|
1276
|
-
tableColumn: $ == null ? void 0 : $.tableColumns,
|
|
1277
|
-
tableContents: $ == null ? void 0 : $.tableContents,
|
|
1278
|
-
tableColumnPath: $ == null ? void 0 : $.tablePath
|
|
1279
|
-
};
|
|
1280
|
-
} else {
|
|
1281
|
-
let $ = b(a).slice(1, ((i = b(a)) == null ? void 0 : i.length) - 1), K = $.indexOf("{"), q = $.slice(K, ($ == null ? void 0 : $.length) - K);
|
|
1282
|
-
return (k = (f = Me(q)) == null ? void 0 : f.filter((z) => z == null ? void 0 : z.includes("{"))) == null ? void 0 : k.map((z, m) => {
|
|
1283
|
-
var ee;
|
|
1284
|
-
let Y = ts(b(z).slice(1, ((ee = b(z)) == null ? void 0 : ee.length) - 1));
|
|
1285
|
-
return {
|
|
1286
|
-
groupName: m === 0 ? s : "",
|
|
1287
|
-
tableColumn: Y == null ? void 0 : Y.tableColumns,
|
|
1288
|
-
tableContents: Y == null ? void 0 : Y.tableContents,
|
|
1289
|
-
tableColumnPath: Y == null ? void 0 : Y.tablePath
|
|
1290
|
-
};
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
else {
|
|
1294
|
-
let $ = [];
|
|
1295
|
-
if (ie((t = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : t.replaceAll("'", '"')))
|
|
1296
|
-
$ = JSON.parse((d = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : d.replaceAll("'", '"'));
|
|
1297
|
-
else if (a.includes("(")) {
|
|
1298
|
-
if ((a == null ? void 0 : a[0]) !== "{") {
|
|
1299
|
-
let K = (L = (S = (x = a == null ? void 0 : a.split("]")) == null ? void 0 : x[0]) == null ? void 0 : S.split("[")) == null ? void 0 : L[1], q = "", z = ((B = (W = (T = (R = (C = a == null ? void 0 : a.split(")")) == null ? void 0 : C[0]) == null ? void 0 : R.split("(")) == null ? void 0 : T[1]) == null ? void 0 : W.replaceAll("[", "")) == null ? void 0 : B.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
1300
|
-
return (I = z == null ? void 0 : z.split("/")) == null || I.forEach((m, Y) => {
|
|
1301
|
-
var ee;
|
|
1302
|
-
Y !== ((ee = z == null ? void 0 : z.split("/")) == null ? void 0 : ee.length) - 1 && (q = q === "" ? q + m : q + "/" + m);
|
|
1303
|
-
}), {
|
|
1304
|
-
groupName: "",
|
|
1305
|
-
extraButton: (V = K == null ? void 0 : K.split(":")) == null ? void 0 : V[((Z = K == null ? void 0 : K.split(":")) == null ? void 0 : Z.length) - 1].replaceAll("'", ""),
|
|
1306
|
-
extraPath: q
|
|
1307
|
-
};
|
|
1308
|
-
} else if (a = a.slice(1, (a == null ? void 0 : a.length) - 1), (a == null ? void 0 : a[0]) !== "[") {
|
|
1309
|
-
let K = Na(a);
|
|
1310
|
-
return {
|
|
1311
|
-
groupName: K == null ? void 0 : K.groupName,
|
|
1312
|
-
formContents: K == null ? void 0 : K.formContents
|
|
1313
|
-
};
|
|
1314
|
-
} else if ((a == null ? void 0 : a[0]) === "[" && (a == null ? void 0 : a[1]) === "[") {
|
|
1315
|
-
a = a.slice(1, (a == null ? void 0 : a.length) - 1);
|
|
1316
|
-
let K = [];
|
|
1317
|
-
return (oe = (te = Me(a)) == null ? void 0 : te.filter((q) => q !== ",")) == null || oe.forEach((q) => {
|
|
1318
|
-
var ae;
|
|
1319
|
-
Array.isArray(Ce(q)) || K.push((ae = Ce(q)) == null ? void 0 : ae.formContents);
|
|
1320
|
-
}), {
|
|
1321
|
-
groupName: s,
|
|
1322
|
-
formContents: K
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
} else if (a = "[[" + a + "]]", ie((D = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : D.replaceAll("'", '"')))
|
|
1326
|
-
$ = JSON.parse((g = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : g.replaceAll("'", '"'));
|
|
1327
|
-
else if (a = a.slice(2, a.length - 2), ((O = (P = (v = a == null ? void 0 : a.replace(":", Q)) == null ? void 0 : v.split(Q)) == null ? void 0 : P[1]) == null ? void 0 : O[0]) !== "{") {
|
|
1328
|
-
a = ((G = (U = a == null ? void 0 : a.replace(":", Q)) == null ? void 0 : U.split(Q)) == null ? void 0 : G[0]) + ":{[" + ((H = (J = a == null ? void 0 : a.replace(":", Q)) == null ? void 0 : J.split(Q)) == null ? void 0 : H[1]) + "]}";
|
|
1329
|
-
const K = vs(a);
|
|
1330
|
-
return K != null && K.tableColumn ? {
|
|
1331
|
-
groupName: K == null ? void 0 : K.groupName,
|
|
1332
|
-
tableColumn: K == null ? void 0 : K.tableColumn,
|
|
1333
|
-
tableContents: K == null ? void 0 : K.tableContents
|
|
1334
|
-
} : {
|
|
1335
|
-
groupName: K == null ? void 0 : K.groupName,
|
|
1336
|
-
formContents: K == null ? void 0 : K.formContents
|
|
1337
|
-
};
|
|
1338
|
-
}
|
|
1339
|
-
return {
|
|
1340
|
-
groupName: s,
|
|
1341
|
-
formContents: $
|
|
1342
|
-
};
|
|
1343
|
-
}
|
|
1344
|
-
}, Ce = (e) => vs(b(e).slice(1, b(e).length - 1)), Ca = (e) => {
|
|
1345
|
-
var a;
|
|
1346
|
-
let s = [];
|
|
1347
|
-
if (!((e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[1]) === "[")) {
|
|
1348
|
-
let l = (a = Me(e)) == null ? void 0 : a.filter((o) => o !== ",");
|
|
1349
|
-
l == null || l.forEach((o) => {
|
|
1350
|
-
s.push(Ce(o));
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
return s;
|
|
1354
|
-
};
|
|
1355
|
-
ne(0);
|
|
1356
|
-
const La = (e) => {
|
|
1357
|
-
const s = [];
|
|
1358
|
-
let a = [];
|
|
1359
|
-
return e == null || e.forEach((l, o) => {
|
|
1360
|
-
var n;
|
|
1361
|
-
(a == null ? void 0 : a.length) === 0 ? a.push(l) : (a.push(l), ((n = e[o + 1]) == null ? void 0 : n.key) === "groupName" && (s.push(a), a = []));
|
|
1362
|
-
}), s.push(a), s;
|
|
1363
|
-
}, Be = ne(0), ja = (e, s) => {
|
|
1364
|
-
var o;
|
|
1365
|
-
let a = [], l = s == null ? void 0 : s.length;
|
|
1366
|
-
return (o = b(s)) == null || o.forEach((n, u) => {
|
|
1367
|
-
let y = [];
|
|
1368
|
-
n == null || n.forEach((c) => {
|
|
1369
|
-
var p, i, f, k, t;
|
|
1370
|
-
if (ie(b(e).replaceAll("'", '"')))
|
|
1371
|
-
(p = JSON.parse(b(e).replaceAll("'", '"'))) == null || p.forEach((d) => {
|
|
1372
|
-
a.push([{
|
|
1373
|
-
key: c == null ? void 0 : c.key,
|
|
1374
|
-
value: (c == null ? void 0 : c.value) + "/" + d
|
|
1375
|
-
}]);
|
|
1376
|
-
});
|
|
1377
|
-
else {
|
|
1378
|
-
y.push(c);
|
|
1379
|
-
let d = [];
|
|
1380
|
-
if (((i = b(e)) == null ? void 0 : i[0]) === "[" && ((f = b(e)) == null ? void 0 : f[1]) === "[") {
|
|
1381
|
-
let D = e.slice(1, (e == null ? void 0 : e.length) - 1);
|
|
1382
|
-
const g = Ca(D.trim());
|
|
1383
|
-
g == null || g.forEach((v) => {
|
|
1384
|
-
var P;
|
|
1385
|
-
v != null && v.tableColumn ? (y.push({
|
|
1386
|
-
key: "groupName",
|
|
1387
|
-
value: v == null ? void 0 : v.groupName
|
|
1388
|
-
}), y.push({
|
|
1389
|
-
key: "tableColumn",
|
|
1390
|
-
value: v == null ? void 0 : v.tableColumn
|
|
1391
|
-
}), y.push({
|
|
1392
|
-
key: "tableContents",
|
|
1393
|
-
value: v == null ? void 0 : v.tableContents
|
|
1394
|
-
}), y.push({
|
|
1395
|
-
key: "tablePath",
|
|
1396
|
-
value: (v == null ? void 0 : v.tableColumnPath) ?? ""
|
|
1397
|
-
})) : v != null && v.extraButton ? (y.push({
|
|
1398
|
-
key: "groupName",
|
|
1399
|
-
value: v == null ? void 0 : v.groupName
|
|
1400
|
-
}), y.push({
|
|
1401
|
-
key: "extraButton",
|
|
1402
|
-
value: v == null ? void 0 : v.extraButton,
|
|
1403
|
-
path: v == null ? void 0 : v.extraPath
|
|
1404
|
-
})) : (y.push({
|
|
1405
|
-
key: "groupName",
|
|
1406
|
-
value: v == null ? void 0 : v.groupName
|
|
1407
|
-
}), y.push({
|
|
1408
|
-
key: "formContent",
|
|
1409
|
-
value: l === 1 ? v == null ? void 0 : v.formContents : (P = v == null ? void 0 : v.formContents) == null ? void 0 : P[u]
|
|
1410
|
-
}));
|
|
1411
|
-
});
|
|
1412
|
-
} else
|
|
1413
|
-
d = Ce(b(e.trim())), d != null && d.tableColumn ? (y.push({
|
|
1414
|
-
key: "groupName",
|
|
1415
|
-
value: d == null ? void 0 : d.groupName
|
|
1416
|
-
}), y.push({
|
|
1417
|
-
key: "tableColumn",
|
|
1418
|
-
value: d == null ? void 0 : d.tableColumn
|
|
1419
|
-
}), y.push({
|
|
1420
|
-
key: "tableContents",
|
|
1421
|
-
value: l !== 1 ? [(k = d == null ? void 0 : d.tableContents) == null ? void 0 : k[u]] : d == null ? void 0 : d.tableContents
|
|
1422
|
-
})) : (y.push({
|
|
1423
|
-
key: "groupName",
|
|
1424
|
-
value: d == null ? void 0 : d.groupName
|
|
1425
|
-
}), y.push({
|
|
1426
|
-
key: "formContent",
|
|
1427
|
-
value: l !== 1 ? [(t = d == null ? void 0 : d.formContents) == null ? void 0 : t[u]] : d == null ? void 0 : d.formContents
|
|
1428
|
-
}));
|
|
1429
|
-
}
|
|
1430
|
-
}), a.push(y);
|
|
1431
|
-
}), a;
|
|
1432
|
-
}, Oa = (e) => {
|
|
1433
|
-
var o, n;
|
|
1434
|
-
const s = [], a = Pa((o = b(e)) == null ? void 0 : o.key);
|
|
1435
|
-
return a && (a == null ? void 0 : a.length) > 0 && (a == null || a.forEach((u) => {
|
|
1436
|
-
s.push([{
|
|
1437
|
-
key: "contentPath",
|
|
1438
|
-
value: u
|
|
1439
|
-
}]);
|
|
1440
|
-
})), ja((n = b(e)) == null ? void 0 : n.value, s);
|
|
1441
|
-
}, _a = (e) => {
|
|
1442
|
-
var a;
|
|
1443
|
-
return (a = b(e)) == null ? void 0 : a.map((l) => {
|
|
1444
|
-
var u, y;
|
|
1445
|
-
let o = [];
|
|
1446
|
-
return (u = La(l == null ? void 0 : l.filter((c) => (c == null ? void 0 : c.key) !== "contentPath"))) == null || u.forEach((c) => {
|
|
1447
|
-
var f, k, t, d, D, g, v, P, O, U, G, J, H, x;
|
|
1448
|
-
let p = [];
|
|
1449
|
-
if (c.length === 0)
|
|
1450
|
-
return;
|
|
1451
|
-
let i = (k = (f = c.find((S) => (S == null ? void 0 : S.key) === "tableColumn")) == null ? void 0 : f.value) == null ? void 0 : k.map((S) => ({
|
|
1452
|
-
label: S
|
|
1453
|
-
}));
|
|
1454
|
-
if (Array.isArray(i) && ((t = c == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === "tablePath")) != null && t.value && ((d = c == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === "tablePath")) == null ? void 0 : d.value) !== "" && i.push({
|
|
1455
|
-
columnPath: (D = c == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === "tablePath")) == null ? void 0 : D.value
|
|
1456
|
-
}), i = (g = b(i)) == null ? void 0 : g.map((S) => {
|
|
1457
|
-
var L, C, R, T, W, B, I, Z, V;
|
|
1458
|
-
return S != null && S.label && !((L = S == null ? void 0 : S.label) != null && L.includes("[")) ? S : {
|
|
1459
|
-
label: (R = (C = b(S == null ? void 0 : S.label)) == null ? void 0 : C.split("[")) == null ? void 0 : R[0],
|
|
1460
|
-
formMenuSelect: (Z = (I = (B = (W = (T = b(S == null ? void 0 : S.label)) == null ? void 0 : T.split("[")) == null ? void 0 : W[1]) == null ? void 0 : B.split("]")) == null ? void 0 : I[0]) == null ? void 0 : Z.split("/"),
|
|
1461
|
-
columnPath: (S == null ? void 0 : S.columnPath) ?? "",
|
|
1462
|
-
isRoute: (V = S == null ? void 0 : S.label) == null ? void 0 : V.includes("(")
|
|
1463
|
-
};
|
|
1464
|
-
}), i.length !== 0 && i.push({
|
|
1465
|
-
label: "操作"
|
|
1466
|
-
})), c != null && c.find((S) => (S == null ? void 0 : S.key) === "formContent")) {
|
|
1467
|
-
const S = (v = c.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : v.value;
|
|
1468
|
-
let L = [];
|
|
1469
|
-
Array.isArray(S) && S.forEach((C) => {
|
|
1470
|
-
let R = 1;
|
|
1471
|
-
Array.isArray(C) && (C != null && C.every((T) => !Array.isArray(T))) && (R = C.length), Array.isArray(C) || (C = [C]), C.forEach((T) => {
|
|
1472
|
-
Array.isArray(T) || (T = [T]);
|
|
1473
|
-
let W = [];
|
|
1474
|
-
T == null || T.forEach((B) => {
|
|
1475
|
-
var I, Z, V, te, oe, $, K, q, ae, z, m, Y, ee, r, h, A;
|
|
1476
|
-
if (Be.value++, !((Z = (I = Object.values(B)) == null ? void 0 : I[0]) != null && Z.includes("/") && ((te = (V = Object.values(B)) == null ? void 0 : V[0]) != null && te.includes("["))))
|
|
1477
|
-
W.push({
|
|
1478
|
-
id: Be.value,
|
|
1479
|
-
key: (oe = Object.keys(B)) == null ? void 0 : oe[0],
|
|
1480
|
-
value: ($ = Object.values(B)) == null ? void 0 : $[0],
|
|
1481
|
-
width: Math.max(R, T.length)
|
|
1482
|
-
});
|
|
1483
|
-
else {
|
|
1484
|
-
let E = (z = (ae = (q = (K = Object.values(B)) == null ? void 0 : K[0]) == null ? void 0 : q.split("[")) == null ? void 0 : ae[0]) == null ? void 0 : z.split("/"), w = (ee = (Y = (m = Object.values(B)) == null ? void 0 : m[0]) == null ? void 0 : Y.split("[")) == null ? void 0 : ee[1], M = (h = (r = w == null ? void 0 : w.slice(0, w.length - 1)) == null ? void 0 : r.split(":")) == null ? void 0 : h.map((N) => N.replaceAll("'", "")), _ = M;
|
|
1485
|
-
(M == null ? void 0 : M.length) === 1 && _.unshift(""), W.push({
|
|
1486
|
-
id: Be.value,
|
|
1487
|
-
key: (A = Object.keys(B)) == null ? void 0 : A[0],
|
|
1488
|
-
value: "",
|
|
1489
|
-
width: Math.max(R, T.length),
|
|
1490
|
-
type: "Select",
|
|
1491
|
-
optionUrl: {
|
|
1492
|
-
type: "Select",
|
|
1493
|
-
selectRelateType: "关联绑定列",
|
|
1494
|
-
menuSelect: E,
|
|
1495
|
-
groupSelect: _
|
|
1496
|
-
}
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
}), W == null || W.forEach((B) => {
|
|
1500
|
-
L.push(B);
|
|
1501
|
-
});
|
|
1502
|
-
});
|
|
1503
|
-
}), p.push({
|
|
1504
|
-
key: "formFlex",
|
|
1505
|
-
contents: ""
|
|
1506
|
-
}), p.push({
|
|
1507
|
-
key: "formContent",
|
|
1508
|
-
contents: L
|
|
1509
|
-
}), o.push({
|
|
1510
|
-
comp: "Form",
|
|
1511
|
-
compData: b(p),
|
|
1512
|
-
name: (O = (P = c.find((C) => (C == null ? void 0 : C.key) === "groupName")) == null ? void 0 : P.value) == null ? void 0 : O.replaceAll("'", "")
|
|
1513
|
-
});
|
|
1514
|
-
} else c != null && c.find((S) => (S == null ? void 0 : S.key) === "extraButton") ? o.push({
|
|
1515
|
-
key: "extraButton",
|
|
1516
|
-
value: {
|
|
1517
|
-
method: (U = c == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === "extraButton")) == null ? void 0 : U.value,
|
|
1518
|
-
value: [],
|
|
1519
|
-
path: (G = c == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === "extraButton")) == null ? void 0 : G.path
|
|
1520
|
-
}
|
|
1521
|
-
}) : (i == null ? void 0 : i.length) !== 0 && (p.push({
|
|
1522
|
-
key: "header",
|
|
1523
|
-
contents: i
|
|
1524
|
-
}), p.push({
|
|
1525
|
-
key: "tableContents",
|
|
1526
|
-
contents: (J = c.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : J.value
|
|
1527
|
-
}), p.push({
|
|
1528
|
-
key: "extraButton",
|
|
1529
|
-
contents: [{ label: "新增" }]
|
|
1530
|
-
}), p.push({
|
|
1531
|
-
key: "rowButton",
|
|
1532
|
-
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1533
|
-
}), o.push({
|
|
1534
|
-
comp: "Table",
|
|
1535
|
-
compData: p,
|
|
1536
|
-
name: (x = (H = c.find((S) => (S == null ? void 0 : S.key) === "groupName")) == null ? void 0 : H.value) == null ? void 0 : x.replaceAll("'", "")
|
|
1537
|
-
}));
|
|
1538
|
-
}), {
|
|
1539
|
-
comp: "Group",
|
|
1540
|
-
compData: [{
|
|
1541
|
-
key: "groupContents",
|
|
1542
|
-
contents: o
|
|
1543
|
-
}],
|
|
1544
|
-
name: (y = l == null ? void 0 : l.find((c) => (c == null ? void 0 : c.key) === "contentPath")) == null ? void 0 : y.value
|
|
1545
|
-
};
|
|
1546
|
-
});
|
|
1547
|
-
}, Ua = (e) => {
|
|
1548
|
-
var y, c;
|
|
1549
|
-
let s = [];
|
|
1550
|
-
const a = Da(b(e));
|
|
1551
|
-
s.push(a);
|
|
1552
|
-
const l = wa(b(e));
|
|
1553
|
-
s.push(l);
|
|
1554
|
-
const o = Ma(b(e));
|
|
1555
|
-
(y = b(o)) == null || y.forEach((p) => {
|
|
1556
|
-
s.push(p);
|
|
1557
|
-
});
|
|
1558
|
-
const n = (c = b(e)) == null ? void 0 : c.filter((p) => {
|
|
1559
|
-
var i;
|
|
1560
|
-
return (i = p == null ? void 0 : p.key) == null ? void 0 : i.includes("(");
|
|
1561
|
-
}).map((p) => Oa(p)).filter((p) => (p == null ? void 0 : p.length) !== 0);
|
|
1562
|
-
let u = [];
|
|
1563
|
-
return n == null || n.forEach((p) => {
|
|
1564
|
-
p == null || p.forEach((i) => {
|
|
1565
|
-
u != null && u.find((f) => {
|
|
1566
|
-
var k, t;
|
|
1567
|
-
return ((k = f == null ? void 0 : f.find((d) => (d == null ? void 0 : d.key) === "contentPath")) == null ? void 0 : k.value) === ((t = i == null ? void 0 : i.find((d) => (d == null ? void 0 : d.key) === "contentPath")) == null ? void 0 : t.value);
|
|
1568
|
-
}) ? u = u == null ? void 0 : u.map((f) => {
|
|
1569
|
-
var t, d;
|
|
1570
|
-
return ((t = f == null ? void 0 : f.find((D) => (D == null ? void 0 : D.key) === "contentPath")) == null ? void 0 : t.value) === ((d = i == null ? void 0 : i.find((D) => (D == null ? void 0 : D.key) === "contentPath")) == null ? void 0 : d.value) && (f = [...f, ...i.filter((D) => (D == null ? void 0 : D.key) !== "contentPath")]), f;
|
|
1571
|
-
}) : u.push(i);
|
|
1572
|
-
});
|
|
1573
|
-
}), s = [...s, ..._a(u)], s;
|
|
1574
|
-
}, fl = (e) => {
|
|
1575
|
-
var o, n, u;
|
|
1576
|
-
const s = (n = (o = la(b(e))) == null ? void 0 : o.filter((y) => y !== "")) == null ? void 0 : n.map((y) => y.replaceAll("<", "[").replaceAll(">", "]")), a = (u = s == null ? void 0 : s.filter((y) => !y.includes("/*"))) == null ? void 0 : u.map((y) => ta(y));
|
|
1577
|
-
return Ua(a);
|
|
1578
|
-
};
|
|
1579
|
-
export {
|
|
1580
|
-
al as _,
|
|
1581
|
-
nl as a,
|
|
1582
|
-
ll as b,
|
|
1583
|
-
ol as c,
|
|
1584
|
-
tl as d,
|
|
1585
|
-
pl as e,
|
|
1586
|
-
ul as f,
|
|
1587
|
-
cl as g,
|
|
1588
|
-
il as h,
|
|
1589
|
-
fl as i,
|
|
1590
|
-
sl as j,
|
|
1591
|
-
rl as o,
|
|
1592
|
-
X as s
|
|
1593
|
-
};
|