@kengic/vue 0.5.21 → 0.5.23

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.
@@ -2534,8 +2534,8 @@ function equalObjects(e, t, r, n, a, o) {
2534
2534
  v || (v = p == "constructor");
2535
2535
  }
2536
2536
  if (_ && !v) {
2537
- var E = e.constructor, V = t.constructor;
2538
- E != V && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof V == "function" && V instanceof V) && (_ = !1);
2537
+ var E = e.constructor, w = t.constructor;
2538
+ E != w && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof w == "function" && w instanceof w) && (_ = !1);
2539
2539
  }
2540
2540
  return o.delete(e), o.delete(t), _;
2541
2541
  }
@@ -4581,207 +4581,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4581
4581
  (function(r, n) {
4582
4582
  e.exports = n();
4583
4583
  })(commonjsGlobal, function() {
4584
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "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($) {
4585
- var A = ["th", "st", "nd", "rd"], M = $ % 100;
4586
- return "[" + $ + (A[(M - 20) % 10] || A[M] || A[0]) + "]";
4587
- } }, T = function($, A, M) {
4588
- var D = String($);
4589
- return !D || D.length >= A ? $ : "" + Array(A + 1 - D.length).join(M) + $;
4590
- }, E = { s: T, z: function($) {
4591
- var A = -$.utcOffset(), M = Math.abs(A), D = Math.floor(M / 60), L = M % 60;
4592
- return (A <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
4593
- }, m: function $(A, M) {
4594
- if (A.date() < M.date())
4595
- return -$(M, A);
4596
- var D = 12 * (M.year() - A.year()) + (M.month() - A.month()), L = A.clone().add(D, g), G = M - L < 0, P = A.clone().add(D + (G ? -1 : 1), g);
4597
- return +(-(D + (M - L) / (G ? L - P : P - L)) || 0);
4598
- }, a: function($) {
4599
- return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
4600
- }, p: function($) {
4601
- return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4602
- }, u: function($) {
4603
- return $ === void 0;
4604
- } }, V = "en", k = {};
4605
- k[V] = C;
4606
- var x = function($) {
4607
- return $ instanceof R;
4608
- }, F = function $(A, M, D) {
4584
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "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(M) {
4585
+ var I = ["th", "st", "nd", "rd"], O = M % 100;
4586
+ return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
4587
+ } }, T = function(M, I, O) {
4588
+ var N = String(M);
4589
+ return !N || N.length >= I ? M : "" + Array(I + 1 - N.length).join(O) + M;
4590
+ }, E = { s: T, z: function(M) {
4591
+ var I = -M.utcOffset(), O = Math.abs(I), N = Math.floor(O / 60), L = O % 60;
4592
+ return (I <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(L, 2, "0");
4593
+ }, m: function M(I, O) {
4594
+ if (I.date() < O.date())
4595
+ return -M(O, I);
4596
+ var N = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(N, g), G = O - L < 0, P = I.clone().add(N + (G ? -1 : 1), g);
4597
+ return +(-(N + (O - L) / (G ? L - P : P - L)) || 0);
4598
+ }, a: function(M) {
4599
+ return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4600
+ }, p: function(M) {
4601
+ return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4602
+ }, u: function(M) {
4603
+ return M === void 0;
4604
+ } }, w = "en", k = {};
4605
+ k[w] = C;
4606
+ var F = function(M) {
4607
+ return M instanceof U;
4608
+ }, R = function M(I, O, N) {
4609
4609
  var L;
4610
- if (!A)
4611
- return V;
4612
- if (typeof A == "string") {
4613
- var G = A.toLowerCase();
4614
- k[G] && (L = G), M && (k[G] = M, L = G);
4615
- var P = A.split("-");
4610
+ if (!I)
4611
+ return w;
4612
+ if (typeof I == "string") {
4613
+ var G = I.toLowerCase();
4614
+ k[G] && (L = G), O && (k[G] = O, L = G);
4615
+ var P = I.split("-");
4616
4616
  if (!L && P.length > 1)
4617
- return $(P[0]);
4617
+ return M(P[0]);
4618
4618
  } else {
4619
- var U = A.name;
4620
- k[U] = A, L = U;
4621
- }
4622
- return !D && L && (V = L), L || !D && V;
4623
- }, O = function($, A) {
4624
- if (x($))
4625
- return $.clone();
4626
- var M = typeof A == "object" ? A : {};
4627
- return M.date = $, M.args = arguments, new R(M);
4628
- }, w = E;
4629
- w.l = F, w.i = x, w.w = function($, A) {
4630
- return O($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
4619
+ var B = I.name;
4620
+ k[B] = I, L = B;
4621
+ }
4622
+ return !N && L && (w = L), L || !N && w;
4623
+ }, $ = function(M, I) {
4624
+ if (F(M))
4625
+ return M.clone();
4626
+ var O = typeof I == "object" ? I : {};
4627
+ return O.date = M, O.args = arguments, new U(O);
4628
+ }, D = E;
4629
+ D.l = R, D.i = F, D.w = function(M, I) {
4630
+ return $(M, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
4631
4631
  };
4632
- var R = function() {
4633
- function $(M) {
4634
- this.$L = F(M.locale, null, !0), this.parse(M);
4635
- }
4636
- var A = $.prototype;
4637
- return A.parse = function(M) {
4638
- this.$d = function(D) {
4639
- var L = D.date, G = D.utc;
4632
+ var U = function() {
4633
+ function M(O) {
4634
+ this.$L = R(O.locale, null, !0), this.parse(O);
4635
+ }
4636
+ var I = M.prototype;
4637
+ return I.parse = function(O) {
4638
+ this.$d = function(N) {
4639
+ var L = N.date, G = N.utc;
4640
4640
  if (L === null)
4641
4641
  return new Date(NaN);
4642
- if (w.u(L))
4642
+ if (D.u(L))
4643
4643
  return new Date();
4644
4644
  if (L instanceof Date)
4645
4645
  return new Date(L);
4646
4646
  if (typeof L == "string" && !/Z$/i.test(L)) {
4647
4647
  var P = L.match(v);
4648
4648
  if (P) {
4649
- var U = P[2] - 1 || 0, W = (P[7] || "0").substring(0, 3);
4650
- return G ? new Date(Date.UTC(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W)) : new Date(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W);
4649
+ var B = P[2] - 1 || 0, z = (P[7] || "0").substring(0, 3);
4650
+ return G ? new Date(Date.UTC(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z)) : new Date(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z);
4651
4651
  }
4652
4652
  }
4653
4653
  return new Date(L);
4654
- }(M), this.$x = M.x || {}, this.init();
4655
- }, A.init = function() {
4656
- var M = this.$d;
4657
- this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
4658
- }, A.$utils = function() {
4659
- return w;
4660
- }, A.isValid = function() {
4654
+ }(O), this.$x = O.x || {}, this.init();
4655
+ }, I.init = function() {
4656
+ var O = this.$d;
4657
+ this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
4658
+ }, I.$utils = function() {
4659
+ return D;
4660
+ }, I.isValid = function() {
4661
4661
  return this.$d.toString() !== _;
4662
- }, A.isSame = function(M, D) {
4663
- var L = O(M);
4664
- return this.startOf(D) <= L && L <= this.endOf(D);
4665
- }, A.isAfter = function(M, D) {
4666
- return O(M) < this.startOf(D);
4667
- }, A.isBefore = function(M, D) {
4668
- return this.endOf(D) < O(M);
4669
- }, A.$g = function(M, D, L) {
4670
- return w.u(M) ? this[D] : this.set(L, M);
4671
- }, A.unix = function() {
4662
+ }, I.isSame = function(O, N) {
4663
+ var L = $(O);
4664
+ return this.startOf(N) <= L && L <= this.endOf(N);
4665
+ }, I.isAfter = function(O, N) {
4666
+ return $(O) < this.startOf(N);
4667
+ }, I.isBefore = function(O, N) {
4668
+ return this.endOf(N) < $(O);
4669
+ }, I.$g = function(O, N, L) {
4670
+ return D.u(O) ? this[N] : this.set(L, O);
4671
+ }, I.unix = function() {
4672
4672
  return Math.floor(this.valueOf() / 1e3);
4673
- }, A.valueOf = function() {
4673
+ }, I.valueOf = function() {
4674
4674
  return this.$d.getTime();
4675
- }, A.startOf = function(M, D) {
4676
- var L = this, G = !!w.u(D) || D, P = w.p(M), U = function(q, H) {
4677
- var ee = w.w(L.$u ? Date.UTC(L.$y, H, q) : new Date(L.$y, H, q), L);
4678
- return G ? ee : ee.endOf(u);
4679
- }, W = function(q, H) {
4680
- return w.w(L.toDate()[q].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), L);
4681
- }, Y = this.$W, X = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
4675
+ }, I.startOf = function(O, N) {
4676
+ var L = this, G = !!D.u(N) || N, P = D.p(O), B = function(ae, V) {
4677
+ var x = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
4678
+ return G ? x : x.endOf(u);
4679
+ }, z = function(ae, V) {
4680
+ return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
4681
+ }, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
4682
4682
  switch (P) {
4683
4683
  case m:
4684
- return G ? U(1, 0) : U(31, 11);
4684
+ return G ? B(1, 0) : B(31, 11);
4685
4685
  case g:
4686
- return G ? U(1, X) : U(0, X + 1);
4686
+ return G ? B(1, X) : B(0, X + 1);
4687
4687
  case c:
4688
- var N = this.$locale().weekStart || 0, B = (Y < N ? Y + 7 : Y) - N;
4689
- return U(G ? re - B : re + (6 - B), X);
4688
+ var ue = this.$locale().weekStart || 0, ce = (Y < ue ? Y + 7 : Y) - ue;
4689
+ return B(G ? re - ce : re + (6 - ce), X);
4690
4690
  case u:
4691
4691
  case b:
4692
- return W(te + "Hours", 0);
4692
+ return z(ee + "Hours", 0);
4693
4693
  case l:
4694
- return W(te + "Minutes", 1);
4694
+ return z(ee + "Minutes", 1);
4695
4695
  case i:
4696
- return W(te + "Seconds", 2);
4696
+ return z(ee + "Seconds", 2);
4697
4697
  case s:
4698
- return W(te + "Milliseconds", 3);
4698
+ return z(ee + "Milliseconds", 3);
4699
4699
  default:
4700
4700
  return this.clone();
4701
4701
  }
4702
- }, A.endOf = function(M) {
4703
- return this.startOf(M, !1);
4704
- }, A.$set = function(M, D) {
4705
- var L, G = w.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], W = G === u ? this.$D + (D - this.$W) : D;
4702
+ }, I.endOf = function(O) {
4703
+ return this.startOf(O, !1);
4704
+ }, I.$set = function(O, N) {
4705
+ var L, G = D.p(O), P = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
4706
4706
  if (G === g || G === m) {
4707
4707
  var Y = this.clone().set(b, 1);
4708
- Y.$d[U](W), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4708
+ Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4709
4709
  } else
4710
- U && this.$d[U](W);
4710
+ B && this.$d[B](z);
4711
4711
  return this.init(), this;
4712
- }, A.set = function(M, D) {
4713
- return this.clone().$set(M, D);
4714
- }, A.get = function(M) {
4715
- return this[w.p(M)]();
4716
- }, A.add = function(M, D) {
4712
+ }, I.set = function(O, N) {
4713
+ return this.clone().$set(O, N);
4714
+ }, I.get = function(O) {
4715
+ return this[D.p(O)]();
4716
+ }, I.add = function(O, N) {
4717
4717
  var L, G = this;
4718
- M = Number(M);
4719
- var P = w.p(D), U = function(X) {
4720
- var re = O(G);
4721
- return w.w(re.date(re.date() + Math.round(X * M)), G);
4718
+ O = Number(O);
4719
+ var P = D.p(N), B = function(X) {
4720
+ var re = $(G);
4721
+ return D.w(re.date(re.date() + Math.round(X * O)), G);
4722
4722
  };
4723
4723
  if (P === g)
4724
- return this.set(g, this.$M + M);
4724
+ return this.set(g, this.$M + O);
4725
4725
  if (P === m)
4726
- return this.set(m, this.$y + M);
4726
+ return this.set(m, this.$y + O);
4727
4727
  if (P === u)
4728
- return U(1);
4728
+ return B(1);
4729
4729
  if (P === c)
4730
- return U(7);
4731
- var W = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + M * W;
4732
- return w.w(Y, this);
4733
- }, A.subtract = function(M, D) {
4734
- return this.add(-1 * M, D);
4735
- }, A.format = function(M) {
4736
- var D = this, L = this.$locale();
4730
+ return B(7);
4731
+ var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + O * z;
4732
+ return D.w(Y, this);
4733
+ }, I.subtract = function(O, N) {
4734
+ return this.add(-1 * O, N);
4735
+ }, I.format = function(O) {
4736
+ var N = this, L = this.$locale();
4737
4737
  if (!this.isValid())
4738
4738
  return L.invalidDate || _;
4739
- var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = w.z(this), U = this.$H, W = this.$m, Y = this.$M, X = L.weekdays, re = L.months, te = function(H, ee, J, le) {
4740
- return H && (H[ee] || H(D, G)) || J[ee].slice(0, le);
4741
- }, N = function(H) {
4742
- return w.s(U % 12 || 12, H, "0");
4743
- }, B = L.meridiem || function(H, ee, J) {
4744
- var le = H < 12 ? "AM" : "PM";
4745
- return J ? le.toLowerCase() : le;
4746
- }, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: w.s(Y + 1, 2, "0"), MMM: te(L.monthsShort, Y, re, 3), MMMM: te(re, Y), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: te(L.weekdaysMin, this.$W, X, 2), ddd: te(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(U), HH: w.s(U, 2, "0"), h: N(1), hh: N(2), a: B(U, W, !0), A: B(U, W, !1), m: String(W), mm: w.s(W, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: P };
4747
- return G.replace(y, function(H, ee) {
4748
- return ee || q[H] || P.replace(":", "");
4739
+ var G = O || "YYYY-MM-DDTHH:mm:ssZ", P = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, x, W, q) {
4740
+ return V && (V[x] || V(N, G)) || W[x].slice(0, q);
4741
+ }, ue = function(V) {
4742
+ return D.s(B % 12 || 12, V, "0");
4743
+ }, ce = L.meridiem || function(V, x, W) {
4744
+ var q = V < 12 ? "AM" : "PM";
4745
+ return W ? q.toLowerCase() : q;
4746
+ }, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: P };
4747
+ return G.replace(y, function(V, x) {
4748
+ return x || ae[V] || P.replace(":", "");
4749
4749
  });
4750
- }, A.utcOffset = function() {
4750
+ }, I.utcOffset = function() {
4751
4751
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4752
- }, A.diff = function(M, D, L) {
4753
- var G, P = w.p(D), U = O(M), W = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, X = w.m(this, U);
4754
- return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : w.a(X);
4755
- }, A.daysInMonth = function() {
4752
+ }, I.diff = function(O, N, L) {
4753
+ var G, P = D.p(N), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
4754
+ return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : D.a(X);
4755
+ }, I.daysInMonth = function() {
4756
4756
  return this.endOf(g).$D;
4757
- }, A.$locale = function() {
4757
+ }, I.$locale = function() {
4758
4758
  return k[this.$L];
4759
- }, A.locale = function(M, D) {
4760
- if (!M)
4759
+ }, I.locale = function(O, N) {
4760
+ if (!O)
4761
4761
  return this.$L;
4762
- var L = this.clone(), G = F(M, D, !0);
4762
+ var L = this.clone(), G = R(O, N, !0);
4763
4763
  return G && (L.$L = G), L;
4764
- }, A.clone = function() {
4765
- return w.w(this.$d, this);
4766
- }, A.toDate = function() {
4764
+ }, I.clone = function() {
4765
+ return D.w(this.$d, this);
4766
+ }, I.toDate = function() {
4767
4767
  return new Date(this.valueOf());
4768
- }, A.toJSON = function() {
4768
+ }, I.toJSON = function() {
4769
4769
  return this.isValid() ? this.toISOString() : null;
4770
- }, A.toISOString = function() {
4770
+ }, I.toISOString = function() {
4771
4771
  return this.$d.toISOString();
4772
- }, A.toString = function() {
4772
+ }, I.toString = function() {
4773
4773
  return this.$d.toUTCString();
4774
- }, $;
4775
- }(), I = R.prototype;
4776
- return O.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function($) {
4777
- I[$[1]] = function(A) {
4778
- return this.$g(A, $[0], $[1]);
4774
+ }, M;
4775
+ }(), A = U.prototype;
4776
+ return $.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
4777
+ A[M[1]] = function(I) {
4778
+ return this.$g(I, M[0], M[1]);
4779
4779
  };
4780
- }), O.extend = function($, A) {
4781
- return $.$i || ($(A, R, O), $.$i = !0), O;
4782
- }, O.locale = F, O.isDayjs = x, O.unix = function($) {
4783
- return O(1e3 * $);
4784
- }, O.en = k[V], O.Ls = k, O.p = {}, O;
4780
+ }), $.extend = function(M, I) {
4781
+ return M.$i || (M(I, U, $), M.$i = !0), $;
4782
+ }, $.locale = R, $.isDayjs = F, $.unix = function(M) {
4783
+ return $(1e3 * M);
4784
+ }, $.en = k[w], $.Ls = k, $.p = {}, $;
4785
4785
  });
