@kengic/vue 0.6.2 → 0.6.3-beta.1

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 b = 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), E = C[0], T = C[1];
2185
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), k = 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: _,
2194
2194
  icon: i,
2195
- primaryColor: E,
2195
+ primaryColor: k,
2196
2196
  secondaryColor: T,
2197
2197
  style: b
2198
2198
  }, null)]);
@@ -2998,11 +2998,11 @@ function iconToSVG(e, t) {
2998
2998
  ), v.push("scale(-1 1)"), n.top = n.left = 0) : y && (v.push(
2999
2999
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3000
3000
  ), v.push("scale(1 -1)"), n.top = n.left = 0);
3001
- let E;
3001
+ let k;
3002
3002
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
3003
3003
  case 1:
3004
- E = n.height / 2 + n.top, v.unshift(
3005
- "rotate(90 " + E.toString() + " " + E.toString() + ")"
3004
+ k = n.height / 2 + n.top, v.unshift(
3005
+ "rotate(90 " + k.toString() + " " + k.toString() + ")"
3006
3006
  );
3007
3007
  break;
3008
3008
  case 2:
@@ -3011,12 +3011,12 @@ function iconToSVG(e, t) {
3011
3011
  );
3012
3012
  break;
3013
3013
  case 3:
3014
- E = n.width / 2 + n.left, v.unshift(
3015
- "rotate(-90 " + E.toString() + " " + E.toString() + ")"
3014
+ k = n.width / 2 + n.left, v.unshift(
3015
+ "rotate(-90 " + k.toString() + " " + k.toString() + ")"
3016
3016
  );
3017
3017
  break;
3018
3018
  }
3019
- 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)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
3019
+ 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)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
3020
3020
  });
3021
3021
  const i = a.width, s = a.height, l = n.width, u = n.height;
3022
3022
  let c, g;
