@vancone/console-component 0.1.1-beta.19 → 0.1.1-beta.20

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.
@@ -10,7 +10,7 @@ var yt = (e, t, o) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writ
10
10
  ho.call(t, o) && yt(e, o, t[o]);
11
11
  return e;
12
12
  }, wt = (e, t) => po(e, fo(t));
13
- var we = (e, t, o) => new Promise((n, s) => {
13
+ var Ce = (e, t, o) => new Promise((n, s) => {
14
14
  var r = (i) => {
15
15
  try {
16
16
  a(o.next(i));
@@ -26,28 +26,28 @@ var we = (e, t, o) => new Promise((n, s) => {
26
26
  }, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
27
27
  a((o = o.apply(e, t)).next());
28
28
  });
29
- import { openBlock as p, createElementBlock as M, createElementVNode as v, defineComponent as ve, reactive as ce, resolveComponent as O, createVNode as _, withCtx as m, unref as k, Fragment as oe, renderList as de, toDisplayString as D, normalizeStyle as De, ref as N, onMounted as Nt, createCommentVNode as z, createTextVNode as ee, createBlock as V, nextTick as je, resolveDynamicComponent as tt, effectScope as At, markRaw as Pe, toRaw as ze, hasInjectionContext as _o, inject as go, getCurrentInstance as bo, watch as Ce, isRef as qe, isReactive as ft, toRef as at, computed as Fe, 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 He, useRouter as rt } from "vue-router";
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
31
  import So from "axios";
32
32
  import { ElMessage as lt, ElMessageBox as Co } from "element-plus";
33
- import { Search as Dt, ArrowRight as ko, Check as Oo, Refresh as Rt, QuestionFilled as Eo, Download as xo, ArrowDown as $o } from "@element-plus/icons-vue";
34
- import { createI18n as Io, useI18n as Je } from "vue-i18n";
35
- import { cloneDeep as Te } from "lodash";
36
- const _e = (e, t) => {
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
37
  const o = e.__vccOpts || e;
38
38
  for (const [n, s] of t)
39
39
  o[n] = s;
40
40
  return o;
41
- }, Po = {}, Vo = { class: "building" };
42
- function No(e, t) {
41
+ }, Io = {}, Vo = { class: "building" };
42
+ function Ao(e, t) {
43
43
  return p(), M("div", Vo);
44
44
  }
45
- const Ao = /* @__PURE__ */ _e(Po, [["render", No], ["__scopeId", "data-v-07bd45d2"]]), he = So.create({
45
+ const No = /* @__PURE__ */ ve(Io, [["render", Ao], ["__scopeId", "data-v-07bd45d2"]]), be = So.create({
46
46
  timeout: 2 * 60 * 1e3,
47
47
  withCredentials: !0
48
48
  });
49
- he.interceptors.request.use((e) => e);
50
- he.interceptors.response.use((e) => {
49
+ be.interceptors.request.use((e) => e);
50
+ be.interceptors.response.use((e) => {
51
51
  const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
52
52
  return n === 0 ? (l && !r && lt({
53
53
  message: s,
@@ -74,35 +74,35 @@ he.interceptors.response.use((e) => {
74
74
  }
75
75
  return Promise.reject(new Error(e.message || "Response Error"));
76
76
  });
77
- const Ft = () => {
77
+ const Rt = () => {
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 = Ft();
80
+ }, Gt = Rt();
81
81
  function Mo() {
82
- return he.get(`//${Gt}/api/passport/service/v1/account`);
82
+ return be.get(`//${Gt}/api/passport/service/v1/account`);
83
83
  }
84
84
  function Uo() {
85
- return he.delete(`//${Gt}/api/passport/service/v1/login`);
85
+ return be.delete(`//${Gt}/api/passport/service/v1/login`);
86
86
  }
87
87
  function To() {
88
- return he.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
88
+ return be.get("https://console.vancone.com/api/console/app-group?pageSize=1000");
89
89
  }
90
90
  function Do() {
91
- return he.get("https://console.vancone.com/api/console/app?pageSize=1000");
91
+ return be.get("https://console.vancone.com/api/console/app?pageSize=1000");
92
92
  }
93
- const Ro = {
93
+ const Fo = {
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  width: "32",
96
96
  height: "32",
97
97
  class: "icon",
98
98
  viewBox: "0 0 1024 1024"
99
99
  };
100
- function Fo(e, t) {
101
- return p(), M("svg", Ro, t[0] || (t[0] = [
100
+ function Ro(e, t) {
101
+ return p(), M("svg", Fo, t[0] || (t[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: Fo }, Lo = {
105
+ const Go = { render: Ro }, Lo = {
106
106
  xmlns: "http://www.w3.org/2000/svg",
107
107
  width: "32",
108
108
  height: "32",
@@ -129,13 +129,13 @@ function Bo(e, t) {
129
129
  const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class: "catalog-wrapper" }, Yo = { class: "service-list" }, Qo = { class: "app-icon-container" }, Ko = ["href"], Xo = ["innerHTML"], Zo = {
130
130
  key: 1,
131
131
  class: "app-icon"
132
- }, en = /* @__PURE__ */ ve({
132
+ }, en = /* @__PURE__ */ we({
133
133
  __name: "AppCatalog",
134
134
  props: {
135
135
  visible: { type: Boolean }
136
136
  },
137
137
  setup(e) {
138
- const t = ce([]);
138
+ const t = pe([]);
139
139
  function o() {
140
140
  To().then(({ data: n }) => {
141
141
  t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
@@ -168,13 +168,13 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
168
168
  }, {
169
169
  default: m(() => [
170
170
  v("div", Wo, [
171
- (p(!0), M(oe, null, de(t, (d) => (p(), M("div", Yo, [
171
+ (p(!0), M(se, null, he(t, (d) => (p(), M("div", Yo, [
172
172
  v("h1", null, D(d.name), 1),
173
173
  v("div", Qo, [
174
- (p(!0), M(oe, null, de(d.apps, (S) => {
175
- var w, A;
174
+ (p(!0), M(se, null, he(d.apps, (S) => {
175
+ var w, N;
176
176
  return p(), M("a", {
177
- style: De([{ "text-decoration": "none" }, { pointerEvents: ((w = S.homepageUrl) == null ? void 0 : w.length) > 0 ? "auto" : "none" }]),
177
+ style: Re([{ "text-decoration": "none" }, { pointerEvents: ((w = S.homepageUrl) == null ? void 0 : w.length) > 0 ? "auto" : "none" }]),
178
178
  target: "_blank",
179
179
  href: S.homepageUrl
180
180
  }, [
@@ -184,7 +184,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
184
184
  innerHTML: S.iconSvg
185
185
  }, null, 8, Xo)) : (p(), M("div", Zo, " ")),
186
186
  v("h2", {
187
- style: De({ color: ((A = S.homepageUrl) == null ? void 0 : A.length) > 0 ? "#555" : "#bbb" })
187
+ style: Re({ color: ((N = S.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
188
  }, D(S.name), 5)
189
189
  ], 12, Ko);
190
190
  }), 256))
@@ -221,7 +221,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
221
221
  ]);
222
222
  };
223
223
  }
224
- }), tn = /* @__PURE__ */ _e(en, [["__scopeId", "data-v-ef746334"]]), on = {
224
+ }), tn = /* @__PURE__ */ ve(en, [["__scopeId", "data-v-ef746334"]]), on = {
225
225
  common: {
226
226
  header: {
227
227
  product: "Products",
@@ -299,7 +299,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
299
299
  yes: "是"
300
300
  }
301
301
  }
302
- }, ot = Io({
302
+ }, ot = Po({
303
303
  legacy: !1,
304
304
  locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
305
305
  messages: {
@@ -353,16 +353,16 @@ function hn(e, t) {
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__ */ ve({
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({
357
357
  __name: "Header",
358
358
  props: {
359
359
  title: {},
360
360
  helpDocUrl: {}
361
361
  },
362
362
  setup(e) {
363
- const { t } = Je(), o = N(), n = N(), s = N(), r = N(), l = N(!1), a = e;
364
- N(!1);
365
- const i = N(""), d = N(ot.global.locale), S = ce([
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([
366
366
  {
367
367
  id: "en",
368
368
  name: "English"
@@ -372,38 +372,38 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
372
372
  name: "简体中文"
373
373
  }
374
374
  ]);
375
- Nt(() => {
376
- i.value = decodeURIComponent(w("passport_username").replace(/\+/g, " ")), i.value === "" && Mo().then(({ data: L }) => {
377
- var P;
378
- L.code == 0 && (i.value = (P = L.data.name) != null ? P : L.data.displayId);
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);
379
379
  });
380
380
  });
381
- function w(L) {
382
- for (var P = L + "=", K = document.cookie.split(";"), q = 0; q < K.length; q++) {
383
- for (var B = K[q]; B.charAt(0) == " "; ) B = B.substring(1);
384
- if (B.indexOf(P) != -1)
385
- return B.substring(P.length, B.length);
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);
386
386
  }
387
387
  return "";
388
388
  }
389
- function A() {
389
+ function N() {
390
390
  Uo().then(() => {
391
- const L = escape(window.location.href);
392
- window.location.href = `//${Ft()}/?from=${L}#login`;
391
+ const j = escape(window.location.href);
392
+ window.location.href = `//${Rt()}/?from=${j}#login`;
393
393
  });
394
394
  }
395
- function U(L) {
396
- ot.global.locale.value = L, d.value = L, localStorage.setItem("locale", L);
395
+ function U(j) {
396
+ ot.global.locale.value = j, d.value = j, localStorage.setItem("locale", j);
397
397
  }
398
- function j() {
398
+ function B() {
399
399
  window.open("https://passport.vancone.com/#/account/profile", "_blank");
400
400
  }
401
- function R() {
401
+ function F() {
402
402
  window.open(a.helpDocUrl, "_blank");
403
403
  }
404
- return (L, P) => {
405
- const K = O("el-popover"), q = O("el-tooltip"), B = O("el-avatar"), ne = O("el-menu-item"), C = O("el-icon"), g = O("el-menu"), b = O("el-drawer");
406
- return p(), M(oe, null, [
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");
406
+ return p(), M(se, null, [
407
407
  v("div", gn, [
408
408
  v("div", bn, [
409
409
  v("div", {
@@ -414,7 +414,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
414
414
  }, [
415
415
  _(k(an))
416
416
  ], 512),
417
- v("h1", null, D(L.title), 1)
417
+ v("h1", null, D(j.title), 1)
418
418
  ]),
419
419
  _(K, {
420
420
  class: "app-popover",
@@ -429,7 +429,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
429
429
  _: 1
430
430
  }, 8, ["virtual-ref"]),
431
431
  v("div", vn, [
432
- _(q, {
432
+ _(W, {
433
433
  effect: "dark",
434
434
  content: k(t)("common.header.workbench"),
435
435
  placement: "bottom"
@@ -441,7 +441,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
441
441
  ]),
442
442
  _: 1
443
443
  }, 8, ["content"]),
444
- _(q, {
444
+ _(W, {
445
445
  effect: "dark",
446
446
  content: k(t)("common.header.help"),
447
447
  placement: "bottom"
@@ -450,14 +450,14 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
450
450
  a.helpDocUrl !== void 0 ? (p(), M("div", {
451
451
  key: 0,
452
452
  class: "icon-wrapper",
453
- onClick: R
453
+ onClick: F
454
454
  }, [
455
455
  _(k(un))
456
- ])) : z("", !0)
456
+ ])) : J("", !0)
457
457
  ]),
458
458
  _: 1
459
459
  }, 8, ["content"]),
460
- _(q, {
460
+ _(W, {
461
461
  effect: "dark",
462
462
  content: k(t)("common.header.notification"),
463
463
  placement: "bottom"
@@ -465,7 +465,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
465
465
  default: m(() => [
466
466
  v("div", {
467
467
  class: "icon-wrapper",
468
- onClick: P[0] || (P[0] = (I) => l.value = !0)
468
+ onClick: I[0] || (I[0] = (x) => l.value = !0)
469
469
  }, [
470
470
  _(k(fn))
471
471
  ])
@@ -473,7 +473,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
473
473
  _: 1
474
474
  }, 8, ["content"]),
475
475
  v("div", wn, [
476
- _(B, {
476
+ _(Y, {
477
477
  size: 30,
478
478
  src: "",
479
479
  ref_key: "avatarRef",
@@ -496,7 +496,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
496
496
  }, {
497
497
  default: m(() => [
498
498
  v("div", Cn, [
499
- _(B, {
499
+ _(Y, {
500
500
  size: 48,
501
501
  src: ""
502
502
  }, {
@@ -509,13 +509,13 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
509
509
  ]),
510
510
  _(g, { class: "user-menu" }, {
511
511
  default: m(() => [
512
- _(ne, { onClick: j }, {
512
+ _(re, { onClick: B }, {
513
513
  default: m(() => [
514
- ee(D(k(t)("common.header.userCenter")), 1)
514
+ Z(D(k(t)("common.header.userCenter")), 1)
515
515
  ]),
516
516
  _: 1
517
517
  }),
518
- _(ne, {
518
+ _(re, {
519
519
  ref_key: "switchLanguageRef",
520
520
  ref: s,
521
521
  style: { display: "flext", "justify-content": "space-between" }
@@ -543,12 +543,12 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
543
543
  "popper-style": "height: 80px; left: -165px"
544
544
  }, {
545
545
  default: m(() => [
546
- (p(!0), M(oe, null, de(S, (I) => (p(), M("div", {
546
+ (p(!0), M(se, null, he(S, (x) => (p(), M("div", {
547
547
  class: "select-list",
548
- onClick: (u) => U(I.id)
548
+ onClick: (u) => U(x.id)
549
549
  }, [
550
- v("span", null, D(I.name), 1),
551
- I.id === d.value ? (p(), V(C, {
550
+ v("span", null, D(x.name), 1),
551
+ x.id === d.value ? (p(), V(C, {
552
552
  key: 0,
553
553
  style: { color: "#8ba74f" }
554
554
  }, {
@@ -556,14 +556,14 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
556
556
  _(k(Oo))
557
557
  ]),
558
558
  _: 1
559
- })) : z("", !0)
559
+ })) : J("", !0)
560
560
  ], 8, On))), 256))
561
561
  ]),
562
562
  _: 1
563
563
  }, 8, ["virtual-ref"]),
564
- _(ne, { onClick: A }, {
564
+ _(re, { onClick: N }, {
565
565
  default: m(() => [
566
- ee(D(k(t)("common.header.signOut")), 1)
566
+ Z(D(k(t)("common.header.signOut")), 1)
567
567
  ]),
568
568
  _: 1
569
569
  })
@@ -578,24 +578,24 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
578
578
  ]),
579
579
  _(b, {
580
580
  modelValue: l.value,
581
- "onUpdate:modelValue": P[1] || (P[1] = (I) => l.value = I),
581
+ "onUpdate:modelValue": I[1] || (I[1] = (x) => l.value = x),
582
582
  direction: "rtl",
583
583
  title: "Message Center"
584
584
  }, null, 8, ["modelValue"])
585
585
  ], 64);
586
586
  };
587
587
  }
588
- }), Lt = /* @__PURE__ */ _e(En, [["__scopeId", "data-v-6fc40dbc"]]), xn = {
588
+ }), Lt = /* @__PURE__ */ ve(En, [["__scopeId", "data-v-6fc40dbc"]]), $n = {
589
589
  class: "menu-icon-wrapper",
590
590
  style: { "margin-left": "3px" }
591
- }, $n = { class: "menu-icon-wrapper" }, In = /* @__PURE__ */ ve({
591
+ }, xn = { class: "menu-icon-wrapper" }, Pn = /* @__PURE__ */ we({
592
592
  __name: "SideMenuItem",
593
593
  props: {
594
594
  menu: {}
595
595
  },
596
596
  setup(e) {
597
597
  const t = e;
598
- return je(() => console.log("menu", t.menu)), (o, n) => {
598
+ return ze(() => console.log("menu", t.menu)), (o, n) => {
599
599
  const s = O("SideMenuItem", !0), r = O("el-sub-menu"), l = O("el-menu-item");
600
600
  return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
601
601
  key: 0,
@@ -604,14 +604,14 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
604
604
  title: m(() => {
605
605
  var a, i, d;
606
606
  return [
607
- v("div", xn, [
607
+ v("div", $n, [
608
608
  (p(), V(tt((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
609
609
  ]),
610
610
  v("span", null, D(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
611
611
  ];
612
612
  }),
613
613
  default: m(() => [
614
- (p(!0), M(oe, null, de(o.menu.children, (a) => (p(), V(s, {
614
+ (p(!0), M(se, null, he(o.menu.children, (a) => (p(), V(s, {
615
615
  key: a.path,
616
616
  route: a,
617
617
  menu: a
@@ -632,7 +632,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
632
632
  default: m(() => {
633
633
  var a;
634
634
  return [
635
- v("div", $n, [
635
+ v("div", xn, [
636
636
  (p(), V(tt((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
637
637
  ])
638
638
  ];
@@ -641,7 +641,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
641
641
  }, 8, ["index"]));
642
642
  };
643
643
  }
644
- }), Pn = /* @__PURE__ */ _e(In, [["__scopeId", "data-v-99da7c39"]]), me = N({}), Vn = {}, Ct = N([]);
644
+ }), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge = A({}), Vn = {}, Ct = A([]);
645
645
  var jt = !1;
646
646
  function Qe(e, t, o) {
647
647
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
@@ -653,22 +653,22 @@ function it(e, t) {
653
653
  }
654
654
  delete e[t];
655
655
  }
656
- function Nn() {
656
+ function An() {
657
657
  return zt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
658
658
  }
659
659
  function zt() {
660
660
  return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
661
661
  }
662
- const An = typeof Proxy == "function", Mn = "devtools-plugin:setup", Un = "plugin:settings:set";
663
- let Ae, ut;
662
+ const Nn = typeof Proxy == "function", Mn = "devtools-plugin:setup", Un = "plugin:settings:set";
663
+ let Ue, ut;
664
664
  function Tn() {
665
665
  var e;
666
- return Ae !== void 0 || (typeof window != "undefined" && window.performance ? (Ae = !0, ut = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ae = !0, ut = globalThis.perf_hooks.performance) : Ae = !1), Ae;
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;
667
667
  }
668
668
  function Dn() {
669
669
  return Tn() ? ut.now() : Date.now();
670
670
  }
671
- class Rn {
671
+ class Fn {
672
672
  constructor(t, o) {
673
673
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
674
674
  const n = {};
@@ -723,7 +723,7 @@ class Rn {
723
723
  });
724
724
  }
725
725
  setRealTarget(t) {
726
- return we(this, null, function* () {
726
+ return Ce(this, null, function* () {
727
727
  this.target = t;
728
728
  for (const o of this.onQueue)
729
729
  this.target.on[o.method](...o.args);
@@ -733,11 +733,11 @@ class Rn {
733
733
  }
734
734
  }
735
735
  function qt(e, t) {
736
- const o = e, n = zt(), s = Nn(), r = An && o.enableEarlyProxy;
736
+ const o = e, n = zt(), s = An(), r = Nn && o.enableEarlyProxy;
737
737
  if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
738
738
  s.emit(Mn, e, t);
739
739
  else {
740
- const l = r ? new Rn(o, s) : null;
740
+ const l = r ? new Fn(o, s) : null;
741
741
  (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
742
742
  pluginDescriptor: o,
743
743
  setupFn: t,
@@ -750,20 +750,20 @@ function qt(e, t) {
750
750
  * (c) 2024 Eduardo San Martin Morote
751
751
  * @license MIT
752
752
  */
753
- let Le;
754
- const Be = (e) => Le = e, Bt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
753
+ let je;
754
+ const He = (e) => je = e, Bt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
755
755
  /* istanbul ignore next */
756
756
  Symbol()
757
757
  );
758
- function Ne(e) {
758
+ function Me(e) {
759
759
  return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
760
760
  }
761
- var ye;
761
+ var Se;
762
762
  (function(e) {
763
763
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
764
- })(ye || (ye = {}));
765
- const Ve = typeof window != "undefined", kt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
766
- function Fn(e, { autoBom: t = !1 } = {}) {
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
767
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
768
768
  }
769
769
  function mt(e, t, o) {
@@ -791,7 +791,7 @@ function Ke(e) {
791
791
  o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
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 = Ve ? (
794
+ const Xe = typeof navigator == "object" ? navigator : { userAgent: "" }, Jt = /Macintosh/.test(Xe.userAgent) && /AppleWebKit/.test(Xe.userAgent) && !/Safari/.test(Xe.userAgent), Wt = Ae ? (
795
795
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
796
796
  typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Jt ? Gn : (
797
797
  // Use msSaveOrOpenBlob as a second approach
@@ -821,7 +821,7 @@ function Ln(e, t = "download", o) {
821
821
  });
822
822
  }
823
823
  else
824
- navigator.msSaveOrOpenBlob(Fn(e, o), t);
824
+ navigator.msSaveOrOpenBlob(Rn(e, o), t);
825
825
  }
826
826
  function jn(e, t, o, n) {
827
827
  if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
@@ -842,7 +842,7 @@ function jn(e, t, o, n) {
842
842
  }, 4e4);
843
843
  }
844
844
  }
845
- function te(e, t) {
845
+ function oe(e, t) {
846
846
  const o = "🍍 " + e;
847
847
  typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
848
848
  }
@@ -851,72 +851,72 @@ function ht(e) {
851
851
  }
852
852
  function Yt() {
853
853
  if (!("clipboard" in navigator))
854
- return te("Your browser doesn't support the Clipboard API", "error"), !0;
854
+ return oe("Your browser doesn't support the Clipboard API", "error"), !0;
855
855
  }
856
856
  function Qt(e) {
857
- return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (te('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
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
859
  function zn(e) {
860
- return we(this, null, function* () {
860
+ return Ce(this, null, function* () {
861
861
  if (!Yt())
862
862
  try {
863
- yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), te("Global state copied to clipboard.");
863
+ yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), oe("Global state copied to clipboard.");
864
864
  } catch (t) {
865
865
  if (Qt(t))
866
866
  return;
867
- te("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(t);
868
868
  }
869
869
  });
870
870
  }
871
871
  function qn(e) {
872
- return we(this, null, function* () {
872
+ return Ce(this, null, function* () {
873
873
  if (!Yt())
874
874
  try {
875
- Kt(e, JSON.parse(yield navigator.clipboard.readText())), te("Global state pasted from clipboard.");
875
+ Kt(e, JSON.parse(yield navigator.clipboard.readText())), oe("Global state pasted from clipboard.");
876
876
  } catch (t) {
877
877
  if (Qt(t))
878
878
  return;
879
- te("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(t);
880
880
  }
881
881
  });
882
882
  }
883
883
  function Bn(e) {
884
- return we(this, null, function* () {
884
+ return Ce(this, null, function* () {
885
885
  try {
886
886
  Wt(new Blob([JSON.stringify(e.state.value)], {
887
887
  type: "text/plain;charset=utf-8"
888
888
  }), "pinia-state.json");
889
889
  } catch (t) {
890
- te("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
890
+ oe("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
891
891
  }
892
892
  });
893
893
  }
894
- let Se;
894
+ let ke;
895
895
  function Hn() {
896
- Se || (Se = document.createElement("input"), Se.type = "file", Se.accept = ".json");
896
+ ke || (ke = document.createElement("input"), ke.type = "file", ke.accept = ".json");
897
897
  function e() {
898
898
  return new Promise((t, o) => {
899
- Se.onchange = () => we(this, null, function* () {
900
- const n = Se.files;
899
+ ke.onchange = () => Ce(this, null, function* () {
900
+ const n = ke.files;
901
901
  if (!n)
902
902
  return t(null);
903
903
  const s = n.item(0);
904
904
  return t(s ? { text: yield s.text(), file: s } : null);
905
- }), Se.oncancel = () => t(null), Se.onerror = o, Se.click();
905
+ }), ke.oncancel = () => t(null), ke.onerror = o, ke.click();
906
906
  });
907
907
  }
908
908
  return e;
909
909
  }
910
910
  function Jn(e) {
911
- return we(this, null, function* () {
911
+ return Ce(this, null, function* () {
912
912
  try {
913
913
  const o = yield Hn()();
914
914
  if (!o)
915
915
  return;
916
916
  const { text: n, file: s } = o;
917
- Kt(e, JSON.parse(n)), te(`Global state imported from "${s.name}".`);
917
+ Kt(e, JSON.parse(n)), oe(`Global state imported from "${s.name}".`);
918
918
  } catch (t) {
919
- te("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
919
+ oe("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
920
920
  }
921
921
  });
922
922
  }
@@ -926,7 +926,7 @@ function Kt(e, t) {
926
926
  n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
927
927
  }
928
928
  }
929
- function be(e) {
929
+ function ye(e) {
930
930
  return {
931
931
  _custom: {
932
932
  display: e
@@ -986,26 +986,26 @@ function Qn(e) {
986
986
  operations: [],
987
987
  newValue: {}
988
988
  }) : {
989
- operation: be(e.type),
990
- key: be(e.key),
989
+ operation: ye(e.type),
990
+ key: ye(e.key),
991
991
  oldValue: e.oldValue,
992
992
  newValue: e.newValue
993
993
  } : {};
994
994
  }
995
995
  function Kn(e) {
996
996
  switch (e) {
997
- case ye.direct:
997
+ case Se.direct:
998
998
  return "mutation";
999
- case ye.patchFunction:
999
+ case Se.patchFunction:
1000
1000
  return "$patch";
1001
- case ye.patchObject:
1001
+ case Se.patchObject:
1002
1002
  return "$patch";
1003
1003
  default:
1004
1004
  return "unknown";
1005
1005
  }
1006
1006
  }
1007
- let Ue = !0;
1008
- const et = [], Ie = "pinia:mutations", le = "pinia", { assign: Xn } = Object, nt = (e) => "🍍 " + e;
1007
+ let De = !0;
1008
+ const et = [], Ie = "pinia:mutations", ie = "pinia", { assign: Xn } = Object, nt = (e) => "🍍 " + e;
1009
1009
  function Zn(e, t) {
1010
1010
  qt({
1011
1011
  id: "dev.esm.pinia",
@@ -1016,12 +1016,12 @@ function Zn(e, t) {
1016
1016
  componentStateTypes: et,
1017
1017
  app: e
1018
1018
  }, (o) => {
1019
- typeof o.now != "function" && te("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({
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
1020
  id: Ie,
1021
1021
  label: "Pinia 🍍",
1022
1022
  color: 15064968
1023
1023
  }), o.addInspector({
1024
- id: le,
1024
+ id: ie,
1025
1025
  label: "Pinia 🍍",
1026
1026
  icon: "storage",
1027
1027
  treeFilterPlaceholder: "Search stores",
@@ -1035,8 +1035,8 @@ function Zn(e, t) {
1035
1035
  },
1036
1036
  {
1037
1037
  icon: "content_paste",
1038
- action: () => we(this, null, function* () {
1039
- yield qn(t), o.sendInspectorTree(le), o.sendInspectorState(le);
1038
+ action: () => Ce(this, null, function* () {
1039
+ yield qn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1040
1040
  }),
1041
1041
  tooltip: "Replace the state with the content of your clipboard"
1042
1042
  },
@@ -1049,8 +1049,8 @@ function Zn(e, t) {
1049
1049
  },
1050
1050
  {
1051
1051
  icon: "folder_open",
1052
- action: () => we(this, null, function* () {
1053
- yield Jn(t), o.sendInspectorTree(le), o.sendInspectorState(le);
1052
+ action: () => Ce(this, null, function* () {
1053
+ yield Jn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1054
1054
  }),
1055
1055
  tooltip: "Import the state from a JSON file"
1056
1056
  }
@@ -1061,7 +1061,7 @@ function Zn(e, t) {
1061
1061
  tooltip: 'Reset the state (with "$reset")',
1062
1062
  action: (n) => {
1063
1063
  const s = t._s.get(n);
1064
- s ? typeof s.$reset != "function" ? te(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), te(`Store "${n}" reset.`)) : te(`Cannot reset "${n}" store because it wasn't found.`, "warn");
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
  ]
@@ -1076,7 +1076,7 @@ function Zn(e, t) {
1076
1076
  editable: !0,
1077
1077
  value: a._isOptionsAPI ? {
1078
1078
  _custom: {
1079
- value: ze(a.$state),
1079
+ value: qe(a.$state),
1080
1080
  actions: [
1081
1081
  {
1082
1082
  icon: "restore",
@@ -1105,36 +1105,36 @@ function Zn(e, t) {
1105
1105
  });
1106
1106
  }
1107
1107
  }), o.on.getInspectorTree((n) => {
1108
- if (n.app === e && n.inspectorId === le) {
1108
+ if (n.app === e && n.inspectorId === ie) {
1109
1109
  let s = [t];
1110
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);
1111
1111
  }
1112
1112
  }), globalThis.$pinia = t, o.on.getInspectorState((n) => {
1113
- if (n.app === e && n.inspectorId === le) {
1113
+ if (n.app === e && n.inspectorId === ie) {
1114
1114
  const s = n.nodeId === Ze ? t : t._s.get(n.nodeId);
1115
1115
  if (!s)
1116
1116
  return;
1117
- s && (n.nodeId !== Ze && (globalThis.$store = ze(s)), n.state = Yn(s));
1117
+ s && (n.nodeId !== Ze && (globalThis.$store = qe(s)), n.state = Yn(s));
1118
1118
  }
1119
1119
  }), o.on.editInspectorState((n, s) => {
1120
- if (n.app === e && n.inspectorId === le) {
1120
+ if (n.app === e && n.inspectorId === ie) {
1121
1121
  const r = n.nodeId === Ze ? t : t._s.get(n.nodeId);
1122
1122
  if (!r)
1123
- return te(`store "${n.nodeId}" not found`, "error");
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"), Ue = !1, n.set(r, l, n.state.value), Ue = !0;
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;
1126
1126
  }
1127
1127
  }), o.on.editComponentState((n) => {
1128
1128
  if (n.type.startsWith("🍍")) {
1129
1129
  const s = n.type.replace(/^🍍\s*/, ""), r = t._s.get(s);
1130
1130
  if (!r)
1131
- return te(`store "${s}" not found`, "error");
1131
+ return oe(`store "${s}" not found`, "error");
1132
1132
  const { path: l } = n;
1133
1133
  if (l[0] !== "state")
1134
- return te(`Invalid path for store "${s}":
1134
+ return oe(`Invalid path for store "${s}":
1135
1135
  ${l}
1136
1136
  Only state can be modified.`);
1137
- l[0] = "$state", Ue = !1, n.set(r, l, n.state.value), Ue = !0;
1137
+ l[0] = "$state", De = !1, n.set(r, l, n.state.value), De = !0;
1138
1138
  }
1139
1139
  });
1140
1140
  });
@@ -1171,22 +1171,22 @@ function es(e, t) {
1171
1171
  title: "🛫 " + i,
1172
1172
  subtitle: "start",
1173
1173
  data: {
1174
- store: be(t.$id),
1175
- action: be(i),
1174
+ store: ye(t.$id),
1175
+ action: ye(i),
1176
1176
  args: d
1177
1177
  },
1178
1178
  groupId: S
1179
1179
  }
1180
1180
  }), l((w) => {
1181
- Oe = void 0, o.addTimelineEvent({
1181
+ $e = void 0, o.addTimelineEvent({
1182
1182
  layerId: Ie,
1183
1183
  event: {
1184
1184
  time: n(),
1185
1185
  title: "🛬 " + i,
1186
1186
  subtitle: "end",
1187
1187
  data: {
1188
- store: be(t.$id),
1189
- action: be(i),
1188
+ store: ye(t.$id),
1189
+ action: ye(i),
1190
1190
  args: d,
1191
1191
  result: w
1192
1192
  },
@@ -1194,7 +1194,7 @@ function es(e, t) {
1194
1194
  }
1195
1195
  });
1196
1196
  }), a((w) => {
1197
- Oe = void 0, o.addTimelineEvent({
1197
+ $e = void 0, o.addTimelineEvent({
1198
1198
  layerId: Ie,
1199
1199
  event: {
1200
1200
  time: n(),
@@ -1202,8 +1202,8 @@ function es(e, t) {
1202
1202
  title: "💥 " + i,
1203
1203
  subtitle: "end",
1204
1204
  data: {
1205
- store: be(t.$id),
1206
- action: be(i),
1205
+ store: ye(t.$id),
1206
+ action: ye(i),
1207
1207
  args: d,
1208
1208
  error: w
1209
1209
  },
@@ -1212,8 +1212,8 @@ function es(e, t) {
1212
1212
  });
1213
1213
  });
1214
1214
  }, !0), t._customProperties.forEach((l) => {
1215
- Ce(() => k(t[l]), (a, i) => {
1216
- o.notifyComponentUpdate(), o.sendInspectorState(le), Ue && o.addTimelineEvent({
1215
+ Ee(() => k(t[l]), (a, i) => {
1216
+ o.notifyComponentUpdate(), o.sendInspectorState(ie), De && o.addTimelineEvent({
1217
1217
  layerId: Ie,
1218
1218
  event: {
1219
1219
  time: n(),
@@ -1223,20 +1223,20 @@ function es(e, t) {
1223
1223
  newValue: a,
1224
1224
  oldValue: i
1225
1225
  },
1226
- groupId: Oe
1226
+ groupId: $e
1227
1227
  }
1228
1228
  });
1229
1229
  }, { deep: !0 });
1230
1230
  }), t.$subscribe(({ events: l, type: a }, i) => {
1231
- if (o.notifyComponentUpdate(), o.sendInspectorState(le), !Ue)
1231
+ if (o.notifyComponentUpdate(), o.sendInspectorState(ie), !De)
1232
1232
  return;
1233
1233
  const d = {
1234
1234
  time: n(),
1235
1235
  title: Kn(a),
1236
- data: Xn({ store: be(t.$id) }, Qn(l)),
1237
- groupId: Oe
1236
+ data: Xn({ store: ye(t.$id) }, Qn(l)),
1237
+ groupId: $e
1238
1238
  };
1239
- a === ye.patchFunction ? d.subtitle = "⤵️" : a === ye.patchObject ? d.subtitle = "🧩" : l && !Array.isArray(l) && (d.subtitle = l.type), l && (d.data["rawEvent(s)"] = {
1239
+ a === Se.patchFunction ? d.subtitle = "⤵️" : a === Se.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",
@@ -1249,7 +1249,7 @@ function es(e, t) {
1249
1249
  });
1250
1250
  }, { detached: !0, flush: "sync" });
1251
1251
  const s = t._hotUpdate;
1252
- t._hotUpdate = Pe((l) => {
1252
+ t._hotUpdate = Ve((l) => {
1253
1253
  s(l), o.addTimelineEvent({
1254
1254
  layerId: Ie,
1255
1255
  event: {
@@ -1257,34 +1257,34 @@ function es(e, t) {
1257
1257
  title: "🔥 " + t.$id,
1258
1258
  subtitle: "HMR update",
1259
1259
  data: {
1260
- store: be(t.$id),
1261
- info: be("HMR update")
1260
+ store: ye(t.$id),
1261
+ info: ye("HMR update")
1262
1262
  }
1263
1263
  }
1264
- }), o.notifyComponentUpdate(), o.sendInspectorTree(le), o.sendInspectorState(le);
1264
+ }), o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1265
1265
  });
1266
1266
  const { $dispose: r } = t;
1267
1267
  t.$dispose = () => {
1268
- r(), o.notifyComponentUpdate(), o.sendInspectorTree(le), o.sendInspectorState(le), o.getSettings().logStoreChanges && te(`Disposed "${t.$id}" store 🗑`);
1269
- }, o.notifyComponentUpdate(), o.sendInspectorTree(le), o.sendInspectorState(le), o.getSettings().logStoreChanges && te(`"${t.$id}" store installed 🆕`);
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 🆕`);
1270
1270
  });
1271
1271
  }
1272
- let Zt = 0, Oe;
1272
+ let Zt = 0, $e;
1273
1273
  function Ot(e, t, o) {
1274
- const n = t.reduce((s, r) => (s[r] = ze(e)[r], s), {});
1274
+ const n = t.reduce((s, r) => (s[r] = qe(e)[r], s), {});
1275
1275
  for (const s in n)
1276
1276
  e[s] = function() {
1277
1277
  const r = Zt, l = o ? new Proxy(e, {
1278
1278
  get(...i) {
1279
- return Oe = r, Reflect.get(...i);
1279
+ return $e = r, Reflect.get(...i);
1280
1280
  },
1281
1281
  set(...i) {
1282
- return Oe = r, Reflect.set(...i);
1282
+ return $e = r, Reflect.set(...i);
1283
1283
  }
1284
1284
  }) : e;
1285
- Oe = r;
1285
+ $e = r;
1286
1286
  const a = n[s].apply(l, arguments);
1287
- return Oe = void 0, a;
1287
+ return $e = void 0, a;
1288
1288
  };
1289
1289
  }
1290
1290
  function ts({ app: e, store: t, options: o }) {
@@ -1292,7 +1292,7 @@ function ts({ app: e, store: t, options: o }) {
1292
1292
  if (t._isOptionsAPI = !!o.state, !t._p._testing) {
1293
1293
  Ot(t, Object.keys(o.actions), t._isOptionsAPI);
1294
1294
  const n = t._hotUpdate;
1295
- ze(t)._hotUpdate = function(s) {
1295
+ qe(t)._hotUpdate = function(s) {
1296
1296
  n.apply(this, arguments), Ot(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
1297
1297
  };
1298
1298
  }
@@ -1304,11 +1304,11 @@ function ts({ app: e, store: t, options: o }) {
1304
1304
  }
1305
1305
  }
1306
1306
  function os() {
1307
- const e = At(!0), t = e.run(() => N({}));
1307
+ const e = Nt(!0), t = e.run(() => A({}));
1308
1308
  let o = [], n = [];
1309
- const s = Pe({
1309
+ const s = Ve({
1310
1310
  install(r) {
1311
- Be(s), s._a = r, r.provide(Bt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ve && Zn(r, s), n.forEach((l) => o.push(l)), n = [];
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 = [];
1312
1312
  },
1313
1313
  use(r) {
1314
1314
  return !this._a && !jt ? n.push(r) : o.push(r), this;
@@ -1329,7 +1329,7 @@ function eo(e, t) {
1329
1329
  if (!(o in e))
1330
1330
  continue;
1331
1331
  const s = e[o];
1332
- Ne(s) && Ne(n) && !qe(n) && !ft(n) ? e[o] = eo(s, n) : e[o] = n;
1332
+ Me(s) && Me(n) && !Be(n) && !ft(n) ? e[o] = eo(s, n) : e[o] = n;
1333
1333
  }
1334
1334
  return e;
1335
1335
  }
@@ -1343,19 +1343,19 @@ function Et(e, t, o, n = to) {
1343
1343
  };
1344
1344
  return !o && vo() && yo(s), s;
1345
1345
  }
1346
- function Me(e, ...t) {
1346
+ function Te(e, ...t) {
1347
1347
  e.slice().forEach((o) => {
1348
1348
  o(...t);
1349
1349
  });
1350
1350
  }
1351
- const ns = (e) => e(), xt = Symbol(), ct = Symbol();
1351
+ const ns = (e) => e(), $t = Symbol(), ct = Symbol();
1352
1352
  function dt(e, t) {
1353
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
1354
  for (const o in t) {
1355
1355
  if (!t.hasOwnProperty(o))
1356
1356
  continue;
1357
1357
  const n = t[o], s = e[o];
1358
- Ne(s) && Ne(n) && e.hasOwnProperty(o) && !qe(n) && !ft(n) ? e[o] = dt(s, n) : e[o] = n;
1358
+ Me(s) && Me(n) && e.hasOwnProperty(o) && !Be(n) && !ft(n) ? e[o] = dt(s, n) : e[o] = n;
1359
1359
  }
1360
1360
  return e;
1361
1361
  }
@@ -1364,64 +1364,64 @@ const ss = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
1364
1364
  Symbol()
1365
1365
  );
1366
1366
  function rs(e) {
1367
- return !Ne(e) || !e.hasOwnProperty(ss);
1367
+ return !Me(e) || !e.hasOwnProperty(ss);
1368
1368
  }
1369
- const { assign: fe } = Object;
1370
- function $t(e) {
1371
- return !!(qe(e) && e.effect);
1369
+ const { assign: _e } = Object;
1370
+ function xt(e) {
1371
+ return !!(Be(e) && e.effect);
1372
1372
  }
1373
- function It(e, t, o, n) {
1373
+ function Pt(e, t, o, n) {
1374
1374
  const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
1375
1375
  let i;
1376
1376
  function d() {
1377
1377
  !a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
1378
1378
  const S = process.env.NODE_ENV !== "production" && n ? (
1379
1379
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1380
- St(N(s ? s() : {}).value)
1380
+ St(A(s ? s() : {}).value)
1381
1381
  ) : St(o.state.value[e]);
1382
- return fe(S, r, Object.keys(l || {}).reduce((w, A) => (process.env.NODE_ENV !== "production" && A in S && 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] = Pe(Fe(() => {
1383
- Be(o);
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
1384
  const U = o._s.get(e);
1385
- return l[A].call(U, U);
1385
+ return l[N].call(U, U);
1386
1386
  })), w), {}));
1387
1387
  }
1388
1388
  return i = pt(e, d, t, o, n, !0), i;
1389
1389
  }
1390
1390
  function pt(e, t, o = {}, n, s, r) {
1391
1391
  let l;
1392
- const a = fe({ actions: {} }, o);
1392
+ const a = _e({ actions: {} }, o);
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
1396
  process.env.NODE_ENV !== "production" && !jt && (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 = [], A = [], U;
1400
- const j = n.state.value[e];
1401
- !r && !j && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1402
- const R = N({});
1403
- let L;
1404
- function P(u) {
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) {
1405
1405
  let c;
1406
1406
  d = S = !1, process.env.NODE_ENV !== "production" && (U = []), typeof u == "function" ? (u(n.state.value[e]), c = {
1407
- type: ye.patchFunction,
1407
+ type: Se.patchFunction,
1408
1408
  storeId: e,
1409
1409
  events: U
1410
1410
  }) : (dt(n.state.value[e], u), c = {
1411
- type: ye.patchObject,
1411
+ type: Se.patchObject,
1412
1412
  payload: u,
1413
1413
  storeId: e,
1414
1414
  events: U
1415
1415
  });
1416
- const y = L = Symbol();
1417
- je().then(() => {
1418
- L === y && (d = !0);
1419
- }), S = !0, Me(w, c, n.state.value[e]);
1416
+ const y = j = Symbol();
1417
+ ze().then(() => {
1418
+ j === y && (d = !0);
1419
+ }), S = !0, Te(w, c, n.state.value[e]);
1420
1420
  }
1421
1421
  const K = r ? function() {
1422
1422
  const { state: c } = o, y = c ? c() : {};
1423
1423
  this.$patch(($) => {
1424
- fe($, y);
1424
+ _e($, y);
1425
1425
  });
1426
1426
  } : (
1427
1427
  /* istanbul ignore next */
@@ -1429,64 +1429,64 @@ function pt(e, t, o = {}, n, s, r) {
1429
1429
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1430
1430
  } : to
1431
1431
  );
1432
- function q() {
1433
- l.stop(), w = [], A = [], n._s.delete(e);
1432
+ function W() {
1433
+ l.stop(), w = [], N = [], n._s.delete(e);
1434
1434
  }
1435
- const B = (u, c = "") => {
1436
- if (xt in u)
1435
+ const Y = (u, c = "") => {
1436
+ if ($t in u)
1437
1437
  return u[ct] = c, u;
1438
1438
  const y = function() {
1439
- Be(n);
1440
- const $ = Array.from(arguments), F = [], H = [];
1439
+ He(n);
1440
+ const $ = Array.from(arguments), R = [], Q = [];
1441
1441
  function G(f) {
1442
- F.push(f);
1442
+ R.push(f);
1443
1443
  }
1444
1444
  function h(f) {
1445
- H.push(f);
1445
+ Q.push(f);
1446
1446
  }
1447
- Me(A, {
1447
+ Te(N, {
1448
1448
  args: $,
1449
1449
  name: y[ct],
1450
1450
  store: g,
1451
1451
  after: G,
1452
1452
  onError: h
1453
1453
  });
1454
- let x;
1454
+ let z;
1455
1455
  try {
1456
- x = u.apply(this && this.$id === e ? this : g, $);
1456
+ z = u.apply(this && this.$id === e ? this : g, $);
1457
1457
  } catch (f) {
1458
- throw Me(H, f), f;
1458
+ throw Te(Q, f), f;
1459
1459
  }
1460
- return x instanceof Promise ? x.then((f) => (Me(F, f), f)).catch((f) => (Me(H, f), Promise.reject(f))) : (Me(F, x), x);
1460
+ return z instanceof Promise ? z.then((f) => (Te(R, f), f)).catch((f) => (Te(Q, f), Promise.reject(f))) : (Te(R, z), z);
1461
1461
  };
1462
- return y[xt] = !0, y[ct] = c, y;
1463
- }, ne = /* @__PURE__ */ Pe({
1462
+ return y[$t] = !0, y[ct] = c, y;
1463
+ }, re = /* @__PURE__ */ Ve({
1464
1464
  actions: {},
1465
1465
  getters: {},
1466
1466
  state: [],
1467
- hotState: R
1467
+ hotState: F
1468
1468
  }), C = {
1469
1469
  _p: n,
1470
1470
  // _s: scope,
1471
1471
  $id: e,
1472
- $onAction: Et.bind(null, A),
1473
- $patch: P,
1472
+ $onAction: Et.bind(null, N),
1473
+ $patch: I,
1474
1474
  $reset: K,
1475
1475
  $subscribe(u, c = {}) {
1476
- const y = Et(w, u, c.detached, () => $()), $ = l.run(() => Ce(() => n.state.value[e], (F) => {
1476
+ const y = Et(w, u, c.detached, () => $()), $ = l.run(() => Ee(() => n.state.value[e], (R) => {
1477
1477
  (c.flush === "sync" ? S : d) && u({
1478
1478
  storeId: e,
1479
- type: ye.direct,
1479
+ type: Se.direct,
1480
1480
  events: U
1481
- }, F);
1482
- }, fe({}, i, c)));
1481
+ }, R);
1482
+ }, _e({}, i, c)));
1483
1483
  return y;
1484
1484
  },
1485
- $dispose: q
1486
- }, g = ce(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ve ? fe(
1485
+ $dispose: W
1486
+ }, g = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae ? _e(
1487
1487
  {
1488
- _hmrPayload: ne,
1489
- _customProperties: Pe(/* @__PURE__ */ new Set())
1488
+ _hmrPayload: re,
1489
+ _customProperties: Ve(/* @__PURE__ */ new Set())
1490
1490
  // devtools custom properties
1491
1491
  },
1492
1492
  C
@@ -1494,49 +1494,49 @@ function pt(e, t, o = {}, n, s, r) {
1494
1494
  // setupStore
1495
1495
  ) : C);
1496
1496
  n._s.set(e, g);
1497
- const I = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = At()).run(() => t({ action: B }))));
1498
- for (const u in I) {
1499
- const c = I[u];
1500
- if (qe(c) && !$t(c) || ft(c))
1501
- process.env.NODE_ENV !== "production" && s ? Qe(R.value, u, at(I, u)) : r || (j && rs(c) && (qe(c) ? c.value = j[u] : dt(c, j[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
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);
1502
1502
  else if (typeof c == "function") {
1503
- const y = process.env.NODE_ENV !== "production" && s ? c : B(c, u);
1504
- I[u] = y, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
1505
- } else process.env.NODE_ENV !== "production" && $t(c) && (ne.getters[u] = r ? (
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 ? (
1506
1506
  // @ts-expect-error
1507
1507
  o.getters[u]
1508
- ) : c, Ve && (I._getters || // @ts-expect-error: same
1509
- (I._getters = Pe([]))).push(u));
1508
+ ) : c, Ae && (x._getters || // @ts-expect-error: same
1509
+ (x._getters = Ve([]))).push(u));
1510
1510
  }
1511
- if (fe(g, I), fe(ze(g), I), Object.defineProperty(g, "$state", {
1512
- get: () => process.env.NODE_ENV !== "production" && s ? R.value : n.state.value[e],
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],
1513
1513
  set: (u) => {
1514
1514
  if (process.env.NODE_ENV !== "production" && s)
1515
1515
  throw new Error("cannot set hotState");
1516
- P((c) => {
1517
- fe(c, u);
1516
+ I((c) => {
1517
+ _e(c, u);
1518
1518
  });
1519
1519
  }
1520
- }), process.env.NODE_ENV !== "production" && (g._hotUpdate = Pe((u) => {
1520
+ }), process.env.NODE_ENV !== "production" && (g._hotUpdate = Ve((u) => {
1521
1521
  g._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
1522
1522
  if (c in g.$state) {
1523
1523
  const y = u.$state[c], $ = g.$state[c];
1524
- typeof y == "object" && Ne(y) && Ne($) ? eo(y, $) : u.$state[c] = $;
1524
+ typeof y == "object" && Me(y) && Me($) ? eo(y, $) : u.$state[c] = $;
1525
1525
  }
1526
1526
  Qe(g, c, at(u.$state, c));
1527
1527
  }), Object.keys(g.$state).forEach((c) => {
1528
1528
  c in u.$state || it(g, c);
1529
- }), d = !1, S = !1, n.state.value[e] = at(u._hmrPayload, "hotState"), S = !0, je().then(() => {
1529
+ }), d = !1, S = !1, n.state.value[e] = at(u._hmrPayload, "hotState"), S = !0, ze().then(() => {
1530
1530
  d = !0;
1531
1531
  });
1532
1532
  for (const c in u._hmrPayload.actions) {
1533
1533
  const y = u[c];
1534
- Qe(g, c, B(y, c));
1534
+ Qe(g, c, Y(y, c));
1535
1535
  }
1536
1536
  for (const c in u._hmrPayload.getters) {
1537
1537
  const y = u._hmrPayload.getters[c], $ = r ? (
1538
1538
  // special handling of options api
1539
- Fe(() => (Be(n), y.call(g, g)))
1539
+ Ne(() => (He(n), y.call(g, g)))
1540
1540
  ) : y;
1541
1541
  Qe(g, c, $);
1542
1542
  }
@@ -1545,7 +1545,7 @@ function pt(e, t, o = {}, n, s, r) {
1545
1545
  }), Object.keys(g._hmrPayload.actions).forEach((c) => {
1546
1546
  c in u._hmrPayload.actions || it(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" && Ve) {
1548
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae) {
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, fe({ value: g[c] }, u));
1556
+ Object.defineProperty(g, c, _e({ 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" && Ve) {
1560
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae) {
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)), fe(g, c);
1567
+ Object.keys(c || {}).forEach((y) => g._customProperties.add(y)), _e(g, c);
1568
1568
  } else
1569
- fe(g, l.run(() => u({
1569
+ _e(g, l.run(() => u({
1570
1570
  store: g,
1571
1571
  app: n._a,
1572
1572
  pinia: n,
@@ -1574,7 +1574,7 @@ 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}".`), j && r && o.hydrate && o.hydrate(g.$state, j), d = !0, S = !0, g;
1577
+ Found in store "${g.$id}".`), B && r && o.hydrate && o.hydrate(g.$state, B), d = !0, S = !0, g;
1578
1578
  }
1579
1579
  /*! #__NO_SIDE_EFFECTS__ */
1580
1580
  // @__NO_SIDE_EFFECTS__
@@ -1586,21 +1586,21 @@ function as(e, t, o) {
1586
1586
  const d = _o();
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" && Le && Le._testing ? null : a) || (d ? go(Bt, null) : null), a && Be(a), process.env.NODE_ENV !== "production" && !Le)
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)
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 = Le, a._s.has(n) || (r ? pt(n, t, s, a) : It(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
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
1594
  const S = a._s.get(n);
1595
1595
  if (process.env.NODE_ENV !== "production" && i) {
1596
- const w = "__hot:" + n, A = r ? pt(w, t, s, a, !0) : It(w, fe({}, s), a, !0);
1597
- i._hotUpdate(A), delete a.state.value[w], a._s.delete(w);
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);
1598
1598
  }
1599
- if (process.env.NODE_ENV !== "production" && Ve) {
1599
+ if (process.env.NODE_ENV !== "production" && Ae) {
1600
1600
  const w = bo();
1601
1601
  if (w && w.proxy && // avoid adding stores that are just built for hot module replacement
1602
1602
  !i) {
1603
- const A = w.proxy, U = "_pStores" in A ? A._pStores : A._pStores = {};
1603
+ const N = w.proxy, U = "_pStores" in N ? N._pStores : N._pStores = {};
1604
1604
  U[n] = S;
1605
1605
  }
1606
1606
  }
@@ -1720,7 +1720,7 @@ function no(e, t) {
1720
1720
  function so(e, t) {
1721
1721
  return t.map((o) => o.split(".")).reduce((o, n) => oo(o, n), e);
1722
1722
  }
1723
- function Pt(e, {
1723
+ function It(e, {
1724
1724
  storage: t,
1725
1725
  serializer: o,
1726
1726
  key: n,
@@ -1734,8 +1734,8 @@ function Pt(e, {
1734
1734
  S && (a == null || a(d));
1735
1735
  const w = t.getItem(n);
1736
1736
  if (w) {
1737
- const A = o.deserialize(w), U = r ? no(A, r) : A, j = l ? so(U, l) : U;
1738
- e.$patch(j);
1737
+ const N = o.deserialize(w), U = r ? no(N, r) : N, B = l ? so(U, l) : U;
1738
+ e.$patch(B);
1739
1739
  }
1740
1740
  S && (i == null || i(d));
1741
1741
  } catch (w) {
@@ -1769,14 +1769,14 @@ function ms(e, t, o) {
1769
1769
  const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(t);
1770
1770
  s.$hydrate = ({ runHooks: i = !0 } = {}) => {
1771
1771
  a.forEach((d) => {
1772
- Pt(s, d, e, i);
1772
+ It(s, d, e, i);
1773
1773
  });
1774
1774
  }, s.$persist = () => {
1775
1775
  a.forEach((i) => {
1776
1776
  Vt(s.$state, i);
1777
1777
  });
1778
1778
  }, a.forEach((i) => {
1779
- Pt(s, i, e), s.$subscribe(
1779
+ It(s, i, e), s.$subscribe(
1780
1780
  (d, S) => Vt(S, i),
1781
1781
  { detached: !0 }
1782
1782
  );
@@ -1820,7 +1820,7 @@ const ro = /* @__PURE__ */ as("console", {
1820
1820
  }), gs = {
1821
1821
  key: 0,
1822
1822
  class: "menu-wrapper"
1823
- }, bs = /* @__PURE__ */ ve({
1823
+ }, bs = /* @__PURE__ */ we({
1824
1824
  __name: "SideMenu",
1825
1825
  props: {
1826
1826
  menuCollapsed: { type: Boolean }
@@ -1828,7 +1828,7 @@ const ro = /* @__PURE__ */ as("console", {
1828
1828
  emits: ["update:menuCollapsed"],
1829
1829
  setup(e, { emit: t }) {
1830
1830
  ro(gt);
1831
- const o = He(), n = Fe(() => {
1831
+ const o = Je(), n = Ne(() => {
1832
1832
  var r;
1833
1833
  const s = o.meta.activeMenu;
1834
1834
  if (s === "{model}") {
@@ -1846,38 +1846,38 @@ const ro = /* @__PURE__ */ as("console", {
1846
1846
  router: ""
1847
1847
  }, {
1848
1848
  default: m(() => [
1849
- (p(!0), M(oe, null, de(k(Ct), (a) => (p(), V(Pn, {
1849
+ (p(!0), M(se, null, he(k(Ct), (a) => (p(), V(In, {
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
- ])) : z("", !0);
1856
+ ])) : J("", !0);
1857
1857
  };
1858
1858
  }
1859
- }), ao = /* @__PURE__ */ _e(bs, [["__scopeId", "data-v-c70ca2ba"]]), vs = { class: "container" }, ys = /* @__PURE__ */ ve({
1859
+ }), ao = /* @__PURE__ */ ve(bs, [["__scopeId", "data-v-c70ca2ba"]]), vs = { class: "container" }, ys = /* @__PURE__ */ we({
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 = He(), n = N(t.menu.collapsed), s = N(), r = e;
1866
+ const t = ro(gt), o = Je(), n = A(t.menu.collapsed), s = A(), r = e;
1867
1867
  return (l, a) => {
1868
1868
  const i = O("router-view"), d = O("el-scrollbar");
1869
- return p(), M(oe, null, [
1869
+ return p(), M(se, null, [
1870
1870
  k(o).query.embedded !== "true" ? (p(), V(Lt, {
1871
1871
  key: 0,
1872
1872
  title: r.title,
1873
1873
  helpDocUrl: r.helpDocUrl
1874
- }, null, 8, ["title", "helpDocUrl"])) : z("", !0),
1874
+ }, null, 8, ["title", "helpDocUrl"])) : J("", !0),
1875
1875
  v("div", vs, [
1876
1876
  k(o).query.embedded !== "true" ? (p(), V(ao, {
1877
1877
  key: 0,
1878
1878
  menuCollapsed: n.value,
1879
1879
  "onUpdate:menuCollapsed": a[0] || (a[0] = (S) => n.value = S)
1880
- }, null, 8, ["menuCollapsed"])) : z("", !0),
1880
+ }, null, 8, ["menuCollapsed"])) : J("", !0),
1881
1881
  _(d, { class: "main-scrollbar" }, {
1882
1882
  default: m(() => [
1883
1883
  v("main", {
@@ -1905,7 +1905,7 @@ function Ss(e, t) {
1905
1905
  ]));
1906
1906
  }
1907
1907
  const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" }, Es = { class: "content" };
1908
- function xs(e, t) {
1908
+ function $s(e, t) {
1909
1909
  const o = O("el-button");
1910
1910
  return p(), M("div", Os, [
1911
1911
  t[4] || (t[4] = v("img", { src: Cs }, null, -1)),
@@ -1913,7 +1913,7 @@ function xs(e, t) {
1913
1913
  t[3] || (t[3] = v("h1", null, "You have no permission to access the page.", -1)),
1914
1914
  _(o, { type: "primary" }, {
1915
1915
  default: m(() => t[1] || (t[1] = [
1916
- ee("Apply")
1916
+ Z("Apply")
1917
1917
  ])),
1918
1918
  _: 1
1919
1919
  }),
@@ -1921,33 +1921,33 @@ function xs(e, t) {
1921
1921
  onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
1922
1922
  }, {
1923
1923
  default: m(() => t[2] || (t[2] = [
1924
- ee("Go Back")
1924
+ Z("Go Back")
1925
1925
  ])),
1926
1926
  _: 1
1927
1927
  })
1928
1928
  ])
1929
1929
  ]);
1930
1930
  }
1931
- const $s = /* @__PURE__ */ _e(ks, [["render", xs], ["__scopeId", "data-v-0155b361"]]), Is = {};
1932
- function Ps(e, t) {
1931
+ const xs = /* @__PURE__ */ ve(ks, [["render", $s], ["__scopeId", "data-v-0155b361"]]), Ps = {};
1932
+ function Is(e, t) {
1933
1933
  const o = O("router-view");
1934
1934
  return p(), V(o);
1935
1935
  }
1936
- const Vs = /* @__PURE__ */ _e(Is, [["render", Ps]]), Ns = { class: "card-wrapper" }, As = ["onClick"], Ms = { class: "card-inner-wrapper" }, Us = { class: "card-title" }, Ts = { class: "icon" }, Ds = /* @__PURE__ */ ve({
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({
1937
1937
  __name: "TabCard",
1938
1938
  props: {
1939
1939
  cards: {},
1940
1940
  tableRef: {}
1941
1941
  },
1942
1942
  setup(e) {
1943
- const { t } = Je(), o = He(), n = rt(), s = e, r = N(s.cards[0].key);
1943
+ const { t } = We(), o = Je(), n = rt(), s = e, r = A(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
1946
  path: o.path,
1947
1947
  query: wt(Ye({}, o.query), { tab: a.key })
1948
1948
  }));
1949
1949
  }
1950
- return Nt(() => {
1950
+ return At(() => {
1951
1951
  let a;
1952
1952
  if (o.query.tab !== void 0) {
1953
1953
  for (let i of s.cards)
@@ -1956,10 +1956,10 @@ const Vs = /* @__PURE__ */ _e(Is, [["render", Ps]]), Ns = { class: "card-wrapper
1956
1956
  break;
1957
1957
  }
1958
1958
  }
1959
- je(() => {
1959
+ ze(() => {
1960
1960
  s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
1961
1961
  });
1962
- }), Ce(
1962
+ }), Ee(
1963
1963
  () => s.cards,
1964
1964
  (a) => {
1965
1965
  if (o.query.tab !== void 0) {
@@ -1974,8 +1974,8 @@ const Vs = /* @__PURE__ */ _e(Is, [["render", Ps]]), Ns = { class: "card-wrapper
1974
1974
  {
1975
1975
  deep: !0
1976
1976
  }
1977
- ), (a, i) => (p(), M("div", Ns, [
1978
- (p(!0), M(oe, null, de(s.cards, (d) => (p(), M("div", {
1977
+ ), (a, i) => (p(), M("div", As, [
1978
+ (p(!0), M(se, null, he(s.cards, (d) => (p(), M("div", {
1979
1979
  class: Mt(["card", { "card-selected": r.value === d.key }]),
1980
1980
  onClick: (S) => l(d)
1981
1981
  }, [
@@ -1985,40 +1985,40 @@ const Vs = /* @__PURE__ */ _e(Is, [["render", Ps]]), Ns = { class: "card-wrapper
1985
1985
  d.icon ? (p(), V(tt(d.icon), {
1986
1986
  key: 0,
1987
1987
  class: "svg-icon"
1988
- })) : z("", !0)
1988
+ })) : J("", !0)
1989
1989
  ]),
1990
1990
  v("span", {
1991
- style: De({ color: d.disabled ? "#aaa" : "black" })
1991
+ style: Re({ color: d.disabled ? "#aaa" : "black" })
1992
1992
  }, D(k(t)(d.label)), 5)
1993
1993
  ]),
1994
1994
  v("span", null, D(d.count), 1)
1995
1995
  ])
1996
- ], 10, As))), 256))
1996
+ ], 10, Ns))), 256))
1997
1997
  ]));
1998
1998
  }
1999
- }), lo = /* @__PURE__ */ _e(Ds, [["__scopeId", "data-v-047a86e6"]]);
2000
- function Ee(e, t, o) {
1999
+ }), lo = /* @__PURE__ */ ve(Ds, [["__scopeId", "data-v-047a86e6"]]);
2000
+ function Oe(e, t, o) {
2001
2001
  switch (t) {
2002
2002
  case "POST":
2003
- return he.post(e, o);
2003
+ return be.post(e, o);
2004
2004
  case "PUT":
2005
- return he.put(e, o);
2005
+ return be.put(e, o);
2006
2006
  case "DELETE":
2007
- return he.delete(e + "/" + o);
2007
+ return be.delete(e + "/" + o);
2008
2008
  default:
2009
- return he.get(e, { params: o });
2009
+ return be.get(e, { params: o });
2010
2010
  }
2011
2011
  }
2012
- const Re = (e) => {
2012
+ const Ge = (e) => {
2013
2013
  const t = Object.keys(e);
2014
2014
  let o = {};
2015
2015
  t.forEach((n) => {
2016
2016
  o[n] = void 0;
2017
2017
  }), Object.assign(e, o);
2018
- }, Rs = {
2018
+ }, Fs = {
2019
2019
  key: 1,
2020
2020
  class: "view-span"
2021
- }, Fs = /* @__PURE__ */ ve({
2021
+ }, Rs = /* @__PURE__ */ we({
2022
2022
  __name: "FormView",
2023
2023
  props: {
2024
2024
  id: {},
@@ -2031,10 +2031,10 @@ const Re = (e) => {
2031
2031
  },
2032
2032
  emits: ["update:id"],
2033
2033
  setup(e, { expose: t, emit: o }) {
2034
- const { t: n } = ot.global, s = e, r = ce({}), l = N(!1), a = N(), i = ce({}), d = N(!0), S = (C) => s.mode === "view" && (B(C, void 0) || B(C, "input") || B(C, "select") || B(C, "password") || B(C, "input-number")), w = Fe(() => s.model.fields ? s.model.fields.filter(
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
2035
  (C) => {
2036
- var I, u, c, y;
2037
- let g = C.visible !== !1 && ((I = C.formItemAttributes) == null ? void 0 : I.visible) !== !1;
2036
+ var x, u, c, y;
2037
+ let g = C.visible !== !1 && ((x = C.formItemAttributes) == null ? void 0 : x.visible) !== !1;
2038
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")
2039
2039
  return !1;
2040
2040
  let b = (y = C.formItemAttributes) == null ? void 0 : y.showCondition;
@@ -2051,72 +2051,87 @@ const Re = (e) => {
2051
2051
  return g;
2052
2052
  }
2053
2053
  ) : []);
2054
- Ce([() => s.id, () => s.sessionId], () => {
2054
+ Ee([() => 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 A() {
2059
+ function N() {
2060
2060
  console.log("FormView.initFormFields: begin");
2061
2061
  const C = s.model.fields;
2062
2062
  let g = {};
2063
2063
  C == null || C.forEach((b) => {
2064
- var I, u, c, y, $, F, H, G, h;
2065
- if (r[b.prop] = null, b.visible !== !1 && ((I = b.formItemAttributes) == null ? void 0 : I.visible) !== !1) {
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) {
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 Q = (y = b.formItemAttributes) == null ? void 0 : y.validationRule;
2068
- Q !== void 0 && (g[b.prop] = Q), Re(i), Object.assign(i, g);
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);
2069
2069
  }
2070
- const x = b.formItemAttributes, f = x == null ? void 0 : x.type, E = ($ = x == null ? void 0 : x.selectAttributes) == null ? void 0 : $.api, T = (F = x == null ? void 0 : x.selectAttributes) == null ? void 0 : F.valueMappingField, X = (H = x == null ? void 0 : x.selectAttributes) == null ? void 0 : H.labelMappingField;
2071
- if (f === "select" && E) {
2072
- let Q = E;
2073
- const se = (G = x == null ? void 0 : x.selectAttributes) == null ? void 0 : G.queryParamName, ie = (h = x == null ? void 0 : x.selectAttributes) == null ? void 0 : h.queryParamValueField;
2074
- se && (Q = `${Q}?${se}=${s.id}`), ie || Ee(Q, "GET", {}).then(({ data: re }) => {
2075
- var ae;
2076
- if ((ae = b.formItemAttributes) != null && ae.selectAttributes) {
2077
- let Z = [];
2078
- Array.isArray(re.data) ? Z = re.data : re.data.list && Array.isArray(re.data.list) && (Z = re.data.list), b.formItemAttributes.selectAttributes.options = Z.map((W) => ({
2079
- value: T ? W[T] : W.value,
2080
- label: X ? W[X] : W.label
2081
- }));
2082
- }
2083
- });
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")}/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
2082
+ }));
2083
+ }
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
2095
+ }));
2096
+ }
2097
+ });
2098
+ }
2084
2099
  }
2085
2100
  }
2086
2101
  });
2087
2102
  }
2088
2103
  function U() {
2089
2104
  var C;
2090
- console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), R(), d.value = (C = s.model.useI18n) != null ? C : !0, A(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ee(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
2091
- Re(r), Object.assign(r, g.data), l.value = !1;
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;
2092
2107
  }));
2093
2108
  }
2094
- function j() {
2109
+ function B() {
2095
2110
  return new Promise((C, g) => {
2096
- var I, u, c, y;
2097
- ((u = (I = s.model.formConfig) == null ? void 0 : I.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));
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));
2098
2113
  let b = s.mode === "create" ? "POST" : "PUT";
2099
- s.model.api && Ee(s.model.api, b, r).then(({ data: $ }) => {
2100
- var F, H, G, h;
2101
- $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((H = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : H.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 && 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());
2102
2117
  });
2103
2118
  });
2104
2119
  }
2105
- function R() {
2120
+ function F() {
2106
2121
  var C;
2107
2122
  console.log("FormView.reset: begin"), (C = a.value) == null || C.resetFields();
2108
2123
  }
2109
- function L(C) {
2124
+ function j(C) {
2110
2125
  return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
2111
2126
  }
2112
- function P(C) {
2113
- var g, b, I, u;
2127
+ function I(C) {
2128
+ var g, b, x, u;
2114
2129
  if (C) {
2115
- if (B(C, "select")) {
2130
+ if (Y(C, "select")) {
2116
2131
  const c = (b = (g = C.tableColumnAttributes) == null ? void 0 : g.functions) == null ? void 0 : b.transformValue;
2117
2132
  if (c)
2118
2133
  return c(r[C.prop]);
2119
- const y = (u = (I = C.formItemAttributes) == null ? void 0 : I.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2134
+ const y = (u = (x = C.formItemAttributes) == null ? void 0 : x.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2120
2135
  if (y)
2121
2136
  return r[y];
2122
2137
  }
@@ -2127,9 +2142,9 @@ const Re = (e) => {
2127
2142
  var g;
2128
2143
  return ((g = C.formItemAttributes) == null ? void 0 : g.updatable) === !1 && s.mode === "update";
2129
2144
  }
2130
- function q(C, g) {
2131
- var I, u;
2132
- const b = (u = (I = g.formItemAttributes) == null ? void 0 : I.type) != null ? u : "input";
2145
+ function W(C, g) {
2146
+ var x, u;
2147
+ const b = (u = (x = g.formItemAttributes) == null ? void 0 : x.type) != null ? u : "input";
2133
2148
  switch (C) {
2134
2149
  case "input":
2135
2150
  return s.mode === "view" ? !1 : b === "input" || b === "password";
@@ -2139,25 +2154,25 @@ const Re = (e) => {
2139
2154
  return console.log("Error: unrecognized form component type: ", C), !0;
2140
2155
  }
2141
2156
  }
2142
- function B(C, g) {
2157
+ function Y(C, g) {
2143
2158
  var b;
2144
2159
  return ((b = C.formItemAttributes) == null ? void 0 : b.type) === g;
2145
2160
  }
2146
- function ne(C) {
2161
+ function re(C) {
2147
2162
  var g;
2148
2163
  for (let b of s.model.fields) {
2149
- const I = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes;
2150
- if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !I || !I.queryParamValueField) && I.queryParamValueField === C.prop) {
2151
- const u = I.api;
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;
2152
2167
  if (u) {
2153
2168
  let c = u;
2154
- const y = I.queryParamName;
2155
- y && (c = `${c}?${y}=${r[I.queryParamValueField]}`), Ee(c, "GET", {}).then(({ data: $ }) => {
2156
- if (I) {
2157
- let F = [];
2158
- Array.isArray($.data) ? F = $.data : $.data.list && Array.isArray($.data.list) && (F = $.data.list), I.options = F.map((H) => ({
2159
- value: I.valueMappingField ? H[I.valueMappingField] : H.value,
2160
- label: I.labelMappingField ? H[I.labelMappingField] : H.label
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
2161
2176
  }));
2162
2177
  }
2163
2178
  });
@@ -2167,12 +2182,12 @@ const Re = (e) => {
2167
2182
  }
2168
2183
  return t({
2169
2184
  refresh: U,
2170
- reset: R,
2171
- submit: j,
2185
+ reset: F,
2186
+ submit: B,
2172
2187
  formData: r
2173
2188
  }), (C, g) => {
2174
- const b = O("el-input"), I = O("el-switch"), u = O("el-date-picker"), c = O("el-option"), y = O("el-select"), $ = O("el-input-number"), F = O("el-form-item"), H = O("el-form"), G = Ut("loading");
2175
- return Tt((p(), V(H, {
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, {
2176
2191
  ref_key: "formRef",
2177
2192
  ref: a,
2178
2193
  model: r,
@@ -2184,66 +2199,66 @@ const Re = (e) => {
2184
2199
  inline: !s.disableInline
2185
2200
  }, {
2186
2201
  default: m(() => [
2187
- (p(!0), M(oe, null, de(w.value, (h) => (p(), V(F, {
2202
+ (p(!0), M(se, null, he(w.value, (h) => (p(), V(R, {
2188
2203
  class: "form-item",
2189
- style: De({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2204
+ style: Re({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2190
2205
  prop: h.prop,
2191
- label: L(h)
2206
+ label: j(h)
2192
2207
  }, {
2193
2208
  default: m(() => {
2194
- var x, f, E, T, X, Q, se, ie, re, ae, Z, W, ue, pe, ke, We;
2209
+ var z, f, E, T, P, X, ce, ue, fe, ae, ee, H, te, ne, le, me;
2195
2210
  return [
2196
- q("input", h) ? (p(), V(b, {
2211
+ W("input", h) ? (p(), V(b, {
2197
2212
  key: 0,
2198
- type: B(h, "password") ? "password" : "text",
2213
+ type: Y(h, "password") ? "password" : "text",
2199
2214
  modelValue: r[h.prop],
2200
- "onUpdate:modelValue": (Y) => r[h.prop] = Y,
2201
- placeholder: (x = h.formItemAttributes) == null ? void 0 : x.placeholder,
2215
+ "onUpdate:modelValue": (q) => r[h.prop] = q,
2216
+ placeholder: (z = h.formItemAttributes) == null ? void 0 : z.placeholder,
2202
2217
  disabled: K(h)
2203
- }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : z("", !0),
2204
- S(h) ? (p(), M("span", Rs, D(P(h)), 1)) : z("", !0),
2205
- B(h, "switch") ? (p(), V(I, {
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, {
2206
2221
  key: 2,
2207
2222
  modelValue: r[h.prop],
2208
- "onUpdate:modelValue": (Y) => r[h.prop] = Y,
2223
+ "onUpdate:modelValue": (q) => r[h.prop] = q,
2209
2224
  disabled: C.mode === "view"
2210
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : z("", !0),
2211
- B(h, "datepicker") ? (p(), V(u, {
2225
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
2226
+ Y(h, "datepicker") ? (p(), V(u, {
2212
2227
  key: 3,
2213
2228
  type: "date",
2214
2229
  modelValue: r[h.prop],
2215
- "onUpdate:modelValue": (Y) => r[h.prop] = Y
2216
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : z("", !0),
2217
- B(h, "select") && C.mode !== "view" ? (p(), V(y, {
2230
+ "onUpdate:modelValue": (q) => r[h.prop] = q
2231
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : J("", !0),
2232
+ Y(h, "select") && C.mode !== "view" ? (p(), V(y, {
2218
2233
  key: 4,
2219
2234
  filterable: (E = (f = h.formItemAttributes) == null ? void 0 : f.selectAttributes) == null ? void 0 : E.allowCreate,
2220
- "allow-create": (X = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : X.allowCreate,
2221
- "default-first-option": (se = (Q = h.formItemAttributes) == null ? void 0 : Q.selectAttributes) == null ? void 0 : se.allowCreate,
2235
+ "allow-create": (P = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : P.allowCreate,
2236
+ "default-first-option": (ce = (X = h.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : ce.allowCreate,
2222
2237
  modelValue: r[h.prop],
2223
- "onUpdate:modelValue": (Y) => r[h.prop] = Y,
2238
+ "onUpdate:modelValue": (q) => r[h.prop] = q,
2224
2239
  disabled: K(h),
2225
- onChange: (Y) => ne(h)
2240
+ onChange: (q) => re(h)
2226
2241
  }, {
2227
2242
  default: m(() => {
2228
- var Y, J;
2243
+ var q, L;
2229
2244
  return [
2230
- (p(!0), M(oe, null, de((J = (Y = h.formItemAttributes) == null ? void 0 : Y.selectAttributes) == null ? void 0 : J.options, (ge) => (p(), V(c, {
2231
- value: ge.value,
2232
- label: ge.label
2245
+ (p(!0), M(se, null, he((L = (q = h.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : L.options, (de) => (p(), V(c, {
2246
+ value: de.value,
2247
+ label: de.label
2233
2248
  }, null, 8, ["value", "label"]))), 256))
2234
2249
  ];
2235
2250
  }),
2236
2251
  _: 2
2237
- }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : z("", !0),
2238
- B(h, "input-number") && C.mode !== "view" ? (p(), V($, {
2252
+ }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : J("", !0),
2253
+ Y(h, "input-number") && C.mode !== "view" ? (p(), V($, {
2239
2254
  key: 5,
2240
2255
  modelValue: r[h.prop],
2241
- "onUpdate:modelValue": (Y) => r[h.prop] = Y,
2242
- min: (ae = (re = (ie = h.formItemAttributes) == null ? void 0 : ie.inputNumber) == null ? void 0 : re.min) != null ? ae : Number.NEGATIVE_INFINITY,
2243
- max: (ue = (W = (Z = h.formItemAttributes) == null ? void 0 : Z.inputNumber) == null ? void 0 : W.max) != null ? ue : Number.POSITIVE_INFINITY,
2244
- step: (We = (ke = (pe = h.formItemAttributes) == null ? void 0 : pe.inputNumber) == null ? void 0 : ke.step) != null ? We : 1,
2256
+ "onUpdate:modelValue": (q) => r[h.prop] = q,
2257
+ min: (ae = (fe = (ue = h.formItemAttributes) == null ? void 0 : ue.inputNumber) == null ? void 0 : fe.min) != null ? ae : Number.NEGATIVE_INFINITY,
2258
+ max: (te = (H = (ee = h.formItemAttributes) == null ? void 0 : ee.inputNumber) == null ? void 0 : H.max) != null ? te : Number.POSITIVE_INFINITY,
2259
+ step: (me = (le = (ne = h.formItemAttributes) == null ? void 0 : ne.inputNumber) == null ? void 0 : le.step) != null ? me : 1,
2245
2260
  "value-on-clear": -10
2246
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : z("", !0)
2261
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
2247
2262
  ];
2248
2263
  }),
2249
2264
  _: 2
@@ -2255,10 +2270,10 @@ const Re = (e) => {
2255
2270
  ]);
2256
2271
  };
2257
2272
  }
2258
- }), io = /* @__PURE__ */ _e(Fs, [["__scopeId", "data-v-11ab29b9"]]), Gs = { class: "console-dialog__body" }, Ls = {
2273
+ }), io = /* @__PURE__ */ ve(Rs, [["__scopeId", "data-v-15f97c59"]]), Gs = { class: "console-dialog__body" }, Ls = {
2259
2274
  key: 0,
2260
2275
  class: "process-view"
2261
- }, js = { class: "operation-button-wrapper" }, co = /* @__PURE__ */ ve({
2276
+ }, js = { class: "operation-button-wrapper" }, co = /* @__PURE__ */ we({
2262
2277
  __name: "FormDialog",
2263
2278
  props: {
2264
2279
  id: {},
@@ -2270,8 +2285,8 @@ const Re = (e) => {
2270
2285
  },
2271
2286
  emits: ["update:visible", "update:id"],
2272
2287
  setup(e, { expose: t, emit: o }) {
2273
- const { t: n } = Je(), s = e, r = N(0), l = o, a = N();
2274
- Ce(() => s.visible, () => {
2288
+ const { t: n } = We(), s = e, r = A(0), l = o, a = A();
2289
+ Ee(() => s.visible, () => {
2275
2290
  s.visible && r.value++;
2276
2291
  });
2277
2292
  function i() {
@@ -2286,9 +2301,9 @@ const Re = (e) => {
2286
2301
  return t({
2287
2302
  close: d,
2288
2303
  refresh: i
2289
- }), (w, A) => {
2290
- const U = O("el-step"), j = O("el-steps"), R = O("el-button"), L = O("el-dialog");
2291
- return p(), V(L, {
2304
+ }), (w, N) => {
2305
+ const U = O("el-step"), B = O("el-steps"), F = O("el-button"), j = O("el-dialog");
2306
+ return p(), V(j, {
2292
2307
  class: "console-dialog",
2293
2308
  title: "Edit",
2294
2309
  "align-center": "",
@@ -2297,35 +2312,35 @@ const Re = (e) => {
2297
2312
  onClose: d
2298
2313
  }, {
2299
2314
  footer: m(() => {
2300
- var P;
2315
+ var I;
2301
2316
  return [
2302
2317
  v("div", {
2303
2318
  class: "dialog-footer",
2304
- style: De({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2319
+ style: Re({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2305
2320
  }, [
2306
2321
  v("div", js, [
2307
- (p(!0), M(oe, null, de((P = s.model.formConfig) == null ? void 0 : P.dialogButtons, (K) => (p(), V(R, {
2308
- onClick: (q) => K.function(a.value.formData)
2322
+ (p(!0), M(se, null, he((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (K) => (p(), V(F, {
2323
+ onClick: (W) => K.function(a.value.formData)
2309
2324
  }, {
2310
2325
  default: m(() => [
2311
- ee(D(k(n)(K.label)), 1)
2326
+ Z(D(k(n)(K.label)), 1)
2312
2327
  ]),
2313
2328
  _: 2
2314
2329
  }, 1032, ["onClick"]))), 256))
2315
2330
  ]),
2316
2331
  v("div", null, [
2317
- _(R, { onClick: d }, {
2332
+ _(F, { onClick: d }, {
2318
2333
  default: m(() => [
2319
- ee(D(k(n)("common.basic.cancel")), 1)
2334
+ Z(D(k(n)("common.basic.cancel")), 1)
2320
2335
  ]),
2321
2336
  _: 1
2322
2337
  }),
2323
- _(R, {
2338
+ _(F, {
2324
2339
  type: "primary",
2325
2340
  onClick: S
2326
2341
  }, {
2327
2342
  default: m(() => [
2328
- ee(D(k(n)("common.basic.save")), 1)
2343
+ Z(D(k(n)("common.basic.save")), 1)
2329
2344
  ]),
2330
2345
  _: 1
2331
2346
  })
@@ -2337,7 +2352,7 @@ const Re = (e) => {
2337
2352
  v("div", Gs, [
2338
2353
  _(io, {
2339
2354
  class: "form-view",
2340
- style: De({ width: w.showProcess ? "calc(100% - 280px)" : "100%" }),
2355
+ style: Re({ width: w.showProcess ? "calc(100% - 280px)" : "100%" }),
2341
2356
  ref_key: "formViewRef",
2342
2357
  ref: a,
2343
2358
  id: s.id,
@@ -2349,8 +2364,8 @@ const Re = (e) => {
2349
2364
  disableInline: s.showProcess
2350
2365
  }, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
2351
2366
  w.showProcess ? (p(), M("div", Ls, [
2352
- A[0] || (A[0] = v("h1", null, "流程动态", -1)),
2353
- _(j, {
2367
+ N[0] || (N[0] = v("h1", null, "流程动态", -1)),
2368
+ _(B, {
2354
2369
  style: { height: "90%" },
2355
2370
  direction: "vertical",
2356
2371
  active: 1
@@ -2361,52 +2376,52 @@ const Re = (e) => {
2361
2376
  ]),
2362
2377
  _: 1
2363
2378
  })
2364
- ])) : z("", !0)
2379
+ ])) : J("", !0)
2365
2380
  ])
2366
2381
  ]),
2367
2382
  _: 1
2368
2383
  }, 8, ["model-value"]);
2369
2384
  };
2370
2385
  }
2371
- }), zs = { class: "toolbar" }, qs = { class: "tool-buttons" }, Bs = { class: "tool-buttons" }, Hs = { key: 2 }, Js = /* @__PURE__ */ ve({
2386
+ }), zs = { class: "toolbar" }, qs = { class: "tool-buttons" }, Bs = { class: "tool-buttons" }, Hs = { key: 2 }, Js = /* @__PURE__ */ we({
2372
2387
  __name: "TableView",
2373
2388
  props: {
2374
2389
  model: {}
2375
2390
  },
2376
2391
  setup(e, { expose: t }) {
2377
- const { t: o } = ot.global, n = e, s = ce([]), r = ce({
2392
+ const { t: o } = ot.global, n = e, s = pe([]), r = pe({
2378
2393
  showPane: !0
2379
- }), l = N(""), a = N(!0), i = N(!1), d = rt(), S = N(""), w = ce([]), A = ce([]), U = N(), j = N([]), R = N("create"), L = N(!0), P = N(!1), K = N(""), q = ce({
2394
+ }), 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({
2380
2395
  pageSize: 10,
2381
2396
  pageNo: 1,
2382
2397
  totalElements: 0
2383
- }), B = Fe(() => s.filter(
2398
+ }), Y = Ne(() => s.filter(
2384
2399
  (f) => {
2385
2400
  var E, T;
2386
2401
  return ((E = f.formItemAttributes) == null ? void 0 : E.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
2387
2402
  }
2388
2403
  ));
2389
- function ne(f, E) {
2390
- var se, ie, re, ae;
2404
+ function re(f, E) {
2405
+ var ce, ue, fe, ae;
2391
2406
  let T = E.row[f.prop];
2392
- const X = (ie = (se = f.tableColumnAttributes) == null ? void 0 : se.functions) == null ? void 0 : ie.transformValue, Q = (re = f.tableColumnAttributes) == null ? void 0 : re.transformValueMappings;
2393
- if (X)
2394
- T = X(T);
2395
- else if (Q && Q.length > 0) {
2396
- for (let Z of Q)
2397
- if (T === Z.value) {
2398
- T = o(Z.label);
2407
+ 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;
2408
+ if (P)
2409
+ T = P(T);
2410
+ else if (X && X.length > 0) {
2411
+ for (let ee of X)
2412
+ if (T === ee.value) {
2413
+ T = o(ee.label);
2399
2414
  break;
2400
2415
  }
2401
2416
  } else if (((ae = f.formItemAttributes) == null ? void 0 : ae.type) === "select") {
2402
- const Z = f.formItemAttributes.selectAttributes;
2403
- if (Z) {
2404
- if (Z.viewModeLabelField)
2405
- T = E.row[Z.viewModeLabelField];
2406
- else if (Z.options && Z.options.length > 0) {
2407
- for (let W of Z.options)
2408
- if (W.value === E.row[f.prop]) {
2409
- T = W.label;
2417
+ const ee = f.formItemAttributes.selectAttributes;
2418
+ if (ee) {
2419
+ if (ee.viewModeLabelField)
2420
+ T = E.row[ee.viewModeLabelField];
2421
+ else if (ee.options && ee.options.length > 0) {
2422
+ for (let H of ee.options)
2423
+ if (H.value === E.row[f.prop]) {
2424
+ T = H.label;
2410
2425
  break;
2411
2426
  }
2412
2427
  }
@@ -2415,29 +2430,29 @@ const Re = (e) => {
2415
2430
  return T;
2416
2431
  }
2417
2432
  function C(f, E) {
2418
- var T, X;
2419
- return f.label ? o(f.label) : (X = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : X.call(T, E.$index, E.row);
2433
+ var T, P;
2434
+ 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);
2420
2435
  }
2421
2436
  function g(f) {
2422
- Re(n.model), Object.assign(n.model, f);
2437
+ Ge(n.model), Object.assign(n.model, f);
2423
2438
  }
2424
2439
  function b() {
2425
- var E, T, X;
2426
- if (L.value = !0, !n.model || !n.model.api)
2440
+ var E, T, P;
2441
+ if (j.value = !0, !n.model || !n.model.api)
2427
2442
  return;
2428
- Re(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 = (X = n.model.useI18n) != null ? X : !0;
2443
+ 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;
2429
2444
  let f = Ye({}, r.queryParams);
2430
- f.pageSize = q.pageSize, f.pageNo = q.pageNo, f.search = S.value, Ee(n.model.api, "GET", f).then(({ data: Q }) => {
2431
- const { list: se, totalCount: ie } = Q.data;
2432
- w.splice(0, w.length, ...se), q.totalElements = ie, L.value = !1;
2445
+ f.pageSize = W.pageSize, f.pageNo = W.pageNo, f.search = S.value, Oe(n.model.api, "GET", f).then(({ data: X }) => {
2446
+ const { list: ce, totalCount: ue } = X.data;
2447
+ w.splice(0, w.length, ...ce), W.totalElements = ue, j.value = !1;
2433
2448
  });
2434
2449
  }
2435
- function I() {
2450
+ function x() {
2436
2451
  var f, E;
2437
- r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (E = r.functions) == null || E.create() : (R.value = "create", K.value = "", i.value = !0);
2452
+ 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);
2438
2453
  }
2439
2454
  function u(f, E) {
2440
- n.model.api && Ee(n.model.api, "DELETE", E.id).then(({ data: T }) => {
2455
+ n.model.api && Oe(n.model.api, "DELETE", E.id).then(({ data: T }) => {
2441
2456
  T.code === 0 && (i.value = !1, b());
2442
2457
  });
2443
2458
  }
@@ -2453,11 +2468,11 @@ const Re = (e) => {
2453
2468
  ).then(() => {
2454
2469
  var f, E;
2455
2470
  if (((f = r.functions) == null ? void 0 : f.batchDelete) !== void 0)
2456
- (E = r.functions) == null || E.batchDelete(j.value);
2471
+ (E = r.functions) == null || E.batchDelete(B.value);
2457
2472
  else {
2458
- const T = j.value.map((X) => X.id);
2459
- he.delete(`${n.model.api}/${T.join(",")}`).then(({ data: X }) => {
2460
- X.code === 0 && (i.value = !1, b());
2473
+ const T = B.value.map((P) => P.id);
2474
+ be.delete(`${n.model.api}/${T.join(",")}`).then(({ data: P }) => {
2475
+ P.code === 0 && (i.value = !1, b());
2461
2476
  });
2462
2477
  }
2463
2478
  U.value.clearSelection();
@@ -2466,20 +2481,20 @@ const Re = (e) => {
2466
2481
  });
2467
2482
  }
2468
2483
  function y(f) {
2469
- q.pageSize = f, b();
2484
+ W.pageSize = f, b();
2470
2485
  }
2471
2486
  function $(f) {
2472
- q.pageNo = f, b();
2487
+ W.pageNo = f, b();
2473
2488
  }
2474
- function F(f, E) {
2489
+ function R(f, E) {
2475
2490
  r.editPageRoutePath !== void 0 ? d.push({
2476
2491
  path: r.editPageRoutePath,
2477
2492
  query: {
2478
2493
  id: E.id
2479
2494
  }
2480
- }) : (K.value = E.id, R.value = "update", i.value = !0);
2495
+ }) : (K.value = E.id, F.value = "update", i.value = !0);
2481
2496
  }
2482
- function H() {
2497
+ function Q() {
2483
2498
  let f = window.location.origin + n.model.api + "/export";
2484
2499
  const E = r.queryParams;
2485
2500
  E !== void 0 && Object.keys(E).length > 0 && (f += "?", Object.entries(r.queryParams).map((T) => {
@@ -2487,33 +2502,33 @@ const Re = (e) => {
2487
2502
  })), window.open(f);
2488
2503
  }
2489
2504
  function G(f) {
2490
- j.value = f;
2505
+ B.value = f;
2491
2506
  }
2492
2507
  function h(f) {
2493
2508
  return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
2494
2509
  }
2495
- function x(f) {
2496
- f ? (P.value = !0, A.splice(0, A.length, ...w), w.splice(0, w.length, ...j.value)) : (P.value = !1, w.splice(0, w.length, ...A));
2510
+ function z(f) {
2511
+ 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));
2497
2512
  }
2498
- return Ce(() => n.model, () => {
2513
+ return Ee(() => n.model, () => {
2499
2514
  b();
2500
2515
  }, {
2501
2516
  deep: !0,
2502
2517
  immediate: !0
2503
2518
  }), t({
2504
- multipleSelection: j,
2519
+ multipleSelection: B,
2505
2520
  refresh: b,
2506
2521
  updateConfigAndRefresh: g
2507
2522
  }), (f, E) => {
2508
- const T = O("el-checkbox"), X = O("el-badge"), Q = O("el-button"), se = O("el-icon"), ie = O("el-tooltip"), re = O("el-input"), ae = O("el-table-column"), Z = O("router-link"), W = O("el-tag"), ue = O("el-popconfirm"), pe = O("el-table"), ke = O("el-pagination"), We = Ut("loading");
2523
+ 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");
2509
2524
  return p(), M("div", {
2510
2525
  class: Mt({ "table-view-wrapper": r.showPane })
2511
2526
  }, [
2512
2527
  v("div", zs, [
2513
2528
  v("div", qs, [
2514
- r.selectMode ? (p(), V(X, {
2529
+ r.selectMode ? (p(), V(P, {
2515
2530
  key: 0,
2516
- value: j.value.length,
2531
+ value: B.value.length,
2517
2532
  type: "primary",
2518
2533
  class: "selected-badge"
2519
2534
  }, {
@@ -2522,51 +2537,51 @@ const Re = (e) => {
2522
2537
  class: "selected-checkbox",
2523
2538
  border: !0,
2524
2539
  label: k(o)("common.table.viewSelected"),
2525
- onChange: x
2540
+ onChange: z
2526
2541
  }, null, 8, ["label"])
2527
2542
  ]),
2528
2543
  _: 1
2529
- }, 8, ["value"])) : z("", !0),
2530
- !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(Q, {
2544
+ }, 8, ["value"])) : J("", !0),
2545
+ !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(X, {
2531
2546
  key: 1,
2532
2547
  type: "primary",
2533
- onClick: I
2548
+ onClick: x
2534
2549
  }, {
2535
2550
  default: m(() => {
2536
- var Y, J;
2551
+ var q, L;
2537
2552
  return [
2538
- ee(D(((Y = r.labels) == null ? void 0 : Y.create) != null ? k(o)((J = r.labels) == null ? void 0 : J.create) : k(o)("common.table.create")), 1)
2553
+ 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)
2539
2554
  ];
2540
2555
  }),
2541
2556
  _: 1
2542
- })) : z("", !0),
2543
- !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(Q, {
2557
+ })) : J("", !0),
2558
+ !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(X, {
2544
2559
  key: 2,
2545
- disabled: j.value.length == 0,
2560
+ disabled: B.value.length == 0,
2546
2561
  type: "danger",
2547
2562
  plain: "",
2548
2563
  onClick: c
2549
2564
  }, {
2550
2565
  default: m(() => {
2551
- var Y, J;
2566
+ var q, L;
2552
2567
  return [
2553
- ee(D(((Y = r.labels) == null ? void 0 : Y.delete) != null ? k(o)((J = r.labels) == null ? void 0 : J.delete) : k(o)("common.table.delete")), 1)
2568
+ 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)
2554
2569
  ];
2555
2570
  }),
2556
2571
  _: 1
2557
- }, 8, ["disabled"])) : z("", !0),
2558
- _(Q, {
2559
- icon: k(Rt),
2572
+ }, 8, ["disabled"])) : J("", !0),
2573
+ _(X, {
2574
+ icon: k(Ft),
2560
2575
  onClick: b
2561
2576
  }, null, 8, ["icon"]),
2562
- r.tooltip ? (p(), V(ie, {
2577
+ r.tooltip ? (p(), V(ue, {
2563
2578
  key: 3,
2564
2579
  effect: "dark",
2565
2580
  content: k(o)(r.tooltip),
2566
2581
  placement: "right"
2567
2582
  }, {
2568
2583
  default: m(() => [
2569
- _(se, { style: { color: "#8ba74f" } }, {
2584
+ _(ce, { style: { color: "#8ba74f" } }, {
2570
2585
  default: m(() => [
2571
2586
  _(k(Eo))
2572
2587
  ]),
@@ -2574,31 +2589,31 @@ const Re = (e) => {
2574
2589
  })
2575
2590
  ]),
2576
2591
  _: 1
2577
- }, 8, ["content"])) : z("", !0)
2592
+ }, 8, ["content"])) : J("", !0)
2578
2593
  ]),
2579
2594
  v("div", Bs, [
2580
- r.export ? (p(), V(Q, {
2595
+ r.export ? (p(), V(X, {
2581
2596
  key: 0,
2582
2597
  class: "button-export",
2583
- onClick: H
2598
+ onClick: Q
2584
2599
  }, {
2585
2600
  default: m(() => [
2586
- _(se, null, {
2601
+ _(ce, null, {
2587
2602
  default: m(() => [
2588
- _(k(xo))
2603
+ _(k($o))
2589
2604
  ]),
2590
2605
  _: 1
2591
2606
  })
2592
2607
  ]),
2593
2608
  _: 1
2594
- })) : z("", !0),
2595
- _(re, {
2609
+ })) : J("", !0),
2610
+ _(fe, {
2596
2611
  placeholder: `${k(o)("common.table.search")}...`,
2597
2612
  modelValue: S.value,
2598
- "onUpdate:modelValue": E[0] || (E[0] = (Y) => S.value = Y)
2613
+ "onUpdate:modelValue": E[0] || (E[0] = (q) => S.value = q)
2599
2614
  }, {
2600
2615
  append: m(() => [
2601
- _(Q, {
2616
+ _(X, {
2602
2617
  style: { "margin-left": "-20px" },
2603
2618
  icon: k(Dt),
2604
2619
  onClick: b
@@ -2608,7 +2623,7 @@ const Re = (e) => {
2608
2623
  }, 8, ["placeholder", "modelValue"])
2609
2624
  ])
2610
2625
  ]),
2611
- Tt((p(), V(pe, {
2626
+ Tt((p(), V(ne, {
2612
2627
  border: !0,
2613
2628
  ref_key: "tableRef",
2614
2629
  ref: U,
@@ -2617,198 +2632,198 @@ const Re = (e) => {
2617
2632
  class: "table"
2618
2633
  }, {
2619
2634
  default: m(() => {
2620
- var Y;
2635
+ var q;
2621
2636
  return [
2622
- r.readOnly ? z("", !0) : (p(), V(ae, {
2637
+ r.readOnly ? J("", !0) : (p(), V(ae, {
2623
2638
  key: 0,
2624
2639
  type: "selection",
2625
2640
  width: "50"
2626
2641
  })),
2627
- (p(!0), M(oe, null, de(B.value, (J) => {
2628
- var ge;
2642
+ (p(!0), M(se, null, he(Y.value, (L) => {
2643
+ var de;
2629
2644
  return p(), V(ae, {
2630
- prop: J.prop,
2631
- label: h(J),
2632
- width: (ge = J.tableColumnAttributes) == null ? void 0 : ge.width,
2645
+ prop: L.prop,
2646
+ label: h(L),
2647
+ width: (de = L.tableColumnAttributes) == null ? void 0 : de.width,
2633
2648
  "show-overflow-tooltip": ""
2634
2649
  }, {
2635
2650
  default: m((xe) => {
2636
- var $e, Ge, bt;
2651
+ var Pe, Le, bt;
2637
2652
  return [
2638
- ($e = J.tableColumnAttributes) != null && $e.link ? (p(), V(Z, {
2653
+ (Pe = L.tableColumnAttributes) != null && Pe.link ? (p(), V(ee, {
2639
2654
  key: 0,
2640
2655
  class: "router-link",
2641
2656
  to: `/${l.value}/detail?id=${xe.row.id}`
2642
2657
  }, {
2643
2658
  default: m(() => [
2644
- v("span", null, D(ne(J, xe)), 1)
2659
+ v("span", null, D(re(L, xe)), 1)
2645
2660
  ]),
2646
2661
  _: 2
2647
- }, 1032, ["to"])) : (Ge = J.tableColumnAttributes) != null && Ge.routerLink ? (p(), V(Z, {
2662
+ }, 1032, ["to"])) : (Le = L.tableColumnAttributes) != null && Le.routerLink ? (p(), V(ee, {
2648
2663
  key: 1,
2649
2664
  class: "router-link",
2650
- to: J.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
2665
+ to: L.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
2651
2666
  }, {
2652
2667
  default: m(() => [
2653
- v("span", null, D(ne(J, xe)), 1)
2668
+ v("span", null, D(re(L, xe)), 1)
2654
2669
  ]),
2655
2670
  _: 2
2656
- }, 1032, ["to"])) : (p(), M("span", Hs, D(ne(J, xe)), 1)),
2657
- ((bt = J.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), V(W, { key: 3 }, {
2671
+ }, 1032, ["to"])) : (p(), M("span", Hs, D(re(L, xe)), 1)),
2672
+ ((bt = L.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), V(H, { key: 3 }, {
2658
2673
  default: m(() => [
2659
- ee(D(xe.row[J.prop]), 1)
2674
+ Z(D(xe.row[L.prop]), 1)
2660
2675
  ]),
2661
2676
  _: 2
2662
- }, 1024)) : z("", !0)
2677
+ }, 1024)) : J("", !0)
2663
2678
  ];
2664
2679
  }),
2665
2680
  _: 2
2666
2681
  }, 1032, ["prop", "label", "width"]);
2667
2682
  }), 256)),
2668
- r.operations === void 0 && !((Y = r.selectMode) != null && Y) && !r.readOnly ? (p(), V(ae, {
2683
+ r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(), V(ae, {
2669
2684
  key: 1,
2670
2685
  label: k(o)("common.table.operation"),
2671
2686
  width: "120"
2672
2687
  }, {
2673
- default: m((J) => [
2674
- r.updatable !== !1 ? (p(), V(Q, {
2688
+ default: m((L) => [
2689
+ r.updatable !== !1 ? (p(), V(X, {
2675
2690
  key: 0,
2676
2691
  link: "",
2677
2692
  type: "primary",
2678
2693
  class: "operation-button",
2679
- onClick: (ge) => F(J.$index, J.row)
2694
+ onClick: (de) => R(L.$index, L.row)
2680
2695
  }, {
2681
2696
  default: m(() => [
2682
- ee(D(k(o)("common.table.edit")), 1)
2697
+ Z(D(k(o)("common.table.edit")), 1)
2683
2698
  ]),
2684
2699
  _: 2
2685
- }, 1032, ["onClick"])) : z("", !0),
2686
- _(ue, {
2700
+ }, 1032, ["onClick"])) : J("", !0),
2701
+ _(te, {
2687
2702
  title: "Are you sure to delete this?",
2688
- onConfirm: (ge) => u(J.$index, J.row)
2703
+ onConfirm: (de) => u(L.$index, L.row)
2689
2704
  }, {
2690
2705
  reference: m(() => [
2691
- r.deletable !== !1 ? (p(), V(Q, {
2706
+ r.deletable !== !1 ? (p(), V(X, {
2692
2707
  key: 0,
2693
2708
  link: "",
2694
2709
  type: "primary",
2695
2710
  class: "operation-button"
2696
2711
  }, {
2697
2712
  default: m(() => [
2698
- ee(D(k(o)("common.table.delete")), 1)
2713
+ Z(D(k(o)("common.table.delete")), 1)
2699
2714
  ]),
2700
2715
  _: 1
2701
- })) : z("", !0)
2716
+ })) : J("", !0)
2702
2717
  ]),
2703
2718
  _: 2
2704
2719
  }, 1032, ["onConfirm"])
2705
2720
  ]),
2706
2721
  _: 1
2707
- }, 8, ["label"])) : z("", !0),
2722
+ }, 8, ["label"])) : J("", !0),
2708
2723
  r.operations !== void 0 && !r.readOnly ? (p(), V(ae, {
2709
2724
  key: 2,
2710
2725
  label: k(o)("common.table.operation"),
2711
2726
  width: "120"
2712
2727
  }, {
2713
- default: m((J) => [
2714
- (p(!0), M(oe, null, de(r.operations, (ge) => (p(), V(Q, {
2728
+ default: m((L) => [
2729
+ (p(!0), M(se, null, he(r.operations, (de) => (p(), V(X, {
2715
2730
  class: "operation-button",
2716
2731
  link: "",
2717
2732
  type: "primary",
2718
- key: ge.label,
2733
+ key: de.label,
2719
2734
  onClick: (xe) => {
2720
- var $e, Ge;
2721
- return ((Ge = ($e = ge.functions) == null ? void 0 : $e.click) == null ? void 0 : Ge.call($e, J.$index, J.row)) && b();
2735
+ var Pe, Le;
2736
+ return ((Le = (Pe = de.functions) == null ? void 0 : Pe.click) == null ? void 0 : Le.call(Pe, L.$index, L.row)) && b();
2722
2737
  }
2723
2738
  }, {
2724
2739
  default: m(() => [
2725
- ee(D(C(ge, J)), 1)
2740
+ Z(D(C(de, L)), 1)
2726
2741
  ]),
2727
2742
  _: 2
2728
2743
  }, 1032, ["onClick"]))), 128))
2729
2744
  ]),
2730
2745
  _: 1
2731
- }, 8, ["label"])) : z("", !0)
2746
+ }, 8, ["label"])) : J("", !0)
2732
2747
  ];
2733
2748
  }),
2734
2749
  _: 1
2735
2750
  }, 8, ["data"])), [
2736
- [We, L.value]
2751
+ [me, j.value]
2737
2752
  ]),
2738
- P.value ? z("", !0) : (p(), V(ke, {
2753
+ I.value ? J("", !0) : (p(), V(le, {
2739
2754
  key: 0,
2740
2755
  size: "small",
2741
2756
  background: "",
2742
2757
  onSizeChange: y,
2743
2758
  onCurrentChange: $,
2744
- currentPage: q.pageNo,
2745
- "onUpdate:currentPage": E[1] || (E[1] = (Y) => q.pageNo = Y),
2759
+ currentPage: W.pageNo,
2760
+ "onUpdate:currentPage": E[1] || (E[1] = (q) => W.pageNo = q),
2746
2761
  "page-sizes": [10, 20, 50, 100],
2747
- "page-size": q.pageSize,
2762
+ "page-size": W.pageSize,
2748
2763
  layout: "total, sizes, prev, pager, next",
2749
- total: q.totalElements
2764
+ total: W.totalElements
2750
2765
  }, null, 8, ["currentPage", "page-size", "total"])),
2751
2766
  _(co, {
2752
2767
  model: f.model,
2753
- mode: R.value,
2768
+ mode: F.value,
2754
2769
  id: K.value,
2755
2770
  afterSubmitFunc: b,
2756
2771
  visible: i.value,
2757
- "onUpdate:visible": E[2] || (E[2] = (Y) => i.value = Y)
2772
+ "onUpdate:visible": E[2] || (E[2] = (q) => i.value = q)
2758
2773
  }, null, 8, ["model", "mode", "id", "visible"])
2759
2774
  ], 2);
2760
2775
  };
2761
2776
  }
2762
- }), st = /* @__PURE__ */ _e(Js, [["__scopeId", "data-v-e945f432"]]), Ws = { class: "nav-bar" }, Ys = {
2777
+ }), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-e945f432"]]), Ws = { class: "nav-bar" }, Ys = {
2763
2778
  key: 0,
2764
2779
  class: "info-card-wrapper"
2765
- }, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ ve({
2780
+ }, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ we({
2766
2781
  __name: "DetailPage",
2767
2782
  setup(e) {
2768
- const { t } = Je(), o = He(), n = rt(), s = Fe(() => o.query.id), r = N(!1), l = N(!1), a = N("view"), i = N(), d = N(-1), S = N(), w = N(), A = N("summary"), U = N(""), j = N(""), R = N(""), L = N(0), P = ce({
2783
+ 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({
2769
2784
  api: "",
2770
2785
  fields: []
2771
- }), K = ce([]);
2772
- let q = [];
2773
- Ce([
2786
+ }), K = pe([]);
2787
+ let W = [];
2788
+ Ee([
2774
2789
  () => n.currentRoute.value,
2775
- me
2790
+ ge
2776
2791
  ], () => {
2777
2792
  g();
2778
2793
  }, {
2779
2794
  immediate: !0,
2780
2795
  deep: !0
2781
2796
  });
2782
- function B(u) {
2797
+ function Y(u) {
2783
2798
  d.value = parseInt(u.index) - 1;
2784
2799
  }
2785
- function ne() {
2800
+ function re() {
2786
2801
  var $;
2787
- let u = ($ = q[d.value].api) == null ? void 0 : $.replace("/select", "");
2802
+ let u = ($ = W[d.value].api) == null ? void 0 : $.replace("/select", "");
2788
2803
  u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
2789
- const c = P.api + "/" + s.value + u, y = w.value.multipleSelection.map((F) => F.id);
2790
- Ee(c, "POST", y).then(() => {
2804
+ const c = I.api + "/" + s.value + u, y = w.value.multipleSelection.map((R) => R.id);
2805
+ Oe(c, "POST", y).then(() => {
2791
2806
  S.value.refresh(), l.value = !1;
2792
2807
  });
2793
2808
  }
2794
2809
  function C(u, c, y) {
2795
- var H;
2810
+ var Q;
2796
2811
  y.functions || (y.functions = {}), y.functions.create = () => {
2797
2812
  l.value = !0, w.value && w.value.refresh();
2798
2813
  };
2799
- let $ = Te(c);
2814
+ let $ = Fe(c);
2800
2815
  $.tableConfig || ($.tableConfig = {}), $.tableConfig.selectMode = !0, $.tableConfig.queryParams = {}, u.queryParamName && ($.tableConfig.queryParams[u.queryParamName] = s.value);
2801
- for (var F in $.fields)
2802
- $.fields[F].tableColumnAttributes && (H = $.fields[F].tableColumnAttributes) != null && H.link && ($.fields[F].tableColumnAttributes.link = !1);
2803
- q.push($), y.labels = {
2816
+ for (var R in $.fields)
2817
+ $.fields[R].tableColumnAttributes && (Q = $.fields[R].tableColumnAttributes) != null && Q.link && ($.fields[R].tableColumnAttributes.link = !1);
2818
+ W.push($), y.labels = {
2804
2819
  create: "common.table.add",
2805
2820
  delete: "common.table.remove"
2806
2821
  }, y.functions.batchDelete = (G) => {
2807
2822
  var E;
2808
- let h = (E = q[d.value].api) == null ? void 0 : E.replace("/select", "");
2823
+ let h = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
2809
2824
  h = h == null ? void 0 : h.substring(h.lastIndexOf("/"));
2810
- const x = P.api + "/" + s.value + h, f = G.map((T) => T.id);
2811
- he.delete(`${x}/${f.join(",")}`).then(({ data: T }) => {
2825
+ const z = I.api + "/" + s.value + h, f = G.map((T) => T.id);
2826
+ be.delete(`${z}/${f.join(",")}`).then(({ data: T }) => {
2812
2827
  T.code === 0 && S.value.refresh();
2813
2828
  });
2814
2829
  }, y.operations = [
@@ -2817,10 +2832,10 @@ const Re = (e) => {
2817
2832
  functions: {
2818
2833
  click: (G, h) => {
2819
2834
  var E;
2820
- let x = (E = q[d.value].api) == null ? void 0 : E.replace("/select", "");
2821
- x = x == null ? void 0 : x.substring(x.lastIndexOf("/"));
2822
- const f = P.api + "/" + s.value + x;
2823
- Ee(f, "DELETE", h.id).then(() => {
2835
+ let z = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
2836
+ z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
2837
+ const f = I.api + "/" + s.value + z;
2838
+ Oe(f, "DELETE", h.id).then(() => {
2824
2839
  S.value.refresh();
2825
2840
  });
2826
2841
  }
@@ -2829,43 +2844,43 @@ const Re = (e) => {
2829
2844
  ], $.api += "/select";
2830
2845
  }
2831
2846
  function g() {
2832
- var $, F, H;
2847
+ var $, R, Q;
2833
2848
  K.splice(0);
2834
2849
  const u = o.params.model;
2835
- if (me.value[u] === void 0) {
2850
+ if (ge.value[u] === void 0) {
2836
2851
  console.warn("Detail page model not exist:", u);
2837
2852
  return;
2838
2853
  } else
2839
- console.debug("Detail page model found:", u, me.value[u]);
2840
- Re(P);
2841
- const c = Te(me.value[u]);
2842
- Object.assign(P, c), L.value++, d.value = -1, A.value = "summary";
2843
- const y = (F = ($ = P.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : F.tabs;
2854
+ console.debug("Detail page model found:", u, ge.value[u]);
2855
+ Ge(I);
2856
+ const c = Fe(ge.value[u]);
2857
+ Object.assign(I, c), j.value++, d.value = -1, N.value = "summary";
2858
+ const y = (R = ($ = I.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : R.tabs;
2844
2859
  if (y)
2845
2860
  for (let G of y) {
2846
- const h = Te(me.value[G.modelKey]);
2861
+ const h = Fe(ge.value[G.modelKey]);
2847
2862
  if (K.push(h), G.type === "table") {
2848
2863
  h.tableConfig || (h.tableConfig = {});
2849
- let x = h.tableConfig;
2850
- x.showPane = !1, G.modelRelationType === "associated" ? C(G, h, x) : G.modelRelationType === "child" && (q.push({
2864
+ let z = h.tableConfig;
2865
+ z.showPane = !1, G.modelRelationType === "associated" ? C(G, h, z) : G.modelRelationType === "child" && (W.push({
2851
2866
  fields: []
2852
2867
  }), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}), G.queryParamName && (h.formConfig.functions.beforeSubmit = (f) => {
2853
2868
  f[G.queryParamName] = s.value;
2854
- })), x.queryParams || (x.queryParams = {}), G.queryParamName && (x.queryParams[G.queryParamName] = s.value), G.queryParams && Object.assign(x.queryParams, G.queryParams), x.readOnly = (H = G.readOnly) != null ? H : !1, G.includeFields && (h.fields = h.fields.filter((f) => {
2869
+ })), 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) => {
2855
2870
  var E;
2856
2871
  return (E = G.includeFields) == null ? void 0 : E.includes(f.prop);
2857
2872
  })), G.excludeFields && (h.fields = h.fields.filter((f) => {
2858
2873
  var E;
2859
2874
  return !((E = G.excludeFields) != null && E.includes(f.prop));
2860
- })), G.tooltip && (x.tooltip = G.tooltip);
2875
+ })), G.tooltip && (z.tooltip = G.tooltip);
2861
2876
  }
2862
2877
  }
2863
2878
  }
2864
- Ce(
2879
+ Ee(
2865
2880
  [
2866
2881
  () => {
2867
2882
  var u, c;
2868
- return (c = (u = P.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
2883
+ return (c = (u = I.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
2869
2884
  },
2870
2885
  () => {
2871
2886
  var u;
@@ -2873,14 +2888,14 @@ const Re = (e) => {
2873
2888
  }
2874
2889
  ],
2875
2890
  (u) => {
2876
- je(() => {
2877
- var y, $, F;
2878
- const c = ($ = (y = P.pageConfig) == null ? void 0 : y.detailPage) == null ? void 0 : $.infoCard;
2879
- c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", j.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", R.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = P.fields) == null || F.forEach((H) => {
2891
+ ze(() => {
2892
+ var y, $, R;
2893
+ const c = ($ = (y = I.pageConfig) == null ? void 0 : y.detailPage) == null ? void 0 : $.infoCard;
2894
+ 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) => {
2880
2895
  var G, h;
2881
- if (H.prop === c.tagFieldProp) {
2882
- const x = (h = (G = H.tableColumnAttributes) == null ? void 0 : G.functions) == null ? void 0 : h.transformValue;
2883
- x && (R.value = x(R.value));
2896
+ if (Q.prop === c.tagFieldProp) {
2897
+ const z = (h = (G = Q.tableColumnAttributes) == null ? void 0 : G.functions) == null ? void 0 : h.transformValue;
2898
+ z && (F.value = z(F.value));
2884
2899
  }
2885
2900
  }));
2886
2901
  });
@@ -2893,32 +2908,32 @@ const Re = (e) => {
2893
2908
  function b() {
2894
2909
  r.value = !0;
2895
2910
  }
2896
- function I() {
2911
+ function x() {
2897
2912
  i.value.refresh();
2898
2913
  }
2899
2914
  return (u, c) => {
2900
- var Q, se, ie, re, ae, Z;
2901
- const y = O("el-breadcrumb-item"), $ = O("el-breadcrumb"), F = O("el-button"), H = O("el-icon"), G = O("el-dropdown-item"), h = O("el-dropdown-menu"), x = O("el-dropdown"), f = O("el-tag"), E = O("el-tab-pane"), T = O("el-tabs"), X = O("el-dialog");
2902
- return p(), M(oe, null, [
2915
+ var X, ce, ue, fe, ae, ee;
2916
+ 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");
2917
+ return p(), M(se, null, [
2903
2918
  v("div", Ws, [
2904
2919
  _($, null, {
2905
2920
  default: m(() => {
2906
- var W, ue;
2921
+ var H, te;
2907
2922
  return [
2908
2923
  _(y, {
2909
- to: { path: `/${(ue = (W = P == null ? void 0 : P.breadcrumbRoute) != null ? W : P == null ? void 0 : P.route) != null ? ue : ""}` }
2924
+ to: { path: `/${(te = (H = I == null ? void 0 : I.breadcrumbRoute) != null ? H : I == null ? void 0 : I.route) != null ? te : ""}` }
2910
2925
  }, {
2911
2926
  default: m(() => {
2912
- var pe;
2927
+ var ne;
2913
2928
  return [
2914
- ee(D(k(t)((pe = P == null ? void 0 : P.name) != null ? pe : "")), 1)
2929
+ Z(D(k(t)((ne = I == null ? void 0 : I.name) != null ? ne : "")), 1)
2915
2930
  ];
2916
2931
  }),
2917
2932
  _: 1
2918
2933
  }, 8, ["to"]),
2919
2934
  _(y, null, {
2920
2935
  default: m(() => [
2921
- ee(D(k(t)("common.basic.detail")), 1)
2936
+ Z(D(k(t)("common.basic.detail")), 1)
2922
2937
  ]),
2923
2938
  _: 1
2924
2939
  })
@@ -2927,36 +2942,36 @@ const Re = (e) => {
2927
2942
  _: 1
2928
2943
  }),
2929
2944
  v("div", null, [
2930
- _(F, {
2945
+ _(R, {
2931
2946
  type: "primary",
2932
2947
  onClick: b
2933
2948
  }, {
2934
2949
  default: m(() => [
2935
- ee(D(k(t)("common.table.edit")), 1)
2950
+ Z(D(k(t)("common.table.edit")), 1)
2936
2951
  ]),
2937
2952
  _: 1
2938
2953
  }),
2939
- _(F, {
2954
+ _(R, {
2940
2955
  type: "danger",
2941
2956
  plain: "",
2942
2957
  disabled: ""
2943
2958
  }, {
2944
2959
  default: m(() => [
2945
- ee(D(k(t)("common.table.delete")), 1)
2960
+ Z(D(k(t)("common.table.delete")), 1)
2946
2961
  ]),
2947
2962
  _: 1
2948
2963
  }),
2949
- ((se = (Q = P.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : se.operationButtons) !== void 0 ? (p(), V(x, { key: 0 }, {
2964
+ ((ce = (X = I.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : ce.operationButtons) !== void 0 ? (p(), V(z, { key: 0 }, {
2950
2965
  dropdown: m(() => [
2951
2966
  _(h, null, {
2952
2967
  default: m(() => {
2953
- var W, ue;
2968
+ var H, te;
2954
2969
  return [
2955
- (p(!0), M(oe, null, de((ue = (W = P.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ue.operationButtons, (pe) => (p(), V(G, {
2956
- onClick: (ke) => pe.function(i.value.formData)
2970
+ (p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.operationButtons, (ne) => (p(), V(G, {
2971
+ onClick: (le) => ne.function(i.value.formData)
2957
2972
  }, {
2958
2973
  default: m(() => [
2959
- ee(D(k(t)(pe.label)), 1)
2974
+ Z(D(k(t)(ne.label)), 1)
2960
2975
  ]),
2961
2976
  _: 2
2962
2977
  }, 1032, ["onClick"]))), 256))
@@ -2966,12 +2981,12 @@ const Re = (e) => {
2966
2981
  })
2967
2982
  ]),
2968
2983
  default: m(() => [
2969
- _(F, { style: { margin: "0 10px" } }, {
2984
+ _(R, { style: { margin: "0 10px" } }, {
2970
2985
  default: m(() => [
2971
- ee(D(k(t)("common.basic.more")), 1),
2972
- _(H, { class: "el-icon--right" }, {
2986
+ Z(D(k(t)("common.basic.more")), 1),
2987
+ _(Q, { class: "el-icon--right" }, {
2973
2988
  default: m(() => [
2974
- _(k($o))
2989
+ _(k(xo))
2975
2990
  ]),
2976
2991
  _: 1
2977
2992
  })
@@ -2980,41 +2995,41 @@ const Re = (e) => {
2980
2995
  })
2981
2996
  ]),
2982
2997
  _: 1
2983
- })) : z("", !0),
2984
- _(F, {
2985
- icon: k(Rt),
2986
- onClick: I
2998
+ })) : J("", !0),
2999
+ _(R, {
3000
+ icon: k(Ft),
3001
+ onClick: x
2987
3002
  }, null, 8, ["icon"])
2988
3003
  ])
2989
3004
  ]),
2990
- (re = (ie = P.pageConfig) == null ? void 0 : ie.detailPage) != null && re.infoCard ? (p(), M("div", Ys, [
3005
+ (fe = (ue = I.pageConfig) == null ? void 0 : ue.detailPage) != null && fe.infoCard ? (p(), M("div", Ys, [
2991
3006
  v("div", Qs, [
2992
- (p(), V(tt((ae = P.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
3007
+ (p(), V(tt((ae = I.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
2993
3008
  ]),
2994
3009
  v("div", Ks, [
2995
3010
  v("div", Xs, [
2996
3011
  v("h1", null, D(U.value), 1),
2997
- ((Z = R.value) == null ? void 0 : Z.length) > 0 ? (p(), V(f, {
3012
+ ((ee = F.value) == null ? void 0 : ee.length) > 0 ? (p(), V(f, {
2998
3013
  key: 0,
2999
3014
  size: "small"
3000
3015
  }, {
3001
3016
  default: m(() => [
3002
- ee(D(R.value), 1)
3017
+ Z(D(F.value), 1)
3003
3018
  ]),
3004
3019
  _: 1
3005
- })) : z("", !0)
3020
+ })) : J("", !0)
3006
3021
  ]),
3007
- v("span", null, D(j.value), 1)
3022
+ v("span", null, D(B.value), 1)
3008
3023
  ])
3009
- ])) : z("", !0),
3024
+ ])) : J("", !0),
3010
3025
  v("div", Zs, [
3011
3026
  _(T, {
3012
- modelValue: A.value,
3013
- "onUpdate:modelValue": c[0] || (c[0] = (W) => A.value = W),
3014
- onTabClick: B
3027
+ modelValue: N.value,
3028
+ "onUpdate:modelValue": c[0] || (c[0] = (H) => N.value = H),
3029
+ onTabClick: Y
3015
3030
  }, {
3016
3031
  default: m(() => {
3017
- var W, ue;
3032
+ var H, te;
3018
3033
  return [
3019
3034
  _(E, {
3020
3035
  label: k(t)("common.basic.summary"),
@@ -3025,17 +3040,17 @@ const Re = (e) => {
3025
3040
  ref_key: "formViewRef",
3026
3041
  ref: i,
3027
3042
  id: s.value,
3028
- sessionId: L.value,
3043
+ sessionId: j.value,
3029
3044
  mode: a.value,
3030
- model: P
3045
+ model: I
3031
3046
  }, null, 8, ["id", "sessionId", "mode", "model"])
3032
3047
  ]),
3033
3048
  _: 1
3034
3049
  }, 8, ["label"]),
3035
- (p(!0), M(oe, null, de((ue = (W = P.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ue.tabs, (pe) => {
3036
- var ke;
3050
+ (p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.tabs, (ne) => {
3051
+ var le;
3037
3052
  return p(), V(E, {
3038
- label: k(t)((ke = pe.name) != null ? ke : "")
3053
+ label: k(t)((le = ne.name) != null ? le : "")
3039
3054
  }, null, 8, ["label"]);
3040
3055
  }), 256))
3041
3056
  ];
@@ -3047,29 +3062,29 @@ const Re = (e) => {
3047
3062
  ref_key: "tabPaneTableRef",
3048
3063
  ref: S,
3049
3064
  model: K[d.value]
3050
- }, null, 8, ["model"])) : z("", !0),
3051
- _(X, {
3065
+ }, null, 8, ["model"])) : J("", !0),
3066
+ _(P, {
3052
3067
  modelValue: l.value,
3053
- "onUpdate:modelValue": c[2] || (c[2] = (W) => l.value = W),
3068
+ "onUpdate:modelValue": c[2] || (c[2] = (H) => l.value = H),
3054
3069
  title: k(t)("common.table.select"),
3055
3070
  width: "800px"
3056
3071
  }, {
3057
3072
  footer: m(() => [
3058
3073
  v("span", er, [
3059
- _(F, {
3060
- onClick: c[1] || (c[1] = (W) => l.value = !1)
3074
+ _(R, {
3075
+ onClick: c[1] || (c[1] = (H) => l.value = !1)
3061
3076
  }, {
3062
3077
  default: m(() => [
3063
- ee(D(k(t)("common.basic.cancel")), 1)
3078
+ Z(D(k(t)("common.basic.cancel")), 1)
3064
3079
  ]),
3065
3080
  _: 1
3066
3081
  }),
3067
- _(F, {
3082
+ _(R, {
3068
3083
  type: "primary",
3069
- onClick: ne
3084
+ onClick: re
3070
3085
  }, {
3071
3086
  default: m(() => [
3072
- ee(D(k(t)("common.basic.save")), 1)
3087
+ Z(D(k(t)("common.basic.save")), 1)
3073
3088
  ]),
3074
3089
  _: 1
3075
3090
  })
@@ -3080,8 +3095,8 @@ const Re = (e) => {
3080
3095
  key: 0,
3081
3096
  ref_key: "selectTableRef",
3082
3097
  ref: w,
3083
- model: k(q)[d.value]
3084
- }, null, 8, ["model"])) : z("", !0)
3098
+ model: k(W)[d.value]
3099
+ }, null, 8, ["model"])) : J("", !0)
3085
3100
  ]),
3086
3101
  _: 1
3087
3102
  }, 8, ["modelValue", "title"])
@@ -3090,48 +3105,48 @@ const Re = (e) => {
3090
3105
  id: s.value,
3091
3106
  mode: "update",
3092
3107
  visible: r.value,
3093
- "onUpdate:visible": c[3] || (c[3] = (W) => r.value = W),
3094
- model: P,
3095
- afterSubmitFunc: I
3108
+ "onUpdate:visible": c[3] || (c[3] = (H) => r.value = H),
3109
+ model: I,
3110
+ afterSubmitFunc: x
3096
3111
  }, null, 8, ["id", "visible", "model"])
3097
3112
  ], 64);
3098
3113
  };
3099
3114
  }
3100
- }), or = /* @__PURE__ */ _e(tr, [["__scopeId", "data-v-f9250724"]]), nr = { class: "page-title" }, sr = /* @__PURE__ */ ve({
3115
+ }), or = /* @__PURE__ */ ve(tr, [["__scopeId", "data-v-f9250724"]]), nr = { class: "page-title" }, sr = /* @__PURE__ */ we({
3101
3116
  __name: "TablePage",
3102
3117
  setup(e) {
3103
- const { t } = Je(), o = He(), n = rt(), s = N(), r = N([]), l = ce({
3118
+ const { t } = We(), o = Je(), n = rt(), s = A(), r = A([]), l = pe({
3104
3119
  api: "",
3105
3120
  fields: []
3106
- }), a = ce(Ye({}, l));
3121
+ }), a = pe(Ye({}, l));
3107
3122
  function i() {
3108
- var S, w, A, U, j;
3109
- r.value = [], l.pageConfig && ((w = (S = l.pageConfig) == null ? void 0 : S.tablePage) != null && w.tabViewAttributes) && (r.value = (j = (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) == null ? void 0 : U.tabViewAttributes) == null ? void 0 : j.map((R) => {
3110
- let L;
3111
- return R.modelKey && me.value[R.modelKey] ? L = Te(me.value[R.modelKey]) : L = Te(l), R.queryParams && (L.tableConfig || (L.tableConfig = {}), L.tableConfig.queryParams = R.queryParams), R.fields && (L.fields = R.fields), R.modelKey && (L.breadcrumbRoute = l.route), {
3112
- key: R.key,
3113
- label: R.label,
3114
- icon: R.icon,
3115
- disabled: R.disabled,
3116
- model: L
3123
+ var S, w, N, U, B;
3124
+ 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) => {
3125
+ let j;
3126
+ 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), {
3127
+ key: F.key,
3128
+ label: F.label,
3129
+ icon: F.icon,
3130
+ disabled: F.disabled,
3131
+ model: j
3117
3132
  };
3118
3133
  }));
3119
3134
  }
3120
3135
  function d() {
3121
- var A, U;
3122
- console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", me.value);
3136
+ var N, U;
3137
+ console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
3123
3138
  const S = o.params.model;
3124
- if (me.value[S] === void 0) {
3125
- console.warn("TablePage.init: model not found", S, me.value);
3139
+ if (ge.value[S] === void 0) {
3140
+ console.warn("TablePage.init: model not found", S, ge.value);
3126
3141
  return;
3127
3142
  }
3128
- Re(l);
3129
- const w = Te(me.value[S]);
3130
- Object.assign(l, w), (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
3143
+ Ge(l);
3144
+ const w = Fe(ge.value[S]);
3145
+ Object.assign(l, w), (U = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
3131
3146
  }
3132
- return Ce([
3147
+ return Ee([
3133
3148
  () => n.currentRoute.value,
3134
- me
3149
+ ge
3135
3150
  ], () => {
3136
3151
  d();
3137
3152
  }, {
@@ -3139,19 +3154,19 @@ const Re = (e) => {
3139
3154
  deep: !0
3140
3155
  }), (S, w) => {
3141
3156
  var U;
3142
- const A = O("el-scrollbar");
3143
- return p(), M(oe, null, [
3157
+ const N = O("el-scrollbar");
3158
+ return p(), M(se, null, [
3144
3159
  v("h1", nr, D(k(t)((U = l.name) != null ? U : "")), 1),
3145
- _(A, null, {
3160
+ _(N, null, {
3146
3161
  default: m(() => {
3147
- var j, R;
3162
+ var B, F;
3148
3163
  return [
3149
- (R = (j = l.pageConfig) == null ? void 0 : j.tablePage) != null && R.tabViewAttributes ? (p(), V(lo, {
3164
+ (F = (B = l.pageConfig) == null ? void 0 : B.tablePage) != null && F.tabViewAttributes ? (p(), V(lo, {
3150
3165
  key: 0,
3151
3166
  class: "tabs-wrapper",
3152
3167
  cards: r.value,
3153
3168
  tableRef: s.value
3154
- }, null, 8, ["cards", "tableRef"])) : z("", !0)
3169
+ }, null, 8, ["cards", "tableRef"])) : J("", !0)
3155
3170
  ];
3156
3171
  }),
3157
3172
  _: 1
@@ -3165,11 +3180,11 @@ const Re = (e) => {
3165
3180
  ], 64);
3166
3181
  };
3167
3182
  }
3168
- }), rr = /* @__PURE__ */ _e(sr, [["__scopeId", "data-v-1a472785"]]), ar = [
3169
- Ao,
3183
+ }), rr = /* @__PURE__ */ ve(sr, [["__scopeId", "data-v-1a472785"]]), ar = [
3184
+ No,
3170
3185
  ys,
3171
3186
  Lt,
3172
- $s,
3187
+ xs,
3173
3188
  Vs,
3174
3189
  ao,
3175
3190
  lo,
@@ -3182,11 +3197,11 @@ const Re = (e) => {
3182
3197
  });
3183
3198
  };
3184
3199
  export {
3185
- Ao as Building,
3200
+ No as Building,
3186
3201
  ys as ConsoleApp,
3187
3202
  or as DetailPage,
3188
3203
  Lt as Header,
3189
- $s as NoPermission,
3204
+ xs as NoPermission,
3190
3205
  Vs as Secondary,
3191
3206
  ao as SideMenu,
3192
3207
  lo as TabCard,
@@ -3197,7 +3212,7 @@ export {
3197
3212
  on as en,
3198
3213
  ot as i18n,
3199
3214
  Ct as menuList,
3200
- me as modelList,
3215
+ ge as modelList,
3201
3216
  gt as pinia,
3202
3217
  nn as zh
3203
3218
  };