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