@vancone/console-component 0.1.1-beta.24 → 0.1.1-beta.26

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