@vancone/console-component 0.1.0-beta.9 → 0.1.1-beta.0

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