kouxiangtang 0.0.85 → 0.0.87

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.
Files changed (65) hide show
  1. package/README.md +13 -13
  2. package/dist/{AttachmentUploader-5MUEMGlw.js → AttachmentUploader-B4pX4-Yq.js} +2 -2
  3. package/dist/{AttachmentUploader-5MUEMGlw.js.map → AttachmentUploader-B4pX4-Yq.js.map} +1 -1
  4. package/dist/{ImageUploader-DV57379x.js → ImageUploader-BkCExkEy.js} +2 -2
  5. package/dist/{ImageUploader-DV57379x.js.map → ImageUploader-BkCExkEy.js.map} +1 -1
  6. package/dist/{ImagesUploader-BaNALrAL.js → ImagesUploader-CjRH6O1L.js} +2 -2
  7. package/dist/{ImagesUploader-BaNALrAL.js.map → ImagesUploader-CjRH6O1L.js.map} +1 -1
  8. package/dist/{RichTextEditor-9hogGXkV.js → RichTextEditor-CDqwfcAi.js} +2 -2
  9. package/dist/{RichTextEditor-9hogGXkV.js.map → RichTextEditor-CDqwfcAi.js.map} +1 -1
  10. package/dist/{config-Dq5hc4u6.js → config-B-pjuj8Y.js} +2 -2
  11. package/dist/{config-Dq5hc4u6.js.map → config-B-pjuj8Y.js.map} +1 -1
  12. package/dist/config-B2CWYjIt.js +76 -0
  13. package/dist/config-B2CWYjIt.js.map +1 -0
  14. package/dist/{config-BbVbGfL6.js → config-B89Z-LnS.js} +2 -2
  15. package/dist/{config-BbVbGfL6.js.map → config-B89Z-LnS.js.map} +1 -1
  16. package/dist/{config-Mav8bi6o.js → config-BH4A_NiQ.js} +2 -2
  17. package/dist/{config-Mav8bi6o.js.map → config-BH4A_NiQ.js.map} +1 -1
  18. package/dist/{config-BIm-L4OF.js → config-BYAfOPPJ.js} +2 -2
  19. package/dist/{config-BIm-L4OF.js.map → config-BYAfOPPJ.js.map} +1 -1
  20. package/dist/{config-CaVw0Uey.js → config-BqC9IVKH.js} +3 -3
  21. package/dist/{config-CaVw0Uey.js.map → config-BqC9IVKH.js.map} +1 -1
  22. package/dist/{config-y0eSzzRc.js → config-C2sD4VPj.js} +2 -2
  23. package/dist/{config-y0eSzzRc.js.map → config-C2sD4VPj.js.map} +1 -1
  24. package/dist/{config-CFxacuQl.js → config-CBgiOKrA.js} +2 -2
  25. package/dist/{config-CFxacuQl.js.map → config-CBgiOKrA.js.map} +1 -1
  26. package/dist/{config-CvquE5fQ.js → config-CtnT1VxY.js} +2 -2
  27. package/dist/{config-CvquE5fQ.js.map → config-CtnT1VxY.js.map} +1 -1
  28. package/dist/{config-DpTtroe0.js → config-CwjAEk26.js} +3 -3
  29. package/dist/{config-DpTtroe0.js.map → config-CwjAEk26.js.map} +1 -1
  30. package/dist/config-D3WxbOr9.js +64 -0
  31. package/dist/config-D3WxbOr9.js.map +1 -0
  32. package/dist/{config-B8hd4Rhp.js → config-DAN1rEwr.js} +2 -2
  33. package/dist/{config-B8hd4Rhp.js.map → config-DAN1rEwr.js.map} +1 -1
  34. package/dist/{config-DivNupSQ.js → config-DE3vLJyX.js} +10 -9
  35. package/dist/config-DE3vLJyX.js.map +1 -0
  36. package/dist/{config-DCrLYyDQ.js → config-DMN9s66_.js} +2 -2
  37. package/dist/{config-DCrLYyDQ.js.map → config-DMN9s66_.js.map} +1 -1
  38. package/dist/{config-QjbD-Eq4.js → config-DMZKncqs.js} +2 -2
  39. package/dist/{config-QjbD-Eq4.js.map → config-DMZKncqs.js.map} +1 -1
  40. package/dist/{config-CS0O39NF.js → config-DtEcupsu.js} +2 -2
  41. package/dist/{config-CS0O39NF.js.map → config-DtEcupsu.js.map} +1 -1
  42. package/dist/config-RAxfaUNa.js +135 -0
  43. package/dist/config-RAxfaUNa.js.map +1 -0
  44. package/dist/{config-C5d2Y5lT.js → config-Ut2E1TaK.js} +14 -13
  45. package/dist/config-Ut2E1TaK.js.map +1 -0
  46. package/dist/{config-Dq2ZmEk2.js → config-VPO2Rsz4.js} +3 -3
  47. package/dist/{config-Dq2ZmEk2.js.map → config-VPO2Rsz4.js.map} +1 -1
  48. package/dist/{config-WK3Q0VIm.js → config-X2LhF_WL.js} +2 -2
  49. package/dist/{config-WK3Q0VIm.js.map → config-X2LhF_WL.js.map} +1 -1
  50. package/dist/{index-lyE0nMga.js → index-DOzO-57R.js} +1165 -1140
  51. package/dist/index-DOzO-57R.js.map +1 -0
  52. package/dist/kouxiangtang.js +1 -1
  53. package/dist/kouxiangtang.umd.cjs +8 -8
  54. package/dist/kouxiangtang.umd.cjs.map +1 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +1 -1
  57. package/dist/config-BOoO5ADD.js +0 -60
  58. package/dist/config-BOoO5ADD.js.map +0 -1
  59. package/dist/config-C5d2Y5lT.js.map +0 -1
  60. package/dist/config-CoPjI4Bu.js +0 -63
  61. package/dist/config-CoPjI4Bu.js.map +0 -1
  62. package/dist/config-CuSnXh3v.js +0 -127
  63. package/dist/config-CuSnXh3v.js.map +0 -1
  64. package/dist/config-DivNupSQ.js.map +0 -1
  65. package/dist/index-lyE0nMga.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { openBlock as c, createBlock as S, unref as f, createSlots as De, withCtx as E, renderSlot as J, createElementVNode as C, toDisplayString as B, resolveComponent as qe, withDirectives as _e, createElementBlock as O, normalizeStyle as Ge, createVNode as x, createTextVNode as N, computed as I, Fragment as P, renderList as q, ref as D, reactive as Oe, watch as j, resolveDynamicComponent as X, createCommentVNode as L, shallowRef as te, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Tt, defineComponent as W, useSlots as Re, onMounted as dn, watchEffect as gt, pushScopeId as pn, popScopeId as fn, normalizeProps as Ft, guardReactiveProps as Lt, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
2
- import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as ot, ElAlert as rs, ElButton as ne, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Pt, ElSelect as jt, ElOption as Ke, ElSelectV2 as us, ElTreeSelect as cs, ElDatePicker as Xe, ElInput as ds, ElButtonGroup as pe, ElDropdown as at, ElDropdownMenu as rt, ElDropdownItem as ue, ElIcon as G, ElEmpty as ps, ElImage as gn, ElTable as fs, ElTableColumn as je, ElTooltip as yn, ElPagination as ms, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as hs, ElMenuItem as gs, ElScrollbar as ys, ElMenu as _s, ElConfigProvider as vs, ElContainer as Vt, ElHeader as bs, ElAside as ws, ElMain as Es, ElCollapse as $s, ElCollapseItem as Ss } from "element-plus";
1
+ import { openBlock as p, createBlock as S, unref as m, createSlots as De, withCtx as E, renderSlot as J, createElementVNode as C, toDisplayString as j, resolveComponent as qe, withDirectives as _e, createElementBlock as x, normalizeStyle as Ge, createVNode as O, createTextVNode as N, computed as I, Fragment as P, renderList as q, ref as D, reactive as xe, watch as B, resolveDynamicComponent as X, createCommentVNode as L, shallowRef as te, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Tt, defineComponent as W, useSlots as Re, onMounted as dn, watchEffect as gt, pushScopeId as pn, popScopeId as fn, normalizeProps as Ft, guardReactiveProps as Lt, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
2
+ import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as Oe, ElCol as $e, ElForm as hn, ElFormItem as ot, ElAlert as rs, ElButton as ne, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Pt, ElSelect as jt, ElOption as Ke, ElSelectV2 as us, ElTreeSelect as cs, ElDatePicker as Xe, ElInput as ds, ElButtonGroup as pe, ElDropdown as at, ElDropdownMenu as rt, ElDropdownItem as ue, ElIcon as G, ElEmpty as ps, ElImage as gn, ElTable as fs, ElTableColumn as je, ElTooltip as yn, ElPagination as ms, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as hs, ElMenuItem as gs, ElScrollbar as ys, ElMenu as _s, ElConfigProvider as vs, ElContainer as Vt, ElHeader as bs, ElAside as ws, ElMain as Es, ElCollapse as $s, ElCollapseItem as Ss } from "element-plus";
3
3
  import { useRoute as U, useRouter as fe } from "vue-router";
4
4
  import { defineStore as yt, storeToRefs as ge } from "pinia";
5
5
  function bn(t, e) {
@@ -7,11 +7,11 @@ function bn(t, e) {
7
7
  return t.apply(e, arguments);
8
8
  };
9
9
  }
