@vancone/console-component 0.1.1-beta.3 → 0.1.1-beta.31

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