@kengic/vue 0.5.34-beta.1 → 0.5.35

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.
@@ -161,6 +161,24 @@ class VarButton {
161
161
  });
162
162
  }
163
163
  }
164
+ class VarButtonConfig {
165
+ constructor(t) {
166
+ d(this, "available_flg");
167
+ d(this, "display_type");
168
+ d(this, "frm_id");
169
+ d(this, "id");
170
+ keys$1(t != null ? t : {}).forEach((r) => {
171
+ switch (r) {
172
+ case "available_flg":
173
+ case "display_type":
174
+ case "frm_id":
175
+ case "id":
176
+ Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
177
+ break;
178
+ }
179
+ });
180
+ }
181
+ }
164
182
  class VarCatalog {
165
183
  constructor(t) {
166
184
  d(this, "cust_lvl");
@@ -205,6 +223,7 @@ class VarContext {
205
223
  }
206
224
  class VarDTO {
207
225
  constructor(t) {
226
+ d(this, "varButtonConfig");
208
227
  d(this, "varButtons");
209
228
  d(this, "varCatalogs");
210
229
  d(this, "varConfigs");
@@ -219,6 +238,7 @@ class VarDTO {
219
238
  d(this, "varVariableInputs");
220
239
  keys$1(t != null ? t : {}).forEach((r) => {
221
240
  switch (r) {
241
+ case "varButtonConfig":
222
242
  case "varButtons":
223
243
  case "varCatalogs":
224
244
  case "varConfigs":
@@ -447,15 +467,19 @@ class VarPossibility {
447
467
  }
448
468
  class VarProfileConfig {
449
469
  constructor(t) {
470
+ d(this, "available_flg");
450
471
  d(this, "frm_id");
451
472
  d(this, "header_teleport_flg");
452
473
  d(this, "id");
474
+ d(this, "resizable_flg");
453
475
  d(this, "vis_flg");
454
476
  keys$1(t != null ? t : {}).forEach((r) => {
455
477
  switch (r) {
478
+ case "available_flg":
456
479
  case "frm_id":
457
480
  case "header_teleport_flg":
458
481
  case "id":
482
+ case "resizable_flg":
459
483
  case "vis_flg":
460
484
  Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
461
485
  break;
@@ -2435,17 +2459,17 @@ function baseClone(e, t, r, n, a, o) {
2435
2459
  }
2436
2460
  }
2437
2461
  o || (o = new Stack());
2438
- var _ = o.get(e);
2439
- if (_)
2440
- return _;
2441
- o.set(e, s), isSet$1(e) ? e.forEach(function(b) {
2442
- s.add(baseClone(b, t, r, b, e, o));
2443
- }) : isMap$1(e) && e.forEach(function(b, T) {
2444
- s.set(T, baseClone(b, t, r, T, e, o));
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));
2445
2469
  });
2446
- var v = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : v(e);
2447
- return arrayEach(m || e, function(b, T) {
2448
- m && (T = b, b = e[T]), assignValue(s, T, baseClone(b, t, r, T, e, o));
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));
2449
2473
  }), s;
2450
2474
  }
2451
2475
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2483,26 +2507,26 @@ function equalArrays(e, t, r, n, a, o) {
2483
2507
  var u = o.get(e), c = o.get(t);
2484
2508
  if (u && c)
2485
2509
  return u == t && c == e;
2486
- var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2510
+ var g = -1, p = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2487
2511
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2488
- var v = e[g], m = t[g];
2512
+ var b = e[g], m = t[g];
2489
2513
  if (n)
2490
- var b = s ? n(m, v, g, t, e, o) : n(v, m, g, e, t, o);
2491
- if (b !== void 0) {
2492
- if (b)
2514
+ var _ = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
2515
+ if (_ !== void 0) {
2516
+ if (_)
2493
2517
  continue;
2494
2518
  p = !1;
2495
2519
  break;
2496
2520
  }
2497
- if (_) {
2498
- if (!arraySome(t, function(T, y) {
2499
- if (!cacheHas(_, y) && (v === T || a(v, T, r, n, o)))
2500
- return _.push(y);
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);
2501
2525
  })) {
2502
2526
  p = !1;
2503
2527
  break;
2504
2528
  }
2505
- } else if (!(v === m || a(v, m, r, n, o))) {
2529
+ } else if (!(b === m || a(b, m, r, n, o))) {
2506
2530
  p = !1;
2507
2531
  break;
2508
2532
  }
@@ -2567,23 +2591,23 @@ function equalObjects(e, t, r, n, a, o) {
2567
2591
  if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
2568
2592
  return !1;
2569
2593
  }
2570
- var _ = o.get(e), v = o.get(t);
2571
- if (_ && v)
2572
- return _ == t && v == e;
2594
+ var v = o.get(e), b = o.get(t);
2595
+ if (v && b)
2596
+ return v == t && b == e;
2573
2597
  var m = !0;
2574
2598
  o.set(e, t), o.set(t, e);
2575
- for (var b = s; ++g < l; ) {
2599
+ for (var _ = s; ++g < l; ) {
2576
2600
  p = i[g];
2577
- var T = e[p], y = t[p];
2601
+ var C = e[p], y = t[p];
2578
2602
  if (n)
2579
- var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
2580
- if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
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)) {
2581
2605
  m = !1;
2582
2606
  break;
2583
2607
  }
2584
- b || (b = p == "constructor");
2608
+ _ || (_ = p == "constructor");
2585
2609
  }
2586
- if (m && !b) {
2610
+ if (m && !_) {
2587
2611
  var E = e.constructor, I = t.constructor;
2588
2612
  E != I && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (m = !1);
2589
2613
  }
@@ -2602,10 +2626,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2602
2626
  if (p && !c)
2603
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);
2604
2628
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2605
- var _ = c && hasOwnProperty.call(e, "__wrapped__"), v = g && hasOwnProperty.call(t, "__wrapped__");
2606
- if (_ || v) {
2607
- var m = _ ? e.value() : e, b = v ? t.value() : t;
2608
- return o || (o = new Stack()), a(m, b, r, n, o);
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);
2609
2633
  }
2610
2634
  }
2611
2635
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -2798,14 +2822,14 @@ function baseIntersection(e, t, r) {
2798
2822
  var g = -1, p = i[0];
2799
2823
  e:
2800
2824
  for (; ++g < a && u.length < l; ) {
2801
- var _ = c[g], v = t ? t(_) : _;
2802
- if (_ = r || _ !== 0 ? _ : 0, !(p ? cacheHas(p, v) : n(u, v, r))) {
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))) {
2803
2827
  for (s = o; --s; ) {
2804
2828
  var m = i[s];
2805
- if (!(m ? cacheHas(m, v) : n(e[s], v, r)))
2829
+ if (!(m ? cacheHas(m, b) : n(e[s], b, r)))
2806
2830
  continue e;
2807
2831
  }
2808
- p && p.push(v), u.push(_);
2832
+ p && p.push(b), u.push(v);
2809
2833
  }
2810
2834
  }
2811
2835
  return u;
@@ -3330,8 +3354,8 @@ function generate$1(e) {
3330
3354
  r.push(u);
3331
3355
  }
3332
3356
  return t.theme === "dark" ? darkColorMap.map(function(c) {
3333
- var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3334
- return _;
3357
+ var g = c.index, p = c.opacity, v = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3358
+ return v;
3335
3359
  }) : r;
3336
3360
  }
3337
3361
  var presetPrimaryColors = {
@@ -3687,26 +3711,26 @@ function _objectWithoutPropertiesLoose(e, t) {
3687
3711
  }
3688
3712
  setTwoToneColor("#1890ff");
3689
3713
  var Icon$1 = function(t, r) {
3690
- 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 = {
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 = {
3691
3715
  anticon: !0
3692
- }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), v = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
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;
3693
3717
  m === void 0 && g && (m = -1, p.tabindex = m);
3694
- var b = l ? {
3718
+ var _ = l ? {
3695
3719
  msTransform: "rotate(".concat(l, "deg)"),
3696
3720
  transform: "rotate(".concat(l, "deg)")
3697
- } : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
3721
+ } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), T = y[0], E = y[1];
3698
3722
  return createVNode("span", _objectSpread$i({
3699
3723
  role: "img",
3700
3724
  "aria-label": s.name
3701
3725
  }, p, {
3702
3726
  onClick: g,
3703
- class: _
3727
+ class: v
3704
3728
  }), [createVNode(VueIcon, {
3705
- class: v,
3729
+ class: b,
3706
3730
  icon: s,
3707
- primaryColor: C,
3731
+ primaryColor: T,
3708
3732
  secondaryColor: E,
3709
- style: b
3733
+ style: _
3710
3734
  }, null)]);
3711
3735
  };
3712
3736
  Icon$1.props = {
@@ -4667,206 +4691,206 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4667
4691
  (function(r, n) {
4668
4692
  e.exports = n();
4669
4693
  })(commonjsGlobal, function() {
4670
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\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(M) {
4671
- var A = ["th", "st", "nd", "rd"], w = M % 100;
4672
- return "[" + M + (A[(w - 20) % 10] || A[w] || A[0]) + "]";
4673
- } }, C = function(M, A, w) {
4674
- var L = String(M);
4675
- return !L || L.length >= A ? M : "" + Array(A + 1 - L.length).join(w) + M;
4676
- }, E = { s: C, z: function(M) {
4677
- var A = -M.utcOffset(), w = Math.abs(A), L = Math.floor(w / 60), x = w % 60;
4678
- return (A <= 0 ? "+" : "-") + C(L, 2, "0") + ":" + C(x, 2, "0");
4679
- }, m: function M(A, w) {
4680
- if (A.date() < w.date())
4681
- return -M(w, A);
4682
- var L = 12 * (w.year() - A.year()) + (w.month() - A.month()), x = A.clone().add(L, g), G = w - x < 0, N = A.clone().add(L + (G ? -1 : 1), g);
4683
- return +(-(L + (w - x) / (G ? x - N : N - x)) || 0);
4684
- }, a: function(M) {
4685
- return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4686
- }, p: function(M) {
4687
- return { M: g, y: _, w: c, d: u, D: v, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4688
- }, u: function(M) {
4689
- return M === void 0;
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;
4690
4714
  } }, I = "en", k = {};
4691
4715
  k[I] = y;
4692
- var F = function(M) {
4693
- return M instanceof $;
4694
- }, R = function M(A, w, L) {
4695
- var x;
4696
- if (!A)
4716
+ var R = function(A) {
4717
+ return A instanceof $;
4718
+ }, L = function A(M, w, N) {
4719
+ var F;
4720
+ if (!M)
4697
4721
  return I;
4698
- if (typeof A == "string") {
4699
- var G = A.toLowerCase();
4700
- k[G] && (x = G), w && (k[G] = w, x = G);
4701
- var N = A.split("-");
4702
- if (!x && N.length > 1)
4703
- return M(N[0]);
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("-");
4726
+ if (!F && G.length > 1)
4727
+ return A(G[0]);
4704
4728
  } else {
4705
- var B = A.name;
4706
- k[B] = A, x = B;
4707
- }
4708
- return !L && x && (I = x), x || !L && I;
4709
- }, O = function(M, A) {
4710
- if (F(M))
4711
- return M.clone();
4712
- var w = typeof A == "object" ? A : {};
4713
- return w.date = M, w.args = arguments, new $(w);
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);
4714
4738
  }, D = E;
4715
- D.l = R, D.i = F, D.w = function(M, A) {
4716
- return O(M, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
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 });
4717
4741
  };
4718
4742
  var $ = function() {
4719
- function M(w) {
4720
- this.$L = R(w.locale, null, !0), this.parse(w);
4721
- }
4722
- var A = M.prototype;
4723
- return A.parse = function(w) {
4724
- this.$d = function(L) {
4725
- var x = L.date, G = L.utc;
4726
- if (x === null)
4743
+ function A(w) {
4744
+ this.$L = L(w.locale, null, !0), this.parse(w);
4745
+ }
4746
+ var M = A.prototype;
4747
+ return M.parse = function(w) {
4748
+ this.$d = function(N) {
4749
+ var F = N.date, U = N.utc;
4750
+ if (F === null)
4727
4751
  return new Date(NaN);
4728
- if (D.u(x))
4752
+ if (D.u(F))
4729
4753
  return new Date();
4730
- if (x instanceof Date)
4731
- return new Date(x);
4732
- if (typeof x == "string" && !/Z$/i.test(x)) {
4733
- var N = x.match(b);
4734
- if (N) {
4735
- var B = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
4736
- return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
4754
+ if (F instanceof Date)
4755
+ return new Date(F);
4756
+ if (typeof F == "string" && !/Z$/i.test(F)) {
4757
+ var G = F.match(_);
4758
+ if (G) {
4759
+ var x = G[2] - 1 || 0, H = (G[7] || "0").substring(0, 3);
4760
+ return U ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H);
4737
4761
  }
4738
4762
  }
4739
- return new Date(x);
4763
+ return new Date(F);
4740
4764
  }(w), this.$x = w.x || {}, this.init();
4741
- }, A.init = function() {
4765
+ }, M.init = function() {
4742
4766
  var w = this.$d;
4743
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();
4744
- }, A.$utils = function() {
4768
+ }, M.$utils = function() {
4745
4769
  return D;
4746
- }, A.isValid = function() {
4770
+ }, M.isValid = function() {
4747
4771
  return this.$d.toString() !== m;
4748
- }, A.isSame = function(w, L) {
4749
- var x = O(w);
4750
- return this.startOf(L) <= x && x <= this.endOf(L);
4751
- }, A.isAfter = function(w, L) {
4752
- return O(w) < this.startOf(L);
4753
- }, A.isBefore = function(w, L) {
4754
- return this.endOf(L) < O(w);
4755
- }, A.$g = function(w, L, x) {
4756
- return D.u(w) ? this[L] : this.set(x, w);
4757
- }, A.unix = function() {
4772
+ }, M.isSame = function(w, N) {
4773
+ var F = O(w);
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() {
4758
4782
  return Math.floor(this.valueOf() / 1e3);
4759
- }, A.valueOf = function() {
4783
+ }, M.valueOf = function() {
4760
4784
  return this.$d.getTime();
4761
- }, A.startOf = function(w, L) {
4762
- var x = this, G = !!D.u(L) || L, N = D.p(w), B = function(de, P) {
4763
- var K = D.w(x.$u ? Date.UTC(x.$y, P, de) : new Date(x.$y, P, de), x);
4764
- return G ? K : K.endOf(u);
4765
- }, W = function(de, P) {
4766
- return D.w(x.toDate()[de].apply(x.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), x);
4767
- }, Y = this.$W, Q = this.$M, re = this.$D, Z = "set" + (this.$u ? "UTC" : "");
4768
- switch (N) {
4769
- case _:
4770
- return G ? B(1, 0) : B(31, 11);
4785
+ }, M.startOf = function(w, N) {
4786
+ var F = this, U = !!D.u(N) || N, G = D.p(w), x = function(de, P) {
4787
+ var K = D.w(F.$u ? Date.UTC(F.$y, P, de) : new Date(F.$y, P, de), F);
4788
+ return U ? K : K.endOf(u);
4789
+ }, H = function(de, P) {
4790
+ return D.w(F.toDate()[de].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), F);
4791
+ }, Y = this.$W, X = this.$M, Z = this.$D, re = "set" + (this.$u ? "UTC" : "");
4792
+ switch (G) {
4793
+ case v:
4794
+ return U ? x(1, 0) : x(31, 11);
4771
4795
  case g:
4772
- return G ? B(1, Q) : B(0, Q + 1);
4796
+ return U ? x(1, X) : x(0, X + 1);
4773
4797
  case c:
4774
- var ce = this.$locale().weekStart || 0, oe = (Y < ce ? Y + 7 : Y) - ce;
4775
- return B(G ? re - oe : re + (6 - oe), Q);
4798
+ var ae = this.$locale().weekStart || 0, se = (Y < ae ? Y + 7 : Y) - ae;
4799
+ return x(U ? Z - se : Z + (6 - se), X);
4776
4800
  case u:
4777
- case v:
4778
- return W(Z + "Hours", 0);
4801
+ case b:
4802
+ return H(re + "Hours", 0);
4779
4803
  case l:
4780
- return W(Z + "Minutes", 1);
4804
+ return H(re + "Minutes", 1);
4781
4805
  case i:
4782
- return W(Z + "Seconds", 2);
4806
+ return H(re + "Seconds", 2);
4783
4807
  case s:
4784
- return W(Z + "Milliseconds", 3);
4808
+ return H(re + "Milliseconds", 3);
4785
4809
  default:
4786
4810
  return this.clone();
4787
4811
  }
4788
- }, A.endOf = function(w) {
4812
+ }, M.endOf = function(w) {
4789
4813
  return this.startOf(w, !1);
4790
- }, A.$set = function(w, L) {
4791
- var x, G = D.p(w), N = "set" + (this.$u ? "UTC" : ""), B = (x = {}, x[u] = N + "Date", x[v] = N + "Date", x[g] = N + "Month", x[_] = N + "FullYear", x[l] = N + "Hours", x[i] = N + "Minutes", x[s] = N + "Seconds", x[o] = N + "Milliseconds", x)[G], W = G === u ? this.$D + (L - this.$W) : L;
4792
- if (G === g || G === _) {
4793
- var Y = this.clone().set(v, 1);
4794
- Y.$d[B](W), Y.init(), this.$d = Y.set(v, Math.min(this.$D, Y.daysInMonth())).$d;
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) {
4817
+ var Y = this.clone().set(b, 1);
4818
+ Y.$d[x](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4795
4819
  } else
4796
- B && this.$d[B](W);
4820
+ x && this.$d[x](H);
4797
4821
  return this.init(), this;
4798
- }, A.set = function(w, L) {
4799
- return this.clone().$set(w, L);
4800
- }, A.get = function(w) {
4822
+ }, M.set = function(w, N) {
4823
+ return this.clone().$set(w, N);
4824
+ }, M.get = function(w) {
4801
4825
  return this[D.p(w)]();
4802
- }, A.add = function(w, L) {
4803
- var x, G = this;
4826
+ }, M.add = function(w, N) {
4827
+ var F, U = this;
4804
4828
  w = Number(w);
4805
- var N = D.p(L), B = function(Q) {
4806
- var re = O(G);
4807
- return D.w(re.date(re.date() + Math.round(Q * w)), G);
4829
+ var G = D.p(N), x = function(X) {
4830
+ var Z = O(U);
4831
+ return D.w(Z.date(Z.date() + Math.round(X * w)), U);
4808
4832
  };
4809
- if (N === g)
4833
+ if (G === g)
4810
4834
  return this.set(g, this.$M + w);
4811
- if (N === _)
4812
- return this.set(_, this.$y + w);
4813
- if (N === u)
4814
- return B(1);
4815
- if (N === c)
4816
- return B(7);
4817
- var W = (x = {}, x[i] = n, x[l] = a, x[s] = r, x)[N] || 1, Y = this.$d.getTime() + w * W;
4835
+ if (G === v)
4836
+ return this.set(v, this.$y + w);
4837
+ if (G === u)
4838
+ return x(1);
4839
+ if (G === c)
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;
4818
4842
  return D.w(Y, this);
4819
- }, A.subtract = function(w, L) {
4820
- return this.add(-1 * w, L);
4821
- }, A.format = function(w) {
4822
- var L = this, x = this.$locale();
4843
+ }, M.subtract = function(w, N) {
4844
+ return this.add(-1 * w, N);
4845
+ }, M.format = function(w) {
4846
+ var N = this, F = this.$locale();
4823
4847
  if (!this.isValid())
4824
- return x.invalidDate || m;
4825
- var G = w || "YYYY-MM-DDTHH:mm:ssZ", N = D.z(this), B = this.$H, W = this.$m, Y = this.$M, Q = x.weekdays, re = x.months, Z = function(P, K, H, q) {
4826
- return P && (P[K] || P(L, G)) || H[K].slice(0, q);
4827
- }, ce = function(P) {
4828
- return D.s(B % 12 || 12, P, "0");
4829
- }, oe = x.meridiem || function(P, K, H) {
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) {
4850
+ return P && (P[K] || P(N, U)) || z[K].slice(0, q);
4851
+ }, ae = function(P) {
4852
+ return D.s(x % 12 || 12, P, "0");
4853
+ }, se = F.meridiem || function(P, K, z) {
4830
4854
  var q = P < 12 ? "AM" : "PM";
4831
- return H ? q.toLowerCase() : q;
4832
- }, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: Z(x.monthsShort, Y, re, 3), MMMM: Z(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: Z(x.weekdaysMin, this.$W, Q, 2), ddd: Z(x.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ce(1), hh: ce(2), a: oe(B, W, !0), A: oe(B, W, !1), m: String(W), mm: D.s(W, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
4833
- return G.replace(T, function(P, K) {
4834
- return K || de[P] || N.replace(":", "");
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) {
4858
+ return K || de[P] || G.replace(":", "");
4835
4859
  });
4836
- }, A.utcOffset = function() {
4860
+ }, M.utcOffset = function() {
4837
4861
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4838
- }, A.diff = function(w, L, x) {
4839
- var G, N = D.p(L), B = O(w), W = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, Q = D.m(this, B);
4840
- return Q = (G = {}, G[_] = Q / 12, G[g] = Q, G[p] = Q / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, x ? Q : D.a(Q);
4841
- }, A.daysInMonth = function() {
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() {
4842
4866
  return this.endOf(g).$D;
4843
- }, A.$locale = function() {
4867
+ }, M.$locale = function() {
4844
4868
  return k[this.$L];
4845
- }, A.locale = function(w, L) {
4869
+ }, M.locale = function(w, N) {
4846
4870
  if (!w)
4847
4871
  return this.$L;
4848
- var x = this.clone(), G = R(w, L, !0);
4849
- return G && (x.$L = G), x;
4850
- }, A.clone = function() {
4872
+ var F = this.clone(), U = L(w, N, !0);
4873
+ return U && (F.$L = U), F;
4874
+ }, M.clone = function() {
4851
4875
  return D.w(this.$d, this);
4852
- }, A.toDate = function() {
4876
+ }, M.toDate = function() {
4853
4877
  return new Date(this.valueOf());
4854
- }, A.toJSON = function() {
4878
+ }, M.toJSON = function() {
4855
4879
  return this.isValid() ? this.toISOString() : null;
4856
- }, A.toISOString = function() {
4880
+ }, M.toISOString = function() {
4857
4881
  return this.$d.toISOString();
4858
- }, A.toString = function() {
4882
+ }, M.toString = function() {
4859
4883
  return this.$d.toUTCString();
4860
- }, M;
4884
+ }, A;
4861
4885
  }(), V = $.prototype;
4862
- return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", v]].forEach(function(M) {
4863
- V[M[1]] = function(A) {
4864
- return this.$g(A, M[0], M[1]);
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]);
4865
4889
  };
4866
- }), O.extend = function(M, A) {
4867
- return M.$i || (M(A, $, O), M.$i = !0), O;
4868
- }, O.locale = R, O.isDayjs = F, O.unix = function(M) {
4869
- return O(1e3 * M);
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);
4870
4894
  }, O.en = k[I], O.Ls = k, O.p = {}, O;
4871
4895
  });
4872
4896
  })(dayjs_min);
@@ -4907,37 +4931,37 @@ function filesize(e, {
4907
4931
  standard: c = EMPTY,
4908
4932
  output: g = STRING,
4909
4933
  fullform: p = !1,
4910
- fullforms: _ = [],
4911
- exponent: v = -1,
4934
+ fullforms: v = [],
4935
+ exponent: b = -1,
4912
4936
  roundingMethod: m = ROUND,
4913
- precision: b = 0
4937
+ precision: _ = 0
4914
4938
  } = {}) {
4915
- let T = v, y = Number(e), C = [], E = 0, I = EMPTY;
4939
+ let C = b, y = Number(e), T = [], E = 0, I = EMPTY;
4916
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);
4917
- const k = n === 10 ? 1e3 : 1024, F = p === !0, R = y < 0, O = Math[m];
4941
+ const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
4918
4942
  if (typeof e != "bigint" && isNaN(e))
4919
4943
  throw new TypeError(INVALID_NUMBER);
4920
4944
  if (typeof O !== FUNCTION)
4921
4945
  throw new TypeError(INVALID_ROUND);
4922
- if (R && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (b > 0 && (b += 8 - T), T = 8), g === EXPONENT)
4923
- return T;
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;
4924
4948
  if (y === 0)
4925
- C[0] = 0, I = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4949
+ T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4926
4950
  else {
4927
- 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++));
4928
- const D = Math.pow(10, T > 0 ? a : 0);
4929
- C[0] = O(E * D) / D, C[0] === k && T < 8 && v === -1 && (C[0] = 1, T++), I = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4930
- }
4931
- if (R && (C[0] = -C[0]), b > 0 && (C[0] = C[0].toPrecision(b)), 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) {
4932
- const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, M = V.length, A = a - M;
4933
- C[0] = `${$[0]}${D}${V.padEnd(M + A, ZERO)}`;
4934
- }
4935
- return F && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4936
- value: C[0],
4937
- symbol: C[1],
4938
- exponent: T,
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];
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)}`;
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,
4939
4963
  unit: I
4940
- } : C.join(l);
4964
+ } : T.join(l);
4941
4965
  }
4942
4966
  const data$6 = {
4943
4967
  width: 1024,
@@ -5218,19 +5242,19 @@ function iconToSVG(e, t) {
5218
5242
  height: r.height
5219
5243
  };
5220
5244
  let o = r.body;
5221
- [r, n].forEach((v) => {
5222
- const m = [], b = v.hFlip, T = v.vFlip;
5223
- let y = v.rotate;
5224
- b ? T ? y += 2 : (m.push(
5245
+ [r, n].forEach((b) => {
5246
+ const m = [], _ = b.hFlip, C = b.vFlip;
5247
+ let y = b.rotate;
5248
+ _ ? C ? y += 2 : (m.push(
5225
5249
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5226
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
5250
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5227
5251
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5228
5252
  ), m.push("scale(1 -1)"), a.top = a.left = 0);
5229
- let C;
5253
+ let T;
5230
5254
  switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5231
5255
  case 1:
5232
- C = a.height / 2 + a.top, m.unshift(
5233
- "rotate(90 " + C.toString() + " " + C.toString() + ")"
5256
+ T = a.height / 2 + a.top, m.unshift(
5257
+ "rotate(90 " + T.toString() + " " + T.toString() + ")"
5234
5258
  );
5235
5259
  break;
5236
5260
  case 2:
@@ -5239,20 +5263,20 @@ function iconToSVG(e, t) {
5239
5263
  );
5240
5264
  break;
5241
5265
  case 3:
5242
- C = a.width / 2 + a.left, m.unshift(
5243
- "rotate(-90 " + C.toString() + " " + C.toString() + ")"
5266
+ T = a.width / 2 + a.left, m.unshift(
5267
+ "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5244
5268
  );
5245
5269
  break;
5246
5270
  }
5247
- 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>");
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>");
5248
5272
  });
5249
5273
  const s = n.width, i = n.height, l = a.width, u = a.height;
5250
5274
  let c, g;
5251
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);
5252
- const p = {}, _ = (v, m) => {
5253
- isUnsetKeyword(m) || (p[v] = m.toString());
5276
+ const p = {}, v = (b, m) => {
5277
+ isUnsetKeyword(m) || (p[b] = m.toString());
5254
5278
  };
5255
- return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5279
+ return v("width", c), v("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5256
5280
  attributes: p,
5257
5281
  body: o
5258
5282
  };
@@ -5526,49 +5550,49 @@ function sendQuery(e, t, r, n) {
5526
5550
  if (e.random) {
5527
5551
  let k = e.resources.slice(0);
5528
5552
  for (s = []; k.length > 1; ) {
5529
- const F = Math.floor(Math.random() * k.length);
5530
- s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
5553
+ const R = Math.floor(Math.random() * k.length);
5554
+ s.push(k[R]), k = k.slice(0, R).concat(k.slice(R + 1));
5531
5555
  }
5532
5556
  s = s.concat(k);
5533
5557
  } else
5534
5558
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5535
5559
  const i = Date.now();
5536
- let l = "pending", u = 0, c, g = null, p = [], _ = [];
5537
- typeof n == "function" && _.push(n);
5538
- function v() {
5560
+ let l = "pending", u = 0, c, g = null, p = [], v = [];
5561
+ typeof n == "function" && v.push(n);
5562
+ function b() {
5539
5563
  g && (clearTimeout(g), g = null);
5540
5564
  }
5541
5565
  function m() {
5542
- l === "pending" && (l = "aborted"), v(), p.forEach((k) => {
5566
+ l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
5543
5567
  k.status === "pending" && (k.status = "aborted");
5544
5568
  }), p = [];
5545
5569
  }
5546
- function b(k, F) {
5547
- F && (_ = []), typeof k == "function" && _.push(k);
5570
+ function _(k, R) {
5571
+ R && (v = []), typeof k == "function" && v.push(k);
5548
5572
  }
5549
- function T() {
5573
+ function C() {
5550
5574
  return {
5551
5575
  startTime: i,
5552
5576
  payload: t,
5553
5577
  status: l,
5554
5578
  queriesSent: u,
5555
5579
  queriesPending: p.length,
5556
- subscribe: b,
5580
+ subscribe: _,
5557
5581
  abort: m
5558
5582
  };
5559
5583
  }
5560
5584
  function y() {
5561
- l = "failed", _.forEach((k) => {
5585
+ l = "failed", v.forEach((k) => {
5562
5586
  k(void 0, c);
5563
5587
  });
5564
5588
  }
5565
- function C() {
5589
+ function T() {
5566
5590
  p.forEach((k) => {
5567
5591
  k.status === "pending" && (k.status = "aborted");
5568
5592
  }), p = [];
5569
5593
  }
5570
- function E(k, F, R) {
5571
- const O = F !== "success";
5594
+ function E(k, R, L) {
5595
+ const O = R !== "success";
5572
5596
  switch (p = p.filter((D) => D !== k), l) {
5573
5597
  case "pending":
5574
5598
  break;
@@ -5579,47 +5603,47 @@ function sendQuery(e, t, r, n) {
5579
5603
  default:
5580
5604
  return;
5581
5605
  }
5582
- if (F === "abort") {
5583
- c = R, y();
5606
+ if (R === "abort") {
5607
+ c = L, y();
5584
5608
  return;
5585
5609
  }
5586
5610
  if (O) {
5587
- c = R, p.length || (s.length ? I() : y());
5611
+ c = L, p.length || (s.length ? I() : y());
5588
5612
  return;
5589
5613
  }
5590
- if (v(), C(), !e.random) {
5614
+ if (b(), T(), !e.random) {
5591
5615
  const D = e.resources.indexOf(k.resource);
5592
5616
  D !== -1 && D !== e.index && (e.index = D);
5593
5617
  }
5594
- l = "completed", _.forEach((D) => {
5595
- D(R);
5618
+ l = "completed", v.forEach((D) => {
5619
+ D(L);
5596
5620
  });
5597
5621
  }
5598
5622
  function I() {
5599
5623
  if (l !== "pending")
5600
5624
  return;
5601
- v();
5625
+ b();
5602
5626
  const k = s.shift();
5603
5627
  if (k === void 0) {
5604
5628
  if (p.length) {
5605
5629
  g = setTimeout(() => {
5606
- v(), l === "pending" && (C(), y());
5630
+ b(), l === "pending" && (T(), y());
5607
5631
  }, e.timeout);
5608
5632
  return;
5609
5633
  }
5610
5634
  y();
5611
5635
  return;
5612
5636
  }
5613
- const F = {
5637
+ const R = {
5614
5638
  status: "pending",
5615
5639
  resource: k,
5616
- callback: (R, O) => {
5617
- E(F, R, O);
5640
+ callback: (L, O) => {
5641
+ E(R, L, O);
5618
5642
  }
5619
5643
  };
5620
- p.push(F), u++, g = setTimeout(I, e.rotate), r(k, t, F.callback);
5644
+ p.push(R), u++, g = setTimeout(I, e.rotate), r(k, t, R.callback);
5621
5645
  }
5622
- return setTimeout(I), T;
5646
+ return setTimeout(I), C;
5623
5647
  }
5624
5648
  function initRedundancy(e) {
5625
5649
  const t = {
@@ -5884,8 +5908,8 @@ const loadIcons = (e, t) => {
5884
5908
  const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
5885
5909
  g[c] || (g[c] = []);
5886
5910
  }), n.pending.forEach((l) => {
5887
- const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5888
- _.has(g) || (_.add(g), a[u][c].push(g));
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));
5889
5913
  }), o.forEach((l) => {
5890
5914
  const { provider: u, prefix: c } = l;
5891
5915
  a[u][c].length && loadNewIcons(l, a[u][c]);
@@ -5994,8 +6018,8 @@ function fixSize(e) {
5994
6018
  const render = (e, t) => {
5995
6019
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
5996
6020
  for (let m in t) {
5997
- const b = t[m];
5998
- if (b !== void 0)
6021
+ const _ = t[m];
6022
+ if (_ !== void 0)
5999
6023
  switch (m) {
6000
6024
  case "icon":
6001
6025
  case "style":
@@ -6005,24 +6029,24 @@ const render = (e, t) => {
6005
6029
  case "inline":
6006
6030
  case "hFlip":
6007
6031
  case "vFlip":
6008
- r[m] = b === !0 || b === "true" || b === 1;
6032
+ r[m] = _ === !0 || _ === "true" || _ === 1;
6009
6033
  break;
6010
6034
  case "flip":
6011
- typeof b == "string" && flipFromString(r, b);
6035
+ typeof _ == "string" && flipFromString(r, _);
6012
6036
  break;
6013
6037
  case "color":
6014
- o.color = b;
6038
+ o.color = _;
6015
6039
  break;
6016
6040
  case "rotate":
6017
- typeof b == "string" ? r[m] = rotateFromString(b) : typeof b == "number" && (r[m] = b);
6041
+ typeof _ == "string" ? r[m] = rotateFromString(_) : typeof _ == "number" && (r[m] = _);
6018
6042
  break;
6019
6043
  case "ariaHidden":
6020
6044
  case "aria-hidden":
6021
- b !== !0 && b !== "true" && delete n["aria-hidden"];
6045
+ _ !== !0 && _ !== "true" && delete n["aria-hidden"];
6022
6046
  break;
6023
6047
  default: {
6024
- const T = customisationAliases[m];
6025
- T ? (b === !0 || b === "true" || b === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = b);
6048
+ const C = customisationAliases[m];
6049
+ C ? (_ === !0 || _ === "true" || _ === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
6026
6050
  }
6027
6051
  }
6028
6052
  }
@@ -6032,21 +6056,21 @@ const render = (e, t) => {
6032
6056
  ...o,
6033
6057
  ...i
6034
6058
  }, Object.assign(n, u);
6035
- let m = 0, b = t.id;
6036
- return typeof b == "string" && (b = b.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, b ? () => b + "ID" + m++ : "iconifyVue"), h("svg", n);
6059
+ let m = 0, _ = t.id;
6060
+ return typeof _ == "string" && (_ = _.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + m++ : "iconifyVue"), h("svg", n);
6037
6061
  }
6038
- const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), v = iconToHTML(c, {
6062
+ const { body: c, width: g, height: p } = e, v = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
6039
6063
  ...u,
6040
6064
  width: g + "",
6041
6065
  height: p + ""
6042
6066
  });
6043
6067
  return n.style = {
6044
6068
  ...o,
6045
- "--svg": svgToURL(v),
6069
+ "--svg": svgToURL(b),
6046
6070
  width: fixSize(u.width),
6047
6071
  height: fixSize(u.height),
6048
6072
  ...commonProps,
6049
- ..._ ? monotoneProps : coloredProps,
6073
+ ...v ? monotoneProps : coloredProps,
6050
6074
  ...i
6051
6075
  }, h("span", n);
6052
6076
  };
@@ -6212,8 +6236,8 @@ function createOptionsStore(e, t, r, n) {
6212
6236
  const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
6213
6237
  return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
6214
6238
  setActivePinia(r);
6215
- const _ = r._s.get(e);
6216
- return s[p].call(_, _);
6239
+ const v = r._s.get(e);
6240
+ return s[p].call(v, v);
6217
6241
  })), g), {}));
6218
6242
  }
6219
6243
  return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
@@ -6231,58 +6255,58 @@ function createSetupStore(e, t, r = {}, n, a) {
6231
6255
  const l = {
6232
6256
  deep: !0
6233
6257
  };
6234
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
6235
- u ? _ = R : u == !1 && !k._hotUpdating && (Array.isArray(_) ? _.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
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."));
6236
6260
  });
6237
- let u, c, g = markRaw([]), p = markRaw([]), _;
6238
- const v = n.state.value[e];
6239
- !s && !v && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6261
+ let u, c, g = markRaw([]), p = markRaw([]), v;
6262
+ const b = n.state.value[e];
6263
+ !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6240
6264
  const m = ref({});
6241
- function b(R) {
6265
+ function _(L) {
6242
6266
  let O;
6243
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof R == "function" ? (R(n.state.value[e]), O = {
6267
+ u = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof L == "function" ? (L(n.state.value[e]), O = {
6244
6268
  type: MutationType.patchFunction,
6245
6269
  storeId: e,
6246
- events: _
6247
- }) : (mergeReactiveObjects(n.state.value[e], R), O = {
6270
+ events: v
6271
+ }) : (mergeReactiveObjects(n.state.value[e], L), O = {
6248
6272
  type: MutationType.patchObject,
6249
- payload: R,
6273
+ payload: L,
6250
6274
  storeId: e,
6251
- events: _
6275
+ events: v
6252
6276
  }), nextTick().then(() => {
6253
6277
  u = !0;
6254
6278
  }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6255
6279
  }
6256
- const T = process.env.NODE_ENV !== "production" ? () => {
6280
+ const C = process.env.NODE_ENV !== "production" ? () => {
6257
6281
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6258
6282
  } : noop$1;
6259
6283
  function y() {
6260
6284
  o.stop(), g = [], p = [], n._s.delete(e);
6261
6285
  }
6262
- function C(R, O) {
6286
+ function T(L, O) {
6263
6287
  return function() {
6264
6288
  setActivePinia(n);
6265
6289
  const D = Array.from(arguments), $ = [], V = [];
6266
- function M(L) {
6267
- $.push(L);
6290
+ function A(N) {
6291
+ $.push(N);
6268
6292
  }
6269
- function A(L) {
6270
- V.push(L);
6293
+ function M(N) {
6294
+ V.push(N);
6271
6295
  }
6272
6296
  triggerSubscriptions(p, {
6273
6297
  args: D,
6274
- name: R,
6298
+ name: L,
6275
6299
  store: k,
6276
- after: M,
6277
- onError: A
6300
+ after: A,
6301
+ onError: M
6278
6302
  });
6279
6303
  let w;
6280
6304
  try {
6281
6305
  w = O.apply(this && this.$id === e ? this : k, D);
6282
- } catch (L) {
6283
- throw triggerSubscriptions(V, L), L;
6306
+ } catch (N) {
6307
+ throw triggerSubscriptions(V, N), N;
6284
6308
  }
6285
- return w instanceof Promise ? w.then((L) => (triggerSubscriptions($, L), L)).catch((L) => (triggerSubscriptions(V, L), Promise.reject(L))) : (triggerSubscriptions($, w), w);
6309
+ return w instanceof Promise ? w.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, w), w);
6286
6310
  };
6287
6311
  }
6288
6312
  const E = /* @__PURE__ */ markRaw({
@@ -6294,14 +6318,14 @@ function createSetupStore(e, t, r = {}, n, a) {
6294
6318
  _p: n,
6295
6319
  $id: e,
6296
6320
  $onAction: addSubscription.bind(null, p),
6297
- $patch: b,
6298
- $reset: T,
6299
- $subscribe(R, O = {}) {
6300
- const D = addSubscription(g, R, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6301
- (O.flush === "sync" ? c : u) && R({
6321
+ $patch: _,
6322
+ $reset: C,
6323
+ $subscribe(L, O = {}) {
6324
+ const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6325
+ (O.flush === "sync" ? c : u) && L({
6302
6326
  storeId: e,
6303
6327
  type: MutationType.direct,
6304
- events: _
6328
+ events: v
6305
6329
  }, V);
6306
6330
  }, assign$1({}, l, O)));
6307
6331
  return D;
@@ -6315,24 +6339,24 @@ function createSetupStore(e, t, r = {}, n, a) {
6315
6339
  I
6316
6340
  ));
6317
6341
  n._s.set(e, k);
6318
- const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
6319
- for (const R in F) {
6320
- const O = F[R];
6342
+ const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
6343
+ for (const L in R) {
6344
+ const O = R[L];
6321
6345
  if (isRef(O) && !isComputed(O) || isReactive(O))
6322
- process.env.NODE_ENV !== "production" && a ? set(m.value, R, toRef(F, R)) : s || (v && shouldHydrate(O) && (isRef(O) ? O.value = v[R] : mergeReactiveObjects(O, v[R])), n.state.value[e][R] = O), process.env.NODE_ENV !== "production" && E.state.push(R);
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);
6323
6347
  else if (typeof O == "function") {
6324
- const D = process.env.NODE_ENV !== "production" && a ? O : C(R, O);
6325
- F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = O), i.actions[R] = O;
6348
+ const D = process.env.NODE_ENV !== "production" && a ? O : T(L, O);
6349
+ R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
6326
6350
  } else
6327
- process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[R] = s ? r.getters[R] : O, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
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));
6328
6352
  }
6329
- if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
6353
+ if (assign$1(k, R), assign$1(toRaw(k), R), Object.defineProperty(k, "$state", {
6330
6354
  get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6331
- set: (R) => {
6355
+ set: (L) => {
6332
6356
  if (process.env.NODE_ENV !== "production" && a)
6333
6357
  throw new Error("cannot set hotState");
6334
- b((O) => {
6335
- assign$1(O, R);
6358
+ _((O) => {
6359
+ assign$1(O, L);
6336
6360
  });
6337
6361
  }
6338
6362
  }), process.env.NODE_ENV !== "production") {
@@ -6350,7 +6374,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6350
6374
  });
6351
6375
  for (const D in O._hmrPayload.actions) {
6352
6376
  const $ = O[D];
6353
- set(k, D, C(D, $));
6377
+ set(k, D, T(D, $));
6354
6378
  }
6355
6379
  for (const D in O._hmrPayload.getters) {
6356
6380
  const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
@@ -6362,7 +6386,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6362
6386
  D in O._hmrPayload.actions || del(k, D);
6363
6387
  }), k._hmrPayload = O._hmrPayload, k._getters = O._getters, k._hotUpdating = !1;
6364
6388
  });
6365
- const R = {
6389
+ const L = {
6366
6390
  writable: !0,
6367
6391
  configurable: !0,
6368
6392
  enumerable: !1
@@ -6370,13 +6394,13 @@ function createSetupStore(e, t, r = {}, n, a) {
6370
6394
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6371
6395
  Object.defineProperty(k, O, {
6372
6396
  value: k[O],
6373
- ...R
6397
+ ...L
6374
6398
  });
6375
6399
  });
6376
6400
  }
6377
- return n._p.forEach((R) => {
6401
+ return n._p.forEach((L) => {
6378
6402
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6379
- const O = o.run(() => R({
6403
+ const O = o.run(() => L({
6380
6404
  store: k,
6381
6405
  app: n._a,
6382
6406
  pinia: n,
@@ -6384,7 +6408,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6384
6408
  }));
6385
6409
  Object.keys(O || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, O);
6386
6410
  } else
6387
- assign$1(k, o.run(() => R({
6411
+ assign$1(k, o.run(() => L({
6388
6412
  store: k,
6389
6413
  app: n._a,
6390
6414
  pinia: n,
@@ -6392,7 +6416,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6392
6416
  })));
6393
6417
  }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6394
6418
  state: () => new MyClass()
6395
- Found in store "${k.$id}".`), v && s && r.hydrate && r.hydrate(k.$state, v), u = !0, c = !0, k;
6419
+ Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
6396
6420
  }
