@vancone/console-component 0.1.0-beta.32 → 0.1.0-beta.34
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.
|
@@ -2,72 +2,72 @@ var uo = Object.defineProperty, po = Object.defineProperties;
|
|
|
2
2
|
var fo = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var bt = Object.getOwnPropertySymbols;
|
|
4
4
|
var mo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var yt = (e,
|
|
6
|
-
for (var
|
|
7
|
-
mo.call(
|
|
5
|
+
var yt = (e, t, o) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, We = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
mo.call(t, o) && yt(e, o, t[o]);
|
|
8
8
|
if (bt)
|
|
9
|
-
for (var
|
|
10
|
-
ho.call(
|
|
9
|
+
for (var o of bt(t))
|
|
10
|
+
ho.call(t, o) && yt(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
}, wt = (e,
|
|
13
|
-
var ye = (e,
|
|
12
|
+
}, wt = (e, t) => po(e, fo(t));
|
|
13
|
+
var ye = (e, t, o) => new Promise((n, s) => {
|
|
14
14
|
var r = (i) => {
|
|
15
15
|
try {
|
|
16
|
-
a(
|
|
16
|
+
a(o.next(i));
|
|
17
17
|
} catch (d) {
|
|
18
18
|
s(d);
|
|
19
19
|
}
|
|
20
20
|
}, l = (i) => {
|
|
21
21
|
try {
|
|
22
|
-
a(
|
|
22
|
+
a(o.throw(i));
|
|
23
23
|
} catch (d) {
|
|
24
24
|
s(d);
|
|
25
25
|
}
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
|
-
a((
|
|
27
|
+
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as
|
|
30
|
-
import { useRoute as
|
|
29
|
+
import { openBlock as p, createElementBlock as U, createElementVNode as b, defineComponent as _e, reactive as re, resolveComponent as x, createVNode as h, withCtx as m, unref as k, Fragment as oe, renderList as ce, toDisplayString as R, normalizeStyle as Te, ref as N, onMounted as pt, createCommentVNode as B, createTextVNode as Q, createBlock as V, nextTick as Le, resolveDynamicComponent as et, effectScope as Mt, markRaw as Pe, toRaw as je, hasInjectionContext as _o, inject as go, getCurrentInstance as vo, watch as Se, isRef as ze, isReactive as ft, toRef as rt, computed as De, getCurrentScope as bo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as At, resolveDirective as Vt, withDirectives as Ut } from "vue";
|
|
30
|
+
import { useRoute as He, useRouter as st } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
|
-
import { ElMessage as
|
|
33
|
-
import { Search as Tt, ArrowRight as
|
|
34
|
-
import { createI18n as Po, useI18n as
|
|
32
|
+
import { ElMessage as at, ElMessageBox as Co } from "element-plus";
|
|
33
|
+
import { Search as Tt, ArrowRight as ko, Check as Oo, Refresh as Dt, QuestionFilled as xo, Download as Eo, ArrowDown as $o } from "@element-plus/icons-vue";
|
|
34
|
+
import { createI18n as Po, useI18n as Je } from "vue-i18n";
|
|
35
35
|
import { cloneDeep as Ue } from "lodash";
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
for (const [n, s] of
|
|
39
|
-
|
|
40
|
-
return
|
|
36
|
+
const pe = (e, t) => {
|
|
37
|
+
const o = e.__vccOpts || e;
|
|
38
|
+
for (const [n, s] of t)
|
|
39
|
+
o[n] = s;
|
|
40
|
+
return o;
|
|
41
41
|
}, Io = {}, No = { class: "building" };
|
|
42
|
-
function
|
|
43
|
-
return p(),
|
|
42
|
+
function Mo(e, t) {
|
|
43
|
+
return p(), U("div", No);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Ao = /* @__PURE__ */ pe(Io, [["render", Mo], ["__scopeId", "data-v-07bd45d2"]]), de = So.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const { headers:
|
|
52
|
-
return n === 0 ? (l && !r &&
|
|
49
|
+
de.interceptors.request.use((e) => e);
|
|
50
|
+
de.interceptors.response.use((e) => {
|
|
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 && at({
|
|
53
53
|
message: s,
|
|
54
54
|
type: "success"
|
|
55
|
-
}), Promise.resolve(e)) : (
|
|
55
|
+
}), Promise.resolve(e)) : (at({
|
|
56
56
|
type: "error",
|
|
57
57
|
message: s
|
|
58
58
|
}), Promise.reject(new Error(`${n}`)));
|
|
59
59
|
}, (e) => {
|
|
60
60
|
var n;
|
|
61
|
-
const { config:
|
|
62
|
-
if (
|
|
63
|
-
const { status: s } =
|
|
61
|
+
const { config: t, response: o } = e;
|
|
62
|
+
if (o) {
|
|
63
|
+
const { status: s } = o;
|
|
64
64
|
if (s === 401) {
|
|
65
65
|
const a = window.escape(window.location.href);
|
|
66
|
-
let i = (n =
|
|
66
|
+
let i = (n = o.data.data) != null ? n : "https://passport.vancone.com";
|
|
67
67
|
window.location.href = `${i}/?from=${a}`;
|
|
68
68
|
}
|
|
69
|
-
const { message: r, error: l } =
|
|
70
|
-
|
|
69
|
+
const { message: r, error: l } = o.data;
|
|
70
|
+
at({
|
|
71
71
|
type: "error",
|
|
72
72
|
message: r || l
|
|
73
73
|
});
|
|
@@ -79,16 +79,16 @@ const Rt = () => {
|
|
|
79
79
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
80
80
|
}, Ft = Rt();
|
|
81
81
|
function Vo() {
|
|
82
|
-
return
|
|
82
|
+
return de.get(`//${Ft}/api/passport/service/v1/account`);
|
|
83
83
|
}
|
|
84
84
|
function Uo() {
|
|
85
|
-
return
|
|
85
|
+
return de.delete(`//${Ft}/api/passport/service/v1/login`);
|
|
86
86
|
}
|
|
87
87
|
function To() {
|
|
88
|
-
return
|
|
88
|
+
return de.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
|
|
89
89
|
}
|
|
90
90
|
function Do() {
|
|
91
|
-
return
|
|
91
|
+
return de.get("https://console.vancone.com/api/console/app?pageSize=1000");
|
|
92
92
|
}
|
|
93
93
|
const Ro = {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -97,9 +97,9 @@ const Ro = {
|
|
|
97
97
|
class: "icon",
|
|
98
98
|
viewBox: "0 0 1024 1024"
|
|
99
99
|
};
|
|
100
|
-
function Fo(e,
|
|
101
|
-
return p(),
|
|
102
|
-
|
|
100
|
+
function Fo(e, t) {
|
|
101
|
+
return p(), U("svg", Ro, t[0] || (t[0] = [
|
|
102
|
+
b("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
105
105
|
const Go = { render: Fo }, Lo = {
|
|
@@ -109,9 +109,9 @@ const Go = { render: Fo }, Lo = {
|
|
|
109
109
|
class: "icon",
|
|
110
110
|
viewBox: "0 0 1024 1024"
|
|
111
111
|
};
|
|
112
|
-
function jo(e,
|
|
113
|
-
return p(),
|
|
114
|
-
|
|
112
|
+
function jo(e, t) {
|
|
113
|
+
return p(), U("svg", Lo, t[0] || (t[0] = [
|
|
114
|
+
b("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
117
|
const zo = { render: jo }, qo = {
|
|
@@ -121,9 +121,9 @@ const zo = { render: jo }, qo = {
|
|
|
121
121
|
class: "icon",
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
};
|
|
124
|
-
function Bo(e,
|
|
125
|
-
return p(),
|
|
126
|
-
|
|
124
|
+
function Bo(e, t) {
|
|
125
|
+
return p(), U("svg", qo, t[0] || (t[0] = [
|
|
126
|
+
b("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
129
|
const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class: "catalog-wrapper" }, Yo = { class: "service-list" }, Qo = { class: "app-icon-container" }, Ko = ["href"], Xo = ["innerHTML"], Zo = {
|
|
@@ -135,57 +135,57 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
135
135
|
visible: { type: Boolean }
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
const
|
|
139
|
-
function
|
|
138
|
+
const t = re([]);
|
|
139
|
+
function o() {
|
|
140
140
|
To().then(({ data: n }) => {
|
|
141
|
-
|
|
141
|
+
t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
|
|
142
142
|
const r = s.data.list;
|
|
143
|
-
|
|
143
|
+
t.forEach((l) => {
|
|
144
144
|
l.apps = r.filter((a) => a.appGroupId === l.id);
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
return
|
|
149
|
+
return o(), (n, s) => {
|
|
150
150
|
const r = x("el-input"), l = x("el-scrollbar"), a = x("el-tab-pane"), i = x("el-tabs");
|
|
151
|
-
return p(),
|
|
152
|
-
|
|
151
|
+
return p(), U("div", Jo, [
|
|
152
|
+
h(i, { "tab-position": "left" }, {
|
|
153
153
|
default: m(() => [
|
|
154
|
-
|
|
154
|
+
h(a, null, {
|
|
155
155
|
label: m(() => [
|
|
156
|
-
|
|
156
|
+
h(k(Go), { class: "left-icon" })
|
|
157
157
|
]),
|
|
158
158
|
default: m(() => [
|
|
159
|
-
s[0] || (s[0] =
|
|
160
|
-
|
|
159
|
+
s[0] || (s[0] = b("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
160
|
+
h(r, {
|
|
161
161
|
class: "search-box",
|
|
162
162
|
"prefix-icon": k(Tt),
|
|
163
163
|
placeholder: "Search apps"
|
|
164
164
|
}, null, 8, ["prefix-icon"]),
|
|
165
|
-
|
|
165
|
+
h(l, {
|
|
166
166
|
class: "right-area",
|
|
167
167
|
style: { width: "100%", height: "400px" }
|
|
168
168
|
}, {
|
|
169
169
|
default: m(() => [
|
|
170
|
-
|
|
171
|
-
(p(!0),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(p(!0),
|
|
175
|
-
var
|
|
176
|
-
return p(),
|
|
177
|
-
style:
|
|
170
|
+
b("div", Wo, [
|
|
171
|
+
(p(!0), U(oe, null, ce(t, (d) => (p(), U("div", Yo, [
|
|
172
|
+
b("h1", null, R(d.name), 1),
|
|
173
|
+
b("div", Qo, [
|
|
174
|
+
(p(!0), U(oe, null, ce(d.apps, (w) => {
|
|
175
|
+
var y, M;
|
|
176
|
+
return p(), U("a", {
|
|
177
|
+
style: Te([{ "text-decoration": "none" }, { pointerEvents: ((y = w.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
|
|
178
178
|
target: "_blank",
|
|
179
|
-
href:
|
|
179
|
+
href: w.homepageUrl
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
w.iconSvg !== void 0 ? (p(), U("div", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "app-icon",
|
|
184
|
-
innerHTML:
|
|
185
|
-
}, null, 8, Xo)) : (p(),
|
|
186
|
-
|
|
187
|
-
style:
|
|
188
|
-
}, R(
|
|
184
|
+
innerHTML: w.iconSvg
|
|
185
|
+
}, null, 8, Xo)) : (p(), U("div", Zo, " ")),
|
|
186
|
+
b("h2", {
|
|
187
|
+
style: Te({ color: ((M = w.homepageUrl) == null ? void 0 : M.length) > 0 ? "#555" : "#bbb" })
|
|
188
|
+
}, R(w.name), 5)
|
|
189
189
|
], 12, Ko);
|
|
190
190
|
}), 256))
|
|
191
191
|
])
|
|
@@ -197,21 +197,21 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}),
|
|
200
|
-
|
|
200
|
+
h(a, null, {
|
|
201
201
|
label: m(() => [
|
|
202
|
-
|
|
202
|
+
h(k(zo), { class: "left-icon" })
|
|
203
203
|
]),
|
|
204
204
|
default: m(() => [
|
|
205
|
-
s[1] || (s[1] =
|
|
205
|
+
s[1] || (s[1] = b("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}),
|
|
209
|
-
|
|
209
|
+
h(a, null, {
|
|
210
210
|
label: m(() => [
|
|
211
|
-
|
|
211
|
+
h(k(Ho), { class: "left-icon" })
|
|
212
212
|
]),
|
|
213
213
|
default: m(() => [
|
|
214
|
-
s[2] || (s[2] =
|
|
214
|
+
s[2] || (s[2] = b("h1", { class: "catalog-title" }, "Recently", -1))
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
217
|
})
|
|
@@ -221,12 +221,13 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
221
221
|
]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}), tn = /* @__PURE__ */
|
|
224
|
+
}), tn = /* @__PURE__ */ pe(en, [["__scopeId", "data-v-a4f6252e"]]), on = {
|
|
225
225
|
common: {
|
|
226
226
|
header: {
|
|
227
227
|
product: "Products",
|
|
228
228
|
help: "Help",
|
|
229
|
-
|
|
229
|
+
notification: "Notification",
|
|
230
|
+
workbench: "Workbench",
|
|
230
231
|
userCenter: "User Center",
|
|
231
232
|
switchLanguage: "Languages",
|
|
232
233
|
signOut: "Sign out"
|
|
@@ -264,7 +265,8 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
264
265
|
header: {
|
|
265
266
|
product: "产品",
|
|
266
267
|
help: "帮助",
|
|
267
|
-
|
|
268
|
+
notification: "通知",
|
|
269
|
+
workbench: "工作台",
|
|
268
270
|
userCenter: "用户中心",
|
|
269
271
|
switchLanguage: "语言",
|
|
270
272
|
signOut: "退出登录"
|
|
@@ -297,7 +299,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
297
299
|
yes: "是"
|
|
298
300
|
}
|
|
299
301
|
}
|
|
300
|
-
},
|
|
302
|
+
}, tt = Po({
|
|
301
303
|
legacy: !1,
|
|
302
304
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
303
305
|
messages: {
|
|
@@ -309,9 +311,9 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
|
|
|
309
311
|
"xml:space": "preserve",
|
|
310
312
|
viewBox: "0 0 32 32"
|
|
311
313
|
};
|
|
312
|
-
function rn(e,
|
|
313
|
-
return p(),
|
|
314
|
-
|
|
314
|
+
function rn(e, t) {
|
|
315
|
+
return p(), U("svg", sn, t[0] || (t[0] = [
|
|
316
|
+
b("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)
|
|
315
317
|
]));
|
|
316
318
|
}
|
|
317
319
|
const an = { render: rn }, ln = {
|
|
@@ -321,9 +323,9 @@ const an = { render: rn }, ln = {
|
|
|
321
323
|
class: "icon",
|
|
322
324
|
viewBox: "0 0 1024 1024"
|
|
323
325
|
};
|
|
324
|
-
function cn(e,
|
|
325
|
-
return p(),
|
|
326
|
-
|
|
326
|
+
function cn(e, t) {
|
|
327
|
+
return p(), U("svg", ln, t[0] || (t[0] = [
|
|
328
|
+
b("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)
|
|
327
329
|
]));
|
|
328
330
|
}
|
|
329
331
|
const un = { render: cn }, dn = {
|
|
@@ -333,21 +335,34 @@ const un = { render: cn }, dn = {
|
|
|
333
335
|
class: "icon",
|
|
334
336
|
viewBox: "0 0 1024 1024"
|
|
335
337
|
};
|
|
336
|
-
function pn(e,
|
|
337
|
-
return p(),
|
|
338
|
-
|
|
338
|
+
function pn(e, t) {
|
|
339
|
+
return p(), U("svg", dn, t[0] || (t[0] = [
|
|
340
|
+
b("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
|
+
]));
|
|
342
|
+
}
|
|
343
|
+
const fn = { render: pn }, mn = {
|
|
344
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
345
|
+
"xml:space": "preserve",
|
|
346
|
+
viewBox: "0 0 32 32"
|
|
347
|
+
};
|
|
348
|
+
function hn(e, t) {
|
|
349
|
+
return p(), U("svg", mn, t[0] || (t[0] = [
|
|
350
|
+
b("path", {
|
|
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
|
+
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
353
|
+
}, null, -1)
|
|
339
354
|
]));
|
|
340
355
|
}
|
|
341
|
-
const
|
|
356
|
+
const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn = { class: "right" }, yn = { class: "icon-wrapper" }, wn = { class: "icon-wrapper" }, Sn = { class: "user-wrapper" }, Cn = { style: { "font-size": "11px", "font-weight": "bold" } }, kn = { class: "user-popover-header" }, On = { style: { "font-size": "15px", "font-weight": "bold" } }, xn = ["onClick"], En = /* @__PURE__ */ _e({
|
|
342
357
|
__name: "Header",
|
|
343
358
|
props: {
|
|
344
359
|
title: {},
|
|
345
360
|
helpDocUrl: {}
|
|
346
361
|
},
|
|
347
362
|
setup(e) {
|
|
348
|
-
const { t
|
|
349
|
-
|
|
350
|
-
const a =
|
|
363
|
+
const { t } = Je(), o = N(), n = N(), s = N(), r = N(), l = e;
|
|
364
|
+
N(!1);
|
|
365
|
+
const a = N(""), i = N(tt.global.locale), d = re([
|
|
351
366
|
{
|
|
352
367
|
id: "en",
|
|
353
368
|
name: "English"
|
|
@@ -358,49 +373,49 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
358
373
|
}
|
|
359
374
|
]);
|
|
360
375
|
pt(() => {
|
|
361
|
-
a.value = decodeURIComponent(
|
|
362
|
-
var
|
|
363
|
-
|
|
376
|
+
a.value = decodeURIComponent(w("passport_username").replace(/\+/g, " ")), a.value === "" && Vo().then(({ data: $ }) => {
|
|
377
|
+
var z;
|
|
378
|
+
$.code == 0 && (a.value = (z = $.data.name) != null ? z : $.data.displayId);
|
|
364
379
|
});
|
|
365
380
|
});
|
|
366
|
-
function
|
|
367
|
-
for (var
|
|
368
|
-
for (var
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
381
|
+
function w($) {
|
|
382
|
+
for (var z = $ + "=", I = document.cookie.split(";"), Y = 0; Y < I.length; Y++) {
|
|
383
|
+
for (var j = I[Y]; j.charAt(0) == " "; ) j = j.substring(1);
|
|
384
|
+
if (j.indexOf(z) != -1)
|
|
385
|
+
return j.substring(z.length, j.length);
|
|
371
386
|
}
|
|
372
387
|
return "";
|
|
373
388
|
}
|
|
374
|
-
function
|
|
389
|
+
function y() {
|
|
375
390
|
Uo().then(() => {
|
|
376
|
-
const
|
|
377
|
-
window.location.href = `//${Rt()}/?from=${
|
|
391
|
+
const $ = escape(window.location.href);
|
|
392
|
+
window.location.href = `//${Rt()}/?from=${$}#login`;
|
|
378
393
|
});
|
|
379
394
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
395
|
+
function M($) {
|
|
396
|
+
tt.global.locale.value = $, i.value = $, localStorage.setItem("locale", $);
|
|
382
397
|
}
|
|
383
|
-
function
|
|
398
|
+
function D() {
|
|
384
399
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
385
400
|
}
|
|
386
401
|
function L() {
|
|
387
402
|
window.open(l.helpDocUrl, "_blank");
|
|
388
403
|
}
|
|
389
|
-
return (
|
|
390
|
-
const
|
|
391
|
-
return p(),
|
|
392
|
-
|
|
393
|
-
|
|
404
|
+
return ($, z) => {
|
|
405
|
+
const I = x("el-popover"), Y = x("el-tooltip"), j = x("el-avatar"), K = x("el-menu-item"), ne = x("el-icon"), C = x("el-menu");
|
|
406
|
+
return p(), U("div", gn, [
|
|
407
|
+
b("div", vn, [
|
|
408
|
+
b("div", {
|
|
394
409
|
ref_key: "appCatalogButtonRef",
|
|
395
410
|
ref: r,
|
|
396
411
|
class: "icon-wrapper",
|
|
397
412
|
style: { "margin-left": "8px" }
|
|
398
413
|
}, [
|
|
399
|
-
|
|
414
|
+
h(k(an))
|
|
400
415
|
], 512),
|
|
401
|
-
|
|
416
|
+
b("h1", null, R($.title), 1)
|
|
402
417
|
]),
|
|
403
|
-
|
|
418
|
+
h(I, {
|
|
404
419
|
class: "app-popover",
|
|
405
420
|
"virtual-ref": r.value,
|
|
406
421
|
trigger: "click",
|
|
@@ -408,99 +423,111 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
408
423
|
"popper-style": "width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"
|
|
409
424
|
}, {
|
|
410
425
|
default: m(() => [
|
|
411
|
-
|
|
426
|
+
h(tn, { visible: !0 })
|
|
412
427
|
]),
|
|
413
428
|
_: 1
|
|
414
429
|
}, 8, ["virtual-ref"]),
|
|
415
|
-
|
|
416
|
-
|
|
430
|
+
b("div", bn, [
|
|
431
|
+
h(Y, {
|
|
432
|
+
effect: "dark",
|
|
433
|
+
content: k(t)("common.header.workbench"),
|
|
434
|
+
placement: "bottom"
|
|
435
|
+
}, {
|
|
436
|
+
default: m(() => [
|
|
437
|
+
b("div", yn, [
|
|
438
|
+
h(k(_n))
|
|
439
|
+
])
|
|
440
|
+
]),
|
|
441
|
+
_: 1
|
|
442
|
+
}, 8, ["content"]),
|
|
443
|
+
h(Y, {
|
|
417
444
|
effect: "dark",
|
|
418
|
-
content: k(
|
|
445
|
+
content: k(t)("common.header.help"),
|
|
419
446
|
placement: "bottom"
|
|
420
447
|
}, {
|
|
421
448
|
default: m(() => [
|
|
422
|
-
l.helpDocUrl !== void 0 ? (p(),
|
|
449
|
+
l.helpDocUrl !== void 0 ? (p(), U("div", {
|
|
423
450
|
key: 0,
|
|
424
451
|
class: "icon-wrapper",
|
|
425
452
|
onClick: L
|
|
426
453
|
}, [
|
|
427
|
-
|
|
454
|
+
h(k(un))
|
|
428
455
|
])) : B("", !0)
|
|
429
456
|
]),
|
|
430
457
|
_: 1
|
|
431
458
|
}, 8, ["content"]),
|
|
432
|
-
|
|
459
|
+
h(Y, {
|
|
433
460
|
effect: "dark",
|
|
434
|
-
content: k(
|
|
461
|
+
content: k(t)("common.header.notification"),
|
|
435
462
|
placement: "bottom"
|
|
436
463
|
}, {
|
|
437
464
|
default: m(() => [
|
|
438
|
-
|
|
439
|
-
|
|
465
|
+
b("div", wn, [
|
|
466
|
+
h(k(fn))
|
|
440
467
|
])
|
|
441
468
|
]),
|
|
442
469
|
_: 1
|
|
443
470
|
}, 8, ["content"]),
|
|
444
|
-
|
|
445
|
-
|
|
471
|
+
b("div", Sn, [
|
|
472
|
+
h(j, {
|
|
446
473
|
size: 30,
|
|
447
474
|
src: "",
|
|
448
475
|
ref_key: "avatarRef",
|
|
449
|
-
ref:
|
|
476
|
+
ref: o
|
|
450
477
|
}, {
|
|
451
478
|
default: m(() => [
|
|
452
|
-
|
|
479
|
+
b("span", Cn, R(a.value.substring(0, 2)), 1)
|
|
453
480
|
]),
|
|
454
481
|
_: 1
|
|
455
482
|
}, 512),
|
|
456
|
-
|
|
483
|
+
h(I, {
|
|
457
484
|
teleported: !1,
|
|
458
485
|
width: "280",
|
|
459
486
|
effect: "dark",
|
|
460
487
|
ref_key: "popoverRef",
|
|
461
488
|
ref: n,
|
|
462
|
-
"virtual-ref":
|
|
489
|
+
"virtual-ref": o.value,
|
|
463
490
|
trigger: "hover",
|
|
464
491
|
"virtual-triggering": ""
|
|
465
492
|
}, {
|
|
466
493
|
default: m(() => [
|
|
467
|
-
|
|
468
|
-
|
|
494
|
+
b("div", kn, [
|
|
495
|
+
h(j, {
|
|
469
496
|
size: 48,
|
|
470
497
|
src: ""
|
|
471
498
|
}, {
|
|
472
499
|
default: m(() => [
|
|
473
|
-
|
|
500
|
+
b("span", On, R(a.value.substring(0, 2)), 1)
|
|
474
501
|
]),
|
|
475
502
|
_: 1
|
|
476
503
|
}),
|
|
477
|
-
|
|
504
|
+
b("span", null, R(a.value), 1)
|
|
478
505
|
]),
|
|
479
|
-
|
|
506
|
+
h(C, { class: "user-menu" }, {
|
|
480
507
|
default: m(() => [
|
|
481
|
-
|
|
508
|
+
h(K, { onClick: D }, {
|
|
482
509
|
default: m(() => [
|
|
483
|
-
|
|
510
|
+
Q(R(k(t)("common.header.userCenter")), 1)
|
|
484
511
|
]),
|
|
485
512
|
_: 1
|
|
486
513
|
}),
|
|
487
|
-
|
|
514
|
+
h(K, {
|
|
488
515
|
ref_key: "switchLanguageRef",
|
|
489
516
|
ref: s,
|
|
490
517
|
style: { display: "flext", "justify-content": "space-between" }
|
|
491
518
|
}, {
|
|
492
519
|
default: m(() => [
|
|
493
|
-
|
|
494
|
-
|
|
520
|
+
b("span", null, R(k(t)("common.header.switchLanguage")), 1),
|
|
521
|
+
h(ne, { style: { left: "15px" } }, {
|
|
495
522
|
default: m(() => [
|
|
496
|
-
|
|
523
|
+
h(k(ko))
|
|
497
524
|
]),
|
|
498
525
|
_: 1
|
|
499
526
|
})
|
|
500
527
|
]),
|
|
501
528
|
_: 1
|
|
502
529
|
}, 512),
|
|
503
|
-
|
|
530
|
+
h(I, {
|
|
504
531
|
teleported: !1,
|
|
505
532
|
width: "150",
|
|
506
533
|
effect: "dark",
|
|
@@ -512,27 +539,27 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
512
539
|
"popper-style": "height: 80px; left: -165px"
|
|
513
540
|
}, {
|
|
514
541
|
default: m(() => [
|
|
515
|
-
(p(!0),
|
|
542
|
+
(p(!0), U(oe, null, ce(d, (_) => (p(), U("div", {
|
|
516
543
|
class: "select-list",
|
|
517
|
-
onClick: (
|
|
544
|
+
onClick: (P) => M(_.id)
|
|
518
545
|
}, [
|
|
519
|
-
|
|
520
|
-
|
|
546
|
+
b("span", null, R(_.name), 1),
|
|
547
|
+
_.id === i.value ? (p(), V(ne, {
|
|
521
548
|
key: 0,
|
|
522
549
|
style: { color: "#8ba74f" }
|
|
523
550
|
}, {
|
|
524
551
|
default: m(() => [
|
|
525
|
-
|
|
552
|
+
h(k(Oo))
|
|
526
553
|
]),
|
|
527
554
|
_: 1
|
|
528
555
|
})) : B("", !0)
|
|
529
|
-
], 8,
|
|
556
|
+
], 8, xn))), 256))
|
|
530
557
|
]),
|
|
531
558
|
_: 1
|
|
532
559
|
}, 8, ["virtual-ref"]),
|
|
533
|
-
|
|
560
|
+
h(K, { onClick: y }, {
|
|
534
561
|
default: m(() => [
|
|
535
|
-
|
|
562
|
+
Q(R(k(t)("common.header.signOut")), 1)
|
|
536
563
|
]),
|
|
537
564
|
_: 1
|
|
538
565
|
})
|
|
@@ -547,92 +574,96 @@ const fn = { render: pn }, mn = { class: "header" }, hn = { class: "title" }, _n
|
|
|
547
574
|
]);
|
|
548
575
|
};
|
|
549
576
|
}
|
|
550
|
-
}), Gt = /* @__PURE__ */
|
|
577
|
+
}), Gt = /* @__PURE__ */ pe(En, [["__scopeId", "data-v-fa99ec40"]]), $n = { class: "menu-icon-wrapper" }, Pn = { class: "menu-icon-wrapper" }, In = /* @__PURE__ */ _e({
|
|
551
578
|
__name: "SideMenuItem",
|
|
552
579
|
props: {
|
|
553
580
|
menu: {}
|
|
554
581
|
},
|
|
555
582
|
setup(e) {
|
|
556
|
-
const
|
|
557
|
-
return (t, n) => {
|
|
583
|
+
const t = e;
|
|
584
|
+
return Le(() => console.log("menu", t.menu)), (o, n) => {
|
|
558
585
|
const s = x("SideMenuItem", !0), r = x("el-sub-menu"), l = x("el-menu-item");
|
|
559
|
-
return
|
|
586
|
+
return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
|
|
560
587
|
key: 0,
|
|
561
|
-
index:
|
|
588
|
+
index: o.menu.path
|
|
562
589
|
}, {
|
|
563
590
|
title: m(() => {
|
|
564
591
|
var a, i, d;
|
|
565
592
|
return [
|
|
566
|
-
|
|
567
|
-
(p(),
|
|
593
|
+
b("div", $n, [
|
|
594
|
+
(p(), V(et((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
568
595
|
]),
|
|
569
|
-
|
|
596
|
+
b("span", null, R(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
|
|
570
597
|
];
|
|
571
598
|
}),
|
|
572
599
|
default: m(() => [
|
|
573
|
-
(p(!0),
|
|
600
|
+
(p(!0), U(oe, null, ce(o.menu.children, (a) => (p(), V(s, {
|
|
574
601
|
key: a.path,
|
|
575
|
-
route: a
|
|
576
|
-
|
|
602
|
+
route: a,
|
|
603
|
+
menu: a
|
|
604
|
+
}, null, 8, ["route", "menu"]))), 128))
|
|
577
605
|
]),
|
|
578
606
|
_: 1
|
|
579
|
-
}, 8, ["index"])) : (p(),
|
|
607
|
+
}, 8, ["index"])) : (p(), V(l, {
|
|
580
608
|
key: 1,
|
|
581
|
-
index:
|
|
609
|
+
index: t.menu.path,
|
|
582
610
|
style: { height: "40px" }
|
|
583
611
|
}, {
|
|
584
612
|
title: m(() => {
|
|
613
|
+
var a, i;
|
|
614
|
+
return [
|
|
615
|
+
b("span", null, R(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
|
|
616
|
+
];
|
|
617
|
+
}),
|
|
618
|
+
default: m(() => {
|
|
585
619
|
var a;
|
|
586
620
|
return [
|
|
587
|
-
|
|
621
|
+
b("div", Pn, [
|
|
622
|
+
(p(), V(et((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
|
|
623
|
+
])
|
|
588
624
|
];
|
|
589
625
|
}),
|
|
590
|
-
default: m(() => [
|
|
591
|
-
S("div", kn, [
|
|
592
|
-
(p(), A(Xe(t.$props.menu.icon), { class: "menu-icon" }))
|
|
593
|
-
])
|
|
594
|
-
]),
|
|
595
626
|
_: 1
|
|
596
627
|
}, 8, ["index"]));
|
|
597
628
|
};
|
|
598
629
|
}
|
|
599
|
-
}),
|
|
630
|
+
}), Nn = /* @__PURE__ */ pe(In, [["__scopeId", "data-v-ac729b44"]]), he = N({}), Mn = {}, Ct = N([]);
|
|
600
631
|
var Lt = !1;
|
|
601
|
-
function
|
|
602
|
-
return Array.isArray(e) ? (e.length = Math.max(e.length,
|
|
632
|
+
function Ye(e, t, o) {
|
|
633
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
|
|
603
634
|
}
|
|
604
|
-
function
|
|
635
|
+
function lt(e, t) {
|
|
605
636
|
if (Array.isArray(e)) {
|
|
606
|
-
e.splice(
|
|
637
|
+
e.splice(t, 1);
|
|
607
638
|
return;
|
|
608
639
|
}
|
|
609
|
-
delete e[
|
|
640
|
+
delete e[t];
|
|
610
641
|
}
|
|
611
|
-
function
|
|
642
|
+
function An() {
|
|
612
643
|
return jt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
613
644
|
}
|
|
614
645
|
function jt() {
|
|
615
646
|
return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
|
|
616
647
|
}
|
|
617
|
-
const
|
|
618
|
-
let
|
|
619
|
-
function
|
|
648
|
+
const Vn = typeof Proxy == "function", Un = "devtools-plugin:setup", Tn = "plugin:settings:set";
|
|
649
|
+
let Me, ct;
|
|
650
|
+
function Dn() {
|
|
620
651
|
var e;
|
|
621
|
-
return
|
|
652
|
+
return Me !== void 0 || (typeof window != "undefined" && window.performance ? (Me = !0, ct = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Me = !0, ct = globalThis.perf_hooks.performance) : Me = !1), Me;
|
|
622
653
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
654
|
+
function Rn() {
|
|
655
|
+
return Dn() ? ct.now() : Date.now();
|
|
625
656
|
}
|
|
626
|
-
class
|
|
627
|
-
constructor(
|
|
628
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin =
|
|
657
|
+
class Fn {
|
|
658
|
+
constructor(t, o) {
|
|
659
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
|
|
629
660
|
const n = {};
|
|
630
|
-
if (
|
|
631
|
-
for (const l in
|
|
632
|
-
const a =
|
|
661
|
+
if (t.settings)
|
|
662
|
+
for (const l in t.settings) {
|
|
663
|
+
const a = t.settings[l];
|
|
633
664
|
n[l] = a.defaultValue;
|
|
634
665
|
}
|
|
635
|
-
const s = `__vue-devtools-plugin-settings__${
|
|
666
|
+
const s = `__vue-devtools-plugin-settings__${t.id}`;
|
|
636
667
|
let r = Object.assign({}, n);
|
|
637
668
|
try {
|
|
638
669
|
const l = localStorage.getItem(s), a = JSON.parse(l);
|
|
@@ -651,9 +682,9 @@ class Un {
|
|
|
651
682
|
r = l;
|
|
652
683
|
},
|
|
653
684
|
now() {
|
|
654
|
-
return
|
|
685
|
+
return Rn();
|
|
655
686
|
}
|
|
656
|
-
},
|
|
687
|
+
}, o && o.on(Tn, (l, a) => {
|
|
657
688
|
l === this.plugin.id && this.fallbacks.setSettings(a);
|
|
658
689
|
}), this.proxiedOn = new Proxy({}, {
|
|
659
690
|
get: (l, a) => this.target ? this.target.on[a] : (...i) => {
|
|
@@ -677,27 +708,27 @@ class Un {
|
|
|
677
708
|
})
|
|
678
709
|
});
|
|
679
710
|
}
|
|
680
|
-
setRealTarget(
|
|
711
|
+
setRealTarget(t) {
|
|
681
712
|
return ye(this, null, function* () {
|
|
682
|
-
this.target =
|
|
683
|
-
for (const
|
|
684
|
-
this.target.on[
|
|
685
|
-
for (const
|
|
686
|
-
|
|
713
|
+
this.target = t;
|
|
714
|
+
for (const o of this.onQueue)
|
|
715
|
+
this.target.on[o.method](...o.args);
|
|
716
|
+
for (const o of this.targetQueue)
|
|
717
|
+
o.resolve(yield this.target[o.method](...o.args));
|
|
687
718
|
});
|
|
688
719
|
}
|
|
689
720
|
}
|
|
690
|
-
function zt(e,
|
|
691
|
-
const
|
|
721
|
+
function zt(e, t) {
|
|
722
|
+
const o = e, n = jt(), s = An(), r = Vn && o.enableEarlyProxy;
|
|
692
723
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
693
|
-
s.emit(
|
|
724
|
+
s.emit(Un, e, t);
|
|
694
725
|
else {
|
|
695
|
-
const l = r ? new
|
|
726
|
+
const l = r ? new Fn(o, s) : null;
|
|
696
727
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
697
|
-
pluginDescriptor:
|
|
698
|
-
setupFn:
|
|
728
|
+
pluginDescriptor: o,
|
|
729
|
+
setupFn: t,
|
|
699
730
|
proxy: l
|
|
700
|
-
}), l &&
|
|
731
|
+
}), l && t(l.proxiedTarget);
|
|
701
732
|
}
|
|
702
733
|
}
|
|
703
734
|
/*!
|
|
@@ -705,8 +736,8 @@ function zt(e, o) {
|
|
|
705
736
|
* (c) 2024 Eduardo San Martin Morote
|
|
706
737
|
* @license MIT
|
|
707
738
|
*/
|
|
708
|
-
let
|
|
709
|
-
const
|
|
739
|
+
let Ge;
|
|
740
|
+
const qe = (e) => Ge = e, qt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
710
741
|
/* istanbul ignore next */
|
|
711
742
|
Symbol()
|
|
712
743
|
);
|
|
@@ -717,71 +748,71 @@ var ve;
|
|
|
717
748
|
(function(e) {
|
|
718
749
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
719
750
|
})(ve || (ve = {}));
|
|
720
|
-
const Ie = typeof window != "undefined",
|
|
721
|
-
function
|
|
722
|
-
return
|
|
751
|
+
const Ie = typeof window != "undefined", kt = 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 };
|
|
752
|
+
function Gn(e, { autoBom: t = !1 } = {}) {
|
|
753
|
+
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;
|
|
723
754
|
}
|
|
724
|
-
function mt(e,
|
|
755
|
+
function mt(e, t, o) {
|
|
725
756
|
const n = new XMLHttpRequest();
|
|
726
757
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
727
|
-
Jt(n.response,
|
|
758
|
+
Jt(n.response, t, o);
|
|
728
759
|
}, n.onerror = function() {
|
|
729
760
|
console.error("could not download file");
|
|
730
761
|
}, n.send();
|
|
731
762
|
}
|
|
732
763
|
function Bt(e) {
|
|
733
|
-
const
|
|
734
|
-
|
|
764
|
+
const t = new XMLHttpRequest();
|
|
765
|
+
t.open("HEAD", e, !1);
|
|
735
766
|
try {
|
|
736
|
-
|
|
737
|
-
} catch (
|
|
767
|
+
t.send();
|
|
768
|
+
} catch (o) {
|
|
738
769
|
}
|
|
739
|
-
return
|
|
770
|
+
return t.status >= 200 && t.status <= 299;
|
|
740
771
|
}
|
|
741
|
-
function
|
|
772
|
+
function Qe(e) {
|
|
742
773
|
try {
|
|
743
774
|
e.dispatchEvent(new MouseEvent("click"));
|
|
744
|
-
} catch (
|
|
745
|
-
const
|
|
746
|
-
|
|
775
|
+
} catch (t) {
|
|
776
|
+
const o = document.createEvent("MouseEvents");
|
|
777
|
+
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
|
|
747
778
|
}
|
|
748
779
|
}
|
|
749
|
-
const
|
|
780
|
+
const Ke = typeof navigator == "object" ? navigator : { userAgent: "" }, Ht = /Macintosh/.test(Ke.userAgent) && /AppleWebKit/.test(Ke.userAgent) && !/Safari/.test(Ke.userAgent), Jt = Ie ? (
|
|
750
781
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
751
|
-
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Ht ?
|
|
782
|
+
typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Ht ? Ln : (
|
|
752
783
|
// Use msSaveOrOpenBlob as a second approach
|
|
753
|
-
"msSaveOrOpenBlob" in
|
|
784
|
+
"msSaveOrOpenBlob" in Ke ? jn : (
|
|
754
785
|
// Fallback to using FileReader and a popup
|
|
755
|
-
|
|
786
|
+
zn
|
|
756
787
|
)
|
|
757
788
|
)
|
|
758
789
|
) : () => {
|
|
759
790
|
};
|
|
760
|
-
function
|
|
791
|
+
function Ln(e, t = "download", o) {
|
|
761
792
|
const n = document.createElement("a");
|
|
762
|
-
n.download =
|
|
793
|
+
n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Bt(n.href) ? mt(e, t, o) : (n.target = "_blank", Qe(n)) : Qe(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
763
794
|
URL.revokeObjectURL(n.href);
|
|
764
795
|
}, 4e4), setTimeout(function() {
|
|
765
|
-
|
|
796
|
+
Qe(n);
|
|
766
797
|
}, 0));
|
|
767
798
|
}
|
|
768
|
-
function
|
|
799
|
+
function jn(e, t = "download", o) {
|
|
769
800
|
if (typeof e == "string")
|
|
770
801
|
if (Bt(e))
|
|
771
|
-
mt(e,
|
|
802
|
+
mt(e, t, o);
|
|
772
803
|
else {
|
|
773
804
|
const n = document.createElement("a");
|
|
774
805
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
775
|
-
|
|
806
|
+
Qe(n);
|
|
776
807
|
});
|
|
777
808
|
}
|
|
778
809
|
else
|
|
779
|
-
navigator.msSaveOrOpenBlob(
|
|
810
|
+
navigator.msSaveOrOpenBlob(Gn(e, o), t);
|
|
780
811
|
}
|
|
781
|
-
function
|
|
812
|
+
function zn(e, t, o, n) {
|
|
782
813
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
783
|
-
return mt(e,
|
|
784
|
-
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(
|
|
814
|
+
return mt(e, t, o);
|
|
815
|
+
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(kt.HTMLElement)) || "safari" in kt, l = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
785
816
|
if ((l || s && r || Ht) && typeof FileReader != "undefined") {
|
|
786
817
|
const a = new FileReader();
|
|
787
818
|
a.onloadend = function() {
|
|
@@ -797,9 +828,9 @@ function Fn(e, o, t, n) {
|
|
|
797
828
|
}, 4e4);
|
|
798
829
|
}
|
|
799
830
|
}
|
|
800
|
-
function ee(e,
|
|
801
|
-
const
|
|
802
|
-
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(
|
|
831
|
+
function ee(e, t) {
|
|
832
|
+
const o = "🍍 " + e;
|
|
833
|
+
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
|
|
803
834
|
}
|
|
804
835
|
function ht(e) {
|
|
805
836
|
return "_a" in e && "install" in e;
|
|
@@ -811,74 +842,74 @@ function Wt() {
|
|
|
811
842
|
function Yt(e) {
|
|
812
843
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (ee('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
813
844
|
}
|
|
814
|
-
function
|
|
845
|
+
function qn(e) {
|
|
815
846
|
return ye(this, null, function* () {
|
|
816
847
|
if (!Wt())
|
|
817
848
|
try {
|
|
818
849
|
yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), ee("Global state copied to clipboard.");
|
|
819
|
-
} catch (
|
|
820
|
-
if (Yt(
|
|
850
|
+
} catch (t) {
|
|
851
|
+
if (Yt(t))
|
|
821
852
|
return;
|
|
822
|
-
ee("Failed to serialize the state. Check the console for more details.", "error"), console.error(
|
|
853
|
+
ee("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
823
854
|
}
|
|
824
855
|
});
|
|
825
856
|
}
|
|
826
|
-
function
|
|
857
|
+
function Bn(e) {
|
|
827
858
|
return ye(this, null, function* () {
|
|
828
859
|
if (!Wt())
|
|
829
860
|
try {
|
|
830
861
|
Qt(e, JSON.parse(yield navigator.clipboard.readText())), ee("Global state pasted from clipboard.");
|
|
831
|
-
} catch (
|
|
832
|
-
if (Yt(
|
|
862
|
+
} catch (t) {
|
|
863
|
+
if (Yt(t))
|
|
833
864
|
return;
|
|
834
|
-
ee("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(
|
|
865
|
+
ee("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
835
866
|
}
|
|
836
867
|
});
|
|
837
868
|
}
|
|
838
|
-
function
|
|
869
|
+
function Hn(e) {
|
|
839
870
|
return ye(this, null, function* () {
|
|
840
871
|
try {
|
|
841
872
|
Jt(new Blob([JSON.stringify(e.state.value)], {
|
|
842
873
|
type: "text/plain;charset=utf-8"
|
|
843
874
|
}), "pinia-state.json");
|
|
844
|
-
} catch (
|
|
845
|
-
ee("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(
|
|
875
|
+
} catch (t) {
|
|
876
|
+
ee("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
846
877
|
}
|
|
847
878
|
});
|
|
848
879
|
}
|
|
849
880
|
let we;
|
|
850
|
-
function
|
|
881
|
+
function Jn() {
|
|
851
882
|
we || (we = document.createElement("input"), we.type = "file", we.accept = ".json");
|
|
852
883
|
function e() {
|
|
853
|
-
return new Promise((
|
|
884
|
+
return new Promise((t, o) => {
|
|
854
885
|
we.onchange = () => ye(this, null, function* () {
|
|
855
886
|
const n = we.files;
|
|
856
887
|
if (!n)
|
|
857
|
-
return
|
|
888
|
+
return t(null);
|
|
858
889
|
const s = n.item(0);
|
|
859
|
-
return
|
|
860
|
-
}), we.oncancel = () =>
|
|
890
|
+
return t(s ? { text: yield s.text(), file: s } : null);
|
|
891
|
+
}), we.oncancel = () => t(null), we.onerror = o, we.click();
|
|
861
892
|
});
|
|
862
893
|
}
|
|
863
894
|
return e;
|
|
864
895
|
}
|
|
865
|
-
function
|
|
896
|
+
function Wn(e) {
|
|
866
897
|
return ye(this, null, function* () {
|
|
867
898
|
try {
|
|
868
|
-
const
|
|
869
|
-
if (!
|
|
899
|
+
const o = yield Jn()();
|
|
900
|
+
if (!o)
|
|
870
901
|
return;
|
|
871
|
-
const { text: n, file: s } =
|
|
902
|
+
const { text: n, file: s } = o;
|
|
872
903
|
Qt(e, JSON.parse(n)), ee(`Global state imported from "${s.name}".`);
|
|
873
|
-
} catch (
|
|
874
|
-
ee("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(
|
|
904
|
+
} catch (t) {
|
|
905
|
+
ee("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
875
906
|
}
|
|
876
907
|
});
|
|
877
908
|
}
|
|
878
|
-
function Qt(e,
|
|
879
|
-
for (const
|
|
880
|
-
const n = e.state.value[
|
|
881
|
-
n ? Object.assign(n, o
|
|
909
|
+
function Qt(e, t) {
|
|
910
|
+
for (const o in t) {
|
|
911
|
+
const n = e.state.value[o];
|
|
912
|
+
n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
|
|
882
913
|
}
|
|
883
914
|
}
|
|
884
915
|
function me(e) {
|
|
@@ -888,26 +919,26 @@ function me(e) {
|
|
|
888
919
|
}
|
|
889
920
|
};
|
|
890
921
|
}
|
|
891
|
-
const Kt = "🍍 Pinia (root)",
|
|
892
|
-
function
|
|
922
|
+
const Kt = "🍍 Pinia (root)", Xe = "_root";
|
|
923
|
+
function Yn(e) {
|
|
893
924
|
return ht(e) ? {
|
|
894
|
-
id:
|
|
925
|
+
id: Xe,
|
|
895
926
|
label: Kt
|
|
896
927
|
} : {
|
|
897
928
|
id: e.$id,
|
|
898
929
|
label: e.$id
|
|
899
930
|
};
|
|
900
931
|
}
|
|
901
|
-
function
|
|
932
|
+
function Qn(e) {
|
|
902
933
|
if (ht(e)) {
|
|
903
|
-
const
|
|
934
|
+
const o = Array.from(e._s.keys()), n = e._s;
|
|
904
935
|
return {
|
|
905
|
-
state:
|
|
936
|
+
state: o.map((r) => ({
|
|
906
937
|
editable: !0,
|
|
907
938
|
key: r,
|
|
908
939
|
value: e.state.value[r]
|
|
909
940
|
})),
|
|
910
|
-
getters:
|
|
941
|
+
getters: o.filter((r) => n.get(r)._getters).map((r) => {
|
|
911
942
|
const l = n.get(r);
|
|
912
943
|
return {
|
|
913
944
|
editable: !1,
|
|
@@ -917,25 +948,25 @@ function Hn(e) {
|
|
|
917
948
|
})
|
|
918
949
|
};
|
|
919
950
|
}
|
|
920
|
-
const
|
|
921
|
-
state: Object.keys(e.$state).map((
|
|
951
|
+
const t = {
|
|
952
|
+
state: Object.keys(e.$state).map((o) => ({
|
|
922
953
|
editable: !0,
|
|
923
|
-
key:
|
|
924
|
-
value: e.$state[
|
|
954
|
+
key: o,
|
|
955
|
+
value: e.$state[o]
|
|
925
956
|
}))
|
|
926
957
|
};
|
|
927
|
-
return e._getters && e._getters.length && (
|
|
958
|
+
return e._getters && e._getters.length && (t.getters = e._getters.map((o) => ({
|
|
928
959
|
editable: !1,
|
|
929
|
-
key:
|
|
930
|
-
value: e[
|
|
931
|
-
}))), e._customProperties.size && (
|
|
960
|
+
key: o,
|
|
961
|
+
value: e[o]
|
|
962
|
+
}))), e._customProperties.size && (t.customProperties = Array.from(e._customProperties).map((o) => ({
|
|
932
963
|
editable: !0,
|
|
933
|
-
key:
|
|
934
|
-
value: e[
|
|
935
|
-
}))),
|
|
964
|
+
key: o,
|
|
965
|
+
value: e[o]
|
|
966
|
+
}))), t;
|
|
936
967
|
}
|
|
937
|
-
function
|
|
938
|
-
return e ? Array.isArray(e) ? e.reduce((
|
|
968
|
+
function Kn(e) {
|
|
969
|
+
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), {
|
|
939
970
|
oldValue: {},
|
|
940
971
|
keys: [],
|
|
941
972
|
operations: [],
|
|
@@ -947,7 +978,7 @@ function Jn(e) {
|
|
|
947
978
|
newValue: e.newValue
|
|
948
979
|
} : {};
|
|
949
980
|
}
|
|
950
|
-
function
|
|
981
|
+
function Xn(e) {
|
|
951
982
|
switch (e) {
|
|
952
983
|
case ve.direct:
|
|
953
984
|
return "mutation";
|
|
@@ -960,22 +991,22 @@ function Wn(e) {
|
|
|
960
991
|
}
|
|
961
992
|
}
|
|
962
993
|
let Ve = !0;
|
|
963
|
-
const
|
|
964
|
-
function
|
|
994
|
+
const Ze = [], $e = "pinia:mutations", te = "pinia", { assign: Zn } = Object, ot = (e) => "🍍 " + e;
|
|
995
|
+
function es(e, t) {
|
|
965
996
|
zt({
|
|
966
997
|
id: "dev.esm.pinia",
|
|
967
998
|
label: "Pinia 🍍",
|
|
968
999
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
969
1000
|
packageName: "pinia",
|
|
970
1001
|
homepage: "https://pinia.vuejs.org",
|
|
971
|
-
componentStateTypes:
|
|
1002
|
+
componentStateTypes: Ze,
|
|
972
1003
|
app: e
|
|
973
|
-
}, (
|
|
974
|
-
typeof
|
|
1004
|
+
}, (o) => {
|
|
1005
|
+
typeof o.now != "function" && ee("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({
|
|
975
1006
|
id: $e,
|
|
976
1007
|
label: "Pinia 🍍",
|
|
977
1008
|
color: 15064968
|
|
978
|
-
}),
|
|
1009
|
+
}), o.addInspector({
|
|
979
1010
|
id: te,
|
|
980
1011
|
label: "Pinia 🍍",
|
|
981
1012
|
icon: "storage",
|
|
@@ -984,28 +1015,28 @@ function Qn(e, o) {
|
|
|
984
1015
|
{
|
|
985
1016
|
icon: "content_copy",
|
|
986
1017
|
action: () => {
|
|
987
|
-
|
|
1018
|
+
qn(t);
|
|
988
1019
|
},
|
|
989
1020
|
tooltip: "Serialize and copy the state"
|
|
990
1021
|
},
|
|
991
1022
|
{
|
|
992
1023
|
icon: "content_paste",
|
|
993
1024
|
action: () => ye(this, null, function* () {
|
|
994
|
-
yield
|
|
1025
|
+
yield Bn(t), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
995
1026
|
}),
|
|
996
1027
|
tooltip: "Replace the state with the content of your clipboard"
|
|
997
1028
|
},
|
|
998
1029
|
{
|
|
999
1030
|
icon: "save",
|
|
1000
1031
|
action: () => {
|
|
1001
|
-
|
|
1032
|
+
Hn(t);
|
|
1002
1033
|
},
|
|
1003
1034
|
tooltip: "Save the state as a JSON file"
|
|
1004
1035
|
},
|
|
1005
1036
|
{
|
|
1006
1037
|
icon: "folder_open",
|
|
1007
1038
|
action: () => ye(this, null, function* () {
|
|
1008
|
-
yield
|
|
1039
|
+
yield Wn(t), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
1009
1040
|
}),
|
|
1010
1041
|
tooltip: "Import the state from a JSON file"
|
|
1011
1042
|
}
|
|
@@ -1015,23 +1046,23 @@ function Qn(e, o) {
|
|
|
1015
1046
|
icon: "restore",
|
|
1016
1047
|
tooltip: 'Reset the state (with "$reset")',
|
|
1017
1048
|
action: (n) => {
|
|
1018
|
-
const s =
|
|
1049
|
+
const s = t._s.get(n);
|
|
1019
1050
|
s ? typeof s.$reset != "function" ? ee(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), ee(`Store "${n}" reset.`)) : ee(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
1020
1051
|
}
|
|
1021
1052
|
}
|
|
1022
1053
|
]
|
|
1023
|
-
}),
|
|
1054
|
+
}), o.on.inspectComponent((n, s) => {
|
|
1024
1055
|
const r = n.componentInstance && n.componentInstance.proxy;
|
|
1025
1056
|
if (r && r._pStores) {
|
|
1026
1057
|
const l = n.componentInstance.proxy._pStores;
|
|
1027
1058
|
Object.values(l).forEach((a) => {
|
|
1028
1059
|
n.instanceData.state.push({
|
|
1029
|
-
type:
|
|
1060
|
+
type: ot(a.$id),
|
|
1030
1061
|
key: "state",
|
|
1031
1062
|
editable: !0,
|
|
1032
1063
|
value: a._isOptionsAPI ? {
|
|
1033
1064
|
_custom: {
|
|
1034
|
-
value:
|
|
1065
|
+
value: je(a.$state),
|
|
1035
1066
|
actions: [
|
|
1036
1067
|
{
|
|
1037
1068
|
icon: "restore",
|
|
@@ -1045,43 +1076,43 @@ function Qn(e, o) {
|
|
|
1045
1076
|
Object.keys(a.$state).reduce((i, d) => (i[d] = a.$state[d], i), {})
|
|
1046
1077
|
)
|
|
1047
1078
|
}), a._getters && a._getters.length && n.instanceData.state.push({
|
|
1048
|
-
type:
|
|
1079
|
+
type: ot(a.$id),
|
|
1049
1080
|
key: "getters",
|
|
1050
1081
|
editable: !1,
|
|
1051
1082
|
value: a._getters.reduce((i, d) => {
|
|
1052
1083
|
try {
|
|
1053
1084
|
i[d] = a[d];
|
|
1054
|
-
} catch (
|
|
1055
|
-
i[d] =
|
|
1085
|
+
} catch (w) {
|
|
1086
|
+
i[d] = w;
|
|
1056
1087
|
}
|
|
1057
1088
|
return i;
|
|
1058
1089
|
}, {})
|
|
1059
1090
|
});
|
|
1060
1091
|
});
|
|
1061
1092
|
}
|
|
1062
|
-
}),
|
|
1093
|
+
}), o.on.getInspectorTree((n) => {
|
|
1063
1094
|
if (n.app === e && n.inspectorId === te) {
|
|
1064
|
-
let s = [
|
|
1065
|
-
s = s.concat(Array.from(
|
|
1095
|
+
let s = [t];
|
|
1096
|
+
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()) : Kt.toLowerCase().includes(n.filter.toLowerCase())) : s).map(Yn);
|
|
1066
1097
|
}
|
|
1067
|
-
}), globalThis.$pinia =
|
|
1098
|
+
}), globalThis.$pinia = t, o.on.getInspectorState((n) => {
|
|
1068
1099
|
if (n.app === e && n.inspectorId === te) {
|
|
1069
|
-
const s = n.nodeId ===
|
|
1100
|
+
const s = n.nodeId === Xe ? t : t._s.get(n.nodeId);
|
|
1070
1101
|
if (!s)
|
|
1071
1102
|
return;
|
|
1072
|
-
s && (n.nodeId !==
|
|
1103
|
+
s && (n.nodeId !== Xe && (globalThis.$store = je(s)), n.state = Qn(s));
|
|
1073
1104
|
}
|
|
1074
|
-
}),
|
|
1105
|
+
}), o.on.editInspectorState((n, s) => {
|
|
1075
1106
|
if (n.app === e && n.inspectorId === te) {
|
|
1076
|
-
const r = n.nodeId ===
|
|
1107
|
+
const r = n.nodeId === Xe ? t : t._s.get(n.nodeId);
|
|
1077
1108
|
if (!r)
|
|
1078
1109
|
return ee(`store "${n.nodeId}" not found`, "error");
|
|
1079
1110
|
const { path: l } = n;
|
|
1080
1111
|
ht(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Ve = !1, n.set(r, l, n.state.value), Ve = !0;
|
|
1081
1112
|
}
|
|
1082
|
-
}),
|
|
1113
|
+
}), o.on.editComponentState((n) => {
|
|
1083
1114
|
if (n.type.startsWith("🍍")) {
|
|
1084
|
-
const s = n.type.replace(/^🍍\s*/, ""), r =
|
|
1115
|
+
const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
|
|
1085
1116
|
if (!r)
|
|
1086
1117
|
return ee(`store "${s}" not found`, "error");
|
|
1087
1118
|
const { path: l } = n;
|
|
@@ -1094,14 +1125,14 @@ Only state can be modified.`);
|
|
|
1094
1125
|
});
|
|
1095
1126
|
});
|
|
1096
1127
|
}
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1128
|
+
function ts(e, t) {
|
|
1129
|
+
Ze.includes(ot(t.$id)) || Ze.push(ot(t.$id)), zt({
|
|
1099
1130
|
id: "dev.esm.pinia",
|
|
1100
1131
|
label: "Pinia 🍍",
|
|
1101
1132
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1102
1133
|
packageName: "pinia",
|
|
1103
1134
|
homepage: "https://pinia.vuejs.org",
|
|
1104
|
-
componentStateTypes:
|
|
1135
|
+
componentStateTypes: Ze,
|
|
1105
1136
|
app: e,
|
|
1106
1137
|
settings: {
|
|
1107
1138
|
logStoreChanges: {
|
|
@@ -1115,41 +1146,41 @@ function Kn(e, o) {
|
|
|
1115
1146
|
// defaultValue: true,
|
|
1116
1147
|
// },
|
|
1117
1148
|
}
|
|
1118
|
-
}, (
|
|
1119
|
-
const n = typeof
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1149
|
+
}, (o) => {
|
|
1150
|
+
const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
|
|
1151
|
+
t.$onAction(({ after: l, onError: a, name: i, args: d }) => {
|
|
1152
|
+
const w = Xt++;
|
|
1153
|
+
o.addTimelineEvent({
|
|
1123
1154
|
layerId: $e,
|
|
1124
1155
|
event: {
|
|
1125
1156
|
time: n(),
|
|
1126
1157
|
title: "🛫 " + i,
|
|
1127
1158
|
subtitle: "start",
|
|
1128
1159
|
data: {
|
|
1129
|
-
store: me(
|
|
1160
|
+
store: me(t.$id),
|
|
1130
1161
|
action: me(i),
|
|
1131
1162
|
args: d
|
|
1132
1163
|
},
|
|
1133
|
-
groupId:
|
|
1164
|
+
groupId: w
|
|
1134
1165
|
}
|
|
1135
|
-
}), l((
|
|
1136
|
-
|
|
1166
|
+
}), l((y) => {
|
|
1167
|
+
ke = void 0, o.addTimelineEvent({
|
|
1137
1168
|
layerId: $e,
|
|
1138
1169
|
event: {
|
|
1139
1170
|
time: n(),
|
|
1140
1171
|
title: "🛬 " + i,
|
|
1141
1172
|
subtitle: "end",
|
|
1142
1173
|
data: {
|
|
1143
|
-
store: me(
|
|
1174
|
+
store: me(t.$id),
|
|
1144
1175
|
action: me(i),
|
|
1145
1176
|
args: d,
|
|
1146
|
-
result:
|
|
1177
|
+
result: y
|
|
1147
1178
|
},
|
|
1148
|
-
groupId:
|
|
1179
|
+
groupId: w
|
|
1149
1180
|
}
|
|
1150
1181
|
});
|
|
1151
|
-
}), a((
|
|
1152
|
-
|
|
1182
|
+
}), a((y) => {
|
|
1183
|
+
ke = void 0, o.addTimelineEvent({
|
|
1153
1184
|
layerId: $e,
|
|
1154
1185
|
event: {
|
|
1155
1186
|
time: n(),
|
|
@@ -1157,18 +1188,18 @@ function Kn(e, o) {
|
|
|
1157
1188
|
title: "💥 " + i,
|
|
1158
1189
|
subtitle: "end",
|
|
1159
1190
|
data: {
|
|
1160
|
-
store: me(
|
|
1191
|
+
store: me(t.$id),
|
|
1161
1192
|
action: me(i),
|
|
1162
1193
|
args: d,
|
|
1163
|
-
error:
|
|
1194
|
+
error: y
|
|
1164
1195
|
},
|
|
1165
|
-
groupId:
|
|
1196
|
+
groupId: w
|
|
1166
1197
|
}
|
|
1167
1198
|
});
|
|
1168
1199
|
});
|
|
1169
|
-
}, !0),
|
|
1170
|
-
Se(() => k(
|
|
1171
|
-
|
|
1200
|
+
}, !0), t._customProperties.forEach((l) => {
|
|
1201
|
+
Se(() => k(t[l]), (a, i) => {
|
|
1202
|
+
o.notifyComponentUpdate(), o.sendInspectorState(te), Ve && o.addTimelineEvent({
|
|
1172
1203
|
layerId: $e,
|
|
1173
1204
|
event: {
|
|
1174
1205
|
time: n(),
|
|
@@ -1178,18 +1209,18 @@ function Kn(e, o) {
|
|
|
1178
1209
|
newValue: a,
|
|
1179
1210
|
oldValue: i
|
|
1180
1211
|
},
|
|
1181
|
-
groupId:
|
|
1212
|
+
groupId: ke
|
|
1182
1213
|
}
|
|
1183
1214
|
});
|
|
1184
1215
|
}, { deep: !0 });
|
|
1185
|
-
}),
|
|
1186
|
-
if (
|
|
1216
|
+
}), t.$subscribe(({ events: l, type: a }, i) => {
|
|
1217
|
+
if (o.notifyComponentUpdate(), o.sendInspectorState(te), !Ve)
|
|
1187
1218
|
return;
|
|
1188
1219
|
const d = {
|
|
1189
1220
|
time: n(),
|
|
1190
|
-
title:
|
|
1191
|
-
data:
|
|
1192
|
-
groupId:
|
|
1221
|
+
title: Xn(a),
|
|
1222
|
+
data: Zn({ store: me(t.$id) }, Kn(l)),
|
|
1223
|
+
groupId: ke
|
|
1193
1224
|
};
|
|
1194
1225
|
a === ve.patchFunction ? d.subtitle = "⤵️" : a === ve.patchObject ? d.subtitle = "🧩" : l && !Array.isArray(l) && (d.subtitle = l.type), l && (d.data["rawEvent(s)"] = {
|
|
1195
1226
|
_custom: {
|
|
@@ -1198,185 +1229,185 @@ function Kn(e, o) {
|
|
|
1198
1229
|
tooltip: "raw DebuggerEvent[]",
|
|
1199
1230
|
value: l
|
|
1200
1231
|
}
|
|
1201
|
-
}),
|
|
1232
|
+
}), o.addTimelineEvent({
|
|
1202
1233
|
layerId: $e,
|
|
1203
1234
|
event: d
|
|
1204
1235
|
});
|
|
1205
1236
|
}, { detached: !0, flush: "sync" });
|
|
1206
|
-
const s =
|
|
1207
|
-
|
|
1208
|
-
s(l),
|
|
1237
|
+
const s = t._hotUpdate;
|
|
1238
|
+
t._hotUpdate = Pe((l) => {
|
|
1239
|
+
s(l), o.addTimelineEvent({
|
|
1209
1240
|
layerId: $e,
|
|
1210
1241
|
event: {
|
|
1211
1242
|
time: n(),
|
|
1212
|
-
title: "🔥 " +
|
|
1243
|
+
title: "🔥 " + t.$id,
|
|
1213
1244
|
subtitle: "HMR update",
|
|
1214
1245
|
data: {
|
|
1215
|
-
store: me(
|
|
1246
|
+
store: me(t.$id),
|
|
1216
1247
|
info: me("HMR update")
|
|
1217
1248
|
}
|
|
1218
1249
|
}
|
|
1219
|
-
}),
|
|
1250
|
+
}), o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te);
|
|
1220
1251
|
});
|
|
1221
|
-
const { $dispose: r } =
|
|
1222
|
-
|
|
1223
|
-
r(),
|
|
1224
|
-
},
|
|
1252
|
+
const { $dispose: r } = t;
|
|
1253
|
+
t.$dispose = () => {
|
|
1254
|
+
r(), o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te), o.getSettings().logStoreChanges && ee(`Disposed "${t.$id}" store 🗑`);
|
|
1255
|
+
}, o.notifyComponentUpdate(), o.sendInspectorTree(te), o.sendInspectorState(te), o.getSettings().logStoreChanges && ee(`"${t.$id}" store installed 🆕`);
|
|
1225
1256
|
});
|
|
1226
1257
|
}
|
|
1227
|
-
let Xt = 0,
|
|
1228
|
-
function
|
|
1229
|
-
const n =
|
|
1258
|
+
let Xt = 0, ke;
|
|
1259
|
+
function Ot(e, t, o) {
|
|
1260
|
+
const n = t.reduce((s, r) => (s[r] = je(e)[r], s), {});
|
|
1230
1261
|
for (const s in n)
|
|
1231
1262
|
e[s] = function() {
|
|
1232
|
-
const r = Xt, l =
|
|
1263
|
+
const r = Xt, l = o ? new Proxy(e, {
|
|
1233
1264
|
get(...i) {
|
|
1234
|
-
return
|
|
1265
|
+
return ke = r, Reflect.get(...i);
|
|
1235
1266
|
},
|
|
1236
1267
|
set(...i) {
|
|
1237
|
-
return
|
|
1268
|
+
return ke = r, Reflect.set(...i);
|
|
1238
1269
|
}
|
|
1239
1270
|
}) : e;
|
|
1240
|
-
|
|
1271
|
+
ke = r;
|
|
1241
1272
|
const a = n[s].apply(l, arguments);
|
|
1242
|
-
return
|
|
1273
|
+
return ke = void 0, a;
|
|
1243
1274
|
};
|
|
1244
1275
|
}
|
|
1245
|
-
function
|
|
1246
|
-
if (!
|
|
1247
|
-
if (
|
|
1248
|
-
|
|
1249
|
-
const n =
|
|
1250
|
-
|
|
1251
|
-
n.apply(this, arguments),
|
|
1276
|
+
function os({ app: e, store: t, options: o }) {
|
|
1277
|
+
if (!t.$id.startsWith("__hot:")) {
|
|
1278
|
+
if (t._isOptionsAPI = !!o.state, !t._p._testing) {
|
|
1279
|
+
Ot(t, Object.keys(o.actions), t._isOptionsAPI);
|
|
1280
|
+
const n = t._hotUpdate;
|
|
1281
|
+
je(t)._hotUpdate = function(s) {
|
|
1282
|
+
n.apply(this, arguments), Ot(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1252
1283
|
};
|
|
1253
1284
|
}
|
|
1254
|
-
|
|
1285
|
+
ts(
|
|
1255
1286
|
e,
|
|
1256
1287
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
1257
|
-
|
|
1288
|
+
t
|
|
1258
1289
|
);
|
|
1259
1290
|
}
|
|
1260
1291
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const e =
|
|
1263
|
-
let
|
|
1292
|
+
function ns() {
|
|
1293
|
+
const e = Mt(!0), t = e.run(() => N({}));
|
|
1294
|
+
let o = [], n = [];
|
|
1264
1295
|
const s = Pe({
|
|
1265
1296
|
install(r) {
|
|
1266
|
-
|
|
1297
|
+
qe(s), s._a = r, r.provide(qt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie && es(r, s), n.forEach((l) => o.push(l)), n = [];
|
|
1267
1298
|
},
|
|
1268
1299
|
use(r) {
|
|
1269
|
-
return !this._a && !Lt ? n.push(r) :
|
|
1300
|
+
return !this._a && !Lt ? n.push(r) : o.push(r), this;
|
|
1270
1301
|
},
|
|
1271
|
-
_p:
|
|
1302
|
+
_p: o,
|
|
1272
1303
|
// it's actually undefined here
|
|
1273
1304
|
// @ts-expect-error
|
|
1274
1305
|
_a: null,
|
|
1275
1306
|
_e: e,
|
|
1276
1307
|
_s: /* @__PURE__ */ new Map(),
|
|
1277
|
-
state:
|
|
1308
|
+
state: t
|
|
1278
1309
|
});
|
|
1279
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(
|
|
1310
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(os), s;
|
|
1280
1311
|
}
|
|
1281
|
-
function Zt(e,
|
|
1282
|
-
for (const
|
|
1283
|
-
const n = o
|
|
1284
|
-
if (!(
|
|
1312
|
+
function Zt(e, t) {
|
|
1313
|
+
for (const o in t) {
|
|
1314
|
+
const n = t[o];
|
|
1315
|
+
if (!(o in e))
|
|
1285
1316
|
continue;
|
|
1286
|
-
const s = e[
|
|
1287
|
-
Ne(s) && Ne(n) && !
|
|
1317
|
+
const s = e[o];
|
|
1318
|
+
Ne(s) && Ne(n) && !ze(n) && !ft(n) ? e[o] = Zt(s, n) : e[o] = n;
|
|
1288
1319
|
}
|
|
1289
1320
|
return e;
|
|
1290
1321
|
}
|
|
1291
1322
|
const eo = () => {
|
|
1292
1323
|
};
|
|
1293
|
-
function
|
|
1294
|
-
e.push(
|
|
1324
|
+
function xt(e, t, o, n = eo) {
|
|
1325
|
+
e.push(t);
|
|
1295
1326
|
const s = () => {
|
|
1296
|
-
const r = e.indexOf(
|
|
1327
|
+
const r = e.indexOf(t);
|
|
1297
1328
|
r > -1 && (e.splice(r, 1), n());
|
|
1298
1329
|
};
|
|
1299
|
-
return !
|
|
1330
|
+
return !o && bo() && yo(s), s;
|
|
1300
1331
|
}
|
|
1301
|
-
function
|
|
1302
|
-
e.slice().forEach((
|
|
1303
|
-
|
|
1332
|
+
function Ae(e, ...t) {
|
|
1333
|
+
e.slice().forEach((o) => {
|
|
1334
|
+
o(...t);
|
|
1304
1335
|
});
|
|
1305
1336
|
}
|
|
1306
|
-
const
|
|
1307
|
-
function ut(e,
|
|
1308
|
-
e instanceof Map &&
|
|
1309
|
-
for (const
|
|
1310
|
-
if (!
|
|
1337
|
+
const ss = (e) => e(), Et = Symbol(), it = Symbol();
|
|
1338
|
+
function ut(e, t) {
|
|
1339
|
+
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);
|
|
1340
|
+
for (const o in t) {
|
|
1341
|
+
if (!t.hasOwnProperty(o))
|
|
1311
1342
|
continue;
|
|
1312
|
-
const n = o
|
|
1313
|
-
Ne(s) && Ne(n) && e.hasOwnProperty(
|
|
1343
|
+
const n = t[o], s = e[o];
|
|
1344
|
+
Ne(s) && Ne(n) && e.hasOwnProperty(o) && !ze(n) && !ft(n) ? e[o] = ut(s, n) : e[o] = n;
|
|
1314
1345
|
}
|
|
1315
1346
|
return e;
|
|
1316
1347
|
}
|
|
1317
|
-
const
|
|
1348
|
+
const rs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1318
1349
|
/* istanbul ignore next */
|
|
1319
1350
|
Symbol()
|
|
1320
1351
|
);
|
|
1321
|
-
function
|
|
1322
|
-
return !Ne(e) || !e.hasOwnProperty(
|
|
1352
|
+
function as(e) {
|
|
1353
|
+
return !Ne(e) || !e.hasOwnProperty(rs);
|
|
1323
1354
|
}
|
|
1324
|
-
const { assign:
|
|
1355
|
+
const { assign: ue } = Object;
|
|
1325
1356
|
function $t(e) {
|
|
1326
|
-
return !!(
|
|
1357
|
+
return !!(ze(e) && e.effect);
|
|
1327
1358
|
}
|
|
1328
|
-
function Pt(e,
|
|
1329
|
-
const { state: s, actions: r, getters: l } =
|
|
1359
|
+
function Pt(e, t, o, n) {
|
|
1360
|
+
const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
|
|
1330
1361
|
let i;
|
|
1331
1362
|
function d() {
|
|
1332
|
-
!a && (process.env.NODE_ENV === "production" || !n) && (
|
|
1333
|
-
const
|
|
1363
|
+
!a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
|
|
1364
|
+
const w = process.env.NODE_ENV !== "production" && n ? (
|
|
1334
1365
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1335
|
-
St(
|
|
1336
|
-
) : St(
|
|
1337
|
-
return
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1340
|
-
return l[
|
|
1341
|
-
})),
|
|
1366
|
+
St(N(s ? s() : {}).value)
|
|
1367
|
+
) : St(o.state.value[e]);
|
|
1368
|
+
return ue(w, r, Object.keys(l || {}).reduce((y, M) => (process.env.NODE_ENV !== "production" && M in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${M}" in store "${e}".`), y[M] = Pe(De(() => {
|
|
1369
|
+
qe(o);
|
|
1370
|
+
const D = o._s.get(e);
|
|
1371
|
+
return l[M].call(D, D);
|
|
1372
|
+
})), y), {}));
|
|
1342
1373
|
}
|
|
1343
|
-
return i = dt(e, d,
|
|
1374
|
+
return i = dt(e, d, t, o, n, !0), i;
|
|
1344
1375
|
}
|
|
1345
|
-
function dt(e,
|
|
1376
|
+
function dt(e, t, o = {}, n, s, r) {
|
|
1346
1377
|
let l;
|
|
1347
|
-
const a =
|
|
1378
|
+
const a = ue({ actions: {} }, o);
|
|
1348
1379
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
1349
1380
|
throw new Error("Pinia destroyed");
|
|
1350
1381
|
const i = { deep: !0 };
|
|
1351
1382
|
process.env.NODE_ENV !== "production" && !Lt && (i.onTrigger = (u) => {
|
|
1352
|
-
d ?
|
|
1383
|
+
d ? D = u : d == !1 && !_._hotUpdating && (Array.isArray(D) ? D.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1353
1384
|
});
|
|
1354
|
-
let d,
|
|
1385
|
+
let d, w, y = [], M = [], D;
|
|
1355
1386
|
const L = n.state.value[e];
|
|
1356
1387
|
!r && !L && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
1357
|
-
const
|
|
1358
|
-
let
|
|
1359
|
-
function
|
|
1388
|
+
const $ = N({});
|
|
1389
|
+
let z;
|
|
1390
|
+
function I(u) {
|
|
1360
1391
|
let c;
|
|
1361
|
-
d =
|
|
1392
|
+
d = w = !1, process.env.NODE_ENV !== "production" && (D = []), typeof u == "function" ? (u(n.state.value[e]), c = {
|
|
1362
1393
|
type: ve.patchFunction,
|
|
1363
1394
|
storeId: e,
|
|
1364
|
-
events:
|
|
1395
|
+
events: D
|
|
1365
1396
|
}) : (ut(n.state.value[e], u), c = {
|
|
1366
1397
|
type: ve.patchObject,
|
|
1367
1398
|
payload: u,
|
|
1368
1399
|
storeId: e,
|
|
1369
|
-
events:
|
|
1400
|
+
events: D
|
|
1370
1401
|
});
|
|
1371
|
-
const g =
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}),
|
|
1402
|
+
const g = z = Symbol();
|
|
1403
|
+
Le().then(() => {
|
|
1404
|
+
z === g && (d = !0);
|
|
1405
|
+
}), w = !0, Ae(y, c, n.state.value[e]);
|
|
1375
1406
|
}
|
|
1376
|
-
const
|
|
1377
|
-
const { state: c } =
|
|
1407
|
+
const Y = r ? function() {
|
|
1408
|
+
const { state: c } = o, g = c ? c() : {};
|
|
1378
1409
|
this.$patch((E) => {
|
|
1379
|
-
|
|
1410
|
+
ue(E, g);
|
|
1380
1411
|
});
|
|
1381
1412
|
} : (
|
|
1382
1413
|
/* istanbul ignore next */
|
|
@@ -1384,61 +1415,61 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1384
1415
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1385
1416
|
} : eo
|
|
1386
1417
|
);
|
|
1387
|
-
function
|
|
1388
|
-
l.stop(),
|
|
1418
|
+
function j() {
|
|
1419
|
+
l.stop(), y = [], M = [], n._s.delete(e);
|
|
1389
1420
|
}
|
|
1390
|
-
const
|
|
1391
|
-
if (
|
|
1392
|
-
return u[
|
|
1421
|
+
const K = (u, c = "") => {
|
|
1422
|
+
if (Et in u)
|
|
1423
|
+
return u[it] = c, u;
|
|
1393
1424
|
const g = function() {
|
|
1394
|
-
|
|
1425
|
+
qe(n);
|
|
1395
1426
|
const E = Array.from(arguments), F = [], q = [];
|
|
1396
|
-
function
|
|
1427
|
+
function S(f) {
|
|
1397
1428
|
F.push(f);
|
|
1398
1429
|
}
|
|
1399
1430
|
function T(f) {
|
|
1400
1431
|
q.push(f);
|
|
1401
1432
|
}
|
|
1402
|
-
|
|
1433
|
+
Ae(M, {
|
|
1403
1434
|
args: E,
|
|
1404
|
-
name: g[
|
|
1405
|
-
store:
|
|
1406
|
-
after:
|
|
1435
|
+
name: g[it],
|
|
1436
|
+
store: _,
|
|
1437
|
+
after: S,
|
|
1407
1438
|
onError: T
|
|
1408
1439
|
});
|
|
1409
1440
|
let v;
|
|
1410
1441
|
try {
|
|
1411
|
-
v = u.apply(this && this.$id === e ? this :
|
|
1442
|
+
v = u.apply(this && this.$id === e ? this : _, E);
|
|
1412
1443
|
} catch (f) {
|
|
1413
|
-
throw
|
|
1444
|
+
throw Ae(q, f), f;
|
|
1414
1445
|
}
|
|
1415
|
-
return v instanceof Promise ? v.then((f) => (
|
|
1446
|
+
return v instanceof Promise ? v.then((f) => (Ae(F, f), f)).catch((f) => (Ae(q, f), Promise.reject(f))) : (Ae(F, v), v);
|
|
1416
1447
|
};
|
|
1417
|
-
return g[
|
|
1448
|
+
return g[Et] = !0, g[it] = c, g;
|
|
1418
1449
|
}, ne = /* @__PURE__ */ Pe({
|
|
1419
1450
|
actions: {},
|
|
1420
1451
|
getters: {},
|
|
1421
1452
|
state: [],
|
|
1422
|
-
hotState:
|
|
1453
|
+
hotState: $
|
|
1423
1454
|
}), C = {
|
|
1424
1455
|
_p: n,
|
|
1425
1456
|
// _s: scope,
|
|
1426
1457
|
$id: e,
|
|
1427
|
-
$onAction:
|
|
1428
|
-
$patch:
|
|
1429
|
-
$reset:
|
|
1458
|
+
$onAction: xt.bind(null, M),
|
|
1459
|
+
$patch: I,
|
|
1460
|
+
$reset: Y,
|
|
1430
1461
|
$subscribe(u, c = {}) {
|
|
1431
|
-
const g =
|
|
1432
|
-
(c.flush === "sync" ?
|
|
1462
|
+
const g = xt(y, u, c.detached, () => E()), E = l.run(() => Se(() => n.state.value[e], (F) => {
|
|
1463
|
+
(c.flush === "sync" ? w : d) && u({
|
|
1433
1464
|
storeId: e,
|
|
1434
1465
|
type: ve.direct,
|
|
1435
|
-
events:
|
|
1466
|
+
events: D
|
|
1436
1467
|
}, F);
|
|
1437
|
-
},
|
|
1468
|
+
}, ue({}, i, c)));
|
|
1438
1469
|
return g;
|
|
1439
1470
|
},
|
|
1440
|
-
$dispose:
|
|
1441
|
-
},
|
|
1471
|
+
$dispose: j
|
|
1472
|
+
}, _ = re(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie ? ue(
|
|
1442
1473
|
{
|
|
1443
1474
|
_hmrPayload: ne,
|
|
1444
1475
|
_customProperties: Pe(/* @__PURE__ */ new Set())
|
|
@@ -1448,58 +1479,58 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1448
1479
|
// must be added later
|
|
1449
1480
|
// setupStore
|
|
1450
1481
|
) : C);
|
|
1451
|
-
n._s.set(e,
|
|
1452
|
-
const
|
|
1453
|
-
for (const u in
|
|
1454
|
-
const c =
|
|
1455
|
-
if (
|
|
1456
|
-
process.env.NODE_ENV !== "production" && s ?
|
|
1482
|
+
n._s.set(e, _);
|
|
1483
|
+
const A = (n._a && n._a.runWithContext || ss)(() => n._e.run(() => (l = Mt()).run(() => t({ action: K }))));
|
|
1484
|
+
for (const u in A) {
|
|
1485
|
+
const c = A[u];
|
|
1486
|
+
if (ze(c) && !$t(c) || ft(c))
|
|
1487
|
+
process.env.NODE_ENV !== "production" && s ? Ye($.value, u, rt(A, u)) : r || (L && as(c) && (ze(c) ? c.value = L[u] : ut(c, L[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
|
|
1457
1488
|
else if (typeof c == "function") {
|
|
1458
|
-
const g = process.env.NODE_ENV !== "production" && s ? c :
|
|
1459
|
-
|
|
1489
|
+
const g = process.env.NODE_ENV !== "production" && s ? c : K(c, u);
|
|
1490
|
+
A[u] = g, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
|
|
1460
1491
|
} else process.env.NODE_ENV !== "production" && $t(c) && (ne.getters[u] = r ? (
|
|
1461
1492
|
// @ts-expect-error
|
|
1462
|
-
|
|
1463
|
-
) : c, Ie && (
|
|
1464
|
-
(
|
|
1493
|
+
o.getters[u]
|
|
1494
|
+
) : c, Ie && (A._getters || // @ts-expect-error: same
|
|
1495
|
+
(A._getters = Pe([]))).push(u));
|
|
1465
1496
|
}
|
|
1466
|
-
if (
|
|
1467
|
-
get: () => process.env.NODE_ENV !== "production" && s ?
|
|
1497
|
+
if (ue(_, A), ue(je(_), A), Object.defineProperty(_, "$state", {
|
|
1498
|
+
get: () => process.env.NODE_ENV !== "production" && s ? $.value : n.state.value[e],
|
|
1468
1499
|
set: (u) => {
|
|
1469
1500
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1470
1501
|
throw new Error("cannot set hotState");
|
|
1471
|
-
|
|
1472
|
-
|
|
1502
|
+
I((c) => {
|
|
1503
|
+
ue(c, u);
|
|
1473
1504
|
});
|
|
1474
1505
|
}
|
|
1475
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1476
|
-
|
|
1477
|
-
if (c in
|
|
1478
|
-
const g = u.$state[c], E =
|
|
1506
|
+
}), process.env.NODE_ENV !== "production" && (_._hotUpdate = Pe((u) => {
|
|
1507
|
+
_._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
|
|
1508
|
+
if (c in _.$state) {
|
|
1509
|
+
const g = u.$state[c], E = _.$state[c];
|
|
1479
1510
|
typeof g == "object" && Ne(g) && Ne(E) ? Zt(g, E) : u.$state[c] = E;
|
|
1480
1511
|
}
|
|
1481
|
-
|
|
1482
|
-
}), Object.keys(
|
|
1483
|
-
c in u.$state ||
|
|
1484
|
-
}), d = !1,
|
|
1512
|
+
Ye(_, c, rt(u.$state, c));
|
|
1513
|
+
}), Object.keys(_.$state).forEach((c) => {
|
|
1514
|
+
c in u.$state || lt(_, c);
|
|
1515
|
+
}), d = !1, w = !1, n.state.value[e] = rt(u._hmrPayload, "hotState"), w = !0, Le().then(() => {
|
|
1485
1516
|
d = !0;
|
|
1486
1517
|
});
|
|
1487
1518
|
for (const c in u._hmrPayload.actions) {
|
|
1488
1519
|
const g = u[c];
|
|
1489
|
-
|
|
1520
|
+
Ye(_, c, K(g, c));
|
|
1490
1521
|
}
|
|
1491
1522
|
for (const c in u._hmrPayload.getters) {
|
|
1492
1523
|
const g = u._hmrPayload.getters[c], E = r ? (
|
|
1493
1524
|
// special handling of options api
|
|
1494
|
-
|
|
1525
|
+
De(() => (qe(n), g.call(_, _)))
|
|
1495
1526
|
) : g;
|
|
1496
|
-
|
|
1527
|
+
Ye(_, c, E);
|
|
1497
1528
|
}
|
|
1498
|
-
Object.keys(
|
|
1499
|
-
c in u._hmrPayload.getters ||
|
|
1500
|
-
}), Object.keys(
|
|
1501
|
-
c in u._hmrPayload.actions ||
|
|
1502
|
-
}),
|
|
1529
|
+
Object.keys(_._hmrPayload.getters).forEach((c) => {
|
|
1530
|
+
c in u._hmrPayload.getters || lt(_, c);
|
|
1531
|
+
}), Object.keys(_._hmrPayload.actions).forEach((c) => {
|
|
1532
|
+
c in u._hmrPayload.actions || lt(_, c);
|
|
1533
|
+
}), _._hmrPayload = u._hmrPayload, _._getters = u._getters, _._hotUpdating = !1;
|
|
1503
1534
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie) {
|
|
1504
1535
|
const u = {
|
|
1505
1536
|
writable: !0,
|
|
@@ -1508,83 +1539,83 @@ function dt(e, o, t = {}, n, s, r) {
|
|
|
1508
1539
|
enumerable: !1
|
|
1509
1540
|
};
|
|
1510
1541
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((c) => {
|
|
1511
|
-
Object.defineProperty(
|
|
1542
|
+
Object.defineProperty(_, c, ue({ value: _[c] }, u));
|
|
1512
1543
|
});
|
|
1513
1544
|
}
|
|
1514
1545
|
return n._p.forEach((u) => {
|
|
1515
1546
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie) {
|
|
1516
1547
|
const c = l.run(() => u({
|
|
1517
|
-
store:
|
|
1548
|
+
store: _,
|
|
1518
1549
|
app: n._a,
|
|
1519
1550
|
pinia: n,
|
|
1520
1551
|
options: a
|
|
1521
1552
|
}));
|
|
1522
|
-
Object.keys(c || {}).forEach((g) =>
|
|
1553
|
+
Object.keys(c || {}).forEach((g) => _._customProperties.add(g)), ue(_, c);
|
|
1523
1554
|
} else
|
|
1524
|
-
|
|
1525
|
-
store:
|
|
1555
|
+
ue(_, l.run(() => u({
|
|
1556
|
+
store: _,
|
|
1526
1557
|
app: n._a,
|
|
1527
1558
|
pinia: n,
|
|
1528
1559
|
options: a
|
|
1529
1560
|
})));
|
|
1530
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1561
|
+
}), process.env.NODE_ENV !== "production" && _.$state && typeof _.$state == "object" && typeof _.$state.constructor == "function" && !_.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1531
1562
|
state: () => new MyClass()
|
|
1532
|
-
Found in store "${
|
|
1563
|
+
Found in store "${_.$id}".`), L && r && o.hydrate && o.hydrate(_.$state, L), d = !0, w = !0, _;
|
|
1533
1564
|
}
|
|
1534
1565
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1535
1566
|
// @__NO_SIDE_EFFECTS__
|
|
1536
|
-
function
|
|
1567
|
+
function ls(e, t, o) {
|
|
1537
1568
|
let n, s;
|
|
1538
|
-
const r = typeof
|
|
1539
|
-
n = e, s = r ?
|
|
1569
|
+
const r = typeof t == "function";
|
|
1570
|
+
n = e, s = r ? o : t;
|
|
1540
1571
|
function l(a, i) {
|
|
1541
1572
|
const d = _o();
|
|
1542
1573
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1543
1574
|
// pinia instance with getActivePinia()
|
|
1544
|
-
(process.env.NODE_ENV === "test" &&
|
|
1575
|
+
(process.env.NODE_ENV === "test" && Ge && Ge._testing ? null : a) || (d ? go(qt, null) : null), a && qe(a), process.env.NODE_ENV !== "production" && !Ge)
|
|
1545
1576
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1546
1577
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1547
1578
|
This will fail in production.`);
|
|
1548
|
-
a =
|
|
1549
|
-
const
|
|
1579
|
+
a = Ge, a._s.has(n) || (r ? dt(n, t, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1580
|
+
const w = a._s.get(n);
|
|
1550
1581
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1551
|
-
const
|
|
1552
|
-
i._hotUpdate(
|
|
1582
|
+
const y = "__hot:" + n, M = r ? dt(y, t, s, a, !0) : Pt(y, ue({}, s), a, !0);
|
|
1583
|
+
i._hotUpdate(M), delete a.state.value[y], a._s.delete(y);
|
|
1553
1584
|
}
|
|
1554
1585
|
if (process.env.NODE_ENV !== "production" && Ie) {
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1586
|
+
const y = vo();
|
|
1587
|
+
if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1557
1588
|
!i) {
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1589
|
+
const M = y.proxy, D = "_pStores" in M ? M._pStores : M._pStores = {};
|
|
1590
|
+
D[n] = w;
|
|
1560
1591
|
}
|
|
1561
1592
|
}
|
|
1562
|
-
return
|
|
1593
|
+
return w;
|
|
1563
1594
|
}
|
|
1564
1595
|
return l.$id = n, l;
|
|
1565
1596
|
}
|
|
1566
|
-
const
|
|
1567
|
-
function
|
|
1568
|
-
if (e === "__proto__" || e === "constructor" &&
|
|
1569
|
-
|
|
1597
|
+
const is = /"(?:_|\\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*:/, cs = /"(?: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*:/, us = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
1598
|
+
function ds(e, t) {
|
|
1599
|
+
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
1600
|
+
ps(e);
|
|
1570
1601
|
return;
|
|
1571
1602
|
}
|
|
1572
|
-
return
|
|
1603
|
+
return t;
|
|
1573
1604
|
}
|
|
1574
|
-
function
|
|
1605
|
+
function ps(e) {
|
|
1575
1606
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
1576
1607
|
}
|
|
1577
|
-
function
|
|
1608
|
+
function fs(e, t = {}) {
|
|
1578
1609
|
if (typeof e != "string")
|
|
1579
1610
|
return e;
|
|
1580
|
-
const
|
|
1611
|
+
const o = e.trim();
|
|
1581
1612
|
if (
|
|
1582
1613
|
// eslint-disable-next-line unicorn/prefer-at
|
|
1583
1614
|
e[0] === '"' && e.endsWith('"') && !e.includes("\\")
|
|
1584
1615
|
)
|
|
1585
|
-
return
|
|
1586
|
-
if (
|
|
1587
|
-
const n =
|
|
1616
|
+
return o.slice(1, -1);
|
|
1617
|
+
if (o.length <= 9) {
|
|
1618
|
+
const n = o.toLowerCase();
|
|
1588
1619
|
if (n === "true")
|
|
1589
1620
|
return !0;
|
|
1590
1621
|
if (n === "false")
|
|
@@ -1600,120 +1631,120 @@ function cs(e, o = {}) {
|
|
|
1600
1631
|
if (n === "-infinity")
|
|
1601
1632
|
return Number.NEGATIVE_INFINITY;
|
|
1602
1633
|
}
|
|
1603
|
-
if (!
|
|
1604
|
-
if (
|
|
1634
|
+
if (!us.test(e)) {
|
|
1635
|
+
if (t.strict)
|
|
1605
1636
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
1606
1637
|
return e;
|
|
1607
1638
|
}
|
|
1608
1639
|
try {
|
|
1609
|
-
if (
|
|
1610
|
-
if (
|
|
1640
|
+
if (is.test(e) || cs.test(e)) {
|
|
1641
|
+
if (t.strict)
|
|
1611
1642
|
throw new Error("[destr] Possible prototype pollution");
|
|
1612
|
-
return JSON.parse(e,
|
|
1643
|
+
return JSON.parse(e, ds);
|
|
1613
1644
|
}
|
|
1614
1645
|
return JSON.parse(e);
|
|
1615
1646
|
} catch (n) {
|
|
1616
|
-
if (
|
|
1647
|
+
if (t.strict)
|
|
1617
1648
|
throw n;
|
|
1618
1649
|
return e;
|
|
1619
1650
|
}
|
|
1620
1651
|
}
|
|
1621
|
-
function
|
|
1652
|
+
function ms(e, t) {
|
|
1622
1653
|
if (e == null)
|
|
1623
1654
|
return;
|
|
1624
|
-
let
|
|
1625
|
-
for (let n = 0; n <
|
|
1626
|
-
if (
|
|
1655
|
+
let o = e;
|
|
1656
|
+
for (let n = 0; n < t.length; n++) {
|
|
1657
|
+
if (o == null || o[t[n]] == null)
|
|
1627
1658
|
return;
|
|
1628
|
-
|
|
1659
|
+
o = o[t[n]];
|
|
1629
1660
|
}
|
|
1630
|
-
return
|
|
1661
|
+
return o;
|
|
1631
1662
|
}
|
|
1632
|
-
function _t(e,
|
|
1633
|
-
if (
|
|
1634
|
-
return
|
|
1635
|
-
const n =
|
|
1636
|
-
return
|
|
1637
|
-
typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(
|
|
1638
|
-
|
|
1639
|
-
Array.prototype.slice.call(
|
|
1640
|
-
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]:
|
|
1641
|
-
}
|
|
1642
|
-
function to(e,
|
|
1643
|
-
if (e == null ||
|
|
1663
|
+
function _t(e, t, o) {
|
|
1664
|
+
if (o.length === 0)
|
|
1665
|
+
return t;
|
|
1666
|
+
const n = o[0];
|
|
1667
|
+
return o.length > 1 && (t = _t(
|
|
1668
|
+
typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(o[1])) ? [] : {} : e[n],
|
|
1669
|
+
t,
|
|
1670
|
+
Array.prototype.slice.call(o, 1)
|
|
1671
|
+
)), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]: t });
|
|
1672
|
+
}
|
|
1673
|
+
function to(e, t) {
|
|
1674
|
+
if (e == null || t.length === 0)
|
|
1644
1675
|
return e;
|
|
1645
|
-
if (
|
|
1676
|
+
if (t.length === 1) {
|
|
1646
1677
|
if (e == null)
|
|
1647
1678
|
return e;
|
|
1648
|
-
if (Number.isInteger(
|
|
1649
|
-
return Array.prototype.slice.call(e, 0).splice(
|
|
1650
|
-
const
|
|
1679
|
+
if (Number.isInteger(t[0]) && Array.isArray(e))
|
|
1680
|
+
return Array.prototype.slice.call(e, 0).splice(t[0], 1);
|
|
1681
|
+
const o = {};
|
|
1651
1682
|
for (const n in e)
|
|
1652
|
-
|
|
1653
|
-
return delete t[
|
|
1683
|
+
o[n] = e[n];
|
|
1684
|
+
return delete o[t[0]], o;
|
|
1654
1685
|
}
|
|
1655
|
-
if (e[
|
|
1656
|
-
if (Number.isInteger(
|
|
1686
|
+
if (e[t[0]] == null) {
|
|
1687
|
+
if (Number.isInteger(t[0]) && Array.isArray(e))
|
|
1657
1688
|
return Array.prototype.concat.call([], e);
|
|
1658
|
-
const
|
|
1689
|
+
const o = {};
|
|
1659
1690
|
for (const n in e)
|
|
1660
|
-
|
|
1661
|
-
return
|
|
1691
|
+
o[n] = e[n];
|
|
1692
|
+
return o;
|
|
1662
1693
|
}
|
|
1663
1694
|
return _t(
|
|
1664
1695
|
e,
|
|
1665
1696
|
to(
|
|
1666
|
-
e[
|
|
1667
|
-
Array.prototype.slice.call(
|
|
1697
|
+
e[t[0]],
|
|
1698
|
+
Array.prototype.slice.call(t, 1)
|
|
1668
1699
|
),
|
|
1669
|
-
[
|
|
1700
|
+
[t[0]]
|
|
1670
1701
|
);
|
|
1671
1702
|
}
|
|
1672
|
-
function oo(e,
|
|
1673
|
-
return
|
|
1703
|
+
function oo(e, t) {
|
|
1704
|
+
return t.map((o) => o.split(".")).map((o) => [o, ms(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => _t(o, n[1], n[0]), {});
|
|
1674
1705
|
}
|
|
1675
|
-
function no(e,
|
|
1676
|
-
return
|
|
1706
|
+
function no(e, t) {
|
|
1707
|
+
return t.map((o) => o.split(".")).reduce((o, n) => to(o, n), e);
|
|
1677
1708
|
}
|
|
1678
1709
|
function It(e, {
|
|
1679
|
-
storage:
|
|
1680
|
-
serializer:
|
|
1710
|
+
storage: t,
|
|
1711
|
+
serializer: o,
|
|
1681
1712
|
key: n,
|
|
1682
1713
|
debug: s,
|
|
1683
1714
|
pick: r,
|
|
1684
1715
|
omit: l,
|
|
1685
1716
|
beforeHydrate: a,
|
|
1686
1717
|
afterHydrate: i
|
|
1687
|
-
}, d,
|
|
1718
|
+
}, d, w = !0) {
|
|
1688
1719
|
try {
|
|
1689
|
-
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1692
|
-
const
|
|
1720
|
+
w && (a == null || a(d));
|
|
1721
|
+
const y = t.getItem(n);
|
|
1722
|
+
if (y) {
|
|
1723
|
+
const M = o.deserialize(y), D = r ? oo(M, r) : M, L = l ? no(D, l) : D;
|
|
1693
1724
|
e.$patch(L);
|
|
1694
1725
|
}
|
|
1695
|
-
|
|
1696
|
-
} catch (
|
|
1697
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
1726
|
+
w && (i == null || i(d));
|
|
1727
|
+
} catch (y) {
|
|
1728
|
+
s && console.error("[pinia-plugin-persistedstate]", y);
|
|
1698
1729
|
}
|
|
1699
1730
|
}
|
|
1700
1731
|
function Nt(e, {
|
|
1701
|
-
storage:
|
|
1702
|
-
serializer:
|
|
1732
|
+
storage: t,
|
|
1733
|
+
serializer: o,
|
|
1703
1734
|
key: n,
|
|
1704
1735
|
debug: s,
|
|
1705
1736
|
pick: r,
|
|
1706
1737
|
omit: l
|
|
1707
1738
|
}) {
|
|
1708
1739
|
try {
|
|
1709
|
-
const a = r ? oo(e, r) : e, i = l ? no(a, l) : a, d =
|
|
1710
|
-
|
|
1740
|
+
const a = r ? oo(e, r) : e, i = l ? no(a, l) : a, d = o.serialize(i);
|
|
1741
|
+
t.setItem(n, d);
|
|
1711
1742
|
} catch (a) {
|
|
1712
1743
|
s && console.error("[pinia-plugin-persistedstate]", a);
|
|
1713
1744
|
}
|
|
1714
1745
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const { pinia: n, store: s, options: { persist: r =
|
|
1746
|
+
function hs(e, t, o) {
|
|
1747
|
+
const { pinia: n, store: s, options: { persist: r = o } } = e;
|
|
1717
1748
|
if (!r)
|
|
1718
1749
|
return;
|
|
1719
1750
|
if (!(s.$id in n.state.value)) {
|
|
@@ -1721,7 +1752,7 @@ function ds(e, o, t) {
|
|
|
1721
1752
|
i && Promise.resolve().then(() => i.$persist());
|
|
1722
1753
|
return;
|
|
1723
1754
|
}
|
|
1724
|
-
const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(
|
|
1755
|
+
const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(t);
|
|
1725
1756
|
s.$hydrate = ({ runHooks: i = !0 } = {}) => {
|
|
1726
1757
|
a.forEach((d) => {
|
|
1727
1758
|
It(s, d, e, i);
|
|
@@ -1732,77 +1763,77 @@ function ds(e, o, t) {
|
|
|
1732
1763
|
});
|
|
1733
1764
|
}, a.forEach((i) => {
|
|
1734
1765
|
It(s, i, e), s.$subscribe(
|
|
1735
|
-
(d,
|
|
1766
|
+
(d, w) => Nt(w, i),
|
|
1736
1767
|
{ detached: !0 }
|
|
1737
1768
|
);
|
|
1738
1769
|
});
|
|
1739
1770
|
}
|
|
1740
|
-
function
|
|
1741
|
-
return function(
|
|
1742
|
-
var
|
|
1743
|
-
|
|
1744
|
-
|
|
1771
|
+
function _s(e = {}) {
|
|
1772
|
+
return function(t) {
|
|
1773
|
+
var o;
|
|
1774
|
+
hs(
|
|
1775
|
+
t,
|
|
1745
1776
|
(n) => {
|
|
1746
|
-
var s, r, l, a, i, d,
|
|
1777
|
+
var s, r, l, a, i, d, w;
|
|
1747
1778
|
return {
|
|
1748
|
-
key: (e.key ? e.key : (
|
|
1779
|
+
key: (e.key ? e.key : (y) => y)((s = n.key) != null ? s : t.store.$id),
|
|
1749
1780
|
debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
|
|
1750
1781
|
serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
|
|
1751
|
-
serialize: (
|
|
1752
|
-
deserialize: (
|
|
1782
|
+
serialize: (y) => JSON.stringify(y),
|
|
1783
|
+
deserialize: (y) => fs(y)
|
|
1753
1784
|
},
|
|
1754
|
-
storage: (
|
|
1785
|
+
storage: (w = (d = n.storage) != null ? d : e.storage) != null ? w : window.localStorage,
|
|
1755
1786
|
beforeHydrate: n.beforeHydrate,
|
|
1756
1787
|
afterHydrate: n.afterHydrate,
|
|
1757
1788
|
pick: n.pick,
|
|
1758
1789
|
omit: n.omit
|
|
1759
1790
|
};
|
|
1760
1791
|
},
|
|
1761
|
-
(
|
|
1792
|
+
(o = e.auto) != null ? o : !1
|
|
1762
1793
|
);
|
|
1763
1794
|
};
|
|
1764
1795
|
}
|
|
1765
|
-
var
|
|
1766
|
-
const gt =
|
|
1767
|
-
gt.use(
|
|
1768
|
-
const so = /* @__PURE__ */
|
|
1796
|
+
var gs = _s();
|
|
1797
|
+
const gt = ns();
|
|
1798
|
+
gt.use(gs);
|
|
1799
|
+
const so = /* @__PURE__ */ ls("console", {
|
|
1769
1800
|
state: () => ({
|
|
1770
1801
|
menu: {
|
|
1771
1802
|
collapsed: !0
|
|
1772
1803
|
}
|
|
1773
1804
|
}),
|
|
1774
1805
|
persist: !0
|
|
1775
|
-
}),
|
|
1806
|
+
}), vs = {
|
|
1776
1807
|
key: 0,
|
|
1777
1808
|
class: "menu-wrapper"
|
|
1778
|
-
},
|
|
1809
|
+
}, bs = /* @__PURE__ */ _e({
|
|
1779
1810
|
__name: "SideMenu",
|
|
1780
1811
|
props: {
|
|
1781
1812
|
menuCollapsed: { type: Boolean }
|
|
1782
1813
|
},
|
|
1783
1814
|
emits: ["update:menuCollapsed"],
|
|
1784
|
-
setup(e, { emit:
|
|
1815
|
+
setup(e, { emit: t }) {
|
|
1785
1816
|
so(gt);
|
|
1786
|
-
const
|
|
1817
|
+
const o = He(), n = De(() => {
|
|
1787
1818
|
var r;
|
|
1788
|
-
const s =
|
|
1819
|
+
const s = o.meta.activeMenu;
|
|
1789
1820
|
if (s === "{model}") {
|
|
1790
|
-
let l =
|
|
1791
|
-
return "/" + ((r =
|
|
1821
|
+
let l = o.params.app ? `${o.params.app}/${o.params.model}` : o.params.model;
|
|
1822
|
+
return "/" + ((r = Mn[o.params.model]) != null ? r : l);
|
|
1792
1823
|
} else
|
|
1793
1824
|
return s;
|
|
1794
1825
|
});
|
|
1795
1826
|
return (s, r) => {
|
|
1796
1827
|
const l = x("el-menu");
|
|
1797
|
-
return k(Ct).length > 0 ? (p(),
|
|
1798
|
-
|
|
1828
|
+
return k(Ct).length > 0 ? (p(), U("div", vs, [
|
|
1829
|
+
h(l, {
|
|
1799
1830
|
class: "menu",
|
|
1800
1831
|
"default-active": n.value,
|
|
1801
1832
|
"default-openeds": ["table"],
|
|
1802
1833
|
router: ""
|
|
1803
1834
|
}, {
|
|
1804
1835
|
default: m(() => [
|
|
1805
|
-
(p(!0),
|
|
1836
|
+
(p(!0), U(oe, null, ce(k(Ct), (a) => (p(), V(Nn, {
|
|
1806
1837
|
key: a.path,
|
|
1807
1838
|
menu: a
|
|
1808
1839
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1812,36 +1843,36 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1812
1843
|
])) : B("", !0);
|
|
1813
1844
|
};
|
|
1814
1845
|
}
|
|
1815
|
-
}), ro = /* @__PURE__ */
|
|
1846
|
+
}), ro = /* @__PURE__ */ pe(bs, [["__scopeId", "data-v-ea5f1473"]]), ys = { class: "container" }, ws = /* @__PURE__ */ _e({
|
|
1816
1847
|
__name: "ConsoleApp",
|
|
1817
1848
|
props: {
|
|
1818
1849
|
title: {},
|
|
1819
1850
|
helpDocUrl: {}
|
|
1820
1851
|
},
|
|
1821
1852
|
setup(e) {
|
|
1822
|
-
const
|
|
1853
|
+
const t = so(gt), o = He(), n = N(t.menu.collapsed), s = N(), r = e;
|
|
1823
1854
|
return (l, a) => {
|
|
1824
1855
|
const i = x("router-view"), d = x("el-scrollbar");
|
|
1825
|
-
return p(),
|
|
1826
|
-
k(
|
|
1856
|
+
return p(), U(oe, null, [
|
|
1857
|
+
k(o).query.embedded !== "true" ? (p(), V(Gt, {
|
|
1827
1858
|
key: 0,
|
|
1828
1859
|
title: r.title,
|
|
1829
1860
|
helpDocUrl: r.helpDocUrl
|
|
1830
1861
|
}, null, 8, ["title", "helpDocUrl"])) : B("", !0),
|
|
1831
|
-
|
|
1832
|
-
k(
|
|
1862
|
+
b("div", ys, [
|
|
1863
|
+
k(o).query.embedded !== "true" ? (p(), V(ro, {
|
|
1833
1864
|
key: 0,
|
|
1834
1865
|
menuCollapsed: n.value,
|
|
1835
|
-
"onUpdate:menuCollapsed": a[0] || (a[0] = (
|
|
1866
|
+
"onUpdate:menuCollapsed": a[0] || (a[0] = (w) => n.value = w)
|
|
1836
1867
|
}, null, 8, ["menuCollapsed"])) : B("", !0),
|
|
1837
|
-
|
|
1868
|
+
h(d, { class: "main-scrollbar" }, {
|
|
1838
1869
|
default: m(() => [
|
|
1839
|
-
|
|
1870
|
+
b("main", {
|
|
1840
1871
|
ref_key: "mainWrapperRef",
|
|
1841
1872
|
ref: s,
|
|
1842
1873
|
class: "main-wrapper"
|
|
1843
1874
|
}, [
|
|
1844
|
-
|
|
1875
|
+
h(i)
|
|
1845
1876
|
], 512)
|
|
1846
1877
|
]),
|
|
1847
1878
|
_: 1
|
|
@@ -1850,77 +1881,77 @@ const so = /* @__PURE__ */ ns("console", {
|
|
|
1850
1881
|
], 64);
|
|
1851
1882
|
};
|
|
1852
1883
|
}
|
|
1853
|
-
}),
|
|
1884
|
+
}), Ss = {
|
|
1854
1885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1855
1886
|
width: "800",
|
|
1856
1887
|
height: "800"
|
|
1857
1888
|
};
|
|
1858
|
-
function
|
|
1859
|
-
return p(),
|
|
1889
|
+
function Cs(e, t) {
|
|
1890
|
+
return p(), U("svg", Ss, t[0] || (t[0] = [
|
|
1860
1891
|
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)
|
|
1861
1892
|
]));
|
|
1862
1893
|
}
|
|
1863
|
-
const
|
|
1864
|
-
function
|
|
1865
|
-
const
|
|
1866
|
-
return p(),
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
default: m(() =>
|
|
1872
|
-
|
|
1894
|
+
const ks = { render: Cs }, Os = {}, xs = { class: "wrapper" }, Es = { class: "content" };
|
|
1895
|
+
function $s(e, t) {
|
|
1896
|
+
const o = x("el-button");
|
|
1897
|
+
return p(), U("div", xs, [
|
|
1898
|
+
t[4] || (t[4] = b("img", { src: ks }, null, -1)),
|
|
1899
|
+
b("div", Es, [
|
|
1900
|
+
t[3] || (t[3] = b("h1", null, "You have no permission to access the page.", -1)),
|
|
1901
|
+
h(o, { type: "primary" }, {
|
|
1902
|
+
default: m(() => t[1] || (t[1] = [
|
|
1903
|
+
Q("Apply")
|
|
1873
1904
|
])),
|
|
1874
1905
|
_: 1
|
|
1875
1906
|
}),
|
|
1876
|
-
|
|
1877
|
-
onClick:
|
|
1907
|
+
h(o, {
|
|
1908
|
+
onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
|
|
1878
1909
|
}, {
|
|
1879
|
-
default: m(() =>
|
|
1880
|
-
|
|
1910
|
+
default: m(() => t[2] || (t[2] = [
|
|
1911
|
+
Q("Go Back")
|
|
1881
1912
|
])),
|
|
1882
1913
|
_: 1
|
|
1883
1914
|
})
|
|
1884
1915
|
])
|
|
1885
1916
|
]);
|
|
1886
1917
|
}
|
|
1887
|
-
const
|
|
1888
|
-
function
|
|
1889
|
-
const
|
|
1890
|
-
return p(),
|
|
1918
|
+
const Ps = /* @__PURE__ */ pe(Os, [["render", $s], ["__scopeId", "data-v-0155b361"]]), Is = {};
|
|
1919
|
+
function Ns(e, t) {
|
|
1920
|
+
const o = x("router-view");
|
|
1921
|
+
return p(), V(o);
|
|
1891
1922
|
}
|
|
1892
|
-
const
|
|
1923
|
+
const Ms = /* @__PURE__ */ pe(Is, [["render", Ns]]), As = { class: "card-wrapper" }, Vs = ["onClick"], Us = { class: "card-inner-wrapper" }, Ts = { class: "card-title" }, Ds = { class: "icon" }, Rs = /* @__PURE__ */ _e({
|
|
1893
1924
|
__name: "TabCard",
|
|
1894
1925
|
props: {
|
|
1895
1926
|
cards: {},
|
|
1896
1927
|
tableRef: {}
|
|
1897
1928
|
},
|
|
1898
1929
|
setup(e) {
|
|
1899
|
-
const { t
|
|
1930
|
+
const { t } = Je(), o = He(), n = st(), s = e, r = N(s.cards[0].key);
|
|
1900
1931
|
function l(a) {
|
|
1901
1932
|
a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
|
|
1902
|
-
path:
|
|
1903
|
-
query: wt(
|
|
1933
|
+
path: o.path,
|
|
1934
|
+
query: wt(We({}, o.query), { tab: a.key })
|
|
1904
1935
|
}));
|
|
1905
1936
|
}
|
|
1906
1937
|
return pt(() => {
|
|
1907
1938
|
let a;
|
|
1908
|
-
if (
|
|
1939
|
+
if (o.query.tab !== void 0) {
|
|
1909
1940
|
for (let i of s.cards)
|
|
1910
|
-
if (i.key ===
|
|
1941
|
+
if (i.key === o.query.tab) {
|
|
1911
1942
|
r.value = i.key, a = i;
|
|
1912
1943
|
break;
|
|
1913
1944
|
}
|
|
1914
1945
|
}
|
|
1915
|
-
|
|
1946
|
+
Le(() => {
|
|
1916
1947
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1917
1948
|
});
|
|
1918
1949
|
}), Se(
|
|
1919
1950
|
() => s.cards,
|
|
1920
1951
|
(a) => {
|
|
1921
|
-
if (
|
|
1952
|
+
if (o.query.tab !== void 0) {
|
|
1922
1953
|
for (let i of s.cards)
|
|
1923
|
-
if (i.key ===
|
|
1954
|
+
if (i.key === o.query.tab) {
|
|
1924
1955
|
r.value = i.key;
|
|
1925
1956
|
break;
|
|
1926
1957
|
}
|
|
@@ -1930,94 +1961,95 @@ const $s = /* @__PURE__ */ ue(Es, [["render", xs]]), Ps = { class: "card-wrapper
|
|
|
1930
1961
|
{
|
|
1931
1962
|
deep: !0
|
|
1932
1963
|
}
|
|
1933
|
-
), (a, i) => (p(),
|
|
1934
|
-
(p(!0),
|
|
1935
|
-
class:
|
|
1936
|
-
onClick: (
|
|
1964
|
+
), (a, i) => (p(), U("div", As, [
|
|
1965
|
+
(p(!0), U(oe, null, ce(s.cards, (d) => (p(), U("div", {
|
|
1966
|
+
class: At(["card", { "card-selected": r.value === d.key }]),
|
|
1967
|
+
onClick: (w) => l(d)
|
|
1937
1968
|
}, [
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
d.icon ? (p(),
|
|
1969
|
+
b("div", Us, [
|
|
1970
|
+
b("div", Ts, [
|
|
1971
|
+
b("div", Ds, [
|
|
1972
|
+
d.icon ? (p(), V(et(d.icon), {
|
|
1942
1973
|
key: 0,
|
|
1943
1974
|
class: "svg-icon"
|
|
1944
1975
|
})) : B("", !0)
|
|
1945
1976
|
]),
|
|
1946
|
-
|
|
1947
|
-
style:
|
|
1948
|
-
}, R(k(
|
|
1977
|
+
b("span", {
|
|
1978
|
+
style: Te({ color: d.disabled ? "#aaa" : "black" })
|
|
1979
|
+
}, R(k(t)(d.label)), 5)
|
|
1949
1980
|
]),
|
|
1950
|
-
|
|
1981
|
+
b("span", null, R(d.count), 1)
|
|
1951
1982
|
])
|
|
1952
|
-
], 10,
|
|
1983
|
+
], 10, Vs))), 256))
|
|
1953
1984
|
]));
|
|
1954
1985
|
}
|
|
1955
|
-
}), ao = /* @__PURE__ */
|
|
1956
|
-
function
|
|
1957
|
-
switch (
|
|
1986
|
+
}), ao = /* @__PURE__ */ pe(Rs, [["__scopeId", "data-v-047a86e6"]]);
|
|
1987
|
+
function Oe(e, t, o) {
|
|
1988
|
+
switch (t) {
|
|
1958
1989
|
case "POST":
|
|
1959
|
-
return
|
|
1990
|
+
return de.post(e, o);
|
|
1960
1991
|
case "PUT":
|
|
1961
|
-
return
|
|
1992
|
+
return de.put(e, o);
|
|
1962
1993
|
case "DELETE":
|
|
1963
|
-
return
|
|
1994
|
+
return de.delete(e + "/" + o);
|
|
1964
1995
|
default:
|
|
1965
|
-
return
|
|
1996
|
+
return de.get(e, { params: o });
|
|
1966
1997
|
}
|
|
1967
1998
|
}
|
|
1968
|
-
const
|
|
1969
|
-
const
|
|
1970
|
-
let
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
}), Object.assign(e,
|
|
1974
|
-
},
|
|
1999
|
+
const Be = (e) => {
|
|
2000
|
+
const t = Object.keys(e);
|
|
2001
|
+
let o = {};
|
|
2002
|
+
t.forEach((n) => {
|
|
2003
|
+
o[n] = void 0;
|
|
2004
|
+
}), Object.assign(e, o);
|
|
2005
|
+
}, Fs = {
|
|
1975
2006
|
key: 1,
|
|
1976
2007
|
class: "view-span"
|
|
1977
|
-
},
|
|
2008
|
+
}, Gs = /* @__PURE__ */ _e({
|
|
1978
2009
|
__name: "FormView",
|
|
1979
2010
|
props: {
|
|
1980
2011
|
id: {},
|
|
1981
2012
|
sessionId: {},
|
|
1982
2013
|
mode: {},
|
|
1983
2014
|
model: {},
|
|
2015
|
+
disableInline: { type: Boolean },
|
|
1984
2016
|
closeDialogFunc: { type: Function },
|
|
1985
2017
|
afterSubmitFunc: { type: Function }
|
|
1986
2018
|
},
|
|
1987
2019
|
emits: ["update:id"],
|
|
1988
|
-
setup(e, { expose:
|
|
1989
|
-
const { t: n } =
|
|
2020
|
+
setup(e, { expose: t, emit: o }) {
|
|
2021
|
+
const { t: n } = tt.global, s = e, r = re({}), l = N(!1), a = N(), i = re({}), d = N(!0), w = (C) => s.mode === "view" && (K(C, void 0) || K(C, "input") || K(C, "select") || K(C, "password")), y = De(() => s.model.fields ? s.model.fields.filter(
|
|
1990
2022
|
(C) => {
|
|
1991
|
-
var
|
|
1992
|
-
let
|
|
2023
|
+
var A, u, c, g;
|
|
2024
|
+
let _ = C.visible !== !1 && ((A = C.formItemAttributes) == null ? void 0 : A.visible) !== !1;
|
|
1993
2025
|
if (s.mode !== "view" && ((u = C.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = C.formItemAttributes) == null ? void 0 : c.type) === "password")
|
|
1994
2026
|
return !1;
|
|
1995
|
-
let
|
|
1996
|
-
return
|
|
2027
|
+
let P = (g = C.formItemAttributes) == null ? void 0 : g.showCondition;
|
|
2028
|
+
return P && P.field && P.value ? r[P.field] === P.value : _;
|
|
1997
2029
|
}
|
|
1998
2030
|
) : []);
|
|
1999
2031
|
Se([() => s.id, () => s.sessionId], () => {
|
|
2000
|
-
|
|
2032
|
+
D();
|
|
2001
2033
|
});
|
|
2002
|
-
function
|
|
2034
|
+
function M() {
|
|
2003
2035
|
const C = s.model.fields;
|
|
2004
|
-
let
|
|
2005
|
-
C == null || C.forEach((
|
|
2006
|
-
var
|
|
2007
|
-
if (r[
|
|
2008
|
-
if (((u =
|
|
2009
|
-
let W = (g =
|
|
2010
|
-
W !== void 0 && (
|
|
2036
|
+
let _ = {};
|
|
2037
|
+
C == null || C.forEach((P) => {
|
|
2038
|
+
var A, u, c, g, E, F, q, S, T;
|
|
2039
|
+
if (r[P.prop] = null, P.visible !== !1 && ((A = P.formItemAttributes) == null ? void 0 : A.visible) !== !1) {
|
|
2040
|
+
if (((u = P.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[P.prop] = (c = P.formItemAttributes) == null ? void 0 : c.defaultValue : r[P.prop] = void 0, s.mode !== "view") {
|
|
2041
|
+
let W = (g = P.formItemAttributes) == null ? void 0 : g.validationRule;
|
|
2042
|
+
W !== void 0 && (_[P.prop] = W), Object.assign(i, _);
|
|
2011
2043
|
}
|
|
2012
|
-
const v =
|
|
2044
|
+
const v = P.formItemAttributes, f = v == null ? void 0 : v.type, O = (E = v == null ? void 0 : v.selectAttributes) == null ? void 0 : E.api, G = (F = v == null ? void 0 : v.selectAttributes) == null ? void 0 : F.valueMappingField, X = (q = v == null ? void 0 : v.selectAttributes) == null ? void 0 : q.labelMappingField;
|
|
2013
2045
|
if (f === "select" && O) {
|
|
2014
2046
|
let W = O;
|
|
2015
|
-
const ae = (
|
|
2016
|
-
ae && (W = `${W}?${ae}=${s.id}`), fe ||
|
|
2047
|
+
const ae = (S = v == null ? void 0 : v.selectAttributes) == null ? void 0 : S.queryParamName, fe = (T = v == null ? void 0 : v.selectAttributes) == null ? void 0 : T.queryParamValueField;
|
|
2048
|
+
ae && (W = `${W}?${ae}=${s.id}`), fe || Oe(W, "GET", {}).then(({ data: le }) => {
|
|
2017
2049
|
var ie;
|
|
2018
|
-
if ((ie =
|
|
2050
|
+
if ((ie = P.formItemAttributes) != null && ie.selectAttributes) {
|
|
2019
2051
|
let Z = [];
|
|
2020
|
-
Array.isArray(le.data) ? Z = le.data : le.data.list && Array.isArray(le.data.list) && (Z = le.data.list),
|
|
2052
|
+
Array.isArray(le.data) ? Z = le.data : le.data.list && Array.isArray(le.data.list) && (Z = le.data.list), P.formItemAttributes.selectAttributes.options = Z.map((J) => ({
|
|
2021
2053
|
value: G ? J[G] : J.value,
|
|
2022
2054
|
label: X ? J[X] : J.label
|
|
2023
2055
|
}));
|
|
@@ -2027,79 +2059,79 @@ const ze = (e) => {
|
|
|
2027
2059
|
}
|
|
2028
2060
|
});
|
|
2029
2061
|
}
|
|
2030
|
-
function
|
|
2062
|
+
function D() {
|
|
2031
2063
|
var C;
|
|
2032
|
-
console.log("init form", s.id, s.model),
|
|
2033
|
-
|
|
2064
|
+
console.log("init form", s.id, s.model), $(), d.value = (C = s.model.useI18n) != null ? C : !0, M(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: _ }) => {
|
|
2065
|
+
Be(r), Object.assign(r, _.data), l.value = !1;
|
|
2034
2066
|
}));
|
|
2035
2067
|
}
|
|
2036
2068
|
function L() {
|
|
2037
|
-
return new Promise((C,
|
|
2038
|
-
var
|
|
2039
|
-
((u = (
|
|
2040
|
-
let
|
|
2041
|
-
s.model.api &&
|
|
2042
|
-
var F, q,
|
|
2043
|
-
E.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((q = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : q.afterSubmit) !== void 0 && ((T = (
|
|
2069
|
+
return new Promise((C, _) => {
|
|
2070
|
+
var A, u, c, g;
|
|
2071
|
+
((u = (A = s.model.formConfig) == null ? void 0 : A.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (g = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : g.beforeSubmit(r));
|
|
2072
|
+
let P = s.mode === "create" ? "POST" : "PUT";
|
|
2073
|
+
s.model.api && Oe(s.model.api, P, r).then(({ data: E }) => {
|
|
2074
|
+
var F, q, S, T;
|
|
2075
|
+
E.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((q = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : q.afterSubmit) !== void 0 && ((T = (S = s.model.formConfig) == null ? void 0 : S.functions) == null || T.afterSubmit(E.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
|
|
2044
2076
|
});
|
|
2045
2077
|
});
|
|
2046
2078
|
}
|
|
2047
|
-
function
|
|
2079
|
+
function $() {
|
|
2048
2080
|
var C;
|
|
2049
2081
|
(C = a.value) == null || C.resetFields();
|
|
2050
2082
|
}
|
|
2051
|
-
function
|
|
2083
|
+
function z(C) {
|
|
2052
2084
|
return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
|
|
2053
2085
|
}
|
|
2054
|
-
function
|
|
2055
|
-
var
|
|
2086
|
+
function I(C) {
|
|
2087
|
+
var _, P, A, u;
|
|
2056
2088
|
if (C) {
|
|
2057
|
-
if (
|
|
2058
|
-
const c = (
|
|
2089
|
+
if (K(C, "select")) {
|
|
2090
|
+
const c = (P = (_ = C.tableColumnAttributes) == null ? void 0 : _.functions) == null ? void 0 : P.transformValue;
|
|
2059
2091
|
if (c)
|
|
2060
2092
|
return c(r[C.prop]);
|
|
2061
|
-
const g = (u = (
|
|
2093
|
+
const g = (u = (A = C.formItemAttributes) == null ? void 0 : A.selectAttributes) == null ? void 0 : u.viewModeLabelField;
|
|
2062
2094
|
if (g)
|
|
2063
2095
|
return r[g];
|
|
2064
2096
|
}
|
|
2065
2097
|
return r[C.prop];
|
|
2066
2098
|
}
|
|
2067
2099
|
}
|
|
2068
|
-
function
|
|
2069
|
-
var
|
|
2070
|
-
return ((
|
|
2100
|
+
function Y(C) {
|
|
2101
|
+
var _;
|
|
2102
|
+
return ((_ = C.formItemAttributes) == null ? void 0 : _.updatable) === !1 && s.mode === "update";
|
|
2071
2103
|
}
|
|
2072
|
-
function
|
|
2073
|
-
var
|
|
2074
|
-
const
|
|
2104
|
+
function j(C, _) {
|
|
2105
|
+
var A, u;
|
|
2106
|
+
const P = (u = (A = _.formItemAttributes) == null ? void 0 : A.type) != null ? u : "input";
|
|
2075
2107
|
switch (C) {
|
|
2076
2108
|
case "input":
|
|
2077
|
-
return s.mode === "view" ? !1 :
|
|
2109
|
+
return s.mode === "view" ? !1 : P === "input" || P === "password";
|
|
2078
2110
|
case "select":
|
|
2079
2111
|
return !0;
|
|
2080
2112
|
default:
|
|
2081
2113
|
return console.log("Error: unrecognized form component type: ", C), !0;
|
|
2082
2114
|
}
|
|
2083
2115
|
}
|
|
2084
|
-
function
|
|
2085
|
-
var
|
|
2086
|
-
return ((
|
|
2116
|
+
function K(C, _) {
|
|
2117
|
+
var P;
|
|
2118
|
+
return ((P = C.formItemAttributes) == null ? void 0 : P.type) === _;
|
|
2087
2119
|
}
|
|
2088
2120
|
function ne(C) {
|
|
2089
|
-
var
|
|
2090
|
-
for (let
|
|
2091
|
-
const
|
|
2092
|
-
if (!(
|
|
2093
|
-
const u =
|
|
2121
|
+
var _;
|
|
2122
|
+
for (let P of s.model.fields) {
|
|
2123
|
+
const A = (_ = P.formItemAttributes) == null ? void 0 : _.selectAttributes;
|
|
2124
|
+
if (!(!P.formItemAttributes || P.formItemAttributes.type !== "select" || !A || !A.queryParamValueField) && A.queryParamValueField === C.prop) {
|
|
2125
|
+
const u = A.api;
|
|
2094
2126
|
if (u) {
|
|
2095
2127
|
let c = u;
|
|
2096
|
-
const g =
|
|
2097
|
-
g && (c = `${c}?${g}=${r[
|
|
2098
|
-
if (
|
|
2128
|
+
const g = A.queryParamName;
|
|
2129
|
+
g && (c = `${c}?${g}=${r[A.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: E }) => {
|
|
2130
|
+
if (A) {
|
|
2099
2131
|
let F = [];
|
|
2100
|
-
Array.isArray(E.data) ? F = E.data : E.data.list && Array.isArray(E.data.list) && (F = E.data.list),
|
|
2101
|
-
value:
|
|
2102
|
-
label:
|
|
2132
|
+
Array.isArray(E.data) ? F = E.data : E.data.list && Array.isArray(E.data.list) && (F = E.data.list), A.options = F.map((q) => ({
|
|
2133
|
+
value: A.valueMappingField ? q[A.valueMappingField] : q.value,
|
|
2134
|
+
label: A.labelMappingField ? q[A.labelMappingField] : q.label
|
|
2103
2135
|
}));
|
|
2104
2136
|
}
|
|
2105
2137
|
});
|
|
@@ -2108,15 +2140,15 @@ const ze = (e) => {
|
|
|
2108
2140
|
}
|
|
2109
2141
|
}
|
|
2110
2142
|
return pt(() => {
|
|
2111
|
-
|
|
2112
|
-
}),
|
|
2113
|
-
refresh:
|
|
2114
|
-
reset:
|
|
2143
|
+
D();
|
|
2144
|
+
}), t({
|
|
2145
|
+
refresh: D,
|
|
2146
|
+
reset: $,
|
|
2115
2147
|
submit: L,
|
|
2116
2148
|
formData: r
|
|
2117
|
-
}), (C,
|
|
2118
|
-
const
|
|
2119
|
-
return Ut((p(),
|
|
2149
|
+
}), (C, _) => {
|
|
2150
|
+
const P = x("el-input"), A = x("el-switch"), u = x("el-date-picker"), c = x("el-option"), g = x("el-select"), E = x("el-form-item"), F = x("el-form"), q = Vt("loading");
|
|
2151
|
+
return Ut((p(), V(F, {
|
|
2120
2152
|
ref_key: "formRef",
|
|
2121
2153
|
ref: a,
|
|
2122
2154
|
model: r,
|
|
@@ -2124,48 +2156,49 @@ const ze = (e) => {
|
|
|
2124
2156
|
"label-width": "auto",
|
|
2125
2157
|
"label-position": "left",
|
|
2126
2158
|
"require-asterisk-position": "right",
|
|
2127
|
-
inline: !
|
|
2159
|
+
inline: !s.disableInline
|
|
2128
2160
|
}, {
|
|
2129
2161
|
default: m(() => [
|
|
2130
|
-
(p(!0),
|
|
2162
|
+
(p(!0), U(oe, null, ce(y.value, (S) => (p(), V(E, {
|
|
2131
2163
|
class: "form-item",
|
|
2132
|
-
|
|
2133
|
-
|
|
2164
|
+
style: Te({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2165
|
+
prop: S.prop,
|
|
2166
|
+
label: z(S)
|
|
2134
2167
|
}, {
|
|
2135
2168
|
default: m(() => {
|
|
2136
2169
|
var T;
|
|
2137
2170
|
return [
|
|
2138
|
-
|
|
2171
|
+
j("input", S) ? (p(), V(P, {
|
|
2139
2172
|
key: 0,
|
|
2140
|
-
type:
|
|
2141
|
-
modelValue: r[
|
|
2142
|
-
"onUpdate:modelValue": (v) => r[
|
|
2143
|
-
placeholder: (T =
|
|
2144
|
-
disabled:
|
|
2173
|
+
type: K(S, "password") ? "password" : "text",
|
|
2174
|
+
modelValue: r[S.prop],
|
|
2175
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v,
|
|
2176
|
+
placeholder: (T = S.formItemAttributes) == null ? void 0 : T.placeholder,
|
|
2177
|
+
disabled: Y(S)
|
|
2145
2178
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : B("", !0),
|
|
2146
|
-
|
|
2147
|
-
|
|
2179
|
+
w(S) ? (p(), U("span", Fs, R(I(S)), 1)) : B("", !0),
|
|
2180
|
+
K(S, "switch") ? (p(), V(A, {
|
|
2148
2181
|
key: 2,
|
|
2149
|
-
modelValue: r[
|
|
2150
|
-
"onUpdate:modelValue": (v) => r[
|
|
2182
|
+
modelValue: r[S.prop],
|
|
2183
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v
|
|
2151
2184
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2152
|
-
|
|
2185
|
+
K(S, "datepicker") ? (p(), V(u, {
|
|
2153
2186
|
key: 3,
|
|
2154
2187
|
type: "date",
|
|
2155
|
-
modelValue: r[
|
|
2156
|
-
"onUpdate:modelValue": (v) => r[
|
|
2188
|
+
modelValue: r[S.prop],
|
|
2189
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v
|
|
2157
2190
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
|
|
2158
|
-
|
|
2191
|
+
K(S, "select") && C.mode !== "view" ? (p(), V(g, {
|
|
2159
2192
|
key: 4,
|
|
2160
|
-
modelValue: r[
|
|
2161
|
-
"onUpdate:modelValue": (v) => r[
|
|
2162
|
-
disabled:
|
|
2163
|
-
onChange: (v) => ne(
|
|
2193
|
+
modelValue: r[S.prop],
|
|
2194
|
+
"onUpdate:modelValue": (v) => r[S.prop] = v,
|
|
2195
|
+
disabled: Y(S),
|
|
2196
|
+
onChange: (v) => ne(S)
|
|
2164
2197
|
}, {
|
|
2165
2198
|
default: m(() => {
|
|
2166
2199
|
var v, f;
|
|
2167
2200
|
return [
|
|
2168
|
-
(p(!0),
|
|
2201
|
+
(p(!0), U(oe, null, ce((f = (v = S.formItemAttributes) == null ? void 0 : v.selectAttributes) == null ? void 0 : f.options, (O) => (p(), V(c, {
|
|
2169
2202
|
value: O.value,
|
|
2170
2203
|
label: O.label
|
|
2171
2204
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -2176,26 +2209,30 @@ const ze = (e) => {
|
|
|
2176
2209
|
];
|
|
2177
2210
|
}),
|
|
2178
2211
|
_: 2
|
|
2179
|
-
}, 1032, ["prop", "label"]))), 256))
|
|
2212
|
+
}, 1032, ["style", "prop", "label"]))), 256))
|
|
2180
2213
|
]),
|
|
2181
2214
|
_: 1
|
|
2182
|
-
}, 8, ["model", "rules"])), [
|
|
2215
|
+
}, 8, ["model", "rules", "inline"])), [
|
|
2183
2216
|
[q, l.value]
|
|
2184
2217
|
]);
|
|
2185
2218
|
};
|
|
2186
2219
|
}
|
|
2187
|
-
}), lo = /* @__PURE__ */
|
|
2220
|
+
}), lo = /* @__PURE__ */ pe(Gs, [["__scopeId", "data-v-e5e9f7e1"]]), Ls = { class: "console-dialog__body" }, js = {
|
|
2221
|
+
key: 0,
|
|
2222
|
+
class: "process-view"
|
|
2223
|
+
}, zs = { class: "operation-button-wrapper" }, io = /* @__PURE__ */ _e({
|
|
2188
2224
|
__name: "FormDialog",
|
|
2189
2225
|
props: {
|
|
2190
2226
|
id: {},
|
|
2191
2227
|
mode: {},
|
|
2192
2228
|
model: {},
|
|
2193
2229
|
visible: { type: Boolean },
|
|
2230
|
+
showProcess: { type: Boolean },
|
|
2194
2231
|
afterSubmitFunc: { type: Function }
|
|
2195
2232
|
},
|
|
2196
2233
|
emits: ["update:visible", "update:id"],
|
|
2197
|
-
setup(e, { expose:
|
|
2198
|
-
const { t: n } =
|
|
2234
|
+
setup(e, { expose: t, emit: o }) {
|
|
2235
|
+
const { t: n } = Je(), s = e, r = N(0), l = o, a = N();
|
|
2199
2236
|
Se(() => s.visible, () => {
|
|
2200
2237
|
s.visible && r.value++;
|
|
2201
2238
|
});
|
|
@@ -2205,83 +2242,107 @@ const ze = (e) => {
|
|
|
2205
2242
|
function d() {
|
|
2206
2243
|
l("update:visible", !1), a.value.reset();
|
|
2207
2244
|
}
|
|
2208
|
-
function
|
|
2245
|
+
function w() {
|
|
2209
2246
|
a.value.submit();
|
|
2210
2247
|
}
|
|
2211
|
-
return
|
|
2248
|
+
return t({
|
|
2212
2249
|
close: d,
|
|
2213
2250
|
refresh: i
|
|
2214
|
-
}), (
|
|
2215
|
-
const
|
|
2216
|
-
return p(),
|
|
2251
|
+
}), (y, M) => {
|
|
2252
|
+
const D = x("el-step"), L = x("el-steps"), $ = x("el-button"), z = x("el-dialog");
|
|
2253
|
+
return p(), V(z, {
|
|
2254
|
+
class: "console-dialog",
|
|
2217
2255
|
title: "Edit",
|
|
2256
|
+
"align-center": "",
|
|
2218
2257
|
"model-value": s.visible,
|
|
2219
2258
|
width: "800px",
|
|
2220
2259
|
onClose: d
|
|
2221
2260
|
}, {
|
|
2222
2261
|
footer: m(() => {
|
|
2223
|
-
var
|
|
2262
|
+
var I;
|
|
2224
2263
|
return [
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2264
|
+
b("div", {
|
|
2265
|
+
class: "dialog-footer",
|
|
2266
|
+
style: Te({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2267
|
+
}, [
|
|
2268
|
+
b("div", zs, [
|
|
2269
|
+
(p(!0), U(oe, null, ce((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (Y) => (p(), V($, {
|
|
2270
|
+
onClick: (j) => Y.function(a.value.formData)
|
|
2229
2271
|
}, {
|
|
2230
2272
|
default: m(() => [
|
|
2231
|
-
|
|
2273
|
+
Q(R(k(n)(Y.label)), 1)
|
|
2232
2274
|
]),
|
|
2233
2275
|
_: 2
|
|
2234
2276
|
}, 1032, ["onClick"]))), 256))
|
|
2235
2277
|
]),
|
|
2236
|
-
|
|
2237
|
-
|
|
2278
|
+
b("div", null, [
|
|
2279
|
+
h($, { onClick: d }, {
|
|
2238
2280
|
default: m(() => [
|
|
2239
|
-
|
|
2281
|
+
Q(R(k(n)("common.basic.cancel")), 1)
|
|
2240
2282
|
]),
|
|
2241
2283
|
_: 1
|
|
2242
2284
|
}),
|
|
2243
|
-
|
|
2285
|
+
h($, {
|
|
2244
2286
|
type: "primary",
|
|
2245
|
-
onClick:
|
|
2287
|
+
onClick: w
|
|
2246
2288
|
}, {
|
|
2247
2289
|
default: m(() => [
|
|
2248
|
-
|
|
2290
|
+
Q(R(k(n)("common.basic.save")), 1)
|
|
2249
2291
|
]),
|
|
2250
2292
|
_: 1
|
|
2251
2293
|
})
|
|
2252
2294
|
])
|
|
2253
|
-
])
|
|
2295
|
+
], 4)
|
|
2254
2296
|
];
|
|
2255
2297
|
}),
|
|
2256
2298
|
default: m(() => [
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2299
|
+
b("div", Ls, [
|
|
2300
|
+
h(lo, {
|
|
2301
|
+
class: "form-view",
|
|
2302
|
+
style: Te({ width: y.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2303
|
+
ref_key: "formViewRef",
|
|
2304
|
+
ref: a,
|
|
2305
|
+
id: s.id,
|
|
2306
|
+
sessionId: r.value,
|
|
2307
|
+
mode: s.mode,
|
|
2308
|
+
model: s.model,
|
|
2309
|
+
afterSubmitFunc: s.afterSubmitFunc,
|
|
2310
|
+
closeDialogFunc: d,
|
|
2311
|
+
disableInline: s.showProcess
|
|
2312
|
+
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2313
|
+
y.showProcess ? (p(), U("div", js, [
|
|
2314
|
+
M[0] || (M[0] = b("h1", null, "流程动态", -1)),
|
|
2315
|
+
h(L, {
|
|
2316
|
+
style: { height: "90%" },
|
|
2317
|
+
direction: "vertical",
|
|
2318
|
+
active: 1
|
|
2319
|
+
}, {
|
|
2320
|
+
default: m(() => [
|
|
2321
|
+
h(D, { title: "Step 1" }),
|
|
2322
|
+
h(D, { title: "Step 2" })
|
|
2323
|
+
]),
|
|
2324
|
+
_: 1
|
|
2325
|
+
})
|
|
2326
|
+
])) : B("", !0)
|
|
2327
|
+
])
|
|
2267
2328
|
]),
|
|
2268
2329
|
_: 1
|
|
2269
2330
|
}, 8, ["model-value"]);
|
|
2270
2331
|
};
|
|
2271
2332
|
}
|
|
2272
|
-
}),
|
|
2333
|
+
}), qs = { class: "toolbar" }, Bs = { class: "tool-buttons" }, Hs = { class: "tool-buttons" }, Js = { key: 2 }, Ws = /* @__PURE__ */ _e({
|
|
2273
2334
|
__name: "TableView",
|
|
2274
2335
|
props: {
|
|
2275
2336
|
model: {}
|
|
2276
2337
|
},
|
|
2277
|
-
setup(e, { expose:
|
|
2278
|
-
const { t } =
|
|
2338
|
+
setup(e, { expose: t }) {
|
|
2339
|
+
const { t: o } = tt.global, n = e, s = re([]), r = re({
|
|
2279
2340
|
showPane: !0
|
|
2280
|
-
}), l =
|
|
2341
|
+
}), l = N(""), a = N(!0), i = N(!1), d = st(), w = N(""), y = re([]), M = re([]), D = N(), L = N([]), $ = N("create"), z = N(!0), I = N(!1), Y = N(""), j = re({
|
|
2281
2342
|
pageSize: 10,
|
|
2282
2343
|
pageNo: 1,
|
|
2283
2344
|
totalElements: 0
|
|
2284
|
-
}),
|
|
2345
|
+
}), K = De(() => s.filter(
|
|
2285
2346
|
(f) => {
|
|
2286
2347
|
var O, G;
|
|
2287
2348
|
return ((O = f.formItemAttributes) == null ? void 0 : O.type) !== "password" && f.visible !== !1 && ((G = f.tableColumnAttributes) == null ? void 0 : G.visible) !== !1;
|
|
@@ -2296,7 +2357,7 @@ const ze = (e) => {
|
|
|
2296
2357
|
else if (W && W.length > 0) {
|
|
2297
2358
|
for (let Z of W)
|
|
2298
2359
|
if (G === Z.value) {
|
|
2299
|
-
G =
|
|
2360
|
+
G = o(Z.label);
|
|
2300
2361
|
break;
|
|
2301
2362
|
}
|
|
2302
2363
|
} else if (((ie = f.formItemAttributes) == null ? void 0 : ie.type) === "select") {
|
|
@@ -2317,38 +2378,38 @@ const ze = (e) => {
|
|
|
2317
2378
|
}
|
|
2318
2379
|
function C(f, O) {
|
|
2319
2380
|
var G, X;
|
|
2320
|
-
return f.label ?
|
|
2381
|
+
return f.label ? o(f.label) : (X = (G = f.functions) == null ? void 0 : G.transformLabel) == null ? void 0 : X.call(G, O.$index, O.row);
|
|
2321
2382
|
}
|
|
2322
|
-
function
|
|
2323
|
-
|
|
2383
|
+
function _(f) {
|
|
2384
|
+
Be(n.model), Object.assign(n.model, f);
|
|
2324
2385
|
}
|
|
2325
|
-
function
|
|
2386
|
+
function P() {
|
|
2326
2387
|
var O, G, X;
|
|
2327
|
-
if (
|
|
2388
|
+
if (z.value = !0, !n.model || !n.model.api)
|
|
2328
2389
|
return;
|
|
2329
|
-
|
|
2330
|
-
let f =
|
|
2331
|
-
f.pageSize =
|
|
2390
|
+
Be(r), r.showPane = !0, Object.assign(r, (O = n.model.tableConfig) != null ? O : {}), s.splice(0, s.length, ...n.model.fields), l.value = (G = n.model.route) != null ? G : "", a.value = (X = n.model.useI18n) != null ? X : !0;
|
|
2391
|
+
let f = We({}, r.queryParams);
|
|
2392
|
+
f.pageSize = j.pageSize, f.pageNo = j.pageNo, f.search = w.value, Oe(n.model.api, "GET", f).then(({ data: W }) => {
|
|
2332
2393
|
const { list: ae, totalCount: fe } = W.data;
|
|
2333
|
-
|
|
2394
|
+
y.splice(0, y.length, ...ae), j.totalElements = fe, z.value = !1;
|
|
2334
2395
|
});
|
|
2335
2396
|
}
|
|
2336
|
-
function
|
|
2397
|
+
function A() {
|
|
2337
2398
|
var f, O;
|
|
2338
|
-
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (O = r.functions) == null || O.create() : (
|
|
2399
|
+
r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (O = r.functions) == null || O.create() : ($.value = "create", Y.value = "", i.value = !0);
|
|
2339
2400
|
}
|
|
2340
2401
|
function u(f, O) {
|
|
2341
|
-
n.model.api &&
|
|
2342
|
-
G.code === 0 && (i.value = !1,
|
|
2402
|
+
n.model.api && Oe(n.model.api, "DELETE", O.id).then(({ data: G }) => {
|
|
2403
|
+
G.code === 0 && (i.value = !1, P());
|
|
2343
2404
|
});
|
|
2344
2405
|
}
|
|
2345
2406
|
function c() {
|
|
2346
2407
|
Co.confirm(
|
|
2347
2408
|
"The selected items will be deleted. Continue?",
|
|
2348
|
-
|
|
2409
|
+
o("common.table.warning"),
|
|
2349
2410
|
{
|
|
2350
|
-
confirmButtonText:
|
|
2351
|
-
cancelButtonText:
|
|
2411
|
+
confirmButtonText: o("common.basic.confirm"),
|
|
2412
|
+
cancelButtonText: o("common.basic.cancel"),
|
|
2352
2413
|
type: "warning"
|
|
2353
2414
|
}
|
|
2354
2415
|
).then(() => {
|
|
@@ -2357,20 +2418,20 @@ const ze = (e) => {
|
|
|
2357
2418
|
(O = r.functions) == null || O.batchDelete(L.value);
|
|
2358
2419
|
else {
|
|
2359
2420
|
const G = L.value.map((X) => X.id);
|
|
2360
|
-
|
|
2361
|
-
X.code === 0 && (i.value = !1,
|
|
2421
|
+
de.delete(`${n.model.api}/${G.join(",")}`).then(({ data: X }) => {
|
|
2422
|
+
X.code === 0 && (i.value = !1, P());
|
|
2362
2423
|
});
|
|
2363
2424
|
}
|
|
2364
|
-
|
|
2425
|
+
D.value.clearSelection();
|
|
2365
2426
|
}).catch(() => {
|
|
2366
|
-
|
|
2427
|
+
D.value.clearSelection();
|
|
2367
2428
|
});
|
|
2368
2429
|
}
|
|
2369
2430
|
function g(f) {
|
|
2370
|
-
|
|
2431
|
+
j.pageSize = f, P();
|
|
2371
2432
|
}
|
|
2372
2433
|
function E(f) {
|
|
2373
|
-
|
|
2434
|
+
j.pageNo = f, P();
|
|
2374
2435
|
}
|
|
2375
2436
|
function F(f, O) {
|
|
2376
2437
|
r.editPageRoutePath !== void 0 ? d.push({
|
|
@@ -2378,7 +2439,7 @@ const ze = (e) => {
|
|
|
2378
2439
|
query: {
|
|
2379
2440
|
id: O.id
|
|
2380
2441
|
}
|
|
2381
|
-
}) : (
|
|
2442
|
+
}) : (Y.value = O.id, $.value = "update", i.value = !0);
|
|
2382
2443
|
}
|
|
2383
2444
|
function q() {
|
|
2384
2445
|
let f = window.location.origin + n.model.api + "/export";
|
|
@@ -2387,61 +2448,61 @@ const ze = (e) => {
|
|
|
2387
2448
|
f += `${G[0]}=${G[1]}&`;
|
|
2388
2449
|
})), window.open(f);
|
|
2389
2450
|
}
|
|
2390
|
-
function
|
|
2451
|
+
function S(f) {
|
|
2391
2452
|
L.value = f;
|
|
2392
2453
|
}
|
|
2393
2454
|
function T(f) {
|
|
2394
|
-
return f.label ? a.value ?
|
|
2455
|
+
return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
|
|
2395
2456
|
}
|
|
2396
2457
|
function v(f) {
|
|
2397
|
-
f ? (
|
|
2458
|
+
f ? (I.value = !0, M.splice(0, M.length, ...y), y.splice(0, y.length, ...L.value)) : (I.value = !1, y.splice(0, y.length, ...M));
|
|
2398
2459
|
}
|
|
2399
2460
|
return Se(() => n.model, () => {
|
|
2400
|
-
|
|
2461
|
+
P();
|
|
2401
2462
|
}, {
|
|
2402
2463
|
deep: !0,
|
|
2403
2464
|
immediate: !0
|
|
2404
|
-
}),
|
|
2465
|
+
}), t({
|
|
2405
2466
|
multipleSelection: L,
|
|
2406
|
-
refresh:
|
|
2407
|
-
updateConfigAndRefresh:
|
|
2467
|
+
refresh: P,
|
|
2468
|
+
updateConfigAndRefresh: _
|
|
2408
2469
|
}), (f, O) => {
|
|
2409
|
-
const G = x("el-checkbox"), X = x("el-badge"), W = x("el-button"), ae = x("el-icon"), fe = x("el-tooltip"), le = x("el-input"), ie = x("el-table-column"), Z = x("router-link"), J = x("el-tag"), ge = x("el-popconfirm"), be = x("el-table"),
|
|
2410
|
-
return p(),
|
|
2411
|
-
class:
|
|
2470
|
+
const G = x("el-checkbox"), X = x("el-badge"), W = x("el-button"), ae = x("el-icon"), fe = x("el-tooltip"), le = x("el-input"), ie = x("el-table-column"), Z = x("router-link"), J = x("el-tag"), ge = x("el-popconfirm"), be = x("el-table"), Re = x("el-pagination"), co = Vt("loading");
|
|
2471
|
+
return p(), U("div", {
|
|
2472
|
+
class: At({ "table-view-wrapper": r.showPane })
|
|
2412
2473
|
}, [
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
r.selectMode ? (p(),
|
|
2474
|
+
b("div", qs, [
|
|
2475
|
+
b("div", Bs, [
|
|
2476
|
+
r.selectMode ? (p(), V(X, {
|
|
2416
2477
|
key: 0,
|
|
2417
2478
|
value: L.value.length,
|
|
2418
2479
|
type: "primary",
|
|
2419
2480
|
class: "selected-badge"
|
|
2420
2481
|
}, {
|
|
2421
2482
|
default: m(() => [
|
|
2422
|
-
|
|
2483
|
+
h(G, {
|
|
2423
2484
|
class: "selected-checkbox",
|
|
2424
2485
|
border: !0,
|
|
2425
|
-
label: k(
|
|
2486
|
+
label: k(o)("common.table.viewSelected"),
|
|
2426
2487
|
onChange: v
|
|
2427
2488
|
}, null, 8, ["label"])
|
|
2428
2489
|
]),
|
|
2429
2490
|
_: 1
|
|
2430
2491
|
}, 8, ["value"])) : B("", !0),
|
|
2431
|
-
!r.selectMode && !r.readOnly ? (p(),
|
|
2492
|
+
!r.selectMode && !r.readOnly ? (p(), V(W, {
|
|
2432
2493
|
key: 1,
|
|
2433
2494
|
type: "primary",
|
|
2434
|
-
onClick:
|
|
2495
|
+
onClick: A
|
|
2435
2496
|
}, {
|
|
2436
2497
|
default: m(() => {
|
|
2437
2498
|
var se, H;
|
|
2438
2499
|
return [
|
|
2439
|
-
|
|
2500
|
+
Q(R(((se = r.labels) == null ? void 0 : se.create) != null ? k(o)((H = r.labels) == null ? void 0 : H.create) : k(o)("common.table.create")), 1)
|
|
2440
2501
|
];
|
|
2441
2502
|
}),
|
|
2442
2503
|
_: 1
|
|
2443
2504
|
})) : B("", !0),
|
|
2444
|
-
!r.selectMode && !r.readOnly ? (p(),
|
|
2505
|
+
!r.selectMode && !r.readOnly ? (p(), V(W, {
|
|
2445
2506
|
key: 2,
|
|
2446
2507
|
disabled: L.value.length == 0,
|
|
2447
2508
|
type: "danger",
|
|
@@ -2451,25 +2512,25 @@ const ze = (e) => {
|
|
|
2451
2512
|
default: m(() => {
|
|
2452
2513
|
var se, H;
|
|
2453
2514
|
return [
|
|
2454
|
-
|
|
2515
|
+
Q(R(((se = r.labels) == null ? void 0 : se.delete) != null ? k(o)((H = r.labels) == null ? void 0 : H.delete) : k(o)("common.table.delete")), 1)
|
|
2455
2516
|
];
|
|
2456
2517
|
}),
|
|
2457
2518
|
_: 1
|
|
2458
2519
|
}, 8, ["disabled"])) : B("", !0),
|
|
2459
|
-
|
|
2520
|
+
h(W, {
|
|
2460
2521
|
icon: k(Dt),
|
|
2461
|
-
onClick:
|
|
2522
|
+
onClick: P
|
|
2462
2523
|
}, null, 8, ["icon"]),
|
|
2463
|
-
r.tooltip ? (p(),
|
|
2524
|
+
r.tooltip ? (p(), V(fe, {
|
|
2464
2525
|
key: 3,
|
|
2465
2526
|
effect: "dark",
|
|
2466
|
-
content: k(
|
|
2527
|
+
content: k(o)(r.tooltip),
|
|
2467
2528
|
placement: "right"
|
|
2468
2529
|
}, {
|
|
2469
2530
|
default: m(() => [
|
|
2470
|
-
|
|
2531
|
+
h(ae, { style: { color: "#8ba74f" } }, {
|
|
2471
2532
|
default: m(() => [
|
|
2472
|
-
|
|
2533
|
+
h(k(xo))
|
|
2473
2534
|
]),
|
|
2474
2535
|
_: 1
|
|
2475
2536
|
})
|
|
@@ -2477,87 +2538,87 @@ const ze = (e) => {
|
|
|
2477
2538
|
_: 1
|
|
2478
2539
|
}, 8, ["content"])) : B("", !0)
|
|
2479
2540
|
]),
|
|
2480
|
-
|
|
2481
|
-
r.export ? (p(),
|
|
2541
|
+
b("div", Hs, [
|
|
2542
|
+
r.export ? (p(), V(W, {
|
|
2482
2543
|
key: 0,
|
|
2483
2544
|
class: "button-export",
|
|
2484
2545
|
onClick: q
|
|
2485
2546
|
}, {
|
|
2486
2547
|
default: m(() => [
|
|
2487
|
-
|
|
2548
|
+
h(ae, null, {
|
|
2488
2549
|
default: m(() => [
|
|
2489
|
-
|
|
2550
|
+
h(k(Eo))
|
|
2490
2551
|
]),
|
|
2491
2552
|
_: 1
|
|
2492
2553
|
})
|
|
2493
2554
|
]),
|
|
2494
2555
|
_: 1
|
|
2495
2556
|
})) : B("", !0),
|
|
2496
|
-
|
|
2497
|
-
placeholder: `${k(
|
|
2498
|
-
modelValue:
|
|
2499
|
-
"onUpdate:modelValue": O[0] || (O[0] = (se) =>
|
|
2557
|
+
h(le, {
|
|
2558
|
+
placeholder: `${k(o)("common.table.search")}...`,
|
|
2559
|
+
modelValue: w.value,
|
|
2560
|
+
"onUpdate:modelValue": O[0] || (O[0] = (se) => w.value = se)
|
|
2500
2561
|
}, {
|
|
2501
2562
|
append: m(() => [
|
|
2502
|
-
|
|
2563
|
+
h(W, {
|
|
2503
2564
|
style: { "margin-left": "-20px" },
|
|
2504
2565
|
icon: k(Tt),
|
|
2505
|
-
onClick:
|
|
2566
|
+
onClick: P
|
|
2506
2567
|
}, null, 8, ["icon"])
|
|
2507
2568
|
]),
|
|
2508
2569
|
_: 1
|
|
2509
2570
|
}, 8, ["placeholder", "modelValue"])
|
|
2510
2571
|
])
|
|
2511
2572
|
]),
|
|
2512
|
-
Ut((p(),
|
|
2573
|
+
Ut((p(), V(be, {
|
|
2513
2574
|
border: !0,
|
|
2514
2575
|
ref_key: "tableRef",
|
|
2515
|
-
ref:
|
|
2516
|
-
data:
|
|
2517
|
-
onSelectionChange:
|
|
2576
|
+
ref: D,
|
|
2577
|
+
data: y,
|
|
2578
|
+
onSelectionChange: S,
|
|
2518
2579
|
class: "table"
|
|
2519
2580
|
}, {
|
|
2520
2581
|
default: m(() => {
|
|
2521
2582
|
var se;
|
|
2522
2583
|
return [
|
|
2523
|
-
r.readOnly ? B("", !0) : (p(),
|
|
2584
|
+
r.readOnly ? B("", !0) : (p(), V(ie, {
|
|
2524
2585
|
key: 0,
|
|
2525
2586
|
type: "selection",
|
|
2526
2587
|
width: "50"
|
|
2527
2588
|
})),
|
|
2528
|
-
(p(!0),
|
|
2589
|
+
(p(!0), U(oe, null, ce(K.value, (H) => {
|
|
2529
2590
|
var Ce;
|
|
2530
|
-
return p(),
|
|
2591
|
+
return p(), V(ie, {
|
|
2531
2592
|
prop: H.prop,
|
|
2532
2593
|
label: T(H),
|
|
2533
2594
|
width: (Ce = H.tableColumnAttributes) == null ? void 0 : Ce.width,
|
|
2534
2595
|
"show-overflow-tooltip": ""
|
|
2535
2596
|
}, {
|
|
2536
|
-
default: m((
|
|
2537
|
-
var
|
|
2597
|
+
default: m((xe) => {
|
|
2598
|
+
var Ee, Fe, vt;
|
|
2538
2599
|
return [
|
|
2539
|
-
(
|
|
2600
|
+
(Ee = H.tableColumnAttributes) != null && Ee.link ? (p(), V(Z, {
|
|
2540
2601
|
key: 0,
|
|
2541
2602
|
class: "router-link",
|
|
2542
|
-
to: `/${l.value}/detail?id=${
|
|
2603
|
+
to: `/${l.value}/detail?id=${xe.row.id}`
|
|
2543
2604
|
}, {
|
|
2544
2605
|
default: m(() => [
|
|
2545
|
-
|
|
2606
|
+
b("span", null, R(ne(H, xe)), 1)
|
|
2546
2607
|
]),
|
|
2547
2608
|
_: 2
|
|
2548
|
-
}, 1032, ["to"])) : (
|
|
2609
|
+
}, 1032, ["to"])) : (Fe = H.tableColumnAttributes) != null && Fe.routerLink ? (p(), V(Z, {
|
|
2549
2610
|
key: 1,
|
|
2550
2611
|
class: "router-link",
|
|
2551
|
-
to: H.tableColumnAttributes.routerLink.replace("{id}",
|
|
2612
|
+
to: H.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
|
|
2552
2613
|
}, {
|
|
2553
2614
|
default: m(() => [
|
|
2554
|
-
|
|
2615
|
+
b("span", null, R(ne(H, xe)), 1)
|
|
2555
2616
|
]),
|
|
2556
2617
|
_: 2
|
|
2557
|
-
}, 1032, ["to"])) : (p(),
|
|
2558
|
-
((vt = H.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(),
|
|
2618
|
+
}, 1032, ["to"])) : (p(), U("span", Js, R(ne(H, xe)), 1)),
|
|
2619
|
+
((vt = H.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(), V(J, { key: 3 }, {
|
|
2559
2620
|
default: m(() => [
|
|
2560
|
-
|
|
2621
|
+
Q(R(xe.row[H.prop]), 1)
|
|
2561
2622
|
]),
|
|
2562
2623
|
_: 2
|
|
2563
2624
|
}, 1024)) : B("", !0)
|
|
@@ -2566,35 +2627,35 @@ const ze = (e) => {
|
|
|
2566
2627
|
_: 2
|
|
2567
2628
|
}, 1032, ["prop", "label", "width"]);
|
|
2568
2629
|
}), 256)),
|
|
2569
|
-
r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(),
|
|
2630
|
+
r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(), V(ie, {
|
|
2570
2631
|
key: 1,
|
|
2571
|
-
label: k(
|
|
2632
|
+
label: k(o)("common.table.operation"),
|
|
2572
2633
|
width: "120"
|
|
2573
2634
|
}, {
|
|
2574
2635
|
default: m((H) => [
|
|
2575
|
-
|
|
2636
|
+
h(W, {
|
|
2576
2637
|
link: "",
|
|
2577
2638
|
type: "primary",
|
|
2578
2639
|
class: "operation-button",
|
|
2579
2640
|
onClick: (Ce) => F(H.$index, H.row)
|
|
2580
2641
|
}, {
|
|
2581
2642
|
default: m(() => [
|
|
2582
|
-
|
|
2643
|
+
Q(R(k(o)("common.table.edit")), 1)
|
|
2583
2644
|
]),
|
|
2584
2645
|
_: 2
|
|
2585
2646
|
}, 1032, ["onClick"]),
|
|
2586
|
-
|
|
2647
|
+
h(ge, {
|
|
2587
2648
|
title: "Are you sure to delete this?",
|
|
2588
2649
|
onConfirm: (Ce) => u(H.$index, H.row)
|
|
2589
2650
|
}, {
|
|
2590
2651
|
reference: m(() => [
|
|
2591
|
-
|
|
2652
|
+
h(W, {
|
|
2592
2653
|
link: "",
|
|
2593
2654
|
type: "primary",
|
|
2594
2655
|
class: "operation-button"
|
|
2595
2656
|
}, {
|
|
2596
2657
|
default: m(() => [
|
|
2597
|
-
|
|
2658
|
+
Q(R(k(o)("common.table.delete")), 1)
|
|
2598
2659
|
]),
|
|
2599
2660
|
_: 1
|
|
2600
2661
|
})
|
|
@@ -2604,24 +2665,24 @@ const ze = (e) => {
|
|
|
2604
2665
|
]),
|
|
2605
2666
|
_: 1
|
|
2606
2667
|
}, 8, ["label"])) : B("", !0),
|
|
2607
|
-
r.operations !== void 0 && !r.readOnly ? (p(),
|
|
2668
|
+
r.operations !== void 0 && !r.readOnly ? (p(), V(ie, {
|
|
2608
2669
|
key: 2,
|
|
2609
|
-
label: k(
|
|
2670
|
+
label: k(o)("common.table.operation"),
|
|
2610
2671
|
width: "120"
|
|
2611
2672
|
}, {
|
|
2612
2673
|
default: m((H) => [
|
|
2613
|
-
(p(!0),
|
|
2674
|
+
(p(!0), U(oe, null, ce(r.operations, (Ce) => (p(), V(W, {
|
|
2614
2675
|
class: "operation-button",
|
|
2615
2676
|
link: "",
|
|
2616
2677
|
type: "primary",
|
|
2617
2678
|
key: Ce.label,
|
|
2618
|
-
onClick: (
|
|
2619
|
-
var
|
|
2620
|
-
return ((
|
|
2679
|
+
onClick: (xe) => {
|
|
2680
|
+
var Ee, Fe;
|
|
2681
|
+
return ((Fe = (Ee = Ce.functions) == null ? void 0 : Ee.click) == null ? void 0 : Fe.call(Ee, H.$index, H.row)) && P();
|
|
2621
2682
|
}
|
|
2622
2683
|
}, {
|
|
2623
2684
|
default: m(() => [
|
|
2624
|
-
|
|
2685
|
+
Q(R(C(Ce, H)), 1)
|
|
2625
2686
|
]),
|
|
2626
2687
|
_: 2
|
|
2627
2688
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -2632,131 +2693,131 @@ const ze = (e) => {
|
|
|
2632
2693
|
}),
|
|
2633
2694
|
_: 1
|
|
2634
2695
|
}, 8, ["data"])), [
|
|
2635
|
-
[co,
|
|
2696
|
+
[co, z.value]
|
|
2636
2697
|
]),
|
|
2637
|
-
|
|
2698
|
+
I.value ? B("", !0) : (p(), V(Re, {
|
|
2638
2699
|
key: 0,
|
|
2639
2700
|
size: "small",
|
|
2640
2701
|
background: "",
|
|
2641
2702
|
onSizeChange: g,
|
|
2642
2703
|
onCurrentChange: E,
|
|
2643
|
-
currentPage:
|
|
2644
|
-
"onUpdate:currentPage": O[1] || (O[1] = (se) =>
|
|
2704
|
+
currentPage: j.pageNo,
|
|
2705
|
+
"onUpdate:currentPage": O[1] || (O[1] = (se) => j.pageNo = se),
|
|
2645
2706
|
"page-sizes": [10, 20, 50, 100],
|
|
2646
|
-
"page-size":
|
|
2707
|
+
"page-size": j.pageSize,
|
|
2647
2708
|
layout: "total, sizes, prev, pager, next",
|
|
2648
|
-
total:
|
|
2709
|
+
total: j.totalElements
|
|
2649
2710
|
}, null, 8, ["currentPage", "page-size", "total"])),
|
|
2650
|
-
|
|
2711
|
+
h(io, {
|
|
2651
2712
|
model: f.model,
|
|
2652
|
-
mode:
|
|
2653
|
-
id:
|
|
2654
|
-
afterSubmitFunc:
|
|
2713
|
+
mode: $.value,
|
|
2714
|
+
id: Y.value,
|
|
2715
|
+
afterSubmitFunc: P,
|
|
2655
2716
|
visible: i.value,
|
|
2656
2717
|
"onUpdate:visible": O[2] || (O[2] = (se) => i.value = se)
|
|
2657
2718
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
2658
2719
|
], 2);
|
|
2659
2720
|
};
|
|
2660
2721
|
}
|
|
2661
|
-
}),
|
|
2722
|
+
}), nt = /* @__PURE__ */ pe(Ws, [["__scopeId", "data-v-c534121e"]]), Ys = { class: "nav-bar" }, Qs = {
|
|
2662
2723
|
key: 0,
|
|
2663
2724
|
class: "info-card-wrapper"
|
|
2664
|
-
},
|
|
2725
|
+
}, Ks = { class: "icon-wrapper" }, Xs = { class: "info-wrapper" }, Zs = { class: "title-wrapper" }, er = { class: "tabs-wrapper" }, tr = { class: "dialog-footer" }, or = /* @__PURE__ */ _e({
|
|
2665
2726
|
__name: "DetailPage",
|
|
2666
2727
|
setup(e) {
|
|
2667
|
-
const { t
|
|
2728
|
+
const { t } = Je(), o = He(), n = st(), s = De(() => o.query.id), r = N(!1), l = N(!1), a = N("view"), i = N(), d = N(-1), w = N(), y = N(), M = N("summary"), D = N(""), L = N(""), $ = N(""), z = N(0), I = re({
|
|
2668
2729
|
api: "",
|
|
2669
2730
|
fields: []
|
|
2670
|
-
}),
|
|
2671
|
-
let
|
|
2731
|
+
}), Y = re([]);
|
|
2732
|
+
let j = [];
|
|
2672
2733
|
Se([
|
|
2673
2734
|
() => n.currentRoute.value,
|
|
2674
2735
|
he
|
|
2675
2736
|
], () => {
|
|
2676
|
-
|
|
2737
|
+
_();
|
|
2677
2738
|
}, {
|
|
2678
2739
|
immediate: !0,
|
|
2679
2740
|
deep: !0
|
|
2680
2741
|
});
|
|
2681
|
-
function
|
|
2742
|
+
function K(u) {
|
|
2682
2743
|
d.value = parseInt(u.index) - 1;
|
|
2683
2744
|
}
|
|
2684
2745
|
function ne() {
|
|
2685
2746
|
var E;
|
|
2686
|
-
let u = (E =
|
|
2747
|
+
let u = (E = j[d.value].api) == null ? void 0 : E.replace("/select", "");
|
|
2687
2748
|
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
2688
|
-
const c =
|
|
2689
|
-
|
|
2690
|
-
|
|
2749
|
+
const c = I.api + "/" + s.value + u, g = y.value.multipleSelection.map((F) => F.id);
|
|
2750
|
+
Oe(c, "POST", g).then(() => {
|
|
2751
|
+
w.value.refresh(), l.value = !1;
|
|
2691
2752
|
});
|
|
2692
2753
|
}
|
|
2693
2754
|
function C(u, c, g) {
|
|
2694
2755
|
var q;
|
|
2695
2756
|
g.functions || (g.functions = {}), g.functions.create = () => {
|
|
2696
|
-
l.value = !0,
|
|
2757
|
+
l.value = !0, y.value && y.value.refresh();
|
|
2697
2758
|
};
|
|
2698
2759
|
let E = Ue(c);
|
|
2699
2760
|
E.tableConfig || (E.tableConfig = {}), E.tableConfig.selectMode = !0, E.tableConfig.queryParams = {}, u.queryParamName && (E.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
2700
2761
|
for (var F in E.fields)
|
|
2701
2762
|
E.fields[F].tableColumnAttributes && (q = E.fields[F].tableColumnAttributes) != null && q.link && (E.fields[F].tableColumnAttributes.link = !1);
|
|
2702
|
-
|
|
2763
|
+
j.push(E), g.labels = {
|
|
2703
2764
|
create: "common.table.add",
|
|
2704
2765
|
delete: "common.table.remove"
|
|
2705
|
-
}, g.functions.batchDelete = (
|
|
2766
|
+
}, g.functions.batchDelete = (S) => {
|
|
2706
2767
|
var O;
|
|
2707
|
-
let T = (O =
|
|
2768
|
+
let T = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2708
2769
|
T = T == null ? void 0 : T.substring(T.lastIndexOf("/"));
|
|
2709
|
-
const v =
|
|
2710
|
-
|
|
2711
|
-
G.code === 0 &&
|
|
2770
|
+
const v = I.api + "/" + s.value + T, f = S.map((G) => G.id);
|
|
2771
|
+
de.delete(`${v}/${f.join(",")}`).then(({ data: G }) => {
|
|
2772
|
+
G.code === 0 && w.value.refresh();
|
|
2712
2773
|
});
|
|
2713
2774
|
}, g.operations = [
|
|
2714
2775
|
{
|
|
2715
2776
|
label: "common.table.remove",
|
|
2716
2777
|
functions: {
|
|
2717
|
-
click: (
|
|
2778
|
+
click: (S, T) => {
|
|
2718
2779
|
var O;
|
|
2719
|
-
let v = (O =
|
|
2780
|
+
let v = (O = j[d.value].api) == null ? void 0 : O.replace("/select", "");
|
|
2720
2781
|
v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
|
|
2721
|
-
const f =
|
|
2722
|
-
|
|
2723
|
-
|
|
2782
|
+
const f = I.api + "/" + s.value + v;
|
|
2783
|
+
Oe(f, "DELETE", T.id).then(() => {
|
|
2784
|
+
w.value.refresh();
|
|
2724
2785
|
});
|
|
2725
2786
|
}
|
|
2726
2787
|
}
|
|
2727
2788
|
}
|
|
2728
2789
|
], E.api += "/select";
|
|
2729
2790
|
}
|
|
2730
|
-
function
|
|
2791
|
+
function _() {
|
|
2731
2792
|
var E, F, q;
|
|
2732
|
-
|
|
2733
|
-
const u =
|
|
2793
|
+
Y.splice(0);
|
|
2794
|
+
const u = o.params.model;
|
|
2734
2795
|
if (he.value[u] === void 0) {
|
|
2735
2796
|
console.warn("Detail page model not exist:", u);
|
|
2736
2797
|
return;
|
|
2737
2798
|
} else
|
|
2738
2799
|
console.debug("Detail page model found:", u, he.value[u]);
|
|
2739
|
-
|
|
2800
|
+
Be(I);
|
|
2740
2801
|
const c = Ue(he.value[u]);
|
|
2741
|
-
Object.assign(
|
|
2742
|
-
const g = (F = (E =
|
|
2802
|
+
Object.assign(I, c), z.value++, d.value = -1, M.value = "summary";
|
|
2803
|
+
const g = (F = (E = I.pageConfig) == null ? void 0 : E.detailPage) == null ? void 0 : F.tabs;
|
|
2743
2804
|
if (g)
|
|
2744
|
-
for (let
|
|
2745
|
-
const T = Ue(he.value[
|
|
2746
|
-
if (
|
|
2805
|
+
for (let S of g) {
|
|
2806
|
+
const T = Ue(he.value[S.modelKey]);
|
|
2807
|
+
if (Y.push(T), S.type === "table") {
|
|
2747
2808
|
T.tableConfig || (T.tableConfig = {});
|
|
2748
2809
|
let v = T.tableConfig;
|
|
2749
|
-
v.showPane = !1,
|
|
2810
|
+
v.showPane = !1, S.modelRelationType === "associated" ? C(S, T, v) : S.modelRelationType === "child" && (j.push({
|
|
2750
2811
|
fields: []
|
|
2751
|
-
}), T.formConfig === void 0 && (T.formConfig = {}), T.formConfig.functions === void 0 && (T.formConfig.functions = {}),
|
|
2752
|
-
f[
|
|
2753
|
-
})), v.queryParams || (v.queryParams = {}),
|
|
2812
|
+
}), T.formConfig === void 0 && (T.formConfig = {}), T.formConfig.functions === void 0 && (T.formConfig.functions = {}), S.queryParamName && (T.formConfig.functions.beforeSubmit = (f) => {
|
|
2813
|
+
f[S.queryParamName] = s.value;
|
|
2814
|
+
})), v.queryParams || (v.queryParams = {}), S.queryParamName && (v.queryParams[S.queryParamName] = s.value), S.queryParams && Object.assign(v.queryParams, S.queryParams), v.readOnly = (q = S.readOnly) != null ? q : !1, S.includeFields && (T.fields = T.fields.filter((f) => {
|
|
2754
2815
|
var O;
|
|
2755
|
-
return (O =
|
|
2756
|
-
})),
|
|
2816
|
+
return (O = S.includeFields) == null ? void 0 : O.includes(f.prop);
|
|
2817
|
+
})), S.excludeFields && (T.fields = T.fields.filter((f) => {
|
|
2757
2818
|
var O;
|
|
2758
|
-
return !((O =
|
|
2759
|
-
})),
|
|
2819
|
+
return !((O = S.excludeFields) != null && O.includes(f.prop));
|
|
2820
|
+
})), S.tooltip && (v.tooltip = S.tooltip);
|
|
2760
2821
|
}
|
|
2761
2822
|
}
|
|
2762
2823
|
}
|
|
@@ -2764,7 +2825,7 @@ const ze = (e) => {
|
|
|
2764
2825
|
[
|
|
2765
2826
|
() => {
|
|
2766
2827
|
var u, c;
|
|
2767
|
-
return (c = (u =
|
|
2828
|
+
return (c = (u = I.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
|
|
2768
2829
|
},
|
|
2769
2830
|
() => {
|
|
2770
2831
|
var u;
|
|
@@ -2772,14 +2833,14 @@ const ze = (e) => {
|
|
|
2772
2833
|
}
|
|
2773
2834
|
],
|
|
2774
2835
|
(u) => {
|
|
2775
|
-
|
|
2836
|
+
Le(() => {
|
|
2776
2837
|
var g, E, F;
|
|
2777
|
-
const c = (E = (g =
|
|
2778
|
-
c && (
|
|
2779
|
-
var
|
|
2838
|
+
const c = (E = (g = I.pageConfig) == null ? void 0 : g.detailPage) == null ? void 0 : E.infoCard;
|
|
2839
|
+
c && (D.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", L.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", $.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = I.fields) == null || F.forEach((q) => {
|
|
2840
|
+
var S, T;
|
|
2780
2841
|
if (q.prop === c.tagFieldProp) {
|
|
2781
|
-
const v = (T = (
|
|
2782
|
-
v && (
|
|
2842
|
+
const v = (T = (S = q.tableColumnAttributes) == null ? void 0 : S.functions) == null ? void 0 : T.transformValue;
|
|
2843
|
+
v && ($.value = v($.value));
|
|
2783
2844
|
}
|
|
2784
2845
|
}));
|
|
2785
2846
|
});
|
|
@@ -2789,35 +2850,35 @@ const ze = (e) => {
|
|
|
2789
2850
|
deep: !0
|
|
2790
2851
|
}
|
|
2791
2852
|
);
|
|
2792
|
-
function
|
|
2853
|
+
function P() {
|
|
2793
2854
|
r.value = !0;
|
|
2794
2855
|
}
|
|
2795
|
-
function
|
|
2856
|
+
function A() {
|
|
2796
2857
|
i.value.refresh();
|
|
2797
2858
|
}
|
|
2798
2859
|
return (u, c) => {
|
|
2799
2860
|
var W, ae, fe, le, ie, Z;
|
|
2800
|
-
const g = x("el-breadcrumb-item"), E = x("el-breadcrumb"), F = x("el-button"), q = x("el-icon"),
|
|
2801
|
-
return p(),
|
|
2802
|
-
|
|
2803
|
-
|
|
2861
|
+
const g = x("el-breadcrumb-item"), E = x("el-breadcrumb"), F = x("el-button"), q = x("el-icon"), S = x("el-dropdown-item"), T = x("el-dropdown-menu"), v = x("el-dropdown"), f = x("el-tag"), O = x("el-tab-pane"), G = x("el-tabs"), X = x("el-dialog");
|
|
2862
|
+
return p(), U(oe, null, [
|
|
2863
|
+
b("div", Ys, [
|
|
2864
|
+
h(E, null, {
|
|
2804
2865
|
default: m(() => {
|
|
2805
2866
|
var J, ge;
|
|
2806
2867
|
return [
|
|
2807
|
-
|
|
2808
|
-
to: { path: `/${(ge = (J =
|
|
2868
|
+
h(g, {
|
|
2869
|
+
to: { path: `/${(ge = (J = I == null ? void 0 : I.breadcrumbRoute) != null ? J : I == null ? void 0 : I.route) != null ? ge : ""}` }
|
|
2809
2870
|
}, {
|
|
2810
2871
|
default: m(() => {
|
|
2811
2872
|
var be;
|
|
2812
2873
|
return [
|
|
2813
|
-
|
|
2874
|
+
Q(R(k(t)((be = I == null ? void 0 : I.name) != null ? be : "")), 1)
|
|
2814
2875
|
];
|
|
2815
2876
|
}),
|
|
2816
2877
|
_: 1
|
|
2817
2878
|
}, 8, ["to"]),
|
|
2818
|
-
|
|
2879
|
+
h(g, null, {
|
|
2819
2880
|
default: m(() => [
|
|
2820
|
-
|
|
2881
|
+
Q(R(k(t)("common.basic.detail")), 1)
|
|
2821
2882
|
]),
|
|
2822
2883
|
_: 1
|
|
2823
2884
|
})
|
|
@@ -2825,37 +2886,37 @@ const ze = (e) => {
|
|
|
2825
2886
|
}),
|
|
2826
2887
|
_: 1
|
|
2827
2888
|
}),
|
|
2828
|
-
|
|
2829
|
-
|
|
2889
|
+
b("div", null, [
|
|
2890
|
+
h(F, {
|
|
2830
2891
|
type: "primary",
|
|
2831
|
-
onClick:
|
|
2892
|
+
onClick: P
|
|
2832
2893
|
}, {
|
|
2833
2894
|
default: m(() => [
|
|
2834
|
-
|
|
2895
|
+
Q(R(k(t)("common.table.edit")), 1)
|
|
2835
2896
|
]),
|
|
2836
2897
|
_: 1
|
|
2837
2898
|
}),
|
|
2838
|
-
|
|
2899
|
+
h(F, {
|
|
2839
2900
|
type: "danger",
|
|
2840
2901
|
plain: "",
|
|
2841
2902
|
disabled: ""
|
|
2842
2903
|
}, {
|
|
2843
2904
|
default: m(() => [
|
|
2844
|
-
|
|
2905
|
+
Q(R(k(t)("common.table.delete")), 1)
|
|
2845
2906
|
]),
|
|
2846
2907
|
_: 1
|
|
2847
2908
|
}),
|
|
2848
|
-
((ae = (W =
|
|
2909
|
+
((ae = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ae.operationButtons) !== void 0 ? (p(), V(v, { key: 0 }, {
|
|
2849
2910
|
dropdown: m(() => [
|
|
2850
|
-
|
|
2911
|
+
h(T, null, {
|
|
2851
2912
|
default: m(() => {
|
|
2852
2913
|
var J, ge;
|
|
2853
2914
|
return [
|
|
2854
|
-
(p(!0),
|
|
2855
|
-
onClick: (
|
|
2915
|
+
(p(!0), U(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.operationButtons, (be) => (p(), V(S, {
|
|
2916
|
+
onClick: (Re) => be.function(i.value.formData)
|
|
2856
2917
|
}, {
|
|
2857
2918
|
default: m(() => [
|
|
2858
|
-
|
|
2919
|
+
Q(R(k(t)(be.label)), 1)
|
|
2859
2920
|
]),
|
|
2860
2921
|
_: 2
|
|
2861
2922
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2865,12 +2926,12 @@ const ze = (e) => {
|
|
|
2865
2926
|
})
|
|
2866
2927
|
]),
|
|
2867
2928
|
default: m(() => [
|
|
2868
|
-
|
|
2929
|
+
h(F, { style: { margin: "0 10px" } }, {
|
|
2869
2930
|
default: m(() => [
|
|
2870
|
-
|
|
2871
|
-
|
|
2931
|
+
Q(R(k(t)("common.basic.more")), 1),
|
|
2932
|
+
h(q, { class: "el-icon--right" }, {
|
|
2872
2933
|
default: m(() => [
|
|
2873
|
-
|
|
2934
|
+
h(k($o))
|
|
2874
2935
|
]),
|
|
2875
2936
|
_: 1
|
|
2876
2937
|
})
|
|
@@ -2880,153 +2941,153 @@ const ze = (e) => {
|
|
|
2880
2941
|
]),
|
|
2881
2942
|
_: 1
|
|
2882
2943
|
})) : B("", !0),
|
|
2883
|
-
|
|
2944
|
+
h(F, {
|
|
2884
2945
|
icon: k(Dt),
|
|
2885
|
-
onClick:
|
|
2946
|
+
onClick: A
|
|
2886
2947
|
}, null, 8, ["icon"])
|
|
2887
2948
|
])
|
|
2888
2949
|
]),
|
|
2889
|
-
(le = (fe =
|
|
2890
|
-
|
|
2891
|
-
(p(),
|
|
2950
|
+
(le = (fe = I.pageConfig) == null ? void 0 : fe.detailPage) != null && le.infoCard ? (p(), U("div", Qs, [
|
|
2951
|
+
b("div", Ks, [
|
|
2952
|
+
(p(), V(et((ie = I.pageConfig.detailPage.infoCard.icon) != null ? ie : ""), { class: "icon" }))
|
|
2892
2953
|
]),
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
((Z =
|
|
2954
|
+
b("div", Xs, [
|
|
2955
|
+
b("div", Zs, [
|
|
2956
|
+
b("h1", null, R(D.value), 1),
|
|
2957
|
+
((Z = $.value) == null ? void 0 : Z.length) > 0 ? (p(), V(f, {
|
|
2897
2958
|
key: 0,
|
|
2898
2959
|
size: "small"
|
|
2899
2960
|
}, {
|
|
2900
2961
|
default: m(() => [
|
|
2901
|
-
|
|
2962
|
+
Q(R($.value), 1)
|
|
2902
2963
|
]),
|
|
2903
2964
|
_: 1
|
|
2904
2965
|
})) : B("", !0)
|
|
2905
2966
|
]),
|
|
2906
|
-
|
|
2967
|
+
b("span", null, R(L.value), 1)
|
|
2907
2968
|
])
|
|
2908
2969
|
])) : B("", !0),
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
modelValue:
|
|
2912
|
-
"onUpdate:modelValue": c[0] || (c[0] = (J) =>
|
|
2913
|
-
onTabClick:
|
|
2970
|
+
b("div", er, [
|
|
2971
|
+
h(G, {
|
|
2972
|
+
modelValue: M.value,
|
|
2973
|
+
"onUpdate:modelValue": c[0] || (c[0] = (J) => M.value = J),
|
|
2974
|
+
onTabClick: K
|
|
2914
2975
|
}, {
|
|
2915
2976
|
default: m(() => {
|
|
2916
2977
|
var J, ge;
|
|
2917
2978
|
return [
|
|
2918
|
-
|
|
2919
|
-
label: k(
|
|
2979
|
+
h(O, {
|
|
2980
|
+
label: k(t)("common.basic.summary"),
|
|
2920
2981
|
name: "summary"
|
|
2921
2982
|
}, {
|
|
2922
2983
|
default: m(() => [
|
|
2923
|
-
|
|
2984
|
+
h(lo, {
|
|
2924
2985
|
ref_key: "formViewRef",
|
|
2925
2986
|
ref: i,
|
|
2926
2987
|
id: s.value,
|
|
2927
|
-
sessionId:
|
|
2988
|
+
sessionId: z.value,
|
|
2928
2989
|
mode: a.value,
|
|
2929
|
-
model:
|
|
2990
|
+
model: I
|
|
2930
2991
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
2931
2992
|
]),
|
|
2932
2993
|
_: 1
|
|
2933
2994
|
}, 8, ["label"]),
|
|
2934
|
-
(p(!0),
|
|
2935
|
-
var
|
|
2936
|
-
return p(),
|
|
2937
|
-
label: k(
|
|
2995
|
+
(p(!0), U(oe, null, ce((ge = (J = I.pageConfig) == null ? void 0 : J.detailPage) == null ? void 0 : ge.tabs, (be) => {
|
|
2996
|
+
var Re;
|
|
2997
|
+
return p(), V(O, {
|
|
2998
|
+
label: k(t)((Re = be.name) != null ? Re : "")
|
|
2938
2999
|
}, null, 8, ["label"]);
|
|
2939
3000
|
}), 256))
|
|
2940
3001
|
];
|
|
2941
3002
|
}),
|
|
2942
3003
|
_: 1
|
|
2943
3004
|
}, 8, ["modelValue"]),
|
|
2944
|
-
d.value >= 0 ? (p(),
|
|
3005
|
+
d.value >= 0 ? (p(), V(nt, {
|
|
2945
3006
|
key: 0,
|
|
2946
3007
|
ref_key: "tabPaneTableRef",
|
|
2947
|
-
ref:
|
|
2948
|
-
model:
|
|
3008
|
+
ref: w,
|
|
3009
|
+
model: Y[d.value]
|
|
2949
3010
|
}, null, 8, ["model"])) : B("", !0),
|
|
2950
|
-
|
|
3011
|
+
h(X, {
|
|
2951
3012
|
modelValue: l.value,
|
|
2952
3013
|
"onUpdate:modelValue": c[2] || (c[2] = (J) => l.value = J),
|
|
2953
|
-
title: k(
|
|
3014
|
+
title: k(t)("common.table.select"),
|
|
2954
3015
|
width: "800px"
|
|
2955
3016
|
}, {
|
|
2956
3017
|
footer: m(() => [
|
|
2957
|
-
|
|
2958
|
-
|
|
3018
|
+
b("span", tr, [
|
|
3019
|
+
h(F, {
|
|
2959
3020
|
onClick: c[1] || (c[1] = (J) => l.value = !1)
|
|
2960
3021
|
}, {
|
|
2961
3022
|
default: m(() => [
|
|
2962
|
-
|
|
3023
|
+
Q(R(k(t)("common.basic.cancel")), 1)
|
|
2963
3024
|
]),
|
|
2964
3025
|
_: 1
|
|
2965
3026
|
}),
|
|
2966
|
-
|
|
3027
|
+
h(F, {
|
|
2967
3028
|
type: "primary",
|
|
2968
3029
|
onClick: ne
|
|
2969
3030
|
}, {
|
|
2970
3031
|
default: m(() => [
|
|
2971
|
-
|
|
3032
|
+
Q(R(k(t)("common.basic.save")), 1)
|
|
2972
3033
|
]),
|
|
2973
3034
|
_: 1
|
|
2974
3035
|
})
|
|
2975
3036
|
])
|
|
2976
3037
|
]),
|
|
2977
3038
|
default: m(() => [
|
|
2978
|
-
d.value >= 0 ? (p(),
|
|
3039
|
+
d.value >= 0 ? (p(), V(nt, {
|
|
2979
3040
|
key: 0,
|
|
2980
3041
|
ref_key: "selectTableRef",
|
|
2981
|
-
ref:
|
|
2982
|
-
model: k(
|
|
3042
|
+
ref: y,
|
|
3043
|
+
model: k(j)[d.value]
|
|
2983
3044
|
}, null, 8, ["model"])) : B("", !0)
|
|
2984
3045
|
]),
|
|
2985
3046
|
_: 1
|
|
2986
3047
|
}, 8, ["modelValue", "title"])
|
|
2987
3048
|
]),
|
|
2988
|
-
|
|
3049
|
+
h(io, {
|
|
2989
3050
|
id: s.value,
|
|
2990
3051
|
mode: "update",
|
|
2991
3052
|
visible: r.value,
|
|
2992
3053
|
"onUpdate:visible": c[3] || (c[3] = (J) => r.value = J),
|
|
2993
|
-
model:
|
|
2994
|
-
afterSubmitFunc:
|
|
3054
|
+
model: I,
|
|
3055
|
+
afterSubmitFunc: A
|
|
2995
3056
|
}, null, 8, ["id", "visible", "model"])
|
|
2996
3057
|
], 64);
|
|
2997
3058
|
};
|
|
2998
3059
|
}
|
|
2999
|
-
}),
|
|
3060
|
+
}), nr = /* @__PURE__ */ pe(or, [["__scopeId", "data-v-f9250724"]]), sr = { class: "page-title" }, rr = /* @__PURE__ */ _e({
|
|
3000
3061
|
__name: "TablePage",
|
|
3001
3062
|
setup(e) {
|
|
3002
|
-
const { t
|
|
3063
|
+
const { t } = Je(), o = He(), n = st(), s = N(), r = N([]), l = re({
|
|
3003
3064
|
api: "",
|
|
3004
3065
|
fields: []
|
|
3005
|
-
}), a = re(
|
|
3066
|
+
}), a = re(We({}, l));
|
|
3006
3067
|
function i() {
|
|
3007
|
-
var
|
|
3008
|
-
r.value = [], l.pageConfig && ((
|
|
3009
|
-
let
|
|
3010
|
-
return
|
|
3011
|
-
key:
|
|
3012
|
-
label:
|
|
3013
|
-
icon:
|
|
3014
|
-
disabled:
|
|
3015
|
-
model:
|
|
3068
|
+
var w, y, M, D, L;
|
|
3069
|
+
r.value = [], l.pageConfig && ((y = (w = l.pageConfig) == null ? void 0 : w.tablePage) != null && y.tabViewAttributes) && (r.value = (L = (D = (M = l.pageConfig) == null ? void 0 : M.tablePage) == null ? void 0 : D.tabViewAttributes) == null ? void 0 : L.map(($) => {
|
|
3070
|
+
let z;
|
|
3071
|
+
return $.modelKey && he.value[$.modelKey] ? z = Ue(he.value[$.modelKey]) : z = Ue(l), $.queryParams && (z.tableConfig || (z.tableConfig = {}), z.tableConfig.queryParams = $.queryParams), $.fields && (z.fields = $.fields), $.modelKey && (z.breadcrumbRoute = l.route), {
|
|
3072
|
+
key: $.key,
|
|
3073
|
+
label: $.label,
|
|
3074
|
+
icon: $.icon,
|
|
3075
|
+
disabled: $.disabled,
|
|
3076
|
+
model: z
|
|
3016
3077
|
};
|
|
3017
3078
|
}));
|
|
3018
3079
|
}
|
|
3019
3080
|
function d() {
|
|
3020
|
-
var
|
|
3021
|
-
console.log("Init table page, loading model:",
|
|
3022
|
-
const
|
|
3023
|
-
if (he.value[
|
|
3024
|
-
console.warn("Model not found",
|
|
3081
|
+
var M, D;
|
|
3082
|
+
console.log("Init table page, loading model:", o.params.model), console.log("Current model list", he.value);
|
|
3083
|
+
const w = o.params.model;
|
|
3084
|
+
if (he.value[w] === void 0) {
|
|
3085
|
+
console.warn("Model not found", w);
|
|
3025
3086
|
return;
|
|
3026
3087
|
}
|
|
3027
|
-
|
|
3028
|
-
const
|
|
3029
|
-
Object.assign(l,
|
|
3088
|
+
Be(l);
|
|
3089
|
+
const y = Ue(he.value[w]);
|
|
3090
|
+
Object.assign(l, y), (D = (M = l.pageConfig) == null ? void 0 : M.tablePage) != null && D.tabViewAttributes || Object.assign(a, l), i();
|
|
3030
3091
|
}
|
|
3031
3092
|
return Se([
|
|
3032
3093
|
() => n.currentRoute.value,
|
|
@@ -3036,16 +3097,16 @@ const ze = (e) => {
|
|
|
3036
3097
|
}, {
|
|
3037
3098
|
immediate: !0,
|
|
3038
3099
|
deep: !0
|
|
3039
|
-
}), (
|
|
3040
|
-
var
|
|
3041
|
-
const
|
|
3042
|
-
return p(),
|
|
3043
|
-
|
|
3044
|
-
|
|
3100
|
+
}), (w, y) => {
|
|
3101
|
+
var D;
|
|
3102
|
+
const M = x("el-scrollbar");
|
|
3103
|
+
return p(), U(oe, null, [
|
|
3104
|
+
b("h1", sr, R(k(t)((D = l.name) != null ? D : "")), 1),
|
|
3105
|
+
h(M, null, {
|
|
3045
3106
|
default: m(() => {
|
|
3046
|
-
var L,
|
|
3107
|
+
var L, $;
|
|
3047
3108
|
return [
|
|
3048
|
-
(
|
|
3109
|
+
($ = (L = l.pageConfig) == null ? void 0 : L.tablePage) != null && $.tabViewAttributes ? (p(), V(ao, {
|
|
3049
3110
|
key: 0,
|
|
3050
3111
|
class: "tabs-wrapper",
|
|
3051
3112
|
cards: r.value,
|
|
@@ -3055,7 +3116,7 @@ const ze = (e) => {
|
|
|
3055
3116
|
}),
|
|
3056
3117
|
_: 1
|
|
3057
3118
|
}),
|
|
3058
|
-
|
|
3119
|
+
h(nt, {
|
|
3059
3120
|
class: "table-wrapper",
|
|
3060
3121
|
ref_key: "tableRef",
|
|
3061
3122
|
ref: s,
|
|
@@ -3064,37 +3125,37 @@ const ze = (e) => {
|
|
|
3064
3125
|
], 64);
|
|
3065
3126
|
};
|
|
3066
3127
|
}
|
|
3067
|
-
}),
|
|
3068
|
-
|
|
3069
|
-
|
|
3128
|
+
}), ar = /* @__PURE__ */ pe(rr, [["__scopeId", "data-v-d24124ee"]]), lr = [
|
|
3129
|
+
Ao,
|
|
3130
|
+
ws,
|
|
3070
3131
|
Gt,
|
|
3071
|
-
|
|
3072
|
-
|
|
3132
|
+
Ps,
|
|
3133
|
+
Ms,
|
|
3073
3134
|
ro,
|
|
3074
3135
|
ao,
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
],
|
|
3079
|
-
e && e.component &&
|
|
3080
|
-
console.log("component",
|
|
3136
|
+
nt,
|
|
3137
|
+
nr,
|
|
3138
|
+
ar
|
|
3139
|
+
], _r = (e) => {
|
|
3140
|
+
e && e.component && lr.forEach((t) => {
|
|
3141
|
+
console.log("component", t.__name, t), e.component(t.__name, t);
|
|
3081
3142
|
});
|
|
3082
3143
|
};
|
|
3083
3144
|
export {
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3145
|
+
Ao as Building,
|
|
3146
|
+
ws as ConsoleApp,
|
|
3147
|
+
nr as DetailPage,
|
|
3087
3148
|
Gt as Header,
|
|
3088
|
-
|
|
3089
|
-
|
|
3149
|
+
Ps as NoPermission,
|
|
3150
|
+
Ms as Secondary,
|
|
3090
3151
|
ro as SideMenu,
|
|
3091
3152
|
ao as TabCard,
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3153
|
+
ar as TablePage,
|
|
3154
|
+
nt as TableView,
|
|
3155
|
+
Mn as activeMenuMapping,
|
|
3156
|
+
_r as default,
|
|
3096
3157
|
on as en,
|
|
3097
|
-
|
|
3158
|
+
tt as i18n,
|
|
3098
3159
|
Ct as menuList,
|
|
3099
3160
|
he as modelList,
|
|
3100
3161
|
gt as pinia,
|