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