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