@kengic/vue 0.6.3-beta.4 → 0.6.4-beta.0

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.
@@ -2177,12 +2177,12 @@ setTwoToneColor("#1890ff");
2177
2177
  var Icon$1 = function(t, r) {
2178
2178
  var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, u = n.tabindex, c = n.twoToneColor, g = n.onClick, m = _objectWithoutProperties(n, _excluded), b = (a = {
2179
2179
  anticon: !0
2180
- }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), p = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", _ = u;
2181
- _ === void 0 && g && (_ = -1, m.tabindex = _);
2180
+ }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), _ = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", p = u;
2181
+ p === void 0 && g && (p = -1, m.tabindex = p);
2182
2182
  var v = l ? {
2183
2183
  msTransform: "rotate(".concat(l, "deg)"),
2184
2184
  transform: "rotate(".concat(l, "deg)")
2185
- } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), k = C[0], T = C[1];
2185
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), E = C[0], T = C[1];
2186
2186
  return createVNode("span", _objectSpread$k({
2187
2187
  role: "img",
2188
2188
  "aria-label": i.name
@@ -2190,9 +2190,9 @@ var Icon$1 = function(t, r) {
2190
2190
  onClick: g,
2191
2191
  class: b
2192
2192
  }), [createVNode(VueIcon, {
2193
- class: p,
2193
+ class: _,
2194
2194
  icon: i,
2195
- primaryColor: k,
2195
+ primaryColor: E,
2196
2196
  secondaryColor: T,
2197
2197
  style: v
2198
2198
  }, null)]);
@@ -2994,39 +2994,39 @@ function iconToSVG(e, t) {
2994
2994
  height: r.height
2995
2995
  };
2996
2996
  let o = r.body;
2997
- [r, a].forEach((p) => {
2998
- const _ = [], v = p.hFlip, y = p.vFlip;
2999
- let C = p.rotate;
3000
- v ? y ? C += 2 : (_.push(
2997
+ [r, a].forEach((_) => {
2998
+ const p = [], v = _.hFlip, y = _.vFlip;
2999
+ let C = _.rotate;
3000
+ v ? y ? C += 2 : (p.push(
3001
3001
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3002
- ), _.push("scale(-1 1)"), n.top = n.left = 0) : y && (_.push(
3002
+ ), p.push("scale(-1 1)"), n.top = n.left = 0) : y && (p.push(
3003
3003
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3004
- ), _.push("scale(1 -1)"), n.top = n.left = 0);
3005
- let k;
3004
+ ), p.push("scale(1 -1)"), n.top = n.left = 0);
3005
+ let E;
3006
3006
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
3007
3007
  case 1:
3008
- k = n.height / 2 + n.top, _.unshift(
3009
- "rotate(90 " + k.toString() + " " + k.toString() + ")"
3008
+ E = n.height / 2 + n.top, p.unshift(
3009
+ "rotate(90 " + E.toString() + " " + E.toString() + ")"
3010
3010
  );
3011
3011
  break;
3012
3012
  case 2:
3013
- _.unshift(
3013
+ p.unshift(
3014
3014
  "rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
3015
3015
  );
3016
3016
  break;
3017
3017
  case 3:
3018
- k = n.width / 2 + n.left, _.unshift(
3019
- "rotate(-90 " + k.toString() + " " + k.toString() + ")"
3018
+ E = n.width / 2 + n.left, p.unshift(
3019
+ "rotate(-90 " + E.toString() + " " + E.toString() + ")"
3020
3020
  );
3021
3021
  break;
3022
3022
  }
3023
- C % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
3023
+ C % 2 === 1 && (n.left !== n.top && (E = n.left, n.left = n.top, n.top = E), n.width !== n.height && (E = n.width, n.width = n.height, n.height = E)), p.length && (o = '<g transform="' + p.join(" ") + '">' + o + "</g>");
3024
3024
  });
3025
3025
  const i = a.width, s = a.height, l = n.width, u = n.height;
3026
3026
  let c, g;
3027
3027
  i === null ? (g = s === null ? "1em" : s === "auto" ? u : s, c = calculateSize(g, l / u)) : (c = i === "auto" ? l : i, g = s === null ? calculateSize(c, u / l) : s === "auto" ? u : s);
3028
- const m = {}, b = (p, _) => {
3029
- isUnsetKeyword(_) || (m[p] = _.toString());
3028
+ const m = {}, b = (_, p) => {
3029
+ isUnsetKeyword(p) || (m[_] = p.toString());
3030
3030
  };
3031
3031
  return b("width", c), b("height", g), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + u.toString(), {
3032
3032
  attributes: m,
@@ -3300,27 +3300,27 @@ function sendQuery(e, t, r, a) {
3300
3300
  const n = e.resources.length, o = e.random ? Math.floor(Math.random() * n) : e.index;
3301
3301
  let i;
3302
3302
  if (e.random) {
3303
- let E = e.resources.slice(0);
3304
- for (i = []; E.length > 1; ) {
3305
- const $ = Math.floor(Math.random() * E.length);
3306
- i.push(E[$]), E = E.slice(0, $).concat(E.slice($ + 1));
3303
+ let k = e.resources.slice(0);
3304
+ for (i = []; k.length > 1; ) {
3305
+ const $ = Math.floor(Math.random() * k.length);
3306
+ i.push(k[$]), k = k.slice(0, $).concat(k.slice($ + 1));
3307
3307
  }
3308
- i = i.concat(E);
3308
+ i = i.concat(k);
3309
3309
  } else
3310
3310
  i = e.resources.slice(o).concat(e.resources.slice(0, o));
3311
3311
  const s = Date.now();
3312
3312
  let l = "pending", u = 0, c, g = null, m = [], b = [];
3313
3313
  typeof a == "function" && b.push(a);
3314
- function p() {
3314
+ function _() {
3315
3315
  g && (clearTimeout(g), g = null);
3316
3316
  }
3317
- function _() {
3318
- l === "pending" && (l = "aborted"), p(), m.forEach((E) => {
3319
- E.status === "pending" && (E.status = "aborted");
3317
+ function p() {
3318
+ l === "pending" && (l = "aborted"), _(), m.forEach((k) => {
3319
+ k.status === "pending" && (k.status = "aborted");
3320
3320
  }), m = [];
3321
3321
  }
3322
- function v(E, $) {
3323
- $ && (b = []), typeof E == "function" && b.push(E);
3322
+ function v(k, $) {
3323
+ $ && (b = []), typeof k == "function" && b.push(k);
3324
3324
  }
3325
3325
  function y() {
3326
3326
  return {
@@ -3330,22 +3330,22 @@ function sendQuery(e, t, r, a) {
3330
3330
  queriesSent: u,
3331
3331
  queriesPending: m.length,
3332
3332
  subscribe: v,
3333
- abort: _
3333
+ abort: p
3334
3334
  };
3335
3335
  }
3336
3336
  function C() {
3337
- l = "failed", b.forEach((E) => {
3338
- E(void 0, c);
3337
+ l = "failed", b.forEach((k) => {
3338
+ k(void 0, c);
3339
3339
  });
3340
3340
  }
3341
- function k() {
3342
- m.forEach((E) => {
3343
- E.status === "pending" && (E.status = "aborted");
3341
+ function E() {
3342
+ m.forEach((k) => {
3343
+ k.status === "pending" && (k.status = "aborted");
3344
3344
  }), m = [];
3345
3345
  }
3346
- function T(E, $, M) {
3346
+ function T(k, $, M) {
3347
3347
  const I = $ !== "success";
3348
- switch (m = m.filter((O) => O !== E), l) {
3348
+ switch (m = m.filter((O) => O !== k), l) {
3349
3349
  case "pending":
3350
3350
  break;
3351
3351
  case "failed":
@@ -3363,8 +3363,8 @@ function sendQuery(e, t, r, a) {
3363
3363
  c = M, m.length || (i.length ? A() : C());
3364
3364
  return;
3365
3365
  }
3366
- if (p(), k(), !e.random) {
3367
- const O = e.resources.indexOf(E.resource);
3366
+ if (_(), E(), !e.random) {
3367
+ const O = e.resources.indexOf(k.resource);
3368
3368
  O !== -1 && O !== e.index && (e.index = O);
3369
3369
  }
3370
3370
  l = "completed", b.forEach((O) => {
@@ -3374,12 +3374,12 @@ function sendQuery(e, t, r, a) {
3374
3374
  function A() {
3375
3375
  if (l !== "pending")
3376
3376
  return;
3377
- p();
3378
- const E = i.shift();
3379
- if (E === void 0) {
3377
+ _();
3378
+ const k = i.shift();
3379
+ if (k === void 0) {
3380
3380
  if (m.length) {
3381
3381
  g = setTimeout(() => {
3382
- p(), l === "pending" && (k(), C());
3382
+ _(), l === "pending" && (E(), C());
3383
3383
  }, e.timeout);
3384
3384
  return;
3385
3385
  }
@@ -3388,12 +3388,12 @@ function sendQuery(e, t, r, a) {
3388
3388
  }
3389
3389
  const $ = {
3390
3390
  status: "pending",
3391
- resource: E,
3391
+ resource: k,
3392
3392
  callback: (M, I) => {
3393
3393
  T($, M, I);
3394
3394
  }
3395
3395
  };
3396
- m.push($), u++, g = setTimeout(A, e.rotate), r(E, t, $.callback);
3396
+ m.push($), u++, g = setTimeout(A, e.rotate), r(k, t, $.callback);
3397
3397
  }
3398
3398
  return setTimeout(A), y;
3399
3399
  }
@@ -3769,10 +3769,10 @@ function fixSize(e) {
3769
3769
  }
3770
3770
  const render = (e, t) => {
3771
3771
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", o = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
3772
- for (let _ in t) {
3773
- const v = t[_];
3772
+ for (let p in t) {
3773
+ const v = t[p];
3774
3774
  if (v !== void 0)
3775
- switch (_) {
3775
+ switch (p) {
3776
3776
  case "icon":
3777
3777
  case "style":
3778
3778
  case "onLoad":
@@ -3781,7 +3781,7 @@ const render = (e, t) => {
3781
3781
  case "inline":
3782
3782
  case "hFlip":
3783
3783
  case "vFlip":
3784
- r[_] = v === !0 || v === "true" || v === 1;
3784
+ r[p] = v === !0 || v === "true" || v === 1;
3785
3785
  break;
3786
3786
  case "flip":
3787
3787
  typeof v == "string" && flipFromString(r, v);
@@ -3790,15 +3790,15 @@ const render = (e, t) => {
3790
3790
  o.color = v;
3791
3791
  break;
3792
3792
  case "rotate":
3793
- typeof v == "string" ? r[_] = rotateFromString(v) : typeof v == "number" && (r[_] = v);
3793
+ typeof v == "string" ? r[p] = rotateFromString(v) : typeof v == "number" && (r[p] = v);
3794
3794
  break;
3795
3795
  case "ariaHidden":
3796
3796
  case "aria-hidden":
3797
3797
  v !== !0 && v !== "true" && delete a["aria-hidden"];
3798
3798
  break;
3799
3799
  default: {
3800
- const y = customisationAliases[_];
3801
- y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (a[_] = v);
3800
+ const y = customisationAliases[p];
3801
+ y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[p] === void 0 && (a[p] = v);
3802
3802
  }
3803
3803
  }
3804
3804
  }
@@ -3808,17 +3808,17 @@ const render = (e, t) => {
3808
3808
  ...o,
3809
3809
  ...s
3810
3810
  }, Object.assign(a, u);
3811
- let _ = 0, v = t.id;
3812
- return typeof v == "string" && (v = v.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + _++ : "iconifyVue"), h("svg", a);
3811
+ let p = 0, v = t.id;
3812
+ return typeof v == "string" && (v = v.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + p++ : "iconifyVue"), h("svg", a);
3813
3813
  }
3814
- const { body: c, width: g, height: m } = e, b = n === "mask" || (n === "bg" ? !1 : c.indexOf("currentColor") !== -1), p = iconToHTML(c, {
3814
+ const { body: c, width: g, height: m } = e, b = n === "mask" || (n === "bg" ? !1 : c.indexOf("currentColor") !== -1), _ = iconToHTML(c, {
3815
3815
  ...u,
3816
3816
  width: g + "",
3817
3817
  height: m + ""
3818
3818
  });
3819
3819
  return a.style = {
3820
3820
  ...o,
3821
- "--svg": svgToURL(p),
3821
+ "--svg": svgToURL(_),
3822
3822
  width: fixSize(u.width),
3823
3823
  height: fixSize(u.height),
3824
3824
  ...commonProps,
@@ -3924,103 +3924,103 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3924
3924
  (function(r, a) {
3925
3925
  e.exports = a();
3926
3926
  })(commonjsGlobal, function() {
3927
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", p = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
3928
- var R = ["th", "st", "nd", "rd"], D = N % 100;
3929
- return "[" + N + (R[(D - 20) % 10] || R[D] || R[0]) + "]";
3930
- } }, k = function(N, R, D) {
3931
- var V = String(N);
3932
- return !V || V.length >= R ? N : "" + Array(R + 1 - V.length).join(D) + N;
3933
- }, T = { s: k, z: function(N) {
3934
- var R = -N.utcOffset(), D = Math.abs(R), V = Math.floor(D / 60), P = D % 60;
3935
- return (R <= 0 ? "+" : "-") + k(V, 2, "0") + ":" + k(P, 2, "0");
3936
- }, m: function N(R, D) {
3937
- if (R.date() < D.date())
3938
- return -N(D, R);
3939
- var V = 12 * (D.year() - R.year()) + (D.month() - R.month()), P = R.clone().add(V, g), B = D - P < 0, x = R.clone().add(V + (B ? -1 : 1), g);
3940
- return +(-(V + (D - P) / (B ? P - x : x - P)) || 0);
3941
- }, a: function(N) {
3942
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
3943
- }, p: function(N) {
3944
- return { M: g, y: b, w: c, d: u, D: p, h: l, m: s, s: i, ms: o, Q: m }[N] || String(N || "").toLowerCase().replace(/s$/, "");
3945
- }, u: function(N) {
3946
- return N === void 0;
3947
- } }, A = "en", E = {};
3948
- E[A] = C;
3949
- var $ = function(N) {
3950
- return N instanceof F;
3951
- }, M = function N(R, D, V) {
3952
- var P;
3953
- if (!R)
3927
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", _ = "date", p = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
3928
+ var P = ["th", "st", "nd", "rd"], V = R % 100;
3929
+ return "[" + R + (P[(V - 20) % 10] || P[V] || P[0]) + "]";
3930
+ } }, E = function(R, P, V) {
3931
+ var w = String(R);
3932
+ return !w || w.length >= P ? R : "" + Array(P + 1 - w.length).join(V) + R;
3933
+ }, T = { s: E, z: function(R) {
3934
+ var P = -R.utcOffset(), V = Math.abs(P), w = Math.floor(V / 60), N = V % 60;
3935
+ return (P <= 0 ? "+" : "-") + E(w, 2, "0") + ":" + E(N, 2, "0");
3936
+ }, m: function R(P, V) {
3937
+ if (P.date() < V.date())
3938
+ return -R(V, P);
3939
+ var w = 12 * (V.year() - P.year()) + (V.month() - P.month()), N = P.clone().add(w, g), B = V - N < 0, x = P.clone().add(w + (B ? -1 : 1), g);
3940
+ return +(-(w + (V - N) / (B ? N - x : x - N)) || 0);
3941
+ }, a: function(R) {
3942
+ return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
3943
+ }, p: function(R) {
3944
+ return { M: g, y: b, w: c, d: u, D: _, h: l, m: s, s: i, ms: o, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
3945
+ }, u: function(R) {
3946
+ return R === void 0;
3947
+ } }, A = "en", k = {};
3948
+ k[A] = C;
3949
+ var $ = function(R) {
3950
+ return R instanceof F;
3951
+ }, M = function R(P, V, w) {
3952
+ var N;
3953
+ if (!P)
3954
3954
  return A;
3955
- if (typeof R == "string") {
3956
- var B = R.toLowerCase();
3957
- E[B] && (P = B), D && (E[B] = D, P = B);
3958
- var x = R.split("-");
3959
- if (!P && x.length > 1)
3960
- return N(x[0]);
3955
+ if (typeof P == "string") {
3956
+ var B = P.toLowerCase();
3957
+ k[B] && (N = B), V && (k[B] = V, N = B);
3958
+ var x = P.split("-");
3959
+ if (!N && x.length > 1)
3960
+ return R(x[0]);
3961
3961
  } else {
3962
- var G = R.name;
3963
- E[G] = R, P = G;
3964
- }
3965
- return !V && P && (A = P), P || !V && A;
3966
- }, I = function(N, R) {
3967
- if ($(N))
3968
- return N.clone();
3969
- var D = typeof R == "object" ? R : {};
3970
- return D.date = N, D.args = arguments, new F(D);
3962
+ var G = P.name;
3963
+ k[G] = P, N = G;
3964
+ }
3965
+ return !w && N && (A = N), N || !w && A;
3966
+ }, I = function(R, P) {
3967
+ if ($(R))
3968
+ return R.clone();
3969
+ var V = typeof P == "object" ? P : {};
3970
+ return V.date = R, V.args = arguments, new F(V);
3971
3971
  }, O = T;
3972
- O.l = M, O.i = $, O.w = function(N, R) {
3973
- return I(N, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
3972
+ O.l = M, O.i = $, O.w = function(R, P) {
3973
+ return I(R, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
3974
3974
  };
3975
3975
  var F = function() {
3976
- function N(D) {
3977
- this.$L = M(D.locale, null, !0), this.parse(D);
3978
- }
3979
- var R = N.prototype;
3980
- return R.parse = function(D) {
3981
- this.$d = function(V) {
3982
- var P = V.date, B = V.utc;
3983
- if (P === null)
3976
+ function R(V) {
3977
+ this.$L = M(V.locale, null, !0), this.parse(V);
3978
+ }
3979
+ var P = R.prototype;
3980
+ return P.parse = function(V) {
3981
+ this.$d = function(w) {
3982
+ var N = w.date, B = w.utc;
3983
+ if (N === null)
3984
3984
  return new Date(NaN);
3985
- if (O.u(P))
3985
+ if (O.u(N))
3986
3986
  return new Date();
3987
- if (P instanceof Date)
3988
- return new Date(P);
3989
- if (typeof P == "string" && !/Z$/i.test(P)) {
3990
- var x = P.match(v);
3987
+ if (N instanceof Date)
3988
+ return new Date(N);
3989
+ if (typeof N == "string" && !/Z$/i.test(N)) {
3990
+ var x = N.match(v);
3991
3991
  if (x) {
3992
3992
  var G = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
3993
3993
  return B ? new Date(Date.UTC(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y)) : new Date(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y);
3994
3994
  }
3995
3995
  }
3996
- return new Date(P);
3997
- }(D), this.$x = D.x || {}, this.init();
3998
- }, R.init = function() {
3999
- var D = this.$d;
4000
- this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
4001
- }, R.$utils = function() {
3996
+ return new Date(N);
3997
+ }(V), this.$x = V.x || {}, this.init();
3998
+ }, P.init = function() {
3999
+ var V = this.$d;
4000
+ this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
4001
+ }, P.$utils = function() {
4002
4002
  return O;
4003
- }, R.isValid = function() {
4004
- return this.$d.toString() !== _;
4005
- }, R.isSame = function(D, V) {
4006
- var P = I(D);
4007
- return this.startOf(V) <= P && P <= this.endOf(V);
4008
- }, R.isAfter = function(D, V) {
4009
- return I(D) < this.startOf(V);
4010
- }, R.isBefore = function(D, V) {
4011
- return this.endOf(V) < I(D);
4012
- }, R.$g = function(D, V, P) {
4013
- return O.u(D) ? this[V] : this.set(P, D);
4014
- }, R.unix = function() {
4003
+ }, P.isValid = function() {
4004
+ return this.$d.toString() !== p;
4005
+ }, P.isSame = function(V, w) {
4006
+ var N = I(V);
4007
+ return this.startOf(w) <= N && N <= this.endOf(w);
4008
+ }, P.isAfter = function(V, w) {
4009
+ return I(V) < this.startOf(w);
4010
+ }, P.isBefore = function(V, w) {
4011
+ return this.endOf(w) < I(V);
4012
+ }, P.$g = function(V, w, N) {
4013
+ return O.u(V) ? this[w] : this.set(N, V);
4014
+ }, P.unix = function() {
4015
4015
  return Math.floor(this.valueOf() / 1e3);
4016
- }, R.valueOf = function() {
4016
+ }, P.valueOf = function() {
4017
4017
  return this.$d.getTime();
4018
- }, R.startOf = function(D, V) {
4019
- var P = this, B = !!O.u(V) || V, x = O.p(D), G = function(ge, te) {
4020
- var L = O.w(P.$u ? Date.UTC(P.$y, te, ge) : new Date(P.$y, te, ge), P);
4018
+ }, P.startOf = function(V, w) {
4019
+ var N = this, B = !!O.u(w) || w, x = O.p(V), G = function(ge, te) {
4020
+ var L = O.w(N.$u ? Date.UTC(N.$y, te, ge) : new Date(N.$y, te, ge), N);
4021
4021
  return B ? L : L.endOf(u);
4022
4022
  }, Y = function(ge, te) {
4023
- return O.w(P.toDate()[ge].apply(P.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), P);
4023
+ return O.w(N.toDate()[ge].apply(N.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), N);
4024
4024
  }, q = this.$W, Z = this.$M, ne = this.$D, oe = "set" + (this.$u ? "UTC" : "");
4025
4025
  switch (x) {
4026
4026
  case b:
@@ -4031,7 +4031,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4031
4031
  var fe = this.$locale().weekStart || 0, pe = (q < fe ? q + 7 : q) - fe;
4032
4032
  return G(B ? ne - pe : ne + (6 - pe), Z);
4033
4033
  case u:
4034
- case p:
4034
+ case _:
4035
4035
  return Y(oe + "Hours", 0);
4036
4036
  case l:
4037
4037
  return Y(oe + "Minutes", 1);
@@ -4042,89 +4042,89 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4042
4042
  default:
4043
4043
  return this.clone();
4044
4044
  }
4045
- }, R.endOf = function(D) {
4046
- return this.startOf(D, !1);
4047
- }, R.$set = function(D, V) {
4048
- var P, B = O.p(D), x = "set" + (this.$u ? "UTC" : ""), G = (P = {}, P[u] = x + "Date", P[p] = x + "Date", P[g] = x + "Month", P[b] = x + "FullYear", P[l] = x + "Hours", P[s] = x + "Minutes", P[i] = x + "Seconds", P[o] = x + "Milliseconds", P)[B], Y = B === u ? this.$D + (V - this.$W) : V;
4045
+ }, P.endOf = function(V) {
4046
+ return this.startOf(V, !1);
4047
+ }, P.$set = function(V, w) {
4048
+ var N, B = O.p(V), x = "set" + (this.$u ? "UTC" : ""), G = (N = {}, N[u] = x + "Date", N[_] = x + "Date", N[g] = x + "Month", N[b] = x + "FullYear", N[l] = x + "Hours", N[s] = x + "Minutes", N[i] = x + "Seconds", N[o] = x + "Milliseconds", N)[B], Y = B === u ? this.$D + (w - this.$W) : w;
4049
4049
  if (B === g || B === b) {
4050
- var q = this.clone().set(p, 1);
4051
- q.$d[G](Y), q.init(), this.$d = q.set(p, Math.min(this.$D, q.daysInMonth())).$d;
4050
+ var q = this.clone().set(_, 1);
4051
+ q.$d[G](Y), q.init(), this.$d = q.set(_, Math.min(this.$D, q.daysInMonth())).$d;
4052
4052
  } else
4053
4053
  G && this.$d[G](Y);
4054
4054
  return this.init(), this;
4055
- }, R.set = function(D, V) {
4056
- return this.clone().$set(D, V);
4057
- }, R.get = function(D) {
4058
- return this[O.p(D)]();
4059
- }, R.add = function(D, V) {
4060
- var P, B = this;
4061
- D = Number(D);
4062
- var x = O.p(V), G = function(Z) {
4055
+ }, P.set = function(V, w) {
4056
+ return this.clone().$set(V, w);
4057
+ }, P.get = function(V) {
4058
+ return this[O.p(V)]();
4059
+ }, P.add = function(V, w) {
4060
+ var N, B = this;
4061
+ V = Number(V);
4062
+ var x = O.p(w), G = function(Z) {
4063
4063
  var ne = I(B);
4064
- return O.w(ne.date(ne.date() + Math.round(Z * D)), B);
4064
+ return O.w(ne.date(ne.date() + Math.round(Z * V)), B);
4065
4065
  };
4066
4066
  if (x === g)
4067
- return this.set(g, this.$M + D);
4067
+ return this.set(g, this.$M + V);
4068
4068
  if (x === b)
4069
- return this.set(b, this.$y + D);
4069
+ return this.set(b, this.$y + V);
4070
4070
  if (x === u)
4071
4071
  return G(1);
4072
4072
  if (x === c)
4073
4073
  return G(7);
4074
- var Y = (P = {}, P[s] = a, P[l] = n, P[i] = r, P)[x] || 1, q = this.$d.getTime() + D * Y;
4074
+ var Y = (N = {}, N[s] = a, N[l] = n, N[i] = r, N)[x] || 1, q = this.$d.getTime() + V * Y;
4075
4075
  return O.w(q, this);
4076
- }, R.subtract = function(D, V) {
4077
- return this.add(-1 * D, V);
4078
- }, R.format = function(D) {
4079
- var V = this, P = this.$locale();
4076
+ }, P.subtract = function(V, w) {
4077
+ return this.add(-1 * V, w);
4078
+ }, P.format = function(V) {
4079
+ var w = this, N = this.$locale();
4080
4080
  if (!this.isValid())
4081
- return P.invalidDate || _;
4082
- var B = D || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), G = this.$H, Y = this.$m, q = this.$M, Z = P.weekdays, ne = P.months, oe = function(te, L, K, H) {
4083
- return te && (te[L] || te(V, B)) || K[L].slice(0, H);
4081
+ return N.invalidDate || p;
4082
+ var B = V || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), G = this.$H, Y = this.$m, q = this.$M, Z = N.weekdays, ne = N.months, oe = function(te, L, K, H) {
4083
+ return te && (te[L] || te(w, B)) || K[L].slice(0, H);
4084
4084
  }, fe = function(te) {
4085
4085
  return O.s(G % 12 || 12, te, "0");
4086
- }, pe = P.meridiem || function(te, L, K) {
4086
+ }, pe = N.meridiem || function(te, L, K) {
4087
4087
  var H = te < 12 ? "AM" : "PM";
4088
4088
  return K ? H.toLowerCase() : H;
4089
- }, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: oe(P.monthsShort, q, ne, 3), MMMM: oe(ne, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: oe(P.weekdaysMin, this.$W, Z, 2), ddd: oe(P.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: fe(1), hh: fe(2), a: pe(G, Y, !0), A: pe(G, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4089
+ }, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: oe(N.monthsShort, q, ne, 3), MMMM: oe(ne, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: oe(N.weekdaysMin, this.$W, Z, 2), ddd: oe(N.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: fe(1), hh: fe(2), a: pe(G, Y, !0), A: pe(G, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4090
4090
  return B.replace(y, function(te, L) {
4091
4091
  return L || ge[te] || x.replace(":", "");
4092
4092
  });
4093
- }, R.utcOffset = function() {
4093
+ }, P.utcOffset = function() {
4094
4094
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4095
- }, R.diff = function(D, V, P) {
4096
- var B, x = O.p(V), G = I(D), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
4097
- return Z = (B = {}, B[b] = Z / 12, B[g] = Z, B[m] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q, P ? Z : O.a(Z);
4098
- }, R.daysInMonth = function() {
4095
+ }, P.diff = function(V, w, N) {
4096
+ var B, x = O.p(w), G = I(V), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
4097
+ return Z = (B = {}, B[b] = Z / 12, B[g] = Z, B[m] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q, N ? Z : O.a(Z);
4098
+ }, P.daysInMonth = function() {
4099
4099
  return this.endOf(g).$D;
4100
- }, R.$locale = function() {
4101
- return E[this.$L];
4102
- }, R.locale = function(D, V) {
4103
- if (!D)
4100
+ }, P.$locale = function() {
4101
+ return k[this.$L];
4102
+ }, P.locale = function(V, w) {
4103
+ if (!V)
4104
4104
  return this.$L;
4105
- var P = this.clone(), B = M(D, V, !0);
4106
- return B && (P.$L = B), P;
4107
- }, R.clone = function() {
4105
+ var N = this.clone(), B = M(V, w, !0);
4106
+ return B && (N.$L = B), N;
4107
+ }, P.clone = function() {
4108
4108
  return O.w(this.$d, this);
4109
- }, R.toDate = function() {
4109
+ }, P.toDate = function() {
4110
4110
  return new Date(this.valueOf());
4111
- }, R.toJSON = function() {
4111
+ }, P.toJSON = function() {
4112
4112
  return this.isValid() ? this.toISOString() : null;
4113
- }, R.toISOString = function() {
4113
+ }, P.toISOString = function() {
4114
4114
  return this.$d.toISOString();
4115
- }, R.toString = function() {
4115
+ }, P.toString = function() {
4116
4116
  return this.$d.toUTCString();
4117
- }, N;
4118
- }(), w = F.prototype;
4119
- return I.prototype = w, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", p]].forEach(function(N) {
4120
- w[N[1]] = function(R) {
4121
- return this.$g(R, N[0], N[1]);
4117
+ }, R;
4118
+ }(), D = F.prototype;
4119
+ return I.prototype = D, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", _]].forEach(function(R) {
4120
+ D[R[1]] = function(P) {
4121
+ return this.$g(P, R[0], R[1]);
4122
4122
  };
4123
- }), I.extend = function(N, R) {
4124
- return N.$i || (N(R, F, I), N.$i = !0), I;
4125
- }, I.locale = M, I.isDayjs = $, I.unix = function(N) {
4126
- return I(1e3 * N);
4127
- }, I.en = E[A], I.Ls = E, I.p = {}, I;
4123
+ }), I.extend = function(R, P) {
4124
+ return R.$i || (R(P, F, I), R.$i = !0), I;
4125
+ }, I.locale = M, I.isDayjs = $, I.unix = function(R) {
4126
+ return I(1e3 * R);
4127
+ }, I.en = k[A], I.Ls = k, I.p = {}, I;
4128
4128
  });
4129
4129
  })(dayjs_min);
4130
4130
  const dayjs = dayjs_min.exports;
@@ -4165,36 +4165,36 @@ function filesize(e, {
4165
4165
  output: g = STRING,
4166
4166
  fullform: m = !1,
4167
4167
  fullforms: b = [],
4168
- exponent: p = -1,
4169
- roundingMethod: _ = ROUND,
4168
+ exponent: _ = -1,
4169
+ roundingMethod: p = ROUND,
4170
4170
  precision: v = 0
4171
4171
  } = {}) {
4172
- let y = p, C = Number(e), k = [], T = 0, A = EMPTY;
4172
+ let y = _, C = Number(e), E = [], T = 0, A = EMPTY;
4173
4173
  a === -1 && c.length === 0 ? (a = 10, c = JEDEC) : a === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, a = c === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, c = a === 10 || c === JEDEC ? JEDEC : IEC);
4174
- const E = a === 10 ? 1e3 : 1024, $ = m === !0, M = C < 0, I = Math[_];
4174
+ const k = a === 10 ? 1e3 : 1024, $ = m === !0, M = C < 0, I = Math[p];
4175
4175
  if (typeof e != "bigint" && isNaN(e))
4176
4176
  throw new TypeError(INVALID_NUMBER);
4177
4177
  if (typeof I !== FUNCTION)
4178
4178
  throw new TypeError(INVALID_ROUND);
4179
- if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4179
+ if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4180
4180
  return y;
4181
4181
  if (C === 0)
4182
- k[0] = 0, A = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4182
+ E[0] = 0, A = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4183
4183
  else {
4184
- T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
4184
+ T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= k && y < 8 && (T = T / k, y++));
4185
4185
  const O = Math.pow(10, y > 0 ? n : 0);
4186
- k[0] = I(T * O) / O, k[0] === E && y < 8 && p === -1 && (k[0] = 1, y++), A = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4186
+ E[0] = I(T * O) / O, E[0] === k && y < 8 && _ === -1 && (E[0] = 1, y++), A = E[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4187
4187
  }
4188
- if (M && (k[0] = -k[0]), v > 0 && (k[0] = k[0].toPrecision(v)), k[1] = u[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
4189
- const O = s || PERIOD, F = k[0].toString().split(O), w = F[1] || EMPTY, N = w.length, R = n - N;
4190
- k[0] = `${F[0]}${O}${w.padEnd(N + R, ZERO)}`;
4188
+ if (M && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, i) : s.length > 0 && (E[0] = E[0].toString().replace(PERIOD, s)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4189
+ const O = s || PERIOD, F = E[0].toString().split(O), D = F[1] || EMPTY, R = D.length, P = n - R;
4190
+ E[0] = `${F[0]}${O}${D.padEnd(R + P, ZERO)}`;
4191
4191
  }
4192
- return $ && (k[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), g === ARRAY ? k : g === OBJECT ? {
4193
- value: k[0],
4194
- symbol: k[1],
4192
+ return $ && (E[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
4193
+ value: E[0],
4194
+ symbol: E[1],
4195
4195
  exponent: y,
4196
4196
  unit: A
4197
- } : k.join(l);
4197
+ } : E.join(l);
4198
4198
  }
4199
4199
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4200
4200
  const freeGlobal$1 = freeGlobal;
@@ -5243,9 +5243,9 @@ function baseClone(e, t, r, a, n, o) {
5243
5243
  }) : isMap$1(e) && e.forEach(function(v, y) {
5244
5244
  i.set(y, baseClone(v, t, r, y, e, o));
5245
5245
  });
5246
- var p = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : p(e);
5247
- return arrayEach(_ || e, function(v, y) {
5248
- _ && (y = v, v = e[y]), assignValue(i, y, baseClone(v, t, r, y, e, o));
5246
+ var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, p = c ? void 0 : _(e);
5247
+ return arrayEach(p || e, function(v, y) {
5248
+ p && (y = v, v = e[y]), assignValue(i, y, baseClone(v, t, r, y, e, o));
5249
5249
  }), i;
5250
5250
  }
5251
5251
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -5285,9 +5285,9 @@ function equalArrays(e, t, r, a, n, o) {
5285
5285
  return u == t && c == e;
5286
5286
  var g = -1, m = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
5287
5287
  for (o.set(e, t), o.set(t, e); ++g < s; ) {
5288
- var p = e[g], _ = t[g];
5288
+ var _ = e[g], p = t[g];
5289
5289
  if (a)
5290
- var v = i ? a(_, p, g, t, e, o) : a(p, _, g, e, t, o);
5290
+ var v = i ? a(p, _, g, t, e, o) : a(_, p, g, e, t, o);
5291
5291
  if (v !== void 0) {
5292
5292
  if (v)
5293
5293
  continue;
@@ -5296,13 +5296,13 @@ function equalArrays(e, t, r, a, n, o) {
5296
5296
  }
5297
5297
  if (b) {
5298
5298
  if (!arraySome(t, function(y, C) {
5299
- if (!cacheHas(b, C) && (p === y || n(p, y, r, a, o)))
5299
+ if (!cacheHas(b, C) && (_ === y || n(_, y, r, a, o)))
5300
5300
  return b.push(C);
5301
5301
  })) {
5302
5302
  m = !1;
5303
5303
  break;
5304
5304
  }
5305
- } else if (!(p === _ || n(p, _, r, a, o))) {
5305
+ } else if (!(_ === p || n(_, p, r, a, o))) {
5306
5306
  m = !1;
5307
5307
  break;
5308
5308
  }
@@ -5367,27 +5367,27 @@ function equalObjects(e, t, r, a, n, o) {
5367
5367
  if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
5368
5368
  return !1;
5369
5369
  }
5370
- var b = o.get(e), p = o.get(t);
5371
- if (b && p)
5372
- return b == t && p == e;
5373
- var _ = !0;
5370
+ var b = o.get(e), _ = o.get(t);
5371
+ if (b && _)
5372
+ return b == t && _ == e;
5373
+ var p = !0;
5374
5374
  o.set(e, t), o.set(t, e);
5375
5375
  for (var v = i; ++g < l; ) {
5376
5376
  m = s[g];
5377
5377
  var y = e[m], C = t[m];
5378
5378
  if (a)
5379
- var k = i ? a(C, y, m, t, e, o) : a(y, C, m, e, t, o);
5380
- if (!(k === void 0 ? y === C || n(y, C, r, a, o) : k)) {
5381
- _ = !1;
5379
+ var E = i ? a(C, y, m, t, e, o) : a(y, C, m, e, t, o);
5380
+ if (!(E === void 0 ? y === C || n(y, C, r, a, o) : E)) {
5381
+ p = !1;
5382
5382
  break;
5383
5383
  }
5384
5384
  v || (v = m == "constructor");
5385
5385
  }
5386
- if (_ && !v) {
5386
+ if (p && !v) {
5387
5387
  var T = e.constructor, A = t.constructor;
5388
- T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (_ = !1);
5388
+ T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (p = !1);
5389
5389
  }
5390
- return o.delete(e), o.delete(t), _;
5390
+ return o.delete(e), o.delete(t), p;
5391
5391
  }
5392
5392
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
5393
5393
  function baseIsEqualDeep(e, t, r, a, n, o) {
@@ -5402,10 +5402,10 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
5402
5402
  if (m && !c)
5403
5403
  return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
5404
5404
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5405
- var b = c && hasOwnProperty.call(e, "__wrapped__"), p = g && hasOwnProperty.call(t, "__wrapped__");
5406
- if (b || p) {
5407
- var _ = b ? e.value() : e, v = p ? t.value() : t;
5408
- return o || (o = new Stack()), n(_, v, r, a, o);
5405
+ var b = c && hasOwnProperty.call(e, "__wrapped__"), _ = g && hasOwnProperty.call(t, "__wrapped__");
5406
+ if (b || _) {
5407
+ var p = b ? e.value() : e, v = _ ? t.value() : t;
5408
+ return o || (o = new Stack()), n(p, v, r, a, o);
5409
5409
  }
5410
5410
  }
5411
5411
  return m ? (o || (o = new Stack()), equalObjects(e, t, r, a, n, o)) : !1;
@@ -5598,14 +5598,14 @@ function baseIntersection(e, t, r) {
5598
5598
  var g = -1, m = s[0];
5599
5599
  e:
5600
5600
  for (; ++g < n && u.length < l; ) {
5601
- var b = c[g], p = t ? t(b) : b;
5602
- if (b = r || b !== 0 ? b : 0, !(m ? cacheHas(m, p) : a(u, p, r))) {
5601
+ var b = c[g], _ = t ? t(b) : b;
5602
+ if (b = r || b !== 0 ? b : 0, !(m ? cacheHas(m, _) : a(u, _, r))) {
5603
5603
  for (i = o; --i; ) {
5604
- var _ = s[i];
5605
- if (!(_ ? cacheHas(_, p) : a(e[i], p, r)))
5604
+ var p = s[i];
5605
+ if (!(p ? cacheHas(p, _) : a(e[i], _, r)))
5606
5606
  continue e;
5607
5607
  }
5608
- m && m.push(p), u.push(b);
5608
+ m && m.push(_), u.push(b);
5609
5609
  }
5610
5610
  }
5611
5611
  return u;
@@ -6424,26 +6424,26 @@ class KgVarUtil {
6424
6424
  });
6425
6425
  return;
6426
6426
  }
6427
- const p = i.store.getVarPossibility(t, r);
6428
- switch (p == null ? void 0 : p.val_data_type) {
6427
+ const _ = i.store.getVarPossibility(t, r);
6428
+ switch (_ == null ? void 0 : _.val_data_type) {
6429
6429
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6430
- const _ = b.map((v) => Number(v));
6431
- if (_.some((v) => Number.isNaN(_))) {
6430
+ const p = b.map((v) => Number(v));
6431
+ if (p.some((v) => Number.isNaN(p))) {
6432
6432
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
6433
6433
  frm_id: t,
6434
6434
  var_nam: r,
6435
6435
  value: s,
6436
- VarPossibility: p
6436
+ VarPossibility: _
6437
6437
  });
6438
6438
  return;
6439
6439
  }
6440
- return _;
6440
+ return p;
6441
6441
  }
6442
6442
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6443
- return b.map((_) => Boolean(_));
6443
+ return b.map((p) => Boolean(p));
6444
6444
  case KG_POSSIBILITY_DATA_TYPE.STRING:
6445
6445
  default:
6446
- return b.map((_) => String(_));
6446
+ return b.map((p) => String(p));
6447
6447
  }
6448
6448
  } catch {
6449
6449
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
@@ -6460,8 +6460,8 @@ class KgVarUtil {
6460
6460
  const b = i.store.getVarPossibility(t, r);
6461
6461
  switch (b == null ? void 0 : b.val_data_type) {
6462
6462
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6463
- const p = Number(s);
6464
- if (Number.isNaN(p)) {
6463
+ const _ = Number(s);
6464
+ if (Number.isNaN(_)) {
6465
6465
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6466
6466
  frm_id: t,
6467
6467
  var_nam: r,
@@ -6470,7 +6470,7 @@ class KgVarUtil {
6470
6470
  });
6471
6471
  return;
6472
6472
  }
6473
- return p;
6473
+ return _;
6474
6474
  }
6475
6475
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6476
6476
  return Boolean(s);
@@ -6580,12 +6580,12 @@ function createSetupStore(e, t, r = {}, a, n) {
6580
6580
  deep: !0
6581
6581
  };
6582
6582
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
6583
- u ? b = M : u == !1 && !E._hotUpdating && (Array.isArray(b) ? b.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6583
+ u ? b = M : u == !1 && !k._hotUpdating && (Array.isArray(b) ? b.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6584
6584
  });
6585
6585
  let u, c, g = markRaw([]), m = markRaw([]), b;
6586
- const p = a.state.value[e];
6587
- !i && !p && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6588
- const _ = ref({});
6586
+ const _ = a.state.value[e];
6587
+ !i && !_ && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6588
+ const p = ref({});
6589
6589
  function v(M) {
6590
6590
  let I;
6591
6591
  u = c = !1, process.env.NODE_ENV !== "production" && (b = []), typeof M == "function" ? (M(a.state.value[e]), I = {
@@ -6607,37 +6607,37 @@ function createSetupStore(e, t, r = {}, a, n) {
6607
6607
  function C() {
6608
6608
  o.stop(), g = [], m = [], a._s.delete(e);
6609
6609
  }
6610
- function k(M, I) {
6610
+ function E(M, I) {
6611
6611
  return function() {
6612
6612
  setActivePinia(a);
6613
- const O = Array.from(arguments), F = [], w = [];
6614
- function N(V) {
6615
- F.push(V);
6613
+ const O = Array.from(arguments), F = [], D = [];
6614
+ function R(w) {
6615
+ F.push(w);
6616
6616
  }
6617
- function R(V) {
6618
- w.push(V);
6617
+ function P(w) {
6618
+ D.push(w);
6619
6619
  }
6620
6620
  triggerSubscriptions(m, {
6621
6621
  args: O,
6622
6622
  name: M,
6623
- store: E,
6624
- after: N,
6625
- onError: R
6623
+ store: k,
6624
+ after: R,
6625
+ onError: P
6626
6626
  });
6627
- let D;
6627
+ let V;
6628
6628
  try {
6629
- D = I.apply(this && this.$id === e ? this : E, O);
6630
- } catch (V) {
6631
- throw triggerSubscriptions(w, V), V;
6629
+ V = I.apply(this && this.$id === e ? this : k, O);
6630
+ } catch (w) {
6631
+ throw triggerSubscriptions(D, w), w;
6632
6632
  }
6633
- return D instanceof Promise ? D.then((V) => (triggerSubscriptions(F, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions(F, D), D);
6633
+ return V instanceof Promise ? V.then((w) => (triggerSubscriptions(F, w), w)).catch((w) => (triggerSubscriptions(D, w), Promise.reject(w))) : (triggerSubscriptions(F, V), V);
6634
6634
  };
6635
6635
  }
6636
6636
  const T = /* @__PURE__ */ markRaw({
6637
6637
  actions: {},
6638
6638
  getters: {},
6639
6639
  state: [],
6640
- hotState: _
6640
+ hotState: p
6641
6641
  }), A = {
6642
6642
  _p: a,
6643
6643
  $id: e,
@@ -6645,37 +6645,37 @@ function createSetupStore(e, t, r = {}, a, n) {
6645
6645
  $patch: v,
6646
6646
  $reset: y,
6647
6647
  $subscribe(M, I = {}) {
6648
- const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (w) => {
6648
+ const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (D) => {
6649
6649
  (I.flush === "sync" ? c : u) && M({
6650
6650
  storeId: e,
6651
6651
  type: MutationType.direct,
6652
6652
  events: b
6653
- }, w);
6653
+ }, D);
6654
6654
  }, assign$1({}, l, I)));
6655
6655
  return O;
6656
6656
  },
6657
6657
  $dispose: C
6658
- }, E = reactive(assign$1(
6658
+ }, k = reactive(assign$1(
6659
6659
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6660
6660
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6661
6661
  _hmrPayload: T
6662
6662
  } : {},
6663
6663
  A
6664
6664
  ));
6665
- a._s.set(e, E);
6665
+ a._s.set(e, k);
6666
6666
  const $ = a._e.run(() => (o = effectScope(), o.run(() => t())));
6667
6667
  for (const M in $) {
6668
6668
  const I = $[M];
6669
6669
  if (isRef(I) && !isComputed(I) || isReactive(I))
6670
- process.env.NODE_ENV !== "production" && n ? set(_.value, M, toRef($, M)) : i || (p && shouldHydrate(I) && (isRef(I) ? I.value = p[M] : mergeReactiveObjects(I, p[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && T.state.push(M);
6670
+ process.env.NODE_ENV !== "production" && n ? set(p.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);
6671
6671
  else if (typeof I == "function") {
6672
- const O = process.env.NODE_ENV !== "production" && n ? I : k(M, I);
6672
+ const O = process.env.NODE_ENV !== "production" && n ? I : E(M, I);
6673
6673
  $[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = I), s.actions[M] = I;
6674
6674
  } else
6675
6675
  process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[M] = i ? r.getters[M] : I, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
6676
6676
  }
6677
- if (assign$1(E, $), assign$1(toRaw(E), $), Object.defineProperty(E, "$state", {
6678
- get: () => process.env.NODE_ENV !== "production" && n ? _.value : a.state.value[e],
6677
+ if (assign$1(k, $), assign$1(toRaw(k), $), Object.defineProperty(k, "$state", {
6678
+ get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
6679
6679
  set: (M) => {
6680
6680
  if (process.env.NODE_ENV !== "production" && n)
6681
6681
  throw new Error("cannot set hotState");
@@ -6684,31 +6684,31 @@ function createSetupStore(e, t, r = {}, a, n) {
6684
6684
  });
6685
6685
  }
6686
6686
  }), process.env.NODE_ENV !== "production") {
6687
- E._hotUpdate = markRaw((I) => {
6688
- E._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6689
- if (O in E.$state) {
6690
- const F = I.$state[O], w = E.$state[O];
6691
- typeof F == "object" && isPlainObject(F) && isPlainObject(w) ? patchObject(F, w) : I.$state[O] = w;
6687
+ k._hotUpdate = markRaw((I) => {
6688
+ k._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6689
+ if (O in k.$state) {
6690
+ const F = I.$state[O], D = k.$state[O];
6691
+ typeof F == "object" && isPlainObject(F) && isPlainObject(D) ? patchObject(F, D) : I.$state[O] = D;
6692
6692
  }
6693
- set(E, O, toRef(I.$state, O));
6694
- }), Object.keys(E.$state).forEach((O) => {
6695
- O in I.$state || del(E, O);
6693
+ set(k, O, toRef(I.$state, O));
6694
+ }), Object.keys(k.$state).forEach((O) => {
6695
+ O in I.$state || del(k, O);
6696
6696
  }), u = !1, c = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6697
6697
  u = !0;
6698
6698
  });
6699
6699
  for (const O in I._hmrPayload.actions) {
6700
6700
  const F = I[O];
6701
- set(E, O, k(O, F));
6701
+ set(k, O, E(O, F));
6702
6702
  }
6703
6703
  for (const O in I._hmrPayload.getters) {
6704
- const F = I._hmrPayload.getters[O], w = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
6705
- set(E, O, w);
6704
+ const F = I._hmrPayload.getters[O], D = i ? computed(() => (setActivePinia(a), F.call(k, k))) : F;
6705
+ set(k, O, D);
6706
6706
  }
6707
- Object.keys(E._hmrPayload.getters).forEach((O) => {
6708
- O in I._hmrPayload.getters || del(E, O);
6709
- }), Object.keys(E._hmrPayload.actions).forEach((O) => {
6710
- O in I._hmrPayload.actions || del(E, O);
6711
- }), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
6707
+ Object.keys(k._hmrPayload.getters).forEach((O) => {
6708
+ O in I._hmrPayload.getters || del(k, O);
6709
+ }), Object.keys(k._hmrPayload.actions).forEach((O) => {
6710
+ O in I._hmrPayload.actions || del(k, O);
6711
+ }), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
6712
6712
  });
6713
6713
  const M = {
6714
6714
  writable: !0,
@@ -6716,8 +6716,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6716
6716
  enumerable: !1
6717
6717
  };
6718
6718
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6719
- Object.defineProperty(E, I, {
6720
- value: E[I],
6719
+ Object.defineProperty(k, I, {
6720
+ value: k[I],
6721
6721
  ...M
6722
6722
  });
6723
6723
  });
@@ -6725,22 +6725,22 @@ function createSetupStore(e, t, r = {}, a, n) {
6725
6725
  return a._p.forEach((M) => {
6726
6726
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6727
6727
  const I = o.run(() => M({
6728
- store: E,
6728
+ store: k,
6729
6729
  app: a._a,
6730
6730
  pinia: a,
6731
6731
  options: s
6732
6732
  }));
6733
- Object.keys(I || {}).forEach((O) => E._customProperties.add(O)), assign$1(E, I);
6733
+ Object.keys(I || {}).forEach((O) => k._customProperties.add(O)), assign$1(k, I);
6734
6734
  } else
6735
- assign$1(E, o.run(() => M({
6736
- store: E,
6735
+ assign$1(k, o.run(() => M({
6736
+ store: k,
6737
6737
  app: a._a,
6738
6738
  pinia: a,
6739
6739
  options: s
6740
6740
  })));
6741
- }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6741
+ }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6742
6742
  state: () => new MyClass()
6743
- Found in store "${E.$id}".`), p && i && r.hydrate && r.hydrate(E.$state, p), u = !0, c = !0, E;
6743
+ Found in store "${k.$id}".`), _ && i && r.hydrate && r.hydrate(k.$state, _), u = !0, c = !0, k;
6744
6744
  }
6745
6745
  function defineStore(e, t, r) {
6746
6746
  let a, n;
@@ -6991,7 +6991,7 @@ function useKgAppSelect() {
6991
6991
  };
6992
6992
  }
6993
6993
  const KgAppSelect$1 = "";
6994
- function _isSlot$9(e) {
6994
+ function _isSlot$a(e) {
6995
6995
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
6996
6996
  }
6997
6997
  const getProps$z = () => ({
@@ -7031,7 +7031,7 @@ const getProps$z = () => ({
7031
7031
  let o;
7032
7032
  return createVNode(SelectOption, {
7033
7033
  value: a
7034
- }, _isSlot$9(o = t.t(n)) ? o : {
7034
+ }, _isSlot$a(o = t.t(n)) ? o : {
7035
7035
  default: () => [o]
7036
7036
  });
7037
7037
  })]),
@@ -7343,15 +7343,15 @@ const KgModal_Close = "", getProps$y = () => ({
7343
7343
  function b(C) {
7344
7344
  m(C);
7345
7345
  }
7346
- function p(C) {
7346
+ function _(C) {
7347
7347
  m(C), g();
7348
7348
  }
7349
- function _(C) {
7350
- C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = v(document.documentElement, "mousemove", b), l = v(document.documentElement, "mouseup", p));
7349
+ function p(C) {
7350
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = v(document.documentElement, "mousemove", b), l = v(document.documentElement, "mouseup", _));
7351
7351
  }
7352
- function v(C, k, T) {
7353
- return C.addEventListener(k, T), {
7354
- remove: () => C.removeEventListener(k, T)
7352
+ function v(C, E, T) {
7353
+ return C.addEventListener(E, T), {
7354
+ remove: () => C.removeEventListener(E, T)
7355
7355
  };
7356
7356
  }
7357
7357
  function y(C) {
@@ -7365,7 +7365,7 @@ const KgModal_Close = "", getProps$y = () => ({
7365
7365
  }, [createVNode("div", {
7366
7366
  class: "kg-resizable-handle",
7367
7367
  onClick: y,
7368
- onMousedown: _
7368
+ onMousedown: p
7369
7369
  }, [createVNode("div", {
7370
7370
  class: "kg-resizable-handle-line"
7371
7371
  }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
@@ -7521,14 +7521,14 @@ function createStore(e, t, r) {
7521
7521
  var c = this[u];
7522
7522
  this[u] = function() {
7523
7523
  var m = slice(arguments, 0), b = this;
7524
- function p() {
7524
+ function _() {
7525
7525
  if (!!c)
7526
7526
  return each$6(arguments, function(v, y) {
7527
7527
  m[y] = v;
7528
7528
  }), c.apply(b, m);
7529
7529
  }
7530
- var _ = [p].concat(m);
7531
- return l.apply(b, _);
7530
+ var p = [_].concat(m);
7531
+ return l.apply(b, p);
7532
7532
  };
7533
7533
  },
7534
7534
  _serialize: function(l) {
@@ -8543,17 +8543,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8543
8543
  varPossibilities: g,
8544
8544
  varButtons: m,
8545
8545
  varButtonConfig: b,
8546
- varSubmitConfig: p,
8547
- varSubmitFields: _,
8546
+ varSubmitConfig: _,
8547
+ varSubmitFields: p,
8548
8548
  varProfile: v,
8549
8549
  varProfileConfig: y,
8550
8550
  varGrid: C,
8551
- varGridConfig: k
8551
+ varGridConfig: E
8552
8552
  } = await GetAll({ params: { frm_id: e } });
8553
- this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(p)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(_)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8553
+ this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8554
8554
  varProfile: v != null ? v : null,
8555
8555
  currentVarProfileMasterID: (a = (r = (t = v == null ? void 0 : v.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8556
- }), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
8556
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8557
8557
  varGrid: transformVarGridDTO(C),
8558
8558
  currentVarGridMasterID: (i = (o = (n = C == null ? void 0 : C.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
8559
8559
  }), this.emit(e, "ready");
@@ -8706,10 +8706,10 @@ function useKgVar(e, t, r = 0) {
8706
8706
  const l = (G) => computed(() => {
8707
8707
  var Y, q, Z;
8708
8708
  return (Z = (q = (Y = s.getVarCatalog(i, G)) == null ? void 0 : Y.var_text) != null ? q : G) != null ? Z : "";
8709
- }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), m = computed(() => s.isCreating(i)), b = computed(() => s.isCreatingRequesting(i)), p = computed(() => s.isUpdating(i)), _ = computed(() => s.isUpdatingRequesting(i)), v = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), k = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), A = computed(() => s.getVarButtons(i)), E = computed(() => s.getVarButtonSearch(i)), $ = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), I = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), F = computed(() => s.getVarProfileMasters(i)), w = computed(() => s.getCurrentVarProfileMaster(i)), N = computed(() => s.getCurrentVarProfileMasterID(i)), R = computed(() => {
8709
+ }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), m = computed(() => s.isCreating(i)), b = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), p = computed(() => s.isUpdatingRequesting(i)), v = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), A = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), $ = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), I = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), F = computed(() => s.getVarProfileMasters(i)), D = computed(() => s.getCurrentVarProfileMaster(i)), R = computed(() => s.getCurrentVarProfileMasterID(i)), P = computed(() => {
8710
8710
  var G, Y;
8711
- return (Y = (G = w.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
8712
- }), D = computed(() => s.getVarGridConfig(i)), V = computed(() => s.getVarGridMasters(i)), P = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
8711
+ return (Y = (G = D.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
8712
+ }), V = computed(() => s.getVarGridConfig(i)), w = computed(() => s.getVarGridMasters(i)), N = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
8713
8713
  return {
8714
8714
  formID: i,
8715
8715
  store: s,
@@ -8718,26 +8718,26 @@ function useKgVar(e, t, r = 0) {
8718
8718
  isRetrievingVarGridMaster: g,
8719
8719
  isCreating: m,
8720
8720
  isCreatingRequesting: b,
8721
- isUpdating: p,
8722
- isUpdatingRequesting: _,
8721
+ isUpdating: _,
8722
+ isUpdatingRequesting: p,
8723
8723
  isCopying: v,
8724
8724
  isCopyingRequesting: y,
8725
8725
  isDeleting: C,
8726
- isDeletingRequesting: k,
8726
+ isDeletingRequesting: E,
8727
8727
  isOtherRequesting: T,
8728
8728
  varButtons: A,
8729
- varButtonSearch: E,
8729
+ varButtonSearch: k,
8730
8730
  varButtonCreate: $,
8731
8731
  varButtonUpdate: M,
8732
8732
  varButtonCopy: I,
8733
8733
  varButtonDelete: O,
8734
8734
  varProfileMasters: F,
8735
- currentVarProfileMaster: w,
8736
- currentVarProfileMasterID: N,
8737
- currentVarProfileDetails: R,
8738
- varGridConfig: D,
8739
- varGridMasters: V,
8740
- currentVarGridMaster: P,
8735
+ currentVarProfileMaster: D,
8736
+ currentVarProfileMasterID: R,
8737
+ currentVarProfileDetails: P,
8738
+ varGridConfig: V,
8739
+ varGridMasters: w,
8740
+ currentVarGridMaster: N,
8741
8741
  systemVarGridDetails: B,
8742
8742
  currentVarGridDetails: x,
8743
8743
  t: l,
@@ -8761,16 +8761,16 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
8761
8761
  const r = useKgVar();
8762
8762
  KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
8763
8763
  const a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
8764
- var m, b, p, _;
8764
+ var m, b, _, p;
8765
8765
  switch (!0) {
8766
8766
  case r.isCreating.value:
8767
8767
  return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
8768
8768
  case r.isUpdating.value:
8769
8769
  return ((b = a.value) == null ? void 0 : b.upt_flg) !== 0;
8770
8770
  case r.isCopying.value:
8771
- return ((p = a.value) == null ? void 0 : p.cpy_flg) !== 0;
8771
+ return ((_ = a.value) == null ? void 0 : _.cpy_flg) !== 0;
8772
8772
  case r.isDeleting.value:
8773
- return ((_ = a.value) == null ? void 0 : _.del_flg) !== 0;
8773
+ return ((p = a.value) == null ? void 0 : p.del_flg) !== 0;
8774
8774
  }
8775
8775
  return !1;
8776
8776
  }), s = computed(() => {
@@ -8788,9 +8788,9 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
8788
8788
  spinning: u.value
8789
8789
  }, {
8790
8790
  default: () => {
8791
- var m, b, p;
8791
+ var m, b, _;
8792
8792
  return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : b.call(m), i.value && createVNode(KgSubmit, {
8793
- kgClass: (p = e.kgSubmitClass) != null ? p : ""
8793
+ kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
8794
8794
  }, null)])];
8795
8795
  }
8796
8796
  });
@@ -8855,34 +8855,34 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
8855
8855
  const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), o = inject(KG_DI_VAR_NAME, ""), i = inject(KG_DI_LOOKUP_ID, ""), s = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
8856
8856
  useKgVar(i, !0, n.store.getFormLevel(n.formID) + 1);
8857
8857
  const l = useKgTable(i), u = computed(() => n.store.getVarLookup(a, o)), c = computed(() => {
8858
- var p;
8859
- return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.mult_flg) === 1;
8858
+ var _;
8859
+ return ((_ = u == null ? void 0 : u.value) == null ? void 0 : _.mult_flg) === 1;
8860
8860
  }), g = computed(() => {
8861
- var p, _;
8862
- return (_ = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? _ : "";
8861
+ var _, p;
8862
+ return (p = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? p : "";
8863
8863
  });
8864
8864
  l.onRowDoubleClick(() => b());
8865
8865
  function m() {
8866
8866
  r("update:visible", !1);
8867
8867
  }
8868
8868
  function b() {
8869
- var p, _, v, y, C, k, T;
8869
+ var _, p, v, y, C, E, T;
8870
8870
  if (c.value) {
8871
- const A = (_ = (p = l.selectedRows) == null ? void 0 : p.value) != null ? _ : [], E = (v = A.map(($) => $[g.value])) != null ? v : [];
8872
- (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8871
+ const A = (p = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? p : [], k = (v = A.map(($) => $[g.value])) != null ? v : [];
8872
+ (!s || s(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
8873
8873
  } else {
8874
- const A = (k = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? k : null, E = (T = A == null ? void 0 : A[g.value]) != null ? T : "";
8875
- (!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
8874
+ const A = (E = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? E : null, k = (T = A == null ? void 0 : A[g.value]) != null ? T : "";
8875
+ (!s || s(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
8876
8876
  }
8877
8877
  }
8878
8878
  return () => {
8879
- var p, _;
8879
+ var _, p;
8880
8880
  return createVNode(KgModal, {
8881
8881
  visible: e.visible,
8882
8882
  title: n.t(o).value,
8883
8883
  destroyOnClose: !0,
8884
8884
  okButtonProps: {
8885
- disabled: ((_ = (p = l.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0
8885
+ disabled: ((p = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0
8886
8886
  },
8887
8887
  wrapClassName: "kg-form-item-addon-lookup-modal",
8888
8888
  onCancel: m,
@@ -8951,41 +8951,41 @@ function _useServices$2(e) {
8951
8951
  const s = (c = (u = r.value) == null ? void 0 : u.val_clm) != null ? c : "", l = (m = (g = r.value) == null ? void 0 : g.val_data_type) != null ? m : "string";
8952
8952
  switch (l) {
8953
8953
  case KG_POSSIBILITY_DATA_TYPE.STRING:
8954
- i.forEach((p) => {
8955
- p[s] = String(p[s]);
8954
+ i.forEach((_) => {
8955
+ _[s] = String(_[s]);
8956
8956
  });
8957
8957
  break;
8958
8958
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
8959
- i.forEach((p) => {
8960
- let _ = Number(p[s]);
8961
- Number.isNaN(_) && (_ = p[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${p[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8959
+ i.forEach((_) => {
8960
+ let p = Number(_[s]);
8961
+ Number.isNaN(p) && (p = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8962
8962
  frm_id: t.formID,
8963
8963
  var_nam: e.kgVarName,
8964
8964
  VarPossibility: r.value
8965
- })), p[s] = _;
8965
+ })), _[s] = p;
8966
8966
  });
8967
8967
  break;
8968
8968
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
8969
- i.forEach((p) => {
8970
- let _;
8971
- String(p[s]).toLowerCase() === "true" ? _ = !0 : String(p[s]).toLowerCase() === "false" ? _ = !1 : (_ = p[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${p[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8969
+ i.forEach((_) => {
8970
+ let p;
8971
+ String(_[s]).toLowerCase() === "true" ? p = !0 : String(_[s]).toLowerCase() === "false" ? p = !1 : (p = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8972
8972
  frm_id: t.formID,
8973
8973
  var_nam: e.kgVarName,
8974
8974
  VarPossibility: r.value
8975
- })), p[s] = _;
8975
+ })), _[s] = p;
8976
8976
  });
8977
8977
  break;
8978
8978
  }
8979
- return (b = n.value) != null && b.excludeValues ? i.filter((p) => {
8980
- var _;
8981
- return !((_ = n.value.excludeValues) != null && _.includes(p[s]));
8979
+ return (b = n.value) != null && b.excludeValues ? i.filter((_) => {
8980
+ var p;
8981
+ return !((p = n.value.excludeValues) != null && p.includes(_[s]));
8982
8982
  }) : i;
8983
8983
  }
8984
8984
  return {
8985
8985
  transformDatas: o
8986
8986
  };
8987
8987
  }
8988
- function _isSlot$8(e) {
8988
+ function _isSlot$9(e) {
8989
8989
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8990
8990
  }
8991
8991
  const KgFormItemCheckboxGroup = defineComponent({
@@ -8999,8 +8999,8 @@ const KgFormItemCheckboxGroup = defineComponent({
8999
8999
  const a = useKg(), n = useKgVar(), o = inject(DI_FORM_REF, ref(null)), i = inject(DI_FORM_MODEL, computed(() => ({}))), {
9000
9000
  transformDatas: s
9001
9001
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), m = computed(() => n.store.getVarVariableConfig(n.formID, e.kgVarName)), b = computed(() => {
9002
- var k;
9003
- let C = KgVarUtil.parseCommandParameter((k = g.value) == null ? void 0 : k.cmd_prm);
9002
+ var E;
9003
+ let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
9004
9004
  return C = mapValues(C, (T) => {
9005
9005
  if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
9006
9006
  const A = T.slice(1, -1);
@@ -9009,30 +9009,30 @@ const KgFormItemCheckboxGroup = defineComponent({
9009
9009
  }
9010
9010
  return T;
9011
9011
  }), C;
9012
- }), p = computed(() => {
9012
+ }), _ = computed(() => {
9013
9013
  var C;
9014
9014
  return KgUtil.tryParseJSON((C = m.value) == null ? void 0 : C.ctrl_prop);
9015
9015
  });
9016
9016
  watch(b, () => {
9017
9017
  var C;
9018
- (C = g.value) != null && C.id && _();
9018
+ (C = g.value) != null && C.id && p();
9019
9019
  }, {
9020
9020
  immediate: !0
9021
- }), watch([() => e.value, c], ([C, k]) => {
9022
- var A, E;
9021
+ }), watch([() => e.value, c], ([C, E]) => {
9022
+ var A, k;
9023
9023
  const T = get(C, "length", 0);
9024
- if (T > 0 && k.length > 0) {
9025
- const $ = (E = (A = g.value) == null ? void 0 : A.val_clm) != null ? E : "", M = intersection$1(C, k == null ? void 0 : k.map((I) => I[$]));
9024
+ if (T > 0 && E.length > 0) {
9025
+ const $ = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", M = intersection$1(C, E == null ? void 0 : E.map((I) => I[$]));
9026
9026
  if (M.length < T) {
9027
9027
  r("update:value", M);
9028
9028
  return;
9029
9029
  }
9030
9030
  }
9031
9031
  switch (!0) {
9032
- case (T > 0 && T === k.length):
9032
+ case (T > 0 && T === E.length):
9033
9033
  l.value = !0, u.value = !1;
9034
9034
  break;
9035
- case (T > 0 && T !== k.length):
9035
+ case (T > 0 && T !== E.length):
9036
9036
  l.value = !1, u.value = !0;
9037
9037
  break;
9038
9038
  default:
@@ -9042,9 +9042,9 @@ const KgFormItemCheckboxGroup = defineComponent({
9042
9042
  }, {
9043
9043
  immediate: !0
9044
9044
  });
9045
- async function _() {
9046
- var $, M, I, O, F, w, N, R, D;
9047
- const C = ($ = g.value) == null ? void 0 : $.cmd, k = (I = (M = g.value) == null ? void 0 : M.cmd_method) != null ? I : "GET", T = (F = (O = g.value) == null ? void 0 : O.val_clm) != null ? F : "", A = (N = (w = g.value) == null ? void 0 : w.lbl_clm) != null ? N : "";
9045
+ async function p() {
9046
+ var $, M, I, O, F, D, R, P, V;
9047
+ const C = ($ = g.value) == null ? void 0 : $.cmd, E = (I = (M = g.value) == null ? void 0 : M.cmd_method) != null ? I : "GET", T = (F = (O = g.value) == null ? void 0 : O.val_clm) != null ? F : "", A = (R = (D = g.value) == null ? void 0 : D.lbl_clm) != null ? R : "";
9048
9048
  if (!C || !T || !A) {
9049
9049
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9050
9050
  frm_id: n.formID,
@@ -9055,52 +9055,52 @@ const KgFormItemCheckboxGroup = defineComponent({
9055
9055
  });
9056
9056
  return;
9057
9057
  }
9058
- let E = null;
9058
+ let k = null;
9059
9059
  try {
9060
- E = await ((R = httpClient()) == null ? void 0 : R.request({
9060
+ k = await ((P = httpClient()) == null ? void 0 : P.request({
9061
9061
  url: C,
9062
- method: k,
9062
+ method: E,
9063
9063
  params: b.value,
9064
9064
  data: b.value
9065
9065
  }));
9066
9066
  } catch {
9067
9067
  }
9068
- if (!isObjectLike(E))
9068
+ if (!isObjectLike(k))
9069
9069
  c.value = [];
9070
9070
  else
9071
9071
  switch (!0) {
9072
- case isArrayLike(E):
9073
- c.value = s(E);
9072
+ case isArrayLike(k):
9073
+ c.value = s(k);
9074
9074
  break;
9075
- case (E && "total" in E && "records" in E):
9076
- c.value = s(E.records);
9075
+ case (k && "total" in k && "records" in k):
9076
+ c.value = s(k.records);
9077
9077
  break;
9078
9078
  }
9079
9079
  if (c.value.length > 0) {
9080
- const V = c.value[0];
9081
- (!(T in V) || !(A in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9080
+ const w = c.value[0];
9081
+ (!(T in w) || !(A in w)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9082
9082
  frm_id: n.formID,
9083
9083
  var_nam: e.kgVarName,
9084
9084
  cmd: C,
9085
9085
  val_clm: T,
9086
9086
  lbl_clm: A,
9087
- \u6240\u6709\u5217: Object.keys(V)
9087
+ \u6240\u6709\u5217: Object.keys(w)
9088
9088
  });
9089
9089
  }
9090
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((D = c.value) == null ? void 0 : D.map((V) => V[T]), e.value));
9090
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((V = c.value) == null ? void 0 : V.map((w) => w[T]), e.value));
9091
9091
  }
9092
9092
  function v(C) {
9093
- var k, T, A;
9094
- C.target.checked ? y((T = (k = c.value) == null ? void 0 : k.map((E) => {
9093
+ var E, T, A;
9094
+ C.target.checked ? y((T = (E = c.value) == null ? void 0 : E.map((k) => {
9095
9095
  var $, M;
9096
- return E[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
9096
+ return k[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
9097
9097
  })) != null ? T : []) : y([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
9098
9098
  }
9099
9099
  function y(C) {
9100
9100
  r("update:value", C), r("kgChange", C);
9101
9101
  }
9102
9102
  return () => {
9103
- let C, k;
9103
+ let C, E;
9104
9104
  return createVNode("div", {
9105
9105
  class: "kg-form-item-checkbox-group"
9106
9106
  }, [createVNode(Form.ItemRest, null, {
@@ -9109,7 +9109,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9109
9109
  "onUpdate:checked": (T) => l.value = T,
9110
9110
  indeterminate: u.value,
9111
9111
  onChange: v
9112
- }, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
9112
+ }, _isSlot$9(C = a.t("kg.selectAll")) ? C : {
9113
9113
  default: () => [C]
9114
9114
  })]
9115
9115
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
@@ -9118,10 +9118,10 @@ const KgFormItemCheckboxGroup = defineComponent({
9118
9118
  }, {
9119
9119
  default: () => [createVNode(Row, {
9120
9120
  gutter: 12
9121
- }, _isSlot$8(k = c.value.map((T) => {
9122
- var A, E;
9121
+ }, _isSlot$9(E = c.value.map((T) => {
9122
+ var A, k;
9123
9123
  return createVNode(Col, {
9124
- span: (E = (A = p.value) == null ? void 0 : A.span) != null ? E : 24
9124
+ span: (k = (A = _.value) == null ? void 0 : A.span) != null ? k : 24
9125
9125
  }, {
9126
9126
  default: () => {
9127
9127
  var $, M, I, O;
@@ -9130,14 +9130,14 @@ const KgFormItemCheckboxGroup = defineComponent({
9130
9130
  "kg-value": T[(O = (I = g.value) == null ? void 0 : I.val_clm) != null ? O : ""]
9131
9131
  }, {
9132
9132
  default: () => {
9133
- var F, w;
9134
- return [T[(w = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? w : ""]];
9133
+ var F, D;
9134
+ return [T[(D = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? D : ""]];
9135
9135
  }
9136
9136
  })];
9137
9137
  }
9138
9138
  });
9139
- })) ? k : {
9140
- default: () => [k]
9139
+ })) ? E : {
9140
+ default: () => [E]
9141
9141
  })]
9142
9142
  })]);
9143
9143
  };
@@ -9300,18 +9300,18 @@ const KgFormItemSelect = defineComponent({
9300
9300
  } = _useServices$1(e), i = ref([]), s = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), l = computed(() => {
9301
9301
  var b;
9302
9302
  let m = KgVarUtil.parseCommandParameter((b = s.value) == null ? void 0 : b.cmd_prm);
9303
- return m = mapValues(m, (p) => {
9303
+ return m = mapValues(m, (_) => {
9304
9304
  var v, y;
9305
- let _ = p;
9306
- if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
9307
- let C = p.slice(1, -1), k = "";
9305
+ let p = _;
9306
+ if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
9307
+ let C = _.slice(1, -1), E = "";
9308
9308
  if (C.includes(".")) {
9309
9309
  const T = C.split(".");
9310
- C = T[0], k = T[1];
9310
+ C = T[0], E = T[1];
9311
9311
  }
9312
- n.value && C in n.value && (k ? _ = (y = (v = n.value[`${C}_obj`]) == null ? void 0 : v[k]) != null ? y : void 0 : _ = n.value[C], _ || (_ = "__KG__FORM_ITEM_SELECT__PID"));
9312
+ n.value && C in n.value && (E ? p = (y = (v = n.value[`${C}_obj`]) == null ? void 0 : v[E]) != null ? y : void 0 : p = n.value[C], p || (p = "__KG__FORM_ITEM_SELECT__PID"));
9313
9313
  }
9314
- return _;
9314
+ return p;
9315
9315
  }), m;
9316
9316
  });
9317
9317
  watch(l, () => {
@@ -9321,15 +9321,15 @@ const KgFormItemSelect = defineComponent({
9321
9321
  immediate: !0
9322
9322
  });
9323
9323
  async function u() {
9324
- var y, C, k, T, A, E, $, M;
9325
- const m = (y = s.value) == null ? void 0 : y.cmd, b = (k = (C = s.value) == null ? void 0 : C.cmd_method) != null ? k : "GET", p = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", _ = ($ = (E = s.value) == null ? void 0 : E.lbl_clm) != null ? $ : "";
9326
- if (!m || !p || !_) {
9324
+ var y, C, E, T, A, k, $, M;
9325
+ const m = (y = s.value) == null ? void 0 : y.cmd, b = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", _ = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", p = ($ = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? $ : "";
9326
+ if (!m || !_ || !p) {
9327
9327
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9328
9328
  frm_id: a.formID,
9329
9329
  var_nam: e.kgVarName,
9330
9330
  cmd: m,
9331
- val_clm: p,
9332
- lbl_clm: _
9331
+ val_clm: _,
9332
+ lbl_clm: p
9333
9333
  });
9334
9334
  return;
9335
9335
  }
@@ -9355,30 +9355,30 @@ const KgFormItemSelect = defineComponent({
9355
9355
  }
9356
9356
  if (i.value.length > 0) {
9357
9357
  const I = i.value[0];
9358
- (!(p in I) || !(_ 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.", {
9358
+ (!(_ in I) || !(p 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.", {
9359
9359
  frm_id: a.formID,
9360
9360
  var_nam: e.kgVarName,
9361
9361
  cmd: m,
9362
- val_clm: p,
9363
- lbl_clm: _,
9362
+ val_clm: _,
9363
+ lbl_clm: p,
9364
9364
  \u6240\u6709\u5217: Object.keys(I)
9365
9365
  });
9366
9366
  }
9367
- r("kgSelectDatasChange", i.value), i.value.find((I) => I[p] === e.value) || r("update:value", void 0);
9367
+ r("kgSelectDatasChange", i.value), i.value.find((I) => I[_] === e.value) || r("update:value", void 0);
9368
9368
  }
9369
9369
  function c(m) {
9370
- var p;
9371
- const b = (p = toRaw(i.value.find((_) => {
9370
+ var _;
9371
+ const b = (_ = toRaw(i.value.find((p) => {
9372
9372
  var v, y;
9373
- return _[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""] === m;
9374
- }))) != null ? p : null;
9373
+ return p[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""] === m;
9374
+ }))) != null ? _ : null;
9375
9375
  r("kgSelectChange", b), n.value[`${e.kgVarName}_obj`] = b;
9376
9376
  }
9377
9377
  function g(m) {
9378
9378
  r("update:value", m), r("kgChange", m);
9379
9379
  }
9380
9380
  return () => {
9381
- var m, b, p;
9381
+ var m, b, _;
9382
9382
  return createVNode(Select, {
9383
9383
  value: e.value,
9384
9384
  "onUpdate:value": g,
@@ -9392,17 +9392,17 @@ const KgFormItemSelect = defineComponent({
9392
9392
  style: "width: 100%",
9393
9393
  "kg-cmd": (m = s.value) == null ? void 0 : m.cmd,
9394
9394
  "kg-val-clm": (b = s.value) == null ? void 0 : b.val_clm,
9395
- "kg-lbl-clm": (p = s.value) == null ? void 0 : p.lbl_clm
9395
+ "kg-lbl-clm": (_ = s.value) == null ? void 0 : _.lbl_clm
9396
9396
  }, {
9397
- default: () => i.value.map((_) => {
9398
- var v, y, C, k;
9397
+ default: () => i.value.map((p) => {
9398
+ var v, y, C, E;
9399
9399
  return createVNode(Select.Option, {
9400
- "kg-value": _[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""],
9401
- value: _[(k = (C = s.value) == null ? void 0 : C.val_clm) != null ? k : ""]
9400
+ "kg-value": p[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""],
9401
+ value: p[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9402
9402
  }, {
9403
9403
  default: () => {
9404
9404
  var T, A;
9405
- return [_[(A = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? A : ""]];
9405
+ return [p[(A = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? A : ""]];
9406
9406
  }
9407
9407
  });
9408
9408
  }),
@@ -9435,7 +9435,7 @@ function _useRules(e) {
9435
9435
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9436
9436
  return {
9437
9437
  rules: computed(() => {
9438
- var l, u, c, g, m, b, p, _;
9438
+ var l, u, c, g, m, b, _, p;
9439
9439
  let s = [];
9440
9440
  switch (e.kgContext) {
9441
9441
  case KG_FORM_CONTEXT.SEARCH:
@@ -9475,8 +9475,8 @@ function _useRules(e) {
9475
9475
  }
9476
9476
  switch ((b = n.value) == null ? void 0 : b.data_type) {
9477
9477
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9478
- const v = (p = n.value) == null ? void 0 : p.min;
9479
- isNil(v) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? s.push({
9478
+ const v = (_ = n.value) == null ? void 0 : _.min;
9479
+ isNil(v) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? s.push({
9480
9480
  validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
9481
9481
  }) : s.push({
9482
9482
  validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
@@ -9499,7 +9499,7 @@ const KgFormItem = defineComponent({
9499
9499
  const a = useKgVar(), n = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), s = computed(() => a.store.getVarVariableConfig(a.formID, e.kgVarName)), l = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
9500
9500
  rules: c
9501
9501
  } = _useRules(e), g = computed(() => {
9502
- var I, O, F, w, N;
9502
+ var I, O, F, D, R;
9503
9503
  if (a.isRetrievingVar.value)
9504
9504
  return !0;
9505
9505
  let M = !1;
@@ -9519,17 +9519,17 @@ const KgFormItem = defineComponent({
9519
9519
  M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9520
9520
  break;
9521
9521
  case a.isCopying.value:
9522
- M = ((w = u.value) == null ? void 0 : w.cpy_ena_flg) === 0;
9522
+ M = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
9523
9523
  break;
9524
9524
  case a.isDeleting.value:
9525
- M = ((N = u.value) == null ? void 0 : N.del_ena_flg) === 0;
9525
+ M = ((R = u.value) == null ? void 0 : R.del_ena_flg) === 0;
9526
9526
  break;
9527
9527
  }
9528
9528
  break;
9529
9529
  }
9530
9530
  return M;
9531
9531
  }), m = computed(() => {
9532
- var I, O, F, w;
9532
+ var I, O, F, D;
9533
9533
  let M = " ";
9534
9534
  if (e.kgPlaceholder)
9535
9535
  M = e.kgPlaceholder;
@@ -9539,12 +9539,12 @@ const KgFormItem = defineComponent({
9539
9539
  M = a.t((O = (I = l.value) == null ? void 0 : I.placeholder) != null ? O : " ").value;
9540
9540
  break;
9541
9541
  case KG_FORM_CONTEXT.SUBMIT:
9542
- M = a.t((w = (F = u.value) == null ? void 0 : F.placeholder) != null ? w : " ").value;
9542
+ M = a.t((D = (F = u.value) == null ? void 0 : F.placeholder) != null ? D : " ").value;
9543
9543
  break;
9544
9544
  }
9545
9545
  return M;
9546
9546
  }), b = computed(() => {
9547
- var I, O, F, w, N, R, D, V, P, B;
9547
+ var I, O, F, D, R, P, V, w, N, B;
9548
9548
  let M = 6;
9549
9549
  if (e.kgSpan !== void 0)
9550
9550
  M = e.kgSpan;
@@ -9556,33 +9556,33 @@ const KgFormItem = defineComponent({
9556
9556
  case KG_FORM_CONTEXT.SUBMIT:
9557
9557
  switch (!0) {
9558
9558
  case a.isCreating.value:
9559
- M = (w = (F = u.value) == null ? void 0 : F.crt_width) != null ? w : 6;
9559
+ M = (D = (F = u.value) == null ? void 0 : F.crt_width) != null ? D : 6;
9560
9560
  break;
9561
9561
  case a.isUpdating.value:
9562
- M = (R = (N = u.value) == null ? void 0 : N.upt_width) != null ? R : 6;
9562
+ M = (P = (R = u.value) == null ? void 0 : R.upt_width) != null ? P : 6;
9563
9563
  break;
9564
9564
  case a.isCopying.value:
9565
- M = (V = (D = u.value) == null ? void 0 : D.cpy_width) != null ? V : 6;
9565
+ M = (w = (V = u.value) == null ? void 0 : V.cpy_width) != null ? w : 6;
9566
9566
  break;
9567
9567
  case a.isDeleting.value:
9568
- M = (B = (P = u.value) == null ? void 0 : P.del_width) != null ? B : 6;
9568
+ M = (B = (N = u.value) == null ? void 0 : N.del_width) != null ? B : 6;
9569
9569
  break;
9570
9570
  }
9571
9571
  }
9572
9572
  return Math.min(24, Math.max(1, M));
9573
- }), p = computed(() => {
9574
- var F, w;
9575
- const M = get(k.value, "$el.parentElement");
9573
+ }), _ = computed(() => {
9574
+ var F, D;
9575
+ const M = get(E.value, "$el.parentElement");
9576
9576
  if (M && !((F = M.classList) != null && F.contains("ant-row")))
9577
9577
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9578
9578
  let I = {};
9579
- const O = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
9579
+ const O = Math.abs(Number.parseInt((D = get(E.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
9580
9580
  return Number.isNaN(O) || (I = {
9581
9581
  paddingLeft: `${O}px !important`,
9582
9582
  paddingRight: `${O}px !important`
9583
9583
  }), I;
9584
- }), _ = computed(() => {
9585
- var I, O, F, w;
9584
+ }), p = computed(() => {
9585
+ var I, O, F, D;
9586
9586
  let M = "kg-form-item";
9587
9587
  switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
9588
9588
  case KG_FORM_CONTEXT.SEARCH:
@@ -9596,7 +9596,7 @@ const KgFormItem = defineComponent({
9596
9596
  switch (!0) {
9597
9597
  case (a.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
9598
9598
  case (a.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9599
- case (a.isCopying.value && ((w = u.value) == null ? void 0 : w.cpy_vis_flg) === 0):
9599
+ case (a.isCopying.value && ((D = u.value) == null ? void 0 : D.cpy_vis_flg) === 0):
9600
9600
  M += " kg-form-item--invisible";
9601
9601
  break;
9602
9602
  }
@@ -9637,8 +9637,8 @@ const KgFormItem = defineComponent({
9637
9637
  }
9638
9638
  return M;
9639
9639
  }), y = computed(() => {
9640
- var R, D, V, P, B, x;
9641
- const M = (R = s.value) == null ? void 0 : R.ctrl_typ, I = (D = s.value) == null ? void 0 : D.prf_ctrl_typ, O = (V = s.value) == null ? void 0 : V.crt_ctrl_typ, F = (P = s.value) == null ? void 0 : P.upt_ctrl_typ, w = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, N = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
9640
+ var P, V, w, N, B, x;
9641
+ const M = (P = s.value) == null ? void 0 : P.ctrl_typ, I = (V = s.value) == null ? void 0 : V.prf_ctrl_typ, O = (w = s.value) == null ? void 0 : w.crt_ctrl_typ, F = (N = s.value) == null ? void 0 : N.upt_ctrl_typ, D = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, R = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
9642
9642
  switch (e.kgContext) {
9643
9643
  case KG_FORM_CONTEXT.SEARCH:
9644
9644
  return I || M;
@@ -9649,13 +9649,13 @@ const KgFormItem = defineComponent({
9649
9649
  case a.isUpdating.value:
9650
9650
  return F || M;
9651
9651
  case a.isCopying.value:
9652
- return w || M;
9652
+ return D || M;
9653
9653
  case a.isDeleting.value:
9654
- return N || M;
9654
+ return R || M;
9655
9655
  }
9656
9656
  }
9657
9657
  return M;
9658
- }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), k = ref(null);
9658
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), E = ref(null);
9659
9659
  function T(M, I) {
9660
9660
  var O;
9661
9661
  n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", I), (O = o.value) == null || O.validate([e.kgVarName]);
@@ -9701,7 +9701,7 @@ const KgFormItem = defineComponent({
9701
9701
  return createVNode(KgFormItemInput, v.value, null);
9702
9702
  }
9703
9703
  }
9704
- function E() {
9704
+ function k() {
9705
9705
  return e.kgShowLabel ? createVNode("span", {
9706
9706
  title: a.t(e.kgVarName).value
9707
9707
  }, [a.t(e.kgVarName).value]) : null;
@@ -9719,14 +9719,14 @@ const KgFormItem = defineComponent({
9719
9719
  return () => {
9720
9720
  var M, I;
9721
9721
  return createVNode(Col, {
9722
- ref: k,
9722
+ ref: E,
9723
9723
  "kg-frm-id": a.formID,
9724
9724
  "kg-var-nam": e.kgVarName,
9725
9725
  "kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
9726
9726
  "kg-lkp-ret-fld": (I = i.value) == null ? void 0 : I.ret_fld,
9727
9727
  span: b.value,
9728
- class: _.value,
9729
- style: p.value
9728
+ class: p.value,
9729
+ style: _.value
9730
9730
  }, {
9731
9731
  default: () => [createVNode(Form.Item, {
9732
9732
  name: e.kgVarName,
@@ -9735,7 +9735,7 @@ const KgFormItem = defineComponent({
9735
9735
  htmlFor: C.value
9736
9736
  }, {
9737
9737
  default: () => createVNode(Fragment, null, [A(), $()]),
9738
- label: () => E()
9738
+ label: () => k()
9739
9739
  })]
9740
9740
  });
9741
9741
  };
@@ -9783,6 +9783,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
9783
9783
  afterValidateListenersMap: /* @__PURE__ */ new Map(),
9784
9784
  beforeRequestListenersMap: /* @__PURE__ */ new Map(),
9785
9785
  okListenersMap: /* @__PURE__ */ new Map(),
9786
+ errorListenersMap: /* @__PURE__ */ new Map(),
9786
9787
  isLoadingMap: /* @__PURE__ */ new Map(),
9787
9788
  modelMap: /* @__PURE__ */ new Map(),
9788
9789
  formRefMap: /* @__PURE__ */ new Map(),
@@ -9862,6 +9863,12 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
9862
9863
  this.okListenersMap.set(e, [...a != null ? a : [], r]);
9863
9864
  }
9864
9865
  break;
9866
+ case "error":
9867
+ {
9868
+ const a = this.errorListenersMap.get(e);
9869
+ this.errorListenersMap.set(e, [...a != null ? a : [], r]);
9870
+ }
9871
+ break;
9865
9872
  }
9866
9873
  },
9867
9874
  removeEventListener(e, t, r) {
@@ -9908,6 +9915,13 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
9908
9915
  } else
9909
9916
  this.okListenersMap.set(e, []);
9910
9917
  break;
9918
+ case "error":
9919
+ if (r) {
9920
+ const a = this.errorListenersMap.get(e);
9921
+ this.errorListenersMap.set(e, without$1(a, r));
9922
+ } else
9923
+ this.errorListenersMap.set(e, []);
9924
+ break;
9911
9925
  }
9912
9926
  },
9913
9927
  emit(e, t, r) {
@@ -9931,6 +9945,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
9931
9945
  case "ok":
9932
9946
  a = this.okListenersMap.get(e);
9933
9947
  break;
9948
+ case "error":
9949
+ a = this.errorListenersMap.get(e);
9950
+ break;
9934
9951
  }
9935
9952
  if (a) {
9936
9953
  let n = Promise.resolve(!1);
@@ -9962,72 +9979,77 @@ function useKgSubmit(e) {
9962
9979
  };
9963
9980
  }
9964
9981
  function o(p) {
9965
- return isFunction$2(p) ? (r.addEventListener(t.formID, "close", p), onUnmounted(() => r.removeEventListener(t.formID, "close", p)), () => r.removeEventListener(t.formID, "close", p)) : () => {
9982
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "beforeOk", p), onUnmounted(() => r.removeEventListener(t.formID, "beforeOk", p)), () => r.removeEventListener(t.formID, "beforeOk", p)) : () => {
9966
9983
  };
9967
9984
  }
9968
9985
  function i(p) {
9969
- return isFunction$2(p) ? (r.addEventListener(t.formID, "beforeOk", p), onUnmounted(() => r.removeEventListener(t.formID, "beforeOk", p)), () => r.removeEventListener(t.formID, "beforeOk", p)) : () => {
9986
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "afterValidate", p), onUnmounted(() => r.removeEventListener(t.formID, "afterValidate", p)), () => r.removeEventListener(t.formID, "afterValidate", p)) : () => {
9970
9987
  };
9971
9988
  }
9972
9989
  function s(p) {
9973
- return isFunction$2(p) ? (r.addEventListener(t.formID, "afterValidate", p), onUnmounted(() => r.removeEventListener(t.formID, "afterValidate", p)), () => r.removeEventListener(t.formID, "afterValidate", p)) : () => {
9990
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "beforeRequest", p), onUnmounted(() => r.removeEventListener(t.formID, "beforeRequest", p)), () => r.removeEventListener(t.formID, "beforeRequest", p)) : () => {
9974
9991
  };
9975
9992
  }
9976
9993
  function l(p) {
9977
- return isFunction$2(p) ? (r.addEventListener(t.formID, "beforeRequest", p), onUnmounted(() => r.removeEventListener(t.formID, "beforeRequest", p)), () => r.removeEventListener(t.formID, "beforeRequest", p)) : () => {
9994
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "ok", p), onUnmounted(() => r.removeEventListener(t.formID, "ok", p)), () => r.removeEventListener(t.formID, "ok", p)) : () => {
9978
9995
  };
9979
9996
  }
9980
9997
  function u(p) {
9981
- return isFunction$2(p) ? (r.addEventListener(t.formID, "ok", p), onUnmounted(() => r.removeEventListener(t.formID, "ok", p)), () => r.removeEventListener(t.formID, "ok", p)) : () => {
9998
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "error", p), onUnmounted(() => r.removeEventListener(t.formID, "error", p)), () => r.removeEventListener(t.formID, "error", p)) : () => {
9999
+ };
10000
+ }
10001
+ function c(p) {
10002
+ return isFunction$2(p) ? (r.addEventListener(t.formID, "close", p), onUnmounted(() => r.removeEventListener(t.formID, "close", p)), () => r.removeEventListener(t.formID, "close", p)) : () => {
9982
10003
  };
9983
10004
  }
9984
- const c = computed(() => {
9985
- var E, $, M, I, O;
10005
+ const g = computed(() => {
10006
+ var $, M, I, O, F;
9986
10007
  let p = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9987
- const _ = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, v = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (E = a.value) == null ? void 0 : E.display_type, C = ($ = a.value) == null ? void 0 : $.crt_display_type, k = (M = a.value) == null ? void 0 : M.upt_display_type, T = (I = a.value) == null ? void 0 : I.cpy_display_type, A = (O = a.value) == null ? void 0 : O.del_display_type;
10008
+ const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, y = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, C = ($ = a.value) == null ? void 0 : $.display_type, E = (M = a.value) == null ? void 0 : M.crt_display_type, T = (I = a.value) == null ? void 0 : I.upt_display_type, A = (O = a.value) == null ? void 0 : O.cpy_display_type, k = (F = a.value) == null ? void 0 : F.del_display_type;
9988
10009
  switch (!0) {
9989
- case (t.isCreating.value && (C === _ || !C && y === _)):
9990
- p = _;
10010
+ case (t.isCreating.value && (E === v || !E && C === v)):
10011
+ p = v;
9991
10012
  break;
9992
- case (t.isUpdating.value && (k === _ || !k && y === _)):
9993
- p = _;
10013
+ case (t.isUpdating.value && (T === v || !T && C === v)):
10014
+ p = v;
9994
10015
  break;
9995
- case (t.isCopying.value && (T === _ || !T && y === _)):
9996
- p = _;
10016
+ case (t.isCopying.value && (A === v || !A && C === v)):
10017
+ p = v;
9997
10018
  break;
9998
- case (t.isDeleting.value && (A === _ || !A)):
9999
- p = _;
10019
+ case (t.isDeleting.value && (k === v || !k)):
10020
+ p = v;
10000
10021
  break;
10001
10022
  }
10002
10023
  switch (!0) {
10003
- case (t.isCreating.value && (C === v || !C && y === v)):
10004
- p = v;
10024
+ case (t.isCreating.value && (E === y || !E && C === y)):
10025
+ p = y;
10005
10026
  break;
10006
- case (t.isUpdating.value && (k === v || !k && y === v)):
10007
- p = v;
10027
+ case (t.isUpdating.value && (T === y || !T && C === y)):
10028
+ p = y;
10008
10029
  break;
10009
- case (t.isCopying.value && (T === v || !T && y === v)):
10010
- p = v;
10030
+ case (t.isCopying.value && (A === y || !A && C === y)):
10031
+ p = y;
10011
10032
  break;
10012
10033
  }
10013
10034
  return p;
10014
- }), g = computed(() => {
10035
+ }), m = computed(() => {
10015
10036
  var p;
10016
10037
  return (p = r.getModel(t.formID)) != null ? p : {};
10017
- }), m = r.getFormRef(t.formID), b = r.getRules(t.formID);
10038
+ }), b = r.getFormRef(t.formID), _ = r.getRules(t.formID);
10018
10039
  return {
10019
10040
  formID: t.formID,
10020
10041
  store: r,
10021
- model: g,
10022
- formRef: m,
10023
- rules: b,
10024
- displayType: c,
10042
+ model: m,
10043
+ formRef: b,
10044
+ rules: _,
10045
+ displayType: g,
10025
10046
  onOpen: n,
10026
- onBeforeOk: i,
10027
- onAfterValidate: s,
10028
- onBeforeRequest: l,
10029
- onOk: u,
10030
- onClose: o
10047
+ onBeforeOk: o,
10048
+ onAfterValidate: i,
10049
+ onBeforeRequest: s,
10050
+ onOk: l,
10051
+ onError: u,
10052
+ onClose: c
10031
10053
  };
10032
10054
  }
10033
10055
  const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig", getProps$p = () => ({
@@ -10053,8 +10075,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10053
10075
  }) => {
10054
10076
  const c = o.store.getVarSubmitConfig(o.formID);
10055
10077
  return s = watch(u, (g) => {
10056
- var m, b, p, _, v, y, C, k, T, A, E, $;
10057
- g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 1, g.fullscreen_flg = (p = c == null ? void 0 : c.fullscreen_flg) != null ? p : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (k = c == null ? void 0 : c.dft_width) != null ? k : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = ($ = c == null ? void 0 : c.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10078
+ var m, b, _, p, v, y, C, E, T, A, k, $;
10079
+ g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (p = c == null ? void 0 : c.dft_fullscreen_flg) != null ? p : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = ($ = c == null ? void 0 : c.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10058
10080
  }, {
10059
10081
  immediate: !0
10060
10082
  }), !1;
@@ -10103,7 +10125,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10103
10125
  function b() {
10104
10126
  r("kgCancel");
10105
10127
  }
10106
- function p() {
10128
+ function _() {
10107
10129
  var y;
10108
10130
  return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
10109
10131
  onClick: g,
@@ -10112,7 +10134,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10112
10134
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
10113
10135
  });
10114
10136
  }
10115
- function _() {
10137
+ function p() {
10116
10138
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
10117
10139
  disabled: u.value || l.value,
10118
10140
  onClick: m,
@@ -10132,7 +10154,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10132
10154
  default: () => [createVNode(CloseOutlined$1, null, null)]
10133
10155
  });
10134
10156
  }
10135
- return () => createVNode(Fragment, null, [_(), p(), v()]);
10157
+ return () => createVNode(Fragment, null, [p(), _(), v()]);
10136
10158
  }
10137
10159
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
10138
10160
  function _useFormModel$1() {
@@ -10154,17 +10176,17 @@ function _useFormModel$1() {
10154
10176
  if (u.value = {}, c != null && c.length) {
10155
10177
  const g = r.selectedRow.value;
10156
10178
  c.forEach((m) => {
10157
- var p, _, v, y, C, k, T, A;
10158
- const b = (p = m.var_nam) != null ? p : "";
10179
+ var _, p, v, y, C, E, T, A;
10180
+ const b = (_ = m.var_nam) != null ? _ : "";
10159
10181
  switch (u.value[b] = void 0, !0) {
10160
10182
  case t.isCreating.value:
10161
- u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (_ = m.crt_dft_val) != null ? _ : void 0);
10183
+ u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (p = m.crt_dft_val) != null ? p : void 0);
10162
10184
  break;
10163
10185
  case t.isUpdating.value:
10164
10186
  u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (y = (v = m.upt_dft_val) != null ? v : g == null ? void 0 : g[b]) != null ? y : void 0);
10165
10187
  break;
10166
10188
  case t.isCopying.value:
10167
- u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (k = (C = m.cpy_dft_val) != null ? C : g == null ? void 0 : g[b]) != null ? k : void 0);
10189
+ u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (E = (C = m.cpy_dft_val) != null ? C : g == null ? void 0 : g[b]) != null ? E : void 0);
10168
10190
  break;
10169
10191
  case t.isDeleting.value:
10170
10192
  u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (A = (T = m.del_dft_val) != null ? T : g == null ? void 0 : g[b]) != null ? A : void 0);
@@ -10299,7 +10321,7 @@ function _useDefaultWidth() {
10299
10321
  };
10300
10322
  }
10301
10323
  const KgSubmit$1 = "";
10302
- function _isSlot$7(e) {
10324
+ function _isSlot$8(e) {
10303
10325
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10304
10326
  }
10305
10327
  const getProps$n = () => ({
@@ -10318,13 +10340,13 @@ const getProps$n = () => ({
10318
10340
  o.onSubmitSave(async () => (await K(), !1)), o.onSubmitCancel(async () => (await L(), !1));
10319
10341
  const u = inject(DI_KG_VAR__KG_SLOTS, null);
10320
10342
  _useFormModel$1(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
10321
- const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), p = computed(() => n.store.getVarButtonDelete(n.formID)), _ = computed(() => s.store.isLoading(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), $ = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10343
+ const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), p = computed(() => s.store.isLoading(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), $ = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10322
10344
  var U, z, Q;
10323
10345
  switch (!0) {
10324
10346
  case n.isCreating.value:
10325
10347
  return (U = y.value) != null ? U : [];
10326
10348
  case n.isUpdating.value:
10327
- return (z = k.value) != null ? z : [];
10349
+ return (z = E.value) != null ? z : [];
10328
10350
  case n.isCopying.value:
10329
10351
  return (Q = A.value) != null ? Q : [];
10330
10352
  case n.isDeleting.value:
@@ -10339,25 +10361,25 @@ const getProps$n = () => ({
10339
10361
  case n.isUpdating.value:
10340
10362
  return (z = T.value) != null ? z : [];
10341
10363
  case n.isCopying.value:
10342
- return (Q = E.value) != null ? Q : [];
10364
+ return (Q = k.value) != null ? Q : [];
10343
10365
  case n.isDeleting.value:
10344
10366
  return (re = $.value) != null ? re : [];
10345
10367
  }
10346
10368
  return [];
10347
- }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), F = computed(() => O.value || _.value), w = computed(() => _.value), N = ref({
10369
+ }), 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 || p.value), D = computed(() => p.value), R = ref({
10348
10370
  kgWidth: 0
10349
- }), R = computed(() => {
10371
+ }), P = computed(() => {
10350
10372
  var U;
10351
10373
  return !!(c.value || q.isFullscreen || ((U = v.value) == null ? void 0 : U.resizable_flg) === 0);
10352
- }), D = computed(() => {
10374
+ }), V = computed(() => {
10353
10375
  var U, z;
10354
10376
  return c.value ? 398 : (z = (U = v.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
10355
- }), V = computed(() => {
10377
+ }), w = computed(() => {
10356
10378
  var U, z;
10357
10379
  return c.value ? 398 : (z = (U = v.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
10358
- }), P = computed(() => c.value ? 398 : N.value.kgWidth), B = ref(null);
10380
+ }), N = computed(() => c.value ? 398 : R.value.kgWidth), B = ref(null);
10359
10381
  _useResizeObserver$1(B);
10360
- const x = _useTitle(), G = computed(() => c.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), Y = computed(() => G.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
10382
+ const x = _useTitle(), G = computed(() => c.value ? 400 : R.value.kgWidth && R.value.kgWidth > 0 ? R.value.kgWidth + 2 : 0), Y = computed(() => G.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
10361
10383
  isFullscreen: !1
10362
10384
  }), {
10363
10385
  getClass: Z
@@ -10405,7 +10427,7 @@ const getProps$n = () => ({
10405
10427
  }, {
10406
10428
  immediate: !0
10407
10429
  }), watch(oe, (U) => {
10408
- U && (N.value.kgWidth = U);
10430
+ U && (R.value.kgWidth = U);
10409
10431
  }, {
10410
10432
  immediate: !0
10411
10433
  });
@@ -10426,7 +10448,7 @@ const getProps$n = () => ({
10426
10448
  ((z = v.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10427
10449
  }
10428
10450
  function te() {
10429
- N.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10451
+ R.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10430
10452
  }
10431
10453
  function L() {
10432
10454
  switch (!0) {
@@ -10521,7 +10543,7 @@ const getProps$n = () => ({
10521
10543
  data: de.value
10522
10544
  }), ((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);
10523
10545
  } catch (ee) {
10524
- console.error(ee);
10546
+ console.error(ee), s.store.emit(n.formID, "error", ee);
10525
10547
  } finally {
10526
10548
  n.store.setIsCreatingRequesting(n.formID, !1);
10527
10549
  }
@@ -10557,7 +10579,7 @@ const getProps$n = () => ({
10557
10579
  data: de.value
10558
10580
  }), ((ie = m.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);
10559
10581
  } catch (ee) {
10560
- console.error(ee);
10582
+ console.error(ee), s.store.emit(n.formID, "error", ee);
10561
10583
  } finally {
10562
10584
  n.store.setIsUpdatingRequesting(n.formID, !1);
10563
10585
  }
@@ -10573,7 +10595,7 @@ const getProps$n = () => ({
10573
10595
  }
10574
10596
  try {
10575
10597
  n.store.setIsCopyingRequesting(n.formID, !0);
10576
- let _e = ref(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), he = ref({
10598
+ let me = ref(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), he = ref({
10577
10599
  ...(ae = i.selectedFirstRow.value) != null ? ae : {},
10578
10600
  ...toRaw(s.model.value)
10579
10601
  });
@@ -10585,28 +10607,28 @@ const getProps$n = () => ({
10585
10607
  row: i.selectedRow.value,
10586
10608
  rows: i.selectedRows.value,
10587
10609
  model: s.model,
10588
- params: _e,
10610
+ params: me,
10589
10611
  data: he
10590
10612
  }))
10591
10613
  return;
10592
10614
  await httpClient().request({
10593
10615
  method: (le = (ie = b.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
10594
10616
  url: U,
10595
- params: _e.value,
10617
+ params: me.value,
10596
10618
  data: he.value
10597
10619
  }), ((ue = b.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);
10598
- } catch (_e) {
10599
- console.error(_e);
10620
+ } catch (me) {
10621
+ console.error(me), s.store.emit(n.formID, "error", me);
10600
10622
  } finally {
10601
10623
  n.store.setIsCopyingRequesting(n.formID, !1);
10602
10624
  }
10603
10625
  }
10604
10626
  async function X() {
10605
10627
  var z, Q, re, ae, se, ie, le, ue;
10606
- const U = (z = p.value) == null ? void 0 : z.cmd;
10628
+ const U = (z = _.value) == null ? void 0 : z.cmd;
10607
10629
  if (!U) {
10608
10630
  Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10609
- VarButton: p.value
10631
+ VarButton: _.value
10610
10632
  });
10611
10633
  return;
10612
10634
  }
@@ -10615,7 +10637,7 @@ const getProps$n = () => ({
10615
10637
  let ee = ref({
10616
10638
  ids: (re = (Q = i.selectedRows.value) == null ? void 0 : Q.map((he) => {
10617
10639
  var be, ye, Se;
10618
- return (Se = he[(ye = (be = p.value) == null ? void 0 : be.del_param_clm) != null ? ye : "id"]) != null ? Se : "";
10640
+ return (Se = he[(ye = (be = _.value) == null ? void 0 : be.del_param_clm) != null ? ye : "id"]) != null ? Se : "";
10619
10641
  })) != null ? re : []
10620
10642
  }), de = ref({});
10621
10643
  if (await s.store.emit(n.formID, "beforeRequest", {
@@ -10631,15 +10653,15 @@ const getProps$n = () => ({
10631
10653
  }))
10632
10654
  return;
10633
10655
  await httpClient().request({
10634
- method: (se = (ae = p.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10656
+ method: (se = (ae = _.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10635
10657
  url: U,
10636
10658
  params: ee.value,
10637
10659
  data: de.value
10638
10660
  }, {
10639
10661
  joinParamsToUrl: !0
10640
- }), ((ie = p.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);
10662
+ }), ((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);
10641
10663
  } catch (ee) {
10642
- console.error(ee);
10664
+ console.error(ee), s.store.emit(n.formID, "error", ee);
10643
10665
  } finally {
10644
10666
  n.store.setIsDeletingRequesting(n.formID, !1);
10645
10667
  }
@@ -10675,18 +10697,18 @@ const getProps$n = () => ({
10675
10697
  onKgSubmit: K
10676
10698
  }, null);
10677
10699
  }
10678
- function me() {
10700
+ function _e() {
10679
10701
  let U, z;
10680
10702
  return createVNode(KgResizable, {
10681
10703
  kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10682
- kgMinWidth: D.value,
10683
- kgMaxWidth: V.value,
10684
- kgWidth: P.value,
10685
- kgDisabled: R.value,
10686
- "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
10704
+ kgMinWidth: V.value,
10705
+ kgMaxWidth: w.value,
10706
+ kgWidth: N.value,
10707
+ kgDisabled: P.value,
10708
+ "onUpdate:kgWidth": (Q) => R.value.kgWidth = Q
10687
10709
  }, {
10688
10710
  default: () => [createVNode(Spin, {
10689
- spinning: _.value
10711
+ spinning: p.value
10690
10712
  }, {
10691
10713
  default: () => [createVNode(KgForm, {
10692
10714
  ref: s.formRef,
@@ -10699,11 +10721,11 @@ const getProps$n = () => ({
10699
10721
  ref: B
10700
10722
  }, [M.value.length > 0 && createVNode(Row, {
10701
10723
  gutter: 12
10702
- }, _isSlot$7(U = M.value.map(ce)) ? U : {
10724
+ }, _isSlot$8(U = M.value.map(ce)) ? U : {
10703
10725
  default: () => [U]
10704
10726
  }), M.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
10705
10727
  gutter: 12
10706
- }, _isSlot$7(z = I.value.map(ce)) ? z : {
10728
+ }, _isSlot$8(z = I.value.map(ce)) ? z : {
10707
10729
  default: () => [z]
10708
10730
  }), c.value && createVNode("div", {
10709
10731
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10719,15 +10741,15 @@ const getProps$n = () => ({
10719
10741
  ghost: !F.value,
10720
10742
  disabled: F.value,
10721
10743
  onClick: L
10722
- }, _isSlot$7(U = a.t("kg.cancel")) ? U : {
10744
+ }, _isSlot$8(U = a.t("kg.cancel")) ? U : {
10723
10745
  default: () => [U]
10724
10746
  }), createVNode(Button, {
10725
10747
  type: "primary",
10726
- disabled: w.value,
10748
+ disabled: D.value,
10727
10749
  loading: O.value,
10728
10750
  danger: !!n.isDeleting.value,
10729
10751
  onClick: K
10730
- }, _isSlot$7(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10752
+ }, _isSlot$8(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10731
10753
  default: () => [z]
10732
10754
  })]);
10733
10755
  }
@@ -10760,7 +10782,7 @@ const getProps$n = () => ({
10760
10782
  }, {
10761
10783
  title: Ce,
10762
10784
  extra: Te,
10763
- default: me,
10785
+ default: _e,
10764
10786
  footer: ve
10765
10787
  });
10766
10788
  }
@@ -10934,10 +10956,10 @@ function useKgTable(e) {
10934
10956
  }), b = computed(() => {
10935
10957
  var y, C;
10936
10958
  return (C = (y = t.varGridConfig.value) == null ? void 0 : y.id_clm) != null ? C : "id";
10937
- }), p = computed(() => {
10959
+ }), _ = computed(() => {
10938
10960
  var y, C;
10939
10961
  return JSON.parse((C = (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opts) != null ? C : "[]");
10940
- }), _ = computed(() => {
10962
+ }), p = computed(() => {
10941
10963
  var y;
10942
10964
  return (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opt;
10943
10965
  }), v = computed(() => {
@@ -10956,14 +10978,18 @@ function useKgTable(e) {
10956
10978
  isShowBottomLeft: g,
10957
10979
  isShowBottomRight: m,
10958
10980
  id: b,
10959
- pageSizeOptions: p,
10960
- pageSizeOption: _,
10981
+ pageSizeOptions: _,
10982
+ pageSizeOption: p,
10961
10983
  profileFormID: v,
10962
10984
  onRowDoubleClick: a,
10963
10985
  onRetrieve: n
10964
10986
  };
10965
10987
  }
10966
- const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE", KgTable_Cell = "", getProps$l = () => ({
10988
+ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE", KgTable_Cell = "";
10989
+ function _isSlot$7(e) {
10990
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10991
+ }
10992
+ const getProps$l = () => ({
10967
10993
  kgRow: Object,
10968
10994
  kgValue: [Object, String, Number, Boolean, Date],
10969
10995
  kgVarName: String,
@@ -10980,40 +11006,40 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
10980
11006
  o.onSubmitSave(async () => {
10981
11007
  var T;
10982
11008
  try {
10983
- await ((T = p.value) == null ? void 0 : T.validate());
11009
+ await ((T = _.value) == null ? void 0 : T.validate());
10984
11010
  } catch (A) {
10985
11011
  KgUtil.throwIfNotFormError(A);
10986
11012
  }
10987
11013
  return !1;
10988
11014
  });
10989
11015
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), c = computed(() => {
10990
- var T, A, E, $, M, I;
10991
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && ((E = u.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && (($ = u.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = u.value) == null ? void 0 : I.del_flg) === 1);
11016
+ var T, A, k, $, M, I;
11017
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && ((k = u.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && (($ = u.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = u.value) == null ? void 0 : I.del_flg) === 1);
10992
11018
  }), g = computed(() => {
10993
11019
  var T, A;
10994
11020
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
10995
11021
  }), m = computed(() => {
10996
- var A, E;
11022
+ var A, k;
10997
11023
  let T = "kg-table-td";
10998
- return ((A = l.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), c.value && (T += " kg-table-td--submitting"), T;
11024
+ return ((A = l.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((k = l.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), c.value && (T += " kg-table-td--submitting"), T;
10999
11025
  }), b = computed(() => {
11000
- var A, E, $;
11026
+ var A, k, $, M;
11001
11027
  if (e.kgValue === ID_CREATE)
11002
11028
  return "";
11003
11029
  let T = e.kgValue;
11004
11030
  switch ((A = l.value) == null ? void 0 : A.display_type) {
11005
11031
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11006
11032
  {
11007
- const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11008
- T = ($ = e.kgRow) == null ? void 0 : $[M.dscFieldName || `${e.kgVarName}_dsc`];
11033
+ const I = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11034
+ T = (M = ($ = e.kgRow) == null ? void 0 : $[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11009
11035
  }
11010
11036
  break;
11011
11037
  }
11012
11038
  return isString$1(T) && (T = T.replaceAll("\\n", `
11013
11039
  `)), T;
11014
- }), p = ref(null);
11015
- function _(T) {
11016
- var A, E, $;
11040
+ }), _ = ref(null);
11041
+ function p(T) {
11042
+ var A, k, $;
11017
11043
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11018
11044
  switch ((A = l.value) == null ? void 0 : A.display_type) {
11019
11045
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -11022,7 +11048,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11022
11048
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11023
11049
  {
11024
11050
  T.stopPropagation(), T.preventDefault();
11025
- const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11051
+ const M = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
11026
11052
  ($ = a.router.value) == null || $.push({
11027
11053
  path: M.path,
11028
11054
  query: e.kgRow
@@ -11035,7 +11061,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11035
11061
  }
11036
11062
  function y() {
11037
11063
  return createVNode(KgForm, {
11038
- ref: p,
11064
+ ref: _,
11039
11065
  model: i.model.value,
11040
11066
  layout: "vertical",
11041
11067
  wrapperCol: {
@@ -11055,49 +11081,65 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11055
11081
  });
11056
11082
  }
11057
11083
  function C() {
11058
- var T, A, E, $, M, I, O, F;
11084
+ var T, A, k, $, M, I, O, F, D, R;
11059
11085
  if (c.value)
11060
11086
  return y();
11061
11087
  switch ((T = l.value) == null ? void 0 : T.display_type) {
11062
11088
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11063
- const w = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11089
+ const P = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11064
11090
  return createVNode(KgYesOrNo, {
11065
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = w.yValue) != null ? E : 1),
11066
- kgNilAsFalse: w.nilAsFalse
11091
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = P.yValue) != null ? k : 1),
11092
+ kgNilAsFalse: P.nilAsFalse
11067
11093
  }, null);
11068
11094
  }
11069
11095
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11070
- const w = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), N = isArrayLike(w) && w.find((R) => R.value === e.kgValue);
11071
- return N ? createVNode(Tag, {
11072
- color: (M = N.color) != null ? M : "default"
11073
- }, {
11074
- default: () => [n.t(N.varName).value]
11075
- }) : k();
11096
+ const P = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), V = isArrayLike(P) && P.find((w) => w.value === e.kgValue);
11097
+ if (V) {
11098
+ const w = n.t(V.varName).value;
11099
+ return w ? createVNode(Tag, {
11100
+ color: (M = V.color) != null ? M : "default"
11101
+ }, _isSlot$7(w) ? w : {
11102
+ default: () => [w]
11103
+ }) : E();
11104
+ } else
11105
+ return E();
11106
+ }
11107
+ case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
11108
+ const P = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11109
+ if (P.isTag && isArrayLike(P.tagColors)) {
11110
+ const V = P.tagColors.find((w) => w.value === e.kgValue);
11111
+ return b.value ? createVNode(Tag, {
11112
+ color: (O = V == null ? void 0 : V.color) != null ? O : "default"
11113
+ }, {
11114
+ default: () => [b.value]
11115
+ }) : E();
11116
+ } else
11117
+ return E();
11076
11118
  }
11077
11119
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11078
- const w = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11120
+ const P = KgUtil.tryParseJSON((F = l.value) == null ? void 0 : F.display_type_properties);
11079
11121
  return createVNode(KgProgressA, {
11080
- kgTextWidth: w.textWidth,
11081
- kgLeft: (O = e.kgRow) == null ? void 0 : O[w.leftColumn],
11082
- kgRight: (F = e.kgRow) == null ? void 0 : F[w.rightColumn]
11122
+ kgTextWidth: P.textWidth,
11123
+ kgLeft: (D = e.kgRow) == null ? void 0 : D[P.leftColumn],
11124
+ kgRight: (R = e.kgRow) == null ? void 0 : R[P.rightColumn]
11083
11125
  }, null);
11084
11126
  }
11085
11127
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
11086
11128
  return KgUtil.getFileSize(e.kgValue);
11087
11129
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11088
- return k(!0);
11130
+ return E(!0);
11089
11131
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11090
- return k(!0);
11132
+ return E(!0);
11091
11133
  default:
11092
- return k();
11134
+ return E();
11093
11135
  }
11094
11136
  }
11095
- function k(T = !1) {
11137
+ function E(T = !1) {
11096
11138
  let A = "";
11097
11139
  return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
11098
11140
  innerHTML: b.value,
11099
11141
  class: A,
11100
- onClick: _
11142
+ onClick: p
11101
11143
  }, null);
11102
11144
  }
11103
11145
  return () => createVNode("div", {
@@ -11190,8 +11232,8 @@ const getProps$k = () => ({
11190
11232
  }) => {
11191
11233
  const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11192
11234
  return i = watch(l, (c) => {
11193
- var g, m, b, p, _, v, y, C, k, T, A;
11194
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 0, c.show_check_column_flg = (p = u == null ? void 0 : u.show_check_column_flg) != null ? p : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (k = u == null ? void 0 : u.pg_size_opt) != null ? k : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11235
+ var g, m, b, _, p, v, y, C, E, T, A;
11236
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (p = u == null ? void 0 : u.show_bottom_left_flg) != null ? p : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11195
11237
  }, {
11196
11238
  immediate: !0
11197
11239
  }), !1;
@@ -11380,8 +11422,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11380
11422
  return o.onOpen(async ({
11381
11423
  model: i
11382
11424
  }) => {
11383
- var s, l, u, c, g, m, b, p, _, v;
11384
- return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (c = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", i.value.usr_id = (m = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? m : "", i.value.grp_nam = (p = (b = n.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? p : "", i.value.varGridDetails = (v = (_ = n.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? v : [], !1;
11425
+ var s, l, u, c, g, m, b, _, p, v;
11426
+ return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (c = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", i.value.usr_id = (m = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? m : "", i.value.grp_nam = (_ = (b = n.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? _ : "", i.value.varGridDetails = (v = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? v : [], !1;
11385
11427
  }), o.onBeforeOk(async ({
11386
11428
  model: i
11387
11429
  }) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -11403,17 +11445,17 @@ const KgTableSetting = defineComponent({
11403
11445
  } = _useServices(), s = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
11404
11446
  visible: !1
11405
11447
  }), g = computed(() => !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value), m = ref(!1);
11406
- _useObserveMenuItemColumns(u), watch(u, (k) => {
11407
- k || (s.value = "");
11448
+ _useObserveMenuItemColumns(u), watch(u, (E) => {
11449
+ E || (s.value = "");
11408
11450
  }, {
11409
11451
  immediate: !0
11410
11452
  });
11411
- function b(k) {
11412
- n.store.setVarGridDetailVisible(n.formID, k.var_nam, k.vis_flg === 1 ? 0 : 1);
11453
+ function b(E) {
11454
+ n.store.setVarGridDetailVisible(n.formID, E.var_nam, E.vis_flg === 1 ? 0 : 1);
11413
11455
  }
11414
- async function p() {
11415
- var k;
11416
- if (((k = n.currentVarGridMaster.value) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11456
+ async function _() {
11457
+ var E;
11458
+ if (((E = n.currentVarGridMaster.value) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11417
11459
  KgUtil.confirm({
11418
11460
  content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
11419
11461
  okButtonProps: {
@@ -11431,7 +11473,7 @@ const KgTableSetting = defineComponent({
11431
11473
  })
11432
11474
  }), message.success(a.t("kg.updateSuccess"));
11433
11475
  }
11434
- async function _() {
11476
+ async function p() {
11435
11477
  m.value = !0, await nextTick(), n.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
11436
11478
  }
11437
11479
  function v() {
@@ -11441,7 +11483,7 @@ const KgTableSetting = defineComponent({
11441
11483
  popupClassName: "kg-table-setting-submenu-popup-columns"
11442
11484
  }, {
11443
11485
  default: () => {
11444
- var k;
11486
+ var E;
11445
11487
  return createVNode("div", {
11446
11488
  class: "columns"
11447
11489
  }, [createVNode(Input, {
@@ -11450,7 +11492,7 @@ const KgTableSetting = defineComponent({
11450
11492
  allowClear: !0
11451
11493
  }, null), createVNode("ul", {
11452
11494
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11453
- }, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
11495
+ }, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((T) => createVNode("li", {
11454
11496
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11455
11497
  onClick: (A) => {
11456
11498
  A.preventDefault(), A.stopPropagation(), b(T);
@@ -11481,25 +11523,25 @@ const KgTableSetting = defineComponent({
11481
11523
  }, {
11482
11524
  default: () => {
11483
11525
  var A;
11484
- let k, T;
11485
- return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
11526
+ let E, T;
11527
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((k) => {
11486
11528
  var $;
11487
11529
  return createVNode(Menu.Item, {
11488
- key: E.id,
11489
- class: E.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
11490
- "kg-var-nam": E.grd_var_nam,
11491
- onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
11530
+ key: k.id,
11531
+ class: k.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
11532
+ "kg-var-nam": k.grd_var_nam,
11533
+ onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
11492
11534
  }, {
11493
- default: () => [n.t(E.grd_var_nam).value]
11535
+ default: () => [n.t(k.grd_var_nam).value]
11494
11536
  });
11495
11537
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11496
11538
  key: "save-grid-view",
11497
- onClick: p
11498
- }, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMaster")) ? k : {
11499
- default: () => [k]
11539
+ onClick: _
11540
+ }, _isSlot$5(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11541
+ default: () => [E]
11500
11542
  }), createVNode(Menu.Item, {
11501
11543
  key: "save-grid-view-as",
11502
- onClick: _
11544
+ onClick: p
11503
11545
  }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11504
11546
  default: () => [T]
11505
11547
  })]);
@@ -11508,14 +11550,14 @@ const KgTableSetting = defineComponent({
11508
11550
  });
11509
11551
  }
11510
11552
  function C() {
11511
- let k;
11553
+ let E;
11512
11554
  return createVNode(Menu.Item, {
11513
11555
  key: "config-var-grid-master",
11514
11556
  onClick: () => {
11515
11557
  c.visible = !0;
11516
11558
  }
11517
- }, _isSlot$5(k = a.t("kg.KgTable.config")) ? k : {
11518
- default: () => [k]
11559
+ }, _isSlot$5(E = a.t("kg.KgTable.config")) ? E : {
11560
+ default: () => [E]
11519
11561
  });
11520
11562
  }
11521
11563
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -11528,14 +11570,14 @@ const KgTableSetting = defineComponent({
11528
11570
  overlay: () => createVNode(Menu, {
11529
11571
  triggerSubMenuAction: "click",
11530
11572
  openKeys: l.value,
11531
- "onUpdate:openKeys": (k) => l.value = k,
11573
+ "onUpdate:openKeys": (E) => l.value = E,
11532
11574
  selectable: !1
11533
11575
  }, {
11534
11576
  default: () => [v(), y(), C()]
11535
11577
  })
11536
11578
  }), c.visible && createVNode(KgTableSettingConfigModal, {
11537
11579
  visible: c.visible,
11538
- "onUpdate:visible": (k) => c.visible = k,
11580
+ "onUpdate:visible": (E) => c.visible = E,
11539
11581
  hostFormID: n.formID
11540
11582
  }, null), m.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
11541
11583
  }
@@ -11556,12 +11598,12 @@ function _useColumns() {
11556
11598
  index: b
11557
11599
  }) => b + 1
11558
11600
  }, ...(m = l == null ? void 0 : l.map((b) => {
11559
- const p = b.var_nam;
11560
- function _() {
11601
+ const _ = b.var_nam;
11602
+ function p() {
11561
11603
  return b.width === "auto" ? "auto" : Number(b.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11562
11604
  }
11563
11605
  function v() {
11564
- return e.t(p).value;
11606
+ return e.t(_).value;
11565
11607
  }
11566
11608
  function y() {
11567
11609
  return b.ord === -1 ? null : b.ord === 0 ? "ascend" : b.ord === 1 ? "descend" : null;
@@ -11572,35 +11614,35 @@ function _useColumns() {
11572
11614
  if (b.fix_right_flg === 1)
11573
11615
  return "right";
11574
11616
  }
11575
- function k() {
11617
+ function E() {
11576
11618
  return b.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
11577
11619
  }
11578
11620
  function T() {
11579
11621
  return ["left", "center", "right"].includes(b.align || "") ? b.align : "left";
11580
11622
  }
11581
- const A = _();
11623
+ const A = p();
11582
11624
  return {
11583
- dataIndex: p,
11625
+ dataIndex: _,
11584
11626
  title: v(),
11585
11627
  width: A,
11586
11628
  resizable: typeof A == "number",
11587
11629
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11588
11630
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11589
11631
  fixed: C(),
11590
- sorter: k(),
11632
+ sorter: E(),
11591
11633
  align: T(),
11592
11634
  defaultSortOrder: y(),
11593
11635
  customHeaderCell: () => ({
11594
11636
  "kg-frm-id": e.formID,
11595
- "kg-var-nam": p
11637
+ "kg-var-nam": _
11596
11638
  }),
11597
- customCell: (E) => {
11639
+ customCell: (k) => {
11598
11640
  var M;
11599
- const $ = e.store.getVarSubmitField(e.formID, p);
11641
+ const $ = e.store.getVarSubmitField(e.formID, _);
11600
11642
  return {
11601
11643
  "kg-frm-id": e.formID,
11602
- "kg-var-nam": p,
11603
- class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && E[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!e.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!e.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!e.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
11644
+ "kg-var-nam": _,
11645
+ class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && k[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!e.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!e.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!e.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
11604
11646
  };
11605
11647
  }
11606
11648
  };
@@ -11673,20 +11715,20 @@ const KgTable$1 = "", KgTable = defineComponent({
11673
11715
  });
11674
11716
  const g = ref(!1), m = ref([]), {
11675
11717
  columns: b,
11676
- scrollX: p
11718
+ scrollX: _
11677
11719
  } = _useColumns(), {
11678
- isLoading: _
11720
+ isLoading: p
11679
11721
  } = _useLoading(), v = ref(null);
11680
11722
  _useResizeObserver(v);
11681
11723
  const y = computed(() => {
11682
11724
  var L, K;
11683
11725
  return (K = (L = i.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? K : null;
11684
11726
  }), C = computed(() => {
11685
- var K, H, W, J, X, ce, me;
11727
+ var K, H, W, J, X, ce, _e;
11686
11728
  let L = {
11687
- pageNo: w.pageIndex,
11688
- pageSize: w.pageSize,
11689
- ...N,
11729
+ pageNo: D.pageIndex,
11730
+ pageSize: D.pageSize,
11731
+ ...R,
11690
11732
  ...(H = (K = s.model) == null ? void 0 : K.value) != null ? H : {}
11691
11733
  };
11692
11734
  return i.varButtonSearch.value && (L = {
@@ -11695,15 +11737,15 @@ const KgTable$1 = "", KgTable = defineComponent({
11695
11737
  }), (X = i.varGridConfig.value) != null && X.cmd_prm && (L = {
11696
11738
  ...L,
11697
11739
  ...KgVarUtil.parseCommandParameter((ce = i.varGridConfig.value.cmd_prm) != null ? ce : "")
11698
- }), ((me = i.varGridConfig.value) == null ? void 0 : me.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11699
- }), k = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || w.total === 0), T = computed(() => _.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
11740
+ }), ((_e = i.varGridConfig.value) == null ? void 0 : _e.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11741
+ }), E = computed(() => p.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || D.total === 0), T = computed(() => p.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
11700
11742
  var L;
11701
11743
  return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
11702
- }), E = computed(() => {
11744
+ }), k = computed(() => {
11703
11745
  var L;
11704
11746
  return ((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
11705
11747
  }), $ = computed(() => {
11706
- if (!!E.value)
11748
+ if (!!k.value)
11707
11749
  return {
11708
11750
  fixed: "left",
11709
11751
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
@@ -11724,28 +11766,28 @@ const KgTable$1 = "", KgTable = defineComponent({
11724
11766
  var K;
11725
11767
  let L = "kg-table-bottom";
11726
11768
  return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
11727
- }), O = ref([]), F = ref([]), w = reactive({
11769
+ }), O = ref([]), F = ref([]), D = reactive({
11728
11770
  pageIndex: 1,
11729
11771
  pageSize: 10,
11730
11772
  total: 0
11731
- }), N = reactive({
11773
+ }), R = reactive({
11732
11774
  column: void 0,
11733
11775
  order: void 0
11734
- }), R = watch(u.pageSizeOption, (L) => {
11735
- L && (setTimeout(() => R()), w.pageSize = L), g.value = !0;
11776
+ }), P = watch(u.pageSizeOption, (L) => {
11777
+ L && (setTimeout(() => P()), D.pageSize = L), g.value = !0;
11736
11778
  });
11737
11779
  watch(u.pageSizeOptions, (L) => {
11738
- L.length > 0 && !L.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
11780
+ L.length > 0 && !L.includes(D.pageSize) && (D.pageSize = u.pageSizeOption.value);
11739
11781
  }), watch([y, u.isReadAutomatically, s.isReady], ([L, K, H]) => {
11740
11782
  L && K && H && !u.store.getIsRetrieved(i.formID) && B(!0);
11741
11783
  }, {
11742
11784
  immediate: !0
11743
11785
  }), watch(i.isCreating, (L, K) => {
11744
- L === !0 ? D() : L === !1 && K === !0 && V();
11786
+ L === !0 ? V() : L === !1 && K === !0 && w();
11745
11787
  }), onUnmounted(() => {
11746
11788
  u.store.dispose(i.formID);
11747
11789
  });
11748
- function D() {
11790
+ function V() {
11749
11791
  if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
11750
11792
  const L = {
11751
11793
  [u.id.value]: ID_CREATE
@@ -11753,11 +11795,11 @@ const KgTable$1 = "", KgTable = defineComponent({
11753
11795
  O.value = [L, ...O.value], F.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [L]);
11754
11796
  }
11755
11797
  }
11756
- function V() {
11798
+ function w() {
11757
11799
  const L = O.value.find((K) => K[u.id.value] === ID_CREATE);
11758
11800
  L && (O.value = without$1(O.value, L), F.value = [], u.store.setSelectedRows(i.formID, []));
11759
11801
  }
11760
- function P(L, K) {
11802
+ function N(L, K) {
11761
11803
  if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!$.value) {
11762
11804
  if (!K) {
11763
11805
  F.value = [], u.store.setSelectedRows(i.formID, []);
@@ -11790,7 +11832,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11790
11832
  });
11791
11833
  return;
11792
11834
  }
11793
- L && (w.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11835
+ L && (D.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
11794
11836
  try {
11795
11837
  const X = await httpClient().request({
11796
11838
  method: "GET",
@@ -11801,19 +11843,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11801
11843
  });
11802
11844
  switch (!0) {
11803
11845
  case !X:
11804
- O.value = [], w.total = 0;
11846
+ O.value = [], D.total = 0;
11805
11847
  break;
11806
11848
  case isArrayLike(X):
11807
- O.value = X, w.total = X.length;
11849
+ O.value = X, D.total = X.length;
11808
11850
  break;
11809
11851
  case ("total" in X && "records" in X):
11810
- O.value = (W = X.records) != null ? W : [], w.total = (J = X.total) != null ? J : 0;
11852
+ O.value = (W = X.records) != null ? W : [], D.total = (J = X.total) != null ? J : 0;
11811
11853
  break;
11812
11854
  }
11813
11855
  u.store.emit(i.formID, "retrieve", {
11814
11856
  page: X,
11815
11857
  datas: O
11816
- }), P(), m.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11858
+ }), N(), m.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
11817
11859
  } catch (X) {
11818
11860
  throw X;
11819
11861
  } finally {
@@ -11858,7 +11900,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11858
11900
  {
11859
11901
  await nextTick();
11860
11902
  let X = H;
11861
- X.order ? (N.column = (J = X.field) != null ? J : void 0, N.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), B(!0);
11903
+ X.order ? (R.column = (J = X.field) != null ? J : void 0, R.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), B(!0);
11862
11904
  }
11863
11905
  break;
11864
11906
  }
@@ -11876,7 +11918,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11876
11918
  }
11877
11919
  }
11878
11920
  function ne(L, K) {
11879
- K !== w.pageSize ? (w.pageIndex = 1, w.pageSize = K) : w.pageIndex = L, B();
11921
+ K !== D.pageSize ? (D.pageIndex = 1, D.pageSize = K) : D.pageIndex = L, B();
11880
11922
  }
11881
11923
  function oe(L) {
11882
11924
  F.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((K) => {
@@ -11903,12 +11945,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11903
11945
  default: () => [createVNode(TableSummary.Row, null, {
11904
11946
  default: () => [A.value && createVNode(TableSummary.Cell, {
11905
11947
  index: 0
11906
- }, null), E.value && createVNode(TableSummary.Cell, {
11948
+ }, null), k.value && createVNode(TableSummary.Cell, {
11907
11949
  index: A.value ? 1 : 0
11908
11950
  }, null), b.value.map((K, H) => {
11909
11951
  const W = i.store.getVarGridDetail(i.formID, K.dataIndex);
11910
11952
  let J = H;
11911
- return A.value && E.value ? J += 2 : (A.value || E.value) && (J += 1), createVNode(TableSummary.Cell, {
11953
+ return A.value && k.value ? J += 2 : (A.value || k.value) && (J += 1), createVNode(TableSummary.Cell, {
11912
11954
  index: J
11913
11955
  }, {
11914
11956
  default: () => {
@@ -11931,7 +11973,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11931
11973
  text: W,
11932
11974
  value: J
11933
11975
  }) {
11934
- var me;
11976
+ var _e;
11935
11977
  let X = "";
11936
11978
  L.customRender ? X = L.customRender({
11937
11979
  index: K,
@@ -11947,7 +11989,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11947
11989
  kgVarName: L.dataIndex,
11948
11990
  onKgUpdateLinkClick: () => oe(H)
11949
11991
  }, null);
11950
- if ((me = n == null ? void 0 : n.KgTable) != null && me.bodyCell) {
11992
+ if ((_e = n == null ? void 0 : n.KgTable) != null && _e.bodyCell) {
11951
11993
  const ve = i.store.getVarGridDetail(i.formID, L.dataIndex);
11952
11994
  return n.KgTable.bodyCell({
11953
11995
  column: L,
@@ -11975,20 +12017,20 @@ const KgTable$1 = "", KgTable = defineComponent({
11975
12017
  class: "kg-flex-table",
11976
12018
  size: "small",
11977
12019
  scroll: {
11978
- x: p.value,
12020
+ x: _.value,
11979
12021
  y: "auto"
11980
12022
  },
11981
12023
  pagination: !1,
11982
12024
  showSorterTooltip: !1,
11983
12025
  columns: b.value,
11984
12026
  dataSource: O.value,
11985
- loading: _.value,
12027
+ loading: p.value,
11986
12028
  rowKey: u.id.value,
11987
12029
  rowSelection: $.value,
11988
12030
  expandColumnWidth: 28,
11989
12031
  expandedRowKeys: m.value,
11990
12032
  customRow: (K) => ({
11991
- onClick: (H) => P(H, K)
12033
+ onClick: (H) => N(H, K)
11992
12034
  }),
11993
12035
  onResizeColumn: Y,
11994
12036
  onChange: q,
@@ -12005,7 +12047,7 @@ const KgTable$1 = "", KgTable = defineComponent({
12005
12047
  class: "left"
12006
12048
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
12007
12049
  kgShowClearCheck: F.value.length > 0,
12008
- kgShowClearTable: w.total > 0,
12050
+ kgShowClearTable: D.total > 0,
12009
12051
  kgShowLocate: F.value.length === 1,
12010
12052
  kgTotal: F.value.length,
12011
12053
  kgDisabled: T.value
@@ -12013,14 +12055,14 @@ const KgTable$1 = "", KgTable = defineComponent({
12013
12055
  class: "right"
12014
12056
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
12015
12057
  size: "default",
12016
- current: w.pageIndex,
12017
- pageSize: w.pageSize,
12058
+ current: D.pageIndex,
12059
+ pageSize: D.pageSize,
12018
12060
  pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
12019
- total: w.total,
12061
+ total: D.total,
12020
12062
  showSizeChanger: !0,
12021
12063
  showQuickJumper: !1,
12022
12064
  hideOnSinglePage: !1,
12023
- disabled: k.value,
12065
+ disabled: E.value,
12024
12066
  locale: {
12025
12067
  page: ""
12026
12068
  },
@@ -12054,8 +12096,8 @@ const KgTable$1 = "", KgTable = defineComponent({
12054
12096
  attrs: t
12055
12097
  }) {
12056
12098
  const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
12057
- var c, g, m, b, p, _, v, y;
12058
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) > 1 || ((v = o.value) == null ? void 0 : v.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12099
+ var c, g, m, b, _, p, v, y;
12100
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((v = o.value) == null ? void 0 : v.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12059
12101
  });
12060
12102
  async function s() {
12061
12103
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -12248,8 +12290,8 @@ const KgButtonCreate = defineComponent({
12248
12290
  attrs: a
12249
12291
  }) {
12250
12292
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12251
- var k, T, A, E, $, M, I, O;
12252
- return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((k = u.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((A = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((E = u.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = ($ = s.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((I = u.value) == null ? void 0 : I.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12293
+ var E, T, A, k, $, M, I, O;
12294
+ return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((E = u.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = u.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = ($ = s.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((I = u.value) == null ? void 0 : I.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12253
12295
  }), g = computed(() => !!o.isCreatingRequesting.value);
12254
12296
  async function m() {
12255
12297
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12257,10 +12299,10 @@ const KgButtonCreate = defineComponent({
12257
12299
  function b() {
12258
12300
  i.store.emit(o.formID, "submitSave");
12259
12301
  }
12260
- function p() {
12302
+ function _() {
12261
12303
  i.store.emit(o.formID, "submitCancel");
12262
12304
  }
12263
- function _() {
12305
+ function p() {
12264
12306
  return e.kgIcon ? createVNode("span", {
12265
12307
  class: "anticon"
12266
12308
  }, [createVNode(Icon, {
@@ -12280,7 +12322,7 @@ const KgButtonCreate = defineComponent({
12280
12322
  "kg-var-nam": a["kg-var-nam"],
12281
12323
  "kg-cmd": a["kg-cmd"]
12282
12324
  }, {
12283
- default: () => [_(), v()]
12325
+ default: () => [p(), v()]
12284
12326
  });
12285
12327
  }
12286
12328
  function C() {
@@ -12294,7 +12336,7 @@ const KgButtonCreate = defineComponent({
12294
12336
  type: "primary",
12295
12337
  ghost: !g.value,
12296
12338
  disabled: g.value,
12297
- onClick: p
12339
+ onClick: _
12298
12340
  }, {
12299
12341
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12300
12342
  })]);
@@ -12306,8 +12348,8 @@ const KgButtonCreate = defineComponent({
12306
12348
  props: getProps$f(),
12307
12349
  setup(e) {
12308
12350
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12309
- var u, c, g, m, b, p, _, v;
12310
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((p = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? p : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((v = n.value) == null ? void 0 : v.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12351
+ var u, c, g, m, b, _, p, v;
12352
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((_ = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((v = n.value) == null ? void 0 : v.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12311
12353
  });
12312
12354
  async function i() {
12313
12355
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -12337,29 +12379,29 @@ const KgButtonCreate = defineComponent({
12337
12379
  props: getProps$f(),
12338
12380
  setup(e) {
12339
12381
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12340
- var p, _;
12341
- return o.value ? (_ = (p = o.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
12382
+ var _, p;
12383
+ return o.value ? (p = (_ = o.value) == null ? void 0 : _.cmd) != null ? p : "" : null;
12342
12384
  }), s = computed(() => {
12343
- var p, _;
12344
- return (_ = (p = o.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
12385
+ var _, p;
12386
+ return (p = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? p : "GET";
12345
12387
  }), l = computed(() => {
12346
- var _, v, y, C, k, T;
12347
- let p = {
12348
- ...(_ = a.model.value) != null ? _ : {}
12388
+ var p, v, y, C, E, T;
12389
+ let _ = {
12390
+ ...(p = a.model.value) != null ? p : {}
12349
12391
  };
12350
- return o.value && (p = {
12351
- ...p,
12392
+ return o.value && (_ = {
12393
+ ..._,
12352
12394
  ...KgVarUtil.parseCommandParameter((y = (v = o.value) == null ? void 0 : v.cmd_prm) != null ? y : "")
12353
- }), (C = r.varGridConfig.value) != null && C.cmd_prm && (p = {
12354
- ...p,
12355
- ...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
12356
- }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
12395
+ }), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
12396
+ ..._,
12397
+ ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12398
+ }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12357
12399
  }), u = computed(() => {
12358
- var p, _, v, y, C, k, T, A;
12359
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = o.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12400
+ var _, p, v, y, C, E, T, A;
12401
+ 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 && ((v = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? v : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = o.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12360
12402
  }), c = ref(!1);
12361
12403
  async function g() {
12362
- var p, _, v;
12404
+ var _, p, v;
12363
12405
  if (!(e.onKgClick && await e.onKgClick())) {
12364
12406
  if (!i.value) {
12365
12407
  Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12378,7 +12420,7 @@ const KgButtonCreate = defineComponent({
12378
12420
  joinParamsToUrl: !0,
12379
12421
  isTransformResponse: !1
12380
12422
  });
12381
- KgUtil.downloadFile(y, `${r.t((_ = (p = o.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(v = o.value) == null ? void 0 : v.export_excel_suffix}`);
12423
+ KgUtil.downloadFile(y, `${r.t((p = (_ = o.value) == null ? void 0 : _.export_excel_filename) != null ? p : "export").value}.${(v = o.value) == null ? void 0 : v.export_excel_suffix}`);
12382
12424
  } catch (y) {
12383
12425
  throw y;
12384
12426
  } finally {
@@ -12414,27 +12456,27 @@ const KgButtonCreate = defineComponent({
12414
12456
  attrs: r
12415
12457
  }) {
12416
12458
  const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
12417
- var _, v;
12418
- return s.value ? (v = (_ = s.value) == null ? void 0 : _.cmd) != null ? v : "" : null;
12459
+ var p, v;
12460
+ return s.value ? (v = (p = s.value) == null ? void 0 : p.cmd) != null ? v : "" : null;
12419
12461
  }), u = computed(() => {
12420
- var _, v;
12421
- return (v = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? v : "POST";
12462
+ var p, v;
12463
+ return (v = (p = s.value) == null ? void 0 : p.cmd_method) != null ? v : "POST";
12422
12464
  });
12423
12465
  computed(() => {
12424
12466
  var v, y, C;
12425
- let _ = {
12467
+ let p = {
12426
12468
  ...(v = o.model.value) != null ? v : {}
12427
12469
  };
12428
- return s.value && (_ = {
12429
- ..._,
12470
+ return s.value && (p = {
12471
+ ...p,
12430
12472
  ...KgVarUtil.parseCommandParameter((C = (y = s.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
12431
- }), _;
12473
+ }), p;
12432
12474
  });
12433
12475
  const c = computed(() => {
12434
- var _, v, y, C, k, T, A, E;
12435
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (v = i.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? T : 0) > 1 || ((A = s.value) == null ? void 0 : A.permission_type) === 2 && !a.p((E = s.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12476
+ var p, v, y, C, E, T, A, k;
12477
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((y = (v = i.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((A = s.value) == null ? void 0 : A.permission_type) === 2 && !a.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12436
12478
  }), g = ref(!1);
12437
- async function m(_) {
12479
+ async function m(p) {
12438
12480
  var v, y;
12439
12481
  if (!l.value)
12440
12482
  return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12443,7 +12485,7 @@ const KgButtonCreate = defineComponent({
12443
12485
  g.value = !0;
12444
12486
  try {
12445
12487
  const C = new FormData();
12446
- C.append("file", _), await httpClient().axiosInstance.request({
12488
+ C.append("file", p), await httpClient().axiosInstance.request({
12447
12489
  method: u.value,
12448
12490
  baseURL: window._CONFIG.domianURL,
12449
12491
  url: l.value,
@@ -12467,7 +12509,7 @@ const KgButtonCreate = defineComponent({
12467
12509
  icon: e.kgIcon
12468
12510
  }, null)]) : createVNode(DownloadOutlined$1, null, null);
12469
12511
  }
12470
- function p() {
12512
+ function _() {
12471
12513
  return e.kgText ? e.kgText : a.t("kg.import");
12472
12514
  }
12473
12515
  return () => createVNode(Upload, {
@@ -12483,7 +12525,7 @@ const KgButtonCreate = defineComponent({
12483
12525
  ghost: !e.kgPrimary && !c.value,
12484
12526
  loading: g.value
12485
12527
  }, {
12486
- default: () => [b(), p()]
12528
+ default: () => [b(), _()]
12487
12529
  })]
12488
12530
  });
12489
12531
  }
@@ -12498,8 +12540,8 @@ const KgButtonCreate = defineComponent({
12498
12540
  var m, b;
12499
12541
  return (b = (m = n.value) == null ? void 0 : m.cmd_method) != null ? b : "GET";
12500
12542
  }), s = computed(() => {
12501
- var m, b, p, _, v, y, C, k;
12502
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((p = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? p : 0) === 0 || ((_ = n.value) == null ? void 0 : _.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((k = n.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12543
+ var m, b, _, p, v, y, C, E;
12544
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((_ = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((E = n.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12503
12545
  }), l = ref(!1);
12504
12546
  async function u() {
12505
12547
  var m;
@@ -12554,11 +12596,11 @@ const KgButtonCreate = defineComponent({
12554
12596
  props: getProps$f(),
12555
12597
  setup(e) {
12556
12598
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12557
- var c, g, m, b, p, _, v, y;
12558
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) > 1 || ((v = o.value) == null ? void 0 : v.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12599
+ var c, g, m, b, _, p, v, y;
12600
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((v = o.value) == null ? void 0 : v.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12559
12601
  });
12560
12602
  async function s() {
12561
- var b, p, _;
12603
+ var b, _, p;
12562
12604
  if (e.onKgClick && await e.onKgClick())
12563
12605
  return;
12564
12606
  const c = (b = e.kgButton) == null ? void 0 : b.cmd;
@@ -12570,24 +12612,24 @@ const KgButtonCreate = defineComponent({
12570
12612
  }
12571
12613
  let g = null;
12572
12614
  const m = async () => {
12573
- var y, C, k, T, A, E, $;
12615
+ var y, C, E, T, A, k, $;
12574
12616
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12575
12617
  const v = n.selectedRows.value;
12576
12618
  try {
12577
12619
  await httpClient().request({
12578
12620
  method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
12579
12621
  url: c,
12580
- params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
12622
+ params: KgVarUtil.parseCommandParameter((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""),
12581
12623
  data: v != null ? v : []
12582
- }), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (E = a.search).value) == null || $.call(E, !0));
12624
+ }), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (k = a.search).value) == null || $.call(k, !0));
12583
12625
  } catch (M) {
12584
12626
  console.error(M);
12585
12627
  } finally {
12586
12628
  r.store.setIsOtherRequesting(r.formID, !1), g == null || g.hideLoading();
12587
12629
  }
12588
12630
  };
12589
- if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
12590
- const v = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
12631
+ if (((_ = e.kgButton) == null ? void 0 : _.show_modal_flg) === 1) {
12632
+ const v = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
12591
12633
  typeof v.content == "string" && (v.content = r.t(v.content).value), g = KgUtil.confirm({
12592
12634
  onOk: () => m(),
12593
12635
  ...v
@@ -12665,8 +12707,8 @@ const KgButtonCreate = defineComponent({
12665
12707
  }
12666
12708
  });
12667
12709
  const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12668
- var y, C, k, T, A, E, $, M;
12669
- return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((k = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((E = (A = i.selectedRows.value) == null ? void 0 : A.length) != null ? E : 0) > 1 || (($ = u.value) == null ? void 0 : $.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12710
+ var y, C, E, T, A, k, $, M;
12711
+ return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((E = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (A = i.selectedRows.value) == null ? void 0 : A.length) != null ? k : 0) > 1 || (($ = u.value) == null ? void 0 : $.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12670
12712
  });
12671
12713
  async function g() {
12672
12714
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -12684,10 +12726,10 @@ const KgButtonCreate = defineComponent({
12684
12726
  icon: e.kgIcon
12685
12727
  }, null)]) : createVNode(EditOutlined$1, null, null);
12686
12728
  }
12687
- function p() {
12729
+ function _() {
12688
12730
  return e.kgText ? e.kgText : n.t("kg.update");
12689
12731
  }
12690
- function _() {
12732
+ function p() {
12691
12733
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
12692
12734
  type: "primary",
12693
12735
  disabled: c.value,
@@ -12698,7 +12740,7 @@ const KgButtonCreate = defineComponent({
12698
12740
  "kg-var-nam": a["kg-var-nam"],
12699
12741
  "kg-cmd": a["kg-cmd"]
12700
12742
  }, {
12701
- default: () => [b(), p()]
12743
+ default: () => [b(), _()]
12702
12744
  });
12703
12745
  }
12704
12746
  function v() {
@@ -12714,7 +12756,7 @@ const KgButtonCreate = defineComponent({
12714
12756
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12715
12757
  })]);
12716
12758
  }
12717
- return () => createVNode(Fragment, null, [_(), v()]);
12759
+ return () => createVNode(Fragment, null, [p(), v()]);
12718
12760
  }
12719
12761
  }), KgButton_Item = "";
12720
12762
  function _isSlot$4(e) {
@@ -12790,15 +12832,15 @@ const getProps$e = () => ({
12790
12832
  props: getProps$e(),
12791
12833
  setup(e) {
12792
12834
  const t = inject(DI_KG_VAR__KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgButton(), o = computed(() => !1);
12793
- function i(p) {
12794
- return n.store.emit(a.formID, "click", p);
12835
+ function i(_) {
12836
+ return n.store.emit(a.formID, "click", _);
12795
12837
  }
12796
- function s(p) {
12838
+ function s(_) {
12797
12839
  if (e.kgDisabled)
12798
- return e.kgDisabled(p);
12840
+ return e.kgDisabled(_);
12799
12841
  }
12800
- function l(p) {
12801
- switch (p.primary_flg) {
12842
+ function l(_) {
12843
+ switch (_.primary_flg) {
12802
12844
  case 1:
12803
12845
  return !0;
12804
12846
  case 0:
@@ -12807,37 +12849,37 @@ const getProps$e = () => ({
12807
12849
  return;
12808
12850
  }
12809
12851
  }
12810
- function u(p) {
12811
- if (a.t(p.var_nam).value !== p.var_nam)
12812
- return a.t(p.var_nam).value;
12852
+ function u(_) {
12853
+ if (a.t(_.var_nam).value !== _.var_nam)
12854
+ return a.t(_.var_nam).value;
12813
12855
  }
12814
12856
  function c() {
12815
- var p, _;
12816
- if (!a.varButtons.value || ((p = a.varButtons.value) == null ? void 0 : p.length) === 0)
12857
+ var _, p;
12858
+ if (!a.varButtons.value || ((_ = a.varButtons.value) == null ? void 0 : _.length) === 0)
12817
12859
  return null;
12818
- switch ((_ = a.varGridConfig.value) == null ? void 0 : _.button_display_type) {
12860
+ switch ((p = a.varGridConfig.value) == null ? void 0 : p.button_display_type) {
12819
12861
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
12820
12862
  return b();
12821
12863
  default:
12822
12864
  return m();
12823
12865
  }
12824
12866
  }
12825
- function g(p) {
12867
+ function g(_) {
12826
12868
  return createVNode(KgButtonItem, {
12827
- kgButton: p,
12828
- kgVarName: p.var_nam,
12829
- kgType: p.typ,
12830
- kgIcon: p.icon,
12831
- kgText: u(p),
12832
- kgColor: p.color,
12833
- kgPrimary: l(p),
12834
- kgDisabled: s(p),
12835
- onKgClick: () => i(p)
12869
+ kgButton: _,
12870
+ kgVarName: _.var_nam,
12871
+ kgType: _.typ,
12872
+ kgIcon: _.icon,
12873
+ kgText: u(_),
12874
+ kgColor: _.color,
12875
+ kgPrimary: l(_),
12876
+ kgDisabled: s(_),
12877
+ onKgClick: () => i(_)
12836
12878
  }, null);
12837
12879
  }
12838
12880
  function m() {
12839
- var p;
12840
- return (p = a.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => g(_));
12881
+ var _;
12882
+ return (_ = a.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
12841
12883
  }
12842
12884
  function b() {
12843
12885
  return createVNode(Dropdown, {
@@ -12851,8 +12893,8 @@ const getProps$e = () => ({
12851
12893
  }),
12852
12894
  overlay: () => createVNode(Menu, null, {
12853
12895
  default: () => {
12854
- var p, _;
12855
- return [(_ = (p = a.varButtons.value) == null ? void 0 : p.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((v) => !(v.permission_type !== 2 && !r.p(v.permission_code))).map((v) => {
12896
+ var _, p;
12897
+ return [(p = (_ = a.varButtons.value) == null ? void 0 : _.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((v) => !(v.permission_type !== 2 && !r.p(v.permission_code))).map((v) => {
12856
12898
  let y;
12857
12899
  return createVNode(Menu.Item, null, _isSlot$3(y = g(v)) ? y : {
12858
12900
  default: () => [y]
@@ -12869,8 +12911,8 @@ const getProps$e = () => ({
12869
12911
  spinning: o.value
12870
12912
  }, {
12871
12913
  default: () => {
12872
- var p, _;
12873
- return [c(), (_ = (p = t == null ? void 0 : t.KgButton) == null ? void 0 : p.right) == null ? void 0 : _.call(p)];
12914
+ var _, p;
12915
+ return [c(), (p = (_ = t == null ? void 0 : t.KgButton) == null ? void 0 : _.right) == null ? void 0 : p.call(_)];
12874
12916
  }
12875
12917
  })]);
12876
12918
  }
@@ -13278,19 +13320,19 @@ const leftVarProfileDetailColumns = (e) => {
13278
13320
  }) {
13279
13321
  const r = useKg(), a = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), n = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), i = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), s = useKgVar(e.hostFormID);
13280
13322
  i.onOpen(async ({
13281
- isCreating: p,
13282
- isUpdating: _,
13323
+ isCreating: _,
13324
+ isUpdating: p,
13283
13325
  isCopying: v,
13284
13326
  row: y,
13285
13327
  model: C
13286
13328
  }) => {
13287
- var T, A, E;
13288
- const k = s.store.getSystemVarProfileDetails(s.formID);
13289
- switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13290
- case p:
13329
+ var T, A, k;
13330
+ const E = s.store.getSystemVarProfileDetails(s.formID);
13331
+ switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
13332
+ case _:
13291
13333
  u.value = [];
13292
13334
  break;
13293
- case _:
13335
+ case p:
13294
13336
  case v:
13295
13337
  if (y != null && y.id)
13296
13338
  try {
@@ -13302,7 +13344,7 @@ const leftVarProfileDetailColumns = (e) => {
13302
13344
  });
13303
13345
  l.value = l.value.map((I) => {
13304
13346
  var F;
13305
- const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((w) => w.var_nam === I.var_nam);
13347
+ const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((D) => D.var_nam === I.var_nam);
13306
13348
  return O ? {
13307
13349
  ...I,
13308
13350
  ...O,
@@ -13322,29 +13364,29 @@ const leftVarProfileDetailColumns = (e) => {
13322
13364
  }
13323
13365
  switch (!0) {
13324
13366
  case v:
13325
- C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
13367
+ C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13326
13368
  break;
13327
13369
  }
13328
13370
  return !1;
13329
13371
  }), i.onBeforeOk(async ({
13330
- model: p
13372
+ model: _
13331
13373
  }) => {
13332
13374
  var v, y;
13333
- const _ = p.value;
13334
- return _.frm_id = s.formID, _.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
13375
+ const p = _.value;
13376
+ return p.frm_id = s.formID, p.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
13335
13377
  }), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
13336
- row: p
13337
- }) => (p == null ? void 0 : p.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
13378
+ row: _
13379
+ }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
13338
13380
  KgUtil.confirm({
13339
13381
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
13340
13382
  okButtonProps: {
13341
13383
  danger: !1
13342
13384
  },
13343
13385
  onOk: () => {
13344
- a.store.setIsCopying(a.formID, !0), _(!0);
13386
+ a.store.setIsCopying(a.formID, !0), p(!0);
13345
13387
  },
13346
13388
  onCancel: () => {
13347
- _(!0);
13389
+ p(!0);
13348
13390
  }
13349
13391
  });
13350
13392
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (s.store.retrieve(s.formID), Promise.resolve(!1)));
@@ -13352,12 +13394,12 @@ const leftVarProfileDetailColumns = (e) => {
13352
13394
  KgSubmit: {
13353
13395
  "KgForm.Item": {
13354
13396
  varProfileDetails: ({
13355
- varName: p,
13356
- props: _,
13397
+ varName: _,
13398
+ props: p,
13357
13399
  model: v,
13358
13400
  varVariableConfig: y,
13359
13401
  varProfileDetail: C,
13360
- varSubmitField: k
13402
+ varSubmitField: E
13361
13403
  }) => createVNode(Transfer, {
13362
13404
  dataSource: l.value,
13363
13405
  targetKeys: u.value,
@@ -13367,14 +13409,14 @@ const leftVarProfileDetailColumns = (e) => {
13367
13409
  showSelectAll: !1,
13368
13410
  searchPlaceholder: " ",
13369
13411
  filterOption: (T, A) => {
13370
- var E;
13371
- return !!((E = A.var_nam) != null && E.includes(T));
13412
+ var k;
13413
+ return !!((k = A.var_nam) != null && k.includes(T));
13372
13414
  }
13373
13415
  }, {
13374
13416
  children: ({
13375
13417
  direction: T,
13376
13418
  filteredItems: A,
13377
- selectedKeys: E,
13419
+ selectedKeys: k,
13378
13420
  disabled: $,
13379
13421
  onItemSelectAll: M,
13380
13422
  onItemSelect: I
@@ -13390,11 +13432,11 @@ const leftVarProfileDetailColumns = (e) => {
13390
13432
  rowKey: "id",
13391
13433
  dataSource: A,
13392
13434
  customRow: (O) => ({
13393
- onClick: (F) => b(F, O, T, E)
13435
+ onClick: (F) => b(F, O, T, k)
13394
13436
  }),
13395
13437
  rowSelection: g({
13396
13438
  disabled: $,
13397
- selectedKeys: E,
13439
+ selectedKeys: k,
13398
13440
  onItemSelectAll: M,
13399
13441
  onItemSelect: I
13400
13442
  })
@@ -13407,51 +13449,51 @@ const leftVarProfileDetailColumns = (e) => {
13407
13449
  m();
13408
13450
  });
13409
13451
  const g = ({
13410
- disabled: p,
13411
- selectedKeys: _,
13452
+ disabled: _,
13453
+ selectedKeys: p,
13412
13454
  onItemSelectAll: v,
13413
13455
  onItemSelect: y
13414
13456
  }) => ({
13415
13457
  getCheckboxProps: (C) => ({
13416
- disabled: p || C.disabled
13458
+ disabled: _ || C.disabled
13417
13459
  }),
13418
- onSelectAll(C, k) {
13419
- const T = k.filter((A) => !A.disabled).map(({
13460
+ onSelectAll(C, E) {
13461
+ const T = E.filter((A) => !A.disabled).map(({
13420
13462
  key: A
13421
13463
  }) => A);
13422
13464
  v(T, C);
13423
13465
  },
13424
13466
  onSelect({
13425
13467
  key: C
13426
- }, k) {
13427
- y(C, k);
13468
+ }, E) {
13469
+ y(C, E);
13428
13470
  },
13429
- selectedRowKeys: _,
13471
+ selectedRowKeys: p,
13430
13472
  columnWidth: 32
13431
13473
  });
13432
13474
  async function m() {
13433
- const p = watch(n.isReady, async (_) => {
13475
+ const _ = watch(n.isReady, async (p) => {
13434
13476
  var v, y;
13435
- _ && n.model.value && (setTimeout(() => p(), 0), n.store.patchModel(a.formID, {
13477
+ p && n.model.value && (setTimeout(() => _(), 0), n.store.patchModel(a.formID, {
13436
13478
  frm_id: e.hostFormID
13437
13479
  }), (y = (v = n.search).value) == null || y.call(v));
13438
13480
  }, {
13439
13481
  immediate: !0
13440
13482
  });
13441
13483
  }
13442
- function b(p, _, v, y) {
13443
- if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
13444
- switch (y.length = 0, p.detail) {
13484
+ function b(_, p, v, y) {
13485
+ if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
13486
+ switch (y.length = 0, _.detail) {
13445
13487
  case 1:
13446
- y[0] = _.id;
13488
+ y[0] = p.id;
13447
13489
  break;
13448
13490
  case 2:
13449
13491
  switch (v) {
13450
13492
  case "left":
13451
- u.value.push(_.id);
13493
+ u.value.push(p.id);
13452
13494
  break;
13453
13495
  case "right":
13454
- u.value = without$1(u.value, _.id);
13496
+ u.value = without$1(u.value, p.id);
13455
13497
  break;
13456
13498
  }
13457
13499
  break;
@@ -13609,18 +13651,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13609
13651
  kgHeight: g.value
13610
13652
  });
13611
13653
  _useLayoutHeaderResizeObserver(), _useFormModel(m, b), computed(() => a.store.getVarProfileConfig(a.formID));
13612
- const p = computed(() => {
13613
- var V, P;
13614
- return !!(o.isRetrieving.value || ((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) === 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13615
- }), _ = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), v = computed(() => !!o.isRetrieving.value), y = ref({
13654
+ const _ = computed(() => {
13655
+ var w, N;
13656
+ return !!(o.isRetrieving.value || ((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) === 2 && !r.p((N = a.varButtonSearch.value) == null ? void 0 : N.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13657
+ }), p = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), v = computed(() => !!o.isRetrieving.value), y = ref({
13616
13658
  visible: !1
13617
- }), C = computed(() => b.value.kgHeight === g.value), k = computed(() => {
13618
- var V, P, B;
13619
- if (a.t((V = a.varButtonSearch.value) == null ? void 0 : V.var_nam).value !== ((P = a.varButtonSearch.value) == null ? void 0 : P.var_nam))
13659
+ }), C = computed(() => b.value.kgHeight === g.value), E = computed(() => {
13660
+ var w, N, B;
13661
+ if (a.t((w = a.varButtonSearch.value) == null ? void 0 : w.var_nam).value !== ((N = a.varButtonSearch.value) == null ? void 0 : N.var_nam))
13620
13662
  return a.t((B = a.varButtonSearch.value) == null ? void 0 : B.var_nam).value;
13621
13663
  }), T = computed(() => {
13622
- var V;
13623
- switch ((V = a.varButtonSearch.value) == null ? void 0 : V.primary_flg) {
13664
+ var w;
13665
+ switch ((w = a.varButtonSearch.value) == null ? void 0 : w.primary_flg) {
13624
13666
  case 1:
13625
13667
  return !0;
13626
13668
  case 0:
@@ -13628,34 +13670,34 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13628
13670
  default:
13629
13671
  return !0;
13630
13672
  }
13631
- }), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
13632
- let V = "kg-search";
13633
- return i.value && (V += " kg-search--visible"), l.value && (V += " kg-search--teleport"), V;
13673
+ }), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), k = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
13674
+ let w = "kg-search";
13675
+ return i.value && (w += " kg-search--visible"), l.value && (w += " kg-search--teleport"), w;
13634
13676
  });
13635
13677
  onUnmounted(() => {
13636
13678
  n.store.dispose(a.formID);
13637
13679
  });
13638
- function M(V = !1) {
13639
- p.value || (i.value ? m.value && m.value.validate().then(() => {
13680
+ function M(w = !1) {
13681
+ _.value || (i.value ? m.value && m.value.validate().then(() => {
13640
13682
  n.store.emit(a.formID, "search", {
13641
- resetPageIndex: V
13683
+ resetPageIndex: w
13642
13684
  });
13643
- }).catch((P) => {
13685
+ }).catch((N) => {
13644
13686
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13645
- e: P
13687
+ e: N
13646
13688
  });
13647
13689
  }) : n.store.emit(a.formID, "search", {
13648
- resetPageIndex: V
13690
+ resetPageIndex: w
13649
13691
  }));
13650
13692
  }
13651
13693
  n.store.setSearchFn(a.formID, M);
13652
13694
  function I() {
13653
- var V;
13654
- (V = m.value) == null || V.resetFields(), i.value ? m.value && m.value.validate().then(() => {
13695
+ var w;
13696
+ (w = m.value) == null || w.resetFields(), i.value ? m.value && m.value.validate().then(() => {
13655
13697
  n.store.emit(a.formID, "reset");
13656
- }).catch((P) => {
13698
+ }).catch((N) => {
13657
13699
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13658
- e: P
13700
+ e: N
13659
13701
  });
13660
13702
  }) : n.store.emit(a.formID, "reset");
13661
13703
  }
@@ -13664,23 +13706,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13664
13706
  return M(!0), Promise.resolve(!0);
13665
13707
  }
13666
13708
  function F() {
13667
- var V;
13709
+ var w;
13668
13710
  return createVNode("div", {
13669
13711
  class: "title",
13670
- onClick: D
13671
- }, [((V = t == null ? void 0 : t.KgSearch) == null ? void 0 : V.left) && createVNode("div", {
13712
+ onClick: V
13713
+ }, [((w = t == null ? void 0 : t.KgSearch) == null ? void 0 : w.left) && createVNode("div", {
13672
13714
  class: "kg-search-title-left",
13673
- onClick: (P) => {
13674
- P.stopPropagation(), P.preventDefault();
13715
+ onClick: (N) => {
13716
+ N.stopPropagation(), N.preventDefault();
13675
13717
  }
13676
13718
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13677
13719
  }
13678
- function w() {
13679
- var V, P, B, x;
13680
- return ((B = (P = (V = a.varProfileMasters) == null ? void 0 : V.value) == null ? void 0 : P.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13720
+ function D() {
13721
+ var w, N, B, x;
13722
+ return ((B = (N = (w = a.varProfileMasters) == null ? void 0 : w.value) == null ? void 0 : N.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13681
13723
  value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
13682
13724
  "onUpdate:value": (G) => a.store.setCurrentVarProfileMasterID(a.formID, G),
13683
- disabled: _.value,
13725
+ disabled: p.value,
13684
13726
  class: "kg-search-profile-master-select"
13685
13727
  }, {
13686
13728
  default: () => {
@@ -13693,7 +13735,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13693
13735
  },
13694
13736
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
13695
13737
  }), createVNode(Button, {
13696
- disabled: _.value,
13738
+ disabled: p.value,
13697
13739
  onClick: () => {
13698
13740
  y.value.visible = !0;
13699
13741
  },
@@ -13706,12 +13748,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13706
13748
  hostFormID: a.formID
13707
13749
  }, null)]);
13708
13750
  }
13709
- function N() {
13710
- var V, P, B, x, G;
13711
- return createVNode(Fragment, null, [w(), !(((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) !== 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code)) && createVNode(Button, {
13751
+ function R() {
13752
+ var w, N, B, x, G;
13753
+ return createVNode(Fragment, null, [D(), !(((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) !== 2 && !r.p((N = a.varButtonSearch.value) == null ? void 0 : N.permission_code)) && createVNode(Button, {
13712
13754
  type: "primary",
13713
- ghost: !p.value,
13714
- disabled: p.value,
13755
+ ghost: !_.value,
13756
+ disabled: _.value,
13715
13757
  onClick: I,
13716
13758
  class: "kg-search-btn-reset"
13717
13759
  }, {
@@ -13720,29 +13762,29 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13720
13762
  kgType: KG_BUTTON_TYPE.SEARCH,
13721
13763
  kgVarName: (B = a.varButtonSearch.value) == null ? void 0 : B.var_nam,
13722
13764
  kgIcon: (x = a.varButtonSearch.value) == null ? void 0 : x.icon,
13723
- kgText: k.value,
13765
+ kgText: E.value,
13724
13766
  kgColor: (G = a.varButtonSearch.value) == null ? void 0 : G.color,
13725
13767
  kgPrimary: T.value,
13726
13768
  kgLoading: v.value,
13727
13769
  onKgClick: O
13728
13770
  }, null)]);
13729
13771
  }
13730
- function R() {
13772
+ function P() {
13731
13773
  return createVNode(Spin, {
13732
- spinning: E.value
13774
+ spinning: k.value
13733
13775
  }, {
13734
13776
  default: () => {
13735
- var V;
13777
+ var w;
13736
13778
  return [createVNode(KgForm, {
13737
13779
  ref: m,
13738
- model: (V = n.model.value) != null ? V : {}
13780
+ model: (w = n.model.value) != null ? w : {}
13739
13781
  }, {
13740
13782
  default: () => [createVNode(Row, {
13741
13783
  gutter: 6
13742
13784
  }, {
13743
13785
  default: () => {
13744
- var P;
13745
- return [(P = a.currentVarProfileDetails.value) == null ? void 0 : P.map((B) => createVNode(KgForm.Item, {
13786
+ var N;
13787
+ return [(N = a.currentVarProfileDetails.value) == null ? void 0 : N.map((B) => createVNode(KgForm.Item, {
13746
13788
  kgVarName: B.var_nam,
13747
13789
  kgContext: KG_FORM_CONTEXT.SEARCH,
13748
13790
  onKgSubmit: () => M(!0)
@@ -13753,12 +13795,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13753
13795
  }
13754
13796
  });
13755
13797
  }
13756
- function D() {
13798
+ function V() {
13757
13799
  C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
13758
13800
  }
13759
13801
  return () => createVNode(KgResizable, {
13760
13802
  kgHeight: b.value.kgHeight,
13761
- "onUpdate:kgHeight": (V) => b.value.kgHeight = V,
13803
+ "onUpdate:kgHeight": (w) => b.value.kgHeight = w,
13762
13804
  kgMinHeight: g.value,
13763
13805
  kgMaxHeight: c.value,
13764
13806
  kgDisabled: !s.value,
@@ -13780,13 +13822,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13780
13822
  }, {
13781
13823
  default: () => [F(), createVNode("div", {
13782
13824
  class: "ant-collapse-extra"
13783
- }, [N()])]
13825
+ }, [R()])]
13784
13826
  })])]
13785
13827
  }), createVNode("div", {
13786
13828
  class: "ant-collapse-content ant-collapse-content-active"
13787
13829
  }, [createVNode("div", {
13788
13830
  class: "ant-collapse-content-box"
13789
- }, [R()])])])])]
13831
+ }, [P()])])])])]
13790
13832
  });
13791
13833
  }
13792
13834
  });
@@ -13843,39 +13885,39 @@ function useMagicKeys(e = {}) {
13843
13885
  } = e, i = reactive(/* @__PURE__ */ new Set()), s = { toJSON() {
13844
13886
  return {};
13845
13887
  }, current: i }, l = t ? reactive(s) : s, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13846
- function g(_, v) {
13847
- _ in l && (t ? l[_] = v : l[_].value = v);
13888
+ function g(p, v) {
13889
+ p in l && (t ? l[p] = v : l[p].value = v);
13848
13890
  }
13849
13891
  function m() {
13850
- for (const _ of c)
13851
- g(_, !1);
13892
+ for (const p of c)
13893
+ g(p, !1);
13852
13894
  }
13853
- function b(_, v) {
13895
+ function b(p, v) {
13854
13896
  var y, C;
13855
- const k = (y = _.key) == null ? void 0 : y.toLowerCase(), T = (C = _.code) == null ? void 0 : C.toLowerCase(), A = [T, k].filter(Boolean);
13856
- T && (v ? i.add(_.code) : i.delete(_.code));
13857
- for (const E of A)
13858
- c.add(E), g(E, v);
13859
- k === "meta" && !v ? (u.forEach((E) => {
13860
- i.delete(E), g(E, !1);
13861
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...i, ...A].forEach((E) => u.add(E));
13862
- }
13863
- r && (useEventListener(r, "keydown", (_) => (b(_, !0), o(_)), { passive: n }), useEventListener(r, "keyup", (_) => (b(_, !1), o(_)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
13864
- const p = new Proxy(l, {
13865
- get(_, v, y) {
13897
+ const E = (y = p.key) == null ? void 0 : y.toLowerCase(), T = (C = p.code) == null ? void 0 : C.toLowerCase(), A = [T, E].filter(Boolean);
13898
+ T && (v ? i.add(p.code) : i.delete(p.code));
13899
+ for (const k of A)
13900
+ c.add(k), g(k, v);
13901
+ E === "meta" && !v ? (u.forEach((k) => {
13902
+ i.delete(k), g(k, !1);
13903
+ }), u.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && v && [...i, ...A].forEach((k) => u.add(k));
13904
+ }
13905
+ r && (useEventListener(r, "keydown", (p) => (b(p, !0), o(p)), { passive: n }), useEventListener(r, "keyup", (p) => (b(p, !1), o(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
13906
+ const _ = new Proxy(l, {
13907
+ get(p, v, y) {
13866
13908
  if (typeof v != "string")
13867
- return Reflect.get(_, v, y);
13909
+ return Reflect.get(p, v, y);
13868
13910
  if (v = v.toLowerCase(), v in a && (v = a[v]), !(v in l))
13869
13911
  if (/[+_-]/.test(v)) {
13870
- const k = v.split(/[+_-]/g).map((T) => T.trim());
13871
- l[v] = computed(() => k.every((T) => unref(p[T])));
13912
+ const E = v.split(/[+_-]/g).map((T) => T.trim());
13913
+ l[v] = computed(() => E.every((T) => unref(_[T])));
13872
13914
  } else
13873
13915
  l[v] = ref(!1);
13874
- const C = Reflect.get(_, v, y);
13916
+ const C = Reflect.get(p, v, y);
13875
13917
  return t ? unref(C) : C;
13876
13918
  }
13877
13919
  });
13878
- return p;
13920
+ return _;
13879
13921
  }
13880
13922
  var SwipeDirection;
13881
13923
  (function(e) {
@@ -14257,112 +14299,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14257
14299
  columnWidth: 32,
14258
14300
  hideSelectAll: !0,
14259
14301
  selectedRowKeys: g,
14260
- onSelect: (w) => $(w)
14302
+ onSelect: (D) => $(D)
14261
14303
  }), b = ref({
14262
14304
  visible: !1
14263
- }), p = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), _ = computed(() => {
14264
- var w;
14265
- return !!c.value || ((w = a.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14305
+ }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), p = computed(() => {
14306
+ var D;
14307
+ return !!c.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14266
14308
  }), v = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14267
- watch(() => a.getSelectedVar, (w) => {
14268
- w ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14309
+ watch(() => a.getSelectedVar, (D) => {
14310
+ D ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14269
14311
  }, {
14270
14312
  immediate: !0
14271
- }), watch(() => a.getSelectedVarCatalog, async (w) => {
14272
- var N, R;
14273
- l.value.var_text = (N = w == null ? void 0 : w.var_text) != null ? N : "", (R = s.value) == null || R.clearValidate();
14313
+ }), watch(() => a.getSelectedVarCatalog, async (D) => {
14314
+ var R, P;
14315
+ l.value.var_text = (R = D == null ? void 0 : D.var_text) != null ? R : "", (P = s.value) == null || P.clearValidate();
14274
14316
  });
14275
- async function C(w = !1) {
14276
- var N, R, D;
14317
+ async function C(D = !1) {
14318
+ var R, P, V;
14277
14319
  n.value = !0;
14278
14320
  try {
14279
14321
  const {
14280
- records: V
14322
+ records: w
14281
14323
  } = await List({
14282
14324
  params: {
14283
14325
  pageNo: 1,
14284
14326
  pageSize: 999,
14285
14327
  frm_id: e == null ? void 0 : e.value,
14286
- var_nam: (N = a.getSelectedVar) == null ? void 0 : N.var_nam,
14328
+ var_nam: (R = a.getSelectedVar) == null ? void 0 : R.var_nam,
14287
14329
  column: "frm_id,locale_id,cust_lvl",
14288
14330
  order: "asc"
14289
14331
  }
14290
14332
  });
14291
- if (c.value = null, u.value = V != null ? V : [], w) {
14292
- const P = u.value.find((B) => {
14333
+ if (c.value = null, u.value = w != null ? w : [], D) {
14334
+ const N = u.value.find((B) => {
14293
14335
  var x;
14294
14336
  return B.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
14295
14337
  });
14296
- a.setSelectedVarCatalog(P != null ? P : null), g.value = P != null && P.id ? [P.id] : [];
14338
+ a.setSelectedVarCatalog(N != null ? N : null), g.value = N != null && N.id ? [N.id] : [];
14297
14339
  } else
14298
- a.setSelectedVarCatalog((R = u.value[0]) != null ? R : null), g.value = (D = u.value[0]) != null && D.id ? [u.value[0].id] : [];
14299
- } catch (V) {
14300
- Logger.debug(V == null ? void 0 : V.message);
14340
+ a.setSelectedVarCatalog((P = u.value[0]) != null ? P : null), g.value = (V = u.value[0]) != null && V.id ? [u.value[0].id] : [];
14341
+ } catch (w) {
14342
+ Logger.debug(w == null ? void 0 : w.message);
14301
14343
  } finally {
14302
14344
  n.value = !1;
14303
14345
  }
14304
14346
  }
14305
- async function k() {
14306
- var w, N, R;
14347
+ async function E() {
14348
+ var D, R, P;
14307
14349
  try {
14308
- o.value = !0, await ((w = s.value) == null ? void 0 : w.validate());
14309
- const D = new VarCatalog({
14310
- ...(N = a.getSelectedVarCatalog) != null ? N : {},
14311
- var_text: (R = l.value) == null ? void 0 : R.var_text
14350
+ o.value = !0, await ((D = s.value) == null ? void 0 : D.validate());
14351
+ const V = new VarCatalog({
14352
+ ...(R = a.getSelectedVarCatalog) != null ? R : {},
14353
+ var_text: (P = l.value) == null ? void 0 : P.var_text
14312
14354
  });
14313
- D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
14314
- data: D
14355
+ V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
14356
+ data: V
14315
14357
  }, {
14316
14358
  successMessageMode: "none"
14317
14359
  }), message.success({
14318
14360
  content: t.t("kg.KgVarConfig.createSuccess")
14319
14361
  }), await C()) : (await Edit({
14320
- data: D
14362
+ data: V
14321
14363
  }, {
14322
14364
  successMessageMode: "none"
14323
14365
  }), message.success({
14324
14366
  content: t.t("kg.KgVarConfig.saveSuccess")
14325
14367
  }), await C(!0)) : (await Add({
14326
- data: D
14368
+ data: V
14327
14369
  }, {
14328
14370
  successMessageMode: "none"
14329
14371
  }), message.success({
14330
14372
  content: t.t("kg.KgVarConfig.createSuccess")
14331
14373
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
14332
- } catch (D) {
14333
- KgUtil.throwIfNotFormError(D);
14374
+ } catch (V) {
14375
+ KgUtil.throwIfNotFormError(V);
14334
14376
  } finally {
14335
14377
  o.value = !1;
14336
14378
  }
14337
14379
  }
14338
14380
  function T({
14339
- isAllForm: w,
14340
- isAllLanguage: N
14381
+ isAllForm: D,
14382
+ isAllLanguage: R
14341
14383
  }) {
14342
- var R, D, V;
14384
+ var P, V, w;
14343
14385
  c.value = new VarCatalog({
14344
14386
  id: "",
14345
14387
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14346
- grp_nam: (R = a.getSelectedVar) == null ? void 0 : R.grp_nam,
14347
- var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
14348
- frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14349
- locale_id: N ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
14388
+ grp_nam: (P = a.getSelectedVar) == null ? void 0 : P.grp_nam,
14389
+ var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
14390
+ frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14391
+ locale_id: R ? "ALL" : (w = t.locale) == null ? void 0 : w.value,
14350
14392
  var_text: ""
14351
14393
  }), u.value = [...u.value, c.value], a.setSelectedVarCatalog(unref(c)), g.value = [""];
14352
14394
  }
14353
14395
  function A() {
14354
- var N;
14396
+ var R;
14355
14397
  u.value = without$1(u.value, c.value), c.value = null;
14356
- const w = (N = u.value[0]) != null ? N : null;
14357
- a.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
14398
+ const D = (R = u.value[0]) != null ? R : null;
14399
+ a.setSelectedVarCatalog(D), g.value = D ? [D.id] : [];
14358
14400
  }
14359
- function E() {
14401
+ function k() {
14360
14402
  KgUtil.confirm({
14361
14403
  onOk: async () => {
14362
- var w;
14404
+ var D;
14363
14405
  await Delete({
14364
14406
  params: {
14365
- id: (w = a.getSelectedVarCatalog) == null ? void 0 : w.id
14407
+ id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
14366
14408
  }
14367
14409
  }, {
14368
14410
  successMessageMode: "none",
@@ -14373,14 +14415,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14373
14415
  }
14374
14416
  });
14375
14417
  }
14376
- function $(w) {
14377
- var N;
14378
- ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !== w.id && (unref(c) ? KgUtil.confirm({
14418
+ function $(D) {
14419
+ var R;
14420
+ ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) !== D.id && (unref(c) ? KgUtil.confirm({
14379
14421
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
14380
14422
  onOk: () => {
14381
- u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(w)), g.value = [w.id];
14423
+ u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(D)), g.value = [D.id];
14382
14424
  }
14383
- }) : (a.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
14425
+ }) : (a.setSelectedVarCatalog(unref(D)), g.value = [D.id]));
14384
14426
  }
14385
14427
  function M() {
14386
14428
  b.value.visible = !0;
@@ -14390,14 +14432,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14390
14432
  class: "buttons"
14391
14433
  }, [createVNode(Button, {
14392
14434
  onClick: M,
14393
- disabled: p.value,
14435
+ disabled: _.value,
14394
14436
  type: "primary"
14395
14437
  }, {
14396
14438
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
14397
14439
  }), createVNode(Button, {
14398
- onClick: E,
14399
- disabled: _.value,
14400
- ghost: !_.value,
14440
+ onClick: k,
14441
+ disabled: p.value,
14442
+ ghost: !p.value,
14401
14443
  type: "primary",
14402
14444
  danger: !0
14403
14445
  }, {
@@ -14405,13 +14447,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14405
14447
  })]);
14406
14448
  }
14407
14449
  function O() {
14408
- let w, N;
14450
+ let D, R;
14409
14451
  return createVNode("div", {
14410
14452
  class: "form"
14411
14453
  }, [createVNode(Form, {
14412
14454
  ref: s,
14413
14455
  model: l.value,
14414
- onSubmit: k
14456
+ onSubmit: E
14415
14457
  }, {
14416
14458
  default: () => [createVNode(Form.Item, {
14417
14459
  name: "var_text",
@@ -14422,7 +14464,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14422
14464
  }, {
14423
14465
  default: () => [createVNode(Textarea, {
14424
14466
  value: l.value.var_text,
14425
- "onUpdate:value": (R) => l.value.var_text = R,
14467
+ "onUpdate:value": (P) => l.value.var_text = P,
14426
14468
  disabled: !a.getSelectedVarCatalog
14427
14469
  }, null), createVNode("button", {
14428
14470
  hidden: !0
@@ -14433,21 +14475,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14433
14475
  }, [createVNode(Button, {
14434
14476
  disabled: v.value,
14435
14477
  onClick: A
14436
- }, _isSlot(w = t.t("common.cancelText")) ? w : {
14437
- default: () => [w]
14478
+ }, _isSlot(D = t.t("common.cancelText")) ? D : {
14479
+ default: () => [D]
14438
14480
  }), createVNode(Button, {
14439
14481
  loading: o.value,
14440
14482
  disabled: y.value,
14441
- onClick: k,
14483
+ onClick: E,
14442
14484
  type: "primary"
14443
- }, _isSlot(N = t.t("common.save")) ? N : {
14444
- default: () => [N]
14485
+ }, _isSlot(R = t.t("common.save")) ? R : {
14486
+ default: () => [R]
14445
14487
  })])]);
14446
14488
  }
14447
- function F(w) {
14448
- var R;
14449
- let N = "";
14450
- return w.id || (N += " ant-table-row-create"), w.id === ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) && (N += " ant-table-row-selected "), N;
14489
+ function F(D) {
14490
+ var P;
14491
+ let R = "";
14492
+ return D.id || (R += " ant-table-row-create"), D.id === ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) && (R += " ant-table-row-selected "), R;
14451
14493
  }
14452
14494
  return () => createVNode("div", {
14453
14495
  class: "kg-var-config-modal-var-var-catalog"
@@ -14465,12 +14507,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14465
14507
  loading: n.value,
14466
14508
  rowClassName: F,
14467
14509
  rowSelection: m.value,
14468
- customRow: (w) => ({
14469
- onClick: () => $(w)
14510
+ customRow: (D) => ({
14511
+ onClick: () => $(D)
14470
14512
  })
14471
14513
  }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
14472
14514
  visible: b.value.visible,
14473
- "onUpdate:visible": (w) => b.value.visible = w,
14515
+ "onUpdate:visible": (D) => b.value.visible = D,
14474
14516
  onKgOk: T
14475
14517
  }, null)]);
14476
14518
  }
@@ -14788,8 +14830,8 @@ const KgWarehouse$1 = "", getProps = () => ({
14788
14830
  customRender: ({
14789
14831
  record: T
14790
14832
  }) => {
14791
- var E;
14792
- return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
14833
+ var k;
14834
+ return T.id === ((k = s.value) == null ? void 0 : k.id) ? createVNode("img", {
14793
14835
  src: WAREHOUSE_1890ff
14794
14836
  }, null) : createVNode("img", {
14795
14837
  src: WAREHOUSE_000000
@@ -14799,25 +14841,25 @@ const KgWarehouse$1 = "", getProps = () => ({
14799
14841
  customRender: ({
14800
14842
  record: T
14801
14843
  }) => {
14802
- var E, $, M;
14844
+ var k, $, M;
14803
14845
  const A = T;
14804
- return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
14846
+ return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
14805
14847
  class: "address"
14806
14848
  }, [(M = A.adrId) != null ? M : " "])]);
14807
14849
  }
14808
14850
  }]), c = ref([]), g = computed(() => {
14809
14851
  var A;
14810
14852
  const T = (A = o.value) == null ? void 0 : A.toUpperCase();
14811
- return c.value.filter((E) => {
14812
- var $, M, I, O, F, w;
14813
- return ((M = ($ = E.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(T)) || ((w = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : w.includes(T));
14853
+ return c.value.filter((k) => {
14854
+ var $, M, I, O, F, D;
14855
+ return ((M = ($ = k.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(T)) || ((D = (F = k.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : D.includes(T));
14814
14856
  });
14815
14857
  }), m = computed(() => {
14816
14858
  var T, A;
14817
14859
  return ((A = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : A.enable) !== !1;
14818
14860
  });
14819
14861
  watch(a.visible, (T) => {
14820
- !m.value || (T ? p() : _());
14862
+ !m.value || (T ? _() : p());
14821
14863
  }, {
14822
14864
  immediate: !0
14823
14865
  }), onMounted(() => {
@@ -14826,10 +14868,10 @@ const KgWarehouse$1 = "", getProps = () => ({
14826
14868
  function b() {
14827
14869
  !m.value || a.store.setVisible(!0);
14828
14870
  }
14829
- function p() {
14871
+ function _() {
14830
14872
  s.value = a.warehouse.value, y();
14831
14873
  }
14832
- function _() {
14874
+ function p() {
14833
14875
  o.value = "", c.value = [], s.value = null;
14834
14876
  }
14835
14877
  function v() {
@@ -14865,17 +14907,17 @@ const KgWarehouse$1 = "", getProps = () => ({
14865
14907
  }
14866
14908
  }
14867
14909
  function C(T, A) {
14868
- var E;
14910
+ var k;
14869
14911
  switch (T.detail) {
14870
14912
  case 1:
14871
- ((E = s.value) == null ? void 0 : E.id) === A.id ? s.value = null : s.value = A;
14913
+ ((k = s.value) == null ? void 0 : k.id) === A.id ? s.value = null : s.value = A;
14872
14914
  break;
14873
14915
  case 2:
14874
14916
  s.value = A, v();
14875
14917
  break;
14876
14918
  }
14877
14919
  }
14878
- function k() {
14920
+ function E() {
14879
14921
  return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14880
14922
  title: r.t("kg.KgWarehouse.warehouse"),
14881
14923
  placement: "bottomRight"
@@ -14927,7 +14969,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14927
14969
  var A;
14928
14970
  return {
14929
14971
  class: T.id === ((A = s.value) == null ? void 0 : A.id) ? "selected" : "",
14930
- onClick: (E) => C(E, T)
14972
+ onClick: (k) => C(k, T)
14931
14973
  };
14932
14974
  }
14933
14975
  }, null)]
@@ -14936,7 +14978,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14936
14978
  return () => createVNode("div", {
14937
14979
  class: n.value,
14938
14980
  onClick: b
14939
- }, [k()]);
14981
+ }, [E()]);
14940
14982
  }
14941
14983
  });
14942
14984
  function createKgWarehouseGuard(e, t) {