6397
6421
  function defineStore(e, t, r) {
6398
6422
  let n, a;
@@ -6858,21 +6882,21 @@ const getProps$w = () => ({
6858
6882
  break;
6859
6883
  }
6860
6884
  };
6861
- function _(y) {
6885
+ function v(y) {
6862
6886
  p(y);
6863
6887
  }
6864
- function v(y) {
6888
+ function b(y) {
6865
6889
  p(y), g();
6866
6890
  }
6867
6891
  function m(y) {
6868
- y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = b(document.documentElement, "mousemove", _), l = b(document.documentElement, "mouseup", v));
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));
6869
6893
  }
6870
- function b(y, C, E) {
6871
- return y.addEventListener(C, E), {
6872
- remove: () => y.removeEventListener(C, E)
6894
+ function _(y, T, E) {
6895
+ return y.addEventListener(T, E), {
6896
+ remove: () => y.removeEventListener(T, E)
6873
6897
  };
6874
6898
  }
6875
- function T(y) {
6899
+ function C(y) {
6876
6900
  y.stopPropagation(), y.preventDefault();
6877
6901
  }
6878
6902
  return () => {
@@ -6882,7 +6906,7 @@ const getProps$w = () => ({
6882
6906
  style: u.value
6883
6907
  }, [createVNode("div", {
6884
6908
  class: "kg-resizable-handle",
6885
- onClick: T,
6909
+ onClick: C,
6886
6910
  onMousedown: m
6887
6911
  }, [createVNode("div", {
6888
6912
  class: "kg-resizable-handle-line"
@@ -7097,38 +7121,38 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7097
7121
  const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
7098
7122
  useKgVar(s, !0, a.store.getFormLevel(a.formID) + 1);
7099
7123
  const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
7100
- var v;
7101
- return ((v = u == null ? void 0 : u.value) == null ? void 0 : v.mult_flg) === 1;
7124
+ var b;
7125
+ return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
7102
7126
  }), g = computed(() => {
7103
- var v, m;
7104
- return (m = (v = u == null ? void 0 : u.value) == null ? void 0 : v.ret_fld) != null ? m : "";
7127
+ var b, m;
7128
+ return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
7105
7129
  });
7106
- l.onRowDoubleClick(() => _());
7130
+ l.onRowDoubleClick(() => v());
7107
7131
  function p() {
7108
7132
  r("update:visible", !1);
7109
7133
  }
7110
- function _() {
7111
- var v, m, b, T, y, C, E;
7134
+ function v() {
7135
+ var b, m, _, C, y, T, E;
7112
7136
  if (c.value) {
7113
- const I = (m = (v = l.selectedRows) == null ? void 0 : v.value) != null ? m : [], k = (b = I.map((F) => F[g.value])) != null ? b : [];
7137
+ const I = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = I.map((R) => R[g.value])) != null ? _ : [];
7114
7138
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7115
7139
  } else {
7116
- const I = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
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 : "";
7117
7141
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7118
7142
  }
7119
7143
  }
7120
7144
  return () => {
7121
- var v, m;
7145
+ var b, m;
7122
7146
  return createVNode(KgModal, {
7123
7147
  visible: e.visible,
7124
7148
  title: a.t(o).value,
7125
7149
  destroyOnClose: !0,
7126
7150
  okButtonProps: {
7127
- disabled: ((m = (v = l.selectedRows.value) == null ? void 0 : v.length) != null ? m : 0) === 0
7151
+ disabled: ((m = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) === 0
7128
7152
  },
7129
7153
  wrapClassName: "kg-form-item-addon-lookup-modal",
7130
7154
  onCancel: p,
7131
- onOk: _
7155
+ onOk: v
7132
7156
  }, {
7133
7157
  default: () => [createVNode(KgVar, null, null)]
7134
7158
  });
@@ -7187,40 +7211,40 @@ function _useServices$2(e) {
7187
7211
  return KgUtil.tryParseJSON((s = n.value) == null ? void 0 : s.ctrl_prop);
7188
7212
  });
7189
7213
  function o(s) {
7190
- var u, c, g, p, _;
7214
+ var u, c, g, p, v;
7191
7215
  if (!s)
7192
7216
  return [];
7193
7217
  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";
7194
7218
  switch (l) {
7195
7219
  case KG_POSSIBILITY_DATA_TYPE.STRING:
7196
- s.forEach((v) => {
7197
- v[i] = String(v[i]);
7220
+ s.forEach((b) => {
7221
+ b[i] = String(b[i]);
7198
7222
  });
7199
7223
  break;
7200
7224
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
7201
- s.forEach((v) => {
7202
- let m = Number(v[i]);
7203
- Number.isNaN(m) && (m = v[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${v[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
7225
+ s.forEach((b) => {
7226
+ let m = Number(b[i]);
7227
+ Number.isNaN(m) && (m = b[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${b[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
7204
7228
  frm_id: t.formID,
7205
7229
  var_nam: e.kgVarName,
7206
7230
  VarPossibility: r.value
7207
- })), v[i] = m;
7231
+ })), b[i] = m;
7208
7232
  });
7209
7233
  break;
7210
7234
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
7211
- s.forEach((v) => {
7235
+ s.forEach((b) => {
7212
7236
  let m;
7213
- String(v[i]).toLowerCase() === "true" ? m = !0 : String(v[i]).toLowerCase() === "false" ? m = !1 : (m = v[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${v[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
7237
+ String(b[i]).toLowerCase() === "true" ? m = !0 : String(b[i]).toLowerCase() === "false" ? m = !1 : (m = b[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${b[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
7214
7238
  frm_id: t.formID,
7215
7239
  var_nam: e.kgVarName,
7216
7240
  VarPossibility: r.value
7217
- })), v[i] = m;
7241
+ })), b[i] = m;
7218
7242
  });
7219
7243
  break;
7220
7244
  }
7221
- return (_ = a.value) != null && _.excludeValues ? s.filter((v) => {
7245
+ return (v = a.value) != null && v.excludeValues ? s.filter((b) => {
7222
7246
  var m;
7223
- return !((m = a.value.excludeValues) != null && m.includes(v[i]));
7247
+ return !((m = a.value.excludeValues) != null && m.includes(b[i]));
7224
7248
  }) : s;
7225
7249
  }
7226
7250
  return {
@@ -7240,9 +7264,9 @@ const KgFormItemCheckboxGroup = defineComponent({
7240
7264
  }) {
7241
7265
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
7242
7266
  transformDatas: i
7243
- } = _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(() => {
7244
- var C;
7245
- let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
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);
7246
7270
  return y = mapValues(y, (E) => {
7247
7271
  if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
7248
7272
  const I = E.slice(1, -1);
@@ -7251,30 +7275,30 @@ const KgFormItemCheckboxGroup = defineComponent({
7251
7275
  }
7252
7276
  return E;
7253
7277
  }), y;
7254
- }), v = computed(() => {
7278
+ }), b = computed(() => {
7255
7279
  var y;
7256
7280
  return KgUtil.tryParseJSON((y = p.value) == null ? void 0 : y.ctrl_prop);
7257
7281
  });
7258
- watch(_, () => {
7282
+ watch(v, () => {
7259
7283
  var y;
7260
7284
  (y = g.value) != null && y.id && m();
7261
7285
  }, {
7262
7286
  immediate: !0
7263
- }), watch([() => e.value, c], ([y, C]) => {
7287
+ }), watch([() => e.value, c], ([y, T]) => {
7264
7288
  var I, k;
7265
7289
  const E = get(y, "length", 0);
7266
- if (E > 0 && C.length > 0) {
7267
- const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y, C == null ? void 0 : C.map((O) => O[F]));
7268
- if (R.length < E) {
7269
- r("update:value", R);
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]));
7292
+ if (L.length < E) {
7293
+ r("update:value", L);
7270
7294
  return;
7271
7295
  }
7272
7296
  }
7273
7297
  switch (!0) {
7274
- case (E > 0 && E === C.length):
7298
+ case (E > 0 && E === T.length):
7275
7299
  l.value = !0, u.value = !1;
7276
7300
  break;
7277
- case (E > 0 && E !== C.length):
7301
+ case (E > 0 && E !== T.length):
7278
7302
  l.value = !1, u.value = !0;
7279
7303
  break;
7280
7304
  default:
@@ -7285,8 +7309,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7285
7309
  immediate: !0
7286
7310
  });
7287
7311
  async function m() {
7288
- var F, R, O, D, $, V, M, A, w;
7289
- const y = (F = g.value) == null ? void 0 : F.cmd, C = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (M = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? 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 : "";
7290
7314
  if (!y || !E || !I) {
7291
7315
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7292
7316
  frm_id: a.formID,
@@ -7299,11 +7323,11 @@ const KgFormItemCheckboxGroup = defineComponent({
7299
7323
  }
7300
7324
  let k = null;
7301
7325
  try {
7302
- k = await ((A = httpClient()) == null ? void 0 : A.request({
7326
+ k = await ((M = httpClient()) == null ? void 0 : M.request({
7303
7327
  url: y,
7304
- method: C,
7305
- params: _.value,
7306
- data: _.value
7328
+ method: T,
7329
+ params: v.value,
7330
+ data: v.value
7307
7331
  }));
7308
7332
  } catch {
7309
7333
  }
@@ -7319,30 +7343,30 @@ const KgFormItemCheckboxGroup = defineComponent({
7319
7343
  break;
7320
7344
  }
7321
7345
  if (c.value.length > 0) {
7322
- const L = c.value[0];
7323
- (!(E in L) || !(I in L)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7346
+ 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.", {
7324
7348
  frm_id: a.formID,
7325
7349
  var_nam: e.kgVarName,
7326
7350
  cmd: y,
7327
7351
  val_clm: E,
7328
7352
  lbl_clm: I,
7329
- \u6240\u6709\u5217: Object.keys(L)
7353
+ \u6240\u6709\u5217: Object.keys(N)
7330
7354
  });
7331
7355
  }
7332
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((L) => L[E]), e.value));
7356
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((N) => N[E]), e.value));
7333
7357
  }
7334
- function b(y) {
7335
- var C, E, I;
7336
- y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
7337
- var F, R;
7338
- return k[(R = (F = g.value) == null ? void 0 : F.val_clm) != null ? R : ""];
7339
- })) != null ? E : []) : T([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
7358
+ function _(y) {
7359
+ var T, E, I;
7360
+ y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
7361
+ var R, L;
7362
+ 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);
7340
7364
  }
7341
- function T(y) {
7365
+ function C(y) {
7342
7366
  r("update:value", y), r("kgChange", y);
7343
7367
  }
7344
7368
  return () => {
7345
- let y, C;
7369
+ let y, T;
7346
7370
  return createVNode("div", {
7347
7371
  class: "kg-form-item-checkbox-group"
7348
7372
  }, [createVNode(Form.ItemRest, null, {
@@ -7350,35 +7374,36 @@ const KgFormItemCheckboxGroup = defineComponent({
7350
7374
  checked: l.value,
7351
7375
  "onUpdate:checked": (E) => l.value = E,
7352
7376
  indeterminate: u.value,
7353
- onChange: b
7377
+ onChange: _
7354
7378
  }, _isSlot$8(y = n.t("kg.selectAll")) ? y : {
7355
7379
  default: () => [y]
7356
7380
  })]
7357
7381
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
7358
7382
  value: e.value,
7359
- "onUpdate:value": T
7383
+ "onUpdate:value": C
7360
7384
  }, {
7361
7385
  default: () => [createVNode(Row, {
7362
7386
  gutter: 12
7363
- }, _isSlot$8(C = c.value.map((E) => {
7387
+ }, _isSlot$8(T = c.value.map((E) => {
7364
7388
  var I, k;
7365
7389
  return createVNode(Col, {
7366
- span: (k = (I = v.value) == null ? void 0 : I.span) != null ? k : 24
7390
+ span: (k = (I = b.value) == null ? void 0 : I.span) != null ? k : 24
7367
7391
  }, {
7368
7392
  default: () => {
7369
- var F, R;
7393
+ var R, L, O, D;
7370
7394
  return [createVNode(Checkbox, {
7371
- value: E[(R = (F = g.value) == null ? void 0 : F.val_clm) != null ? R : ""]
7395
+ value: E[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""],
7396
+ "kg-value": E[(D = (O = g.value) == null ? void 0 : O.val_clm) != null ? D : ""]
7372
7397
  }, {
7373
7398
  default: () => {
7374
- var O, D;
7375
- return [E[(D = (O = g.value) == null ? void 0 : O.lbl_clm) != null ? D : ""]];
7399
+ var $, V;
7400
+ return [E[(V = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? V : ""]];
7376
7401
  }
7377
7402
  })];
7378
7403
  }
7379
7404
  });
7380
- })) ? C : {
7381
- default: () => [C]
7405
+ })) ? T : {
7406
+ default: () => [T]
7382
7407
  })]
7383
7408
  })]);
7384
7409
  };
@@ -7511,20 +7536,20 @@ const KgFormItemSelect = defineComponent({
7511
7536
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
7512
7537
  transformDatas: o
7513
7538
  } = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
7514
- var _;
7515
- let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
7516
- return p = mapValues(p, (v) => {
7517
- var m, b;
7518
- if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
7519
- let T = v.slice(1, -1), y = "";
7520
- if (T.includes(".")) {
7521
- const C = T.split(".");
7522
- T = C[0], y = C[1];
7539
+ var v;
7540
+ let p = KgVarUtil.parseCommandParameter((v = i.value) == null ? void 0 : v.cmd_prm);
7541
+ return p = mapValues(p, (b) => {
7542
+ var m, _;
7543
+ 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];
7523
7548
  }
7524
- if (a.value && T in a.value)
7525
- return y ? (b = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? b : void 0 : a.value[T];
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];
7526
7551
  }
7527
- return v;
7552
+ return b;
7528
7553
  }), p;
7529
7554
  });
7530
7555
  watch(l, () => {
@@ -7534,64 +7559,64 @@ const KgFormItemSelect = defineComponent({
7534
7559
  immediate: !0
7535
7560
  });
7536
7561
  async function u() {
7537
- var T, y, C, E, I, k, F, R;
7538
- const p = (T = i.value) == null ? void 0 : T.cmd, _ = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", v = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7539
- if (!p || !v || !m) {
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 : "";
7564
+ if (!p || !b || !m) {
7540
7565
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7541
7566
  frm_id: n.formID,
7542
7567
  var_nam: e.kgVarName,
7543
7568
  cmd: p,
7544
- val_clm: v,
7569
+ val_clm: b,
7545
7570
  lbl_clm: m
7546
7571
  });
7547
7572
  return;
7548
7573
  }
7549
- let b = null;
7574
+ let _ = null;
7550
7575
  try {
7551
- b = await ((R = httpClient()) == null ? void 0 : R.request({
7576
+ _ = await ((L = httpClient()) == null ? void 0 : L.request({
7552
7577
  url: p,
7553
- method: _,
7578
+ method: v,
7554
7579
  params: l.value
7555
7580
  }));
7556
7581
  } catch {
7557
7582
  }
7558
- if (!isObjectLike(b))
7583
+ if (!isObjectLike(_))
7559
7584
  s.value = [];
7560
7585
  else
7561
7586
  switch (!0) {
7562
- case isArrayLike(b):
7563
- s.value = o(b);
7587
+ case isArrayLike(_):
7588
+ s.value = o(_);
7564
7589
  break;
7565
- case (b && "total" in b && "records" in b):
7566
- s.value = o(b.records);
7590
+ case (_ && "total" in _ && "records" in _):
7591
+ s.value = o(_.records);
7567
7592
  break;
7568
7593
  }
7569
7594
  if (s.value.length > 0) {
7570
7595
  const O = s.value[0];
7571
- (!(v in O) || !(m in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7596
+ (!(b in O) || !(m in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7572
7597
  frm_id: n.formID,
7573
7598
  var_nam: e.kgVarName,
7574
7599
  cmd: p,
7575
- val_clm: v,
7600
+ val_clm: b,
7576
7601
  lbl_clm: m,
7577
7602
  \u6240\u6709\u5217: Object.keys(O)
7578
7603
  });
7579
7604
  }
7580
- r("kgSelectDatasChange", s.value), s.value.find((O) => O[v] === e.value) || r("update:value", void 0);
7605
+ r("kgSelectDatasChange", s.value), s.value.find((O) => O[b] === e.value) || r("update:value", void 0);
7581
7606
  }
7582
7607
  function c(p) {
7583
- var v;
7584
- const _ = (v = toRaw(s.value.find((m) => {
7585
- var b, T;
7586
- return m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""] === p;
7587
- }))) != null ? v : null;
7588
- r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
7608
+ 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;
7612
+ }))) != null ? b : null;
7613
+ r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
7589
7614
  }
7590
7615
  function g(p) {
7591
7616
  r("update:value", p), r("kgChange", p);
7592
7617
  }
7593
7618
  return () => {
7594
- var p, _, v;
7619
+ var p, v, b;
7595
7620
  return createVNode(Select, {
7596
7621
  value: e.value,
7597
7622
  "onUpdate:value": g,
@@ -7604,14 +7629,14 @@ const KgFormItemSelect = defineComponent({
7604
7629
  dropdownClassName: "kg-form-item-select-dropdown",
7605
7630
  style: "width: 100%",
7606
7631
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
7607
- "kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
7608
- "kg-lbl-clm": (v = i.value) == null ? void 0 : v.lbl_clm
7632
+ "kg-val-clm": (v = i.value) == null ? void 0 : v.val_clm,
7633
+ "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7609
7634
  }, {
7610
7635
  default: () => s.value.map((m) => {
7611
- var b, T, y, C;
7636
+ var _, C, y, T;
7612
7637
  return createVNode(Select.Option, {
7613
- "kg-value": m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""],
7614
- value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
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 : ""]
7615
7640
  }, {
7616
7641
  default: () => {
7617
7642
  var E, I;
@@ -7648,7 +7673,7 @@ function _useRules(e) {
7648
7673
  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));
7649
7674
  return {
7650
7675
  rules: computed(() => {
7651
- var l, u, c, g, p, _, v, m;
7676
+ var l, u, c, g, p, v, b, m;
7652
7677
  let i = [];
7653
7678
  switch (e.kgContext) {
7654
7679
  case KG_FORM_CONTEXT.SEARCH:
@@ -7686,13 +7711,13 @@ function _useRules(e) {
7686
7711
  }
7687
7712
  break;
7688
7713
  }
7689
- switch ((_ = a.value) == null ? void 0 : _.data_type) {
7714
+ switch ((v = a.value) == null ? void 0 : v.data_type) {
7690
7715
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7691
- const b = (v = a.value) == null ? void 0 : v.min;
7692
- isNil(b) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7693
- validator: (T, y) => Number(y) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
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()
7694
7719
  }) : i.push({
7695
- validator: (T, y) => Number(y) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
7720
+ validator: (C, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
7696
7721
  }));
7697
7722
  break;
7698
7723
  }
@@ -7710,9 +7735,9 @@ const KgFormItem = defineComponent({
7710
7735
  }) {
7711
7736
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
7712
7737
  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)), {
7713
- rules: _
7714
- } = _useRules(e), v = computed(() => {
7715
- var V, M, A, w, L;
7738
+ rules: v
7739
+ } = _useRules(e), b = computed(() => {
7740
+ var V, A, M, w, N;
7716
7741
  if (n.isRetrievingVar.value)
7717
7742
  return !0;
7718
7743
  let $ = !1;
@@ -7726,76 +7751,76 @@ const KgFormItem = defineComponent({
7726
7751
  case KG_FORM_CONTEXT.SUBMIT:
7727
7752
  switch (!0) {
7728
7753
  case n.isCreating.value:
7729
- $ = ((M = p.value) == null ? void 0 : M.crt_ena_flg) === 0;
7754
+ $ = ((A = p.value) == null ? void 0 : A.crt_ena_flg) === 0;
7730
7755
  break;
7731
7756
  case n.isUpdating.value:
7732
- $ = ((A = p.value) == null ? void 0 : A.upt_ena_flg) === 0;
7757
+ $ = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
7733
7758
  break;
7734
7759
  case n.isCopying.value:
7735
7760
  $ = ((w = p.value) == null ? void 0 : w.cpy_ena_flg) === 0;
7736
7761
  break;
7737
7762
  case n.isDeleting.value:
7738
- $ = ((L = p.value) == null ? void 0 : L.del_ena_flg) === 0;
7763
+ $ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
7739
7764
  break;
7740
7765
  }
7741
7766
  break;
7742
7767
  }
7743
7768
  return $;
7744
7769
  }), m = computed(() => {
7745
- var V, M, A, w;
7770
+ var V, A, M, w;
7746
7771
  let $ = " ";
7747
7772
  if (e.kgPlaceholder)
7748
7773
  $ = e.kgPlaceholder;
7749
7774
  else
7750
7775
  switch (e.kgContext) {
7751
7776
  case KG_FORM_CONTEXT.SEARCH:
7752
- $ = n.t((M = (V = g.value) == null ? void 0 : V.placeholder) != null ? M : " ").value;
7777
+ $ = n.t((A = (V = g.value) == null ? void 0 : V.placeholder) != null ? A : " ").value;
7753
7778
  break;
7754
7779
  case KG_FORM_CONTEXT.SUBMIT:
7755
- $ = n.t((w = (A = p.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
7780
+ $ = n.t((w = (M = p.value) == null ? void 0 : M.placeholder) != null ? w : " ").value;
7756
7781
  break;
7757
7782
  }
7758
7783
  return $;
7759
- }), b = computed(() => {
7760
- var V, M, A, w, L, x, G, N, B, W;
7784
+ }), _ = computed(() => {
7785
+ var V, A, M, w, N, F, U, G, x, H;
7761
7786
  let $ = 6;
7762
7787
  if (e.kgSpan !== void 0)
7763
7788
  $ = e.kgSpan;
7764
7789
  else
7765
7790
  switch (e.kgContext) {
7766
7791
  case KG_FORM_CONTEXT.SEARCH:
7767
- $ = (M = (V = g.value) == null ? void 0 : V.width) != null ? M : 6;
7792
+ $ = (A = (V = g.value) == null ? void 0 : V.width) != null ? A : 6;
7768
7793
  break;
7769
7794
  case KG_FORM_CONTEXT.SUBMIT:
7770
7795
  switch (!0) {
7771
7796
  case n.isCreating.value:
7772
- $ = (w = (A = p.value) == null ? void 0 : A.crt_width) != null ? w : 6;
7797
+ $ = (w = (M = p.value) == null ? void 0 : M.crt_width) != null ? w : 6;
7773
7798
  break;
7774
7799
  case n.isUpdating.value:
7775
- $ = (x = (L = p.value) == null ? void 0 : L.upt_width) != null ? x : 6;
7800
+ $ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
7776
7801
  break;
7777
7802
  case n.isCopying.value:
7778
- $ = (N = (G = p.value) == null ? void 0 : G.cpy_width) != null ? N : 6;
7803
+ $ = (G = (U = p.value) == null ? void 0 : U.cpy_width) != null ? G : 6;
7779
7804
  break;
7780
7805
  case n.isDeleting.value:
7781
- $ = (W = (B = p.value) == null ? void 0 : B.del_width) != null ? W : 6;
7806
+ $ = (H = (x = p.value) == null ? void 0 : x.del_width) != null ? H : 6;
7782
7807
  break;
7783
7808
  }
7784
7809
  }
7785
7810
  return Math.min(24, Math.max(1, $));
7786
- }), T = computed(() => {
7787
- var A, w;
7811
+ }), C = computed(() => {
7812
+ var M, w;
7788
7813
  const $ = get(k.value, "$el.parentElement");
7789
- if ($ && !((A = $.classList) != null && A.contains("ant-row")))
7814
+ if ($ && !((M = $.classList) != null && M.contains("ant-row")))
7790
7815
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7791
7816
  let V = {};
7792
- const M = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
7793
- return Number.isNaN(M) || (V = {
7794
- paddingLeft: `${M}px !important`,
7795
- paddingRight: `${M}px !important`
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`
7796
7821
  }), V;
7797
7822
  }), y = computed(() => {
7798
- var V, M, A, w;
7823
+ var V, A, M, w;
7799
7824
  let $ = "kg-form-item";
7800
7825
  switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7801
7826
  case KG_FORM_CONTEXT.SEARCH:
@@ -7807,8 +7832,8 @@ const KgFormItem = defineComponent({
7807
7832
  break;
7808
7833
  case KG_FORM_CONTEXT.SUBMIT:
7809
7834
  switch (!0) {
7810
- case (s.value && ((M = p.value) == null ? void 0 : M.crt_vis_flg) === 0):
7811
- case (i.value && ((A = p.value) == null ? void 0 : A.upt_vis_flg) === 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):
7812
7837
  case (l.value && ((w = p.value) == null ? void 0 : w.cpy_vis_flg) === 0):
7813
7838
  $ += " kg-form-item--invisible";
7814
7839
  break;
@@ -7816,16 +7841,16 @@ const KgFormItem = defineComponent({
7816
7841
  break;
7817
7842
  }
7818
7843
  return $;
7819
- }), C = computed(() => {
7844
+ }), T = computed(() => {
7820
7845
  var V;
7821
7846
  const $ = {
7822
7847
  ...e,
7823
7848
  value: (V = a.value) == null ? void 0 : V[e.kgVarName],
7824
- "onUpdate:value": (M) => {
7825
- a.value && (a.value[e.kgVarName] = M);
7849
+ "onUpdate:value": (A) => {
7850
+ a.value && (a.value[e.kgVarName] = A);
7826
7851
  },
7827
7852
  kgPlaceholder: m.value,
7828
- kgDisabled: v.value,
7853
+ kgDisabled: b.value,
7829
7854
  id: I.value
7830
7855
  };
7831
7856
  switch (E.value) {
@@ -7847,15 +7872,15 @@ const KgFormItem = defineComponent({
7847
7872
  var $;
7848
7873
  return ($ = c.value) == null ? void 0 : $.ctrl_typ;
7849
7874
  }), I = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7850
- function F($, V) {
7851
- var M;
7852
- a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (M = o.value) == null || M.validate([e.kgVarName]);
7875
+ function R($, V) {
7876
+ var A;
7877
+ a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (A = o.value) == null || A.validate([e.kgVarName]);
7853
7878
  }
7854
- function R() {
7879
+ function L() {
7855
7880
  if (t.control) {
7856
7881
  const $ = {
7857
7882
  varName: e.kgVarName,
7858
- props: C,
7883
+ props: T,
7859
7884
  model: a,
7860
7885
  varConfig: c,
7861
7886
  varProfileDetail: g,
@@ -7865,27 +7890,27 @@ const KgFormItem = defineComponent({
7865
7890
  } else
7866
7891
  switch (E.value) {
7867
7892
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7868
- return createVNode(KgFormItemInputNumber, C.value, null);
7893
+ return createVNode(KgFormItemInputNumber, T.value, null);
7869
7894
  case KG_FORM_ITEM_TYPE.SELECT:
7870
- return createVNode(KgFormItemSelect, C.value, null);
7895
+ return createVNode(KgFormItemSelect, T.value, null);
7871
7896
  case KG_FORM_ITEM_TYPE.SWITCH:
7872
7897
  switch (e.kgContext) {
7873
7898
  case KG_FORM_CONTEXT.SEARCH:
7874
- return createVNode(KgFormItemSelect, C.value, null);
7899
+ return createVNode(KgFormItemSelect, T.value, null);
7875
7900
  case KG_FORM_CONTEXT.SUBMIT:
7876
7901
  default:
7877
- return createVNode(KgFormItemSwitch, C.value, null);
7902
+ return createVNode(KgFormItemSwitch, T.value, null);
7878
7903
  }
7879
7904
  case KG_FORM_ITEM_TYPE.CHECKBOX:
7880
- return createVNode(KgFormItemCheckbox, C.value, null);
7905
+ return createVNode(KgFormItemCheckbox, T.value, null);
7881
7906
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
7882
- return createVNode(KgFormItemCheckboxGroup, C.value, null);
7907
+ return createVNode(KgFormItemCheckboxGroup, T.value, null);
7883
7908
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7884
- return createVNode(KgFormItemDate, C.value, null);
7909
+ return createVNode(KgFormItemDate, T.value, null);
7885
7910
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7886
- return createVNode(KgFormItemDate, C.value, null);
7911
+ return createVNode(KgFormItemDate, T.value, null);
7887
7912
  default:
7888
- return createVNode(KgFormItemInput, C.value, null);
7913
+ return createVNode(KgFormItemInput, T.value, null);
7889
7914
  }
7890
7915
  }
7891
7916
  function O() {
@@ -7897,8 +7922,8 @@ const KgFormItem = defineComponent({
7897
7922
  var $;
7898
7923
  return !u.value || !(($ = u.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7899
7924
  default: () => [createVNode(KgFormItemAddonLookup, {
7900
- kgDisabled: v.value,
7901
- onKgOk: F,
7925
+ kgDisabled: b.value,
7926
+ onKgOk: R,
7902
7927
  kgLookupID: u.value.lkp_id
7903
7928
  }, null)]
7904
7929
  });
@@ -7911,17 +7936,17 @@ const KgFormItem = defineComponent({
7911
7936
  "kg-var-nam": e.kgVarName,
7912
7937
  "kg-lkp-id": ($ = u.value) == null ? void 0 : $.lkp_id,
7913
7938
  "kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
7914
- span: b.value,
7939
+ span: _.value,
7915
7940
  class: y.value,
7916
- style: T.value
7941
+ style: C.value
7917
7942
  }, {
7918
7943
  default: () => [createVNode(Form.Item, {
7919
7944
  name: e.kgVarName,
7920
- rules: _.value,
7945
+ rules: v.value,
7921
7946
  validateFirst: !0,
7922
7947
  htmlFor: I.value
7923
7948
  }, {
7924
- default: () => createVNode(Fragment, null, [R(), D()]),
7949
+ default: () => createVNode(Fragment, null, [L(), D()]),
7925
7950
  label: () => O()
7926
7951
  })]
7927
7952
  });
@@ -8109,15 +8134,15 @@ function createStore(e, t, r) {
8109
8134
  _assignPluginFnProp: function(l, u) {
8110
8135
  var c = this[u];
8111
8136
  this[u] = function() {
8112
- var p = slice(arguments, 0), _ = this;
8113
- function v() {
8137
+ var p = slice(arguments, 0), v = this;
8138
+ function b() {
8114
8139
  if (!!c)
8115
- return each$6(arguments, function(b, T) {
8116
- p[T] = b;
8117
- }), c.apply(_, p);
8140
+ return each$6(arguments, function(_, C) {
8141
+ p[C] = _;
8142
+ }), c.apply(v, p);
8118
8143
  }
8119
- var m = [v].concat(p);
8120
- return l.apply(_, m);
8144
+ var m = [b].concat(p);
8145
+ return l.apply(v, m);
8121
8146
  };
8122
8147
  },
8123
8148
  _serialize: function(l) {
@@ -8154,10 +8179,10 @@ function createStore(e, t, r) {
8154
8179
  var g = l.call(this);
8155
8180
  if (!isObject(g))
8156
8181
  throw new Error("Plugins must return an object of function properties");
8157
- each$6(g, function(p, _) {
8182
+ each$6(g, function(p, v) {
8158
8183
  if (!isFunction(p))
8159
- throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
8160
- u._assignPluginFnProp(p, _);
8184
+ throw new Error("Bad plugin property: " + v + " from plugin " + l.name + ". Plugins should only return functions.");
8185
+ u._assignPluginFnProp(p, v);
8161
8186
  });
8162
8187
  }
8163
8188
  },
@@ -8619,6 +8644,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8619
8644
  varVariableConfigMap: /* @__PURE__ */ new Map(),
8620
8645
  varVariableInputMap: /* @__PURE__ */ new Map(),
8621
8646
  varButtonMap: /* @__PURE__ */ new Map(),
8647
+ varButtonConfigMap: /* @__PURE__ */ new Map(),
8622
8648
  varSubmitConfigMap: /* @__PURE__ */ new Map(),
8623
8649
  varSubmitFieldMap: /* @__PURE__ */ new Map(),
8624
8650
  varProfileConfigMap: /* @__PURE__ */ new Map(),
@@ -8768,6 +8794,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8768
8794
  return t ? (r = e.varButtonMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
8769
8795
  };
8770
8796
  },
8797
+ getVarButtonConfig(e) {
8798
+ return (t) => {
8799
+ var r;
8800
+ return t ? (r = e.varButtonConfigMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
8801
+ };
8802
+ },
8771
8803
  getVarSubmitConfig(e) {
8772
8804
  return (t) => {
8773
8805
  var r;
@@ -9109,19 +9141,20 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9109
9141
  varVariableInputs: c,
9110
9142
  varPossibilities: g,
9111
9143
  varButtons: p,
9112
- varSubmitConfig: _,
9113
- varSubmitFields: v,
9114
- varProfile: m,
9115
- varProfileConfig: b,
9116
- varGrid: T,
9117
- varGridConfig: y
9144
+ varButtonConfig: v,
9145
+ varSubmitConfig: b,
9146
+ varSubmitFields: m,
9147
+ varProfile: _,
9148
+ varProfileConfig: C,
9149
+ varGrid: y,
9150
+ varGridConfig: T
9118
9151
  } = await GetAll({ params: { frm_id: e } });
9119
- 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.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(b != null ? b : null)), this.varProfileMap.set(e, {
9120
- varProfile: m != null ? m : null,
9121
- currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9122
- }), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
9123
- varGrid: transformVarGridDTO(T),
9124
- currentVarGridMasterID: (s = (o = (a = T == null ? void 0 : T.varGridMasters) == null ? void 0 : a.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
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, {
9156
+ varGrid: transformVarGridDTO(y),
9157
+ 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
9125
9158
  }), this.emit(e, "ready");
9126
9159
  } catch (i) {
9127
9160
  throw i;
@@ -9233,6 +9266,24 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9233
9266
  },
9234
9267
  { immediate: !0 }
9235
9268
  );
9269
+ },
9270
+ patchVarSubmitField(e, t, r) {
9271
+ if (!e || !t)
9272
+ return;
9273
+ const n = watch(
9274
+ () => this.getVarSubmitField(e, t),
9275
+ (a) => {
9276
+ a && setTimeout(() => {
9277
+ var s;
9278
+ n(), Object.entries(r).forEach(([i, l]) => {
9279
+ i in a && (a[i] = l);
9280
+ });
9281
+ const o = [...(s = this.varSubmitFieldMap.get(e)) != null ? s : []];
9282
+ o.splice(o.indexOf(a), 1, { ...a }), this.varSubmitFieldMap.set(e, o);
9283
+ });
9284
+ },
9285
+ { immediate: !0 }
9286
+ );
9236
9287
  }
9237
9288
  }
9238
9289
  }).bind(null, pinia())), store$6);
@@ -9252,12 +9303,12 @@ function useKgVar(e, t, r = 0) {
9252
9303
  i.leave(s);
9253
9304
  }));
9254
9305
  const l = ($) => computed(() => {
9255
- var V, M, A;
9256
- return (A = (M = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? M : $) != null ? A : "";
9257
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = 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(() => {
9258
9309
  var $, V;
9259
- return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9260
- }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
9310
+ return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9311
+ }), 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));
9261
9312
  return {
9262
9313
  formID: s,
9263
9314
  store: i,
@@ -9265,18 +9316,18 @@ function useKgVar(e, t, r = 0) {
9265
9316
  isRetrievingVarProfileMaster: c,
9266
9317
  isRetrievingVarGridMaster: g,
9267
9318
  isCreating: p,
9268
- isUpdating: _,
9269
- isCopying: v,
9319
+ isUpdating: v,
9320
+ isCopying: b,
9270
9321
  isDeleting: m,
9271
- isOtherRequesting: b,
9272
- varButtons: T,
9322
+ isOtherRequesting: _,
9323
+ varButtons: C,
9273
9324
  varProfileMasters: y,
9274
- currentVarProfileMaster: C,
9325
+ currentVarProfileMaster: T,
9275
9326
  currentVarProfileMasterID: E,
9276
9327
  currentVarProfileDetails: I,
9277
9328
  varGridConfig: k,
9278
- varGridMasters: F,
9279
- currentVarGridMaster: R,
9329
+ varGridMasters: R,
9330
+ currentVarGridMaster: L,
9280
9331
  systemVarGridDetails: O,
9281
9332
  currentVarGridDetails: D,
9282
9333
  t: l,
@@ -9515,8 +9566,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9515
9566
  }) => {
9516
9567
  const c = o.store.getVarSubmitConfig(o.formID);
9517
9568
  return i = watch(u, (g) => {
9518
- var p, _, v, m, b, T, y, C, E, I, k, F;
9519
- 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 = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 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 = (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 = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
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);
9520
9571
  }, {
9521
9572
  immediate: !0
9522
9573
  }), !1;
@@ -9562,12 +9613,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9562
9613
  function p() {
9563
9614
  c.value = !0;
9564
9615
  }
9565
- function _() {
9616
+ function v() {
9566
9617
  r("kgCancel");
9567
9618
  }
9568
- function v() {
9569
- var T;
9570
- return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
9619
+ function b() {
9620
+ var C;
9621
+ return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9571
9622
  onClick: g,
9572
9623
  class: "kg-submit--btn-fullscreen"
9573
9624
  }, {
@@ -9585,60 +9636,60 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9585
9636
  hostFormID: a.formID
9586
9637
  }, null)]) : null;
9587
9638
  }
9588
- function b() {
9639
+ function _() {
9589
9640
  return createVNode(Button, {
9590
9641
  disabled: u.value || l.value,
9591
9642
  class: "kg-submit--btn-close",
9592
- onClick: _
9643
+ onClick: v
9593
9644
  }, {
9594
9645
  default: () => [createVNode(CloseOutlined$1, null, null)]
9595
9646
  });
9596
9647
  }
9597
- return () => createVNode(Fragment, null, [m(), v(), b()]);
9648
+ return () => createVNode(Fragment, null, [m(), b(), _()]);
9598
9649
  }
9599
9650
  }), 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;
9600
9651
  function _useFormModel() {
9601
9652
  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(() => {
9602
- var v, m, b, T;
9653
+ var b, m, _, C;
9603
9654
  switch (!0) {
9604
9655
  case a.value:
9605
- return (v = l.value) != null ? v : [];
9656
+ return (b = l.value) != null ? b : [];
9606
9657
  case o.value:
9607
9658
  return (m = u.value) != null ? m : [];
9608
9659
  case s.value:
9609
- return (b = c.value) != null ? b : [];
9660
+ return (_ = c.value) != null ? _ : [];
9610
9661
  case i.value:
9611
- return (T = g.value) != null ? T : [];
9662
+ return (C = g.value) != null ? C : [];
9612
9663
  }
9613
9664
  return [];
9614
- }), _ = ref({});
9615
- return watch(p, (v) => {
9616
- if (_.value = {}, v != null && v.length) {
9665
+ }), v = ref({});
9666
+ return watch(p, (b) => {
9667
+ if (v.value = {}, b != null && b.length) {
9617
9668
  const m = r.selectedRow.value;
9618
- v.forEach((b) => {
9619
- var y, C, E, I, k, F, R, O;
9620
- const T = (y = b.var_nam) != null ? y : "";
9621
- switch (_.value[T] = void 0, !0) {
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) {
9622
9673
  case a.value:
9623
- _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = b.crt_dft_val) != null ? C : void 0);
9674
+ v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = _.crt_dft_val) != null ? T : void 0);
9624
9675
  break;
9625
9676
  case o.value:
9626
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (I = (E = b.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? I : void 0);
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);
9627
9678
  break;
9628
9679
  case s.value:
9629
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (F = (k = b.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? F : void 0);
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);
9630
9681
  break;
9631
9682
  case i.value:
9632
- _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (R = b.del_dft_val) != null ? R : m == null ? void 0 : m[T]) != null ? O : void 0);
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);
9633
9684
  break;
9634
9685
  }
9635
9686
  });
9636
9687
  }
9637
- n.store.setModel(t.formID, _.value);
9688
+ n.store.setModel(t.formID, v.value);
9638
9689
  }, {
9639
9690
  immediate: !0
9640
9691
  }), {
9641
- model: _
9692
+ model: v
9642
9693
  };
9643
9694
  }
9644
9695
  function _useResizeObserver$1(e) {
@@ -9675,23 +9726,23 @@ function _useTitle() {
9675
9726
  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));
9676
9727
  return {
9677
9728
  title: computed(() => {
9678
- var g, p, _, v;
9729
+ var g, p, v, b;
9679
9730
  switch (!0) {
9680
9731
  case r.value: {
9681
- const m = (g = s.value) == null ? void 0 : g.var_nam, b = t.t(m).value;
9682
- return m === b ? e.t("kg.create") : b;
9732
+ const m = (g = s.value) == null ? void 0 : g.var_nam, _ = t.t(m).value;
9733
+ return m === _ ? e.t("kg.create") : _;
9683
9734
  }
9684
9735
  case n.value: {
9685
- const m = (p = i.value) == null ? void 0 : p.var_nam, b = t.t(m).value;
9686
- return m === b ? e.t("kg.update") : b;
9736
+ const m = (p = i.value) == null ? void 0 : p.var_nam, _ = t.t(m).value;
9737
+ return m === _ ? e.t("kg.update") : _;
9687
9738
  }
9688
9739
  case a.value: {
9689
- const m = (_ = l.value) == null ? void 0 : _.var_nam, b = t.t(m).value;
9690
- return m === b ? e.t("kg.copy") : b;
9740
+ const m = (v = l.value) == null ? void 0 : v.var_nam, _ = t.t(m).value;
9741
+ return m === _ ? e.t("kg.copy") : _;
9691
9742
  }
9692
9743
  case o.value: {
9693
- const m = (v = u.value) == null ? void 0 : v.var_nam, b = t.t(m).value;
9694
- return m === b ? e.t("kg.delete") : b;
9744
+ const m = (b = u.value) == null ? void 0 : b.var_nam, _ = t.t(m).value;
9745
+ return m === _ ? e.t("kg.delete") : _;
9695
9746
  }
9696
9747
  }
9697
9748
  return "";
@@ -9714,9 +9765,9 @@ function _useLayout() {
9714
9765
  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));
9715
9766
  return {
9716
9767
  getLayout: computed(() => {
9717
- var _, v, m, b, T;
9768
+ var v, b, m, _, C;
9718
9769
  let i = "vertical";
9719
- const l = (_ = o.value) == null ? void 0 : _.layout, u = (v = o.value) == null ? void 0 : v.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (b = o.value) == null ? void 0 : b.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
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;
9720
9771
  switch (!0) {
9721
9772
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9722
9773
  i = "horizontal";
@@ -9739,9 +9790,9 @@ function _useDisplayType() {
9739
9790
  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));
9740
9791
  return {
9741
9792
  getDisplayType: computed(() => {
9742
- var v, m, b, T, y;
9793
+ var b, m, _, C, y;
9743
9794
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9744
- const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (v = o.value) == null ? void 0 : v.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (b = o.value) == null ? void 0 : b.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
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;
9745
9796
  switch (!0) {
9746
9797
  case (t.value && (c === l || !c && u === l)):
9747
9798
  i = l;
@@ -9752,7 +9803,7 @@ function _useDisplayType() {
9752
9803
  case (n.value && (p === l || !p && u === l)):
9753
9804
  i = l;
9754
9805
  break;
9755
- case (a.value && (_ === l || !_)):
9806
+ case (a.value && (v === l || !v)):
9756
9807
  i = l;
9757
9808
  break;
9758
9809
  }
@@ -9764,10 +9815,10 @@ function _useDefaultWidth() {
9764
9815
  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));
9765
9816
  return {
9766
9817
  getDefaultWidth: computed(() => {
9767
- var _, v, m, b, T;
9818
+ var v, b, m, _, C;
9768
9819
  if (!o.value)
9769
9820
  return 0;
9770
- const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (v = o.value) == null ? void 0 : v.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (b = o.value) == null ? void 0 : b.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
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;
9771
9822
  let p = i || DEFAULT_WIDTH;
9772
9823
  switch (!0) {
9773
9824
  case (t.value && !!l):
@@ -9805,68 +9856,68 @@ const getProps$p = () => ({
9805
9856
  }) {
9806
9857
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9807
9858
  _useFormModel();
9808
- 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), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = 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)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9809
- var U, z, X;
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(() => {
9860
+ var B, W, Q;
9810
9861
  switch (!0) {
9811
9862
  case u.value:
9812
- return (U = E.value) != null ? U : [];
9863
+ return (B = E.value) != null ? B : [];
9813
9864
  case c.value:
9814
- return (z = k.value) != null ? z : [];
9865
+ return (W = k.value) != null ? W : [];
9815
9866
  case g.value:
9816
- return (X = R.value) != null ? X : [];
9867
+ return (Q = L.value) != null ? Q : [];
9817
9868
  case p.value:
9818
9869
  return [];
9819
9870
  }
9820
9871
  return [];
9821
9872
  }), V = computed(() => {
9822
- var U, z, X, te;
9873
+ var B, W, Q, te;
9823
9874
  switch (!0) {
9824
9875
  case u.value:
9825
- return (U = I.value) != null ? U : [];
9876
+ return (B = I.value) != null ? B : [];
9826
9877
  case c.value:
9827
- return (z = F.value) != null ? z : [];
9878
+ return (W = R.value) != null ? W : [];
9828
9879
  case g.value:
9829
- return (X = O.value) != null ? X : [];
9880
+ return (Q = O.value) != null ? Q : [];
9830
9881
  case p.value:
9831
9882
  return (te = D.value) != null ? te : [];
9832
9883
  }
9833
9884
  return [];
9834
- }), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => M.value || y.value), w = computed(() => y.value), L = ref({
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({
9835
9886
  kgWidth: 0
9836
- }), x = computed(() => {
9837
- var U;
9838
- return !!(_.value || oe.isFullscreen || ((U = C.value) == null ? void 0 : U.resizable_flg) === 0);
9887
+ }), F = computed(() => {
9888
+ var B;
9889
+ return !!(v.value || se.isFullscreen || ((B = T.value) == null ? void 0 : B.resizable_flg) === 0);
9890
+ }), U = computed(() => {
9891
+ var B, W;
9892
+ return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9839
9893
  }), G = computed(() => {
9840
- var U, z;
9841
- return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9842
- }), N = computed(() => {
9843
- var U, z;
9844
- return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9845
- }), B = computed(() => _.value ? 398 : L.value.kgWidth), W = ref(null), Y = ref({}), Q = ref(null);
9846
- _useResizeObserver$1(Q);
9847
- const re = _useTitle(), Z = computed(() => _.value ? 400 : L.value.kgWidth && L.value.kgWidth > 0 ? L.value.kgWidth + 2 : 0), ce = computed(() => Z.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), oe = reactive({
9894
+ 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);
9897
+ _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({
9848
9899
  isFullscreen: !1
9849
9900
  }), {
9850
9901
  getDisplayType: de
9851
9902
  } = _useDisplayType(), {
9852
9903
  getClass: P
9853
- } = _useClass(e, oe), {
9904
+ } = _useClass(e, se), {
9854
9905
  getLayout: K
9855
9906
  } = _useLayout(), {
9856
- getDefaultWidth: H
9907
+ getDefaultWidth: z
9857
9908
  } = _useDefaultWidth(), q = computed(() => {
9858
- var U, z, X;
9909
+ var B, W, Q;
9859
9910
  switch (K.value) {
9860
9911
  case "horizontal":
9861
- switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9912
+ switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9862
9913
  case KG_WIDTH_UNIT.SPAN:
9863
9914
  return {
9864
- span: (z = C.value) == null ? void 0 : z.label_col
9915
+ span: (W = T.value) == null ? void 0 : W.label_col
9865
9916
  };
9866
9917
  default:
9867
9918
  return {
9868
9919
  style: {
9869
- width: `${(X = C.value) == null ? void 0 : X.label_col}px`
9920
+ width: `${(Q = T.value) == null ? void 0 : Q.label_col}px`
9870
9921
  }
9871
9922
  };
9872
9923
  }
@@ -9874,13 +9925,13 @@ const getProps$p = () => ({
9874
9925
  return;
9875
9926
  }
9876
9927
  }), ne = computed(() => {
9877
- var U, z;
9928
+ var B, W;
9878
9929
  switch (K.value) {
9879
9930
  case "horizontal":
9880
- switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9931
+ switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9881
9932
  case KG_WIDTH_UNIT.SPAN:
9882
9933
  return {
9883
- span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
9934
+ span: 24 - ((W = T.value) == null ? void 0 : W.label_col)
9884
9935
  };
9885
9936
  default:
9886
9937
  return;
@@ -9889,19 +9940,19 @@ const getProps$p = () => ({
9889
9940
  return;
9890
9941
  }
9891
9942
  });
9892
- watch(ce, (U, z) => {
9893
- U === !0 && J(), z === !0 && U === !1 && pe();
9943
+ watch(ae, (B, W) => {
9944
+ B === !0 && J(), W === !0 && B === !1 && pe();
9894
9945
  }, {
9895
9946
  immediate: !0
9896
- }), watch(H, (U) => {
9897
- U && (L.value.kgWidth = U);
9947
+ }), watch(z, (B) => {
9948
+ B && (N.value.kgWidth = B);
9898
9949
  }, {
9899
9950
  immediate: !0
9900
9951
  });
9901
9952
  function J() {
9902
- var z;
9903
- const U = watch(s.model, (X) => {
9904
- X && Object.keys(X).length > 0 && (setTimeout(() => U()), s.store.emit(a.formID, "open", {
9953
+ var W;
9954
+ const B = watch(s.model, (Q) => {
9955
+ Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
9905
9956
  isCreating: u.value,
9906
9957
  isUpdating: c.value,
9907
9958
  isCopying: g.value,
@@ -9912,10 +9963,10 @@ const getProps$p = () => ({
9912
9963
  }, {
9913
9964
  immediate: !0
9914
9965
  });
9915
- ((z = C.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !_.value && (oe.isFullscreen = !0);
9966
+ ((W = T.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (se.isFullscreen = !0);
9916
9967
  }
9917
9968
  function pe() {
9918
- L.value.kgWidth = H.value, oe.isFullscreen = !1, s.store.emit(a.formID, "close");
9969
+ N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
9919
9970
  }
9920
9971
  function he() {
9921
9972
  switch (!0) {
@@ -9934,7 +9985,7 @@ const getProps$p = () => ({
9934
9985
  }
9935
9986
  }
9936
9987
  async function _e() {
9937
- var U, z;
9988
+ var B, W;
9938
9989
  try {
9939
9990
  if (await s.store.emit(a.formID, "beforeOk", {
9940
9991
  isCreating: u.value,
@@ -9947,11 +9998,11 @@ const getProps$p = () => ({
9947
9998
  }))
9948
9999
  return;
9949
10000
  try {
9950
- await ((U = W.value) == null ? void 0 : U.validate());
9951
- } catch (ae) {
9952
- KgUtil.throwIfNotFormError(ae);
10001
+ await ((B = H.value) == null ? void 0 : B.validate());
10002
+ } catch (oe) {
10003
+ KgUtil.throwIfNotFormError(oe);
9953
10004
  }
9954
- if (await ((z = W.value) == null ? void 0 : z.validate()), await s.store.emit(a.formID, "afterValidate", {
10005
+ if (await ((W = H.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
9955
10006
  isCreating: u.value,
9956
10007
  isUpdating: c.value,
9957
10008
  isCopying: g.value,
@@ -9974,22 +10025,22 @@ const getProps$p = () => ({
9974
10025
  await Ee();
9975
10026
  break;
9976
10027
  }
9977
- } catch (X) {
9978
- KgUtil.throwIfNotFormError(X);
10028
+ } catch (Q) {
10029
+ KgUtil.throwIfNotFormError(Q);
9979
10030
  }
9980
10031
  }
9981
10032
  async function Se() {
9982
- var z, X, te, ae, se, ie, le, ue;
9983
- const U = (z = v.value) == null ? void 0 : z.cmd;
9984
- if (!U) {
10033
+ var W, Q, te, oe, ie, le, ue, ce;
10034
+ const B = (W = b.value) == null ? void 0 : W.cmd;
10035
+ if (!B) {
9985
10036
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9986
- VarButton: v.value
10037
+ VarButton: b.value
9987
10038
  });
9988
10039
  return;
9989
10040
  }
9990
10041
  a.store.setIsCreatingRequesting(a.formID, !0);
9991
10042
  try {
9992
- const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = v.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), a.formID, r), fe = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
10043
+ const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), a.formID, r), fe = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
9993
10044
  if (await s.store.emit(a.formID, "beforeRequest", {
9994
10045
  isCreating: u.value,
9995
10046
  isUpdating: c.value,
@@ -10001,11 +10052,11 @@ const getProps$p = () => ({
10001
10052
  }))
10002
10053
  return;
10003
10054
  await httpClient().request({
10004
- method: (se = (ae = v.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
10005
- url: U,
10055
+ method: (ie = (oe = b.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10056
+ url: B,
10006
10057
  params: ee,
10007
10058
  data: fe
10008
- }), ((ie = v.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(re.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
10059
+ }), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
10009
10060
  } catch (ee) {
10010
10061
  console.error(ee);
10011
10062
  } finally {
@@ -10013,9 +10064,9 @@ const getProps$p = () => ({
10013
10064
  }
10014
10065
  }
10015
10066
  async function Ce() {
10016
- var z, X, te, ae, se, ie, le, ue;
10017
- const U = (z = m.value) == null ? void 0 : z.cmd;
10018
- if (!U) {
10067
+ var W, Q, te, oe, ie, le, ue, ce;
10068
+ const B = (W = m.value) == null ? void 0 : W.cmd;
10069
+ if (!B) {
10019
10070
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10020
10071
  VarButton: m.value
10021
10072
  });
@@ -10023,7 +10074,7 @@ const getProps$p = () => ({
10023
10074
  }
10024
10075
  try {
10025
10076
  a.store.setIsUpdatingRequesting(a.formID, !0);
10026
- const ee = KgVarUtil.parseCommandParameter((te = (X = m.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10077
+ const ee = KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10027
10078
  if (await s.store.emit(a.formID, "beforeRequest", {
10028
10079
  isCreating: u.value,
10029
10080
  isUpdating: c.value,
@@ -10035,11 +10086,11 @@ const getProps$p = () => ({
10035
10086
  }))
10036
10087
  return;
10037
10088
  await httpClient().request({
10038
- method: (se = (ae = m.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
10039
- url: U,
10089
+ method: (ie = (oe = m.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10090
+ url: B,
10040
10091
  params: ee,
10041
10092
  data: fe
10042
- }), ((ie = m.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le);
10093
+ }), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue);
10043
10094
  } catch (ee) {
10044
10095
  console.error(ee);
10045
10096
  } finally {
@@ -10047,21 +10098,21 @@ const getProps$p = () => ({
10047
10098
  }
10048
10099
  }
10049
10100
  async function Te() {
10050
- var z, X, te, ae, se, ie, le, ue, ee, fe;
10051
- const U = (z = b.value) == null ? void 0 : z.cmd;
10052
- if (!U) {
10101
+ var W, Q, te, oe, ie, le, ue, ce, ee, fe;
10102
+ const B = (W = _.value) == null ? void 0 : W.cmd;
10103
+ if (!B) {
10053
10104
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10054
- VarButton: b.value
10105
+ VarButton: _.value
10055
10106
  });
10056
10107
  return;
10057
10108
  }
10058
10109
  try {
10059
10110
  a.store.setIsCopyingRequesting(a.formID, !0);
10060
- const ge = KgVarUtil.parseCommandParameter((te = (X = b.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), me = {
10061
- ...(ae = o.selectedRow.value) != null ? ae : {},
10111
+ const ge = KgVarUtil.parseCommandParameter((te = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10112
+ ...(oe = o.selectedRow.value) != null ? oe : {},
10062
10113
  ...toRaw(s.model.value)
10063
10114
  };
10064
- if (((se = C.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10115
+ if (((ie = T.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10065
10116
  isCreating: u.value,
10066
10117
  isUpdating: c.value,
10067
10118
  isCopying: g.value,
@@ -10072,11 +10123,11 @@ const getProps$p = () => ({
10072
10123
  }))
10073
10124
  return;
10074
10125
  await httpClient().request({
10075
- method: (le = (ie = b.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
10076
- url: U,
10126
+ method: (ue = (le = _.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10127
+ url: B,
10077
10128
  params: ge,
10078
10129
  data: me
10079
- }), ((ue = b.value) == null ? void 0 : ue.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);
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);
10080
10131
  } catch (ge) {
10081
10132
  console.error(ge);
10082
10133
  } finally {
@@ -10084,20 +10135,20 @@ const getProps$p = () => ({
10084
10135
  }
10085
10136
  }
10086
10137
  async function Ee() {
10087
- var z, X, te, ae, se, ie, le, ue;
10088
- const U = (z = T.value) == null ? void 0 : z.cmd;
10089
- if (!U) {
10138
+ var W, Q, te, oe, ie, le, ue, ce;
10139
+ const B = (W = C.value) == null ? void 0 : W.cmd;
10140
+ if (!B) {
10090
10141
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10091
- VarButton: T.value
10142
+ VarButton: C.value
10092
10143
  });
10093
10144
  return;
10094
10145
  }
10095
10146
  try {
10096
10147
  a.store.setIsDeletingRequesting(a.formID, !0);
10097
10148
  const ee = {
10098
- ids: (te = (X = o.selectedRows.value) == null ? void 0 : X.map((ge) => {
10149
+ ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
10099
10150
  var me, ve, ye;
10100
- return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10151
+ return (ye = ge[(ve = (me = C.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10101
10152
  })) != null ? te : []
10102
10153
  };
10103
10154
  if (await s.store.emit(a.formID, "beforeRequest", {
@@ -10111,80 +10162,80 @@ const getProps$p = () => ({
10111
10162
  }))
10112
10163
  return;
10113
10164
  await httpClient().request({
10114
- method: (se = (ae = T.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10115
- url: U,
10165
+ method: (ie = (oe = C.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10166
+ url: B,
10116
10167
  params: ee
10117
10168
  }, {
10118
10169
  joinParamsToUrl: !0
10119
- }), ((ie = T.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !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);
10120
10171
  } catch (ee) {
10121
10172
  console.error(ee);
10122
10173
  } finally {
10123
10174
  a.store.setIsDeletingRequesting(a.formID, !1);
10124
10175
  }
10125
10176
  }
10126
- function be(U) {
10127
- var X, te;
10128
- const z = (te = (X = l == null ? void 0 : l.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : te[U.var_nam];
10129
- return isFunction$2(z) ? createVNode(KgForm.Item, {
10130
- kgVarName: U.var_nam,
10177
+ function be(B) {
10178
+ var Q, te;
10179
+ const W = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[B.var_nam];
10180
+ return isFunction$2(W) ? createVNode(KgForm.Item, {
10181
+ kgVarName: B.var_nam,
10131
10182
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10132
- kgRules: Y.value[U.var_nam],
10183
+ kgRules: Y.value[B.var_nam],
10133
10184
  onKgSubmit: _e
10134
10185
  }, {
10135
10186
  control: ({
10136
- varName: ae,
10137
- props: se,
10138
- model: ie,
10139
- varConfig: le,
10140
- varProfileDetail: ue,
10187
+ varName: oe,
10188
+ props: ie,
10189
+ model: le,
10190
+ varConfig: ue,
10191
+ varProfileDetail: ce,
10141
10192
  varSubmitField: ee
10142
- }) => z({
10143
- varName: ae,
10144
- props: se,
10145
- model: ie,
10146
- varConfig: le,
10147
- varProfileDetail: ue,
10193
+ }) => W({
10194
+ varName: oe,
10195
+ props: ie,
10196
+ model: le,
10197
+ varConfig: ue,
10198
+ varProfileDetail: ce,
10148
10199
  varSubmitField: ee
10149
10200
  })
10150
10201
  }) : createVNode(KgForm.Item, {
10151
- kgVarName: U.var_nam,
10202
+ kgVarName: B.var_nam,
10152
10203
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10153
- kgRules: Y.value[U.var_nam],
10204
+ kgRules: Y.value[B.var_nam],
10154
10205
  onKgSubmit: _e
10155
10206
  }, null);
10156
10207
  }
10157
10208
  function ke() {
10158
- let U, z;
10209
+ let B, W;
10159
10210
  return createVNode(KgResizable, {
10160
10211
  kgType: de.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10161
- kgMinWidth: G.value,
10162
- kgMaxWidth: N.value,
10163
- kgWidth: B.value,
10164
- kgDisabled: x.value,
10165
- "onUpdate:kgWidth": (X) => L.value.kgWidth = X
10212
+ kgMinWidth: U.value,
10213
+ kgMaxWidth: G.value,
10214
+ kgWidth: x.value,
10215
+ kgDisabled: F.value,
10216
+ "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10166
10217
  }, {
10167
10218
  default: () => [createVNode(Spin, {
10168
10219
  spinning: y.value
10169
10220
  }, {
10170
10221
  default: () => [createVNode(KgForm, {
10171
- ref: W,
10222
+ ref: H,
10172
10223
  model: s.model.value,
10173
10224
  layout: K.value,
10174
10225
  labelCol: q.value,
10175
10226
  wrapperCol: ne.value
10176
10227
  }, {
10177
10228
  default: () => [createVNode("div", {
10178
- ref: Q
10229
+ ref: X
10179
10230
  }, [$.value.length > 0 && createVNode(Row, {
10180
10231
  gutter: 12
10181
- }, _isSlot$7(U = $.value.map(be)) ? U : {
10182
- default: () => [U]
10232
+ }, _isSlot$7(B = $.value.map(be)) ? B : {
10233
+ default: () => [B]
10183
10234
  }), $.value.length > 0 && V.value.length > 0 && createVNode(Divider, null, null), V.value.length > 0 && createVNode(Row, {
10184
10235
  gutter: 12
10185
- }, _isSlot$7(z = V.value.map(be)) ? z : {
10186
- default: () => [z]
10187
- }), _.value && createVNode("div", {
10236
+ }, _isSlot$7(W = V.value.map(be)) ? W : {
10237
+ default: () => [W]
10238
+ }), v.value && createVNode("div", {
10188
10239
  style: "text-align: center; padding: 6px 0 12px;"
10189
10240
  }, [n.t("kg.confirmDelete")])])]
10190
10241
  })]
@@ -10192,48 +10243,48 @@ const getProps$p = () => ({
10192
10243
  });
10193
10244
  }
10194
10245
  function Ie() {
10195
- let U, z;
10246
+ let B, W;
10196
10247
  return createVNode("div", null, [createVNode(Button, {
10197
10248
  type: "primary",
10198
- ghost: !A.value,
10199
- disabled: A.value,
10249
+ ghost: !M.value,
10250
+ disabled: M.value,
10200
10251
  onClick: he
10201
- }, _isSlot$7(U = n.t("kg.cancel")) ? U : {
10202
- default: () => [U]
10252
+ }, _isSlot$7(B = n.t("kg.cancel")) ? B : {
10253
+ default: () => [B]
10203
10254
  }), createVNode(Button, {
10204
10255
  type: "primary",
10205
10256
  disabled: w.value,
10206
- loading: M.value,
10257
+ loading: A.value,
10207
10258
  danger: !!p.value,
10208
10259
  onClick: _e
10209
- }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
10210
- default: () => [z]
10260
+ }, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
10261
+ default: () => [W]
10211
10262
  })]);
10212
10263
  }
10213
10264
  function Ae() {
10214
10265
  return createVNode("div", {
10215
- title: re.title.value
10216
- }, [re.title.value]);
10266
+ title: Z.title.value
10267
+ }, [Z.title.value]);
10217
10268
  }
10218
10269
  function Me() {
10219
10270
  return createVNode(KgSubmitHeader, {
10220
- isFullscreen: oe.isFullscreen,
10221
- "onUpdate:isFullscreen": (U) => oe.isFullscreen = U,
10222
- kgShowFullscreenButton: !_.value,
10223
- kgShowConfigButton: !_.value && e.kgShowConfigButton,
10271
+ isFullscreen: se.isFullscreen,
10272
+ "onUpdate:isFullscreen": (B) => se.isFullscreen = B,
10273
+ kgShowFullscreenButton: !v.value,
10274
+ kgShowConfigButton: !v.value && e.kgShowConfigButton,
10224
10275
  onKgCancel: he
10225
10276
  }, null);
10226
10277
  }
10227
10278
  return onUnmounted(() => {
10228
10279
  s.store.dispose(a.formID);
10229
10280
  }), () => createVNode(Drawer, {
10230
- visible: ce.value,
10281
+ visible: ae.value,
10231
10282
  placement: "right",
10232
10283
  closable: !1,
10233
10284
  maskClosable: !1,
10234
10285
  keyboard: !1,
10235
10286
  destroyOnClose: !0,
10236
- width: Z.value,
10287
+ width: re.value,
10237
10288
  class: P.value,
10238
10289
  "kg-frm-id": a.formID
10239
10290
  }, {
@@ -10254,38 +10305,44 @@ const getProps$p = () => ({
10254
10305
  slots: t
10255
10306
  }) {
10256
10307
  provide(DI_KG_SLOTS, e.kgSlots);
10257
- 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(() => {
10258
- var p, _, v, m;
10308
+ 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;
10259
10310
  switch (!0) {
10260
10311
  case n.value:
10261
- return ((p = i.value) == null ? void 0 : p.crt_flg) !== 0;
10312
+ return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
10262
10313
  case a.value:
10263
- return ((_ = i.value) == null ? void 0 : _.upt_flg) !== 0;
10314
+ return ((C = i.value) == null ? void 0 : C.upt_flg) !== 0;
10264
10315
  case o.value:
10265
- return ((v = i.value) == null ? void 0 : v.cpy_flg) !== 0;
10316
+ return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
10266
10317
  case s.value:
10267
- return ((m = i.value) == null ? void 0 : m.del_flg) !== 0;
10318
+ return ((T = i.value) == null ? void 0 : T.del_flg) !== 0;
10268
10319
  }
10269
10320
  return !1;
10270
- }), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
10271
- let p = "kg-var";
10272
- return e.KgBackgroundGray && (p += " kg-var--bg-gray"), p;
10321
+ }), g = computed(() => {
10322
+ var _;
10323
+ return ((_ = u.value) == null ? void 0 : _.available_flg) !== 0;
10324
+ }), 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"), _;
10273
10330
  });
10274
- function g() {
10331
+ function m() {
10275
10332
  return createVNode(Spin, {
10276
- spinning: u.value
10333
+ spinning: v.value
10277
10334
  }, {
10278
10335
  default: () => {
10279
- var p, _;
10280
- return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), (p = t.beforeButton) == null ? void 0 : p.call(t), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
10281
- kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
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 : ""
10282
10339
  }, null)])];
10283
10340
  }
10284
10341
  });
10285
10342
  }
10286
10343
  return () => createVNode("div", {
10287
- class: c.value
10288
- }, [g()]);
10344
+ class: b.value
10345
+ }, [m()]);
10289
10346
  }
10290
10347
  }), KgYesOrNo$1 = "", getProps$n = () => ({
10291
10348
  kgValue: {
@@ -10318,16 +10375,16 @@ const getProps$p = () => ({
10318
10375
  emit: r
10319
10376
  }) {
10320
10377
  const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
10321
- var p, _;
10378
+ var p, v;
10322
10379
  let g = "kg-table-td";
10323
- 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;
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;
10324
10381
  }), i = computed(() => {
10325
10382
  let g = e.kgValue;
10326
10383
  return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10327
10384
  `)), g;
10328
10385
  });
10329
10386
  function l(g) {
10330
- var p, _, v;
10387
+ var p, v, b;
10331
10388
  if (g.detail === 1)
10332
10389
  switch ((p = o.value) == null ? void 0 : p.display_type) {
10333
10390
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -10336,8 +10393,8 @@ const getProps$p = () => ({
10336
10393
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10337
10394
  {
10338
10395
  g.stopPropagation(), g.preventDefault();
10339
- const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10340
- (v = n.router.value) == null || v.push({
10396
+ const m = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10397
+ (b = n.router.value) == null || b.push({
10341
10398
  path: m.path,
10342
10399
  query: e.kgRow
10343
10400
  });
@@ -10346,16 +10403,16 @@ const getProps$p = () => ({
10346
10403
  }
10347
10404
  }
10348
10405
  function u() {
10349
- var g, p, _, v, m, b, T, y;
10406
+ var g, p, v, b, m, _, C, y;
10350
10407
  switch ((g = o.value) == null ? void 0 : g.display_type) {
10351
10408
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10352
- const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10409
+ const T = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10353
10410
  return createVNode(KgYesOrNo, {
10354
- kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
10411
+ kgValue: e.kgValue === ((v = T.yValue) != null ? v : 1)
10355
10412
  }, null);
10356
10413
  }
10357
10414
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
10358
- const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties), E = isArrayLike(C) && C.find((I) => I.value === e.kgValue);
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);
10359
10416
  return E ? createVNode(Tag, {
10360
10417
  color: (m = E.color) != null ? m : "default"
10361
10418
  }, {
@@ -10363,11 +10420,11 @@ const getProps$p = () => ({
10363
10420
  }) : c();
10364
10421
  }
10365
10422
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10366
- const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties);
10423
+ const T = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10367
10424
  return createVNode(KgProgressA, {
10368
- kgTextWidth: C.textWidth,
10369
- kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
10370
- kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
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]
10371
10428
  }, null);
10372
10429
  }
10373
10430
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -10478,8 +10535,8 @@ const getProps$l = () => ({
10478
10535
  }) => {
10479
10536
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10480
10537
  return s = watch(l, (c) => {
10481
- var g, p, _, v, m, b, T, y, C, E, I;
10482
- 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 = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 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 = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
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);
10483
10540
  }, {
10484
10541
  immediate: !0
10485
10542
  }), !1;
@@ -10668,8 +10725,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10668
10725
  return o.onOpen(async ({
10669
10726
  model: s
10670
10727
  }) => {
10671
- var i, l, u, c, g, p, _, v, m, b;
10672
- 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 = (v = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? v : "", s.value.varGridDetails = (b = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? b : [], !1;
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;
10673
10730
  }), o.onBeforeOk(async ({
10674
10731
  model: s
10675
10732
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10700,7 +10757,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10700
10757
  function p(y) {
10701
10758
  a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
10702
10759
  }
10703
- async function _() {
10760
+ async function v() {
10704
10761
  var y;
10705
10762
  if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10706
10763
  KgUtil.confirm({
@@ -10720,7 +10777,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10720
10777
  })
10721
10778
  }), message.success(n.t("kg.updateSuccess"));
10722
10779
  }
10723
- async function v() {
10780
+ async function b() {
10724
10781
  g.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
10725
10782
  }
10726
10783
  function m() {
@@ -10735,24 +10792,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10735
10792
  class: "columns"
10736
10793
  }, [createVNode(Input, {
10737
10794
  value: i.value,
10738
- "onUpdate:value": (C) => i.value = C,
10795
+ "onUpdate:value": (T) => i.value = T,
10739
10796
  allowClear: !0
10740
10797
  }, null), createVNode("ul", {
10741
10798
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10742
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10799
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
10743
10800
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10744
10801
  onClick: (E) => {
10745
- E.preventDefault(), E.stopPropagation(), p(C);
10802
+ E.preventDefault(), E.stopPropagation(), p(T);
10746
10803
  },
10747
10804
  style: {
10748
- display: s(C, i.value) ? "flex" : "none"
10805
+ display: s(T, i.value) ? "flex" : "none"
10749
10806
  },
10750
- "kg-var-nam": C.var_nam
10807
+ "kg-var-nam": T.var_nam
10751
10808
  }, [createVNode(Checkbox, {
10752
- checked: C.vis_flg === 1,
10809
+ checked: T.vis_flg === 1,
10753
10810
  disabled: !0
10754
10811
  }, {
10755
- default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10812
+ default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
10756
10813
  }), createVNode(HolderOutlined$1, {
10757
10814
  onClick: (E) => {
10758
10815
  E.preventDefault(), E.stopPropagation();
@@ -10762,7 +10819,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10762
10819
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10763
10820
  });
10764
10821
  }
10765
- function b() {
10822
+ function _() {
10766
10823
  return createVNode(Menu.SubMenu, {
10767
10824
  key: "2",
10768
10825
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10770,7 +10827,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10770
10827
  }, {
10771
10828
  default: () => {
10772
10829
  var E;
10773
- let y, C;
10830
+ let y, T;
10774
10831
  return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
10775
10832
  var k;
10776
10833
  return createVNode(Menu.Item, {
@@ -10783,20 +10840,20 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10783
10840
  });
10784
10841
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10785
10842
  key: "save-grid-view",
10786
- onClick: _
10843
+ onClick: v
10787
10844
  }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10788
10845
  default: () => [y]
10789
10846
  }), createVNode(Menu.Item, {
10790
10847
  key: "save-grid-view-as",
10791
- onClick: v
10792
- }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10793
- default: () => [C]
10848
+ onClick: b
10849
+ }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
10850
+ default: () => [T]
10794
10851
  })]);
10795
10852
  },
10796
10853
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10797
10854
  });
10798
10855
  }
10799
- function T() {
10856
+ function C() {
10800
10857
  let y;
10801
10858
  return createVNode(Menu.Item, {
10802
10859
  key: "config-var-grid-master",
@@ -10819,7 +10876,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10819
10876
  "onUpdate:openKeys": (y) => l.value = y,
10820
10877
  selectable: !1
10821
10878
  }, {
10822
- default: () => [m(), b(), T()]
10879
+ default: () => [m(), _(), C()]
10823
10880
  })
10824
10881
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10825
10882
  visible: c.visible,
@@ -10980,37 +11037,37 @@ function _useColumns() {
10980
11037
  index: p
10981
11038
  }) => p + 1
10982
11039
  }, ...(g = i == null ? void 0 : i.map((p) => {
10983
- function _() {
11040
+ function v() {
10984
11041
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
10985
11042
  }
10986
- function v() {
11043
+ function b() {
10987
11044
  return e.t(p.var_nam).value;
10988
11045
  }
10989
11046
  function m() {
10990
11047
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
10991
11048
  }
10992
- function b() {
11049
+ function _() {
10993
11050
  if (p.fix_left_flg === 1)
10994
11051
  return "left";
10995
11052
  if (p.fix_right_flg === 1)
10996
11053
  return "right";
10997
11054
  }
10998
- function T() {
11055
+ function C() {
10999
11056
  return p.ord_flg === 1;
11000
11057
  }
11001
11058
  function y() {
11002
11059
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
11003
11060
  }
11004
- const C = _();
11061
+ const T = v();
11005
11062
  return {
11006
11063
  dataIndex: p.var_nam,
11007
- title: v(),
11008
- width: C,
11009
- resizable: typeof C == "number",
11064
+ title: b(),
11065
+ width: T,
11066
+ resizable: typeof T == "number",
11010
11067
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11011
11068
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11012
- fixed: b(),
11013
- sorter: T(),
11069
+ fixed: _(),
11070
+ sorter: C(),
11014
11071
  align: y(),
11015
11072
  defaultSortOrder: m(),
11016
11073
  customHeaderCell: () => ({
@@ -11066,9 +11123,9 @@ const KgTable$1 = "", KgTable = defineComponent({
11066
11123
  }) {
11067
11124
  const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
11068
11125
  i.onSearch((P) => {
11069
- G(P);
11126
+ U(P);
11070
11127
  }), i.onReset(() => {
11071
- G(!0);
11128
+ U(!0);
11072
11129
  }), u.store.$onAction(async ({
11073
11130
  name: P,
11074
11131
  args: K
@@ -11076,13 +11133,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11076
11133
  switch (P) {
11077
11134
  case "setSelecte":
11078
11135
  if (K[0] === s.formID) {
11079
- const H = K[1], q = K[2];
11136
+ const z = K[1], q = K[2];
11080
11137
  switch (!0) {
11081
- case (q && !M.value.includes(H[I.value])):
11082
- N([...M.value, H[I.value]]);
11138
+ case (q && !A.value.includes(z[I.value])):
11139
+ G([...A.value, z[I.value]]);
11083
11140
  break;
11084
- case (!q && M.value.includes(H[I.value])):
11085
- N(without$1(M.value, H[I.value]));
11141
+ case (!q && A.value.includes(z[I.value])):
11142
+ G(without$1(A.value, z[I.value]));
11086
11143
  break;
11087
11144
  }
11088
11145
  }
@@ -11091,18 +11148,18 @@ const KgTable$1 = "", KgTable = defineComponent({
11091
11148
  });
11092
11149
  const c = ref(!1), g = ref([]), {
11093
11150
  columns: p,
11094
- scrollX: _
11151
+ scrollX: v
11095
11152
  } = _useColumns(), {
11096
- isLoading: v
11153
+ isLoading: b
11097
11154
  } = _useLoading(), m = ref(null);
11098
11155
  _useResizeObserver(m);
11099
- const b = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
11156
+ const _ = computed(() => s.store.getVarButtonSearch(s.formID)), C = computed(() => {
11100
11157
  var P;
11101
11158
  return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11102
11159
  }), y = computed(() => {
11103
11160
  var P;
11104
11161
  return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11105
- }), C = computed(() => {
11162
+ }), T = computed(() => {
11106
11163
  var P;
11107
11164
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11108
11165
  }), E = computed(() => {
@@ -11114,23 +11171,23 @@ const KgTable$1 = "", KgTable = defineComponent({
11114
11171
  }), k = computed(() => {
11115
11172
  var P, K;
11116
11173
  return JSON.parse((K = (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opts) != null ? K : "[]");
11117
- }), F = computed(() => {
11174
+ }), R = computed(() => {
11118
11175
  var P;
11119
11176
  return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
11120
- }), R = computed(() => {
11177
+ }), L = computed(() => {
11121
11178
  var P, K;
11122
- return (K = (P = b.value) == null ? void 0 : P.cmd) != null ? K : null;
11179
+ return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
11123
11180
  }), O = computed(() => {
11124
- var K, H, q, ne, J, pe, he;
11181
+ var K, z, q, ne, J, pe, he;
11125
11182
  let P = {
11126
- pageNo: A.pageIndex,
11127
- pageSize: A.pageSize,
11183
+ pageNo: M.pageIndex,
11184
+ pageSize: M.pageSize,
11128
11185
  ...w,
11129
- ...(H = (K = i.model) == null ? void 0 : K.value) != null ? H : {}
11186
+ ...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
11130
11187
  };
11131
- return b.value && (P = {
11188
+ return _.value && (P = {
11132
11189
  ...P,
11133
- ...KgVarUtil.parseCommandParameter((ne = (q = b.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11190
+ ...KgVarUtil.parseCommandParameter((ne = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11134
11191
  }), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
11135
11192
  ...P,
11136
11193
  ...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
@@ -11141,46 +11198,46 @@ const KgTable$1 = "", KgTable = defineComponent({
11141
11198
  return {
11142
11199
  fixed: "left",
11143
11200
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11144
- hideSelectAll: !T.value,
11145
- selectedRowKeys: M,
11201
+ hideSelectAll: !C.value,
11202
+ selectedRowKeys: A,
11146
11203
  preserveSelectedRowKeys: !1,
11147
- onSelect: (K) => B(K),
11148
- onChange: (K) => T.value && N(K)
11204
+ onSelect: (K) => x(K),
11205
+ onChange: (K) => C.value && G(K)
11149
11206
  };
11150
11207
  }), $ = computed(() => {
11151
11208
  let P = "kg-table";
11152
- return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11153
- }), V = ref([]), M = ref([]), A = reactive({
11209
+ return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
11210
+ }), V = ref([]), A = ref([]), M = reactive({
11154
11211
  pageIndex: 1,
11155
11212
  pageSize: 10,
11156
11213
  total: 0
11157
11214
  }), w = reactive({
11158
11215
  column: void 0,
11159
11216
  order: void 0
11160
- }), L = watch(F, (P) => {
11161
- P && (setTimeout(() => L()), A.pageSize = P), c.value = !0;
11217
+ }), N = watch(R, (P) => {
11218
+ P && (setTimeout(() => N()), M.pageSize = P), c.value = !0;
11162
11219
  });
11163
11220
  watch(k, (P) => {
11164
- P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
11165
- }), watch([R, y, i.isReady], ([P, K, H]) => {
11166
- P && K && H && !u.store.getIsRetrieved(s.formID) && G(!0);
11221
+ 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);
11167
11224
  }, {
11168
11225
  immediate: !0
11169
11226
  }), onUnmounted(() => {
11170
11227
  u.store.dispose(s.formID);
11171
11228
  });
11172
- function x(P, K) {
11229
+ function F(P, K) {
11173
11230
  if (!!D.value) {
11174
11231
  if (!K) {
11175
- M.value = [], u.store.setSelectedRows(s.formID, []);
11232
+ A.value = [], u.store.setSelectedRows(s.formID, []);
11176
11233
  return;
11177
11234
  }
11178
11235
  switch (P == null ? void 0 : P.detail) {
11179
11236
  case 1:
11180
- M.value = [K[I.value]], u.store.setSelectedRows(s.formID, M.value.map((H) => {
11237
+ A.value = [K[I.value]], u.store.setSelectedRows(s.formID, A.value.map((z) => {
11181
11238
  var q;
11182
- return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === H);
11183
- }).filter((H) => !!H));
11239
+ return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === z);
11240
+ }).filter((z) => !!z));
11184
11241
  break;
11185
11242
  case 2:
11186
11243
  u.store.emit(s.formID, "rowDoubleClick", K);
@@ -11188,44 +11245,44 @@ const KgTable$1 = "", KgTable = defineComponent({
11188
11245
  }
11189
11246
  }
11190
11247
  }
11191
- function G(P = !1) {
11248
+ function U(P = !1) {
11192
11249
  const K = watch(c, (q) => {
11193
- q && (setTimeout(() => K()), H());
11250
+ q && (setTimeout(() => K()), z());
11194
11251
  }, {
11195
11252
  immediate: !0
11196
11253
  });
11197
- async function H() {
11254
+ async function z() {
11198
11255
  var q, ne;
11199
- if (!R.value) {
11256
+ if (!L.value) {
11200
11257
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11201
- VarButton: b.value
11258
+ VarButton: _.value
11202
11259
  });
11203
11260
  return;
11204
11261
  }
11205
- P && (A.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11262
+ P && (M.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11206
11263
  try {
11207
11264
  const J = await httpClient().request({
11208
11265
  method: "GET",
11209
- url: R.value,
11266
+ url: L.value,
11210
11267
  params: KgUtil.parseParams(O.value, s.formID, n)
11211
11268
  }, {
11212
11269
  successMessageMode: "none"
11213
11270
  });
11214
11271
  switch (!0) {
11215
11272
  case !J:
11216
- V.value = [], A.total = 0;
11273
+ V.value = [], M.total = 0;
11217
11274
  break;
11218
11275
  case isArrayLike(J):
11219
- V.value = J, A.total = J.length;
11276
+ V.value = J, M.total = J.length;
11220
11277
  break;
11221
11278
  case ("total" in J && "records" in J):
11222
- V.value = (q = J.records) != null ? q : [], A.total = (ne = J.total) != null ? ne : 0;
11279
+ V.value = (q = J.records) != null ? q : [], M.total = (ne = J.total) != null ? ne : 0;
11223
11280
  break;
11224
11281
  }
11225
11282
  u.store.emit(s.formID, "retrieve", {
11226
11283
  page: J,
11227
11284
  datas: V
11228
- }), x(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11285
+ }), F(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11229
11286
  } catch (J) {
11230
11287
  throw J;
11231
11288
  } finally {
@@ -11233,70 +11290,70 @@ const KgTable$1 = "", KgTable = defineComponent({
11233
11290
  }
11234
11291
  }
11235
11292
  }
11236
- function N(P) {
11237
- M.value = P, u.store.setSelectedRows(s.formID, M.value.map((K) => {
11238
- var H;
11239
- return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
11293
+ function G(P) {
11294
+ A.value = P, u.store.setSelectedRows(s.formID, A.value.map((K) => {
11295
+ var z;
11296
+ return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11240
11297
  }).filter((K) => !!K));
11241
11298
  }
11242
- function B(P) {
11243
- var K, H;
11244
- switch (T.value) {
11299
+ function x(P) {
11300
+ var K, z;
11301
+ switch (C.value) {
11245
11302
  case !0:
11246
11303
  {
11247
11304
  const q = P[I.value];
11248
- M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
11305
+ A.value.includes(q) ? A.value = without$1(A.value, q) : A.value = [...(K = A.value) != null ? K : [], q];
11249
11306
  }
11250
11307
  break;
11251
11308
  case !1:
11252
11309
  {
11253
11310
  const q = P[I.value];
11254
- (H = M.value) != null && H.includes(q) ? M.value = [] : M.value = [q];
11311
+ (z = A.value) != null && z.includes(q) ? A.value = [] : A.value = [q];
11255
11312
  }
11256
11313
  break;
11257
11314
  }
11258
- u.store.setSelectedRows(s.formID, M.value.map((q) => {
11315
+ u.store.setSelectedRows(s.formID, A.value.map((q) => {
11259
11316
  var ne;
11260
11317
  return (ne = V.value) == null ? void 0 : ne.find((J) => J[I.value] === q);
11261
11318
  }).filter((q) => !!q));
11262
11319
  }
11263
- function W(P, K) {
11320
+ function H(P, K) {
11264
11321
  K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
11265
11322
  }
11266
- async function Y(P, K, H, q) {
11323
+ async function Y(P, K, z, q) {
11267
11324
  var ne;
11268
11325
  switch (q.action) {
11269
11326
  case "sort":
11270
11327
  {
11271
11328
  await nextTick();
11272
- let J = H;
11273
- 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), G(!0);
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);
11274
11331
  }
11275
11332
  break;
11276
11333
  }
11277
11334
  }
11278
- function Q(P, K) {
11335
+ function X(P, K) {
11279
11336
  var q;
11280
- const H = K[I.value];
11337
+ const z = K[I.value];
11281
11338
  switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
11282
11339
  case 0:
11283
- P ? g.value = uniq([...g.value, H]) : g.value = without$1(g.value, H);
11340
+ P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
11284
11341
  break;
11285
11342
  default:
11286
- P ? g.value = [H] : g.value = [];
11343
+ P ? g.value = [z] : g.value = [];
11287
11344
  break;
11288
11345
  }
11289
11346
  }
11290
- function re(P, K) {
11291
- K !== A.pageSize ? (A.pageIndex = 1, A.pageSize = K) : A.pageIndex = P, G();
11347
+ function Z(P, K) {
11348
+ K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
11292
11349
  }
11293
- function Z(P) {
11294
- M.value = [P[I.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
11295
- var H;
11296
- return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
11350
+ function re(P) {
11351
+ A.value = [P[I.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
11352
+ var z;
11353
+ return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11297
11354
  }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11298
11355
  }
11299
- function ce({
11356
+ function ae({
11300
11357
  title: P,
11301
11358
  column: K
11302
11359
  }) {
@@ -11307,31 +11364,31 @@ const KgTable$1 = "", KgTable = defineComponent({
11307
11364
  return createVNode("pre", null, [P]);
11308
11365
  }
11309
11366
  }
11310
- function oe({
11367
+ function se({
11311
11368
  column: P,
11312
11369
  index: K,
11313
- record: H,
11370
+ record: z,
11314
11371
  value: q,
11315
11372
  text: ne
11316
11373
  }) {
11317
11374
  let J = "";
11318
11375
  P.customRender ? J = P.customRender({
11319
11376
  index: K,
11320
- record: H,
11377
+ record: z,
11321
11378
  column: P,
11322
11379
  text: ne,
11323
11380
  value: q,
11324
11381
  renderIndex: K
11325
11382
  }) : J = q;
11326
11383
  const pe = createVNode(KgTableCell, {
11327
- kgRow: H,
11384
+ kgRow: z,
11328
11385
  kgValue: J,
11329
11386
  kgVarName: P.dataIndex,
11330
- onKgUpdateLinkClick: () => Z(H)
11387
+ onKgUpdateLinkClick: () => re(z)
11331
11388
  }, null);
11332
11389
  return t.bodyCell ? t.bodyCell({
11333
11390
  value: q,
11334
- record: H,
11391
+ record: z,
11335
11392
  index: K,
11336
11393
  column: P,
11337
11394
  defaultRender: pe
@@ -11350,60 +11407,60 @@ const KgTable$1 = "", KgTable = defineComponent({
11350
11407
  class: "kg-flex-table",
11351
11408
  size: "small",
11352
11409
  scroll: {
11353
- x: _.value,
11410
+ x: v.value,
11354
11411
  y: "auto"
11355
11412
  },
11356
11413
  pagination: !1,
11357
11414
  showSorterTooltip: !1,
11358
11415
  columns: p.value,
11359
11416
  dataSource: V.value,
11360
- loading: v.value,
11417
+ loading: b.value,
11361
11418
  rowKey: I.value,
11362
11419
  rowSelection: D.value,
11363
11420
  expandColumnWidth: 28,
11364
11421
  expandedRowKeys: g.value,
11365
11422
  customRow: (K) => ({
11366
- onClick: (H) => x(H, K)
11423
+ onClick: (z) => F(z, K)
11367
11424
  }),
11368
- onResizeColumn: W,
11425
+ onResizeColumn: H,
11369
11426
  onChange: Y,
11370
- onExpand: Q
11427
+ onExpand: X
11371
11428
  }, {
11372
- headerCell: ce,
11373
- bodyCell: oe,
11429
+ headerCell: ae,
11430
+ bodyCell: se,
11374
11431
  emptyText: de,
11375
11432
  expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11376
- }), (C.value || E.value) && createVNode("div", {
11433
+ }), (T.value || E.value) && createVNode("div", {
11377
11434
  class: "kg-table-bottom"
11378
11435
  }, [createVNode("div", {
11379
11436
  class: "left"
11380
- }, [C.value && createVNode(KgTableInfo, {
11381
- kgShowClearCheck: M.value.length > 0,
11382
- kgShowClearTable: A.total > 0,
11383
- kgShowLocate: M.value.length === 1,
11384
- kgTotal: M.value.length,
11385
- kgDisabled: v.value
11437
+ }, [T.value && createVNode(KgTableInfo, {
11438
+ kgShowClearCheck: A.value.length > 0,
11439
+ kgShowClearTable: M.total > 0,
11440
+ kgShowLocate: A.value.length === 1,
11441
+ kgTotal: A.value.length,
11442
+ kgDisabled: b.value
11386
11443
  }, null)]), createVNode("div", {
11387
11444
  class: "right"
11388
11445
  }, [E.value && createVNode(Pagination, {
11389
11446
  size: "default",
11390
- current: A.pageIndex,
11391
- pageSize: A.pageSize,
11447
+ current: M.pageIndex,
11448
+ pageSize: M.pageSize,
11392
11449
  pageSizeOptions: k.value.map((K) => String(K)),
11393
- total: A.total,
11450
+ total: M.total,
11394
11451
  showSizeChanger: !0,
11395
11452
  showQuickJumper: !1,
11396
11453
  hideOnSinglePage: !1,
11397
- disabled: v.value || A.total === 0,
11454
+ disabled: b.value || M.total === 0,
11398
11455
  locale: {
11399
11456
  page: ""
11400
11457
  },
11401
- showTotal: (K, H) => o.t("kg.KgTable.totalText", {
11402
- from: H[0],
11403
- to: H[1],
11458
+ showTotal: (K, z) => o.t("kg.KgTable.totalText", {
11459
+ from: z[0],
11460
+ to: z[1],
11404
11461
  total: K
11405
11462
  }),
11406
- onChange: (K, H) => re(K, H)
11463
+ onChange: (K, z) => Z(K, z)
11407
11464
  }, null)])])]);
11408
11465
  };
11409
11466
  }
@@ -11510,26 +11567,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11510
11567
  props: getProps$f(),
11511
11568
  setup(e) {
11512
11569
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11513
- var p, _;
11514
- return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
11570
+ var p, v;
11571
+ return a.value ? (v = (p = a.value) == null ? void 0 : p.cmd) != null ? v : "" : null;
11515
11572
  }), s = computed(() => {
11516
- var p, _;
11517
- return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
11573
+ var p, v;
11574
+ return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
11518
11575
  }), i = computed(() => {
11519
- var _, v, m, b, T, y;
11576
+ var v, b, m, _, C, y;
11520
11577
  let p = {
11521
- ...(_ = n.model.value) != null ? _ : {}
11578
+ ...(v = n.model.value) != null ? v : {}
11522
11579
  };
11523
11580
  return a.value && (p = {
11524
11581
  ...p,
11525
- ...KgVarUtil.parseCommandParameter((m = (v = a.value) == null ? void 0 : v.cmd_prm) != null ? m : "")
11526
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (p = {
11582
+ ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
11583
+ }), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
11527
11584
  ...p,
11528
- ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11585
+ ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
11529
11586
  }), ((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;
11530
11587
  }), l = ref(!1);
11531
11588
  async function u() {
11532
- var p, _, v;
11589
+ var p, v, b;
11533
11590
  if (!(e.onKgClick && await e.onKgClick())) {
11534
11591
  if (!o.value) {
11535
11592
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11548,7 +11605,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11548
11605
  joinParamsToUrl: !0,
11549
11606
  isTransformResponse: !1
11550
11607
  });
11551
- KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(v = a.value) == null ? void 0 : v.export_excel_suffix}`);
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}`);
11552
11609
  } catch (m) {
11553
11610
  throw m;
11554
11611
  } finally {
@@ -11584,44 +11641,44 @@ const KgTable$1 = "", KgTable = defineComponent({
11584
11641
  attrs: r
11585
11642
  }) {
11586
11643
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
11587
- var _, v;
11588
- return s.value ? (v = (_ = s.value) == null ? void 0 : _.cmd) != null ? v : "" : null;
11644
+ var v, b;
11645
+ return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
11589
11646
  }), l = computed(() => {
11590
- var _, v;
11591
- return (v = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? v : "POST";
11647
+ var v, b;
11648
+ return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
11592
11649
  });
11593
11650
  computed(() => {
11594
- var v, m, b;
11595
- let _ = {
11596
- ...(v = o.model.value) != null ? v : {}
11651
+ var b, m, _;
11652
+ let v = {
11653
+ ...(b = o.model.value) != null ? b : {}
11597
11654
  };
11598
- return s.value && (_ = {
11599
- ..._,
11600
- ...KgVarUtil.parseCommandParameter((b = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? b : "")
11601
- }), _;
11655
+ return s.value && (v = {
11656
+ ...v,
11657
+ ...KgVarUtil.parseCommandParameter((_ = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? _ : "")
11658
+ }), v;
11602
11659
  });
11603
11660
  const u = ref(!1);
11604
- async function c(_) {
11605
- var v, m;
11661
+ async function c(v) {
11662
+ var b, m;
11606
11663
  if (!i.value)
11607
11664
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11608
11665
  VarButton: s.value
11609
11666
  }), !1;
11610
11667
  u.value = !0;
11611
11668
  try {
11612
- const b = new FormData();
11613
- b.append("file", _), await httpClient().axiosInstance.request({
11669
+ const _ = new FormData();
11670
+ _.append("file", v), await httpClient().axiosInstance.request({
11614
11671
  method: l.value,
11615
11672
  baseURL: window._CONFIG.domianURL,
11616
11673
  url: i.value,
11617
- data: b,
11674
+ data: _,
11618
11675
  headers: {
11619
11676
  "Content-Type": "multipart/form-data;charset=UTF-8",
11620
11677
  ignoreCancelToken: !0
11621
11678
  }
11622
- }), message.success(n.t("kg.importSuccess")), (m = (v = o.search).value) == null || m.call(v, !0);
11623
- } catch (b) {
11624
- throw b;
11679
+ }), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
11680
+ } catch (_) {
11681
+ throw _;
11625
11682
  } finally {
11626
11683
  u.value = !1;
11627
11684
  }
@@ -11719,7 +11776,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11719
11776
  setup(e) {
11720
11777
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11721
11778
  async function o() {
11722
- var g, p, _;
11779
+ var g, p, v;
11723
11780
  if (e.onKgClick && await e.onKgClick())
11724
11781
  return;
11725
11782
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11731,16 +11788,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11731
11788
  }
11732
11789
  let u = null;
11733
11790
  const c = async () => {
11734
- var m, b, T, y, C, E, I;
11791
+ var m, _, C, y, T, E, I;
11735
11792
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11736
- const v = a.selectedRows.value;
11793
+ const b = a.selectedRows.value;
11737
11794
  try {
11738
11795
  await httpClient().request({
11739
- method: (b = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? b : "POST",
11796
+ method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
11740
11797
  url: l,
11741
- params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11742
- data: v != null ? v : []
11743
- }), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11798
+ params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
11799
+ 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));
11744
11801
  } catch (k) {
11745
11802
  console.error(k);
11746
11803
  } finally {
@@ -11748,10 +11805,10 @@ const KgTable$1 = "", KgTable = defineComponent({
11748
11805
  }
11749
11806
  };
11750
11807
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11751
- const v = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11752
- typeof v.content == "string" && (v.content = r.t(v.content).value), u = KgUtil.confirm({
11808
+ const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
11809
+ typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11753
11810
  onOk: () => c(),
11754
- ...v
11811
+ ...b
11755
11812
  });
11756
11813
  } else
11757
11814
  c();
@@ -11968,8 +12025,8 @@ const KgButtonItem = defineComponent({
11968
12025
  props: getProps$f(),
11969
12026
  setup(e) {
11970
12027
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11971
- var u, c, g, p, _, v, m, b;
11972
- 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 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((b = a.value) == null ? void 0 : b.permission_code));
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));
11973
12030
  }), s = computed(() => {
11974
12031
  let u = "kg-button-item";
11975
12032
  switch (e.kgColor) {
@@ -11979,7 +12036,7 @@ const KgButtonItem = defineComponent({
11979
12036
  }
11980
12037
  return u;
11981
12038
  }), i = computed(() => {
11982
- var c, g, p, _;
12039
+ var c, g, p, v;
11983
12040
  return {
11984
12041
  ...e,
11985
12042
  class: s.value,
@@ -11987,7 +12044,7 @@ const KgButtonItem = defineComponent({
11987
12044
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
11988
12045
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
11989
12046
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
11990
- "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
12047
+ "kg-cmd": (v = a.value) == null ? void 0 : v.cmd
11991
12048
  };
11992
12049
  });
11993
12050
  function l() {
@@ -12035,15 +12092,15 @@ const getProps$e = () => ({
12035
12092
  props: getProps$e(),
12036
12093
  setup(e) {
12037
12094
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
12038
- function o(_) {
12039
- return n.store.emit(r.formID, "click", _);
12095
+ function o(v) {
12096
+ return n.store.emit(r.formID, "click", v);
12040
12097
  }
12041
- function s(_) {
12098
+ function s(v) {
12042
12099
  if (e.kgDisabled)
12043
- return e.kgDisabled(_);
12100
+ return e.kgDisabled(v);
12044
12101
  }
12045
- function i(_) {
12046
- switch (_.primary_flg) {
12102
+ function i(v) {
12103
+ switch (v.primary_flg) {
12047
12104
  case 1:
12048
12105
  return !0;
12049
12106
  case 0:
@@ -12052,37 +12109,37 @@ const getProps$e = () => ({
12052
12109
  return;
12053
12110
  }
12054
12111
  }
12055
- function l(_) {
12056
- if (r.t(_.var_nam).value !== _.var_nam)
12057
- return r.t(_.var_nam).value;
12112
+ function l(v) {
12113
+ if (r.t(v.var_nam).value !== v.var_nam)
12114
+ return r.t(v.var_nam).value;
12058
12115
  }
12059
12116
  function u() {
12060
- var _, v;
12061
- if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
12117
+ var v, b;
12118
+ if (!r.varButtons.value || ((v = r.varButtons.value) == null ? void 0 : v.length) === 0)
12062
12119
  return null;
12063
- switch ((v = r.varGridConfig.value) == null ? void 0 : v.button_display_type) {
12120
+ switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
12064
12121
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
12065
12122
  return p();
12066
12123
  default:
12067
12124
  return g();
12068
12125
  }
12069
12126
  }
12070
- function c(_) {
12127
+ function c(v) {
12071
12128
  return createVNode(KgButtonItem, {
12072
- kgButton: _,
12073
- kgVarName: _.var_nam,
12074
- kgType: _.typ,
12075
- kgIcon: _.icon,
12076
- kgText: l(_),
12077
- kgColor: _.color,
12078
- kgPrimary: i(_),
12079
- kgDisabled: s(_),
12080
- onKgClick: () => o(_)
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)
12081
12138
  }, null);
12082
12139
  }
12083
12140
  function g() {
12084
- var _;
12085
- return (_ = r.varButtons.value) == null ? void 0 : _.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH).map((v) => c(v));
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));
12086
12143
  }
12087
12144
  function p() {
12088
12145
  return createVNode(Dropdown, {
@@ -12096,11 +12153,11 @@ const getProps$e = () => ({
12096
12153
  }),
12097
12154
  overlay: () => createVNode(Menu, null, {
12098
12155
  default: () => {
12099
- var _, v;
12100
- return [(v = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : v.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
12101
- let b;
12102
- return createVNode(Menu.Item, null, _isSlot$3(b = c(m)) ? b : {
12103
- default: () => [b]
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: () => [_]
12104
12161
  });
12105
12162
  })];
12106
12163
  }
@@ -12108,14 +12165,14 @@ const getProps$e = () => ({
12108
12165
  });
12109
12166
  }
12110
12167
  return () => {
12111
- let _;
12168
+ let v;
12112
12169
  return createVNode("div", {
12113
12170
  class: "kg-button",
12114
12171
  "kg-frm-id": r.formID
12115
12172
  }, [createVNode(Spin, {
12116
12173
  spinning: a.value
12117
- }, _isSlot$3(_ = u()) ? _ : {
12118
- default: () => [_]
12174
+ }, _isSlot$3(v = u()) ? v : {
12175
+ default: () => [v]
12119
12176
  })]);
12120
12177
  };
12121
12178
  }
@@ -12150,32 +12207,38 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
12150
12207
  getters: {
12151
12208
  getIsReady(e) {
12152
12209
  return (t) => {
12153
- var a;
12210
+ var n;
12154
12211
  if (!t)
12155
12212
  return Logger.error("formID \u4E3A\u7A7A."), !1;
12156
- const n = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
12157
- return !!e.isReadyMap.get(n || t);
12213
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12214
+ return !!e.isReadyMap.get(r || t);
12158
12215
  };
12159
12216
  },
12160
12217
  getModel(e) {
12161
12218
  return (t) => {
12162
- var a, o;
12219
+ var n, a;
12163
12220
  if (!t)
12164
12221
  return Logger.error("formID \u4E3A\u7A7A."), null;
12165
- const n = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
12166
- return (o = e.modelMap.get(n || t)) != null ? o : null;
12222
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12223
+ return (a = e.modelMap.get(r || t)) != null ? a : null;
12167
12224
  };
12168
12225
  },
12169
12226
  getSearchFn(e) {
12170
12227
  return (t) => {
12171
- var r;
12172
- return t ? (r = e.searchFnMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12228
+ var n, a;
12229
+ if (!t)
12230
+ return Logger.error("formID \u4E3A\u7A7A."), null;
12231
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12232
+ return (a = e.searchFnMap.get(r || t)) != null ? a : null;
12173
12233
  };
12174
12234
  },
12175
12235
  getResetFn(e) {
12176
12236
  return (t) => {
12177
- var r;
12178
- return t ? (r = e.resetFnMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12237
+ var n, a;
12238
+ if (!t)
12239
+ return Logger.error("formID \u4E3A\u7A7A."), null;
12240
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12241
+ return (a = e.resetFnMap.get(r || t)) != null ? a : null;
12179
12242
  };
12180
12243
  }
12181
12244
  },
@@ -12517,41 +12580,41 @@ const leftVarProfileDetailColumns = (e) => {
12517
12580
  }) {
12518
12581
  const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
12519
12582
  s.onOpen(async ({
12520
- isCreating: v,
12583
+ isCreating: b,
12521
12584
  isUpdating: m,
12522
- isCopying: b,
12523
- row: T,
12585
+ isCopying: _,
12586
+ row: C,
12524
12587
  model: y
12525
12588
  }) => {
12526
12589
  var E, I, k;
12527
- const C = i.store.getSystemVarProfileDetails(i.formID);
12528
- switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
12529
- case v:
12590
+ const T = i.store.getSystemVarProfileDetails(i.formID);
12591
+ switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
12592
+ case b:
12530
12593
  u.value = [];
12531
12594
  break;
12532
12595
  case m:
12533
- case b:
12534
- if (T != null && T.id)
12596
+ case _:
12597
+ if (C != null && C.id)
12535
12598
  try {
12536
12599
  s.store.setIsLoading(n.formID, !0);
12537
- const F = await QueryByID({
12600
+ const R = await QueryByID({
12538
12601
  params: {
12539
- id: T.id
12602
+ id: C.id
12540
12603
  }
12541
12604
  });
12542
12605
  l.value = l.value.map((O) => {
12543
12606
  var $;
12544
- const D = ($ = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === O.var_nam);
12607
+ const D = ($ = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === O.var_nam);
12545
12608
  return D ? {
12546
12609
  ...O,
12547
12610
  ...D,
12548
12611
  id: O.id
12549
12612
  } : O;
12550
12613
  });
12551
- const R = (I = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12552
- u.value = l.value.filter((O) => R.includes(O.var_nam)).map((O) => O.id);
12553
- } catch (F) {
12554
- throw F;
12614
+ const L = (I = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12615
+ u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
12616
+ } catch (R) {
12617
+ throw R;
12555
12618
  } finally {
12556
12619
  s.store.setIsLoading(n.formID, !1);
12557
12620
  }
@@ -12560,20 +12623,20 @@ const leftVarProfileDetailColumns = (e) => {
12560
12623
  break;
12561
12624
  }
12562
12625
  switch (!0) {
12563
- case b:
12626
+ case _:
12564
12627
  y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
12565
12628
  break;
12566
12629
  }
12567
12630
  return !1;
12568
12631
  }), s.onBeforeOk(async ({
12569
- model: v
12632
+ model: b
12570
12633
  }) => {
12571
- var b, T;
12572
- const m = v.value;
12573
- return m.frm_id = i.formID, m.varProfileDetails = (T = (b = l.value) == null ? void 0 : b.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
12634
+ var _, C;
12635
+ 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;
12574
12637
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12575
- row: v
12576
- }) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
12638
+ row: b
12639
+ }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
12577
12640
  KgUtil.confirm({
12578
12641
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
12579
12642
  okButtonProps: {
@@ -12591,12 +12654,12 @@ const leftVarProfileDetailColumns = (e) => {
12591
12654
  KgSubmit: {
12592
12655
  "KgForm.Item": {
12593
12656
  varProfileDetails: ({
12594
- varName: v,
12657
+ varName: b,
12595
12658
  props: m,
12596
- model: b,
12597
- varConfig: T,
12659
+ model: _,
12660
+ varConfig: C,
12598
12661
  varProfileDetail: y,
12599
- varSubmitField: C
12662
+ varSubmitField: T
12600
12663
  }) => createVNode(Transfer, {
12601
12664
  dataSource: l.value,
12602
12665
  targetKeys: u.value,
@@ -12614,8 +12677,8 @@ const leftVarProfileDetailColumns = (e) => {
12614
12677
  direction: E,
12615
12678
  filteredItems: I,
12616
12679
  selectedKeys: k,
12617
- disabled: F,
12618
- onItemSelectAll: R,
12680
+ disabled: R,
12681
+ onItemSelectAll: L,
12619
12682
  onItemSelect: O
12620
12683
  }) => createVNode(Table, {
12621
12684
  pagination: !1,
@@ -12629,12 +12692,12 @@ const leftVarProfileDetailColumns = (e) => {
12629
12692
  rowKey: "id",
12630
12693
  dataSource: I,
12631
12694
  customRow: (D) => ({
12632
- onClick: ($) => _($, D, E, k)
12695
+ onClick: ($) => v($, D, E, k)
12633
12696
  }),
12634
12697
  rowSelection: g({
12635
- disabled: F,
12698
+ disabled: R,
12636
12699
  selectedKeys: k,
12637
- onItemSelectAll: R,
12700
+ onItemSelectAll: L,
12638
12701
  onItemSelect: O
12639
12702
  })
12640
12703
  }, null)
@@ -12646,46 +12709,46 @@ const leftVarProfileDetailColumns = (e) => {
12646
12709
  p();
12647
12710
  });
12648
12711
  const g = ({
12649
- disabled: v,
12712
+ disabled: b,
12650
12713
  selectedKeys: m,
12651
- onItemSelectAll: b,
12652
- onItemSelect: T
12714
+ onItemSelectAll: _,
12715
+ onItemSelect: C
12653
12716
  }) => ({
12654
12717
  getCheckboxProps: (y) => ({
12655
- disabled: v || y.disabled
12718
+ disabled: b || y.disabled
12656
12719
  }),
12657
- onSelectAll(y, C) {
12658
- const E = C.filter((I) => !I.disabled).map(({
12720
+ onSelectAll(y, T) {
12721
+ const E = T.filter((I) => !I.disabled).map(({
12659
12722
  key: I
12660
12723
  }) => I);
12661
- b(E, y);
12724
+ _(E, y);
12662
12725
  },
12663
12726
  onSelect({
12664
12727
  key: y
12665
- }, C) {
12666
- T(y, C);
12728
+ }, T) {
12729
+ C(y, T);
12667
12730
  },
12668
12731
  selectedRowKeys: m,
12669
12732
  columnWidth: 32
12670
12733
  });
12671
12734
  async function p() {
12672
- const v = watch(a.isReady, async (m) => {
12673
- var b, T;
12674
- m && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
12735
+ const b = watch(a.isReady, async (m) => {
12736
+ var _, C;
12737
+ m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12675
12738
  frm_id: e.hostFormID
12676
- }), (T = (b = a.search).value) == null || T.call(b));
12739
+ }), (C = (_ = a.search).value) == null || C.call(_));
12677
12740
  }, {
12678
12741
  immediate: !0
12679
12742
  });
12680
12743
  }
12681
- function _(v, m, b, T) {
12682
- if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
12683
- switch (T.length = 0, v.detail) {
12744
+ function v(b, m, _, C) {
12745
+ if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12746
+ switch (C.length = 0, b.detail) {
12684
12747
  case 1:
12685
- T[0] = m.id;
12748
+ C[0] = m.id;
12686
12749
  break;
12687
12750
  case 2:
12688
- switch (b) {
12751
+ switch (_) {
12689
12752
  case "left":
12690
12753
  u.value.push(m.id);
12691
12754
  break;
@@ -12796,24 +12859,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12796
12859
  const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
12797
12860
  _useLayoutHeaderResizeObserver();
12798
12861
  const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
12799
- var N;
12800
- return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
12862
+ var x;
12863
+ return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
12801
12864
  }), 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(() => {
12802
- var N, B;
12803
- return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12804
- }), _ = computed(() => !!o.isRetrieving.value), v = computed(() => !!o.isRetrieving.value), m = ref(null), b = ref({
12865
+ var x, H;
12866
+ 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({
12805
12868
  kgHeight: g.value
12806
- }), T = ref({
12869
+ }), C = ref({
12807
12870
  visible: !1
12808
12871
  });
12809
12872
  let y;
12810
- const C = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12811
- var N, B, W;
12812
- if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12813
- return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
12873
+ const T = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12874
+ var x, H, Y;
12875
+ if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
12876
+ return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
12814
12877
  }), k = computed(() => {
12815
- var N;
12816
- switch ((N = E.value) == null ? void 0 : N.primary_flg) {
12878
+ var x;
12879
+ switch ((x = E.value) == null ? void 0 : x.primary_flg) {
12817
12880
  case 1:
12818
12881
  return !0;
12819
12882
  case 0:
@@ -12821,20 +12884,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12821
12884
  default:
12822
12885
  return !0;
12823
12886
  }
12824
- }), F = computed(() => {
12825
- var N;
12826
- return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
12827
- }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), O = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12828
- let N = "kg-search";
12829
- return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
12830
- });
12831
- watch(n.currentVarProfileDetails, (N) => {
12832
- if (N) {
12833
- const B = {};
12834
- N.forEach((W) => {
12835
- B[W.var_nam] = "";
12836
- }), b.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (y == null || y(), y = watch(m, (W) => {
12837
- W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12887
+ }), R = computed(() => {
12888
+ var x;
12889
+ return ((x = i.value) == null ? void 0 : x.vis_flg) === 1;
12890
+ }), L = computed(() => {
12891
+ var x;
12892
+ return ((x = i.value) == null ? void 0 : x.resizable_flg) !== 0;
12893
+ }), O = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), $ = computed(() => {
12894
+ let x = "kg-search";
12895
+ return R.value && (x += " kg-search--visible"), l.value && (x += " kg-search--teleport"), x;
12896
+ });
12897
+ watch(n.currentVarProfileDetails, (x) => {
12898
+ if (x) {
12899
+ const H = {};
12900
+ x.forEach((Y) => {
12901
+ 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) => {
12903
+ Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12838
12904
  }, {
12839
12905
  immediate: !0
12840
12906
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12844,117 +12910,117 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12844
12910
  }), onUnmounted(() => {
12845
12911
  a.store.dispose(n.formID);
12846
12912
  });
12847
- function $(N = !1) {
12848
- F.value ? m.value && m.value.validate().then(() => {
12913
+ function V(x = !1) {
12914
+ R.value ? m.value && m.value.validate().then(() => {
12849
12915
  a.store.emit(n.formID, "search", {
12850
- resetPageIndex: N
12916
+ resetPageIndex: x
12851
12917
  });
12852
- }).catch((B) => {
12918
+ }).catch((H) => {
12853
12919
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12854
- e: B
12920
+ e: H
12855
12921
  });
12856
12922
  }) : a.store.emit(n.formID, "search", {
12857
- resetPageIndex: N
12923
+ resetPageIndex: x
12858
12924
  });
12859
12925
  }
12860
- a.store.setSearchFn(n.formID, $);
12861
- function V() {
12862
- var N;
12863
- (N = m.value) == null || N.resetFields(), F.value ? m.value && m.value.validate().then(() => {
12926
+ a.store.setSearchFn(n.formID, V);
12927
+ function A() {
12928
+ var x;
12929
+ (x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
12864
12930
  a.store.emit(n.formID, "reset");
12865
- }).catch((B) => {
12931
+ }).catch((H) => {
12866
12932
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12867
- e: B
12933
+ e: H
12868
12934
  });
12869
12935
  }) : a.store.emit(n.formID, "reset");
12870
12936
  }
12871
- a.store.setResetFn(n.formID, V);
12937
+ a.store.setResetFn(n.formID, A);
12872
12938
  function M() {
12873
- return $(!0), Promise.resolve(!0);
12939
+ return V(!0), Promise.resolve(!0);
12874
12940
  }
12875
- function A() {
12876
- var N;
12941
+ function w() {
12942
+ var x;
12877
12943
  return createVNode("div", {
12878
12944
  class: "title",
12879
12945
  onClick: G
12880
- }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
12946
+ }, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
12881
12947
  class: "kg-search-title-left",
12882
- onClick: (B) => {
12883
- B.stopPropagation(), B.preventDefault();
12948
+ onClick: (H) => {
12949
+ H.stopPropagation(), H.preventDefault();
12884
12950
  }
12885
- }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12951
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12886
12952
  }
12887
- function w() {
12888
- var N, B, W, Y;
12889
- return ((W = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12890
- value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12891
- "onUpdate:value": (Q) => n.store.setCurrentVarProfileMasterID(n.formID, Q),
12892
- disabled: _.value,
12953
+ function N() {
12954
+ var x, H, Y, X;
12955
+ 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
+ value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
12957
+ "onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
12958
+ disabled: v.value,
12893
12959
  class: "kg-search-profile-master-select"
12894
12960
  }, {
12895
12961
  default: () => {
12896
- var Q, re;
12897
- return (re = (Q = n.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : re.map((Z) => createVNode(Select.Option, {
12898
- value: Z.id
12962
+ 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
12899
12965
  }, {
12900
- default: () => [n.t(Z == null ? void 0 : Z.prf_var_nam).value]
12966
+ default: () => [n.t(ae == null ? void 0 : ae.prf_var_nam).value]
12901
12967
  }));
12902
12968
  },
12903
12969
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12904
12970
  }), createVNode(Button, {
12905
- disabled: _.value,
12971
+ disabled: v.value,
12906
12972
  onClick: () => {
12907
- T.value.visible = !0;
12973
+ C.value.visible = !0;
12908
12974
  },
12909
12975
  class: "kg-search-profile-master-btn"
12910
12976
  }, {
12911
12977
  default: () => [createVNode(SettingOutlined$1, null, null)]
12912
12978
  }), createVNode(KgSearchConfigModal, {
12913
- visible: T.value.visible,
12914
- "onUpdate:visible": (Q) => T.value.visible = Q,
12979
+ visible: C.value.visible,
12980
+ "onUpdate:visible": (Z) => C.value.visible = Z,
12915
12981
  hostFormID: n.formID
12916
12982
  }, null)]);
12917
12983
  }
12918
- function L() {
12919
- var N, B, W, Y, Q;
12920
- return createVNode(Fragment, null, [w(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12984
+ function F() {
12985
+ var x, H, Y, X, Z;
12986
+ return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code)) && createVNode(Button, {
12921
12987
  type: "primary",
12922
12988
  ghost: !p.value,
12923
12989
  disabled: p.value,
12924
- onClick: V,
12990
+ onClick: A,
12925
12991
  class: "kg-search-btn-reset"
12926
12992
  }, {
12927
12993
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12928
12994
  }), createVNode(KgButton.Item, {
12929
12995
  kgType: KG_BUTTON_TYPE.SEARCH,
12930
- kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
12931
- kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12996
+ kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
12997
+ kgIcon: (X = E.value) == null ? void 0 : X.icon,
12932
12998
  kgText: I.value,
12933
- kgColor: (Q = E.value) == null ? void 0 : Q.color,
12999
+ kgColor: (Z = E.value) == null ? void 0 : Z.color,
12934
13000
  kgPrimary: k.value,
12935
- kgLoading: v.value,
13001
+ kgLoading: b.value,
12936
13002
  onKgClick: M
12937
13003
  }, null)]);
12938
13004
  }
12939
- function x() {
13005
+ function U() {
12940
13006
  return createVNode(Spin, {
12941
- spinning: O.value
13007
+ spinning: D.value
12942
13008
  }, {
12943
13009
  default: () => {
12944
- var N;
13010
+ var x;
12945
13011
  return [createVNode(KgForm, {
12946
13012
  ref: m,
12947
- model: (N = a.model.value) != null ? N : {}
13013
+ model: (x = a.model.value) != null ? x : {}
12948
13014
  }, {
12949
13015
  default: () => [createVNode(Row, {
12950
13016
  gutter: 6
12951
13017
  }, {
12952
13018
  default: () => {
12953
- var B;
12954
- return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
12955
- kgVarName: W.var_nam,
13019
+ var H;
13020
+ return [(H = n.currentVarProfileDetails.value) == null ? void 0 : H.map((Y) => createVNode(KgForm.Item, {
13021
+ kgVarName: Y.var_nam,
12956
13022
  kgContext: KG_FORM_CONTEXT.SEARCH,
12957
- onKgSubmit: () => $(!0)
13023
+ onKgSubmit: () => V(!0)
12958
13024
  }, null))];
12959
13025
  }
12960
13026
  })]
@@ -12963,17 +13029,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12963
13029
  });
12964
13030
  }
12965
13031
  function G() {
12966
- C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
13032
+ T.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
12967
13033
  }
12968
13034
  return () => createVNode(KgResizable, {
12969
- kgHeight: b.value.kgHeight,
12970
- "onUpdate:kgHeight": (N) => b.value.kgHeight = N,
13035
+ kgHeight: _.value.kgHeight,
13036
+ "onUpdate:kgHeight": (x) => _.value.kgHeight = x,
12971
13037
  kgMinHeight: g.value,
12972
13038
  kgMaxHeight: c.value,
12973
- class: D.value,
13039
+ kgDisabled: !L.value,
13040
+ class: $.value,
12974
13041
  "kg-frm-id": n.formID
12975
13042
  }, {
12976
- default: () => [F.value && createVNode("div", {
13043
+ default: () => [R.value && createVNode("div", {
12977
13044
  class: "ant-collapse ant-collapse-icon-position-left"
12978
13045
  }, [createVNode("div", {
12979
13046
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12984,17 +13051,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12984
13051
  default: () => [createVNode("div", {
12985
13052
  class: "ant-collapse-header"
12986
13053
  }, [createVNode(Spin, {
12987
- spinning: R.value
13054
+ spinning: O.value
12988
13055
  }, {
12989
- default: () => [A(), createVNode("div", {
13056
+ default: () => [w(), createVNode("div", {
12990
13057
  class: "ant-collapse-extra"
12991
- }, [L()])]
13058
+ }, [F()])]
12992
13059
  })])]
12993
13060
  }), createVNode("div", {
12994
13061
  class: "ant-collapse-content ant-collapse-content-active"
12995
13062
  }, [createVNode("div", {
12996
13063
  class: "ant-collapse-content-box"
12997
- }, [x()])])])])]
13064
+ }, [U()])])])])]
12998
13065
  });
12999
13066
  }
13000
13067
  });
@@ -13051,39 +13118,39 @@ function useMagicKeys(e = {}) {
13051
13118
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
13052
13119
  return {};
13053
13120
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13054
- function g(m, b) {
13055
- m in l && (t ? l[m] = b : l[m].value = b);
13121
+ function g(m, _) {
13122
+ m in l && (t ? l[m] = _ : l[m].value = _);
13056
13123
  }
13057
13124
  function p() {
13058
13125
  for (const m of c)
13059
13126
  g(m, !1);
13060
13127
  }
13061
- function _(m, b) {
13062
- var T, y;
13063
- const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, C].filter(Boolean);
13064
- E && (b ? s.add(m.code) : s.delete(m.code));
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));
13065
13132
  for (const k of I)
13066
- c.add(k), g(k, b);
13067
- C === "meta" && !b ? (u.forEach((k) => {
13133
+ c.add(k), g(k, _);
13134
+ T === "meta" && !_ ? (u.forEach((k) => {
13068
13135
  s.delete(k), g(k, !1);
13069
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...I].forEach((k) => u.add(k));
13070
- }
13071
- 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 }));
13072
- const v = new Proxy(l, {
13073
- get(m, b, T) {
13074
- if (typeof b != "string")
13075
- return Reflect.get(m, b, T);
13076
- if (b = b.toLowerCase(), b in n && (b = n[b]), !(b in l))
13077
- if (/[+_-]/.test(b)) {
13078
- const C = b.split(/[+_-]/g).map((E) => E.trim());
13079
- l[b] = computed(() => C.every((E) => unref(v[E])));
13136
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...I].forEach((k) => u.add(k));
13137
+ }
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 }));
13139
+ 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])));
13080
13147
  } else
13081
- l[b] = ref(!1);
13082
- const y = Reflect.get(m, b, T);
13148
+ l[_] = ref(!1);
13149
+ const y = Reflect.get(m, _, C);
13083
13150
  return t ? unref(y) : y;
13084
13151
  }
13085
13152
  });
13086
- return v;
13153
+ return b;
13087
13154
  }
13088
13155
  var SwipeDirection;
13089
13156
  (function(e) {
@@ -13465,58 +13532,58 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13465
13532
  columnWidth: 32,
13466
13533
  hideSelectAll: !0,
13467
13534
  selectedRowKeys: g,
13468
- onSelect: (V) => F(V)
13469
- }), _ = ref({
13535
+ onSelect: (V) => R(V)
13536
+ }), v = ref({
13470
13537
  visible: !1
13471
- }), v = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13538
+ }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13472
13539
  var V;
13473
13540
  return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13474
- }), b = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13541
+ }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13475
13542
  watch(() => n.getSelectedVar, (V) => {
13476
13543
  V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13477
13544
  }, {
13478
13545
  immediate: !0
13479
13546
  }), watch(() => n.getSelectedVarCatalog, async (V) => {
13480
- var M, A;
13481
- l.value.var_text = (M = V == null ? void 0 : V.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
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();
13482
13549
  });
13483
13550
  async function y(V = !1) {
13484
- var M, A, w;
13551
+ var A, M, w;
13485
13552
  a.value = !0;
13486
13553
  try {
13487
13554
  const {
13488
- records: L
13555
+ records: N
13489
13556
  } = await List({
13490
13557
  params: {
13491
13558
  pageNo: 1,
13492
13559
  pageSize: 999,
13493
13560
  frm_id: e == null ? void 0 : e.value,
13494
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13561
+ var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
13495
13562
  column: "frm_id,locale_id,cust_lvl",
13496
13563
  order: "asc"
13497
13564
  }
13498
13565
  });
13499
- if (c.value = null, u.value = L != null ? L : [], V) {
13500
- const x = u.value.find((G) => {
13501
- var N;
13502
- return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
13566
+ if (c.value = null, u.value = N != null ? N : [], V) {
13567
+ const F = u.value.find((U) => {
13568
+ var G;
13569
+ return U.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
13503
13570
  });
13504
- n.setSelectedVarCatalog(x != null ? x : null), g.value = x != null && x.id ? [x.id] : [];
13571
+ n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
13505
13572
  } else
13506
- n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13507
- } catch (L) {
13508
- Logger.debug(L == null ? void 0 : L.message);
13573
+ n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13574
+ } catch (N) {
13575
+ Logger.debug(N == null ? void 0 : N.message);
13509
13576
  } finally {
13510
13577
  a.value = !1;
13511
13578
  }
13512
13579
  }
13513
- async function C() {
13514
- var V, M, A;
13580
+ async function T() {
13581
+ var V, A, M;
13515
13582
  try {
13516
13583
  o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
13517
13584
  const w = new VarCatalog({
13518
- ...(M = n.getSelectedVarCatalog) != null ? M : {},
13519
- var_text: (A = l.value) == null ? void 0 : A.var_text
13585
+ ...(A = n.getSelectedVarCatalog) != null ? A : {},
13586
+ var_text: (M = l.value) == null ? void 0 : M.var_text
13520
13587
  });
13521
13588
  w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
13522
13589
  data: w
@@ -13545,23 +13612,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13545
13612
  }
13546
13613
  function E({
13547
13614
  isAllForm: V,
13548
- isAllLanguage: M
13615
+ isAllLanguage: A
13549
13616
  }) {
13550
- var A, w, L;
13617
+ var M, w, N;
13551
13618
  c.value = new VarCatalog({
13552
13619
  id: "",
13553
13620
  cust_lvl: KG_CUSTOM_LEVEL.L10,
13554
- grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
13621
+ grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
13555
13622
  var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13556
13623
  frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13557
- locale_id: M ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
13624
+ locale_id: A ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13558
13625
  var_text: ""
13559
13626
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
13560
13627
  }
13561
13628
  function I() {
13562
- var M;
13629
+ var A;
13563
13630
  u.value = without$1(u.value, c.value), c.value = null;
13564
- const V = (M = u.value[0]) != null ? M : null;
13631
+ const V = (A = u.value[0]) != null ? A : null;
13565
13632
  n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
13566
13633
  }
13567
13634
  function k() {
@@ -13581,24 +13648,24 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13581
13648
  }
13582
13649
  });
13583
13650
  }
13584
- function F(V) {
13585
- var M;
13586
- ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== V.id && (unref(c) ? KgUtil.confirm({
13651
+ function R(V) {
13652
+ var A;
13653
+ ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) !== V.id && (unref(c) ? KgUtil.confirm({
13587
13654
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
13588
13655
  onOk: () => {
13589
13656
  u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
13590
13657
  }
13591
13658
  }) : (n.setSelectedVarCatalog(unref(V)), g.value = [V.id]));
13592
13659
  }
13593
- function R() {
13594
- _.value.visible = !0;
13660
+ function L() {
13661
+ v.value.visible = !0;
13595
13662
  }
13596
13663
  function O() {
13597
13664
  return createVNode("div", {
13598
13665
  class: "buttons"
13599
13666
  }, [createVNode(Button, {
13600
- onClick: R,
13601
- disabled: v.value,
13667
+ onClick: L,
13668
+ disabled: b.value,
13602
13669
  type: "primary"
13603
13670
  }, {
13604
13671
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -13613,13 +13680,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13613
13680
  })]);
13614
13681
  }
13615
13682
  function D() {
13616
- let V, M;
13683
+ let V, A;
13617
13684
  return createVNode("div", {
13618
13685
  class: "form"
13619
13686
  }, [createVNode(Form, {
13620
13687
  ref: i,
13621
13688
  model: l.value,
13622
- onSubmit: C
13689
+ onSubmit: T
13623
13690
  }, {
13624
13691
  default: () => [createVNode(Form.Item, {
13625
13692
  name: "var_text",
@@ -13630,7 +13697,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13630
13697
  }, {
13631
13698
  default: () => [createVNode(Textarea, {
13632
13699
  value: l.value.var_text,
13633
- "onUpdate:value": (A) => l.value.var_text = A,
13700
+ "onUpdate:value": (M) => l.value.var_text = M,
13634
13701
  disabled: !n.getSelectedVarCatalog
13635
13702
  }, null), createVNode("button", {
13636
13703
  hidden: !0
@@ -13639,23 +13706,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13639
13706
  }), createVNode("div", {
13640
13707
  class: "buttons"
13641
13708
  }, [createVNode(Button, {
13642
- disabled: b.value,
13709
+ disabled: _.value,
13643
13710
  onClick: I
13644
13711
  }, _isSlot(V = t.t("common.cancelText")) ? V : {
13645
13712
  default: () => [V]
13646
13713
  }), createVNode(Button, {
13647
13714
  loading: o.value,
13648
- disabled: T.value,
13649
- onClick: C,
13715
+ disabled: C.value,
13716
+ onClick: T,
13650
13717
  type: "primary"
13651
- }, _isSlot(M = t.t("common.save")) ? M : {
13652
- default: () => [M]
13718
+ }, _isSlot(A = t.t("common.save")) ? A : {
13719
+ default: () => [A]
13653
13720
  })])]);
13654
13721
  }
13655
13722
  function $(V) {
13656
- var A;
13657
- let M = "";
13658
- return V.id || (M += " ant-table-row-create"), V.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
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;
13659
13726
  }
13660
13727
  return () => createVNode("div", {
13661
13728
  class: "kg-var-config-modal-var-var-catalog"
@@ -13674,11 +13741,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13674
13741
  rowClassName: $,
13675
13742
  rowSelection: p.value,
13676
13743
  customRow: (V) => ({
13677
- onClick: () => F(V)
13744
+ onClick: () => R(V)
13678
13745
  })
13679
13746
  }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13680
- visible: _.value.visible,
13681
- "onUpdate:visible": (V) => _.value.visible = V,
13747
+ visible: v.value.visible,
13748
+ "onUpdate:visible": (V) => v.value.visible = V,
13682
13749
  onKgOk: E
13683
13750
  }, null)]);
13684
13751
  }
@@ -14007,40 +14074,40 @@ const KgWarehouse$1 = "", getProps = () => ({
14007
14074
  customRender: ({
14008
14075
  record: E
14009
14076
  }) => {
14010
- var k, F, R;
14077
+ var k, R, L;
14011
14078
  const I = E;
14012
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (F = I.whId) != null ? F : " "]), createVNode("div", {
14079
+ return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
14013
14080
  class: "address"
14014
- }, [(R = I.adrId) != null ? R : " "])]);
14081
+ }, [(L = I.adrId) != null ? L : " "])]);
14015
14082
  }
14016
14083
  }]), c = ref([]), g = computed(() => {
14017
14084
  var I;
14018
14085
  const E = (I = o.value) == null ? void 0 : I.toUpperCase();
14019
14086
  return c.value.filter((k) => {
14020
- var F, R, O, D, $, V;
14021
- return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.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));
14087
+ var R, L, O, D, $, V;
14088
+ 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));
14022
14089
  });
14023
14090
  }), p = computed(() => {
14024
14091
  var E, I;
14025
14092
  return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14026
14093
  });
14027
14094
  watch(n.visible, (E) => {
14028
- !p.value || (E ? v() : m());
14095
+ !p.value || (E ? b() : m());
14029
14096
  }, {
14030
14097
  immediate: !0
14031
14098
  }), onMounted(() => {
14032
14099
  n.store.emit("mounted");
14033
14100
  });
14034
- function _() {
14101
+ function v() {
14035
14102
  !p.value || n.store.setVisible(!0);
14036
14103
  }
14037
- function v() {
14038
- i.value = n.warehouse.value, T();
14104
+ function b() {
14105
+ i.value = n.warehouse.value, C();
14039
14106
  }
14040
14107
  function m() {
14041
14108
  o.value = "", c.value = [], i.value = null;
14042
14109
  }
14043
- function b() {
14110
+ function _() {
14044
14111
  var E;
14045
14112
  !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({
14046
14113
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14054,7 +14121,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14054
14121
  }
14055
14122
  })), n.store.setVisible(!1));
14056
14123
  }
14057
- async function T() {
14124
+ async function C() {
14058
14125
  l.value = !0;
14059
14126
  try {
14060
14127
  const {
@@ -14079,11 +14146,11 @@ const KgWarehouse$1 = "", getProps = () => ({
14079
14146
  ((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
14080
14147
  break;
14081
14148
  case 2:
14082
- i.value = I, b();
14149
+ i.value = I, _();
14083
14150
  break;
14084
14151
  }
14085
14152
  }
14086
- function C() {
14153
+ function T() {
14087
14154
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14088
14155
  title: r.t("kg.KgWarehouse.warehouse"),
14089
14156
  placement: "bottomRight"
@@ -14107,7 +14174,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14107
14174
  okButtonProps: {
14108
14175
  disabled: l.value || !i.value
14109
14176
  },
14110
- onOk: b
14177
+ onOk: _
14111
14178
  }, {
14112
14179
  default: () => [createVNode(Input, {
14113
14180
  value: o.value,
@@ -14143,8 +14210,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14143
14210
  }
14144
14211
  return () => createVNode("div", {
14145
14212
  class: a.value,
14146
- onClick: _
14147
- }, [C()]);
14213
+ onClick: v
14214
+ }, [T()]);
14148
14215
  }
14149
14216
  });
14150
14217
  function createKgWarehouseGuard(e, t) {
@@ -14228,6 +14295,7 @@ export {
14228
14295
  Logger,
14229
14296
  UpdateVarGridMasterQuery,
14230
14297
  VarButton,
14298
+ VarButtonConfig,
14231
14299
  VarCatalog,
14232
14300
  VarContext,
14233
14301
  VarDTO,