@vancone/console-component 0.1.1-beta.4 → 0.1.1-beta.41
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.
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var bo = Object.defineProperty, vo = Object.defineProperties;
|
|
2
|
+
var yo = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ct = Object.getOwnPropertySymbols;
|
|
4
|
+
var wo = Object.prototype.hasOwnProperty, So = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var kt = (e, t, o) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ze = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
7
|
+
wo.call(t, o) && kt(e, o, t[o]);
|
|
8
|
+
if (Ct)
|
|
9
|
+
for (var o of Ct(t))
|
|
10
|
+
So.call(t, o) && kt(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, xt = (e, t) => vo(e, yo(t));
|
|
13
|
+
var xe = (e, t, o) => new Promise((n, s) => {
|
|
14
14
|
var r = (i) => {
|
|
15
15
|
try {
|
|
16
16
|
a(o.next(i));
|
|
17
|
-
} catch (
|
|
18
|
-
s(
|
|
17
|
+
} catch (f) {
|
|
18
|
+
s(f);
|
|
19
19
|
}
|
|
20
20
|
}, l = (i) => {
|
|
21
21
|
try {
|
|
22
22
|
a(o.throw(i));
|
|
23
|
-
} catch (
|
|
24
|
-
s(
|
|
23
|
+
} catch (f) {
|
|
24
|
+
s(f);
|
|
25
25
|
}
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as
|
|
30
|
-
import { useRoute as
|
|
31
|
-
import
|
|
32
|
-
import { ElMessage as
|
|
33
|
-
import { Search as
|
|
34
|
-
import { createI18n as
|
|
35
|
-
import { cloneDeep as
|
|
36
|
-
const
|
|
29
|
+
import { openBlock as p, createElementBlock as V, createElementVNode as S, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as $, Fragment as le, renderList as fe, toDisplayString as R, normalizeStyle as je, ref as A, onMounted as Ft, createBlock as P, createTextVNode as J, createCommentVNode as j, nextTick as Be, resolveDynamicComponent as rt, effectScope as Rt, markRaw as Me, toRaw as Ye, hasInjectionContext as Co, inject as ko, getCurrentInstance as xo, watch as Ee, isRef as We, isReactive as gt, toRef as ut, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as $t, createStaticVNode as Oo, normalizeClass as Lt, resolveDirective as Gt, withDirectives as jt } from "vue";
|
|
30
|
+
import { useRoute as Ke, useRouter as ct } from "vue-router";
|
|
31
|
+
import Po from "axios";
|
|
32
|
+
import { ElMessage as dt, ElMessageBox as Et } from "element-plus";
|
|
33
|
+
import { Search as zt, ArrowDown as qt, ArrowRight as Io, Check as Vo, Refresh as Ht, Upload as Ao, Download as Ot, Document as No, Printer as Mo, Setting as Uo, MoreFilled as To, QuestionFilled as Do } from "@element-plus/icons-vue";
|
|
34
|
+
import { createI18n as Fo, useI18n as Qe } from "vue-i18n";
|
|
35
|
+
import { cloneDeep as Ge } from "lodash";
|
|
36
|
+
const ve = (e, t) => {
|
|
37
37
|
const o = e.__vccOpts || e;
|
|
38
38
|
for (const [n, s] of t)
|
|
39
39
|
o[n] = s;
|
|
40
40
|
return o;
|
|
41
|
-
},
|
|
42
|
-
function
|
|
43
|
-
return p(),
|
|
41
|
+
}, Ro = {}, Lo = { class: "building" };
|
|
42
|
+
function Go(e, t) {
|
|
43
|
+
return p(), V("div", Lo);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const jo = /* @__PURE__ */ ve(Ro, [["render", Go], ["__scopeId", "data-v-07bd45d2"]]), be = Po.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
be.interceptors.request.use((e) => e);
|
|
50
|
+
be.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
|
|
52
|
-
return n === 0 ? (l && !r &&
|
|
52
|
+
return n === 0 ? (l && !r && dt({
|
|
53
53
|
message: s,
|
|
54
54
|
type: "success"
|
|
55
|
-
}), Promise.resolve(e)) : (
|
|
55
|
+
}), Promise.resolve(e)) : (dt({
|
|
56
56
|
type: "error",
|
|
57
57
|
message: s
|
|
58
58
|
}), Promise.reject(new Error(`${n}`)));
|
|
@@ -67,126 +67,126 @@ de.interceptors.response.use((e) => {
|
|
|
67
67
|
window.location.href = `${i}/?from=${a}`;
|
|
68
68
|
}
|
|
69
69
|
const { message: r, error: l } = o.data;
|
|
70
|
-
|
|
70
|
+
dt({
|
|
71
71
|
type: "error",
|
|
72
72
|
message: r || l
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
return Promise.reject(new Error(e.message || "Response Error"));
|
|
76
76
|
});
|
|
77
|
-
const
|
|
77
|
+
const Bt = () => {
|
|
78
78
|
const { origin: e } = window.location;
|
|
79
79
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
|
-
},
|
|
81
|
-
function
|
|
82
|
-
return
|
|
80
|
+
}, Yt = Bt();
|
|
81
|
+
function zo() {
|
|
82
|
+
return be.get(`//${Yt}/api/passport/service/v1/account`);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function qo() {
|
|
85
|
+
return be.delete(`//${Yt}/api/passport/service/v1/login`);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function Ho() {
|
|
88
|
+
return be.get("https://app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function Bo() {
|
|
91
|
+
return be.get("https://app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Yo = {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
width: "32",
|
|
96
96
|
height: "32",
|
|
97
97
|
class: "icon",
|
|
98
98
|
viewBox: "0 0 1024 1024"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
101
|
-
return p(),
|
|
102
|
-
|
|
100
|
+
function Wo(e, t) {
|
|
101
|
+
return p(), V("svg", Yo, t[0] || (t[0] = [
|
|
102
|
+
S("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const Jo = { render: Wo }, Ko = {
|
|
106
106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
107
107
|
width: "32",
|
|
108
108
|
height: "32",
|
|
109
109
|
class: "icon",
|
|
110
110
|
viewBox: "0 0 1024 1024"
|
|
111
111
|
};
|
|
112
|
-
function
|
|
113
|
-
return p(),
|
|
114
|
-
|
|
112
|
+
function Qo(e, t) {
|
|
113
|
+
return p(), V("svg", Ko, t[0] || (t[0] = [
|
|
114
|
+
S("path", { d: "M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z" }, null, -1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const Xo = { render: Qo }, Zo = {
|
|
118
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
119
|
width: "32",
|
|
120
120
|
height: "32",
|
|
121
121
|
class: "icon",
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
};
|
|
124
|
-
function
|
|
125
|
-
return p(),
|
|
126
|
-
|
|
124
|
+
function en(e, t) {
|
|
125
|
+
return p(), V("svg", Zo, t[0] || (t[0] = [
|
|
126
|
+
S("path", { d: "M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z" }, null, -1)
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class: "catalog-wrapper" }, sn = { class: "service-list" }, rn = { class: "app-icon-container" }, an = ["href"], ln = ["innerHTML"], cn = {
|
|
130
130
|
key: 1,
|
|
131
131
|
class: "app-icon"
|
|
132
|
-
},
|
|
132
|
+
}, un = /* @__PURE__ */ Se({
|
|
133
133
|
__name: "AppCatalog",
|
|
134
134
|
props: {
|
|
135
135
|
visible: { type: Boolean }
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
const t =
|
|
138
|
+
const t = de([]);
|
|
139
139
|
function o() {
|
|
140
|
-
|
|
141
|
-
t.splice(0, t.length, ...n.data.list),
|
|
142
|
-
const r = s.data
|
|
140
|
+
Ho().then(({ data: n }) => {
|
|
141
|
+
t.splice(0, t.length, ...n.data.list), Bo().then(({ data: s }) => {
|
|
142
|
+
const r = s.data;
|
|
143
143
|
t.forEach((l) => {
|
|
144
|
-
l.apps = r.filter((a) => a.
|
|
144
|
+
l.apps = r.filter((a) => a.groupId === l.id);
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
return o(), (n, s) => {
|
|
150
|
-
const r =
|
|
151
|
-
return p(),
|
|
152
|
-
|
|
153
|
-
default:
|
|
154
|
-
|
|
155
|
-
label:
|
|
156
|
-
|
|
150
|
+
const r = E("el-input"), l = E("el-scrollbar"), a = E("el-tab-pane"), i = E("el-tabs");
|
|
151
|
+
return p(), V("div", on, [
|
|
152
|
+
m(i, { "tab-position": "left" }, {
|
|
153
|
+
default: d(() => [
|
|
154
|
+
m(a, null, {
|
|
155
|
+
label: d(() => [
|
|
156
|
+
m($(Jo), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
|
-
default:
|
|
159
|
-
s[0] || (s[0] =
|
|
160
|
-
|
|
158
|
+
default: d(() => [
|
|
159
|
+
s[0] || (s[0] = S("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
|
+
m(r, {
|
|
161
161
|
class: "search-box",
|
|
162
|
-
"prefix-icon":
|
|
162
|
+
"prefix-icon": $(zt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
|
-
|
|
165
|
+
m(l, {
|
|
166
166
|
class: "right-area",
|
|
167
167
|
style: { width: "100%", height: "400px" }
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
171
|
-
(p(!0),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(p(!0),
|
|
175
|
-
var
|
|
176
|
-
return p(),
|
|
177
|
-
style:
|
|
169
|
+
default: d(() => [
|
|
170
|
+
S("div", nn, [
|
|
171
|
+
(p(!0), V(le, null, fe(t, (f) => (p(), V("div", sn, [
|
|
172
|
+
S("h1", null, R(f.name), 1),
|
|
173
|
+
S("div", rn, [
|
|
174
|
+
(p(!0), V(le, null, fe(f.apps, (y) => {
|
|
175
|
+
var C, N;
|
|
176
|
+
return p(), V("a", {
|
|
177
|
+
style: je([{ "text-decoration": "none" }, { pointerEvents: ((C = y.homepageUrl) == null ? void 0 : C.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: y.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
y.iconSvg !== void 0 ? (p(), V("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
185
|
-
}, null, 8,
|
|
186
|
-
|
|
187
|
-
style:
|
|
188
|
-
},
|
|
189
|
-
], 12,
|
|
184
|
+
innerHTML: y.iconSvg
|
|
185
|
+
}, null, 8, ln)) : (p(), V("div", cn, " ")),
|
|
186
|
+
S("h2", {
|
|
187
|
+
style: je({ color: ((N = y.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, R(y.name), 5)
|
|
189
|
+
], 12, an);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
192
192
|
]))), 256))
|
|
@@ -197,21 +197,21 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}),
|
|
200
|
-
|
|
201
|
-
label:
|
|
202
|
-
|
|
200
|
+
m(a, null, {
|
|
201
|
+
label: d(() => [
|
|
202
|
+
m($(Xo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
|
-
default:
|
|
205
|
-
s[1] || (s[1] =
|
|
204
|
+
default: d(() => [
|
|
205
|
+
s[1] || (s[1] = S("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}),
|
|
209
|
-
|
|
210
|
-
label:
|
|
211
|
-
|
|
209
|
+
m(a, null, {
|
|
210
|
+
label: d(() => [
|
|
211
|
+
m($(tn), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
|
-
default:
|
|
214
|
-
s[2] || (s[2] =
|
|
213
|
+
default: d(() => [
|
|
214
|
+
s[2] || (s[2] = S("h1", { class: "catalog-title" }, "Recently", -1))
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
217
|
})
|
|
@@ -221,7 +221,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
221
221
|
]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), dn = /* @__PURE__ */ ve(un, [["__scopeId", "data-v-fcfb021b"]]), pn = {
|
|
225
225
|
common: {
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
@@ -260,7 +260,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
260
260
|
yes: "Yes"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
},
|
|
263
|
+
}, fn = {
|
|
264
264
|
common: {
|
|
265
265
|
header: {
|
|
266
266
|
product: "产品",
|
|
@@ -299,70 +299,87 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
299
299
|
yes: "是"
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, at = Fo({
|
|
303
303
|
legacy: !1,
|
|
304
304
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
305
305
|
messages: {
|
|
306
|
-
en:
|
|
307
|
-
zh:
|
|
306
|
+
en: pn,
|
|
307
|
+
zh: fn
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
309
|
+
}), mn = {
|
|
310
310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
311
311
|
"xml:space": "preserve",
|
|
312
312
|
viewBox: "0 0 32 32"
|
|
313
313
|
};
|
|
314
|
-
function
|
|
315
|
-
return p(),
|
|
316
|
-
|
|
314
|
+
function hn(e, t) {
|
|
315
|
+
return p(), V("svg", mn, t[0] || (t[0] = [
|
|
316
|
+
S("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
|
|
317
317
|
]));
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const _n = { render: hn }, gn = {
|
|
320
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
321
|
width: "200",
|
|
322
322
|
height: "200",
|
|
323
323
|
class: "icon",
|
|
324
324
|
viewBox: "0 0 1024 1024"
|
|
325
325
|
};
|
|
326
|
-
function
|
|
327
|
-
return p(),
|
|
328
|
-
|
|
326
|
+
function bn(e, t) {
|
|
327
|
+
return p(), V("svg", gn, t[0] || (t[0] = [
|
|
328
|
+
S("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
329
329
|
]));
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const vn = { render: bn }, yn = {
|
|
332
332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
333
|
width: "200",
|
|
334
334
|
height: "200",
|
|
335
335
|
class: "icon",
|
|
336
336
|
viewBox: "0 0 1024 1024"
|
|
337
337
|
};
|
|
338
|
-
function
|
|
339
|
-
return p(),
|
|
340
|
-
|
|
338
|
+
function wn(e, t) {
|
|
339
|
+
return p(), V("svg", yn, t[0] || (t[0] = [
|
|
340
|
+
S("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
|
|
341
341
|
]));
|
|
342
342
|
}
|
|
343
|
-
const
|
|
343
|
+
const Sn = { render: wn }, Cn = {
|
|
344
344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
345
345
|
"xml:space": "preserve",
|
|
346
346
|
viewBox: "0 0 32 32"
|
|
347
347
|
};
|
|
348
|
-
function
|
|
349
|
-
return p(),
|
|
350
|
-
|
|
348
|
+
function kn(e, t) {
|
|
349
|
+
return p(), V("svg", Cn, t[0] || (t[0] = [
|
|
350
|
+
S("path", {
|
|
351
351
|
d: "M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",
|
|
352
352
|
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
353
353
|
}, null, -1)
|
|
354
354
|
]));
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const xn = { render: kn };
|
|
357
|
+
function Ce(e, t, o) {
|
|
358
|
+
switch (t) {
|
|
359
|
+
case "POST":
|
|
360
|
+
return be.post(e, o);
|
|
361
|
+
case "PUT":
|
|
362
|
+
return be.put(e, o);
|
|
363
|
+
case "DELETE":
|
|
364
|
+
return be.delete(e + "/" + o);
|
|
365
|
+
default:
|
|
366
|
+
return be.get(e, { params: o });
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }, Pn = { class: "icon-wrapper" }, In = { class: "user-wrapper" }, Vn = { style: { "font-size": "11px", "font-weight": "bold" } }, An = { class: "user-popover-header" }, Nn = { style: { "font-size": "15px", "font-weight": "bold" } }, Mn = ["onClick"], Un = /* @__PURE__ */ Se({
|
|
357
370
|
__name: "Header",
|
|
358
371
|
props: {
|
|
359
372
|
title: {},
|
|
373
|
+
headerProjectConfig: {},
|
|
360
374
|
helpDocUrl: {}
|
|
361
375
|
},
|
|
362
376
|
setup(e) {
|
|
363
|
-
const { t } =
|
|
364
|
-
|
|
365
|
-
|
|
377
|
+
const { t } = Qe(), o = A(), n = A(), s = A(), r = A(), l = A(!1), a = e, i = A(), f = de(
|
|
378
|
+
{
|
|
379
|
+
id: "",
|
|
380
|
+
name: ""
|
|
381
|
+
}
|
|
382
|
+
), y = A(""), C = A(at.global.locale), N = de([
|
|
366
383
|
{
|
|
367
384
|
id: "en",
|
|
368
385
|
name: "English"
|
|
@@ -372,119 +389,174 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
372
389
|
name: "简体中文"
|
|
373
390
|
}
|
|
374
391
|
]);
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
392
|
+
Ft(() => {
|
|
393
|
+
var G, M, te;
|
|
394
|
+
y.value = decodeURIComponent(T("passport_username").replace(/\+/g, " ")), y.value === "" && zo().then(({ data: _ }) => {
|
|
395
|
+
var h;
|
|
396
|
+
_.code == 0 && (y.value = (h = _.data.name) != null ? h : _.data.displayId);
|
|
397
|
+
}), (G = a.headerProjectConfig) != null && G.api ? Ce((M = a.headerProjectConfig) == null ? void 0 : M.api, "GET", {}).then(({ data: _ }) => {
|
|
398
|
+
i.value = _.data;
|
|
399
|
+
}) : (te = a.headerProjectConfig) != null && te.items && (i.value = a.headerProjectConfig.items);
|
|
380
400
|
});
|
|
381
|
-
function
|
|
382
|
-
for (var
|
|
383
|
-
for (var
|
|
384
|
-
if (
|
|
385
|
-
return
|
|
401
|
+
function T(G) {
|
|
402
|
+
for (var M = G + "=", te = document.cookie.split(";"), _ = 0; _ < te.length; _++) {
|
|
403
|
+
for (var h = te[_]; h.charAt(0) == " "; ) h = h.substring(1);
|
|
404
|
+
if (h.indexOf(M) != -1)
|
|
405
|
+
return h.substring(M.length, h.length);
|
|
386
406
|
}
|
|
387
407
|
return "";
|
|
388
408
|
}
|
|
389
|
-
function
|
|
390
|
-
|
|
409
|
+
function H() {
|
|
410
|
+
qo().then(() => {
|
|
391
411
|
const G = escape(window.location.href);
|
|
392
|
-
window.location.href = `//${
|
|
412
|
+
window.location.href = `//${Bt()}/?from=${G}#login`;
|
|
393
413
|
});
|
|
394
414
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
415
|
+
function L(G) {
|
|
416
|
+
at.global.locale.value = G, C.value = G, localStorage.setItem("locale", G);
|
|
397
417
|
}
|
|
398
|
-
function
|
|
418
|
+
function ee() {
|
|
399
419
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
400
420
|
}
|
|
401
|
-
function
|
|
421
|
+
function B() {
|
|
402
422
|
window.open(a.helpDocUrl, "_blank");
|
|
403
423
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
424
|
+
function ie(G) {
|
|
425
|
+
if (G === "allProjects")
|
|
426
|
+
alert("show all projects");
|
|
427
|
+
else
|
|
428
|
+
for (let M of i.value)
|
|
429
|
+
if (console.log("project.id", M.id, "command", G), M.id === G) {
|
|
430
|
+
Object.assign(f, M);
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
return (G, M) => {
|
|
435
|
+
const te = E("el-icon"), _ = E("el-dropdown-item"), h = E("el-dropdown-menu"), v = E("el-dropdown"), I = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), k = E("el-menu-item"), O = E("el-menu"), z = E("el-drawer");
|
|
436
|
+
return p(), V(le, null, [
|
|
437
|
+
S("div", $n, [
|
|
438
|
+
S("div", En, [
|
|
439
|
+
S("div", {
|
|
410
440
|
ref_key: "appCatalogButtonRef",
|
|
411
441
|
ref: r,
|
|
412
442
|
class: "icon-wrapper",
|
|
413
443
|
style: { "margin-left": "8px" }
|
|
414
444
|
}, [
|
|
415
|
-
|
|
445
|
+
m($(_n))
|
|
416
446
|
], 512),
|
|
417
|
-
|
|
447
|
+
S("h1", null, R(G.title), 1),
|
|
448
|
+
a.headerProjectConfig ? (p(), P(v, {
|
|
449
|
+
key: 0,
|
|
450
|
+
placement: "bottom-start",
|
|
451
|
+
onCommand: ie
|
|
452
|
+
}, {
|
|
453
|
+
dropdown: d(() => [
|
|
454
|
+
m(h, { style: { width: "300px" } }, {
|
|
455
|
+
default: d(() => [
|
|
456
|
+
(p(!0), V(le, null, fe(i.value, (D) => (p(), P(_, {
|
|
457
|
+
command: D.id
|
|
458
|
+
}, {
|
|
459
|
+
default: d(() => [
|
|
460
|
+
J(R(D.name), 1)
|
|
461
|
+
]),
|
|
462
|
+
_: 2
|
|
463
|
+
}, 1032, ["command"]))), 256)),
|
|
464
|
+
m(_, {
|
|
465
|
+
divided: "",
|
|
466
|
+
command: "allProjects"
|
|
467
|
+
}, {
|
|
468
|
+
default: d(() => M[2] || (M[2] = [
|
|
469
|
+
J("全部项目")
|
|
470
|
+
])),
|
|
471
|
+
_: 1
|
|
472
|
+
})
|
|
473
|
+
]),
|
|
474
|
+
_: 1
|
|
475
|
+
})
|
|
476
|
+
]),
|
|
477
|
+
default: d(() => [
|
|
478
|
+
S("span", null, [
|
|
479
|
+
J(R(f.name) + " ", 1),
|
|
480
|
+
m(te, { class: "el-icon--right" }, {
|
|
481
|
+
default: d(() => [
|
|
482
|
+
m($(qt))
|
|
483
|
+
]),
|
|
484
|
+
_: 1
|
|
485
|
+
})
|
|
486
|
+
])
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
})) : j("", !0)
|
|
418
490
|
]),
|
|
419
|
-
|
|
491
|
+
m(I, {
|
|
420
492
|
class: "app-popover",
|
|
421
493
|
"virtual-ref": r.value,
|
|
422
494
|
trigger: "click",
|
|
423
495
|
"show-arrow": !1,
|
|
424
496
|
"popper-style": "width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"
|
|
425
497
|
}, {
|
|
426
|
-
default:
|
|
427
|
-
|
|
498
|
+
default: d(() => [
|
|
499
|
+
m(dn, { visible: !0 })
|
|
428
500
|
]),
|
|
429
501
|
_: 1
|
|
430
502
|
}, 8, ["virtual-ref"]),
|
|
431
|
-
|
|
432
|
-
|
|
503
|
+
S("div", On, [
|
|
504
|
+
m(u, {
|
|
433
505
|
effect: "dark",
|
|
434
|
-
content:
|
|
506
|
+
content: $(t)("common.header.workbench"),
|
|
435
507
|
placement: "bottom"
|
|
436
508
|
}, {
|
|
437
|
-
default:
|
|
438
|
-
|
|
439
|
-
|
|
509
|
+
default: d(() => [
|
|
510
|
+
S("div", Pn, [
|
|
511
|
+
m($(xn))
|
|
440
512
|
])
|
|
441
513
|
]),
|
|
442
514
|
_: 1
|
|
443
515
|
}, 8, ["content"]),
|
|
444
|
-
|
|
516
|
+
m(u, {
|
|
445
517
|
effect: "dark",
|
|
446
|
-
content:
|
|
518
|
+
content: $(t)("common.header.help"),
|
|
447
519
|
placement: "bottom"
|
|
448
520
|
}, {
|
|
449
|
-
default:
|
|
450
|
-
a.helpDocUrl !== void 0 ? (p(),
|
|
521
|
+
default: d(() => [
|
|
522
|
+
a.helpDocUrl !== void 0 ? (p(), V("div", {
|
|
451
523
|
key: 0,
|
|
452
524
|
class: "icon-wrapper",
|
|
453
|
-
onClick:
|
|
525
|
+
onClick: B
|
|
454
526
|
}, [
|
|
455
|
-
|
|
456
|
-
])) :
|
|
527
|
+
m($(vn))
|
|
528
|
+
])) : j("", !0)
|
|
457
529
|
]),
|
|
458
530
|
_: 1
|
|
459
531
|
}, 8, ["content"]),
|
|
460
|
-
|
|
532
|
+
m(u, {
|
|
461
533
|
effect: "dark",
|
|
462
|
-
content:
|
|
534
|
+
content: $(t)("common.header.notification"),
|
|
463
535
|
placement: "bottom"
|
|
464
536
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
|
|
537
|
+
default: d(() => [
|
|
538
|
+
S("div", {
|
|
467
539
|
class: "icon-wrapper",
|
|
468
|
-
onClick:
|
|
540
|
+
onClick: M[0] || (M[0] = (D) => l.value = !0)
|
|
469
541
|
}, [
|
|
470
|
-
|
|
542
|
+
m($(Sn))
|
|
471
543
|
])
|
|
472
544
|
]),
|
|
473
545
|
_: 1
|
|
474
546
|
}, 8, ["content"]),
|
|
475
|
-
|
|
476
|
-
|
|
547
|
+
S("div", In, [
|
|
548
|
+
m(c, {
|
|
477
549
|
size: 30,
|
|
478
550
|
src: "",
|
|
479
551
|
ref_key: "avatarRef",
|
|
480
552
|
ref: o
|
|
481
553
|
}, {
|
|
482
|
-
default:
|
|
483
|
-
|
|
554
|
+
default: d(() => [
|
|
555
|
+
S("span", Vn, R(y.value.substring(0, 2)), 1)
|
|
484
556
|
]),
|
|
485
557
|
_: 1
|
|
486
558
|
}, 512),
|
|
487
|
-
|
|
559
|
+
m(I, {
|
|
488
560
|
teleported: !1,
|
|
489
561
|
width: "280",
|
|
490
562
|
effect: "dark",
|
|
@@ -494,44 +566,44 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
494
566
|
trigger: "hover",
|
|
495
567
|
"virtual-triggering": ""
|
|
496
568
|
}, {
|
|
497
|
-
default:
|
|
498
|
-
|
|
499
|
-
|
|
569
|
+
default: d(() => [
|
|
570
|
+
S("div", An, [
|
|
571
|
+
m(c, {
|
|
500
572
|
size: 48,
|
|
501
573
|
src: ""
|
|
502
574
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
|
|
575
|
+
default: d(() => [
|
|
576
|
+
S("span", Nn, R(y.value.substring(0, 2)), 1)
|
|
505
577
|
]),
|
|
506
578
|
_: 1
|
|
507
579
|
}),
|
|
508
|
-
|
|
580
|
+
S("span", null, R(y.value), 1)
|
|
509
581
|
]),
|
|
510
|
-
|
|
511
|
-
default:
|
|
512
|
-
|
|
513
|
-
default:
|
|
514
|
-
|
|
582
|
+
m(O, { class: "user-menu" }, {
|
|
583
|
+
default: d(() => [
|
|
584
|
+
m(k, { onClick: ee }, {
|
|
585
|
+
default: d(() => [
|
|
586
|
+
J(R($(t)("common.header.userCenter")), 1)
|
|
515
587
|
]),
|
|
516
588
|
_: 1
|
|
517
589
|
}),
|
|
518
|
-
|
|
590
|
+
m(k, {
|
|
519
591
|
ref_key: "switchLanguageRef",
|
|
520
592
|
ref: s,
|
|
521
593
|
style: { display: "flext", "justify-content": "space-between" }
|
|
522
594
|
}, {
|
|
523
|
-
default:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
default:
|
|
527
|
-
|
|
595
|
+
default: d(() => [
|
|
596
|
+
S("span", null, R($(t)("common.header.switchLanguage")), 1),
|
|
597
|
+
m(te, { style: { left: "15px" } }, {
|
|
598
|
+
default: d(() => [
|
|
599
|
+
m($(Io))
|
|
528
600
|
]),
|
|
529
601
|
_: 1
|
|
530
602
|
})
|
|
531
603
|
]),
|
|
532
604
|
_: 1
|
|
533
605
|
}, 512),
|
|
534
|
-
|
|
606
|
+
m(I, {
|
|
535
607
|
teleported: !1,
|
|
536
608
|
width: "150",
|
|
537
609
|
effect: "dark",
|
|
@@ -542,28 +614,28 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
542
614
|
"virtual-triggering": "",
|
|
543
615
|
"popper-style": "height: 80px; left: -165px"
|
|
544
616
|
}, {
|
|
545
|
-
default:
|
|
546
|
-
(p(!0),
|
|
617
|
+
default: d(() => [
|
|
618
|
+
(p(!0), V(le, null, fe(N, (D) => (p(), V("div", {
|
|
547
619
|
class: "select-list",
|
|
548
|
-
onClick: (
|
|
620
|
+
onClick: (F) => L(D.id)
|
|
549
621
|
}, [
|
|
550
|
-
|
|
551
|
-
|
|
622
|
+
S("span", null, R(D.name), 1),
|
|
623
|
+
D.id === C.value ? (p(), P(te, {
|
|
552
624
|
key: 0,
|
|
553
625
|
style: { color: "#8ba74f" }
|
|
554
626
|
}, {
|
|
555
|
-
default:
|
|
556
|
-
|
|
627
|
+
default: d(() => [
|
|
628
|
+
m($(Vo))
|
|
557
629
|
]),
|
|
558
630
|
_: 1
|
|
559
|
-
})) :
|
|
560
|
-
], 8,
|
|
631
|
+
})) : j("", !0)
|
|
632
|
+
], 8, Mn))), 256))
|
|
561
633
|
]),
|
|
562
634
|
_: 1
|
|
563
635
|
}, 8, ["virtual-ref"]),
|
|
564
|
-
|
|
565
|
-
default:
|
|
566
|
-
|
|
636
|
+
m(k, { onClick: H }, {
|
|
637
|
+
default: d(() => [
|
|
638
|
+
J(R($(t)("common.header.signOut")), 1)
|
|
567
639
|
]),
|
|
568
640
|
_: 1
|
|
569
641
|
})
|
|
@@ -576,64 +648,80 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
576
648
|
])
|
|
577
649
|
])
|
|
578
650
|
]),
|
|
579
|
-
|
|
651
|
+
m(z, {
|
|
580
652
|
modelValue: l.value,
|
|
581
|
-
"onUpdate:modelValue":
|
|
653
|
+
"onUpdate:modelValue": M[1] || (M[1] = (D) => l.value = D),
|
|
582
654
|
direction: "rtl",
|
|
583
655
|
title: "Message Center"
|
|
584
656
|
}, null, 8, ["modelValue"])
|
|
585
657
|
], 64);
|
|
586
658
|
};
|
|
587
659
|
}
|
|
588
|
-
}),
|
|
660
|
+
}), Wt = /* @__PURE__ */ ve(Un, [["__scopeId", "data-v-b04b3245"]]), Tn = {
|
|
589
661
|
class: "menu-icon-wrapper",
|
|
590
662
|
style: { "margin-left": "3px" }
|
|
591
|
-
},
|
|
663
|
+
}, Dn = ["innerHTML"], Fn = { class: "menu-icon-wrapper" }, Rn = ["innerHTML"], Ln = /* @__PURE__ */ Se({
|
|
592
664
|
__name: "SideMenuItem",
|
|
593
665
|
props: {
|
|
594
666
|
menu: {}
|
|
595
667
|
},
|
|
596
668
|
setup(e) {
|
|
597
669
|
const t = e;
|
|
598
|
-
return
|
|
599
|
-
const s =
|
|
600
|
-
return o.menu.children && o.menu.children.length > 0 ? (p(),
|
|
670
|
+
return Be(() => console.log("menu", t.menu)), (o, n) => {
|
|
671
|
+
const s = E("SideMenuItem", !0), r = E("el-sub-menu"), l = E("el-menu-item");
|
|
672
|
+
return o.menu.children && o.menu.children.length > 0 ? (p(), P(r, {
|
|
601
673
|
key: 0,
|
|
602
674
|
index: o.menu.path
|
|
603
675
|
}, {
|
|
604
|
-
title:
|
|
605
|
-
var a, i,
|
|
676
|
+
title: d(() => {
|
|
677
|
+
var a, i, f, y, C;
|
|
606
678
|
return [
|
|
607
|
-
|
|
608
|
-
(p(),
|
|
679
|
+
S("div", Tn, [
|
|
680
|
+
(a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.menu.meta) == null ? void 0 : i.icon), {
|
|
681
|
+
key: 0,
|
|
682
|
+
class: "menu-icon"
|
|
683
|
+
})) : j("", !0),
|
|
684
|
+
(f = t.menu.meta) != null && f.svgXml ? (p(), V("div", {
|
|
685
|
+
key: 1,
|
|
686
|
+
class: "svg-xml-icon",
|
|
687
|
+
innerHTML: t.menu.meta.svgXml
|
|
688
|
+
}, null, 8, Dn)) : j("", !0)
|
|
609
689
|
]),
|
|
610
|
-
|
|
690
|
+
S("span", null, R(o.$t((C = (y = o.menu.meta) == null ? void 0 : y.title) != null ? C : "")), 1)
|
|
611
691
|
];
|
|
612
692
|
}),
|
|
613
|
-
default:
|
|
614
|
-
(p(!0),
|
|
693
|
+
default: d(() => [
|
|
694
|
+
(p(!0), V(le, null, fe(o.menu.children, (a) => (p(), P(s, {
|
|
615
695
|
key: a.path,
|
|
616
696
|
route: a,
|
|
617
697
|
menu: a
|
|
618
698
|
}, null, 8, ["route", "menu"]))), 128))
|
|
619
699
|
]),
|
|
620
700
|
_: 1
|
|
621
|
-
}, 8, ["index"])) : (p(),
|
|
701
|
+
}, 8, ["index"])) : (p(), P(l, {
|
|
622
702
|
key: 1,
|
|
623
703
|
index: t.menu.path,
|
|
624
704
|
style: { height: "40px" }
|
|
625
705
|
}, {
|
|
626
|
-
title:
|
|
706
|
+
title: d(() => {
|
|
627
707
|
var a, i;
|
|
628
708
|
return [
|
|
629
|
-
|
|
709
|
+
S("span", null, R(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
630
710
|
];
|
|
631
711
|
}),
|
|
632
|
-
default:
|
|
633
|
-
var a;
|
|
712
|
+
default: d(() => {
|
|
713
|
+
var a, i, f;
|
|
634
714
|
return [
|
|
635
|
-
|
|
636
|
-
(p(),
|
|
715
|
+
S("div", Fn, [
|
|
716
|
+
(a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.$props.menu.meta) == null ? void 0 : i.icon), {
|
|
717
|
+
key: 0,
|
|
718
|
+
class: "menu-icon"
|
|
719
|
+
})) : j("", !0),
|
|
720
|
+
((f = t.menu.meta) == null ? void 0 : f.svgXml) !== void 0 ? (p(), V("div", {
|
|
721
|
+
key: 1,
|
|
722
|
+
class: "svg-xml-icon",
|
|
723
|
+
innerHTML: t.menu.meta.svgXml
|
|
724
|
+
}, null, 8, Rn)) : j("", !0)
|
|
637
725
|
])
|
|
638
726
|
];
|
|
639
727
|
}),
|
|
@@ -641,34 +729,34 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
|
|
|
641
729
|
}, 8, ["index"]));
|
|
642
730
|
};
|
|
643
731
|
}
|
|
644
|
-
}),
|
|
645
|
-
var
|
|
646
|
-
function
|
|
732
|
+
}), Gn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-032308f8"]]), ge = A({}), jn = {}, Pt = A([]);
|
|
733
|
+
var Jt = !1;
|
|
734
|
+
function et(e, t, o) {
|
|
647
735
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
648
736
|
}
|
|
649
|
-
function
|
|
737
|
+
function pt(e, t) {
|
|
650
738
|
if (Array.isArray(e)) {
|
|
651
739
|
e.splice(t, 1);
|
|
652
740
|
return;
|
|
653
741
|
}
|
|
654
742
|
delete e[t];
|
|
655
743
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
744
|
+
function zn() {
|
|
745
|
+
return Kt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
658
746
|
}
|
|
659
|
-
function
|
|
747
|
+
function Kt() {
|
|
660
748
|
return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
|
|
661
749
|
}
|
|
662
|
-
const
|
|
663
|
-
let
|
|
664
|
-
function
|
|
750
|
+
const qn = typeof Proxy == "function", Hn = "devtools-plugin:setup", Bn = "plugin:settings:set";
|
|
751
|
+
let Fe, mt;
|
|
752
|
+
function Yn() {
|
|
665
753
|
var e;
|
|
666
|
-
return
|
|
754
|
+
return Fe !== void 0 || (typeof window != "undefined" && window.performance ? (Fe = !0, mt = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Fe = !0, mt = globalThis.perf_hooks.performance) : Fe = !1), Fe;
|
|
667
755
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
756
|
+
function Wn() {
|
|
757
|
+
return Yn() ? mt.now() : Date.now();
|
|
670
758
|
}
|
|
671
|
-
class
|
|
759
|
+
class Jn {
|
|
672
760
|
constructor(t, o) {
|
|
673
761
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
|
|
674
762
|
const n = {};
|
|
@@ -696,9 +784,9 @@ class Rn {
|
|
|
696
784
|
r = l;
|
|
697
785
|
},
|
|
698
786
|
now() {
|
|
699
|
-
return
|
|
787
|
+
return Wn();
|
|
700
788
|
}
|
|
701
|
-
}, o && o.on(
|
|
789
|
+
}, o && o.on(Bn, (l, a) => {
|
|
702
790
|
l === this.plugin.id && this.fallbacks.setSettings(a);
|
|
703
791
|
}), this.proxiedOn = new Proxy({}, {
|
|
704
792
|
get: (l, a) => this.target ? this.target.on[a] : (...i) => {
|
|
@@ -713,17 +801,17 @@ class Rn {
|
|
|
713
801
|
args: i,
|
|
714
802
|
resolve: () => {
|
|
715
803
|
}
|
|
716
|
-
}), this.fallbacks[a](...i)) : (...i) => new Promise((
|
|
804
|
+
}), this.fallbacks[a](...i)) : (...i) => new Promise((f) => {
|
|
717
805
|
this.targetQueue.push({
|
|
718
806
|
method: a,
|
|
719
807
|
args: i,
|
|
720
|
-
resolve:
|
|
808
|
+
resolve: f
|
|
721
809
|
});
|
|
722
810
|
})
|
|
723
811
|
});
|
|
724
812
|
}
|
|
725
813
|
setRealTarget(t) {
|
|
726
|
-
return
|
|
814
|
+
return xe(this, null, function* () {
|
|
727
815
|
this.target = t;
|
|
728
816
|
for (const o of this.onQueue)
|
|
729
817
|
this.target.on[o.method](...o.args);
|
|
@@ -732,12 +820,12 @@ class Rn {
|
|
|
732
820
|
});
|
|
733
821
|
}
|
|
734
822
|
}
|
|
735
|
-
function
|
|
736
|
-
const o = e, n =
|
|
823
|
+
function Qt(e, t) {
|
|
824
|
+
const o = e, n = Kt(), s = zn(), r = qn && o.enableEarlyProxy;
|
|
737
825
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
738
|
-
s.emit(
|
|
826
|
+
s.emit(Hn, e, t);
|
|
739
827
|
else {
|
|
740
|
-
const l = r ? new
|
|
828
|
+
const l = r ? new Jn(o, s) : null;
|
|
741
829
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
742
830
|
pluginDescriptor: o,
|
|
743
831
|
setupFn: t,
|
|
@@ -750,31 +838,31 @@ function zt(e, t) {
|
|
|
750
838
|
* (c) 2024 Eduardo San Martin Morote
|
|
751
839
|
* @license MIT
|
|
752
840
|
*/
|
|
753
|
-
let
|
|
754
|
-
const
|
|
841
|
+
let He;
|
|
842
|
+
const Je = (e) => He = e, Xt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
755
843
|
/* istanbul ignore next */
|
|
756
844
|
Symbol()
|
|
757
845
|
);
|
|
758
|
-
function
|
|
846
|
+
function De(e) {
|
|
759
847
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
760
848
|
}
|
|
761
|
-
var
|
|
849
|
+
var ke;
|
|
762
850
|
(function(e) {
|
|
763
851
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
764
|
-
})(
|
|
765
|
-
const
|
|
766
|
-
function
|
|
852
|
+
})(ke || (ke = {}));
|
|
853
|
+
const Ue = typeof window != "undefined", It = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
854
|
+
function Kn(e, { autoBom: t = !1 } = {}) {
|
|
767
855
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
768
856
|
}
|
|
769
|
-
function
|
|
857
|
+
function bt(e, t, o) {
|
|
770
858
|
const n = new XMLHttpRequest();
|
|
771
859
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
772
|
-
|
|
860
|
+
to(n.response, t, o);
|
|
773
861
|
}, n.onerror = function() {
|
|
774
862
|
console.error("could not download file");
|
|
775
863
|
}, n.send();
|
|
776
864
|
}
|
|
777
|
-
function
|
|
865
|
+
function Zt(e) {
|
|
778
866
|
const t = new XMLHttpRequest();
|
|
779
867
|
t.open("HEAD", e, !1);
|
|
780
868
|
try {
|
|
@@ -783,7 +871,7 @@ function Bt(e) {
|
|
|
783
871
|
}
|
|
784
872
|
return t.status >= 200 && t.status <= 299;
|
|
785
873
|
}
|
|
786
|
-
function
|
|
874
|
+
function tt(e) {
|
|
787
875
|
try {
|
|
788
876
|
e.dispatchEvent(new MouseEvent("click"));
|
|
789
877
|
} catch (t) {
|
|
@@ -791,43 +879,43 @@ function Qe(e) {
|
|
|
791
879
|
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
|
|
792
880
|
}
|
|
793
881
|
}
|
|
794
|
-
const
|
|
882
|
+
const ot = typeof navigator == "object" ? navigator : { userAgent: "" }, eo = /Macintosh/.test(ot.userAgent) && /AppleWebKit/.test(ot.userAgent) && !/Safari/.test(ot.userAgent), to = Ue ? (
|
|
795
883
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
796
|
-
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !
|
|
884
|
+
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !eo ? Qn : (
|
|
797
885
|
// Use msSaveOrOpenBlob as a second approach
|
|
798
|
-
"msSaveOrOpenBlob" in
|
|
886
|
+
"msSaveOrOpenBlob" in ot ? Xn : (
|
|
799
887
|
// Fallback to using FileReader and a popup
|
|
800
|
-
|
|
888
|
+
Zn
|
|
801
889
|
)
|
|
802
890
|
)
|
|
803
891
|
) : () => {
|
|
804
892
|
};
|
|
805
|
-
function
|
|
893
|
+
function Qn(e, t = "download", o) {
|
|
806
894
|
const n = document.createElement("a");
|
|
807
|
-
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ?
|
|
895
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Zt(n.href) ? bt(e, t, o) : (n.target = "_blank", tt(n)) : tt(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
808
896
|
URL.revokeObjectURL(n.href);
|
|
809
897
|
}, 4e4), setTimeout(function() {
|
|
810
|
-
|
|
898
|
+
tt(n);
|
|
811
899
|
}, 0));
|
|
812
900
|
}
|
|
813
|
-
function
|
|
901
|
+
function Xn(e, t = "download", o) {
|
|
814
902
|
if (typeof e == "string")
|
|
815
|
-
if (
|
|
816
|
-
|
|
903
|
+
if (Zt(e))
|
|
904
|
+
bt(e, t, o);
|
|
817
905
|
else {
|
|
818
906
|
const n = document.createElement("a");
|
|
819
907
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
820
|
-
|
|
908
|
+
tt(n);
|
|
821
909
|
});
|
|
822
910
|
}
|
|
823
911
|
else
|
|
824
|
-
navigator.msSaveOrOpenBlob(
|
|
912
|
+
navigator.msSaveOrOpenBlob(Kn(e, o), t);
|
|
825
913
|
}
|
|
826
|
-
function
|
|
914
|
+
function Zn(e, t, o, n) {
|
|
827
915
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
828
|
-
return
|
|
829
|
-
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(
|
|
830
|
-
if ((l || s && r ||
|
|
916
|
+
return bt(e, t, o);
|
|
917
|
+
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(It.HTMLElement)) || "safari" in It, l = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
918
|
+
if ((l || s && r || eo) && typeof FileReader != "undefined") {
|
|
831
919
|
const a = new FileReader();
|
|
832
920
|
a.onloadend = function() {
|
|
833
921
|
let i = a.result;
|
|
@@ -842,109 +930,109 @@ function jn(e, t, o, n) {
|
|
|
842
930
|
}, 4e4);
|
|
843
931
|
}
|
|
844
932
|
}
|
|
845
|
-
function
|
|
933
|
+
function ae(e, t) {
|
|
846
934
|
const o = "🍍 " + e;
|
|
847
935
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
848
936
|
}
|
|
849
|
-
function
|
|
937
|
+
function vt(e) {
|
|
850
938
|
return "_a" in e && "install" in e;
|
|
851
939
|
}
|
|
852
|
-
function
|
|
940
|
+
function oo() {
|
|
853
941
|
if (!("clipboard" in navigator))
|
|
854
|
-
return
|
|
942
|
+
return ae("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
855
943
|
}
|
|
856
|
-
function
|
|
857
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
944
|
+
function no(e) {
|
|
945
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (ae('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
858
946
|
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
861
|
-
if (!
|
|
947
|
+
function es(e) {
|
|
948
|
+
return xe(this, null, function* () {
|
|
949
|
+
if (!oo())
|
|
862
950
|
try {
|
|
863
|
-
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
951
|
+
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), ae("Global state copied to clipboard.");
|
|
864
952
|
} catch (t) {
|
|
865
|
-
if (
|
|
953
|
+
if (no(t))
|
|
866
954
|
return;
|
|
867
|
-
|
|
955
|
+
ae("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
868
956
|
}
|
|
869
957
|
});
|
|
870
958
|
}
|
|
871
|
-
function
|
|
872
|
-
return
|
|
873
|
-
if (!
|
|
959
|
+
function ts(e) {
|
|
960
|
+
return xe(this, null, function* () {
|
|
961
|
+
if (!oo())
|
|
874
962
|
try {
|
|
875
|
-
|
|
963
|
+
so(e, JSON.parse(yield navigator.clipboard.readText())), ae("Global state pasted from clipboard.");
|
|
876
964
|
} catch (t) {
|
|
877
|
-
if (
|
|
965
|
+
if (no(t))
|
|
878
966
|
return;
|
|
879
|
-
|
|
967
|
+
ae("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
880
968
|
}
|
|
881
969
|
});
|
|
882
970
|
}
|
|
883
|
-
function
|
|
884
|
-
return
|
|
971
|
+
function os(e) {
|
|
972
|
+
return xe(this, null, function* () {
|
|
885
973
|
try {
|
|
886
|
-
|
|
974
|
+
to(new Blob([JSON.stringify(e.state.value)], {
|
|
887
975
|
type: "text/plain;charset=utf-8"
|
|
888
976
|
}), "pinia-state.json");
|
|
889
977
|
} catch (t) {
|
|
890
|
-
|
|
978
|
+
ae("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
891
979
|
}
|
|
892
980
|
});
|
|
893
981
|
}
|
|
894
|
-
let
|
|
895
|
-
function
|
|
896
|
-
|
|
982
|
+
let $e;
|
|
983
|
+
function ns() {
|
|
984
|
+
$e || ($e = document.createElement("input"), $e.type = "file", $e.accept = ".json");
|
|
897
985
|
function e() {
|
|
898
986
|
return new Promise((t, o) => {
|
|
899
|
-
|
|
900
|
-
const n =
|
|
987
|
+
$e.onchange = () => xe(this, null, function* () {
|
|
988
|
+
const n = $e.files;
|
|
901
989
|
if (!n)
|
|
902
990
|
return t(null);
|
|
903
991
|
const s = n.item(0);
|
|
904
992
|
return t(s ? { text: yield s.text(), file: s } : null);
|
|
905
|
-
}),
|
|
993
|
+
}), $e.oncancel = () => t(null), $e.onerror = o, $e.click();
|
|
906
994
|
});
|
|
907
995
|
}
|
|
908
996
|
return e;
|
|
909
997
|
}
|
|
910
|
-
function
|
|
911
|
-
return
|
|
998
|
+
function ss(e) {
|
|
999
|
+
return xe(this, null, function* () {
|
|
912
1000
|
try {
|
|
913
|
-
const o = yield
|
|
1001
|
+
const o = yield ns()();
|
|
914
1002
|
if (!o)
|
|
915
1003
|
return;
|
|
916
1004
|
const { text: n, file: s } = o;
|
|
917
|
-
|
|
1005
|
+
so(e, JSON.parse(n)), ae(`Global state imported from "${s.name}".`);
|
|
918
1006
|
} catch (t) {
|
|
919
|
-
|
|
1007
|
+
ae("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
920
1008
|
}
|
|
921
1009
|
});
|
|
922
1010
|
}
|
|
923
|
-
function
|
|
1011
|
+
function so(e, t) {
|
|
924
1012
|
for (const o in t) {
|
|
925
1013
|
const n = e.state.value[o];
|
|
926
1014
|
n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
|
|
927
1015
|
}
|
|
928
1016
|
}
|
|
929
|
-
function
|
|
1017
|
+
function we(e) {
|
|
930
1018
|
return {
|
|
931
1019
|
_custom: {
|
|
932
1020
|
display: e
|
|
933
1021
|
}
|
|
934
1022
|
};
|
|
935
1023
|
}
|
|
936
|
-
const
|
|
937
|
-
function
|
|
938
|
-
return
|
|
939
|
-
id:
|
|
940
|
-
label:
|
|
1024
|
+
const ro = "🍍 Pinia (root)", nt = "_root";
|
|
1025
|
+
function rs(e) {
|
|
1026
|
+
return vt(e) ? {
|
|
1027
|
+
id: nt,
|
|
1028
|
+
label: ro
|
|
941
1029
|
} : {
|
|
942
1030
|
id: e.$id,
|
|
943
1031
|
label: e.$id
|
|
944
1032
|
};
|
|
945
1033
|
}
|
|
946
|
-
function
|
|
947
|
-
if (
|
|
1034
|
+
function as(e) {
|
|
1035
|
+
if (vt(e)) {
|
|
948
1036
|
const o = Array.from(e._s.keys()), n = e._s;
|
|
949
1037
|
return {
|
|
950
1038
|
state: o.map((r) => ({
|
|
@@ -979,49 +1067,49 @@ function Yn(e) {
|
|
|
979
1067
|
value: e[o]
|
|
980
1068
|
}))), t;
|
|
981
1069
|
}
|
|
982
|
-
function
|
|
1070
|
+
function ls(e) {
|
|
983
1071
|
return e ? Array.isArray(e) ? e.reduce((t, o) => (t.keys.push(o.key), t.operations.push(o.type), t.oldValue[o.key] = o.oldValue, t.newValue[o.key] = o.newValue, t), {
|
|
984
1072
|
oldValue: {},
|
|
985
1073
|
keys: [],
|
|
986
1074
|
operations: [],
|
|
987
1075
|
newValue: {}
|
|
988
1076
|
}) : {
|
|
989
|
-
operation:
|
|
990
|
-
key:
|
|
1077
|
+
operation: we(e.type),
|
|
1078
|
+
key: we(e.key),
|
|
991
1079
|
oldValue: e.oldValue,
|
|
992
1080
|
newValue: e.newValue
|
|
993
1081
|
} : {};
|
|
994
1082
|
}
|
|
995
|
-
function
|
|
1083
|
+
function is(e) {
|
|
996
1084
|
switch (e) {
|
|
997
|
-
case
|
|
1085
|
+
case ke.direct:
|
|
998
1086
|
return "mutation";
|
|
999
|
-
case
|
|
1087
|
+
case ke.patchFunction:
|
|
1000
1088
|
return "$patch";
|
|
1001
|
-
case
|
|
1089
|
+
case ke.patchObject:
|
|
1002
1090
|
return "$patch";
|
|
1003
1091
|
default:
|
|
1004
1092
|
return "unknown";
|
|
1005
1093
|
}
|
|
1006
1094
|
}
|
|
1007
|
-
let
|
|
1008
|
-
const
|
|
1009
|
-
function
|
|
1010
|
-
|
|
1095
|
+
let Le = !0;
|
|
1096
|
+
const st = [], Ne = "pinia:mutations", ue = "pinia", { assign: cs } = Object, lt = (e) => "🍍 " + e;
|
|
1097
|
+
function us(e, t) {
|
|
1098
|
+
Qt({
|
|
1011
1099
|
id: "dev.esm.pinia",
|
|
1012
1100
|
label: "Pinia 🍍",
|
|
1013
1101
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1014
1102
|
packageName: "pinia",
|
|
1015
1103
|
homepage: "https://pinia.vuejs.org",
|
|
1016
|
-
componentStateTypes:
|
|
1104
|
+
componentStateTypes: st,
|
|
1017
1105
|
app: e
|
|
1018
1106
|
}, (o) => {
|
|
1019
|
-
typeof o.now != "function" &&
|
|
1020
|
-
id:
|
|
1107
|
+
typeof o.now != "function" && ae("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.addTimelineLayer({
|
|
1108
|
+
id: Ne,
|
|
1021
1109
|
label: "Pinia 🍍",
|
|
1022
1110
|
color: 15064968
|
|
1023
1111
|
}), o.addInspector({
|
|
1024
|
-
id:
|
|
1112
|
+
id: ue,
|
|
1025
1113
|
label: "Pinia 🍍",
|
|
1026
1114
|
icon: "storage",
|
|
1027
1115
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -1029,28 +1117,28 @@ function Zn(e, t) {
|
|
|
1029
1117
|
{
|
|
1030
1118
|
icon: "content_copy",
|
|
1031
1119
|
action: () => {
|
|
1032
|
-
|
|
1120
|
+
es(t);
|
|
1033
1121
|
},
|
|
1034
1122
|
tooltip: "Serialize and copy the state"
|
|
1035
1123
|
},
|
|
1036
1124
|
{
|
|
1037
1125
|
icon: "content_paste",
|
|
1038
|
-
action: () =>
|
|
1039
|
-
yield
|
|
1126
|
+
action: () => xe(this, null, function* () {
|
|
1127
|
+
yield ts(t), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1040
1128
|
}),
|
|
1041
1129
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1042
1130
|
},
|
|
1043
1131
|
{
|
|
1044
1132
|
icon: "save",
|
|
1045
1133
|
action: () => {
|
|
1046
|
-
|
|
1134
|
+
os(t);
|
|
1047
1135
|
},
|
|
1048
1136
|
tooltip: "Save the state as a JSON file"
|
|
1049
1137
|
},
|
|
1050
1138
|
{
|
|
1051
1139
|
icon: "folder_open",
|
|
1052
|
-
action: () =>
|
|
1053
|
-
yield
|
|
1140
|
+
action: () => xe(this, null, function* () {
|
|
1141
|
+
yield ss(t), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1054
1142
|
}),
|
|
1055
1143
|
tooltip: "Import the state from a JSON file"
|
|
1056
1144
|
}
|
|
@@ -1061,7 +1149,7 @@ function Zn(e, t) {
|
|
|
1061
1149
|
tooltip: 'Reset the state (with "$reset")',
|
|
1062
1150
|
action: (n) => {
|
|
1063
1151
|
const s = t._s.get(n);
|
|
1064
|
-
s ? typeof s.$reset != "function" ?
|
|
1152
|
+
s ? typeof s.$reset != "function" ? ae(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), ae(`Store "${n}" reset.`)) : ae(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1065
1153
|
}
|
|
1066
1154
|
}
|
|
1067
1155
|
]
|
|
@@ -1071,12 +1159,12 @@ function Zn(e, t) {
|
|
|
1071
1159
|
const l = n.componentInstance.proxy._pStores;
|
|
1072
1160
|
Object.values(l).forEach((a) => {
|
|
1073
1161
|
n.instanceData.state.push({
|
|
1074
|
-
type:
|
|
1162
|
+
type: lt(a.$id),
|
|
1075
1163
|
key: "state",
|
|
1076
1164
|
editable: !0,
|
|
1077
1165
|
value: a._isOptionsAPI ? {
|
|
1078
1166
|
_custom: {
|
|
1079
|
-
value:
|
|
1167
|
+
value: Ye(a.$state),
|
|
1080
1168
|
actions: [
|
|
1081
1169
|
{
|
|
1082
1170
|
icon: "restore",
|
|
@@ -1087,17 +1175,17 @@ function Zn(e, t) {
|
|
|
1087
1175
|
}
|
|
1088
1176
|
} : (
|
|
1089
1177
|
// NOTE: workaround to unwrap transferred refs
|
|
1090
|
-
Object.keys(a.$state).reduce((i,
|
|
1178
|
+
Object.keys(a.$state).reduce((i, f) => (i[f] = a.$state[f], i), {})
|
|
1091
1179
|
)
|
|
1092
1180
|
}), a._getters && a._getters.length && n.instanceData.state.push({
|
|
1093
|
-
type:
|
|
1181
|
+
type: lt(a.$id),
|
|
1094
1182
|
key: "getters",
|
|
1095
1183
|
editable: !1,
|
|
1096
|
-
value: a._getters.reduce((i,
|
|
1184
|
+
value: a._getters.reduce((i, f) => {
|
|
1097
1185
|
try {
|
|
1098
|
-
i[
|
|
1099
|
-
} catch (
|
|
1100
|
-
i[
|
|
1186
|
+
i[f] = a[f];
|
|
1187
|
+
} catch (y) {
|
|
1188
|
+
i[f] = y;
|
|
1101
1189
|
}
|
|
1102
1190
|
return i;
|
|
1103
1191
|
}, {})
|
|
@@ -1105,48 +1193,48 @@ function Zn(e, t) {
|
|
|
1105
1193
|
});
|
|
1106
1194
|
}
|
|
1107
1195
|
}), o.on.getInspectorTree((n) => {
|
|
1108
|
-
if (n.app === e && n.inspectorId ===
|
|
1196
|
+
if (n.app === e && n.inspectorId === ue) {
|
|
1109
1197
|
let s = [t];
|
|
1110
|
-
s = s.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) :
|
|
1198
|
+
s = s.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : ro.toLowerCase().includes(n.filter.toLowerCase())) : s).map(rs);
|
|
1111
1199
|
}
|
|
1112
1200
|
}), globalThis.$pinia = t, o.on.getInspectorState((n) => {
|
|
1113
|
-
if (n.app === e && n.inspectorId ===
|
|
1114
|
-
const s = n.nodeId ===
|
|
1201
|
+
if (n.app === e && n.inspectorId === ue) {
|
|
1202
|
+
const s = n.nodeId === nt ? t : t._s.get(n.nodeId);
|
|
1115
1203
|
if (!s)
|
|
1116
1204
|
return;
|
|
1117
|
-
s && (n.nodeId !==
|
|
1205
|
+
s && (n.nodeId !== nt && (globalThis.$store = Ye(s)), n.state = as(s));
|
|
1118
1206
|
}
|
|
1119
1207
|
}), o.on.editInspectorState((n, s) => {
|
|
1120
|
-
if (n.app === e && n.inspectorId ===
|
|
1121
|
-
const r = n.nodeId ===
|
|
1208
|
+
if (n.app === e && n.inspectorId === ue) {
|
|
1209
|
+
const r = n.nodeId === nt ? t : t._s.get(n.nodeId);
|
|
1122
1210
|
if (!r)
|
|
1123
|
-
return
|
|
1211
|
+
return ae(`store "${n.nodeId}" not found`, "error");
|
|
1124
1212
|
const { path: l } = n;
|
|
1125
|
-
|
|
1213
|
+
vt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Le = !1, n.set(r, l, n.state.value), Le = !0;
|
|
1126
1214
|
}
|
|
1127
1215
|
}), o.on.editComponentState((n) => {
|
|
1128
1216
|
if (n.type.startsWith("🍍")) {
|
|
1129
1217
|
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1130
1218
|
if (!r)
|
|
1131
|
-
return
|
|
1219
|
+
return ae(`store "${s}" not found`, "error");
|
|
1132
1220
|
const { path: l } = n;
|
|
1133
1221
|
if (l[0] !== "state")
|
|
1134
|
-
return
|
|
1222
|
+
return ae(`Invalid path for store "${s}":
|
|
1135
1223
|
${l}
|
|
1136
1224
|
Only state can be modified.`);
|
|
1137
|
-
l[0] = "$state",
|
|
1225
|
+
l[0] = "$state", Le = !1, n.set(r, l, n.state.value), Le = !0;
|
|
1138
1226
|
}
|
|
1139
1227
|
});
|
|
1140
1228
|
});
|
|
1141
1229
|
}
|
|
1142
|
-
function
|
|
1143
|
-
|
|
1230
|
+
function ds(e, t) {
|
|
1231
|
+
st.includes(lt(t.$id)) || st.push(lt(t.$id)), Qt({
|
|
1144
1232
|
id: "dev.esm.pinia",
|
|
1145
1233
|
label: "Pinia 🍍",
|
|
1146
1234
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1147
1235
|
packageName: "pinia",
|
|
1148
1236
|
homepage: "https://pinia.vuejs.org",
|
|
1149
|
-
componentStateTypes:
|
|
1237
|
+
componentStateTypes: st,
|
|
1150
1238
|
app: e,
|
|
1151
1239
|
settings: {
|
|
1152
1240
|
logStoreChanges: {
|
|
@@ -1162,59 +1250,59 @@ function es(e, t) {
|
|
|
1162
1250
|
}
|
|
1163
1251
|
}, (o) => {
|
|
1164
1252
|
const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
|
|
1165
|
-
t.$onAction(({ after: l, onError: a, name: i, args:
|
|
1166
|
-
const
|
|
1253
|
+
t.$onAction(({ after: l, onError: a, name: i, args: f }) => {
|
|
1254
|
+
const y = ao++;
|
|
1167
1255
|
o.addTimelineEvent({
|
|
1168
|
-
layerId:
|
|
1256
|
+
layerId: Ne,
|
|
1169
1257
|
event: {
|
|
1170
1258
|
time: n(),
|
|
1171
1259
|
title: "🛫 " + i,
|
|
1172
1260
|
subtitle: "start",
|
|
1173
1261
|
data: {
|
|
1174
|
-
store:
|
|
1175
|
-
action:
|
|
1176
|
-
args:
|
|
1262
|
+
store: we(t.$id),
|
|
1263
|
+
action: we(i),
|
|
1264
|
+
args: f
|
|
1177
1265
|
},
|
|
1178
|
-
groupId:
|
|
1266
|
+
groupId: y
|
|
1179
1267
|
}
|
|
1180
|
-
}), l((
|
|
1181
|
-
|
|
1182
|
-
layerId:
|
|
1268
|
+
}), l((C) => {
|
|
1269
|
+
Pe = void 0, o.addTimelineEvent({
|
|
1270
|
+
layerId: Ne,
|
|
1183
1271
|
event: {
|
|
1184
1272
|
time: n(),
|
|
1185
1273
|
title: "🛬 " + i,
|
|
1186
1274
|
subtitle: "end",
|
|
1187
1275
|
data: {
|
|
1188
|
-
store:
|
|
1189
|
-
action:
|
|
1190
|
-
args:
|
|
1191
|
-
result:
|
|
1276
|
+
store: we(t.$id),
|
|
1277
|
+
action: we(i),
|
|
1278
|
+
args: f,
|
|
1279
|
+
result: C
|
|
1192
1280
|
},
|
|
1193
|
-
groupId:
|
|
1281
|
+
groupId: y
|
|
1194
1282
|
}
|
|
1195
1283
|
});
|
|
1196
|
-
}), a((
|
|
1197
|
-
|
|
1198
|
-
layerId:
|
|
1284
|
+
}), a((C) => {
|
|
1285
|
+
Pe = void 0, o.addTimelineEvent({
|
|
1286
|
+
layerId: Ne,
|
|
1199
1287
|
event: {
|
|
1200
1288
|
time: n(),
|
|
1201
1289
|
logType: "error",
|
|
1202
1290
|
title: "💥 " + i,
|
|
1203
1291
|
subtitle: "end",
|
|
1204
1292
|
data: {
|
|
1205
|
-
store:
|
|
1206
|
-
action:
|
|
1207
|
-
args:
|
|
1208
|
-
error:
|
|
1293
|
+
store: we(t.$id),
|
|
1294
|
+
action: we(i),
|
|
1295
|
+
args: f,
|
|
1296
|
+
error: C
|
|
1209
1297
|
},
|
|
1210
|
-
groupId:
|
|
1298
|
+
groupId: y
|
|
1211
1299
|
}
|
|
1212
1300
|
});
|
|
1213
1301
|
});
|
|
1214
1302
|
}, !0), t._customProperties.forEach((l) => {
|
|
1215
|
-
|
|
1216
|
-
o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1217
|
-
layerId:
|
|
1303
|
+
Ee(() => $(t[l]), (a, i) => {
|
|
1304
|
+
o.notifyComponentUpdate(), o.sendInspectorState(ue), Le && o.addTimelineEvent({
|
|
1305
|
+
layerId: Ne,
|
|
1218
1306
|
event: {
|
|
1219
1307
|
time: n(),
|
|
1220
1308
|
title: "Change",
|
|
@@ -1223,20 +1311,20 @@ function es(e, t) {
|
|
|
1223
1311
|
newValue: a,
|
|
1224
1312
|
oldValue: i
|
|
1225
1313
|
},
|
|
1226
|
-
groupId:
|
|
1314
|
+
groupId: Pe
|
|
1227
1315
|
}
|
|
1228
1316
|
});
|
|
1229
1317
|
}, { deep: !0 });
|
|
1230
1318
|
}), t.$subscribe(({ events: l, type: a }, i) => {
|
|
1231
|
-
if (o.notifyComponentUpdate(), o.sendInspectorState(
|
|
1319
|
+
if (o.notifyComponentUpdate(), o.sendInspectorState(ue), !Le)
|
|
1232
1320
|
return;
|
|
1233
|
-
const
|
|
1321
|
+
const f = {
|
|
1234
1322
|
time: n(),
|
|
1235
|
-
title:
|
|
1236
|
-
data:
|
|
1237
|
-
groupId:
|
|
1323
|
+
title: is(a),
|
|
1324
|
+
data: cs({ store: we(t.$id) }, ls(l)),
|
|
1325
|
+
groupId: Pe
|
|
1238
1326
|
};
|
|
1239
|
-
a ===
|
|
1327
|
+
a === ke.patchFunction ? f.subtitle = "⤵️" : a === ke.patchObject ? f.subtitle = "🧩" : l && !Array.isArray(l) && (f.subtitle = l.type), l && (f.data["rawEvent(s)"] = {
|
|
1240
1328
|
_custom: {
|
|
1241
1329
|
display: "DebuggerEvent",
|
|
1242
1330
|
type: "object",
|
|
@@ -1244,74 +1332,74 @@ function es(e, t) {
|
|
|
1244
1332
|
value: l
|
|
1245
1333
|
}
|
|
1246
1334
|
}), o.addTimelineEvent({
|
|
1247
|
-
layerId:
|
|
1248
|
-
event:
|
|
1335
|
+
layerId: Ne,
|
|
1336
|
+
event: f
|
|
1249
1337
|
});
|
|
1250
1338
|
}, { detached: !0, flush: "sync" });
|
|
1251
1339
|
const s = t._hotUpdate;
|
|
1252
|
-
t._hotUpdate =
|
|
1340
|
+
t._hotUpdate = Me((l) => {
|
|
1253
1341
|
s(l), o.addTimelineEvent({
|
|
1254
|
-
layerId:
|
|
1342
|
+
layerId: Ne,
|
|
1255
1343
|
event: {
|
|
1256
1344
|
time: n(),
|
|
1257
1345
|
title: "🔥 " + t.$id,
|
|
1258
1346
|
subtitle: "HMR update",
|
|
1259
1347
|
data: {
|
|
1260
|
-
store:
|
|
1261
|
-
info:
|
|
1348
|
+
store: we(t.$id),
|
|
1349
|
+
info: we("HMR update")
|
|
1262
1350
|
}
|
|
1263
1351
|
}
|
|
1264
|
-
}), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1352
|
+
}), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue);
|
|
1265
1353
|
});
|
|
1266
1354
|
const { $dispose: r } = t;
|
|
1267
1355
|
t.$dispose = () => {
|
|
1268
|
-
r(), o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1269
|
-
}, o.notifyComponentUpdate(), o.sendInspectorTree(
|
|
1356
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && ae(`Disposed "${t.$id}" store 🗑`);
|
|
1357
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && ae(`"${t.$id}" store installed 🆕`);
|
|
1270
1358
|
});
|
|
1271
1359
|
}
|
|
1272
|
-
let
|
|
1273
|
-
function
|
|
1274
|
-
const n = t.reduce((s, r) => (s[r] =
|
|
1360
|
+
let ao = 0, Pe;
|
|
1361
|
+
function Vt(e, t, o) {
|
|
1362
|
+
const n = t.reduce((s, r) => (s[r] = Ye(e)[r], s), {});
|
|
1275
1363
|
for (const s in n)
|
|
1276
1364
|
e[s] = function() {
|
|
1277
|
-
const r =
|
|
1365
|
+
const r = ao, l = o ? new Proxy(e, {
|
|
1278
1366
|
get(...i) {
|
|
1279
|
-
return
|
|
1367
|
+
return Pe = r, Reflect.get(...i);
|
|
1280
1368
|
},
|
|
1281
1369
|
set(...i) {
|
|
1282
|
-
return
|
|
1370
|
+
return Pe = r, Reflect.set(...i);
|
|
1283
1371
|
}
|
|
1284
1372
|
}) : e;
|
|
1285
|
-
|
|
1373
|
+
Pe = r;
|
|
1286
1374
|
const a = n[s].apply(l, arguments);
|
|
1287
|
-
return
|
|
1375
|
+
return Pe = void 0, a;
|
|
1288
1376
|
};
|
|
1289
1377
|
}
|
|
1290
|
-
function
|
|
1378
|
+
function ps({ app: e, store: t, options: o }) {
|
|
1291
1379
|
if (!t.$id.startsWith("__hot:")) {
|
|
1292
1380
|
if (t._isOptionsAPI = !!o.state, !t._p._testing) {
|
|
1293
|
-
|
|
1381
|
+
Vt(t, Object.keys(o.actions), t._isOptionsAPI);
|
|
1294
1382
|
const n = t._hotUpdate;
|
|
1295
|
-
|
|
1296
|
-
n.apply(this, arguments),
|
|
1383
|
+
Ye(t)._hotUpdate = function(s) {
|
|
1384
|
+
n.apply(this, arguments), Vt(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1297
1385
|
};
|
|
1298
1386
|
}
|
|
1299
|
-
|
|
1387
|
+
ds(
|
|
1300
1388
|
e,
|
|
1301
1389
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
1302
1390
|
t
|
|
1303
1391
|
);
|
|
1304
1392
|
}
|
|
1305
1393
|
}
|
|
1306
|
-
function
|
|
1307
|
-
const e =
|
|
1394
|
+
function fs() {
|
|
1395
|
+
const e = Rt(!0), t = e.run(() => A({}));
|
|
1308
1396
|
let o = [], n = [];
|
|
1309
|
-
const s =
|
|
1397
|
+
const s = Me({
|
|
1310
1398
|
install(r) {
|
|
1311
|
-
|
|
1399
|
+
Je(s), s._a = r, r.provide(Xt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue && us(r, s), n.forEach((l) => o.push(l)), n = [];
|
|
1312
1400
|
},
|
|
1313
1401
|
use(r) {
|
|
1314
|
-
return !this._a && !
|
|
1402
|
+
return !this._a && !Jt ? n.push(r) : o.push(r), this;
|
|
1315
1403
|
},
|
|
1316
1404
|
_p: o,
|
|
1317
1405
|
// it's actually undefined here
|
|
@@ -1321,231 +1409,231 @@ function os() {
|
|
|
1321
1409
|
_s: /* @__PURE__ */ new Map(),
|
|
1322
1410
|
state: t
|
|
1323
1411
|
});
|
|
1324
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(
|
|
1412
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(ps), s;
|
|
1325
1413
|
}
|
|
1326
|
-
function
|
|
1414
|
+
function lo(e, t) {
|
|
1327
1415
|
for (const o in t) {
|
|
1328
1416
|
const n = t[o];
|
|
1329
1417
|
if (!(o in e))
|
|
1330
1418
|
continue;
|
|
1331
1419
|
const s = e[o];
|
|
1332
|
-
|
|
1420
|
+
De(s) && De(n) && !We(n) && !gt(n) ? e[o] = lo(s, n) : e[o] = n;
|
|
1333
1421
|
}
|
|
1334
1422
|
return e;
|
|
1335
1423
|
}
|
|
1336
|
-
const
|
|
1424
|
+
const io = () => {
|
|
1337
1425
|
};
|
|
1338
|
-
function
|
|
1426
|
+
function At(e, t, o, n = io) {
|
|
1339
1427
|
e.push(t);
|
|
1340
1428
|
const s = () => {
|
|
1341
1429
|
const r = e.indexOf(t);
|
|
1342
1430
|
r > -1 && (e.splice(r, 1), n());
|
|
1343
1431
|
};
|
|
1344
|
-
return !o &&
|
|
1432
|
+
return !o && $o() && Eo(s), s;
|
|
1345
1433
|
}
|
|
1346
|
-
function
|
|
1434
|
+
function Re(e, ...t) {
|
|
1347
1435
|
e.slice().forEach((o) => {
|
|
1348
1436
|
o(...t);
|
|
1349
1437
|
});
|
|
1350
1438
|
}
|
|
1351
|
-
const
|
|
1352
|
-
function
|
|
1439
|
+
const ms = (e) => e(), Nt = Symbol(), ft = Symbol();
|
|
1440
|
+
function ht(e, t) {
|
|
1353
1441
|
e instanceof Map && t instanceof Map ? t.forEach((o, n) => e.set(n, o)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1354
1442
|
for (const o in t) {
|
|
1355
1443
|
if (!t.hasOwnProperty(o))
|
|
1356
1444
|
continue;
|
|
1357
1445
|
const n = t[o], s = e[o];
|
|
1358
|
-
|
|
1446
|
+
De(s) && De(n) && e.hasOwnProperty(o) && !We(n) && !gt(n) ? e[o] = ht(s, n) : e[o] = n;
|
|
1359
1447
|
}
|
|
1360
1448
|
return e;
|
|
1361
1449
|
}
|
|
1362
|
-
const
|
|
1450
|
+
const hs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1363
1451
|
/* istanbul ignore next */
|
|
1364
1452
|
Symbol()
|
|
1365
1453
|
);
|
|
1366
|
-
function
|
|
1367
|
-
return !
|
|
1454
|
+
function _s(e) {
|
|
1455
|
+
return !De(e) || !e.hasOwnProperty(hs);
|
|
1368
1456
|
}
|
|
1369
|
-
const { assign:
|
|
1370
|
-
function
|
|
1371
|
-
return !!(
|
|
1457
|
+
const { assign: _e } = Object;
|
|
1458
|
+
function Mt(e) {
|
|
1459
|
+
return !!(We(e) && e.effect);
|
|
1372
1460
|
}
|
|
1373
|
-
function
|
|
1461
|
+
function Ut(e, t, o, n) {
|
|
1374
1462
|
const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
|
|
1375
1463
|
let i;
|
|
1376
|
-
function
|
|
1464
|
+
function f() {
|
|
1377
1465
|
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1378
|
-
const
|
|
1466
|
+
const y = process.env.NODE_ENV !== "production" && n ? (
|
|
1379
1467
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1380
|
-
|
|
1381
|
-
) :
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1468
|
+
$t(A(s ? s() : {}).value)
|
|
1469
|
+
) : $t(o.state.value[e]);
|
|
1470
|
+
return _e(y, r, Object.keys(l || {}).reduce((C, N) => (process.env.NODE_ENV !== "production" && N in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), C[N] = Me(Te(() => {
|
|
1471
|
+
Je(o);
|
|
1384
1472
|
const T = o._s.get(e);
|
|
1385
1473
|
return l[N].call(T, T);
|
|
1386
|
-
})),
|
|
1474
|
+
})), C), {}));
|
|
1387
1475
|
}
|
|
1388
|
-
return i =
|
|
1476
|
+
return i = _t(e, f, t, o, n, !0), i;
|
|
1389
1477
|
}
|
|
1390
|
-
function
|
|
1478
|
+
function _t(e, t, o = {}, n, s, r) {
|
|
1391
1479
|
let l;
|
|
1392
|
-
const a =
|
|
1480
|
+
const a = _e({ actions: {} }, o);
|
|
1393
1481
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1394
1482
|
throw new Error("Pinia destroyed");
|
|
1395
1483
|
const i = { deep: !0 };
|
|
1396
|
-
process.env.NODE_ENV !== "production" && !
|
|
1397
|
-
|
|
1484
|
+
process.env.NODE_ENV !== "production" && !Jt && (i.onTrigger = (u) => {
|
|
1485
|
+
f ? T = u : f == !1 && !h._hotUpdating && (Array.isArray(T) ? T.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1398
1486
|
});
|
|
1399
|
-
let
|
|
1400
|
-
const
|
|
1401
|
-
!r && !
|
|
1402
|
-
const
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1487
|
+
let f, y, C = [], N = [], T;
|
|
1488
|
+
const H = n.state.value[e];
|
|
1489
|
+
!r && !H && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1490
|
+
const L = A({});
|
|
1491
|
+
let ee;
|
|
1492
|
+
function B(u) {
|
|
1405
1493
|
let c;
|
|
1406
|
-
|
|
1407
|
-
type:
|
|
1494
|
+
f = y = !1, process.env.NODE_ENV !== "production" && (T = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1495
|
+
type: ke.patchFunction,
|
|
1408
1496
|
storeId: e,
|
|
1409
1497
|
events: T
|
|
1410
|
-
}) : (
|
|
1411
|
-
type:
|
|
1498
|
+
}) : (ht(n.state.value[e], u), c = {
|
|
1499
|
+
type: ke.patchObject,
|
|
1412
1500
|
payload: u,
|
|
1413
1501
|
storeId: e,
|
|
1414
1502
|
events: T
|
|
1415
1503
|
});
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}),
|
|
1504
|
+
const k = ee = Symbol();
|
|
1505
|
+
Be().then(() => {
|
|
1506
|
+
ee === k && (f = !0);
|
|
1507
|
+
}), y = !0, Re(C, c, n.state.value[e]);
|
|
1420
1508
|
}
|
|
1421
|
-
const
|
|
1422
|
-
const { state: c } = o,
|
|
1423
|
-
this.$patch((
|
|
1424
|
-
|
|
1509
|
+
const ie = r ? function() {
|
|
1510
|
+
const { state: c } = o, k = c ? c() : {};
|
|
1511
|
+
this.$patch((O) => {
|
|
1512
|
+
_e(O, k);
|
|
1425
1513
|
});
|
|
1426
1514
|
} : (
|
|
1427
1515
|
/* istanbul ignore next */
|
|
1428
1516
|
process.env.NODE_ENV !== "production" ? () => {
|
|
1429
1517
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1430
|
-
} :
|
|
1518
|
+
} : io
|
|
1431
1519
|
);
|
|
1432
|
-
function
|
|
1433
|
-
l.stop(),
|
|
1520
|
+
function G() {
|
|
1521
|
+
l.stop(), C = [], N = [], n._s.delete(e);
|
|
1434
1522
|
}
|
|
1435
|
-
const
|
|
1436
|
-
if (
|
|
1437
|
-
return u[
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
const
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1523
|
+
const M = (u, c = "") => {
|
|
1524
|
+
if (Nt in u)
|
|
1525
|
+
return u[ft] = c, u;
|
|
1526
|
+
const k = function() {
|
|
1527
|
+
Je(n);
|
|
1528
|
+
const O = Array.from(arguments), z = [], D = [];
|
|
1529
|
+
function F(Y) {
|
|
1530
|
+
z.push(Y);
|
|
1443
1531
|
}
|
|
1444
|
-
function U(
|
|
1445
|
-
|
|
1532
|
+
function U(Y) {
|
|
1533
|
+
D.push(Y);
|
|
1446
1534
|
}
|
|
1447
|
-
|
|
1448
|
-
args:
|
|
1449
|
-
name:
|
|
1450
|
-
store:
|
|
1451
|
-
after:
|
|
1535
|
+
Re(N, {
|
|
1536
|
+
args: O,
|
|
1537
|
+
name: k[ft],
|
|
1538
|
+
store: h,
|
|
1539
|
+
after: F,
|
|
1452
1540
|
onError: U
|
|
1453
1541
|
});
|
|
1454
1542
|
let b;
|
|
1455
1543
|
try {
|
|
1456
|
-
b = u.apply(this && this.$id === e ? this :
|
|
1457
|
-
} catch (
|
|
1458
|
-
throw
|
|
1544
|
+
b = u.apply(this && this.$id === e ? this : h, O);
|
|
1545
|
+
} catch (Y) {
|
|
1546
|
+
throw Re(D, Y), Y;
|
|
1459
1547
|
}
|
|
1460
|
-
return b instanceof Promise ? b.then((
|
|
1548
|
+
return b instanceof Promise ? b.then((Y) => (Re(z, Y), Y)).catch((Y) => (Re(D, Y), Promise.reject(Y))) : (Re(z, b), b);
|
|
1461
1549
|
};
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
1550
|
+
return k[Nt] = !0, k[ft] = c, k;
|
|
1551
|
+
}, te = /* @__PURE__ */ Me({
|
|
1464
1552
|
actions: {},
|
|
1465
1553
|
getters: {},
|
|
1466
1554
|
state: [],
|
|
1467
|
-
hotState:
|
|
1468
|
-
}),
|
|
1555
|
+
hotState: L
|
|
1556
|
+
}), _ = {
|
|
1469
1557
|
_p: n,
|
|
1470
1558
|
// _s: scope,
|
|
1471
1559
|
$id: e,
|
|
1472
|
-
$onAction:
|
|
1473
|
-
$patch:
|
|
1474
|
-
$reset:
|
|
1560
|
+
$onAction: At.bind(null, N),
|
|
1561
|
+
$patch: B,
|
|
1562
|
+
$reset: ie,
|
|
1475
1563
|
$subscribe(u, c = {}) {
|
|
1476
|
-
const
|
|
1477
|
-
(c.flush === "sync" ?
|
|
1564
|
+
const k = At(C, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (z) => {
|
|
1565
|
+
(c.flush === "sync" ? y : f) && u({
|
|
1478
1566
|
storeId: e,
|
|
1479
|
-
type:
|
|
1567
|
+
type: ke.direct,
|
|
1480
1568
|
events: T
|
|
1481
|
-
},
|
|
1482
|
-
},
|
|
1483
|
-
return
|
|
1569
|
+
}, z);
|
|
1570
|
+
}, _e({}, i, c)));
|
|
1571
|
+
return k;
|
|
1484
1572
|
},
|
|
1485
|
-
$dispose:
|
|
1486
|
-
},
|
|
1573
|
+
$dispose: G
|
|
1574
|
+
}, h = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ? _e(
|
|
1487
1575
|
{
|
|
1488
|
-
_hmrPayload:
|
|
1489
|
-
_customProperties:
|
|
1576
|
+
_hmrPayload: te,
|
|
1577
|
+
_customProperties: Me(/* @__PURE__ */ new Set())
|
|
1490
1578
|
// devtools custom properties
|
|
1491
1579
|
},
|
|
1492
|
-
|
|
1580
|
+
_
|
|
1493
1581
|
// must be added later
|
|
1494
1582
|
// setupStore
|
|
1495
|
-
) :
|
|
1496
|
-
n._s.set(e,
|
|
1497
|
-
const
|
|
1498
|
-
for (const u in
|
|
1499
|
-
const c =
|
|
1500
|
-
if (
|
|
1501
|
-
process.env.NODE_ENV !== "production" && s ?
|
|
1583
|
+
) : _);
|
|
1584
|
+
n._s.set(e, h);
|
|
1585
|
+
const I = (n._a && n._a.runWithContext || ms)(() => n._e.run(() => (l = Rt()).run(() => t({ action: M }))));
|
|
1586
|
+
for (const u in I) {
|
|
1587
|
+
const c = I[u];
|
|
1588
|
+
if (We(c) && !Mt(c) || gt(c))
|
|
1589
|
+
process.env.NODE_ENV !== "production" && s ? et(L.value, u, ut(I, u)) : r || (H && _s(c) && (We(c) ? c.value = H[u] : ht(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && te.state.push(u);
|
|
1502
1590
|
else if (typeof c == "function") {
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1591
|
+
const k = process.env.NODE_ENV !== "production" && s ? c : M(c, u);
|
|
1592
|
+
I[u] = k, process.env.NODE_ENV !== "production" && (te.actions[u] = c), a.actions[u] = c;
|
|
1593
|
+
} else process.env.NODE_ENV !== "production" && Mt(c) && (te.getters[u] = r ? (
|
|
1506
1594
|
// @ts-expect-error
|
|
1507
1595
|
o.getters[u]
|
|
1508
|
-
) : c,
|
|
1509
|
-
(
|
|
1596
|
+
) : c, Ue && (I._getters || // @ts-expect-error: same
|
|
1597
|
+
(I._getters = Me([]))).push(u));
|
|
1510
1598
|
}
|
|
1511
|
-
if (
|
|
1512
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1599
|
+
if (_e(h, I), _e(Ye(h), I), Object.defineProperty(h, "$state", {
|
|
1600
|
+
get: () => process.env.NODE_ENV !== "production" && s ? L.value : n.state.value[e],
|
|
1513
1601
|
set: (u) => {
|
|
1514
1602
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1515
1603
|
throw new Error("cannot set hotState");
|
|
1516
|
-
|
|
1517
|
-
|
|
1604
|
+
B((c) => {
|
|
1605
|
+
_e(c, u);
|
|
1518
1606
|
});
|
|
1519
1607
|
}
|
|
1520
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1521
|
-
|
|
1522
|
-
if (c in
|
|
1523
|
-
const
|
|
1524
|
-
typeof
|
|
1608
|
+
}), process.env.NODE_ENV !== "production" && (h._hotUpdate = Me((u) => {
|
|
1609
|
+
h._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1610
|
+
if (c in h.$state) {
|
|
1611
|
+
const k = u.$state[c], O = h.$state[c];
|
|
1612
|
+
typeof k == "object" && De(k) && De(O) ? lo(k, O) : u.$state[c] = O;
|
|
1525
1613
|
}
|
|
1526
|
-
|
|
1527
|
-
}), Object.keys(
|
|
1528
|
-
c in u.$state ||
|
|
1529
|
-
}),
|
|
1530
|
-
|
|
1614
|
+
et(h, c, ut(u.$state, c));
|
|
1615
|
+
}), Object.keys(h.$state).forEach((c) => {
|
|
1616
|
+
c in u.$state || pt(h, c);
|
|
1617
|
+
}), f = !1, y = !1, n.state.value[e] = ut(u._hmrPayload, "hotState"), y = !0, Be().then(() => {
|
|
1618
|
+
f = !0;
|
|
1531
1619
|
});
|
|
1532
1620
|
for (const c in u._hmrPayload.actions) {
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1621
|
+
const k = u[c];
|
|
1622
|
+
et(h, c, M(k, c));
|
|
1535
1623
|
}
|
|
1536
1624
|
for (const c in u._hmrPayload.getters) {
|
|
1537
|
-
const
|
|
1625
|
+
const k = u._hmrPayload.getters[c], O = r ? (
|
|
1538
1626
|
// special handling of options api
|
|
1539
|
-
|
|
1540
|
-
) :
|
|
1541
|
-
|
|
1542
|
-
}
|
|
1543
|
-
Object.keys(
|
|
1544
|
-
c in u._hmrPayload.getters ||
|
|
1545
|
-
}), Object.keys(
|
|
1546
|
-
c in u._hmrPayload.actions ||
|
|
1547
|
-
}),
|
|
1548
|
-
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1627
|
+
Te(() => (Je(n), k.call(h, h)))
|
|
1628
|
+
) : k;
|
|
1629
|
+
et(h, c, O);
|
|
1630
|
+
}
|
|
1631
|
+
Object.keys(h._hmrPayload.getters).forEach((c) => {
|
|
1632
|
+
c in u._hmrPayload.getters || pt(h, c);
|
|
1633
|
+
}), Object.keys(h._hmrPayload.actions).forEach((c) => {
|
|
1634
|
+
c in u._hmrPayload.actions || pt(h, c);
|
|
1635
|
+
}), h._hmrPayload = u._hmrPayload, h._getters = u._getters, h._hotUpdating = !1;
|
|
1636
|
+
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue) {
|
|
1549
1637
|
const u = {
|
|
1550
1638
|
writable: !0,
|
|
1551
1639
|
configurable: !0,
|
|
@@ -1553,73 +1641,73 @@ function dt(e, t, o = {}, n, s, r) {
|
|
|
1553
1641
|
enumerable: !1
|
|
1554
1642
|
};
|
|
1555
1643
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1556
|
-
Object.defineProperty(
|
|
1644
|
+
Object.defineProperty(h, c, _e({ value: h[c] }, u));
|
|
1557
1645
|
});
|
|
1558
1646
|
}
|
|
1559
1647
|
return n._p.forEach((u) => {
|
|
1560
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
1648
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue) {
|
|
1561
1649
|
const c = l.run(() => u({
|
|
1562
|
-
store:
|
|
1650
|
+
store: h,
|
|
1563
1651
|
app: n._a,
|
|
1564
1652
|
pinia: n,
|
|
1565
1653
|
options: a
|
|
1566
1654
|
}));
|
|
1567
|
-
Object.keys(c || {}).forEach((
|
|
1655
|
+
Object.keys(c || {}).forEach((k) => h._customProperties.add(k)), _e(h, c);
|
|
1568
1656
|
} else
|
|
1569
|
-
|
|
1570
|
-
store:
|
|
1657
|
+
_e(h, l.run(() => u({
|
|
1658
|
+
store: h,
|
|
1571
1659
|
app: n._a,
|
|
1572
1660
|
pinia: n,
|
|
1573
1661
|
options: a
|
|
1574
1662
|
})));
|
|
1575
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1663
|
+
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1576
1664
|
state: () => new MyClass()
|
|
1577
|
-
Found in store "${
|
|
1665
|
+
Found in store "${h.$id}".`), H && r && o.hydrate && o.hydrate(h.$state, H), f = !0, y = !0, h;
|
|
1578
1666
|
}
|
|
1579
1667
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1580
1668
|
// @__NO_SIDE_EFFECTS__
|
|
1581
|
-
function
|
|
1669
|
+
function gs(e, t, o) {
|
|
1582
1670
|
let n, s;
|
|
1583
1671
|
const r = typeof t == "function";
|
|
1584
1672
|
n = e, s = r ? o : t;
|
|
1585
1673
|
function l(a, i) {
|
|
1586
|
-
const
|
|
1674
|
+
const f = Co();
|
|
1587
1675
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1588
1676
|
// pinia instance with getActivePinia()
|
|
1589
|
-
(process.env.NODE_ENV === "test" &&
|
|
1677
|
+
(process.env.NODE_ENV === "test" && He && He._testing ? null : a) || (f ? ko(Xt, null) : null), a && Je(a), process.env.NODE_ENV !== "production" && !He)
|
|
1590
1678
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1591
1679
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1592
1680
|
This will fail in production.`);
|
|
1593
|
-
a =
|
|
1594
|
-
const
|
|
1681
|
+
a = He, a._s.has(n) || (r ? _t(n, t, s, a) : Ut(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1682
|
+
const y = a._s.get(n);
|
|
1595
1683
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1596
|
-
const
|
|
1597
|
-
i._hotUpdate(N), delete a.state.value[
|
|
1684
|
+
const C = "__hot:" + n, N = r ? _t(C, t, s, a, !0) : Ut(C, _e({}, s), a, !0);
|
|
1685
|
+
i._hotUpdate(N), delete a.state.value[C], a._s.delete(C);
|
|
1598
1686
|
}
|
|
1599
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1600
|
-
const
|
|
1601
|
-
if (
|
|
1687
|
+
if (process.env.NODE_ENV !== "production" && Ue) {
|
|
1688
|
+
const C = xo();
|
|
1689
|
+
if (C && C.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1602
1690
|
!i) {
|
|
1603
|
-
const N =
|
|
1604
|
-
T[n] =
|
|
1691
|
+
const N = C.proxy, T = "_pStores" in N ? N._pStores : N._pStores = {};
|
|
1692
|
+
T[n] = y;
|
|
1605
1693
|
}
|
|
1606
1694
|
}
|
|
1607
|
-
return
|
|
1695
|
+
return y;
|
|
1608
1696
|
}
|
|
1609
1697
|
return l.$id = n, l;
|
|
1610
1698
|
}
|
|
1611
|
-
const
|
|
1612
|
-
function
|
|
1699
|
+
const bs = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, vs = /"(?: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)"\s*:/, ys = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1700
|
+
function ws(e, t) {
|
|
1613
1701
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
1614
|
-
|
|
1702
|
+
Ss(e);
|
|
1615
1703
|
return;
|
|
1616
1704
|
}
|
|
1617
1705
|
return t;
|
|
1618
1706
|
}
|
|
1619
|
-
function
|
|
1707
|
+
function Ss(e) {
|
|
1620
1708
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
1621
1709
|
}
|
|
1622
|
-
function
|
|
1710
|
+
function Cs(e, t = {}) {
|
|
1623
1711
|
if (typeof e != "string")
|
|
1624
1712
|
return e;
|
|
1625
1713
|
const o = e.trim();
|
|
@@ -1645,16 +1733,16 @@ function ps(e, t = {}) {
|
|
|
1645
1733
|
if (n === "-infinity")
|
|
1646
1734
|
return Number.NEGATIVE_INFINITY;
|
|
1647
1735
|
}
|
|
1648
|
-
if (!
|
|
1736
|
+
if (!ys.test(e)) {
|
|
1649
1737
|
if (t.strict)
|
|
1650
1738
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
1651
1739
|
return e;
|
|
1652
1740
|
}
|
|
1653
1741
|
try {
|
|
1654
|
-
if (
|
|
1742
|
+
if (bs.test(e) || vs.test(e)) {
|
|
1655
1743
|
if (t.strict)
|
|
1656
1744
|
throw new Error("[destr] Possible prototype pollution");
|
|
1657
|
-
return JSON.parse(e,
|
|
1745
|
+
return JSON.parse(e, ws);
|
|
1658
1746
|
}
|
|
1659
1747
|
return JSON.parse(e);
|
|
1660
1748
|
} catch (n) {
|
|
@@ -1663,7 +1751,7 @@ function ps(e, t = {}) {
|
|
|
1663
1751
|
return e;
|
|
1664
1752
|
}
|
|
1665
1753
|
}
|
|
1666
|
-
function
|
|
1754
|
+
function ks(e, t) {
|
|
1667
1755
|
if (e == null)
|
|
1668
1756
|
return;
|
|
1669
1757
|
let o = e;
|
|
@@ -1674,17 +1762,17 @@ function fs(e, t) {
|
|
|
1674
1762
|
}
|
|
1675
1763
|
return o;
|
|
1676
1764
|
}
|
|
1677
|
-
function
|
|
1765
|
+
function yt(e, t, o) {
|
|
1678
1766
|
if (o.length === 0)
|
|
1679
1767
|
return t;
|
|
1680
1768
|
const n = o[0];
|
|
1681
|
-
return o.length > 1 && (t =
|
|
1769
|
+
return o.length > 1 && (t = yt(
|
|
1682
1770
|
typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(o[1])) ? [] : {} : e[n],
|
|
1683
1771
|
t,
|
|
1684
1772
|
Array.prototype.slice.call(o, 1)
|
|
1685
1773
|
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]: t });
|
|
1686
1774
|
}
|
|
1687
|
-
function
|
|
1775
|
+
function co(e, t) {
|
|
1688
1776
|
if (e == null || t.length === 0)
|
|
1689
1777
|
return e;
|
|
1690
1778
|
if (t.length === 1) {
|
|
@@ -1705,22 +1793,22 @@ function to(e, t) {
|
|
|
1705
1793
|
o[n] = e[n];
|
|
1706
1794
|
return o;
|
|
1707
1795
|
}
|
|
1708
|
-
return
|
|
1796
|
+
return yt(
|
|
1709
1797
|
e,
|
|
1710
|
-
|
|
1798
|
+
co(
|
|
1711
1799
|
e[t[0]],
|
|
1712
1800
|
Array.prototype.slice.call(t, 1)
|
|
1713
1801
|
),
|
|
1714
1802
|
[t[0]]
|
|
1715
1803
|
);
|
|
1716
1804
|
}
|
|
1717
|
-
function
|
|
1718
|
-
return t.map((o) => o.split(".")).map((o) => [o,
|
|
1805
|
+
function uo(e, t) {
|
|
1806
|
+
return t.map((o) => o.split(".")).map((o) => [o, ks(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => yt(o, n[1], n[0]), {});
|
|
1719
1807
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return t.map((o) => o.split(".")).reduce((o, n) =>
|
|
1808
|
+
function po(e, t) {
|
|
1809
|
+
return t.map((o) => o.split(".")).reduce((o, n) => co(o, n), e);
|
|
1722
1810
|
}
|
|
1723
|
-
function
|
|
1811
|
+
function Tt(e, {
|
|
1724
1812
|
storage: t,
|
|
1725
1813
|
serializer: o,
|
|
1726
1814
|
key: n,
|
|
@@ -1729,20 +1817,20 @@ function It(e, {
|
|
|
1729
1817
|
omit: l,
|
|
1730
1818
|
beforeHydrate: a,
|
|
1731
1819
|
afterHydrate: i
|
|
1732
|
-
},
|
|
1820
|
+
}, f, y = !0) {
|
|
1733
1821
|
try {
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1737
|
-
const N = o.deserialize(
|
|
1738
|
-
e.$patch(
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
} catch (
|
|
1742
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1822
|
+
y && (a == null || a(f));
|
|
1823
|
+
const C = t.getItem(n);
|
|
1824
|
+
if (C) {
|
|
1825
|
+
const N = o.deserialize(C), T = r ? uo(N, r) : N, H = l ? po(T, l) : T;
|
|
1826
|
+
e.$patch(H);
|
|
1827
|
+
}
|
|
1828
|
+
y && (i == null || i(f));
|
|
1829
|
+
} catch (C) {
|
|
1830
|
+
s && console.error("[pinia-plugin-persistedstate]", C);
|
|
1743
1831
|
}
|
|
1744
1832
|
}
|
|
1745
|
-
function
|
|
1833
|
+
function Dt(e, {
|
|
1746
1834
|
storage: t,
|
|
1747
1835
|
serializer: o,
|
|
1748
1836
|
key: n,
|
|
@@ -1751,13 +1839,13 @@ function Vt(e, {
|
|
|
1751
1839
|
omit: l
|
|
1752
1840
|
}) {
|
|
1753
1841
|
try {
|
|
1754
|
-
const a = r ?
|
|
1755
|
-
t.setItem(n,
|
|
1842
|
+
const a = r ? uo(e, r) : e, i = l ? po(a, l) : a, f = o.serialize(i);
|
|
1843
|
+
t.setItem(n, f);
|
|
1756
1844
|
} catch (a) {
|
|
1757
1845
|
s && console.error("[pinia-plugin-persistedstate]", a);
|
|
1758
1846
|
}
|
|
1759
1847
|
}
|
|
1760
|
-
function
|
|
1848
|
+
function xs(e, t, o) {
|
|
1761
1849
|
const { pinia: n, store: s, options: { persist: r = o } } = e;
|
|
1762
1850
|
if (!r)
|
|
1763
1851
|
return;
|
|
@@ -1768,35 +1856,35 @@ function ms(e, t, o) {
|
|
|
1768
1856
|
}
|
|
1769
1857
|
const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(t);
|
|
1770
1858
|
s.$hydrate = ({ runHooks: i = !0 } = {}) => {
|
|
1771
|
-
a.forEach((
|
|
1772
|
-
|
|
1859
|
+
a.forEach((f) => {
|
|
1860
|
+
Tt(s, f, e, i);
|
|
1773
1861
|
});
|
|
1774
1862
|
}, s.$persist = () => {
|
|
1775
1863
|
a.forEach((i) => {
|
|
1776
|
-
|
|
1864
|
+
Dt(s.$state, i);
|
|
1777
1865
|
});
|
|
1778
1866
|
}, a.forEach((i) => {
|
|
1779
|
-
|
|
1780
|
-
(
|
|
1867
|
+
Tt(s, i, e), s.$subscribe(
|
|
1868
|
+
(f, y) => Dt(y, i),
|
|
1781
1869
|
{ detached: !0 }
|
|
1782
1870
|
);
|
|
1783
1871
|
});
|
|
1784
1872
|
}
|
|
1785
|
-
function
|
|
1873
|
+
function $s(e = {}) {
|
|
1786
1874
|
return function(t) {
|
|
1787
1875
|
var o;
|
|
1788
|
-
|
|
1876
|
+
xs(
|
|
1789
1877
|
t,
|
|
1790
1878
|
(n) => {
|
|
1791
|
-
var s, r, l, a, i,
|
|
1879
|
+
var s, r, l, a, i, f, y;
|
|
1792
1880
|
return {
|
|
1793
|
-
key: (e.key ? e.key : (
|
|
1881
|
+
key: (e.key ? e.key : (C) => C)((s = n.key) != null ? s : t.store.$id),
|
|
1794
1882
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1795
1883
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1796
|
-
serialize: (
|
|
1797
|
-
deserialize: (
|
|
1884
|
+
serialize: (C) => JSON.stringify(C),
|
|
1885
|
+
deserialize: (C) => Cs(C)
|
|
1798
1886
|
},
|
|
1799
|
-
storage: (
|
|
1887
|
+
storage: (y = (f = n.storage) != null ? f : e.storage) != null ? y : window.localStorage,
|
|
1800
1888
|
beforeHydrate: n.beforeHydrate,
|
|
1801
1889
|
afterHydrate: n.afterHydrate,
|
|
1802
1890
|
pick: n.pick,
|
|
@@ -1807,85 +1895,87 @@ function hs(e = {}) {
|
|
|
1807
1895
|
);
|
|
1808
1896
|
};
|
|
1809
1897
|
}
|
|
1810
|
-
var
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
const
|
|
1898
|
+
var Es = $s();
|
|
1899
|
+
const wt = fs();
|
|
1900
|
+
wt.use(Es);
|
|
1901
|
+
const fo = /* @__PURE__ */ gs("console", {
|
|
1814
1902
|
state: () => ({
|
|
1815
1903
|
menu: {
|
|
1816
1904
|
collapsed: !0
|
|
1817
1905
|
}
|
|
1818
1906
|
}),
|
|
1819
1907
|
persist: !0
|
|
1820
|
-
}),
|
|
1908
|
+
}), Os = {
|
|
1821
1909
|
key: 0,
|
|
1822
1910
|
class: "menu-wrapper"
|
|
1823
|
-
},
|
|
1911
|
+
}, Ps = /* @__PURE__ */ Se({
|
|
1824
1912
|
__name: "SideMenu",
|
|
1825
1913
|
props: {
|
|
1826
1914
|
menuCollapsed: { type: Boolean }
|
|
1827
1915
|
},
|
|
1828
1916
|
emits: ["update:menuCollapsed"],
|
|
1829
1917
|
setup(e, { emit: t }) {
|
|
1830
|
-
|
|
1831
|
-
const o =
|
|
1918
|
+
fo(wt);
|
|
1919
|
+
const o = Ke(), n = Te(() => {
|
|
1832
1920
|
var r;
|
|
1833
1921
|
const s = o.meta.activeMenu;
|
|
1834
1922
|
if (s === "{model}") {
|
|
1835
1923
|
let l = o.params.app ? `${o.params.app}/${o.params.model}` : o.params.model;
|
|
1836
|
-
return "/" + ((r =
|
|
1924
|
+
return "/" + ((r = jn[o.params.model]) != null ? r : l);
|
|
1837
1925
|
} else
|
|
1838
1926
|
return s;
|
|
1839
1927
|
});
|
|
1840
1928
|
return (s, r) => {
|
|
1841
|
-
const l =
|
|
1842
|
-
return
|
|
1843
|
-
|
|
1929
|
+
const l = E("el-menu");
|
|
1930
|
+
return $(Pt).length > 0 ? (p(), V("div", Os, [
|
|
1931
|
+
m(l, {
|
|
1844
1932
|
class: "menu",
|
|
1845
1933
|
"default-active": n.value,
|
|
1846
1934
|
router: ""
|
|
1847
1935
|
}, {
|
|
1848
|
-
default:
|
|
1849
|
-
(p(!0),
|
|
1936
|
+
default: d(() => [
|
|
1937
|
+
(p(!0), V(le, null, fe($(Pt), (a) => (p(), P(Gn, {
|
|
1850
1938
|
key: a.path,
|
|
1851
1939
|
menu: a
|
|
1852
1940
|
}, null, 8, ["menu"]))), 128))
|
|
1853
1941
|
]),
|
|
1854
1942
|
_: 1
|
|
1855
1943
|
}, 8, ["default-active"])
|
|
1856
|
-
])) :
|
|
1944
|
+
])) : j("", !0);
|
|
1857
1945
|
};
|
|
1858
1946
|
}
|
|
1859
|
-
}),
|
|
1947
|
+
}), mo = /* @__PURE__ */ ve(Ps, [["__scopeId", "data-v-c70ca2ba"]]), Is = { class: "container" }, Vs = /* @__PURE__ */ Se({
|
|
1860
1948
|
__name: "ConsoleApp",
|
|
1861
1949
|
props: {
|
|
1862
1950
|
title: {},
|
|
1951
|
+
headerProjectConfig: {},
|
|
1863
1952
|
helpDocUrl: {}
|
|
1864
1953
|
},
|
|
1865
1954
|
setup(e) {
|
|
1866
|
-
const t =
|
|
1955
|
+
const t = fo(wt), o = Ke(), n = A(t.menu.collapsed), s = A(), r = e;
|
|
1867
1956
|
return (l, a) => {
|
|
1868
|
-
const i =
|
|
1869
|
-
return p(),
|
|
1870
|
-
|
|
1957
|
+
const i = E("router-view"), f = E("el-scrollbar");
|
|
1958
|
+
return p(), V(le, null, [
|
|
1959
|
+
$(o).query.embedded !== "true" ? (p(), P(Wt, {
|
|
1871
1960
|
key: 0,
|
|
1872
1961
|
title: r.title,
|
|
1873
|
-
helpDocUrl: r.helpDocUrl
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1962
|
+
helpDocUrl: r.helpDocUrl,
|
|
1963
|
+
headerProjectConfig: r.headerProjectConfig
|
|
1964
|
+
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : j("", !0),
|
|
1965
|
+
S("div", Is, [
|
|
1966
|
+
$(o).query.embedded !== "true" ? (p(), P(mo, {
|
|
1877
1967
|
key: 0,
|
|
1878
1968
|
menuCollapsed: n.value,
|
|
1879
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1880
|
-
}, null, 8, ["menuCollapsed"])) :
|
|
1881
|
-
|
|
1882
|
-
default:
|
|
1883
|
-
|
|
1969
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
|
|
1970
|
+
}, null, 8, ["menuCollapsed"])) : j("", !0),
|
|
1971
|
+
m(f, { class: "main-scrollbar" }, {
|
|
1972
|
+
default: d(() => [
|
|
1973
|
+
S("main", {
|
|
1884
1974
|
ref_key: "mainWrapperRef",
|
|
1885
1975
|
ref: s,
|
|
1886
1976
|
class: "main-wrapper"
|
|
1887
1977
|
}, [
|
|
1888
|
-
|
|
1978
|
+
m(i)
|
|
1889
1979
|
], 512)
|
|
1890
1980
|
]),
|
|
1891
1981
|
_: 1
|
|
@@ -1894,60 +1984,60 @@ const so = /* @__PURE__ */ as("console", {
|
|
|
1894
1984
|
], 64);
|
|
1895
1985
|
};
|
|
1896
1986
|
}
|
|
1897
|
-
}),
|
|
1987
|
+
}), As = {
|
|
1898
1988
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1899
1989
|
width: "800",
|
|
1900
1990
|
height: "800"
|
|
1901
1991
|
};
|
|
1902
|
-
function
|
|
1903
|
-
return p(),
|
|
1904
|
-
wo('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
1992
|
+
function Ns(e, t) {
|
|
1993
|
+
return p(), V("svg", As, t[0] || (t[0] = [
|
|
1994
|
+
Oo('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
1905
1995
|
]));
|
|
1906
1996
|
}
|
|
1907
|
-
const
|
|
1908
|
-
function
|
|
1909
|
-
const o =
|
|
1910
|
-
return p(),
|
|
1911
|
-
t[4] || (t[4] =
|
|
1912
|
-
|
|
1913
|
-
t[3] || (t[3] =
|
|
1914
|
-
|
|
1915
|
-
default:
|
|
1916
|
-
|
|
1997
|
+
const Ms = { render: Ns }, Us = {}, Ts = { class: "wrapper" }, Ds = { class: "content" };
|
|
1998
|
+
function Fs(e, t) {
|
|
1999
|
+
const o = E("el-button");
|
|
2000
|
+
return p(), V("div", Ts, [
|
|
2001
|
+
t[4] || (t[4] = S("img", { src: Ms }, null, -1)),
|
|
2002
|
+
S("div", Ds, [
|
|
2003
|
+
t[3] || (t[3] = S("h1", null, "You have no permission to access the page.", -1)),
|
|
2004
|
+
m(o, { type: "primary" }, {
|
|
2005
|
+
default: d(() => t[1] || (t[1] = [
|
|
2006
|
+
J("Apply")
|
|
1917
2007
|
])),
|
|
1918
2008
|
_: 1
|
|
1919
2009
|
}),
|
|
1920
|
-
|
|
2010
|
+
m(o, {
|
|
1921
2011
|
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1922
2012
|
}, {
|
|
1923
|
-
default:
|
|
1924
|
-
|
|
2013
|
+
default: d(() => t[2] || (t[2] = [
|
|
2014
|
+
J("Go Back")
|
|
1925
2015
|
])),
|
|
1926
2016
|
_: 1
|
|
1927
2017
|
})
|
|
1928
2018
|
])
|
|
1929
2019
|
]);
|
|
1930
2020
|
}
|
|
1931
|
-
const
|
|
1932
|
-
function
|
|
1933
|
-
const o =
|
|
1934
|
-
return p(),
|
|
2021
|
+
const Rs = /* @__PURE__ */ ve(Us, [["render", Fs], ["__scopeId", "data-v-0155b361"]]), Ls = {};
|
|
2022
|
+
function Gs(e, t) {
|
|
2023
|
+
const o = E("router-view");
|
|
2024
|
+
return p(), P(o);
|
|
1935
2025
|
}
|
|
1936
|
-
const
|
|
2026
|
+
const js = /* @__PURE__ */ ve(Ls, [["render", Gs]]), zs = { class: "card-wrapper" }, qs = ["onClick"], Hs = { class: "card-inner-wrapper" }, Bs = { class: "card-title" }, Ys = { class: "icon" }, Ws = /* @__PURE__ */ Se({
|
|
1937
2027
|
__name: "TabCard",
|
|
1938
2028
|
props: {
|
|
1939
2029
|
cards: {},
|
|
1940
2030
|
tableRef: {}
|
|
1941
2031
|
},
|
|
1942
2032
|
setup(e) {
|
|
1943
|
-
const { t } =
|
|
2033
|
+
const { t } = Qe(), o = Ke(), n = ct(), s = e, r = A(s.cards[0].key);
|
|
1944
2034
|
function l(a) {
|
|
1945
2035
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1946
2036
|
path: o.path,
|
|
1947
|
-
query:
|
|
2037
|
+
query: xt(Ze({}, o.query), { tab: a.key })
|
|
1948
2038
|
}));
|
|
1949
2039
|
}
|
|
1950
|
-
return
|
|
2040
|
+
return Ft(() => {
|
|
1951
2041
|
let a;
|
|
1952
2042
|
if (o.query.tab !== void 0) {
|
|
1953
2043
|
for (let i of s.cards)
|
|
@@ -1956,10 +2046,10 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
|
|
|
1956
2046
|
break;
|
|
1957
2047
|
}
|
|
1958
2048
|
}
|
|
1959
|
-
|
|
2049
|
+
Be(() => {
|
|
1960
2050
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1961
2051
|
});
|
|
1962
|
-
}),
|
|
2052
|
+
}), Ee(
|
|
1963
2053
|
() => s.cards,
|
|
1964
2054
|
(a) => {
|
|
1965
2055
|
if (o.query.tab !== void 0) {
|
|
@@ -1974,51 +2064,38 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
|
|
|
1974
2064
|
{
|
|
1975
2065
|
deep: !0
|
|
1976
2066
|
}
|
|
1977
|
-
), (a, i) => (p(),
|
|
1978
|
-
(p(!0),
|
|
1979
|
-
class:
|
|
1980
|
-
onClick: (
|
|
2067
|
+
), (a, i) => (p(), V("div", zs, [
|
|
2068
|
+
(p(!0), V(le, null, fe(s.cards, (f) => (p(), V("div", {
|
|
2069
|
+
class: Lt(["card", { "card-selected": r.value === f.key }]),
|
|
2070
|
+
onClick: (y) => l(f)
|
|
1981
2071
|
}, [
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
2072
|
+
S("div", Hs, [
|
|
2073
|
+
S("div", Bs, [
|
|
2074
|
+
S("div", Ys, [
|
|
2075
|
+
f.icon ? (p(), P(rt(f.icon), {
|
|
1986
2076
|
key: 0,
|
|
1987
2077
|
class: "svg-icon"
|
|
1988
|
-
})) :
|
|
2078
|
+
})) : j("", !0)
|
|
1989
2079
|
]),
|
|
1990
|
-
|
|
1991
|
-
style:
|
|
1992
|
-
},
|
|
2080
|
+
S("span", {
|
|
2081
|
+
style: je({ color: f.disabled ? "#aaa" : "black" })
|
|
2082
|
+
}, R($(t)(f.label)), 5)
|
|
1993
2083
|
]),
|
|
1994
|
-
|
|
2084
|
+
S("span", null, R(f.count), 1)
|
|
1995
2085
|
])
|
|
1996
|
-
], 10,
|
|
2086
|
+
], 10, qs))), 256))
|
|
1997
2087
|
]));
|
|
1998
2088
|
}
|
|
1999
|
-
}),
|
|
2000
|
-
function Oe(e, t, o) {
|
|
2001
|
-
switch (t) {
|
|
2002
|
-
case "POST":
|
|
2003
|
-
return de.post(e, o);
|
|
2004
|
-
case "PUT":
|
|
2005
|
-
return de.put(e, o);
|
|
2006
|
-
case "DELETE":
|
|
2007
|
-
return de.delete(e + "/" + o);
|
|
2008
|
-
default:
|
|
2009
|
-
return de.get(e, { params: o });
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
const Be = (e) => {
|
|
2089
|
+
}), ho = /* @__PURE__ */ ve(Ws, [["__scopeId", "data-v-047a86e6"]]), ze = (e) => {
|
|
2013
2090
|
const t = Object.keys(e);
|
|
2014
2091
|
let o = {};
|
|
2015
2092
|
t.forEach((n) => {
|
|
2016
2093
|
o[n] = void 0;
|
|
2017
2094
|
}), Object.assign(e, o);
|
|
2018
|
-
},
|
|
2095
|
+
}, Js = {
|
|
2019
2096
|
key: 1,
|
|
2020
2097
|
class: "view-span"
|
|
2021
|
-
},
|
|
2098
|
+
}, Ks = /* @__PURE__ */ Se({
|
|
2022
2099
|
__name: "FormView",
|
|
2023
2100
|
props: {
|
|
2024
2101
|
id: {},
|
|
@@ -2031,120 +2108,150 @@ const Be = (e) => {
|
|
|
2031
2108
|
},
|
|
2032
2109
|
emits: ["update:id"],
|
|
2033
2110
|
setup(e, { expose: t, emit: o }) {
|
|
2034
|
-
const { t: n } =
|
|
2035
|
-
(
|
|
2036
|
-
var
|
|
2037
|
-
let
|
|
2038
|
-
if (s.mode !== "view" && ((u =
|
|
2111
|
+
const { t: n } = at.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (_) => s.mode === "view" && (M(_, void 0) || M(_, "input") || M(_, "select") || M(_, "password") || M(_, "input-number")), C = Te(() => s.model.fields ? s.model.fields.filter(
|
|
2112
|
+
(_) => {
|
|
2113
|
+
var I, u, c, k;
|
|
2114
|
+
let h = _.visible !== !1 && ((I = _.formItemAttributes) == null ? void 0 : I.visible) !== !1;
|
|
2115
|
+
if (s.mode !== "view" && ((u = _.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = _.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
2039
2116
|
return !1;
|
|
2040
|
-
let
|
|
2041
|
-
|
|
2117
|
+
let v = (k = _.formItemAttributes) == null ? void 0 : k.showCondition;
|
|
2118
|
+
if (v && v.field && v.value !== void 0) {
|
|
2119
|
+
if (v.operator === void 0 || v.operator === "==")
|
|
2120
|
+
return r[v.field] === v.value;
|
|
2121
|
+
if (v.operator === "!=")
|
|
2122
|
+
return r[v.field] !== v.value;
|
|
2123
|
+
if (v.operator === ">")
|
|
2124
|
+
return r[v.field] > v.value;
|
|
2125
|
+
if (v.operator === "<")
|
|
2126
|
+
return r[v.field] < v.value;
|
|
2127
|
+
}
|
|
2128
|
+
return h;
|
|
2042
2129
|
}
|
|
2043
2130
|
) : []);
|
|
2044
|
-
|
|
2045
|
-
T();
|
|
2131
|
+
Ee([() => s.id, () => s.sessionId], () => {
|
|
2132
|
+
console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), T();
|
|
2133
|
+
}, {
|
|
2134
|
+
immediate: !0
|
|
2046
2135
|
});
|
|
2047
2136
|
function N() {
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2137
|
+
console.log("FormView.initFormFields: begin");
|
|
2138
|
+
const _ = s.model.fields;
|
|
2139
|
+
let h = {};
|
|
2140
|
+
_ == null || _.forEach((v) => {
|
|
2141
|
+
var I, u, c, k, O, z, D, F, U, b, Y, g, x;
|
|
2142
|
+
if (r[v.prop] = null, v.visible !== !1 && ((I = v.formItemAttributes) == null ? void 0 : I.visible) !== !1) {
|
|
2143
|
+
if (((u = v.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[v.prop] = (c = v.formItemAttributes) == null ? void 0 : c.defaultValue : r[v.prop] = void 0, s.mode !== "view") {
|
|
2144
|
+
let K = (k = v.formItemAttributes) == null ? void 0 : k.validationRule;
|
|
2145
|
+
K !== void 0 && (h[v.prop] = K), ze(i), Object.assign(i, h);
|
|
2056
2146
|
}
|
|
2057
|
-
const
|
|
2058
|
-
if (
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2147
|
+
const w = v.formItemAttributes, W = w == null ? void 0 : w.type, q = (O = w == null ? void 0 : w.selectAttributes) == null ? void 0 : O.useDatableDict, oe = (z = w == null ? void 0 : w.selectAttributes) == null ? void 0 : z.dictId, ne = (D = w == null ? void 0 : w.selectAttributes) == null ? void 0 : D.api, se = (F = w == null ? void 0 : w.selectAttributes) == null ? void 0 : F.valueMappingField, X = (U = w == null ? void 0 : w.selectAttributes) == null ? void 0 : U.labelMappingField;
|
|
2148
|
+
if (W === "select") {
|
|
2149
|
+
if (q) {
|
|
2150
|
+
let re = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${oe}`;
|
|
2151
|
+
const ce = (b = w == null ? void 0 : w.selectAttributes) == null ? void 0 : b.queryParamName, me = (Y = w == null ? void 0 : w.selectAttributes) == null ? void 0 : Y.queryParamValueField;
|
|
2152
|
+
ce && (re = `${re}?${ce}=${s.id}`), me || Ce(re, "GET", {}).then(({ data: he }) => {
|
|
2153
|
+
var ye;
|
|
2154
|
+
if ((ye = v.formItemAttributes) != null && ye.selectAttributes) {
|
|
2155
|
+
let Q = [];
|
|
2156
|
+
Array.isArray(he.data) ? Q = he.data : he.data.list && Array.isArray(he.data.list) && (Q = he.data.list), v.formItemAttributes.selectAttributes.options = Q.map((Ie) => ({
|
|
2157
|
+
value: Ie.dbOrdinal,
|
|
2158
|
+
label: Ie.value
|
|
2159
|
+
}));
|
|
2160
|
+
}
|
|
2161
|
+
});
|
|
2162
|
+
} else if (ne) {
|
|
2163
|
+
let K = ne;
|
|
2164
|
+
const re = (g = w == null ? void 0 : w.selectAttributes) == null ? void 0 : g.queryParamName, ce = (x = w == null ? void 0 : w.selectAttributes) == null ? void 0 : x.queryParamValueField;
|
|
2165
|
+
re && (K = `${K}?${re}=${s.id}`), ce || Ce(K, "GET", {}).then(({ data: me }) => {
|
|
2166
|
+
var he;
|
|
2167
|
+
if ((he = v.formItemAttributes) != null && he.selectAttributes) {
|
|
2168
|
+
let ye = [];
|
|
2169
|
+
Array.isArray(me.data) ? ye = me.data : me.data.list && Array.isArray(me.data.list) && (ye = me.data.list), v.formItemAttributes.selectAttributes.options = ye.map((Q) => ({
|
|
2170
|
+
value: se ? Q[se] : Q.value,
|
|
2171
|
+
label: X ? Q[X] : Q.label
|
|
2172
|
+
}));
|
|
2173
|
+
}
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2071
2176
|
}
|
|
2072
2177
|
}
|
|
2073
2178
|
});
|
|
2074
2179
|
}
|
|
2075
2180
|
function T() {
|
|
2076
|
-
var
|
|
2077
|
-
console.log(
|
|
2078
|
-
|
|
2181
|
+
var _;
|
|
2182
|
+
console.log(`Refresh form view data: id = ${s.id}, model = `, s.model), L(), f.value = (_ = s.model.useI18n) != null ? _ : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
|
|
2183
|
+
ze(r), Object.assign(r, h.data), s.model.fields.forEach((v) => {
|
|
2184
|
+
v.formItemAttributes && v.formItemAttributes.type === "select" && r[v.prop] !== void 0 && te(v);
|
|
2185
|
+
}), l.value = !1;
|
|
2079
2186
|
}));
|
|
2080
2187
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return new Promise((
|
|
2083
|
-
var
|
|
2084
|
-
((u = (
|
|
2085
|
-
let
|
|
2086
|
-
s.model.api &&
|
|
2087
|
-
var
|
|
2088
|
-
|
|
2188
|
+
function H() {
|
|
2189
|
+
return new Promise((_, h) => {
|
|
2190
|
+
var I, u, c, k;
|
|
2191
|
+
((u = (I = s.model.formConfig) == null ? void 0 : I.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (k = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : k.beforeSubmit(r));
|
|
2192
|
+
let v = s.mode === "create" ? "POST" : "PUT";
|
|
2193
|
+
s.model.api && Ce(s.model.api, v, r).then(({ data: O }) => {
|
|
2194
|
+
var z, D, F, U;
|
|
2195
|
+
O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((D = (z = s.model.formConfig) == null ? void 0 : z.functions) == null ? void 0 : D.afterSubmit) !== void 0 && ((U = (F = s.model.formConfig) == null ? void 0 : F.functions) == null || U.afterSubmit(O.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
|
|
2089
2196
|
});
|
|
2090
2197
|
});
|
|
2091
2198
|
}
|
|
2092
|
-
function
|
|
2093
|
-
var
|
|
2094
|
-
(
|
|
2199
|
+
function L() {
|
|
2200
|
+
var _;
|
|
2201
|
+
console.log("FormView.reset: begin"), (_ = a.value) == null || _.resetFields();
|
|
2095
2202
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return
|
|
2203
|
+
function ee(_) {
|
|
2204
|
+
return _.label ? f ? n(_.label) : _.label : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
|
|
2098
2205
|
}
|
|
2099
|
-
function
|
|
2100
|
-
var
|
|
2101
|
-
if (
|
|
2102
|
-
if (
|
|
2103
|
-
const c = (
|
|
2206
|
+
function B(_) {
|
|
2207
|
+
var h, v, I, u;
|
|
2208
|
+
if (_) {
|
|
2209
|
+
if (M(_, "select")) {
|
|
2210
|
+
const c = (v = (h = _.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : v.transformValue;
|
|
2104
2211
|
if (c)
|
|
2105
|
-
return c(r[
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2108
|
-
return r[
|
|
2212
|
+
return c(r[_.prop]);
|
|
2213
|
+
const k = (u = (I = _.formItemAttributes) == null ? void 0 : I.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2214
|
+
if (k)
|
|
2215
|
+
return r[k];
|
|
2109
2216
|
}
|
|
2110
|
-
return r[
|
|
2217
|
+
return r[_.prop];
|
|
2111
2218
|
}
|
|
2112
2219
|
}
|
|
2113
|
-
function
|
|
2114
|
-
var
|
|
2115
|
-
return ((
|
|
2220
|
+
function ie(_) {
|
|
2221
|
+
var h;
|
|
2222
|
+
return ((h = _.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
|
|
2116
2223
|
}
|
|
2117
|
-
function
|
|
2118
|
-
var
|
|
2119
|
-
const
|
|
2120
|
-
switch (
|
|
2224
|
+
function G(_, h) {
|
|
2225
|
+
var I, u;
|
|
2226
|
+
const v = (u = (I = h.formItemAttributes) == null ? void 0 : I.type) != null ? u : "input";
|
|
2227
|
+
switch (_) {
|
|
2121
2228
|
case "input":
|
|
2122
|
-
return s.mode === "view" ? !1 :
|
|
2229
|
+
return s.mode === "view" ? !1 : v === "input" || v === "password";
|
|
2123
2230
|
case "select":
|
|
2124
2231
|
return !0;
|
|
2125
2232
|
default:
|
|
2126
|
-
return console.log("Error: unrecognized form component type: ",
|
|
2233
|
+
return console.log("Error: unrecognized form component type: ", _), !0;
|
|
2127
2234
|
}
|
|
2128
2235
|
}
|
|
2129
|
-
function
|
|
2130
|
-
var
|
|
2131
|
-
return ((
|
|
2236
|
+
function M(_, h) {
|
|
2237
|
+
var v;
|
|
2238
|
+
return ((v = _.formItemAttributes) == null ? void 0 : v.type) === h;
|
|
2132
2239
|
}
|
|
2133
|
-
function
|
|
2134
|
-
var
|
|
2135
|
-
for (let
|
|
2136
|
-
const
|
|
2137
|
-
if (!(!
|
|
2138
|
-
const u =
|
|
2240
|
+
function te(_) {
|
|
2241
|
+
var h;
|
|
2242
|
+
for (let v of s.model.fields) {
|
|
2243
|
+
const I = (h = v.formItemAttributes) == null ? void 0 : h.selectAttributes;
|
|
2244
|
+
if (!(!v.formItemAttributes || v.formItemAttributes.type !== "select" || !I || !I.queryParamValueField) && I.queryParamValueField === _.prop) {
|
|
2245
|
+
const u = I.api;
|
|
2139
2246
|
if (u) {
|
|
2140
2247
|
let c = u;
|
|
2141
|
-
const
|
|
2142
|
-
|
|
2143
|
-
if (
|
|
2144
|
-
let
|
|
2145
|
-
Array.isArray(
|
|
2146
|
-
value:
|
|
2147
|
-
label:
|
|
2248
|
+
const k = I.queryParamName;
|
|
2249
|
+
k && (c = `${c}?${k}=${r[I.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data: O }) => {
|
|
2250
|
+
if (I) {
|
|
2251
|
+
let z = [];
|
|
2252
|
+
Array.isArray(O.data) ? z = O.data : O.data.list && Array.isArray(O.data.list) && (z = O.data.list), I.options = z.map((D) => ({
|
|
2253
|
+
value: I.valueMappingField ? D[I.valueMappingField] : D.value,
|
|
2254
|
+
label: I.labelMappingField ? D[I.labelMappingField] : D.label
|
|
2148
2255
|
}));
|
|
2149
2256
|
}
|
|
2150
2257
|
});
|
|
@@ -2152,73 +2259,105 @@ const Be = (e) => {
|
|
|
2152
2259
|
}
|
|
2153
2260
|
}
|
|
2154
2261
|
}
|
|
2155
|
-
return
|
|
2156
|
-
T();
|
|
2157
|
-
}), t({
|
|
2262
|
+
return t({
|
|
2158
2263
|
refresh: T,
|
|
2159
|
-
reset:
|
|
2160
|
-
submit:
|
|
2264
|
+
reset: L,
|
|
2265
|
+
submit: H,
|
|
2161
2266
|
formData: r
|
|
2162
|
-
}), (
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2267
|
+
}), (_, h) => {
|
|
2268
|
+
const v = E("el-input"), I = E("el-switch"), u = E("el-date-picker"), c = E("el-time-picker"), k = E("el-option"), O = E("el-select"), z = E("el-input-number"), D = E("el-form-item"), F = E("el-form"), U = Gt("loading");
|
|
2269
|
+
return jt((p(), P(F, {
|
|
2165
2270
|
ref_key: "formRef",
|
|
2166
2271
|
ref: a,
|
|
2167
2272
|
model: r,
|
|
2168
2273
|
rules: i,
|
|
2274
|
+
"validate-on-rule-change": !1,
|
|
2169
2275
|
"label-width": "auto",
|
|
2170
2276
|
"label-position": "left",
|
|
2171
2277
|
"require-asterisk-position": "right",
|
|
2172
2278
|
inline: !s.disableInline
|
|
2173
2279
|
}, {
|
|
2174
|
-
default:
|
|
2175
|
-
(p(!0),
|
|
2280
|
+
default: d(() => [
|
|
2281
|
+
(p(!0), V(le, null, fe(C.value, (b) => (p(), P(D, {
|
|
2176
2282
|
class: "form-item",
|
|
2177
|
-
style:
|
|
2178
|
-
prop:
|
|
2179
|
-
label:
|
|
2283
|
+
style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2284
|
+
prop: b.prop,
|
|
2285
|
+
label: ee(b)
|
|
2180
2286
|
}, {
|
|
2181
|
-
default:
|
|
2182
|
-
var
|
|
2287
|
+
default: d(() => {
|
|
2288
|
+
var Y, g, x, w, W, q, oe, ne, se, X, K, re, ce, me, he, ye;
|
|
2183
2289
|
return [
|
|
2184
|
-
|
|
2290
|
+
G("input", b) ? (p(), P(v, {
|
|
2185
2291
|
key: 0,
|
|
2186
|
-
type:
|
|
2187
|
-
modelValue: r[
|
|
2188
|
-
"onUpdate:modelValue": (
|
|
2189
|
-
placeholder: (
|
|
2190
|
-
disabled:
|
|
2191
|
-
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
2192
|
-
|
|
2193
|
-
|
|
2292
|
+
type: M(b, "password") ? "password" : "text",
|
|
2293
|
+
modelValue: r[b.prop],
|
|
2294
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2295
|
+
placeholder: (Y = b.formItemAttributes) == null ? void 0 : Y.placeholder,
|
|
2296
|
+
disabled: ie(b)
|
|
2297
|
+
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : j("", !0),
|
|
2298
|
+
y(b) ? (p(), V("span", Js, R(B(b)), 1)) : j("", !0),
|
|
2299
|
+
M(b, "switch") ? (p(), P(I, {
|
|
2194
2300
|
key: 2,
|
|
2195
|
-
modelValue: r[
|
|
2196
|
-
"onUpdate:modelValue": (
|
|
2197
|
-
|
|
2198
|
-
|
|
2301
|
+
modelValue: r[b.prop],
|
|
2302
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2303
|
+
disabled: _.mode === "view"
|
|
2304
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
|
|
2305
|
+
M(b, "date") ? (p(), P(u, {
|
|
2199
2306
|
key: 3,
|
|
2307
|
+
style: { width: "100%" },
|
|
2200
2308
|
type: "date",
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2309
|
+
"value-format": "YYYY-MM-DD",
|
|
2310
|
+
modelValue: r[b.prop],
|
|
2311
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2312
|
+
disabled: _.mode === "view"
|
|
2313
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
|
|
2314
|
+
M(b, "time") ? (p(), P(c, {
|
|
2205
2315
|
key: 4,
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2316
|
+
style: { width: "100%" },
|
|
2317
|
+
modelValue: r[b.prop],
|
|
2318
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2319
|
+
disabled: _.mode === "view"
|
|
2320
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
|
|
2321
|
+
M(b, "datetime") ? (p(), P(u, {
|
|
2322
|
+
key: 5,
|
|
2323
|
+
style: { width: "100%" },
|
|
2324
|
+
type: "datetime",
|
|
2325
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
2326
|
+
modelValue: r[b.prop],
|
|
2327
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2328
|
+
disabled: _.mode === "view"
|
|
2329
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
|
|
2330
|
+
M(b, "select") && _.mode !== "view" ? (p(), P(O, {
|
|
2331
|
+
key: 6,
|
|
2332
|
+
filterable: (x = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes) == null ? void 0 : x.allowCreate,
|
|
2333
|
+
"allow-create": (W = (w = b.formItemAttributes) == null ? void 0 : w.selectAttributes) == null ? void 0 : W.allowCreate,
|
|
2334
|
+
"default-first-option": (oe = (q = b.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : oe.allowCreate,
|
|
2335
|
+
modelValue: r[b.prop],
|
|
2336
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2337
|
+
disabled: ie(b),
|
|
2338
|
+
onChange: (Q) => te(b)
|
|
2210
2339
|
}, {
|
|
2211
|
-
default:
|
|
2212
|
-
var
|
|
2340
|
+
default: d(() => {
|
|
2341
|
+
var Q, Ie;
|
|
2213
2342
|
return [
|
|
2214
|
-
(p(!0),
|
|
2215
|
-
value:
|
|
2216
|
-
label:
|
|
2343
|
+
(p(!0), V(le, null, fe((Ie = (Q = b.formItemAttributes) == null ? void 0 : Q.selectAttributes) == null ? void 0 : Ie.options, (Xe) => (p(), P(k, {
|
|
2344
|
+
value: Xe.value,
|
|
2345
|
+
label: Xe.label
|
|
2217
2346
|
}, null, 8, ["value", "label"]))), 256))
|
|
2218
2347
|
];
|
|
2219
2348
|
}),
|
|
2220
2349
|
_: 2
|
|
2221
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) :
|
|
2350
|
+
}, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : j("", !0),
|
|
2351
|
+
M(b, "input-number") && _.mode !== "view" ? (p(), P(z, {
|
|
2352
|
+
key: 7,
|
|
2353
|
+
style: { width: "100%" },
|
|
2354
|
+
modelValue: r[b.prop],
|
|
2355
|
+
"onUpdate:modelValue": (Q) => r[b.prop] = Q,
|
|
2356
|
+
min: (X = (se = (ne = b.formItemAttributes) == null ? void 0 : ne.inputNumber) == null ? void 0 : se.min) != null ? X : Number.NEGATIVE_INFINITY,
|
|
2357
|
+
max: (ce = (re = (K = b.formItemAttributes) == null ? void 0 : K.inputNumber) == null ? void 0 : re.max) != null ? ce : Number.POSITIVE_INFINITY,
|
|
2358
|
+
step: (ye = (he = (me = b.formItemAttributes) == null ? void 0 : me.inputNumber) == null ? void 0 : he.step) != null ? ye : 1,
|
|
2359
|
+
"value-on-clear": -10
|
|
2360
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : j("", !0)
|
|
2222
2361
|
];
|
|
2223
2362
|
}),
|
|
2224
2363
|
_: 2
|
|
@@ -2226,14 +2365,14 @@ const Be = (e) => {
|
|
|
2226
2365
|
]),
|
|
2227
2366
|
_: 1
|
|
2228
2367
|
}, 8, ["model", "rules", "inline"])), [
|
|
2229
|
-
[
|
|
2368
|
+
[U, l.value]
|
|
2230
2369
|
]);
|
|
2231
2370
|
};
|
|
2232
2371
|
}
|
|
2233
|
-
}),
|
|
2372
|
+
}), _o = /* @__PURE__ */ ve(Ks, [["__scopeId", "data-v-770916eb"]]), Qs = { class: "console-dialog__body" }, Xs = {
|
|
2234
2373
|
key: 0,
|
|
2235
2374
|
class: "process-view"
|
|
2236
|
-
},
|
|
2375
|
+
}, Zs = { class: "operation-button-wrapper" }, go = /* @__PURE__ */ Se({
|
|
2237
2376
|
__name: "FormDialog",
|
|
2238
2377
|
props: {
|
|
2239
2378
|
id: {},
|
|
@@ -2245,62 +2384,62 @@ const Be = (e) => {
|
|
|
2245
2384
|
},
|
|
2246
2385
|
emits: ["update:visible", "update:id"],
|
|
2247
2386
|
setup(e, { expose: t, emit: o }) {
|
|
2248
|
-
const { t: n } =
|
|
2249
|
-
|
|
2387
|
+
const { t: n } = Qe(), s = e, r = A(0), l = o, a = A();
|
|
2388
|
+
Ee(() => s.visible, () => {
|
|
2250
2389
|
s.visible && r.value++;
|
|
2251
2390
|
});
|
|
2252
2391
|
function i() {
|
|
2253
2392
|
a.value && a.value.refresh();
|
|
2254
2393
|
}
|
|
2255
|
-
function
|
|
2394
|
+
function f() {
|
|
2256
2395
|
l("update:visible", !1), a.value.reset();
|
|
2257
2396
|
}
|
|
2258
|
-
function
|
|
2397
|
+
function y() {
|
|
2259
2398
|
a.value.submit();
|
|
2260
2399
|
}
|
|
2261
2400
|
return t({
|
|
2262
|
-
close:
|
|
2401
|
+
close: f,
|
|
2263
2402
|
refresh: i
|
|
2264
|
-
}), (
|
|
2265
|
-
const T =
|
|
2266
|
-
return p(),
|
|
2403
|
+
}), (C, N) => {
|
|
2404
|
+
const T = E("el-step"), H = E("el-steps"), L = E("el-button"), ee = E("el-dialog");
|
|
2405
|
+
return p(), P(ee, {
|
|
2267
2406
|
class: "console-dialog",
|
|
2268
2407
|
title: "Edit",
|
|
2269
2408
|
"align-center": "",
|
|
2270
2409
|
"model-value": s.visible,
|
|
2271
2410
|
width: "800px",
|
|
2272
|
-
onClose:
|
|
2411
|
+
onClose: f
|
|
2273
2412
|
}, {
|
|
2274
|
-
footer:
|
|
2275
|
-
var
|
|
2413
|
+
footer: d(() => {
|
|
2414
|
+
var B;
|
|
2276
2415
|
return [
|
|
2277
|
-
|
|
2416
|
+
S("div", {
|
|
2278
2417
|
class: "dialog-footer",
|
|
2279
|
-
style:
|
|
2418
|
+
style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2280
2419
|
}, [
|
|
2281
|
-
|
|
2282
|
-
(p(!0),
|
|
2283
|
-
onClick: (
|
|
2420
|
+
S("div", Zs, [
|
|
2421
|
+
(p(!0), V(le, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ie) => (p(), P(L, {
|
|
2422
|
+
onClick: (G) => ie.function(a.value.formData)
|
|
2284
2423
|
}, {
|
|
2285
|
-
default:
|
|
2286
|
-
|
|
2424
|
+
default: d(() => [
|
|
2425
|
+
J(R($(n)(ie.label)), 1)
|
|
2287
2426
|
]),
|
|
2288
2427
|
_: 2
|
|
2289
2428
|
}, 1032, ["onClick"]))), 256))
|
|
2290
2429
|
]),
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
default:
|
|
2294
|
-
|
|
2430
|
+
S("div", null, [
|
|
2431
|
+
m(L, { onClick: f }, {
|
|
2432
|
+
default: d(() => [
|
|
2433
|
+
J(R($(n)("common.basic.cancel")), 1)
|
|
2295
2434
|
]),
|
|
2296
2435
|
_: 1
|
|
2297
2436
|
}),
|
|
2298
|
-
|
|
2437
|
+
m(L, {
|
|
2299
2438
|
type: "primary",
|
|
2300
|
-
onClick:
|
|
2439
|
+
onClick: y
|
|
2301
2440
|
}, {
|
|
2302
|
-
default:
|
|
2303
|
-
|
|
2441
|
+
default: d(() => [
|
|
2442
|
+
J(R($(n)("common.basic.save")), 1)
|
|
2304
2443
|
]),
|
|
2305
2444
|
_: 1
|
|
2306
2445
|
})
|
|
@@ -2308,11 +2447,11 @@ const Be = (e) => {
|
|
|
2308
2447
|
], 4)
|
|
2309
2448
|
];
|
|
2310
2449
|
}),
|
|
2311
|
-
default:
|
|
2312
|
-
|
|
2313
|
-
|
|
2450
|
+
default: d(() => [
|
|
2451
|
+
S("div", Qs, [
|
|
2452
|
+
m(_o, {
|
|
2314
2453
|
class: "form-view",
|
|
2315
|
-
style:
|
|
2454
|
+
style: je({ width: C.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2316
2455
|
ref_key: "formViewRef",
|
|
2317
2456
|
ref: a,
|
|
2318
2457
|
id: s.id,
|
|
@@ -2320,104 +2459,119 @@ const Be = (e) => {
|
|
|
2320
2459
|
mode: s.mode,
|
|
2321
2460
|
model: s.model,
|
|
2322
2461
|
afterSubmitFunc: s.afterSubmitFunc,
|
|
2323
|
-
closeDialogFunc:
|
|
2462
|
+
closeDialogFunc: f,
|
|
2324
2463
|
disableInline: s.showProcess
|
|
2325
2464
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2326
|
-
|
|
2327
|
-
N[0] || (N[0] =
|
|
2328
|
-
|
|
2465
|
+
C.showProcess ? (p(), V("div", Xs, [
|
|
2466
|
+
N[0] || (N[0] = S("h1", null, "流程动态", -1)),
|
|
2467
|
+
m(H, {
|
|
2329
2468
|
style: { height: "90%" },
|
|
2330
2469
|
direction: "vertical",
|
|
2331
2470
|
active: 1
|
|
2332
2471
|
}, {
|
|
2333
|
-
default:
|
|
2334
|
-
|
|
2335
|
-
|
|
2472
|
+
default: d(() => [
|
|
2473
|
+
m(T, { title: "Step 1" }),
|
|
2474
|
+
m(T, { title: "Step 2" })
|
|
2336
2475
|
]),
|
|
2337
2476
|
_: 1
|
|
2338
2477
|
})
|
|
2339
|
-
])) :
|
|
2478
|
+
])) : j("", !0)
|
|
2340
2479
|
])
|
|
2341
2480
|
]),
|
|
2342
2481
|
_: 1
|
|
2343
2482
|
}, 8, ["model-value"]);
|
|
2344
2483
|
};
|
|
2345
2484
|
}
|
|
2346
|
-
}),
|
|
2485
|
+
}), er = {
|
|
2486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2487
|
+
width: "32",
|
|
2488
|
+
height: "32",
|
|
2489
|
+
class: "icon",
|
|
2490
|
+
viewBox: "0 0 1024 1024"
|
|
2491
|
+
};
|
|
2492
|
+
function tr(e, t) {
|
|
2493
|
+
return p(), V("svg", er, t[0] || (t[0] = [
|
|
2494
|
+
S("path", {
|
|
2495
|
+
fill: "#888a8d",
|
|
2496
|
+
d: "M192 672a16 16 0 0 1 16 16v128h604.992V688a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v160a64 64 0 0 1-56.512 63.552l-7.488.448H176a64 64 0 0 1-64-64V688a16 16 0 0 1 16-16zm268.032-505.664v2.56l-.128 13.248v89.024l.064 46.08V718.72A18.176 18.176 0 0 1 443.2 736h-62.08a18.176 18.176 0 0 1-17.216-16.768V334.464h-1.28l-130.432 129.28a16 16 0 0 1-22.592-.128l-.32-.256L164.544 416a16 16 0 0 1 .448-22.4l86.08-84.736a18.2 18.2 0 0 1 2.688-3.2l142.72-139.648c7.04-6.784 56.512-6.656 63.488.32zm184.832-5.312c9.152.448 16.512 7.68 17.216 16.768v384.704h1.344L793.792 433.28a16 16 0 0 1 22.592.128l.256.256 44.736 47.36a16 16 0 0 1-.448 22.4l-86.08 84.736a18.2 18.2 0 0 1-2.624 3.2l-142.72 139.648c-7.104 6.784-56.512 6.656-63.488-.32v-2.56l.064-13.312V579.84l-.064-17.28V178.304a18.176 18.176 0 0 1 16.768-17.216h62.08z"
|
|
2497
|
+
}, null, -1)
|
|
2498
|
+
]));
|
|
2499
|
+
}
|
|
2500
|
+
const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-buttons" }, rr = { class: "tool-buttons" }, ar = { key: 2 }, lr = /* @__PURE__ */ Se({
|
|
2347
2501
|
__name: "TableView",
|
|
2348
2502
|
props: {
|
|
2349
2503
|
model: {}
|
|
2350
2504
|
},
|
|
2351
2505
|
setup(e, { expose: t }) {
|
|
2352
|
-
const { t: o } =
|
|
2506
|
+
const { t: o } = at.global, n = e, s = de([]), r = de({
|
|
2353
2507
|
showPane: !0
|
|
2354
|
-
}), l =
|
|
2508
|
+
}), l = A(""), a = A(!0), i = A(!1), f = ct(), y = A(""), C = de([]), N = de([]), T = A(), H = A([]), L = A("create"), ee = A(!0), B = A(!1), ie = A(""), G = de({
|
|
2355
2509
|
pageSize: 10,
|
|
2356
2510
|
pageNo: 1,
|
|
2357
2511
|
totalElements: 0
|
|
2358
|
-
}),
|
|
2359
|
-
(
|
|
2360
|
-
var
|
|
2361
|
-
return ((
|
|
2512
|
+
}), M = Te(() => s.filter(
|
|
2513
|
+
(g) => {
|
|
2514
|
+
var x, w;
|
|
2515
|
+
return ((x = g.formItemAttributes) == null ? void 0 : x.type) !== "password" && g.visible !== !1 && ((w = g.tableColumnAttributes) == null ? void 0 : w.visible) !== !1;
|
|
2362
2516
|
}
|
|
2363
2517
|
));
|
|
2364
|
-
function
|
|
2365
|
-
var
|
|
2366
|
-
let
|
|
2367
|
-
const
|
|
2368
|
-
if (
|
|
2369
|
-
|
|
2370
|
-
else if (
|
|
2371
|
-
for (let
|
|
2372
|
-
if (
|
|
2373
|
-
|
|
2518
|
+
function te(g, x) {
|
|
2519
|
+
var oe, ne, se, X;
|
|
2520
|
+
let w = x.row[g.prop];
|
|
2521
|
+
const W = (ne = (oe = g.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ne.transformValue, q = (se = g.tableColumnAttributes) == null ? void 0 : se.transformValueMappings;
|
|
2522
|
+
if (W)
|
|
2523
|
+
w = W(w);
|
|
2524
|
+
else if (q && q.length > 0) {
|
|
2525
|
+
for (let K of q)
|
|
2526
|
+
if (w === K.value) {
|
|
2527
|
+
w = o(K.label);
|
|
2374
2528
|
break;
|
|
2375
2529
|
}
|
|
2376
|
-
} else if (((
|
|
2377
|
-
const
|
|
2378
|
-
if (
|
|
2379
|
-
if (
|
|
2380
|
-
|
|
2381
|
-
else if (
|
|
2382
|
-
for (let
|
|
2383
|
-
if (
|
|
2384
|
-
|
|
2530
|
+
} else if (((X = g.formItemAttributes) == null ? void 0 : X.type) === "select") {
|
|
2531
|
+
const K = g.formItemAttributes.selectAttributes;
|
|
2532
|
+
if (K) {
|
|
2533
|
+
if (K.viewModeLabelField)
|
|
2534
|
+
w = x.row[K.viewModeLabelField];
|
|
2535
|
+
else if (K.options && K.options.length > 0) {
|
|
2536
|
+
for (let re of K.options)
|
|
2537
|
+
if (re.value === x.row[g.prop]) {
|
|
2538
|
+
w = re.label;
|
|
2385
2539
|
break;
|
|
2386
2540
|
}
|
|
2387
2541
|
}
|
|
2388
2542
|
}
|
|
2389
2543
|
}
|
|
2390
|
-
return
|
|
2544
|
+
return w;
|
|
2391
2545
|
}
|
|
2392
|
-
function
|
|
2393
|
-
var
|
|
2394
|
-
return
|
|
2546
|
+
function _(g, x) {
|
|
2547
|
+
var w, W;
|
|
2548
|
+
return g.label ? o(g.label) : (W = (w = g.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : W.call(w, x.$index, x.row);
|
|
2395
2549
|
}
|
|
2396
|
-
function
|
|
2397
|
-
|
|
2550
|
+
function h(g) {
|
|
2551
|
+
ze(n.model), Object.assign(n.model, g);
|
|
2398
2552
|
}
|
|
2399
|
-
function
|
|
2400
|
-
var
|
|
2401
|
-
if (
|
|
2553
|
+
function v() {
|
|
2554
|
+
var x, w, W;
|
|
2555
|
+
if (ee.value = !0, !n.model || !n.model.api)
|
|
2402
2556
|
return;
|
|
2403
|
-
|
|
2404
|
-
let
|
|
2405
|
-
|
|
2406
|
-
const { list:
|
|
2407
|
-
|
|
2557
|
+
ze(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (W = n.model.useI18n) != null ? W : !0;
|
|
2558
|
+
let g = Ze({}, r.queryParams);
|
|
2559
|
+
g.pageSize = G.pageSize, g.pageNo = G.pageNo, g.search = y.value, Ce(n.model.api, "GET", g).then(({ data: q }) => {
|
|
2560
|
+
const { list: oe, totalCount: ne } = q.data;
|
|
2561
|
+
C.splice(0, C.length, ...oe), G.totalElements = ne, ee.value = !1;
|
|
2408
2562
|
});
|
|
2409
2563
|
}
|
|
2410
|
-
function
|
|
2411
|
-
var
|
|
2412
|
-
r.createPageRoutePath !== void 0 ?
|
|
2564
|
+
function I() {
|
|
2565
|
+
var g, x;
|
|
2566
|
+
r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (x = r.functions) == null || x.create() : (L.value = "create", ie.value = "", i.value = !0);
|
|
2413
2567
|
}
|
|
2414
|
-
function u(
|
|
2415
|
-
n.model.api &&
|
|
2416
|
-
|
|
2568
|
+
function u(g, x) {
|
|
2569
|
+
n.model.api && Ce(n.model.api, "DELETE", x.id).then(({ data: w }) => {
|
|
2570
|
+
w.code === 0 && (i.value = !1, v());
|
|
2417
2571
|
});
|
|
2418
2572
|
}
|
|
2419
2573
|
function c() {
|
|
2420
|
-
|
|
2574
|
+
Et.confirm(
|
|
2421
2575
|
"The selected items will be deleted. Continue?",
|
|
2422
2576
|
o("common.table.warning"),
|
|
2423
2577
|
{
|
|
@@ -2426,13 +2580,13 @@ const Be = (e) => {
|
|
|
2426
2580
|
type: "warning"
|
|
2427
2581
|
}
|
|
2428
2582
|
).then(() => {
|
|
2429
|
-
var
|
|
2430
|
-
if (((
|
|
2431
|
-
(
|
|
2583
|
+
var g, x;
|
|
2584
|
+
if (((g = r.functions) == null ? void 0 : g.batchDelete) !== void 0)
|
|
2585
|
+
(x = r.functions) == null || x.batchDelete(H.value);
|
|
2432
2586
|
else {
|
|
2433
|
-
const
|
|
2434
|
-
|
|
2435
|
-
|
|
2587
|
+
const w = H.value.map((W) => W.id);
|
|
2588
|
+
be.delete(`${n.model.api}/${w.join(",")}`).then(({ data: W }) => {
|
|
2589
|
+
W.code === 0 && (i.value = !1, v());
|
|
2436
2590
|
});
|
|
2437
2591
|
}
|
|
2438
2592
|
T.value.clearSelection();
|
|
@@ -2440,407 +2594,570 @@ const Be = (e) => {
|
|
|
2440
2594
|
T.value.clearSelection();
|
|
2441
2595
|
});
|
|
2442
2596
|
}
|
|
2443
|
-
function
|
|
2444
|
-
|
|
2597
|
+
function k(g) {
|
|
2598
|
+
G.pageSize = g, v();
|
|
2445
2599
|
}
|
|
2446
|
-
function
|
|
2447
|
-
|
|
2600
|
+
function O(g) {
|
|
2601
|
+
G.pageNo = g, v();
|
|
2448
2602
|
}
|
|
2449
|
-
function
|
|
2450
|
-
r.editPageRoutePath !== void 0 ?
|
|
2603
|
+
function z(g, x) {
|
|
2604
|
+
r.editPageRoutePath !== void 0 ? f.push({
|
|
2451
2605
|
path: r.editPageRoutePath,
|
|
2452
2606
|
query: {
|
|
2453
|
-
id:
|
|
2607
|
+
id: x.id
|
|
2454
2608
|
}
|
|
2455
|
-
}) : (
|
|
2609
|
+
}) : (ie.value = x.id, L.value = "update", i.value = !0);
|
|
2456
2610
|
}
|
|
2457
|
-
function
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2611
|
+
function D() {
|
|
2612
|
+
var w;
|
|
2613
|
+
let g = ((w = n.model.api) != null && w.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
|
|
2614
|
+
const x = r.queryParams;
|
|
2615
|
+
x !== void 0 && Object.keys(x).length > 0 && (g += "?", Object.entries(r.queryParams).map((W) => {
|
|
2616
|
+
g += `${W[0]}=${W[1]}&`;
|
|
2617
|
+
})), window.open(g);
|
|
2463
2618
|
}
|
|
2464
|
-
function
|
|
2465
|
-
|
|
2619
|
+
function F(g) {
|
|
2620
|
+
H.value = g;
|
|
2466
2621
|
}
|
|
2467
|
-
function U(
|
|
2468
|
-
return
|
|
2622
|
+
function U(g) {
|
|
2623
|
+
return g.label ? a.value ? o(g.label) : g.label : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase();
|
|
2469
2624
|
}
|
|
2470
|
-
function b(
|
|
2471
|
-
|
|
2625
|
+
function b(g) {
|
|
2626
|
+
g ? (B.value = !0, N.splice(0, N.length, ...C), C.splice(0, C.length, ...H.value)) : (B.value = !1, C.splice(0, C.length, ...N));
|
|
2472
2627
|
}
|
|
2473
|
-
|
|
2474
|
-
|
|
2628
|
+
function Y() {
|
|
2629
|
+
var oe;
|
|
2630
|
+
if (H.value.length === 0) {
|
|
2631
|
+
Et.alert("Select rows before printing", "Print", {
|
|
2632
|
+
confirmButtonText: "OK"
|
|
2633
|
+
});
|
|
2634
|
+
return;
|
|
2635
|
+
}
|
|
2636
|
+
let g = "";
|
|
2637
|
+
M.value.forEach((ne) => {
|
|
2638
|
+
var se;
|
|
2639
|
+
g += `<th>${o((se = ne.label) != null ? se : "")}</th>`;
|
|
2640
|
+
});
|
|
2641
|
+
let x = "";
|
|
2642
|
+
H.value.forEach((ne) => {
|
|
2643
|
+
x += "<tr>", M.value.forEach((se) => {
|
|
2644
|
+
x += `<td>${ne[se.prop]}</td>`;
|
|
2645
|
+
}), x += "</tr>";
|
|
2646
|
+
});
|
|
2647
|
+
let w = `<table><tr>${g}</tr>${x}</table>`;
|
|
2648
|
+
const W = document.createElement("iframe");
|
|
2649
|
+
W.style.display = "none", document.body.appendChild(W);
|
|
2650
|
+
const q = W.contentDocument || ((oe = W.contentWindow) == null ? void 0 : oe.document);
|
|
2651
|
+
q == null || q.open(), q == null || q.write(`
|
|
2652
|
+
<!DOCTYPE html>
|
|
2653
|
+
<html>
|
|
2654
|
+
<head>
|
|
2655
|
+
<meta charset="UTF-8">
|
|
2656
|
+
<title>VanCone Print</title>
|
|
2657
|
+
<style>
|
|
2658
|
+
@media print {
|
|
2659
|
+
body * {
|
|
2660
|
+
visibility: hidden;
|
|
2661
|
+
}
|
|
2662
|
+
#print-container, #print-container * {
|
|
2663
|
+
visibility: visible;
|
|
2664
|
+
}
|
|
2665
|
+
#print-container {
|
|
2666
|
+
position: absolute;
|
|
2667
|
+
left: 0;
|
|
2668
|
+
top: 0;
|
|
2669
|
+
width: 100%;
|
|
2670
|
+
padding: 20px;
|
|
2671
|
+
box-sizing: border-box;
|
|
2672
|
+
}
|
|
2673
|
+
table {
|
|
2674
|
+
width: 100%;
|
|
2675
|
+
}
|
|
2676
|
+
table, tr, th, td {
|
|
2677
|
+
border: solid 1px #aaa;
|
|
2678
|
+
border-collapse: collapse;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
</style>
|
|
2682
|
+
</head>
|
|
2683
|
+
<body>
|
|
2684
|
+
<div id="print-container">
|
|
2685
|
+
${w}
|
|
2686
|
+
</div>
|
|
2687
|
+
<script>
|
|
2688
|
+
// 等待资源加载完成后打印
|
|
2689
|
+
window.onload = function() {
|
|
2690
|
+
window.print();
|
|
2691
|
+
// 打印完成后移除iframe
|
|
2692
|
+
setTimeout(() => {
|
|
2693
|
+
document.body.removeChild(document.getElementById('print-container'));
|
|
2694
|
+
window.close();
|
|
2695
|
+
}, 100);
|
|
2696
|
+
};
|
|
2697
|
+
<\/script>
|
|
2698
|
+
</body>
|
|
2699
|
+
</html>
|
|
2700
|
+
`), q == null || q.close();
|
|
2701
|
+
}
|
|
2702
|
+
return Ee(() => n.model, () => {
|
|
2703
|
+
v();
|
|
2475
2704
|
}, {
|
|
2476
2705
|
deep: !0,
|
|
2477
2706
|
immediate: !0
|
|
2478
2707
|
}), t({
|
|
2479
|
-
multipleSelection:
|
|
2480
|
-
refresh:
|
|
2481
|
-
updateConfigAndRefresh:
|
|
2482
|
-
}), (
|
|
2483
|
-
const
|
|
2484
|
-
return p(),
|
|
2485
|
-
class:
|
|
2708
|
+
multipleSelection: H,
|
|
2709
|
+
refresh: v,
|
|
2710
|
+
updateConfigAndRefresh: h
|
|
2711
|
+
}), (g, x) => {
|
|
2712
|
+
const w = E("el-checkbox"), W = E("el-badge"), q = E("el-button"), oe = E("el-dropdown-item"), ne = E("el-dropdown-menu"), se = E("el-dropdown"), X = E("el-icon"), K = E("el-tooltip"), re = E("el-input"), ce = E("el-table-column"), me = E("router-link"), he = E("el-tag"), ye = E("el-popconfirm"), Q = E("el-table"), Ie = E("el-pagination"), Xe = Gt("loading");
|
|
2713
|
+
return p(), V("div", {
|
|
2714
|
+
class: Lt({ "table-view-wrapper": r.showPane })
|
|
2486
2715
|
}, [
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
r.selectMode ? (p(),
|
|
2716
|
+
S("div", nr, [
|
|
2717
|
+
S("div", sr, [
|
|
2718
|
+
r.selectMode ? (p(), P(W, {
|
|
2490
2719
|
key: 0,
|
|
2491
|
-
value:
|
|
2720
|
+
value: H.value.length,
|
|
2492
2721
|
type: "primary",
|
|
2493
2722
|
class: "selected-badge"
|
|
2494
2723
|
}, {
|
|
2495
|
-
default:
|
|
2496
|
-
|
|
2724
|
+
default: d(() => [
|
|
2725
|
+
m(w, {
|
|
2497
2726
|
class: "selected-checkbox",
|
|
2498
2727
|
border: !0,
|
|
2499
|
-
label:
|
|
2728
|
+
label: $(o)("common.table.viewSelected"),
|
|
2500
2729
|
onChange: b
|
|
2501
2730
|
}, null, 8, ["label"])
|
|
2502
2731
|
]),
|
|
2503
2732
|
_: 1
|
|
2504
|
-
}, 8, ["value"])) :
|
|
2505
|
-
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(),
|
|
2733
|
+
}, 8, ["value"])) : j("", !0),
|
|
2734
|
+
!r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), P(q, {
|
|
2506
2735
|
key: 1,
|
|
2507
2736
|
type: "primary",
|
|
2508
|
-
onClick:
|
|
2737
|
+
onClick: I
|
|
2509
2738
|
}, {
|
|
2510
|
-
default:
|
|
2511
|
-
var
|
|
2739
|
+
default: d(() => {
|
|
2740
|
+
var pe, Z;
|
|
2512
2741
|
return [
|
|
2513
|
-
|
|
2742
|
+
J(R(((pe = r.labels) == null ? void 0 : pe.create) != null ? $(o)((Z = r.labels) == null ? void 0 : Z.create) : $(o)("common.table.create")), 1)
|
|
2514
2743
|
];
|
|
2515
2744
|
}),
|
|
2516
2745
|
_: 1
|
|
2517
|
-
})) :
|
|
2518
|
-
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(),
|
|
2746
|
+
})) : j("", !0),
|
|
2747
|
+
!r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), P(q, {
|
|
2519
2748
|
key: 2,
|
|
2520
|
-
disabled:
|
|
2749
|
+
disabled: H.value.length == 0,
|
|
2521
2750
|
type: "danger",
|
|
2522
2751
|
plain: "",
|
|
2523
2752
|
onClick: c
|
|
2524
2753
|
}, {
|
|
2525
|
-
default:
|
|
2526
|
-
var
|
|
2754
|
+
default: d(() => {
|
|
2755
|
+
var pe, Z;
|
|
2527
2756
|
return [
|
|
2528
|
-
|
|
2757
|
+
J(R(((pe = r.labels) == null ? void 0 : pe.delete) != null ? $(o)((Z = r.labels) == null ? void 0 : Z.delete) : $(o)("common.table.delete")), 1)
|
|
2529
2758
|
];
|
|
2530
2759
|
}),
|
|
2531
2760
|
_: 1
|
|
2532
|
-
}, 8, ["disabled"])) :
|
|
2533
|
-
|
|
2534
|
-
icon:
|
|
2535
|
-
|
|
2761
|
+
}, 8, ["disabled"])) : j("", !0),
|
|
2762
|
+
m(q, {
|
|
2763
|
+
icon: $(Ht),
|
|
2764
|
+
style: { width: "28px" },
|
|
2765
|
+
onClick: v
|
|
2536
2766
|
}, null, 8, ["icon"]),
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
content: k(o)(r.tooltip),
|
|
2541
|
-
placement: "right"
|
|
2767
|
+
m(se, {
|
|
2768
|
+
placement: "bottom-start",
|
|
2769
|
+
trigger: "click"
|
|
2542
2770
|
}, {
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
default:
|
|
2546
|
-
|
|
2771
|
+
dropdown: d(() => [
|
|
2772
|
+
m(ne, null, {
|
|
2773
|
+
default: d(() => [
|
|
2774
|
+
m(oe, {
|
|
2775
|
+
icon: $(Ao),
|
|
2776
|
+
disabled: !0
|
|
2777
|
+
}, {
|
|
2778
|
+
default: d(() => x[3] || (x[3] = [
|
|
2779
|
+
J("导入")
|
|
2780
|
+
])),
|
|
2781
|
+
_: 1
|
|
2782
|
+
}, 8, ["icon"]),
|
|
2783
|
+
m(oe, {
|
|
2784
|
+
icon: $(Ot),
|
|
2785
|
+
divided: "",
|
|
2786
|
+
disabled: !0
|
|
2787
|
+
}, {
|
|
2788
|
+
default: d(() => x[4] || (x[4] = [
|
|
2789
|
+
J("导出选中内容")
|
|
2790
|
+
])),
|
|
2791
|
+
_: 1
|
|
2792
|
+
}, 8, ["icon"]),
|
|
2793
|
+
m(oe, {
|
|
2794
|
+
icon: $(Ot),
|
|
2795
|
+
onClick: D
|
|
2796
|
+
}, {
|
|
2797
|
+
default: d(() => x[5] || (x[5] = [
|
|
2798
|
+
J("导出查询结果")
|
|
2799
|
+
])),
|
|
2800
|
+
_: 1
|
|
2801
|
+
}, 8, ["icon"]),
|
|
2802
|
+
m(oe, {
|
|
2803
|
+
icon: $(No),
|
|
2804
|
+
divided: "",
|
|
2805
|
+
disabled: !0
|
|
2806
|
+
}, {
|
|
2807
|
+
default: d(() => x[6] || (x[6] = [
|
|
2808
|
+
J("任务中心")
|
|
2809
|
+
])),
|
|
2810
|
+
_: 1
|
|
2811
|
+
}, 8, ["icon"])
|
|
2812
|
+
]),
|
|
2813
|
+
_: 1
|
|
2814
|
+
})
|
|
2815
|
+
]),
|
|
2816
|
+
default: d(() => [
|
|
2817
|
+
m(q, { style: { width: "28px" } }, {
|
|
2818
|
+
icon: d(() => [
|
|
2819
|
+
m($(or))
|
|
2547
2820
|
]),
|
|
2548
2821
|
_: 1
|
|
2549
2822
|
})
|
|
2550
2823
|
]),
|
|
2551
2824
|
_: 1
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
key: 0,
|
|
2557
|
-
class: "button-export",
|
|
2558
|
-
onClick: B
|
|
2825
|
+
}),
|
|
2826
|
+
m(se, {
|
|
2827
|
+
placement: "bottom-start",
|
|
2828
|
+
trigger: "click"
|
|
2559
2829
|
}, {
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
default:
|
|
2563
|
-
|
|
2830
|
+
dropdown: d(() => [
|
|
2831
|
+
m(ne, null, {
|
|
2832
|
+
default: d(() => [
|
|
2833
|
+
m(oe, {
|
|
2834
|
+
icon: $(Mo),
|
|
2835
|
+
onClick: Y
|
|
2836
|
+
}, {
|
|
2837
|
+
default: d(() => x[7] || (x[7] = [
|
|
2838
|
+
J("打印")
|
|
2839
|
+
])),
|
|
2840
|
+
_: 1
|
|
2841
|
+
}, 8, ["icon"]),
|
|
2842
|
+
m(oe, {
|
|
2843
|
+
icon: $(Uo),
|
|
2844
|
+
disabled: !0
|
|
2845
|
+
}, {
|
|
2846
|
+
default: d(() => x[8] || (x[8] = [
|
|
2847
|
+
J("表格设置")
|
|
2848
|
+
])),
|
|
2849
|
+
_: 1
|
|
2850
|
+
}, 8, ["icon"])
|
|
2564
2851
|
]),
|
|
2565
2852
|
_: 1
|
|
2566
2853
|
})
|
|
2567
2854
|
]),
|
|
2855
|
+
default: d(() => [
|
|
2856
|
+
m(q, {
|
|
2857
|
+
icon: $(To),
|
|
2858
|
+
style: { width: "28px" }
|
|
2859
|
+
}, null, 8, ["icon"])
|
|
2860
|
+
]),
|
|
2568
2861
|
_: 1
|
|
2569
|
-
})
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2862
|
+
}),
|
|
2863
|
+
r.tooltip ? (p(), P(K, {
|
|
2864
|
+
key: 3,
|
|
2865
|
+
effect: "dark",
|
|
2866
|
+
content: $(o)(r.tooltip),
|
|
2867
|
+
placement: "right"
|
|
2574
2868
|
}, {
|
|
2575
|
-
|
|
2576
|
-
|
|
2869
|
+
default: d(() => [
|
|
2870
|
+
m(X, { style: { color: "#8ba74f" } }, {
|
|
2871
|
+
default: d(() => [
|
|
2872
|
+
m($(Do))
|
|
2873
|
+
]),
|
|
2874
|
+
_: 1
|
|
2875
|
+
})
|
|
2876
|
+
]),
|
|
2877
|
+
_: 1
|
|
2878
|
+
}, 8, ["content"])) : j("", !0)
|
|
2879
|
+
]),
|
|
2880
|
+
S("div", rr, [
|
|
2881
|
+
m(re, {
|
|
2882
|
+
placeholder: `${$(o)("common.table.search")}...`,
|
|
2883
|
+
modelValue: y.value,
|
|
2884
|
+
"onUpdate:modelValue": x[0] || (x[0] = (pe) => y.value = pe)
|
|
2885
|
+
}, {
|
|
2886
|
+
append: d(() => [
|
|
2887
|
+
m(q, {
|
|
2577
2888
|
style: { "margin-left": "-20px" },
|
|
2578
|
-
icon:
|
|
2579
|
-
onClick:
|
|
2889
|
+
icon: $(zt),
|
|
2890
|
+
onClick: v
|
|
2580
2891
|
}, null, 8, ["icon"])
|
|
2581
2892
|
]),
|
|
2582
2893
|
_: 1
|
|
2583
|
-
}, 8, ["placeholder", "modelValue"])
|
|
2894
|
+
}, 8, ["placeholder", "modelValue"]),
|
|
2895
|
+
m(q, { type: "text" }, {
|
|
2896
|
+
default: d(() => x[9] || (x[9] = [
|
|
2897
|
+
J("高级搜索")
|
|
2898
|
+
])),
|
|
2899
|
+
_: 1
|
|
2900
|
+
})
|
|
2584
2901
|
])
|
|
2585
2902
|
]),
|
|
2586
|
-
|
|
2903
|
+
jt((p(), P(Q, {
|
|
2587
2904
|
border: !0,
|
|
2588
2905
|
ref_key: "tableRef",
|
|
2589
2906
|
ref: T,
|
|
2590
|
-
data:
|
|
2591
|
-
onSelectionChange:
|
|
2907
|
+
data: C,
|
|
2908
|
+
onSelectionChange: F,
|
|
2592
2909
|
class: "table"
|
|
2593
2910
|
}, {
|
|
2594
|
-
default:
|
|
2595
|
-
var
|
|
2911
|
+
default: d(() => {
|
|
2912
|
+
var pe;
|
|
2596
2913
|
return [
|
|
2597
|
-
r.readOnly ?
|
|
2914
|
+
r.readOnly ? j("", !0) : (p(), P(ce, {
|
|
2598
2915
|
key: 0,
|
|
2599
2916
|
type: "selection",
|
|
2600
2917
|
width: "50"
|
|
2601
2918
|
})),
|
|
2602
|
-
(p(!0),
|
|
2603
|
-
var
|
|
2604
|
-
return p(),
|
|
2605
|
-
prop:
|
|
2606
|
-
label: U(
|
|
2607
|
-
width: (
|
|
2919
|
+
(p(!0), V(le, null, fe(M.value, (Z) => {
|
|
2920
|
+
var Oe;
|
|
2921
|
+
return p(), P(ce, {
|
|
2922
|
+
prop: Z.prop,
|
|
2923
|
+
label: U(Z),
|
|
2924
|
+
width: (Oe = Z.tableColumnAttributes) == null ? void 0 : Oe.width,
|
|
2608
2925
|
"show-overflow-tooltip": ""
|
|
2609
2926
|
}, {
|
|
2610
|
-
default:
|
|
2611
|
-
var
|
|
2927
|
+
default: d((Ve) => {
|
|
2928
|
+
var Ae, qe, St;
|
|
2612
2929
|
return [
|
|
2613
|
-
(
|
|
2930
|
+
(Ae = Z.tableColumnAttributes) != null && Ae.link ? (p(), P(me, {
|
|
2614
2931
|
key: 0,
|
|
2615
2932
|
class: "router-link",
|
|
2616
|
-
to: `/${l.value}/detail?id=${
|
|
2933
|
+
to: `/${l.value}/detail?id=${Ve.row.id}`
|
|
2617
2934
|
}, {
|
|
2618
|
-
default:
|
|
2619
|
-
|
|
2935
|
+
default: d(() => [
|
|
2936
|
+
S("span", null, R(te(Z, Ve)), 1)
|
|
2620
2937
|
]),
|
|
2621
2938
|
_: 2
|
|
2622
|
-
}, 1032, ["to"])) : (
|
|
2939
|
+
}, 1032, ["to"])) : (qe = Z.tableColumnAttributes) != null && qe.routerLink ? (p(), P(me, {
|
|
2623
2940
|
key: 1,
|
|
2624
2941
|
class: "router-link",
|
|
2625
|
-
to:
|
|
2942
|
+
to: Z.tableColumnAttributes.routerLink.replace("{id}", Ve.row.id)
|
|
2626
2943
|
}, {
|
|
2627
|
-
default:
|
|
2628
|
-
|
|
2944
|
+
default: d(() => [
|
|
2945
|
+
S("span", null, R(te(Z, Ve)), 1)
|
|
2629
2946
|
]),
|
|
2630
2947
|
_: 2
|
|
2631
|
-
}, 1032, ["to"])) : (p(),
|
|
2632
|
-
((
|
|
2633
|
-
default:
|
|
2634
|
-
|
|
2948
|
+
}, 1032, ["to"])) : (p(), V("span", ar, R(te(Z, Ve)), 1)),
|
|
2949
|
+
((St = Z.tableColumnAttributes) == null ? void 0 : St.type) === "tag" ? (p(), P(he, { key: 3 }, {
|
|
2950
|
+
default: d(() => [
|
|
2951
|
+
J(R(Ve.row[Z.prop]), 1)
|
|
2635
2952
|
]),
|
|
2636
2953
|
_: 2
|
|
2637
|
-
}, 1024)) :
|
|
2954
|
+
}, 1024)) : j("", !0)
|
|
2638
2955
|
];
|
|
2639
2956
|
}),
|
|
2640
2957
|
_: 2
|
|
2641
2958
|
}, 1032, ["prop", "label", "width"]);
|
|
2642
2959
|
}), 256)),
|
|
2643
|
-
r.operations === void 0 && !((
|
|
2960
|
+
r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), P(ce, {
|
|
2644
2961
|
key: 1,
|
|
2645
|
-
label:
|
|
2962
|
+
label: $(o)("common.table.operation"),
|
|
2646
2963
|
width: "120"
|
|
2647
2964
|
}, {
|
|
2648
|
-
default:
|
|
2649
|
-
r.updatable !== !1 ? (p(),
|
|
2965
|
+
default: d((Z) => [
|
|
2966
|
+
r.updatable !== !1 ? (p(), P(q, {
|
|
2650
2967
|
key: 0,
|
|
2651
2968
|
link: "",
|
|
2652
2969
|
type: "primary",
|
|
2653
2970
|
class: "operation-button",
|
|
2654
|
-
onClick: (
|
|
2971
|
+
onClick: (Oe) => z(Z.$index, Z.row)
|
|
2655
2972
|
}, {
|
|
2656
|
-
default:
|
|
2657
|
-
|
|
2973
|
+
default: d(() => [
|
|
2974
|
+
J(R($(o)("common.table.edit")), 1)
|
|
2658
2975
|
]),
|
|
2659
2976
|
_: 2
|
|
2660
|
-
}, 1032, ["onClick"])) :
|
|
2661
|
-
|
|
2977
|
+
}, 1032, ["onClick"])) : j("", !0),
|
|
2978
|
+
m(ye, {
|
|
2662
2979
|
title: "Are you sure to delete this?",
|
|
2663
|
-
onConfirm: (
|
|
2980
|
+
onConfirm: (Oe) => u(Z.$index, Z.row)
|
|
2664
2981
|
}, {
|
|
2665
|
-
reference:
|
|
2666
|
-
r.deletable !== !1 ? (p(),
|
|
2982
|
+
reference: d(() => [
|
|
2983
|
+
r.deletable !== !1 ? (p(), P(q, {
|
|
2667
2984
|
key: 0,
|
|
2668
2985
|
link: "",
|
|
2669
2986
|
type: "primary",
|
|
2670
2987
|
class: "operation-button"
|
|
2671
2988
|
}, {
|
|
2672
|
-
default:
|
|
2673
|
-
|
|
2989
|
+
default: d(() => [
|
|
2990
|
+
J(R($(o)("common.table.delete")), 1)
|
|
2674
2991
|
]),
|
|
2675
2992
|
_: 1
|
|
2676
|
-
})) :
|
|
2993
|
+
})) : j("", !0)
|
|
2677
2994
|
]),
|
|
2678
2995
|
_: 2
|
|
2679
2996
|
}, 1032, ["onConfirm"])
|
|
2680
2997
|
]),
|
|
2681
2998
|
_: 1
|
|
2682
|
-
}, 8, ["label"])) :
|
|
2683
|
-
r.operations !== void 0 && !r.readOnly ? (p(),
|
|
2999
|
+
}, 8, ["label"])) : j("", !0),
|
|
3000
|
+
r.operations !== void 0 && !r.readOnly ? (p(), P(ce, {
|
|
2684
3001
|
key: 2,
|
|
2685
|
-
label:
|
|
3002
|
+
label: $(o)("common.table.operation"),
|
|
2686
3003
|
width: "120"
|
|
2687
3004
|
}, {
|
|
2688
|
-
default:
|
|
2689
|
-
(p(!0),
|
|
3005
|
+
default: d((Z) => [
|
|
3006
|
+
(p(!0), V(le, null, fe(r.operations, (Oe) => (p(), P(q, {
|
|
2690
3007
|
class: "operation-button",
|
|
2691
3008
|
link: "",
|
|
2692
3009
|
type: "primary",
|
|
2693
|
-
key:
|
|
2694
|
-
onClick: (
|
|
2695
|
-
var
|
|
2696
|
-
return ((
|
|
3010
|
+
key: Oe.label,
|
|
3011
|
+
onClick: (Ve) => {
|
|
3012
|
+
var Ae, qe;
|
|
3013
|
+
return ((qe = (Ae = Oe.functions) == null ? void 0 : Ae.click) == null ? void 0 : qe.call(Ae, Z.$index, Z.row)) && v();
|
|
2697
3014
|
}
|
|
2698
3015
|
}, {
|
|
2699
|
-
default:
|
|
2700
|
-
|
|
3016
|
+
default: d(() => [
|
|
3017
|
+
J(R(_(Oe, Z)), 1)
|
|
2701
3018
|
]),
|
|
2702
3019
|
_: 2
|
|
2703
3020
|
}, 1032, ["onClick"]))), 128))
|
|
2704
3021
|
]),
|
|
2705
3022
|
_: 1
|
|
2706
|
-
}, 8, ["label"])) :
|
|
3023
|
+
}, 8, ["label"])) : j("", !0)
|
|
2707
3024
|
];
|
|
2708
3025
|
}),
|
|
2709
3026
|
_: 1
|
|
2710
3027
|
}, 8, ["data"])), [
|
|
2711
|
-
[
|
|
3028
|
+
[Xe, ee.value]
|
|
2712
3029
|
]),
|
|
2713
|
-
|
|
3030
|
+
B.value ? j("", !0) : (p(), P(Ie, {
|
|
2714
3031
|
key: 0,
|
|
2715
3032
|
size: "small",
|
|
2716
3033
|
background: "",
|
|
2717
|
-
onSizeChange:
|
|
2718
|
-
onCurrentChange:
|
|
2719
|
-
currentPage:
|
|
2720
|
-
"onUpdate:currentPage":
|
|
3034
|
+
onSizeChange: k,
|
|
3035
|
+
onCurrentChange: O,
|
|
3036
|
+
currentPage: G.pageNo,
|
|
3037
|
+
"onUpdate:currentPage": x[1] || (x[1] = (pe) => G.pageNo = pe),
|
|
2721
3038
|
"page-sizes": [10, 20, 50, 100],
|
|
2722
|
-
"page-size":
|
|
3039
|
+
"page-size": G.pageSize,
|
|
2723
3040
|
layout: "total, sizes, prev, pager, next",
|
|
2724
|
-
total:
|
|
3041
|
+
total: G.totalElements
|
|
2725
3042
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2726
|
-
|
|
2727
|
-
model:
|
|
2728
|
-
mode:
|
|
2729
|
-
id:
|
|
2730
|
-
afterSubmitFunc:
|
|
3043
|
+
m(go, {
|
|
3044
|
+
model: g.model,
|
|
3045
|
+
mode: L.value,
|
|
3046
|
+
id: ie.value,
|
|
3047
|
+
afterSubmitFunc: v,
|
|
2731
3048
|
visible: i.value,
|
|
2732
|
-
"onUpdate:visible":
|
|
3049
|
+
"onUpdate:visible": x[2] || (x[2] = (pe) => i.value = pe)
|
|
2733
3050
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
2734
3051
|
], 2);
|
|
2735
3052
|
};
|
|
2736
3053
|
}
|
|
2737
|
-
}),
|
|
3054
|
+
}), it = /* @__PURE__ */ ve(lr, [["__scopeId", "data-v-5307a4aa"]]), ir = { class: "nav-bar" }, cr = { style: { "font-size": "16px" } }, ur = {
|
|
2738
3055
|
key: 0,
|
|
2739
3056
|
class: "info-card-wrapper"
|
|
2740
|
-
},
|
|
3057
|
+
}, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, _r = /* @__PURE__ */ Se({
|
|
2741
3058
|
__name: "DetailPage",
|
|
2742
3059
|
setup(e) {
|
|
2743
|
-
const { t } =
|
|
3060
|
+
const { t } = Qe(), o = Ke(), n = ct(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(), N = A("summary"), T = A(""), H = A(""), L = A(""), ee = A(0), B = de({
|
|
2744
3061
|
api: "",
|
|
2745
3062
|
fields: []
|
|
2746
|
-
}),
|
|
2747
|
-
let
|
|
2748
|
-
|
|
3063
|
+
}), ie = de([]);
|
|
3064
|
+
let G = [];
|
|
3065
|
+
Ee([
|
|
2749
3066
|
() => n.currentRoute.value,
|
|
2750
|
-
|
|
3067
|
+
ge
|
|
2751
3068
|
], () => {
|
|
2752
|
-
|
|
3069
|
+
h();
|
|
2753
3070
|
}, {
|
|
2754
3071
|
immediate: !0,
|
|
2755
3072
|
deep: !0
|
|
2756
3073
|
});
|
|
2757
|
-
function
|
|
2758
|
-
|
|
3074
|
+
function M(u) {
|
|
3075
|
+
f.value = parseInt(u.index) - 1;
|
|
2759
3076
|
}
|
|
2760
|
-
function
|
|
2761
|
-
var
|
|
2762
|
-
let u = (
|
|
3077
|
+
function te() {
|
|
3078
|
+
var O;
|
|
3079
|
+
let u = (O = G[f.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2763
3080
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2764
|
-
const c =
|
|
2765
|
-
|
|
2766
|
-
|
|
3081
|
+
const c = B.api + "/" + s.value + u, k = C.value.multipleSelection.map((z) => z.id);
|
|
3082
|
+
Ce(c, "POST", k).then(() => {
|
|
3083
|
+
y.value.refresh(), l.value = !1;
|
|
2767
3084
|
});
|
|
2768
3085
|
}
|
|
2769
|
-
function
|
|
2770
|
-
var
|
|
2771
|
-
|
|
2772
|
-
l.value = !0,
|
|
3086
|
+
function _(u, c, k) {
|
|
3087
|
+
var D;
|
|
3088
|
+
k.functions || (k.functions = {}), k.functions.create = () => {
|
|
3089
|
+
l.value = !0, C.value && C.value.refresh();
|
|
2773
3090
|
};
|
|
2774
|
-
let
|
|
2775
|
-
|
|
2776
|
-
for (var
|
|
2777
|
-
|
|
2778
|
-
|
|
3091
|
+
let O = Ge(c);
|
|
3092
|
+
O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, u.queryParamName && (O.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
3093
|
+
for (var z in O.fields)
|
|
3094
|
+
O.fields[z].tableColumnAttributes && (D = O.fields[z].tableColumnAttributes) != null && D.link && (O.fields[z].tableColumnAttributes.link = !1);
|
|
3095
|
+
G.push(O), k.labels = {
|
|
2779
3096
|
create: "common.table.add",
|
|
2780
3097
|
delete: "common.table.remove"
|
|
2781
|
-
},
|
|
2782
|
-
var
|
|
2783
|
-
let U = (
|
|
3098
|
+
}, k.functions.batchDelete = (F) => {
|
|
3099
|
+
var g;
|
|
3100
|
+
let U = (g = G[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
2784
3101
|
U = U == null ? void 0 : U.substring(U.lastIndexOf("/"));
|
|
2785
|
-
const b =
|
|
2786
|
-
|
|
2787
|
-
|
|
3102
|
+
const b = B.api + "/" + s.value + U, Y = F.map((x) => x.id);
|
|
3103
|
+
be.delete(`${b}/${Y.join(",")}`).then(({ data: x }) => {
|
|
3104
|
+
x.code === 0 && y.value.refresh();
|
|
2788
3105
|
});
|
|
2789
|
-
},
|
|
3106
|
+
}, k.operations = [
|
|
2790
3107
|
{
|
|
2791
3108
|
label: "common.table.remove",
|
|
2792
3109
|
functions: {
|
|
2793
|
-
click: (
|
|
2794
|
-
var
|
|
2795
|
-
let b = (
|
|
3110
|
+
click: (F, U) => {
|
|
3111
|
+
var g;
|
|
3112
|
+
let b = (g = G[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
2796
3113
|
b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
|
|
2797
|
-
const
|
|
2798
|
-
|
|
2799
|
-
|
|
3114
|
+
const Y = B.api + "/" + s.value + b;
|
|
3115
|
+
Ce(Y, "DELETE", U.id).then(() => {
|
|
3116
|
+
y.value.refresh();
|
|
2800
3117
|
});
|
|
2801
3118
|
}
|
|
2802
3119
|
}
|
|
2803
3120
|
}
|
|
2804
|
-
],
|
|
3121
|
+
], O.api += "/select";
|
|
2805
3122
|
}
|
|
2806
|
-
function
|
|
2807
|
-
var
|
|
2808
|
-
|
|
3123
|
+
function h() {
|
|
3124
|
+
var O, z, D;
|
|
3125
|
+
ie.splice(0);
|
|
2809
3126
|
const u = o.params.model;
|
|
2810
|
-
if (
|
|
3127
|
+
if (ge.value[u] === void 0) {
|
|
2811
3128
|
console.warn("Detail page model not exist:", u);
|
|
2812
3129
|
return;
|
|
2813
3130
|
} else
|
|
2814
|
-
console.debug("Detail page model found:", u,
|
|
2815
|
-
|
|
2816
|
-
const c =
|
|
2817
|
-
Object.assign(
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2820
|
-
for (let
|
|
2821
|
-
const U =
|
|
2822
|
-
if (
|
|
3131
|
+
console.debug("Detail page model found:", u, ge.value[u]);
|
|
3132
|
+
ze(B);
|
|
3133
|
+
const c = Ge(ge.value[u]);
|
|
3134
|
+
Object.assign(B, c), ee.value++, f.value = -1, N.value = "summary";
|
|
3135
|
+
const k = (z = (O = B.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : z.tabs;
|
|
3136
|
+
if (k)
|
|
3137
|
+
for (let F of k) {
|
|
3138
|
+
const U = Ge(ge.value[F.modelKey]);
|
|
3139
|
+
if (ie.push(U), F.type === "table") {
|
|
2823
3140
|
U.tableConfig || (U.tableConfig = {});
|
|
2824
3141
|
let b = U.tableConfig;
|
|
2825
|
-
b.showPane = !1,
|
|
3142
|
+
b.showPane = !1, F.modelRelationType === "associated" ? _(F, U, b) : F.modelRelationType === "child" && (G.push({
|
|
2826
3143
|
fields: []
|
|
2827
|
-
}), U.formConfig === void 0 && (U.formConfig = {}), U.formConfig.functions === void 0 && (U.formConfig.functions = {}),
|
|
2828
|
-
|
|
2829
|
-
})), b.queryParams || (b.queryParams = {}),
|
|
2830
|
-
var
|
|
2831
|
-
return (
|
|
2832
|
-
})),
|
|
2833
|
-
var
|
|
2834
|
-
return !((
|
|
2835
|
-
})),
|
|
3144
|
+
}), U.formConfig === void 0 && (U.formConfig = {}), U.formConfig.functions === void 0 && (U.formConfig.functions = {}), F.queryParamName && (U.formConfig.functions.beforeSubmit = (Y) => {
|
|
3145
|
+
Y[F.queryParamName] = s.value;
|
|
3146
|
+
})), b.queryParams || (b.queryParams = {}), F.queryParamName && (b.queryParams[F.queryParamName] = s.value), F.queryParams && Object.assign(b.queryParams, F.queryParams), b.readOnly = (D = F.readOnly) != null ? D : !1, F.includeFields && (U.fields = U.fields.filter((Y) => {
|
|
3147
|
+
var g;
|
|
3148
|
+
return (g = F.includeFields) == null ? void 0 : g.includes(Y.prop);
|
|
3149
|
+
})), F.excludeFields && (U.fields = U.fields.filter((Y) => {
|
|
3150
|
+
var g;
|
|
3151
|
+
return !((g = F.excludeFields) != null && g.includes(Y.prop));
|
|
3152
|
+
})), F.tooltip && (b.tooltip = F.tooltip);
|
|
2836
3153
|
}
|
|
2837
3154
|
}
|
|
2838
3155
|
}
|
|
2839
|
-
|
|
3156
|
+
Ee(
|
|
2840
3157
|
[
|
|
2841
3158
|
() => {
|
|
2842
3159
|
var u, c;
|
|
2843
|
-
return (c = (u =
|
|
3160
|
+
return (c = (u = B.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
2844
3161
|
},
|
|
2845
3162
|
() => {
|
|
2846
3163
|
var u;
|
|
@@ -2848,14 +3165,14 @@ const Be = (e) => {
|
|
|
2848
3165
|
}
|
|
2849
3166
|
],
|
|
2850
3167
|
(u) => {
|
|
2851
|
-
|
|
2852
|
-
var
|
|
2853
|
-
const c = (
|
|
2854
|
-
c && (T.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "",
|
|
2855
|
-
var
|
|
2856
|
-
if (
|
|
2857
|
-
const b = (U = (
|
|
2858
|
-
b && (
|
|
3168
|
+
Be(() => {
|
|
3169
|
+
var k, O, z;
|
|
3170
|
+
const c = (O = (k = B.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : O.infoCard;
|
|
3171
|
+
c && (T.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", L.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (z = B.fields) == null || z.forEach((D) => {
|
|
3172
|
+
var F, U;
|
|
3173
|
+
if (D.prop === c.tagFieldProp) {
|
|
3174
|
+
const b = (U = (F = D.tableColumnAttributes) == null ? void 0 : F.functions) == null ? void 0 : U.transformValue;
|
|
3175
|
+
b && (L.value = b(L.value));
|
|
2859
3176
|
}
|
|
2860
3177
|
}));
|
|
2861
3178
|
});
|
|
@@ -2865,73 +3182,52 @@ const Be = (e) => {
|
|
|
2865
3182
|
deep: !0
|
|
2866
3183
|
}
|
|
2867
3184
|
);
|
|
2868
|
-
function
|
|
3185
|
+
function v() {
|
|
2869
3186
|
r.value = !0;
|
|
2870
3187
|
}
|
|
2871
|
-
function
|
|
3188
|
+
function I() {
|
|
2872
3189
|
i.value.refresh();
|
|
2873
3190
|
}
|
|
2874
3191
|
return (u, c) => {
|
|
2875
|
-
var
|
|
2876
|
-
const
|
|
2877
|
-
return p(),
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
3192
|
+
var w, W, q, oe, ne, se;
|
|
3193
|
+
const k = E("el-page-header"), O = E("el-button"), z = E("el-icon"), D = E("el-dropdown-item"), F = E("el-dropdown-menu"), U = E("el-dropdown"), b = E("el-tag"), Y = E("el-tab-pane"), g = E("el-tabs"), x = E("el-dialog");
|
|
3194
|
+
return p(), V(le, null, [
|
|
3195
|
+
S("div", ir, [
|
|
3196
|
+
m(k, {
|
|
3197
|
+
onClick: c[0] || (c[0] = (X) => $(n).back())
|
|
3198
|
+
}, {
|
|
3199
|
+
title: d(() => c[5] || (c[5] = [
|
|
3200
|
+
S("span", null, null, -1)
|
|
3201
|
+
])),
|
|
3202
|
+
content: d(() => {
|
|
3203
|
+
var X;
|
|
2882
3204
|
return [
|
|
2883
|
-
|
|
2884
|
-
to: { path: `/${(ge = (W = I == null ? void 0 : I.breadcrumbRoute) != null ? W : I == null ? void 0 : I.route) != null ? ge : ""}` }
|
|
2885
|
-
}, {
|
|
2886
|
-
default: m(() => {
|
|
2887
|
-
var be;
|
|
2888
|
-
return [
|
|
2889
|
-
K(D(k(t)((be = I == null ? void 0 : I.name) != null ? be : "")), 1)
|
|
2890
|
-
];
|
|
2891
|
-
}),
|
|
2892
|
-
_: 1
|
|
2893
|
-
}, 8, ["to"]),
|
|
2894
|
-
h(v, null, {
|
|
2895
|
-
default: m(() => [
|
|
2896
|
-
K(D(k(t)("common.basic.detail")), 1)
|
|
2897
|
-
]),
|
|
2898
|
-
_: 1
|
|
2899
|
-
})
|
|
3205
|
+
S("span", cr, R($(t)((X = B == null ? void 0 : B.name) != null ? X : "")), 1)
|
|
2900
3206
|
];
|
|
2901
3207
|
}),
|
|
2902
3208
|
_: 1
|
|
2903
3209
|
}),
|
|
2904
|
-
|
|
2905
|
-
|
|
3210
|
+
S("div", null, [
|
|
3211
|
+
m(O, {
|
|
2906
3212
|
type: "primary",
|
|
2907
|
-
onClick:
|
|
2908
|
-
}, {
|
|
2909
|
-
default: m(() => [
|
|
2910
|
-
K(D(k(t)("common.table.edit")), 1)
|
|
2911
|
-
]),
|
|
2912
|
-
_: 1
|
|
2913
|
-
}),
|
|
2914
|
-
h(F, {
|
|
2915
|
-
type: "danger",
|
|
2916
|
-
plain: "",
|
|
2917
|
-
disabled: ""
|
|
3213
|
+
onClick: v
|
|
2918
3214
|
}, {
|
|
2919
|
-
default:
|
|
2920
|
-
|
|
3215
|
+
default: d(() => [
|
|
3216
|
+
J(R($(t)("common.table.edit")), 1)
|
|
2921
3217
|
]),
|
|
2922
3218
|
_: 1
|
|
2923
3219
|
}),
|
|
2924
|
-
((
|
|
2925
|
-
dropdown:
|
|
2926
|
-
|
|
2927
|
-
default:
|
|
2928
|
-
var
|
|
3220
|
+
((W = (w = B.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : W.operationButtons) !== void 0 ? (p(), P(U, { key: 0 }, {
|
|
3221
|
+
dropdown: d(() => [
|
|
3222
|
+
m(F, null, {
|
|
3223
|
+
default: d(() => {
|
|
3224
|
+
var X, K;
|
|
2929
3225
|
return [
|
|
2930
|
-
(p(!0),
|
|
2931
|
-
onClick: (
|
|
3226
|
+
(p(!0), V(le, null, fe((K = (X = B.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : K.operationButtons, (re) => (p(), P(D, {
|
|
3227
|
+
onClick: (ce) => re.function(i.value.formData)
|
|
2932
3228
|
}, {
|
|
2933
|
-
default:
|
|
2934
|
-
|
|
3229
|
+
default: d(() => [
|
|
3230
|
+
J(R($(t)(re.label)), 1)
|
|
2935
3231
|
]),
|
|
2936
3232
|
_: 2
|
|
2937
3233
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2940,13 +3236,13 @@ const Be = (e) => {
|
|
|
2940
3236
|
_: 1
|
|
2941
3237
|
})
|
|
2942
3238
|
]),
|
|
2943
|
-
default:
|
|
2944
|
-
|
|
2945
|
-
default:
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
default:
|
|
2949
|
-
|
|
3239
|
+
default: d(() => [
|
|
3240
|
+
m(O, { style: { margin: "0 10px" } }, {
|
|
3241
|
+
default: d(() => [
|
|
3242
|
+
J(R($(t)("common.basic.more")), 1),
|
|
3243
|
+
m(z, { class: "el-icon--right" }, {
|
|
3244
|
+
default: d(() => [
|
|
3245
|
+
m($(qt))
|
|
2950
3246
|
]),
|
|
2951
3247
|
_: 1
|
|
2952
3248
|
})
|
|
@@ -2955,183 +3251,193 @@ const Be = (e) => {
|
|
|
2955
3251
|
})
|
|
2956
3252
|
]),
|
|
2957
3253
|
_: 1
|
|
2958
|
-
})) :
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
},
|
|
3254
|
+
})) : j("", !0),
|
|
3255
|
+
m(O, {
|
|
3256
|
+
onClick: I,
|
|
3257
|
+
style: { "border-color": "#bbb", width: "30px" }
|
|
3258
|
+
}, {
|
|
3259
|
+
default: d(() => [
|
|
3260
|
+
m(z, null, {
|
|
3261
|
+
default: d(() => [
|
|
3262
|
+
m($(Ht))
|
|
3263
|
+
]),
|
|
3264
|
+
_: 1
|
|
3265
|
+
})
|
|
3266
|
+
]),
|
|
3267
|
+
_: 1
|
|
3268
|
+
})
|
|
2963
3269
|
])
|
|
2964
3270
|
]),
|
|
2965
|
-
(
|
|
2966
|
-
|
|
2967
|
-
(p(),
|
|
3271
|
+
(oe = (q = B.pageConfig) == null ? void 0 : q.detailPage) != null && oe.infoCard ? (p(), V("div", ur, [
|
|
3272
|
+
S("div", dr, [
|
|
3273
|
+
(p(), P(rt((ne = B.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
|
|
2968
3274
|
]),
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
((
|
|
3275
|
+
S("div", pr, [
|
|
3276
|
+
S("div", fr, [
|
|
3277
|
+
S("h1", null, R(T.value), 1),
|
|
3278
|
+
((se = L.value) == null ? void 0 : se.length) > 0 ? (p(), P(b, {
|
|
2973
3279
|
key: 0,
|
|
2974
3280
|
size: "small"
|
|
2975
3281
|
}, {
|
|
2976
|
-
default:
|
|
2977
|
-
|
|
3282
|
+
default: d(() => [
|
|
3283
|
+
J(R(L.value), 1)
|
|
2978
3284
|
]),
|
|
2979
3285
|
_: 1
|
|
2980
|
-
})) :
|
|
3286
|
+
})) : j("", !0)
|
|
2981
3287
|
]),
|
|
2982
|
-
|
|
3288
|
+
S("span", null, R(H.value), 1)
|
|
2983
3289
|
])
|
|
2984
|
-
])) :
|
|
2985
|
-
|
|
2986
|
-
|
|
3290
|
+
])) : j("", !0),
|
|
3291
|
+
S("div", mr, [
|
|
3292
|
+
m(g, {
|
|
2987
3293
|
modelValue: N.value,
|
|
2988
|
-
"onUpdate:modelValue": c[
|
|
2989
|
-
onTabClick:
|
|
3294
|
+
"onUpdate:modelValue": c[1] || (c[1] = (X) => N.value = X),
|
|
3295
|
+
onTabClick: M
|
|
2990
3296
|
}, {
|
|
2991
|
-
default:
|
|
2992
|
-
var
|
|
3297
|
+
default: d(() => {
|
|
3298
|
+
var X, K;
|
|
2993
3299
|
return [
|
|
2994
|
-
|
|
2995
|
-
label:
|
|
3300
|
+
m(Y, {
|
|
3301
|
+
label: $(t)("common.basic.summary"),
|
|
2996
3302
|
name: "summary"
|
|
2997
3303
|
}, {
|
|
2998
|
-
default:
|
|
2999
|
-
|
|
3304
|
+
default: d(() => [
|
|
3305
|
+
m(_o, {
|
|
3000
3306
|
ref_key: "formViewRef",
|
|
3001
3307
|
ref: i,
|
|
3002
3308
|
id: s.value,
|
|
3003
|
-
sessionId:
|
|
3309
|
+
sessionId: ee.value,
|
|
3004
3310
|
mode: a.value,
|
|
3005
|
-
model:
|
|
3311
|
+
model: B
|
|
3006
3312
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3007
3313
|
]),
|
|
3008
3314
|
_: 1
|
|
3009
3315
|
}, 8, ["label"]),
|
|
3010
|
-
(p(!0),
|
|
3011
|
-
var
|
|
3012
|
-
return p(),
|
|
3013
|
-
label:
|
|
3316
|
+
(p(!0), V(le, null, fe((K = (X = B.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : K.tabs, (re) => {
|
|
3317
|
+
var ce;
|
|
3318
|
+
return p(), P(Y, {
|
|
3319
|
+
label: $(t)((ce = re.name) != null ? ce : "")
|
|
3014
3320
|
}, null, 8, ["label"]);
|
|
3015
3321
|
}), 256))
|
|
3016
3322
|
];
|
|
3017
3323
|
}),
|
|
3018
3324
|
_: 1
|
|
3019
3325
|
}, 8, ["modelValue"]),
|
|
3020
|
-
|
|
3326
|
+
f.value >= 0 ? (p(), P(it, {
|
|
3021
3327
|
key: 0,
|
|
3022
3328
|
ref_key: "tabPaneTableRef",
|
|
3023
|
-
ref:
|
|
3024
|
-
model:
|
|
3025
|
-
}, null, 8, ["model"])) :
|
|
3026
|
-
|
|
3329
|
+
ref: y,
|
|
3330
|
+
model: ie[f.value]
|
|
3331
|
+
}, null, 8, ["model"])) : j("", !0),
|
|
3332
|
+
m(x, {
|
|
3027
3333
|
modelValue: l.value,
|
|
3028
|
-
"onUpdate:modelValue": c[
|
|
3029
|
-
title:
|
|
3334
|
+
"onUpdate:modelValue": c[3] || (c[3] = (X) => l.value = X),
|
|
3335
|
+
title: $(t)("common.table.select"),
|
|
3030
3336
|
width: "800px"
|
|
3031
3337
|
}, {
|
|
3032
|
-
footer:
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
onClick: c[
|
|
3338
|
+
footer: d(() => [
|
|
3339
|
+
S("span", hr, [
|
|
3340
|
+
m(O, {
|
|
3341
|
+
onClick: c[2] || (c[2] = (X) => l.value = !1)
|
|
3036
3342
|
}, {
|
|
3037
|
-
default:
|
|
3038
|
-
|
|
3343
|
+
default: d(() => [
|
|
3344
|
+
J(R($(t)("common.basic.cancel")), 1)
|
|
3039
3345
|
]),
|
|
3040
3346
|
_: 1
|
|
3041
3347
|
}),
|
|
3042
|
-
|
|
3348
|
+
m(O, {
|
|
3043
3349
|
type: "primary",
|
|
3044
|
-
onClick:
|
|
3350
|
+
onClick: te
|
|
3045
3351
|
}, {
|
|
3046
|
-
default:
|
|
3047
|
-
|
|
3352
|
+
default: d(() => [
|
|
3353
|
+
J(R($(t)("common.basic.save")), 1)
|
|
3048
3354
|
]),
|
|
3049
3355
|
_: 1
|
|
3050
3356
|
})
|
|
3051
3357
|
])
|
|
3052
3358
|
]),
|
|
3053
|
-
default:
|
|
3054
|
-
|
|
3359
|
+
default: d(() => [
|
|
3360
|
+
f.value >= 0 ? (p(), P(it, {
|
|
3055
3361
|
key: 0,
|
|
3056
3362
|
ref_key: "selectTableRef",
|
|
3057
|
-
ref:
|
|
3058
|
-
model:
|
|
3059
|
-
}, null, 8, ["model"])) :
|
|
3363
|
+
ref: C,
|
|
3364
|
+
model: $(G)[f.value]
|
|
3365
|
+
}, null, 8, ["model"])) : j("", !0)
|
|
3060
3366
|
]),
|
|
3061
3367
|
_: 1
|
|
3062
3368
|
}, 8, ["modelValue", "title"])
|
|
3063
3369
|
]),
|
|
3064
|
-
|
|
3370
|
+
m(go, {
|
|
3065
3371
|
id: s.value,
|
|
3066
3372
|
mode: "update",
|
|
3067
3373
|
visible: r.value,
|
|
3068
|
-
"onUpdate:visible": c[
|
|
3069
|
-
model:
|
|
3070
|
-
afterSubmitFunc:
|
|
3374
|
+
"onUpdate:visible": c[4] || (c[4] = (X) => r.value = X),
|
|
3375
|
+
model: B,
|
|
3376
|
+
afterSubmitFunc: I
|
|
3071
3377
|
}, null, 8, ["id", "visible", "model"])
|
|
3072
3378
|
], 64);
|
|
3073
3379
|
};
|
|
3074
3380
|
}
|
|
3075
|
-
}),
|
|
3381
|
+
}), gr = /* @__PURE__ */ ve(_r, [["__scopeId", "data-v-cc1c9498"]]), br = { class: "page-title" }, vr = /* @__PURE__ */ Se({
|
|
3076
3382
|
__name: "TablePage",
|
|
3077
3383
|
setup(e) {
|
|
3078
|
-
const { t } =
|
|
3384
|
+
const { t } = Qe(), o = Ke(), n = ct(), s = A(), r = A([]), l = de({
|
|
3079
3385
|
api: "",
|
|
3080
3386
|
fields: []
|
|
3081
|
-
}), a =
|
|
3387
|
+
}), a = de(Ze({}, l));
|
|
3082
3388
|
function i() {
|
|
3083
|
-
var
|
|
3084
|
-
r.value = [], l.pageConfig && ((
|
|
3085
|
-
let
|
|
3086
|
-
return
|
|
3087
|
-
key:
|
|
3088
|
-
label:
|
|
3089
|
-
icon:
|
|
3090
|
-
disabled:
|
|
3091
|
-
model:
|
|
3389
|
+
var y, C, N, T, H;
|
|
3390
|
+
r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (H = (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : T.tabViewAttributes) == null ? void 0 : H.map((L) => {
|
|
3391
|
+
let ee;
|
|
3392
|
+
return L.modelKey && ge.value[L.modelKey] ? ee = Ge(ge.value[L.modelKey]) : ee = Ge(l), L.queryParams && (ee.tableConfig || (ee.tableConfig = {}), ee.tableConfig.queryParams = L.queryParams), L.fields && (ee.fields = L.fields), L.modelKey && (ee.breadcrumbRoute = l.route), {
|
|
3393
|
+
key: L.key,
|
|
3394
|
+
label: L.label,
|
|
3395
|
+
icon: L.icon,
|
|
3396
|
+
disabled: L.disabled,
|
|
3397
|
+
model: ee
|
|
3092
3398
|
};
|
|
3093
3399
|
}));
|
|
3094
3400
|
}
|
|
3095
|
-
function
|
|
3401
|
+
function f() {
|
|
3096
3402
|
var N, T;
|
|
3097
|
-
console.log("
|
|
3098
|
-
const
|
|
3099
|
-
if (
|
|
3100
|
-
console.warn("
|
|
3403
|
+
console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
|
|
3404
|
+
const y = o.params.model;
|
|
3405
|
+
if (ge.value[y] === void 0) {
|
|
3406
|
+
console.warn("TablePage.init: model not found", y, ge.value);
|
|
3101
3407
|
return;
|
|
3102
3408
|
}
|
|
3103
|
-
|
|
3104
|
-
const
|
|
3105
|
-
Object.assign(l,
|
|
3409
|
+
ze(l);
|
|
3410
|
+
const C = Ge(ge.value[y]);
|
|
3411
|
+
Object.assign(l, C), (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && T.tabViewAttributes || Object.assign(a, l), i();
|
|
3106
3412
|
}
|
|
3107
|
-
return
|
|
3413
|
+
return Ee([
|
|
3108
3414
|
() => n.currentRoute.value,
|
|
3109
|
-
|
|
3415
|
+
ge
|
|
3110
3416
|
], () => {
|
|
3111
|
-
|
|
3417
|
+
f();
|
|
3112
3418
|
}, {
|
|
3113
3419
|
immediate: !0,
|
|
3114
3420
|
deep: !0
|
|
3115
|
-
}), (
|
|
3421
|
+
}), (y, C) => {
|
|
3116
3422
|
var T;
|
|
3117
|
-
const N =
|
|
3118
|
-
return p(),
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
default:
|
|
3122
|
-
var
|
|
3423
|
+
const N = E("el-scrollbar");
|
|
3424
|
+
return p(), V(le, null, [
|
|
3425
|
+
S("h1", br, R($(t)((T = l.name) != null ? T : "")), 1),
|
|
3426
|
+
m(N, null, {
|
|
3427
|
+
default: d(() => {
|
|
3428
|
+
var H, L;
|
|
3123
3429
|
return [
|
|
3124
|
-
(
|
|
3430
|
+
(L = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && L.tabViewAttributes ? (p(), P(ho, {
|
|
3125
3431
|
key: 0,
|
|
3126
3432
|
class: "tabs-wrapper",
|
|
3127
3433
|
cards: r.value,
|
|
3128
3434
|
tableRef: s.value
|
|
3129
|
-
}, null, 8, ["cards", "tableRef"])) :
|
|
3435
|
+
}, null, 8, ["cards", "tableRef"])) : j("", !0)
|
|
3130
3436
|
];
|
|
3131
3437
|
}),
|
|
3132
3438
|
_: 1
|
|
3133
3439
|
}),
|
|
3134
|
-
|
|
3440
|
+
m(it, {
|
|
3135
3441
|
class: "table-wrapper",
|
|
3136
3442
|
ref_key: "tableRef",
|
|
3137
3443
|
ref: s,
|
|
@@ -3140,39 +3446,39 @@ const Be = (e) => {
|
|
|
3140
3446
|
], 64);
|
|
3141
3447
|
};
|
|
3142
3448
|
}
|
|
3143
|
-
}),
|
|
3144
|
-
|
|
3145
|
-
ys,
|
|
3146
|
-
Gt,
|
|
3147
|
-
$s,
|
|
3449
|
+
}), yr = /* @__PURE__ */ ve(vr, [["__scopeId", "data-v-1a472785"]]), wr = [
|
|
3450
|
+
jo,
|
|
3148
3451
|
Vs,
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3452
|
+
Wt,
|
|
3453
|
+
Rs,
|
|
3454
|
+
js,
|
|
3455
|
+
mo,
|
|
3456
|
+
ho,
|
|
3457
|
+
it,
|
|
3458
|
+
gr,
|
|
3459
|
+
yr
|
|
3460
|
+
], Ir = (e) => {
|
|
3461
|
+
e && e.component && wr.forEach((t) => {
|
|
3156
3462
|
console.log("component", t.__name, t), e.component(t.__name, t);
|
|
3157
3463
|
});
|
|
3158
3464
|
};
|
|
3159
3465
|
export {
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3466
|
+
jo as Building,
|
|
3467
|
+
Vs as ConsoleApp,
|
|
3468
|
+
gr as DetailPage,
|
|
3469
|
+
Wt as Header,
|
|
3470
|
+
Rs as NoPermission,
|
|
3471
|
+
js as Secondary,
|
|
3472
|
+
mo as SideMenu,
|
|
3473
|
+
ho as TabCard,
|
|
3474
|
+
yr as TablePage,
|
|
3475
|
+
it as TableView,
|
|
3476
|
+
jn as activeMenuMapping,
|
|
3477
|
+
Ir as default,
|
|
3478
|
+
pn as en,
|
|
3479
|
+
at as i18n,
|
|
3480
|
+
Pt as menuList,
|
|
3481
|
+
ge as modelList,
|
|
3482
|
+
wt as pinia,
|
|
3483
|
+
fn as zh
|
|
3178
3484
|
};
|