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