@gisce/react-ooui 1.0.14 → 1.0.16

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.
@@ -4677,14 +4677,14 @@ function requireReactIs_development() {
4677
4677
  case f:
4678
4678
  return X;
4679
4679
  default:
4680
- var ne = X && X.$$typeof;
4681
- switch (ne) {
4680
+ var re = X && X.$$typeof;
4681
+ switch (re) {
4682
4682
  case c:
4683
4683
  case d:
4684
4684
  case g:
4685
4685
  case p:
4686
4686
  case s:
4687
- return ne;
4687
+ return re;
4688
4688
  default:
4689
4689
  return W;
4690
4690
  }
@@ -4694,7 +4694,7 @@ function requireReactIs_development() {
4694
4694
  }
4695
4695
  }
4696
4696
  }
4697
- var w = l, O = u, _ = c, b = s, T = t, F = d, k = r, $ = g, D = p, P = n, M = a, q = o, j = f, L = !1;
4697
+ var w = l, O = u, _ = c, b = s, T = t, F = d, k = r, $ = g, D = p, P = n, M = a, j = o, q = f, L = !1;
4698
4698
  function H(S) {
4699
4699
  return L || (L = !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.")), K(S) || C(S) === l;
4700
4700
  }
@@ -4734,7 +4734,7 @@ function requireReactIs_development() {
4734
4734
  function E(S) {
4735
4735
  return C(S) === f;
4736
4736
  }
4737
- reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = _, reactIs_development.ContextProvider = b, reactIs_development.Element = T, reactIs_development.ForwardRef = F, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = P, reactIs_development.Profiler = M, reactIs_development.StrictMode = q, reactIs_development.Suspense = j, reactIs_development.isAsyncMode = H, reactIs_development.isConcurrentMode = K, reactIs_development.isContextConsumer = G, reactIs_development.isContextProvider = z, reactIs_development.isElement = V, reactIs_development.isForwardRef = U, reactIs_development.isFragment = Y, reactIs_development.isLazy = B, reactIs_development.isMemo = A, reactIs_development.isPortal = N, reactIs_development.isProfiler = Z, reactIs_development.isStrictMode = Q, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = y, reactIs_development.typeOf = C;
4737
+ reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = _, reactIs_development.ContextProvider = b, reactIs_development.Element = T, reactIs_development.ForwardRef = F, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = P, reactIs_development.Profiler = M, reactIs_development.StrictMode = j, reactIs_development.Suspense = q, reactIs_development.isAsyncMode = H, reactIs_development.isConcurrentMode = K, reactIs_development.isContextConsumer = G, reactIs_development.isContextProvider = z, reactIs_development.isElement = V, reactIs_development.isForwardRef = U, reactIs_development.isFragment = Y, reactIs_development.isLazy = B, reactIs_development.isMemo = A, reactIs_development.isPortal = N, reactIs_development.isProfiler = Z, reactIs_development.isStrictMode = Q, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = y, reactIs_development.typeOf = C;
4738
4738
  }()), reactIs_development;
4739
4739
  }
4740
4740
  var hasRequiredReactIs;
@@ -6400,7 +6400,7 @@ function requireAntdIcon() {
6400
6400
  var M = w ? {
6401
6401
  msTransform: "rotate(".concat(w, "deg)"),
6402
6402
  transform: "rotate(".concat(w, "deg)")
6403
- } : void 0, q = (0, f.normalizeTwoToneColors)(b), j = (0, r.default)(q, 2), L = j[0], H = j[1];
6403
+ } : void 0, j = (0, f.normalizeTwoToneColors)(b), q = (0, r.default)(j, 2), L = q[0], H = q[1];
6404
6404
  return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
6405
6405
  role: "img",
6406
6406
  "aria-label": y.name
