@gisce/react-ooui 1.2.0-rc.10 → 1.2.0-rc.11

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.
@@ -4108,8 +4108,8 @@ const {
4108
4108
  if (b)
4109
4109
  return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
4110
4110
  if (f) {
4111
- const F = iconMapper(f);
4112
- return F && /* @__PURE__ */ jsx(F, {});
4111
+ const A = iconMapper(f);
4112
+ return A && /* @__PURE__ */ jsx(A, {});
4113
4113
  }
4114
4114
  }
4115
4115
  async function w() {
@@ -4602,8 +4602,8 @@ function requireReactIs_production_min() {
4602
4602
  var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
4603
4603
  function O(_) {
4604
4604
  if (typeof _ == "object" && _ !== null) {
4605
- var F = _.$$typeof;
4606
- switch (F) {
4605
+ var A = _.$$typeof;
4606
+ switch (A) {
4607
4607
  case r:
4608
4608
  switch (_ = _.type, _) {
4609
4609
  case d:
@@ -4622,11 +4622,11 @@ function requireReactIs_production_min() {
4622
4622
  case c:
4623
4623
  return _;
4624
4624
  default:
4625
- return F;
4625
+ return A;
4626
4626
  }
4627
4627
  }
4628
4628
  case o:
4629
- return F;
4629
+ return A;
4630
4630
  }
4631
4631
  }
4632
4632
  }
@@ -4709,7 +4709,7 @@ function requireReactIs_development() {
4709
4709
  }
4710
4710
  }
4711
4711
  }
4712
- var _ = d, F = f, N = u, E = c, P = r, A = p, W = a, J = I, z = m, Y = o, Q = l, re = s, ee = h, X = !1;
4712
+ var _ = d, A = f, N = u, E = c, P = r, F = p, W = a, J = I, z = m, Y = o, Q = l, oe = s, ee = h, X = !1;
4713
4713
  function ue(M) {
4714
4714
  return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), we(M) || w(M) === d;
4715
4715
  }
