@kengic/vue 0.6.3-beta.4 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2182,7 +2182,7 @@ var Icon$1 = function(t, r) {
2182
2182
  var v = l ? {
2183
2183
  msTransform: "rotate(".concat(l, "deg)"),
2184
2184
  transform: "rotate(".concat(l, "deg)")
2185
- } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), k = C[0], T = C[1];
2185
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), E = C[0], T = C[1];
2186
2186
  return createVNode("span", _objectSpread$k({
2187
2187
  role: "img",
2188
2188
  "aria-label": i.name
@@ -2192,7 +2192,7 @@ var Icon$1 = function(t, r) {
2192
2192
  }), [createVNode(VueIcon, {
2193
2193
  class: p,
2194
2194
  icon: i,
2195
- primaryColor: k,
2195
+ primaryColor: E,
2196
2196
  secondaryColor: T,
2197
2197
  style: v
2198
2198
  }, null)]);
@@ -3002,11 +3002,11 @@ function iconToSVG(e, t) {
3002
3002
  ), _.push("scale(-1 1)"), n.top = n.left = 0) : y && (_.push(
3003
3003
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3004
3004
  ), _.push("scale(1 -1)"), n.top = n.left = 0);
3005
- let k;
3005
+ let E;
3006
3006
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
3007
3007
  case 1:
3008
- k = n.height / 2 + n.top, _.unshift(
3009
- "rotate(90 " + k.toString() + " " + k.toString() + ")"
3008
+ E = n.height / 2 + n.top, _.unshift(
3009
+ "rotate(90 " + E.toString() + " " + E.toString() + ")"
3010
3010
  );
3011
3011
  break;
3012
3012
  case 2:
@@ -3015,12 +3015,12 @@ function iconToSVG(e, t) {
3015
3015
  );
3016
3016
  break;
3017
3017
  case 3:
3018
- k = n.width / 2 + n.left, _.unshift(
3019
- "rotate(-90 " + k.toString() + " " + k.toString() + ")"
3018
+ E = n.width / 2 + n.left, _.unshift(
3019
+ "rotate(-90 " + E.toString() + " " + E.toString() + ")"
3020
3020
  );
3021
3021
  break;
3022
3022
  }
3023
- C % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
3023
+ C % 2 === 1 && (n.left !== n.top && (E = n.left, n.left = n.top, n.top = E), n.width !== n.height && (E = n.width, n.width = n.height, n.height = E)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
3024
3024
  });
3025
3025
  const i = a.width, s = a.height, l = n.width, u = n.height;
3026
3026
  let c, g;