@@ -3296,12 +3296,12 @@ function sendQuery(e, t, r, a) {
3296
3296
  const n = e.resources.length, o = e.random ? Math.floor(Math.random() * n) : e.index;
3297
3297
  let i;
3298
3298
  if (e.random) {
3299
- let k = e.resources.slice(0);
3300
- for (i = []; k.length > 1; ) {
3301
- const V = Math.floor(Math.random() * k.length);
3302
- i.push(k[V]), k = k.slice(0, V).concat(k.slice(V + 1));
3299
+ let E = e.resources.slice(0);
3300
+ for (i = []; E.length > 1; ) {
3301
+ const $ = Math.floor(Math.random() * E.length);
3302
+ i.push(E[$]), E = E.slice(0, $).concat(E.slice($ + 1));
3303
3303
  }
3304
- i = i.concat(k);
3304
+ i = i.concat(E);
3305
3305
  } else
3306
3306
  i = e.resources.slice(o).concat(e.resources.slice(0, o));
3307
3307
  const s = Date.now();
@@ -3311,12 +3311,12 @@ function sendQuery(e, t, r, a) {
3311
3311
  g && (clearTimeout(g), g = null);
3312
3312
  }
3313
3313
  function v() {
3314
- l === "pending" && (l = "aborted"), _(), p.forEach((k) => {
3315
- k.status === "pending" && (k.status = "aborted");
3314
+ l === "pending" && (l = "aborted"), _(), p.forEach((E) => {
3315
+ E.status === "pending" && (E.status = "aborted");
3316
3316
  }), p = [];
3317
3317
  }
3318
- function b(k, V) {
3319
- V && (m = []), typeof k == "function" && m.push(k);
3318
+ function b(E, $) {
3319
+ $ && (m = []), typeof E == "function" && m.push(E);
3320
3320
  }
3321
3321
  function y() {
3322
3322
  return {
@@ -3330,68 +3330,68 @@ function sendQuery(e, t, r, a) {
3330
3330
  };
3331
3331
  }
3332
3332
  function C() {
3333
- l = "failed", m.forEach((k) => {
3334
- k(void 0, c);
3333
+ l = "failed", m.forEach((E) => {
3334
+ E(void 0, c);
3335
3335
  });
3336
3336
  }
3337
- function E() {
3338
- p.forEach((k) => {
3339
- k.status === "pending" && (k.status = "aborted");
3337
+ function k() {
3338
+ p.forEach((E) => {
3339
+ E.status === "pending" && (E.status = "aborted");
3340
3340
  }), p = [];
3341
3341
  }
3342
- function T(k, V, M) {
3343
- const A = V !== "success";
3344
- switch (p = p.filter((O) => O !== k), l) {
3342
+ function T(E, $, M) {
3343
+ const I = $ !== "success";
3344
+ switch (p = p.filter((O) => O !== E), l) {
3345
3345
  case "pending":
3346
3346
  break;
3347
3347
  case "failed":
3348
- if (A || !e.dataAfterTimeout)
3348
+ if (I || !e.dataAfterTimeout)
3349
3349
  return;
3350
3350
  break;
3351
3351
  default:
3352
3352
  return;
3353
3353
  }
3354
- if (V === "abort") {
3354
+ if ($ === "abort") {
3355
3355
  c = M, C();
3356
3356
  return;
3357
3357
  }
3358
- if (A) {
3359
- c = M, p.length || (i.length ? I() : C());
3358
+ if (I) {
3359
+ c = M, p.length || (i.length ? A() : C());
3360
3360
  return;
3361
3361
  }
3362
- if (_(), E(), !e.random) {
3363
- const O = e.resources.indexOf(k.resource);
3362
+ if (_(), k(), !e.random) {
3363
+ const O = e.resources.indexOf(E.resource);
3364
3364
  O !== -1 && O !== e.index && (e.index = O);
3365
3365
  }
3366
3366
  l = "completed", m.forEach((O) => {
3367
3367
  O(M);
3368
3368
  });
3369
3369
  }
3370
- function I() {
3370
+ function A() {
3371
3371
  if (l !== "pending")
3372
3372
  return;
3373
3373
  _();
3374
- const k = i.shift();
3375
- if (k === void 0) {
3374
+ const E = i.shift();
3375
+ if (E === void 0) {
3376
3376
  if (p.length) {
3377
3377
  g = setTimeout(() => {
3378
- _(), l === "pending" && (E(), C());
3378
+ _(), l === "pending" && (k(), C());
3379
3379
  }, e.timeout);
3380
3380
  return;
3381
3381
  }
3382
3382
  C();
3383
3383
  return;
3384
3384
  }
3385
- const V = {
3385
+ const $ = {
3386
3386
  status: "pending",
3387
- resource: k,
3388
- callback: (M, A) => {
3389
- T(V, M, A);
3387
+ resource: E,
3388
+ callback: (M, I) => {
3389
+ T($, M, I);
3390
3390
  }
3391
3391
  };
3392
- p.push(V), u++, g = setTimeout(I, e.rotate), r(k, t, V.callback);
3392
+ p.push($), u++, g = setTimeout(A, e.rotate), r(E, t, $.callback);
3393
3393
  }
3394
- return setTimeout(I), y;
3394
+ return setTimeout(A), y;
3395
3395
  }
3396
3396
  function initRedundancy(e) {
3397
3397
  const t = {
@@ -3920,207 +3920,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3920
3920
  (function(r, a) {
3921
3921
  e.exports = a();
3922
3922
  })(commonjsGlobal, function() {
3923
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", v = "Invalid Date", b = /^(\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) {
3924
- var N = ["th", "st", "nd", "rd"], $ = R % 100;
3925
- return "[" + R + (N[($ - 20) % 10] || N[$] || N[0]) + "]";
3926
- } }, E = function(R, N, $) {
3927
- var w = String(R);
3928
- return !w || w.length >= N ? R : "" + Array(N + 1 - w.length).join($) + R;
3929
- }, T = { s: E, z: function(R) {
3930
- var N = -R.utcOffset(), $ = Math.abs(N), w = Math.floor($ / 60), D = $ % 60;
3931
- return (N <= 0 ? "+" : "-") + E(w, 2, "0") + ":" + E(D, 2, "0");
3932
- }, m: function R(N, $) {
3933
- if (N.date() < $.date())
3934
- return -R($, N);
3935
- var w = 12 * ($.year() - N.year()) + ($.month() - N.month()), D = N.clone().add(w, g), B = $ - D < 0, x = N.clone().add(w + (B ? -1 : 1), g);
3936
- return +(-(w + ($ - D) / (B ? D - x : x - D)) || 0);
3937
- }, a: function(R) {
3938
- return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
3939
- }, p: function(R) {
3940
- return { M: g, y: m, w: c, d: u, D: _, h: l, m: s, s: i, ms: o, Q: p }[R] || String(R || "").toLowerCase().replace(/s$/, "");
3941
- }, u: function(R) {
3942
- return R === void 0;
3943
- } }, I = "en", k = {};
3944
- k[I] = C;
3945
- var V = function(R) {
3946
- return R instanceof K;
3947
- }, M = function R(N, $, w) {
3948
- var D;
3949
- if (!N)
3950
- return I;
3951
- if (typeof N == "string") {
3952
- var B = N.toLowerCase();
3953
- k[B] && (D = B), $ && (k[B] = $, D = B);
3954
- var x = N.split("-");
3955
- if (!D && x.length > 1)
3956
- return R(x[0]);
3923
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", v = "Invalid Date", b = /^(\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) {
3924
+ var R = ["th", "st", "nd", "rd"], D = N % 100;
3925
+ return "[" + N + (R[(D - 20) % 10] || R[D] || R[0]) + "]";
3926
+ } }, k = function(N, R, D) {
3927
+ var V = String(N);
3928
+ return !V || V.length >= R ? N : "" + Array(R + 1 - V.length).join(D) + N;
3929
+ }, T = { s: k, z: function(N) {
3930
+ var R = -N.utcOffset(), D = Math.abs(R), V = Math.floor(D / 60), P = D % 60;
3931
+ return (R <= 0 ? "+" : "-") + k(V, 2, "0") + ":" + k(P, 2, "0");
3932
+ }, m: function N(R, D) {
3933
+ if (R.date() < D.date())
3934
+ return -N(D, R);
3935
+ 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);
3936
+ return +(-(V + (D - P) / (B ? P - x : x - P)) || 0);
3937
+ }, a: function(N) {
3938
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
3939
+ }, p: function(N) {
3940
+ return { M: g, y: m, w: c, d: u, D: _, h: l, m: s, s: i, ms: o, Q: p }[N] || String(N || "").toLowerCase().replace(/s$/, "");
3941
+ }, u: function(N) {
3942
+ return N === void 0;
3943
+ } }, A = "en", E = {};
3944
+ E[A] = C;
3945
+ var $ = function(N) {
3946
+ return N instanceof F;
3947
+ }, M = function N(R, D, V) {
3948
+ var P;
3949
+ if (!R)
3950
+ return A;
3951
+ if (typeof R == "string") {
3952
+ var B = R.toLowerCase();
3953
+ E[B] && (P = B), D && (E[B] = D, P = B);
3954
+ var x = R.split("-");
3955
+ if (!P && x.length > 1)
3956
+ return N(x[0]);
3957
3957
  } else {
3958
- var H = N.name;
3959
- k[H] = N, D = H;
3960
- }
3961
- return !w && D && (I = D), D || !w && I;
3962
- }, A = function(R, N) {
3963
- if (V(R))
3964
- return R.clone();
3965
- var $ = typeof N == "object" ? N : {};
3966
- return $.date = R, $.args = arguments, new K($);
3958
+ var G = R.name;
3959
+ E[G] = R, P = G;
3960
+ }
3961
+ return !V && P && (A = P), P || !V && A;
3962
+ }, I = function(N, R) {
3963
+ if ($(N))
3964
+ return N.clone();
3965
+ var D = typeof R == "object" ? R : {};
3966
+ return D.date = N, D.args = arguments, new F(D);
3967
3967
  }, O = T;
3968
- O.l = M, O.i = V, O.w = function(R, N) {
3969
- return A(R, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
3968
+ O.l = M, O.i = $, O.w = function(N, R) {
3969
+ return I(N, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
3970
3970
  };
3971
- var K = function() {
3972
- function R($) {
3973
- this.$L = M($.locale, null, !0), this.parse($);
3974
- }
3975
- var N = R.prototype;
3976
- return N.parse = function($) {
3977
- this.$d = function(w) {
3978
- var D = w.date, B = w.utc;
3979
- if (D === null)
3971
+ var F = function() {
3972
+ function N(D) {
3973
+ this.$L = M(D.locale, null, !0), this.parse(D);
3974
+ }
3975
+ var R = N.prototype;
3976
+ return R.parse = function(D) {
3977
+ this.$d = function(V) {
3978
+ var P = V.date, B = V.utc;
3979
+ if (P === null)
3980
3980
  return new Date(NaN);
3981
- if (O.u(D))
3981
+ if (O.u(P))
3982
3982
  return new Date();
3983
- if (D instanceof Date)
3984
- return new Date(D);
3985
- if (typeof D == "string" && !/Z$/i.test(D)) {
3986
- var x = D.match(b);
3983
+ if (P instanceof Date)
3984
+ return new Date(P);
3985
+ if (typeof P == "string" && !/Z$/i.test(P)) {
3986
+ var x = P.match(b);
3987
3987
  if (x) {
3988
- var H = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
3989
- return B ? new Date(Date.UTC(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y)) : new Date(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y);
3988
+ var G = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
3989
+ 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);
3990
3990
  }
3991
3991
  }
3992
- return new Date(D);
3993
- }($), this.$x = $.x || {}, this.init();
3994
- }, N.init = function() {
3995
- var $ = this.$d;
3996
- this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
3997
- }, N.$utils = function() {
3992
+ return new Date(P);
3993
+ }(D), this.$x = D.x || {}, this.init();
3994
+ }, R.init = function() {
3995
+ var D = this.$d;
3996
+ 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();
3997
+ }, R.$utils = function() {
3998
3998
  return O;
3999
- }, N.isValid = function() {
3999
+ }, R.isValid = function() {
4000
4000
  return this.$d.toString() !== v;
4001
- }, N.isSame = function($, w) {
4002
- var D = A($);
4003
- return this.startOf(w) <= D && D <= this.endOf(w);
4004
- }, N.isAfter = function($, w) {
4005
- return A($) < this.startOf(w);
4006
- }, N.isBefore = function($, w) {
4007
- return this.endOf(w) < A($);
4008
- }, N.$g = function($, w, D) {
4009
- return O.u($) ? this[w] : this.set(D, $);
4010
- }, N.unix = function() {
4001
+ }, R.isSame = function(D, V) {
4002
+ var P = I(D);
4003
+ return this.startOf(V) <= P && P <= this.endOf(V);
4004
+ }, R.isAfter = function(D, V) {
4005
+ return I(D) < this.startOf(V);
4006
+ }, R.isBefore = function(D, V) {
4007
+ return this.endOf(V) < I(D);
4008
+ }, R.$g = function(D, V, P) {
4009
+ return O.u(D) ? this[V] : this.set(P, D);
4010
+ }, R.unix = function() {
4011
4011
  return Math.floor(this.valueOf() / 1e3);
4012
- }, N.valueOf = function() {
4012
+ }, R.valueOf = function() {
4013
4013
  return this.$d.getTime();
4014
- }, N.startOf = function($, w) {
4015
- var D = this, B = !!O.u(w) || w, x = O.p($), H = function(L, F) {
4016
- var G = O.w(D.$u ? Date.UTC(D.$y, F, L) : new Date(D.$y, F, L), D);
4017
- return B ? G : G.endOf(u);
4018
- }, Y = function(L, F) {
4019
- return O.w(D.toDate()[L].apply(D.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), D);
4020
- }, q = this.$W, Z = this.$M, ae = this.$D, ne = "set" + (this.$u ? "UTC" : "");
4014
+ }, R.startOf = function(D, V) {
4015
+ var P = this, B = !!O.u(V) || V, x = O.p(D), G = function(ge, te) {
4016
+ var L = O.w(P.$u ? Date.UTC(P.$y, te, ge) : new Date(P.$y, te, ge), P);
4017
+ return B ? L : L.endOf(u);
4018
+ }, Y = function(ge, te) {
4019
+ return O.w(P.toDate()[ge].apply(P.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), P);
4020
+ }, q = this.$W, Z = this.$M, ne = this.$D, oe = "set" + (this.$u ? "UTC" : "");
4021
4021
  switch (x) {
4022
4022
  case m:
4023
- return B ? H(1, 0) : H(31, 11);
4023
+ return B ? G(1, 0) : G(31, 11);
4024
4024
  case g:
4025
- return B ? H(1, Z) : H(0, Z + 1);
4025
+ return B ? G(1, Z) : G(0, Z + 1);
4026
4026
  case c:
4027
- var de = this.$locale().weekStart || 0, ge = (q < de ? q + 7 : q) - de;
4028
- return H(B ? ae - ge : ae + (6 - ge), Z);
4027
+ var fe = this.$locale().weekStart || 0, pe = (q < fe ? q + 7 : q) - fe;
4028
+ return G(B ? ne - pe : ne + (6 - pe), Z);
4029
4029
  case u:
4030
4030
  case _:
4031
- return Y(ne + "Hours", 0);
4031
+ return Y(oe + "Hours", 0);
4032
4032
  case l:
4033
- return Y(ne + "Minutes", 1);
4033
+ return Y(oe + "Minutes", 1);
4034
4034
  case s:
4035
- return Y(ne + "Seconds", 2);
4035
+ return Y(oe + "Seconds", 2);
4036
4036
  case i:
4037
- return Y(ne + "Milliseconds", 3);
4037
+ return Y(oe + "Milliseconds", 3);
4038
4038
  default:
4039
4039
  return this.clone();
4040
4040
  }
4041
- }, N.endOf = function($) {
4042
- return this.startOf($, !1);
4043
- }, N.$set = function($, w) {
4044
- var D, B = O.p($), x = "set" + (this.$u ? "UTC" : ""), H = (D = {}, D[u] = x + "Date", D[_] = x + "Date", D[g] = x + "Month", D[m] = x + "FullYear", D[l] = x + "Hours", D[s] = x + "Minutes", D[i] = x + "Seconds", D[o] = x + "Milliseconds", D)[B], Y = B === u ? this.$D + (w - this.$W) : w;
4041
+ }, R.endOf = function(D) {
4042
+ return this.startOf(D, !1);
4043
+ }, R.$set = function(D, V) {
4044
+ var P, B = O.p(D), x = "set" + (this.$u ? "UTC" : ""), G = (P = {}, P[u] = x + "Date", P[_] = x + "Date", P[g] = x + "Month", P[m] = 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
4045
  if (B === g || B === m) {
4046
4046
  var q = this.clone().set(_, 1);
4047
- q.$d[H](Y), q.init(), this.$d = q.set(_, Math.min(this.$D, q.daysInMonth())).$d;
4047
+ q.$d[G](Y), q.init(), this.$d = q.set(_, Math.min(this.$D, q.daysInMonth())).$d;
4048
4048
  } else
4049
- H && this.$d[H](Y);
4049
+ G && this.$d[G](Y);
4050
4050
  return this.init(), this;
4051
- }, N.set = function($, w) {
4052
- return this.clone().$set($, w);
4053
- }, N.get = function($) {
4054
- return this[O.p($)]();
4055
- }, N.add = function($, w) {
4056
- var D, B = this;
4057
- $ = Number($);
4058
- var x = O.p(w), H = function(Z) {
4059
- var ae = A(B);
4060
- return O.w(ae.date(ae.date() + Math.round(Z * $)), B);
4051
+ }, R.set = function(D, V) {
4052
+ return this.clone().$set(D, V);
4053
+ }, R.get = function(D) {
4054
+ return this[O.p(D)]();
4055
+ }, R.add = function(D, V) {
4056
+ var P, B = this;
4057
+ D = Number(D);
4058
+ var x = O.p(V), G = function(Z) {
4059
+ var ne = I(B);
4060
+ return O.w(ne.date(ne.date() + Math.round(Z * D)), B);
4061
4061
  };
4062
4062
  if (x === g)
4063
- return this.set(g, this.$M + $);
4063
+ return this.set(g, this.$M + D);
4064
4064
  if (x === m)
4065
- return this.set(m, this.$y + $);
4065
+ return this.set(m, this.$y + D);
4066
4066
  if (x === u)
4067
- return H(1);
4067
+ return G(1);
4068
4068
  if (x === c)
4069
- return H(7);
4070
- var Y = (D = {}, D[s] = a, D[l] = n, D[i] = r, D)[x] || 1, q = this.$d.getTime() + $ * Y;
4069
+ return G(7);
4070
+ var Y = (P = {}, P[s] = a, P[l] = n, P[i] = r, P)[x] || 1, q = this.$d.getTime() + D * Y;
4071
4071
  return O.w(q, this);
4072
- }, N.subtract = function($, w) {
4073
- return this.add(-1 * $, w);
4074
- }, N.format = function($) {
4075
- var w = this, D = this.$locale();
4072
+ }, R.subtract = function(D, V) {
4073
+ return this.add(-1 * D, V);
4074
+ }, R.format = function(D) {
4075
+ var V = this, P = this.$locale();
4076
4076
  if (!this.isValid())
4077
- return D.invalidDate || v;
4078
- var B = $ || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), H = this.$H, Y = this.$m, q = this.$M, Z = D.weekdays, ae = D.months, ne = function(F, G, z, J) {
4079
- return F && (F[G] || F(w, B)) || z[G].slice(0, J);
4080
- }, de = function(F) {
4081
- return O.s(H % 12 || 12, F, "0");
4082
- }, ge = D.meridiem || function(F, G, z) {
4083
- var J = F < 12 ? "AM" : "PM";
4084
- return z ? J.toLowerCase() : J;
4085
- }, L = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: ne(D.monthsShort, q, ae, 3), MMMM: ne(ae, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(D.weekdaysMin, this.$W, Z, 2), ddd: ne(D.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(H), HH: O.s(H, 2, "0"), h: de(1), hh: de(2), a: ge(H, Y, !0), A: ge(H, 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 };
4086
- return B.replace(y, function(F, G) {
4087
- return G || L[F] || x.replace(":", "");
4077
+ return P.invalidDate || v;
4078
+ 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) {
4079
+ return te && (te[L] || te(V, B)) || K[L].slice(0, H);
4080
+ }, fe = function(te) {
4081
+ return O.s(G % 12 || 12, te, "0");
4082
+ }, pe = P.meridiem || function(te, L, K) {
4083
+ var H = te < 12 ? "AM" : "PM";
4084
+ return K ? H.toLowerCase() : H;
4085
+ }, 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 };
4086
+ return B.replace(y, function(te, L) {
4087
+ return L || ge[te] || x.replace(":", "");
4088
4088
  });
4089
- }, N.utcOffset = function() {
4089
+ }, R.utcOffset = function() {
4090
4090
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4091
- }, N.diff = function($, w, D) {
4092
- var B, x = O.p(w), H = A($), Y = (H.utcOffset() - this.utcOffset()) * a, q = this - H, Z = O.m(this, H);
4093
- return Z = (B = {}, B[m] = Z / 12, B[g] = Z, B[p] = 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, D ? Z : O.a(Z);
4094
- }, N.daysInMonth = function() {
4091
+ }, R.diff = function(D, V, P) {
4092
+ var B, x = O.p(V), G = I(D), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
4093
+ return Z = (B = {}, B[m] = Z / 12, B[g] = Z, B[p] = 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);
4094
+ }, R.daysInMonth = function() {
4095
4095
  return this.endOf(g).$D;
4096
- }, N.$locale = function() {
4097
- return k[this.$L];
4098
- }, N.locale = function($, w) {
4099
- if (!$)
4096
+ }, R.$locale = function() {
4097
+ return E[this.$L];
4098
+ }, R.locale = function(D, V) {
4099
+ if (!D)
4100
4100
  return this.$L;
4101
- var D = this.clone(), B = M($, w, !0);
4102
- return B && (D.$L = B), D;
4103
- }, N.clone = function() {
4101
+ var P = this.clone(), B = M(D, V, !0);
4102
+ return B && (P.$L = B), P;
4103
+ }, R.clone = function() {
4104
4104
  return O.w(this.$d, this);
4105
- }, N.toDate = function() {
4105
+ }, R.toDate = function() {
4106
4106
  return new Date(this.valueOf());
4107
- }, N.toJSON = function() {
4107
+ }, R.toJSON = function() {
4108
4108
  return this.isValid() ? this.toISOString() : null;
4109
- }, N.toISOString = function() {
4109
+ }, R.toISOString = function() {
4110
4110
  return this.$d.toISOString();
4111
- }, N.toString = function() {
4111
+ }, R.toString = function() {
4112
4112
  return this.$d.toUTCString();
4113
- }, R;
4114
- }(), P = K.prototype;
4115
- return A.prototype = P, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", _]].forEach(function(R) {
4116
- P[R[1]] = function(N) {
4117
- return this.$g(N, R[0], R[1]);
4113
+ }, N;
4114
+ }(), w = F.prototype;
4115
+ return I.prototype = w, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", _]].forEach(function(N) {
4116
+ w[N[1]] = function(R) {
4117
+ return this.$g(R, N[0], N[1]);
4118
4118
  };
4119
- }), A.extend = function(R, N) {
4120
- return R.$i || (R(N, K, A), R.$i = !0), A;
4121
- }, A.locale = M, A.isDayjs = V, A.unix = function(R) {
4122
- return A(1e3 * R);
4123
- }, A.en = k[I], A.Ls = k, A.p = {}, A;
4119
+ }), I.extend = function(N, R) {
4120
+ return N.$i || (N(R, F, I), N.$i = !0), I;
4121
+ }, I.locale = M, I.isDayjs = $, I.unix = function(N) {
4122
+ return I(1e3 * N);
4123
+ }, I.en = E[A], I.Ls = E, I.p = {}, I;
4124
4124
  });
4125
4125
  })(dayjs_min);
4126
4126
  const dayjs = dayjs_min.exports;
@@ -4165,32 +4165,32 @@ function filesize(e, {
4165
4165
  roundingMethod: v = ROUND,
4166
4166
  precision: b = 0
4167
4167
  } = {}) {
4168
- let y = _, C = Number(e), E = [], T = 0, I = EMPTY;
4168
+ let y = _, C = Number(e), k = [], T = 0, A = EMPTY;
4169
4169
  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);
4170
- const k = a === 10 ? 1e3 : 1024, V = p === !0, M = C < 0, A = Math[v];
4170
+ const E = a === 10 ? 1e3 : 1024, $ = p === !0, M = C < 0, I = Math[v];
4171
4171
  if (typeof e != "bigint" && isNaN(e))
4172
4172
  throw new TypeError(INVALID_NUMBER);
4173
- if (typeof A !== FUNCTION)
4173
+ if (typeof I !== FUNCTION)
4174
4174
  throw new TypeError(INVALID_ROUND);
4175
- if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (b > 0 && (b += 8 - y), y = 8), g === EXPONENT)
4175
+ if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (b > 0 && (b += 8 - y), y = 8), g === EXPONENT)
4176
4176
  return y;
4177
4177
  if (C === 0)
4178
- E[0] = 0, I = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4178
+ k[0] = 0, A = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4179
4179
  else {
4180
- 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++));
4180
+ 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++));
4181
4181
  const O = Math.pow(10, y > 0 ? n : 0);
4182
- E[0] = A(T * O) / O, E[0] === k && y < 8 && _ === -1 && (E[0] = 1, y++), I = E[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4182
+ k[0] = I(T * O) / O, k[0] === E && y < 8 && _ === -1 && (k[0] = 1, y++), A = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4183
4183
  }
4184
- if (M && (E[0] = -E[0]), b > 0 && (E[0] = E[0].toPrecision(b)), 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) {
4185
- const O = s || PERIOD, K = E[0].toString().split(O), P = K[1] || EMPTY, R = P.length, N = n - R;
4186
- E[0] = `${K[0]}${O}${P.padEnd(R + N, ZERO)}`;
4184
+ if (M && (k[0] = -k[0]), b > 0 && (k[0] = k[0].toPrecision(b)), 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) {
4185
+ const O = s || PERIOD, F = k[0].toString().split(O), w = F[1] || EMPTY, N = w.length, R = n - N;
4186
+ k[0] = `${F[0]}${O}${w.padEnd(N + R, ZERO)}`;
4187
4187
  }
4188
- return V && (E[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
4189
- value: E[0],
4190
- symbol: E[1],
4188
+ return $ && (k[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), g === ARRAY ? k : g === OBJECT ? {
4189
+ value: k[0],
4190
+ symbol: k[1],
4191
4191
  exponent: y,
4192
- unit: I
4193
- } : E.join(l);
4192
+ unit: A
4193
+ } : k.join(l);
4194
4194
  }
4195
4195
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4196
4196
  const freeGlobal$1 = freeGlobal;
@@ -5372,16 +5372,16 @@ function equalObjects(e, t, r, a, n, o) {
5372
5372
  p = s[g];
5373
5373
  var y = e[p], C = t[p];
5374
5374
  if (a)
5375
- var E = i ? a(C, y, p, t, e, o) : a(y, C, p, e, t, o);
5376
- if (!(E === void 0 ? y === C || n(y, C, r, a, o) : E)) {
5375
+ var k = i ? a(C, y, p, t, e, o) : a(y, C, p, e, t, o);
5376
+ if (!(k === void 0 ? y === C || n(y, C, r, a, o) : k)) {
5377
5377
  v = !1;
5378
5378
  break;
5379
5379
  }
5380
5380
  b || (b = p == "constructor");
5381
5381
  }
5382
5382
  if (v && !b) {
5383
- var T = e.constructor, I = t.constructor;
5384
- T != I && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof I == "function" && I instanceof I) && (v = !1);
5383
+ var T = e.constructor, A = t.constructor;
5384
+ T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (v = !1);
5385
5385
  }
5386
5386
  return o.delete(e), o.delete(t), v;
5387
5387
  }
@@ -6576,26 +6576,26 @@ function createSetupStore(e, t, r = {}, a, n) {
6576
6576
  deep: !0
6577
6577
  };
6578
6578
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
6579
- u ? m = M : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6579
+ u ? m = M : u == !1 && !E._hotUpdating && (Array.isArray(m) ? m.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6580
6580
  });
6581
6581
  let u, c, g = markRaw([]), p = markRaw([]), m;
6582
6582
  const _ = a.state.value[e];
6583
6583
  !i && !_ && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6584
6584
  const v = ref({});
6585
6585
  function b(M) {
6586
- let A;
6587
- u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof M == "function" ? (M(a.state.value[e]), A = {
6586
+ let I;
6587
+ u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof M == "function" ? (M(a.state.value[e]), I = {
6588
6588
  type: MutationType.patchFunction,
6589
6589
  storeId: e,
6590
6590
  events: m
6591
- }) : (mergeReactiveObjects(a.state.value[e], M), A = {
6591
+ }) : (mergeReactiveObjects(a.state.value[e], M), I = {
6592
6592
  type: MutationType.patchObject,
6593
6593
  payload: M,
6594
6594
  storeId: e,
6595
6595
  events: m
6596
6596
  }), nextTick().then(() => {
6597
6597
  u = !0;
6598
- }), c = !0, triggerSubscriptions(g, A, a.state.value[e]);
6598
+ }), c = !0, triggerSubscriptions(g, I, a.state.value[e]);
6599
6599
  }
6600
6600
  const y = process.env.NODE_ENV !== "production" ? () => {
6601
6601
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -6603,30 +6603,30 @@ function createSetupStore(e, t, r = {}, a, n) {
6603
6603
  function C() {
6604
6604
  o.stop(), g = [], p = [], a._s.delete(e);
6605
6605
  }
6606
- function E(M, A) {
6606
+ function k(M, I) {
6607
6607
  return function() {
6608
6608
  setActivePinia(a);
6609
- const O = Array.from(arguments), K = [], P = [];
6610
- function R(w) {
6611
- K.push(w);
6609
+ const O = Array.from(arguments), F = [], w = [];
6610
+ function N(V) {
6611
+ F.push(V);
6612
6612
  }
6613
- function N(w) {
6614
- P.push(w);
6613
+ function R(V) {
6614
+ w.push(V);
6615
6615
  }
6616
6616
  triggerSubscriptions(p, {
6617
6617
  args: O,
6618
6618
  name: M,
6619
- store: k,
6620
- after: R,
6621
- onError: N
6619
+ store: E,
6620
+ after: N,
6621
+ onError: R
6622
6622
  });
6623
- let $;
6623
+ let D;
6624
6624
  try {
6625
- $ = A.apply(this && this.$id === e ? this : k, O);
6626
- } catch (w) {
6627
- throw triggerSubscriptions(P, w), w;
6625
+ D = I.apply(this && this.$id === e ? this : E, O);
6626
+ } catch (V) {
6627
+ throw triggerSubscriptions(w, V), V;
6628
6628
  }
6629
- return $ instanceof Promise ? $.then((w) => (triggerSubscriptions(K, w), w)).catch((w) => (triggerSubscriptions(P, w), Promise.reject(w))) : (triggerSubscriptions(K, $), $);
6629
+ return D instanceof Promise ? D.then((V) => (triggerSubscriptions(F, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions(F, D), D);
6630
6630
  };
6631
6631
  }
6632
6632
  const T = /* @__PURE__ */ markRaw({
@@ -6634,109 +6634,109 @@ function createSetupStore(e, t, r = {}, a, n) {
6634
6634
  getters: {},
6635
6635
  state: [],
6636
6636
  hotState: v
6637
- }), I = {
6637
+ }), A = {
6638
6638
  _p: a,
6639
6639
  $id: e,
6640
6640
  $onAction: addSubscription.bind(null, p),
6641
6641
  $patch: b,
6642
6642
  $reset: y,
6643
- $subscribe(M, A = {}) {
6644
- const O = addSubscription(g, M, A.detached, () => K()), K = o.run(() => watch(() => a.state.value[e], (P) => {
6645
- (A.flush === "sync" ? c : u) && M({
6643
+ $subscribe(M, I = {}) {
6644
+ const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (w) => {
6645
+ (I.flush === "sync" ? c : u) && M({
6646
6646
  storeId: e,
6647
6647
  type: MutationType.direct,
6648
6648
  events: m
6649
- }, P);
6650
- }, assign$1({}, l, A)));
6649
+ }, w);
6650
+ }, assign$1({}, l, I)));
6651
6651
  return O;
6652
6652
  },
6653
6653
  $dispose: C
6654
- }, k = reactive(assign$1(
6654
+ }, E = reactive(assign$1(
6655
6655
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6656
6656
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6657
6657
  _hmrPayload: T
6658
6658
  } : {},
6659
- I
6659
+ A
6660
6660
  ));
6661
- a._s.set(e, k);
6662
- const V = a._e.run(() => (o = effectScope(), o.run(() => t())));
6663
- for (const M in V) {
6664
- const A = V[M];
6665
- if (isRef(A) && !isComputed(A) || isReactive(A))
6666
- process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef(V, M)) : i || (_ && shouldHydrate(A) && (isRef(A) ? A.value = _[M] : mergeReactiveObjects(A, _[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && T.state.push(M);
6667
- else if (typeof A == "function") {
6668
- const O = process.env.NODE_ENV !== "production" && n ? A : E(M, A);
6669
- V[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A), s.actions[M] = A;
6661
+ a._s.set(e, E);
6662
+ const $ = a._e.run(() => (o = effectScope(), o.run(() => t())));
6663
+ for (const M in $) {
6664
+ const I = $[M];
6665
+ if (isRef(I) && !isComputed(I) || isReactive(I))
6666
+ process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef($, M)) : i || (_ && shouldHydrate(I) && (isRef(I) ? I.value = _[M] : mergeReactiveObjects(I, _[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && T.state.push(M);
6667
+ else if (typeof I == "function") {
6668
+ const O = process.env.NODE_ENV !== "production" && n ? I : k(M, I);
6669
+ $[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = I), s.actions[M] = I;
6670
6670
  } else
6671
- process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] = i ? r.getters[M] : A, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(M));
6671
+ process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[M] = i ? r.getters[M] : I, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
6672
6672
  }
6673
- if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
6673
+ if (assign$1(E, $), assign$1(toRaw(E), $), Object.defineProperty(E, "$state", {
6674
6674
  get: () => process.env.NODE_ENV !== "production" && n ? v.value : a.state.value[e],
6675
6675
  set: (M) => {
6676
6676
  if (process.env.NODE_ENV !== "production" && n)
6677
6677
  throw new Error("cannot set hotState");
6678
- b((A) => {
6679
- assign$1(A, M);
6678
+ b((I) => {
6679
+ assign$1(I, M);
6680
6680
  });
6681
6681
  }
6682
6682
  }), process.env.NODE_ENV !== "production") {
6683
- k._hotUpdate = markRaw((A) => {
6684
- k._hotUpdating = !0, A._hmrPayload.state.forEach((O) => {
6685
- if (O in k.$state) {
6686
- const K = A.$state[O], P = k.$state[O];
6687
- typeof K == "object" && isPlainObject(K) && isPlainObject(P) ? patchObject(K, P) : A.$state[O] = P;
6683
+ E._hotUpdate = markRaw((I) => {
6684
+ E._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6685
+ if (O in E.$state) {
6686
+ const F = I.$state[O], w = E.$state[O];
6687
+ typeof F == "object" && isPlainObject(F) && isPlainObject(w) ? patchObject(F, w) : I.$state[O] = w;
6688
6688
  }
6689
- set(k, O, toRef(A.$state, O));
6690
- }), Object.keys(k.$state).forEach((O) => {
6691
- O in A.$state || del(k, O);
6692
- }), u = !1, c = !1, a.state.value[e] = toRef(A._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6689
+ set(E, O, toRef(I.$state, O));
6690
+ }), Object.keys(E.$state).forEach((O) => {
6691
+ O in I.$state || del(E, O);
6692
+ }), u = !1, c = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6693
6693
  u = !0;
6694
6694
  });
6695
- for (const O in A._hmrPayload.actions) {
6696
- const K = A[O];
6697
- set(k, O, E(O, K));
6695
+ for (const O in I._hmrPayload.actions) {
6696
+ const F = I[O];
6697
+ set(E, O, k(O, F));
6698
6698
  }
6699
- for (const O in A._hmrPayload.getters) {
6700
- const K = A._hmrPayload.getters[O], P = i ? computed(() => (setActivePinia(a), K.call(k, k))) : K;
6701
- set(k, O, P);
6699
+ for (const O in I._hmrPayload.getters) {
6700
+ const F = I._hmrPayload.getters[O], w = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
6701
+ set(E, O, w);
6702
6702
  }
6703
- Object.keys(k._hmrPayload.getters).forEach((O) => {
6704
- O in A._hmrPayload.getters || del(k, O);
6705
- }), Object.keys(k._hmrPayload.actions).forEach((O) => {
6706
- O in A._hmrPayload.actions || del(k, O);
6707
- }), k._hmrPayload = A._hmrPayload, k._getters = A._getters, k._hotUpdating = !1;
6703
+ Object.keys(E._hmrPayload.getters).forEach((O) => {
6704
+ O in I._hmrPayload.getters || del(E, O);
6705
+ }), Object.keys(E._hmrPayload.actions).forEach((O) => {
6706
+ O in I._hmrPayload.actions || del(E, O);
6707
+ }), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
6708
6708
  });
6709
6709
  const M = {
6710
6710
  writable: !0,
6711
6711
  configurable: !0,
6712
6712
  enumerable: !1
6713
6713
  };
6714
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
6715
- Object.defineProperty(k, A, {
6716
- value: k[A],
6714
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6715
+ Object.defineProperty(E, I, {
6716
+ value: E[I],
6717
6717
  ...M
6718
6718
  });
6719
6719
  });
6720
6720
  }
6721
6721
  return a._p.forEach((M) => {
6722
6722
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6723
- const A = o.run(() => M({
6724
- store: k,
6723
+ const I = o.run(() => M({
6724
+ store: E,
6725
6725
  app: a._a,
6726
6726
  pinia: a,
6727
6727
  options: s
6728
6728
  }));
6729
- Object.keys(A || {}).forEach((O) => k._customProperties.add(O)), assign$1(k, A);
6729
+ Object.keys(I || {}).forEach((O) => E._customProperties.add(O)), assign$1(E, I);
6730
6730
  } else
6731
- assign$1(k, o.run(() => M({
6732
- store: k,
6731
+ assign$1(E, o.run(() => M({
6732
+ store: E,
6733
6733
  app: a._a,
6734
6734
  pinia: a,
6735
6735
  options: s
6736
6736
  })));
6737
- }), 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
6737
+ }), 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
6738
6738
  state: () => new MyClass()
6739
- Found in store "${k.$id}".`), _ && i && r.hydrate && r.hydrate(k.$state, _), u = !0, c = !0, k;
6739
+ Found in store "${E.$id}".`), _ && i && r.hydrate && r.hydrate(E.$state, _), u = !0, c = !0, E;
6740
6740
  }
6741
6741
  function defineStore(e, t, r) {
6742
6742
  let a, n;
@@ -6986,7 +6986,7 @@ function useKgAppSelect() {
6986
6986
  };
6987
6987
  }
6988
6988
  const KgAppSelect$1 = "";
6989
- function _isSlot$a(e) {
6989
+ function _isSlot$9(e) {
6990
6990
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
6991
6991
  }
6992
6992
  const getProps$z = () => ({
@@ -7026,7 +7026,7 @@ const getProps$z = () => ({
7026
7026
  let o;
7027
7027
  return createVNode(SelectOption, {
7028
7028
  value: a
7029
- }, _isSlot$a(o = t.t(n)) ? o : {
7029
+ }, _isSlot$9(o = t.t(n)) ? o : {
7030
7030
  default: () => [o]
7031
7031
  });
7032
7032
  })]),
@@ -7344,9 +7344,9 @@ const KgModal_Close = "", getProps$y = () => ({
7344
7344
  function v(C) {
7345
7345
  C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = b(document.documentElement, "mousemove", m), l = b(document.documentElement, "mouseup", _));
7346
7346
  }
7347
- function b(C, E, T) {
7348
- return C.addEventListener(E, T), {
7349
- remove: () => C.removeEventListener(E, T)
7347
+ function b(C, k, T) {
7348
+ return C.addEventListener(k, T), {
7349
+ remove: () => C.removeEventListener(k, T)
7350
7350
  };
7351
7351
  }
7352
7352
  function y(C) {
@@ -8543,12 +8543,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8543
8543
  varProfile: b,
8544
8544
  varProfileConfig: y,
8545
8545
  varGrid: C,
8546
- varGridConfig: E
8546
+ varGridConfig: k
8547
8547
  } = await GetAll({ params: { frm_id: e } });
8548
8548
  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(p)), this.varButtonConfigMap.set(e, m != null ? m : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8549
8549
  varProfile: b != null ? b : null,
8550
8550
  currentVarProfileMasterID: (a = (r = (t = b == null ? void 0 : b.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
8551
- }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8551
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
8552
8552
  varGrid: transformVarGridDTO(C),
8553
8553
  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
8554
8554
  }), this.emit(e, "ready");
@@ -8686,8 +8686,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8686
8686
  function useKgVar(e, t, r = 0) {
8687
8687
  var a, n;
8688
8688
  try {
8689
- let o = function(H) {
8690
- return isFunction$2(H) ? (s.addEventListener(i, "ready", H), getCurrentInstance() && onUnmounted(() => s.removeEventListener(i, "ready", H)), () => s.removeEventListener(i, "ready", H)) : () => {
8689
+ let o = function(G) {
8690
+ return isFunction$2(G) ? (s.addEventListener(i, "ready", G), getCurrentInstance() && onUnmounted(() => s.removeEventListener(i, "ready", G)), () => s.removeEventListener(i, "ready", G)) : () => {
8691
8691
  };
8692
8692
  }, i = e || inject(KG_DI_FORM_ID, "");
8693
8693
  if (!i)
@@ -8698,13 +8698,13 @@ function useKgVar(e, t, r = 0) {
8698
8698
  }), onUnmounted(() => {
8699
8699
  s.leave(i);
8700
8700
  }));
8701
- const l = (H) => computed(() => {
8701
+ const l = (G) => computed(() => {
8702
8702
  var Y, q, Z;
8703
- return (Z = (q = (Y = s.getVarCatalog(i, H)) == null ? void 0 : Y.var_text) != null ? q : H) != null ? Z : "";
8704
- }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), b = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), I = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), V = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), A = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), K = computed(() => s.getVarProfileMasters(i)), P = computed(() => s.getCurrentVarProfileMaster(i)), R = computed(() => s.getCurrentVarProfileMasterID(i)), N = computed(() => {
8705
- var H, Y;
8706
- return (Y = (H = P.value) == null ? void 0 : H.varProfileDetails) != null ? Y : null;
8707
- }), $ = computed(() => s.getVarGridConfig(i)), w = computed(() => s.getVarGridMasters(i)), D = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
8703
+ return (Z = (q = (Y = s.getVarCatalog(i, G)) == null ? void 0 : Y.var_text) != null ? q : G) != null ? Z : "";
8704
+ }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), b = 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(() => {
8705
+ var G, Y;
8706
+ return (Y = (G = w.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
8707
+ }), 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));
8708
8708
  return {
8709
8709
  formID: i,
8710
8710
  store: s,
@@ -8718,21 +8718,21 @@ function useKgVar(e, t, r = 0) {
8718
8718
  isCopying: b,
8719
8719
  isCopyingRequesting: y,
8720
8720
  isDeleting: C,
8721
- isDeletingRequesting: E,
8721
+ isDeletingRequesting: k,
8722
8722
  isOtherRequesting: T,
8723
- varButtons: I,
8724
- varButtonSearch: k,
8725
- varButtonCreate: V,
8723
+ varButtons: A,
8724
+ varButtonSearch: E,
8725
+ varButtonCreate: $,
8726
8726
  varButtonUpdate: M,
8727
- varButtonCopy: A,
8727
+ varButtonCopy: I,
8728
8728
  varButtonDelete: O,
8729
- varProfileMasters: K,
8730
- currentVarProfileMaster: P,
8731
- currentVarProfileMasterID: R,
8732
- currentVarProfileDetails: N,
8733
- varGridConfig: $,
8734
- varGridMasters: w,
8735
- currentVarGridMaster: D,
8729
+ varProfileMasters: F,
8730
+ currentVarProfileMaster: w,
8731
+ currentVarProfileMasterID: N,
8732
+ currentVarProfileDetails: R,
8733
+ varGridConfig: D,
8734
+ varGridMasters: V,
8735
+ currentVarGridMaster: P,
8736
8736
  systemVarGridDetails: B,
8737
8737
  currentVarGridDetails: x,
8738
8738
  t: l,
@@ -8861,13 +8861,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
8861
8861
  r("update:visible", !1);
8862
8862
  }
8863
8863
  function m() {
8864
- var _, v, b, y, C, E, T;
8864
+ var _, v, b, y, C, k, T;
8865
8865
  if (c.value) {
8866
- const I = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], k = (b = I.map((V) => V[g.value])) != null ? b : [];
8867
- (!s || s(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
8866
+ const A = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], E = (b = A.map(($) => $[g.value])) != null ? b : [];
8867
+ (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8868
8868
  } else {
8869
- const I = (E = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? E : null, k = (T = I == null ? void 0 : I[g.value]) != null ? T : "";
8870
- (!s || s(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
8869
+ 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 : "";
8870
+ (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8871
8871
  }
8872
8872
  }
8873
8873
  return () => {
@@ -8980,7 +8980,7 @@ function _useServices$2(e) {
8980
8980
  transformDatas: o
8981
8981
  };
8982
8982
  }
8983
- function _isSlot$9(e) {
8983
+ function _isSlot$8(e) {
8984
8984
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8985
8985
  }
8986
8986
  const KgFormItemCheckboxGroup = defineComponent({
@@ -8994,13 +8994,13 @@ const KgFormItemCheckboxGroup = defineComponent({
8994
8994
  const a = useKg(), n = useKgVar(), o = inject(DI_FORM_REF, ref(null)), i = inject(DI_FORM_MODEL, computed(() => ({}))), {
8995
8995
  transformDatas: s
8996
8996
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), p = computed(() => n.store.getVarVariableConfig(n.formID, e.kgVarName)), m = computed(() => {
8997
- var E;
8998
- let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
8997
+ var k;
8998
+ let C = KgVarUtil.parseCommandParameter((k = g.value) == null ? void 0 : k.cmd_prm);
8999
8999
  return C = mapValues(C, (T) => {
9000
9000
  if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
9001
- const I = T.slice(1, -1);
9002
- if (i.value && I in i.value)
9003
- return i.value[I];
9001
+ const A = T.slice(1, -1);
9002
+ if (i.value && A in i.value)
9003
+ return i.value[A];
9004
9004
  }
9005
9005
  return T;
9006
9006
  }), C;
@@ -9013,21 +9013,21 @@ const KgFormItemCheckboxGroup = defineComponent({
9013
9013
  (C = g.value) != null && C.id && v();
9014
9014
  }, {
9015
9015
  immediate: !0
9016
- }), watch([() => e.value, c], ([C, E]) => {
9017
- var I, k;
9016
+ }), watch([() => e.value, c], ([C, k]) => {
9017
+ var A, E;
9018
9018
  const T = get(C, "length", 0);
9019
- if (T > 0 && E.length > 0) {
9020
- const V = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", M = intersection$1(C, E == null ? void 0 : E.map((A) => A[V]));
9019
+ if (T > 0 && k.length > 0) {
9020
+ 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[$]));
9021
9021
  if (M.length < T) {
9022
9022
  r("update:value", M);
9023
9023
  return;
9024
9024
  }
9025
9025
  }
9026
9026
  switch (!0) {
9027
- case (T > 0 && T === E.length):
9027
+ case (T > 0 && T === k.length):
9028
9028
  l.value = !0, u.value = !1;
9029
9029
  break;
9030
- case (T > 0 && T !== E.length):
9030
+ case (T > 0 && T !== k.length):
9031
9031
  l.value = !1, u.value = !0;
9032
9032
  break;
9033
9033
  default:
@@ -9038,64 +9038,64 @@ const KgFormItemCheckboxGroup = defineComponent({
9038
9038
  immediate: !0
9039
9039
  });
9040
9040
  async function v() {
9041
- var V, M, A, O, K, P, R, N, $;
9042
- const C = (V = g.value) == null ? void 0 : V.cmd, E = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", T = (K = (O = g.value) == null ? void 0 : O.val_clm) != null ? K : "", I = (R = (P = g.value) == null ? void 0 : P.lbl_clm) != null ? R : "";
9043
- if (!C || !T || !I) {
9041
+ var $, M, I, O, F, w, N, R, D;
9042
+ 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 : "";
9043
+ if (!C || !T || !A) {
9044
9044
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9045
9045
  frm_id: n.formID,
9046
9046
  var_nam: e.kgVarName,
9047
9047
  cmd: C,
9048
9048
  val_clm: T,
9049
- lbl_clm: I
9049
+ lbl_clm: A
9050
9050
  });
9051
9051
  return;
9052
9052
  }
9053
- let k = null;
9053
+ let E = null;
9054
9054
  try {
9055
- k = await ((N = httpClient()) == null ? void 0 : N.request({
9055
+ E = await ((R = httpClient()) == null ? void 0 : R.request({
9056
9056
  url: C,
9057
- method: E,
9057
+ method: k,
9058
9058
  params: m.value,
9059
9059
  data: m.value
9060
9060
  }));
9061
9061
  } catch {
9062
9062
  }
9063
- if (!isObjectLike(k))
9063
+ if (!isObjectLike(E))
9064
9064
  c.value = [];
9065
9065
  else
9066
9066
  switch (!0) {
9067
- case isArrayLike(k):
9068
- c.value = s(k);
9067
+ case isArrayLike(E):
9068
+ c.value = s(E);
9069
9069
  break;
9070
- case (k && "total" in k && "records" in k):
9071
- c.value = s(k.records);
9070
+ case (E && "total" in E && "records" in E):
9071
+ c.value = s(E.records);
9072
9072
  break;
9073
9073
  }
9074
9074
  if (c.value.length > 0) {
9075
- const w = c.value[0];
9076
- (!(T in w) || !(I 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.", {
9075
+ const V = c.value[0];
9076
+ (!(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.", {
9077
9077
  frm_id: n.formID,
9078
9078
  var_nam: e.kgVarName,
9079
9079
  cmd: C,
9080
9080
  val_clm: T,
9081
- lbl_clm: I,
9082
- \u6240\u6709\u5217: Object.keys(w)
9081
+ lbl_clm: A,
9082
+ \u6240\u6709\u5217: Object.keys(V)
9083
9083
  });
9084
9084
  }
9085
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1(($ = c.value) == null ? void 0 : $.map((w) => w[T]), e.value));
9085
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((D = c.value) == null ? void 0 : D.map((V) => V[T]), e.value));
9086
9086
  }
9087
9087
  function b(C) {
9088
- var E, T, I;
9089
- C.target.checked ? y((T = (E = c.value) == null ? void 0 : E.map((k) => {
9090
- var V, M;
9091
- return k[(M = (V = g.value) == null ? void 0 : V.val_clm) != null ? M : ""];
9092
- })) != null ? T : []) : y([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
9088
+ var k, T, A;
9089
+ C.target.checked ? y((T = (k = c.value) == null ? void 0 : k.map((E) => {
9090
+ var $, M;
9091
+ return E[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
9092
+ })) != null ? T : []) : y([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
9093
9093
  }
9094
9094
  function y(C) {
9095
9095
  r("update:value", C), r("kgChange", C);
9096
9096
  }
9097
9097
  return () => {
9098
- let C, E;
9098
+ let C, k;
9099
9099
  return createVNode("div", {
9100
9100
  class: "kg-form-item-checkbox-group"
9101
9101
  }, [createVNode(Form.ItemRest, null, {
@@ -9104,7 +9104,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9104
9104
  "onUpdate:checked": (T) => l.value = T,
9105
9105
  indeterminate: u.value,
9106
9106
  onChange: b
9107
- }, _isSlot$9(C = a.t("kg.selectAll")) ? C : {
9107
+ }, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
9108
9108
  default: () => [C]
9109
9109
  })]
9110
9110
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
@@ -9113,26 +9113,26 @@ const KgFormItemCheckboxGroup = defineComponent({
9113
9113
  }, {
9114
9114
  default: () => [createVNode(Row, {
9115
9115
  gutter: 12
9116
- }, _isSlot$9(E = c.value.map((T) => {
9117
- var I, k;
9116
+ }, _isSlot$8(k = c.value.map((T) => {
9117
+ var A, E;
9118
9118
  return createVNode(Col, {
9119
- span: (k = (I = _.value) == null ? void 0 : I.span) != null ? k : 24
9119
+ span: (E = (A = _.value) == null ? void 0 : A.span) != null ? E : 24
9120
9120
  }, {
9121
9121
  default: () => {
9122
- var V, M, A, O;
9122
+ var $, M, I, O;
9123
9123
  return [createVNode(Checkbox, {
9124
- value: T[(M = (V = g.value) == null ? void 0 : V.val_clm) != null ? M : ""],
9125
- "kg-value": T[(O = (A = g.value) == null ? void 0 : A.val_clm) != null ? O : ""]
9124
+ value: T[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""],
9125
+ "kg-value": T[(O = (I = g.value) == null ? void 0 : I.val_clm) != null ? O : ""]
9126
9126
  }, {
9127
9127
  default: () => {
9128
- var K, P;
9129
- return [T[(P = (K = g.value) == null ? void 0 : K.lbl_clm) != null ? P : ""]];
9128
+ var F, w;
9129
+ return [T[(w = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? w : ""]];
9130
9130
  }
9131
9131
  })];
9132
9132
  }
9133
9133
  });
9134
- })) ? E : {
9135
- default: () => [E]
9134
+ })) ? k : {
9135
+ default: () => [k]
9136
9136
  })]
9137
9137
  })]);
9138
9138
  };
@@ -9299,12 +9299,12 @@ const KgFormItemSelect = defineComponent({
9299
9299
  var b, y;
9300
9300
  let v = _;
9301
9301
  if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
9302
- let C = _.slice(1, -1), E = "";
9302
+ let C = _.slice(1, -1), k = "";
9303
9303
  if (C.includes(".")) {
9304
9304
  const T = C.split(".");
9305
- C = T[0], E = T[1];
9305
+ C = T[0], k = T[1];
9306
9306
  }
9307
- n.value && C in n.value && (E ? v = (y = (b = n.value[`${C}_obj`]) == null ? void 0 : b[E]) != null ? y : void 0 : v = n.value[C], v || (v = "__KG__FORM_ITEM_SELECT__PID"));
9307
+ n.value && C in n.value && (k ? v = (y = (b = n.value[`${C}_obj`]) == null ? void 0 : b[k]) != null ? y : void 0 : v = n.value[C], v || (v = "__KG__FORM_ITEM_SELECT__PID"));
9308
9308
  }
9309
9309
  return v;
9310
9310
  }), p;
@@ -9316,8 +9316,8 @@ const KgFormItemSelect = defineComponent({
9316
9316
  immediate: !0
9317
9317
  });
9318
9318
  async function u() {
9319
- var y, C, E, T, I, k, V, M;
9320
- const p = (y = s.value) == null ? void 0 : y.cmd, m = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", _ = (I = (T = s.value) == null ? void 0 : T.val_clm) != null ? I : "", v = (V = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? V : "";
9319
+ var y, C, k, T, A, E, $, M;
9320
+ const p = (y = s.value) == null ? void 0 : y.cmd, m = (k = (C = s.value) == null ? void 0 : C.cmd_method) != null ? k : "GET", _ = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", v = ($ = (E = s.value) == null ? void 0 : E.lbl_clm) != null ? $ : "";
9321
9321
  if (!p || !_ || !v) {
9322
9322
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9323
9323
  frm_id: a.formID,
@@ -9349,17 +9349,17 @@ const KgFormItemSelect = defineComponent({
9349
9349
  break;
9350
9350
  }
9351
9351
  if (i.value.length > 0) {
9352
- const A = i.value[0];
9353
- (!(_ in A) || !(v in A)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9352
+ const I = i.value[0];
9353
+ (!(_ in I) || !(v in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9354
9354
  frm_id: a.formID,
9355
9355
  var_nam: e.kgVarName,
9356
9356
  cmd: p,
9357
9357
  val_clm: _,
9358
9358
  lbl_clm: v,
9359
- \u6240\u6709\u5217: Object.keys(A)
9359
+ \u6240\u6709\u5217: Object.keys(I)
9360
9360
  });
9361
9361
  }
9362
- r("kgSelectDatasChange", i.value), i.value.find((A) => A[_] === e.value) || r("update:value", void 0);
9362
+ r("kgSelectDatasChange", i.value), i.value.find((I) => I[_] === e.value) || r("update:value", void 0);
9363
9363
  }
9364
9364
  function c(p) {
9365
9365
  var _;
@@ -9390,14 +9390,14 @@ const KgFormItemSelect = defineComponent({
9390
9390
  "kg-lbl-clm": (_ = s.value) == null ? void 0 : _.lbl_clm
9391
9391
  }, {
9392
9392
  default: () => i.value.map((v) => {
9393
- var b, y, C, E;
9393
+ var b, y, C, k;
9394
9394
  return createVNode(Select.Option, {
9395
9395
  "kg-value": v[(y = (b = s.value) == null ? void 0 : b.val_clm) != null ? y : ""],
9396
- value: v[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9396
+ value: v[(k = (C = s.value) == null ? void 0 : C.val_clm) != null ? k : ""]
9397
9397
  }, {
9398
9398
  default: () => {
9399
- var T, I;
9400
- return [v[(I = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? I : ""]];
9399
+ var T, A;
9400
+ return [v[(A = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? A : ""]];
9401
9401
  }
9402
9402
  });
9403
9403
  }),
@@ -9494,7 +9494,7 @@ const KgFormItem = defineComponent({
9494
9494
  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)), {
9495
9495
  rules: c
9496
9496
  } = _useRules(e), g = computed(() => {
9497
- var A, O, K, P, R;
9497
+ var I, O, F, w, N;
9498
9498
  if (a.isRetrievingVar.value)
9499
9499
  return !0;
9500
9500
  let M = !1;
@@ -9503,7 +9503,7 @@ const KgFormItem = defineComponent({
9503
9503
  else
9504
9504
  switch (e.kgContext) {
9505
9505
  case KG_FORM_CONTEXT.SEARCH:
9506
- M = ((A = l.value) == null ? void 0 : A.ena_flg) === 0;
9506
+ M = ((I = l.value) == null ? void 0 : I.ena_flg) === 0;
9507
9507
  break;
9508
9508
  case KG_FORM_CONTEXT.SUBMIT:
9509
9509
  switch (!0) {
@@ -9511,78 +9511,78 @@ const KgFormItem = defineComponent({
9511
9511
  M = ((O = u.value) == null ? void 0 : O.crt_ena_flg) === 0;
9512
9512
  break;
9513
9513
  case a.isUpdating.value:
9514
- M = ((K = u.value) == null ? void 0 : K.upt_ena_flg) === 0;
9514
+ M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9515
9515
  break;
9516
9516
  case a.isCopying.value:
9517
- M = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
9517
+ M = ((w = u.value) == null ? void 0 : w.cpy_ena_flg) === 0;
9518
9518
  break;
9519
9519
  case a.isDeleting.value:
9520
- M = ((R = u.value) == null ? void 0 : R.del_ena_flg) === 0;
9520
+ M = ((N = u.value) == null ? void 0 : N.del_ena_flg) === 0;
9521
9521
  break;
9522
9522
  }
9523
9523
  break;
9524
9524
  }
9525
9525
  return M;
9526
9526
  }), p = computed(() => {
9527
- var A, O, K, P;
9527
+ var I, O, F, w;
9528
9528
  let M = " ";
9529
9529
  if (e.kgPlaceholder)
9530
9530
  M = e.kgPlaceholder;
9531
9531
  else
9532
9532
  switch (e.kgContext) {
9533
9533
  case KG_FORM_CONTEXT.SEARCH:
9534
- M = a.t((O = (A = l.value) == null ? void 0 : A.placeholder) != null ? O : " ").value;
9534
+ M = a.t((O = (I = l.value) == null ? void 0 : I.placeholder) != null ? O : " ").value;
9535
9535
  break;
9536
9536
  case KG_FORM_CONTEXT.SUBMIT:
9537
- M = a.t((P = (K = u.value) == null ? void 0 : K.placeholder) != null ? P : " ").value;
9537
+ M = a.t((w = (F = u.value) == null ? void 0 : F.placeholder) != null ? w : " ").value;
9538
9538
  break;
9539
9539
  }
9540
9540
  return M;
9541
9541
  }), m = computed(() => {
9542
- var A, O, K, P, R, N, $, w, D, B;
9542
+ var I, O, F, w, N, R, D, V, P, B;
9543
9543
  let M = 6;
9544
9544
  if (e.kgSpan !== void 0)
9545
9545
  M = e.kgSpan;
9546
9546
  else
9547
9547
  switch (e.kgContext) {
9548
9548
  case KG_FORM_CONTEXT.SEARCH:
9549
- M = (O = (A = l.value) == null ? void 0 : A.width) != null ? O : 6;
9549
+ M = (O = (I = l.value) == null ? void 0 : I.width) != null ? O : 6;
9550
9550
  break;
9551
9551
  case KG_FORM_CONTEXT.SUBMIT:
9552
9552
  switch (!0) {
9553
9553
  case a.isCreating.value:
9554
- M = (P = (K = u.value) == null ? void 0 : K.crt_width) != null ? P : 6;
9554
+ M = (w = (F = u.value) == null ? void 0 : F.crt_width) != null ? w : 6;
9555
9555
  break;
9556
9556
  case a.isUpdating.value:
9557
- M = (N = (R = u.value) == null ? void 0 : R.upt_width) != null ? N : 6;
9557
+ M = (R = (N = u.value) == null ? void 0 : N.upt_width) != null ? R : 6;
9558
9558
  break;
9559
9559
  case a.isCopying.value:
9560
- M = (w = ($ = u.value) == null ? void 0 : $.cpy_width) != null ? w : 6;
9560
+ M = (V = (D = u.value) == null ? void 0 : D.cpy_width) != null ? V : 6;
9561
9561
  break;
9562
9562
  case a.isDeleting.value:
9563
- M = (B = (D = u.value) == null ? void 0 : D.del_width) != null ? B : 6;
9563
+ M = (B = (P = u.value) == null ? void 0 : P.del_width) != null ? B : 6;
9564
9564
  break;
9565
9565
  }
9566
9566
  }
9567
9567
  return Math.min(24, Math.max(1, M));
9568
9568
  }), _ = computed(() => {
9569
- var K, P;
9570
- const M = get(E.value, "$el.parentElement");
9571
- if (M && !((K = M.classList) != null && K.contains("ant-row")))
9569
+ var F, w;
9570
+ const M = get(k.value, "$el.parentElement");
9571
+ if (M && !((F = M.classList) != null && F.contains("ant-row")))
9572
9572
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9573
- let A = {};
9574
- const O = Math.abs(Number.parseInt((P = get(E.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
9575
- return Number.isNaN(O) || (A = {
9573
+ let I = {};
9574
+ const O = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
9575
+ return Number.isNaN(O) || (I = {
9576
9576
  paddingLeft: `${O}px !important`,
9577
9577
  paddingRight: `${O}px !important`
9578
- }), A;
9578
+ }), I;
9579
9579
  }), v = computed(() => {
9580
- var A, O, K, P;
9580
+ var I, O, F, w;
9581
9581
  let M = "kg-form-item";
9582
9582
  switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
9583
9583
  case KG_FORM_CONTEXT.SEARCH:
9584
9584
  switch (!0) {
9585
- case ((A = l.value) == null ? void 0 : A.vis_flg) === 0:
9585
+ case ((I = l.value) == null ? void 0 : I.vis_flg) === 0:
9586
9586
  M += " kg-form-item--invisible";
9587
9587
  break;
9588
9588
  }
@@ -9590,8 +9590,8 @@ const KgFormItem = defineComponent({
9590
9590
  case KG_FORM_CONTEXT.SUBMIT:
9591
9591
  switch (!0) {
9592
9592
  case (a.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
9593
- case (a.isUpdating.value && ((K = u.value) == null ? void 0 : K.upt_vis_flg) === 0):
9594
- case (a.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
9593
+ case (a.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9594
+ case (a.isCopying.value && ((w = u.value) == null ? void 0 : w.cpy_vis_flg) === 0):
9595
9595
  M += " kg-form-item--invisible";
9596
9596
  break;
9597
9597
  }
@@ -9599,10 +9599,10 @@ const KgFormItem = defineComponent({
9599
9599
  }
9600
9600
  return M;
9601
9601
  }), b = computed(() => {
9602
- var A;
9602
+ var I;
9603
9603
  const M = {
9604
9604
  ...e,
9605
- value: (A = n.value) == null ? void 0 : A[e.kgVarName],
9605
+ value: (I = n.value) == null ? void 0 : I[e.kgVarName],
9606
9606
  "onUpdate:value": (O) => {
9607
9607
  n.value && (n.value[e.kgVarName] = O);
9608
9608
  },
@@ -9632,30 +9632,30 @@ const KgFormItem = defineComponent({
9632
9632
  }
9633
9633
  return M;
9634
9634
  }), y = computed(() => {
9635
- var N, $, w, D, B, x;
9636
- const M = (N = s.value) == null ? void 0 : N.ctrl_typ, A = ($ = s.value) == null ? void 0 : $.prf_ctrl_typ, O = (w = s.value) == null ? void 0 : w.crt_ctrl_typ, K = (D = s.value) == null ? void 0 : D.upt_ctrl_typ, P = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, R = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
9635
+ var R, D, V, P, B, x;
9636
+ 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;
9637
9637
  switch (e.kgContext) {
9638
9638
  case KG_FORM_CONTEXT.SEARCH:
9639
- return A || M;
9639
+ return I || M;
9640
9640
  case KG_FORM_CONTEXT.SUBMIT:
9641
9641
  switch (!0) {
9642
9642
  case a.isCreating.value:
9643
9643
  return O || M;
9644
9644
  case a.isUpdating.value:
9645
- return K || M;
9645
+ return F || M;
9646
9646
  case a.isCopying.value:
9647
- return P || M;
9647
+ return w || M;
9648
9648
  case a.isDeleting.value:
9649
- return R || M;
9649
+ return N || M;
9650
9650
  }
9651
9651
  }
9652
9652
  return M;
9653
- }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), E = ref(null);
9654
- function T(M, A) {
9653
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), k = ref(null);
9654
+ function T(M, I) {
9655
9655
  var O;
9656
- n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", A), (O = o.value) == null || O.validate([e.kgVarName]);
9656
+ n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", I), (O = o.value) == null || O.validate([e.kgVarName]);
9657
9657
  }
9658
- function I() {
9658
+ function A() {
9659
9659
  if (t.control) {
9660
9660
  const M = {
9661
9661
  varName: e.kgVarName,
@@ -9696,12 +9696,12 @@ const KgFormItem = defineComponent({
9696
9696
  return createVNode(KgFormItemInput, b.value, null);
9697
9697
  }
9698
9698
  }
9699
- function k() {
9699
+ function E() {
9700
9700
  return e.kgShowLabel ? createVNode("span", {
9701
9701
  title: a.t(e.kgVarName).value
9702
9702
  }, [a.t(e.kgVarName).value]) : null;
9703
9703
  }
9704
- function V() {
9704
+ function $() {
9705
9705
  var M;
9706
9706
  return !i.value || !((M = i.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9707
9707
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -9712,13 +9712,13 @@ const KgFormItem = defineComponent({
9712
9712
  });
9713
9713
  }
9714
9714
  return () => {
9715
- var M, A;
9715
+ var M, I;
9716
9716
  return createVNode(Col, {
9717
- ref: E,
9717
+ ref: k,
9718
9718
  "kg-frm-id": a.formID,
9719
9719
  "kg-var-nam": e.kgVarName,
9720
9720
  "kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
9721
- "kg-lkp-ret-fld": (A = i.value) == null ? void 0 : A.ret_fld,
9721
+ "kg-lkp-ret-fld": (I = i.value) == null ? void 0 : I.ret_fld,
9722
9722
  span: m.value,
9723
9723
  class: v.value,
9724
9724
  style: _.value
@@ -9729,8 +9729,8 @@ const KgFormItem = defineComponent({
9729
9729
  validateFirst: !0,
9730
9730
  htmlFor: C.value
9731
9731
  }, {
9732
- default: () => createVNode(Fragment, null, [I(), V()]),
9733
- label: () => k()
9732
+ default: () => createVNode(Fragment, null, [A(), $()]),
9733
+ label: () => E()
9734
9734
  })]
9735
9735
  });
9736
9736
  };
@@ -9977,20 +9977,20 @@ function useKgSubmit(e) {
9977
9977
  };
9978
9978
  }
9979
9979
  const c = computed(() => {
9980
- var k, V, M, A, O;
9980
+ var E, $, M, I, O;
9981
9981
  let _ = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9982
- const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, b = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (k = a.value) == null ? void 0 : k.display_type, C = (V = a.value) == null ? void 0 : V.crt_display_type, E = (M = a.value) == null ? void 0 : M.upt_display_type, T = (A = a.value) == null ? void 0 : A.cpy_display_type, I = (O = a.value) == null ? void 0 : O.del_display_type;
9982
+ const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, b = 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;
9983
9983
  switch (!0) {
9984
9984
  case (t.isCreating.value && (C === v || !C && y === v)):
9985
9985
  _ = v;
9986
9986
  break;
9987
- case (t.isUpdating.value && (E === v || !E && y === v)):
9987
+ case (t.isUpdating.value && (k === v || !k && y === v)):
9988
9988
  _ = v;
9989
9989
  break;
9990
9990
  case (t.isCopying.value && (T === v || !T && y === v)):
9991
9991
  _ = v;
9992
9992
  break;
9993
- case (t.isDeleting.value && (I === v || !I)):
9993
+ case (t.isDeleting.value && (A === v || !A)):
9994
9994
  _ = v;
9995
9995
  break;
9996
9996
  }
@@ -9998,7 +9998,7 @@ function useKgSubmit(e) {
9998
9998
  case (t.isCreating.value && (C === b || !C && y === b)):
9999
9999
  _ = b;
10000
10000
  break;
10001
- case (t.isUpdating.value && (E === b || !E && y === b)):
10001
+ case (t.isUpdating.value && (k === b || !k && y === b)):
10002
10002
  _ = b;
10003
10003
  break;
10004
10004
  case (t.isCopying.value && (T === b || !T && y === b)):
@@ -10048,8 +10048,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10048
10048
  }) => {
10049
10049
  const c = o.store.getVarSubmitConfig(o.formID);
10050
10050
  return s = watch(u, (g) => {
10051
- var p, m, _, v, b, y, C, E, T, I, k, V;
10052
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 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 = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (V = c == null ? void 0 : c.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10051
+ var p, m, _, v, b, y, C, k, T, A, E, $;
10052
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 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);
10053
10053
  }, {
10054
10054
  immediate: !0
10055
10055
  }), !1;
@@ -10149,7 +10149,7 @@ function _useFormModel$1() {
10149
10149
  if (u.value = {}, c != null && c.length) {
10150
10150
  const g = r.selectedRow.value;
10151
10151
  c.forEach((p) => {
10152
- var _, v, b, y, C, E, T, I;
10152
+ var _, v, b, y, C, k, T, A;
10153
10153
  const m = (_ = p.var_nam) != null ? _ : "";
10154
10154
  switch (u.value[m] = void 0, !0) {
10155
10155
  case t.isCreating.value:
@@ -10159,10 +10159,10 @@ function _useFormModel$1() {
10159
10159
  u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (y = (b = p.upt_dft_val) != null ? b : g == null ? void 0 : g[m]) != null ? y : void 0);
10160
10160
  break;
10161
10161
  case t.isCopying.value:
10162
- u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (E = (C = p.cpy_dft_val) != null ? C : g == null ? void 0 : g[m]) != null ? E : void 0);
10162
+ u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (k = (C = p.cpy_dft_val) != null ? C : g == null ? void 0 : g[m]) != null ? k : void 0);
10163
10163
  break;
10164
10164
  case t.isDeleting.value:
10165
- u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (I = (T = p.del_dft_val) != null ? T : g == null ? void 0 : g[m]) != null ? I : void 0);
10165
+ u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (A = (T = p.del_dft_val) != null ? T : g == null ? void 0 : g[m]) != null ? A : void 0);
10166
10166
  break;
10167
10167
  }
10168
10168
  });
@@ -10294,7 +10294,7 @@ function _useDefaultWidth() {
10294
10294
  };
10295
10295
  }
10296
10296
  const KgSubmit$1 = "";
10297
- function _isSlot$8(e) {
10297
+ function _isSlot$7(e) {
10298
10298
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10299
10299
  }
10300
10300
  const getProps$n = () => ({
@@ -10310,64 +10310,64 @@ const getProps$n = () => ({
10310
10310
  attrs: t
10311
10311
  }) {
10312
10312
  const r = inject("$dayjs", dayjs), a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = useKgSearch();
10313
- o.onSubmitSave(async () => (await z(), !1)), o.onSubmitCancel(async () => (await G(), !1));
10313
+ o.onSubmitSave(async () => (await K(), !1)), o.onSubmitCancel(async () => (await L(), !1));
10314
10314
  const u = inject(DI_KG_VAR__KG_SLOTS, null);
10315
10315
  _useFormModel$1(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
10316
- const c = computed(() => n.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), p = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => s.store.isLoading(n.formID)), b = 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)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10317
- var U, W, Q;
10316
+ const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), p = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => s.store.isLoading(n.formID)), b = 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(() => {
10317
+ var U, z, Q;
10318
10318
  switch (!0) {
10319
10319
  case n.isCreating.value:
10320
10320
  return (U = y.value) != null ? U : [];
10321
10321
  case n.isUpdating.value:
10322
- return (W = E.value) != null ? W : [];
10322
+ return (z = k.value) != null ? z : [];
10323
10323
  case n.isCopying.value:
10324
- return (Q = I.value) != null ? Q : [];
10324
+ return (Q = A.value) != null ? Q : [];
10325
10325
  case n.isDeleting.value:
10326
10326
  return [];
10327
10327
  }
10328
10328
  return [];
10329
- }), A = computed(() => {
10330
- var U, W, Q, te;
10329
+ }), I = computed(() => {
10330
+ var U, z, Q, re;
10331
10331
  switch (!0) {
10332
10332
  case n.isCreating.value:
10333
10333
  return (U = C.value) != null ? U : [];
10334
10334
  case n.isUpdating.value:
10335
- return (W = T.value) != null ? W : [];
10335
+ return (z = T.value) != null ? z : [];
10336
10336
  case n.isCopying.value:
10337
- return (Q = k.value) != null ? Q : [];
10337
+ return (Q = E.value) != null ? Q : [];
10338
10338
  case n.isDeleting.value:
10339
- return (te = V.value) != null ? te : [];
10339
+ return (re = $.value) != null ? re : [];
10340
10340
  }
10341
10341
  return [];
10342
- }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), K = computed(() => O.value || v.value), P = computed(() => v.value), R = ref({
10342
+ }), 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 || v.value), w = computed(() => v.value), N = ref({
10343
10343
  kgWidth: 0
10344
- }), N = computed(() => {
10344
+ }), R = computed(() => {
10345
10345
  var U;
10346
10346
  return !!(c.value || q.isFullscreen || ((U = b.value) == null ? void 0 : U.resizable_flg) === 0);
10347
- }), $ = computed(() => {
10348
- var U, W;
10349
- return c.value ? 398 : (W = (U = b.value) == null ? void 0 : U.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10350
- }), w = computed(() => {
10351
- var U, W;
10352
- return c.value ? 398 : (W = (U = b.value) == null ? void 0 : U.max_width) != null ? W : DEFAULT_MAX_WIDTH;
10353
- }), D = computed(() => c.value ? 398 : R.value.kgWidth), B = ref(null);
10347
+ }), D = computed(() => {
10348
+ var U, z;
10349
+ return c.value ? 398 : (z = (U = b.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
10350
+ }), V = computed(() => {
10351
+ var U, z;
10352
+ return c.value ? 398 : (z = (U = b.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
10353
+ }), P = computed(() => c.value ? 398 : N.value.kgWidth), B = ref(null);
10354
10354
  _useResizeObserver$1(B);
10355
- const x = _useTitle(), H = computed(() => c.value ? 400 : R.value.kgWidth && R.value.kgWidth > 0 ? R.value.kgWidth + 2 : 0), Y = computed(() => H.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
10355
+ 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({
10356
10356
  isFullscreen: !1
10357
10357
  }), {
10358
10358
  getClass: Z
10359
10359
  } = _useClass(e, q), {
10360
- getLayout: ae
10360
+ getLayout: ne
10361
10361
  } = _useLayout(), {
10362
- getDefaultWidth: ne
10363
- } = _useDefaultWidth(), de = computed(() => {
10364
- var U, W, Q;
10365
- switch (ae.value) {
10362
+ getDefaultWidth: oe
10363
+ } = _useDefaultWidth(), fe = computed(() => {
10364
+ var U, z, Q;
10365
+ switch (ne.value) {
10366
10366
  case "horizontal":
10367
10367
  switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
10368
10368
  case KG_WIDTH_UNIT.SPAN:
10369
10369
  return {
10370
- span: (W = b.value) == null ? void 0 : W.label_col
10370
+ span: (z = b.value) == null ? void 0 : z.label_col
10371
10371
  };
10372
10372
  default:
10373
10373
  return {
@@ -10379,14 +10379,14 @@ const getProps$n = () => ({
10379
10379
  default:
10380
10380
  return;
10381
10381
  }
10382
- }), ge = computed(() => {
10383
- var U, W;
10384
- switch (ae.value) {
10382
+ }), pe = computed(() => {
10383
+ var U, z;
10384
+ switch (ne.value) {
10385
10385
  case "horizontal":
10386
10386
  switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
10387
10387
  case KG_WIDTH_UNIT.SPAN:
10388
10388
  return {
10389
- span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
10389
+ span: 24 - ((z = b.value) == null ? void 0 : z.label_col)
10390
10390
  };
10391
10391
  default:
10392
10392
  return;
@@ -10395,17 +10395,17 @@ const getProps$n = () => ({
10395
10395
  return;
10396
10396
  }
10397
10397
  });
10398
- watch(Y, (U, W) => {
10399
- U === !0 && L(), W === !0 && U === !1 && F();
10398
+ watch(Y, (U, z) => {
10399
+ U === !0 && ge(), z === !0 && U === !1 && te();
10400
10400
  }, {
10401
10401
  immediate: !0
10402
- }), watch(ne, (U) => {
10403
- U && (R.value.kgWidth = U);
10402
+ }), watch(oe, (U) => {
10403
+ U && (N.value.kgWidth = U);
10404
10404
  }, {
10405
10405
  immediate: !0
10406
10406
  });
10407
- function L() {
10408
- var W;
10407
+ function ge() {
10408
+ var z;
10409
10409
  const U = watch(s.model, (Q) => {
10410
10410
  Q && Object.keys(Q).length > 0 && (setTimeout(() => U()), s.store.emit(n.formID, "open", {
10411
10411
  isCreating: n.isCreating.value,
@@ -10418,12 +10418,12 @@ const getProps$n = () => ({
10418
10418
  }, {
10419
10419
  immediate: !0
10420
10420
  });
10421
- ((W = b.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10421
+ ((z = b.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10422
10422
  }
10423
- function F() {
10424
- R.value.kgWidth = ne.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10423
+ function te() {
10424
+ N.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10425
10425
  }
10426
- function G() {
10426
+ function L() {
10427
10427
  switch (!0) {
10428
10428
  case n.isCreating.value:
10429
10429
  n.store.setIsCreating(n.formID, !1);
@@ -10439,8 +10439,8 @@ const getProps$n = () => ({
10439
10439
  break;
10440
10440
  }
10441
10441
  }
10442
- async function z() {
10443
- var U, W;
10442
+ async function K() {
10443
+ var U, z;
10444
10444
  try {
10445
10445
  if (await s.store.emit(n.formID, "beforeOk", {
10446
10446
  isCreating: n.isCreating.value,
@@ -10454,10 +10454,10 @@ const getProps$n = () => ({
10454
10454
  return;
10455
10455
  try {
10456
10456
  await ((U = s.formRef.value) == null ? void 0 : U.validate());
10457
- } catch (re) {
10458
- KgUtil.throwIfNotFormError(re);
10457
+ } catch (ae) {
10458
+ KgUtil.throwIfNotFormError(ae);
10459
10459
  }
10460
- if (await ((W = s.formRef.value) == null ? void 0 : W.validate()), await s.store.emit(n.formID, "afterValidate", {
10460
+ if (await ((z = s.formRef.value) == null ? void 0 : z.validate()), await s.store.emit(n.formID, "afterValidate", {
10461
10461
  isCreating: n.isCreating.value,
10462
10462
  isUpdating: n.isUpdating.value,
10463
10463
  isCopying: n.isCopying.value,
@@ -10469,25 +10469,25 @@ const getProps$n = () => ({
10469
10469
  return;
10470
10470
  switch (!0) {
10471
10471
  case n.isCreating.value:
10472
- await J();
10472
+ await H();
10473
10473
  break;
10474
10474
  case n.isUpdating.value:
10475
- await X();
10475
+ await W();
10476
10476
  break;
10477
10477
  case n.isCopying.value:
10478
- await ce();
10478
+ await J();
10479
10479
  break;
10480
10480
  case n.isDeleting.value:
10481
- await fe();
10481
+ await X();
10482
10482
  break;
10483
10483
  }
10484
10484
  } catch (Q) {
10485
10485
  KgUtil.throwIfNotFormError(Q);
10486
10486
  }
10487
10487
  }
10488
- async function J() {
10489
- var W, Q, te, re, oe, se, ie, le;
10490
- const U = (W = g.value) == null ? void 0 : W.cmd;
10488
+ async function H() {
10489
+ var z, Q, re, ae, se, ie, le, ue;
10490
+ const U = (z = g.value) == null ? void 0 : z.cmd;
10491
10491
  if (!U) {
10492
10492
  Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10493
10493
  VarButton: g.value
@@ -10496,7 +10496,7 @@ const getProps$n = () => ({
10496
10496
  }
10497
10497
  n.store.setIsCreatingRequesting(n.formID, !0);
10498
10498
  try {
10499
- let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = g.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), n.formID, r)), ue = ref(KgUtil.parseParams(toRaw(s.model.value), n.formID, r));
10499
+ let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = g.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), n.formID, r)), de = ref(KgUtil.parseParams(toRaw(s.model.value), n.formID, r));
10500
10500
  if (await s.store.emit(n.formID, "beforeRequest", {
10501
10501
  isCreating: n.isCreating.value,
10502
10502
  isUpdating: n.isUpdating.value,
@@ -10506,24 +10506,24 @@ const getProps$n = () => ({
10506
10506
  rows: i.selectedRows.value,
10507
10507
  model: s.model,
10508
10508
  params: ee,
10509
- data: ue
10509
+ data: de
10510
10510
  }))
10511
10511
  return;
10512
10512
  await httpClient().request({
10513
- method: (oe = (re = g.value) == null ? void 0 : re.cmd_method) != null ? oe : "POST",
10513
+ method: (se = (ae = g.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
10514
10514
  url: U,
10515
10515
  params: ee.value,
10516
- data: ue.value
10517
- }), ((se = g.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(x.title.value + a.t("kg.succeed")), s.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
10516
+ data: de.value
10517
+ }), ((ie = g.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(x.title.value + a.t("kg.succeed")), s.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le, !0);
10518
10518
  } catch (ee) {
10519
10519
  console.error(ee);
10520
10520
  } finally {
10521
10521
  n.store.setIsCreatingRequesting(n.formID, !1);
10522
10522
  }
10523
10523
  }
10524
- async function X() {
10525
- var W, Q, te, re, oe, se, ie, le;
10526
- const U = (W = p.value) == null ? void 0 : W.cmd;
10524
+ async function W() {
10525
+ var z, Q, re, ae, se, ie, le, ue;
10526
+ const U = (z = p.value) == null ? void 0 : z.cmd;
10527
10527
  if (!U) {
10528
10528
  Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10529
10529
  VarButton: p.value
@@ -10532,7 +10532,7 @@ const getProps$n = () => ({
10532
10532
  }
10533
10533
  try {
10534
10534
  n.store.setIsUpdatingRequesting(n.formID, !0);
10535
- let ee = ref(KgVarUtil.parseCommandParameter((te = (Q = p.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), ue = ref(toRaw(s.model.value));
10535
+ let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = p.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), de = ref(toRaw(s.model.value));
10536
10536
  if (await s.store.emit(n.formID, "beforeRequest", {
10537
10537
  isCreating: n.isCreating.value,
10538
10538
  isUpdating: n.isUpdating.value,
@@ -10542,24 +10542,24 @@ const getProps$n = () => ({
10542
10542
  rows: i.selectedRows.value,
10543
10543
  model: s.model,
10544
10544
  params: ee,
10545
- data: ue
10545
+ data: de
10546
10546
  }))
10547
10547
  return;
10548
10548
  await httpClient().request({
10549
- method: (oe = (re = p.value) == null ? void 0 : re.cmd_method) != null ? oe : "POST",
10549
+ method: (se = (ae = p.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
10550
10550
  url: U,
10551
10551
  params: ee.value,
10552
- data: ue.value
10553
- }), ((se = p.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie);
10552
+ data: de.value
10553
+ }), ((ie = p.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le);
10554
10554
  } catch (ee) {
10555
10555
  console.error(ee);
10556
10556
  } finally {
10557
10557
  n.store.setIsUpdatingRequesting(n.formID, !1);
10558
10558
  }
10559
10559
  }
10560
- async function ce() {
10561
- var W, Q, te, re, oe, se, ie, le, ee, ue;
10562
- const U = (W = m.value) == null ? void 0 : W.cmd;
10560
+ async function J() {
10561
+ var z, Q, re, ae, se, ie, le, ue, ee, de;
10562
+ const U = (z = m.value) == null ? void 0 : z.cmd;
10563
10563
  if (!U) {
10564
10564
  Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10565
10565
  VarButton: m.value
@@ -10568,11 +10568,11 @@ const getProps$n = () => ({
10568
10568
  }
10569
10569
  try {
10570
10570
  n.store.setIsCopyingRequesting(n.formID, !0);
10571
- let pe = ref(KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), me = ref({
10572
- ...(re = i.selectedFirstRow.value) != null ? re : {},
10571
+ let _e = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), he = ref({
10572
+ ...(ae = i.selectedFirstRow.value) != null ? ae : {},
10573
10573
  ...toRaw(s.model.value)
10574
10574
  });
10575
- if (((oe = b.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete me.value.id, await s.store.emit(n.formID, "beforeRequest", {
10575
+ if (((se = b.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete he.value.id, await s.store.emit(n.formID, "beforeRequest", {
10576
10576
  isCreating: n.isCreating.value,
10577
10577
  isUpdating: n.isUpdating.value,
10578
10578
  isCopying: n.isCopying.value,
@@ -10580,25 +10580,25 @@ const getProps$n = () => ({
10580
10580
  row: i.selectedRow.value,
10581
10581
  rows: i.selectedRows.value,
10582
10582
  model: s.model,
10583
- params: pe,
10584
- data: me
10583
+ params: _e,
10584
+ data: he
10585
10585
  }))
10586
10586
  return;
10587
10587
  await httpClient().request({
10588
- method: (ie = (se = m.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
10588
+ method: (le = (ie = m.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
10589
10589
  url: U,
10590
- params: pe.value,
10591
- data: me.value
10592
- }), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(a.t("kg.copySuccess")), s.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (ue = (ee = l.search).value) == null || ue.call(ee, !0);
10593
- } catch (pe) {
10594
- console.error(pe);
10590
+ params: _e.value,
10591
+ data: he.value
10592
+ }), ((ue = m.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(a.t("kg.copySuccess")), s.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (de = (ee = l.search).value) == null || de.call(ee, !0);
10593
+ } catch (_e) {
10594
+ console.error(_e);
10595
10595
  } finally {
10596
10596
  n.store.setIsCopyingRequesting(n.formID, !1);
10597
10597
  }
10598
10598
  }
10599
- async function fe() {
10600
- var W, Q, te, re, oe, se, ie, le;
10601
- const U = (W = _.value) == null ? void 0 : W.cmd;
10599
+ async function X() {
10600
+ var z, Q, re, ae, se, ie, le, ue;
10601
+ const U = (z = _.value) == null ? void 0 : z.cmd;
10602
10602
  if (!U) {
10603
10603
  Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10604
10604
  VarButton: _.value
@@ -10608,11 +10608,11 @@ const getProps$n = () => ({
10608
10608
  try {
10609
10609
  n.store.setIsDeletingRequesting(n.formID, !0);
10610
10610
  let ee = ref({
10611
- ids: (te = (Q = i.selectedRows.value) == null ? void 0 : Q.map((me) => {
10612
- var he, ve, be;
10613
- return (be = me[(ve = (he = _.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
10614
- })) != null ? te : []
10615
- }), ue = ref({});
10611
+ ids: (re = (Q = i.selectedRows.value) == null ? void 0 : Q.map((he) => {
10612
+ var be, ye, Se;
10613
+ return (Se = he[(ye = (be = _.value) == null ? void 0 : be.del_param_clm) != null ? ye : "id"]) != null ? Se : "";
10614
+ })) != null ? re : []
10615
+ }), de = ref({});
10616
10616
  if (await s.store.emit(n.formID, "beforeRequest", {
10617
10617
  isCreating: n.isCreating.value,
10618
10618
  isUpdating: n.isUpdating.value,
@@ -10622,63 +10622,63 @@ const getProps$n = () => ({
10622
10622
  rows: i.selectedRows.value,
10623
10623
  model: s.model,
10624
10624
  params: ee,
10625
- data: ue
10625
+ data: de
10626
10626
  }))
10627
10627
  return;
10628
10628
  await httpClient().request({
10629
- method: (oe = (re = _.value) == null ? void 0 : re.cmd_method) != null ? oe : "DELETE",
10629
+ method: (se = (ae = _.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10630
10630
  url: U,
10631
10631
  params: ee.value,
10632
- data: ue.value
10632
+ data: de.value
10633
10633
  }, {
10634
10634
  joinParamsToUrl: !0
10635
- }), ((se = _.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.deleteSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
10635
+ }), ((ie = _.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(a.t("kg.deleteSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le, !0);
10636
10636
  } catch (ee) {
10637
10637
  console.error(ee);
10638
10638
  } finally {
10639
10639
  n.store.setIsDeletingRequesting(n.formID, !1);
10640
10640
  }
10641
10641
  }
10642
- function _e(U) {
10643
- var Q, te;
10644
- const W = (te = (Q = u == null ? void 0 : u.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[U.var_nam];
10645
- return isFunction$2(W) ? createVNode(KgForm.Item, {
10642
+ function ce(U) {
10643
+ var Q, re;
10644
+ const z = (re = (Q = u == null ? void 0 : u.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[U.var_nam];
10645
+ return isFunction$2(z) ? createVNode(KgForm.Item, {
10646
10646
  kgVarName: U.var_nam,
10647
10647
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10648
10648
  kgRules: s.rules.value[U.var_nam],
10649
- onKgSubmit: z
10649
+ onKgSubmit: K
10650
10650
  }, {
10651
10651
  control: ({
10652
- varName: re,
10653
- props: oe,
10654
- model: se,
10655
- varVariableConfig: ie,
10656
- varProfileDetail: le,
10652
+ varName: ae,
10653
+ props: se,
10654
+ model: ie,
10655
+ varVariableConfig: le,
10656
+ varProfileDetail: ue,
10657
10657
  varSubmitField: ee
10658
- }) => W({
10659
- varName: re,
10660
- props: oe,
10661
- model: se,
10662
- varVariableConfig: ie,
10663
- varProfileDetail: le,
10658
+ }) => z({
10659
+ varName: ae,
10660
+ props: se,
10661
+ model: ie,
10662
+ varVariableConfig: le,
10663
+ varProfileDetail: ue,
10664
10664
  varSubmitField: ee
10665
10665
  })
10666
10666
  }) : createVNode(KgForm.Item, {
10667
10667
  kgVarName: U.var_nam,
10668
10668
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10669
10669
  kgRules: s.rules.value[U.var_nam],
10670
- onKgSubmit: z
10670
+ onKgSubmit: K
10671
10671
  }, null);
10672
10672
  }
10673
- function ye() {
10674
- let U, W;
10673
+ function me() {
10674
+ let U, z;
10675
10675
  return createVNode(KgResizable, {
10676
10676
  kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10677
- kgMinWidth: $.value,
10678
- kgMaxWidth: w.value,
10679
- kgWidth: D.value,
10680
- kgDisabled: N.value,
10681
- "onUpdate:kgWidth": (Q) => R.value.kgWidth = Q
10677
+ kgMinWidth: D.value,
10678
+ kgMaxWidth: V.value,
10679
+ kgWidth: P.value,
10680
+ kgDisabled: R.value,
10681
+ "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10682
10682
  }, {
10683
10683
  default: () => [createVNode(Spin, {
10684
10684
  spinning: v.value
@@ -10686,20 +10686,20 @@ const getProps$n = () => ({
10686
10686
  default: () => [createVNode(KgForm, {
10687
10687
  ref: s.formRef,
10688
10688
  model: s.model.value,
10689
- layout: ae.value,
10690
- labelCol: de.value,
10691
- wrapperCol: ge.value
10689
+ layout: ne.value,
10690
+ labelCol: fe.value,
10691
+ wrapperCol: pe.value
10692
10692
  }, {
10693
10693
  default: () => [createVNode("div", {
10694
10694
  ref: B
10695
10695
  }, [M.value.length > 0 && createVNode(Row, {
10696
10696
  gutter: 12
10697
- }, _isSlot$8(U = M.value.map(_e)) ? U : {
10697
+ }, _isSlot$7(U = M.value.map(ce)) ? U : {
10698
10698
  default: () => [U]
10699
- }), M.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
10699
+ }), M.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
10700
10700
  gutter: 12
10701
- }, _isSlot$8(W = A.value.map(_e)) ? W : {
10702
- default: () => [W]
10701
+ }, _isSlot$7(z = I.value.map(ce)) ? z : {
10702
+ default: () => [z]
10703
10703
  }), c.value && createVNode("div", {
10704
10704
  style: "text-align: center; padding: 6px 0 12px;"
10705
10705
  }, [a.t("kg.confirmDelete")])])]
@@ -10707,23 +10707,23 @@ const getProps$n = () => ({
10707
10707
  })]
10708
10708
  });
10709
10709
  }
10710
- function Se() {
10711
- let U, W;
10710
+ function ve() {
10711
+ let U, z;
10712
10712
  return createVNode("div", null, [createVNode(Button, {
10713
10713
  type: "primary",
10714
- ghost: !K.value,
10715
- disabled: K.value,
10716
- onClick: G
10717
- }, _isSlot$8(U = a.t("kg.cancel")) ? U : {
10714
+ ghost: !F.value,
10715
+ disabled: F.value,
10716
+ onClick: L
10717
+ }, _isSlot$7(U = a.t("kg.cancel")) ? U : {
10718
10718
  default: () => [U]
10719
10719
  }), createVNode(Button, {
10720
10720
  type: "primary",
10721
- disabled: P.value,
10721
+ disabled: w.value,
10722
10722
  loading: O.value,
10723
10723
  danger: !!n.isDeleting.value,
10724
- onClick: z
10725
- }, _isSlot$8(W = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
10726
- default: () => [W]
10724
+ onClick: K
10725
+ }, _isSlot$7(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10726
+ default: () => [z]
10727
10727
  })]);
10728
10728
  }
10729
10729
  function Ce() {
@@ -10737,7 +10737,7 @@ const getProps$n = () => ({
10737
10737
  "onUpdate:isFullscreen": (U) => q.isFullscreen = U,
10738
10738
  kgShowFullscreenButton: !c.value,
10739
10739
  kgShowConfigButton: !c.value && e.kgShowConfigButton,
10740
- onKgCancel: G
10740
+ onKgCancel: L
10741
10741
  }, null);
10742
10742
  }
10743
10743
  return onUnmounted(() => {
@@ -10749,14 +10749,14 @@ const getProps$n = () => ({
10749
10749
  maskClosable: !1,
10750
10750
  keyboard: !1,
10751
10751
  destroyOnClose: !0,
10752
- width: H.value,
10752
+ width: G.value,
10753
10753
  class: Z.value,
10754
10754
  "kg-frm-id": n.formID
10755
10755
  }, {
10756
10756
  title: Ce,
10757
10757
  extra: Te,
10758
- default: ye,
10759
- footer: Se
10758
+ default: me,
10759
+ footer: ve
10760
10760
  });
10761
10761
  }
10762
10762
  }), KgYesOrNo$1 = "", getProps$m = () => ({
@@ -10976,31 +10976,31 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
10976
10976
  var T;
10977
10977
  try {
10978
10978
  await ((T = _.value) == null ? void 0 : T.validate());
10979
- } catch (I) {
10980
- KgUtil.throwIfNotFormError(I);
10979
+ } catch (A) {
10980
+ KgUtil.throwIfNotFormError(A);
10981
10981
  }
10982
10982
  return !1;
10983
10983
  });
10984
10984
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), c = computed(() => {
10985
- var T, I, k, V, M, A;
10986
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!n.isCreating.value && ((k = u.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = u.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((A = u.value) == null ? void 0 : A.del_flg) === 1);
10985
+ var T, A, E, $, M, I;
10986
+ 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);
10987
10987
  }), g = computed(() => {
10988
- var T, I;
10989
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[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);
10988
+ var T, A;
10989
+ 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);
10990
10990
  }), p = computed(() => {
10991
- var I, k;
10991
+ var A, E;
10992
10992
  let T = "kg-table-td";
10993
- return ((I = l.value) == null ? void 0 : I.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;
10993
+ 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;
10994
10994
  }), m = computed(() => {
10995
- var I, k, V;
10995
+ var A, E, $;
10996
10996
  if (e.kgValue === ID_CREATE)
10997
10997
  return "";
10998
10998
  let T = e.kgValue;
10999
- switch ((I = l.value) == null ? void 0 : I.display_type) {
10999
+ switch ((A = l.value) == null ? void 0 : A.display_type) {
11000
11000
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11001
11001
  {
11002
- const M = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11003
- T = (V = e.kgRow) == null ? void 0 : V[M.dscFieldName || `${e.kgVarName}_dsc`];
11002
+ const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11003
+ T = ($ = e.kgRow) == null ? void 0 : $[M.dscFieldName || `${e.kgVarName}_dsc`];
11004
11004
  }
11005
11005
  break;
11006
11006
  }
@@ -11008,17 +11008,17 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11008
11008
  `)), T;
11009
11009
  }), _ = ref(null);
11010
11010
  function v(T) {
11011
- var I, k, V;
11011
+ var A, E, $;
11012
11012
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11013
- switch ((I = l.value) == null ? void 0 : I.display_type) {
11013
+ switch ((A = l.value) == null ? void 0 : A.display_type) {
11014
11014
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11015
11015
  T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
11016
11016
  break;
11017
11017
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11018
11018
  {
11019
11019
  T.stopPropagation(), T.preventDefault();
11020
- const M = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11021
- (V = a.router.value) == null || V.push({
11020
+ const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11021
+ ($ = a.router.value) == null || $.push({
11022
11022
  path: M.path,
11023
11023
  query: e.kgRow
11024
11024
  });
@@ -11050,48 +11050,48 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11050
11050
  });
11051
11051
  }
11052
11052
  function C() {
11053
- var T, I, k, V, M, A, O, K;
11053
+ var T, A, E, $, M, I, O, F;
11054
11054
  if (c.value)
11055
11055
  return y();
11056
11056
  switch ((T = l.value) == null ? void 0 : T.display_type) {
11057
11057
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11058
- const P = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11058
+ const w = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11059
11059
  return createVNode(KgYesOrNo, {
11060
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = P.yValue) != null ? k : 1),
11061
- kgNilAsFalse: P.nilAsFalse
11060
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = w.yValue) != null ? E : 1),
11061
+ kgNilAsFalse: w.nilAsFalse
11062
11062
  }, null);
11063
11063
  }
11064
11064
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11065
- const P = KgUtil.tryParseJSON((V = l.value) == null ? void 0 : V.display_type_properties), R = isArrayLike(P) && P.find((N) => N.value === e.kgValue);
11066
- return R ? createVNode(Tag, {
11067
- color: (M = R.color) != null ? M : "default"
11065
+ const w = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), N = isArrayLike(w) && w.find((R) => R.value === e.kgValue);
11066
+ return N ? createVNode(Tag, {
11067
+ color: (M = N.color) != null ? M : "default"
11068
11068
  }, {
11069
- default: () => [n.t(R.varName).value]
11070
- }) : E();
11069
+ default: () => [n.t(N.varName).value]
11070
+ }) : k();
11071
11071
  }
11072
11072
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11073
- const P = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11073
+ const w = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11074
11074
  return createVNode(KgProgressA, {
11075
- kgTextWidth: P.textWidth,
11076
- kgLeft: (O = e.kgRow) == null ? void 0 : O[P.leftColumn],
11077
- kgRight: (K = e.kgRow) == null ? void 0 : K[P.rightColumn]
11075
+ kgTextWidth: w.textWidth,
11076
+ kgLeft: (O = e.kgRow) == null ? void 0 : O[w.leftColumn],
11077
+ kgRight: (F = e.kgRow) == null ? void 0 : F[w.rightColumn]
11078
11078
  }, null);
11079
11079
  }
11080
11080
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
11081
11081
  return KgUtil.getFileSize(e.kgValue);
11082
11082
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11083
- return E(!0);
11083
+ return k(!0);
11084
11084
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11085
- return E(!0);
11085
+ return k(!0);
11086
11086
  default:
11087
- return E();
11087
+ return k();
11088
11088
  }
11089
11089
  }
11090
- function E(T = !1) {
11091
- let I = "";
11092
- return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
11090
+ function k(T = !1) {
11091
+ let A = "";
11092
+ return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
11093
11093
  innerHTML: m.value,
11094
- class: I,
11094
+ class: A,
11095
11095
  onClick: v
11096
11096
  }, null);
11097
11097
  }
@@ -11101,7 +11101,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11101
11101
  }, [C()]);
11102
11102
  }
11103
11103
  }), KgTable_Info = "";
11104
- function _isSlot$7(e) {
11104
+ function _isSlot$6(e) {
11105
11105
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11106
11106
  }
11107
11107
  const getProps$k = () => ({
@@ -11143,14 +11143,14 @@ const getProps$k = () => ({
11143
11143
  onClick: n,
11144
11144
  class: "btn-clear-check",
11145
11145
  type: "link"
11146
- }, _isSlot$7(s = a.t("kg.KgTableInfo.clearCheck")) ? s : {
11146
+ }, _isSlot$6(s = a.t("kg.KgTableInfo.clearCheck")) ? s : {
11147
11147
  default: () => [s]
11148
11148
  }), e.kgShowLocate && createVNode(Button, {
11149
11149
  disabled: e.kgDisabled,
11150
11150
  onClick: i,
11151
11151
  class: "btn-locate-check",
11152
11152
  type: "link"
11153
- }, _isSlot$7(l = a.t("kg.KgTableInfo.locate")) ? l : {
11153
+ }, _isSlot$6(l = a.t("kg.KgTableInfo.locate")) ? l : {
11154
11154
  default: () => [l]
11155
11155
  })]
11156
11156
  })]), e.kgShowClearTable && createVNode(Button, {
@@ -11158,7 +11158,7 @@ const getProps$k = () => ({
11158
11158
  onClick: o,
11159
11159
  class: "btn-clear-table",
11160
11160
  danger: !0
11161
- }, _isSlot$7(u = a.t("kg.KgTableInfo.clearTable")) ? u : {
11161
+ }, _isSlot$6(u = a.t("kg.KgTableInfo.clearTable")) ? u : {
11162
11162
  default: () => [u]
11163
11163
  })]);
11164
11164
  };
@@ -11185,8 +11185,8 @@ const getProps$k = () => ({
11185
11185
  }) => {
11186
11186
  const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11187
11187
  return i = watch(l, (c) => {
11188
- var g, p, m, _, v, b, y, C, E, T, I;
11189
- 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 = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (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 = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11188
+ var g, p, m, _, v, b, y, C, k, T, A;
11189
+ 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 = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (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);
11190
11190
  }, {
11191
11191
  immediate: !0
11192
11192
  }), !1;
@@ -11382,7 +11382,7 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11382
11382
  }) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
11383
11383
  }
11384
11384
  });
11385
- function _isSlot$6(e) {
11385
+ function _isSlot$5(e) {
11386
11386
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11387
11387
  }
11388
11388
  const KgTableSetting = defineComponent({
@@ -11398,17 +11398,17 @@ const KgTableSetting = defineComponent({
11398
11398
  } = _useServices(), s = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
11399
11399
  visible: !1
11400
11400
  }), g = computed(() => !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value), p = ref(!1);
11401
- _useObserveMenuItemColumns(u), watch(u, (E) => {
11402
- E || (s.value = "");
11401
+ _useObserveMenuItemColumns(u), watch(u, (k) => {
11402
+ k || (s.value = "");
11403
11403
  }, {
11404
11404
  immediate: !0
11405
11405
  });
11406
- function m(E) {
11407
- n.store.setVarGridDetailVisible(n.formID, E.var_nam, E.vis_flg === 1 ? 0 : 1);
11406
+ function m(k) {
11407
+ n.store.setVarGridDetailVisible(n.formID, k.var_nam, k.vis_flg === 1 ? 0 : 1);
11408
11408
  }
11409
11409
  async function _() {
11410
- var E;
11411
- if (((E = n.currentVarGridMaster.value) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11410
+ var k;
11411
+ if (((k = n.currentVarGridMaster.value) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11412
11412
  KgUtil.confirm({
11413
11413
  content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
11414
11414
  okButtonProps: {
@@ -11436,7 +11436,7 @@ const KgTableSetting = defineComponent({
11436
11436
  popupClassName: "kg-table-setting-submenu-popup-columns"
11437
11437
  }, {
11438
11438
  default: () => {
11439
- var E;
11439
+ var k;
11440
11440
  return createVNode("div", {
11441
11441
  class: "columns"
11442
11442
  }, [createVNode(Input, {
@@ -11445,10 +11445,10 @@ const KgTableSetting = defineComponent({
11445
11445
  allowClear: !0
11446
11446
  }, null), createVNode("ul", {
11447
11447
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11448
- }, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((T) => createVNode("li", {
11448
+ }, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
11449
11449
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11450
- onClick: (I) => {
11451
- I.preventDefault(), I.stopPropagation(), m(T);
11450
+ onClick: (A) => {
11451
+ A.preventDefault(), A.stopPropagation(), m(T);
11452
11452
  },
11453
11453
  style: {
11454
11454
  display: i(T, s.value) ? "flex" : "none"
@@ -11460,8 +11460,8 @@ const KgTableSetting = defineComponent({
11460
11460
  }, {
11461
11461
  default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
11462
11462
  }), createVNode(HolderOutlined$1, {
11463
- onClick: (I) => {
11464
- I.preventDefault(), I.stopPropagation();
11463
+ onClick: (A) => {
11464
+ A.preventDefault(), A.stopPropagation();
11465
11465
  }
11466
11466
  }, null)]))])]);
11467
11467
  },
@@ -11475,27 +11475,27 @@ const KgTableSetting = defineComponent({
11475
11475
  popupClassName: "kg-table-setting-submenu-popup-masters"
11476
11476
  }, {
11477
11477
  default: () => {
11478
- var I;
11479
- let E, T;
11480
- return createVNode(Fragment, null, [(I = n.varGridMasters.value) == null ? void 0 : I.map((k) => {
11481
- var V;
11478
+ var A;
11479
+ let k, T;
11480
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
11481
+ var $;
11482
11482
  return createVNode(Menu.Item, {
11483
- key: k.id,
11484
- class: k.id === ((V = n.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
11485
- "kg-var-nam": k.grd_var_nam,
11486
- onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
11483
+ key: E.id,
11484
+ class: E.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
11485
+ "kg-var-nam": E.grd_var_nam,
11486
+ onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
11487
11487
  }, {
11488
- default: () => [n.t(k.grd_var_nam).value]
11488
+ default: () => [n.t(E.grd_var_nam).value]
11489
11489
  });
11490
11490
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11491
11491
  key: "save-grid-view",
11492
11492
  onClick: _
11493
- }, _isSlot$6(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11494
- default: () => [E]
11493
+ }, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMaster")) ? k : {
11494
+ default: () => [k]
11495
11495
  }), createVNode(Menu.Item, {
11496
11496
  key: "save-grid-view-as",
11497
11497
  onClick: v
11498
- }, _isSlot$6(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11498
+ }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11499
11499
  default: () => [T]
11500
11500
  })]);
11501
11501
  },
@@ -11503,14 +11503,14 @@ const KgTableSetting = defineComponent({
11503
11503
  });
11504
11504
  }
11505
11505
  function C() {
11506
- let E;
11506
+ let k;
11507
11507
  return createVNode(Menu.Item, {
11508
11508
  key: "config-var-grid-master",
11509
11509
  onClick: () => {
11510
11510
  c.visible = !0;
11511
11511
  }
11512
- }, _isSlot$6(E = a.t("kg.KgTable.config")) ? E : {
11513
- default: () => [E]
11512
+ }, _isSlot$5(k = a.t("kg.KgTable.config")) ? k : {
11513
+ default: () => [k]
11514
11514
  });
11515
11515
  }
11516
11516
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -11523,14 +11523,14 @@ const KgTableSetting = defineComponent({
11523
11523
  overlay: () => createVNode(Menu, {
11524
11524
  triggerSubMenuAction: "click",
11525
11525
  openKeys: l.value,
11526
- "onUpdate:openKeys": (E) => l.value = E,
11526
+ "onUpdate:openKeys": (k) => l.value = k,
11527
11527
  selectable: !1
11528
11528
  }, {
11529
11529
  default: () => [b(), y(), C()]
11530
11530
  })
11531
11531
  }), c.visible && createVNode(KgTableSettingConfigModal, {
11532
11532
  visible: c.visible,
11533
- "onUpdate:visible": (E) => c.visible = E,
11533
+ "onUpdate:visible": (k) => c.visible = k,
11534
11534
  hostFormID: n.formID
11535
11535
  }, null), p.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
11536
11536
  }
@@ -11567,35 +11567,35 @@ function _useColumns() {
11567
11567
  if (m.fix_right_flg === 1)
11568
11568
  return "right";
11569
11569
  }
11570
- function E() {
11570
+ function k() {
11571
11571
  return m.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
11572
11572
  }
11573
11573
  function T() {
11574
11574
  return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
11575
11575
  }
11576
- const I = v();
11576
+ const A = v();
11577
11577
  return {
11578
11578
  dataIndex: _,
11579
11579
  title: b(),
11580
- width: I,
11581
- resizable: typeof I == "number",
11580
+ width: A,
11581
+ resizable: typeof A == "number",
11582
11582
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11583
11583
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11584
11584
  fixed: C(),
11585
- sorter: E(),
11585
+ sorter: k(),
11586
11586
  align: T(),
11587
11587
  defaultSortOrder: y(),
11588
11588
  customHeaderCell: () => ({
11589
11589
  "kg-frm-id": e.formID,
11590
11590
  "kg-var-nam": _
11591
11591
  }),
11592
- customCell: (k) => {
11592
+ customCell: (E) => {
11593
11593
  var M;
11594
- const V = e.store.getVarSubmitField(e.formID, _);
11594
+ const $ = e.store.getVarSubmitField(e.formID, _);
11595
11595
  return {
11596
11596
  "kg-frm-id": e.formID,
11597
11597
  "kg-var-nam": _,
11598
- 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 && (V == null ? void 0 : V.crt_flg) === 1 || !!e.isUpdating.value && (V == null ? void 0 : V.upt_flg) === 1 || !!e.isCopying.value && (V == null ? void 0 : V.cpy_flg) === 1 || !!e.isDeleting.value && (V == null ? void 0 : V.del_flg) === 1) ? "submitting" : ""
11598
+ 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" : ""
11599
11599
  };
11600
11600
  }
11601
11601
  };
@@ -11635,11 +11635,7 @@ function _useResizeObserver(e) {
11635
11635
  a == null || a.disconnect();
11636
11636
  }), {};
11637
11637
  }
11638
- const KgTable$1 = "";
11639
- function _isSlot$5(e) {
11640
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11641
- }
11642
- const KgTable = defineComponent({
11638
+ const KgTable$1 = "", KgTable = defineComponent({
11643
11639
  name: "KgTable",
11644
11640
  setup: function(e, {
11645
11641
  slots: t,
@@ -11647,23 +11643,23 @@ const KgTable = defineComponent({
11647
11643
  }) {
11648
11644
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = useKg(), i = useKgVar(), s = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
11649
11645
  s.onSearch((L) => {
11650
- w(L);
11646
+ B(L);
11651
11647
  }), s.onReset(() => {
11652
- w(!0);
11648
+ B(!0);
11653
11649
  }), u.store.$onAction(async ({
11654
11650
  name: L,
11655
- args: F
11651
+ args: K
11656
11652
  }) => {
11657
11653
  switch (L) {
11658
11654
  case "setSelecte":
11659
- if (F[0] === i.formID) {
11660
- const G = F[1], z = F[2];
11655
+ if (K[0] === i.formID) {
11656
+ const H = K[1], W = K[2];
11661
11657
  switch (!0) {
11662
- case (z && !A.value.includes(G[u.id.value])):
11663
- D([...A.value, G[u.id.value]]);
11658
+ case (W && !F.value.includes(H[u.id.value])):
11659
+ x([...F.value, H[u.id.value]]);
11664
11660
  break;
11665
- case (!z && A.value.includes(G[u.id.value])):
11666
- D(without$1(A.value, G[u.id.value]));
11661
+ case (!W && F.value.includes(H[u.id.value])):
11662
+ x(without$1(F.value, H[u.id.value]));
11667
11663
  break;
11668
11664
  }
11669
11665
  }
@@ -11678,113 +11674,118 @@ const KgTable = defineComponent({
11678
11674
  } = _useLoading(), b = ref(null);
11679
11675
  _useResizeObserver(b);
11680
11676
  const y = computed(() => {
11681
- var L, F;
11682
- return (F = (L = i.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? F : null;
11677
+ var L, K;
11678
+ return (K = (L = i.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? K : null;
11683
11679
  }), C = computed(() => {
11684
- var F, G, z, J, X, ce, fe;
11680
+ var K, H, W, J, X, ce, me;
11685
11681
  let L = {
11686
- pageNo: O.pageIndex,
11687
- pageSize: O.pageSize,
11688
- ...K,
11689
- ...(G = (F = s.model) == null ? void 0 : F.value) != null ? G : {}
11682
+ pageNo: w.pageIndex,
11683
+ pageSize: w.pageSize,
11684
+ ...N,
11685
+ ...(H = (K = s.model) == null ? void 0 : K.value) != null ? H : {}
11690
11686
  };
11691
11687
  return i.varButtonSearch.value && (L = {
11692
11688
  ...L,
11693
- ...KgVarUtil.parseCommandParameter((J = (z = i.varButtonSearch.value) == null ? void 0 : z.cmd_prm) != null ? J : "")
11689
+ ...KgVarUtil.parseCommandParameter((J = (W = i.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? J : "")
11694
11690
  }), (X = i.varGridConfig.value) != null && X.cmd_prm && (L = {
11695
11691
  ...L,
11696
11692
  ...KgVarUtil.parseCommandParameter((ce = i.varGridConfig.value.cmd_prm) != null ? ce : "")
11697
- }), ((fe = i.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11698
- }), E = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || O.total === 0), T = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), I = computed(() => {
11693
+ }), ((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;
11694
+ }), k = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || w.total === 0), T = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
11695
+ var L;
11696
+ return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
11697
+ }), E = computed(() => {
11699
11698
  var L;
11700
- if (((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1)
11699
+ return ((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
11700
+ }), $ = computed(() => {
11701
+ if (!!E.value)
11701
11702
  return {
11702
11703
  fixed: "left",
11703
11704
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11704
11705
  hideSelectAll: !u.isMultiSelect.value,
11705
- selectedRowKeys: A,
11706
+ selectedRowKeys: F,
11706
11707
  preserveSelectedRowKeys: !1,
11707
- getCheckboxProps: (F) => ({
11708
+ getCheckboxProps: (L) => ({
11708
11709
  disabled: !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value
11709
11710
  }),
11710
- onSelect: (F) => B(F),
11711
- onChange: (F) => u.isMultiSelect.value && D(F)
11711
+ onSelect: (L) => G(L),
11712
+ onChange: (L) => u.isMultiSelect.value && x(L)
11712
11713
  };
11713
- }), k = computed(() => {
11714
- var F;
11714
+ }), M = computed(() => {
11715
+ var K;
11715
11716
  let L = "kg-table";
11716
- return ((F = i.varGridConfig.value) == null ? void 0 : F.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) && (L += " kg-table--submitting"), L;
11717
- }), V = computed(() => {
11718
- var F;
11717
+ return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) && (L += " kg-table--submitting"), L;
11718
+ }), I = computed(() => {
11719
+ var K;
11719
11720
  let L = "kg-table-bottom";
11720
- return ((F = i.varGridConfig.value) == null ? void 0 : F.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
11721
- }), M = ref([]), A = ref([]), O = reactive({
11721
+ return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
11722
+ }), O = ref([]), F = ref([]), w = reactive({
11722
11723
  pageIndex: 1,
11723
11724
  pageSize: 10,
11724
11725
  total: 0
11725
- }), K = reactive({
11726
+ }), N = reactive({
11726
11727
  column: void 0,
11727
11728
  order: void 0
11728
- }), P = watch(u.pageSizeOption, (L) => {
11729
- L && (setTimeout(() => P()), O.pageSize = L), g.value = !0;
11729
+ }), R = watch(u.pageSizeOption, (L) => {
11730
+ L && (setTimeout(() => R()), w.pageSize = L), g.value = !0;
11730
11731
  });
11731
11732
  watch(u.pageSizeOptions, (L) => {
11732
- L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
11733
- }), watch([y, u.isReadAutomatically, s.isReady], ([L, F, G]) => {
11734
- L && F && G && !u.store.getIsRetrieved(i.formID) && w(!0);
11733
+ L.length > 0 && !L.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
11734
+ }), watch([y, u.isReadAutomatically, s.isReady], ([L, K, H]) => {
11735
+ L && K && H && !u.store.getIsRetrieved(i.formID) && B(!0);
11735
11736
  }, {
11736
11737
  immediate: !0
11737
- }), watch(i.isCreating, (L, F) => {
11738
- L === !0 ? R() : L === !1 && F === !0 && N();
11738
+ }), watch(i.isCreating, (L, K) => {
11739
+ L === !0 ? D() : L === !1 && K === !0 && V();
11739
11740
  }), onUnmounted(() => {
11740
11741
  u.store.dispose(i.formID);
11741
11742
  });
11742
- function R() {
11743
+ function D() {
11743
11744
  if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
11744
11745
  const L = {
11745
11746
  [u.id.value]: ID_CREATE
11746
11747
  };
11747
- M.value = [L, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [L]);
11748
+ O.value = [L, ...O.value], F.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [L]);
11748
11749
  }
11749
11750
  }
11750
- function N() {
11751
- const L = M.value.find((F) => F[u.id.value] === ID_CREATE);
11752
- L && (M.value = without$1(M.value, L), A.value = [], u.store.setSelectedRows(i.formID, []));
11751
+ function V() {
11752
+ const L = O.value.find((K) => K[u.id.value] === ID_CREATE);
11753
+ L && (O.value = without$1(O.value, L), F.value = [], u.store.setSelectedRows(i.formID, []));
11753
11754
  }
11754
- function $(L, F) {
11755
- if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!I.value) {
11756
- if (!F) {
11757
- A.value = [], u.store.setSelectedRows(i.formID, []);
11755
+ function P(L, K) {
11756
+ if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!$.value) {
11757
+ if (!K) {
11758
+ F.value = [], u.store.setSelectedRows(i.formID, []);
11758
11759
  return;
11759
11760
  }
11760
11761
  switch (L == null ? void 0 : L.detail) {
11761
11762
  case 1:
11762
- A.value = [F[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((G) => {
11763
- var z;
11764
- return (z = M.value) == null ? void 0 : z.find((J) => J[u.id.value] === G);
11765
- }).filter((G) => !!G));
11763
+ F.value = [K[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((H) => {
11764
+ var W;
11765
+ return (W = O.value) == null ? void 0 : W.find((J) => J[u.id.value] === H);
11766
+ }).filter((H) => !!H));
11766
11767
  break;
11767
11768
  case 2:
11768
- u.store.emit(i.formID, "rowDoubleClick", F);
11769
+ u.store.emit(i.formID, "rowDoubleClick", K);
11769
11770
  break;
11770
11771
  }
11771
11772
  }
11772
11773
  }
11773
- function w(L = !1) {
11774
- const F = watch(g, (z) => {
11775
- z && (setTimeout(() => F()), G());
11774
+ function B(L = !1) {
11775
+ const K = watch(g, (W) => {
11776
+ W && (setTimeout(() => K()), H());
11776
11777
  }, {
11777
11778
  immediate: !0
11778
11779
  });
11779
- async function G() {
11780
- var z, J;
11780
+ async function H() {
11781
+ var W, J;
11781
11782
  if (!y.value) {
11782
11783
  Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11783
11784
  VarButton: i.varButtonSearch.value
11784
11785
  });
11785
11786
  return;
11786
11787
  }
11787
- L && (O.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11788
+ L && (w.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11788
11789
  try {
11789
11790
  const X = await httpClient().request({
11790
11791
  method: "GET",
@@ -11795,19 +11796,19 @@ const KgTable = defineComponent({
11795
11796
  });
11796
11797
  switch (!0) {
11797
11798
  case !X:
11798
- M.value = [], O.total = 0;
11799
+ O.value = [], w.total = 0;
11799
11800
  break;
11800
11801
  case isArrayLike(X):
11801
- M.value = X, O.total = X.length;
11802
+ O.value = X, w.total = X.length;
11802
11803
  break;
11803
11804
  case ("total" in X && "records" in X):
11804
- M.value = (z = X.records) != null ? z : [], O.total = (J = X.total) != null ? J : 0;
11805
+ O.value = (W = X.records) != null ? W : [], w.total = (J = X.total) != null ? J : 0;
11805
11806
  break;
11806
11807
  }
11807
11808
  u.store.emit(i.formID, "retrieve", {
11808
11809
  page: X,
11809
- datas: M
11810
- }), $(), p.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11810
+ datas: O
11811
+ }), P(), p.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11811
11812
  } catch (X) {
11812
11813
  throw X;
11813
11814
  } finally {
@@ -11815,148 +11816,154 @@ const KgTable = defineComponent({
11815
11816
  }
11816
11817
  }
11817
11818
  }
11818
- function D(L) {
11819
- A.value = L, u.store.setSelectedRows(i.formID, A.value.map((F) => {
11820
- var G;
11821
- return (G = M.value) == null ? void 0 : G.find((z) => z[u.id.value] === F);
11822
- }).filter((F) => !!F));
11819
+ function x(L) {
11820
+ F.value = L, u.store.setSelectedRows(i.formID, F.value.map((K) => {
11821
+ var H;
11822
+ return (H = O.value) == null ? void 0 : H.find((W) => W[u.id.value] === K);
11823
+ }).filter((K) => !!K));
11823
11824
  }
11824
- function B(L) {
11825
- var F, G;
11825
+ function G(L) {
11826
+ var K, H;
11826
11827
  switch (u.isMultiSelect.value) {
11827
11828
  case !0:
11828
11829
  {
11829
- const z = L[u.id.value];
11830
- A.value.includes(z) ? A.value = without$1(A.value, z) : A.value = [...(F = A.value) != null ? F : [], z];
11830
+ const W = L[u.id.value];
11831
+ F.value.includes(W) ? F.value = without$1(F.value, W) : F.value = [...(K = F.value) != null ? K : [], W];
11831
11832
  }
11832
11833
  break;
11833
11834
  case !1:
11834
11835
  {
11835
- const z = L[u.id.value];
11836
- (G = A.value) != null && G.includes(z) ? A.value = [] : A.value = [z];
11836
+ const W = L[u.id.value];
11837
+ (H = F.value) != null && H.includes(W) ? F.value = [] : F.value = [W];
11837
11838
  }
11838
11839
  break;
11839
11840
  }
11840
- u.store.setSelectedRows(i.formID, A.value.map((z) => {
11841
+ u.store.setSelectedRows(i.formID, F.value.map((W) => {
11841
11842
  var J;
11842
- return (J = M.value) == null ? void 0 : J.find((X) => X[u.id.value] === z);
11843
- }).filter((z) => !!z));
11843
+ return (J = O.value) == null ? void 0 : J.find((X) => X[u.id.value] === W);
11844
+ }).filter((W) => !!W));
11844
11845
  }
11845
- function x(L, F) {
11846
- F.width = L, i.store.setVarGridDetailWidth(i.formID, F.dataIndex, L);
11846
+ function Y(L, K) {
11847
+ K.width = L, i.store.setVarGridDetailWidth(i.formID, K.dataIndex, L);
11847
11848
  }
11848
- async function H(L, F, G, z) {
11849
+ async function q(L, K, H, W) {
11849
11850
  var J;
11850
- switch (z.action) {
11851
+ switch (W.action) {
11851
11852
  case "sort":
11852
11853
  {
11853
11854
  await nextTick();
11854
- let X = G;
11855
- X.order ? (K.column = (J = X.field) != null ? J : void 0, K.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (K.column = void 0, K.order = void 0), w(!0);
11855
+ let X = H;
11856
+ 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);
11856
11857
  }
11857
11858
  break;
11858
11859
  }
11859
11860
  }
11860
- function Y(L, F) {
11861
- var z;
11862
- const G = F[u.id.value];
11863
- switch ((z = i.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
11861
+ function Z(L, K) {
11862
+ var W;
11863
+ const H = K[u.id.value];
11864
+ switch ((W = i.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
11864
11865
  case 0:
11865
- L ? p.value = uniq([...p.value, G]) : p.value = without$1(p.value, G);
11866
+ L ? p.value = uniq([...p.value, H]) : p.value = without$1(p.value, H);
11866
11867
  break;
11867
11868
  default:
11868
- L ? p.value = [G] : p.value = [];
11869
+ L ? p.value = [H] : p.value = [];
11869
11870
  break;
11870
11871
  }
11871
11872
  }
11872
- function q(L, F) {
11873
- F !== O.pageSize ? (O.pageIndex = 1, O.pageSize = F) : O.pageIndex = L, w();
11873
+ function ne(L, K) {
11874
+ K !== w.pageSize ? (w.pageIndex = 1, w.pageSize = K) : w.pageIndex = L, B();
11874
11875
  }
11875
- function Z(L) {
11876
- A.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((F) => {
11877
- var G;
11878
- return (G = M.value) == null ? void 0 : G.find((z) => z[u.id.value] === F);
11879
- }).filter((F) => !!F)), l.click(i.formID, KG_BUTTON_TYPE.UPDATE);
11876
+ function oe(L) {
11877
+ F.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((K) => {
11878
+ var H;
11879
+ return (H = O.value) == null ? void 0 : H.find((W) => W[u.id.value] === K);
11880
+ }).filter((K) => !!K)), l.click(i.formID, KG_BUTTON_TYPE.UPDATE);
11880
11881
  }
11881
- function ae({
11882
+ function fe({
11882
11883
  title: L,
11883
- column: F
11884
+ column: K
11884
11885
  }) {
11885
- switch (F.dataIndex) {
11886
+ switch (K.dataIndex) {
11886
11887
  case "index":
11887
11888
  return createVNode(KgTableSetting, null, null);
11888
11889
  default:
11889
11890
  return createVNode("pre", null, [L]);
11890
11891
  }
11891
11892
  }
11892
- function ne() {
11893
- var F;
11894
- let L;
11895
- return (F = n == null ? void 0 : n.KgTable) != null && F["summary.bodyCell"] ? createVNode(TableSummary, {
11893
+ function pe() {
11894
+ var L;
11895
+ return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
11896
11896
  fixed: "bottom"
11897
11897
  }, {
11898
- default: () => [createVNode(TableSummary.Row, null, _isSlot$5(L = m.value.map((G, z) => {
11899
- const J = i.store.getVarGridDetail(i.formID, G.dataIndex);
11900
- return createVNode(TableSummary.Cell, {
11901
- index: z
11902
- }, {
11903
- default: () => {
11904
- var X, ce;
11905
- return [(ce = (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X["summary.bodyCell"]) == null ? void 0 : ce.call(X, {
11906
- column: G,
11907
- index: z,
11908
- varGridDetail: J
11909
- })];
11910
- }
11911
- });
11912
- })) ? L : {
11913
- default: () => [L]
11898
+ default: () => [createVNode(TableSummary.Row, null, {
11899
+ default: () => [A.value && createVNode(TableSummary.Cell, {
11900
+ index: 0
11901
+ }, null), E.value && createVNode(TableSummary.Cell, {
11902
+ index: A.value ? 1 : 0
11903
+ }, null), m.value.map((K, H) => {
11904
+ const W = i.store.getVarGridDetail(i.formID, K.dataIndex);
11905
+ let J = H;
11906
+ return A.value && E.value ? J += 2 : (A.value || E.value) && (J += 1), createVNode(TableSummary.Cell, {
11907
+ index: J
11908
+ }, {
11909
+ default: () => {
11910
+ var X, ce;
11911
+ return [(ce = (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X["summary.bodyCell"]) == null ? void 0 : ce.call(X, {
11912
+ column: K,
11913
+ index: J,
11914
+ varGridDetail: W
11915
+ })];
11916
+ }
11917
+ });
11918
+ })]
11914
11919
  })]
11915
11920
  }) : null;
11916
11921
  }
11917
- function de({
11922
+ function ge({
11918
11923
  column: L,
11919
- index: F,
11920
- record: G,
11921
- value: z,
11922
- text: J
11924
+ index: K,
11925
+ record: H,
11926
+ text: W,
11927
+ value: J
11923
11928
  }) {
11924
- var fe;
11929
+ var me;
11925
11930
  let X = "";
11926
11931
  L.customRender ? X = L.customRender({
11927
- index: F,
11928
- record: G,
11932
+ index: K,
11933
+ record: H,
11929
11934
  column: L,
11930
- text: J,
11931
- value: z,
11932
- renderIndex: F
11933
- }) : X = z;
11935
+ text: W,
11936
+ value: J,
11937
+ renderIndex: K
11938
+ }) : X = J;
11934
11939
  const ce = createVNode(KgTableCell, {
11935
- kgRow: G,
11940
+ kgRow: H,
11936
11941
  kgValue: X,
11937
11942
  kgVarName: L.dataIndex,
11938
- onKgUpdateLinkClick: () => Z(G)
11943
+ onKgUpdateLinkClick: () => oe(H)
11939
11944
  }, null);
11940
- if ((fe = n == null ? void 0 : n.KgTable) != null && fe.bodyCell) {
11941
- const _e = i.store.getVarGridDetail(i.formID, L.dataIndex);
11945
+ if ((me = n == null ? void 0 : n.KgTable) != null && me.bodyCell) {
11946
+ const ve = i.store.getVarGridDetail(i.formID, L.dataIndex);
11942
11947
  return n.KgTable.bodyCell({
11943
- row: G,
11944
- index: F,
11945
- value: z,
11946
11948
  column: L,
11947
- varGridDetail: _e,
11949
+ index: K,
11950
+ record: H,
11951
+ text: W,
11952
+ value: J,
11953
+ row: H,
11954
+ varGridDetail: ve,
11948
11955
  defaultRender: ce
11949
11956
  });
11950
11957
  } else
11951
11958
  return ce;
11952
11959
  }
11953
- function ge() {
11960
+ function te() {
11954
11961
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(i.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11955
11962
  }
11956
11963
  return () => {
11957
11964
  var L;
11958
11965
  return createVNode("div", {
11959
- class: k.value,
11966
+ class: M.value,
11960
11967
  "kg-frm-id": i.formID,
11961
11968
  ref: b
11962
11969
  }, [createVNode(Table, {
@@ -11969,55 +11976,55 @@ const KgTable = defineComponent({
11969
11976
  pagination: !1,
11970
11977
  showSorterTooltip: !1,
11971
11978
  columns: m.value,
11972
- dataSource: M.value,
11979
+ dataSource: O.value,
11973
11980
  loading: v.value,
11974
11981
  rowKey: u.id.value,
11975
- rowSelection: I.value,
11982
+ rowSelection: $.value,
11976
11983
  expandColumnWidth: 28,
11977
11984
  expandedRowKeys: p.value,
11978
- customRow: (F) => ({
11979
- onClick: (G) => $(G, F)
11985
+ customRow: (K) => ({
11986
+ onClick: (H) => P(H, K)
11980
11987
  }),
11981
- onResizeColumn: x,
11982
- onChange: H,
11983
- onExpand: Y
11988
+ onResizeColumn: Y,
11989
+ onChange: q,
11990
+ onExpand: Z
11984
11991
  }, {
11985
- headerCell: ae,
11986
- bodyCell: de,
11987
- emptyText: ge,
11992
+ headerCell: fe,
11993
+ bodyCell: ge,
11994
+ emptyText: te,
11988
11995
  expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender,
11989
- summary: ne
11996
+ summary: pe
11990
11997
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
11991
- class: V.value
11998
+ class: I.value
11992
11999
  }, [createVNode("div", {
11993
12000
  class: "left"
11994
12001
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
11995
- kgShowClearCheck: A.value.length > 0,
11996
- kgShowClearTable: O.total > 0,
11997
- kgShowLocate: A.value.length === 1,
11998
- kgTotal: A.value.length,
12002
+ kgShowClearCheck: F.value.length > 0,
12003
+ kgShowClearTable: w.total > 0,
12004
+ kgShowLocate: F.value.length === 1,
12005
+ kgTotal: F.value.length,
11999
12006
  kgDisabled: T.value
12000
12007
  }, null)]), createVNode("div", {
12001
12008
  class: "right"
12002
12009
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
12003
12010
  size: "default",
12004
- current: O.pageIndex,
12005
- pageSize: O.pageSize,
12006
- pageSizeOptions: u.pageSizeOptions.value.map((F) => String(F)),
12007
- total: O.total,
12011
+ current: w.pageIndex,
12012
+ pageSize: w.pageSize,
12013
+ pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
12014
+ total: w.total,
12008
12015
  showSizeChanger: !0,
12009
12016
  showQuickJumper: !1,
12010
12017
  hideOnSinglePage: !1,
12011
- disabled: E.value,
12018
+ disabled: k.value,
12012
12019
  locale: {
12013
12020
  page: ""
12014
12021
  },
12015
- showTotal: (F, G) => o.t("kg.KgTable.totalText", {
12016
- from: G[0],
12017
- to: G[1],
12018
- total: F
12022
+ showTotal: (K, H) => o.t("kg.KgTable.totalText", {
12023
+ from: H[0],
12024
+ to: H[1],
12025
+ total: K
12019
12026
  }),
12020
- onChange: (F, G) => q(F, G)
12027
+ onChange: (K, H) => ne(K, H)
12021
12028
  }, null)])])]);
12022
12029
  };
12023
12030
  }
@@ -12236,8 +12243,8 @@ const KgButtonCreate = defineComponent({
12236
12243
  attrs: a
12237
12244
  }) {
12238
12245
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12239
- var E, T, I, k, V, M, A, O;
12240
- 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 && ((I = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? I : 0) === 0 || ((k = u.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (V = s.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((A = u.value) == null ? void 0 : A.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12246
+ var k, T, A, E, $, M, I, O;
12247
+ 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;
12241
12248
  }), g = computed(() => !!o.isCreatingRequesting.value);
12242
12249
  async function p() {
12243
12250
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12331,7 +12338,7 @@ const KgButtonCreate = defineComponent({
12331
12338
  var _, v;
12332
12339
  return (v = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? v : "GET";
12333
12340
  }), l = computed(() => {
12334
- var v, b, y, C, E, T;
12341
+ var v, b, y, C, k, T;
12335
12342
  let _ = {
12336
12343
  ...(v = a.model.value) != null ? v : {}
12337
12344
  };
@@ -12340,11 +12347,11 @@ const KgButtonCreate = defineComponent({
12340
12347
  ...KgVarUtil.parseCommandParameter((y = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? y : "")
12341
12348
  }), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
12342
12349
  ..._,
12343
- ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12350
+ ...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
12344
12351
  }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12345
12352
  }), u = computed(() => {
12346
- var _, v, b, y, C, E, T, I;
12347
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 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((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12353
+ var _, v, b, y, C, k, T, A;
12354
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 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;
12348
12355
  }), c = ref(!1);
12349
12356
  async function g() {
12350
12357
  var _, v, b;
@@ -12419,8 +12426,8 @@ const KgButtonCreate = defineComponent({
12419
12426
  }), v;
12420
12427
  });
12421
12428
  const c = computed(() => {
12422
- var v, b, y, C, E, T, I, k;
12423
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.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 || ((I = s.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12429
+ var v, b, y, C, k, T, A, E;
12430
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.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;
12424
12431
  }), g = ref(!1);
12425
12432
  async function p(v) {
12426
12433
  var b, y;
@@ -12486,8 +12493,8 @@ const KgButtonCreate = defineComponent({
12486
12493
  var p, m;
12487
12494
  return (m = (p = n.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
12488
12495
  }), s = computed(() => {
12489
- var p, m, _, v, b, y, C, E;
12490
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.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;
12496
+ var p, m, _, v, b, y, C, k;
12497
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.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;
12491
12498
  }), l = ref(!1);
12492
12499
  async function u() {
12493
12500
  var p;
@@ -12558,16 +12565,16 @@ const KgButtonCreate = defineComponent({
12558
12565
  }
12559
12566
  let g = null;
12560
12567
  const p = async () => {
12561
- var y, C, E, T, I, k, V;
12568
+ var y, C, k, T, A, E, $;
12562
12569
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12563
12570
  const b = n.selectedRows.value;
12564
12571
  try {
12565
12572
  await httpClient().request({
12566
12573
  method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
12567
12574
  url: c,
12568
- params: KgVarUtil.parseCommandParameter((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""),
12575
+ params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
12569
12576
  data: b != null ? b : []
12570
- }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && ((V = (k = a.search).value) == null || V.call(k, !0));
12577
+ }), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (E = a.search).value) == null || $.call(E, !0));
12571
12578
  } catch (M) {
12572
12579
  console.error(M);
12573
12580
  } finally {
@@ -12653,8 +12660,8 @@ const KgButtonCreate = defineComponent({
12653
12660
  }
12654
12661
  });
12655
12662
  const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12656
- var y, C, E, T, I, k, V, M;
12657
- 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 = (I = i.selectedRows.value) == null ? void 0 : I.length) != null ? k : 0) > 1 || ((V = u.value) == null ? void 0 : V.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12663
+ var y, C, k, T, A, E, $, M;
12664
+ 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;
12658
12665
  });
12659
12666
  async function g() {
12660
12667
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -13272,9 +13279,9 @@ const leftVarProfileDetailColumns = (e) => {
13272
13279
  row: y,
13273
13280
  model: C
13274
13281
  }) => {
13275
- var T, I, k;
13276
- const E = s.store.getSystemVarProfileDetails(s.formID);
13277
- switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
13282
+ var T, A, E;
13283
+ const k = s.store.getSystemVarProfileDetails(s.formID);
13284
+ switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13278
13285
  case _:
13279
13286
  u.value = [];
13280
13287
  break;
@@ -13283,24 +13290,24 @@ const leftVarProfileDetailColumns = (e) => {
13283
13290
  if (y != null && y.id)
13284
13291
  try {
13285
13292
  i.store.setIsLoading(a.formID, !0);
13286
- const V = await QueryByID({
13293
+ const $ = await QueryByID({
13287
13294
  params: {
13288
13295
  id: y.id
13289
13296
  }
13290
13297
  });
13291
- l.value = l.value.map((A) => {
13292
- var K;
13293
- const O = (K = V == null ? void 0 : V.varProfileDetails) == null ? void 0 : K.find((P) => P.var_nam === A.var_nam);
13298
+ l.value = l.value.map((I) => {
13299
+ var F;
13300
+ const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((w) => w.var_nam === I.var_nam);
13294
13301
  return O ? {
13295
- ...A,
13302
+ ...I,
13296
13303
  ...O,
13297
- id: A.id
13298
- } : A;
13304
+ id: I.id
13305
+ } : I;
13299
13306
  });
13300
- const M = (I = (T = V == null ? void 0 : V.varProfileDetails) == null ? void 0 : T.map((A) => A.var_nam)) != null ? I : [];
13301
- u.value = l.value.filter((A) => M.includes(A.var_nam)).map((A) => A.id);
13302
- } catch (V) {
13303
- throw V;
13307
+ const M = (A = (T = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : T.map((I) => I.var_nam)) != null ? A : [];
13308
+ u.value = l.value.filter((I) => M.includes(I.var_nam)).map((I) => I.id);
13309
+ } catch ($) {
13310
+ throw $;
13304
13311
  } finally {
13305
13312
  i.store.setIsLoading(a.formID, !1);
13306
13313
  }
@@ -13310,7 +13317,7 @@ const leftVarProfileDetailColumns = (e) => {
13310
13317
  }
13311
13318
  switch (!0) {
13312
13319
  case b:
13313
- C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13320
+ C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
13314
13321
  break;
13315
13322
  }
13316
13323
  return !1;
@@ -13345,7 +13352,7 @@ const leftVarProfileDetailColumns = (e) => {
13345
13352
  model: b,
13346
13353
  varVariableConfig: y,
13347
13354
  varProfileDetail: C,
13348
- varSubmitField: E
13355
+ varSubmitField: k
13349
13356
  }) => createVNode(Transfer, {
13350
13357
  dataSource: l.value,
13351
13358
  targetKeys: u.value,
@@ -13354,18 +13361,18 @@ const leftVarProfileDetailColumns = (e) => {
13354
13361
  showSearch: !0,
13355
13362
  showSelectAll: !1,
13356
13363
  searchPlaceholder: " ",
13357
- filterOption: (T, I) => {
13358
- var k;
13359
- return !!((k = I.var_nam) != null && k.includes(T));
13364
+ filterOption: (T, A) => {
13365
+ var E;
13366
+ return !!((E = A.var_nam) != null && E.includes(T));
13360
13367
  }
13361
13368
  }, {
13362
13369
  children: ({
13363
13370
  direction: T,
13364
- filteredItems: I,
13365
- selectedKeys: k,
13366
- disabled: V,
13371
+ filteredItems: A,
13372
+ selectedKeys: E,
13373
+ disabled: $,
13367
13374
  onItemSelectAll: M,
13368
- onItemSelect: A
13375
+ onItemSelect: I
13369
13376
  }) => createVNode(Table, {
13370
13377
  pagination: !1,
13371
13378
  class: "kg-flex-table",
@@ -13376,15 +13383,15 @@ const leftVarProfileDetailColumns = (e) => {
13376
13383
  },
13377
13384
  columns: T === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13378
13385
  rowKey: "id",
13379
- dataSource: I,
13386
+ dataSource: A,
13380
13387
  customRow: (O) => ({
13381
- onClick: (K) => m(K, O, T, k)
13388
+ onClick: (F) => m(F, O, T, E)
13382
13389
  }),
13383
13390
  rowSelection: g({
13384
- disabled: V,
13385
- selectedKeys: k,
13391
+ disabled: $,
13392
+ selectedKeys: E,
13386
13393
  onItemSelectAll: M,
13387
- onItemSelect: A
13394
+ onItemSelect: I
13388
13395
  })
13389
13396
  }, null)
13390
13397
  })
@@ -13403,16 +13410,16 @@ const leftVarProfileDetailColumns = (e) => {
13403
13410
  getCheckboxProps: (C) => ({
13404
13411
  disabled: _ || C.disabled
13405
13412
  }),
13406
- onSelectAll(C, E) {
13407
- const T = E.filter((I) => !I.disabled).map(({
13408
- key: I
13409
- }) => I);
13413
+ onSelectAll(C, k) {
13414
+ const T = k.filter((A) => !A.disabled).map(({
13415
+ key: A
13416
+ }) => A);
13410
13417
  b(T, C);
13411
13418
  },
13412
13419
  onSelect({
13413
13420
  key: C
13414
- }, E) {
13415
- y(C, E);
13421
+ }, k) {
13422
+ y(C, k);
13416
13423
  },
13417
13424
  selectedRowKeys: v,
13418
13425
  columnWidth: 32
@@ -13598,17 +13605,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13598
13605
  });
13599
13606
  _useLayoutHeaderResizeObserver(), _useFormModel(p, m), computed(() => a.store.getVarProfileConfig(a.formID));
13600
13607
  const _ = computed(() => {
13601
- var w, D;
13602
- return !!(o.isRetrieving.value || ((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) === 2 && !r.p((D = a.varButtonSearch.value) == null ? void 0 : D.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13608
+ var V, P;
13609
+ 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);
13603
13610
  }), v = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), b = computed(() => !!o.isRetrieving.value), y = ref({
13604
13611
  visible: !1
13605
- }), C = computed(() => m.value.kgHeight === g.value), E = computed(() => {
13606
- var w, D, B;
13607
- if (a.t((w = a.varButtonSearch.value) == null ? void 0 : w.var_nam).value !== ((D = a.varButtonSearch.value) == null ? void 0 : D.var_nam))
13612
+ }), C = computed(() => m.value.kgHeight === g.value), k = computed(() => {
13613
+ var V, P, B;
13614
+ if (a.t((V = a.varButtonSearch.value) == null ? void 0 : V.var_nam).value !== ((P = a.varButtonSearch.value) == null ? void 0 : P.var_nam))
13608
13615
  return a.t((B = a.varButtonSearch.value) == null ? void 0 : B.var_nam).value;
13609
13616
  }), T = computed(() => {
13610
- var w;
13611
- switch ((w = a.varButtonSearch.value) == null ? void 0 : w.primary_flg) {
13617
+ var V;
13618
+ switch ((V = a.varButtonSearch.value) == null ? void 0 : V.primary_flg) {
13612
13619
  case 1:
13613
13620
  return !0;
13614
13621
  case 0:
@@ -13616,64 +13623,64 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13616
13623
  default:
13617
13624
  return !0;
13618
13625
  }
13619
- }), I = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), k = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), V = computed(() => {
13620
- let w = "kg-search";
13621
- return i.value && (w += " kg-search--visible"), l.value && (w += " kg-search--teleport"), w;
13626
+ }), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
13627
+ let V = "kg-search";
13628
+ return i.value && (V += " kg-search--visible"), l.value && (V += " kg-search--teleport"), V;
13622
13629
  });
13623
13630
  onUnmounted(() => {
13624
13631
  n.store.dispose(a.formID);
13625
13632
  });
13626
- function M(w = !1) {
13633
+ function M(V = !1) {
13627
13634
  _.value || (i.value ? p.value && p.value.validate().then(() => {
13628
13635
  n.store.emit(a.formID, "search", {
13629
- resetPageIndex: w
13636
+ resetPageIndex: V
13630
13637
  });
13631
- }).catch((D) => {
13638
+ }).catch((P) => {
13632
13639
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13633
- e: D
13640
+ e: P
13634
13641
  });
13635
13642
  }) : n.store.emit(a.formID, "search", {
13636
- resetPageIndex: w
13643
+ resetPageIndex: V
13637
13644
  }));
13638
13645
  }
13639
13646
  n.store.setSearchFn(a.formID, M);
13640
- function A() {
13641
- var w;
13642
- (w = p.value) == null || w.resetFields(), i.value ? p.value && p.value.validate().then(() => {
13647
+ function I() {
13648
+ var V;
13649
+ (V = p.value) == null || V.resetFields(), i.value ? p.value && p.value.validate().then(() => {
13643
13650
  n.store.emit(a.formID, "reset");
13644
- }).catch((D) => {
13651
+ }).catch((P) => {
13645
13652
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13646
- e: D
13653
+ e: P
13647
13654
  });
13648
13655
  }) : n.store.emit(a.formID, "reset");
13649
13656
  }
13650
- n.store.setResetFn(a.formID, A);
13657
+ n.store.setResetFn(a.formID, I);
13651
13658
  function O() {
13652
13659
  return M(!0), Promise.resolve(!0);
13653
13660
  }
13654
- function K() {
13655
- var w;
13661
+ function F() {
13662
+ var V;
13656
13663
  return createVNode("div", {
13657
13664
  class: "title",
13658
- onClick: $
13659
- }, [((w = t == null ? void 0 : t.KgSearch) == null ? void 0 : w.left) && createVNode("div", {
13665
+ onClick: D
13666
+ }, [((V = t == null ? void 0 : t.KgSearch) == null ? void 0 : V.left) && createVNode("div", {
13660
13667
  class: "kg-search-title-left",
13661
- onClick: (D) => {
13662
- D.stopPropagation(), D.preventDefault();
13668
+ onClick: (P) => {
13669
+ P.stopPropagation(), P.preventDefault();
13663
13670
  }
13664
13671
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13665
13672
  }
13666
- function P() {
13667
- var w, D, B, x;
13668
- return ((B = (D = (w = a.varProfileMasters) == null ? void 0 : w.value) == null ? void 0 : D.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13673
+ function w() {
13674
+ var V, P, B, x;
13675
+ 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, {
13669
13676
  value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
13670
- "onUpdate:value": (H) => a.store.setCurrentVarProfileMasterID(a.formID, H),
13677
+ "onUpdate:value": (G) => a.store.setCurrentVarProfileMasterID(a.formID, G),
13671
13678
  disabled: v.value,
13672
13679
  class: "kg-search-profile-master-select"
13673
13680
  }, {
13674
13681
  default: () => {
13675
- var H, Y;
13676
- return (Y = (H = a.varProfileMasters) == null ? void 0 : H.value) == null ? void 0 : Y.map((q) => createVNode(Select.Option, {
13682
+ var G, Y;
13683
+ return (Y = (G = a.varProfileMasters) == null ? void 0 : G.value) == null ? void 0 : Y.map((q) => createVNode(Select.Option, {
13677
13684
  value: q.id
13678
13685
  }, {
13679
13686
  default: () => [a.t(q == null ? void 0 : q.prf_var_nam).value]
@@ -13690,17 +13697,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13690
13697
  default: () => [createVNode(SettingOutlined$1, null, null)]
13691
13698
  }), createVNode(KgSearchConfigModal, {
13692
13699
  visible: y.value.visible,
13693
- "onUpdate:visible": (H) => y.value.visible = H,
13700
+ "onUpdate:visible": (G) => y.value.visible = G,
13694
13701
  hostFormID: a.formID
13695
13702
  }, null)]);
13696
13703
  }
13697
- function R() {
13698
- var w, D, B, x, H;
13699
- return createVNode(Fragment, null, [P(), !(((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) !== 2 && !r.p((D = a.varButtonSearch.value) == null ? void 0 : D.permission_code)) && createVNode(Button, {
13704
+ function N() {
13705
+ var V, P, B, x, G;
13706
+ 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, {
13700
13707
  type: "primary",
13701
13708
  ghost: !_.value,
13702
13709
  disabled: _.value,
13703
- onClick: A,
13710
+ onClick: I,
13704
13711
  class: "kg-search-btn-reset"
13705
13712
  }, {
13706
13713
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
@@ -13708,29 +13715,29 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13708
13715
  kgType: KG_BUTTON_TYPE.SEARCH,
13709
13716
  kgVarName: (B = a.varButtonSearch.value) == null ? void 0 : B.var_nam,
13710
13717
  kgIcon: (x = a.varButtonSearch.value) == null ? void 0 : x.icon,
13711
- kgText: E.value,
13712
- kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
13718
+ kgText: k.value,
13719
+ kgColor: (G = a.varButtonSearch.value) == null ? void 0 : G.color,
13713
13720
  kgPrimary: T.value,
13714
13721
  kgLoading: b.value,
13715
13722
  onKgClick: O
13716
13723
  }, null)]);
13717
13724
  }
13718
- function N() {
13725
+ function R() {
13719
13726
  return createVNode(Spin, {
13720
- spinning: k.value
13727
+ spinning: E.value
13721
13728
  }, {
13722
13729
  default: () => {
13723
- var w;
13730
+ var V;
13724
13731
  return [createVNode(KgForm, {
13725
13732
  ref: p,
13726
- model: (w = n.model.value) != null ? w : {}
13733
+ model: (V = n.model.value) != null ? V : {}
13727
13734
  }, {
13728
13735
  default: () => [createVNode(Row, {
13729
13736
  gutter: 6
13730
13737
  }, {
13731
13738
  default: () => {
13732
- var D;
13733
- return [(D = a.currentVarProfileDetails.value) == null ? void 0 : D.map((B) => createVNode(KgForm.Item, {
13739
+ var P;
13740
+ return [(P = a.currentVarProfileDetails.value) == null ? void 0 : P.map((B) => createVNode(KgForm.Item, {
13734
13741
  kgVarName: B.var_nam,
13735
13742
  kgContext: KG_FORM_CONTEXT.SEARCH,
13736
13743
  onKgSubmit: () => M(!0)
@@ -13741,16 +13748,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13741
13748
  }
13742
13749
  });
13743
13750
  }
13744
- function $() {
13751
+ function D() {
13745
13752
  C.value ? m.value.kgHeight = u.value : m.value.kgHeight = g.value;
13746
13753
  }
13747
13754
  return () => createVNode(KgResizable, {
13748
13755
  kgHeight: m.value.kgHeight,
13749
- "onUpdate:kgHeight": (w) => m.value.kgHeight = w,
13756
+ "onUpdate:kgHeight": (V) => m.value.kgHeight = V,
13750
13757
  kgMinHeight: g.value,
13751
13758
  kgMaxHeight: c.value,
13752
13759
  kgDisabled: !s.value,
13753
- kgClass: V.value,
13760
+ kgClass: $.value,
13754
13761
  "kg-frm-id": a.formID
13755
13762
  }, {
13756
13763
  default: () => [i.value && createVNode("div", {
@@ -13764,17 +13771,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13764
13771
  default: () => [createVNode("div", {
13765
13772
  class: "ant-collapse-header"
13766
13773
  }, [createVNode(Spin, {
13767
- spinning: I.value
13774
+ spinning: A.value
13768
13775
  }, {
13769
- default: () => [K(), createVNode("div", {
13776
+ default: () => [F(), createVNode("div", {
13770
13777
  class: "ant-collapse-extra"
13771
- }, [R()])]
13778
+ }, [N()])]
13772
13779
  })])]
13773
13780
  }), createVNode("div", {
13774
13781
  class: "ant-collapse-content ant-collapse-content-active"
13775
13782
  }, [createVNode("div", {
13776
13783
  class: "ant-collapse-content-box"
13777
- }, [N()])])])])]
13784
+ }, [R()])])])])]
13778
13785
  });
13779
13786
  }
13780
13787
  });
@@ -13840,13 +13847,13 @@ function useMagicKeys(e = {}) {
13840
13847
  }
13841
13848
  function m(v, b) {
13842
13849
  var y, C;
13843
- const E = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
13850
+ const k = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), A = [T, k].filter(Boolean);
13844
13851
  T && (b ? i.add(v.code) : i.delete(v.code));
13845
- for (const k of I)
13846
- c.add(k), g(k, b);
13847
- E === "meta" && !b ? (u.forEach((k) => {
13848
- i.delete(k), g(k, !1);
13849
- }), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...I].forEach((k) => u.add(k));
13852
+ for (const E of A)
13853
+ c.add(E), g(E, b);
13854
+ k === "meta" && !b ? (u.forEach((E) => {
13855
+ i.delete(E), g(E, !1);
13856
+ }), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...A].forEach((E) => u.add(E));
13850
13857
  }
13851
13858
  r && (useEventListener(r, "keydown", (v) => (m(v, !0), o(v)), { passive: n }), useEventListener(r, "keyup", (v) => (m(v, !1), o(v)), { passive: n }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13852
13859
  const _ = new Proxy(l, {
@@ -13855,8 +13862,8 @@ function useMagicKeys(e = {}) {
13855
13862
  return Reflect.get(v, b, y);
13856
13863
  if (b = b.toLowerCase(), b in a && (b = a[b]), !(b in l))
13857
13864
  if (/[+_-]/.test(b)) {
13858
- const E = b.split(/[+_-]/g).map((T) => T.trim());
13859
- l[b] = computed(() => E.every((T) => unref(_[T])));
13865
+ const k = b.split(/[+_-]/g).map((T) => T.trim());
13866
+ l[b] = computed(() => k.every((T) => unref(_[T])));
13860
13867
  } else
13861
13868
  l[b] = ref(!1);
13862
13869
  const C = Reflect.get(v, b, y);
@@ -14245,112 +14252,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14245
14252
  columnWidth: 32,
14246
14253
  hideSelectAll: !0,
14247
14254
  selectedRowKeys: g,
14248
- onSelect: (P) => V(P)
14255
+ onSelect: (w) => $(w)
14249
14256
  }), m = ref({
14250
14257
  visible: !1
14251
14258
  }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), v = computed(() => {
14252
- var P;
14253
- return !!c.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14259
+ var w;
14260
+ return !!c.value || ((w = a.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14254
14261
  }), b = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14255
- watch(() => a.getSelectedVar, (P) => {
14256
- P ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14262
+ watch(() => a.getSelectedVar, (w) => {
14263
+ w ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14257
14264
  }, {
14258
14265
  immediate: !0
14259
- }), watch(() => a.getSelectedVarCatalog, async (P) => {
14260
- var R, N;
14261
- l.value.var_text = (R = P == null ? void 0 : P.var_text) != null ? R : "", (N = s.value) == null || N.clearValidate();
14266
+ }), watch(() => a.getSelectedVarCatalog, async (w) => {
14267
+ var N, R;
14268
+ l.value.var_text = (N = w == null ? void 0 : w.var_text) != null ? N : "", (R = s.value) == null || R.clearValidate();
14262
14269
  });
14263
- async function C(P = !1) {
14264
- var R, N, $;
14270
+ async function C(w = !1) {
14271
+ var N, R, D;
14265
14272
  n.value = !0;
14266
14273
  try {
14267
14274
  const {
14268
- records: w
14275
+ records: V
14269
14276
  } = await List({
14270
14277
  params: {
14271
14278
  pageNo: 1,
14272
14279
  pageSize: 999,
14273
14280
  frm_id: e == null ? void 0 : e.value,
14274
- var_nam: (R = a.getSelectedVar) == null ? void 0 : R.var_nam,
14281
+ var_nam: (N = a.getSelectedVar) == null ? void 0 : N.var_nam,
14275
14282
  column: "frm_id,locale_id,cust_lvl",
14276
14283
  order: "asc"
14277
14284
  }
14278
14285
  });
14279
- if (c.value = null, u.value = w != null ? w : [], P) {
14280
- const D = u.value.find((B) => {
14286
+ if (c.value = null, u.value = V != null ? V : [], w) {
14287
+ const P = u.value.find((B) => {
14281
14288
  var x;
14282
14289
  return B.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
14283
14290
  });
14284
- a.setSelectedVarCatalog(D != null ? D : null), g.value = D != null && D.id ? [D.id] : [];
14291
+ a.setSelectedVarCatalog(P != null ? P : null), g.value = P != null && P.id ? [P.id] : [];
14285
14292
  } else
14286
- a.setSelectedVarCatalog((N = u.value[0]) != null ? N : null), g.value = ($ = u.value[0]) != null && $.id ? [u.value[0].id] : [];
14287
- } catch (w) {
14288
- Logger.debug(w == null ? void 0 : w.message);
14293
+ a.setSelectedVarCatalog((R = u.value[0]) != null ? R : null), g.value = (D = u.value[0]) != null && D.id ? [u.value[0].id] : [];
14294
+ } catch (V) {
14295
+ Logger.debug(V == null ? void 0 : V.message);
14289
14296
  } finally {
14290
14297
  n.value = !1;
14291
14298
  }
14292
14299
  }
14293
- async function E() {
14294
- var P, R, N;
14300
+ async function k() {
14301
+ var w, N, R;
14295
14302
  try {
14296
- o.value = !0, await ((P = s.value) == null ? void 0 : P.validate());
14297
- const $ = new VarCatalog({
14298
- ...(R = a.getSelectedVarCatalog) != null ? R : {},
14299
- var_text: (N = l.value) == null ? void 0 : N.var_text
14303
+ o.value = !0, await ((w = s.value) == null ? void 0 : w.validate());
14304
+ const D = new VarCatalog({
14305
+ ...(N = a.getSelectedVarCatalog) != null ? N : {},
14306
+ var_text: (R = l.value) == null ? void 0 : R.var_text
14300
14307
  });
14301
- $.id ? $.cust_lvl === KG_CUSTOM_LEVEL.L0 ? ($.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty($, "id"), await Add({
14302
- data: $
14308
+ D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
14309
+ data: D
14303
14310
  }, {
14304
14311
  successMessageMode: "none"
14305
14312
  }), message.success({
14306
14313
  content: t.t("kg.KgVarConfig.createSuccess")
14307
14314
  }), await C()) : (await Edit({
14308
- data: $
14315
+ data: D
14309
14316
  }, {
14310
14317
  successMessageMode: "none"
14311
14318
  }), message.success({
14312
14319
  content: t.t("kg.KgVarConfig.saveSuccess")
14313
14320
  }), await C(!0)) : (await Add({
14314
- data: $
14321
+ data: D
14315
14322
  }, {
14316
14323
  successMessageMode: "none"
14317
14324
  }), message.success({
14318
14325
  content: t.t("kg.KgVarConfig.createSuccess")
14319
14326
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
14320
- } catch ($) {
14321
- KgUtil.throwIfNotFormError($);
14327
+ } catch (D) {
14328
+ KgUtil.throwIfNotFormError(D);
14322
14329
  } finally {
14323
14330
  o.value = !1;
14324
14331
  }
14325
14332
  }
14326
14333
  function T({
14327
- isAllForm: P,
14328
- isAllLanguage: R
14334
+ isAllForm: w,
14335
+ isAllLanguage: N
14329
14336
  }) {
14330
- var N, $, w;
14337
+ var R, D, V;
14331
14338
  c.value = new VarCatalog({
14332
14339
  id: "",
14333
14340
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14334
- grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
14335
- var_nam: ($ = a.getSelectedVar) == null ? void 0 : $.var_nam,
14336
- frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14337
- locale_id: R ? "ALL" : (w = t.locale) == null ? void 0 : w.value,
14341
+ grp_nam: (R = a.getSelectedVar) == null ? void 0 : R.grp_nam,
14342
+ var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
14343
+ frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14344
+ locale_id: N ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
14338
14345
  var_text: ""
14339
14346
  }), u.value = [...u.value, c.value], a.setSelectedVarCatalog(unref(c)), g.value = [""];
14340
14347
  }
14341
- function I() {
14342
- var R;
14348
+ function A() {
14349
+ var N;
14343
14350
  u.value = without$1(u.value, c.value), c.value = null;
14344
- const P = (R = u.value[0]) != null ? R : null;
14345
- a.setSelectedVarCatalog(P), g.value = P ? [P.id] : [];
14351
+ const w = (N = u.value[0]) != null ? N : null;
14352
+ a.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
14346
14353
  }
14347
- function k() {
14354
+ function E() {
14348
14355
  KgUtil.confirm({
14349
14356
  onOk: async () => {
14350
- var P;
14357
+ var w;
14351
14358
  await Delete({
14352
14359
  params: {
14353
- id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
14360
+ id: (w = a.getSelectedVarCatalog) == null ? void 0 : w.id
14354
14361
  }
14355
14362
  }, {
14356
14363
  successMessageMode: "none",
@@ -14361,19 +14368,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14361
14368
  }
14362
14369
  });
14363
14370
  }
14364
- function V(P) {
14365
- var R;
14366
- ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) !== P.id && (unref(c) ? KgUtil.confirm({
14371
+ function $(w) {
14372
+ var N;
14373
+ ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !== w.id && (unref(c) ? KgUtil.confirm({
14367
14374
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
14368
14375
  onOk: () => {
14369
- u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(P)), g.value = [P.id];
14376
+ u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(w)), g.value = [w.id];
14370
14377
  }
14371
- }) : (a.setSelectedVarCatalog(unref(P)), g.value = [P.id]));
14378
+ }) : (a.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
14372
14379
  }
14373
14380
  function M() {
14374
14381
  m.value.visible = !0;
14375
14382
  }
14376
- function A() {
14383
+ function I() {
14377
14384
  return createVNode("div", {
14378
14385
  class: "buttons"
14379
14386
  }, [createVNode(Button, {
@@ -14383,7 +14390,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14383
14390
  }, {
14384
14391
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
14385
14392
  }), createVNode(Button, {
14386
- onClick: k,
14393
+ onClick: E,
14387
14394
  disabled: v.value,
14388
14395
  ghost: !v.value,
14389
14396
  type: "primary",
@@ -14393,13 +14400,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14393
14400
  })]);
14394
14401
  }
14395
14402
  function O() {
14396
- let P, R;
14403
+ let w, N;
14397
14404
  return createVNode("div", {
14398
14405
  class: "form"
14399
14406
  }, [createVNode(Form, {
14400
14407
  ref: s,
14401
14408
  model: l.value,
14402
- onSubmit: E
14409
+ onSubmit: k
14403
14410
  }, {
14404
14411
  default: () => [createVNode(Form.Item, {
14405
14412
  name: "var_text",
@@ -14410,7 +14417,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14410
14417
  }, {
14411
14418
  default: () => [createVNode(Textarea, {
14412
14419
  value: l.value.var_text,
14413
- "onUpdate:value": (N) => l.value.var_text = N,
14420
+ "onUpdate:value": (R) => l.value.var_text = R,
14414
14421
  disabled: !a.getSelectedVarCatalog
14415
14422
  }, null), createVNode("button", {
14416
14423
  hidden: !0
@@ -14420,26 +14427,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14420
14427
  class: "buttons"
14421
14428
  }, [createVNode(Button, {
14422
14429
  disabled: b.value,
14423
- onClick: I
14424
- }, _isSlot(P = t.t("common.cancelText")) ? P : {
14425
- default: () => [P]
14430
+ onClick: A
14431
+ }, _isSlot(w = t.t("common.cancelText")) ? w : {
14432
+ default: () => [w]
14426
14433
  }), createVNode(Button, {
14427
14434
  loading: o.value,
14428
14435
  disabled: y.value,
14429
- onClick: E,
14436
+ onClick: k,
14430
14437
  type: "primary"
14431
- }, _isSlot(R = t.t("common.save")) ? R : {
14432
- default: () => [R]
14438
+ }, _isSlot(N = t.t("common.save")) ? N : {
14439
+ default: () => [N]
14433
14440
  })])]);
14434
14441
  }
14435
- function K(P) {
14436
- var N;
14437
- let R = "";
14438
- return P.id || (R += " ant-table-row-create"), P.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (R += " ant-table-row-selected "), R;
14442
+ function F(w) {
14443
+ var R;
14444
+ let N = "";
14445
+ return w.id || (N += " ant-table-row-create"), w.id === ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) && (N += " ant-table-row-selected "), N;
14439
14446
  }
14440
14447
  return () => createVNode("div", {
14441
14448
  class: "kg-var-config-modal-var-var-catalog"
14442
- }, [A(), createVNode(Table, {
14449
+ }, [I(), createVNode(Table, {
14443
14450
  pagination: !1,
14444
14451
  class: "kg-flex-table",
14445
14452
  size: "small",
@@ -14451,14 +14458,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14451
14458
  rowKey: "id",
14452
14459
  dataSource: u.value,
14453
14460
  loading: n.value,
14454
- rowClassName: K,
14461
+ rowClassName: F,
14455
14462
  rowSelection: p.value,
14456
- customRow: (P) => ({
14457
- onClick: () => V(P)
14463
+ customRow: (w) => ({
14464
+ onClick: () => $(w)
14458
14465
  })
14459
14466
  }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
14460
14467
  visible: m.value.visible,
14461
- "onUpdate:visible": (P) => m.value.visible = P,
14468
+ "onUpdate:visible": (w) => m.value.visible = w,
14462
14469
  onKgOk: T
14463
14470
  }, null)]);
14464
14471
  }
@@ -14776,8 +14783,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14776
14783
  customRender: ({
14777
14784
  record: T
14778
14785
  }) => {
14779
- var k;
14780
- return T.id === ((k = s.value) == null ? void 0 : k.id) ? createVNode("img", {
14786
+ var E;
14787
+ return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
14781
14788
  src: WAREHOUSE_1890ff
14782
14789
  }, null) : createVNode("img", {
14783
14790
  src: WAREHOUSE_000000
@@ -14787,22 +14794,22 @@ const KgWarehouse$1 = "", getProps = () => ({
14787
14794
  customRender: ({
14788
14795
  record: T
14789
14796
  }) => {
14790
- var k, V, M;
14791
- const I = T;
14792
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (V = I.whId) != null ? V : " "]), createVNode("div", {
14797
+ var E, $, M;
14798
+ const A = T;
14799
+ return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
14793
14800
  class: "address"
14794
- }, [(M = I.adrId) != null ? M : " "])]);
14801
+ }, [(M = A.adrId) != null ? M : " "])]);
14795
14802
  }
14796
14803
  }]), c = ref([]), g = computed(() => {
14797
- var I;
14798
- const T = (I = o.value) == null ? void 0 : I.toUpperCase();
14799
- return c.value.filter((k) => {
14800
- var V, M, A, O, K, P;
14801
- return ((M = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (A = k.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(T)) || ((P = (K = k.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(T));
14804
+ var A;
14805
+ const T = (A = o.value) == null ? void 0 : A.toUpperCase();
14806
+ return c.value.filter((E) => {
14807
+ var $, M, I, O, F, w;
14808
+ 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));
14802
14809
  });
14803
14810
  }), p = computed(() => {
14804
- var T, I;
14805
- return ((I = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14811
+ var T, A;
14812
+ return ((A = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : A.enable) !== !1;
14806
14813
  });
14807
14814
  watch(a.visible, (T) => {
14808
14815
  !p.value || (T ? _() : v());
@@ -14852,25 +14859,25 @@ const KgWarehouse$1 = "", getProps = () => ({
14852
14859
  l.value = !1;
14853
14860
  }
14854
14861
  }
14855
- function C(T, I) {
14856
- var k;
14862
+ function C(T, A) {
14863
+ var E;
14857
14864
  switch (T.detail) {
14858
14865
  case 1:
14859
- ((k = s.value) == null ? void 0 : k.id) === I.id ? s.value = null : s.value = I;
14866
+ ((E = s.value) == null ? void 0 : E.id) === A.id ? s.value = null : s.value = A;
14860
14867
  break;
14861
14868
  case 2:
14862
- s.value = I, b();
14869
+ s.value = A, b();
14863
14870
  break;
14864
14871
  }
14865
14872
  }
14866
- function E() {
14873
+ function k() {
14867
14874
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14868
14875
  title: r.t("kg.KgWarehouse.warehouse"),
14869
14876
  placement: "bottomRight"
14870
14877
  }, {
14871
14878
  default: () => {
14872
- var T, I;
14873
- return [((T = i.value) == null ? void 0 : T.whDsc) || ((I = i.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14879
+ var T, A;
14880
+ return [((T = i.value) == null ? void 0 : T.whDsc) || ((A = i.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14874
14881
  }
14875
14882
  }), createVNode(KgModal, {
14876
14883
  visible: a.visible.value,
@@ -14912,10 +14919,10 @@ const KgWarehouse$1 = "", getProps = () => ({
14912
14919
  columns: u,
14913
14920
  class: "kg-flex-table",
14914
14921
  customRow: (T) => {
14915
- var I;
14922
+ var A;
14916
14923
  return {
14917
- class: T.id === ((I = s.value) == null ? void 0 : I.id) ? "selected" : "",
14918
- onClick: (k) => C(k, T)
14924
+ class: T.id === ((A = s.value) == null ? void 0 : A.id) ? "selected" : "",
14925
+ onClick: (E) => C(E, T)
14919
14926
  };
14920
14927
  }
14921
14928
  }, null)]
@@ -14924,7 +14931,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14924
14931
  return () => createVNode("div", {
14925
14932
  class: n.value,
14926
14933
  onClick: m
14927
- }, [E()]);
14934
+ }, [k()]);
14928
14935
  }
14929
14936
  });
14930
14937
  function createKgWarehouseGuard(e, t) {