@@ -4737,7 +4737,7 @@ function requireReactIs_development() {
4737
4737
  function U(M) {
4738
4738
  return w(M) === m;
4739
4739
  }
4740
- function oe(M) {
4740
+ function re(M) {
4741
4741
  return w(M) === o;
4742
4742
  }
4743
4743
  function Re(M) {
@@ -4749,7 +4749,7 @@ function requireReactIs_development() {
4749
4749
  function L(M) {
4750
4750
  return w(M) === h;
4751
4751
  }
4752
- reactIs_development.AsyncMode = _, reactIs_development.ConcurrentMode = F, reactIs_development.ContextConsumer = N, reactIs_development.ContextProvider = E, reactIs_development.Element = P, reactIs_development.ForwardRef = A, reactIs_development.Fragment = W, reactIs_development.Lazy = J, reactIs_development.Memo = z, reactIs_development.Portal = Y, reactIs_development.Profiler = Q, reactIs_development.StrictMode = re, reactIs_development.Suspense = ee, reactIs_development.isAsyncMode = ue, reactIs_development.isConcurrentMode = we, reactIs_development.isContextConsumer = Ce, reactIs_development.isContextProvider = ce, reactIs_development.isElement = xe, reactIs_development.isForwardRef = te, reactIs_development.isFragment = de, reactIs_development.isLazy = j, reactIs_development.isMemo = U, reactIs_development.isPortal = oe, reactIs_development.isProfiler = Re, reactIs_development.isStrictMode = Fe, reactIs_development.isSuspense = L, reactIs_development.isValidElementType = O, reactIs_development.typeOf = w;
4752
+ reactIs_development.AsyncMode = _, reactIs_development.ConcurrentMode = A, reactIs_development.ContextConsumer = N, reactIs_development.ContextProvider = E, reactIs_development.Element = P, reactIs_development.ForwardRef = F, reactIs_development.Fragment = W, reactIs_development.Lazy = J, reactIs_development.Memo = z, reactIs_development.Portal = Y, reactIs_development.Profiler = Q, reactIs_development.StrictMode = oe, reactIs_development.Suspense = ee, reactIs_development.isAsyncMode = ue, reactIs_development.isConcurrentMode = we, reactIs_development.isContextConsumer = Ce, reactIs_development.isContextProvider = ce, reactIs_development.isElement = xe, reactIs_development.isForwardRef = te, reactIs_development.isFragment = de, reactIs_development.isLazy = j, reactIs_development.isMemo = U, reactIs_development.isPortal = re, reactIs_development.isProfiler = Re, reactIs_development.isStrictMode = Fe, reactIs_development.isSuspense = L, reactIs_development.isValidElementType = O, reactIs_development.typeOf = w;
4753
4753
  }()), reactIs_development;
4754
4754
  }
4755
4755
  var hasRequiredReactIs;
@@ -6240,12 +6240,12 @@ function requireUtils() {
6240
6240
  function g(v, O, w) {
6241
6241
  return w ? /* @__PURE__ */ l.default.createElement(v.tag, (0, o.default)((0, o.default)({
6242
6242
  key: O
6243
- }, h(v.attrs)), w), (v.children || []).map(function(_, F) {
6244
- return g(_, "".concat(O, "-").concat(v.tag, "-").concat(F));
6243
+ }, h(v.attrs)), w), (v.children || []).map(function(_, A) {
6244
+ return g(_, "".concat(O, "-").concat(v.tag, "-").concat(A));
6245
6245
  })) : /* @__PURE__ */ l.default.createElement(v.tag, (0, o.default)({
6246
6246
  key: O
6247
- }, h(v.attrs)), (v.children || []).map(function(_, F) {
6248
- return g(_, "".concat(O, "-").concat(v.tag, "-").concat(F));
6247
+ }, h(v.attrs)), (v.children || []).map(function(_, A) {
6248
+ return g(_, "".concat(O, "-").concat(v.tag, "-").concat(A));
6249
6249
  }));
6250
6250
  }
6251
6251
  function m(v) {
@@ -6410,12 +6410,12 @@ function requireAntdIcon() {
6410
6410
  var o = e(requireObjectSpread2()), a = e(requireSlicedToArray()), s = e(requireDefineProperty()), l = e(requireObjectWithoutProperties()), c = r(React__default), u = e(requireClassnames()), d = e(requireContext$2()), f = e(requireIconBase()), p = requireTwoTonePrimaryColor(), h = requireUtils(), g = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6411
6411
  (0, p.setTwoToneColor)("#1890ff");
6412
6412
  var m = /* @__PURE__ */ c.forwardRef(function(C, b) {
6413
- var y, v = C.className, O = C.icon, w = C.spin, _ = C.rotate, F = C.tabIndex, N = C.onClick, E = C.twoToneColor, P = (0, l.default)(C, g), A = c.useContext(d.default), W = A.prefixCls, J = W === void 0 ? "anticon" : W, z = (0, u.default)(J, (y = {}, (0, s.default)(y, "".concat(J, "-").concat(O.name), !!O.name), (0, s.default)(y, "".concat(J, "-spin"), !!w || O.name === "loading"), y), v), Y = F;
6413
+ var y, v = C.className, O = C.icon, w = C.spin, _ = C.rotate, A = C.tabIndex, N = C.onClick, E = C.twoToneColor, P = (0, l.default)(C, g), F = c.useContext(d.default), W = F.prefixCls, J = W === void 0 ? "anticon" : W, z = (0, u.default)(J, (y = {}, (0, s.default)(y, "".concat(J, "-").concat(O.name), !!O.name), (0, s.default)(y, "".concat(J, "-spin"), !!w || O.name === "loading"), y), v), Y = A;
6414
6414
  Y === void 0 && N && (Y = -1);
6415
6415
  var Q = _ ? {
6416
6416
  msTransform: "rotate(".concat(_, "deg)"),
6417
6417
  transform: "rotate(".concat(_, "deg)")
6418
- } : void 0, re = (0, h.normalizeTwoToneColors)(E), ee = (0, a.default)(re, 2), X = ee[0], ue = ee[1];
6418
+ } : void 0, oe = (0, h.normalizeTwoToneColors)(E), ee = (0, a.default)(oe, 2), X = ee[0], ue = ee[1];
6419
6419
  return /* @__PURE__ */ c.createElement("span", (0, o.default)((0, o.default)({
6420
6420
  role: "img",
6421
6421
  "aria-label": O.name
@@ -6594,12 +6594,12 @@ function requireRegeneratorRuntime() {
6594
6594
  try {
6595
6595
  p({}, "");
6596
6596
  } catch {
6597
- p = function(Q, re, ee) {
6598
- return Q[re] = ee;
6597
+ p = function(Q, oe, ee) {
6598
+ return Q[oe] = ee;
6599
6599
  };
6600
6600
  }
6601
- function h(z, Y, Q, re) {
6602
- var ee = Y && Y.prototype instanceof I ? Y : I, X = Object.create(ee.prototype), ue = new A(re || []);
6601
+ function h(z, Y, Q, oe) {
6602
+ var ee = Y && Y.prototype instanceof I ? Y : I, X = Object.create(ee.prototype), ue = new F(oe || []);
6603
6603
  return X._invoke = function(we, Ce, ce) {
6604
6604
  var xe = "suspendedStart";
6605
6605
  return function(te, de) {
@@ -6629,16 +6629,16 @@ function requireRegeneratorRuntime() {
6629
6629
  } else
6630
6630
  ce.method === "return" && ce.abrupt("return", ce.arg);
6631
6631
  xe = "executing";
6632
- var oe = g(we, Ce, ce);
6633
- if (oe.type === "normal") {
6634
- if (xe = ce.done ? "completed" : "suspendedYield", oe.arg === m)
6632
+ var re = g(we, Ce, ce);
6633
+ if (re.type === "normal") {
6634
+ if (xe = ce.done ? "completed" : "suspendedYield", re.arg === m)
6635
6635
  continue;
6636
6636
  return {
6637
- value: oe.arg,
6637
+ value: re.arg,
6638
6638
  done: ce.done
6639
6639
  };
6640
6640
  }
6641
- oe.type === "throw" && (xe = "completed", ce.method = "throw", ce.arg = oe.arg);
6641
+ re.type === "throw" && (xe = "completed", ce.method = "throw", ce.arg = re.arg);
6642
6642
  }
6643
6643
  };
6644
6644
  }(z, Q, ue), X;
@@ -6649,10 +6649,10 @@ function requireRegeneratorRuntime() {
6649
6649
  type: "normal",
6650
6650
  arg: z.call(Y, Q)
6651
6651
  };
6652
- } catch (re) {
6652
+ } catch (oe) {
6653
6653
  return {
6654
6654
  type: "throw",
6655
- arg: re
6655
+ arg: oe
6656
6656
  };
6657
6657
  }
6658
6658
  }
@@ -6678,7 +6678,7 @@ function requireRegeneratorRuntime() {
6678
6678
  });
6679
6679
  });
6680
6680
  }
6681
- function F(z, Y) {
6681
+ function A(z, Y) {
6682
6682
  function Q(ee, X, ue, we) {
6683
6683
  var Ce = g(z[ee], z, X);
6684
6684
  if (Ce.type !== "throw") {
@@ -6695,14 +6695,14 @@ function requireRegeneratorRuntime() {
6695
6695
  }
6696
6696
  we(Ce.arg);
6697
6697
  }
6698
- var re;
6698
+ var oe;
6699
6699
  this._invoke = function(ee, X) {
6700
6700
  function ue() {
6701
6701
  return new Y(function(we, Ce) {
6702
6702
  Q(ee, X, we, Ce);
6703
6703
  });
6704
6704
  }
6705
- return re = re ? re.then(ue, ue) : ue();
6705
+ return oe = oe ? oe.then(ue, ue) : ue();
6706
6706
  };
6707
6707
  }
6708
6708
  function N(z, Y) {
@@ -6715,10 +6715,10 @@ function requireRegeneratorRuntime() {
6715
6715
  }
6716
6716
  return m;
6717
6717
  }
6718
- var re = g(Q, z.iterator, Y.arg);
6719
- if (re.type === "throw")
6720
- return Y.method = "throw", Y.arg = re.arg, Y.delegate = null, m;
6721
- var ee = re.arg;
6718
+ var oe = g(Q, z.iterator, Y.arg);
6719
+ if (oe.type === "throw")
6720
+ return Y.method = "throw", Y.arg = oe.arg, Y.delegate = null, m;
6721
+ var ee = oe.arg;
6722
6722
  return ee ? ee.done ? (Y[z.resultName] = ee.value, Y.next = z.nextLoc, Y.method !== "return" && (Y.method = "next", Y.arg = void 0), Y.delegate = null, m) : ee : (Y.method = "throw", Y.arg = new TypeError("iterator result is not an object"), Y.delegate = null, m);
6723
6723
  }
6724
6724
  function E(z) {
@@ -6731,7 +6731,7 @@ function requireRegeneratorRuntime() {
6731
6731
  var Y = z.completion || {};
6732
6732
  Y.type = "normal", delete Y.arg, z.completion = Y;
6733
6733
  }
6734
- function A(z) {
6734
+ function F(z) {
6735
6735
  this.tryEntries = [{
6736
6736
  tryLoc: "root"
6737
6737
  }], z.forEach(E, this), this.reset(!0);
@@ -6744,13 +6744,13 @@ function requireRegeneratorRuntime() {
6744
6744
  if (typeof z.next == "function")
6745
6745
  return z;
6746
6746
  if (!isNaN(z.length)) {
6747
- var Q = -1, re = function ee() {
6747
+ var Q = -1, oe = function ee() {
6748
6748
  for (; ++Q < z.length; )
6749
6749
  if (l.call(z, Q))
6750
6750
  return ee.value = z[Q], ee.done = !1, ee;
6751
6751
  return ee.value = void 0, ee.done = !0, ee;
6752
6752
  };
6753
- return re.next = re;
6753
+ return oe.next = oe;
6754
6754
  }
6755
6755
  }
6756
6756
  return {
@@ -6772,11 +6772,11 @@ function requireRegeneratorRuntime() {
6772
6772
  return {
6773
6773
  __await: z
6774
6774
  };
6775
- }, _(F.prototype), p(F.prototype, d, function() {
6775
+ }, _(A.prototype), p(A.prototype, d, function() {
6776
6776
  return this;
6777
- }), a.AsyncIterator = F, a.async = function(z, Y, Q, re, ee) {
6777
+ }), a.AsyncIterator = A, a.async = function(z, Y, Q, oe, ee) {
6778
6778
  ee === void 0 && (ee = Promise);
6779
- var X = new F(h(z, Y, Q, re), ee);
6779
+ var X = new A(h(z, Y, Q, oe), ee);
6780
6780
  return a.isGeneratorFunction(Y) ? X : X.next().then(function(ue) {
6781
6781
  return ue.done ? ue.value : X.next();
6782
6782
  });
@@ -6788,16 +6788,16 @@ function requireRegeneratorRuntime() {
6788
6788
  var Y = [];
6789
6789
  for (var Q in z)
6790
6790
  Y.push(Q);
6791
- return Y.reverse(), function re() {
6791
+ return Y.reverse(), function oe() {
6792
6792
  for (; Y.length; ) {
6793
6793
  var ee = Y.pop();
6794
6794
  if (ee in z)
6795
- return re.value = ee, re.done = !1, re;
6795
+ return oe.value = ee, oe.done = !1, oe;
6796
6796
  }
6797
- return re.done = !0, re;
6797
+ return oe.done = !0, oe;
6798
6798
  };
6799
- }, a.values = W, A.prototype = {
6800
- constructor: A,
6799
+ }, a.values = W, F.prototype = {
6800
+ constructor: F,
6801
6801
  reset: function(Y) {
6802
6802
  if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(P), !Y)
6803
6803
  for (var Q in this)
@@ -6814,35 +6814,35 @@ function requireRegeneratorRuntime() {
6814
6814
  if (this.done)
6815
6815
  throw Y;
6816
6816
  var Q = this;
6817
- function re(ce, xe) {
6817
+ function oe(ce, xe) {
6818
6818
  return ue.type = "throw", ue.arg = Y, Q.next = ce, xe && (Q.method = "next", Q.arg = void 0), !!xe;
6819
6819
  }
6820
6820
  for (var ee = this.tryEntries.length - 1; ee >= 0; --ee) {
6821
6821
  var X = this.tryEntries[ee], ue = X.completion;
6822
6822
  if (X.tryLoc === "root")
6823
- return re("end");
6823
+ return oe("end");
6824
6824
  if (X.tryLoc <= this.prev) {
6825
6825
  var we = l.call(X, "catchLoc"), Ce = l.call(X, "finallyLoc");
6826
6826
  if (we && Ce) {
6827
6827
  if (this.prev < X.catchLoc)
6828
- return re(X.catchLoc, !0);
6828
+ return oe(X.catchLoc, !0);
6829
6829
  if (this.prev < X.finallyLoc)
6830
- return re(X.finallyLoc);
6830
+ return oe(X.finallyLoc);
6831
6831
  } else if (we) {
6832
6832
  if (this.prev < X.catchLoc)
6833
- return re(X.catchLoc, !0);
6833
+ return oe(X.catchLoc, !0);
6834
6834
  } else {
6835
6835
  if (!Ce)
6836
6836
  throw new Error("try statement without catch or finally");
6837
6837
  if (this.prev < X.finallyLoc)
6838
- return re(X.finallyLoc);
6838
+ return oe(X.finallyLoc);
6839
6839
  }
6840
6840
  }
6841
6841
  }
6842
6842
  },
6843
6843
  abrupt: function(Y, Q) {
6844
- for (var re = this.tryEntries.length - 1; re >= 0; --re) {
6845
- var ee = this.tryEntries[re];
6844
+ for (var oe = this.tryEntries.length - 1; oe >= 0; --oe) {
6845
+ var ee = this.tryEntries[oe];
6846
6846
  if (ee.tryLoc <= this.prev && l.call(ee, "finallyLoc") && this.prev < ee.finallyLoc) {
6847
6847
  var X = ee;
6848
6848
  break;
@@ -6859,30 +6859,30 @@ function requireRegeneratorRuntime() {
6859
6859
  },
6860
6860
  finish: function(Y) {
6861
6861
  for (var Q = this.tryEntries.length - 1; Q >= 0; --Q) {
6862
- var re = this.tryEntries[Q];
6863
- if (re.finallyLoc === Y)
6864
- return this.complete(re.completion, re.afterLoc), P(re), m;
6862
+ var oe = this.tryEntries[Q];
6863
+ if (oe.finallyLoc === Y)
6864
+ return this.complete(oe.completion, oe.afterLoc), P(oe), m;
6865
6865
  }
6866
6866
  },
6867
6867
  catch: function(Y) {
6868
6868
  for (var Q = this.tryEntries.length - 1; Q >= 0; --Q) {
6869
- var re = this.tryEntries[Q];
6870
- if (re.tryLoc === Y) {
6871
- var ee = re.completion;
6869
+ var oe = this.tryEntries[Q];
6870
+ if (oe.tryLoc === Y) {
6871
+ var ee = oe.completion;
6872
6872
  if (ee.type === "throw") {
6873
6873
  var X = ee.arg;
6874
- P(re);
6874
+ P(oe);
6875
6875
  }
6876
6876
  return X;
6877
6877
  }
6878
6878
  }
6879
6879
  throw new Error("illegal catch attempt");
6880
6880
  },
6881
- delegateYield: function(Y, Q, re) {
6881
+ delegateYield: function(Y, Q, oe) {
6882
6882
  return this.delegate = {
6883
6883
  iterator: W(Y),
6884
6884
  resultName: Q,
6885
- nextLoc: re
6885
+ nextLoc: oe
6886
6886
  }, this.method === "next" && (this.arg = void 0), m;
6887
6887
  }
6888
6888
  }, a;
@@ -7489,14 +7489,14 @@ Schema.prototype = {
7489
7489
  return asyncMap(g, c, function(C, b) {
7490
7490
  var y = C.rule, v = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
7491
7491
  v = v && (y.required || !y.required && C.value), y.field = C.field;
7492
- function O(F, N) {
7492
+ function O(A, N) {
7493
7493
  return _extends(_extends({}, N), {}, {
7494
- fullField: y.fullField + "." + F
7494
+ fullField: y.fullField + "." + A
7495
7495
  });
7496
7496
  }
7497
- function w(F) {
7498
- F === void 0 && (F = []);
7499
- var N = F;
7497
+ function w(A) {
7498
+ A === void 0 && (A = []);
7499
+ var N = A;
7500
7500
  if (Array.isArray(N) || (N = [N]), !c.suppressWarning && N.length && Schema.warning("async-validator:", N), N.length && y.message !== void 0 && (N = [].concat(y.message)), N = N.map(complementError(y)), c.first && N.length)
7501
7501
  return I[y.field] = 1, b(N);
7502
7502
  if (!v)
@@ -7509,10 +7509,10 @@ Schema.prototype = {
7509
7509
  for (var P in C.value)
7510
7510
  C.value.hasOwnProperty(P) && (E[P] = y.defaultField);
7511
7511
  E = _extends(_extends({}, E), C.rule.fields);
7512
- for (var A in E)
7513
- if (E.hasOwnProperty(A)) {
7514
- var W = Array.isArray(E[A]) ? E[A] : [E[A]];
7515
- E[A] = W.map(O.bind(null, A));
7512
+ for (var F in E)
7513
+ if (E.hasOwnProperty(F)) {
7514
+ var W = Array.isArray(E[F]) ? E[F] : [E[F]];
7515
+ E[F] = W.map(O.bind(null, F));
7516
7516
  }
7517
7517
  var J = new Schema(E);
7518
7518
  J.messages(c.messages), C.rule.options && (C.rule.options.messages = c.messages, C.rule.options.error = c.error), J.validate(C.value, C.rule.options || c, function(z) {
@@ -7524,8 +7524,8 @@ Schema.prototype = {
7524
7524
  var _;
7525
7525
  y.asyncValidator ? _ = y.asyncValidator(y, C.value, w, C.source, c) : y.validator && (_ = y.validator(y, C.value, w, C.source, c), _ === !0 ? w() : _ === !1 ? w(y.message || y.field + " fails") : _ instanceof Array ? w(_) : _ instanceof Error && w(_.message)), _ && _.then && _.then(function() {
7526
7526
  return w();
7527
- }, function(F) {
7528
- return w(F);
7527
+ }, function(A) {
7528
+ return w(A);
7529
7529
  });
7530
7530
  }, function(C) {
7531
7531
  d(C);
@@ -7787,8 +7787,8 @@ function validateRules(e, r, o, a, s, l) {
7787
7787
  return h ? _objectSpread2$1(_objectSpread2$1({}, p), {}, {
7788
7788
  validator: function(m, I, C) {
7789
7789
  var b = !1, y = function() {
7790
- for (var w = arguments.length, _ = new Array(w), F = 0; F < w; F++)
7791
- _[F] = arguments[F];
7790
+ for (var w = arguments.length, _ = new Array(w), A = 0; A < w; A++)
7791
+ _[A] = arguments[A];
7792
7792
  Promise.resolve().then(function() {
7793
7793
  warningOnce(!b, "Your validator function has already return a promise. `callback` will be ignored."), b || C.apply(void 0, _);
7794
7794
  });
@@ -7945,8 +7945,8 @@ var Field = /* @__PURE__ */ function(e) {
7945
7945
  break;
7946
7946
  }
7947
7947
  case "dependenciesUpdate": {
7948
- var F = I.map(getNamePath);
7949
- if (F.some(function(N) {
7948
+ var A = I.map(getNamePath);
7949
+ if (A.some(function(N) {
7950
7950
  return containsNamePath(p.relatedFields, N);
7951
7951
  })) {
7952
7952
  s.reRender();
@@ -7971,8 +7971,8 @@ var Field = /* @__PURE__ */ function(e) {
7971
7971
  var _ = w.validateTrigger;
7972
7972
  if (!_)
7973
7973
  return !0;
7974
- var F = toArray$2(_);
7975
- return F.includes(y);
7974
+ var A = toArray$2(_);
7975
+ return A.includes(y);
7976
7976
  }));
7977
7977
  var O = validateRules(f, p, v, d, I, C);
7978
7978
  return O.catch(function(w) {
@@ -8025,14 +8025,14 @@ var Field = /* @__PURE__ */ function(e) {
8025
8025
  var f = s.props.fieldContext.getFieldsValue, p = s.getNamePath();
8026
8026
  return getValue(d || f(!0), p);
8027
8027
  }, s.getControlled = function() {
8028
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, g = f.getValueFromEvent, m = f.normalize, I = f.valuePropName, C = f.getValueProps, b = f.fieldContext, y = h !== void 0 ? h : b.validateTrigger, v = s.getNamePath(), O = b.getInternalHooks, w = b.getFieldsValue, _ = O(HOOK_MARK), F = _.dispatch, N = s.getValue(), E = C || function(J) {
8028
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, g = f.getValueFromEvent, m = f.normalize, I = f.valuePropName, C = f.getValueProps, b = f.fieldContext, y = h !== void 0 ? h : b.validateTrigger, v = s.getNamePath(), O = b.getInternalHooks, w = b.getFieldsValue, _ = O(HOOK_MARK), A = _.dispatch, N = s.getValue(), E = C || function(J) {
8029
8029
  return _defineProperty$1({}, I, J);
8030
- }, P = d[p], A = _objectSpread2$1(_objectSpread2$1({}, d), E(N));
8031
- A[p] = function() {
8030
+ }, P = d[p], F = _objectSpread2$1(_objectSpread2$1({}, d), E(N));
8031
+ F[p] = function() {
8032
8032
  s.touched = !0, s.dirty = !0;
8033
8033
  for (var J, z = arguments.length, Y = new Array(z), Q = 0; Q < z; Q++)
8034
8034
  Y[Q] = arguments[Q];
8035
- g ? J = g.apply(void 0, Y) : J = defaultGetValueFromEvent.apply(void 0, [I].concat(Y)), m && (J = m(J, N, w(!0))), F({
8035
+ g ? J = g.apply(void 0, Y) : J = defaultGetValueFromEvent.apply(void 0, [I].concat(Y)), m && (J = m(J, N, w(!0))), A({
8036
8036
  type: "updateValue",
8037
8037
  namePath: v,
8038
8038
  value: J
@@ -8040,17 +8040,17 @@ var Field = /* @__PURE__ */ function(e) {
8040
8040
  };
8041
8041
  var W = toArray$2(y || []);
8042
8042
  return W.forEach(function(J) {
8043
- var z = A[J];
8044
- A[J] = function() {
8043
+ var z = F[J];
8044
+ F[J] = function() {
8045
8045
  z && z.apply(void 0, arguments);
8046
8046
  var Y = s.props.rules;
8047
- Y && Y.length && F({
8047
+ Y && Y.length && A({
8048
8048
  type: "validateField",
8049
8049
  namePath: v,
8050
8050
  triggerName: J
8051
8051
  });
8052
8052
  };
8053
- }), A;
8053
+ }), F;
8054
8054
  }, a.fieldContext) {
8055
8055
  var l = a.fieldContext.getInternalHooks, c = l(HOOK_MARK), u = c.initEntityValue;
8056
8056
  u(_assertThisInitialized(s));
@@ -8134,9 +8134,9 @@ var List = function(r) {
8134
8134
  },
8135
8135
  remove: function(N) {
8136
8136
  var E = O(), P = new Set(Array.isArray(N) ? N : [N]);
8137
- P.size <= 0 || (f.keys = f.keys.filter(function(A, W) {
8137
+ P.size <= 0 || (f.keys = f.keys.filter(function(F, W) {
8138
8138
  return !P.has(W);
8139
- }), y(E.filter(function(A, W) {
8139
+ }), y(E.filter(function(F, W) {
8140
8140
  return !P.has(W);
8141
8141
  })));
8142
8142
  },
@@ -8147,7 +8147,7 @@ var List = function(r) {
8147
8147
  }
8148
8148
  }
8149
8149
  }, _ = b || [];
8150
- return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(h.join(" > "), "' is not an array type."))), s(_.map(function(F, N) {
8150
+ return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(h.join(" > "), "' is not an array type."))), s(_.map(function(A, N) {
8151
8151
  var E = f.keys[N];
8152
8152
  return E === void 0 && (f.keys[N] = f.id, E = f.keys[N], f.id += 1), {
8153
8153
  name: N,
@@ -8722,14 +8722,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
8722
8722
  children: l
8723
8723
  });
8724
8724
  }, Form$2 = function(r, o) {
8725
- var a = r.name, s = r.initialValues, l = r.fields, c = r.form, u = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, g = r.validateTrigger, m = g === void 0 ? "onChange" : g, I = r.onValuesChange, C = r.onFieldsChange, b = r.onFinish, y = r.onFinishFailed, v = _objectWithoutProperties(r, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), O = React.useContext(FormContext), w = useForm(c), _ = _slicedToArray(w, 1), F = _[0], N = F.getInternalHooks(HOOK_MARK), E = N.useSubscribe, P = N.setInitialValues, A = N.setCallbacks, W = N.setValidateMessages, J = N.setPreserve;
8725
+ var a = r.name, s = r.initialValues, l = r.fields, c = r.form, u = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, g = r.validateTrigger, m = g === void 0 ? "onChange" : g, I = r.onValuesChange, C = r.onFieldsChange, b = r.onFinish, y = r.onFinishFailed, v = _objectWithoutProperties(r, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), O = React.useContext(FormContext), w = useForm(c), _ = _slicedToArray(w, 1), A = _[0], N = A.getInternalHooks(HOOK_MARK), E = N.useSubscribe, P = N.setInitialValues, F = N.setCallbacks, W = N.setValidateMessages, J = N.setPreserve;
8726
8726
  React.useImperativeHandle(o, function() {
8727
- return F;
8727
+ return A;
8728
8728
  }), React.useEffect(function() {
8729
- return O.registerForm(a, F), function() {
8729
+ return O.registerForm(a, A), function() {
8730
8730
  O.unregisterForm(a);
8731
8731
  };
8732
- }, [O, F, a]), W(_objectSpread2$1(_objectSpread2$1({}, O.validateMessages), h)), A({
8732
+ }, [O, A, a]), W(_objectSpread2$1(_objectSpread2$1({}, O.validateMessages), h)), F({
8733
8733
  onValuesChange: I,
8734
8734
  onFieldsChange: function(Ce) {
8735
8735
  if (O.triggerFormChange(a, Ce), C) {
@@ -8747,26 +8747,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
8747
8747
  P(s, !z.current), z.current || (z.current = !0);
8748
8748
  var Y = d, Q = typeof d == "function";
8749
8749
  if (Q) {
8750
- var re = F.getFieldsValue(!0);
8751
- Y = d(re, F);
8750
+ var oe = A.getFieldsValue(!0);
8751
+ Y = d(oe, A);
8752
8752
  }
8753
8753
  E(!Q);
8754
8754
  var ee = React.useRef();
8755
8755
  React.useEffect(function() {
8756
- isSimilar(ee.current || [], l || []) || F.setFields(l || []), ee.current = l;
8757
- }, [l, F]);
8756
+ isSimilar(ee.current || [], l || []) || A.setFields(l || []), ee.current = l;
8757
+ }, [l, A]);
8758
8758
  var X = React.useMemo(function() {
8759
- return _objectSpread2$1(_objectSpread2$1({}, F), {}, {
8759
+ return _objectSpread2$1(_objectSpread2$1({}, A), {}, {
8760
8760
  validateTrigger: m
8761
8761
  });
8762
- }, [F, m]), ue = /* @__PURE__ */ jsx(Context.Provider, {
8762
+ }, [A, m]), ue = /* @__PURE__ */ jsx(Context.Provider, {
8763
8763
  value: X,
8764
8764
  children: Y
8765
8765
  });
8766
8766
  return p === !1 ? ue : /* @__PURE__ */ jsx(p, {
8767
8767
  ...v,
8768
8768
  onSubmit: function(Ce) {
8769
- Ce.preventDefault(), Ce.stopPropagation(), F.submit();
8769
+ Ce.preventDefault(), Ce.stopPropagation(), A.submit();
8770
8770
  },
8771
8771
  children: ue
8772
8772
  });
@@ -9185,8 +9185,8 @@ function requireLocaleReceiver() {
9185
9185
  return (0, l.default)(C, [{
9186
9186
  key: "getLocale",
9187
9187
  value: function() {
9188
- var y = this.props, v = y.componentName, O = y.defaultLocale, w = O || f.default[v || "global"], _ = this.context, F = v && _ ? _[v] : {};
9189
- return (0, a.default)((0, a.default)({}, typeof w == "function" ? w() : w), F || {});
9188
+ var y = this.props, v = y.componentName, O = y.defaultLocale, w = O || f.default[v || "global"], _ = this.context, A = v && _ ? _[v] : {};
9189
+ return (0, a.default)((0, a.default)({}, typeof w == "function" ? w() : w), A || {});
9190
9190
  }
9191
9191
  }, {
9192
9192
  key: "getLocaleCode",
@@ -9324,11 +9324,11 @@ function requireEmpty() {
9324
9324
  y.indexOf(O[w]) < 0 && Object.prototype.propertyIsEnumerable.call(b, O[w]) && (v[O[w]] = b[O[w]]);
9325
9325
  return v;
9326
9326
  }, g = /* @__PURE__ */ l.createElement(f.default, null), m = /* @__PURE__ */ l.createElement(p.default, null), I = function(y) {
9327
- var v = y.className, O = y.prefixCls, w = y.image, _ = w === void 0 ? g : w, F = y.description, N = y.children, E = y.imageStyle, P = h(y, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), A = l.useContext(u.ConfigContext), W = A.getPrefixCls, J = A.direction;
9327
+ var v = y.className, O = y.prefixCls, w = y.image, _ = w === void 0 ? g : w, A = y.description, N = y.children, E = y.imageStyle, P = h(y, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), F = l.useContext(u.ConfigContext), W = F.getPrefixCls, J = F.direction;
9328
9328
  return /* @__PURE__ */ l.createElement(d.default, {
9329
9329
  componentName: "Empty"
9330
9330
  }, function(z) {
9331
- var Y, Q = W("empty", O), re = typeof F < "u" ? F : z.description, ee = typeof re == "string" ? re : "empty", X = null;
9331
+ var Y, Q = W("empty", O), oe = typeof A < "u" ? A : z.description, ee = typeof oe == "string" ? oe : "empty", X = null;
9332
9332
  return typeof _ == "string" ? X = /* @__PURE__ */ l.createElement("img", {
9333
9333
  alt: ee,
9334
9334
  src: _
@@ -9337,9 +9337,9 @@ function requireEmpty() {
9337
9337
  }, P), /* @__PURE__ */ l.createElement("div", {
9338
9338
  className: "".concat(Q, "-image"),
9339
9339
  style: E
9340
- }, X), re && /* @__PURE__ */ l.createElement("div", {
9340
+ }, X), oe && /* @__PURE__ */ l.createElement("div", {
9341
9341
  className: "".concat(Q, "-description")
9342
- }, re), N && /* @__PURE__ */ l.createElement("div", {
9342
+ }, oe), N && /* @__PURE__ */ l.createElement("div", {
9343
9343
  className: "".concat(Q, "-footer")
9344
9344
  }, N));
9345
9345
  });
@@ -9572,7 +9572,7 @@ const useStepQueue = function(e, r) {
9572
9572
  }, []), [l, s];
9573
9573
  };
9574
9574
  function useStatus(e, r, o, a) {
9575
- var s = a.motionEnter, l = s === void 0 ? !0 : s, c = a.motionAppear, u = c === void 0 ? !0 : c, d = a.motionLeave, f = d === void 0 ? !0 : d, p = a.motionDeadline, h = a.motionLeaveImmediately, g = a.onAppearPrepare, m = a.onEnterPrepare, I = a.onLeavePrepare, C = a.onAppearStart, b = a.onEnterStart, y = a.onLeaveStart, v = a.onAppearActive, O = a.onEnterActive, w = a.onLeaveActive, _ = a.onAppearEnd, F = a.onEnterEnd, N = a.onLeaveEnd, E = a.onVisibleChanged, P = useMountStatus(), A = _slicedToArray(P, 2), W = A[0], J = A[1], z = useMountStatus(STATUS_NONE), Y = _slicedToArray(z, 2), Q = Y[0], re = Y[1], ee = useMountStatus(null), X = _slicedToArray(ee, 2), ue = X[0], we = X[1], Ce = useRef(!1), ce = useRef(null), xe = useRef(!1), te = useRef(null);
9575
+ var s = a.motionEnter, l = s === void 0 ? !0 : s, c = a.motionAppear, u = c === void 0 ? !0 : c, d = a.motionLeave, f = d === void 0 ? !0 : d, p = a.motionDeadline, h = a.motionLeaveImmediately, g = a.onAppearPrepare, m = a.onEnterPrepare, I = a.onLeavePrepare, C = a.onAppearStart, b = a.onEnterStart, y = a.onLeaveStart, v = a.onAppearActive, O = a.onEnterActive, w = a.onLeaveActive, _ = a.onAppearEnd, A = a.onEnterEnd, N = a.onLeaveEnd, E = a.onVisibleChanged, P = useMountStatus(), F = _slicedToArray(P, 2), W = F[0], J = F[1], z = useMountStatus(STATUS_NONE), Y = _slicedToArray(z, 2), Q = Y[0], oe = Y[1], ee = useMountStatus(null), X = _slicedToArray(ee, 2), ue = X[0], we = X[1], Ce = useRef(!1), ce = useRef(null), xe = useRef(!1), te = useRef(null);
9576
9576
  function de() {
9577
9577
  var yt = o();
9578
9578
  return yt || te.current;
@@ -9582,10 +9582,10 @@ function useStatus(e, r, o, a) {
9582
9582
  var Tt = de();
9583
9583
  if (!(yt && !yt.deadline && yt.target !== Tt)) {
9584
9584
  var Ot;
9585
- Q === STATUS_APPEAR && j.current ? Ot = _ == null ? void 0 : _(Tt, yt) : Q === STATUS_ENTER && j.current ? Ot = F == null ? void 0 : F(Tt, yt) : Q === STATUS_LEAVE && j.current && (Ot = N == null ? void 0 : N(Tt, yt)), Ot !== !1 && !xe.current && (re(STATUS_NONE), we(null));
9585
+ Q === STATUS_APPEAR && j.current ? Ot = _ == null ? void 0 : _(Tt, yt) : Q === STATUS_ENTER && j.current ? Ot = A == null ? void 0 : A(Tt, yt) : Q === STATUS_LEAVE && j.current && (Ot = N == null ? void 0 : N(Tt, yt)), Ot !== !1 && !xe.current && (oe(STATUS_NONE), we(null));
9586
9586
  }
9587
9587
  }
9588
- var oe = useDomMotionEvents(U), Re = _slicedToArray(oe, 1), Fe = Re[0], L = React.useMemo(function() {
9588
+ var re = useDomMotionEvents(U), Re = _slicedToArray(re, 1), Fe = Re[0], L = React.useMemo(function() {
9589
9589
  var yt, Tt, Ot;
9590
9590
  switch (Q) {
9591
9591
  case "appear":
@@ -9617,10 +9617,10 @@ function useStatus(e, r, o, a) {
9617
9617
  var yt = Ce.current;
9618
9618
  Ce.current = !0;
9619
9619
  var Tt;
9620
- !yt && r && u && (Tt = STATUS_APPEAR), yt && r && l && (Tt = STATUS_ENTER), (yt && !r && f || !yt && h && !r && f) && (Tt = STATUS_LEAVE), Tt && (re(Tt), Ne());
9620
+ !yt && r && u && (Tt = STATUS_APPEAR), yt && r && l && (Tt = STATUS_ENTER), (yt && !r && f || !yt && h && !r && f) && (Tt = STATUS_LEAVE), Tt && (oe(Tt), Ne());
9621
9621
  }
9622
9622
  }, [r]), useEffect(function() {
9623
- (Q === STATUS_APPEAR && !u || Q === STATUS_ENTER && !l || Q === STATUS_LEAVE && !f) && re(STATUS_NONE);
9623
+ (Q === STATUS_APPEAR && !u || Q === STATUS_ENTER && !l || Q === STATUS_LEAVE && !f) && oe(STATUS_NONE);
9624
9624
  }, [u, l, f]), useEffect(function() {
9625
9625
  return function() {
9626
9626
  clearTimeout(ce.current), xe.current = !0;
@@ -9661,9 +9661,9 @@ function genCSSMotion(e) {
9661
9661
  return null;
9662
9662
  }
9663
9663
  }
9664
- var O = useStatus(C, u, v, s), w = _slicedToArray(O, 4), _ = w[0], F = w[1], N = w[2], E = w[3], P = useRef(l);
9664
+ var O = useStatus(C, u, v, s), w = _slicedToArray(O, 4), _ = w[0], A = w[1], N = w[2], E = w[3], P = useRef(l);
9665
9665
  P.current = l;
9666
- var A = React.useCallback(function(Q) {
9666
+ var F = React.useCallback(function(Q) {
9667
9667
  b.current = Q, fillRef(P.current, Q);
9668
9668
  }, []), W, J = _objectSpread2$1(_objectSpread2$1({}, I), {}, {
9669
9669
  visible: u
@@ -9671,19 +9671,19 @@ function genCSSMotion(e) {
9671
9671
  if (!h)
9672
9672
  W = null;
9673
9673
  else if (_ === STATUS_NONE || !o(s))
9674
- E ? W = h(_objectSpread2$1({}, J), A) : f ? p ? W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9674
+ E ? W = h(_objectSpread2$1({}, J), F) : f ? p ? W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9675
9675
  style: {
9676
9676
  display: "none"
9677
9677
  }
9678
- }), A) : W = null : W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9678
+ }), F) : W = null : W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9679
9679
  className: m
9680
- }), A);
9680
+ }), F);
9681
9681
  else {
9682
9682
  var z, Y;
9683
- F === STEP_PREPARE ? Y = "prepare" : isActive(F) ? Y = "active" : F === STEP_START && (Y = "start"), W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9683
+ A === STEP_PREPARE ? Y = "prepare" : isActive(A) ? Y = "active" : A === STEP_START && (Y = "start"), W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
9684
9684
  className: classnamesExports(getTransitionName$1(g, _), (z = {}, _defineProperty$1(z, getTransitionName$1(g, "".concat(_, "-").concat(Y)), Y), _defineProperty$1(z, g, typeof g == "string"), z)),
9685
9685
  style: N
9686
- }), A);
9686
+ }), F);
9687
9687
  }
9688
9688
  return /* @__PURE__ */ jsx(DomWrapper, {
9689
9689
  ref: y,
@@ -9969,8 +9969,8 @@ var Notification = /* @__PURE__ */ function(e) {
9969
9969
  noticeKey: v || y,
9970
9970
  updateMark: b,
9971
9971
  onClose: function(_) {
9972
- var F;
9973
- s.remove(_), (F = I.onClose) === null || F === void 0 || F.call(I);
9972
+ var A;
9973
+ s.remove(_), (A = I.onClose) === null || A === void 0 || A.call(I);
9974
9974
  },
9975
9975
  onClick: I.onClick,
9976
9976
  children: I.content
@@ -10273,15 +10273,15 @@ function requireNotice() {
10273
10273
  }, {
10274
10274
  key: "render",
10275
10275
  value: function() {
10276
- var C = this, b = this.props, y = b.prefixCls, v = b.className, O = b.closable, w = b.closeIcon, _ = b.style, F = b.onClick, N = b.children, E = b.holder, P = "".concat(y, "-notice"), A = Object.keys(this.props).reduce(function(J, z) {
10276
+ var C = this, b = this.props, y = b.prefixCls, v = b.className, O = b.closable, w = b.closeIcon, _ = b.style, A = b.onClick, N = b.children, E = b.holder, P = "".concat(y, "-notice"), F = Object.keys(this.props).reduce(function(J, z) {
10277
10277
  return (z.substr(0, 5) === "data-" || z.substr(0, 5) === "aria-" || z === "role") && (J[z] = C.props[z]), J;
10278
10278
  }, {}), W = u.createElement("div", Object.assign({
10279
10279
  className: (0, f.default)(P, v, (0, o.default)({}, "".concat(P, "-closable"), O)),
10280
10280
  style: _,
10281
10281
  onMouseEnter: this.clearCloseTimer,
10282
10282
  onMouseLeave: this.startCloseTimer,
10283
- onClick: F
10284
- }, A), u.createElement("div", {
10283
+ onClick: A
10284
+ }, F), u.createElement("div", {
10285
10285
  className: "".concat(P, "-content")
10286
10286
  }, N), O ? u.createElement("a", {
10287
10287
  tabIndex: 0,
@@ -10345,30 +10345,30 @@ function requireUseMessage() {
10345
10345
  }
10346
10346
  }, y = (0, c.default)(b), v = (0, s.default)(y, 2), O = v[0], w = v[1];
10347
10347
  function _(N) {
10348
- var E = N.prefixCls, P = I("message", E), A = N.key || (0, d.getKeyThenIncreaseKey)(), W = new Promise(function(z) {
10348
+ var E = N.prefixCls, P = I("message", E), F = N.key || (0, d.getKeyThenIncreaseKey)(), W = new Promise(function(z) {
10349
10349
  var Y = function() {
10350
10350
  return typeof N.onClose == "function" && N.onClose(), z(!0);
10351
10351
  };
10352
10352
  p((0, a.default)((0, a.default)({}, N), {
10353
10353
  prefixCls: P
10354
10354
  }), function(Q) {
10355
- var re = Q.prefixCls, ee = Q.instance;
10355
+ var oe = Q.prefixCls, ee = Q.instance;
10356
10356
  C = ee, O(h((0, a.default)((0, a.default)({}, N), {
10357
- key: A,
10357
+ key: F,
10358
10358
  onClose: Y
10359
- }), re));
10359
+ }), oe));
10360
10360
  });
10361
10361
  }), J = function() {
10362
- C && C.removeNotice(A);
10362
+ C && C.removeNotice(F);
10363
10363
  };
10364
10364
  return J.then = function(z, Y) {
10365
10365
  return W.then(z, Y);
10366
10366
  }, J.promise = W, J;
10367
10367
  }
10368
- var F = l.useRef({});
10369
- return F.current.open = _, ["success", "info", "warning", "error", "loading"].forEach(function(N) {
10370
- return (0, d.attachTypeApi)(F.current, N);
10371
- }), [F.current, /* @__PURE__ */ l.createElement(u.ConfigConsumer, {
10368
+ var A = l.useRef({});
10369
+ return A.current.open = _, ["success", "info", "warning", "error", "loading"].forEach(function(N) {
10370
+ return (0, d.attachTypeApi)(A.current, N);
10371
+ }), [A.current, /* @__PURE__ */ l.createElement(u.ConfigConsumer, {
10372
10372
  key: "holder"
10373
10373
  }, function(N) {
10374
10374
  return I = N.getPrefixCls, w;
@@ -10385,12 +10385,12 @@ function requireMessage() {
10385
10385
  Object.defineProperty(e, "__esModule", {
10386
10386
  value: !0
10387
10387
  }), e.getKeyThenIncreaseKey = N, e.attachTypeApi = Q, e.default = e.getInstance = void 0;
10388
- var a = o(require_extends()), s = o(requireDefineProperty()), l = r(React__default), c = o(requireClassnames()), u = o(require$$6$1), d = o(requireLoadingOutlined()), f = o(requireExclamationCircleFilled()), p = o(requireCloseCircleFilled()), h = o(requireCheckCircleFilled()), g = o(requireInfoCircleFilled()), m = o(requireUseMessage()), I, C = 3, b, y = 1, v = "ant-message", O = "move-up", w, _, F = !1;
10388
+ var a = o(require_extends()), s = o(requireDefineProperty()), l = r(React__default), c = o(requireClassnames()), u = o(require$$6$1), d = o(requireLoadingOutlined()), f = o(requireExclamationCircleFilled()), p = o(requireCloseCircleFilled()), h = o(requireCheckCircleFilled()), g = o(requireInfoCircleFilled()), m = o(requireUseMessage()), I, C = 3, b, y = 1, v = "ant-message", O = "move-up", w, _, A = !1;
10389
10389
  function N() {
10390
10390
  return y++;
10391
10391
  }
10392
10392
  function E(X) {
10393
- X.top !== void 0 && (b = X.top, I = null), X.duration !== void 0 && (C = X.duration), X.prefixCls !== void 0 && (v = X.prefixCls), X.getContainer !== void 0 && (w = X.getContainer), X.transitionName !== void 0 && (O = X.transitionName, I = null), X.maxCount !== void 0 && (_ = X.maxCount, I = null), X.rtl !== void 0 && (F = X.rtl);
10393
+ X.top !== void 0 && (b = X.top, I = null), X.duration !== void 0 && (C = X.duration), X.prefixCls !== void 0 && (v = X.prefixCls), X.getContainer !== void 0 && (w = X.getContainer), X.transitionName !== void 0 && (O = X.transitionName, I = null), X.maxCount !== void 0 && (_ = X.maxCount, I = null), X.rtl !== void 0 && (A = X.rtl);
10394
10394
  }
10395
10395
  function P(X, ue) {
10396
10396
  var we = X.prefixCls || v;
@@ -10423,7 +10423,7 @@ function requireMessage() {
10423
10423
  });
10424
10424
  });
10425
10425
  }
10426
- var A = {
10426
+ var F = {
10427
10427
  info: g.default,
10428
10428
  success: h.default,
10429
10429
  error: p.default,
@@ -10431,7 +10431,7 @@ function requireMessage() {
10431
10431
  loading: d.default
10432
10432
  };
10433
10433
  function W(X, ue) {
10434
- var we, Ce = X.duration !== void 0 ? X.duration : C, ce = A[X.type], xe = (0, c.default)("".concat(ue, "-custom-content"), (we = {}, (0, s.default)(we, "".concat(ue, "-").concat(X.type), X.type), (0, s.default)(we, "".concat(ue, "-rtl"), F === !0), we));
10434
+ var we, Ce = X.duration !== void 0 ? X.duration : C, ce = F[X.type], xe = (0, c.default)("".concat(ue, "-custom-content"), (we = {}, (0, s.default)(we, "".concat(ue, "-").concat(X.type), X.type), (0, s.default)(we, "".concat(ue, "-rtl"), A === !0), we));
10435
10435
  return {
10436
10436
  key: X.key,
10437
10437
  duration: Ce,
@@ -10495,10 +10495,10 @@ function requireMessage() {
10495
10495
  ["success", "info", "warning", "error", "loading"].forEach(function(X) {
10496
10496
  return Q(Y, X);
10497
10497
  }), Y.warn = Y.warning, Y.useMessage = (0, m.default)(P, W);
10498
- var re = function() {
10498
+ var oe = function() {
10499
10499
  return process.env.NODE_ENV === "test" ? I : null;
10500
10500
  };
10501
- e.getInstance = re;
10501
+ e.getInstance = oe;
10502
10502
  var ee = Y;
10503
10503
  e.default = ee;
10504
10504
  }(message)), message;
@@ -10723,26 +10723,26 @@ function requireUseNotification() {
10723
10723
  I == null || I.component.add(N, E);
10724
10724
  }
10725
10725
  }, b = (0, c.default)(C), y = (0, s.default)(b, 2), v = y[0], O = y[1];
10726
- function w(F) {
10727
- var N = F.prefixCls, E = m("notification", N);
10728
- f((0, a.default)((0, a.default)({}, F), {
10726
+ function w(A) {
10727
+ var N = A.prefixCls, E = m("notification", N);
10728
+ f((0, a.default)((0, a.default)({}, A), {
10729
10729
  prefixCls: E
10730
10730
  }), function(P) {
10731
- var A = P.prefixCls, W = P.instance;
10732
- I = W, v(p(F, A));
10731
+ var F = P.prefixCls, W = P.instance;
10732
+ I = W, v(p(A, F));
10733
10733
  });
10734
10734
  }
10735
10735
  var _ = l.useRef({});
10736
- return _.current.open = w, ["success", "info", "warning", "error"].forEach(function(F) {
10737
- _.current[F] = function(N) {
10736
+ return _.current.open = w, ["success", "info", "warning", "error"].forEach(function(A) {
10737
+ _.current[A] = function(N) {
10738
10738
  return _.current.open((0, a.default)((0, a.default)({}, N), {
10739
- type: F
10739
+ type: A
10740
10740
  }));
10741
10741
  };
10742
10742
  }), [_.current, /* @__PURE__ */ l.createElement(u.ConfigConsumer, {
10743
10743
  key: "holder"
10744
- }, function(F) {
10745
- return m = F.getPrefixCls, O;
10744
+ }, function(A) {
10745
+ return m = A.getPrefixCls, O;
10746
10746
  })];
10747
10747
  };
10748
10748
  return h;
@@ -10763,31 +10763,31 @@ function requireNotification() {
10763
10763
  });
10764
10764
  }
10765
10765
  return new (we || (we = Promise))(function(xe, te) {
10766
- function de(oe) {
10766
+ function de(re) {
10767
10767
  try {
10768
- U(Ce.next(oe));
10768
+ U(Ce.next(re));
10769
10769
  } catch (Re) {
10770
10770
  te(Re);
10771
10771
  }
10772
10772
  }
10773
- function j(oe) {
10773
+ function j(re) {
10774
10774
  try {
10775
- U(Ce.throw(oe));
10775
+ U(Ce.throw(re));
10776
10776
  } catch (Re) {
10777
10777
  te(Re);
10778
10778
  }
10779
10779
  }
10780
- function U(oe) {
10781
- oe.done ? xe(oe.value) : ce(oe.value).then(de, j);
10780
+ function U(re) {
10781
+ re.done ? xe(re.value) : ce(re.value).then(de, j);
10782
10782
  }
10783
10783
  U((Ce = Ce.apply(X, ue || [])).next());
10784
10784
  });
10785
- }, b = {}, y = 4.5, v = 24, O = 24, w = "ant-notification", _ = "topRight", F, N, E = !1;
10785
+ }, b = {}, y = 4.5, v = 24, O = 24, w = "ant-notification", _ = "topRight", A, N, E = !1;
10786
10786
  function P(X) {
10787
10787
  var ue = X.duration, we = X.placement, Ce = X.bottom, ce = X.top, xe = X.getContainer, te = X.closeIcon, de = X.prefixCls;
10788
- de !== void 0 && (w = de), ue !== void 0 && (y = ue), we !== void 0 ? _ = we : X.rtl && (_ = "topLeft"), Ce !== void 0 && (O = Ce), ce !== void 0 && (v = ce), xe !== void 0 && (F = xe), te !== void 0 && (N = te), X.rtl !== void 0 && (E = X.rtl);
10788
+ de !== void 0 && (w = de), ue !== void 0 && (y = ue), we !== void 0 ? _ = we : X.rtl && (_ = "topLeft"), Ce !== void 0 && (O = Ce), ce !== void 0 && (v = ce), xe !== void 0 && (A = xe), te !== void 0 && (N = te), X.rtl !== void 0 && (E = X.rtl);
10789
10789
  }
10790
- function A(X) {
10790
+ function F(X) {
10791
10791
  var ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v, we = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : O, Ce;
10792
10792
  switch (X) {
10793
10793
  case "topLeft":
@@ -10822,7 +10822,7 @@ function requireNotification() {
10822
10822
  return Ce;
10823
10823
  }
10824
10824
  function W(X, ue) {
10825
- var we = X.placement, Ce = we === void 0 ? _ : we, ce = X.top, xe = X.bottom, te = X.getContainer, de = te === void 0 ? F : te, j = X.closeIcon, U = j === void 0 ? N : j, oe = X.prefixCls || w, Re = "".concat(oe, "-notice"), Fe = "".concat(oe, "-").concat(Ce), L = b[Fe];
10825
+ var we = X.placement, Ce = we === void 0 ? _ : we, ce = X.top, xe = X.bottom, te = X.getContainer, de = te === void 0 ? A : te, j = X.closeIcon, U = j === void 0 ? N : j, re = X.prefixCls || w, Re = "".concat(re, "-notice"), Fe = "".concat(re, "-").concat(Ce), L = b[Fe];
10826
10826
  if (L) {
10827
10827
  Promise.resolve(L).then(function(Ne) {
10828
10828
  ue({
@@ -10833,15 +10833,15 @@ function requireNotification() {
10833
10833
  return;
10834
10834
  }
10835
10835
  var M = /* @__PURE__ */ c.createElement("span", {
10836
- className: "".concat(oe, "-close-x")
10836
+ className: "".concat(re, "-close-x")
10837
10837
  }, U || /* @__PURE__ */ c.createElement(d.default, {
10838
- className: "".concat(oe, "-close-icon")
10839
- })), Te = (0, f.default)("".concat(oe, "-").concat(Ce), (0, l.default)({}, "".concat(oe, "-rtl"), E === !0));
10838
+ className: "".concat(re, "-close-icon")
10839
+ })), Te = (0, f.default)("".concat(re, "-").concat(Ce), (0, l.default)({}, "".concat(re, "-rtl"), E === !0));
10840
10840
  b[Fe] = new Promise(function(Ne) {
10841
10841
  u.default.newInstance({
10842
- prefixCls: oe,
10842
+ prefixCls: re,
10843
10843
  className: Te,
10844
- style: A(Ce, ce, xe),
10844
+ style: F(Ce, ce, xe),
10845
10845
  getContainer: de,
10846
10846
  closeIcon: M
10847
10847
  }, function(tt) {
@@ -10919,7 +10919,7 @@ function requireNotification() {
10919
10919
  }));
10920
10920
  };
10921
10921
  }), Q.warn = Q.warning, Q.useNotification = (0, I.default)(W, z);
10922
- var re = function(ue) {
10922
+ var oe = function(ue) {
10923
10923
  return C(void 0, void 0, void 0, /* @__PURE__ */ a.default.mark(function we() {
10924
10924
  return a.default.wrap(function(ce) {
10925
10925
  for (; ; )
@@ -10933,7 +10933,7 @@ function requireNotification() {
10933
10933
  }, we);
10934
10934
  }));
10935
10935
  };
10936
- e.getInstance = re;
10936
+ e.getInstance = oe;
10937
10937
  var ee = Q;
10938
10938
  e.default = ee;
10939
10939
  }(notification)), notification;
@@ -10958,14 +10958,14 @@ function requireConfigProvider() {
10958
10958
  var a = o(require_extends()), s = r(React__default), l = o(requireContext$2()), c = require$$5, u = o(requireUseMemo()), d = r(requireLocaleProvider()), f = o(requireLocaleReceiver()), p = requireContext(), h = r(requireSizeContext()), g = o(requireMessage()), m = o(requireNotification()), I = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
10959
10959
  e.configConsumerProps = I;
10960
10960
  var C = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], b = function(w) {
10961
- var _ = w.children, F = w.csp, N = w.autoInsertSpaceInButton, E = w.form, P = w.locale, A = w.componentSize, W = w.direction, J = w.space, z = w.virtual, Y = w.dropdownMatchSelectWidth, Q = w.legacyLocale, re = w.parentContext, ee = w.iconPrefixCls, X = s.useCallback(function(te, de) {
10961
+ var _ = w.children, A = w.csp, N = w.autoInsertSpaceInButton, E = w.form, P = w.locale, F = w.componentSize, W = w.direction, J = w.space, z = w.virtual, Y = w.dropdownMatchSelectWidth, Q = w.legacyLocale, oe = w.parentContext, ee = w.iconPrefixCls, X = s.useCallback(function(te, de) {
10962
10962
  var j = w.prefixCls;
10963
10963
  if (de)
10964
10964
  return de;
10965
- var U = j || re.getPrefixCls("");
10965
+ var U = j || oe.getPrefixCls("");
10966
10966
  return te ? "".concat(U, "-").concat(te) : U;
10967
- }, [re.getPrefixCls]), ue = (0, a.default)((0, a.default)({}, re), {
10968
- csp: F,
10967
+ }, [oe.getPrefixCls]), ue = (0, a.default)((0, a.default)({}, oe), {
10968
+ csp: A,
10969
10969
  autoInsertSpaceInButton: N,
10970
10970
  locale: P || Q,
10971
10971
  direction: W,
@@ -10982,8 +10982,8 @@ function requireConfigProvider() {
10982
10982
  return ue;
10983
10983
  }, ue, function(te, de) {
10984
10984
  var j = Object.keys(te), U = Object.keys(de);
10985
- return j.length !== U.length || j.some(function(oe) {
10986
- return te[oe] !== de[oe];
10985
+ return j.length !== U.length || j.some(function(re) {
10986
+ return te[re] !== de[re];
10987
10987
  });
10988
10988
  }), Ce = s.useMemo(function() {
10989
10989
  return {
@@ -10997,8 +10997,8 @@ function requireConfigProvider() {
10997
10997
  _ANT_MARK__: d.ANT_MARK
10998
10998
  }, ce)), ee && (ce = /* @__PURE__ */ s.createElement(l.default.Provider, {
10999
10999
  value: Ce
11000
- }, ce)), A && (ce = /* @__PURE__ */ s.createElement(h.SizeContextProvider, {
11001
- size: A
11000
+ }, ce)), F && (ce = /* @__PURE__ */ s.createElement(h.SizeContextProvider, {
11001
+ size: F
11002
11002
  }, ce)), /* @__PURE__ */ s.createElement(p.ConfigContext.Provider, {
11003
11003
  value: we
11004
11004
  }, ce);
@@ -11009,7 +11009,7 @@ function requireConfigProvider() {
11009
11009
  }), m.default.config({
11010
11010
  rtl: w.direction === "rtl"
11011
11011
  }));
11012
- }, [w.direction]), /* @__PURE__ */ s.createElement(f.default, null, function(_, F, N) {
11012
+ }, [w.direction]), /* @__PURE__ */ s.createElement(f.default, null, function(_, A, N) {
11013
11013
  return /* @__PURE__ */ s.createElement(p.ConfigConsumer, null, function(E) {
11014
11014
  return /* @__PURE__ */ s.createElement(b, (0, a.default)({
11015
11015
  parentContext: E,
@@ -11031,71 +11031,71 @@ function requireInput() {
11031
11031
  value: !0
11032
11032
  }), e.fixControlledValue = b, e.resolveOnChange = y, e.getInputClassName = v, e.triggerFocus = O, e.default = void 0;
11033
11033
  var a = o(require_extends()), s = o(requireClassCallCheck()), l = o(requireCreateClass()), c = o(requireInherits()), u = o(requireCreateSuper()), d = o(requireDefineProperty()), f = r(React__default), p = o(requireClassnames()), h = o(requireOmit()), g = r(requireClearableLabeledInput()), m = requireConfigProvider(), I = o(requireSizeContext()), C = o(requireDevWarning());
11034
- function b(F) {
11035
- return typeof F > "u" || F === null ? "" : F;
11034
+ function b(A) {
11035
+ return typeof A > "u" || A === null ? "" : A;
11036
11036
  }
11037
- function y(F, N, E) {
11037
+ function y(A, N, E) {
11038
11038
  if (E) {
11039
11039
  var P = N;
11040
11040
  if (N.type === "click") {
11041
- P = Object.create(N), P.target = F, P.currentTarget = F;
11042
- var A = F.value;
11043
- F.value = "", E(P), F.value = A;
11041
+ P = Object.create(N), P.target = A, P.currentTarget = A;
11042
+ var F = A.value;
11043
+ A.value = "", E(P), A.value = F;
11044
11044
  return;
11045
11045
  }
11046
11046
  E(P);
11047
11047
  }
11048
11048
  }
11049
- function v(F, N, E, P, A) {
11049
+ function v(A, N, E, P, F) {
11050
11050
  var W;
11051
- return (0, p.default)(F, (W = {}, (0, d.default)(W, "".concat(F, "-sm"), E === "small"), (0, d.default)(W, "".concat(F, "-lg"), E === "large"), (0, d.default)(W, "".concat(F, "-disabled"), P), (0, d.default)(W, "".concat(F, "-rtl"), A === "rtl"), (0, d.default)(W, "".concat(F, "-borderless"), !N), W));
11051
+ return (0, p.default)(A, (W = {}, (0, d.default)(W, "".concat(A, "-sm"), E === "small"), (0, d.default)(W, "".concat(A, "-lg"), E === "large"), (0, d.default)(W, "".concat(A, "-disabled"), P), (0, d.default)(W, "".concat(A, "-rtl"), F === "rtl"), (0, d.default)(W, "".concat(A, "-borderless"), !N), W));
11052
11052
  }
11053
- function O(F, N) {
11054
- if (!!F) {
11055
- F.focus(N);
11053
+ function O(A, N) {
11054
+ if (!!A) {
11055
+ A.focus(N);
11056
11056
  var E = N || {}, P = E.cursor;
11057
11057
  if (P) {
11058
- var A = F.value.length;
11058
+ var F = A.value.length;
11059
11059
  switch (P) {
11060
11060
  case "start":
11061
- F.setSelectionRange(0, 0);
11061
+ A.setSelectionRange(0, 0);
11062
11062
  break;
11063
11063
  case "end":
11064
- F.setSelectionRange(A, A);
11064
+ A.setSelectionRange(F, F);
11065
11065
  break;
11066
11066
  default:
11067
- F.setSelectionRange(0, A);
11067
+ A.setSelectionRange(0, F);
11068
11068
  }
11069
11069
  }
11070
11070
  }
11071
11071
  }
11072
- var w = /* @__PURE__ */ function(F) {
11073
- (0, c.default)(E, F);
11072
+ var w = /* @__PURE__ */ function(A) {
11073
+ (0, c.default)(E, A);
11074
11074
  var N = (0, u.default)(E);
11075
11075
  function E(P) {
11076
- var A;
11077
- (0, s.default)(this, E), A = N.call(this, P), A.direction = "ltr", A.focus = function(J) {
11078
- O(A.input, J);
11079
- }, A.saveClearableInput = function(J) {
11080
- A.clearableInput = J;
11081
- }, A.saveInput = function(J) {
11082
- A.input = J;
11083
- }, A.onFocus = function(J) {
11084
- var z = A.props.onFocus;
11085
- A.setState({
11076
+ var F;
11077
+ (0, s.default)(this, E), F = N.call(this, P), F.direction = "ltr", F.focus = function(J) {
11078
+ O(F.input, J);
11079
+ }, F.saveClearableInput = function(J) {
11080
+ F.clearableInput = J;
11081
+ }, F.saveInput = function(J) {
11082
+ F.input = J;
11083
+ }, F.onFocus = function(J) {
11084
+ var z = F.props.onFocus;
11085
+ F.setState({
11086
11086
  focused: !0
11087
- }, A.clearPasswordValueAttribute), z && z(J);
11088
- }, A.onBlur = function(J) {
11089
- var z = A.props.onBlur;
11090
- A.setState({
11087
+ }, F.clearPasswordValueAttribute), z && z(J);
11088
+ }, F.onBlur = function(J) {
11089
+ var z = F.props.onBlur;
11090
+ F.setState({
11091
11091
  focused: !1
11092
- }, A.clearPasswordValueAttribute), z && z(J);
11093
- }, A.handleReset = function(J) {
11094
- A.setValue("", function() {
11095
- A.focus();
11096
- }), y(A.input, J, A.props.onChange);
11097
- }, A.renderInput = function(J, z, Y) {
11098
- var Q = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, re = A.props, ee = re.className, X = re.addonBefore, ue = re.addonAfter, we = re.size, Ce = re.disabled, ce = (0, h.default)(A.props, [
11092
+ }, F.clearPasswordValueAttribute), z && z(J);
11093
+ }, F.handleReset = function(J) {
11094
+ F.setValue("", function() {
11095
+ F.focus();
11096
+ }), y(F.input, J, F.props.onChange);
11097
+ }, F.renderInput = function(J, z, Y) {
11098
+ var Q = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, oe = F.props, ee = oe.className, X = oe.addonBefore, ue = oe.addonAfter, we = oe.size, Ce = oe.disabled, ce = (0, h.default)(F.props, [
11099
11099
  "prefixCls",
11100
11100
  "onPressEnter",
11101
11101
  "addonBefore",
@@ -11111,47 +11111,47 @@ function requireInput() {
11111
11111
  return /* @__PURE__ */ f.createElement("input", (0, a.default)({
11112
11112
  autoComplete: Q.autoComplete
11113
11113
  }, ce, {
11114
- onChange: A.handleChange,
11115
- onFocus: A.onFocus,
11116
- onBlur: A.onBlur,
11117
- onKeyDown: A.handleKeyDown,
11118
- className: (0, p.default)(v(J, Y, we || z, Ce, A.direction), (0, d.default)({}, ee, ee && !X && !ue)),
11119
- ref: A.saveInput
11114
+ onChange: F.handleChange,
11115
+ onFocus: F.onFocus,
11116
+ onBlur: F.onBlur,
11117
+ onKeyDown: F.handleKeyDown,
11118
+ className: (0, p.default)(v(J, Y, we || z, Ce, F.direction), (0, d.default)({}, ee, ee && !X && !ue)),
11119
+ ref: F.saveInput
11120
11120
  }));
11121
- }, A.clearPasswordValueAttribute = function() {
11122
- A.removePasswordTimeout = setTimeout(function() {
11123
- A.input && A.input.getAttribute("type") === "password" && A.input.hasAttribute("value") && A.input.removeAttribute("value");
11121
+ }, F.clearPasswordValueAttribute = function() {
11122
+ F.removePasswordTimeout = setTimeout(function() {
11123
+ F.input && F.input.getAttribute("type") === "password" && F.input.hasAttribute("value") && F.input.removeAttribute("value");
11124
11124
  });
11125
- }, A.handleChange = function(J) {
11126
- A.setValue(J.target.value, A.clearPasswordValueAttribute), y(A.input, J, A.props.onChange);
11127
- }, A.handleKeyDown = function(J) {
11128
- var z = A.props, Y = z.onPressEnter, Q = z.onKeyDown;
11125
+ }, F.handleChange = function(J) {
11126
+ F.setValue(J.target.value, F.clearPasswordValueAttribute), y(F.input, J, F.props.onChange);
11127
+ }, F.handleKeyDown = function(J) {
11128
+ var z = F.props, Y = z.onPressEnter, Q = z.onKeyDown;
11129
11129
  J.keyCode === 13 && Y && Y(J), Q && Q(J);
11130
- }, A.renderComponent = function(J) {
11131
- var z = J.getPrefixCls, Y = J.direction, Q = J.input, re = A.state, ee = re.value, X = re.focused, ue = A.props, we = ue.prefixCls, Ce = ue.bordered, ce = Ce === void 0 ? !0 : Ce, xe = z("input", we);
11132
- return A.direction = Y, /* @__PURE__ */ f.createElement(I.default.Consumer, null, function(te) {
11130
+ }, F.renderComponent = function(J) {
11131
+ var z = J.getPrefixCls, Y = J.direction, Q = J.input, oe = F.state, ee = oe.value, X = oe.focused, ue = F.props, we = ue.prefixCls, Ce = ue.bordered, ce = Ce === void 0 ? !0 : Ce, xe = z("input", we);
11132
+ return F.direction = Y, /* @__PURE__ */ f.createElement(I.default.Consumer, null, function(te) {
11133
11133
  return /* @__PURE__ */ f.createElement(g.default, (0, a.default)({
11134
11134
  size: te
11135
- }, A.props, {
11135
+ }, F.props, {
11136
11136
  prefixCls: xe,
11137
11137
  inputType: "input",
11138
11138
  value: b(ee),
11139
- element: A.renderInput(xe, te, ce, Q),
11140
- handleReset: A.handleReset,
11141
- ref: A.saveClearableInput,
11139
+ element: F.renderInput(xe, te, ce, Q),
11140
+ handleReset: F.handleReset,
11141
+ ref: F.saveClearableInput,
11142
11142
  direction: Y,
11143
11143
  focused: X,
11144
- triggerFocus: A.focus,
11144
+ triggerFocus: F.focus,
11145
11145
  bordered: ce
11146
11146
  }));
11147
11147
  });
11148
11148
  };
11149
11149
  var W = typeof P.value > "u" ? P.defaultValue : P.value;
11150
- return A.state = {
11150
+ return F.state = {
11151
11151
  value: W,
11152
11152
  focused: !1,
11153
11153
  prevValue: P.value
11154
- }, A;
11154
+ }, F;
11155
11155
  }
11156
11156
  return (0, l.default)(E, [{
11157
11157
  key: "componentDidMount",
@@ -11164,8 +11164,8 @@ function requireInput() {
11164
11164
  }
11165
11165
  }, {
11166
11166
  key: "getSnapshotBeforeUpdate",
11167
- value: function(A) {
11168
- return (0, g.hasPrefixSuffix)(A) !== (0, g.hasPrefixSuffix)(this.props) && (0, C.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
11167
+ value: function(F) {
11168
+ return (0, g.hasPrefixSuffix)(F) !== (0, g.hasPrefixSuffix)(this.props) && (0, C.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
11169
11169
  }
11170
11170
  }, {
11171
11171
  key: "componentWillUnmount",
@@ -11179,8 +11179,8 @@ function requireInput() {
11179
11179
  }
11180
11180
  }, {
11181
11181
  key: "setSelectionRange",
11182
- value: function(A, W, J) {
11183
- this.input.setSelectionRange(A, W, J);
11182
+ value: function(F, W, J) {
11183
+ this.input.setSelectionRange(F, W, J);
11184
11184
  }
11185
11185
  }, {
11186
11186
  key: "select",
@@ -11189,9 +11189,9 @@ function requireInput() {
11189
11189
  }
11190
11190
  }, {
11191
11191
  key: "setValue",
11192
- value: function(A, W) {
11192
+ value: function(F, W) {
11193
11193
  this.props.value === void 0 ? this.setState({
11194
- value: A
11194
+ value: F
11195
11195
  }, W) : W == null || W();
11196
11196
  }
11197
11197
  }, {
@@ -11201,11 +11201,11 @@ function requireInput() {
11201
11201
  }
11202
11202
  }], [{
11203
11203
  key: "getDerivedStateFromProps",
11204
- value: function(A, W) {
11204
+ value: function(F, W) {
11205
11205
  var J = W.prevValue, z = {
11206
- prevValue: A.value
11206
+ prevValue: F.value
11207
11207
  };
11208
- return (A.value !== void 0 || J !== A.value) && (z.value = A.value), z;
11208
+ return (F.value !== void 0 || J !== F.value) && (z.value = F.value), z;
11209
11209
  }
11210
11210
  }]), E;
11211
11211
  }(f.Component);
@@ -11253,22 +11253,22 @@ function requireClearableLabeledInput() {
11253
11253
  (0, c.default)(_, O);
11254
11254
  var w = (0, u.default)(_);
11255
11255
  function _() {
11256
- var F;
11257
- return (0, s.default)(this, _), F = w.apply(this, arguments), F.containerRef = /* @__PURE__ */ d.createRef(), F.onInputMouseUp = function(N) {
11256
+ var A;
11257
+ return (0, s.default)(this, _), A = w.apply(this, arguments), A.containerRef = /* @__PURE__ */ d.createRef(), A.onInputMouseUp = function(N) {
11258
11258
  var E;
11259
- if (!((E = F.containerRef.current) === null || E === void 0) && E.contains(N.target)) {
11260
- var P = F.props.triggerFocus;
11259
+ if (!((E = A.containerRef.current) === null || E === void 0) && E.contains(N.target)) {
11260
+ var P = A.props.triggerFocus;
11261
11261
  P == null || P();
11262
11262
  }
11263
- }, F;
11263
+ }, A;
11264
11264
  }
11265
11265
  return (0, l.default)(_, [{
11266
11266
  key: "renderClearIcon",
11267
11267
  value: function(N) {
11268
- var E = this.props, P = E.allowClear, A = E.value, W = E.disabled, J = E.readOnly, z = E.handleReset;
11268
+ var E = this.props, P = E.allowClear, F = E.value, W = E.disabled, J = E.readOnly, z = E.handleReset;
11269
11269
  if (!P)
11270
11270
  return null;
11271
- var Y = !W && !J && A, Q = "".concat(N, "-clear-icon");
11271
+ var Y = !W && !J && F, Q = "".concat(N, "-clear-icon");
11272
11272
  return /* @__PURE__ */ d.createElement(p.default, {
11273
11273
  onClick: z,
11274
11274
  className: (0, f.default)((0, a.default)({}, "".concat(Q, "-hidden"), !Y), Q),
@@ -11278,22 +11278,22 @@ function requireClearableLabeledInput() {
11278
11278
  }, {
11279
11279
  key: "renderSuffix",
11280
11280
  value: function(N) {
11281
- var E = this.props, P = E.suffix, A = E.allowClear;
11282
- return P || A ? /* @__PURE__ */ d.createElement("span", {
11281
+ var E = this.props, P = E.suffix, F = E.allowClear;
11282
+ return P || F ? /* @__PURE__ */ d.createElement("span", {
11283
11283
  className: "".concat(N, "-suffix")
11284
11284
  }, this.renderClearIcon(N), P) : null;
11285
11285
  }
11286
11286
  }, {
11287
11287
  key: "renderLabeledIcon",
11288
11288
  value: function(N, E) {
11289
- var P, A = this.props, W = A.focused, J = A.value, z = A.prefix, Y = A.className, Q = A.size, re = A.suffix, ee = A.disabled, X = A.allowClear, ue = A.direction, we = A.style, Ce = A.readOnly, ce = A.bordered, xe = this.renderSuffix(N);
11289
+ var P, F = this.props, W = F.focused, J = F.value, z = F.prefix, Y = F.className, Q = F.size, oe = F.suffix, ee = F.disabled, X = F.allowClear, ue = F.direction, we = F.style, Ce = F.readOnly, ce = F.bordered, xe = this.renderSuffix(N);
11290
11290
  if (!C(this.props))
11291
11291
  return (0, m.cloneElement)(E, {
11292
11292
  value: J
11293
11293
  });
11294
11294
  var te = z ? /* @__PURE__ */ d.createElement("span", {
11295
11295
  className: "".concat(N, "-prefix")
11296
- }, z) : null, de = (0, f.default)("".concat(N, "-affix-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-focused"), W), (0, a.default)(P, "".concat(N, "-affix-wrapper-disabled"), ee), (0, a.default)(P, "".concat(N, "-affix-wrapper-sm"), Q === "small"), (0, a.default)(P, "".concat(N, "-affix-wrapper-lg"), Q === "large"), (0, a.default)(P, "".concat(N, "-affix-wrapper-input-with-clear-btn"), re && X && J), (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), ue === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-readonly"), Ce), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !ce), (0, a.default)(P, "".concat(Y), !b(this.props) && Y), P));
11296
+ }, z) : null, de = (0, f.default)("".concat(N, "-affix-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-focused"), W), (0, a.default)(P, "".concat(N, "-affix-wrapper-disabled"), ee), (0, a.default)(P, "".concat(N, "-affix-wrapper-sm"), Q === "small"), (0, a.default)(P, "".concat(N, "-affix-wrapper-lg"), Q === "large"), (0, a.default)(P, "".concat(N, "-affix-wrapper-input-with-clear-btn"), oe && X && J), (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), ue === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-readonly"), Ce), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !ce), (0, a.default)(P, "".concat(Y), !b(this.props) && Y), P));
11297
11297
  return /* @__PURE__ */ d.createElement("span", {
11298
11298
  ref: this.containerRef,
11299
11299
  className: de,
@@ -11308,14 +11308,14 @@ function requireClearableLabeledInput() {
11308
11308
  }, {
11309
11309
  key: "renderInputWithLabel",
11310
11310
  value: function(N, E) {
11311
- var P, A = this.props, W = A.addonBefore, J = A.addonAfter, z = A.style, Y = A.size, Q = A.className, re = A.direction;
11311
+ var P, F = this.props, W = F.addonBefore, J = F.addonAfter, z = F.style, Y = F.size, Q = F.className, oe = F.direction;
11312
11312
  if (!b(this.props))
11313
11313
  return E;
11314
11314
  var ee = "".concat(N, "-group"), X = "".concat(ee, "-addon"), ue = W ? /* @__PURE__ */ d.createElement("span", {
11315
11315
  className: X
11316
11316
  }, W) : null, we = J ? /* @__PURE__ */ d.createElement("span", {
11317
11317
  className: X
11318
- }, J) : null, Ce = (0, f.default)("".concat(N, "-wrapper"), ee, (0, a.default)({}, "".concat(ee, "-rtl"), re === "rtl")), ce = (0, f.default)("".concat(N, "-group-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-group-wrapper-sm"), Y === "small"), (0, a.default)(P, "".concat(N, "-group-wrapper-lg"), Y === "large"), (0, a.default)(P, "".concat(N, "-group-wrapper-rtl"), re === "rtl"), P), Q);
11318
+ }, J) : null, Ce = (0, f.default)("".concat(N, "-wrapper"), ee, (0, a.default)({}, "".concat(ee, "-rtl"), oe === "rtl")), ce = (0, f.default)("".concat(N, "-group-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-group-wrapper-sm"), Y === "small"), (0, a.default)(P, "".concat(N, "-group-wrapper-lg"), Y === "large"), (0, a.default)(P, "".concat(N, "-group-wrapper-rtl"), oe === "rtl"), P), Q);
11319
11319
  return /* @__PURE__ */ d.createElement("span", {
11320
11320
  className: ce,
11321
11321
  style: z
@@ -11328,12 +11328,12 @@ function requireClearableLabeledInput() {
11328
11328
  }, {
11329
11329
  key: "renderTextAreaWithClearIcon",
11330
11330
  value: function(N, E) {
11331
- var P, A = this.props, W = A.value, J = A.allowClear, z = A.className, Y = A.style, Q = A.direction, re = A.bordered;
11331
+ var P, F = this.props, W = F.value, J = F.allowClear, z = F.className, Y = F.style, Q = F.direction, oe = F.bordered;
11332
11332
  if (!J)
11333
11333
  return (0, m.cloneElement)(E, {
11334
11334
  value: W
11335
11335
  });
11336
- var ee = (0, f.default)("".concat(N, "-affix-wrapper"), "".concat(N, "-affix-wrapper-textarea-with-clear-btn"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), Q === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !re), (0, a.default)(P, "".concat(z), !b(this.props) && z), P));
11336
+ var ee = (0, f.default)("".concat(N, "-affix-wrapper"), "".concat(N, "-affix-wrapper-textarea-with-clear-btn"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), Q === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !oe), (0, a.default)(P, "".concat(z), !b(this.props) && z), P));
11337
11337
  return /* @__PURE__ */ d.createElement("span", {
11338
11338
  className: ee,
11339
11339
  style: Y
@@ -11345,8 +11345,8 @@ function requireClearableLabeledInput() {
11345
11345
  }, {
11346
11346
  key: "render",
11347
11347
  value: function() {
11348
- var N = this.props, E = N.prefixCls, P = N.inputType, A = N.element;
11349
- return P === I[0] ? this.renderTextAreaWithClearIcon(E, A) : this.renderInputWithLabel(E, this.renderLabeledIcon(E, A));
11348
+ var N = this.props, E = N.prefixCls, P = N.inputType, F = N.element;
11349
+ return P === I[0] ? this.renderTextAreaWithClearIcon(E, F) : this.renderInputWithLabel(E, this.renderLabeledIcon(E, F));
11350
11350
  }
11351
11351
  }]), _;
11352
11352
  }(d.Component), v = y;
@@ -11359,29 +11359,29 @@ function requireClearableLabeledInput() {
11359
11359
  value: !0
11360
11360
  }), e.default = void 0;
11361
11361
  var a = o(_typeof$2.exports), s = o(requireToConsumableArray()), l = o(require_extends()), c = o(requireDefineProperty()), u = o(requireSlicedToArray()), d = r(React__default), f = o(require$$8), p = o(requireOmit()), h = o(requireClassnames()), g = o(requireUseMergedState()), m = o(requireClearableLabeledInput()), I = requireConfigProvider(), C = requireInput(), b = o(requireSizeContext()), y = function(w, _) {
11362
- var F = {};
11362
+ var A = {};
11363
11363
  for (var N in w)
11364
- Object.prototype.hasOwnProperty.call(w, N) && _.indexOf(N) < 0 && (F[N] = w[N]);
11364
+ Object.prototype.hasOwnProperty.call(w, N) && _.indexOf(N) < 0 && (A[N] = w[N]);
11365
11365
  if (w != null && typeof Object.getOwnPropertySymbols == "function")
11366
11366
  for (var E = 0, N = Object.getOwnPropertySymbols(w); E < N.length; E++)
11367
- _.indexOf(N[E]) < 0 && Object.prototype.propertyIsEnumerable.call(w, N[E]) && (F[N[E]] = w[N[E]]);
11368
- return F;
11367
+ _.indexOf(N[E]) < 0 && Object.prototype.propertyIsEnumerable.call(w, N[E]) && (A[N[E]] = w[N[E]]);
11368
+ return A;
11369
11369
  }, v = /* @__PURE__ */ d.forwardRef(function(w, _) {
11370
- var F, N = w.prefixCls, E = w.bordered, P = E === void 0 ? !0 : E, A = w.showCount, W = A === void 0 ? !1 : A, J = w.maxLength, z = w.className, Y = w.style, Q = w.size, re = y(w, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), ee = d.useContext(I.ConfigContext), X = ee.getPrefixCls, ue = ee.direction, we = d.useContext(b.default), Ce = d.useRef(null), ce = d.useRef(null), xe = (0, g.default)(re.defaultValue, {
11371
- value: re.value
11372
- }), te = (0, u.default)(xe, 2), de = te[0], j = te[1], U = d.useRef(re.value);
11370
+ var A, N = w.prefixCls, E = w.bordered, P = E === void 0 ? !0 : E, F = w.showCount, W = F === void 0 ? !1 : F, J = w.maxLength, z = w.className, Y = w.style, Q = w.size, oe = y(w, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), ee = d.useContext(I.ConfigContext), X = ee.getPrefixCls, ue = ee.direction, we = d.useContext(b.default), Ce = d.useRef(null), ce = d.useRef(null), xe = (0, g.default)(oe.defaultValue, {
11371
+ value: oe.value
11372
+ }), te = (0, u.default)(xe, 2), de = te[0], j = te[1], U = d.useRef(oe.value);
11373
11373
  d.useEffect(function() {
11374
- (re.value !== void 0 || U.current !== re.value) && (j(re.value), U.current = re.value);
11375
- }, [re.value, U.current]);
11376
- var oe = function(Tt, Ot) {
11377
- re.value === void 0 && (j(Tt), Ot == null || Ot());
11374
+ (oe.value !== void 0 || U.current !== oe.value) && (j(oe.value), U.current = oe.value);
11375
+ }, [oe.value, U.current]);
11376
+ var re = function(Tt, Ot) {
11377
+ oe.value === void 0 && (j(Tt), Ot == null || Ot());
11378
11378
  }, Re = function(Tt) {
11379
- oe(Tt.target.value), (0, C.resolveOnChange)(Ce.current, Tt, re.onChange);
11379
+ re(Tt.target.value), (0, C.resolveOnChange)(Ce.current, Tt, oe.onChange);
11380
11380
  }, Fe = function(Tt) {
11381
- oe("", function() {
11381
+ re("", function() {
11382
11382
  var Ot;
11383
11383
  (Ot = Ce.current) === null || Ot === void 0 || Ot.focus();
11384
- }), (0, C.resolveOnChange)(Ce.current, Tt, re.onChange);
11384
+ }), (0, C.resolveOnChange)(Ce.current, Tt, oe.onChange);
11385
11385
  }, L = X("input", N);
11386
11386
  d.useImperativeHandle(_, function() {
11387
11387
  var yt;
@@ -11397,16 +11397,16 @@ function requireClearableLabeledInput() {
11397
11397
  }
11398
11398
  };
11399
11399
  });
11400
- var M = /* @__PURE__ */ d.createElement(f.default, (0, l.default)({}, (0, p.default)(re, ["allowClear"]), {
11400
+ var M = /* @__PURE__ */ d.createElement(f.default, (0, l.default)({}, (0, p.default)(oe, ["allowClear"]), {
11401
11401
  maxLength: J,
11402
- className: (0, h.default)((F = {}, (0, c.default)(F, "".concat(L, "-borderless"), !P), (0, c.default)(F, z, z && !W), (0, c.default)(F, "".concat(L, "-sm"), we === "small" || Q === "small"), (0, c.default)(F, "".concat(L, "-lg"), we === "large" || Q === "large"), F)),
11402
+ className: (0, h.default)((A = {}, (0, c.default)(A, "".concat(L, "-borderless"), !P), (0, c.default)(A, z, z && !W), (0, c.default)(A, "".concat(L, "-sm"), we === "small" || Q === "small"), (0, c.default)(A, "".concat(L, "-lg"), we === "large" || Q === "large"), A)),
11403
11403
  style: W ? void 0 : Y,
11404
11404
  prefixCls: L,
11405
11405
  onChange: Re,
11406
11406
  ref: Ce
11407
11407
  })), Te = (0, C.fixControlledValue)(de), Ne = Number(J) > 0;
11408
11408
  Te = Ne ? (0, s.default)(Te).slice(0, J).join("") : Te;
11409
- var tt = /* @__PURE__ */ d.createElement(m.default, (0, l.default)({}, re, {
11409
+ var tt = /* @__PURE__ */ d.createElement(m.default, (0, l.default)({}, oe, {
11410
11410
  prefixCls: L,
11411
11411
  direction: ue,
11412
11412
  inputType: "text",
@@ -11484,24 +11484,24 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
11484
11484
  params: [["translatable", "=", "1"]],
11485
11485
  fields: ["code", "name"],
11486
11486
  model: "res.lang"
11487
- })).map((A) => ({
11488
- code: A.code,
11489
- name: A.name
11487
+ })).map((F) => ({
11488
+ code: F.code,
11489
+ name: F.name
11490
11490
  }));
11491
11491
  return p == null || p(P), P;
11492
11492
  }
11493
11493
  async function w(E) {
11494
11494
  const P = {};
11495
- for (const A of E) {
11495
+ for (const F of E) {
11496
11496
  const W = (await ConnectionProvider.getHandler().readObjects({
11497
11497
  model: a,
11498
11498
  ids: [s],
11499
11499
  fieldsToRetrieve: [l],
11500
11500
  context: {
11501
- lang: A.code
11501
+ lang: F.code
11502
11502
  }
11503
11503
  }))[0];
11504
- P[A.code] = W[l] || "";
11504
+ P[F.code] = W[l] || "";
11505
11505
  }
11506
11506
  y.current = P, b(P);
11507
11507
  }
@@ -11521,10 +11521,10 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
11521
11521
  children: /* @__PURE__ */ jsx(Jt, {
11522
11522
  rows: 4,
11523
11523
  value: C[E.code] || "",
11524
- onChange: (A) => {
11524
+ onChange: (F) => {
11525
11525
  b({
11526
11526
  ...C,
11527
- [E.code]: A.target.value
11527
+ [E.code]: F.target.value
11528
11528
  });
11529
11529
  },
11530
11530
  disabled: m
@@ -11532,7 +11532,7 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
11532
11532
  })]
11533
11533
  }, P));
11534
11534
  }
11535
- async function F() {
11535
+ async function A() {
11536
11536
  I(!0);
11537
11537
  try {
11538
11538
  for (const E of Object.keys(C))
@@ -11565,7 +11565,7 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
11565
11565
  }), /* @__PURE__ */ jsx(Button$1, {
11566
11566
  icon: m ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
11567
11567
  disabled: m,
11568
- onClick: F,
11568
+ onClick: A,
11569
11569
  style: {
11570
11570
  marginLeft: 15
11571
11571
  },
@@ -11867,29 +11867,29 @@ function debounce(e, r, o) {
11867
11867
  if (typeof e != "function")
11868
11868
  throw new TypeError(FUNC_ERROR_TEXT);
11869
11869
  r = toNumber(r) || 0, isObject$1(o) && (p = !!o.leading, h = "maxWait" in o, l = h ? nativeMax(toNumber(o.maxWait) || 0, r) : l, g = "trailing" in o ? !!o.trailing : g);
11870
- function m(F) {
11870
+ function m(A) {
11871
11871
  var N = a, E = s;
11872
- return a = s = void 0, f = F, c = e.apply(E, N), c;
11872
+ return a = s = void 0, f = A, c = e.apply(E, N), c;
11873
11873
  }
11874
- function I(F) {
11875
- return f = F, u = setTimeout(y, r), p ? m(F) : c;
11874
+ function I(A) {
11875
+ return f = A, u = setTimeout(y, r), p ? m(A) : c;
11876
11876
  }
11877
- function C(F) {
11878
- var N = F - d, E = F - f, P = r - N;
11877
+ function C(A) {
11878
+ var N = A - d, E = A - f, P = r - N;
11879
11879
  return h ? nativeMin(P, l - E) : P;
11880
11880
  }
11881
- function b(F) {
11882
- var N = F - d, E = F - f;
11881
+ function b(A) {
11882
+ var N = A - d, E = A - f;
11883
11883
  return d === void 0 || N >= r || N < 0 || h && E >= l;
11884
11884
  }
11885
11885
  function y() {
11886
- var F = now$1();
11887
- if (b(F))
11888
- return v(F);
11889
- u = setTimeout(y, C(F));
11886
+ var A = now$1();
11887
+ if (b(A))
11888
+ return v(A);
11889
+ u = setTimeout(y, C(A));
11890
11890
  }
11891
- function v(F) {
11892
- return u = void 0, g && a ? m(F) : (a = s = void 0, c);
11891
+ function v(A) {
11892
+ return u = void 0, g && a ? m(A) : (a = s = void 0, c);
11893
11893
  }
11894
11894
  function O() {
11895
11895
  u !== void 0 && clearTimeout(u), f = 0, a = d = s = u = void 0;
@@ -11898,8 +11898,8 @@ function debounce(e, r, o) {
11898
11898
  return u === void 0 ? c : v(now$1());
11899
11899
  }
11900
11900
  function _() {
11901
- var F = now$1(), N = b(F);
11902
- if (a = arguments, s = this, d = F, N) {
11901
+ var A = now$1(), N = b(A);
11902
+ if (a = arguments, s = this, d = A, N) {
11903
11903
  if (u === void 0)
11904
11904
  return I(d);
11905
11905
  if (h)
@@ -12454,7 +12454,7 @@ function require_stream_writable() {
12454
12454
  };
12455
12455
  }
12456
12456
  var r;
12457
- E.WritableState = F;
12457
+ E.WritableState = A;
12458
12458
  var o = {
12459
12459
  deprecate: browser
12460
12460
  }, a = streamBrowser, s = require$$0.Buffer, l = commonjsGlobal.Uint8Array || function() {
@@ -12469,20 +12469,20 @@ function require_stream_writable() {
12469
12469
  inherits_browser.exports(E, a);
12470
12470
  function _() {
12471
12471
  }
12472
- function F(j, U, oe) {
12473
- r = r || require_stream_duplex(), j = j || {}, typeof oe != "boolean" && (oe = U instanceof r), this.objectMode = !!j.objectMode, oe && (this.objectMode = this.objectMode || !!j.writableObjectMode), this.highWaterMark = p(this, j, "writableHighWaterMark", oe), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12472
+ function A(j, U, re) {
12473
+ r = r || require_stream_duplex(), j = j || {}, typeof re != "boolean" && (re = U instanceof r), this.objectMode = !!j.objectMode, re && (this.objectMode = this.objectMode || !!j.writableObjectMode), this.highWaterMark = p(this, j, "writableHighWaterMark", re), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12474
12474
  var Re = j.decodeStrings === !1;
12475
12475
  this.decodeStrings = !Re, this.defaultEncoding = j.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Fe) {
12476
- re(U, Fe);
12476
+ oe(U, Fe);
12477
12477
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = j.emitClose !== !1, this.autoDestroy = !!j.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
12478
12478
  }
12479
- F.prototype.getBuffer = function() {
12480
- for (var U = this.bufferedRequest, oe = []; U; )
12481
- oe.push(U), U = U.next;
12482
- return oe;
12479
+ A.prototype.getBuffer = function() {
12480
+ for (var U = this.bufferedRequest, re = []; U; )
12481
+ re.push(U), U = U.next;
12482
+ return re;
12483
12483
  }, function() {
12484
12484
  try {
12485
- Object.defineProperty(F.prototype, "buffer", {
12485
+ Object.defineProperty(A.prototype, "buffer", {
12486
12486
  get: o.deprecate(function() {
12487
12487
  return this.getBuffer();
12488
12488
  }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
@@ -12493,7 +12493,7 @@ function require_stream_writable() {
12493
12493
  var N;
12494
12494
  typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (N = Function.prototype[Symbol.hasInstance], Object.defineProperty(E, Symbol.hasInstance, {
12495
12495
  value: function(U) {
12496
- return N.call(this, U) ? !0 : this !== E ? !1 : U && U._writableState instanceof F;
12496
+ return N.call(this, U) ? !0 : this !== E ? !1 : U && U._writableState instanceof A;
12497
12497
  }
12498
12498
  })) : N = function(U) {
12499
12499
  return U instanceof this;
@@ -12503,22 +12503,22 @@ function require_stream_writable() {
12503
12503
  var U = this instanceof r;
12504
12504
  if (!U && !N.call(E, this))
12505
12505
  return new E(j);
12506
- this._writableState = new F(j, this, U), this.writable = !0, j && (typeof j.write == "function" && (this._write = j.write), typeof j.writev == "function" && (this._writev = j.writev), typeof j.destroy == "function" && (this._destroy = j.destroy), typeof j.final == "function" && (this._final = j.final)), a.call(this);
12506
+ this._writableState = new A(j, this, U), this.writable = !0, j && (typeof j.write == "function" && (this._write = j.write), typeof j.writev == "function" && (this._writev = j.writev), typeof j.destroy == "function" && (this._destroy = j.destroy), typeof j.final == "function" && (this._final = j.final)), a.call(this);
12507
12507
  }
12508
12508
  E.prototype.pipe = function() {
12509
12509
  w(this, new C());
12510
12510
  };
12511
12511
  function P(j, U) {
12512
- var oe = new v();
12513
- w(j, oe), process.nextTick(U, oe);
12512
+ var re = new v();
12513
+ w(j, re), process.nextTick(U, re);
12514
12514
  }
12515
- function A(j, U, oe, Re) {
12515
+ function F(j, U, re, Re) {
12516
12516
  var Fe;
12517
- return oe === null ? Fe = new y() : typeof oe != "string" && !U.objectMode && (Fe = new g("chunk", ["string", "Buffer"], oe)), Fe ? (w(j, Fe), process.nextTick(Re, Fe), !1) : !0;
12517
+ return re === null ? Fe = new y() : typeof re != "string" && !U.objectMode && (Fe = new g("chunk", ["string", "Buffer"], re)), Fe ? (w(j, Fe), process.nextTick(Re, Fe), !1) : !0;
12518
12518
  }
12519
- E.prototype.write = function(j, U, oe) {
12519
+ E.prototype.write = function(j, U, re) {
12520
12520
  var Re = this._writableState, Fe = !1, L = !Re.objectMode && u(j);
12521
- return L && !s.isBuffer(j) && (j = c(j)), typeof U == "function" && (oe = U, U = null), L ? U = "buffer" : U || (U = Re.defaultEncoding), typeof oe != "function" && (oe = _), Re.ending ? P(this, oe) : (L || A(this, Re, j, oe)) && (Re.pendingcb++, Fe = J(this, Re, L, j, U, oe)), Fe;
12521
+ return L && !s.isBuffer(j) && (j = c(j)), typeof U == "function" && (re = U, U = null), L ? U = "buffer" : U || (U = Re.defaultEncoding), typeof re != "function" && (re = _), Re.ending ? P(this, re) : (L || F(this, Re, j, re)) && (Re.pendingcb++, Fe = J(this, Re, L, j, U, re)), Fe;
12522
12522
  }, E.prototype.cork = function() {
12523
12523
  this._writableState.corked++;
12524
12524
  }, E.prototype.uncork = function() {
@@ -12534,8 +12534,8 @@ function require_stream_writable() {
12534
12534
  return this._writableState && this._writableState.getBuffer();
12535
12535
  }
12536
12536
  });
12537
- function W(j, U, oe) {
12538
- return !j.objectMode && j.decodeStrings !== !1 && typeof U == "string" && (U = s.from(U, oe)), U;
12537
+ function W(j, U, re) {
12538
+ return !j.objectMode && j.decodeStrings !== !1 && typeof U == "string" && (U = s.from(U, re)), U;
12539
12539
  }
12540
12540
  Object.defineProperty(E.prototype, "writableHighWaterMark", {
12541
12541
  enumerable: !1,
@@ -12543,10 +12543,10 @@ function require_stream_writable() {
12543
12543
  return this._writableState.highWaterMark;
12544
12544
  }
12545
12545
  });
12546
- function J(j, U, oe, Re, Fe, L) {
12547
- if (!oe) {
12546
+ function J(j, U, re, Re, Fe, L) {
12547
+ if (!re) {
12548
12548
  var M = W(U, Re, Fe);
12549
- Re !== M && (oe = !0, Fe = "buffer", Re = M);
12549
+ Re !== M && (re = !0, Fe = "buffer", Re = M);
12550
12550
  }
12551
12551
  var Te = U.objectMode ? 1 : Re.length;
12552
12552
  U.length += Te;
@@ -12556,7 +12556,7 @@ function require_stream_writable() {
12556
12556
  U.lastBufferedRequest = {
12557
12557
  chunk: Re,
12558
12558
  encoding: Fe,
12559
- isBuf: oe,
12559
+ isBuf: re,
12560
12560
  callback: L,
12561
12561
  next: null
12562
12562
  }, tt ? tt.next = U.lastBufferedRequest : U.bufferedRequest = U.lastBufferedRequest, U.bufferedRequestCount += 1;
@@ -12564,56 +12564,56 @@ function require_stream_writable() {
12564
12564
  z(j, U, !1, Te, Re, Fe, L);
12565
12565
  return Ne;
12566
12566
  }
12567
- function z(j, U, oe, Re, Fe, L, M) {
12568
- U.writelen = Re, U.writecb = M, U.writing = !0, U.sync = !0, U.destroyed ? U.onwrite(new b("write")) : oe ? j._writev(Fe, U.onwrite) : j._write(Fe, L, U.onwrite), U.sync = !1;
12567
+ function z(j, U, re, Re, Fe, L, M) {
12568
+ U.writelen = Re, U.writecb = M, U.writing = !0, U.sync = !0, U.destroyed ? U.onwrite(new b("write")) : re ? j._writev(Fe, U.onwrite) : j._write(Fe, L, U.onwrite), U.sync = !1;
12569
12569
  }
12570
- function Y(j, U, oe, Re, Fe) {
12571
- --U.pendingcb, oe ? (process.nextTick(Fe, Re), process.nextTick(xe, j, U), j._writableState.errorEmitted = !0, w(j, Re)) : (Fe(Re), j._writableState.errorEmitted = !0, w(j, Re), xe(j, U));
12570
+ function Y(j, U, re, Re, Fe) {
12571
+ --U.pendingcb, re ? (process.nextTick(Fe, Re), process.nextTick(xe, j, U), j._writableState.errorEmitted = !0, w(j, Re)) : (Fe(Re), j._writableState.errorEmitted = !0, w(j, Re), xe(j, U));
12572
12572
  }
12573
12573
  function Q(j) {
12574
12574
  j.writing = !1, j.writecb = null, j.length -= j.writelen, j.writelen = 0;
12575
12575
  }
12576
- function re(j, U) {
12577
- var oe = j._writableState, Re = oe.sync, Fe = oe.writecb;
12576
+ function oe(j, U) {
12577
+ var re = j._writableState, Re = re.sync, Fe = re.writecb;
12578
12578
  if (typeof Fe != "function")
12579
12579
  throw new I();
12580
- if (Q(oe), U)
12581
- Y(j, oe, Re, U, Fe);
12580
+ if (Q(re), U)
12581
+ Y(j, re, Re, U, Fe);
12582
12582
  else {
12583
- var L = we(oe) || j.destroyed;
12584
- !L && !oe.corked && !oe.bufferProcessing && oe.bufferedRequest && ue(j, oe), Re ? process.nextTick(ee, j, oe, L, Fe) : ee(j, oe, L, Fe);
12583
+ var L = we(re) || j.destroyed;
12584
+ !L && !re.corked && !re.bufferProcessing && re.bufferedRequest && ue(j, re), Re ? process.nextTick(ee, j, re, L, Fe) : ee(j, re, L, Fe);
12585
12585
  }
12586
12586
  }
12587
- function ee(j, U, oe, Re) {
12588
- oe || X(j, U), U.pendingcb--, Re(), xe(j, U);
12587
+ function ee(j, U, re, Re) {
12588
+ re || X(j, U), U.pendingcb--, Re(), xe(j, U);
12589
12589
  }
12590
12590
  function X(j, U) {
12591
12591
  U.length === 0 && U.needDrain && (U.needDrain = !1, j.emit("drain"));
12592
12592
  }
12593
12593
  function ue(j, U) {
12594
12594
  U.bufferProcessing = !0;
12595
- var oe = U.bufferedRequest;
12596
- if (j._writev && oe && oe.next) {
12595
+ var re = U.bufferedRequest;
12596
+ if (j._writev && re && re.next) {
12597
12597
  var Re = U.bufferedRequestCount, Fe = new Array(Re), L = U.corkedRequestsFree;
12598
- L.entry = oe;
12599
- for (var M = 0, Te = !0; oe; )
12600
- Fe[M] = oe, oe.isBuf || (Te = !1), oe = oe.next, M += 1;
12598
+ L.entry = re;
12599
+ for (var M = 0, Te = !0; re; )
12600
+ Fe[M] = re, re.isBuf || (Te = !1), re = re.next, M += 1;
12601
12601
  Fe.allBuffers = Te, z(j, U, !0, U.length, Fe, "", L.finish), U.pendingcb++, U.lastBufferedRequest = null, L.next ? (U.corkedRequestsFree = L.next, L.next = null) : U.corkedRequestsFree = new e(U), U.bufferedRequestCount = 0;
12602
12602
  } else {
12603
- for (; oe; ) {
12604
- var Ne = oe.chunk, tt = oe.encoding, je = oe.callback, Ge = U.objectMode ? 1 : Ne.length;
12605
- if (z(j, U, !1, Ge, Ne, tt, je), oe = oe.next, U.bufferedRequestCount--, U.writing)
12603
+ for (; re; ) {
12604
+ var Ne = re.chunk, tt = re.encoding, je = re.callback, Ge = U.objectMode ? 1 : Ne.length;
12605
+ if (z(j, U, !1, Ge, Ne, tt, je), re = re.next, U.bufferedRequestCount--, U.writing)
12606
12606
  break;
12607
12607
  }
12608
- oe === null && (U.lastBufferedRequest = null);
12608
+ re === null && (U.lastBufferedRequest = null);
12609
12609
  }
12610
- U.bufferedRequest = oe, U.bufferProcessing = !1;
12610
+ U.bufferedRequest = re, U.bufferProcessing = !1;
12611
12611
  }
12612
- E.prototype._write = function(j, U, oe) {
12613
- oe(new m("_write()"));
12614
- }, E.prototype._writev = null, E.prototype.end = function(j, U, oe) {
12612
+ E.prototype._write = function(j, U, re) {
12613
+ re(new m("_write()"));
12614
+ }, E.prototype._writev = null, E.prototype.end = function(j, U, re) {
12615
12615
  var Re = this._writableState;
12616
- return typeof j == "function" ? (oe = j, j = null, U = null) : typeof U == "function" && (oe = U, U = null), j != null && this.write(j, U), Re.corked && (Re.corked = 1, this.uncork()), Re.ending || te(this, Re, oe), this;
12616
+ return typeof j == "function" ? (re = j, j = null, U = null) : typeof U == "function" && (re = U, U = null), j != null && this.write(j, U), Re.corked && (Re.corked = 1, this.uncork()), Re.ending || te(this, Re, re), this;
12617
12617
  }, Object.defineProperty(E.prototype, "writableLength", {
12618
12618
  enumerable: !1,
12619
12619
  get: function() {
@@ -12624,29 +12624,29 @@ function require_stream_writable() {
12624
12624
  return j.ending && j.length === 0 && j.bufferedRequest === null && !j.finished && !j.writing;
12625
12625
  }
12626
12626
  function Ce(j, U) {
12627
- j._final(function(oe) {
12628
- U.pendingcb--, oe && w(j, oe), U.prefinished = !0, j.emit("prefinish"), xe(j, U);
12627
+ j._final(function(re) {
12628
+ U.pendingcb--, re && w(j, re), U.prefinished = !0, j.emit("prefinish"), xe(j, U);
12629
12629
  });
12630
12630
  }
12631
12631
  function ce(j, U) {
12632
12632
  !U.prefinished && !U.finalCalled && (typeof j._final == "function" && !U.destroyed ? (U.pendingcb++, U.finalCalled = !0, process.nextTick(Ce, j, U)) : (U.prefinished = !0, j.emit("prefinish")));
12633
12633
  }
12634
12634
  function xe(j, U) {
12635
- var oe = we(U);
12636
- if (oe && (ce(j, U), U.pendingcb === 0 && (U.finished = !0, j.emit("finish"), U.autoDestroy))) {
12635
+ var re = we(U);
12636
+ if (re && (ce(j, U), U.pendingcb === 0 && (U.finished = !0, j.emit("finish"), U.autoDestroy))) {
12637
12637
  var Re = j._readableState;
12638
12638
  (!Re || Re.autoDestroy && Re.endEmitted) && j.destroy();
12639
12639
  }
12640
- return oe;
12640
+ return re;
12641
12641
  }
12642
- function te(j, U, oe) {
12643
- U.ending = !0, xe(j, U), oe && (U.finished ? process.nextTick(oe) : j.once("finish", oe)), U.ended = !0, j.writable = !1;
12642
+ function te(j, U, re) {
12643
+ U.ending = !0, xe(j, U), re && (U.finished ? process.nextTick(re) : j.once("finish", re)), U.ended = !0, j.writable = !1;
12644
12644
  }
12645
- function de(j, U, oe) {
12645
+ function de(j, U, re) {
12646
12646
  var Re = j.entry;
12647
12647
  for (j.entry = null; Re; ) {
12648
12648
  var Fe = Re.callback;
12649
- U.pendingcb--, Fe(oe), Re = Re.next;
12649
+ U.pendingcb--, Fe(re), Re = Re.next;
12650
12650
  }
12651
12651
  U.corkedRequestsFree.next = j;
12652
12652
  }
@@ -13016,9 +13016,9 @@ function requireAsync_iterator() {
13016
13016
  if (w)
13017
13017
  _ = new Promise(m(w, this));
13018
13018
  else {
13019
- var F = this[f].read();
13020
- if (F !== null)
13021
- return Promise.resolve(p(F, !1));
13019
+ var A = this[f].read();
13020
+ if (A !== null)
13021
+ return Promise.resolve(p(A, !1));
13022
13022
  _ = new Promise(this[d]);
13023
13023
  }
13024
13024
  return this[u] = _, _;
@@ -13053,16 +13053,16 @@ function requireAsync_iterator() {
13053
13053
  value: v._readableState.endEmitted,
13054
13054
  writable: !0
13055
13055
  }), r(O, d, {
13056
- value: function(F, N) {
13056
+ value: function(A, N) {
13057
13057
  var E = w[f].read();
13058
- E ? (w[u] = null, w[a] = null, w[s] = null, F(p(E, !1))) : (w[a] = F, w[s] = N);
13058
+ E ? (w[u] = null, w[a] = null, w[s] = null, A(p(E, !1))) : (w[a] = A, w[s] = N);
13059
13059
  },
13060
13060
  writable: !0
13061
13061
  }), O));
13062
13062
  return w[u] = null, o(v, function(_) {
13063
13063
  if (_ && _.code !== "ERR_STREAM_PREMATURE_CLOSE") {
13064
- var F = w[s];
13065
- F !== null && (w[u] = null, w[a] = null, w[s] = null, F(_)), w[l] = _;
13064
+ var A = w[s];
13065
+ A !== null && (w[u] = null, w[a] = null, w[s] = null, A(_)), w[l] = _;
13066
13066
  return;
13067
13067
  }
13068
13068
  var N = w[a];
@@ -13099,7 +13099,7 @@ function require_stream_readable() {
13099
13099
  };
13100
13100
  var f = requireBuffer_list(), p = destroy_1, h = state, g = h.getHighWaterMark, m = errorsBrowser.codes, I = m.ERR_INVALID_ARG_TYPE, C = m.ERR_STREAM_PUSH_AFTER_EOF, b = m.ERR_METHOD_NOT_IMPLEMENTED, y = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, O, w;
13101
13101
  inherits_browser.exports(P, o);
13102
- var _ = p.errorOrDestroy, F = ["error", "close", "destroy", "pause", "resume"];
13102
+ var _ = p.errorOrDestroy, A = ["error", "close", "destroy", "pause", "resume"];
13103
13103
  function N(L, M, Te) {
13104
13104
  if (typeof L.prependListener == "function")
13105
13105
  return L.prependListener(M, Te);
@@ -13126,15 +13126,15 @@ function require_stream_readable() {
13126
13126
  M(L);
13127
13127
  }, P.prototype.push = function(L, M) {
13128
13128
  var Te = this._readableState, Ne;
13129
- return Te.objectMode ? Ne = !0 : typeof L == "string" && (M = M || Te.defaultEncoding, M !== Te.encoding && (L = a.from(L, M), M = ""), Ne = !0), A(this, L, M, !1, Ne);
13129
+ return Te.objectMode ? Ne = !0 : typeof L == "string" && (M = M || Te.defaultEncoding, M !== Te.encoding && (L = a.from(L, M), M = ""), Ne = !0), F(this, L, M, !1, Ne);
13130
13130
  }, P.prototype.unshift = function(L) {
13131
- return A(this, L, null, !0, !1);
13131
+ return F(this, L, null, !0, !1);
13132
13132
  };
13133
- function A(L, M, Te, Ne, tt) {
13133
+ function F(L, M, Te, Ne, tt) {
13134
13134
  d("readableAddChunk", M);
13135
13135
  var je = L._readableState;
13136
13136
  if (M === null)
13137
- je.reading = !1, re(L, je);
13137
+ je.reading = !1, oe(L, je);
13138
13138
  else {
13139
13139
  var Ge;
13140
13140
  if (tt || (Ge = J(je, M)), Ge)
@@ -13182,15 +13182,15 @@ function require_stream_readable() {
13182
13182
  d("read", L), L = parseInt(L, 10);
13183
13183
  var M = this._readableState, Te = L;
13184
13184
  if (L !== 0 && (M.emittedReadable = !1), L === 0 && M.needReadable && ((M.highWaterMark !== 0 ? M.length >= M.highWaterMark : M.length > 0) || M.ended))
13185
- return d("read: emitReadable", M.length, M.ended), M.length === 0 && M.ended ? oe(this) : ee(this), null;
13185
+ return d("read: emitReadable", M.length, M.ended), M.length === 0 && M.ended ? re(this) : ee(this), null;
13186
13186
  if (L = Q(L, M), L === 0 && M.ended)
13187
- return M.length === 0 && oe(this), null;
13187
+ return M.length === 0 && re(this), null;
13188
13188
  var Ne = M.needReadable;
13189
13189
  d("need readable", Ne), (M.length === 0 || M.length - L < M.highWaterMark) && (Ne = !0, d("length less than watermark", Ne)), M.ended || M.reading ? (Ne = !1, d("reading or ended", Ne)) : Ne && (d("do read"), M.reading = !0, M.sync = !0, M.length === 0 && (M.needReadable = !0), this._read(M.highWaterMark), M.sync = !1, M.reading || (L = Q(Te, M)));
13190
13190
  var tt;
13191
- return L > 0 ? tt = U(L, M) : tt = null, tt === null ? (M.needReadable = M.length <= M.highWaterMark, L = 0) : (M.length -= L, M.awaitDrain = 0), M.length === 0 && (M.ended || (M.needReadable = !0), Te !== L && M.ended && oe(this)), tt !== null && this.emit("data", tt), tt;
13191
+ return L > 0 ? tt = U(L, M) : tt = null, tt === null ? (M.needReadable = M.length <= M.highWaterMark, L = 0) : (M.length -= L, M.awaitDrain = 0), M.length === 0 && (M.ended || (M.needReadable = !0), Te !== L && M.ended && re(this)), tt !== null && this.emit("data", tt), tt;
13192
13192
  };
13193
- function re(L, M) {
13193
+ function oe(L, M) {
13194
13194
  if (d("onEofChunk"), !M.ended) {
13195
13195
  if (M.decoder) {
13196
13196
  var Te = M.decoder.end();
@@ -13351,8 +13351,8 @@ function require_stream_readable() {
13351
13351
  return L[yt].apply(L, arguments);
13352
13352
  };
13353
13353
  }(tt));
13354
- for (var je = 0; je < F.length; je++)
13355
- L.on(F[je], this.emit.bind(this, F[je]));
13354
+ for (var je = 0; je < A.length; je++)
13355
+ L.on(A[je], this.emit.bind(this, A[je]));
13356
13356
  return this._read = function(Ge) {
13357
13357
  d("wrapped _read", Ge), Ne && (Ne = !1, L.resume());
13358
13358
  }, this;
@@ -13388,7 +13388,7 @@ function require_stream_readable() {
13388
13388
  var Te;
13389
13389
  return M.objectMode ? Te = M.buffer.shift() : !L || L >= M.length ? (M.decoder ? Te = M.buffer.join("") : M.buffer.length === 1 ? Te = M.buffer.first() : Te = M.buffer.concat(M.length), M.buffer.clear()) : Te = M.buffer.consume(L, M.decoder), Te;
13390
13390
  }
13391
- function oe(L) {
13391
+ function re(L) {
13392
13392
  var M = L._readableState;
13393
13393
  d("endReadable", M.endEmitted), M.endEmitted || (M.ended = !0, process.nextTick(Re, M, L));
13394
13394
  }
@@ -15733,7 +15733,7 @@ const Image = (e) => {
15733
15733
  useDeepCompareEffect(() => {
15734
15734
  N();
15735
15735
  }, [l]);
15736
- const F = (E) => {
15736
+ const A = (E) => {
15737
15737
  s == null || s({
15738
15738
  items: E
15739
15739
  });
@@ -15751,7 +15751,7 @@ const Image = (e) => {
15751
15751
  ...C
15752
15752
  }
15753
15753
  });
15754
- F(E);
15754
+ A(E);
15755
15755
  } catch (E) {
15756
15756
  f(E);
15757
15757
  } finally {
@@ -15769,7 +15769,7 @@ const Image = (e) => {
15769
15769
  padding: "1rem"
15770
15770
  },
15771
15771
  children: O.map((E, P) => {
15772
- var A, W;
15772
+ var F, W;
15773
15773
  return /* @__PURE__ */ jsx("div", {
15774
15774
  children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
15775
15775
  children: [/* @__PURE__ */ jsx("div", {
@@ -15781,7 +15781,7 @@ const Image = (e) => {
15781
15781
  m(O.find((J) => E.id === J.id)), h(!0);
15782
15782
  },
15783
15783
  children: /* @__PURE__ */ jsx("strong", {
15784
- children: (A = E.values) == null ? void 0 : A[v]
15784
+ children: (F = E.values) == null ? void 0 : F[v]
15785
15785
  })
15786
15786
  }), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
15787
15787
  style: {
@@ -15981,7 +15981,7 @@ const transformPlainMany2Ones = ({
15981
15981
  onChange: a
15982
15982
  } = e, {
15983
15983
  items: s = []
15984
- } = r || {}, l = s.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [c, u] = useState([]), [d, f] = useState(), [p, h] = useState(!1), {
15984
+ } = r || {}, l = s.filter((A) => A.operation !== "pendingRemove").map((A) => A.id), [c, u] = useState([]), [d, f] = useState(), [p, h] = useState(!1), {
15985
15985
  relation: g,
15986
15986
  context: m,
15987
15987
  readOnly: I,
@@ -15992,16 +15992,16 @@ const transformPlainMany2Ones = ({
15992
15992
  useDeepCompareEffect(() => {
15993
15993
  O();
15994
15994
  }, [s]);
15995
- const v = (F) => {
15995
+ const v = (A) => {
15996
15996
  a == null || a({
15997
- items: F
15997
+ items: A
15998
15998
  });
15999
15999
  };
16000
16000
  async function O() {
16001
16001
  h(!0);
16002
- let F = [];
16002
+ let A = [];
16003
16003
  try {
16004
- if (I && (F = [["id", "in", l]]), o.domain) {
16004
+ if (I && (A = [["id", "in", l]]), o.domain) {
16005
16005
  const P = await ConnectionProvider.getHandler().evalDomain({
16006
16006
  domain: o.domain,
16007
16007
  values: transformPlainMany2Ones({
@@ -16010,20 +16010,20 @@ const transformPlainMany2Ones = ({
16010
16010
  }),
16011
16011
  context: b.getContext()
16012
16012
  });
16013
- F = [...F, ...P];
16013
+ A = [...A, ...P];
16014
16014
  }
16015
16015
  const E = (await ConnectionProvider.getHandler().search({
16016
16016
  model: g,
16017
- params: F,
16017
+ params: A,
16018
16018
  fields: [C],
16019
16019
  context: {
16020
16020
  ...y == null ? void 0 : y(),
16021
16021
  ...m
16022
16022
  }
16023
16023
  })).map((P) => {
16024
- const A = P[C];
16025
- let W = A;
16026
- return Array.isArray(A) && (W = A[1]), {
16024
+ const F = P[C];
16025
+ let W = F;
16026
+ return Array.isArray(F) && (W = F[1]), {
16027
16027
  label: W,
16028
16028
  value: P.id
16029
16029
  };
@@ -16035,31 +16035,31 @@ const transformPlainMany2Ones = ({
16035
16035
  h(!1);
16036
16036
  }
16037
16037
  }
16038
- const w = (F) => {
16039
- const N = s.map((P) => F.includes(P.id) ? P.operation == "pendingRemove" ? {
16038
+ const w = (A) => {
16039
+ const N = s.map((P) => A.includes(P.id) ? P.operation == "pendingRemove" ? {
16040
16040
  ...P,
16041
16041
  operation: "pendingLink"
16042
16042
  } : P : {
16043
16043
  id: P.id,
16044
16044
  operation: "pendingRemove"
16045
16045
  }), E = N.map((P) => P.id);
16046
- F.filter((P) => !E.includes(P)).map((P) => {
16046
+ A.filter((P) => !E.includes(P)).map((P) => {
16047
16047
  N.push({
16048
16048
  id: P,
16049
16049
  operation: "pendingLink"
16050
16050
  });
16051
16051
  }), v(N);
16052
- }, _ = (F) => {
16052
+ }, _ = (A) => {
16053
16053
  const {
16054
16054
  label: N,
16055
16055
  closable: E,
16056
16056
  onClose: P
16057
- } = F, A = (W) => {
16057
+ } = A, F = (W) => {
16058
16058
  W.preventDefault(), W.stopPropagation();
16059
16059
  };
16060
16060
  return /* @__PURE__ */ jsx(Tag, {
16061
16061
  color: colorFromString(N),
16062
- onMouseDown: A,
16062
+ onMouseDown: F,
16063
16063
  style: {
16064
16064
  margin: "5px"
16065
16065
  },
@@ -16453,11 +16453,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16453
16453
  currentId: O,
16454
16454
  limit: w,
16455
16455
  setLimit: _,
16456
- searchParams: F = [],
16456
+ searchParams: A = [],
16457
16457
  setSearchValues: N
16458
- } = e, [E, P] = useState(!1), [A, W] = useState(!1), [J, z] = useState(), [Y, Q] = useState(1), [re, ee] = useState(0), [X, ue] = useState(), [we, Ce] = useState([]), [ce, xe] = useState(void 0), te = useRef(w || DEFAULT_SEARCH_LIMIT$1), de = useRef([]), j = useCallback((je) => {
16458
+ } = e, [E, P] = useState(!1), [F, W] = useState(!1), [J, z] = useState(), [Y, Q] = useState(1), [oe, ee] = useState(0), [X, ue] = useState(), [we, Ce] = useState([]), [ce, xe] = useState(void 0), te = useRef(w || DEFAULT_SEARCH_LIMIT$1), de = useRef([]), j = useCallback((je) => {
16459
16459
  b == null || b([...je]), Ce([...je]);
16460
- }, []), U = useCallback(() => y || we, [y, we]), oe = useCallback(async () => {
16460
+ }, []), U = useCallback(() => y || we, [y, we]), re = useCallback(async () => {
16461
16461
  const je = await ConnectionProvider.getHandler().nameSearch({
16462
16462
  model: r,
16463
16463
  payload: u,
@@ -16500,10 +16500,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16500
16500
  p
16501
16501
  ]), Re = useCallback(
16502
16502
  async (je) => {
16503
- const { params: Ge, newOffset: yt } = je || {}, Tt = mergeParams(Ge || F, v), { colors: Ot } = getTree(h), { totalItems: $t, results: Vt, attrsEvaluated: Ct } = await ConnectionProvider.getHandler().searchForTree({
16503
+ const { params: Ge, newOffset: yt } = je || {}, Tt = mergeParams(Ge || A, v), { colors: Ot } = getTree(h), { totalItems: $t, results: Vt, attrsEvaluated: Ct } = await ConnectionProvider.getHandler().searchForTree({
16504
16504
  params: Tt,
16505
16505
  limit: te.current,
16506
- offset: yt || re,
16506
+ offset: yt || oe,
16507
16507
  model: r,
16508
16508
  fields: h.field_parent ? { ...h.fields, [h.field_parent]: {} } : h.fields,
16509
16509
  context: f,
@@ -16538,13 +16538,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16538
16538
  m,
16539
16539
  p,
16540
16540
  w,
16541
- re,
16542
- F
16541
+ oe,
16542
+ A
16543
16543
  ]
16544
16544
  ), Fe = useCallback(
16545
16545
  async (je) => {
16546
16546
  try {
16547
- P(!0), c == null || c(!0), u && !d.current ? await oe() : await Re(je);
16547
+ P(!0), c == null || c(!0), u && !d.current ? await re() : await Re(je);
16548
16548
  } catch (Ge) {
16549
16549
  z(Ge.message);
16550
16550
  } finally {
@@ -16559,7 +16559,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16559
16559
  w,
16560
16560
  r,
16561
16561
  u,
16562
- re,
16562
+ oe,
16563
16563
  y,
16564
16564
  d,
16565
16565
  p,
@@ -16637,10 +16637,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16637
16637
  clear: Ne,
16638
16638
  fetchResults: Fe,
16639
16639
  tableRefreshing: E,
16640
- searchFilterLoading: A,
16640
+ searchFilterLoading: F,
16641
16641
  searchError: J,
16642
16642
  page: Y,
16643
- offset: re,
16643
+ offset: oe,
16644
16644
  limit: w,
16645
16645
  getResults: U,
16646
16646
  requestPageChange: Te,
@@ -16672,11 +16672,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16672
16672
  setTotalItems: O,
16673
16673
  setSelectedRowItems: w,
16674
16674
  selectedRowItems: _,
16675
- searchTreeNameSearch: F,
16675
+ searchTreeNameSearch: A,
16676
16676
  setSearchTreeNameSearch: N,
16677
16677
  goToResourceId: E,
16678
16678
  limit: P
16679
- } = e, [A, W] = useState(!1), [J, z] = useState(!1), [Y, Q] = useState(!1), [re, ee] = useState(!0), [X, ue] = useState(!0), [we, Ce] = useState([]), [ce, xe] = useState(!1), [te, de] = useState([]), [j, U] = useState(!1), [oe, Re] = useState(!0), [Fe, L] = useState(), [M, Te] = useState({}), [Ne, tt] = useState(P !== void 0 ? P : DEFAULT_SEARCH_LIMIT$1);
16679
+ } = e, [F, W] = useState(!1), [J, z] = useState(!1), [Y, Q] = useState(!1), [oe, ee] = useState(!0), [X, ue] = useState(!0), [we, Ce] = useState([]), [ce, xe] = useState(!1), [te, de] = useState([]), [j, U] = useState(!1), [re, Re] = useState(!0), [Fe, L] = useState(), [M, Te] = useState({}), [Ne, tt] = useState(P !== void 0 ? P : DEFAULT_SEARCH_LIMIT$1);
16680
16680
  useEffect(() => {
16681
16681
  g && g.length > 0 && !m && (I == null || I(0), p == null || p(g[0].id));
16682
16682
  }, [g]), useEffect(() => {
@@ -16696,7 +16696,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16696
16696
  currentView: o,
16697
16697
  setCurrentView: s,
16698
16698
  availableViews: l,
16699
- formIsSaving: A,
16699
+ formIsSaving: F,
16700
16700
  setFormIsSaving: W,
16701
16701
  formHasChanges: J,
16702
16702
  setFormHasChanges: z,
@@ -16713,7 +16713,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16713
16713
  currentModel: C,
16714
16714
  removingItem: Y,
16715
16715
  setRemovingItem: Q,
16716
- formIsLoading: re,
16716
+ formIsLoading: oe,
16717
16717
  setFormIsLoading: ee,
16718
16718
  treeIsLoading: X,
16719
16719
  setTreeIsLoading: ue,
@@ -16731,10 +16731,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16731
16731
  setSorter: y,
16732
16732
  totalItems: v,
16733
16733
  setTotalItems: O,
16734
- searchTreeNameSearch: F,
16734
+ searchTreeNameSearch: A,
16735
16735
  setSearchTreeNameSearch: N,
16736
16736
  setGraphIsLoading: Re,
16737
- graphIsLoading: oe,
16737
+ graphIsLoading: re,
16738
16738
  previousView: Fe,
16739
16739
  setPreviousView: L,
16740
16740
  goToResourceId: E,
@@ -16797,17 +16797,17 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16797
16797
  const {
16798
16798
  reportData: E,
16799
16799
  fields: P,
16800
- values: A,
16800
+ values: F,
16801
16801
  context: W = {}
16802
16802
  } = N, {
16803
16803
  context: J,
16804
16804
  model: z,
16805
16805
  datas: Y = {},
16806
16806
  report_name: Q,
16807
- type: re
16807
+ type: oe
16808
16808
  } = E;
16809
- if (re !== "ir.actions.report.xml") {
16810
- showDialog$8(`${re} action not supported`);
16809
+ if (oe !== "ir.actions.report.xml") {
16810
+ showDialog$8(`${oe} action not supported`);
16811
16811
  return;
16812
16812
  }
16813
16813
  const {
@@ -16817,7 +16817,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16817
16817
  const ue = typeof J == "string" ? parseContext({
16818
16818
  context: J,
16819
16819
  fields: P,
16820
- values: A
16820
+ values: F
16821
16821
  }) : J;
16822
16822
  try {
16823
16823
  const we = await ConnectionProvider.getHandler().createReport({
@@ -16855,7 +16855,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16855
16855
  actionData: N,
16856
16856
  fields: E,
16857
16857
  values: P,
16858
- context: A,
16858
+ context: F,
16859
16859
  onRefreshParentValues: W
16860
16860
  }) {
16861
16861
  const {
@@ -16865,26 +16865,26 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16865
16865
  reportData: N,
16866
16866
  fields: E,
16867
16867
  values: P,
16868
- context: A
16868
+ context: F
16869
16869
  }) : J === "ir.actions.act_window" ? await O({
16870
16870
  actionData: N,
16871
16871
  fields: E,
16872
16872
  values: P,
16873
- context: A
16873
+ context: F
16874
16874
  }) : (showDialog$8(`${J} action not supported`), {});
16875
16875
  }
16876
16876
  async function O({
16877
16877
  actionData: N,
16878
16878
  fields: E = {},
16879
16879
  values: P = {},
16880
- context: A = {}
16880
+ context: F = {}
16881
16881
  }) {
16882
16882
  var Q;
16883
16883
  let W = N;
16884
16884
  N.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
16885
16885
  model: "ir.actions.act_window",
16886
16886
  ids: [parseInt(N.id)],
16887
- context: A
16887
+ context: F
16888
16888
  }))[0]);
16889
16889
  const z = {
16890
16890
  ...typeof (W == null ? void 0 : W.context) == "string" ? parseContext({
@@ -16895,7 +16895,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16895
16895
  ...a
16896
16896
  }
16897
16897
  }) : W.context,
16898
- ...A
16898
+ ...F
16899
16899
  };
16900
16900
  let Y = [];
16901
16901
  if (W.domain && (Y = await ConnectionProvider.getHandler().evalDomain({
@@ -16909,7 +16909,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16909
16909
  }),
16910
16910
  context: z
16911
16911
  })), W.target === "new") {
16912
- const re = await ConnectionProvider.getHandler().getView({
16912
+ const oe = await ConnectionProvider.getHandler().getView({
16913
16913
  model: W.res_model,
16914
16914
  type: "form",
16915
16915
  id: ((Q = W == null ? void 0 : W.view_id) == null ? void 0 : Q[0]) || void 0,
@@ -16918,11 +16918,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16918
16918
  return w({
16919
16919
  domain: Y,
16920
16920
  model: W.res_model,
16921
- formView: re,
16921
+ formView: oe,
16922
16922
  context: z
16923
16923
  }), {};
16924
16924
  } else {
16925
- let re;
16925
+ let oe;
16926
16926
  const ee = W.view_mode.split(","), X = [];
16927
16927
  for (const ue of ee) {
16928
16928
  const we = await ConnectionProvider.getHandler().getView({
@@ -16933,13 +16933,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16933
16933
  X.push([we.view_id, ue]);
16934
16934
  }
16935
16935
  if (W.view_id)
16936
- re = {
16936
+ oe = {
16937
16937
  id: W.view_id,
16938
16938
  type: W.view_mode.split(",")[0]
16939
16939
  };
16940
16940
  else {
16941
16941
  const ue = W.view_mode.split(",")[0], [we] = X.find(([Ce, ce]) => ce === ue);
16942
- re = {
16942
+ oe = {
16943
16943
  id: we,
16944
16944
  type: ue
16945
16945
  };
@@ -16951,7 +16951,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16951
16951
  model: W.res_model,
16952
16952
  views: X,
16953
16953
  title: W.name,
16954
- initialView: re,
16954
+ initialView: oe,
16955
16955
  action_id: W.id,
16956
16956
  action_type: W.type
16957
16957
  }), {
@@ -16963,19 +16963,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16963
16963
  domain: N,
16964
16964
  model: E,
16965
16965
  formView: P,
16966
- context: A,
16966
+ context: F,
16967
16967
  actionData: W
16968
16968
  }) {
16969
16969
  g ? _({
16970
16970
  domain: N,
16971
16971
  model: E,
16972
16972
  formView: P,
16973
- context: A,
16973
+ context: F,
16974
16974
  actionData: W
16975
16975
  }) : (C({
16976
16976
  domain: N,
16977
16977
  model: E,
16978
- context: A,
16978
+ context: F,
16979
16979
  formView: P,
16980
16980
  actionData: W
16981
16981
  }), m(!0));
@@ -16984,7 +16984,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16984
16984
  domain: N,
16985
16985
  model: E,
16986
16986
  formView: P,
16987
- context: A,
16987
+ context: F,
16988
16988
  actionData: W
16989
16989
  }) {
16990
16990
  C({
@@ -16996,12 +16996,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16996
16996
  }), m(!1), await new Promise((J) => setTimeout(J, 300)), C({
16997
16997
  domain: N,
16998
16998
  model: E,
16999
- context: A,
16999
+ context: F,
17000
17000
  formView: P,
17001
17001
  actionData: W
17002
17002
  }), m(!0);
17003
17003
  }
17004
- async function F() {
17004
+ async function A() {
17005
17005
  callRefreshValues(p.current), p.current = [], m(!1), C({
17006
17006
  domain: void 0,
17007
17007
  model: void 0,
@@ -17031,7 +17031,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
17031
17031
  model: I.model,
17032
17032
  formView: I.formView,
17033
17033
  visible: g,
17034
- onSubmitSucceed: F,
17034
+ onSubmitSucceed: A,
17035
17035
  onCancel: () => {
17036
17036
  callRefreshValues(p.current), p.current = [], m(!1), C({
17037
17037
  domain: void 0,
@@ -17072,10 +17072,10 @@ function Form(e, r) {
17072
17072
  visible: O = !0,
17073
17073
  rootForm: w = !1,
17074
17074
  defaultValues: _,
17075
- forcedValues: F = {}
17075
+ forcedValues: A = {}
17076
17076
  } = e, {
17077
17077
  lang: N
17078
- } = useContext(LocaleContext), [E, P] = useState(!1), [A, W] = useState(), [J, z] = useState(), [Y] = Form$3.useForm(), [Q, re] = useState(), [ee, X] = useState(), ue = useContext(FormModalContext), [we, Ce] = useState(), [ce, xe] = useState(!1), te = useRef(), de = useRef({}), j = useRef({}), U = useRef(!1), oe = useRef(!1), Re = we < WIDTH_BREAKPOINT, Fe = useContext(FormContext$1), {
17078
+ } = useContext(LocaleContext), [E, P] = useState(!1), [F, W] = useState(), [J, z] = useState(), [Y] = Form$3.useForm(), [Q, oe] = useState(), [ee, X] = useState(), ue = useContext(FormModalContext), [we, Ce] = useState(), [ce, xe] = useState(!1), te = useRef(), de = useRef({}), j = useRef({}), U = useRef(!1), re = useRef(!1), Re = we < WIDTH_BREAKPOINT, Fe = useContext(FormContext$1), {
17079
17079
  activeId: L
17080
17080
  } = Fe || {}, M = useContext(ActionViewContext), {
17081
17081
  setFormIsSaving: Te = void 0,
@@ -17211,7 +17211,7 @@ function Form(e, r) {
17211
17211
  fields: Qe,
17212
17212
  arch: Mt
17213
17213
  } = gt;
17214
- X(Qe), re(Mt), await pn({
17214
+ X(Qe), oe(Mt), await pn({
17215
17215
  fields: Qe,
17216
17216
  arch: Mt
17217
17217
  });
@@ -17324,7 +17324,7 @@ function Form(e, r) {
17324
17324
  id: Dt(),
17325
17325
  values: {
17326
17326
  ...Mt,
17327
- ...F
17327
+ ...A
17328
17328
  },
17329
17329
  fields: ee,
17330
17330
  context: {
@@ -17337,7 +17337,7 @@ function Form(e, r) {
17337
17337
  model: o,
17338
17338
  values: {
17339
17339
  ...Mt,
17340
- ...F
17340
+ ...A
17341
17341
  },
17342
17342
  fields: ee,
17343
17343
  context: {
@@ -17358,10 +17358,10 @@ function Form(e, r) {
17358
17358
  const {
17359
17359
  callOnSubmitSucceed: Mt = !0
17360
17360
  } = gt || {};
17361
- if (oe.current = !0, W(void 0), !Ft() && Dt() && Mt)
17362
- return oe.current = !1, Ne == null || Ne(!1), Vt == null || Vt(), !0;
17361
+ if (re.current = !0, W(void 0), !Ft() && Dt() && Mt)
17362
+ return re.current = !1, Ne == null || Ne(!1), Vt == null || Vt(), !0;
17363
17363
  if (await rn())
17364
- return oe.current = !1, showDialog$5(N), !1;
17364
+ return re.current = !1, showDialog$5(N), !1;
17365
17365
  P(!0), Te == null || Te(!0);
17366
17366
  try {
17367
17367
  g === "api" ? await Sn(gt) : await _n(gt), h && (te.current = void 0, In({
@@ -17370,9 +17370,9 @@ function Form(e, r) {
17370
17370
  reset: !0
17371
17371
  })), await pn(), Qe = !0;
17372
17372
  } catch (Lt) {
17373
- oe.current = !1, P(!1), Te == null || Te(!1), Ct == null || Ct(Lt), W(Lt != null && Lt.message ? Lt.message : Lt);
17373
+ re.current = !1, P(!1), Te == null || Te(!1), Ct == null || Ct(Lt), W(Lt != null && Lt.message ? Lt.message : Lt);
17374
17374
  } finally {
17375
- oe.current = !1, Te == null || Te(!1), P(!1);
17375
+ re.current = !1, Te == null || Te(!1), P(!1);
17376
17376
  }
17377
17377
  return Qe;
17378
17378
  }, yn = ({
@@ -17392,7 +17392,7 @@ function Form(e, r) {
17392
17392
  }, Cn = async ({
17393
17393
  elementHasLostFocus: gt = !1
17394
17394
  }) => {
17395
- if (oe.current)
17395
+ if (re.current)
17396
17396
  return;
17397
17397
  const Qe = getTouchedValues({
17398
17398
  source: j.current,
@@ -17595,7 +17595,7 @@ function Form(e, r) {
17595
17595
  showDialog$8(Lt);
17596
17596
  }
17597
17597
  }
17598
- const Dn = () => !J && !A ? /* @__PURE__ */ jsx(Spin, {}) : !o && !I || !O ? null : /* @__PURE__ */ jsx(Fragment, {
17598
+ const Dn = () => !J && !F ? /* @__PURE__ */ jsx(Spin, {}) : !o && !I || !O ? null : /* @__PURE__ */ jsx(Fragment, {
17599
17599
  children: /* @__PURE__ */ jsx(FormProvider$1, {
17600
17600
  getValues: Ut,
17601
17601
  getPlainValues: Kt,
@@ -17661,9 +17661,9 @@ function Form(e, r) {
17661
17661
  }) => /* @__PURE__ */ jsxs("div", {
17662
17662
  className: "pb-2",
17663
17663
  ref: gt,
17664
- children: [A && /* @__PURE__ */ jsx(Alert, {
17664
+ children: [F && /* @__PURE__ */ jsx(Alert, {
17665
17665
  className: "mt-10 mb-20",
17666
- message: JSON.stringify(A),
17666
+ message: JSON.stringify(F),
17667
17667
  type: "error",
17668
17668
  banner: !0
17669
17669
  }), Dn(), c && Bn()]
@@ -17691,11 +17691,11 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
17691
17691
  action_id: O,
17692
17692
  res_id: w,
17693
17693
  action_type: _,
17694
- view_id: F
17694
+ view_id: A
17695
17695
  } = u, N = await ConnectionProvider.getHandler().isShortcutFavorite({
17696
17696
  action_id: O,
17697
17697
  action_type: _,
17698
- view_id: F,
17698
+ view_id: A,
17699
17699
  res_id: w || !1
17700
17700
  });
17701
17701
  m(N !== !1), N !== !1 && C(N);
@@ -17710,12 +17710,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
17710
17710
  action_id: O,
17711
17711
  res_id: w,
17712
17712
  action_type: _,
17713
- view_id: F
17713
+ view_id: A
17714
17714
  } = u;
17715
17715
  await ConnectionProvider.getHandler().addFavourite({
17716
17716
  action_id: O,
17717
17717
  action_type: _,
17718
- view_id: F,
17718
+ view_id: A,
17719
17719
  res_id: w || !1
17720
17720
  });
17721
17721
  }
@@ -18145,8 +18145,8 @@ function SearchFilter(e) {
18145
18145
  if (!b)
18146
18146
  return;
18147
18147
  const E = v ? b : I, P = E == null ? void 0 : E.rows;
18148
- return P == null ? void 0 : P.map((A, W) => /* @__PURE__ */ jsx(Row, {
18149
- children: A.map((J, z) => /* @__PURE__ */ jsx(Col, {
18148
+ return P == null ? void 0 : P.map((F, W) => /* @__PURE__ */ jsx(Row, {
18149
+ children: F.map((J, z) => /* @__PURE__ */ jsx(Col, {
18150
18150
  xs: 24,
18151
18151
  className: "p-2",
18152
18152
  xl: 6,
@@ -18161,16 +18161,16 @@ function SearchFilter(e) {
18161
18161
  const E = new SearchFilter$1(o, r);
18162
18162
  E.parse(), C(E._simpleSearchContainer), y(E._advancedSearchContainer);
18163
18163
  }, [r, o]);
18164
- const F = _(), N = (E) => {
18164
+ const A = _(), N = (E) => {
18165
18165
  const {
18166
18166
  limit: P,
18167
- offset: A
18167
+ offset: F
18168
18168
  } = E;
18169
18169
  delete E.offset, delete E.limit;
18170
18170
  const W = getParamsForFields(E, r);
18171
18171
  s({
18172
18172
  params: W,
18173
- offset: A,
18173
+ offset: F,
18174
18174
  limit: P,
18175
18175
  searchValues: E
18176
18176
  });
@@ -18197,7 +18197,7 @@ function SearchFilter(e) {
18197
18197
  offset: c,
18198
18198
  limit: u
18199
18199
  },
18200
- children: [F, v && m && /* @__PURE__ */ jsx(SearchParams, {
18200
+ children: [A, v && m && /* @__PURE__ */ jsx(SearchParams, {
18201
18201
  onLimitChange: d
18202
18202
  }), /* @__PURE__ */ jsx(SearchBottomBar, {
18203
18203
  advancedFilter: v,
@@ -18268,16 +18268,16 @@ const Many2oneSuffixModal = (e) => {
18268
18268
  async function O() {
18269
18269
  f(!0);
18270
18270
  try {
18271
- const A = await ConnectionProvider.getHandler().getView({
18271
+ const F = await ConnectionProvider.getHandler().getView({
18272
18272
  model: o,
18273
18273
  type: "form",
18274
18274
  context: a
18275
18275
  });
18276
- h(A);
18276
+ h(F);
18277
18277
  const {
18278
18278
  fields: W,
18279
18279
  arch: J
18280
- } = A, z = (await ConnectionProvider.getHandler().readObjects({
18280
+ } = F, z = (await ConnectionProvider.getHandler().readObjects({
18281
18281
  model: o,
18282
18282
  ids: [r],
18283
18283
  fields: W,
@@ -18287,8 +18287,8 @@ const Many2oneSuffixModal = (e) => {
18287
18287
  ...processValues(z, W),
18288
18288
  active_id: r
18289
18289
  }), f(!1);
18290
- } catch (A) {
18291
- f(!1), showDialog$8(A);
18290
+ } catch (F) {
18291
+ f(!1), showDialog$8(F);
18292
18292
  return;
18293
18293
  }
18294
18294
  }
@@ -18305,7 +18305,7 @@ const Many2oneSuffixModal = (e) => {
18305
18305
  });
18306
18306
  if (!p || !p.toolbar)
18307
18307
  return /* @__PURE__ */ jsx(Menu, {});
18308
- const A = (W = p == null ? void 0 : p.toolbar) == null ? void 0 : W.relate.map((J) => /* @__PURE__ */ jsx(Menu.Item, {
18308
+ const F = (W = p == null ? void 0 : p.toolbar) == null ? void 0 : W.relate.map((J) => /* @__PURE__ */ jsx(Menu.Item, {
18309
18309
  children: J.name
18310
18310
  }, J.id));
18311
18311
  return /* @__PURE__ */ jsx(Menu, {
@@ -18324,17 +18324,17 @@ const Many2oneSuffixModal = (e) => {
18324
18324
  children: [" ", I("related")]
18325
18325
  })]
18326
18326
  }),
18327
- children: A
18327
+ children: F
18328
18328
  })]
18329
18329
  });
18330
18330
  }
18331
- function _(A) {
18332
- if (A.key === "action")
18331
+ function _(F) {
18332
+ if (F.key === "action")
18333
18333
  l(!0);
18334
- else if (A.key === "print")
18334
+ else if (F.key === "print")
18335
18335
  u(!0);
18336
18336
  else {
18337
- const W = p.toolbar.relate.find((J) => J.id === parseInt(A.key));
18337
+ const W = p.toolbar.relate.find((J) => J.id === parseInt(F.key));
18338
18338
  if (!W)
18339
18339
  return;
18340
18340
  b({
@@ -18346,9 +18346,9 @@ const Many2oneSuffixModal = (e) => {
18346
18346
  });
18347
18347
  }
18348
18348
  }
18349
- function F(A) {
18349
+ function A(F) {
18350
18350
  l(!1), v == null || v({
18351
- actionData: A,
18351
+ actionData: F,
18352
18352
  values: g,
18353
18353
  fields: p.fields,
18354
18354
  context: {
@@ -18357,12 +18357,12 @@ const Many2oneSuffixModal = (e) => {
18357
18357
  }
18358
18358
  });
18359
18359
  }
18360
- function N(A) {
18360
+ function N(F) {
18361
18361
  u(!1), v == null || v({
18362
18362
  actionData: {
18363
- ...A,
18363
+ ...F,
18364
18364
  datas: {
18365
- ...A.datas || {},
18365
+ ...F.datas || {},
18366
18366
  ids: [r]
18367
18367
  }
18368
18368
  },
@@ -18378,14 +18378,14 @@ const Many2oneSuffixModal = (e) => {
18378
18378
  style: {
18379
18379
  color: "rgba(0,0,0,.45)"
18380
18380
  },
18381
- onClick: (A) => {
18382
- A.preventDefault(), O();
18381
+ onClick: (F) => {
18382
+ F.preventDefault(), O();
18383
18383
  }
18384
18384
  })
18385
18385
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
18386
18386
  visible: s,
18387
18387
  items: (E = p == null ? void 0 : p.toolbar) == null ? void 0 : E.action,
18388
- onItemClicked: F,
18388
+ onItemClicked: A,
18389
18389
  onCancel: () => l(!1)
18390
18390
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
18391
18391
  visible: c,
@@ -18547,12 +18547,12 @@ function Tree(e) {
18547
18547
  sorter: I,
18548
18548
  onFetchChildrenForRecord: C,
18549
18549
  childField: b
18550
- } = e, [y, v] = useState([]), [O, w] = useState([]), _ = useRef(!1), F = useRef(null), {
18550
+ } = e, [y, v] = useState([]), [O, w] = useState([]), _ = useRef(!1), A = useRef(null), {
18551
18551
  t: N
18552
18552
  } = useContext(LocaleContext), E = useRef(o);
18553
18553
  useEffect(() => {
18554
- F.current = getTree(s);
18555
- const re = getTableColumns(F.current, {
18554
+ A.current = getTree(s);
18555
+ const oe = getTableColumns(A.current, {
18556
18556
  boolean: booleanComponentFn,
18557
18557
  many2one: many2OneComponentFn,
18558
18558
  text: textComponentFn,
@@ -18564,13 +18564,13 @@ function Tree(e) {
18564
18564
  integer: numberComponent,
18565
18565
  float: numberComponent
18566
18566
  });
18567
- w(re);
18567
+ w(oe);
18568
18568
  }, [s]), useEffect(() => {
18569
18569
  _.current = !1;
18570
- const re = getTableItems(F.current, l);
18571
- v(re), E.current = o;
18570
+ const oe = getTableItems(A.current, l);
18571
+ v(oe), E.current = o;
18572
18572
  }, [l]);
18573
- const P = (r - 1) * E.current + 1, A = P - 1 + y.length, W = a === void 0 ? null : a === 0 ? N("no_results") : N("summary").replace("{from}", P == null ? void 0 : P.toString()).replace("{to}", A == null ? void 0 : A.toString()).replace("{total}", a == null ? void 0 : a.toString()), J = () => !f || s.isExpandable || u ? null : a === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
18573
+ const P = (r - 1) * E.current + 1, F = P - 1 + y.length, W = a === void 0 ? null : a === 0 ? N("no_results") : N("summary").replace("{from}", P == null ? void 0 : P.toString()).replace("{to}", F == null ? void 0 : F.toString()).replace("{total}", a == null ? void 0 : a.toString()), J = () => !f || s.isExpandable || u ? null : a === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
18574
18574
  align: "bottom",
18575
18575
  className: "pb-4",
18576
18576
  children: [/* @__PURE__ */ jsx(Col, {
@@ -18590,7 +18590,7 @@ function Tree(e) {
18590
18590
  });
18591
18591
  function z() {
18592
18592
  var we;
18593
- const ee = F.current.columns.filter((Ce) => Ce.sum !== void 0).map((Ce) => ({
18593
+ const ee = A.current.columns.filter((Ce) => Ce.sum !== void 0).map((Ce) => ({
18594
18594
  label: Ce.sum,
18595
18595
  field: Ce.id
18596
18596
  }));
@@ -18606,12 +18606,12 @@ function Tree(e) {
18606
18606
  });
18607
18607
  }
18608
18608
  let Y, Q = h;
18609
- if (F.current !== null) {
18609
+ if (A.current !== null) {
18610
18610
  Y = calculateColumnsWidth(O, y, 600);
18611
- const ee = F.current;
18611
+ const ee = A.current;
18612
18612
  h && ee.columns.some((X) => X.sum !== void 0) && (Q = h - 30);
18613
18613
  }
18614
- return F.current === null ? /* @__PURE__ */ jsx(Spin, {
18614
+ return A.current === null ? /* @__PURE__ */ jsx(Spin, {
18615
18615
  style: {
18616
18616
  padding: "2rem"
18617
18617
  }
@@ -18622,10 +18622,10 @@ function Tree(e) {
18622
18622
  dataSource: y,
18623
18623
  loading: u,
18624
18624
  loadingComponent: /* @__PURE__ */ jsx(Spin, {}),
18625
- onRowStyle: (re) => {
18626
- if (g[re.id])
18625
+ onRowStyle: (oe) => {
18626
+ if (g[oe.id])
18627
18627
  return {
18628
- color: g[re.id]
18628
+ color: g[oe.id]
18629
18629
  };
18630
18630
  },
18631
18631
  onRowDoubleClick: d,
@@ -18655,11 +18655,11 @@ function SearchTree(e, r) {
18655
18655
  rootTree: p = !1,
18656
18656
  parentContext: h = {},
18657
18657
  onChangeSelectedRowKeys: g
18658
- } = e, [m, I] = useState(!1), [C, b] = useState(!1), y = useRef(!1), [v, O] = useState(), [w, _] = useState(), [F, N] = useState(), [E, P] = useState(), [A, W] = useState(200), J = useRef(), {
18658
+ } = e, [m, I] = useState(!1), [C, b] = useState(!1), y = useRef(!1), [v, O] = useState(), [w, _] = useState(), [A, N] = useState(), [E, P] = useState(), [F, W] = useState(200), J = useRef(), {
18659
18659
  height: z
18660
18660
  } = useWindowDimensions(), Y = useContext(ContentRootContext), {
18661
18661
  processAction: Q
18662
- } = Y || {}, re = useContext(ActionViewContext), {
18662
+ } = Y || {}, oe = useContext(ActionViewContext), {
18663
18663
  setResults: ee = void 0,
18664
18664
  setCurrentItemIndex: X = void 0,
18665
18665
  currentId: ue = void 0,
@@ -18671,7 +18671,7 @@ function SearchTree(e, r) {
18671
18671
  searchVisible: de = !0,
18672
18672
  setSearchVisible: j = void 0,
18673
18673
  sorter: U = void 0,
18674
- setSorter: oe = void 0,
18674
+ setSorter: re = void 0,
18675
18675
  setTotalItems: Re = void 0,
18676
18676
  setSearchTreeNameSearch: Fe = void 0,
18677
18677
  setTreeIsLoading: L = void 0,
@@ -18679,7 +18679,7 @@ function SearchTree(e, r) {
18679
18679
  setSearchValues: Te = void 0,
18680
18680
  limit: Ne = DEFAULT_SEARCH_LIMIT$1,
18681
18681
  setLimit: tt = void 0
18682
- } = (p ? re : {}) || {}, {
18682
+ } = (p ? oe : {}) || {}, {
18683
18683
  submit: je,
18684
18684
  clear: Ge,
18685
18685
  fetchResults: yt,
@@ -18706,10 +18706,10 @@ function SearchTree(e, r) {
18706
18706
  nameSearch: c,
18707
18707
  searchNameGetDoneRef: y,
18708
18708
  context: h,
18709
- formView: F,
18709
+ formView: A,
18710
18710
  treeView: w,
18711
18711
  sorter: U,
18712
- setSorter: oe,
18712
+ setSorter: re,
18713
18713
  setCurrentItemIndex: X,
18714
18714
  setResultsActionView: ee,
18715
18715
  resultsActionView: we,
@@ -18791,7 +18791,7 @@ function SearchTree(e, r) {
18791
18791
  l({
18792
18792
  id: un,
18793
18793
  model: v,
18794
- formView: F,
18794
+ formView: A,
18795
18795
  treeView: w
18796
18796
  });
18797
18797
  };
@@ -18800,15 +18800,15 @@ function SearchTree(e, r) {
18800
18800
  ce == null || ce(un), g == null || g(tn);
18801
18801
  }
18802
18802
  function rn() {
18803
- return w != null && w.isExpandable ? z - 160 : z - (A + 210);
18803
+ return w != null && w.isExpandable ? z - 160 : z - (F + 210);
18804
18804
  }
18805
- const hn = () => !w || !F ? null : /* @__PURE__ */ jsxs(Fragment, {
18805
+ const hn = () => !w || !A ? null : /* @__PURE__ */ jsxs(Fragment, {
18806
18806
  children: [/* @__PURE__ */ jsx(SearchFilter, {
18807
18807
  fields: {
18808
18808
  ...w.fields,
18809
- ...F.fields
18809
+ ...A.fields
18810
18810
  },
18811
- searchFields: mergeSearchFields([F.search_fields, w.search_fields]),
18811
+ searchFields: mergeSearchFields([A.search_fields, w.search_fields]),
18812
18812
  onClear: Ge,
18813
18813
  limit: Ne,
18814
18814
  offset: Ct,
@@ -18983,23 +18983,23 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18983
18983
  context: u,
18984
18984
  id: d,
18985
18985
  domain: f
18986
- } = a, p = s && !c ? Config.requiredClass : void 0, [h, g] = useState(!1), [m, I] = useState(!1), [C, b] = useState(!1), [y, v] = useState(), O = useRef(!1), [w, _] = useState(""), F = useRef(), N = useContext(FormContext$1), {
18986
+ } = a, p = s && !c ? Config.requiredClass : void 0, [h, g] = useState(!1), [m, I] = useState(!1), [C, b] = useState(!1), [y, v] = useState(), O = useRef(!1), [w, _] = useState(""), A = useRef(), N = useContext(FormContext$1), {
18987
18987
  domain: E,
18988
18988
  getValues: P,
18989
- getFields: A,
18989
+ getFields: F,
18990
18990
  getContext: W,
18991
18991
  setOriginalValue: J,
18992
18992
  elementHasLostFocus: z
18993
- } = N || {}, Y = useRef([]), [Q, re] = useState([]), ee = r && r[0] || void 0, X = r && r[1] || "";
18993
+ } = N || {}, Y = useRef([]), [Q, oe] = useState([]), ee = r && r[0] || void 0, X = r && r[1] || "";
18994
18994
  useEffect(() => {
18995
18995
  !Array.isArray(r) && r && xe(r);
18996
18996
  }, [r]), useEffect(() => {
18997
- ee && X.length === 0 ? xe(ee) : ee && X.length > 0 ? _(X) : !ee && !X && _(F.current || "");
18997
+ ee && X.length === 0 ? xe(ee) : ee && X.length > 0 ? _(X) : !ee && !X && _(A.current || "");
18998
18998
  }, [r]);
18999
18999
  const ue = (U) => {
19000
19000
  o == null || o(U), z == null || z();
19001
19001
  }, we = (U) => {
19002
- F.current = U.target.value, ue([void 0, ""]);
19002
+ A.current = U.target.value, ue([void 0, ""]);
19003
19003
  }, Ce = async () => {
19004
19004
  if (!C && w !== X) {
19005
19005
  if (await new Promise((U) => setTimeout(U, 100)), O.current) {
@@ -19009,17 +19009,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19009
19009
  b(!0);
19010
19010
  try {
19011
19011
  if (Y.current && Y.current.length > 0)
19012
- ce(F.current);
19012
+ ce(A.current);
19013
19013
  else {
19014
19014
  const U = await ConnectionProvider.getHandler().nameSearch({
19015
19015
  model: l,
19016
- payload: F.current,
19016
+ payload: A.current,
19017
19017
  context: {
19018
19018
  ...W == null ? void 0 : W(),
19019
19019
  ...u
19020
19020
  }
19021
19021
  });
19022
- U.length === 1 ? (F.current = void 0, ue(U[0])) : ce(F.current);
19022
+ U.length === 1 ? (A.current = void 0, ue(U[0])) : ce(A.current);
19023
19023
  }
19024
19024
  } catch (U) {
19025
19025
  showDialog$3(U);
@@ -19029,7 +19029,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19029
19029
  }
19030
19030
  }, ce = async (U) => {
19031
19031
  if (await te(), Y.current && Y.current.length > 0) {
19032
- const oe = await ConnectionProvider.getHandler().searchAllIds({
19032
+ const re = await ConnectionProvider.getHandler().searchAllIds({
19033
19033
  params: Y.current,
19034
19034
  model: l,
19035
19035
  context: {
@@ -19038,11 +19038,11 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19038
19038
  },
19039
19039
  totalItems: 2
19040
19040
  });
19041
- oe.length === 1 ? xe(oe[0], !0) : (v(U), g(!0));
19041
+ re.length === 1 ? xe(re[0], !0) : (v(U), g(!0));
19042
19042
  return;
19043
19043
  }
19044
19044
  v(U), g(!0);
19045
- }, xe = async (U, oe) => {
19045
+ }, xe = async (U, re) => {
19046
19046
  b(!0);
19047
19047
  try {
19048
19048
  const Re = await ConnectionProvider.getHandler().execute({
@@ -19054,7 +19054,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19054
19054
  ...u
19055
19055
  }
19056
19056
  });
19057
- ue([U, Re[0][1]]), oe && J(a.id, [U, Re[0][1]]);
19057
+ ue([U, Re[0][1]]), re && J(a.id, [U, Re[0][1]]);
19058
19058
  } catch (Re) {
19059
19059
  showDialog$3(Re);
19060
19060
  } finally {
@@ -19065,14 +19065,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19065
19065
  f && (Y.current = await ConnectionProvider.getHandler().evalDomain({
19066
19066
  domain: f,
19067
19067
  values: transformPlainMany2Ones({
19068
- fields: A(),
19068
+ fields: F(),
19069
19069
  values: P()
19070
19070
  }),
19071
19071
  context: W()
19072
19072
  })), E && E.length > 0 && (Y.current = Y.current.concat(transformDomainForChildWidget({
19073
19073
  domain: E,
19074
19074
  widgetFieldName: d
19075
- }))), re(Y.current);
19075
+ }))), oe(Y.current);
19076
19076
  }
19077
19077
  async function de(U) {
19078
19078
  U.code === "Enter" ? (U.preventDefault(), U.stopPropagation(), await Ce()) : U.code === "Backspace" && ee !== void 0 && (U.preventDefault(), U.stopPropagation(), ue([void 0, ""]));
@@ -19129,7 +19129,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19129
19129
  visible: h,
19130
19130
  nameSearch: ee ? void 0 : y,
19131
19131
  onSelectValues: (U) => {
19132
- g(!1), xe(U[0]), O.current = !1, F.current = void 0;
19132
+ g(!1), xe(U[0]), O.current = !1, A.current = void 0;
19133
19133
  },
19134
19134
  onCloseModal: () => {
19135
19135
  g(!1), O.current = !1;
@@ -19587,8 +19587,8 @@ function requireTransButton() {
19587
19587
  var _ = w.keyCode;
19588
19588
  _ === l.default.ENTER && w.preventDefault();
19589
19589
  }, m = function(w) {
19590
- var _ = w.keyCode, F = p.onClick;
19591
- _ === l.default.ENTER && F && F();
19590
+ var _ = w.keyCode, A = p.onClick;
19591
+ _ === l.default.ENTER && A && A();
19592
19592
  }, I = p.style, C = p.noStyle, b = p.disabled, y = c(p, ["style", "noStyle", "disabled"]), v = {};
19593
19593
  return C || (v = (0, a.default)({}, u)), b && (v.pointerEvents = "none"), v = (0, a.default)((0, a.default)({}, v), I), /* @__PURE__ */ s.createElement("div", (0, a.default)({
19594
19594
  role: "button",
@@ -20285,20 +20285,20 @@ function doAlign(e, r, o, a) {
20285
20285
  var w = flip(s, /[tb]/gi, {
20286
20286
  t: "b",
20287
20287
  b: "t"
20288
- }), _ = flipOffset(l, 1), F = flipOffset(c, 1), N = getElFuturePos(m, r, w, _, F);
20289
- isCompleteFailY(N, m, g) || (p = 1, s = w, l = _, c = F);
20288
+ }), _ = flipOffset(l, 1), A = flipOffset(c, 1), N = getElFuturePos(m, r, w, _, A);
20289
+ isCompleteFailY(N, m, g) || (p = 1, s = w, l = _, c = A);
20290
20290
  }
20291
20291
  p && (I = getElFuturePos(m, r, s, l, c), utils.mix(C, I));
20292
20292
  var E = isFailX(I, m, g), P = isFailY(I, m, g);
20293
20293
  if (E || P) {
20294
- var A = s;
20295
- E && (A = flip(s, /[lr]/gi, {
20294
+ var F = s;
20295
+ E && (F = flip(s, /[lr]/gi, {
20296
20296
  l: "r",
20297
20297
  r: "l"
20298
- })), P && (A = flip(s, /[tb]/gi, {
20298
+ })), P && (F = flip(s, /[tb]/gi, {
20299
20299
  t: "b",
20300
20300
  b: "t"
20301
- })), s = A, l = o.offset || [0, 0], c = o.targetOffset || [0, 0];
20301
+ })), s = F, l = o.offset || [0, 0], c = o.targetOffset || [0, 0];
20302
20302
  }
20303
20303
  f.adjustX = u.adjustX && E, f.adjustY = u.adjustY && P, (f.adjustX || f.adjustY) && (C = adjustForViewport(I, m, g, f));
20304
20304
  }
@@ -20396,12 +20396,12 @@ var Align = function e(r, o) {
20396
20396
  var a = r.children, s = r.disabled, l = r.target, c = r.align, u = r.onAlign, d = r.monitorWindowResize, f = r.monitorBufferTime, p = f === void 0 ? 0 : f, h = React__default.useRef({}), g = React__default.useRef(), m = React__default.Children.only(a), I = React__default.useRef({});
20397
20397
  I.current.disabled = s, I.current.target = l, I.current.onAlign = u;
20398
20398
  var C = useBuffer(function() {
20399
- var F = I.current, N = F.disabled, E = F.target, P = F.onAlign;
20399
+ var A = I.current, N = A.disabled, E = A.target, P = A.onAlign;
20400
20400
  if (!N && E) {
20401
- var A = g.current, W, J = getElement(E), z = getPoint(E);
20401
+ var F = g.current, W, J = getElement(E), z = getPoint(E);
20402
20402
  h.current.element = J, h.current.point = z;
20403
20403
  var Y = document, Q = Y.activeElement;
20404
- return J && isVisible(J) ? W = alignElement(A, J, c) : z && (W = alignPoint(A, z, c)), restoreFocus(Q, A), P && W && P(A, W), !0;
20404
+ return J && isVisible(J) ? W = alignElement(F, J, c) : z && (W = alignPoint(F, z, c)), restoreFocus(Q, F), P && W && P(F, W), !0;
20405
20405
  }
20406
20406
  return !1;
20407
20407
  }, p), b = _slicedToArray(C, 2), y = b[0], v = b[1], O = React__default.useRef({
@@ -20412,8 +20412,8 @@ var Align = function e(r, o) {
20412
20412
  }
20413
20413
  });
20414
20414
  React__default.useEffect(function() {
20415
- var F = getElement(l), N = getPoint(l);
20416
- g.current !== w.current.element && (w.current.cancel(), w.current.element = g.current, w.current.cancel = monitorResize(g.current, y)), (h.current.element !== F || !isSamePoint(h.current.point, N)) && (y(), O.current.element !== F && (O.current.cancel(), O.current.element = F, O.current.cancel = monitorResize(F, y)));
20415
+ var A = getElement(l), N = getPoint(l);
20416
+ g.current !== w.current.element && (w.current.cancel(), w.current.element = g.current, w.current.cancel = monitorResize(g.current, y)), (h.current.element !== A || !isSamePoint(h.current.point, N)) && (y(), O.current.element !== A && (O.current.cancel(), O.current.element = A, O.current.cancel = monitorResize(A, y)));
20417
20417
  }), React__default.useEffect(function() {
20418
20418
  s ? v() : y();
20419
20419
  }, [s]);
@@ -20505,11 +20505,11 @@ const useVisibleStatus = function(e, r) {
20505
20505
  return [c, l];
20506
20506
  };
20507
20507
  var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20508
- var o = e.visible, a = e.prefixCls, s = e.className, l = e.style, c = e.children, u = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.align, h = e.point, g = e.getRootDomNode, m = e.getClassNameFromAlign, I = e.onAlign, C = e.onMouseEnter, b = e.onMouseLeave, y = e.onMouseDown, v = e.onTouchStart, O = useRef(), w = useRef(), _ = useState(), F = _slicedToArray(_, 2), N = F[0], E = F[1], P = useStretchStyle(d), A = _slicedToArray(P, 2), W = A[0], J = A[1];
20508
+ var o = e.visible, a = e.prefixCls, s = e.className, l = e.style, c = e.children, u = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.align, h = e.point, g = e.getRootDomNode, m = e.getClassNameFromAlign, I = e.onAlign, C = e.onMouseEnter, b = e.onMouseLeave, y = e.onMouseDown, v = e.onTouchStart, O = useRef(), w = useRef(), _ = useState(), A = _slicedToArray(_, 2), N = A[0], E = A[1], P = useStretchStyle(d), F = _slicedToArray(P, 2), W = F[0], J = F[1];
20509
20509
  function z() {
20510
20510
  d && J(g());
20511
20511
  }
20512
- var Y = useVisibleStatus(o, z), Q = _slicedToArray(Y, 2), re = Q[0], ee = Q[1], X = useRef();
20512
+ var Y = useVisibleStatus(o, z), Q = _slicedToArray(Y, 2), oe = Q[0], ee = Q[1], X = useRef();
20513
20513
  function ue() {
20514
20514
  return h || g;
20515
20515
  }
@@ -20517,22 +20517,22 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20517
20517
  var U;
20518
20518
  (U = O.current) === null || U === void 0 || U.forceAlign();
20519
20519
  }
20520
- function Ce(U, oe) {
20521
- if (re === "align") {
20522
- var Re = m(oe);
20520
+ function Ce(U, re) {
20521
+ if (oe === "align") {
20522
+ var Re = m(re);
20523
20523
  E(Re), N !== Re ? Promise.resolve().then(function() {
20524
20524
  we();
20525
20525
  }) : ee(function() {
20526
20526
  var Fe;
20527
20527
  (Fe = X.current) === null || Fe === void 0 || Fe.call(X);
20528
- }), I == null || I(U, oe);
20528
+ }), I == null || I(U, re);
20529
20529
  }
20530
20530
  }
20531
20531
  var ce = _objectSpread2$1({}, getMotion(e));
20532
20532
  ["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(U) {
20533
- var oe = ce[U];
20533
+ var re = ce[U];
20534
20534
  ce[U] = function(Re, Fe) {
20535
- return ee(), oe == null ? void 0 : oe(Re, Fe);
20535
+ return ee(), re == null ? void 0 : re(Re, Fe);
20536
20536
  };
20537
20537
  });
20538
20538
  function xe() {
@@ -20541,8 +20541,8 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20541
20541
  });
20542
20542
  }
20543
20543
  React.useEffect(function() {
20544
- !ce.motionName && re === "motion" && ee();
20545
- }, [ce.motionName, re]), React.useImperativeHandle(r, function() {
20544
+ !ce.motionName && oe === "motion" && ee();
20545
+ }, [ce.motionName, oe]), React.useImperativeHandle(r, function() {
20546
20546
  return {
20547
20547
  forceAlign: we,
20548
20548
  getElement: function() {
@@ -20553,10 +20553,10 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20553
20553
  var te = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, W), {}, {
20554
20554
  zIndex: u
20555
20555
  }, l), {}, {
20556
- opacity: re === "motion" || re === "stable" || !o ? void 0 : 0,
20557
- pointerEvents: re === "stable" ? void 0 : "none"
20556
+ opacity: oe === "motion" || oe === "stable" || !o ? void 0 : 0,
20557
+ pointerEvents: oe === "stable" ? void 0 : "none"
20558
20558
  }), de = !0;
20559
- (p == null ? void 0 : p.points) && (re === "align" || re === "stable") && (de = !1);
20559
+ (p == null ? void 0 : p.points) && (oe === "align" || oe === "stable") && (de = !1);
20560
20560
  var j = c;
20561
20561
  return React.Children.count(c) > 1 && (j = /* @__PURE__ */ jsx("div", {
20562
20562
  className: "".concat(a, "-content"),
@@ -20569,7 +20569,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20569
20569
  onAppearPrepare: xe,
20570
20570
  onEnterPrepare: xe,
20571
20571
  removeOnLeave: f,
20572
- children: function(U, oe) {
20572
+ children: function(U, re) {
20573
20573
  var Re = U.className, Fe = U.style, L = classnamesExports(a, s, N, Re);
20574
20574
  return /* @__PURE__ */ jsx(RefAlign, {
20575
20575
  target: ue(),
@@ -20579,7 +20579,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
20579
20579
  align: p,
20580
20580
  onAlign: Ce,
20581
20581
  children: /* @__PURE__ */ jsx("div", {
20582
- ref: oe,
20582
+ ref: re,
20583
20583
  className: L,
20584
20584
  onMouseEnter: C,
20585
20585
  onMouseLeave: b,
@@ -20728,7 +20728,7 @@ function generateTrigger(e) {
20728
20728
  var f = [], p = c.props, h = p.popupPlacement, g = p.builtinPlacements, m = p.prefixCls, I = p.alignPoint, C = p.getPopupClassNameFromAlign;
20729
20729
  return h && g && f.push(getAlignPopupClassName(g, m, d, I)), C && f.push(C(d)), f.join(" ");
20730
20730
  }, c.getComponent = function() {
20731
- var d = c.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, g = d.onPopupAlign, m = d.popupMotion, I = d.popupAnimation, C = d.popupTransitionName, b = d.popupStyle, y = d.mask, v = d.maskAnimation, O = d.maskTransitionName, w = d.maskMotion, _ = d.zIndex, F = d.popup, N = d.stretch, E = d.alignPoint, P = d.mobile, A = c.state, W = A.popupVisible, J = A.point, z = c.getPopupAlign(), Y = {};
20731
+ var d = c.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, g = d.onPopupAlign, m = d.popupMotion, I = d.popupAnimation, C = d.popupTransitionName, b = d.popupStyle, y = d.mask, v = d.maskAnimation, O = d.maskTransitionName, w = d.maskMotion, _ = d.zIndex, A = d.popup, N = d.stretch, E = d.alignPoint, P = d.mobile, F = c.state, W = F.popupVisible, J = F.point, z = c.getPopupAlign(), Y = {};
20732
20732
  return c.isMouseEnterToShow() && (Y.onMouseEnter = c.onPopupMouseEnter), c.isMouseLeaveToHide() && (Y.onMouseLeave = c.onPopupMouseLeave), Y.onMouseDown = c.onPopupMouseDown, Y.onTouchStart = c.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
20733
20733
  prefixCls: f,
20734
20734
  destroyPopupOnHide: p,
@@ -20752,7 +20752,7 @@ function generateTrigger(e) {
20752
20752
  ref: c.popupRef,
20753
20753
  motion: m,
20754
20754
  mobile: P,
20755
- children: typeof F == "function" ? F() : F
20755
+ children: typeof A == "function" ? A() : A
20756
20756
  });
20757
20757
  }, c.attachParent = function(d) {
20758
20758
  wrapperRaf.cancel(c.attachId);
@@ -21062,7 +21062,7 @@ var autoAdjustOverflow = {
21062
21062
  children: typeof o == "function" ? o() : o
21063
21063
  });
21064
21064
  }, Tooltip = function e(r, o) {
21065
- var a = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, c = r.mouseEnterDelay, u = c === void 0 ? 0 : c, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, g = h === void 0 ? "rc-tooltip" : h, m = r.children, I = r.onVisibleChange, C = r.afterVisibleChange, b = r.transitionName, y = r.animation, v = r.placement, O = v === void 0 ? "right" : v, w = r.align, _ = w === void 0 ? {} : w, F = r.destroyTooltipOnHide, N = F === void 0 ? !1 : F, E = r.defaultVisible, P = r.getTooltipContainer, A = r.overlayInnerStyle, W = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), J = useRef(null);
21065
+ var a = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, c = r.mouseEnterDelay, u = c === void 0 ? 0 : c, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, g = h === void 0 ? "rc-tooltip" : h, m = r.children, I = r.onVisibleChange, C = r.afterVisibleChange, b = r.transitionName, y = r.animation, v = r.placement, O = v === void 0 ? "right" : v, w = r.align, _ = w === void 0 ? {} : w, A = r.destroyTooltipOnHide, N = A === void 0 ? !1 : A, E = r.defaultVisible, P = r.getTooltipContainer, F = r.overlayInnerStyle, W = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), J = useRef(null);
21066
21066
  useImperativeHandle(o, function() {
21067
21067
  return J.current;
21068
21068
  });
@@ -21079,15 +21079,15 @@ var autoAdjustOverflow = {
21079
21079
  prefixCls: g,
21080
21080
  id: ce,
21081
21081
  overlay: Ce,
21082
- overlayInnerStyle: A
21082
+ overlayInnerStyle: F
21083
21083
  }, "content")
21084
21084
  ];
21085
- }, Q = !1, re = !1;
21085
+ }, Q = !1, oe = !1;
21086
21086
  if (typeof N == "boolean")
21087
21087
  Q = N;
21088
21088
  else if (N && _typeof$1(N) === "object") {
21089
21089
  var ee = N.keepParent;
21090
- Q = ee === !0, re = ee === !1;
21090
+ Q = ee === !0, oe = ee === !1;
21091
21091
  }
21092
21092
  return /* @__PURE__ */ jsx(Trigger, {
21093
21093
  ...Object.assign({
@@ -21106,7 +21106,7 @@ var autoAdjustOverflow = {
21106
21106
  popupAnimation: y,
21107
21107
  defaultPopupVisible: E,
21108
21108
  destroyPopupOnHide: Q,
21109
- autoDestroy: re,
21109
+ autoDestroy: oe,
21110
21110
  mouseLeaveDelay: f,
21111
21111
  popupStyle: p,
21112
21112
  mouseEnterDelay: u
@@ -21305,37 +21305,37 @@ function requireTooltip() {
21305
21305
  value: !0
21306
21306
  }), e.default = void 0;
21307
21307
  var a = o(requireDefineProperty()), s = o(requireSlicedToArray()), l = o(require_extends()), c = r(React__default), u = o(require$$6), d = o(requireClassnames()), f = o(requirePlacements()), p = requireReactNode(), h = requireConfigProvider(), g = requireColors(), m = function(O, w) {
21308
- var _ = {}, F = (0, l.default)({}, O);
21308
+ var _ = {}, A = (0, l.default)({}, O);
21309
21309
  return w.forEach(function(N) {
21310
- O && N in O && (_[N] = O[N], delete F[N]);
21310
+ O && N in O && (_[N] = O[N], delete A[N]);
21311
21311
  }), {
21312
21312
  picked: _,
21313
- omitted: F
21313
+ omitted: A
21314
21314
  };
21315
21315
  }, I = new RegExp("^(".concat(g.PresetColorTypes.join("|"), ")(-inverse)?$"));
21316
21316
  function C(v, O) {
21317
21317
  var w = v.type;
21318
21318
  if ((w.__ANT_BUTTON === !0 || w.__ANT_SWITCH === !0 || w.__ANT_CHECKBOX === !0 || v.type === "button") && v.props.disabled) {
21319
- var _ = m(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), F = _.picked, N = _.omitted, E = (0, l.default)((0, l.default)({
21319
+ var _ = m(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), A = _.picked, N = _.omitted, E = (0, l.default)((0, l.default)({
21320
21320
  display: "inline-block"
21321
- }, F), {
21321
+ }, A), {
21322
21322
  cursor: "not-allowed",
21323
21323
  width: v.props.block ? "100%" : null
21324
21324
  }), P = (0, l.default)((0, l.default)({}, N), {
21325
21325
  pointerEvents: "none"
21326
- }), A = (0, p.cloneElement)(v, {
21326
+ }), F = (0, p.cloneElement)(v, {
21327
21327
  style: P,
21328
21328
  className: null
21329
21329
  });
21330
21330
  return /* @__PURE__ */ c.createElement("span", {
21331
21331
  style: E,
21332
21332
  className: (0, d.default)(v.props.className, "".concat(O, "-disabled-compatible-wrapper"))
21333
- }, A);
21333
+ }, F);
21334
21334
  }
21335
21335
  return v;
21336
21336
  }
21337
21337
  var b = /* @__PURE__ */ c.forwardRef(function(v, O) {
21338
- var w, _ = c.useContext(h.ConfigContext), F = _.getPopupContainer, N = _.getPrefixCls, E = _.direction, P = c.useState(!!v.visible || !!v.defaultVisible), A = (0, s.default)(P, 2), W = A[0], J = A[1];
21338
+ var w, _ = c.useContext(h.ConfigContext), A = _.getPopupContainer, N = _.getPrefixCls, E = _.direction, P = c.useState(!!v.visible || !!v.defaultVisible), F = (0, s.default)(P, 2), W = F[0], J = F[1];
21339
21339
  c.useEffect(function() {
21340
21340
  "visible" in v && J(v.visible);
21341
21341
  }, [v.visible]);
@@ -21350,7 +21350,7 @@ function requireTooltip() {
21350
21350
  arrowPointAtCenter: je,
21351
21351
  autoAdjustOverflow: Ge
21352
21352
  });
21353
- }, re = function(tt, je) {
21353
+ }, oe = function(tt, je) {
21354
21354
  var Ge = Q(), yt = Object.keys(Ge).filter(function($t) {
21355
21355
  return Ge[$t].points[0] === je.points[0] && Ge[$t].points[1] === je.points[1];
21356
21356
  })[0];
@@ -21366,7 +21366,7 @@ function requireTooltip() {
21366
21366
  return tt === 0 ? tt : je || tt || "";
21367
21367
  }, X = v.prefixCls, ue = v.openClassName, we = v.getPopupContainer, Ce = v.getTooltipContainer, ce = v.overlayClassName, xe = v.color, te = v.overlayInnerStyle, de = v.children, j = N("tooltip", X), U = W;
21368
21368
  !("visible" in v) && z() && (U = !1);
21369
- var oe = C((0, p.isValidElement)(de) ? de : /* @__PURE__ */ c.createElement("span", null, de), j), Re = oe.props, Fe = (0, d.default)(Re.className, (0, a.default)({}, ue || "".concat(j, "-open"), !0)), L = (0, d.default)(ce, (w = {}, (0, a.default)(w, "".concat(j, "-rtl"), E === "rtl"), (0, a.default)(w, "".concat(j, "-").concat(xe), xe && I.test(xe)), w)), M = te, Te;
21369
+ var re = C((0, p.isValidElement)(de) ? de : /* @__PURE__ */ c.createElement("span", null, de), j), Re = re.props, Fe = (0, d.default)(Re.className, (0, a.default)({}, ue || "".concat(j, "-open"), !0)), L = (0, d.default)(ce, (w = {}, (0, a.default)(w, "".concat(j, "-rtl"), E === "rtl"), (0, a.default)(w, "".concat(j, "-").concat(xe), xe && I.test(xe)), w)), M = te, Te;
21370
21370
  return xe && !I.test(xe) && (M = (0, l.default)((0, l.default)({}, te), {
21371
21371
  background: xe
21372
21372
  }), Te = {
@@ -21374,21 +21374,21 @@ function requireTooltip() {
21374
21374
  }), /* @__PURE__ */ c.createElement(u.default, (0, l.default)({}, v, {
21375
21375
  prefixCls: j,
21376
21376
  overlayClassName: L,
21377
- getTooltipContainer: we || Ce || F,
21377
+ getTooltipContainer: we || Ce || A,
21378
21378
  ref: O,
21379
21379
  builtinPlacements: Q(),
21380
21380
  overlay: ee(),
21381
21381
  visible: U,
21382
21382
  onVisibleChange: Y,
21383
- onPopupAlign: re,
21383
+ onPopupAlign: oe,
21384
21384
  overlayInnerStyle: M,
21385
21385
  arrowContent: /* @__PURE__ */ c.createElement("span", {
21386
21386
  className: "".concat(j, "-arrow-content"),
21387
21387
  style: Te
21388
21388
  })
21389
- }), U ? (0, p.cloneElement)(oe, {
21389
+ }), U ? (0, p.cloneElement)(re, {
21390
21390
  className: Fe
21391
- }) : oe);
21391
+ }) : re);
21392
21392
  });
21393
21393
  b.displayName = "Tooltip", b.defaultProps = {
21394
21394
  placement: "top",
@@ -21446,13 +21446,13 @@ function requireTypography() {
21446
21446
  b.indexOf(v[O]) < 0 && Object.prototype.propertyIsEnumerable.call(C, v[O]) && (y[v[O]] = C[v[O]]);
21447
21447
  return y;
21448
21448
  }, h = function(b, y) {
21449
- var v = b.prefixCls, O = b.component, w = O === void 0 ? "article" : O, _ = b.className, F = b["aria-label"], N = b.setContentRef, E = b.children, P = p(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), A = y;
21450
- return N && ((0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), A = (0, u.composeRef)(y, N)), /* @__PURE__ */ l.createElement(d.ConfigConsumer, null, function(W) {
21451
- var J = W.getPrefixCls, z = W.direction, Y = w, Q = J("typography", v), re = (0, c.default)(Q, (0, s.default)({}, "".concat(Q, "-rtl"), z === "rtl"), _);
21449
+ var v = b.prefixCls, O = b.component, w = O === void 0 ? "article" : O, _ = b.className, A = b["aria-label"], N = b.setContentRef, E = b.children, P = p(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), F = y;
21450
+ return N && ((0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), F = (0, u.composeRef)(y, N)), /* @__PURE__ */ l.createElement(d.ConfigConsumer, null, function(W) {
21451
+ var J = W.getPrefixCls, z = W.direction, Y = w, Q = J("typography", v), oe = (0, c.default)(Q, (0, s.default)({}, "".concat(Q, "-rtl"), z === "rtl"), _);
21452
21452
  return /* @__PURE__ */ l.createElement(Y, (0, a.default)({
21453
- className: re,
21454
- "aria-label": F,
21455
- ref: A
21453
+ className: oe,
21454
+ "aria-label": A,
21455
+ ref: F
21456
21456
  }, P), E);
21457
21457
  });
21458
21458
  }, g = /* @__PURE__ */ l.forwardRef(h);
@@ -21510,10 +21510,10 @@ function requireEditable() {
21510
21510
  value: !0
21511
21511
  }), e.default = void 0;
21512
21512
  var a = o(requireDefineProperty()), s = o(requireSlicedToArray()), l = r(React__default), c = o(requireClassnames()), u = o(requireKeyCode()), d = o(requireEnterOutlined()), f = o(TextArea$2), p = function(m) {
21513
- var I = m.prefixCls, C = m["aria-label"], b = m.className, y = m.style, v = m.direction, O = m.maxLength, w = m.autoSize, _ = w === void 0 ? !0 : w, F = m.value, N = m.onSave, E = m.onCancel, P = l.useRef(), A = l.useRef(!1), W = l.useRef(), J = l.useState(F), z = (0, s.default)(J, 2), Y = z[0], Q = z[1];
21513
+ var I = m.prefixCls, C = m["aria-label"], b = m.className, y = m.style, v = m.direction, O = m.maxLength, w = m.autoSize, _ = w === void 0 ? !0 : w, A = m.value, N = m.onSave, E = m.onCancel, P = l.useRef(), F = l.useRef(!1), W = l.useRef(), J = l.useState(A), z = (0, s.default)(J, 2), Y = z[0], Q = z[1];
21514
21514
  l.useEffect(function() {
21515
- Q(F);
21516
- }, [F]), l.useEffect(function() {
21515
+ Q(A);
21516
+ }, [A]), l.useEffect(function() {
21517
21517
  if (P.current && P.current.resizableTextArea) {
21518
21518
  var te = P.current.resizableTextArea.textArea;
21519
21519
  te.focus();
@@ -21521,21 +21521,21 @@ function requireEditable() {
21521
21521
  te.setSelectionRange(de, de);
21522
21522
  }
21523
21523
  }, []);
21524
- var re = function(de) {
21524
+ var oe = function(de) {
21525
21525
  var j = de.target;
21526
21526
  Q(j.value.replace(/[\n\r]/g, ""));
21527
21527
  }, ee = function() {
21528
- A.current = !0;
21528
+ F.current = !0;
21529
21529
  }, X = function() {
21530
- A.current = !1;
21530
+ F.current = !1;
21531
21531
  }, ue = function(de) {
21532
21532
  var j = de.keyCode;
21533
- A.current || (W.current = j);
21533
+ F.current || (W.current = j);
21534
21534
  }, we = function() {
21535
21535
  N(Y.trim());
21536
21536
  }, Ce = function(de) {
21537
- var j = de.keyCode, U = de.ctrlKey, oe = de.altKey, Re = de.metaKey, Fe = de.shiftKey;
21538
- W.current === j && !A.current && !U && !oe && !Re && !Fe && (j === u.default.ENTER ? we() : j === u.default.ESC && E());
21537
+ var j = de.keyCode, U = de.ctrlKey, re = de.altKey, Re = de.metaKey, Fe = de.shiftKey;
21538
+ W.current === j && !F.current && !U && !re && !Re && !Fe && (j === u.default.ENTER ? we() : j === u.default.ESC && E());
21539
21539
  }, ce = function() {
21540
21540
  we();
21541
21541
  }, xe = (0, c.default)(I, "".concat(I, "-edit-content"), (0, a.default)({}, "".concat(I, "-rtl"), v === "rtl"), b);
@@ -21546,7 +21546,7 @@ function requireEditable() {
21546
21546
  ref: P,
21547
21547
  maxLength: O,
21548
21548
  value: Y,
21549
- onChange: re,
21549
+ onChange: oe,
21550
21550
  onKeyDown: ue,
21551
21551
  onKeyUp: Ce,
21552
21552
  onCompositionStart: ee,
@@ -21595,7 +21595,7 @@ function requireUtil() {
21595
21595
  }
21596
21596
  var I = function(b, y, v, O, w) {
21597
21597
  f || (f = document.createElement("div"), f.setAttribute("aria-hidden", "true"), document.body.appendChild(f));
21598
- var _ = y.rows, F = y.suffix, N = F === void 0 ? "" : F, E = window.getComputedStyle(b), P = g(E), A = h(E.lineHeight), W = Math.round(A * (_ + 1) + h(E.paddingTop) + h(E.paddingBottom));
21598
+ var _ = y.rows, A = y.suffix, N = A === void 0 ? "" : A, E = window.getComputedStyle(b), P = g(E), F = h(E.lineHeight), W = Math.round(F * (_ + 1) + h(E.paddingTop) + h(E.paddingBottom));
21599
21599
  f.setAttribute("style", P), f.style.position = "fixed", f.style.left = "0", f.style.height = "auto", f.style.minHeight = "auto", f.style.maxHeight = "auto", f.style.top = "-999999px", f.style.zIndex = "-1000", f.style.textOverflow = "clip", f.style.whiteSpace = "normal", f.style.webkitLineClamp = "none";
21600
21600
  var J = m((0, l.default)(v));
21601
21601
  (0, a.render)(/* @__PURE__ */ s.createElement("div", {
@@ -21619,7 +21619,7 @@ function requireUtil() {
21619
21619
  return xe !== d;
21620
21620
  }), Q = Array.prototype.slice.apply(f.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
21621
21621
  (0, a.unmountComponentAtNode)(f);
21622
- var re = [];
21622
+ var oe = [];
21623
21623
  f.innerHTML = "";
21624
21624
  var ee = document.createElement("span");
21625
21625
  f.appendChild(ee);
@@ -21631,8 +21631,8 @@ function requireUtil() {
21631
21631
  ee.insertBefore(ce, X);
21632
21632
  }
21633
21633
  function we(ce, xe) {
21634
- var te = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, de = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : xe.length, j = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, U = Math.floor((te + de) / 2), oe = xe.slice(0, U);
21635
- if (ce.textContent = oe, te >= de - 1)
21634
+ var te = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, de = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : xe.length, j = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, U = Math.floor((te + de) / 2), re = xe.slice(0, U);
21635
+ if (ce.textContent = re, te >= de - 1)
21636
21636
  for (var Re = de; Re >= te; Re -= 1) {
21637
21637
  var Fe = xe.slice(0, Re);
21638
21638
  if (ce.textContent = Fe, z() || !Fe)
@@ -21667,9 +21667,9 @@ function requireUtil() {
21667
21667
  }
21668
21668
  return Y.some(function(ce, xe) {
21669
21669
  var te = Ce(ce, xe), de = te.finished, j = te.reactNode;
21670
- return j && re.push(j), de;
21670
+ return j && oe.push(j), de;
21671
21671
  }), {
21672
- content: re,
21672
+ content: oe,
21673
21673
  text: f.innerHTML,
21674
21674
  ellipsis: !0
21675
21675
  };
@@ -21684,7 +21684,7 @@ function requireBase() {
21684
21684
  Object.defineProperty(e, "__esModule", {
21685
21685
  value: !0
21686
21686
  }), e.default = void 0;
21687
- var a = o(requireDefineProperty()), s = o(requireToConsumableArray()), l = o(_typeof$2.exports), c = o(require_extends()), u = o(requireClassCallCheck()), d = o(requireCreateClass()), f = o(requireInherits()), p = o(requireCreateSuper()), h = r(React__default), g = o(requireClassnames()), m = o(requireToArray()), I = o(requireCopyToClipboard()), C = o(requireOmit()), b = o(requireEditOutlined()), y = o(requireCheckOutlined()), v = o(requireCopyOutlined()), O = o(require$$18), w = requireConfigProvider(), _ = o(requireLocaleReceiver()), F = o(requireDevWarning()), N = o(requireTransButton()), E = o(requireRaf()), P = requireStyleChecker(), A = o(requireTooltip()), W = o(requireTypography()), J = o(requireEditable()), z = o(requireUtil()), Y = function(Ce, ce) {
21687
+ var a = o(requireDefineProperty()), s = o(requireToConsumableArray()), l = o(_typeof$2.exports), c = o(require_extends()), u = o(requireClassCallCheck()), d = o(requireCreateClass()), f = o(requireInherits()), p = o(requireCreateSuper()), h = r(React__default), g = o(requireClassnames()), m = o(requireToArray()), I = o(requireCopyToClipboard()), C = o(requireOmit()), b = o(requireEditOutlined()), y = o(requireCheckOutlined()), v = o(requireCopyOutlined()), O = o(require$$18), w = requireConfigProvider(), _ = o(requireLocaleReceiver()), A = o(requireDevWarning()), N = o(requireTransButton()), E = o(requireRaf()), P = requireStyleChecker(), F = o(requireTooltip()), W = o(requireTypography()), J = o(requireEditable()), z = o(requireUtil()), Y = function(Ce, ce) {
21688
21688
  var xe = {};
21689
21689
  for (var te in Ce)
21690
21690
  Object.prototype.hasOwnProperty.call(Ce, te) && ce.indexOf(te) < 0 && (xe[te] = Ce[te]);
@@ -21692,13 +21692,13 @@ function requireBase() {
21692
21692
  for (var de = 0, te = Object.getOwnPropertySymbols(Ce); de < te.length; de++)
21693
21693
  ce.indexOf(te[de]) < 0 && Object.prototype.propertyIsEnumerable.call(Ce, te[de]) && (xe[te[de]] = Ce[te[de]]);
21694
21694
  return xe;
21695
- }, Q = (0, P.isStyleSupport)("webkitLineClamp"), re = (0, P.isStyleSupport)("textOverflow");
21695
+ }, Q = (0, P.isStyleSupport)("webkitLineClamp"), oe = (0, P.isStyleSupport)("textOverflow");
21696
21696
  function ee(Ce, ce) {
21697
- var xe = Ce.mark, te = Ce.code, de = Ce.underline, j = Ce.delete, U = Ce.strong, oe = Ce.keyboard, Re = ce;
21697
+ var xe = Ce.mark, te = Ce.code, de = Ce.underline, j = Ce.delete, U = Ce.strong, re = Ce.keyboard, Re = ce;
21698
21698
  function Fe(L, M) {
21699
21699
  !L || (Re = /* @__PURE__ */ h.createElement(M, {}, Re));
21700
21700
  }
21701
- return Fe(U, "strong"), Fe(de, "u"), Fe(j, "del"), Fe(te, "code"), Fe(xe, "mark"), Fe(oe, "kbd"), Re;
21701
+ return Fe(U, "strong"), Fe(de, "u"), Fe(j, "del"), Fe(te, "code"), Fe(xe, "mark"), Fe(re, "kbd"), Re;
21702
21702
  }
21703
21703
  var X = "...", ue = /* @__PURE__ */ function(Ce) {
21704
21704
  (0, f.default)(xe, Ce);
@@ -21730,7 +21730,7 @@ function requireBase() {
21730
21730
  te.triggerEdit(!1);
21731
21731
  }, te.onCopyClick = function(de) {
21732
21732
  de.preventDefault();
21733
- var j = te.props, U = j.children, oe = j.copyable, Re = (0, c.default)({}, (0, l.default)(oe) === "object" ? oe : null);
21733
+ var j = te.props, U = j.children, re = j.copyable, Re = (0, c.default)({}, (0, l.default)(re) === "object" ? re : null);
21734
21734
  Re.text === void 0 && (Re.text = String(U)), (0, I.default)(Re.text || ""), te.setState({
21735
21735
  copied: !0
21736
21736
  }, function() {
@@ -21765,8 +21765,8 @@ function requireBase() {
21765
21765
  }, {
21766
21766
  key: "componentDidUpdate",
21767
21767
  value: function(de) {
21768
- var j = this.props.children, U = this.getEllipsis(), oe = this.getEllipsis(de);
21769
- (j !== de.children || U.rows !== oe.rows) && this.resizeOnNextFrame();
21768
+ var j = this.props.children, U = this.getEllipsis(), re = this.getEllipsis(de);
21769
+ (j !== de.children || U.rows !== re.rows) && this.resizeOnNextFrame();
21770
21770
  }
21771
21771
  }, {
21772
21772
  key: "componentWillUnmount",
@@ -21776,10 +21776,10 @@ function requireBase() {
21776
21776
  }, {
21777
21777
  key: "getEditable",
21778
21778
  value: function(de) {
21779
- var j = this.state.edit, U = de || this.props, oe = U.editable;
21780
- return oe ? (0, c.default)({
21779
+ var j = this.state.edit, U = de || this.props, re = U.editable;
21780
+ return re ? (0, c.default)({
21781
21781
  editing: j
21782
- }, (0, l.default)(oe) === "object" ? oe : null) : {
21782
+ }, (0, l.default)(re) === "object" ? re : null) : {
21783
21783
  editing: j
21784
21784
  };
21785
21785
  }
@@ -21795,15 +21795,15 @@ function requireBase() {
21795
21795
  }, {
21796
21796
  key: "canUseCSSEllipsis",
21797
21797
  value: function() {
21798
- var de = this.state.clientRendered, j = this.props, U = j.editable, oe = j.copyable, Re = this.getEllipsis(), Fe = Re.rows, L = Re.expandable, M = Re.suffix, Te = Re.onEllipsis, Ne = Re.tooltip;
21799
- return M || Ne || U || oe || L || !de || Te ? !1 : Fe === 1 ? re : Q;
21798
+ var de = this.state.clientRendered, j = this.props, U = j.editable, re = j.copyable, Re = this.getEllipsis(), Fe = Re.rows, L = Re.expandable, M = Re.suffix, Te = Re.onEllipsis, Ne = Re.tooltip;
21799
+ return M || Ne || U || re || L || !de || Te ? !1 : Fe === 1 ? oe : Q;
21800
21800
  }
21801
21801
  }, {
21802
21802
  key: "syncEllipsis",
21803
21803
  value: function() {
21804
- var de = this.state, j = de.ellipsisText, U = de.isEllipsis, oe = de.expanded, Re = this.getEllipsis(), Fe = Re.rows, L = Re.suffix, M = Re.onEllipsis, Te = this.props.children;
21805
- if (!(!Fe || Fe < 0 || !this.contentRef.current || oe) && !this.canUseCSSEllipsis()) {
21806
- (0, F.default)((0, m.default)(Te).every(function(yt) {
21804
+ var de = this.state, j = de.ellipsisText, U = de.isEllipsis, re = de.expanded, Re = this.getEllipsis(), Fe = Re.rows, L = Re.suffix, M = Re.onEllipsis, Te = this.props.children;
21805
+ if (!(!Fe || Fe < 0 || !this.contentRef.current || re) && !this.canUseCSSEllipsis()) {
21806
+ (0, A.default)((0, m.default)(Te).every(function(yt) {
21807
21807
  return typeof yt == "string";
21808
21808
  }), "Typography", "`ellipsis` should use string as children only.");
21809
21809
  var Ne = (0, z.default)(this.contentRef.current, {
@@ -21820,11 +21820,11 @@ function requireBase() {
21820
21820
  }, {
21821
21821
  key: "renderExpand",
21822
21822
  value: function(de) {
21823
- var j = this.getEllipsis(), U = j.expandable, oe = j.symbol, Re = this.state, Fe = Re.expanded, L = Re.isEllipsis;
21823
+ var j = this.getEllipsis(), U = j.expandable, re = j.symbol, Re = this.state, Fe = Re.expanded, L = Re.isEllipsis;
21824
21824
  if (!U || !de && (Fe || !L))
21825
21825
  return null;
21826
21826
  var M;
21827
- return oe ? M = oe : M = this.expandStr, /* @__PURE__ */ h.createElement("a", {
21827
+ return re ? M = re : M = this.expandStr, /* @__PURE__ */ h.createElement("a", {
21828
21828
  key: "expand",
21829
21829
  className: "".concat(this.getPrefixCls(), "-expand"),
21830
21830
  onClick: this.onExpandClick,
@@ -21836,10 +21836,10 @@ function requireBase() {
21836
21836
  value: function() {
21837
21837
  var de = this.props.editable;
21838
21838
  if (!!de) {
21839
- var j = de.icon, U = de.tooltip, oe = (0, m.default)(U)[0] || this.editStr, Re = typeof oe == "string" ? oe : "";
21840
- return /* @__PURE__ */ h.createElement(A.default, {
21839
+ var j = de.icon, U = de.tooltip, re = (0, m.default)(U)[0] || this.editStr, Re = typeof re == "string" ? re : "";
21840
+ return /* @__PURE__ */ h.createElement(F.default, {
21841
21841
  key: "edit",
21842
- title: U === !1 ? "" : oe
21842
+ title: U === !1 ? "" : re
21843
21843
  }, /* @__PURE__ */ h.createElement(N.default, {
21844
21844
  ref: this.setEditRef,
21845
21845
  className: "".concat(this.getPrefixCls(), "-edit"),
@@ -21855,12 +21855,12 @@ function requireBase() {
21855
21855
  value: function() {
21856
21856
  var de = this.state.copied, j = this.props.copyable;
21857
21857
  if (!!j) {
21858
- var U = this.getPrefixCls(), oe = j.tooltips, Re = (0, m.default)(oe);
21858
+ var U = this.getPrefixCls(), re = j.tooltips, Re = (0, m.default)(re);
21859
21859
  Re.length === 0 && (Re = [this.copyStr, this.copiedStr]);
21860
21860
  var Fe = de ? Re[1] : Re[0], L = typeof Fe == "string" ? Fe : "", M = (0, m.default)(j.icon);
21861
- return /* @__PURE__ */ h.createElement(A.default, {
21861
+ return /* @__PURE__ */ h.createElement(F.default, {
21862
21862
  key: "copy",
21863
- title: oe === !1 ? "" : Fe
21863
+ title: re === !1 ? "" : Fe
21864
21864
  }, /* @__PURE__ */ h.createElement(N.default, {
21865
21865
  className: (0, g.default)("".concat(U, "-copy"), de && "".concat(U, "-copy-success")),
21866
21866
  onClick: this.onCopyClick,
@@ -21871,14 +21871,14 @@ function requireBase() {
21871
21871
  }, {
21872
21872
  key: "renderEditInput",
21873
21873
  value: function() {
21874
- var de = this.props, j = de.children, U = de.className, oe = de.style, Re = this.context.direction, Fe = this.getEditable(), L = Fe.maxLength, M = Fe.autoSize;
21874
+ var de = this.props, j = de.children, U = de.className, re = de.style, Re = this.context.direction, Fe = this.getEditable(), L = Fe.maxLength, M = Fe.autoSize;
21875
21875
  return /* @__PURE__ */ h.createElement(J.default, {
21876
21876
  value: typeof j == "string" ? j : "",
21877
21877
  onSave: this.onEditChange,
21878
21878
  onCancel: this.onEditCancel,
21879
21879
  prefixCls: this.getPrefixCls(),
21880
21880
  className: U,
21881
- style: oe,
21881
+ style: re,
21882
21882
  direction: Re,
21883
21883
  maxLength: L,
21884
21884
  autoSize: M
@@ -21894,13 +21894,13 @@ function requireBase() {
21894
21894
  }, {
21895
21895
  key: "renderContent",
21896
21896
  value: function() {
21897
- var de = this, j = this.state, U = j.ellipsisContent, oe = j.isEllipsis, Re = j.expanded, Fe = this.props, L = Fe.component, M = Fe.children, Te = Fe.className, Ne = Fe.type, tt = Fe.disabled, je = Fe.style, Ge = Y(Fe, ["component", "children", "className", "type", "disabled", "style"]), yt = this.context.direction, Tt = this.getEllipsis(), Ot = Tt.rows, $t = Tt.suffix, Vt = Tt.tooltip, Ct = this.getPrefixCls(), Dt = (0, C.default)(Ge, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, s.default)(w.configConsumerProps))), zt = this.canUseCSSEllipsis(), Ut = Ot === 1 && zt, Kt = Ot && Ot > 1 && zt, Gt = M;
21898
- if (Ot && oe && !Re && !zt) {
21897
+ var de = this, j = this.state, U = j.ellipsisContent, re = j.isEllipsis, Re = j.expanded, Fe = this.props, L = Fe.component, M = Fe.children, Te = Fe.className, Ne = Fe.type, tt = Fe.disabled, je = Fe.style, Ge = Y(Fe, ["component", "children", "className", "type", "disabled", "style"]), yt = this.context.direction, Tt = this.getEllipsis(), Ot = Tt.rows, $t = Tt.suffix, Vt = Tt.tooltip, Ct = this.getPrefixCls(), Dt = (0, C.default)(Ge, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, s.default)(w.configConsumerProps))), zt = this.canUseCSSEllipsis(), Ut = Ot === 1 && zt, Kt = Ot && Ot > 1 && zt, Gt = M;
21898
+ if (Ot && re && !Re && !zt) {
21899
21899
  var fn = Ge.title, nn = fn || "";
21900
21900
  !fn && (typeof M == "string" || typeof M == "number") && (nn = String(M)), nn = nn == null ? void 0 : nn.slice(String(U || "").length), Gt = /* @__PURE__ */ h.createElement(h.Fragment, null, U, /* @__PURE__ */ h.createElement("span", {
21901
21901
  title: nn,
21902
21902
  "aria-hidden": "true"
21903
- }, X), $t), Vt && (Gt = /* @__PURE__ */ h.createElement(A.default, {
21903
+ }, X), $t), Vt && (Gt = /* @__PURE__ */ h.createElement(F.default, {
21904
21904
  title: Vt === !0 ? M : Vt
21905
21905
  }, /* @__PURE__ */ h.createElement("span", null, Gt)));
21906
21906
  } else
@@ -21933,7 +21933,7 @@ function requireBase() {
21933
21933
  key: "getDerivedStateFromProps",
21934
21934
  value: function(de) {
21935
21935
  var j = de.children, U = de.editable;
21936
- return (0, F.default)(!U || typeof j == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
21936
+ return (0, A.default)(!U || typeof j == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
21937
21937
  }
21938
21938
  }]), xe;
21939
21939
  }(h.Component);
@@ -21980,9 +21980,9 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21980
21980
  field: f,
21981
21981
  operator: p,
21982
21982
  manualIds: h
21983
- } = e, [g, m] = useState(!1), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(), [w, _] = useState(0), [F, N] = useState(0), [E, P] = useState(), [A, W] = useState(), [J, z] = useState();
21983
+ } = e, [g, m] = useState(!1), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(), [w, _] = useState(0), [A, N] = useState(0), [E, P] = useState(), [F, W] = useState(), [J, z] = useState();
21984
21984
  useEffect(() => {
21985
- re();
21985
+ oe();
21986
21986
  }, [r, s]);
21987
21987
  async function Y({
21988
21988
  domain: ee,
@@ -22039,7 +22039,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22039
22039
  context: a
22040
22040
  });
22041
22041
  }
22042
- async function re() {
22042
+ async function oe() {
22043
22043
  m(!0);
22044
22044
  let ee, X;
22045
22045
  try {
@@ -22115,18 +22115,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22115
22115
  percent: b,
22116
22116
  measureRef: ee,
22117
22117
  height: w,
22118
- width: F,
22118
+ width: A,
22119
22119
  color: E,
22120
- icon: A,
22120
+ icon: F,
22121
22121
  suffix: d
22122
22122
  }) : /* @__PURE__ */ jsx(CommonIndicator, {
22123
22123
  value: I,
22124
22124
  total: v,
22125
22125
  measureRef: ee,
22126
22126
  height: w,
22127
- width: F,
22127
+ width: A,
22128
22128
  color: E,
22129
- icon: A,
22129
+ icon: F,
22130
22130
  suffix: d
22131
22131
  })
22132
22132
  });
@@ -22325,8 +22325,8 @@ const DefaultGraphOptions = {
22325
22325
  fields: O,
22326
22326
  manualIds: u
22327
22327
  }));
22328
- } catch (F) {
22329
- h("Error fetching graph data values: " + JSON.stringify(F)), f(!1);
22328
+ } catch (A) {
22329
+ h("Error fetching graph data values: " + JSON.stringify(A)), f(!1);
22330
22330
  return;
22331
22331
  }
22332
22332
  try {
@@ -22335,7 +22335,7 @@ const DefaultGraphOptions = {
22335
22335
  return;
22336
22336
  }
22337
22337
  C(w);
22338
- const F = processGraphData({
22338
+ const A = processGraphData({
22339
22339
  ooui: v,
22340
22340
  values: w,
22341
22341
  fields: _,
@@ -22343,9 +22343,9 @@ const DefaultGraphOptions = {
22343
22343
  uninformedString: c
22344
22344
  }
22345
22345
  });
22346
- m(F);
22347
- } catch (F) {
22348
- h("Error processing graph data: " + F), f(!1);
22346
+ m(A);
22347
+ } catch (A) {
22348
+ h("Error processing graph data: " + A), f(!1);
22349
22349
  return;
22350
22350
  }
22351
22351
  f(!1);
@@ -22727,13 +22727,13 @@ const One2manyInput = (e) => {
22727
22727
  } = p || {}, {
22728
22728
  lang: b,
22729
22729
  t: y
22730
- } = useContext(LocaleContext), v = useRef(), [O, w] = useState(!1), [_, F] = useState(!1), [N, E] = useState(), [P, A] = useState(!1), [W, J] = useState(!1), [z, Y] = useState(), [Q, re] = useState([]), [ee, X] = useState(!1), ue = useRef([]), [we, Ce] = useState(), ce = useRef(), {
22730
+ } = useContext(LocaleContext), v = useRef(), [O, w] = useState(!1), [_, A] = useState(!1), [N, E] = useState(), [P, F] = useState(!1), [W, J] = useState(!1), [z, Y] = useState(), [Q, oe] = useState([]), [ee, X] = useState(!1), ue = useRef([]), [we, Ce] = useState(), ce = useRef(), {
22731
22731
  readOnly: xe,
22732
22732
  relation: te,
22733
22733
  context: de,
22734
22734
  domain: j
22735
22735
  } = a, U = a.type === "many2many", {
22736
- id: oe
22736
+ id: re
22737
22737
  } = a, Re = l.filter((_t) => _t.values && _t.operation !== "pendingRemove");
22738
22738
  useEffect(() => {
22739
22739
  l.some((_t) => !_t.values) && L();
@@ -22750,7 +22750,7 @@ const One2manyInput = (e) => {
22750
22750
  await M(), d > Re.length - 1 && d !== 0 && f(0);
22751
22751
  }, M = async () => {
22752
22752
  var _t;
22753
- F(!0), w(!1), E(void 0);
22753
+ A(!0), w(!1), E(void 0);
22754
22754
  try {
22755
22755
  const Ft = await readObjectValues({
22756
22756
  treeFields: s.get("tree").fields,
@@ -22766,7 +22766,7 @@ const One2manyInput = (e) => {
22766
22766
  } catch (Ft) {
22767
22767
  E(Ft);
22768
22768
  } finally {
22769
- F(!1);
22769
+ A(!1);
22770
22770
  }
22771
22771
  };
22772
22772
  async function Te() {
@@ -22779,10 +22779,10 @@ const One2manyInput = (e) => {
22779
22779
  }),
22780
22780
  context: I()
22781
22781
  }),
22782
- widgetFieldName: oe
22782
+ widgetFieldName: re
22783
22783
  })), C && C.length > 0 && (ue.current = ue.current.concat(transformDomainForChildWidget({
22784
22784
  domain: C,
22785
- widgetFieldName: oe
22785
+ widgetFieldName: re
22786
22786
  })));
22787
22787
  }
22788
22788
  const Ne = () => {
@@ -22856,16 +22856,16 @@ const One2manyInput = (e) => {
22856
22856
  }), c === "form" ? yt(() => {
22857
22857
  X(!0), Y({
22858
22858
  defaultValues: Ft
22859
- }), A(!0);
22859
+ }), F(!0);
22860
22860
  }) : (X(!0), Y({
22861
22861
  defaultValues: Ft
22862
- }), A(!0));
22862
+ }), F(!0));
22863
22863
  }, $t = async () => {
22864
22864
  c === "form" ? yt(() => {
22865
22865
  J(!0);
22866
22866
  }) : J(!0);
22867
22867
  }, Vt = async () => {
22868
- F(!0), w(!1), E(void 0);
22868
+ A(!0), w(!1), E(void 0);
22869
22869
  try {
22870
22870
  if (Re[d].id > 0) {
22871
22871
  const _t = l.map((Ft) => Ft.id === Re[d].id ? {
@@ -22878,10 +22878,10 @@ const One2manyInput = (e) => {
22878
22878
  } catch (_t) {
22879
22879
  E(_t);
22880
22880
  }
22881
- f(0), F(!1);
22881
+ f(0), A(!1);
22882
22882
  }, Ct = async () => {
22883
22883
  const _t = Re.filter((Ft) => Q.includes(Ft.id));
22884
- F(!0), w(!1), E(void 0);
22884
+ A(!0), w(!1), E(void 0);
22885
22885
  try {
22886
22886
  const Ft = _t.map((Yt) => Yt.id), Wt = l.filter((Yt) => !(Ft.includes(Yt.id) && Yt.id < 0)).map((Yt) => Ft.includes(Yt.id) ? {
22887
22887
  ...Yt,
@@ -22891,7 +22891,7 @@ const One2manyInput = (e) => {
22891
22891
  } catch (Ft) {
22892
22892
  E(Ft);
22893
22893
  }
22894
- f(0), F(!1);
22894
+ f(0), A(!1);
22895
22895
  }, Dt = (_t, Ft, Wt) => {
22896
22896
  let Yt;
22897
22897
  if (_t)
@@ -22922,14 +22922,14 @@ const One2manyInput = (e) => {
22922
22922
  }
22923
22923
  });
22924
22924
  }
22925
- Fe(Yt), ee || A(!1);
22925
+ Fe(Yt), ee || F(!1);
22926
22926
  }, zt = (_t) => {
22927
22927
  const {
22928
22928
  id: Ft
22929
22929
  } = _t;
22930
- Y(l.find((Wt) => Wt.id === Ft)), X(!1), A(!0);
22930
+ Y(l.find((Wt) => Wt.id === Ft)), X(!1), F(!0);
22931
22931
  }, Ut = async (_t) => {
22932
- F(!0);
22932
+ A(!0);
22933
22933
  let Ft = l;
22934
22934
  const Wt = _t.filter((Yt) => !l.find((en) => en.id === Yt));
22935
22935
  try {
@@ -22962,7 +22962,7 @@ const One2manyInput = (e) => {
22962
22962
  } catch (Yt) {
22963
22963
  E(Yt);
22964
22964
  } finally {
22965
- F(!1);
22965
+ A(!1);
22966
22966
  }
22967
22967
  };
22968
22968
  function Kt() {
@@ -23025,7 +23025,7 @@ const One2manyInput = (e) => {
23025
23025
  showPagination: !1,
23026
23026
  rowSelection: {
23027
23027
  selectedRowKeys: Q,
23028
- onChange: re
23028
+ onChange: oe
23029
23029
  },
23030
23030
  sorter: we,
23031
23031
  onChangeSort: Ce
@@ -23084,7 +23084,7 @@ const One2manyInput = (e) => {
23084
23084
  ...de
23085
23085
  },
23086
23086
  onCancel: () => {
23087
- X(!1), A(!1);
23087
+ X(!1), F(!1);
23088
23088
  },
23089
23089
  readOnly: xe,
23090
23090
  mustClearAfterSave: fn
@@ -26201,19 +26201,19 @@ var isIP = { exports: {} };
26201
26201
  }
26202
26202
  if (!O.ignore_max_length && v.length > C)
26203
26203
  return !1;
26204
- var F = v.split("@"), N = F.pop(), E = N.toLowerCase();
26204
+ var A = v.split("@"), N = A.pop(), E = N.toLowerCase();
26205
26205
  if (O.host_blacklist.includes(E))
26206
26206
  return !1;
26207
- var P = F.join("@");
26207
+ var P = A.join("@");
26208
26208
  if (O.domain_specific_validation && (E === "gmail.com" || E === "googlemail.com")) {
26209
26209
  P = P.toLowerCase();
26210
- var A = P.split("+")[0];
26211
- if (!(0, s.default)(A.replace(/\./g, ""), {
26210
+ var F = P.split("+")[0];
26211
+ if (!(0, s.default)(F.replace(/\./g, ""), {
26212
26212
  min: 6,
26213
26213
  max: 30
26214
26214
  }))
26215
26215
  return !1;
26216
- for (var W = A.split("."), J = 0; J < W.length; J++)
26216
+ for (var W = F.split("."), J = 0; J < W.length; J++)
26217
26217
  if (!h.test(W[J]))
26218
26218
  return !1;
26219
26219
  }
@@ -26238,8 +26238,8 @@ var isIP = { exports: {} };
26238
26238
  }
26239
26239
  if (P[0] === '"')
26240
26240
  return P = P.slice(1, P.length - 1), O.allow_utf8_local_part ? I.test(P) : g.test(P);
26241
- for (var Y = O.allow_utf8_local_part ? m : p, Q = P.split("."), re = 0; re < Q.length; re++)
26242
- if (!Y.test(Q[re]))
26241
+ for (var Y = O.allow_utf8_local_part ? m : p, Q = P.split("."), oe = 0; oe < Q.length; oe++)
26242
+ if (!Y.test(Q[oe]))
26243
26243
  return !1;
26244
26244
  return !(O.blacklisted_chars && P.search(new RegExp("[".concat(O.blacklisted_chars, "]+"), "g")) !== -1);
26245
26245
  }
@@ -26281,17 +26281,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26281
26281
  }
26282
26282
  function h(v, O) {
26283
26283
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(v)))) {
26284
- var w = [], _ = !0, F = !1, N = void 0;
26284
+ var w = [], _ = !0, A = !1, N = void 0;
26285
26285
  try {
26286
26286
  for (var E = v[Symbol.iterator](), P; !(_ = (P = E.next()).done) && (w.push(P.value), !(O && w.length === O)); _ = !0)
26287
26287
  ;
26288
- } catch (A) {
26289
- F = !0, N = A;
26288
+ } catch (F) {
26289
+ A = !0, N = F;
26290
26290
  } finally {
26291
26291
  try {
26292
26292
  !_ && E.return != null && E.return();
26293
26293
  } finally {
26294
- if (F)
26294
+ if (A)
26295
26295
  throw N;
26296
26296
  }
26297
26297
  }
@@ -26330,9 +26330,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26330
26330
  function y(v, O) {
26331
26331
  if ((0, o.default)(v), !v || /[\s<>]/.test(v) || v.indexOf("mailto:") === 0 || (O = (0, l.default)(O, m), O.validate_length && v.length >= 2083) || !O.allow_fragments && v.includes("#") || !O.allow_query_components && (v.includes("?") || v.includes("&")))
26332
26332
  return !1;
26333
- var w, _, F, N, E, P, A, W;
26334
- if (A = v.split("#"), v = A.shift(), A = v.split("?"), v = A.shift(), A = v.split("://"), A.length > 1) {
26335
- if (w = A.shift().toLowerCase(), O.require_valid_protocol && O.protocols.indexOf(w) === -1)
26333
+ var w, _, A, N, E, P, F, W;
26334
+ if (F = v.split("#"), v = F.shift(), F = v.split("?"), v = F.shift(), F = v.split("://"), F.length > 1) {
26335
+ if (w = F.shift().toLowerCase(), O.require_valid_protocol && O.protocols.indexOf(w) === -1)
26336
26336
  return !1;
26337
26337
  } else {
26338
26338
  if (O.require_protocol)
@@ -26340,28 +26340,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26340
26340
  if (v.substr(0, 2) === "//") {
26341
26341
  if (!O.allow_protocol_relative_urls)
26342
26342
  return !1;
26343
- A[0] = v.substr(2);
26343
+ F[0] = v.substr(2);
26344
26344
  }
26345
26345
  }
26346
- if (v = A.join("://"), v === "")
26346
+ if (v = F.join("://"), v === "")
26347
26347
  return !1;
26348
- if (A = v.split("/"), v = A.shift(), v === "" && !O.require_host)
26348
+ if (F = v.split("/"), v = F.shift(), v === "" && !O.require_host)
26349
26349
  return !0;
26350
- if (A = v.split("@"), A.length > 1) {
26351
- if (O.disallow_auth || A[0] === "" || (_ = A.shift(), _.indexOf(":") >= 0 && _.split(":").length > 2))
26350
+ if (F = v.split("@"), F.length > 1) {
26351
+ if (O.disallow_auth || F[0] === "" || (_ = F.shift(), _.indexOf(":") >= 0 && _.split(":").length > 2))
26352
26352
  return !1;
26353
26353
  var J = _.split(":"), z = u(J, 2), Y = z[0], Q = z[1];
26354
26354
  if (Y === "" && Q === "")
26355
26355
  return !1;
26356
26356
  }
26357
- N = A.join("@"), P = null, W = null;
26358
- var re = N.match(I);
26359
- if (re ? (F = "", W = re[1], P = re[2] || null) : (A = N.split(":"), F = A.shift(), A.length && (P = A.join(":"))), P !== null && P.length > 0) {
26357
+ N = F.join("@"), P = null, W = null;
26358
+ var oe = N.match(I);
26359
+ if (oe ? (A = "", W = oe[1], P = oe[2] || null) : (F = N.split(":"), A = F.shift(), F.length && (P = F.join(":"))), P !== null && P.length > 0) {
26360
26360
  if (E = parseInt(P, 10), !/^[0-9]+$/.test(P) || E <= 0 || E > 65535)
26361
26361
  return !1;
26362
26362
  } else if (O.require_port)
26363
26363
  return !1;
26364
- return O.host_whitelist ? b(F, O.host_whitelist) : !(!(0, s.default)(F) && !(0, a.default)(F, O) && (!W || !(0, s.default)(W, 6)) || (F = F || W, O.host_blacklist && b(F, O.host_blacklist)));
26364
+ return O.host_whitelist ? b(A, O.host_whitelist) : !(!(0, s.default)(A) && !(0, a.default)(A, O) && (!W || !(0, s.default)(W, 6)) || (A = A || W, O.host_blacklist && b(A, O.host_blacklist)));
26365
26365
  }
26366
26366
  e.exports = r.default, e.exports.default = r.default;
26367
26367
  })(isURL$1, isURL$1.exports);
@@ -27049,7 +27049,7 @@ const qt = (e) => {
27049
27049
  f(!1);
27050
27050
  }, []), C = useCallback(async ({ key: v }) => {
27051
27051
  try {
27052
- const O = Z(c).find((F) => F.key === v), w = await a({ key: v, title: O.title }), _ = Ht(c, v, w);
27052
+ const O = Z(c).find((A) => A.key === v), w = await a({ key: v, title: O.title }), _ = Ht(c, v, w);
27053
27053
  u(_);
27054
27054
  } catch (O) {
27055
27055
  console.error(O), Ze({ title: "Error", centered: !0, content: jsx(Fragment, { children: JSON.stringify(O, null, 2) }) });
@@ -27057,15 +27057,15 @@ const qt = (e) => {
27057
27057
  }, [c]), b = useCallback((v, O) => {
27058
27058
  v === "left" ? h(O.trim() === "" ? void 0 : O.trim()) : m(O.trim() === "" ? void 0 : O.trim());
27059
27059
  }, []), y = useCallback(({ checkedKeys: v, onItemSelect: O }) => (w, { node: { key: _ } }) => {
27060
- var F;
27061
- O(_, (F = _, !v.includes(F)));
27060
+ var A;
27061
+ O(_, (A = _, !v.includes(A)));
27062
27062
  }, []);
27063
27063
  return jsx(sn, { ...l, showSearch: !0, targetKeys: e, dataSource: Z(c), className: "tree-transfer", render: (v) => v.title, onChange: s, showSelectAll: !0, locale: { itemUnit: S("exportModalItemsUnit", r), itemsUnit: S("exportModalItemsUnit", r), notFoundContent: S("notFoundContent", r), searchPlaceholder: S("searchPlaceholder", r) }, filterOption: Le, onSearch: b, titles: [S("availableFields", r), S("fieldsToExport", r)], children: ({ direction: v, onItemSelect: O, selectedKeys: w }) => {
27064
27064
  if (d)
27065
27065
  return jsx("div", { style: { display: "flex", paddingTop: "2em", justifyContent: "center" }, children: jsx(Spin, {}) });
27066
27066
  if (v === "left") {
27067
27067
  const _ = [...e, ...w];
27068
- return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: _, loadData: C, treeData: Pt({ treeNodes: c, checkedKeys: e, searchText: p }), onCheck: y({ checkedKeys: _, onItemSelect: O }), onSelect: y({ checkedKeys: _, onItemSelect: O }), titleRender: (F) => jsx(Xe, { node: F }) });
27068
+ return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: _, loadData: C, treeData: Pt({ treeNodes: c, checkedKeys: e, searchText: p }), onCheck: y({ checkedKeys: _, onItemSelect: O }), onSelect: y({ checkedKeys: _, onItemSelect: O }), titleRender: (A) => jsx(Xe, { node: A }) });
27069
27069
  }
27070
27070
  return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: w, onCheck: y({ checkedKeys: w, onItemSelect: O }), onSelect: y({ checkedKeys: w, onItemSelect: O }), treeData: Ie({ treeNodes: c, checkedKeys: e, searchText: g }), titleRender: (_) => jsx(Xe, { node: _ }) });
27071
27071
  } });
@@ -27351,8 +27351,8 @@ const qt = (e) => {
27351
27351
  a == null || a(v);
27352
27352
  };
27353
27353
  async function I() {
27354
- const v = await getMimeType(o), O = `data:${v == null ? void 0 : v.mime};base64,${o}`, w = document.createElement("a"), _ = p(c), F = p("name");
27355
- w.href = O, w.download = _ || F, w.click();
27354
+ const v = await getMimeType(o), O = `data:${v == null ? void 0 : v.mime};base64,${o}`, w = document.createElement("a"), _ = p(c), A = p("name");
27355
+ w.href = O, w.download = _ || A, w.click();
27356
27356
  }
27357
27357
  async function C() {
27358
27358
  const v = await getMimeType(o);
@@ -27843,18 +27843,18 @@ function FormActionBar({
27843
27843
  attachments: O,
27844
27844
  formRef: w,
27845
27845
  setFormHasChanges: _,
27846
- searchTreeRef: F,
27846
+ searchTreeRef: A,
27847
27847
  previousView: N,
27848
27848
  setPreviousView: E,
27849
27849
  goToResourceId: P
27850
27850
  } = useContext(ActionViewContext), {
27851
- t: A,
27851
+ t: F,
27852
27852
  lang: W
27853
27853
  } = useContext(LocaleContext), J = useContext(ContentRootContext), {
27854
27854
  processAction: z
27855
27855
  } = J || {}, Y = useContext(TabManagerContext), {
27856
27856
  openRelate: Q,
27857
- openDefaultActionForModel: re
27857
+ openDefaultActionForModel: oe
27858
27858
  } = Y || {};
27859
27859
  function ee(j) {
27860
27860
  if (l) {
@@ -27888,7 +27888,7 @@ function FormActionBar({
27888
27888
  }
27889
27889
  function Ce() {
27890
27890
  showDialog$9({
27891
- confirmMessage: A("confirmRemoveItem"),
27891
+ confirmMessage: F("confirmRemoveItem"),
27892
27892
  lang: W,
27893
27893
  onOk: () => {
27894
27894
  ce();
@@ -27901,7 +27901,7 @@ function FormActionBar({
27901
27901
  model: g,
27902
27902
  ids: [u]
27903
27903
  });
27904
- const j = d == null ? void 0 : d.filter((oe) => oe.id !== u);
27904
+ const j = d == null ? void 0 : d.filter((re) => re.id !== u);
27905
27905
  y == null || y(j);
27906
27906
  let U = 0;
27907
27907
  p > 0 && p <= d.length - 1 && (U = p - 1), j != null && j[U] ? (h == null || h(j == null ? void 0 : j[U].id), f == null || f(U)) : (h == null || h(void 0), f == null || f(void 0));
@@ -27946,33 +27946,33 @@ function FormActionBar({
27946
27946
  disabled: c || v || I || C
27947
27947
  }), /* @__PURE__ */ jsx(ActionButton, {
27948
27948
  icon: /* @__PURE__ */ jsx(SaveOutlined, {}),
27949
- tooltip: A("save"),
27949
+ tooltip: F("save"),
27950
27950
  disabled: !l || te,
27951
27951
  loading: c,
27952
27952
  onClick: s
27953
27953
  }), /* @__PURE__ */ jsx(ActionButton, {
27954
27954
  icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
27955
- tooltip: A("duplicate"),
27955
+ tooltip: F("duplicate"),
27956
27956
  disabled: l || c || u === void 0 || C || v,
27957
27957
  loading: C,
27958
27958
  onClick: xe
27959
27959
  }), /* @__PURE__ */ jsx(ActionButton, {
27960
27960
  icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
27961
- tooltip: A("delete"),
27961
+ tooltip: F("delete"),
27962
27962
  disabled: c || u === void 0 || I || C || v,
27963
27963
  loading: I,
27964
27964
  onClick: Ce
27965
27965
  }), separator$2(), /* @__PURE__ */ jsx(ActionButton, {
27966
27966
  icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
27967
- tooltip: A("showLogs"),
27967
+ tooltip: F("showLogs"),
27968
27968
  disabled: c || u === void 0 || I || C || v,
27969
27969
  loading: !1,
27970
27970
  onClick: () => {
27971
- showLogInfo(g, u, A);
27971
+ showLogInfo(g, u, F);
27972
27972
  }
27973
27973
  }), /* @__PURE__ */ jsx(ActionButton, {
27974
27974
  icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
27975
- tooltip: A("refresh"),
27975
+ tooltip: F("refresh"),
27976
27976
  disabled: c || u === void 0 || I || C || v,
27977
27977
  loading: !1,
27978
27978
  onClick: () => {
@@ -27992,7 +27992,7 @@ function FormActionBar({
27992
27992
  }), separator$2(), /* @__PURE__ */ jsxs(Space, {
27993
27993
  children: [/* @__PURE__ */ jsx(ActionButton, {
27994
27994
  icon: /* @__PURE__ */ jsx(LeftOutlined, {}),
27995
- tooltip: A("previous"),
27995
+ tooltip: F("previous"),
27996
27996
  disabled: te,
27997
27997
  loading: !1,
27998
27998
  onClick: () => {
@@ -28000,7 +28000,7 @@ function FormActionBar({
28000
28000
  }
28001
28001
  }), /* @__PURE__ */ jsx(ActionButton, {
28002
28002
  icon: /* @__PURE__ */ jsx(RightOutlined, {}),
28003
- tooltip: A("next"),
28003
+ tooltip: F("next"),
28004
28004
  disabled: te,
28005
28005
  loading: !1,
28006
28006
  onClick: () => {
@@ -28010,7 +28010,7 @@ function FormActionBar({
28010
28010
  }), separator$2(), /* @__PURE__ */ jsx(DropdownButton, {
28011
28011
  icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
28012
28012
  disabled: te,
28013
- tooltip: A("actions"),
28013
+ tooltip: F("actions"),
28014
28014
  items: e == null ? void 0 : e.action,
28015
28015
  onItemClick: (j) => {
28016
28016
  !j || de(j);
@@ -28018,7 +28018,7 @@ function FormActionBar({
28018
28018
  }), /* @__PURE__ */ jsx(DropdownButton, {
28019
28019
  icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
28020
28020
  disabled: te,
28021
- tooltip: A("reports"),
28021
+ tooltip: F("reports"),
28022
28022
  items: e == null ? void 0 : e.print,
28023
28023
  onItemClick: (j) => {
28024
28024
  !j || de({
@@ -28032,7 +28032,7 @@ function FormActionBar({
28032
28032
  }), /* @__PURE__ */ jsx(DropdownButton, {
28033
28033
  icon: /* @__PURE__ */ jsx(EnterOutlined$3, {}),
28034
28034
  disabled: te,
28035
- tooltip: A("related"),
28035
+ tooltip: F("related"),
28036
28036
  items: e == null ? void 0 : e.relate,
28037
28037
  onItemClick: async (j) => {
28038
28038
  !j || Q({
@@ -28048,7 +28048,7 @@ function FormActionBar({
28048
28048
  attachments: O,
28049
28049
  onAddNewAttachment: () => {
28050
28050
  const j = u, U = g;
28051
- re({
28051
+ oe({
28052
28052
  model: "ir.attachment",
28053
28053
  values: {
28054
28054
  selection_associated_object: `${U},${j}`
@@ -28062,14 +28062,14 @@ function FormActionBar({
28062
28062
  },
28063
28063
  onListAllAttachments: () => {
28064
28064
  const j = u;
28065
- re({
28065
+ oe({
28066
28066
  model: "ir.attachment",
28067
28067
  domain: [["res_model", "=", `${g}`], ["res_id", "=", `${j}`]],
28068
28068
  initialViewType: "tree"
28069
28069
  });
28070
28070
  },
28071
28071
  onViewAttachmentDetails: (j) => {
28072
- re({
28072
+ oe({
28073
28073
  model: "ir.attachment",
28074
28074
  res_id: j.id,
28075
28075
  initialViewType: "form"
@@ -28429,11 +28429,11 @@ const GraphActionView = (e) => {
28429
28429
  setSorter: O = void 0,
28430
28430
  setTotalItems: w = void 0,
28431
28431
  setSearchTreeNameSearch: _ = void 0,
28432
- setTreeIsLoading: F = void 0,
28432
+ setTreeIsLoading: A = void 0,
28433
28433
  limit: N,
28434
28434
  setLimit: E,
28435
28435
  searchParams: P,
28436
- searchValues: A,
28436
+ searchValues: F,
28437
28437
  setSearchValues: W,
28438
28438
  currentView: J
28439
28439
  } = f || {}, [z, Y] = useState(!0);
@@ -28445,7 +28445,7 @@ const GraphActionView = (e) => {
28445
28445
  }, [J]);
28446
28446
  const {
28447
28447
  clear: Q,
28448
- searchFilterLoading: re,
28448
+ searchFilterLoading: oe,
28449
28449
  searchError: ee,
28450
28450
  offset: X,
28451
28451
  tableRefreshing: ue
@@ -28457,7 +28457,7 @@ const GraphActionView = (e) => {
28457
28457
  setSearchValues: W,
28458
28458
  setSearchParams: C,
28459
28459
  setSearchVisible: y,
28460
- setTreeIsLoading: F,
28460
+ setTreeIsLoading: A,
28461
28461
  context: s,
28462
28462
  formView: c,
28463
28463
  treeView: u,
@@ -28489,13 +28489,13 @@ const GraphActionView = (e) => {
28489
28489
  limit: N,
28490
28490
  onClear: Q,
28491
28491
  offset: X,
28492
- isSearching: re,
28492
+ isSearching: oe,
28493
28493
  onSubmit: (we) => {
28494
28494
  Y(!1), C == null || C(we.params), y == null || y(!1);
28495
28495
  },
28496
28496
  searchError: ee,
28497
28497
  searchVisible: b,
28498
- searchValues: A,
28498
+ searchValues: F,
28499
28499
  showLimitOptions: !1
28500
28500
  }), ue ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
28501
28501
  ref: d,
@@ -28626,20 +28626,20 @@ function TreeActionBar(e) {
28626
28626
  setPreviousView: O,
28627
28627
  previousView: w,
28628
28628
  results: _,
28629
- limit: F
28629
+ limit: A
28630
28630
  } = useContext(ActionViewContext), {
28631
28631
  parentContext: N = {},
28632
28632
  treeExpandable: E,
28633
28633
  toolbar: P
28634
28634
  } = e, {
28635
- t: A,
28635
+ t: F,
28636
28636
  lang: W
28637
28637
  } = useContext(LocaleContext), J = useContext(ContentRootContext), {
28638
28638
  processAction: z
28639
- } = J || {}, [Y, Q] = useState(!1), re = y !== void 0 && y.trim().length > 0;
28639
+ } = J || {}, [Y, Q] = useState(!1), oe = y !== void 0 && y.trim().length > 0;
28640
28640
  function ee() {
28641
28641
  showDialog$9({
28642
- confirmMessage: A("confirmRemove"),
28642
+ confirmMessage: F("confirmRemove"),
28643
28643
  lang: W,
28644
28644
  onOk: () => {
28645
28645
  X();
@@ -28709,13 +28709,13 @@ function TreeActionBar(e) {
28709
28709
  disabled: v
28710
28710
  }), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
28711
28711
  icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
28712
- tooltip: A("duplicate"),
28712
+ tooltip: F("duplicate"),
28713
28713
  disabled: !s || (s == null ? void 0 : s.length) !== 1 || u || v,
28714
28714
  loading: u,
28715
28715
  onClick: ue
28716
28716
  }), /* @__PURE__ */ jsx(ActionButton, {
28717
28717
  icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
28718
- tooltip: A("delete"),
28718
+ tooltip: F("delete"),
28719
28719
  disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
28720
28720
  loading: c,
28721
28721
  onClick: ee
@@ -28726,7 +28726,7 @@ function TreeActionBar(e) {
28726
28726
  color: I ? "white" : void 0
28727
28727
  }
28728
28728
  }),
28729
- tooltip: A("advanced_search"),
28729
+ tooltip: F("advanced_search"),
28730
28730
  type: I ? "primary" : "default",
28731
28731
  onClick: () => {
28732
28732
  C == null || C(!I);
@@ -28735,15 +28735,15 @@ function TreeActionBar(e) {
28735
28735
  badgeNumber: m == null ? void 0 : m.length
28736
28736
  }), /* @__PURE__ */ jsx(ActionButton, {
28737
28737
  icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
28738
- tooltip: A("showLogs"),
28738
+ tooltip: F("showLogs"),
28739
28739
  disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
28740
28740
  loading: !1,
28741
28741
  onClick: () => {
28742
- showLogInfo(f, s[0].id, A);
28742
+ showLogInfo(f, s[0].id, F);
28743
28743
  }
28744
28744
  }), /* @__PURE__ */ jsx(ActionButton, {
28745
28745
  icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
28746
- tooltip: A("refresh"),
28746
+ tooltip: F("refresh"),
28747
28747
  disabled: u || c || v,
28748
28748
  loading: !1,
28749
28749
  onClick: () => {
@@ -28763,7 +28763,7 @@ function TreeActionBar(e) {
28763
28763
  }), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
28764
28764
  icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
28765
28765
  disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
28766
- tooltip: A("actions"),
28766
+ tooltip: F("actions"),
28767
28767
  items: P == null ? void 0 : P.action,
28768
28768
  onItemClick: (ce) => {
28769
28769
  !ce || we(ce);
@@ -28771,7 +28771,7 @@ function TreeActionBar(e) {
28771
28771
  }), /* @__PURE__ */ jsx(DropdownButton, {
28772
28772
  icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
28773
28773
  disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
28774
- tooltip: A("reports"),
28774
+ tooltip: F("reports"),
28775
28775
  items: P == null ? void 0 : P.print,
28776
28776
  onItemClick: (ce) => {
28777
28777
  !ce || we({
@@ -28811,13 +28811,13 @@ function TreeActionBar(e) {
28811
28811
  })]
28812
28812
  })
28813
28813
  }),
28814
- tooltip: A("export"),
28814
+ tooltip: F("export"),
28815
28815
  items: [{
28816
28816
  id: "print_screen",
28817
- name: A("printScreen")
28817
+ name: F("printScreen")
28818
28818
  }, {
28819
28819
  id: "export",
28820
- name: A("advancedExport")
28820
+ name: F("advancedExport")
28821
28821
  }],
28822
28822
  onItemClick: (ce) => {
28823
28823
  if (ce.id === "print_screen") {
@@ -28836,14 +28836,14 @@ function TreeActionBar(e) {
28836
28836
  }
28837
28837
  Q(!0);
28838
28838
  },
28839
- disabled: u || c || v || re
28839
+ disabled: u || c || v || oe
28840
28840
  }), /* @__PURE__ */ jsx(ExportModal, {
28841
28841
  visible: Y,
28842
28842
  locale: W,
28843
28843
  onClose: () => Q(!1),
28844
28844
  model: f,
28845
28845
  domain: mergeParams(((Ce = p == null ? void 0 : p.current) == null ? void 0 : Ce.getDomain()) || [], m || []),
28846
- limit: F,
28846
+ limit: A,
28847
28847
  totalRegisters: (_ == null ? void 0 : _.length) || 0,
28848
28848
  selectedRegistersToExport: s && s.length && s.length > 0 ? s.length : void 0,
28849
28849
  context: N
@@ -29004,9 +29004,9 @@ function ActionView(e, r) {
29004
29004
  action_type: I,
29005
29005
  treeExpandable: C = !1,
29006
29006
  limit: b
29007
- } = e, [y, v] = useState(), [O, w] = useState([]), [_, F] = useState(!0), N = g || void 0, [E, P] = useState(N), [A, W] = useState([]), [J, z] = useState(), [Y, Q] = useState([]), [re, ee] = useState(), [X, ue] = useState(0), [we, Ce] = useState(!1), [ce, xe] = useState(!1), [te, de] = useState(), {
29007
+ } = e, [y, v] = useState(), [O, w] = useState([]), [_, A] = useState(!0), N = g || void 0, [E, P] = useState(N), [F, W] = useState([]), [J, z] = useState(), [Y, Q] = useState([]), [oe, ee] = useState(), [X, ue] = useState(0), [we, Ce] = useState(!1), [ce, xe] = useState(!1), [te, de] = useState(), {
29008
29008
  t: j
29009
- } = useContext(LocaleContext), U = useRef(), oe = useRef(), Re = useContext(TabManagerContext), {
29009
+ } = useContext(LocaleContext), U = useRef(), re = useRef(), Re = useContext(TabManagerContext), {
29010
29010
  setCurrentView: Fe,
29011
29011
  setCurrentId: L,
29012
29012
  tabs: M,
@@ -29026,7 +29026,7 @@ function ActionView(e, r) {
29026
29026
  canWeClose: yt
29027
29027
  }));
29028
29028
  const Ge = async () => {
29029
- F(!0);
29029
+ A(!0);
29030
29030
  const Ct = [];
29031
29031
  for (const zt of l) {
29032
29032
  const [Ut, Kt] = zt;
@@ -29092,7 +29092,7 @@ function ActionView(e, r) {
29092
29092
  }
29093
29093
  let Dt;
29094
29094
  !f && Ct.find((zt) => zt.type === "tree") ? Dt = Ct.find((Ut) => Ut.type === "tree") : f ? Dt = Ct.find((Ut) => f.id ? Ut.type === f.type && Ut.view_id === f.id : Ut.type === f.type) : Dt = Ct.find((Ut) => Ut.type === "form"), Dt || showDialog$8(`Error determining the first view to show.
29095
- Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), je(Dt), w(Ct), F(!1);
29095
+ Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), je(Dt), w(Ct), A(!1);
29096
29096
  };
29097
29097
  u({
29098
29098
  tabKey: d,
@@ -29174,7 +29174,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
29174
29174
  domain: o,
29175
29175
  formView: O.find((Dt) => Dt.type === "form"),
29176
29176
  treeView: Ct,
29177
- searchTreeRef: oe,
29177
+ searchTreeRef: re,
29178
29178
  searchTreeNameSearch: te,
29179
29179
  availableViews: O,
29180
29180
  results: Y,
@@ -29214,7 +29214,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
29214
29214
  setCurrentView: je,
29215
29215
  availableViews: O,
29216
29216
  formRef: U,
29217
- searchTreeRef: oe,
29217
+ searchTreeRef: re,
29218
29218
  onNewClicked: Vt,
29219
29219
  currentId: E,
29220
29220
  setCurrentId: tt,
@@ -29223,11 +29223,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
29223
29223
  results: Y,
29224
29224
  setResults: Q,
29225
29225
  currentModel: a,
29226
- sorter: re,
29226
+ sorter: oe,
29227
29227
  setSorter: ee,
29228
29228
  totalItems: X,
29229
29229
  setTotalItems: ue,
29230
- selectedRowItems: A,
29230
+ selectedRowItems: F,
29231
29231
  setSelectedRowItems: W,
29232
29232
  setSearchTreeNameSearch: de,
29233
29233
  searchTreeNameSearch: te,
@@ -29432,8 +29432,8 @@ function DashboardTree(e) {
29432
29432
  domain: l = [],
29433
29433
  visible: c = !0,
29434
29434
  parentContext: u = {}
29435
- } = e, [d, f] = useState(!1), [p, h] = useState(!1), [g, m] = useState(), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(1), [w, _] = useState(0), F = useRef(DEFAULT_SEARCH_LIMIT), N = useRef([]), [E, P] = useState(0), [A, W] = useState([]), [J, z] = useState(void 0), [Y, Q] = useState(), [re, ee] = useState(), [X, ue] = useState(), [we, Ce] = useState(!1), ce = useRef([]), xe = (L) => {
29436
- Ce(!0), O(L), _((L - 1) * F.current);
29435
+ } = e, [d, f] = useState(!1), [p, h] = useState(!1), [g, m] = useState(), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(1), [w, _] = useState(0), A = useRef(DEFAULT_SEARCH_LIMIT), N = useRef([]), [E, P] = useState(0), [F, W] = useState([]), [J, z] = useState(void 0), [Y, Q] = useState(), [oe, ee] = useState(), [X, ue] = useState(), [we, Ce] = useState(!1), ce = useRef([]), xe = (L) => {
29436
+ Ce(!0), O(L), _((L - 1) * A.current);
29437
29437
  }, te = async () => {
29438
29438
  const L = ce.current.length > 0 ? ce.current : l, M = mergeParams(N.current, L), {
29439
29439
  colors: Te
@@ -29443,7 +29443,7 @@ function DashboardTree(e) {
29443
29443
  attrsEvaluated: je
29444
29444
  } = await ConnectionProvider.getHandler().searchForTree({
29445
29445
  params: M,
29446
- limit: F.current,
29446
+ limit: A.current,
29447
29447
  offset: w,
29448
29448
  model: g,
29449
29449
  fields: I.fields,
@@ -29477,7 +29477,7 @@ function DashboardTree(e) {
29477
29477
  const j = async (L) => {
29478
29478
  h(!1), f(!0), ue(void 0);
29479
29479
  try {
29480
- L === "action" ? await U() : await oe(), h(!0);
29480
+ L === "action" ? await U() : await re(), h(!0);
29481
29481
  } catch (M) {
29482
29482
  ue(M);
29483
29483
  } finally {
@@ -29488,8 +29488,8 @@ function DashboardTree(e) {
29488
29488
  action: r,
29489
29489
  context: u
29490
29490
  });
29491
- ce.current = L.domain, y(L.views.get("form")), C(L.views.get("tree")), m(L.model), F.current = L.limit;
29492
- }, oe = async () => {
29491
+ ce.current = L.domain, y(L.views.get("form")), C(L.views.get("tree")), m(L.model), A.current = L.limit;
29492
+ }, re = async () => {
29493
29493
  m(o);
29494
29494
  const L = await ConnectionProvider.getHandler().getView({
29495
29495
  model: o,
@@ -29521,18 +29521,18 @@ function DashboardTree(e) {
29521
29521
  style: {
29522
29522
  overflowY: "scroll"
29523
29523
  },
29524
- children: [re && /* @__PURE__ */ jsx(Alert, {
29524
+ children: [oe && /* @__PURE__ */ jsx(Alert, {
29525
29525
  className: "mt-10",
29526
- message: re,
29526
+ message: oe,
29527
29527
  type: "error",
29528
29528
  banner: !0
29529
29529
  }), /* @__PURE__ */ jsx(Tree, {
29530
29530
  showPagination: !1,
29531
29531
  total: E,
29532
- limit: F.current,
29532
+ limit: A.current,
29533
29533
  page: v,
29534
29534
  treeView: I,
29535
- results: A,
29535
+ results: F,
29536
29536
  onRequestPageChange: xe,
29537
29537
  loading: we,
29538
29538
  onRowClicked: Re,
@@ -29541,7 +29541,7 @@ function DashboardTree(e) {
29541
29541
  onChangeSort: (L) => {
29542
29542
  Q == null || Q(L);
29543
29543
  const M = sortResults({
29544
- resultsToSort: A,
29544
+ resultsToSort: F,
29545
29545
  sorter: L,
29546
29546
  fields: {
29547
29547
  ...I.fields,
@@ -29613,11 +29613,11 @@ function Dashboard(e, r) {
29613
29613
  async function y() {
29614
29614
  f(!0), g(!0), h(void 0);
29615
29615
  try {
29616
- const E = await v(), P = await w(E), A = E.fields[itemsField].relation, W = P[itemsField].items;
29616
+ const E = await v(), P = await w(E), F = E.fields[itemsField].relation, W = P[itemsField].items;
29617
29617
  b.current = E.fields;
29618
29618
  const J = await O({
29619
29619
  items: W,
29620
- model: A,
29620
+ model: F,
29621
29621
  context: a
29622
29622
  }), z = await _(J);
29623
29623
  u(z), f(!1), g(!1);
@@ -29635,18 +29635,18 @@ function Dashboard(e, r) {
29635
29635
  async function O({
29636
29636
  items: E,
29637
29637
  model: P,
29638
- context: A
29638
+ context: F
29639
29639
  }) {
29640
29640
  return C.current = (await ConnectionProvider.getHandler().getView({
29641
29641
  model: P,
29642
29642
  type: "form",
29643
- context: A
29643
+ context: F
29644
29644
  })).fields, await readObjectValues({
29645
29645
  treeFields: C.current,
29646
29646
  formFields: C.current,
29647
29647
  model: P,
29648
29648
  items: E,
29649
- context: A
29649
+ context: F
29650
29650
  });
29651
29651
  }
29652
29652
  async function w(E) {
@@ -29659,28 +29659,28 @@ function Dashboard(e, r) {
29659
29659
  }
29660
29660
  async function _(E) {
29661
29661
  const P = [];
29662
- for (const A of E) {
29662
+ for (const F of E) {
29663
29663
  const {
29664
29664
  values: W
29665
- } = A;
29665
+ } = F;
29666
29666
  if (W.action_id && W.action_id.length > 0) {
29667
29667
  const J = parseInt(W.action_id[0], 10), z = await fetchAction({
29668
29668
  actionId: J,
29669
29669
  rootContext: a
29670
29670
  });
29671
29671
  P.push({
29672
- ...A,
29672
+ ...F,
29673
29673
  actionData: z
29674
29674
  });
29675
29675
  }
29676
29676
  }
29677
29677
  return P;
29678
29678
  }
29679
- async function F(E) {
29679
+ async function A(E) {
29680
29680
  if (!I)
29681
29681
  return;
29682
29682
  const P = E.filter((z) => {
29683
- const Y = c.find((re) => re.id === z.id);
29683
+ const Y = c.find((oe) => oe.id === z.id);
29684
29684
  if (!Y)
29685
29685
  return !1;
29686
29686
  if (!Y.position)
@@ -29730,10 +29730,10 @@ function Dashboard(e, r) {
29730
29730
  type: "error",
29731
29731
  banner: !0
29732
29732
  }) : d ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
29733
- onPositionItemsChanged: F,
29733
+ onPositionItemsChanged: A,
29734
29734
  children: c.map((E, P) => {
29735
29735
  const {
29736
- actionData: A,
29736
+ actionData: F,
29737
29737
  values: W
29738
29738
  } = E, {
29739
29739
  position: J,
@@ -29741,7 +29741,7 @@ function Dashboard(e, r) {
29741
29741
  } = W, {
29742
29742
  actionId: Y,
29743
29743
  actionType: Q,
29744
- key: re,
29744
+ key: oe,
29745
29745
  title: ee,
29746
29746
  views: X,
29747
29747
  model: ue,
@@ -29749,7 +29749,7 @@ function Dashboard(e, r) {
29749
29749
  domain: Ce,
29750
29750
  initialView: ce,
29751
29751
  limit: xe
29752
- } = A;
29752
+ } = F;
29753
29753
  let te = {};
29754
29754
  try {
29755
29755
  te = JSON.parse(J.replace(/'/g, '"'));
@@ -29762,75 +29762,87 @@ function Dashboard(e, r) {
29762
29762
  };
29763
29763
  }
29764
29764
  let de = null;
29765
- (ce == null ? void 0 : ce.type) === "graph" ? de = /* @__PURE__ */ jsx(Graph, {
29766
- view_id: X.filter((oe) => oe[1] === "graph")[0][0],
29767
- model: ue,
29768
- context: we,
29769
- domain: Ce,
29770
- limit: xe
29771
- }) : (ce == null ? void 0 : ce.type) === "form" ? de = /* @__PURE__ */ jsx(DashboardForm, {
29772
- model: ue,
29773
- actionDomain: Ce
29774
- }) : (ce == null ? void 0 : ce.type) === "tree" ? de = /* @__PURE__ */ jsx(DashboardTree, {
29775
- model: ue,
29776
- domain: Ce,
29777
- view_id: X.filter((oe) => oe[1] === "tree")[0][0],
29778
- onRowClicked: (oe) => {
29779
- const Re = X.find((Fe) => {
29780
- const [, L] = Fe;
29781
- return L === "form";
29782
- });
29783
- if (Re) {
29784
- const [Fe, L] = Re, {
29785
- actionId: M,
29786
- actionType: Te,
29787
- title: Ne,
29788
- model: tt
29789
- } = A, je = {
29790
- action_id: M,
29791
- action_type: Te,
29792
- name: Ne,
29793
- res_id: oe.id,
29794
- res_model: tt,
29795
- view_id: Fe,
29796
- view_type: L
29797
- };
29798
- m(je);
29765
+ if ((ce == null ? void 0 : ce.type) === "graph")
29766
+ de = /* @__PURE__ */ jsx(Graph, {
29767
+ view_id: X.filter((re) => re[1] === "graph")[0][0],
29768
+ model: ue,
29769
+ context: we,
29770
+ domain: Ce,
29771
+ limit: xe
29772
+ });
29773
+ else if ((ce == null ? void 0 : ce.type) === "form")
29774
+ de = /* @__PURE__ */ jsx(DashboardForm, {
29775
+ model: ue,
29776
+ actionDomain: Ce
29777
+ });
29778
+ else if ((ce == null ? void 0 : ce.type) === "tree")
29779
+ de = /* @__PURE__ */ jsx(DashboardTree, {
29780
+ model: ue,
29781
+ domain: Ce,
29782
+ view_id: X.filter((re) => re[1] === "tree")[0][0],
29783
+ onRowClicked: (re) => {
29784
+ const Re = X.find((Fe) => {
29785
+ const [, L] = Fe;
29786
+ return L === "form";
29787
+ });
29788
+ if (Re) {
29789
+ const [Fe, L] = Re, {
29790
+ actionId: M,
29791
+ actionType: Te,
29792
+ title: Ne,
29793
+ model: tt
29794
+ } = F, je = {
29795
+ action_id: M,
29796
+ action_type: Te,
29797
+ name: Ne,
29798
+ res_id: re.id,
29799
+ res_model: tt,
29800
+ view_id: Fe,
29801
+ view_type: L
29802
+ };
29803
+ m(je);
29804
+ }
29799
29805
  }
29800
- }
29801
- }) : ce !== void 0 && (de = /* @__PURE__ */ jsx(ActionView$1, {
29802
- action_id: Y,
29803
- action_type: Q,
29804
- tabKey: re,
29805
- title: ee,
29806
- views: X,
29807
- model: ue,
29808
- context: we,
29809
- domain: Ce,
29810
- setCanWeClose: () => {
29811
- },
29812
- initialView: ce,
29813
- limit: xe
29814
- }));
29806
+ });
29807
+ else if (ce !== void 0) {
29808
+ const re = ce && Array.isArray(ce.id) ? {
29809
+ ...ce,
29810
+ id: ce.id[0]
29811
+ } : ce;
29812
+ de = /* @__PURE__ */ jsx(ActionView$1, {
29813
+ action_id: Y,
29814
+ action_type: Q,
29815
+ tabKey: oe,
29816
+ title: ee,
29817
+ views: X,
29818
+ model: ue,
29819
+ context: we,
29820
+ domain: Ce,
29821
+ setCanWeClose: () => {
29822
+ },
29823
+ initialView: re,
29824
+ limit: xe
29825
+ });
29826
+ }
29815
29827
  let j;
29816
- const U = X.find((oe) => {
29817
- const [, Re] = oe;
29828
+ const U = X.find((re) => {
29829
+ const [, Re] = re;
29818
29830
  return Re === "tree";
29819
29831
  });
29820
29832
  if (U) {
29821
- const [oe, Re] = U, {
29833
+ const [re, Re] = U, {
29822
29834
  actionId: Fe,
29823
29835
  actionType: L,
29824
29836
  title: M,
29825
29837
  model: Te
29826
- } = A;
29838
+ } = F;
29827
29839
  j = {
29828
29840
  action_id: Fe,
29829
29841
  action_type: L,
29830
29842
  name: M,
29831
29843
  res_id: !1,
29832
29844
  res_model: Te,
29833
- view_id: oe,
29845
+ view_id: re,
29834
29846
  view_type: Re
29835
29847
  };
29836
29848
  }
@@ -29895,7 +29907,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
29895
29907
  E = [...E, ...P];
29896
29908
  }
29897
29909
  try {
29898
- const A = (await ConnectionProvider.getHandler().search({
29910
+ const F = (await ConnectionProvider.getHandler().search({
29899
29911
  model: g,
29900
29912
  params: E,
29901
29913
  fields: [C],
@@ -29911,7 +29923,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
29911
29923
  value: W.id
29912
29924
  };
29913
29925
  });
29914
- u(A);
29926
+ u(F);
29915
29927
  } catch (P) {
29916
29928
  f(P);
29917
29929
  } finally {
@@ -29927,7 +29939,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
29927
29939
  }
29928
29940
  const _ = () => {
29929
29941
  N(c.map((E) => E.value));
29930
- }, F = () => {
29942
+ }, A = () => {
29931
29943
  N([]);
29932
29944
  }, N = (E) => {
29933
29945
  const P = s.map((W) => E.includes(W.id) ? W.operation == "pendingRemove" ? {
@@ -29936,8 +29948,8 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
29936
29948
  } : W : {
29937
29949
  id: W.id,
29938
29950
  operation: "pendingRemove"
29939
- }), A = P.map((W) => W.id);
29940
- E.filter((W) => !A.includes(W)).map((W) => {
29951
+ }), F = P.map((W) => W.id);
29952
+ E.filter((W) => !F.includes(W)).map((W) => {
29941
29953
  P.push({
29942
29954
  id: W,
29943
29955
  operation: "pendingLink"
@@ -29969,7 +29981,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
29969
29981
  disabled: l.length == c.length,
29970
29982
  children: "Check all"
29971
29983
  }), /* @__PURE__ */ jsx(Button$1, {
29972
- onClick: F,
29984
+ onClick: A,
29973
29985
  disabled: l.length === 0,
29974
29986
  children: "Uncheck all"
29975
29987
  })]
@@ -30130,7 +30142,7 @@ function RootView(e, r) {
30130
30142
  }));
30131
30143
  function g(w) {
30132
30144
  if (w === c) {
30133
- const _ = d.findIndex((F) => F.key === w);
30145
+ const _ = d.findIndex((A) => A.key === w);
30134
30146
  d[_ - 1] && u(d[_ - 1].key), d[_ + 1] && u(d[_ + 1].key);
30135
30147
  }
30136
30148
  f(d.filter((_) => _.key !== w)), p.current.delete(w);
@@ -30144,38 +30156,38 @@ function RootView(e, r) {
30144
30156
  async function I({
30145
30157
  action: w,
30146
30158
  values: _,
30147
- forced_values: F,
30159
+ forced_values: A,
30148
30160
  initialViewType: N,
30149
30161
  res_id: E,
30150
30162
  domain: P = []
30151
30163
  }) {
30152
- const A = await ConnectionProvider.getHandler().getActionData({
30164
+ const F = await ConnectionProvider.getHandler().getActionData({
30153
30165
  action: w,
30154
30166
  context: s
30155
30167
  });
30156
- if (A.type === "ir.actions.wizard") {
30168
+ if (F.type === "ir.actions.wizard") {
30157
30169
  showDialog$8("Action type not supported");
30158
30170
  return;
30159
30171
  }
30160
30172
  const [W, J] = w.split(","), z = parseInt(J), Y = parseContext({
30161
- context: A.context,
30173
+ context: F.context,
30162
30174
  values: a,
30163
30175
  fields: {}
30164
- }), Q = A.domain ? await ConnectionProvider.getHandler().evalDomain({
30165
- domain: A.domain,
30176
+ }), Q = F.domain ? await ConnectionProvider.getHandler().evalDomain({
30177
+ domain: F.domain,
30166
30178
  values: a,
30167
30179
  context: {
30168
30180
  ...s,
30169
30181
  ...Y
30170
30182
  }
30171
30183
  }) : [], {
30172
- res_model: re,
30184
+ res_model: oe,
30173
30185
  views: ee,
30174
30186
  name: X,
30175
30187
  target: ue,
30176
30188
  view_type: we,
30177
30189
  limit: Ce
30178
- } = A, ce = we === "tree", xe = [];
30190
+ } = F, ce = we === "tree", xe = [];
30179
30191
  for (const de of ee) {
30180
30192
  const [j, U] = de;
30181
30193
  if (j)
@@ -30184,9 +30196,9 @@ function RootView(e, r) {
30184
30196
  xe.push([void 0, "dashboard"]);
30185
30197
  else {
30186
30198
  const {
30187
- view_id: oe
30199
+ view_id: re
30188
30200
  } = await ConnectionProvider.getHandler().getView({
30189
- model: re,
30201
+ model: oe,
30190
30202
  type: U,
30191
30203
  id: j,
30192
30204
  context: {
@@ -30194,12 +30206,12 @@ function RootView(e, r) {
30194
30206
  ...Y
30195
30207
  }
30196
30208
  });
30197
- xe.push([oe, U]);
30209
+ xe.push([re, U]);
30198
30210
  }
30199
30211
  }
30200
30212
  let te;
30201
30213
  if (N) {
30202
- const [de, j] = xe.find(([U, oe]) => oe === N);
30214
+ const [de, j] = xe.find(([U, re]) => re === N);
30203
30215
  te = {
30204
30216
  id: de,
30205
30217
  type: j
@@ -30217,7 +30229,7 @@ function RootView(e, r) {
30217
30229
  ...s,
30218
30230
  ...Y
30219
30231
  },
30220
- model: re,
30232
+ model: oe,
30221
30233
  views: xe,
30222
30234
  title: X,
30223
30235
  target: ue,
@@ -30225,7 +30237,7 @@ function RootView(e, r) {
30225
30237
  action_type: W,
30226
30238
  action_id: z,
30227
30239
  values: _,
30228
- forced_values: F,
30240
+ forced_values: A,
30229
30241
  res_id: E,
30230
30242
  treeExpandable: ce,
30231
30243
  limit: Ce
@@ -30234,40 +30246,40 @@ function RootView(e, r) {
30234
30246
  function C({
30235
30247
  title: w,
30236
30248
  content: _,
30237
- key: F,
30249
+ key: A,
30238
30250
  action: N
30239
30251
  }) {
30240
30252
  let E = [...d];
30241
30253
  d.length === 1 && d[0].key === "welcome" && (E = [...d.filter((P) => P.key !== "welcome")]), f([...E, {
30242
30254
  title: w,
30243
- key: F,
30255
+ key: A,
30244
30256
  closable: !0,
30245
30257
  content: _,
30246
30258
  action: N
30247
- }]), u(F);
30259
+ }]), u(A);
30248
30260
  }
30249
30261
  async function b({
30250
30262
  relateData: w,
30251
30263
  fields: _,
30252
- values: F,
30264
+ values: A,
30253
30265
  action_id: N,
30254
30266
  action_type: E
30255
30267
  }) {
30256
30268
  const {
30257
30269
  res_model: P,
30258
- context: A,
30270
+ context: F,
30259
30271
  domain: W,
30260
30272
  views: J,
30261
30273
  target: z,
30262
30274
  string: Y,
30263
30275
  limit: Q
30264
- } = w, [re, ee] = J[0], X = {
30265
- id: re,
30276
+ } = w, [oe, ee] = J[0], X = {
30277
+ id: oe,
30266
30278
  type: ee
30267
30279
  }, ue = parseContext({
30268
- context: A,
30280
+ context: F,
30269
30281
  values: {
30270
- ...F,
30282
+ ...A,
30271
30283
  ...a
30272
30284
  },
30273
30285
  fields: _
@@ -30276,7 +30288,7 @@ function RootView(e, r) {
30276
30288
  values: transformPlainMany2Ones({
30277
30289
  fields: _,
30278
30290
  values: {
30279
- ...F,
30291
+ ...A,
30280
30292
  ...a
30281
30293
  }
30282
30294
  }),
@@ -30304,18 +30316,18 @@ function RootView(e, r) {
30304
30316
  async function y(w) {
30305
30317
  const {
30306
30318
  action_id: _,
30307
- action_type: F,
30319
+ action_type: A,
30308
30320
  res_id: N,
30309
30321
  view_id: E
30310
- } = w, P = `${F},${_}`, A = await ConnectionProvider.getHandler().getActionData({
30322
+ } = w, P = `${A},${_}`, F = await ConnectionProvider.getHandler().getActionData({
30311
30323
  action: P,
30312
30324
  context: s
30313
30325
  }), W = parseContext({
30314
- context: A.context,
30326
+ context: F.context,
30315
30327
  values: a,
30316
30328
  fields: {}
30317
- }), J = A.domain ? await ConnectionProvider.getHandler().evalDomain({
30318
- domain: A.domain,
30329
+ }), J = F.domain ? await ConnectionProvider.getHandler().evalDomain({
30330
+ domain: F.domain,
30319
30331
  values: a,
30320
30332
  context: {
30321
30333
  ...s,
@@ -30325,10 +30337,10 @@ function RootView(e, r) {
30325
30337
  res_model: z,
30326
30338
  views: Y,
30327
30339
  name: Q,
30328
- target: re,
30340
+ target: oe,
30329
30341
  view_type: ee,
30330
30342
  limit: X
30331
- } = A, ue = ee === "tree", we = [];
30343
+ } = F, ue = ee === "tree", we = [];
30332
30344
  for (const te of Y) {
30333
30345
  const [de, j] = te;
30334
30346
  if (de)
@@ -30369,10 +30381,10 @@ function RootView(e, r) {
30369
30381
  model: z,
30370
30382
  views: we,
30371
30383
  title: Q,
30372
- target: re,
30384
+ target: oe,
30373
30385
  initialView: xe,
30374
30386
  action_id: _,
30375
- action_type: F,
30387
+ action_type: A,
30376
30388
  res_id: N,
30377
30389
  treeExpandable: ue,
30378
30390
  limit: X
@@ -30381,16 +30393,16 @@ function RootView(e, r) {
30381
30393
  async function v({
30382
30394
  model: w,
30383
30395
  values: _,
30384
- forced_values: F,
30396
+ forced_values: A,
30385
30397
  initialViewType: N,
30386
30398
  res_id: E,
30387
30399
  domain: P
30388
30400
  }) {
30389
- const A = await ConnectionProvider.getHandler().getActionStringForModel(w);
30401
+ const F = await ConnectionProvider.getHandler().getActionStringForModel(w);
30390
30402
  await I({
30391
- action: A,
30403
+ action: F,
30392
30404
  values: _,
30393
- forced_values: F,
30405
+ forced_values: A,
30394
30406
  initialViewType: N,
30395
30407
  res_id: E,
30396
30408
  domain: P
@@ -30399,25 +30411,25 @@ function RootView(e, r) {
30399
30411
  async function O({
30400
30412
  domain: w,
30401
30413
  context: _,
30402
- model: F,
30414
+ model: A,
30403
30415
  views: N,
30404
30416
  title: E,
30405
30417
  target: P,
30406
- initialView: A,
30418
+ initialView: F,
30407
30419
  action_id: W,
30408
30420
  action_type: J,
30409
30421
  res_id: z,
30410
30422
  values: Y,
30411
30423
  forced_values: Q,
30412
- treeExpandable: re = !1,
30424
+ treeExpandable: oe = !1,
30413
30425
  limit: ee
30414
30426
  }) {
30415
30427
  const X = v4();
30416
30428
  if (P !== "current") {
30417
30429
  const ue = await ConnectionProvider.getHandler().getView({
30418
- model: F,
30430
+ model: A,
30419
30431
  type: "form",
30420
- id: A.type === "form" ? A.id : void 0,
30432
+ id: F.type === "form" ? F.id : void 0,
30421
30433
  context: {
30422
30434
  ...s,
30423
30435
  ..._
@@ -30425,7 +30437,7 @@ function RootView(e, r) {
30425
30437
  });
30426
30438
  h.current.openActionModal({
30427
30439
  domain: w,
30428
- model: F,
30440
+ model: A,
30429
30441
  formView: ue,
30430
30442
  context: {
30431
30443
  ...s,
@@ -30438,7 +30450,11 @@ function RootView(e, r) {
30438
30450
  view_id: ue.view_id
30439
30451
  }
30440
30452
  });
30441
- } else
30453
+ } else {
30454
+ const ue = F && Array.isArray(F.id) ? {
30455
+ ...F,
30456
+ id: F.id[0]
30457
+ } : F;
30442
30458
  C({
30443
30459
  title: E,
30444
30460
  action: {
@@ -30451,22 +30467,23 @@ function RootView(e, r) {
30451
30467
  tabKey: X,
30452
30468
  title: E,
30453
30469
  views: N,
30454
- model: F,
30470
+ model: A,
30455
30471
  context: {
30456
30472
  ...s,
30457
30473
  ..._
30458
30474
  },
30459
30475
  domain: w,
30460
30476
  setCanWeClose: m,
30461
- initialView: A,
30477
+ initialView: ue,
30462
30478
  res_id: z,
30463
30479
  formDefaultValues: Y,
30464
30480
  formForcedValues: Q,
30465
- treeExpandable: re,
30481
+ treeExpandable: oe,
30466
30482
  limit: ee
30467
30483
  }),
30468
30484
  key: X
30469
30485
  });
30486
+ }
30470
30487
  }
30471
30488
  return /* @__PURE__ */ jsx(LocaleContextProvider, {
30472
30489
  lang: l,
@@ -30609,12 +30626,12 @@ const FavouriteButton = (e) => {
30609
30626
  activeKey: O,
30610
30627
  currentView: w,
30611
30628
  currentId: _,
30612
- openDefaultActionForModel: F
30629
+ openDefaultActionForModel: A
30613
30630
  } = b || {};
30614
30631
  useEffect(() => {
30615
30632
  N();
30616
30633
  }, []), useEffect(() => {
30617
- A();
30634
+ F();
30618
30635
  }, [v, O, w, _]);
30619
30636
  async function N() {
30620
30637
  try {
@@ -30629,21 +30646,21 @@ const FavouriteButton = (e) => {
30629
30646
  }
30630
30647
  function E(Q) {
30631
30648
  const {
30632
- key: re
30633
- } = Q, ee = f.find((X) => X.id === Number(re));
30649
+ key: oe
30650
+ } = Q, ee = f.find((X) => X.id === Number(oe));
30634
30651
  (ee == null ? void 0 : ee.action_type) !== "ir.actions.wizard" && (ee && y(ee), d(!1));
30635
30652
  }
30636
30653
  function P(Q) {
30637
30654
  Q && N(), d(Q);
30638
30655
  }
30639
- async function A() {
30656
+ async function F() {
30640
30657
  if (!w)
30641
30658
  return;
30642
30659
  const Q = v.find((Ce) => Ce.key === O), {
30643
- id: re,
30660
+ id: oe,
30644
30661
  type: ee
30645
30662
  } = (Q == null ? void 0 : Q.action) || {};
30646
- if (!re || !ee) {
30663
+ if (!oe || !ee) {
30647
30664
  c(!1);
30648
30665
  return;
30649
30666
  }
@@ -30651,7 +30668,7 @@ const FavouriteButton = (e) => {
30651
30668
  let ue = !1;
30652
30669
  w.type === "form" && (ue = _ || !1);
30653
30670
  const we = await o({
30654
- action_id: re,
30671
+ action_id: oe,
30655
30672
  action_type: ee,
30656
30673
  view_id: X,
30657
30674
  res_id: ue
@@ -30659,7 +30676,7 @@ const FavouriteButton = (e) => {
30659
30676
  we !== !1 && I(we), c(we !== !1);
30660
30677
  }
30661
30678
  async function W() {
30662
- d(!1), F == null || F({
30679
+ d(!1), A == null || A({
30663
30680
  model: "ir.ui.view_sc"
30664
30681
  });
30665
30682
  }
@@ -30715,7 +30732,7 @@ const FavouriteButton = (e) => {
30715
30732
  });
30716
30733
  function z({
30717
30734
  title: Q,
30718
- type: re
30735
+ type: oe
30719
30736
  }) {
30720
30737
  return /* @__PURE__ */ jsxs(Row, {
30721
30738
  wrap: !1,
@@ -30724,7 +30741,7 @@ const FavouriteButton = (e) => {
30724
30741
  style: {
30725
30742
  paddingRight: 20
30726
30743
  },
30727
- children: re === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
30744
+ children: oe === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
30728
30745
  }), /* @__PURE__ */ jsx(Col, {
30729
30746
  flex: "auto",
30730
30747
  children: Q
@@ -30738,16 +30755,16 @@ const FavouriteButton = (e) => {
30738
30755
  if (!w)
30739
30756
  return;
30740
30757
  const Q = v.find((we) => we.key === O), {
30741
- id: re,
30758
+ id: oe,
30742
30759
  type: ee
30743
30760
  } = (Q == null ? void 0 : Q.action) || {}, X = w.view_id;
30744
30761
  let ue = !1;
30745
- if (!re || !ee) {
30762
+ if (!oe || !ee) {
30746
30763
  c(!1);
30747
30764
  return;
30748
30765
  }
30749
30766
  w.type === "form" && (ue = _ || !1), await a({
30750
- action_id: re,
30767
+ action_id: oe,
30751
30768
  action_type: ee,
30752
30769
  view_id: X,
30753
30770
  res_id: ue