@@ -3300,12 +3300,12 @@ function sendQuery(e, t, r, a) {
3300
3300
  const n = e.resources.length, o = e.random ? Math.floor(Math.random() * n) : e.index;
3301
3301
  let i;
3302
3302
  if (e.random) {
3303
- let E = e.resources.slice(0);
3304
- for (i = []; E.length > 1; ) {
3305
- const $ = Math.floor(Math.random() * E.length);
3306
- i.push(E[$]), E = E.slice(0, $).concat(E.slice($ + 1));
3303
+ let k = e.resources.slice(0);
3304
+ for (i = []; k.length > 1; ) {
3305
+ const $ = Math.floor(Math.random() * k.length);
3306
+ i.push(k[$]), k = k.slice(0, $).concat(k.slice($ + 1));
3307
3307
  }
3308
- i = i.concat(E);
3308
+ i = i.concat(k);
3309
3309
  } else
3310
3310
  i = e.resources.slice(o).concat(e.resources.slice(0, o));
3311
3311
  const s = Date.now();
@@ -3315,12 +3315,12 @@ function sendQuery(e, t, r, a) {
3315
3315
  g && (clearTimeout(g), g = null);
3316
3316
  }
3317
3317
  function _() {
3318
- l === "pending" && (l = "aborted"), p(), m.forEach((E) => {
3319
- E.status === "pending" && (E.status = "aborted");
3318
+ l === "pending" && (l = "aborted"), p(), m.forEach((k) => {
3319
+ k.status === "pending" && (k.status = "aborted");
3320
3320
  }), m = [];
3321
3321
  }
3322
- function v(E, $) {
3323
- $ && (b = []), typeof E == "function" && b.push(E);
3322
+ function v(k, $) {
3323
+ $ && (b = []), typeof k == "function" && b.push(k);
3324
3324
  }
3325
3325
  function y() {
3326
3326
  return {
@@ -3334,18 +3334,18 @@ function sendQuery(e, t, r, a) {
3334
3334
  };
3335
3335
  }
3336
3336
  function C() {
3337
- l = "failed", b.forEach((E) => {
3338
- E(void 0, c);
3337
+ l = "failed", b.forEach((k) => {
3338
+ k(void 0, c);
3339
3339
  });
3340
3340
  }
3341
- function k() {
3342
- m.forEach((E) => {
3343
- E.status === "pending" && (E.status = "aborted");
3341
+ function E() {
3342
+ m.forEach((k) => {
3343
+ k.status === "pending" && (k.status = "aborted");
3344
3344
  }), m = [];
3345
3345
  }
3346
- function T(E, $, M) {
3346
+ function T(k, $, M) {
3347
3347
  const I = $ !== "success";
3348
- switch (m = m.filter((O) => O !== E), l) {
3348
+ switch (m = m.filter((O) => O !== k), l) {
3349
3349
  case "pending":
3350
3350
  break;
3351
3351
  case "failed":
@@ -3363,8 +3363,8 @@ function sendQuery(e, t, r, a) {
3363
3363
  c = M, m.length || (i.length ? A() : C());
3364
3364
  return;
3365
3365
  }
3366
- if (p(), k(), !e.random) {
3367
- const O = e.resources.indexOf(E.resource);
3366
+ if (p(), E(), !e.random) {
3367
+ const O = e.resources.indexOf(k.resource);
3368
3368
  O !== -1 && O !== e.index && (e.index = O);
3369
3369
  }
3370
3370
  l = "completed", b.forEach((O) => {
@@ -3375,11 +3375,11 @@ function sendQuery(e, t, r, a) {
3375
3375
  if (l !== "pending")
3376
3376
  return;
3377
3377
  p();
3378
- const E = i.shift();
3379
- if (E === void 0) {
3378
+ const k = i.shift();
3379
+ if (k === void 0) {
3380
3380
  if (m.length) {
3381
3381
  g = setTimeout(() => {
3382
- p(), l === "pending" && (k(), C());
3382
+ p(), l === "pending" && (E(), C());
3383
3383
  }, e.timeout);
3384
3384
  return;
3385
3385
  }
@@ -3388,12 +3388,12 @@ function sendQuery(e, t, r, a) {
3388
3388
  }
3389
3389
  const $ = {
3390
3390
  status: "pending",
3391
- resource: E,
3391
+ resource: k,
3392
3392
  callback: (M, I) => {
3393
3393
  T($, M, I);
3394
3394
  }
3395
3395
  };
3396
- m.push($), u++, g = setTimeout(A, e.rotate), r(E, t, $.callback);
3396
+ m.push($), u++, g = setTimeout(A, e.rotate), r(k, t, $.callback);
3397
3397
  }
3398
3398
  return setTimeout(A), y;
3399
3399
  }
@@ -3924,103 +3924,103 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3924
3924
  (function(r, a) {
3925
3925
  e.exports = a();
3926
3926
  })(commonjsGlobal, function() {
3927
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", p = "date", _ = "Invalid Date", v = /^(\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, C = { 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) {
3928
- var R = ["th", "st", "nd", "rd"], D = N % 100;
3929
- return "[" + N + (R[(D - 20) % 10] || R[D] || R[0]) + "]";
3930
- } }, k = function(N, R, D) {
3931
- var V = String(N);
3932
- return !V || V.length >= R ? N : "" + Array(R + 1 - V.length).join(D) + N;
3933
- }, T = { s: k, z: function(N) {
3934
- var R = -N.utcOffset(), D = Math.abs(R), V = Math.floor(D / 60), P = D % 60;
3935
- return (R <= 0 ? "+" : "-") + k(V, 2, "0") + ":" + k(P, 2, "0");
3936
- }, m: function N(R, D) {
3937
- if (R.date() < D.date())
3938
- return -N(D, R);
3939
- var V = 12 * (D.year() - R.year()) + (D.month() - R.month()), P = R.clone().add(V, g), B = D - P < 0, x = R.clone().add(V + (B ? -1 : 1), g);
3940
- return +(-(V + (D - P) / (B ? P - x : x - P)) || 0);
3941
- }, a: function(N) {
3942
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
3943
- }, p: function(N) {
3944
- return { M: g, y: b, w: c, d: u, D: p, h: l, m: s, s: i, ms: o, Q: m }[N] || String(N || "").toLowerCase().replace(/s$/, "");
3945
- }, u: function(N) {
3946
- return N === void 0;
3947
- } }, A = "en", E = {};
3948
- E[A] = C;
3949
- var $ = function(N) {
3950
- return N instanceof F;
3951
- }, M = function N(R, D, V) {
3952
- var P;
3953
- if (!R)
3927
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", p = "date", _ = "Invalid Date", v = /^(\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, C = { 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(R) {
3928
+ var P = ["th", "st", "nd", "rd"], V = R % 100;
3929
+ return "[" + R + (P[(V - 20) % 10] || P[V] || P[0]) + "]";
3930
+ } }, E = function(R, P, V) {
3931
+ var w = String(R);
3932
+ return !w || w.length >= P ? R : "" + Array(P + 1 - w.length).join(V) + R;
3933
+ }, T = { s: E, z: function(R) {
3934
+ var P = -R.utcOffset(), V = Math.abs(P), w = Math.floor(V / 60), N = V % 60;
3935
+ return (P <= 0 ? "+" : "-") + E(w, 2, "0") + ":" + E(N, 2, "0");
3936
+ }, m: function R(P, V) {
3937
+ if (P.date() < V.date())
3938
+ return -R(V, P);
3939
+ var w = 12 * (V.year() - P.year()) + (V.month() - P.month()), N = P.clone().add(w, g), B = V - N < 0, x = P.clone().add(w + (B ? -1 : 1), g);
3940
+ return +(-(w + (V - N) / (B ? N - x : x - N)) || 0);
3941
+ }, a: function(R) {
3942
+ return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
3943
+ }, p: function(R) {
3944
+ return { M: g, y: b, w: c, d: u, D: p, h: l, m: s, s: i, ms: o, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
3945
+ }, u: function(R) {
3946
+ return R === void 0;
3947
+ } }, A = "en", k = {};
3948
+ k[A] = C;
3949
+ var $ = function(R) {
3950
+ return R instanceof F;
3951
+ }, M = function R(P, V, w) {
3952
+ var N;
3953
+ if (!P)
3954
3954
  return A;
3955
- if (typeof R == "string") {
3956
- var B = R.toLowerCase();
3957
- E[B] && (P = B), D && (E[B] = D, P = B);
3958
- var x = R.split("-");
3959
- if (!P && x.length > 1)
3960
- return N(x[0]);
3955
+ if (typeof P == "string") {
3956
+ var B = P.toLowerCase();
3957
+ k[B] && (N = B), V && (k[B] = V, N = B);
3958
+ var x = P.split("-");
3959
+ if (!N && x.length > 1)
3960
+ return R(x[0]);
3961
3961
  } else {
3962
- var G = R.name;
3963
- E[G] = R, P = G;
3964
- }
3965
- return !V && P && (A = P), P || !V && A;
3966
- }, I = function(N, R) {
3967
- if ($(N))
3968
- return N.clone();
3969
- var D = typeof R == "object" ? R : {};
3970
- return D.date = N, D.args = arguments, new F(D);
3962
+ var G = P.name;
3963
+ k[G] = P, N = G;
3964
+ }
3965
+ return !w && N && (A = N), N || !w && A;
3966
+ }, I = function(R, P) {
3967
+ if ($(R))
3968
+ return R.clone();
3969
+ var V = typeof P == "object" ? P : {};
3970
+ return V.date = R, V.args = arguments, new F(V);
3971
3971
  }, O = T;
3972
- O.l = M, O.i = $, O.w = function(N, R) {
3973
- return I(N, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
3972
+ O.l = M, O.i = $, O.w = function(R, P) {
3973
+ return I(R, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
3974
3974
  };
3975
3975
  var F = function() {
3976
- function N(D) {
3977
- this.$L = M(D.locale, null, !0), this.parse(D);
3978
- }
3979
- var R = N.prototype;
3980
- return R.parse = function(D) {
3981
- this.$d = function(V) {
3982
- var P = V.date, B = V.utc;
3983
- if (P === null)
3976
+ function R(V) {
3977
+ this.$L = M(V.locale, null, !0), this.parse(V);
3978
+ }
3979
+ var P = R.prototype;
3980
+ return P.parse = function(V) {
3981
+ this.$d = function(w) {
3982
+ var N = w.date, B = w.utc;
3983
+ if (N === null)
3984
3984
  return new Date(NaN);
3985
- if (O.u(P))
3985
+ if (O.u(N))
3986
3986
  return new Date();
3987
- if (P instanceof Date)
3988
- return new Date(P);
3989
- if (typeof P == "string" && !/Z$/i.test(P)) {
3990
- var x = P.match(v);
3987
+ if (N instanceof Date)
3988
+ return new Date(N);
3989
+ if (typeof N == "string" && !/Z$/i.test(N)) {
3990
+ var x = N.match(v);
3991
3991
  if (x) {
3992
3992
  var G = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
3993
3993
  return B ? new Date(Date.UTC(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y)) : new Date(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y);
3994
3994
  }
3995
3995
  }
3996
- return new Date(P);
3997
- }(D), this.$x = D.x || {}, this.init();
3998
- }, R.init = function() {
3999
- var D = this.$d;
4000
- this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
4001
- }, R.$utils = function() {
3996
+ return new Date(N);
3997
+ }(V), this.$x = V.x || {}, this.init();
3998
+ }, P.init = function() {
3999
+ var V = this.$d;
4000
+ this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
4001
+ }, P.$utils = function() {
4002
4002
  return O;
4003
- }, R.isValid = function() {
4003
+ }, P.isValid = function() {
4004
4004
  return this.$d.toString() !== _;
4005
- }, R.isSame = function(D, V) {
4006
- var P = I(D);
4007
- return this.startOf(V) <= P && P <= this.endOf(V);
4008
- }, R.isAfter = function(D, V) {
4009
- return I(D) < this.startOf(V);
4010
- }, R.isBefore = function(D, V) {
4011
- return this.endOf(V) < I(D);
4012
- }, R.$g = function(D, V, P) {
4013
- return O.u(D) ? this[V] : this.set(P, D);
4014
- }, R.unix = function() {
4005
+ }, P.isSame = function(V, w) {
4006
+ var N = I(V);
4007
+ return this.startOf(w) <= N && N <= this.endOf(w);
4008
+ }, P.isAfter = function(V, w) {
4009
+ return I(V) < this.startOf(w);
4010
+ }, P.isBefore = function(V, w) {
4011
+ return this.endOf(w) < I(V);
4012
+ }, P.$g = function(V, w, N) {
4013
+ return O.u(V) ? this[w] : this.set(N, V);
4014
+ }, P.unix = function() {
4015
4015
  return Math.floor(this.valueOf() / 1e3);
4016
- }, R.valueOf = function() {
4016
+ }, P.valueOf = function() {
4017
4017
  return this.$d.getTime();
4018
- }, R.startOf = function(D, V) {
4019
- var P = this, B = !!O.u(V) || V, x = O.p(D), G = function(ge, te) {
4020
- var L = O.w(P.$u ? Date.UTC(P.$y, te, ge) : new Date(P.$y, te, ge), P);
4018
+ }, P.startOf = function(V, w) {
4019
+ var N = this, B = !!O.u(w) || w, x = O.p(V), G = function(ge, te) {
4020
+ var L = O.w(N.$u ? Date.UTC(N.$y, te, ge) : new Date(N.$y, te, ge), N);
4021
4021
  return B ? L : L.endOf(u);
4022
4022
  }, Y = function(ge, te) {
4023
- return O.w(P.toDate()[ge].apply(P.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), P);
4023
+ return O.w(N.toDate()[ge].apply(N.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), N);
4024
4024
  }, q = this.$W, Z = this.$M, ne = this.$D, oe = "set" + (this.$u ? "UTC" : "");
4025
4025
  switch (x) {
4026
4026
  case b:
@@ -4042,89 +4042,89 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4042
4042
  default:
4043
4043
  return this.clone();
4044
4044
  }
4045
- }, R.endOf = function(D) {
4046
- return this.startOf(D, !1);
4047
- }, R.$set = function(D, V) {
4048
- var P, B = O.p(D), x = "set" + (this.$u ? "UTC" : ""), G = (P = {}, P[u] = x + "Date", P[p] = x + "Date", P[g] = x + "Month", P[b] = x + "FullYear", P[l] = x + "Hours", P[s] = x + "Minutes", P[i] = x + "Seconds", P[o] = x + "Milliseconds", P)[B], Y = B === u ? this.$D + (V - this.$W) : V;
4045
+ }, P.endOf = function(V) {
4046
+ return this.startOf(V, !1);
4047
+ }, P.$set = function(V, w) {
4048
+ var N, B = O.p(V), x = "set" + (this.$u ? "UTC" : ""), G = (N = {}, N[u] = x + "Date", N[p] = x + "Date", N[g] = x + "Month", N[b] = x + "FullYear", N[l] = x + "Hours", N[s] = x + "Minutes", N[i] = x + "Seconds", N[o] = x + "Milliseconds", N)[B], Y = B === u ? this.$D + (w - this.$W) : w;
4049
4049
  if (B === g || B === b) {
4050
4050
  var q = this.clone().set(p, 1);
4051
4051
  q.$d[G](Y), q.init(), this.$d = q.set(p, Math.min(this.$D, q.daysInMonth())).$d;
4052
4052
  } else
4053
4053
  G && this.$d[G](Y);
4054
4054
  return this.init(), this;
4055
- }, R.set = function(D, V) {
4056
- return this.clone().$set(D, V);
4057
- }, R.get = function(D) {
4058
- return this[O.p(D)]();
4059
- }, R.add = function(D, V) {
4060
- var P, B = this;
4061
- D = Number(D);
4062
- var x = O.p(V), G = function(Z) {
4055
+ }, P.set = function(V, w) {
4056
+ return this.clone().$set(V, w);
4057
+ }, P.get = function(V) {
4058
+ return this[O.p(V)]();
4059
+ }, P.add = function(V, w) {
4060
+ var N, B = this;
4061
+ V = Number(V);
4062
+ var x = O.p(w), G = function(Z) {
4063
4063
  var ne = I(B);
4064
- return O.w(ne.date(ne.date() + Math.round(Z * D)), B);
4064
+ return O.w(ne.date(ne.date() + Math.round(Z * V)), B);
4065
4065
  };
4066
4066
  if (x === g)
4067
- return this.set(g, this.$M + D);
4067
+ return this.set(g, this.$M + V);
4068
4068
  if (x === b)
4069
- return this.set(b, this.$y + D);
4069
+ return this.set(b, this.$y + V);
4070
4070
  if (x === u)
4071
4071
  return G(1);
4072
4072
  if (x === c)
4073
4073
  return G(7);
4074
- var Y = (P = {}, P[s] = a, P[l] = n, P[i] = r, P)[x] || 1, q = this.$d.getTime() + D * Y;
4074
+ var Y = (N = {}, N[s] = a, N[l] = n, N[i] = r, N)[x] || 1, q = this.$d.getTime() + V * Y;
4075
4075
  return O.w(q, this);
4076
- }, R.subtract = function(D, V) {
4077
- return this.add(-1 * D, V);
4078
- }, R.format = function(D) {
4079
- var V = this, P = this.$locale();
4076
+ }, P.subtract = function(V, w) {
4077
+ return this.add(-1 * V, w);
4078
+ }, P.format = function(V) {
4079
+ var w = this, N = this.$locale();
4080
4080
  if (!this.isValid())
4081
- return P.invalidDate || _;
4082
- var B = D || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), G = this.$H, Y = this.$m, q = this.$M, Z = P.weekdays, ne = P.months, oe = function(te, L, K, H) {
4083
- return te && (te[L] || te(V, B)) || K[L].slice(0, H);
4081
+ return N.invalidDate || _;
4082
+ var B = V || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), G = this.$H, Y = this.$m, q = this.$M, Z = N.weekdays, ne = N.months, oe = function(te, L, K, H) {
4083
+ return te && (te[L] || te(w, B)) || K[L].slice(0, H);
4084
4084
  }, fe = function(te) {
4085
4085
  return O.s(G % 12 || 12, te, "0");
4086
- }, pe = P.meridiem || function(te, L, K) {
4086
+ }, pe = N.meridiem || function(te, L, K) {
4087
4087
  var H = te < 12 ? "AM" : "PM";
4088
4088
  return K ? H.toLowerCase() : H;
4089
- }, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: oe(P.monthsShort, q, ne, 3), MMMM: oe(ne, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: oe(P.weekdaysMin, this.$W, Z, 2), ddd: oe(P.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: fe(1), hh: fe(2), a: pe(G, Y, !0), A: pe(G, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4089
+ }, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: oe(N.monthsShort, q, ne, 3), MMMM: oe(ne, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: oe(N.weekdaysMin, this.$W, Z, 2), ddd: oe(N.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: fe(1), hh: fe(2), a: pe(G, Y, !0), A: pe(G, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4090
4090
  return B.replace(y, function(te, L) {
4091
4091
  return L || ge[te] || x.replace(":", "");
4092
4092
  });
4093
- }, R.utcOffset = function() {
4093
+ }, P.utcOffset = function() {
4094
4094
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4095
- }, R.diff = function(D, V, P) {
4096
- var B, x = O.p(V), G = I(D), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
4097
- return Z = (B = {}, B[b] = Z / 12, B[g] = Z, B[m] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q, P ? Z : O.a(Z);
4098
- }, R.daysInMonth = function() {
4095
+ }, P.diff = function(V, w, N) {
4096
+ var B, x = O.p(w), G = I(V), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
4097
+ return Z = (B = {}, B[b] = Z / 12, B[g] = Z, B[m] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q, N ? Z : O.a(Z);
4098
+ }, P.daysInMonth = function() {
4099
4099
  return this.endOf(g).$D;
4100
- }, R.$locale = function() {
4101
- return E[this.$L];
4102
- }, R.locale = function(D, V) {
4103
- if (!D)
4100
+ }, P.$locale = function() {
4101
+ return k[this.$L];
4102
+ }, P.locale = function(V, w) {
4103
+ if (!V)
4104
4104
  return this.$L;
4105
- var P = this.clone(), B = M(D, V, !0);
4106
- return B && (P.$L = B), P;
4107
- }, R.clone = function() {
4105
+ var N = this.clone(), B = M(V, w, !0);
4106
+ return B && (N.$L = B), N;
4107
+ }, P.clone = function() {
4108
4108
  return O.w(this.$d, this);
4109
- }, R.toDate = function() {
4109
+ }, P.toDate = function() {
4110
4110
  return new Date(this.valueOf());
4111
- }, R.toJSON = function() {
4111
+ }, P.toJSON = function() {
4112
4112
  return this.isValid() ? this.toISOString() : null;
4113
- }, R.toISOString = function() {
4113
+ }, P.toISOString = function() {
4114
4114
  return this.$d.toISOString();
4115
- }, R.toString = function() {
4115
+ }, P.toString = function() {
4116
4116
  return this.$d.toUTCString();
4117
- }, N;
4118
- }(), w = F.prototype;
4119
- return I.prototype = w, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", p]].forEach(function(N) {
4120
- w[N[1]] = function(R) {
4121
- return this.$g(R, N[0], N[1]);
4117
+ }, R;
4118
+ }(), D = F.prototype;
4119
+ return I.prototype = D, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", p]].forEach(function(R) {
4120
+ D[R[1]] = function(P) {
4121
+ return this.$g(P, R[0], R[1]);
4122
4122
  };
4123
- }), I.extend = function(N, R) {
4124
- return N.$i || (N(R, F, I), N.$i = !0), I;
4125
- }, I.locale = M, I.isDayjs = $, I.unix = function(N) {
4126
- return I(1e3 * N);
4127
- }, I.en = E[A], I.Ls = E, I.p = {}, I;
4123
+ }), I.extend = function(R, P) {
4124
+ return R.$i || (R(P, F, I), R.$i = !0), I;
4125
+ }, I.locale = M, I.isDayjs = $, I.unix = function(R) {
4126
+ return I(1e3 * R);
4127
+ }, I.en = k[A], I.Ls = k, I.p = {}, I;
4128
4128
  });
4129
4129
  })(dayjs_min);
4130
4130
  const dayjs = dayjs_min.exports;
@@ -4169,32 +4169,32 @@ function filesize(e, {
4169
4169
  roundingMethod: _ = ROUND,
4170
4170
  precision: v = 0
4171
4171
  } = {}) {
4172
- let y = p, C = Number(e), k = [], T = 0, A = EMPTY;
4172
+ let y = p, C = Number(e), E = [], T = 0, A = EMPTY;
4173
4173
  a === -1 && c.length === 0 ? (a = 10, c = JEDEC) : a === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, a = c === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, c = a === 10 || c === JEDEC ? JEDEC : IEC);
4174
- const E = a === 10 ? 1e3 : 1024, $ = m === !0, M = C < 0, I = Math[_];
4174
+ const k = a === 10 ? 1e3 : 1024, $ = m === !0, M = C < 0, I = Math[_];
4175
4175
  if (typeof e != "bigint" && isNaN(e))
4176
4176
  throw new TypeError(INVALID_NUMBER);
4177
4177
  if (typeof I !== FUNCTION)
4178
4178
  throw new TypeError(INVALID_ROUND);
4179
- if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4179
+ if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4180
4180
  return y;
4181
4181
  if (C === 0)
4182
- k[0] = 0, A = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4182
+ E[0] = 0, A = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4183
4183
  else {
4184
- T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
4184
+ T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= k && y < 8 && (T = T / k, y++));
4185
4185
  const O = Math.pow(10, y > 0 ? n : 0);
4186
- k[0] = I(T * O) / O, k[0] === E && y < 8 && p === -1 && (k[0] = 1, y++), A = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4186
+ E[0] = I(T * O) / O, E[0] === k && y < 8 && p === -1 && (E[0] = 1, y++), A = E[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4187
4187
  }
4188
- if (M && (k[0] = -k[0]), v > 0 && (k[0] = k[0].toPrecision(v)), k[1] = u[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
4189
- const O = s || PERIOD, F = k[0].toString().split(O), w = F[1] || EMPTY, N = w.length, R = n - N;
4190
- k[0] = `${F[0]}${O}${w.padEnd(N + R, ZERO)}`;
4188
+ if (M && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, i) : s.length > 0 && (E[0] = E[0].toString().replace(PERIOD, s)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4189
+ const O = s || PERIOD, F = E[0].toString().split(O), D = F[1] || EMPTY, R = D.length, P = n - R;
4190
+ E[0] = `${F[0]}${O}${D.padEnd(R + P, ZERO)}`;
4191
4191
  }
4192
- return $ && (k[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), g === ARRAY ? k : g === OBJECT ? {
4193
- value: k[0],
4194
- symbol: k[1],
4192
+ return $ && (E[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
4193
+ value: E[0],
4194
+ symbol: E[1],
4195
4195
  exponent: y,
4196
4196
  unit: A
4197
- } : k.join(l);
4197
+ } : E.join(l);
4198
4198
  }
4199
4199
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4200
4200
  const freeGlobal$1 = freeGlobal;
@@ -5376,8 +5376,8 @@ function equalObjects(e, t, r, a, n, o) {
5376
5376
  m = s[g];
5377
5377
  var y = e[m], C = t[m];
5378
5378
  if (a)
5379
- var k = i ? a(C, y, m, t, e, o) : a(y, C, m, e, t, o);
5380
- if (!(k === void 0 ? y === C || n(y, C, r, a, o) : k)) {
5379
+ var E = i ? a(C, y, m, t, e, o) : a(y, C, m, e, t, o);
5380
+ if (!(E === void 0 ? y === C || n(y, C, r, a, o) : E)) {
5381
5381
  _ = !1;
5382
5382
  break;
5383
5383
  }
@@ -6580,7 +6580,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6580
6580
  deep: !0
6581
6581
  };
6582
6582
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
6583
- u ? b = M : u == !1 && !E._hotUpdating && (Array.isArray(b) ? b.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6583
+ u ? b = M : u == !1 && !k._hotUpdating && (Array.isArray(b) ? b.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6584
6584
  });
6585
6585
  let u, c, g = markRaw([]), m = markRaw([]), b;
6586
6586
  const p = a.state.value[e];
@@ -6607,30 +6607,30 @@ function createSetupStore(e, t, r = {}, a, n) {
6607
6607
  function C() {
6608
6608
  o.stop(), g = [], m = [], a._s.delete(e);
6609
6609
  }
6610
- function k(M, I) {
6610
+ function E(M, I) {
6611
6611
  return function() {
6612
6612
  setActivePinia(a);
6613
- const O = Array.from(arguments), F = [], w = [];
6614
- function N(V) {
6615
- F.push(V);
6613
+ const O = Array.from(arguments), F = [], D = [];
6614
+ function R(w) {
6615
+ F.push(w);
6616
6616
  }
6617
- function R(V) {
6618
- w.push(V);
6617
+ function P(w) {
6618
+ D.push(w);
6619
6619
  }
6620
6620
  triggerSubscriptions(m, {
6621
6621
  args: O,
6622
6622
  name: M,
6623
- store: E,
6624
- after: N,
6625
- onError: R
6623
+ store: k,
6624
+ after: R,
6625
+ onError: P
6626
6626
  });
6627
- let D;
6627
+ let V;
6628
6628
  try {
6629
- D = I.apply(this && this.$id === e ? this : E, O);
6630
- } catch (V) {
6631
- throw triggerSubscriptions(w, V), V;
6629
+ V = I.apply(this && this.$id === e ? this : k, O);
6630
+ } catch (w) {
6631
+ throw triggerSubscriptions(D, w), w;
6632
6632
  }
6633
- return D instanceof Promise ? D.then((V) => (triggerSubscriptions(F, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions(F, D), D);
6633
+ return V instanceof Promise ? V.then((w) => (triggerSubscriptions(F, w), w)).catch((w) => (triggerSubscriptions(D, w), Promise.reject(w))) : (triggerSubscriptions(F, V), V);
6634
6634
  };
6635
6635
  }
6636
6636
  const T = /* @__PURE__ */ markRaw({
@@ -6645,36 +6645,36 @@ function createSetupStore(e, t, r = {}, a, n) {
6645
6645
  $patch: v,
6646
6646
  $reset: y,
6647
6647
  $subscribe(M, I = {}) {
6648
- const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (w) => {
6648
+ const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (D) => {
6649
6649
  (I.flush === "sync" ? c : u) && M({
6650
6650
  storeId: e,
6651
6651
  type: MutationType.direct,
6652
6652
  events: b
6653
- }, w);
6653
+ }, D);
6654
6654
  }, assign$1({}, l, I)));
6655
6655
  return O;
6656
6656
  },
6657
6657
  $dispose: C
6658
- }, E = reactive(assign$1(
6658
+ }, k = reactive(assign$1(
6659
6659
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6660
6660
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6661
6661
  _hmrPayload: T
6662
6662
  } : {},
6663
6663
  A
6664
6664
  ));
6665
- a._s.set(e, E);
6665
+ a._s.set(e, k);
6666
6666
  const $ = a._e.run(() => (o = effectScope(), o.run(() => t())));
6667
6667
  for (const M in $) {
6668
6668
  const I = $[M];
6669
6669
  if (isRef(I) && !isComputed(I) || isReactive(I))
6670
6670
  process.env.NODE_ENV !== "production" && n ? set(_.value, M, toRef($, M)) : i || (p && shouldHydrate(I) && (isRef(I) ? I.value = p[M] : mergeReactiveObjects(I, p[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && T.state.push(M);
6671
6671
  else if (typeof I == "function") {
6672
- const O = process.env.NODE_ENV !== "production" && n ? I : k(M, I);
6672
+ const O = process.env.NODE_ENV !== "production" && n ? I : E(M, I);
6673
6673
  $[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = I), s.actions[M] = I;
6674
6674
  } else
6675
6675
  process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[M] = i ? r.getters[M] : I, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
6676
6676
  }
6677
- if (assign$1(E, $), assign$1(toRaw(E), $), Object.defineProperty(E, "$state", {
6677
+ if (assign$1(k, $), assign$1(toRaw(k), $), Object.defineProperty(k, "$state", {
6678
6678
  get: () => process.env.NODE_ENV !== "production" && n ? _.value : a.state.value[e],
6679
6679
  set: (M) => {
6680
6680
  if (process.env.NODE_ENV !== "production" && n)
@@ -6684,31 +6684,31 @@ function createSetupStore(e, t, r = {}, a, n) {
6684
6684
  });
6685
6685
  }
6686
6686
  }), process.env.NODE_ENV !== "production") {
6687
- E._hotUpdate = markRaw((I) => {
6688
- E._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6689
- if (O in E.$state) {
6690
- const F = I.$state[O], w = E.$state[O];
6691
- typeof F == "object" && isPlainObject(F) && isPlainObject(w) ? patchObject(F, w) : I.$state[O] = w;
6687
+ k._hotUpdate = markRaw((I) => {
6688
+ k._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6689
+ if (O in k.$state) {
6690
+ const F = I.$state[O], D = k.$state[O];
6691
+ typeof F == "object" && isPlainObject(F) && isPlainObject(D) ? patchObject(F, D) : I.$state[O] = D;
6692
6692
  }
6693
- set(E, O, toRef(I.$state, O));
6694
- }), Object.keys(E.$state).forEach((O) => {
6695
- O in I.$state || del(E, O);
6693
+ set(k, O, toRef(I.$state, O));
6694
+ }), Object.keys(k.$state).forEach((O) => {
6695
+ O in I.$state || del(k, O);
6696
6696
  }), u = !1, c = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6697
6697
  u = !0;
6698
6698
  });
6699
6699
  for (const O in I._hmrPayload.actions) {
6700
6700
  const F = I[O];
6701
- set(E, O, k(O, F));
6701
+ set(k, O, E(O, F));
6702
6702
  }
6703
6703
  for (const O in I._hmrPayload.getters) {
6704
- const F = I._hmrPayload.getters[O], w = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
6705
- set(E, O, w);
6704
+ const F = I._hmrPayload.getters[O], D = i ? computed(() => (setActivePinia(a), F.call(k, k))) : F;
6705
+ set(k, O, D);
6706
6706
  }
6707
- Object.keys(E._hmrPayload.getters).forEach((O) => {
6708
- O in I._hmrPayload.getters || del(E, O);
6709
- }), Object.keys(E._hmrPayload.actions).forEach((O) => {
6710
- O in I._hmrPayload.actions || del(E, O);
6711
- }), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
6707
+ Object.keys(k._hmrPayload.getters).forEach((O) => {
6708
+ O in I._hmrPayload.getters || del(k, O);
6709
+ }), Object.keys(k._hmrPayload.actions).forEach((O) => {
6710
+ O in I._hmrPayload.actions || del(k, O);
6711
+ }), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
6712
6712
  });
6713
6713
  const M = {
6714
6714
  writable: !0,
@@ -6716,8 +6716,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6716
6716
  enumerable: !1
6717
6717
  };
6718
6718
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6719
- Object.defineProperty(E, I, {
6720
- value: E[I],
6719
+ Object.defineProperty(k, I, {
6720
+ value: k[I],
6721
6721
  ...M
6722
6722
  });
6723
6723
  });
@@ -6725,22 +6725,22 @@ function createSetupStore(e, t, r = {}, a, n) {
6725
6725
  return a._p.forEach((M) => {
6726
6726
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6727
6727
  const I = o.run(() => M({
6728
- store: E,
6728
+ store: k,
6729
6729
  app: a._a,
6730
6730
  pinia: a,
6731
6731
  options: s
6732
6732
  }));
6733
- Object.keys(I || {}).forEach((O) => E._customProperties.add(O)), assign$1(E, I);
6733
+ Object.keys(I || {}).forEach((O) => k._customProperties.add(O)), assign$1(k, I);
6734
6734
  } else
6735
- assign$1(E, o.run(() => M({
6736
- store: E,
6735
+ assign$1(k, o.run(() => M({
6736
+ store: k,
6737
6737
  app: a._a,
6738
6738
  pinia: a,
6739
6739
  options: s
6740
6740
  })));
6741
- }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6741
+ }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6742
6742
  state: () => new MyClass()
6743
- Found in store "${E.$id}".`), p && i && r.hydrate && r.hydrate(E.$state, p), u = !0, c = !0, E;
6743
+ Found in store "${k.$id}".`), p && i && r.hydrate && r.hydrate(k.$state, p), u = !0, c = !0, k;
6744
6744
  }
6745
6745
  function defineStore(e, t, r) {
6746
6746
  let a, n;
@@ -6991,7 +6991,7 @@ function useKgAppSelect() {
6991
6991
  };
6992
6992
  }
6993
6993
  const KgAppSelect$1 = "";
6994
- function _isSlot$9(e) {
6994
+ function _isSlot$a(e) {
6995
6995
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
6996
6996
  }
6997
6997
  const getProps$z = () => ({
@@ -7031,7 +7031,7 @@ const getProps$z = () => ({
7031
7031
  let o;
7032
7032
  return createVNode(SelectOption, {
7033
7033
  value: a
7034
- }, _isSlot$9(o = t.t(n)) ? o : {
7034
+ }, _isSlot$a(o = t.t(n)) ? o : {
7035
7035
  default: () => [o]
7036
7036
  });
7037
7037
  })]),
@@ -7349,9 +7349,9 @@ const KgModal_Close = "", getProps$y = () => ({
7349
7349
  function _(C) {
7350
7350
  C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = v(document.documentElement, "mousemove", b), l = v(document.documentElement, "mouseup", p));
7351
7351
  }
7352
- function v(C, k, T) {
7353
- return C.addEventListener(k, T), {
7354
- remove: () => C.removeEventListener(k, T)
7352
+ function v(C, E, T) {
7353
+ return C.addEventListener(E, T), {
7354
+ remove: () => C.removeEventListener(E, T)
7355
7355
  };
7356
7356
  }
7357
7357
  function y(C) {
@@ -8548,12 +8548,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8548
8548
  varProfile: v,
8549
8549
  varProfileConfig: y,
8550
8550
  varGrid: C,
8551
- varGridConfig: k
8551
+ varGridConfig: E
8552
8552
  } = await GetAll({ params: { frm_id: e } });
8553
8553
  this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(p)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(_)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8554
8554
  varProfile: v != null ? v : null,
8555
8555
  currentVarProfileMasterID: (a = (r = (t = v == null ? void 0 : v.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8556
- }), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
8556
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8557
8557
  varGrid: transformVarGridDTO(C),
8558
8558
  currentVarGridMasterID: (i = (o = (n = C == null ? void 0 : C.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
8559
8559
  }), this.emit(e, "ready");
@@ -8706,10 +8706,10 @@ function useKgVar(e, t, r = 0) {
8706
8706
  const l = (G) => computed(() => {
8707
8707
  var Y, q, Z;
8708
8708
  return (Z = (q = (Y = s.getVarCatalog(i, G)) == null ? void 0 : Y.var_text) != null ? q : G) != null ? Z : "";
8709
- }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), m = computed(() => s.isCreating(i)), b = computed(() => s.isCreatingRequesting(i)), p = computed(() => s.isUpdating(i)), _ = computed(() => s.isUpdatingRequesting(i)), v = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), k = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), A = computed(() => s.getVarButtons(i)), E = computed(() => s.getVarButtonSearch(i)), $ = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), I = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), F = computed(() => s.getVarProfileMasters(i)), w = computed(() => s.getCurrentVarProfileMaster(i)), N = computed(() => s.getCurrentVarProfileMasterID(i)), R = computed(() => {
8709
+ }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), m = computed(() => s.isCreating(i)), b = computed(() => s.isCreatingRequesting(i)), p = computed(() => s.isUpdating(i)), _ = computed(() => s.isUpdatingRequesting(i)), v = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), A = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), $ = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), I = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), F = computed(() => s.getVarProfileMasters(i)), D = computed(() => s.getCurrentVarProfileMaster(i)), R = computed(() => s.getCurrentVarProfileMasterID(i)), P = computed(() => {
8710
8710
  var G, Y;
8711
- return (Y = (G = w.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
8712
- }), D = computed(() => s.getVarGridConfig(i)), V = computed(() => s.getVarGridMasters(i)), P = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
8711
+ return (Y = (G = D.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
8712
+ }), V = computed(() => s.getVarGridConfig(i)), w = computed(() => s.getVarGridMasters(i)), N = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
8713
8713
  return {
8714
8714
  formID: i,
8715
8715
  store: s,
@@ -8723,21 +8723,21 @@ function useKgVar(e, t, r = 0) {
8723
8723
  isCopying: v,
8724
8724
  isCopyingRequesting: y,
8725
8725
  isDeleting: C,
8726
- isDeletingRequesting: k,
8726
+ isDeletingRequesting: E,
8727
8727
  isOtherRequesting: T,
8728
8728
  varButtons: A,
8729
- varButtonSearch: E,
8729
+ varButtonSearch: k,
8730
8730
  varButtonCreate: $,
8731
8731
  varButtonUpdate: M,
8732
8732
  varButtonCopy: I,
8733
8733
  varButtonDelete: O,
8734
8734
  varProfileMasters: F,
8735
- currentVarProfileMaster: w,
8736
- currentVarProfileMasterID: N,
8737
- currentVarProfileDetails: R,
8738
- varGridConfig: D,
8739
- varGridMasters: V,
8740
- currentVarGridMaster: P,
8735
+ currentVarProfileMaster: D,
8736
+ currentVarProfileMasterID: R,
8737
+ currentVarProfileDetails: P,
8738
+ varGridConfig: V,
8739
+ varGridMasters: w,
8740
+ currentVarGridMaster: N,
8741
8741
  systemVarGridDetails: B,
8742
8742
  currentVarGridDetails: x,
8743
8743
  t: l,
@@ -8866,13 +8866,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
8866
8866
  r("update:visible", !1);
8867
8867
  }
8868
8868
  function b() {
8869
- var p, _, v, y, C, k, T;
8869
+ var p, _, v, y, C, E, T;
8870
8870
  if (c.value) {
8871
- const A = (_ = (p = l.selectedRows) == null ? void 0 : p.value) != null ? _ : [], E = (v = A.map(($) => $[g.value])) != null ? v : [];
8872
- (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8871
+ const A = (_ = (p = l.selectedRows) == null ? void 0 : p.value) != null ? _ : [], k = (v = A.map(($) => $[g.value])) != null ? v : [];
8872
+ (!s || s(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
8873
8873
  } else {
8874
- const A = (k = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? k : null, E = (T = A == null ? void 0 : A[g.value]) != null ? T : "";
8875
- (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8874
+ const A = (E = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? E : null, k = (T = A == null ? void 0 : A[g.value]) != null ? T : "";
8875
+ (!s || s(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
8876
8876
  }
8877
8877
  }
8878
8878
  return () => {
@@ -8985,7 +8985,7 @@ function _useServices$2(e) {
8985
8985
  transformDatas: o
8986
8986
  };
8987
8987
  }
8988
- function _isSlot$8(e) {
8988
+ function _isSlot$9(e) {
8989
8989
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8990
8990
  }
8991
8991
  const KgFormItemCheckboxGroup = defineComponent({
@@ -8999,8 +8999,8 @@ const KgFormItemCheckboxGroup = defineComponent({
8999
8999
  const a = useKg(), n = useKgVar(), o = inject(DI_FORM_REF, ref(null)), i = inject(DI_FORM_MODEL, computed(() => ({}))), {
9000
9000
  transformDatas: s
9001
9001
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), m = computed(() => n.store.getVarVariableConfig(n.formID, e.kgVarName)), b = computed(() => {
9002
- var k;
9003
- let C = KgVarUtil.parseCommandParameter((k = g.value) == null ? void 0 : k.cmd_prm);
9002
+ var E;
9003
+ let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
9004
9004
  return C = mapValues(C, (T) => {
9005
9005
  if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
9006
9006
  const A = T.slice(1, -1);
@@ -9018,21 +9018,21 @@ const KgFormItemCheckboxGroup = defineComponent({
9018
9018
  (C = g.value) != null && C.id && _();
9019
9019
  }, {
9020
9020
  immediate: !0
9021
- }), watch([() => e.value, c], ([C, k]) => {
9022
- var A, E;
9021
+ }), watch([() => e.value, c], ([C, E]) => {
9022
+ var A, k;
9023
9023
  const T = get(C, "length", 0);
9024
- if (T > 0 && k.length > 0) {
9025
- const $ = (E = (A = g.value) == null ? void 0 : A.val_clm) != null ? E : "", M = intersection$1(C, k == null ? void 0 : k.map((I) => I[$]));
9024
+ if (T > 0 && E.length > 0) {
9025
+ const $ = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", M = intersection$1(C, E == null ? void 0 : E.map((I) => I[$]));
9026
9026
  if (M.length < T) {
9027
9027
  r("update:value", M);
9028
9028
  return;
9029
9029
  }
9030
9030
  }
9031
9031
  switch (!0) {
9032
- case (T > 0 && T === k.length):
9032
+ case (T > 0 && T === E.length):
9033
9033
  l.value = !0, u.value = !1;
9034
9034
  break;
9035
- case (T > 0 && T !== k.length):
9035
+ case (T > 0 && T !== E.length):
9036
9036
  l.value = !1, u.value = !0;
9037
9037
  break;
9038
9038
  default:
@@ -9043,8 +9043,8 @@ const KgFormItemCheckboxGroup = defineComponent({
9043
9043
  immediate: !0
9044
9044
  });
9045
9045
  async function _() {
9046
- var $, M, I, O, F, w, N, R, D;
9047
- const C = ($ = g.value) == null ? void 0 : $.cmd, k = (I = (M = g.value) == null ? void 0 : M.cmd_method) != null ? I : "GET", T = (F = (O = g.value) == null ? void 0 : O.val_clm) != null ? F : "", A = (N = (w = g.value) == null ? void 0 : w.lbl_clm) != null ? N : "";
9046
+ var $, M, I, O, F, D, R, P, V;
9047
+ const C = ($ = g.value) == null ? void 0 : $.cmd, E = (I = (M = g.value) == null ? void 0 : M.cmd_method) != null ? I : "GET", T = (F = (O = g.value) == null ? void 0 : O.val_clm) != null ? F : "", A = (R = (D = g.value) == null ? void 0 : D.lbl_clm) != null ? R : "";
9048
9048
  if (!C || !T || !A) {
9049
9049
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9050
9050
  frm_id: n.formID,
@@ -9055,52 +9055,52 @@ const KgFormItemCheckboxGroup = defineComponent({
9055
9055
  });
9056
9056
  return;
9057
9057
  }
9058
- let E = null;
9058
+ let k = null;
9059
9059
  try {
9060
- E = await ((R = httpClient()) == null ? void 0 : R.request({
9060
+ k = await ((P = httpClient()) == null ? void 0 : P.request({
9061
9061
  url: C,
9062
- method: k,
9062
+ method: E,
9063
9063
  params: b.value,
9064
9064
  data: b.value
9065
9065
  }));
9066
9066
  } catch {
9067
9067
  }
9068
- if (!isObjectLike(E))
9068
+ if (!isObjectLike(k))
9069
9069
  c.value = [];
9070
9070
  else
9071
9071
  switch (!0) {
9072
- case isArrayLike(E):
9073
- c.value = s(E);
9072
+ case isArrayLike(k):
9073
+ c.value = s(k);
9074
9074
  break;
9075
- case (E && "total" in E && "records" in E):
9076
- c.value = s(E.records);
9075
+ case (k && "total" in k && "records" in k):
9076
+ c.value = s(k.records);
9077
9077
  break;
9078
9078
  }
9079
9079
  if (c.value.length > 0) {
9080
- const V = c.value[0];
9081
- (!(T in V) || !(A in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9080
+ const w = c.value[0];
9081
+ (!(T in w) || !(A in w)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9082
9082
  frm_id: n.formID,
9083
9083
  var_nam: e.kgVarName,
9084
9084
  cmd: C,
9085
9085
  val_clm: T,
9086
9086
  lbl_clm: A,
9087
- \u6240\u6709\u5217: Object.keys(V)
9087
+ \u6240\u6709\u5217: Object.keys(w)
9088
9088
  });
9089
9089
  }
9090
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((D = c.value) == null ? void 0 : D.map((V) => V[T]), e.value));
9090
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((V = c.value) == null ? void 0 : V.map((w) => w[T]), e.value));
9091
9091
  }
9092
9092
  function v(C) {
9093
- var k, T, A;
9094
- C.target.checked ? y((T = (k = c.value) == null ? void 0 : k.map((E) => {
9093
+ var E, T, A;
9094
+ C.target.checked ? y((T = (E = c.value) == null ? void 0 : E.map((k) => {
9095
9095
  var $, M;
9096
- return E[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
9096
+ return k[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
9097
9097
  })) != null ? T : []) : y([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
9098
9098
  }
9099
9099
  function y(C) {
9100
9100
  r("update:value", C), r("kgChange", C);
9101
9101
  }
9102
9102
  return () => {
9103
- let C, k;
9103
+ let C, E;
9104
9104
  return createVNode("div", {
9105
9105
  class: "kg-form-item-checkbox-group"
9106
9106
  }, [createVNode(Form.ItemRest, null, {
@@ -9109,7 +9109,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9109
9109
  "onUpdate:checked": (T) => l.value = T,
9110
9110
  indeterminate: u.value,
9111
9111
  onChange: v
9112
- }, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
9112
+ }, _isSlot$9(C = a.t("kg.selectAll")) ? C : {
9113
9113
  default: () => [C]
9114
9114
  })]
9115
9115
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
@@ -9118,10 +9118,10 @@ const KgFormItemCheckboxGroup = defineComponent({
9118
9118
  }, {
9119
9119
  default: () => [createVNode(Row, {
9120
9120
  gutter: 12
9121
- }, _isSlot$8(k = c.value.map((T) => {
9122
- var A, E;
9121
+ }, _isSlot$9(E = c.value.map((T) => {
9122
+ var A, k;
9123
9123
  return createVNode(Col, {
9124
- span: (E = (A = p.value) == null ? void 0 : A.span) != null ? E : 24
9124
+ span: (k = (A = p.value) == null ? void 0 : A.span) != null ? k : 24
9125
9125
  }, {
9126
9126
  default: () => {
9127
9127
  var $, M, I, O;
@@ -9130,14 +9130,14 @@ const KgFormItemCheckboxGroup = defineComponent({
9130
9130
  "kg-value": T[(O = (I = g.value) == null ? void 0 : I.val_clm) != null ? O : ""]
9131
9131
  }, {
9132
9132
  default: () => {
9133
- var F, w;
9134
- return [T[(w = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? w : ""]];
9133
+ var F, D;
9134
+ return [T[(D = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? D : ""]];
9135
9135
  }
9136
9136
  })];
9137
9137
  }
9138
9138
  });
9139
- })) ? k : {
9140
- default: () => [k]
9139
+ })) ? E : {
9140
+ default: () => [E]
9141
9141
  })]
9142
9142
  })]);
9143
9143
  };
@@ -9304,12 +9304,12 @@ const KgFormItemSelect = defineComponent({
9304
9304
  var v, y;
9305
9305
  let _ = p;
9306
9306
  if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
9307
- let C = p.slice(1, -1), k = "";
9307
+ let C = p.slice(1, -1), E = "";
9308
9308
  if (C.includes(".")) {
9309
9309
  const T = C.split(".");
9310
- C = T[0], k = T[1];
9310
+ C = T[0], E = T[1];
9311
9311
  }
9312
- n.value && C in n.value && (k ? _ = (y = (v = n.value[`${C}_obj`]) == null ? void 0 : v[k]) != null ? y : void 0 : _ = n.value[C], _ || (_ = "__KG__FORM_ITEM_SELECT__PID"));
9312
+ n.value && C in n.value && (E ? _ = (y = (v = n.value[`${C}_obj`]) == null ? void 0 : v[E]) != null ? y : void 0 : _ = n.value[C], _ || (_ = "__KG__FORM_ITEM_SELECT__PID"));
9313
9313
  }
9314
9314
  return _;
9315
9315
  }), m;
@@ -9321,8 +9321,8 @@ const KgFormItemSelect = defineComponent({
9321
9321
  immediate: !0
9322
9322
  });
9323
9323
  async function u() {
9324
- var y, C, k, T, A, E, $, M;
9325
- const m = (y = s.value) == null ? void 0 : y.cmd, b = (k = (C = s.value) == null ? void 0 : C.cmd_method) != null ? k : "GET", p = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", _ = ($ = (E = s.value) == null ? void 0 : E.lbl_clm) != null ? $ : "";
9324
+ var y, C, E, T, A, k, $, M;
9325
+ const m = (y = s.value) == null ? void 0 : y.cmd, b = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", p = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", _ = ($ = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? $ : "";
9326
9326
  if (!m || !p || !_) {
9327
9327
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9328
9328
  frm_id: a.formID,
@@ -9395,10 +9395,10 @@ const KgFormItemSelect = defineComponent({
9395
9395
  "kg-lbl-clm": (p = s.value) == null ? void 0 : p.lbl_clm
9396
9396
  }, {
9397
9397
  default: () => i.value.map((_) => {
9398
- var v, y, C, k;
9398
+ var v, y, C, E;
9399
9399
  return createVNode(Select.Option, {
9400
9400
  "kg-value": _[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""],
9401
- value: _[(k = (C = s.value) == null ? void 0 : C.val_clm) != null ? k : ""]
9401
+ value: _[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9402
9402
  }, {
9403
9403
  default: () => {
9404
9404
  var T, A;
@@ -9499,7 +9499,7 @@ const KgFormItem = defineComponent({
9499
9499
  const a = useKgVar(), n = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), s = computed(() => a.store.getVarVariableConfig(a.formID, e.kgVarName)), l = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
9500
9500
  rules: c
9501
9501
  } = _useRules(e), g = computed(() => {
9502
- var I, O, F, w, N;
9502
+ var I, O, F, D, R;
9503
9503
  if (a.isRetrievingVar.value)
9504
9504
  return !0;
9505
9505
  let M = !1;
@@ -9519,17 +9519,17 @@ const KgFormItem = defineComponent({
9519
9519
  M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9520
9520
  break;
9521
9521
  case a.isCopying.value:
9522
- M = ((w = u.value) == null ? void 0 : w.cpy_ena_flg) === 0;
9522
+ M = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
9523
9523
  break;
9524
9524
  case a.isDeleting.value:
9525
- M = ((N = u.value) == null ? void 0 : N.del_ena_flg) === 0;
9525
+ M = ((R = u.value) == null ? void 0 : R.del_ena_flg) === 0;
9526
9526
  break;
9527
9527
  }
9528
9528
  break;
9529
9529
  }
9530
9530
  return M;
9531
9531
  }), m = computed(() => {
9532
- var I, O, F, w;
9532
+ var I, O, F, D;
9533
9533
  let M = " ";
9534
9534
  if (e.kgPlaceholder)
9535
9535
  M = e.kgPlaceholder;
@@ -9539,12 +9539,12 @@ const KgFormItem = defineComponent({
9539
9539
  M = a.t((O = (I = l.value) == null ? void 0 : I.placeholder) != null ? O : " ").value;
9540
9540
  break;
9541
9541
  case KG_FORM_CONTEXT.SUBMIT:
9542
- M = a.t((w = (F = u.value) == null ? void 0 : F.placeholder) != null ? w : " ").value;
9542
+ M = a.t((D = (F = u.value) == null ? void 0 : F.placeholder) != null ? D : " ").value;
9543
9543
  break;
9544
9544
  }
9545
9545
  return M;
9546
9546
  }), b = computed(() => {
9547
- var I, O, F, w, N, R, D, V, P, B;
9547
+ var I, O, F, D, R, P, V, w, N, B;
9548
9548
  let M = 6;
9549
9549
  if (e.kgSpan !== void 0)
9550
9550
  M = e.kgSpan;
@@ -9556,33 +9556,33 @@ const KgFormItem = defineComponent({
9556
9556
  case KG_FORM_CONTEXT.SUBMIT:
9557
9557
  switch (!0) {
9558
9558
  case a.isCreating.value:
9559
- M = (w = (F = u.value) == null ? void 0 : F.crt_width) != null ? w : 6;
9559
+ M = (D = (F = u.value) == null ? void 0 : F.crt_width) != null ? D : 6;
9560
9560
  break;
9561
9561
  case a.isUpdating.value:
9562
- M = (R = (N = u.value) == null ? void 0 : N.upt_width) != null ? R : 6;
9562
+ M = (P = (R = u.value) == null ? void 0 : R.upt_width) != null ? P : 6;
9563
9563
  break;
9564
9564
  case a.isCopying.value:
9565
- M = (V = (D = u.value) == null ? void 0 : D.cpy_width) != null ? V : 6;
9565
+ M = (w = (V = u.value) == null ? void 0 : V.cpy_width) != null ? w : 6;
9566
9566
  break;
9567
9567
  case a.isDeleting.value:
9568
- M = (B = (P = u.value) == null ? void 0 : P.del_width) != null ? B : 6;
9568
+ M = (B = (N = u.value) == null ? void 0 : N.del_width) != null ? B : 6;
9569
9569
  break;
9570
9570
  }
9571
9571
  }
9572
9572
  return Math.min(24, Math.max(1, M));
9573
9573
  }), p = computed(() => {
9574
- var F, w;
9575
- const M = get(k.value, "$el.parentElement");
9574
+ var F, D;
9575
+ const M = get(E.value, "$el.parentElement");
9576
9576
  if (M && !((F = M.classList) != null && F.contains("ant-row")))
9577
9577
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9578
9578
  let I = {};
9579
- const O = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
9579
+ const O = Math.abs(Number.parseInt((D = get(E.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
9580
9580
  return Number.isNaN(O) || (I = {
9581
9581
  paddingLeft: `${O}px !important`,
9582
9582
  paddingRight: `${O}px !important`
9583
9583
  }), I;
9584
9584
  }), _ = computed(() => {
9585
- var I, O, F, w;
9585
+ var I, O, F, D;
9586
9586
  let M = "kg-form-item";
9587
9587
  switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
9588
9588
  case KG_FORM_CONTEXT.SEARCH:
@@ -9596,7 +9596,7 @@ const KgFormItem = defineComponent({
9596
9596
  switch (!0) {
9597
9597
  case (a.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
9598
9598
  case (a.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9599
- case (a.isCopying.value && ((w = u.value) == null ? void 0 : w.cpy_vis_flg) === 0):
9599
+ case (a.isCopying.value && ((D = u.value) == null ? void 0 : D.cpy_vis_flg) === 0):
9600
9600
  M += " kg-form-item--invisible";
9601
9601
  break;
9602
9602
  }
@@ -9637,8 +9637,8 @@ const KgFormItem = defineComponent({
9637
9637
  }
9638
9638
  return M;
9639
9639
  }), y = computed(() => {
9640
- var R, D, V, P, B, x;
9641
- const M = (R = s.value) == null ? void 0 : R.ctrl_typ, I = (D = s.value) == null ? void 0 : D.prf_ctrl_typ, O = (V = s.value) == null ? void 0 : V.crt_ctrl_typ, F = (P = s.value) == null ? void 0 : P.upt_ctrl_typ, w = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, N = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
9640
+ var P, V, w, N, B, x;
9641
+ const M = (P = s.value) == null ? void 0 : P.ctrl_typ, I = (V = s.value) == null ? void 0 : V.prf_ctrl_typ, O = (w = s.value) == null ? void 0 : w.crt_ctrl_typ, F = (N = s.value) == null ? void 0 : N.upt_ctrl_typ, D = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, R = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
9642
9642
  switch (e.kgContext) {
9643
9643
  case KG_FORM_CONTEXT.SEARCH:
9644
9644
  return I || M;
@@ -9649,13 +9649,13 @@ const KgFormItem = defineComponent({
9649
9649
  case a.isUpdating.value:
9650
9650
  return F || M;
9651
9651
  case a.isCopying.value:
9652
- return w || M;
9652
+ return D || M;
9653
9653
  case a.isDeleting.value:
9654
- return N || M;
9654
+ return R || M;
9655
9655
  }
9656
9656
  }
9657
9657
  return M;
9658
- }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), k = ref(null);
9658
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), E = ref(null);
9659
9659
  function T(M, I) {
9660
9660
  var O;
9661
9661
  n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", I), (O = o.value) == null || O.validate([e.kgVarName]);
@@ -9701,7 +9701,7 @@ const KgFormItem = defineComponent({
9701
9701
  return createVNode(KgFormItemInput, v.value, null);
9702
9702
  }
9703
9703
  }
9704
- function E() {
9704
+ function k() {
9705
9705
  return e.kgShowLabel ? createVNode("span", {
9706
9706
  title: a.t(e.kgVarName).value
9707
9707
  }, [a.t(e.kgVarName).value]) : null;
@@ -9719,7 +9719,7 @@ const KgFormItem = defineComponent({
9719
9719
  return () => {
9720
9720
  var M, I;
9721
9721
  return createVNode(Col, {
9722
- ref: k,
9722
+ ref: E,
9723
9723
  "kg-frm-id": a.formID,
9724
9724
  "kg-var-nam": e.kgVarName,
9725
9725
  "kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
@@ -9735,7 +9735,7 @@ const KgFormItem = defineComponent({
9735
9735
  htmlFor: C.value
9736
9736
  }, {
9737
9737
  default: () => createVNode(Fragment, null, [A(), $()]),
9738
- label: () => E()
9738
+ label: () => k()
9739
9739
  })]
9740
9740
  });
9741
9741
  };
@@ -9982,14 +9982,14 @@ function useKgSubmit(e) {
9982
9982
  };
9983
9983
  }
9984
9984
  const c = computed(() => {
9985
- var E, $, M, I, O;
9985
+ var k, $, M, I, O;
9986
9986
  let p = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9987
- const _ = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, v = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (E = a.value) == null ? void 0 : E.display_type, C = ($ = a.value) == null ? void 0 : $.crt_display_type, k = (M = a.value) == null ? void 0 : M.upt_display_type, T = (I = a.value) == null ? void 0 : I.cpy_display_type, A = (O = a.value) == null ? void 0 : O.del_display_type;
9987
+ const _ = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, v = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (k = a.value) == null ? void 0 : k.display_type, C = ($ = a.value) == null ? void 0 : $.crt_display_type, E = (M = a.value) == null ? void 0 : M.upt_display_type, T = (I = a.value) == null ? void 0 : I.cpy_display_type, A = (O = a.value) == null ? void 0 : O.del_display_type;
9988
9988
  switch (!0) {
9989
9989
  case (t.isCreating.value && (C === _ || !C && y === _)):
9990
9990
  p = _;
9991
9991
  break;
9992
- case (t.isUpdating.value && (k === _ || !k && y === _)):
9992
+ case (t.isUpdating.value && (E === _ || !E && y === _)):
9993
9993
  p = _;
9994
9994
  break;
9995
9995
  case (t.isCopying.value && (T === _ || !T && y === _)):
@@ -10003,7 +10003,7 @@ function useKgSubmit(e) {
10003
10003
  case (t.isCreating.value && (C === v || !C && y === v)):
10004
10004
  p = v;
10005
10005
  break;
10006
- case (t.isUpdating.value && (k === v || !k && y === v)):
10006
+ case (t.isUpdating.value && (E === v || !E && y === v)):
10007
10007
  p = v;
10008
10008
  break;
10009
10009
  case (t.isCopying.value && (T === v || !T && y === v)):
@@ -10053,8 +10053,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10053
10053
  }) => {
10054
10054
  const c = o.store.getVarSubmitConfig(o.formID);
10055
10055
  return s = watch(u, (g) => {
10056
- var m, b, p, _, v, y, C, k, T, A, E, $;
10057
- g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 1, g.fullscreen_flg = (p = c == null ? void 0 : c.fullscreen_flg) != null ? p : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (k = c == null ? void 0 : c.dft_width) != null ? k : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = ($ = c == null ? void 0 : c.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10056
+ var m, b, p, _, v, y, C, E, T, A, k, $;
10057
+ g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 1, g.fullscreen_flg = (p = c == null ? void 0 : c.fullscreen_flg) != null ? p : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = ($ = c == null ? void 0 : c.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10058
10058
  }, {
10059
10059
  immediate: !0
10060
10060
  }), !1;
@@ -10154,7 +10154,7 @@ function _useFormModel$1() {
10154
10154
  if (u.value = {}, c != null && c.length) {
10155
10155
  const g = r.selectedRow.value;
10156
10156
  c.forEach((m) => {
10157
- var p, _, v, y, C, k, T, A;
10157
+ var p, _, v, y, C, E, T, A;
10158
10158
  const b = (p = m.var_nam) != null ? p : "";
10159
10159
  switch (u.value[b] = void 0, !0) {
10160
10160
  case t.isCreating.value:
@@ -10164,7 +10164,7 @@ function _useFormModel$1() {
10164
10164
  u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (y = (v = m.upt_dft_val) != null ? v : g == null ? void 0 : g[b]) != null ? y : void 0);
10165
10165
  break;
10166
10166
  case t.isCopying.value:
10167
- u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (k = (C = m.cpy_dft_val) != null ? C : g == null ? void 0 : g[b]) != null ? k : void 0);
10167
+ u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (E = (C = m.cpy_dft_val) != null ? C : g == null ? void 0 : g[b]) != null ? E : void 0);
10168
10168
  break;
10169
10169
  case t.isDeleting.value:
10170
10170
  u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (A = (T = m.del_dft_val) != null ? T : g == null ? void 0 : g[b]) != null ? A : void 0);
@@ -10299,7 +10299,7 @@ function _useDefaultWidth() {
10299
10299
  };
10300
10300
  }
10301
10301
  const KgSubmit$1 = "";
10302
- function _isSlot$7(e) {
10302
+ function _isSlot$8(e) {
10303
10303
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10304
10304
  }
10305
10305
  const getProps$n = () => ({
@@ -10318,13 +10318,13 @@ const getProps$n = () => ({
10318
10318
  o.onSubmitSave(async () => (await K(), !1)), o.onSubmitCancel(async () => (await L(), !1));
10319
10319
  const u = inject(DI_KG_VAR__KG_SLOTS, null);
10320
10320
  _useFormModel$1(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
10321
- const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), p = computed(() => n.store.getVarButtonDelete(n.formID)), _ = computed(() => s.store.isLoading(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), $ = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10321
+ const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), p = computed(() => n.store.getVarButtonDelete(n.formID)), _ = computed(() => s.store.isLoading(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), $ = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10322
10322
  var U, z, Q;
10323
10323
  switch (!0) {
10324
10324
  case n.isCreating.value:
10325
10325
  return (U = y.value) != null ? U : [];
10326
10326
  case n.isUpdating.value:
10327
- return (z = k.value) != null ? z : [];
10327
+ return (z = E.value) != null ? z : [];
10328
10328
  case n.isCopying.value:
10329
10329
  return (Q = A.value) != null ? Q : [];
10330
10330
  case n.isDeleting.value:
@@ -10339,25 +10339,25 @@ const getProps$n = () => ({
10339
10339
  case n.isUpdating.value:
10340
10340
  return (z = T.value) != null ? z : [];
10341
10341
  case n.isCopying.value:
10342
- return (Q = E.value) != null ? Q : [];
10342
+ return (Q = k.value) != null ? Q : [];
10343
10343
  case n.isDeleting.value:
10344
10344
  return (re = $.value) != null ? re : [];
10345
10345
  }
10346
10346
  return [];
10347
- }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), F = computed(() => O.value || _.value), w = computed(() => _.value), N = ref({
10347
+ }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), F = computed(() => O.value || _.value), D = computed(() => _.value), R = ref({
10348
10348
  kgWidth: 0
10349
- }), R = computed(() => {
10349
+ }), P = computed(() => {
10350
10350
  var U;
10351
10351
  return !!(c.value || q.isFullscreen || ((U = v.value) == null ? void 0 : U.resizable_flg) === 0);
10352
- }), D = computed(() => {
10352
+ }), V = computed(() => {
10353
10353
  var U, z;
10354
10354
  return c.value ? 398 : (z = (U = v.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
10355
- }), V = computed(() => {
10355
+ }), w = computed(() => {
10356
10356
  var U, z;
10357
10357
  return c.value ? 398 : (z = (U = v.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
10358
- }), P = computed(() => c.value ? 398 : N.value.kgWidth), B = ref(null);
10358
+ }), N = computed(() => c.value ? 398 : R.value.kgWidth), B = ref(null);
10359
10359
  _useResizeObserver$1(B);
10360
- const x = _useTitle(), G = computed(() => c.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), Y = computed(() => G.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
10360
+ const x = _useTitle(), G = computed(() => c.value ? 400 : R.value.kgWidth && R.value.kgWidth > 0 ? R.value.kgWidth + 2 : 0), Y = computed(() => G.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
10361
10361
  isFullscreen: !1
10362
10362
  }), {
10363
10363
  getClass: Z
@@ -10405,7 +10405,7 @@ const getProps$n = () => ({
10405
10405
  }, {
10406
10406
  immediate: !0
10407
10407
  }), watch(oe, (U) => {
10408
- U && (N.value.kgWidth = U);
10408
+ U && (R.value.kgWidth = U);
10409
10409
  }, {
10410
10410
  immediate: !0
10411
10411
  });
@@ -10426,7 +10426,7 @@ const getProps$n = () => ({
10426
10426
  ((z = v.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10427
10427
  }
10428
10428
  function te() {
10429
- N.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10429
+ R.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10430
10430
  }
10431
10431
  function L() {
10432
10432
  switch (!0) {
@@ -10679,11 +10679,11 @@ const getProps$n = () => ({
10679
10679
  let U, z;
10680
10680
  return createVNode(KgResizable, {
10681
10681
  kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10682
- kgMinWidth: D.value,
10683
- kgMaxWidth: V.value,
10684
- kgWidth: P.value,
10685
- kgDisabled: R.value,
10686
- "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10682
+ kgMinWidth: V.value,
10683
+ kgMaxWidth: w.value,
10684
+ kgWidth: N.value,
10685
+ kgDisabled: P.value,
10686
+ "onUpdate:kgWidth": (Q) => R.value.kgWidth = Q
10687
10687
  }, {
10688
10688
  default: () => [createVNode(Spin, {
10689
10689
  spinning: _.value
@@ -10699,11 +10699,11 @@ const getProps$n = () => ({
10699
10699
  ref: B
10700
10700
  }, [M.value.length > 0 && createVNode(Row, {
10701
10701
  gutter: 12
10702
- }, _isSlot$7(U = M.value.map(ce)) ? U : {
10702
+ }, _isSlot$8(U = M.value.map(ce)) ? U : {
10703
10703
  default: () => [U]
10704
10704
  }), M.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
10705
10705
  gutter: 12
10706
- }, _isSlot$7(z = I.value.map(ce)) ? z : {
10706
+ }, _isSlot$8(z = I.value.map(ce)) ? z : {
10707
10707
  default: () => [z]
10708
10708
  }), c.value && createVNode("div", {
10709
10709
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10719,15 +10719,15 @@ const getProps$n = () => ({
10719
10719
  ghost: !F.value,
10720
10720
  disabled: F.value,
10721
10721
  onClick: L
10722
- }, _isSlot$7(U = a.t("kg.cancel")) ? U : {
10722
+ }, _isSlot$8(U = a.t("kg.cancel")) ? U : {
10723
10723
  default: () => [U]
10724
10724
  }), createVNode(Button, {
10725
10725
  type: "primary",
10726
- disabled: w.value,
10726
+ disabled: D.value,
10727
10727
  loading: O.value,
10728
10728
  danger: !!n.isDeleting.value,
10729
10729
  onClick: K
10730
- }, _isSlot$7(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10730
+ }, _isSlot$8(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10731
10731
  default: () => [z]
10732
10732
  })]);
10733
10733
  }
@@ -10963,7 +10963,11 @@ function useKgTable(e) {
10963
10963
  onRetrieve: n
10964
10964
  };
10965
10965
  }
10966
- const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE", KgTable_Cell = "", getProps$l = () => ({
10966
+ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE", KgTable_Cell = "";
10967
+ function _isSlot$7(e) {
10968
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10969
+ }
10970
+ const getProps$l = () => ({
10967
10971
  kgRow: Object,
10968
10972
  kgValue: [Object, String, Number, Boolean, Date],
10969
10973
  kgVarName: String,
@@ -10987,25 +10991,25 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
10987
10991
  return !1;
10988
10992
  });
10989
10993
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), c = computed(() => {
10990
- var T, A, E, $, M, I;
10991
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && ((E = u.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && (($ = u.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = u.value) == null ? void 0 : I.del_flg) === 1);
10994
+ var T, A, k, $, M, I;
10995
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && ((k = u.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && (($ = u.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = u.value) == null ? void 0 : I.del_flg) === 1);
10992
10996
  }), g = computed(() => {
10993
10997
  var T, A;
10994
10998
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
10995
10999
  }), m = computed(() => {
10996
- var A, E;
11000
+ var A, k;
10997
11001
  let T = "kg-table-td";
10998
- return ((A = l.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), c.value && (T += " kg-table-td--submitting"), T;
11002
+ return ((A = l.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((k = l.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), c.value && (T += " kg-table-td--submitting"), T;
10999
11003
  }), b = computed(() => {
11000
- var A, E, $;
11004
+ var A, k, $, M;
11001
11005
  if (e.kgValue === ID_CREATE)
11002
11006
  return "";
11003
11007
  let T = e.kgValue;
11004
11008
  switch ((A = l.value) == null ? void 0 : A.display_type) {
11005
11009
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11006
11010
  {
11007
- const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11008
- T = ($ = e.kgRow) == null ? void 0 : $[M.dscFieldName || `${e.kgVarName}_dsc`];
11011
+ const I = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11012
+ T = (M = ($ = e.kgRow) == null ? void 0 : $[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11009
11013
  }
11010
11014
  break;
11011
11015
  }
@@ -11013,7 +11017,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11013
11017
  `)), T;
11014
11018
  }), p = ref(null);
11015
11019
  function _(T) {
11016
- var A, E, $;
11020
+ var A, k, $;
11017
11021
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11018
11022
  switch ((A = l.value) == null ? void 0 : A.display_type) {
11019
11023
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -11022,7 +11026,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11022
11026
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11023
11027
  {
11024
11028
  T.stopPropagation(), T.preventDefault();
11025
- const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11029
+ const M = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11026
11030
  ($ = a.router.value) == null || $.push({
11027
11031
  path: M.path,
11028
11032
  query: e.kgRow
@@ -11055,44 +11059,60 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11055
11059
  });
11056
11060
  }
11057
11061
  function C() {
11058
- var T, A, E, $, M, I, O, F;
11062
+ var T, A, k, $, M, I, O, F, D, R;
11059
11063
  if (c.value)
11060
11064
  return y();
11061
11065
  switch ((T = l.value) == null ? void 0 : T.display_type) {
11062
11066
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11063
- const w = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11067
+ const P = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11064
11068
  return createVNode(KgYesOrNo, {
11065
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = w.yValue) != null ? E : 1),
11066
- kgNilAsFalse: w.nilAsFalse
11069
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = P.yValue) != null ? k : 1),
11070
+ kgNilAsFalse: P.nilAsFalse
11067
11071
  }, null);
11068
11072
  }
11069
11073
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11070
- const w = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), N = isArrayLike(w) && w.find((R) => R.value === e.kgValue);
11071
- return N ? createVNode(Tag, {
11072
- color: (M = N.color) != null ? M : "default"
11073
- }, {
11074
- default: () => [n.t(N.varName).value]
11075
- }) : k();
11074
+ const P = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), V = isArrayLike(P) && P.find((w) => w.value === e.kgValue);
11075
+ if (V) {
11076
+ const w = n.t(V.varName).value;
11077
+ return w ? createVNode(Tag, {
11078
+ color: (M = V.color) != null ? M : "default"
11079
+ }, _isSlot$7(w) ? w : {
11080
+ default: () => [w]
11081
+ }) : E();
11082
+ } else
11083
+ return E();
11084
+ }
11085
+ case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
11086
+ const P = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11087
+ if (P.isTag && isArrayLike(P.tagColors)) {
11088
+ const V = P.tagColors.find((w) => w.value === e.kgValue);
11089
+ return b.value ? createVNode(Tag, {
11090
+ color: (O = V == null ? void 0 : V.color) != null ? O : "default"
11091
+ }, {
11092
+ default: () => [b.value]
11093
+ }) : E();
11094
+ } else
11095
+ return E();
11076
11096
  }
11077
11097
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11078
- const w = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11098
+ const P = KgUtil.tryParseJSON((F = l.value) == null ? void 0 : F.display_type_properties);
11079
11099
  return createVNode(KgProgressA, {
11080
- kgTextWidth: w.textWidth,
11081
- kgLeft: (O = e.kgRow) == null ? void 0 : O[w.leftColumn],
11082
- kgRight: (F = e.kgRow) == null ? void 0 : F[w.rightColumn]
11100
+ kgTextWidth: P.textWidth,
11101
+ kgLeft: (D = e.kgRow) == null ? void 0 : D[P.leftColumn],
11102
+ kgRight: (R = e.kgRow) == null ? void 0 : R[P.rightColumn]
11083
11103
  }, null);
11084
11104
  }
11085
11105
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
11086
11106
  return KgUtil.getFileSize(e.kgValue);
11087
11107
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11088
- return k(!0);
11108
+ return E(!0);
11089
11109
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11090
- return k(!0);
11110
+ return E(!0);
11091
11111
  default:
11092
- return k();
11112
+ return E();
11093
11113
  }
11094
11114
  }
11095
- function k(T = !1) {
11115
+ function E(T = !1) {
11096
11116
  let A = "";
11097
11117
  return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
11098
11118
  innerHTML: b.value,
@@ -11190,8 +11210,8 @@ const getProps$k = () => ({
11190
11210
  }) => {
11191
11211
  const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11192
11212
  return i = watch(l, (c) => {
11193
- var g, m, b, p, _, v, y, C, k, T, A;
11194
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 0, c.show_check_column_flg = (p = u == null ? void 0 : u.show_check_column_flg) != null ? p : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (k = u == null ? void 0 : u.pg_size_opt) != null ? k : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11213
+ var g, m, b, p, _, v, y, C, E, T, A;
11214
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 0, c.show_check_column_flg = (p = u == null ? void 0 : u.show_check_column_flg) != null ? p : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11195
11215
  }, {
11196
11216
  immediate: !0
11197
11217
  }), !1;
@@ -11403,17 +11423,17 @@ const KgTableSetting = defineComponent({
11403
11423
  } = _useServices(), s = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
11404
11424
  visible: !1
11405
11425
  }), g = computed(() => !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value), m = ref(!1);
11406
- _useObserveMenuItemColumns(u), watch(u, (k) => {
11407
- k || (s.value = "");
11426
+ _useObserveMenuItemColumns(u), watch(u, (E) => {
11427
+ E || (s.value = "");
11408
11428
  }, {
11409
11429
  immediate: !0
11410
11430
  });
11411
- function b(k) {
11412
- n.store.setVarGridDetailVisible(n.formID, k.var_nam, k.vis_flg === 1 ? 0 : 1);
11431
+ function b(E) {
11432
+ n.store.setVarGridDetailVisible(n.formID, E.var_nam, E.vis_flg === 1 ? 0 : 1);
11413
11433
  }
11414
11434
  async function p() {
11415
- var k;
11416
- if (((k = n.currentVarGridMaster.value) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11435
+ var E;
11436
+ if (((E = n.currentVarGridMaster.value) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11417
11437
  KgUtil.confirm({
11418
11438
  content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
11419
11439
  okButtonProps: {
@@ -11441,7 +11461,7 @@ const KgTableSetting = defineComponent({
11441
11461
  popupClassName: "kg-table-setting-submenu-popup-columns"
11442
11462
  }, {
11443
11463
  default: () => {
11444
- var k;
11464
+ var E;
11445
11465
  return createVNode("div", {
11446
11466
  class: "columns"
11447
11467
  }, [createVNode(Input, {
@@ -11450,7 +11470,7 @@ const KgTableSetting = defineComponent({
11450
11470
  allowClear: !0
11451
11471
  }, null), createVNode("ul", {
11452
11472
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11453
- }, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
11473
+ }, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((T) => createVNode("li", {
11454
11474
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11455
11475
  onClick: (A) => {
11456
11476
  A.preventDefault(), A.stopPropagation(), b(T);
@@ -11481,22 +11501,22 @@ const KgTableSetting = defineComponent({
11481
11501
  }, {
11482
11502
  default: () => {
11483
11503
  var A;
11484
- let k, T;
11485
- return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
11504
+ let E, T;
11505
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((k) => {
11486
11506
  var $;
11487
11507
  return createVNode(Menu.Item, {
11488
- key: E.id,
11489
- class: E.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
11490
- "kg-var-nam": E.grd_var_nam,
11491
- onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
11508
+ key: k.id,
11509
+ class: k.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
11510
+ "kg-var-nam": k.grd_var_nam,
11511
+ onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
11492
11512
  }, {
11493
- default: () => [n.t(E.grd_var_nam).value]
11513
+ default: () => [n.t(k.grd_var_nam).value]
11494
11514
  });
11495
11515
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11496
11516
  key: "save-grid-view",
11497
11517
  onClick: p
11498
- }, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMaster")) ? k : {
11499
- default: () => [k]
11518
+ }, _isSlot$5(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11519
+ default: () => [E]
11500
11520
  }), createVNode(Menu.Item, {
11501
11521
  key: "save-grid-view-as",
11502
11522
  onClick: _
@@ -11508,14 +11528,14 @@ const KgTableSetting = defineComponent({
11508
11528
  });
11509
11529
  }
11510
11530
  function C() {
11511
- let k;
11531
+ let E;
11512
11532
  return createVNode(Menu.Item, {
11513
11533
  key: "config-var-grid-master",
11514
11534
  onClick: () => {
11515
11535
  c.visible = !0;
11516
11536
  }
11517
- }, _isSlot$5(k = a.t("kg.KgTable.config")) ? k : {
11518
- default: () => [k]
11537
+ }, _isSlot$5(E = a.t("kg.KgTable.config")) ? E : {
11538
+ default: () => [E]
11519
11539
  });
11520
11540
  }
11521
11541
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -11528,14 +11548,14 @@ const KgTableSetting = defineComponent({
11528
11548
  overlay: () => createVNode(Menu, {
11529
11549
  triggerSubMenuAction: "click",
11530
11550
  openKeys: l.value,
11531
- "onUpdate:openKeys": (k) => l.value = k,
11551
+ "onUpdate:openKeys": (E) => l.value = E,
11532
11552
  selectable: !1
11533
11553
  }, {
11534
11554
  default: () => [v(), y(), C()]
11535
11555
  })
11536
11556
  }), c.visible && createVNode(KgTableSettingConfigModal, {
11537
11557
  visible: c.visible,
11538
- "onUpdate:visible": (k) => c.visible = k,
11558
+ "onUpdate:visible": (E) => c.visible = E,
11539
11559
  hostFormID: n.formID
11540
11560
  }, null), m.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
11541
11561
  }
@@ -11572,7 +11592,7 @@ function _useColumns() {
11572
11592
  if (b.fix_right_flg === 1)
11573
11593
  return "right";
11574
11594
  }
11575
- function k() {
11595
+ function E() {
11576
11596
  return b.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
11577
11597
  }
11578
11598
  function T() {
@@ -11587,20 +11607,20 @@ function _useColumns() {
11587
11607
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11588
11608
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11589
11609
  fixed: C(),
11590
- sorter: k(),
11610
+ sorter: E(),
11591
11611
  align: T(),
11592
11612
  defaultSortOrder: y(),
11593
11613
  customHeaderCell: () => ({
11594
11614
  "kg-frm-id": e.formID,
11595
11615
  "kg-var-nam": p
11596
11616
  }),
11597
- customCell: (E) => {
11617
+ customCell: (k) => {
11598
11618
  var M;
11599
11619
  const $ = e.store.getVarSubmitField(e.formID, p);
11600
11620
  return {
11601
11621
  "kg-frm-id": e.formID,
11602
11622
  "kg-var-nam": p,
11603
- class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && E[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!e.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!e.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!e.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
11623
+ class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && k[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!e.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!e.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!e.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
11604
11624
  };
11605
11625
  }
11606
11626
  };
@@ -11684,9 +11704,9 @@ const KgTable$1 = "", KgTable = defineComponent({
11684
11704
  }), C = computed(() => {
11685
11705
  var K, H, W, J, X, ce, me;
11686
11706
  let L = {
11687
- pageNo: w.pageIndex,
11688
- pageSize: w.pageSize,
11689
- ...N,
11707
+ pageNo: D.pageIndex,
11708
+ pageSize: D.pageSize,
11709
+ ...R,
11690
11710
  ...(H = (K = s.model) == null ? void 0 : K.value) != null ? H : {}
11691
11711
  };
11692
11712
  return i.varButtonSearch.value && (L = {
@@ -11696,14 +11716,14 @@ const KgTable$1 = "", KgTable = defineComponent({
11696
11716
  ...L,
11697
11717
  ...KgVarUtil.parseCommandParameter((ce = i.varGridConfig.value.cmd_prm) != null ? ce : "")
11698
11718
  }), ((me = i.varGridConfig.value) == null ? void 0 : me.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11699
- }), k = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || w.total === 0), T = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
11719
+ }), E = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || D.total === 0), T = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
11700
11720
  var L;
11701
11721
  return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
11702
- }), E = computed(() => {
11722
+ }), k = computed(() => {
11703
11723
  var L;
11704
11724
  return ((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
11705
11725
  }), $ = computed(() => {
11706
- if (!!E.value)
11726
+ if (!!k.value)
11707
11727
  return {
11708
11728
  fixed: "left",
11709
11729
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
@@ -11724,28 +11744,28 @@ const KgTable$1 = "", KgTable = defineComponent({
11724
11744
  var K;
11725
11745
  let L = "kg-table-bottom";
11726
11746
  return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
11727
- }), O = ref([]), F = ref([]), w = reactive({
11747
+ }), O = ref([]), F = ref([]), D = reactive({
11728
11748
  pageIndex: 1,
11729
11749
  pageSize: 10,
11730
11750
  total: 0
11731
- }), N = reactive({
11751
+ }), R = reactive({
11732
11752
  column: void 0,
11733
11753
  order: void 0
11734
- }), R = watch(u.pageSizeOption, (L) => {
11735
- L && (setTimeout(() => R()), w.pageSize = L), g.value = !0;
11754
+ }), P = watch(u.pageSizeOption, (L) => {
11755
+ L && (setTimeout(() => P()), D.pageSize = L), g.value = !0;
11736
11756
  });
11737
11757
  watch(u.pageSizeOptions, (L) => {
11738
- L.length > 0 && !L.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
11758
+ L.length > 0 && !L.includes(D.pageSize) && (D.pageSize = u.pageSizeOption.value);
11739
11759
  }), watch([y, u.isReadAutomatically, s.isReady], ([L, K, H]) => {
11740
11760
  L && K && H && !u.store.getIsRetrieved(i.formID) && B(!0);
11741
11761
  }, {
11742
11762
  immediate: !0
11743
11763
  }), watch(i.isCreating, (L, K) => {
11744
- L === !0 ? D() : L === !1 && K === !0 && V();
11764
+ L === !0 ? V() : L === !1 && K === !0 && w();
11745
11765
  }), onUnmounted(() => {
11746
11766
  u.store.dispose(i.formID);
11747
11767
  });
11748
- function D() {
11768
+ function V() {
11749
11769
  if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
11750
11770
  const L = {
11751
11771
  [u.id.value]: ID_CREATE
@@ -11753,11 +11773,11 @@ const KgTable$1 = "", KgTable = defineComponent({
11753
11773
  O.value = [L, ...O.value], F.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [L]);
11754
11774
  }
11755
11775
  }
11756
- function V() {
11776
+ function w() {
11757
11777
  const L = O.value.find((K) => K[u.id.value] === ID_CREATE);
11758
11778
  L && (O.value = without$1(O.value, L), F.value = [], u.store.setSelectedRows(i.formID, []));
11759
11779
  }
11760
- function P(L, K) {
11780
+ function N(L, K) {
11761
11781
  if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!$.value) {
11762
11782
  if (!K) {
11763
11783
  F.value = [], u.store.setSelectedRows(i.formID, []);
@@ -11790,7 +11810,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11790
11810
  });
11791
11811
  return;
11792
11812
  }
11793
- L && (w.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11813
+ L && (D.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11794
11814
  try {
11795
11815
  const X = await httpClient().request({
11796
11816
  method: "GET",
@@ -11801,19 +11821,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11801
11821
  });
11802
11822
  switch (!0) {
11803
11823
  case !X:
11804
- O.value = [], w.total = 0;
11824
+ O.value = [], D.total = 0;
11805
11825
  break;
11806
11826
  case isArrayLike(X):
11807
- O.value = X, w.total = X.length;
11827
+ O.value = X, D.total = X.length;
11808
11828
  break;
11809
11829
  case ("total" in X && "records" in X):
11810
- O.value = (W = X.records) != null ? W : [], w.total = (J = X.total) != null ? J : 0;
11830
+ O.value = (W = X.records) != null ? W : [], D.total = (J = X.total) != null ? J : 0;
11811
11831
  break;
11812
11832
  }
11813
11833
  u.store.emit(i.formID, "retrieve", {
11814
11834
  page: X,
11815
11835
  datas: O
11816
- }), P(), m.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11836
+ }), N(), m.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11817
11837
  } catch (X) {
11818
11838
  throw X;
11819
11839
  } finally {
@@ -11858,7 +11878,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11858
11878
  {
11859
11879
  await nextTick();
11860
11880
  let X = H;
11861
- X.order ? (N.column = (J = X.field) != null ? J : void 0, N.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), B(!0);
11881
+ X.order ? (R.column = (J = X.field) != null ? J : void 0, R.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), B(!0);
11862
11882
  }
11863
11883
  break;
11864
11884
  }
@@ -11876,7 +11896,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11876
11896
  }
11877
11897
  }
11878
11898
  function ne(L, K) {
11879
- K !== w.pageSize ? (w.pageIndex = 1, w.pageSize = K) : w.pageIndex = L, B();
11899
+ K !== D.pageSize ? (D.pageIndex = 1, D.pageSize = K) : D.pageIndex = L, B();
11880
11900
  }
11881
11901
  function oe(L) {
11882
11902
  F.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((K) => {
@@ -11903,12 +11923,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11903
11923
  default: () => [createVNode(TableSummary.Row, null, {
11904
11924
  default: () => [A.value && createVNode(TableSummary.Cell, {
11905
11925
  index: 0
11906
- }, null), E.value && createVNode(TableSummary.Cell, {
11926
+ }, null), k.value && createVNode(TableSummary.Cell, {
11907
11927
  index: A.value ? 1 : 0
11908
11928
  }, null), b.value.map((K, H) => {
11909
11929
  const W = i.store.getVarGridDetail(i.formID, K.dataIndex);
11910
11930
  let J = H;
11911
- return A.value && E.value ? J += 2 : (A.value || E.value) && (J += 1), createVNode(TableSummary.Cell, {
11931
+ return A.value && k.value ? J += 2 : (A.value || k.value) && (J += 1), createVNode(TableSummary.Cell, {
11912
11932
  index: J
11913
11933
  }, {
11914
11934
  default: () => {
@@ -11988,7 +12008,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11988
12008
  expandColumnWidth: 28,
11989
12009
  expandedRowKeys: m.value,
11990
12010
  customRow: (K) => ({
11991
- onClick: (H) => P(H, K)
12011
+ onClick: (H) => N(H, K)
11992
12012
  }),
11993
12013
  onResizeColumn: Y,
11994
12014
  onChange: q,
@@ -12005,7 +12025,7 @@ const KgTable$1 = "", KgTable = defineComponent({
12005
12025
  class: "left"
12006
12026
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
12007
12027
  kgShowClearCheck: F.value.length > 0,
12008
- kgShowClearTable: w.total > 0,
12028
+ kgShowClearTable: D.total > 0,
12009
12029
  kgShowLocate: F.value.length === 1,
12010
12030
  kgTotal: F.value.length,
12011
12031
  kgDisabled: T.value
@@ -12013,14 +12033,14 @@ const KgTable$1 = "", KgTable = defineComponent({
12013
12033
  class: "right"
12014
12034
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
12015
12035
  size: "default",
12016
- current: w.pageIndex,
12017
- pageSize: w.pageSize,
12036
+ current: D.pageIndex,
12037
+ pageSize: D.pageSize,
12018
12038
  pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
12019
- total: w.total,
12039
+ total: D.total,
12020
12040
  showSizeChanger: !0,
12021
12041
  showQuickJumper: !1,
12022
12042
  hideOnSinglePage: !1,
12023
- disabled: k.value,
12043
+ disabled: E.value,
12024
12044
  locale: {
12025
12045
  page: ""
12026
12046
  },
@@ -12248,8 +12268,8 @@ const KgButtonCreate = defineComponent({
12248
12268
  attrs: a
12249
12269
  }) {
12250
12270
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12251
- var k, T, A, E, $, M, I, O;
12252
- return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((k = u.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((A = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((E = u.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = ($ = s.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((I = u.value) == null ? void 0 : I.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12271
+ var E, T, A, k, $, M, I, O;
12272
+ return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((E = u.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = u.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = ($ = s.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((I = u.value) == null ? void 0 : I.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12253
12273
  }), g = computed(() => !!o.isCreatingRequesting.value);
12254
12274
  async function m() {
12255
12275
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12343,7 +12363,7 @@ const KgButtonCreate = defineComponent({
12343
12363
  var p, _;
12344
12364
  return (_ = (p = o.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
12345
12365
  }), l = computed(() => {
12346
- var _, v, y, C, k, T;
12366
+ var _, v, y, C, E, T;
12347
12367
  let p = {
12348
12368
  ...(_ = a.model.value) != null ? _ : {}
12349
12369
  };
@@ -12352,11 +12372,11 @@ const KgButtonCreate = defineComponent({
12352
12372
  ...KgVarUtil.parseCommandParameter((y = (v = o.value) == null ? void 0 : v.cmd_prm) != null ? y : "")
12353
12373
  }), (C = r.varGridConfig.value) != null && C.cmd_prm && (p = {
12354
12374
  ...p,
12355
- ...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
12375
+ ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12356
12376
  }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
12357
12377
  }), u = computed(() => {
12358
- var p, _, v, y, C, k, T, A;
12359
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = o.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12378
+ var p, _, v, y, C, E, T, A;
12379
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = o.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12360
12380
  }), c = ref(!1);
12361
12381
  async function g() {
12362
12382
  var p, _, v;
@@ -12431,8 +12451,8 @@ const KgButtonCreate = defineComponent({
12431
12451
  }), _;
12432
12452
  });
12433
12453
  const c = computed(() => {
12434
- var _, v, y, C, k, T, A, E;
12435
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (v = i.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? T : 0) > 1 || ((A = s.value) == null ? void 0 : A.permission_type) === 2 && !a.p((E = s.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12454
+ var _, v, y, C, E, T, A, k;
12455
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (v = i.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((A = s.value) == null ? void 0 : A.permission_type) === 2 && !a.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12436
12456
  }), g = ref(!1);
12437
12457
  async function m(_) {
12438
12458
  var v, y;
@@ -12498,8 +12518,8 @@ const KgButtonCreate = defineComponent({
12498
12518
  var m, b;
12499
12519
  return (b = (m = n.value) == null ? void 0 : m.cmd_method) != null ? b : "GET";
12500
12520
  }), s = computed(() => {
12501
- var m, b, p, _, v, y, C, k;
12502
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((p = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? p : 0) === 0 || ((_ = n.value) == null ? void 0 : _.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((k = n.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12521
+ var m, b, p, _, v, y, C, E;
12522
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((p = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? p : 0) === 0 || ((_ = n.value) == null ? void 0 : _.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((E = n.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12503
12523
  }), l = ref(!1);
12504
12524
  async function u() {
12505
12525
  var m;
@@ -12570,16 +12590,16 @@ const KgButtonCreate = defineComponent({
12570
12590
  }
12571
12591
  let g = null;
12572
12592
  const m = async () => {
12573
- var y, C, k, T, A, E, $;
12593
+ var y, C, E, T, A, k, $;
12574
12594
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12575
12595
  const v = n.selectedRows.value;
12576
12596
  try {
12577
12597
  await httpClient().request({
12578
12598
  method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
12579
12599
  url: c,
12580
- params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
12600
+ params: KgVarUtil.parseCommandParameter((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""),
12581
12601
  data: v != null ? v : []
12582
- }), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (E = a.search).value) == null || $.call(E, !0));
12602
+ }), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (k = a.search).value) == null || $.call(k, !0));
12583
12603
  } catch (M) {
12584
12604
  console.error(M);
12585
12605
  } finally {
@@ -12665,8 +12685,8 @@ const KgButtonCreate = defineComponent({
12665
12685
  }
12666
12686
  });
12667
12687
  const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12668
- var y, C, k, T, A, E, $, M;
12669
- return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((k = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((E = (A = i.selectedRows.value) == null ? void 0 : A.length) != null ? E : 0) > 1 || (($ = u.value) == null ? void 0 : $.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12688
+ var y, C, E, T, A, k, $, M;
12689
+ return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((E = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (A = i.selectedRows.value) == null ? void 0 : A.length) != null ? k : 0) > 1 || (($ = u.value) == null ? void 0 : $.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12670
12690
  });
12671
12691
  async function g() {
12672
12692
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -13284,9 +13304,9 @@ const leftVarProfileDetailColumns = (e) => {
13284
13304
  row: y,
13285
13305
  model: C
13286
13306
  }) => {
13287
- var T, A, E;
13288
- const k = s.store.getSystemVarProfileDetails(s.formID);
13289
- switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13307
+ var T, A, k;
13308
+ const E = s.store.getSystemVarProfileDetails(s.formID);
13309
+ switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
13290
13310
  case p:
13291
13311
  u.value = [];
13292
13312
  break;
@@ -13302,7 +13322,7 @@ const leftVarProfileDetailColumns = (e) => {
13302
13322
  });
13303
13323
  l.value = l.value.map((I) => {
13304
13324
  var F;
13305
- const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((w) => w.var_nam === I.var_nam);
13325
+ const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((D) => D.var_nam === I.var_nam);
13306
13326
  return O ? {
13307
13327
  ...I,
13308
13328
  ...O,
@@ -13322,7 +13342,7 @@ const leftVarProfileDetailColumns = (e) => {
13322
13342
  }
13323
13343
  switch (!0) {
13324
13344
  case v:
13325
- C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
13345
+ C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13326
13346
  break;
13327
13347
  }
13328
13348
  return !1;
@@ -13357,7 +13377,7 @@ const leftVarProfileDetailColumns = (e) => {
13357
13377
  model: v,
13358
13378
  varVariableConfig: y,
13359
13379
  varProfileDetail: C,
13360
- varSubmitField: k
13380
+ varSubmitField: E
13361
13381
  }) => createVNode(Transfer, {
13362
13382
  dataSource: l.value,
13363
13383
  targetKeys: u.value,
@@ -13367,14 +13387,14 @@ const leftVarProfileDetailColumns = (e) => {
13367
13387
  showSelectAll: !1,
13368
13388
  searchPlaceholder: " ",
13369
13389
  filterOption: (T, A) => {
13370
- var E;
13371
- return !!((E = A.var_nam) != null && E.includes(T));
13390
+ var k;
13391
+ return !!((k = A.var_nam) != null && k.includes(T));
13372
13392
  }
13373
13393
  }, {
13374
13394
  children: ({
13375
13395
  direction: T,
13376
13396
  filteredItems: A,
13377
- selectedKeys: E,
13397
+ selectedKeys: k,
13378
13398
  disabled: $,
13379
13399
  onItemSelectAll: M,
13380
13400
  onItemSelect: I
@@ -13390,11 +13410,11 @@ const leftVarProfileDetailColumns = (e) => {
13390
13410
  rowKey: "id",
13391
13411
  dataSource: A,
13392
13412
  customRow: (O) => ({
13393
- onClick: (F) => b(F, O, T, E)
13413
+ onClick: (F) => b(F, O, T, k)
13394
13414
  }),
13395
13415
  rowSelection: g({
13396
13416
  disabled: $,
13397
- selectedKeys: E,
13417
+ selectedKeys: k,
13398
13418
  onItemSelectAll: M,
13399
13419
  onItemSelect: I
13400
13420
  })
@@ -13415,16 +13435,16 @@ const leftVarProfileDetailColumns = (e) => {
13415
13435
  getCheckboxProps: (C) => ({
13416
13436
  disabled: p || C.disabled
13417
13437
  }),
13418
- onSelectAll(C, k) {
13419
- const T = k.filter((A) => !A.disabled).map(({
13438
+ onSelectAll(C, E) {
13439
+ const T = E.filter((A) => !A.disabled).map(({
13420
13440
  key: A
13421
13441
  }) => A);
13422
13442
  v(T, C);
13423
13443
  },
13424
13444
  onSelect({
13425
13445
  key: C
13426
- }, k) {
13427
- y(C, k);
13446
+ }, E) {
13447
+ y(C, E);
13428
13448
  },
13429
13449
  selectedRowKeys: _,
13430
13450
  columnWidth: 32
@@ -13610,17 +13630,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13610
13630
  });
13611
13631
  _useLayoutHeaderResizeObserver(), _useFormModel(m, b), computed(() => a.store.getVarProfileConfig(a.formID));
13612
13632
  const p = computed(() => {
13613
- var V, P;
13614
- return !!(o.isRetrieving.value || ((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) === 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13633
+ var w, N;
13634
+ return !!(o.isRetrieving.value || ((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) === 2 && !r.p((N = a.varButtonSearch.value) == null ? void 0 : N.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13615
13635
  }), _ = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), v = computed(() => !!o.isRetrieving.value), y = ref({
13616
13636
  visible: !1
13617
- }), C = computed(() => b.value.kgHeight === g.value), k = computed(() => {
13618
- var V, P, B;
13619
- if (a.t((V = a.varButtonSearch.value) == null ? void 0 : V.var_nam).value !== ((P = a.varButtonSearch.value) == null ? void 0 : P.var_nam))
13637
+ }), C = computed(() => b.value.kgHeight === g.value), E = computed(() => {
13638
+ var w, N, B;
13639
+ if (a.t((w = a.varButtonSearch.value) == null ? void 0 : w.var_nam).value !== ((N = a.varButtonSearch.value) == null ? void 0 : N.var_nam))
13620
13640
  return a.t((B = a.varButtonSearch.value) == null ? void 0 : B.var_nam).value;
13621
13641
  }), T = computed(() => {
13622
- var V;
13623
- switch ((V = a.varButtonSearch.value) == null ? void 0 : V.primary_flg) {
13642
+ var w;
13643
+ switch ((w = a.varButtonSearch.value) == null ? void 0 : w.primary_flg) {
13624
13644
  case 1:
13625
13645
  return !0;
13626
13646
  case 0:
@@ -13628,34 +13648,34 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13628
13648
  default:
13629
13649
  return !0;
13630
13650
  }
13631
- }), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
13632
- let V = "kg-search";
13633
- return i.value && (V += " kg-search--visible"), l.value && (V += " kg-search--teleport"), V;
13651
+ }), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), k = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
13652
+ let w = "kg-search";
13653
+ return i.value && (w += " kg-search--visible"), l.value && (w += " kg-search--teleport"), w;
13634
13654
  });
13635
13655
  onUnmounted(() => {
13636
13656
  n.store.dispose(a.formID);
13637
13657
  });
13638
- function M(V = !1) {
13658
+ function M(w = !1) {
13639
13659
  p.value || (i.value ? m.value && m.value.validate().then(() => {
13640
13660
  n.store.emit(a.formID, "search", {
13641
- resetPageIndex: V
13661
+ resetPageIndex: w
13642
13662
  });
13643
- }).catch((P) => {
13663
+ }).catch((N) => {
13644
13664
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13645
- e: P
13665
+ e: N
13646
13666
  });
13647
13667
  }) : n.store.emit(a.formID, "search", {
13648
- resetPageIndex: V
13668
+ resetPageIndex: w
13649
13669
  }));
13650
13670
  }
13651
13671
  n.store.setSearchFn(a.formID, M);
13652
13672
  function I() {
13653
- var V;
13654
- (V = m.value) == null || V.resetFields(), i.value ? m.value && m.value.validate().then(() => {
13673
+ var w;
13674
+ (w = m.value) == null || w.resetFields(), i.value ? m.value && m.value.validate().then(() => {
13655
13675
  n.store.emit(a.formID, "reset");
13656
- }).catch((P) => {
13676
+ }).catch((N) => {
13657
13677
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13658
- e: P
13678
+ e: N
13659
13679
  });
13660
13680
  }) : n.store.emit(a.formID, "reset");
13661
13681
  }
@@ -13664,20 +13684,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13664
13684
  return M(!0), Promise.resolve(!0);
13665
13685
  }
13666
13686
  function F() {
13667
- var V;
13687
+ var w;
13668
13688
  return createVNode("div", {
13669
13689
  class: "title",
13670
- onClick: D
13671
- }, [((V = t == null ? void 0 : t.KgSearch) == null ? void 0 : V.left) && createVNode("div", {
13690
+ onClick: V
13691
+ }, [((w = t == null ? void 0 : t.KgSearch) == null ? void 0 : w.left) && createVNode("div", {
13672
13692
  class: "kg-search-title-left",
13673
- onClick: (P) => {
13674
- P.stopPropagation(), P.preventDefault();
13693
+ onClick: (N) => {
13694
+ N.stopPropagation(), N.preventDefault();
13675
13695
  }
13676
13696
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13677
13697
  }
13678
- function w() {
13679
- var V, P, B, x;
13680
- return ((B = (P = (V = a.varProfileMasters) == null ? void 0 : V.value) == null ? void 0 : P.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13698
+ function D() {
13699
+ var w, N, B, x;
13700
+ return ((B = (N = (w = a.varProfileMasters) == null ? void 0 : w.value) == null ? void 0 : N.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13681
13701
  value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
13682
13702
  "onUpdate:value": (G) => a.store.setCurrentVarProfileMasterID(a.formID, G),
13683
13703
  disabled: _.value,
@@ -13706,9 +13726,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13706
13726
  hostFormID: a.formID
13707
13727
  }, null)]);
13708
13728
  }
13709
- function N() {
13710
- var V, P, B, x, G;
13711
- return createVNode(Fragment, null, [w(), !(((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) !== 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code)) && createVNode(Button, {
13729
+ function R() {
13730
+ var w, N, B, x, G;
13731
+ return createVNode(Fragment, null, [D(), !(((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) !== 2 && !r.p((N = a.varButtonSearch.value) == null ? void 0 : N.permission_code)) && createVNode(Button, {
13712
13732
  type: "primary",
13713
13733
  ghost: !p.value,
13714
13734
  disabled: p.value,
@@ -13720,29 +13740,29 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13720
13740
  kgType: KG_BUTTON_TYPE.SEARCH,
13721
13741
  kgVarName: (B = a.varButtonSearch.value) == null ? void 0 : B.var_nam,
13722
13742
  kgIcon: (x = a.varButtonSearch.value) == null ? void 0 : x.icon,
13723
- kgText: k.value,
13743
+ kgText: E.value,
13724
13744
  kgColor: (G = a.varButtonSearch.value) == null ? void 0 : G.color,
13725
13745
  kgPrimary: T.value,
13726
13746
  kgLoading: v.value,
13727
13747
  onKgClick: O
13728
13748
  }, null)]);
13729
13749
  }
13730
- function R() {
13750
+ function P() {
13731
13751
  return createVNode(Spin, {
13732
- spinning: E.value
13752
+ spinning: k.value
13733
13753
  }, {
13734
13754
  default: () => {
13735
- var V;
13755
+ var w;
13736
13756
  return [createVNode(KgForm, {
13737
13757
  ref: m,
13738
- model: (V = n.model.value) != null ? V : {}
13758
+ model: (w = n.model.value) != null ? w : {}
13739
13759
  }, {
13740
13760
  default: () => [createVNode(Row, {
13741
13761
  gutter: 6
13742
13762
  }, {
13743
13763
  default: () => {
13744
- var P;
13745
- return [(P = a.currentVarProfileDetails.value) == null ? void 0 : P.map((B) => createVNode(KgForm.Item, {
13764
+ var N;
13765
+ return [(N = a.currentVarProfileDetails.value) == null ? void 0 : N.map((B) => createVNode(KgForm.Item, {
13746
13766
  kgVarName: B.var_nam,
13747
13767
  kgContext: KG_FORM_CONTEXT.SEARCH,
13748
13768
  onKgSubmit: () => M(!0)
@@ -13753,12 +13773,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13753
13773
  }
13754
13774
  });
13755
13775
  }
13756
- function D() {
13776
+ function V() {
13757
13777
  C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
13758
13778
  }
13759
13779
  return () => createVNode(KgResizable, {
13760
13780
  kgHeight: b.value.kgHeight,
13761
- "onUpdate:kgHeight": (V) => b.value.kgHeight = V,
13781
+ "onUpdate:kgHeight": (w) => b.value.kgHeight = w,
13762
13782
  kgMinHeight: g.value,
13763
13783
  kgMaxHeight: c.value,
13764
13784
  kgDisabled: !s.value,
@@ -13780,13 +13800,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13780
13800
  }, {
13781
13801
  default: () => [F(), createVNode("div", {
13782
13802
  class: "ant-collapse-extra"
13783
- }, [N()])]
13803
+ }, [R()])]
13784
13804
  })])]
13785
13805
  }), createVNode("div", {
13786
13806
  class: "ant-collapse-content ant-collapse-content-active"
13787
13807
  }, [createVNode("div", {
13788
13808
  class: "ant-collapse-content-box"
13789
- }, [R()])])])])]
13809
+ }, [P()])])])])]
13790
13810
  });
13791
13811
  }
13792
13812
  });
@@ -13852,13 +13872,13 @@ function useMagicKeys(e = {}) {
13852
13872
  }
13853
13873
  function b(_, v) {
13854
13874
  var y, C;
13855
- const k = (y = _.key) == null ? void 0 : y.toLowerCase(), T = (C = _.code) == null ? void 0 : C.toLowerCase(), A = [T, k].filter(Boolean);
13875
+ const E = (y = _.key) == null ? void 0 : y.toLowerCase(), T = (C = _.code) == null ? void 0 : C.toLowerCase(), A = [T, E].filter(Boolean);
13856
13876
  T && (v ? i.add(_.code) : i.delete(_.code));
13857
- for (const E of A)
13858
- c.add(E), g(E, v);
13859
- k === "meta" && !v ? (u.forEach((E) => {
13860
- i.delete(E), g(E, !1);
13861
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...i, ...A].forEach((E) => u.add(E));
13877
+ for (const k of A)
13878
+ c.add(k), g(k, v);
13879
+ E === "meta" && !v ? (u.forEach((k) => {
13880
+ i.delete(k), g(k, !1);
13881
+ }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...i, ...A].forEach((k) => u.add(k));
13862
13882
  }
13863
13883
  r && (useEventListener(r, "keydown", (_) => (b(_, !0), o(_)), { passive: n }), useEventListener(r, "keyup", (_) => (b(_, !1), o(_)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
13864
13884
  const p = new Proxy(l, {
@@ -13867,8 +13887,8 @@ function useMagicKeys(e = {}) {
13867
13887
  return Reflect.get(_, v, y);
13868
13888
  if (v = v.toLowerCase(), v in a && (v = a[v]), !(v in l))
13869
13889
  if (/[+_-]/.test(v)) {
13870
- const k = v.split(/[+_-]/g).map((T) => T.trim());
13871
- l[v] = computed(() => k.every((T) => unref(p[T])));
13890
+ const E = v.split(/[+_-]/g).map((T) => T.trim());
13891
+ l[v] = computed(() => E.every((T) => unref(p[T])));
13872
13892
  } else
13873
13893
  l[v] = ref(!1);
13874
13894
  const C = Reflect.get(_, v, y);
@@ -14257,112 +14277,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14257
14277
  columnWidth: 32,
14258
14278
  hideSelectAll: !0,
14259
14279
  selectedRowKeys: g,
14260
- onSelect: (w) => $(w)
14280
+ onSelect: (D) => $(D)
14261
14281
  }), b = ref({
14262
14282
  visible: !1
14263
14283
  }), p = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), _ = computed(() => {
14264
- var w;
14265
- return !!c.value || ((w = a.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14284
+ var D;
14285
+ return !!c.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14266
14286
  }), v = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14267
- watch(() => a.getSelectedVar, (w) => {
14268
- w ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14287
+ watch(() => a.getSelectedVar, (D) => {
14288
+ D ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14269
14289
  }, {
14270
14290
  immediate: !0
14271
- }), watch(() => a.getSelectedVarCatalog, async (w) => {
14272
- var N, R;
14273
- l.value.var_text = (N = w == null ? void 0 : w.var_text) != null ? N : "", (R = s.value) == null || R.clearValidate();
14291
+ }), watch(() => a.getSelectedVarCatalog, async (D) => {
14292
+ var R, P;
14293
+ l.value.var_text = (R = D == null ? void 0 : D.var_text) != null ? R : "", (P = s.value) == null || P.clearValidate();
14274
14294
  });
14275
- async function C(w = !1) {
14276
- var N, R, D;
14295
+ async function C(D = !1) {
14296
+ var R, P, V;
14277
14297
  n.value = !0;
14278
14298
  try {
14279
14299
  const {
14280
- records: V
14300
+ records: w
14281
14301
  } = await List({
14282
14302
  params: {
14283
14303
  pageNo: 1,
14284
14304
  pageSize: 999,
14285
14305
  frm_id: e == null ? void 0 : e.value,
14286
- var_nam: (N = a.getSelectedVar) == null ? void 0 : N.var_nam,
14306
+ var_nam: (R = a.getSelectedVar) == null ? void 0 : R.var_nam,
14287
14307
  column: "frm_id,locale_id,cust_lvl",
14288
14308
  order: "asc"
14289
14309
  }
14290
14310
  });
14291
- if (c.value = null, u.value = V != null ? V : [], w) {
14292
- const P = u.value.find((B) => {
14311
+ if (c.value = null, u.value = w != null ? w : [], D) {
14312
+ const N = u.value.find((B) => {
14293
14313
  var x;
14294
14314
  return B.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
14295
14315
  });
14296
- a.setSelectedVarCatalog(P != null ? P : null), g.value = P != null && P.id ? [P.id] : [];
14316
+ a.setSelectedVarCatalog(N != null ? N : null), g.value = N != null && N.id ? [N.id] : [];
14297
14317
  } else
14298
- a.setSelectedVarCatalog((R = u.value[0]) != null ? R : null), g.value = (D = u.value[0]) != null && D.id ? [u.value[0].id] : [];
14299
- } catch (V) {
14300
- Logger.debug(V == null ? void 0 : V.message);
14318
+ a.setSelectedVarCatalog((P = u.value[0]) != null ? P : null), g.value = (V = u.value[0]) != null && V.id ? [u.value[0].id] : [];
14319
+ } catch (w) {
14320
+ Logger.debug(w == null ? void 0 : w.message);
14301
14321
  } finally {
14302
14322
  n.value = !1;
14303
14323
  }
14304
14324
  }
14305
- async function k() {
14306
- var w, N, R;
14325
+ async function E() {
14326
+ var D, R, P;
14307
14327
  try {
14308
- o.value = !0, await ((w = s.value) == null ? void 0 : w.validate());
14309
- const D = new VarCatalog({
14310
- ...(N = a.getSelectedVarCatalog) != null ? N : {},
14311
- var_text: (R = l.value) == null ? void 0 : R.var_text
14328
+ o.value = !0, await ((D = s.value) == null ? void 0 : D.validate());
14329
+ const V = new VarCatalog({
14330
+ ...(R = a.getSelectedVarCatalog) != null ? R : {},
14331
+ var_text: (P = l.value) == null ? void 0 : P.var_text
14312
14332
  });
14313
- D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
14314
- data: D
14333
+ V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
14334
+ data: V
14315
14335
  }, {
14316
14336
  successMessageMode: "none"
14317
14337
  }), message.success({
14318
14338
  content: t.t("kg.KgVarConfig.createSuccess")
14319
14339
  }), await C()) : (await Edit({
14320
- data: D
14340
+ data: V
14321
14341
  }, {
14322
14342
  successMessageMode: "none"
14323
14343
  }), message.success({
14324
14344
  content: t.t("kg.KgVarConfig.saveSuccess")
14325
14345
  }), await C(!0)) : (await Add({
14326
- data: D
14346
+ data: V
14327
14347
  }, {
14328
14348
  successMessageMode: "none"
14329
14349
  }), message.success({
14330
14350
  content: t.t("kg.KgVarConfig.createSuccess")
14331
14351
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
14332
- } catch (D) {
14333
- KgUtil.throwIfNotFormError(D);
14352
+ } catch (V) {
14353
+ KgUtil.throwIfNotFormError(V);
14334
14354
  } finally {
14335
14355
  o.value = !1;
14336
14356
  }
14337
14357
  }
14338
14358
  function T({
14339
- isAllForm: w,
14340
- isAllLanguage: N
14359
+ isAllForm: D,
14360
+ isAllLanguage: R
14341
14361
  }) {
14342
- var R, D, V;
14362
+ var P, V, w;
14343
14363
  c.value = new VarCatalog({
14344
14364
  id: "",
14345
14365
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14346
- grp_nam: (R = a.getSelectedVar) == null ? void 0 : R.grp_nam,
14347
- var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
14348
- frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14349
- locale_id: N ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
14366
+ grp_nam: (P = a.getSelectedVar) == null ? void 0 : P.grp_nam,
14367
+ var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
14368
+ frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14369
+ locale_id: R ? "ALL" : (w = t.locale) == null ? void 0 : w.value,
14350
14370
  var_text: ""
14351
14371
  }), u.value = [...u.value, c.value], a.setSelectedVarCatalog(unref(c)), g.value = [""];
14352
14372
  }
14353
14373
  function A() {
14354
- var N;
14374
+ var R;
14355
14375
  u.value = without$1(u.value, c.value), c.value = null;
14356
- const w = (N = u.value[0]) != null ? N : null;
14357
- a.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
14376
+ const D = (R = u.value[0]) != null ? R : null;
14377
+ a.setSelectedVarCatalog(D), g.value = D ? [D.id] : [];
14358
14378
  }
14359
- function E() {
14379
+ function k() {
14360
14380
  KgUtil.confirm({
14361
14381
  onOk: async () => {
14362
- var w;
14382
+ var D;
14363
14383
  await Delete({
14364
14384
  params: {
14365
- id: (w = a.getSelectedVarCatalog) == null ? void 0 : w.id
14385
+ id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
14366
14386
  }
14367
14387
  }, {
14368
14388
  successMessageMode: "none",
@@ -14373,14 +14393,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14373
14393
  }
14374
14394
  });
14375
14395
  }
14376
- function $(w) {
14377
- var N;
14378
- ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !== w.id && (unref(c) ? KgUtil.confirm({
14396
+ function $(D) {
14397
+ var R;
14398
+ ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) !== D.id && (unref(c) ? KgUtil.confirm({
14379
14399
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
14380
14400
  onOk: () => {
14381
- u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(w)), g.value = [w.id];
14401
+ u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(D)), g.value = [D.id];
14382
14402
  }
14383
- }) : (a.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
14403
+ }) : (a.setSelectedVarCatalog(unref(D)), g.value = [D.id]));
14384
14404
  }
14385
14405
  function M() {
14386
14406
  b.value.visible = !0;
@@ -14395,7 +14415,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14395
14415
  }, {
14396
14416
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
14397
14417
  }), createVNode(Button, {
14398
- onClick: E,
14418
+ onClick: k,
14399
14419
  disabled: _.value,
14400
14420
  ghost: !_.value,
14401
14421
  type: "primary",
@@ -14405,13 +14425,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14405
14425
  })]);
14406
14426
  }
14407
14427
  function O() {
14408
- let w, N;
14428
+ let D, R;
14409
14429
  return createVNode("div", {
14410
14430
  class: "form"
14411
14431
  }, [createVNode(Form, {
14412
14432
  ref: s,
14413
14433
  model: l.value,
14414
- onSubmit: k
14434
+ onSubmit: E
14415
14435
  }, {
14416
14436
  default: () => [createVNode(Form.Item, {
14417
14437
  name: "var_text",
@@ -14422,7 +14442,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14422
14442
  }, {
14423
14443
  default: () => [createVNode(Textarea, {
14424
14444
  value: l.value.var_text,
14425
- "onUpdate:value": (R) => l.value.var_text = R,
14445
+ "onUpdate:value": (P) => l.value.var_text = P,
14426
14446
  disabled: !a.getSelectedVarCatalog
14427
14447
  }, null), createVNode("button", {
14428
14448
  hidden: !0
@@ -14433,21 +14453,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14433
14453
  }, [createVNode(Button, {
14434
14454
  disabled: v.value,
14435
14455
  onClick: A
14436
- }, _isSlot(w = t.t("common.cancelText")) ? w : {
14437
- default: () => [w]
14456
+ }, _isSlot(D = t.t("common.cancelText")) ? D : {
14457
+ default: () => [D]
14438
14458
  }), createVNode(Button, {
14439
14459
  loading: o.value,
14440
14460
  disabled: y.value,
14441
- onClick: k,
14461
+ onClick: E,
14442
14462
  type: "primary"
14443
- }, _isSlot(N = t.t("common.save")) ? N : {
14444
- default: () => [N]
14463
+ }, _isSlot(R = t.t("common.save")) ? R : {
14464
+ default: () => [R]
14445
14465
  })])]);
14446
14466
  }
14447
- function F(w) {
14448
- var R;
14449
- let N = "";
14450
- return w.id || (N += " ant-table-row-create"), w.id === ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) && (N += " ant-table-row-selected "), N;
14467
+ function F(D) {
14468
+ var P;
14469
+ let R = "";
14470
+ return D.id || (R += " ant-table-row-create"), D.id === ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) && (R += " ant-table-row-selected "), R;
14451
14471
  }
14452
14472
  return () => createVNode("div", {
14453
14473
  class: "kg-var-config-modal-var-var-catalog"
@@ -14465,12 +14485,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14465
14485
  loading: n.value,
14466
14486
  rowClassName: F,
14467
14487
  rowSelection: m.value,
14468
- customRow: (w) => ({
14469
- onClick: () => $(w)
14488
+ customRow: (D) => ({
14489
+ onClick: () => $(D)
14470
14490
  })
14471
14491
  }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
14472
14492
  visible: b.value.visible,
14473
- "onUpdate:visible": (w) => b.value.visible = w,
14493
+ "onUpdate:visible": (D) => b.value.visible = D,
14474
14494
  onKgOk: T
14475
14495
  }, null)]);
14476
14496
  }
@@ -14788,8 +14808,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14788
14808
  customRender: ({
14789
14809
  record: T
14790
14810
  }) => {
14791
- var E;
14792
- return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
14811
+ var k;
14812
+ return T.id === ((k = s.value) == null ? void 0 : k.id) ? createVNode("img", {
14793
14813
  src: WAREHOUSE_1890ff
14794
14814
  }, null) : createVNode("img", {
14795
14815
  src: WAREHOUSE_000000
@@ -14799,18 +14819,18 @@ const KgWarehouse$1 = "", getProps = () => ({
14799
14819
  customRender: ({
14800
14820
  record: T
14801
14821
  }) => {
14802
- var E, $, M;
14822
+ var k, $, M;
14803
14823
  const A = T;
14804
- return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
14824
+ return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
14805
14825
  class: "address"
14806
14826
  }, [(M = A.adrId) != null ? M : " "])]);
14807
14827
  }
14808
14828
  }]), c = ref([]), g = computed(() => {
14809
14829
  var A;
14810
14830
  const T = (A = o.value) == null ? void 0 : A.toUpperCase();
14811
- return c.value.filter((E) => {
14812
- var $, M, I, O, F, w;
14813
- return ((M = ($ = E.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(T)) || ((w = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : w.includes(T));
14831
+ return c.value.filter((k) => {
14832
+ var $, M, I, O, F, D;
14833
+ return ((M = ($ = k.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(T)) || ((D = (F = k.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : D.includes(T));
14814
14834
  });
14815
14835
  }), m = computed(() => {
14816
14836
  var T, A;
@@ -14865,17 +14885,17 @@ const KgWarehouse$1 = "", getProps = () => ({
14865
14885
  }
14866
14886
  }
14867
14887
  function C(T, A) {
14868
- var E;
14888
+ var k;
14869
14889
  switch (T.detail) {
14870
14890
  case 1:
14871
- ((E = s.value) == null ? void 0 : E.id) === A.id ? s.value = null : s.value = A;
14891
+ ((k = s.value) == null ? void 0 : k.id) === A.id ? s.value = null : s.value = A;
14872
14892
  break;
14873
14893
  case 2:
14874
14894
  s.value = A, v();
14875
14895
  break;
14876
14896
  }
14877
14897
  }
14878
- function k() {
14898
+ function E() {
14879
14899
  return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14880
14900
  title: r.t("kg.KgWarehouse.warehouse"),
14881
14901
  placement: "bottomRight"
@@ -14927,7 +14947,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14927
14947
  var A;
14928
14948
  return {
14929
14949
  class: T.id === ((A = s.value) == null ? void 0 : A.id) ? "selected" : "",
14930
- onClick: (E) => C(E, T)
14950
+ onClick: (k) => C(k, T)
14931
14951
  };
14932
14952
  }
14933
14953
  }, null)]
@@ -14936,7 +14956,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14936
14956
  return () => createVNode("div", {
14937
14957
  class: n.value,
14938
14958
  onClick: b
14939
- }, [k()]);
14959
+ }, [E()]);
14940
14960
  }
14941
14961
  });
14942
14962
  function createKgWarehouseGuard(e, t) {