@vancone/console-component 0.1.1-beta.39 → 0.1.1-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  var bo = Object.defineProperty, vo = Object.defineProperties;
2
2
  var yo = Object.getOwnPropertyDescriptors;
3
- var St = Object.getOwnPropertySymbols;
3
+ var Ct = Object.getOwnPropertySymbols;
4
4
  var wo = Object.prototype.hasOwnProperty, So = Object.prototype.propertyIsEnumerable;
5
- var Ct = (e, t, o) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Xe = (e, t) => {
5
+ var kt = (e, t, o) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ze = (e, t) => {
6
6
  for (var o in t || (t = {}))
7
- wo.call(t, o) && Ct(e, o, t[o]);
8
- if (St)
9
- for (var o of St(t))
10
- So.call(t, o) && Ct(e, o, t[o]);
7
+ wo.call(t, o) && kt(e, o, t[o]);
8
+ if (Ct)
9
+ for (var o of Ct(t))
10
+ So.call(t, o) && kt(e, o, t[o]);
11
11
  return e;
12
- }, kt = (e, t) => vo(e, yo(t));
12
+ }, xt = (e, t) => vo(e, yo(t));
13
13
  var xe = (e, t, o) => new Promise((n, s) => {
14
14
  var r = (i) => {
15
15
  try {
@@ -26,14 +26,14 @@ var xe = (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 V, createElementVNode as S, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as $, Fragment as le, renderList as fe, toDisplayString as D, normalizeStyle as je, ref as A, onMounted as Dt, createBlock as I, createTextVNode as Y, createCommentVNode as z, nextTick as Be, resolveDynamicComponent as st, effectScope as Ft, markRaw as Me, toRaw as We, hasInjectionContext as Co, inject as ko, getCurrentInstance as xo, watch as Ee, isRef as Je, isReactive as gt, toRef as ct, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as xt, createStaticVNode as Oo, normalizeClass as Rt, resolveDirective as Lt, withDirectives as Gt } from "vue";
30
- import { useRoute as Ke, useRouter as it } from "vue-router";
29
+ import { openBlock as p, createElementBlock as V, createElementVNode as S, defineComponent as Se, reactive as de, resolveComponent as E, createVNode as m, withCtx as d, unref as $, Fragment as le, renderList as fe, toDisplayString as R, normalizeStyle as je, ref as A, onMounted as Ft, createBlock as P, createTextVNode as J, createCommentVNode as j, nextTick as Be, resolveDynamicComponent as rt, effectScope as Rt, markRaw as Me, toRaw as Ye, hasInjectionContext as Co, inject as ko, getCurrentInstance as xo, watch as Ee, isRef as We, isReactive as gt, toRef as ut, computed as Te, getCurrentScope as $o, onScopeDispose as Eo, toRefs as $t, createStaticVNode as Oo, normalizeClass as Lt, resolveDirective as Gt, withDirectives as jt } from "vue";
30
+ import { useRoute as Ke, useRouter as ct } from "vue-router";
31
31
  import Po from "axios";
32
- import { ElMessage as ut, ElMessageBox as $t } from "element-plus";
33
- import { Search as jt, ArrowDown as zt, ArrowRight as Io, Check as Vo, Refresh as qt, Upload as Ao, Download as Et, Document as No, Printer as Mo, Setting as Uo, MoreFilled as To, QuestionFilled as Do } from "@element-plus/icons-vue";
32
+ import { ElMessage as dt, ElMessageBox as Et } from "element-plus";
33
+ import { Search as zt, ArrowDown as qt, ArrowRight as Io, Check as Vo, Refresh as Ht, Upload as Ao, Download as Ot, Document as No, Printer as Mo, Setting as Uo, MoreFilled as To, QuestionFilled as Do } from "@element-plus/icons-vue";
34
34
  import { createI18n as Fo, useI18n as Qe } from "vue-i18n";
35
35
  import { cloneDeep as Ge } from "lodash";
36
- const ye = (e, t) => {
36
+ const ve = (e, t) => {
37
37
  const o = e.__vccOpts || e;
38
38
  for (const [n, s] of t)
39
39
  o[n] = s;
@@ -42,17 +42,17 @@ const ye = (e, t) => {
42
42
  function Go(e, t) {
43
43
  return p(), V("div", Lo);
44
44
  }
45
- const jo = /* @__PURE__ */ ye(Ro, [["render", Go], ["__scopeId", "data-v-07bd45d2"]]), ve = Po.create({
45
+ const jo = /* @__PURE__ */ ve(Ro, [["render", Go], ["__scopeId", "data-v-07bd45d2"]]), be = Po.create({
46
46
  timeout: 2 * 60 * 1e3,
47
47
  withCredentials: !0
48
48
  });
49
- ve.interceptors.request.use((e) => e);
50
- ve.interceptors.response.use((e) => {
49
+ be.interceptors.request.use((e) => e);
50
+ be.interceptors.response.use((e) => {
51
51
  const { headers: t, method: o } = e.config, { code: n, message: s } = e.data, { "No-Success-Message": r } = t, l = o !== "get";
52
- return n === 0 ? (l && !r && ut({
52
+ return n === 0 ? (l && !r && dt({
53
53
  message: s,
54
54
  type: "success"
55
- }), Promise.resolve(e)) : (ut({
55
+ }), Promise.resolve(e)) : (dt({
56
56
  type: "error",
57
57
  message: s
58
58
  }), Promise.reject(new Error(`${n}`)));
@@ -67,42 +67,42 @@ ve.interceptors.response.use((e) => {
67
67
  window.location.href = `${i}/?from=${a}`;
68
68
  }
69
69
  const { message: r, error: l } = o.data;
70
- ut({
70
+ dt({
71
71
  type: "error",
72
72
  message: r || l
73
73
  });
74
74
  }
75
75
  return Promise.reject(new Error(e.message || "Response Error"));
76
76
  });
77
- const Ht = () => {
77
+ const Bt = () => {
78
78
  const { origin: e } = window.location;
79
79
  return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
80
- }, Bt = Ht();
80
+ }, Yt = Bt();
81
81
  function zo() {
82
- return ve.get(`//${Bt}/api/passport/service/v1/account`);
82
+ return be.get(`//${Yt}/api/passport/service/v1/account`);
83
83
  }
84
84
  function qo() {
85
- return ve.delete(`//${Bt}/api/passport/service/v1/login`);
85
+ return be.delete(`//${Yt}/api/passport/service/v1/login`);
86
86
  }
87
87
  function Ho() {
88
- return ve.get("https://app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
88
+ return be.get("https://app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
89
89
  }
90
90
  function Bo() {
91
- return ve.get("https://app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
91
+ return be.get("https://app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
92
92
  }
93
- const Wo = {
93
+ const Yo = {
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  width: "32",
96
96
  height: "32",
97
97
  class: "icon",
98
98
  viewBox: "0 0 1024 1024"
99
99
  };
100
- function Jo(e, t) {
101
- return p(), V("svg", Wo, t[0] || (t[0] = [
100
+ function Wo(e, t) {
101
+ return p(), V("svg", Yo, t[0] || (t[0] = [
102
102
  S("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
103
103
  ]));
104
104
  }
105
- const Yo = { render: Jo }, Ko = {
105
+ const Jo = { render: Wo }, Ko = {
106
106
  xmlns: "http://www.w3.org/2000/svg",
107
107
  width: "32",
108
108
  height: "32",
@@ -153,13 +153,13 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
153
153
  default: d(() => [
154
154
  m(a, null, {
155
155
  label: d(() => [
156
- m($(Yo), { class: "left-icon" })
156
+ m($(Jo), { class: "left-icon" })
157
157
  ]),
158
158
  default: d(() => [
159
159
  s[0] || (s[0] = S("h1", { class: "catalog-title" }, "Apps", -1)),
160
160
  m(r, {
161
161
  class: "search-box",
162
- "prefix-icon": $(jt),
162
+ "prefix-icon": $(zt),
163
163
  placeholder: "Search apps"
164
164
  }, null, 8, ["prefix-icon"]),
165
165
  m(l, {
@@ -169,7 +169,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
169
169
  default: d(() => [
170
170
  S("div", nn, [
171
171
  (p(!0), V(le, null, fe(t, (f) => (p(), V("div", sn, [
172
- S("h1", null, D(f.name), 1),
172
+ S("h1", null, R(f.name), 1),
173
173
  S("div", rn, [
174
174
  (p(!0), V(le, null, fe(f.apps, (y) => {
175
175
  var C, N;
@@ -185,7 +185,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
185
185
  }, null, 8, ln)) : (p(), V("div", cn, " ")),
186
186
  S("h2", {
187
187
  style: je({ color: ((N = y.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
- }, D(y.name), 5)
188
+ }, R(y.name), 5)
189
189
  ], 12, an);
190
190
  }), 256))
191
191
  ])
@@ -221,7 +221,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
221
221
  ]);
222
222
  };
223
223
  }
224
- }), dn = /* @__PURE__ */ ye(un, [["__scopeId", "data-v-fcfb021b"]]), pn = {
224
+ }), dn = /* @__PURE__ */ ve(un, [["__scopeId", "data-v-fcfb021b"]]), pn = {
225
225
  common: {
226
226
  header: {
227
227
  product: "Products",
@@ -299,7 +299,7 @@ const tn = { render: en }, on = { class: "app-catalog-wrapper" }, nn = { class:
299
299
  yes: "是"
300
300
  }
301
301
  }
302
- }, rt = Fo({
302
+ }, at = Fo({
303
303
  legacy: !1,
304
304
  locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
305
305
  messages: {
@@ -316,7 +316,7 @@ function hn(e, t) {
316
316
  S("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
317
317
  ]));
318
318
  }
319
- const gn = { render: hn }, _n = {
319
+ const _n = { render: hn }, gn = {
320
320
  xmlns: "http://www.w3.org/2000/svg",
321
321
  width: "200",
322
322
  height: "200",
@@ -324,7 +324,7 @@ const gn = { render: hn }, _n = {
324
324
  viewBox: "0 0 1024 1024"
325
325
  };
326
326
  function bn(e, t) {
327
- return p(), V("svg", _n, t[0] || (t[0] = [
327
+ return p(), V("svg", gn, t[0] || (t[0] = [
328
328
  S("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
329
329
  ]));
330
330
  }
@@ -357,13 +357,13 @@ const xn = { render: kn };
357
357
  function Ce(e, t, o) {
358
358
  switch (t) {
359
359
  case "POST":
360
- return ve.post(e, o);
360
+ return be.post(e, o);
361
361
  case "PUT":
362
- return ve.put(e, o);
362
+ return be.put(e, o);
363
363
  case "DELETE":
364
- return ve.delete(e + "/" + o);
364
+ return be.delete(e + "/" + o);
365
365
  default:
366
- return ve.get(e, { params: o });
366
+ return be.get(e, { params: o });
367
367
  }
368
368
  }
369
369
  const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }, Pn = { class: "icon-wrapper" }, In = { class: "user-wrapper" }, Vn = { style: { "font-size": "11px", "font-weight": "bold" } }, An = { class: "user-popover-header" }, Nn = { style: { "font-size": "15px", "font-weight": "bold" } }, Mn = ["onClick"], Un = /* @__PURE__ */ Se({
@@ -379,7 +379,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
379
379
  id: "",
380
380
  name: ""
381
381
  }
382
- ), y = A(""), C = A(rt.global.locale), N = de([
382
+ ), y = A(""), C = A(at.global.locale), N = de([
383
383
  {
384
384
  id: "en",
385
385
  name: "English"
@@ -389,50 +389,50 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
389
389
  name: "简体中文"
390
390
  }
391
391
  ]);
392
- Dt(() => {
393
- var R, L, ee;
394
- y.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), y.value === "" && zo().then(({ data: _ }) => {
392
+ Ft(() => {
393
+ var G, M, te;
394
+ y.value = decodeURIComponent(T("passport_username").replace(/\+/g, " ")), y.value === "" && zo().then(({ data: _ }) => {
395
395
  var h;
396
396
  _.code == 0 && (y.value = (h = _.data.name) != null ? h : _.data.displayId);
397
- }), (R = a.headerProjectConfig) != null && R.api ? Ce((L = a.headerProjectConfig) == null ? void 0 : L.api, "GET", {}).then(({ data: _ }) => {
397
+ }), (G = a.headerProjectConfig) != null && G.api ? Ce((M = a.headerProjectConfig) == null ? void 0 : M.api, "GET", {}).then(({ data: _ }) => {
398
398
  i.value = _.data;
399
- }) : (ee = a.headerProjectConfig) != null && ee.items && (i.value = a.headerProjectConfig.items);
399
+ }) : (te = a.headerProjectConfig) != null && te.items && (i.value = a.headerProjectConfig.items);
400
400
  });
401
- function M(R) {
402
- for (var L = R + "=", ee = document.cookie.split(";"), _ = 0; _ < ee.length; _++) {
403
- for (var h = ee[_]; h.charAt(0) == " "; ) h = h.substring(1);
404
- if (h.indexOf(L) != -1)
405
- return h.substring(L.length, h.length);
401
+ function T(G) {
402
+ for (var M = G + "=", te = document.cookie.split(";"), _ = 0; _ < te.length; _++) {
403
+ for (var h = te[_]; h.charAt(0) == " "; ) h = h.substring(1);
404
+ if (h.indexOf(M) != -1)
405
+ return h.substring(M.length, h.length);
406
406
  }
407
407
  return "";
408
408
  }
409
409
  function H() {
410
410
  qo().then(() => {
411
- const R = escape(window.location.href);
412
- window.location.href = `//${Ht()}/?from=${R}#login`;
411
+ const G = escape(window.location.href);
412
+ window.location.href = `//${Bt()}/?from=${G}#login`;
413
413
  });
414
414
  }
415
- function F(R) {
416
- rt.global.locale.value = R, C.value = R, localStorage.setItem("locale", R);
415
+ function L(G) {
416
+ at.global.locale.value = G, C.value = G, localStorage.setItem("locale", G);
417
417
  }
418
- function Z() {
418
+ function ee() {
419
419
  window.open("https://passport.vancone.com/#/account/profile", "_blank");
420
420
  }
421
421
  function B() {
422
422
  window.open(a.helpDocUrl, "_blank");
423
423
  }
424
- function ie(R) {
425
- if (R === "allProjects")
424
+ function ie(G) {
425
+ if (G === "allProjects")
426
426
  alert("show all projects");
427
427
  else
428
- for (let L of i.value)
429
- if (console.log("project.id", L.id, "command", R), L.id === R) {
430
- Object.assign(f, L);
428
+ for (let M of i.value)
429
+ if (console.log("project.id", M.id, "command", G), M.id === G) {
430
+ Object.assign(f, M);
431
431
  break;
432
432
  }
433
433
  }
434
- return (R, L) => {
435
- const ee = E("el-icon"), _ = E("el-dropdown-item"), h = E("el-dropdown-menu"), v = E("el-dropdown"), P = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), k = E("el-menu-item"), O = E("el-menu"), G = E("el-drawer");
434
+ return (G, M) => {
435
+ const te = E("el-icon"), _ = E("el-dropdown-item"), h = E("el-dropdown-menu"), v = E("el-dropdown"), I = E("el-popover"), u = E("el-tooltip"), c = E("el-avatar"), k = E("el-menu-item"), O = E("el-menu"), z = E("el-drawer");
436
436
  return p(), V(le, null, [
437
437
  S("div", $n, [
438
438
  S("div", En, [
@@ -442,10 +442,10 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
442
442
  class: "icon-wrapper",
443
443
  style: { "margin-left": "8px" }
444
444
  }, [
445
- m($(gn))
445
+ m($(_n))
446
446
  ], 512),
447
- S("h1", null, D(R.title), 1),
448
- a.headerProjectConfig ? (p(), I(v, {
447
+ S("h1", null, R(G.title), 1),
448
+ a.headerProjectConfig ? (p(), P(v, {
449
449
  key: 0,
450
450
  placement: "bottom-start",
451
451
  onCommand: ie
@@ -453,11 +453,11 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
453
453
  dropdown: d(() => [
454
454
  m(h, { style: { width: "300px" } }, {
455
455
  default: d(() => [
456
- (p(!0), V(le, null, fe(i.value, (U) => (p(), I(_, {
457
- command: U.id
456
+ (p(!0), V(le, null, fe(i.value, (D) => (p(), P(_, {
457
+ command: D.id
458
458
  }, {
459
459
  default: d(() => [
460
- Y(D(U.name), 1)
460
+ J(R(D.name), 1)
461
461
  ]),
462
462
  _: 2
463
463
  }, 1032, ["command"]))), 256)),
@@ -465,8 +465,8 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
465
465
  divided: "",
466
466
  command: "allProjects"
467
467
  }, {
468
- default: d(() => L[2] || (L[2] = [
469
- Y("全部项目")
468
+ default: d(() => M[2] || (M[2] = [
469
+ J("全部项目")
470
470
  ])),
471
471
  _: 1
472
472
  })
@@ -476,19 +476,19 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
476
476
  ]),
477
477
  default: d(() => [
478
478
  S("span", null, [
479
- Y(D(f.name) + " ", 1),
480
- m(ee, { class: "el-icon--right" }, {
479
+ J(R(f.name) + " ", 1),
480
+ m(te, { class: "el-icon--right" }, {
481
481
  default: d(() => [
482
- m($(zt))
482
+ m($(qt))
483
483
  ]),
484
484
  _: 1
485
485
  })
486
486
  ])
487
487
  ]),
488
488
  _: 1
489
- })) : z("", !0)
489
+ })) : j("", !0)
490
490
  ]),
491
- m(P, {
491
+ m(I, {
492
492
  class: "app-popover",
493
493
  "virtual-ref": r.value,
494
494
  trigger: "click",
@@ -525,7 +525,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
525
525
  onClick: B
526
526
  }, [
527
527
  m($(vn))
528
- ])) : z("", !0)
528
+ ])) : j("", !0)
529
529
  ]),
530
530
  _: 1
531
531
  }, 8, ["content"]),
@@ -537,7 +537,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
537
537
  default: d(() => [
538
538
  S("div", {
539
539
  class: "icon-wrapper",
540
- onClick: L[0] || (L[0] = (U) => l.value = !0)
540
+ onClick: M[0] || (M[0] = (D) => l.value = !0)
541
541
  }, [
542
542
  m($(Sn))
543
543
  ])
@@ -552,11 +552,11 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
552
552
  ref: o
553
553
  }, {
554
554
  default: d(() => [
555
- S("span", Vn, D(y.value.substring(0, 2)), 1)
555
+ S("span", Vn, R(y.value.substring(0, 2)), 1)
556
556
  ]),
557
557
  _: 1
558
558
  }, 512),
559
- m(P, {
559
+ m(I, {
560
560
  teleported: !1,
561
561
  width: "280",
562
562
  effect: "dark",
@@ -573,17 +573,17 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
573
573
  src: ""
574
574
  }, {
575
575
  default: d(() => [
576
- S("span", Nn, D(y.value.substring(0, 2)), 1)
576
+ S("span", Nn, R(y.value.substring(0, 2)), 1)
577
577
  ]),
578
578
  _: 1
579
579
  }),
580
- S("span", null, D(y.value), 1)
580
+ S("span", null, R(y.value), 1)
581
581
  ]),
582
582
  m(O, { class: "user-menu" }, {
583
583
  default: d(() => [
584
- m(k, { onClick: Z }, {
584
+ m(k, { onClick: ee }, {
585
585
  default: d(() => [
586
- Y(D($(t)("common.header.userCenter")), 1)
586
+ J(R($(t)("common.header.userCenter")), 1)
587
587
  ]),
588
588
  _: 1
589
589
  }),
@@ -593,8 +593,8 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
593
593
  style: { display: "flext", "justify-content": "space-between" }
594
594
  }, {
595
595
  default: d(() => [
596
- S("span", null, D($(t)("common.header.switchLanguage")), 1),
597
- m(ee, { style: { left: "15px" } }, {
596
+ S("span", null, R($(t)("common.header.switchLanguage")), 1),
597
+ m(te, { style: { left: "15px" } }, {
598
598
  default: d(() => [
599
599
  m($(Io))
600
600
  ]),
@@ -603,7 +603,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
603
603
  ]),
604
604
  _: 1
605
605
  }, 512),
606
- m(P, {
606
+ m(I, {
607
607
  teleported: !1,
608
608
  width: "150",
609
609
  effect: "dark",
@@ -615,12 +615,12 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
615
615
  "popper-style": "height: 80px; left: -165px"
616
616
  }, {
617
617
  default: d(() => [
618
- (p(!0), V(le, null, fe(N, (U) => (p(), V("div", {
618
+ (p(!0), V(le, null, fe(N, (D) => (p(), V("div", {
619
619
  class: "select-list",
620
- onClick: (T) => F(U.id)
620
+ onClick: (F) => L(D.id)
621
621
  }, [
622
- S("span", null, D(U.name), 1),
623
- U.id === C.value ? (p(), I(ee, {
622
+ S("span", null, R(D.name), 1),
623
+ D.id === C.value ? (p(), P(te, {
624
624
  key: 0,
625
625
  style: { color: "#8ba74f" }
626
626
  }, {
@@ -628,14 +628,14 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
628
628
  m($(Vo))
629
629
  ]),
630
630
  _: 1
631
- })) : z("", !0)
631
+ })) : j("", !0)
632
632
  ], 8, Mn))), 256))
633
633
  ]),
634
634
  _: 1
635
635
  }, 8, ["virtual-ref"]),
636
636
  m(k, { onClick: H }, {
637
637
  default: d(() => [
638
- Y(D($(t)("common.header.signOut")), 1)
638
+ J(R($(t)("common.header.signOut")), 1)
639
639
  ]),
640
640
  _: 1
641
641
  })
@@ -648,16 +648,16 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
648
648
  ])
649
649
  ])
650
650
  ]),
651
- m(G, {
651
+ m(z, {
652
652
  modelValue: l.value,
653
- "onUpdate:modelValue": L[1] || (L[1] = (U) => l.value = U),
653
+ "onUpdate:modelValue": M[1] || (M[1] = (D) => l.value = D),
654
654
  direction: "rtl",
655
655
  title: "Message Center"
656
656
  }, null, 8, ["modelValue"])
657
657
  ], 64);
658
658
  };
659
659
  }
660
- }), Wt = /* @__PURE__ */ ye(Un, [["__scopeId", "data-v-b04b3245"]]), Tn = {
660
+ }), Wt = /* @__PURE__ */ ve(Un, [["__scopeId", "data-v-b04b3245"]]), Tn = {
661
661
  class: "menu-icon-wrapper",
662
662
  style: { "margin-left": "3px" }
663
663
  }, Dn = ["innerHTML"], Fn = { class: "menu-icon-wrapper" }, Rn = ["innerHTML"], Ln = /* @__PURE__ */ Se({
@@ -669,7 +669,7 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
669
669
  const t = e;
670
670
  return Be(() => console.log("menu", t.menu)), (o, n) => {
671
671
  const s = E("SideMenuItem", !0), r = E("el-sub-menu"), l = E("el-menu-item");
672
- return o.menu.children && o.menu.children.length > 0 ? (p(), I(r, {
672
+ return o.menu.children && o.menu.children.length > 0 ? (p(), P(r, {
673
673
  key: 0,
674
674
  index: o.menu.path
675
675
  }, {
@@ -677,28 +677,28 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
677
677
  var a, i, f, y, C;
678
678
  return [
679
679
  S("div", Tn, [
680
- (a = t.menu.meta) != null && a.icon ? (p(), I(st((i = o.menu.meta) == null ? void 0 : i.icon), {
680
+ (a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.menu.meta) == null ? void 0 : i.icon), {
681
681
  key: 0,
682
682
  class: "menu-icon"
683
- })) : z("", !0),
683
+ })) : j("", !0),
684
684
  (f = t.menu.meta) != null && f.svgXml ? (p(), V("div", {
685
685
  key: 1,
686
686
  class: "svg-xml-icon",
687
687
  innerHTML: t.menu.meta.svgXml
688
- }, null, 8, Dn)) : z("", !0)
688
+ }, null, 8, Dn)) : j("", !0)
689
689
  ]),
690
- S("span", null, D(o.$t((C = (y = o.menu.meta) == null ? void 0 : y.title) != null ? C : "")), 1)
690
+ S("span", null, R(o.$t((C = (y = o.menu.meta) == null ? void 0 : y.title) != null ? C : "")), 1)
691
691
  ];
692
692
  }),
693
693
  default: d(() => [
694
- (p(!0), V(le, null, fe(o.menu.children, (a) => (p(), I(s, {
694
+ (p(!0), V(le, null, fe(o.menu.children, (a) => (p(), P(s, {
695
695
  key: a.path,
696
696
  route: a,
697
697
  menu: a
698
698
  }, null, 8, ["route", "menu"]))), 128))
699
699
  ]),
700
700
  _: 1
701
- }, 8, ["index"])) : (p(), I(l, {
701
+ }, 8, ["index"])) : (p(), P(l, {
702
702
  key: 1,
703
703
  index: t.menu.path,
704
704
  style: { height: "40px" }
@@ -706,22 +706,22 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
706
706
  title: d(() => {
707
707
  var a, i;
708
708
  return [
709
- S("span", null, D(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
709
+ S("span", null, R(o.$t((i = (a = o.menu.meta) == null ? void 0 : a.title) != null ? i : "")), 1)
710
710
  ];
711
711
  }),
712
712
  default: d(() => {
713
713
  var a, i, f;
714
714
  return [
715
715
  S("div", Fn, [
716
- (a = t.menu.meta) != null && a.icon ? (p(), I(st((i = o.$props.menu.meta) == null ? void 0 : i.icon), {
716
+ (a = t.menu.meta) != null && a.icon ? (p(), P(rt((i = o.$props.menu.meta) == null ? void 0 : i.icon), {
717
717
  key: 0,
718
718
  class: "menu-icon"
719
- })) : z("", !0),
719
+ })) : j("", !0),
720
720
  ((f = t.menu.meta) == null ? void 0 : f.svgXml) !== void 0 ? (p(), V("div", {
721
721
  key: 1,
722
722
  class: "svg-xml-icon",
723
723
  innerHTML: t.menu.meta.svgXml
724
- }, null, 8, Rn)) : z("", !0)
724
+ }, null, 8, Rn)) : j("", !0)
725
725
  ])
726
726
  ];
727
727
  }),
@@ -729,12 +729,12 @@ const $n = { class: "header" }, En = { class: "title" }, On = { class: "right" }
729
729
  }, 8, ["index"]));
730
730
  };
731
731
  }
732
- }), Gn = /* @__PURE__ */ ye(Ln, [["__scopeId", "data-v-032308f8"]]), be = A({}), jn = {}, Ot = A([]);
732
+ }), Gn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-032308f8"]]), ge = A({}), jn = {}, Pt = A([]);
733
733
  var Jt = !1;
734
- function Ze(e, t, o) {
734
+ function et(e, t, o) {
735
735
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
736
736
  }
737
- function dt(e, t) {
737
+ function pt(e, t) {
738
738
  if (Array.isArray(e)) {
739
739
  e.splice(t, 1);
740
740
  return;
@@ -742,21 +742,21 @@ function dt(e, t) {
742
742
  delete e[t];
743
743
  }
744
744
  function zn() {
745
- return Yt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
745
+ return Kt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
746
746
  }
747
- function Yt() {
747
+ function Kt() {
748
748
  return typeof navigator != "undefined" && typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : {};
749
749
  }
750
750
  const qn = typeof Proxy == "function", Hn = "devtools-plugin:setup", Bn = "plugin:settings:set";
751
- let Fe, ft;
752
- function Wn() {
751
+ let Fe, mt;
752
+ function Yn() {
753
753
  var e;
754
- return Fe !== void 0 || (typeof window != "undefined" && window.performance ? (Fe = !0, ft = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Fe = !0, ft = globalThis.perf_hooks.performance) : Fe = !1), Fe;
754
+ return Fe !== void 0 || (typeof window != "undefined" && window.performance ? (Fe = !0, mt = window.performance) : typeof globalThis != "undefined" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Fe = !0, mt = globalThis.perf_hooks.performance) : Fe = !1), Fe;
755
755
  }
756
- function Jn() {
757
- return Wn() ? ft.now() : Date.now();
756
+ function Wn() {
757
+ return Yn() ? mt.now() : Date.now();
758
758
  }
759
- class Yn {
759
+ class Jn {
760
760
  constructor(t, o) {
761
761
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = o;
762
762
  const n = {};
@@ -784,7 +784,7 @@ class Yn {
784
784
  r = l;
785
785
  },
786
786
  now() {
787
- return Jn();
787
+ return Wn();
788
788
  }
789
789
  }, o && o.on(Bn, (l, a) => {
790
790
  l === this.plugin.id && this.fallbacks.setSettings(a);
@@ -820,12 +820,12 @@ class Yn {
820
820
  });
821
821
  }
822
822
  }
823
- function Kt(e, t) {
824
- const o = e, n = Yt(), s = zn(), r = qn && o.enableEarlyProxy;
823
+ function Qt(e, t) {
824
+ const o = e, n = Kt(), s = zn(), r = qn && o.enableEarlyProxy;
825
825
  if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
826
826
  s.emit(Hn, e, t);
827
827
  else {
828
- const l = r ? new Yn(o, s) : null;
828
+ const l = r ? new Jn(o, s) : null;
829
829
  (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
830
830
  pluginDescriptor: o,
831
831
  setupFn: t,
@@ -839,7 +839,7 @@ function Kt(e, t) {
839
839
  * @license MIT
840
840
  */
841
841
  let He;
842
- const Ye = (e) => He = e, Qt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
842
+ const Je = (e) => He = e, Xt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
843
843
  /* istanbul ignore next */
844
844
  Symbol()
845
845
  );
@@ -850,19 +850,19 @@ var ke;
850
850
  (function(e) {
851
851
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
852
852
  })(ke || (ke = {}));
853
- const Ue = typeof window != "undefined", Pt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
853
+ const Ue = typeof window != "undefined", It = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
854
854
  function Kn(e, { autoBom: t = !1 } = {}) {
855
855
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
856
856
  }
857
- function _t(e, t, o) {
857
+ function bt(e, t, o) {
858
858
  const n = new XMLHttpRequest();
859
859
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
860
- eo(n.response, t, o);
860
+ to(n.response, t, o);
861
861
  }, n.onerror = function() {
862
862
  console.error("could not download file");
863
863
  }, n.send();
864
864
  }
865
- function Xt(e) {
865
+ function Zt(e) {
866
866
  const t = new XMLHttpRequest();
867
867
  t.open("HEAD", e, !1);
868
868
  try {
@@ -871,7 +871,7 @@ function Xt(e) {
871
871
  }
872
872
  return t.status >= 200 && t.status <= 299;
873
873
  }
874
- function et(e) {
874
+ function tt(e) {
875
875
  try {
876
876
  e.dispatchEvent(new MouseEvent("click"));
877
877
  } catch (t) {
@@ -879,11 +879,11 @@ function et(e) {
879
879
  o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
880
880
  }
881
881
  }
882
- const tt = typeof navigator == "object" ? navigator : { userAgent: "" }, Zt = /Macintosh/.test(tt.userAgent) && /AppleWebKit/.test(tt.userAgent) && !/Safari/.test(tt.userAgent), eo = Ue ? (
882
+ const ot = typeof navigator == "object" ? navigator : { userAgent: "" }, eo = /Macintosh/.test(ot.userAgent) && /AppleWebKit/.test(ot.userAgent) && !/Safari/.test(ot.userAgent), to = Ue ? (
883
883
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
884
- typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !Zt ? Qn : (
884
+ typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype && !eo ? Qn : (
885
885
  // Use msSaveOrOpenBlob as a second approach
886
- "msSaveOrOpenBlob" in tt ? Xn : (
886
+ "msSaveOrOpenBlob" in ot ? Xn : (
887
887
  // Fallback to using FileReader and a popup
888
888
  Zn
889
889
  )
@@ -892,20 +892,20 @@ const tt = typeof navigator == "object" ? navigator : { userAgent: "" }, Zt = /M
892
892
  };
893
893
  function Qn(e, t = "download", o) {
894
894
  const n = document.createElement("a");
895
- n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Xt(n.href) ? _t(e, t, o) : (n.target = "_blank", et(n)) : et(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
895
+ n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Zt(n.href) ? bt(e, t, o) : (n.target = "_blank", tt(n)) : tt(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
896
896
  URL.revokeObjectURL(n.href);
897
897
  }, 4e4), setTimeout(function() {
898
- et(n);
898
+ tt(n);
899
899
  }, 0));
900
900
  }
901
901
  function Xn(e, t = "download", o) {
902
902
  if (typeof e == "string")
903
- if (Xt(e))
904
- _t(e, t, o);
903
+ if (Zt(e))
904
+ bt(e, t, o);
905
905
  else {
906
906
  const n = document.createElement("a");
907
907
  n.href = e, n.target = "_blank", setTimeout(function() {
908
- et(n);
908
+ tt(n);
909
909
  });
910
910
  }
911
911
  else
@@ -913,9 +913,9 @@ function Xn(e, t = "download", o) {
913
913
  }
914
914
  function Zn(e, t, o, n) {
915
915
  if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
916
- return _t(e, t, o);
917
- const s = e.type === "application/octet-stream", r = /constructor/i.test(String(Pt.HTMLElement)) || "safari" in Pt, l = /CriOS\/[\d]+/.test(navigator.userAgent);
918
- if ((l || s && r || Zt) && typeof FileReader != "undefined") {
916
+ return bt(e, t, o);
917
+ const s = e.type === "application/octet-stream", r = /constructor/i.test(String(It.HTMLElement)) || "safari" in It, l = /CriOS\/[\d]+/.test(navigator.userAgent);
918
+ if ((l || s && r || eo) && typeof FileReader != "undefined") {
919
919
  const a = new FileReader();
920
920
  a.onloadend = function() {
921
921
  let i = a.result;
@@ -934,23 +934,23 @@ function ae(e, t) {
934
934
  const o = "🍍 " + e;
935
935
  typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(o, t) : t === "error" ? console.error(o) : t === "warn" ? console.warn(o) : console.log(o);
936
936
  }
937
- function bt(e) {
937
+ function vt(e) {
938
938
  return "_a" in e && "install" in e;
939
939
  }
940
- function to() {
940
+ function oo() {
941
941
  if (!("clipboard" in navigator))
942
942
  return ae("Your browser doesn't support the Clipboard API", "error"), !0;
943
943
  }
944
- function oo(e) {
944
+ function no(e) {
945
945
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (ae('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
946
946
  }
947
947
  function es(e) {
948
948
  return xe(this, null, function* () {
949
- if (!to())
949
+ if (!oo())
950
950
  try {
951
951
  yield navigator.clipboard.writeText(JSON.stringify(e.state.value)), ae("Global state copied to clipboard.");
952
952
  } catch (t) {
953
- if (oo(t))
953
+ if (no(t))
954
954
  return;
955
955
  ae("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
956
956
  }
@@ -958,11 +958,11 @@ function es(e) {
958
958
  }
959
959
  function ts(e) {
960
960
  return xe(this, null, function* () {
961
- if (!to())
961
+ if (!oo())
962
962
  try {
963
- no(e, JSON.parse(yield navigator.clipboard.readText())), ae("Global state pasted from clipboard.");
963
+ so(e, JSON.parse(yield navigator.clipboard.readText())), ae("Global state pasted from clipboard.");
964
964
  } catch (t) {
965
- if (oo(t))
965
+ if (no(t))
966
966
  return;
967
967
  ae("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
968
968
  }
@@ -971,7 +971,7 @@ function ts(e) {
971
971
  function os(e) {
972
972
  return xe(this, null, function* () {
973
973
  try {
974
- eo(new Blob([JSON.stringify(e.state.value)], {
974
+ to(new Blob([JSON.stringify(e.state.value)], {
975
975
  type: "text/plain;charset=utf-8"
976
976
  }), "pinia-state.json");
977
977
  } catch (t) {
@@ -1002,13 +1002,13 @@ function ss(e) {
1002
1002
  if (!o)
1003
1003
  return;
1004
1004
  const { text: n, file: s } = o;
1005
- no(e, JSON.parse(n)), ae(`Global state imported from "${s.name}".`);
1005
+ so(e, JSON.parse(n)), ae(`Global state imported from "${s.name}".`);
1006
1006
  } catch (t) {
1007
1007
  ae("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
1008
1008
  }
1009
1009
  });
1010
1010
  }
1011
- function no(e, t) {
1011
+ function so(e, t) {
1012
1012
  for (const o in t) {
1013
1013
  const n = e.state.value[o];
1014
1014
  n ? Object.assign(n, t[o]) : e.state.value[o] = t[o];
@@ -1021,18 +1021,18 @@ function we(e) {
1021
1021
  }
1022
1022
  };
1023
1023
  }
1024
- const so = "🍍 Pinia (root)", ot = "_root";
1024
+ const ro = "🍍 Pinia (root)", nt = "_root";
1025
1025
  function rs(e) {
1026
- return bt(e) ? {
1027
- id: ot,
1028
- label: so
1026
+ return vt(e) ? {
1027
+ id: nt,
1028
+ label: ro
1029
1029
  } : {
1030
1030
  id: e.$id,
1031
1031
  label: e.$id
1032
1032
  };
1033
1033
  }
1034
1034
  function as(e) {
1035
- if (bt(e)) {
1035
+ if (vt(e)) {
1036
1036
  const o = Array.from(e._s.keys()), n = e._s;
1037
1037
  return {
1038
1038
  state: o.map((r) => ({
@@ -1093,15 +1093,15 @@ function is(e) {
1093
1093
  }
1094
1094
  }
1095
1095
  let Le = !0;
1096
- const nt = [], Ne = "pinia:mutations", ue = "pinia", { assign: cs } = Object, at = (e) => "🍍 " + e;
1096
+ const st = [], Ne = "pinia:mutations", ue = "pinia", { assign: cs } = Object, lt = (e) => "🍍 " + e;
1097
1097
  function us(e, t) {
1098
- Kt({
1098
+ Qt({
1099
1099
  id: "dev.esm.pinia",
1100
1100
  label: "Pinia 🍍",
1101
1101
  logo: "https://pinia.vuejs.org/logo.svg",
1102
1102
  packageName: "pinia",
1103
1103
  homepage: "https://pinia.vuejs.org",
1104
- componentStateTypes: nt,
1104
+ componentStateTypes: st,
1105
1105
  app: e
1106
1106
  }, (o) => {
1107
1107
  typeof o.now != "function" && ae("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.addTimelineLayer({
@@ -1159,12 +1159,12 @@ function us(e, t) {
1159
1159
  const l = n.componentInstance.proxy._pStores;
1160
1160
  Object.values(l).forEach((a) => {
1161
1161
  n.instanceData.state.push({
1162
- type: at(a.$id),
1162
+ type: lt(a.$id),
1163
1163
  key: "state",
1164
1164
  editable: !0,
1165
1165
  value: a._isOptionsAPI ? {
1166
1166
  _custom: {
1167
- value: We(a.$state),
1167
+ value: Ye(a.$state),
1168
1168
  actions: [
1169
1169
  {
1170
1170
  icon: "restore",
@@ -1178,7 +1178,7 @@ function us(e, t) {
1178
1178
  Object.keys(a.$state).reduce((i, f) => (i[f] = a.$state[f], i), {})
1179
1179
  )
1180
1180
  }), a._getters && a._getters.length && n.instanceData.state.push({
1181
- type: at(a.$id),
1181
+ type: lt(a.$id),
1182
1182
  key: "getters",
1183
1183
  editable: !1,
1184
1184
  value: a._getters.reduce((i, f) => {
@@ -1195,22 +1195,22 @@ function us(e, t) {
1195
1195
  }), o.on.getInspectorTree((n) => {
1196
1196
  if (n.app === e && n.inspectorId === ue) {
1197
1197
  let s = [t];
1198
- s = s.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : so.toLowerCase().includes(n.filter.toLowerCase())) : s).map(rs);
1198
+ 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()) : ro.toLowerCase().includes(n.filter.toLowerCase())) : s).map(rs);
1199
1199
  }
1200
1200
  }), globalThis.$pinia = t, o.on.getInspectorState((n) => {
1201
1201
  if (n.app === e && n.inspectorId === ue) {
1202
- const s = n.nodeId === ot ? t : t._s.get(n.nodeId);
1202
+ const s = n.nodeId === nt ? t : t._s.get(n.nodeId);
1203
1203
  if (!s)
1204
1204
  return;
1205
- s && (n.nodeId !== ot && (globalThis.$store = We(s)), n.state = as(s));
1205
+ s && (n.nodeId !== nt && (globalThis.$store = Ye(s)), n.state = as(s));
1206
1206
  }
1207
1207
  }), o.on.editInspectorState((n, s) => {
1208
1208
  if (n.app === e && n.inspectorId === ue) {
1209
- const r = n.nodeId === ot ? t : t._s.get(n.nodeId);
1209
+ const r = n.nodeId === nt ? t : t._s.get(n.nodeId);
1210
1210
  if (!r)
1211
1211
  return ae(`store "${n.nodeId}" not found`, "error");
1212
1212
  const { path: l } = n;
1213
- bt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Le = !1, n.set(r, l, n.state.value), Le = !0;
1213
+ vt(r) ? l.unshift("state") : (l.length !== 1 || !r._customProperties.has(l[0]) || l[0] in r.$state) && l.unshift("$state"), Le = !1, n.set(r, l, n.state.value), Le = !0;
1214
1214
  }
1215
1215
  }), o.on.editComponentState((n) => {
1216
1216
  if (n.type.startsWith("🍍")) {
@@ -1228,13 +1228,13 @@ Only state can be modified.`);
1228
1228
  });
1229
1229
  }
1230
1230
  function ds(e, t) {
1231
- nt.includes(at(t.$id)) || nt.push(at(t.$id)), Kt({
1231
+ st.includes(lt(t.$id)) || st.push(lt(t.$id)), Qt({
1232
1232
  id: "dev.esm.pinia",
1233
1233
  label: "Pinia 🍍",
1234
1234
  logo: "https://pinia.vuejs.org/logo.svg",
1235
1235
  packageName: "pinia",
1236
1236
  homepage: "https://pinia.vuejs.org",
1237
- componentStateTypes: nt,
1237
+ componentStateTypes: st,
1238
1238
  app: e,
1239
1239
  settings: {
1240
1240
  logStoreChanges: {
@@ -1251,7 +1251,7 @@ function ds(e, t) {
1251
1251
  }, (o) => {
1252
1252
  const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
1253
1253
  t.$onAction(({ after: l, onError: a, name: i, args: f }) => {
1254
- const y = ro++;
1254
+ const y = ao++;
1255
1255
  o.addTimelineEvent({
1256
1256
  layerId: Ne,
1257
1257
  event: {
@@ -1357,12 +1357,12 @@ function ds(e, t) {
1357
1357
  }, o.notifyComponentUpdate(), o.sendInspectorTree(ue), o.sendInspectorState(ue), o.getSettings().logStoreChanges && ae(`"${t.$id}" store installed 🆕`);
1358
1358
  });
1359
1359
  }
1360
- let ro = 0, Pe;
1361
- function It(e, t, o) {
1362
- const n = t.reduce((s, r) => (s[r] = We(e)[r], s), {});
1360
+ let ao = 0, Pe;
1361
+ function Vt(e, t, o) {
1362
+ const n = t.reduce((s, r) => (s[r] = Ye(e)[r], s), {});
1363
1363
  for (const s in n)
1364
1364
  e[s] = function() {
1365
- const r = ro, l = o ? new Proxy(e, {
1365
+ const r = ao, l = o ? new Proxy(e, {
1366
1366
  get(...i) {
1367
1367
  return Pe = r, Reflect.get(...i);
1368
1368
  },
@@ -1378,10 +1378,10 @@ function It(e, t, o) {
1378
1378
  function ps({ app: e, store: t, options: o }) {
1379
1379
  if (!t.$id.startsWith("__hot:")) {
1380
1380
  if (t._isOptionsAPI = !!o.state, !t._p._testing) {
1381
- It(t, Object.keys(o.actions), t._isOptionsAPI);
1381
+ Vt(t, Object.keys(o.actions), t._isOptionsAPI);
1382
1382
  const n = t._hotUpdate;
1383
- We(t)._hotUpdate = function(s) {
1384
- n.apply(this, arguments), It(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
1383
+ Ye(t)._hotUpdate = function(s) {
1384
+ n.apply(this, arguments), Vt(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
1385
1385
  };
1386
1386
  }
1387
1387
  ds(
@@ -1392,11 +1392,11 @@ function ps({ app: e, store: t, options: o }) {
1392
1392
  }
1393
1393
  }
1394
1394
  function fs() {
1395
- const e = Ft(!0), t = e.run(() => A({}));
1395
+ const e = Rt(!0), t = e.run(() => A({}));
1396
1396
  let o = [], n = [];
1397
1397
  const s = Me({
1398
1398
  install(r) {
1399
- Ye(s), s._a = r, r.provide(Qt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue && us(r, s), n.forEach((l) => o.push(l)), n = [];
1399
+ Je(s), s._a = r, r.provide(Xt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue && us(r, s), n.forEach((l) => o.push(l)), n = [];
1400
1400
  },
1401
1401
  use(r) {
1402
1402
  return !this._a && !Jt ? n.push(r) : o.push(r), this;
@@ -1411,19 +1411,19 @@ function fs() {
1411
1411
  });
1412
1412
  return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy != "undefined" && s.use(ps), s;
1413
1413
  }
1414
- function ao(e, t) {
1414
+ function lo(e, t) {
1415
1415
  for (const o in t) {
1416
1416
  const n = t[o];
1417
1417
  if (!(o in e))
1418
1418
  continue;
1419
1419
  const s = e[o];
1420
- De(s) && De(n) && !Je(n) && !gt(n) ? e[o] = ao(s, n) : e[o] = n;
1420
+ De(s) && De(n) && !We(n) && !gt(n) ? e[o] = lo(s, n) : e[o] = n;
1421
1421
  }
1422
1422
  return e;
1423
1423
  }
1424
- const lo = () => {
1424
+ const io = () => {
1425
1425
  };
1426
- function Vt(e, t, o, n = lo) {
1426
+ function At(e, t, o, n = io) {
1427
1427
  e.push(t);
1428
1428
  const s = () => {
1429
1429
  const r = e.indexOf(t);
@@ -1436,14 +1436,14 @@ function Re(e, ...t) {
1436
1436
  o(...t);
1437
1437
  });
1438
1438
  }
1439
- const ms = (e) => e(), At = Symbol(), pt = Symbol();
1440
- function mt(e, t) {
1439
+ const ms = (e) => e(), Nt = Symbol(), ft = Symbol();
1440
+ function ht(e, t) {
1441
1441
  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);
1442
1442
  for (const o in t) {
1443
1443
  if (!t.hasOwnProperty(o))
1444
1444
  continue;
1445
1445
  const n = t[o], s = e[o];
1446
- De(s) && De(n) && e.hasOwnProperty(o) && !Je(n) && !gt(n) ? e[o] = mt(s, n) : e[o] = n;
1446
+ De(s) && De(n) && e.hasOwnProperty(o) && !We(n) && !gt(n) ? e[o] = ht(s, n) : e[o] = n;
1447
1447
  }
1448
1448
  return e;
1449
1449
  }
@@ -1451,59 +1451,59 @@ const hs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
1451
1451
  /* istanbul ignore next */
1452
1452
  Symbol()
1453
1453
  );
1454
- function gs(e) {
1454
+ function _s(e) {
1455
1455
  return !De(e) || !e.hasOwnProperty(hs);
1456
1456
  }
1457
1457
  const { assign: _e } = Object;
1458
- function Nt(e) {
1459
- return !!(Je(e) && e.effect);
1458
+ function Mt(e) {
1459
+ return !!(We(e) && e.effect);
1460
1460
  }
1461
- function Mt(e, t, o, n) {
1461
+ function Ut(e, t, o, n) {
1462
1462
  const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
1463
1463
  let i;
1464
1464
  function f() {
1465
1465
  !a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
1466
1466
  const y = process.env.NODE_ENV !== "production" && n ? (
1467
1467
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1468
- xt(A(s ? s() : {}).value)
1469
- ) : xt(o.state.value[e]);
1468
+ $t(A(s ? s() : {}).value)
1469
+ ) : $t(o.state.value[e]);
1470
1470
  return _e(y, r, Object.keys(l || {}).reduce((C, N) => (process.env.NODE_ENV !== "production" && N in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), C[N] = Me(Te(() => {
1471
- Ye(o);
1472
- const M = o._s.get(e);
1473
- return l[N].call(M, M);
1471
+ Je(o);
1472
+ const T = o._s.get(e);
1473
+ return l[N].call(T, T);
1474
1474
  })), C), {}));
1475
1475
  }
1476
- return i = ht(e, f, t, o, n, !0), i;
1476
+ return i = _t(e, f, t, o, n, !0), i;
1477
1477
  }
1478
- function ht(e, t, o = {}, n, s, r) {
1478
+ function _t(e, t, o = {}, n, s, r) {
1479
1479
  let l;
1480
1480
  const a = _e({ actions: {} }, o);
1481
1481
  if (process.env.NODE_ENV !== "production" && !n._e.active)
1482
1482
  throw new Error("Pinia destroyed");
1483
1483
  const i = { deep: !0 };
1484
1484
  process.env.NODE_ENV !== "production" && !Jt && (i.onTrigger = (u) => {
1485
- f ? M = u : f == !1 && !h._hotUpdating && (Array.isArray(M) ? M.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1485
+ f ? T = u : f == !1 && !h._hotUpdating && (Array.isArray(T) ? T.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1486
1486
  });
1487
- let f, y, C = [], N = [], M;
1487
+ let f, y, C = [], N = [], T;
1488
1488
  const H = n.state.value[e];
1489
1489
  !r && !H && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1490
- const F = A({});
1491
- let Z;
1490
+ const L = A({});
1491
+ let ee;
1492
1492
  function B(u) {
1493
1493
  let c;
1494
- f = y = !1, process.env.NODE_ENV !== "production" && (M = []), typeof u == "function" ? (u(n.state.value[e]), c = {
1494
+ f = y = !1, process.env.NODE_ENV !== "production" && (T = []), typeof u == "function" ? (u(n.state.value[e]), c = {
1495
1495
  type: ke.patchFunction,
1496
1496
  storeId: e,
1497
- events: M
1498
- }) : (mt(n.state.value[e], u), c = {
1497
+ events: T
1498
+ }) : (ht(n.state.value[e], u), c = {
1499
1499
  type: ke.patchObject,
1500
1500
  payload: u,
1501
1501
  storeId: e,
1502
- events: M
1502
+ events: T
1503
1503
  });
1504
- const k = Z = Symbol();
1504
+ const k = ee = Symbol();
1505
1505
  Be().then(() => {
1506
- Z === k && (f = !0);
1506
+ ee === k && (f = !0);
1507
1507
  }), y = !0, Re(C, c, n.state.value[e]);
1508
1508
  }
1509
1509
  const ie = r ? function() {
@@ -1515,65 +1515,65 @@ function ht(e, t, o = {}, n, s, r) {
1515
1515
  /* istanbul ignore next */
1516
1516
  process.env.NODE_ENV !== "production" ? () => {
1517
1517
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1518
- } : lo
1518
+ } : io
1519
1519
  );
1520
- function R() {
1520
+ function G() {
1521
1521
  l.stop(), C = [], N = [], n._s.delete(e);
1522
1522
  }
1523
- const L = (u, c = "") => {
1524
- if (At in u)
1525
- return u[pt] = c, u;
1523
+ const M = (u, c = "") => {
1524
+ if (Nt in u)
1525
+ return u[ft] = c, u;
1526
1526
  const k = function() {
1527
- Ye(n);
1528
- const O = Array.from(arguments), G = [], U = [];
1529
- function T(W) {
1530
- G.push(W);
1527
+ Je(n);
1528
+ const O = Array.from(arguments), z = [], D = [];
1529
+ function F(Y) {
1530
+ z.push(Y);
1531
1531
  }
1532
- function b(W) {
1533
- U.push(W);
1532
+ function U(Y) {
1533
+ D.push(Y);
1534
1534
  }
1535
1535
  Re(N, {
1536
1536
  args: O,
1537
- name: k[pt],
1537
+ name: k[ft],
1538
1538
  store: h,
1539
- after: T,
1540
- onError: b
1539
+ after: F,
1540
+ onError: U
1541
1541
  });
1542
- let j;
1542
+ let b;
1543
1543
  try {
1544
- j = u.apply(this && this.$id === e ? this : h, O);
1545
- } catch (W) {
1546
- throw Re(U, W), W;
1544
+ b = u.apply(this && this.$id === e ? this : h, O);
1545
+ } catch (Y) {
1546
+ throw Re(D, Y), Y;
1547
1547
  }
1548
- return j instanceof Promise ? j.then((W) => (Re(G, W), W)).catch((W) => (Re(U, W), Promise.reject(W))) : (Re(G, j), j);
1548
+ return b instanceof Promise ? b.then((Y) => (Re(z, Y), Y)).catch((Y) => (Re(D, Y), Promise.reject(Y))) : (Re(z, b), b);
1549
1549
  };
1550
- return k[At] = !0, k[pt] = c, k;
1551
- }, ee = /* @__PURE__ */ Me({
1550
+ return k[Nt] = !0, k[ft] = c, k;
1551
+ }, te = /* @__PURE__ */ Me({
1552
1552
  actions: {},
1553
1553
  getters: {},
1554
1554
  state: [],
1555
- hotState: F
1555
+ hotState: L
1556
1556
  }), _ = {
1557
1557
  _p: n,
1558
1558
  // _s: scope,
1559
1559
  $id: e,
1560
- $onAction: Vt.bind(null, N),
1560
+ $onAction: At.bind(null, N),
1561
1561
  $patch: B,
1562
1562
  $reset: ie,
1563
1563
  $subscribe(u, c = {}) {
1564
- const k = Vt(C, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (G) => {
1564
+ const k = At(C, u, c.detached, () => O()), O = l.run(() => Ee(() => n.state.value[e], (z) => {
1565
1565
  (c.flush === "sync" ? y : f) && u({
1566
1566
  storeId: e,
1567
1567
  type: ke.direct,
1568
- events: M
1569
- }, G);
1568
+ events: T
1569
+ }, z);
1570
1570
  }, _e({}, i, c)));
1571
1571
  return k;
1572
1572
  },
1573
- $dispose: R
1573
+ $dispose: G
1574
1574
  }, h = de(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue ? _e(
1575
1575
  {
1576
- _hmrPayload: ee,
1576
+ _hmrPayload: te,
1577
1577
  _customProperties: Me(/* @__PURE__ */ new Set())
1578
1578
  // devtools custom properties
1579
1579
  },
@@ -1582,22 +1582,22 @@ function ht(e, t, o = {}, n, s, r) {
1582
1582
  // setupStore
1583
1583
  ) : _);
1584
1584
  n._s.set(e, h);
1585
- const P = (n._a && n._a.runWithContext || ms)(() => n._e.run(() => (l = Ft()).run(() => t({ action: L }))));
1586
- for (const u in P) {
1587
- const c = P[u];
1588
- if (Je(c) && !Nt(c) || gt(c))
1589
- process.env.NODE_ENV !== "production" && s ? Ze(F.value, u, ct(P, u)) : r || (H && gs(c) && (Je(c) ? c.value = H[u] : mt(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ee.state.push(u);
1585
+ const I = (n._a && n._a.runWithContext || ms)(() => n._e.run(() => (l = Rt()).run(() => t({ action: M }))));
1586
+ for (const u in I) {
1587
+ const c = I[u];
1588
+ if (We(c) && !Mt(c) || gt(c))
1589
+ process.env.NODE_ENV !== "production" && s ? et(L.value, u, ut(I, u)) : r || (H && _s(c) && (We(c) ? c.value = H[u] : ht(c, H[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && te.state.push(u);
1590
1590
  else if (typeof c == "function") {
1591
- const k = process.env.NODE_ENV !== "production" && s ? c : L(c, u);
1592
- P[u] = k, process.env.NODE_ENV !== "production" && (ee.actions[u] = c), a.actions[u] = c;
1593
- } else process.env.NODE_ENV !== "production" && Nt(c) && (ee.getters[u] = r ? (
1591
+ const k = process.env.NODE_ENV !== "production" && s ? c : M(c, u);
1592
+ I[u] = k, process.env.NODE_ENV !== "production" && (te.actions[u] = c), a.actions[u] = c;
1593
+ } else process.env.NODE_ENV !== "production" && Mt(c) && (te.getters[u] = r ? (
1594
1594
  // @ts-expect-error
1595
1595
  o.getters[u]
1596
- ) : c, Ue && (P._getters || // @ts-expect-error: same
1597
- (P._getters = Me([]))).push(u));
1596
+ ) : c, Ue && (I._getters || // @ts-expect-error: same
1597
+ (I._getters = Me([]))).push(u));
1598
1598
  }
1599
- if (_e(h, P), _e(We(h), P), Object.defineProperty(h, "$state", {
1600
- get: () => process.env.NODE_ENV !== "production" && s ? F.value : n.state.value[e],
1599
+ if (_e(h, I), _e(Ye(h), I), Object.defineProperty(h, "$state", {
1600
+ get: () => process.env.NODE_ENV !== "production" && s ? L.value : n.state.value[e],
1601
1601
  set: (u) => {
1602
1602
  if (process.env.NODE_ENV !== "production" && s)
1603
1603
  throw new Error("cannot set hotState");
@@ -1609,29 +1609,29 @@ function ht(e, t, o = {}, n, s, r) {
1609
1609
  h._hotUpdating = !0, u._hmrPayload.state.forEach((c) => {
1610
1610
  if (c in h.$state) {
1611
1611
  const k = u.$state[c], O = h.$state[c];
1612
- typeof k == "object" && De(k) && De(O) ? ao(k, O) : u.$state[c] = O;
1612
+ typeof k == "object" && De(k) && De(O) ? lo(k, O) : u.$state[c] = O;
1613
1613
  }
1614
- Ze(h, c, ct(u.$state, c));
1614
+ et(h, c, ut(u.$state, c));
1615
1615
  }), Object.keys(h.$state).forEach((c) => {
1616
- c in u.$state || dt(h, c);
1617
- }), f = !1, y = !1, n.state.value[e] = ct(u._hmrPayload, "hotState"), y = !0, Be().then(() => {
1616
+ c in u.$state || pt(h, c);
1617
+ }), f = !1, y = !1, n.state.value[e] = ut(u._hmrPayload, "hotState"), y = !0, Be().then(() => {
1618
1618
  f = !0;
1619
1619
  });
1620
1620
  for (const c in u._hmrPayload.actions) {
1621
1621
  const k = u[c];
1622
- Ze(h, c, L(k, c));
1622
+ et(h, c, M(k, c));
1623
1623
  }
1624
1624
  for (const c in u._hmrPayload.getters) {
1625
1625
  const k = u._hmrPayload.getters[c], O = r ? (
1626
1626
  // special handling of options api
1627
- Te(() => (Ye(n), k.call(h, h)))
1627
+ Te(() => (Je(n), k.call(h, h)))
1628
1628
  ) : k;
1629
- Ze(h, c, O);
1629
+ et(h, c, O);
1630
1630
  }
1631
1631
  Object.keys(h._hmrPayload.getters).forEach((c) => {
1632
- c in u._hmrPayload.getters || dt(h, c);
1632
+ c in u._hmrPayload.getters || pt(h, c);
1633
1633
  }), Object.keys(h._hmrPayload.actions).forEach((c) => {
1634
- c in u._hmrPayload.actions || dt(h, c);
1634
+ c in u._hmrPayload.actions || pt(h, c);
1635
1635
  }), h._hmrPayload = u._hmrPayload, h._getters = u._getters, h._hotUpdating = !1;
1636
1636
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ue) {
1637
1637
  const u = {
@@ -1666,7 +1666,7 @@ Found in store "${h.$id}".`), H && r && o.hydrate && o.hydrate(h.$state, H), f =
1666
1666
  }
1667
1667
  /*! #__NO_SIDE_EFFECTS__ */
1668
1668
  // @__NO_SIDE_EFFECTS__
1669
- function _s(e, t, o) {
1669
+ function gs(e, t, o) {
1670
1670
  let n, s;
1671
1671
  const r = typeof t == "function";
1672
1672
  n = e, s = r ? o : t;
@@ -1674,22 +1674,22 @@ function _s(e, t, o) {
1674
1674
  const f = Co();
1675
1675
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
1676
1676
  // pinia instance with getActivePinia()
1677
- (process.env.NODE_ENV === "test" && He && He._testing ? null : a) || (f ? ko(Qt, null) : null), a && Ye(a), process.env.NODE_ENV !== "production" && !He)
1677
+ (process.env.NODE_ENV === "test" && He && He._testing ? null : a) || (f ? ko(Xt, null) : null), a && Je(a), process.env.NODE_ENV !== "production" && !He)
1678
1678
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1679
1679
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1680
1680
  This will fail in production.`);
1681
- a = He, a._s.has(n) || (r ? ht(n, t, s, a) : Mt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
1681
+ a = He, a._s.has(n) || (r ? _t(n, t, s, a) : Ut(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
1682
1682
  const y = a._s.get(n);
1683
1683
  if (process.env.NODE_ENV !== "production" && i) {
1684
- const C = "__hot:" + n, N = r ? ht(C, t, s, a, !0) : Mt(C, _e({}, s), a, !0);
1684
+ const C = "__hot:" + n, N = r ? _t(C, t, s, a, !0) : Ut(C, _e({}, s), a, !0);
1685
1685
  i._hotUpdate(N), delete a.state.value[C], a._s.delete(C);
1686
1686
  }
1687
1687
  if (process.env.NODE_ENV !== "production" && Ue) {
1688
1688
  const C = xo();
1689
1689
  if (C && C.proxy && // avoid adding stores that are just built for hot module replacement
1690
1690
  !i) {
1691
- const N = C.proxy, M = "_pStores" in N ? N._pStores : N._pStores = {};
1692
- M[n] = y;
1691
+ const N = C.proxy, T = "_pStores" in N ? N._pStores : N._pStores = {};
1692
+ T[n] = y;
1693
1693
  }
1694
1694
  }
1695
1695
  return y;
@@ -1762,17 +1762,17 @@ function ks(e, t) {
1762
1762
  }
1763
1763
  return o;
1764
1764
  }
1765
- function vt(e, t, o) {
1765
+ function yt(e, t, o) {
1766
1766
  if (o.length === 0)
1767
1767
  return t;
1768
1768
  const n = o[0];
1769
- return o.length > 1 && (t = vt(
1769
+ return o.length > 1 && (t = yt(
1770
1770
  typeof e != "object" || e === null || !Object.prototype.hasOwnProperty.call(e, n) ? Number.isInteger(Number(o[1])) ? [] : {} : e[n],
1771
1771
  t,
1772
1772
  Array.prototype.slice.call(o, 1)
1773
1773
  )), Number.isInteger(Number(n)) && Array.isArray(e) ? e.slice()[n] : Object.assign({}, e, { [n]: t });
1774
1774
  }
1775
- function io(e, t) {
1775
+ function co(e, t) {
1776
1776
  if (e == null || t.length === 0)
1777
1777
  return e;
1778
1778
  if (t.length === 1) {
@@ -1793,22 +1793,22 @@ function io(e, t) {
1793
1793
  o[n] = e[n];
1794
1794
  return o;
1795
1795
  }
1796
- return vt(
1796
+ return yt(
1797
1797
  e,
1798
- io(
1798
+ co(
1799
1799
  e[t[0]],
1800
1800
  Array.prototype.slice.call(t, 1)
1801
1801
  ),
1802
1802
  [t[0]]
1803
1803
  );
1804
1804
  }
1805
- function co(e, t) {
1806
- return t.map((o) => o.split(".")).map((o) => [o, ks(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => vt(o, n[1], n[0]), {});
1807
- }
1808
1805
  function uo(e, t) {
1809
- return t.map((o) => o.split(".")).reduce((o, n) => io(o, n), e);
1806
+ return t.map((o) => o.split(".")).map((o) => [o, ks(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => yt(o, n[1], n[0]), {});
1810
1807
  }
1811
- function Ut(e, {
1808
+ function po(e, t) {
1809
+ return t.map((o) => o.split(".")).reduce((o, n) => co(o, n), e);
1810
+ }
1811
+ function Tt(e, {
1812
1812
  storage: t,
1813
1813
  serializer: o,
1814
1814
  key: n,
@@ -1822,7 +1822,7 @@ function Ut(e, {
1822
1822
  y && (a == null || a(f));
1823
1823
  const C = t.getItem(n);
1824
1824
  if (C) {
1825
- const N = o.deserialize(C), M = r ? co(N, r) : N, H = l ? uo(M, l) : M;
1825
+ const N = o.deserialize(C), T = r ? uo(N, r) : N, H = l ? po(T, l) : T;
1826
1826
  e.$patch(H);
1827
1827
  }
1828
1828
  y && (i == null || i(f));
@@ -1830,7 +1830,7 @@ function Ut(e, {
1830
1830
  s && console.error("[pinia-plugin-persistedstate]", C);
1831
1831
  }
1832
1832
  }
1833
- function Tt(e, {
1833
+ function Dt(e, {
1834
1834
  storage: t,
1835
1835
  serializer: o,
1836
1836
  key: n,
@@ -1839,7 +1839,7 @@ function Tt(e, {
1839
1839
  omit: l
1840
1840
  }) {
1841
1841
  try {
1842
- const a = r ? co(e, r) : e, i = l ? uo(a, l) : a, f = o.serialize(i);
1842
+ const a = r ? uo(e, r) : e, i = l ? po(a, l) : a, f = o.serialize(i);
1843
1843
  t.setItem(n, f);
1844
1844
  } catch (a) {
1845
1845
  s && console.error("[pinia-plugin-persistedstate]", a);
@@ -1857,15 +1857,15 @@ function xs(e, t, o) {
1857
1857
  const a = (Array.isArray(r) ? r : r === !0 ? [{}] : [r]).map(t);
1858
1858
  s.$hydrate = ({ runHooks: i = !0 } = {}) => {
1859
1859
  a.forEach((f) => {
1860
- Ut(s, f, e, i);
1860
+ Tt(s, f, e, i);
1861
1861
  });
1862
1862
  }, s.$persist = () => {
1863
1863
  a.forEach((i) => {
1864
- Tt(s.$state, i);
1864
+ Dt(s.$state, i);
1865
1865
  });
1866
1866
  }, a.forEach((i) => {
1867
- Ut(s, i, e), s.$subscribe(
1868
- (f, y) => Tt(y, i),
1867
+ Tt(s, i, e), s.$subscribe(
1868
+ (f, y) => Dt(y, i),
1869
1869
  { detached: !0 }
1870
1870
  );
1871
1871
  });
@@ -1896,9 +1896,9 @@ function $s(e = {}) {
1896
1896
  };
1897
1897
  }
1898
1898
  var Es = $s();
1899
- const yt = fs();
1900
- yt.use(Es);
1901
- const po = /* @__PURE__ */ _s("console", {
1899
+ const wt = fs();
1900
+ wt.use(Es);
1901
+ const fo = /* @__PURE__ */ gs("console", {
1902
1902
  state: () => ({
1903
1903
  menu: {
1904
1904
  collapsed: !0
@@ -1915,7 +1915,7 @@ const po = /* @__PURE__ */ _s("console", {
1915
1915
  },
1916
1916
  emits: ["update:menuCollapsed"],
1917
1917
  setup(e, { emit: t }) {
1918
- po(yt);
1918
+ fo(wt);
1919
1919
  const o = Ke(), n = Te(() => {
1920
1920
  var r;
1921
1921
  const s = o.meta.activeMenu;
@@ -1927,24 +1927,24 @@ const po = /* @__PURE__ */ _s("console", {
1927
1927
  });
1928
1928
  return (s, r) => {
1929
1929
  const l = E("el-menu");
1930
- return $(Ot).length > 0 ? (p(), V("div", Os, [
1930
+ return $(Pt).length > 0 ? (p(), V("div", Os, [
1931
1931
  m(l, {
1932
1932
  class: "menu",
1933
1933
  "default-active": n.value,
1934
1934
  router: ""
1935
1935
  }, {
1936
1936
  default: d(() => [
1937
- (p(!0), V(le, null, fe($(Ot), (a) => (p(), I(Gn, {
1937
+ (p(!0), V(le, null, fe($(Pt), (a) => (p(), P(Gn, {
1938
1938
  key: a.path,
1939
1939
  menu: a
1940
1940
  }, null, 8, ["menu"]))), 128))
1941
1941
  ]),
1942
1942
  _: 1
1943
1943
  }, 8, ["default-active"])
1944
- ])) : z("", !0);
1944
+ ])) : j("", !0);
1945
1945
  };
1946
1946
  }
1947
- }), fo = /* @__PURE__ */ ye(Ps, [["__scopeId", "data-v-c70ca2ba"]]), Is = { class: "container" }, Vs = /* @__PURE__ */ Se({
1947
+ }), mo = /* @__PURE__ */ ve(Ps, [["__scopeId", "data-v-c70ca2ba"]]), Is = { class: "container" }, Vs = /* @__PURE__ */ Se({
1948
1948
  __name: "ConsoleApp",
1949
1949
  props: {
1950
1950
  title: {},
@@ -1952,22 +1952,22 @@ const po = /* @__PURE__ */ _s("console", {
1952
1952
  helpDocUrl: {}
1953
1953
  },
1954
1954
  setup(e) {
1955
- const t = po(yt), o = Ke(), n = A(t.menu.collapsed), s = A(), r = e;
1955
+ const t = fo(wt), o = Ke(), n = A(t.menu.collapsed), s = A(), r = e;
1956
1956
  return (l, a) => {
1957
1957
  const i = E("router-view"), f = E("el-scrollbar");
1958
1958
  return p(), V(le, null, [
1959
- $(o).query.embedded !== "true" ? (p(), I(Wt, {
1959
+ $(o).query.embedded !== "true" ? (p(), P(Wt, {
1960
1960
  key: 0,
1961
1961
  title: r.title,
1962
1962
  helpDocUrl: r.helpDocUrl,
1963
1963
  headerProjectConfig: r.headerProjectConfig
1964
- }, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : z("", !0),
1964
+ }, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : j("", !0),
1965
1965
  S("div", Is, [
1966
- $(o).query.embedded !== "true" ? (p(), I(fo, {
1966
+ $(o).query.embedded !== "true" ? (p(), P(mo, {
1967
1967
  key: 0,
1968
1968
  menuCollapsed: n.value,
1969
1969
  "onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
1970
- }, null, 8, ["menuCollapsed"])) : z("", !0),
1970
+ }, null, 8, ["menuCollapsed"])) : j("", !0),
1971
1971
  m(f, { class: "main-scrollbar" }, {
1972
1972
  default: d(() => [
1973
1973
  S("main", {
@@ -2003,7 +2003,7 @@ function Fs(e, t) {
2003
2003
  t[3] || (t[3] = S("h1", null, "You have no permission to access the page.", -1)),
2004
2004
  m(o, { type: "primary" }, {
2005
2005
  default: d(() => t[1] || (t[1] = [
2006
- Y("Apply")
2006
+ J("Apply")
2007
2007
  ])),
2008
2008
  _: 1
2009
2009
  }),
@@ -2011,33 +2011,33 @@ function Fs(e, t) {
2011
2011
  onClick: t[0] || (t[0] = (n) => e.$router.go(-1))
2012
2012
  }, {
2013
2013
  default: d(() => t[2] || (t[2] = [
2014
- Y("Go Back")
2014
+ J("Go Back")
2015
2015
  ])),
2016
2016
  _: 1
2017
2017
  })
2018
2018
  ])
2019
2019
  ]);
2020
2020
  }
2021
- const Rs = /* @__PURE__ */ ye(Us, [["render", Fs], ["__scopeId", "data-v-0155b361"]]), Ls = {};
2021
+ const Rs = /* @__PURE__ */ ve(Us, [["render", Fs], ["__scopeId", "data-v-0155b361"]]), Ls = {};
2022
2022
  function Gs(e, t) {
2023
2023
  const o = E("router-view");
2024
- return p(), I(o);
2024
+ return p(), P(o);
2025
2025
  }
2026
- const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper" }, qs = ["onClick"], Hs = { class: "card-inner-wrapper" }, Bs = { class: "card-title" }, Ws = { class: "icon" }, Js = /* @__PURE__ */ Se({
2026
+ const js = /* @__PURE__ */ ve(Ls, [["render", Gs]]), zs = { class: "card-wrapper" }, qs = ["onClick"], Hs = { class: "card-inner-wrapper" }, Bs = { class: "card-title" }, Ys = { class: "icon" }, Ws = /* @__PURE__ */ Se({
2027
2027
  __name: "TabCard",
2028
2028
  props: {
2029
2029
  cards: {},
2030
2030
  tableRef: {}
2031
2031
  },
2032
2032
  setup(e) {
2033
- const { t } = Qe(), o = Ke(), n = it(), s = e, r = A(s.cards[0].key);
2033
+ const { t } = Qe(), o = Ke(), n = ct(), s = e, r = A(s.cards[0].key);
2034
2034
  function l(a) {
2035
2035
  a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
2036
2036
  path: o.path,
2037
- query: kt(Xe({}, o.query), { tab: a.key })
2037
+ query: xt(Ze({}, o.query), { tab: a.key })
2038
2038
  }));
2039
2039
  }
2040
- return Dt(() => {
2040
+ return Ft(() => {
2041
2041
  let a;
2042
2042
  if (o.query.tab !== void 0) {
2043
2043
  for (let i of s.cards)
@@ -2066,33 +2066,33 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2066
2066
  }
2067
2067
  ), (a, i) => (p(), V("div", zs, [
2068
2068
  (p(!0), V(le, null, fe(s.cards, (f) => (p(), V("div", {
2069
- class: Rt(["card", { "card-selected": r.value === f.key }]),
2069
+ class: Lt(["card", { "card-selected": r.value === f.key }]),
2070
2070
  onClick: (y) => l(f)
2071
2071
  }, [
2072
2072
  S("div", Hs, [
2073
2073
  S("div", Bs, [
2074
- S("div", Ws, [
2075
- f.icon ? (p(), I(st(f.icon), {
2074
+ S("div", Ys, [
2075
+ f.icon ? (p(), P(rt(f.icon), {
2076
2076
  key: 0,
2077
2077
  class: "svg-icon"
2078
- })) : z("", !0)
2078
+ })) : j("", !0)
2079
2079
  ]),
2080
2080
  S("span", {
2081
2081
  style: je({ color: f.disabled ? "#aaa" : "black" })
2082
- }, D($(t)(f.label)), 5)
2082
+ }, R($(t)(f.label)), 5)
2083
2083
  ]),
2084
- S("span", null, D(f.count), 1)
2084
+ S("span", null, R(f.count), 1)
2085
2085
  ])
2086
2086
  ], 10, qs))), 256))
2087
2087
  ]));
2088
2088
  }
2089
- }), mo = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-047a86e6"]]), ze = (e) => {
2089
+ }), ho = /* @__PURE__ */ ve(Ws, [["__scopeId", "data-v-047a86e6"]]), ze = (e) => {
2090
2090
  const t = Object.keys(e);
2091
2091
  let o = {};
2092
2092
  t.forEach((n) => {
2093
2093
  o[n] = void 0;
2094
2094
  }), Object.assign(e, o);
2095
- }, Ys = {
2095
+ }, Js = {
2096
2096
  key: 1,
2097
2097
  class: "view-span"
2098
2098
  }, Ks = /* @__PURE__ */ Se({
@@ -2108,10 +2108,10 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2108
2108
  },
2109
2109
  emits: ["update:id"],
2110
2110
  setup(e, { expose: t, emit: o }) {
2111
- const { t: n } = rt.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (_) => s.mode === "view" && (L(_, void 0) || L(_, "input") || L(_, "select") || L(_, "password") || L(_, "input-number")), C = Te(() => s.model.fields ? s.model.fields.filter(
2111
+ const { t: n } = at.global, s = e, r = de({}), l = A(!1), a = A(), i = de({}), f = A(!0), y = (_) => s.mode === "view" && (M(_, void 0) || M(_, "input") || M(_, "select") || M(_, "password") || M(_, "input-number")), C = Te(() => s.model.fields ? s.model.fields.filter(
2112
2112
  (_) => {
2113
- var P, u, c, k;
2114
- let h = _.visible !== !1 && ((P = _.formItemAttributes) == null ? void 0 : P.visible) !== !1;
2113
+ var I, u, c, k;
2114
+ let h = _.visible !== !1 && ((I = _.formItemAttributes) == null ? void 0 : I.visible) !== !1;
2115
2115
  if (s.mode !== "view" && ((u = _.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = _.formItemAttributes) == null ? void 0 : c.type) === "password")
2116
2116
  return !1;
2117
2117
  let v = (k = _.formItemAttributes) == null ? void 0 : k.showCondition;
@@ -2129,7 +2129,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2129
2129
  }
2130
2130
  ) : []);
2131
2131
  Ee([() => s.id, () => s.sessionId], () => {
2132
- console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), M();
2132
+ console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), T();
2133
2133
  }, {
2134
2134
  immediate: !0
2135
2135
  });
@@ -2138,22 +2138,22 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2138
2138
  const _ = s.model.fields;
2139
2139
  let h = {};
2140
2140
  _ == null || _.forEach((v) => {
2141
- var P, u, c, k, O, G, U, T, b, j, W, g, x;
2142
- if (r[v.prop] = null, v.visible !== !1 && ((P = v.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
2141
+ var I, u, c, k, O, z, D, F, U, b, Y, g, x;
2142
+ if (r[v.prop] = null, v.visible !== !1 && ((I = v.formItemAttributes) == null ? void 0 : I.visible) !== !1) {
2143
2143
  if (((u = v.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[v.prop] = (c = v.formItemAttributes) == null ? void 0 : c.defaultValue : r[v.prop] = void 0, s.mode !== "view") {
2144
2144
  let K = (k = v.formItemAttributes) == null ? void 0 : k.validationRule;
2145
2145
  K !== void 0 && (h[v.prop] = K), ze(i), Object.assign(i, h);
2146
2146
  }
2147
- const w = v.formItemAttributes, J = w == null ? void 0 : w.type, q = (O = w == null ? void 0 : w.selectAttributes) == null ? void 0 : O.useDatableDict, te = (G = w == null ? void 0 : w.selectAttributes) == null ? void 0 : G.dictId, ne = (U = w == null ? void 0 : w.selectAttributes) == null ? void 0 : U.api, se = (T = w == null ? void 0 : w.selectAttributes) == null ? void 0 : T.valueMappingField, Q = (b = w == null ? void 0 : w.selectAttributes) == null ? void 0 : b.labelMappingField;
2148
- if (J === "select") {
2147
+ const w = v.formItemAttributes, W = w == null ? void 0 : w.type, q = (O = w == null ? void 0 : w.selectAttributes) == null ? void 0 : O.useDatableDict, oe = (z = w == null ? void 0 : w.selectAttributes) == null ? void 0 : z.dictId, ne = (D = w == null ? void 0 : w.selectAttributes) == null ? void 0 : D.api, se = (F = w == null ? void 0 : w.selectAttributes) == null ? void 0 : F.valueMappingField, X = (U = w == null ? void 0 : w.selectAttributes) == null ? void 0 : U.labelMappingField;
2148
+ if (W === "select") {
2149
2149
  if (q) {
2150
- let re = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${te}`;
2151
- const ce = (j = w == null ? void 0 : w.selectAttributes) == null ? void 0 : j.queryParamName, me = (W = w == null ? void 0 : w.selectAttributes) == null ? void 0 : W.queryParamValueField;
2150
+ let re = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${oe}`;
2151
+ const ce = (b = w == null ? void 0 : w.selectAttributes) == null ? void 0 : b.queryParamName, me = (Y = w == null ? void 0 : w.selectAttributes) == null ? void 0 : Y.queryParamValueField;
2152
2152
  ce && (re = `${re}?${ce}=${s.id}`), me || Ce(re, "GET", {}).then(({ data: he }) => {
2153
- var oe;
2154
- if ((oe = v.formItemAttributes) != null && oe.selectAttributes) {
2155
- let ge = [];
2156
- Array.isArray(he.data) ? ge = he.data : he.data.list && Array.isArray(he.data.list) && (ge = he.data.list), v.formItemAttributes.selectAttributes.options = ge.map((Ie) => ({
2153
+ var ye;
2154
+ if ((ye = v.formItemAttributes) != null && ye.selectAttributes) {
2155
+ let Q = [];
2156
+ Array.isArray(he.data) ? Q = he.data : he.data.list && Array.isArray(he.data.list) && (Q = he.data.list), v.formItemAttributes.selectAttributes.options = Q.map((Ie) => ({
2157
2157
  value: Ie.dbOrdinal,
2158
2158
  label: Ie.value
2159
2159
  }));
@@ -2165,10 +2165,10 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2165
2165
  re && (K = `${K}?${re}=${s.id}`), ce || Ce(K, "GET", {}).then(({ data: me }) => {
2166
2166
  var he;
2167
2167
  if ((he = v.formItemAttributes) != null && he.selectAttributes) {
2168
- let oe = [];
2169
- Array.isArray(me.data) ? oe = me.data : me.data.list && Array.isArray(me.data.list) && (oe = me.data.list), v.formItemAttributes.selectAttributes.options = oe.map((ge) => ({
2170
- value: se ? ge[se] : ge.value,
2171
- label: Q ? ge[Q] : ge.label
2168
+ let ye = [];
2169
+ Array.isArray(me.data) ? ye = me.data : me.data.list && Array.isArray(me.data.list) && (ye = me.data.list), v.formItemAttributes.selectAttributes.options = ye.map((Q) => ({
2170
+ value: se ? Q[se] : Q.value,
2171
+ label: X ? Q[X] : Q.label
2172
2172
  }));
2173
2173
  }
2174
2174
  });
@@ -2177,40 +2177,40 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2177
2177
  }
2178
2178
  });
2179
2179
  }
2180
- function M() {
2180
+ function T() {
2181
2181
  var _;
2182
- console.log(`Refresh form view data: id = ${s.id}, model = `, s.model), F(), f.value = (_ = s.model.useI18n) != null ? _ : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
2182
+ console.log(`Refresh form view data: id = ${s.id}, model = `, s.model), L(), f.value = (_ = s.model.useI18n) != null ? _ : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
2183
2183
  ze(r), Object.assign(r, h.data), s.model.fields.forEach((v) => {
2184
- v.formItemAttributes && v.formItemAttributes.type === "select" && r[v.prop] !== void 0 && ee(v);
2184
+ v.formItemAttributes && v.formItemAttributes.type === "select" && r[v.prop] !== void 0 && te(v);
2185
2185
  }), l.value = !1;
2186
2186
  }));
2187
2187
  }
2188
2188
  function H() {
2189
2189
  return new Promise((_, h) => {
2190
- var P, u, c, k;
2191
- ((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (k = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : k.beforeSubmit(r));
2190
+ var I, u, c, k;
2191
+ ((u = (I = s.model.formConfig) == null ? void 0 : I.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (k = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : k.beforeSubmit(r));
2192
2192
  let v = s.mode === "create" ? "POST" : "PUT";
2193
2193
  s.model.api && Ce(s.model.api, v, r).then(({ data: O }) => {
2194
- var G, U, T, b;
2195
- O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((U = (G = s.model.formConfig) == null ? void 0 : G.functions) == null ? void 0 : U.afterSubmit) !== void 0 && ((b = (T = s.model.formConfig) == null ? void 0 : T.functions) == null || b.afterSubmit(O.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
2194
+ var z, D, F, U;
2195
+ O.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((D = (z = s.model.formConfig) == null ? void 0 : z.functions) == null ? void 0 : D.afterSubmit) !== void 0 && ((U = (F = s.model.formConfig) == null ? void 0 : F.functions) == null || U.afterSubmit(O.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
2196
2196
  });
2197
2197
  });
2198
2198
  }
2199
- function F() {
2199
+ function L() {
2200
2200
  var _;
2201
2201
  console.log("FormView.reset: begin"), (_ = a.value) == null || _.resetFields();
2202
2202
  }
2203
- function Z(_) {
2203
+ function ee(_) {
2204
2204
  return _.label ? f ? n(_.label) : _.label : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
2205
2205
  }
2206
2206
  function B(_) {
2207
- var h, v, P, u;
2207
+ var h, v, I, u;
2208
2208
  if (_) {
2209
- if (L(_, "select")) {
2209
+ if (M(_, "select")) {
2210
2210
  const c = (v = (h = _.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : v.transformValue;
2211
2211
  if (c)
2212
2212
  return c(r[_.prop]);
2213
- const k = (u = (P = _.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2213
+ const k = (u = (I = _.formItemAttributes) == null ? void 0 : I.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2214
2214
  if (k)
2215
2215
  return r[k];
2216
2216
  }
@@ -2221,9 +2221,9 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2221
2221
  var h;
2222
2222
  return ((h = _.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
2223
2223
  }
2224
- function R(_, h) {
2225
- var P, u;
2226
- const v = (u = (P = h.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
2224
+ function G(_, h) {
2225
+ var I, u;
2226
+ const v = (u = (I = h.formItemAttributes) == null ? void 0 : I.type) != null ? u : "input";
2227
2227
  switch (_) {
2228
2228
  case "input":
2229
2229
  return s.mode === "view" ? !1 : v === "input" || v === "password";
@@ -2233,25 +2233,25 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2233
2233
  return console.log("Error: unrecognized form component type: ", _), !0;
2234
2234
  }
2235
2235
  }
2236
- function L(_, h) {
2236
+ function M(_, h) {
2237
2237
  var v;
2238
2238
  return ((v = _.formItemAttributes) == null ? void 0 : v.type) === h;
2239
2239
  }
2240
- function ee(_) {
2240
+ function te(_) {
2241
2241
  var h;
2242
2242
  for (let v of s.model.fields) {
2243
- const P = (h = v.formItemAttributes) == null ? void 0 : h.selectAttributes;
2244
- if (!(!v.formItemAttributes || v.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === _.prop) {
2245
- const u = P.api;
2243
+ const I = (h = v.formItemAttributes) == null ? void 0 : h.selectAttributes;
2244
+ if (!(!v.formItemAttributes || v.formItemAttributes.type !== "select" || !I || !I.queryParamValueField) && I.queryParamValueField === _.prop) {
2245
+ const u = I.api;
2246
2246
  if (u) {
2247
2247
  let c = u;
2248
- const k = P.queryParamName;
2249
- k && (c = `${c}?${k}=${r[P.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data: O }) => {
2250
- if (P) {
2251
- let G = [];
2252
- Array.isArray(O.data) ? G = O.data : O.data.list && Array.isArray(O.data.list) && (G = O.data.list), P.options = G.map((U) => ({
2253
- value: P.valueMappingField ? U[P.valueMappingField] : U.value,
2254
- label: P.labelMappingField ? U[P.labelMappingField] : U.label
2248
+ const k = I.queryParamName;
2249
+ k && (c = `${c}?${k}=${r[I.queryParamValueField]}`), Ce(c, "GET", {}).then(({ data: O }) => {
2250
+ if (I) {
2251
+ let z = [];
2252
+ Array.isArray(O.data) ? z = O.data : O.data.list && Array.isArray(O.data.list) && (z = O.data.list), I.options = z.map((D) => ({
2253
+ value: I.valueMappingField ? D[I.valueMappingField] : D.value,
2254
+ label: I.labelMappingField ? D[I.labelMappingField] : D.label
2255
2255
  }));
2256
2256
  }
2257
2257
  });
@@ -2260,13 +2260,13 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2260
2260
  }
2261
2261
  }
2262
2262
  return t({
2263
- refresh: M,
2264
- reset: F,
2263
+ refresh: T,
2264
+ reset: L,
2265
2265
  submit: H,
2266
2266
  formData: r
2267
2267
  }), (_, h) => {
2268
- const v = E("el-input"), P = E("el-switch"), u = E("el-date-picker"), c = E("el-option"), k = E("el-select"), O = E("el-input-number"), G = E("el-form-item"), U = E("el-form"), T = Lt("loading");
2269
- return Gt((p(), I(U, {
2268
+ const v = E("el-input"), I = E("el-switch"), u = E("el-date-picker"), c = E("el-time-picker"), k = E("el-option"), O = E("el-select"), z = E("el-input-number"), D = E("el-form-item"), F = E("el-form"), U = Gt("loading");
2269
+ return jt((p(), P(F, {
2270
2270
  ref_key: "formRef",
2271
2271
  ref: a,
2272
2272
  model: r,
@@ -2278,69 +2278,86 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2278
2278
  inline: !s.disableInline
2279
2279
  }, {
2280
2280
  default: d(() => [
2281
- (p(!0), V(le, null, fe(C.value, (b) => (p(), I(G, {
2281
+ (p(!0), V(le, null, fe(C.value, (b) => (p(), P(D, {
2282
2282
  class: "form-item",
2283
2283
  style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2284
2284
  prop: b.prop,
2285
- label: Z(b)
2285
+ label: ee(b)
2286
2286
  }, {
2287
2287
  default: d(() => {
2288
- var j, W, g, x, w, J, q, te, ne, se, Q, K, re, ce, me, he;
2288
+ var Y, g, x, w, W, q, oe, ne, se, X, K, re, ce, me, he, ye;
2289
2289
  return [
2290
- R("input", b) ? (p(), I(v, {
2290
+ G("input", b) ? (p(), P(v, {
2291
2291
  key: 0,
2292
- type: L(b, "password") ? "password" : "text",
2292
+ type: M(b, "password") ? "password" : "text",
2293
2293
  modelValue: r[b.prop],
2294
- "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2295
- placeholder: (j = b.formItemAttributes) == null ? void 0 : j.placeholder,
2294
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2295
+ placeholder: (Y = b.formItemAttributes) == null ? void 0 : Y.placeholder,
2296
2296
  disabled: ie(b)
2297
- }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : z("", !0),
2298
- y(b) ? (p(), V("span", Ys, D(B(b)), 1)) : z("", !0),
2299
- L(b, "switch") ? (p(), I(P, {
2297
+ }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : j("", !0),
2298
+ y(b) ? (p(), V("span", Js, R(B(b)), 1)) : j("", !0),
2299
+ M(b, "switch") ? (p(), P(I, {
2300
2300
  key: 2,
2301
2301
  modelValue: r[b.prop],
2302
- "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2302
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2303
2303
  disabled: _.mode === "view"
2304
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : z("", !0),
2305
- L(b, "datepicker") ? (p(), I(u, {
2304
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
2305
+ M(b, "date") ? (p(), P(u, {
2306
2306
  key: 3,
2307
2307
  style: { width: "100%" },
2308
2308
  type: "date",
2309
2309
  "value-format": "YYYY-MM-DD",
2310
2310
  modelValue: r[b.prop],
2311
- "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2311
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2312
2312
  disabled: _.mode === "view"
2313
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : z("", !0),
2314
- L(b, "select") && _.mode !== "view" ? (p(), I(k, {
2313
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
2314
+ M(b, "time") ? (p(), P(c, {
2315
2315
  key: 4,
2316
- filterable: (g = (W = b.formItemAttributes) == null ? void 0 : W.selectAttributes) == null ? void 0 : g.allowCreate,
2317
- "allow-create": (w = (x = b.formItemAttributes) == null ? void 0 : x.selectAttributes) == null ? void 0 : w.allowCreate,
2318
- "default-first-option": (q = (J = b.formItemAttributes) == null ? void 0 : J.selectAttributes) == null ? void 0 : q.allowCreate,
2316
+ style: { width: "100%" },
2319
2317
  modelValue: r[b.prop],
2320
- "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2318
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2319
+ disabled: _.mode === "view"
2320
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
2321
+ M(b, "datetime") ? (p(), P(u, {
2322
+ key: 5,
2323
+ style: { width: "100%" },
2324
+ type: "datetime",
2325
+ "value-format": "YYYY-MM-DD HH:mm:ss",
2326
+ modelValue: r[b.prop],
2327
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2328
+ disabled: _.mode === "view"
2329
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : j("", !0),
2330
+ M(b, "select") && _.mode !== "view" ? (p(), P(O, {
2331
+ key: 6,
2332
+ filterable: (x = (g = b.formItemAttributes) == null ? void 0 : g.selectAttributes) == null ? void 0 : x.allowCreate,
2333
+ "allow-create": (W = (w = b.formItemAttributes) == null ? void 0 : w.selectAttributes) == null ? void 0 : W.allowCreate,
2334
+ "default-first-option": (oe = (q = b.formItemAttributes) == null ? void 0 : q.selectAttributes) == null ? void 0 : oe.allowCreate,
2335
+ modelValue: r[b.prop],
2336
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2321
2337
  disabled: ie(b),
2322
- onChange: (oe) => ee(b)
2338
+ onChange: (Q) => te(b)
2323
2339
  }, {
2324
2340
  default: d(() => {
2325
- var oe, ge;
2341
+ var Q, Ie;
2326
2342
  return [
2327
- (p(!0), V(le, null, fe((ge = (oe = b.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : ge.options, (Ie) => (p(), I(c, {
2328
- value: Ie.value,
2329
- label: Ie.label
2343
+ (p(!0), V(le, null, fe((Ie = (Q = b.formItemAttributes) == null ? void 0 : Q.selectAttributes) == null ? void 0 : Ie.options, (Xe) => (p(), P(k, {
2344
+ value: Xe.value,
2345
+ label: Xe.label
2330
2346
  }, null, 8, ["value", "label"]))), 256))
2331
2347
  ];
2332
2348
  }),
2333
2349
  _: 2
2334
- }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : z("", !0),
2335
- L(b, "input-number") && _.mode !== "view" ? (p(), I(O, {
2336
- key: 5,
2350
+ }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : j("", !0),
2351
+ M(b, "input-number") && _.mode !== "view" ? (p(), P(z, {
2352
+ key: 7,
2353
+ style: { width: "100%" },
2337
2354
  modelValue: r[b.prop],
2338
- "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2339
- min: (se = (ne = (te = b.formItemAttributes) == null ? void 0 : te.inputNumber) == null ? void 0 : ne.min) != null ? se : Number.NEGATIVE_INFINITY,
2340
- max: (re = (K = (Q = b.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : K.max) != null ? re : Number.POSITIVE_INFINITY,
2341
- step: (he = (me = (ce = b.formItemAttributes) == null ? void 0 : ce.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
2355
+ "onUpdate:modelValue": (Q) => r[b.prop] = Q,
2356
+ min: (X = (se = (ne = b.formItemAttributes) == null ? void 0 : ne.inputNumber) == null ? void 0 : se.min) != null ? X : Number.NEGATIVE_INFINITY,
2357
+ max: (ce = (re = (K = b.formItemAttributes) == null ? void 0 : K.inputNumber) == null ? void 0 : re.max) != null ? ce : Number.POSITIVE_INFINITY,
2358
+ step: (ye = (he = (me = b.formItemAttributes) == null ? void 0 : me.inputNumber) == null ? void 0 : he.step) != null ? ye : 1,
2342
2359
  "value-on-clear": -10
2343
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : z("", !0)
2360
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : j("", !0)
2344
2361
  ];
2345
2362
  }),
2346
2363
  _: 2
@@ -2348,11 +2365,11 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2348
2365
  ]),
2349
2366
  _: 1
2350
2367
  }, 8, ["model", "rules", "inline"])), [
2351
- [T, l.value]
2368
+ [U, l.value]
2352
2369
  ]);
2353
2370
  };
2354
2371
  }
2355
- }), ho = /* @__PURE__ */ ye(Ks, [["__scopeId", "data-v-e78161db"]]), Qs = { class: "console-dialog__body" }, Xs = {
2372
+ }), _o = /* @__PURE__ */ ve(Ks, [["__scopeId", "data-v-1155debe"]]), Qs = { class: "console-dialog__body" }, Xs = {
2356
2373
  key: 0,
2357
2374
  class: "process-view"
2358
2375
  }, Zs = { class: "operation-button-wrapper" }, go = /* @__PURE__ */ Se({
@@ -2384,8 +2401,8 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2384
2401
  close: f,
2385
2402
  refresh: i
2386
2403
  }), (C, N) => {
2387
- const M = E("el-step"), H = E("el-steps"), F = E("el-button"), Z = E("el-dialog");
2388
- return p(), I(Z, {
2404
+ const T = E("el-step"), H = E("el-steps"), L = E("el-button"), ee = E("el-dialog");
2405
+ return p(), P(ee, {
2389
2406
  class: "console-dialog",
2390
2407
  title: "Edit",
2391
2408
  "align-center": "",
@@ -2401,28 +2418,28 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2401
2418
  style: je({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2402
2419
  }, [
2403
2420
  S("div", Zs, [
2404
- (p(!0), V(le, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ie) => (p(), I(F, {
2405
- onClick: (R) => ie.function(a.value.formData)
2421
+ (p(!0), V(le, null, fe((B = s.model.formConfig) == null ? void 0 : B.dialogButtons, (ie) => (p(), P(L, {
2422
+ onClick: (G) => ie.function(a.value.formData)
2406
2423
  }, {
2407
2424
  default: d(() => [
2408
- Y(D($(n)(ie.label)), 1)
2425
+ J(R($(n)(ie.label)), 1)
2409
2426
  ]),
2410
2427
  _: 2
2411
2428
  }, 1032, ["onClick"]))), 256))
2412
2429
  ]),
2413
2430
  S("div", null, [
2414
- m(F, { onClick: f }, {
2431
+ m(L, { onClick: f }, {
2415
2432
  default: d(() => [
2416
- Y(D($(n)("common.basic.cancel")), 1)
2433
+ J(R($(n)("common.basic.cancel")), 1)
2417
2434
  ]),
2418
2435
  _: 1
2419
2436
  }),
2420
- m(F, {
2437
+ m(L, {
2421
2438
  type: "primary",
2422
2439
  onClick: y
2423
2440
  }, {
2424
2441
  default: d(() => [
2425
- Y(D($(n)("common.basic.save")), 1)
2442
+ J(R($(n)("common.basic.save")), 1)
2426
2443
  ]),
2427
2444
  _: 1
2428
2445
  })
@@ -2432,7 +2449,7 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2432
2449
  }),
2433
2450
  default: d(() => [
2434
2451
  S("div", Qs, [
2435
- m(ho, {
2452
+ m(_o, {
2436
2453
  class: "form-view",
2437
2454
  style: je({ width: C.showProcess ? "calc(100% - 280px)" : "100%" }),
2438
2455
  ref_key: "formViewRef",
@@ -2453,12 +2470,12 @@ const js = /* @__PURE__ */ ye(Ls, [["render", Gs]]), zs = { class: "card-wrapper
2453
2470
  active: 1
2454
2471
  }, {
2455
2472
  default: d(() => [
2456
- m(M, { title: "Step 1" }),
2457
- m(M, { title: "Step 2" })
2473
+ m(T, { title: "Step 1" }),
2474
+ m(T, { title: "Step 2" })
2458
2475
  ]),
2459
2476
  _: 1
2460
2477
  })
2461
- ])) : z("", !0)
2478
+ ])) : j("", !0)
2462
2479
  ])
2463
2480
  ]),
2464
2481
  _: 1
@@ -2486,31 +2503,31 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2486
2503
  model: {}
2487
2504
  },
2488
2505
  setup(e, { expose: t }) {
2489
- const { t: o } = rt.global, n = e, s = de([]), r = de({
2506
+ const { t: o } = at.global, n = e, s = de([]), r = de({
2490
2507
  showPane: !0
2491
- }), l = A(""), a = A(!0), i = A(!1), f = it(), y = A(""), C = de([]), N = de([]), M = A(), H = A([]), F = A("create"), Z = A(!0), B = A(!1), ie = A(""), R = de({
2508
+ }), l = A(""), a = A(!0), i = A(!1), f = ct(), y = A(""), C = de([]), N = de([]), T = A(), H = A([]), L = A("create"), ee = A(!0), B = A(!1), ie = A(""), G = de({
2492
2509
  pageSize: 10,
2493
2510
  pageNo: 1,
2494
2511
  totalElements: 0
2495
- }), L = Te(() => s.filter(
2512
+ }), M = Te(() => s.filter(
2496
2513
  (g) => {
2497
2514
  var x, w;
2498
2515
  return ((x = g.formItemAttributes) == null ? void 0 : x.type) !== "password" && g.visible !== !1 && ((w = g.tableColumnAttributes) == null ? void 0 : w.visible) !== !1;
2499
2516
  }
2500
2517
  ));
2501
- function ee(g, x) {
2502
- var te, ne, se, Q;
2518
+ function te(g, x) {
2519
+ var oe, ne, se, X;
2503
2520
  let w = x.row[g.prop];
2504
- const J = (ne = (te = g.tableColumnAttributes) == null ? void 0 : te.functions) == null ? void 0 : ne.transformValue, q = (se = g.tableColumnAttributes) == null ? void 0 : se.transformValueMappings;
2505
- if (J)
2506
- w = J(w);
2521
+ const W = (ne = (oe = g.tableColumnAttributes) == null ? void 0 : oe.functions) == null ? void 0 : ne.transformValue, q = (se = g.tableColumnAttributes) == null ? void 0 : se.transformValueMappings;
2522
+ if (W)
2523
+ w = W(w);
2507
2524
  else if (q && q.length > 0) {
2508
2525
  for (let K of q)
2509
2526
  if (w === K.value) {
2510
2527
  w = o(K.label);
2511
2528
  break;
2512
2529
  }
2513
- } else if (((Q = g.formItemAttributes) == null ? void 0 : Q.type) === "select") {
2530
+ } else if (((X = g.formItemAttributes) == null ? void 0 : X.type) === "select") {
2514
2531
  const K = g.formItemAttributes.selectAttributes;
2515
2532
  if (K) {
2516
2533
  if (K.viewModeLabelField)
@@ -2527,26 +2544,26 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2527
2544
  return w;
2528
2545
  }
2529
2546
  function _(g, x) {
2530
- var w, J;
2531
- return g.label ? o(g.label) : (J = (w = g.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : J.call(w, x.$index, x.row);
2547
+ var w, W;
2548
+ return g.label ? o(g.label) : (W = (w = g.functions) == null ? void 0 : w.transformLabel) == null ? void 0 : W.call(w, x.$index, x.row);
2532
2549
  }
2533
2550
  function h(g) {
2534
2551
  ze(n.model), Object.assign(n.model, g);
2535
2552
  }
2536
2553
  function v() {
2537
- var x, w, J;
2538
- if (Z.value = !0, !n.model || !n.model.api)
2554
+ var x, w, W;
2555
+ if (ee.value = !0, !n.model || !n.model.api)
2539
2556
  return;
2540
- ze(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (J = n.model.useI18n) != null ? J : !0;
2541
- let g = Xe({}, r.queryParams);
2542
- g.pageSize = R.pageSize, g.pageNo = R.pageNo, g.search = y.value, Ce(n.model.api, "GET", g).then(({ data: q }) => {
2543
- const { list: te, totalCount: ne } = q.data;
2544
- C.splice(0, C.length, ...te), R.totalElements = ne, Z.value = !1;
2557
+ ze(r), r.showPane = !0, Object.assign(r, (x = n.model.tableConfig) != null ? x : {}), s.splice(0, s.length, ...n.model.fields), l.value = (w = n.model.route) != null ? w : "", a.value = (W = n.model.useI18n) != null ? W : !0;
2558
+ let g = Ze({}, r.queryParams);
2559
+ g.pageSize = G.pageSize, g.pageNo = G.pageNo, g.search = y.value, Ce(n.model.api, "GET", g).then(({ data: q }) => {
2560
+ const { list: oe, totalCount: ne } = q.data;
2561
+ C.splice(0, C.length, ...oe), G.totalElements = ne, ee.value = !1;
2545
2562
  });
2546
2563
  }
2547
- function P() {
2564
+ function I() {
2548
2565
  var g, x;
2549
- r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (x = r.functions) == null || x.create() : (F.value = "create", ie.value = "", i.value = !0);
2566
+ r.createPageRoutePath !== void 0 ? f.push(r.createPageRoutePath) : ((g = r.functions) == null ? void 0 : g.create) !== void 0 ? (x = r.functions) == null || x.create() : (L.value = "create", ie.value = "", i.value = !0);
2550
2567
  }
2551
2568
  function u(g, x) {
2552
2569
  n.model.api && Ce(n.model.api, "DELETE", x.id).then(({ data: w }) => {
@@ -2554,7 +2571,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2554
2571
  });
2555
2572
  }
2556
2573
  function c() {
2557
- $t.confirm(
2574
+ Et.confirm(
2558
2575
  "The selected items will be deleted. Continue?",
2559
2576
  o("common.table.warning"),
2560
2577
  {
@@ -2567,70 +2584,70 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2567
2584
  if (((g = r.functions) == null ? void 0 : g.batchDelete) !== void 0)
2568
2585
  (x = r.functions) == null || x.batchDelete(H.value);
2569
2586
  else {
2570
- const w = H.value.map((J) => J.id);
2571
- ve.delete(`${n.model.api}/${w.join(",")}`).then(({ data: J }) => {
2572
- J.code === 0 && (i.value = !1, v());
2587
+ const w = H.value.map((W) => W.id);
2588
+ be.delete(`${n.model.api}/${w.join(",")}`).then(({ data: W }) => {
2589
+ W.code === 0 && (i.value = !1, v());
2573
2590
  });
2574
2591
  }
2575
- M.value.clearSelection();
2592
+ T.value.clearSelection();
2576
2593
  }).catch(() => {
2577
- M.value.clearSelection();
2594
+ T.value.clearSelection();
2578
2595
  });
2579
2596
  }
2580
2597
  function k(g) {
2581
- R.pageSize = g, v();
2598
+ G.pageSize = g, v();
2582
2599
  }
2583
2600
  function O(g) {
2584
- R.pageNo = g, v();
2601
+ G.pageNo = g, v();
2585
2602
  }
2586
- function G(g, x) {
2603
+ function z(g, x) {
2587
2604
  r.editPageRoutePath !== void 0 ? f.push({
2588
2605
  path: r.editPageRoutePath,
2589
2606
  query: {
2590
2607
  id: x.id
2591
2608
  }
2592
- }) : (ie.value = x.id, F.value = "update", i.value = !0);
2609
+ }) : (ie.value = x.id, L.value = "update", i.value = !0);
2593
2610
  }
2594
- function U() {
2611
+ function D() {
2595
2612
  var w;
2596
2613
  let g = ((w = n.model.api) != null && w.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
2597
2614
  const x = r.queryParams;
2598
- x !== void 0 && Object.keys(x).length > 0 && (g += "?", Object.entries(r.queryParams).map((J) => {
2599
- g += `${J[0]}=${J[1]}&`;
2615
+ x !== void 0 && Object.keys(x).length > 0 && (g += "?", Object.entries(r.queryParams).map((W) => {
2616
+ g += `${W[0]}=${W[1]}&`;
2600
2617
  })), window.open(g);
2601
2618
  }
2602
- function T(g) {
2619
+ function F(g) {
2603
2620
  H.value = g;
2604
2621
  }
2605
- function b(g) {
2622
+ function U(g) {
2606
2623
  return g.label ? a.value ? o(g.label) : g.label : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase();
2607
2624
  }
2608
- function j(g) {
2625
+ function b(g) {
2609
2626
  g ? (B.value = !0, N.splice(0, N.length, ...C), C.splice(0, C.length, ...H.value)) : (B.value = !1, C.splice(0, C.length, ...N));
2610
2627
  }
2611
- function W() {
2612
- var te;
2628
+ function Y() {
2629
+ var oe;
2613
2630
  if (H.value.length === 0) {
2614
- $t.alert("Select rows before printing", "Print", {
2631
+ Et.alert("Select rows before printing", "Print", {
2615
2632
  confirmButtonText: "OK"
2616
2633
  });
2617
2634
  return;
2618
2635
  }
2619
2636
  let g = "";
2620
- L.value.forEach((ne) => {
2637
+ M.value.forEach((ne) => {
2621
2638
  var se;
2622
2639
  g += `<th>${o((se = ne.label) != null ? se : "")}</th>`;
2623
2640
  });
2624
2641
  let x = "";
2625
2642
  H.value.forEach((ne) => {
2626
- x += "<tr>", L.value.forEach((se) => {
2643
+ x += "<tr>", M.value.forEach((se) => {
2627
2644
  x += `<td>${ne[se.prop]}</td>`;
2628
2645
  }), x += "</tr>";
2629
2646
  });
2630
2647
  let w = `<table><tr>${g}</tr>${x}</table>`;
2631
- const J = document.createElement("iframe");
2632
- J.style.display = "none", document.body.appendChild(J);
2633
- const q = J.contentDocument || ((te = J.contentWindow) == null ? void 0 : te.document);
2648
+ const W = document.createElement("iframe");
2649
+ W.style.display = "none", document.body.appendChild(W);
2650
+ const q = W.contentDocument || ((oe = W.contentWindow) == null ? void 0 : oe.document);
2634
2651
  q == null || q.open(), q == null || q.write(`
2635
2652
  <!DOCTYPE html>
2636
2653
  <html>
@@ -2692,13 +2709,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2692
2709
  refresh: v,
2693
2710
  updateConfigAndRefresh: h
2694
2711
  }), (g, x) => {
2695
- const w = E("el-checkbox"), J = E("el-badge"), q = E("el-button"), te = E("el-dropdown-item"), ne = E("el-dropdown-menu"), se = E("el-dropdown"), Q = E("el-icon"), K = E("el-tooltip"), re = E("el-input"), ce = E("el-table-column"), me = E("router-link"), he = E("el-tag"), oe = E("el-popconfirm"), ge = E("el-table"), Ie = E("el-pagination"), _o = Lt("loading");
2712
+ const w = E("el-checkbox"), W = E("el-badge"), q = E("el-button"), oe = E("el-dropdown-item"), ne = E("el-dropdown-menu"), se = E("el-dropdown"), X = E("el-icon"), K = E("el-tooltip"), re = E("el-input"), ce = E("el-table-column"), me = E("router-link"), he = E("el-tag"), ye = E("el-popconfirm"), Q = E("el-table"), Ie = E("el-pagination"), Xe = Gt("loading");
2696
2713
  return p(), V("div", {
2697
- class: Rt({ "table-view-wrapper": r.showPane })
2714
+ class: Lt({ "table-view-wrapper": r.showPane })
2698
2715
  }, [
2699
2716
  S("div", nr, [
2700
2717
  S("div", sr, [
2701
- r.selectMode ? (p(), I(J, {
2718
+ r.selectMode ? (p(), P(W, {
2702
2719
  key: 0,
2703
2720
  value: H.value.length,
2704
2721
  type: "primary",
@@ -2709,25 +2726,25 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2709
2726
  class: "selected-checkbox",
2710
2727
  border: !0,
2711
2728
  label: $(o)("common.table.viewSelected"),
2712
- onChange: j
2729
+ onChange: b
2713
2730
  }, null, 8, ["label"])
2714
2731
  ]),
2715
2732
  _: 1
2716
- }, 8, ["value"])) : z("", !0),
2717
- !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), I(q, {
2733
+ }, 8, ["value"])) : j("", !0),
2734
+ !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), P(q, {
2718
2735
  key: 1,
2719
2736
  type: "primary",
2720
- onClick: P
2737
+ onClick: I
2721
2738
  }, {
2722
2739
  default: d(() => {
2723
- var pe, X;
2740
+ var pe, Z;
2724
2741
  return [
2725
- Y(D(((pe = r.labels) == null ? void 0 : pe.create) != null ? $(o)((X = r.labels) == null ? void 0 : X.create) : $(o)("common.table.create")), 1)
2742
+ J(R(((pe = r.labels) == null ? void 0 : pe.create) != null ? $(o)((Z = r.labels) == null ? void 0 : Z.create) : $(o)("common.table.create")), 1)
2726
2743
  ];
2727
2744
  }),
2728
2745
  _: 1
2729
- })) : z("", !0),
2730
- !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), I(q, {
2746
+ })) : j("", !0),
2747
+ !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), P(q, {
2731
2748
  key: 2,
2732
2749
  disabled: H.value.length == 0,
2733
2750
  type: "danger",
@@ -2735,15 +2752,15 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2735
2752
  onClick: c
2736
2753
  }, {
2737
2754
  default: d(() => {
2738
- var pe, X;
2755
+ var pe, Z;
2739
2756
  return [
2740
- Y(D(((pe = r.labels) == null ? void 0 : pe.delete) != null ? $(o)((X = r.labels) == null ? void 0 : X.delete) : $(o)("common.table.delete")), 1)
2757
+ J(R(((pe = r.labels) == null ? void 0 : pe.delete) != null ? $(o)((Z = r.labels) == null ? void 0 : Z.delete) : $(o)("common.table.delete")), 1)
2741
2758
  ];
2742
2759
  }),
2743
2760
  _: 1
2744
- }, 8, ["disabled"])) : z("", !0),
2761
+ }, 8, ["disabled"])) : j("", !0),
2745
2762
  m(q, {
2746
- icon: $(qt),
2763
+ icon: $(Ht),
2747
2764
  style: { width: "28px" },
2748
2765
  onClick: v
2749
2766
  }, null, 8, ["icon"]),
@@ -2754,41 +2771,41 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2754
2771
  dropdown: d(() => [
2755
2772
  m(ne, null, {
2756
2773
  default: d(() => [
2757
- m(te, {
2774
+ m(oe, {
2758
2775
  icon: $(Ao),
2759
2776
  disabled: !0
2760
2777
  }, {
2761
2778
  default: d(() => x[3] || (x[3] = [
2762
- Y("导入")
2779
+ J("导入")
2763
2780
  ])),
2764
2781
  _: 1
2765
2782
  }, 8, ["icon"]),
2766
- m(te, {
2767
- icon: $(Et),
2783
+ m(oe, {
2784
+ icon: $(Ot),
2768
2785
  divided: "",
2769
2786
  disabled: !0
2770
2787
  }, {
2771
2788
  default: d(() => x[4] || (x[4] = [
2772
- Y("导出选中内容")
2789
+ J("导出选中内容")
2773
2790
  ])),
2774
2791
  _: 1
2775
2792
  }, 8, ["icon"]),
2776
- m(te, {
2777
- icon: $(Et),
2778
- onClick: U
2793
+ m(oe, {
2794
+ icon: $(Ot),
2795
+ onClick: D
2779
2796
  }, {
2780
2797
  default: d(() => x[5] || (x[5] = [
2781
- Y("导出查询结果")
2798
+ J("导出查询结果")
2782
2799
  ])),
2783
2800
  _: 1
2784
2801
  }, 8, ["icon"]),
2785
- m(te, {
2802
+ m(oe, {
2786
2803
  icon: $(No),
2787
2804
  divided: "",
2788
2805
  disabled: !0
2789
2806
  }, {
2790
2807
  default: d(() => x[6] || (x[6] = [
2791
- Y("任务中心")
2808
+ J("任务中心")
2792
2809
  ])),
2793
2810
  _: 1
2794
2811
  }, 8, ["icon"])
@@ -2813,21 +2830,21 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2813
2830
  dropdown: d(() => [
2814
2831
  m(ne, null, {
2815
2832
  default: d(() => [
2816
- m(te, {
2833
+ m(oe, {
2817
2834
  icon: $(Mo),
2818
- onClick: W
2835
+ onClick: Y
2819
2836
  }, {
2820
2837
  default: d(() => x[7] || (x[7] = [
2821
- Y("打印")
2838
+ J("打印")
2822
2839
  ])),
2823
2840
  _: 1
2824
2841
  }, 8, ["icon"]),
2825
- m(te, {
2842
+ m(oe, {
2826
2843
  icon: $(Uo),
2827
2844
  disabled: !0
2828
2845
  }, {
2829
2846
  default: d(() => x[8] || (x[8] = [
2830
- Y("表格设置")
2847
+ J("表格设置")
2831
2848
  ])),
2832
2849
  _: 1
2833
2850
  }, 8, ["icon"])
@@ -2843,14 +2860,14 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2843
2860
  ]),
2844
2861
  _: 1
2845
2862
  }),
2846
- r.tooltip ? (p(), I(K, {
2863
+ r.tooltip ? (p(), P(K, {
2847
2864
  key: 3,
2848
2865
  effect: "dark",
2849
2866
  content: $(o)(r.tooltip),
2850
2867
  placement: "right"
2851
2868
  }, {
2852
2869
  default: d(() => [
2853
- m(Q, { style: { color: "#8ba74f" } }, {
2870
+ m(X, { style: { color: "#8ba74f" } }, {
2854
2871
  default: d(() => [
2855
2872
  m($(Do))
2856
2873
  ]),
@@ -2858,7 +2875,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2858
2875
  })
2859
2876
  ]),
2860
2877
  _: 1
2861
- }, 8, ["content"])) : z("", !0)
2878
+ }, 8, ["content"])) : j("", !0)
2862
2879
  ]),
2863
2880
  S("div", rr, [
2864
2881
  m(re, {
@@ -2869,7 +2886,7 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2869
2886
  append: d(() => [
2870
2887
  m(q, {
2871
2888
  style: { "margin-left": "-20px" },
2872
- icon: $(jt),
2889
+ icon: $(zt),
2873
2890
  onClick: v
2874
2891
  }, null, 8, ["icon"])
2875
2892
  ]),
@@ -2877,155 +2894,155 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
2877
2894
  }, 8, ["placeholder", "modelValue"]),
2878
2895
  m(q, { type: "text" }, {
2879
2896
  default: d(() => x[9] || (x[9] = [
2880
- Y("高级搜索")
2897
+ J("高级搜索")
2881
2898
  ])),
2882
2899
  _: 1
2883
2900
  })
2884
2901
  ])
2885
2902
  ]),
2886
- Gt((p(), I(ge, {
2903
+ jt((p(), P(Q, {
2887
2904
  border: !0,
2888
2905
  ref_key: "tableRef",
2889
- ref: M,
2906
+ ref: T,
2890
2907
  data: C,
2891
- onSelectionChange: T,
2908
+ onSelectionChange: F,
2892
2909
  class: "table"
2893
2910
  }, {
2894
2911
  default: d(() => {
2895
2912
  var pe;
2896
2913
  return [
2897
- r.readOnly ? z("", !0) : (p(), I(ce, {
2914
+ r.readOnly ? j("", !0) : (p(), P(ce, {
2898
2915
  key: 0,
2899
2916
  type: "selection",
2900
2917
  width: "50"
2901
2918
  })),
2902
- (p(!0), V(le, null, fe(L.value, (X) => {
2919
+ (p(!0), V(le, null, fe(M.value, (Z) => {
2903
2920
  var Oe;
2904
- return p(), I(ce, {
2905
- prop: X.prop,
2906
- label: b(X),
2907
- width: (Oe = X.tableColumnAttributes) == null ? void 0 : Oe.width,
2921
+ return p(), P(ce, {
2922
+ prop: Z.prop,
2923
+ label: U(Z),
2924
+ width: (Oe = Z.tableColumnAttributes) == null ? void 0 : Oe.width,
2908
2925
  "show-overflow-tooltip": ""
2909
2926
  }, {
2910
2927
  default: d((Ve) => {
2911
- var Ae, qe, wt;
2928
+ var Ae, qe, St;
2912
2929
  return [
2913
- (Ae = X.tableColumnAttributes) != null && Ae.link ? (p(), I(me, {
2930
+ (Ae = Z.tableColumnAttributes) != null && Ae.link ? (p(), P(me, {
2914
2931
  key: 0,
2915
2932
  class: "router-link",
2916
2933
  to: `/${l.value}/detail?id=${Ve.row.id}`
2917
2934
  }, {
2918
2935
  default: d(() => [
2919
- S("span", null, D(ee(X, Ve)), 1)
2936
+ S("span", null, R(te(Z, Ve)), 1)
2920
2937
  ]),
2921
2938
  _: 2
2922
- }, 1032, ["to"])) : (qe = X.tableColumnAttributes) != null && qe.routerLink ? (p(), I(me, {
2939
+ }, 1032, ["to"])) : (qe = Z.tableColumnAttributes) != null && qe.routerLink ? (p(), P(me, {
2923
2940
  key: 1,
2924
2941
  class: "router-link",
2925
- to: X.tableColumnAttributes.routerLink.replace("{id}", Ve.row.id)
2942
+ to: Z.tableColumnAttributes.routerLink.replace("{id}", Ve.row.id)
2926
2943
  }, {
2927
2944
  default: d(() => [
2928
- S("span", null, D(ee(X, Ve)), 1)
2945
+ S("span", null, R(te(Z, Ve)), 1)
2929
2946
  ]),
2930
2947
  _: 2
2931
- }, 1032, ["to"])) : (p(), V("span", ar, D(ee(X, Ve)), 1)),
2932
- ((wt = X.tableColumnAttributes) == null ? void 0 : wt.type) === "tag" ? (p(), I(he, { key: 3 }, {
2948
+ }, 1032, ["to"])) : (p(), V("span", ar, R(te(Z, Ve)), 1)),
2949
+ ((St = Z.tableColumnAttributes) == null ? void 0 : St.type) === "tag" ? (p(), P(he, { key: 3 }, {
2933
2950
  default: d(() => [
2934
- Y(D(Ve.row[X.prop]), 1)
2951
+ J(R(Ve.row[Z.prop]), 1)
2935
2952
  ]),
2936
2953
  _: 2
2937
- }, 1024)) : z("", !0)
2954
+ }, 1024)) : j("", !0)
2938
2955
  ];
2939
2956
  }),
2940
2957
  _: 2
2941
2958
  }, 1032, ["prop", "label", "width"]);
2942
2959
  }), 256)),
2943
- r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), I(ce, {
2960
+ r.operations === void 0 && !((pe = r.selectMode) != null && pe) && !r.readOnly ? (p(), P(ce, {
2944
2961
  key: 1,
2945
2962
  label: $(o)("common.table.operation"),
2946
2963
  width: "120"
2947
2964
  }, {
2948
- default: d((X) => [
2949
- r.updatable !== !1 ? (p(), I(q, {
2965
+ default: d((Z) => [
2966
+ r.updatable !== !1 ? (p(), P(q, {
2950
2967
  key: 0,
2951
2968
  link: "",
2952
2969
  type: "primary",
2953
2970
  class: "operation-button",
2954
- onClick: (Oe) => G(X.$index, X.row)
2971
+ onClick: (Oe) => z(Z.$index, Z.row)
2955
2972
  }, {
2956
2973
  default: d(() => [
2957
- Y(D($(o)("common.table.edit")), 1)
2974
+ J(R($(o)("common.table.edit")), 1)
2958
2975
  ]),
2959
2976
  _: 2
2960
- }, 1032, ["onClick"])) : z("", !0),
2961
- m(oe, {
2977
+ }, 1032, ["onClick"])) : j("", !0),
2978
+ m(ye, {
2962
2979
  title: "Are you sure to delete this?",
2963
- onConfirm: (Oe) => u(X.$index, X.row)
2980
+ onConfirm: (Oe) => u(Z.$index, Z.row)
2964
2981
  }, {
2965
2982
  reference: d(() => [
2966
- r.deletable !== !1 ? (p(), I(q, {
2983
+ r.deletable !== !1 ? (p(), P(q, {
2967
2984
  key: 0,
2968
2985
  link: "",
2969
2986
  type: "primary",
2970
2987
  class: "operation-button"
2971
2988
  }, {
2972
2989
  default: d(() => [
2973
- Y(D($(o)("common.table.delete")), 1)
2990
+ J(R($(o)("common.table.delete")), 1)
2974
2991
  ]),
2975
2992
  _: 1
2976
- })) : z("", !0)
2993
+ })) : j("", !0)
2977
2994
  ]),
2978
2995
  _: 2
2979
2996
  }, 1032, ["onConfirm"])
2980
2997
  ]),
2981
2998
  _: 1
2982
- }, 8, ["label"])) : z("", !0),
2983
- r.operations !== void 0 && !r.readOnly ? (p(), I(ce, {
2999
+ }, 8, ["label"])) : j("", !0),
3000
+ r.operations !== void 0 && !r.readOnly ? (p(), P(ce, {
2984
3001
  key: 2,
2985
3002
  label: $(o)("common.table.operation"),
2986
3003
  width: "120"
2987
3004
  }, {
2988
- default: d((X) => [
2989
- (p(!0), V(le, null, fe(r.operations, (Oe) => (p(), I(q, {
3005
+ default: d((Z) => [
3006
+ (p(!0), V(le, null, fe(r.operations, (Oe) => (p(), P(q, {
2990
3007
  class: "operation-button",
2991
3008
  link: "",
2992
3009
  type: "primary",
2993
3010
  key: Oe.label,
2994
3011
  onClick: (Ve) => {
2995
3012
  var Ae, qe;
2996
- return ((qe = (Ae = Oe.functions) == null ? void 0 : Ae.click) == null ? void 0 : qe.call(Ae, X.$index, X.row)) && v();
3013
+ return ((qe = (Ae = Oe.functions) == null ? void 0 : Ae.click) == null ? void 0 : qe.call(Ae, Z.$index, Z.row)) && v();
2997
3014
  }
2998
3015
  }, {
2999
3016
  default: d(() => [
3000
- Y(D(_(Oe, X)), 1)
3017
+ J(R(_(Oe, Z)), 1)
3001
3018
  ]),
3002
3019
  _: 2
3003
3020
  }, 1032, ["onClick"]))), 128))
3004
3021
  ]),
3005
3022
  _: 1
3006
- }, 8, ["label"])) : z("", !0)
3023
+ }, 8, ["label"])) : j("", !0)
3007
3024
  ];
3008
3025
  }),
3009
3026
  _: 1
3010
3027
  }, 8, ["data"])), [
3011
- [_o, Z.value]
3028
+ [Xe, ee.value]
3012
3029
  ]),
3013
- B.value ? z("", !0) : (p(), I(Ie, {
3030
+ B.value ? j("", !0) : (p(), P(Ie, {
3014
3031
  key: 0,
3015
3032
  size: "small",
3016
3033
  background: "",
3017
3034
  onSizeChange: k,
3018
3035
  onCurrentChange: O,
3019
- currentPage: R.pageNo,
3020
- "onUpdate:currentPage": x[1] || (x[1] = (pe) => R.pageNo = pe),
3036
+ currentPage: G.pageNo,
3037
+ "onUpdate:currentPage": x[1] || (x[1] = (pe) => G.pageNo = pe),
3021
3038
  "page-sizes": [10, 20, 50, 100],
3022
- "page-size": R.pageSize,
3039
+ "page-size": G.pageSize,
3023
3040
  layout: "total, sizes, prev, pager, next",
3024
- total: R.totalElements
3041
+ total: G.totalElements
3025
3042
  }, null, 8, ["currentPage", "page-size", "total"])),
3026
3043
  m(go, {
3027
3044
  model: g.model,
3028
- mode: F.value,
3045
+ mode: L.value,
3029
3046
  id: ie.value,
3030
3047
  afterSubmitFunc: v,
3031
3048
  visible: i.value,
@@ -3034,68 +3051,68 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3034
3051
  ], 2);
3035
3052
  };
3036
3053
  }
3037
- }), lt = /* @__PURE__ */ ye(lr, [["__scopeId", "data-v-5307a4aa"]]), ir = { class: "nav-bar" }, cr = { style: { "font-size": "16px" } }, ur = {
3054
+ }), it = /* @__PURE__ */ ve(lr, [["__scopeId", "data-v-5307a4aa"]]), ir = { class: "nav-bar" }, cr = { style: { "font-size": "16px" } }, ur = {
3038
3055
  key: 0,
3039
3056
  class: "info-card-wrapper"
3040
- }, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, gr = /* @__PURE__ */ Se({
3057
+ }, dr = { class: "icon-wrapper" }, pr = { class: "info-wrapper" }, fr = { class: "title-wrapper" }, mr = { class: "tabs-wrapper" }, hr = { class: "dialog-footer" }, _r = /* @__PURE__ */ Se({
3041
3058
  __name: "DetailPage",
3042
3059
  setup(e) {
3043
- const { t } = Qe(), o = Ke(), n = it(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(), N = A("summary"), M = A(""), H = A(""), F = A(""), Z = A(0), B = de({
3060
+ const { t } = Qe(), o = Ke(), n = ct(), s = Te(() => o.query.id), r = A(!1), l = A(!1), a = A("view"), i = A(), f = A(-1), y = A(), C = A(), N = A("summary"), T = A(""), H = A(""), L = A(""), ee = A(0), B = de({
3044
3061
  api: "",
3045
3062
  fields: []
3046
3063
  }), ie = de([]);
3047
- let R = [];
3064
+ let G = [];
3048
3065
  Ee([
3049
3066
  () => n.currentRoute.value,
3050
- be
3067
+ ge
3051
3068
  ], () => {
3052
3069
  h();
3053
3070
  }, {
3054
3071
  immediate: !0,
3055
3072
  deep: !0
3056
3073
  });
3057
- function L(u) {
3074
+ function M(u) {
3058
3075
  f.value = parseInt(u.index) - 1;
3059
3076
  }
3060
- function ee() {
3077
+ function te() {
3061
3078
  var O;
3062
- let u = (O = R[f.value].api) == null ? void 0 : O.replace("/select", "");
3079
+ let u = (O = G[f.value].api) == null ? void 0 : O.replace("/select", "");
3063
3080
  u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
3064
- const c = B.api + "/" + s.value + u, k = C.value.multipleSelection.map((G) => G.id);
3081
+ const c = B.api + "/" + s.value + u, k = C.value.multipleSelection.map((z) => z.id);
3065
3082
  Ce(c, "POST", k).then(() => {
3066
3083
  y.value.refresh(), l.value = !1;
3067
3084
  });
3068
3085
  }
3069
3086
  function _(u, c, k) {
3070
- var U;
3087
+ var D;
3071
3088
  k.functions || (k.functions = {}), k.functions.create = () => {
3072
3089
  l.value = !0, C.value && C.value.refresh();
3073
3090
  };
3074
3091
  let O = Ge(c);
3075
3092
  O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, u.queryParamName && (O.tableConfig.queryParams[u.queryParamName] = s.value);
3076
- for (var G in O.fields)
3077
- O.fields[G].tableColumnAttributes && (U = O.fields[G].tableColumnAttributes) != null && U.link && (O.fields[G].tableColumnAttributes.link = !1);
3078
- R.push(O), k.labels = {
3093
+ for (var z in O.fields)
3094
+ O.fields[z].tableColumnAttributes && (D = O.fields[z].tableColumnAttributes) != null && D.link && (O.fields[z].tableColumnAttributes.link = !1);
3095
+ G.push(O), k.labels = {
3079
3096
  create: "common.table.add",
3080
3097
  delete: "common.table.remove"
3081
- }, k.functions.batchDelete = (T) => {
3098
+ }, k.functions.batchDelete = (F) => {
3082
3099
  var g;
3083
- let b = (g = R[f.value].api) == null ? void 0 : g.replace("/select", "");
3084
- b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
3085
- const j = B.api + "/" + s.value + b, W = T.map((x) => x.id);
3086
- ve.delete(`${j}/${W.join(",")}`).then(({ data: x }) => {
3100
+ let U = (g = G[f.value].api) == null ? void 0 : g.replace("/select", "");
3101
+ U = U == null ? void 0 : U.substring(U.lastIndexOf("/"));
3102
+ const b = B.api + "/" + s.value + U, Y = F.map((x) => x.id);
3103
+ be.delete(`${b}/${Y.join(",")}`).then(({ data: x }) => {
3087
3104
  x.code === 0 && y.value.refresh();
3088
3105
  });
3089
3106
  }, k.operations = [
3090
3107
  {
3091
3108
  label: "common.table.remove",
3092
3109
  functions: {
3093
- click: (T, b) => {
3110
+ click: (F, U) => {
3094
3111
  var g;
3095
- let j = (g = R[f.value].api) == null ? void 0 : g.replace("/select", "");
3096
- j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
3097
- const W = B.api + "/" + s.value + j;
3098
- Ce(W, "DELETE", b.id).then(() => {
3112
+ let b = (g = G[f.value].api) == null ? void 0 : g.replace("/select", "");
3113
+ b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
3114
+ const Y = B.api + "/" + s.value + b;
3115
+ Ce(Y, "DELETE", U.id).then(() => {
3099
3116
  y.value.refresh();
3100
3117
  });
3101
3118
  }
@@ -3104,35 +3121,35 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3104
3121
  ], O.api += "/select";
3105
3122
  }
3106
3123
  function h() {
3107
- var O, G, U;
3124
+ var O, z, D;
3108
3125
  ie.splice(0);
3109
3126
  const u = o.params.model;
3110
- if (be.value[u] === void 0) {
3127
+ if (ge.value[u] === void 0) {
3111
3128
  console.warn("Detail page model not exist:", u);
3112
3129
  return;
3113
3130
  } else
3114
- console.debug("Detail page model found:", u, be.value[u]);
3131
+ console.debug("Detail page model found:", u, ge.value[u]);
3115
3132
  ze(B);
3116
- const c = Ge(be.value[u]);
3117
- Object.assign(B, c), Z.value++, f.value = -1, N.value = "summary";
3118
- const k = (G = (O = B.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : G.tabs;
3133
+ const c = Ge(ge.value[u]);
3134
+ Object.assign(B, c), ee.value++, f.value = -1, N.value = "summary";
3135
+ const k = (z = (O = B.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : z.tabs;
3119
3136
  if (k)
3120
- for (let T of k) {
3121
- const b = Ge(be.value[T.modelKey]);
3122
- if (ie.push(b), T.type === "table") {
3123
- b.tableConfig || (b.tableConfig = {});
3124
- let j = b.tableConfig;
3125
- j.showPane = !1, T.modelRelationType === "associated" ? _(T, b, j) : T.modelRelationType === "child" && (R.push({
3137
+ for (let F of k) {
3138
+ const U = Ge(ge.value[F.modelKey]);
3139
+ if (ie.push(U), F.type === "table") {
3140
+ U.tableConfig || (U.tableConfig = {});
3141
+ let b = U.tableConfig;
3142
+ b.showPane = !1, F.modelRelationType === "associated" ? _(F, U, b) : F.modelRelationType === "child" && (G.push({
3126
3143
  fields: []
3127
- }), b.formConfig === void 0 && (b.formConfig = {}), b.formConfig.functions === void 0 && (b.formConfig.functions = {}), T.queryParamName && (b.formConfig.functions.beforeSubmit = (W) => {
3128
- W[T.queryParamName] = s.value;
3129
- })), j.queryParams || (j.queryParams = {}), T.queryParamName && (j.queryParams[T.queryParamName] = s.value), T.queryParams && Object.assign(j.queryParams, T.queryParams), j.readOnly = (U = T.readOnly) != null ? U : !1, T.includeFields && (b.fields = b.fields.filter((W) => {
3144
+ }), U.formConfig === void 0 && (U.formConfig = {}), U.formConfig.functions === void 0 && (U.formConfig.functions = {}), F.queryParamName && (U.formConfig.functions.beforeSubmit = (Y) => {
3145
+ Y[F.queryParamName] = s.value;
3146
+ })), b.queryParams || (b.queryParams = {}), F.queryParamName && (b.queryParams[F.queryParamName] = s.value), F.queryParams && Object.assign(b.queryParams, F.queryParams), b.readOnly = (D = F.readOnly) != null ? D : !1, F.includeFields && (U.fields = U.fields.filter((Y) => {
3130
3147
  var g;
3131
- return (g = T.includeFields) == null ? void 0 : g.includes(W.prop);
3132
- })), T.excludeFields && (b.fields = b.fields.filter((W) => {
3148
+ return (g = F.includeFields) == null ? void 0 : g.includes(Y.prop);
3149
+ })), F.excludeFields && (U.fields = U.fields.filter((Y) => {
3133
3150
  var g;
3134
- return !((g = T.excludeFields) != null && g.includes(W.prop));
3135
- })), T.tooltip && (j.tooltip = T.tooltip);
3151
+ return !((g = F.excludeFields) != null && g.includes(Y.prop));
3152
+ })), F.tooltip && (b.tooltip = F.tooltip);
3136
3153
  }
3137
3154
  }
3138
3155
  }
@@ -3149,13 +3166,13 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3149
3166
  ],
3150
3167
  (u) => {
3151
3168
  Be(() => {
3152
- var k, O, G;
3169
+ var k, O, z;
3153
3170
  const c = (O = (k = B.pageConfig) == null ? void 0 : k.detailPage) == null ? void 0 : O.infoCard;
3154
- c && (M.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (G = B.fields) == null || G.forEach((U) => {
3155
- var T, b;
3156
- if (U.prop === c.tagFieldProp) {
3157
- const j = (b = (T = U.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : b.transformValue;
3158
- j && (F.value = j(F.value));
3171
+ c && (T.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", H.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", L.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (z = B.fields) == null || z.forEach((D) => {
3172
+ var F, U;
3173
+ if (D.prop === c.tagFieldProp) {
3174
+ const b = (U = (F = D.tableColumnAttributes) == null ? void 0 : F.functions) == null ? void 0 : U.transformValue;
3175
+ b && (L.value = b(L.value));
3159
3176
  }
3160
3177
  }));
3161
3178
  });
@@ -3168,24 +3185,24 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3168
3185
  function v() {
3169
3186
  r.value = !0;
3170
3187
  }
3171
- function P() {
3188
+ function I() {
3172
3189
  i.value.refresh();
3173
3190
  }
3174
3191
  return (u, c) => {
3175
- var w, J, q, te, ne, se;
3176
- const k = E("el-page-header"), O = E("el-button"), G = E("el-icon"), U = E("el-dropdown-item"), T = E("el-dropdown-menu"), b = E("el-dropdown"), j = E("el-tag"), W = E("el-tab-pane"), g = E("el-tabs"), x = E("el-dialog");
3192
+ var w, W, q, oe, ne, se;
3193
+ const k = E("el-page-header"), O = E("el-button"), z = E("el-icon"), D = E("el-dropdown-item"), F = E("el-dropdown-menu"), U = E("el-dropdown"), b = E("el-tag"), Y = E("el-tab-pane"), g = E("el-tabs"), x = E("el-dialog");
3177
3194
  return p(), V(le, null, [
3178
3195
  S("div", ir, [
3179
3196
  m(k, {
3180
- onClick: c[0] || (c[0] = (Q) => $(n).back())
3197
+ onClick: c[0] || (c[0] = (X) => $(n).back())
3181
3198
  }, {
3182
3199
  title: d(() => c[5] || (c[5] = [
3183
3200
  S("span", null, null, -1)
3184
3201
  ])),
3185
3202
  content: d(() => {
3186
- var Q;
3203
+ var X;
3187
3204
  return [
3188
- S("span", cr, D($(t)((Q = B == null ? void 0 : B.name) != null ? Q : "")), 1)
3205
+ S("span", cr, R($(t)((X = B == null ? void 0 : B.name) != null ? X : "")), 1)
3189
3206
  ];
3190
3207
  }),
3191
3208
  _: 1
@@ -3196,21 +3213,21 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3196
3213
  onClick: v
3197
3214
  }, {
3198
3215
  default: d(() => [
3199
- Y(D($(t)("common.table.edit")), 1)
3216
+ J(R($(t)("common.table.edit")), 1)
3200
3217
  ]),
3201
3218
  _: 1
3202
3219
  }),
3203
- ((J = (w = B.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : J.operationButtons) !== void 0 ? (p(), I(b, { key: 0 }, {
3220
+ ((W = (w = B.pageConfig) == null ? void 0 : w.detailPage) == null ? void 0 : W.operationButtons) !== void 0 ? (p(), P(U, { key: 0 }, {
3204
3221
  dropdown: d(() => [
3205
- m(T, null, {
3222
+ m(F, null, {
3206
3223
  default: d(() => {
3207
- var Q, K;
3224
+ var X, K;
3208
3225
  return [
3209
- (p(!0), V(le, null, fe((K = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : K.operationButtons, (re) => (p(), I(U, {
3226
+ (p(!0), V(le, null, fe((K = (X = B.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : K.operationButtons, (re) => (p(), P(D, {
3210
3227
  onClick: (ce) => re.function(i.value.formData)
3211
3228
  }, {
3212
3229
  default: d(() => [
3213
- Y(D($(t)(re.label)), 1)
3230
+ J(R($(t)(re.label)), 1)
3214
3231
  ]),
3215
3232
  _: 2
3216
3233
  }, 1032, ["onClick"]))), 256))
@@ -3222,10 +3239,10 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3222
3239
  default: d(() => [
3223
3240
  m(O, { style: { margin: "0 10px" } }, {
3224
3241
  default: d(() => [
3225
- Y(D($(t)("common.basic.more")), 1),
3226
- m(G, { class: "el-icon--right" }, {
3242
+ J(R($(t)("common.basic.more")), 1),
3243
+ m(z, { class: "el-icon--right" }, {
3227
3244
  default: d(() => [
3228
- m($(zt))
3245
+ m($(qt))
3229
3246
  ]),
3230
3247
  _: 1
3231
3248
  })
@@ -3234,15 +3251,15 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3234
3251
  })
3235
3252
  ]),
3236
3253
  _: 1
3237
- })) : z("", !0),
3254
+ })) : j("", !0),
3238
3255
  m(O, {
3239
- onClick: P,
3256
+ onClick: I,
3240
3257
  style: { "border-color": "#bbb", width: "30px" }
3241
3258
  }, {
3242
3259
  default: d(() => [
3243
- m(G, null, {
3260
+ m(z, null, {
3244
3261
  default: d(() => [
3245
- m($(qt))
3262
+ m($(Ht))
3246
3263
  ]),
3247
3264
  _: 1
3248
3265
  })
@@ -3251,54 +3268,54 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3251
3268
  })
3252
3269
  ])
3253
3270
  ]),
3254
- (te = (q = B.pageConfig) == null ? void 0 : q.detailPage) != null && te.infoCard ? (p(), V("div", ur, [
3271
+ (oe = (q = B.pageConfig) == null ? void 0 : q.detailPage) != null && oe.infoCard ? (p(), V("div", ur, [
3255
3272
  S("div", dr, [
3256
- (p(), I(st((ne = B.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
3273
+ (p(), P(rt((ne = B.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
3257
3274
  ]),
3258
3275
  S("div", pr, [
3259
3276
  S("div", fr, [
3260
- S("h1", null, D(M.value), 1),
3261
- ((se = F.value) == null ? void 0 : se.length) > 0 ? (p(), I(j, {
3277
+ S("h1", null, R(T.value), 1),
3278
+ ((se = L.value) == null ? void 0 : se.length) > 0 ? (p(), P(b, {
3262
3279
  key: 0,
3263
3280
  size: "small"
3264
3281
  }, {
3265
3282
  default: d(() => [
3266
- Y(D(F.value), 1)
3283
+ J(R(L.value), 1)
3267
3284
  ]),
3268
3285
  _: 1
3269
- })) : z("", !0)
3286
+ })) : j("", !0)
3270
3287
  ]),
3271
- S("span", null, D(H.value), 1)
3288
+ S("span", null, R(H.value), 1)
3272
3289
  ])
3273
- ])) : z("", !0),
3290
+ ])) : j("", !0),
3274
3291
  S("div", mr, [
3275
3292
  m(g, {
3276
3293
  modelValue: N.value,
3277
- "onUpdate:modelValue": c[1] || (c[1] = (Q) => N.value = Q),
3278
- onTabClick: L
3294
+ "onUpdate:modelValue": c[1] || (c[1] = (X) => N.value = X),
3295
+ onTabClick: M
3279
3296
  }, {
3280
3297
  default: d(() => {
3281
- var Q, K;
3298
+ var X, K;
3282
3299
  return [
3283
- m(W, {
3300
+ m(Y, {
3284
3301
  label: $(t)("common.basic.summary"),
3285
3302
  name: "summary"
3286
3303
  }, {
3287
3304
  default: d(() => [
3288
- m(ho, {
3305
+ m(_o, {
3289
3306
  ref_key: "formViewRef",
3290
3307
  ref: i,
3291
3308
  id: s.value,
3292
- sessionId: Z.value,
3309
+ sessionId: ee.value,
3293
3310
  mode: a.value,
3294
3311
  model: B
3295
3312
  }, null, 8, ["id", "sessionId", "mode", "model"])
3296
3313
  ]),
3297
3314
  _: 1
3298
3315
  }, 8, ["label"]),
3299
- (p(!0), V(le, null, fe((K = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : K.tabs, (re) => {
3316
+ (p(!0), V(le, null, fe((K = (X = B.pageConfig) == null ? void 0 : X.detailPage) == null ? void 0 : K.tabs, (re) => {
3300
3317
  var ce;
3301
- return p(), I(W, {
3318
+ return p(), P(Y, {
3302
3319
  label: $(t)((ce = re.name) != null ? ce : "")
3303
3320
  }, null, 8, ["label"]);
3304
3321
  }), 256))
@@ -3306,46 +3323,46 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3306
3323
  }),
3307
3324
  _: 1
3308
3325
  }, 8, ["modelValue"]),
3309
- f.value >= 0 ? (p(), I(lt, {
3326
+ f.value >= 0 ? (p(), P(it, {
3310
3327
  key: 0,
3311
3328
  ref_key: "tabPaneTableRef",
3312
3329
  ref: y,
3313
3330
  model: ie[f.value]
3314
- }, null, 8, ["model"])) : z("", !0),
3331
+ }, null, 8, ["model"])) : j("", !0),
3315
3332
  m(x, {
3316
3333
  modelValue: l.value,
3317
- "onUpdate:modelValue": c[3] || (c[3] = (Q) => l.value = Q),
3334
+ "onUpdate:modelValue": c[3] || (c[3] = (X) => l.value = X),
3318
3335
  title: $(t)("common.table.select"),
3319
3336
  width: "800px"
3320
3337
  }, {
3321
3338
  footer: d(() => [
3322
3339
  S("span", hr, [
3323
3340
  m(O, {
3324
- onClick: c[2] || (c[2] = (Q) => l.value = !1)
3341
+ onClick: c[2] || (c[2] = (X) => l.value = !1)
3325
3342
  }, {
3326
3343
  default: d(() => [
3327
- Y(D($(t)("common.basic.cancel")), 1)
3344
+ J(R($(t)("common.basic.cancel")), 1)
3328
3345
  ]),
3329
3346
  _: 1
3330
3347
  }),
3331
3348
  m(O, {
3332
3349
  type: "primary",
3333
- onClick: ee
3350
+ onClick: te
3334
3351
  }, {
3335
3352
  default: d(() => [
3336
- Y(D($(t)("common.basic.save")), 1)
3353
+ J(R($(t)("common.basic.save")), 1)
3337
3354
  ]),
3338
3355
  _: 1
3339
3356
  })
3340
3357
  ])
3341
3358
  ]),
3342
3359
  default: d(() => [
3343
- f.value >= 0 ? (p(), I(lt, {
3360
+ f.value >= 0 ? (p(), P(it, {
3344
3361
  key: 0,
3345
3362
  ref_key: "selectTableRef",
3346
3363
  ref: C,
3347
- model: $(R)[f.value]
3348
- }, null, 8, ["model"])) : z("", !0)
3364
+ model: $(G)[f.value]
3365
+ }, null, 8, ["model"])) : j("", !0)
3349
3366
  ]),
3350
3367
  _: 1
3351
3368
  }, 8, ["modelValue", "title"])
@@ -3354,73 +3371,73 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3354
3371
  id: s.value,
3355
3372
  mode: "update",
3356
3373
  visible: r.value,
3357
- "onUpdate:visible": c[4] || (c[4] = (Q) => r.value = Q),
3374
+ "onUpdate:visible": c[4] || (c[4] = (X) => r.value = X),
3358
3375
  model: B,
3359
- afterSubmitFunc: P
3376
+ afterSubmitFunc: I
3360
3377
  }, null, 8, ["id", "visible", "model"])
3361
3378
  ], 64);
3362
3379
  };
3363
3380
  }
3364
- }), _r = /* @__PURE__ */ ye(gr, [["__scopeId", "data-v-cc1c9498"]]), br = { class: "page-title" }, vr = /* @__PURE__ */ Se({
3381
+ }), gr = /* @__PURE__ */ ve(_r, [["__scopeId", "data-v-cc1c9498"]]), br = { class: "page-title" }, vr = /* @__PURE__ */ Se({
3365
3382
  __name: "TablePage",
3366
3383
  setup(e) {
3367
- const { t } = Qe(), o = Ke(), n = it(), s = A(), r = A([]), l = de({
3384
+ const { t } = Qe(), o = Ke(), n = ct(), s = A(), r = A([]), l = de({
3368
3385
  api: "",
3369
3386
  fields: []
3370
- }), a = de(Xe({}, l));
3387
+ }), a = de(Ze({}, l));
3371
3388
  function i() {
3372
- var y, C, N, M, H;
3373
- r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (H = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : H.map((F) => {
3374
- let Z;
3375
- return F.modelKey && be.value[F.modelKey] ? Z = Ge(be.value[F.modelKey]) : Z = Ge(l), F.queryParams && (Z.tableConfig || (Z.tableConfig = {}), Z.tableConfig.queryParams = F.queryParams), F.fields && (Z.fields = F.fields), F.modelKey && (Z.breadcrumbRoute = l.route), {
3376
- key: F.key,
3377
- label: F.label,
3378
- icon: F.icon,
3379
- disabled: F.disabled,
3380
- model: Z
3389
+ var y, C, N, T, H;
3390
+ r.value = [], l.pageConfig && ((C = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && C.tabViewAttributes) && (r.value = (H = (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : T.tabViewAttributes) == null ? void 0 : H.map((L) => {
3391
+ let ee;
3392
+ return L.modelKey && ge.value[L.modelKey] ? ee = Ge(ge.value[L.modelKey]) : ee = Ge(l), L.queryParams && (ee.tableConfig || (ee.tableConfig = {}), ee.tableConfig.queryParams = L.queryParams), L.fields && (ee.fields = L.fields), L.modelKey && (ee.breadcrumbRoute = l.route), {
3393
+ key: L.key,
3394
+ label: L.label,
3395
+ icon: L.icon,
3396
+ disabled: L.disabled,
3397
+ model: ee
3381
3398
  };
3382
3399
  }));
3383
3400
  }
3384
3401
  function f() {
3385
- var N, M;
3386
- console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", be.value);
3402
+ var N, T;
3403
+ console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ge.value);
3387
3404
  const y = o.params.model;
3388
- if (be.value[y] === void 0) {
3389
- console.warn("TablePage.init: model not found", y, be.value);
3405
+ if (ge.value[y] === void 0) {
3406
+ console.warn("TablePage.init: model not found", y, ge.value);
3390
3407
  return;
3391
3408
  }
3392
3409
  ze(l);
3393
- const C = Ge(be.value[y]);
3394
- Object.assign(l, C), (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && M.tabViewAttributes || Object.assign(a, l), i();
3410
+ const C = Ge(ge.value[y]);
3411
+ Object.assign(l, C), (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && T.tabViewAttributes || Object.assign(a, l), i();
3395
3412
  }
3396
3413
  return Ee([
3397
3414
  () => n.currentRoute.value,
3398
- be
3415
+ ge
3399
3416
  ], () => {
3400
3417
  f();
3401
3418
  }, {
3402
3419
  immediate: !0,
3403
3420
  deep: !0
3404
3421
  }), (y, C) => {
3405
- var M;
3422
+ var T;
3406
3423
  const N = E("el-scrollbar");
3407
3424
  return p(), V(le, null, [
3408
- S("h1", br, D($(t)((M = l.name) != null ? M : "")), 1),
3425
+ S("h1", br, R($(t)((T = l.name) != null ? T : "")), 1),
3409
3426
  m(N, null, {
3410
3427
  default: d(() => {
3411
- var H, F;
3428
+ var H, L;
3412
3429
  return [
3413
- (F = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && F.tabViewAttributes ? (p(), I(mo, {
3430
+ (L = (H = l.pageConfig) == null ? void 0 : H.tablePage) != null && L.tabViewAttributes ? (p(), P(ho, {
3414
3431
  key: 0,
3415
3432
  class: "tabs-wrapper",
3416
3433
  cards: r.value,
3417
3434
  tableRef: s.value
3418
- }, null, 8, ["cards", "tableRef"])) : z("", !0)
3435
+ }, null, 8, ["cards", "tableRef"])) : j("", !0)
3419
3436
  ];
3420
3437
  }),
3421
3438
  _: 1
3422
3439
  }),
3423
- m(lt, {
3440
+ m(it, {
3424
3441
  class: "table-wrapper",
3425
3442
  ref_key: "tableRef",
3426
3443
  ref: s,
@@ -3429,16 +3446,16 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3429
3446
  ], 64);
3430
3447
  };
3431
3448
  }
3432
- }), yr = /* @__PURE__ */ ye(vr, [["__scopeId", "data-v-1a472785"]]), wr = [
3449
+ }), yr = /* @__PURE__ */ ve(vr, [["__scopeId", "data-v-1a472785"]]), wr = [
3433
3450
  jo,
3434
3451
  Vs,
3435
3452
  Wt,
3436
3453
  Rs,
3437
3454
  js,
3438
- fo,
3439
3455
  mo,
3440
- lt,
3441
- _r,
3456
+ ho,
3457
+ it,
3458
+ gr,
3442
3459
  yr
3443
3460
  ], Ir = (e) => {
3444
3461
  e && e.component && wr.forEach((t) => {
@@ -3448,20 +3465,20 @@ const or = { render: tr }, nr = { class: "toolbar" }, sr = { class: "tool-button
3448
3465
  export {
3449
3466
  jo as Building,
3450
3467
  Vs as ConsoleApp,
3451
- _r as DetailPage,
3468
+ gr as DetailPage,
3452
3469
  Wt as Header,
3453
3470
  Rs as NoPermission,
3454
3471
  js as Secondary,
3455
- fo as SideMenu,
3456
- mo as TabCard,
3472
+ mo as SideMenu,
3473
+ ho as TabCard,
3457
3474
  yr as TablePage,
3458
- lt as TableView,
3475
+ it as TableView,
3459
3476
  jn as activeMenuMapping,
3460
3477
  Ir as default,
3461
3478
  pn as en,
3462
- rt as i18n,
3463
- Ot as menuList,
3464
- be as modelList,
3465
- yt as pinia,
3479
+ at as i18n,
3480
+ Pt as menuList,
3481
+ ge as modelList,
3482
+ wt as pinia,
3466
3483
  fn as zh
3467
3484
  };