@kengic/vue 0.19.2-beta.4 → 0.19.2-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +572 -572
  2. package/package.json +1 -1
@@ -2930,7 +2930,7 @@ const emptyIcon = {
2930
2930
  ...t.data
2931
2931
  }, r);
2932
2932
  }
2933
- }), version = "0.19.2-beta.4";
2933
+ }), version = "0.19.2-beta.5";
2934
2934
  var isVue2 = !1;
2935
2935
  function set(e, t, r) {
2936
2936
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
@@ -3161,18 +3161,18 @@ function createSetupStore(e, t, r = {}, a, n) {
3161
3161
  return function() {
3162
3162
  setActivePinia(a);
3163
3163
  const D = Array.from(arguments), K = [], P = [];
3164
- function U(R) {
3164
+ function x(R) {
3165
3165
  K.push(R);
3166
3166
  }
3167
- function L(R) {
3167
+ function N(R) {
3168
3168
  P.push(R);
3169
3169
  }
3170
3170
  triggerSubscriptions(b, {
3171
3171
  args: D,
3172
3172
  name: M,
3173
3173
  store: C,
3174
- after: U,
3175
- onError: L
3174
+ after: x,
3175
+ onError: N
3176
3176
  });
3177
3177
  let O;
3178
3178
  try {
@@ -5308,12 +5308,12 @@ class KgRouteUtil {
5308
5308
  }), t;
5309
5309
  }
5310
5310
  static transformMenus(t) {
5311
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O, R, V;
5311
+ var d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O, R, V, F, U, L, $, q, z, J, re, ee, oe, ue;
5312
5312
  if (!t)
5313
5313
  return [];
5314
- const r = useKg(), a = (N) => {
5315
- N.forEach((x) => {
5316
- x.key && x.key !== x.value && (x.value = x.key), x.children && a(x.children);
5314
+ const r = useKg(), a = (ae) => {
5315
+ ae.forEach((ne) => {
5316
+ ne.key && ne.key !== ne.value && (ne.value = ne.key), ne.children && a(ne.children);
5317
5317
  });
5318
5318
  };
5319
5319
  a(t);
@@ -5346,10 +5346,10 @@ class KgRouteUtil {
5346
5346
  children: [],
5347
5347
  id: KG_TMP_MENU_ID__DATA_MANAGER,
5348
5348
  key: KG_TMP_MENU_ID__DATA_MANAGER,
5349
- name: (d = (u = r.option.value.appTitle) == null ? void 0 : u[KG_APP.WMS_DATA_MANAGER]) != null ? d : "\u6570\u636E\u7BA1\u7406",
5350
- slotTitle: (E = (b = r.option.value.appTitle) == null ? void 0 : b[KG_APP.WMS_DATA_MANAGER]) != null ? E : "\u6570\u636E\u7BA1\u7406",
5349
+ name: (b = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? b : "\u6570\u636E\u7BA1\u7406",
5350
+ slotTitle: (g = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? g : "\u6570\u636E\u7BA1\u7406",
5351
5351
  sortNo: 1,
5352
- title: (m = (g = r.option.value.appTitle) == null ? void 0 : g[KG_APP.WMS_DATA_MANAGER]) != null ? m : "\u6570\u636E\u7BA1\u7406",
5352
+ title: (_ = (m = r.option.value.appTitle) == null ? void 0 : m[KG_APP.WMS_DATA_MANAGER]) != null ? _ : "\u6570\u636E\u7BA1\u7406",
5353
5353
  ...n,
5354
5354
  url: KG_APP_PREFIX.WMS_DATA_MANAGER,
5355
5355
  value: KG_TMP_MENU_ID__DATA_MANAGER
@@ -5357,10 +5357,10 @@ class KgRouteUtil {
5357
5357
  children: [],
5358
5358
  id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5359
5359
  key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5360
- name: (y = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_BUSINESS_MANAGER]) != null ? y : "\u4ED3\u5E93\u7BA1\u7406",
5361
- slotTitle: (T = (v = r.option.value.appTitle) == null ? void 0 : v[KG_APP.WMS_BUSINESS_MANAGER]) != null ? T : "\u4ED3\u5E93\u7BA1\u7406",
5360
+ name: (v = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? v : "\u4ED3\u5E93\u7BA1\u7406",
5361
+ slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
5362
5362
  sortNo: 2,
5363
- title: (A = (k = r.option.value.appTitle) == null ? void 0 : k[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
5363
+ title: (C = (A = r.option.value.appTitle) == null ? void 0 : A[KG_APP.WMS_BUSINESS_MANAGER]) != null ? C : "\u4ED3\u5E93\u7BA1\u7406",
5364
5364
  ...n,
5365
5365
  url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
5366
5366
  value: KG_TMP_MENU_ID__BUSINESS_MANAGER
@@ -5368,19 +5368,19 @@ class KgRouteUtil {
5368
5368
  children: [],
5369
5369
  id: KG_TMP_MENU_ID__WCS,
5370
5370
  key: KG_TMP_MENU_ID__WCS,
5371
- name: (w = (C = r.option.value.appTitle) == null ? void 0 : C[KG_APP.WCS]) != null ? w : "WCS",
5372
- slotTitle: (I = (M = r.option.value.appTitle) == null ? void 0 : M[KG_APP.WCS]) != null ? I : "WCS",
5371
+ name: (M = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? M : "WCS",
5372
+ slotTitle: (D = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? D : "WCS",
5373
5373
  sortNo: 3,
5374
- title: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? K : "WCS",
5374
+ title: (P = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.WCS]) != null ? P : "WCS",
5375
5375
  ...n,
5376
5376
  url: KG_APP_PREFIX.WCS,
5377
5377
  value: KG_TMP_MENU_ID__WCS
5378
5378
  }, l = {
5379
5379
  id: KG_TMP_MENU_ID__SYS,
5380
5380
  key: KG_TMP_MENU_ID__SYS,
5381
- title: (U = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? U : "\u7CFB\u7EDF\u914D\u7F6E",
5382
- name: (O = (L = r.option.value.appTitle) == null ? void 0 : L[KG_APP.SYS]) != null ? O : "\u7CFB\u7EDF\u914D\u7F6E",
5383
- slotTitle: (V = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.SYS]) != null ? V : "\u7CFB\u7EDF\u914D\u7F6E",
5381
+ title: (N = (x = r.option.value.appTitle) == null ? void 0 : x[KG_APP.SYS]) != null ? N : "\u7CFB\u7EDF\u914D\u7F6E",
5382
+ name: (R = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.SYS]) != null ? R : "\u7CFB\u7EDF\u914D\u7F6E",
5383
+ slotTitle: (F = (V = r.option.value.appTitle) == null ? void 0 : V[KG_APP.SYS]) != null ? F : "\u7CFB\u7EDF\u914D\u7F6E",
5384
5384
  sortNo: 4,
5385
5385
  children: [],
5386
5386
  ...n,
@@ -5397,25 +5397,27 @@ class KgRouteUtil {
5397
5397
  children: [],
5398
5398
  ...n
5399
5399
  };
5400
- return t.forEach((N) => {
5400
+ t.forEach((ae) => {
5401
5401
  switch (!0) {
5402
- case N.app === "PDA":
5403
- N.parentId = KG_TMP_MENU_ID__PDA, c.children.push(N);
5402
+ case ae.app === "PDA":
5403
+ ae.parentId = KG_TMP_MENU_ID__PDA, c.children.push(ae);
5404
5404
  break;
5405
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WMS_DATA_MANAGER):
5406
- N.parentId = KG_TMP_MENU_ID__DATA_MANAGER, s.children.push(N);
5405
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_DATA_MANAGER):
5406
+ ae.parentId = KG_TMP_MENU_ID__DATA_MANAGER, s.children.push(ae);
5407
5407
  break;
5408
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WMS_BUSINESS_MANAGER):
5409
- N.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, i.children.push(N);
5408
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_BUSINESS_MANAGER):
5409
+ ae.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, i.children.push(ae);
5410
5410
  break;
5411
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WCS):
5412
- N.parentId = KG_TMP_MENU_ID__WCS, o.children.push(N);
5411
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WCS):
5412
+ ae.parentId = KG_TMP_MENU_ID__WCS, o.children.push(ae);
5413
5413
  break;
5414
- case KgRouteUtil.isPathInApp(N.url, KG_APP.SYS):
5415
- N.parentId = KG_TMP_MENU_ID__SYS, l.children.push(N);
5414
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.SYS):
5415
+ ae.parentId = KG_TMP_MENU_ID__SYS, l.children.push(ae);
5416
5416
  break;
5417
5417
  }
5418
- }), [s, i, o, l, c];
5418
+ });
5419
+ let u = [];
5420
+ return ((L = (U = s.children) == null ? void 0 : U.length) != null ? L : 0 > 0) && u.push(s), ((q = ($ = i.children) == null ? void 0 : $.length) != null ? q : 0 > 0) && u.push(i), ((J = (z = o.children) == null ? void 0 : z.length) != null ? J : 0 > 0) && u.push(o), ((ee = (re = l.children) == null ? void 0 : re.length) != null ? ee : 0 > 0) && u.push(l), ((ue = (oe = c.children) == null ? void 0 : oe.length) != null ? ue : 0 > 0) && u.push(c), u;
5419
5421
  }
5420
5422
  static isPathInApp(t, r) {
5421
5423
  if (!t || !r)
@@ -5470,8 +5472,6 @@ class KgAuthUtil {
5470
5472
  var n, s, i, o;
5471
5473
  if (!t)
5472
5474
  return KgLogger.debug("KgAuthUtil | isAppAuthenticated() | \u6A21\u5757\u4E3A\u7A7A.", { app: t }), !1;
5473
- if (KgAuthUtil.isAdminUser())
5474
- return !0;
5475
5475
  const a = (o = (i = (s = (n = useKg().store).getUsePermissionStore) == null ? void 0 : s.call(n)) == null ? void 0 : i.getBackMenuList) == null ? void 0 : o.map((l) => l.path);
5476
5476
  return !!(a != null && a.some((l) => KgRouteUtil.isPathInApp(l, t)));
5477
5477
  }
@@ -5502,76 +5502,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5502
5502
  (function(r, a) {
5503
5503
  e.exports = a();
5504
5504
  })(commonjsGlobal, function() {
5505
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(L) {
5506
- var O = ["th", "st", "nd", "rd"], R = L % 100;
5507
- return "[" + L + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
5508
- } }, T = function(L, O, R) {
5509
- var V = String(L);
5510
- return !V || V.length >= O ? L : "" + Array(O + 1 - V.length).join(R) + L;
5511
- }, k = { s: T, z: function(L) {
5512
- var O = -L.utcOffset(), R = Math.abs(O), V = Math.floor(R / 60), N = R % 60;
5513
- return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(N, 2, "0");
5514
- }, m: function L(O, R) {
5505
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(N) {
5506
+ var O = ["th", "st", "nd", "rd"], R = N % 100;
5507
+ return "[" + N + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
5508
+ } }, T = function(N, O, R) {
5509
+ var V = String(N);
5510
+ return !V || V.length >= O ? N : "" + Array(O + 1 - V.length).join(R) + N;
5511
+ }, k = { s: T, z: function(N) {
5512
+ var O = -N.utcOffset(), R = Math.abs(O), V = Math.floor(R / 60), F = R % 60;
5513
+ return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(F, 2, "0");
5514
+ }, m: function N(O, R) {
5515
5515
  if (O.date() < R.date())
5516
- return -L(R, O);
5517
- var V = 12 * (R.year() - O.year()) + (R.month() - O.month()), N = O.clone().add(V, d), x = R - N < 0, $ = O.clone().add(V + (x ? -1 : 1), d);
5518
- return +(-(V + (R - N) / (x ? N - $ : $ - N)) || 0);
5519
- }, a: function(L) {
5520
- return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
5521
- }, p: function(L) {
5522
- return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[L] || String(L || "").toLowerCase().replace(/s$/, "");
5523
- }, u: function(L) {
5524
- return L === void 0;
5516
+ return -N(R, O);
5517
+ var V = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(V, d), U = R - F < 0, L = O.clone().add(V + (U ? -1 : 1), d);
5518
+ return +(-(V + (R - F) / (U ? F - L : L - F)) || 0);
5519
+ }, a: function(N) {
5520
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
5521
+ }, p: function(N) {
5522
+ return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[N] || String(N || "").toLowerCase().replace(/s$/, "");
5523
+ }, u: function(N) {
5524
+ return N === void 0;
5525
5525
  } }, A = "en", C = {};
5526
5526
  C[A] = v;
5527
- var w = "$isDayjsObject", M = function(L) {
5528
- return L instanceof P || !(!L || !L[w]);
5529
- }, I = function L(O, R, V) {
5530
- var N;
5527
+ var w = "$isDayjsObject", M = function(N) {
5528
+ return N instanceof P || !(!N || !N[w]);
5529
+ }, I = function N(O, R, V) {
5530
+ var F;
5531
5531
  if (!O)
5532
5532
  return A;
5533
5533
  if (typeof O == "string") {
5534
- var x = O.toLowerCase();
5535
- C[x] && (N = x), R && (C[x] = R, N = x);
5536
- var $ = O.split("-");
5537
- if (!N && $.length > 1)
5538
- return L($[0]);
5534
+ var U = O.toLowerCase();
5535
+ C[U] && (F = U), R && (C[U] = R, F = U);
5536
+ var L = O.split("-");
5537
+ if (!F && L.length > 1)
5538
+ return N(L[0]);
5539
5539
  } else {
5540
- var F = O.name;
5541
- C[F] = O, N = F;
5540
+ var $ = O.name;
5541
+ C[$] = O, F = $;
5542
5542
  }
5543
- return !V && N && (A = N), N || !V && A;
5544
- }, D = function(L, O) {
5545
- if (M(L))
5546
- return L.clone();
5543
+ return !V && F && (A = F), F || !V && A;
5544
+ }, D = function(N, O) {
5545
+ if (M(N))
5546
+ return N.clone();
5547
5547
  var R = typeof O == "object" ? O : {};
5548
- return R.date = L, R.args = arguments, new P(R);
5548
+ return R.date = N, R.args = arguments, new P(R);
5549
5549
  }, K = k;
5550
- K.l = I, K.i = M, K.w = function(L, O) {
5551
- return D(L, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5550
+ K.l = I, K.i = M, K.w = function(N, O) {
5551
+ return D(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5552
5552
  };
5553
5553
  var P = function() {
5554
- function L(R) {
5554
+ function N(R) {
5555
5555
  this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[w] = !0;
5556
5556
  }
5557
- var O = L.prototype;
5557
+ var O = N.prototype;
5558
5558
  return O.parse = function(R) {
5559
5559
  this.$d = function(V) {
5560
- var N = V.date, x = V.utc;
5561
- if (N === null)
5560
+ var F = V.date, U = V.utc;
5561
+ if (F === null)
5562
5562
  return new Date(NaN);
5563
- if (K.u(N))
5563
+ if (K.u(F))
5564
5564
  return new Date();
5565
- if (N instanceof Date)
5566
- return new Date(N);
5567
- if (typeof N == "string" && !/Z$/i.test(N)) {
5568
- var $ = N.match(_);
5569
- if ($) {
5570
- var F = $[2] - 1 || 0, H = ($[7] || "0").substring(0, 3);
5571
- return x ? new Date(Date.UTC($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, H)) : new Date($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, H);
5565
+ if (F instanceof Date)
5566
+ return new Date(F);
5567
+ if (typeof F == "string" && !/Z$/i.test(F)) {
5568
+ var L = F.match(_);
5569
+ if (L) {
5570
+ var $ = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
5571
+ return U ? new Date(Date.UTC(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
5572
5572
  }
5573
5573
  }
5574
- return new Date(N);
5574
+ return new Date(F);
5575
5575
  }(R), this.init();
5576
5576
  }, O.init = function() {
5577
5577
  var R = this.$d;
@@ -5581,91 +5581,91 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5581
5581
  }, O.isValid = function() {
5582
5582
  return this.$d.toString() !== m;
5583
5583
  }, O.isSame = function(R, V) {
5584
- var N = D(R);
5585
- return this.startOf(V) <= N && N <= this.endOf(V);
5584
+ var F = D(R);
5585
+ return this.startOf(V) <= F && F <= this.endOf(V);
5586
5586
  }, O.isAfter = function(R, V) {
5587
5587
  return D(R) < this.startOf(V);
5588
5588
  }, O.isBefore = function(R, V) {
5589
5589
  return this.endOf(V) < D(R);
5590
- }, O.$g = function(R, V, N) {
5591
- return K.u(R) ? this[V] : this.set(N, R);
5590
+ }, O.$g = function(R, V, F) {
5591
+ return K.u(R) ? this[V] : this.set(F, R);
5592
5592
  }, O.unix = function() {
5593
5593
  return Math.floor(this.valueOf() / 1e3);
5594
5594
  }, O.valueOf = function() {
5595
5595
  return this.$d.getTime();
5596
5596
  }, O.startOf = function(R, V) {
5597
- var N = this, x = !!K.u(V) || V, $ = K.p(R), F = function(de, ne) {
5598
- var B = K.w(N.$u ? Date.UTC(N.$y, ne, de) : new Date(N.$y, ne, de), N);
5599
- return x ? B : B.endOf(c);
5600
- }, H = function(de, ne) {
5601
- return K.w(N.toDate()[de].apply(N.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), N);
5602
- }, Q = this.$W, J = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
5603
- switch ($) {
5597
+ var F = this, U = !!K.u(V) || V, L = K.p(R), $ = function(ae, ne) {
5598
+ var B = K.w(F.$u ? Date.UTC(F.$y, ne, ae) : new Date(F.$y, ne, ae), F);
5599
+ return U ? B : B.endOf(c);
5600
+ }, q = function(ae, ne) {
5601
+ return K.w(F.toDate()[ae].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
5602
+ }, z = this.$W, J = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
5603
+ switch (L) {
5604
5604
  case E:
5605
- return x ? F(1, 0) : F(31, 11);
5605
+ return U ? $(1, 0) : $(31, 11);
5606
5606
  case d:
5607
- return x ? F(1, J) : F(0, J + 1);
5607
+ return U ? $(1, J) : $(0, J + 1);
5608
5608
  case u:
5609
- var ie = this.$locale().weekStart || 0, _e = (Q < ie ? Q + 7 : Q) - ie;
5610
- return F(x ? re - _e : re + (6 - _e), J);
5609
+ var oe = this.$locale().weekStart || 0, ue = (z < oe ? z + 7 : z) - oe;
5610
+ return $(U ? re - ue : re + (6 - ue), J);
5611
5611
  case c:
5612
5612
  case g:
5613
- return H(te + "Hours", 0);
5613
+ return q(ee + "Hours", 0);
5614
5614
  case l:
5615
- return H(te + "Minutes", 1);
5615
+ return q(ee + "Minutes", 1);
5616
5616
  case o:
5617
- return H(te + "Seconds", 2);
5617
+ return q(ee + "Seconds", 2);
5618
5618
  case i:
5619
- return H(te + "Milliseconds", 3);
5619
+ return q(ee + "Milliseconds", 3);
5620
5620
  default:
5621
5621
  return this.clone();
5622
5622
  }
5623
5623
  }, O.endOf = function(R) {
5624
5624
  return this.startOf(R, !1);
5625
5625
  }, O.$set = function(R, V) {
5626
- var N, x = K.p(R), $ = "set" + (this.$u ? "UTC" : ""), F = (N = {}, N[c] = $ + "Date", N[g] = $ + "Date", N[d] = $ + "Month", N[E] = $ + "FullYear", N[l] = $ + "Hours", N[o] = $ + "Minutes", N[i] = $ + "Seconds", N[s] = $ + "Milliseconds", N)[x], H = x === c ? this.$D + (V - this.$W) : V;
5627
- if (x === d || x === E) {
5628
- var Q = this.clone().set(g, 1);
5629
- Q.$d[F](H), Q.init(), this.$d = Q.set(g, Math.min(this.$D, Q.daysInMonth())).$d;
5626
+ var F, U = K.p(R), L = "set" + (this.$u ? "UTC" : ""), $ = (F = {}, F[c] = L + "Date", F[g] = L + "Date", F[d] = L + "Month", F[E] = L + "FullYear", F[l] = L + "Hours", F[o] = L + "Minutes", F[i] = L + "Seconds", F[s] = L + "Milliseconds", F)[U], q = U === c ? this.$D + (V - this.$W) : V;
5627
+ if (U === d || U === E) {
5628
+ var z = this.clone().set(g, 1);
5629
+ z.$d[$](q), z.init(), this.$d = z.set(g, Math.min(this.$D, z.daysInMonth())).$d;
5630
5630
  } else
5631
- F && this.$d[F](H);
5631
+ $ && this.$d[$](q);
5632
5632
  return this.init(), this;
5633
5633
  }, O.set = function(R, V) {
5634
5634
  return this.clone().$set(R, V);
5635
5635
  }, O.get = function(R) {
5636
5636
  return this[K.p(R)]();
5637
5637
  }, O.add = function(R, V) {
5638
- var N, x = this;
5638
+ var F, U = this;
5639
5639
  R = Number(R);
5640
- var $ = K.p(V), F = function(J) {
5641
- var re = D(x);
5642
- return K.w(re.date(re.date() + Math.round(J * R)), x);
5640
+ var L = K.p(V), $ = function(J) {
5641
+ var re = D(U);
5642
+ return K.w(re.date(re.date() + Math.round(J * R)), U);
5643
5643
  };
5644
- if ($ === d)
5644
+ if (L === d)
5645
5645
  return this.set(d, this.$M + R);
5646
- if ($ === E)
5646
+ if (L === E)
5647
5647
  return this.set(E, this.$y + R);
5648
- if ($ === c)
5649
- return F(1);
5650
- if ($ === u)
5651
- return F(7);
5652
- var H = (N = {}, N[o] = a, N[l] = n, N[i] = r, N)[$] || 1, Q = this.$d.getTime() + R * H;
5653
- return K.w(Q, this);
5648
+ if (L === c)
5649
+ return $(1);
5650
+ if (L === u)
5651
+ return $(7);
5652
+ var q = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[L] || 1, z = this.$d.getTime() + R * q;
5653
+ return K.w(z, this);
5654
5654
  }, O.subtract = function(R, V) {
5655
5655
  return this.add(-1 * R, V);
5656
5656
  }, O.format = function(R) {
5657
- var V = this, N = this.$locale();
5657
+ var V = this, F = this.$locale();
5658
5658
  if (!this.isValid())
5659
- return N.invalidDate || m;
5660
- var x = R || "YYYY-MM-DDTHH:mm:ssZ", $ = K.z(this), F = this.$H, H = this.$m, Q = this.$M, J = N.weekdays, re = N.months, te = N.meridiem, ie = function(ne, B, G, z) {
5661
- return ne && (ne[B] || ne(V, x)) || G[B].slice(0, z);
5662
- }, _e = function(ne) {
5663
- return K.s(F % 12 || 12, ne, "0");
5664
- }, de = te || function(ne, B, G) {
5665
- var z = ne < 12 ? "AM" : "PM";
5666
- return G ? z.toLowerCase() : z;
5659
+ return F.invalidDate || m;
5660
+ var U = R || "YYYY-MM-DDTHH:mm:ssZ", L = K.z(this), $ = this.$H, q = this.$m, z = this.$M, J = F.weekdays, re = F.months, ee = F.meridiem, oe = function(ne, B, G, Q) {
5661
+ return ne && (ne[B] || ne(V, U)) || G[B].slice(0, Q);
5662
+ }, ue = function(ne) {
5663
+ return K.s($ % 12 || 12, ne, "0");
5664
+ }, ae = ee || function(ne, B, G) {
5665
+ var Q = ne < 12 ? "AM" : "PM";
5666
+ return G ? Q.toLowerCase() : Q;
5667
5667
  };
5668
- return x.replace(y, function(ne, B) {
5668
+ return U.replace(y, function(ne, B) {
5669
5669
  return B || function(G) {
5670
5670
  switch (G) {
5671
5671
  case "YY":
@@ -5673,13 +5673,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5673
5673
  case "YYYY":
5674
5674
  return K.s(V.$y, 4, "0");
5675
5675
  case "M":
5676
- return Q + 1;
5676
+ return z + 1;
5677
5677
  case "MM":
5678
- return K.s(Q + 1, 2, "0");
5678
+ return K.s(z + 1, 2, "0");
5679
5679
  case "MMM":
5680
- return ie(N.monthsShort, Q, re, 3);
5680
+ return oe(F.monthsShort, z, re, 3);
5681
5681
  case "MMMM":
5682
- return ie(re, Q);
5682
+ return oe(re, z);
5683
5683
  case "D":
5684
5684
  return V.$D;
5685
5685
  case "DD":
@@ -5687,27 +5687,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5687
5687
  case "d":
5688
5688
  return String(V.$W);
5689
5689
  case "dd":
5690
- return ie(N.weekdaysMin, V.$W, J, 2);
5690
+ return oe(F.weekdaysMin, V.$W, J, 2);
5691
5691
  case "ddd":
5692
- return ie(N.weekdaysShort, V.$W, J, 3);
5692
+ return oe(F.weekdaysShort, V.$W, J, 3);
5693
5693
  case "dddd":
5694
5694
  return J[V.$W];
5695
5695
  case "H":
5696
- return String(F);
5696
+ return String($);
5697
5697
  case "HH":
5698
- return K.s(F, 2, "0");
5698
+ return K.s($, 2, "0");
5699
5699
  case "h":
5700
- return _e(1);
5700
+ return ue(1);
5701
5701
  case "hh":
5702
- return _e(2);
5702
+ return ue(2);
5703
5703
  case "a":
5704
- return de(F, H, !0);
5704
+ return ae($, q, !0);
5705
5705
  case "A":
5706
- return de(F, H, !1);
5706
+ return ae($, q, !1);
5707
5707
  case "m":
5708
- return String(H);
5708
+ return String(q);
5709
5709
  case "mm":
5710
- return K.s(H, 2, "0");
5710
+ return K.s(q, 2, "0");
5711
5711
  case "s":
5712
5712
  return String(V.$s);
5713
5713
  case "ss":
@@ -5715,46 +5715,46 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5715
5715
  case "SSS":
5716
5716
  return K.s(V.$ms, 3, "0");
5717
5717
  case "Z":
5718
- return $;
5718
+ return L;
5719
5719
  }
5720
5720
  return null;
5721
- }(ne) || $.replace(":", "");
5721
+ }(ne) || L.replace(":", "");
5722
5722
  });
5723
5723
  }, O.utcOffset = function() {
5724
5724
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5725
- }, O.diff = function(R, V, N) {
5726
- var x, $ = this, F = K.p(V), H = D(R), Q = (H.utcOffset() - this.utcOffset()) * a, J = this - H, re = function() {
5727
- return K.m($, H);
5725
+ }, O.diff = function(R, V, F) {
5726
+ var U, L = this, $ = K.p(V), q = D(R), z = (q.utcOffset() - this.utcOffset()) * a, J = this - q, re = function() {
5727
+ return K.m(L, q);
5728
5728
  };
5729
- switch (F) {
5729
+ switch ($) {
5730
5730
  case E:
5731
- x = re() / 12;
5731
+ U = re() / 12;
5732
5732
  break;
5733
5733
  case d:
5734
- x = re();
5734
+ U = re();
5735
5735
  break;
5736
5736
  case b:
5737
- x = re() / 3;
5737
+ U = re() / 3;
5738
5738
  break;
5739
5739
  case u:
5740
- x = (J - Q) / 6048e5;
5740
+ U = (J - z) / 6048e5;
5741
5741
  break;
5742
5742
  case c:
5743
- x = (J - Q) / 864e5;
5743
+ U = (J - z) / 864e5;
5744
5744
  break;
5745
5745
  case l:
5746
- x = J / n;
5746
+ U = J / n;
5747
5747
  break;
5748
5748
  case o:
5749
- x = J / a;
5749
+ U = J / a;
5750
5750
  break;
5751
5751
  case i:
5752
- x = J / r;
5752
+ U = J / r;
5753
5753
  break;
5754
5754
  default:
5755
- x = J;
5755
+ U = J;
5756
5756
  }
5757
- return N ? x : K.a(x);
5757
+ return F ? U : K.a(U);
5758
5758
  }, O.daysInMonth = function() {
5759
5759
  return this.endOf(d).$D;
5760
5760
  }, O.$locale = function() {
@@ -5762,8 +5762,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5762
5762
  }, O.locale = function(R, V) {
5763
5763
  if (!R)
5764
5764
  return this.$L;
5765
- var N = this.clone(), x = I(R, V, !0);
5766
- return x && (N.$L = x), N;
5765
+ var F = this.clone(), U = I(R, V, !0);
5766
+ return U && (F.$L = U), F;
5767
5767
  }, O.clone = function() {
5768
5768
  return K.w(this.$d, this);
5769
5769
  }, O.toDate = function() {
@@ -5774,16 +5774,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5774
5774
  return this.$d.toISOString();
5775
5775
  }, O.toString = function() {
5776
5776
  return this.$d.toUTCString();
5777
- }, L;
5778
- }(), U = P.prototype;
5779
- return D.prototype = U, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(L) {
5780
- U[L[1]] = function(O) {
5781
- return this.$g(O, L[0], L[1]);
5777
+ }, N;
5778
+ }(), x = P.prototype;
5779
+ return D.prototype = x, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(N) {
5780
+ x[N[1]] = function(O) {
5781
+ return this.$g(O, N[0], N[1]);
5782
5782
  };
5783
- }), D.extend = function(L, O) {
5784
- return L.$i || (L(O, P, D), L.$i = !0), D;
5785
- }, D.locale = I, D.isDayjs = M, D.unix = function(L) {
5786
- return D(1e3 * L);
5783
+ }), D.extend = function(N, O) {
5784
+ return N.$i || (N(O, P, D), N.$i = !0), D;
5785
+ }, D.locale = I, D.isDayjs = M, D.unix = function(N) {
5786
+ return D(1e3 * N);
5787
5787
  }, D.en = C[A], D.Ls = C, D.p = {}, D;
5788
5788
  });
5789
5789
  })(dayjs_min);
@@ -5846,8 +5846,8 @@ function filesize(e, {
5846
5846
  T[0] = I(k * D) / D, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
5847
5847
  }
5848
5848
  if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
5849
- const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, U = P.length, L = n - U;
5850
- T[0] = `${K[0]}${D}${P.padEnd(U + L, ZERO)}`;
5849
+ const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, x = P.length, N = n - x;
5850
+ T[0] = `${K[0]}${D}${P.padEnd(x + N, ZERO)}`;
5851
5851
  }
5852
5852
  return w && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
5853
5853
  value: T[0],
@@ -7943,8 +7943,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7943
7943
  }) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
7944
7944
  model: l
7945
7945
  }) => (i = watch(l, (c) => {
7946
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O;
7947
- c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (U = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? U : void 0, c.button_display_type = (O = (L = o.value) == null ? void 0 : L.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7946
+ var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O;
7947
+ c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (x = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? x : void 0, c.button_display_type = (O = (N = o.value) == null ? void 0 : N.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7948
7948
  }, {
7949
7949
  immediate: !0
7950
7950
  }), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
@@ -8867,24 +8867,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8867
8867
  if (A != null && A.id)
8868
8868
  try {
8869
8869
  o.store.setIsLoading(n.formID, !0);
8870
- const U = await QueryByID$1({
8870
+ const x = await QueryByID$1({
8871
8871
  params: {
8872
8872
  id: A.id
8873
8873
  }
8874
8874
  });
8875
8875
  c.value = c.value.map((O) => {
8876
8876
  var V;
8877
- const R = (V = U == null ? void 0 : U.varGridDetails) == null ? void 0 : V.find((N) => N.var_nam === O.var_nam);
8877
+ const R = (V = x == null ? void 0 : x.varGridDetails) == null ? void 0 : V.find((F) => F.var_nam === O.var_nam);
8878
8878
  return R ? {
8879
8879
  ...O,
8880
8880
  ...R,
8881
8881
  id: O.id
8882
8882
  } : O;
8883
8883
  });
8884
- const L = (I = (M = U == null ? void 0 : U.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
8885
- u.value = c.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
8886
- } catch (U) {
8887
- throw U;
8884
+ const N = (I = (M = x == null ? void 0 : x.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
8885
+ u.value = c.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
8886
+ } catch (x) {
8887
+ throw x;
8888
8888
  } finally {
8889
8889
  o.store.setIsLoading(n.formID, !1);
8890
8890
  }
@@ -9635,7 +9635,7 @@ const getProps$z = () => ({
9635
9635
  });
9636
9636
  }
9637
9637
  function v() {
9638
- var k, A, C, w, M, I, D, K, P, U, L;
9638
+ var k, A, C, w, M, I, D, K, P, x, N;
9639
9639
  if (u.value)
9640
9640
  return y();
9641
9641
  switch ((k = l.value) == null ? void 0 : k.display_type) {
@@ -9671,7 +9671,7 @@ const getProps$z = () => ({
9671
9671
  return T();
9672
9672
  }
9673
9673
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9674
- const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (U = (P = e.kgRow) == null ? void 0 : P[O.leftColumn]) != null ? U : 0;
9674
+ const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (x = (P = e.kgRow) == null ? void 0 : P[O.leftColumn]) != null ? x : 0;
9675
9675
  switch (e.kgContext) {
9676
9676
  case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
9677
9677
  return R;
@@ -9679,7 +9679,7 @@ const getProps$z = () => ({
9679
9679
  return createVNode(KgProgressA, {
9680
9680
  kgTextWidth: O.textWidth,
9681
9681
  kgLeft: R,
9682
- kgRight: (L = e.kgRow) == null ? void 0 : L[O.rightColumn]
9682
+ kgRight: (N = e.kgRow) == null ? void 0 : N[O.rightColumn]
9683
9683
  }, null);
9684
9684
  }
9685
9685
  break;
@@ -9789,7 +9789,7 @@ function _useColumns(e) {
9789
9789
  index: C
9790
9790
  }) => C + 1
9791
9791
  }, ...(A = y == null ? void 0 : y.map((C, w) => {
9792
- var V, N, x;
9792
+ var V, F, U;
9793
9793
  const M = C.var_nam;
9794
9794
  function I() {
9795
9795
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -9804,30 +9804,30 @@ function _useColumns(e) {
9804
9804
  return "right";
9805
9805
  }
9806
9806
  function P() {
9807
- var $, F, H, Q;
9808
- return !(C.ord_flg !== 1 || (F = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.KgTable) != null && F.kgDisabled || isNil((Q = (H = t == null ? void 0 : t.value) == null ? void 0 : H.KgTable) == null ? void 0 : Q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
9809
- }
9810
- function U() {
9811
- var $, F, H, Q, J, re;
9812
- if (((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((Q = (H = t == null ? void 0 : t.value) == null ? void 0 : H.KgTable) != null && Q.kgDisabled) && !(isNil((re = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : re.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
9813
- return uniqBy(g.map((te) => {
9814
- var ie;
9807
+ var L, $, q, z;
9808
+ return !(C.ord_flg !== 1 || ($ = (L = t == null ? void 0 : t.value) == null ? void 0 : L.KgTable) != null && $.kgDisabled || isNil((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
9809
+ }
9810
+ function x() {
9811
+ var L, $, q, z, J, re;
9812
+ if ((($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) === !0 && C.filter_flag === 1 && !((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) != null && z.kgDisabled) && !(isNil((re = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : re.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
9813
+ return uniqBy(g.map((ee) => {
9814
+ var oe;
9815
9815
  return {
9816
- value: (ie = te == null ? void 0 : te[M]) != null ? ie : "",
9816
+ value: (oe = ee == null ? void 0 : ee[M]) != null ? oe : "",
9817
9817
  text: i({
9818
9818
  column: {
9819
9819
  dataIndex: M
9820
9820
  },
9821
9821
  index: w,
9822
- record: te,
9823
- value: te == null ? void 0 : te[M]
9822
+ record: ee,
9823
+ value: ee == null ? void 0 : ee[M]
9824
9824
  }, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
9825
9825
  };
9826
9826
  }), "value");
9827
9827
  }
9828
- function L() {
9829
- var $, F, H;
9830
- return ((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) !== !0 ? null : ((H = o.value) == null ? void 0 : H[M]) || null;
9828
+ function N() {
9829
+ var L, $, q;
9830
+ return (($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) !== !0 ? null : ((q = o.value) == null ? void 0 : q[M]) || null;
9831
9831
  }
9832
9832
  function O() {
9833
9833
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
@@ -9858,22 +9858,22 @@ function _useColumns(e) {
9858
9858
  align: O(),
9859
9859
  fixed: K(),
9860
9860
  sorter: P(),
9861
- sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (x = (N = l.value) == null ? void 0 : N.order) != null ? x : null,
9862
- filteredValue: L(),
9863
- filters: U(),
9864
- onFilter: ($, F) => $ === "" ? isNil(F == null ? void 0 : F[M]) || (F == null ? void 0 : F[M]) === "" : (F == null ? void 0 : F[M]) === $,
9861
+ sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (U = (F = l.value) == null ? void 0 : F.order) != null ? U : null,
9862
+ filteredValue: N(),
9863
+ filters: x(),
9864
+ onFilter: (L, $) => L === "" ? isNil($ == null ? void 0 : $[M]) || ($ == null ? void 0 : $[M]) === "" : ($ == null ? void 0 : $[M]) === L,
9865
9865
  customHeaderCell: () => ({
9866
9866
  "kg-frm_id": r.formID,
9867
9867
  "kg-var_nam": M,
9868
9868
  draggable: !0
9869
9869
  }),
9870
- customCell: ($) => {
9871
- var H;
9872
- const F = r.store.getVarSubmitField(r.formID, M);
9870
+ customCell: (L) => {
9871
+ var q;
9872
+ const $ = r.store.getVarSubmitField(r.formID, M);
9873
9873
  return {
9874
9874
  "kg-frm_id": r.formID,
9875
9875
  "kg-var_nam": M,
9876
- class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && $[s.id.value] === ((H = s.selectedRow.value) == null ? void 0 : H[s.id.value]) && (!!r.isCreating.value && (F == null ? void 0 : F.crt_flg) === 1 || !!r.isUpdating.value && (F == null ? void 0 : F.upt_flg) === 1 || !!r.isCopying.value && (F == null ? void 0 : F.cpy_flg) === 1 || !!r.isDeleting.value && (F == null ? void 0 : F.del_flg) === 1) ? "submitting" : ""
9876
+ class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && L[s.id.value] === ((q = s.selectedRow.value) == null ? void 0 : q[s.id.value]) && (!!r.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!r.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!r.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!r.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
9877
9877
  };
9878
9878
  }
9879
9879
  };
@@ -10038,20 +10038,20 @@ const KgTable$1 = "", getProps$y = () => ({
10038
10038
  setup: function(e) {
10039
10039
  var ne;
10040
10040
  const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
10041
- i.onSearch(async (B) => ($(B), !1)), i.onReset(async () => (b.value = {}, !1)), o.store.$onAction(async ({
10041
+ i.onSearch(async (B) => (L(B), !1)), i.onReset(async () => (b.value = {}, !1)), o.store.$onAction(async ({
10042
10042
  name: B,
10043
10043
  args: G
10044
10044
  }) => {
10045
10045
  switch (B) {
10046
10046
  case "setRowSelect":
10047
10047
  if (G[0] === s.formID) {
10048
- const z = G[1], Y = G[2], Z = z[o.id.value];
10048
+ const Q = G[1], Y = G[2], Z = Q[o.id.value];
10049
10049
  switch (!0) {
10050
- case (Y && !L.value.includes(Z)):
10051
- F([...L.value, Z]);
10050
+ case (Y && !N.value.includes(Z)):
10051
+ $([...N.value, Z]);
10052
10052
  break;
10053
- case (!Y && L.value.includes(Z)):
10054
- F(without$1(L.value, Z));
10053
+ case (!Y && N.value.includes(Z)):
10054
+ $(without$1(N.value, Z));
10055
10055
  break;
10056
10056
  }
10057
10057
  }
@@ -10060,7 +10060,7 @@ const KgTable$1 = "", getProps$y = () => ({
10060
10060
  G[0] === s.formID && (o.store.setDatas({
10061
10061
  frmId: s.formID,
10062
10062
  datas: []
10063
- }), O.total = 0, x({
10063
+ }), O.total = 0, U({
10064
10064
  isContinueWhenKgDisabled: !0
10065
10065
  }), c.value = []);
10066
10066
  break;
@@ -10084,31 +10084,31 @@ const KgTable$1 = "", getProps$y = () => ({
10084
10084
  var B, G;
10085
10085
  return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
10086
10086
  }), k = computed(() => {
10087
- var G, z, Y, Z, ce, le, ge, he, Ce;
10087
+ var G, Q, Y, Z, ge, ce, fe, he, Ce;
10088
10088
  let B = {
10089
10089
  pageNo: O.pageIndex,
10090
10090
  pageSize: O.pageSize,
10091
- column: (z = (G = b.value) == null ? void 0 : G.field) != null ? z : void 0,
10091
+ column: (Q = (G = b.value) == null ? void 0 : G.field) != null ? Q : void 0,
10092
10092
  order: b.value.order === "ascend" ? "asc" : b.value.order === "descend" ? "desc" : void 0,
10093
10093
  ...(Z = (Y = i.model) == null ? void 0 : Y.value) != null ? Z : {}
10094
10094
  };
10095
10095
  return s.varButtonSearch.value && (B = {
10096
10096
  ...B,
10097
- ...KgVarUtil.parseRequestParamsToJSON((le = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_prm) != null ? le : "")
10098
- }), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (B = {
10097
+ ...KgVarUtil.parseRequestParamsToJSON((ce = (ge = s.varButtonSearch.value) == null ? void 0 : ge.cmd_prm) != null ? ce : "")
10098
+ }), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (B = {
10099
10099
  ...B,
10100
10100
  ...KgVarUtil.parseRequestParamsToJSON((he = s.varGridConfig.value.cmd_prm) != null ? he : "")
10101
10101
  }), ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
10102
10102
  }), A = computed(() => {
10103
- var B, G, z, Y;
10103
+ var B, G, Q, Y;
10104
10104
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
10105
- return (Y = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgDisabled;
10105
+ return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgDisabled;
10106
10106
  if (!isNil(e.kgDisabled))
10107
10107
  return e.kgDisabled;
10108
10108
  }), C = computed(() => {
10109
- var B, G, z, Y;
10109
+ var B, G, Q, Y;
10110
10110
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
10111
- return (Y = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
10111
+ return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
10112
10112
  if (!isNil(e.kgCheckboxDisabled))
10113
10113
  return e.kgCheckboxDisabled;
10114
10114
  }), w = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), M = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), I = computed(() => {
@@ -10123,7 +10123,7 @@ const KgTable$1 = "", getProps$y = () => ({
10123
10123
  fixed: "left",
10124
10124
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10125
10125
  hideSelectAll: !o.isMultiSelect.value,
10126
- selectedRowKeys: L,
10126
+ selectedRowKeys: N,
10127
10127
  preserveSelectedRowKeys: !1,
10128
10128
  getCheckboxProps: (B) => {
10129
10129
  var G;
@@ -10131,8 +10131,8 @@ const KgTable$1 = "", getProps$y = () => ({
10131
10131
  disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((G = C.value) != null && G.call(C, B))
10132
10132
  };
10133
10133
  },
10134
- onSelect: (B) => H(B),
10135
- onChange: (B) => o.isMultiSelect.value && F(B)
10134
+ onSelect: (B) => q(B),
10135
+ onChange: (B) => o.isMultiSelect.value && $(B)
10136
10136
  };
10137
10137
  }), P = computed(() => {
10138
10138
  var G;
@@ -10149,11 +10149,11 @@ const KgTable$1 = "", getProps$y = () => ({
10149
10149
  break;
10150
10150
  }
10151
10151
  return B;
10152
- }), U = computed(() => {
10152
+ }), x = computed(() => {
10153
10153
  var G;
10154
10154
  let B = "kg-table-bottom";
10155
10155
  return ((G = s.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (B += " kg-table-bottom--border"), B;
10156
- }), L = (ne = o.store.getSelectedRowKeys(s.formID)) != null ? ne : ref([]), O = reactive({
10156
+ }), N = (ne = o.store.getSelectedRowKeys(s.formID)) != null ? ne : ref([]), O = reactive({
10157
10157
  pageIndex: 1,
10158
10158
  pageSize: 10,
10159
10159
  total: 0
@@ -10164,12 +10164,12 @@ const KgTable$1 = "", getProps$y = () => ({
10164
10164
  });
10165
10165
  watch(o.pageSizeOptions, (B) => {
10166
10166
  B.length > 0 && !B.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
10167
- }), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G, z]) => {
10167
+ }), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G, Q]) => {
10168
10168
  KgLogger.debug(`KgTable | ${s.formID} | watch:[kgTable.isAutoRequest, kgTable.isRequested, kgSearch.isReady]`, {
10169
10169
  isAutoRequest: B,
10170
10170
  isRequested: G,
10171
- isReady: z
10172
- }), B && !G && z && $({
10171
+ isReady: Q
10172
+ }), B && !G && Q && L({
10173
10173
  isSearchFirstPage: !0
10174
10174
  });
10175
10175
  }, {
@@ -10177,7 +10177,7 @@ const KgTable$1 = "", getProps$y = () => ({
10177
10177
  }), watch(k, (B) => {
10178
10178
  o.store.setRequestParams(s.formID, B);
10179
10179
  }), watch(s.isCreating, (B, G) => {
10180
- B === !0 ? V() : B === !1 && G === !0 && N();
10180
+ B === !0 ? V() : B === !1 && G === !0 && F();
10181
10181
  }), onUnmounted(() => {
10182
10182
  o.store.dispose(s.formID);
10183
10183
  });
@@ -10192,21 +10192,21 @@ const KgTable$1 = "", getProps$y = () => ({
10192
10192
  }), o.store.setSelectedRows(s.formID, [B]);
10193
10193
  }
10194
10194
  }
10195
- function N() {
10195
+ function F() {
10196
10196
  const B = y.value.find((G) => G[o.id.value] === KG_TABLE_TEMP_ID);
10197
10197
  B && (o.store.setDatas({
10198
10198
  frmId: s.formID,
10199
10199
  datas: without$1(y.value, B)
10200
10200
  }), o.store.setSelectedRows(s.formID, []));
10201
10201
  }
10202
- function x(B = {}) {
10202
+ function U(B = {}) {
10203
10203
  var Z;
10204
10204
  KgLogger.debug("KgTable | onRowClick() | \u6267\u884C\u5F00\u59CB.", {
10205
10205
  param: B
10206
10206
  });
10207
10207
  const {
10208
10208
  event: G,
10209
- row: z,
10209
+ row: Q,
10210
10210
  isContinueWhenKgDisabled: Y = !1
10211
10211
  } = B;
10212
10212
  if (!Y && !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) {
@@ -10223,7 +10223,7 @@ const KgTable$1 = "", getProps$y = () => ({
10223
10223
  KgLogger.debug("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
10224
10224
  return;
10225
10225
  }
10226
- if (!z) {
10226
+ if (!Q) {
10227
10227
  KgLogger.debug("KgTable | onRowClick() | \u6E05\u7A7A\u6240\u6709\u52FE\u9009\u7684\u884C."), o.store.setSelectedRows(s.formID, []);
10228
10228
  return;
10229
10229
  }
@@ -10237,32 +10237,32 @@ const KgTable$1 = "", getProps$y = () => ({
10237
10237
  break;
10238
10238
  case 1:
10239
10239
  KgLogger.debug("KgTable | onRowClick() | \u52FE\u9009\u5355\u884C.", {
10240
- row: z
10241
- }), o.store.setSelectedRows(s.formID, [z]);
10240
+ row: Q
10241
+ }), o.store.setSelectedRows(s.formID, [Q]);
10242
10242
  break;
10243
10243
  case 2:
10244
- H(z);
10244
+ q(Q);
10245
10245
  break;
10246
10246
  }
10247
10247
  break;
10248
10248
  case 2:
10249
10249
  o.store.emit(s.formID, "rowDoubleClick", {
10250
- row: z
10250
+ row: Q
10251
10251
  });
10252
10252
  break;
10253
10253
  }
10254
10254
  }
10255
- function $(B = {}) {
10255
+ function L(B = {}) {
10256
10256
  KgLogger.debug(`${s.formID} | KgTable | request() | \u6267\u884C\u5F00\u59CB.`, {
10257
10257
  param: B
10258
10258
  });
10259
10259
  const G = watch(o.isReady, (Y) => {
10260
- Y && (setTimeout(() => G()), z());
10260
+ Y && (setTimeout(() => G()), Q());
10261
10261
  }, {
10262
10262
  immediate: !0
10263
10263
  });
10264
- async function z() {
10265
- var Y, Z, ce, le, ge, he, Ce;
10264
+ async function Q() {
10265
+ var Y, Z, ge, ce, fe, he, Ce;
10266
10266
  KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (O.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
10267
10267
  try {
10268
10268
  const be = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ye = ref({});
@@ -10274,18 +10274,18 @@ const KgTable$1 = "", getProps$y = () => ({
10274
10274
  throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
10275
10275
  VarButton: s.varButtonSearch.value
10276
10276
  }), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
10277
- const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((ce = s.currentVarProfileMaster.value) == null ? void 0 : ce.dyn_flg) === 1, {
10278
- sql: q,
10277
+ const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((ge = s.currentVarProfileMaster.value) == null ? void 0 : ge.dyn_flg) === 1, {
10278
+ sql: H,
10279
10279
  whereSql: W,
10280
10280
  orderBySql: X
10281
- } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), ee = await httpClient().request({
10281
+ } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), te = await httpClient().request({
10282
10282
  url: T.value,
10283
- method: (ge = (le = s.varButtonSearch.value) == null ? void 0 : le.cmd_method) != null ? ge : "GET",
10283
+ method: (fe = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_method) != null ? fe : "GET",
10284
10284
  params: be,
10285
10285
  data: be,
10286
10286
  headers: {
10287
10287
  [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: Se,
10288
- [KG_HTTP_HEADERS.KG_QUERY_SQL]: q,
10288
+ [KG_HTTP_HEADERS.KG_QUERY_SQL]: H,
10289
10289
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: W,
10290
10290
  [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: X
10291
10291
  }
@@ -10293,11 +10293,11 @@ const KgTable$1 = "", getProps$y = () => ({
10293
10293
  isReturnNativeResponse: !0,
10294
10294
  successMessageMode: "none"
10295
10295
  });
10296
- if (!ee.data)
10296
+ if (!te.data)
10297
10297
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
10298
- if (![0, 200].includes((he = ee.data.code) != null ? he : -1) || !ee.data.success)
10299
- throw message.error(ee.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ee.data.message || n.t("kg.KgTable.request-fail-error"));
10300
- Se && ee.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = ee.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
10298
+ if (![0, 200].includes((he = te.data.code) != null ? he : -1) || !te.data.success)
10299
+ throw message.error(te.data.message || n.t("kg.KgTable.request-fail-error")), new Error(te.data.message || n.t("kg.KgTable.request-fail-error"));
10300
+ Se && te.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = te.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
10301
10301
  params: be,
10302
10302
  response: ye.value
10303
10303
  });
@@ -10307,16 +10307,16 @@ const KgTable$1 = "", getProps$y = () => ({
10307
10307
  total: Ae
10308
10308
  } = v(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
10309
10309
  datas: Ee
10310
- }), ke = cloneDeep(L.value);
10310
+ }), ke = cloneDeep(N.value);
10311
10311
  o.store.setDatas({
10312
10312
  frmId: s.formID,
10313
10313
  datas: Ee.value,
10314
10314
  isPreserveSelectedRows: !0
10315
- }), O.total = Ae.value, d.value = {}, x({
10315
+ }), O.total = Ae.value, d.value = {}, U({
10316
10316
  isContinueWhenKgDisabled: !0
10317
10317
  }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, ke.map((Se) => {
10318
- var q;
10319
- return (q = Ee.value) == null ? void 0 : q.find((W) => W[o.id.value] === Se);
10318
+ var H;
10319
+ return (H = Ee.value) == null ? void 0 : H.find((W) => W[o.id.value] === Se);
10320
10320
  }).filter((Se) => !!Se)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
10321
10321
  const Me = await o.store.emit(s.formID, "afterSearch", {
10322
10322
  params: be,
@@ -10331,40 +10331,40 @@ const KgTable$1 = "", getProps$y = () => ({
10331
10331
  }
10332
10332
  }
10333
10333
  }
10334
- function F(B) {
10334
+ function $(B) {
10335
10335
  o.store.setSelectedRows(s.formID, B.map((G) => {
10336
- var z;
10337
- return (z = y.value) == null ? void 0 : z.find((Y) => Y[o.id.value] === G);
10336
+ var Q;
10337
+ return (Q = y.value) == null ? void 0 : Q.find((Y) => Y[o.id.value] === G);
10338
10338
  }).filter((G) => !!G));
10339
10339
  }
10340
- function H(B) {
10341
- var G, z;
10340
+ function q(B) {
10341
+ var G, Q;
10342
10342
  switch (o.isMultiSelect.value) {
10343
10343
  case !0:
10344
10344
  {
10345
10345
  const Y = B[o.id.value];
10346
- L.value.includes(Y) ? L.value = without$1(L.value, Y) : L.value = [...(G = L.value) != null ? G : [], Y];
10346
+ N.value.includes(Y) ? N.value = without$1(N.value, Y) : N.value = [...(G = N.value) != null ? G : [], Y];
10347
10347
  }
10348
10348
  break;
10349
10349
  case !1:
10350
10350
  {
10351
10351
  const Y = B[o.id.value];
10352
- (z = L.value) != null && z.includes(Y) ? L.value = [] : L.value = [Y];
10352
+ (Q = N.value) != null && Q.includes(Y) ? N.value = [] : N.value = [Y];
10353
10353
  }
10354
10354
  break;
10355
10355
  }
10356
- o.store.setSelectedRows(s.formID, L.value.map((Y) => {
10356
+ o.store.setSelectedRows(s.formID, N.value.map((Y) => {
10357
10357
  var Z;
10358
- return (Z = y.value) == null ? void 0 : Z.find((ce) => ce[o.id.value] === Y);
10358
+ return (Z = y.value) == null ? void 0 : Z.find((ge) => ge[o.id.value] === Y);
10359
10359
  }).filter((Y) => !!Y));
10360
10360
  }
10361
- function Q(B, G) {
10361
+ function z(B, G) {
10362
10362
  G.width = B, s.store.setVarGridDetailWidth(s.formID, G.dataIndex, B);
10363
10363
  }
10364
- async function J(B, G, z, Y) {
10364
+ async function J(B, G, Q, Y) {
10365
10365
  switch (Y.action) {
10366
10366
  case "sort": {
10367
- b.value = z, b.value.order || (b.value.field = void 0), await nextTick(), $({
10367
+ b.value = Q, b.value.order || (b.value.field = void 0), await nextTick(), L({
10368
10368
  isSearchFirstPage: !0
10369
10369
  });
10370
10370
  break;
@@ -10375,20 +10375,20 @@ const KgTable$1 = "", getProps$y = () => ({
10375
10375
  }
10376
10376
  function re(B, G) {
10377
10377
  var Y;
10378
- const z = G[o.id.value];
10378
+ const Q = G[o.id.value];
10379
10379
  switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
10380
10380
  case 0:
10381
- B ? c.value = uniq([...c.value, z]) : c.value = without$1(c.value, z);
10381
+ B ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
10382
10382
  break;
10383
10383
  default:
10384
- B ? c.value = [z] : c.value = [];
10384
+ B ? c.value = [Q] : c.value = [];
10385
10385
  break;
10386
10386
  }
10387
10387
  }
10388
- function te(B, G) {
10389
- G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B, $();
10388
+ function ee(B, G) {
10389
+ G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B, L();
10390
10390
  }
10391
- function ie(B) {
10391
+ function oe(B) {
10392
10392
  const {
10393
10393
  column: G
10394
10394
  } = B;
@@ -10397,7 +10397,7 @@ const KgTable$1 = "", getProps$y = () => ({
10397
10397
  kgDisabled: A.value
10398
10398
  }, null);
10399
10399
  }
10400
- function _e() {
10400
+ function ue() {
10401
10401
  var B;
10402
10402
  return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
10403
10403
  fixed: "bottom"
@@ -10407,18 +10407,18 @@ const KgTable$1 = "", getProps$y = () => ({
10407
10407
  index: 0
10408
10408
  }, null), D.value && createVNode(TableSummary.Cell, {
10409
10409
  index: I.value ? 1 : 0
10410
- }, null), u.value.map((G, z) => {
10411
- const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ce = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
10412
- let le = z;
10413
- return I.value && D.value ? le += 2 : (I.value || D.value) && (le += 1), createVNode(TableSummary.Cell, {
10414
- index: le,
10415
- align: ce
10410
+ }, null), u.value.map((G, Q) => {
10411
+ const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ge = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
10412
+ let ce = Q;
10413
+ return I.value && D.value ? ce += 2 : (I.value || D.value) && (ce += 1), createVNode(TableSummary.Cell, {
10414
+ index: ce,
10415
+ align: ge
10416
10416
  }, {
10417
10417
  default: () => {
10418
- var ge, he;
10419
- return [(he = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : he.call(ge, {
10418
+ var fe, he;
10419
+ return [(he = (fe = r == null ? void 0 : r.KgTable) == null ? void 0 : fe["summary.bodyCell"]) == null ? void 0 : he.call(fe, {
10420
10420
  column: G,
10421
- index: le,
10421
+ index: ce,
10422
10422
  varGridDetail: Z
10423
10423
  })];
10424
10424
  }
@@ -10427,11 +10427,11 @@ const KgTable$1 = "", getProps$y = () => ({
10427
10427
  })]
10428
10428
  }) : null;
10429
10429
  }
10430
- function de() {
10430
+ function ae() {
10431
10431
  return !o.isAutoRequest.value && !o.store.getIsRequested(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
10432
10432
  }
10433
10433
  return () => {
10434
- var B, G, z;
10434
+ var B, G, Q;
10435
10435
  return createVNode("div", {
10436
10436
  class: P.value,
10437
10437
  "kg-frm_id": s.formID,
@@ -10454,29 +10454,29 @@ const KgTable$1 = "", getProps$y = () => ({
10454
10454
  expandedRowKeys: c.value,
10455
10455
  rowSelection: K.value,
10456
10456
  customRow: (Y) => ({
10457
- onClick: (Z) => x({
10457
+ onClick: (Z) => U({
10458
10458
  event: Z,
10459
10459
  row: Y
10460
10460
  })
10461
10461
  }),
10462
- onResizeColumn: Q,
10462
+ onResizeColumn: z,
10463
10463
  onChange: J,
10464
10464
  onExpand: re
10465
10465
  }, {
10466
- headerCell: ie,
10466
+ headerCell: oe,
10467
10467
  bodyCell: _,
10468
- emptyText: de,
10469
- expandedRowRender: (z = r == null ? void 0 : r.KgTable) == null ? void 0 : z.expandedRowRender,
10470
- summary: _e
10468
+ emptyText: ae,
10469
+ expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
10470
+ summary: ue
10471
10471
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
10472
- class: U.value
10472
+ class: x.value
10473
10473
  }, [createVNode("div", {
10474
10474
  class: "left"
10475
10475
  }, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
10476
- kgShowClearCheck: L.value.length > 0,
10476
+ kgShowClearCheck: N.value.length > 0,
10477
10477
  kgShowClearTable: O.total > 0,
10478
- kgShowLocate: L.value.length === 1,
10479
- kgTotal: L.value.length,
10478
+ kgShowLocate: N.value.length === 1,
10479
+ kgTotal: N.value.length,
10480
10480
  kgDisabled: w.value
10481
10481
  }, null)]), createVNode("div", {
10482
10482
  class: "right"
@@ -10498,7 +10498,7 @@ const KgTable$1 = "", getProps$y = () => ({
10498
10498
  to: Z[1],
10499
10499
  total: Y
10500
10500
  }),
10501
- onChange: (Y, Z) => te(Y, Z)
10501
+ onChange: (Y, Z) => ee(Y, Z)
10502
10502
  }, null)])])]);
10503
10503
  };
10504
10504
  }
@@ -10836,12 +10836,12 @@ function useKgFormItemSelect() {
10836
10836
  let k = null;
10837
10837
  try {
10838
10838
  l.value = !0;
10839
- const U = KgUtil.parseParams(b.value, null, e);
10839
+ const x = KgUtil.parseParams(b.value, null, e);
10840
10840
  k = await ((P = httpClient()) == null ? void 0 : P.request({
10841
10841
  url: _,
10842
10842
  method: y,
10843
- params: U,
10844
- data: U
10843
+ params: x,
10844
+ data: x
10845
10845
  }, {
10846
10846
  dynamicQueryOperators: {},
10847
10847
  dayjs: e
@@ -10862,14 +10862,14 @@ function useKgFormItemSelect() {
10862
10862
  break;
10863
10863
  }
10864
10864
  if (m.value.length > 0) {
10865
- const U = m.value[0];
10866
- (!(v in U) || !(T in U)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10865
+ const x = m.value[0];
10866
+ (!(v in x) || !(T in x)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10867
10867
  frm_id: a.formID,
10868
10868
  var_nam: t,
10869
10869
  cmd: _,
10870
10870
  val_clm: v,
10871
10871
  lbl_clm: T,
10872
- \u6240\u6709\u5217: Object.keys(U)
10872
+ \u6240\u6709\u5217: Object.keys(x)
10873
10873
  });
10874
10874
  }
10875
10875
  await n.store.emit(a.formID, "selectBeforeSetDatas", {
@@ -11403,13 +11403,13 @@ const KgFormItem = defineComponent({
11403
11403
  var_nam: O,
11404
11404
  model: R,
11405
11405
  isMultiple: V,
11406
- value: N,
11407
- values: x
11406
+ value: F,
11407
+ values: U
11408
11408
  }) => {
11409
- var $;
11409
+ var L;
11410
11410
  switch (O) {
11411
11411
  case e.kgVarName:
11412
- R.value && (V ? R.value[e.kgVarName] = x : R.value[e.kgVarName] = N), ($ = n.value) == null || $.validate([e.kgVarName]);
11412
+ R.value && (V ? R.value[e.kgVarName] = U : R.value[e.kgVarName] = F), (L = n.value) == null || L.validate([e.kgVarName]);
11413
11413
  break;
11414
11414
  }
11415
11415
  return !1;
@@ -11420,7 +11420,7 @@ const KgFormItem = defineComponent({
11420
11420
  } = _useRules(e), {
11421
11421
  controlType: m
11422
11422
  } = useKgFormItem(e), _ = computed(() => {
11423
- var R, V, N, x, $;
11423
+ var R, V, F, U, L;
11424
11424
  if (i.isRetrieving.value)
11425
11425
  return !0;
11426
11426
  let O = !1;
@@ -11437,20 +11437,20 @@ const KgFormItem = defineComponent({
11437
11437
  O = ((V = b.value) == null ? void 0 : V.crt_ena_flg) === 0;
11438
11438
  break;
11439
11439
  case i.isUpdating.value:
11440
- O = ((N = b.value) == null ? void 0 : N.upt_ena_flg) === 0;
11440
+ O = ((F = b.value) == null ? void 0 : F.upt_ena_flg) === 0;
11441
11441
  break;
11442
11442
  case i.isCopying.value:
11443
- O = ((x = b.value) == null ? void 0 : x.cpy_ena_flg) === 0;
11443
+ O = ((U = b.value) == null ? void 0 : U.cpy_ena_flg) === 0;
11444
11444
  break;
11445
11445
  case i.isDeleting.value:
11446
- O = (($ = b.value) == null ? void 0 : $.del_ena_flg) === 0;
11446
+ O = ((L = b.value) == null ? void 0 : L.del_ena_flg) === 0;
11447
11447
  break;
11448
11448
  }
11449
11449
  break;
11450
11450
  }
11451
11451
  return O;
11452
11452
  }), y = computed(() => {
11453
- var R, V, N, x;
11453
+ var R, V, F, U;
11454
11454
  let O = " ";
11455
11455
  if (e.kgPlaceholder)
11456
11456
  O = e.kgPlaceholder;
@@ -11460,12 +11460,12 @@ const KgFormItem = defineComponent({
11460
11460
  O = i.t((V = (R = d.value) == null ? void 0 : R.placeholder) != null ? V : " ").value;
11461
11461
  break;
11462
11462
  case KG_FORM_CONTEXT.SUBMIT:
11463
- O = i.t((x = (N = b.value) == null ? void 0 : N.placeholder) != null ? x : " ").value;
11463
+ O = i.t((U = (F = b.value) == null ? void 0 : F.placeholder) != null ? U : " ").value;
11464
11464
  break;
11465
11465
  }
11466
11466
  return O;
11467
11467
  }), v = computed(() => {
11468
- var R, V, N, x, $, F, H, Q, J, re;
11468
+ var R, V, F, U, L, $, q, z, J, re;
11469
11469
  let O = 6;
11470
11470
  if (e.kgSpan !== void 0)
11471
11471
  O = e.kgSpan;
@@ -11477,25 +11477,25 @@ const KgFormItem = defineComponent({
11477
11477
  case KG_FORM_CONTEXT.SUBMIT:
11478
11478
  switch (!0) {
11479
11479
  case i.isCreating.value:
11480
- O = (x = (N = b.value) == null ? void 0 : N.crt_width) != null ? x : 6;
11480
+ O = (U = (F = b.value) == null ? void 0 : F.crt_width) != null ? U : 6;
11481
11481
  break;
11482
11482
  case i.isUpdating.value:
11483
- O = (F = ($ = b.value) == null ? void 0 : $.upt_width) != null ? F : 6;
11483
+ O = ($ = (L = b.value) == null ? void 0 : L.upt_width) != null ? $ : 6;
11484
11484
  break;
11485
11485
  case i.isCopying.value:
11486
- O = (Q = (H = b.value) == null ? void 0 : H.cpy_width) != null ? Q : 6;
11486
+ O = (z = (q = b.value) == null ? void 0 : q.cpy_width) != null ? z : 6;
11487
11487
  break;
11488
11488
  case i.isDeleting.value:
11489
11489
  O = (re = (J = b.value) == null ? void 0 : J.del_width) != null ? re : 6;
11490
11490
  break;
11491
11491
  }
11492
11492
  }
11493
- return O = Number(O), new Array(24).fill(0).map((te, ie) => ie + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
11493
+ return O = Number(O), new Array(24).fill(0).map((ee, oe) => oe + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
11494
11494
  VarProfileDetail: d.value,
11495
11495
  VarSubmitField: b.value
11496
11496
  }), 6);
11497
11497
  }), T = computed(() => {
11498
- var R, V, N, x, $;
11498
+ var R, V, F, U, L;
11499
11499
  let O = null;
11500
11500
  if (e.kgSpan !== void 0)
11501
11501
  O = e.kgSpan;
@@ -11510,30 +11510,30 @@ const KgFormItem = defineComponent({
11510
11510
  O = (V = b.value) == null ? void 0 : V.crt_width;
11511
11511
  break;
11512
11512
  case i.isUpdating.value:
11513
- O = (N = b.value) == null ? void 0 : N.upt_width;
11513
+ O = (F = b.value) == null ? void 0 : F.upt_width;
11514
11514
  break;
11515
11515
  case i.isCopying.value:
11516
- O = (x = b.value) == null ? void 0 : x.cpy_width;
11516
+ O = (U = b.value) == null ? void 0 : U.cpy_width;
11517
11517
  break;
11518
11518
  case i.isDeleting.value:
11519
- O = ($ = b.value) == null ? void 0 : $.del_width;
11519
+ O = (L = b.value) == null ? void 0 : L.del_width;
11520
11520
  break;
11521
11521
  }
11522
11522
  }
11523
- return O = Number(O), new Array(24).fill(0).map((F, H) => H + 1).includes(O) ? O : null;
11523
+ return O = Number(O), new Array(24).fill(0).map(($, q) => q + 1).includes(O) ? O : null;
11524
11524
  }), k = computed(() => {
11525
- var N, x;
11525
+ var F, U;
11526
11526
  const O = get(M.value, "$el.parentElement");
11527
- if (O && !((N = O.classList) != null && N.contains("ant-row")))
11527
+ if (O && !((F = O.classList) != null && F.contains("ant-row")))
11528
11528
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
11529
11529
  let R = {};
11530
- const V = Math.abs(Number.parseInt((x = get(M.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11530
+ const V = Math.abs(Number.parseInt((U = get(M.value, "$el.parentElement.style.marginLeft")) != null ? U : "0px"));
11531
11531
  return Number.isNaN(V) || (R = {
11532
11532
  paddingLeft: `${V}px !important`,
11533
11533
  paddingRight: `${V}px !important`
11534
11534
  }), R;
11535
11535
  }), A = computed(() => {
11536
- var R, V, N, x;
11536
+ var R, V, F, U;
11537
11537
  let O = "kg-form-item";
11538
11538
  switch (c.value && (O += " kg-form-item-lookup"), T.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
11539
11539
  case KG_FORM_CONTEXT.SEARCH:
@@ -11546,8 +11546,8 @@ const KgFormItem = defineComponent({
11546
11546
  case KG_FORM_CONTEXT.SUBMIT:
11547
11547
  switch (!0) {
11548
11548
  case (i.isCreating.value && ((V = b.value) == null ? void 0 : V.crt_vis_flg) === 0):
11549
- case (i.isUpdating.value && ((N = b.value) == null ? void 0 : N.upt_vis_flg) === 0):
11550
- case (i.isCopying.value && ((x = b.value) == null ? void 0 : x.cpy_vis_flg) === 0):
11549
+ case (i.isUpdating.value && ((F = b.value) == null ? void 0 : F.upt_vis_flg) === 0):
11550
+ case (i.isCopying.value && ((U = b.value) == null ? void 0 : U.cpy_vis_flg) === 0):
11551
11551
  O += " kg-form-item--invisible";
11552
11552
  break;
11553
11553
  }
@@ -11604,7 +11604,7 @@ const KgFormItem = defineComponent({
11604
11604
  validateFirst: !0,
11605
11605
  htmlFor: w.value
11606
11606
  }, {
11607
- default: () => createVNode(Fragment, null, [K(), D(), U(), L()]),
11607
+ default: () => createVNode(Fragment, null, [K(), D(), x(), N()]),
11608
11608
  label: () => P()
11609
11609
  });
11610
11610
  }
@@ -11656,12 +11656,12 @@ const KgFormItem = defineComponent({
11656
11656
  var O, R, V;
11657
11657
  return ((R = (O = s.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : R.on) !== !0 || ((V = i.currentVarProfileMaster.value) == null ? void 0 : V.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
11658
11658
  default: () => {
11659
- var N;
11659
+ var F;
11660
11660
  return [createVNode(Select, {
11661
- value: (N = l.operatorModel.value) == null ? void 0 : N[e.kgVarName],
11662
- "onUpdate:value": (x) => {
11661
+ value: (F = l.operatorModel.value) == null ? void 0 : F[e.kgVarName],
11662
+ "onUpdate:value": (U) => {
11663
11663
  l.store.patchOperatorModel(i.formID, {
11664
- [e.kgVarName]: x
11664
+ [e.kgVarName]: U
11665
11665
  });
11666
11666
  },
11667
11667
  disabled: _.value,
@@ -11669,8 +11669,8 @@ const KgFormItem = defineComponent({
11669
11669
  dropdownClassName: "kg-form-item-operator-select-dropdown"
11670
11670
  }, {
11671
11671
  default: () => {
11672
- var x;
11673
- return KgVarUtil.getDynamicQueryOperatorSelectOptions((x = m.value) != null ? x : "");
11672
+ var U;
11673
+ return KgVarUtil.getDynamicQueryOperatorSelectOptions((U = m.value) != null ? U : "");
11674
11674
  },
11675
11675
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
11676
11676
  class: "ant-select-suffix"
@@ -11684,7 +11684,7 @@ const KgFormItem = defineComponent({
11684
11684
  title: i.t(e.kgVarName).value
11685
11685
  }, [i.t(e.kgVarName).value]) : null;
11686
11686
  }
11687
- function U() {
11687
+ function x() {
11688
11688
  var O;
11689
11689
  return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
11690
11690
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -11693,7 +11693,7 @@ const KgFormItem = defineComponent({
11693
11693
  }, null)]
11694
11694
  });
11695
11695
  }
11696
- function L() {
11696
+ function N() {
11697
11697
  return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
11698
11698
  frm_id: i.formID,
11699
11699
  varName: e.kgVarName,
@@ -12853,12 +12853,12 @@ const getProps$r = () => ({
12853
12853
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
12854
12854
  inject(DI_KG_VAR__KG_PROPS, null);
12855
12855
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
12856
- i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
12856
+ i.onSubmitSave(async () => (await ce(), !1)), i.onSubmitCancel(async () => (await ge(), !1)), _useFormModel$1();
12857
12857
  const u = computed(() => s.isDeleting.value && D.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), D = computed(() => {
12858
- var q, W, X;
12858
+ var H, W, X;
12859
12859
  switch (!0) {
12860
12860
  case s.isCreating.value:
12861
- return (q = E.value) != null ? q : [];
12861
+ return (H = E.value) != null ? H : [];
12862
12862
  case s.isUpdating.value:
12863
12863
  return (W = m.value) != null ? W : [];
12864
12864
  case s.isCopying.value:
@@ -12868,10 +12868,10 @@ const getProps$r = () => ({
12868
12868
  }
12869
12869
  return [];
12870
12870
  }), K = computed(() => {
12871
- var q, W, X;
12871
+ var H, W, X;
12872
12872
  switch (!0) {
12873
12873
  case s.isCreating.value:
12874
- return (q = T.value) != null ? q : [];
12874
+ return (H = T.value) != null ? H : [];
12875
12875
  case s.isUpdating.value:
12876
12876
  return (W = A.value) != null ? W : [];
12877
12877
  case s.isCopying.value:
@@ -12881,57 +12881,57 @@ const getProps$r = () => ({
12881
12881
  }
12882
12882
  return [];
12883
12883
  }), P = computed(() => {
12884
- var q, W, X, ee;
12884
+ var H, W, X, te;
12885
12885
  switch (!0) {
12886
12886
  case s.isCreating.value:
12887
- return (q = g.value) != null ? q : [];
12887
+ return (H = g.value) != null ? H : [];
12888
12888
  case s.isUpdating.value:
12889
12889
  return (W = _.value) != null ? W : [];
12890
12890
  case s.isCopying.value:
12891
12891
  return (X = v.value) != null ? X : [];
12892
12892
  case s.isDeleting.value:
12893
- return (ee = I.value) != null ? ee : [];
12893
+ return (te = I.value) != null ? te : [];
12894
12894
  }
12895
12895
  return [];
12896
- }), U = computed(() => {
12897
- var q, W, X, ee;
12896
+ }), x = computed(() => {
12897
+ var H, W, X, te;
12898
12898
  switch (!0) {
12899
12899
  case s.isCreating.value:
12900
- return (q = k.value) != null ? q : [];
12900
+ return (H = k.value) != null ? H : [];
12901
12901
  case s.isUpdating.value:
12902
12902
  return (W = C.value) != null ? W : [];
12903
12903
  case s.isCopying.value:
12904
12904
  return (X = M.value) != null ? X : [];
12905
12905
  case s.isDeleting.value:
12906
- return (ee = I.value) != null ? ee : [];
12906
+ return (te = I.value) != null ? te : [];
12907
12907
  }
12908
12908
  return [];
12909
- }), L = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => L.value || d.value), R = computed(() => d.value), V = ref({
12909
+ }), N = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => N.value || d.value), R = computed(() => d.value), V = ref({
12910
12910
  kgWidth: 0
12911
- }), N = computed(() => {
12912
- var q;
12913
- return !!(u.value || te.isFullscreen || ((q = b.value) == null ? void 0 : q.resizable_flg) === 0);
12914
- }), x = computed(() => {
12915
- var q, W;
12916
- return u.value ? 398 : (W = (q = b.value) == null ? void 0 : q.min_width) != null ? W : DEFAULT_MIN_WIDTH;
12917
- }), $ = computed(() => {
12918
- var q, W;
12919
- return u.value ? 398 : (W = (q = b.value) == null ? void 0 : q.max_width) != null ? W : DEFAULT_MAX_WIDTH;
12920
- }), F = computed(() => u.value ? 398 : V.value.kgWidth), H = ref(null);
12921
- _useResizeObserver(H);
12922
- const Q = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), re = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
12911
+ }), F = computed(() => {
12912
+ var H;
12913
+ return !!(u.value || ee.isFullscreen || ((H = b.value) == null ? void 0 : H.resizable_flg) === 0);
12914
+ }), U = computed(() => {
12915
+ var H, W;
12916
+ return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.min_width) != null ? W : DEFAULT_MIN_WIDTH;
12917
+ }), L = computed(() => {
12918
+ var H, W;
12919
+ return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.max_width) != null ? W : DEFAULT_MAX_WIDTH;
12920
+ }), $ = computed(() => u.value ? 398 : V.value.kgWidth), q = ref(null);
12921
+ _useResizeObserver(q);
12922
+ const z = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), re = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
12923
12923
  isFullscreen: !1
12924
12924
  }), {
12925
- getClass: ie
12926
- } = _useClass(e, te), {
12927
- getLayout: _e
12925
+ getClass: oe
12926
+ } = _useClass(e, ee), {
12927
+ getLayout: ue
12928
12928
  } = _useLayout(), {
12929
- getDefaultWidth: de
12929
+ getDefaultWidth: ae
12930
12930
  } = _useDefaultWidth(), ne = computed(() => {
12931
- var q, W, X;
12932
- switch (_e.value) {
12931
+ var H, W, X;
12932
+ switch (ue.value) {
12933
12933
  case "horizontal":
12934
- switch ((q = b.value) == null ? void 0 : q.label_col_unit) {
12934
+ switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
12935
12935
  case KG_WIDTH_UNIT.SPAN:
12936
12936
  return {
12937
12937
  span: (W = b.value) == null ? void 0 : W.label_col
@@ -12948,10 +12948,10 @@ const getProps$r = () => ({
12948
12948
  return;
12949
12949
  }
12950
12950
  }), B = computed(() => {
12951
- var q, W;
12952
- switch (_e.value) {
12951
+ var H, W;
12952
+ switch (ue.value) {
12953
12953
  case "horizontal":
12954
- switch ((q = b.value) == null ? void 0 : q.label_col_unit) {
12954
+ switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
12955
12955
  case KG_WIDTH_UNIT.SPAN:
12956
12956
  return {
12957
12957
  span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
@@ -12974,20 +12974,20 @@ const getProps$r = () => ({
12974
12974
  return s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"] ? s.t(s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
12975
12975
  }
12976
12976
  return n.t("kg.save");
12977
- }), z = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !te.isFullscreen);
12977
+ }), Q = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
12978
12978
  ((Se = (Me = (ke = n.option.value) == null ? void 0 : ke.KgModal) == null ? void 0 : Me.drag) == null ? void 0 : Se.on) === !0 && useKgDragModal({
12979
12979
  visible: re,
12980
- draggable: z,
12980
+ draggable: Q,
12981
12981
  destroyOnClose: ref(!0),
12982
12982
  containerElementSelector: ".ant-drawer-content-wrapper",
12983
12983
  handleElementSelector: ".ant-drawer-header",
12984
12984
  contentElementSelector: ".ant-drawer-content-wrapper"
12985
- }), watch(re, (q, W) => {
12986
- q === !0 && Y(), W === !0 && q === !1 && Z();
12985
+ }), watch(re, (H, W) => {
12986
+ H === !0 && Y(), W === !0 && H === !1 && Z();
12987
12987
  }, {
12988
12988
  immediate: !0
12989
- }), watch(de, (q) => {
12990
- q && (V.value.kgWidth = q);
12989
+ }), watch(ae, (H) => {
12990
+ H && (V.value.kgWidth = H);
12991
12991
  }, {
12992
12992
  immediate: !0
12993
12993
  });
@@ -13000,9 +13000,9 @@ const getProps$r = () => ({
13000
13000
  row: o.selectedRow.value
13001
13001
  }))
13002
13002
  return new Promise((W, X) => {
13003
- var se;
13004
- const ee = watch(l.model, async (oe) => {
13005
- oe && Object.keys(oe).length > 0 && (setTimeout(() => ee()), await l.store.emit(s.formID, "open", {
13003
+ var ie;
13004
+ const te = watch(l.model, async (le) => {
13005
+ le && Object.keys(le).length > 0 && (setTimeout(() => te()), await l.store.emit(s.formID, "open", {
13006
13006
  isCreating: s.isCreating.value,
13007
13007
  isUpdating: s.isUpdating.value,
13008
13008
  isCopying: s.isCopying.value,
@@ -13013,13 +13013,13 @@ const getProps$r = () => ({
13013
13013
  }, {
13014
13014
  immediate: !0
13015
13015
  });
13016
- ((se = b.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
13016
+ ((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
13017
13017
  });
13018
13018
  }
13019
13019
  async function Z() {
13020
- V.value.kgWidth = de.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
13020
+ V.value.kgWidth = ae.value, ee.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
13021
13021
  }
13022
- async function ce() {
13022
+ async function ge() {
13023
13023
  switch (!0) {
13024
13024
  case s.isCreating.value:
13025
13025
  s.store.setIsCreating(s.formID, !1);
@@ -13035,8 +13035,8 @@ const getProps$r = () => ({
13035
13035
  break;
13036
13036
  }
13037
13037
  }
13038
- async function le() {
13039
- var q, W;
13038
+ async function ce() {
13039
+ var H, W;
13040
13040
  try {
13041
13041
  if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
13042
13042
  isCreating: s.isCreating.value,
@@ -13049,9 +13049,9 @@ const getProps$r = () => ({
13049
13049
  }))
13050
13050
  return;
13051
13051
  try {
13052
- await ((q = l.formRef.value) == null ? void 0 : q.validate());
13053
- } catch (se) {
13054
- KgUtil.throwIfNotFormError(se);
13052
+ await ((H = l.formRef.value) == null ? void 0 : H.validate());
13053
+ } catch (ie) {
13054
+ KgUtil.throwIfNotFormError(ie);
13055
13055
  }
13056
13056
  if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
13057
13057
  isCreating: s.isCreating.value,
@@ -13065,7 +13065,7 @@ const getProps$r = () => ({
13065
13065
  return;
13066
13066
  switch (!0) {
13067
13067
  case s.isCreating.value:
13068
- await ge();
13068
+ await fe();
13069
13069
  break;
13070
13070
  case s.isUpdating.value:
13071
13071
  await he();
@@ -13081,11 +13081,11 @@ const getProps$r = () => ({
13081
13081
  KgUtil.throwIfNotFormError(X);
13082
13082
  }
13083
13083
  }
13084
- async function ge() {
13085
- var q, W, X, ee, se, oe, ue;
13084
+ async function fe() {
13085
+ var H, W, X, te, ie, le, de;
13086
13086
  s.store.setIsCreatingRequesting(s.formID, !0);
13087
13087
  try {
13088
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13088
+ let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13089
13089
  if (await l.store.emit(s.formID, "beforeRequest", {
13090
13090
  isCreating: s.isCreating.value,
13091
13091
  isUpdating: s.isUpdating.value,
@@ -13094,20 +13094,20 @@ const getProps$r = () => ({
13094
13094
  row: o.selectedFirstRow.value,
13095
13095
  rows: o.selectedRows.value,
13096
13096
  model: l.model,
13097
- params: ae,
13097
+ params: se,
13098
13098
  data: pe
13099
13099
  }))
13100
13100
  return;
13101
- const fe = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
13102
- if (!fe)
13101
+ const _e = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
13102
+ if (!_e)
13103
13103
  throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13104
13104
  const me = await httpClient().request({
13105
- url: fe,
13106
- method: (se = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd_method) != null ? se : "POST",
13107
- params: ae.value,
13105
+ url: _e,
13106
+ method: (ie = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
13107
+ params: se.value,
13108
13108
  data: pe.value
13109
13109
  });
13110
- ((oe = s.varButtonCreate.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(Q.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((ue = s.varButtonCreate.value) == null ? void 0 : ue.reload_all_after_done_flg) !== 0 && c.search({
13110
+ ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(z.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((de = s.varButtonCreate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13111
13111
  isSearchFirstPage: !0
13112
13112
  }), await l.store.emit(s.formID, "ok", {
13113
13113
  isCreating: !0,
@@ -13118,17 +13118,17 @@ const getProps$r = () => ({
13118
13118
  model: l.model,
13119
13119
  result: me
13120
13120
  });
13121
- } catch (ae) {
13122
- console.error(ae), l.store.emit(s.formID, "error", ae);
13121
+ } catch (se) {
13122
+ console.error(se), l.store.emit(s.formID, "error", se);
13123
13123
  } finally {
13124
13124
  s.store.setIsCreatingRequesting(s.formID, !1);
13125
13125
  }
13126
13126
  }
13127
13127
  async function he() {
13128
- var q, W, X, ee, se, oe, ue;
13128
+ var H, W, X, te, ie, le, de;
13129
13129
  try {
13130
13130
  s.store.setIsUpdatingRequesting(s.formID, !0);
13131
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13131
+ let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13132
13132
  if (await l.store.emit(s.formID, "beforeRequest", {
13133
13133
  isCreating: s.isCreating.value,
13134
13134
  isUpdating: s.isUpdating.value,
@@ -13137,20 +13137,20 @@ const getProps$r = () => ({
13137
13137
  row: o.selectedRow.value,
13138
13138
  rows: o.selectedRows.value,
13139
13139
  model: l.model,
13140
- params: ae,
13140
+ params: se,
13141
13141
  data: pe
13142
13142
  }))
13143
13143
  return;
13144
- const fe = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
13145
- if (!fe)
13144
+ const _e = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
13145
+ if (!_e)
13146
13146
  throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13147
13147
  const me = await httpClient().request({
13148
- url: fe,
13149
- method: (se = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd_method) != null ? se : "POST",
13150
- params: ae.value,
13148
+ url: _e,
13149
+ method: (ie = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
13150
+ params: se.value,
13151
13151
  data: pe.value
13152
13152
  });
13153
- ((oe = s.varButtonUpdate.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((ue = s.varButtonUpdate.value) == null ? void 0 : ue.reload_all_after_done_flg) !== 0 && c.search({
13153
+ ((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((de = s.varButtonUpdate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13154
13154
  isPreserveSelectedRows: !0
13155
13155
  }), await l.store.emit(s.formID, "ok", {
13156
13156
  isCreating: !1,
@@ -13161,21 +13161,21 @@ const getProps$r = () => ({
13161
13161
  model: l.model,
13162
13162
  result: me
13163
13163
  });
13164
- } catch (ae) {
13165
- console.error(ae), l.store.emit(s.formID, "error", ae);
13164
+ } catch (se) {
13165
+ console.error(se), l.store.emit(s.formID, "error", se);
13166
13166
  } finally {
13167
13167
  s.store.setIsUpdatingRequesting(s.formID, !1);
13168
13168
  }
13169
13169
  }
13170
13170
  async function Ce() {
13171
- var q, W, X, ee, se, oe, ue, ae, pe;
13171
+ var H, W, X, te, ie, le, de, se, pe;
13172
13172
  try {
13173
13173
  s.store.setIsCopyingRequesting(s.formID, !0);
13174
- let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), fe = ref(KgUtil.parseParams({
13174
+ let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), _e = ref(KgUtil.parseParams({
13175
13175
  ...(X = o.selectedFirstRow.value) != null ? X : {},
13176
13176
  ...toRaw(l.model.value)
13177
13177
  }, s.formID, r));
13178
- if (((ee = b.value) == null ? void 0 : ee.cpy_clear_id_flg) !== 0 && delete fe.value.id, await l.store.emit(s.formID, "beforeRequest", {
13178
+ if (((te = b.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete _e.value.id, await l.store.emit(s.formID, "beforeRequest", {
13179
13179
  isCreating: s.isCreating.value,
13180
13180
  isUpdating: s.isUpdating.value,
13181
13181
  isCopying: s.isCopying.value,
@@ -13184,19 +13184,19 @@ const getProps$r = () => ({
13184
13184
  rows: o.selectedRows.value,
13185
13185
  model: l.model,
13186
13186
  params: ve,
13187
- data: fe
13187
+ data: _e
13188
13188
  }))
13189
13189
  return;
13190
- const Te = (se = s.varButtonCopy.value) == null ? void 0 : se.cmd;
13190
+ const Te = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
13191
13191
  if (!Te)
13192
13192
  throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13193
13193
  const we = await httpClient().request({
13194
13194
  url: Te,
13195
- method: (ue = (oe = s.varButtonCopy.value) == null ? void 0 : oe.cmd_method) != null ? ue : "POST",
13195
+ method: (de = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? de : "POST",
13196
13196
  params: ve.value,
13197
- data: fe.value
13197
+ data: _e.value
13198
13198
  });
13199
- ((ae = s.varButtonCopy.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((pe = s.varButtonCopy.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
13199
+ ((se = s.varButtonCopy.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((pe = s.varButtonCopy.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
13200
13200
  isSearchFirstPage: !0
13201
13201
  }), await l.store.emit(s.formID, "ok", {
13202
13202
  isCreating: !1,
@@ -13214,15 +13214,15 @@ const getProps$r = () => ({
13214
13214
  }
13215
13215
  }
13216
13216
  async function be() {
13217
- var q, W, X, ee, se, oe, ue, ae, pe, ve, fe;
13217
+ var H, W, X, te, ie, le, de, se, pe, ve, _e;
13218
13218
  try {
13219
13219
  s.store.setIsDeletingRequesting(s.formID, !0);
13220
- let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
13221
- if (((ee = s.varButtonDelete.value) == null ? void 0 : ee.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
13222
- ids: (oe = (se = o.selectedRows.value) == null ? void 0 : se.map((Le) => {
13220
+ let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
13221
+ if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
13222
+ ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((Le) => {
13223
13223
  var Re, Ke, Pe;
13224
13224
  return (Pe = Le[(Ke = (Re = s.varButtonDelete.value) == null ? void 0 : Re.del_param_clm) != null ? Ke : "id"]) != null ? Pe : "";
13225
- })) != null ? oe : []
13225
+ })) != null ? le : []
13226
13226
  })), await l.store.emit(s.formID, "beforeRequest", {
13227
13227
  isCreating: s.isCreating.value,
13228
13228
  isUpdating: s.isUpdating.value,
@@ -13235,10 +13235,10 @@ const getProps$r = () => ({
13235
13235
  data: Te
13236
13236
  }))
13237
13237
  return;
13238
- const Oe = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd;
13238
+ const Oe = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd;
13239
13239
  if (!Oe)
13240
13240
  throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13241
- const Ve = (pe = (ae = s.varButtonDelete.value) == null ? void 0 : ae.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
13241
+ const Ve = (pe = (se = s.varButtonDelete.value) == null ? void 0 : se.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
13242
13242
  url: Oe,
13243
13243
  method: Ve,
13244
13244
  params: me.value,
@@ -13246,7 +13246,7 @@ const getProps$r = () => ({
13246
13246
  }, {
13247
13247
  joinParamsToUrl: !0
13248
13248
  });
13249
- ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((fe = s.varButtonDelete.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
13249
+ ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((_e = s.varButtonDelete.value) == null ? void 0 : _e.reload_all_after_done_flg) !== 0 && c.search({
13250
13250
  isSearchFirstPage: !0
13251
13251
  }), await l.store.emit(s.formID, "ok", {
13252
13252
  isCreating: !1,
@@ -13266,27 +13266,27 @@ const getProps$r = () => ({
13266
13266
  s.store.setIsDeletingRequesting(s.formID, !1);
13267
13267
  }
13268
13268
  }
13269
- function ye(q) {
13270
- var ee, se, oe, ue;
13271
- const W = (se = (ee = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ee["KgForm.Item.control"]) == null ? void 0 : se[q.var_nam], X = (ue = (oe = a == null ? void 0 : a.KgSubmit) == null ? void 0 : oe["KgForm.Item.controlRight"]) == null ? void 0 : ue[q.var_nam];
13269
+ function ye(H) {
13270
+ var te, ie, le, de;
13271
+ const W = (ie = (te = a == null ? void 0 : a.KgSubmit) == null ? void 0 : te["KgForm.Item.control"]) == null ? void 0 : ie[H.var_nam], X = (de = (le = a == null ? void 0 : a.KgSubmit) == null ? void 0 : le["KgForm.Item.controlRight"]) == null ? void 0 : de[H.var_nam];
13272
13272
  return createVNode(KgForm.Item, {
13273
- kgVarName: q.var_nam,
13273
+ kgVarName: H.var_nam,
13274
13274
  kgContext: KG_FORM_CONTEXT.SUBMIT,
13275
- kgRules: l.rules.value[q.var_nam],
13276
- onKgSubmit: le
13275
+ kgRules: l.rules.value[H.var_nam],
13276
+ onKgSubmit: ce
13277
13277
  }, {
13278
- control: isFunction$2(W) ? (ae) => W(ae) : void 0,
13279
- controlRight: isFunction$2(X) ? (ae) => X(ae) : void 0
13278
+ control: isFunction$2(W) ? (se) => W(se) : void 0,
13279
+ controlRight: isFunction$2(X) ? (se) => X(se) : void 0
13280
13280
  });
13281
13281
  }
13282
13282
  function De() {
13283
- let q, W;
13283
+ let H, W;
13284
13284
  return createVNode(KgResizable, {
13285
13285
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
13286
- kgMinWidth: x.value,
13287
- kgMaxWidth: $.value,
13288
- kgWidth: F.value,
13289
- kgDisabled: N.value,
13286
+ kgMinWidth: U.value,
13287
+ kgMaxWidth: L.value,
13288
+ kgWidth: $.value,
13289
+ kgDisabled: F.value,
13290
13290
  "onUpdate:kgWidth": (X) => V.value.kgWidth = X
13291
13291
  }, {
13292
13292
  default: () => [createVNode(Spin, {
@@ -13297,17 +13297,17 @@ const getProps$r = () => ({
13297
13297
  return [createVNode(KgForm, {
13298
13298
  ref: l.formRef,
13299
13299
  model: (X = l.model.value) != null ? X : void 0,
13300
- layout: _e.value,
13300
+ layout: ue.value,
13301
13301
  labelCol: ne.value,
13302
13302
  wrapperCol: B.value
13303
13303
  }, {
13304
13304
  default: () => [createVNode("div", {
13305
- ref: H
13305
+ ref: q
13306
13306
  }, [D.value.length > 0 && createVNode(Row, {
13307
13307
  gutter: 12
13308
- }, _isSlot$6(q = D.value.map(ye)) ? q : {
13309
- default: () => [q]
13310
- }), K.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13308
+ }, _isSlot$6(H = D.value.map(ye)) ? H : {
13309
+ default: () => [H]
13310
+ }), K.value.length > 0 && x.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13311
13311
  gutter: 12
13312
13312
  }, _isSlot$6(W = P.value.map(ye)) ? W : {
13313
13313
  default: () => [W]
@@ -13320,36 +13320,36 @@ const getProps$r = () => ({
13320
13320
  });
13321
13321
  }
13322
13322
  function Ee() {
13323
- let q;
13323
+ let H;
13324
13324
  return createVNode("div", null, [createVNode(Button, {
13325
13325
  type: "primary",
13326
13326
  ghost: !O.value,
13327
13327
  disabled: O.value,
13328
- onClick: ce
13329
- }, _isSlot$6(q = n.t("kg.cancel")) ? q : {
13330
- default: () => [q]
13328
+ onClick: ge
13329
+ }, _isSlot$6(H = n.t("kg.cancel")) ? H : {
13330
+ default: () => [H]
13331
13331
  }), createVNode(Button, {
13332
13332
  type: "primary",
13333
13333
  disabled: R.value,
13334
- loading: L.value,
13334
+ loading: N.value,
13335
13335
  danger: !!s.isDeleting.value,
13336
- onClick: le
13336
+ onClick: ce
13337
13337
  }, {
13338
13338
  default: () => [G.value]
13339
13339
  })]);
13340
13340
  }
13341
13341
  function Ae() {
13342
13342
  return createVNode("div", {
13343
- title: Q.title.value
13344
- }, [Q.title.value]);
13343
+ title: z.title.value
13344
+ }, [z.title.value]);
13345
13345
  }
13346
13346
  function Ie() {
13347
13347
  return createVNode(KgSubmitHeader, {
13348
- isFullscreen: te.isFullscreen,
13349
- "onUpdate:isFullscreen": (q) => te.isFullscreen = q,
13348
+ isFullscreen: ee.isFullscreen,
13349
+ "onUpdate:isFullscreen": (H) => ee.isFullscreen = H,
13350
13350
  kgShowFullscreenButton: !u.value,
13351
13351
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
13352
- onKgCancel: ce
13352
+ onKgCancel: ge
13353
13353
  }, null);
13354
13354
  }
13355
13355
  return onUnmounted(async () => {
@@ -13362,7 +13362,7 @@ const getProps$r = () => ({
13362
13362
  keyboard: !1,
13363
13363
  destroyOnClose: !0,
13364
13364
  width: J.value,
13365
- class: ie.value,
13365
+ class: oe.value,
13366
13366
  "kg-frm_id": s.formID
13367
13367
  }, {
13368
13368
  title: Ae,
@@ -14931,10 +14931,10 @@ function useKgVar(e, t, r = 0) {
14931
14931
  }), onUnmounted(() => {
14932
14932
  i.dispose(s);
14933
14933
  }));
14934
- const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), U = computed(() => {
14935
- var F, H;
14936
- return (H = (F = P.value) == null ? void 0 : F.varProfileDetails) != null ? H : null;
14937
- }), L = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), N = computed(() => i.getSystemVarGridDetails(s)), x = computed(() => i.getCurrentVarGridDetails(s)), $ = computed(() => i.getVarSubmitConfigProps(s));
14934
+ const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), x = computed(() => {
14935
+ var $, q;
14936
+ return (q = ($ = P.value) == null ? void 0 : $.varProfileDetails) != null ? q : null;
14937
+ }), N = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), F = computed(() => i.getSystemVarGridDetails(s)), U = computed(() => i.getCurrentVarGridDetails(s)), L = computed(() => i.getVarSubmitConfigProps(s));
14938
14938
  return {
14939
14939
  formID: s,
14940
14940
  store: i,
@@ -14960,31 +14960,31 @@ function useKgVar(e, t, r = 0) {
14960
14960
  varProfileMasters: D,
14961
14961
  currentVarProfileMasterID: K,
14962
14962
  currentVarProfileMaster: P,
14963
- currentVarProfileDetails: U,
14964
- varGridConfig: L,
14963
+ currentVarProfileDetails: x,
14964
+ varGridConfig: N,
14965
14965
  varGridMasters: O,
14966
14966
  currentVarGridMasteID: R,
14967
14967
  currentVarGridMaster: V,
14968
- systemVarGridDetails: N,
14969
- currentVarGridDetails: x,
14970
- varSubmitConfigProps: $,
14971
- setIsCreating(F) {
14972
- i.setIsCreating(s, F);
14968
+ systemVarGridDetails: F,
14969
+ currentVarGridDetails: U,
14970
+ varSubmitConfigProps: L,
14971
+ setIsCreating($) {
14972
+ i.setIsCreating(s, $);
14973
14973
  },
14974
- setIsUpdating(F) {
14975
- i.setIsUpdating(s, F);
14974
+ setIsUpdating($) {
14975
+ i.setIsUpdating(s, $);
14976
14976
  },
14977
- setIsCopying(F) {
14978
- i.setIsCopying(s, F);
14977
+ setIsCopying($) {
14978
+ i.setIsCopying(s, $);
14979
14979
  },
14980
- setIsDeleting(F) {
14981
- i.setIsDeleting(s, F);
14980
+ setIsDeleting($) {
14981
+ i.setIsDeleting(s, $);
14982
14982
  },
14983
- patchVarSubmitField(F, H, Q) {
14984
- return i.patchVarSubmitField(s, F, H, Q);
14983
+ patchVarSubmitField($, q, z) {
14984
+ return i.patchVarSubmitField(s, $, q, z);
14985
14985
  },
14986
- t(F) {
14987
- return computed(() => i.t(s, F));
14986
+ t($) {
14987
+ return computed(() => i.t(s, $));
14988
14988
  },
14989
14989
  onRetrieve: onEventFactory(s, i, "retrieve")
14990
14990
  };
@@ -15714,7 +15714,7 @@ const getProps$p = () => ({
15714
15714
  if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
15715
15715
  datas: D
15716
15716
  }) => {
15717
- const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (U, L) => (U == null ? void 0 : U[s.id.value]) === (L == null ? void 0 : L[s.id.value]));
15717
+ const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (x, N) => (x == null ? void 0 : x[s.id.value]) === (N == null ? void 0 : N[s.id.value]));
15718
15718
  return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
15719
15719
  }, !0), await n.store.emit(r.formID, "otherOk", {
15720
15720
  button: e.kgButton,
@@ -16658,11 +16658,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16658
16658
  }
16659
16659
  });
16660
16660
  l.value = l.value.map((P) => {
16661
- var L;
16662
- const U = (L = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16663
- return U ? {
16661
+ var N;
16662
+ const x = (N = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : N.find((O) => O.var_nam === P.var_nam);
16663
+ return x ? {
16664
16664
  ...P,
16665
- ...U,
16665
+ ...x,
16666
16666
  id: P.id
16667
16667
  } : P;
16668
16668
  });
@@ -17003,23 +17003,23 @@ const KgSearch$1 = "", getProps$j = () => ({
17003
17003
  });
17004
17004
  _useLayoutHeaderResizeObserver();
17005
17005
  const _ = _useFormModel(E, g, m), y = computed(() => {
17006
- var $, F, H, Q;
17007
- if (!isNil((F = ($ = r == null ? void 0 : r.value) == null ? void 0 : $.KgSearch) == null ? void 0 : F.kgDisabled))
17008
- return (Q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Q.kgDisabled;
17006
+ var L, $, q, z;
17007
+ if (!isNil(($ = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : $.kgDisabled))
17008
+ return (z = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgSearch) == null ? void 0 : z.kgDisabled;
17009
17009
  if (!isNil(e.kgDisabled))
17010
17010
  return e.kgDisabled;
17011
17011
  }), v = computed(() => {
17012
- var $, F;
17013
- return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
17012
+ var L, $;
17013
+ return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((L = n.varButtonSearch.value) == null ? void 0 : L.permission_code) === 2 && !a.p(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
17014
17014
  }), T = computed(() => !!(y.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!i.isRetrieving.value), A = ref({
17015
17015
  visible: !1
17016
17016
  }), C = computed(() => m.value.kgHeight === b.value), w = computed(() => {
17017
- var $, F, H;
17018
- if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((F = n.varButtonSearch.value) == null ? void 0 : F.var_nam))
17019
- return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
17017
+ var L, $, q;
17018
+ if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== (($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam))
17019
+ return n.t((q = n.varButtonSearch.value) == null ? void 0 : q.var_nam).value;
17020
17020
  }), M = computed(() => {
17021
- var $;
17022
- switch (($ = n.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
17021
+ var L;
17022
+ switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
17023
17023
  case 1:
17024
17024
  return !0;
17025
17025
  case 0:
@@ -17028,16 +17028,16 @@ const KgSearch$1 = "", getProps$j = () => ({
17028
17028
  return !0;
17029
17029
  }
17030
17030
  }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17031
- let $ = "kg-search";
17032
- return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
17031
+ let L = "kg-search";
17032
+ return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
17033
17033
  });
17034
- async function P($ = {}) {
17035
- var F, H;
17034
+ async function P(L = {}) {
17035
+ var $, q;
17036
17036
  if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
17037
17037
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
17038
17038
  return;
17039
17039
  }
17040
- if (KgAuthUtil.getPermissionType((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code) === 2 && !a.p((H = n.varButtonSearch.value) == null ? void 0 : H.permission_code)) {
17040
+ if (KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((q = n.varButtonSearch.value) == null ? void 0 : q.permission_code)) {
17041
17041
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
17042
17042
  return;
17043
17043
  }
@@ -17046,55 +17046,55 @@ const KgSearch$1 = "", getProps$j = () => ({
17046
17046
  return;
17047
17047
  }
17048
17048
  o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), g.value && g.value.validate().then(async () => {
17049
- await s.store.emit(n.formID, "search", $);
17050
- }).catch((Q) => {
17049
+ await s.store.emit(n.formID, "search", L);
17050
+ }).catch((z) => {
17051
17051
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
17052
- e: Q
17052
+ e: z
17053
17053
  });
17054
- })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", $));
17054
+ })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", L));
17055
17055
  }
17056
17056
  s.store.setSearchFn(n.formID, P);
17057
- async function U() {
17057
+ async function x() {
17058
17058
  _.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
17059
17059
  await s.store.emit(n.formID, "reset", {});
17060
- }).catch(($) => {
17060
+ }).catch((L) => {
17061
17061
  KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
17062
- e: $
17062
+ e: L
17063
17063
  });
17064
17064
  }) : await s.store.emit(n.formID, "reset", {});
17065
17065
  }
17066
- s.store.setResetFn(n.formID, U);
17067
- function L() {
17066
+ s.store.setResetFn(n.formID, x);
17067
+ function N() {
17068
17068
  return P({
17069
17069
  isSearchFirstPage: !0
17070
17070
  }), Promise.resolve(!0);
17071
17071
  }
17072
17072
  function O() {
17073
- var $;
17073
+ var L;
17074
17074
  return createVNode("div", {
17075
17075
  class: "title",
17076
- onClick: x
17077
- }, [(($ = t == null ? void 0 : t.KgSearch) == null ? void 0 : $.left) && createVNode("div", {
17076
+ onClick: U
17077
+ }, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
17078
17078
  class: "kg-search-title-left",
17079
- onClick: (F) => {
17080
- F.stopPropagation(), F.preventDefault();
17079
+ onClick: ($) => {
17080
+ $.stopPropagation(), $.preventDefault();
17081
17081
  }
17082
17082
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
17083
17083
  }
17084
17084
  function R() {
17085
- var $, F, H, Q;
17086
- return ((H = (F = ($ = n.varProfileMasters) == null ? void 0 : $.value) == null ? void 0 : F.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
17087
- value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
17085
+ var L, $, q, z;
17086
+ return ((q = ($ = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : $.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
17087
+ value: (z = n.currentVarProfileMasterID.value) != null ? z : void 0,
17088
17088
  "onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
17089
17089
  disabled: T.value,
17090
17090
  class: "kg-search-profile-master-select"
17091
17091
  }, {
17092
17092
  default: () => {
17093
17093
  var J, re;
17094
- return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
17095
- value: te.id
17094
+ return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
17095
+ value: ee.id
17096
17096
  }, {
17097
- default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
17097
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
17098
17098
  }));
17099
17099
  },
17100
17100
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -17115,45 +17115,45 @@ const KgSearch$1 = "", getProps$j = () => ({
17115
17115
  }, null)]);
17116
17116
  }
17117
17117
  function V() {
17118
- var $, F, H;
17118
+ var L, $, q;
17119
17119
  return createVNode(Fragment, null, [R(), createVNode(Button, {
17120
17120
  type: "primary",
17121
17121
  ghost: !v.value,
17122
17122
  disabled: v.value,
17123
- onClick: U,
17123
+ onClick: x,
17124
17124
  class: "kg-search-btn-reset"
17125
17125
  }, {
17126
17126
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
17127
17127
  }), createVNode(KgButton.Item, {
17128
17128
  kgType: KG_BUTTON_TYPE.SEARCH,
17129
- kgVarName: ($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam,
17130
- kgIcon: (F = n.varButtonSearch.value) == null ? void 0 : F.icon,
17129
+ kgVarName: (L = n.varButtonSearch.value) == null ? void 0 : L.var_nam,
17130
+ kgIcon: ($ = n.varButtonSearch.value) == null ? void 0 : $.icon,
17131
17131
  kgText: w.value,
17132
- kgColor: (H = n.varButtonSearch.value) == null ? void 0 : H.color,
17132
+ kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
17133
17133
  kgPrimary: M.value,
17134
17134
  kgDisabled: v.value,
17135
17135
  kgLoading: k.value,
17136
- onKgClick: L
17136
+ onKgClick: N
17137
17137
  }, null)]);
17138
17138
  }
17139
- function N() {
17139
+ function F() {
17140
17140
  return createVNode(Spin, {
17141
17141
  spinning: D.value
17142
17142
  }, {
17143
17143
  default: () => {
17144
- var $;
17144
+ var L;
17145
17145
  return [createVNode(KgForm, {
17146
17146
  ref: g,
17147
- model: ($ = s.model.value) != null ? $ : {}
17147
+ model: (L = s.model.value) != null ? L : {}
17148
17148
  }, {
17149
17149
  default: () => [createVNode(Row, {
17150
17150
  gutter: 6
17151
17151
  }, {
17152
17152
  default: () => {
17153
- var F;
17154
- return [(F = n.currentVarProfileDetails.value) == null ? void 0 : F.map((H) => createVNode(KgForm.Item, {
17155
- key: H.var_nam,
17156
- kgVarName: H.var_nam,
17153
+ var $;
17154
+ return [($ = n.currentVarProfileDetails.value) == null ? void 0 : $.map((q) => createVNode(KgForm.Item, {
17155
+ key: q.var_nam,
17156
+ kgVarName: q.var_nam,
17157
17157
  kgContext: KG_FORM_CONTEXT.SEARCH,
17158
17158
  onKgSubmit: () => P({
17159
17159
  isSearchFirstPage: !0
@@ -17165,7 +17165,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17165
17165
  }
17166
17166
  });
17167
17167
  }
17168
- function x() {
17168
+ function U() {
17169
17169
  C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
17170
17170
  }
17171
17171
  return onUnmounted(async () => {
@@ -17173,7 +17173,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17173
17173
  }), () => createVNode(KgResizable, {
17174
17174
  ref: E,
17175
17175
  kgHeight: m.value.kgHeight,
17176
- "onUpdate:kgHeight": ($) => m.value.kgHeight = $,
17176
+ "onUpdate:kgHeight": (L) => m.value.kgHeight = L,
17177
17177
  kgMinHeight: b.value,
17178
17178
  kgMaxHeight: d.value,
17179
17179
  kgDisabled: !l.value,
@@ -17201,7 +17201,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17201
17201
  class: "ant-collapse-content ant-collapse-content-active"
17202
17202
  }, [createVNode("div", {
17203
17203
  class: "ant-collapse-content-box"
17204
- }, [N()])])])])]
17204
+ }, [F()])])])])]
17205
17205
  });
17206
17206
  }
17207
17207
  }), KgVarConfig_FormIDsModal = "", getProps$i = () => ({
@@ -17592,11 +17592,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17592
17592
  }, {
17593
17593
  immediate: !0
17594
17594
  }), watch(() => a.getSelectedVarCatalog, async (P) => {
17595
- var U, L;
17596
- l.value.var_text = (U = P == null ? void 0 : P.var_text) != null ? U : "", (L = o.value) == null || L.clearValidate();
17595
+ var x, N;
17596
+ l.value.var_text = (x = P == null ? void 0 : P.var_text) != null ? x : "", (N = o.value) == null || N.clearValidate();
17597
17597
  });
17598
17598
  async function v(P = !1) {
17599
- var U, L, O;
17599
+ var x, N, O;
17600
17600
  n.value = !0;
17601
17601
  try {
17602
17602
  const {
@@ -17606,19 +17606,19 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17606
17606
  pageNo: 1,
17607
17607
  pageSize: 999,
17608
17608
  frm_id: e == null ? void 0 : e.value,
17609
- var_nam: (U = a.getSelectedVar) == null ? void 0 : U.var_nam,
17609
+ var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
17610
17610
  column: "frm_id,locale_id,cust_lvl",
17611
17611
  order: "asc"
17612
17612
  }
17613
17613
  });
17614
17614
  if (u.value = null, c.value = R != null ? R : [], P) {
17615
- const V = c.value.find((N) => {
17616
- var x;
17617
- return N.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
17615
+ const V = c.value.find((F) => {
17616
+ var U;
17617
+ return F.id === ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id);
17618
17618
  });
17619
17619
  a.setSelectedVarCatalog(V != null ? V : null), d.value = V != null && V.id ? [V.id] : [];
17620
17620
  } else
17621
- a.setSelectedVarCatalog((L = c.value[0]) != null ? L : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
17621
+ a.setSelectedVarCatalog((N = c.value[0]) != null ? N : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
17622
17622
  } catch (R) {
17623
17623
  KgLogger.debug(R == null ? void 0 : R.message);
17624
17624
  } finally {
@@ -17626,12 +17626,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17626
17626
  }
17627
17627
  }
17628
17628
  async function T() {
17629
- var P, U, L;
17629
+ var P, x, N;
17630
17630
  try {
17631
17631
  s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
17632
17632
  const O = new VarVariableCatalog({
17633
- ...(U = a.getSelectedVarCatalog) != null ? U : {},
17634
- var_text: (L = l.value) == null ? void 0 : L.var_text
17633
+ ...(x = a.getSelectedVarCatalog) != null ? x : {},
17634
+ var_text: (N = l.value) == null ? void 0 : N.var_text
17635
17635
  });
17636
17636
  O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
17637
17637
  data: O
@@ -17660,23 +17660,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17660
17660
  }
17661
17661
  function k({
17662
17662
  isAllForm: P,
17663
- isAllLanguage: U
17663
+ isAllLanguage: x
17664
17664
  }) {
17665
- var L, O, R;
17665
+ var N, O, R;
17666
17666
  u.value = new VarVariableCatalog({
17667
17667
  id: "",
17668
17668
  cust_lvl: KG_CUSTOM_LEVEL.L10,
17669
- grp_nam: (L = a.getSelectedVar) == null ? void 0 : L.grp_nam,
17669
+ grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
17670
17670
  var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
17671
17671
  frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
17672
- locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
17672
+ locale_id: x ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
17673
17673
  var_text: ""
17674
17674
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
17675
17675
  }
17676
17676
  function A() {
17677
- var U;
17677
+ var x;
17678
17678
  c.value = without$1(c.value, u.value), u.value = null;
17679
- const P = (U = c.value[0]) != null ? U : null;
17679
+ const P = (x = c.value[0]) != null ? x : null;
17680
17680
  a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
17681
17681
  }
17682
17682
  function C() {
@@ -17697,8 +17697,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17697
17697
  });
17698
17698
  }
17699
17699
  function w(P) {
17700
- var U;
17701
- ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== P.id && (unref(u) ? KgUtil.confirm({
17700
+ var x;
17701
+ ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== P.id && (unref(u) ? KgUtil.confirm({
17702
17702
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
17703
17703
  onOk: () => {
17704
17704
  c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
@@ -17728,7 +17728,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17728
17728
  })]);
17729
17729
  }
17730
17730
  function D() {
17731
- let P, U;
17731
+ let P, x;
17732
17732
  return createVNode("div", {
17733
17733
  class: "form"
17734
17734
  }, [createVNode(Form, {
@@ -17745,7 +17745,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17745
17745
  }, {
17746
17746
  default: () => [createVNode(Textarea, {
17747
17747
  value: l.value.var_text,
17748
- "onUpdate:value": (L) => l.value.var_text = L,
17748
+ "onUpdate:value": (N) => l.value.var_text = N,
17749
17749
  disabled: !a.getSelectedVarCatalog
17750
17750
  }, null), createVNode("button", {
17751
17751
  hidden: !0
@@ -17763,14 +17763,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17763
17763
  disabled: y.value,
17764
17764
  onClick: T,
17765
17765
  type: "primary"
17766
- }, _isSlot$1(U = t.t("common.save")) ? U : {
17767
- default: () => [U]
17766
+ }, _isSlot$1(x = t.t("common.save")) ? x : {
17767
+ default: () => [x]
17768
17768
  })])]);
17769
17769
  }
17770
17770
  function K(P) {
17771
- var L;
17772
- let U = "";
17773
- return P.id || (U += " ant-table-row-create"), P.id === ((L = a.getSelectedVarCatalog) == null ? void 0 : L.id) && (U += " ant-table-row-selected "), U;
17771
+ var N;
17772
+ let x = "";
17773
+ return P.id || (x += " ant-table-row-create"), P.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (x += " ant-table-row-selected "), x;
17774
17774
  }
17775
17775
  return () => createVNode("div", {
17776
17776
  class: "kg-var-config-modal--var--var-variable-catalog"
@@ -19833,16 +19833,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19833
19833
  const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
19834
19834
  if (!P)
19835
19835
  return;
19836
- let U = !1;
19836
+ let x = !1;
19837
19837
  if (Object.entries(K).forEach(([O, R]) => {
19838
- O in P && P[O] !== R && (P[O] = R, U = !0);
19839
- }), !U)
19838
+ O in P && P[O] !== R && (P[O] = R, x = !0);
19839
+ }), !x)
19840
19840
  return;
19841
- const L = [...a.value.varButtons];
19842
- L.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(L);
19841
+ const N = [...a.value.varButtons];
19842
+ N.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(N);
19843
19843
  }
19844
19844
  function _(I) {
19845
- const { varNam: D } = I, K = a.value.varButtons.find((U) => U.var_nam === D);
19845
+ const { varNam: D } = I, K = a.value.varButtons.find((x) => x.var_nam === D);
19846
19846
  if (!K)
19847
19847
  return;
19848
19848
  const P = [...a.value.varButtons];
@@ -19872,7 +19872,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19872
19872
  const { varNam: D, varText: K } = I;
19873
19873
  if (!D)
19874
19874
  return;
19875
- const P = a.value.varVariableCatalogs.find((U) => U.var_nam === D);
19875
+ const P = a.value.varVariableCatalogs.find((x) => x.var_nam === D);
19876
19876
  !P || (P.var_text = K || D);
19877
19877
  }
19878
19878
  function T(I) {
@@ -19914,7 +19914,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19914
19914
  }
19915
19915
  function w(I) {
19916
19916
  var D, K, P;
19917
- return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((U) => U.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19917
+ return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((x) => x.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19918
19918
  }
19919
19919
  function M() {
19920
19920
  const I = uniq(