@kengic/vue 0.5.34-beta.0 → 0.5.34

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;
@@ -8857,11 +8889,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8857
8889
  },
8858
8890
  getVarButtonSearch(e) {
8859
8891
  return (t) => {
8860
- var o, s;
8892
+ var a, o, s;
8861
8893
  if (!t)
8862
8894
  return Logger.error("formID \u4E3A\u7A7A."), null;
8863
- const n = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id, a = e.varButtonMap.get(n || t);
8864
- return (s = a == null ? void 0 : a.find((i) => i.typ === KG_BUTTON_TYPE.SEARCH)) != null ? s : null;
8895
+ let r = e.varButtonMap.get(t), n = (a = r == null ? void 0 : r.find((i) => i.typ === KG_BUTTON_TYPE.SEARCH)) != null ? a : null;
8896
+ if (!n) {
8897
+ const l = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id;
8898
+ r = e.varButtonMap.get(l || t), n = (s = r == null ? void 0 : r.find((u) => u.typ === KG_BUTTON_TYPE.SEARCH)) != null ? s : null;
8899
+ }
8900
+ return n;
8865
8901
  };
8866
8902
  },
8867
8903
  getVarButtonCreate(e) {
@@ -9105,19 +9141,20 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9105
9141
  varVariableInputs: c,
9106
9142
  varPossibilities: g,
9107
9143
  varButtons: p,
9108
- varSubmitConfig: _,
9109
- varSubmitFields: v,
9110
- varProfile: m,
9111
- varProfileConfig: b,
9112
- varGrid: T,
9113
- varGridConfig: y
9144
+ varButtonConfig: v,
9145
+ varSubmitConfig: b,
9146
+ varSubmitFields: m,
9147
+ varProfile: _,
9148
+ varProfileConfig: C,
9149
+ varGrid: y,
9150
+ varGridConfig: T
9114
9151
  } = await GetAll({ params: { frm_id: e } });
9115
- 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, {
9116
- varProfile: m != null ? m : null,
9117
- 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
9118
- }), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
9119
- varGrid: transformVarGridDTO(T),
9120
- 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
9121
9158
  }), this.emit(e, "ready");
9122
9159
  } catch (i) {
9123
9160
  throw i;
@@ -9248,12 +9285,12 @@ function useKgVar(e, t, r = 0) {
9248
9285
  i.leave(s);
9249
9286
  }));
9250
9287
  const l = ($) => computed(() => {
9251
- var V, M, A;
9252
- return (A = (M = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? M : $) != null ? A : "";
9253
- }), 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(() => {
9288
+ var V, A, M;
9289
+ return (M = (A = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? A : $) != null ? M : "";
9290
+ }), 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(() => {
9254
9291
  var $, V;
9255
- return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9256
- }), 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));
9292
+ return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9293
+ }), 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));
9257
9294
  return {
9258
9295
  formID: s,
9259
9296
  store: i,
@@ -9261,18 +9298,18 @@ function useKgVar(e, t, r = 0) {
9261
9298
  isRetrievingVarProfileMaster: c,
9262
9299
  isRetrievingVarGridMaster: g,
9263
9300
  isCreating: p,
9264
- isUpdating: _,
9265
- isCopying: v,
9301
+ isUpdating: v,
9302
+ isCopying: b,
9266
9303
  isDeleting: m,
9267
- isOtherRequesting: b,
9268
- varButtons: T,
9304
+ isOtherRequesting: _,
9305
+ varButtons: C,
9269
9306
  varProfileMasters: y,
9270
- currentVarProfileMaster: C,
9307
+ currentVarProfileMaster: T,
9271
9308
  currentVarProfileMasterID: E,
9272
9309
  currentVarProfileDetails: I,
9273
9310
  varGridConfig: k,
9274
- varGridMasters: F,
9275
- currentVarGridMaster: R,
9311
+ varGridMasters: R,
9312
+ currentVarGridMaster: L,
9276
9313
  systemVarGridDetails: O,
9277
9314
  currentVarGridDetails: D,
9278
9315
  t: l,
@@ -9511,8 +9548,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9511
9548
  }) => {
9512
9549
  const c = o.store.getVarSubmitConfig(o.formID);
9513
9550
  return i = watch(u, (g) => {
9514
- var p, _, v, m, b, T, y, C, E, I, k, F;
9515
- 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);
9551
+ var p, v, b, m, _, C, y, T, E, I, k, R;
9552
+ 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);
9516
9553
  }, {
9517
9554
  immediate: !0
9518
9555
  }), !1;
@@ -9558,12 +9595,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9558
9595
  function p() {
9559
9596
  c.value = !0;
9560
9597
  }
9561
- function _() {
9598
+ function v() {
9562
9599
  r("kgCancel");
9563
9600
  }
9564
- function v() {
9565
- var T;
9566
- return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
9601
+ function b() {
9602
+ var C;
9603
+ return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9567
9604
  onClick: g,
9568
9605
  class: "kg-submit--btn-fullscreen"
9569
9606
  }, {
@@ -9581,60 +9618,60 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9581
9618
  hostFormID: a.formID
9582
9619
  }, null)]) : null;
9583
9620
  }
9584
- function b() {
9621
+ function _() {
9585
9622
  return createVNode(Button, {
9586
9623
  disabled: u.value || l.value,
9587
9624
  class: "kg-submit--btn-close",
9588
- onClick: _
9625
+ onClick: v
9589
9626
  }, {
9590
9627
  default: () => [createVNode(CloseOutlined$1, null, null)]
9591
9628
  });
9592
9629
  }
9593
- return () => createVNode(Fragment, null, [m(), v(), b()]);
9630
+ return () => createVNode(Fragment, null, [m(), b(), _()]);
9594
9631
  }
9595
9632
  }), 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;
9596
9633
  function _useFormModel() {
9597
9634
  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(() => {
9598
- var v, m, b, T;
9635
+ var b, m, _, C;
9599
9636
  switch (!0) {
9600
9637
  case a.value:
9601
- return (v = l.value) != null ? v : [];
9638
+ return (b = l.value) != null ? b : [];
9602
9639
  case o.value:
9603
9640
  return (m = u.value) != null ? m : [];
9604
9641
  case s.value:
9605
- return (b = c.value) != null ? b : [];
9642
+ return (_ = c.value) != null ? _ : [];
9606
9643
  case i.value:
9607
- return (T = g.value) != null ? T : [];
9644
+ return (C = g.value) != null ? C : [];
9608
9645
  }
9609
9646
  return [];
9610
- }), _ = ref({});
9611
- return watch(p, (v) => {
9612
- if (_.value = {}, v != null && v.length) {
9647
+ }), v = ref({});
9648
+ return watch(p, (b) => {
9649
+ if (v.value = {}, b != null && b.length) {
9613
9650
  const m = r.selectedRow.value;
9614
- v.forEach((b) => {
9615
- var y, C, E, I, k, F, R, O;
9616
- const T = (y = b.var_nam) != null ? y : "";
9617
- switch (_.value[T] = void 0, !0) {
9651
+ b.forEach((_) => {
9652
+ var y, T, E, I, k, R, L, O;
9653
+ const C = (y = _.var_nam) != null ? y : "";
9654
+ switch (v.value[C] = void 0, !0) {
9618
9655
  case a.value:
9619
- _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = b.crt_dft_val) != null ? C : void 0);
9656
+ v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = _.crt_dft_val) != null ? T : void 0);
9620
9657
  break;
9621
9658
  case o.value:
9622
- _.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);
9659
+ 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);
9623
9660
  break;
9624
9661
  case s.value:
9625
- _.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);
9662
+ 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);
9626
9663
  break;
9627
9664
  case i.value:
9628
- _.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);
9665
+ 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);
9629
9666
  break;
9630
9667
  }
9631
9668
  });
9632
9669
  }
9633
- n.store.setModel(t.formID, _.value);
9670
+ n.store.setModel(t.formID, v.value);
9634
9671
  }, {
9635
9672
  immediate: !0
9636
9673
  }), {
9637
- model: _
9674
+ model: v
9638
9675
  };
9639
9676
  }
9640
9677
  function _useResizeObserver$1(e) {
@@ -9671,23 +9708,23 @@ function _useTitle() {
9671
9708
  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));
