@kengic/vue 0.5.35 → 0.5.37

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.
@@ -2459,17 +2459,17 @@ function baseClone(e, t, r, n, a, o) {
2459
2459
  }
2460
2460
  }
2461
2461
  o || (o = new Stack());
2462
- var v = o.get(e);
2463
- if (v)
2464
- return v;
2465
- o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
2466
- s.add(baseClone(_, t, r, _, e, o));
2467
- }) : isMap$1(e) && e.forEach(function(_, C) {
2468
- s.set(C, baseClone(_, t, r, C, e, o));
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));
2469
2469
  });
2470
2470
  var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
2471
- return arrayEach(m || e, function(_, C) {
2472
- m && (C = _, _ = e[C]), assignValue(s, C, baseClone(_, t, r, C, e, o));
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
2473
  }), s;
2474
2474
  }
2475
2475
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2507,21 +2507,21 @@ function equalArrays(e, t, r, n, a, o) {
2507
2507
  var u = o.get(e), c = o.get(t);
2508
2508
  if (u && c)
2509
2509
  return u == t && c == e;
2510
- var g = -1, p = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2510
+ var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2511
2511
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2512
2512
  var b = e[g], m = t[g];
2513
2513
  if (n)
2514
- var _ = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
2515
- if (_ !== void 0) {
2516
- if (_)
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)
2517
2517
  continue;
2518
2518
  p = !1;
2519
2519
  break;
2520
2520
  }