10
- const { toString: Os } = Object.prototype, { getPrototypeOf: _t } = Object, We = /* @__PURE__ */ ((t) => (e) => {
11
- const n = Os.call(e);
10
+ const { toString: xs } = Object.prototype, { getPrototypeOf: _t } = Object, We = /* @__PURE__ */ ((t) => (e) => {
11
+ const n = xs.call(e);
12
12
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
13
13
  })(/* @__PURE__ */ Object.create(null)), re = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Qe = (t) => (e) => typeof e === t, { isArray: be } = Array, Ae = Qe("undefined");
14
- function xs(t) {
14
+ function Os(t) {
15
15
  return t !== null && !Ae(t) && t.constructor !== null && !Ae(t.constructor) && Z(t.constructor.isBuffer) && t.constructor.isBuffer(t);
16
16
  }
17
17
  const wn = re("ArrayBuffer");
@@ -52,9 +52,9 @@ function $n(t, e) {
52
52
  return o;
53
53
  return null;
54
54
  }
55
- const Sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, On = (t) => !Ae(t) && t !== Sn;
55
+ const Sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xn = (t) => !Ae(t) && t !== Sn;
56
56
  function it() {
57
- const { caseless: t } = On(this) && this || {}, e = {}, n = (s, o) => {
57
+ const { caseless: t } = xn(this) && this || {}, e = {}, n = (s, o) => {
58
58
  const r = t && $n(e, o) || o;
59
59
  Ve(e[r]) && Ve(s) ? e[r] = it(e[r], s) : Ve(s) ? e[r] = it({}, s) : be(s) ? e[r] = s.slice() : e[r] = s;
60
60
  };
@@ -113,14 +113,14 @@ const Vs = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, r) => {
113
113
  function(n, s, o) {
114
114
  return s.toUpperCase() + o;
115
115
  }
116
- ), Nt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ys = re("RegExp"), xn = (t, e) => {
116
+ ), Nt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ys = re("RegExp"), On = (t, e) => {
117
117
  const n = Object.getOwnPropertyDescriptors(t), s = {};
118
118
  Te(n, (o, r) => {
119
119
  let a;
120
120
  (a = e(o, r, t)) !== !1 && (s[r] = a || o);
121
121
  }), Object.defineProperties(t, s);
122
122
  }, Gs = (t) => {
123
- xn(t, (e, n) => {
123
+ On(t, (e, n) => {
124
124
  if (Z(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
125
125
  return !1;
126
126
  const s = t[n];
@@ -165,8 +165,8 @@ const no = (t) => {
165
165
  e[o] = s;
166
166
  const r = be(s) ? [] : {};
167
167
  return Te(s, (a, i) => {
168
- const p = n(a, o + 1);
169
- !Ae(p) && (r[i] = p);
168
+ const d = n(a, o + 1);
169
+ !Ae(d) && (r[i] = d);
170
170
  }), e[o] = void 0, r;
171
171
  }
172
172
  }
@@ -176,7 +176,7 @@ const no = (t) => {
176
176
  }, so = re("AsyncFunction"), oo = (t) => t && (Je(t) || Z(t)) && Z(t.then) && Z(t.catch), v = {
177
177
  isArray: be,
178
178
  isArrayBuffer: wn,
179
- isBuffer: xs,
179
+ isBuffer: Os,
180
180
  isFormData: Ps,
181
181
  isArrayBufferView: ks,
182
182
  isString: As,
@@ -211,7 +211,7 @@ const no = (t) => {
211
211
  hasOwnProperty: Nt,
212
212
  hasOwnProp: Nt,
213
213
  // an alias to avoid ESLint no-prototype-builtins detection
214
- reduceDescriptors: xn,
214
+ reduceDescriptors: On,
215
215
  freezeMethods: Gs,
216
216
  toObjectSet: Ks,
217
217
  toCamelCase: Js,
@@ -219,7 +219,7 @@ const no = (t) => {
219
219
  toFiniteNumber: Zs,
220
220
  findKey: $n,
221
221
  global: Sn,
222
- isContextDefined: On,
222
+ isContextDefined: xn,
223
223
  ALPHABET: kn,
224
224
  generateString: eo,
225
225
  isSpecCompliantForm: to,
@@ -273,8 +273,8 @@ Object.defineProperties(T, Cn);
273
273
  Object.defineProperty(An, "isAxiosError", { value: !0 });
274
274
  T.from = (t, e, n, s, o, r) => {
275
275
  const a = Object.create(An);
276
- return v.toFlatObject(t, a, function(p) {
277
- return p !== Error.prototype;
276
+ return v.toFlatObject(t, a, function(d) {
277
+ return d !== Error.prototype;
278
278
  }, (i) => i !== "isAxiosError"), T.call(a, t.message, e, n, s, o), a.cause = t, a.name = t.name, r && Object.assign(a, r), a;
279
279
  };
280
280
  const ao = null;
@@ -302,10 +302,10 @@ function Ye(t, e, n) {
302
302
  metaTokens: !0,
303
303
  dots: !1,
304
304
  indexes: !1
305
- }, !1, function(m, g) {
306
- return !v.isUndefined(g[m]);
305
+ }, !1, function(f, g) {
306
+ return !v.isUndefined(g[f]);
307
307
  });
308
- const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
308
+ const s = n.metaTokens, o = n.visitor || l, r = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
309
309
  if (!v.isFunction(o))
310
310
  throw new TypeError("visitor must be a function");
311
311
  function h(y) {
@@ -313,49 +313,49 @@ function Ye(t, e, n) {
313
313
  return "";
314
314
  if (v.isDate(y))
315
315
  return y.toISOString();
316
- if (!p && v.isBlob(y))
316
+ if (!d && v.isBlob(y))
317
317
  throw new T("Blob is not supported. Use a Buffer instead.");
318
- return v.isArrayBuffer(y) || v.isTypedArray(y) ? p && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
318
+ return v.isArrayBuffer(y) || v.isTypedArray(y) ? d && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
319
319
  }
320
- function d(y, m, g) {
320
+ function l(y, f, g) {
321
321
  let $ = y;
322
322
  if (y && !g && typeof y == "object") {
323
- if (v.endsWith(m, "{}"))
324
- m = s ? m : m.slice(0, -2), y = JSON.stringify(y);
325
- else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(m, "[]")) && ($ = v.toArray(y)))
326
- return m = Dn(m), $.forEach(function(b, _) {
327
- !(v.isUndefined(b) || b === null) && e.append(
323
+ if (v.endsWith(f, "{}"))
324
+ f = s ? f : f.slice(0, -2), y = JSON.stringify(y);
325
+ else if (v.isArray(y) && ro(y) || (v.isFileList(y) || v.endsWith(f, "[]")) && ($ = v.toArray(y)))
326
+ return f = Dn(f), $.forEach(function(w, _) {
327
+ !(v.isUndefined(w) || w === null) && e.append(
328
328
  // eslint-disable-next-line no-nested-ternary
329
- a === !0 ? Mt([m], _, r) : a === null ? m : m + "[]",
330
- h(b)
329
+ a === !0 ? Mt([f], _, r) : a === null ? f : f + "[]",
330
+ h(w)
331
331
  );
332
332
  }), !1;
333
333
  }
334
- return lt(y) ? !0 : (e.append(Mt(g, m, r), h(y)), !1);
334
+ return lt(y) ? !0 : (e.append(Mt(g, f, r), h(y)), !1);
335
335
  }
336
- const u = [], w = Object.assign(io, {
337
- defaultVisitor: d,
336
+ const c = [], b = Object.assign(io, {
337
+ defaultVisitor: l,
338
338
  convertValue: h,
339
339
  isVisitable: lt
340
340
  });
341
- function A(y, m) {
341
+ function k(y, f) {
342
342
  if (!v.isUndefined(y)) {
343
- if (u.indexOf(y) !== -1)
344
- throw Error("Circular reference detected in " + m.join("."));
345
- u.push(y), v.forEach(y, function($, l) {
343
+ if (c.indexOf(y) !== -1)
344
+ throw Error("Circular reference detected in " + f.join("."));
345
+ c.push(y), v.forEach(y, function($, u) {
346
346
  (!(v.isUndefined($) || $ === null) && o.call(
347
347
  e,
348
348
  $,
349
- v.isString(l) ? l.trim() : l,
350
- m,
351
- w
352
- )) === !0 && A($, m ? m.concat(l) : [l]);
353
- }), u.pop();
349
+ v.isString(u) ? u.trim() : u,
350
+ f,
351
+ b
352
+ )) === !0 && k($, f ? f.concat(u) : [u]);
353
+ }), c.pop();
354
354
  }
355
355
  }
356
356
  if (!v.isObject(t))
357
357
  throw new TypeError("data must be an object");
358
- return A(t), e;
358
+ return k(t), e;
359
359
  }
360
360
  function Ut(t) {
361
361
  const e = {
@@ -500,8 +500,8 @@ function Pn(t) {
500
500
  let a = n[r++];
501
501
  if (a === "__proto__")
502
502
  return !0;
503
- const i = Number.isFinite(+a), p = r >= n.length;
504
- return a = !a && v.isArray(o) ? o.length : a, p ? (v.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !i) : ((!o[a] || !v.isObject(o[a])) && (o[a] = []), e(n, s, o[a], r) && v.isArray(o[a]) && (o[a] = vo(o[a])), !i);
503
+ const i = Number.isFinite(+a), d = r >= n.length;
504
+ return a = !a && v.isArray(o) ? o.length : a, d ? (v.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !i) : ((!o[a] || !v.isObject(o[a])) && (o[a] = []), e(n, s, o[a], r) && v.isArray(o[a]) && (o[a] = vo(o[a])), !i);
505
505
  }
506
506
  if (v.isFormData(t) && v.isFunction(t.entries)) {
507
507
  const n = {};
@@ -539,10 +539,10 @@ const Fe = {
539
539
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
540
540
  return yo(e, this.formSerializer).toString();
541
541
  if ((i = v.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
542
- const p = this.env && this.env.FormData;
542
+ const d = this.env && this.env.FormData;
543
543
  return Ye(
544
544
  i ? { "files[]": e } : e,
545
- p && new p(),
545
+ d && new d(),
546
546
  this.formSerializer
547
547
  );
548
548
  }
@@ -638,10 +638,10 @@ function et(t, e, n, s, o) {
638
638
  return s.test(e);
639
639
  }
640
640
  }
641
- function Oo(t) {
641
+ function xo(t) {
642
642
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
643
643
  }
644
- function xo(t, e) {
644
+ function Oo(t, e) {
645
645
  const n = v.toCamelCase(" " + e);
646
646
  ["get", "set", "has"].forEach((s) => {
647
647
  Object.defineProperty(t, s + n, {
@@ -658,14 +658,14 @@ class ee {
658
658
  }
659
659
  set(e, n, s) {
660
660
  const o = this;
661
- function r(i, p, h) {
662
- const d = Ee(p);
663
- if (!d)
661
+ function r(i, d, h) {
662
+ const l = Ee(d);
663
+ if (!l)
664
664
  throw new Error("header name must be a non-empty string");
665
- const u = v.findKey(o, d);
666
- (!u || o[u] === void 0 || h === !0 || h === void 0 && o[u] !== !1) && (o[u || p] = Ne(i));
665
+ const c = v.findKey(o, l);
666
+ (!c || o[c] === void 0 || h === !0 || h === void 0 && o[c] !== !1) && (o[c || d] = Ne(i));
667
667
  }
668
- const a = (i, p) => v.forEach(i, (h, d) => r(h, d, p));
668
+ const a = (i, d) => v.forEach(i, (h, l) => r(h, l, d));
669
669
  return v.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : v.isString(e) && (e = e.trim()) && !So(e) ? a(Eo(e), n) : e != null && r(n, e, s), this;
670
670
  }
671
671
  get(e, n) {
@@ -720,7 +720,7 @@ class ee {
720
720
  n[a] = Ne(o), delete n[r];
721
721
  return;
722
722
  }
723
- const i = e ? Oo(r) : String(r).trim();
723
+ const i = e ? xo(r) : String(r).trim();
724
724
  i !== r && delete n[r], n[i] = Ne(o), s[i] = !0;
725
725
  }), this;
726
726
  }
@@ -756,7 +756,7 @@ class ee {
756
756
  }).accessors, o = this.prototype;
757
757
  function r(a) {
758
758
  const i = Ee(a);
759
- s[i] || (xo(o, a), s[i] = !0);
759
+ s[i] || (Oo(o, a), s[i] = !0);
760
760
  }
761
761
  return v.isArray(e) ? e.forEach(r) : r(e), this;
762
762
  }
@@ -874,109 +874,109 @@ function Fo(t, e) {
874
874
  t = t || 10;
875
875
  const n = new Array(t), s = new Array(t);
876
876
  let o = 0, r = 0, a;
877
- return e = e !== void 0 ? e : 1e3, function(p) {
878
- const h = Date.now(), d = s[r];
879
- a || (a = h), n[o] = p, s[o] = h;
880
- let u = r, w = 0;
881
- for (; u !== o; )
882
- w += n[u++], u = u % t;
877
+ return e = e !== void 0 ? e : 1e3, function(d) {
878
+ const h = Date.now(), l = s[r];
879
+ a || (a = h), n[o] = d, s[o] = h;
880
+ let c = r, b = 0;
881
+ for (; c !== o; )
882
+ b += n[c++], c = c % t;
883
883
  if (o = (o + 1) % t, o === r && (r = (r + 1) % t), h - a < e)
884
884
  return;
885
- const A = d && h - d;
886
- return A ? Math.round(w * 1e3 / A) : void 0;
885
+ const k = l && h - l;
886
+ return k ? Math.round(b * 1e3 / k) : void 0;
887
887
  };
888
888
  }
889
889
  function qt(t, e) {
890
890
  let n = 0;
891
891
  const s = Fo(50, 250);
892
892
  return (o) => {
893
- const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n, p = s(i), h = r <= a;
893
+ const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n, d = s(i), h = r <= a;
894
894
  n = r;
895
- const d = {
895
+ const l = {
896
896
  loaded: r,
897
897
  total: a,
898
898
  progress: a ? r / a : void 0,
899
899
  bytes: i,
900
- rate: p || void 0,
901
- estimated: p && a && h ? (a - r) / p : void 0,
900
+ rate: d || void 0,
901
+ estimated: d && a && h ? (a - r) / d : void 0,
902
902
  event: o
903
903
  };
904
- d[e ? "download" : "upload"] = !0, t(d);
904
+ l[e ? "download" : "upload"] = !0, t(l);
905
905
  };
906
906
  }
907
907
  const Lo = typeof XMLHttpRequest < "u", Po = Lo && function(t) {
908
908
  return new Promise(function(n, s) {
909
909
  let o = t.data;
910
910
  const r = ee.from(t.headers).normalize();
911
- let { responseType: a, withXSRFToken: i } = t, p;
911
+ let { responseType: a, withXSRFToken: i } = t, d;
912
912
  function h() {
913
- t.cancelToken && t.cancelToken.unsubscribe(p), t.signal && t.signal.removeEventListener("abort", p);
913
+ t.cancelToken && t.cancelToken.unsubscribe(d), t.signal && t.signal.removeEventListener("abort", d);
914
914
  }
915
- let d;
915
+ let l;
916
916
  if (v.isFormData(o)) {
917
917
  if (ae.hasStandardBrowserEnv || ae.hasStandardBrowserWebWorkerEnv)
918
918
  r.setContentType(!1);
919
- else if ((d = r.getContentType()) !== !1) {
920
- const [m, ...g] = d ? d.split(";").map(($) => $.trim()).filter(Boolean) : [];
921
- r.setContentType([m || "multipart/form-data", ...g].join("; "));
919
+ else if ((l = r.getContentType()) !== !1) {
920
+ const [f, ...g] = l ? l.split(";").map(($) => $.trim()).filter(Boolean) : [];
921
+ r.setContentType([f || "multipart/form-data", ...g].join("; "));
922
922
  }
923
923
  }
924
- let u = new XMLHttpRequest();
924
+ let c = new XMLHttpRequest();
925
925
  if (t.auth) {
926
- const m = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
- r.set("Authorization", "Basic " + btoa(m + ":" + g));
926
+ const f = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
+ r.set("Authorization", "Basic " + btoa(f + ":" + g));
928
928
  }
929
- const w = Bn(t.baseURL, t.url);
930
- u.open(t.method.toUpperCase(), Tn(w, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
931
- function A() {
932
- if (!u)
929
+ const b = Bn(t.baseURL, t.url);
930
+ c.open(t.method.toUpperCase(), Tn(b, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
931
+ function k() {
932
+ if (!c)
933
933
  return;
934
- const m = ee.from(
935
- "getAllResponseHeaders" in u && u.getAllResponseHeaders()
934
+ const f = ee.from(
935
+ "getAllResponseHeaders" in c && c.getAllResponseHeaders()
936
936
  ), $ = {
937
- data: !a || a === "text" || a === "json" ? u.responseText : u.response,
938
- status: u.status,
939
- statusText: u.statusText,
940
- headers: m,
937
+ data: !a || a === "text" || a === "json" ? c.responseText : c.response,
938
+ status: c.status,
939
+ statusText: c.statusText,
940
+ headers: f,
941
941
  config: t,
942
- request: u
942
+ request: c
943
943
  };
944
- ko(function(b) {
945
- n(b), h();
946
- }, function(b) {
947
- s(b), h();
948
- }, $), u = null;
949
- }
950
- if ("onloadend" in u ? u.onloadend = A : u.onreadystatechange = function() {
951
- !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(A);
952
- }, u.onabort = function() {
953
- u && (s(new T("Request aborted", T.ECONNABORTED, t, u)), u = null);
954
- }, u.onerror = function() {
955
- s(new T("Network Error", T.ERR_NETWORK, t, u)), u = null;
956
- }, u.ontimeout = function() {
944
+ ko(function(w) {
945
+ n(w), h();
946
+ }, function(w) {
947
+ s(w), h();
948
+ }, $), c = null;
949
+ }
950
+ if ("onloadend" in c ? c.onloadend = k : c.onreadystatechange = function() {
951
+ !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(k);
952
+ }, c.onabort = function() {
953
+ c && (s(new T("Request aborted", T.ECONNABORTED, t, c)), c = null);
954
+ }, c.onerror = function() {
955
+ s(new T("Network Error", T.ERR_NETWORK, t, c)), c = null;
956
+ }, c.ontimeout = function() {
957
957
  let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
958
958
  const $ = t.transitional || Fn;
959
959
  t.timeoutErrorMessage && (g = t.timeoutErrorMessage), s(new T(
960
960
  g,
961
961
  $.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
962
962
  t,
963
- u
964
- )), u = null;
965
- }, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(w))) {
966
- const m = t.xsrfHeaderName && t.xsrfCookieName && Ao.read(t.xsrfCookieName);
967
- m && r.set(t.xsrfHeaderName, m);
968
- }
969
- o === void 0 && r.setContentType(null), "setRequestHeader" in u && v.forEach(r.toJSON(), function(g, $) {
970
- u.setRequestHeader($, g);
971
- }), v.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), a && a !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (p = (m) => {
972
- u && (s(!m || m.type ? new Le(null, t, u) : m), u.abort(), u = null);
973
- }, t.cancelToken && t.cancelToken.subscribe(p), t.signal && (t.signal.aborted ? p() : t.signal.addEventListener("abort", p)));
974
- const y = To(w);
963
+ c
964
+ )), c = null;
965
+ }, ae.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Ro(b))) {
966
+ const f = t.xsrfHeaderName && t.xsrfCookieName && Ao.read(t.xsrfCookieName);
967
+ f && r.set(t.xsrfHeaderName, f);
968
+ }
969
+ o === void 0 && r.setContentType(null), "setRequestHeader" in c && v.forEach(r.toJSON(), function(g, $) {
970
+ c.setRequestHeader($, g);
971
+ }), v.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), a && a !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", qt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", qt(t.onUploadProgress)), (t.cancelToken || t.signal) && (d = (f) => {
972
+ c && (s(!f || f.type ? new Le(null, t, c) : f), c.abort(), c = null);
973
+ }, t.cancelToken && t.cancelToken.subscribe(d), t.signal && (t.signal.aborted ? d() : t.signal.addEventListener("abort", d)));
974
+ const y = To(b);
975
975
  if (y && ae.protocols.indexOf(y) === -1) {
976
976
  s(new T("Unsupported protocol " + y + ":", T.ERR_BAD_REQUEST, t));
977
977
  return;
978
978
  }
979
- u.send(o || null);
979
+ c.send(o || null);
980
980
  });
981
981
  }, ut = {
982
982
  http: ao,
@@ -1008,7 +1008,7 @@ const Wt = (t) => `- ${t}`, jo = (t) => v.isFunction(t) || t === null || t === !
1008
1008
  }
1009
1009
  if (!s) {
1010
1010
  const r = Object.entries(o).map(
1011
- ([i, p]) => `adapter ${i} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1011
+ ([i, d]) => `adapter ${i} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1012
1012
  );
1013
1013
  let a = e ? r.length > 1 ? `since :
1014
1014
  ` + r.map(Wt).join(`
@@ -1048,34 +1048,34 @@ const Jt = (t) => t instanceof ee ? { ...t } : t;
1048
1048
  function ye(t, e) {
1049
1049
  e = e || {};
1050
1050
  const n = {};
1051
- function s(h, d, u) {
1052
- return v.isPlainObject(h) && v.isPlainObject(d) ? v.merge.call({ caseless: u }, h, d) : v.isPlainObject(d) ? v.merge({}, d) : v.isArray(d) ? d.slice() : d;
1051
+ function s(h, l, c) {
1052
+ return v.isPlainObject(h) && v.isPlainObject(l) ? v.merge.call({ caseless: c }, h, l) : v.isPlainObject(l) ? v.merge({}, l) : v.isArray(l) ? l.slice() : l;
1053
1053
  }
1054
- function o(h, d, u) {
1055
- if (v.isUndefined(d)) {
1054
+ function o(h, l, c) {
1055
+ if (v.isUndefined(l)) {
1056
1056
  if (!v.isUndefined(h))
1057
- return s(void 0, h, u);
1057
+ return s(void 0, h, c);
1058
1058
  } else
1059
- return s(h, d, u);
1059
+ return s(h, l, c);
1060
1060
  }
1061
- function r(h, d) {
1062
- if (!v.isUndefined(d))
1063
- return s(void 0, d);
1061
+ function r(h, l) {
1062
+ if (!v.isUndefined(l))
1063
+ return s(void 0, l);
1064
1064
  }
1065
- function a(h, d) {
1066
- if (v.isUndefined(d)) {
1065
+ function a(h, l) {
1066
+ if (v.isUndefined(l)) {
1067
1067
  if (!v.isUndefined(h))
1068
1068
  return s(void 0, h);
1069
1069
  } else
1070
- return s(void 0, d);
1070
+ return s(void 0, l);
1071
1071
  }
1072
- function i(h, d, u) {
1073
- if (u in e)
1074
- return s(h, d);
1075
- if (u in t)
1072
+ function i(h, l, c) {
1073
+ if (c in e)
1074
+ return s(h, l);
1075
+ if (c in t)
1076
1076
  return s(void 0, h);
1077
1077
  }
1078
- const p = {
1078
+ const d = {
1079
1079
  url: r,
1080
1080
  method: r,
1081
1081
  data: r,
@@ -1104,11 +1104,11 @@ function ye(t, e) {
1104
1104
  socketPath: a,
1105
1105
  responseEncoding: a,
1106
1106
  validateStatus: i,
1107
- headers: (h, d) => o(Jt(h), Jt(d), !0)
1107
+ headers: (h, l) => o(Jt(h), Jt(l), !0)
1108
1108
  };
1109
- return v.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
1110
- const u = p[d] || o, w = u(t[d], e[d], d);
1111
- v.isUndefined(w) && u !== i || (n[d] = w);
1109
+ return v.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
1110
+ const c = d[l] || o, b = c(t[l], e[l], l);
1111
+ v.isUndefined(b) && c !== i || (n[l] = b);
1112
1112
  }), n;
1113
1113
  }
1114
1114
  const Nn = "1.6.8", bt = {};
@@ -1144,9 +1144,9 @@ function Bo(t, e, n) {
1144
1144
  for (; o-- > 0; ) {
1145
1145
  const r = s[o], a = e[r];
1146
1146
  if (a) {
1147
- const i = t[r], p = i === void 0 || a(i, r, t);
1148
- if (p !== !0)
1149
- throw new T("option " + r + " must be " + p, T.ERR_BAD_OPTION_VALUE);
1147
+ const i = t[r], d = i === void 0 || a(i, r, t);
1148
+ if (d !== !0)
1149
+ throw new T("option " + r + " must be " + d, T.ERR_BAD_OPTION_VALUE);
1150
1150
  continue;
1151
1151
  }
1152
1152
  if (n !== !0)
@@ -1210,40 +1210,40 @@ class de {
1210
1210
  }
1211
1211
  ), n.headers = ee.concat(a, r);
1212
1212
  const i = [];
1213
- let p = !0;
1214
- this.interceptors.request.forEach(function(m) {
1215
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (p = p && m.synchronous, i.unshift(m.fulfilled, m.rejected));
1213
+ let d = !0;
1214
+ this.interceptors.request.forEach(function(f) {
1215
+ typeof f.runWhen == "function" && f.runWhen(n) === !1 || (d = d && f.synchronous, i.unshift(f.fulfilled, f.rejected));
1216
1216
  });
1217
1217
  const h = [];
1218
- this.interceptors.response.forEach(function(m) {
1219
- h.push(m.fulfilled, m.rejected);
1218
+ this.interceptors.response.forEach(function(f) {
1219
+ h.push(f.fulfilled, f.rejected);
1220
1220
  });
1221
- let d, u = 0, w;
1222
- if (!p) {
1221
+ let l, c = 0, b;
1222
+ if (!d) {
1223
1223
  const y = [Qt.bind(this), void 0];
1224
- for (y.unshift.apply(y, i), y.push.apply(y, h), w = y.length, d = Promise.resolve(n); u < w; )
1225
- d = d.then(y[u++], y[u++]);
1226
- return d;
1227
- }
1228
- w = i.length;
1229
- let A = n;
1230
- for (u = 0; u < w; ) {
1231
- const y = i[u++], m = i[u++];
1224
+ for (y.unshift.apply(y, i), y.push.apply(y, h), b = y.length, l = Promise.resolve(n); c < b; )
1225
+ l = l.then(y[c++], y[c++]);
1226
+ return l;
1227
+ }
1228
+ b = i.length;
1229
+ let k = n;
1230
+ for (c = 0; c < b; ) {
1231
+ const y = i[c++], f = i[c++];
1232
1232
  try {
1233
- A = y(A);
1233
+ k = y(k);
1234
1234
  } catch (g) {
1235
- m.call(this, g);
1235
+ f.call(this, g);
1236
1236
  break;
1237
1237
  }
1238
1238
  }
1239
1239
  try {
1240
- d = Qt.call(this, A);
1240
+ l = Qt.call(this, k);
1241
1241
  } catch (y) {
1242
1242
  return Promise.reject(y);
1243
1243
  }
1244
- for (u = 0, w = h.length; u < w; )
1245
- d = d.then(h[u++], h[u++]);
1246
- return d;
1244
+ for (c = 0, b = h.length; c < b; )
1245
+ l = l.then(h[c++], h[c++]);
1246
+ return l;
1247
1247
  }
1248
1248
  getUri(e) {
1249
1249
  e = ye(this.defaults, e);
@@ -1519,77 +1519,77 @@ var Mn = { exports: {} };
1519
1519
  typeof Jo == "function" ? t.exports = s() : n.pluralize = s();
1520
1520
  })(Wo, function() {
1521
1521
  var n = [], s = [], o = {}, r = {}, a = {};
1522
- function i(m) {
1523
- return typeof m == "string" ? new RegExp("^" + m + "$", "i") : m;
1522
+ function i(f) {
1523
+ return typeof f == "string" ? new RegExp("^" + f + "$", "i") : f;
1524
1524
  }
1525
- function p(m, g) {
1526
- return m === g ? g : m === m.toLowerCase() ? g.toLowerCase() : m === m.toUpperCase() ? g.toUpperCase() : m[0] === m[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
1525
+ function d(f, g) {
1526
+ return f === g ? g : f === f.toLowerCase() ? g.toLowerCase() : f === f.toUpperCase() ? g.toUpperCase() : f[0] === f[0].toUpperCase() ? g.charAt(0).toUpperCase() + g.substr(1).toLowerCase() : g.toLowerCase();
1527
1527
  }
1528
- function h(m, g) {
1529
- return m.replace(/\$(\d{1,2})/g, function($, l) {
1530
- return g[l] || "";
1528
+ function h(f, g) {
1529
+ return f.replace(/\$(\d{1,2})/g, function($, u) {
1530
+ return g[u] || "";
1531
1531
  });
1532
1532
  }
1533
- function d(m, g) {
1534
- return m.replace(g[0], function($, l) {
1535
- var b = h(g[1], arguments);
1536
- return p($ === "" ? m[l - 1] : $, b);
1533
+ function l(f, g) {
1534
+ return f.replace(g[0], function($, u) {
1535
+ var w = h(g[1], arguments);
1536
+ return d($ === "" ? f[u - 1] : $, w);
1537
1537
  });
1538
1538
  }
1539
- function u(m, g, $) {
1540
- if (!m.length || o.hasOwnProperty(m))
1539
+ function c(f, g, $) {
1540
+ if (!f.length || o.hasOwnProperty(f))
1541
1541
  return g;
1542
- for (var l = $.length; l--; ) {
1543
- var b = $[l];
1544
- if (b[0].test(g))
1545
- return d(g, b);
1542
+ for (var u = $.length; u--; ) {
1543
+ var w = $[u];
1544
+ if (w[0].test(g))
1545
+ return l(g, w);
1546
1546
  }
1547
1547
  return g;
1548
1548
  }
1549
- function w(m, g, $) {
1550
- return function(l) {
1551
- var b = l.toLowerCase();
1552
- return g.hasOwnProperty(b) ? p(l, b) : m.hasOwnProperty(b) ? p(l, m[b]) : u(b, l, $);
1549
+ function b(f, g, $) {
1550
+ return function(u) {
1551
+ var w = u.toLowerCase();
1552
+ return g.hasOwnProperty(w) ? d(u, w) : f.hasOwnProperty(w) ? d(u, f[w]) : c(w, u, $);
1553
1553
  };
1554
1554
  }
1555
- function A(m, g, $, l) {
1556
- return function(b) {
1557
- var _ = b.toLowerCase();
1558
- return g.hasOwnProperty(_) ? !0 : m.hasOwnProperty(_) ? !1 : u(_, _, $) === _;
1555
+ function k(f, g, $, u) {
1556
+ return function(w) {
1557
+ var _ = w.toLowerCase();
1558
+ return g.hasOwnProperty(_) ? !0 : f.hasOwnProperty(_) ? !1 : c(_, _, $) === _;
1559
1559
  };
1560
1560
  }
1561
- function y(m, g, $) {
1562
- var l = g === 1 ? y.singular(m) : y.plural(m);
1563
- return ($ ? g + " " : "") + l;
1561
+ function y(f, g, $) {
1562
+ var u = g === 1 ? y.singular(f) : y.plural(f);
1563
+ return ($ ? g + " " : "") + u;
1564
1564
  }
1565
- return y.plural = w(
1565
+ return y.plural = b(
1566
1566
  a,
1567
1567
  r,
1568
1568
  n
1569
- ), y.isPlural = A(
1569
+ ), y.isPlural = k(
1570
1570
  a,
1571
1571
  r,
1572
1572
  n
1573
- ), y.singular = w(
1573
+ ), y.singular = b(
1574
1574
  r,
1575
1575
  a,
1576
1576
  s
1577
- ), y.isSingular = A(
1577
+ ), y.isSingular = k(
1578
1578
  r,
1579
1579
  a,
1580
1580
  s
1581
- ), y.addPluralRule = function(m, g) {
1582
- n.push([i(m), g]);
1583
- }, y.addSingularRule = function(m, g) {
1584
- s.push([i(m), g]);
1585
- }, y.addUncountableRule = function(m) {
1586
- if (typeof m == "string") {
1587
- o[m.toLowerCase()] = !0;
1581
+ ), y.addPluralRule = function(f, g) {
1582
+ n.push([i(f), g]);
1583
+ }, y.addSingularRule = function(f, g) {
1584
+ s.push([i(f), g]);
1585
+ }, y.addUncountableRule = function(f) {
1586
+ if (typeof f == "string") {
1587
+ o[f.toLowerCase()] = !0;
1588
1588
  return;
1589
1589
  }
1590
- y.addPluralRule(m, "$0"), y.addSingularRule(m, "$0");
1591
- }, y.addIrregularRule = function(m, g) {
1592
- g = g.toLowerCase(), m = m.toLowerCase(), a[m] = g, r[g] = m;
1590
+ y.addPluralRule(f, "$0"), y.addSingularRule(f, "$0");
1591
+ }, y.addIrregularRule = function(f, g) {
1592
+ g = g.toLowerCase(), f = f.toLowerCase(), a[f] = g, r[g] = f;
1593
1593
  }, [
1594
1594
  // Pronouns.
1595
1595
  ["I", "we"],
@@ -1643,8 +1643,8 @@ var Mn = { exports: {} };
1643
1643
  ["groove", "grooves"],
1644
1644
  ["pickaxe", "pickaxes"],
1645
1645
  ["passerby", "passersby"]
1646
- ].forEach(function(m) {
1647
- return y.addIrregularRule(m[0], m[1]);
1646
+ ].forEach(function(f) {
1647
+ return y.addIrregularRule(f[0], f[1]);
1648
1648
  }), [
1649
1649
  [/s?$/i, "s"],
1650
1650
  [/[^\u0000-\u007F]$/i, "$0"],
@@ -1671,8 +1671,8 @@ var Mn = { exports: {} };
1671
1671
  [/eaux$/i, "$0"],
1672
1672
  [/m[ae]n$/i, "men"],
1673
1673
  ["thou", "you"]
1674
- ].forEach(function(m) {
1675
- return y.addPluralRule(m[0], m[1]);
1674
+ ].forEach(function(f) {
1675
+ return y.addPluralRule(f[0], f[1]);
1676
1676
  }), [
1677
1677
  [/s$/i, ""],
1678
1678
  [/(ss)$/i, "$1"],
@@ -1697,8 +1697,8 @@ var Mn = { exports: {} };
1697
1697
  [/(child)ren$/i, "$1"],
1698
1698
  [/(eau)x?$/i, "$1"],
1699
1699
  [/men$/i, "man"]
1700
- ].forEach(function(m) {
1701
- return y.addSingularRule(m[0], m[1]);
1700
+ ].forEach(function(f) {
1701
+ return y.addSingularRule(f[0], f[1]);
1702
1702
  }), [
1703
1703
  // Singular words with no plurals.
1704
1704
  "adulthood",
@@ -1883,7 +1883,7 @@ class Xo {
1883
1883
  return oe.get(`${this.side}/${this.resources}/${e.id}`);
1884
1884
  }
1885
1885
  }
1886
- const al = {
1886
+ const il = {
1887
1887
  Client: Ko,
1888
1888
  ReadOnlyClient: Xo,
1889
1889
  GET_LIST: Ie,
@@ -1901,7 +1901,7 @@ const al = {
1901
1901
  }, ea = ["createdAt", "updatedAt", "deletedAt"];
1902
1902
  class ta {
1903
1903
  constructor(e, n) {
1904
- this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss", this.change = (e == null ? void 0 : e.change) || null;
1904
+ this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.placeholder = e.placeholder || "", this.prefix = e.prefix || "", this.suffix = e.suffix || "", this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss", this.change = (e == null ? void 0 : e.change) || null;
1905
1905
  }
1906
1906
  computeWidth(e) {
1907
1907
  return e.width ? e.width : ea.includes(e.code) ? 200 : e.code === "id" || e.type === "image" ? 100 : null;
@@ -2009,7 +2009,7 @@ const st = {
2009
2009
  "input-number": { config: "input-number" }
2010
2010
  };
2011
2011
  async function Gt(t, e, n) {
2012
- const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-DpTtroe0.js"), "./field/belongs-to/config.js": () => import("./config-CFxacuQl.js"), "./field/boolean/config.js": () => import("./config-Mav8bi6o.js"), "./field/cascader/config.js": () => import("./config-CS0O39NF.js"), "./field/component/config.js": () => import("./config-Dq5hc4u6.js"), "./field/date/config.js": () => import("./config-DivNupSQ.js"), "./field/datetime/config.js": () => import("./config-CoPjI4Bu.js"), "./field/image/config.js": () => import("./config-Dq2ZmEk2.js"), "./field/images/config.js": () => import("./config-y0eSzzRc.js"), "./field/input-number/config.js": () => import("./config-QjbD-Eq4.js"), "./field/json/config.js": () => import("./config-B8hd4Rhp.js"), "./field/radio-group/config.js": () => import("./config-BIm-L4OF.js"), "./field/rich-text/config.js": () => import("./config-CaVw0Uey.js"), "./field/row-id/config.js": () => import("./config-DCrLYyDQ.js"), "./field/select/config.js": () => import("./config-CuSnXh3v.js"), "./field/string/config.js": () => import("./config-BOoO5ADD.js"), "./field/switch/config.js": () => import("./config-BbVbGfL6.js"), "./field/text/config.js": () => import("./config-C5d2Y5lT.js"), "./field/time/config.js": () => import("./config-CvquE5fQ.js"), "./field/tree-select/config.js": () => import("./config-WK3Q0VIm.js") }), `./field/${t}/config.js`, 4);
2012
+ const s = await Zo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-CwjAEk26.js"), "./field/belongs-to/config.js": () => import("./config-CBgiOKrA.js"), "./field/boolean/config.js": () => import("./config-BH4A_NiQ.js"), "./field/cascader/config.js": () => import("./config-DtEcupsu.js"), "./field/component/config.js": () => import("./config-B-pjuj8Y.js"), "./field/date/config.js": () => import("./config-DE3vLJyX.js"), "./field/datetime/config.js": () => import("./config-D3WxbOr9.js"), "./field/image/config.js": () => import("./config-VPO2Rsz4.js"), "./field/images/config.js": () => import("./config-C2sD4VPj.js"), "./field/input-number/config.js": () => import("./config-DMZKncqs.js"), "./field/json/config.js": () => import("./config-DAN1rEwr.js"), "./field/radio-group/config.js": () => import("./config-BYAfOPPJ.js"), "./field/rich-text/config.js": () => import("./config-BqC9IVKH.js"), "./field/row-id/config.js": () => import("./config-DMN9s66_.js"), "./field/select/config.js": () => import("./config-RAxfaUNa.js"), "./field/string/config.js": () => import("./config-B2CWYjIt.js"), "./field/switch/config.js": () => import("./config-B89Z-LnS.js"), "./field/text/config.js": () => import("./config-Ut2E1TaK.js"), "./field/time/config.js": () => import("./config-CtnT1VxY.js"), "./field/tree-select/config.js": () => import("./config-X2LhF_WL.js") }), `./field/${t}/config.js`, 4);
2013
2013
  return new s.default(e, n);
2014
2014
  }
2015
2015
  function Kt(t, e = "unknown") {
@@ -2039,10 +2039,10 @@ let ft = {
2039
2039
  fileUploadUrl: "",
2040
2040
  idempotentUrl: ""
2041
2041
  }, Ce = {};
2042
- function rl(t) {
2042
+ function ll(t) {
2043
2043
  ft = { ...ft, ...t }, Ce = t.domainConfigs;
2044
2044
  }
2045
- function il(t) {
2045
+ function ul(t) {
2046
2046
  Object.keys(Ce).forEach((e) => {
2047
2047
  const n = Ce[e];
2048
2048
  Object.keys(n).forEach((s) => {
@@ -2173,7 +2173,7 @@ const V = (t, e) => {
2173
2173
  },
2174
2174
  setup(t) {
2175
2175
  const e = t;
2176
- return (n, s) => (c(), S(f(mn), { shadow: "never" }, De({
2176
+ return (n, s) => (p(), S(m(mn), { shadow: "never" }, De({
2177
2177
  default: E(() => [
2178
2178
  J(n.$slots, "default", {}, void 0, !0)
2179
2179
  ]),
@@ -2183,7 +2183,7 @@ const V = (t, e) => {
2183
2183
  name: "header",
2184
2184
  fn: E(() => [
2185
2185
  C("div", aa, [
2186
- C("span", ra, B(e.title), 1)
2186
+ C("span", ra, j(e.title), 1)
2187
2187
  ])
2188
2188
  ]),
2189
2189
  key: "0"
@@ -2215,38 +2215,38 @@ const V = (t, e) => {
2215
2215
  let n = "#f7faff", s = "10px";
2216
2216
  return e.background && (n = e.background, n == "none" && (s = "0px")), (o, r) => {
2217
2217
  const a = qe("RouterLink");
2218
- return _e((c(), O("div", {
2218
+ return _e((p(), x("div", {
2219
2219
  class: "container",
2220
- style: Ge(`background: ${f(n)}; padding: ${f(s)}`)
2220
+ style: Ge(`background: ${m(n)}; padding: ${m(s)}`)
2221
2221
  }, [
2222
2222
  C("div", {
2223
2223
  class: "item-box-data mono-data",
2224
2224
  style: Ge(`text-align: ${e.align};`)
2225
2225
  }, [
2226
- e.value != null ? (c(), O("span", ua, B(e.value), 1)) : (c(), O("span", ca, "..."))
2226
+ e.value != null ? (p(), x("span", ua, j(e.value), 1)) : (p(), x("span", ca, "..."))
2227
2227
  ], 4),
2228
2228
  C("div", {
2229
2229
  class: "item-box-tip",
2230
2230
  style: Ge(`text-align: ${e.align};`)
2231
2231
  }, [
2232
- e.link ? (c(), O("span", da, [
2233
- x(a, {
2232
+ e.link ? (p(), x("span", da, [
2233
+ O(a, {
2234
2234
  to: e.link
2235
2235
  }, {
2236
2236
  default: E(() => [
2237
- x(f(as), { type: "primary" }, {
2237
+ O(m(as), { type: "primary" }, {
2238
2238
  default: E(() => [
2239
- N(B(e.title), 1)
2239
+ N(j(e.title), 1)
2240
2240
  ]),
2241
2241
  _: 1
2242
2242
  })
2243
2243
  ]),
2244
2244
  _: 1
2245
2245
  }, 8, ["to"])
2246
- ])) : (c(), O("span", pa, B(e.title), 1))
2246
+ ])) : (p(), x("span", pa, j(e.title), 1))
2247
2247
  ], 4)
2248
2248
  ], 4)), [
2249
- [f(ve), e.value == null]
2249
+ [m(ve), e.value == null]
2250
2250
  ]);
2251
2251
  };
2252
2252
  }
@@ -2274,9 +2274,9 @@ const V = (t, e) => {
2274
2274
  },
2275
2275
  setup(t) {
2276
2276
  const e = t;
2277
- return (n, s) => (c(), S(la, null, {
2277
+ return (n, s) => (p(), S(la, null, {
2278
2278
  default: E(() => [
2279
- x(ma, {
2279
+ O(ma, {
2280
2280
  title: e.title,
2281
2281
  value: e.value,
2282
2282
  icon: e.icon,
@@ -2288,16 +2288,16 @@ const V = (t, e) => {
2288
2288
  _: 1
2289
2289
  }));
2290
2290
  }
2291
- }, ll = /* @__PURE__ */ V(ha, [["__scopeId", "data-v-f338c407"]]), ga = {}, ya = { style: { padding: "20px 0" } };
2291
+ }, cl = /* @__PURE__ */ V(ha, [["__scopeId", "data-v-f338c407"]]), ga = {}, ya = { style: { padding: "20px 0" } };
2292
2292
  function _a(t, e) {
2293
- return c(), O("div", ya, [
2293
+ return p(), x("div", ya, [
2294
2294
  J(t.$slots, "default")
2295
2295
  ]);
2296
2296
  }
2297
- const ul = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
2297
+ const dl = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
2298
2298
  __name: "DashboardRow",
2299
2299
  setup(t) {
2300
- return (e, n) => (c(), S(f(xe), {
2300
+ return (e, n) => (p(), S(m(Oe), {
2301
2301
  style: { "margin-bottom": "20px" },
2302
2302
  class: "row"
2303
2303
  }, {
@@ -2307,7 +2307,7 @@ const ul = /* @__PURE__ */ V(ga, [["render", _a]]), va = {
2307
2307
  _: 3
2308
2308
  }));
2309
2309
  }
2310
- }, cl = /* @__PURE__ */ V(va, [["__scopeId", "data-v-5b091760"]]);
2310
+ }, pl = /* @__PURE__ */ V(va, [["__scopeId", "data-v-5b091760"]]);
2311
2311
  function Q(t) {
2312
2312
  const e = { ...t.query, ...t.params };
2313
2313
  if (t.params.domain && t.params.id) {
@@ -2324,6 +2324,9 @@ function mt(t) {
2324
2324
  return t.map((e) => ba(e));
2325
2325
  }
2326
2326
  const wa = {
2327
+ key: 0,
2328
+ class: "classify-wrap"
2329
+ }, Ea = {
2327
2330
  __name: "FormLayout",
2328
2331
  props: {
2329
2332
  layout: Object,
@@ -2331,14 +2334,20 @@ const wa = {
2331
2334
  },
2332
2335
  setup(t) {
2333
2336
  const e = t, n = I(() => {
2337
+ var r;
2334
2338
  if (e.layout.length == 0) {
2335
- if (e.fields.length <= 6) {
2336
- const a = o(e.fields, 1);
2337
- return mt(a);
2339
+ if (((r = e.fields) == null ? void 0 : r.filter(
2340
+ (d) => {
2341
+ var h;
2342
+ return !((h = d.code) != null && h.includes("classify"));
2343
+ }
2344
+ ).length) <= 6) {
2345
+ const d = o(e.fields, 1);
2346
+ return mt(d);
2338
2347
  }
2339
2348
  console.log(e.fields);
2340
- const r = o(e.fields, 2);
2341
- return mt(r);
2349
+ const i = o(e.fields, 2);
2350
+ return mt(i);
2342
2351
  }
2343
2352
  return e.layout;
2344
2353
  });
@@ -2346,30 +2355,42 @@ const wa = {
2346
2355
  return e.fields.find((i) => i.code == r);
2347
2356
  }
2348
2357
  function o(r, a = 2) {
2349
- const i = r.map((h) => h.code), p = [];
2350
- for (let h = 0; h < i.length; h += a)
2351
- p.push(i.slice(h, h + a));
2352
- return p;
2358
+ var h;
2359
+ const i = r.map((l) => l.code), d = [];
2360
+ if (a == 2)
2361
+ for (let l = 0; l < i.length; l += a)
2362
+ i[l].includes("classify") ? (d.push([i[l]]), i.splice(i[l].includes("classify") ? l : l + 1, 1), l -= a) : (h = i[l + 1]) != null && h.includes("classify") ? (d.push([i[l]]), d.push([i[l + 1]])) : d.push(i.slice(l, l + a));
2363
+ else
2364
+ for (let l = 0; l < i.length; l += a)
2365
+ d.push(i.slice(l, l + a));
2366
+ return d;
2353
2367
  }
2354
- return (r, a) => (c(), O("div", null, [
2355
- (c(!0), O(P, null, q(n.value, (i) => (c(), S(f(xe), { gutter: 20 }, {
2368
+ return (r, a) => (p(), x("div", null, [
2369
+ (p(!0), x(P, null, q(n.value, (i) => (p(), S(m(Oe), { gutter: 20 }, {
2356
2370
  default: E(() => [
2357
- (c(!0), O(P, null, q(i.cols, (p) => (c(), S(f($e), {
2358
- span: s(p.field).wholeRow ? 24 : p.span
2359
- }, {
2360
- default: E(() => [
2361
- J(r.$slots, "default", {
2362
- field: s(p.field)
2363
- })
2364
- ]),
2365
- _: 2
2366
- }, 1032, ["span"]))), 256))
2371
+ (p(!0), x(P, null, q(i.cols, (d) => {
2372
+ var h, l, c;
2373
+ return p(), S(m($e), {
2374
+ span: (h = s(d.field)) != null && h.wholeRow ? 24 : ((l = i.cols) == null ? void 0 : l.length) == 1 && !((c = d.field) != null && c.includes("classify")) && e.fields.length > 6 ? 12 : d.span
2375
+ }, {
2376
+ default: E(() => {
2377
+ var b, k;
2378
+ return [
2379
+ (b = d.field) != null && b.includes("classify") ? (p(), x("div", wa, j((k = s(d.field)) == null ? void 0 : k.label), 1)) : J(r.$slots, "default", {
2380
+ key: 1,
2381
+ field: s(d.field)
2382
+ }, void 0, !0)
2383
+ ];
2384
+ }),
2385
+ _: 2
2386
+ }, 1032, ["span"]);
2387
+ }), 256))
2367
2388
  ]),
2368
2389
  _: 2
2369
2390
  }, 1024))), 256))
2370
2391
  ]));
2371
2392
  }
2372
- }, Ea = { style: { width: "100%" } }, $a = { class: "footer" }, Sa = { key: 1 }, Oa = {
2393
+ }, $a = /* @__PURE__ */ V(Ea, [["__scopeId", "data-v-3b8299b1"]]), Sa = { style: { width: "100%" } }, xa = { class: "footer" }, Oa = { key: 1 }, ka = {
2373
2394
  __name: "PureForm",
2374
2395
  props: {
2375
2396
  config: {
@@ -2385,25 +2406,25 @@ const wa = {
2385
2406
  },
2386
2407
  emits: ["submit", "remove"],
2387
2408
  setup(t, { emit: e }) {
2388
- const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []), p = Oe({ ...a.data }), h = D(null), d = a.config.fields.filter((b) => b.rules).reduce((b, _) => (b[_.code] = A(_.rules), b), {}), u = I(l), w = I(() => a.config.fields.filter((b) => {
2389
- const _ = b.editable(p, s), k = b.visible(p, s);
2390
- return b.disabled = k && !_, _ || k;
2409
+ const n = U(), s = Q(n), o = e, r = D(!1), a = t, i = mt(a.config.formLayout || []), d = xe({ ...a.data }), h = D(null), l = a.config.fields.filter((w) => w.rules).reduce((w, _) => (w[_.code] = k(_.rules), w), {}), c = I(u), b = I(() => a.config.fields.filter((w) => {
2410
+ const _ = w.editable(d, s), A = w.visible(d, s);
2411
+ return w.disabled = A && !_, _ || A;
2391
2412
  }));
2392
- function A(b) {
2393
- return typeof b == "object" ? b : typeof b == "function" ? b(p) : [];
2413
+ function k(w) {
2414
+ return typeof w == "object" ? w : typeof w == "function" ? w(d) : [];
2394
2415
  }
2395
- function y(b) {
2396
- r.value = !0, o("submit", b, p, () => {
2416
+ function y(w) {
2417
+ r.value = !0, o("submit", w, d, () => {
2397
2418
  r.value = !1;
2398
2419
  });
2399
2420
  }
2400
- async function m() {
2401
- await h.value.validate(async (b, _) => {
2421
+ async function f() {
2422
+ await h.value.validate(async (w, _) => {
2402
2423
  var K, M;
2403
- if (!b)
2424
+ if (!w)
2404
2425
  return console.log("error submit!", _), !1;
2405
- const k = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...p };
2406
- if (k && (R[k] = (M = R[k]) == null ? void 0 : M.map((Y) => Y.id)), a.config.submitConfirm) {
2426
+ const A = (K = a.config.fields.find((Y) => ["images", "attachments", "attachment"].includes(Y.type))) == null ? void 0 : K.code, R = { ...d };
2427
+ if (A && (R[A] = (M = R[A]) == null ? void 0 : M.map((Y) => Y.id)), a.config.submitConfirm) {
2407
2428
  await a.config.submitConfirm(R) && y(R);
2408
2429
  return;
2409
2430
  }
@@ -2411,11 +2432,11 @@ const wa = {
2411
2432
  });
2412
2433
  }
2413
2434
  function g() {
2414
- o("remove", p);
2435
+ o("remove", d);
2415
2436
  }
2416
2437
  function $() {
2417
2438
  if (a.config.removeConfirm) {
2418
- a.config.removeConfirm(p, g);
2439
+ a.config.removeConfirm(d, g);
2419
2440
  return;
2420
2441
  }
2421
2442
  is.confirm("确定要删除该条数据吗?", "提示", {
@@ -2432,67 +2453,67 @@ const wa = {
2432
2453
  });
2433
2454
  });
2434
2455
  }
2435
- function l() {
2436
- const b = a.config.showSubmit;
2437
- return typeof b == "boolean" ? b : typeof b == "function" ? b(s, p) : !0;
2456
+ function u() {
2457
+ const w = a.config.showSubmit;
2458
+ return typeof w == "boolean" ? w : typeof w == "function" ? w(s, d) : !0;
2438
2459
  }
2439
- return j(
2440
- () => ({ ...p }),
2441
- (b, _) => {
2442
- const R = Object.keys(b).filter((M) => _[M] !== b[M]).map((M) => {
2460
+ return B(
2461
+ () => ({ ...d }),
2462
+ (w, _) => {
2463
+ const R = Object.keys(w).filter((M) => _[M] !== w[M]).map((M) => {
2443
2464
  var Y;
2444
2465
  return (Y = h.value) == null || Y.clearValidate(M), {
2445
2466
  field: M,
2446
- newValue: b[M],
2467
+ newValue: w[M],
2447
2468
  oldValue: _[M]
2448
2469
  };
2449
2470
  });
2450
- w.value.filter((M) => !M.disabled).forEach((M) => {
2451
- M.formChange && M.formChange(p, R);
2471
+ b.value.filter((M) => !M.disabled).forEach((M) => {
2472
+ M.formChange && M.formChange(d, R);
2452
2473
  });
2453
2474
  }
2454
- ), j(
2475
+ ), B(
2455
2476
  () => a.data,
2456
- (b) => {
2457
- Object.keys(b).forEach((_) => {
2458
- p[_] = b[_];
2477
+ (w) => {
2478
+ Object.keys(w).forEach((_) => {
2479
+ d[_] = w[_];
2459
2480
  });
2460
2481
  },
2461
2482
  { immediate: !0 }
2462
- ), (b, _) => (c(), S(f(hn), {
2483
+ ), (w, _) => (p(), S(m(hn), {
2463
2484
  id: "form",
2464
2485
  ref_key: "formRef",
2465
2486
  ref: h,
2466
- model: p,
2487
+ model: d,
2467
2488
  "label-width": "100px",
2468
2489
  "label-position": "top",
2469
- rules: f(d)
2490
+ rules: m(l)
2470
2491
  }, {
2471
2492
  default: E(() => [
2472
- x(wa, {
2473
- layout: f(i),
2474
- fields: w.value
2493
+ O($a, {
2494
+ layout: m(i),
2495
+ fields: b.value
2475
2496
  }, {
2476
- default: E(({ field: k }) => [
2477
- (c(), S(f(ot), {
2478
- key: k.code,
2479
- label: k.label,
2480
- prop: k.code
2497
+ default: E(({ field: A }) => [
2498
+ (p(), S(m(ot), {
2499
+ key: A.code,
2500
+ label: A.label,
2501
+ prop: A.code
2481
2502
  }, {
2482
2503
  default: E(() => [
2483
- C("div", Ea, [
2484
- k != null && k.editor ? (c(), S(X(k.editor), {
2504
+ C("div", Sa, [
2505
+ A != null && A.editor ? (p(), S(X(A.editor), {
2485
2506
  key: 0,
2486
- modelValue: p[k.code],
2487
- "onUpdate:modelValue": (R) => p[k.code] = R,
2488
- field: k,
2489
- disabled: k.disabled,
2490
- "form-data": p,
2507
+ modelValue: d[A.code],
2508
+ "onUpdate:modelValue": (R) => d[A.code] = R,
2509
+ field: A,
2510
+ disabled: A.disabled,
2511
+ "form-data": d,
2491
2512
  "domain-config": a.config,
2492
- row: p
2493
- }, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (c(), S(f(rs), {
2513
+ row: d
2514
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (p(), S(m(rs), {
2494
2515
  key: 1,
2495
- title: `未找到 ${k.code}(${k.type}) 的编辑器`,
2516
+ title: `未找到 ${A.code}(${A.type}) 的编辑器`,
2496
2517
  type: "error",
2497
2518
  effect: "dark",
2498
2519
  closable: !1
@@ -2504,8 +2525,8 @@ const wa = {
2504
2525
  ]),
2505
2526
  _: 1
2506
2527
  }, 8, ["layout", "fields"]),
2507
- C("div", $a, [
2508
- p.id && !p.deletedAt && a.removable ? (c(), S(f(ne), {
2528
+ C("div", xa, [
2529
+ d.id && !d.deletedAt && a.removable ? (p(), S(m(ne), {
2509
2530
  key: 0,
2510
2531
  size: "default",
2511
2532
  type: "danger",
@@ -2515,13 +2536,13 @@ const wa = {
2515
2536
  N(" 删除 ")
2516
2537
  ]),
2517
2538
  _: 1
2518
- })) : (c(), O("div", Sa)),
2519
- u.value ? (c(), S(f(ne), {
2539
+ })) : (p(), x("div", Oa)),
2540
+ c.value ? (p(), S(m(ne), {
2520
2541
  key: 2,
2521
2542
  size: "default",
2522
2543
  type: "primary",
2523
2544
  loading: r.value,
2524
- onClick: m
2545
+ onClick: f
2525
2546
  }, {
2526
2547
  default: E(() => [
2527
2548
  N(" 提交 ")
@@ -2533,12 +2554,12 @@ const wa = {
2533
2554
  _: 1
2534
2555
  }, 8, ["model", "rules"]));
2535
2556
  }
2536
- }, xa = /* @__PURE__ */ V(Oa, [["__scopeId", "data-v-e33a452e"]]);
2537
- function ka() {
2557
+ }, Aa = /* @__PURE__ */ V(ka, [["__scopeId", "data-v-e33a452e"]]);
2558
+ function Ca() {
2538
2559
  return He().idempotentUrl ? oe.get(He().idempotentUrl).then((t) => t.data) : "";
2539
2560
  }
2540
2561
  const Se = {
2541
- getValue: ka
2562
+ getValue: Ca
2542
2563
  }, St = {
2543
2564
  __name: "FormEditor",
2544
2565
  props: {
@@ -2561,54 +2582,58 @@ const Se = {
2561
2582
  },
2562
2583
  emits: ["update:modelValue", "submit", "remove"],
2563
2584
  setup(t, { emit: e }) {
2564
- const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })), p = I(() => r.config.fields.filter((m) => m.visible(i, s)).length >= 6 ? "60%" : "40%"), h = D(""), d = I({
2585
+ const n = U(), s = Q(n), o = e, r = t, a = D(r.data), i = I(() => ({ ...a.value, idempotentToken: h.value })), d = I(() => r.config.fields.filter((f) => {
2586
+ var g;
2587
+ if (!((g = f.code) != null && g.includes("classify")))
2588
+ return f.visible(i, s);
2589
+ }).length >= 6 ? "60%" : "40%"), h = D(""), l = I({
2565
2590
  get() {
2566
2591
  return r.modelValue;
2567
2592
  },
2568
2593
  set(y) {
2569
2594
  o("update:modelValue", y);
2570
2595
  }
2571
- }), u = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2572
- function w(y, m, g) {
2573
- a.value = m, o("submit", y, async () => {
2596
+ }), c = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2597
+ function b(y, f, g) {
2598
+ a.value = f, o("submit", y, async () => {
2574
2599
  h.value = await Se.getValue(), g();
2575
2600
  });
2576
2601
  }
2577
- function A(y, m) {
2602
+ function k(y, f) {
2578
2603
  o("remove", y, async () => {
2579
- h.value = await Se.getValue(), m();
2604
+ h.value = await Se.getValue(), f();
2580
2605
  });
2581
2606
  }
2582
- return j(
2583
- () => d,
2607
+ return B(
2608
+ () => l,
2584
2609
  async () => {
2585
2610
  h.value = await Se.getValue();
2586
2611
  },
2587
2612
  { immediate: !0 }
2588
- ), (y, m) => (c(), S(f(ls), {
2589
- modelValue: d.value,
2590
- "onUpdate:modelValue": m[0] || (m[0] = (g) => d.value = g),
2591
- width: p.value,
2613
+ ), (y, f) => (p(), S(m(ls), {
2614
+ modelValue: l.value,
2615
+ "onUpdate:modelValue": f[0] || (f[0] = (g) => l.value = g),
2616
+ width: d.value,
2592
2617
  top: "20px",
2593
- title: u.value,
2618
+ title: c.value,
2594
2619
  "close-on-click-modal": !1,
2595
2620
  "append-to-body": !0,
2596
2621
  "destroy-on-close": "",
2597
2622
  "z-index": 2e3
2598
2623
  }, {
2599
2624
  default: E(() => [
2600
- x(xa, {
2625
+ O(Aa, {
2601
2626
  config: r.config,
2602
2627
  data: i.value,
2603
2628
  removable: r.removable,
2604
- onSubmit: w,
2605
- onRemove: A
2629
+ onSubmit: b,
2630
+ onRemove: k
2606
2631
  }, null, 8, ["config", "data", "removable"])
2607
2632
  ]),
2608
2633
  _: 1
2609
2634
  }, 8, ["modelValue", "width", "title"]));
2610
2635
  }
2611
- }, dl = {
2636
+ }, fl = {
2612
2637
  __name: "RowActionFormEditor",
2613
2638
  props: {
2614
2639
  row: {
@@ -2644,22 +2669,22 @@ const Se = {
2644
2669
  code: e.code,
2645
2670
  fields: e.fields
2646
2671
  });
2647
- Promise.all(i.fields).then((d) => {
2648
- i.fields = d, i.restRepeat = e.restRepeat, i.rest = e.rest, o.value = i;
2672
+ Promise.all(i.fields).then((l) => {
2673
+ i.fields = l, i.restRepeat = e.restRepeat, i.rest = e.rest, o.value = i;
2649
2674
  });
2650
- async function p() {
2651
- const d = e.rest;
2652
- if (d != null && d.getOne) {
2653
- const { data: u } = await d.getOne({
2675
+ async function d() {
2676
+ const l = e.rest;
2677
+ if (l != null && l.getOne) {
2678
+ const { data: c } = await l.getOne({
2654
2679
  ...e.row,
2655
2680
  ...a
2656
2681
  });
2657
- n.value = u;
2682
+ n.value = c;
2658
2683
  }
2659
2684
  s.value = !0;
2660
2685
  }
2661
- function h(d, u) {
2662
- e.onSubmit(d).then(() => {
2686
+ function h(l, c) {
2687
+ e.onSubmit(l).then(() => {
2663
2688
  s.value = !1, ke({
2664
2689
  showClose: !0,
2665
2690
  grouping: !0,
@@ -2667,19 +2692,19 @@ const Se = {
2667
2692
  type: "success"
2668
2693
  }), console.log("success");
2669
2694
  }).catch(() => {
2670
- console.log("请求失败"), u();
2695
+ console.log("请求失败"), c();
2671
2696
  });
2672
2697
  }
2673
- return (d, u) => (c(), S(f(ne), {
2698
+ return (l, c) => (p(), S(m(ne), {
2674
2699
  type: e.type,
2675
- onClick: p
2700
+ onClick: d
2676
2701
  }, {
2677
2702
  default: E(() => [
2678
- N(B(e.text) + " ", 1),
2679
- s.value ? (c(), S(St, {
2703
+ N(j(e.text) + " ", 1),
2704
+ s.value ? (p(), S(St, {
2680
2705
  key: 0,
2681
2706
  modelValue: s.value,
2682
- "onUpdate:modelValue": u[0] || (u[0] = (w) => s.value = w),
2707
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => s.value = b),
2683
2708
  title: e.text,
2684
2709
  config: o.value,
2685
2710
  data: n.value,
@@ -2689,7 +2714,7 @@ const Se = {
2689
2714
  _: 1
2690
2715
  }, 8, ["type"]));
2691
2716
  }
2692
- }, Aa = { class: "not-found" }, Ca = {
2717
+ }, Da = { class: "not-found" }, Ra = {
2693
2718
  __name: "EmptyTip",
2694
2719
  props: {
2695
2720
  text: {
@@ -2699,9 +2724,9 @@ const Se = {
2699
2724
  },
2700
2725
  setup(t) {
2701
2726
  const e = t;
2702
- return (n, s) => (c(), O("span", Aa, B(e.text), 1));
2727
+ return (n, s) => (p(), x("span", Da, j(e.text), 1));
2703
2728
  }
2704
- }, pl = /* @__PURE__ */ V(Ca, [["__scopeId", "data-v-c97e855f"]]), fl = {
2729
+ }, ml = /* @__PURE__ */ V(Ra, [["__scopeId", "data-v-c97e855f"]]), hl = {
2705
2730
  __name: "FieldEditor",
2706
2731
  props: {
2707
2732
  modelValue: {
@@ -2715,19 +2740,19 @@ const Se = {
2715
2740
  },
2716
2741
  emits: ["update:modelValue"],
2717
2742
  setup(t, { emit: e }) {
2718
- const n = Zn(() => import("./ImagesUploader-BaNALrAL.js")), s = He().fileUploadUrl, o = e, r = t, a = Oe({ value: r.modelValue }), i = r.field.converter;
2719
- function p(d) {
2720
- let u = -1;
2721
- d.id && (u = a.value.findIndex((w) => w.id === d.id)), d.url && (u = a.value.findIndex((w) => w.url === d.url)), u >= 0 && (a.value.splice(u, 1), o("update:modelValue", a.value));
2743
+ const n = Zn(() => import("./ImagesUploader-CjRH6O1L.js")), s = He().fileUploadUrl, o = e, r = t, a = xe({ value: r.modelValue }), i = r.field.converter;
2744
+ function d(l) {
2745
+ let c = -1;
2746
+ l.id && (c = a.value.findIndex((b) => b.id === l.id)), l.url && (c = a.value.findIndex((b) => b.url === l.url)), c >= 0 && (a.value.splice(c, 1), o("update:modelValue", a.value));
2722
2747
  }
2723
- function h(d) {
2724
- console.log(d), Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s, d).then((u) => {
2748
+ function h(l) {
2749
+ console.log(l), Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), oe.post(s, l).then((c) => {
2725
2750
  Be.service().close(), ke({
2726
2751
  message: "上传成功",
2727
2752
  type: "success"
2728
2753
  });
2729
- const w = i(u.data);
2730
- a.value = a.value ? [...a.value, w] : [w], o("update:modelValue", a.value);
2754
+ const b = i(c.data);
2755
+ a.value = a.value ? [...a.value, b] : [b], o("update:modelValue", a.value);
2731
2756
  }).catch(() => {
2732
2757
  Be.service().close(), ke({
2733
2758
  message: "上传失败",
@@ -2735,18 +2760,18 @@ const Se = {
2735
2760
  });
2736
2761
  });
2737
2762
  }
2738
- return j(
2763
+ return B(
2739
2764
  () => r.modelValue,
2740
2765
  async () => {
2741
2766
  a.value = r.modelValue;
2742
2767
  },
2743
2768
  { immediate: !0 }
2744
- ), (d, u) => (c(), O("div", null, [
2745
- x(f(n), {
2769
+ ), (l, c) => (p(), x("div", null, [
2770
+ O(m(n), {
2746
2771
  images: a.value,
2747
2772
  props: r.field.props,
2748
2773
  onOnUpload: h,
2749
- onOnRemove: p
2774
+ onOnRemove: d
2750
2775
  }, null, 8, ["images", "props"])
2751
2776
  ]));
2752
2777
  }
@@ -2777,7 +2802,7 @@ const Se = {
2777
2802
  }),
2778
2803
  getters: {
2779
2804
  validFilters() {
2780
- return Da(
2805
+ return Ta(
2781
2806
  t,
2782
2807
  e,
2783
2808
  this.filters,
@@ -2795,23 +2820,23 @@ const Se = {
2795
2820
  }
2796
2821
  }
2797
2822
  });
2798
- function Da(t, e, n, s, o) {
2799
- let a = { ...Ra(t, e, s), ...n };
2823
+ function Ta(t, e, n, s, o) {
2824
+ let a = { ...Fa(t, e, s), ...n };
2800
2825
  return o != null && o.setupCreate && (a = o.setupCreate(a)), ht(t, e, a);
2801
2826
  }
2802
- function Ra(t, e, n) {
2827
+ function Fa(t, e, n) {
2803
2828
  const s = `filters---${e}---${t}`;
2804
2829
  let o = {};
2805
2830
  return localStorage.getItem(s) && (o = JSON.parse(localStorage.getItem(s))), Object.keys(o).filter((r) => Object.keys(n).includes(r)).reduce((r, a) => (r[a] = o[a], r), {});
2806
2831
  }
2807
2832
  function ht(t, e, n) {
2808
- const s = `filters---${e}---${t}`, o = Ta(n);
2833
+ const s = `filters---${e}---${t}`, o = La(n);
2809
2834
  return localStorage.setItem(s, JSON.stringify(o)), o;
2810
2835
  }
2811
- function Ta(t) {
2836
+ function La(t) {
2812
2837
  return Object.keys(t).filter((e) => t[e] != null && t[e] != null && t[e] != "").reduce((e, n) => (e[n] = t[n], e), {});
2813
2838
  }
2814
- const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-label" }, ja = { class: "sorters-arrow-box" }, Ba = ["onClick"], Va = ["onClick"], Na = {
2839
+ const Pa = { class: "sorters-box" }, ja = ["onClick"], Ba = { class: "sorters-label" }, Va = { class: "sorters-arrow-box" }, Na = ["onClick"], Ia = ["onClick"], Ma = {
2815
2840
  __name: "FiltersSorters",
2816
2841
  props: {
2817
2842
  sorters: {
@@ -2830,12 +2855,12 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
2830
2855
  async function r() {
2831
2856
  typeof s.sorters.sortersList == "function" ? o.value = await s.sorters.sortersList() : o.value = s.sorters.sortersList;
2832
2857
  }
2833
- r(), j(
2858
+ r(), B(
2834
2859
  () => s.value,
2835
2860
  () => {
2836
2861
  a();
2837
2862
  }
2838
- ), j(
2863
+ ), B(
2839
2864
  () => o,
2840
2865
  () => {
2841
2866
  a();
@@ -2844,44 +2869,44 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
2844
2869
  );
2845
2870
  function a() {
2846
2871
  if (s.value.length > 0)
2847
- for (let p = 0; p < o.value.length; p++) {
2848
- const h = o.value[p];
2849
- for (let d = 0; d < s.value.length; d++) {
2850
- const u = s.value[d];
2851
- h.field === u.field && (h.order = u.order);
2872
+ for (let d = 0; d < o.value.length; d++) {
2873
+ const h = o.value[d];
2874
+ for (let l = 0; l < s.value.length; l++) {
2875
+ const c = s.value[l];
2876
+ h.field === c.field && (h.order = c.order);
2852
2877
  }
2853
2878
  }
2854
2879
  else
2855
- for (let p = 0; p < o.value.length; p++)
2856
- o.value[p].order = "";
2880
+ for (let d = 0; d < o.value.length; d++)
2881
+ o.value[d].order = "";
2857
2882
  }
2858
- function i(p, h) {
2859
- const d = o.value;
2860
- h ? d[p].order = h : d[p].order ? d[p].order === "ASC" ? d[p].order = "DESC" : d[p].order === "DESC" && (d[p].order = "") : d[p].order = "ASC", n(
2883
+ function i(d, h) {
2884
+ const l = o.value;
2885
+ h ? l[d].order = h : l[d].order ? l[d].order === "ASC" ? l[d].order = "DESC" : l[d].order === "DESC" && (l[d].order = "") : l[d].order = "ASC", n(
2861
2886
  "updateSorters",
2862
- d.filter((u) => u.order)
2887
+ l.filter((c) => c.order)
2863
2888
  );
2864
2889
  }
2865
- return (p, h) => (c(), O("div", Fa, [
2866
- (c(!0), O(P, null, q(o.value, (d, u) => (c(), O("div", {
2890
+ return (d, h) => (p(), x("div", Pa, [
2891
+ (p(!0), x(P, null, q(o.value, (l, c) => (p(), x("div", {
2867
2892
  class: "sorters-item",
2868
- onClick: (w) => i(u, "")
2893
+ onClick: (b) => i(c, "")
2869
2894
  }, [
2870
- C("div", Pa, B(d.name), 1),
2871
- C("div", ja, [
2895
+ C("div", Ba, j(l.name), 1),
2896
+ C("div", Va, [
2872
2897
  C("i", {
2873
- class: he(["sort-caret ascending", d.order === "ASC" ? "ascending-active" : ""]),
2874
- onClick: Tt((w) => i(u, "ASC"), ["stop"])
2875
- }, null, 10, Ba),
2898
+ class: he(["sort-caret ascending", l.order === "ASC" ? "ascending-active" : ""]),
2899
+ onClick: Tt((b) => i(c, "ASC"), ["stop"])
2900
+ }, null, 10, Na),
2876
2901
  C("i", {
2877
- class: he(["sort-caret descending", d.order === "DESC" ? "descending-active" : ""]),
2878
- onClick: Tt((w) => i(u, "DESC"), ["stop"])
2879
- }, null, 10, Va)
2902
+ class: he(["sort-caret descending", l.order === "DESC" ? "descending-active" : ""]),
2903
+ onClick: Tt((b) => i(c, "DESC"), ["stop"])
2904
+ }, null, 10, Ia)
2880
2905
  ])
2881
- ], 8, La))), 256))
2906
+ ], 8, ja))), 256))
2882
2907
  ]));
2883
2908
  }
2884
- }, Ia = /* @__PURE__ */ V(Na, [["__scopeId", "data-v-fa20b02a"]]), Ma = { class: "ranges-box" }, Ua = { class: "range-item" }, za = { class: "range-label" }, Ha = { class: "range-input-box" }, qa = {
2909
+ }, Ua = /* @__PURE__ */ V(Ma, [["__scopeId", "data-v-fa20b02a"]]), za = { class: "ranges-box" }, Ha = { class: "range-item" }, qa = { class: "range-label" }, Wa = { class: "range-input-box" }, Qa = {
2885
2910
  __name: "FiltersRange",
2886
2911
  props: {
2887
2912
  ranges: {
@@ -2896,8 +2921,8 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
2896
2921
  },
2897
2922
  emits: ["updateRanges"],
2898
2923
  setup(t, { emit: e }) {
2899
- const n = e, s = t, o = Oe(s.ranges.rangesList);
2900
- j(
2924
+ const n = e, s = t, o = xe(s.ranges.rangesList);
2925
+ B(
2901
2926
  () => s.value,
2902
2927
  () => {
2903
2928
  r();
@@ -2905,50 +2930,50 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
2905
2930
  );
2906
2931
  function r() {
2907
2932
  s.value && s.value.length > 0 ? o.forEach((i) => {
2908
- s.value.forEach((p) => {
2909
- i.field === p.field && (i.min = p.min ? Number(p.min) : null, i.max = p.max ? Number(p.max) : null);
2933
+ s.value.forEach((d) => {
2934
+ i.field === d.field && (i.min = d.min ? Number(d.min) : null, i.max = d.max ? Number(d.max) : null);
2910
2935
  });
2911
2936
  }) : o.forEach((i) => {
2912
2937
  i.min = null, i.max = null;
2913
2938
  });
2914
2939
  }
2915
- function a(i, p, h) {
2916
- const d = [...o];
2917
- d.forEach((u) => {
2918
- u.field === p && (u[h] = i);
2940
+ function a(i, d, h) {
2941
+ const l = [...o];
2942
+ l.forEach((c) => {
2943
+ c.field === d && (c[h] = i);
2919
2944
  }), n(
2920
2945
  "updateRanges",
2921
- d.filter((u) => u.min || u.max)
2946
+ l.filter((c) => c.min || c.max)
2922
2947
  );
2923
2948
  }
2924
- return r(), (i, p) => (c(), O("div", Ma, [
2925
- (c(!0), O(P, null, q(o, (h) => (c(), O("div", Ua, [
2926
- C("div", za, B(h.name), 1),
2927
- C("div", Ha, [
2928
- x(f(Pt), {
2949
+ return r(), (i, d) => (p(), x("div", za, [
2950
+ (p(!0), x(P, null, q(o, (h) => (p(), x("div", Ha, [
2951
+ C("div", qa, j(h.name), 1),
2952
+ C("div", Wa, [
2953
+ O(m(Pt), {
2929
2954
  modelValue: h.min,
2930
- "onUpdate:modelValue": (d) => h.min = d,
2955
+ "onUpdate:modelValue": (l) => h.min = l,
2931
2956
  "controls-position": "right",
2932
2957
  class: "input-box",
2933
- onChange: (d) => {
2934
- a(d, h.field, "min");
2958
+ onChange: (l) => {
2959
+ a(l, h.field, "min");
2935
2960
  }
2936
2961
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
2937
- x(f(Pt), {
2962
+ O(m(Pt), {
2938
2963
  modelValue: h.max,
2939
- "onUpdate:modelValue": (d) => h.max = d,
2964
+ "onUpdate:modelValue": (l) => h.max = l,
2940
2965
  "controls-position": "right",
2941
2966
  class: "input-box",
2942
2967
  type: "number",
2943
- onChange: (d) => {
2944
- a(d, h.field, "max");
2968
+ onChange: (l) => {
2969
+ a(l, h.field, "max");
2945
2970
  }
2946
2971
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
2947
2972
  ])
2948
2973
  ]))), 256))
2949
2974
  ]));
2950
2975
  }
2951
- }, Wa = /* @__PURE__ */ V(qa, [["__scopeId", "data-v-30f46526"]]), Qa = { key: 0 }, Ja = {
2976
+ }, Ja = /* @__PURE__ */ V(Qa, [["__scopeId", "data-v-30f46526"]]), Ya = { key: 0 }, Ga = {
2952
2977
  __name: "FiltersEditor",
2953
2978
  props: {
2954
2979
  settings: {
@@ -2960,137 +2985,137 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
2960
2985
  label: "name",
2961
2986
  children: "children",
2962
2987
  value: "id"
2963
- }, s = U(), o = Q(s), r = D([]), a = Oe({}), i = Oe({}), p = Pe(
2988
+ }, s = U(), o = Q(s), r = D([]), a = xe({}), i = xe({}), d = Pe(
2964
2989
  e.settings.code,
2965
2990
  s.path,
2966
2991
  e.settings.filters,
2967
2992
  e.settings.filterHook
2968
2993
  )();
2969
- p.$subscribe((l, b) => {
2970
- b.filters.isDeleted !== a.isDeleted && (Object.keys(a).forEach((_) => {
2994
+ d.$subscribe((u, w) => {
2995
+ w.filters.isDeleted !== a.isDeleted && (Object.keys(a).forEach((_) => {
2971
2996
  a[_] = void 0;
2972
- }), a.isDeleted = b.filters.isDeleted);
2997
+ }), a.isDeleted = w.filters.isDeleted);
2973
2998
  });
2974
- function h(l) {
2975
- return typeof l == "boolean" ? l : typeof l == "function" ? l(o) : !0;
2999
+ function h(u) {
3000
+ return typeof u == "boolean" ? u : typeof u == "function" ? u(o) : !0;
2976
3001
  }
2977
- async function d(l, b) {
3002
+ async function l(u, w) {
2978
3003
  var _;
2979
- if (typeof l.options == "function")
2980
- i[l.code] = await l.options(
3004
+ if (typeof u.options == "function")
3005
+ i[u.code] = await u.options(
2981
3006
  a,
2982
3007
  o,
2983
- b
3008
+ w
2984
3009
  );
2985
- else if (Array.isArray(l.options))
2986
- i[l.code] = l.options;
2987
- else if (typeof l.options == "object") {
2988
- const k = l.options.getOneUrl ? l.options.getOneUrl : l.options.url;
2989
- if (!b && Array.isArray(a[l.code]) && a[l.code].length > 0)
2990
- i[l.code] = [], a[l.code].forEach((R) => {
2991
- k.getOne({ id: R }).then((K) => {
2992
- i[l.code].push({
2993
- code: K.data[l.options.data.value] || K.data.id,
2994
- name: K.data[l.options.data.label] || K.data.name
3010
+ else if (Array.isArray(u.options))
3011
+ i[u.code] = u.options;
3012
+ else if (typeof u.options == "object") {
3013
+ const A = u.options.getOneUrl ? u.options.getOneUrl : u.options.url;
3014
+ if (!w && Array.isArray(a[u.code]) && a[u.code].length > 0)
3015
+ i[u.code] = [], a[u.code].forEach((R) => {
3016
+ A.getOne({ id: R }).then((K) => {
3017
+ i[u.code].push({
3018
+ code: K.data[u.options.data.value] || K.data.id,
3019
+ name: K.data[u.options.data.label] || K.data.name
2995
3020
  });
2996
3021
  });
2997
3022
  });
2998
- else if (!b && !Array.isArray(a[l.code]) && a[l.code])
2999
- k.getOne({ id: a[l.code] }).then((R) => {
3000
- i[l.code] = [
3023
+ else if (!w && !Array.isArray(a[u.code]) && a[u.code])
3024
+ A.getOne({ id: a[u.code] }).then((R) => {
3025
+ i[u.code] = [
3001
3026
  {
3002
- code: R.data[l.options.data.value] || R.data.id,
3003
- name: R.data[l.options.data.label] || R.data.name
3027
+ code: R.data[u.options.data.value] || R.data.id,
3028
+ name: R.data[u.options.data.label] || R.data.name
3004
3029
  }
3005
3030
  ];
3006
3031
  });
3007
3032
  else {
3008
- const R = l.options.query.keyWord.toString(), K = l.options.method ? l.options.method : "getList";
3009
- l.options.url[K]({
3010
- ...l.options.query,
3011
- [R]: b
3033
+ const R = u.options.query.keyWord.toString(), K = u.options.method ? u.options.method : "getList";
3034
+ u.options.url[K]({
3035
+ ...u.options.query,
3036
+ [R]: w
3012
3037
  }).then((M) => {
3013
- i[l.code] = M.data.rows.map((Y) => ({
3014
- code: Y[l.options.data.value] || Y.id,
3015
- name: Y[l.options.data.label] || Y.name
3038
+ i[u.code] = M.data.rows.map((Y) => ({
3039
+ code: Y[u.options.data.value] || Y.id,
3040
+ name: Y[u.options.data.label] || Y.name
3016
3041
  }));
3017
3042
  });
3018
3043
  }
3019
3044
  }
3020
- if (i[l.code] && l.type != "tree-select") {
3021
- const k = i[l.code].map((R) => R.code);
3022
- a[l.code] && (l.multiple ? a[l.code] = a[l.code].filter((R) => (console.log(k.includes(R)), k.includes(R))) : a[l.code] = (_ = i[l.code].find(
3023
- (R) => R.code == a[l.code]
3045
+ if (i[u.code] && u.type != "tree-select") {
3046
+ const A = i[u.code].map((R) => R.code);
3047
+ a[u.code] && (u.multiple ? a[u.code] = a[u.code].filter((R) => (console.log(A.includes(R)), A.includes(R))) : a[u.code] = (_ = i[u.code].find(
3048
+ (R) => R.code == a[u.code]
3024
3049
  )) == null ? void 0 : _.code, g());
3025
3050
  }
3026
3051
  }
3027
- function u(l) {
3028
- if (l.remote)
3029
- return (b) => {
3030
- d(l, b);
3052
+ function c(u) {
3053
+ if (u.remote)
3054
+ return (w) => {
3055
+ l(u, w);
3031
3056
  };
3032
3057
  }
3033
- function w(l) {
3034
- a.sorters = l, g();
3058
+ function b(u) {
3059
+ a.sorters = u, g();
3035
3060
  }
3036
- function A(l) {
3037
- a.filters = l;
3061
+ function k(u) {
3062
+ a.filters = u;
3038
3063
  }
3039
3064
  function y() {
3040
- Object.keys(a).forEach((l) => {
3041
- a[l] = void 0;
3042
- }), r.value = Object.keys(e.settings.filters).filter((l) => h(e.settings.filters[l].visible)).map((l) => {
3043
- const b = { ...e.settings.filters[l], code: l };
3044
- return a[l] = m(l), (b.type === "select" || b.type === "selectV2" || b.type === "tree" || b.type === "tree-select") && d(b), {
3045
- ...b,
3046
- dateType: b.dateType || "datetimerange",
3047
- format: b.format || "YYYY-MM-DD HH:mm:ss"
3065
+ Object.keys(a).forEach((u) => {
3066
+ a[u] = void 0;
3067
+ }), r.value = Object.keys(e.settings.filters).filter((u) => h(e.settings.filters[u].visible)).map((u) => {
3068
+ const w = { ...e.settings.filters[u], code: u };
3069
+ return a[u] = f(u), (w.type === "select" || w.type === "selectV2" || w.type === "tree" || w.type === "tree-select") && l(w), {
3070
+ ...w,
3071
+ dateType: w.dateType || "datetimerange",
3072
+ format: w.format || "YYYY-MM-DD HH:mm:ss"
3048
3073
  };
3049
- }).filter((l) => l.code !== "isDeleted");
3074
+ }).filter((u) => u.code !== "isDeleted");
3050
3075
  }
3051
- function m(l) {
3052
- const b = e.settings.filters[l], _ = p.validFilters[l];
3053
- return b.type === "boolean" && typeof _ != "boolean" ? b.value : _;
3076
+ function f(u) {
3077
+ const w = e.settings.filters[u], _ = d.validFilters[u];
3078
+ return w.type === "boolean" && typeof _ != "boolean" ? w.value : _;
3054
3079
  }
3055
3080
  function g() {
3056
- let l = JSON.parse(JSON.stringify(a));
3057
- const b = e.settings.filterHook;
3058
- b != null && b.preSubmit && (l = b.preSubmit(l, o)), p.change(l);
3081
+ let u = JSON.parse(JSON.stringify(a));
3082
+ const w = e.settings.filterHook;
3083
+ w != null && w.preSubmit && (u = w.preSubmit(u, o)), u !== !1 && d.change(u);
3059
3084
  }
3060
3085
  function $() {
3061
- p.$reset({}), y(), g();
3086
+ d.$reset({}), y(), g();
3062
3087
  }
3063
- return j(
3088
+ return B(
3064
3089
  () => e.settings,
3065
3090
  () => {
3066
3091
  y(), g();
3067
3092
  },
3068
3093
  { immediate: !0 }
3069
- ), j(
3094
+ ), B(
3070
3095
  () => ({ ...a }),
3071
- (l, b) => {
3072
- const k = Object.keys(l).filter((R) => b[R] !== l[R]).map((R) => ({
3096
+ (u, w) => {
3097
+ const A = Object.keys(u).filter((R) => w[R] !== u[R]).map((R) => ({
3073
3098
  field: R,
3074
- newValue: l[R],
3075
- oldValue: b[R]
3099
+ newValue: u[R],
3100
+ oldValue: w[R]
3076
3101
  }));
3077
3102
  r.value.forEach((R) => {
3078
- R.formChange && R.formChange(a, k);
3103
+ R.formChange && R.formChange(a, A);
3079
3104
  });
3080
3105
  }
3081
- ), (l, b) => Object.keys(e.settings.filters).length > 0 ? (c(), O("div", Qa, [
3082
- x(f(hn), {
3106
+ ), (u, w) => Object.keys(e.settings.filters).length > 0 ? (p(), x("div", Ya, [
3107
+ O(m(hn), {
3083
3108
  model: a,
3084
3109
  inline: "",
3085
3110
  class: "form-editor"
3086
3111
  }, {
3087
3112
  default: E(() => [
3088
- (c(!0), O(P, null, q(r.value, (_) => (c(), S(f(ot), null, {
3113
+ (p(!0), x(P, null, q(r.value, (_) => (p(), S(m(ot), null, {
3089
3114
  default: E(() => [
3090
- _.type === "boolean" ? (c(), S(f(jt), {
3115
+ _.type === "boolean" ? (p(), S(m(jt), {
3091
3116
  key: 0,
3092
3117
  modelValue: a[_.code],
3093
- "onUpdate:modelValue": (k) => a[_.code] = k,
3118
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3094
3119
  filterable: "",
3095
3120
  clearable: "",
3096
3121
  placeholder: `是否${_.name}`,
@@ -3098,20 +3123,20 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3098
3123
  onChange: g
3099
3124
  }, {
3100
3125
  default: E(() => [
3101
- x(f(Ke), {
3126
+ O(m(Ke), {
3102
3127
  value: !0,
3103
3128
  label: `已${_.name}`
3104
3129
  }, null, 8, ["label"]),
3105
- x(f(Ke), {
3130
+ O(m(Ke), {
3106
3131
  value: !1,
3107
3132
  label: `未${_.name}`
3108
3133
  }, null, 8, ["label"])
3109
3134
  ]),
3110
3135
  _: 2
3111
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (c(), S(f(jt), {
3136
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "select" ? (p(), S(m(jt), {
3112
3137
  key: 1,
3113
3138
  modelValue: a[_.code],
3114
- "onUpdate:modelValue": (k) => a[_.code] = k,
3139
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3115
3140
  filterable: "",
3116
3141
  clearable: "",
3117
3142
  remote: "",
@@ -3123,23 +3148,23 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3123
3148
  "collapse-tags": "",
3124
3149
  class: he(_.multiple ? "tags-selects-input" : ""),
3125
3150
  "multiple-limit": _.multipleLimit ? _.multipleLimit : 0,
3126
- "remote-method": u(_),
3151
+ "remote-method": c(_),
3127
3152
  "value-on-clear": null,
3128
3153
  onChange: g
3129
3154
  }, {
3130
3155
  default: E(() => [
3131
- (c(!0), O(P, null, q(i[_.code], (k) => (c(), S(f(Ke), {
3132
- key: k.code,
3133
- label: k.name,
3134
- value: k.code,
3135
- title: k.name
3156
+ (p(!0), x(P, null, q(i[_.code], (A) => (p(), S(m(Ke), {
3157
+ key: A.code,
3158
+ label: A.name,
3159
+ value: A.code,
3160
+ title: A.name
3136
3161
  }, null, 8, ["label", "value", "title"]))), 128))
3137
3162
  ]),
3138
3163
  _: 2
3139
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (c(), S(f(us), {
3164
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : _.type === "selectV2" ? (p(), S(m(us), {
3140
3165
  key: 2,
3141
3166
  modelValue: a[_.code],
3142
- "onUpdate:modelValue": (k) => a[_.code] = k,
3167
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3143
3168
  filterable: "",
3144
3169
  options: i[_.code] ? i[_.code] : [],
3145
3170
  props: { label: "name", value: "code" },
@@ -3148,20 +3173,20 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3148
3173
  clearable: "",
3149
3174
  "value-on-clear": null,
3150
3175
  onChange: g
3151
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (c(), S(Ia, {
3176
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : _.type === "sorters" ? (p(), S(Ua, {
3152
3177
  key: 3,
3153
3178
  value: a[_.code],
3154
3179
  sorters: _,
3155
- onUpdateSorters: w
3156
- }, null, 8, ["value", "sorters"])) : _.type === "range" ? (c(), S(Wa, {
3180
+ onUpdateSorters: b
3181
+ }, null, 8, ["value", "sorters"])) : _.type === "range" ? (p(), S(Ja, {
3157
3182
  key: 4,
3158
3183
  value: a[_.code],
3159
3184
  ranges: _,
3160
- onUpdateRanges: A
3161
- }, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (c(), S(f(cs), {
3185
+ onUpdateRanges: k
3186
+ }, null, 8, ["value", "ranges"])) : _.type === "tree-select" ? (p(), S(m(cs), {
3162
3187
  key: 5,
3163
3188
  modelValue: a[_.code],
3164
- "onUpdate:modelValue": (k) => a[_.code] = k,
3189
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3165
3190
  placeholder: _.name,
3166
3191
  data: i[_.code],
3167
3192
  props: n,
@@ -3178,39 +3203,39 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3178
3203
  filterable: "",
3179
3204
  "collapse-tags": "",
3180
3205
  "multiple-limit": _.multipleLimit ? _.multipleLimit : 0,
3181
- "remote-method": u(_),
3206
+ "remote-method": c(_),
3182
3207
  onCheck: g,
3183
3208
  onChange: g
3184
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : _.type === "date" ? (c(), S(f(Xe), {
3209
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "multiple", "check-strictly", "multiple-limit", "remote-method"])) : _.type === "date" ? (p(), S(m(Xe), {
3185
3210
  key: 6,
3186
3211
  modelValue: a[_.code],
3187
- "onUpdate:modelValue": (k) => a[_.code] = k,
3212
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3188
3213
  type: "date",
3189
3214
  format: "YYYY-MM-DD",
3190
3215
  "value-format": "YYYY-MM-DD",
3191
3216
  placeholder: _.name
3192
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime" ? (c(), S(f(Xe), {
3217
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime" ? (p(), S(m(Xe), {
3193
3218
  key: 7,
3194
3219
  modelValue: a[_.code],
3195
- "onUpdate:modelValue": (k) => a[_.code] = k,
3220
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3196
3221
  type: "datetime",
3197
3222
  format: "YYYY-MM-DD HH:mm:ss",
3198
3223
  "value-format": "YYYY-MM-DD HH:mm:ss",
3199
3224
  placeholder: _.name
3200
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (c(), S(f(Xe), {
3225
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _.type === "datetime-range" ? (p(), S(m(Xe), {
3201
3226
  key: 8,
3202
3227
  modelValue: a[_.code],
3203
- "onUpdate:modelValue": (k) => a[_.code] = k,
3228
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3204
3229
  type: _.dateType,
3205
3230
  format: _.format,
3206
3231
  "value-format": _.format,
3207
3232
  "start-placeholder": _.name,
3208
3233
  "end-placeholder": _.name,
3209
3234
  placeholder: _.name
3210
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (c(), S(f(ds), {
3235
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (p(), S(m(ds), {
3211
3236
  key: 9,
3212
3237
  modelValue: a[_.code],
3213
- "onUpdate:modelValue": (k) => a[_.code] = k,
3238
+ "onUpdate:modelValue": (A) => a[_.code] = A,
3214
3239
  modelModifiers: { trim: !0 },
3215
3240
  placeholder: _.name,
3216
3241
  type: _.type,
@@ -3219,9 +3244,9 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3219
3244
  ]),
3220
3245
  _: 2
3221
3246
  }, 1024))), 256)),
3222
- r.value.length > 0 ? (c(), S(f(ot), { key: 0 }, {
3247
+ r.value.length > 0 ? (p(), S(m(ot), { key: 0 }, {
3223
3248
  default: E(() => [
3224
- x(f(ne), {
3249
+ O(m(ne), {
3225
3250
  type: "primary",
3226
3251
  onClick: g
3227
3252
  }, {
@@ -3230,7 +3255,7 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3230
3255
  ]),
3231
3256
  _: 1
3232
3257
  }),
3233
- x(f(ne), { onClick: $ }, {
3258
+ O(m(ne), { onClick: $ }, {
3234
3259
  default: E(() => [
3235
3260
  N(" 重置 ")
3236
3261
  ]),
@@ -3244,13 +3269,13 @@ const Fa = { class: "sorters-box" }, La = ["onClick"], Pa = { class: "sorters-la
3244
3269
  }, 8, ["model"])
3245
3270
  ])) : L("", !0);
3246
3271
  }
3247
- }, Ya = /* @__PURE__ */ V(Ja, [["__scopeId", "data-v-60252da5"]]);
3272
+ }, Ka = /* @__PURE__ */ V(Ga, [["__scopeId", "data-v-30b12d36"]]);
3248
3273
  /*! Element Plus Icons Vue v2.3.1 */
3249
- var Ga = /* @__PURE__ */ W({
3274
+ var Xa = /* @__PURE__ */ W({
3250
3275
  name: "ArrowDown",
3251
3276
  __name: "arrow-down",
3252
3277
  setup(t) {
3253
- return (e, n) => (c(), O("svg", {
3278
+ return (e, n) => (p(), x("svg", {
3254
3279
  xmlns: "http://www.w3.org/2000/svg",
3255
3280
  viewBox: "0 0 1024 1024"
3256
3281
  }, [
@@ -3260,11 +3285,11 @@ var Ga = /* @__PURE__ */ W({
3260
3285
  })
3261
3286
  ]));
3262
3287
  }
3263
- }), Ka = Ga, Xa = /* @__PURE__ */ W({
3288
+ }), Za = Xa, er = /* @__PURE__ */ W({
3264
3289
  name: "CircleCloseFilled",
3265
3290
  __name: "circle-close-filled",
3266
3291
  setup(t) {
3267
- return (e, n) => (c(), O("svg", {
3292
+ return (e, n) => (p(), x("svg", {
3268
3293
  xmlns: "http://www.w3.org/2000/svg",
3269
3294
  viewBox: "0 0 1024 1024"
3270
3295
  }, [
@@ -3274,11 +3299,11 @@ var Ga = /* @__PURE__ */ W({
3274
3299
  })
3275
3300
  ]));
3276
3301
  }
3277
- }), ml = Xa, Za = /* @__PURE__ */ W({
3302
+ }), gl = er, tr = /* @__PURE__ */ W({
3278
3303
  name: "Close",
3279
3304
  __name: "close",
3280
3305
  setup(t) {
3281
- return (e, n) => (c(), O("svg", {
3306
+ return (e, n) => (p(), x("svg", {
3282
3307
  xmlns: "http://www.w3.org/2000/svg",
3283
3308
  viewBox: "0 0 1024 1024"
3284
3309
  }, [
@@ -3288,11 +3313,11 @@ var Ga = /* @__PURE__ */ W({
3288
3313
  })
3289
3314
  ]));
3290
3315
  }
3291
- }), er = Za, tr = /* @__PURE__ */ W({
3316
+ }), nr = tr, sr = /* @__PURE__ */ W({
3292
3317
  name: "DArrowLeft",
3293
3318
  __name: "d-arrow-left",
3294
3319
  setup(t) {
3295
- return (e, n) => (c(), O("svg", {
3320
+ return (e, n) => (p(), x("svg", {
3296
3321
  xmlns: "http://www.w3.org/2000/svg",
3297
3322
  viewBox: "0 0 1024 1024"
3298
3323
  }, [
@@ -3302,11 +3327,11 @@ var Ga = /* @__PURE__ */ W({
3302
3327
  })
3303
3328
  ]));
3304
3329
  }
3305
- }), Xt = tr, nr = /* @__PURE__ */ W({
3330
+ }), Xt = sr, or = /* @__PURE__ */ W({
3306
3331
  name: "DArrowRight",
3307
3332
  __name: "d-arrow-right",
3308
3333
  setup(t) {
3309
- return (e, n) => (c(), O("svg", {
3334
+ return (e, n) => (p(), x("svg", {
3310
3335
  xmlns: "http://www.w3.org/2000/svg",
3311
3336
  viewBox: "0 0 1024 1024"
3312
3337
  }, [
@@ -3316,11 +3341,11 @@ var Ga = /* @__PURE__ */ W({
3316
3341
  })
3317
3342
  ]));
3318
3343
  }
3319
- }), sr = nr, or = /* @__PURE__ */ W({
3344
+ }), ar = or, rr = /* @__PURE__ */ W({
3320
3345
  name: "Delete",
3321
3346
  __name: "delete",
3322
3347
  setup(t) {
3323
- return (e, n) => (c(), O("svg", {
3348
+ return (e, n) => (p(), x("svg", {
3324
3349
  xmlns: "http://www.w3.org/2000/svg",
3325
3350
  viewBox: "0 0 1024 1024"
3326
3351
  }, [
@@ -3330,11 +3355,11 @@ var Ga = /* @__PURE__ */ W({
3330
3355
  })
3331
3356
  ]));
3332
3357
  }
3333
- }), hl = or, ar = /* @__PURE__ */ W({
3358
+ }), yl = rr, ir = /* @__PURE__ */ W({
3334
3359
  name: "Document",
3335
3360
  __name: "document",
3336
3361
  setup(t) {
3337
- return (e, n) => (c(), O("svg", {
3362
+ return (e, n) => (p(), x("svg", {
3338
3363
  xmlns: "http://www.w3.org/2000/svg",
3339
3364
  viewBox: "0 0 1024 1024"
3340
3365
  }, [
@@ -3344,11 +3369,11 @@ var Ga = /* @__PURE__ */ W({
3344
3369
  })
3345
3370
  ]));
3346
3371
  }
3347
- }), gl = ar, rr = /* @__PURE__ */ W({
3372
+ }), _l = ir, lr = /* @__PURE__ */ W({
3348
3373
  name: "Download",
3349
3374
  __name: "download",
3350
3375
  setup(t) {
3351
- return (e, n) => (c(), O("svg", {
3376
+ return (e, n) => (p(), x("svg", {
3352
3377
  xmlns: "http://www.w3.org/2000/svg",
3353
3378
  viewBox: "0 0 1024 1024"
3354
3379
  }, [
@@ -3358,11 +3383,11 @@ var Ga = /* @__PURE__ */ W({
3358
3383
  })
3359
3384
  ]));
3360
3385
  }
3361
- }), yl = rr, ir = /* @__PURE__ */ W({
3386
+ }), vl = lr, ur = /* @__PURE__ */ W({
3362
3387
  name: "Grid",
3363
3388
  __name: "grid",
3364
3389
  setup(t) {
3365
- return (e, n) => (c(), O("svg", {
3390
+ return (e, n) => (p(), x("svg", {
3366
3391
  xmlns: "http://www.w3.org/2000/svg",
3367
3392
  viewBox: "0 0 1024 1024"
3368
3393
  }, [
@@ -3372,11 +3397,11 @@ var Ga = /* @__PURE__ */ W({
3372
3397
  })
3373
3398
  ]));
3374
3399
  }
3375
- }), lr = ir, ur = /* @__PURE__ */ W({
3400
+ }), cr = ur, dr = /* @__PURE__ */ W({
3376
3401
  name: "Loading",
3377
3402
  __name: "loading",
3378
3403
  setup(t) {
3379
- return (e, n) => (c(), O("svg", {
3404
+ return (e, n) => (p(), x("svg", {
3380
3405
  xmlns: "http://www.w3.org/2000/svg",
3381
3406
  viewBox: "0 0 1024 1024"
3382
3407
  }, [
@@ -3386,11 +3411,11 @@ var Ga = /* @__PURE__ */ W({
3386
3411
  })
3387
3412
  ]));
3388
3413
  }
3389
- }), _l = ur, cr = /* @__PURE__ */ W({
3414
+ }), bl = dr, pr = /* @__PURE__ */ W({
3390
3415
  name: "Minus",
3391
3416
  __name: "minus",
3392
3417
  setup(t) {
3393
- return (e, n) => (c(), O("svg", {
3418
+ return (e, n) => (p(), x("svg", {
3394
3419
  xmlns: "http://www.w3.org/2000/svg",
3395
3420
  viewBox: "0 0 1024 1024"
3396
3421
  }, [
@@ -3400,11 +3425,11 @@ var Ga = /* @__PURE__ */ W({
3400
3425
  })
3401
3426
  ]));
3402
3427
  }
3403
- }), dr = cr, pr = /* @__PURE__ */ W({
3428
+ }), fr = pr, mr = /* @__PURE__ */ W({
3404
3429
  name: "Operation",
3405
3430
  __name: "operation",
3406
3431
  setup(t) {
3407
- return (e, n) => (c(), O("svg", {
3432
+ return (e, n) => (p(), x("svg", {
3408
3433
  xmlns: "http://www.w3.org/2000/svg",
3409
3434
  viewBox: "0 0 1024 1024"
3410
3435
  }, [
@@ -3414,11 +3439,11 @@ var Ga = /* @__PURE__ */ W({
3414
3439
  })
3415
3440
  ]));
3416
3441
  }
3417
- }), fr = pr, mr = /* @__PURE__ */ W({
3442
+ }), hr = mr, gr = /* @__PURE__ */ W({
3418
3443
  name: "Plus",
3419
3444
  __name: "plus",
3420
3445
  setup(t) {
3421
- return (e, n) => (c(), O("svg", {
3446
+ return (e, n) => (p(), x("svg", {
3422
3447
  xmlns: "http://www.w3.org/2000/svg",
3423
3448
  viewBox: "0 0 1024 1024"
3424
3449
  }, [
@@ -3428,11 +3453,11 @@ var Ga = /* @__PURE__ */ W({
3428
3453
  })
3429
3454
  ]));
3430
3455
  }
3431
- }), vl = mr, hr = /* @__PURE__ */ W({
3456
+ }), wl = gr, yr = /* @__PURE__ */ W({
3432
3457
  name: "PriceTag",
3433
3458
  __name: "price-tag",
3434
3459
  setup(t) {
3435
- return (e, n) => (c(), O("svg", {
3460
+ return (e, n) => (p(), x("svg", {
3436
3461
  xmlns: "http://www.w3.org/2000/svg",
3437
3462
  viewBox: "0 0 1024 1024"
3438
3463
  }, [
@@ -3446,11 +3471,11 @@ var Ga = /* @__PURE__ */ W({
3446
3471
  })
3447
3472
  ]));
3448
3473
  }
3449
- }), Zt = hr, gr = /* @__PURE__ */ W({
3474
+ }), Zt = yr, _r = /* @__PURE__ */ W({
3450
3475
  name: "QuestionFilled",
3451
3476
  __name: "question-filled",
3452
3477
  setup(t) {
3453
- return (e, n) => (c(), O("svg", {
3478
+ return (e, n) => (p(), x("svg", {
3454
3479
  xmlns: "http://www.w3.org/2000/svg",
3455
3480
  viewBox: "0 0 1024 1024"
3456
3481
  }, [
@@ -3460,11 +3485,11 @@ var Ga = /* @__PURE__ */ W({
3460
3485
  })
3461
3486
  ]));
3462
3487
  }
3463
- }), bl = gr, yr = /* @__PURE__ */ W({
3488
+ }), El = _r, vr = /* @__PURE__ */ W({
3464
3489
  name: "Setting",
3465
3490
  __name: "setting",
3466
3491
  setup(t) {
3467
- return (e, n) => (c(), O("svg", {
3492
+ return (e, n) => (p(), x("svg", {
3468
3493
  xmlns: "http://www.w3.org/2000/svg",
3469
3494
  viewBox: "0 0 1024 1024"
3470
3495
  }, [
@@ -3474,11 +3499,11 @@ var Ga = /* @__PURE__ */ W({
3474
3499
  })
3475
3500
  ]));
3476
3501
  }
3477
- }), _r = yr, vr = /* @__PURE__ */ W({
3502
+ }), br = vr, wr = /* @__PURE__ */ W({
3478
3503
  name: "SuccessFilled",
3479
3504
  __name: "success-filled",
3480
3505
  setup(t) {
3481
- return (e, n) => (c(), O("svg", {
3506
+ return (e, n) => (p(), x("svg", {
3482
3507
  xmlns: "http://www.w3.org/2000/svg",
3483
3508
  viewBox: "0 0 1024 1024"
3484
3509
  }, [
@@ -3488,11 +3513,11 @@ var Ga = /* @__PURE__ */ W({
3488
3513
  })
3489
3514
  ]));
3490
3515
  }
3491
- }), wl = vr, br = /* @__PURE__ */ W({
3516
+ }), $l = wr, Er = /* @__PURE__ */ W({
3492
3517
  name: "View",
3493
3518
  __name: "view",
3494
3519
  setup(t) {
3495
- return (e, n) => (c(), O("svg", {
3520
+ return (e, n) => (p(), x("svg", {
3496
3521
  xmlns: "http://www.w3.org/2000/svg",
3497
3522
  viewBox: "0 0 1024 1024"
3498
3523
  }, [
@@ -3502,8 +3527,8 @@ var Ga = /* @__PURE__ */ W({
3502
3527
  })
3503
3528
  ]));
3504
3529
  }
3505
- }), El = br;
3506
- const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class: "data-page-toolbar" }, Sr = {
3530
+ }), Sl = Er;
3531
+ const $r = { class: "data-page-title" }, Sr = { class: "title" }, xr = { class: "data-page-toolbar" }, Or = {
3507
3532
  __name: "DataTableHeader",
3508
3533
  props: {
3509
3534
  settings: {
@@ -3519,52 +3544,52 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3519
3544
  s.path,
3520
3545
  e.settings.filters,
3521
3546
  e.settings.filterHook
3522
- )(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), p = I(() => e.settings.displayMode.normalMode);
3547
+ )(), a = Re(), i = I(() => r.validFilters.isDeleted || !1), d = I(() => e.settings.displayMode.normalMode);
3523
3548
  function h() {
3524
3549
  r.$reset({ isDeleted: !i.value });
3525
3550
  }
3526
- function d() {
3527
- const w = `table-view-${s.path}-${e.settings.code}`, A = localStorage.getItem(w) ? localStorage.getItem(w) : p.value;
3528
- o.change(A);
3529
- }
3530
- function u(w) {
3531
- o.change(w);
3532
- const A = `table-view-${s.path}-${e.settings.code}`;
3533
- localStorage.setItem(A, o.mode);
3534
- }
3535
- return dn(d), (w, A) => (c(), O(P, null, [
3536
- C("div", wr, [
3537
- C("div", Er, B(i.value ? `已删除的${f(n)}` : f(n)), 1),
3538
- C("div", $r, [
3539
- f(a).operations ? (c(), S(f(pe), {
3551
+ function l() {
3552
+ const b = `table-view-${s.path}-${e.settings.code}`, k = localStorage.getItem(b) ? localStorage.getItem(b) : d.value;
3553
+ o.change(k);
3554
+ }
3555
+ function c(b) {
3556
+ o.change(b);
3557
+ const k = `table-view-${s.path}-${e.settings.code}`;
3558
+ localStorage.setItem(k, o.mode);
3559
+ }
3560
+ return dn(l), (b, k) => (p(), x(P, null, [
3561
+ C("div", $r, [
3562
+ C("div", Sr, j(i.value ? `已删除的${m(n)}` : m(n)), 1),
3563
+ C("div", xr, [
3564
+ m(a).operations ? (p(), S(m(pe), {
3540
3565
  key: 0,
3541
3566
  class: "button-groups"
3542
3567
  }, {
3543
3568
  default: E(() => [
3544
- J(w.$slots, "operations", {}, void 0, !0)
3569
+ J(b.$slots, "operations", {}, void 0, !0)
3545
3570
  ]),
3546
3571
  _: 3
3547
3572
  })) : L("", !0),
3548
- x(f(pe), { class: "button-groups" }, {
3573
+ O(m(pe), { class: "button-groups" }, {
3549
3574
  default: E(() => [
3550
- J(w.$slots, "tools", {}, void 0, !0)
3575
+ J(b.$slots, "tools", {}, void 0, !0)
3551
3576
  ]),
3552
3577
  _: 3
3553
3578
  }),
3554
- x(f(at), {
3579
+ O(m(at), {
3555
3580
  trigger: "click",
3556
- onCommand: u
3581
+ onCommand: c
3557
3582
  }, {
3558
3583
  dropdown: E(() => [
3559
- x(f(rt), null, {
3584
+ O(m(rt), null, {
3560
3585
  default: E(() => [
3561
- x(f(ue), { command: "list" }, {
3586
+ O(m(ue), { command: "list" }, {
3562
3587
  default: E(() => [
3563
3588
  N(" 列表 ")
3564
3589
  ]),
3565
3590
  _: 1
3566
3591
  }),
3567
- x(f(ue), { command: "grid" }, {
3592
+ O(m(ue), { command: "grid" }, {
3568
3593
  default: E(() => [
3569
3594
  N(" 网格 ")
3570
3595
  ]),
@@ -3575,17 +3600,17 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3575
3600
  })
3576
3601
  ]),
3577
3602
  default: E(() => [
3578
- x(f(ne), null, {
3603
+ O(m(ne), null, {
3579
3604
  default: E(() => [
3580
- x(f(G), null, {
3605
+ O(m(G), null, {
3581
3606
  default: E(() => [
3582
- x(f(lr))
3607
+ O(m(cr))
3583
3608
  ]),
3584
3609
  _: 1
3585
3610
  }),
3586
- x(f(G), { class: "el-icon--right" }, {
3611
+ O(m(G), { class: "el-icon--right" }, {
3587
3612
  default: E(() => [
3588
- x(f(Ka))
3613
+ O(m(Za))
3589
3614
  ]),
3590
3615
  _: 1
3591
3616
  })
@@ -3595,19 +3620,19 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3595
3620
  ]),
3596
3621
  _: 1
3597
3622
  }),
3598
- e.settings.filters.isDeleted ? (c(), S(f(at), {
3623
+ e.settings.filters.isDeleted ? (p(), S(m(at), {
3599
3624
  key: 1,
3600
3625
  trigger: "click"
3601
3626
  }, {
3602
3627
  dropdown: E(() => [
3603
- x(f(rt), null, {
3628
+ O(m(rt), null, {
3604
3629
  default: E(() => [
3605
- x(f(ue), {
3630
+ O(m(ue), {
3606
3631
  command: "deleted",
3607
3632
  onClick: h
3608
3633
  }, {
3609
3634
  default: E(() => [
3610
- C("div", null, B(i.value ? "未删除" : "已删除"), 1)
3635
+ C("div", null, j(i.value ? "未删除" : "已删除"), 1)
3611
3636
  ]),
3612
3637
  _: 1
3613
3638
  })
@@ -3616,11 +3641,11 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3616
3641
  })
3617
3642
  ]),
3618
3643
  default: E(() => [
3619
- x(f(ne), null, {
3644
+ O(m(ne), null, {
3620
3645
  default: E(() => [
3621
- x(f(G), null, {
3646
+ O(m(G), null, {
3622
3647
  default: E(() => [
3623
- x(f(_r))
3648
+ O(m(br))
3624
3649
  ]),
3625
3650
  _: 1
3626
3651
  })
@@ -3632,15 +3657,15 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3632
3657
  })) : L("", !0)
3633
3658
  ])
3634
3659
  ]),
3635
- x(Ya, {
3660
+ O(Ka, {
3636
3661
  settings: e.settings
3637
3662
  }, null, 8, ["settings"])
3638
3663
  ], 64));
3639
3664
  }
3640
- }, Or = /* @__PURE__ */ V(Sr, [["__scopeId", "data-v-898f42af"]]), xr = { class: "kst-field-row-id" }, kr = { key: 0 }, Ar = {
3665
+ }, kr = /* @__PURE__ */ V(Or, [["__scopeId", "data-v-898f42af"]]), Ar = { class: "kst-field-row-id" }, Cr = { key: 0 }, Dr = {
3641
3666
  key: 1,
3642
3667
  class: "mono-data"
3643
- }, Cr = { key: 1 }, Dr = {
3668
+ }, Rr = { key: 1 }, Tr = {
3644
3669
  __name: "FieldDisplay",
3645
3670
  props: {
3646
3671
  field: {
@@ -3661,43 +3686,43 @@ const wr = { class: "data-page-title" }, Er = { class: "title" }, $r = { class:
3661
3686
  function i() {
3662
3687
  return s.field.isRouter(s.row, Q(n));
3663
3688
  }
3664
- return (p, h) => {
3665
- const d = qe("RouterLink");
3666
- return c(), O("div", xr, [
3667
- r.value ? (c(), O("span", kr, [
3668
- i() ? (c(), S(d, {
3689
+ return (d, h) => {
3690
+ const l = qe("RouterLink");
3691
+ return p(), x("div", Ar, [
3692
+ r.value ? (p(), x("span", Cr, [
3693
+ i() ? (p(), S(l, {
3669
3694
  key: 0,
3670
3695
  class: "bld-link mono-data",
3671
3696
  to: a.value
3672
3697
  }, {
3673
3698
  default: E(() => [
3674
- f(e).name ? (c(), O(P, { key: 0 }, [
3675
- J(p.$slots, "name", {}, void 0, !0),
3676
- N("(#" + B(r.value) + ") ", 1)
3677
- ], 64)) : (c(), O(P, { key: 1 }, [
3678
- N(" #" + B(r.value), 1)
3699
+ m(e).name ? (p(), x(P, { key: 0 }, [
3700
+ J(d.$slots, "name", {}, void 0, !0),
3701
+ N("(#" + j(r.value) + ") ", 1)
3702
+ ], 64)) : (p(), x(P, { key: 1 }, [
3703
+ N(" #" + j(r.value), 1)
3679
3704
  ], 64))
3680
3705
  ]),
3681
3706
  _: 3
3682
- }, 8, ["to"])) : (c(), O("span", Ar, [
3683
- f(e).name ? (c(), O(P, { key: 0 }, [
3684
- J(p.$slots, "name", {}, void 0, !0),
3685
- N("(" + B(r.value) + ") ", 1)
3686
- ], 64)) : (c(), O(P, { key: 1 }, [
3687
- N(B(r.value), 1)
3707
+ }, 8, ["to"])) : (p(), x("span", Dr, [
3708
+ m(e).name ? (p(), x(P, { key: 0 }, [
3709
+ J(d.$slots, "name", {}, void 0, !0),
3710
+ N("(" + j(r.value) + ") ", 1)
3711
+ ], 64)) : (p(), x(P, { key: 1 }, [
3712
+ N(j(r.value), 1)
3688
3713
  ], 64))
3689
3714
  ]))
3690
- ])) : (c(), O("span", Cr, " NO ID "))
3715
+ ])) : (p(), x("span", Rr, " NO ID "))
3691
3716
  ]);
3692
3717
  };
3693
3718
  }
3694
- }, Rr = /* @__PURE__ */ V(Dr, [["__scopeId", "data-v-00021e61"]]);
3695
- function Tr(t) {
3719
+ }, Fr = /* @__PURE__ */ V(Tr, [["__scopeId", "data-v-00021e61"]]);
3720
+ function Lr(t) {
3696
3721
  ke(t);
3697
3722
  }
3698
- const Fr = {
3699
- show: Tr
3700
- }, en = 10, Ot = yt("route-history", {
3723
+ const Pr = {
3724
+ show: Lr
3725
+ }, en = 10, xt = yt("route-history", {
3701
3726
  state: () => ({
3702
3727
  root: null,
3703
3728
  history: []
@@ -3723,7 +3748,7 @@ const Fr = {
3723
3748
  n && (n.title = e);
3724
3749
  }
3725
3750
  }
3726
- }), xt = {
3751
+ }), Ot = {
3727
3752
  __name: "DomainEdit",
3728
3753
  props: {
3729
3754
  row: {
@@ -3744,64 +3769,64 @@ const Fr = {
3744
3769
  },
3745
3770
  setup(t) {
3746
3771
  var y;
3747
- const e = Ot(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}), p = D(!1), h = I(() => {
3748
- var m, g;
3749
- return a.row.deletedAt ? !1 : (m = a.operations) != null && m.updatable ? !0 : !!((g = a.operations) != null && g.removable);
3750
- }), d = D((y = a.operations) == null ? void 0 : y.removable);
3751
- async function u() {
3752
- const m = a.settings.formHook, g = a.settings.btnVisible, $ = a.settings.rest, { data: l } = await $.getOne({
3772
+ const e = xt(), n = ce(), s = U(), o = fe(), r = Q(s), a = t, i = D({}), d = D(!1), h = I(() => {
3773
+ var f, g;
3774
+ return a.row.deletedAt ? !1 : (f = a.operations) != null && f.updatable ? !0 : !!((g = a.operations) != null && g.removable);
3775
+ }), l = D((y = a.operations) == null ? void 0 : y.removable);
3776
+ async function c() {
3777
+ const f = a.settings.formHook, g = a.settings.btnVisible, $ = a.settings.rest, { data: u } = await $.getOne({
3753
3778
  ...a.row,
3754
3779
  ...r
3755
3780
  });
3756
- i.value = l, m.setupUpdate && (i.value = m.setupUpdate(i.value, r)), g.showRemove && (d.value = g.showRemove(i.value)), p.value = !0;
3757
- }
3758
- function w(m, g) {
3759
- const $ = a.settings.formHook, l = a.settings.rest;
3760
- Object.keys(r).forEach((b) => {
3761
- m[b] = r[b];
3762
- }), $ != null && $.preUpdateSubmit && (m = $.preUpdateSubmit(m)), l.update(m).then(() => {
3763
- p.value = !1, n.fireUpdated();
3781
+ i.value = u, f.setupUpdate && (i.value = f.setupUpdate(i.value, r)), g.showRemove && (l.value = g.showRemove(i.value)), d.value = !0;
3782
+ }
3783
+ function b(f, g) {
3784
+ const $ = a.settings.formHook, u = a.settings.rest;
3785
+ Object.keys(r).forEach((w) => {
3786
+ f[w] = r[w];
3787
+ }), $ != null && $.preUpdateSubmit && (f = $.preUpdateSubmit(f)), u.update(f).then(() => {
3788
+ d.value = !1, n.fireUpdated();
3764
3789
  }).catch(async () => {
3765
3790
  g();
3766
3791
  });
3767
3792
  }
3768
- function A(m, g) {
3769
- a.settings.rest.remove(m).then(() => {
3770
- Fr.show({ type: "success", message: "删除成功" }), p.value = !1, a.isDetail && e.history.forEach((l) => {
3771
- s.fullPath.includes(l.path) && (e.remove(l.code), o.back());
3793
+ function k(f, g) {
3794
+ a.settings.rest.remove(f).then(() => {
3795
+ Pr.show({ type: "success", message: "删除成功" }), d.value = !1, a.isDetail && e.history.forEach((u) => {
3796
+ s.fullPath.includes(u.path) && (e.remove(u.code), o.back());
3772
3797
  }), n.fireRemoved();
3773
3798
  }).catch(() => {
3774
3799
  g();
3775
3800
  });
3776
3801
  }
3777
- return (m, g) => h.value ? (c(), S(f(ne), {
3802
+ return (f, g) => h.value ? (p(), S(m(ne), {
3778
3803
  key: 0,
3779
3804
  type: "primary",
3780
- onClick: u
3805
+ onClick: c
3781
3806
  }, {
3782
3807
  default: E(() => [
3783
3808
  N(" 编辑 "),
3784
- p.value ? (c(), S(St, {
3809
+ d.value ? (p(), S(St, {
3785
3810
  key: 0,
3786
- modelValue: p.value,
3787
- "onUpdate:modelValue": g[0] || (g[0] = ($) => p.value = $),
3811
+ modelValue: d.value,
3812
+ "onUpdate:modelValue": g[0] || (g[0] = ($) => d.value = $),
3788
3813
  config: a.settings,
3789
3814
  data: i.value,
3790
- removable: d.value,
3791
- onSubmit: w,
3792
- onRemove: A
3815
+ removable: l.value,
3816
+ onSubmit: b,
3817
+ onRemove: k
3793
3818
  }, null, 8, ["modelValue", "config", "data", "removable"])) : L("", !0)
3794
3819
  ]),
3795
3820
  _: 1
3796
3821
  })) : L("", !0);
3797
3822
  }
3798
- }, Lr = (t) => (pn("data-v-0941be48"), t = t(), fn(), t), Pr = { class: "data-grid-wrapper" }, jr = {
3823
+ }, jr = (t) => (pn("data-v-0941be48"), t = t(), fn(), t), Br = { class: "data-grid-wrapper" }, Vr = {
3799
3824
  key: 0,
3800
3825
  class: "cover"
3801
- }, Br = /* @__PURE__ */ Lr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Vr = { class: "header" }, Nr = { key: 0 }, Ir = { class: "key" }, Mr = { class: "value" }, Ur = {
3826
+ }, Nr = /* @__PURE__ */ jr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Ir = { class: "header" }, Mr = { key: 0 }, Ur = { class: "key" }, zr = { class: "value" }, Hr = {
3802
3827
  key: 1,
3803
3828
  class: "footer tools"
3804
- }, zr = {
3829
+ }, qr = {
3805
3830
  __name: "DataGrid",
3806
3831
  props: {
3807
3832
  settings: {
@@ -3822,75 +3847,75 @@ const Fr = {
3822
3847
  e.path,
3823
3848
  o.settings.filters,
3824
3849
  o.settings.filterHook
3825
- )(), { filters: a } = ge(r), i = D(a.value), p = te([]), h = te(null), d = D(!1);
3826
- async function u() {
3850
+ )(), { filters: a } = ge(r), i = D(a.value), d = te([]), h = te(null), l = D(!1);
3851
+ async function c() {
3827
3852
  return await o.settings.showEdit(n, "grid");
3828
3853
  }
3829
3854
  gt(() => {
3830
- u().then(($) => {
3831
- d.value = $;
3855
+ c().then(($) => {
3856
+ l.value = $;
3832
3857
  });
3833
3858
  });
3834
- const w = I(() => {
3835
- var $, l;
3836
- return !!(($ = o.operations) != null && $.updatable && d || (l = o.operations) != null && l.removable && d);
3837
- }), A = I(() => o.settings.displayMode.gridWidth), y = I(() => o.settings.displayMode.heightAuto);
3838
- function m() {
3839
- h.value = o.settings.fields.find(($) => $.code === "id"), p.value = o.settings.fields.filter(($) => $.code === o.settings.coverField || $.code === o.settings.nameField || $.code === "id" ? !1 : $.showInList(n, i.value));
3859
+ const b = I(() => {
3860
+ var $, u;
3861
+ return !!(($ = o.operations) != null && $.updatable && l || (u = o.operations) != null && u.removable && l);
3862
+ }), k = I(() => o.settings.displayMode.gridWidth), y = I(() => o.settings.displayMode.heightAuto);
3863
+ function f() {
3864
+ h.value = o.settings.fields.find(($) => $.code === "id"), d.value = o.settings.fields.filter(($) => $.code === o.settings.coverField || $.code === o.settings.nameField || $.code === "id" ? !1 : $.showInList(n, i.value));
3840
3865
  }
3841
3866
  function g($) {
3842
3867
  return o.settings.nameField ? $[o.settings.nameField] : $.name ? $.name : `${$.id}`;
3843
3868
  }
3844
- return j(a, ($) => {
3845
- i.value = $, m();
3846
- }), m(), ($, l) => (c(), O("div", Pr, [
3847
- t.data.length === 0 ? (c(), S(f(ps), {
3869
+ return B(a, ($) => {
3870
+ i.value = $, f();
3871
+ }), f(), ($, u) => (p(), x("div", Br, [
3872
+ t.data.length === 0 ? (p(), S(m(ps), {
3848
3873
  key: 0,
3849
3874
  description: "暂无数据"
3850
- })) : (c(), S(f(xe), {
3875
+ })) : (p(), S(m(Oe), {
3851
3876
  key: 1,
3852
3877
  gutter: 20
3853
3878
  }, {
3854
3879
  default: E(() => [
3855
- (c(!0), O(P, null, q(t.data, (b) => (c(), S(f($e), {
3880
+ (p(!0), x(P, null, q(t.data, (w) => (p(), S(m($e), {
3856
3881
  style: { "margin-bottom": "20px" },
3857
- span: A.value ? A.value : 24,
3858
- xs: A.value ? {} : 24,
3859
- sm: A.value ? {} : 12,
3860
- md: A.value ? {} : 8,
3861
- lg: A.value ? {} : 6,
3862
- xl: A.value ? {} : 4
3882
+ span: k.value ? k.value : 24,
3883
+ xs: k.value ? {} : 24,
3884
+ sm: k.value ? {} : 12,
3885
+ md: k.value ? {} : 8,
3886
+ lg: k.value ? {} : 6,
3887
+ xl: k.value ? {} : 4
3863
3888
  }, {
3864
3889
  default: E(() => [
3865
- x(f(mn), {
3890
+ O(m(mn), {
3866
3891
  "body-style": { padding: "0px" },
3867
3892
  shadow: "hover"
3868
3893
  }, {
3869
3894
  default: E(() => [
3870
- f(s).cover || o.settings.coverField ? (c(), O("div", jr, [
3871
- f(s).cover ? J($.$slots, "cover", {
3895
+ m(s).cover || o.settings.coverField ? (p(), x("div", Vr, [
3896
+ m(s).cover ? J($.$slots, "cover", {
3872
3897
  key: 0,
3873
- row: b
3874
- }, void 0, !0) : (c(), S(f(gn), {
3898
+ row: w
3899
+ }, void 0, !0) : (p(), S(m(gn), {
3875
3900
  key: 1,
3876
- src: b[o.settings.coverField],
3901
+ src: w[o.settings.coverField],
3877
3902
  fit: "contain"
3878
3903
  }, {
3879
3904
  error: E(() => [
3880
- Br
3905
+ Nr
3881
3906
  ]),
3882
3907
  _: 2
3883
3908
  }, 1032, ["src"]))
3884
3909
  ])) : L("", !0),
3885
- C("div", Vr, [
3886
- x(Rr, {
3910
+ C("div", Ir, [
3911
+ O(Fr, {
3887
3912
  field: h.value,
3888
- row: b
3913
+ row: w
3889
3914
  }, De({ _: 2 }, [
3890
- b[o.settings.nameField] ? {
3915
+ w[o.settings.nameField] ? {
3891
3916
  name: "name",
3892
3917
  fn: E(() => [
3893
- N(B(g(b)), 1)
3918
+ N(j(g(w)), 1)
3894
3919
  ]),
3895
3920
  key: "0"
3896
3921
  } : void 0
@@ -3899,39 +3924,39 @@ const Fr = {
3899
3924
  C("div", {
3900
3925
  class: he(y.value ? "body heightAuto" : "body")
3901
3926
  }, [
3902
- f(s).body ? (c(), O("div", Nr, [
3903
- J($.$slots, "body", { row: b }, void 0, !0)
3904
- ])) : (c(!0), O(P, { key: 1 }, q(p.value, (_) => (c(), O("div", {
3927
+ m(s).body ? (p(), x("div", Mr, [
3928
+ J($.$slots, "body", { row: w }, void 0, !0)
3929
+ ])) : (p(!0), x(P, { key: 1 }, q(d.value, (_) => (p(), x("div", {
3905
3930
  key: _.code,
3906
3931
  class: "field mono-data"
3907
3932
  }, [
3908
- C("div", Ir, B(_.label) + " ", 1),
3909
- C("div", Mr, [
3910
- (c(), S(X(_.display), {
3933
+ C("div", Ur, j(_.label) + " ", 1),
3934
+ C("div", zr, [
3935
+ (p(), S(X(_.display), {
3911
3936
  field: _,
3912
- row: b,
3937
+ row: w,
3913
3938
  mode: "grid"
3914
3939
  }, null, 8, ["field", "row"]))
3915
3940
  ])
3916
3941
  ]))), 128))
3917
3942
  ], 2),
3918
- f(s).actions || w.value ? (c(), O("div", Ur, [
3919
- f(s).actions ? (c(), S(f(pe), {
3943
+ m(s).actions || b.value ? (p(), x("div", Hr, [
3944
+ m(s).actions ? (p(), S(m(pe), {
3920
3945
  key: 0,
3921
3946
  size: "small"
3922
3947
  }, {
3923
3948
  default: E(() => [
3924
- J($.$slots, "actions", { row: b }, void 0, !0)
3949
+ J($.$slots, "actions", { row: w }, void 0, !0)
3925
3950
  ]),
3926
3951
  _: 2
3927
3952
  }, 1024)) : L("", !0),
3928
- w.value ? (c(), S(f(pe), {
3953
+ b.value ? (p(), S(m(pe), {
3929
3954
  key: 1,
3930
3955
  size: "small"
3931
3956
  }, {
3932
3957
  default: E(() => [
3933
- x(xt, {
3934
- row: b,
3958
+ O(Ot, {
3959
+ row: w,
3935
3960
  settings: o.settings,
3936
3961
  operations: o.operations
3937
3962
  }, null, 8, ["row", "settings", "operations"])
@@ -3950,14 +3975,14 @@ const Fr = {
3950
3975
  }))
3951
3976
  ]));
3952
3977
  }
3953
- }, Hr = /* @__PURE__ */ V(zr, [["__scopeId", "data-v-0941be48"]]);
3954
- function qr(t, e) {
3978
+ }, Wr = /* @__PURE__ */ V(qr, [["__scopeId", "data-v-0941be48"]]);
3979
+ function Qr(t, e) {
3955
3980
  const n = t.fields.map((o) => o.code), s = Object.keys(e);
3956
3981
  n.forEach((o) => {
3957
3982
  s.includes(o) || console.error(`${t.code}.${o} : 与服务端数据不匹配`);
3958
3983
  });
3959
3984
  }
3960
- const Wr = {
3985
+ const Jr = {
3961
3986
  __name: "DataList",
3962
3987
  props: {
3963
3988
  settings: {
@@ -3988,42 +4013,42 @@ const Wr = {
3988
4013
  n.path,
3989
4014
  a.settings.filters,
3990
4015
  a.settings.filterHook
3991
- )(), { filters: p } = ge(i), h = D(p.value), d = te([]), u = D(!1);
3992
- async function w() {
4016
+ )(), { filters: d } = ge(i), h = D(d.value), l = te([]), c = D(!1);
4017
+ async function b() {
3993
4018
  return await a.settings.showEdit(s, "list");
3994
4019
  }
3995
4020
  gt(() => {
3996
- w().then((l) => {
3997
- u.value = l;
4021
+ b().then((u) => {
4022
+ c.value = u;
3998
4023
  });
3999
4024
  });
4000
- const A = I(() => {
4001
- var l, b;
4002
- return !!((l = a.operations) != null && l.updatable && u.value || (b = a.operations) != null && b.removable && u.value);
4025
+ const k = I(() => {
4026
+ var u, w;
4027
+ return !!((u = a.operations) != null && u.updatable && c.value || (w = a.operations) != null && w.removable && c.value);
4003
4028
  });
4004
- function y(l) {
4005
- o("sort-column", l);
4029
+ function y(u) {
4030
+ o("sort-column", u);
4006
4031
  }
4007
- function m(l) {
4008
- o("enable-item", l);
4032
+ function f(u) {
4033
+ o("enable-item", u);
4009
4034
  }
4010
4035
  function g() {
4011
- d.value = a.settings.fields.filter((l) => l.showInList(s, h.value));
4036
+ l.value = a.settings.fields.filter((u) => u.showInList(s, h.value));
4012
4037
  }
4013
- function $(l) {
4038
+ function $(u) {
4014
4039
  o("select-change", {
4015
4040
  routeQuery: s,
4016
- data: l
4041
+ data: u
4017
4042
  });
4018
4043
  }
4019
- return g(), j(
4044
+ return g(), B(
4020
4045
  () => a.data,
4021
4046
  () => {
4022
- a.data.length > 0 && qr(a.settings, a.data[0]);
4047
+ a.data.length > 0 && Qr(a.settings, a.data[0]);
4023
4048
  }
4024
- ), j(p, (l) => {
4025
- h.value = l, g();
4026
- }), (l, b) => (c(), S(f(fs), {
4049
+ ), B(d, (u) => {
4050
+ h.value = u, g();
4051
+ }), (u, w) => (p(), S(m(fs), {
4027
4052
  ref: "dataTable",
4028
4053
  class: "table mono-data",
4029
4054
  data: a.data,
@@ -4034,11 +4059,11 @@ const Wr = {
4034
4059
  onSortChange: y
4035
4060
  }, {
4036
4061
  default: E(() => [
4037
- x(f(je), {
4062
+ O(m(je), {
4038
4063
  type: "selection",
4039
4064
  width: "40"
4040
4065
  }),
4041
- (c(!0), O(P, null, q(d.value, (_) => (c(), S(f(je), {
4066
+ (p(!0), x(P, null, q(l.value, (_) => (p(), S(m(je), {
4042
4067
  key: _.code,
4043
4068
  label: _.label,
4044
4069
  width: _.width,
@@ -4048,54 +4073,54 @@ const Wr = {
4048
4073
  }, De({ _: 2 }, [
4049
4074
  _.type === "switch" ? {
4050
4075
  name: "default",
4051
- fn: E(({ row: k }) => [
4052
- (c(), S(X(_.display), {
4076
+ fn: E(({ row: A }) => [
4077
+ (p(), S(X(_.display), {
4053
4078
  field: _,
4054
- row: k,
4079
+ row: A,
4055
4080
  mode: "list",
4056
- onEnable: m
4081
+ onEnable: f
4057
4082
  }, null, 40, ["field", "row"]))
4058
4083
  ]),
4059
4084
  key: "0"
4060
4085
  } : {
4061
4086
  name: "default",
4062
- fn: E(({ row: k }) => [
4063
- (c(), S(X(_.display), {
4064
- key: k.updatedAt,
4087
+ fn: E(({ row: A }) => [
4088
+ (p(), S(X(_.display), {
4089
+ key: A.updatedAt,
4065
4090
  field: _,
4066
- row: k,
4091
+ row: A,
4067
4092
  mode: "list"
4068
4093
  }, null, 8, ["field", "row"]))
4069
4094
  ]),
4070
4095
  key: "1"
4071
4096
  }
4072
4097
  ]), 1032, ["label", "width", "prop", "sortable", "fixed"]))), 128)),
4073
- f(r).actions ? (c(), S(f(je), {
4098
+ m(r).actions ? (p(), S(m(je), {
4074
4099
  key: 0,
4075
4100
  label: "管理",
4076
4101
  fixed: "right",
4077
4102
  width: a.actionsWidth
4078
4103
  }, {
4079
4104
  default: E(({ row: _ }) => [
4080
- x(f(pe), { size: "small" }, {
4105
+ O(m(pe), { size: "small" }, {
4081
4106
  default: E(() => [
4082
- J(l.$slots, "actions", { row: _ }, void 0, !0)
4107
+ J(u.$slots, "actions", { row: _ }, void 0, !0)
4083
4108
  ]),
4084
4109
  _: 2
4085
4110
  }, 1024)
4086
4111
  ]),
4087
4112
  _: 3
4088
4113
  }, 8, ["width"])) : L("", !0),
4089
- A.value ? (c(), S(f(je), {
4114
+ k.value ? (p(), S(m(je), {
4090
4115
  key: 1,
4091
4116
  fixed: "right",
4092
4117
  label: "操作",
4093
4118
  width: a.operationsWidth
4094
4119
  }, {
4095
4120
  default: E(({ row: _ }) => [
4096
- x(f(pe), { size: "small" }, {
4121
+ O(m(pe), { size: "small" }, {
4097
4122
  default: E(() => [
4098
- x(xt, {
4123
+ O(Ot, {
4099
4124
  row: _,
4100
4125
  settings: a.settings,
4101
4126
  operations: a.operations
@@ -4110,7 +4135,7 @@ const Wr = {
4110
4135
  _: 3
4111
4136
  }, 8, ["data"]));
4112
4137
  }
4113
- }, tn = /* @__PURE__ */ V(Wr, [["__scopeId", "data-v-31b40ae5"]]), Qr = {
4138
+ }, tn = /* @__PURE__ */ V(Jr, [["__scopeId", "data-v-31b40ae5"]]), Yr = {
4114
4139
  __name: "DataTable",
4115
4140
  props: {
4116
4141
  data: {
@@ -4131,20 +4156,20 @@ const Wr = {
4131
4156
  e.$reset();
4132
4157
  const { mode: n } = ge(e), s = Re(), o = t, r = te(tn);
4133
4158
  function a(i) {
4134
- i == "grid" ? r.value = Hr : r.value = tn;
4159
+ i == "grid" ? r.value = Wr : r.value = tn;
4135
4160
  }
4136
- return j(n, (i) => {
4161
+ return B(n, (i) => {
4137
4162
  a(i);
4138
- }), (i, p) => (c(), S(X(r.value), Ft(Lt(o)), De({ _: 2 }, [
4139
- q(f(s), (h, d) => ({
4140
- name: d,
4141
- fn: E((u) => [
4142
- J(i.$slots, d, Ft(Lt(u || {})))
4163
+ }), (i, d) => (p(), S(X(r.value), Ft(Lt(o)), De({ _: 2 }, [
4164
+ q(m(s), (h, l) => ({
4165
+ name: l,
4166
+ fn: E((c) => [
4167
+ J(i.$slots, l, Ft(Lt(c || {})))
4143
4168
  ])
4144
4169
  }))
4145
4170
  ]), 1040));
4146
4171
  }
4147
- }, Jr = {
4172
+ }, Gr = {
4148
4173
  __name: "DomainNew",
4149
4174
  props: {
4150
4175
  settings: {
@@ -4158,44 +4183,44 @@ const Wr = {
4158
4183
  },
4159
4184
  setup(t) {
4160
4185
  const e = ce(), n = U(), s = Q(n), o = t, r = D({}), a = D(!1), i = D(!1);
4161
- async function p() {
4162
- var u;
4163
- return await ((u = o.operations) == null ? void 0 : u.creatable);
4186
+ async function d() {
4187
+ var c;
4188
+ return await ((c = o.operations) == null ? void 0 : c.creatable);
4164
4189
  }
4165
4190
  gt(() => {
4166
- p().then((u) => {
4167
- i.value = u;
4191
+ d().then((c) => {
4192
+ i.value = c;
4168
4193
  });
4169
4194
  });
4170
4195
  async function h() {
4171
- const u = o.settings.formHook, w = o.settings.fields.reduce((A, y) => (A[y.code] = y.default, A), {});
4172
- r.value = w, u.setupCreate && (r.value = u.setupCreate(r.value, s)), a.value = !0;
4173
- }
4174
- function d(u, w) {
4175
- const A = o.settings.formHook, y = o.settings.rest;
4176
- Object.keys(s).forEach((m) => {
4177
- u[m] = s[m];
4178
- }), A != null && A.preCreateSubmit && (u = A.preCreateSubmit(u)), y.create(u).then(() => {
4196
+ const c = o.settings.formHook, b = o.settings.fields.reduce((k, y) => (k[y.code] = y.default, k), {});
4197
+ r.value = b, c.setupCreate && (r.value = c.setupCreate(r.value, s)), a.value = !0;
4198
+ }
4199
+ function l(c, b) {
4200
+ const k = o.settings.formHook, y = o.settings.rest;
4201
+ Object.keys(s).forEach((f) => {
4202
+ c[f] = s[f];
4203
+ }), k != null && k.preCreateSubmit && (c = k.preCreateSubmit(c)), y.create(c).then(() => {
4179
4204
  a.value = !1, e.fireCreated();
4180
4205
  }).catch(async () => {
4181
- w();
4206
+ b();
4182
4207
  });
4183
4208
  }
4184
- return (u, w) => i.value ? (c(), S(f(ne), {
4209
+ return (c, b) => i.value ? (p(), S(m(ne), {
4185
4210
  key: 0,
4186
4211
  type: "success",
4187
4212
  onClick: h
4188
4213
  }, {
4189
4214
  default: E(() => [
4190
4215
  N(" 添加 "),
4191
- a.value ? (c(), S(St, {
4216
+ a.value ? (p(), S(St, {
4192
4217
  key: 0,
4193
4218
  modelValue: a.value,
4194
- "onUpdate:modelValue": w[0] || (w[0] = (A) => a.value = A),
4219
+ "onUpdate:modelValue": b[0] || (b[0] = (k) => a.value = k),
4195
4220
  config: o.settings,
4196
4221
  data: r.value,
4197
4222
  removable: !1,
4198
- onSubmit: d
4223
+ onSubmit: l
4199
4224
  }, null, 8, ["modelValue", "config", "data"])) : L("", !0)
4200
4225
  ]),
4201
4226
  _: 1
@@ -4220,50 +4245,50 @@ const Wr = {
4220
4245
  setup(t) {
4221
4246
  const e = fe(), n = ce(), s = t, o = te([]);
4222
4247
  let r = "";
4223
- async function a(p, h) {
4224
- if (r = Be.service({ fullscreen: !0 }), p.path) {
4225
- r.close(), i(p, h);
4248
+ async function a(d, h) {
4249
+ if (r = Be.service({ fullscreen: !0 }), d.path) {
4250
+ r.close(), i(d, h);
4226
4251
  return;
4227
4252
  }
4228
- const d = await Se.getValue();
4253
+ const l = await Se.getValue();
4229
4254
  try {
4230
- await p.action({
4255
+ await d.action({
4231
4256
  ...h,
4232
4257
  ...s.query,
4233
- idempotentToken: d
4258
+ idempotentToken: l
4234
4259
  }), r.close(), n.fireUpdated();
4235
4260
  } catch {
4236
4261
  r.close(), n.fireUpdated();
4237
4262
  }
4238
4263
  }
4239
- function i(p, h) {
4240
- e.push(p.path(h, s.query));
4264
+ function i(d, h) {
4265
+ e.push(d.path(h, s.query));
4241
4266
  }
4242
- return j(
4267
+ return B(
4243
4268
  () => s.row,
4244
4269
  () => {
4245
4270
  o.value = s.settings.rowActions(s.query);
4246
4271
  },
4247
4272
  { immediate: !0 }
4248
- ), (p, h) => (c(!0), O(P, null, q(o.value, (d) => (c(), O(P, null, [
4249
- d.isVisible(s.row, s.query, s.mode) ? (c(), O(P, { key: 0 }, [
4250
- d.component ? (c(), S(X(d.component), {
4273
+ ), (d, h) => (p(!0), x(P, null, q(o.value, (l) => (p(), x(P, null, [
4274
+ l.isVisible(s.row, s.query, s.mode) ? (p(), x(P, { key: 0 }, [
4275
+ l.component ? (p(), S(X(l.component), {
4251
4276
  key: 0,
4252
4277
  row: t.row
4253
- }, null, 8, ["row"])) : (c(), S(f(ne), {
4278
+ }, null, 8, ["row"])) : (p(), S(m(ne), {
4254
4279
  key: 1,
4255
- type: d.type ? d.type : "primary",
4256
- onClick: (u) => a(d, s.row)
4280
+ type: l.type ? l.type : "primary",
4281
+ onClick: (c) => a(l, s.row)
4257
4282
  }, {
4258
4283
  default: E(() => [
4259
- N(B(d.name), 1)
4284
+ N(j(l.name), 1)
4260
4285
  ]),
4261
4286
  _: 2
4262
4287
  }, 1032, ["type", "onClick"]))
4263
4288
  ], 64)) : L("", !0)
4264
4289
  ], 64))), 256));
4265
4290
  }
4266
- }, Yr = {
4291
+ }, Kr = {
4267
4292
  __name: "PageActions",
4268
4293
  props: {
4269
4294
  settings: {
@@ -4281,84 +4306,84 @@ const Wr = {
4281
4306
  },
4282
4307
  setup(t) {
4283
4308
  const e = ce(), n = t, s = n.query, o = D({}), r = te([]), a = I(() => {
4284
- var d, u;
4285
- return ((u = (d = n.tableDataSelect) == null ? void 0 : d.data) == null ? void 0 : u.length) > 0;
4309
+ var l, c;
4310
+ return ((c = (l = n.tableDataSelect) == null ? void 0 : l.data) == null ? void 0 : c.length) > 0;
4286
4311
  });
4287
- D(!1), j(
4312
+ D(!1), B(
4288
4313
  () => n.filterForm,
4289
- (d) => {
4290
- o.value = d;
4314
+ (l) => {
4315
+ o.value = l;
4291
4316
  }
4292
4317
  );
4293
4318
  const i = D(!1);
4294
- async function p(d) {
4319
+ async function d(l) {
4295
4320
  i.value = !0;
4296
- const u = await Se.getValue();
4321
+ const c = await Se.getValue();
4297
4322
  try {
4298
- await d.action({
4323
+ await l.action({
4299
4324
  ...n.tableDataSelect,
4300
4325
  filterForms: o.value,
4301
4326
  query: s,
4302
- idempotentToken: u
4327
+ idempotentToken: c
4303
4328
  }), i.value = !1, e.fireUpdated();
4304
4329
  } catch {
4305
4330
  i.value = !1, e.fireUpdated();
4306
4331
  }
4307
4332
  }
4308
- function h(d) {
4309
- return typeof h == "boolean" ? d : typeof d == "function" ? d(o.value, s) : !0;
4333
+ function h(l) {
4334
+ return typeof h == "boolean" ? l : typeof l == "function" ? l(o.value, s) : !0;
4310
4335
  }
4311
- return j(
4336
+ return B(
4312
4337
  () => n.row,
4313
4338
  () => {
4314
4339
  r.value = n.settings.pageActions(n.query);
4315
4340
  },
4316
4341
  { immediate: !0 }
4317
- ), (d, u) => (c(!0), O(P, null, q(r.value, (w) => (c(), O(P, null, [
4318
- h(w.isVisible) ? (c(), O(P, { key: 0 }, [
4319
- w.component ? (c(), S(X(w.component), {
4342
+ ), (l, c) => (p(!0), x(P, null, q(r.value, (b) => (p(), x(P, null, [
4343
+ h(b.isVisible) ? (p(), x(P, { key: 0 }, [
4344
+ b.component ? (p(), S(X(b.component), {
4320
4345
  key: 0,
4321
- item: w,
4346
+ item: b,
4322
4347
  settings: t.settings,
4323
- query: f(s),
4348
+ query: m(s),
4324
4349
  "table-data-select": t.tableDataSelect,
4325
4350
  "filter-form": t.filterForm
4326
- }, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : w.tooltip && w.tooltip.content ? (c(), S(f(yn), {
4351
+ }, null, 8, ["item", "settings", "query", "table-data-select", "filter-form"])) : b.tooltip && b.tooltip.content ? (p(), S(m(yn), {
4327
4352
  key: 1,
4328
- effect: w.tooltip.effect || "dark",
4329
- content: w.tooltip.content || "default tip",
4330
- placement: w.tooltip.placement || "top-start"
4353
+ effect: b.tooltip.effect || "dark",
4354
+ content: b.tooltip.content || "default tip",
4355
+ placement: b.tooltip.placement || "top-start"
4331
4356
  }, {
4332
4357
  default: E(() => [
4333
- x(f(ne), {
4334
- type: w.type,
4358
+ O(m(ne), {
4359
+ type: b.type,
4335
4360
  loading: i.value,
4336
- disabled: !w.enable && !a.value,
4337
- onClick: (A) => p(w)
4361
+ disabled: !b.enable && !a.value,
4362
+ onClick: (k) => d(b)
4338
4363
  }, {
4339
4364
  default: E(() => [
4340
- N(B(w.name), 1)
4365
+ N(j(b.name), 1)
4341
4366
  ]),
4342
4367
  _: 2
4343
4368
  }, 1032, ["type", "loading", "disabled", "onClick"])
4344
4369
  ]),
4345
4370
  _: 2
4346
- }, 1032, ["effect", "content", "placement"])) : (c(), S(f(ne), {
4371
+ }, 1032, ["effect", "content", "placement"])) : (p(), S(m(ne), {
4347
4372
  key: 2,
4348
- type: w.type,
4373
+ type: b.type,
4349
4374
  loading: i.value,
4350
- disabled: !w.enable && !a.value,
4351
- onClick: (A) => p(w)
4375
+ disabled: !b.enable && !a.value,
4376
+ onClick: (k) => d(b)
4352
4377
  }, {
4353
4378
  default: E(() => [
4354
- N(B(w.name), 1)
4379
+ N(j(b.name), 1)
4355
4380
  ]),
4356
4381
  _: 2
4357
4382
  }, 1032, ["type", "loading", "disabled", "onClick"]))
4358
4383
  ], 64)) : L("", !0)
4359
4384
  ], 64))), 256));
4360
4385
  }
4361
- }, Gr = { class: "pagination-wrapper" }, Kr = {
4386
+ }, Xr = { class: "pagination-wrapper" }, Zr = {
4362
4387
  __name: "Pagination",
4363
4388
  props: {
4364
4389
  total: {
@@ -4379,20 +4404,20 @@ const Wr = {
4379
4404
  },
4380
4405
  emits: ["page-change"],
4381
4406
  setup(t, { emit: e }) {
4382
- const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size), p = D(r.total), h = D(r.pageSizes);
4383
- j(
4407
+ const n = e, s = fe(), o = U(), r = t, a = D(r.page), i = D(r.size), d = D(r.total), h = D(r.pageSizes);
4408
+ B(
4384
4409
  () => r.total,
4385
- (w) => {
4386
- p.value = w;
4410
+ (b) => {
4411
+ d.value = b;
4387
4412
  }
4388
- ), j(
4413
+ ), B(
4389
4414
  () => [o.query.page, o.query.pageSize],
4390
4415
  () => {
4391
4416
  !o.query.page || !o.query.pageSize ? (a.value = 1, i.value = 30) : (a.value = parseInt(o.query.page), i.value = parseInt(o.query.pageSize)), n("page-change", { page: a.value, size: i.value });
4392
4417
  }
4393
4418
  );
4394
- function d(w) {
4395
- a.value = w, s.push({
4419
+ function l(b) {
4420
+ a.value = b, s.push({
4396
4421
  path: o.path,
4397
4422
  query: {
4398
4423
  ...o.query,
@@ -4401,8 +4426,8 @@ const Wr = {
4401
4426
  }
4402
4427
  });
4403
4428
  }
4404
- function u(w) {
4405
- i.value = w, s.push({
4429
+ function c(b) {
4430
+ i.value = b, s.push({
4406
4431
  path: o.path,
4407
4432
  query: {
4408
4433
  ...o.query,
@@ -4411,84 +4436,84 @@ const Wr = {
4411
4436
  }
4412
4437
  });
4413
4438
  }
4414
- return (w, A) => (c(), O("div", Gr, [
4415
- x(f(ms), {
4439
+ return (b, k) => (p(), x("div", Xr, [
4440
+ O(m(ms), {
4416
4441
  background: "",
4417
4442
  "page-size": i.value,
4418
4443
  "page-sizes": h.value,
4419
- total: p.value,
4444
+ total: d.value,
4420
4445
  "current-page": t.page,
4421
4446
  layout: "total,sizes, prev, pager, next",
4422
- onCurrentChange: d,
4423
- onSizeChange: u
4447
+ onCurrentChange: l,
4448
+ onSizeChange: c
4424
4449
  }, null, 8, ["page-size", "page-sizes", "total", "current-page"])
4425
4450
  ]));
4426
4451
  }
4427
- }, Xr = /* @__PURE__ */ V(Kr, [["__scopeId", "data-v-3c65f1a1"]]);
4452
+ }, ei = /* @__PURE__ */ V(Zr, [["__scopeId", "data-v-3c65f1a1"]]);
4428
4453
  var nn;
4429
4454
  const Wn = typeof window < "u";
4430
4455
  Wn && ((nn = window == null ? void 0 : window.navigator) != null && nn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
4431
- function Zr(t) {
4432
- return typeof t == "function" ? t() : f(t);
4456
+ function ti(t) {
4457
+ return typeof t == "function" ? t() : m(t);
4433
4458
  }
4434
- function ei(t) {
4459
+ function ni(t) {
4435
4460
  return t;
4436
4461
  }
4437
- function ti(t) {
4462
+ function si(t) {
4438
4463
  return es() ? (ts(t), !0) : !1;
4439
4464
  }
4440
- function ni(t, e = !0) {
4465
+ function oi(t, e = !0) {
4441
4466
  ns() ? dn(t) : e ? t() : ss(t);
4442
4467
  }
4443
- function si(t) {
4468
+ function ai(t) {
4444
4469
  var e;
4445
- const n = Zr(t);
4470
+ const n = ti(t);
4446
4471
  return (e = n == null ? void 0 : n.$el) != null ? e : n;
4447
4472
  }
4448
- const oi = Wn ? window : void 0;
4449
- function ai(t, e = !1) {
4473
+ const ri = Wn ? window : void 0;
4474
+ function ii(t, e = !1) {
4450
4475
  const n = D(), s = () => n.value = !!t();
4451
- return s(), ni(s, e), n;
4476
+ return s(), oi(s, e), n;
4452
4477
  }
4453
4478
  const sn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, on = "__vueuse_ssr_handlers__";
4454
4479
  sn[on] = sn[on] || {};
4455
- var an = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable, li = (t, e) => {
4480
+ var an = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ci = (t, e) => {
4456
4481
  var n = {};
4457
4482
  for (var s in t)
4458
- ri.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
4483
+ li.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
4459
4484
  if (t != null && an)
4460
4485
  for (var s of an(t))
4461
- e.indexOf(s) < 0 && ii.call(t, s) && (n[s] = t[s]);
4486
+ e.indexOf(s) < 0 && ui.call(t, s) && (n[s] = t[s]);
4462
4487
  return n;
4463
4488
  };
4464
4489
  function rn(t, e, n = {}) {
4465
- const s = n, { window: o = oi } = s, r = li(s, ["window"]);
4490
+ const s = n, { window: o = ri } = s, r = ci(s, ["window"]);
4466
4491
  let a;
4467
- const i = ai(() => o && "ResizeObserver" in o), p = () => {
4492
+ const i = ii(() => o && "ResizeObserver" in o), d = () => {
4468
4493
  a && (a.disconnect(), a = void 0);
4469
- }, h = j(() => si(t), (u) => {
4470
- p(), i.value && o && u && (a = new ResizeObserver(e), a.observe(u, r));
4471
- }, { immediate: !0, flush: "post" }), d = () => {
4472
- p(), h();
4494
+ }, h = B(() => ai(t), (c) => {
4495
+ d(), i.value && o && c && (a = new ResizeObserver(e), a.observe(c, r));
4496
+ }, { immediate: !0, flush: "post" }), l = () => {
4497
+ d(), h();
4473
4498
  };
4474
- return ti(d), {
4499
+ return si(l), {
4475
4500
  isSupported: i,
4476
- stop: d
4501
+ stop: l
4477
4502
  };
4478
4503
  }
4479
4504
  var ln;
4480
4505
  (function(t) {
4481
4506
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
4482
4507
  })(ln || (ln = {}));
4483
- var ui = Object.defineProperty, un = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, cn = (t, e, n) => e in t ? ui(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pi = (t, e) => {
4508
+ var di = Object.defineProperty, un = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, cn = (t, e, n) => e in t ? di(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, mi = (t, e) => {
4484
4509
  for (var n in e || (e = {}))
4485
- ci.call(e, n) && cn(t, n, e[n]);
4510
+ pi.call(e, n) && cn(t, n, e[n]);
4486
4511
  if (un)
4487
4512
  for (var n of un(e))
4488
- di.call(e, n) && cn(t, n, e[n]);
4513
+ fi.call(e, n) && cn(t, n, e[n]);
4489
4514
  return t;
4490
4515
  };
4491
- const fi = {
4516
+ const hi = {
4492
4517
  easeInSine: [0.12, 0, 0.39, 0],
4493
4518
  easeOutSine: [0.61, 1, 0.88, 1],
4494
4519
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -4514,10 +4539,10 @@ const fi = {
4514
4539
  easeOutBack: [0.34, 1.56, 0.64, 1],
4515
4540
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
4516
4541
  };
4517
- pi({
4518
- linear: ei
4519
- }, fi);
4520
- const mi = {
4542
+ mi({
4543
+ linear: ni
4544
+ }, hi);
4545
+ const gi = {
4521
4546
  __name: "DataTablePage",
4522
4547
  props: {
4523
4548
  settings: {
@@ -4541,46 +4566,46 @@ const mi = {
4541
4566
  s.settings.filters,
4542
4567
  s.settings.filterHook
4543
4568
  )(), { filters: r } = ge(o), a = (Dt = s == null ? void 0 : s.hasMany) == null ? void 0 : Dt.tableName;
4544
- j(r, (F) => {
4545
- l.value = F, M();
4569
+ B(r, (F) => {
4570
+ u.value = F, M();
4546
4571
  });
4547
- const i = ce(), { created: p, updated: h, removed: d } = ge(i);
4548
- j([p, h, d], ([F, z, se]) => {
4572
+ const i = ce(), { created: d, updated: h, removed: l } = ge(i);
4573
+ B([d, h, l], ([F, z, se]) => {
4549
4574
  (F || z || se) && M();
4550
4575
  });
4551
- const u = D(!0), w = D([]), A = D(0), y = D({}), m = D({}), g = D(null), $ = D(null), l = D({}), b = D(parseInt(e.query.pageSize) || 30), _ = D(parseInt(e.query.page) || 1), k = (Rt = s.hasMany) == null ? void 0 : Rt.tableContentHeight;
4576
+ const c = D(!0), b = D([]), k = D(0), y = D({}), f = D({}), g = D(null), $ = D(null), u = D({}), w = D(parseInt(e.query.pageSize) || 30), _ = D(parseInt(e.query.page) || 1), A = (Rt = s.hasMany) == null ? void 0 : Rt.tableContentHeight;
4552
4577
  function R(F) {
4553
4578
  let z = null;
4554
- if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"), l.value.sorters) {
4579
+ if (F.order === "ascending" ? z = "ASC" : F.order === "descending" && (z = "DESC"), u.value.sorters) {
4555
4580
  let se = [];
4556
- l.value.sorters.some((ie) => ie.field === F.prop) ? l.value.sorters.forEach((ie) => {
4581
+ u.value.sorters.some((ie) => ie.field === F.prop) ? u.value.sorters.forEach((ie) => {
4557
4582
  ie.field === F.prop && (ie.order = z, ie.name || se.push(ie)), ie.name && se.push(ie);
4558
4583
  }) : se = [
4559
- ...l.value.sorters,
4584
+ ...u.value.sorters,
4560
4585
  { field: F.prop, order: z }
4561
- ], l.value.sorters = se;
4586
+ ], u.value.sorters = se;
4562
4587
  } else
4563
- l.value.sorters = [{ field: F.prop, order: z }];
4588
+ u.value.sorters = [{ field: F.prop, order: z }];
4564
4589
  M();
4565
4590
  }
4566
4591
  function K() {
4567
- m.value = s.settings.operations(n);
4592
+ f.value = s.settings.operations(n);
4568
4593
  }
4569
4594
  function M(F) {
4570
- u.value = !0;
4595
+ c.value = !0;
4571
4596
  const z = {
4572
- ...l.value,
4597
+ ...u.value,
4573
4598
  ...n,
4574
4599
  ...s.query,
4575
4600
  page: F == "again" ? _.value - 1 : _.value,
4576
- size: b.value
4601
+ size: w.value
4577
4602
  };
4578
4603
  s.settings.rest.getList(z).then((se) => {
4579
- y.value.data = [], w.value = se.data.rows, A.value = se.data.count, u.value = !1, A.value && w.value.length == 0 && M("again");
4604
+ y.value.data = [], b.value = se.data.rows, k.value = se.data.count, c.value = !1, k.value && b.value.length == 0 && M("again");
4580
4605
  });
4581
4606
  }
4582
4607
  function Y(F) {
4583
- _.value = F.page, b.value = F.size, M();
4608
+ _.value = F.page, w.value = F.size, M();
4584
4609
  }
4585
4610
  function kt(F) {
4586
4611
  const z = { id: F.id, enable: !F.enable };
@@ -4613,8 +4638,8 @@ const mi = {
4613
4638
  var z;
4614
4639
  Ct.value = ((z = F[0]) == null ? void 0 : z.contentRect.height) || 0;
4615
4640
  });
4616
- const Xn = I(() => k && A.value > 0 ? `${k}px` : `calc(100% - ${At.value + Ct.value}px)`);
4617
- return K(), (F, z) => (c(), O("div", {
4641
+ const Xn = I(() => A && k.value > 0 ? `${A}px` : `calc(100% - ${At.value + Ct.value}px)`);
4642
+ return K(), (F, z) => (p(), x("div", {
4618
4643
  key: s.settings.code,
4619
4644
  style: { height: "100%" }
4620
4645
  }, [
@@ -4622,66 +4647,66 @@ const mi = {
4622
4647
  ref_key: "pageHeader",
4623
4648
  ref: g
4624
4649
  }, [
4625
- x(Or, {
4650
+ O(kr, {
4626
4651
  settings: s.settings,
4627
- "table-name": f(a)
4652
+ "table-name": m(a)
4628
4653
  }, {
4629
4654
  operations: E(() => [
4630
- x(Yr, {
4655
+ O(Kr, {
4631
4656
  settings: s.settings,
4632
4657
  "table-data-select": y.value,
4633
- query: f(n),
4634
- "filter-form": l.value
4658
+ query: m(n),
4659
+ "filter-form": u.value
4635
4660
  }, null, 8, ["settings", "table-data-select", "query", "filter-form"]),
4636
- x(Jr, {
4661
+ O(Gr, {
4637
4662
  settings: s.settings,
4638
- operations: m.value
4663
+ operations: f.value
4639
4664
  }, null, 8, ["settings", "operations"])
4640
4665
  ]),
4641
4666
  _: 1
4642
4667
  }, 8, ["settings", "table-name"])
4643
4668
  ], 512),
4644
- _e((c(), S(Qr, {
4669
+ _e((p(), S(Yr, {
4645
4670
  class: "data-table-box",
4646
- data: w.value,
4647
- operations: m.value,
4671
+ data: b.value,
4672
+ operations: f.value,
4648
4673
  settings: s.settings,
4649
4674
  "actions-width": s.settings.actionsWidth,
4650
4675
  onSortColumn: R,
4651
4676
  onEnableItem: Gn,
4652
4677
  onSelectChange: Kn
4653
4678
  }, De({ _: 2 }, [
4654
- s.settings.rowActions(f(n)).length > 0 ? {
4679
+ s.settings.rowActions(m(n)).length > 0 ? {
4655
4680
  name: "actions",
4656
4681
  fn: E(({ row: se }) => [
4657
- x(qn, {
4682
+ O(qn, {
4658
4683
  mode: "list",
4659
4684
  row: se,
4660
4685
  settings: s.settings,
4661
- query: f(n)
4686
+ query: m(n)
4662
4687
  }, null, 8, ["row", "settings", "query"])
4663
4688
  ]),
4664
4689
  key: "0"
4665
4690
  } : void 0
4666
4691
  ]), 1032, ["data", "operations", "settings", "actions-width"])), [
4667
- [f(ve), u.value]
4692
+ [m(ve), c.value]
4668
4693
  ]),
4669
4694
  C("div", {
4670
4695
  ref_key: "pagination",
4671
4696
  ref: $
4672
4697
  }, [
4673
- x(Xr, {
4698
+ O(ei, {
4674
4699
  page: _.value,
4675
- size: b.value,
4676
- total: A.value,
4700
+ size: w.value,
4701
+ total: k.value,
4677
4702
  onPageChange: Y
4678
4703
  }, null, 8, ["page", "size", "total"])
4679
4704
  ], 512)
4680
4705
  ]));
4681
4706
  }
4682
- }, Qn = /* @__PURE__ */ V(mi, [["__scopeId", "data-v-4a31051d"]]);
4707
+ }, Qn = /* @__PURE__ */ V(gi, [["__scopeId", "data-v-4a31051d"]]);
4683
4708
  /*! Element Plus v2.7.2 */
4684
- var hi = {
4709
+ var yi = {
4685
4710
  name: "zh-cn",
4686
4711
  el: {
4687
4712
  breadcrumb: {
@@ -4821,7 +4846,7 @@ var hi = {
4821
4846
  }
4822
4847
  }
4823
4848
  };
4824
- const gi = {
4849
+ const _i = {
4825
4850
  __name: "TooltipText",
4826
4851
  props: {
4827
4852
  content: {
@@ -4844,38 +4869,38 @@ const gi = {
4844
4869
  },
4845
4870
  setup(t) {
4846
4871
  const e = t, n = I(() => e.content ? e.content.toString() : "");
4847
- return (s, o) => (c(), O("div", null, [
4848
- n.value.length > e.tipShowLength ? (c(), S(f(yn), {
4872
+ return (s, o) => (p(), x("div", null, [
4873
+ n.value.length > e.tipShowLength ? (p(), S(m(yn), {
4849
4874
  key: 0,
4850
4875
  content: n.value,
4851
4876
  effect: "light"
4852
4877
  }, {
4853
4878
  default: E(() => [
4854
- x(f(Bt), {
4879
+ O(m(Bt), {
4855
4880
  class: he(e.className),
4856
4881
  type: e.textType,
4857
4882
  "line-clamp": e.lineClamp
4858
4883
  }, {
4859
4884
  default: E(() => [
4860
- N(B(n.value), 1)
4885
+ N(j(n.value), 1)
4861
4886
  ]),
4862
4887
  _: 1
4863
4888
  }, 8, ["class", "type", "line-clamp"])
4864
4889
  ]),
4865
4890
  _: 1
4866
- }, 8, ["content"])) : (c(), S(f(Bt), {
4891
+ }, 8, ["content"])) : (p(), S(m(Bt), {
4867
4892
  key: 1,
4868
4893
  type: e.textType,
4869
4894
  class: he(e.className)
4870
4895
  }, {
4871
4896
  default: E(() => [
4872
- N(B(n.value), 1)
4897
+ N(j(n.value), 1)
4873
4898
  ]),
4874
4899
  _: 1
4875
4900
  }, 8, ["type", "class"]))
4876
4901
  ]));
4877
4902
  }
4878
- }, yi = { class: "header-box" }, _i = { class: "header-box-left" }, vi = { class: "page-title" }, bi = { class: "tabs-container" }, wi = { class: "user-profile" }, Ei = {
4903
+ }, vi = { class: "header-box" }, bi = { class: "header-box-left" }, wi = { class: "page-title" }, Ei = { class: "tabs-container" }, $i = { class: "user-profile" }, Si = {
4879
4904
  __name: "HeaderMenu",
4880
4905
  props: {
4881
4906
  config: {
@@ -4883,110 +4908,110 @@ const gi = {
4883
4908
  }
4884
4909
  },
4885
4910
  setup(t) {
4886
- const e = fe(), n = U(), s = Ot(), o = D("首页"), r = t, a = n.fullPath.split("/")[1], i = A();
4911
+ const e = fe(), n = U(), s = xt(), o = D("首页"), r = t, a = n.fullPath.split("/")[1], i = k();
4887
4912
  s.setupRootPath("首页", `/${a}/home`);
4888
- function p(y) {
4889
- var b, _;
4890
- const m = y.meta.side, g = y.params.domain;
4891
- let $ = (b = y.meta) == null ? void 0 : b.title, l = (_ = y.meta) == null ? void 0 : _.code;
4892
- if (m && g) {
4893
- $ = Et()[m][y.params.domain].name, l = y.params.domain;
4894
- const k = y.params.id;
4895
- k && k != "detail" && ($ = `${$} - ${y.params.id}`, l = `${y.params.domain}-${y.params.id}`);
4913
+ function d(y) {
4914
+ var w, _;
4915
+ const f = y.meta.side, g = y.params.domain;
4916
+ let $ = (w = y.meta) == null ? void 0 : w.title, u = (_ = y.meta) == null ? void 0 : _.code;
4917
+ if (f && g) {
4918
+ $ = Et()[f][y.params.domain].name, u = y.params.domain;
4919
+ const A = y.params.id;
4920
+ A && A != "detail" && ($ = `${$} - ${y.params.id}`, u = `${y.params.domain}-${y.params.id}`);
4896
4921
  } else {
4897
- const k = i.find((R) => R.route === y.path);
4898
- k && ($ = k.title, l = k.route);
4922
+ const A = i.find((R) => R.route === y.path);
4923
+ A && ($ = A.title, u = A.route);
4899
4924
  }
4900
- $ && l && (s.push($, l, y.fullPath), o.value = l);
4925
+ $ && u && (s.push($, u, y.fullPath), o.value = u);
4901
4926
  }
4902
4927
  function h(y) {
4903
- const m = s.history.find((g) => g.code == y.props.name);
4904
- e.push(m.path);
4928
+ const f = s.history.find((g) => g.code == y.props.name);
4929
+ e.push(f.path);
4905
4930
  }
4906
- function d(y) {
4931
+ function l(y) {
4907
4932
  if (s.remove(y), y == o.value) {
4908
- const m = s.getLast();
4909
- o.value = m.title, e.push(m.path);
4933
+ const f = s.getLast();
4934
+ o.value = f.title, e.push(f.path);
4910
4935
  }
4911
4936
  }
4912
- const u = (y, m) => {
4937
+ const c = (y, f) => {
4913
4938
  const g = s.history.length;
4914
- return y === 0 && m === "self" || y < 2 && m === "left" || y === g - 1 && m === "right" || g === 1 && m === "all" ? !1 : !(g < 2 && m === "other");
4939
+ return y === 0 && f === "self" || y < 2 && f === "left" || y === g - 1 && f === "right" || g === 1 && f === "all" ? !1 : !(g < 2 && f === "other");
4915
4940
  };
4916
- function w(y, m) {
4941
+ function b(y, f) {
4917
4942
  const g = [], $ = s.history;
4918
- switch (m) {
4943
+ switch (f) {
4919
4944
  case "self":
4920
4945
  g.push($[y].code);
4921
4946
  break;
4922
4947
  case "left":
4923
- for (let l = 0; l < y; l++)
4924
- l !== 0 && g.push($[l].code);
4948
+ for (let u = 0; u < y; u++)
4949
+ u !== 0 && g.push($[u].code);
4925
4950
  break;
4926
4951
  case "right":
4927
- for (let l = y + 1; l < $.length; l++)
4928
- g.push($[l].code);
4952
+ for (let u = y + 1; u < $.length; u++)
4953
+ g.push($[u].code);
4929
4954
  break;
4930
4955
  case "all":
4931
- for (let l = 0; l < $.length; l++)
4932
- l !== 0 && g.push($[l].code);
4956
+ for (let u = 0; u < $.length; u++)
4957
+ u !== 0 && g.push($[u].code);
4933
4958
  break;
4934
4959
  case "other":
4935
- for (let l = 1; l < $.length; l++)
4936
- l !== y && g.push($[l].code);
4960
+ for (let u = 1; u < $.length; u++)
4961
+ u !== y && g.push($[u].code);
4937
4962
  break;
4938
4963
  }
4939
- for (let l = 0; l < g.length; l++)
4940
- d(g[l]);
4964
+ for (let u = 0; u < g.length; u++)
4965
+ l(g[u]);
4941
4966
  }
4942
- function A() {
4967
+ function k() {
4943
4968
  return r.config.sideMenus[a].map((y) => y.children ? y.children : y).flat();
4944
4969
  }
4945
- return j(
4970
+ return B(
4946
4971
  () => e.currentRoute.value,
4947
4972
  () => {
4948
- p(n);
4973
+ d(n);
4949
4974
  },
4950
4975
  { immediate: !0 }
4951
- ), (y, m) => (c(), O("div", yi, [
4976
+ ), (y, f) => (p(), x("div", vi, [
4952
4977
  C("div", null, [
4953
- C("div", _i, [
4954
- x(f(gn), {
4978
+ C("div", bi, [
4979
+ O(m(gn), {
4955
4980
  class: "header-img",
4956
4981
  src: r.config.logo,
4957
4982
  fit: "scale-down"
4958
4983
  }, null, 8, ["src"]),
4959
- C("div", vi, B(r.config.name), 1)
4984
+ C("div", wi, j(r.config.name), 1)
4960
4985
  ])
4961
4986
  ]),
4962
- C("div", bi, [
4963
- x(f(_n), {
4987
+ C("div", Ei, [
4988
+ O(m(_n), {
4964
4989
  modelValue: o.value,
4965
- "onUpdate:modelValue": m[0] || (m[0] = (g) => o.value = g),
4990
+ "onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
4966
4991
  type: "card",
4967
4992
  class: "tabs",
4968
4993
  onTabClick: h,
4969
- onTabRemove: d
4994
+ onTabRemove: l
4970
4995
  }, {
4971
4996
  default: E(() => [
4972
- (c(!0), O(P, null, q(f(s).history, (g, $) => (c(), S(f(vn), {
4997
+ (p(!0), x(P, null, q(m(s).history, (g, $) => (p(), S(m(vn), {
4973
4998
  closable: g.title != "首页",
4974
4999
  label: g.title,
4975
5000
  name: g.code
4976
5001
  }, {
4977
5002
  label: E(() => [
4978
- x(f(at), { trigger: "contextmenu" }, {
5003
+ O(m(at), { trigger: "contextmenu" }, {
4979
5004
  dropdown: E(() => [
4980
- x(f(rt), null, {
5005
+ O(m(rt), null, {
4981
5006
  default: E(() => [
4982
- u($, "self") ? (c(), S(f(ue), {
5007
+ c($, "self") ? (p(), S(m(ue), {
4983
5008
  key: 0,
4984
- onClick: (l) => w($, "self")
5009
+ onClick: (u) => b($, "self")
4985
5010
  }, {
4986
5011
  default: E(() => [
4987
- x(f(G), null, {
5012
+ O(m(G), null, {
4988
5013
  default: E(() => [
4989
- x(f(er))
5014
+ O(m(nr))
4990
5015
  ]),
4991
5016
  _: 1
4992
5017
  }),
@@ -4994,14 +5019,14 @@ const gi = {
4994
5019
  ]),
4995
5020
  _: 2
4996
5021
  }, 1032, ["onClick"])) : L("", !0),
4997
- u($, "left") ? (c(), S(f(ue), {
5022
+ c($, "left") ? (p(), S(m(ue), {
4998
5023
  key: 1,
4999
- onClick: (l) => w($, "left")
5024
+ onClick: (u) => b($, "left")
5000
5025
  }, {
5001
5026
  default: E(() => [
5002
- x(f(G), null, {
5027
+ O(m(G), null, {
5003
5028
  default: E(() => [
5004
- x(f(Xt))
5029
+ O(m(Xt))
5005
5030
  ]),
5006
5031
  _: 1
5007
5032
  }),
@@ -5009,14 +5034,14 @@ const gi = {
5009
5034
  ]),
5010
5035
  _: 2
5011
5036
  }, 1032, ["onClick"])) : L("", !0),
5012
- u($, "right") ? (c(), S(f(ue), {
5037
+ c($, "right") ? (p(), S(m(ue), {
5013
5038
  key: 2,
5014
- onClick: (l) => w($, "right")
5039
+ onClick: (u) => b($, "right")
5015
5040
  }, {
5016
5041
  default: E(() => [
5017
- x(f(G), null, {
5042
+ O(m(G), null, {
5018
5043
  default: E(() => [
5019
- x(f(sr))
5044
+ O(m(ar))
5020
5045
  ]),
5021
5046
  _: 1
5022
5047
  }),
@@ -5024,14 +5049,14 @@ const gi = {
5024
5049
  ]),
5025
5050
  _: 2
5026
5051
  }, 1032, ["onClick"])) : L("", !0),
5027
- u($, "all") ? (c(), S(f(ue), {
5052
+ c($, "all") ? (p(), S(m(ue), {
5028
5053
  key: 3,
5029
- onClick: (l) => w($, "all")
5054
+ onClick: (u) => b($, "all")
5030
5055
  }, {
5031
5056
  default: E(() => [
5032
- x(f(G), null, {
5057
+ O(m(G), null, {
5033
5058
  default: E(() => [
5034
- x(f(dr))
5059
+ O(m(fr))
5035
5060
  ]),
5036
5061
  _: 1
5037
5062
  }),
@@ -5039,14 +5064,14 @@ const gi = {
5039
5064
  ]),
5040
5065
  _: 2
5041
5066
  }, 1032, ["onClick"])) : L("", !0),
5042
- u($, "other") ? (c(), S(f(ue), {
5067
+ c($, "other") ? (p(), S(m(ue), {
5043
5068
  key: 4,
5044
- onClick: (l) => w($, "other")
5069
+ onClick: (u) => b($, "other")
5045
5070
  }, {
5046
5071
  default: E(() => [
5047
- x(f(G), null, {
5072
+ O(m(G), null, {
5048
5073
  default: E(() => [
5049
- x(f(fr))
5074
+ O(m(hr))
5050
5075
  ]),
5051
5076
  _: 1
5052
5077
  }),
@@ -5059,7 +5084,7 @@ const gi = {
5059
5084
  }, 1024)
5060
5085
  ]),
5061
5086
  default: E(() => [
5062
- x(gi, {
5087
+ O(_i, {
5063
5088
  content: g.title,
5064
5089
  "line-clamp": 1,
5065
5090
  "class-name": "tab-pane-label",
@@ -5076,27 +5101,27 @@ const gi = {
5076
5101
  }, 8, ["modelValue"]),
5077
5102
  C("span", {
5078
5103
  class: "back-icon",
5079
- onClick: m[1] || (m[1] = (g) => f(e).back())
5104
+ onClick: f[1] || (f[1] = (g) => m(e).back())
5080
5105
  }, [
5081
- x(f(G), null, {
5106
+ O(m(G), null, {
5082
5107
  default: E(() => [
5083
- x(f(Xt))
5108
+ O(m(Xt))
5084
5109
  ]),
5085
5110
  _: 1
5086
5111
  })
5087
5112
  ])
5088
5113
  ]),
5089
- C("div", wi, [
5114
+ C("div", $i, [
5090
5115
  J(y.$slots, "user-profile", {}, void 0, !0)
5091
5116
  ])
5092
5117
  ]));
5093
5118
  }
5094
- }, $i = /* @__PURE__ */ V(Ei, [["__scopeId", "data-v-4c5cfc79"]]), Si = (t) => (pn("data-v-22a49b3f"), t = t(), fn(), t), Oi = {
5119
+ }, xi = /* @__PURE__ */ V(Si, [["__scopeId", "data-v-4c5cfc79"]]), Oi = (t) => (pn("data-v-22a49b3f"), t = t(), fn(), t), ki = {
5095
5120
  key: 2,
5096
5121
  class: "dot-wrapper"
5097
- }, xi = /* @__PURE__ */ Si(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), ki = [
5098
- xi
5099
- ], Ai = {
5122
+ }, Ai = /* @__PURE__ */ Oi(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), Ci = [
5123
+ Ai
5124
+ ], Di = {
5100
5125
  __name: "SideBarItem",
5101
5126
  props: {
5102
5127
  data: { type: Object },
@@ -5107,55 +5132,55 @@ const gi = {
5107
5132
  },
5108
5133
  setup(t) {
5109
5134
  const e = t;
5110
- return (n, s) => t.data.children ? (c(), S(f(hs), {
5135
+ return (n, s) => t.data.children ? (p(), S(m(hs), {
5111
5136
  key: 0,
5112
5137
  index: t.data.title
5113
5138
  }, {
5114
5139
  title: E(() => [
5115
- t.data.icon ? (c(), S(f(G), { key: 0 }, {
5140
+ t.data.icon ? (p(), S(m(G), { key: 0 }, {
5116
5141
  default: E(() => [
5117
- (c(), S(X(t.data.icon)))
5142
+ (p(), S(X(t.data.icon)))
5118
5143
  ]),
5119
5144
  _: 1
5120
- })) : (c(), S(f(G), { key: 1 }, {
5145
+ })) : (p(), S(m(G), { key: 1 }, {
5121
5146
  default: E(() => [
5122
- x(f(Zt))
5147
+ O(m(Zt))
5123
5148
  ]),
5124
5149
  _: 1
5125
5150
  })),
5126
- C("span", null, B(t.data.title), 1)
5151
+ C("span", null, j(t.data.title), 1)
5127
5152
  ]),
5128
5153
  default: E(() => [
5129
- (c(!0), O(P, null, q(t.data.children, (o) => (c(), S(Jn, {
5154
+ (p(!0), x(P, null, q(t.data.children, (o) => (p(), S(Jn, {
5130
5155
  data: o,
5131
5156
  "has-parent": !0
5132
5157
  }, null, 8, ["data"]))), 256))
5133
5158
  ]),
5134
5159
  _: 1
5135
- }, 8, ["index"])) : (c(), S(f(gs), {
5160
+ }, 8, ["index"])) : (p(), S(m(gs), {
5136
5161
  key: 1,
5137
5162
  index: t.data.route,
5138
5163
  route: t.data.route,
5139
5164
  class: "menu-item"
5140
5165
  }, {
5141
5166
  default: E(() => [
5142
- t.data.icon ? (c(), S(f(G), { key: 0 }, {
5167
+ t.data.icon ? (p(), S(m(G), { key: 0 }, {
5143
5168
  default: E(() => [
5144
- (c(), S(X(t.data.icon)))
5169
+ (p(), S(X(t.data.icon)))
5145
5170
  ]),
5146
5171
  _: 1
5147
- })) : e.hasParent ? (c(), O("span", Oi, ki)) : (c(), S(f(G), { key: 1 }, {
5172
+ })) : e.hasParent ? (p(), x("span", ki, Ci)) : (p(), S(m(G), { key: 1 }, {
5148
5173
  default: E(() => [
5149
- x(f(Zt))
5174
+ O(m(Zt))
5150
5175
  ]),
5151
5176
  _: 1
5152
5177
  })),
5153
- C("span", null, B(t.data.title), 1)
5178
+ C("span", null, j(t.data.title), 1)
5154
5179
  ]),
5155
5180
  _: 1
5156
5181
  }, 8, ["index", "route"]));
5157
5182
  }
5158
- }, Jn = /* @__PURE__ */ V(Ai, [["__scopeId", "data-v-22a49b3f"]]), Ci = {
5183
+ }, Jn = /* @__PURE__ */ V(Di, [["__scopeId", "data-v-22a49b3f"]]), Ri = {
5159
5184
  __name: "SideBar",
5160
5185
  props: {
5161
5186
  sideMenus: {
@@ -5164,26 +5189,26 @@ const gi = {
5164
5189
  },
5165
5190
  setup(t) {
5166
5191
  const e = fe(), n = U(), s = D(n.fullPath), o = t, r = n.fullPath.split("/")[1], a = o.sideMenus[r];
5167
- return j(
5192
+ return B(
5168
5193
  () => e.currentRoute.value,
5169
5194
  () => {
5170
5195
  var i;
5171
5196
  if ((i = n.meta) != null && i.side) {
5172
- const p = n.meta.side;
5173
- n.params.id == "detail" ? s.value = `/${p}/${n.params.domain}/detail` : s.value = `/${p}/${n.params.domain}/list`;
5197
+ const d = n.meta.side;
5198
+ n.params.id == "detail" ? s.value = `/${d}/${n.params.domain}/detail` : s.value = `/${d}/${n.params.domain}/list`;
5174
5199
  } else
5175
5200
  s.value = n.fullPath;
5176
5201
  },
5177
5202
  { immediate: !0 }
5178
- ), (i, p) => (c(), S(f(ys), null, {
5203
+ ), (i, d) => (p(), S(m(ys), null, {
5179
5204
  default: E(() => [
5180
- x(f(_s), {
5205
+ O(m(_s), {
5181
5206
  class: "menu",
5182
5207
  router: !0,
5183
5208
  "default-active": s.value
5184
5209
  }, {
5185
5210
  default: E(() => [
5186
- (c(!0), O(P, null, q(f(a), (h) => (c(), S(Jn, { data: h }, null, 8, ["data"]))), 256))
5211
+ (p(!0), x(P, null, q(m(a), (h) => (p(), S(Jn, { data: h }, null, 8, ["data"]))), 256))
5187
5212
  ]),
5188
5213
  _: 1
5189
5214
  }, 8, ["default-active"])
@@ -5191,7 +5216,7 @@ const gi = {
5191
5216
  _: 1
5192
5217
  }));
5193
5218
  }
5194
- }, Di = /* @__PURE__ */ V(Ci, [["__scopeId", "data-v-e039032d"]]), Ri = {
5219
+ }, Ti = /* @__PURE__ */ V(Ri, [["__scopeId", "data-v-e039032d"]]), Fi = {
5195
5220
  __name: "BaseLayout",
5196
5221
  props: {
5197
5222
  config: {
@@ -5203,13 +5228,13 @@ const gi = {
5203
5228
  const e = U(), n = t, s = { ...He(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
5204
5229
  return (r, a) => {
5205
5230
  const i = qe("router-view");
5206
- return c(), S(f(vs), { locale: f(hi) }, {
5231
+ return p(), S(m(vs), { locale: m(yi) }, {
5207
5232
  default: E(() => [
5208
- x(f(Vt), { style: { height: "100%" } }, {
5233
+ O(m(Vt), { style: { height: "100%" } }, {
5209
5234
  default: E(() => [
5210
- x(f(bs), { class: "page-header" }, {
5235
+ O(m(bs), { class: "page-header" }, {
5211
5236
  default: E(() => [
5212
- x($i, { config: s }, {
5237
+ O(xi, { config: s }, {
5213
5238
  "user-profile": E(() => [
5214
5239
  J(r.$slots, "user-profile", {}, void 0, !0)
5215
5240
  ]),
@@ -5218,19 +5243,19 @@ const gi = {
5218
5243
  ]),
5219
5244
  _: 3
5220
5245
  }),
5221
- x(f(Vt), { class: "page-content-container" }, {
5246
+ O(m(Vt), { class: "page-content-container" }, {
5222
5247
  default: E(() => [
5223
- x(f(ws), { class: "page-content-aside" }, {
5248
+ O(m(ws), { class: "page-content-aside" }, {
5224
5249
  default: E(() => [
5225
- x(Di, {
5250
+ O(Ti, {
5226
5251
  "side-menus": s.sideMenus
5227
5252
  }, null, 8, ["side-menus"])
5228
5253
  ]),
5229
5254
  _: 1
5230
5255
  }),
5231
- x(f(Es), { class: "page-content-main" }, {
5256
+ O(m(Es), { class: "page-content-main" }, {
5232
5257
  default: E(() => [
5233
- (c(), S(i, { key: o.value }))
5258
+ (p(), S(i, { key: o.value }))
5234
5259
  ]),
5235
5260
  _: 1
5236
5261
  })
@@ -5245,10 +5270,10 @@ const gi = {
5245
5270
  }, 8, ["locale"]);
5246
5271
  };
5247
5272
  }
5248
- }, $l = /* @__PURE__ */ V(Ri, [["__scopeId", "data-v-ea73195f"]]), Ti = {
5273
+ }, xl = /* @__PURE__ */ V(Fi, [["__scopeId", "data-v-ea73195f"]]), Li = {
5249
5274
  key: 1,
5250
5275
  class: "loading-wrapper"
5251
- }, Fi = {
5276
+ }, Pi = {
5252
5277
  __name: "List",
5253
5278
  props: {
5254
5279
  domain: {
@@ -5259,17 +5284,17 @@ const gi = {
5259
5284
  const e = t, n = U(), s = n.meta.side, o = e.domain || n.params.domain, r = te(null);
5260
5285
  return $t(s, o).then((a) => {
5261
5286
  r.value = a;
5262
- }), (a, i) => r.value ? (c(), S(Qn, {
5287
+ }), (a, i) => r.value ? (p(), S(Qn, {
5263
5288
  key: 0,
5264
5289
  settings: r.value
5265
- }, null, 8, ["settings"])) : _e((c(), O("div", Ti, null, 512)), [
5266
- [f(ve), !0]
5290
+ }, null, 8, ["settings"])) : _e((p(), x("div", Li, null, 512)), [
5291
+ [m(ve), !0]
5267
5292
  ]);
5268
5293
  }
5269
- }, Li = /* @__PURE__ */ V(Fi, [["__scopeId", "data-v-2d9c8e98"]]), Pi = { key: 0 }, ji = { class: "key" }, Bi = { class: "value" }, Vi = {
5294
+ }, ji = /* @__PURE__ */ V(Pi, [["__scopeId", "data-v-2d9c8e98"]]), Bi = { key: 0 }, Vi = { class: "key" }, Ni = { class: "value" }, Ii = {
5270
5295
  key: 1,
5271
5296
  class: "loading-wrapper"
5272
- }, Ni = {
5297
+ }, Mi = {
5273
5298
  __name: "DomainDescription",
5274
5299
  props: {
5275
5300
  settings: {
@@ -5281,7 +5306,7 @@ const gi = {
5281
5306
  },
5282
5307
  emits: ["done"],
5283
5308
  setup(t, { emit: e }) {
5284
- const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a), p = D(null), h = [
5309
+ const n = e, s = t, o = U(), r = Q(o), a = ce(), { updated: i } = ge(a), d = D(null), h = [
5285
5310
  "image",
5286
5311
  "images",
5287
5312
  "attachments",
@@ -5294,68 +5319,68 @@ const gi = {
5294
5319
  "tree-select",
5295
5320
  "radio-group",
5296
5321
  "input-number"
5297
- ], d = I(() => s.settings.fields.filter((g) => g.showInDetail(p.value, {
5322
+ ], l = I(() => s.settings.fields.filter((g) => g.showInDetail(d.value, {
5298
5323
  ...r,
5299
5324
  ...s.query
5300
- }))), u = I(() => d.value.find((g) => g.code === s.settings.coverField)), w = I(() => d.value.filter((g) => !h.includes(g.type) && !g.extendDetail)), A = I(() => {
5325
+ }))), c = I(() => l.value.find((g) => g.code === s.settings.coverField)), b = I(() => l.value.filter((g) => !h.includes(g.type) && !g.extendDetail)), k = I(() => {
5301
5326
  var $;
5302
- const g = ($ = u.value) == null ? void 0 : $.code;
5303
- return d.value.filter((l) => h.includes(l.type) || l.extendDetail).filter((l) => l.code !== g);
5327
+ const g = ($ = c.value) == null ? void 0 : $.code;
5328
+ return l.value.filter((u) => h.includes(u.type) || u.extendDetail).filter((u) => u.code !== g);
5304
5329
  }), y = I({
5305
5330
  get() {
5306
- return A.value.map((g) => g.code);
5331
+ return k.value.map((g) => g.code);
5307
5332
  },
5308
5333
  set(g) {
5309
5334
  }
5310
5335
  });
5311
- function m() {
5336
+ function f() {
5312
5337
  s.settings.rest.getOne(s.query).then((g) => {
5313
- g.data.isDeleted = !!g.data.deletedAt, p.value = g.data, n("done", g.data);
5338
+ g.data.isDeleted = !!g.data.deletedAt, d.value = g.data, n("done", g.data);
5314
5339
  });
5315
5340
  }
5316
- return j(
5341
+ return B(
5317
5342
  i,
5318
5343
  () => {
5319
- m();
5344
+ f();
5320
5345
  },
5321
5346
  { immediate: !0 }
5322
- ), (g, $) => (c(), O("div", null, [
5323
- p.value ? (c(), O("div", Pi, [
5324
- x(f(xe), { gutter: 20 }, {
5347
+ ), (g, $) => (p(), x("div", null, [
5348
+ d.value ? (p(), x("div", Bi, [
5349
+ O(m(Oe), { gutter: 20 }, {
5325
5350
  default: E(() => [
5326
- u.value ? (c(), S(f($e), {
5351
+ c.value ? (p(), S(m($e), {
5327
5352
  key: 0,
5328
5353
  span: 6,
5329
5354
  style: { "margin-bottom": "20px" }
5330
5355
  }, {
5331
5356
  default: E(() => [
5332
- (c(), S(X(u.value.display), {
5333
- field: u.value,
5334
- row: p.value
5357
+ (p(), S(X(c.value.display), {
5358
+ field: c.value,
5359
+ row: d.value
5335
5360
  }, null, 8, ["field", "row"]))
5336
5361
  ]),
5337
5362
  _: 1
5338
5363
  })) : L("", !0),
5339
- x(f($e), {
5340
- span: u.value ? 18 : 24
5364
+ O(m($e), {
5365
+ span: c.value ? 18 : 24
5341
5366
  }, {
5342
5367
  default: E(() => [
5343
- x(f(xe), { gutter: 20 }, {
5368
+ O(m(Oe), { gutter: 20 }, {
5344
5369
  default: E(() => [
5345
- (c(!0), O(P, null, q(w.value, (l) => (c(), S(f($e), {
5346
- span: l.span,
5370
+ (p(!0), x(P, null, q(b.value, (u) => (p(), S(m($e), {
5371
+ span: u.span,
5347
5372
  class: "mono-data",
5348
5373
  style: { "margin-bottom": "20px" }
5349
5374
  }, {
5350
5375
  default: E(() => [
5351
- C("div", ji, B(l.label), 1),
5352
- C("div", Bi, [
5353
- l.code === "id" ? (c(), O(P, { key: 0 }, [
5354
- N(B(p.value.id), 1)
5355
- ], 64)) : (c(), S(X(l.display), {
5376
+ C("div", Vi, j(u.label), 1),
5377
+ C("div", Ni, [
5378
+ u.code === "id" ? (p(), x(P, { key: 0 }, [
5379
+ N(j(d.value.id), 1)
5380
+ ], 64)) : (p(), S(X(u.display), {
5356
5381
  key: 1,
5357
- field: l,
5358
- row: p.value,
5382
+ field: u,
5383
+ row: d.value,
5359
5384
  mode: "description"
5360
5385
  }, null, 8, ["field", "row"]))
5361
5386
  ])
@@ -5371,22 +5396,22 @@ const gi = {
5371
5396
  ]),
5372
5397
  _: 1
5373
5398
  }),
5374
- A.value.length > 0 ? (c(), S(f($s), {
5399
+ k.value.length > 0 ? (p(), S(m($s), {
5375
5400
  key: 0,
5376
5401
  modelValue: y.value,
5377
- "onUpdate:modelValue": $[0] || ($[0] = (l) => y.value = l),
5402
+ "onUpdate:modelValue": $[0] || ($[0] = (u) => y.value = u),
5378
5403
  class: "extend-fields"
5379
5404
  }, {
5380
5405
  default: E(() => [
5381
- (c(!0), O(P, null, q(A.value, (l) => (c(), S(f(Ss), {
5382
- title: l.label,
5383
- name: l.code,
5406
+ (p(!0), x(P, null, q(k.value, (u) => (p(), S(m(Ss), {
5407
+ title: u.label,
5408
+ name: u.code,
5384
5409
  class: "mono-data"
5385
5410
  }, {
5386
5411
  default: E(() => [
5387
- (c(), S(X(l.display), {
5388
- field: l,
5389
- row: p.value,
5412
+ (p(), S(X(u.display), {
5413
+ field: u,
5414
+ row: d.value,
5390
5415
  mode: "extend"
5391
5416
  }, null, 8, ["field", "row"]))
5392
5417
  ]),
@@ -5395,12 +5420,12 @@ const gi = {
5395
5420
  ]),
5396
5421
  _: 1
5397
5422
  }, 8, ["modelValue"])) : L("", !0)
5398
- ])) : _e((c(), O("div", Vi, null, 512)), [
5399
- [f(ve), !0]
5423
+ ])) : _e((p(), x("div", Ii, null, 512)), [
5424
+ [m(ve), !0]
5400
5425
  ])
5401
5426
  ]));
5402
5427
  }
5403
- }, Yn = /* @__PURE__ */ V(Ni, [["__scopeId", "data-v-a9915925"]]), Ii = { class: "data-page-title" }, Mi = { class: "title" }, Ui = {
5428
+ }, Yn = /* @__PURE__ */ V(Mi, [["__scopeId", "data-v-a9915925"]]), Ui = { class: "data-page-title" }, zi = { class: "title" }, Hi = {
5404
5429
  __name: "DataDetailHeader",
5405
5430
  props: {
5406
5431
  data: {
@@ -5415,35 +5440,35 @@ const gi = {
5415
5440
  },
5416
5441
  emits: ["get-item"],
5417
5442
  setup(t, { emit: e }) {
5418
- Ot();
5443
+ xt();
5419
5444
  const n = U(), s = Q(n), o = t, r = D("加载中..."), a = D({});
5420
- function i(p) {
5445
+ function i(d) {
5421
5446
  const h = o.settings;
5422
5447
  if (h.displayMode.normalMode == "detail")
5423
5448
  r.value = `${h.name}`;
5424
5449
  else {
5425
- const u = `${h.formatName(p)}`;
5426
- r.value = u ? `${h.name}:${u}` : `${h.name}`;
5450
+ const c = `${h.formatName(d)}`;
5451
+ r.value = c ? `${h.name}:${c}` : `${h.name}`;
5427
5452
  }
5428
5453
  }
5429
- return j(
5454
+ return B(
5430
5455
  () => o.data,
5431
- (p) => {
5432
- p && (a.value = o.settings.operations(s), i(p));
5456
+ (d) => {
5457
+ d && (a.value = o.settings.operations(s), i(d));
5433
5458
  },
5434
5459
  { immediate: !0 }
5435
- ), (p, h) => (c(), O("div", Ii, [
5436
- C("div", Mi, B(r.value), 1),
5460
+ ), (d, h) => (p(), x("div", Ui, [
5461
+ C("div", zi, j(r.value), 1),
5437
5462
  C("div", null, [
5438
- o.data ? (c(), S(f(pe), { key: 0 }, {
5463
+ o.data ? (p(), S(m(pe), { key: 0 }, {
5439
5464
  default: E(() => [
5440
- x(qn, {
5465
+ O(qn, {
5441
5466
  row: o.data,
5442
5467
  settings: o.settings,
5443
- query: f(s),
5468
+ query: m(s),
5444
5469
  mode: "detail"
5445
5470
  }, null, 8, ["row", "settings", "query"]),
5446
- o.settings.showEdit(f(s), "detail") ? (c(), S(xt, {
5471
+ o.settings.showEdit(m(s), "detail") ? (p(), S(Ot, {
5447
5472
  key: 0,
5448
5473
  row: o.data,
5449
5474
  settings: o.settings,
@@ -5456,7 +5481,7 @@ const gi = {
5456
5481
  ])
5457
5482
  ]));
5458
5483
  }
5459
- }, zi = /* @__PURE__ */ V(Ui, [["__scopeId", "data-v-0d04eb53"]]), Hi = {
5484
+ }, qi = /* @__PURE__ */ V(Hi, [["__scopeId", "data-v-0d04eb53"]]), Wi = {
5460
5485
  __name: "DetailPageTabs",
5461
5486
  props: {
5462
5487
  associations: {
@@ -5475,13 +5500,13 @@ const gi = {
5475
5500
  query: s
5476
5501
  });
5477
5502
  }
5478
- function p(h) {
5503
+ function d(h) {
5479
5504
  if (o.associations.length > 0)
5480
5505
  if (n.params.association) {
5481
5506
  r.value = n.params.association;
5482
- const d = o.associations.find((u) => u.domain === n.params.association);
5507
+ const l = o.associations.find((c) => c.domain === n.params.association);
5483
5508
  a.value = {
5484
- ...d,
5509
+ ...l,
5485
5510
  domainData: o.domainData
5486
5511
  };
5487
5512
  } else
@@ -5490,10 +5515,10 @@ const gi = {
5490
5515
  domainData: o.domainData
5491
5516
  }, h && h();
5492
5517
  }
5493
- return j(
5518
+ return B(
5494
5519
  () => o.domainData,
5495
5520
  () => {
5496
- p(() => {
5521
+ d(() => {
5497
5522
  e.replace({
5498
5523
  name: `${n.meta.side}-association`,
5499
5524
  params: { association: r.value },
@@ -5502,37 +5527,37 @@ const gi = {
5502
5527
  });
5503
5528
  },
5504
5529
  { immediate: !0 }
5505
- ), j(
5530
+ ), B(
5506
5531
  () => n.params,
5507
5532
  () => {
5508
- p();
5533
+ d();
5509
5534
  },
5510
5535
  { immediate: !0 }
5511
- ), (h, d) => {
5512
- const u = qe("router-view");
5513
- return c(), O(P, null, [
5514
- x(f(_n), {
5536
+ ), (h, l) => {
5537
+ const c = qe("router-view");
5538
+ return p(), x(P, null, [
5539
+ O(m(_n), {
5515
5540
  modelValue: r.value,
5516
- "onUpdate:modelValue": d[0] || (d[0] = (w) => r.value = w),
5541
+ "onUpdate:modelValue": l[0] || (l[0] = (b) => r.value = b),
5517
5542
  class: "association-tabs",
5518
5543
  onTabClick: i
5519
5544
  }, {
5520
5545
  default: E(() => [
5521
- (c(!0), O(P, null, q(o.associations, (w) => (c(), S(f(vn), {
5522
- label: w.name,
5523
- name: w.domain
5546
+ (p(!0), x(P, null, q(o.associations, (b) => (p(), S(m(vn), {
5547
+ label: b.name,
5548
+ name: b.domain
5524
5549
  }, null, 8, ["label", "name"]))), 256))
5525
5550
  ]),
5526
5551
  _: 1
5527
5552
  }, 8, ["modelValue"]),
5528
- a.value ? (c(), S(u, {
5553
+ a.value ? (p(), S(c, {
5529
5554
  key: a.value,
5530
5555
  association: a.value
5531
5556
  }, null, 8, ["association"])) : L("", !0)
5532
5557
  ], 64);
5533
5558
  };
5534
5559
  }
5535
- }, qi = /* @__PURE__ */ V(Hi, [["__scopeId", "data-v-0dc49aad"]]), Wi = {
5560
+ }, Qi = /* @__PURE__ */ V(Wi, [["__scopeId", "data-v-0dc49aad"]]), Ji = {
5536
5561
  __name: "DetailPageList",
5537
5562
  props: {
5538
5563
  associations: {
@@ -5543,18 +5568,18 @@ const gi = {
5543
5568
  }
5544
5569
  },
5545
5570
  setup(t) {
5546
- return (e, n) => (c(!0), O(P, null, q(t.associations, (s) => (c(), O("div", null, [
5547
- s.type == "has-many" ? (c(), S(Li, {
5571
+ return (e, n) => (p(!0), x(P, null, q(t.associations, (s) => (p(), x("div", null, [
5572
+ s.type == "has-many" ? (p(), S(ji, {
5548
5573
  key: 0,
5549
5574
  domain: s.domain
5550
5575
  }, null, 8, ["domain"])) : L("", !0),
5551
- s.type == "has-one" ? (c(), S(Ki, {
5576
+ s.type == "has-one" ? (p(), S(Zi, {
5552
5577
  key: 1,
5553
5578
  domain: s.domain
5554
5579
  }, null, 8, ["domain"])) : L("", !0)
5555
5580
  ]))), 256));
5556
5581
  }
5557
- }, Qi = {
5582
+ }, Yi = {
5558
5583
  __name: "DataDetailPage",
5559
5584
  props: {
5560
5585
  settings: {
@@ -5570,34 +5595,34 @@ const gi = {
5570
5595
  function r(a) {
5571
5596
  o.value = a;
5572
5597
  }
5573
- return (a, i) => (c(), O("div", {
5574
- key: `${f(e).params.domain}-${f(e).params.id}`
5598
+ return (a, i) => (p(), x("div", {
5599
+ key: `${m(e).params.domain}-${m(e).params.id}`
5575
5600
  }, [
5576
- x(zi, {
5601
+ O(qi, {
5577
5602
  data: o.value,
5578
5603
  settings: s.settings,
5579
- query: { ...f(e).params, ...f(n) }
5604
+ query: { ...m(e).params, ...m(n) }
5580
5605
  }, null, 8, ["data", "settings", "query"]),
5581
- x(Yn, {
5582
- query: { ...f(e).params, ...f(n) },
5606
+ O(Yn, {
5607
+ query: { ...m(e).params, ...m(n) },
5583
5608
  settings: s.settings,
5584
5609
  onDone: r
5585
5610
  }, null, 8, ["query", "settings"]),
5586
- s.settings.detailSubType === "tabs" ? (c(), S(qi, {
5611
+ s.settings.detailSubType === "tabs" ? (p(), S(Qi, {
5587
5612
  key: 0,
5588
5613
  associations: t.associations,
5589
5614
  "domain-data": o.value
5590
- }, null, 8, ["associations", "domain-data"])) : (c(), S(Wi, {
5615
+ }, null, 8, ["associations", "domain-data"])) : (p(), S(Ji, {
5591
5616
  key: 1,
5592
5617
  associations: t.associations,
5593
5618
  "domain-data": o.value
5594
5619
  }, null, 8, ["associations", "domain-data"]))
5595
5620
  ]));
5596
5621
  }
5597
- }, Ji = /* @__PURE__ */ V(Qi, [["__scopeId", "data-v-6e5c2d0f"]]), Yi = {
5622
+ }, Gi = /* @__PURE__ */ V(Yi, [["__scopeId", "data-v-6e5c2d0f"]]), Ki = {
5598
5623
  key: 1,
5599
5624
  class: "loading-wrapper"
5600
- }, Gi = {
5625
+ }, Xi = {
5601
5626
  __name: "Detail",
5602
5627
  props: {
5603
5628
  domain: {
@@ -5607,36 +5632,36 @@ const gi = {
5607
5632
  setup(t) {
5608
5633
  const e = t, n = U(), s = Q(n), o = n.meta.side, r = e.domain || n.params.domain, a = te(null), i = te([]);
5609
5634
  $t(o, r).then((h) => {
5610
- const d = h, u = p("has-many", d.hasMany(s)), w = p("has-one", d.hasOne(s));
5611
- a.value = d, i.value = w.concat(u);
5635
+ const l = h, c = d("has-many", l.hasMany(s)), b = d("has-one", l.hasOne(s));
5636
+ a.value = l, i.value = b.concat(c);
5612
5637
  });
5613
- function p(h, d) {
5614
- return (d || []).map((u) => typeof u == "object" ? {
5638
+ function d(h, l) {
5639
+ return (l || []).map((c) => typeof c == "object" ? {
5615
5640
  type: h,
5616
- domain: u.code,
5617
- name: u.name,
5618
- tableName: u.tableName,
5619
- tableContentHeight: u.tableContentHeight,
5620
- query: u.query || (() => ({}))
5641
+ domain: c.code,
5642
+ name: c.name,
5643
+ tableName: c.tableName,
5644
+ tableContentHeight: c.tableContentHeight,
5645
+ query: c.query || (() => ({}))
5621
5646
  } : {
5622
5647
  type: h,
5623
- domain: u,
5624
- name: Et()[o][u].name,
5648
+ domain: c,
5649
+ name: Et()[o][c].name,
5625
5650
  query: () => ({})
5626
5651
  });
5627
5652
  }
5628
- return (h, d) => a.value ? (c(), S(Ji, {
5653
+ return (h, l) => a.value ? (p(), S(Gi, {
5629
5654
  key: 0,
5630
5655
  settings: a.value,
5631
5656
  associations: i.value
5632
- }, null, 8, ["settings", "associations"])) : _e((c(), O("div", Yi, null, 512)), [
5633
- [f(ve), !0]
5657
+ }, null, 8, ["settings", "associations"])) : _e((p(), x("div", Ki, null, 512)), [
5658
+ [m(ve), !0]
5634
5659
  ]);
5635
5660
  }
5636
- }, Ki = /* @__PURE__ */ V(Gi, [["__scopeId", "data-v-ecd5a448"]]), Xi = { key: 0 }, Zi = {
5661
+ }, Zi = /* @__PURE__ */ V(Xi, [["__scopeId", "data-v-ecd5a448"]]), el = { key: 0 }, tl = {
5637
5662
  key: 1,
5638
5663
  class: "loading-wrapper"
5639
- }, el = {
5664
+ }, nl = {
5640
5665
  __name: "DetailTab",
5641
5666
  props: {
5642
5667
  association: {
@@ -5645,7 +5670,7 @@ const gi = {
5645
5670
  },
5646
5671
  setup(t) {
5647
5672
  const e = U(), n = e.meta.side, s = Q(e), o = t, r = te(null);
5648
- return j(
5673
+ return B(
5649
5674
  () => e.params.association,
5650
5675
  () => {
5651
5676
  $t(n, e.params.association).then((a) => {
@@ -5653,65 +5678,65 @@ const gi = {
5653
5678
  });
5654
5679
  },
5655
5680
  { immediate: !0 }
5656
- ), (a, i) => r.value && o.association.domainData ? (c(), O("div", Xi, [
5657
- r.value.type === "has-many" ? (c(), S(Qn, {
5681
+ ), (a, i) => r.value && o.association.domainData ? (p(), x("div", el, [
5682
+ r.value.type === "has-many" ? (p(), S(Qn, {
5658
5683
  key: `has-many-${r.value.domain}`,
5659
5684
  settings: r.value.settings,
5660
5685
  "has-many": o.association,
5661
5686
  query: r.value.query(o.association.domainData)
5662
- }, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (c(), S(Yn, {
5687
+ }, null, 8, ["settings", "has-many", "query"])) : r.value.type === "has-one" ? (p(), S(Yn, {
5663
5688
  key: `has-one-${r.value.domain}`,
5664
5689
  style: { "padding-top": "20px" },
5665
- query: f(s),
5690
+ query: m(s),
5666
5691
  settings: r.value.settings
5667
5692
  }, null, 8, ["query", "settings"])) : L("", !0)
5668
- ])) : _e((c(), O("div", Zi, null, 512)), [
5669
- [f(ve), !0]
5693
+ ])) : _e((p(), x("div", tl, null, 512)), [
5694
+ [m(ve), !0]
5670
5695
  ]);
5671
5696
  }
5672
- }, Sl = /* @__PURE__ */ V(el, [["__scopeId", "data-v-79eac380"]]);
5697
+ }, Ol = /* @__PURE__ */ V(nl, [["__scopeId", "data-v-79eac380"]]);
5673
5698
  export {
5674
- dl as A,
5699
+ fl as A,
5675
5700
  ta as B,
5676
5701
  St as C,
5677
- ul as D,
5678
- pl as E,
5679
- Rr as F,
5702
+ dl as D,
5703
+ ml as E,
5704
+ Fr as F,
5680
5705
  Qn as G,
5681
- $l as H,
5682
- Ki as I,
5683
- Sl as J,
5706
+ xl as H,
5707
+ Zi as I,
5708
+ Ol as J,
5684
5709
  ce as K,
5685
- Li as L,
5686
- Ot as M,
5710
+ ji as L,
5711
+ xt as M,
5687
5712
  ma as S,
5688
5713
  la as W,
5689
5714
  V as _,
5690
- yl as a,
5715
+ vl as a,
5691
5716
  zn as b,
5692
5717
  na as c,
5693
- gl as d,
5694
- wl as e,
5695
- ml as f,
5718
+ _l as d,
5719
+ $l as e,
5720
+ gl as f,
5696
5721
  $t as g,
5697
5722
  oe as h,
5698
- fl as i,
5723
+ hl as i,
5699
5724
  He as j,
5700
- er as k,
5701
- _l as l,
5725
+ nr as k,
5726
+ bl as l,
5702
5727
  H as m,
5703
- hl as n,
5728
+ yl as n,
5704
5729
  Wo as o,
5705
- vl as p,
5706
- bl as q,
5730
+ wl as p,
5731
+ El as q,
5707
5732
  Qo as r,
5708
5733
  Q as s,
5709
- al as t,
5734
+ il as t,
5710
5735
  oa as u,
5711
- El as v,
5712
- rl as w,
5713
- il as x,
5714
- ll as y,
5715
- cl as z
5736
+ Sl as v,
5737
+ ll as w,
5738
+ ul as x,
5739
+ cl as y,
5740
+ pl as z
5716
5741
  };
5717
- //# sourceMappingURL=index-lyE0nMga.js.map
5742
+ //# sourceMappingURL=index-DOzO-57R.js.map