9672
9709
  return {
9673
9710
  title: computed(() => {
9674
- var g, p, _, v;
9711
+ var g, p, v, b;
9675
9712
  switch (!0) {
9676
9713
  case r.value: {
9677
- const m = (g = s.value) == null ? void 0 : g.var_nam, b = t.t(m).value;
9678
- return m === b ? e.t("kg.create") : b;
9714
+ const m = (g = s.value) == null ? void 0 : g.var_nam, _ = t.t(m).value;
9715
+ return m === _ ? e.t("kg.create") : _;
9679
9716
  }
9680
9717
  case n.value: {
9681
- const m = (p = i.value) == null ? void 0 : p.var_nam, b = t.t(m).value;
9682
- return m === b ? e.t("kg.update") : b;
9718
+ const m = (p = i.value) == null ? void 0 : p.var_nam, _ = t.t(m).value;
9719
+ return m === _ ? e.t("kg.update") : _;
9683
9720
  }
9684
9721
  case a.value: {
9685
- const m = (_ = l.value) == null ? void 0 : _.var_nam, b = t.t(m).value;
9686
- return m === b ? e.t("kg.copy") : b;
9722
+ const m = (v = l.value) == null ? void 0 : v.var_nam, _ = t.t(m).value;
9723
+ return m === _ ? e.t("kg.copy") : _;
9687
9724
  }
9688
9725
  case o.value: {
9689
- const m = (v = u.value) == null ? void 0 : v.var_nam, b = t.t(m).value;
9690
- return m === b ? e.t("kg.delete") : b;
9726
+ const m = (b = u.value) == null ? void 0 : b.var_nam, _ = t.t(m).value;
9727
+ return m === _ ? e.t("kg.delete") : _;
9691
9728
  }
9692
9729
  }
9693
9730
  return "";
@@ -9710,9 +9747,9 @@ function _useLayout() {
9710
9747
  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));
9711
9748
  return {
9712
9749
  getLayout: computed(() => {
9713
- var _, v, m, b, T;
9750
+ var v, b, m, _, C;
9714
9751
  let i = "vertical";
9715
- 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;
9752
+ 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;
9716
9753
  switch (!0) {
9717
9754
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9718
9755
  i = "horizontal";
@@ -9735,9 +9772,9 @@ function _useDisplayType() {
9735
9772
  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));
9736
9773
  return {
9737
9774
  getDisplayType: computed(() => {
9738
- var v, m, b, T, y;
9775
+ var b, m, _, C, y;
9739
9776
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9740
- 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;
9777
+ 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;
9741
9778
  switch (!0) {
9742
9779
  case (t.value && (c === l || !c && u === l)):
9743
9780
  i = l;
@@ -9748,7 +9785,7 @@ function _useDisplayType() {
9748
9785
  case (n.value && (p === l || !p && u === l)):
9749
9786
  i = l;
9750
9787
  break;
9751
- case (a.value && (_ === l || !_)):
9788
+ case (a.value && (v === l || !v)):
9752
9789
  i = l;
9753
9790
  break;
9754
9791
  }
@@ -9760,8 +9797,10 @@ function _useDefaultWidth() {
9760
9797
  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));
9761
9798
  return {
9762
9799
  getDefaultWidth: computed(() => {
9763
- var _, v, m, b, T;
9764
- 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;
9800
+ var v, b, m, _, C;
9801
+ if (!o.value)
9802
+ return 0;
9803
+ 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;
9765
9804
  let p = i || DEFAULT_WIDTH;
9766
9805
  switch (!0) {
9767
9806
  case (t.value && !!l):
@@ -9799,68 +9838,68 @@ const getProps$p = () => ({
9799
9838
  }) {
9800
9839
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9801
9840
  _useFormModel();
9802
- 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(() => {
9803
- var U, z, X;
9841
+ 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(() => {
9842
+ var B, W, Q;
9804
9843
  switch (!0) {
9805
9844
  case u.value:
9806
- return (U = E.value) != null ? U : [];
9845
+ return (B = E.value) != null ? B : [];
9807
9846
  case c.value:
9808
- return (z = k.value) != null ? z : [];
9847
+ return (W = k.value) != null ? W : [];
9809
9848
  case g.value:
9810
- return (X = R.value) != null ? X : [];
9849
+ return (Q = L.value) != null ? Q : [];
9811
9850
  case p.value:
9812
9851
  return [];
9813
9852
  }
9814
9853
  return [];
9815
9854
  }), V = computed(() => {
9816
- var U, z, X, te;
9855
+ var B, W, Q, te;
9817
9856
  switch (!0) {
9818
9857
  case u.value:
9819
- return (U = I.value) != null ? U : [];
9858
+ return (B = I.value) != null ? B : [];
9820
9859
  case c.value:
9821
- return (z = F.value) != null ? z : [];
9860
+ return (W = R.value) != null ? W : [];
9822
9861
  case g.value:
9823
- return (X = O.value) != null ? X : [];
9862
+ return (Q = O.value) != null ? Q : [];
9824
9863
  case p.value:
9825
9864
  return (te = D.value) != null ? te : [];
9826
9865
  }
9827
9866
  return [];
9828
- }), 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({
9867
+ }), 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({
9829
9868
  kgWidth: 0
9830
- }), x = computed(() => {
9831
- var U;
9832
- return !!(_.value || oe.isFullscreen || ((U = C.value) == null ? void 0 : U.resizable_flg) === 0);
9869
+ }), F = computed(() => {
9870
+ var B;
9871
+ return !!(v.value || se.isFullscreen || ((B = T.value) == null ? void 0 : B.resizable_flg) === 0);
9872
+ }), U = computed(() => {
9873
+ var B, W;
9874
+ return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9833
9875
  }), G = computed(() => {
9834
- var U, z;
9835
- return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9836
- }), N = computed(() => {
9837
- var U, z;
9838
- return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9839
- }), B = computed(() => _.value ? 398 : L.value.kgWidth), W = ref(null), Y = ref({}), Q = ref(null);
9840
- _useResizeObserver$1(Q);
9841
- 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({
9876
+ var B, W;
9877
+ return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9878
+ }), x = computed(() => v.value ? 398 : N.value.kgWidth), H = ref(null), Y = ref({}), X = ref(null);
9879
+ _useResizeObserver$1(X);
9880
+ 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({
9842
9881
  isFullscreen: !1
9843
9882
  }), {
9844
9883
  getDisplayType: de
9845
9884
  } = _useDisplayType(), {
9846
9885
  getClass: P
9847
- } = _useClass(e, oe), {
9886
+ } = _useClass(e, se), {
9848
9887
  getLayout: K
9849
9888
  } = _useLayout(), {
9850
- getDefaultWidth: H
9889
+ getDefaultWidth: z
9851
9890
  } = _useDefaultWidth(), q = computed(() => {
9852
- var U, z, X;
9891
+ var B, W, Q;
9853
9892
  switch (K.value) {
9854
9893
  case "horizontal":
9855
- switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9894
+ switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9856
9895
  case KG_WIDTH_UNIT.SPAN:
9857
9896
  return {
9858
- span: (z = C.value) == null ? void 0 : z.label_col
9897
+ span: (W = T.value) == null ? void 0 : W.label_col
9859
9898
  };
9860
9899
  default:
9861
9900
  return {
9862
9901
  style: {
9863
- width: `${(X = C.value) == null ? void 0 : X.label_col}px`
9902
+ width: `${(Q = T.value) == null ? void 0 : Q.label_col}px`
9864
9903
  }
9865
9904
  };
9866
9905
  }
@@ -9868,13 +9907,13 @@ const getProps$p = () => ({
9868
9907
  return;
9869
9908
  }
9870
9909
  }), ne = computed(() => {
9871
- var U, z;
9910
+ var B, W;
9872
9911
  switch (K.value) {
9873
9912
  case "horizontal":
9874
- switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9913
+ switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9875
9914
  case KG_WIDTH_UNIT.SPAN:
9876
9915
  return {
9877
- span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
9916
+ span: 24 - ((W = T.value) == null ? void 0 : W.label_col)
9878
9917
  };
9879
9918
  default:
9880
9919
  return;
@@ -9883,19 +9922,19 @@ const getProps$p = () => ({
9883
9922
  return;
9884
9923
  }
9885
9924
  });
9886
- watch(ce, (U, z) => {
9887
- U === !0 && J(), z === !0 && U === !1 && pe();
9925
+ watch(ae, (B, W) => {
9926
+ B === !0 && J(), W === !0 && B === !1 && pe();
9888
9927
  }, {
9889
9928
  immediate: !0
9890
- }), watch(H, (U) => {
9891
- U && (L.value.kgWidth = U);
9929
+ }), watch(z, (B) => {
9930
+ B && (N.value.kgWidth = B);
9892
9931
  }, {
9893
9932
  immediate: !0
9894
9933
  });
9895
9934
  function J() {
9896
- var z;
9897
- const U = watch(s.model, (X) => {
9898
- X && Object.keys(X).length > 0 && (setTimeout(() => U()), s.store.emit(a.formID, "open", {
9935
+ var W;
9936
+ const B = watch(s.model, (Q) => {
9937
+ Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
9899
9938
  isCreating: u.value,
9900
9939
  isUpdating: c.value,
9901
9940
  isCopying: g.value,
@@ -9906,10 +9945,10 @@ const getProps$p = () => ({
9906
9945
  }, {
9907
9946
  immediate: !0
9908
9947
  });
9909
- ((z = C.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !_.value && (oe.isFullscreen = !0);
9948
+ ((W = T.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (se.isFullscreen = !0);
9910
9949
  }
9911
9950
  function pe() {
9912
- L.value.kgWidth = H.value, oe.isFullscreen = !1, s.store.emit(a.formID, "close");
9951
+ N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
9913
9952
  }
9914
9953
  function he() {
9915
9954
  switch (!0) {
@@ -9928,7 +9967,7 @@ const getProps$p = () => ({
9928
9967
  }
9929
9968
  }
9930
9969
  async function _e() {
9931
- var U, z;
9970
+ var B, W;
9932
9971
  try {
9933
9972
  if (await s.store.emit(a.formID, "beforeOk", {
9934
9973
  isCreating: u.value,
@@ -9941,11 +9980,11 @@ const getProps$p = () => ({
9941
9980
  }))
9942
9981
  return;
9943
9982
  try {
9944
- await ((U = W.value) == null ? void 0 : U.validate());
9945
- } catch (ae) {
9946
- KgUtil.throwIfNotFormError(ae);
9983
+ await ((B = H.value) == null ? void 0 : B.validate());
9984
+ } catch (oe) {
9985
+ KgUtil.throwIfNotFormError(oe);
9947
9986
  }
9948
- if (await ((z = W.value) == null ? void 0 : z.validate()), await s.store.emit(a.formID, "afterValidate", {
9987
+ if (await ((W = H.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
9949
9988
  isCreating: u.value,
9950
9989
  isUpdating: c.value,
9951
9990
  isCopying: g.value,
@@ -9968,22 +10007,22 @@ const getProps$p = () => ({
9968
10007
  await Ee();
9969
10008
  break;
9970
10009
  }
9971
- } catch (X) {
9972
- KgUtil.throwIfNotFormError(X);
10010
+ } catch (Q) {
10011
+ KgUtil.throwIfNotFormError(Q);
9973
10012
  }
9974
10013
  }
9975
10014
  async function Se() {
9976
- var z, X, te, ae, se, ie, le, ue;
9977
- const U = (z = v.value) == null ? void 0 : z.cmd;
9978
- if (!U) {
10015
+ var W, Q, te, oe, ie, le, ue, ce;
10016
+ const B = (W = b.value) == null ? void 0 : W.cmd;
10017
+ if (!B) {
9979
10018
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9980
- VarButton: v.value
10019
+ VarButton: b.value
9981
10020
  });
9982
10021
  return;
9983
10022
  }
9984
10023
  a.store.setIsCreatingRequesting(a.formID, !0);
9985
10024
  try {
9986
- 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);
10025
+ 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);
9987
10026
  if (await s.store.emit(a.formID, "beforeRequest", {
9988
10027
  isCreating: u.value,
9989
10028
  isUpdating: c.value,
@@ -9995,11 +10034,11 @@ const getProps$p = () => ({
9995
10034
  }))
9996
10035
  return;
9997
10036
  await httpClient().request({
9998
- method: (se = (ae = v.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
9999
- url: U,
10037
+ method: (ie = (oe = b.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10038
+ url: B,
10000
10039
  params: ee,
10001
10040
  data: fe
10002
- }), ((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);
10041
+ }), ((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);
10003
10042
  } catch (ee) {
10004
10043
  console.error(ee);
10005
10044
  } finally {
@@ -10007,9 +10046,9 @@ const getProps$p = () => ({
10007
10046
  }
10008
10047
  }
10009
10048
  async function Ce() {
10010
- var z, X, te, ae, se, ie, le, ue;
10011
- const U = (z = m.value) == null ? void 0 : z.cmd;
10012
- if (!U) {
10049
+ var W, Q, te, oe, ie, le, ue, ce;
10050
+ const B = (W = m.value) == null ? void 0 : W.cmd;
10051
+ if (!B) {
10013
10052
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10014
10053
  VarButton: m.value
10015
10054
  });
@@ -10017,7 +10056,7 @@ const getProps$p = () => ({
10017
10056
  }
10018
10057
  try {
10019
10058
  a.store.setIsUpdatingRequesting(a.formID, !0);
10020
- const ee = KgVarUtil.parseCommandParameter((te = (X = m.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10059
+ const ee = KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10021
10060
  if (await s.store.emit(a.formID, "beforeRequest", {
10022
10061
  isCreating: u.value,
10023
10062
  isUpdating: c.value,
@@ -10029,11 +10068,11 @@ const getProps$p = () => ({
10029
10068
  }))
10030
10069
  return;
10031
10070
  await httpClient().request({
10032
- method: (se = (ae = m.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
10033
- url: U,
10071
+ method: (ie = (oe = m.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10072
+ url: B,
10034
10073
  params: ee,
10035
10074
  data: fe
10036
- }), ((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);
10075
+ }), ((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);
10037
10076
  } catch (ee) {
10038
10077
  console.error(ee);
10039
10078
  } finally {
@@ -10041,21 +10080,21 @@ const getProps$p = () => ({
10041
10080
  }
10042
10081
  }
10043
10082
  async function Te() {
10044
- var z, X, te, ae, se, ie, le, ue, ee, fe;
10045
- const U = (z = b.value) == null ? void 0 : z.cmd;
10046
- if (!U) {
10083
+ var W, Q, te, oe, ie, le, ue, ce, ee, fe;
10084
+ const B = (W = _.value) == null ? void 0 : W.cmd;
10085
+ if (!B) {
10047
10086
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10048
- VarButton: b.value
10087
+ VarButton: _.value
10049
10088
  });
10050
10089
  return;
10051
10090
  }
10052
10091
  try {
10053
10092
  a.store.setIsCopyingRequesting(a.formID, !0);
10054
- const ge = KgVarUtil.parseCommandParameter((te = (X = b.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), me = {
10055
- ...(ae = o.selectedRow.value) != null ? ae : {},
10093
+ const ge = KgVarUtil.parseCommandParameter((te = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10094
+ ...(oe = o.selectedRow.value) != null ? oe : {},
10056
10095
  ...toRaw(s.model.value)
10057
10096
  };
10058
- if (((se = C.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10097
+ if (((ie = T.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10059
10098
  isCreating: u.value,
10060
10099
  isUpdating: c.value,
10061
10100
  isCopying: g.value,
@@ -10066,11 +10105,11 @@ const getProps$p = () => ({
10066
10105
  }))
10067
10106
  return;
10068
10107
  await httpClient().request({
10069
- method: (le = (ie = b.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
10070
- url: U,
10108
+ method: (ue = (le = _.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10109
+ url: B,
10071
10110
  params: ge,
10072
10111
  data: me
10073
- }), ((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);
10112
+ }), ((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);
10074
10113
  } catch (ge) {
10075
10114
  console.error(ge);
10076
10115
  } finally {
@@ -10078,20 +10117,20 @@ const getProps$p = () => ({
10078
10117
  }
10079
10118
  }
10080
10119
  async function Ee() {
10081
- var z, X, te, ae, se, ie, le, ue;
10082
- const U = (z = T.value) == null ? void 0 : z.cmd;
10083
- if (!U) {
10120
+ var W, Q, te, oe, ie, le, ue, ce;
10121
+ const B = (W = C.value) == null ? void 0 : W.cmd;
10122
+ if (!B) {
10084
10123
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10085
- VarButton: T.value
10124
+ VarButton: C.value
10086
10125
  });
10087
10126
  return;
10088
10127
  }
10089
10128
  try {
10090
10129
  a.store.setIsDeletingRequesting(a.formID, !0);
10091
10130
  const ee = {
10092
- ids: (te = (X = o.selectedRows.value) == null ? void 0 : X.map((ge) => {
10131
+ ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
10093
10132
  var me, ve, ye;
10094
- return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10133
+ return (ye = ge[(ve = (me = C.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10095
10134
  })) != null ? te : []
10096
10135
  };
10097
10136
  if (await s.store.emit(a.formID, "beforeRequest", {
@@ -10105,80 +10144,80 @@ const getProps$p = () => ({
10105
10144
  }))
10106
10145
  return;
10107
10146
  await httpClient().request({
10108
- method: (se = (ae = T.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10109
- url: U,
10147
+ method: (ie = (oe = C.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10148
+ url: B,
10110
10149
  params: ee
10111
10150
  }, {
10112
10151
  joinParamsToUrl: !0
10113
- }), ((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);
10152
+ }), ((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);
10114
10153
  } catch (ee) {
10115
10154
  console.error(ee);
10116
10155
  } finally {
10117
10156
  a.store.setIsDeletingRequesting(a.formID, !1);
10118
10157
  }
10119
10158
  }
10120
- function be(U) {
10121
- var X, te;
10122
- const z = (te = (X = l == null ? void 0 : l.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : te[U.var_nam];
10123
- return isFunction$2(z) ? createVNode(KgForm.Item, {
10124
- kgVarName: U.var_nam,
10159
+ function be(B) {
10160
+ var Q, te;
10161
+ const W = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[B.var_nam];
10162
+ return isFunction$2(W) ? createVNode(KgForm.Item, {
10163
+ kgVarName: B.var_nam,
10125
10164
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10126
- kgRules: Y.value[U.var_nam],
10165
+ kgRules: Y.value[B.var_nam],
10127
10166
  onKgSubmit: _e
10128
10167
  }, {
10129
10168
  control: ({
10130
- varName: ae,
10131
- props: se,
10132
- model: ie,
10133
- varConfig: le,
10134
- varProfileDetail: ue,
10169
+ varName: oe,
10170
+ props: ie,
10171
+ model: le,
10172
+ varConfig: ue,
10173
+ varProfileDetail: ce,
10135
10174
  varSubmitField: ee
10136
- }) => z({
10137
- varName: ae,
10138
- props: se,
10139
- model: ie,
10140
- varConfig: le,
10141
- varProfileDetail: ue,
10175
+ }) => W({
10176
+ varName: oe,
10177
+ props: ie,
10178
+ model: le,
10179
+ varConfig: ue,
10180
+ varProfileDetail: ce,
10142
10181
  varSubmitField: ee
10143
10182
  })
10144
10183
  }) : createVNode(KgForm.Item, {
10145
- kgVarName: U.var_nam,
10184
+ kgVarName: B.var_nam,
10146
10185
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10147
- kgRules: Y.value[U.var_nam],
10186
+ kgRules: Y.value[B.var_nam],
10148
10187
  onKgSubmit: _e
10149
10188
  }, null);
10150
10189
  }
10151
10190
  function ke() {
10152
- let U, z;
10191
+ let B, W;
10153
10192
  return createVNode(KgResizable, {
10154
10193
  kgType: de.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10155
- kgMinWidth: G.value,
10156
- kgMaxWidth: N.value,
10157
- kgWidth: B.value,
10158
- kgDisabled: x.value,
10159
- "onUpdate:kgWidth": (X) => L.value.kgWidth = X
10194
+ kgMinWidth: U.value,
10195
+ kgMaxWidth: G.value,
10196
+ kgWidth: x.value,
10197
+ kgDisabled: F.value,
10198
+ "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10160
10199
  }, {
10161
10200
  default: () => [createVNode(Spin, {
10162
10201
  spinning: y.value
10163
10202
  }, {
10164
10203
  default: () => [createVNode(KgForm, {
10165
- ref: W,
10204
+ ref: H,
10166
10205
  model: s.model.value,
10167
10206
  layout: K.value,
10168
10207
  labelCol: q.value,
10169
10208
  wrapperCol: ne.value
10170
10209
  }, {
10171
10210
  default: () => [createVNode("div", {
10172
- ref: Q
10211
+ ref: X
10173
10212
  }, [$.value.length > 0 && createVNode(Row, {
10174
10213
  gutter: 12
10175
- }, _isSlot$7(U = $.value.map(be)) ? U : {
10176
- default: () => [U]
10214
+ }, _isSlot$7(B = $.value.map(be)) ? B : {
10215
+ default: () => [B]
10177
10216
  }), $.value.length > 0 && V.value.length > 0 && createVNode(Divider, null, null), V.value.length > 0 && createVNode(Row, {
10178
10217
  gutter: 12
10179
- }, _isSlot$7(z = V.value.map(be)) ? z : {
10180
- default: () => [z]
10181
- }), _.value && createVNode("div", {
10218
+ }, _isSlot$7(W = V.value.map(be)) ? W : {
10219
+ default: () => [W]
10220
+ }), v.value && createVNode("div", {
10182
10221
  style: "text-align: center; padding: 6px 0 12px;"
10183
10222
  }, [n.t("kg.confirmDelete")])])]
10184
10223
  })]
@@ -10186,48 +10225,48 @@ const getProps$p = () => ({
10186
10225
  });
10187
10226
  }
10188
10227
  function Ie() {
10189
- let U, z;
10228
+ let B, W;
10190
10229
  return createVNode("div", null, [createVNode(Button, {
10191
10230
  type: "primary",
10192
- ghost: !A.value,
10193
- disabled: A.value,
10231
+ ghost: !M.value,
10232
+ disabled: M.value,
10194
10233
  onClick: he
10195
- }, _isSlot$7(U = n.t("kg.cancel")) ? U : {
10196
- default: () => [U]
10234
+ }, _isSlot$7(B = n.t("kg.cancel")) ? B : {
10235
+ default: () => [B]
10197
10236
  }), createVNode(Button, {
10198
10237
  type: "primary",
10199
10238
  disabled: w.value,
10200
- loading: M.value,
10239
+ loading: A.value,
10201
10240
  danger: !!p.value,
10202
10241
  onClick: _e
10203
- }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
10204
- default: () => [z]
10242
+ }, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
10243
+ default: () => [W]
10205
10244
  })]);
10206
10245
  }
10207
10246
  function Ae() {
10208
10247
  return createVNode("div", {
10209
- title: re.title.value
10210
- }, [re.title.value]);
10248
+ title: Z.title.value
10249
+ }, [Z.title.value]);
10211
10250
  }
10212
10251
  function Me() {
10213
10252
  return createVNode(KgSubmitHeader, {
10214
- isFullscreen: oe.isFullscreen,
10215
- "onUpdate:isFullscreen": (U) => oe.isFullscreen = U,
10216
- kgShowFullscreenButton: !_.value,
10217
- kgShowConfigButton: !_.value && e.kgShowConfigButton,
10253
+ isFullscreen: se.isFullscreen,
10254
+ "onUpdate:isFullscreen": (B) => se.isFullscreen = B,
10255
+ kgShowFullscreenButton: !v.value,
10256
+ kgShowConfigButton: !v.value && e.kgShowConfigButton,
10218
10257
  onKgCancel: he
10219
10258
  }, null);
10220
10259
  }
10221
10260
  return onUnmounted(() => {
10222
10261
  s.store.dispose(a.formID);
10223
10262
  }), () => createVNode(Drawer, {
10224
- visible: ce.value,
10263
+ visible: ae.value,
10225
10264
  placement: "right",
10226
10265
  closable: !1,
10227
10266
  maskClosable: !1,
10228
10267
  keyboard: !1,
10229
10268
  destroyOnClose: !0,
10230
- width: Z.value,
10269
+ width: re.value,
10231
10270
  class: P.value,
10232
10271
  "kg-frm-id": a.formID
10233
10272
  }, {
@@ -10248,38 +10287,44 @@ const getProps$p = () => ({
10248
10287
  slots: t
10249
10288
  }) {
10250
10289
  provide(DI_KG_SLOTS, e.kgSlots);
10251
- 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(() => {
10252
- var p, _, v, m;
10290
+ 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(() => {
10291
+ var _, C, y, T;
10253
10292
  switch (!0) {
10254
10293
  case n.value:
10255
- return ((p = i.value) == null ? void 0 : p.crt_flg) !== 0;
10294
+ return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
10256
10295
  case a.value:
10257
- return ((_ = i.value) == null ? void 0 : _.upt_flg) !== 0;
10296
+ return ((C = i.value) == null ? void 0 : C.upt_flg) !== 0;
10258
10297
  case o.value:
10259
- return ((v = i.value) == null ? void 0 : v.cpy_flg) !== 0;
10298
+ return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
10260
10299
  case s.value:
10261
- return ((m = i.value) == null ? void 0 : m.del_flg) !== 0;
10300
+ return ((T = i.value) == null ? void 0 : T.del_flg) !== 0;
10262
10301
  }
10263
10302
  return !1;
10264
- }), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
10265
- let p = "kg-var";
10266
- return e.KgBackgroundGray && (p += " kg-var--bg-gray"), p;
10303
+ }), g = computed(() => {
10304
+ var _;
10305
+ return ((_ = u.value) == null ? void 0 : _.available_flg) !== 0;
10306
+ }), p = computed(() => {
10307
+ var _;
10308
+ return ((_ = l.value) == null ? void 0 : _.available_flg) !== 0;
10309
+ }), v = computed(() => !!r.isOtherRequesting.value), b = computed(() => {
10310
+ let _ = "kg-var";
10311
+ return e.KgBackgroundGray && (_ += " kg-var--bg-gray"), _;
10267
10312
  });
10268
- function g() {
10313
+ function m() {
10269
10314
  return createVNode(Spin, {
10270
- spinning: u.value
10315
+ spinning: v.value
10271
10316
  }, {
10272
10317
  default: () => {
10273
- var p, _;
10274
- 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, {
10275
- kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
10318
+ var _, C;
10319
+ 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, {
10320
+ kgClass: (C = e.kgSubmitClass) != null ? C : ""
10276
10321
  }, null)])];
10277
10322
  }
10278
10323
  });
10279
10324
  }
10280
10325
  return () => createVNode("div", {
10281
- class: c.value
10282
- }, [g()]);
10326
+ class: b.value
10327
+ }, [m()]);
10283
10328
  }
10284
10329
  }), KgYesOrNo$1 = "", getProps$n = () => ({
10285
10330
  kgValue: {
@@ -10312,16 +10357,16 @@ const getProps$p = () => ({
10312
10357
  emit: r
10313
10358
  }) {
10314
10359
  const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
10315
- var p, _;
10360
+ var p, v;
10316
10361
  let g = "kg-table-td";
10317
- 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;
10362
+ 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;
10318
10363
  }), i = computed(() => {
10319
10364
  let g = e.kgValue;
10320
10365
  return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10321
10366
  `)), g;
10322
10367
  });
10323
10368
  function l(g) {
10324
- var p, _, v;
10369
+ var p, v, b;
10325
10370
  if (g.detail === 1)
10326
10371
  switch ((p = o.value) == null ? void 0 : p.display_type) {
10327
10372
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -10330,8 +10375,8 @@ const getProps$p = () => ({
10330
10375
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10331
10376
  {
10332
10377
  g.stopPropagation(), g.preventDefault();
10333
- const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10334
- (v = n.router.value) == null || v.push({
10378
+ const m = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
10379
+ (b = n.router.value) == null || b.push({
10335
10380
  path: m.path,
10336
10381
  query: e.kgRow
10337
10382
  });
@@ -10340,16 +10385,16 @@ const getProps$p = () => ({
10340
10385
  }
10341
10386
  }
10342
10387
  function u() {
10343
- var g, p, _, v, m, b, T, y;
10388
+ var g, p, v, b, m, _, C, y;
10344
10389
  switch ((g = o.value) == null ? void 0 : g.display_type) {
10345
10390
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10346
- const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10391
+ const T = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10347
10392
  return createVNode(KgYesOrNo, {
10348
- kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
10393
+ kgValue: e.kgValue === ((v = T.yValue) != null ? v : 1)
10349
10394
  }, null);
10350
10395
  }
10351
10396
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
10352
- const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties), E = isArrayLike(C) && C.find((I) => I.value === e.kgValue);
10397
+ const T = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(T) && T.find((I) => I.value === e.kgValue);
10353
10398
  return E ? createVNode(Tag, {
10354
10399
  color: (m = E.color) != null ? m : "default"
10355
10400
  }, {
@@ -10357,11 +10402,11 @@ const getProps$p = () => ({
10357
10402
  }) : c();
10358
10403
  }
10359
10404
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10360
- const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties);
10405
+ const T = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10361
10406
  return createVNode(KgProgressA, {
10362
- kgTextWidth: C.textWidth,
10363
- kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
10364
- kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
10407
+ kgTextWidth: T.textWidth,
10408
+ kgLeft: (C = e.kgRow) == null ? void 0 : C[T.leftColumn],
10409
+ kgRight: (y = e.kgRow) == null ? void 0 : y[T.rightColumn]
10365
10410
  }, null);
10366
10411
  }
10367
10412
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -10472,8 +10517,8 @@ const getProps$l = () => ({
10472
10517
  }) => {
10473
10518
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10474
10519
  return s = watch(l, (c) => {
10475
- var g, p, _, v, m, b, T, y, C, E, I;
10476
- 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);
10520
+ var g, p, v, b, m, _, C, y, T, E, I;
10521
+ 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);
10477
10522
  }, {
10478
10523
  immediate: !0
10479
10524
  }), !1;
@@ -10662,8 +10707,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10662
10707
  return o.onOpen(async ({
10663
10708
  model: s
10664
10709
  }) => {
10665
- var i, l, u, c, g, p, _, v, m, b;
10666
- 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;
10710
+ var i, l, u, c, g, p, v, b, m, _;
10711
+ 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;
10667
10712
  }), o.onBeforeOk(async ({
10668
10713
  model: s
10669
10714
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10694,7 +10739,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10694
10739
  function p(y) {
10695
10740
  a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
10696
10741
  }
10697
- async function _() {
10742
+ async function v() {
10698
10743
  var y;
10699
10744
  if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10700
10745
  KgUtil.confirm({
@@ -10714,7 +10759,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10714
10759
  })
10715
10760
  }), message.success(n.t("kg.updateSuccess"));
10716
10761
  }
10717
- async function v() {
10762
+ async function b() {
10718
10763
  g.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
10719
10764
  }
10720
10765
  function m() {
@@ -10729,24 +10774,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10729
10774
  class: "columns"
10730
10775
  }, [createVNode(Input, {
10731
10776
  value: i.value,
10732
- "onUpdate:value": (C) => i.value = C,
10777
+ "onUpdate:value": (T) => i.value = T,
10733
10778
  allowClear: !0
10734
10779
  }, null), createVNode("ul", {
10735
10780
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10736
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10781
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
10737
10782
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10738
10783
  onClick: (E) => {
10739
- E.preventDefault(), E.stopPropagation(), p(C);
10784
+ E.preventDefault(), E.stopPropagation(), p(T);
10740
10785
  },
10741
10786
  style: {
10742
- display: s(C, i.value) ? "flex" : "none"
10787
+ display: s(T, i.value) ? "flex" : "none"
10743
10788
  },
10744
- "kg-var-nam": C.var_nam
10789
+ "kg-var-nam": T.var_nam
10745
10790
  }, [createVNode(Checkbox, {
10746
- checked: C.vis_flg === 1,
10791
+ checked: T.vis_flg === 1,
10747
10792
  disabled: !0
10748
10793
  }, {
10749
- default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10794
+ default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
10750
10795
  }), createVNode(HolderOutlined$1, {
10751
10796
  onClick: (E) => {
10752
10797
  E.preventDefault(), E.stopPropagation();
@@ -10756,7 +10801,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10756
10801
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10757
10802
  });
10758
10803
  }
10759
- function b() {
10804
+ function _() {
10760
10805
  return createVNode(Menu.SubMenu, {
10761
10806
  key: "2",
10762
10807
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10764,7 +10809,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10764
10809
  }, {
10765
10810
  default: () => {
10766
10811
  var E;
10767
- let y, C;
10812
+ let y, T;
10768
10813
  return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
10769
10814
  var k;
10770
10815
  return createVNode(Menu.Item, {
@@ -10777,20 +10822,20 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10777
10822
  });
10778
10823
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10779
10824
  key: "save-grid-view",
10780
- onClick: _
10825
+ onClick: v
10781
10826
  }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10782
10827
  default: () => [y]
10783
10828
  }), createVNode(Menu.Item, {
10784
10829
  key: "save-grid-view-as",
10785
- onClick: v
10786
- }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10787
- default: () => [C]
10830
+ onClick: b
10831
+ }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
10832
+ default: () => [T]
10788
10833
  })]);
10789
10834
  },
10790
10835
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10791
10836
  });
10792
10837
  }
10793
- function T() {
10838
+ function C() {
10794
10839
  let y;
10795
10840
  return createVNode(Menu.Item, {
10796
10841
  key: "config-var-grid-master",
@@ -10813,7 +10858,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10813
10858
  "onUpdate:openKeys": (y) => l.value = y,
10814
10859
  selectable: !1
10815
10860
  }, {
10816
- default: () => [m(), b(), T()]
10861
+ default: () => [m(), _(), C()]
10817
10862
  })
10818
10863
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10819
10864
  visible: c.visible,
@@ -10974,37 +11019,37 @@ function _useColumns() {
10974
11019
  index: p
10975
11020
  }) => p + 1
10976
11021
  }, ...(g = i == null ? void 0 : i.map((p) => {
10977
- function _() {
11022
+ function v() {
10978
11023
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
10979
11024
  }
10980
- function v() {
11025
+ function b() {
10981
11026
  return e.t(p.var_nam).value;
10982
11027
  }
10983
11028
  function m() {
10984
11029
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
10985
11030
  }
10986
- function b() {
11031
+ function _() {
10987
11032
  if (p.fix_left_flg === 1)
10988
11033
  return "left";
10989
11034
  if (p.fix_right_flg === 1)
10990
11035
  return "right";
10991
11036
  }
10992
- function T() {
11037
+ function C() {
10993
11038
  return p.ord_flg === 1;
10994
11039
  }
10995
11040
  function y() {
10996
11041
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10997
11042
  }
10998
- const C = _();
11043
+ const T = v();
10999
11044
  return {
11000
11045
  dataIndex: p.var_nam,
11001
- title: v(),
11002
- width: C,
11003
- resizable: typeof C == "number",
11046
+ title: b(),
11047
+ width: T,
11048
+ resizable: typeof T == "number",
11004
11049
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11005
11050
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11006
- fixed: b(),
11007
- sorter: T(),
11051
+ fixed: _(),
11052
+ sorter: C(),
11008
11053
  align: y(),
11009
11054
  defaultSortOrder: m(),
11010
11055
  customHeaderCell: () => ({
@@ -11060,9 +11105,9 @@ const KgTable$1 = "", KgTable = defineComponent({
11060
11105
  }) {
11061
11106
  const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
11062
11107
  i.onSearch((P) => {
11063
- G(P);
11108
+ U(P);
11064
11109
  }), i.onReset(() => {
11065
- G(!0);
11110
+ U(!0);
11066
11111
  }), u.store.$onAction(async ({
11067
11112
  name: P,
11068
11113
  args: K
@@ -11070,13 +11115,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11070
11115
  switch (P) {
11071
11116
  case "setSelecte":
11072
11117
  if (K[0] === s.formID) {
11073
- const H = K[1], q = K[2];
11118
+ const z = K[1], q = K[2];
11074
11119
  switch (!0) {
11075
- case (q && !M.value.includes(H[I.value])):
11076
- N([...M.value, H[I.value]]);
11120
+ case (q && !A.value.includes(z[I.value])):
11121
+ G([...A.value, z[I.value]]);
11077
11122
  break;
11078
- case (!q && M.value.includes(H[I.value])):
11079
- N(without$1(M.value, H[I.value]));
11123
+ case (!q && A.value.includes(z[I.value])):
11124
+ G(without$1(A.value, z[I.value]));
11080
11125
  break;
11081
11126
  }
11082
11127
  }
@@ -11085,18 +11130,18 @@ const KgTable$1 = "", KgTable = defineComponent({
11085
11130
  });
11086
11131
  const c = ref(!1), g = ref([]), {
11087
11132
  columns: p,
11088
- scrollX: _
11133
+ scrollX: v
11089
11134
  } = _useColumns(), {
11090
- isLoading: v
11135
+ isLoading: b
11091
11136
  } = _useLoading(), m = ref(null);
11092
11137
  _useResizeObserver(m);
11093
- const b = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
11138
+ const _ = computed(() => s.store.getVarButtonSearch(s.formID)), C = computed(() => {
11094
11139
  var P;
11095
11140
  return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11096
11141
  }), y = computed(() => {
11097
11142
  var P;
11098
11143
  return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11099
- }), C = computed(() => {
11144
+ }), T = computed(() => {
11100
11145
  var P;
11101
11146
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11102
11147
  }), E = computed(() => {
@@ -11108,23 +11153,23 @@ const KgTable$1 = "", KgTable = defineComponent({
11108
11153
  }), k = computed(() => {
11109
11154
  var P, K;
11110
11155
  return JSON.parse((K = (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opts) != null ? K : "[]");
11111
- }), F = computed(() => {
11156
+ }), R = computed(() => {
11112
11157
  var P;
11113
11158
  return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
11114
- }), R = computed(() => {
11159
+ }), L = computed(() => {
11115
11160
  var P, K;
11116
- return (K = (P = b.value) == null ? void 0 : P.cmd) != null ? K : null;
11161
+ return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
11117
11162
  }), O = computed(() => {
11118
- var K, H, q, ne, J, pe, he;
11163
+ var K, z, q, ne, J, pe, he;
11119
11164
  let P = {
11120
- pageNo: A.pageIndex,
11121
- pageSize: A.pageSize,
11165
+ pageNo: M.pageIndex,
11166
+ pageSize: M.pageSize,
11122
11167
  ...w,
11123
- ...(H = (K = i.model) == null ? void 0 : K.value) != null ? H : {}
11168
+ ...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
11124
11169
  };
11125
- return b.value && (P = {
11170
+ return _.value && (P = {
11126
11171
  ...P,
11127
- ...KgVarUtil.parseCommandParameter((ne = (q = b.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11172
+ ...KgVarUtil.parseCommandParameter((ne = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11128
11173
  }), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
11129
11174
  ...P,
11130
11175
  ...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
@@ -11135,46 +11180,46 @@ const KgTable$1 = "", KgTable = defineComponent({
11135
11180
  return {
11136
11181
  fixed: "left",
11137
11182
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11138
- hideSelectAll: !T.value,
11139
- selectedRowKeys: M,
11183
+ hideSelectAll: !C.value,
11184
+ selectedRowKeys: A,
11140
11185
  preserveSelectedRowKeys: !1,
11141
- onSelect: (K) => B(K),
11142
- onChange: (K) => T.value && N(K)
11186
+ onSelect: (K) => x(K),
11187
+ onChange: (K) => C.value && G(K)
11143
11188
  };
11144
11189
  }), $ = computed(() => {
11145
11190
  let P = "kg-table";
11146
- return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11147
- }), V = ref([]), M = ref([]), A = reactive({
11191
+ return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
11192
+ }), V = ref([]), A = ref([]), M = reactive({
11148
11193
  pageIndex: 1,
11149
11194
  pageSize: 10,
11150
11195
  total: 0
11151
11196
  }), w = reactive({
11152
11197
  column: void 0,
11153
11198
  order: void 0
11154
- }), L = watch(F, (P) => {
11155
- P && (setTimeout(() => L()), A.pageSize = P), c.value = !0;
11199
+ }), N = watch(R, (P) => {
11200
+ P && (setTimeout(() => N()), M.pageSize = P), c.value = !0;
11156
11201
  });
11157
11202
  watch(k, (P) => {
11158
- P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
11159
- }), watch([R, y, i.isReady], ([P, K, H]) => {
11160
- P && K && H && !u.store.getIsRetrieved(s.formID) && G(!0);
11203
+ P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
11204
+ }), watch([L, y, i.isReady], ([P, K, z]) => {
11205
+ P && K && z && !u.store.getIsRetrieved(s.formID) && U(!0);
11161
11206
  }, {
11162
11207
  immediate: !0
11163
11208
  }), onUnmounted(() => {
11164
11209
  u.store.dispose(s.formID);
11165
11210
  });
11166
- function x(P, K) {
11211
+ function F(P, K) {
11167
11212
  if (!!D.value) {
11168
11213
  if (!K) {
11169
- M.value = [], u.store.setSelectedRows(s.formID, []);
11214
+ A.value = [], u.store.setSelectedRows(s.formID, []);
11170
11215
  return;
11171
11216
  }
11172
11217
  switch (P == null ? void 0 : P.detail) {
11173
11218
  case 1:
11174
- M.value = [K[I.value]], u.store.setSelectedRows(s.formID, M.value.map((H) => {
11219
+ A.value = [K[I.value]], u.store.setSelectedRows(s.formID, A.value.map((z) => {
11175
11220
  var q;
11176
- return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === H);
11177
- }).filter((H) => !!H));
11221
+ return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === z);
11222
+ }).filter((z) => !!z));
11178
11223
  break;
11179
11224
  case 2:
11180
11225
  u.store.emit(s.formID, "rowDoubleClick", K);
@@ -11182,44 +11227,44 @@ const KgTable$1 = "", KgTable = defineComponent({
11182
11227
  }
11183
11228
  }
11184
11229
  }
11185
- function G(P = !1) {
11230
+ function U(P = !1) {
11186
11231
  const K = watch(c, (q) => {
11187
- q && (setTimeout(() => K()), H());
11232
+ q && (setTimeout(() => K()), z());
11188
11233
  }, {
11189
11234
  immediate: !0
11190
11235
  });
11191
- async function H() {
11236
+ async function z() {
11192
11237
  var q, ne;
11193
- if (!R.value) {
11238
+ if (!L.value) {
11194
11239
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11195
- VarButton: b.value
11240
+ VarButton: _.value
11196
11241
  });
11197
11242
  return;
11198
11243
  }
11199
- P && (A.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11244
+ P && (M.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
11200
11245
  try {
11201
11246
  const J = await httpClient().request({
11202
11247
  method: "GET",
11203
- url: R.value,
11248
+ url: L.value,
11204
11249
  params: KgUtil.parseParams(O.value, s.formID, n)
11205
11250
  }, {
11206
11251
  successMessageMode: "none"
11207
11252
  });
11208
11253
  switch (!0) {
11209
11254
  case !J:
11210
- V.value = [], A.total = 0;
11255
+ V.value = [], M.total = 0;
11211
11256
  break;
11212
11257
  case isArrayLike(J):
11213
- V.value = J, A.total = J.length;
11258
+ V.value = J, M.total = J.length;
11214
11259
  break;
11215
11260
  case ("total" in J && "records" in J):
11216
- V.value = (q = J.records) != null ? q : [], A.total = (ne = J.total) != null ? ne : 0;
11261
+ V.value = (q = J.records) != null ? q : [], M.total = (ne = J.total) != null ? ne : 0;
11217
11262
  break;
11218
11263
  }
11219
11264
  u.store.emit(s.formID, "retrieve", {
11220
11265
  page: J,
11221
11266
  datas: V
11222
- }), x(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11267
+ }), F(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11223
11268
  } catch (J) {
11224
11269
  throw J;
11225
11270
  } finally {
@@ -11227,70 +11272,70 @@ const KgTable$1 = "", KgTable = defineComponent({
11227
11272
  }
11228
11273
  }
11229
11274
  }
11230
- function N(P) {
11231
- M.value = P, u.store.setSelectedRows(s.formID, M.value.map((K) => {
11232
- var H;
11233
- return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
11275
+ function G(P) {
11276
+ A.value = P, u.store.setSelectedRows(s.formID, A.value.map((K) => {
11277
+ var z;
11278
+ return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11234
11279
  }).filter((K) => !!K));
11235
11280
  }
11236
- function B(P) {
11237
- var K, H;
11238
- switch (T.value) {
11281
+ function x(P) {
11282
+ var K, z;
11283
+ switch (C.value) {
11239
11284
  case !0:
11240
11285
  {
11241
11286
  const q = P[I.value];
11242
- M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
11287
+ A.value.includes(q) ? A.value = without$1(A.value, q) : A.value = [...(K = A.value) != null ? K : [], q];
11243
11288
  }
11244
11289
  break;
11245
11290
  case !1:
11246
11291
  {
11247
11292
  const q = P[I.value];
11248
- (H = M.value) != null && H.includes(q) ? M.value = [] : M.value = [q];
11293
+ (z = A.value) != null && z.includes(q) ? A.value = [] : A.value = [q];
11249
11294
  }
11250
11295
  break;
11251
11296
  }
11252
- u.store.setSelectedRows(s.formID, M.value.map((q) => {
11297
+ u.store.setSelectedRows(s.formID, A.value.map((q) => {
11253
11298
  var ne;
11254
11299
  return (ne = V.value) == null ? void 0 : ne.find((J) => J[I.value] === q);
11255
11300
  }).filter((q) => !!q));
11256
11301
  }
11257
- function W(P, K) {
11302
+ function H(P, K) {
11258
11303
  K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
11259
11304
  }
11260
- async function Y(P, K, H, q) {
11305
+ async function Y(P, K, z, q) {
11261
11306
  var ne;
11262
11307
  switch (q.action) {
11263
11308
  case "sort":
11264
11309
  {
11265
11310
  await nextTick();
11266
- let J = H;
11267
- 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);
11311
+ let J = z;
11312
+ 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);
11268
11313
  }
11269
11314
  break;
11270
11315
  }
11271
11316
  }
11272
- function Q(P, K) {
11317
+ function X(P, K) {
11273
11318
  var q;
11274
- const H = K[I.value];
11319
+ const z = K[I.value];
11275
11320
  switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
11276
11321
  case 0:
11277
- P ? g.value = uniq([...g.value, H]) : g.value = without$1(g.value, H);
11322
+ P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
11278
11323
  break;
11279
11324
  default:
11280
- P ? g.value = [H] : g.value = [];
11325
+ P ? g.value = [z] : g.value = [];
11281
11326
  break;
11282
11327
  }
11283
11328
  }
11284
- function re(P, K) {
11285
- K !== A.pageSize ? (A.pageIndex = 1, A.pageSize = K) : A.pageIndex = P, G();
11329
+ function Z(P, K) {
11330
+ K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
11286
11331
  }
11287
- function Z(P) {
11288
- M.value = [P[I.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
11289
- var H;
11290
- return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
11332
+ function re(P) {
11333
+ A.value = [P[I.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
11334
+ var z;
11335
+ return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11291
11336
  }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11292
11337
  }
11293
- function ce({
11338
+ function ae({
11294
11339
  title: P,
11295
11340
  column: K
11296
11341
  }) {
@@ -11301,31 +11346,31 @@ const KgTable$1 = "", KgTable = defineComponent({
11301
11346
  return createVNode("pre", null, [P]);
11302
11347
  }
11303
11348
  }
11304
- function oe({
11349
+ function se({
11305
11350
  column: P,
11306
11351
  index: K,
11307
- record: H,
11352
+ record: z,
11308
11353
  value: q,
11309
11354
  text: ne
11310
11355
  }) {
11311
11356
  let J = "";
11312
11357
  P.customRender ? J = P.customRender({
11313
11358
  index: K,
11314
- record: H,
11359
+ record: z,
11315
11360
  column: P,
11316
11361
  text: ne,
11317
11362
  value: q,
11318
11363
  renderIndex: K
11319
11364
  }) : J = q;
11320
11365
  const pe = createVNode(KgTableCell, {
11321
- kgRow: H,
11366
+ kgRow: z,
11322
11367
  kgValue: J,
11323
11368
  kgVarName: P.dataIndex,
11324
- onKgUpdateLinkClick: () => Z(H)
11369
+ onKgUpdateLinkClick: () => re(z)
11325
11370
  }, null);
11326
11371
  return t.bodyCell ? t.bodyCell({
11327
11372
  value: q,
11328
- record: H,
11373
+ record: z,
11329
11374
  index: K,
11330
11375
  column: P,
11331
11376
  defaultRender: pe
@@ -11344,60 +11389,60 @@ const KgTable$1 = "", KgTable = defineComponent({
11344
11389
  class: "kg-flex-table",
11345
11390
  size: "small",
11346
11391
  scroll: {
11347
- x: _.value,
11392
+ x: v.value,
11348
11393
  y: "auto"
11349
11394
  },
11350
11395
  pagination: !1,
11351
11396
  showSorterTooltip: !1,
11352
11397
  columns: p.value,
11353
11398
  dataSource: V.value,
11354
- loading: v.value,
11399
+ loading: b.value,
11355
11400
  rowKey: I.value,
11356
11401
  rowSelection: D.value,
11357
11402
  expandColumnWidth: 28,
11358
11403
  expandedRowKeys: g.value,
11359
11404
  customRow: (K) => ({
11360
- onClick: (H) => x(H, K)
11405
+ onClick: (z) => F(z, K)
11361
11406
  }),
11362
- onResizeColumn: W,
11407
+ onResizeColumn: H,
11363
11408
  onChange: Y,
11364
- onExpand: Q
11409
+ onExpand: X
11365
11410
  }, {
11366
- headerCell: ce,
11367
- bodyCell: oe,
11411
+ headerCell: ae,
11412
+ bodyCell: se,
11368
11413
  emptyText: de,
11369
11414
  expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11370
- }), (C.value || E.value) && createVNode("div", {
11415
+ }), (T.value || E.value) && createVNode("div", {
11371
11416
  class: "kg-table-bottom"
11372
11417
  }, [createVNode("div", {
11373
11418
  class: "left"
11374
- }, [C.value && createVNode(KgTableInfo, {
11375
- kgShowClearCheck: M.value.length > 0,
11376
- kgShowClearTable: A.total > 0,
11377
- kgShowLocate: M.value.length === 1,
11378
- kgTotal: M.value.length,
11379
- kgDisabled: v.value
11419
+ }, [T.value && createVNode(KgTableInfo, {
11420
+ kgShowClearCheck: A.value.length > 0,
11421
+ kgShowClearTable: M.total > 0,
11422
+ kgShowLocate: A.value.length === 1,
11423
+ kgTotal: A.value.length,
11424
+ kgDisabled: b.value
11380
11425
  }, null)]), createVNode("div", {
11381
11426
  class: "right"
11382
11427
  }, [E.value && createVNode(Pagination, {
11383
11428
  size: "default",
11384
- current: A.pageIndex,
11385
- pageSize: A.pageSize,
11429
+ current: M.pageIndex,
11430
+ pageSize: M.pageSize,
11386
11431
  pageSizeOptions: k.value.map((K) => String(K)),
11387
- total: A.total,
11432
+ total: M.total,
11388
11433
  showSizeChanger: !0,
11389
11434
  showQuickJumper: !1,
11390
11435
  hideOnSinglePage: !1,
11391
- disabled: v.value || A.total === 0,
11436
+ disabled: b.value || M.total === 0,
11392
11437
  locale: {
11393
11438
  page: ""
11394
11439
  },
11395
- showTotal: (K, H) => o.t("kg.KgTable.totalText", {
11396
- from: H[0],
11397
- to: H[1],
11440
+ showTotal: (K, z) => o.t("kg.KgTable.totalText", {
11441
+ from: z[0],
11442
+ to: z[1],
11398
11443
  total: K
11399
11444
  }),
11400
- onChange: (K, H) => re(K, H)
11445
+ onChange: (K, z) => Z(K, z)
11401
11446
  }, null)])])]);
11402
11447
  };
11403
11448
  }
@@ -11504,26 +11549,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11504
11549
  props: getProps$f(),
11505
11550
  setup(e) {
11506
11551
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11507
- var p, _;
11508
- return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
11552
+ var p, v;
11553
+ return a.value ? (v = (p = a.value) == null ? void 0 : p.cmd) != null ? v : "" : null;
11509
11554
  }), s = computed(() => {
11510
- var p, _;
11511
- return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
11555
+ var p, v;
11556
+ return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
11512
11557
  }), i = computed(() => {
11513
- var _, v, m, b, T, y;
11558
+ var v, b, m, _, C, y;
11514
11559
  let p = {
11515
- ...(_ = n.model.value) != null ? _ : {}
11560
+ ...(v = n.model.value) != null ? v : {}
11516
11561
  };
11517
11562
  return a.value && (p = {
11518
11563
  ...p,
11519
- ...KgVarUtil.parseCommandParameter((m = (v = a.value) == null ? void 0 : v.cmd_prm) != null ? m : "")
11520
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (p = {
11564
+ ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
11565
+ }), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
11521
11566
  ...p,
11522
- ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11567
+ ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
11523
11568
  }), ((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;
11524
11569
  }), l = ref(!1);
11525
11570
  async function u() {
11526
- var p, _, v;
11571
+ var p, v, b;
11527
11572
  if (!(e.onKgClick && await e.onKgClick())) {
11528
11573
  if (!o.value) {
11529
11574
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11542,7 +11587,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11542
11587
  joinParamsToUrl: !0,
11543
11588
  isTransformResponse: !1
11544
11589
  });
11545
- 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}`);
11590
+ 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}`);
11546
11591
  } catch (m) {
11547
11592
  throw m;
11548
11593
  } finally {
@@ -11578,44 +11623,44 @@ const KgTable$1 = "", KgTable = defineComponent({
11578
11623
  attrs: r
11579
11624
  }) {
11580
11625
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
11581
- var _, v;
11582
- return s.value ? (v = (_ = s.value) == null ? void 0 : _.cmd) != null ? v : "" : null;
11626
+ var v, b;
11627
+ return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
11583
11628
  }), l = computed(() => {
11584
- var _, v;
11585
- return (v = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? v : "POST";
11629
+ var v, b;
11630
+ return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
11586
11631
  });
11587
11632
  computed(() => {
11588
- var v, m, b;
11589
- let _ = {
11590
- ...(v = o.model.value) != null ? v : {}
11633
+ var b, m, _;
11634
+ let v = {
11635
+ ...(b = o.model.value) != null ? b : {}
11591
11636
  };
11592
- return s.value && (_ = {
11593
- ..._,
11594
- ...KgVarUtil.parseCommandParameter((b = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? b : "")
11595
- }), _;
11637
+ return s.value && (v = {
11638
+ ...v,
11639
+ ...KgVarUtil.parseCommandParameter((_ = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? _ : "")
11640
+ }), v;
11596
11641
  });
11597
11642
  const u = ref(!1);
11598
- async function c(_) {
11599
- var v, m;
11643
+ async function c(v) {
11644
+ var b, m;
11600
11645
  if (!i.value)
11601
11646
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11602
11647
  VarButton: s.value
11603
11648
  }), !1;
11604
11649
  u.value = !0;
11605
11650
  try {
11606
- const b = new FormData();
11607
- b.append("file", _), await httpClient().axiosInstance.request({
11651
+ const _ = new FormData();
11652
+ _.append("file", v), await httpClient().axiosInstance.request({
11608
11653
  method: l.value,
11609
11654
  baseURL: window._CONFIG.domianURL,
11610
11655
  url: i.value,
11611
- data: b,
11656
+ data: _,
11612
11657
  headers: {
11613
11658
  "Content-Type": "multipart/form-data;charset=UTF-8",
11614
11659
  ignoreCancelToken: !0
11615
11660
  }
11616
- }), message.success(n.t("kg.importSuccess")), (m = (v = o.search).value) == null || m.call(v, !0);
11617
- } catch (b) {
11618
- throw b;
11661
+ }), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
11662
+ } catch (_) {
11663
+ throw _;
11619
11664
  } finally {
11620
11665
  u.value = !1;
11621
11666
  }
@@ -11713,7 +11758,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11713
11758
  setup(e) {
11714
11759
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11715
11760
  async function o() {
11716
- var g, p, _;
11761
+ var g, p, v;
11717
11762
  if (e.onKgClick && await e.onKgClick())
11718
11763
  return;
11719
11764
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11725,16 +11770,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11725
11770
  }
11726
11771
  let u = null;
11727
11772
  const c = async () => {
11728
- var m, b, T, y, C, E, I;
11773
+ var m, _, C, y, T, E, I;
11729
11774
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11730
- const v = a.selectedRows.value;
11775
+ const b = a.selectedRows.value;
11731
11776
  try {
11732
11777
  await httpClient().request({
11733
- method: (b = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? b : "POST",
11778
+ method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
11734
11779
  url: l,
11735
- params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11736
- data: v != null ? v : []
11737
- }), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11780
+ params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
11781
+ data: b != null ? b : []
11782
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11738
11783
  } catch (k) {
11739
11784
  console.error(k);
11740
11785
  } finally {
@@ -11742,10 +11787,10 @@ const KgTable$1 = "", KgTable = defineComponent({
11742
11787
  }
11743
11788
  };
11744
11789
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11745
- const v = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11746
- typeof v.content == "string" && (v.content = r.t(v.content).value), u = KgUtil.confirm({
11790
+ const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
11791
+ typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11747
11792
  onOk: () => c(),
11748
- ...v
11793
+ ...b
11749
11794
  });
11750
11795
  } else
11751
11796
  c();
@@ -11962,8 +12007,8 @@ const KgButtonItem = defineComponent({
11962
12007
  props: getProps$f(),
11963
12008
  setup(e) {
11964
12009
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11965
- var u, c, g, p, _, v, m, b;
11966
- 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));
12010
+ var u, c, g, p, v, b, m, _;
12011
+ 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));
11967
12012
  }), s = computed(() => {
11968
12013
  let u = "kg-button-item";
11969
12014
  switch (e.kgColor) {
@@ -11973,7 +12018,7 @@ const KgButtonItem = defineComponent({
11973
12018
  }
11974
12019
  return u;
11975
12020
  }), i = computed(() => {
11976
- var c, g, p, _;
12021
+ var c, g, p, v;
11977
12022
  return {
11978
12023
  ...e,
11979
12024
  class: s.value,
@@ -11981,7 +12026,7 @@ const KgButtonItem = defineComponent({
11981
12026
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
11982
12027
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
11983
12028
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
11984
- "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
12029
+ "kg-cmd": (v = a.value) == null ? void 0 : v.cmd
11985
12030
  };
11986
12031
  });
11987
12032
  function l() {
@@ -12029,15 +12074,15 @@ const getProps$e = () => ({
12029
12074
  props: getProps$e(),
12030
12075
  setup(e) {
12031
12076
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
12032
- function o(_) {
12033
- return n.store.emit(r.formID, "click", _);
12077
+ function o(v) {
12078
+ return n.store.emit(r.formID, "click", v);
12034
12079
  }
12035
- function s(_) {
12080
+ function s(v) {
12036
12081
  if (e.kgDisabled)
12037
- return e.kgDisabled(_);
12082
+ return e.kgDisabled(v);
12038
12083
  }
12039
- function i(_) {
12040
- switch (_.primary_flg) {
12084
+ function i(v) {
12085
+ switch (v.primary_flg) {
12041
12086
  case 1:
12042
12087
  return !0;
12043
12088
  case 0:
@@ -12046,37 +12091,37 @@ const getProps$e = () => ({
12046
12091
  return;
12047
12092
  }
12048
12093
  }
12049
- function l(_) {
12050
- if (r.t(_.var_nam).value !== _.var_nam)
12051
- return r.t(_.var_nam).value;
12094
+ function l(v) {
12095
+ if (r.t(v.var_nam).value !== v.var_nam)
12096
+ return r.t(v.var_nam).value;
12052
12097
  }
12053
12098
  function u() {
12054
- var _, v;
12055
- if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
12099
+ var v, b;
12100
+ if (!r.varButtons.value || ((v = r.varButtons.value) == null ? void 0 : v.length) === 0)
12056
12101
  return null;
12057
- switch ((v = r.varGridConfig.value) == null ? void 0 : v.button_display_type) {
12102
+ switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
12058
12103
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
12059
12104
  return p();
12060
12105
  default:
12061
12106
  return g();
12062
12107
  }
12063
12108
  }
12064
- function c(_) {
12109
+ function c(v) {
12065
12110
  return createVNode(KgButtonItem, {
12066
- kgButton: _,
12067
- kgVarName: _.var_nam,
12068
- kgType: _.typ,
12069
- kgIcon: _.icon,
12070
- kgText: l(_),
12071
- kgColor: _.color,
12072
- kgPrimary: i(_),
12073
- kgDisabled: s(_),
12074
- onKgClick: () => o(_)
12111
+ kgButton: v,
12112
+ kgVarName: v.var_nam,
12113
+ kgType: v.typ,
12114
+ kgIcon: v.icon,
12115
+ kgText: l(v),
12116
+ kgColor: v.color,
12117
+ kgPrimary: i(v),
12118
+ kgDisabled: s(v),
12119
+ onKgClick: () => o(v)
12075
12120
  }, null);
12076
12121
  }
12077
12122
  function g() {
12078
- var _;
12079
- return (_ = r.varButtons.value) == null ? void 0 : _.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH).map((v) => c(v));
12123
+ var v;
12124
+ return (v = r.varButtons.value) == null ? void 0 : v.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
12080
12125
  }
12081
12126
  function p() {
12082
12127
  return createVNode(Dropdown, {
@@ -12090,11 +12135,11 @@ const getProps$e = () => ({
12090
12135
  }),
12091
12136
  overlay: () => createVNode(Menu, null, {
12092
12137
  default: () => {
12093
- var _, v;
12094
- 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) => {
12095
- let b;
12096
- return createVNode(Menu.Item, null, _isSlot$3(b = c(m)) ? b : {
12097
- default: () => [b]
12138
+ var v, b;
12139
+ 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) => {
12140
+ let _;
12141
+ return createVNode(Menu.Item, null, _isSlot$3(_ = c(m)) ? _ : {
12142
+ default: () => [_]
12098
12143
  });
12099
12144
  })];
12100
12145
  }
@@ -12102,14 +12147,14 @@ const getProps$e = () => ({
12102
12147
  });
12103
12148
  }
12104
12149
  return () => {
12105
- let _;
12150
+ let v;
12106
12151
  return createVNode("div", {
12107
12152
  class: "kg-button",
12108
12153
  "kg-frm-id": r.formID
12109
12154
  }, [createVNode(Spin, {
12110
12155
  spinning: a.value
12111
- }, _isSlot$3(_ = u()) ? _ : {
12112
- default: () => [_]
12156
+ }, _isSlot$3(v = u()) ? v : {
12157
+ default: () => [v]
12113
12158
  })]);
12114
12159
  };
12115
12160
  }
@@ -12143,27 +12188,39 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
12143
12188
  }),
12144
12189
  getters: {
12145
12190
  getIsReady(e) {
12146
- return (t) => t ? !!e.isReadyMap.get(t) : (Logger.error("formID \u4E3A\u7A7A."), !1);
12191
+ return (t) => {
12192
+ var n;
12193
+ if (!t)
12194
+ return Logger.error("formID \u4E3A\u7A7A."), !1;
12195
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12196
+ return !!e.isReadyMap.get(r || t);
12197
+ };
12147
12198
  },
12148
12199
  getModel(e) {
12149
12200
  return (t) => {
12150
- var a, o;
12201
+ var n, a;
12151
12202
  if (!t)
12152
12203
  return Logger.error("formID \u4E3A\u7A7A."), null;
12153
- const n = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
12154
- return (o = e.modelMap.get(n || t)) != null ? o : null;
12204
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12205
+ return (a = e.modelMap.get(r || t)) != null ? a : null;
12155
12206
  };
12156
12207
  },
12157
12208
  getSearchFn(e) {
12158
12209
  return (t) => {
12159
- var r;
12160
- return t ? (r = e.searchFnMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12210
+ var n, a;
12211
+ if (!t)
12212
+ return Logger.error("formID \u4E3A\u7A7A."), null;
12213
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12214
+ return (a = e.searchFnMap.get(r || t)) != null ? a : null;
12161
12215
  };
12162
12216
  },
12163
12217
  getResetFn(e) {
12164
12218
  return (t) => {
12165
- var r;
12166
- return t ? (r = e.resetFnMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12219
+ var n, a;
12220
+ if (!t)
12221
+ return Logger.error("formID \u4E3A\u7A7A."), null;
12222
+ const r = (n = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : n.prf_frm_id;
12223
+ return (a = e.resetFnMap.get(r || t)) != null ? a : null;
12167
12224
  };
12168
12225
  }
12169
12226
  },
@@ -12505,41 +12562,41 @@ const leftVarProfileDetailColumns = (e) => {
12505
12562
  }) {
12506
12563
  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);
12507
12564
  s.onOpen(async ({
12508
- isCreating: v,
12565
+ isCreating: b,
12509
12566
  isUpdating: m,
12510
- isCopying: b,
12511
- row: T,
12567
+ isCopying: _,
12568
+ row: C,
12512
12569
  model: y
12513
12570
  }) => {
12514
12571
  var E, I, k;
12515
- const C = i.store.getSystemVarProfileDetails(i.formID);
12516
- switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
12517
- case v:
12572
+ const T = i.store.getSystemVarProfileDetails(i.formID);
12573
+ switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
12574
+ case b:
12518
12575
  u.value = [];
12519
12576
  break;
12520
12577
  case m:
12521
- case b:
12522
- if (T != null && T.id)
12578
+ case _:
12579
+ if (C != null && C.id)
12523
12580
  try {
12524
12581
  s.store.setIsLoading(n.formID, !0);
12525
- const F = await QueryByID({
12582
+ const R = await QueryByID({
12526
12583
  params: {
12527
- id: T.id
12584
+ id: C.id
12528
12585
  }
12529
12586
  });
12530
12587
  l.value = l.value.map((O) => {
12531
12588
  var $;
12532
- const D = ($ = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === O.var_nam);
12589
+ const D = ($ = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === O.var_nam);
12533
12590
  return D ? {
12534
12591
  ...O,
12535
12592
  ...D,
12536
12593
  id: O.id
12537
12594
  } : O;
12538
12595
  });
12539
- const R = (I = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12540
- u.value = l.value.filter((O) => R.includes(O.var_nam)).map((O) => O.id);
12541
- } catch (F) {
12542
- throw F;
12596
+ const L = (I = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12597
+ u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
12598
+ } catch (R) {
12599
+ throw R;
12543
12600
  } finally {
12544
12601
  s.store.setIsLoading(n.formID, !1);
12545
12602
  }
@@ -12548,20 +12605,20 @@ const leftVarProfileDetailColumns = (e) => {
12548
12605
  break;
12549
12606
  }
12550
12607
  switch (!0) {
12551
- case b:
12608
+ case _:
12552
12609
  y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
12553
12610
  break;
12554
12611
  }
12555
12612
  return !1;
12556
12613
  }), s.onBeforeOk(async ({
12557
- model: v
12614
+ model: b
12558
12615
  }) => {
12559
- var b, T;
12560
- const m = v.value;
12561
- 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;
12616
+ var _, C;
12617
+ const m = b.value;
12618
+ return m.frm_id = i.formID, m.varProfileDetails = (C = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
12562
12619
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12563
- row: v
12564
- }) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
12620
+ row: b
12621
+ }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
12565
12622
  KgUtil.confirm({
12566
12623
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
12567
12624
  okButtonProps: {
@@ -12579,12 +12636,12 @@ const leftVarProfileDetailColumns = (e) => {
12579
12636
  KgSubmit: {
12580
12637
  "KgForm.Item": {
12581
12638
  varProfileDetails: ({
12582
- varName: v,
12639
+ varName: b,
12583
12640
  props: m,
12584
- model: b,
12585
- varConfig: T,
12641
+ model: _,
12642
+ varConfig: C,
12586
12643
  varProfileDetail: y,
12587
- varSubmitField: C
12644
+ varSubmitField: T
12588
12645
  }) => createVNode(Transfer, {
12589
12646
  dataSource: l.value,
12590
12647
  targetKeys: u.value,
@@ -12602,8 +12659,8 @@ const leftVarProfileDetailColumns = (e) => {
12602
12659
  direction: E,
12603
12660
  filteredItems: I,
12604
12661
  selectedKeys: k,
12605
- disabled: F,
12606
- onItemSelectAll: R,
12662
+ disabled: R,
12663
+ onItemSelectAll: L,
12607
12664
  onItemSelect: O
12608
12665
  }) => createVNode(Table, {
12609
12666
  pagination: !1,
@@ -12617,12 +12674,12 @@ const leftVarProfileDetailColumns = (e) => {
12617
12674
  rowKey: "id",
12618
12675
  dataSource: I,
12619
12676
  customRow: (D) => ({
12620
- onClick: ($) => _($, D, E, k)
12677
+ onClick: ($) => v($, D, E, k)
12621
12678
  }),
12622
12679
  rowSelection: g({
12623
- disabled: F,
12680
+ disabled: R,
12624
12681
  selectedKeys: k,
12625
- onItemSelectAll: R,
12682
+ onItemSelectAll: L,
12626
12683
  onItemSelect: O
12627
12684
  })
12628
12685
  }, null)
@@ -12634,46 +12691,46 @@ const leftVarProfileDetailColumns = (e) => {
12634
12691
  p();
12635
12692
  });
12636
12693
  const g = ({
12637
- disabled: v,
12694
+ disabled: b,
12638
12695
  selectedKeys: m,
12639
- onItemSelectAll: b,
12640
- onItemSelect: T
12696
+ onItemSelectAll: _,
12697
+ onItemSelect: C
12641
12698
  }) => ({
12642
12699
  getCheckboxProps: (y) => ({
12643
- disabled: v || y.disabled
12700
+ disabled: b || y.disabled
12644
12701
  }),
12645
- onSelectAll(y, C) {
12646
- const E = C.filter((I) => !I.disabled).map(({
12702
+ onSelectAll(y, T) {
12703
+ const E = T.filter((I) => !I.disabled).map(({
12647
12704
  key: I
12648
12705
  }) => I);
12649
- b(E, y);
12706
+ _(E, y);
12650
12707
  },
12651
12708
  onSelect({
12652
12709
  key: y
12653
- }, C) {
12654
- T(y, C);
12710
+ }, T) {
12711
+ C(y, T);
12655
12712
  },
12656
12713
  selectedRowKeys: m,
12657
12714
  columnWidth: 32
12658
12715
  });
12659
12716
  async function p() {
12660
- const v = watch(a.isReady, async (m) => {
12661
- var b, T;
12662
- m && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
12717
+ const b = watch(a.isReady, async (m) => {
12718
+ var _, C;
12719
+ m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12663
12720
  frm_id: e.hostFormID
12664
- }), (T = (b = a.search).value) == null || T.call(b));
12721
+ }), (C = (_ = a.search).value) == null || C.call(_));
12665
12722
  }, {
12666
12723
  immediate: !0
12667
12724
  });
12668
12725
  }
12669
- function _(v, m, b, T) {
12670
- if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
12671
- switch (T.length = 0, v.detail) {
12726
+ function v(b, m, _, C) {
12727
+ if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12728
+ switch (C.length = 0, b.detail) {
12672
12729
  case 1:
12673
- T[0] = m.id;
12730
+ C[0] = m.id;
12674
12731
  break;
12675
12732
  case 2:
12676
- switch (b) {
12733
+ switch (_) {
12677
12734
  case "left":
12678
12735
  u.value.push(m.id);
12679
12736
  break;
@@ -12784,24 +12841,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12784
12841
  const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
12785
12842
  _useLayoutHeaderResizeObserver();
12786
12843
  const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
12787
- var N;
12788
- return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
12844
+ var x;
12845
+ return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
12789
12846
  }), 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(() => {
12790
- var N, B;
12791
- 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));
12792
- }), _ = computed(() => !!o.isRetrieving.value), v = computed(() => !!o.isRetrieving.value), m = ref(null), b = ref({
12847
+ var x, H;
12848
+ 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));
12849
+ }), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
12793
12850
  kgHeight: g.value
12794
- }), T = ref({
12851
+ }), C = ref({
12795
12852
  visible: !1
12796
12853
  });
12797
12854
  let y;
12798
- const C = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12799
- var N, B, W;
12800
- if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12801
- return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
12855
+ const T = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12856
+ var x, H, Y;
12857
+ if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
12858
+ return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
12802
12859
  }), k = computed(() => {
12803
- var N;
12804
- switch ((N = E.value) == null ? void 0 : N.primary_flg) {
12860
+ var x;
12861
+ switch ((x = E.value) == null ? void 0 : x.primary_flg) {
12805
12862
  case 1:
12806
12863
  return !0;
12807
12864
  case 0:
@@ -12809,20 +12866,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12809
12866
  default:
12810
12867
  return !0;
12811
12868
  }
12812
- }), F = computed(() => {
12813
- var N;
12814
- return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
12815
- }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), O = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12816
- let N = "kg-search";
12817
- return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
12818
- });
12819
- watch(n.currentVarProfileDetails, (N) => {
12820
- if (N) {
12821
- const B = {};
12822
- N.forEach((W) => {
12823
- B[W.var_nam] = "";
12824
- }), b.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (y == null || y(), y = watch(m, (W) => {
12825
- W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12869
+ }), R = computed(() => {
12870
+ var x;
12871
+ return ((x = i.value) == null ? void 0 : x.vis_flg) === 1;
12872
+ }), L = computed(() => {
12873
+ var x;
12874
+ return ((x = i.value) == null ? void 0 : x.resizable_flg) !== 0;
12875
+ }), O = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), $ = computed(() => {
12876
+ let x = "kg-search";
12877
+ return R.value && (x += " kg-search--visible"), l.value && (x += " kg-search--teleport"), x;
12878
+ });
12879
+ watch(n.currentVarProfileDetails, (x) => {
12880
+ if (x) {
12881
+ const H = {};
12882
+ x.forEach((Y) => {
12883
+ H[Y.var_nam] = "";
12884
+ }), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
12885
+ Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12826
12886
  }, {
12827
12887
  immediate: !0
12828
12888
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12832,117 +12892,117 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12832
12892
  }), onUnmounted(() => {
12833
12893
  a.store.dispose(n.formID);
12834
12894
  });
12835
- function $(N = !1) {
12836
- F.value ? m.value && m.value.validate().then(() => {
12895
+ function V(x = !1) {
12896
+ R.value ? m.value && m.value.validate().then(() => {
12837
12897
  a.store.emit(n.formID, "search", {
12838
- resetPageIndex: N
12898
+ resetPageIndex: x
12839
12899
  });
12840
- }).catch((B) => {
12900
+ }).catch((H) => {
12841
12901
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12842
- e: B
12902
+ e: H
12843
12903
  });
12844
12904
  }) : a.store.emit(n.formID, "search", {
12845
- resetPageIndex: N
12905
+ resetPageIndex: x
12846
12906
  });
12847
12907
  }
12848
- a.store.setSearchFn(n.formID, $);
12849
- function V() {
12850
- var N;
12851
- (N = m.value) == null || N.resetFields(), F.value ? m.value && m.value.validate().then(() => {
12908
+ a.store.setSearchFn(n.formID, V);
12909
+ function A() {
12910
+ var x;
12911
+ (x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
12852
12912
  a.store.emit(n.formID, "reset");
12853
- }).catch((B) => {
12913
+ }).catch((H) => {
12854
12914
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12855
- e: B
12915
+ e: H
12856
12916
  });
12857
12917
  }) : a.store.emit(n.formID, "reset");
12858
12918
  }
12859
- a.store.setResetFn(n.formID, V);
12919
+ a.store.setResetFn(n.formID, A);
12860
12920
  function M() {
12861
- return $(!0), Promise.resolve(!0);
12921
+ return V(!0), Promise.resolve(!0);
12862
12922
  }
12863
- function A() {
12864
- var N;
12923
+ function w() {
12924
+ var x;
12865
12925
  return createVNode("div", {
12866
12926
  class: "title",
12867
12927
  onClick: G
12868
- }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
12928
+ }, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
12869
12929
  class: "kg-search-title-left",
12870
- onClick: (B) => {
12871
- B.stopPropagation(), B.preventDefault();
12930
+ onClick: (H) => {
12931
+ H.stopPropagation(), H.preventDefault();
12872
12932
  }
12873
- }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12933
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12874
12934
  }
12875
- function w() {
12876
- var N, B, W, Y;
12877
- 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, {
12878
- value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12879
- "onUpdate:value": (Q) => n.store.setCurrentVarProfileMasterID(n.formID, Q),
12880
- disabled: _.value,
12935
+ function N() {
12936
+ var x, H, Y, X;
12937
+ 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, {
12938
+ value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
12939
+ "onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
12940
+ disabled: v.value,
12881
12941
  class: "kg-search-profile-master-select"
12882
12942
  }, {
12883
12943
  default: () => {
12884
- var Q, re;
12885
- return (re = (Q = n.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : re.map((Z) => createVNode(Select.Option, {
12886
- value: Z.id
12944
+ var Z, re;
12945
+ return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ae) => createVNode(Select.Option, {
12946
+ value: ae.id
12887
12947
  }, {
12888
- default: () => [n.t(Z == null ? void 0 : Z.prf_var_nam).value]
12948
+ default: () => [n.t(ae == null ? void 0 : ae.prf_var_nam).value]
12889
12949
  }));
12890
12950
  },
12891
12951
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12892
12952
  }), createVNode(Button, {
12893
- disabled: _.value,
12953
+ disabled: v.value,
12894
12954
  onClick: () => {
12895
- T.value.visible = !0;
12955
+ C.value.visible = !0;
12896
12956
  },
12897
12957
  class: "kg-search-profile-master-btn"
12898
12958
  }, {
12899
12959
  default: () => [createVNode(SettingOutlined$1, null, null)]
12900
12960
  }), createVNode(KgSearchConfigModal, {
12901
- visible: T.value.visible,
12902
- "onUpdate:visible": (Q) => T.value.visible = Q,
12961
+ visible: C.value.visible,
12962
+ "onUpdate:visible": (Z) => C.value.visible = Z,
12903
12963
  hostFormID: n.formID
12904
12964
  }, null)]);
12905
12965
  }
12906
- function L() {
12907
- var N, B, W, Y, Q;
12908
- 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, {
12966
+ function F() {
12967
+ var x, H, Y, X, Z;
12968
+ 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, {
12909
12969
  type: "primary",
12910
12970
  ghost: !p.value,
12911
12971
  disabled: p.value,
12912
- onClick: V,
12972
+ onClick: A,
12913
12973
  class: "kg-search-btn-reset"
12914
12974
  }, {
12915
12975
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12916
12976
  }), createVNode(KgButton.Item, {
12917
12977
  kgType: KG_BUTTON_TYPE.SEARCH,
12918
- kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
12919
- kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12978
+ kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
12979
+ kgIcon: (X = E.value) == null ? void 0 : X.icon,
12920
12980
  kgText: I.value,
12921
- kgColor: (Q = E.value) == null ? void 0 : Q.color,
12981
+ kgColor: (Z = E.value) == null ? void 0 : Z.color,
12922
12982
  kgPrimary: k.value,
12923
- kgLoading: v.value,
12983
+ kgLoading: b.value,
12924
12984
  onKgClick: M
12925
12985
  }, null)]);
12926
12986
  }
12927
- function x() {
12987
+ function U() {
12928
12988
  return createVNode(Spin, {
12929
- spinning: O.value
12989
+ spinning: D.value
12930
12990
  }, {
12931
12991
  default: () => {
12932
- var N;
12992
+ var x;
12933
12993
  return [createVNode(KgForm, {
12934
12994
  ref: m,
12935
- model: (N = a.model.value) != null ? N : {}
12995
+ model: (x = a.model.value) != null ? x : {}
12936
12996
  }, {
12937
12997
  default: () => [createVNode(Row, {
12938
12998
  gutter: 6
12939
12999
  }, {
12940
13000
  default: () => {
12941
- var B;
12942
- return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
12943
- kgVarName: W.var_nam,
13001
+ var H;
13002
+ return [(H = n.currentVarProfileDetails.value) == null ? void 0 : H.map((Y) => createVNode(KgForm.Item, {
13003
+ kgVarName: Y.var_nam,
12944
13004
  kgContext: KG_FORM_CONTEXT.SEARCH,
12945
- onKgSubmit: () => $(!0)
13005
+ onKgSubmit: () => V(!0)
12946
13006
  }, null))];
12947
13007
  }
12948
13008
  })]
@@ -12951,17 +13011,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12951
13011
  });
12952
13012
  }
12953
13013
  function G() {
12954
- C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
13014
+ T.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
12955
13015
  }
12956
13016
  return () => createVNode(KgResizable, {
12957
- kgHeight: b.value.kgHeight,
12958
- "onUpdate:kgHeight": (N) => b.value.kgHeight = N,
13017
+ kgHeight: _.value.kgHeight,
13018
+ "onUpdate:kgHeight": (x) => _.value.kgHeight = x,
12959
13019
  kgMinHeight: g.value,
12960
13020
  kgMaxHeight: c.value,
12961
- class: D.value,
13021
+ kgDisabled: !L.value,
13022
+ class: $.value,
12962
13023
  "kg-frm-id": n.formID
12963
13024
  }, {
12964
- default: () => [F.value && createVNode("div", {
13025
+ default: () => [R.value && createVNode("div", {
12965
13026
  class: "ant-collapse ant-collapse-icon-position-left"
12966
13027
  }, [createVNode("div", {
12967
13028
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12972,17 +13033,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12972
13033
  default: () => [createVNode("div", {
12973
13034
  class: "ant-collapse-header"
12974
13035
  }, [createVNode(Spin, {
12975
- spinning: R.value
13036
+ spinning: O.value
12976
13037
  }, {
12977
- default: () => [A(), createVNode("div", {
13038
+ default: () => [w(), createVNode("div", {
12978
13039
  class: "ant-collapse-extra"
12979
- }, [L()])]
13040
+ }, [F()])]
12980
13041
  })])]
12981
13042
  }), createVNode("div", {
12982
13043
  class: "ant-collapse-content ant-collapse-content-active"
12983
13044
  }, [createVNode("div", {
12984
13045
  class: "ant-collapse-content-box"
12985
- }, [x()])])])])]
13046
+ }, [U()])])])])]
12986
13047
  });
12987
13048
  }
12988
13049
  });
@@ -13039,39 +13100,39 @@ function useMagicKeys(e = {}) {
13039
13100
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
13040
13101
  return {};
13041
13102
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13042
- function g(m, b) {
13043
- m in l && (t ? l[m] = b : l[m].value = b);
13103
+ function g(m, _) {
13104
+ m in l && (t ? l[m] = _ : l[m].value = _);
13044
13105
  }
13045
13106
  function p() {
13046
13107
  for (const m of c)
13047
13108
  g(m, !1);
13048
13109
  }
13049
- function _(m, b) {
13050
- var T, y;
13051
- const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, C].filter(Boolean);
13052
- E && (b ? s.add(m.code) : s.delete(m.code));
13110
+ function v(m, _) {
13111
+ var C, y;
13112
+ const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
13113
+ E && (_ ? s.add(m.code) : s.delete(m.code));
13053
13114
  for (const k of I)
13054
- c.add(k), g(k, b);
13055
- C === "meta" && !b ? (u.forEach((k) => {
13115
+ c.add(k), g(k, _);
13116
+ T === "meta" && !_ ? (u.forEach((k) => {
13056
13117
  s.delete(k), g(k, !1);
13057
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...I].forEach((k) => u.add(k));
13058
- }
13059
- 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 }));
13060
- const v = new Proxy(l, {
13061
- get(m, b, T) {
13062
- if (typeof b != "string")
13063
- return Reflect.get(m, b, T);
13064
- if (b = b.toLowerCase(), b in n && (b = n[b]), !(b in l))
13065
- if (/[+_-]/.test(b)) {
13066
- const C = b.split(/[+_-]/g).map((E) => E.trim());
13067
- l[b] = computed(() => C.every((E) => unref(v[E])));
13118
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...I].forEach((k) => u.add(k));
13119
+ }
13120
+ 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 }));
13121
+ const b = new Proxy(l, {
13122
+ get(m, _, C) {
13123
+ if (typeof _ != "string")
13124
+ return Reflect.get(m, _, C);
13125
+ if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
13126
+ if (/[+_-]/.test(_)) {
13127
+ const T = _.split(/[+_-]/g).map((E) => E.trim());
13128
+ l[_] = computed(() => T.every((E) => unref(b[E])));
13068
13129
  } else
13069
- l[b] = ref(!1);
13070
- const y = Reflect.get(m, b, T);
13130
+ l[_] = ref(!1);
13131
+ const y = Reflect.get(m, _, C);
13071
13132
  return t ? unref(y) : y;
13072
13133
  }
13073
13134
  });
13074
- return v;
13135
+ return b;
13075
13136
  }
13076
13137
  var SwipeDirection;
13077
13138
  (function(e) {
@@ -13453,58 +13514,58 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13453
13514
  columnWidth: 32,
13454
13515
  hideSelectAll: !0,
13455
13516
  selectedRowKeys: g,
13456
- onSelect: (V) => F(V)
13457
- }), _ = ref({
13517
+ onSelect: (V) => R(V)
13518
+ }), v = ref({
13458
13519
  visible: !1
13459
- }), v = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13520
+ }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13460
13521
  var V;
13461
13522
  return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13462
- }), b = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13523
+ }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13463
13524
  watch(() => n.getSelectedVar, (V) => {
13464
13525
  V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13465
13526
  }, {
13466
13527
  immediate: !0
13467
13528
  }), watch(() => n.getSelectedVarCatalog, async (V) => {
13468
- var M, A;
13469
- l.value.var_text = (M = V == null ? void 0 : V.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
13529
+ var A, M;
13530
+ l.value.var_text = (A = V == null ? void 0 : V.var_text) != null ? A : "", (M = i.value) == null || M.clearValidate();
13470
13531
  });
13471
13532
  async function y(V = !1) {
13472
- var M, A, w;
13533
+ var A, M, w;
13473
13534
  a.value = !0;
13474
13535
  try {
13475
13536
  const {
13476
- records: L
13537
+ records: N
13477
13538
  } = await List({
13478
13539
  params: {
13479
13540
  pageNo: 1,
13480
13541
  pageSize: 999,
13481
13542
  frm_id: e == null ? void 0 : e.value,
13482
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13543
+ var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
13483
13544
  column: "frm_id,locale_id,cust_lvl",
13484
13545
  order: "asc"
13485
13546
  }
13486
13547
  });
13487
- if (c.value = null, u.value = L != null ? L : [], V) {
13488
- const x = u.value.find((G) => {
13489
- var N;
13490
- return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
13548
+ if (c.value = null, u.value = N != null ? N : [], V) {
13549
+ const F = u.value.find((U) => {
13550
+ var G;
13551
+ return U.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
13491
13552
  });
13492
- n.setSelectedVarCatalog(x != null ? x : null), g.value = x != null && x.id ? [x.id] : [];
13553
+ n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
13493
13554
  } else
13494
- n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13495
- } catch (L) {
13496
- Logger.debug(L == null ? void 0 : L.message);
13555
+ n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13556
+ } catch (N) {
13557
+ Logger.debug(N == null ? void 0 : N.message);
13497
13558
  } finally {
13498
13559
  a.value = !1;
13499
13560
  }
13500
13561
  }
13501
- async function C() {
13502
- var V, M, A;
13562
+ async function T() {
13563
+ var V, A, M;
13503
13564
  try {
13504
13565
  o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
13505
13566
  const w = new VarCatalog({
13506
- ...(M = n.getSelectedVarCatalog) != null ? M : {},
13507
- var_text: (A = l.value) == null ? void 0 : A.var_text
13567
+ ...(A = n.getSelectedVarCatalog) != null ? A : {},
13568
+ var_text: (M = l.value) == null ? void 0 : M.var_text
13508
13569
  });
13509
13570
  w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
13510
13571
  data: w
@@ -13533,23 +13594,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13533
13594
  }
13534
13595
  function E({
13535
13596
  isAllForm: V,
13536
- isAllLanguage: M
13597
+ isAllLanguage: A
13537
13598
  }) {
13538
- var A, w, L;
13599
+ var M, w, N;
13539
13600
  c.value = new VarCatalog({
13540
13601
  id: "",
13541
13602
  cust_lvl: KG_CUSTOM_LEVEL.L10,
13542
- grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
13603
+ grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
13543
13604
  var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13544
13605
  frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13545
- locale_id: M ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
13606
+ locale_id: A ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13546
13607
  var_text: ""
13547
13608
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
13548
13609
  }
13549
13610
  function I() {
13550
- var M;
13611
+ var A;
13551
13612
  u.value = without$1(u.value, c.value), c.value = null;
13552
- const V = (M = u.value[0]) != null ? M : null;
13613
+ const V = (A = u.value[0]) != null ? A : null;
13553
13614
  n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
13554
13615
  }
13555
13616
  function k() {
@@ -13569,24 +13630,24 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13569
13630
  }
13570
13631
  });
13571
13632
  }
13572
- function F(V) {
13573
- var M;
13574
- ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== V.id && (unref(c) ? KgUtil.confirm({
13633
+ function R(V) {
13634
+ var A;
13635
+ ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) !== V.id && (unref(c) ? KgUtil.confirm({
13575
13636
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
13576
13637
  onOk: () => {
13577
13638
  u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
13578
13639
  }
13579
13640
  }) : (n.setSelectedVarCatalog(unref(V)), g.value = [V.id]));
13580
13641
  }
13581
- function R() {
13582
- _.value.visible = !0;
13642
+ function L() {
13643
+ v.value.visible = !0;
13583
13644
  }
13584
13645
  function O() {
13585
13646
  return createVNode("div", {
13586
13647
  class: "buttons"
13587
13648
  }, [createVNode(Button, {
13588
- onClick: R,
13589
- disabled: v.value,
13649
+ onClick: L,
13650
+ disabled: b.value,
13590
13651
  type: "primary"
13591
13652
  }, {
13592
13653
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -13601,13 +13662,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13601
13662
  })]);
13602
13663
  }
13603
13664
  function D() {
13604
- let V, M;
13665
+ let V, A;
13605
13666
  return createVNode("div", {
13606
13667
  class: "form"
13607
13668
  }, [createVNode(Form, {
13608
13669
  ref: i,
13609
13670
  model: l.value,
13610
- onSubmit: C
13671
+ onSubmit: T
13611
13672
  }, {
13612
13673
  default: () => [createVNode(Form.Item, {
13613
13674
  name: "var_text",
@@ -13618,7 +13679,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13618
13679
  }, {
13619
13680
  default: () => [createVNode(Textarea, {
13620
13681
  value: l.value.var_text,
13621
- "onUpdate:value": (A) => l.value.var_text = A,
13682
+ "onUpdate:value": (M) => l.value.var_text = M,
13622
13683
  disabled: !n.getSelectedVarCatalog
13623
13684
  }, null), createVNode("button", {
13624
13685
  hidden: !0
@@ -13627,23 +13688,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13627
13688
  }), createVNode("div", {
13628
13689
  class: "buttons"
13629
13690
  }, [createVNode(Button, {
13630
- disabled: b.value,
13691
+ disabled: _.value,
13631
13692
  onClick: I
13632
13693
  }, _isSlot(V = t.t("common.cancelText")) ? V : {
13633
13694
  default: () => [V]
13634
13695
  }), createVNode(Button, {
13635
13696
  loading: o.value,
13636
- disabled: T.value,
13637
- onClick: C,
13697
+ disabled: C.value,
13698
+ onClick: T,
13638
13699
  type: "primary"
13639
- }, _isSlot(M = t.t("common.save")) ? M : {
13640
- default: () => [M]
13700
+ }, _isSlot(A = t.t("common.save")) ? A : {
13701
+ default: () => [A]
13641
13702
  })])]);
13642
13703
  }
13643
13704
  function $(V) {
13644
- var A;
13645
- let M = "";
13646
- return V.id || (M += " ant-table-row-create"), V.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
13705
+ var M;
13706
+ let A = "";
13707
+ return V.id || (A += " ant-table-row-create"), V.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (A += " ant-table-row-selected "), A;
13647
13708
  }
13648
13709
  return () => createVNode("div", {
13649
13710
  class: "kg-var-config-modal-var-var-catalog"
@@ -13662,11 +13723,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13662
13723
  rowClassName: $,
13663
13724
  rowSelection: p.value,
13664
13725
  customRow: (V) => ({
13665
- onClick: () => F(V)
13726
+ onClick: () => R(V)
13666
13727
  })
13667
13728
  }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13668
- visible: _.value.visible,
13669
- "onUpdate:visible": (V) => _.value.visible = V,
13729
+ visible: v.value.visible,
13730
+ "onUpdate:visible": (V) => v.value.visible = V,
13670
13731
  onKgOk: E
13671
13732
  }, null)]);
13672
13733
  }
@@ -13995,40 +14056,40 @@ const KgWarehouse$1 = "", getProps = () => ({
13995
14056
  customRender: ({
13996
14057
  record: E
13997
14058
  }) => {
13998
- var k, F, R;
14059
+ var k, R, L;
13999
14060
  const I = E;
14000
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (F = I.whId) != null ? F : " "]), createVNode("div", {
14061
+ return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
14001
14062
  class: "address"
14002
- }, [(R = I.adrId) != null ? R : " "])]);
14063
+ }, [(L = I.adrId) != null ? L : " "])]);
14003
14064
  }
14004
14065
  }]), c = ref([]), g = computed(() => {
14005
14066
  var I;
14006
14067
  const E = (I = o.value) == null ? void 0 : I.toUpperCase();
14007
14068
  return c.value.filter((k) => {
14008
- var F, R, O, D, $, V;
14009
- 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));
14069
+ var R, L, O, D, $, V;
14070
+ 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));
14010
14071
  });
14011
14072
  }), p = computed(() => {
14012
14073
  var E, I;
14013
14074
  return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14014
14075
  });
14015
14076
  watch(n.visible, (E) => {
14016
- !p.value || (E ? v() : m());
14077
+ !p.value || (E ? b() : m());
14017
14078
  }, {
14018
14079
  immediate: !0
14019
14080
  }), onMounted(() => {
14020
14081
  n.store.emit("mounted");
14021
14082
  });
14022
- function _() {
14083
+ function v() {
14023
14084
  !p.value || n.store.setVisible(!0);
14024
14085
  }
14025
- function v() {
14026
- i.value = n.warehouse.value, T();
14086
+ function b() {
14087
+ i.value = n.warehouse.value, C();
14027
14088
  }
14028
14089
  function m() {
14029
14090
  o.value = "", c.value = [], i.value = null;
14030
14091
  }
14031
- function b() {
14092
+ function _() {
14032
14093
  var E;
14033
14094
  !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({
14034
14095
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14042,7 +14103,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14042
14103
  }
14043
14104
  })), n.store.setVisible(!1));
14044
14105
  }
14045
- async function T() {
14106
+ async function C() {
14046
14107
  l.value = !0;
14047
14108
  try {
14048
14109
  const {
@@ -14067,11 +14128,11 @@ const KgWarehouse$1 = "", getProps = () => ({
14067
14128
  ((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
14068
14129
  break;
14069
14130
  case 2:
14070
- i.value = I, b();
14131
+ i.value = I, _();
14071
14132
  break;
14072
14133
  }
14073
14134
  }
14074
- function C() {
14135
+ function T() {
14075
14136
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14076
14137
  title: r.t("kg.KgWarehouse.warehouse"),
14077
14138
  placement: "bottomRight"
@@ -14095,7 +14156,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14095
14156
  okButtonProps: {
14096
14157
  disabled: l.value || !i.value
14097
14158
  },
14098
- onOk: b
14159
+ onOk: _
14099
14160
  }, {
14100
14161
  default: () => [createVNode(Input, {
14101
14162
  value: o.value,
@@ -14131,8 +14192,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14131
14192
  }
14132
14193
  return () => createVNode("div", {
14133
14194
  class: a.value,
14134
- onClick: _
14135
- }, [C()]);
14195
+ onClick: v
14196
+ }, [T()]);
14136
14197
  }
14137
14198
  });
14138
14199
  function createKgWarehouseGuard(e, t) {
@@ -14216,6 +14277,7 @@ export {
14216
14277
  Logger,
14217
14278
  UpdateVarGridMasterQuery,
14218
14279
  VarButton,
14280
+ VarButtonConfig,
14219
14281
  VarCatalog,
14220
14282
  VarContext,
14221
14283
  VarDTO,