2521
- if (v) {
2522
- if (!arraySome(t, function(C, y) {
2523
- if (!cacheHas(v, y) && (b === C || a(b, C, r, n, o)))
2524
- return v.push(y);
2521
+ if (_) {
2522
+ if (!arraySome(t, function(T, y) {
2523
+ if (!cacheHas(_, y) && (b === T || a(b, T, r, n, o)))
2524
+ return _.push(y);
2525
2525
  })) {
2526
2526
  p = !1;
2527
2527
  break;
@@ -2591,25 +2591,25 @@ function equalObjects(e, t, r, n, a, o) {
2591
2591
  if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
2592
2592
  return !1;
2593
2593
  }
2594
- var v = o.get(e), b = o.get(t);
2595
- if (v && b)
2596
- return v == t && b == e;
2594
+ var _ = o.get(e), b = o.get(t);
2595
+ if (_ && b)
2596
+ return _ == t && b == e;
2597
2597
  var m = !0;
2598
2598
  o.set(e, t), o.set(t, e);
2599
- for (var _ = s; ++g < l; ) {
2599
+ for (var v = s; ++g < l; ) {
2600
2600
  p = i[g];
2601
- var C = e[p], y = t[p];
2601
+ var T = e[p], y = t[p];
2602
2602
  if (n)
2603
- var T = s ? n(y, C, p, t, e, o) : n(C, y, p, e, t, o);
2604
- if (!(T === void 0 ? C === y || a(C, y, r, n, o) : T)) {
2603
+ var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
2604
+ if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
2605
2605
  m = !1;
2606
2606
  break;
2607
2607
  }
2608
- _ || (_ = p == "constructor");
2608
+ v || (v = p == "constructor");
2609
2609
  }
2610
- if (m && !_) {
2611
- var E = e.constructor, I = t.constructor;
2612
- E != I && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (m = !1);
2610
+ if (m && !v) {
2611
+ var E = e.constructor, A = t.constructor;
2612
+ E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
2613
2613
  }
2614
2614
  return o.delete(e), o.delete(t), m;
2615
2615
  }
@@ -2626,10 +2626,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2626
2626
  if (p && !c)
2627
2627
  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
2628
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2629
- var v = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2630
- if (v || b) {
2631
- var m = v ? e.value() : e, _ = b ? t.value() : t;
2632
- return o || (o = new Stack()), a(m, _, r, n, o);
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);
2633
2633
  }
2634
2634
  }
2635
2635
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -2822,14 +2822,14 @@ function baseIntersection(e, t, r) {
2822
2822
  var g = -1, p = i[0];
2823
2823
  e:
2824
2824
  for (; ++g < a && u.length < l; ) {
2825
- var v = c[g], b = t ? t(v) : v;
2826
- if (v = r || v !== 0 ? v : 0, !(p ? cacheHas(p, b) : n(u, b, r))) {
2825
+ var _ = c[g], b = t ? t(_) : _;
2826
+ if (_ = r || _ !== 0 ? _ : 0, !(p ? cacheHas(p, b) : n(u, b, r))) {
2827
2827
  for (s = o; --s; ) {
2828
2828
  var m = i[s];
2829
2829
  if (!(m ? cacheHas(m, b) : n(e[s], b, r)))
2830
2830
  continue e;
2831
2831
  }
2832
- p && p.push(b), u.push(v);
2832
+ p && p.push(b), u.push(_);
2833
2833
  }
2834
2834
  }
2835
2835
  return u;
@@ -3354,8 +3354,8 @@ function generate$1(e) {
3354
3354
  r.push(u);
3355
3355
  }
3356
3356
  return t.theme === "dark" ? darkColorMap.map(function(c) {
3357
- var g = c.index, p = c.opacity, v = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3358
- return v;
3357
+ var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3358
+ return _;
3359
3359
  }) : r;
3360
3360
  }
3361
3361
  var presetPrimaryColors = {
@@ -3711,26 +3711,26 @@ function _objectWithoutPropertiesLoose(e, t) {
3711
3711
  }
3712
3712
  setTwoToneColor("#1890ff");
3713
3713
  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), v = (n = {
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 = {
3715
3715
  anticon: !0
3716
3716
  }, _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
3717
  m === void 0 && g && (m = -1, p.tabindex = m);
3718
- var _ = l ? {
3718
+ var v = l ? {
3719
3719
  msTransform: "rotate(".concat(l, "deg)"),
3720
3720
  transform: "rotate(".concat(l, "deg)")
3721
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), T = y[0], E = y[1];
3721
+ } : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
3722
3722
  return createVNode("span", _objectSpread$i({
3723
3723
  role: "img",
3724
3724
  "aria-label": s.name
3725
3725
  }, p, {
3726
3726
  onClick: g,
3727
- class: v
3727
+ class: _
3728
3728
  }), [createVNode(VueIcon, {
3729
3729
  class: b,
3730
3730
  icon: s,
3731
- primaryColor: T,
3731
+ primaryColor: C,
3732
3732
  secondaryColor: E,
3733
- style: _
3733
+ style: v
3734
3734
  }, null)]);
3735
3735
  };
3736
3736
  Icon$1.props = {
@@ -4691,60 +4691,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4691
4691
  (function(r, n) {
4692
4692
  e.exports = n();
4693
4693
  })(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", 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+)?$/, C = /\[([^\]]+)]|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(A) {
4695
- var M = ["th", "st", "nd", "rd"], w = A % 100;
4696
- return "[" + A + (M[(w - 20) % 10] || M[w] || M[0]) + "]";
4697
- } }, T = function(A, M, w) {
4698
- var N = String(A);
4699
- return !N || N.length >= M ? A : "" + Array(M + 1 - N.length).join(w) + A;
4700
- }, E = { s: T, z: function(A) {
4701
- var M = -A.utcOffset(), w = Math.abs(M), N = Math.floor(w / 60), F = w % 60;
4702
- return (M <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(F, 2, "0");
4703
- }, m: function A(M, w) {
4704
- if (M.date() < w.date())
4705
- return -A(w, M);
4706
- var N = 12 * (w.year() - M.year()) + (w.month() - M.month()), F = M.clone().add(N, g), U = w - F < 0, G = M.clone().add(N + (U ? -1 : 1), g);
4707
- return +(-(N + (w - F) / (U ? F - G : G - F)) || 0);
4708
- }, a: function(A) {
4709
- return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
4710
- }, p: function(A) {
4711
- return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[A] || String(A || "").toLowerCase().replace(/s$/, "");
4712
- }, u: function(A) {
4713
- return A === void 0;
4714
- } }, I = "en", k = {};
4715
- k[I] = y;
4716
- var R = function(A) {
4717
- return A instanceof $;
4718
- }, L = function A(M, w, N) {
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;
4714
+ } }, A = "en", k = {};
4715
+ k[A] = y;
4716
+ var R = function(w) {
4717
+ return w instanceof $;
4718
+ }, L = function w(I, M, N) {
4719
4719
  var F;
4720
- if (!M)
4721
- return I;
4722
- if (typeof M == "string") {
4723
- var U = M.toLowerCase();
4724
- k[U] && (F = U), w && (k[U] = w, F = U);
4725
- var G = M.split("-");
4720
+ if (!I)
4721
+ 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
4726
  if (!F && G.length > 1)
4727
- return A(G[0]);
4727
+ return w(G[0]);
4728
4728
  } else {
4729
- var x = M.name;
4730
- k[x] = M, F = x;
4731
- }
4732
- return !N && F && (I = F), F || !N && I;
4733
- }, O = function(A, M) {
4734
- if (R(A))
4735
- return A.clone();
4736
- var w = typeof M == "object" ? M : {};
4737
- return w.date = A, w.args = arguments, new $(w);
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
4738
  }, D = E;
4739
- D.l = L, D.i = R, D.w = function(A, M) {
4740
- return O(A, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
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 });
4741
4741
  };
4742
4742
  var $ = function() {
4743
- function A(w) {
4744
- this.$L = L(w.locale, null, !0), this.parse(w);
4743
+ function w(M) {
4744
+ this.$L = L(M.locale, null, !0), this.parse(M);
4745
4745
  }
4746
- var M = A.prototype;
4747
- return M.parse = function(w) {
4746
+ var I = w.prototype;
4747
+ return I.parse = function(M) {
4748
4748
  this.$d = function(N) {
4749
4749
  var F = N.date, U = N.utc;
4750
4750
  if (F === null)
@@ -4754,48 +4754,48 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4754
4754
  if (F instanceof Date)
4755
4755
  return new Date(F);
4756
4756
  if (typeof F == "string" && !/Z$/i.test(F)) {
4757
- var G = F.match(_);
4757
+ var G = F.match(v);
4758
4758
  if (G) {
4759
4759
  var x = G[2] - 1 || 0, H = (G[7] || "0").substring(0, 3);
4760
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
4761
  }
4762
4762
  }
4763
4763
  return new Date(F);
4764
- }(w), this.$x = w.x || {}, this.init();
4765
- }, M.init = function() {
4766
- var w = this.$d;
4767
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
4768
- }, M.$utils = function() {
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
4769
  return D;
4770
- }, M.isValid = function() {
4770
+ }, I.isValid = function() {
4771
4771
  return this.$d.toString() !== m;
4772
- }, M.isSame = function(w, N) {
4773
- var F = O(w);
4772
+ }, I.isSame = function(M, N) {
4773
+ var F = O(M);
4774
4774
  return this.startOf(N) <= F && F <= this.endOf(N);
4775
- }, M.isAfter = function(w, N) {
4776
- return O(w) < this.startOf(N);
4777
- }, M.isBefore = function(w, N) {
4778
- return this.endOf(N) < O(w);
4779
- }, M.$g = function(w, N, F) {
4780
- return D.u(w) ? this[N] : this.set(F, w);
4781
- }, M.unix = function() {
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() {
4782
4782
  return Math.floor(this.valueOf() / 1e3);
4783
- }, M.valueOf = function() {
4783
+ }, I.valueOf = function() {
4784
4784
  return this.$d.getTime();
4785
- }, M.startOf = function(w, N) {
4786
- var F = this, U = !!D.u(N) || N, G = D.p(w), x = function(de, P) {
4785
+ }, I.startOf = function(M, N) {
4786
+ var F = this, U = !!D.u(N) || N, G = D.p(M), x = function(de, P) {
4787
4787
  var K = D.w(F.$u ? Date.UTC(F.$y, P, de) : new Date(F.$y, P, de), F);
4788
4788
  return U ? K : K.endOf(u);
4789
4789
  }, H = function(de, P) {
4790
4790
  return D.w(F.toDate()[de].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), F);
4791
4791
  }, Y = this.$W, X = this.$M, Z = this.$D, re = "set" + (this.$u ? "UTC" : "");
4792
4792
  switch (G) {
4793
- case v:
4793
+ case _:
4794
4794
  return U ? x(1, 0) : x(31, 11);
4795
4795
  case g:
4796
4796
  return U ? x(1, X) : x(0, X + 1);
4797
4797
  case c:
4798
- var ae = this.$locale().weekStart || 0, se = (Y < ae ? Y + 7 : Y) - ae;
4798
+ var ne = this.$locale().weekStart || 0, se = (Y < ne ? Y + 7 : Y) - ne;
4799
4799
  return x(U ? Z - se : Z + (6 - se), X);
4800
4800
  case u:
4801
4801
  case b:
@@ -4809,89 +4809,89 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4809
4809
  default:
4810
4810
  return this.clone();
4811
4811
  }
4812
- }, M.endOf = function(w) {
4813
- return this.startOf(w, !1);
4814
- }, M.$set = function(w, N) {
4815
- var F, U = D.p(w), G = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = G + "Date", F[b] = G + "Date", F[g] = G + "Month", F[v] = 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 === v) {
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
4817
  var Y = this.clone().set(b, 1);
4818
4818
  Y.$d[x](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4819
4819
  } else
4820
4820
  x && this.$d[x](H);
4821
4821
  return this.init(), this;
4822
- }, M.set = function(w, N) {
4823
- return this.clone().$set(w, N);
4824
- }, M.get = function(w) {
4825
- return this[D.p(w)]();
4826
- }, M.add = function(w, N) {
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
4827
  var F, U = this;
4828
- w = Number(w);
4828
+ M = Number(M);
4829
4829
  var G = D.p(N), x = function(X) {
4830
4830
  var Z = O(U);
4831
- return D.w(Z.date(Z.date() + Math.round(X * w)), U);
4831
+ return D.w(Z.date(Z.date() + Math.round(X * M)), U);
4832
4832
  };
4833
4833
  if (G === g)
4834
- return this.set(g, this.$M + w);
4835
- if (G === v)
4836
- return this.set(v, this.$y + w);
4834
+ return this.set(g, this.$M + M);
4835
+ if (G === _)
4836
+ return this.set(_, this.$y + M);
4837
4837
  if (G === u)
4838
4838
  return x(1);
4839
4839
  if (G === c)
4840
4840
  return x(7);
4841
- var H = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[G] || 1, Y = this.$d.getTime() + w * H;
4841
+ var H = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[G] || 1, Y = this.$d.getTime() + M * H;
4842
4842
  return D.w(Y, this);
4843
- }, M.subtract = function(w, N) {
4844
- return this.add(-1 * w, N);
4845
- }, M.format = function(w) {
4843
+ }, I.subtract = function(M, N) {
4844
+ return this.add(-1 * M, N);
4845
+ }, I.format = function(M) {
4846
4846
  var N = this, F = this.$locale();
4847
4847
  if (!this.isValid())
4848
4848
  return F.invalidDate || m;
4849
- var U = w || "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) {
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
4850
  return P && (P[K] || P(N, U)) || z[K].slice(0, q);
4851
- }, ae = function(P) {
4851
+ }, ne = function(P) {
4852
4852
  return D.s(x % 12 || 12, P, "0");
4853
4853
  }, se = F.meridiem || function(P, K, z) {
4854
4854
  var q = P < 12 ? "AM" : "PM";
4855
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: ae(1), hh: ae(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(C, function(P, K) {
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
4858
  return K || de[P] || G.replace(":", "");
4859
4859
  });
4860
- }, M.utcOffset = function() {
4860
+ }, I.utcOffset = function() {
4861
4861
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4862
- }, M.diff = function(w, N, F) {
4863
- var U, G = D.p(N), x = O(w), H = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, X = D.m(this, x);
4864
- return X = (U = {}, U[v] = 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
- }, M.daysInMonth = function() {
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() {
4866
4866
  return this.endOf(g).$D;
4867
- }, M.$locale = function() {
4867
+ }, I.$locale = function() {
4868
4868
  return k[this.$L];
4869
- }, M.locale = function(w, N) {
4870
- if (!w)
4869
+ }, I.locale = function(M, N) {
4870
+ if (!M)
4871
4871
  return this.$L;
4872
- var F = this.clone(), U = L(w, N, !0);
4872
+ var F = this.clone(), U = L(M, N, !0);
4873
4873
  return U && (F.$L = U), F;
4874
- }, M.clone = function() {
4874
+ }, I.clone = function() {
4875
4875
  return D.w(this.$d, this);
4876
- }, M.toDate = function() {
4876
+ }, I.toDate = function() {
4877
4877
  return new Date(this.valueOf());
4878
- }, M.toJSON = function() {
4878
+ }, I.toJSON = function() {
4879
4879
  return this.isValid() ? this.toISOString() : null;
4880
- }, M.toISOString = function() {
4880
+ }, I.toISOString = function() {
4881
4881
  return this.$d.toISOString();
4882
- }, M.toString = function() {
4882
+ }, I.toString = function() {
4883
4883
  return this.$d.toUTCString();
4884
- }, A;
4884
+ }, w;
4885
4885
  }(), V = $.prototype;
4886
- return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(A) {
4887
- V[A[1]] = function(M) {
4888
- return this.$g(M, A[0], A[1]);
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]);
4889
4889
  };
4890
- }), O.extend = function(A, M) {
4891
- return A.$i || (A(M, $, O), A.$i = !0), O;
4892
- }, O.locale = L, O.isDayjs = R, O.unix = function(A) {
4893
- return O(1e3 * A);
4894
- }, O.en = k[I], O.Ls = k, O.p = {}, O;
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;
4895
4895
  });
4896
4896
  })(dayjs_min);
4897
4897
  const dayjs = dayjs_min.exports;
@@ -4931,37 +4931,37 @@ function filesize(e, {
4931
4931
  standard: c = EMPTY,
4932
4932
  output: g = STRING,
4933
4933
  fullform: p = !1,
4934
- fullforms: v = [],
4934
+ fullforms: _ = [],
4935
4935
  exponent: b = -1,
4936
4936
  roundingMethod: m = ROUND,
4937
- precision: _ = 0
4937
+ precision: v = 0
4938
4938
  } = {}) {
4939
- let C = b, y = Number(e), T = [], E = 0, I = EMPTY;
4939
+ let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
4940
4940
  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
4941
  const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
4942
4942
  if (typeof e != "bigint" && isNaN(e))
4943
4943
  throw new TypeError(INVALID_NUMBER);
4944
4944
  if (typeof O !== FUNCTION)
4945
4945
  throw new TypeError(INVALID_ROUND);
4946
- if (L && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(k)), C < 0 && (C = 0)), C > 8 && (_ > 0 && (_ += 8 - C), C = 8), g === EXPONENT)
4947
- return C;
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)
4947
+ return T;
4948
4948
  if (y === 0)
4949
- T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4949
+ C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4950
4950
  else {
4951
- E = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (E = E * 8, E >= k && C < 8 && (E = E / k, C++));
4952
- const D = Math.pow(10, C > 0 ? a : 0);
4953
- T[0] = O(E * D) / D, T[0] === k && C < 8 && b === -1 && (T[0] = 1, C++), I = T[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4951
+ 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
4954
  }
4955
- if (L && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4956
- const D = i || PERIOD, $ = T[0].toString().split(D), V = $[1] || EMPTY, A = V.length, M = a - A;
4957
- T[0] = `${$[0]}${D}${V.padEnd(A + M, ZERO)}`;
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)}`;
4958
4958
  }
4959
- return R && (T[1] = v[C] ? v[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4960
- value: T[0],
4961
- symbol: T[1],
4962
- exponent: C,
4963
- unit: I
4964
- } : T.join(l);
4959
+ return R && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4960
+ value: C[0],
4961
+ symbol: C[1],
4962
+ exponent: T,
4963
+ unit: A
4964
+ } : C.join(l);
4965
4965
  }
4966
4966
  const data$6 = {
4967
4967
  width: 1024,
@@ -5243,18 +5243,18 @@ function iconToSVG(e, t) {
5243
5243
  };
5244
5244
  let o = r.body;
5245
5245
  [r, n].forEach((b) => {
5246
- const m = [], _ = b.hFlip, C = b.vFlip;
5246
+ const m = [], v = b.hFlip, T = b.vFlip;
5247
5247
  let y = b.rotate;
5248
- _ ? C ? y += 2 : (m.push(
5248
+ v ? T ? y += 2 : (m.push(
5249
5249
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5250
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5250
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
5251
5251
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5252
5252
  ), m.push("scale(1 -1)"), a.top = a.left = 0);
5253
- let T;
5253
+ let C;
5254
5254
  switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5255
5255
  case 1:
5256
- T = a.height / 2 + a.top, m.unshift(
5257
- "rotate(90 " + T.toString() + " " + T.toString() + ")"
5256
+ C = a.height / 2 + a.top, m.unshift(
5257
+ "rotate(90 " + C.toString() + " " + C.toString() + ")"
5258
5258
  );
5259
5259
  break;
5260
5260
  case 2:
@@ -5263,20 +5263,20 @@ function iconToSVG(e, t) {
5263
5263
  );
5264
5264
  break;
5265
5265
  case 3:
5266
- T = a.width / 2 + a.left, m.unshift(
5267
- "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5266
+ C = a.width / 2 + a.left, m.unshift(
5267
+ "rotate(-90 " + C.toString() + " " + C.toString() + ")"
5268
5268
  );
5269
5269
  break;
5270
5270
  }
5271
- y % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5271
+ y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5272
5272
  });
5273
5273
  const s = n.width, i = n.height, l = a.width, u = a.height;
5274
5274
  let c, g;
5275
5275
  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 = {}, v = (b, m) => {
5276
+ const p = {}, _ = (b, m) => {
5277
5277
  isUnsetKeyword(m) || (p[b] = m.toString());
5278
5278
  };
5279
- return v("width", c), v("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5279
+ return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5280
5280
  attributes: p,
5281
5281
  body: o
5282
5282
  };
@@ -5557,8 +5557,8 @@ function sendQuery(e, t, r, n) {
5557
5557
  } else
5558
5558
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5559
5559
  const i = Date.now();
5560
- let l = "pending", u = 0, c, g = null, p = [], v = [];
5561
- typeof n == "function" && v.push(n);
5560
+ let l = "pending", u = 0, c, g = null, p = [], _ = [];
5561
+ typeof n == "function" && _.push(n);
5562
5562
  function b() {
5563
5563
  g && (clearTimeout(g), g = null);
5564
5564
  }
@@ -5567,26 +5567,26 @@ function sendQuery(e, t, r, n) {
5567
5567
  k.status === "pending" && (k.status = "aborted");
5568
5568
  }), p = [];
5569
5569
  }
5570
- function _(k, R) {
5571
- R && (v = []), typeof k == "function" && v.push(k);
5570
+ function v(k, R) {
5571
+ R && (_ = []), typeof k == "function" && _.push(k);
5572
5572
  }
5573
- function C() {
5573
+ function T() {
5574
5574
  return {
5575
5575
  startTime: i,
5576
5576
  payload: t,
5577
5577
  status: l,
5578
5578
  queriesSent: u,
5579
5579
  queriesPending: p.length,
5580
- subscribe: _,
5580
+ subscribe: v,
5581
5581
  abort: m
5582
5582
  };
5583
5583
  }
5584
5584
  function y() {
5585
- l = "failed", v.forEach((k) => {
5585
+ l = "failed", _.forEach((k) => {
5586
5586
  k(void 0, c);
5587
5587
  });
5588
5588
  }
5589
- function T() {
5589
+ function C() {
5590
5590
  p.forEach((k) => {
5591
5591
  k.status === "pending" && (k.status = "aborted");
5592
5592
  }), p = [];
@@ -5608,18 +5608,18 @@ function sendQuery(e, t, r, n) {
5608
5608
  return;
5609
5609
  }
5610
5610
  if (O) {
5611
- c = L, p.length || (s.length ? I() : y());
5611
+ c = L, p.length || (s.length ? A() : y());
5612
5612
  return;
5613
5613
  }
5614
- if (b(), T(), !e.random) {
5614
+ if (b(), C(), !e.random) {
5615
5615
  const D = e.resources.indexOf(k.resource);
5616
5616
  D !== -1 && D !== e.index && (e.index = D);
5617
5617
  }
5618
- l = "completed", v.forEach((D) => {
5618
+ l = "completed", _.forEach((D) => {
5619
5619
  D(L);
5620
5620
  });
5621
5621
  }
5622
- function I() {
5622
+ function A() {
5623
5623
  if (l !== "pending")
5624
5624
  return;
5625
5625
  b();
@@ -5627,7 +5627,7 @@ function sendQuery(e, t, r, n) {
5627
5627
  if (k === void 0) {
5628
5628
  if (p.length) {
5629
5629
  g = setTimeout(() => {
5630
- b(), l === "pending" && (T(), y());
5630
+ b(), l === "pending" && (C(), y());
5631
5631
  }, e.timeout);
5632
5632
  return;
5633
5633
  }
@@ -5641,9 +5641,9 @@ function sendQuery(e, t, r, n) {
5641
5641
  E(R, L, O);
5642
5642
  }
5643
5643
  };
5644
- p.push(R), u++, g = setTimeout(I, e.rotate), r(k, t, R.callback);
5644
+ p.push(R), u++, g = setTimeout(A, e.rotate), r(k, t, R.callback);
5645
5645
  }
5646
- return setTimeout(I), C;
5646
+ return setTimeout(A), T;
5647
5647
  }
5648
5648
  function initRedundancy(e) {
5649
5649
  const t = {
@@ -5908,8 +5908,8 @@ const loadIcons = (e, t) => {
5908
5908
  const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
5909
5909
  g[c] || (g[c] = []);
5910
5910
  }), n.pending.forEach((l) => {
5911
- const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), v = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5912
- v.has(g) || (v.add(g), a[u][c].push(g));
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));
5913
5913
  }), o.forEach((l) => {
5914
5914
  const { provider: u, prefix: c } = l;
5915
5915
  a[u][c].length && loadNewIcons(l, a[u][c]);
@@ -6018,8 +6018,8 @@ function fixSize(e) {
6018
6018
  const render = (e, t) => {
6019
6019
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
6020
6020
  for (let m in t) {
6021
- const _ = t[m];
6022
- if (_ !== void 0)
6021
+ const v = t[m];
6022
+ if (v !== void 0)
6023
6023
  switch (m) {
6024
6024
  case "icon":
6025
6025
  case "style":
@@ -6029,24 +6029,24 @@ const render = (e, t) => {
6029
6029
  case "inline":
6030
6030
  case "hFlip":
6031
6031
  case "vFlip":
6032
- r[m] = _ === !0 || _ === "true" || _ === 1;
6032
+ r[m] = v === !0 || v === "true" || v === 1;
6033
6033
  break;
6034
6034
  case "flip":
6035
- typeof _ == "string" && flipFromString(r, _);
6035
+ typeof v == "string" && flipFromString(r, v);
6036
6036
  break;
6037
6037
  case "color":
6038
- o.color = _;
6038
+ o.color = v;
6039
6039
  break;
6040
6040
  case "rotate":
6041
- typeof _ == "string" ? r[m] = rotateFromString(_) : typeof _ == "number" && (r[m] = _);
6041
+ typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
6042
6042
  break;
6043
6043
  case "ariaHidden":
6044
6044
  case "aria-hidden":
6045
- _ !== !0 && _ !== "true" && delete n["aria-hidden"];
6045
+ v !== !0 && v !== "true" && delete n["aria-hidden"];
6046
6046
  break;
6047
6047
  default: {
6048
- const C = customisationAliases[m];
6049
- C ? (_ === !0 || _ === "true" || _ === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
6048
+ const T = customisationAliases[m];
6049
+ T ? (v === !0 || v === "true" || v === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
6050
6050
  }
6051
6051
  }
6052
6052
  }
@@ -6056,10 +6056,10 @@ const render = (e, t) => {
6056
6056
  ...o,
6057
6057
  ...i
6058
6058
  }, Object.assign(n, u);
6059
- let m = 0, _ = t.id;
6060
- return typeof _ == "string" && (_ = _.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + m++ : "iconifyVue"), h("svg", n);
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);
6061
6061
  }
6062
- const { body: c, width: g, height: p } = e, v = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
6062
+ const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
6063
6063
  ...u,
6064
6064
  width: g + "",
6065
6065
  height: p + ""
@@ -6070,7 +6070,7 @@ const render = (e, t) => {
6070
6070
  width: fixSize(u.width),
6071
6071
  height: fixSize(u.height),
6072
6072
  ...commonProps,
6073
- ...v ? monotoneProps : coloredProps,
6073
+ ..._ ? monotoneProps : coloredProps,
6074
6074
  ...i
6075
6075
  }, h("span", n);
6076
6076
  };
@@ -6236,8 +6236,8 @@ function createOptionsStore(e, t, r, n) {
6236
6236
  const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
6237
6237
  return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
6238
6238
  setActivePinia(r);
6239
- const v = r._s.get(e);
6240
- return s[p].call(v, v);
6239
+ const _ = r._s.get(e);
6240
+ return s[p].call(_, _);
6241
6241
  })), g), {}));
6242
6242
  }
6243
6243
  return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
@@ -6256,57 +6256,57 @@ function createSetupStore(e, t, r = {}, n, a) {
6256
6256
  deep: !0
6257
6257
  };
6258
6258
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
6259
- 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."));
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."));
6260
6260
  });
6261
- let u, c, g = markRaw([]), p = markRaw([]), v;
6261
+ let u, c, g = markRaw([]), p = markRaw([]), _;
6262
6262
  const b = n.state.value[e];
6263
6263
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6264
6264
  const m = ref({});
6265
- function _(L) {
6265
+ function v(L) {
6266
6266
  let O;
6267
- u = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof L == "function" ? (L(n.state.value[e]), O = {
6267
+ u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof L == "function" ? (L(n.state.value[e]), O = {
6268
6268
  type: MutationType.patchFunction,
6269
6269
  storeId: e,
6270
- events: v
6270
+ events: _
6271
6271
  }) : (mergeReactiveObjects(n.state.value[e], L), O = {
6272
6272
  type: MutationType.patchObject,
6273
6273
  payload: L,
6274
6274
  storeId: e,
6275
- events: v
6275
+ events: _
6276
6276
  }), nextTick().then(() => {
6277
6277
  u = !0;
6278
6278
  }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6279
6279
  }
6280
- const C = process.env.NODE_ENV !== "production" ? () => {
6280
+ const T = process.env.NODE_ENV !== "production" ? () => {
6281
6281
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6282
6282
  } : noop$1;
6283
6283
  function y() {
6284
6284
  o.stop(), g = [], p = [], n._s.delete(e);
6285
6285
  }
6286
- function T(L, O) {
6286
+ function C(L, O) {
6287
6287
  return function() {
6288
6288
  setActivePinia(n);
6289
6289
  const D = Array.from(arguments), $ = [], V = [];
6290
- function A(N) {
6290
+ function w(N) {
6291
6291
  $.push(N);
6292
6292
  }
6293
- function M(N) {
6293
+ function I(N) {
6294
6294
  V.push(N);
6295
6295
  }
6296
6296
  triggerSubscriptions(p, {
6297
6297
  args: D,
6298
6298
  name: L,
6299
6299
  store: k,
6300
- after: A,
6301
- onError: M
6300
+ after: w,
6301
+ onError: I
6302
6302
  });
6303
- let w;
6303
+ let M;
6304
6304
  try {
6305
- w = O.apply(this && this.$id === e ? this : k, D);
6305
+ M = O.apply(this && this.$id === e ? this : k, D);
6306
6306
  } catch (N) {
6307
6307
  throw triggerSubscriptions(V, N), N;
6308
6308
  }
6309
- return w instanceof Promise ? w.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, w), w);
6309
+ return M instanceof Promise ? M.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, M), M);
6310
6310
  };
6311
6311
  }
6312
6312
  const E = /* @__PURE__ */ markRaw({
@@ -6314,18 +6314,18 @@ function createSetupStore(e, t, r = {}, n, a) {
6314
6314
  getters: {},
6315
6315
  state: [],
6316
6316
  hotState: m
6317
- }), I = {
6317
+ }), A = {
6318
6318
  _p: n,
6319
6319
  $id: e,
6320
6320
  $onAction: addSubscription.bind(null, p),
6321
- $patch: _,
6322
- $reset: C,
6321
+ $patch: v,
6322
+ $reset: T,
6323
6323
  $subscribe(L, O = {}) {
6324
6324
  const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6325
6325
  (O.flush === "sync" ? c : u) && L({
6326
6326
  storeId: e,
6327
6327
  type: MutationType.direct,
6328
- events: v
6328
+ events: _
6329
6329
  }, V);
6330
6330
  }, assign$1({}, l, O)));
6331
6331
  return D;
@@ -6336,7 +6336,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6336
6336
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6337
6337
  _hmrPayload: E
6338
6338
  } : {},
6339
- I
6339
+ A
6340
6340
  ));
6341
6341
  n._s.set(e, k);
6342
6342
  const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
@@ -6345,7 +6345,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6345
6345
  if (isRef(O) && !isComputed(O) || isReactive(O))
6346
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
6347
  else if (typeof O == "function") {
6348
- const D = process.env.NODE_ENV !== "production" && a ? O : T(L, O);
6348
+ const D = process.env.NODE_ENV !== "production" && a ? O : C(L, O);
6349
6349
  R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
6350
6350
  } else
6351
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));
@@ -6355,7 +6355,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6355
6355
  set: (L) => {
6356
6356
  if (process.env.NODE_ENV !== "production" && a)
6357
6357
  throw new Error("cannot set hotState");
6358
- _((O) => {
6358
+ v((O) => {
6359
6359
  assign$1(O, L);
6360
6360
  });
6361
6361
  }
@@ -6374,7 +6374,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6374
6374
  });
6375
6375
  for (const D in O._hmrPayload.actions) {
6376
6376
  const $ = O[D];
6377
- set(k, D, T(D, $));
6377
+ set(k, D, C(D, $));
6378
6378
  }
6379
6379
  for (const D in O._hmrPayload.getters) {
6380
6380
  const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
@@ -6622,6 +6622,9 @@ class KgUtil {
6622
6622
  case (!!r && !!n && n.isDayjs(s)):
6623
6623
  a[o] = this.parseParamFromDayJS(o, s, r);
6624
6624
  break;
6625
+ case (isArray$1(s) && s.length === 2 && !!r && !!n && n.isDayjs(s[0]) && n.isDayjs(s[1])):
6626
+ a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, s[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, s[1], r);
6627
+ break;
6625
6628
  case isObjectLike(s):
6626
6629
  a[o] = this.parseParams(s);
6627
6630
  break;
@@ -6658,6 +6661,10 @@ class KgUtil {
6658
6661
  return r.format("YYYY-MM-DD");
6659
6662
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
6660
6663
  return r.format("YYYY-MM-DD HH:mm:ss");
6664
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
6665
+ return r.format("YYYY-MM-DD");
6666
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
6667
+ return r.format("YYYY-MM-DD HH:mm:ss");
6661
6668
  }
6662
6669
  return r;
6663
6670
  }
@@ -6882,21 +6889,21 @@ const getProps$w = () => ({
6882
6889
  break;
6883
6890
  }
6884
6891
  };
6885
- function v(y) {
6892
+ function _(y) {
6886
6893
  p(y);
6887
6894
  }
6888
6895
  function b(y) {
6889
6896
  p(y), g();
6890
6897
  }
6891
6898
  function m(y) {
6892
- 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));
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));
6893
6900
  }
6894
- function _(y, T, E) {
6895
- return y.addEventListener(T, E), {
6896
- remove: () => y.removeEventListener(T, E)
6901
+ function v(y, C, E) {
6902
+ return y.addEventListener(C, E), {
6903
+ remove: () => y.removeEventListener(C, E)
6897
6904
  };
6898
6905
  }
6899
- function C(y) {
6906
+ function T(y) {
6900
6907
  y.stopPropagation(), y.preventDefault();
6901
6908
  }
6902
6909
  return () => {
@@ -6906,7 +6913,7 @@ const getProps$w = () => ({
6906
6913
  style: u.value
6907
6914
  }, [createVNode("div", {
6908
6915
  class: "kg-resizable-handle",
6909
- onClick: C,
6916
+ onClick: T,
6910
6917
  onMousedown: m
6911
6918
  }, [createVNode("div", {
6912
6919
  class: "kg-resizable-handle-line"
@@ -7127,18 +7134,18 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7127
7134
  var b, m;
7128
7135
  return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
7129
7136
  });
7130
- l.onRowDoubleClick(() => v());
7137
+ l.onRowDoubleClick(() => _());
7131
7138
  function p() {
7132
7139
  r("update:visible", !1);
7133
7140
  }
7134
- function v() {
7135
- var b, m, _, C, y, T, E;
7141
+ function _() {
7142
+ var b, m, v, T, y, C, E;
7136
7143
  if (c.value) {
7137
- const I = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = I.map((R) => R[g.value])) != null ? _ : [];
7138
- (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7144
+ const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (v = A.map((R) => R[g.value])) != null ? v : [];
7145
+ (!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
7139
7146
  } else {
7140
- const I = (T = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? T : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
7141
- (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7147
+ 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 : "";
7148
+ (!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
7142
7149
  }
7143
7150
  }
7144
7151
  return () => {
@@ -7152,7 +7159,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7152
7159
  },
7153
7160
  wrapClassName: "kg-form-item-addon-lookup-modal",
7154
7161
  onCancel: p,
7155
- onOk: v
7162
+ onOk: _
7156
7163
  }, {
7157
7164
  default: () => [createVNode(KgVar, null, null)]
7158
7165
  });
@@ -7211,7 +7218,7 @@ function _useServices$2(e) {
7211
7218
  return KgUtil.tryParseJSON((s = n.value) == null ? void 0 : s.ctrl_prop);
7212
7219
  });
7213
7220
  function o(s) {
7214
- var u, c, g, p, v;
7221
+ var u, c, g, p, _;
7215
7222
  if (!s)
7216
7223
  return [];
7217
7224
  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";
@@ -7242,7 +7249,7 @@ function _useServices$2(e) {
7242
7249
  });
7243
7250
  break;
7244
7251
  }
7245
- return (v = a.value) != null && v.excludeValues ? s.filter((b) => {
7252
+ return (_ = a.value) != null && _.excludeValues ? s.filter((b) => {
7246
7253
  var m;
7247
7254
  return !((m = a.value.excludeValues) != null && m.includes(b[i]));
7248
7255
  }) : s;
@@ -7264,14 +7271,14 @@ const KgFormItemCheckboxGroup = defineComponent({
7264
7271
  }) {
7265
7272
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
7266
7273
  transformDatas: i
7267
- } = _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(() => {
7268
- var T;
7269
- let y = KgVarUtil.parseCommandParameter((T = g.value) == null ? void 0 : T.cmd_prm);
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(() => {
7275
+ var C;
7276
+ let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
7270
7277
  return y = mapValues(y, (E) => {
7271
7278
  if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
7272
- const I = E.slice(1, -1);
7273
- if (s.value && I in s.value)
7274
- return s.value[I];
7279
+ const A = E.slice(1, -1);
7280
+ if (s.value && A in s.value)
7281
+ return s.value[A];
7275
7282
  }
7276
7283
  return E;
7277
7284
  }), y;
@@ -7279,26 +7286,26 @@ const KgFormItemCheckboxGroup = defineComponent({
7279
7286
  var y;
7280
7287
  return KgUtil.tryParseJSON((y = p.value) == null ? void 0 : y.ctrl_prop);
7281
7288
  });
7282
- watch(v, () => {
7289
+ watch(_, () => {
7283
7290
  var y;
7284
7291
  (y = g.value) != null && y.id && m();
7285
7292
  }, {
7286
7293
  immediate: !0
7287
- }), watch([() => e.value, c], ([y, T]) => {
7288
- var I, k;
7294
+ }), watch([() => e.value, c], ([y, C]) => {
7295
+ var A, k;
7289
7296
  const E = get(y, "length", 0);
7290
- if (E > 0 && T.length > 0) {
7291
- const R = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", L = intersection$1(y, T == null ? void 0 : T.map((O) => O[R]));
7297
+ 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]));
7292
7299
  if (L.length < E) {
7293
7300
  r("update:value", L);
7294
7301
  return;
7295
7302
  }
7296
7303
  }
7297
7304
  switch (!0) {
7298
- case (E > 0 && E === T.length):
7305
+ case (E > 0 && E === C.length):
7299
7306
  l.value = !0, u.value = !1;
7300
7307
  break;
7301
- case (E > 0 && E !== T.length):
7308
+ case (E > 0 && E !== C.length):
7302
7309
  l.value = !1, u.value = !0;
7303
7310
  break;
7304
7311
  default:
@@ -7309,25 +7316,25 @@ const KgFormItemCheckboxGroup = defineComponent({
7309
7316
  immediate: !0
7310
7317
  });
7311
7318
  async function m() {
7312
- var R, L, O, D, $, V, A, M, w;
7313
- const y = (R = g.value) == null ? void 0 : R.cmd, T = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (A = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? A : "";
7314
- if (!y || !E || !I) {
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 : "";
7321
+ if (!y || !E || !A) {
7315
7322
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7316
7323
  frm_id: a.formID,
7317
7324
  var_nam: e.kgVarName,
7318
7325
  cmd: y,
7319
7326
  val_clm: E,
7320
- lbl_clm: I
7327
+ lbl_clm: A
7321
7328
  });
7322
7329
  return;
7323
7330
  }
7324
7331
  let k = null;
7325
7332
  try {
7326
- k = await ((M = httpClient()) == null ? void 0 : M.request({
7333
+ k = await ((I = httpClient()) == null ? void 0 : I.request({
7327
7334
  url: y,
7328
- method: T,
7329
- params: v.value,
7330
- data: v.value
7335
+ method: C,
7336
+ params: _.value,
7337
+ data: _.value
7331
7338
  }));
7332
7339
  } catch {
7333
7340
  }
@@ -7344,29 +7351,29 @@ const KgFormItemCheckboxGroup = defineComponent({
7344
7351
  }
7345
7352
  if (c.value.length > 0) {
7346
7353
  const N = c.value[0];
7347
- (!(E in N) || !(I 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.", {
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.", {
7348
7355
  frm_id: a.formID,
7349
7356
  var_nam: e.kgVarName,
7350
7357
  cmd: y,
7351
7358
  val_clm: E,
7352
- lbl_clm: I,
7359
+ lbl_clm: A,
7353
7360
  \u6240\u6709\u5217: Object.keys(N)
7354
7361
  });
7355
7362
  }
7356
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((N) => N[E]), e.value));
7363
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
7357
7364
  }
7358
- function _(y) {
7359
- var T, E, I;
7360
- y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
7365
+ function v(y) {
7366
+ var C, E, A;
7367
+ y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
7361
7368
  var R, L;
7362
7369
  return k[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""];
7363
- })) != null ? E : []) : C([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
7370
+ })) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
7364
7371
  }
7365
- function C(y) {
7372
+ function T(y) {
7366
7373
  r("update:value", y), r("kgChange", y);
7367
7374
  }
7368
7375
  return () => {
7369
- let y, T;
7376
+ let y, C;
7370
7377
  return createVNode("div", {
7371
7378
  class: "kg-form-item-checkbox-group"
7372
7379
  }, [createVNode(Form.ItemRest, null, {
@@ -7374,20 +7381,20 @@ const KgFormItemCheckboxGroup = defineComponent({
7374
7381
  checked: l.value,
7375
7382
  "onUpdate:checked": (E) => l.value = E,
7376
7383
  indeterminate: u.value,
7377
- onChange: _
7384
+ onChange: v
7378
7385
  }, _isSlot$8(y = n.t("kg.selectAll")) ? y : {
7379
7386
  default: () => [y]
7380
7387
  })]
7381
7388
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
7382
7389
  value: e.value,
7383
- "onUpdate:value": C
7390
+ "onUpdate:value": T
7384
7391
  }, {
7385
7392
  default: () => [createVNode(Row, {
7386
7393
  gutter: 12
7387
- }, _isSlot$8(T = c.value.map((E) => {
7388
- var I, k;
7394
+ }, _isSlot$8(C = c.value.map((E) => {
7395
+ var A, k;
7389
7396
  return createVNode(Col, {
7390
- span: (k = (I = b.value) == null ? void 0 : I.span) != null ? k : 24
7397
+ span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
7391
7398
  }, {
7392
7399
  default: () => {
7393
7400
  var R, L, O, D;
@@ -7402,8 +7409,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7402
7409
  })];
7403
7410
  }
7404
7411
  });
7405
- })) ? T : {
7406
- default: () => [T]
7412
+ })) ? C : {
7413
+ default: () => [C]
7407
7414
  })]
7408
7415
  })]);
7409
7416
  };
@@ -7436,6 +7443,34 @@ const KgFormItemCheckboxGroup = defineComponent({
7436
7443
  style: "width: 100%"
7437
7444
  }, null);
7438
7445
  }
7446
+ }), KgFormItemDateRange = defineComponent({
7447
+ name: "KgFormItemDateRange",
7448
+ props: getProps$u(),
7449
+ emits: ["update:value", "kgSubmit", "kgChange"],
7450
+ setup(e, {
7451
+ slots: t,
7452
+ emit: r,
7453
+ attrs: n
7454
+ }) {
7455
+ const a = inject("$dayjs", dayjs), o = computed(() => {
7456
+ let i = e.value;
7457
+ if (!!i && !(!isArray$1(i) || i.length !== 2) && ((!a.isDayjs(i[0]) || !a.isDayjs(i[1])) && (i = [a(i[0]), a(i[1])]), !(!a.isDayjs(i[0]) || !a.isDayjs(i[1]))))
7458
+ return i;
7459
+ });
7460
+ function s(i) {
7461
+ const l = i ? [a(i[0]), a(i[1])] : void 0;
7462
+ r("update:value", l), r("kgChange", l);
7463
+ }
7464
+ return () => createVNode(DatePicker.RangePicker, {
7465
+ value: o.value,
7466
+ "onUpdate:value": s,
7467
+ id: n.id,
7468
+ disabled: e.kgDisabled,
7469
+ placeholder: [e.kgPlaceholder, e.kgPlaceholder],
7470
+ showTime: e.kgShowTime,
7471
+ style: "width: 100%"
7472
+ }, null);
7473
+ }
7439
7474
  }), KgFormItemInput = defineComponent({
7440
7475
  name: "KgFormItemInput",
7441
7476
  props: getProps$u(),
@@ -7536,18 +7571,18 @@ const KgFormItemSelect = defineComponent({
7536
7571
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
7537
7572
  transformDatas: o
7538
7573
  } = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
7539
- var v;
7540
- let p = KgVarUtil.parseCommandParameter((v = i.value) == null ? void 0 : v.cmd_prm);
7574
+ var _;
7575
+ let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
7541
7576
  return p = mapValues(p, (b) => {
7542
- var m, _;
7577
+ var m, v;
7543
7578
  if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7544
- let C = b.slice(1, -1), y = "";
7545
- if (C.includes(".")) {
7546
- const T = C.split(".");
7547
- C = T[0], y = T[1];
7579
+ let T = b.slice(1, -1), y = "";
7580
+ if (T.includes(".")) {
7581
+ const C = T.split(".");
7582
+ T = C[0], y = C[1];
7548
7583
  }
7549
- if (a.value && C in a.value)
7550
- return y ? (_ = (m = a.value[`${C}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[C];
7584
+ 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];
7551
7586
  }
