@kengic/vue 0.5.21 → 0.5.22

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 P = String(M);
4589
+ return !P || P.length >= I ? M : "" + Array(I + 1 - P.length).join(O) + M;
4590
+ }, E = { s: T, z: function(M) {
4591
+ var I = -M.utcOffset(), O = Math.abs(I), P = Math.floor(O / 60), L = O % 60;
4592
+ return (I <= 0 ? "+" : "-") + T(P, 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 P = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(P, g), G = O - L < 0, N = I.clone().add(P + (G ? -1 : 1), g);
4597
+ return +(-(P + (O - L) / (G ? L - N : N - 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, P) {
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("-");
4616
- if (!L && P.length > 1)
4617
- return $(P[0]);
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 N = I.split("-");
4616
+ if (!L && N.length > 1)
4617
+ return M(N[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 !P && L && (w = L), L || !P && 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(P) {
4639
+ var L = P.date, G = P.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
- var P = L.match(v);
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);
4647
+ var N = L.match(v);
4648
+ if (N) {
4649
+ var B = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
4650
+ return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[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, P) {
4663
+ var L = $(O);
4664
+ return this.startOf(P) <= L && L <= this.endOf(P);
4665
+ }, I.isAfter = function(O, P) {
4666
+ return $(O) < this.startOf(P);
4667
+ }, I.isBefore = function(O, P) {
4668
+ return this.endOf(P) < $(O);
4669
+ }, I.$g = function(O, P, L) {
4670
+ return D.u(O) ? this[P] : 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" : "");
4682
- switch (P) {
4675
+ }, I.startOf = function(O, P) {
4676
+ var L = this, G = !!D.u(P) || P, N = D.p(O), B = function(ae, V) {
4677
+ var K = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
4678
+ return G ? K : K.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
+ switch (N) {
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, P) {
4705
+ var L, G = D.p(O), N = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = N + "Date", L[b] = N + "Date", L[g] = N + "Month", L[m] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[G], z = G === u ? this.$D + (P - this.$W) : P;
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, P) {
4713
+ return this.clone().$set(O, P);
4714
+ }, I.get = function(O) {
4715
+ return this[D.p(O)]();
4716
+ }, I.add = function(O, P) {
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 N = D.p(P), B = function(X) {
4720
+ var re = $(G);
4721
+ return D.w(re.date(re.date() + Math.round(X * O)), G);
4722
4722
  };
4723
- if (P === g)
4724
- return this.set(g, this.$M + M);
4725
- if (P === m)
4726
- return this.set(m, this.$y + M);
4727
- if (P === u)
4728
- return U(1);
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();
4723
+ if (N === g)
4724
+ return this.set(g, this.$M + O);
4725
+ if (N === m)
4726
+ return this.set(m, this.$y + O);
4727
+ if (N === u)
4728
+ return B(1);
4729
+ if (N === c)
4730
+ return B(7);
4731
+ var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + O * z;
4732
+ return D.w(Y, this);
4733
+ }, I.subtract = function(O, P) {
4734
+ return this.add(-1 * O, P);
4735
+ }, I.format = function(O) {
4736
+ var P = 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", N = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, K, W, q) {
4740
+ return V && (V[K] || V(P, G)) || W[K].slice(0, q);
4741
+ }, ue = function(V) {
4742
+ return D.s(B % 12 || 12, V, "0");
4743
+ }, ce = L.meridiem || function(V, K, 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: N };
4747
+ return G.replace(y, function(V, K) {
4748
+ return K || ae[V] || N.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, P, L) {
4753
+ var G, N = D.p(P), 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)[N] || 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, P) {
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, P, !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(P) {
6181
+ U.push(P);
6182
6182
  }
6183
- function A(D) {
6184
- I.push(D);
6183
+ function I(P) {
6184
+ A.push(P);
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 (P) {
6197
+ throw triggerSubscriptions(A, P), P;
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((P) => (triggerSubscriptions(U, P), P)).catch((P) => (triggerSubscriptions(A, P), Promise.reject(P))) : (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, P, 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 = ((P = m.value) == null ? void 0 : P.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, P;
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((P = (O = m.value) == null ? void 0 : O.placeholder) != null ? P : " ");
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, P, L, G, N, 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 = (P = (O = m.value) == null ? void 0 : O.crt_width) != null ? P : 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 = (N = m.value) == null ? void 0 : N.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, P;
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((P = get(F.value, "$el.parentElement.style.marginLeft")) != null ? P : "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, P;
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 && ((P = m.value) == null ? void 0 : P.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 x, H, Q;
9291
9291
  switch (!0) {
9292
9292
  case u.value:
9293
- return (K = E.value) != null ? K : [];
9293
+ return (x = E.value) != null ? x : [];
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 x, H, Q, Z;
9304
9304
  switch (!0) {
9305
9305
  case u.value:
9306
- return (K = V.value) != null ? K : [];
9306
+ return (x = w.value) != null ? x : [];
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), P = ref({
9316
9316
  kgWidth: 0
9317
9317
  }), L = computed(() => {
9318
- var K;
9319
- return !!(m.value || q.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9318
+ var x;
9319
+ return !!(m.value || ae.isFullscreen || ((x = T.value) == null ? void 0 : x.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;
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);
9321
+ var x, H;
9322
+ return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9323
+ }), N = computed(() => {
9324
+ var x, H;
9325
+ return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9326
+ }), B = computed(() => m.value ? 398 : P.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;
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({
9328
+ const re = _useTitle(), ee = computed(() => m.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.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
+ let x = "kg-submit";
9331
+ return ae.isFullscreen && (x += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9332
+ }), ae = reactive({
9333
9333
  isFullscreen: !1
9334
- }), H = computed(() => {
9335
- var K, z, Q, Z;
9336
- switch ((K = T.value) == null ? void 0 : K.layout) {
9334
+ }), V = computed(() => {
9335
+ var x, H, Q, Z;
9336
+ switch ((x = T.value) == null ? void 0 : x.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;
9355
- switch ((K = T.value) == null ? void 0 : K.layout) {
9353
+ }), K = computed(() => {
9354
+ var x, H, Q;
9355
+ switch ((x = T.value) == null ? void 0 : x.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,17 +9366,17 @@ 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, (x, H) => {
9370
+ x === !0 && W(), H === !0 && x === !1 && q();
9371
9371
  }, {
9372
9372
  immediate: !0
9373
- }), watch(T, (K) => {
9374
- K != null && K.dft_width && (D.value.kgWidth = K.dft_width);
9373
+ }), watch(T, (x) => {
9374
+ x != null && x.dft_width && (P.value.kgWidth = x.dft_width);
9375
9375
  }, {
9376
9376
  immediate: !0
9377
9377
  });
9378
- function J() {
9379
- var K;
9378
+ function W() {
9379
+ var x;
9380
9380
  s.store.emit(a.formID, "open", {
9381
9381
  isCreating: u.value,
9382
9382
  isUpdating: c.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
+ }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
9388
9388
  }
9389
- function le() {
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");
9389
+ function q() {
9390
+ var x;
9391
+ P.value.kgWidth = ((x = T.value) == null ? void 0 : x.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 x, 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 ((x = z.value) == null ? void 0 : x.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,10 +9437,10 @@ 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;
9443
- if (!K) {
9440
+ async function de() {
9441
+ var H, Q, Z, ne, oe, se, ie;
9442
+ const x = (H = b.value) == null ? void 0 : H.cmd;
9443
+ if (!x) {
9444
9444
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9445
9445
  VarButton: b.value
9446
9446
  });
@@ -9450,20 +9450,20 @@ const getProps$p = () => ({
9450
9450
  try {
9451
9451
  await httpClient().request({
9452
9452
  method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9453
- url: K,
9454
- params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
9453
+ url: x,
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;
9466
- if (!K) {
9463
+ async function fe() {
9464
+ var H, Q, Z, ne, oe, se, ie;
9465
+ const x = (H = _.value) == null ? void 0 : H.cmd;
9466
+ if (!x) {
9467
9467
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9468
9468
  VarButton: _.value
9469
9469
  });
@@ -9472,20 +9472,20 @@ const getProps$p = () => ({
9472
9472
  try {
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
- url: K,
9476
- params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9475
+ url: x,
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;
9488
- if (!K) {
9486
+ var H, Q, Z, ne, oe, se, ie;
9487
+ const x = (H = v.value) == null ? void 0 : H.cmd;
9488
+ if (!x) {
9489
9489
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9490
9490
  VarButton: v.value
9491
9491
  });
@@ -9493,23 +9493,23 @@ 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
- url: K,
9500
- params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9499
+ url: x,
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;
9512
- if (!K) {
9510
+ var H, Q, Z, ne, oe, se, ie;
9511
+ const x = (H = y.value) == null ? void 0 : H.cmd;
9512
+ if (!x) {
9513
9513
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9514
9514
  VarButton: y.value
9515
9515
  });
@@ -9518,63 +9518,63 @@ const getProps$p = () => ({
9518
9518
  try {
9519
9519
  a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
9520
9520
  method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9521
- url: K,
9521
+ url: x,
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(x) {
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, {
9541
- kgVarName: K.var_nam,
9539
+ const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9540
+ return isFunction$2(H) ? createVNode(KgForm.Item, {
9541
+ kgVarName: x.var_nam,
9542
9542
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9543
- kgRules: Y.value[K.var_nam],
9544
- onKgSubmit: de
9543
+ kgRules: Y.value[x.var_nam],
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
- kgVarName: K.var_nam,
9562
+ kgVarName: x.var_nam,
9563
9563
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9564
- kgRules: Y.value[K.var_nam],
9565
- onKgSubmit: de
9564
+ kgRules: Y.value[x.var_nam],
9565
+ onKgSubmit: J
9566
9566
  }, null);
9567
9567
  }
9568
9568
  function be() {
9569
9569
  var Q;
9570
- let K, z;
9570
+ let x, 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
- kgMaxWidth: P.value,
9575
- kgWidth: U.value,
9574
+ kgMaxWidth: N.value,
9575
+ kgWidth: B.value,
9576
9576
  kgDisabled: L.value,
9577
- "onUpdate:kgWidth": (Z) => D.value.kgWidth = Z
9577
+ "onUpdate:kgWidth": (Z) => P.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: K.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 : {
9596
- default: () => [K]
9597
- }), R.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
9595
+ }, _isSlot$7(x = U.value.map(pe)) ? x : {
9596
+ default: () => [x]
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 x, H;
9611
9611
  return createVNode("div", null, [createVNode(Button, {
9612
9612
  type: "primary",
9613
- ghost: !A.value,
9614
- disabled: A.value,
9615
- onClick: ue
9616
- }, _isSlot$7(K = n.t("kg.cancel")) ? K : {
9617
- default: () => [K]
9613
+ ghost: !I.value,
9614
+ disabled: I.value,
9615
+ onClick: te
9616
+ }, _isSlot$7(x = n.t("kg.cancel")) ? x : {
9617
+ default: () => [x]
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": (x) => ae.isFullscreen = x,
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
  }, {
@@ -10453,296 +10453,317 @@ const KgTable$1 = "", KgTable = defineComponent({
10453
10453
  slots: t,
10454
10454
  emit: r
10455
10455
  }) {
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
10456
+ const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
10457
+ i.onSearch((V) => {
10458
+ G(V);
10459
+ }), i.onReset(() => {
10460
+ G(!0);
10461
+ });
10462
+ const c = ref(!1), g = ref([]), {
10463
+ columns: p,
10464
+ scrollX: m
10465
10465
  } = _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;
10466
+ isLoading: b
10467
+ } = _useLoading(), _ = ref(null);
10468
+ _useResizeObserver(_);
10469
+ const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
10470
+ var V;
10471
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10478
10472
  }), C = computed(() => {
10479
- var N;
10480
- return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
10473
+ var V;
10474
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10481
10475
  }), T = computed(() => {
10482
- var N, B;
10483
- return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
10476
+ var V;
10477
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10484
10478
  }), 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;
10479
+ var V;
10480
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10481
+ }), w = computed(() => {
10482
+ var V, K;
10483
+ return (K = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? K : "id";
10490
10484
  }), 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 = {
10485
+ var V, K;
10486
+ return JSON.parse((K = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? K : "[]");
10487
+ }), F = computed(() => {
10488
+ var V;
10489
+ return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10490
+ }), R = computed(() => {
10491
+ var V, K;
10492
+ return (K = (V = v.value) == null ? void 0 : V.cmd) != null ? K : null;
10493
+ }), $ = computed(() => {
10494
+ var K, W, q, te, J, de, fe;
10495
+ let V = {
10496
10496
  pageNo: I.pageIndex,
10497
10497
  pageSize: I.pageSize,
10498
- ...$,
10499
- ...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
10498
+ ...O,
10499
+ ...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
10500
10500
  };
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)
10501
+ return v.value && (V = {
10502
+ ...V,
10503
+ ...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
10504
+ }), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
10505
+ ...V,
10506
+ ...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
10507
+ }), ((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;
10508
+ }), D = computed(() => {
10509
+ var V;
10510
+ if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10511
10511
  return {
10512
10512
  fixed: "left",
10513
10513
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10514
- hideSelectAll: !_.value,
10515
- selectedRowKeys: R,
10514
+ hideSelectAll: !y.value,
10515
+ selectedRowKeys: M,
10516
10516
  preserveSelectedRowKeys: !1,
10517
- onSelect: (B) => G(B),
10518
- onChange: (B) => _.value && L(B)
10517
+ onSelect: (K) => B(K),
10518
+ onChange: (K) => y.value && N(K)
10519
10519
  };
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({
10520
+ }), U = computed(() => {
10521
+ let V = "kg-table";
10522
+ return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
10523
+ }), A = ref([]), M = ref([]), I = reactive({
10524
10524
  pageIndex: 1,
10525
10525
  pageSize: 10,
10526
10526
  total: 0
10527
- }), $ = reactive({
10527
+ }), O = reactive({
10528
10528
  column: void 0,
10529
10529
  order: void 0
10530
- }), A = watch(V, (N) => {
10531
- N && (setTimeout(() => A()), I.pageSize = N), u.value = !0;
10530
+ }), P = watch(F, (V) => {
10531
+ V && (setTimeout(() => P()), I.pageSize = V), c.value = !0;
10532
10532
  });
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);
10533
+ watch(k, (V) => {
10534
+ V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
10535
+ }), watch([R, C, i.isReady], ([V, K, W]) => {
10536
+ V && K && W && !u.store.getIsRetrieved(s.formID) && G(!0);
10537
10537
  }, {
10538
10538
  immediate: !0
10539
10539
  }), onUnmounted(() => {
10540
- l.store.dispose(o.formID);
10540
+ u.store.dispose(s.formID);
10541
10541
  });
10542
- function M(N, B) {
10543
- if (!!F.value) {
10544
- if (!B) {
10545
- R.value = [], l.store.setSelectedRows(o.formID, []);
10542
+ function L(V, K) {
10543
+ if (!!D.value) {
10544
+ if (!K) {
10545
+ M.value = [], u.store.setSelectedRows(s.formID, []);
10546
10546
  return;
10547
10547
  }
10548
- switch (N == null ? void 0 : N.detail) {
10548
+ switch (V == null ? void 0 : V.detail) {
10549
10549
  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));
10550
+ M.value = [K[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
10551
+ var q;
10552
+ return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
10553
+ }).filter((W) => !!W));
10554
10554
  break;
10555
10555
  case 2:
10556
- l.store.emit(o.formID, "rowDoubleClick", B);
10556
+ u.store.emit(s.formID, "rowDoubleClick", K);
10557
10557
  break;
10558
10558
  }
10559
10559
  }
10560
10560
  }
10561
- function D(N = !1) {
10562
- const B = watch(u, (H) => {
10563
- H && (setTimeout(() => B()), q());
10561
+ function G(V = !1) {
10562
+ const K = watch(c, (q) => {
10563
+ q && (setTimeout(() => K()), W());
10564
10564
  }, {
10565
10565
  immediate: !0
10566
10566
  });
10567
- async function q() {
10568
- var H, ee;
10569
- if (!k.value) {
10567
+ async function W() {
10568
+ var q, te;
10569
+ if (!R.value) {
10570
10570
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10571
- VarButton: b.value
10571
+ VarButton: v.value
10572
10572
  });
10573
10573
  return;
10574
10574
  }
10575
- N && (I.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10575
+ V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
10576
10576
  try {
10577
10577
  const J = await httpClient().request({
10578
10578
  method: "GET",
10579
- url: k.value,
10580
- params: KgUtil.parseParams(x.value, o.formID, n)
10579
+ url: R.value,
10580
+ params: KgUtil.parseParams($.value, s.formID, n)
10581
10581
  }, {
10582
10582
  successMessageMode: "none"
10583
10583
  });
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);
10584
+ switch (!0) {
10585
+ case !J:
10586
+ A.value = [], I.total = 0;
10587
+ break;
10588
+ case isArrayLike(J):
10589
+ A.value = J, I.total = J.length;
10590
+ break;
10591
+ case ("total" in J && "records" in J):
10592
+ A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
10593
+ break;
10594
+ }
10595
+ u.store.emit(s.formID, "retrieve", J), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
10585
10596
  } catch (J) {
10586
10597
  throw J;
10587
10598
  } finally {
10588
- l.store.setIsRetrieving(o.formID, !1);
10599
+ u.store.setIsRetrieving(s.formID, !1);
10589
10600
  }
10590
10601
  }
10591
10602
  }
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));
10603
+ function N(V) {
10604
+ M.value = V, u.store.setSelectedRows(s.formID, M.value.map((K) => {
10605
+ var W;
10606
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
10607
+ }).filter((K) => !!K));
10597
10608
  }
10598
- function G(N) {
10599
- var B, q;
10600
- switch (_.value) {
10609
+ function B(V) {
10610
+ var K, W;
10611
+ switch (y.value) {
10601
10612
  case !0:
10602
10613
  {
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];
10614
+ const q = V[w.value];
10615
+ M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
10605
10616
  }
10606
10617
  break;
10607
10618
  case !1:
10608
10619
  {
10609
- const H = N[T.value];
10610
- (q = R.value) != null && q.includes(H) ? R.value = [] : R.value = [H];
10620
+ const q = V[w.value];
10621
+ (W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
10611
10622
  }
10612
10623
  break;
10613
10624
  }
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));
10625
+ u.store.setSelectedRows(s.formID, M.value.map((q) => {
10626
+ var te;
10627
+ return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
10628
+ }).filter((q) => !!q));
10618
10629
  }
10619
- function P(N, B) {
10620
- B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
10630
+ function z(V, K) {
10631
+ K.width = V, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, V);
10621
10632
  }
10622
- async function U(N, B, q, H) {
10623
- var ee;
10624
- switch (H.action) {
10633
+ async function Y(V, K, W, q) {
10634
+ var te;
10635
+ switch (q.action) {
10625
10636
  case "sort":
10626
10637
  {
10627
10638
  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);
10639
+ let J = W;
10640
+ 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
10641
  }
10631
10642
  break;
10632
10643
  }
10633
10644
  }
10634
- function W(N, B) {
10635
- B !== I.pageSize ? (I.pageIndex = 1, I.pageSize = B) : I.pageIndex = N, D();
10645
+ function X(V, K) {
10646
+ V ? g.value = [K[w.value]] : g.value = [];
10647
+ }
10648
+ function re(V, K) {
10649
+ K !== I.pageSize ? (I.pageIndex = 1, I.pageSize = K) : I.pageIndex = V, G();
10636
10650
  }
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);
10651
+ function ee(V) {
10652
+ M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
10653
+ var W;
10654
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
10655
+ }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
10642
10656
  }
10643
- function X({
10644
- title: N,
10645
- column: B
10657
+ function ue({
10658
+ title: V,
10659
+ column: K
10646
10660
  }) {
10647
- switch (B.dataIndex) {
10661
+ switch (K.dataIndex) {
10648
10662
  case "index":
10649
10663
  return createVNode(KgTableSetting, null, null);
10650
10664
  default:
10651
- return createVNode("pre", null, [N]);
10665
+ return createVNode("pre", null, [V]);
10652
10666
  }
10653
10667
  }
10654
- function re({
10655
- column: N,
10656
- index: B,
10657
- record: q,
10658
- value: H,
10659
- text: ee
10668
+ function ce({
10669
+ column: V,
10670
+ index: K,
10671
+ record: W,
10672
+ value: q,
10673
+ text: te
10660
10674
  }) {
10661
10675
  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,
10676
+ V.customRender ? J = V.customRender({
10677
+ index: K,
10678
+ record: W,
10679
+ column: V,
10680
+ text: te,
10681
+ value: q,
10682
+ renderIndex: K
10683
+ }) : J = q;
10684
+ const de = createVNode(KgTableCell, {
10685
+ kgRow: W,
10672
10686
  kgValue: J,
10673
- kgVarName: N.dataIndex,
10674
- onKgUpdateLinkClick: () => Y(q)
10687
+ kgVarName: V.dataIndex,
10688
+ onKgUpdateLinkClick: () => ee(W)
10675
10689
  }, null);
10676
10690
  return t.bodyCell ? t.bodyCell({
10677
- value: H,
10678
- record: q,
10679
- index: B,
10680
- column: N,
10681
- defaultRender: le
10682
- }) : le;
10691
+ value: q,
10692
+ record: W,
10693
+ index: K,
10694
+ column: V,
10695
+ defaultRender: de
10696
+ }) : de;
10683
10697
  }
10684
- function te() {
10685
- return !v.value && !l.store.getIsRetrieved(o.formID) ? a.t("kg.KgTable.emptyText") : a.t("kg.emptyText");
10698
+ function ae() {
10699
+ return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
10686
10700
  }
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)])])]);
10701
+ return () => {
10702
+ var V;
10703
+ return createVNode("div", {
10704
+ class: U.value,
10705
+ "kg-frm-id": s.formID,
10706
+ ref: _
10707
+ }, [createVNode(Table, {
10708
+ class: "kg-flex-table",
10709
+ size: "small",
10710
+ scroll: {
10711
+ x: m.value,
10712
+ y: "auto"
10713
+ },
10714
+ pagination: !1,
10715
+ showSorterTooltip: !1,
10716
+ columns: p.value,
10717
+ dataSource: A.value,
10718
+ loading: b.value,
10719
+ rowKey: w.value,
10720
+ rowSelection: D.value,
10721
+ expandColumnWidth: 28,
10722
+ expandedRowKeys: g.value,
10723
+ customRow: (K) => ({
10724
+ onClick: (W) => L(W, K)
10725
+ }),
10726
+ onResizeColumn: z,
10727
+ onChange: Y,
10728
+ onExpand: X
10729
+ }, {
10730
+ headerCell: ue,
10731
+ bodyCell: ce,
10732
+ emptyText: ae,
10733
+ expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
10734
+ }), (T.value || E.value) && createVNode("div", {
10735
+ class: "kg-table-bottom"
10736
+ }, [createVNode("div", {
10737
+ class: "left"
10738
+ }, [T.value && createVNode(KgTableInfo, {
10739
+ kgShowClearCheck: M.value.length > 0,
10740
+ kgShowClearTable: I.total > 0,
10741
+ kgShowLocate: M.value.length === 1,
10742
+ kgTotal: M.value.length,
10743
+ kgDisabled: b.value
10744
+ }, null)]), createVNode("div", {
10745
+ class: "right"
10746
+ }, [E.value && createVNode(Pagination, {
10747
+ size: "default",
10748
+ current: I.pageIndex,
10749
+ pageSize: I.pageSize,
10750
+ pageSizeOptions: k.value.map((K) => String(K)),
10751
+ total: I.total,
10752
+ showSizeChanger: !0,
10753
+ showQuickJumper: !1,
10754
+ hideOnSinglePage: !1,
10755
+ disabled: b.value || I.total === 0,
10756
+ locale: {
10757
+ page: ""
10758
+ },
10759
+ showTotal: (K, W) => o.t("kg.KgTable.totalText", {
10760
+ from: W[0],
10761
+ to: W[1],
10762
+ total: K
10763
+ }),
10764
+ onChange: (K, W) => re(K, W)
10765
+ }, null)])])]);
10766
+ };
10746
10767
  }
10747
10768
  }), getProps$f = () => ({
10748
10769
  kgButton: Object,
@@ -11068,7 +11089,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11068
11089
  }
11069
11090
  let u = null;
11070
11091
  const c = async () => {
11071
- var _, v, y, C, T, E, V;
11092
+ var _, v, y, C, T, E, w;
11072
11093
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11073
11094
  const b = a.selectedRows.value;
11074
11095
  try {
@@ -11077,7 +11098,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11077
11098
  url: l,
11078
11099
  params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11079
11100
  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));
11101
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
11081
11102
  } catch (k) {
11082
11103
  console.error(k);
11083
11104
  } finally {
@@ -11854,7 +11875,7 @@ const leftVarProfileDetailColumns = (e) => {
11854
11875
  row: y,
11855
11876
  model: C
11856
11877
  }) => {
11857
- var E, V, k;
11878
+ var E, w, k;
11858
11879
  const T = i.store.getSystemVarProfileDetails(i.formID);
11859
11880
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11860
11881
  case b:
@@ -11865,24 +11886,24 @@ const leftVarProfileDetailColumns = (e) => {
11865
11886
  if (y != null && y.id)
11866
11887
  try {
11867
11888
  s.store.setIsLoading(n.formID, !0);
11868
- const x = await QueryByID({
11889
+ const F = await QueryByID({
11869
11890
  params: {
11870
11891
  id: y.id
11871
11892
  }
11872
11893
  });
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;
11894
+ l.value = l.value.map(($) => {
11895
+ var U;
11896
+ const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
11897
+ return D ? {
11898
+ ...$,
11899
+ ...D,
11900
+ id: $.id
11901
+ } : $;
11881
11902
  });
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;
11903
+ const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
11904
+ u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
11905
+ } catch (F) {
11906
+ throw F;
11886
11907
  } finally {
11887
11908
  s.store.setIsLoading(n.formID, !1);
11888
11909
  }
@@ -11936,18 +11957,18 @@ const leftVarProfileDetailColumns = (e) => {
11936
11957
  showSearch: !0,
11937
11958
  showSelectAll: !1,
11938
11959
  searchPlaceholder: " ",
11939
- filterOption: (E, V) => {
11960
+ filterOption: (E, w) => {
11940
11961
  var k;
11941
- return !!((k = V.var_nam) != null && k.includes(E));
11962
+ return !!((k = w.var_nam) != null && k.includes(E));
11942
11963
  }
11943
11964
  }, {
11944
11965
  children: ({
11945
11966
  direction: E,
11946
- filteredItems: V,
11967
+ filteredItems: w,
11947
11968
  selectedKeys: k,
11948
- disabled: x,
11949
- onItemSelectAll: F,
11950
- onItemSelect: O
11969
+ disabled: F,
11970
+ onItemSelectAll: R,
11971
+ onItemSelect: $
11951
11972
  }) => createVNode(Table, {
11952
11973
  pagination: !1,
11953
11974
  class: "kg-flex-table",
@@ -11958,15 +11979,15 @@ const leftVarProfileDetailColumns = (e) => {
11958
11979
  },
11959
11980
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11960
11981
  rowKey: "id",
11961
- dataSource: V,
11962
- customRow: (w) => ({
11963
- onClick: (R) => m(R, w, E, k)
11982
+ dataSource: w,
11983
+ customRow: (D) => ({
11984
+ onClick: (U) => m(U, D, E, k)
11964
11985
  }),
11965
11986
  rowSelection: g({
11966
- disabled: x,
11987
+ disabled: F,
11967
11988
  selectedKeys: k,
11968
- onItemSelectAll: F,
11969
- onItemSelect: O
11989
+ onItemSelectAll: R,
11990
+ onItemSelect: $
11970
11991
  })
11971
11992
  }, null)
11972
11993
  })
@@ -11986,9 +12007,9 @@ const leftVarProfileDetailColumns = (e) => {
11986
12007
  disabled: b || C.disabled
11987
12008
  }),
11988
12009
  onSelectAll(C, T) {
11989
- const E = T.filter((V) => !V.disabled).map(({
11990
- key: V
11991
- }) => V);
12010
+ const E = T.filter((w) => !w.disabled).map(({
12011
+ key: w
12012
+ }) => w);
11992
12013
  v(E, C);
11993
12014
  },
11994
12015
  onSelect({
@@ -12127,24 +12148,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12127
12148
  const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
12128
12149
  _useLayoutHeaderResizeObserver();
12129
12150
  const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
12130
- var P;
12131
- return s.value > 0 ? !1 : ((P = i.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12151
+ var N;
12152
+ return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
12132
12153
  }), 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));
12154
+ var N, B;
12155
+ return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12135
12156
  }), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
12136
12157
  kgHeight: g.value
12137
12158
  }), y = ref({
12138
12159
  visible: !1
12139
12160
  });
12140
12161
  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;
12162
+ const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
12163
+ var N, B, z;
12164
+ if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12165
+ return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
12145
12166
  }), k = computed(() => {
12146
- var P;
12147
- switch ((P = E.value) == null ? void 0 : P.primary_flg) {
12167
+ var N;
12168
+ switch ((N = E.value) == null ? void 0 : N.primary_flg) {
12148
12169
  case 1:
12149
12170
  return !0;
12150
12171
  case 0:
@@ -12152,20 +12173,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12152
12173
  default:
12153
12174
  return !0;
12154
12175
  }
12155
- }), x = computed(() => {
12156
- var P;
12157
- 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(() => {
12159
- let P = "kg-search";
12160
- return x.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
12161
- });
12162
- watch(n.currentVarProfileDetails, (P) => {
12163
- 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));
12176
+ }), F = computed(() => {
12177
+ var N;
12178
+ return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
12179
+ }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12180
+ let N = "kg-search";
12181
+ return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
12182
+ });
12183
+ watch(n.currentVarProfileDetails, (N) => {
12184
+ if (N) {
12185
+ const B = {};
12186
+ N.forEach((z) => {
12187
+ B[z.var_nam] = "";
12188
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
12189
+ z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12169
12190
  }, {
12170
12191
  immediate: !0
12171
12192
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12175,49 +12196,49 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12175
12196
  }), onUnmounted(() => {
12176
12197
  a.store.dispose(n.formID);
12177
12198
  });
12178
- function R(P = !1) {
12179
- x.value ? _.value && _.value.validate().then(() => {
12199
+ function U(N = !1) {
12200
+ F.value ? _.value && _.value.validate().then(() => {
12180
12201
  a.store.emit(n.formID, "search", {
12181
- resetPageIndex: P
12202
+ resetPageIndex: N
12182
12203
  });
12183
- }).catch((U) => {
12204
+ }).catch((B) => {
12184
12205
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12185
- e: U
12206
+ e: B
12186
12207
  });
12187
12208
  }) : a.store.emit(n.formID, "search", {
12188
- resetPageIndex: P
12209
+ resetPageIndex: N
12189
12210
  });
12190
12211
  }
12191
- a.store.setSearchFn(n.formID, R);
12192
- function I() {
12193
- var P;
12194
- (P = _.value) == null || P.resetFields(), x.value ? _.value && _.value.validate().then(() => {
12212
+ a.store.setSearchFn(n.formID, U);
12213
+ function A() {
12214
+ var N;
12215
+ (N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
12195
12216
  a.store.emit(n.formID, "reset");
12196
- }).catch((U) => {
12217
+ }).catch((B) => {
12197
12218
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12198
- e: U
12219
+ e: B
12199
12220
  });
12200
12221
  }) : a.store.emit(n.formID, "reset");
12201
12222
  }
12202
- a.store.setResetFn(n.formID, I);
12203
- function $() {
12204
- return R(!0), Promise.resolve(!0);
12223
+ a.store.setResetFn(n.formID, A);
12224
+ function M() {
12225
+ return U(!0), Promise.resolve(!0);
12205
12226
  }
12206
- function A() {
12207
- var P;
12227
+ function I() {
12228
+ var N;
12208
12229
  return createVNode("div", {
12209
12230
  class: "title",
12210
12231
  onClick: G
12211
- }, [((P = t == null ? void 0 : t.KgSearch) == null ? void 0 : P.left) && createVNode("div", {
12232
+ }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
12212
12233
  class: "kg-search-title-left",
12213
- onClick: (U) => {
12214
- U.stopPropagation(), U.preventDefault();
12234
+ onClick: (B) => {
12235
+ B.stopPropagation(), B.preventDefault();
12215
12236
  }
12216
12237
  }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12217
12238
  }
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, {
12239
+ function O() {
12240
+ var N, B, z, Y;
12241
+ return ((z = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12221
12242
  value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12222
12243
  "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
12223
12244
  disabled: m.value,
@@ -12225,10 +12246,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12225
12246
  }, {
12226
12247
  default: () => {
12227
12248
  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
12249
+ return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
12250
+ value: ee.id
12230
12251
  }, {
12231
- default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
12252
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
12232
12253
  }));
12233
12254
  },
12234
12255
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -12246,46 +12267,46 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12246
12267
  hostFormID: n.formID
12247
12268
  }, null)]);
12248
12269
  }
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, {
12270
+ function P() {
12271
+ var N, B, z, Y, X;
12272
+ return createVNode(Fragment, null, [O(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12252
12273
  type: "primary",
12253
12274
  ghost: !p.value,
12254
12275
  disabled: p.value,
12255
- onClick: I,
12276
+ onClick: A,
12256
12277
  class: "kg-search-btn-reset"
12257
12278
  }, {
12258
12279
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12259
12280
  }), createVNode(KgButton.Item, {
12260
12281
  kgType: KG_BUTTON_TYPE.SEARCH,
12261
- kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
12282
+ kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12262
12283
  kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12263
- kgText: V.value,
12284
+ kgText: w.value,
12264
12285
  kgColor: (X = E.value) == null ? void 0 : X.color,
12265
12286
  kgPrimary: k.value,
12266
12287
  kgLoading: b.value,
12267
- onKgClick: $
12288
+ onKgClick: M
12268
12289
  }, null)]);
12269
12290
  }
12270
12291
  function L() {
12271
12292
  return createVNode(Spin, {
12272
- spinning: O.value
12293
+ spinning: $.value
12273
12294
  }, {
12274
12295
  default: () => {
12275
- var P;
12296
+ var N;
12276
12297
  return [createVNode(KgForm, {
12277
12298
  ref: _,
12278
- model: (P = a.model.value) != null ? P : {}
12299
+ model: (N = a.model.value) != null ? N : {}
12279
12300
  }, {
12280
12301
  default: () => [createVNode(Row, {
12281
12302
  gutter: 6
12282
12303
  }, {
12283
12304
  default: () => {
12284
- var U;
12285
- return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12286
- kgVarName: W.var_nam,
12305
+ var B;
12306
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
12307
+ kgVarName: z.var_nam,
12287
12308
  kgContext: KG_FORM_CONTEXT.SEARCH,
12288
- onKgSubmit: () => R(!0)
12309
+ onKgSubmit: () => U(!0)
12289
12310
  }, null))];
12290
12311
  }
12291
12312
  })]
@@ -12298,13 +12319,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12298
12319
  }
12299
12320
  return () => createVNode(KgResizable, {
12300
12321
  kgHeight: v.value.kgHeight,
12301
- "onUpdate:kgHeight": (P) => v.value.kgHeight = P,
12322
+ "onUpdate:kgHeight": (N) => v.value.kgHeight = N,
12302
12323
  kgMinHeight: g.value,
12303
12324
  kgMaxHeight: c.value,
12304
- class: w.value,
12325
+ class: D.value,
12305
12326
  "kg-frm-id": n.formID
12306
12327
  }, {
12307
- default: () => [x.value && createVNode("div", {
12328
+ default: () => [F.value && createVNode("div", {
12308
12329
  class: "ant-collapse ant-collapse-icon-position-left"
12309
12330
  }, [createVNode("div", {
12310
12331
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12315,11 +12336,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12315
12336
  default: () => [createVNode("div", {
12316
12337
  class: "ant-collapse-header"
12317
12338
  }, [createVNode(Spin, {
12318
- spinning: F.value
12339
+ spinning: R.value
12319
12340
  }, {
12320
- default: () => [A(), createVNode("div", {
12341
+ default: () => [I(), createVNode("div", {
12321
12342
  class: "ant-collapse-extra"
12322
- }, [D()])]
12343
+ }, [P()])]
12323
12344
  })])]
12324
12345
  }), createVNode("div", {
12325
12346
  class: "ant-collapse-content ant-collapse-content-active"
@@ -12391,13 +12412,13 @@ function useMagicKeys(e = {}) {
12391
12412
  }
12392
12413
  function m(_, v) {
12393
12414
  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);
12415
+ const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
12395
12416
  E && (v ? s.add(_.code) : s.delete(_.code));
12396
- for (const k of V)
12417
+ for (const k of w)
12397
12418
  c.add(k), g(k, v);
12398
12419
  T === "meta" && !v ? (u.forEach((k) => {
12399
12420
  s.delete(k), g(k, !1);
12400
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((k) => u.add(k));
12421
+ }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
12401
12422
  }
12402
12423
  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
12424
  const b = new Proxy(l, {
@@ -12796,112 +12817,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12796
12817
  columnWidth: 32,
12797
12818
  hideSelectAll: !0,
12798
12819
  selectedRowKeys: g,
12799
- onSelect: (I) => x(I)
12820
+ onSelect: (A) => F(A)
12800
12821
  }), m = ref({
12801
12822
  visible: !1
12802
12823
  }), 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;
12824
+ var A;
12825
+ return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12805
12826
  }), 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));
12827
+ watch(() => n.getSelectedVar, (A) => {
12828
+ A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12808
12829
  }, {
12809
12830
  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();
12831
+ }), watch(() => n.getSelectedVarCatalog, async (A) => {
12832
+ var M, I;
12833
+ l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
12813
12834
  });
12814
- async function C(I = !1) {
12815
- var $, A, M;
12835
+ async function C(A = !1) {
12836
+ var M, I, O;
12816
12837
  a.value = !0;
12817
12838
  try {
12818
12839
  const {
12819
- records: D
12840
+ records: P
12820
12841
  } = await List({
12821
12842
  params: {
12822
12843
  pageNo: 1,
12823
12844
  pageSize: 999,
12824
12845
  frm_id: e == null ? void 0 : e.value,
12825
- var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12846
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12826
12847
  column: "frm_id,locale_id,cust_lvl",
12827
12848
  order: "asc"
12828
12849
  }
12829
12850
  });
12830
- if (c.value = null, u.value = D != null ? D : [], I) {
12851
+ if (c.value = null, u.value = P != null ? P : [], A) {
12831
12852
  const L = u.value.find((G) => {
12832
- var P;
12833
- return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12853
+ var N;
12854
+ return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12834
12855
  });
12835
12856
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12836
12857
  } 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);
12858
+ n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
12859
+ } catch (P) {
12860
+ Logger.debug(P == null ? void 0 : P.message);
12840
12861
  } finally {
12841
12862
  a.value = !1;
12842
12863
  }
12843
12864
  }
12844
12865
  async function T() {
12845
- var I, $, A;
12866
+ var A, M, I;
12846
12867
  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
12868
+ o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12869
+ const O = new VarCatalog({
12870
+ ...(M = n.getSelectedVarCatalog) != null ? M : {},
12871
+ var_text: (I = l.value) == null ? void 0 : I.var_text
12851
12872
  });
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
12873
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
12874
+ data: O
12854
12875
  }, {
12855
12876
  successMessageMode: "none"
12856
12877
  }), message.success({
12857
12878
  content: t.t("kg.KgVarConfig.createSuccess")
12858
12879
  }), await C()) : (await Edit({
12859
- data: M
12880
+ data: O
12860
12881
  }, {
12861
12882
  successMessageMode: "none"
12862
12883
  }), message.success({
12863
12884
  content: t.t("kg.KgVarConfig.saveSuccess")
12864
12885
  }), await C(!0)) : (await Add({
12865
- data: M
12886
+ data: O
12866
12887
  }, {
12867
12888
  successMessageMode: "none"
12868
12889
  }), message.success({
12869
12890
  content: t.t("kg.KgVarConfig.createSuccess")
12870
12891
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
12871
- } catch (M) {
12872
- KgUtil.throwIfNotFormError(M);
12892
+ } catch (O) {
12893
+ KgUtil.throwIfNotFormError(O);
12873
12894
  } finally {
12874
12895
  o.value = !1;
12875
12896
  }
12876
12897
  }
12877
12898
  function E({
12878
- isAllForm: I,
12879
- isAllLanguage: $
12899
+ isAllForm: A,
12900
+ isAllLanguage: M
12880
12901
  }) {
12881
- var A, M, D;
12902
+ var I, O, P;
12882
12903
  c.value = new VarCatalog({
12883
12904
  id: "",
12884
12905
  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,
12906
+ grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
12907
+ var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
12908
+ frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12909
+ locale_id: M ? "ALL" : (P = t.locale) == null ? void 0 : P.value,
12889
12910
  var_text: ""
12890
12911
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12891
12912
  }
12892
- function V() {
12893
- var $;
12913
+ function w() {
12914
+ var M;
12894
12915
  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] : [];
12916
+ const A = (M = u.value[0]) != null ? M : null;
12917
+ n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
12897
12918
  }
12898
12919
  function k() {
12899
12920
  KgUtil.confirm({
12900
12921
  onOk: async () => {
12901
- var I;
12922
+ var A;
12902
12923
  await Delete({
12903
12924
  params: {
12904
- id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12925
+ id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
12905
12926
  }
12906
12927
  }, {
12907
12928
  successMessageMode: "none",
@@ -12912,23 +12933,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12912
12933
  }
12913
12934
  });
12914
12935
  }
12915
- function x(I) {
12916
- var $;
12917
- (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== I.id && (unref(c) ? KgUtil.confirm({
12936
+ function F(A) {
12937
+ var M;
12938
+ ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
12918
12939
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12919
12940
  onOk: () => {
12920
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12941
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
12921
12942
  }
12922
- }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12943
+ }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
12923
12944
  }
12924
- function F() {
12945
+ function R() {
12925
12946
  m.value.visible = !0;
12926
12947
  }
12927
- function O() {
12948
+ function $() {
12928
12949
  return createVNode("div", {
12929
12950
  class: "buttons"
12930
12951
  }, [createVNode(Button, {
12931
- onClick: F,
12952
+ onClick: R,
12932
12953
  disabled: b.value,
12933
12954
  type: "primary"
12934
12955
  }, {
@@ -12943,8 +12964,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12943
12964
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12944
12965
  })]);
12945
12966
  }
12946
- function w() {
12947
- let I, $;
12967
+ function D() {
12968
+ let A, M;
12948
12969
  return createVNode("div", {
12949
12970
  class: "form"
12950
12971
  }, [createVNode(Form, {
@@ -12961,7 +12982,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12961
12982
  }, {
12962
12983
  default: () => [createVNode(Textarea, {
12963
12984
  value: l.value.var_text,
12964
- "onUpdate:value": (A) => l.value.var_text = A,
12985
+ "onUpdate:value": (I) => l.value.var_text = I,
12965
12986
  disabled: !n.getSelectedVarCatalog
12966
12987
  }, null), createVNode("button", {
12967
12988
  hidden: !0
@@ -12971,26 +12992,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12971
12992
  class: "buttons"
12972
12993
  }, [createVNode(Button, {
12973
12994
  disabled: v.value,
12974
- onClick: V
12975
- }, _isSlot(I = t.t("common.cancelText")) ? I : {
12976
- default: () => [I]
12995
+ onClick: w
12996
+ }, _isSlot(A = t.t("common.cancelText")) ? A : {
12997
+ default: () => [A]
12977
12998
  }), createVNode(Button, {
12978
12999
  loading: o.value,
12979
13000
  disabled: y.value,
12980
13001
  onClick: T,
12981
13002
  type: "primary"
12982
- }, _isSlot($ = t.t("common.save")) ? $ : {
12983
- default: () => [$]
13003
+ }, _isSlot(M = t.t("common.save")) ? M : {
13004
+ default: () => [M]
12984
13005
  })])]);
12985
13006
  }
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 "), $;
13007
+ function U(A) {
13008
+ var I;
13009
+ let M = "";
13010
+ 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
13011
  }
12991
13012
  return () => createVNode("div", {
12992
13013
  class: "kg-var-config-modal-var-var-catalog"
12993
- }, [O(), createVNode(Table, {
13014
+ }, [$(), createVNode(Table, {
12994
13015
  pagination: !1,
12995
13016
  class: "kg-flex-table",
12996
13017
  size: "small",
@@ -13002,14 +13023,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13002
13023
  rowKey: "id",
13003
13024
  dataSource: u.value,
13004
13025
  loading: a.value,
13005
- rowClassName: R,
13026
+ rowClassName: U,
13006
13027
  rowSelection: p.value,
13007
- customRow: (I) => ({
13008
- onClick: () => x(I)
13028
+ customRow: (A) => ({
13029
+ onClick: () => F(A)
13009
13030
  })
13010
- }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
13031
+ }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13011
13032
  visible: m.value.visible,
13012
- "onUpdate:visible": (I) => m.value.visible = I,
13033
+ "onUpdate:visible": (A) => m.value.visible = A,
13013
13034
  onKgOk: E
13014
13035
  }, null)]);
13015
13036
  }
@@ -13338,22 +13359,22 @@ const KgWarehouse$1 = "", getProps = () => ({
13338
13359
  customRender: ({
13339
13360
  record: E
13340
13361
  }) => {
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", {
13362
+ var k, F, R;
13363
+ const w = E;
13364
+ return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
13344
13365
  class: "address"
13345
- }, [(F = V.adrId) != null ? F : " "])]);
13366
+ }, [(R = w.adrId) != null ? R : " "])]);
13346
13367
  }
13347
13368
  }]), c = ref([]), g = computed(() => {
13348
- var V;
13349
- const E = (V = o.value) == null ? void 0 : V.toUpperCase();
13369
+ var w;
13370
+ const E = (w = o.value) == null ? void 0 : w.toUpperCase();
13350
13371
  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));
13372
+ var F, R, $, D, U, A;
13373
+ 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
13374
  });
13354
13375
  }), p = computed(() => {
13355
- var E, V;
13356
- return ((V = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13376
+ var E, w;
13377
+ return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
13357
13378
  });
13358
13379
  watch(n.visible, (E) => {
13359
13380
  !p.value || (E ? b() : _());
@@ -13403,14 +13424,14 @@ const KgWarehouse$1 = "", getProps = () => ({
13403
13424
  l.value = !1;
13404
13425
  }
13405
13426
  }
13406
- function C(E, V) {
13427
+ function C(E, w) {
13407
13428
  var k;
13408
13429
  switch (E.detail) {
13409
13430
  case 1:
13410
- ((k = i.value) == null ? void 0 : k.id) === V.id ? i.value = null : i.value = V;
13431
+ ((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
13411
13432
  break;
13412
13433
  case 2:
13413
- i.value = V, v();
13434
+ i.value = w, v();
13414
13435
  break;
13415
13436
  }
13416
13437
  }
@@ -13420,8 +13441,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13420
13441
  placement: "bottomRight"
13421
13442
  }, {
13422
13443
  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")];
13444
+ var E, w;
13445
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13425
13446
  }
13426
13447
  }), createVNode(KgModal, {
13427
13448
  visible: n.visible.value,
@@ -13463,9 +13484,9 @@ const KgWarehouse$1 = "", getProps = () => ({
13463
13484
  columns: u,
13464
13485
  class: "kg-flex-table",
13465
13486
  customRow: (E) => {
13466
- var V;
13487
+ var w;
13467
13488
  return {
13468
- class: E.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13489
+ class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
13469
13490
  onClick: (k) => C(k, E)
13470
13491
  };
13471
13492
  }