@@ -6579,12 +6579,12 @@ function requireRegeneratorRuntime() {
6579
6579
  try {
6580
6580
  d({}, "");
6581
6581
  } catch {
6582
- d = function(M, q, j) {
6583
- return M[q] = j;
6582
+ d = function(M, j, q) {
6583
+ return M[j] = q;
6584
6584
  };
6585
6585
  }
6586
- function f(D, P, M, q) {
6587
- var j = P && P.prototype instanceof g ? P : g, L = Object.create(j.prototype), H = new F(q || []);
6586
+ function f(D, P, M, j) {
6587
+ var q = P && P.prototype instanceof g ? P : g, L = Object.create(q.prototype), H = new F(j || []);
6588
6588
  return L._invoke = function(K, G, z) {
6589
6589
  var V = "suspendedStart";
6590
6590
  return function(U, Y) {
@@ -6634,10 +6634,10 @@ function requireRegeneratorRuntime() {
6634
6634
  type: "normal",
6635
6635
  arg: D.call(P, M)
6636
6636
  };
6637
- } catch (q) {
6637
+ } catch (j) {
6638
6638
  return {
6639
6639
  type: "throw",
6640
- arg: q
6640
+ arg: j
6641
6641
  };
6642
6642
  }
6643
6643
  }
@@ -6664,8 +6664,8 @@ function requireRegeneratorRuntime() {
6664
6664
  });
6665
6665
  }
6666
6666
  function O(D, P) {
6667
- function M(j, L, H, K) {
6668
- var G = h(D[j], D, L);
6667
+ function M(q, L, H, K) {
6668
+ var G = h(D[q], D, L);
6669
6669
  if (G.type !== "throw") {
6670
6670
  var z = G.arg, V = z.value;
6671
6671
  return V && t(V) == "object" && a.call(V, "__await") ? P.resolve(V.__await).then(function(U) {
@@ -6680,14 +6680,14 @@ function requireRegeneratorRuntime() {
6680
6680
  }
6681
6681
  K(G.arg);
6682
6682
  }
6683
- var q;
6684
- this._invoke = function(j, L) {
6683
+ var j;
6684
+ this._invoke = function(q, L) {
6685
6685
  function H() {
6686
6686
  return new P(function(K, G) {
6687
- M(j, L, K, G);
6687
+ M(q, L, K, G);
6688
6688
  });
6689
6689
  }
6690
- return q = q ? q.then(H, H) : H();
6690
+ return j = j ? j.then(H, H) : H();
6691
6691
  };
6692
6692
  }
6693
6693
  function _(D, P) {
@@ -6700,11 +6700,11 @@ function requireRegeneratorRuntime() {
6700
6700
  }
6701
6701
  return p;
6702
6702
  }
6703
- var q = h(M, D.iterator, P.arg);
6704
- if (q.type === "throw")
6705
- return P.method = "throw", P.arg = q.arg, P.delegate = null, p;
6706
- var j = q.arg;
6707
- return j ? j.done ? (P[D.resultName] = j.value, P.next = D.nextLoc, P.method !== "return" && (P.method = "next", P.arg = void 0), P.delegate = null, p) : j : (P.method = "throw", P.arg = new TypeError("iterator result is not an object"), P.delegate = null, p);
6703
+ var j = h(M, D.iterator, P.arg);
6704
+ if (j.type === "throw")
6705
+ return P.method = "throw", P.arg = j.arg, P.delegate = null, p;
6706
+ var q = j.arg;
6707
+ return q ? q.done ? (P[D.resultName] = q.value, P.next = D.nextLoc, P.method !== "return" && (P.method = "next", P.arg = void 0), P.delegate = null, p) : q : (P.method = "throw", P.arg = new TypeError("iterator result is not an object"), P.delegate = null, p);
6708
6708
  }
6709
6709
  function b(D) {
6710
6710
  var P = {
@@ -6729,13 +6729,13 @@ function requireRegeneratorRuntime() {
6729
6729
  if (typeof D.next == "function")
6730
6730
  return D;
6731
6731
  if (!isNaN(D.length)) {
6732
- var M = -1, q = function j() {
6732
+ var M = -1, j = function q() {
6733
6733
  for (; ++M < D.length; )
6734
6734
  if (a.call(D, M))
6735
- return j.value = D[M], j.done = !1, j;
6736
- return j.value = void 0, j.done = !0, j;
6735
+ return q.value = D[M], q.done = !1, q;
6736
+ return q.value = void 0, q.done = !0, q;
6737
6737
  };
6738
- return q.next = q;
6738
+ return j.next = j;
6739
6739
  }
6740
6740
  }
6741
6741
  return {
@@ -6759,9 +6759,9 @@ function requireRegeneratorRuntime() {
6759
6759
  };
6760
6760
  }, w(O.prototype), d(O.prototype, l, function() {
6761
6761
  return this;
6762
- }), r.AsyncIterator = O, r.async = function(D, P, M, q, j) {
6763
- j === void 0 && (j = Promise);
6764
- var L = new O(f(D, P, M, q), j);
6762
+ }), r.AsyncIterator = O, r.async = function(D, P, M, j, q) {
6763
+ q === void 0 && (q = Promise);
6764
+ var L = new O(f(D, P, M, j), q);
6765
6765
  return r.isGeneratorFunction(P) ? L : L.next().then(function(H) {
6766
6766
  return H.done ? H.value : L.next();
6767
6767
  });
@@ -6773,13 +6773,13 @@ function requireRegeneratorRuntime() {
6773
6773
  var P = [];
6774
6774
  for (var M in D)
6775
6775
  P.push(M);
6776
- return P.reverse(), function q() {
6776
+ return P.reverse(), function j() {
6777
6777
  for (; P.length; ) {
6778
- var j = P.pop();
6779
- if (j in D)
6780
- return q.value = j, q.done = !1, q;
6778
+ var q = P.pop();
6779
+ if (q in D)
6780
+ return j.value = q, j.done = !1, j;
6781
6781
  }
6782
- return q.done = !0, q;
6782
+ return j.done = !0, j;
6783
6783
  };
6784
6784
  }, r.values = k, F.prototype = {
6785
6785
  constructor: F,
@@ -6799,37 +6799,37 @@ function requireRegeneratorRuntime() {
6799
6799
  if (this.done)
6800
6800
  throw P;
6801
6801
  var M = this;
6802
- function q(z, V) {
6802
+ function j(z, V) {
6803
6803
  return H.type = "throw", H.arg = P, M.next = z, V && (M.method = "next", M.arg = void 0), !!V;
6804
6804
  }
6805
- for (var j = this.tryEntries.length - 1; j >= 0; --j) {
6806
- var L = this.tryEntries[j], H = L.completion;
6805
+ for (var q = this.tryEntries.length - 1; q >= 0; --q) {
6806
+ var L = this.tryEntries[q], H = L.completion;
6807
6807
  if (L.tryLoc === "root")
6808
- return q("end");
6808
+ return j("end");
6809
6809
  if (L.tryLoc <= this.prev) {
6810
6810
  var K = a.call(L, "catchLoc"), G = a.call(L, "finallyLoc");
6811
6811
  if (K && G) {
6812
6812
  if (this.prev < L.catchLoc)
6813
- return q(L.catchLoc, !0);
6813
+ return j(L.catchLoc, !0);
6814
6814
  if (this.prev < L.finallyLoc)
6815
- return q(L.finallyLoc);
6815
+ return j(L.finallyLoc);
6816
6816
  } else if (K) {
6817
6817
  if (this.prev < L.catchLoc)
6818
- return q(L.catchLoc, !0);
6818
+ return j(L.catchLoc, !0);
6819
6819
  } else {
6820
6820
  if (!G)
6821
6821
  throw new Error("try statement without catch or finally");
6822
6822
  if (this.prev < L.finallyLoc)
6823
- return q(L.finallyLoc);
6823
+ return j(L.finallyLoc);
6824
6824
  }
6825
6825
  }
6826
6826
  }
6827
6827
  },
6828
6828
  abrupt: function(P, M) {
6829
- for (var q = this.tryEntries.length - 1; q >= 0; --q) {
6830
- var j = this.tryEntries[q];
6831
- if (j.tryLoc <= this.prev && a.call(j, "finallyLoc") && this.prev < j.finallyLoc) {
6832
- var L = j;
6829
+ for (var j = this.tryEntries.length - 1; j >= 0; --j) {
6830
+ var q = this.tryEntries[j];
6831
+ if (q.tryLoc <= this.prev && a.call(q, "finallyLoc") && this.prev < q.finallyLoc) {
6832
+ var L = q;
6833
6833
  break;
6834
6834
  }
6835
6835
  }
@@ -6844,30 +6844,30 @@ function requireRegeneratorRuntime() {
6844
6844
  },
6845
6845
  finish: function(P) {
6846
6846
  for (var M = this.tryEntries.length - 1; M >= 0; --M) {
6847
- var q = this.tryEntries[M];
6848
- if (q.finallyLoc === P)
6849
- return this.complete(q.completion, q.afterLoc), T(q), p;
6847
+ var j = this.tryEntries[M];
6848
+ if (j.finallyLoc === P)
6849
+ return this.complete(j.completion, j.afterLoc), T(j), p;
6850
6850
  }
6851
6851
  },
6852
6852
  catch: function(P) {
6853
6853
  for (var M = this.tryEntries.length - 1; M >= 0; --M) {
6854
- var q = this.tryEntries[M];
6855
- if (q.tryLoc === P) {
6856
- var j = q.completion;
6857
- if (j.type === "throw") {
6858
- var L = j.arg;
6859
- T(q);
6854
+ var j = this.tryEntries[M];
6855
+ if (j.tryLoc === P) {
6856
+ var q = j.completion;
6857
+ if (q.type === "throw") {
6858
+ var L = q.arg;
6859
+ T(j);
6860
6860
  }
6861
6861
  return L;
6862
6862
  }
6863
6863
  }
6864
6864
  throw new Error("illegal catch attempt");
6865
6865
  },
6866
- delegateYield: function(P, M, q) {
6866
+ delegateYield: function(P, M, j) {
6867
6867
  return this.delegate = {
6868
6868
  iterator: k(P),
6869
6869
  resultName: M,
6870
- nextLoc: q
6870
+ nextLoc: j
6871
6871
  }, this.method === "next" && (this.arg = void 0), p;
6872
6872
  }
6873
6873
  }, r;
@@ -8732,13 +8732,13 @@ var FormContext = /* @__PURE__ */ React.createContext({
8732
8732
  T(o, !D.current), D.current || (D.current = !0);
8733
8733
  var P = l, M = typeof l == "function";
8734
8734
  if (M) {
8735
- var q = O.getFieldsValue(!0);
8736
- P = l(q, O);
8735
+ var j = O.getFieldsValue(!0);
8736
+ P = l(j, O);
8737
8737
  }
8738
8738
  b(!M);
8739
- var j = React.useRef();
8739
+ var q = React.useRef();
8740
8740
  React.useEffect(function() {
8741
- isSimilar(j.current || [], a || []) || O.setFields(a || []), j.current = a;
8741
+ isSimilar(q.current || [], a || []) || O.setFields(a || []), q.current = a;
8742
8742
  }, [a, O]);
8743
8743
  var L = React.useMemo(function() {
8744
8744
  return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
@@ -9313,18 +9313,18 @@ function requireEmpty() {
9313
9313
  return /* @__PURE__ */ a.createElement(l.default, {
9314
9314
  componentName: "Empty"
9315
9315
  }, function(D) {
9316
- var P, M = k("empty", y), q = typeof O < "u" ? O : D.description, j = typeof q == "string" ? q : "empty", L = null;
9316
+ var P, M = k("empty", y), j = typeof O < "u" ? O : D.description, q = typeof j == "string" ? j : "empty", L = null;
9317
9317
  return typeof w == "string" ? L = /* @__PURE__ */ a.createElement("img", {
9318
- alt: j,
9318
+ alt: q,
9319
9319
  src: w
9320
9320
  }) : L = w, /* @__PURE__ */ a.createElement("div", (0, r.default)({
9321
9321
  className: (0, s.default)(M, (P = {}, (0, o.default)(P, "".concat(M, "-normal"), w === p), (0, o.default)(P, "".concat(M, "-rtl"), $ === "rtl"), P), m)
9322
9322
  }, T), /* @__PURE__ */ a.createElement("div", {
9323
9323
  className: "".concat(M, "-image"),
9324
9324
  style: b
9325
- }, L), q && /* @__PURE__ */ a.createElement("div", {
9325
+ }, L), j && /* @__PURE__ */ a.createElement("div", {
9326
9326
  className: "".concat(M, "-description")
9327
- }, q), _ && /* @__PURE__ */ a.createElement("div", {
9327
+ }, j), _ && /* @__PURE__ */ a.createElement("div", {
9328
9328
  className: "".concat(M, "-footer")
9329
9329
  }, _));
9330
9330
  });
@@ -9557,55 +9557,55 @@ const useStepQueue = function(e, t) {
9557
9557
  }, []), [a, o];
9558
9558
  };
9559
9559
  function useStatus(e, t, n, r) {
9560
- var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, I = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, w = r.onAppearEnd, O = r.onEnterEnd, _ = r.onLeaveEnd, b = r.onVisibleChanged, T = useMountStatus(), F = _slicedToArray(T, 2), k = F[0], $ = F[1], D = useMountStatus(STATUS_NONE), P = _slicedToArray(D, 2), M = P[0], q = P[1], j = useMountStatus(null), L = _slicedToArray(j, 2), H = L[0], K = L[1], G = useRef(!1), z = useRef(null), V = useRef(!1), U = useRef(null);
9560
+ var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, I = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, w = r.onAppearEnd, O = r.onEnterEnd, _ = r.onLeaveEnd, b = r.onVisibleChanged, T = useMountStatus(), F = _slicedToArray(T, 2), k = F[0], $ = F[1], D = useMountStatus(STATUS_NONE), P = _slicedToArray(D, 2), M = P[0], j = P[1], q = useMountStatus(null), L = _slicedToArray(q, 2), H = L[0], K = L[1], G = useRef(!1), z = useRef(null), V = useRef(!1), U = useRef(null);
9561
9561
  function Y() {
9562
- var le = n();
9563
- return le || U.current;
9562
+ var ce = n();
9563
+ return ce || U.current;
9564
9564
  }
9565
9565
  var B = useRef(!1);
9566
- function A(le) {
9567
- var ue = Y();
9568
- if (!(le && !le.deadline && le.target !== ue)) {
9569
- var se;
9570
- M === STATUS_APPEAR && B.current ? se = w == null ? void 0 : w(ue, le) : M === STATUS_ENTER && B.current ? se = O == null ? void 0 : O(ue, le) : M === STATUS_LEAVE && B.current && (se = _ == null ? void 0 : _(ue, le)), se !== !1 && !V.current && (q(STATUS_NONE), K(null));
9566
+ function A(ce) {
9567
+ var de = Y();
9568
+ if (!(ce && !ce.deadline && ce.target !== de)) {
9569
+ var ae;
9570
+ M === STATUS_APPEAR && B.current ? ae = w == null ? void 0 : w(de, ce) : M === STATUS_ENTER && B.current ? ae = O == null ? void 0 : O(de, ce) : M === STATUS_LEAVE && B.current && (ae = _ == null ? void 0 : _(de, ce)), ae !== !1 && !V.current && (j(STATUS_NONE), K(null));
9571
9571
  }
9572
9572
  }
9573
9573
  var N = useDomMotionEvents(A), Z = _slicedToArray(N, 1), Q = Z[0], E = React.useMemo(function() {
9574
- var le, ue, se;
9574
+ var ce, de, ae;
9575
9575
  switch (M) {
9576
9576
  case "appear":
9577
- return le = {}, _defineProperty$1(le, STEP_PREPARE, h), _defineProperty$1(le, STEP_START, v), _defineProperty$1(le, STEP_ACTIVE, m), le;
9577
+ return ce = {}, _defineProperty$1(ce, STEP_PREPARE, h), _defineProperty$1(ce, STEP_START, v), _defineProperty$1(ce, STEP_ACTIVE, m), ce;
9578
9578
  case "enter":
9579
- return ue = {}, _defineProperty$1(ue, STEP_PREPARE, p), _defineProperty$1(ue, STEP_START, x), _defineProperty$1(ue, STEP_ACTIVE, y), ue;
9579
+ return de = {}, _defineProperty$1(de, STEP_PREPARE, p), _defineProperty$1(de, STEP_START, x), _defineProperty$1(de, STEP_ACTIVE, y), de;
9580
9580
  case "leave":
9581
- return se = {}, _defineProperty$1(se, STEP_PREPARE, g), _defineProperty$1(se, STEP_START, I), _defineProperty$1(se, STEP_ACTIVE, C), se;
9581
+ return ae = {}, _defineProperty$1(ae, STEP_PREPARE, g), _defineProperty$1(ae, STEP_START, I), _defineProperty$1(ae, STEP_ACTIVE, C), ae;
9582
9582
  default:
9583
9583
  return {};
9584
9584
  }
9585
- }, [M]), S = useStepQueue(M, function(le) {
9586
- if (le === STEP_PREPARE) {
9587
- var ue = E[STEP_PREPARE];
9588
- return ue ? ue(Y()) : SkipStep;
9585
+ }, [M]), S = useStepQueue(M, function(ce) {
9586
+ if (ce === STEP_PREPARE) {
9587
+ var de = E[STEP_PREPARE];
9588
+ return de ? de(Y()) : SkipStep;
9589
9589
  }
9590
- if (ne in E) {
9591
- var se;
9592
- K(((se = E[ne]) === null || se === void 0 ? void 0 : se.call(E, Y(), null)) || null);
9590
+ if (re in E) {
9591
+ var ae;
9592
+ K(((ae = E[re]) === null || ae === void 0 ? void 0 : ae.call(E, Y(), null)) || null);
9593
9593
  }
9594
- return ne === STEP_ACTIVE && (Q(Y()), d > 0 && (clearTimeout(z.current), z.current = setTimeout(function() {
9594
+ return re === STEP_ACTIVE && (Q(Y()), d > 0 && (clearTimeout(z.current), z.current = setTimeout(function() {
9595
9595
  A({
9596
9596
  deadline: !0
9597
9597
  });
9598
9598
  }, d))), DoStep;
9599
- }), W = _slicedToArray(S, 2), X = W[0], ne = W[1], ee = isActive(ne);
9599
+ }), W = _slicedToArray(S, 2), X = W[0], re = W[1], ee = isActive(re);
9600
9600
  B.current = ee, useIsomorphicLayoutEffect(function() {
9601
9601
  if ($(t), !!e) {
9602
- var le = G.current;
9602
+ var ce = G.current;
9603
9603
  G.current = !0;
9604
- var ue;
9605
- !le && t && c && (ue = STATUS_APPEAR), le && t && a && (ue = STATUS_ENTER), (le && !t && u || !le && f && !t && u) && (ue = STATUS_LEAVE), ue && (q(ue), X());
9604
+ var de;
9605
+ !ce && t && c && (de = STATUS_APPEAR), ce && t && a && (de = STATUS_ENTER), (ce && !t && u || !ce && f && !t && u) && (de = STATUS_LEAVE), de && (j(de), X());
9606
9606
  }
9607
9607
  }, [t]), useEffect(function() {
9608
- (M === STATUS_APPEAR && !c || M === STATUS_ENTER && !a || M === STATUS_LEAVE && !u) && q(STATUS_NONE);
9608
+ (M === STATUS_APPEAR && !c || M === STATUS_ENTER && !a || M === STATUS_LEAVE && !u) && j(STATUS_NONE);
9609
9609
  }, [c, a, u]), useEffect(function() {
9610
9610
  return function() {
9611
9611
  clearTimeout(z.current), V.current = !0;
@@ -9614,9 +9614,9 @@ function useStatus(e, t, n, r) {
9614
9614
  k !== void 0 && M === STATUS_NONE && (b == null || b(k));
9615
9615
  }, [k, M]);
9616
9616
  var oe = H;
9617
- return E[STEP_PREPARE] && ne === STEP_START && (oe = _objectSpread2$1({
9617
+ return E[STEP_PREPARE] && re === STEP_START && (oe = _objectSpread2$1({
9618
9618
  transition: "none"
9619
- }, oe)), [M, ne, oe, k != null ? k : t];
9619
+ }, oe)), [M, re, oe, k != null ? k : t];
9620
9620
  }
9621
9621
  var DomWrapper = /* @__PURE__ */ function(e) {
9622
9622
  _inherits(n, e);
@@ -10337,11 +10337,11 @@ function requireUseMessage() {
10337
10337
  d((0, r.default)((0, r.default)({}, _), {
10338
10338
  prefixCls: T
10339
10339
  }), function(M) {
10340
- var q = M.prefixCls, j = M.instance;
10341
- v = j, y(f((0, r.default)((0, r.default)({}, _), {
10340
+ var j = M.prefixCls, q = M.instance;
10341
+ v = q, y(f((0, r.default)((0, r.default)({}, _), {
10342
10342
  key: F,
10343
10343
  onClose: P
10344
- }), q));
10344
+ }), j));
10345
10345
  });
10346
10346
  }), $ = function() {
10347
10347
  v && v.removeNotice(F);
@@ -10480,12 +10480,12 @@ function requireMessage() {
10480
10480
  ["success", "info", "warning", "error", "loading"].forEach(function(L) {
10481
10481
  return M(P, L);
10482
10482
  }), P.warn = P.warning, P.useMessage = (0, p.default)(T, k);
10483
- var q = function() {
10483
+ var j = function() {
10484
10484
  return process.env.NODE_ENV === "test" ? g : null;
10485
10485
  };
10486
- e.getInstance = q;
10487
- var j = P;
10488
- e.default = j;
10486
+ e.getInstance = j;
10487
+ var q = P;
10488
+ e.default = q;
10489
10489
  }(message)), message;
10490
10490
  }
10491
10491
  var notification = {}, CloseOutlined$2 = { exports: {} }, CloseOutlined$1 = {}, CloseOutlined = {}, hasRequiredCloseOutlined$2;
@@ -10829,10 +10829,10 @@ function requireNotification() {
10829
10829
  style: F(G, z, V),
10830
10830
  getContainer: Y,
10831
10831
  closeIcon: S
10832
- }, function(ne) {
10833
- X(ne), H({
10832
+ }, function(re) {
10833
+ X(re), H({
10834
10834
  prefixCls: Z,
10835
- instance: ne
10835
+ instance: re
10836
10836
  });
10837
10837
  });
10838
10838
  });
@@ -10904,7 +10904,7 @@ function requireNotification() {
10904
10904
  }));
10905
10905
  };
10906
10906
  }), M.warn = M.warning, M.useNotification = (0, g.default)(k, D);
10907
- var q = function(H) {
10907
+ var j = function(H) {
10908
10908
  return v(void 0, void 0, void 0, /* @__PURE__ */ r.default.mark(function K() {
10909
10909
  return r.default.wrap(function(z) {
10910
10910
  for (; ; )
@@ -10918,9 +10918,9 @@ function requireNotification() {
10918
10918
  }, K);
10919
10919
  }));
10920
10920
  };
10921
- e.getInstance = q;
10922
- var j = M;
10923
- e.default = j;
10921
+ e.getInstance = j;
10922
+ var q = M;
10923
+ e.default = q;
10924
10924
  }(notification)), notification;
10925
10925
  }
10926
10926
  var hasRequiredConfigProvider;
@@ -10943,13 +10943,13 @@ function requireConfigProvider() {
10943
10943
  var r = n(require_extends()), o = t(React__default), a = n(requireContext$2()), s = require$$5, c = n(requireUseMemo()), l = t(requireLocaleProvider()), u = n(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), h = n(requireMessage()), p = n(requireNotification()), g = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
10944
10944
  e.configConsumerProps = g;
10945
10945
  var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(C) {
10946
- var w = C.children, O = C.csp, _ = C.autoInsertSpaceInButton, b = C.form, T = C.locale, F = C.componentSize, k = C.direction, $ = C.space, D = C.virtual, P = C.dropdownMatchSelectWidth, M = C.legacyLocale, q = C.parentContext, j = C.iconPrefixCls, L = o.useCallback(function(U, Y) {
10946
+ var w = C.children, O = C.csp, _ = C.autoInsertSpaceInButton, b = C.form, T = C.locale, F = C.componentSize, k = C.direction, $ = C.space, D = C.virtual, P = C.dropdownMatchSelectWidth, M = C.legacyLocale, j = C.parentContext, q = C.iconPrefixCls, L = o.useCallback(function(U, Y) {
10947
10947
  var B = C.prefixCls;
10948
10948
  if (Y)
10949
10949
  return Y;
10950
- var A = B || q.getPrefixCls("");
10950
+ var A = B || j.getPrefixCls("");
10951
10951
  return U ? "".concat(A, "-").concat(U) : A;
10952
- }, [q.getPrefixCls]), H = (0, r.default)((0, r.default)({}, q), {
10952
+ }, [j.getPrefixCls]), H = (0, r.default)((0, r.default)({}, j), {
10953
10953
  csp: O,
10954
10954
  autoInsertSpaceInButton: _,
10955
10955
  locale: T || M,
@@ -10972,15 +10972,15 @@ function requireConfigProvider() {
10972
10972
  });
10973
10973
  }), G = o.useMemo(function() {
10974
10974
  return {
10975
- prefixCls: j
10975
+ prefixCls: q
10976
10976
  };
10977
- }, [j]), z = w, V = {};
10977
+ }, [q]), z = w, V = {};
10978
10978
  return T && T.Form && T.Form.defaultValidateMessages && (V = T.Form.defaultValidateMessages), b && b.validateMessages && (V = (0, r.default)((0, r.default)({}, V), b.validateMessages)), Object.keys(V).length > 0 && (z = /* @__PURE__ */ o.createElement(s.FormProvider, {
10979
10979
  validateMessages: V
10980
10980
  }, w)), T && (z = /* @__PURE__ */ o.createElement(l.default, {
10981
10981
  locale: T,
10982
10982
  _ANT_MARK__: l.ANT_MARK
10983
- }, z)), j && (z = /* @__PURE__ */ o.createElement(a.default.Provider, {
10983
+ }, z)), q && (z = /* @__PURE__ */ o.createElement(a.default.Provider, {
10984
10984
  value: G
10985
10985
  }, z)), F && (z = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
10986
10986
  size: F
@@ -11080,7 +11080,7 @@ function requireInput() {
11080
11080
  F.focus();
11081
11081
  }), I(F.input, $, F.props.onChange);
11082
11082
  }, F.renderInput = function($, D, P) {
11083
- var M = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = F.props, j = q.className, L = q.addonBefore, H = q.addonAfter, K = q.size, G = q.disabled, z = (0, f.default)(F.props, [
11083
+ var M = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, j = F.props, q = j.className, L = j.addonBefore, H = j.addonAfter, K = j.size, G = j.disabled, z = (0, f.default)(F.props, [
11084
11084
  "prefixCls",
11085
11085
  "onPressEnter",
11086
11086
  "addonBefore",
@@ -11100,7 +11100,7 @@ function requireInput() {
11100
11100
  onFocus: F.onFocus,
11101
11101
  onBlur: F.onBlur,
11102
11102
  onKeyDown: F.handleKeyDown,
11103
- className: (0, d.default)(m($, P, K || D, G, F.direction), (0, l.default)({}, j, j && !L && !H)),
11103
+ className: (0, d.default)(m($, P, K || D, G, F.direction), (0, l.default)({}, q, q && !L && !H)),
11104
11104
  ref: F.saveInput
11105
11105
  }));
11106
11106
  }, F.clearPasswordValueAttribute = function() {
@@ -11113,14 +11113,14 @@ function requireInput() {
11113
11113
  var D = F.props, P = D.onPressEnter, M = D.onKeyDown;
11114
11114
  $.keyCode === 13 && P && P($), M && M($);
11115
11115
  }, F.renderComponent = function($) {
11116
- var D = $.getPrefixCls, P = $.direction, M = $.input, q = F.state, j = q.value, L = q.focused, H = F.props, K = H.prefixCls, G = H.bordered, z = G === void 0 ? !0 : G, V = D("input", K);
11116
+ var D = $.getPrefixCls, P = $.direction, M = $.input, j = F.state, q = j.value, L = j.focused, H = F.props, K = H.prefixCls, G = H.bordered, z = G === void 0 ? !0 : G, V = D("input", K);
11117
11117
  return F.direction = P, /* @__PURE__ */ u.createElement(g.default.Consumer, null, function(U) {
11118
11118
  return /* @__PURE__ */ u.createElement(h.default, (0, r.default)({
11119
11119
  size: U
11120
11120
  }, F.props, {
11121
11121
  prefixCls: V,
11122
11122
  inputType: "input",
11123
- value: x(j),
11123
+ value: x(q),
11124
11124
  element: F.renderInput(V, U, z, M),
11125
11125
  handleReset: F.handleReset,
11126
11126
  ref: F.saveClearableInput,
@@ -11271,14 +11271,14 @@ function requireClearableLabeledInput() {
11271
11271
  }, {
11272
11272
  key: "renderLabeledIcon",
11273
11273
  value: function(_, b) {
11274
- var T, F = this.props, k = F.focused, $ = F.value, D = F.prefix, P = F.className, M = F.size, q = F.suffix, j = F.disabled, L = F.allowClear, H = F.direction, K = F.style, G = F.readOnly, z = F.bordered, V = this.renderSuffix(_);
11274
+ var T, F = this.props, k = F.focused, $ = F.value, D = F.prefix, P = F.className, M = F.size, j = F.suffix, q = F.disabled, L = F.allowClear, H = F.direction, K = F.style, G = F.readOnly, z = F.bordered, V = this.renderSuffix(_);
11275
11275
  if (!v(this.props))
11276
11276
  return (0, p.cloneElement)(b, {
11277
11277
  value: $
11278
11278
  });
11279
11279
  var U = D ? /* @__PURE__ */ l.createElement("span", {
11280
11280
  className: "".concat(_, "-prefix")
11281
- }, D) : null, Y = (0, u.default)("".concat(_, "-affix-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-focused"), k), (0, r.default)(T, "".concat(_, "-affix-wrapper-disabled"), j), (0, r.default)(T, "".concat(_, "-affix-wrapper-sm"), M === "small"), (0, r.default)(T, "".concat(_, "-affix-wrapper-lg"), M === "large"), (0, r.default)(T, "".concat(_, "-affix-wrapper-input-with-clear-btn"), q && L && $), (0, r.default)(T, "".concat(_, "-affix-wrapper-rtl"), H === "rtl"), (0, r.default)(T, "".concat(_, "-affix-wrapper-readonly"), G), (0, r.default)(T, "".concat(_, "-affix-wrapper-borderless"), !z), (0, r.default)(T, "".concat(P), !x(this.props) && P), T));
11281
+ }, D) : null, Y = (0, u.default)("".concat(_, "-affix-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-focused"), k), (0, r.default)(T, "".concat(_, "-affix-wrapper-disabled"), q), (0, r.default)(T, "".concat(_, "-affix-wrapper-sm"), M === "small"), (0, r.default)(T, "".concat(_, "-affix-wrapper-lg"), M === "large"), (0, r.default)(T, "".concat(_, "-affix-wrapper-input-with-clear-btn"), j && L && $), (0, r.default)(T, "".concat(_, "-affix-wrapper-rtl"), H === "rtl"), (0, r.default)(T, "".concat(_, "-affix-wrapper-readonly"), G), (0, r.default)(T, "".concat(_, "-affix-wrapper-borderless"), !z), (0, r.default)(T, "".concat(P), !x(this.props) && P), T));
11282
11282
  return /* @__PURE__ */ l.createElement("span", {
11283
11283
  ref: this.containerRef,
11284
11284
  className: Y,
@@ -11287,20 +11287,20 @@ function requireClearableLabeledInput() {
11287
11287
  }, U, (0, p.cloneElement)(b, {
11288
11288
  style: null,
11289
11289
  value: $,
11290
- className: (0, h.getInputClassName)(_, z, M, j)
11290
+ className: (0, h.getInputClassName)(_, z, M, q)
11291
11291
  }), V);
11292
11292
  }
11293
11293
  }, {
11294
11294
  key: "renderInputWithLabel",
11295
11295
  value: function(_, b) {
11296
- var T, F = this.props, k = F.addonBefore, $ = F.addonAfter, D = F.style, P = F.size, M = F.className, q = F.direction;
11296
+ var T, F = this.props, k = F.addonBefore, $ = F.addonAfter, D = F.style, P = F.size, M = F.className, j = F.direction;
11297
11297
  if (!x(this.props))
11298
11298
  return b;
11299
- var j = "".concat(_, "-group"), L = "".concat(j, "-addon"), H = k ? /* @__PURE__ */ l.createElement("span", {
11299
+ var q = "".concat(_, "-group"), L = "".concat(q, "-addon"), H = k ? /* @__PURE__ */ l.createElement("span", {
11300
11300
  className: L
11301
11301
  }, k) : null, K = $ ? /* @__PURE__ */ l.createElement("span", {
11302
11302
  className: L
11303
- }, $) : null, G = (0, u.default)("".concat(_, "-wrapper"), j, (0, r.default)({}, "".concat(j, "-rtl"), q === "rtl")), z = (0, u.default)("".concat(_, "-group-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-group-wrapper-sm"), P === "small"), (0, r.default)(T, "".concat(_, "-group-wrapper-lg"), P === "large"), (0, r.default)(T, "".concat(_, "-group-wrapper-rtl"), q === "rtl"), T), M);
11303
+ }, $) : null, G = (0, u.default)("".concat(_, "-wrapper"), q, (0, r.default)({}, "".concat(q, "-rtl"), j === "rtl")), z = (0, u.default)("".concat(_, "-group-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-group-wrapper-sm"), P === "small"), (0, r.default)(T, "".concat(_, "-group-wrapper-lg"), P === "large"), (0, r.default)(T, "".concat(_, "-group-wrapper-rtl"), j === "rtl"), T), M);
11304
11304
  return /* @__PURE__ */ l.createElement("span", {
11305
11305
  className: z,
11306
11306
  style: D
@@ -11313,14 +11313,14 @@ function requireClearableLabeledInput() {
11313
11313
  }, {
11314
11314
  key: "renderTextAreaWithClearIcon",
11315
11315
  value: function(_, b) {
11316
- var T, F = this.props, k = F.value, $ = F.allowClear, D = F.className, P = F.style, M = F.direction, q = F.bordered;
11316
+ var T, F = this.props, k = F.value, $ = F.allowClear, D = F.className, P = F.style, M = F.direction, j = F.bordered;
11317
11317
  if (!$)
11318
11318
  return (0, p.cloneElement)(b, {
11319
11319
  value: k
11320
11320
  });
11321
- var j = (0, u.default)("".concat(_, "-affix-wrapper"), "".concat(_, "-affix-wrapper-textarea-with-clear-btn"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-rtl"), M === "rtl"), (0, r.default)(T, "".concat(_, "-affix-wrapper-borderless"), !q), (0, r.default)(T, "".concat(D), !x(this.props) && D), T));
11321
+ var q = (0, u.default)("".concat(_, "-affix-wrapper"), "".concat(_, "-affix-wrapper-textarea-with-clear-btn"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-rtl"), M === "rtl"), (0, r.default)(T, "".concat(_, "-affix-wrapper-borderless"), !j), (0, r.default)(T, "".concat(D), !x(this.props) && D), T));
11322
11322
  return /* @__PURE__ */ l.createElement("span", {
11323
- className: j,
11323
+ className: q,
11324
11324
  style: P
11325
11325
  }, (0, p.cloneElement)(b, {
11326
11326
  style: null,
@@ -11352,37 +11352,37 @@ function requireClearableLabeledInput() {
11352
11352
  w.indexOf(_[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, _[b]) && (O[_[b]] = C[_[b]]);
11353
11353
  return O;
11354
11354
  }, m = /* @__PURE__ */ l.forwardRef(function(C, w) {
11355
- var O, _ = C.prefixCls, b = C.bordered, T = b === void 0 ? !0 : b, F = C.showCount, k = F === void 0 ? !1 : F, $ = C.maxLength, D = C.className, P = C.style, M = C.size, q = I(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), j = l.useContext(g.ConfigContext), L = j.getPrefixCls, H = j.direction, K = l.useContext(x.default), G = l.useRef(null), z = l.useRef(null), V = (0, h.default)(q.defaultValue, {
11356
- value: q.value
11357
- }), U = (0, c.default)(V, 2), Y = U[0], B = U[1], A = l.useRef(q.value);
11355
+ var O, _ = C.prefixCls, b = C.bordered, T = b === void 0 ? !0 : b, F = C.showCount, k = F === void 0 ? !1 : F, $ = C.maxLength, D = C.className, P = C.style, M = C.size, j = I(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), q = l.useContext(g.ConfigContext), L = q.getPrefixCls, H = q.direction, K = l.useContext(x.default), G = l.useRef(null), z = l.useRef(null), V = (0, h.default)(j.defaultValue, {
11356
+ value: j.value
11357
+ }), U = (0, c.default)(V, 2), Y = U[0], B = U[1], A = l.useRef(j.value);
11358
11358
  l.useEffect(function() {
11359
- (q.value !== void 0 || A.current !== q.value) && (B(q.value), A.current = q.value);
11360
- }, [q.value, A.current]);
11361
- var N = function(ue, se) {
11362
- q.value === void 0 && (B(ue), se == null || se());
11363
- }, Z = function(ue) {
11364
- N(ue.target.value), (0, v.resolveOnChange)(G.current, ue, q.onChange);
11365
- }, Q = function(ue) {
11359
+ (j.value !== void 0 || A.current !== j.value) && (B(j.value), A.current = j.value);
11360
+ }, [j.value, A.current]);
11361
+ var N = function(de, ae) {
11362
+ j.value === void 0 && (B(de), ae == null || ae());
11363
+ }, Z = function(de) {
11364
+ N(de.target.value), (0, v.resolveOnChange)(G.current, de, j.onChange);
11365
+ }, Q = function(de) {
11366
11366
  N("", function() {
11367
- var se;
11368
- (se = G.current) === null || se === void 0 || se.focus();
11369
- }), (0, v.resolveOnChange)(G.current, ue, q.onChange);
11367
+ var ae;
11368
+ (ae = G.current) === null || ae === void 0 || ae.focus();
11369
+ }), (0, v.resolveOnChange)(G.current, de, j.onChange);
11370
11370
  }, E = L("input", _);
11371
11371
  l.useImperativeHandle(w, function() {
11372
- var le;
11372
+ var ce;
11373
11373
  return {
11374
- resizableTextArea: (le = G.current) === null || le === void 0 ? void 0 : le.resizableTextArea,
11375
- focus: function(se) {
11376
- var fe, Ie;
11377
- (0, v.triggerFocus)((Ie = (fe = G.current) === null || fe === void 0 ? void 0 : fe.resizableTextArea) === null || Ie === void 0 ? void 0 : Ie.textArea, se);
11374
+ resizableTextArea: (ce = G.current) === null || ce === void 0 ? void 0 : ce.resizableTextArea,
11375
+ focus: function(ae) {
11376
+ var pe, Ie;
11377
+ (0, v.triggerFocus)((Ie = (pe = G.current) === null || pe === void 0 ? void 0 : pe.resizableTextArea) === null || Ie === void 0 ? void 0 : Ie.textArea, ae);
11378
11378
  },
11379
11379
  blur: function() {
11380
- var se;
11381
- return (se = G.current) === null || se === void 0 ? void 0 : se.blur();
11380
+ var ae;
11381
+ return (ae = G.current) === null || ae === void 0 ? void 0 : ae.blur();
11382
11382
  }
11383
11383
  };
11384
11384
  });
11385
- var S = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(q, ["allowClear"]), {
11385
+ var S = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(j, ["allowClear"]), {
11386
11386
  maxLength: $,
11387
11387
  className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(E, "-borderless"), !T), (0, s.default)(O, D, D && !k), (0, s.default)(O, "".concat(E, "-sm"), K === "small" || M === "small"), (0, s.default)(O, "".concat(E, "-lg"), K === "large" || M === "large"), O)),
11388
11388
  style: k ? void 0 : P,
@@ -11391,7 +11391,7 @@ function requireClearableLabeledInput() {
11391
11391
  ref: G
11392
11392
  })), W = (0, v.fixControlledValue)(Y), X = Number($) > 0;
11393
11393
  W = X ? (0, o.default)(W).slice(0, $).join("") : W;
11394
- var ne = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, q, {
11394
+ var re = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, j, {
11395
11395
  prefixCls: E,
11396
11396
  direction: H,
11397
11397
  inputType: "text",
@@ -11410,9 +11410,9 @@ function requireClearableLabeledInput() {
11410
11410
  className: (0, f.default)("".concat(E, "-textarea"), (0, s.default)({}, "".concat(E, "-textarea-rtl"), H === "rtl"), "".concat(E, "-textarea-show-count"), D),
11411
11411
  style: P,
11412
11412
  "data-count": oe
11413
- }, ne);
11413
+ }, re);
11414
11414
  }
11415
- return ne;
11415
+ return re;
11416
11416
  }), y = m;
11417
11417
  e.default = y;
11418
11418
  })(TextArea$3);
@@ -12458,7 +12458,7 @@ function require_stream_writable() {
12458
12458
  t = t || require_stream_duplex(), B = B || {}, typeof N != "boolean" && (N = A instanceof t), this.objectMode = !!B.objectMode, N && (this.objectMode = this.objectMode || !!B.writableObjectMode), this.highWaterMark = d(this, B, "writableHighWaterMark", N), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12459
12459
  var Z = B.decodeStrings === !1;
12460
12460
  this.decodeStrings = !Z, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Q) {
12461
- q(A, Q);
12461
+ j(A, Q);
12462
12462
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = B.emitClose !== !1, this.autoDestroy = !!B.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
12463
12463
  }
12464
12464
  O.prototype.getBuffer = function() {
@@ -12537,14 +12537,14 @@ function require_stream_writable() {
12537
12537
  A.length += W;
12538
12538
  var X = A.length < A.highWaterMark;
12539
12539
  if (X || (A.needDrain = !0), A.writing || A.corked) {
12540
- var ne = A.lastBufferedRequest;
12540
+ var re = A.lastBufferedRequest;
12541
12541
  A.lastBufferedRequest = {
12542
12542
  chunk: Z,
12543
12543
  encoding: Q,
12544
12544
  isBuf: N,
12545
12545
  callback: E,
12546
12546
  next: null
12547
- }, ne ? ne.next = A.lastBufferedRequest : A.bufferedRequest = A.lastBufferedRequest, A.bufferedRequestCount += 1;
12547
+ }, re ? re.next = A.lastBufferedRequest : A.bufferedRequest = A.lastBufferedRequest, A.bufferedRequestCount += 1;
12548
12548
  } else
12549
12549
  D(B, A, !1, W, Z, Q, E);
12550
12550
  return X;
@@ -12558,7 +12558,7 @@ function require_stream_writable() {
12558
12558
  function M(B) {
12559
12559
  B.writing = !1, B.writecb = null, B.length -= B.writelen, B.writelen = 0;
12560
12560
  }
12561
- function q(B, A) {
12561
+ function j(B, A) {
12562
12562
  var N = B._writableState, Z = N.sync, Q = N.writecb;
12563
12563
  if (typeof Q != "function")
12564
12564
  throw new g();
@@ -12566,10 +12566,10 @@ function require_stream_writable() {
12566
12566
  P(B, N, Z, A, Q);
12567
12567
  else {
12568
12568
  var E = K(N) || B.destroyed;
12569
- !E && !N.corked && !N.bufferProcessing && N.bufferedRequest && H(B, N), Z ? process.nextTick(j, B, N, E, Q) : j(B, N, E, Q);
12569
+ !E && !N.corked && !N.bufferProcessing && N.bufferedRequest && H(B, N), Z ? process.nextTick(q, B, N, E, Q) : q(B, N, E, Q);
12570
12570
  }
12571
12571
  }
12572
- function j(B, A, N, Z) {
12572
+ function q(B, A, N, Z) {
12573
12573
  N || L(B, A), A.pendingcb--, Z(), V(B, A);
12574
12574
  }
12575
12575
  function L(B, A) {
@@ -12586,8 +12586,8 @@ function require_stream_writable() {
12586
12586
  Q.allBuffers = W, D(B, A, !0, A.length, Q, "", E.finish), A.pendingcb++, A.lastBufferedRequest = null, E.next ? (A.corkedRequestsFree = E.next, E.next = null) : A.corkedRequestsFree = new e(A), A.bufferedRequestCount = 0;
12587
12587
  } else {
12588
12588
  for (; N; ) {
12589
- var X = N.chunk, ne = N.encoding, ee = N.callback, oe = A.objectMode ? 1 : X.length;
12590
- if (D(B, A, !1, oe, X, ne, ee), N = N.next, A.bufferedRequestCount--, A.writing)
12589
+ var X = N.chunk, re = N.encoding, ee = N.callback, oe = A.objectMode ? 1 : X.length;
12590
+ if (D(B, A, !1, oe, X, re, ee), N = N.next, A.bufferedRequestCount--, A.writing)
12591
12591
  break;
12592
12592
  }
12593
12593
  N === null && (A.lastBufferedRequest = null);
@@ -13115,14 +13115,14 @@ function require_stream_readable() {
13115
13115
  }, T.prototype.unshift = function(E) {
13116
13116
  return F(this, E, null, !0, !1);
13117
13117
  };
13118
- function F(E, S, W, X, ne) {
13118
+ function F(E, S, W, X, re) {
13119
13119
  l("readableAddChunk", S);
13120
13120
  var ee = E._readableState;
13121
13121
  if (S === null)
13122
- ee.reading = !1, q(E, ee);
13122
+ ee.reading = !1, j(E, ee);
13123
13123
  else {
13124
13124
  var oe;
13125
- if (ne || (oe = $(ee, S)), oe)
13125
+ if (re || (oe = $(ee, S)), oe)
13126
13126
  w(E, oe);
13127
13127
  else if (ee.objectMode || S && S.length > 0)
13128
13128
  if (typeof S != "string" && !ee.objectMode && Object.getPrototypeOf(S) !== r.prototype && (S = a(S)), X)
@@ -13140,7 +13140,7 @@ function require_stream_readable() {
13140
13140
  return !ee.ended && (ee.length < ee.highWaterMark || ee.length === 0);
13141
13141
  }
13142
13142
  function k(E, S, W, X) {
13143
- S.flowing && S.length === 0 && !S.sync ? (S.awaitDrain = 0, E.emit("data", W)) : (S.length += S.objectMode ? 1 : W.length, X ? S.buffer.unshift(W) : S.buffer.push(W), S.needReadable && j(E)), H(E, S);
13143
+ S.flowing && S.length === 0 && !S.sync ? (S.awaitDrain = 0, E.emit("data", W)) : (S.length += S.objectMode ? 1 : W.length, X ? S.buffer.unshift(W) : S.buffer.push(W), S.needReadable && q(E)), H(E, S);
13144
13144
  }
13145
13145
  function $(E, S) {
13146
13146
  var W;
@@ -13167,24 +13167,24 @@ function require_stream_readable() {
13167
13167
  l("read", E), E = parseInt(E, 10);
13168
13168
  var S = this._readableState, W = E;
13169
13169
  if (E !== 0 && (S.emittedReadable = !1), E === 0 && S.needReadable && ((S.highWaterMark !== 0 ? S.length >= S.highWaterMark : S.length > 0) || S.ended))
13170
- return l("read: emitReadable", S.length, S.ended), S.length === 0 && S.ended ? N(this) : j(this), null;
13170
+ return l("read: emitReadable", S.length, S.ended), S.length === 0 && S.ended ? N(this) : q(this), null;
13171
13171
  if (E = M(E, S), E === 0 && S.ended)
13172
13172
  return S.length === 0 && N(this), null;
13173
13173
  var X = S.needReadable;
13174
13174
  l("need readable", X), (S.length === 0 || S.length - E < S.highWaterMark) && (X = !0, l("length less than watermark", X)), S.ended || S.reading ? (X = !1, l("reading or ended", X)) : X && (l("do read"), S.reading = !0, S.sync = !0, S.length === 0 && (S.needReadable = !0), this._read(S.highWaterMark), S.sync = !1, S.reading || (E = M(W, S)));
13175
- var ne;
13176
- return E > 0 ? ne = A(E, S) : ne = null, ne === null ? (S.needReadable = S.length <= S.highWaterMark, E = 0) : (S.length -= E, S.awaitDrain = 0), S.length === 0 && (S.ended || (S.needReadable = !0), W !== E && S.ended && N(this)), ne !== null && this.emit("data", ne), ne;
13175
+ var re;
13176
+ return E > 0 ? re = A(E, S) : re = null, re === null ? (S.needReadable = S.length <= S.highWaterMark, E = 0) : (S.length -= E, S.awaitDrain = 0), S.length === 0 && (S.ended || (S.needReadable = !0), W !== E && S.ended && N(this)), re !== null && this.emit("data", re), re;
13177
13177
  };
13178
- function q(E, S) {
13178
+ function j(E, S) {
13179
13179
  if (l("onEofChunk"), !S.ended) {
13180
13180
  if (S.decoder) {
13181
13181
  var W = S.decoder.end();
13182
13182
  W && W.length && (S.buffer.push(W), S.length += S.objectMode ? 1 : W.length);
13183
13183
  }
13184
- S.ended = !0, S.sync ? j(E) : (S.needReadable = !1, S.emittedReadable || (S.emittedReadable = !0, L(E)));
13184
+ S.ended = !0, S.sync ? q(E) : (S.needReadable = !1, S.emittedReadable || (S.emittedReadable = !0, L(E)));
13185
13185
  }
13186
13186
  }
13187
- function j(E) {
13187
+ function q(E) {
13188
13188
  var S = E._readableState;
13189
13189
  l("emitReadable", S.needReadable, S.emittedReadable), S.needReadable = !1, S.emittedReadable || (l("emitReadable", S.flowing), S.emittedReadable = !0, process.nextTick(L, E));
13190
13190
  }
@@ -13219,25 +13219,25 @@ function require_stream_readable() {
13219
13219
  break;
13220
13220
  }
13221
13221
  X.pipesCount += 1, l("pipe count=%d opts=%j", X.pipesCount, S);
13222
- var ne = (!S || S.end !== !1) && E !== process.stdout && E !== process.stderr, ee = ne ? le : ye;
13222
+ var re = (!S || S.end !== !1) && E !== process.stdout && E !== process.stderr, ee = re ? ce : ye;
13223
13223
  X.endEmitted ? process.nextTick(ee) : W.once("end", ee), E.on("unpipe", oe);
13224
13224
  function oe(Fe, Ce) {
13225
- l("onunpipe"), Fe === W && Ce && Ce.hasUnpiped === !1 && (Ce.hasUnpiped = !0, fe());
13225
+ l("onunpipe"), Fe === W && Ce && Ce.hasUnpiped === !1 && (Ce.hasUnpiped = !0, pe());
13226
13226
  }
13227
- function le() {
13227
+ function ce() {
13228
13228
  l("onend"), E.end();
13229
13229
  }
13230
- var ue = G(W);
13231
- E.on("drain", ue);
13232
- var se = !1;
13233
- function fe() {
13234
- l("cleanup"), E.removeListener("close", ge), E.removeListener("finish", we), E.removeListener("drain", ue), E.removeListener("error", Te), E.removeListener("unpipe", oe), W.removeListener("end", le), W.removeListener("end", ye), W.removeListener("data", Ie), se = !0, X.awaitDrain && (!E._writableState || E._writableState.needDrain) && ue();
13230
+ var de = G(W);
13231
+ E.on("drain", de);
13232
+ var ae = !1;
13233
+ function pe() {
13234
+ l("cleanup"), E.removeListener("close", ge), E.removeListener("finish", we), E.removeListener("drain", de), E.removeListener("error", Te), E.removeListener("unpipe", oe), W.removeListener("end", ce), W.removeListener("end", ye), W.removeListener("data", Ie), ae = !0, X.awaitDrain && (!E._writableState || E._writableState.needDrain) && de();
13235
13235
  }
13236
13236
  W.on("data", Ie);
13237
13237
  function Ie(Fe) {
13238
13238
  l("ondata");
13239
13239
  var Ce = E.write(Fe);
13240
- l("dest.write", Ce), Ce === !1 && ((X.pipesCount === 1 && X.pipes === E || X.pipesCount > 1 && Q(X.pipes, E) !== -1) && !se && (l("false write response, pause", X.awaitDrain), X.awaitDrain++), W.pause());
13240
+ l("dest.write", Ce), Ce === !1 && ((X.pipesCount === 1 && X.pipes === E || X.pipesCount > 1 && Q(X.pipes, E) !== -1) && !ae && (l("false write response, pause", X.awaitDrain), X.awaitDrain++), W.pause());
13241
13241
  }
13242
13242
  function Te(Fe) {
13243
13243
  l("onerror", Fe), ye(), E.removeListener("error", Te), t(E, "error") === 0 && w(E, Fe);
@@ -13271,9 +13271,9 @@ function require_stream_readable() {
13271
13271
  if (S.pipesCount === 1)
13272
13272
  return E && E !== S.pipes ? this : (E || (E = S.pipes), S.pipes = null, S.pipesCount = 0, S.flowing = !1, E && E.emit("unpipe", this, W), this);
13273
13273
  if (!E) {
13274
- var X = S.pipes, ne = S.pipesCount;
13274
+ var X = S.pipes, re = S.pipesCount;
13275
13275
  S.pipes = null, S.pipesCount = 0, S.flowing = !1;
13276
- for (var ee = 0; ee < ne; ee++)
13276
+ for (var ee = 0; ee < re; ee++)
13277
13277
  X[ee].emit("unpipe", this, {
13278
13278
  hasUnpiped: !1
13279
13279
  });
@@ -13283,7 +13283,7 @@ function require_stream_readable() {
13283
13283
  return oe === -1 ? this : (S.pipes.splice(oe, 1), S.pipesCount -= 1, S.pipesCount === 1 && (S.pipes = S.pipes[0]), E.emit("unpipe", this, W), this);
13284
13284
  }, T.prototype.on = function(E, S) {
13285
13285
  var W = n.prototype.on.call(this, E, S), X = this._readableState;
13286
- return E === "data" ? (X.readableListening = this.listenerCount("readable") > 0, X.flowing !== !1 && this.resume()) : E === "readable" && !X.endEmitted && !X.readableListening && (X.readableListening = X.needReadable = !0, X.flowing = !1, X.emittedReadable = !1, l("on readable", X.length, X.reading), X.length ? j(this) : X.reading || process.nextTick(V, this)), W;
13286
+ return E === "data" ? (X.readableListening = this.listenerCount("readable") > 0, X.flowing !== !1 && this.resume()) : E === "readable" && !X.endEmitted && !X.readableListening && (X.readableListening = X.needReadable = !0, X.flowing = !1, X.emittedReadable = !1, l("on readable", X.length, X.reading), X.length ? q(this) : X.reading || process.nextTick(V, this)), W;
13287
13287
  }, T.prototype.addListener = T.prototype.on, T.prototype.removeListener = function(E, S) {
13288
13288
  var W = n.prototype.removeListener.call(this, E, S);
13289
13289
  return E === "readable" && process.nextTick(z, this), W;
@@ -13326,16 +13326,16 @@ function require_stream_readable() {
13326
13326
  S.push(null);
13327
13327
  }), E.on("data", function(oe) {
13328
13328
  if (l("wrapped data"), W.decoder && (oe = W.decoder.write(oe)), !(W.objectMode && oe == null) && !(!W.objectMode && (!oe || !oe.length))) {
13329
- var le = S.push(oe);
13330
- le || (X = !0, E.pause());
13329
+ var ce = S.push(oe);
13330
+ ce || (X = !0, E.pause());
13331
13331
  }
13332
13332
  });
13333
- for (var ne in E)
13334
- this[ne] === void 0 && typeof E[ne] == "function" && (this[ne] = function(le) {
13333
+ for (var re in E)
13334
+ this[re] === void 0 && typeof E[re] == "function" && (this[re] = function(ce) {
13335
13335
  return function() {
13336
- return E[le].apply(E, arguments);
13336
+ return E[ce].apply(E, arguments);
13337
13337
  };
13338
- }(ne));
13338
+ }(re));
13339
13339
  for (var ee = 0; ee < O.length; ee++)
13340
13340
  E.on(O[ee], this.emit.bind(this, O[ee]));
13341
13341
  return this._read = function(oe) {
@@ -16306,8 +16306,8 @@ const transformPlainMany2Ones = ({
16306
16306
  setResults: D,
16307
16307
  results: P,
16308
16308
  currentItemIndex: M,
16309
- setCurrentItemIndex: q,
16310
- currentModel: j,
16309
+ setCurrentItemIndex: j,
16310
+ currentModel: q,
16311
16311
  toolbar: L,
16312
16312
  setToolbar: H,
16313
16313
  sorter: K,
@@ -16320,7 +16320,7 @@ const transformPlainMany2Ones = ({
16320
16320
  setSearchTreeNameSearch: A
16321
16321
  } = e;
16322
16322
  useEffect(() => {
16323
- P && P.length > 0 && !M && (q == null || q(0), $ == null || $(P[0].id));
16323
+ P && P.length > 0 && !M && (j == null || j(0), $ == null || $(P[0].id));
16324
16324
  }, [P]);
16325
16325
  const N = () => {
16326
16326
  var Z;
@@ -16343,10 +16343,10 @@ const transformPlainMany2Ones = ({
16343
16343
  currentId: k,
16344
16344
  setCurrentId: $,
16345
16345
  currentItemIndex: M,
16346
- setCurrentItemIndex: q,
16346
+ setCurrentItemIndex: j,
16347
16347
  results: P,
16348
16348
  setResults: D,
16349
- currentModel: j,
16349
+ currentModel: q,
16350
16350
  removingItem: a,
16351
16351
  setRemovingItem: s,
16352
16352
  formIsLoading: c,
@@ -16429,17 +16429,17 @@ const transformPlainMany2Ones = ({
16429
16429
  model: D,
16430
16430
  datas: P = {},
16431
16431
  report_name: M,
16432
- type: q
16432
+ type: j
16433
16433
  } = b;
16434
- if (q !== "ir.actions.report.xml") {
16435
- showDialog$8(`${q} action not supported`);
16434
+ if (j !== "ir.actions.report.xml") {
16435
+ showDialog$8(`${j} action not supported`);
16436
16436
  return;
16437
16437
  }
16438
16438
  const {
16439
- ids: j,
16439
+ ids: q,
16440
16440
  ...L
16441
16441
  } = P || {};
16442
- let H = j;
16442
+ let H = q;
16443
16443
  const K = typeof $ == "string" ? parseContext({
16444
16444
  context: $,
16445
16445
  fields: T,
@@ -16548,7 +16548,7 @@ const transformPlainMany2Ones = ({
16548
16548
  },
16549
16549
  context: D
16550
16550
  })), k.target === "new") {
16551
- const q = await ConnectionProvider.getHandler().getView({
16551
+ const j = await ConnectionProvider.getHandler().getView({
16552
16552
  model: k.res_model,
16553
16553
  type: "form",
16554
16554
  id: ((M = k == null ? void 0 : k.view_id) == null ? void 0 : M[0]) || void 0,
@@ -16557,13 +16557,13 @@ const transformPlainMany2Ones = ({
16557
16557
  return C({
16558
16558
  domain: P,
16559
16559
  model: k.res_model,
16560
- formView: q,
16560
+ formView: j,
16561
16561
  context: D
16562
16562
  }), {};
16563
16563
  } else {
16564
- let q;
16565
- const j = k.view_mode.split(","), L = [];
16566
- for (const H of j) {
16564
+ let j;
16565
+ const q = k.view_mode.split(","), L = [];
16566
+ for (const H of q) {
16567
16567
  const K = await ConnectionProvider.getHandler().getView({
16568
16568
  model: k.res_model,
16569
16569
  type: H,
@@ -16572,13 +16572,13 @@ const transformPlainMany2Ones = ({
16572
16572
  L.push([K.view_id, H]);
16573
16573
  }
16574
16574
  if (k.view_id)
16575
- q = {
16575
+ j = {
16576
16576
  id: k.view_id,
16577
16577
  type: k.view_mode.split(",")[0]
16578
16578
  };
16579
16579
  else {
16580
16580
  const H = k.view_mode.split(",")[0], [K] = L.find(([G, z]) => z === H);
16581
- q = {
16581
+ j = {
16582
16582
  id: K,
16583
16583
  type: H
16584
16584
  };
@@ -16590,7 +16590,7 @@ const transformPlainMany2Ones = ({
16590
16590
  model: k.res_model,
16591
16591
  views: L,
16592
16592
  title: k.name,
16593
- initialView: q,
16593
+ initialView: j,
16594
16594
  action_id: k.id,
16595
16595
  action_type: k.type
16596
16596
  }), {
@@ -16716,18 +16716,18 @@ function Form(e, t) {
16716
16716
  forcedValues: O = {}
16717
16717
  } = e, {
16718
16718
  lang: _
16719
- } = useContext(LocaleContext), [b, T] = useState(!1), [F, k] = useState(), [$, D] = useState(), [P] = Form$3.useForm(), [M, q] = useState(), [j, L] = useState(), H = useContext(FormModalContext), [K, G] = useState(), [z, V] = useState(!1), U = useRef(), Y = useRef({}), B = useRef({}), A = useRef(!1), N = useRef(!1), Z = K < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
16719
+ } = useContext(LocaleContext), [b, T] = useState(!1), [F, k] = useState(), [$, D] = useState(), [P] = Form$3.useForm(), [M, j] = useState(), [q, L] = useState(), H = useContext(FormModalContext), [K, G] = useState(), [z, V] = useState(!1), U = useRef(), Y = useRef({}), B = useRef({}), A = useRef(!1), N = useRef(!1), Z = K < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
16720
16720
  activeId: E
16721
16721
  } = Q || {}, S = useContext(ActionViewContext), {
16722
16722
  setFormIsSaving: W = void 0,
16723
16723
  setFormHasChanges: X = void 0,
16724
- setCurrentId: ne = void 0,
16724
+ setCurrentId: re = void 0,
16725
16725
  setFormIsLoading: ee = void 0,
16726
16726
  setAttachments: oe = void 0
16727
- } = (C ? S : {}) || {}, le = useContext(ContentRootContext), {
16728
- processAction: ue,
16729
- globalValues: se
16730
- } = le || {};
16727
+ } = (C ? S : {}) || {}, ce = useContext(ContentRootContext), {
16728
+ processAction: de,
16729
+ globalValues: ae
16730
+ } = ce || {};
16731
16731
  useImperativeHandle(t, () => ({
16732
16732
  submitForm: Be,
16733
16733
  getFields: we,
@@ -16745,15 +16745,15 @@ function Form(e, t) {
16745
16745
  U.current = void 0, D(void 0);
16746
16746
  return;
16747
16747
  }
16748
- (r === void 0 && j || r !== void 0 && j && r < 0) && (U.current = void 0, D(void 0)), Re();
16748
+ (r === void 0 && q || r !== void 0 && q && r < 0) && (U.current = void 0, D(void 0)), Re();
16749
16749
  }
16750
16750
  }, [r, n, p, g, y]), useEffect(() => {
16751
16751
  z && (qe({
16752
16752
  elementHasLostFocus: !0
16753
16753
  }), V(!1));
16754
16754
  }, [z]);
16755
- const fe = (J, te, ae) => {
16756
- X == null || X(!1), W == null || W(!1), a == null || a(J, te, ae), ne == null || ne(J);
16755
+ const pe = (J, te, le) => {
16756
+ X == null || X(!1), W == null || W(!1), a == null || a(J, te, le), re == null || re(J);
16757
16757
  }, Ie = () => {
16758
16758
  W == null || W(!1), o == null || o();
16759
16759
  }, Te = (J) => {
@@ -16763,11 +16763,11 @@ function Form(e, t) {
16763
16763
  return r || U.current;
16764
16764
  }
16765
16765
  function we() {
16766
- return j;
16766
+ return q;
16767
16767
  }
16768
16768
  function ye() {
16769
16769
  const J = {
16770
- ...re(j),
16770
+ ...ne(q),
16771
16771
  ...ie()
16772
16772
  };
16773
16773
  for (const te in J)
@@ -16776,15 +16776,15 @@ function Form(e, t) {
16776
16776
  }
16777
16777
  function Fe() {
16778
16778
  const J = ye(), te = we();
16779
- let ae = {};
16780
- return Object.keys(J).forEach((pe) => {
16781
- const Oe = J[pe];
16782
- te[pe] && te[pe].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? ae[pe] = Oe[0] : te[pe] && (te[pe].type === "one2many" || te[pe].type === "many2many") && Oe && Oe.items ? ae[pe] = Oe.items.filter((Pe) => Pe.operation !== "pendingRemove").map((Pe) => Pe.id) : ae[pe] = Oe;
16783
- }), ae;
16779
+ let le = {};
16780
+ return Object.keys(J).forEach((se) => {
16781
+ const Oe = J[se];
16782
+ te[se] && te[se].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? le[se] = Oe[0] : te[se] && (te[se].type === "one2many" || te[se].type === "many2many") && Oe && Oe.items ? le[se] = Oe.items.filter((ke) => ke.operation !== "pendingRemove").map((ke) => ke.id) : le[se] = Oe;
16783
+ }), le;
16784
16784
  }
16785
16785
  function Ce() {
16786
16786
  const J = {
16787
- ...re(j)
16787
+ ...ne(q)
16788
16788
  };
16789
16789
  for (const te in J)
16790
16790
  J[te] === void 0 && delete J[te];
@@ -16802,10 +16802,10 @@ function Form(e, t) {
16802
16802
  active_id: ge(),
16803
16803
  active_ids: [ge()],
16804
16804
  parent_id: E,
16805
- ...se
16805
+ ...ae
16806
16806
  };
16807
16807
  }
16808
- const de = async (J) => {
16808
+ const fe = async (J) => {
16809
16809
  const te = ge() ? $ == null ? void 0 : $.context : {};
16810
16810
  return await ConnectionProvider.getHandler().defaultGet({
16811
16811
  model: n,
@@ -16818,18 +16818,18 @@ function Form(e, t) {
16818
16818
  });
16819
16819
  }, he = () => Object.keys(getTouchedValues({
16820
16820
  source: Y.current,
16821
- target: re(j),
16822
- fields: j
16823
- })).length !== 0, re = (J) => {
16821
+ target: ne(q),
16822
+ fields: q
16823
+ })).length !== 0, ne = (J) => {
16824
16824
  const te = P.getFieldsValue(!0);
16825
16825
  return processValues(te, J);
16826
16826
  }, me = (J, te) => {
16827
16827
  De({
16828
16828
  values: {
16829
- ...processValues(P.getFieldsValue(!0), j),
16829
+ ...processValues(P.getFieldsValue(!0), q),
16830
16830
  [J]: te
16831
16831
  },
16832
- fields: j,
16832
+ fields: q,
16833
16833
  reset: !1
16834
16834
  });
16835
16835
  }, xe = (J) => P.getFieldsValue(!0)[J];
@@ -16850,38 +16850,38 @@ function Form(e, t) {
16850
16850
  } : J = await $e();
16851
16851
  const {
16852
16852
  fields: te,
16853
- arch: ae
16853
+ arch: le
16854
16854
  } = J;
16855
- L(te), q(ae), await _e({
16855
+ L(te), j(le), await _e({
16856
16856
  fields: te,
16857
- arch: ae
16857
+ arch: le
16858
16858
  });
16859
16859
  } catch (te) {
16860
16860
  k(te != null && te.message ? te.message + te.stack : te), ee == null || ee(!1);
16861
16861
  }
16862
16862
  }, _e = async (J) => {
16863
- let te, ae, pe, Oe;
16864
- ee == null || ee(!0), k(void 0), J ? (ae = J.fields, pe = J.arch) : (ae = j, pe = M), p ? te = p : {
16863
+ let te, le, se, Oe;
16864
+ ee == null || ee(!0), k(void 0), J ? (le = J.fields, se = J.arch) : (le = q, se = M), p ? te = p : {
16865
16865
  values: te,
16866
16866
  defaultGetCalled: Oe
16867
16867
  } = await Ne({
16868
- fields: ae,
16869
- arch: pe
16868
+ fields: le,
16869
+ arch: se
16870
16870
  }), m && (te = {
16871
16871
  ...getValuesForDomain(m),
16872
16872
  ...te
16873
- }), Y.current = processValues(te, ae), De({
16873
+ }), Y.current = processValues(te, le), De({
16874
16874
  values: te,
16875
- fields: ae,
16875
+ fields: le,
16876
16876
  reset: !0,
16877
16877
  isDefaultGet: Oe
16878
16878
  }), Le({
16879
- fields: ae,
16880
- arch: pe,
16879
+ fields: le,
16880
+ arch: se,
16881
16881
  values: te
16882
16882
  }), ee == null || ee(!1), X == null || X(!1), Oe && V(!0);
16883
16883
  };
16884
- function Ae(J, te) {
16884
+ function Pe(J, te) {
16885
16885
  Y.current[J] = te, X == null || X(he());
16886
16886
  }
16887
16887
  const Me = async () => new Promise(async (J) => {
@@ -16910,28 +16910,28 @@ function Form(e, t) {
16910
16910
  }, De = ({
16911
16911
  values: J,
16912
16912
  fields: te,
16913
- reset: ae,
16914
- isDefaultGet: pe = !1
16913
+ reset: le,
16914
+ isDefaultGet: se = !1
16915
16915
  }) => {
16916
- const Pe = {
16917
- ...ae ? {} : P.getFieldsValue(!0),
16916
+ const ke = {
16917
+ ...le ? {} : P.getFieldsValue(!0),
16918
16918
  ...J
16919
- }, je = processValues(Pe, te), Qe = Object.keys(te).map((Xe) => {
16920
- const Je = je[Xe] !== void 0 ? je[Xe] : void 0;
16919
+ }, Ze = processValues(ke, te), Qe = Object.keys(te).map((Xe) => {
16920
+ const Je = Ze[Xe] !== void 0 ? Ze[Xe] : void 0;
16921
16921
  return {
16922
16922
  name: Xe,
16923
16923
  touched: !1,
16924
16924
  value: Je
16925
16925
  };
16926
16926
  });
16927
- pe || (B.current = je), P.setFields(Qe);
16927
+ se || (B.current = Ze), P.setFields(Qe);
16928
16928
  }, Ne = async ({
16929
16929
  fields: J,
16930
16930
  arch: te
16931
16931
  }) => {
16932
- let ae = {}, pe = !1;
16932
+ let le = {}, se = !1;
16933
16933
  if (ge()) {
16934
- ae = (await ConnectionProvider.getHandler().readObjects({
16934
+ le = (await ConnectionProvider.getHandler().readObjects({
16935
16935
  model: n,
16936
16936
  ids: [ge()],
16937
16937
  fields: J,
@@ -16945,73 +16945,73 @@ function Form(e, t) {
16945
16945
  });
16946
16946
  oe == null || oe(Oe);
16947
16947
  } else
16948
- oe == null || oe([]), ae = await de(J), pe = !0;
16948
+ oe == null || oe([]), le = await fe(J), se = !0;
16949
16949
  return {
16950
- values: ae,
16951
- defaultGetCalled: pe
16950
+ values: le,
16951
+ defaultGetCalled: se
16952
16952
  };
16953
- }, He = async (J) => {
16953
+ }, Ve = async (J) => {
16954
16954
  const {
16955
16955
  callOnSubmitSucceed: te = !0
16956
16956
  } = J || {};
16957
16957
  if (ge()) {
16958
- const ae = getTouchedValues({
16958
+ const le = getTouchedValues({
16959
16959
  source: Y.current,
16960
- target: re(j),
16961
- fields: j
16960
+ target: ne(q),
16961
+ fields: q
16962
16962
  });
16963
16963
  await ConnectionProvider.getHandler().update({
16964
16964
  model: n,
16965
16965
  id: ge(),
16966
16966
  values: {
16967
- ...ae,
16967
+ ...le,
16968
16968
  ...O
16969
16969
  },
16970
- fields: j,
16970
+ fields: q,
16971
16971
  context: {
16972
16972
  ...I,
16973
16973
  ...$ == null ? void 0 : $.context
16974
16974
  }
16975
- }), Y.current = re(j);
16975
+ }), Y.current = ne(q);
16976
16976
  } else {
16977
- const ae = re(j), pe = await ConnectionProvider.getHandler().create({
16977
+ const le = ne(q), se = await ConnectionProvider.getHandler().create({
16978
16978
  model: n,
16979
16979
  values: {
16980
- ...ae,
16980
+ ...le,
16981
16981
  ...O
16982
16982
  },
16983
- fields: j,
16983
+ fields: q,
16984
16984
  context: {
16985
16985
  ...I,
16986
16986
  ...$ == null ? void 0 : $.context
16987
16987
  }
16988
16988
  });
16989
- U.current = pe, Y.current = ae;
16989
+ U.current = se, Y.current = le;
16990
16990
  }
16991
- v && await v([ge()]), !x && te && (fe == null || fe(ge(), ye(), Ce()));
16992
- }, Ue = async (J) => {
16991
+ v && await v([ge()]), !x && te && (pe == null || pe(ge(), ye(), Ce()));
16992
+ }, je = async (J) => {
16993
16993
  const {
16994
16994
  callOnSubmitSucceed: te = !0
16995
16995
  } = J || {};
16996
- !x && te && (fe == null || fe(ge(), ye(), Ce()));
16996
+ !x && te && (pe == null || pe(ge(), ye(), Ce()));
16997
16997
  }, Be = async (J) => {
16998
16998
  let te = !1;
16999
16999
  const {
17000
- callOnSubmitSucceed: ae = !0
17000
+ callOnSubmitSucceed: le = !0
17001
17001
  } = J || {};
17002
- if (N.current = !0, k(void 0), !he() && ge() && ae)
17002
+ if (N.current = !0, k(void 0), !he() && ge() && le)
17003
17003
  return N.current = !1, X == null || X(!1), Ie == null || Ie(), !0;
17004
17004
  if (await Se())
17005
17005
  return N.current = !1, showDialog$5(_), !1;
17006
17006
  T(!0), W == null || W(!0);
17007
17007
  try {
17008
- h === "api" ? await He(J) : await Ue(J), f && (U.current = void 0, De({
17008
+ h === "api" ? await Ve(J) : await je(J), f && (U.current = void 0, De({
17009
17009
  values: {},
17010
- fields: j,
17010
+ fields: q,
17011
17011
  reset: !0
17012
17012
  })), await _e(), te = !0;
17013
- } catch (pe) {
17014
- N.current = !1, T(!1), W == null || W(!1), Te == null || Te(pe), k(pe != null && pe.message ? pe.message : pe);
17013
+ } catch (se) {
17014
+ N.current = !1, T(!1), W == null || W(!1), Te == null || Te(se), k(se != null && se.message ? se.message : se);
17015
17015
  } finally {
17016
17016
  N.current = !1, W == null || W(!1), T(!1);
17017
17017
  }
@@ -17019,17 +17019,17 @@ function Form(e, t) {
17019
17019
  }, Le = ({
17020
17020
  fields: J,
17021
17021
  arch: te,
17022
- values: ae
17022
+ values: le
17023
17023
  }) => {
17024
17024
  var Oe;
17025
- const pe = new Form$4(J);
17026
- pe.parse(te, {
17025
+ const se = new Form$4(J);
17026
+ se.parse(te, {
17027
17027
  readOnly: d,
17028
17028
  values: {
17029
- ...ae,
17029
+ ...le,
17030
17030
  ...ie()
17031
17031
  }
17032
- }), D(pe), H && pe.string && ((Oe = H.setTitle) == null || Oe.call(H, pe.string));
17032
+ }), D(se), H && se.string && ((Oe = H.setTitle) == null || Oe.call(H, se.string));
17033
17033
  }, qe = async ({
17034
17034
  elementHasLostFocus: J = !1
17035
17035
  }) => {
@@ -17037,97 +17037,97 @@ function Form(e, t) {
17037
17037
  return;
17038
17038
  const te = getTouchedValues({
17039
17039
  source: B.current,
17040
- target: re(j),
17041
- fields: j
17042
- }), ae = Object.keys(te);
17043
- if (ae.length !== 0) {
17040
+ target: ne(q),
17041
+ fields: q
17042
+ }), le = Object.keys(te);
17043
+ if (le.length !== 0) {
17044
17044
  if (checkFieldsType({
17045
- changedFields: ae,
17046
- fields: j,
17045
+ changedFields: le,
17046
+ fields: q,
17047
17047
  types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
17048
17048
  }) && J !== !0)
17049
17049
  return;
17050
17050
  {
17051
- const pe = processValues(P.getFieldsValue(!0), j);
17052
- B.current = pe, l == null || l(pe), X == null || X(!0), ze(ae);
17051
+ const se = processValues(P.getFieldsValue(!0), q);
17052
+ B.current = se, l == null || l(se), X == null || X(!0), We(le);
17053
17053
  }
17054
17054
  }
17055
- }, We = debounce_1(qe, 100), ze = async (J) => {
17055
+ }, He = debounce_1(qe, 100), We = async (J) => {
17056
17056
  try {
17057
17057
  for (let te = 0; te < J.length; te += 1) {
17058
- const ae = J[te];
17059
- await Ge(ae);
17058
+ const le = J[te];
17059
+ await ze(le);
17060
17060
  }
17061
17061
  } catch (te) {
17062
17062
  showDialog$8(te);
17063
17063
  }
17064
- }, Ge = async (J) => {
17065
- const te = $ == null ? void 0 : $.onChangeFields[J], ae = processValues(P.getFieldsValue(!0), j);
17064
+ }, ze = async (J) => {
17065
+ const te = $ == null ? void 0 : $.onChangeFields[J];
17066
17066
  if (!te) {
17067
17067
  Le({
17068
- fields: j,
17068
+ fields: q,
17069
17069
  arch: M,
17070
- values: ae
17070
+ values: ne(q)
17071
17071
  });
17072
17072
  return;
17073
17073
  }
17074
- const pe = getOnChangePayload({
17074
+ const le = getOnChangePayload({
17075
17075
  values: {
17076
- ...ae,
17076
+ ...ne(q),
17077
17077
  context: {
17078
17078
  ...I,
17079
17079
  ...$ == null ? void 0 : $.context
17080
17080
  }
17081
17081
  },
17082
17082
  onChangeFieldActionArgs: te.args
17083
- }), Oe = await ConnectionProvider.getHandler().executeOnChange({
17083
+ }), se = await ConnectionProvider.getHandler().executeOnChange({
17084
17084
  model: n,
17085
17085
  action: te.method,
17086
17086
  ids: ge() ? [ge()] : [],
17087
- payload: pe,
17088
- fields: j
17087
+ payload: le,
17088
+ fields: q
17089
17089
  });
17090
- if (Oe.value) {
17091
- const Pe = {
17092
- ...ae,
17093
- ...Oe.value
17090
+ if (se.value) {
17091
+ const Oe = {
17092
+ ...ne(q),
17093
+ ...se.value
17094
17094
  };
17095
17095
  Le({
17096
- fields: j,
17096
+ fields: q,
17097
17097
  arch: M,
17098
- values: Pe
17098
+ values: Oe
17099
17099
  }), De({
17100
- values: Pe,
17101
- fields: j,
17100
+ values: Oe,
17101
+ fields: q,
17102
17102
  reset: !1
17103
17103
  });
17104
17104
  }
17105
- if (Oe.warning && Oe.warning.title && Oe.warning.message && !A.current) {
17105
+ if (se.warning && se.warning.title && se.warning.message && !A.current) {
17106
17106
  const {
17107
- title: Pe,
17108
- message: je
17109
- } = Oe.warning;
17110
- A.current = !0, showDialog$4(Pe, je, () => {
17107
+ title: Oe,
17108
+ message: ke
17109
+ } = se.warning;
17110
+ A.current = !0, showDialog$4(Oe, ke, () => {
17111
17111
  A.current = !1;
17112
17112
  });
17113
17113
  }
17114
- if (Oe.domain) {
17115
- const Pe = mergeFieldsDomain({
17116
- fieldsDomain: Oe.domain,
17117
- fields: j
17114
+ if (se.domain && Object.keys(se.domain).length > 0) {
17115
+ const Oe = mergeFieldsDomain({
17116
+ fieldsDomain: se.domain,
17117
+ fields: q
17118
17118
  });
17119
17119
  Le({
17120
- fields: Pe,
17120
+ fields: Oe,
17121
17121
  arch: M,
17122
- values: ae
17123
- }), L(Pe);
17122
+ values: ne(Oe)
17123
+ }), L(Oe);
17124
17124
  }
17125
17125
  };
17126
- async function Ye({
17126
+ async function Ge({
17127
17127
  action: J,
17128
17128
  context: te
17129
17129
  }) {
17130
- const ae = await ConnectionProvider.getHandler().execute({
17130
+ const le = await ConnectionProvider.getHandler().execute({
17131
17131
  model: n,
17132
17132
  action: J,
17133
17133
  payload: [ge()],
@@ -17137,27 +17137,27 @@ function Form(e, t) {
17137
17137
  ...I
17138
17138
  }
17139
17139
  });
17140
- if (typeof ae == "object" && ae !== null && Object.keys(ae).length === 0 && x)
17141
- fe == null || fe(ge(), ye(), Ce());
17142
- else if (ae.type && ae.type === "ir.actions.act_window_close")
17143
- fe == null || fe(ge(), ye(), Ce());
17144
- else if (ae.type) {
17145
- let pe = {};
17146
- ae.context && (pe = parseContext({
17147
- context: ae.context,
17148
- fields: j,
17140
+ if (typeof le == "object" && le !== null && Object.keys(le).length === 0 && x)
17141
+ pe == null || pe(ge(), ye(), Ce());
17142
+ else if (le.type && le.type === "ir.actions.act_window_close")
17143
+ pe == null || pe(ge(), ye(), Ce());
17144
+ else if (le.type) {
17145
+ let se = {};
17146
+ le.context && (se = parseContext({
17147
+ context: le.context,
17148
+ fields: q,
17149
17149
  values: ye()
17150
- })), await Ve({
17151
- actionData: ae,
17150
+ })), await Ue({
17151
+ actionData: le,
17152
17152
  context: {
17153
17153
  ...te,
17154
- ...pe
17154
+ ...se
17155
17155
  }
17156
17156
  });
17157
17157
  } else
17158
17158
  await _e();
17159
17159
  }
17160
- async function Ke({
17160
+ async function Ye({
17161
17161
  action: J
17162
17162
  }) {
17163
17163
  const te = await ConnectionProvider.getHandler().executeWorkflow({
@@ -17165,31 +17165,31 @@ function Form(e, t) {
17165
17165
  action: J,
17166
17166
  payload: ge()
17167
17167
  });
17168
- te.type && te.type === "ir.actions.act_window_close" ? fe == null || fe(ge(), ye(), Ce()) : await _e();
17168
+ te.type && te.type === "ir.actions.act_window_close" ? pe == null || pe(ge(), ye(), Ce()) : await _e();
17169
17169
  }
17170
- async function Ze({
17170
+ async function Ke({
17171
17171
  action: J,
17172
17172
  context: te
17173
17173
  }) {
17174
- const ae = (await ConnectionProvider.getHandler().readObjects({
17174
+ const le = (await ConnectionProvider.getHandler().readObjects({
17175
17175
  model: "ir.actions.actions",
17176
17176
  ids: [parseInt(J)],
17177
17177
  context: I
17178
17178
  }))[0];
17179
- await Ve({
17180
- actionData: ae,
17179
+ await Ue({
17180
+ actionData: le,
17181
17181
  context: te
17182
17182
  });
17183
17183
  }
17184
- async function Ve({
17184
+ async function Ue({
17185
17185
  actionData: J,
17186
17186
  context: te
17187
17187
  }) {
17188
17188
  const {
17189
- closeParent: ae
17190
- } = await (ue == null ? void 0 : ue({
17189
+ closeParent: le
17190
+ } = await (de == null ? void 0 : de({
17191
17191
  actionData: J,
17192
- fields: j,
17192
+ fields: q,
17193
17193
  values: ye(),
17194
17194
  context: {
17195
17195
  ...I,
@@ -17200,9 +17200,9 @@ function Form(e, t) {
17200
17200
  _e();
17201
17201
  }
17202
17202
  })) || {};
17203
- !C && ae && (fe == null || fe(ge(), ye(), Ce()));
17203
+ !C && le && (pe == null || pe(ge(), ye(), Ce()));
17204
17204
  }
17205
- function ce() {
17205
+ function ue() {
17206
17206
  qe({
17207
17207
  elementHasLostFocus: !0
17208
17208
  });
@@ -17210,7 +17210,7 @@ function Form(e, t) {
17210
17210
  async function ve({
17211
17211
  type: J,
17212
17212
  action: te,
17213
- context: ae
17213
+ context: le
17214
17214
  }) {
17215
17215
  if (J === "cancel") {
17216
17216
  Ie == null || Ie();
@@ -17223,17 +17223,17 @@ function Form(e, t) {
17223
17223
  try {
17224
17224
  await Be({
17225
17225
  callOnSubmitSucceed: !1
17226
- }), J === "object" ? await Ye({
17226
+ }), J === "object" ? await Ge({
17227
17227
  action: te,
17228
- context: ae
17229
- }) : J === "workflow" ? await Ke({
17228
+ context: le
17229
+ }) : J === "workflow" ? await Ye({
17230
17230
  action: te
17231
- }) : J === "action" && await Ze({
17231
+ }) : J === "action" && await Ke({
17232
17232
  action: te,
17233
- context: ae
17233
+ context: le
17234
17234
  });
17235
- } catch (pe) {
17236
- showDialog$8(pe);
17235
+ } catch (se) {
17236
+ showDialog$8(se);
17237
17237
  }
17238
17238
  }
17239
17239
  const be = () => !$ && !F ? /* @__PURE__ */ jsx(Spin, {}) : !n && !g || !y ? null : /* @__PURE__ */ jsx(Fragment, {
@@ -17248,15 +17248,15 @@ function Form(e, t) {
17248
17248
  getFieldValue: xe,
17249
17249
  executeButtonAction: ve,
17250
17250
  getContext: Ee,
17251
- setOriginalValue: Ae,
17251
+ setOriginalValue: Pe,
17252
17252
  submitForm: Be,
17253
17253
  fetchValues: _e,
17254
17254
  formHasChanges: he,
17255
- elementHasLostFocus: ce,
17255
+ elementHasLostFocus: ue,
17256
17256
  children: /* @__PURE__ */ jsx(Form$3, {
17257
17257
  form: P,
17258
17258
  onFieldsChange: () => {
17259
- We({
17259
+ He({
17260
17260
  elementHasLostFocus: !1
17261
17261
  });
17262
17262
  },
@@ -17268,7 +17268,7 @@ function Form(e, t) {
17268
17268
  })
17269
17269
  })
17270
17270
  })
17271
- }), ke = () => /* @__PURE__ */ jsxs(Fragment, {
17271
+ }), Ae = () => /* @__PURE__ */ jsxs(Fragment, {
17272
17272
  children: [/* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
17273
17273
  justify: "end",
17274
17274
  children: /* @__PURE__ */ jsxs(Space, {
@@ -17308,7 +17308,7 @@ function Form(e, t) {
17308
17308
  message: JSON.stringify(F),
17309
17309
  type: "error",
17310
17310
  banner: !0
17311
- }), be(), s && ke()]
17311
+ }), be(), s && Ae()]
17312
17312
  })
17313
17313
  }) : null;
17314
17314
  }
@@ -18315,26 +18315,26 @@ function Tree(e) {
18315
18315
  });
18316
18316
  function $() {
18317
18317
  var H;
18318
- const q = O.current.columns.filter((K) => K.sum !== void 0).map((K) => ({
18318
+ const j = O.current.columns.filter((K) => K.sum !== void 0).map((K) => ({
18319
18319
  label: K.sum,
18320
18320
  field: K.id
18321
18321
  }));
18322
- if (!q || q.length === 0)
18322
+ if (!j || j.length === 0)
18323
18323
  return null;
18324
- let j = [], L = ((H = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : H.length) > 0 ? I.filter((K) => d == null ? void 0 : d.selectedRowKeys.includes(K.id)) : I;
18325
- return q.forEach((K) => {
18324
+ let q = [], L = ((H = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : H.length) > 0 ? I.filter((K) => d == null ? void 0 : d.selectedRowKeys.includes(K.id)) : I;
18325
+ return j.forEach((K) => {
18326
18326
  const G = L.reduce((z, V) => V[K.field] && !isNaN(V[K.field]) ? z + V[K.field] : z, 0);
18327
- j.push(`${K.label}: ${Math.round(G * 100) / 100}`);
18327
+ q.push(`${K.label}: ${Math.round(G * 100) / 100}`);
18328
18328
  }), /* @__PURE__ */ jsx("div", {
18329
18329
  className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
18330
- children: j.join(", ")
18330
+ children: q.join(", ")
18331
18331
  });
18332
18332
  }
18333
18333
  let D, P = f;
18334
18334
  if (O.current !== null) {
18335
18335
  D = calculateColumnsWidth(y, I, 600);
18336
- const q = O.current;
18337
- f && q.columns.some((j) => j.sum !== void 0) && (P = f - 30);
18336
+ const j = O.current;
18337
+ f && j.columns.some((q) => q.sum !== void 0) && (P = f - 30);
18338
18338
  }
18339
18339
  return O.current === null ? /* @__PURE__ */ jsx(Spin, {
18340
18340
  style: {
@@ -18382,11 +18382,11 @@ function SearchTree(e, t) {
18382
18382
  rootTree: f = !1,
18383
18383
  parentContext: h = {},
18384
18384
  onChangeSelectedRowKeys: p
18385
- } = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [$, D] = useState(0), [P, M] = useState(DEFAULT_SEARCH_LIMIT$1), [q, j] = useState(), L = useRef([]), [H, K] = useState(), [G, z] = useState([]), [V, U] = useState(void 0), [Y, B] = useState(!1), [A, N] = useState(), [Z, Q] = useState(), [E, S] = useState(!1), W = useRef([]), [X, ne] = useState(200), ee = useRef([]), oe = useRef(), {
18386
- height: le
18387
- } = useWindowDimensions(), ue = useContext(ActionViewContext), {
18388
- setResults: se = void 0,
18389
- setCurrentItemIndex: fe = void 0,
18385
+ } = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [$, D] = useState(0), [P, M] = useState(DEFAULT_SEARCH_LIMIT$1), [j, q] = useState(), L = useRef([]), [H, K] = useState(), [G, z] = useState([]), [V, U] = useState(void 0), [Y, B] = useState(!1), [A, N] = useState(), [Z, Q] = useState(), [E, S] = useState(!1), W = useRef([]), [X, re] = useState(200), ee = useRef([]), oe = useRef(), {
18386
+ height: ce
18387
+ } = useWindowDimensions(), de = useContext(ActionViewContext), {
18388
+ setResults: ae = void 0,
18389
+ setCurrentItemIndex: pe = void 0,
18390
18390
  currentId: Ie = void 0,
18391
18391
  results: Te = void 0,
18392
18392
  selectedRowItems: ge = void 0,
@@ -18396,10 +18396,10 @@ function SearchTree(e, t) {
18396
18396
  setSearchVisible: Ce = void 0,
18397
18397
  sorter: Ee = void 0,
18398
18398
  setSorter: ie = void 0,
18399
- setTotalItems: de = void 0,
18399
+ setTotalItems: fe = void 0,
18400
18400
  setSearchTreeNameSearch: he = void 0,
18401
- setTreeIsLoading: re = void 0
18402
- } = (f ? ue : {}) || {}, me = useContext(ContentRootContext), {
18401
+ setTreeIsLoading: ne = void 0
18402
+ } = (f ? de : {}) || {}, me = useContext(ContentRootContext), {
18403
18403
  processAction: xe
18404
18404
  } = me || {};
18405
18405
  useImperativeHandle(t, () => ({
@@ -18407,24 +18407,24 @@ function SearchTree(e, t) {
18407
18407
  m.current = !1, Ne();
18408
18408
  }
18409
18409
  }));
18410
- const Se = (ce) => {
18411
- S(!0), k(ce), D((ce - 1) * P);
18410
+ const Se = (ue) => {
18411
+ S(!0), k(ue), D((ue - 1) * P);
18412
18412
  };
18413
- function Re(ce) {
18414
- se == null || se([...ce]), z([...ce]);
18413
+ function Re(ue) {
18414
+ ae == null || ae([...ue]), z([...ue]);
18415
18415
  }
18416
- const _e = useCallback(() => Te || G, [Te, G]), Ae = async () => {
18417
- const ce = await ConnectionProvider.getHandler().nameSearch({
18416
+ const _e = useCallback(() => Te || G, [Te, G]), Pe = async () => {
18417
+ const ue = await ConnectionProvider.getHandler().nameSearch({
18418
18418
  model: C,
18419
18419
  payload: c,
18420
18420
  limit: y.current,
18421
18421
  attrs: W.current.length > 0 ? W.current : u,
18422
18422
  context: h
18423
18423
  });
18424
- if (K(ce.length), de == null || de(ce.length), ce.length > 0) {
18425
- const ve = ce.map((pe) => pe == null ? void 0 : pe[0]), {
18424
+ if (K(ue.length), fe == null || fe(ue.length), ue.length > 0) {
18425
+ const ve = ue.map((se) => se == null ? void 0 : se[0]), {
18426
18426
  colors: be
18427
- } = getTree(O), ke = await ConnectionProvider.getHandler().readEvalUiObjects({
18427
+ } = getTree(O), Ae = await ConnectionProvider.getHandler().readEvalUiObjects({
18428
18428
  model: C,
18429
18429
  ids: ve,
18430
18430
  arch: O == null ? void 0 : O.arch,
@@ -18436,9 +18436,9 @@ function SearchTree(e, t) {
18436
18436
  attrs: be && {
18437
18437
  colors: be
18438
18438
  }
18439
- }), J = ke[0];
18440
- ee.current = [...J], U(getColorMap(ke[1]));
18441
- const te = J.map((pe) => pe.id), ae = Ee !== void 0 ? sortResults({
18439
+ }), J = Ae[0];
18440
+ ee.current = [...J], U(getColorMap(Ae[1]));
18441
+ const te = J.map((se) => se.id), le = Ee !== void 0 ? sortResults({
18442
18442
  resultsToSort: J,
18443
18443
  sorter: Ee,
18444
18444
  fields: {
@@ -18446,25 +18446,25 @@ function SearchTree(e, t) {
18446
18446
  ...b.fields
18447
18447
  }
18448
18448
  }) : [...ee.current];
18449
- Re(ae), te.length > 0 ? fe == null || fe(0) : fe == null || fe(void 0);
18449
+ Re(le), te.length > 0 ? pe == null || pe(0) : pe == null || pe(void 0);
18450
18450
  } else
18451
- Re([]), fe == null || fe(void 0);
18451
+ Re([]), pe == null || pe(void 0);
18452
18452
  m.current = !0;
18453
- }, Me = (ce) => {
18453
+ }, Me = (ue) => {
18454
18454
  const ve = {};
18455
- return ce.forEach((be) => {
18455
+ return ue.forEach((be) => {
18456
18456
  Array.isArray(be) && be[0] ? ve[be[0]] = !0 : ve[be] = !0;
18457
18457
  }), Object.keys(ve);
18458
- }, $e = (ce, ve) => {
18459
- const be = ce, ke = Me(ce);
18458
+ }, $e = (ue, ve) => {
18459
+ const be = ue, Ae = Me(ue);
18460
18460
  return ve.forEach((J) => {
18461
- Array.isArray(J) && J[0] ? ke.includes(J[0]) || be.push(J) : ke.includes(J) || be.push(J);
18461
+ Array.isArray(J) && J[0] ? Ae.includes(J[0]) || be.push(J) : Ae.includes(J) || be.push(J);
18462
18462
  }), be;
18463
18463
  }, De = async () => {
18464
- const ce = W.current.length > 0 ? W.current : u, ve = $e(L.current, ce), {
18464
+ const ue = W.current.length > 0 ? W.current : u, ve = $e(L.current, ue), {
18465
18465
  colors: be
18466
18466
  } = getTree(O), {
18467
- totalItems: ke,
18467
+ totalItems: Ae,
18468
18468
  results: J,
18469
18469
  attrsEvaluated: te
18470
18470
  } = await ConnectionProvider.getHandler().searchForTree({
@@ -18482,7 +18482,7 @@ function SearchTree(e, t) {
18482
18482
  }
18483
18483
  });
18484
18484
  U(getColorMap(te)), ee.current = [...J];
18485
- const ae = Ee !== void 0 ? sortResults({
18485
+ const le = Ee !== void 0 ? sortResults({
18486
18486
  resultsToSort: J,
18487
18487
  sorter: Ee,
18488
18488
  fields: {
@@ -18490,24 +18490,24 @@ function SearchTree(e, t) {
18490
18490
  ...b.fields
18491
18491
  }
18492
18492
  }) : [...ee.current];
18493
- if (ke.then((pe) => {
18494
- K(pe), de == null || de(pe);
18495
- }), Re(ae), Te && ae.length > 0) {
18496
- const pe = ae.findIndex((Oe) => Ie === Oe.id);
18497
- pe === -1 ? fe == null || fe(0) : fe == null || fe(pe);
18493
+ if (Ae.then((se) => {
18494
+ K(se), fe == null || fe(se);
18495
+ }), Re(le), Te && le.length > 0) {
18496
+ const se = le.findIndex((Oe) => Ie === Oe.id);
18497
+ se === -1 ? pe == null || pe(0) : pe == null || pe(se);
18498
18498
  } else
18499
- fe == null || fe(void 0);
18499
+ pe == null || pe(void 0);
18500
18500
  }, Ne = async () => {
18501
18501
  try {
18502
- S(!0), re == null || re(!0), c && !m.current ? await Ae() : await De();
18503
- } catch (ce) {
18504
- N(ce);
18502
+ S(!0), ne == null || ne(!0), c && !m.current ? await Pe() : await De();
18503
+ } catch (ue) {
18504
+ N(ue);
18505
18505
  } finally {
18506
- S(!1), B(!1), re == null || re(!1);
18506
+ S(!1), B(!1), ne == null || ne(!1);
18507
18507
  }
18508
18508
  };
18509
- async function He(ce) {
18510
- const ve = ce[(O == null ? void 0 : O.field_parent) || "child_id"], be = await ConnectionProvider.getHandler().readObjects({
18509
+ async function Ve(ue) {
18510
+ const ve = ue[(O == null ? void 0 : O.field_parent) || "child_id"], be = await ConnectionProvider.getHandler().readObjects({
18511
18511
  model: C,
18512
18512
  ids: ve,
18513
18513
  fields: O.field_parent ? {
@@ -18521,25 +18521,25 @@ function SearchTree(e, t) {
18521
18521
  useEffect(() => {
18522
18522
  !x || d && (m.current = !1, Ne());
18523
18523
  }, [F, P, $, x, d, c]);
18524
- const Ue = async (ce) => {
18525
- I(!1), v(!0), Q(void 0), re == null || re(!0);
18524
+ const je = async (ue) => {
18525
+ I(!1), v(!0), Q(void 0), ne == null || ne(!0);
18526
18526
  try {
18527
- ce === "action" ? await Be() : await Le(), I(!0);
18527
+ ue === "action" ? await Be() : await Le(), I(!0);
18528
18528
  } catch (ve) {
18529
18529
  Q(ve);
18530
18530
  } finally {
18531
- v(!1), re == null || re(!1);
18531
+ v(!1), ne == null || ne(!1);
18532
18532
  }
18533
18533
  }, Be = async () => {
18534
- const ce = await ConnectionProvider.getHandler().getViewsForAction({
18534
+ const ue = await ConnectionProvider.getHandler().getViewsForAction({
18535
18535
  action: n,
18536
18536
  context: h
18537
18537
  });
18538
- W.current = ce.domain, T(ce.views.get("form")), _(ce.views.get("tree")), w(ce.model), j(ce.limit), M(ce.limit);
18538
+ W.current = ue.domain, T(ue.views.get("form")), _(ue.views.get("tree")), w(ue.model), q(ue.limit), M(ue.limit);
18539
18539
  }, Le = async () => {
18540
18540
  w(r);
18541
- let ce = o;
18542
- o || (ce = await ConnectionProvider.getHandler().getView({
18541
+ let ue = o;
18542
+ o || (ue = await ConnectionProvider.getHandler().getView({
18543
18543
  model: r,
18544
18544
  type: "form",
18545
18545
  context: h
@@ -18549,25 +18549,25 @@ function SearchTree(e, t) {
18549
18549
  model: r,
18550
18550
  type: "tree",
18551
18551
  context: h
18552
- })), T(ce), _(ve), j(void 0), M(DEFAULT_SEARCH_LIMIT$1);
18552
+ })), T(ue), _(ve), q(void 0), M(DEFAULT_SEARCH_LIMIT$1);
18553
18553
  };
18554
18554
  useEffect(() => {
18555
- n ? Ue("action") : r && Ue("model");
18555
+ n ? je("action") : r && je("model");
18556
18556
  }, [n, r]);
18557
18557
  const qe = () => {
18558
- E || (he == null || he(void 0), L.current = [], ye == null || ye([]), N(void 0), D(0), k(1), M(q || DEFAULT_SEARCH_LIMIT$1));
18559
- }, We = ({
18560
- params: ce,
18558
+ E || (he == null || he(void 0), L.current = [], ye == null || ye([]), N(void 0), D(0), k(1), M(j || DEFAULT_SEARCH_LIMIT$1));
18559
+ }, He = ({
18560
+ params: ue,
18561
18561
  limit: ve,
18562
18562
  offset: be
18563
18563
  }) => {
18564
- E || (L.current = ce, he == null || he(void 0), we == null || we([]), ye == null || ye(ce), Ce == null || Ce(!1), B(!0), N(void 0), k(1), ve && M(ve), be && D(be), Ne());
18565
- }, ze = (ce) => {
18566
- y.current = ce;
18567
- }, Ge = async (ce) => {
18564
+ E || (L.current = ue, he == null || he(void 0), we == null || we([]), ye == null || ye(ue), Ce == null || Ce(!1), B(!0), N(void 0), k(1), ve && M(ve), be && D(be), Ne());
18565
+ }, We = (ue) => {
18566
+ y.current = ue;
18567
+ }, ze = async (ue) => {
18568
18568
  const {
18569
18569
  id: ve
18570
- } = ce;
18570
+ } = ue;
18571
18571
  oe.current || (oe.current = await ConnectionProvider.getHandler().treeButOpen({
18572
18572
  id: O.view_id,
18573
18573
  model: C,
@@ -18579,17 +18579,17 @@ function SearchTree(e, t) {
18579
18579
  fields: O.fields,
18580
18580
  values: {
18581
18581
  active_id: ve,
18582
- ...ce
18582
+ ...ue
18583
18583
  },
18584
18584
  context: h
18585
18585
  }));
18586
- }, Ye = async (ce) => {
18586
+ }, Ge = async (ue) => {
18587
18587
  const {
18588
18588
  id: ve
18589
- } = ce;
18589
+ } = ue;
18590
18590
  if (O != null && O.isExpandable) {
18591
18591
  try {
18592
- await Ge(ce);
18592
+ await ze(ue);
18593
18593
  } catch (be) {
18594
18594
  showDialog$8(be);
18595
18595
  }
@@ -18602,24 +18602,24 @@ function SearchTree(e, t) {
18602
18602
  treeView: O
18603
18603
  });
18604
18604
  };
18605
- function Ke(ce) {
18606
- const ve = _e().filter((be) => ce.includes(be.id));
18607
- we == null || we(ve), p == null || p(ce);
18605
+ function Ye(ue) {
18606
+ const ve = _e().filter((be) => ue.includes(be.id));
18607
+ we == null || we(ve), p == null || p(ue);
18608
18608
  }
18609
- function Ze() {
18610
- return O != null && O.isExpandable ? le - 160 : le - (X + 210);
18609
+ function Ke() {
18610
+ return O != null && O.isExpandable ? ce - 160 : ce - (X + 210);
18611
18611
  }
18612
- const Ve = () => !O || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
18612
+ const Ue = () => !O || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
18613
18613
  children: [/* @__PURE__ */ jsx(Measure, {
18614
18614
  bounds: !0,
18615
- onResize: (ce) => {
18615
+ onResize: (ue) => {
18616
18616
  var ve;
18617
- ne((ve = ce.bounds) == null ? void 0 : ve.height);
18617
+ re((ve = ue.bounds) == null ? void 0 : ve.height);
18618
18618
  },
18619
18619
  children: ({
18620
- measureRef: ce
18620
+ measureRef: ue
18621
18621
  }) => /* @__PURE__ */ jsx("div", {
18622
- ref: ce,
18622
+ ref: ue,
18623
18623
  children: /* @__PURE__ */ jsxs("div", {
18624
18624
  style: {
18625
18625
  display: Fe ? "block" : "none"
@@ -18634,8 +18634,8 @@ function SearchTree(e, t) {
18634
18634
  limit: P,
18635
18635
  offset: $,
18636
18636
  isSearching: Y,
18637
- onSubmit: We,
18638
- onLimitChange: ze
18637
+ onSubmit: He,
18638
+ onLimitChange: We
18639
18639
  }), A && /* @__PURE__ */ jsx(Alert, {
18640
18640
  className: "mt-10",
18641
18641
  message: A,
@@ -18654,19 +18654,19 @@ function SearchTree(e, t) {
18654
18654
  results: _e(),
18655
18655
  onRequestPageChange: Se,
18656
18656
  loading: E,
18657
- onRowClicked: Ye,
18658
- scrollY: l || Ze(),
18657
+ onRowClicked: Ge,
18658
+ scrollY: l || Ke(),
18659
18659
  colorsForResults: V,
18660
18660
  rowSelection: {
18661
- selectedRowKeys: ge == null ? void 0 : ge.map((ce) => ce.id),
18662
- onChange: Ke
18661
+ selectedRowKeys: ge == null ? void 0 : ge.map((ue) => ue.id),
18662
+ onChange: Ye
18663
18663
  },
18664
18664
  sorter: Ee,
18665
- onChangeSort: (ce) => {
18666
- ie == null || ie(ce);
18667
- const ve = ce !== void 0 ? sortResults({
18665
+ onChangeSort: (ue) => {
18666
+ ie == null || ie(ue);
18667
+ const ve = ue !== void 0 ? sortResults({
18668
18668
  resultsToSort: _e(),
18669
- sorter: ce,
18669
+ sorter: ue,
18670
18670
  fields: {
18671
18671
  ...O.fields,
18672
18672
  ...b.fields
@@ -18674,7 +18674,7 @@ function SearchTree(e, t) {
18674
18674
  }) : [...ee.current];
18675
18675
  Re(ve);
18676
18676
  },
18677
- onFetchChildrenForRecord: O.isExpandable ? He : void 0,
18677
+ onFetchChildrenForRecord: O.isExpandable ? Ve : void 0,
18678
18678
  childField: O.field_parent
18679
18679
  })]
18680
18680
  });
@@ -18687,7 +18687,7 @@ function SearchTree(e, t) {
18687
18687
  style: d ? {} : {
18688
18688
  display: "none"
18689
18689
  },
18690
- children: g ? /* @__PURE__ */ jsx(Spin, {}) : Ve()
18690
+ children: g ? /* @__PURE__ */ jsx(Spin, {}) : Ue()
18691
18691
  });
18692
18692
  }
18693
18693
  const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
@@ -18828,11 +18828,11 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18828
18828
  getContext: k,
18829
18829
  setOriginalValue: $,
18830
18830
  elementHasLostFocus: D
18831
- } = _ || {}, P = useRef([]), [M, q] = useState([]), j = t && t[0], L = t && t[1] || "";
18831
+ } = _ || {}, P = useRef([]), [M, j] = useState([]), q = t && t[0], L = t && t[1] || "";
18832
18832
  useEffect(() => {
18833
18833
  !Array.isArray(t) && !isNaN(t) && V(t);
18834
18834
  }, [t]), useEffect(() => {
18835
- j && L.length === 0 ? V(j) : j && L.length > 0 ? w(L) : !j && !L && w(O.current || "");
18835
+ q && L.length === 0 ? V(q) : q && L.length > 0 ? w(L) : !q && !L && w(O.current || "");
18836
18836
  }, [t]);
18837
18837
  const H = (A) => {
18838
18838
  n == null || n(A), D == null || D();
@@ -18910,10 +18910,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18910
18910
  })), b && b.length > 0 && (P.current = P.current.concat(transformDomainForChildWidget({
18911
18911
  domain: b,
18912
18912
  widgetFieldName: l
18913
- }))), q(P.current);
18913
+ }))), j(P.current);
18914
18914
  }
18915
18915
  async function Y(A) {
18916
- A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await G()) : A.code === "Backspace" && j !== void 0 && (A.preventDefault(), A.stopPropagation(), H([void 0, ""]));
18916
+ A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await G()) : A.code === "Backspace" && q !== void 0 && (A.preventDefault(), A.stopPropagation(), H([void 0, ""]));
18917
18917
  }
18918
18918
  return /* @__PURE__ */ jsxs(Row, {
18919
18919
  gutter: 8,
@@ -18929,7 +18929,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18929
18929
  onBlur: G,
18930
18930
  onKeyDown: Y,
18931
18931
  suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
18932
- id: j,
18932
+ id: q,
18933
18933
  model: a,
18934
18934
  context: {
18935
18935
  ...k == null ? void 0 : k(),
@@ -18941,7 +18941,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18941
18941
  flex: "32px",
18942
18942
  children: /* @__PURE__ */ jsx(Button$1, {
18943
18943
  icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
18944
- disabled: j === void 0 || L === "" || C === void 0,
18944
+ disabled: q === void 0 || L === "" || C === void 0,
18945
18945
  onClick: () => {
18946
18946
  g(!0);
18947
18947
  },
@@ -18965,7 +18965,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18965
18965
  ...c
18966
18966
  },
18967
18967
  visible: f,
18968
- nameSearch: j ? void 0 : I,
18968
+ nameSearch: q ? void 0 : I,
18969
18969
  onSelectValues: (A) => {
18970
18970
  h(!1), V(A[0]), y.current = !1, O.current = void 0;
18971
18971
  },
@@ -20347,7 +20347,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20347
20347
  function D() {
20348
20348
  l && $(h());
20349
20349
  }
20350
- var P = useVisibleStatus(n, D), M = _slicedToArray(P, 2), q = M[0], j = M[1], L = useRef();
20350
+ var P = useVisibleStatus(n, D), M = _slicedToArray(P, 2), j = M[0], q = M[1], L = useRef();
20351
20351
  function H() {
20352
20352
  return f || h;
20353
20353
  }
@@ -20356,11 +20356,11 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20356
20356
  (A = y.current) === null || A === void 0 || A.forceAlign();
20357
20357
  }
20358
20358
  function G(A, N) {
20359
- if (q === "align") {
20359
+ if (j === "align") {
20360
20360
  var Z = p(N);
20361
20361
  b(Z), _ !== Z ? Promise.resolve().then(function() {
20362
20362
  K();
20363
- }) : j(function() {
20363
+ }) : q(function() {
20364
20364
  var Q;
20365
20365
  (Q = L.current) === null || Q === void 0 || Q.call(L);
20366
20366
  }), g == null || g(A, N);
@@ -20370,7 +20370,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20370
20370
  ["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(A) {
20371
20371
  var N = z[A];
20372
20372
  z[A] = function(Z, Q) {
20373
- return j(), N == null ? void 0 : N(Z, Q);
20373
+ return q(), N == null ? void 0 : N(Z, Q);
20374
20374
  };
20375
20375
  });
20376
20376
  function V() {
@@ -20379,8 +20379,8 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20379
20379
  });
20380
20380
  }
20381
20381
  React.useEffect(function() {
20382
- !z.motionName && q === "motion" && j();
20383
- }, [z.motionName, q]), React.useImperativeHandle(t, function() {
20382
+ !z.motionName && j === "motion" && q();
20383
+ }, [z.motionName, j]), React.useImperativeHandle(t, function() {
20384
20384
  return {
20385
20385
  forceAlign: K,
20386
20386
  getElement: function() {
@@ -20391,10 +20391,10 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20391
20391
  var U = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, k), {}, {
20392
20392
  zIndex: c
20393
20393
  }, a), {}, {
20394
- opacity: q === "motion" || q === "stable" || !n ? void 0 : 0,
20395
- pointerEvents: q === "stable" ? void 0 : "none"
20394
+ opacity: j === "motion" || j === "stable" || !n ? void 0 : 0,
20395
+ pointerEvents: j === "stable" ? void 0 : "none"
20396
20396
  }), Y = !0;
20397
- (d == null ? void 0 : d.points) && (q === "align" || q === "stable") && (Y = !1);
20397
+ (d == null ? void 0 : d.points) && (j === "align" || j === "stable") && (Y = !1);
20398
20398
  var B = s;
20399
20399
  return React.Children.count(s) > 1 && (B = /* @__PURE__ */ jsx("div", {
20400
20400
  className: "".concat(r, "-content"),
@@ -20920,12 +20920,12 @@ var autoAdjustOverflow = {
20920
20920
  overlayInnerStyle: F
20921
20921
  }, "content")
20922
20922
  ];
20923
- }, M = !1, q = !1;
20923
+ }, M = !1, j = !1;
20924
20924
  if (typeof _ == "boolean")
20925
20925
  M = _;
20926
20926
  else if (_ && _typeof$1(_) === "object") {
20927
- var j = _.keepParent;
20928
- M = j === !0, q = j === !1;
20927
+ var q = _.keepParent;
20928
+ M = q === !0, j = q === !1;
20929
20929
  }
20930
20930
  return /* @__PURE__ */ jsx(Trigger, {
20931
20931
  ...Object.assign({
@@ -20944,7 +20944,7 @@ var autoAdjustOverflow = {
20944
20944
  popupAnimation: I,
20945
20945
  defaultPopupVisible: b,
20946
20946
  destroyPopupOnHide: M,
20947
- autoDestroy: q,
20947
+ autoDestroy: j,
20948
20948
  mouseLeaveDelay: u,
20949
20949
  popupStyle: d,
20950
20950
  mouseEnterDelay: c
@@ -21178,30 +21178,30 @@ function requireTooltip() {
21178
21178
  "visible" in m && $(m.visible);
21179
21179
  }, [m.visible]);
21180
21180
  var D = function() {
21181
- var ne = m.title, ee = m.overlay;
21182
- return !ne && !ee && ne !== 0;
21183
- }, P = function(ne) {
21184
- "visible" in m || $(D() ? !1 : ne), m.onVisibleChange && !D() && m.onVisibleChange(ne);
21181
+ var re = m.title, ee = m.overlay;
21182
+ return !re && !ee && re !== 0;
21183
+ }, P = function(re) {
21184
+ "visible" in m || $(D() ? !1 : re), m.onVisibleChange && !D() && m.onVisibleChange(re);
21185
21185
  }, M = function() {
21186
- var ne = m.builtinPlacements, ee = m.arrowPointAtCenter, oe = m.autoAdjustOverflow;
21187
- return ne || (0, u.default)({
21186
+ var re = m.builtinPlacements, ee = m.arrowPointAtCenter, oe = m.autoAdjustOverflow;
21187
+ return re || (0, u.default)({
21188
21188
  arrowPointAtCenter: ee,
21189
21189
  autoAdjustOverflow: oe
21190
21190
  });
21191
- }, q = function(ne, ee) {
21192
- var oe = M(), le = Object.keys(oe).filter(function(fe) {
21193
- return oe[fe].points[0] === ee.points[0] && oe[fe].points[1] === ee.points[1];
21191
+ }, j = function(re, ee) {
21192
+ var oe = M(), ce = Object.keys(oe).filter(function(pe) {
21193
+ return oe[pe].points[0] === ee.points[0] && oe[pe].points[1] === ee.points[1];
21194
21194
  })[0];
21195
- if (!!le) {
21196
- var ue = ne.getBoundingClientRect(), se = {
21195
+ if (!!ce) {
21196
+ var de = re.getBoundingClientRect(), ae = {
21197
21197
  top: "50%",
21198
21198
  left: "50%"
21199
21199
  };
21200
- le.indexOf("top") >= 0 || le.indexOf("Bottom") >= 0 ? se.top = "".concat(ue.height - ee.offset[1], "px") : (le.indexOf("Top") >= 0 || le.indexOf("bottom") >= 0) && (se.top = "".concat(-ee.offset[1], "px")), le.indexOf("left") >= 0 || le.indexOf("Right") >= 0 ? se.left = "".concat(ue.width - ee.offset[0], "px") : (le.indexOf("right") >= 0 || le.indexOf("Left") >= 0) && (se.left = "".concat(-ee.offset[0], "px")), ne.style.transformOrigin = "".concat(se.left, " ").concat(se.top);
21200
+ ce.indexOf("top") >= 0 || ce.indexOf("Bottom") >= 0 ? ae.top = "".concat(de.height - ee.offset[1], "px") : (ce.indexOf("Top") >= 0 || ce.indexOf("bottom") >= 0) && (ae.top = "".concat(-ee.offset[1], "px")), ce.indexOf("left") >= 0 || ce.indexOf("Right") >= 0 ? ae.left = "".concat(de.width - ee.offset[0], "px") : (ce.indexOf("right") >= 0 || ce.indexOf("Left") >= 0) && (ae.left = "".concat(-ee.offset[0], "px")), re.style.transformOrigin = "".concat(ae.left, " ").concat(ae.top);
21201
21201
  }
21202
- }, j = function() {
21203
- var ne = m.title, ee = m.overlay;
21204
- return ne === 0 ? ne : ee || ne || "";
21202
+ }, q = function() {
21203
+ var re = m.title, ee = m.overlay;
21204
+ return re === 0 ? re : ee || re || "";
21205
21205
  }, L = m.prefixCls, H = m.openClassName, K = m.getPopupContainer, G = m.getTooltipContainer, z = m.overlayClassName, V = m.color, U = m.overlayInnerStyle, Y = m.children, B = _("tooltip", L), A = k;
21206
21206
  !("visible" in m) && D() && (A = !1);
21207
21207
  var N = v((0, d.isValidElement)(Y) ? Y : /* @__PURE__ */ s.createElement("span", null, Y), B), Z = N.props, Q = (0, l.default)(Z.className, (0, r.default)({}, H || "".concat(B, "-open"), !0)), E = (0, l.default)(z, (C = {}, (0, r.default)(C, "".concat(B, "-rtl"), b === "rtl"), (0, r.default)(C, "".concat(B, "-").concat(V), V && g.test(V)), C)), S = U, W;
@@ -21215,10 +21215,10 @@ function requireTooltip() {
21215
21215
  getTooltipContainer: K || G || O,
21216
21216
  ref: y,
21217
21217
  builtinPlacements: M(),
21218
- overlay: j(),
21218
+ overlay: q(),
21219
21219
  visible: A,
21220
21220
  onVisibleChange: P,
21221
- onPopupAlign: q,
21221
+ onPopupAlign: j,
21222
21222
  overlayInnerStyle: S,
21223
21223
  arrowContent: /* @__PURE__ */ s.createElement("span", {
21224
21224
  className: "".concat(B, "-arrow-content"),
@@ -21286,9 +21286,9 @@ function requireTypography() {
21286
21286
  }, f = function(x, I) {
21287
21287
  var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y, w = x.className, O = x["aria-label"], _ = x.setContentRef, b = x.children, T = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), F = I;
21288
21288
  return _ && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), F = (0, c.composeRef)(I, _)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
21289
- var $ = k.getPrefixCls, D = k.direction, P = C, M = $("typography", m), q = (0, s.default)(M, (0, o.default)({}, "".concat(M, "-rtl"), D === "rtl"), w);
21289
+ var $ = k.getPrefixCls, D = k.direction, P = C, M = $("typography", m), j = (0, s.default)(M, (0, o.default)({}, "".concat(M, "-rtl"), D === "rtl"), w);
21290
21290
  return /* @__PURE__ */ a.createElement(P, (0, r.default)({
21291
- className: q,
21291
+ className: j,
21292
21292
  "aria-label": O,
21293
21293
  ref: F
21294
21294
  }, T), b);
@@ -21359,10 +21359,10 @@ function requireEditable() {
21359
21359
  U.setSelectionRange(Y, Y);
21360
21360
  }
21361
21361
  }, []);
21362
- var q = function(Y) {
21362
+ var j = function(Y) {
21363
21363
  var B = Y.target;
21364
21364
  M(B.value.replace(/[\n\r]/g, ""));
21365
- }, j = function() {
21365
+ }, q = function() {
21366
21366
  F.current = !0;
21367
21367
  }, L = function() {
21368
21368
  F.current = !1;
@@ -21384,10 +21384,10 @@ function requireEditable() {
21384
21384
  ref: T,
21385
21385
  maxLength: y,
21386
21386
  value: P,
21387
- onChange: q,
21387
+ onChange: j,
21388
21388
  onKeyDown: H,
21389
21389
  onKeyUp: G,
21390
- onCompositionStart: j,
21390
+ onCompositionStart: q,
21391
21391
  onCompositionEnd: L,
21392
21392
  onBlur: z,
21393
21393
  "aria-label": v,
@@ -21457,16 +21457,16 @@ function requireUtil() {
21457
21457
  return V !== l;
21458
21458
  }), M = Array.prototype.slice.apply(u.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
21459
21459
  (0, r.unmountComponentAtNode)(u);
21460
- var q = [];
21460
+ var j = [];
21461
21461
  u.innerHTML = "";
21462
- var j = document.createElement("span");
21463
- u.appendChild(j);
21462
+ var q = document.createElement("span");
21463
+ u.appendChild(q);
21464
21464
  var L = document.createTextNode(C + _);
21465
- j.appendChild(L), M.forEach(function(z) {
21465
+ q.appendChild(L), M.forEach(function(z) {
21466
21466
  u.appendChild(z);
21467
21467
  });
21468
21468
  function H(z) {
21469
- j.insertBefore(z, L);
21469
+ q.insertBefore(z, L);
21470
21470
  }
21471
21471
  function K(z, V) {
21472
21472
  var U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, Y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : V.length, B = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((U + Y) / 2), N = V.slice(0, A);
@@ -21490,7 +21490,7 @@ function requireUtil() {
21490
21490
  return H(z), D() ? {
21491
21491
  finished: !1,
21492
21492
  reactNode: $[V]
21493
- } : (j.removeChild(z), {
21493
+ } : (q.removeChild(z), {
21494
21494
  finished: !0,
21495
21495
  reactNode: null
21496
21496
  });
@@ -21505,9 +21505,9 @@ function requireUtil() {
21505
21505
  }
21506
21506
  return P.some(function(z, V) {
21507
21507
  var U = G(z, V), Y = U.finished, B = U.reactNode;
21508
- return B && q.push(B), Y;
21508
+ return B && j.push(B), Y;
21509
21509
  }), {
21510
- content: q,
21510
+ content: j,
21511
21511
  text: u.innerHTML,
21512
21512
  ellipsis: !0
21513
21513
  };
@@ -21530,8 +21530,8 @@ function requireBase() {
21530
21530
  for (var Y = 0, U = Object.getOwnPropertySymbols(G); Y < U.length; Y++)
21531
21531
  z.indexOf(U[Y]) < 0 && Object.prototype.propertyIsEnumerable.call(G, U[Y]) && (V[U[Y]] = G[U[Y]]);
21532
21532
  return V;
21533
- }, M = (0, T.isStyleSupport)("webkitLineClamp"), q = (0, T.isStyleSupport)("textOverflow");
21534
- function j(G, z) {
21533
+ }, M = (0, T.isStyleSupport)("webkitLineClamp"), j = (0, T.isStyleSupport)("textOverflow");
21534
+ function q(G, z) {
21535
21535
  var V = G.mark, U = G.code, Y = G.underline, B = G.delete, A = G.strong, N = G.keyboard, Z = z;
21536
21536
  function Q(E, S) {
21537
21537
  !E || (Z = /* @__PURE__ */ f.createElement(S, {}, Z));
@@ -21634,23 +21634,23 @@ function requireBase() {
21634
21634
  key: "canUseCSSEllipsis",
21635
21635
  value: function() {
21636
21636
  var Y = this.state.clientRendered, B = this.props, A = B.editable, N = B.copyable, Z = this.getEllipsis(), Q = Z.rows, E = Z.expandable, S = Z.suffix, W = Z.onEllipsis, X = Z.tooltip;
21637
- return S || X || A || N || E || !Y || W ? !1 : Q === 1 ? q : M;
21637
+ return S || X || A || N || E || !Y || W ? !1 : Q === 1 ? j : M;
21638
21638
  }
21639
21639
  }, {
21640
21640
  key: "syncEllipsis",
21641
21641
  value: function() {
21642
21642
  var Y = this.state, B = Y.ellipsisText, A = Y.isEllipsis, N = Y.expanded, Z = this.getEllipsis(), Q = Z.rows, E = Z.suffix, S = Z.onEllipsis, W = this.props.children;
21643
21643
  if (!(!Q || Q < 0 || !this.contentRef.current || N) && !this.canUseCSSEllipsis()) {
21644
- (0, O.default)((0, p.default)(W).every(function(le) {
21645
- return typeof le == "string";
21644
+ (0, O.default)((0, p.default)(W).every(function(ce) {
21645
+ return typeof ce == "string";
21646
21646
  }), "Typography", "`ellipsis` should use string as children only.");
21647
21647
  var X = (0, D.default)(this.contentRef.current, {
21648
21648
  rows: Q,
21649
21649
  suffix: E
21650
- }, W, this.renderOperations(!0), L), ne = X.content, ee = X.text, oe = X.ellipsis;
21650
+ }, W, this.renderOperations(!0), L), re = X.content, ee = X.text, oe = X.ellipsis;
21651
21651
  (B !== ee || A !== oe) && (this.setState({
21652
21652
  ellipsisText: ee,
21653
- ellipsisContent: ne,
21653
+ ellipsisContent: re,
21654
21654
  isEllipsis: oe
21655
21655
  }), A !== oe && S && S(oe));
21656
21656
  }
@@ -21732,32 +21732,32 @@ function requireBase() {
21732
21732
  }, {
21733
21733
  key: "renderContent",
21734
21734
  value: function() {
21735
- var Y = this, B = this.state, A = B.ellipsisContent, N = B.isEllipsis, Z = B.expanded, Q = this.props, E = Q.component, S = Q.children, W = Q.className, X = Q.type, ne = Q.disabled, ee = Q.style, oe = P(Q, ["component", "children", "className", "type", "disabled", "style"]), le = this.context.direction, ue = this.getEllipsis(), se = ue.rows, fe = ue.suffix, Ie = ue.tooltip, Te = this.getPrefixCls(), ge = (0, v.default)(oe, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, o.default)(C.configConsumerProps))), we = this.canUseCSSEllipsis(), ye = se === 1 && we, Fe = se && se > 1 && we, Ce = S;
21736
- if (se && N && !Z && !we) {
21735
+ var Y = this, B = this.state, A = B.ellipsisContent, N = B.isEllipsis, Z = B.expanded, Q = this.props, E = Q.component, S = Q.children, W = Q.className, X = Q.type, re = Q.disabled, ee = Q.style, oe = P(Q, ["component", "children", "className", "type", "disabled", "style"]), ce = this.context.direction, de = this.getEllipsis(), ae = de.rows, pe = de.suffix, Ie = de.tooltip, Te = this.getPrefixCls(), ge = (0, v.default)(oe, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, o.default)(C.configConsumerProps))), we = this.canUseCSSEllipsis(), ye = ae === 1 && we, Fe = ae && ae > 1 && we, Ce = S;
21736
+ if (ae && N && !Z && !we) {
21737
21737
  var Ee = oe.title, ie = Ee || "";
21738
21738
  !Ee && (typeof S == "string" || typeof S == "number") && (ie = String(S)), ie = ie == null ? void 0 : ie.slice(String(A || "").length), Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, A, /* @__PURE__ */ f.createElement("span", {
21739
21739
  title: ie,
21740
21740
  "aria-hidden": "true"
21741
- }, L), fe), Ie && (Ce = /* @__PURE__ */ f.createElement(F.default, {
21741
+ }, L), pe), Ie && (Ce = /* @__PURE__ */ f.createElement(F.default, {
21742
21742
  title: Ie === !0 ? S : Ie
21743
21743
  }, /* @__PURE__ */ f.createElement("span", null, Ce)));
21744
21744
  } else
21745
- Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, S, fe);
21746
- return Ce = j(this.props, Ce), /* @__PURE__ */ f.createElement(w.default, {
21745
+ Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, S, pe);
21746
+ return Ce = q(this.props, Ce), /* @__PURE__ */ f.createElement(w.default, {
21747
21747
  componentName: "Text"
21748
- }, function(de) {
21749
- var he, re = de.edit, me = de.copy, xe = de.copied, Se = de.expand;
21750
- return Y.editStr = re, Y.copyStr = me, Y.copiedStr = xe, Y.expandStr = Se, /* @__PURE__ */ f.createElement(y.default, {
21748
+ }, function(fe) {
21749
+ var he, ne = fe.edit, me = fe.copy, xe = fe.copied, Se = fe.expand;
21750
+ return Y.editStr = ne, Y.copyStr = me, Y.copiedStr = xe, Y.expandStr = Se, /* @__PURE__ */ f.createElement(y.default, {
21751
21751
  onResize: Y.resizeOnNextFrame,
21752
- disabled: !se
21752
+ disabled: !ae
21753
21753
  }, /* @__PURE__ */ f.createElement(k.default, (0, s.default)({
21754
- className: (0, h.default)((he = {}, (0, r.default)(he, "".concat(Te, "-").concat(X), X), (0, r.default)(he, "".concat(Te, "-disabled"), ne), (0, r.default)(he, "".concat(Te, "-ellipsis"), se), (0, r.default)(he, "".concat(Te, "-ellipsis-single-line"), ye), (0, r.default)(he, "".concat(Te, "-ellipsis-multiple-line"), Fe), he), W),
21754
+ className: (0, h.default)((he = {}, (0, r.default)(he, "".concat(Te, "-").concat(X), X), (0, r.default)(he, "".concat(Te, "-disabled"), re), (0, r.default)(he, "".concat(Te, "-ellipsis"), ae), (0, r.default)(he, "".concat(Te, "-ellipsis-single-line"), ye), (0, r.default)(he, "".concat(Te, "-ellipsis-multiple-line"), Fe), he), W),
21755
21755
  style: (0, s.default)((0, s.default)({}, ee), {
21756
- WebkitLineClamp: Fe ? se : void 0
21756
+ WebkitLineClamp: Fe ? ae : void 0
21757
21757
  }),
21758
21758
  component: E,
21759
21759
  ref: Y.contentRef,
21760
- direction: le
21760
+ direction: ce
21761
21761
  }, ge), Ce, Y.renderOperations()));
21762
21762
  });
21763
21763
  }
@@ -21823,18 +21823,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21823
21823
  }, [t, o]);
21824
21824
  async function D(M) {
21825
21825
  if (u && d) {
21826
- const q = await ConnectionProvider.getHandler().searchAllIds({
21826
+ const j = await ConnectionProvider.getHandler().searchAllIds({
21827
21827
  params: M,
21828
21828
  model: t,
21829
21829
  context: r
21830
- }), j = await ConnectionProvider.getHandler().readObjects({
21830
+ }), q = await ConnectionProvider.getHandler().readObjects({
21831
21831
  model: t,
21832
- ids: q,
21832
+ ids: j,
21833
21833
  fieldsToRetrieve: [u],
21834
21834
  context: r
21835
21835
  });
21836
21836
  return getValueForOperator({
21837
- values: j.map((L) => L[u]),
21837
+ values: q.map((L) => L[u]),
21838
21838
  operator: d
21839
21839
  });
21840
21840
  } else
@@ -21846,10 +21846,10 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21846
21846
  }
21847
21847
  async function P() {
21848
21848
  h(!0);
21849
- let M, q;
21849
+ let M, j;
21850
21850
  try {
21851
- const j = await D(n);
21852
- if (g(j), a) {
21851
+ const q = await D(n);
21852
+ if (g(q), a) {
21853
21853
  const L = await ConnectionProvider.getHandler().evalDomain({
21854
21854
  domain: a,
21855
21855
  values: {},
@@ -21857,12 +21857,12 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21857
21857
  });
21858
21858
  M = await D(L), m(M);
21859
21859
  }
21860
- if (M ? (q = Math.round(j / M * 100 * 100) / 100, x(q)) : x(0), o) {
21860
+ if (M ? (j = Math.round(q / M * 100 * 100) / 100, x(j)) : x(0), o) {
21861
21861
  const L = await ConnectionProvider.getHandler().parseCondition({
21862
21862
  condition: o,
21863
21863
  values: {
21864
- value: j,
21865
- percent: q
21864
+ value: q,
21865
+ percent: j
21866
21866
  },
21867
21867
  context: r
21868
21868
  });
@@ -21873,16 +21873,16 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21873
21873
  const L = await ConnectionProvider.getHandler().parseCondition({
21874
21874
  condition: c,
21875
21875
  values: {
21876
- value: j,
21877
- percent: q
21876
+ value: q,
21877
+ percent: j
21878
21878
  },
21879
21879
  context: r
21880
21880
  });
21881
21881
  F(L);
21882
21882
  } else
21883
21883
  F(c);
21884
- } catch (j) {
21885
- $(JSON.stringify(j));
21884
+ } catch (q) {
21885
+ $(JSON.stringify(q));
21886
21886
  }
21887
21887
  h(!1);
21888
21888
  }
@@ -21903,8 +21903,8 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21903
21903
  }) : /* @__PURE__ */ jsx(Measure, {
21904
21904
  bounds: !0,
21905
21905
  onResize: (M) => {
21906
- var q, j;
21907
- C((q = M.bounds) == null ? void 0 : q.height), O((j = M.bounds) == null ? void 0 : j.width);
21906
+ var j, q;
21907
+ C((j = M.bounds) == null ? void 0 : j.height), O((q = M.bounds) == null ? void 0 : q.width);
21908
21908
  },
21909
21909
  children: ({
21910
21910
  measureRef: M
@@ -22486,7 +22486,7 @@ const One2manyInput = (e) => {
22486
22486
  } = d || {}, {
22487
22487
  lang: v,
22488
22488
  t: x
22489
- } = useContext(LocaleContext), I = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, _] = useState(), [b, T] = useState(!1), [F, k] = useState(!1), [$, D] = useState(), [P, M] = useState([]), [q, j] = useState(!1), L = useRef([]), [H, K] = useState(), G = useRef(), {
22489
+ } = useContext(LocaleContext), I = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, _] = useState(), [b, T] = useState(!1), [F, k] = useState(!1), [$, D] = useState(), [P, M] = useState([]), [j, q] = useState(!1), L = useRef([]), [H, K] = useState(), G = useRef(), {
22490
22490
  readOnly: z,
22491
22491
  relation: V,
22492
22492
  context: U,
@@ -22500,9 +22500,9 @@ const One2manyInput = (e) => {
22500
22500
  S();
22501
22501
  }, [g]);
22502
22502
  const Z = (ie) => {
22503
- var de, he;
22503
+ var fe, he;
22504
22504
  n == null || n({
22505
- fields: ((de = o.get("form")) == null ? void 0 : de.fields) || ((he = o.get("tree")) == null ? void 0 : he.fields),
22505
+ fields: ((fe = o.get("form")) == null ? void 0 : fe.fields) || ((he = o.get("tree")) == null ? void 0 : he.fields),
22506
22506
  items: filterDuplicateItems(ie)
22507
22507
  });
22508
22508
  }, Q = async () => {
@@ -22511,7 +22511,7 @@ const One2manyInput = (e) => {
22511
22511
  var ie;
22512
22512
  w(!0), y(!1), _(void 0);
22513
22513
  try {
22514
- const de = await readObjectValues({
22514
+ const fe = await readObjectValues({
22515
22515
  treeFields: o.get("tree").fields,
22516
22516
  formFields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || {},
22517
22517
  model: V,
@@ -22521,9 +22521,9 @@ const One2manyInput = (e) => {
22521
22521
  ...U
22522
22522
  }
22523
22523
  });
22524
- G.current || (G.current = de.map((he) => he.id)), Z(de);
22525
- } catch (de) {
22526
- _(de);
22524
+ G.current || (G.current = fe.map((he) => he.id)), Z(fe);
22525
+ } catch (fe) {
22526
+ _(fe);
22527
22527
  } finally {
22528
22528
  w(!1);
22529
22529
  }
@@ -22542,21 +22542,21 @@ const One2manyInput = (e) => {
22542
22542
  })));
22543
22543
  }
22544
22544
  const W = () => {
22545
- const ie = Array.from(o.keys()), de = ie[(ie.indexOf(s) + 1) % ie.length];
22545
+ const ie = Array.from(o.keys()), fe = ie[(ie.indexOf(s) + 1) % ie.length];
22546
22546
  s === "form" ? oe(() => {
22547
- c(de);
22548
- }) : c(de);
22547
+ c(fe);
22548
+ }) : c(fe);
22549
22549
  }, X = () => {
22550
22550
  l > 0 && (s === "form" ? oe(() => {
22551
22551
  u(l - 1);
22552
22552
  }) : u(l - 1));
22553
- }, ne = () => {
22553
+ }, re = () => {
22554
22554
  const ie = N.length;
22555
22555
  l < ie - 1 && (s === "form" ? oe(() => {
22556
22556
  u(l + 1);
22557
22557
  }) : u(l + 1));
22558
22558
  }, ee = async () => {
22559
- const ie = N[l].id, de = (await ConnectionProvider.getHandler().readObjects({
22559
+ const ie = N[l].id, fe = (await ConnectionProvider.getHandler().readObjects({
22560
22560
  model: V,
22561
22561
  ids: [ie],
22562
22562
  fields: o.get("form").fields,
@@ -22572,13 +22572,13 @@ const One2manyInput = (e) => {
22572
22572
  ...p == null ? void 0 : p(),
22573
22573
  ...U
22574
22574
  }
22575
- }))[0], re = a.map((me) => me.id === ie ? {
22575
+ }))[0], ne = a.map((me) => me.id === ie ? {
22576
22576
  ...me,
22577
22577
  operation: "original",
22578
- values: de,
22578
+ values: fe,
22579
22579
  treeValues: he
22580
22580
  } : me);
22581
- Z(re);
22581
+ Z(ne);
22582
22582
  }, oe = (ie) => {
22583
22583
  m ? showDialog$6({
22584
22584
  lang: v,
@@ -22586,12 +22586,12 @@ const One2manyInput = (e) => {
22586
22586
  ee(), ie(), y(!1);
22587
22587
  }
22588
22588
  }) : ie();
22589
- }, le = () => {
22589
+ }, ce = () => {
22590
22590
  if (B) {
22591
22591
  showDialog$1({
22592
22592
  lang: v,
22593
22593
  onOk: () => {
22594
- s === "form" ? fe() : Ie();
22594
+ s === "form" ? pe() : Ie();
22595
22595
  }
22596
22596
  });
22597
22597
  return;
@@ -22599,35 +22599,35 @@ const One2manyInput = (e) => {
22599
22599
  showDialog$2({
22600
22600
  lang: v,
22601
22601
  onOk: () => {
22602
- s === "form" ? fe() : Ie();
22602
+ s === "form" ? pe() : Ie();
22603
22603
  }
22604
22604
  });
22605
- }, ue = async () => {
22605
+ }, de = async () => {
22606
22606
  const {
22607
22607
  inv_field: ie
22608
22608
  } = r;
22609
- let de;
22610
- ie && f && (de = {
22609
+ let fe;
22610
+ ie && f && (fe = {
22611
22611
  [ie]: f
22612
22612
  }), s === "form" ? oe(() => {
22613
- j(!0), D({
22614
- defaultValues: de
22613
+ q(!0), D({
22614
+ defaultValues: fe
22615
22615
  }), T(!0);
22616
- }) : (j(!0), D({
22617
- defaultValues: de
22616
+ }) : (q(!0), D({
22617
+ defaultValues: fe
22618
22618
  }), T(!0));
22619
- }, se = async () => {
22619
+ }, ae = async () => {
22620
22620
  s === "form" ? oe(() => {
22621
22621
  k(!0);
22622
22622
  }) : k(!0);
22623
- }, fe = async () => {
22623
+ }, pe = async () => {
22624
22624
  w(!0), y(!1), _(void 0);
22625
22625
  try {
22626
22626
  if (N[l].id > 0) {
22627
- const ie = a.map((de) => de.id === N[l].id ? {
22628
- ...de,
22627
+ const ie = a.map((fe) => fe.id === N[l].id ? {
22628
+ ...fe,
22629
22629
  operation: "pendingRemove"
22630
- } : de);
22630
+ } : fe);
22631
22631
  Z(ie);
22632
22632
  } else
22633
22633
  Z(a.filter((ie) => ie.id !== N[l].id));
@@ -22636,22 +22636,22 @@ const One2manyInput = (e) => {
22636
22636
  }
22637
22637
  u(0), w(!1);
22638
22638
  }, Ie = async () => {
22639
- const ie = N.filter((de) => P.includes(de.id));
22639
+ const ie = N.filter((fe) => P.includes(fe.id));
22640
22640
  w(!0), y(!1), _(void 0);
22641
22641
  try {
22642
- const de = ie.map((re) => re.id), he = a.filter((re) => !(de.includes(re.id) && re.id < 0)).map((re) => de.includes(re.id) ? {
22643
- ...re,
22642
+ const fe = ie.map((ne) => ne.id), he = a.filter((ne) => !(fe.includes(ne.id) && ne.id < 0)).map((ne) => fe.includes(ne.id) ? {
22643
+ ...ne,
22644
22644
  operation: "pendingRemove"
22645
- } : re);
22645
+ } : ne);
22646
22646
  Z(he);
22647
- } catch (de) {
22648
- _(de);
22647
+ } catch (fe) {
22648
+ _(fe);
22649
22649
  }
22650
22650
  u(0), w(!1);
22651
- }, Te = (ie, de, he) => {
22652
- let re;
22651
+ }, Te = (ie, fe, he) => {
22652
+ let ne;
22653
22653
  if (ie)
22654
- re = a.map((me) => me.id === ie ? {
22654
+ ne = a.map((me) => me.id === ie ? {
22655
22655
  id: ie,
22656
22656
  operation: ie > 0 ? "pendingUpdate" : "pendingCreate",
22657
22657
  values: {
@@ -22665,7 +22665,7 @@ const One2manyInput = (e) => {
22665
22665
  } : me);
22666
22666
  else {
22667
22667
  const me = getNextPendingId(a);
22668
- re = a.concat({
22668
+ ne = a.concat({
22669
22669
  id: me,
22670
22670
  operation: "pendingCreate",
22671
22671
  values: {
@@ -22678,21 +22678,21 @@ const One2manyInput = (e) => {
22678
22678
  }
22679
22679
  });
22680
22680
  }
22681
- Z(re), q || T(!1);
22681
+ Z(ne), j || T(!1);
22682
22682
  }, ge = (ie) => {
22683
22683
  const {
22684
- id: de
22684
+ id: fe
22685
22685
  } = ie;
22686
- D(a.find((he) => he.id === de)), j(!1), T(!0);
22686
+ D(a.find((he) => he.id === fe)), q(!1), T(!0);
22687
22687
  }, we = async (ie) => {
22688
22688
  w(!0);
22689
- let de = a;
22690
- const he = ie.filter((re) => !a.find((me) => me.id === re));
22689
+ let fe = a;
22690
+ const he = ie.filter((ne) => !a.find((me) => me.id === ne));
22691
22691
  try {
22692
- for (const re of he) {
22692
+ for (const ne of he) {
22693
22693
  const me = (await ConnectionProvider.getHandler().readObjects({
22694
22694
  model: V,
22695
- ids: [re],
22695
+ ids: [ne],
22696
22696
  fields: o.get("form").fields,
22697
22697
  context: {
22698
22698
  ...p == null ? void 0 : p(),
@@ -22700,23 +22700,23 @@ const One2manyInput = (e) => {
22700
22700
  }
22701
22701
  }))[0], xe = (await ConnectionProvider.getHandler().readObjects({
22702
22702
  model: V,
22703
- ids: [re],
22703
+ ids: [ne],
22704
22704
  fields: o.get("tree").fields,
22705
22705
  context: {
22706
22706
  ...p == null ? void 0 : p(),
22707
22707
  ...U
22708
22708
  }
22709
22709
  }))[0];
22710
- de.push({
22711
- id: re,
22710
+ fe.push({
22711
+ id: ne,
22712
22712
  operation: "pendingLink",
22713
22713
  values: me,
22714
22714
  treeValues: xe
22715
22715
  });
22716
22716
  }
22717
- Z(de);
22718
- } catch (re) {
22719
- _(re);
22717
+ Z(fe);
22718
+ } catch (ne) {
22719
+ _(ne);
22720
22720
  } finally {
22721
22721
  w(!1);
22722
22722
  }
@@ -22726,16 +22726,16 @@ const One2manyInput = (e) => {
22726
22726
  if (s === "graph")
22727
22727
  return parseGraph(o.get("graph").arch).string;
22728
22728
  {
22729
- const de = new ie(o.get(s).fields);
22730
- return de.parse(o.get(s).arch), de.string;
22729
+ const fe = new ie(o.get(s).fields);
22730
+ return fe.parse(o.get(s).arch), fe.string;
22731
22731
  }
22732
22732
  }
22733
22733
  const Fe = () => {
22734
- var de, he, re, me;
22734
+ var fe, he, ne, me;
22735
22735
  if (s === "form")
22736
22736
  return N.length === 0 ? x("noCurrentEntries") : /* @__PURE__ */ jsx(Form$1, {
22737
22737
  formView: o.get("form"),
22738
- values: (de = N[l]) == null ? void 0 : de.values,
22738
+ values: (fe = N[l]) == null ? void 0 : fe.values,
22739
22739
  parentContext: {
22740
22740
  ...p == null ? void 0 : p(),
22741
22741
  ...U
@@ -22746,9 +22746,9 @@ const One2manyInput = (e) => {
22746
22746
  submitMode: "values",
22747
22747
  onFieldsChange: (xe) => {
22748
22748
  var _e;
22749
- const Se = (_e = N[l]) == null ? void 0 : _e.id, Re = a.map((Ae) => Ae.id === Se ? {
22750
- ...Ae,
22751
- operation: Ae.operation === "original" ? "pendingUpdate" : Ae.operation,
22749
+ const Se = (_e = N[l]) == null ? void 0 : _e.id, Re = a.map((Pe) => Pe.id === Se ? {
22750
+ ...Pe,
22751
+ operation: Pe.operation === "original" ? "pendingUpdate" : Pe.operation,
22752
22752
  values: {
22753
22753
  ...xe,
22754
22754
  id: Se
@@ -22757,7 +22757,7 @@ const One2manyInput = (e) => {
22757
22757
  ...xe,
22758
22758
  id: Se
22759
22759
  }
22760
- } : Ae);
22760
+ } : Pe);
22761
22761
  Z(Re), y(!0);
22762
22762
  },
22763
22763
  readOnly: z
@@ -22767,7 +22767,7 @@ const One2manyInput = (e) => {
22767
22767
  sorter: H,
22768
22768
  fields: {
22769
22769
  ...o.get("tree").fields,
22770
- ...((re = o.get("form")) == null ? void 0 : re.fields) || {}
22770
+ ...((ne = o.get("form")) == null ? void 0 : ne.fields) || {}
22771
22771
  }
22772
22772
  }) : sortResultsWithOrder(N.map((xe) => xe.treeValues), G.current);
22773
22773
  if (s === "tree")
@@ -22807,7 +22807,7 @@ const One2manyInput = (e) => {
22807
22807
  type: "error",
22808
22808
  banner: !0
22809
22809
  });
22810
- const Ce = q;
22810
+ const Ce = j;
22811
22811
  return C ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
22812
22812
  children: [/* @__PURE__ */ jsx(One2manyTopBar, {
22813
22813
  mode: s,
@@ -22817,12 +22817,12 @@ const One2manyInput = (e) => {
22817
22817
  formHasChanges: m,
22818
22818
  totalItems: N.length,
22819
22819
  currentItemIndex: l,
22820
- onDelete: le,
22821
- onCreateItem: ue,
22820
+ onDelete: ce,
22821
+ onCreateItem: de,
22822
22822
  onToggleViewMode: W,
22823
22823
  onPreviousItem: X,
22824
- onNextItem: ne,
22825
- onSearchItem: se,
22824
+ onNextItem: re,
22825
+ onSearchItem: ae,
22826
22826
  selectedRowKeys: P,
22827
22827
  showCreateButton: ((Ee = o.get("form")) == null ? void 0 : Ee.fields) !== void 0,
22828
22828
  showToggleButton: o.size > 1
@@ -22840,7 +22840,7 @@ const One2manyInput = (e) => {
22840
22840
  ...U
22841
22841
  },
22842
22842
  onCancel: () => {
22843
- j(!1), T(!1);
22843
+ q(!1), T(!1);
22844
22844
  },
22845
22845
  readOnly: z,
22846
22846
  mustClearAfterSave: Ce
@@ -26363,10 +26363,10 @@ function FormActionBar() {
26363
26363
  }
26364
26364
  V();
26365
26365
  }
26366
- function q() {
26366
+ function j() {
26367
26367
  c && c.length > u + 1 ? (l == null || l(u + 1), d == null || d(c[u + 1].id)) : c && u + 1 === c.length && (l == null || l(0), d == null || d(c[0].id));
26368
26368
  }
26369
- function j() {
26369
+ function q() {
26370
26370
  c && u > 0 ? (l == null || l(u - 1), d == null || d(c[u - 1].id)) : c && u === 0 && (l == null || l(c.length - 1), d == null || d(c[c.length - 1].id));
26371
26371
  }
26372
26372
  function L() {
@@ -26479,7 +26479,7 @@ function FormActionBar() {
26479
26479
  disabled: G,
26480
26480
  loading: !1,
26481
26481
  onClick: () => {
26482
- M(j);
26482
+ M(q);
26483
26483
  }
26484
26484
  }), /* @__PURE__ */ jsx(ActionButton, {
26485
26485
  icon: /* @__PURE__ */ jsx(RightOutlined, {}),
@@ -26487,7 +26487,7 @@ function FormActionBar() {
26487
26487
  disabled: G,
26488
26488
  loading: !1,
26489
26489
  onClick: () => {
26490
- M(q);
26490
+ M(j);
26491
26491
  }
26492
26492
  })]
26493
26493
  }), separator$2(), /* @__PURE__ */ jsx(DropdownButton, {
@@ -26758,8 +26758,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26758
26758
  return !1;
26759
26759
  }
26760
26760
  _ = F.join("@"), T = null, k = null;
26761
- var q = _.match(g);
26762
- if (q ? (O = "", k = q[1], T = q[2] || null) : (F = _.split(":"), O = F.shift(), F.length && (T = F.join(":"))), T !== null && T.length > 0) {
26761
+ var j = _.match(g);
26762
+ if (j ? (O = "", k = j[1], T = j[2] || null) : (F = _.split(":"), O = F.shift(), F.length && (T = F.join(":"))), T !== null && T.length > 0) {
26763
26763
  if (b = parseInt(T, 10), !/^[0-9]+$/.test(T) || b <= 0 || b > 65535)
26764
26764
  return !1;
26765
26765
  } else if (y.require_port)
@@ -26946,8 +26946,8 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
26946
26946
  }
26947
26947
  if (T[0] === '"')
26948
26948
  return T = T.slice(1, T.length - 1), y.allow_utf8_local_part ? g.test(T) : h.test(T);
26949
- for (var P = y.allow_utf8_local_part ? p : d, M = T.split("."), q = 0; q < M.length; q++)
26950
- if (!P.test(M[q]))
26949
+ for (var P = y.allow_utf8_local_part ? p : d, M = T.split("."), j = 0; j < M.length; j++)
26950
+ if (!P.test(M[j]))
26951
26951
  return !1;
26952
26952
  return !(y.blacklisted_chars && T.search(new RegExp("[".concat(y.blacklisted_chars, "]+"), "g")) !== -1);
26953
26953
  }
@@ -27474,31 +27474,31 @@ function ActionView(e, t) {
27474
27474
  action_id: p,
27475
27475
  action_type: g,
27476
27476
  treeExpandable: v = !1
27477
- } = e, [x, I] = useState(), [m, y] = useState([]), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(!0), $ = h || void 0, [D, P] = useState($), [M, q] = useState([]), [j, L] = useState(), [H, K] = useState([]), [G, z] = useState(), [V, U] = useState(), [Y, B] = useState(0), [A, N] = useState(!1), [Z, Q] = useState(!1), [E, S] = useState(), {
27477
+ } = e, [x, I] = useState(), [m, y] = useState([]), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(!0), $ = h || void 0, [D, P] = useState($), [M, j] = useState([]), [q, L] = useState(), [H, K] = useState([]), [G, z] = useState(), [V, U] = useState(), [Y, B] = useState(0), [A, N] = useState(!1), [Z, Q] = useState(!1), [E, S] = useState(), {
27478
27478
  t: W
27479
- } = useContext(LocaleContext), X = useRef(), ne = useRef(), ee = useRef(), oe = useContext(TabManagerContext), {
27480
- openShortcut: le,
27481
- setCurrentView: ue,
27482
- setCurrentId: se,
27483
- tabs: fe,
27479
+ } = useContext(LocaleContext), X = useRef(), re = useRef(), ee = useRef(), oe = useContext(TabManagerContext), {
27480
+ openShortcut: ce,
27481
+ setCurrentView: de,
27482
+ setCurrentId: ae,
27483
+ tabs: pe,
27484
27484
  activeKey: Ie,
27485
27485
  openAction: Te
27486
27486
  } = oe || {};
27487
- useHotkeys("ctrl+g,command+g", (re) => {
27488
- re.preventDefault(), Ce();
27489
- }, [Ie, fe, x, j, H]);
27490
- function ge(re) {
27491
- P(re), se == null || se(re);
27487
+ useHotkeys("ctrl+g,command+g", (ne) => {
27488
+ ne.preventDefault(), Ce();
27489
+ }, [Ie, pe, x, q, H]);
27490
+ function ge(ne) {
27491
+ P(ne), ae == null || ae(ne);
27492
27492
  }
27493
- function we(re) {
27494
- I(re), ue == null || ue(re);
27493
+ function we(ne) {
27494
+ I(ne), de == null || de(ne);
27495
27495
  }
27496
27496
  useImperativeHandle(t, () => ({
27497
27497
  canWeClose: Fe
27498
27498
  }));
27499
27499
  const ye = async () => {
27500
27500
  k(!0);
27501
- const re = [];
27501
+ const ne = [];
27502
27502
  for (const me of a) {
27503
27503
  const [xe, Se] = me;
27504
27504
  try {
@@ -27507,8 +27507,8 @@ function ActionView(e, t) {
27507
27507
  const [, $e] = Me;
27508
27508
  return $e === "form";
27509
27509
  });
27510
- let Ae;
27511
- _e && (Ae = {
27510
+ let Pe;
27511
+ _e && (Pe = {
27512
27512
  action_id: p,
27513
27513
  action_type: g,
27514
27514
  name: s,
@@ -27520,8 +27520,8 @@ function ActionView(e, t) {
27520
27520
  id: o.active_id,
27521
27521
  model: r,
27522
27522
  context: o,
27523
- configAction: Ae
27524
- }), re.push({
27523
+ configAction: Pe
27524
+ }), ne.push({
27525
27525
  id: xe,
27526
27526
  type: Se
27527
27527
  });
@@ -27535,7 +27535,7 @@ function ActionView(e, t) {
27535
27535
  Se === "tree" ? w({
27536
27536
  ...Re,
27537
27537
  isExpandable: v
27538
- }) : Se === "form" && (_(Re), z(Re == null ? void 0 : Re.toolbar)), re.push({
27538
+ }) : Se === "form" && (_(Re), z(Re == null ? void 0 : Re.toolbar)), ne.push({
27539
27539
  id: xe,
27540
27540
  type: Se
27541
27541
  });
@@ -27543,32 +27543,32 @@ function ActionView(e, t) {
27543
27543
  console.error(`${r} - ${Se}\xA0- ${JSON.stringify(Re, null, 2)}`);
27544
27544
  }
27545
27545
  }
27546
- !u && re.find((me) => me.type === "tree") ? we(re.find((me) => me.type === "tree")) : we(u || re.find((me) => me.type === "form")), y(re), k(!1);
27546
+ !u && ne.find((me) => me.type === "tree") ? we(ne.find((me) => me.type === "tree")) : we(u || ne.find((me) => me.type === "form")), y(ne), k(!1);
27547
27547
  };
27548
27548
  c({
27549
27549
  tabKey: l,
27550
27550
  canWeClose: Fe
27551
27551
  }), useEffect(() => {
27552
- we(u || m.find((re) => re.type === "tree")), h ? se == null || se($) : (ge(void 0), L(void 0)), ye();
27552
+ we(u || m.find((ne) => ne.type === "tree")), h ? ae == null || ae($) : (ge(void 0), L(void 0)), ye();
27553
27553
  }, [r, a, h]), useEffect(() => {
27554
- Ie === l && (se == null || se(D), ue == null || ue(x));
27555
- }, [fe, Ie]);
27554
+ Ie === l && (ae == null || ae(D), de == null || de(x));
27555
+ }, [pe, Ie]);
27556
27556
  async function Fe() {
27557
27557
  return x.type === "form" ? await X.current.cancelUnsavedChanges() : !0;
27558
27558
  }
27559
27559
  async function Ce() {
27560
27560
  Ie === l && (x.type === "form" && !await X.current.cancelUnsavedChanges() || N(!0));
27561
27561
  }
27562
- async function Ee(re) {
27562
+ async function Ee(ne) {
27563
27563
  var Re;
27564
27564
  Q(!0);
27565
- const me = H.findIndex((_e) => _e.id === re);
27565
+ const me = H.findIndex((_e) => _e.id === ne);
27566
27566
  let xe;
27567
27567
  if (me === -1) {
27568
27568
  try {
27569
27569
  xe = (Re = await ConnectionProvider.getHandler().readObjects({
27570
27570
  model: r,
27571
- ids: [re],
27571
+ ids: [ne],
27572
27572
  context: o
27573
27573
  })) == null ? void 0 : Re[0];
27574
27574
  } catch {
@@ -27594,7 +27594,7 @@ function ActionView(e, t) {
27594
27594
  },
27595
27595
  action_id: p,
27596
27596
  action_type: g,
27597
- res_id: re
27597
+ res_id: ne
27598
27598
  });
27599
27599
  }
27600
27600
  function ie() {
@@ -27610,12 +27610,12 @@ function ActionView(e, t) {
27610
27610
  actionDomain: n,
27611
27611
  id: D,
27612
27612
  parentContext: o,
27613
- onSubmitSucceed: (re, me) => {
27614
- H.findIndex((Se) => Se.id === re) === -1 && (H.push(me), K(H), L(H.length - 1));
27613
+ onSubmitSucceed: (ne, me) => {
27614
+ H.findIndex((Se) => Se.id === ne) === -1 && (H.push(me), K(H), L(H.length - 1));
27615
27615
  }
27616
27616
  }), /* @__PURE__ */ jsx(SearchTree$1, {
27617
27617
  visible: x.type === "tree",
27618
- ref: ne,
27618
+ ref: re,
27619
27619
  rootTree: !0,
27620
27620
  model: r,
27621
27621
  parentContext: o,
@@ -27623,10 +27623,10 @@ function ActionView(e, t) {
27623
27623
  formView: O,
27624
27624
  treeView: C,
27625
27625
  domain: n,
27626
- onRowClicked: (re) => {
27626
+ onRowClicked: (ne) => {
27627
27627
  const {
27628
27628
  id: me
27629
- } = re;
27629
+ } = ne;
27630
27630
  ge(me);
27631
27631
  const xe = H.findIndex((Se) => Se.id === me);
27632
27632
  L(xe), we(m.find((Se) => Se.type === "form"));
@@ -27634,16 +27634,16 @@ function ActionView(e, t) {
27634
27634
  })]
27635
27635
  });
27636
27636
  }
27637
- function de() {
27638
- D === void 0 && x.type === "form" ? X.current.clearAndReload() : (ge(void 0), we(m.find((re) => re.type === "form")));
27637
+ function fe() {
27638
+ D === void 0 && x.type === "form" ? X.current.clearAndReload() : (ge(void 0), we(m.find((ne) => ne.type === "form")));
27639
27639
  }
27640
27640
  if (!x)
27641
27641
  return null;
27642
27642
  function he() {
27643
27643
  return x.type === "dashboard" ? b ? /* @__PURE__ */ jsxs(DashboardActionProvider, {
27644
27644
  dashboardRef: ee,
27645
- openAction: (re) => {
27646
- le(re);
27645
+ openAction: (ne) => {
27646
+ ce(ne);
27647
27647
  },
27648
27648
  children: [/* @__PURE__ */ jsx(TitleHeader, {
27649
27649
  children: /* @__PURE__ */ jsx(DashboardActionBar, {})
@@ -27676,12 +27676,12 @@ function ActionView(e, t) {
27676
27676
  setCurrentView: we,
27677
27677
  availableViews: m,
27678
27678
  formRef: X,
27679
- searchTreeRef: ne,
27680
- onNewClicked: de,
27679
+ searchTreeRef: re,
27680
+ onNewClicked: fe,
27681
27681
  currentId: D,
27682
27682
  setCurrentId: ge,
27683
27683
  setCurrentItemIndex: L,
27684
- currentItemIndex: j,
27684
+ currentItemIndex: q,
27685
27685
  results: H,
27686
27686
  setResults: K,
27687
27687
  currentModel: r,
@@ -27692,7 +27692,7 @@ function ActionView(e, t) {
27692
27692
  totalItems: Y,
27693
27693
  setTotalItems: B,
27694
27694
  selectedRowItems: M,
27695
- setSelectedRowItems: q,
27695
+ setSelectedRowItems: j,
27696
27696
  setSearchTreeNameSearch: S,
27697
27697
  searchTreeNameSearch: E,
27698
27698
  children: he()
@@ -27887,25 +27887,25 @@ function DashboardTree(e) {
27887
27887
  domain: a = [],
27888
27888
  visible: s = !0,
27889
27889
  parentContext: c = {}
27890
- } = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [g, v] = useState(), [x, I] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), _ = useRef([]), [b, T] = useState(0), [F, k] = useState([]), [$, D] = useState(void 0), [P, M] = useState(), [q, j] = useState(), [L, H] = useState(), [K, G] = useState(!1), z = useRef([]), V = (W) => {
27890
+ } = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [g, v] = useState(), [x, I] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), _ = useRef([]), [b, T] = useState(0), [F, k] = useState([]), [$, D] = useState(void 0), [P, M] = useState(), [j, q] = useState(), [L, H] = useState(), [K, G] = useState(!1), z = useRef([]), V = (W) => {
27891
27891
  G(!0), y(W), w((W - 1) * O.current);
27892
27892
  }, U = (W) => {
27893
27893
  const X = {};
27894
- return W.forEach((ne) => {
27895
- Array.isArray(ne) && ne[0] && (X[ne[0]] = !0);
27894
+ return W.forEach((re) => {
27895
+ Array.isArray(re) && re[0] && (X[re[0]] = !0);
27896
27896
  }), Object.keys(X);
27897
27897
  }, Y = (W, X) => {
27898
- const ne = W, ee = U(W);
27898
+ const re = W, ee = U(W);
27899
27899
  return X.forEach((oe) => {
27900
- Array.isArray(oe) && oe[0] && (ee.includes(oe[0]) || ne.push(oe));
27901
- }), ne;
27900
+ Array.isArray(oe) && oe[0] && (ee.includes(oe[0]) || re.push(oe));
27901
+ }), re;
27902
27902
  }, B = async () => {
27903
27903
  const W = z.current.length > 0 ? z.current : a, X = Y(_.current, W), {
27904
- colors: ne
27904
+ colors: re
27905
27905
  } = getTree(g), {
27906
27906
  totalItems: ee,
27907
27907
  results: oe,
27908
- attrsEvaluated: le
27908
+ attrsEvaluated: ce
27909
27909
  } = await ConnectionProvider.getHandler().searchForTree({
27910
27910
  params: X,
27911
27911
  limit: O.current,
@@ -27913,12 +27913,12 @@ function DashboardTree(e) {
27913
27913
  model: h,
27914
27914
  fields: g.fields,
27915
27915
  context: c,
27916
- attrs: ne && {
27917
- colors: ne
27916
+ attrs: re && {
27917
+ colors: re
27918
27918
  }
27919
27919
  });
27920
- T(ee), D(getColorMap(le));
27921
- const ue = sortResults({
27920
+ T(ee), D(getColorMap(ce));
27921
+ const de = sortResults({
27922
27922
  resultsToSort: oe,
27923
27923
  sorter: P,
27924
27924
  fields: {
@@ -27926,12 +27926,12 @@ function DashboardTree(e) {
27926
27926
  ...x.fields
27927
27927
  }
27928
27928
  });
27929
- k(ue);
27929
+ k(de);
27930
27930
  }, A = async () => {
27931
27931
  try {
27932
27932
  G(!0), await B();
27933
27933
  } catch (W) {
27934
- j(JSON.stringify(W));
27934
+ q(JSON.stringify(W));
27935
27935
  } finally {
27936
27936
  G(!1);
27937
27937
  }
@@ -27986,9 +27986,9 @@ function DashboardTree(e) {
27986
27986
  style: {
27987
27987
  overflowY: "scroll"
27988
27988
  },
27989
- children: [q && /* @__PURE__ */ jsx(Alert, {
27989
+ children: [j && /* @__PURE__ */ jsx(Alert, {
27990
27990
  className: "mt-10",
27991
- message: q,
27991
+ message: j,
27992
27992
  type: "error",
27993
27993
  banner: !0
27994
27994
  }), /* @__PURE__ */ jsx(Tree, {
@@ -28145,7 +28145,7 @@ function Dashboard(e, t) {
28145
28145
  if (!g)
28146
28146
  return;
28147
28147
  const T = b.filter((D) => {
28148
- const P = s.find((q) => q.id === D.id);
28148
+ const P = s.find((j) => j.id === D.id);
28149
28149
  if (!P)
28150
28150
  return !1;
28151
28151
  if (!P.position)
@@ -28206,8 +28206,8 @@ function Dashboard(e, t) {
28206
28206
  } = k, {
28207
28207
  actionId: P,
28208
28208
  actionType: M,
28209
- key: q,
28210
- title: j,
28209
+ key: j,
28210
+ title: q,
28211
28211
  views: L,
28212
28212
  model: H,
28213
28213
  context: K,
@@ -28250,13 +28250,13 @@ function Dashboard(e, t) {
28250
28250
  actionId: S,
28251
28251
  actionType: W,
28252
28252
  title: X,
28253
- model: ne
28253
+ model: re
28254
28254
  } = F, ee = {
28255
28255
  action_id: S,
28256
28256
  action_type: W,
28257
28257
  name: X,
28258
28258
  res_id: N.id,
28259
- res_model: ne,
28259
+ res_model: re,
28260
28260
  view_id: Q,
28261
28261
  view_type: E
28262
28262
  };
@@ -28266,8 +28266,8 @@ function Dashboard(e, t) {
28266
28266
  }) : z !== void 0 && (Y = /* @__PURE__ */ jsx(ActionView$1, {
28267
28267
  action_id: P,
28268
28268
  action_type: M,
28269
- tabKey: q,
28270
- title: j,
28269
+ tabKey: j,
28270
+ title: q,
28271
28271
  views: L,
28272
28272
  model: H,
28273
28273
  context: K,
@@ -28300,7 +28300,7 @@ function Dashboard(e, t) {
28300
28300
  }
28301
28301
  return /* @__PURE__ */ jsx(DashboardGridItem, {
28302
28302
  id: D,
28303
- title: j,
28303
+ title: q,
28304
28304
  parms: U,
28305
28305
  action: B,
28306
28306
  openAction: p,
@@ -28630,13 +28630,13 @@ function RootView(e, t) {
28630
28630
  ...P
28631
28631
  }
28632
28632
  }) : [], {
28633
- res_model: q,
28634
- views: j,
28633
+ res_model: j,
28634
+ views: q,
28635
28635
  name: L,
28636
28636
  target: H,
28637
28637
  view_type: K
28638
28638
  } = F, G = K === "tree", z = [];
28639
- for (const U of j) {
28639
+ for (const U of q) {
28640
28640
  const [Y, B] = U;
28641
28641
  if (Y)
28642
28642
  z.push(U);
@@ -28646,7 +28646,7 @@ function RootView(e, t) {
28646
28646
  const {
28647
28647
  view_id: A
28648
28648
  } = await ConnectionProvider.getHandler().getView({
28649
- model: q,
28649
+ model: j,
28650
28650
  type: B,
28651
28651
  id: Y,
28652
28652
  context: {
@@ -28677,7 +28677,7 @@ function RootView(e, t) {
28677
28677
  ...o,
28678
28678
  ...P
28679
28679
  },
28680
- model: q,
28680
+ model: j,
28681
28681
  views: z,
28682
28682
  title: L,
28683
28683
  target: H,
@@ -28719,9 +28719,9 @@ function RootView(e, t) {
28719
28719
  views: $,
28720
28720
  target: D,
28721
28721
  string: P
28722
- } = C, [M, q] = $[0], j = {
28722
+ } = C, [M, j] = $[0], q = {
28723
28723
  id: M,
28724
- type: q
28724
+ type: j
28725
28725
  }, L = parseContext({
28726
28726
  context: F,
28727
28727
  values: {
@@ -28750,7 +28750,7 @@ function RootView(e, t) {
28750
28750
  },
28751
28751
  domain: H,
28752
28752
  title: P,
28753
- initialView: j,
28753
+ initialView: q,
28754
28754
  action_id: _,
28755
28755
  action_type: b
28756
28756
  });
@@ -28779,9 +28779,9 @@ function RootView(e, t) {
28779
28779
  res_model: D,
28780
28780
  views: P,
28781
28781
  name: M,
28782
- target: q,
28783
- view_type: j
28784
- } = F, L = j === "tree", H = [];
28782
+ target: j,
28783
+ view_type: q
28784
+ } = F, L = q === "tree", H = [];
28785
28785
  for (const V of P) {
28786
28786
  const [U, Y] = V;
28787
28787
  if (U)
@@ -28822,7 +28822,7 @@ function RootView(e, t) {
28822
28822
  model: D,
28823
28823
  views: H,
28824
28824
  title: M,
28825
- target: q,
28825
+ target: j,
28826
28826
  initialView: z,
28827
28827
  action_id: w,
28828
28828
  action_type: O,
@@ -28861,9 +28861,9 @@ function RootView(e, t) {
28861
28861
  res_id: D,
28862
28862
  values: P,
28863
28863
  forced_values: M,
28864
- treeExpandable: q = !1
28864
+ treeExpandable: j = !1
28865
28865
  }) {
28866
- const j = v4();
28866
+ const q = v4();
28867
28867
  if (T !== "current") {
28868
28868
  const L = await ConnectionProvider.getHandler().getView({
28869
28869
  model: O,
@@ -28899,7 +28899,7 @@ function RootView(e, t) {
28899
28899
  content: /* @__PURE__ */ jsx(ActionView$1, {
28900
28900
  action_id: k,
28901
28901
  action_type: $,
28902
- tabKey: j,
28902
+ tabKey: q,
28903
28903
  title: b,
28904
28904
  views: _,
28905
28905
  model: O,
@@ -28913,9 +28913,9 @@ function RootView(e, t) {
28913
28913
  res_id: D,
28914
28914
  formDefaultValues: P,
28915
28915
  formForcedValues: M,
28916
- treeExpandable: q
28916
+ treeExpandable: j
28917
28917
  }),
28918
- key: j
28918
+ key: q
28919
28919
  });
28920
28920
  }
28921
28921
  return /* @__PURE__ */ jsx(LocaleContextProvider, {
@@ -29079,9 +29079,9 @@ const FavouriteButton = (e) => {
29079
29079
  }
29080
29080
  function b(M) {
29081
29081
  const {
29082
- key: q
29083
- } = M, j = u.find((L) => L.id === Number(q));
29084
- (j == null ? void 0 : j.action_type) !== "ir.actions.wizard" && (j && I(j), l(!1));
29082
+ key: j
29083
+ } = M, q = u.find((L) => L.id === Number(j));
29084
+ (q == null ? void 0 : q.action_type) !== "ir.actions.wizard" && (q && I(q), l(!1));
29085
29085
  }
29086
29086
  function T(M) {
29087
29087
  M && _(), l(M);
@@ -29090,10 +29090,10 @@ const FavouriteButton = (e) => {
29090
29090
  if (!C)
29091
29091
  return;
29092
29092
  const M = m.find((G) => G.key === y), {
29093
- id: q,
29094
- type: j
29093
+ id: j,
29094
+ type: q
29095
29095
  } = (M == null ? void 0 : M.action) || {};
29096
- if (!q || !j) {
29096
+ if (!j || !q) {
29097
29097
  s(!1);
29098
29098
  return;
29099
29099
  }
@@ -29101,8 +29101,8 @@ const FavouriteButton = (e) => {
29101
29101
  let H = !1;
29102
29102
  C.type === "form" && (H = w || !1);
29103
29103
  const K = await n({
29104
- action_id: q,
29105
- action_type: j,
29104
+ action_id: j,
29105
+ action_type: q,
29106
29106
  view_id: L,
29107
29107
  res_id: H
29108
29108
  });
@@ -29165,7 +29165,7 @@ const FavouriteButton = (e) => {
29165
29165
  });
29166
29166
  function D({
29167
29167
  title: M,
29168
- type: q
29168
+ type: j
29169
29169
  }) {
29170
29170
  return /* @__PURE__ */ jsxs(Row, {
29171
29171
  wrap: !1,
@@ -29174,7 +29174,7 @@ const FavouriteButton = (e) => {
29174
29174
  style: {
29175
29175
  paddingRight: 20
29176
29176
  },
29177
- children: q === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
29177
+ children: j === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
29178
29178
  }), /* @__PURE__ */ jsx(Col, {
29179
29179
  flex: "auto",
29180
29180
  children: M
@@ -29188,17 +29188,17 @@ const FavouriteButton = (e) => {
29188
29188
  if (!C)
29189
29189
  return;
29190
29190
  const M = m.find((K) => K.key === y), {
29191
- id: q,
29192
- type: j
29191
+ id: j,
29192
+ type: q
29193
29193
  } = (M == null ? void 0 : M.action) || {}, L = C.id;
29194
29194
  let H = !1;
29195
- if (!q || !j) {
29195
+ if (!j || !q) {
29196
29196
  s(!1);
29197
29197
  return;
29198
29198
  }
29199
29199
  C.type === "form" && (H = w || !1), await r({
29200
- action_id: q,
29201
- action_type: j,
29200
+ action_id: j,
29201
+ action_type: q,
29202
29202
  view_id: L,
29203
29203
  res_id: H
29204
29204
  });