7552
7587
  return b;
7553
7588
  }), p;
@@ -7559,8 +7594,8 @@ const KgFormItemSelect = defineComponent({
7559
7594
  immediate: !0
7560
7595
  });
7561
7596
  async function u() {
7562
- var C, y, T, E, I, k, R, L;
7563
- const p = (C = i.value) == null ? void 0 : C.cmd, v = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", b = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
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 : "";
7564
7599
  if (!p || !b || !m) {
7565
7600
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7566
7601
  frm_id: n.formID,
@@ -7571,24 +7606,24 @@ const KgFormItemSelect = defineComponent({
7571
7606
  });
7572
7607
  return;
7573
7608
  }
7574
- let _ = null;
7609
+ let v = null;
7575
7610
  try {
7576
- _ = await ((L = httpClient()) == null ? void 0 : L.request({
7611
+ v = await ((L = httpClient()) == null ? void 0 : L.request({
7577
7612
  url: p,
7578
- method: v,
7613
+ method: _,
7579
7614
  params: l.value
7580
7615
  }));
7581
7616
  } catch {
7582
7617
  }
7583
- if (!isObjectLike(_))
7618
+ if (!isObjectLike(v))
7584
7619
  s.value = [];
7585
7620
  else
7586
7621
  switch (!0) {
7587
- case isArrayLike(_):
7588
- s.value = o(_);
7622
+ case isArrayLike(v):
7623
+ s.value = o(v);
7589
7624
  break;
7590
- case (_ && "total" in _ && "records" in _):
7591
- s.value = o(_.records);
7625
+ case (v && "total" in v && "records" in v):
7626
+ s.value = o(v.records);
7592
7627
  break;
7593
7628
  }
7594
7629
  if (s.value.length > 0) {
@@ -7606,17 +7641,17 @@ const KgFormItemSelect = defineComponent({
7606
7641
  }
7607
7642
  function c(p) {
7608
7643
  var b;
7609
- const v = (b = toRaw(s.value.find((m) => {
7610
- var _, C;
7611
- return m[(C = (_ = i.value) == null ? void 0 : _.val_clm) != null ? C : ""] === p;
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;
7612
7647
  }))) != null ? b : null;
7613
- r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
7648
+ r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
7614
7649
  }
7615
7650
  function g(p) {
7616
7651
  r("update:value", p), r("kgChange", p);
7617
7652
  }
7618
7653
  return () => {
7619
- var p, v, b;
7654
+ var p, _, b;
7620
7655
  return createVNode(Select, {
7621
7656
  value: e.value,
7622
7657
  "onUpdate:value": g,
@@ -7629,18 +7664,18 @@ const KgFormItemSelect = defineComponent({
7629
7664
  dropdownClassName: "kg-form-item-select-dropdown",
7630
7665
  style: "width: 100%",
7631
7666
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
7632
- "kg-val-clm": (v = i.value) == null ? void 0 : v.val_clm,
7667
+ "kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
7633
7668
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7634
7669
  }, {
7635
7670
  default: () => s.value.map((m) => {
7636
- var _, C, y, T;
7671
+ var v, T, y, C;
7637
7672
  return createVNode(Select.Option, {
7638
- "kg-value": m[(C = (_ = i.value) == null ? void 0 : _.val_clm) != null ? C : ""],
7639
- value: m[(T = (y = i.value) == null ? void 0 : y.val_clm) != null ? T : ""]
7673
+ "kg-value": m[(T = (v = i.value) == null ? void 0 : v.val_clm) != null ? T : ""],
7674
+ value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
7640
7675
  }, {
7641
7676
  default: () => {
7642
- var E, I;
7643
- return [m[(I = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? I : ""]];
7677
+ var E, A;
7678
+ return [m[(A = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? A : ""]];
7644
7679
  }
7645
7680
  });
7646
7681
  }),
@@ -7673,7 +7708,7 @@ function _useRules(e) {
7673
7708
  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));
7674
7709
  return {
7675
7710
  rules: computed(() => {
7676
- var l, u, c, g, p, v, b, m;
7711
+ var l, u, c, g, p, _, b, m;
7677
7712
  let i = [];
7678
7713
  switch (e.kgContext) {
7679
7714
  case KG_FORM_CONTEXT.SEARCH:
@@ -7711,13 +7746,13 @@ function _useRules(e) {
7711
7746
  }
7712
7747
  break;
7713
7748
  }
7714
- switch ((v = a.value) == null ? void 0 : v.data_type) {
7749
+ switch ((_ = a.value) == null ? void 0 : _.data_type) {
7715
7750
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7716
- const _ = (b = a.value) == null ? void 0 : b.min;
7717
- isNil(_) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7718
- validator: (C, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
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()
7719
7754
  }) : i.push({
7720
- validator: (C, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
7755
+ validator: (T, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7721
7756
  }));
7722
7757
  break;
7723
7758
  }
@@ -7735,9 +7770,9 @@ const KgFormItem = defineComponent({
7735
7770
  }) {
7736
7771
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
7737
7772
  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)), {
7738
- rules: v
7773
+ rules: _
7739
7774
  } = _useRules(e), b = computed(() => {
7740
- var V, A, M, w, N;
7775
+ var V, w, I, M, N;
7741
7776
  if (n.isRetrievingVar.value)
7742
7777
  return !0;
7743
7778
  let $ = !1;
@@ -7751,13 +7786,13 @@ const KgFormItem = defineComponent({
7751
7786
  case KG_FORM_CONTEXT.SUBMIT:
7752
7787
  switch (!0) {
7753
7788
  case n.isCreating.value:
7754
- $ = ((A = p.value) == null ? void 0 : A.crt_ena_flg) === 0;
7789
+ $ = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
7755
7790
  break;
7756
7791
  case n.isUpdating.value:
7757
- $ = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
7792
+ $ = ((I = p.value) == null ? void 0 : I.upt_ena_flg) === 0;
7758
7793
  break;
7759
7794
  case n.isCopying.value:
7760
- $ = ((w = p.value) == null ? void 0 : w.cpy_ena_flg) === 0;
7795
+ $ = ((M = p.value) == null ? void 0 : M.cpy_ena_flg) === 0;
7761
7796
  break;
7762
7797
  case n.isDeleting.value:
7763
7798
  $ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
@@ -7767,34 +7802,34 @@ const KgFormItem = defineComponent({
7767
7802
  }
7768
7803
  return $;
7769
7804
  }), m = computed(() => {
7770
- var V, A, M, w;
7805
+ var V, w, I, M;
7771
7806
  let $ = " ";
7772
7807
  if (e.kgPlaceholder)
7773
7808
  $ = e.kgPlaceholder;
7774
7809
  else
7775
7810
  switch (e.kgContext) {
7776
7811
  case KG_FORM_CONTEXT.SEARCH:
7777
- $ = n.t((A = (V = g.value) == null ? void 0 : V.placeholder) != null ? A : " ").value;
7812
+ $ = n.t((w = (V = g.value) == null ? void 0 : V.placeholder) != null ? w : " ").value;
7778
7813
  break;
7779
7814
  case KG_FORM_CONTEXT.SUBMIT:
7780
- $ = n.t((w = (M = p.value) == null ? void 0 : M.placeholder) != null ? w : " ").value;
7815
+ $ = n.t((M = (I = p.value) == null ? void 0 : I.placeholder) != null ? M : " ").value;
7781
7816
  break;
7782
7817
  }
7783
7818
  return $;
7784
- }), _ = computed(() => {
7785
- var V, A, M, w, N, F, U, G, x, H;
7819
+ }), v = computed(() => {
7820
+ var V, w, I, M, N, F, U, G, x, H;
7786
7821
  let $ = 6;
7787
7822
  if (e.kgSpan !== void 0)
7788
7823
  $ = e.kgSpan;
7789
7824
  else
7790
7825
  switch (e.kgContext) {
7791
7826
  case KG_FORM_CONTEXT.SEARCH:
7792
- $ = (A = (V = g.value) == null ? void 0 : V.width) != null ? A : 6;
7827
+ $ = (w = (V = g.value) == null ? void 0 : V.width) != null ? w : 6;
7793
7828
  break;
7794
7829
  case KG_FORM_CONTEXT.SUBMIT:
7795
7830
  switch (!0) {
7796
7831
  case n.isCreating.value:
7797
- $ = (w = (M = p.value) == null ? void 0 : M.crt_width) != null ? w : 6;
7832
+ $ = (M = (I = p.value) == null ? void 0 : I.crt_width) != null ? M : 6;
7798
7833
  break;
7799
7834
  case n.isUpdating.value:
7800
7835
  $ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
@@ -7808,19 +7843,19 @@ const KgFormItem = defineComponent({
7808
7843
  }
7809
7844
  }
7810
7845
  return Math.min(24, Math.max(1, $));
7811
- }), C = computed(() => {
7812
- var M, w;
7846
+ }), T = computed(() => {
7847
+ var I, M;
7813
7848
  const $ = get(k.value, "$el.parentElement");
7814
- if ($ && !((M = $.classList) != null && M.contains("ant-row")))
7849
+ if ($ && !((I = $.classList) != null && I.contains("ant-row")))
7815
7850
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7816
7851
  let V = {};
7817
- const A = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
7818
- return Number.isNaN(A) || (V = {
7819
- paddingLeft: `${A}px !important`,
7820
- paddingRight: `${A}px !important`
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`
7821
7856
  }), V;
7822
7857
  }), y = computed(() => {
7823
- var V, A, M, w;
7858
+ var V, w, I, M;
7824
7859
  let $ = "kg-form-item";
7825
7860
  switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7826
7861
  case KG_FORM_CONTEXT.SEARCH:
@@ -7832,26 +7867,26 @@ const KgFormItem = defineComponent({
7832
7867
  break;
7833
7868
  case KG_FORM_CONTEXT.SUBMIT:
7834
7869
  switch (!0) {
7835
- case (s.value && ((A = p.value) == null ? void 0 : A.crt_vis_flg) === 0):
7836
- case (i.value && ((M = p.value) == null ? void 0 : M.upt_vis_flg) === 0):
7837
- case (l.value && ((w = p.value) == null ? void 0 : w.cpy_vis_flg) === 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):
7838
7873
  $ += " kg-form-item--invisible";
7839
7874
  break;
7840
7875
  }
7841
7876
  break;
7842
7877
  }
7843
7878
  return $;
7844
- }), T = computed(() => {
7879
+ }), C = computed(() => {
7845
7880
  var V;
7846
7881
  const $ = {
7847
7882
  ...e,
7848
7883
  value: (V = a.value) == null ? void 0 : V[e.kgVarName],
7849
- "onUpdate:value": (A) => {
7850
- a.value && (a.value[e.kgVarName] = A);
7884
+ "onUpdate:value": (w) => {
7885
+ a.value && (a.value[e.kgVarName] = w);
7851
7886
  },
7852
7887
  kgPlaceholder: m.value,
7853
7888
  kgDisabled: b.value,
7854
- id: I.value
7889
+ id: A.value
7855
7890
  };
7856
7891
  switch (E.value) {
7857
7892
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7866,21 +7901,27 @@ const KgFormItem = defineComponent({
7866
7901
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7867
7902
  $.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7868
7903
  break;
7904
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
7905
+ $.kgShowTime = !1;
7906
+ break;
7907
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
7908
+ $.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7909
+ break;
7869
7910
  }
7870
7911
  return $;
7871
7912
  }), E = computed(() => {
7872
7913
  var $;
7873
7914
  return ($ = c.value) == null ? void 0 : $.ctrl_typ;
7874
- }), I = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7915
+ }), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7875
7916
  function R($, V) {
7876
- var A;
7877
- a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (A = o.value) == null || A.validate([e.kgVarName]);
7917
+ var w;
7918
+ a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (w = o.value) == null || w.validate([e.kgVarName]);
7878
7919
  }
7879
7920
  function L() {
7880
7921
  if (t.control) {
7881
7922
  const $ = {
7882
7923
  varName: e.kgVarName,
7883
- props: T,
7924
+ props: C,
7884
7925
  model: a,
7885
7926
  varConfig: c,
7886
7927
  varProfileDetail: g,
@@ -7890,27 +7931,31 @@ const KgFormItem = defineComponent({
7890
7931
  } else
7891
7932
  switch (E.value) {
7892
7933
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7893
- return createVNode(KgFormItemInputNumber, T.value, null);
7934
+ return createVNode(KgFormItemInputNumber, C.value, null);
7894
7935
  case KG_FORM_ITEM_TYPE.SELECT:
7895
- return createVNode(KgFormItemSelect, T.value, null);
7936
+ return createVNode(KgFormItemSelect, C.value, null);
7896
7937
  case KG_FORM_ITEM_TYPE.SWITCH:
7897
7938
  switch (e.kgContext) {
7898
7939
  case KG_FORM_CONTEXT.SEARCH:
7899
- return createVNode(KgFormItemSelect, T.value, null);
7940
+ return createVNode(KgFormItemSelect, C.value, null);
7900
7941
  case KG_FORM_CONTEXT.SUBMIT:
7901
7942
  default:
7902
- return createVNode(KgFormItemSwitch, T.value, null);
7943
+ return createVNode(KgFormItemSwitch, C.value, null);
7903
7944
  }
7904
7945
  case KG_FORM_ITEM_TYPE.CHECKBOX:
7905
- return createVNode(KgFormItemCheckbox, T.value, null);
7946
+ return createVNode(KgFormItemCheckbox, C.value, null);
7906
7947
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
7907
- return createVNode(KgFormItemCheckboxGroup, T.value, null);
7948
+ return createVNode(KgFormItemCheckboxGroup, C.value, null);
7908
7949
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7909
- return createVNode(KgFormItemDate, T.value, null);
7950
+ return createVNode(KgFormItemDate, C.value, null);
7910
7951
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7911
- return createVNode(KgFormItemDate, T.value, null);
7952
+ return createVNode(KgFormItemDate, C.value, null);
7953
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
7954
+ return createVNode(KgFormItemDateRange, C.value, null);
7955
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
7956
+ return createVNode(KgFormItemDateRange, C.value, null);
7912
7957
  default:
7913
- return createVNode(KgFormItemInput, T.value, null);
7958
+ return createVNode(KgFormItemInput, C.value, null);
7914
7959
  }
7915
7960
  }
7916
7961
  function O() {
@@ -7936,15 +7981,15 @@ const KgFormItem = defineComponent({
7936
7981
  "kg-var-nam": e.kgVarName,
7937
7982
  "kg-lkp-id": ($ = u.value) == null ? void 0 : $.lkp_id,
7938
7983
  "kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
7939
- span: _.value,
7984
+ span: v.value,
7940
7985
  class: y.value,
7941
- style: C.value
7986
+ style: T.value
7942
7987
  }, {
7943
7988
  default: () => [createVNode(Form.Item, {
7944
7989
  name: e.kgVarName,
7945
- rules: v.value,
7990
+ rules: _.value,
7946
7991
  validateFirst: !0,
7947
- htmlFor: I.value
7992
+ htmlFor: A.value
7948
7993
  }, {
7949
7994
  default: () => createVNode(Fragment, null, [L(), D()]),
7950
7995
  label: () => O()
@@ -8134,15 +8179,15 @@ function createStore(e, t, r) {
8134
8179
  _assignPluginFnProp: function(l, u) {
8135
8180
  var c = this[u];
8136
8181
  this[u] = function() {
8137
- var p = slice(arguments, 0), v = this;
8182
+ var p = slice(arguments, 0), _ = this;
8138
8183
  function b() {
8139
8184
  if (!!c)
8140
- return each$6(arguments, function(_, C) {
8141
- p[C] = _;
8142
- }), c.apply(v, p);
8185
+ return each$6(arguments, function(v, T) {
8186
+ p[T] = v;
8187
+ }), c.apply(_, p);
8143
8188
  }
8144
8189
  var m = [b].concat(p);
8145
- return l.apply(v, m);
8190
+ return l.apply(_, m);
8146
8191
  };
8147
8192
  },
8148
8193
  _serialize: function(l) {
@@ -8179,10 +8224,10 @@ function createStore(e, t, r) {
8179
8224
  var g = l.call(this);
8180
8225
  if (!isObject(g))
8181
8226
  throw new Error("Plugins must return an object of function properties");
8182
- each$6(g, function(p, v) {
8227
+ each$6(g, function(p, _) {
8183
8228
  if (!isFunction(p))
8184
- throw new Error("Bad plugin property: " + v + " from plugin " + l.name + ". Plugins should only return functions.");
8185
- u._assignPluginFnProp(p, v);
8229
+ throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
8230
+ u._assignPluginFnProp(p, _);
8186
8231
  });
8187
8232
  }
8188
8233
  },
@@ -9141,18 +9186,18 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9141
9186
  varVariableInputs: c,
9142
9187
  varPossibilities: g,
9143
9188
  varButtons: p,
9144
- varButtonConfig: v,
9189
+ varButtonConfig: _,
9145
9190
  varSubmitConfig: b,
9146
9191
  varSubmitFields: m,
9147
- varProfile: _,
9148
- varProfileConfig: C,
9192
+ varProfile: v,
9193
+ varProfileConfig: T,
9149
9194
  varGrid: y,
9150
- varGridConfig: T
9195
+ varGridConfig: C
9151
9196
  } = await GetAll({ params: { frm_id: e } });
9152
- 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(C != null ? C : null)), this.varProfileMap.set(e, {
9153
- varProfile: _ != null ? _ : null,
9154
- 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
9155
- }), this.varGridConfigMap.set(e, transformVarGridConfig(T != null ? T : null)), this.varGridMap.set(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
9200
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
9156
9201
  varGrid: transformVarGridDTO(y),
9157
9202
  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
9158
9203
  }), this.emit(e, "ready");
@@ -9303,11 +9348,11 @@ function useKgVar(e, t, r = 0) {
9303
9348
  i.leave(s);
9304
9349
  }));
9305
9350
  const l = ($) => computed(() => {
9306
- var V, A, M;
9307
- return (M = (A = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? A : $) != null ? M : "";
9308
- }), 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)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = 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(() => {
9309
9354
  var $, V;
9310
- return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9355
+ return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9311
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));
9312
9357
  return {
9313
9358
  formID: s,
@@ -9316,15 +9361,15 @@ function useKgVar(e, t, r = 0) {
9316
9361
  isRetrievingVarProfileMaster: c,
9317
9362
  isRetrievingVarGridMaster: g,
9318
9363
  isCreating: p,
9319
- isUpdating: v,
9364
+ isUpdating: _,
9320
9365
  isCopying: b,
9321
9366
  isDeleting: m,
9322
- isOtherRequesting: _,
9323
- varButtons: C,
9367
+ isOtherRequesting: v,
9368
+ varButtons: T,
9324
9369
  varProfileMasters: y,
9325
- currentVarProfileMaster: T,
9370
+ currentVarProfileMaster: C,
9326
9371
  currentVarProfileMasterID: E,
9327
- currentVarProfileDetails: I,
9372
+ currentVarProfileDetails: A,
9328
9373
  varGridConfig: k,
9329
9374
  varGridMasters: R,
9330
9375
  currentVarGridMaster: L,
@@ -9566,8 +9611,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9566
9611
  }) => {
9567
9612
  const c = o.store.getVarSubmitConfig(o.formID);
9568
9613
  return i = watch(u, (g) => {
9569
- var p, v, b, m, _, C, y, T, E, I, k, R;
9570
- 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 = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : 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);
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);
9571
9616
  }, {
9572
9617
  immediate: !0
9573
9618
  }), !1;
@@ -9613,12 +9658,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9613
9658
  function p() {
9614
9659
  c.value = !0;
9615
9660
  }
9616
- function v() {
9661
+ function _() {
9617
9662
  r("kgCancel");
9618
9663
  }
9619
9664
  function b() {
9620
- var C;
9621
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9665
+ var T;
9666
+ return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
9622
9667
  onClick: g,
9623
9668
  class: "kg-submit--btn-fullscreen"
9624
9669
  }, {
@@ -9636,60 +9681,60 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9636
9681
  hostFormID: a.formID
9637
9682
  }, null)]) : null;
9638
9683
  }
9639
- function _() {
9684
+ function v() {
9640
9685
  return createVNode(Button, {
9641
9686
  disabled: u.value || l.value,
9642
9687
  class: "kg-submit--btn-close",
9643
- onClick: v
9688
+ onClick: _
9644
9689
  }, {
9645
9690
  default: () => [createVNode(CloseOutlined$1, null, null)]
9646
9691
  });
9647
9692
  }
9648
- return () => createVNode(Fragment, null, [m(), b(), _()]);
9693
+ return () => createVNode(Fragment, null, [m(), b(), v()]);
9649
9694
  }
9650
9695
  }), 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;
9651
9696
  function _useFormModel() {
9652
9697
  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(() => {
9653
- var b, m, _, C;
9698
+ var b, m, v, T;
9654
9699
  switch (!0) {
9655
9700
  case a.value:
9656
9701
  return (b = l.value) != null ? b : [];
9657
9702
  case o.value:
9658
9703
  return (m = u.value) != null ? m : [];
9659
9704
  case s.value:
9660
- return (_ = c.value) != null ? _ : [];
9705
+ return (v = c.value) != null ? v : [];
9661
9706
  case i.value:
9662
- return (C = g.value) != null ? C : [];
9707
+ return (T = g.value) != null ? T : [];
9663
9708
  }
9664
9709
  return [];
9665
- }), v = ref({});
9710
+ }), _ = ref({});
9666
9711
  return watch(p, (b) => {
9667
- if (v.value = {}, b != null && b.length) {
9712
+ if (_.value = {}, b != null && b.length) {
9668
9713
  const m = r.selectedRow.value;
9669
- b.forEach((_) => {
9670
- var y, T, E, I, k, R, L, O;
9671
- const C = (y = _.var_nam) != null ? y : "";
9672
- switch (v.value[C] = void 0, !0) {
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) {
9673
9718
  case a.value:
9674
- v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = _.crt_dft_val) != null ? T : void 0);
9719
+ _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = v.crt_dft_val) != null ? C : void 0);
9675
9720
  break;
9676
9721
  case o.value:
9677
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (I = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[C]) != null ? I : void 0);
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);
9678
9723
  break;
9679
9724
  case s.value:
9680
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (R = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[C]) != null ? R : void 0);
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);
9681
9726
  break;
9682
9727
  case i.value:
9683
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (O = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[C]) != null ? O : void 0);
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);
9684
9729
  break;
9685
9730
  }
9686
9731
  });
9687
9732
  }
9688
- n.store.setModel(t.formID, v.value);
9733
+ n.store.setModel(t.formID, _.value);
9689
9734
  }, {
9690
9735
  immediate: !0
9691
9736
  }), {
9692
- model: v
9737
+ model: _
9693
9738
  };
9694
9739
  }
9695
9740
  function _useResizeObserver$1(e) {
@@ -9726,23 +9771,23 @@ function _useTitle() {
9726
9771
  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));
9727
9772
  return {
9728
9773
  title: computed(() => {
9729
- var g, p, v, b;
9774
+ var g, p, _, b;
9730
9775
  switch (!0) {
9731
9776
  case r.value: {
9732
- const m = (g = s.value) == null ? void 0 : g.var_nam, _ = t.t(m).value;
9733
- return m === _ ? e.t("kg.create") : _;
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;
9734
9779
  }
9735
9780
  case n.value: {
9736
- const m = (p = i.value) == null ? void 0 : p.var_nam, _ = t.t(m).value;
9737
- return m === _ ? e.t("kg.update") : _;
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;
9738
9783
  }
9739
9784
  case a.value: {
9740
- const m = (v = l.value) == null ? void 0 : v.var_nam, _ = t.t(m).value;
9741
- return m === _ ? e.t("kg.copy") : _;
9785
+ const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
9786
+ return m === v ? e.t("kg.copy") : v;
9742
9787
  }
9743
9788
  case o.value: {
9744
- const m = (b = u.value) == null ? void 0 : b.var_nam, _ = t.t(m).value;
9745
- return m === _ ? e.t("kg.delete") : _;
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;
9746
9791
  }
9747
9792
  }
9748
9793
  return "";
@@ -9765,9 +9810,9 @@ function _useLayout() {
9765
9810
  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));
9766
9811
  return {
9767
9812
  getLayout: computed(() => {
9768
- var v, b, m, _, C;
9813
+ var _, b, m, v, T;
9769
9814
  let i = "vertical";
9770
- 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 = (C = o.value) == null ? void 0 : C.del_layout;
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;
9771
9816
  switch (!0) {
9772
9817
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9773
9818
  i = "horizontal";
@@ -9790,9 +9835,9 @@ function _useDisplayType() {
9790
9835
  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));
9791
9836
  return {
9792
9837
  getDisplayType: computed(() => {
9793
- var b, m, _, C, y;
9838
+ var b, m, v, T, y;
9794
9839
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9795
- 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 = (C = o.value) == null ? void 0 : C.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
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;
9796
9841
  switch (!0) {
9797
9842
  case (t.value && (c === l || !c && u === l)):
9798
9843
  i = l;
@@ -9803,7 +9848,7 @@ function _useDisplayType() {
9803
9848
  case (n.value && (p === l || !p && u === l)):
9804
9849
  i = l;
9805
9850
  break;
9806
- case (a.value && (v === l || !v)):
9851
+ case (a.value && (_ === l || !_)):
9807
9852
  i = l;
9808
9853
  break;
9809
9854
  }
@@ -9815,10 +9860,10 @@ function _useDefaultWidth() {
9815
9860
  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));
9816
9861
  return {
9817
9862
  getDefaultWidth: computed(() => {
9818
- var v, b, m, _, C;
9863
+ var _, b, m, v, T;
9819
9864
  if (!o.value)
9820
9865
  return 0;
9821
- 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 = (C = o.value) == null ? void 0 : C.del_dft_width;
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;
9822
9867
  let p = i || DEFAULT_WIDTH;
9823
9868
  switch (!0) {
9824
9869
  case (t.value && !!l):
@@ -9856,7 +9901,7 @@ const getProps$p = () => ({
9856
9901
  }) {
9857
9902
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9858
9903
  _useFormModel();
9859
- 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 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = 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(() => {
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(() => {
9860
9905
  var B, W, Q;
9861
9906
  switch (!0) {
9862
9907
  case u.value:
@@ -9873,7 +9918,7 @@ const getProps$p = () => ({
9873
9918
  var B, W, Q, te;
9874
9919
  switch (!0) {
9875
9920
  case u.value:
9876
- return (B = I.value) != null ? B : [];
9921
+ return (B = A.value) != null ? B : [];
9877
9922
  case c.value:
9878
9923
  return (W = R.value) != null ? W : [];
9879
9924
  case g.value:
@@ -9882,20 +9927,20 @@ const getProps$p = () => ({
9882
9927
  return (te = D.value) != null ? te : [];
9883
9928
  }
9884
9929
  return [];
9885
- }), A = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), M = computed(() => A.value || y.value), w = computed(() => y.value), N = ref({
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({
9886
9931
  kgWidth: 0
9887
9932
  }), F = computed(() => {
9888
9933
  var B;
9889
- return !!(v.value || se.isFullscreen || ((B = T.value) == null ? void 0 : B.resizable_flg) === 0);
9934
+ return !!(_.value || se.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
9890
9935
  }), U = computed(() => {
9891
9936
  var B, W;
9892
- return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9937
+ return _.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9893
9938
  }), G = computed(() => {
9894
9939
  var B, W;
9895
- return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9896
- }), x = computed(() => v.value ? 398 : N.value.kgWidth), H = ref(null), Y = ref({}), X = ref(null);
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);
9897
9942
  _useResizeObserver$1(X);
9898
- const Z = _useTitle(), re = computed(() => v.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ae = computed(() => re.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), se = reactive({
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({
9899
9944
  isFullscreen: !1
9900
9945
  }), {
9901
9946
  getDisplayType: de
@@ -9909,29 +9954,29 @@ const getProps$p = () => ({
9909
9954
  var B, W, Q;
9910
9955
  switch (K.value) {
9911
9956
  case "horizontal":
9912
- switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9957
+ switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9913
9958
  case KG_WIDTH_UNIT.SPAN:
9914
9959
  return {
9915
- span: (W = T.value) == null ? void 0 : W.label_col
9960
+ span: (W = C.value) == null ? void 0 : W.label_col
9916
9961
  };
9917
9962
  default:
9918
9963
  return {
9919
9964
  style: {
9920
- width: `${(Q = T.value) == null ? void 0 : Q.label_col}px`
9965
+ width: `${(Q = C.value) == null ? void 0 : Q.label_col}px`
9921
9966
  }
9922
9967
  };
9923
9968
  }
9924
9969
  default:
9925
9970
  return;
9926
9971
  }
9927
- }), ne = computed(() => {
9972
+ }), J = computed(() => {
9928
9973
  var B, W;
9929
9974
  switch (K.value) {
9930
9975
  case "horizontal":
9931
- switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9976
+ switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9932
9977
  case KG_WIDTH_UNIT.SPAN:
9933
9978
  return {
9934
- span: 24 - ((W = T.value) == null ? void 0 : W.label_col)
9979
+ span: 24 - ((W = C.value) == null ? void 0 : W.label_col)
9935
9980
  };
9936
9981
  default:
9937
9982
  return;
@@ -9940,8 +9985,8 @@ const getProps$p = () => ({
9940
9985
  return;
9941
9986
  }
9942
9987
  });
9943
- watch(ae, (B, W) => {
9944
- B === !0 && J(), W === !0 && B === !1 && pe();
9988
+ watch(ne, (B, W) => {
9989
+ B === !0 && ae(), W === !0 && B === !1 && pe();
9945
9990
  }, {
9946
9991
  immediate: !0
9947
9992
  }), watch(z, (B) => {
@@ -9949,7 +9994,7 @@ const getProps$p = () => ({
9949
9994
  }, {
9950
9995
  immediate: !0
9951
9996
  });
9952
- function J() {
9997
+ function ae() {
9953
9998
  var W;
9954
9999
  const B = watch(s.model, (Q) => {
9955
10000
  Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
@@ -9963,7 +10008,7 @@ const getProps$p = () => ({
9963
10008
  }, {
9964
10009
  immediate: !0
9965
10010
  });
9966
- ((W = T.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (se.isFullscreen = !0);
10011
+ ((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !_.value && (se.isFullscreen = !0);
9967
10012
  }
9968
10013
  function pe() {
9969
10014
  N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
@@ -10099,20 +10144,20 @@ const getProps$p = () => ({
10099
10144
  }
10100
10145
  async function Te() {
10101
10146
  var W, Q, te, oe, ie, le, ue, ce, ee, fe;
10102
- const B = (W = _.value) == null ? void 0 : W.cmd;
10147
+ const B = (W = v.value) == null ? void 0 : W.cmd;
10103
10148
  if (!B) {
10104
10149
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10105
- VarButton: _.value
10150
+ VarButton: v.value
10106
10151
  });
10107
10152
  return;
10108
10153
  }
10109
10154
  try {
10110
10155
  a.store.setIsCopyingRequesting(a.formID, !0);
10111
- const ge = KgVarUtil.parseCommandParameter((te = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10156
+ const ge = KgVarUtil.parseCommandParameter((te = (Q = v.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10112
10157
  ...(oe = o.selectedRow.value) != null ? oe : {},
10113
10158
  ...toRaw(s.model.value)
10114
10159
  };
10115
- if (((ie = T.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10160
+ if (((ie = C.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10116
10161
  isCreating: u.value,
10117
10162
  isUpdating: c.value,
10118
10163
  isCopying: g.value,
@@ -10123,11 +10168,11 @@ const getProps$p = () => ({
10123
10168
  }))
10124
10169
  return;
10125
10170
  await httpClient().request({
10126
- method: (ue = (le = _.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10171
+ method: (ue = (le = v.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10127
10172
  url: B,
10128
10173
  params: ge,
10129
10174
  data: me
10130
- }), ((ce = _.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);
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);
10131
10176
  } catch (ge) {
10132
10177
  console.error(ge);
10133
10178
  } finally {
@@ -10136,10 +10181,10 @@ const getProps$p = () => ({
10136
10181
  }
10137
10182
  async function Ee() {
10138
10183
  var W, Q, te, oe, ie, le, ue, ce;
10139
- const B = (W = C.value) == null ? void 0 : W.cmd;
10184
+ const B = (W = T.value) == null ? void 0 : W.cmd;
10140
10185
  if (!B) {
10141
10186
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10142
- VarButton: C.value
10187
+ VarButton: T.value
10143
10188
  });
10144
10189
  return;
10145
10190
  }
@@ -10148,7 +10193,7 @@ const getProps$p = () => ({
10148
10193
  const ee = {
10149
10194
  ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
10150
10195
  var me, ve, ye;
10151
- return (ye = ge[(ve = (me = C.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10196
+ return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10152
10197
  })) != null ? te : []
10153
10198
  };
10154
10199
  if (await s.store.emit(a.formID, "beforeRequest", {
@@ -10162,12 +10207,12 @@ const getProps$p = () => ({
10162
10207
  }))
10163
10208
  return;
10164
10209
  await httpClient().request({
10165
- method: (ie = (oe = C.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10210
+ method: (ie = (oe = T.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10166
10211
  url: B,
10167
10212
  params: ee
10168
10213
  }, {
10169
10214
  joinParamsToUrl: !0
10170
- }), ((le = C.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);
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);
10171
10216
  } catch (ee) {
10172
10217
  console.error(ee);
10173
10218
  } finally {
@@ -10223,7 +10268,7 @@ const getProps$p = () => ({
10223
10268
  model: s.model.value,
10224
10269
  layout: K.value,
10225
10270
  labelCol: q.value,
10226
- wrapperCol: ne.value
10271
+ wrapperCol: J.value
10227
10272
  }, {
10228
10273
  default: () => [createVNode("div", {
10229
10274
  ref: X
@@ -10235,7 +10280,7 @@ const getProps$p = () => ({
10235
10280
  gutter: 12
10236
10281
  }, _isSlot$7(W = V.value.map(be)) ? W : {
10237
10282
  default: () => [W]
10238
- }), v.value && createVNode("div", {
10283
+ }), _.value && createVNode("div", {
10239
10284
  style: "text-align: center; padding: 6px 0 12px;"
10240
10285
  }, [n.t("kg.confirmDelete")])])]
10241
10286
  })]
@@ -10246,15 +10291,15 @@ const getProps$p = () => ({
10246
10291
  let B, W;
10247
10292
  return createVNode("div", null, [createVNode(Button, {
10248
10293
  type: "primary",
10249
- ghost: !M.value,
10250
- disabled: M.value,
10294
+ ghost: !I.value,
10295
+ disabled: I.value,
10251
10296
  onClick: he
10252
10297
  }, _isSlot$7(B = n.t("kg.cancel")) ? B : {
10253
10298
  default: () => [B]
10254
10299
  }), createVNode(Button, {
10255
10300
  type: "primary",
10256
- disabled: w.value,
10257
- loading: A.value,
10301
+ disabled: M.value,
10302
+ loading: w.value,
10258
10303
  danger: !!p.value,
10259
10304
  onClick: _e
10260
10305
  }, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
@@ -10270,15 +10315,15 @@ const getProps$p = () => ({
10270
10315
  return createVNode(KgSubmitHeader, {
10271
10316
  isFullscreen: se.isFullscreen,
10272
10317
  "onUpdate:isFullscreen": (B) => se.isFullscreen = B,
10273
- kgShowFullscreenButton: !v.value,
10274
- kgShowConfigButton: !v.value && e.kgShowConfigButton,
10318
+ kgShowFullscreenButton: !_.value,
10319
+ kgShowConfigButton: !_.value && e.kgShowConfigButton,
10275
10320
  onKgCancel: he
10276
10321
  }, null);
10277
10322
  }
10278
10323
  return onUnmounted(() => {
10279
10324
  s.store.dispose(a.formID);
10280
10325
  }), () => createVNode(Drawer, {
10281
- visible: ae.value,
10326
+ visible: ne.value,
10282
10327
  placement: "right",
10283
10328
  closable: !1,
10284
10329
  maskClosable: !1,
@@ -10306,36 +10351,36 @@ const getProps$p = () => ({
10306
10351
  }) {
10307
10352
  provide(DI_KG_SLOTS, e.kgSlots);
10308
10353
  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(() => {
10309
- var _, C, y, T;
10354
+ var v, T, y, C;
10310
10355
  switch (!0) {
10311
10356
  case n.value:
10312
- return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
10357
+ return ((v = i.value) == null ? void 0 : v.crt_flg) !== 0;
10313
10358
  case a.value:
10314
- return ((C = i.value) == null ? void 0 : C.upt_flg) !== 0;
10359
+ return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
10315
10360
  case o.value:
10316
10361
  return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
10317
10362
  case s.value:
10318
- return ((T = i.value) == null ? void 0 : T.del_flg) !== 0;
10363
+ return ((C = i.value) == null ? void 0 : C.del_flg) !== 0;
10319
10364
  }
10320
10365
  return !1;
10321
10366
  }), g = computed(() => {
10322
- var _;
10323
- return ((_ = u.value) == null ? void 0 : _.available_flg) !== 0;
10367
+ var v;
10368
+ return ((v = u.value) == null ? void 0 : v.available_flg) !== 0;
10324
10369
  }), p = computed(() => {
10325
- var _;
10326
- return ((_ = l.value) == null ? void 0 : _.available_flg) !== 0;
10327
- }), v = computed(() => !!r.isOtherRequesting.value), b = computed(() => {
10328
- let _ = "kg-var";
10329
- return e.KgBackgroundGray && (_ += " kg-var--bg-gray"), _;
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;
10330
10375
  });
10331
10376
  function m() {
10332
10377
  return createVNode(Spin, {
10333
- spinning: v.value
10378
+ spinning: _.value
10334
10379
  }, {
10335
10380
  default: () => {
10336
- var _, C;
10337
- return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (_ = t.beforeButton) == null ? void 0 : _.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
10338
- kgClass: (C = e.kgSubmitClass) != null ? C : ""
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 : ""
10339
10384
  }, null)])];
10340
10385
  }
10341
10386
  });
@@ -10375,16 +10420,16 @@ const getProps$p = () => ({
10375
10420
  emit: r
10376
10421
  }) {
10377
10422
  const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
10378
- var p, v;
10423
+ var p, _;
10379
10424
  let g = "kg-table-td";
10380
- 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;
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;
10381
10426
  }), i = computed(() => {
10382
10427
  let g = e.kgValue;
10383
10428
  return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10384
10429
  `)), g;
10385
10430
  });
10386
10431
  function l(g) {
10387
- var p, v, b;
10432
+ var p, _, b;
10388
10433
  if (g.detail === 1)
10389
10434
  switch ((p = o.value) == null ? void 0 : p.display_type) {
10390
10435
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -10393,7 +10438,7 @@ const getProps$p = () => ({
10393
10438
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10394
10439
  {
10395
10440
  g.stopPropagation(), g.preventDefault();
10396
- const m = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10441
+ const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10397
10442
  (b = n.router.value) == null || b.push({
10398
10443
  path: m.path,
10399
10444
  query: e.kgRow
@@ -10403,16 +10448,16 @@ const getProps$p = () => ({
10403
10448
  }
10404
10449
  }
10405
10450
  function u() {
10406
- var g, p, v, b, m, _, C, y;
10451
+ var g, p, _, b, m, v, T, y;
10407
10452
  switch ((g = o.value) == null ? void 0 : g.display_type) {
10408
10453
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10409
- const T = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10454
+ const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10410
10455
  return createVNode(KgYesOrNo, {
10411
- kgValue: e.kgValue === ((v = T.yValue) != null ? v : 1)
10456
+ kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
10412
10457
  }, null);
10413
10458
  }
10414
10459
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
10415
- const T = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(T) && T.find((I) => I.value === e.kgValue);
10460
+ const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(C) && C.find((A) => A.value === e.kgValue);
10416
10461
  return E ? createVNode(Tag, {
10417
10462
  color: (m = E.color) != null ? m : "default"
10418
10463
  }, {
@@ -10420,11 +10465,11 @@ const getProps$p = () => ({
10420
10465
  }) : c();
10421
10466
  }
10422
10467
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10423
- const T = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10468
+ const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10424
10469
  return createVNode(KgProgressA, {
10425
- kgTextWidth: T.textWidth,
10426
- kgLeft: (C = e.kgRow) == null ? void 0 : C[T.leftColumn],
10427
- kgRight: (y = e.kgRow) == null ? void 0 : y[T.rightColumn]
10470
+ kgTextWidth: C.textWidth,
10471
+ kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
10472
+ kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
10428
10473
  }, null);
10429
10474
  }
10430
10475
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -10535,8 +10580,8 @@ const getProps$l = () => ({
10535
10580
  }) => {
10536
10581
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10537
10582
  return s = watch(l, (c) => {
10538
- var g, p, v, b, m, _, C, y, T, E, I;
10539
- 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 = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
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);
10540
10585
  }, {
10541
10586
  immediate: !0
10542
10587
  }), !1;
@@ -10725,8 +10770,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10725
10770
  return o.onOpen(async ({
10726
10771
  model: s
10727
10772
  }) => {
10728
- var i, l, u, c, g, p, v, b, m, _;
10729
- 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;
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;
10730
10775
  }), o.onBeforeOk(async ({
10731
10776
  model: s
10732
10777
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10757,7 +10802,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10757
10802
  function p(y) {
10758
10803
  a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
10759
10804
  }
10760
- async function v() {
10805
+ async function _() {
10761
10806
  var y;
10762
10807
  if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10763
10808
  KgUtil.confirm({
@@ -10792,24 +10837,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10792
10837
  class: "columns"
10793
10838
  }, [createVNode(Input, {
10794
10839
  value: i.value,
10795
- "onUpdate:value": (T) => i.value = T,
10840
+ "onUpdate:value": (C) => i.value = C,
10796
10841
  allowClear: !0
10797
10842
  }, null), createVNode("ul", {
10798
10843
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10799
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
10844
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10800
10845
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10801
10846
  onClick: (E) => {
10802
- E.preventDefault(), E.stopPropagation(), p(T);
10847
+ E.preventDefault(), E.stopPropagation(), p(C);
10803
10848
  },
10804
10849
  style: {
10805
- display: s(T, i.value) ? "flex" : "none"
10850
+ display: s(C, i.value) ? "flex" : "none"
10806
10851
  },
10807
- "kg-var-nam": T.var_nam
10852
+ "kg-var-nam": C.var_nam
10808
10853
  }, [createVNode(Checkbox, {
10809
- checked: T.vis_flg === 1,
10854
+ checked: C.vis_flg === 1,
10810
10855
  disabled: !0
10811
10856
  }, {
10812
- default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
10857
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10813
10858
  }), createVNode(HolderOutlined$1, {
10814
10859
  onClick: (E) => {
10815
10860
  E.preventDefault(), E.stopPropagation();
@@ -10819,7 +10864,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10819
10864
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10820
10865
  });
10821
10866
  }
10822
- function _() {
10867
+ function v() {
10823
10868
  return createVNode(Menu.SubMenu, {
10824
10869
  key: "2",
10825
10870
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10827,33 +10872,33 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10827
10872
  }, {
10828
10873
  default: () => {
10829
10874
  var E;
10830
- let y, T;
10831
- return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
10875
+ let y, C;
10876
+ return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((A) => {
10832
10877
  var k;
10833
10878
  return createVNode(Menu.Item, {
10834
- key: I.id,
10835
- class: I.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
10836
- "kg-var-nam": I.grd_var_nam,
10837
- onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
10879
+ key: A.id,
10880
+ class: A.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
10881
+ "kg-var-nam": A.grd_var_nam,
10882
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, A.id)
10838
10883
  }, {
10839
- default: () => [a.t(I.grd_var_nam).value]
10884
+ default: () => [a.t(A.grd_var_nam).value]
10840
10885
  });
10841
10886
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10842
10887
  key: "save-grid-view",
10843
- onClick: v
10888
+ onClick: _
10844
10889
  }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10845
10890
  default: () => [y]
10846
10891
  }), createVNode(Menu.Item, {
10847
10892
  key: "save-grid-view-as",
10848
10893
  onClick: b
10849
- }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
10850
- default: () => [T]
10894
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10895
+ default: () => [C]
10851
10896
  })]);
10852
10897
  },
10853
10898
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10854
10899
  });
10855
10900
  }
10856
- function C() {
10901
+ function T() {
10857
10902
  let y;
10858
10903
  return createVNode(Menu.Item, {
10859
10904
  key: "config-var-grid-master",
@@ -10876,7 +10921,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10876
10921
  "onUpdate:openKeys": (y) => l.value = y,
10877
10922
  selectable: !1
10878
10923
  }, {
10879
- default: () => [m(), _(), C()]
10924
+ default: () => [m(), v(), T()]
10880
10925
  })
10881
10926
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10882
10927
  visible: c.visible,
@@ -11037,7 +11082,7 @@ function _useColumns() {
11037
11082
  index: p
11038
11083
  }) => p + 1
11039
11084
  }, ...(g = i == null ? void 0 : i.map((p) => {
11040
- function v() {
11085
+ function _() {
11041
11086
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11042
11087
  }
11043
11088
  function b() {
@@ -11046,28 +11091,28 @@ function _useColumns() {
11046
11091
  function m() {
11047
11092
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
11048
11093
  }
11049
- function _() {
11094
+ function v() {
11050
11095
  if (p.fix_left_flg === 1)
11051
11096
  return "left";
11052
11097
  if (p.fix_right_flg === 1)
11053
11098
  return "right";
11054
11099
  }
11055
- function C() {
11100
+ function T() {
11056
11101
  return p.ord_flg === 1;
11057
11102
  }
11058
11103
  function y() {
11059
11104
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
11060
11105
  }
11061
- const T = v();
11106
+ const C = _();
11062
11107
  return {
11063
11108
  dataIndex: p.var_nam,
11064
11109
  title: b(),
11065
- width: T,
11066
- resizable: typeof T == "number",
11110
+ width: C,
11111
+ resizable: typeof C == "number",
11067
11112
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11068
11113
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11069
- fixed: _(),
11070
- sorter: C(),
11114
+ fixed: v(),
11115
+ sorter: T(),
11071
11116
  align: y(),
11072
11117
  defaultSortOrder: m(),
11073
11118
  customHeaderCell: () => ({
@@ -11135,37 +11180,37 @@ const KgTable$1 = "", KgTable = defineComponent({
11135
11180
  if (K[0] === s.formID) {
11136
11181
  const z = K[1], q = K[2];
11137
11182
  switch (!0) {
11138
- case (q && !A.value.includes(z[I.value])):
11139
- G([...A.value, z[I.value]]);
11183
+ case (q && !I.value.includes(z[A.value])):
11184
+ G([...I.value, z[A.value]]);
11140
11185
  break;
11141
- case (!q && A.value.includes(z[I.value])):
11142
- G(without$1(A.value, z[I.value]));
11186
+ case (!q && I.value.includes(z[A.value])):
11187
+ G(without$1(I.value, z[A.value]));
11143
11188
  break;
11144
11189
  }
11145
11190
  }
11146
11191
  break;
11147
11192
  }
11148
11193
  });
11149
- const c = ref(!1), g = ref([]), {
11150
- columns: p,
11151
- scrollX: v
11194
+ const c = ref([]), {
11195
+ columns: g,
11196
+ scrollX: p
11152
11197
  } = _useColumns(), {
11153
- isLoading: b
11154
- } = _useLoading(), m = ref(null);
11155
- _useResizeObserver(m);
11156
- const _ = computed(() => s.store.getVarButtonSearch(s.formID)), C = computed(() => {
11198
+ isLoading: _
11199
+ } = _useLoading(), b = ref(null);
11200
+ _useResizeObserver(b);
11201
+ const m = computed(() => s.store.getVarButtonSearch(s.formID)), v = computed(() => {
11157
11202
  var P;
11158
11203
  return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11159
- }), y = computed(() => {
11204
+ }), T = computed(() => {
11160
11205
  var P;
11161
11206
  return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11162
- }), T = computed(() => {
11207
+ }), y = computed(() => u.store.getIsRetrieved(s.formID)), C = computed(() => {
11163
11208
  var P;
11164
11209
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11165
11210
  }), E = computed(() => {
11166
11211
  var P;
11167
11212
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
11168
- }), I = computed(() => {
11213
+ }), A = computed(() => {
11169
11214
  var P, K;
11170
11215
  return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
11171
11216
  }), k = computed(() => {
@@ -11175,68 +11220,69 @@ const KgTable$1 = "", KgTable = defineComponent({
11175
11220
  var P;
11176
11221
  return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
11177
11222
  }), L = computed(() => {
11178
- var P, K;
11179
- return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
11223
+ var P;
11224
+ return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
11180
11225
  }), O = computed(() => {
11181
- var K, z, q, ne, J, pe, he;
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;
11182
11230
  let P = {
11183
11231
  pageNo: M.pageIndex,
11184
11232
  pageSize: M.pageSize,
11185
- ...w,
11233
+ ...N,
11186
11234
  ...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
11187
11235
  };
11188
- return _.value && (P = {
11236
+ return m.value && (P = {
11189
11237
  ...P,
11190
- ...KgVarUtil.parseCommandParameter((ne = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11191
- }), (J = s.varGridConfig.value) != null && J.cmd_prm && (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 = {
11192
11240
  ...P,
11193
11241
  ...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
11194
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;
11195
- }), D = computed(() => {
11243
+ }), $ = computed(() => {
11196
11244
  var P;
11197
11245
  if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
11198
11246
  return {
11199
11247
  fixed: "left",
11200
11248
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11201
- hideSelectAll: !C.value,
11202
- selectedRowKeys: A,
11249
+ hideSelectAll: !v.value,
11250
+ selectedRowKeys: I,
11203
11251
  preserveSelectedRowKeys: !1,
11204
11252
  onSelect: (K) => x(K),
11205
- onChange: (K) => C.value && G(K)
11253
+ onChange: (K) => v.value && G(K)
11206
11254
  };
11207
- }), $ = computed(() => {
11255
+ }), V = computed(() => {
11208
11256
  let P = "kg-table";
11209
- return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
11210
- }), V = ref([]), A = ref([]), M = reactive({
11257
+ return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11258
+ }), w = ref([]), I = ref([]), M = reactive({
11211
11259
  pageIndex: 1,
11212
11260
  pageSize: 10,
11213
11261
  total: 0
11214
- }), w = reactive({
11262
+ }), N = reactive({
11215
11263
  column: void 0,
11216
11264
  order: void 0
11217
- }), N = watch(R, (P) => {
11218
- P && (setTimeout(() => N()), M.pageSize = P), c.value = !0;
11219
11265
  });
11220
11266
  watch(k, (P) => {
11221
11267
  P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
11222
- }), watch([L, y, i.isReady], ([P, K, z]) => {
11223
- P && K && z && !u.store.getIsRetrieved(s.formID) && U(!0);
11268
+ }), watch([O, T, i.isReady], ([P, K, z]) => {
11269
+ P && K && z && !y.value && U(!0);
11224
11270
  }, {
11225
11271
  immediate: !0
11226
11272
  }), onUnmounted(() => {
11227
11273
  u.store.dispose(s.formID);
11228
11274
  });
11229
11275
  function F(P, K) {
11230
- if (!!D.value) {
11276
+ if (!!$.value) {
11231
11277
  if (!K) {
11232
- A.value = [], u.store.setSelectedRows(s.formID, []);
11278
+ I.value = [], u.store.setSelectedRows(s.formID, []);
11233
11279
  return;
11234
11280
  }
11235
11281
  switch (P == null ? void 0 : P.detail) {
11236
11282
  case 1:
11237
- A.value = [K[I.value]], u.store.setSelectedRows(s.formID, A.value.map((z) => {
11283
+ I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
11238
11284
  var q;
11239
- return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === z);
11285
+ return (q = w.value) == null ? void 0 : q.find((J) => J[A.value] === z);
11240
11286
  }).filter((z) => !!z));
11241
11287
  break;
11242
11288
  case 2:
@@ -11246,16 +11292,25 @@ const KgTable$1 = "", KgTable = defineComponent({
11246
11292
  }
11247
11293
  }
11248
11294
  function U(P = !1) {
11249
- const K = watch(c, (q) => {
11250
- q && (setTimeout(() => K()), z());
11251
- }, {
11252
- immediate: !0
11253
- });
11254
- async function z() {
11255
- var q, ne;
11256
- if (!L.value) {
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) {
11257
11312
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11258
- VarButton: _.value
11313
+ VarButton: m.value
11259
11314
  });
11260
11315
  return;
11261
11316
  }
@@ -11263,26 +11318,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11263
11318
  try {
11264
11319
  const J = await httpClient().request({
11265
11320
  method: "GET",
11266
- url: L.value,
11267
- params: KgUtil.parseParams(O.value, s.formID, n)
11321
+ url: O.value,
11322
+ params: KgUtil.parseParams(D.value, L.value, n)
11268
11323
  }, {
11269
11324
  successMessageMode: "none"
11270
11325
  });
11271
11326
  switch (!0) {
11272
11327
  case !J:
11273
- V.value = [], M.total = 0;
11328
+ w.value = [], M.total = 0;
11274
11329
  break;
11275
11330
  case isArrayLike(J):
11276
- V.value = J, M.total = J.length;
11331
+ w.value = J, M.total = J.length;
11277
11332
  break;
11278
11333
  case ("total" in J && "records" in J):
11279
- V.value = (q = J.records) != null ? q : [], M.total = (ne = J.total) != null ? ne : 0;
11334
+ w.value = (z = J.records) != null ? z : [], M.total = (q = J.total) != null ? q : 0;
11280
11335
  break;
11281
11336
  }
11282
11337
  u.store.emit(s.formID, "retrieve", {
11283
11338
  page: J,
11284
- datas: V
11285
- }), F(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11339
+ datas: w
11340
+ }), F(), c.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11286
11341
  } catch (J) {
11287
11342
  throw J;
11288
11343
  } finally {
@@ -11291,56 +11346,56 @@ const KgTable$1 = "", KgTable = defineComponent({
11291
11346
  }
11292
11347
  }
11293
11348
  function G(P) {
11294
- A.value = P, u.store.setSelectedRows(s.formID, A.value.map((K) => {
11349
+ I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
11295
11350
  var z;
11296
- return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11351
+ return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
11297
11352
  }).filter((K) => !!K));
11298
11353
  }
11299
11354
  function x(P) {
11300
11355
  var K, z;
11301
- switch (C.value) {
11356
+ switch (v.value) {
11302
11357
  case !0:
11303
11358
  {
11304
- const q = P[I.value];
11305
- A.value.includes(q) ? A.value = without$1(A.value, q) : A.value = [...(K = A.value) != null ? K : [], q];
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];
11306
11361
  }
11307
11362
  break;
11308
11363
  case !1:
11309
11364
  {
11310
- const q = P[I.value];
11311
- (z = A.value) != null && z.includes(q) ? A.value = [] : A.value = [q];
11365
+ const q = P[A.value];
11366
+ (z = I.value) != null && z.includes(q) ? I.value = [] : I.value = [q];
11312
11367
  }
11313
11368
  break;
11314
11369
  }
11315
- u.store.setSelectedRows(s.formID, A.value.map((q) => {
11316
- var ne;
11317
- return (ne = V.value) == null ? void 0 : ne.find((J) => J[I.value] === q);
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);
11318
11373
  }).filter((q) => !!q));
11319
11374
  }
11320
11375
  function H(P, K) {
11321
11376
  K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
11322
11377
  }
11323
11378
  async function Y(P, K, z, q) {
11324
- var ne;
11379
+ var J;
11325
11380
  switch (q.action) {
11326
11381
  case "sort":
11327
11382
  {
11328
11383
  await nextTick();
11329
- let J = z;
11330
- J.order ? (w.column = (ne = J.field) != null ? ne : void 0, w.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), U(!0);
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);
11331
11386
  }
11332
11387
  break;
11333
11388
  }
11334
11389
  }
11335
11390
  function X(P, K) {
11336
11391
  var q;
11337
- const z = K[I.value];
11392
+ const z = K[A.value];
11338
11393
  switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
11339
11394
  case 0:
11340
- P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
11395
+ P ? c.value = uniq([...c.value, z]) : c.value = without$1(c.value, z);
11341
11396
  break;
11342
11397
  default:
11343
- P ? g.value = [z] : g.value = [];
11398
+ P ? c.value = [z] : c.value = [];
11344
11399
  break;
11345
11400
  }
11346
11401
  }
@@ -11348,12 +11403,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11348
11403
  K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
11349
11404
  }
11350
11405
  function re(P) {
11351
- A.value = [P[I.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
11406
+ I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
11352
11407
  var z;
11353
- return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11408
+ return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
11354
11409
  }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11355
11410
  }
11356
- function ae({
11411
+ function ne({
11357
11412
  title: P,
11358
11413
  column: K
11359
11414
  }) {
@@ -11369,20 +11424,20 @@ const KgTable$1 = "", KgTable = defineComponent({
11369
11424
  index: K,
11370
11425
  record: z,
11371
11426
  value: q,
11372
- text: ne
11427
+ text: J
11373
11428
  }) {
11374
- let J = "";
11375
- P.customRender ? J = P.customRender({
11429
+ let ae = "";
11430
+ P.customRender ? ae = P.customRender({
11376
11431
  index: K,
11377
11432
  record: z,
11378
11433
  column: P,
11379
- text: ne,
11434
+ text: J,
11380
11435
  value: q,
11381
11436
  renderIndex: K
11382
- }) : J = q;
11437
+ }) : ae = q;
11383
11438
  const pe = createVNode(KgTableCell, {
11384
11439
  kgRow: z,
11385
- kgValue: J,
11440
+ kgValue: ae,
11386
11441
  kgVarName: P.dataIndex,
11387
11442
  onKgUpdateLinkClick: () => re(z)
11388
11443
  }, null);
@@ -11395,30 +11450,30 @@ const KgTable$1 = "", KgTable = defineComponent({
11395
11450
  }) : pe;
11396
11451
  }
11397
11452
  function de() {
11398
- return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11453
+ return !T.value && !y.value ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11399
11454
  }
11400
11455
  return () => {
11401
11456
  var P;
11402
11457
  return createVNode("div", {
11403
- class: $.value,
11458
+ class: V.value,
11404
11459
  "kg-frm-id": s.formID,
11405
- ref: m
11460
+ ref: b
11406
11461
  }, [createVNode(Table, {
11407
11462
  class: "kg-flex-table",
11408
11463
  size: "small",
11409
11464
  scroll: {
11410
- x: v.value,
11465
+ x: p.value,
11411
11466
  y: "auto"
11412
11467
  },
11413
11468
  pagination: !1,
11414
11469
  showSorterTooltip: !1,
11415
- columns: p.value,
11416
- dataSource: V.value,
11417
- loading: b.value,
11418
- rowKey: I.value,
11419
- rowSelection: D.value,
11470
+ columns: g.value,
11471
+ dataSource: w.value,
11472
+ loading: _.value,
11473
+ rowKey: A.value,
11474
+ rowSelection: $.value,
11420
11475
  expandColumnWidth: 28,
11421
- expandedRowKeys: g.value,
11476
+ expandedRowKeys: c.value,
11422
11477
  customRow: (K) => ({
11423
11478
  onClick: (z) => F(z, K)
11424
11479
  }),
@@ -11426,20 +11481,20 @@ const KgTable$1 = "", KgTable = defineComponent({
11426
11481
  onChange: Y,
11427
11482
  onExpand: X
11428
11483
  }, {
11429
- headerCell: ae,
11484
+ headerCell: ne,
11430
11485
  bodyCell: se,
11431
11486
  emptyText: de,
11432
11487
  expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11433
- }), (T.value || E.value) && createVNode("div", {
11488
+ }), (C.value || E.value) && createVNode("div", {
11434
11489
  class: "kg-table-bottom"
11435
11490
  }, [createVNode("div", {
11436
11491
  class: "left"
11437
- }, [T.value && createVNode(KgTableInfo, {
11438
- kgShowClearCheck: A.value.length > 0,
11492
+ }, [C.value && createVNode(KgTableInfo, {
11493
+ kgShowClearCheck: I.value.length > 0,
11439
11494
  kgShowClearTable: M.total > 0,
11440
- kgShowLocate: A.value.length === 1,
11441
- kgTotal: A.value.length,
11442
- kgDisabled: b.value
11495
+ kgShowLocate: I.value.length === 1,
11496
+ kgTotal: I.value.length,
11497
+ kgDisabled: _.value
11443
11498
  }, null)]), createVNode("div", {
11444
11499
  class: "right"
11445
11500
  }, [E.value && createVNode(Pagination, {
@@ -11451,7 +11506,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11451
11506
  showSizeChanger: !0,
11452
11507
  showQuickJumper: !1,
11453
11508
  hideOnSinglePage: !1,
11454
- disabled: b.value || M.total === 0,
11509
+ disabled: _.value || M.total === 0,
11455
11510
  locale: {
11456
11511
  page: ""
11457
11512
  },
@@ -11567,26 +11622,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11567
11622
  props: getProps$f(),
11568
11623
  setup(e) {
11569
11624
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11570
- var p, v;
11571
- return a.value ? (v = (p = a.value) == null ? void 0 : p.cmd) != null ? v : "" : null;
11625
+ var p, _;
11626
+ return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
11572
11627
  }), s = computed(() => {
11573
- var p, v;
11574
- return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
11628
+ var p, _;
11629
+ return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
11575
11630
  }), i = computed(() => {
11576
- var v, b, m, _, C, y;
11631
+ var _, b, m, v, T, y;
11577
11632
  let p = {
11578
- ...(v = n.model.value) != null ? v : {}
11633
+ ...(_ = n.model.value) != null ? _ : {}
11579
11634
  };
11580
11635
  return a.value && (p = {
11581
11636
  ...p,
11582
11637
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
11583
- }), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
11638
+ }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
11584
11639
  ...p,
11585
- ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
11640
+ ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11586
11641
  }), ((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;
11587
11642
  }), l = ref(!1);
11588
11643
  async function u() {
11589
- var p, v, b;
11644
+ var p, _, b;
11590
11645
  if (!(e.onKgClick && await e.onKgClick())) {
11591
11646
  if (!o.value) {
11592
11647
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11605,7 +11660,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11605
11660
  joinParamsToUrl: !0,
11606
11661
  isTransformResponse: !1
11607
11662
  });
11608
- 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}`);
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}`);
11609
11664
  } catch (m) {
11610
11665
  throw m;
11611
11666
  } finally {
@@ -11641,24 +11696,24 @@ const KgTable$1 = "", KgTable = defineComponent({
11641
11696
  attrs: r
11642
11697
  }) {
11643
11698
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
11644
- var v, b;
11645
- return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
11699
+ var _, b;
11700
+ return s.value ? (b = (_ = s.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
11646
11701
  }), l = computed(() => {
11647
- var v, b;
11648
- return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
11702
+ var _, b;
11703
+ return (b = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
11649
11704
  });
11650
11705
  computed(() => {
11651
- var b, m, _;
11652
- let v = {
11706
+ var b, m, v;
11707
+ let _ = {
11653
11708
  ...(b = o.model.value) != null ? b : {}
11654
11709
  };
11655
- return s.value && (v = {
11656
- ...v,
11657
- ...KgVarUtil.parseCommandParameter((_ = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? _ : "")
11658
- }), v;
11710
+ return s.value && (_ = {
11711
+ ..._,
11712
+ ...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
11713
+ }), _;
11659
11714
  });
11660
11715
  const u = ref(!1);
11661
- async function c(v) {
11716
+ async function c(_) {
11662
11717
  var b, m;
11663
11718
  if (!i.value)
11664
11719
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11666,19 +11721,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11666
11721
  }), !1;
11667
11722
  u.value = !0;
11668
11723
  try {
11669
- const _ = new FormData();
11670
- _.append("file", v), await httpClient().axiosInstance.request({
11724
+ const v = new FormData();
11725
+ v.append("file", _), await httpClient().axiosInstance.request({
11671
11726
  method: l.value,
11672
11727
  baseURL: window._CONFIG.domianURL,
11673
11728
  url: i.value,
11674
- data: _,
11729
+ data: v,
11675
11730
  headers: {
11676
11731
  "Content-Type": "multipart/form-data;charset=UTF-8",
11677
11732
  ignoreCancelToken: !0
11678
11733
  }
11679
11734
  }), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
11680
- } catch (_) {
11681
- throw _;
11735
+ } catch (v) {
11736
+ throw v;
11682
11737
  } finally {
11683
11738
  u.value = !1;
11684
11739
  }
@@ -11776,7 +11831,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11776
11831
  setup(e) {
11777
11832
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11778
11833
  async function o() {
11779
- var g, p, v;
11834
+ var g, p, _;
11780
11835
  if (e.onKgClick && await e.onKgClick())
11781
11836
  return;
11782
11837
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11788,16 +11843,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11788
11843
  }
11789
11844
  let u = null;
11790
11845
  const c = async () => {
11791
- var m, _, C, y, T, E, I;
11846
+ var m, v, T, y, C, E, A;
11792
11847
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11793
11848
  const b = a.selectedRows.value;
11794
11849
  try {
11795
11850
  await httpClient().request({
11796
- method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
11851
+ method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11797
11852
  url: l,
11798
- params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
11853
+ params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11799
11854
  data: b != null ? b : []
11800
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11855
+ }), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((A = (E = n.search).value) == null || A.call(E, !0));
11801
11856
  } catch (k) {
11802
11857
  console.error(k);
11803
11858
  } finally {
@@ -11805,7 +11860,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11805
11860
  }
11806
11861
  };
11807
11862
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11808
- const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
11863
+ const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11809
11864
  typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11810
11865
  onOk: () => c(),
11811
11866
  ...b
@@ -12025,8 +12080,8 @@ const KgButtonItem = defineComponent({
12025
12080
  props: getProps$f(),
12026
12081
  setup(e) {
12027
12082
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12028
- var u, c, g, p, v, b, m, _;
12029
- 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));
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));
12030
12085
  }), s = computed(() => {
12031
12086
  let u = "kg-button-item";
12032
12087
  switch (e.kgColor) {
@@ -12036,7 +12091,7 @@ const KgButtonItem = defineComponent({
12036
12091
  }
12037
12092
  return u;
12038
12093
  }), i = computed(() => {
12039
- var c, g, p, v;
12094
+ var c, g, p, _;
12040
12095
  return {
12041
12096
  ...e,
12042
12097
  class: s.value,
@@ -12044,7 +12099,7 @@ const KgButtonItem = defineComponent({
12044
12099
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
12045
12100
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
12046
12101
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
12047
- "kg-cmd": (v = a.value) == null ? void 0 : v.cmd
12102
+ "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
12048
12103
  };
12049
12104
  });
12050
12105
  function l() {
@@ -12092,15 +12147,15 @@ const getProps$e = () => ({
12092
12147
  props: getProps$e(),
12093
12148
  setup(e) {
12094
12149
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
12095
- function o(v) {
12096
- return n.store.emit(r.formID, "click", v);
12150
+ function o(_) {
12151
+ return n.store.emit(r.formID, "click", _);
12097
12152
  }
12098
- function s(v) {
12153
+ function s(_) {
12099
12154
  if (e.kgDisabled)
12100
- return e.kgDisabled(v);
12155
+ return e.kgDisabled(_);
12101
12156
  }
12102
- function i(v) {
12103
- switch (v.primary_flg) {
12157
+ function i(_) {
12158
+ switch (_.primary_flg) {
12104
12159
  case 1:
12105
12160
  return !0;
12106
12161
  case 0:
@@ -12109,13 +12164,13 @@ const getProps$e = () => ({
12109
12164
  return;
12110
12165
  }
12111
12166
  }
12112
- function l(v) {
12113
- if (r.t(v.var_nam).value !== v.var_nam)
12114
- return r.t(v.var_nam).value;
12167
+ function l(_) {
12168
+ if (r.t(_.var_nam).value !== _.var_nam)
12169
+ return r.t(_.var_nam).value;
12115
12170
  }
12116
12171
  function u() {
12117
- var v, b;
12118
- if (!r.varButtons.value || ((v = r.varButtons.value) == null ? void 0 : v.length) === 0)
12172
+ var _, b;
12173
+ if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
12119
12174
  return null;
12120
12175
  switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
12121
12176
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
@@ -12124,22 +12179,22 @@ const getProps$e = () => ({
12124
12179
  return g();
12125
12180
  }
12126
12181
  }
12127
- function c(v) {
12182
+ function c(_) {
12128
12183
  return createVNode(KgButtonItem, {
12129
- kgButton: v,
12130
- kgVarName: v.var_nam,
12131
- kgType: v.typ,
12132
- kgIcon: v.icon,
12133
- kgText: l(v),
12134
- kgColor: v.color,
12135
- kgPrimary: i(v),
12136
- kgDisabled: s(v),
12137
- onKgClick: () => o(v)
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(_)
12138
12193
  }, null);
12139
12194
  }
12140
12195
  function g() {
12141
- var v;
12142
- return (v = r.varButtons.value) == null ? void 0 : v.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
12196
+ var _;
12197
+ return (_ = r.varButtons.value) == null ? void 0 : _.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
12143
12198
  }
12144
12199
  function p() {
12145
12200
  return createVNode(Dropdown, {
@@ -12153,11 +12208,11 @@ const getProps$e = () => ({
12153
12208
  }),
12154
12209
  overlay: () => createVNode(Menu, null, {
12155
12210
  default: () => {
12156
- var v, b;
12157
- 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) => {
12158
- let _;
12159
- return createVNode(Menu.Item, null, _isSlot$3(_ = c(m)) ? _ : {
12160
- 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]
12161
12216
  });
12162
12217
  })];
12163
12218
  }
@@ -12165,14 +12220,14 @@ const getProps$e = () => ({
12165
12220
  });
12166
12221
  }
12167
12222
  return () => {
12168
- let v;
12223
+ let _;
12169
12224
  return createVNode("div", {
12170
12225
  class: "kg-button",
12171
12226
  "kg-frm-id": r.formID
12172
12227
  }, [createVNode(Spin, {
12173
12228
  spinning: a.value
12174
- }, _isSlot$3(v = u()) ? v : {
12175
- default: () => [v]
12229
+ }, _isSlot$3(_ = u()) ? _ : {
12230
+ default: () => [_]
12176
12231
  })]);
12177
12232
  };
12178
12233
  }
@@ -12582,24 +12637,24 @@ const leftVarProfileDetailColumns = (e) => {
12582
12637
  s.onOpen(async ({
12583
12638
  isCreating: b,
12584
12639
  isUpdating: m,
12585
- isCopying: _,
12586
- row: C,
12640
+ isCopying: v,
12641
+ row: T,
12587
12642
  model: y
12588
12643
  }) => {
12589
- var E, I, k;
12590
- const T = i.store.getSystemVarProfileDetails(i.formID);
12591
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
12644
+ var E, A, k;
12645
+ const C = i.store.getSystemVarProfileDetails(i.formID);
12646
+ switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
12592
12647
  case b:
12593
12648
  u.value = [];
12594
12649
  break;
12595
12650
  case m:
12596
- case _:
12597
- if (C != null && C.id)
12651
+ case v:
12652
+ if (T != null && T.id)
12598
12653
  try {
12599
12654
  s.store.setIsLoading(n.formID, !0);
12600
12655
  const R = await QueryByID({
12601
12656
  params: {
12602
- id: C.id
12657
+ id: T.id
12603
12658
  }
12604
12659
  });
12605
12660
  l.value = l.value.map((O) => {
@@ -12611,7 +12666,7 @@ const leftVarProfileDetailColumns = (e) => {
12611
12666
  id: O.id
12612
12667
  } : O;
12613
12668
  });
12614
- const L = (I = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12669
+ const L = (A = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? A : [];
12615
12670
  u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
12616
12671
  } catch (R) {
12617
12672
  throw R;
@@ -12623,7 +12678,7 @@ const leftVarProfileDetailColumns = (e) => {
12623
12678
  break;
12624
12679
  }
12625
12680
  switch (!0) {
12626
- case _:
12681
+ case v:
12627
12682
  y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
12628
12683
  break;
12629
12684
  }
@@ -12631,9 +12686,9 @@ const leftVarProfileDetailColumns = (e) => {
12631
12686
  }), s.onBeforeOk(async ({
12632
12687
  model: b
12633
12688
  }) => {
12634
- var _, C;
12689
+ var v, T;
12635
12690
  const m = b.value;
12636
- return m.frm_id = i.formID, m.varProfileDetails = (C = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
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;
12637
12692
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12638
12693
  row: b
12639
12694
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -12656,10 +12711,10 @@ const leftVarProfileDetailColumns = (e) => {
12656
12711
  varProfileDetails: ({
12657
12712
  varName: b,
12658
12713
  props: m,
12659
- model: _,
12660
- varConfig: C,
12714
+ model: v,
12715
+ varConfig: T,
12661
12716
  varProfileDetail: y,
12662
- varSubmitField: T
12717
+ varSubmitField: C
12663
12718
  }) => createVNode(Transfer, {
12664
12719
  dataSource: l.value,
12665
12720
  targetKeys: u.value,
@@ -12668,14 +12723,14 @@ const leftVarProfileDetailColumns = (e) => {
12668
12723
  showSearch: !0,
12669
12724
  showSelectAll: !1,
12670
12725
  searchPlaceholder: " ",
12671
- filterOption: (E, I) => {
12726
+ filterOption: (E, A) => {
12672
12727
  var k;
12673
- return !!((k = I.var_nam) != null && k.includes(E));
12728
+ return !!((k = A.var_nam) != null && k.includes(E));
12674
12729
  }
12675
12730
  }, {
12676
12731
  children: ({
12677
12732
  direction: E,
12678
- filteredItems: I,
12733
+ filteredItems: A,
12679
12734
  selectedKeys: k,
12680
12735
  disabled: R,
12681
12736
  onItemSelectAll: L,
@@ -12690,9 +12745,9 @@ const leftVarProfileDetailColumns = (e) => {
12690
12745
  },
12691
12746
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
12692
12747
  rowKey: "id",
12693
- dataSource: I,
12748
+ dataSource: A,
12694
12749
  customRow: (D) => ({
12695
- onClick: ($) => v($, D, E, k)
12750
+ onClick: ($) => _($, D, E, k)
12696
12751
  }),
12697
12752
  rowSelection: g({
12698
12753
  disabled: R,
@@ -12711,44 +12766,44 @@ const leftVarProfileDetailColumns = (e) => {
12711
12766
  const g = ({
12712
12767
  disabled: b,
12713
12768
  selectedKeys: m,
12714
- onItemSelectAll: _,
12715
- onItemSelect: C
12769
+ onItemSelectAll: v,
12770
+ onItemSelect: T
12716
12771
  }) => ({
12717
12772
  getCheckboxProps: (y) => ({
12718
12773
  disabled: b || y.disabled
12719
12774
  }),
12720
- onSelectAll(y, T) {
12721
- const E = T.filter((I) => !I.disabled).map(({
12722
- key: I
12723
- }) => I);
12724
- _(E, y);
12775
+ onSelectAll(y, C) {
12776
+ const E = C.filter((A) => !A.disabled).map(({
12777
+ key: A
12778
+ }) => A);
12779
+ v(E, y);
12725
12780
  },
12726
12781
  onSelect({
12727
12782
  key: y
12728
- }, T) {
12729
- C(y, T);
12783
+ }, C) {
12784
+ T(y, C);
12730
12785
  },
12731
12786
  selectedRowKeys: m,
12732
12787
  columnWidth: 32
12733
12788
  });
12734
12789
  async function p() {
12735
12790
  const b = watch(a.isReady, async (m) => {
12736
- var _, C;
12791
+ var v, T;
12737
12792
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12738
12793
  frm_id: e.hostFormID
12739
- }), (C = (_ = a.search).value) == null || C.call(_));
12794
+ }), (T = (v = a.search).value) == null || T.call(v));
12740
12795
  }, {
12741
12796
  immediate: !0
12742
12797
  });
12743
12798
  }
12744
- function v(b, m, _, C) {
12799
+ function _(b, m, v, T) {
12745
12800
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12746
- switch (C.length = 0, b.detail) {
12801
+ switch (T.length = 0, b.detail) {
12747
12802
  case 1:
12748
- C[0] = m.id;
12803
+ T[0] = m.id;
12749
12804
  break;
12750
12805
  case 2:
12751
- switch (_) {
12806
+ switch (v) {
12752
12807
  case "left":
12753
12808
  u.value.push(m.id);
12754
12809
  break;
@@ -12864,13 +12919,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12864
12919
  }), 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(() => {
12865
12920
  var x, H;
12866
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));
12867
- }), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
12922
+ }), _ = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), v = ref({
12868
12923
  kgHeight: g.value
12869
- }), C = ref({
12924
+ }), T = ref({
12870
12925
  visible: !1
12871
12926
  });
12872
12927
  let y;
12873
- const T = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12928
+ const C = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
12874
12929
  var x, H, Y;
12875
12930
  if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
12876
12931
  return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
@@ -12899,7 +12954,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12899
12954
  const H = {};
12900
12955
  x.forEach((Y) => {
12901
12956
  H[Y.var_nam] = "";
12902
- }), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
12957
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
12903
12958
  Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12904
12959
  }, {
12905
12960
  immediate: !0
@@ -12924,7 +12979,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12924
12979
  });
12925
12980
  }
12926
12981
  a.store.setSearchFn(n.formID, V);
12927
- function A() {
12982
+ function w() {
12928
12983
  var x;
12929
12984
  (x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
12930
12985
  a.store.emit(n.formID, "reset");
@@ -12934,11 +12989,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12934
12989
  });
12935
12990
  }) : a.store.emit(n.formID, "reset");
12936
12991
  }
12937
- a.store.setResetFn(n.formID, A);
12938
- function M() {
12992
+ a.store.setResetFn(n.formID, w);
12993
+ function I() {
12939
12994
  return V(!0), Promise.resolve(!0);
12940
12995
  }
12941
- function w() {
12996
+ function M() {
12942
12997
  var x;
12943
12998
  return createVNode("div", {
12944
12999
  class: "title",
@@ -12948,36 +13003,36 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12948
13003
  onClick: (H) => {
12949
13004
  H.stopPropagation(), H.preventDefault();
12950
13005
  }
12951
- }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13006
+ }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12952
13007
  }
12953
13008
  function N() {
12954
13009
  var x, H, Y, X;
12955
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, {
12956
13011
  value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
12957
13012
  "onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
12958
- disabled: v.value,
13013
+ disabled: _.value,
12959
13014
  class: "kg-search-profile-master-select"
12960
13015
  }, {
12961
13016
  default: () => {
12962
13017
  var Z, re;
12963
- return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ae) => createVNode(Select.Option, {
12964
- value: ae.id
13018
+ return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ne) => createVNode(Select.Option, {
13019
+ value: ne.id
12965
13020
  }, {
12966
- default: () => [n.t(ae == null ? void 0 : ae.prf_var_nam).value]
13021
+ default: () => [n.t(ne == null ? void 0 : ne.prf_var_nam).value]
12967
13022
  }));
12968
13023
  },
12969
13024
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12970
13025
  }), createVNode(Button, {
12971
- disabled: v.value,
13026
+ disabled: _.value,
12972
13027
  onClick: () => {
12973
- C.value.visible = !0;
13028
+ T.value.visible = !0;
12974
13029
  },
12975
13030
  class: "kg-search-profile-master-btn"
12976
13031
  }, {
12977
13032
  default: () => [createVNode(SettingOutlined$1, null, null)]
12978
13033
  }), createVNode(KgSearchConfigModal, {
12979
- visible: C.value.visible,
12980
- "onUpdate:visible": (Z) => C.value.visible = Z,
13034
+ visible: T.value.visible,
13035
+ "onUpdate:visible": (Z) => T.value.visible = Z,
12981
13036
  hostFormID: n.formID
12982
13037
  }, null)]);
12983
13038
  }
@@ -12987,7 +13042,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12987
13042
  type: "primary",
12988
13043
  ghost: !p.value,
12989
13044
  disabled: p.value,
12990
- onClick: A,
13045
+ onClick: w,
12991
13046
  class: "kg-search-btn-reset"
12992
13047
  }, {
12993
13048
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
@@ -12995,11 +13050,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12995
13050
  kgType: KG_BUTTON_TYPE.SEARCH,
12996
13051
  kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
12997
13052
  kgIcon: (X = E.value) == null ? void 0 : X.icon,
12998
- kgText: I.value,
13053
+ kgText: A.value,
12999
13054
  kgColor: (Z = E.value) == null ? void 0 : Z.color,
13000
13055
  kgPrimary: k.value,
13001
13056
  kgLoading: b.value,
13002
- onKgClick: M
13057
+ onKgClick: I
13003
13058
  }, null)]);
13004
13059
  }
13005
13060
  function U() {
@@ -13029,11 +13084,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13029
13084
  });
13030
13085
  }
13031
13086
  function G() {
13032
- T.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
13087
+ C.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
13033
13088
  }
13034
13089
  return () => createVNode(KgResizable, {
13035
- kgHeight: _.value.kgHeight,
13036
- "onUpdate:kgHeight": (x) => _.value.kgHeight = x,
13090
+ kgHeight: v.value.kgHeight,
13091
+ "onUpdate:kgHeight": (x) => v.value.kgHeight = x,
13037
13092
  kgMinHeight: g.value,
13038
13093
  kgMaxHeight: c.value,
13039
13094
  kgDisabled: !L.value,
@@ -13053,7 +13108,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13053
13108
  }, [createVNode(Spin, {
13054
13109
  spinning: O.value
13055
13110
  }, {
13056
- default: () => [w(), createVNode("div", {
13111
+ default: () => [M(), createVNode("div", {
13057
13112
  class: "ant-collapse-extra"
13058
13113
  }, [F()])]
13059
13114
  })])]
@@ -13118,35 +13173,35 @@ function useMagicKeys(e = {}) {
13118
13173
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
13119
13174
  return {};
13120
13175
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13121
- function g(m, _) {
13122
- m in l && (t ? l[m] = _ : l[m].value = _);
13176
+ function g(m, v) {
13177
+ m in l && (t ? l[m] = v : l[m].value = v);
13123
13178
  }
13124
13179
  function p() {
13125
13180
  for (const m of c)
13126
13181
  g(m, !1);
13127
13182
  }
13128
- function v(m, _) {
13129
- var C, y;
13130
- const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
13131
- E && (_ ? s.add(m.code) : s.delete(m.code));
13132
- for (const k of I)
13133
- c.add(k), g(k, _);
13134
- T === "meta" && !_ ? (u.forEach((k) => {
13183
+ function _(m, v) {
13184
+ var T, y;
13185
+ 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));
13187
+ for (const k of A)
13188
+ c.add(k), g(k, v);
13189
+ C === "meta" && !v ? (u.forEach((k) => {
13135
13190
  s.delete(k), g(k, !1);
13136
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...I].forEach((k) => u.add(k));
13191
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...A].forEach((k) => u.add(k));
13137
13192
  }
13138
- 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 }));
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 }));
13139
13194
  const b = new Proxy(l, {
13140
- get(m, _, C) {
13141
- if (typeof _ != "string")
13142
- return Reflect.get(m, _, C);
13143
- if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
13144
- if (/[+_-]/.test(_)) {
13145
- const T = _.split(/[+_-]/g).map((E) => E.trim());
13146
- l[_] = computed(() => T.every((E) => unref(b[E])));
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])));
13147
13202
  } else
13148
- l[_] = ref(!1);
13149
- const y = Reflect.get(m, _, C);
13203
+ l[v] = ref(!1);
13204
+ const y = Reflect.get(m, v, T);
13150
13205
  return t ? unref(y) : y;
13151
13206
  }
13152
13207
  });
@@ -13533,22 +13588,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13533
13588
  hideSelectAll: !0,
13534
13589
  selectedRowKeys: g,
13535
13590
  onSelect: (V) => R(V)
13536
- }), v = ref({
13591
+ }), _ = ref({
13537
13592
  visible: !1
13538
13593
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13539
13594
  var V;
13540
13595
  return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13541
- }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13596
+ }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13542
13597
  watch(() => n.getSelectedVar, (V) => {
13543
13598
  V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13544
13599
  }, {
13545
13600
  immediate: !0
13546
13601
  }), watch(() => n.getSelectedVarCatalog, async (V) => {
13547
- var A, M;
13548
- l.value.var_text = (A = V == null ? void 0 : V.var_text) != null ? A : "", (M = i.value) == null || M.clearValidate();
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();
13549
13604
  });
13550
13605
  async function y(V = !1) {
13551
- var A, M, w;
13606
+ var w, I, M;
13552
13607
  a.value = !0;
13553
13608
  try {
13554
13609
  const {
@@ -13558,7 +13613,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13558
13613
  pageNo: 1,
13559
13614
  pageSize: 999,
13560
13615
  frm_id: e == null ? void 0 : e.value,
13561
- var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
13616
+ var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13562
13617
  column: "frm_id,locale_id,cust_lvl",
13563
13618
  order: "asc"
13564
13619
  }
@@ -13570,65 +13625,65 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13570
13625
  });
13571
13626
  n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
13572
13627
  } else
13573
- n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13628
+ n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
13574
13629
  } catch (N) {
13575
13630
  Logger.debug(N == null ? void 0 : N.message);
13576
13631
  } finally {
13577
13632
  a.value = !1;
13578
13633
  }
13579
13634
  }
13580
- async function T() {
13581
- var V, A, M;
13635
+ async function C() {
13636
+ var V, w, I;
13582
13637
  try {
13583
13638
  o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
13584
- const w = new VarCatalog({
13585
- ...(A = n.getSelectedVarCatalog) != null ? A : {},
13586
- var_text: (M = l.value) == null ? void 0 : M.var_text
13639
+ const M = new VarCatalog({
13640
+ ...(w = n.getSelectedVarCatalog) != null ? w : {},
13641
+ var_text: (I = l.value) == null ? void 0 : I.var_text
13587
13642
  });
13588
- w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
13589
- data: w
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
13590
13645
  }, {
13591
13646
  successMessageMode: "none"
13592
13647
  }), message.success({
13593
13648
  content: t.t("kg.KgVarConfig.createSuccess")
13594
13649
  }), await y()) : (await Edit({
13595
- data: w
13650
+ data: M
13596
13651
  }, {
13597
13652
  successMessageMode: "none"
13598
13653
  }), message.success({
13599
13654
  content: t.t("kg.KgVarConfig.saveSuccess")
13600
13655
  }), await y(!0)) : (await Add({
13601
- data: w
13656
+ data: M
13602
13657
  }, {
13603
13658
  successMessageMode: "none"
13604
13659
  }), message.success({
13605
13660
  content: t.t("kg.KgVarConfig.createSuccess")
13606
13661
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
13607
- } catch (w) {
13608
- KgUtil.throwIfNotFormError(w);
13662
+ } catch (M) {
13663
+ KgUtil.throwIfNotFormError(M);
13609
13664
  } finally {
13610
13665
  o.value = !1;
13611
13666
  }
13612
13667
  }
13613
13668
  function E({
13614
13669
  isAllForm: V,
13615
- isAllLanguage: A
13670
+ isAllLanguage: w
13616
13671
  }) {
13617
- var M, w, N;
13672
+ var I, M, N;
13618
13673
  c.value = new VarCatalog({
13619
13674
  id: "",
13620
13675
  cust_lvl: KG_CUSTOM_LEVEL.L10,
13621
- grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
13622
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13676
+ grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
13677
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13623
13678
  frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13624
- locale_id: A ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13679
+ locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13625
13680
  var_text: ""
13626
13681
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
13627
13682
  }
13628
- function I() {
13629
- var A;
13683
+ function A() {
13684
+ var w;
13630
13685
  u.value = without$1(u.value, c.value), c.value = null;
13631
- const V = (A = u.value[0]) != null ? A : null;
13686
+ const V = (w = u.value[0]) != null ? w : null;
13632
13687
  n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
13633
13688
  }
13634
13689
  function k() {
@@ -13649,8 +13704,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13649
13704
  });
13650
13705
  }
13651
13706
  function R(V) {
13652
- var A;
13653
- ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) !== V.id && (unref(c) ? KgUtil.confirm({
13707
+ var w;
13708
+ ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== V.id && (unref(c) ? KgUtil.confirm({
13654
13709
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
13655
13710
  onOk: () => {
13656
13711
  u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
@@ -13658,7 +13713,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13658
13713
  }) : (n.setSelectedVarCatalog(unref(V)), g.value = [V.id]));
13659
13714
  }
13660
13715
  function L() {
13661
- v.value.visible = !0;
13716
+ _.value.visible = !0;
13662
13717
  }
13663
13718
  function O() {
13664
13719
  return createVNode("div", {
@@ -13680,13 +13735,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13680
13735
  })]);
13681
13736
  }
13682
13737
  function D() {
13683
- let V, A;
13738
+ let V, w;
13684
13739
  return createVNode("div", {
13685
13740
  class: "form"
13686
13741
  }, [createVNode(Form, {
13687
13742
  ref: i,
13688
13743
  model: l.value,
13689
- onSubmit: T
13744
+ onSubmit: C
13690
13745
  }, {
13691
13746
  default: () => [createVNode(Form.Item, {
13692
13747
  name: "var_text",
@@ -13697,7 +13752,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13697
13752
  }, {
13698
13753
  default: () => [createVNode(Textarea, {
13699
13754
  value: l.value.var_text,
13700
- "onUpdate:value": (M) => l.value.var_text = M,
13755
+ "onUpdate:value": (I) => l.value.var_text = I,
13701
13756
  disabled: !n.getSelectedVarCatalog
13702
13757
  }, null), createVNode("button", {
13703
13758
  hidden: !0
@@ -13706,23 +13761,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13706
13761
  }), createVNode("div", {
13707
13762
  class: "buttons"
13708
13763
  }, [createVNode(Button, {
13709
- disabled: _.value,
13710
- onClick: I
13764
+ disabled: v.value,
13765
+ onClick: A
13711
13766
  }, _isSlot(V = t.t("common.cancelText")) ? V : {
13712
13767
  default: () => [V]
13713
13768
  }), createVNode(Button, {
13714
13769
  loading: o.value,
13715
- disabled: C.value,
13716
- onClick: T,
13770
+ disabled: T.value,
13771
+ onClick: C,
13717
13772
  type: "primary"
13718
- }, _isSlot(A = t.t("common.save")) ? A : {
13719
- default: () => [A]
13773
+ }, _isSlot(w = t.t("common.save")) ? w : {
13774
+ default: () => [w]
13720
13775
  })])]);
13721
13776
  }
13722
13777
  function $(V) {
13723
- var M;
13724
- let A = "";
13725
- return V.id || (A += " ant-table-row-create"), V.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (A += " ant-table-row-selected "), A;
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;
13726
13781
  }
13727
13782
  return () => createVNode("div", {
13728
13783
  class: "kg-var-config-modal-var-var-catalog"
@@ -13744,8 +13799,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13744
13799
  onClick: () => R(V)
13745
13800
  })
13746
13801
  }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13747
- visible: v.value.visible,
13748
- "onUpdate:visible": (V) => v.value.visible = V,
13802
+ visible: _.value.visible,
13803
+ "onUpdate:visible": (V) => _.value.visible = V,
13749
13804
  onKgOk: E
13750
13805
  }, null)]);
13751
13806
  }
@@ -14075,21 +14130,21 @@ const KgWarehouse$1 = "", getProps = () => ({
14075
14130
  record: E
14076
14131
  }) => {
14077
14132
  var k, R, L;
14078
- const I = E;
14079
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
14133
+ const A = E;
14134
+ return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
14080
14135
  class: "address"
14081
- }, [(L = I.adrId) != null ? L : " "])]);
14136
+ }, [(L = A.adrId) != null ? L : " "])]);
14082
14137
  }
14083
14138
  }]), c = ref([]), g = computed(() => {
14084
- var I;
14085
- const E = (I = o.value) == null ? void 0 : I.toUpperCase();
14139
+ var A;
14140
+ const E = (A = o.value) == null ? void 0 : A.toUpperCase();
14086
14141
  return c.value.filter((k) => {
14087
14142
  var R, L, O, D, $, V;
14088
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));
14089
14144
  });
14090
14145
  }), p = computed(() => {
14091
- var E, I;
14092
- return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14146
+ var E, A;
14147
+ return ((A = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : A.enable) !== !1;
14093
14148
  });
14094
14149
  watch(n.visible, (E) => {
14095
14150
  !p.value || (E ? b() : m());
@@ -14098,16 +14153,16 @@ const KgWarehouse$1 = "", getProps = () => ({
14098
14153
  }), onMounted(() => {
14099
14154
  n.store.emit("mounted");
14100
14155
  });
14101
- function v() {
14156
+ function _() {
14102
14157
  !p.value || n.store.setVisible(!0);
14103
14158
  }
14104
14159
  function b() {
14105
- i.value = n.warehouse.value, C();
14160
+ i.value = n.warehouse.value, T();
14106
14161
  }
14107
14162
  function m() {
14108
14163
  o.value = "", c.value = [], i.value = null;
14109
14164
  }
14110
- function _() {
14165
+ function v() {
14111
14166
  var E;
14112
14167
  !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({
14113
14168
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14121,7 +14176,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14121
14176
  }
14122
14177
  })), n.store.setVisible(!1));
14123
14178
  }
14124
- async function C() {
14179
+ async function T() {
14125
14180
  l.value = !0;
14126
14181
  try {
14127
14182
  const {
@@ -14139,25 +14194,25 @@ const KgWarehouse$1 = "", getProps = () => ({
14139
14194
  l.value = !1;
14140
14195
  }
14141
14196
  }
14142
- function y(E, I) {
14197
+ function y(E, A) {
14143
14198
  var k;
14144
14199
  switch (E.detail) {
14145
14200
  case 1:
14146
- ((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
14201
+ ((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
14147
14202
  break;
14148
14203
  case 2:
14149
- i.value = I, _();
14204
+ i.value = A, v();
14150
14205
  break;
14151
14206
  }
14152
14207
  }
14153
- function T() {
14208
+ function C() {
14154
14209
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14155
14210
  title: r.t("kg.KgWarehouse.warehouse"),
14156
14211
  placement: "bottomRight"
14157
14212
  }, {
14158
14213
  default: () => {
14159
- var E, I;
14160
- return [((E = s.value) == null ? void 0 : E.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14214
+ var E, A;
14215
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((A = s.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14161
14216
  }
14162
14217
  }), createVNode(KgModal, {
14163
14218
  visible: n.visible.value,
@@ -14174,7 +14229,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14174
14229
  okButtonProps: {
14175
14230
  disabled: l.value || !i.value
14176
14231
  },
14177
- onOk: _
14232
+ onOk: v
14178
14233
  }, {
14179
14234
  default: () => [createVNode(Input, {
14180
14235
  value: o.value,
@@ -14199,9 +14254,9 @@ const KgWarehouse$1 = "", getProps = () => ({
14199
14254
  columns: u,
14200
14255
  class: "kg-flex-table",
14201
14256
  customRow: (E) => {
14202
- var I;
14257
+ var A;
14203
14258
  return {
14204
- class: E.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
14259
+ class: E.id === ((A = i.value) == null ? void 0 : A.id) ? "selected" : "",
14205
14260
  onClick: (k) => y(k, E)
14206
14261
  };
14207
14262
  }
@@ -14210,8 +14265,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14210
14265
  }
14211
14266
  return () => createVNode("div", {
14212
14267
  class: a.value,
14213
- onClick: v
14214
- }, [T()]);
14268
+ onClick: _
14269
+ }, [C()]);
14215
14270
  }
14216
14271
  });
14217
14272
  function createKgWarehouseGuard(e, t) {