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

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.
@@ -26,11 +26,11 @@ var Ce = (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 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";
29
+ import { openBlock as p, createElementBlock as M, createElementVNode as v, defineComponent as we, reactive as ue, resolveComponent as $, createVNode as _, withCtx as m, unref as O, Fragment as oe, renderList as me, toDisplayString as G, normalizeStyle as Re, ref as V, onMounted as At, createCommentVNode as J, createTextVNode as ee, createBlock as I, 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 $e, 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
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 Ft, QuestionFilled as Eo, Download as $o, ArrowDown as xo } from "@element-plus/icons-vue";
33
+ import { Search as Dt, ArrowRight as ko, Check as Oo, Refresh as Ft, QuestionFilled as $o, Download as xo, ArrowDown as Eo } from "@element-plus/icons-vue";
34
34
  import { createI18n as Po, useI18n as We } from "vue-i18n";
35
35
  import { cloneDeep as Fe } from "lodash";
36
36
  const ve = (e, t) => {
@@ -135,7 +135,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
135
135
  visible: { type: Boolean }
136
136
  },
137
137
  setup(e) {
138
- const t = pe([]);
138
+ const t = ue([]);
139
139
  function o() {
140
140
  To().then(({ data: n }) => {
141
141
  t.splice(0, t.length, ...n.data.list), Do().then(({ data: s }) => {
@@ -147,19 +147,19 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
147
147
  });
148
148
  }
149
149
  return o(), (n, s) => {
150
- const r = O("el-input"), l = O("el-scrollbar"), a = O("el-tab-pane"), i = O("el-tabs");
150
+ const r = $("el-input"), l = $("el-scrollbar"), a = $("el-tab-pane"), i = $("el-tabs");
151
151
  return p(), M("div", Jo, [
152
152
  _(i, { "tab-position": "left" }, {
153
153
  default: m(() => [
154
154
  _(a, null, {
155
155
  label: m(() => [
156
- _(k(Go), { class: "left-icon" })
156
+ _(O(Go), { class: "left-icon" })
157
157
  ]),
158
158
  default: m(() => [
159
159
  s[0] || (s[0] = v("h1", { class: "catalog-title" }, "Apps", -1)),
160
160
  _(r, {
161
161
  class: "search-box",
162
- "prefix-icon": k(Dt),
162
+ "prefix-icon": O(Dt),
163
163
  placeholder: "Search apps"
164
164
  }, null, 8, ["prefix-icon"]),
165
165
  _(l, {
@@ -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(se, null, he(t, (d) => (p(), M("div", Yo, [
172
- v("h1", null, D(d.name), 1),
171
+ (p(!0), M(oe, null, me(t, (d) => (p(), M("div", Yo, [
172
+ v("h1", null, G(d.name), 1),
173
173
  v("div", Qo, [
174
- (p(!0), M(se, null, he(d.apps, (S) => {
175
- var w, N;
174
+ (p(!0), M(oe, null, me(d.apps, (S) => {
175
+ var y, A;
176
176
  return p(), M("a", {
177
- style: Re([{ "text-decoration": "none" }, { pointerEvents: ((w = S.homepageUrl) == null ? void 0 : w.length) > 0 ? "auto" : "none" }]),
177
+ style: Re([{ "text-decoration": "none" }, { pointerEvents: ((y = S.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
178
178
  target: "_blank",
179
179
  href: S.homepageUrl
180
180
  }, [
@@ -184,8 +184,8 @@ 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: Re({ color: ((N = S.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
- }, D(S.name), 5)
187
+ style: Re({ color: ((A = S.homepageUrl) == null ? void 0 : A.length) > 0 ? "#555" : "#bbb" })
188
+ }, G(S.name), 5)
189
189
  ], 12, Ko);
190
190
  }), 256))
191
191
  ])
@@ -199,7 +199,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
199
199
  }),
200
200
  _(a, null, {
201
201
  label: m(() => [
202
- _(k(zo), { class: "left-icon" })
202
+ _(O(zo), { class: "left-icon" })
203
203
  ]),
204
204
  default: m(() => [
205
205
  s[1] || (s[1] = v("h1", { class: "catalog-title" }, "Favorites", -1))
@@ -208,7 +208,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
208
208
  }),
209
209
  _(a, null, {
210
210
  label: m(() => [
211
- _(k(Ho), { class: "left-icon" })
211
+ _(O(Ho), { class: "left-icon" })
212
212
  ]),
213
213
  default: m(() => [
214
214
  s[2] || (s[2] = v("h1", { class: "catalog-title" }, "Recently", -1))
@@ -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__ */ we({
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"], $n = /* @__PURE__ */ we({
357
357
  __name: "Header",
358
358
  props: {
359
359
  title: {},
360
360
  helpDocUrl: {}
361
361
  },
362
362
  setup(e) {
363
- const { t } = We(), o = A(), n = A(), s = A(), r = A(), l = A(!1), a = e;
364
- A(!1);
365
- const i = A(""), d = A(ot.global.locale), S = pe([
363
+ const { t } = We(), o = V(), n = V(), s = V(), r = V(), l = V(!1), a = e;
364
+ V(!1);
365
+ const i = V(""), d = V(ot.global.locale), S = ue([
366
366
  {
367
367
  id: "en",
368
368
  name: "English"
@@ -373,37 +373,37 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
373
373
  }
374
374
  ]);
375
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);
376
+ i.value = decodeURIComponent(y("passport_username").replace(/\+/g, " ")), i.value === "" && Mo().then(({ data: L }) => {
377
+ var N;
378
+ L.code == 0 && (i.value = (N = L.data.name) != null ? N : L.data.displayId);
379
379
  });
380
380
  });
381
- function w(j) {
382
- for (var I = j + "=", K = document.cookie.split(";"), W = 0; W < K.length; W++) {
381
+ function y(L) {
382
+ for (var N = L + "=", K = document.cookie.split(";"), W = 0; W < K.length; W++) {
383
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);
384
+ if (Y.indexOf(N) != -1)
385
+ return Y.substring(N.length, Y.length);
386
386
  }
387
387
  return "";
388
388
  }
389
- function N() {
389
+ function A() {
390
390
  Uo().then(() => {
391
- const j = escape(window.location.href);
392
- window.location.href = `//${Rt()}/?from=${j}#login`;
391
+ const L = escape(window.location.href);
392
+ window.location.href = `//${Rt()}/?from=${L}#login`;
393
393
  });
394
394
  }
395
- function U(j) {
396
- ot.global.locale.value = j, d.value = j, localStorage.setItem("locale", j);
395
+ function U(L) {
396
+ ot.global.locale.value = L, d.value = L, localStorage.setItem("locale", L);
397
397
  }
398
- function B() {
398
+ function H() {
399
399
  window.open("https://passport.vancone.com/#/account/profile", "_blank");
400
400
  }
401
- function F() {
401
+ function D() {
402
402
  window.open(a.helpDocUrl, "_blank");
403
403
  }
404
- return (j, I) => {
405
- const K = O("el-popover"), W = O("el-tooltip"), Y = O("el-avatar"), re = O("el-menu-item"), C = O("el-icon"), g = O("el-menu"), b = O("el-drawer");
406
- return p(), M(se, null, [
404
+ return (L, N) => {
405
+ const K = $("el-popover"), W = $("el-tooltip"), Y = $("el-avatar"), ne = $("el-menu-item"), C = $("el-icon"), g = $("el-menu"), b = $("el-drawer");
406
+ return p(), M(oe, null, [
407
407
  v("div", gn, [
408
408
  v("div", bn, [
409
409
  v("div", {
@@ -412,9 +412,9 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
412
412
  class: "icon-wrapper",
413
413
  style: { "margin-left": "8px" }
414
414
  }, [
415
- _(k(an))
415
+ _(O(an))
416
416
  ], 512),
417
- v("h1", null, D(j.title), 1)
417
+ v("h1", null, G(L.title), 1)
418
418
  ]),
419
419
  _(K, {
420
420
  class: "app-popover",
@@ -431,43 +431,43 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
431
431
  v("div", vn, [
432
432
  _(W, {
433
433
  effect: "dark",
434
- content: k(t)("common.header.workbench"),
434
+ content: O(t)("common.header.workbench"),
435
435
  placement: "bottom"
436
436
  }, {
437
437
  default: m(() => [
438
438
  v("div", yn, [
439
- _(k(_n))
439
+ _(O(_n))
440
440
  ])
441
441
  ]),
442
442
  _: 1
443
443
  }, 8, ["content"]),
444
444
  _(W, {
445
445
  effect: "dark",
446
- content: k(t)("common.header.help"),
446
+ content: O(t)("common.header.help"),
447
447
  placement: "bottom"
448
448
  }, {
449
449
  default: m(() => [
450
450
  a.helpDocUrl !== void 0 ? (p(), M("div", {
451
451
  key: 0,
452
452
  class: "icon-wrapper",
453
- onClick: F
453
+ onClick: D
454
454
  }, [
455
- _(k(un))
455
+ _(O(un))
456
456
  ])) : J("", !0)
457
457
  ]),
458
458
  _: 1
459
459
  }, 8, ["content"]),
460
460
  _(W, {
461
461
  effect: "dark",
462
- content: k(t)("common.header.notification"),
462
+ content: O(t)("common.header.notification"),
463
463
  placement: "bottom"
464
464
  }, {
465
465
  default: m(() => [
466
466
  v("div", {
467
467
  class: "icon-wrapper",
468
- onClick: I[0] || (I[0] = (x) => l.value = !0)
468
+ onClick: N[0] || (N[0] = (P) => l.value = !0)
469
469
  }, [
470
- _(k(fn))
470
+ _(O(fn))
471
471
  ])
472
472
  ]),
473
473
  _: 1
@@ -480,7 +480,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
480
480
  ref: o
481
481
  }, {
482
482
  default: m(() => [
483
- v("span", Sn, D(i.value.substring(0, 2)), 1)
483
+ v("span", Sn, G(i.value.substring(0, 2)), 1)
484
484
  ]),
485
485
  _: 1
486
486
  }, 512),
@@ -501,30 +501,30 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
501
501
  src: ""
502
502
  }, {
503
503
  default: m(() => [
504
- v("span", kn, D(i.value.substring(0, 2)), 1)
504
+ v("span", kn, G(i.value.substring(0, 2)), 1)
505
505
  ]),
506
506
  _: 1
507
507
  }),
508
- v("span", null, D(i.value), 1)
508
+ v("span", null, G(i.value), 1)
509
509
  ]),
510
510
  _(g, { class: "user-menu" }, {
511
511
  default: m(() => [
512
- _(re, { onClick: B }, {
512
+ _(ne, { onClick: H }, {
513
513
  default: m(() => [
514
- Z(D(k(t)("common.header.userCenter")), 1)
514
+ ee(G(O(t)("common.header.userCenter")), 1)
515
515
  ]),
516
516
  _: 1
517
517
  }),
518
- _(re, {
518
+ _(ne, {
519
519
  ref_key: "switchLanguageRef",
520
520
  ref: s,
521
521
  style: { display: "flext", "justify-content": "space-between" }
522
522
  }, {
523
523
  default: m(() => [
524
- v("span", null, D(k(t)("common.header.switchLanguage")), 1),
524
+ v("span", null, G(O(t)("common.header.switchLanguage")), 1),
525
525
  _(C, { style: { left: "15px" } }, {
526
526
  default: m(() => [
527
- _(k(ko))
527
+ _(O(ko))
528
528
  ]),
529
529
  _: 1
530
530
  })
@@ -543,17 +543,17 @@ 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(se, null, he(S, (x) => (p(), M("div", {
546
+ (p(!0), M(oe, null, me(S, (P) => (p(), M("div", {
547
547
  class: "select-list",
548
- onClick: (u) => U(x.id)
548
+ onClick: (u) => U(P.id)
549
549
  }, [
550
- v("span", null, D(x.name), 1),
551
- x.id === d.value ? (p(), V(C, {
550
+ v("span", null, G(P.name), 1),
551
+ P.id === d.value ? (p(), I(C, {
552
552
  key: 0,
553
553
  style: { color: "#8ba74f" }
554
554
  }, {
555
555
  default: m(() => [
556
- _(k(Oo))
556
+ _(O(Oo))
557
557
  ]),
558
558
  _: 1
559
559
  })) : J("", !0)
@@ -561,9 +561,9 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
561
561
  ]),
562
562
  _: 1
563
563
  }, 8, ["virtual-ref"]),
564
- _(re, { onClick: N }, {
564
+ _(ne, { onClick: A }, {
565
565
  default: m(() => [
566
- Z(D(k(t)("common.header.signOut")), 1)
566
+ ee(G(O(t)("common.header.signOut")), 1)
567
567
  ]),
568
568
  _: 1
569
569
  })
@@ -578,17 +578,17 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
578
578
  ]),
579
579
  _(b, {
580
580
  modelValue: l.value,
581
- "onUpdate:modelValue": I[1] || (I[1] = (x) => l.value = x),
581
+ "onUpdate:modelValue": N[1] || (N[1] = (P) => l.value = P),
582
582
  direction: "rtl",
583
583
  title: "Message Center"
584
584
  }, null, 8, ["modelValue"])
585
585
  ], 64);
586
586
  };
587
587
  }
588
- }), Lt = /* @__PURE__ */ ve(En, [["__scopeId", "data-v-6fc40dbc"]]), $n = {
588
+ }), Lt = /* @__PURE__ */ ve($n, [["__scopeId", "data-v-6fc40dbc"]]), xn = {
589
589
  class: "menu-icon-wrapper",
590
590
  style: { "margin-left": "3px" }
591
- }, xn = { class: "menu-icon-wrapper" }, Pn = /* @__PURE__ */ we({
591
+ }, En = { class: "menu-icon-wrapper" }, Pn = /* @__PURE__ */ we({
592
592
  __name: "SideMenuItem",
593
593
  props: {
594
594
  menu: {}
@@ -596,29 +596,29 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
596
596
  setup(e) {
597
597
  const t = e;
598
598
  return ze(() => console.log("menu", t.menu)), (o, n) => {
599
- const s = O("SideMenuItem", !0), r = O("el-sub-menu"), l = O("el-menu-item");
600
- return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
599
+ const s = $("SideMenuItem", !0), r = $("el-sub-menu"), l = $("el-menu-item");
600
+ return o.menu.children && o.menu.children.length > 0 ? (p(), I(r, {
601
601
  key: 0,
602
602
  index: o.menu.path
603
603
  }, {
604
604
  title: m(() => {
605
605
  var a, i, d;
606
606
  return [
607
- v("div", $n, [
608
- (p(), V(tt((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
607
+ v("div", xn, [
608
+ (p(), I(tt((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
609
609
  ]),
610
- v("span", null, D(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
610
+ v("span", null, G(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(se, null, he(o.menu.children, (a) => (p(), V(s, {
614
+ (p(!0), M(oe, null, me(o.menu.children, (a) => (p(), I(s, {
615
615
  key: a.path,
616
616
  route: a,
617
617
  menu: a
618
618
  }, null, 8, ["route", "menu"]))), 128))
619
619
  ]),
620
620
  _: 1
621
- }, 8, ["index"])) : (p(), V(l, {
621
+ }, 8, ["index"])) : (p(), I(l, {
622
622
  key: 1,
623
623
  index: t.menu.path,
624
624
  style: { height: "40px" }
@@ -626,14 +626,14 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
626
626
  title: m(() => {
627
627
  var a, i;
628
628
  return [
629
- v("span", null, D(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
629
+ v("span", null, G(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
630
630
  ];
631
631
  }),
632
632
  default: m(() => {
633
633
  var a;
634
634
  return [
635
- v("div", xn, [
636
- (p(), V(tt((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
635
+ v("div", En, [
636
+ (p(), I(tt((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
637
637
  ])
638
638
  ];
639
639
  }),
@@ -641,7 +641,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
641
641
  }, 8, ["index"]));
642
642
  };
643
643
  }
644
- }), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge = A({}), Vn = {}, Ct = A([]);
644
+ }), In = /* @__PURE__ */ ve(Pn, [["__scopeId", "data-v-99da7c39"]]), ge = V({}), Vn = {}, Ct = V([]);
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);
@@ -842,7 +842,7 @@ function jn(e, t, o, n) {
842
842
  }, 4e4);
843
843
  }
844
844
  }
845
- function oe(e, t) {
845
+ function te(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,20 +851,20 @@ function ht(e) {
851
851
  }
852
852
  function Yt() {
853
853
  if (!("clipboard" in navigator))
854
- return oe("Your browser doesn't support the Clipboard API", "error"), !0;
854
+ return te("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") ? (oe('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") ? (te('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
860
  return Ce(this, null, function* () {
861
861
  if (!Yt())
862
862
  try {
863
- yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), oe("Global state copied to clipboard.");
863
+ yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), te("Global state copied to clipboard.");
864
864
  } catch (t) {
865
865
  if (Qt(t))
866
866
  return;
867
- oe("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
867
+ te("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
868
868
  }
869
869
  });
870
870
  }
@@ -872,11 +872,11 @@ function qn(e) {
872
872
  return Ce(this, null, function* () {
873
873
  if (!Yt())
874
874
  try {
875
- Kt(e, JSON.parse(yield navigator.clipboard.readText())), oe("Global state pasted from clipboard.");
875
+ Kt(e, JSON.parse(yield navigator.clipboard.readText())), te("Global state pasted from clipboard.");
876
876
  } catch (t) {
877
877
  if (Qt(t))
878
878
  return;
879
- oe("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
879
+ te("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
880
880
  }
881
881
  });
882
882
  }
@@ -887,7 +887,7 @@ function Bn(e) {
887
887
  type: "text/plain;charset=utf-8"
888
888
  }), "pinia-state.json");
889
889
  } catch (t) {
890
- oe("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
890
+ te("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
891
891
  }
892
892
  });
893
893
  }
@@ -914,9 +914,9 @@ function Jn(e) {
914
914
  if (!o)
915
915
  return;
916
916
  const { text: n, file: s } = o;
917
- Kt(e, JSON.parse(n)), oe(`Global state imported from "${s.name}".`);
917
+ Kt(e, JSON.parse(n)), te(`Global state imported from "${s.name}".`);
918
918
  } catch (t) {
919
- oe("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
919
+ te("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
920
920
  }
921
921
  });
922
922
  }
@@ -1005,7 +1005,7 @@ function Kn(e) {
1005
1005
  }
1006
1006
  }
1007
1007
  let De = !0;
1008
- const et = [], Ie = "pinia:mutations", ie = "pinia", { assign: Xn } = Object, nt = (e) => "🍍 " + e;
1008
+ const et = [], Ie = "pinia:mutations", ae = "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" && 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({
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({
1020
1020
  id: Ie,
1021
1021
  label: "Pinia 🍍",
1022
1022
  color: 15064968
1023
1023
  }), o.addInspector({
1024
- id: ie,
1024
+ id: ae,
1025
1025
  label: "Pinia 🍍",
1026
1026
  icon: "storage",
1027
1027
  treeFilterPlaceholder: "Search stores",
@@ -1036,7 +1036,7 @@ function Zn(e, t) {
1036
1036
  {
1037
1037
  icon: "content_paste",
1038
1038
  action: () => Ce(this, null, function* () {
1039
- yield qn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1039
+ yield qn(t), o.sendInspectorTree(ae), o.sendInspectorState(ae);
1040
1040
  }),
1041
1041
  tooltip: "Replace the state with the content of your clipboard"
1042
1042
  },
@@ -1050,7 +1050,7 @@ function Zn(e, t) {
1050
1050
  {
1051
1051
  icon: "folder_open",
1052
1052
  action: () => Ce(this, null, function* () {
1053
- yield Jn(t), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1053
+ yield Jn(t), o.sendInspectorTree(ae), o.sendInspectorState(ae);
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" ? 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");
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");
1065
1065
  }
1066
1066
  }
1067
1067
  ]
@@ -1105,22 +1105,22 @@ function Zn(e, t) {
1105
1105
  });
1106
1106
  }
1107
1107
  }), o.on.getInspectorTree((n) => {
1108
- if (n.app === e && n.inspectorId === ie) {
1108
+ if (n.app === e && n.inspectorId === ae) {
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 === ie) {
1113
+ if (n.app === e && n.inspectorId === ae) {
1114
1114
  const s = n.nodeId === Ze ? t : t._s.get(n.nodeId);
1115
1115
  if (!s)
1116
1116
  return;
1117
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 === ie) {
1120
+ if (n.app === e && n.inspectorId === ae) {
1121
1121
  const r = n.nodeId === Ze ? t : t._s.get(n.nodeId);
1122
1122
  if (!r)
1123
- return oe(`store "${n.nodeId}" not found`, "error");
1123
+ return te(`store "${n.nodeId}" not found`, "error");
1124
1124
  const { path: l } = n;
1125
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
  }
@@ -1128,10 +1128,10 @@ function Zn(e, t) {
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 oe(`store "${s}" not found`, "error");
1131
+ return te(`store "${s}" not found`, "error");
1132
1132
  const { path: l } = n;
1133
1133
  if (l[0] !== "state")
1134
- return oe(`Invalid path for store "${s}":
1134
+ return te(`Invalid path for store "${s}":
1135
1135
  ${l}
1136
1136
  Only state can be modified.`);
1137
1137
  l[0] = "$state", De = !1, n.set(r, l, n.state.value), De = !0;
@@ -1177,8 +1177,8 @@ function es(e, t) {
1177
1177
  },
1178
1178
  groupId: S
1179
1179
  }
1180
- }), l((w) => {
1181
- $e = void 0, o.addTimelineEvent({
1180
+ }), l((y) => {
1181
+ xe = void 0, o.addTimelineEvent({
1182
1182
  layerId: Ie,
1183
1183
  event: {
1184
1184
  time: n(),
@@ -1188,13 +1188,13 @@ function es(e, t) {
1188
1188
  store: ye(t.$id),
1189
1189
  action: ye(i),
1190
1190
  args: d,
1191
- result: w
1191
+ result: y
1192
1192
  },
1193
1193
  groupId: S
1194
1194
  }
1195
1195
  });
1196
- }), a((w) => {
1197
- $e = void 0, o.addTimelineEvent({
1196
+ }), a((y) => {
1197
+ xe = void 0, o.addTimelineEvent({
1198
1198
  layerId: Ie,
1199
1199
  event: {
1200
1200
  time: n(),
@@ -1205,15 +1205,15 @@ function es(e, t) {
1205
1205
  store: ye(t.$id),
1206
1206
  action: ye(i),
1207
1207
  args: d,
1208
- error: w
1208
+ error: y
1209
1209
  },
1210
1210
  groupId: S
1211
1211
  }
1212
1212
  });
1213
1213
  });
1214
1214
  }, !0), t._customProperties.forEach((l) => {
1215
- Ee(() => k(t[l]), (a, i) => {
1216
- o.notifyComponentUpdate(), o.sendInspectorState(ie), De && o.addTimelineEvent({
1215
+ $e(() => O(t[l]), (a, i) => {
1216
+ o.notifyComponentUpdate(), o.sendInspectorState(ae), De && o.addTimelineEvent({
1217
1217
  layerId: Ie,
1218
1218
  event: {
1219
1219
  time: n(),
@@ -1223,18 +1223,18 @@ function es(e, t) {
1223
1223
  newValue: a,
1224
1224
  oldValue: i
1225
1225
  },
1226
- groupId: $e
1226
+ groupId: xe
1227
1227
  }
1228
1228
  });
1229
1229
  }, { deep: !0 });
1230
1230
  }), t.$subscribe(({ events: l, type: a }, i) => {
1231
- if (o.notifyComponentUpdate(), o.sendInspectorState(ie), !De)
1231
+ if (o.notifyComponentUpdate(), o.sendInspectorState(ae), !De)
1232
1232
  return;
1233
1233
  const d = {
1234
1234
  time: n(),
1235
1235
  title: Kn(a),
1236
1236
  data: Xn({ store: ye(t.$id) }, Qn(l)),
1237
- groupId: $e
1237
+ groupId: xe
1238
1238
  };
1239
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: {
@@ -1261,30 +1261,30 @@ function es(e, t) {
1261
1261
  info: ye("HMR update")
1262
1262
  }
1263
1263
  }
1264
- }), o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie);
1264
+ }), o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae);
1265
1265
  });
1266
1266
  const { $dispose: r } = t;
1267
1267
  t.$dispose = () => {
1268
- r(), o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie), o.getSettings().logStoreChanges && oe(`Disposed "${t.$id}" store 🗑`);
1269
- }, o.notifyComponentUpdate(), o.sendInspectorTree(ie), o.sendInspectorState(ie), o.getSettings().logStoreChanges && oe(`"${t.$id}" store installed 🆕`);
1268
+ r(), o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae), o.getSettings().logStoreChanges && te(`Disposed "${t.$id}" store 🗑`);
1269
+ }, o.notifyComponentUpdate(), o.sendInspectorTree(ae), o.sendInspectorState(ae), o.getSettings().logStoreChanges && te(`"${t.$id}" store installed 🆕`);
1270
1270
  });
1271
1271
  }
1272
- let Zt = 0, $e;
1272
+ let Zt = 0, xe;
1273
1273
  function Ot(e, t, o) {
1274
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 $e = r, Reflect.get(...i);
1279
+ return xe = r, Reflect.get(...i);
1280
1280
  },
1281
1281
  set(...i) {
1282
- return $e = r, Reflect.set(...i);
1282
+ return xe = r, Reflect.set(...i);
1283
1283
  }
1284
1284
  }) : e;
1285
- $e = r;
1285
+ xe = r;
1286
1286
  const a = n[s].apply(l, arguments);
1287
- return $e = void 0, a;
1287
+ return xe = void 0, a;
1288
1288
  };
1289
1289
  }
1290
1290
  function ts({ app: e, store: t, options: o }) {
@@ -1304,7 +1304,7 @@ function ts({ app: e, store: t, options: o }) {
1304
1304
  }
1305
1305
  }
1306
1306
  function os() {
1307
- const e = Nt(!0), t = e.run(() => A({}));
1307
+ const e = Nt(!0), t = e.run(() => V({}));
1308
1308
  let o = [], n = [];
1309
1309
  const s = Ve({
1310
1310
  install(r) {
@@ -1335,7 +1335,7 @@ function eo(e, t) {
1335
1335
  }
1336
1336
  const to = () => {
1337
1337
  };
1338
- function Et(e, t, o, n = to) {
1338
+ function $t(e, t, o, n = to) {
1339
1339
  e.push(t);
1340
1340
  const s = () => {
1341
1341
  const r = e.indexOf(t);
@@ -1348,7 +1348,7 @@ function Te(e, ...t) {
1348
1348
  o(...t);
1349
1349
  });
1350
1350
  }
1351
- const ns = (e) => e(), $t = Symbol(), ct = Symbol();
1351
+ const ns = (e) => e(), xt = 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) {
@@ -1367,7 +1367,7 @@ function rs(e) {
1367
1367
  return !Me(e) || !e.hasOwnProperty(ss);
1368
1368
  }
1369
1369
  const { assign: _e } = Object;
1370
- function xt(e) {
1370
+ function Et(e) {
1371
1371
  return !!(Be(e) && e.effect);
1372
1372
  }
1373
1373
  function Pt(e, t, o, n) {
@@ -1377,13 +1377,13 @@ function Pt(e, t, o, n) {
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(A(s ? s() : {}).value)
1380
+ St(V(s ? s() : {}).value)
1381
1381
  ) : St(o.state.value[e]);
1382
- return _e(S, r, Object.keys(l || {}).reduce((w, N) => (process.env.NODE_ENV !== "production" && N in S && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), w[N] = Ve(Ne(() => {
1382
+ return _e(S, r, Object.keys(l || {}).reduce((y, 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}".`), y[A] = Ve(Ne(() => {
1383
1383
  He(o);
1384
1384
  const U = o._s.get(e);
1385
- return l[N].call(U, U);
1386
- })), w), {}));
1385
+ return l[A].call(U, U);
1386
+ })), y), {}));
1387
1387
  }
1388
1388
  return i = pt(e, d, t, o, n, !0), i;
1389
1389
  }
@@ -1396,12 +1396,12 @@ function pt(e, t, o = {}, n, s, r) {
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 = [], N = [], U;
1400
- const B = n.state.value[e];
1401
- !r && !B && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1402
- const F = A({});
1403
- let j;
1404
- function I(u) {
1399
+ let d, S, y = [], A = [], U;
1400
+ const H = n.state.value[e];
1401
+ !r && !H && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1402
+ const D = V({});
1403
+ let L;
1404
+ function N(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
1407
  type: Se.patchFunction,
@@ -1413,15 +1413,15 @@ function pt(e, t, o = {}, n, s, r) {
1413
1413
  storeId: e,
1414
1414
  events: U
1415
1415
  });
1416
- const y = j = Symbol();
1416
+ const w = L = Symbol();
1417
1417
  ze().then(() => {
1418
- j === y && (d = !0);
1419
- }), S = !0, Te(w, c, n.state.value[e]);
1418
+ L === w && (d = !0);
1419
+ }), S = !0, Te(y, c, n.state.value[e]);
1420
1420
  }
1421
1421
  const K = r ? function() {
1422
- const { state: c } = o, y = c ? c() : {};
1423
- this.$patch(($) => {
1424
- _e($, y);
1422
+ const { state: c } = o, w = c ? c() : {};
1423
+ this.$patch((k) => {
1424
+ _e(k, w);
1425
1425
  });
1426
1426
  } : (
1427
1427
  /* istanbul ignore next */
@@ -1430,62 +1430,62 @@ function pt(e, t, o = {}, n, s, r) {
1430
1430
  } : to
1431
1431
  );
1432
1432
  function W() {
1433
- l.stop(), w = [], N = [], n._s.delete(e);
1433
+ l.stop(), y = [], A = [], n._s.delete(e);
1434
1434
  }
1435
1435
  const Y = (u, c = "") => {
1436
- if ($t in u)
1436
+ if (xt in u)
1437
1437
  return u[ct] = c, u;
1438
- const y = function() {
1438
+ const w = function() {
1439
1439
  He(n);
1440
- const $ = Array.from(arguments), R = [], Q = [];
1441
- function G(f) {
1442
- R.push(f);
1440
+ const k = Array.from(arguments), B = [], Q = [];
1441
+ function F(f) {
1442
+ B.push(f);
1443
1443
  }
1444
1444
  function h(f) {
1445
1445
  Q.push(f);
1446
1446
  }
1447
- Te(N, {
1448
- args: $,
1449
- name: y[ct],
1447
+ Te(A, {
1448
+ args: k,
1449
+ name: w[ct],
1450
1450
  store: g,
1451
- after: G,
1451
+ after: F,
1452
1452
  onError: h
1453
1453
  });
1454
- let z;
1454
+ let j;
1455
1455
  try {
1456
- z = u.apply(this && this.$id === e ? this : g, $);
1456
+ j = u.apply(this && this.$id === e ? this : g, k);
1457
1457
  } catch (f) {
1458
1458
  throw Te(Q, f), f;
1459
1459
  }
1460
- return z instanceof Promise ? z.then((f) => (Te(R, f), f)).catch((f) => (Te(Q, f), Promise.reject(f))) : (Te(R, z), z);
1460
+ return j instanceof Promise ? j.then((f) => (Te(B, f), f)).catch((f) => (Te(Q, f), Promise.reject(f))) : (Te(B, j), j);
1461
1461
  };
1462
- return y[$t] = !0, y[ct] = c, y;
1463
- }, re = /* @__PURE__ */ Ve({
1462
+ return w[xt] = !0, w[ct] = c, w;
1463
+ }, ne = /* @__PURE__ */ Ve({
1464
1464
  actions: {},
1465
1465
  getters: {},
1466
1466
  state: [],
1467
- hotState: F
1467
+ hotState: D
1468
1468
  }), C = {
1469
1469
  _p: n,
1470
1470
  // _s: scope,
1471
1471
  $id: e,
1472
- $onAction: Et.bind(null, N),
1473
- $patch: I,
1472
+ $onAction: $t.bind(null, A),
1473
+ $patch: N,
1474
1474
  $reset: K,
1475
1475
  $subscribe(u, c = {}) {
1476
- const y = Et(w, u, c.detached, () => $()), $ = l.run(() => Ee(() => n.state.value[e], (R) => {
1476
+ const w = $t(y, u, c.detached, () => k()), k = l.run(() => $e(() => n.state.value[e], (B) => {
1477
1477
  (c.flush === "sync" ? S : d) && u({
1478
1478
  storeId: e,
1479
1479
  type: Se.direct,
1480
1480
  events: U
1481
- }, R);
1481
+ }, B);
1482
1482
  }, _e({}, i, c)));
1483
- return y;
1483
+ return w;
1484
1484
  },
1485
1485
  $dispose: W
1486
- }, g = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae ? _e(
1486
+ }, g = ue(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ae ? _e(
1487
1487
  {
1488
- _hmrPayload: re,
1488
+ _hmrPayload: ne,
1489
1489
  _customProperties: Ve(/* @__PURE__ */ new Set())
1490
1490
  // devtools custom properties
1491
1491
  },
@@ -1494,34 +1494,34 @@ function pt(e, t, o = {}, n, s, r) {
1494
1494
  // setupStore
1495
1495
  ) : C);
1496
1496
  n._s.set(e, g);
1497
- const x = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = Nt()).run(() => t({ action: Y }))));
1498
- for (const u in x) {
1499
- const c = x[u];
1500
- if (Be(c) && !xt(c) || ft(c))
1501
- process.env.NODE_ENV !== "production" && s ? Qe(F.value, u, at(x, u)) : r || (B && rs(c) && (Be(c) ? c.value = B[u] : dt(c, B[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && re.state.push(u);
1497
+ const P = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = Nt()).run(() => t({ action: Y }))));
1498
+ for (const u in P) {
1499
+ const c = P[u];
1500
+ if (Be(c) && !Et(c) || ft(c))
1501
+ process.env.NODE_ENV !== "production" && s ? Qe(D.value, u, at(P, u)) : r || (H && rs(c) && (Be(c) ? c.value = H[u] : dt(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
1502
1502
  else if (typeof c == "function") {
1503
- const y = process.env.NODE_ENV !== "production" && s ? c : Y(c, u);
1504
- x[u] = y, process.env.NODE_ENV !== "production" && (re.actions[u] = c), a.actions[u] = c;
1505
- } else process.env.NODE_ENV !== "production" && xt(c) && (re.getters[u] = r ? (
1503
+ const w = process.env.NODE_ENV !== "production" && s ? c : Y(c, u);
1504
+ P[u] = w, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
1505
+ } else process.env.NODE_ENV !== "production" && Et(c) && (ne.getters[u] = r ? (
1506
1506
  // @ts-expect-error
1507
1507
  o.getters[u]
1508
- ) : c, Ae && (x._getters || // @ts-expect-error: same
1509
- (x._getters = Ve([]))).push(u));
1508
+ ) : c, Ae && (P._getters || // @ts-expect-error: same
1509
+ (P._getters = Ve([]))).push(u));
1510
1510
  }
1511
- if (_e(g, x), _e(qe(g), x), Object.defineProperty(g, "$state", {
1512
- get: () => process.env.NODE_ENV !== "production" && s ? F.value : n.state.value[e],
1511
+ if (_e(g, P), _e(qe(g), P), Object.defineProperty(g, "$state", {
1512
+ get: () => process.env.NODE_ENV !== "production" && s ? D.value : n.state.value[e],
1513
1513
  set: (u) => {
1514
1514
  if (process.env.NODE_ENV !== "production" && s)
1515
1515
  throw new Error("cannot set hotState");
1516
- I((c) => {
1516
+ N((c) => {
1517
1517
  _e(c, u);
1518
1518
  });
1519
1519
  }
1520
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
- const y = u.$state[c], $ = g.$state[c];
1524
- typeof y == "object" && Me(y) && Me($) ? eo(y, $) : u.$state[c] = $;
1523
+ const w = u.$state[c], k = g.$state[c];
1524
+ typeof w == "object" && Me(w) && Me(k) ? eo(w, k) : u.$state[c] = k;
1525
1525
  }
1526
1526
  Qe(g, c, at(u.$state, c));
1527
1527
  }), Object.keys(g.$state).forEach((c) => {
@@ -1530,15 +1530,15 @@ function pt(e, t, o = {}, n, s, r) {
1530
1530
  d = !0;
1531
1531
  });
1532
1532
  for (const c in u._hmrPayload.actions) {
1533
- const y = u[c];
1534
- Qe(g, c, Y(y, c));
1533
+ const w = u[c];
1534
+ Qe(g, c, Y(w, c));
1535
1535
  }
1536
1536
  for (const c in u._hmrPayload.getters) {
1537
- const y = u._hmrPayload.getters[c], $ = r ? (
1537
+ const w = u._hmrPayload.getters[c], k = r ? (
1538
1538
  // special handling of options api
1539
- Ne(() => (He(n), y.call(g, g)))
1540
- ) : y;
1541
- Qe(g, c, $);
1539
+ Ne(() => (He(n), w.call(g, g)))
1540
+ ) : w;
1541
+ Qe(g, c, k);
1542
1542
  }
1543
1543
  Object.keys(g._hmrPayload.getters).forEach((c) => {
1544
1544
  c in u._hmrPayload.getters || it(g, c);
@@ -1564,7 +1564,7 @@ function pt(e, t, o = {}, n, s, r) {
1564
1564
  pinia: n,
1565
1565
  options: a
1566
1566
  }));
1567
- Object.keys(c || {}).forEach((y) => g._customProperties.add(y)), _e(g, c);
1567
+ Object.keys(c || {}).forEach((w) => g._customProperties.add(w)), _e(g, c);
1568
1568
  } else
1569
1569
  _e(g, l.run(() => u({
1570
1570
  store: g,
@@ -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}".`), B && r && o.hydrate && o.hydrate(g.$state, B), d = !0, S = !0, g;
1577
+ Found in store "${g.$id}".`), H && r && o.hydrate && o.hydrate(g.$state, H), d = !0, S = !0, g;
1578
1578
  }
1579
1579
  /*! #__NO_SIDE_EFFECTS__ */
1580
1580
  // @__NO_SIDE_EFFECTS__
@@ -1593,14 +1593,14 @@ This will fail in production.`);
1593
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, N = r ? pt(w, t, s, a, !0) : Pt(w, _e({}, s), a, !0);
1597
- i._hotUpdate(N), delete a.state.value[w], a._s.delete(w);
1596
+ const y = "__hot:" + n, A = r ? pt(y, t, s, a, !0) : Pt(y, _e({}, s), a, !0);
1597
+ i._hotUpdate(A), delete a.state.value[y], a._s.delete(y);
1598
1598
  }
1599
1599
  if (process.env.NODE_ENV !== "production" && Ae) {
1600
- const w = bo();
1601
- if (w && w.proxy && // avoid adding stores that are just built for hot module replacement
1600
+ const y = bo();
1601
+ if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
1602
1602
  !i) {
1603
- const N = w.proxy, U = "_pStores" in N ? N._pStores : N._pStores = {};
1603
+ const A = y.proxy, U = "_pStores" in A ? A._pStores : A._pStores = {};
1604
1604
  U[n] = S;
1605
1605
  }
1606
1606
  }
@@ -1732,14 +1732,14 @@ function It(e, {
1732
1732
  }, d, S = !0) {
1733
1733
  try {
1734
1734
  S && (a == null || a(d));
1735
- const w = t.getItem(n);
1736
- if (w) {
1737
- const N = o.deserialize(w), U = r ? no(N, r) : N, B = l ? so(U, l) : U;
1738
- e.$patch(B);
1735
+ const y = t.getItem(n);
1736
+ if (y) {
1737
+ const A = o.deserialize(y), U = r ? no(A, r) : A, H = l ? so(U, l) : U;
1738
+ e.$patch(H);
1739
1739
  }
1740
1740
  S && (i == null || i(d));
1741
- } catch (w) {
1742
- s && console.error("[pinia-plugin-persistedstate]", w);
1741
+ } catch (y) {
1742
+ s && console.error("[pinia-plugin-persistedstate]", y);
1743
1743
  }
1744
1744
  }
1745
1745
  function Vt(e, {
@@ -1790,11 +1790,11 @@ function hs(e = {}) {
1790
1790
  (n) => {
1791
1791
  var s, r, l, a, i, d, S;
1792
1792
  return {
1793
- key: (e.key ? e.key : (w) => w)((s = n.key) != null ? s : t.store.$id),
1793
+ key: (e.key ? e.key : (y) => y)((s = n.key) != null ? s : t.store.$id),
1794
1794
  debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
1795
1795
  serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
1796
- serialize: (w) => JSON.stringify(w),
1797
- deserialize: (w) => ps(w)
1796
+ serialize: (y) => JSON.stringify(y),
1797
+ deserialize: (y) => ps(y)
1798
1798
  },
1799
1799
  storage: (S = (d = n.storage) != null ? d : e.storage) != null ? S : window.localStorage,
1800
1800
  beforeHydrate: n.beforeHydrate,
@@ -1838,15 +1838,15 @@ const ro = /* @__PURE__ */ as("console", {
1838
1838
  return s;
1839
1839
  });
1840
1840
  return (s, r) => {
1841
- const l = O("el-menu");
1842
- return k(Ct).length > 0 ? (p(), M("div", gs, [
1841
+ const l = $("el-menu");
1842
+ return O(Ct).length > 0 ? (p(), M("div", gs, [
1843
1843
  _(l, {
1844
1844
  class: "menu",
1845
1845
  "default-active": n.value,
1846
1846
  router: ""
1847
1847
  }, {
1848
1848
  default: m(() => [
1849
- (p(!0), M(se, null, he(k(Ct), (a) => (p(), V(In, {
1849
+ (p(!0), M(oe, null, me(O(Ct), (a) => (p(), I(In, {
1850
1850
  key: a.path,
1851
1851
  menu: a
1852
1852
  }, null, 8, ["menu"]))), 128))
@@ -1863,17 +1863,17 @@ const ro = /* @__PURE__ */ as("console", {
1863
1863
  helpDocUrl: {}
1864
1864
  },
1865
1865
  setup(e) {
1866
- const t = ro(gt), o = Je(), n = A(t.menu.collapsed), s = A(), r = e;
1866
+ const t = ro(gt), o = Je(), n = V(t.menu.collapsed), s = V(), r = e;
1867
1867
  return (l, a) => {
1868
- const i = O("router-view"), d = O("el-scrollbar");
1869
- return p(), M(se, null, [
1870
- k(o).query.embedded !== "true" ? (p(), V(Lt, {
1868
+ const i = $("router-view"), d = $("el-scrollbar");
1869
+ return p(), M(oe, null, [
1870
+ O(o).query.embedded !== "true" ? (p(), I(Lt, {
1871
1871
  key: 0,
1872
1872
  title: r.title,
1873
1873
  helpDocUrl: r.helpDocUrl
1874
1874
  }, null, 8, ["title", "helpDocUrl"])) : J("", !0),
1875
1875
  v("div", vs, [
1876
- k(o).query.embedded !== "true" ? (p(), V(ao, {
1876
+ O(o).query.embedded !== "true" ? (p(), I(ao, {
1877
1877
  key: 0,
1878
1878
  menuCollapsed: n.value,
1879
1879
  "onUpdate:menuCollapsed": a[0] || (a[0] = (S) => n.value = S)
@@ -1904,16 +1904,16 @@ function Ss(e, t) {
1904
1904
  wo('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
1905
1905
  ]));
1906
1906
  }
1907
- const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" }, Es = { class: "content" };
1908
- function $s(e, t) {
1909
- const o = O("el-button");
1907
+ const Cs = { render: Ss }, ks = {}, Os = { class: "wrapper" }, $s = { class: "content" };
1908
+ function xs(e, t) {
1909
+ const o = $("el-button");
1910
1910
  return p(), M("div", Os, [
1911
1911
  t[4] || (t[4] = v("img", { src: Cs }, null, -1)),
1912
- v("div", Es, [
1912
+ v("div", $s, [
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
- Z("Apply")
1916
+ ee("Apply")
1917
1917
  ])),
1918
1918
  _: 1
1919
1919
  }),
@@ -1921,17 +1921,17 @@ function $s(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
- Z("Go Back")
1924
+ ee("Go Back")
1925
1925
  ])),
1926
1926
  _: 1
1927
1927
  })
1928
1928
  ])
1929
1929
  ]);
1930
1930
  }
1931
- const xs = /* @__PURE__ */ ve(ks, [["render", $s], ["__scopeId", "data-v-0155b361"]]), Ps = {};
1931
+ const Es = /* @__PURE__ */ ve(ks, [["render", xs], ["__scopeId", "data-v-0155b361"]]), Ps = {};
1932
1932
  function Is(e, t) {
1933
- const o = O("router-view");
1934
- return p(), V(o);
1933
+ const o = $("router-view");
1934
+ return p(), I(o);
1935
1935
  }
1936
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",
@@ -1940,7 +1940,7 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
1940
1940
  tableRef: {}
1941
1941
  },
1942
1942
  setup(e) {
1943
- const { t } = We(), o = Je(), n = rt(), s = e, r = A(s.cards[0].key);
1943
+ const { t } = We(), o = Je(), n = rt(), s = e, r = V(s.cards[0].key);
1944
1944
  function l(a) {
1945
1945
  a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
1946
1946
  path: o.path,
@@ -1959,7 +1959,7 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
1959
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
- }), Ee(
1962
+ }), $e(
1963
1963
  () => s.cards,
1964
1964
  (a) => {
1965
1965
  if (o.query.tab !== void 0) {
@@ -1975,23 +1975,23 @@ const Vs = /* @__PURE__ */ ve(Ps, [["render", Is]]), As = { class: "card-wrapper
1975
1975
  deep: !0
1976
1976
  }
1977
1977
  ), (a, i) => (p(), M("div", As, [
1978
- (p(!0), M(se, null, he(s.cards, (d) => (p(), M("div", {
1978
+ (p(!0), M(oe, null, me(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
  }, [
1982
1982
  v("div", Ms, [
1983
1983
  v("div", Us, [
1984
1984
  v("div", Ts, [
1985
- d.icon ? (p(), V(tt(d.icon), {
1985
+ d.icon ? (p(), I(tt(d.icon), {
1986
1986
  key: 0,
1987
1987
  class: "svg-icon"
1988
1988
  })) : J("", !0)
1989
1989
  ]),
1990
1990
  v("span", {
1991
1991
  style: Re({ color: d.disabled ? "#aaa" : "black" })
1992
- }, D(k(t)(d.label)), 5)
1992
+ }, G(O(t)(d.label)), 5)
1993
1993
  ]),
1994
- v("span", null, D(d.count), 1)
1994
+ v("span", null, G(d.count), 1)
1995
1995
  ])
1996
1996
  ], 10, Ns))), 256))
1997
1997
  ]));
@@ -2031,13 +2031,13 @@ const Ge = (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 = 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(
2034
+ const { t: n } = ot.global, s = e, r = ue({}), l = V(!1), a = V(), i = ue({}), d = V(!0), S = (C) => s.mode === "view" && (Y(C, void 0) || Y(C, "input") || Y(C, "select") || Y(C, "password") || Y(C, "input-number")), y = Ne(() => s.model.fields ? s.model.fields.filter(
2035
2035
  (C) => {
2036
- var x, u, c, y;
2037
- let g = C.visible !== !1 && ((x = C.formItemAttributes) == null ? void 0 : x.visible) !== !1;
2036
+ var P, u, c, w;
2037
+ let g = C.visible !== !1 && ((P = C.formItemAttributes) == null ? void 0 : P.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
- let b = (y = C.formItemAttributes) == null ? void 0 : y.showCondition;
2040
+ let b = (w = C.formItemAttributes) == null ? void 0 : w.showCondition;
2041
2041
  if (b && b.field && b.value !== void 0) {
2042
2042
  if (b.operator === void 0 || b.operator === "==")
2043
2043
  return r[b.field] === b.value;
@@ -2051,47 +2051,47 @@ const Ge = (e) => {
2051
2051
  return g;
2052
2052
  }
2053
2053
  ) : []);
2054
- Ee([() => s.id, () => s.sessionId], () => {
2054
+ $e([() => s.id, () => s.sessionId], () => {
2055
2055
  console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), U();
2056
2056
  }, {
2057
2057
  immediate: !0
2058
2058
  });
2059
- function N() {
2059
+ function A() {
2060
2060
  console.log("FormView.initFormFields: begin");
2061
2061
  const C = s.model.fields;
2062
2062
  let g = {};
2063
2063
  C == null || C.forEach((b) => {
2064
- var x, u, c, y, $, R, Q, G, h, z, f, E, T;
2065
- if (r[b.prop] = null, b.visible !== !1 && ((x = b.formItemAttributes) == null ? void 0 : x.visible) !== !1) {
2064
+ var P, u, c, w, k, B, Q, F, h, j, f, x, T;
2065
+ if (r[b.prop] = null, b.visible !== !1 && ((P = b.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
2066
2066
  if (((u = b.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[b.prop] = (c = b.formItemAttributes) == null ? void 0 : c.defaultValue : r[b.prop] = void 0, s.mode !== "view") {
2067
- let H = (y = b.formItemAttributes) == null ? void 0 : y.validationRule;
2068
- H !== void 0 && (g[b.prop] = H), Ge(i), Object.assign(i, g);
2067
+ let Z = (w = b.formItemAttributes) == null ? void 0 : w.validationRule;
2068
+ Z !== void 0 && (g[b.prop] = Z), Ge(i), Object.assign(i, g);
2069
2069
  }
2070
- const P = b.formItemAttributes, X = P == null ? void 0 : P.type, ce = ($ = P == null ? void 0 : P.selectAttributes) == null ? void 0 : $.useDatableDict, ue = (R = P == null ? void 0 : P.selectAttributes) == null ? void 0 : R.dictId, fe = (Q = P == null ? void 0 : P.selectAttributes) == null ? void 0 : Q.api, ae = (G = P == null ? void 0 : P.selectAttributes) == null ? void 0 : G.valueMappingField, ee = (h = P == null ? void 0 : P.selectAttributes) == null ? void 0 : h.labelMappingField;
2070
+ const E = b.formItemAttributes, X = E == null ? void 0 : E.type, le = (k = E == null ? void 0 : E.selectAttributes) == null ? void 0 : k.useDatableDict, ie = (B = E == null ? void 0 : E.selectAttributes) == null ? void 0 : B.dictId, de = (Q = E == null ? void 0 : E.selectAttributes) == null ? void 0 : Q.api, se = (F = E == null ? void 0 : E.selectAttributes) == null ? void 0 : F.valueMappingField, z = (h = E == null ? void 0 : E.selectAttributes) == null ? void 0 : h.labelMappingField;
2071
2071
  if (X === "select") {
2072
- if (ce) {
2073
- let te = `${Ne(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ue}`;
2074
- const ne = (z = P == null ? void 0 : P.selectAttributes) == null ? void 0 : z.queryParamName, le = (f = P == null ? void 0 : P.selectAttributes) == null ? void 0 : f.queryParamValueField;
2075
- ne && (te = `${te}?${ne}=${s.id}`), le || Oe(te, "GET", {}).then(({ data: me }) => {
2072
+ if (le) {
2073
+ let re = `${Ne(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ie}`;
2074
+ const pe = (j = E == null ? void 0 : E.selectAttributes) == null ? void 0 : j.queryParamName, he = (f = E == null ? void 0 : E.selectAttributes) == null ? void 0 : f.queryParamValueField;
2075
+ pe && (re = `${re}?${pe}=${s.id}`), he || Oe(re, "GET", {}).then(({ data: fe }) => {
2076
2076
  var q;
2077
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
2078
+ let R = [];
2079
+ Array.isArray(fe.data) ? R = fe.data : fe.data.list && Array.isArray(fe.data.list) && (R = fe.data.list), b.formItemAttributes.selectAttributes.options = R.map((ce) => ({
2080
+ value: ce.dbOrdinal,
2081
+ label: ce.value
2082
2082
  }));
2083
2083
  }
2084
2084
  });
2085
- } else if (fe) {
2086
- let H = fe;
2087
- const te = (E = P == null ? void 0 : P.selectAttributes) == null ? void 0 : E.queryParamName, ne = (T = P == null ? void 0 : P.selectAttributes) == null ? void 0 : T.queryParamValueField;
2088
- te && (H = `${H}?${te}=${s.id}`), ne || Oe(H, "GET", {}).then(({ data: le }) => {
2089
- var me;
2090
- if ((me = b.formItemAttributes) != null && me.selectAttributes) {
2085
+ } else if (de) {
2086
+ let Z = de;
2087
+ const re = (x = E == null ? void 0 : E.selectAttributes) == null ? void 0 : x.queryParamName, pe = (T = E == null ? void 0 : E.selectAttributes) == null ? void 0 : T.queryParamValueField;
2088
+ re && (Z = `${Z}?${re}=${s.id}`), pe || Oe(Z, "GET", {}).then(({ data: he }) => {
2089
+ var fe;
2090
+ if ((fe = b.formItemAttributes) != null && fe.selectAttributes) {
2091
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
2092
+ Array.isArray(he.data) ? q = he.data : he.data.list && Array.isArray(he.data.list) && (q = he.data.list), b.formItemAttributes.selectAttributes.options = q.map((R) => ({
2093
+ value: se ? R[se] : R.value,
2094
+ label: z ? R[z] : R.label
2095
2095
  }));
2096
2096
  }
2097
2097
  });
@@ -2102,38 +2102,38 @@ const Ge = (e) => {
2102
2102
  }
2103
2103
  function U() {
2104
2104
  var C;
2105
- console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), d.value = (C = s.model.useI18n) != null ? C : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
2105
+ console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), D(), 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, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
2106
2106
  Ge(r), Object.assign(r, g.data), l.value = !1;
2107
2107
  }));
2108
2108
  }
2109
- function B() {
2109
+ function H() {
2110
2110
  return new Promise((C, g) => {
2111
- var x, u, c, y;
2112
- ((u = (x = s.model.formConfig) == null ? void 0 : x.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (y = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : y.beforeSubmit(r));
2111
+ var P, u, c, w;
2112
+ ((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (w = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : w.beforeSubmit(r));
2113
2113
  let b = s.mode === "create" ? "POST" : "PUT";
2114
- s.model.api && Oe(s.model.api, b, r).then(({ data: $ }) => {
2115
- var R, Q, G, h;
2116
- $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((Q = (R = s.model.formConfig) == null ? void 0 : R.functions) == null ? void 0 : Q.afterSubmit) !== void 0 && ((h = (G = s.model.formConfig) == null ? void 0 : G.functions) == null || h.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
2114
+ s.model.api && Oe(s.model.api, b, r).then(({ data: k }) => {
2115
+ var B, Q, F, h;
2116
+ k.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((Q = (B = s.model.formConfig) == null ? void 0 : B.functions) == null ? void 0 : Q.afterSubmit) !== void 0 && ((h = (F = s.model.formConfig) == null ? void 0 : F.functions) == null || h.afterSubmit(k.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
2117
2117
  });
2118
2118
  });
2119
2119
  }
2120
- function F() {
2120
+ function D() {
2121
2121
  var C;
2122
2122
  console.log("FormView.reset: begin"), (C = a.value) == null || C.resetFields();
2123
2123
  }
2124
- function j(C) {
2124
+ function L(C) {
2125
2125
  return C.label ? d ? n(C.label) : C.label : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase();
2126
2126
  }
2127
- function I(C) {
2128
- var g, b, x, u;
2127
+ function N(C) {
2128
+ var g, b, P, u;
2129
2129
  if (C) {
2130
2130
  if (Y(C, "select")) {
2131
2131
  const c = (b = (g = C.tableColumnAttributes) == null ? void 0 : g.functions) == null ? void 0 : b.transformValue;
2132
2132
  if (c)
2133
2133
  return c(r[C.prop]);
2134
- const y = (u = (x = C.formItemAttributes) == null ? void 0 : x.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2135
- if (y)
2136
- return r[y];
2134
+ const w = (u = (P = C.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2135
+ if (w)
2136
+ return r[w];
2137
2137
  }
2138
2138
  return r[C.prop];
2139
2139
  }
@@ -2143,8 +2143,8 @@ const Ge = (e) => {
2143
2143
  return ((g = C.formItemAttributes) == null ? void 0 : g.updatable) === !1 && s.mode === "update";
2144
2144
  }
2145
2145
  function W(C, g) {
2146
- var x, u;
2147
- const b = (u = (x = g.formItemAttributes) == null ? void 0 : x.type) != null ? u : "input";
2146
+ var P, u;
2147
+ const b = (u = (P = g.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
2148
2148
  switch (C) {
2149
2149
  case "input":
2150
2150
  return s.mode === "view" ? !1 : b === "input" || b === "password";
@@ -2158,21 +2158,21 @@ const Ge = (e) => {
2158
2158
  var b;
2159
2159
  return ((b = C.formItemAttributes) == null ? void 0 : b.type) === g;
2160
2160
  }
2161
- function re(C) {
2161
+ function ne(C) {
2162
2162
  var g;
2163
2163
  for (let b of s.model.fields) {
2164
- const x = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes;
2165
- if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !x || !x.queryParamValueField) && x.queryParamValueField === C.prop) {
2166
- const u = x.api;
2164
+ const P = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes;
2165
+ if (!(!b.formItemAttributes || b.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === C.prop) {
2166
+ const u = P.api;
2167
2167
  if (u) {
2168
2168
  let c = u;
2169
- const y = x.queryParamName;
2170
- y && (c = `${c}?${y}=${r[x.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: $ }) => {
2171
- if (x) {
2172
- let R = [];
2173
- Array.isArray($.data) ? R = $.data : $.data.list && Array.isArray($.data.list) && (R = $.data.list), x.options = R.map((Q) => ({
2174
- value: x.valueMappingField ? Q[x.valueMappingField] : Q.value,
2175
- label: x.labelMappingField ? Q[x.labelMappingField] : Q.label
2169
+ const w = P.queryParamName;
2170
+ w && (c = `${c}?${w}=${r[P.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: k }) => {
2171
+ if (P) {
2172
+ let B = [];
2173
+ Array.isArray(k.data) ? B = k.data : k.data.list && Array.isArray(k.data.list) && (B = k.data.list), P.options = B.map((Q) => ({
2174
+ value: P.valueMappingField ? Q[P.valueMappingField] : Q.value,
2175
+ label: P.labelMappingField ? Q[P.labelMappingField] : Q.label
2176
2176
  }));
2177
2177
  }
2178
2178
  });
@@ -2182,12 +2182,12 @@ const Ge = (e) => {
2182
2182
  }
2183
2183
  return t({
2184
2184
  refresh: U,
2185
- reset: F,
2186
- submit: B,
2185
+ reset: D,
2186
+ submit: H,
2187
2187
  formData: r
2188
2188
  }), (C, g) => {
2189
- const b = O("el-input"), x = O("el-switch"), u = O("el-date-picker"), c = O("el-option"), y = O("el-select"), $ = O("el-input-number"), R = O("el-form-item"), Q = O("el-form"), G = Ut("loading");
2190
- return Tt((p(), V(Q, {
2189
+ const b = $("el-input"), P = $("el-switch"), u = $("el-date-picker"), c = $("el-option"), w = $("el-select"), k = $("el-input-number"), B = $("el-form-item"), Q = $("el-form"), F = Ut("loading");
2190
+ return Tt((p(), I(Q, {
2191
2191
  ref_key: "formRef",
2192
2192
  ref: a,
2193
2193
  model: r,
@@ -2199,65 +2199,65 @@ const Ge = (e) => {
2199
2199
  inline: !s.disableInline
2200
2200
  }, {
2201
2201
  default: m(() => [
2202
- (p(!0), M(se, null, he(w.value, (h) => (p(), V(R, {
2202
+ (p(!0), M(oe, null, me(y.value, (h) => (p(), I(B, {
2203
2203
  class: "form-item",
2204
2204
  style: Re({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2205
2205
  prop: h.prop,
2206
- label: j(h)
2206
+ label: L(h)
2207
2207
  }, {
2208
2208
  default: m(() => {
2209
- var z, f, E, T, P, X, ce, ue, fe, ae, ee, H, te, ne, le, me;
2209
+ var j, f, x, T, E, X, le, ie, de, se, z, Z, re, pe, he, fe;
2210
2210
  return [
2211
- W("input", h) ? (p(), V(b, {
2211
+ W("input", h) ? (p(), I(b, {
2212
2212
  key: 0,
2213
2213
  type: Y(h, "password") ? "password" : "text",
2214
2214
  modelValue: r[h.prop],
2215
2215
  "onUpdate:modelValue": (q) => r[h.prop] = q,
2216
- placeholder: (z = h.formItemAttributes) == null ? void 0 : z.placeholder,
2216
+ placeholder: (j = h.formItemAttributes) == null ? void 0 : j.placeholder,
2217
2217
  disabled: K(h)
2218
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, {
2219
+ S(h) ? (p(), M("span", Fs, G(N(h)), 1)) : J("", !0),
2220
+ Y(h, "switch") ? (p(), I(P, {
2221
2221
  key: 2,
2222
2222
  modelValue: r[h.prop],
2223
2223
  "onUpdate:modelValue": (q) => r[h.prop] = q,
2224
2224
  disabled: C.mode === "view"
2225
2225
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : J("", !0),
2226
- Y(h, "datepicker") ? (p(), V(u, {
2226
+ Y(h, "datepicker") ? (p(), I(u, {
2227
2227
  key: 3,
2228
2228
  type: "date",
2229
2229
  "value-format": "YYYY-MM-DD",
2230
2230
  modelValue: r[h.prop],
2231
2231
  "onUpdate:modelValue": (q) => r[h.prop] = q
2232
2232
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : J("", !0),
2233
- Y(h, "select") && C.mode !== "view" ? (p(), V(y, {
2233
+ Y(h, "select") && C.mode !== "view" ? (p(), I(w, {
2234
2234
  key: 4,
2235
- filterable: (E = (f = h.formItemAttributes) == null ? void 0 : f.selectAttributes) == null ? void 0 : E.allowCreate,
2236
- "allow-create": (P = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : P.allowCreate,
2237
- "default-first-option": (ce = (X = h.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : ce.allowCreate,
2235
+ filterable: (x = (f = h.formItemAttributes) == null ? void 0 : f.selectAttributes) == null ? void 0 : x.allowCreate,
2236
+ "allow-create": (E = (T = h.formItemAttributes) == null ? void 0 : T.selectAttributes) == null ? void 0 : E.allowCreate,
2237
+ "default-first-option": (le = (X = h.formItemAttributes) == null ? void 0 : X.selectAttributes) == null ? void 0 : le.allowCreate,
2238
2238
  modelValue: r[h.prop],
2239
2239
  "onUpdate:modelValue": (q) => r[h.prop] = q,
2240
2240
  disabled: K(h),
2241
- onChange: (q) => re(h)
2241
+ onChange: (q) => ne(h)
2242
2242
  }, {
2243
2243
  default: m(() => {
2244
- var q, L;
2244
+ var q, R;
2245
2245
  return [
2246
- (p(!0), M(se, null, he((L = (q = h.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : L.options, (de) => (p(), V(c, {
2247
- value: de.value,
2248
- label: de.label
2246
+ (p(!0), M(oe, null, me((R = (q = h.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : R.options, (ce) => (p(), I(c, {
2247
+ value: ce.value,
2248
+ label: ce.label
2249
2249
  }, null, 8, ["value", "label"]))), 256))
2250
2250
  ];
2251
2251
  }),
2252
2252
  _: 2
2253
2253
  }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : J("", !0),
2254
- Y(h, "input-number") && C.mode !== "view" ? (p(), V($, {
2254
+ Y(h, "input-number") && C.mode !== "view" ? (p(), I(k, {
2255
2255
  key: 5,
2256
2256
  modelValue: r[h.prop],
2257
2257
  "onUpdate:modelValue": (q) => r[h.prop] = q,
2258
- min: (ae = (fe = (ue = h.formItemAttributes) == null ? void 0 : ue.inputNumber) == null ? void 0 : fe.min) != null ? ae : Number.NEGATIVE_INFINITY,
2259
- max: (te = (H = (ee = h.formItemAttributes) == null ? void 0 : ee.inputNumber) == null ? void 0 : H.max) != null ? te : Number.POSITIVE_INFINITY,
2260
- step: (me = (le = (ne = h.formItemAttributes) == null ? void 0 : ne.inputNumber) == null ? void 0 : le.step) != null ? me : 1,
2258
+ min: (se = (de = (ie = h.formItemAttributes) == null ? void 0 : ie.inputNumber) == null ? void 0 : de.min) != null ? se : Number.NEGATIVE_INFINITY,
2259
+ max: (re = (Z = (z = h.formItemAttributes) == null ? void 0 : z.inputNumber) == null ? void 0 : Z.max) != null ? re : Number.POSITIVE_INFINITY,
2260
+ step: (fe = (he = (pe = h.formItemAttributes) == null ? void 0 : pe.inputNumber) == null ? void 0 : he.step) != null ? fe : 1,
2261
2261
  "value-on-clear": -10
2262
2262
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : J("", !0)
2263
2263
  ];
@@ -2267,7 +2267,7 @@ const Ge = (e) => {
2267
2267
  ]),
2268
2268
  _: 1
2269
2269
  }, 8, ["model", "rules", "inline"])), [
2270
- [G, l.value]
2270
+ [F, l.value]
2271
2271
  ]);
2272
2272
  };
2273
2273
  }
@@ -2286,8 +2286,8 @@ const Ge = (e) => {
2286
2286
  },
2287
2287
  emits: ["update:visible", "update:id"],
2288
2288
  setup(e, { expose: t, emit: o }) {
2289
- const { t: n } = We(), s = e, r = A(0), l = o, a = A();
2290
- Ee(() => s.visible, () => {
2289
+ const { t: n } = We(), s = e, r = V(0), l = o, a = V();
2290
+ $e(() => s.visible, () => {
2291
2291
  s.visible && r.value++;
2292
2292
  });
2293
2293
  function i() {
@@ -2302,9 +2302,9 @@ const Ge = (e) => {
2302
2302
  return t({
2303
2303
  close: d,
2304
2304
  refresh: i
2305
- }), (w, N) => {
2306
- const U = O("el-step"), B = O("el-steps"), F = O("el-button"), j = O("el-dialog");
2307
- return p(), V(j, {
2305
+ }), (y, A) => {
2306
+ const U = $("el-step"), H = $("el-steps"), D = $("el-button"), L = $("el-dialog");
2307
+ return p(), I(L, {
2308
2308
  class: "console-dialog",
2309
2309
  title: "Edit",
2310
2310
  "align-center": "",
@@ -2313,35 +2313,35 @@ const Ge = (e) => {
2313
2313
  onClose: d
2314
2314
  }, {
2315
2315
  footer: m(() => {
2316
- var I;
2316
+ var N;
2317
2317
  return [
2318
2318
  v("div", {
2319
2319
  class: "dialog-footer",
2320
2320
  style: Re({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2321
2321
  }, [
2322
2322
  v("div", js, [
2323
- (p(!0), M(se, null, he((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (K) => (p(), V(F, {
2323
+ (p(!0), M(oe, null, me((N = s.model.formConfig) == null ? void 0 : N.dialogButtons, (K) => (p(), I(D, {
2324
2324
  onClick: (W) => K.function(a.value.formData)
2325
2325
  }, {
2326
2326
  default: m(() => [
2327
- Z(D(k(n)(K.label)), 1)
2327
+ ee(G(O(n)(K.label)), 1)
2328
2328
  ]),
2329
2329
  _: 2
2330
2330
  }, 1032, ["onClick"]))), 256))
2331
2331
  ]),
2332
2332
  v("div", null, [
2333
- _(F, { onClick: d }, {
2333
+ _(D, { onClick: d }, {
2334
2334
  default: m(() => [
2335
- Z(D(k(n)("common.basic.cancel")), 1)
2335
+ ee(G(O(n)("common.basic.cancel")), 1)
2336
2336
  ]),
2337
2337
  _: 1
2338
2338
  }),
2339
- _(F, {
2339
+ _(D, {
2340
2340
  type: "primary",
2341
2341
  onClick: S
2342
2342
  }, {
2343
2343
  default: m(() => [
2344
- Z(D(k(n)("common.basic.save")), 1)
2344
+ ee(G(O(n)("common.basic.save")), 1)
2345
2345
  ]),
2346
2346
  _: 1
2347
2347
  })
@@ -2353,7 +2353,7 @@ const Ge = (e) => {
2353
2353
  v("div", Gs, [
2354
2354
  _(io, {
2355
2355
  class: "form-view",
2356
- style: Re({ width: w.showProcess ? "calc(100% - 280px)" : "100%" }),
2356
+ style: Re({ width: y.showProcess ? "calc(100% - 280px)" : "100%" }),
2357
2357
  ref_key: "formViewRef",
2358
2358
  ref: a,
2359
2359
  id: s.id,
@@ -2364,9 +2364,9 @@ const Ge = (e) => {
2364
2364
  closeDialogFunc: d,
2365
2365
  disableInline: s.showProcess
2366
2366
  }, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
2367
- w.showProcess ? (p(), M("div", Ls, [
2368
- N[0] || (N[0] = v("h1", null, "流程动态", -1)),
2369
- _(B, {
2367
+ y.showProcess ? (p(), M("div", Ls, [
2368
+ A[0] || (A[0] = v("h1", null, "流程动态", -1)),
2369
+ _(H, {
2370
2370
  style: { height: "90%" },
2371
2371
  direction: "vertical",
2372
2372
  active: 1
@@ -2390,39 +2390,39 @@ const Ge = (e) => {
2390
2390
  model: {}
2391
2391
  },
2392
2392
  setup(e, { expose: t }) {
2393
- const { t: o } = ot.global, n = e, s = pe([]), r = pe({
2393
+ const { t: o } = ot.global, n = e, s = ue([]), r = ue({
2394
2394
  showPane: !0
2395
- }), l = A(""), a = A(!0), i = A(!1), d = rt(), S = A(""), w = pe([]), N = pe([]), U = A(), B = A([]), F = A("create"), j = A(!0), I = A(!1), K = A(""), W = pe({
2395
+ }), l = V(""), a = V(!0), i = V(!1), d = rt(), S = V(""), y = ue([]), A = ue([]), U = V(), H = V([]), D = V("create"), L = V(!0), N = V(!1), K = V(""), W = ue({
2396
2396
  pageSize: 10,
2397
2397
  pageNo: 1,
2398
2398
  totalElements: 0
2399
2399
  }), Y = Ne(() => s.filter(
2400
2400
  (f) => {
2401
- var E, T;
2402
- return ((E = f.formItemAttributes) == null ? void 0 : E.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
2401
+ var x, T;
2402
+ return ((x = f.formItemAttributes) == null ? void 0 : x.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
2403
2403
  }
2404
2404
  ));
2405
- function re(f, E) {
2406
- var ce, ue, fe, ae;
2407
- let T = E.row[f.prop];
2408
- const P = (ue = (ce = f.tableColumnAttributes) == null ? void 0 : ce.functions) == null ? void 0 : ue.transformValue, X = (fe = f.tableColumnAttributes) == null ? void 0 : fe.transformValueMappings;
2409
- if (P)
2410
- T = P(T);
2405
+ function ne(f, x) {
2406
+ var le, ie, de, se;
2407
+ let T = x.row[f.prop];
2408
+ const E = (ie = (le = f.tableColumnAttributes) == null ? void 0 : le.functions) == null ? void 0 : ie.transformValue, X = (de = f.tableColumnAttributes) == null ? void 0 : de.transformValueMappings;
2409
+ if (E)
2410
+ T = E(T);
2411
2411
  else if (X && X.length > 0) {
2412
- for (let ee of X)
2413
- if (T === ee.value) {
2414
- T = o(ee.label);
2412
+ for (let z of X)
2413
+ if (T === z.value) {
2414
+ T = o(z.label);
2415
2415
  break;
2416
2416
  }
2417
- } else if (((ae = f.formItemAttributes) == null ? void 0 : ae.type) === "select") {
2418
- const ee = f.formItemAttributes.selectAttributes;
2419
- if (ee) {
2420
- if (ee.viewModeLabelField)
2421
- T = E.row[ee.viewModeLabelField];
2422
- else if (ee.options && ee.options.length > 0) {
2423
- for (let H of ee.options)
2424
- if (H.value === E.row[f.prop]) {
2425
- T = H.label;
2417
+ } else if (((se = f.formItemAttributes) == null ? void 0 : se.type) === "select") {
2418
+ const z = f.formItemAttributes.selectAttributes;
2419
+ if (z) {
2420
+ if (z.viewModeLabelField)
2421
+ T = x.row[z.viewModeLabelField];
2422
+ else if (z.options && z.options.length > 0) {
2423
+ for (let Z of z.options)
2424
+ if (Z.value === x.row[f.prop]) {
2425
+ T = Z.label;
2426
2426
  break;
2427
2427
  }
2428
2428
  }
@@ -2430,30 +2430,30 @@ const Ge = (e) => {
2430
2430
  }
2431
2431
  return T;
2432
2432
  }
2433
- function C(f, E) {
2434
- var T, P;
2435
- return f.label ? o(f.label) : (P = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : P.call(T, E.$index, E.row);
2433
+ function C(f, x) {
2434
+ var T, E;
2435
+ return f.label ? o(f.label) : (E = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : E.call(T, x.$index, x.row);
2436
2436
  }
2437
2437
  function g(f) {
2438
2438
  Ge(n.model), Object.assign(n.model, f);
2439
2439
  }
2440
2440
  function b() {
2441
- var E, T, P;
2442
- if (j.value = !0, !n.model || !n.model.api)
2441
+ var x, T, E;
2442
+ if (L.value = !0, !n.model || !n.model.api)
2443
2443
  return;
2444
- Ge(r), r.showPane = !0, Object.assign(r, (E = n.model.tableConfig) != null ? E : {}), s.splice(0, s.length, ...n.model.fields), l.value = (T = n.model.route) != null ? T : "", a.value = (P = n.model.useI18n) != null ? P : !0;
2444
+ Ge(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (T = n.model.route) != null ? T : "", a.value = (E = n.model.useI18n) != null ? E : !0;
2445
2445
  let f = Ye({}, r.queryParams);
2446
2446
  f.pageSize = W.pageSize, f.pageNo = W.pageNo, f.search = S.value, Oe(n.model.api, "GET", f).then(({ data: X }) => {
2447
- const { list: ce, totalCount: ue } = X.data;
2448
- w.splice(0, w.length, ...ce), W.totalElements = ue, j.value = !1;
2447
+ const { list: le, totalCount: ie } = X.data;
2448
+ y.splice(0, y.length, ...le), W.totalElements = ie, L.value = !1;
2449
2449
  });
2450
2450
  }
2451
- function x() {
2452
- var f, E;
2453
- r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (E = r.functions) == null || E.create() : (F.value = "create", K.value = "", i.value = !0);
2451
+ function P() {
2452
+ var f, x;
2453
+ r.createPageRoutePath !== void 0 ? d.push(r.createPageRoutePath) : ((f = r.functions) == null ? void 0 : f.create) !== void 0 ? (x = r.functions) == null || x.create() : (D.value = "create", K.value = "", i.value = !0);
2454
2454
  }
2455
- function u(f, E) {
2456
- n.model.api && Oe(n.model.api, "DELETE", E.id).then(({ data: T }) => {
2455
+ function u(f, x) {
2456
+ n.model.api && Oe(n.model.api, "DELETE", x.id).then(({ data: T }) => {
2457
2457
  T.code === 0 && (i.value = !1, b());
2458
2458
  });
2459
2459
  }
@@ -2467,13 +2467,13 @@ const Ge = (e) => {
2467
2467
  type: "warning"
2468
2468
  }
2469
2469
  ).then(() => {
2470
- var f, E;
2470
+ var f, x;
2471
2471
  if (((f = r.functions) == null ? void 0 : f.batchDelete) !== void 0)
2472
- (E = r.functions) == null || E.batchDelete(B.value);
2472
+ (x = r.functions) == null || x.batchDelete(H.value);
2473
2473
  else {
2474
- const T = B.value.map((P) => P.id);
2475
- be.delete(`${n.model.api}/${T.join(",")}`).then(({ data: P }) => {
2476
- P.code === 0 && (i.value = !1, b());
2474
+ const T = H.value.map((E) => E.id);
2475
+ be.delete(`${n.model.api}/${T.join(",")}`).then(({ data: E }) => {
2476
+ E.code === 0 && (i.value = !1, b());
2477
2477
  });
2478
2478
  }
2479
2479
  U.value.clearSelection();
@@ -2481,55 +2481,55 @@ const Ge = (e) => {
2481
2481
  U.value.clearSelection();
2482
2482
  });
2483
2483
  }
2484
- function y(f) {
2484
+ function w(f) {
2485
2485
  W.pageSize = f, b();
2486
2486
  }
2487
- function $(f) {
2487
+ function k(f) {
2488
2488
  W.pageNo = f, b();
2489
2489
  }
2490
- function R(f, E) {
2490
+ function B(f, x) {
2491
2491
  r.editPageRoutePath !== void 0 ? d.push({
2492
2492
  path: r.editPageRoutePath,
2493
2493
  query: {
2494
- id: E.id
2494
+ id: x.id
2495
2495
  }
2496
- }) : (K.value = E.id, F.value = "update", i.value = !0);
2496
+ }) : (K.value = x.id, D.value = "update", i.value = !0);
2497
2497
  }
2498
2498
  function Q() {
2499
2499
  let f = window.location.origin + n.model.api + "/export";
2500
- const E = r.queryParams;
2501
- E !== void 0 && Object.keys(E).length > 0 && (f += "?", Object.entries(r.queryParams).map((T) => {
2500
+ const x = r.queryParams;
2501
+ x !== void 0 && Object.keys(x).length > 0 && (f += "?", Object.entries(r.queryParams).map((T) => {
2502
2502
  f += `${T[0]}=${T[1]}&`;
2503
2503
  })), window.open(f);
2504
2504
  }
2505
- function G(f) {
2506
- B.value = f;
2505
+ function F(f) {
2506
+ H.value = f;
2507
2507
  }
2508
2508
  function h(f) {
2509
2509
  return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
2510
2510
  }
2511
- function z(f) {
2512
- f ? (I.value = !0, N.splice(0, N.length, ...w), w.splice(0, w.length, ...B.value)) : (I.value = !1, w.splice(0, w.length, ...N));
2511
+ function j(f) {
2512
+ f ? (N.value = !0, A.splice(0, A.length, ...y), y.splice(0, y.length, ...H.value)) : (N.value = !1, y.splice(0, y.length, ...A));
2513
2513
  }
2514
- return Ee(() => n.model, () => {
2514
+ return $e(() => n.model, () => {
2515
2515
  b();
2516
2516
  }, {
2517
2517
  deep: !0,
2518
2518
  immediate: !0
2519
2519
  }), t({
2520
- multipleSelection: B,
2520
+ multipleSelection: H,
2521
2521
  refresh: b,
2522
2522
  updateConfigAndRefresh: g
2523
- }), (f, E) => {
2524
- const T = O("el-checkbox"), P = O("el-badge"), X = O("el-button"), ce = O("el-icon"), ue = O("el-tooltip"), fe = O("el-input"), ae = O("el-table-column"), ee = O("router-link"), H = O("el-tag"), te = O("el-popconfirm"), ne = O("el-table"), le = O("el-pagination"), me = Ut("loading");
2523
+ }), (f, x) => {
2524
+ const T = $("el-checkbox"), E = $("el-badge"), X = $("el-button"), le = $("el-icon"), ie = $("el-tooltip"), de = $("el-input"), se = $("el-table-column"), z = $("router-link"), Z = $("el-tag"), re = $("el-popconfirm"), pe = $("el-table"), he = $("el-pagination"), fe = Ut("loading");
2525
2525
  return p(), M("div", {
2526
2526
  class: Mt({ "table-view-wrapper": r.showPane })
2527
2527
  }, [
2528
2528
  v("div", zs, [
2529
2529
  v("div", qs, [
2530
- r.selectMode ? (p(), V(P, {
2530
+ r.selectMode ? (p(), I(E, {
2531
2531
  key: 0,
2532
- value: B.value.length,
2532
+ value: H.value.length,
2533
2533
  type: "primary",
2534
2534
  class: "selected-badge"
2535
2535
  }, {
@@ -2537,54 +2537,54 @@ const Ge = (e) => {
2537
2537
  _(T, {
2538
2538
  class: "selected-checkbox",
2539
2539
  border: !0,
2540
- label: k(o)("common.table.viewSelected"),
2541
- onChange: z
2540
+ label: O(o)("common.table.viewSelected"),
2541
+ onChange: j
2542
2542
  }, null, 8, ["label"])
2543
2543
  ]),
2544
2544
  _: 1
2545
2545
  }, 8, ["value"])) : J("", !0),
2546
- !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(X, {
2546
+ !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(X, {
2547
2547
  key: 1,
2548
2548
  type: "primary",
2549
- onClick: x
2549
+ onClick: P
2550
2550
  }, {
2551
2551
  default: m(() => {
2552
- var q, L;
2552
+ var q, R;
2553
2553
  return [
2554
- Z(D(((q = r.labels) == null ? void 0 : q.create) != null ? k(o)((L = r.labels) == null ? void 0 : L.create) : k(o)("common.table.create")), 1)
2554
+ ee(G(((q = r.labels) == null ? void 0 : q.create) != null ? O(o)((R = r.labels) == null ? void 0 : R.create) : O(o)("common.table.create")), 1)
2555
2555
  ];
2556
2556
  }),
2557
2557
  _: 1
2558
2558
  })) : J("", !0),
2559
- !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(X, {
2559
+ !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(X, {
2560
2560
  key: 2,
2561
- disabled: B.value.length == 0,
2561
+ disabled: H.value.length == 0,
2562
2562
  type: "danger",
2563
2563
  plain: "",
2564
2564
  onClick: c
2565
2565
  }, {
2566
2566
  default: m(() => {
2567
- var q, L;
2567
+ var q, R;
2568
2568
  return [
2569
- Z(D(((q = r.labels) == null ? void 0 : q.delete) != null ? k(o)((L = r.labels) == null ? void 0 : L.delete) : k(o)("common.table.delete")), 1)
2569
+ ee(G(((q = r.labels) == null ? void 0 : q.delete) != null ? O(o)((R = r.labels) == null ? void 0 : R.delete) : O(o)("common.table.delete")), 1)
2570
2570
  ];
2571
2571
  }),
2572
2572
  _: 1
2573
2573
  }, 8, ["disabled"])) : J("", !0),
2574
2574
  _(X, {
2575
- icon: k(Ft),
2575
+ icon: O(Ft),
2576
2576
  onClick: b
2577
2577
  }, null, 8, ["icon"]),
2578
- r.tooltip ? (p(), V(ue, {
2578
+ r.tooltip ? (p(), I(ie, {
2579
2579
  key: 3,
2580
2580
  effect: "dark",
2581
- content: k(o)(r.tooltip),
2581
+ content: O(o)(r.tooltip),
2582
2582
  placement: "right"
2583
2583
  }, {
2584
2584
  default: m(() => [
2585
- _(ce, { style: { color: "#8ba74f" } }, {
2585
+ _(le, { style: { color: "#8ba74f" } }, {
2586
2586
  default: m(() => [
2587
- _(k(Eo))
2587
+ _(O($o))
2588
2588
  ]),
2589
2589
  _: 1
2590
2590
  })
@@ -2593,30 +2593,30 @@ const Ge = (e) => {
2593
2593
  }, 8, ["content"])) : J("", !0)
2594
2594
  ]),
2595
2595
  v("div", Bs, [
2596
- r.export ? (p(), V(X, {
2596
+ r.export ? (p(), I(X, {
2597
2597
  key: 0,
2598
2598
  class: "button-export",
2599
2599
  onClick: Q
2600
2600
  }, {
2601
2601
  default: m(() => [
2602
- _(ce, null, {
2602
+ _(le, null, {
2603
2603
  default: m(() => [
2604
- _(k($o))
2604
+ _(O(xo))
2605
2605
  ]),
2606
2606
  _: 1
2607
2607
  })
2608
2608
  ]),
2609
2609
  _: 1
2610
2610
  })) : J("", !0),
2611
- _(fe, {
2612
- placeholder: `${k(o)("common.table.search")}...`,
2611
+ _(de, {
2612
+ placeholder: `${O(o)("common.table.search")}...`,
2613
2613
  modelValue: S.value,
2614
- "onUpdate:modelValue": E[0] || (E[0] = (q) => S.value = q)
2614
+ "onUpdate:modelValue": x[0] || (x[0] = (q) => S.value = q)
2615
2615
  }, {
2616
2616
  append: m(() => [
2617
2617
  _(X, {
2618
2618
  style: { "margin-left": "-20px" },
2619
- icon: k(Dt),
2619
+ icon: O(Dt),
2620
2620
  onClick: b
2621
2621
  }, null, 8, ["icon"])
2622
2622
  ]),
@@ -2624,55 +2624,55 @@ const Ge = (e) => {
2624
2624
  }, 8, ["placeholder", "modelValue"])
2625
2625
  ])
2626
2626
  ]),
2627
- Tt((p(), V(ne, {
2627
+ Tt((p(), I(pe, {
2628
2628
  border: !0,
2629
2629
  ref_key: "tableRef",
2630
2630
  ref: U,
2631
- data: w,
2632
- onSelectionChange: G,
2631
+ data: y,
2632
+ onSelectionChange: F,
2633
2633
  class: "table"
2634
2634
  }, {
2635
2635
  default: m(() => {
2636
2636
  var q;
2637
2637
  return [
2638
- r.readOnly ? J("", !0) : (p(), V(ae, {
2638
+ r.readOnly ? J("", !0) : (p(), I(se, {
2639
2639
  key: 0,
2640
2640
  type: "selection",
2641
2641
  width: "50"
2642
2642
  })),
2643
- (p(!0), M(se, null, he(Y.value, (L) => {
2644
- var de;
2645
- return p(), V(ae, {
2646
- prop: L.prop,
2647
- label: h(L),
2648
- width: (de = L.tableColumnAttributes) == null ? void 0 : de.width,
2643
+ (p(!0), M(oe, null, me(Y.value, (R) => {
2644
+ var ce;
2645
+ return p(), I(se, {
2646
+ prop: R.prop,
2647
+ label: h(R),
2648
+ width: (ce = R.tableColumnAttributes) == null ? void 0 : ce.width,
2649
2649
  "show-overflow-tooltip": ""
2650
2650
  }, {
2651
- default: m((xe) => {
2651
+ default: m((Ee) => {
2652
2652
  var Pe, Le, bt;
2653
2653
  return [
2654
- (Pe = L.tableColumnAttributes) != null && Pe.link ? (p(), V(ee, {
2654
+ (Pe = R.tableColumnAttributes) != null && Pe.link ? (p(), I(z, {
2655
2655
  key: 0,
2656
2656
  class: "router-link",
2657
- to: `/${l.value}/detail?id=${xe.row.id}`
2657
+ to: `/${l.value}/detail?id=${Ee.row.id}`
2658
2658
  }, {
2659
2659
  default: m(() => [
2660
- v("span", null, D(re(L, xe)), 1)
2660
+ v("span", null, G(ne(R, Ee)), 1)
2661
2661
  ]),
2662
2662
  _: 2
2663
- }, 1032, ["to"])) : (Le = L.tableColumnAttributes) != null && Le.routerLink ? (p(), V(ee, {
2663
+ }, 1032, ["to"])) : (Le = R.tableColumnAttributes) != null && Le.routerLink ? (p(), I(z, {
2664
2664
  key: 1,
2665
2665
  class: "router-link",
2666
- to: L.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
2666
+ to: R.tableColumnAttributes.routerLink.replace("{id}", Ee.row.id)
2667
2667
  }, {
2668
2668
  default: m(() => [
2669
- v("span", null, D(re(L, xe)), 1)
2669
+ v("span", null, G(ne(R, Ee)), 1)
2670
2670
  ]),
2671
2671
  _: 2
2672
- }, 1032, ["to"])) : (p(), M("span", Hs, D(re(L, xe)), 1)),
2673
- ((bt = L.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), V(H, { key: 3 }, {
2672
+ }, 1032, ["to"])) : (p(), M("span", Hs, G(ne(R, Ee)), 1)),
2673
+ ((bt = R.tableColumnAttributes) == null ? void 0 : bt.type) === "tag" ? (p(), I(Z, { key: 3 }, {
2674
2674
  default: m(() => [
2675
- Z(D(xe.row[L.prop]), 1)
2675
+ ee(G(Ee.row[R.prop]), 1)
2676
2676
  ]),
2677
2677
  _: 2
2678
2678
  }, 1024)) : J("", !0)
@@ -2681,37 +2681,37 @@ const Ge = (e) => {
2681
2681
  _: 2
2682
2682
  }, 1032, ["prop", "label", "width"]);
2683
2683
  }), 256)),
2684
- r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(), V(ae, {
2684
+ r.operations === void 0 && !((q = r.selectMode) != null && q) && !r.readOnly ? (p(), I(se, {
2685
2685
  key: 1,
2686
- label: k(o)("common.table.operation"),
2686
+ label: O(o)("common.table.operation"),
2687
2687
  width: "120"
2688
2688
  }, {
2689
- default: m((L) => [
2690
- r.updatable !== !1 ? (p(), V(X, {
2689
+ default: m((R) => [
2690
+ r.updatable !== !1 ? (p(), I(X, {
2691
2691
  key: 0,
2692
2692
  link: "",
2693
2693
  type: "primary",
2694
2694
  class: "operation-button",
2695
- onClick: (de) => R(L.$index, L.row)
2695
+ onClick: (ce) => B(R.$index, R.row)
2696
2696
  }, {
2697
2697
  default: m(() => [
2698
- Z(D(k(o)("common.table.edit")), 1)
2698
+ ee(G(O(o)("common.table.edit")), 1)
2699
2699
  ]),
2700
2700
  _: 2
2701
2701
  }, 1032, ["onClick"])) : J("", !0),
2702
- _(te, {
2702
+ _(re, {
2703
2703
  title: "Are you sure to delete this?",
2704
- onConfirm: (de) => u(L.$index, L.row)
2704
+ onConfirm: (ce) => u(R.$index, R.row)
2705
2705
  }, {
2706
2706
  reference: m(() => [
2707
- r.deletable !== !1 ? (p(), V(X, {
2707
+ r.deletable !== !1 ? (p(), I(X, {
2708
2708
  key: 0,
2709
2709
  link: "",
2710
2710
  type: "primary",
2711
2711
  class: "operation-button"
2712
2712
  }, {
2713
2713
  default: m(() => [
2714
- Z(D(k(o)("common.table.delete")), 1)
2714
+ ee(G(O(o)("common.table.delete")), 1)
2715
2715
  ]),
2716
2716
  _: 1
2717
2717
  })) : J("", !0)
@@ -2721,24 +2721,24 @@ const Ge = (e) => {
2721
2721
  ]),
2722
2722
  _: 1
2723
2723
  }, 8, ["label"])) : J("", !0),
2724
- r.operations !== void 0 && !r.readOnly ? (p(), V(ae, {
2724
+ r.operations !== void 0 && !r.readOnly ? (p(), I(se, {
2725
2725
  key: 2,
2726
- label: k(o)("common.table.operation"),
2726
+ label: O(o)("common.table.operation"),
2727
2727
  width: "120"
2728
2728
  }, {
2729
- default: m((L) => [
2730
- (p(!0), M(se, null, he(r.operations, (de) => (p(), V(X, {
2729
+ default: m((R) => [
2730
+ (p(!0), M(oe, null, me(r.operations, (ce) => (p(), I(X, {
2731
2731
  class: "operation-button",
2732
2732
  link: "",
2733
2733
  type: "primary",
2734
- key: de.label,
2735
- onClick: (xe) => {
2734
+ key: ce.label,
2735
+ onClick: (Ee) => {
2736
2736
  var Pe, Le;
2737
- return ((Le = (Pe = de.functions) == null ? void 0 : Pe.click) == null ? void 0 : Le.call(Pe, L.$index, L.row)) && b();
2737
+ return ((Le = (Pe = ce.functions) == null ? void 0 : Pe.click) == null ? void 0 : Le.call(Pe, R.$index, R.row)) && b();
2738
2738
  }
2739
2739
  }, {
2740
2740
  default: m(() => [
2741
- Z(D(C(de, L)), 1)
2741
+ ee(G(C(ce, R)), 1)
2742
2742
  ]),
2743
2743
  _: 2
2744
2744
  }, 1032, ["onClick"]))), 128))
@@ -2749,16 +2749,16 @@ const Ge = (e) => {
2749
2749
  }),
2750
2750
  _: 1
2751
2751
  }, 8, ["data"])), [
2752
- [me, j.value]
2752
+ [fe, L.value]
2753
2753
  ]),
2754
- I.value ? J("", !0) : (p(), V(le, {
2754
+ N.value ? J("", !0) : (p(), I(he, {
2755
2755
  key: 0,
2756
2756
  size: "small",
2757
2757
  background: "",
2758
- onSizeChange: y,
2759
- onCurrentChange: $,
2758
+ onSizeChange: w,
2759
+ onCurrentChange: k,
2760
2760
  currentPage: W.pageNo,
2761
- "onUpdate:currentPage": E[1] || (E[1] = (q) => W.pageNo = q),
2761
+ "onUpdate:currentPage": x[1] || (x[1] = (q) => W.pageNo = q),
2762
2762
  "page-sizes": [10, 20, 50, 100],
2763
2763
  "page-size": W.pageSize,
2764
2764
  layout: "total, sizes, prev, pager, next",
@@ -2766,27 +2766,27 @@ const Ge = (e) => {
2766
2766
  }, null, 8, ["currentPage", "page-size", "total"])),
2767
2767
  _(co, {
2768
2768
  model: f.model,
2769
- mode: F.value,
2769
+ mode: D.value,
2770
2770
  id: K.value,
2771
2771
  afterSubmitFunc: b,
2772
2772
  visible: i.value,
2773
- "onUpdate:visible": E[2] || (E[2] = (q) => i.value = q)
2773
+ "onUpdate:visible": x[2] || (x[2] = (q) => i.value = q)
2774
2774
  }, null, 8, ["model", "mode", "id", "visible"])
2775
2775
  ], 2);
2776
2776
  };
2777
2777
  }
2778
- }), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-7706e5a0"]]), Ws = { class: "nav-bar" }, Ys = {
2778
+ }), st = /* @__PURE__ */ ve(Js, [["__scopeId", "data-v-7706e5a0"]]), Ws = { class: "nav-bar" }, Ys = { style: { "font-size": "16px" } }, Qs = {
2779
2779
  key: 0,
2780
2780
  class: "info-card-wrapper"
2781
- }, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ we({
2781
+ }, Ks = { class: "icon-wrapper" }, Xs = { class: "info-wrapper" }, Zs = { class: "title-wrapper" }, er = { class: "tabs-wrapper" }, tr = { class: "dialog-footer" }, or = /* @__PURE__ */ we({
2782
2782
  __name: "DetailPage",
2783
2783
  setup(e) {
2784
- const { t } = We(), o = Je(), n = rt(), s = Ne(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), d = A(-1), S = A(), w = A(), N = A("summary"), U = A(""), B = A(""), F = A(""), j = A(0), I = pe({
2784
+ const { t } = We(), o = Je(), n = rt(), s = Ne(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), d = V(-1), S = V(), y = V(), A = V("summary"), U = V(""), H = V(""), D = V(""), L = V(0), N = ue({
2785
2785
  api: "",
2786
2786
  fields: []
2787
- }), K = pe([]);
2787
+ }), K = ue([]);
2788
2788
  let W = [];
2789
- Ee([
2789
+ $e([
2790
2790
  () => n.currentRoute.value,
2791
2791
  ge
2792
2792
  ], () => {
@@ -2798,54 +2798,54 @@ const Ge = (e) => {
2798
2798
  function Y(u) {
2799
2799
  d.value = parseInt(u.index) - 1;
2800
2800
  }
2801
- function re() {
2802
- var $;
2803
- let u = ($ = W[d.value].api) == null ? void 0 : $.replace("/select", "");
2801
+ function ne() {
2802
+ var k;
2803
+ let u = (k = W[d.value].api) == null ? void 0 : k.replace("/select", "");
2804
2804
  u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
2805
- const c = I.api + "/" + s.value + u, y = w.value.multipleSelection.map((R) => R.id);
2806
- Oe(c, "POST", y).then(() => {
2805
+ const c = N.api + "/" + s.value + u, w = y.value.multipleSelection.map((B) => B.id);
2806
+ Oe(c, "POST", w).then(() => {
2807
2807
  S.value.refresh(), l.value = !1;
2808
2808
  });
2809
2809
  }
2810
- function C(u, c, y) {
2810
+ function C(u, c, w) {
2811
2811
  var Q;
2812
- y.functions || (y.functions = {}), y.functions.create = () => {
2813
- l.value = !0, w.value && w.value.refresh();
2812
+ w.functions || (w.functions = {}), w.functions.create = () => {
2813
+ l.value = !0, y.value && y.value.refresh();
2814
2814
  };
2815
- let $ = Fe(c);
2816
- $.tableConfig || ($.tableConfig = {}), $.tableConfig.selectMode = !0, $.tableConfig.queryParams = {}, u.queryParamName && ($.tableConfig.queryParams[u.queryParamName] = s.value);
2817
- for (var R in $.fields)
2818
- $.fields[R].tableColumnAttributes && (Q = $.fields[R].tableColumnAttributes) != null && Q.link && ($.fields[R].tableColumnAttributes.link = !1);
2819
- W.push($), y.labels = {
2815
+ let k = Fe(c);
2816
+ k.tableConfig || (k.tableConfig = {}), k.tableConfig.selectMode = !0, k.tableConfig.queryParams = {}, u.queryParamName && (k.tableConfig.queryParams[u.queryParamName] = s.value);
2817
+ for (var B in k.fields)
2818
+ k.fields[B].tableColumnAttributes && (Q = k.fields[B].tableColumnAttributes) != null && Q.link && (k.fields[B].tableColumnAttributes.link = !1);
2819
+ W.push(k), w.labels = {
2820
2820
  create: "common.table.add",
2821
2821
  delete: "common.table.remove"
2822
- }, y.functions.batchDelete = (G) => {
2823
- var E;
2824
- let h = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
2822
+ }, w.functions.batchDelete = (F) => {
2823
+ var x;
2824
+ let h = (x = W[d.value].api) == null ? void 0 : x.replace("/select", "");
2825
2825
  h = h == null ? void 0 : h.substring(h.lastIndexOf("/"));
2826
- const z = I.api + "/" + s.value + h, f = G.map((T) => T.id);
2827
- be.delete(`${z}/${f.join(",")}`).then(({ data: T }) => {
2826
+ const j = N.api + "/" + s.value + h, f = F.map((T) => T.id);
2827
+ be.delete(`${j}/${f.join(",")}`).then(({ data: T }) => {
2828
2828
  T.code === 0 && S.value.refresh();
2829
2829
  });
2830
- }, y.operations = [
2830
+ }, w.operations = [
2831
2831
  {
2832
2832
  label: "common.table.remove",
2833
2833
  functions: {
2834
- click: (G, h) => {
2835
- var E;
2836
- let z = (E = W[d.value].api) == null ? void 0 : E.replace("/select", "");
2837
- z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
2838
- const f = I.api + "/" + s.value + z;
2834
+ click: (F, h) => {
2835
+ var x;
2836
+ let j = (x = W[d.value].api) == null ? void 0 : x.replace("/select", "");
2837
+ j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
2838
+ const f = N.api + "/" + s.value + j;
2839
2839
  Oe(f, "DELETE", h.id).then(() => {
2840
2840
  S.value.refresh();
2841
2841
  });
2842
2842
  }
2843
2843
  }
2844
2844
  }
2845
- ], $.api += "/select";
2845
+ ], k.api += "/select";
2846
2846
  }
2847
2847
  function g() {
2848
- var $, R, Q;
2848
+ var k, B, Q;
2849
2849
  K.splice(0);
2850
2850
  const u = o.params.model;
2851
2851
  if (ge.value[u] === void 0) {
@@ -2853,35 +2853,35 @@ const Ge = (e) => {
2853
2853
  return;
2854
2854
  } else
2855
2855
  console.debug("Detail page model found:", u, ge.value[u]);
2856
- Ge(I);
2856
+ Ge(N);
2857
2857
  const c = Fe(ge.value[u]);
2858
- Object.assign(I, c), j.value++, d.value = -1, N.value = "summary";
2859
- const y = (R = ($ = I.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : R.tabs;
2860
- if (y)
2861
- for (let G of y) {
2862
- const h = Fe(ge.value[G.modelKey]);
2863
- if (K.push(h), G.type === "table") {
2858
+ Object.assign(N, c), L.value++, d.value = -1, A.value = "summary";
2859
+ const w = (B = (k = N.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : B.tabs;
2860
+ if (w)
2861
+ for (let F of w) {
2862
+ const h = Fe(ge.value[F.modelKey]);
2863
+ if (K.push(h), F.type === "table") {
2864
2864
  h.tableConfig || (h.tableConfig = {});
2865
- let z = h.tableConfig;
2866
- z.showPane = !1, G.modelRelationType === "associated" ? C(G, h, z) : G.modelRelationType === "child" && (W.push({
2865
+ let j = h.tableConfig;
2866
+ j.showPane = !1, F.modelRelationType === "associated" ? C(F, h, j) : F.modelRelationType === "child" && (W.push({
2867
2867
  fields: []
2868
- }), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}), G.queryParamName && (h.formConfig.functions.beforeSubmit = (f) => {
2869
- f[G.queryParamName] = s.value;
2870
- })), z.queryParams || (z.queryParams = {}), G.queryParamName && (z.queryParams[G.queryParamName] = s.value), G.queryParams && Object.assign(z.queryParams, G.queryParams), z.readOnly = (Q = G.readOnly) != null ? Q : !1, G.includeFields && (h.fields = h.fields.filter((f) => {
2871
- var E;
2872
- return (E = G.includeFields) == null ? void 0 : E.includes(f.prop);
2873
- })), G.excludeFields && (h.fields = h.fields.filter((f) => {
2874
- var E;
2875
- return !((E = G.excludeFields) != null && E.includes(f.prop));
2876
- })), G.tooltip && (z.tooltip = G.tooltip);
2868
+ }), h.formConfig === void 0 && (h.formConfig = {}), h.formConfig.functions === void 0 && (h.formConfig.functions = {}), F.queryParamName && (h.formConfig.functions.beforeSubmit = (f) => {
2869
+ f[F.queryParamName] = s.value;
2870
+ })), j.queryParams || (j.queryParams = {}), F.queryParamName && (j.queryParams[F.queryParamName] = s.value), F.queryParams && Object.assign(j.queryParams, F.queryParams), j.readOnly = (Q = F.readOnly) != null ? Q : !1, F.includeFields && (h.fields = h.fields.filter((f) => {
2871
+ var x;
2872
+ return (x = F.includeFields) == null ? void 0 : x.includes(f.prop);
2873
+ })), F.excludeFields && (h.fields = h.fields.filter((f) => {
2874
+ var x;
2875
+ return !((x = F.excludeFields) != null && x.includes(f.prop));
2876
+ })), F.tooltip && (j.tooltip = F.tooltip);
2877
2877
  }
2878
2878
  }
2879
2879
  }
2880
- Ee(
2880
+ $e(
2881
2881
  [
2882
2882
  () => {
2883
2883
  var u, c;
2884
- return (c = (u = I.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
2884
+ return (c = (u = N.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : c.infoCard;
2885
2885
  },
2886
2886
  () => {
2887
2887
  var u;
@@ -2890,13 +2890,13 @@ const Ge = (e) => {
2890
2890
  ],
2891
2891
  (u) => {
2892
2892
  ze(() => {
2893
- var y, $, R;
2894
- const c = ($ = (y = I.pageConfig) == null ? void 0 : y.detailPage) == null ? void 0 : $.infoCard;
2895
- c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", B.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (R = I.fields) == null || R.forEach((Q) => {
2896
- var G, h;
2893
+ var w, k, B;
2894
+ const c = (k = (w = N.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : k.infoCard;
2895
+ c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", D.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (B = N.fields) == null || B.forEach((Q) => {
2896
+ var F, h;
2897
2897
  if (Q.prop === c.tagFieldProp) {
2898
- const z = (h = (G = Q.tableColumnAttributes) == null ? void 0 : G.functions) == null ? void 0 : h.transformValue;
2899
- z && (F.value = z(F.value));
2898
+ const j = (h = (F = Q.tableColumnAttributes) == null ? void 0 : F.functions) == null ? void 0 : h.transformValue;
2899
+ j && (D.value = j(D.value));
2900
2900
  }
2901
2901
  }));
2902
2902
  });
@@ -2909,70 +2909,59 @@ const Ge = (e) => {
2909
2909
  function b() {
2910
2910
  r.value = !0;
2911
2911
  }
2912
- function x() {
2912
+ function P() {
2913
2913
  i.value.refresh();
2914
2914
  }
2915
2915
  return (u, c) => {
2916
- var X, ce, ue, fe, ae, ee;
2917
- const y = O("el-breadcrumb-item"), $ = O("el-breadcrumb"), R = O("el-button"), Q = O("el-icon"), G = O("el-dropdown-item"), h = O("el-dropdown-menu"), z = O("el-dropdown"), f = O("el-tag"), E = O("el-tab-pane"), T = O("el-tabs"), P = O("el-dialog");
2918
- return p(), M(se, null, [
2916
+ var E, X, le, ie, de, se;
2917
+ const w = $("el-page-header"), k = $("el-button"), B = $("el-icon"), Q = $("el-dropdown-item"), F = $("el-dropdown-menu"), h = $("el-dropdown"), j = $("el-tag"), f = $("el-tab-pane"), x = $("el-tabs"), T = $("el-dialog");
2918
+ return p(), M(oe, null, [
2919
2919
  v("div", Ws, [
2920
- _($, null, {
2921
- default: m(() => {
2922
- var H, te;
2920
+ _(w, {
2921
+ onClick: c[0] || (c[0] = (z) => O(n).back())
2922
+ }, {
2923
+ title: m(() => c[5] || (c[5] = [
2924
+ v("span", null, null, -1)
2925
+ ])),
2926
+ content: m(() => {
2927
+ var z;
2923
2928
  return [
2924
- _(y, {
2925
- to: { path: `/${(te = (H = I == null ? void 0 : I.breadcrumbRoute) != null ? H : I == null ? void 0 : I.route) != null ? te : ""}` }
2926
- }, {
2927
- default: m(() => {
2928
- var ne;
2929
- return [
2930
- Z(D(k(t)((ne = I == null ? void 0 : I.name) != null ? ne : "")), 1)
2931
- ];
2932
- }),
2933
- _: 1
2934
- }, 8, ["to"]),
2935
- _(y, null, {
2936
- default: m(() => [
2937
- Z(D(k(t)("common.basic.detail")), 1)
2938
- ]),
2939
- _: 1
2940
- })
2929
+ v("span", Ys, G(O(t)((z = N == null ? void 0 : N.name) != null ? z : "")), 1)
2941
2930
  ];
2942
2931
  }),
2943
2932
  _: 1
2944
2933
  }),
2945
2934
  v("div", null, [
2946
- _(R, {
2935
+ _(k, {
2947
2936
  type: "primary",
2948
2937
  onClick: b
2949
2938
  }, {
2950
2939
  default: m(() => [
2951
- Z(D(k(t)("common.table.edit")), 1)
2940
+ ee(G(O(t)("common.table.edit")), 1)
2952
2941
  ]),
2953
2942
  _: 1
2954
2943
  }),
2955
- _(R, {
2944
+ _(k, {
2956
2945
  type: "danger",
2957
2946
  plain: "",
2958
2947
  disabled: ""
2959
2948
  }, {
2960
2949
  default: m(() => [
2961
- Z(D(k(t)("common.table.delete")), 1)
2950
+ ee(G(O(t)("common.table.delete")), 1)
2962
2951
  ]),
2963
2952
  _: 1
2964
2953
  }),
2965
- ((ce = (X = I.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : ce.operationButtons) !== void 0 ? (p(), V(z, { key: 0 }, {
2954
+ ((X = (E = N.pageConfig) == null ? void 0 : E.detailPage) == null ? void 0 : X.operationButtons) !== void 0 ? (p(), I(h, { key: 0 }, {
2966
2955
  dropdown: m(() => [
2967
- _(h, null, {
2956
+ _(F, null, {
2968
2957
  default: m(() => {
2969
- var H, te;
2958
+ var z, Z;
2970
2959
  return [
2971
- (p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.operationButtons, (ne) => (p(), V(G, {
2972
- onClick: (le) => ne.function(i.value.formData)
2960
+ (p(!0), M(oe, null, me((Z = (z = N.pageConfig) == null ? void 0 : z.detailPage) == null ? void 0 : Z.operationButtons, (re) => (p(), I(Q, {
2961
+ onClick: (pe) => re.function(i.value.formData)
2973
2962
  }, {
2974
2963
  default: m(() => [
2975
- Z(D(k(t)(ne.label)), 1)
2964
+ ee(G(O(t)(re.label)), 1)
2976
2965
  ]),
2977
2966
  _: 2
2978
2967
  }, 1032, ["onClick"]))), 256))
@@ -2982,12 +2971,12 @@ const Ge = (e) => {
2982
2971
  })
2983
2972
  ]),
2984
2973
  default: m(() => [
2985
- _(R, { style: { margin: "0 10px" } }, {
2974
+ _(k, { style: { margin: "0 10px" } }, {
2986
2975
  default: m(() => [
2987
- Z(D(k(t)("common.basic.more")), 1),
2988
- _(Q, { class: "el-icon--right" }, {
2976
+ ee(G(O(t)("common.basic.more")), 1),
2977
+ _(B, { class: "el-icon--right" }, {
2989
2978
  default: m(() => [
2990
- _(k(xo))
2979
+ _(O(Eo))
2991
2980
  ]),
2992
2981
  _: 1
2993
2982
  })
@@ -2997,43 +2986,43 @@ const Ge = (e) => {
2997
2986
  ]),
2998
2987
  _: 1
2999
2988
  })) : J("", !0),
3000
- _(R, {
3001
- icon: k(Ft),
3002
- onClick: x
2989
+ _(k, {
2990
+ icon: O(Ft),
2991
+ onClick: P
3003
2992
  }, null, 8, ["icon"])
3004
2993
  ])
3005
2994
  ]),
3006
- (fe = (ue = I.pageConfig) == null ? void 0 : ue.detailPage) != null && fe.infoCard ? (p(), M("div", Ys, [
3007
- v("div", Qs, [
3008
- (p(), V(tt((ae = I.pageConfig.detailPage.infoCard.icon) != null ? ae : ""), { class: "icon" }))
3009
- ]),
2995
+ (ie = (le = N.pageConfig) == null ? void 0 : le.detailPage) != null && ie.infoCard ? (p(), M("div", Qs, [
3010
2996
  v("div", Ks, [
3011
- v("div", Xs, [
3012
- v("h1", null, D(U.value), 1),
3013
- ((ee = F.value) == null ? void 0 : ee.length) > 0 ? (p(), V(f, {
2997
+ (p(), I(tt((de = N.pageConfig.detailPage.infoCard.icon) != null ? de : ""), { class: "icon" }))
2998
+ ]),
2999
+ v("div", Xs, [
3000
+ v("div", Zs, [
3001
+ v("h1", null, G(U.value), 1),
3002
+ ((se = D.value) == null ? void 0 : se.length) > 0 ? (p(), I(j, {
3014
3003
  key: 0,
3015
3004
  size: "small"
3016
3005
  }, {
3017
3006
  default: m(() => [
3018
- Z(D(F.value), 1)
3007
+ ee(G(D.value), 1)
3019
3008
  ]),
3020
3009
  _: 1
3021
3010
  })) : J("", !0)
3022
3011
  ]),
3023
- v("span", null, D(B.value), 1)
3012
+ v("span", null, G(H.value), 1)
3024
3013
  ])
3025
3014
  ])) : J("", !0),
3026
- v("div", Zs, [
3027
- _(T, {
3028
- modelValue: N.value,
3029
- "onUpdate:modelValue": c[0] || (c[0] = (H) => N.value = H),
3015
+ v("div", er, [
3016
+ _(x, {
3017
+ modelValue: A.value,
3018
+ "onUpdate:modelValue": c[1] || (c[1] = (z) => A.value = z),
3030
3019
  onTabClick: Y
3031
3020
  }, {
3032
3021
  default: m(() => {
3033
- var H, te;
3022
+ var z, Z;
3034
3023
  return [
3035
- _(E, {
3036
- label: k(t)("common.basic.summary"),
3024
+ _(f, {
3025
+ label: O(t)("common.basic.summary"),
3037
3026
  name: "summary"
3038
3027
  }, {
3039
3028
  default: m(() => [
@@ -3041,62 +3030,62 @@ const Ge = (e) => {
3041
3030
  ref_key: "formViewRef",
3042
3031
  ref: i,
3043
3032
  id: s.value,
3044
- sessionId: j.value,
3033
+ sessionId: L.value,
3045
3034
  mode: a.value,
3046
- model: I
3035
+ model: N
3047
3036
  }, null, 8, ["id", "sessionId", "mode", "model"])
3048
3037
  ]),
3049
3038
  _: 1
3050
3039
  }, 8, ["label"]),
3051
- (p(!0), M(se, null, he((te = (H = I.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : te.tabs, (ne) => {
3052
- var le;
3053
- return p(), V(E, {
3054
- label: k(t)((le = ne.name) != null ? le : "")
3040
+ (p(!0), M(oe, null, me((Z = (z = N.pageConfig) == null ? void 0 : z.detailPage) == null ? void 0 : Z.tabs, (re) => {
3041
+ var pe;
3042
+ return p(), I(f, {
3043
+ label: O(t)((pe = re.name) != null ? pe : "")
3055
3044
  }, null, 8, ["label"]);
3056
3045
  }), 256))
3057
3046
  ];
3058
3047
  }),
3059
3048
  _: 1
3060
3049
  }, 8, ["modelValue"]),
3061
- d.value >= 0 ? (p(), V(st, {
3050
+ d.value >= 0 ? (p(), I(st, {
3062
3051
  key: 0,
3063
3052
  ref_key: "tabPaneTableRef",
3064
3053
  ref: S,
3065
3054
  model: K[d.value]
3066
3055
  }, null, 8, ["model"])) : J("", !0),
3067
- _(P, {
3056
+ _(T, {
3068
3057
  modelValue: l.value,
3069
- "onUpdate:modelValue": c[2] || (c[2] = (H) => l.value = H),
3070
- title: k(t)("common.table.select"),
3058
+ "onUpdate:modelValue": c[3] || (c[3] = (z) => l.value = z),
3059
+ title: O(t)("common.table.select"),
3071
3060
  width: "800px"
3072
3061
  }, {
3073
3062
  footer: m(() => [
3074
- v("span", er, [
3075
- _(R, {
3076
- onClick: c[1] || (c[1] = (H) => l.value = !1)
3063
+ v("span", tr, [
3064
+ _(k, {
3065
+ onClick: c[2] || (c[2] = (z) => l.value = !1)
3077
3066
  }, {
3078
3067
  default: m(() => [
3079
- Z(D(k(t)("common.basic.cancel")), 1)
3068
+ ee(G(O(t)("common.basic.cancel")), 1)
3080
3069
  ]),
3081
3070
  _: 1
3082
3071
  }),
3083
- _(R, {
3072
+ _(k, {
3084
3073
  type: "primary",
3085
- onClick: re
3074
+ onClick: ne
3086
3075
  }, {
3087
3076
  default: m(() => [
3088
- Z(D(k(t)("common.basic.save")), 1)
3077
+ ee(G(O(t)("common.basic.save")), 1)
3089
3078
  ]),
3090
3079
  _: 1
3091
3080
  })
3092
3081
  ])
3093
3082
  ]),
3094
3083
  default: m(() => [
3095
- d.value >= 0 ? (p(), V(st, {
3084
+ d.value >= 0 ? (p(), I(st, {
3096
3085
  key: 0,
3097
3086
  ref_key: "selectTableRef",
3098
- ref: w,
3099
- model: k(W)[d.value]
3087
+ ref: y,
3088
+ model: O(W)[d.value]
3100
3089
  }, null, 8, ["model"])) : J("", !0)
3101
3090
  ]),
3102
3091
  _: 1
@@ -3106,35 +3095,35 @@ const Ge = (e) => {
3106
3095
  id: s.value,
3107
3096
  mode: "update",
3108
3097
  visible: r.value,
3109
- "onUpdate:visible": c[3] || (c[3] = (H) => r.value = H),
3110
- model: I,
3111
- afterSubmitFunc: x
3098
+ "onUpdate:visible": c[4] || (c[4] = (z) => r.value = z),
3099
+ model: N,
3100
+ afterSubmitFunc: P
3112
3101
  }, null, 8, ["id", "visible", "model"])
3113
3102
  ], 64);
3114
3103
  };
3115
3104
  }
3116
- }), or = /* @__PURE__ */ ve(tr, [["__scopeId", "data-v-f9250724"]]), nr = { class: "page-title" }, sr = /* @__PURE__ */ we({
3105
+ }), nr = /* @__PURE__ */ ve(or, [["__scopeId", "data-v-0ed3cfe7"]]), sr = { class: "page-title" }, rr = /* @__PURE__ */ we({
3117
3106
  __name: "TablePage",
3118
3107
  setup(e) {
3119
- const { t } = We(), o = Je(), n = rt(), s = A(), r = A([]), l = pe({
3108
+ const { t } = We(), o = Je(), n = rt(), s = V(), r = V([]), l = ue({
3120
3109
  api: "",
3121
3110
  fields: []
3122
- }), a = pe(Ye({}, l));
3111
+ }), a = ue(Ye({}, l));
3123
3112
  function i() {
3124
- var S, w, N, U, B;
3125
- r.value = [], l.pageConfig && ((w = (S = l.pageConfig) == null ? void 0 : S.tablePage) != null && w.tabViewAttributes) && (r.value = (B = (U = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : U.tabViewAttributes) == null ? void 0 : B.map((F) => {
3126
- let j;
3127
- return F.modelKey && ge.value[F.modelKey] ? j = Fe(ge.value[F.modelKey]) : j = Fe(l), F.queryParams && (j.tableConfig || (j.tableConfig = {}), j.tableConfig.queryParams = F.queryParams), F.fields && (j.fields = F.fields), F.modelKey && (j.breadcrumbRoute = l.route), {
3128
- key: F.key,
3129
- label: F.label,
3130
- icon: F.icon,
3131
- disabled: F.disabled,
3132
- model: j
3113
+ var S, y, A, U, H;
3114
+ r.value = [], l.pageConfig && ((y = (S = l.pageConfig) == null ? void 0 : S.tablePage) != null && y.tabViewAttributes) && (r.value = (H = (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) == null ? void 0 : U.tabViewAttributes) == null ? void 0 : H.map((D) => {
3115
+ let L;
3116
+ return D.modelKey && ge.value[D.modelKey] ? L = Fe(ge.value[D.modelKey]) : L = Fe(l), D.queryParams && (L.tableConfig || (L.tableConfig = {}), L.tableConfig.queryParams = D.queryParams), D.fields && (L.fields = D.fields), D.modelKey && (L.breadcrumbRoute = l.route), {
3117
+ key: D.key,
3118
+ label: D.label,
3119
+ icon: D.icon,
3120
+ disabled: D.disabled,
3121
+ model: L
3133
3122
  };
3134
3123
  }));
3135
3124
  }
3136
3125
  function d() {
3137
- var N, U;
3126
+ var A, U;
3138
3127
  console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
3139
3128
  const S = o.params.model;
3140
3129
  if (ge.value[S] === void 0) {
@@ -3142,10 +3131,10 @@ const Ge = (e) => {
3142
3131
  return;
3143
3132
  }
3144
3133
  Ge(l);
3145
- const w = Fe(ge.value[S]);
3146
- Object.assign(l, w), (U = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
3134
+ const y = Fe(ge.value[S]);
3135
+ Object.assign(l, y), (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
3147
3136
  }
3148
- return Ee([
3137
+ return $e([
3149
3138
  () => n.currentRoute.value,
3150
3139
  ge
3151
3140
  ], () => {
@@ -3153,16 +3142,16 @@ const Ge = (e) => {
3153
3142
  }, {
3154
3143
  immediate: !0,
3155
3144
  deep: !0
3156
- }), (S, w) => {
3145
+ }), (S, y) => {
3157
3146
  var U;
3158
- const N = O("el-scrollbar");
3159
- return p(), M(se, null, [
3160
- v("h1", nr, D(k(t)((U = l.name) != null ? U : "")), 1),
3161
- _(N, null, {
3147
+ const A = $("el-scrollbar");
3148
+ return p(), M(oe, null, [
3149
+ v("h1", sr, G(O(t)((U = l.name) != null ? U : "")), 1),
3150
+ _(A, null, {
3162
3151
  default: m(() => {
3163
- var B, F;
3152
+ var H, D;
3164
3153
  return [
3165
- (F = (B = l.pageConfig) == null ? void 0 : B.tablePage) != null && F.tabViewAttributes ? (p(), V(lo, {
3154
+ (D = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && D.tabViewAttributes ? (p(), I(lo, {
3166
3155
  key: 0,
3167
3156
  class: "tabs-wrapper",
3168
3157
  cards: r.value,
@@ -3181,35 +3170,35 @@ const Ge = (e) => {
3181
3170
  ], 64);
3182
3171
  };
3183
3172
  }
3184
- }), rr = /* @__PURE__ */ ve(sr, [["__scopeId", "data-v-1a472785"]]), ar = [
3173
+ }), ar = /* @__PURE__ */ ve(rr, [["__scopeId", "data-v-1a472785"]]), lr = [
3185
3174
  No,
3186
3175
  ys,
3187
3176
  Lt,
3188
- xs,
3177
+ Es,
3189
3178
  Vs,
3190
3179
  ao,
3191
3180
  lo,
3192
3181
  st,
3193
- or,
3194
- rr
3195
- ], hr = (e) => {
3196
- e && e.component && ar.forEach((t) => {
3182
+ nr,
3183
+ ar
3184
+ ], _r = (e) => {
3185
+ e && e.component && lr.forEach((t) => {
3197
3186
  console.log("component", t.__name, t), e.component(t.__name, t);
3198
3187
  });
3199
3188
  };
3200
3189
  export {
3201
3190
  No as Building,
3202
3191
  ys as ConsoleApp,
3203
- or as DetailPage,
3192
+ nr as DetailPage,
3204
3193
  Lt as Header,
3205
- xs as NoPermission,
3194
+ Es as NoPermission,
3206
3195
  Vs as Secondary,
3207
3196
  ao as SideMenu,
3208
3197
  lo as TabCard,
3209
- rr as TablePage,
3198
+ ar as TablePage,
3210
3199
  st as TableView,
3211
3200
  Vn as activeMenuMapping,
3212
- hr as default,
3201
+ _r as default,
3213
3202
  on as en,
3214
3203
  ot as i18n,
3215
3204
  Ct as menuList,