4786
4786
  })(dayjs_min);
4787
4787
  const dayjs = dayjs_min.exports;
@@ -4826,31 +4826,31 @@ function filesize(e, {
4826
4826
  roundingMethod: _ = ROUND,
4827
4827
  precision: v = 0
4828
4828
  } = {}) {
4829
- let y = b, C = Number(e), T = [], E = 0, V = EMPTY;
4829
+ let y = b, C = Number(e), T = [], E = 0, w = EMPTY;
4830
4830
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4831
- const k = n === 10 ? 1e3 : 1024, x = p === !0, F = C < 0, O = Math[_];
4831
+ const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, $ = Math[_];
4832
4832
  if (typeof e != "bigint" && isNaN(e))
4833
4833
  throw new TypeError(INVALID_NUMBER);
4834
- if (typeof O !== FUNCTION)
4834
+ if (typeof $ !== FUNCTION)
4835
4835
  throw new TypeError(INVALID_ROUND);
4836
- if (F && (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)
4836
+ if (R && (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)
4837
4837
  return y;
4838
4838
  if (C === 0)
4839
- T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4839
+ T[0] = 0, w = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4840
4840
  else {
4841
4841
  E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
4842
- const w = Math.pow(10, y > 0 ? a : 0);
4843
- T[0] = O(E * w) / w, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4842
+ const D = Math.pow(10, y > 0 ? a : 0);
4843
+ T[0] = $(E * D) / D, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), w = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4844
4844
  }
4845
- if (F && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4846
- const w = i || PERIOD, R = T[0].toString().split(w), I = R[1] || EMPTY, $ = I.length, A = a - $;
4847
- T[0] = `${R[0]}${w}${I.padEnd($ + A, ZERO)}`;
4845
+ if (R && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4846
+ const D = i || PERIOD, U = T[0].toString().split(D), A = U[1] || EMPTY, M = A.length, I = a - M;
4847
+ T[0] = `${U[0]}${D}${A.padEnd(M + I, ZERO)}`;
4848
4848
  }
4849
- return x && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4849
+ return F && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4850
4850
  value: T[0],
4851
4851
  symbol: T[1],
4852
4852
  exponent: y,
4853
- unit: V
4853
+ unit: w
4854
4854
  } : T.join(l);
4855
4855
  }
4856
4856
  const data$6 = {
@@ -5440,8 +5440,8 @@ function sendQuery(e, t, r, n) {
5440
5440
  if (e.random) {
5441
5441
  let k = e.resources.slice(0);
5442
5442
  for (s = []; k.length > 1; ) {
5443
- const x = Math.floor(Math.random() * k.length);
5444
- s.push(k[x]), k = k.slice(0, x).concat(k.slice(x + 1));
5443
+ const F = Math.floor(Math.random() * k.length);
5444
+ s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
5445
5445
  }
5446
5446
  s = s.concat(k);
5447
5447
  } else
@@ -5457,8 +5457,8 @@ function sendQuery(e, t, r, n) {
5457
5457
  k.status === "pending" && (k.status = "aborted");
5458
5458
  }), p = [];
5459
5459
  }
5460
- function v(k, x) {
5461
- x && (m = []), typeof k == "function" && m.push(k);
5460
+ function v(k, F) {
5461
+ F && (m = []), typeof k == "function" && m.push(k);
5462
5462
  }
5463
5463
  function y() {
5464
5464
  return {
@@ -5481,35 +5481,35 @@ function sendQuery(e, t, r, n) {
5481
5481
  k.status === "pending" && (k.status = "aborted");
5482
5482
  }), p = [];
5483
5483
  }
5484
- function E(k, x, F) {
5485
- const O = x !== "success";
5486
- switch (p = p.filter((w) => w !== k), l) {
5484
+ function E(k, F, R) {
5485
+ const $ = F !== "success";
5486
+ switch (p = p.filter((D) => D !== k), l) {
5487
5487
  case "pending":
5488
5488
  break;
5489
5489
  case "failed":
5490
- if (O || !e.dataAfterTimeout)
5490
+ if ($ || !e.dataAfterTimeout)
5491
5491
  return;
5492
5492
  break;
5493
5493
  default:
5494
5494
  return;
5495
5495
  }
5496
- if (x === "abort") {
5497
- c = F, C();
5496
+ if (F === "abort") {
5497
+ c = R, C();
5498
5498
  return;
5499
5499
  }
5500
- if (O) {
5501
- c = F, p.length || (s.length ? V() : C());
5500
+ if ($) {
5501
+ c = R, p.length || (s.length ? w() : C());
5502
5502
  return;
5503
5503
  }
5504
5504
  if (b(), T(), !e.random) {
5505
- const w = e.resources.indexOf(k.resource);
5506
- w !== -1 && w !== e.index && (e.index = w);
5505
+ const D = e.resources.indexOf(k.resource);
5506
+ D !== -1 && D !== e.index && (e.index = D);
5507
5507
  }
5508
- l = "completed", m.forEach((w) => {
5509
- w(F);
5508
+ l = "completed", m.forEach((D) => {
5509
+ D(R);
5510
5510
  });
5511
5511
  }
5512
- function V() {
5512
+ function w() {
5513
5513
  if (l !== "pending")
5514
5514
  return;
5515
5515
  b();
@@ -5524,16 +5524,16 @@ function sendQuery(e, t, r, n) {
5524
5524
  C();
5525
5525
  return;
5526
5526
  }
5527
- const x = {
5527
+ const F = {
5528
5528
  status: "pending",
5529
5529
  resource: k,
5530
- callback: (F, O) => {
5531
- E(x, F, O);
5530
+ callback: (R, $) => {
5531
+ E(F, R, $);
5532
5532
  }
5533
5533
  };
5534
- p.push(x), u++, g = setTimeout(V, e.rotate), r(k, t, x.callback);
5534
+ p.push(F), u++, g = setTimeout(w, e.rotate), r(k, t, F.callback);
5535
5535
  }
5536
- return setTimeout(V), y;
5536
+ return setTimeout(w), y;
5537
5537
  }
5538
5538
  function initRedundancy(e) {
5539
5539
  const t = {
@@ -6145,27 +6145,27 @@ function createSetupStore(e, t, r = {}, n, a) {
6145
6145
  const l = {
6146
6146
  deep: !0
6147
6147
  };
6148
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
6149
- u ? m = F : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6148
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
6149
+ u ? m = R : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6150
6150
  });
6151
6151
  let u, c, g = markRaw([]), p = markRaw([]), m;
6152
6152
  const b = n.state.value[e];
6153
6153
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6154
6154
  const _ = ref({});
6155
- function v(F) {
6156
- let O;
6157
- u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6155
+ function v(R) {
6156
+ let $;
6157
+ u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof R == "function" ? (R(n.state.value[e]), $ = {
6158
6158
  type: MutationType.patchFunction,
6159
6159
  storeId: e,
6160
6160
  events: m
6161
- }) : (mergeReactiveObjects(n.state.value[e], F), O = {
6161
+ }) : (mergeReactiveObjects(n.state.value[e], R), $ = {
6162
6162
  type: MutationType.patchObject,
6163
- payload: F,
6163
+ payload: R,
6164
6164
  storeId: e,
6165
6165
  events: m
6166
6166
  }), nextTick().then(() => {
6167
6167
  u = !0;
6168
- }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6168
+ }), c = !0, triggerSubscriptions(g, $, n.state.value[e]);
6169
6169
  }
6170
6170
  const y = process.env.NODE_ENV !== "production" ? () => {
6171
6171
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -6173,30 +6173,30 @@ function createSetupStore(e, t, r = {}, n, a) {
6173
6173
  function C() {
6174
6174
  o.stop(), g = [], p = [], n._s.delete(e);
6175
6175
  }
6176
- function T(F, O) {
6176
+ function T(R, $) {
6177
6177
  return function() {
6178
6178
  setActivePinia(n);
6179
- const w = Array.from(arguments), R = [], I = [];
6180
- function $(D) {
6181
- R.push(D);
6179
+ const D = Array.from(arguments), U = [], A = [];
6180
+ function M(N) {
6181
+ U.push(N);
6182
6182
  }
6183
- function A(D) {
6184
- I.push(D);
6183
+ function I(N) {
6184
+ A.push(N);
6185
6185
  }
6186
6186
  triggerSubscriptions(p, {
6187
- args: w,
6188
- name: F,
6187
+ args: D,
6188
+ name: R,
6189
6189
  store: k,
6190
- after: $,
6191
- onError: A
6190
+ after: M,
6191
+ onError: I
6192
6192
  });
6193
- let M;
6193
+ let O;
6194
6194
  try {
6195
- M = O.apply(this && this.$id === e ? this : k, w);
6196
- } catch (D) {
6197
- throw triggerSubscriptions(I, D), D;
6195
+ O = $.apply(this && this.$id === e ? this : k, D);
6196
+ } catch (N) {
6197
+ throw triggerSubscriptions(A, N), N;
6198
6198
  }
6199
- return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
6199
+ return O instanceof Promise ? O.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(U, O), O);
6200
6200
  };
6201
6201
  }
6202
6202
  const E = /* @__PURE__ */ markRaw({
@@ -6204,21 +6204,21 @@ function createSetupStore(e, t, r = {}, n, a) {
6204
6204
  getters: {},
6205
6205
  state: [],
6206
6206
  hotState: _
6207
- }), V = {
6207
+ }), w = {
6208
6208
  _p: n,
6209
6209
  $id: e,
6210
6210
  $onAction: addSubscription.bind(null, p),
6211
6211
  $patch: v,
6212
6212
  $reset: y,
6213
- $subscribe(F, O = {}) {
6214
- const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (I) => {
6215
- (O.flush === "sync" ? c : u) && F({
6213
+ $subscribe(R, $ = {}) {
6214
+ const D = addSubscription(g, R, $.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (A) => {
6215
+ ($.flush === "sync" ? c : u) && R({
6216
6216
  storeId: e,
6217
6217
  type: MutationType.direct,
6218
6218
  events: m
6219
- }, I);
6220
- }, assign$1({}, l, O)));
6221
- return w;
6219
+ }, A);
6220
+ }, assign$1({}, l, $)));
6221
+ return D;
6222
6222
  },
6223
6223
  $dispose: C
6224
6224
  }, k = reactive(assign$1(
@@ -6226,79 +6226,79 @@ function createSetupStore(e, t, r = {}, n, a) {
6226
6226
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6227
6227
  _hmrPayload: E
6228
6228
  } : {},
6229
- V
6229
+ w
6230
6230
  ));
6231
6231
  n._s.set(e, k);
6232
- const x = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
- for (const F in x) {
6234
- const O = x[F];
6235
- if (isRef(O) && !isComputed(O) || isReactive(O))
6236
- process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(x, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && E.state.push(F);
6237
- else if (typeof O == "function") {
6238
- const w = process.env.NODE_ENV !== "production" && a ? O : T(F, O);
6239
- x[F] = w, process.env.NODE_ENV !== "production" && (E.actions[F] = O), i.actions[F] = O;
6232
+ const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
+ for (const R in F) {
6234
+ const $ = F[R];
6235
+ if (isRef($) && !isComputed($) || isReactive($))
6236
+ process.env.NODE_ENV !== "production" && a ? set(_.value, R, toRef(F, R)) : s || (b && shouldHydrate($) && (isRef($) ? $.value = b[R] : mergeReactiveObjects($, b[R])), n.state.value[e][R] = $), process.env.NODE_ENV !== "production" && E.state.push(R);
6237
+ else if (typeof $ == "function") {
6238
+ const D = process.env.NODE_ENV !== "production" && a ? $ : T(R, $);
6239
+ F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = $), i.actions[R] = $;
6240
6240
  } else
6241
- process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (x._getters || (x._getters = markRaw([]))).push(F));
6241
+ process.env.NODE_ENV !== "production" && isComputed($) && (E.getters[R] = s ? r.getters[R] : $, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
6242
6242
  }
6243
- if (assign$1(k, x), assign$1(toRaw(k), x), Object.defineProperty(k, "$state", {
6243
+ if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
6244
6244
  get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6245
- set: (F) => {
6245
+ set: (R) => {
6246
6246
  if (process.env.NODE_ENV !== "production" && a)
6247
6247
  throw new Error("cannot set hotState");
6248
- v((O) => {
6249
- assign$1(O, F);
6248
+ v(($) => {
6249
+ assign$1($, R);
6250
6250
  });
6251
6251
  }
6252
6252
  }), process.env.NODE_ENV !== "production") {
6253
- k._hotUpdate = markRaw((O) => {
6254
- k._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
6255
- if (w in k.$state) {
6256
- const R = O.$state[w], I = k.$state[w];
6257
- typeof R == "object" && isPlainObject(R) && isPlainObject(I) ? patchObject(R, I) : O.$state[w] = I;
6253
+ k._hotUpdate = markRaw(($) => {
6254
+ k._hotUpdating = !0, $._hmrPayload.state.forEach((D) => {
6255
+ if (D in k.$state) {
6256
+ const U = $.$state[D], A = k.$state[D];
6257
+ typeof U == "object" && isPlainObject(U) && isPlainObject(A) ? patchObject(U, A) : $.$state[D] = A;
6258
6258
  }
6259
- set(k, w, toRef(O.$state, w));
6260
- }), Object.keys(k.$state).forEach((w) => {
6261
- w in O.$state || del(k, w);
6262
- }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6259
+ set(k, D, toRef($.$state, D));
6260
+ }), Object.keys(k.$state).forEach((D) => {
6261
+ D in $.$state || del(k, D);
6262
+ }), u = !1, c = !1, n.state.value[e] = toRef($._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6263
6263
  u = !0;
6264
6264
  });
6265
- for (const w in O._hmrPayload.actions) {
6266
- const R = O[w];
6267
- set(k, w, T(w, R));
6265
+ for (const D in $._hmrPayload.actions) {
6266
+ const U = $[D];
6267
+ set(k, D, T(D, U));
6268
6268
  }
6269
- for (const w in O._hmrPayload.getters) {
6270
- const R = O._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), R.call(k, k))) : R;
6271
- set(k, w, I);
6269
+ for (const D in $._hmrPayload.getters) {
6270
+ const U = $._hmrPayload.getters[D], A = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
6271
+ set(k, D, A);
6272
6272
  }
6273
- Object.keys(k._hmrPayload.getters).forEach((w) => {
6274
- w in O._hmrPayload.getters || del(k, w);
6275
- }), Object.keys(k._hmrPayload.actions).forEach((w) => {
6276
- w in O._hmrPayload.actions || del(k, w);
6277
- }), k._hmrPayload = O._hmrPayload, k._getters = O._getters, k._hotUpdating = !1;
6273
+ Object.keys(k._hmrPayload.getters).forEach((D) => {
6274
+ D in $._hmrPayload.getters || del(k, D);
6275
+ }), Object.keys(k._hmrPayload.actions).forEach((D) => {
6276
+ D in $._hmrPayload.actions || del(k, D);
6277
+ }), k._hmrPayload = $._hmrPayload, k._getters = $._getters, k._hotUpdating = !1;
6278
6278
  });
6279
- const F = {
6279
+ const R = {
6280
6280
  writable: !0,
6281
6281
  configurable: !0,
6282
6282
  enumerable: !1
6283
6283
  };
6284
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6285
- Object.defineProperty(k, O, {
6286
- value: k[O],
6287
- ...F
6284
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach(($) => {
6285
+ Object.defineProperty(k, $, {
6286
+ value: k[$],
6287
+ ...R
6288
6288
  });
6289
6289
  });
6290
6290
  }
6291
- return n._p.forEach((F) => {
6291
+ return n._p.forEach((R) => {
6292
6292
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6293
- const O = o.run(() => F({
6293
+ const $ = o.run(() => R({
6294
6294
  store: k,
6295
6295
  app: n._a,
6296
6296
  pinia: n,
6297
6297
  options: i
6298
6298
  }));
6299
- Object.keys(O || {}).forEach((w) => k._customProperties.add(w)), assign$1(k, O);
6299
+ Object.keys($ || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, $);
6300
6300
  } else
6301
- assign$1(k, o.run(() => F({
6301
+ assign$1(k, o.run(() => R({
6302
6302
  store: k,
6303
6303
  app: n._a,
6304
6304
  pinia: n,
@@ -6967,11 +6967,11 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6967
6967
  function m() {
6968
6968
  var b, _, v, y, C, T, E;
6969
6969
  if (c.value) {
6970
- const V = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = V.map((x) => x[g.value])) != null ? v : [];
6971
- (!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
6970
+ const w = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = w.map((F) => F[g.value])) != null ? v : [];
6971
+ (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
6972
6972
  } else {
6973
- const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = V == null ? void 0 : V[g.value]) != null ? E : "";
6974
- (!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
6973
+ const w = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = w == null ? void 0 : w[g.value]) != null ? E : "";
6974
+ (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
6975
6975
  }
6976
6976
  }
6977
6977
  return () => {
@@ -7169,8 +7169,8 @@ const KgFormItemSelect = defineComponent({
7169
7169
  immediate: !0
7170
7170
  });
7171
7171
  async function u() {
7172
- var y, C, T, E, V, k, x, F;
7173
- const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (E = i.value) == null ? void 0 : E.val_clm) != null ? V : "", _ = (x = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? x : "";
7172
+ var y, C, T, E, w, k, F, R;
7173
+ const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (w = (E = i.value) == null ? void 0 : E.val_clm) != null ? w : "", _ = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7174
7174
  if (!p || !b || !_) {
7175
7175
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7176
7176
  frm_id: n.formID,
@@ -7183,7 +7183,7 @@ const KgFormItemSelect = defineComponent({
7183
7183
  }
7184
7184
  let v = null;
7185
7185
  try {
7186
- v = await ((F = httpClient()) == null ? void 0 : F.request({
7186
+ v = await ((R = httpClient()) == null ? void 0 : R.request({
7187
7187
  url: p,
7188
7188
  method: m,
7189
7189
  params: l.value
@@ -7202,17 +7202,17 @@ const KgFormItemSelect = defineComponent({
7202
7202
  break;
7203
7203
  }
7204
7204
  if (s.value.length > 0) {
7205
- const O = s.value[0];
7206
- (!(b in O) || !(_ in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7205
+ const $ = s.value[0];
7206
+ (!(b in $) || !(_ in $)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7207
7207
  frm_id: n.formID,
7208
7208
  var_nam: e.kgVarName,
7209
7209
  cmd: p,
7210
7210
  val_clm: b,
7211
7211
  lbl_clm: _,
7212
- \u6240\u6709\u5217: Object.keys(O)
7212
+ \u6240\u6709\u5217: Object.keys($)
7213
7213
  });
7214
7214
  }
7215
- r("kgSelectDatasChange", s.value), s.value.find((O) => O[b] === e.value) || r("update:value", void 0);
7215
+ r("kgSelectDatasChange", s.value), s.value.find(($) => $[b] === e.value) || r("update:value", void 0);
7216
7216
  }
7217
7217
  function c(p) {
7218
7218
  var b;
@@ -7249,8 +7249,8 @@ const KgFormItemSelect = defineComponent({
7249
7249
  value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7250
7250
  }, {
7251
7251
  default: () => {
7252
- var E, V;
7253
- return [_[(V = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? V : ""]];
7252
+ var E, w;
7253
+ return [_[(w = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? w : ""]];
7254
7254
  }
7255
7255
  });
7256
7256
  }),
@@ -7347,123 +7347,123 @@ const KgFormItem = defineComponent({
7347
7347
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7348
7348
  rules: b
7349
7349
  } = _useRules(e), _ = computed(() => {
7350
- var $, A, M, D, L;
7350
+ var M, I, O, N, L;
7351
7351
  if (a.isRetrievingVar.value)
7352
7352
  return !0;
7353
- let I = !1;
7353
+ let A = !1;
7354
7354
  if (e.kgDisabled !== void 0)
7355
- I = e.kgDisabled;
7355
+ A = e.kgDisabled;
7356
7356
  else
7357
7357
  switch (e.kgContext) {
7358
7358
  case KG_FORM_CONTEXT.SEARCH:
7359
- I = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
7359
+ A = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
7360
7360
  break;
7361
7361
  case KG_FORM_CONTEXT.SUBMIT:
7362
7362
  switch (!0) {
7363
7363
  case a.isCreating.value:
7364
- I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
7364
+ A = ((I = m.value) == null ? void 0 : I.crt_ena_flg) === 0;
7365
7365
  break;
7366
7366
  case a.isUpdating.value:
7367
- I = ((M = m.value) == null ? void 0 : M.upt_ena_flg) === 0;
7367
+ A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
7368
7368
  break;
7369
7369
  case a.isCopying.value:
7370
- I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
7370
+ A = ((N = m.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7371
7371
  break;
7372
7372
  case a.isDeleting.value:
7373
- I = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7373
+ A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7374
7374
  break;
7375
7375
  }
7376
7376
  break;
7377
7377
  }
7378
- return I;
7378
+ return A;
7379
7379
  }), v = computed(() => {
7380
- var $, A, M, D;
7381
- let I = " ";
7380
+ var M, I, O, N;
7381
+ let A = " ";
7382
7382
  if (e.kgPlaceholder)
7383
- I = e.kgPlaceholder;
7383
+ A = e.kgPlaceholder;
7384
7384
  else
7385
7385
  switch (e.kgContext) {
7386
7386
  case KG_FORM_CONTEXT.SEARCH:
7387
- I = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7387
+ A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
7388
7388
  break;
7389
7389
  case KG_FORM_CONTEXT.SUBMIT:
7390
- I = n.t((D = (M = m.value) == null ? void 0 : M.placeholder) != null ? D : " ");
7390
+ A = n.t((N = (O = m.value) == null ? void 0 : O.placeholder) != null ? N : " ");
7391
7391
  break;
7392
7392
  }
7393
- return I;
7393
+ return A;
7394
7394
  }), y = computed(() => {
7395
- var $, A, M, D, L, G, P, U, W, Y;
7396
- let I = 6;
7395
+ var M, I, O, N, L, G, P, B, z, Y;
7396
+ let A = 6;
7397
7397
  if (e.kgSpan !== void 0)
7398
- I = e.kgSpan;
7398
+ A = e.kgSpan;
7399
7399
  else
7400
7400
  switch (e.kgContext) {
7401
7401
  case KG_FORM_CONTEXT.SEARCH:
7402
- I = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
7402
+ A = (I = (M = p.value) == null ? void 0 : M.width) != null ? I : 6;
7403
7403
  break;
7404
7404
  case KG_FORM_CONTEXT.SUBMIT:
7405
7405
  switch (!0) {
7406
7406
  case a.isCreating.value:
7407
- I = (D = (M = m.value) == null ? void 0 : M.crt_width) != null ? D : 6;
7407
+ A = (N = (O = m.value) == null ? void 0 : O.crt_width) != null ? N : 6;
7408
7408
  break;
7409
7409
  case a.isUpdating.value:
7410
- I = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7410
+ A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7411
7411
  break;
7412
7412
  case a.isCopying.value:
7413
- I = (U = (P = m.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7413
+ A = (B = (P = m.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
7414
7414
  break;
7415
7415
  case a.isDeleting.value:
7416
- I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
7416
+ A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7417
7417
  break;
7418
7418
  }
7419
7419
  }
7420
- return Math.min(24, Math.max(1, I));
7420
+ return Math.min(24, Math.max(1, A));
7421
7421
  }), C = computed(() => {
7422
- var M, D;
7423
- const I = get(x.value, "$el.parentElement");
7424
- if (I && !((M = I.classList) != null && M.contains("ant-row")))
7422
+ var O, N;
7423
+ const A = get(F.value, "$el.parentElement");
7424
+ if (A && !((O = A.classList) != null && O.contains("ant-row")))
7425
7425
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7426
- let $ = {};
7427
- const A = Math.abs(Number.parseInt((D = get(x.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
7428
- return Number.isNaN(A) || ($ = {
7429
- paddingLeft: `${A}px !important`,
7430
- paddingRight: `${A}px !important`
7431
- }), $;
7426
+ let M = {};
7427
+ const I = Math.abs(Number.parseInt((N = get(F.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7428
+ return Number.isNaN(I) || (M = {
7429
+ paddingLeft: `${I}px !important`,
7430
+ paddingRight: `${I}px !important`
7431
+ }), M;
7432
7432
  }), T = computed(() => {
7433
- var $, A, M, D;
7434
- let I = "kg-form-item";
7435
- switch (c.value && (I += " kg-form-item-lookup"), e.kgContext) {
7433
+ var M, I, O, N;
7434
+ let A = "kg-form-item";
7435
+ switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
7436
7436
  case KG_FORM_CONTEXT.SEARCH:
7437
7437
  switch (!0) {
7438
- case (($ = p.value) == null ? void 0 : $.vis_flg) === 0:
7439
- I += " kg-form-item--invisible";
7438
+ case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
7439
+ A += " kg-form-item--invisible";
7440
7440
  break;
7441
7441
  }
7442
7442
  break;
7443
7443
  case KG_FORM_CONTEXT.SUBMIT:
7444
7444
  switch (!0) {
7445
- case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
7446
- case (l.value && ((M = m.value) == null ? void 0 : M.upt_vis_flg) === 0):
7447
- case (u.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
7448
- I += " kg-form-item--invisible";
7445
+ case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
7446
+ case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
7447
+ case (u.value && ((N = m.value) == null ? void 0 : N.cpy_vis_flg) === 0):
7448
+ A += " kg-form-item--invisible";
7449
7449
  break;
7450
7450
  }
7451
7451
  break;
7452
7452
  }
7453
- return I;
7453
+ return A;
7454
7454
  }), E = computed(() => {
7455
- var $;
7456
- const I = {
7455
+ var M;
7456
+ const A = {
7457
7457
  ...e,
7458
- value: ($ = o.value) == null ? void 0 : $[e.kgVarName],
7459
- "onUpdate:value": (A) => {
7460
- o.value && (o.value[e.kgVarName] = A);
7458
+ value: (M = o.value) == null ? void 0 : M[e.kgVarName],
7459
+ "onUpdate:value": (I) => {
7460
+ o.value && (o.value[e.kgVarName] = I);
7461
7461
  },
7462
7462
  kgPlaceholder: v.value,
7463
7463
  kgDisabled: _.value,
7464
7464
  id: k.value
7465
7465
  };
7466
- switch (V.value) {
7466
+ switch (w.value) {
7467
7467
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7468
7468
  break;
7469
7469
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7471,22 +7471,22 @@ const KgFormItem = defineComponent({
7471
7471
  case KG_FORM_ITEM_TYPE.SWITCH:
7472
7472
  break;
7473
7473
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7474
- I.kgShowTime = !1;
7474
+ A.kgShowTime = !1;
7475
7475
  break;
7476
7476
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7477
- I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7477
+ A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7478
7478
  break;
7479
7479
  }
7480
- return I;
7481
- }), V = computed(() => {
7482
- var I;
7483
- return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
7484
- }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
7485
- function F(I, $) {
7480
+ return A;
7481
+ }), w = computed(() => {
7486
7482
  var A;
7487
- o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
7483
+ return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
7484
+ }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
7485
+ function R(A, M) {
7486
+ var I;
7487
+ o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", M), (I = s.value) == null || I.validate([e.kgVarName]);
7488
7488
  }
7489
- function O() {
7489
+ function $() {
7490
7490
  if (t.control)
7491
7491
  return t.control({
7492
7492
  varName: e.kgVarName,
@@ -7496,7 +7496,7 @@ const KgFormItem = defineComponent({
7496
7496
  varProfileDetail: p,
7497
7497
  varSubmitField: m
7498
7498
  });
7499
- switch (V.value) {
7499
+ switch (w.value) {
7500
7500
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7501
7501
  return createVNode(KgFormItemInputNumber, E.value, null);
7502
7502
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7511,29 +7511,29 @@ const KgFormItem = defineComponent({
7511
7511
  return createVNode(KgFormItemInput, E.value, null);
7512
7512
  }
7513
7513
  }
7514
- function w() {
7514
+ function D() {
7515
7515
  return e.kgShowLabel ? createVNode("span", {
7516
7516
  title: a.t(e.kgVarName).value
7517
7517
  }, [a.t(e.kgVarName).value]) : null;
7518
7518
  }
7519
- function R() {
7520
- var I;
7521
- return !c.value || !((I = c.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7519
+ function U() {
7520
+ var A;
7521
+ return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7522
7522
  default: () => [createVNode(KgFormItemAddonLookup, {
7523
7523
  kgDisabled: _.value,
7524
- onKgOk: F,
7524
+ onKgOk: R,
7525
7525
  kgLookupID: c.value.lkp_id
7526
7526
  }, null)]
7527
7527
  });
7528
7528
  }
7529
7529
  return () => {
7530
- var I, $;
7530
+ var A, M;
7531
7531
  return createVNode(Col, {
7532
- ref: x,
7532
+ ref: F,
7533
7533
  "kg-frm-id": a.formID,
7534
7534
  "kg-var-nam": e.kgVarName,
7535
- "kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
7536
- "kg-lkp-ret-fld": ($ = c.value) == null ? void 0 : $.ret_fld,
7535
+ "kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
7536
+ "kg-lkp-ret-fld": (M = c.value) == null ? void 0 : M.ret_fld,
7537
7537
  span: y.value,
7538
7538
  class: T.value,
7539
7539
  style: C.value
@@ -7543,8 +7543,8 @@ const KgFormItem = defineComponent({
7543
7543
  rules: b.value,
7544
7544
  htmlFor: k.value
7545
7545
  }, {
7546
- default: () => createVNode(Fragment, null, [O(), R()]),
7547
- label: () => w()
7546
+ default: () => createVNode(Fragment, null, [$(), U()]),
7547
+ label: () => D()
7548
7548
  })]
7549
7549
  });
7550
7550
  };
@@ -8857,8 +8857,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8857
8857
  function useKgVar(e, t, r = 0) {
8858
8858
  var n, a;
8859
8859
  try {
8860
- let o = function(R) {
8861
- return isFunction$2(R) ? (i.addEventListener(s, "ready", R), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", R)), () => i.removeEventListener(s, "ready", R)) : () => {
8860
+ let o = function(U) {
8861
+ return isFunction$2(U) ? (i.addEventListener(s, "ready", U), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", U)), () => i.removeEventListener(s, "ready", U)) : () => {
8862
8862
  };
8863
8863
  }, s = e || inject(KG_DI_FORM_ID, "");
8864
8864
  if (!s)
@@ -8869,13 +8869,13 @@ function useKgVar(e, t, r = 0) {
8869
8869
  }), onUnmounted(() => {
8870
8870
  i.leave(s);
8871
8871
  }));
8872
- const l = (R) => computed(() => {
8873
- var I, $, A;
8874
- return (A = ($ = (I = i.getVarCatalog(s, R)) == null ? void 0 : I.var_text) != null ? $ : R) != null ? A : "";
8875
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8876
- var R, I;
8877
- return (I = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? I : null;
8878
- }), k = computed(() => i.getVarGridConfig(s)), x = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8872
+ const l = (U) => computed(() => {
8873
+ var A, M, I;
8874
+ return (I = (M = (A = i.getVarCatalog(s, U)) == null ? void 0 : A.var_text) != null ? M : U) != null ? I : "";
8875
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), w = computed(() => {
8876
+ var U, A;
8877
+ return (A = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? A : null;
8878
+ }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), $ = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
8879
8879
  return {
8880
8880
  formID: s,
8881
8881
  store: i,
@@ -8891,12 +8891,12 @@ function useKgVar(e, t, r = 0) {
8891
8891
  varProfileMasters: C,
8892
8892
  currentVarProfileMaster: T,
8893
8893
  currentVarProfileMasterID: E,
8894
- currentVarProfileDetails: V,
8894
+ currentVarProfileDetails: w,
8895
8895
  varGridConfig: k,
8896
- varGridMasters: x,
8897
- currentVarGridMaster: F,
8898
- systemVarGridDetails: O,
8899
- currentVarGridDetails: w,
8896
+ varGridMasters: F,
8897
+ currentVarGridMaster: R,
8898
+ systemVarGridDetails: $,
8899
+ currentVarGridDetails: D,
8900
8900
  t: l,
8901
8901
  onReady: o
8902
8902
  };
@@ -9089,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9089
9089
  }) => {
9090
9090
  const c = o.store.getVarSubmitConfig(o.formID);
9091
9091
  return i = watch(u, (g) => {
9092
- var p, m, b, _, v, y, C, T, E, V, k, x;
9093
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 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 = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : 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 = (x = c == null ? void 0 : c.display_type) != null ? x : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9092
+ var p, m, b, _, v, y, C, T, E, w, k, F;
9093
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 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 = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (w = c == null ? void 0 : c.label_col) != null ? w : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9094
9094
  }, {
9095
9095
  immediate: !0
9096
9096
  }), !1;
@@ -9188,7 +9188,7 @@ function _useFormModel() {
9188
9188
  }), m = ref({});
9189
9189
  return watch(p, (b) => {
9190
9190
  m.value = {}, b != null && b.length && b.forEach((_) => {
9191
- var C, T, E, V, k, x, F;
9191
+ var C, T, E, w, k, F, R;
9192
9192
  const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
9193
9193
  switch (m.value[v] = void 0, !0) {
9194
9194
  case a.value:
@@ -9198,10 +9198,10 @@ function _useFormModel() {
9198
9198
  m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
9199
9199
  break;
9200
9200
  case s.value:
9201
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (V = _.cpy_dft_val) != null ? V : y == null ? void 0 : y[v]) != null ? k : void 0);
9201
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (w = _.cpy_dft_val) != null ? w : y == null ? void 0 : y[v]) != null ? k : void 0);
9202
9202
  break;
9203
9203
  case i.value:
9204
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (F = (x = _.del_dft_val) != null ? x : y == null ? void 0 : y[v]) != null ? F : void 0);
9204
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = _.del_dft_val) != null ? F : y == null ? void 0 : y[v]) != null ? R : void 0);
9205
9205
  break;
9206
9206
  }
9207
9207
  }), n.store.setModel(t.formID, m.value);
@@ -9286,56 +9286,56 @@ const getProps$p = () => ({
9286
9286
  }) {
9287
9287
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9288
9288
  _useFormModel();
9289
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && R.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), x = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9290
- var K, z, Q;
9289
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
9290
+ var K, H, Q;
9291
9291
  switch (!0) {
9292
9292
  case u.value:
9293
9293
  return (K = E.value) != null ? K : [];
9294
9294
  case c.value:
9295
- return (z = k.value) != null ? z : [];
9295
+ return (H = k.value) != null ? H : [];
9296
9296
  case g.value:
9297
- return (Q = F.value) != null ? Q : [];
9297
+ return (Q = R.value) != null ? Q : [];
9298
9298
  case p.value:
9299
9299
  return [];
9300
9300
  }
9301
9301
  return [];
9302
- }), I = computed(() => {
9303
- var K, z, Q, Z;
9302
+ }), A = computed(() => {
9303
+ var K, H, Q, Z;
9304
9304
  switch (!0) {
9305
9305
  case u.value:
9306
- return (K = V.value) != null ? K : [];
9306
+ return (K = w.value) != null ? K : [];
9307
9307
  case c.value:
9308
- return (z = x.value) != null ? z : [];
9308
+ return (H = F.value) != null ? H : [];
9309
9309
  case g.value:
9310
- return (Q = O.value) != null ? Q : [];
9310
+ return (Q = $.value) != null ? Q : [];
9311
9311
  case p.value:
9312
- return (Z = w.value) != null ? Z : [];
9312
+ return (Z = D.value) != null ? Z : [];
9313
9313
  }
9314
9314
  return [];
9315
- }), $ = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => $.value || C.value), M = computed(() => C.value), D = ref({
9315
+ }), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), N = ref({
9316
9316
  kgWidth: 0
9317
9317
  }), L = computed(() => {
9318
9318
  var K;
9319
- return !!(m.value || q.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9319
+ return !!(m.value || ae.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9320
9320
  }), G = computed(() => {
9321
- var K, z;
9322
- return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9321
+ var K, H;
9322
+ return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9323
9323
  }), P = computed(() => {
9324
- var K, z;
9325
- return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9326
- }), U = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
9324
+ var K, H;
9325
+ return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9326
+ }), B = computed(() => m.value ? 398 : N.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
9327
9327
  _useResizeObserver$1(X);
9328
- const re = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
9329
- var z, Q;
9328
+ const re = _useTitle(), ee = computed(() => m.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
9329
+ var H, Q;
9330
9330
  let K = "kg-submit";
9331
- return q.isFullscreen && (K += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
9332
- }), q = reactive({
9331
+ return ae.isFullscreen && (K += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
9332
+ }), ae = reactive({
9333
9333
  isFullscreen: !1
9334
- }), H = computed(() => {
9335
- var K, z, Q, Z;
9334
+ }), V = computed(() => {
9335
+ var K, H, Q, Z;
9336
9336
  switch ((K = T.value) == null ? void 0 : K.layout) {
9337
9337
  case "horizontal":
9338
- switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9338
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9339
9339
  case KG_WIDTH_UNIT.SPAN:
9340
9340
  return {
9341
9341
  span: (Q = T.value) == null ? void 0 : Q.label_col
@@ -9350,11 +9350,11 @@ const getProps$p = () => ({
9350
9350
  default:
9351
9351
  return;
9352
9352
  }
9353
- }), ee = computed(() => {
9354
- var K, z, Q;
9353
+ }), x = computed(() => {
9354
+ var K, H, Q;
9355
9355
  switch ((K = T.value) == null ? void 0 : K.layout) {
9356
9356
  case "horizontal":
9357
- switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9357
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9358
9358
  case KG_WIDTH_UNIT.SPAN:
9359
9359
  return {
9360
9360
  span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
@@ -9366,16 +9366,16 @@ const getProps$p = () => ({
9366
9366
  return;
9367
9367
  }
9368
9368
  });
9369
- watch(N, (K, z) => {
9370
- K === !0 && J(), z === !0 && K === !1 && le();
9369
+ watch(ue, (K, H) => {
9370
+ K === !0 && W(), H === !0 && K === !1 && q();
9371
9371
  }, {
9372
9372
  immediate: !0
9373
9373
  }), watch(T, (K) => {
9374
- K != null && K.dft_width && (D.value.kgWidth = K.dft_width);
9374
+ K != null && K.dft_width && (N.value.kgWidth = K.dft_width);
9375
9375
  }, {
9376
9376
  immediate: !0
9377
9377
  });
9378
- function J() {
9378
+ function W() {
9379
9379
  var K;
9380
9380
  s.store.emit(a.formID, "open", {
9381
9381
  isCreating: u.value,
@@ -9384,13 +9384,13 @@ const getProps$p = () => ({
9384
9384
  isDeleting: p.value,
9385
9385
  row: o.selectedRow.value,
9386
9386
  model: s.model
9387
- }), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (q.isFullscreen = !0);
9387
+ }), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
9388
9388
  }
9389
- function le() {
9389
+ function q() {
9390
9390
  var K;
9391
- D.value.kgWidth = ((K = T.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
9391
+ N.value.kgWidth = ((K = T.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, ae.isFullscreen = !1, s.store.emit(a.formID, "close");
9392
9392
  }
9393
- function ue() {
9393
+ function te() {
9394
9394
  switch (!0) {
9395
9395
  case u.value:
9396
9396
  a.store.setIsCreating(a.formID, !1);
@@ -9406,8 +9406,8 @@ const getProps$p = () => ({
9406
9406
  break;
9407
9407
  }
9408
9408
  }
9409
- async function de() {
9410
- var K, z;
9409
+ async function J() {
9410
+ var K, H;
9411
9411
  try {
9412
9412
  if (await s.store.emit(a.formID, "beforeOk", {
9413
9413
  rules: Y,
@@ -9415,16 +9415,16 @@ const getProps$p = () => ({
9415
9415
  }))
9416
9416
  return;
9417
9417
  try {
9418
- await ((K = W.value) == null ? void 0 : K.validate());
9418
+ await ((K = z.value) == null ? void 0 : K.validate());
9419
9419
  } catch (Z) {
9420
9420
  KgUtil.throwIfNotFormError(Z);
9421
9421
  }
9422
- switch (await ((z = W.value) == null ? void 0 : z.validate()), !0) {
9422
+ switch (await ((H = z.value) == null ? void 0 : H.validate()), !0) {
9423
9423
  case u.value:
9424
- await me();
9424
+ await de();
9425
9425
  break;
9426
9426
  case c.value:
9427
- await he();
9427
+ await fe();
9428
9428
  break;
9429
9429
  case g.value:
9430
9430
  await _e();
@@ -9437,9 +9437,9 @@ const getProps$p = () => ({
9437
9437
  KgUtil.throwIfNotFormError(Q);
9438
9438
  }
9439
9439
  }
9440
- async function me() {
9441
- var z, Q, Z, ne, ae, oe, se;
9442
- const K = (z = b.value) == null ? void 0 : z.cmd;
9440
+ async function de() {
9441
+ var H, Q, Z, ne, oe, se, ie;
9442
+ const K = (H = b.value) == null ? void 0 : H.cmd;
9443
9443
  if (!K) {
9444
9444
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9445
9445
  VarButton: b.value
@@ -9451,18 +9451,18 @@ const getProps$p = () => ({
9451
9451
  await httpClient().request({
9452
9452
  method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9453
9453
  url: K,
9454
- params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
9454
+ params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
9455
9455
  data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9456
- }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9457
- } catch (ie) {
9458
- console.error(ie);
9456
+ }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9457
+ } catch (le) {
9458
+ console.error(le);
9459
9459
  } finally {
9460
9460
  a.store.setIsCreatingRequesting(a.formID, !1);
9461
9461
  }
9462
9462
  }
9463
- async function he() {
9464
- var z, Q, Z, ne, ae, oe, se;
9465
- const K = (z = _.value) == null ? void 0 : z.cmd;
9463
+ async function fe() {
9464
+ var H, Q, Z, ne, oe, se, ie;
9465
+ const K = (H = _.value) == null ? void 0 : H.cmd;
9466
9466
  if (!K) {
9467
9467
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9468
9468
  VarButton: _.value
@@ -9473,18 +9473,18 @@ const getProps$p = () => ({
9473
9473
  a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9474
9474
  method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9475
9475
  url: K,
9476
- params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9476
+ params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9477
9477
  data: toRaw(s.model.value)
9478
- }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe);
9479
- } catch (ie) {
9480
- console.error(ie);
9478
+ }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
9479
+ } catch (le) {
9480
+ console.error(le);
9481
9481
  } finally {
9482
9482
  a.store.setIsUpdatingRequesting(a.formID, !1);
9483
9483
  }
9484
9484
  }
9485
9485
  async function _e() {
9486
- var z, Q, Z, ne, ae, oe, se;
9487
- const K = (z = v.value) == null ? void 0 : z.cmd;
9486
+ var H, Q, Z, ne, oe, se, ie;
9487
+ const K = (H = v.value) == null ? void 0 : H.cmd;
9488
9488
  if (!K) {
9489
9489
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9490
9490
  VarButton: v.value
@@ -9493,22 +9493,22 @@ const getProps$p = () => ({
9493
9493
  }
9494
9494
  try {
9495
9495
  a.store.setIsCopyingRequesting(a.formID, !0);
9496
- const ie = toRaw(s.model.value);
9497
- delete ie.id, await httpClient().request({
9496
+ const le = toRaw(s.model.value);
9497
+ delete le.id, await httpClient().request({
9498
9498
  method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9499
9499
  url: K,
9500
- params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9500
+ params: KgVarUtil.parseCommandParameter((oe = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9501
9501
  data: toRaw(s.model.value)
9502
- }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9503
- } catch (ie) {
9504
- console.error(ie);
9502
+ }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9503
+ } catch (le) {
9504
+ console.error(le);
9505
9505
  } finally {
9506
9506
  a.store.setIsCopyingRequesting(a.formID, !1);
9507
9507
  }
9508
9508
  }
9509
9509
  async function ve() {
9510
- var z, Q, Z, ne, ae, oe, se;
9511
- const K = (z = y.value) == null ? void 0 : z.cmd;
9510
+ var H, Q, Z, ne, oe, se, ie;
9511
+ const K = (H = y.value) == null ? void 0 : H.cmd;
9512
9512
  if (!K) {
9513
9513
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9514
9514
  VarButton: y.value
@@ -9520,61 +9520,61 @@ const getProps$p = () => ({
9520
9520
  method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9521
9521
  url: K,
9522
9522
  params: {
9523
- ids: (ae = (ne = o.selectedRows.value) == null ? void 0 : ne.map((ie) => {
9524
- var ce, ge, pe;
9525
- return (pe = ie[(ge = (ce = y.value) == null ? void 0 : ce.del_param_clm) != null ? ge : "id"]) != null ? pe : "";
9526
- })) != null ? ae : []
9523
+ ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
9524
+ var ge, me, he;
9525
+ return (he = le[(me = (ge = y.value) == null ? void 0 : ge.del_param_clm) != null ? me : "id"]) != null ? he : "";
9526
+ })) != null ? oe : []
9527
9527
  }
9528
9528
  }, {
9529
9529
  joinParamsToUrl: !0
9530
- }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9531
- } catch (ie) {
9532
- console.error(ie);
9530
+ }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9531
+ } catch (le) {
9532
+ console.error(le);
9533
9533
  } finally {
9534
9534
  a.store.setIsDeletingRequesting(a.formID, !1);
9535
9535
  }
9536
9536
  }
9537
- function fe(K) {
9537
+ function pe(K) {
9538
9538
  var Q, Z;
9539
- const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
9540
- return isFunction$2(z) ? createVNode(KgForm.Item, {
9539
+ const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
9540
+ return isFunction$2(H) ? createVNode(KgForm.Item, {
9541
9541
  kgVarName: K.var_nam,
9542
9542
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9543
9543
  kgRules: Y.value[K.var_nam],
9544
- onKgSubmit: de
9544
+ onKgSubmit: J
9545
9545
  }, {
9546
9546
  control: ({
9547
9547
  varName: ne,
9548
- props: ae,
9549
- model: oe,
9550
- varConfig: se,
9551
- varProfileDetail: ie,
9552
- varSubmitField: ce
9553
- }) => z({
9548
+ props: oe,
9549
+ model: se,
9550
+ varConfig: ie,
9551
+ varProfileDetail: le,
9552
+ varSubmitField: ge
9553
+ }) => H({
9554
9554
  varName: ne,
9555
- props: ae,
9556
- model: oe,
9557
- varConfig: se,
9558
- varProfileDetail: ie,
9559
- varSubmitField: ce
9555
+ props: oe,
9556
+ model: se,
9557
+ varConfig: ie,
9558
+ varProfileDetail: le,
9559
+ varSubmitField: ge
9560
9560
  })
9561
9561
  }) : createVNode(KgForm.Item, {
9562
9562
  kgVarName: K.var_nam,
9563
9563
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9564
9564
  kgRules: Y.value[K.var_nam],
9565
- onKgSubmit: de
9565
+ onKgSubmit: J
9566
9566
  }, null);
9567
9567
  }
9568
9568
  function be() {
9569
9569
  var Q;
9570
- let K, z;
9570
+ let K, H;
9571
9571
  return createVNode(KgResizable, {
9572
9572
  kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9573
9573
  kgMinWidth: G.value,
9574
9574
  kgMaxWidth: P.value,
9575
- kgWidth: U.value,
9575
+ kgWidth: B.value,
9576
9576
  kgDisabled: L.value,
9577
- "onUpdate:kgWidth": (Z) => D.value.kgWidth = Z
9577
+ "onUpdate:kgWidth": (Z) => N.value.kgWidth = Z
9578
9578
  }, {
9579
9579
  default: () => [createVNode(Spin, {
9580
9580
  spinning: C.value
@@ -9582,22 +9582,22 @@ const getProps$p = () => ({
9582
9582
  default: () => {
9583
9583
  var Z, ne;
9584
9584
  return [createVNode(KgForm, {
9585
- ref: W,
9585
+ ref: z,
9586
9586
  model: s.model.value,
9587
9587
  layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
9588
- labelCol: H.value,
9589
- wrapperCol: ee.value
9588
+ labelCol: V.value,
9589
+ wrapperCol: x.value
9590
9590
  }, {
9591
9591
  default: () => [createVNode("div", {
9592
9592
  ref: X
9593
- }, [R.value.length > 0 && createVNode(Row, {
9593
+ }, [U.value.length > 0 && createVNode(Row, {
9594
9594
  gutter: 12
9595
- }, _isSlot$7(K = R.value.map(fe)) ? K : {
9595
+ }, _isSlot$7(K = U.value.map(pe)) ? K : {
9596
9596
  default: () => [K]
9597
- }), R.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
9597
+ }), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
9598
9598
  gutter: 12
9599
- }, _isSlot$7(z = I.value.map(fe)) ? z : {
9600
- default: () => [z]
9599
+ }, _isSlot$7(H = A.value.map(pe)) ? H : {
9600
+ default: () => [H]
9601
9601
  }), m.value && createVNode("div", {
9602
9602
  style: "text-align: center; padding: 6px 0 12px;"
9603
9603
  }, [n.t("kg.confirmDelete")])])]
@@ -9607,22 +9607,22 @@ const getProps$p = () => ({
9607
9607
  });
9608
9608
  }
9609
9609
  function ye() {
9610
- let K, z;
9610
+ let K, H;
9611
9611
  return createVNode("div", null, [createVNode(Button, {
9612
9612
  type: "primary",
9613
- ghost: !A.value,
9614
- disabled: A.value,
9615
- onClick: ue
9613
+ ghost: !I.value,
9614
+ disabled: I.value,
9615
+ onClick: te
9616
9616
  }, _isSlot$7(K = n.t("kg.cancel")) ? K : {
9617
9617
  default: () => [K]
9618
9618
  }), createVNode(Button, {
9619
9619
  type: "primary",
9620
- disabled: M.value,
9621
- loading: $.value,
9620
+ disabled: O.value,
9621
+ loading: M.value,
9622
9622
  danger: !!p.value,
9623
- onClick: de
9624
- }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
9625
- default: () => [z]
9623
+ onClick: J
9624
+ }, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
9625
+ default: () => [H]
9626
9626
  })]);
9627
9627
  }
9628
9628
  function Se() {
@@ -9632,24 +9632,24 @@ const getProps$p = () => ({
9632
9632
  }
9633
9633
  function Ce() {
9634
9634
  return createVNode(KgSubmitHeader, {
9635
- isFullscreen: q.isFullscreen,
9636
- "onUpdate:isFullscreen": (K) => q.isFullscreen = K,
9635
+ isFullscreen: ae.isFullscreen,
9636
+ "onUpdate:isFullscreen": (K) => ae.isFullscreen = K,
9637
9637
  kgShowFullscreenButton: !m.value,
9638
9638
  kgShowConfigButton: !m.value && e.kgShowConfigButton,
9639
- onKgCancel: ue
9639
+ onKgCancel: te
9640
9640
  }, null);
9641
9641
  }
9642
9642
  return onUnmounted(() => {
9643
9643
  s.store.dispose(a.formID);
9644
9644
  }), () => createVNode(Drawer, {
9645
- visible: N.value,
9645
+ visible: ue.value,
9646
9646
  placement: "right",
9647
9647
  closable: !1,
9648
9648
  maskClosable: !1,
9649
9649
  keyboard: !1,
9650
9650
  destroyOnClose: !0,
9651
- width: te.value,
9652
- class: B.value,
9651
+ width: ee.value,
9652
+ class: ce.value,
9653
9653
  "kg-frm-id": a.formID
9654
9654
  }, {
9655
9655
  title: Se,
@@ -9891,8 +9891,8 @@ const getProps$l = () => ({
9891
9891
  }) => {
9892
9892
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9893
9893
  return s = watch(l, (c) => {
9894
- var g, p, m, b, _, v, y, C, T, E, V;
9895
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 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 = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9894
+ var g, p, m, b, _, v, y, C, T, E, w;
9895
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 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 = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (w = u == null ? void 0 : u.button_display_type) != null ? w : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9896
9896
  }, {
9897
9897
  immediate: !0
9898
9898
  }), !1;
@@ -10164,10 +10164,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10164
10164
  var T;
10165
10165
  let y, C;
10166
10166
  return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
10167
- var V;
10167
+ var w;
10168
10168
  return createVNode(Menu.Item, {
10169
10169
  key: E.id,
10170
- class: E.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10170
+ class: E.id === ((w = a.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
10171
10171
  "kg-var-nam": E.grd_var_nam,
10172
10172
  onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
10173
10173
  }, {
@@ -10320,6 +10320,8 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
10320
10320
  setSelectedRows(e, t) {
10321
10321
  this.selectedRowsMap.set(e, unref(toRaw(t)));
10322
10322
  },
10323
+ setSelecte(e, t, r) {
10324
+ },
10323
10325
  setIsRetrieved(e, t) {
10324
10326
  this.isRetrievedMap.set(e, unref(t));
10325
10327
  },
@@ -10453,296 +10455,339 @@ const KgTable$1 = "", KgTable = defineComponent({
10453
10455
  slots: t,
10454
10456
  emit: r
10455
10457
  }) {
10456
- const n = inject("$dayjs", dayjs), a = useKg(), o = useKgVar(), s = useKgSearch(), i = useKgButton(), l = useKgTable();
10457
- s.onSearch((N) => {
10458
- D(N);
10459
- }), s.onReset(() => {
10460
- D(!0);
10461
- });
10462
- const u = ref(!1), {
10463
- columns: c,
10464
- scrollX: g
10458
+ const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
10459
+ i.onSearch((V) => {
10460
+ G(V);
10461
+ }), i.onReset(() => {
10462
+ G(!0);
10463
+ }), u.store.$onAction(async ({
10464
+ name: V,
10465
+ args: x
10466
+ }) => {
10467
+ switch (V) {
10468
+ case "setSelecte":
10469
+ if (x[0] === s.formID) {
10470
+ const W = x[1], q = x[2];
10471
+ switch (!0) {
10472
+ case (q && !M.value.includes(W[w.value])):
10473
+ P([...M.value, W[w.value]]);
10474
+ break;
10475
+ case (!q && M.value.includes(W[w.value])):
10476
+ P(without$1(M.value, W[w.value]));
10477
+ break;
10478
+ }
10479
+ }
10480
+ break;
10481
+ }
10482
+ });
10483
+ const c = ref(!1), g = ref([]), {
10484
+ columns: p,
10485
+ scrollX: m
10465
10486
  } = _useColumns(), {
10466
- isLoading: p
10467
- } = _useLoading(), m = ref(null);
10468
- _useResizeObserver(m);
10469
- const b = computed(() => o.store.getVarButtonSearch(o.formID)), _ = computed(() => {
10470
- var N;
10471
- return ((N = o.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
10472
- }), v = computed(() => {
10473
- var N;
10474
- return ((N = o.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
10475
- }), y = computed(() => {
10476
- var N;
10477
- return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
10487
+ isLoading: b
10488
+ } = _useLoading(), _ = ref(null);
10489
+ _useResizeObserver(_);
10490
+ const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
10491
+ var V;
10492
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10478
10493
  }), C = computed(() => {
10479
- var N;
10480
- return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
10494
+ var V;
10495
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10481
10496
  }), T = computed(() => {
10482
- var N, B;
10483
- return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
10497
+ var V;
10498
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10484
10499
  }), E = computed(() => {
10485
- var N, B;
10486
- return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
10487
- }), V = computed(() => {
10488
- var N;
10489
- return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
10500
+ var V;
10501
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10502
+ }), w = computed(() => {
10503
+ var V, x;
10504
+ return (x = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? x : "id";
10490
10505
  }), k = computed(() => {
10491
- var N, B;
10492
- return (B = (N = b.value) == null ? void 0 : N.cmd) != null ? B : null;
10493
- }), x = computed(() => {
10494
- var B, q, H, ee, J, le, ue;
10495
- let N = {
10506
+ var V, x;
10507
+ return JSON.parse((x = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? x : "[]");
10508
+ }), F = computed(() => {
10509
+ var V;
10510
+ return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10511
+ }), R = computed(() => {
10512
+ var V, x;
10513
+ return (x = (V = v.value) == null ? void 0 : V.cmd) != null ? x : null;
10514
+ }), $ = computed(() => {
10515
+ var x, W, q, te, J, de, fe;
10516
+ let V = {
10496
10517
  pageNo: I.pageIndex,
10497
10518
  pageSize: I.pageSize,
10498
- ...$,
10499
- ...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
10519
+ ...O,
10520
+ ...(W = (x = i.model) == null ? void 0 : x.value) != null ? W : {}
10500
10521
  };
10501
- return b.value && (N = {
10502
- ...N,
10503
- ...KgVarUtil.parseCommandParameter((ee = (H = b.value) == null ? void 0 : H.cmd_prm) != null ? ee : "")
10504
- }), (J = o.varGridConfig.value) != null && J.cmd_prm && (N = {
10505
- ...N,
10506
- ...KgVarUtil.parseCommandParameter((le = o.varGridConfig.value.cmd_prm) != null ? le : "")
10507
- }), ((ue = o.varGridConfig.value) == null ? void 0 : ue.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
10508
- }), F = computed(() => {
10509
- var N;
10510
- if (((N = o.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
10522
+ return v.value && (V = {
10523
+ ...V,
10524
+ ...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
10525
+ }), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
10526
+ ...V,
10527
+ ...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
10528
+ }), ((fe = s.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
10529
+ }), D = computed(() => {
10530
+ var V;
10531
+ if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10511
10532
  return {
10512
10533
  fixed: "left",
10513
10534
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10514
- hideSelectAll: !_.value,
10515
- selectedRowKeys: R,
10535
+ hideSelectAll: !y.value,
10536
+ selectedRowKeys: M,
10516
10537
  preserveSelectedRowKeys: !1,
10517
- onSelect: (B) => G(B),
10518
- onChange: (B) => _.value && L(B)
10538
+ onSelect: (x) => B(x),
10539
+ onChange: (x) => y.value && P(x)
10519
10540
  };
10520
- }), O = computed(() => {
10521
- let N = "kg-table";
10522
- return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
10523
- }), w = ref([]), R = ref([]), I = reactive({
10541
+ }), U = computed(() => {
10542
+ let V = "kg-table";
10543
+ return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
10544
+ }), A = ref([]), M = ref([]), I = reactive({
10524
10545
  pageIndex: 1,
10525
10546
  pageSize: 10,
10526
10547
  total: 0
10527
- }), $ = reactive({
10548
+ }), O = reactive({
10528
10549
  column: void 0,
10529
10550
  order: void 0
10530
- }), A = watch(V, (N) => {
10531
- N && (setTimeout(() => A()), I.pageSize = N), u.value = !0;
10551
+ }), N = watch(F, (V) => {
10552
+ V && (setTimeout(() => N()), I.pageSize = V), c.value = !0;
10532
10553
  });
10533
- watch(E, (N) => {
10534
- N.length > 0 && !N.includes(I.pageSize) && (I.pageSize = V.value);
10535
- }), watch([k, v, s.isReady], ([N, B, q]) => {
10536
- N && B && q && !l.store.getIsRetrieved(o.formID) && D(!0);
10554
+ watch(k, (V) => {
10555
+ V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
10556
+ }), watch([R, C, i.isReady], ([V, x, W]) => {
10557
+ V && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
10537
10558
  }, {
10538
10559
  immediate: !0
10539
10560
  }), onUnmounted(() => {
10540
- l.store.dispose(o.formID);
10561
+ u.store.dispose(s.formID);
10541
10562
  });
10542
- function M(N, B) {
10543
- if (!!F.value) {
10544
- if (!B) {
10545
- R.value = [], l.store.setSelectedRows(o.formID, []);
10563
+ function L(V, x) {
10564
+ if (!!D.value) {
10565
+ if (!x) {
10566
+ M.value = [], u.store.setSelectedRows(s.formID, []);
10546
10567
  return;
10547
10568
  }
10548
- switch (N == null ? void 0 : N.detail) {
10569
+ switch (V == null ? void 0 : V.detail) {
10549
10570
  case 1:
10550
- R.value = [B[T.value]], l.store.setSelectedRows(o.formID, R.value.map((q) => {
10551
- var H;
10552
- return (H = w.value) == null ? void 0 : H.find((ee) => ee[T.value] === q);
10553
- }).filter((q) => !!q));
10571
+ M.value = [x[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
10572
+ var q;
10573
+ return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
10574
+ }).filter((W) => !!W));
10554
10575
  break;
10555
10576
  case 2:
10556
- l.store.emit(o.formID, "rowDoubleClick", B);
10577
+ u.store.emit(s.formID, "rowDoubleClick", x);
10557
10578
  break;
10558
10579
  }
10559
10580
  }
10560
10581
  }
10561
- function D(N = !1) {
10562
- const B = watch(u, (H) => {
10563
- H && (setTimeout(() => B()), q());
10582
+ function G(V = !1) {
10583
+ const x = watch(c, (q) => {
10584
+ q && (setTimeout(() => x()), W());
10564
10585
  }, {
10565
10586
  immediate: !0
10566
10587
  });
10567
- async function q() {
10568
- var H, ee;
10569
- if (!k.value) {
10588
+ async function W() {
10589
+ var q, te;
10590
+ if (!R.value) {
10570
10591
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10571
- VarButton: b.value
10592
+ VarButton: v.value
10572
10593
  });
10573
10594
  return;
10574
10595
  }
10575
- N && (I.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10596
+ V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
10576
10597
  try {
10577
10598
  const J = await httpClient().request({
10578
10599
  method: "GET",
10579
- url: k.value,
10580
- params: KgUtil.parseParams(x.value, o.formID, n)
10600
+ url: R.value,
10601
+ params: KgUtil.parseParams($.value, s.formID, n)
10581
10602
  }, {
10582
10603
  successMessageMode: "none"
10583
10604
  });
10584
- J ? isArrayLike(J) ? (w.value = J, I.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], I.total = (ee = J.total) != null ? ee : 0) : (w.value = [], I.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10605
+ switch (!0) {
10606
+ case !J:
10607
+ A.value = [], I.total = 0;
10608
+ break;
10609
+ case isArrayLike(J):
10610
+ A.value = J, I.total = J.length;
10611
+ break;
10612
+ case ("total" in J && "records" in J):
10613
+ A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
10614
+ break;
10615
+ }
10616
+ u.store.emit(s.formID, "retrieve", {
10617
+ page: J,
10618
+ datas: A
10619
+ }), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
10585
10620
  } catch (J) {
10586
10621
  throw J;
10587
10622
  } finally {
10588
- l.store.setIsRetrieving(o.formID, !1);
10623
+ u.store.setIsRetrieving(s.formID, !1);
10589
10624
  }
10590
10625
  }
10591
10626
  }
10592
- function L(N) {
10593
- R.value = N, l.store.setSelectedRows(o.formID, R.value.map((B) => {
10594
- var q;
10595
- return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10596
- }).filter((B) => !!B));
10627
+ function P(V) {
10628
+ M.value = V, u.store.setSelectedRows(s.formID, M.value.map((x) => {
10629
+ var W;
10630
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
10631
+ }).filter((x) => !!x));
10597
10632
  }
10598
- function G(N) {
10599
- var B, q;
10600
- switch (_.value) {
10633
+ function B(V) {
10634
+ var x, W;
10635
+ switch (y.value) {
10601
10636
  case !0:
10602
10637
  {
10603
- const H = N[T.value];
10604
- R.value.includes(H) ? R.value = without$1(R.value, H) : R.value = [...(B = R.value) != null ? B : [], H];
10638
+ const q = V[w.value];
10639
+ M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(x = M.value) != null ? x : [], q];
10605
10640
  }
10606
10641
  break;
10607
10642
  case !1:
10608
10643
  {
10609
- const H = N[T.value];
10610
- (q = R.value) != null && q.includes(H) ? R.value = [] : R.value = [H];
10644
+ const q = V[w.value];
10645
+ (W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
10611
10646
  }
10612
10647
  break;
10613
10648
  }
10614
- l.store.setSelectedRows(o.formID, R.value.map((H) => {
10615
- var ee;
10616
- return (ee = w.value) == null ? void 0 : ee.find((J) => J[T.value] === H);
10617
- }).filter((H) => !!H));
10649
+ u.store.setSelectedRows(s.formID, M.value.map((q) => {
10650
+ var te;
10651
+ return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
10652
+ }).filter((q) => !!q));
10618
10653
  }
10619
- function P(N, B) {
10620
- B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
10654
+ function z(V, x) {
10655
+ x.width = V, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, V);
10621
10656
  }
10622
- async function U(N, B, q, H) {
10623
- var ee;
10624
- switch (H.action) {
10657
+ async function Y(V, x, W, q) {
10658
+ var te;
10659
+ switch (q.action) {
10625
10660
  case "sort":
10626
10661
  {
10627
10662
  await nextTick();
10628
- let J = q;
10629
- J.order ? ($.column = (ee = J.field) != null ? ee : void 0, $.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : ($.column = void 0, $.order = void 0), D(!0);
10663
+ let J = W;
10664
+ J.order ? (O.column = (te = J.field) != null ? te : void 0, O.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (O.column = void 0, O.order = void 0), G(!0);
10630
10665
  }
10631
10666
  break;
10632
10667
  }
10633
10668
  }
10634
- function W(N, B) {
10635
- B !== I.pageSize ? (I.pageIndex = 1, I.pageSize = B) : I.pageIndex = N, D();
10669
+ function X(V, x) {
10670
+ V ? g.value = [x[w.value]] : g.value = [];
10671
+ }
10672
+ function re(V, x) {
10673
+ x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = V, G();
10636
10674
  }
10637
- function Y(N) {
10638
- R.value = [N[T.value]], l.store.setSelectedRows(o.formID, R.value.map((B) => {
10639
- var q;
10640
- return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10641
- }).filter((B) => !!B)), i.click(o.formID, KG_BUTTON_TYPE.UPDATE);
10675
+ function ee(V) {
10676
+ M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((x) => {
10677
+ var W;
10678
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
10679
+ }).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
10642
10680
  }
10643
- function X({
10644
- title: N,
10645
- column: B
10681
+ function ue({
10682
+ title: V,
10683
+ column: x
10646
10684
  }) {
10647
- switch (B.dataIndex) {
10685
+ switch (x.dataIndex) {
10648
10686
  case "index":
10649
10687
  return createVNode(KgTableSetting, null, null);
10650
10688
  default:
10651
- return createVNode("pre", null, [N]);
10689
+ return createVNode("pre", null, [V]);
10652
10690
  }
10653
10691
  }
10654
- function re({
10655
- column: N,
10656
- index: B,
10657
- record: q,
10658
- value: H,
10659
- text: ee
10692
+ function ce({
10693
+ column: V,
10694
+ index: x,
10695
+ record: W,
10696
+ value: q,
10697
+ text: te
10660
10698
  }) {
10661
10699
  let J = "";
10662
- N.customRender ? J = N.customRender({
10663
- index: B,
10664
- record: q,
10665
- column: N,
10666
- text: ee,
10667
- value: H,
10668
- renderIndex: B
10669
- }) : J = H;
10670
- const le = createVNode(KgTableCell, {
10671
- kgRow: q,
10700
+ V.customRender ? J = V.customRender({
10701
+ index: x,
10702
+ record: W,
10703
+ column: V,
10704
+ text: te,
10705
+ value: q,
10706
+ renderIndex: x
10707
+ }) : J = q;
10708
+ const de = createVNode(KgTableCell, {
10709
+ kgRow: W,
10672
10710
  kgValue: J,
10673
- kgVarName: N.dataIndex,
10674
- onKgUpdateLinkClick: () => Y(q)
10711
+ kgVarName: V.dataIndex,
10712
+ onKgUpdateLinkClick: () => ee(W)
10675
10713
  }, null);
10676
10714
  return t.bodyCell ? t.bodyCell({
10677
- value: H,
10678
- record: q,
10679
- index: B,
10680
- column: N,
10681
- defaultRender: le
10682
- }) : le;
10715
+ value: q,
10716
+ record: W,
10717
+ index: x,
10718
+ column: V,
10719
+ defaultRender: de
10720
+ }) : de;
10683
10721
  }
10684
- function te() {
10685
- return !v.value && !l.store.getIsRetrieved(o.formID) ? a.t("kg.KgTable.emptyText") : a.t("kg.emptyText");
10722
+ function ae() {
10723
+ return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
10686
10724
  }
10687
- return () => createVNode("div", {
10688
- class: O.value,
10689
- "kg-frm-id": o.formID,
10690
- ref: m
10691
- }, [createVNode(Table, {
10692
- class: "kg-flex-table",
10693
- size: "small",
10694
- scroll: {
10695
- x: g.value,
10696
- y: "auto"
10697
- },
10698
- pagination: !1,
10699
- showSorterTooltip: !1,
10700
- columns: c.value,
10701
- dataSource: w.value,
10702
- loading: p.value,
10703
- rowKey: T.value,
10704
- rowSelection: F.value,
10705
- customRow: (N) => ({
10706
- onClick: (B) => M(B, N)
10707
- }),
10708
- onResizeColumn: P,
10709
- onChange: U
10710
- }, {
10711
- headerCell: X,
10712
- bodyCell: re,
10713
- emptyText: te
10714
- }), (y.value || C.value) && createVNode("div", {
10715
- class: "kg-table-bottom"
10716
- }, [createVNode("div", {
10717
- class: "left"
10718
- }, [y.value && createVNode(KgTableInfo, {
10719
- kgShowClearCheck: R.value.length > 0,
10720
- kgShowClearTable: I.total > 0,
10721
- kgShowLocate: R.value.length === 1,
10722
- kgTotal: R.value.length,
10723
- kgDisabled: p.value
10724
- }, null)]), createVNode("div", {
10725
- class: "right"
10726
- }, [C.value && createVNode(Pagination, {
10727
- size: "default",
10728
- current: I.pageIndex,
10729
- pageSize: I.pageSize,
10730
- pageSizeOptions: E.value.map((N) => String(N)),
10731
- total: I.total,
10732
- showSizeChanger: !0,
10733
- showQuickJumper: !1,
10734
- hideOnSinglePage: !1,
10735
- disabled: p.value || I.total === 0,
10736
- locale: {
10737
- page: ""
10738
- },
10739
- showTotal: (N, B) => a.t("kg.KgTable.totalText", {
10740
- from: B[0],
10741
- to: B[1],
10742
- total: N
10743
- }),
10744
- onChange: (N, B) => W(N, B)
10745
- }, null)])])]);
10725
+ return () => {
10726
+ var V;
10727
+ return createVNode("div", {
10728
+ class: U.value,
10729
+ "kg-frm-id": s.formID,
10730
+ ref: _
10731
+ }, [createVNode(Table, {
10732
+ class: "kg-flex-table",
10733
+ size: "small",
10734
+ scroll: {
10735
+ x: m.value,
10736
+ y: "auto"
10737
+ },
10738
+ pagination: !1,
10739
+ showSorterTooltip: !1,
10740
+ columns: p.value,
10741
+ dataSource: A.value,
10742
+ loading: b.value,
10743
+ rowKey: w.value,
10744
+ rowSelection: D.value,
10745
+ expandColumnWidth: 28,
10746
+ expandedRowKeys: g.value,
10747
+ customRow: (x) => ({
10748
+ onClick: (W) => L(W, x)
10749
+ }),
10750
+ onResizeColumn: z,
10751
+ onChange: Y,
10752
+ onExpand: X
10753
+ }, {
10754
+ headerCell: ue,
10755
+ bodyCell: ce,
10756
+ emptyText: ae,
10757
+ expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
10758
+ }), (T.value || E.value) && createVNode("div", {
10759
+ class: "kg-table-bottom"
10760
+ }, [createVNode("div", {
10761
+ class: "left"
10762
+ }, [T.value && createVNode(KgTableInfo, {
10763
+ kgShowClearCheck: M.value.length > 0,
10764
+ kgShowClearTable: I.total > 0,
10765
+ kgShowLocate: M.value.length === 1,
10766
+ kgTotal: M.value.length,
10767
+ kgDisabled: b.value
10768
+ }, null)]), createVNode("div", {
10769
+ class: "right"
10770
+ }, [E.value && createVNode(Pagination, {
10771
+ size: "default",
10772
+ current: I.pageIndex,
10773
+ pageSize: I.pageSize,
10774
+ pageSizeOptions: k.value.map((x) => String(x)),
10775
+ total: I.total,
10776
+ showSizeChanger: !0,
10777
+ showQuickJumper: !1,
10778
+ hideOnSinglePage: !1,
10779
+ disabled: b.value || I.total === 0,
10780
+ locale: {
10781
+ page: ""
10782
+ },
10783
+ showTotal: (x, W) => o.t("kg.KgTable.totalText", {
10784
+ from: W[0],
10785
+ to: W[1],
10786
+ total: x
10787
+ }),
10788
+ onChange: (x, W) => re(x, W)
10789
+ }, null)])])]);
10790
+ };
10746
10791
  }
10747
10792
  }), getProps$f = () => ({
10748
10793
  kgButton: Object,
@@ -11068,7 +11113,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11068
11113
  }
11069
11114
  let u = null;
11070
11115
  const c = async () => {
11071
- var _, v, y, C, T, E, V;
11116
+ var _, v, y, C, T, E, w;
11072
11117
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11073
11118
  const b = a.selectedRows.value;
11074
11119
  try {
@@ -11077,7 +11122,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11077
11122
  url: l,
11078
11123
  params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11079
11124
  data: b != null ? b : []
11080
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (E = n.search).value) == null || V.call(E, !0));
11125
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
11081
11126
  } catch (k) {
11082
11127
  console.error(k);
11083
11128
  } finally {
@@ -11854,7 +11899,7 @@ const leftVarProfileDetailColumns = (e) => {
11854
11899
  row: y,
11855
11900
  model: C
11856
11901
  }) => {
11857
- var E, V, k;
11902
+ var E, w, k;
11858
11903
  const T = i.store.getSystemVarProfileDetails(i.formID);
11859
11904
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11860
11905
  case b:
@@ -11865,24 +11910,24 @@ const leftVarProfileDetailColumns = (e) => {
11865
11910
  if (y != null && y.id)
11866
11911
  try {
11867
11912
  s.store.setIsLoading(n.formID, !0);
11868
- const x = await QueryByID({
11913
+ const F = await QueryByID({
11869
11914
  params: {
11870
11915
  id: y.id
11871
11916
  }
11872
11917
  });
11873
- l.value = l.value.map((O) => {
11874
- var R;
11875
- const w = (R = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : R.find((I) => I.var_nam === O.var_nam);
11876
- return w ? {
11877
- ...O,
11878
- ...w,
11879
- id: O.id
11880
- } : O;
11918
+ l.value = l.value.map(($) => {
11919
+ var U;
11920
+ const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
11921
+ return D ? {
11922
+ ...$,
11923
+ ...D,
11924
+ id: $.id
11925
+ } : $;
11881
11926
  });
11882
- const F = (V = (E = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? V : [];
11883
- u.value = l.value.filter((O) => F.includes(O.var_nam)).map((O) => O.id);
11884
- } catch (x) {
11885
- throw x;
11927
+ const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
11928
+ u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
11929
+ } catch (F) {
11930
+ throw F;
11886
11931
  } finally {
11887
11932
  s.store.setIsLoading(n.formID, !1);
11888
11933
  }
@@ -11936,18 +11981,18 @@ const leftVarProfileDetailColumns = (e) => {
11936
11981
  showSearch: !0,
11937
11982
  showSelectAll: !1,
11938
11983
  searchPlaceholder: " ",
11939
- filterOption: (E, V) => {
11984
+ filterOption: (E, w) => {
11940
11985
  var k;
11941
- return !!((k = V.var_nam) != null && k.includes(E));
11986
+ return !!((k = w.var_nam) != null && k.includes(E));
11942
11987
  }
11943
11988
  }, {
11944
11989
  children: ({
11945
11990
  direction: E,
11946
- filteredItems: V,
11991
+ filteredItems: w,
11947
11992
  selectedKeys: k,
11948
- disabled: x,
11949
- onItemSelectAll: F,
11950
- onItemSelect: O
11993
+ disabled: F,
11994
+ onItemSelectAll: R,
11995
+ onItemSelect: $
11951
11996
  }) => createVNode(Table, {
11952
11997
  pagination: !1,
11953
11998
  class: "kg-flex-table",
@@ -11958,15 +12003,15 @@ const leftVarProfileDetailColumns = (e) => {
11958
12003
  },
11959
12004
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11960
12005
  rowKey: "id",
11961
- dataSource: V,
11962
- customRow: (w) => ({
11963
- onClick: (R) => m(R, w, E, k)
12006
+ dataSource: w,
12007
+ customRow: (D) => ({
12008
+ onClick: (U) => m(U, D, E, k)
11964
12009
  }),
11965
12010
  rowSelection: g({
11966
- disabled: x,
12011
+ disabled: F,
11967
12012
  selectedKeys: k,
11968
- onItemSelectAll: F,
11969
- onItemSelect: O
12013
+ onItemSelectAll: R,
12014
+ onItemSelect: $
11970
12015
  })
11971
12016
  }, null)
11972
12017
  })
@@ -11986,9 +12031,9 @@ const leftVarProfileDetailColumns = (e) => {
11986
12031
  disabled: b || C.disabled
11987
12032
  }),
11988
12033
  onSelectAll(C, T) {
11989
- const E = T.filter((V) => !V.disabled).map(({
11990
- key: V
11991
- }) => V);
12034
+ const E = T.filter((w) => !w.disabled).map(({
12035
+ key: w
12036
+ }) => w);
11992
12037
  v(E, C);
11993
12038
  },
11994
12039
  onSelect({
@@ -12130,18 +12175,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12130
12175
  var P;
12131
12176
  return s.value > 0 ? !1 : ((P = i.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12132
12177
  }), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
12133
- var P, U;
12134
- return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code));
12178
+ var P, B;
12179
+ return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12135
12180
  }), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
12136
12181
  kgHeight: g.value
12137
12182
  }), y = ref({
12138
12183
  visible: !1
12139
12184
  });
12140
12185
  let C;
12141
- const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), V = computed(() => {
12142
- var P, U, W;
12143
- if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
12144
- return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
12186
+ const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
12187
+ var P, B, z;
12188
+ if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12189
+ return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
12145
12190
  }), k = computed(() => {
12146
12191
  var P;
12147
12192
  switch ((P = E.value) == null ? void 0 : P.primary_flg) {
@@ -12152,20 +12197,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12152
12197
  default:
12153
12198
  return !0;
12154
12199
  }
12155
- }), x = computed(() => {
12200
+ }), F = computed(() => {
12156
12201
  var P;
12157
12202
  return ((P = i.value) == null ? void 0 : P.vis_flg) === 1;
12158
- }), F = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), O = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
12203
+ }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12159
12204
  let P = "kg-search";
12160
- return x.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
12205
+ return F.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
12161
12206
  });
12162
12207
  watch(n.currentVarProfileDetails, (P) => {
12163
12208
  if (P) {
12164
- const U = {};
12165
- P.forEach((W) => {
12166
- U[W.var_nam] = "";
12167
- }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(U)), x.value ? (C == null || C(), C = watch(_, (W) => {
12168
- W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12209
+ const B = {};
12210
+ P.forEach((z) => {
12211
+ B[z.var_nam] = "";
12212
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
12213
+ z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12169
12214
  }, {
12170
12215
  immediate: !0
12171
12216
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12175,49 +12220,49 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12175
12220
  }), onUnmounted(() => {
12176
12221
  a.store.dispose(n.formID);
12177
12222
  });
12178
- function R(P = !1) {
12179
- x.value ? _.value && _.value.validate().then(() => {
12223
+ function U(P = !1) {
12224
+ F.value ? _.value && _.value.validate().then(() => {
12180
12225
  a.store.emit(n.formID, "search", {
12181
12226
  resetPageIndex: P
12182
12227
  });
12183
- }).catch((U) => {
12228
+ }).catch((B) => {
12184
12229
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12185
- e: U
12230
+ e: B
12186
12231
  });
12187
12232
  }) : a.store.emit(n.formID, "search", {
12188
12233
  resetPageIndex: P
12189
12234
  });
12190
12235
  }
12191
- a.store.setSearchFn(n.formID, R);
12192
- function I() {
12236
+ a.store.setSearchFn(n.formID, U);
12237
+ function A() {
12193
12238
  var P;
12194
- (P = _.value) == null || P.resetFields(), x.value ? _.value && _.value.validate().then(() => {
12239
+ (P = _.value) == null || P.resetFields(), F.value ? _.value && _.value.validate().then(() => {
12195
12240
  a.store.emit(n.formID, "reset");
12196
- }).catch((U) => {
12241
+ }).catch((B) => {
12197
12242
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12198
- e: U
12243
+ e: B
12199
12244
  });
12200
12245
  }) : a.store.emit(n.formID, "reset");
12201
12246
  }
12202
- a.store.setResetFn(n.formID, I);
12203
- function $() {
12204
- return R(!0), Promise.resolve(!0);
12247
+ a.store.setResetFn(n.formID, A);
12248
+ function M() {
12249
+ return U(!0), Promise.resolve(!0);
12205
12250
  }
12206
- function A() {
12251
+ function I() {
12207
12252
  var P;
12208
12253
  return createVNode("div", {
12209
12254
  class: "title",
12210
12255
  onClick: G
12211
12256
  }, [((P = t == null ? void 0 : t.KgSearch) == null ? void 0 : P.left) && createVNode("div", {
12212
12257
  class: "kg-search-title-left",
12213
- onClick: (U) => {
12214
- U.stopPropagation(), U.preventDefault();
12258
+ onClick: (B) => {
12259
+ B.stopPropagation(), B.preventDefault();
12215
12260
  }
12216
12261
  }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12217
12262
  }
12218
- function M() {
12219
- var P, U, W, Y;
12220
- return ((W = (U = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12263
+ function O() {
12264
+ var P, B, z, Y;
12265
+ return ((z = (B = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12221
12266
  value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12222
12267
  "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
12223
12268
  disabled: m.value,
@@ -12225,10 +12270,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12225
12270
  }, {
12226
12271
  default: () => {
12227
12272
  var X, re;
12228
- return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
12229
- value: te.id
12273
+ return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
12274
+ value: ee.id
12230
12275
  }, {
12231
- default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
12276
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
12232
12277
  }));
12233
12278
  },
12234
12279
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -12246,30 +12291,30 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12246
12291
  hostFormID: n.formID
12247
12292
  }, null)]);
12248
12293
  }
12249
- function D() {
12250
- var P, U, W, Y, X;
12251
- return createVNode(Fragment, null, [M(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12294
+ function N() {
12295
+ var P, B, z, Y, X;
12296
+ return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12252
12297
  type: "primary",
12253
12298
  ghost: !p.value,
12254
12299
  disabled: p.value,
12255
- onClick: I,
12300
+ onClick: A,
12256
12301
  class: "kg-search-btn-reset"
12257
12302
  }, {
12258
12303
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12259
12304
  }), createVNode(KgButton.Item, {
12260
12305
  kgType: KG_BUTTON_TYPE.SEARCH,
12261
- kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
12306
+ kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12262
12307
  kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12263
- kgText: V.value,
12308
+ kgText: w.value,
12264
12309
  kgColor: (X = E.value) == null ? void 0 : X.color,
12265
12310
  kgPrimary: k.value,
12266
12311
  kgLoading: b.value,
12267
- onKgClick: $
12312
+ onKgClick: M
12268
12313
  }, null)]);
12269
12314
  }
12270
12315
  function L() {
12271
12316
  return createVNode(Spin, {
12272
- spinning: O.value
12317
+ spinning: $.value
12273
12318
  }, {
12274
12319
  default: () => {
12275
12320
  var P;
@@ -12281,11 +12326,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12281
12326
  gutter: 6
12282
12327
  }, {
12283
12328
  default: () => {
12284
- var U;
12285
- return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12286
- kgVarName: W.var_nam,
12329
+ var B;
12330
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
12331
+ kgVarName: z.var_nam,
12287
12332
  kgContext: KG_FORM_CONTEXT.SEARCH,
12288
- onKgSubmit: () => R(!0)
12333
+ onKgSubmit: () => U(!0)
12289
12334
  }, null))];
12290
12335
  }
12291
12336
  })]
@@ -12301,10 +12346,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12301
12346
  "onUpdate:kgHeight": (P) => v.value.kgHeight = P,
12302
12347
  kgMinHeight: g.value,
12303
12348
  kgMaxHeight: c.value,
12304
- class: w.value,
12349
+ class: D.value,
12305
12350
  "kg-frm-id": n.formID
12306
12351
  }, {
12307
- default: () => [x.value && createVNode("div", {
12352
+ default: () => [F.value && createVNode("div", {
12308
12353
  class: "ant-collapse ant-collapse-icon-position-left"
12309
12354
  }, [createVNode("div", {
12310
12355
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12315,11 +12360,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12315
12360
  default: () => [createVNode("div", {
12316
12361
  class: "ant-collapse-header"
12317
12362
  }, [createVNode(Spin, {
12318
- spinning: F.value
12363
+ spinning: R.value
12319
12364
  }, {
12320
- default: () => [A(), createVNode("div", {
12365
+ default: () => [I(), createVNode("div", {
12321
12366
  class: "ant-collapse-extra"
12322
- }, [D()])]
12367
+ }, [N()])]
12323
12368
  })])]
12324
12369
  }), createVNode("div", {
12325
12370
  class: "ant-collapse-content ant-collapse-content-active"
@@ -12391,13 +12436,13 @@ function useMagicKeys(e = {}) {
12391
12436
  }
12392
12437
  function m(_, v) {
12393
12438
  var y, C;
12394
- const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), V = [E, T].filter(Boolean);
12439
+ const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
12395
12440
  E && (v ? s.add(_.code) : s.delete(_.code));
12396
- for (const k of V)
12441
+ for (const k of w)
12397
12442
  c.add(k), g(k, v);
12398
12443
  T === "meta" && !v ? (u.forEach((k) => {
12399
12444
  s.delete(k), g(k, !1);
12400
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((k) => u.add(k));
12445
+ }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
12401
12446
  }
12402
12447
  r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12403
12448
  const b = new Proxy(l, {
@@ -12796,112 +12841,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12796
12841
  columnWidth: 32,
12797
12842
  hideSelectAll: !0,
12798
12843
  selectedRowKeys: g,
12799
- onSelect: (I) => x(I)
12844
+ onSelect: (A) => F(A)
12800
12845
  }), m = ref({
12801
12846
  visible: !1
12802
12847
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12803
- var I;
12804
- return !!c.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12848
+ var A;
12849
+ return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12805
12850
  }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12806
- watch(() => n.getSelectedVar, (I) => {
12807
- I ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12851
+ watch(() => n.getSelectedVar, (A) => {
12852
+ A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12808
12853
  }, {
12809
12854
  immediate: !0
12810
- }), watch(() => n.getSelectedVarCatalog, async (I) => {
12811
- var $, A;
12812
- l.value.var_text = ($ = I == null ? void 0 : I.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
12855
+ }), watch(() => n.getSelectedVarCatalog, async (A) => {
12856
+ var M, I;
12857
+ l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
12813
12858
  });
12814
- async function C(I = !1) {
12815
- var $, A, M;
12859
+ async function C(A = !1) {
12860
+ var M, I, O;
12816
12861
  a.value = !0;
12817
12862
  try {
12818
12863
  const {
12819
- records: D
12864
+ records: N
12820
12865
  } = await List({
12821
12866
  params: {
12822
12867
  pageNo: 1,
12823
12868
  pageSize: 999,
12824
12869
  frm_id: e == null ? void 0 : e.value,
12825
- var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12870
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12826
12871
  column: "frm_id,locale_id,cust_lvl",
12827
12872
  order: "asc"
12828
12873
  }
12829
12874
  });
12830
- if (c.value = null, u.value = D != null ? D : [], I) {
12875
+ if (c.value = null, u.value = N != null ? N : [], A) {
12831
12876
  const L = u.value.find((G) => {
12832
12877
  var P;
12833
12878
  return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12834
12879
  });
12835
12880
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12836
12881
  } else
12837
- n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
12838
- } catch (D) {
12839
- Logger.debug(D == null ? void 0 : D.message);
12882
+ n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
12883
+ } catch (N) {
12884
+ Logger.debug(N == null ? void 0 : N.message);
12840
12885
  } finally {
12841
12886
  a.value = !1;
12842
12887
  }
12843
12888
  }
12844
12889
  async function T() {
12845
- var I, $, A;
12890
+ var A, M, I;
12846
12891
  try {
12847
- o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
12848
- const M = new VarCatalog({
12849
- ...($ = n.getSelectedVarCatalog) != null ? $ : {},
12850
- var_text: (A = l.value) == null ? void 0 : A.var_text
12892
+ o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12893
+ const O = new VarCatalog({
12894
+ ...(M = n.getSelectedVarCatalog) != null ? M : {},
12895
+ var_text: (I = l.value) == null ? void 0 : I.var_text
12851
12896
  });
12852
- M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
12853
- data: M
12897
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
12898
+ data: O
12854
12899
  }, {
12855
12900
  successMessageMode: "none"
12856
12901
  }), message.success({
12857
12902
  content: t.t("kg.KgVarConfig.createSuccess")
12858
12903
  }), await C()) : (await Edit({
12859
- data: M
12904
+ data: O
12860
12905
  }, {
12861
12906
  successMessageMode: "none"
12862
12907
  }), message.success({
12863
12908
  content: t.t("kg.KgVarConfig.saveSuccess")
12864
12909
  }), await C(!0)) : (await Add({
12865
- data: M
12910
+ data: O
12866
12911
  }, {
12867
12912
  successMessageMode: "none"
12868
12913
  }), message.success({
12869
12914
  content: t.t("kg.KgVarConfig.createSuccess")
12870
12915
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
12871
- } catch (M) {
12872
- KgUtil.throwIfNotFormError(M);
12916
+ } catch (O) {
12917
+ KgUtil.throwIfNotFormError(O);
12873
12918
  } finally {
12874
12919
  o.value = !1;
12875
12920
  }
12876
12921
  }
12877
12922
  function E({
12878
- isAllForm: I,
12879
- isAllLanguage: $
12923
+ isAllForm: A,
12924
+ isAllLanguage: M
12880
12925
  }) {
12881
- var A, M, D;
12926
+ var I, O, N;
12882
12927
  c.value = new VarCatalog({
12883
12928
  id: "",
12884
12929
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12885
- grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
12886
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12887
- frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12888
- locale_id: $ ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
12930
+ grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
12931
+ var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
12932
+ frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12933
+ locale_id: M ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
12889
12934
  var_text: ""
12890
12935
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12891
12936
  }
12892
- function V() {
12893
- var $;
12937
+ function w() {
12938
+ var M;
12894
12939
  u.value = without$1(u.value, c.value), c.value = null;
12895
- const I = ($ = u.value[0]) != null ? $ : null;
12896
- n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
12940
+ const A = (M = u.value[0]) != null ? M : null;
12941
+ n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
12897
12942
  }
12898
12943
  function k() {
12899
12944
  KgUtil.confirm({
12900
12945
  onOk: async () => {
12901
- var I;
12946
+ var A;
12902
12947
  await Delete({
12903
12948
  params: {
12904
- id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12949
+ id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
12905
12950
  }
12906
12951
  }, {
12907
12952
  successMessageMode: "none",
@@ -12912,23 +12957,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12912
12957
  }
12913
12958
  });
12914
12959
  }
12915
- function x(I) {
12916
- var $;
12917
- (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== I.id && (unref(c) ? KgUtil.confirm({
12960
+ function F(A) {
12961
+ var M;
12962
+ ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
12918
12963
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12919
12964
  onOk: () => {
12920
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12965
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
12921
12966
  }
12922
- }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12967
+ }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
12923
12968
  }
12924
- function F() {
12969
+ function R() {
12925
12970
  m.value.visible = !0;
12926
12971
  }
12927
- function O() {
12972
+ function $() {
12928
12973
  return createVNode("div", {
12929
12974
  class: "buttons"
12930
12975
  }, [createVNode(Button, {
12931
- onClick: F,
12976
+ onClick: R,
12932
12977
  disabled: b.value,
12933
12978
  type: "primary"
12934
12979
  }, {
@@ -12943,8 +12988,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12943
12988
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12944
12989
  })]);
12945
12990
  }
12946
- function w() {
12947
- let I, $;
12991
+ function D() {
12992
+ let A, M;
12948
12993
  return createVNode("div", {
12949
12994
  class: "form"
12950
12995
  }, [createVNode(Form, {
@@ -12961,7 +13006,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12961
13006
  }, {
12962
13007
  default: () => [createVNode(Textarea, {
12963
13008
  value: l.value.var_text,
12964
- "onUpdate:value": (A) => l.value.var_text = A,
13009
+ "onUpdate:value": (I) => l.value.var_text = I,
12965
13010
  disabled: !n.getSelectedVarCatalog
12966
13011
  }, null), createVNode("button", {
12967
13012
  hidden: !0
@@ -12971,26 +13016,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12971
13016
  class: "buttons"
12972
13017
  }, [createVNode(Button, {
12973
13018
  disabled: v.value,
12974
- onClick: V
12975
- }, _isSlot(I = t.t("common.cancelText")) ? I : {
12976
- default: () => [I]
13019
+ onClick: w
13020
+ }, _isSlot(A = t.t("common.cancelText")) ? A : {
13021
+ default: () => [A]
12977
13022
  }), createVNode(Button, {
12978
13023
  loading: o.value,
12979
13024
  disabled: y.value,
12980
13025
  onClick: T,
12981
13026
  type: "primary"
12982
- }, _isSlot($ = t.t("common.save")) ? $ : {
12983
- default: () => [$]
13027
+ }, _isSlot(M = t.t("common.save")) ? M : {
13028
+ default: () => [M]
12984
13029
  })])]);
12985
13030
  }
12986
- function R(I) {
12987
- var A;
12988
- let $ = "";
12989
- return I.id || ($ += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
13031
+ function U(A) {
13032
+ var I;
13033
+ let M = "";
13034
+ return A.id || (M += " ant-table-row-create"), A.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (M += " ant-table-row-selected "), M;
12990
13035
  }
12991
13036
  return () => createVNode("div", {
12992
13037
  class: "kg-var-config-modal-var-var-catalog"
12993
- }, [O(), createVNode(Table, {
13038
+ }, [$(), createVNode(Table, {
12994
13039
  pagination: !1,
12995
13040
  class: "kg-flex-table",
12996
13041
  size: "small",
@@ -13002,14 +13047,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13002
13047
  rowKey: "id",
13003
13048
  dataSource: u.value,
13004
13049
  loading: a.value,
13005
- rowClassName: R,
13050
+ rowClassName: U,
13006
13051
  rowSelection: p.value,
13007
- customRow: (I) => ({
13008
- onClick: () => x(I)
13052
+ customRow: (A) => ({
13053
+ onClick: () => F(A)
13009
13054
  })
13010
- }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
13055
+ }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13011
13056
  visible: m.value.visible,
13012
- "onUpdate:visible": (I) => m.value.visible = I,
13057
+ "onUpdate:visible": (A) => m.value.visible = A,
13013
13058
  onKgOk: E
13014
13059
  }, null)]);
13015
13060
  }
@@ -13338,22 +13383,22 @@ const KgWarehouse$1 = "", getProps = () => ({
13338
13383
  customRender: ({
13339
13384
  record: E
13340
13385
  }) => {
13341
- var k, x, F;
13342
- const V = E;
13343
- return createVNode("div", null, [createVNode("div", null, [(k = V.whDsc) != null ? k : " ", createTextVNode(" - "), (x = V.whId) != null ? x : " "]), createVNode("div", {
13386
+ var k, F, R;
13387
+ const w = E;
13388
+ return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
13344
13389
  class: "address"
13345
- }, [(F = V.adrId) != null ? F : " "])]);
13390
+ }, [(R = w.adrId) != null ? R : " "])]);
13346
13391
  }
13347
13392
  }]), c = ref([]), g = computed(() => {
13348
- var V;
13349
- const E = (V = o.value) == null ? void 0 : V.toUpperCase();
13393
+ var w;
13394
+ const E = (w = o.value) == null ? void 0 : w.toUpperCase();
13350
13395
  return c.value.filter((k) => {
13351
- var x, F, O, w, R, I;
13352
- return ((F = (x = k.whDsc) == null ? void 0 : x.toUpperCase()) == null ? void 0 : F.includes(E)) || ((w = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(E)) || ((I = (R = k.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : I.includes(E));
13396
+ var F, R, $, D, U, A;
13397
+ return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = ($ = k.whId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : D.includes(E)) || ((A = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : A.includes(E));
13353
13398
  });
13354
13399
  }), p = computed(() => {
13355
- var E, V;
13356
- return ((V = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13400
+ var E, w;
13401
+ return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
13357
13402
  });
13358
13403
  watch(n.visible, (E) => {
13359
13404
  !p.value || (E ? b() : _());
@@ -13403,14 +13448,14 @@ const KgWarehouse$1 = "", getProps = () => ({
13403
13448
  l.value = !1;
13404
13449
  }
13405
13450
  }
13406
- function C(E, V) {
13451
+ function C(E, w) {
13407
13452
  var k;
13408
13453
  switch (E.detail) {
13409
13454
  case 1:
13410
- ((k = i.value) == null ? void 0 : k.id) === V.id ? i.value = null : i.value = V;
13455
+ ((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
13411
13456
  break;
13412
13457
  case 2:
13413
- i.value = V, v();
13458
+ i.value = w, v();
13414
13459
  break;
13415
13460
  }
13416
13461
  }
@@ -13420,8 +13465,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13420
13465
  placement: "bottomRight"
13421
13466
  }, {
13422
13467
  default: () => {
13423
- var E, V;
13424
- return [((E = s.value) == null ? void 0 : E.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13468
+ var E, w;
13469
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13425
13470
  }
13426
13471
  }), createVNode(KgModal, {
13427
13472
  visible: n.visible.value,
@@ -13463,9 +13508,9 @@ const KgWarehouse$1 = "", getProps = () => ({
13463
13508
  columns: u,
13464
13509
  class: "kg-flex-table",
13465
13510
  customRow: (E) => {
13466
- var V;
13511
+ var w;
13467
13512
  return {
13468
- class: E.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13513
+ class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
13469
13514
  onClick: (k) => C(k, E)
13470
13515
  };
13471
13516
  }