@kengic/vue 0.5.37 → 0.5.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var Oe = Object.defineProperty;
2
- var we = (e, t, r) => t in e ? Oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var d = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var we = Object.defineProperty;
2
+ var Ve = (e, t, r) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var d = (e, t, r) => (Ve(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, isVNode, mergeProps, onMounted, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
5
  import { Button, Modal, Progress, Spin, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Select, Switch, Drawer, message, Tag, Tabs, Dropdown, Menu, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
6
6
  const index$7 = "";
@@ -271,6 +271,7 @@ class VarGridConfig {
271
271
  d(this, "pg_size_opt");
272
272
  d(this, "pg_size_opts");
273
273
  d(this, "prf_frm_id");
274
+ d(this, "show_bottom_border_flg");
274
275
  d(this, "show_bottom_left_flg");
275
276
  d(this, "show_bottom_right_flg");
276
277
  d(this, "show_check_column_flg");
@@ -288,6 +289,7 @@ class VarGridConfig {
288
289
  case "pg_size_opt":
289
290
  case "pg_size_opts":
290
291
  case "prf_frm_id":
292
+ case "show_bottom_border_flg":
291
293
  case "show_bottom_left_flg":
292
294
  case "show_bottom_right_flg":
293
295
  case "show_check_column_flg":
@@ -2459,17 +2461,17 @@ function baseClone(e, t, r, n, a, o) {
2459
2461
  }
2460
2462
  }
2461
2463
  o || (o = new Stack());
2462
- var _ = o.get(e);
2463
- if (_)
2464
- return _;
2465
- o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2466
- s.add(baseClone(v, t, r, v, e, o));
2467
- }) : isMap$1(e) && e.forEach(function(v, T) {
2468
- s.set(T, baseClone(v, t, r, T, e, o));
2464
+ var v = o.get(e);
2465
+ if (v)
2466
+ return v;
2467
+ o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
2468
+ s.add(baseClone(_, t, r, _, e, o));
2469
+ }) : isMap$1(e) && e.forEach(function(_, T) {
2470
+ s.set(T, baseClone(_, t, r, T, e, o));
2469
2471
  });
2470
2472
  var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
2471
- return arrayEach(m || e, function(v, T) {
2472
- m && (T = v, v = e[T]), assignValue(s, T, baseClone(v, t, r, T, e, o));
2473
+ return arrayEach(m || e, function(_, T) {
2474
+ m && (T = _, _ = e[T]), assignValue(s, T, baseClone(_, t, r, T, e, o));
2473
2475
  }), s;
2474
2476
  }
2475
2477
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2507,21 +2509,21 @@ function equalArrays(e, t, r, n, a, o) {
2507
2509
  var u = o.get(e), c = o.get(t);
2508
2510
  if (u && c)
2509
2511
  return u == t && c == e;
2510
- var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2512
+ var g = -1, p = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2511
2513
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2512
2514
  var b = e[g], m = t[g];
2513
2515
  if (n)
2514
- var v = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
2515
- if (v !== void 0) {
2516
- if (v)
2516
+ var _ = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
2517
+ if (_ !== void 0) {
2518
+ if (_)
2517
2519
  continue;
2518
2520
  p = !1;
2519
2521
  break;
2520
2522
  }
2521
- if (_) {
2523
+ if (v) {
2522
2524
  if (!arraySome(t, function(T, y) {
2523
- if (!cacheHas(_, y) && (b === T || a(b, T, r, n, o)))
2524
- return _.push(y);
2525
+ if (!cacheHas(v, y) && (b === T || a(b, T, r, n, o)))
2526
+ return v.push(y);
2525
2527
  })) {
2526
2528
  p = !1;
2527
2529
  break;
@@ -2591,12 +2593,12 @@ function equalObjects(e, t, r, n, a, o) {
2591
2593
  if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
2592
2594
  return !1;
2593
2595
  }
2594
- var _ = o.get(e), b = o.get(t);
2595
- if (_ && b)
2596
- return _ == t && b == e;
2596
+ var v = o.get(e), b = o.get(t);
2597
+ if (v && b)
2598
+ return v == t && b == e;
2597
2599
  var m = !0;
2598
2600
  o.set(e, t), o.set(t, e);
2599
- for (var v = s; ++g < l; ) {
2601
+ for (var _ = s; ++g < l; ) {
2600
2602
  p = i[g];
2601
2603
  var T = e[p], y = t[p];
2602
2604
  if (n)
@@ -2605,9 +2607,9 @@ function equalObjects(e, t, r, n, a, o) {
2605
2607
  m = !1;
2606
2608
  break;
2607
2609
  }
2608
- v || (v = p == "constructor");
2610
+ _ || (_ = p == "constructor");
2609
2611
  }
2610
- if (m && !v) {
2612
+ if (m && !_) {
2611
2613
  var E = e.constructor, A = t.constructor;
2612
2614
  E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
2613
2615
  }
@@ -2626,10 +2628,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2626
2628
  if (p && !c)
2627
2629
  return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
2628
2630
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2629
- var _ = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2630
- if (_ || b) {
2631
- var m = _ ? e.value() : e, v = b ? t.value() : t;
2632
- return o || (o = new Stack()), a(m, v, r, n, o);
2631
+ var v = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2632
+ if (v || b) {
2633
+ var m = v ? e.value() : e, _ = b ? t.value() : t;
2634
+ return o || (o = new Stack()), a(m, _, r, n, o);
2633
2635
  }
2634
2636
  }
2635
2637
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -2822,14 +2824,14 @@ function baseIntersection(e, t, r) {
2822
2824
  var g = -1, p = i[0];
2823
2825
  e:
2824
2826
  for (; ++g < a && u.length < l; ) {
2825
- var _ = c[g], b = t ? t(_) : _;
2826
- if (_ = r || _ !== 0 ? _ : 0, !(p ? cacheHas(p, b) : n(u, b, r))) {
2827
+ var v = c[g], b = t ? t(v) : v;
2828
+ if (v = r || v !== 0 ? v : 0, !(p ? cacheHas(p, b) : n(u, b, r))) {
2827
2829
  for (s = o; --s; ) {
2828
2830
  var m = i[s];
2829
2831
  if (!(m ? cacheHas(m, b) : n(e[s], b, r)))
2830
2832
  continue e;
2831
2833
  }
2832
- p && p.push(b), u.push(_);
2834
+ p && p.push(b), u.push(v);
2833
2835
  }
2834
2836
  }
2835
2837
  return u;
@@ -3354,8 +3356,8 @@ function generate$1(e) {
3354
3356
  r.push(u);
3355
3357
  }
3356
3358
  return t.theme === "dark" ? darkColorMap.map(function(c) {
3357
- var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3358
- return _;
3359
+ var g = c.index, p = c.opacity, v = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3360
+ return v;
3359
3361
  }) : r;
3360
3362
  }
3361
3363
  var presetPrimaryColors = {
@@ -3711,11 +3713,11 @@ function _objectWithoutPropertiesLoose(e, t) {
3711
3713
  }
3712
3714
  setTwoToneColor("#1890ff");
3713
3715
  var Icon$1 = function(t, r) {
3714
- var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), _ = (n = {
3716
+ var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), v = (n = {
3715
3717
  anticon: !0
3716
3718
  }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
3717
3719
  m === void 0 && g && (m = -1, p.tabindex = m);
3718
- var v = l ? {
3720
+ var _ = l ? {
3719
3721
  msTransform: "rotate(".concat(l, "deg)"),
3720
3722
  transform: "rotate(".concat(l, "deg)")
3721
3723
  } : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
@@ -3724,13 +3726,13 @@ var Icon$1 = function(t, r) {
3724
3726
  "aria-label": s.name
3725
3727
  }, p, {
3726
3728
  onClick: g,
3727
- class: _
3729
+ class: v
3728
3730
  }), [createVNode(VueIcon, {
3729
3731
  class: b,
3730
3732
  icon: s,
3731
3733
  primaryColor: C,
3732
3734
  secondaryColor: E,
3733
- style: v
3735
+ style: _
3734
3736
  }, null)]);
3735
3737
  };
3736
3738
  Icon$1.props = {
@@ -4366,7 +4368,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4366
4368
  }, [e.kgRight || 0])])
4367
4369
  });
4368
4370
  }
4369
- }), KgResizable$1 = "", en = {
4371
+ }), en = {
4370
4372
  kg: {
4371
4373
  KgFormItem: {
4372
4374
  mustGT: "Must > {0}",
@@ -4691,207 +4693,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4691
4693
  (function(r, n) {
4692
4694
  e.exports = n();
4693
4695
  })(commonjsGlobal, function() {
4694
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
4695
- var I = ["th", "st", "nd", "rd"], M = w % 100;
4696
- return "[" + w + (I[(M - 20) % 10] || I[M] || I[0]) + "]";
4697
- } }, C = function(w, I, M) {
4698
- var N = String(w);
4699
- return !N || N.length >= I ? w : "" + Array(I + 1 - N.length).join(M) + w;
4700
- }, E = { s: C, z: function(w) {
4701
- var I = -w.utcOffset(), M = Math.abs(I), N = Math.floor(M / 60), F = M % 60;
4702
- return (I <= 0 ? "+" : "-") + C(N, 2, "0") + ":" + C(F, 2, "0");
4703
- }, m: function w(I, M) {
4704
- if (I.date() < M.date())
4705
- return -w(M, I);
4706
- var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g), U = M - F < 0, G = I.clone().add(N + (U ? -1 : 1), g);
4707
- return +(-(N + (M - F) / (U ? F - G : G - F)) || 0);
4708
- }, a: function(w) {
4709
- return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4710
- }, p: function(w) {
4711
- return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
4712
- }, u: function(w) {
4713
- return w === void 0;
4696
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
4697
+ var O = ["th", "st", "nd", "rd"], I = D % 100;
4698
+ return "[" + D + (O[(I - 20) % 10] || O[I] || O[0]) + "]";
4699
+ } }, C = function(D, O, I) {
4700
+ var V = String(D);
4701
+ return !V || V.length >= O ? D : "" + Array(O + 1 - V.length).join(I) + D;
4702
+ }, E = { s: C, z: function(D) {
4703
+ var O = -D.utcOffset(), I = Math.abs(O), V = Math.floor(I / 60), R = I % 60;
4704
+ return (O <= 0 ? "+" : "-") + C(V, 2, "0") + ":" + C(R, 2, "0");
4705
+ }, m: function D(O, I) {
4706
+ if (O.date() < I.date())
4707
+ return -D(I, O);
4708
+ var V = 12 * (I.year() - O.year()) + (I.month() - O.month()), R = O.clone().add(V, g), H = I - R < 0, G = O.clone().add(V + (H ? -1 : 1), g);
4709
+ return +(-(V + (I - R) / (H ? R - G : G - R)) || 0);
4710
+ }, a: function(D) {
4711
+ return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
4712
+ }, p: function(D) {
4713
+ return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[D] || String(D || "").toLowerCase().replace(/s$/, "");
4714
+ }, u: function(D) {
4715
+ return D === void 0;
4714
4716
  } }, A = "en", k = {};
4715
4717
  k[A] = y;
4716
- var R = function(w) {
4717
- return w instanceof $;
4718
- }, L = function w(I, M, N) {
4719
- var F;
4720
- if (!I)
4718
+ var F = function(D) {
4719
+ return D instanceof $;
4720
+ }, L = function D(O, I, V) {
4721
+ var R;
4722
+ if (!O)
4721
4723
  return A;
4722
- if (typeof I == "string") {
4723
- var U = I.toLowerCase();
4724
- k[U] && (F = U), M && (k[U] = M, F = U);
4725
- var G = I.split("-");
4726
- if (!F && G.length > 1)
4727
- return w(G[0]);
4724
+ if (typeof O == "string") {
4725
+ var H = O.toLowerCase();
4726
+ k[H] && (R = H), I && (k[H] = I, R = H);
4727
+ var G = O.split("-");
4728
+ if (!R && G.length > 1)
4729
+ return D(G[0]);
4728
4730
  } else {
4729
- var x = I.name;
4730
- k[x] = I, F = x;
4731
- }
4732
- return !N && F && (A = F), F || !N && A;
4733
- }, O = function(w, I) {
4734
- if (R(w))
4735
- return w.clone();
4736
- var M = typeof I == "object" ? I : {};
4737
- return M.date = w, M.args = arguments, new $(M);
4738
- }, D = E;
4739
- D.l = L, D.i = R, D.w = function(w, I) {
4740
- return O(w, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
4731
+ var x = O.name;
4732
+ k[x] = O, R = x;
4733
+ }
4734
+ return !V && R && (A = R), R || !V && A;
4735
+ }, M = function(D, O) {
4736
+ if (F(D))
4737
+ return D.clone();
4738
+ var I = typeof O == "object" ? O : {};
4739
+ return I.date = D, I.args = arguments, new $(I);
4740
+ }, P = E;
4741
+ P.l = L, P.i = F, P.w = function(D, O) {
4742
+ return M(D, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4741
4743
  };
4742
4744
  var $ = function() {
4743
- function w(M) {
4744
- this.$L = L(M.locale, null, !0), this.parse(M);
4745
- }
4746
- var I = w.prototype;
4747
- return I.parse = function(M) {
4748
- this.$d = function(N) {
4749
- var F = N.date, U = N.utc;
4750
- if (F === null)
4745
+ function D(I) {
4746
+ this.$L = L(I.locale, null, !0), this.parse(I);
4747
+ }
4748
+ var O = D.prototype;
4749
+ return O.parse = function(I) {
4750
+ this.$d = function(V) {
4751
+ var R = V.date, H = V.utc;
4752
+ if (R === null)
4751
4753
  return new Date(NaN);
4752
- if (D.u(F))
4754
+ if (P.u(R))
4753
4755
  return new Date();
4754
- if (F instanceof Date)
4755
- return new Date(F);
4756
- if (typeof F == "string" && !/Z$/i.test(F)) {
4757
- var G = F.match(v);
4756
+ if (R instanceof Date)
4757
+ return new Date(R);
4758
+ if (typeof R == "string" && !/Z$/i.test(R)) {
4759
+ var G = R.match(_);
4758
4760
  if (G) {
4759
- var x = G[2] - 1 || 0, H = (G[7] || "0").substring(0, 3);
4760
- return U ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H);
4761
+ var x = G[2] - 1 || 0, U = (G[7] || "0").substring(0, 3);
4762
+ return H ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U);
4761
4763
  }
4762
4764
  }
4763
- return new Date(F);
4764
- }(M), this.$x = M.x || {}, this.init();
4765
- }, I.init = function() {
4766
- var M = this.$d;
4767
- this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
4768
- }, I.$utils = function() {
4769
- return D;
4770
- }, I.isValid = function() {
4765
+ return new Date(R);
4766
+ }(I), this.$x = I.x || {}, this.init();
4767
+ }, O.init = function() {
4768
+ var I = this.$d;
4769
+ this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
4770
+ }, O.$utils = function() {
4771
+ return P;
4772
+ }, O.isValid = function() {
4771
4773
  return this.$d.toString() !== m;
4772
- }, I.isSame = function(M, N) {
4773
- var F = O(M);
4774
- return this.startOf(N) <= F && F <= this.endOf(N);
4775
- }, I.isAfter = function(M, N) {
4776
- return O(M) < this.startOf(N);
4777
- }, I.isBefore = function(M, N) {
4778
- return this.endOf(N) < O(M);
4779
- }, I.$g = function(M, N, F) {
4780
- return D.u(M) ? this[N] : this.set(F, M);
4781
- }, I.unix = function() {
4774
+ }, O.isSame = function(I, V) {
4775
+ var R = M(I);
4776
+ return this.startOf(V) <= R && R <= this.endOf(V);
4777
+ }, O.isAfter = function(I, V) {
4778
+ return M(I) < this.startOf(V);
4779
+ }, O.isBefore = function(I, V) {
4780
+ return this.endOf(V) < M(I);
4781
+ }, O.$g = function(I, V, R) {
4782
+ return P.u(I) ? this[V] : this.set(R, I);
4783
+ }, O.unix = function() {
4782
4784
  return Math.floor(this.valueOf() / 1e3);
4783
- }, I.valueOf = function() {
4785
+ }, O.valueOf = function() {
4784
4786
  return this.$d.getTime();
4785
- }, I.startOf = function(M, N) {
4786
- var F = this, U = !!D.u(N) || N, G = D.p(M), x = function(de, P) {
4787
- var K = D.w(F.$u ? Date.UTC(F.$y, P, de) : new Date(F.$y, P, de), F);
4788
- return U ? K : K.endOf(u);
4789
- }, H = function(de, P) {
4790
- return D.w(F.toDate()[de].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), F);
4791
- }, Y = this.$W, X = this.$M, Z = this.$D, re = "set" + (this.$u ? "UTC" : "");
4787
+ }, O.startOf = function(I, V) {
4788
+ var R = this, H = !!P.u(V) || V, G = P.p(I), x = function(pe, te) {
4789
+ var le = P.w(R.$u ? Date.UTC(R.$y, te, pe) : new Date(R.$y, te, pe), R);
4790
+ return H ? le : le.endOf(u);
4791
+ }, U = function(pe, te) {
4792
+ return P.w(R.toDate()[pe].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), R);
4793
+ }, q = this.$W, J = this.$M, Z = this.$D, ne = "set" + (this.$u ? "UTC" : "");
4792
4794
  switch (G) {
4793
- case _:
4794
- return U ? x(1, 0) : x(31, 11);
4795
+ case v:
4796
+ return H ? x(1, 0) : x(31, 11);
4795
4797
  case g:
4796
- return U ? x(1, X) : x(0, X + 1);
4798
+ return H ? x(1, J) : x(0, J + 1);
4797
4799
  case c:
4798
- var ne = this.$locale().weekStart || 0, se = (Y < ne ? Y + 7 : Y) - ne;
4799
- return x(U ? Z - se : Z + (6 - se), X);
4800
+ var oe = this.$locale().weekStart || 0, ie = (q < oe ? q + 7 : q) - oe;
4801
+ return x(H ? Z - ie : Z + (6 - ie), J);
4800
4802
  case u:
4801
4803
  case b:
4802
- return H(re + "Hours", 0);
4804
+ return U(ne + "Hours", 0);
4803
4805
  case l:
4804
- return H(re + "Minutes", 1);
4806
+ return U(ne + "Minutes", 1);
4805
4807
  case i:
4806
- return H(re + "Seconds", 2);
4808
+ return U(ne + "Seconds", 2);
4807
4809
  case s:
4808
- return H(re + "Milliseconds", 3);
4810
+ return U(ne + "Milliseconds", 3);
4809
4811
  default:
4810
4812
  return this.clone();
4811
4813
  }
4812
- }, I.endOf = function(M) {
4813
- return this.startOf(M, !1);
4814
- }, I.$set = function(M, N) {
4815
- var F, U = D.p(M), G = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = G + "Date", F[b] = G + "Date", F[g] = G + "Month", F[_] = G + "FullYear", F[l] = G + "Hours", F[i] = G + "Minutes", F[s] = G + "Seconds", F[o] = G + "Milliseconds", F)[U], H = U === u ? this.$D + (N - this.$W) : N;
4816
- if (U === g || U === _) {
4817
- var Y = this.clone().set(b, 1);
4818
- Y.$d[x](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4814
+ }, O.endOf = function(I) {
4815
+ return this.startOf(I, !1);
4816
+ }, O.$set = function(I, V) {
4817
+ var R, H = P.p(I), G = "set" + (this.$u ? "UTC" : ""), x = (R = {}, R[u] = G + "Date", R[b] = G + "Date", R[g] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[i] = G + "Minutes", R[s] = G + "Seconds", R[o] = G + "Milliseconds", R)[H], U = H === u ? this.$D + (V - this.$W) : V;
4818
+ if (H === g || H === v) {
4819
+ var q = this.clone().set(b, 1);
4820
+ q.$d[x](U), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
4819
4821
  } else
4820
- x && this.$d[x](H);
4822
+ x && this.$d[x](U);
4821
4823
  return this.init(), this;
4822
- }, I.set = function(M, N) {
4823
- return this.clone().$set(M, N);
4824
- }, I.get = function(M) {
4825
- return this[D.p(M)]();
4826
- }, I.add = function(M, N) {
4827
- var F, U = this;
4828
- M = Number(M);
4829
- var G = D.p(N), x = function(X) {
4830
- var Z = O(U);
4831
- return D.w(Z.date(Z.date() + Math.round(X * M)), U);
4824
+ }, O.set = function(I, V) {
4825
+ return this.clone().$set(I, V);
4826
+ }, O.get = function(I) {
4827
+ return this[P.p(I)]();
4828
+ }, O.add = function(I, V) {
4829
+ var R, H = this;
4830
+ I = Number(I);
4831
+ var G = P.p(V), x = function(J) {
4832
+ var Z = M(H);
4833
+ return P.w(Z.date(Z.date() + Math.round(J * I)), H);
4832
4834
  };
4833
4835
  if (G === g)
4834
- return this.set(g, this.$M + M);
4835
- if (G === _)
4836
- return this.set(_, this.$y + M);
4836
+ return this.set(g, this.$M + I);
4837
+ if (G === v)
4838
+ return this.set(v, this.$y + I);
4837
4839
  if (G === u)
4838
4840
  return x(1);
4839
4841
  if (G === c)
4840
4842
  return x(7);
4841
- var H = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[G] || 1, Y = this.$d.getTime() + M * H;
4842
- return D.w(Y, this);
4843
- }, I.subtract = function(M, N) {
4844
- return this.add(-1 * M, N);
4845
- }, I.format = function(M) {
4846
- var N = this, F = this.$locale();
4843
+ var U = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[G] || 1, q = this.$d.getTime() + I * U;
4844
+ return P.w(q, this);
4845
+ }, O.subtract = function(I, V) {
4846
+ return this.add(-1 * I, V);
4847
+ }, O.format = function(I) {
4848
+ var V = this, R = this.$locale();
4847
4849
  if (!this.isValid())
4848
- return F.invalidDate || m;
4849
- var U = M || "YYYY-MM-DDTHH:mm:ssZ", G = D.z(this), x = this.$H, H = this.$m, Y = this.$M, X = F.weekdays, Z = F.months, re = function(P, K, z, q) {
4850
- return P && (P[K] || P(N, U)) || z[K].slice(0, q);
4851
- }, ne = function(P) {
4852
- return D.s(x % 12 || 12, P, "0");
4853
- }, se = F.meridiem || function(P, K, z) {
4854
- var q = P < 12 ? "AM" : "PM";
4855
- return z ? q.toLowerCase() : q;
4856
- }, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: re(F.monthsShort, Y, Z, 3), MMMM: re(Z, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: re(F.weekdaysMin, this.$W, X, 2), ddd: re(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: ne(1), hh: ne(2), a: se(x, H, !0), A: se(x, H, !1), m: String(H), mm: D.s(H, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: G };
4857
- return U.replace(T, function(P, K) {
4858
- return K || de[P] || G.replace(":", "");
4850
+ return R.invalidDate || m;
4851
+ var H = I || "YYYY-MM-DDTHH:mm:ssZ", G = P.z(this), x = this.$H, U = this.$m, q = this.$M, J = R.weekdays, Z = R.months, ne = function(te, le, N, K) {
4852
+ return te && (te[le] || te(V, H)) || N[le].slice(0, K);
4853
+ }, oe = function(te) {
4854
+ return P.s(x % 12 || 12, te, "0");
4855
+ }, ie = R.meridiem || function(te, le, N) {
4856
+ var K = te < 12 ? "AM" : "PM";
4857
+ return N ? K.toLowerCase() : K;
4858
+ }, pe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: P.s(q + 1, 2, "0"), MMM: ne(R.monthsShort, q, Z, 3), MMMM: ne(Z, q), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(R.weekdaysMin, this.$W, J, 2), ddd: ne(R.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(x), HH: P.s(x, 2, "0"), h: oe(1), hh: oe(2), a: ie(x, U, !0), A: ie(x, U, !1), m: String(U), mm: P.s(U, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: G };
4859
+ return H.replace(T, function(te, le) {
4860
+ return le || pe[te] || G.replace(":", "");
4859
4861
  });
4860
- }, I.utcOffset = function() {
4862
+ }, O.utcOffset = function() {
4861
4863
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4862
- }, I.diff = function(M, N, F) {
4863
- var U, G = D.p(N), x = O(M), H = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, X = D.m(this, x);
4864
- return X = (U = {}, U[_] = X / 12, U[g] = X, U[p] = X / 3, U[c] = (Y - H) / 6048e5, U[u] = (Y - H) / 864e5, U[l] = Y / a, U[i] = Y / n, U[s] = Y / r, U)[G] || Y, F ? X : D.a(X);
4865
- }, I.daysInMonth = function() {
4864
+ }, O.diff = function(I, V, R) {
4865
+ var H, G = P.p(V), x = M(I), U = (x.utcOffset() - this.utcOffset()) * n, q = this - x, J = P.m(this, x);
4866
+ return J = (H = {}, H[v] = J / 12, H[g] = J, H[p] = J / 3, H[c] = (q - U) / 6048e5, H[u] = (q - U) / 864e5, H[l] = q / a, H[i] = q / n, H[s] = q / r, H)[G] || q, R ? J : P.a(J);
4867
+ }, O.daysInMonth = function() {
4866
4868
  return this.endOf(g).$D;
4867
- }, I.$locale = function() {
4869
+ }, O.$locale = function() {
4868
4870
  return k[this.$L];
4869
- }, I.locale = function(M, N) {
4870
- if (!M)
4871
+ }, O.locale = function(I, V) {
4872
+ if (!I)
4871
4873
  return this.$L;
4872
- var F = this.clone(), U = L(M, N, !0);
4873
- return U && (F.$L = U), F;
4874
- }, I.clone = function() {
4875
- return D.w(this.$d, this);
4876
- }, I.toDate = function() {
4874
+ var R = this.clone(), H = L(I, V, !0);
4875
+ return H && (R.$L = H), R;
4876
+ }, O.clone = function() {
4877
+ return P.w(this.$d, this);
4878
+ }, O.toDate = function() {
4877
4879
  return new Date(this.valueOf());
4878
- }, I.toJSON = function() {
4880
+ }, O.toJSON = function() {
4879
4881
  return this.isValid() ? this.toISOString() : null;
4880
- }, I.toISOString = function() {
4882
+ }, O.toISOString = function() {
4881
4883
  return this.$d.toISOString();
4882
- }, I.toString = function() {
4884
+ }, O.toString = function() {
4883
4885
  return this.$d.toUTCString();
4884
- }, w;
4885
- }(), V = $.prototype;
4886
- return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
4887
- V[w[1]] = function(I) {
4888
- return this.$g(I, w[0], w[1]);
4886
+ }, D;
4887
+ }(), w = $.prototype;
4888
+ return M.prototype = w, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(D) {
4889
+ w[D[1]] = function(O) {
4890
+ return this.$g(O, D[0], D[1]);
4889
4891
  };
4890
- }), O.extend = function(w, I) {
4891
- return w.$i || (w(I, $, O), w.$i = !0), O;
4892
- }, O.locale = L, O.isDayjs = R, O.unix = function(w) {
4893
- return O(1e3 * w);
4894
- }, O.en = k[A], O.Ls = k, O.p = {}, O;
4892
+ }), M.extend = function(D, O) {
4893
+ return D.$i || (D(O, $, M), D.$i = !0), M;
4894
+ }, M.locale = L, M.isDayjs = F, M.unix = function(D) {
4895
+ return M(1e3 * D);
4896
+ }, M.en = k[A], M.Ls = k, M.p = {}, M;
4895
4897
  });
4896
4898
  })(dayjs_min);
4897
4899
  const dayjs = dayjs_min.exports;
@@ -4931,66 +4933,70 @@ function filesize(e, {
4931
4933
  standard: c = EMPTY,
4932
4934
  output: g = STRING,
4933
4935
  fullform: p = !1,
4934
- fullforms: _ = [],
4936
+ fullforms: v = [],
4935
4937
  exponent: b = -1,
4936
4938
  roundingMethod: m = ROUND,
4937
- precision: v = 0
4939
+ precision: _ = 0
4938
4940
  } = {}) {
4939
4941
  let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
4940
4942
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4941
- const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
4943
+ const k = n === 10 ? 1e3 : 1024, F = p === !0, L = y < 0, M = Math[m];
4942
4944
  if (typeof e != "bigint" && isNaN(e))
4943
4945
  throw new TypeError(INVALID_NUMBER);
4944
- if (typeof O !== FUNCTION)
4946
+ if (typeof M !== FUNCTION)
4945
4947
  throw new TypeError(INVALID_ROUND);
4946
- if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (v > 0 && (v += 8 - T), T = 8), g === EXPONENT)
4948
+ if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (_ > 0 && (_ += 8 - T), T = 8), g === EXPONENT)
4947
4949
  return T;
4948
4950
  if (y === 0)
4949
4951
  C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4950
4952
  else {
4951
4953
  E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
4952
- const D = Math.pow(10, T > 0 ? a : 0);
4953
- C[0] = O(E * D) / D, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4954
+ const P = Math.pow(10, T > 0 ? a : 0);
4955
+ C[0] = M(E * P) / P, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4954
4956
  }
4955
- if (L && (C[0] = -C[0]), v > 0 && (C[0] = C[0].toPrecision(v)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
4956
- const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, w = V.length, I = a - w;
4957
- C[0] = `${$[0]}${D}${V.padEnd(w + I, ZERO)}`;
4957
+ if (L && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
4958
+ const P = i || PERIOD, $ = C[0].toString().split(P), w = $[1] || EMPTY, D = w.length, O = a - D;
4959
+ C[0] = `${$[0]}${P}${w.padEnd(D + O, ZERO)}`;
4958
4960
  }
4959
- return R && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4961
+ return F && (C[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4960
4962
  value: C[0],
4961
4963
  symbol: C[1],
4962
4964
  exponent: T,
4963
4965
  unit: A
4964
4966
  } : C.join(l);
4965
4967
  }
4966
- const data$6 = {
4968
+ const data$7 = {
4967
4969
  width: 1024,
4968
4970
  height: 1024,
4969
4971
  body: '<path fill="currentColor" d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5L207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"/>'
4970
- }, data$5 = {
4972
+ }, data$6 = {
4971
4973
  width: 1024,
4972
4974
  height: 1024,
4973
4975
  body: '<path fill="currentColor" d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"/>'
4974
- }, data$4 = {
4976
+ }, data$5 = {
4975
4977
  width: 1024,
4976
4978
  height: 1024,
4977
4979
  body: '<path fill="currentColor" d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"/>'
4978
- }, data$3 = {
4980
+ }, data$4 = {
4979
4981
  width: 1024,
4980
4982
  height: 1024,
4981
4983
  body: '<path fill="currentColor" d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7l15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>'
4982
- }, data$2 = {
4984
+ }, data$3 = {
4983
4985
  width: 1024,
4984
4986
  height: 1024,
4985
4987
  body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
4986
- }, data$1 = {
4988
+ }, data$2 = {
4987
4989
  width: 1024,
4988
4990
  height: 1024,
4989
4991
  body: '<path fill="currentColor" d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"/><path fill="currentColor" d="M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8Z"/>'
4990
- }, data = {
4992
+ }, data$1 = {
4991
4993
  width: 1024,
4992
4994
  height: 1024,
4993
4995
  body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372c0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"/>'
4996
+ }, data = {
4997
+ width: 1024,
4998
+ height: 1024,
4999
+ body: '<path fill="currentColor" d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4c0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50s-22.4 50-50 50s-50-22.4-50-50zm180 266H566v-60h260v60z"/>'
4994
5000
  }, matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/, stringToIcon = (e, t, r, n = "") => {
4995
5001
  const a = e.split(":");
4996
5002
  if (e.slice(0, 1) === "@") {
@@ -5243,9 +5249,9 @@ function iconToSVG(e, t) {
5243
5249
  };
5244
5250
  let o = r.body;
5245
5251
  [r, n].forEach((b) => {
5246
- const m = [], v = b.hFlip, T = b.vFlip;
5252
+ const m = [], _ = b.hFlip, T = b.vFlip;
5247
5253
  let y = b.rotate;
5248
- v ? T ? y += 2 : (m.push(
5254
+ _ ? T ? y += 2 : (m.push(
5249
5255
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5250
5256
  ), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
5251
5257
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
@@ -5273,10 +5279,10 @@ function iconToSVG(e, t) {
5273
5279
  const s = n.width, i = n.height, l = a.width, u = a.height;
5274
5280
  let c, g;
5275
5281
  s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
5276
- const p = {}, _ = (b, m) => {
5282
+ const p = {}, v = (b, m) => {
5277
5283
  isUnsetKeyword(m) || (p[b] = m.toString());
5278
5284
  };
5279
- return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5285
+ return v("width", c), v("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5280
5286
  attributes: p,
5281
5287
  body: o
5282
5288
  };
@@ -5550,15 +5556,15 @@ function sendQuery(e, t, r, n) {
5550
5556
  if (e.random) {
5551
5557
  let k = e.resources.slice(0);
5552
5558
  for (s = []; k.length > 1; ) {
5553
- const R = Math.floor(Math.random() * k.length);
5554
- s.push(k[R]), k = k.slice(0, R).concat(k.slice(R + 1));
5559
+ const F = Math.floor(Math.random() * k.length);
5560
+ s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
5555
5561
  }
5556
5562
  s = s.concat(k);
5557
5563
  } else
5558
5564
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5559
5565
  const i = Date.now();
5560
- let l = "pending", u = 0, c, g = null, p = [], _ = [];
5561
- typeof n == "function" && _.push(n);
5566
+ let l = "pending", u = 0, c, g = null, p = [], v = [];
5567
+ typeof n == "function" && v.push(n);
5562
5568
  function b() {
5563
5569
  g && (clearTimeout(g), g = null);
5564
5570
  }
@@ -5567,8 +5573,8 @@ function sendQuery(e, t, r, n) {
5567
5573
  k.status === "pending" && (k.status = "aborted");
5568
5574
  }), p = [];
5569
5575
  }
5570
- function v(k, R) {
5571
- R && (_ = []), typeof k == "function" && _.push(k);
5576
+ function _(k, F) {
5577
+ F && (v = []), typeof k == "function" && v.push(k);
5572
5578
  }
5573
5579
  function T() {
5574
5580
  return {
@@ -5577,12 +5583,12 @@ function sendQuery(e, t, r, n) {
5577
5583
  status: l,
5578
5584
  queriesSent: u,
5579
5585
  queriesPending: p.length,
5580
- subscribe: v,
5586
+ subscribe: _,
5581
5587
  abort: m
5582
5588
  };
5583
5589
  }
5584
5590
  function y() {
5585
- l = "failed", _.forEach((k) => {
5591
+ l = "failed", v.forEach((k) => {
5586
5592
  k(void 0, c);
5587
5593
  });
5588
5594
  }
@@ -5591,32 +5597,32 @@ function sendQuery(e, t, r, n) {
5591
5597
  k.status === "pending" && (k.status = "aborted");
5592
5598
  }), p = [];
5593
5599
  }
5594
- function E(k, R, L) {
5595
- const O = R !== "success";
5596
- switch (p = p.filter((D) => D !== k), l) {
5600
+ function E(k, F, L) {
5601
+ const M = F !== "success";
5602
+ switch (p = p.filter((P) => P !== k), l) {
5597
5603
  case "pending":
5598
5604
  break;
5599
5605
  case "failed":
5600
- if (O || !e.dataAfterTimeout)
5606
+ if (M || !e.dataAfterTimeout)
5601
5607
  return;
5602
5608
  break;
5603
5609
  default:
5604
5610
  return;
5605
5611
  }
5606
- if (R === "abort") {
5612
+ if (F === "abort") {
5607
5613
  c = L, y();
5608
5614
  return;
5609
5615
  }
5610
- if (O) {
5616
+ if (M) {
5611
5617
  c = L, p.length || (s.length ? A() : y());
5612
5618
  return;
5613
5619
  }
5614
5620
  if (b(), C(), !e.random) {
5615
- const D = e.resources.indexOf(k.resource);
5616
- D !== -1 && D !== e.index && (e.index = D);
5621
+ const P = e.resources.indexOf(k.resource);
5622
+ P !== -1 && P !== e.index && (e.index = P);
5617
5623
  }
5618
- l = "completed", _.forEach((D) => {
5619
- D(L);
5624
+ l = "completed", v.forEach((P) => {
5625
+ P(L);
5620
5626
  });
5621
5627
  }
5622
5628
  function A() {
@@ -5634,14 +5640,14 @@ function sendQuery(e, t, r, n) {
5634
5640
  y();
5635
5641
  return;
5636
5642
  }
5637
- const R = {
5643
+ const F = {
5638
5644
  status: "pending",
5639
5645
  resource: k,
5640
- callback: (L, O) => {
5641
- E(R, L, O);
5646
+ callback: (L, M) => {
5647
+ E(F, L, M);
5642
5648
  }
5643
5649
  };
5644
- p.push(R), u++, g = setTimeout(A, e.rotate), r(k, t, R.callback);
5650
+ p.push(F), u++, g = setTimeout(A, e.rotate), r(k, t, F.callback);
5645
5651
  }
5646
5652
  return setTimeout(A), T;
5647
5653
  }
@@ -5908,8 +5914,8 @@ const loadIcons = (e, t) => {
5908
5914
  const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
5909
5915
  g[c] || (g[c] = []);
5910
5916
  }), n.pending.forEach((l) => {
5911
- const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5912
- _.has(g) || (_.add(g), a[u][c].push(g));
5917
+ const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), v = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5918
+ v.has(g) || (v.add(g), a[u][c].push(g));
5913
5919
  }), o.forEach((l) => {
5914
5920
  const { provider: u, prefix: c } = l;
5915
5921
  a[u][c].length && loadNewIcons(l, a[u][c]);
@@ -6018,8 +6024,8 @@ function fixSize(e) {
6018
6024
  const render = (e, t) => {
6019
6025
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
6020
6026
  for (let m in t) {
6021
- const v = t[m];
6022
- if (v !== void 0)
6027
+ const _ = t[m];
6028
+ if (_ !== void 0)
6023
6029
  switch (m) {
6024
6030
  case "icon":
6025
6031
  case "style":
@@ -6029,24 +6035,24 @@ const render = (e, t) => {
6029
6035
  case "inline":
6030
6036
  case "hFlip":
6031
6037
  case "vFlip":
6032
- r[m] = v === !0 || v === "true" || v === 1;
6038
+ r[m] = _ === !0 || _ === "true" || _ === 1;
6033
6039
  break;
6034
6040
  case "flip":
6035
- typeof v == "string" && flipFromString(r, v);
6041
+ typeof _ == "string" && flipFromString(r, _);
6036
6042
  break;
6037
6043
  case "color":
6038
- o.color = v;
6044
+ o.color = _;
6039
6045
  break;
6040
6046
  case "rotate":
6041
- typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
6047
+ typeof _ == "string" ? r[m] = rotateFromString(_) : typeof _ == "number" && (r[m] = _);
6042
6048
  break;
6043
6049
  case "ariaHidden":
6044
6050
  case "aria-hidden":
6045
- v !== !0 && v !== "true" && delete n["aria-hidden"];
6051
+ _ !== !0 && _ !== "true" && delete n["aria-hidden"];
6046
6052
  break;
6047
6053
  default: {
6048
6054
  const T = customisationAliases[m];
6049
- T ? (v === !0 || v === "true" || v === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
6055
+ T ? (_ === !0 || _ === "true" || _ === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
6050
6056
  }
6051
6057
  }
6052
6058
  }
@@ -6056,10 +6062,10 @@ const render = (e, t) => {
6056
6062
  ...o,
6057
6063
  ...i
6058
6064
  }, Object.assign(n, u);
6059
- let m = 0, v = t.id;
6060
- return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + m++ : "iconifyVue"), h("svg", n);
6065
+ let m = 0, _ = t.id;
6066
+ return typeof _ == "string" && (_ = _.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + m++ : "iconifyVue"), h("svg", n);
6061
6067
  }
6062
- const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
6068
+ const { body: c, width: g, height: p } = e, v = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
6063
6069
  ...u,
6064
6070
  width: g + "",
6065
6071
  height: p + ""
@@ -6070,7 +6076,7 @@ const render = (e, t) => {
6070
6076
  width: fixSize(u.width),
6071
6077
  height: fixSize(u.height),
6072
6078
  ...commonProps,
6073
- ..._ ? monotoneProps : coloredProps,
6079
+ ...v ? monotoneProps : coloredProps,
6074
6080
  ...i
6075
6081
  }, h("span", n);
6076
6082
  };
@@ -6236,8 +6242,8 @@ function createOptionsStore(e, t, r, n) {
6236
6242
  const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
6237
6243
  return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
6238
6244
  setActivePinia(r);
6239
- const _ = r._s.get(e);
6240
- return s[p].call(_, _);
6245
+ const v = r._s.get(e);
6246
+ return s[p].call(v, v);
6241
6247
  })), g), {}));
6242
6248
  }
6243
6249
  return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
@@ -6256,26 +6262,26 @@ function createSetupStore(e, t, r = {}, n, a) {
6256
6262
  deep: !0
6257
6263
  };
6258
6264
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
6259
- u ? _ = L : u == !1 && !k._hotUpdating && (Array.isArray(_) ? _.push(L) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6265
+ u ? v = L : u == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(L) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6260
6266
  });
6261
- let u, c, g = markRaw([]), p = markRaw([]), _;
6267
+ let u, c, g = markRaw([]), p = markRaw([]), v;
6262
6268
  const b = n.state.value[e];
6263
6269
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6264
6270
  const m = ref({});
6265
- function v(L) {
6266
- let O;
6267
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof L == "function" ? (L(n.state.value[e]), O = {
6271
+ function _(L) {
6272
+ let M;
6273
+ u = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof L == "function" ? (L(n.state.value[e]), M = {
6268
6274
  type: MutationType.patchFunction,
6269
6275
  storeId: e,
6270
- events: _
6271
- }) : (mergeReactiveObjects(n.state.value[e], L), O = {
6276
+ events: v
6277
+ }) : (mergeReactiveObjects(n.state.value[e], L), M = {
6272
6278
  type: MutationType.patchObject,
6273
6279
  payload: L,
6274
6280
  storeId: e,
6275
- events: _
6281
+ events: v
6276
6282
  }), nextTick().then(() => {
6277
6283
  u = !0;
6278
- }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6284
+ }), c = !0, triggerSubscriptions(g, M, n.state.value[e]);
6279
6285
  }
6280
6286
  const T = process.env.NODE_ENV !== "production" ? () => {
6281
6287
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -6283,30 +6289,30 @@ function createSetupStore(e, t, r = {}, n, a) {
6283
6289
  function y() {
6284
6290
  o.stop(), g = [], p = [], n._s.delete(e);
6285
6291
  }
6286
- function C(L, O) {
6292
+ function C(L, M) {
6287
6293
  return function() {
6288
6294
  setActivePinia(n);
6289
- const D = Array.from(arguments), $ = [], V = [];
6290
- function w(N) {
6291
- $.push(N);
6295
+ const P = Array.from(arguments), $ = [], w = [];
6296
+ function D(V) {
6297
+ $.push(V);
6292
6298
  }
6293
- function I(N) {
6294
- V.push(N);
6299
+ function O(V) {
6300
+ w.push(V);
6295
6301
  }
6296
6302
  triggerSubscriptions(p, {
6297
- args: D,
6303
+ args: P,
6298
6304
  name: L,
6299
6305
  store: k,
6300
- after: w,
6301
- onError: I
6306
+ after: D,
6307
+ onError: O
6302
6308
  });
6303
- let M;
6309
+ let I;
6304
6310
  try {
6305
- M = O.apply(this && this.$id === e ? this : k, D);
6306
- } catch (N) {
6307
- throw triggerSubscriptions(V, N), N;
6311
+ I = M.apply(this && this.$id === e ? this : k, P);
6312
+ } catch (V) {
6313
+ throw triggerSubscriptions(w, V), V;
6308
6314
  }
6309
- return M instanceof Promise ? M.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, M), M);
6315
+ return I instanceof Promise ? I.then((V) => (triggerSubscriptions($, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions($, I), I);
6310
6316
  };
6311
6317
  }
6312
6318
  const E = /* @__PURE__ */ markRaw({
@@ -6318,17 +6324,17 @@ function createSetupStore(e, t, r = {}, n, a) {
6318
6324
  _p: n,
6319
6325
  $id: e,
6320
6326
  $onAction: addSubscription.bind(null, p),
6321
- $patch: v,
6327
+ $patch: _,
6322
6328
  $reset: T,
6323
- $subscribe(L, O = {}) {
6324
- const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6325
- (O.flush === "sync" ? c : u) && L({
6329
+ $subscribe(L, M = {}) {
6330
+ const P = addSubscription(g, L, M.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (w) => {
6331
+ (M.flush === "sync" ? c : u) && L({
6326
6332
  storeId: e,
6327
6333
  type: MutationType.direct,
6328
- events: _
6329
- }, V);
6330
- }, assign$1({}, l, O)));
6331
- return D;
6334
+ events: v
6335
+ }, w);
6336
+ }, assign$1({}, l, M)));
6337
+ return P;
6332
6338
  },
6333
6339
  $dispose: y
6334
6340
  }, k = reactive(assign$1(
@@ -6339,74 +6345,74 @@ function createSetupStore(e, t, r = {}, n, a) {
6339
6345
  A
6340
6346
  ));
6341
6347
  n._s.set(e, k);
6342
- const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
6343
- for (const L in R) {
6344
- const O = R[L];
6345
- if (isRef(O) && !isComputed(O) || isReactive(O))
6346
- process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(R, L)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[L] : mergeReactiveObjects(O, b[L])), n.state.value[e][L] = O), process.env.NODE_ENV !== "production" && E.state.push(L);
6347
- else if (typeof O == "function") {
6348
- const D = process.env.NODE_ENV !== "production" && a ? O : C(L, O);
6349
- R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
6348
+ const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
6349
+ for (const L in F) {
6350
+ const M = F[L];
6351
+ if (isRef(M) && !isComputed(M) || isReactive(M))
6352
+ process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(F, L)) : s || (b && shouldHydrate(M) && (isRef(M) ? M.value = b[L] : mergeReactiveObjects(M, b[L])), n.state.value[e][L] = M), process.env.NODE_ENV !== "production" && E.state.push(L);
6353
+ else if (typeof M == "function") {
6354
+ const P = process.env.NODE_ENV !== "production" && a ? M : C(L, M);
6355
+ F[L] = P, process.env.NODE_ENV !== "production" && (E.actions[L] = M), i.actions[L] = M;
6350
6356
  } else
6351
- process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[L] = s ? r.getters[L] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(L));
6357
+ process.env.NODE_ENV !== "production" && isComputed(M) && (E.getters[L] = s ? r.getters[L] : M, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(L));
6352
6358
  }
6353
- if (assign$1(k, R), assign$1(toRaw(k), R), Object.defineProperty(k, "$state", {
6359
+ if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
6354
6360
  get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6355
6361
  set: (L) => {
6356
6362
  if (process.env.NODE_ENV !== "production" && a)
6357
6363
  throw new Error("cannot set hotState");
6358
- v((O) => {
6359
- assign$1(O, L);
6364
+ _((M) => {
6365
+ assign$1(M, L);
6360
6366
  });
6361
6367
  }
6362
6368
  }), process.env.NODE_ENV !== "production") {
6363
- k._hotUpdate = markRaw((O) => {
6364
- k._hotUpdating = !0, O._hmrPayload.state.forEach((D) => {
6365
- if (D in k.$state) {
6366
- const $ = O.$state[D], V = k.$state[D];
6367
- typeof $ == "object" && isPlainObject($) && isPlainObject(V) ? patchObject($, V) : O.$state[D] = V;
6369
+ k._hotUpdate = markRaw((M) => {
6370
+ k._hotUpdating = !0, M._hmrPayload.state.forEach((P) => {
6371
+ if (P in k.$state) {
6372
+ const $ = M.$state[P], w = k.$state[P];
6373
+ typeof $ == "object" && isPlainObject($) && isPlainObject(w) ? patchObject($, w) : M.$state[P] = w;
6368
6374
  }
6369
- set(k, D, toRef(O.$state, D));
6370
- }), Object.keys(k.$state).forEach((D) => {
6371
- D in O.$state || del(k, D);
6372
- }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6375
+ set(k, P, toRef(M.$state, P));
6376
+ }), Object.keys(k.$state).forEach((P) => {
6377
+ P in M.$state || del(k, P);
6378
+ }), u = !1, c = !1, n.state.value[e] = toRef(M._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6373
6379
  u = !0;
6374
6380
  });
6375
- for (const D in O._hmrPayload.actions) {
6376
- const $ = O[D];
6377
- set(k, D, C(D, $));
6381
+ for (const P in M._hmrPayload.actions) {
6382
+ const $ = M[P];
6383
+ set(k, P, C(P, $));
6378
6384
  }
6379
- for (const D in O._hmrPayload.getters) {
6380
- const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
6381
- set(k, D, V);
6385
+ for (const P in M._hmrPayload.getters) {
6386
+ const $ = M._hmrPayload.getters[P], w = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
6387
+ set(k, P, w);
6382
6388
  }
6383
- Object.keys(k._hmrPayload.getters).forEach((D) => {
6384
- D in O._hmrPayload.getters || del(k, D);
6385
- }), Object.keys(k._hmrPayload.actions).forEach((D) => {
6386
- D in O._hmrPayload.actions || del(k, D);
6387
- }), k._hmrPayload = O._hmrPayload, k._getters = O._getters, k._hotUpdating = !1;
6389
+ Object.keys(k._hmrPayload.getters).forEach((P) => {
6390
+ P in M._hmrPayload.getters || del(k, P);
6391
+ }), Object.keys(k._hmrPayload.actions).forEach((P) => {
6392
+ P in M._hmrPayload.actions || del(k, P);
6393
+ }), k._hmrPayload = M._hmrPayload, k._getters = M._getters, k._hotUpdating = !1;
6388
6394
  });
6389
6395
  const L = {
6390
6396
  writable: !0,
6391
6397
  configurable: !0,
6392
6398
  enumerable: !1
6393
6399
  };
6394
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6395
- Object.defineProperty(k, O, {
6396
- value: k[O],
6400
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((M) => {
6401
+ Object.defineProperty(k, M, {
6402
+ value: k[M],
6397
6403
  ...L
6398
6404
  });
6399
6405
  });
6400
6406
  }
6401
6407
  return n._p.forEach((L) => {
6402
6408
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6403
- const O = o.run(() => L({
6409
+ const M = o.run(() => L({
6404
6410
  store: k,
6405
6411
  app: n._a,
6406
6412
  pinia: n,
6407
6413
  options: i
6408
6414
  }));
6409
- Object.keys(O || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, O);
6415
+ Object.keys(M || {}).forEach((P) => k._customProperties.add(P)), assign$1(k, M);
6410
6416
  } else
6411
6417
  assign$1(k, o.run(() => L({
6412
6418
  store: k,
@@ -6520,13 +6526,14 @@ function pinia() {
6520
6526
  throw new Error("[@kengic/vue] pinia \u4E3A\u7A7A.");
6521
6527
  return _pinia;
6522
6528
  }
6523
- addIcon("ant-design:plus-outlined", data$1);
6524
- addIcon("ant-design:edit-outlined", data$3);
6525
- addIcon("ant-design:delete-outlined", data$5);
6526
- addIcon("ant-design:stop-outlined", data);
6527
- addIcon("ant-design:check-outlined", data$6);
6528
- addIcon("ant-design:download-outlined", data$4);
6529
- addIcon("ant-design:info-circle-outlined", data$2);
6529
+ addIcon("ant-design:plus-outlined", data$2);
6530
+ addIcon("ant-design:edit-outlined", data$4);
6531
+ addIcon("ant-design:delete-outlined", data$6);
6532
+ addIcon("ant-design:stop-outlined", data$1);
6533
+ addIcon("ant-design:audit-outlined", data);
6534
+ addIcon("ant-design:check-outlined", data$7);
6535
+ addIcon("ant-design:download-outlined", data$5);
6536
+ addIcon("ant-design:info-circle-outlined", data$3);
6530
6537
  function setup(e) {
6531
6538
  var r;
6532
6539
  if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
@@ -6775,7 +6782,7 @@ class KgRouteUtil {
6775
6782
  }), t;
6776
6783
  }
6777
6784
  }
6778
- const getProps$w = () => ({
6785
+ const KgResizable$1 = "", getProps$w = () => ({
6779
6786
  kgType: {
6780
6787
  type: String,
6781
6788
  default: "bottom"
@@ -6806,7 +6813,8 @@ const getProps$w = () => ({
6806
6813
  kgMaxHeight: {
6807
6814
  type: Number,
6808
6815
  default: 999
6809
- }
6816
+ },
6817
+ kgClass: String
6810
6818
  }), KgResizable = defineComponent({
6811
6819
  name: "KgResizable",
6812
6820
  props: getProps$w(),
@@ -6850,8 +6858,8 @@ const getProps$w = () => ({
6850
6858
  };
6851
6859
  }
6852
6860
  }), c = computed(() => {
6853
- let y = "kg-resizable";
6854
- switch (e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
6861
+ let y = "";
6862
+ switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
6855
6863
  case "left":
6856
6864
  y += " kg-resizable--left";
6857
6865
  break;
@@ -6889,16 +6897,16 @@ const getProps$w = () => ({
6889
6897
  break;
6890
6898
  }
6891
6899
  };
6892
- function _(y) {
6900
+ function v(y) {
6893
6901
  p(y);
6894
6902
  }
6895
6903
  function b(y) {
6896
6904
  p(y), g();
6897
6905
  }
6898
6906
  function m(y) {
6899
- y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
6907
+ y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", b));
6900
6908
  }
6901
- function v(y, C, E) {
6909
+ function _(y, C, E) {
6902
6910
  return y.addEventListener(C, E), {
6903
6911
  remove: () => y.removeEventListener(C, E)
6904
6912
  };
@@ -7134,14 +7142,14 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7134
7142
  var b, m;
7135
7143
  return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
7136
7144
  });
7137
- l.onRowDoubleClick(() => _());
7145
+ l.onRowDoubleClick(() => v());
7138
7146
  function p() {
7139
7147
  r("update:visible", !1);
7140
7148
  }
7141
- function _() {
7142
- var b, m, v, T, y, C, E;
7149
+ function v() {
7150
+ var b, m, _, T, y, C, E;
7143
7151
  if (c.value) {
7144
- const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (v = A.map((R) => R[g.value])) != null ? v : [];
7152
+ const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((F) => F[g.value])) != null ? _ : [];
7145
7153
  (!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
7146
7154
  } else {
7147
7155
  const A = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = A == null ? void 0 : A[g.value]) != null ? E : "";
@@ -7159,7 +7167,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7159
7167
  },
7160
7168
  wrapClassName: "kg-form-item-addon-lookup-modal",
7161
7169
  onCancel: p,
7162
- onOk: _
7170
+ onOk: v
7163
7171
  }, {
7164
7172
  default: () => [createVNode(KgVar, null, null)]
7165
7173
  });
@@ -7218,7 +7226,7 @@ function _useServices$2(e) {
7218
7226
  return KgUtil.tryParseJSON((s = n.value) == null ? void 0 : s.ctrl_prop);
7219
7227
  });
7220
7228
  function o(s) {
7221
- var u, c, g, p, _;
7229
+ var u, c, g, p, v;
7222
7230
  if (!s)
7223
7231
  return [];
7224
7232
  const i = (c = (u = r.value) == null ? void 0 : u.val_clm) != null ? c : "", l = (p = (g = r.value) == null ? void 0 : g.val_data_type) != null ? p : "string";
@@ -7249,7 +7257,7 @@ function _useServices$2(e) {
7249
7257
  });
7250
7258
  break;
7251
7259
  }
7252
- return (_ = a.value) != null && _.excludeValues ? s.filter((b) => {
7260
+ return (v = a.value) != null && v.excludeValues ? s.filter((b) => {
7253
7261
  var m;
7254
7262
  return !((m = a.value.excludeValues) != null && m.includes(b[i]));
7255
7263
  }) : s;
@@ -7271,7 +7279,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7271
7279
  }) {
7272
7280
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
7273
7281
  transformDatas: i
7274
- } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), _ = computed(() => {
7282
+ } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), v = computed(() => {
7275
7283
  var C;
7276
7284
  let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
7277
7285
  return y = mapValues(y, (E) => {
@@ -7286,7 +7294,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7286
7294
  var y;
7287
7295
  return KgUtil.tryParseJSON((y = p.value) == null ? void 0 : y.ctrl_prop);
7288
7296
  });
7289
- watch(_, () => {
7297
+ watch(v, () => {
7290
7298
  var y;
7291
7299
  (y = g.value) != null && y.id && m();
7292
7300
  }, {
@@ -7295,7 +7303,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7295
7303
  var A, k;
7296
7304
  const E = get(y, "length", 0);
7297
7305
  if (E > 0 && C.length > 0) {
7298
- const R = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((O) => O[R]));
7306
+ const F = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((M) => M[F]));
7299
7307
  if (L.length < E) {
7300
7308
  r("update:value", L);
7301
7309
  return;
@@ -7316,8 +7324,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7316
7324
  immediate: !0
7317
7325
  });
7318
7326
  async function m() {
7319
- var R, L, O, D, $, V, w, I, M;
7320
- const y = (R = g.value) == null ? void 0 : R.cmd, C = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", A = (w = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? w : "";
7327
+ var F, L, M, P, $, w, D, O, I;
7328
+ const y = (F = g.value) == null ? void 0 : F.cmd, C = (M = (L = g.value) == null ? void 0 : L.cmd_method) != null ? M : "GET", E = ($ = (P = g.value) == null ? void 0 : P.val_clm) != null ? $ : "", A = (D = (w = g.value) == null ? void 0 : w.lbl_clm) != null ? D : "";
7321
7329
  if (!y || !E || !A) {
7322
7330
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7323
7331
  frm_id: a.formID,
@@ -7330,11 +7338,11 @@ const KgFormItemCheckboxGroup = defineComponent({
7330
7338
  }
7331
7339
  let k = null;
7332
7340
  try {
7333
- k = await ((I = httpClient()) == null ? void 0 : I.request({
7341
+ k = await ((O = httpClient()) == null ? void 0 : O.request({
7334
7342
  url: y,
7335
7343
  method: C,
7336
- params: _.value,
7337
- data: _.value
7344
+ params: v.value,
7345
+ data: v.value
7338
7346
  }));
7339
7347
  } catch {
7340
7348
  }
@@ -7350,23 +7358,23 @@ const KgFormItemCheckboxGroup = defineComponent({
7350
7358
  break;
7351
7359
  }
7352
7360
  if (c.value.length > 0) {
7353
- const N = c.value[0];
7354
- (!(E in N) || !(A in N)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7361
+ const V = c.value[0];
7362
+ (!(E in V) || !(A in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7355
7363
  frm_id: a.formID,
7356
7364
  var_nam: e.kgVarName,
7357
7365
  cmd: y,
7358
7366
  val_clm: E,
7359
7367
  lbl_clm: A,
7360
- \u6240\u6709\u5217: Object.keys(N)
7368
+ \u6240\u6709\u5217: Object.keys(V)
7361
7369
  });
7362
7370
  }
7363
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
7371
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((I = c.value) == null ? void 0 : I.map((V) => V[E]), e.value));
7364
7372
  }
7365
- function v(y) {
7373
+ function _(y) {
7366
7374
  var C, E, A;
7367
7375
  y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
7368
- var R, L;
7369
- return k[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""];
7376
+ var F, L;
7377
+ return k[(L = (F = g.value) == null ? void 0 : F.val_clm) != null ? L : ""];
7370
7378
  })) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
7371
7379
  }
7372
7380
  function T(y) {
@@ -7381,7 +7389,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7381
7389
  checked: l.value,
7382
7390
  "onUpdate:checked": (E) => l.value = E,
7383
7391
  indeterminate: u.value,
7384
- onChange: v
7392
+ onChange: _
7385
7393
  }, _isSlot$8(y = n.t("kg.selectAll")) ? y : {
7386
7394
  default: () => [y]
7387
7395
  })]
@@ -7397,14 +7405,14 @@ const KgFormItemCheckboxGroup = defineComponent({
7397
7405
  span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
7398
7406
  }, {
7399
7407
  default: () => {
7400
- var R, L, O, D;
7408
+ var F, L, M, P;
7401
7409
  return [createVNode(Checkbox, {
7402
- value: E[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""],
7403
- "kg-value": E[(D = (O = g.value) == null ? void 0 : O.val_clm) != null ? D : ""]
7410
+ value: E[(L = (F = g.value) == null ? void 0 : F.val_clm) != null ? L : ""],
7411
+ "kg-value": E[(P = (M = g.value) == null ? void 0 : M.val_clm) != null ? P : ""]
7404
7412
  }, {
7405
7413
  default: () => {
7406
- var $, V;
7407
- return [E[(V = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? V : ""]];
7414
+ var $, w;
7415
+ return [E[(w = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? w : ""]];
7408
7416
  }
7409
7417
  })];
7410
7418
  }
@@ -7571,10 +7579,10 @@ const KgFormItemSelect = defineComponent({
7571
7579
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
7572
7580
  transformDatas: o
7573
7581
  } = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
7574
- var _;
7575
- let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
7582
+ var v;
7583
+ let p = KgVarUtil.parseCommandParameter((v = i.value) == null ? void 0 : v.cmd_prm);
7576
7584
  return p = mapValues(p, (b) => {
7577
- var m, v;
7585
+ var m, _;
7578
7586
  if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7579
7587
  let T = b.slice(1, -1), y = "";
7580
7588
  if (T.includes(".")) {
@@ -7582,7 +7590,7 @@ const KgFormItemSelect = defineComponent({
7582
7590
  T = C[0], y = C[1];
7583
7591
  }
7584
7592
  if (a.value && T in a.value)
7585
- return y ? (v = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? v : void 0 : a.value[T];
7593
+ return y ? (_ = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[T];
7586
7594
  }
7587
7595
  return b;
7588
7596
  }), p;
@@ -7594,8 +7602,8 @@ const KgFormItemSelect = defineComponent({
7594
7602
  immediate: !0
7595
7603
  });
7596
7604
  async function u() {
7597
- var T, y, C, E, A, k, R, L;
7598
- const p = (T = i.value) == null ? void 0 : T.cmd, _ = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
7605
+ var T, y, C, E, A, k, F, L;
7606
+ const p = (T = i.value) == null ? void 0 : T.cmd, v = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7599
7607
  if (!p || !b || !m) {
7600
7608
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7601
7609
  frm_id: n.formID,
@@ -7606,52 +7614,52 @@ const KgFormItemSelect = defineComponent({
7606
7614
  });
7607
7615
  return;
7608
7616
  }
7609
- let v = null;
7617
+ let _ = null;
7610
7618
  try {
7611
- v = await ((L = httpClient()) == null ? void 0 : L.request({
7619
+ _ = await ((L = httpClient()) == null ? void 0 : L.request({
7612
7620
  url: p,
7613
- method: _,
7621
+ method: v,
7614
7622
  params: l.value
7615
7623
  }));
7616
7624
  } catch {
7617
7625
  }
7618
- if (!isObjectLike(v))
7626
+ if (!isObjectLike(_))
7619
7627
  s.value = [];
7620
7628
  else
7621
7629
  switch (!0) {
7622
- case isArrayLike(v):
7623
- s.value = o(v);
7630
+ case isArrayLike(_):
7631
+ s.value = o(_);
7624
7632
  break;
7625
- case (v && "total" in v && "records" in v):
7626
- s.value = o(v.records);
7633
+ case (_ && "total" in _ && "records" in _):
7634
+ s.value = o(_.records);
7627
7635
  break;
7628
7636
  }
7629
7637
  if (s.value.length > 0) {
7630
- const O = s.value[0];
7631
- (!(b in O) || !(m in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7638
+ const M = s.value[0];
7639
+ (!(b in M) || !(m in M)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7632
7640
  frm_id: n.formID,
7633
7641
  var_nam: e.kgVarName,
7634
7642
  cmd: p,
7635
7643
  val_clm: b,
7636
7644
  lbl_clm: m,
7637
- \u6240\u6709\u5217: Object.keys(O)
7645
+ \u6240\u6709\u5217: Object.keys(M)
7638
7646
  });
7639
7647
  }
7640
- r("kgSelectDatasChange", s.value), s.value.find((O) => O[b] === e.value) || r("update:value", void 0);
7648
+ r("kgSelectDatasChange", s.value), s.value.find((M) => M[b] === e.value) || r("update:value", void 0);
7641
7649
  }
7642
7650
  function c(p) {
7643
7651
  var b;
7644
- const _ = (b = toRaw(s.value.find((m) => {
7645
- var v, T;
7646
- return m[(T = (v = i.value) == null ? void 0 : v.val_clm) != null ? T : ""] === p;
7652
+ const v = (b = toRaw(s.value.find((m) => {
7653
+ var _, T;
7654
+ return m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""] === p;
7647
7655
  }))) != null ? b : null;
7648
- r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
7656
+ r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
7649
7657
  }
7650
7658
  function g(p) {
7651
7659
  r("update:value", p), r("kgChange", p);
7652
7660
  }
7653
7661
  return () => {
7654
- var p, _, b;
7662
+ var p, v, b;
7655
7663
  return createVNode(Select, {
7656
7664
  value: e.value,
7657
7665
  "onUpdate:value": g,
@@ -7664,13 +7672,13 @@ const KgFormItemSelect = defineComponent({
7664
7672
  dropdownClassName: "kg-form-item-select-dropdown",
7665
7673
  style: "width: 100%",
7666
7674
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
7667
- "kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
7675
+ "kg-val-clm": (v = i.value) == null ? void 0 : v.val_clm,
7668
7676
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7669
7677
  }, {
7670
7678
  default: () => s.value.map((m) => {
7671
- var v, T, y, C;
7679
+ var _, T, y, C;
7672
7680
  return createVNode(Select.Option, {
7673
- "kg-value": m[(T = (v = i.value) == null ? void 0 : v.val_clm) != null ? T : ""],
7681
+ "kg-value": m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""],
7674
7682
  value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
7675
7683
  }, {
7676
7684
  default: () => {
@@ -7708,7 +7716,7 @@ function _useRules(e) {
7708
7716
  const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), a = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
7709
7717
  return {
7710
7718
  rules: computed(() => {
7711
- var l, u, c, g, p, _, b, m;
7719
+ var l, u, c, g, p, v, b, m;
7712
7720
  let i = [];
7713
7721
  switch (e.kgContext) {
7714
7722
  case KG_FORM_CONTEXT.SEARCH:
@@ -7746,13 +7754,13 @@ function _useRules(e) {
7746
7754
  }
7747
7755
  break;
7748
7756
  }
7749
- switch ((_ = a.value) == null ? void 0 : _.data_type) {
7757
+ switch ((v = a.value) == null ? void 0 : v.data_type) {
7750
7758
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7751
- const v = (b = a.value) == null ? void 0 : b.min;
7752
- isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7753
- validator: (T, y) => Number(y) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7759
+ const _ = (b = a.value) == null ? void 0 : b.min;
7760
+ isNil(_) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7761
+ validator: (T, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
7754
7762
  }) : i.push({
7755
- validator: (T, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7763
+ validator: (T, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
7756
7764
  }));
7757
7765
  break;
7758
7766
  }
@@ -7770,9 +7778,9 @@ const KgFormItem = defineComponent({
7770
7778
  }) {
7771
7779
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
7772
7780
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.isCreating(n.formID)), i = computed(() => n.store.isUpdating(n.formID)), l = computed(() => n.store.isCopying(n.formID)), u = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), c = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), g = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), p = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
7773
- rules: _
7781
+ rules: v
7774
7782
  } = _useRules(e), b = computed(() => {
7775
- var V, w, I, M, N;
7783
+ var w, D, O, I, V;
7776
7784
  if (n.isRetrievingVar.value)
7777
7785
  return !0;
7778
7786
  let $ = !1;
@@ -7781,95 +7789,95 @@ const KgFormItem = defineComponent({
7781
7789
  else
7782
7790
  switch (e.kgContext) {
7783
7791
  case KG_FORM_CONTEXT.SEARCH:
7784
- $ = ((V = g.value) == null ? void 0 : V.ena_flg) === 0;
7792
+ $ = ((w = g.value) == null ? void 0 : w.ena_flg) === 0;
7785
7793
  break;
7786
7794
  case KG_FORM_CONTEXT.SUBMIT:
7787
7795
  switch (!0) {
7788
7796
  case n.isCreating.value:
7789
- $ = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
7797
+ $ = ((D = p.value) == null ? void 0 : D.crt_ena_flg) === 0;
7790
7798
  break;
7791
7799
  case n.isUpdating.value:
7792
- $ = ((I = p.value) == null ? void 0 : I.upt_ena_flg) === 0;
7800
+ $ = ((O = p.value) == null ? void 0 : O.upt_ena_flg) === 0;
7793
7801
  break;
7794
7802
  case n.isCopying.value:
7795
- $ = ((M = p.value) == null ? void 0 : M.cpy_ena_flg) === 0;
7803
+ $ = ((I = p.value) == null ? void 0 : I.cpy_ena_flg) === 0;
7796
7804
  break;
7797
7805
  case n.isDeleting.value:
7798
- $ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
7806
+ $ = ((V = p.value) == null ? void 0 : V.del_ena_flg) === 0;
7799
7807
  break;
7800
7808
  }
7801
7809
  break;
7802
7810
  }
7803
7811
  return $;
7804
7812
  }), m = computed(() => {
7805
- var V, w, I, M;
7813
+ var w, D, O, I;
7806
7814
  let $ = " ";
7807
7815
  if (e.kgPlaceholder)
7808
7816
  $ = e.kgPlaceholder;
7809
7817
  else
7810
7818
  switch (e.kgContext) {
7811
7819
  case KG_FORM_CONTEXT.SEARCH:
7812
- $ = n.t((w = (V = g.value) == null ? void 0 : V.placeholder) != null ? w : " ").value;
7820
+ $ = n.t((D = (w = g.value) == null ? void 0 : w.placeholder) != null ? D : " ").value;
7813
7821
  break;
7814
7822
  case KG_FORM_CONTEXT.SUBMIT:
7815
- $ = n.t((M = (I = p.value) == null ? void 0 : I.placeholder) != null ? M : " ").value;
7823
+ $ = n.t((I = (O = p.value) == null ? void 0 : O.placeholder) != null ? I : " ").value;
7816
7824
  break;
7817
7825
  }
7818
7826
  return $;
7819
- }), v = computed(() => {
7820
- var V, w, I, M, N, F, U, G, x, H;
7827
+ }), _ = computed(() => {
7828
+ var w, D, O, I, V, R, H, G, x, U;
7821
7829
  let $ = 6;
7822
7830
  if (e.kgSpan !== void 0)
7823
7831
  $ = e.kgSpan;
7824
7832
  else
7825
7833
  switch (e.kgContext) {
7826
7834
  case KG_FORM_CONTEXT.SEARCH:
7827
- $ = (w = (V = g.value) == null ? void 0 : V.width) != null ? w : 6;
7835
+ $ = (D = (w = g.value) == null ? void 0 : w.width) != null ? D : 6;
7828
7836
  break;
7829
7837
  case KG_FORM_CONTEXT.SUBMIT:
7830
7838
  switch (!0) {
7831
7839
  case n.isCreating.value:
7832
- $ = (M = (I = p.value) == null ? void 0 : I.crt_width) != null ? M : 6;
7840
+ $ = (I = (O = p.value) == null ? void 0 : O.crt_width) != null ? I : 6;
7833
7841
  break;
7834
7842
  case n.isUpdating.value:
7835
- $ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
7843
+ $ = (R = (V = p.value) == null ? void 0 : V.upt_width) != null ? R : 6;
7836
7844
  break;
7837
7845
  case n.isCopying.value:
7838
- $ = (G = (U = p.value) == null ? void 0 : U.cpy_width) != null ? G : 6;
7846
+ $ = (G = (H = p.value) == null ? void 0 : H.cpy_width) != null ? G : 6;
7839
7847
  break;
7840
7848
  case n.isDeleting.value:
7841
- $ = (H = (x = p.value) == null ? void 0 : x.del_width) != null ? H : 6;
7849
+ $ = (U = (x = p.value) == null ? void 0 : x.del_width) != null ? U : 6;
7842
7850
  break;
7843
7851
  }
7844
7852
  }
7845
7853
  return Math.min(24, Math.max(1, $));
7846
7854
  }), T = computed(() => {
7847
- var I, M;
7855
+ var O, I;
7848
7856
  const $ = get(k.value, "$el.parentElement");
7849
- if ($ && !((I = $.classList) != null && I.contains("ant-row")))
7857
+ if ($ && !((O = $.classList) != null && O.contains("ant-row")))
7850
7858
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7851
- let V = {};
7852
- const w = Math.abs(Number.parseInt((M = get(k.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
7853
- return Number.isNaN(w) || (V = {
7854
- paddingLeft: `${w}px !important`,
7855
- paddingRight: `${w}px !important`
7856
- }), V;
7859
+ let w = {};
7860
+ const D = Math.abs(Number.parseInt((I = get(k.value, "$el.parentElement.style.marginLeft")) != null ? I : "0px"));
7861
+ return Number.isNaN(D) || (w = {
7862
+ paddingLeft: `${D}px !important`,
7863
+ paddingRight: `${D}px !important`
7864
+ }), w;
7857
7865
  }), y = computed(() => {
7858
- var V, w, I, M;
7866
+ var w, D, O, I;
7859
7867
  let $ = "kg-form-item";
7860
7868
  switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7861
7869
  case KG_FORM_CONTEXT.SEARCH:
7862
7870
  switch (!0) {
7863
- case ((V = g.value) == null ? void 0 : V.vis_flg) === 0:
7871
+ case ((w = g.value) == null ? void 0 : w.vis_flg) === 0:
7864
7872
  $ += " kg-form-item--invisible";
7865
7873
  break;
7866
7874
  }
7867
7875
  break;
7868
7876
  case KG_FORM_CONTEXT.SUBMIT:
7869
7877
  switch (!0) {
7870
- case (s.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
7871
- case (i.value && ((I = p.value) == null ? void 0 : I.upt_vis_flg) === 0):
7872
- case (l.value && ((M = p.value) == null ? void 0 : M.cpy_vis_flg) === 0):
7878
+ case (s.value && ((D = p.value) == null ? void 0 : D.crt_vis_flg) === 0):
7879
+ case (i.value && ((O = p.value) == null ? void 0 : O.upt_vis_flg) === 0):
7880
+ case (l.value && ((I = p.value) == null ? void 0 : I.cpy_vis_flg) === 0):
7873
7881
  $ += " kg-form-item--invisible";
7874
7882
  break;
7875
7883
  }
@@ -7877,12 +7885,12 @@ const KgFormItem = defineComponent({
7877
7885
  }
7878
7886
  return $;
7879
7887
  }), C = computed(() => {
7880
- var V;
7888
+ var w;
7881
7889
  const $ = {
7882
7890
  ...e,
7883
- value: (V = a.value) == null ? void 0 : V[e.kgVarName],
7884
- "onUpdate:value": (w) => {
7885
- a.value && (a.value[e.kgVarName] = w);
7891
+ value: (w = a.value) == null ? void 0 : w[e.kgVarName],
7892
+ "onUpdate:value": (D) => {
7893
+ a.value && (a.value[e.kgVarName] = D);
7886
7894
  },
7887
7895
  kgPlaceholder: m.value,
7888
7896
  kgDisabled: b.value,
@@ -7913,9 +7921,9 @@ const KgFormItem = defineComponent({
7913
7921
  var $;
7914
7922
  return ($ = c.value) == null ? void 0 : $.ctrl_typ;
7915
7923
  }), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7916
- function R($, V) {
7917
- var w;
7918
- a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (w = o.value) == null || w.validate([e.kgVarName]);
7924
+ function F($, w) {
7925
+ var D;
7926
+ a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", w), (D = o.value) == null || D.validate([e.kgVarName]);
7919
7927
  }
7920
7928
  function L() {
7921
7929
  if (t.control) {
@@ -7958,41 +7966,41 @@ const KgFormItem = defineComponent({
7958
7966
  return createVNode(KgFormItemInput, C.value, null);
7959
7967
  }
7960
7968
  }
7961
- function O() {
7969
+ function M() {
7962
7970
  return e.kgShowLabel ? createVNode("span", {
7963
7971
  title: n.t(e.kgVarName).value
7964
7972
  }, [n.t(e.kgVarName).value]) : null;
7965
7973
  }
7966
- function D() {
7974
+ function P() {
7967
7975
  var $;
7968
7976
  return !u.value || !(($ = u.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7969
7977
  default: () => [createVNode(KgFormItemAddonLookup, {
7970
7978
  kgDisabled: b.value,
7971
- onKgOk: R,
7979
+ onKgOk: F,
7972
7980
  kgLookupID: u.value.lkp_id
7973
7981
  }, null)]
7974
7982
  });
7975
7983
  }
7976
7984
  return () => {
7977
- var $, V;
7985
+ var $, w;
7978
7986
  return createVNode(Col, {
7979
7987
  ref: k,
7980
7988
  "kg-frm-id": n.formID,
7981
7989
  "kg-var-nam": e.kgVarName,
7982
7990
  "kg-lkp-id": ($ = u.value) == null ? void 0 : $.lkp_id,
7983
- "kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
7984
- span: v.value,
7991
+ "kg-lkp-ret-fld": (w = u.value) == null ? void 0 : w.ret_fld,
7992
+ span: _.value,
7985
7993
  class: y.value,
7986
7994
  style: T.value
7987
7995
  }, {
7988
7996
  default: () => [createVNode(Form.Item, {
7989
7997
  name: e.kgVarName,
7990
- rules: _.value,
7998
+ rules: v.value,
7991
7999
  validateFirst: !0,
7992
8000
  htmlFor: A.value
7993
8001
  }, {
7994
- default: () => createVNode(Fragment, null, [L(), D()]),
7995
- label: () => O()
8002
+ default: () => createVNode(Fragment, null, [L(), P()]),
8003
+ label: () => M()
7996
8004
  })]
7997
8005
  });
7998
8006
  };
@@ -8179,15 +8187,15 @@ function createStore(e, t, r) {
8179
8187
  _assignPluginFnProp: function(l, u) {
8180
8188
  var c = this[u];
8181
8189
  this[u] = function() {
8182
- var p = slice(arguments, 0), _ = this;
8190
+ var p = slice(arguments, 0), v = this;
8183
8191
  function b() {
8184
8192
  if (!!c)
8185
- return each$6(arguments, function(v, T) {
8186
- p[T] = v;
8187
- }), c.apply(_, p);
8193
+ return each$6(arguments, function(_, T) {
8194
+ p[T] = _;
8195
+ }), c.apply(v, p);
8188
8196
  }
8189
8197
  var m = [b].concat(p);
8190
- return l.apply(_, m);
8198
+ return l.apply(v, m);
8191
8199
  };
8192
8200
  },
8193
8201
  _serialize: function(l) {
@@ -8224,10 +8232,10 @@ function createStore(e, t, r) {
8224
8232
  var g = l.call(this);
8225
8233
  if (!isObject(g))
8226
8234
  throw new Error("Plugins must return an object of function properties");
8227
- each$6(g, function(p, _) {
8235
+ each$6(g, function(p, v) {
8228
8236
  if (!isFunction(p))
8229
- throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
8230
- u._assignPluginFnProp(p, _);
8237
+ throw new Error("Bad plugin property: " + v + " from plugin " + l.name + ". Plugins should only return functions.");
8238
+ u._assignPluginFnProp(p, v);
8231
8239
  });
8232
8240
  }
8233
8241
  },
@@ -9186,17 +9194,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9186
9194
  varVariableInputs: c,
9187
9195
  varPossibilities: g,
9188
9196
  varButtons: p,
9189
- varButtonConfig: _,
9197
+ varButtonConfig: v,
9190
9198
  varSubmitConfig: b,
9191
9199
  varSubmitFields: m,
9192
- varProfile: v,
9200
+ varProfile: _,
9193
9201
  varProfileConfig: T,
9194
9202
  varGrid: y,
9195
9203
  varGridConfig: C
9196
9204
  } = await GetAll({ params: { frm_id: e } });
9197
- this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, _ != null ? _ : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
9198
- varProfile: v != null ? v : null,
9199
- currentVarProfileMasterID: (n = (r = (t = v == null ? void 0 : v.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9205
+ this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
9206
+ varProfile: _ != null ? _ : null,
9207
+ currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9200
9208
  }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
9201
9209
  varGrid: transformVarGridDTO(y),
9202
9210
  currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
@@ -9348,12 +9356,12 @@ function useKgVar(e, t, r = 0) {
9348
9356
  i.leave(s);
9349
9357
  }));
9350
9358
  const l = ($) => computed(() => {
9351
- var V, w, I;
9352
- return (I = (w = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? w : $) != null ? I : "";
9353
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
9354
- var $, V;
9355
- return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9356
- }), k = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
9359
+ var w, D, O;
9360
+ return (O = (D = (w = i.getVarCatalog(s, $)) == null ? void 0 : w.var_text) != null ? D : $) != null ? O : "";
9361
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
9362
+ var $, w;
9363
+ return (w = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? w : null;
9364
+ }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), M = computed(() => i.getSystemVarGridDetails(s)), P = computed(() => i.getCurrentVarGridDetails(s));
9357
9365
  return {
9358
9366
  formID: s,
9359
9367
  store: i,
@@ -9361,20 +9369,20 @@ function useKgVar(e, t, r = 0) {
9361
9369
  isRetrievingVarProfileMaster: c,
9362
9370
  isRetrievingVarGridMaster: g,
9363
9371
  isCreating: p,
9364
- isUpdating: _,
9372
+ isUpdating: v,
9365
9373
  isCopying: b,
9366
9374
  isDeleting: m,
9367
- isOtherRequesting: v,
9375
+ isOtherRequesting: _,
9368
9376
  varButtons: T,
9369
9377
  varProfileMasters: y,
9370
9378
  currentVarProfileMaster: C,
9371
9379
  currentVarProfileMasterID: E,
9372
9380
  currentVarProfileDetails: A,
9373
9381
  varGridConfig: k,
9374
- varGridMasters: R,
9382
+ varGridMasters: F,
9375
9383
  currentVarGridMaster: L,
9376
- systemVarGridDetails: O,
9377
- currentVarGridDetails: D,
9384
+ systemVarGridDetails: M,
9385
+ currentVarGridDetails: P,
9378
9386
  t: l,
9379
9387
  onReady: o
9380
9388
  };
@@ -9611,8 +9619,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9611
9619
  }) => {
9612
9620
  const c = o.store.getVarSubmitConfig(o.formID);
9613
9621
  return i = watch(u, (g) => {
9614
- var p, _, b, m, v, T, y, C, E, A, k, R;
9615
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9622
+ var p, v, b, m, _, T, y, C, E, A, k, F;
9623
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9616
9624
  }, {
9617
9625
  immediate: !0
9618
9626
  }), !1;
@@ -9658,7 +9666,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9658
9666
  function p() {
9659
9667
  c.value = !0;
9660
9668
  }
9661
- function _() {
9669
+ function v() {
9662
9670
  r("kgCancel");
9663
9671
  }
9664
9672
  function b() {
@@ -9681,60 +9689,60 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9681
9689
  hostFormID: a.formID
9682
9690
  }, null)]) : null;
9683
9691
  }
9684
- function v() {
9692
+ function _() {
9685
9693
  return createVNode(Button, {
9686
9694
  disabled: u.value || l.value,
9687
9695
  class: "kg-submit--btn-close",
9688
- onClick: _
9696
+ onClick: v
9689
9697
  }, {
9690
9698
  default: () => [createVNode(CloseOutlined$1, null, null)]
9691
9699
  });
9692
9700
  }
9693
- return () => createVNode(Fragment, null, [m(), b(), v()]);
9701
+ return () => createVNode(Fragment, null, [m(), b(), _()]);
9694
9702
  }
9695
9703
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
9696
9704
  function _useFormModel() {
9697
9705
  const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
9698
- var b, m, v, T;
9706
+ var b, m, _, T;
9699
9707
  switch (!0) {
9700
9708
  case a.value:
9701
9709
  return (b = l.value) != null ? b : [];
9702
9710
  case o.value:
9703
9711
  return (m = u.value) != null ? m : [];
9704
9712
  case s.value:
9705
- return (v = c.value) != null ? v : [];
9713
+ return (_ = c.value) != null ? _ : [];
9706
9714
  case i.value:
9707
9715
  return (T = g.value) != null ? T : [];
9708
9716
  }
9709
9717
  return [];
9710
- }), _ = ref({});
9718
+ }), v = ref({});
9711
9719
  return watch(p, (b) => {
9712
- if (_.value = {}, b != null && b.length) {
9720
+ if (v.value = {}, b != null && b.length) {
9713
9721
  const m = r.selectedRow.value;
9714
- b.forEach((v) => {
9715
- var y, C, E, A, k, R, L, O;
9716
- const T = (y = v.var_nam) != null ? y : "";
9717
- switch (_.value[T] = void 0, !0) {
9722
+ b.forEach((_) => {
9723
+ var y, C, E, A, k, F, L, M;
9724
+ const T = (y = _.var_nam) != null ? y : "";
9725
+ switch (v.value[T] = void 0, !0) {
9718
9726
  case a.value:
9719
- _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = v.crt_dft_val) != null ? C : void 0);
9727
+ v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = _.crt_dft_val) != null ? C : void 0);
9720
9728
  break;
9721
9729
  case o.value:
9722
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = v.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
9730
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
9723
9731
  break;
9724
9732
  case s.value:
9725
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (R = (k = v.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? R : void 0);
9733
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (F = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? F : void 0);
9726
9734
  break;
9727
9735
  case i.value:
9728
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (L = v.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? O : void 0);
9736
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (M = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? M : void 0);
9729
9737
  break;
9730
9738
  }
9731
9739
  });
9732
9740
  }
9733
- n.store.setModel(t.formID, _.value);
9741
+ n.store.setModel(t.formID, v.value);
9734
9742
  }, {
9735
9743
  immediate: !0
9736
9744
  }), {
9737
- model: _
9745
+ model: v
9738
9746
  };
9739
9747
  }
9740
9748
  function _useResizeObserver$1(e) {
@@ -9771,23 +9779,23 @@ function _useTitle() {
9771
9779
  const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
9772
9780
  return {
9773
9781
  title: computed(() => {
9774
- var g, p, _, b;
9782
+ var g, p, v, b;
9775
9783
  switch (!0) {
9776
9784
  case r.value: {
9777
- const m = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(m).value;
9778
- return m === v ? e.t("kg.create") : v;
9785
+ const m = (g = s.value) == null ? void 0 : g.var_nam, _ = t.t(m).value;
9786
+ return m === _ ? e.t("kg.create") : _;
9779
9787
  }
9780
9788
  case n.value: {
9781
- const m = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(m).value;
9782
- return m === v ? e.t("kg.update") : v;
9789
+ const m = (p = i.value) == null ? void 0 : p.var_nam, _ = t.t(m).value;
9790
+ return m === _ ? e.t("kg.update") : _;
9783
9791
  }
9784
9792
  case a.value: {
9785
- const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
9786
- return m === v ? e.t("kg.copy") : v;
9793
+ const m = (v = l.value) == null ? void 0 : v.var_nam, _ = t.t(m).value;
9794
+ return m === _ ? e.t("kg.copy") : _;
9787
9795
  }
9788
9796
  case o.value: {
9789
- const m = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(m).value;
9790
- return m === v ? e.t("kg.delete") : v;
9797
+ const m = (b = u.value) == null ? void 0 : b.var_nam, _ = t.t(m).value;
9798
+ return m === _ ? e.t("kg.delete") : _;
9791
9799
  }
9792
9800
  }
9793
9801
  return "";
@@ -9810,9 +9818,9 @@ function _useLayout() {
9810
9818
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9811
9819
  return {
9812
9820
  getLayout: computed(() => {
9813
- var _, b, m, v, T;
9821
+ var v, b, m, _, T;
9814
9822
  let i = "vertical";
9815
- const l = (_ = o.value) == null ? void 0 : _.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (v = o.value) == null ? void 0 : v.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
9823
+ const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
9816
9824
  switch (!0) {
9817
9825
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9818
9826
  i = "horizontal";
@@ -9835,9 +9843,9 @@ function _useDisplayType() {
9835
9843
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9836
9844
  return {
9837
9845
  getDisplayType: computed(() => {
9838
- var b, m, v, T, y;
9846
+ var b, m, _, T, y;
9839
9847
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9840
- const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (v = o.value) == null ? void 0 : v.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
9848
+ const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
9841
9849
  switch (!0) {
9842
9850
  case (t.value && (c === l || !c && u === l)):
9843
9851
  i = l;
@@ -9848,7 +9856,7 @@ function _useDisplayType() {
9848
9856
  case (n.value && (p === l || !p && u === l)):
9849
9857
  i = l;
9850
9858
  break;
9851
- case (a.value && (_ === l || !_)):
9859
+ case (a.value && (v === l || !v)):
9852
9860
  i = l;
9853
9861
  break;
9854
9862
  }
@@ -9860,10 +9868,10 @@ function _useDefaultWidth() {
9860
9868
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9861
9869
  return {
9862
9870
  getDefaultWidth: computed(() => {
9863
- var _, b, m, v, T;
9871
+ var v, b, m, _, T;
9864
9872
  if (!o.value)
9865
9873
  return 0;
9866
- const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (v = o.value) == null ? void 0 : v.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
9874
+ const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
9867
9875
  let p = i || DEFAULT_WIDTH;
9868
9876
  switch (!0) {
9869
9877
  case (t.value && !!l):
@@ -9901,63 +9909,63 @@ const getProps$p = () => ({
9901
9909
  }) {
9902
9910
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9903
9911
  _useFormModel();
9904
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9905
- var B, W, Q;
9912
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && w.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), M = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), P = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9913
+ var B, z, Q;
9906
9914
  switch (!0) {
9907
9915
  case u.value:
9908
9916
  return (B = E.value) != null ? B : [];
9909
9917
  case c.value:
9910
- return (W = k.value) != null ? W : [];
9918
+ return (z = k.value) != null ? z : [];
9911
9919
  case g.value:
9912
9920
  return (Q = L.value) != null ? Q : [];
9913
9921
  case p.value:
9914
9922
  return [];
9915
9923
  }
9916
9924
  return [];
9917
- }), V = computed(() => {
9918
- var B, W, Q, te;
9925
+ }), w = computed(() => {
9926
+ var B, z, Q, re;
9919
9927
  switch (!0) {
9920
9928
  case u.value:
9921
9929
  return (B = A.value) != null ? B : [];
9922
9930
  case c.value:
9923
- return (W = R.value) != null ? W : [];
9931
+ return (z = F.value) != null ? z : [];
9924
9932
  case g.value:
9925
- return (Q = O.value) != null ? Q : [];
9933
+ return (Q = M.value) != null ? Q : [];
9926
9934
  case p.value:
9927
- return (te = D.value) != null ? te : [];
9935
+ return (re = P.value) != null ? re : [];
9928
9936
  }
9929
9937
  return [];
9930
- }), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => w.value || y.value), M = computed(() => y.value), N = ref({
9938
+ }), D = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), O = computed(() => D.value || y.value), I = computed(() => y.value), V = ref({
9931
9939
  kgWidth: 0
9932
- }), F = computed(() => {
9940
+ }), R = computed(() => {
9933
9941
  var B;
9934
- return !!(_.value || se.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
9935
- }), U = computed(() => {
9936
- var B, W;
9937
- return _.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9942
+ return !!(v.value || ie.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
9943
+ }), H = computed(() => {
9944
+ var B, z;
9945
+ return v.value ? 398 : (z = (B = C.value) == null ? void 0 : B.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9938
9946
  }), G = computed(() => {
9939
- var B, W;
9940
- return _.value ? 398 : (W = (B = C.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9941
- }), x = computed(() => _.value ? 398 : N.value.kgWidth), H = ref(null), Y = ref({}), X = ref(null);
9942
- _useResizeObserver$1(X);
9943
- const Z = _useTitle(), re = computed(() => _.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ne = computed(() => re.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), se = reactive({
9947
+ var B, z;
9948
+ return v.value ? 398 : (z = (B = C.value) == null ? void 0 : B.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9949
+ }), x = computed(() => v.value ? 398 : V.value.kgWidth), U = ref(null), q = ref({}), J = ref(null);
9950
+ _useResizeObserver$1(J);
9951
+ const Z = _useTitle(), ne = computed(() => v.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? V.value.kgWidth + 2 : 0), oe = computed(() => ne.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ie = reactive({
9944
9952
  isFullscreen: !1
9945
9953
  }), {
9946
- getDisplayType: de
9954
+ getDisplayType: pe
9947
9955
  } = _useDisplayType(), {
9948
- getClass: P
9949
- } = _useClass(e, se), {
9950
- getLayout: K
9956
+ getClass: te
9957
+ } = _useClass(e, ie), {
9958
+ getLayout: le
9951
9959
  } = _useLayout(), {
9952
- getDefaultWidth: z
9953
- } = _useDefaultWidth(), q = computed(() => {
9954
- var B, W, Q;
9955
- switch (K.value) {
9960
+ getDefaultWidth: N
9961
+ } = _useDefaultWidth(), K = computed(() => {
9962
+ var B, z, Q;
9963
+ switch (le.value) {
9956
9964
  case "horizontal":
9957
9965
  switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9958
9966
  case KG_WIDTH_UNIT.SPAN:
9959
9967
  return {
9960
- span: (W = C.value) == null ? void 0 : W.label_col
9968
+ span: (z = C.value) == null ? void 0 : z.label_col
9961
9969
  };
9962
9970
  default:
9963
9971
  return {
@@ -9969,14 +9977,14 @@ const getProps$p = () => ({
9969
9977
  default:
9970
9978
  return;
9971
9979
  }
9972
- }), J = computed(() => {
9973
- var B, W;
9974
- switch (K.value) {
9980
+ }), W = computed(() => {
9981
+ var B, z;
9982
+ switch (le.value) {
9975
9983
  case "horizontal":
9976
9984
  switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9977
9985
  case KG_WIDTH_UNIT.SPAN:
9978
9986
  return {
9979
- span: 24 - ((W = C.value) == null ? void 0 : W.label_col)
9987
+ span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
9980
9988
  };
9981
9989
  default:
9982
9990
  return;
@@ -9985,17 +9993,17 @@ const getProps$p = () => ({
9985
9993
  return;
9986
9994
  }
9987
9995
  });
9988
- watch(ne, (B, W) => {
9989
- B === !0 && ae(), W === !0 && B === !1 && pe();
9996
+ watch(oe, (B, z) => {
9997
+ B === !0 && Y(), z === !0 && B === !1 && ae();
9990
9998
  }, {
9991
9999
  immediate: !0
9992
- }), watch(z, (B) => {
9993
- B && (N.value.kgWidth = B);
10000
+ }), watch(N, (B) => {
10001
+ B && (V.value.kgWidth = B);
9994
10002
  }, {
9995
10003
  immediate: !0
9996
10004
  });
9997
- function ae() {
9998
- var W;
10005
+ function Y() {
10006
+ var z;
9999
10007
  const B = watch(s.model, (Q) => {
10000
10008
  Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
10001
10009
  isCreating: u.value,
@@ -10008,12 +10016,12 @@ const getProps$p = () => ({
10008
10016
  }, {
10009
10017
  immediate: !0
10010
10018
  });
10011
- ((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !_.value && (se.isFullscreen = !0);
10019
+ ((z = C.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !v.value && (ie.isFullscreen = !0);
10012
10020
  }
10013
- function pe() {
10014
- N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
10021
+ function ae() {
10022
+ V.value.kgWidth = N.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
10015
10023
  }
10016
- function he() {
10024
+ function X() {
10017
10025
  switch (!0) {
10018
10026
  case u.value:
10019
10027
  a.store.setIsCreating(a.formID, !1);
@@ -10029,8 +10037,8 @@ const getProps$p = () => ({
10029
10037
  break;
10030
10038
  }
10031
10039
  }
10032
- async function _e() {
10033
- var B, W;
10040
+ async function me() {
10041
+ var B, z;
10034
10042
  try {
10035
10043
  if (await s.store.emit(a.formID, "beforeOk", {
10036
10044
  isCreating: u.value,
@@ -10038,45 +10046,46 @@ const getProps$p = () => ({
10038
10046
  isCopying: g.value,
10039
10047
  isDeleting: p.value,
10040
10048
  row: o.selectedRow.value,
10041
- rules: Y,
10049
+ rules: q,
10042
10050
  model: s.model
10043
10051
  }))
10044
10052
  return;
10045
10053
  try {
10046
- await ((B = H.value) == null ? void 0 : B.validate());
10047
- } catch (oe) {
10048
- KgUtil.throwIfNotFormError(oe);
10054
+ await ((B = U.value) == null ? void 0 : B.validate());
10055
+ } catch (se) {
10056
+ KgUtil.throwIfNotFormError(se);
10049
10057
  }
10050
- if (await ((W = H.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
10058
+ if (await ((z = U.value) == null ? void 0 : z.validate()), await s.store.emit(a.formID, "afterValidate", {
10051
10059
  isCreating: u.value,
10052
10060
  isUpdating: c.value,
10053
10061
  isCopying: g.value,
10054
10062
  isDeleting: p.value,
10055
10063
  row: o.selectedRow.value,
10064
+ rows: o.selectedRows.value,
10056
10065
  model: s.model
10057
10066
  }))
10058
10067
  return;
10059
10068
  switch (!0) {
10060
10069
  case u.value:
10061
- await Se();
10070
+ await ve();
10062
10071
  break;
10063
10072
  case c.value:
10064
- await Ce();
10073
+ await Te();
10065
10074
  break;
10066
10075
  case g.value:
10067
- await Te();
10076
+ await Ee();
10068
10077
  break;
10069
10078
  case p.value:
10070
- await Ee();
10079
+ await ke();
10071
10080
  break;
10072
10081
  }
10073
10082
  } catch (Q) {
10074
10083
  KgUtil.throwIfNotFormError(Q);
10075
10084
  }
10076
10085
  }
10077
- async function Se() {
10078
- var W, Q, te, oe, ie, le, ue, ce;
10079
- const B = (W = b.value) == null ? void 0 : W.cmd;
10086
+ async function ve() {
10087
+ var z, Q, re, se, ue, ce, de, fe;
10088
+ const B = (z = b.value) == null ? void 0 : z.cmd;
10080
10089
  if (!B) {
10081
10090
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10082
10091
  VarButton: b.value
@@ -10085,32 +10094,34 @@ const getProps$p = () => ({
10085
10094
  }
10086
10095
  a.store.setIsCreatingRequesting(a.formID, !0);
10087
10096
  try {
10088
- const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), a.formID, r), fe = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
10097
+ let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r)), ge = ref(KgUtil.parseParams(toRaw(s.model.value), a.formID, r));
10089
10098
  if (await s.store.emit(a.formID, "beforeRequest", {
10090
10099
  isCreating: u.value,
10091
10100
  isUpdating: c.value,
10092
10101
  isCopying: g.value,
10093
10102
  isDeleting: p.value,
10094
10103
  row: o.selectedRow.value,
10104
+ rows: o.selectedRows.value,
10105
+ model: s.model,
10095
10106
  params: ee,
10096
- data: fe
10107
+ data: ge
10097
10108
  }))
10098
10109
  return;
10099
10110
  await httpClient().request({
10100
- method: (ie = (oe = b.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10111
+ method: (ue = (se = b.value) == null ? void 0 : se.cmd_method) != null ? ue : "POST",
10101
10112
  url: B,
10102
- params: ee,
10103
- data: fe
10104
- }), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
10113
+ params: ee.value,
10114
+ data: ge.value
10115
+ }), ((ce = b.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (fe = (de = i.search).value) == null || fe.call(de, !0);
10105
10116
  } catch (ee) {
10106
10117
  console.error(ee);
10107
10118
  } finally {
10108
10119
  a.store.setIsCreatingRequesting(a.formID, !1);
10109
10120
  }
10110
10121
  }
10111
- async function Ce() {
10112
- var W, Q, te, oe, ie, le, ue, ce;
10113
- const B = (W = m.value) == null ? void 0 : W.cmd;
10122
+ async function Te() {
10123
+ var z, Q, re, se, ue, ce, de, fe;
10124
+ const B = (z = m.value) == null ? void 0 : z.cmd;
10114
10125
  if (!B) {
10115
10126
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10116
10127
  VarButton: m.value
@@ -10119,69 +10130,73 @@ const getProps$p = () => ({
10119
10130
  }
10120
10131
  try {
10121
10132
  a.store.setIsUpdatingRequesting(a.formID, !0);
10122
- const ee = KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10133
+ let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), ge = ref(toRaw(s.model.value));
10123
10134
  if (await s.store.emit(a.formID, "beforeRequest", {
10124
10135
  isCreating: u.value,
10125
10136
  isUpdating: c.value,
10126
10137
  isCopying: g.value,
10127
10138
  isDeleting: p.value,
10128
10139
  row: o.selectedRow.value,
10140
+ rows: o.selectedRows.value,
10141
+ model: s.model,
10129
10142
  params: ee,
10130
- data: fe
10143
+ data: ge
10131
10144
  }))
10132
10145
  return;
10133
10146
  await httpClient().request({
10134
- method: (ie = (oe = m.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10147
+ method: (ue = (se = m.value) == null ? void 0 : se.cmd_method) != null ? ue : "POST",
10135
10148
  url: B,
10136
- params: ee,
10137
- data: fe
10138
- }), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue);
10149
+ params: ee.value,
10150
+ data: ge.value
10151
+ }), ((ce = m.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (fe = (de = i.search).value) == null || fe.call(de);
10139
10152
  } catch (ee) {
10140
10153
  console.error(ee);
10141
10154
  } finally {
10142
10155
  a.store.setIsUpdatingRequesting(a.formID, !1);
10143
10156
  }
10144
10157
  }
10145
- async function Te() {
10146
- var W, Q, te, oe, ie, le, ue, ce, ee, fe;
10147
- const B = (W = v.value) == null ? void 0 : W.cmd;
10158
+ async function Ee() {
10159
+ var z, Q, re, se, ue, ce, de, fe, ee, ge;
10160
+ const B = (z = _.value) == null ? void 0 : z.cmd;
10148
10161
  if (!B) {
10149
10162
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10150
- VarButton: v.value
10163
+ VarButton: _.value
10151
10164
  });
10152
10165
  return;
10153
10166
  }
10154
10167
  try {
10155
10168
  a.store.setIsCopyingRequesting(a.formID, !0);
10156
- const ge = KgVarUtil.parseCommandParameter((te = (Q = v.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10157
- ...(oe = o.selectedRow.value) != null ? oe : {},
10169
+ let he = ref(KgVarUtil.parseCommandParameter((re = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), _e = ref({
10170
+ ...(se = o.selectedRow.value) != null ? se : {},
10158
10171
  ...toRaw(s.model.value)
10159
- };
10160
- if (((ie = C.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10172
+ });
10173
+ if (((ue = C.value) == null ? void 0 : ue.cpy_clear_id_flg) !== 0 && delete _e.value.id, await s.store.emit(a.formID, "beforeRequest", {
10161
10174
  isCreating: u.value,
10162
10175
  isUpdating: c.value,
10163
10176
  isCopying: g.value,
10164
10177
  isDeleting: p.value,
10165
10178
  row: o.selectedRow.value,
10166
- params: ge,
10167
- data: me
10179
+ rows: o.selectedRows.value,
10180
+ model: s.model,
10181
+ params: he,
10182
+ data: _e
10168
10183
  }))
10169
10184
  return;
10170
10185
  await httpClient().request({
10171
- method: (ue = (le = v.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10186
+ method: (de = (ce = _.value) == null ? void 0 : ce.cmd_method) != null ? de : "POST",
10172
10187
  url: B,
10173
- params: ge,
10174
- data: me
10175
- }), ((ce = v.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (fe = (ee = i.search).value) == null || fe.call(ee, !0);
10176
- } catch (ge) {
10177
- console.error(ge);
10188
+ params: he.value,
10189
+ data: _e.value
10190
+ }), ((fe = _.value) == null ? void 0 : fe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ge = (ee = i.search).value) == null || ge.call(ee, !0);
10191
+ } catch (he) {
10192
+ console.error(he);
10178
10193
  } finally {
10179
10194
  a.store.setIsCopyingRequesting(a.formID, !1);
10180
10195
  }
10181
10196
  }
10182
- async function Ee() {
10183
- var W, Q, te, oe, ie, le, ue, ce;
10184
- const B = (W = T.value) == null ? void 0 : W.cmd;
10197
+ async function ke() {
10198
+ var z, Q, re, se, ue, ce, de, fe;
10199
+ const B = (z = T.value) == null ? void 0 : z.cmd;
10185
10200
  if (!B) {
10186
10201
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10187
10202
  VarButton: T.value
@@ -10190,153 +10205,156 @@ const getProps$p = () => ({
10190
10205
  }
10191
10206
  try {
10192
10207
  a.store.setIsDeletingRequesting(a.formID, !0);
10193
- const ee = {
10194
- ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
10195
- var me, ve, ye;
10196
- return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10197
- })) != null ? te : []
10198
- };
10208
+ let ee = ref({
10209
+ ids: (re = (Q = o.selectedRows.value) == null ? void 0 : Q.map((_e) => {
10210
+ var be, Se, Ce;
10211
+ return (Ce = _e[(Se = (be = T.value) == null ? void 0 : be.del_param_clm) != null ? Se : "id"]) != null ? Ce : "";
10212
+ })) != null ? re : []
10213
+ }), ge = ref({});
10199
10214
  if (await s.store.emit(a.formID, "beforeRequest", {
10200
10215
  isCreating: u.value,
10201
10216
  isUpdating: c.value,
10202
10217
  isCopying: g.value,
10203
10218
  isDeleting: p.value,
10204
10219
  row: o.selectedRow.value,
10220
+ rows: o.selectedRows.value,
10221
+ model: s.model,
10205
10222
  params: ee,
10206
- data: {}
10223
+ data: ge
10207
10224
  }))
10208
10225
  return;
10209
10226
  await httpClient().request({
10210
- method: (ie = (oe = T.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10227
+ method: (ue = (se = T.value) == null ? void 0 : se.cmd_method) != null ? ue : "DELETE",
10211
10228
  url: B,
10212
- params: ee
10229
+ params: ee.value,
10230
+ data: ge.value
10213
10231
  }, {
10214
10232
  joinParamsToUrl: !0
10215
- }), ((le = T.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
10233
+ }), ((ce = T.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (fe = (de = i.search).value) == null || fe.call(de, !0);
10216
10234
  } catch (ee) {
10217
10235
  console.error(ee);
10218
10236
  } finally {
10219
10237
  a.store.setIsDeletingRequesting(a.formID, !1);
10220
10238
  }
10221
10239
  }
10222
- function be(B) {
10223
- var Q, te;
10224
- const W = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[B.var_nam];
10225
- return isFunction$2(W) ? createVNode(KgForm.Item, {
10240
+ function ye(B) {
10241
+ var Q, re;
10242
+ const z = (re = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
10243
+ return isFunction$2(z) ? createVNode(KgForm.Item, {
10226
10244
  kgVarName: B.var_nam,
10227
10245
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10228
- kgRules: Y.value[B.var_nam],
10229
- onKgSubmit: _e
10246
+ kgRules: q.value[B.var_nam],
10247
+ onKgSubmit: me
10230
10248
  }, {
10231
10249
  control: ({
10232
- varName: oe,
10233
- props: ie,
10234
- model: le,
10235
- varConfig: ue,
10236
- varProfileDetail: ce,
10250
+ varName: se,
10251
+ props: ue,
10252
+ model: ce,
10253
+ varConfig: de,
10254
+ varProfileDetail: fe,
10237
10255
  varSubmitField: ee
10238
- }) => W({
10239
- varName: oe,
10240
- props: ie,
10241
- model: le,
10242
- varConfig: ue,
10243
- varProfileDetail: ce,
10256
+ }) => z({
10257
+ varName: se,
10258
+ props: ue,
10259
+ model: ce,
10260
+ varConfig: de,
10261
+ varProfileDetail: fe,
10244
10262
  varSubmitField: ee
10245
10263
  })
10246
10264
  }) : createVNode(KgForm.Item, {
10247
10265
  kgVarName: B.var_nam,
10248
10266
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10249
- kgRules: Y.value[B.var_nam],
10250
- onKgSubmit: _e
10267
+ kgRules: q.value[B.var_nam],
10268
+ onKgSubmit: me
10251
10269
  }, null);
10252
10270
  }
10253
- function ke() {
10254
- let B, W;
10271
+ function Ie() {
10272
+ let B, z;
10255
10273
  return createVNode(KgResizable, {
10256
- kgType: de.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10257
- kgMinWidth: U.value,
10274
+ kgType: pe.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10275
+ kgMinWidth: H.value,
10258
10276
  kgMaxWidth: G.value,
10259
10277
  kgWidth: x.value,
10260
- kgDisabled: F.value,
10261
- "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10278
+ kgDisabled: R.value,
10279
+ "onUpdate:kgWidth": (Q) => V.value.kgWidth = Q
10262
10280
  }, {
10263
10281
  default: () => [createVNode(Spin, {
10264
10282
  spinning: y.value
10265
10283
  }, {
10266
10284
  default: () => [createVNode(KgForm, {
10267
- ref: H,
10285
+ ref: U,
10268
10286
  model: s.model.value,
10269
- layout: K.value,
10270
- labelCol: q.value,
10271
- wrapperCol: J.value
10287
+ layout: le.value,
10288
+ labelCol: K.value,
10289
+ wrapperCol: W.value
10272
10290
  }, {
10273
10291
  default: () => [createVNode("div", {
10274
- ref: X
10292
+ ref: J
10275
10293
  }, [$.value.length > 0 && createVNode(Row, {
10276
10294
  gutter: 12
10277
- }, _isSlot$7(B = $.value.map(be)) ? B : {
10295
+ }, _isSlot$7(B = $.value.map(ye)) ? B : {
10278
10296
  default: () => [B]
10279
- }), $.value.length > 0 && V.value.length > 0 && createVNode(Divider, null, null), V.value.length > 0 && createVNode(Row, {
10297
+ }), $.value.length > 0 && w.value.length > 0 && createVNode(Divider, null, null), w.value.length > 0 && createVNode(Row, {
10280
10298
  gutter: 12
10281
- }, _isSlot$7(W = V.value.map(be)) ? W : {
10282
- default: () => [W]
10283
- }), _.value && createVNode("div", {
10299
+ }, _isSlot$7(z = w.value.map(ye)) ? z : {
10300
+ default: () => [z]
10301
+ }), v.value && createVNode("div", {
10284
10302
  style: "text-align: center; padding: 6px 0 12px;"
10285
10303
  }, [n.t("kg.confirmDelete")])])]
10286
10304
  })]
10287
10305
  })]
10288
10306
  });
10289
10307
  }
10290
- function Ie() {
10291
- let B, W;
10308
+ function Ae() {
10309
+ let B, z;
10292
10310
  return createVNode("div", null, [createVNode(Button, {
10293
10311
  type: "primary",
10294
- ghost: !I.value,
10295
- disabled: I.value,
10296
- onClick: he
10312
+ ghost: !O.value,
10313
+ disabled: O.value,
10314
+ onClick: X
10297
10315
  }, _isSlot$7(B = n.t("kg.cancel")) ? B : {
10298
10316
  default: () => [B]
10299
10317
  }), createVNode(Button, {
10300
10318
  type: "primary",
10301
- disabled: M.value,
10302
- loading: w.value,
10319
+ disabled: I.value,
10320
+ loading: D.value,
10303
10321
  danger: !!p.value,
10304
- onClick: _e
10305
- }, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
10306
- default: () => [W]
10322
+ onClick: me
10323
+ }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
10324
+ default: () => [z]
10307
10325
  })]);
10308
10326
  }
10309
- function Ae() {
10327
+ function Me() {
10310
10328
  return createVNode("div", {
10311
10329
  title: Z.title.value
10312
10330
  }, [Z.title.value]);
10313
10331
  }
10314
- function Me() {
10332
+ function Oe() {
10315
10333
  return createVNode(KgSubmitHeader, {
10316
- isFullscreen: se.isFullscreen,
10317
- "onUpdate:isFullscreen": (B) => se.isFullscreen = B,
10318
- kgShowFullscreenButton: !_.value,
10319
- kgShowConfigButton: !_.value && e.kgShowConfigButton,
10320
- onKgCancel: he
10334
+ isFullscreen: ie.isFullscreen,
10335
+ "onUpdate:isFullscreen": (B) => ie.isFullscreen = B,
10336
+ kgShowFullscreenButton: !v.value,
10337
+ kgShowConfigButton: !v.value && e.kgShowConfigButton,
10338
+ onKgCancel: X
10321
10339
  }, null);
10322
10340
  }
10323
10341
  return onUnmounted(() => {
10324
10342
  s.store.dispose(a.formID);
10325
10343
  }), () => createVNode(Drawer, {
10326
- visible: ne.value,
10344
+ visible: oe.value,
10327
10345
  placement: "right",
10328
10346
  closable: !1,
10329
10347
  maskClosable: !1,
10330
10348
  keyboard: !1,
10331
10349
  destroyOnClose: !0,
10332
- width: re.value,
10333
- class: P.value,
10350
+ width: ne.value,
10351
+ class: te.value,
10334
10352
  "kg-frm-id": a.formID
10335
10353
  }, {
10336
- title: Ae,
10337
- extra: Me,
10338
- default: ke,
10339
- footer: Ie
10354
+ title: Me,
10355
+ extra: Oe,
10356
+ default: Ie,
10357
+ footer: Ae
10340
10358
  });
10341
10359
  }
10342
10360
  }), KgVar$1 = "", getProps$o = () => ({
@@ -10351,10 +10369,10 @@ const getProps$p = () => ({
10351
10369
  }) {
10352
10370
  provide(DI_KG_SLOTS, e.kgSlots);
10353
10371
  const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => r.store.getVarProfileConfig(r.formID)), u = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => {
10354
- var v, T, y, C;
10372
+ var _, T, y, C;
10355
10373
  switch (!0) {
10356
10374
  case n.value:
10357
- return ((v = i.value) == null ? void 0 : v.crt_flg) !== 0;
10375
+ return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
10358
10376
  case a.value:
10359
10377
  return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
10360
10378
  case o.value:
@@ -10364,23 +10382,23 @@ const getProps$p = () => ({
10364
10382
  }
10365
10383
  return !1;
10366
10384
  }), g = computed(() => {
10367
- var v;
10368
- return ((v = u.value) == null ? void 0 : v.available_flg) !== 0;
10385
+ var _;
10386
+ return ((_ = u.value) == null ? void 0 : _.available_flg) !== 0;
10369
10387
  }), p = computed(() => {
10370
- var v;
10371
- return ((v = l.value) == null ? void 0 : v.available_flg) !== 0;
10372
- }), _ = computed(() => !!r.isOtherRequesting.value), b = computed(() => {
10373
- let v = "kg-var";
10374
- return e.KgBackgroundGray && (v += " kg-var--bg-gray"), v;
10388
+ var _;
10389
+ return ((_ = l.value) == null ? void 0 : _.available_flg) !== 0;
10390
+ }), v = computed(() => !!r.isOtherRequesting.value), b = computed(() => {
10391
+ let _ = "kg-var";
10392
+ return e.KgBackgroundGray && (_ += " kg-var--bg-gray"), _;
10375
10393
  });
10376
10394
  function m() {
10377
10395
  return createVNode(Spin, {
10378
- spinning: _.value
10396
+ spinning: v.value
10379
10397
  }, {
10380
10398
  default: () => {
10381
- var v, T;
10382
- return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (v = t.beforeButton) == null ? void 0 : v.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
10383
- kgClass: (T = e.kgSubmitClass) != null ? T : ""
10399
+ var _, T, y;
10400
+ return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (T = (_ = e.kgSlots) == null ? void 0 : _.afterKgTable) == null ? void 0 : T.call(_), c.value && createVNode(KgSubmit, {
10401
+ kgClass: (y = e.kgSubmitClass) != null ? y : ""
10384
10402
  }, null)])];
10385
10403
  }
10386
10404
  });
@@ -10420,16 +10438,16 @@ const getProps$p = () => ({
10420
10438
  emit: r
10421
10439
  }) {
10422
10440
  const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
10423
- var p, _;
10441
+ var p, v;
10424
10442
  let g = "kg-table-td";
10425
- return ((p = o.value) == null ? void 0 : p.align) === "center" ? g += " kg-table-td--center" : ((_ = o.value) == null ? void 0 : _.align) === "right" && (g += " kg-table-td--right"), g;
10443
+ return ((p = o.value) == null ? void 0 : p.align) === "center" ? g += " kg-table-td--center" : ((v = o.value) == null ? void 0 : v.align) === "right" && (g += " kg-table-td--right"), g;
10426
10444
  }), i = computed(() => {
10427
10445
  let g = e.kgValue;
10428
10446
  return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10429
10447
  `)), g;
10430
10448
  });
10431
10449
  function l(g) {
10432
- var p, _, b;
10450
+ var p, v, b;
10433
10451
  if (g.detail === 1)
10434
10452
  switch ((p = o.value) == null ? void 0 : p.display_type) {
10435
10453
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -10438,7 +10456,7 @@ const getProps$p = () => ({
10438
10456
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10439
10457
  {
10440
10458
  g.stopPropagation(), g.preventDefault();
10441
- const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10459
+ const m = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10442
10460
  (b = n.router.value) == null || b.push({
10443
10461
  path: m.path,
10444
10462
  query: e.kgRow
@@ -10448,12 +10466,12 @@ const getProps$p = () => ({
10448
10466
  }
10449
10467
  }
10450
10468
  function u() {
10451
- var g, p, _, b, m, v, T, y;
10469
+ var g, p, v, b, m, _, T, y;
10452
10470
  switch ((g = o.value) == null ? void 0 : g.display_type) {
10453
10471
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10454
10472
  const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10455
10473
  return createVNode(KgYesOrNo, {
10456
- kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
10474
+ kgValue: e.kgValue === ((v = C.yValue) != null ? v : 1)
10457
10475
  }, null);
10458
10476
  }
10459
10477
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
@@ -10465,7 +10483,7 @@ const getProps$p = () => ({
10465
10483
  }) : c();
10466
10484
  }
10467
10485
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10468
- const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10486
+ const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10469
10487
  return createVNode(KgProgressA, {
10470
10488
  kgTextWidth: C.textWidth,
10471
10489
  kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
@@ -10580,8 +10598,8 @@ const getProps$l = () => ({
10580
10598
  }) => {
10581
10599
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10582
10600
  return s = watch(l, (c) => {
10583
- var g, p, _, b, m, v, T, y, C, E, A;
10584
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10601
+ var g, p, v, b, m, _, T, y, C, E, A;
10602
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (v = u == null ? void 0 : u.mult_flg) != null ? v : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10585
10603
  }, {
10586
10604
  immediate: !0
10587
10605
  }), !1;
@@ -10770,8 +10788,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10770
10788
  return o.onOpen(async ({
10771
10789
  model: s
10772
10790
  }) => {
10773
- var i, l, u, c, g, p, _, b, m, v;
10774
- return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
10791
+ var i, l, u, c, g, p, v, b, m, _;
10792
+ return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (v = a.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? b : "", s.value.varGridDetails = (_ = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? _ : [], !1;
10775
10793
  }), o.onBeforeOk(async ({
10776
10794
  model: s
10777
10795
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10802,7 +10820,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10802
10820
  function p(y) {
10803
10821
  a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
10804
10822
  }
10805
- async function _() {
10823
+ async function v() {
10806
10824
  var y;
10807
10825
  if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10808
10826
  KgUtil.confirm({
@@ -10864,7 +10882,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10864
10882
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10865
10883
  });
10866
10884
  }
10867
- function v() {
10885
+ function _() {
10868
10886
  return createVNode(Menu.SubMenu, {
10869
10887
  key: "2",
10870
10888
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10885,7 +10903,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10885
10903
  });
10886
10904
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10887
10905
  key: "save-grid-view",
10888
- onClick: _
10906
+ onClick: v
10889
10907
  }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10890
10908
  default: () => [y]
10891
10909
  }), createVNode(Menu.Item, {
@@ -10921,7 +10939,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10921
10939
  "onUpdate:openKeys": (y) => l.value = y,
10922
10940
  selectable: !1
10923
10941
  }, {
10924
- default: () => [m(), v(), T()]
10942
+ default: () => [m(), _(), T()]
10925
10943
  })
10926
10944
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10927
10945
  visible: c.visible,
@@ -11082,7 +11100,7 @@ function _useColumns() {
11082
11100
  index: p
11083
11101
  }) => p + 1
11084
11102
  }, ...(g = i == null ? void 0 : i.map((p) => {
11085
- function _() {
11103
+ function v() {
11086
11104
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11087
11105
  }
11088
11106
  function b() {
@@ -11091,7 +11109,7 @@ function _useColumns() {
11091
11109
  function m() {
11092
11110
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
11093
11111
  }
11094
- function v() {
11112
+ function _() {
11095
11113
  if (p.fix_left_flg === 1)
11096
11114
  return "left";
11097
11115
  if (p.fix_right_flg === 1)
@@ -11103,7 +11121,7 @@ function _useColumns() {
11103
11121
  function y() {
11104
11122
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
11105
11123
  }
11106
- const C = _();
11124
+ const C = v();
11107
11125
  return {
11108
11126
  dataIndex: p.var_nam,
11109
11127
  title: b(),
@@ -11111,7 +11129,7 @@ function _useColumns() {
11111
11129
  resizable: typeof C == "number",
11112
11130
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11113
11131
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11114
- fixed: v(),
11132
+ fixed: _(),
11115
11133
  sorter: T(),
11116
11134
  align: y(),
11117
11135
  defaultSortOrder: m(),
@@ -11167,123 +11185,130 @@ const KgTable$1 = "", KgTable = defineComponent({
11167
11185
  emit: r
11168
11186
  }) {
11169
11187
  const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
11170
- i.onSearch((P) => {
11171
- U(P);
11188
+ i.onSearch((N) => {
11189
+ x(N);
11172
11190
  }), i.onReset(() => {
11173
- U(!0);
11191
+ x(!0);
11174
11192
  }), u.store.$onAction(async ({
11175
- name: P,
11193
+ name: N,
11176
11194
  args: K
11177
11195
  }) => {
11178
- switch (P) {
11196
+ switch (N) {
11179
11197
  case "setSelecte":
11180
11198
  if (K[0] === s.formID) {
11181
- const z = K[1], q = K[2];
11199
+ const W = K[1], Y = K[2];
11182
11200
  switch (!0) {
11183
- case (q && !I.value.includes(z[A.value])):
11184
- G([...I.value, z[A.value]]);
11201
+ case (Y && !I.value.includes(W[A.value])):
11202
+ U([...I.value, W[A.value]]);
11185
11203
  break;
11186
- case (!q && I.value.includes(z[A.value])):
11187
- G(without$1(I.value, z[A.value]));
11204
+ case (!Y && I.value.includes(W[A.value])):
11205
+ U(without$1(I.value, W[A.value]));
11188
11206
  break;
11189
11207
  }
11190
11208
  }
11191
11209
  break;
11192
11210
  }
11193
11211
  });
11194
- const c = ref([]), {
11195
- columns: g,
11196
- scrollX: p
11212
+ const c = ref(!1), g = ref([]), {
11213
+ columns: p,
11214
+ scrollX: v
11197
11215
  } = _useColumns(), {
11198
- isLoading: _
11199
- } = _useLoading(), b = ref(null);
11200
- _useResizeObserver(b);
11201
- const m = computed(() => s.store.getVarButtonSearch(s.formID)), v = computed(() => {
11202
- var P;
11203
- return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11204
- }), T = computed(() => {
11205
- var P;
11206
- return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11207
- }), y = computed(() => u.store.getIsRetrieved(s.formID)), C = computed(() => {
11208
- var P;
11209
- return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11216
+ isLoading: b
11217
+ } = _useLoading(), m = ref(null);
11218
+ _useResizeObserver(m);
11219
+ const _ = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
11220
+ var N;
11221
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
11222
+ }), y = computed(() => {
11223
+ var N;
11224
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
11225
+ }), C = computed(() => {
11226
+ var N;
11227
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
11210
11228
  }), E = computed(() => {
11211
- var P;
11212
- return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
11229
+ var N;
11230
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
11213
11231
  }), A = computed(() => {
11214
- var P, K;
11215
- return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
11232
+ var N, K;
11233
+ return (K = (N = s.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? K : "id";
11216
11234
  }), k = computed(() => {
11217
- var P, K;
11218
- return JSON.parse((K = (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opts) != null ? K : "[]");
11219
- }), R = computed(() => {
11220
- var P;
11221
- return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
11235
+ var N, K;
11236
+ return JSON.parse((K = (N = s.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? K : "[]");
11237
+ }), F = computed(() => {
11238
+ var N;
11239
+ return (N = s.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
11222
11240
  }), L = computed(() => {
11223
- var P;
11224
- return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
11225
- }), O = computed(() => {
11226
- var P, K;
11227
- return (K = (P = m.value) == null ? void 0 : P.cmd) != null ? K : null;
11228
- }), D = computed(() => {
11229
- var K, z, q, J, ae, pe, he;
11230
- let P = {
11231
- pageNo: M.pageIndex,
11232
- pageSize: M.pageSize,
11233
- ...N,
11234
- ...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
11241
+ var N;
11242
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.prf_frm_id) || s.formID;
11243
+ }), M = computed(() => {
11244
+ var N, K;
11245
+ return (K = (N = _.value) == null ? void 0 : N.cmd) != null ? K : null;
11246
+ }), P = computed(() => {
11247
+ var K, W, Y, ae, X, me, ve;
11248
+ let N = {
11249
+ pageNo: V.pageIndex,
11250
+ pageSize: V.pageSize,
11251
+ ...R,
11252
+ ...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
11235
11253
  };
11236
- return m.value && (P = {
11237
- ...P,
11238
- ...KgVarUtil.parseCommandParameter((J = (q = m.value) == null ? void 0 : q.cmd_prm) != null ? J : "")
11239
- }), (ae = s.varGridConfig.value) != null && ae.cmd_prm && (P = {
11240
- ...P,
11241
- ...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
11242
- }), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
11254
+ return _.value && (N = {
11255
+ ...N,
11256
+ ...KgVarUtil.parseCommandParameter((ae = (Y = _.value) == null ? void 0 : Y.cmd_prm) != null ? ae : "")
11257
+ }), (X = s.varGridConfig.value) != null && X.cmd_prm && (N = {
11258
+ ...N,
11259
+ ...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
11260
+ }), ((ve = s.varGridConfig.value) == null ? void 0 : ve.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
11243
11261
  }), $ = computed(() => {
11244
- var P;
11245
- if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
11262
+ var N;
11263
+ if (((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
11246
11264
  return {
11247
11265
  fixed: "left",
11248
11266
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11249
- hideSelectAll: !v.value,
11267
+ hideSelectAll: !T.value,
11250
11268
  selectedRowKeys: I,
11251
11269
  preserveSelectedRowKeys: !1,
11252
- onSelect: (K) => x(K),
11253
- onChange: (K) => v.value && G(K)
11270
+ onSelect: (K) => q(K),
11271
+ onChange: (K) => T.value && U(K)
11254
11272
  };
11255
- }), V = computed(() => {
11256
- let P = "kg-table";
11257
- return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11258
- }), w = ref([]), I = ref([]), M = reactive({
11273
+ }), w = computed(() => {
11274
+ var K;
11275
+ let N = "kg-table";
11276
+ return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !C.value && !E.value && (N += " kg-table--no-bottom"), N;
11277
+ }), D = computed(() => {
11278
+ var K;
11279
+ let N = "kg-table-bottom";
11280
+ return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
11281
+ }), O = ref([]), I = ref([]), V = reactive({
11259
11282
  pageIndex: 1,
11260
11283
  pageSize: 10,
11261
11284
  total: 0
11262
- }), N = reactive({
11285
+ }), R = reactive({
11263
11286
  column: void 0,
11264
11287
  order: void 0
11288
+ }), H = watch(F, (N) => {
11289
+ N && (setTimeout(() => H()), V.pageSize = N), c.value = !0;
11265
11290
  });
11266
- watch(k, (P) => {
11267
- P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
11268
- }), watch([O, T, i.isReady], ([P, K, z]) => {
11269
- P && K && z && !y.value && U(!0);
11291
+ watch(k, (N) => {
11292
+ N.length > 0 && !N.includes(V.pageSize) && (V.pageSize = F.value);
11293
+ }), watch([M, y, i.isReady], ([N, K, W]) => {
11294
+ N && K && W && !u.store.getIsRetrieved(s.formID) && x(!0);
11270
11295
  }, {
11271
11296
  immediate: !0
11272
11297
  }), onUnmounted(() => {
11273
11298
  u.store.dispose(s.formID);
11274
11299
  });
11275
- function F(P, K) {
11300
+ function G(N, K) {
11276
11301
  if (!!$.value) {
11277
11302
  if (!K) {
11278
11303
  I.value = [], u.store.setSelectedRows(s.formID, []);
11279
11304
  return;
11280
11305
  }
11281
- switch (P == null ? void 0 : P.detail) {
11306
+ switch (N == null ? void 0 : N.detail) {
11282
11307
  case 1:
11283
- I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
11284
- var q;
11285
- return (q = w.value) == null ? void 0 : q.find((J) => J[A.value] === z);
11286
- }).filter((z) => !!z));
11308
+ I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((W) => {
11309
+ var Y;
11310
+ return (Y = O.value) == null ? void 0 : Y.find((ae) => ae[A.value] === W);
11311
+ }).filter((W) => !!W));
11287
11312
  break;
11288
11313
  case 2:
11289
11314
  u.store.emit(s.formID, "rowDoubleClick", K);
@@ -11291,231 +11316,222 @@ const KgTable$1 = "", KgTable = defineComponent({
11291
11316
  }
11292
11317
  }
11293
11318
  }
11294
- function U(P = !1) {
11295
- switch (!0) {
11296
- case !y.value:
11297
- {
11298
- const z = watch(R, (q) => {
11299
- q && (setTimeout(() => z()), M.pageSize = q, K());
11300
- }, {
11301
- immediate: !0
11302
- });
11303
- }
11304
- break;
11305
- default:
11306
- K();
11307
- break;
11308
- }
11309
- async function K() {
11310
- var z, q;
11311
- if (!O.value) {
11319
+ function x(N = !1) {
11320
+ const K = watch(c, (Y) => {
11321
+ Y && (setTimeout(() => K()), W());
11322
+ }, {
11323
+ immediate: !0
11324
+ });
11325
+ async function W() {
11326
+ var Y, ae;
11327
+ if (!M.value) {
11312
11328
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11313
- VarButton: m.value
11329
+ VarButton: _.value
11314
11330
  });
11315
11331
  return;
11316
11332
  }
11317
- P && (M.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11333
+ N && (V.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11318
11334
  try {
11319
- const J = await httpClient().request({
11335
+ const X = await httpClient().request({
11320
11336
  method: "GET",
11321
- url: O.value,
11322
- params: KgUtil.parseParams(D.value, L.value, n)
11337
+ url: M.value,
11338
+ params: KgUtil.parseParams(P.value, L.value, n)
11323
11339
  }, {
11324
11340
  successMessageMode: "none"
11325
11341
  });
11326
11342
  switch (!0) {
11327
- case !J:
11328
- w.value = [], M.total = 0;
11343
+ case !X:
11344
+ O.value = [], V.total = 0;
11329
11345
  break;
11330
- case isArrayLike(J):
11331
- w.value = J, M.total = J.length;
11346
+ case isArrayLike(X):
11347
+ O.value = X, V.total = X.length;
11332
11348
  break;
11333
- case ("total" in J && "records" in J):
11334
- w.value = (z = J.records) != null ? z : [], M.total = (q = J.total) != null ? q : 0;
11349
+ case ("total" in X && "records" in X):
11350
+ O.value = (Y = X.records) != null ? Y : [], V.total = (ae = X.total) != null ? ae : 0;
11335
11351
  break;
11336
11352
  }
11337
11353
  u.store.emit(s.formID, "retrieve", {
11338
- page: J,
11339
- datas: w
11340
- }), F(), c.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11341
- } catch (J) {
11342
- throw J;
11354
+ page: X,
11355
+ datas: O
11356
+ }), G(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11357
+ } catch (X) {
11358
+ throw X;
11343
11359
  } finally {
11344
11360
  u.store.setIsRetrieving(s.formID, !1);
11345
11361
  }
11346
11362
  }
11347
11363
  }
11348
- function G(P) {
11349
- I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
11350
- var z;
11351
- return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
11364
+ function U(N) {
11365
+ I.value = N, u.store.setSelectedRows(s.formID, I.value.map((K) => {
11366
+ var W;
11367
+ return (W = O.value) == null ? void 0 : W.find((Y) => Y[A.value] === K);
11352
11368
  }).filter((K) => !!K));
11353
11369
  }
11354
- function x(P) {
11355
- var K, z;
11356
- switch (v.value) {
11370
+ function q(N) {
11371
+ var K, W;
11372
+ switch (T.value) {
11357
11373
  case !0:
11358
11374
  {
11359
- const q = P[A.value];
11360
- I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(K = I.value) != null ? K : [], q];
11375
+ const Y = N[A.value];
11376
+ I.value.includes(Y) ? I.value = without$1(I.value, Y) : I.value = [...(K = I.value) != null ? K : [], Y];
11361
11377
  }
11362
11378
  break;
11363
11379
  case !1:
11364
11380
  {
11365
- const q = P[A.value];
11366
- (z = I.value) != null && z.includes(q) ? I.value = [] : I.value = [q];
11381
+ const Y = N[A.value];
11382
+ (W = I.value) != null && W.includes(Y) ? I.value = [] : I.value = [Y];
11367
11383
  }
11368
11384
  break;
11369
11385
  }
11370
- u.store.setSelectedRows(s.formID, I.value.map((q) => {
11371
- var J;
11372
- return (J = w.value) == null ? void 0 : J.find((ae) => ae[A.value] === q);
11373
- }).filter((q) => !!q));
11386
+ u.store.setSelectedRows(s.formID, I.value.map((Y) => {
11387
+ var ae;
11388
+ return (ae = O.value) == null ? void 0 : ae.find((X) => X[A.value] === Y);
11389
+ }).filter((Y) => !!Y));
11374
11390
  }
11375
- function H(P, K) {
11376
- K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
11391
+ function J(N, K) {
11392
+ K.width = N, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, N);
11377
11393
  }
11378
- async function Y(P, K, z, q) {
11379
- var J;
11380
- switch (q.action) {
11394
+ async function Z(N, K, W, Y) {
11395
+ var ae;
11396
+ switch (Y.action) {
11381
11397
  case "sort":
11382
11398
  {
11383
11399
  await nextTick();
11384
- let ae = z;
11385
- ae.order ? (N.column = (J = ae.field) != null ? J : void 0, N.order = ae.order === "ascend" ? "asc" : ae.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), U(!0);
11400
+ let X = W;
11401
+ X.order ? (R.column = (ae = X.field) != null ? ae : void 0, R.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), x(!0);
11386
11402
  }
11387
11403
  break;
11388
11404
  }
11389
11405
  }
11390
- function X(P, K) {
11391
- var q;
11392
- const z = K[A.value];
11393
- switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
11406
+ function ne(N, K) {
11407
+ var Y;
11408
+ const W = K[A.value];
11409
+ switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
11394
11410
  case 0:
11395
- P ? c.value = uniq([...c.value, z]) : c.value = without$1(c.value, z);
11411
+ N ? g.value = uniq([...g.value, W]) : g.value = without$1(g.value, W);
11396
11412
  break;
11397
11413
  default:
11398
- P ? c.value = [z] : c.value = [];
11414
+ N ? g.value = [W] : g.value = [];
11399
11415
  break;
11400
11416
  }
11401
11417
  }
11402
- function Z(P, K) {
11403
- K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
11418
+ function oe(N, K) {
11419
+ K !== V.pageSize ? (V.pageIndex = 1, V.pageSize = K) : V.pageIndex = N, x();
11404
11420
  }
11405
- function re(P) {
11406
- I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
11407
- var z;
11408
- return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
11421
+ function ie(N) {
11422
+ I.value = [N[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
11423
+ var W;
11424
+ return (W = O.value) == null ? void 0 : W.find((Y) => Y[A.value] === K);
11409
11425
  }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11410
11426
  }
11411
- function ne({
11412
- title: P,
11427
+ function pe({
11428
+ title: N,
11413
11429
  column: K
11414
11430
  }) {
11415
11431
  switch (K.dataIndex) {
11416
11432
  case "index":
11417
11433
  return createVNode(KgTableSetting, null, null);
11418
11434
  default:
11419
- return createVNode("pre", null, [P]);
11435
+ return createVNode("pre", null, [N]);
11420
11436
  }
11421
11437
  }
11422
- function se({
11423
- column: P,
11438
+ function te({
11439
+ column: N,
11424
11440
  index: K,
11425
- record: z,
11426
- value: q,
11427
- text: J
11441
+ record: W,
11442
+ value: Y,
11443
+ text: ae
11428
11444
  }) {
11429
- let ae = "";
11430
- P.customRender ? ae = P.customRender({
11445
+ let X = "";
11446
+ N.customRender ? X = N.customRender({
11431
11447
  index: K,
11432
- record: z,
11433
- column: P,
11434
- text: J,
11435
- value: q,
11448
+ record: W,
11449
+ column: N,
11450
+ text: ae,
11451
+ value: Y,
11436
11452
  renderIndex: K
11437
- }) : ae = q;
11438
- const pe = createVNode(KgTableCell, {
11439
- kgRow: z,
11440
- kgValue: ae,
11441
- kgVarName: P.dataIndex,
11442
- onKgUpdateLinkClick: () => re(z)
11453
+ }) : X = Y;
11454
+ const me = createVNode(KgTableCell, {
11455
+ kgRow: W,
11456
+ kgValue: X,
11457
+ kgVarName: N.dataIndex,
11458
+ onKgUpdateLinkClick: () => ie(W)
11443
11459
  }, null);
11444
11460
  return t.bodyCell ? t.bodyCell({
11445
- value: q,
11446
- record: z,
11461
+ value: Y,
11462
+ record: W,
11447
11463
  index: K,
11448
- column: P,
11449
- defaultRender: pe
11450
- }) : pe;
11464
+ column: N,
11465
+ defaultRender: me
11466
+ }) : me;
11451
11467
  }
11452
- function de() {
11453
- return !T.value && !y.value ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11468
+ function le() {
11469
+ return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11454
11470
  }
11455
11471
  return () => {
11456
- var P;
11472
+ var N;
11457
11473
  return createVNode("div", {
11458
- class: V.value,
11474
+ class: w.value,
11459
11475
  "kg-frm-id": s.formID,
11460
- ref: b
11476
+ ref: m
11461
11477
  }, [createVNode(Table, {
11462
11478
  class: "kg-flex-table",
11463
11479
  size: "small",
11464
11480
  scroll: {
11465
- x: p.value,
11481
+ x: v.value,
11466
11482
  y: "auto"
11467
11483
  },
11468
11484
  pagination: !1,
11469
11485
  showSorterTooltip: !1,
11470
- columns: g.value,
11471
- dataSource: w.value,
11472
- loading: _.value,
11486
+ columns: p.value,
11487
+ dataSource: O.value,
11488
+ loading: b.value,
11473
11489
  rowKey: A.value,
11474
11490
  rowSelection: $.value,
11475
11491
  expandColumnWidth: 28,
11476
- expandedRowKeys: c.value,
11492
+ expandedRowKeys: g.value,
11477
11493
  customRow: (K) => ({
11478
- onClick: (z) => F(z, K)
11494
+ onClick: (W) => G(W, K)
11479
11495
  }),
11480
- onResizeColumn: H,
11481
- onChange: Y,
11482
- onExpand: X
11496
+ onResizeColumn: J,
11497
+ onChange: Z,
11498
+ onExpand: ne
11483
11499
  }, {
11484
- headerCell: ne,
11485
- bodyCell: se,
11486
- emptyText: de,
11487
- expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11500
+ headerCell: pe,
11501
+ bodyCell: te,
11502
+ emptyText: le,
11503
+ expandedRowRender: (N = a == null ? void 0 : a.KgTable) == null ? void 0 : N.expandedRowRender
11488
11504
  }), (C.value || E.value) && createVNode("div", {
11489
- class: "kg-table-bottom"
11505
+ class: D.value
11490
11506
  }, [createVNode("div", {
11491
11507
  class: "left"
11492
11508
  }, [C.value && createVNode(KgTableInfo, {
11493
11509
  kgShowClearCheck: I.value.length > 0,
11494
- kgShowClearTable: M.total > 0,
11510
+ kgShowClearTable: V.total > 0,
11495
11511
  kgShowLocate: I.value.length === 1,
11496
11512
  kgTotal: I.value.length,
11497
- kgDisabled: _.value
11513
+ kgDisabled: b.value
11498
11514
  }, null)]), createVNode("div", {
11499
11515
  class: "right"
11500
11516
  }, [E.value && createVNode(Pagination, {
11501
11517
  size: "default",
11502
- current: M.pageIndex,
11503
- pageSize: M.pageSize,
11518
+ current: V.pageIndex,
11519
+ pageSize: V.pageSize,
11504
11520
  pageSizeOptions: k.value.map((K) => String(K)),
11505
- total: M.total,
11521
+ total: V.total,
11506
11522
  showSizeChanger: !0,
11507
11523
  showQuickJumper: !1,
11508
11524
  hideOnSinglePage: !1,
11509
- disabled: _.value || M.total === 0,
11525
+ disabled: b.value || V.total === 0,
11510
11526
  locale: {
11511
11527
  page: ""
11512
11528
  },
11513
- showTotal: (K, z) => o.t("kg.KgTable.totalText", {
11514
- from: z[0],
11515
- to: z[1],
11529
+ showTotal: (K, W) => o.t("kg.KgTable.totalText", {
11530
+ from: W[0],
11531
+ to: W[1],
11516
11532
  total: K
11517
11533
  }),
11518
- onChange: (K, z) => Z(K, z)
11534
+ onChange: (K, W) => oe(K, W)
11519
11535
  }, null)])])]);
11520
11536
  };
11521
11537
  }
@@ -11622,26 +11638,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11622
11638
  props: getProps$f(),
11623
11639
  setup(e) {
11624
11640
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11625
- var p, _;
11626
- return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
11641
+ var p, v;
11642
+ return a.value ? (v = (p = a.value) == null ? void 0 : p.cmd) != null ? v : "" : null;
11627
11643
  }), s = computed(() => {
11628
- var p, _;
11629
- return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
11644
+ var p, v;
11645
+ return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
11630
11646
  }), i = computed(() => {
11631
- var _, b, m, v, T, y;
11647
+ var v, b, m, _, T, y;
11632
11648
  let p = {
11633
- ...(_ = n.model.value) != null ? _ : {}
11649
+ ...(v = n.model.value) != null ? v : {}
11634
11650
  };
11635
11651
  return a.value && (p = {
11636
11652
  ...p,
11637
11653
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
11638
- }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
11654
+ }), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
11639
11655
  ...p,
11640
11656
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11641
11657
  }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
11642
11658
  }), l = ref(!1);
11643
11659
  async function u() {
11644
- var p, _, b;
11660
+ var p, v, b;
11645
11661
  if (!(e.onKgClick && await e.onKgClick())) {
11646
11662
  if (!o.value) {
11647
11663
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11660,7 +11676,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11660
11676
  joinParamsToUrl: !0,
11661
11677
  isTransformResponse: !1
11662
11678
  });
11663
- KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
11679
+ KgUtil.downloadFile(m, `${r.t((v = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? v : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
11664
11680
  } catch (m) {
11665
11681
  throw m;
11666
11682
  } finally {
@@ -11696,24 +11712,24 @@ const KgTable$1 = "", KgTable = defineComponent({
11696
11712
  attrs: r
11697
11713
  }) {
11698
11714
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
11699
- var _, b;
11700
- return s.value ? (b = (_ = s.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
11715
+ var v, b;
11716
+ return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
11701
11717
  }), l = computed(() => {
11702
- var _, b;
11703
- return (b = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
11718
+ var v, b;
11719
+ return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
11704
11720
  });
11705
11721
  computed(() => {
11706
- var b, m, v;
11707
- let _ = {
11722
+ var b, m, _;
11723
+ let v = {
11708
11724
  ...(b = o.model.value) != null ? b : {}
11709
11725
  };
11710
- return s.value && (_ = {
11711
- ..._,
11712
- ...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
11713
- }), _;
11726
+ return s.value && (v = {
11727
+ ...v,
11728
+ ...KgVarUtil.parseCommandParameter((_ = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? _ : "")
11729
+ }), v;
11714
11730
  });
11715
11731
  const u = ref(!1);
11716
- async function c(_) {
11732
+ async function c(v) {
11717
11733
  var b, m;
11718
11734
  if (!i.value)
11719
11735
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11721,19 +11737,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11721
11737
  }), !1;
11722
11738
  u.value = !0;
11723
11739
  try {
11724
- const v = new FormData();
11725
- v.append("file", _), await httpClient().axiosInstance.request({
11740
+ const _ = new FormData();
11741
+ _.append("file", v), await httpClient().axiosInstance.request({
11726
11742
  method: l.value,
11727
11743
  baseURL: window._CONFIG.domianURL,
11728
11744
  url: i.value,
11729
- data: v,
11745
+ data: _,
11730
11746
  headers: {
11731
11747
  "Content-Type": "multipart/form-data;charset=UTF-8",
11732
11748
  ignoreCancelToken: !0
11733
11749
  }
11734
11750
  }), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
11735
- } catch (v) {
11736
- throw v;
11751
+ } catch (_) {
11752
+ throw _;
11737
11753
  } finally {
11738
11754
  u.value = !1;
11739
11755
  }
@@ -11831,7 +11847,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11831
11847
  setup(e) {
11832
11848
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11833
11849
  async function o() {
11834
- var g, p, _;
11850
+ var g, p, v;
11835
11851
  if (e.onKgClick && await e.onKgClick())
11836
11852
  return;
11837
11853
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11843,12 +11859,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11843
11859
  }
11844
11860
  let u = null;
11845
11861
  const c = async () => {
11846
- var m, v, T, y, C, E, A;
11862
+ var m, _, T, y, C, E, A;
11847
11863
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11848
11864
  const b = a.selectedRows.value;
11849
11865
  try {
11850
11866
  await httpClient().request({
11851
- method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11867
+ method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
11852
11868
  url: l,
11853
11869
  params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11854
11870
  data: b != null ? b : []
@@ -11860,7 +11876,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11860
11876
  }
11861
11877
  };
11862
11878
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11863
- const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11879
+ const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
11864
11880
  typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11865
11881
  onOk: () => c(),
11866
11882
  ...b
@@ -12080,8 +12096,8 @@ const KgButtonItem = defineComponent({
12080
12096
  props: getProps$f(),
12081
12097
  setup(e) {
12082
12098
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12083
- var u, c, g, p, _, b, m, v;
12084
- return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
12099
+ var u, c, g, p, v, b, m, _;
12100
+ return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((_ = a.value) == null ? void 0 : _.permission_code));
12085
12101
  }), s = computed(() => {
12086
12102
  let u = "kg-button-item";
12087
12103
  switch (e.kgColor) {
@@ -12091,7 +12107,7 @@ const KgButtonItem = defineComponent({
12091
12107
  }
12092
12108
  return u;
12093
12109
  }), i = computed(() => {
12094
- var c, g, p, _;
12110
+ var c, g, p, v;
12095
12111
  return {
12096
12112
  ...e,
12097
12113
  class: s.value,
@@ -12099,7 +12115,7 @@ const KgButtonItem = defineComponent({
12099
12115
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
12100
12116
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
12101
12117
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
12102
- "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
12118
+ "kg-cmd": (v = a.value) == null ? void 0 : v.cmd
12103
12119
  };
12104
12120
  });
12105
12121
  function l() {
@@ -12147,15 +12163,15 @@ const getProps$e = () => ({
12147
12163
  props: getProps$e(),
12148
12164
  setup(e) {
12149
12165
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
12150
- function o(_) {
12151
- return n.store.emit(r.formID, "click", _);
12166
+ function o(v) {
12167
+ return n.store.emit(r.formID, "click", v);
12152
12168
  }
12153
- function s(_) {
12169
+ function s(v) {
12154
12170
  if (e.kgDisabled)
12155
- return e.kgDisabled(_);
12171
+ return e.kgDisabled(v);
12156
12172
  }
12157
- function i(_) {
12158
- switch (_.primary_flg) {
12173
+ function i(v) {
12174
+ switch (v.primary_flg) {
12159
12175
  case 1:
12160
12176
  return !0;
12161
12177
  case 0:
@@ -12164,13 +12180,13 @@ const getProps$e = () => ({
12164
12180
  return;
12165
12181
  }
12166
12182
  }
12167
- function l(_) {
12168
- if (r.t(_.var_nam).value !== _.var_nam)
12169
- return r.t(_.var_nam).value;
12183
+ function l(v) {
12184
+ if (r.t(v.var_nam).value !== v.var_nam)
12185
+ return r.t(v.var_nam).value;
12170
12186
  }
12171
12187
  function u() {
12172
- var _, b;
12173
- if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
12188
+ var v, b;
12189
+ if (!r.varButtons.value || ((v = r.varButtons.value) == null ? void 0 : v.length) === 0)
12174
12190
  return null;
12175
12191
  switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
12176
12192
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
@@ -12179,22 +12195,22 @@ const getProps$e = () => ({
12179
12195
  return g();
12180
12196
  }
12181
12197
  }
12182
- function c(_) {
12198
+ function c(v) {
12183
12199
  return createVNode(KgButtonItem, {
12184
- kgButton: _,
12185
- kgVarName: _.var_nam,
12186
- kgType: _.typ,
12187
- kgIcon: _.icon,
12188
- kgText: l(_),
12189
- kgColor: _.color,
12190
- kgPrimary: i(_),
12191
- kgDisabled: s(_),
12192
- onKgClick: () => o(_)
12200
+ kgButton: v,
12201
+ kgVarName: v.var_nam,
12202
+ kgType: v.typ,
12203
+ kgIcon: v.icon,
12204
+ kgText: l(v),
12205
+ kgColor: v.color,
12206
+ kgPrimary: i(v),
12207
+ kgDisabled: s(v),
12208
+ onKgClick: () => o(v)
12193
12209
  }, null);
12194
12210
  }
12195
12211
  function g() {
12196
- var _;
12197
- return (_ = r.varButtons.value) == null ? void 0 : _.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
12212
+ var v;
12213
+ return (v = r.varButtons.value) == null ? void 0 : v.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
12198
12214
  }
12199
12215
  function p() {
12200
12216
  return createVNode(Dropdown, {
@@ -12208,11 +12224,11 @@ const getProps$e = () => ({
12208
12224
  }),
12209
12225
  overlay: () => createVNode(Menu, null, {
12210
12226
  default: () => {
12211
- var _, b;
12212
- return [(b = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
12213
- let v;
12214
- return createVNode(Menu.Item, null, _isSlot$3(v = c(m)) ? v : {
12215
- default: () => [v]
12227
+ var v, b;
12228
+ return [(b = (v = r.varButtons.value) == null ? void 0 : v.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
12229
+ let _;
12230
+ return createVNode(Menu.Item, null, _isSlot$3(_ = c(m)) ? _ : {
12231
+ default: () => [_]
12216
12232
  });
12217
12233
  })];
12218
12234
  }
@@ -12220,14 +12236,14 @@ const getProps$e = () => ({
12220
12236
  });
12221
12237
  }
12222
12238
  return () => {
12223
- let _;
12239
+ let v;
12224
12240
  return createVNode("div", {
12225
12241
  class: "kg-button",
12226
12242
  "kg-frm-id": r.formID
12227
12243
  }, [createVNode(Spin, {
12228
12244
  spinning: a.value
12229
- }, _isSlot$3(_ = u()) ? _ : {
12230
- default: () => [_]
12245
+ }, _isSlot$3(v = u()) ? v : {
12246
+ default: () => [v]
12231
12247
  })]);
12232
12248
  };
12233
12249
  }
@@ -12637,7 +12653,7 @@ const leftVarProfileDetailColumns = (e) => {
12637
12653
  s.onOpen(async ({
12638
12654
  isCreating: b,
12639
12655
  isUpdating: m,
12640
- isCopying: v,
12656
+ isCopying: _,
12641
12657
  row: T,
12642
12658
  model: y
12643
12659
  }) => {
@@ -12648,28 +12664,28 @@ const leftVarProfileDetailColumns = (e) => {
12648
12664
  u.value = [];
12649
12665
  break;
12650
12666
  case m:
12651
- case v:
12667
+ case _:
12652
12668
  if (T != null && T.id)
12653
12669
  try {
12654
12670
  s.store.setIsLoading(n.formID, !0);
12655
- const R = await QueryByID({
12671
+ const F = await QueryByID({
12656
12672
  params: {
12657
12673
  id: T.id
12658
12674
  }
12659
12675
  });
12660
- l.value = l.value.map((O) => {
12676
+ l.value = l.value.map((M) => {
12661
12677
  var $;
12662
- const D = ($ = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === O.var_nam);
12663
- return D ? {
12664
- ...O,
12665
- ...D,
12666
- id: O.id
12667
- } : O;
12678
+ const P = ($ = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : $.find((w) => w.var_nam === M.var_nam);
12679
+ return P ? {
12680
+ ...M,
12681
+ ...P,
12682
+ id: M.id
12683
+ } : M;
12668
12684
  });
12669
- const L = (A = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? A : [];
12670
- u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
12671
- } catch (R) {
12672
- throw R;
12685
+ const L = (A = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((M) => M.var_nam)) != null ? A : [];
12686
+ u.value = l.value.filter((M) => L.includes(M.var_nam)).map((M) => M.id);
12687
+ } catch (F) {
12688
+ throw F;
12673
12689
  } finally {
12674
12690
  s.store.setIsLoading(n.formID, !1);
12675
12691
  }
@@ -12678,7 +12694,7 @@ const leftVarProfileDetailColumns = (e) => {
12678
12694
  break;
12679
12695
  }
12680
12696
  switch (!0) {
12681
- case v:
12697
+ case _:
12682
12698
  y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
12683
12699
  break;
12684
12700
  }
@@ -12686,9 +12702,9 @@ const leftVarProfileDetailColumns = (e) => {
12686
12702
  }), s.onBeforeOk(async ({
12687
12703
  model: b
12688
12704
  }) => {
12689
- var v, T;
12705
+ var _, T;
12690
12706
  const m = b.value;
12691
- return m.frm_id = i.formID, m.varProfileDetails = (T = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
12707
+ return m.frm_id = i.formID, m.varProfileDetails = (T = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
12692
12708
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12693
12709
  row: b
12694
12710
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -12711,7 +12727,7 @@ const leftVarProfileDetailColumns = (e) => {
12711
12727
  varProfileDetails: ({
12712
12728
  varName: b,
12713
12729
  props: m,
12714
- model: v,
12730
+ model: _,
12715
12731
  varConfig: T,
12716
12732
  varProfileDetail: y,
12717
12733
  varSubmitField: C
@@ -12732,9 +12748,9 @@ const leftVarProfileDetailColumns = (e) => {
12732
12748
  direction: E,
12733
12749
  filteredItems: A,
12734
12750
  selectedKeys: k,
12735
- disabled: R,
12751
+ disabled: F,
12736
12752
  onItemSelectAll: L,
12737
- onItemSelect: O
12753
+ onItemSelect: M
12738
12754
  }) => createVNode(Table, {
12739
12755
  pagination: !1,
12740
12756
  class: "kg-flex-table",
@@ -12746,14 +12762,14 @@ const leftVarProfileDetailColumns = (e) => {
12746
12762
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
12747
12763
  rowKey: "id",
12748
12764
  dataSource: A,
12749
- customRow: (D) => ({
12750
- onClick: ($) => _($, D, E, k)
12765
+ customRow: (P) => ({
12766
+ onClick: ($) => v($, P, E, k)
12751
12767
  }),
12752
12768
  rowSelection: g({
12753
- disabled: R,
12769
+ disabled: F,
12754
12770
  selectedKeys: k,
12755
12771
  onItemSelectAll: L,
12756
- onItemSelect: O
12772
+ onItemSelect: M
12757
12773
  })
12758
12774
  }, null)
12759
12775
  })
@@ -12766,7 +12782,7 @@ const leftVarProfileDetailColumns = (e) => {
12766
12782
  const g = ({
12767
12783
  disabled: b,
12768
12784
  selectedKeys: m,
12769
- onItemSelectAll: v,
12785
+ onItemSelectAll: _,
12770
12786
  onItemSelect: T
12771
12787
  }) => ({
12772
12788
  getCheckboxProps: (y) => ({
@@ -12776,7 +12792,7 @@ const leftVarProfileDetailColumns = (e) => {
12776
12792
  const E = C.filter((A) => !A.disabled).map(({
12777
12793
  key: A
12778
12794
  }) => A);
12779
- v(E, y);
12795
+ _(E, y);
12780
12796
  },
12781
12797
  onSelect({
12782
12798
  key: y
@@ -12788,22 +12804,22 @@ const leftVarProfileDetailColumns = (e) => {
12788
12804
  });
12789
12805
  async function p() {
12790
12806
  const b = watch(a.isReady, async (m) => {
12791
- var v, T;
12807
+ var _, T;
12792
12808
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12793
12809
  frm_id: e.hostFormID
12794
- }), (T = (v = a.search).value) == null || T.call(v));
12810
+ }), (T = (_ = a.search).value) == null || T.call(_));
12795
12811
  }, {
12796
12812
  immediate: !0
12797
12813
  });
12798
12814
  }
12799
- function _(b, m, v, T) {
12815
+ function v(b, m, _, T) {
12800
12816
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12801
12817
  switch (T.length = 0, b.detail) {
12802
12818
  case 1:
12803
12819
  T[0] = m.id;
12804
12820
  break;
12805
12821
  case 2:
12806
- switch (v) {
12822
+ switch (_) {
12807
12823
  case "left":
12808
12824
  u.value.push(m.id);
12809
12825
  break;
@@ -12917,18 +12933,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12917
12933
  var x;
12918
12934
  return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
12919
12935
  }), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
12920
- var x, H;
12921
- return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code));
12922
- }), _ = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), v = ref({
12936
+ var x, U;
12937
+ return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code));
12938
+ }), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
12923
12939
  kgHeight: g.value
12924
12940
  }), T = ref({
12925
12941
  visible: !1
12926
12942
  });
12927
12943
  let y;
12928
- const C = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
12929
- var x, H, Y;
12930
- if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
12931
- return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
12944
+ const C = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
12945
+ var x, U, q;
12946
+ if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
12947
+ return n.t((q = E.value) == null ? void 0 : q.var_nam).value;
12932
12948
  }), k = computed(() => {
12933
12949
  var x;
12934
12950
  switch ((x = E.value) == null ? void 0 : x.primary_flg) {
@@ -12939,23 +12955,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12939
12955
  default:
12940
12956
  return !0;
12941
12957
  }
12942
- }), R = computed(() => {
12958
+ }), F = computed(() => {
12943
12959
  var x;
12944
12960
  return ((x = i.value) == null ? void 0 : x.vis_flg) === 1;
12945
12961
  }), L = computed(() => {
12946
12962
  var x;
12947
12963
  return ((x = i.value) == null ? void 0 : x.resizable_flg) !== 0;
12948
- }), O = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), $ = computed(() => {
12964
+ }), M = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), P = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), $ = computed(() => {
12949
12965
  let x = "kg-search";
12950
- return R.value && (x += " kg-search--visible"), l.value && (x += " kg-search--teleport"), x;
12966
+ return F.value && (x += " kg-search--visible"), l.value && (x += " kg-search--teleport"), x;
12951
12967
  });
12952
12968
  watch(n.currentVarProfileDetails, (x) => {
12953
12969
  if (x) {
12954
- const H = {};
12955
- x.forEach((Y) => {
12956
- H[Y.var_nam] = "";
12957
- }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
12958
- Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12970
+ const U = {};
12971
+ x.forEach((q) => {
12972
+ U[q.var_nam] = "";
12973
+ }), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(U)), F.value ? (y == null || y(), y = watch(m, (q) => {
12974
+ q && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12959
12975
  }, {
12960
12976
  immediate: !0
12961
12977
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12965,65 +12981,65 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12965
12981
  }), onUnmounted(() => {
12966
12982
  a.store.dispose(n.formID);
12967
12983
  });
12968
- function V(x = !1) {
12969
- R.value ? m.value && m.value.validate().then(() => {
12984
+ function w(x = !1) {
12985
+ F.value ? m.value && m.value.validate().then(() => {
12970
12986
  a.store.emit(n.formID, "search", {
12971
12987
  resetPageIndex: x
12972
12988
  });
12973
- }).catch((H) => {
12989
+ }).catch((U) => {
12974
12990
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12975
- e: H
12991
+ e: U
12976
12992
  });
12977
12993
  }) : a.store.emit(n.formID, "search", {
12978
12994
  resetPageIndex: x
12979
12995
  });
12980
12996
  }
12981
- a.store.setSearchFn(n.formID, V);
12982
- function w() {
12997
+ a.store.setSearchFn(n.formID, w);
12998
+ function D() {
12983
12999
  var x;
12984
- (x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
13000
+ (x = m.value) == null || x.resetFields(), F.value ? m.value && m.value.validate().then(() => {
12985
13001
  a.store.emit(n.formID, "reset");
12986
- }).catch((H) => {
13002
+ }).catch((U) => {
12987
13003
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12988
- e: H
13004
+ e: U
12989
13005
  });
12990
13006
  }) : a.store.emit(n.formID, "reset");
12991
13007
  }
12992
- a.store.setResetFn(n.formID, w);
12993
- function I() {
12994
- return V(!0), Promise.resolve(!0);
13008
+ a.store.setResetFn(n.formID, D);
13009
+ function O() {
13010
+ return w(!0), Promise.resolve(!0);
12995
13011
  }
12996
- function M() {
13012
+ function I() {
12997
13013
  var x;
12998
13014
  return createVNode("div", {
12999
13015
  class: "title",
13000
13016
  onClick: G
13001
13017
  }, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
13002
13018
  class: "kg-search-title-left",
13003
- onClick: (H) => {
13004
- H.stopPropagation(), H.preventDefault();
13019
+ onClick: (U) => {
13020
+ U.stopPropagation(), U.preventDefault();
13005
13021
  }
13006
13022
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13007
13023
  }
13008
- function N() {
13009
- var x, H, Y, X;
13010
- return ((Y = (H = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : H.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13011
- value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
13024
+ function V() {
13025
+ var x, U, q, J;
13026
+ return ((q = (U = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : U.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13027
+ value: (J = n.currentVarProfileMasterID.value) != null ? J : void 0,
13012
13028
  "onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
13013
- disabled: _.value,
13029
+ disabled: v.value,
13014
13030
  class: "kg-search-profile-master-select"
13015
13031
  }, {
13016
13032
  default: () => {
13017
- var Z, re;
13018
- return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ne) => createVNode(Select.Option, {
13019
- value: ne.id
13033
+ var Z, ne;
13034
+ return (ne = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : ne.map((oe) => createVNode(Select.Option, {
13035
+ value: oe.id
13020
13036
  }, {
13021
- default: () => [n.t(ne == null ? void 0 : ne.prf_var_nam).value]
13037
+ default: () => [n.t(oe == null ? void 0 : oe.prf_var_nam).value]
13022
13038
  }));
13023
13039
  },
13024
13040
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
13025
13041
  }), createVNode(Button, {
13026
- disabled: _.value,
13042
+ disabled: v.value,
13027
13043
  onClick: () => {
13028
13044
  T.value.visible = !0;
13029
13045
  },
@@ -13036,30 +13052,30 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13036
13052
  hostFormID: n.formID
13037
13053
  }, null)]);
13038
13054
  }
13039
- function F() {
13040
- var x, H, Y, X, Z;
13041
- return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code)) && createVNode(Button, {
13055
+ function R() {
13056
+ var x, U, q, J, Z;
13057
+ return createVNode(Fragment, null, [V(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
13042
13058
  type: "primary",
13043
13059
  ghost: !p.value,
13044
13060
  disabled: p.value,
13045
- onClick: w,
13061
+ onClick: D,
13046
13062
  class: "kg-search-btn-reset"
13047
13063
  }, {
13048
13064
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
13049
13065
  }), createVNode(KgButton.Item, {
13050
13066
  kgType: KG_BUTTON_TYPE.SEARCH,
13051
- kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
13052
- kgIcon: (X = E.value) == null ? void 0 : X.icon,
13067
+ kgVarName: (q = E.value) == null ? void 0 : q.var_nam,
13068
+ kgIcon: (J = E.value) == null ? void 0 : J.icon,
13053
13069
  kgText: A.value,
13054
13070
  kgColor: (Z = E.value) == null ? void 0 : Z.color,
13055
13071
  kgPrimary: k.value,
13056
13072
  kgLoading: b.value,
13057
- onKgClick: I
13073
+ onKgClick: O
13058
13074
  }, null)]);
13059
13075
  }
13060
- function U() {
13076
+ function H() {
13061
13077
  return createVNode(Spin, {
13062
- spinning: D.value
13078
+ spinning: P.value
13063
13079
  }, {
13064
13080
  default: () => {
13065
13081
  var x;
@@ -13071,11 +13087,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13071
13087
  gutter: 6
13072
13088
  }, {
13073
13089
  default: () => {
13074
- var H;
13075
- return [(H = n.currentVarProfileDetails.value) == null ? void 0 : H.map((Y) => createVNode(KgForm.Item, {
13076
- kgVarName: Y.var_nam,
13090
+ var U;
13091
+ return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((q) => createVNode(KgForm.Item, {
13092
+ kgVarName: q.var_nam,
13077
13093
  kgContext: KG_FORM_CONTEXT.SEARCH,
13078
- onKgSubmit: () => V(!0)
13094
+ onKgSubmit: () => w(!0)
13079
13095
  }, null))];
13080
13096
  }
13081
13097
  })]
@@ -13084,18 +13100,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13084
13100
  });
13085
13101
  }
13086
13102
  function G() {
13087
- C.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
13103
+ C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
13088
13104
  }
13089
13105
  return () => createVNode(KgResizable, {
13090
- kgHeight: v.value.kgHeight,
13091
- "onUpdate:kgHeight": (x) => v.value.kgHeight = x,
13106
+ kgHeight: _.value.kgHeight,
13107
+ "onUpdate:kgHeight": (x) => _.value.kgHeight = x,
13092
13108
  kgMinHeight: g.value,
13093
13109
  kgMaxHeight: c.value,
13094
13110
  kgDisabled: !L.value,
13095
- class: $.value,
13111
+ kgClass: $.value,
13096
13112
  "kg-frm-id": n.formID
13097
13113
  }, {
13098
- default: () => [R.value && createVNode("div", {
13114
+ default: () => [F.value && createVNode("div", {
13099
13115
  class: "ant-collapse ant-collapse-icon-position-left"
13100
13116
  }, [createVNode("div", {
13101
13117
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -13106,17 +13122,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13106
13122
  default: () => [createVNode("div", {
13107
13123
  class: "ant-collapse-header"
13108
13124
  }, [createVNode(Spin, {
13109
- spinning: O.value
13125
+ spinning: M.value
13110
13126
  }, {
13111
- default: () => [M(), createVNode("div", {
13127
+ default: () => [I(), createVNode("div", {
13112
13128
  class: "ant-collapse-extra"
13113
- }, [F()])]
13129
+ }, [R()])]
13114
13130
  })])]
13115
13131
  }), createVNode("div", {
13116
13132
  class: "ant-collapse-content ant-collapse-content-active"
13117
13133
  }, [createVNode("div", {
13118
13134
  class: "ant-collapse-content-box"
13119
- }, [U()])])])])]
13135
+ }, [H()])])])])]
13120
13136
  });
13121
13137
  }
13122
13138
  });
@@ -13173,35 +13189,35 @@ function useMagicKeys(e = {}) {
13173
13189
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
13174
13190
  return {};
13175
13191
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13176
- function g(m, v) {
13177
- m in l && (t ? l[m] = v : l[m].value = v);
13192
+ function g(m, _) {
13193
+ m in l && (t ? l[m] = _ : l[m].value = _);
13178
13194
  }
13179
13195
  function p() {
13180
13196
  for (const m of c)
13181
13197
  g(m, !1);
13182
13198
  }
13183
- function _(m, v) {
13199
+ function v(m, _) {
13184
13200
  var T, y;
13185
13201
  const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), A = [E, C].filter(Boolean);
13186
- E && (v ? s.add(m.code) : s.delete(m.code));
13202
+ E && (_ ? s.add(m.code) : s.delete(m.code));
13187
13203
  for (const k of A)
13188
- c.add(k), g(k, v);
13189
- C === "meta" && !v ? (u.forEach((k) => {
13204
+ c.add(k), g(k, _);
13205
+ C === "meta" && !_ ? (u.forEach((k) => {
13190
13206
  s.delete(k), g(k, !1);
13191
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...A].forEach((k) => u.add(k));
13207
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...A].forEach((k) => u.add(k));
13192
13208
  }
13193
- r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13209
+ r && (useEventListener(r, "keydown", (m) => (v(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (v(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13194
13210
  const b = new Proxy(l, {
13195
- get(m, v, T) {
13196
- if (typeof v != "string")
13197
- return Reflect.get(m, v, T);
13198
- if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
13199
- if (/[+_-]/.test(v)) {
13200
- const C = v.split(/[+_-]/g).map((E) => E.trim());
13201
- l[v] = computed(() => C.every((E) => unref(b[E])));
13211
+ get(m, _, T) {
13212
+ if (typeof _ != "string")
13213
+ return Reflect.get(m, _, T);
13214
+ if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
13215
+ if (/[+_-]/.test(_)) {
13216
+ const C = _.split(/[+_-]/g).map((E) => E.trim());
13217
+ l[_] = computed(() => C.every((E) => unref(b[E])));
13202
13218
  } else
13203
- l[v] = ref(!1);
13204
- const y = Reflect.get(m, v, T);
13219
+ l[_] = ref(!1);
13220
+ const y = Reflect.get(m, _, T);
13205
13221
  return t ? unref(y) : y;
13206
13222
  }
13207
13223
  });
@@ -13587,112 +13603,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13587
13603
  columnWidth: 32,
13588
13604
  hideSelectAll: !0,
13589
13605
  selectedRowKeys: g,
13590
- onSelect: (V) => R(V)
13591
- }), _ = ref({
13606
+ onSelect: (w) => F(w)
13607
+ }), v = ref({
13592
13608
  visible: !1
13593
13609
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13594
- var V;
13595
- return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13596
- }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13597
- watch(() => n.getSelectedVar, (V) => {
13598
- V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13610
+ var w;
13611
+ return !!c.value || ((w = n.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13612
+ }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13613
+ watch(() => n.getSelectedVar, (w) => {
13614
+ w ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13599
13615
  }, {
13600
13616
  immediate: !0
13601
- }), watch(() => n.getSelectedVarCatalog, async (V) => {
13602
- var w, I;
13603
- l.value.var_text = (w = V == null ? void 0 : V.var_text) != null ? w : "", (I = i.value) == null || I.clearValidate();
13617
+ }), watch(() => n.getSelectedVarCatalog, async (w) => {
13618
+ var D, O;
13619
+ l.value.var_text = (D = w == null ? void 0 : w.var_text) != null ? D : "", (O = i.value) == null || O.clearValidate();
13604
13620
  });
13605
- async function y(V = !1) {
13606
- var w, I, M;
13621
+ async function y(w = !1) {
13622
+ var D, O, I;
13607
13623
  a.value = !0;
13608
13624
  try {
13609
13625
  const {
13610
- records: N
13626
+ records: V
13611
13627
  } = await List({
13612
13628
  params: {
13613
13629
  pageNo: 1,
13614
13630
  pageSize: 999,
13615
13631
  frm_id: e == null ? void 0 : e.value,
13616
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13632
+ var_nam: (D = n.getSelectedVar) == null ? void 0 : D.var_nam,
13617
13633
  column: "frm_id,locale_id,cust_lvl",
13618
13634
  order: "asc"
13619
13635
  }
13620
13636
  });
13621
- if (c.value = null, u.value = N != null ? N : [], V) {
13622
- const F = u.value.find((U) => {
13637
+ if (c.value = null, u.value = V != null ? V : [], w) {
13638
+ const R = u.value.find((H) => {
13623
13639
  var G;
13624
- return U.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
13640
+ return H.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
13625
13641
  });
13626
- n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
13642
+ n.setSelectedVarCatalog(R != null ? R : null), g.value = R != null && R.id ? [R.id] : [];
13627
13643
  } else
13628
- n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
13629
- } catch (N) {
13630
- Logger.debug(N == null ? void 0 : N.message);
13644
+ n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (I = u.value[0]) != null && I.id ? [u.value[0].id] : [];
13645
+ } catch (V) {
13646
+ Logger.debug(V == null ? void 0 : V.message);
13631
13647
  } finally {
13632
13648
  a.value = !1;
13633
13649
  }
13634
13650
  }
13635
13651
  async function C() {
13636
- var V, w, I;
13652
+ var w, D, O;
13637
13653
  try {
13638
- o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
13639
- const M = new VarCatalog({
13640
- ...(w = n.getSelectedVarCatalog) != null ? w : {},
13641
- var_text: (I = l.value) == null ? void 0 : I.var_text
13654
+ o.value = !0, await ((w = i.value) == null ? void 0 : w.validate());
13655
+ const I = new VarCatalog({
13656
+ ...(D = n.getSelectedVarCatalog) != null ? D : {},
13657
+ var_text: (O = l.value) == null ? void 0 : O.var_text
13642
13658
  });
13643
- M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
13644
- data: M
13659
+ I.id ? I.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (I.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(I, "id"), await Add({
13660
+ data: I
13645
13661
  }, {
13646
13662
  successMessageMode: "none"
13647
13663
  }), message.success({
13648
13664
  content: t.t("kg.KgVarConfig.createSuccess")
13649
13665
  }), await y()) : (await Edit({
13650
- data: M
13666
+ data: I
13651
13667
  }, {
13652
13668
  successMessageMode: "none"
13653
13669
  }), message.success({
13654
13670
  content: t.t("kg.KgVarConfig.saveSuccess")
13655
13671
  }), await y(!0)) : (await Add({
13656
- data: M
13672
+ data: I
13657
13673
  }, {
13658
13674
  successMessageMode: "none"
13659
13675
  }), message.success({
13660
13676
  content: t.t("kg.KgVarConfig.createSuccess")
13661
13677
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
13662
- } catch (M) {
13663
- KgUtil.throwIfNotFormError(M);
13678
+ } catch (I) {
13679
+ KgUtil.throwIfNotFormError(I);
13664
13680
  } finally {
13665
13681
  o.value = !1;
13666
13682
  }
13667
13683
  }
13668
13684
  function E({
13669
- isAllForm: V,
13670
- isAllLanguage: w
13685
+ isAllForm: w,
13686
+ isAllLanguage: D
13671
13687
  }) {
13672
- var I, M, N;
13688
+ var O, I, V;
13673
13689
  c.value = new VarCatalog({
13674
13690
  id: "",
13675
13691
  cust_lvl: KG_CUSTOM_LEVEL.L10,
13676
- grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
13677
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13678
- frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13679
- locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13692
+ grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
13693
+ var_nam: (I = n.getSelectedVar) == null ? void 0 : I.var_nam,
13694
+ frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13695
+ locale_id: D ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
13680
13696
  var_text: ""
13681
13697
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
13682
13698
  }
13683
13699
  function A() {
13684
- var w;
13700
+ var D;
13685
13701
  u.value = without$1(u.value, c.value), c.value = null;
13686
- const V = (w = u.value[0]) != null ? w : null;
13687
- n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
13702
+ const w = (D = u.value[0]) != null ? D : null;
13703
+ n.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
13688
13704
  }
13689
13705
  function k() {
13690
13706
  KgUtil.confirm({
13691
13707
  onOk: async () => {
13692
- var V;
13708
+ var w;
13693
13709
  await Delete({
13694
13710
  params: {
13695
- id: (V = n.getSelectedVarCatalog) == null ? void 0 : V.id
13711
+ id: (w = n.getSelectedVarCatalog) == null ? void 0 : w.id
13696
13712
  }
13697
13713
  }, {
13698
13714
  successMessageMode: "none",
@@ -13703,19 +13719,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13703
13719
  }
13704
13720
  });
13705
13721
  }
13706
- function R(V) {
13707
- var w;
13708
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== V.id && (unref(c) ? KgUtil.confirm({
13722
+ function F(w) {
13723
+ var D;
13724
+ ((D = n.getSelectedVarCatalog) == null ? void 0 : D.id) !== w.id && (unref(c) ? KgUtil.confirm({
13709
13725
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
13710
13726
  onOk: () => {
13711
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
13727
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(w)), g.value = [w.id];
13712
13728
  }
13713
- }) : (n.setSelectedVarCatalog(unref(V)), g.value = [V.id]));
13729
+ }) : (n.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
13714
13730
  }
13715
13731
  function L() {
13716
- _.value.visible = !0;
13732
+ v.value.visible = !0;
13717
13733
  }
13718
- function O() {
13734
+ function M() {
13719
13735
  return createVNode("div", {
13720
13736
  class: "buttons"
13721
13737
  }, [createVNode(Button, {
@@ -13734,8 +13750,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13734
13750
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
13735
13751
  })]);
13736
13752
  }
13737
- function D() {
13738
- let V, w;
13753
+ function P() {
13754
+ let w, D;
13739
13755
  return createVNode("div", {
13740
13756
  class: "form"
13741
13757
  }, [createVNode(Form, {
@@ -13752,7 +13768,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13752
13768
  }, {
13753
13769
  default: () => [createVNode(Textarea, {
13754
13770
  value: l.value.var_text,
13755
- "onUpdate:value": (I) => l.value.var_text = I,
13771
+ "onUpdate:value": (O) => l.value.var_text = O,
13756
13772
  disabled: !n.getSelectedVarCatalog
13757
13773
  }, null), createVNode("button", {
13758
13774
  hidden: !0
@@ -13761,27 +13777,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13761
13777
  }), createVNode("div", {
13762
13778
  class: "buttons"
13763
13779
  }, [createVNode(Button, {
13764
- disabled: v.value,
13780
+ disabled: _.value,
13765
13781
  onClick: A
13766
- }, _isSlot(V = t.t("common.cancelText")) ? V : {
13767
- default: () => [V]
13782
+ }, _isSlot(w = t.t("common.cancelText")) ? w : {
13783
+ default: () => [w]
13768
13784
  }), createVNode(Button, {
13769
13785
  loading: o.value,
13770
13786
  disabled: T.value,
13771
13787
  onClick: C,
13772
13788
  type: "primary"
13773
- }, _isSlot(w = t.t("common.save")) ? w : {
13774
- default: () => [w]
13789
+ }, _isSlot(D = t.t("common.save")) ? D : {
13790
+ default: () => [D]
13775
13791
  })])]);
13776
13792
  }
13777
- function $(V) {
13778
- var I;
13779
- let w = "";
13780
- return V.id || (w += " ant-table-row-create"), V.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (w += " ant-table-row-selected "), w;
13793
+ function $(w) {
13794
+ var O;
13795
+ let D = "";
13796
+ return w.id || (D += " ant-table-row-create"), w.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (D += " ant-table-row-selected "), D;
13781
13797
  }
13782
13798
  return () => createVNode("div", {
13783
13799
  class: "kg-var-config-modal-var-var-catalog"
13784
- }, [O(), createVNode(Table, {
13800
+ }, [M(), createVNode(Table, {
13785
13801
  pagination: !1,
13786
13802
  class: "kg-flex-table",
13787
13803
  size: "small",
@@ -13795,12 +13811,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13795
13811
  loading: a.value,
13796
13812
  rowClassName: $,
13797
13813
  rowSelection: p.value,
13798
- customRow: (V) => ({
13799
- onClick: () => R(V)
13814
+ customRow: (w) => ({
13815
+ onClick: () => F(w)
13800
13816
  })
13801
- }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13802
- visible: _.value.visible,
13803
- "onUpdate:visible": (V) => _.value.visible = V,
13817
+ }, null), P(), createVNode(KgVarConfigModalVarCreateModal, {
13818
+ visible: v.value.visible,
13819
+ "onUpdate:visible": (w) => v.value.visible = w,
13804
13820
  onKgOk: E
13805
13821
  }, null)]);
13806
13822
  }
@@ -14129,9 +14145,9 @@ const KgWarehouse$1 = "", getProps = () => ({
14129
14145
  customRender: ({
14130
14146
  record: E
14131
14147
  }) => {
14132
- var k, R, L;
14148
+ var k, F, L;
14133
14149
  const A = E;
14134
- return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
14150
+ return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (F = A.whId) != null ? F : " "]), createVNode("div", {
14135
14151
  class: "address"
14136
14152
  }, [(L = A.adrId) != null ? L : " "])]);
14137
14153
  }
@@ -14139,8 +14155,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14139
14155
  var A;
14140
14156
  const E = (A = o.value) == null ? void 0 : A.toUpperCase();
14141
14157
  return c.value.filter((k) => {
14142
- var R, L, O, D, $, V;
14143
- return ((L = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : L.includes(E)) || ((D = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : D.includes(E)) || ((V = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : V.includes(E));
14158
+ var F, L, M, P, $, w;
14159
+ return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(E)) || ((P = (M = k.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : P.includes(E)) || ((w = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : w.includes(E));
14144
14160
  });
14145
14161
  }), p = computed(() => {
14146
14162
  var E, A;
@@ -14153,7 +14169,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14153
14169
  }), onMounted(() => {
14154
14170
  n.store.emit("mounted");
14155
14171
  });
14156
- function _() {
14172
+ function v() {
14157
14173
  !p.value || n.store.setVisible(!0);
14158
14174
  }
14159
14175
  function b() {
@@ -14162,7 +14178,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14162
14178
  function m() {
14163
14179
  o.value = "", c.value = [], i.value = null;
14164
14180
  }
14165
- function v() {
14181
+ function _() {
14166
14182
  var E;
14167
14183
  !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = n.warehouse.value) == null ? void 0 : E.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
14168
14184
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14201,7 +14217,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14201
14217
  ((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
14202
14218
  break;
14203
14219
  case 2:
14204
- i.value = A, v();
14220
+ i.value = A, _();
14205
14221
  break;
14206
14222
  }
14207
14223
  }
@@ -14229,7 +14245,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14229
14245
  okButtonProps: {
14230
14246
  disabled: l.value || !i.value
14231
14247
  },
14232
- onOk: v
14248
+ onOk: _
14233
14249
  }, {
14234
14250
  default: () => [createVNode(Input, {
14235
14251
  value: o.value,
@@ -14265,7 +14281,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14265
14281
  }
14266
14282
  return () => createVNode("div", {
14267
14283
  class: a.value,
14268
- onClick: _
14284
+ onClick: v
14269
14285
  }, [C()]);
14270
14286
  }
14271
14287
  });