@gisce/react-ooui 1.0.22-rc.0 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4696,12 +4696,12 @@ function requireReactIs_development() {
4696
4696
  }
4697
4697
  var O = l, w = u, F = c, b = s, S = t, T = d, k = r, $ = I, B = p, P = n, D = a, j = o, U = f, L = !1;
4698
4698
  function V(_) {
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.")), Y(_) || C(_) === l;
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.")), G(_) || C(_) === l;
4700
4700
  }
4701
- function Y(_) {
4701
+ function G(_) {
4702
4702
  return C(_) === u;
4703
4703
  }
4704
- function G(_) {
4704
+ function Y(_) {
4705
4705
  return C(_) === c;
4706
4706
  }
4707
4707
  function H(_) {
@@ -4734,7 +4734,7 @@ function requireReactIs_development() {
4734
4734
  function E(_) {
4735
4735
  return C(_) === f;
4736
4736
  }
4737
- reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = b, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = B, reactIs_development.Portal = P, reactIs_development.Profiler = D, reactIs_development.StrictMode = j, reactIs_development.Suspense = U, reactIs_development.isAsyncMode = V, reactIs_development.isConcurrentMode = Y, reactIs_development.isContextConsumer = G, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = N, reactIs_development.isFragment = W, reactIs_development.isLazy = M, reactIs_development.isMemo = A, reactIs_development.isPortal = q, reactIs_development.isProfiler = Z, reactIs_development.isStrictMode = Q, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = y, reactIs_development.typeOf = C;
4737
+ reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = b, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = B, reactIs_development.Portal = P, reactIs_development.Profiler = D, reactIs_development.StrictMode = j, reactIs_development.Suspense = U, reactIs_development.isAsyncMode = V, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = Y, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = N, reactIs_development.isFragment = W, reactIs_development.isLazy = M, reactIs_development.isMemo = A, reactIs_development.isPortal = q, 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;
@@ -6585,7 +6585,7 @@ function requireRegeneratorRuntime() {
6585
6585
  }
6586
6586
  function f(B, P, D, j) {
6587
6587
  var U = P && P.prototype instanceof I ? P : I, L = Object.create(U.prototype), V = new T(j || []);
6588
- return L._invoke = function(Y, G, H) {
6588
+ return L._invoke = function(G, Y, H) {
6589
6589
  var K = "suspendedStart";
6590
6590
  return function(N, W) {
6591
6591
  if (K === "executing")
@@ -6614,7 +6614,7 @@ function requireRegeneratorRuntime() {
6614
6614
  } else
6615
6615
  H.method === "return" && H.abrupt("return", H.arg);
6616
6616
  K = "executing";
6617
- var q = h(Y, G, H);
6617
+ var q = h(G, Y, H);
6618
6618
  if (q.type === "normal") {
6619
6619
  if (K = H.done ? "completed" : "suspendedYield", q.arg === p)
6620
6620
  continue;
@@ -6664,27 +6664,27 @@ function requireRegeneratorRuntime() {
6664
6664
  });
6665
6665
  }
6666
6666
  function w(B, P) {
6667
- function D(U, L, V, Y) {
6668
- var G = h(B[U], B, L);
6669
- if (G.type !== "throw") {
6670
- var H = G.arg, K = H.value;
6667
+ function D(U, L, V, G) {
6668
+ var Y = h(B[U], B, L);
6669
+ if (Y.type !== "throw") {
6670
+ var H = Y.arg, K = H.value;
6671
6671
  return K && t(K) == "object" && a.call(K, "__await") ? P.resolve(K.__await).then(function(N) {
6672
- D("next", N, V, Y);
6672
+ D("next", N, V, G);
6673
6673
  }, function(N) {
6674
- D("throw", N, V, Y);
6674
+ D("throw", N, V, G);
6675
6675
  }) : P.resolve(K).then(function(N) {
6676
6676
  H.value = N, V(H);
6677
6677
  }, function(N) {
6678
- return D("throw", N, V, Y);
6678
+ return D("throw", N, V, G);
6679
6679
  });
6680
6680
  }
6681
- Y(G.arg);
6681
+ G(Y.arg);
6682
6682
  }
6683
6683
  var j;
6684
6684
  this._invoke = function(U, L) {
6685
6685
  function V() {
6686
- return new P(function(Y, G) {
6687
- D(U, L, Y, G);
6686
+ return new P(function(G, Y) {
6687
+ D(U, L, G, Y);
6688
6688
  });
6689
6689
  }
6690
6690
  return j = j ? j.then(V, V) : V();
@@ -6807,17 +6807,17 @@ function requireRegeneratorRuntime() {
6807
6807
  if (L.tryLoc === "root")
6808
6808
  return j("end");
6809
6809
  if (L.tryLoc <= this.prev) {
6810
- var Y = a.call(L, "catchLoc"), G = a.call(L, "finallyLoc");
6811
- if (Y && G) {
6810
+ var G = a.call(L, "catchLoc"), Y = a.call(L, "finallyLoc");
6811
+ if (G && Y) {
6812
6812
  if (this.prev < L.catchLoc)
6813
6813
  return j(L.catchLoc, !0);
6814
6814
  if (this.prev < L.finallyLoc)
6815
6815
  return j(L.finallyLoc);
6816
- } else if (Y) {
6816
+ } else if (G) {
6817
6817
  if (this.prev < L.catchLoc)
6818
6818
  return j(L.catchLoc, !0);
6819
6819
  } else {
6820
- if (!G)
6820
+ if (!Y)
6821
6821
  throw new Error("try statement without catch or finally");
6822
6822
  if (this.prev < L.finallyLoc)
6823
6823
  return j(L.finallyLoc);
@@ -8716,15 +8716,15 @@ var FormContext = /* @__PURE__ */ React.createContext({
8716
8716
  };
8717
8717
  }, [y, w, r]), k(_objectSpread2$1(_objectSpread2$1({}, y.validateMessages), f)), T({
8718
8718
  onValuesChange: I,
8719
- onFieldsChange: function(G) {
8720
- if (y.triggerFormChange(r, G), v) {
8719
+ onFieldsChange: function(Y) {
8720
+ if (y.triggerFormChange(r, Y), v) {
8721
8721
  for (var H = arguments.length, K = new Array(H > 1 ? H - 1 : 0), N = 1; N < H; N++)
8722
8722
  K[N - 1] = arguments[N];
8723
- v.apply(void 0, [G].concat(K));
8723
+ v.apply(void 0, [Y].concat(K));
8724
8724
  }
8725
8725
  },
8726
- onFinish: function(G) {
8727
- y.triggerFormFinish(r, G), x && x(G);
8726
+ onFinish: function(Y) {
8727
+ y.triggerFormFinish(r, Y), x && x(Y);
8728
8728
  },
8729
8729
  onFinishFailed: g
8730
8730
  }), $(c);
@@ -8750,8 +8750,8 @@ var FormContext = /* @__PURE__ */ React.createContext({
8750
8750
  });
8751
8751
  return d === !1 ? V : /* @__PURE__ */ jsx(d, {
8752
8752
  ...m,
8753
- onSubmit: function(G) {
8754
- G.preventDefault(), G.stopPropagation(), w.submit();
8753
+ onSubmit: function(Y) {
8754
+ Y.preventDefault(), Y.stopPropagation(), w.submit();
8755
8755
  },
8756
8756
  children: V
8757
8757
  });
@@ -9557,7 +9557,7 @@ 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, I = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, O = r.onAppearEnd, w = r.onEnterEnd, F = r.onLeaveEnd, b = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], B = useMountStatus(STATUS_NONE), P = _slicedToArray(B, 2), D = P[0], j = P[1], U = useMountStatus(null), L = _slicedToArray(U, 2), V = L[0], Y = L[1], G = useRef(!1), H = useRef(null), K = useRef(!1), N = 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, I = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, O = r.onAppearEnd, w = r.onEnterEnd, F = r.onLeaveEnd, b = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], B = useMountStatus(STATUS_NONE), P = _slicedToArray(B, 2), D = P[0], j = P[1], U = useMountStatus(null), L = _slicedToArray(U, 2), V = L[0], G = L[1], Y = useRef(!1), H = useRef(null), K = useRef(!1), N = useRef(null);
9561
9561
  function W() {
9562
9562
  var se = n();
9563
9563
  return se || N.current;
@@ -9567,7 +9567,7 @@ function useStatus(e, t, n, r) {
9567
9567
  var ie = W();
9568
9568
  if (!(se && !se.deadline && se.target !== ie)) {
9569
9569
  var le;
9570
- D === STATUS_APPEAR && M.current ? le = O == null ? void 0 : O(ie, se) : D === STATUS_ENTER && M.current ? le = w == null ? void 0 : w(ie, se) : D === STATUS_LEAVE && M.current && (le = F == null ? void 0 : F(ie, se)), le !== !1 && !K.current && (j(STATUS_NONE), Y(null));
9570
+ D === STATUS_APPEAR && M.current ? le = O == null ? void 0 : O(ie, se) : D === STATUS_ENTER && M.current ? le = w == null ? void 0 : w(ie, se) : D === STATUS_LEAVE && M.current && (le = F == null ? void 0 : F(ie, se)), le !== !1 && !K.current && (j(STATUS_NONE), G(null));
9571
9571
  }
9572
9572
  }
9573
9573
  var q = useDomMotionEvents(A), Z = _slicedToArray(q, 1), Q = Z[0], E = React.useMemo(function() {
@@ -9589,7 +9589,7 @@ function useStatus(e, t, n, r) {
9589
9589
  }
9590
9590
  if (te in E) {
9591
9591
  var le;
9592
- Y(((le = E[te]) === null || le === void 0 ? void 0 : le.call(E, W(), null)) || null);
9592
+ G(((le = E[te]) === null || le === void 0 ? void 0 : le.call(E, W(), null)) || null);
9593
9593
  }
9594
9594
  return te === STEP_ACTIVE && (Q(W()), d > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
9595
9595
  A({
@@ -9599,8 +9599,8 @@ function useStatus(e, t, n, r) {
9599
9599
  }), z = _slicedToArray(_, 2), X = z[0], te = z[1], ee = isActive(te);
9600
9600
  M.current = ee, useIsomorphicLayoutEffect(function() {
9601
9601
  if ($(t), !!e) {
9602
- var se = G.current;
9603
- G.current = !0;
9602
+ var se = Y.current;
9603
+ Y.current = !0;
9604
9604
  var ie;
9605
9605
  !se && t && c && (ie = STATUS_APPEAR), se && t && a && (ie = STATUS_ENTER), (se && !t && u || !se && f && !t && u) && (ie = STATUS_LEAVE), ie && (j(ie), X());
9606
9606
  }
@@ -10378,33 +10378,33 @@ function requireMessage() {
10378
10378
  L.top !== void 0 && (x = L.top, I = null), L.duration !== void 0 && (v = L.duration), L.prefixCls !== void 0 && (m = L.prefixCls), L.getContainer !== void 0 && (C = L.getContainer), L.transitionName !== void 0 && (y = L.transitionName, I = null), L.maxCount !== void 0 && (O = L.maxCount, I = null), L.rtl !== void 0 && (w = L.rtl);
10379
10379
  }
10380
10380
  function S(L, V) {
10381
- var Y = L.prefixCls || m;
10381
+ var G = L.prefixCls || m;
10382
10382
  if (I) {
10383
10383
  V({
10384
- prefixCls: Y,
10384
+ prefixCls: G,
10385
10385
  instance: I
10386
10386
  });
10387
10387
  return;
10388
10388
  }
10389
10389
  c.default.newInstance({
10390
- prefixCls: Y,
10390
+ prefixCls: G,
10391
10391
  transitionName: y,
10392
10392
  style: {
10393
10393
  top: x
10394
10394
  },
10395
10395
  getContainer: C,
10396
10396
  maxCount: O
10397
- }, function(G) {
10397
+ }, function(Y) {
10398
10398
  if (I) {
10399
10399
  V({
10400
- prefixCls: Y,
10400
+ prefixCls: G,
10401
10401
  instance: I
10402
10402
  });
10403
10403
  return;
10404
10404
  }
10405
- I = G, V({
10406
- prefixCls: Y,
10407
- instance: G
10405
+ I = Y, V({
10406
+ prefixCls: G,
10407
+ instance: Y
10408
10408
  });
10409
10409
  });
10410
10410
  }
@@ -10416,10 +10416,10 @@ function requireMessage() {
10416
10416
  loading: l.default
10417
10417
  };
10418
10418
  function k(L, V) {
10419
- var Y, G = L.duration !== void 0 ? L.duration : v, H = T[L.type], K = (0, s.default)("".concat(V, "-custom-content"), (Y = {}, (0, o.default)(Y, "".concat(V, "-").concat(L.type), L.type), (0, o.default)(Y, "".concat(V, "-rtl"), w === !0), Y));
10419
+ var G, Y = L.duration !== void 0 ? L.duration : v, H = T[L.type], K = (0, s.default)("".concat(V, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(V, "-").concat(L.type), L.type), (0, o.default)(G, "".concat(V, "-rtl"), w === !0), G));
10420
10420
  return {
10421
10421
  key: L.key,
10422
- duration: G,
10422
+ duration: Y,
10423
10423
  style: L.style || {},
10424
10424
  className: L.className,
10425
10425
  content: /* @__PURE__ */ a.createElement("div", {
@@ -10430,7 +10430,7 @@ function requireMessage() {
10430
10430
  };
10431
10431
  }
10432
10432
  function $(L) {
10433
- var V = L.key || g++, Y = new Promise(function(H) {
10433
+ var V = L.key || g++, G = new Promise(function(H) {
10434
10434
  var K = function() {
10435
10435
  return typeof L.onClose == "function" && L.onClose(), H(!0);
10436
10436
  };
@@ -10441,12 +10441,12 @@ function requireMessage() {
10441
10441
  onClose: K
10442
10442
  }), W));
10443
10443
  });
10444
- }), G = function() {
10444
+ }), Y = function() {
10445
10445
  I && I.removeNotice(V);
10446
10446
  };
10447
- return G.then = function(H, K) {
10448
- return Y.then(H, K);
10449
- }, G.promise = Y, G;
10447
+ return Y.then = function(H, K) {
10448
+ return G.then(H, K);
10449
+ }, Y.promise = G, Y;
10450
10450
  }
10451
10451
  function B(L) {
10452
10452
  return Object.prototype.toString.call(L) === "[object Object]" && !!L.content;
@@ -10457,8 +10457,8 @@ function requireMessage() {
10457
10457
  destroy: function(V) {
10458
10458
  if (I)
10459
10459
  if (V) {
10460
- var Y = I, G = Y.removeNotice;
10461
- G(V);
10460
+ var G = I, Y = G.removeNotice;
10461
+ Y(V);
10462
10462
  } else {
10463
10463
  var H = I, K = H.destroy;
10464
10464
  K(), I = null;
@@ -10466,12 +10466,12 @@ function requireMessage() {
10466
10466
  }
10467
10467
  };
10468
10468
  function D(L, V) {
10469
- L[V] = function(Y, G, H) {
10470
- return B(Y) ? L.open((0, r.default)((0, r.default)({}, Y), {
10469
+ L[V] = function(G, Y, H) {
10470
+ return B(G) ? L.open((0, r.default)((0, r.default)({}, G), {
10471
10471
  type: V
10472
- })) : (typeof G == "function" && (H = G, G = void 0), L.open({
10473
- content: Y,
10474
- duration: G,
10472
+ })) : (typeof Y == "function" && (H = Y, Y = void 0), L.open({
10473
+ content: G,
10474
+ duration: Y,
10475
10475
  type: V,
10476
10476
  onClose: H
10477
10477
  }));
@@ -10741,23 +10741,23 @@ function requireNotification() {
10741
10741
  Object.defineProperty(e, "__esModule", {
10742
10742
  value: !0
10743
10743
  }), e.default = e.getInstance = void 0;
10744
- var r = n(requireRegenerator()), o = n(require_extends()), a = n(requireDefineProperty()), s = t(React__default), c = n(require$$6$1), l = n(requireCloseOutlined()), u = n(requireClassnames()), d = n(requireCheckCircleOutlined()), f = n(requireCloseCircleOutlined()), h = n(requireExclamationCircleOutlined()), p = n(requireInfoCircleOutlined()), I = n(requireUseNotification()), v = function(L, V, Y, G) {
10744
+ var r = n(requireRegenerator()), o = n(require_extends()), a = n(requireDefineProperty()), s = t(React__default), c = n(require$$6$1), l = n(requireCloseOutlined()), u = n(requireClassnames()), d = n(requireCheckCircleOutlined()), f = n(requireCloseCircleOutlined()), h = n(requireExclamationCircleOutlined()), p = n(requireInfoCircleOutlined()), I = n(requireUseNotification()), v = function(L, V, G, Y) {
10745
10745
  function H(K) {
10746
- return K instanceof Y ? K : new Y(function(N) {
10746
+ return K instanceof G ? K : new G(function(N) {
10747
10747
  N(K);
10748
10748
  });
10749
10749
  }
10750
- return new (Y || (Y = Promise))(function(K, N) {
10750
+ return new (G || (G = Promise))(function(K, N) {
10751
10751
  function W(q) {
10752
10752
  try {
10753
- A(G.next(q));
10753
+ A(Y.next(q));
10754
10754
  } catch (Z) {
10755
10755
  N(Z);
10756
10756
  }
10757
10757
  }
10758
10758
  function M(q) {
10759
10759
  try {
10760
- A(G.throw(q));
10760
+ A(Y.throw(q));
10761
10761
  } catch (Z) {
10762
10762
  N(Z);
10763
10763
  }
@@ -10765,49 +10765,49 @@ function requireNotification() {
10765
10765
  function A(q) {
10766
10766
  q.done ? K(q.value) : H(q.value).then(W, M);
10767
10767
  }
10768
- A((G = G.apply(L, V || [])).next());
10768
+ A((Y = Y.apply(L, V || [])).next());
10769
10769
  });
10770
10770
  }, x = {}, g = 4.5, m = 24, y = 24, C = "ant-notification", O = "topRight", w, F, b = !1;
10771
10771
  function S(L) {
10772
- var V = L.duration, Y = L.placement, G = L.bottom, H = L.top, K = L.getContainer, N = L.closeIcon, W = L.prefixCls;
10773
- W !== void 0 && (C = W), V !== void 0 && (g = V), Y !== void 0 ? O = Y : L.rtl && (O = "topLeft"), G !== void 0 && (y = G), H !== void 0 && (m = H), K !== void 0 && (w = K), N !== void 0 && (F = N), L.rtl !== void 0 && (b = L.rtl);
10772
+ var V = L.duration, G = L.placement, Y = L.bottom, H = L.top, K = L.getContainer, N = L.closeIcon, W = L.prefixCls;
10773
+ W !== void 0 && (C = W), V !== void 0 && (g = V), G !== void 0 ? O = G : L.rtl && (O = "topLeft"), Y !== void 0 && (y = Y), H !== void 0 && (m = H), K !== void 0 && (w = K), N !== void 0 && (F = N), L.rtl !== void 0 && (b = L.rtl);
10774
10774
  }
10775
10775
  function T(L) {
10776
- var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y, G;
10776
+ var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y, Y;
10777
10777
  switch (L) {
10778
10778
  case "topLeft":
10779
- G = {
10779
+ Y = {
10780
10780
  left: 0,
10781
10781
  top: V,
10782
10782
  bottom: "auto"
10783
10783
  };
10784
10784
  break;
10785
10785
  case "topRight":
10786
- G = {
10786
+ Y = {
10787
10787
  right: 0,
10788
10788
  top: V,
10789
10789
  bottom: "auto"
10790
10790
  };
10791
10791
  break;
10792
10792
  case "bottomLeft":
10793
- G = {
10793
+ Y = {
10794
10794
  left: 0,
10795
10795
  top: "auto",
10796
- bottom: Y
10796
+ bottom: G
10797
10797
  };
10798
10798
  break;
10799
10799
  default:
10800
- G = {
10800
+ Y = {
10801
10801
  right: 0,
10802
10802
  top: "auto",
10803
- bottom: Y
10803
+ bottom: G
10804
10804
  };
10805
10805
  break;
10806
10806
  }
10807
- return G;
10807
+ return Y;
10808
10808
  }
10809
10809
  function k(L, V) {
10810
- var Y = L.placement, G = Y === void 0 ? O : Y, H = L.top, K = L.bottom, N = L.getContainer, W = N === void 0 ? w : N, M = L.closeIcon, A = M === void 0 ? F : M, q = L.prefixCls || C, Z = "".concat(q, "-notice"), Q = "".concat(q, "-").concat(G), E = x[Q];
10810
+ var G = L.placement, Y = G === void 0 ? O : G, H = L.top, K = L.bottom, N = L.getContainer, W = N === void 0 ? w : N, M = L.closeIcon, A = M === void 0 ? F : M, q = L.prefixCls || C, Z = "".concat(q, "-notice"), Q = "".concat(q, "-").concat(Y), E = x[Q];
10811
10811
  if (E) {
10812
10812
  Promise.resolve(E).then(function(X) {
10813
10813
  V({
@@ -10821,12 +10821,12 @@ function requireNotification() {
10821
10821
  className: "".concat(q, "-close-x")
10822
10822
  }, A || /* @__PURE__ */ s.createElement(l.default, {
10823
10823
  className: "".concat(q, "-close-icon")
10824
- })), z = (0, u.default)("".concat(q, "-").concat(G), (0, a.default)({}, "".concat(q, "-rtl"), b === !0));
10824
+ })), z = (0, u.default)("".concat(q, "-").concat(Y), (0, a.default)({}, "".concat(q, "-rtl"), b === !0));
10825
10825
  x[Q] = new Promise(function(X) {
10826
10826
  c.default.newInstance({
10827
10827
  prefixCls: q,
10828
10828
  className: z,
10829
- style: T(G, H, K),
10829
+ style: T(Y, H, K),
10830
10830
  getContainer: W,
10831
10831
  closeIcon: _
10832
10832
  }, function(te) {
@@ -10844,27 +10844,27 @@ function requireNotification() {
10844
10844
  warning: h.default
10845
10845
  };
10846
10846
  function B(L, V) {
10847
- var Y = L.duration === void 0 ? g : L.duration, G = null;
10848
- L.icon ? G = /* @__PURE__ */ s.createElement("span", {
10847
+ var G = L.duration === void 0 ? g : L.duration, Y = null;
10848
+ L.icon ? Y = /* @__PURE__ */ s.createElement("span", {
10849
10849
  className: "".concat(V, "-icon")
10850
- }, L.icon) : L.type && (G = /* @__PURE__ */ s.createElement($[L.type] || null, {
10850
+ }, L.icon) : L.type && (Y = /* @__PURE__ */ s.createElement($[L.type] || null, {
10851
10851
  className: "".concat(V, "-icon ").concat(V, "-icon-").concat(L.type)
10852
10852
  }));
10853
- var H = !L.description && G ? /* @__PURE__ */ s.createElement("span", {
10853
+ var H = !L.description && Y ? /* @__PURE__ */ s.createElement("span", {
10854
10854
  className: "".concat(V, "-message-single-line-auto-margin")
10855
10855
  }) : null;
10856
10856
  return {
10857
10857
  content: /* @__PURE__ */ s.createElement("div", {
10858
- className: G ? "".concat(V, "-with-icon") : "",
10858
+ className: Y ? "".concat(V, "-with-icon") : "",
10859
10859
  role: "alert"
10860
- }, G, /* @__PURE__ */ s.createElement("div", {
10860
+ }, Y, /* @__PURE__ */ s.createElement("div", {
10861
10861
  className: "".concat(V, "-message")
10862
10862
  }, H, L.message), /* @__PURE__ */ s.createElement("div", {
10863
10863
  className: "".concat(V, "-description")
10864
10864
  }, L.description), L.btn ? /* @__PURE__ */ s.createElement("span", {
10865
10865
  className: "".concat(V, "-btn")
10866
10866
  }, L.btn) : null),
10867
- duration: Y,
10867
+ duration: G,
10868
10868
  closable: !0,
10869
10869
  onClose: L.onClose,
10870
10870
  onClick: L.onClick,
@@ -10875,24 +10875,24 @@ function requireNotification() {
10875
10875
  }
10876
10876
  function P(L) {
10877
10877
  k(L, function(V) {
10878
- var Y = V.prefixCls, G = V.instance;
10879
- G.notice(B(L, Y));
10878
+ var G = V.prefixCls, Y = V.instance;
10879
+ Y.notice(B(L, G));
10880
10880
  });
10881
10881
  }
10882
10882
  var D = {
10883
10883
  open: P,
10884
10884
  close: function(V) {
10885
- Object.keys(x).forEach(function(Y) {
10886
- return Promise.resolve(x[Y]).then(function(G) {
10887
- G.removeNotice(V);
10885
+ Object.keys(x).forEach(function(G) {
10886
+ return Promise.resolve(x[G]).then(function(Y) {
10887
+ Y.removeNotice(V);
10888
10888
  });
10889
10889
  });
10890
10890
  },
10891
10891
  config: S,
10892
10892
  destroy: function() {
10893
10893
  Object.keys(x).forEach(function(V) {
10894
- Promise.resolve(x[V]).then(function(Y) {
10895
- Y.destroy();
10894
+ Promise.resolve(x[V]).then(function(G) {
10895
+ G.destroy();
10896
10896
  }), delete x[V];
10897
10897
  });
10898
10898
  }
@@ -10905,7 +10905,7 @@ function requireNotification() {
10905
10905
  };
10906
10906
  }), D.warn = D.warning, D.useNotification = (0, I.default)(k, B);
10907
10907
  var j = function(V) {
10908
- return v(void 0, void 0, void 0, /* @__PURE__ */ r.default.mark(function Y() {
10908
+ return v(void 0, void 0, void 0, /* @__PURE__ */ r.default.mark(function G() {
10909
10909
  return r.default.wrap(function(H) {
10910
10910
  for (; ; )
10911
10911
  switch (H.prev = H.next) {
@@ -10915,7 +10915,7 @@ function requireNotification() {
10915
10915
  case "end":
10916
10916
  return H.stop();
10917
10917
  }
10918
- }, Y);
10918
+ }, G);
10919
10919
  }));
10920
10920
  };
10921
10921
  e.getInstance = j;
@@ -10963,14 +10963,14 @@ function requireConfigProvider() {
10963
10963
  var W = C[N];
10964
10964
  W && (V[N] = W);
10965
10965
  });
10966
- var Y = (0, c.default)(function() {
10966
+ var G = (0, c.default)(function() {
10967
10967
  return V;
10968
10968
  }, V, function(N, W) {
10969
10969
  var M = Object.keys(N), A = Object.keys(W);
10970
10970
  return M.length !== A.length || M.some(function(q) {
10971
10971
  return N[q] !== W[q];
10972
10972
  });
10973
- }), G = o.useMemo(function() {
10973
+ }), Y = o.useMemo(function() {
10974
10974
  return {
10975
10975
  prefixCls: U
10976
10976
  };
@@ -10981,11 +10981,11 @@ function requireConfigProvider() {
10981
10981
  locale: S,
10982
10982
  _ANT_MARK__: l.ANT_MARK
10983
10983
  }, H)), U && (H = /* @__PURE__ */ o.createElement(a.default.Provider, {
10984
- value: G
10984
+ value: Y
10985
10985
  }, H)), T && (H = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
10986
10986
  size: T
10987
10987
  }, H)), /* @__PURE__ */ o.createElement(d.ConfigContext.Provider, {
10988
- value: Y
10988
+ value: G
10989
10989
  }, H);
10990
10990
  }, g = function(C) {
10991
10991
  return o.useEffect(function() {
@@ -11080,7 +11080,7 @@ function requireInput() {
11080
11080
  T.focus();
11081
11081
  }), g(T.input, $, T.props.onChange);
11082
11082
  }, T.renderInput = function($, B, P) {
11083
- var D = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, j = T.props, U = j.className, L = j.addonBefore, V = j.addonAfter, Y = j.size, G = j.disabled, H = (0, f.default)(T.props, [
11083
+ var D = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, j = T.props, U = j.className, L = j.addonBefore, V = j.addonAfter, G = j.size, Y = j.disabled, H = (0, f.default)(T.props, [
11084
11084
  "prefixCls",
11085
11085
  "onPressEnter",
11086
11086
  "addonBefore",
@@ -11100,7 +11100,7 @@ function requireInput() {
11100
11100
  onFocus: T.onFocus,
11101
11101
  onBlur: T.onBlur,
11102
11102
  onKeyDown: T.handleKeyDown,
11103
- className: (0, d.default)(m($, P, Y || B, G, T.direction), (0, l.default)({}, U, U && !L && !V)),
11103
+ className: (0, d.default)(m($, P, G || B, Y, T.direction), (0, l.default)({}, U, U && !L && !V)),
11104
11104
  ref: T.saveInput
11105
11105
  }));
11106
11106
  }, T.clearPasswordValueAttribute = function() {
@@ -11113,7 +11113,7 @@ function requireInput() {
11113
11113
  var B = T.props, P = B.onPressEnter, D = B.onKeyDown;
11114
11114
  $.keyCode === 13 && P && P($), D && D($);
11115
11115
  }, T.renderComponent = function($) {
11116
- var B = $.getPrefixCls, P = $.direction, D = $.input, j = T.state, U = j.value, L = j.focused, V = T.props, Y = V.prefixCls, G = V.bordered, H = G === void 0 ? !0 : G, K = B("input", Y);
11116
+ var B = $.getPrefixCls, P = $.direction, D = $.input, j = T.state, U = j.value, L = j.focused, V = T.props, G = V.prefixCls, Y = V.bordered, H = Y === void 0 ? !0 : Y, K = B("input", G);
11117
11117
  return T.direction = P, /* @__PURE__ */ u.createElement(I.default.Consumer, null, function(N) {
11118
11118
  return /* @__PURE__ */ u.createElement(h.default, (0, r.default)({
11119
11119
  size: N
@@ -11271,18 +11271,18 @@ function requireClearableLabeledInput() {
11271
11271
  }, {
11272
11272
  key: "renderLabeledIcon",
11273
11273
  value: function(F, b) {
11274
- var S, T = this.props, k = T.focused, $ = T.value, B = T.prefix, P = T.className, D = T.size, j = T.suffix, U = T.disabled, L = T.allowClear, V = T.direction, Y = T.style, G = T.readOnly, H = T.bordered, K = this.renderSuffix(F);
11274
+ var S, T = this.props, k = T.focused, $ = T.value, B = T.prefix, P = T.className, D = T.size, j = T.suffix, U = T.disabled, L = T.allowClear, V = T.direction, G = T.style, Y = T.readOnly, H = T.bordered, K = this.renderSuffix(F);
11275
11275
  if (!v(this.props))
11276
11276
  return (0, p.cloneElement)(b, {
11277
11277
  value: $
11278
11278
  });
11279
11279
  var N = B ? /* @__PURE__ */ l.createElement("span", {
11280
11280
  className: "".concat(F, "-prefix")
11281
- }, B) : null, W = (0, u.default)("".concat(F, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(F, "-affix-wrapper-disabled"), U), (0, r.default)(S, "".concat(F, "-affix-wrapper-sm"), D === "small"), (0, r.default)(S, "".concat(F, "-affix-wrapper-lg"), D === "large"), (0, r.default)(S, "".concat(F, "-affix-wrapper-input-with-clear-btn"), j && L && $), (0, r.default)(S, "".concat(F, "-affix-wrapper-rtl"), V === "rtl"), (0, r.default)(S, "".concat(F, "-affix-wrapper-readonly"), G), (0, r.default)(S, "".concat(F, "-affix-wrapper-borderless"), !H), (0, r.default)(S, "".concat(P), !x(this.props) && P), S));
11281
+ }, B) : null, W = (0, u.default)("".concat(F, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(F, "-affix-wrapper-disabled"), U), (0, r.default)(S, "".concat(F, "-affix-wrapper-sm"), D === "small"), (0, r.default)(S, "".concat(F, "-affix-wrapper-lg"), D === "large"), (0, r.default)(S, "".concat(F, "-affix-wrapper-input-with-clear-btn"), j && L && $), (0, r.default)(S, "".concat(F, "-affix-wrapper-rtl"), V === "rtl"), (0, r.default)(S, "".concat(F, "-affix-wrapper-readonly"), Y), (0, r.default)(S, "".concat(F, "-affix-wrapper-borderless"), !H), (0, r.default)(S, "".concat(P), !x(this.props) && P), S));
11282
11282
  return /* @__PURE__ */ l.createElement("span", {
11283
11283
  ref: this.containerRef,
11284
11284
  className: W,
11285
- style: Y,
11285
+ style: G,
11286
11286
  onMouseUp: this.onInputMouseUp
11287
11287
  }, N, (0, p.cloneElement)(b, {
11288
11288
  style: null,
@@ -11298,17 +11298,17 @@ function requireClearableLabeledInput() {
11298
11298
  return b;
11299
11299
  var U = "".concat(F, "-group"), L = "".concat(U, "-addon"), V = k ? /* @__PURE__ */ l.createElement("span", {
11300
11300
  className: L
11301
- }, k) : null, Y = $ ? /* @__PURE__ */ l.createElement("span", {
11301
+ }, k) : null, G = $ ? /* @__PURE__ */ l.createElement("span", {
11302
11302
  className: L
11303
- }, $) : null, G = (0, u.default)("".concat(F, "-wrapper"), U, (0, r.default)({}, "".concat(U, "-rtl"), j === "rtl")), H = (0, u.default)("".concat(F, "-group-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-group-wrapper-sm"), P === "small"), (0, r.default)(S, "".concat(F, "-group-wrapper-lg"), P === "large"), (0, r.default)(S, "".concat(F, "-group-wrapper-rtl"), j === "rtl"), S), D);
11303
+ }, $) : null, Y = (0, u.default)("".concat(F, "-wrapper"), U, (0, r.default)({}, "".concat(U, "-rtl"), j === "rtl")), H = (0, u.default)("".concat(F, "-group-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-group-wrapper-sm"), P === "small"), (0, r.default)(S, "".concat(F, "-group-wrapper-lg"), P === "large"), (0, r.default)(S, "".concat(F, "-group-wrapper-rtl"), j === "rtl"), S), D);
11304
11304
  return /* @__PURE__ */ l.createElement("span", {
11305
11305
  className: H,
11306
11306
  style: B
11307
11307
  }, /* @__PURE__ */ l.createElement("span", {
11308
- className: G
11308
+ className: Y
11309
11309
  }, V, (0, p.cloneElement)(b, {
11310
11310
  style: null
11311
- }), Y));
11311
+ }), G));
11312
11312
  }
11313
11313
  }, {
11314
11314
  key: "renderTextAreaWithClearIcon",
@@ -11352,7 +11352,7 @@ function requireClearableLabeledInput() {
11352
11352
  O.indexOf(F[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, F[b]) && (w[F[b]] = C[F[b]]);
11353
11353
  return w;
11354
11354
  }, m = /* @__PURE__ */ l.forwardRef(function(C, O) {
11355
- var w, F = C.prefixCls, b = C.bordered, S = b === void 0 ? !0 : b, T = C.showCount, k = T === void 0 ? !1 : T, $ = C.maxLength, B = C.className, P = C.style, D = C.size, j = g(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), U = l.useContext(I.ConfigContext), L = U.getPrefixCls, V = U.direction, Y = l.useContext(x.default), G = l.useRef(null), H = l.useRef(null), K = (0, h.default)(j.defaultValue, {
11355
+ var w, F = C.prefixCls, b = C.bordered, S = b === void 0 ? !0 : b, T = C.showCount, k = T === void 0 ? !1 : T, $ = C.maxLength, B = C.className, P = C.style, D = C.size, j = g(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), U = l.useContext(I.ConfigContext), L = U.getPrefixCls, V = U.direction, G = l.useContext(x.default), Y = l.useRef(null), H = l.useRef(null), K = (0, h.default)(j.defaultValue, {
11356
11356
  value: j.value
11357
11357
  }), N = (0, c.default)(K, 2), W = N[0], M = N[1], A = l.useRef(j.value);
11358
11358
  l.useEffect(function() {
@@ -11361,34 +11361,34 @@ function requireClearableLabeledInput() {
11361
11361
  var q = function(ie, le) {
11362
11362
  j.value === void 0 && (M(ie), le == null || le());
11363
11363
  }, Z = function(ie) {
11364
- q(ie.target.value), (0, v.resolveOnChange)(G.current, ie, j.onChange);
11364
+ q(ie.target.value), (0, v.resolveOnChange)(Y.current, ie, j.onChange);
11365
11365
  }, Q = function(ie) {
11366
11366
  q("", function() {
11367
11367
  var le;
11368
- (le = G.current) === null || le === void 0 || le.focus();
11369
- }), (0, v.resolveOnChange)(G.current, ie, j.onChange);
11368
+ (le = Y.current) === null || le === void 0 || le.focus();
11369
+ }), (0, v.resolveOnChange)(Y.current, ie, j.onChange);
11370
11370
  }, E = L("input", F);
11371
11371
  l.useImperativeHandle(O, function() {
11372
11372
  var se;
11373
11373
  return {
11374
- resizableTextArea: (se = G.current) === null || se === void 0 ? void 0 : se.resizableTextArea,
11374
+ resizableTextArea: (se = Y.current) === null || se === void 0 ? void 0 : se.resizableTextArea,
11375
11375
  focus: function(le) {
11376
11376
  var pe, ve;
11377
- (0, v.triggerFocus)((ve = (pe = G.current) === null || pe === void 0 ? void 0 : pe.resizableTextArea) === null || ve === void 0 ? void 0 : ve.textArea, le);
11377
+ (0, v.triggerFocus)((ve = (pe = Y.current) === null || pe === void 0 ? void 0 : pe.resizableTextArea) === null || ve === void 0 ? void 0 : ve.textArea, le);
11378
11378
  },
11379
11379
  blur: function() {
11380
11380
  var le;
11381
- return (le = G.current) === null || le === void 0 ? void 0 : le.blur();
11381
+ return (le = Y.current) === null || le === void 0 ? void 0 : le.blur();
11382
11382
  }
11383
11383
  };
11384
11384
  });
11385
11385
  var _ = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(j, ["allowClear"]), {
11386
11386
  maxLength: $,
11387
- className: (0, f.default)((w = {}, (0, s.default)(w, "".concat(E, "-borderless"), !S), (0, s.default)(w, B, B && !k), (0, s.default)(w, "".concat(E, "-sm"), Y === "small" || D === "small"), (0, s.default)(w, "".concat(E, "-lg"), Y === "large" || D === "large"), w)),
11387
+ className: (0, f.default)((w = {}, (0, s.default)(w, "".concat(E, "-borderless"), !S), (0, s.default)(w, B, B && !k), (0, s.default)(w, "".concat(E, "-sm"), G === "small" || D === "small"), (0, s.default)(w, "".concat(E, "-lg"), G === "large" || D === "large"), w)),
11388
11388
  style: k ? void 0 : P,
11389
11389
  prefixCls: E,
11390
11390
  onChange: Z,
11391
- ref: G
11391
+ ref: Y
11392
11392
  })), z = (0, v.fixControlledValue)(W), X = Number($) > 0;
11393
11393
  z = X ? (0, o.default)(z).slice(0, $).join("") : z;
11394
11394
  var te = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, j, {
@@ -12565,7 +12565,7 @@ function require_stream_writable() {
12565
12565
  if (D(q), A)
12566
12566
  P(M, q, Z, A, Q);
12567
12567
  else {
12568
- var E = Y(q) || M.destroyed;
12568
+ var E = G(q) || M.destroyed;
12569
12569
  !E && !q.corked && !q.bufferProcessing && q.bufferedRequest && V(M, q), Z ? process.nextTick(U, M, q, E, Q) : U(M, q, E, Q);
12570
12570
  }
12571
12571
  }
@@ -12605,19 +12605,19 @@ function require_stream_writable() {
12605
12605
  return this._writableState.length;
12606
12606
  }
12607
12607
  });
12608
- function Y(M) {
12608
+ function G(M) {
12609
12609
  return M.ending && M.length === 0 && M.bufferedRequest === null && !M.finished && !M.writing;
12610
12610
  }
12611
- function G(M, A) {
12611
+ function Y(M, A) {
12612
12612
  M._final(function(q) {
12613
12613
  A.pendingcb--, q && C(M, q), A.prefinished = !0, M.emit("prefinish"), K(M, A);
12614
12614
  });
12615
12615
  }
12616
12616
  function H(M, A) {
12617
- !A.prefinished && !A.finalCalled && (typeof M._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(G, M, A)) : (A.prefinished = !0, M.emit("prefinish")));
12617
+ !A.prefinished && !A.finalCalled && (typeof M._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(Y, M, A)) : (A.prefinished = !0, M.emit("prefinish")));
12618
12618
  }
12619
12619
  function K(M, A) {
12620
- var q = Y(A);
12620
+ var q = G(A);
12621
12621
  if (q && (H(M, A), A.pendingcb === 0 && (A.finished = !0, M.emit("finish"), A.autoDestroy))) {
12622
12622
  var Z = M._readableState;
12623
12623
  (!Z || Z.autoDestroy && Z.endEmitted) && M.destroy();
@@ -13193,9 +13193,9 @@ function require_stream_readable() {
13193
13193
  l("emitReadable_", _.destroyed, _.length, _.ended), !_.destroyed && (_.length || _.ended) && (E.emit("readable"), _.emittedReadable = !1), _.needReadable = !_.flowing && !_.ended && _.length <= _.highWaterMark, M(E);
13194
13194
  }
13195
13195
  function V(E, _) {
13196
- _.readingMore || (_.readingMore = !0, process.nextTick(Y, E, _));
13196
+ _.readingMore || (_.readingMore = !0, process.nextTick(G, E, _));
13197
13197
  }
13198
- function Y(E, _) {
13198
+ function G(E, _) {
13199
13199
  for (; !_.reading && !_.ended && (_.length < _.highWaterMark || _.flowing && _.length === 0); ) {
13200
13200
  var z = _.length;
13201
13201
  if (l("maybeReadMore read 0"), E.read(0), z === _.length)
@@ -13227,7 +13227,7 @@ function require_stream_readable() {
13227
13227
  function se() {
13228
13228
  l("onend"), E.end();
13229
13229
  }
13230
- var ie = G(z);
13230
+ var ie = Y(z);
13231
13231
  E.on("drain", ie);
13232
13232
  var le = !1;
13233
13233
  function pe() {
@@ -13256,7 +13256,7 @@ function require_stream_readable() {
13256
13256
  }
13257
13257
  return E.emit("pipe", z), X.flowing || (l("pipe resume"), z.resume()), E;
13258
13258
  };
13259
- function G(E) {
13259
+ function Y(E) {
13260
13260
  return function() {
13261
13261
  var z = E._readableState;
13262
13262
  l("pipeOnDrain", z.awaitDrain), z.awaitDrain && z.awaitDrain--, z.awaitDrain === 0 && t(E, "data") && (z.flowing = !0, M(E));
@@ -16306,8 +16306,8 @@ const transformPlainMany2Ones = ({
16306
16306
  currentModel: U,
16307
16307
  toolbar: L,
16308
16308
  setToolbar: V,
16309
- sorter: Y,
16310
- setSorter: G,
16309
+ sorter: G,
16310
+ setSorter: Y,
16311
16311
  totalItems: H,
16312
16312
  setTotalItems: K,
16313
16313
  setSelectedRowItems: N,
@@ -16362,8 +16362,8 @@ const transformPlainMany2Ones = ({
16362
16362
  searchParams: v,
16363
16363
  searchVisible: g,
16364
16364
  setSearchVisible: m,
16365
- sorter: Y,
16366
- setSorter: G,
16365
+ sorter: G,
16366
+ setSorter: Y,
16367
16367
  totalItems: H,
16368
16368
  setTotalItems: K,
16369
16369
  searchTreeNameSearch: M,
@@ -16434,40 +16434,23 @@ const transformPlainMany2Ones = ({
16434
16434
  return;
16435
16435
  }
16436
16436
  const {
16437
- ids: U,
16438
- ...L
16437
+ ids: U
16439
16438
  } = P || {};
16440
- let V = U;
16441
- const Y = typeof $ == "string" ? parseContext({
16439
+ let L = U || [];
16440
+ const V = typeof $ == "string" ? parseContext({
16442
16441
  context: $,
16443
16442
  fields: S,
16444
16443
  values: T
16445
16444
  }) : $;
16446
- if (!V) {
16447
- const G = await ConnectionProvider.getHandler().searchAllIds({
16448
- params: [],
16449
- model: L.model || B,
16450
- totalItems: 1,
16451
- context: {
16452
- ...k,
16453
- ...Y
16454
- }
16455
- });
16456
- if (G.length === 0) {
16457
- showDialog$8("Nothing to print");
16458
- return;
16459
- }
16460
- V = G, P.id = G[0];
16461
- }
16462
16445
  try {
16463
16446
  const G = await ConnectionProvider.getHandler().createReport({
16464
16447
  model: B,
16465
16448
  name: D,
16466
16449
  datas: P,
16467
- ids: V,
16450
+ ids: L,
16468
16451
  context: {
16469
16452
  ...k,
16470
- ...Y
16453
+ ...V
16471
16454
  }
16472
16455
  });
16473
16456
  c(!0), a.current = !0, o.current = setInterval(() => {
@@ -16562,12 +16545,12 @@ const transformPlainMany2Ones = ({
16562
16545
  let j;
16563
16546
  const U = k.view_mode.split(","), L = [];
16564
16547
  for (const V of U) {
16565
- const Y = await ConnectionProvider.getHandler().getView({
16548
+ const G = await ConnectionProvider.getHandler().getView({
16566
16549
  model: k.res_model,
16567
16550
  type: V,
16568
16551
  context: B
16569
16552
  });
16570
- L.push([Y.view_id, V]);
16553
+ L.push([G.view_id, V]);
16571
16554
  }
16572
16555
  if (k.view_id)
16573
16556
  j = {
@@ -16575,9 +16558,9 @@ const transformPlainMany2Ones = ({
16575
16558
  type: k.view_mode.split(",")[0]
16576
16559
  };
16577
16560
  else {
16578
- const V = k.view_mode.split(",")[0], [Y] = L.find(([G, H]) => H === V);
16561
+ const V = k.view_mode.split(",")[0], [G] = L.find(([Y, H]) => H === V);
16579
16562
  j = {
16580
- id: Y,
16563
+ id: G,
16581
16564
  type: V
16582
16565
  };
16583
16566
  }
@@ -16714,7 +16697,7 @@ function Form(e, t) {
16714
16697
  forcedValues: w = {}
16715
16698
  } = e, {
16716
16699
  lang: F
16717
- } = useContext(LocaleContext), [b, S] = useState(!1), [T, k] = useState(), [$, B] = useState(), [P] = Form$3.useForm(), [D, j] = useState(), [U, L] = useState(), V = useContext(FormModalContext), [Y, G] = useState(), [H, K] = useState(!1), N = useRef(), W = useRef({}), M = useRef({}), A = useRef(!1), q = useRef(!1), Z = Y < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
16700
+ } = useContext(LocaleContext), [b, S] = useState(!1), [T, k] = useState(), [$, B] = useState(), [P] = Form$3.useForm(), [D, j] = useState(), [U, L] = useState(), V = useContext(FormModalContext), [G, Y] = useState(), [H, K] = useState(!1), N = useRef(), W = useRef({}), M = useRef({}), A = useRef(!1), q = useRef(!1), Z = G < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
16718
16701
  activeId: E
16719
16702
  } = Q || {}, _ = useContext(ActionViewContext), {
16720
16703
  setFormIsSaving: z = void 0,
@@ -17293,7 +17276,7 @@ function Form(e, t) {
17293
17276
  bounds: !0,
17294
17277
  onResize: (J) => {
17295
17278
  var ne;
17296
- G((ne = J.bounds) == null ? void 0 : ne.width);
17279
+ Y((ne = J.bounds) == null ? void 0 : ne.width);
17297
17280
  },
17298
17281
  children: ({
17299
17282
  measureRef: J
@@ -18316,16 +18299,16 @@ function Tree(e) {
18316
18299
  });
18317
18300
  function $() {
18318
18301
  var V;
18319
- const j = w.current.columns.filter((Y) => Y.sum !== void 0).map((Y) => ({
18320
- label: Y.sum,
18321
- field: Y.id
18302
+ const j = w.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
18303
+ label: G.sum,
18304
+ field: G.id
18322
18305
  }));
18323
18306
  if (!j || j.length === 0)
18324
18307
  return null;
18325
- let U = [], L = ((V = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : V.length) > 0 ? g.filter((Y) => d == null ? void 0 : d.selectedRowKeys.includes(Y.id)) : g;
18326
- return j.forEach((Y) => {
18327
- const G = L.reduce((H, K) => K[Y.field] && !isNaN(K[Y.field]) ? H + K[Y.field] : H, 0);
18328
- U.push(`${Y.label}: ${Math.round(G * 100) / 100}`);
18308
+ let U = [], L = ((V = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : V.length) > 0 ? g.filter((G) => d == null ? void 0 : d.selectedRowKeys.includes(G.id)) : g;
18309
+ return j.forEach((G) => {
18310
+ const Y = L.reduce((H, K) => K[G.field] && !isNaN(K[G.field]) ? H + K[G.field] : H, 0);
18311
+ U.push(`${G.label}: ${Math.round(Y * 100) / 100}`);
18329
18312
  }), /* @__PURE__ */ jsx("div", {
18330
18313
  className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
18331
18314
  children: U.join(", ")
@@ -18383,7 +18366,7 @@ function SearchTree(e, t) {
18383
18366
  parentContext: f = {},
18384
18367
  onChangeSelectedRowKeys: h,
18385
18368
  limit: p
18386
- } = e, [I, v] = useState(!1), [x, g] = useState(!1), m = useRef(!1), y = useRef(p || DEFAULT_SEARCH_LIMIT$1), [C, O] = useState(), [w, F] = useState(), [b, S] = useState(), [T, k] = useState(1), [$, B] = useState(0), [P, D] = useState(p || DEFAULT_SEARCH_LIMIT$1), j = useRef([]), [U, L] = useState(), [V, Y] = useState([]), [G, H] = useState(void 0), [K, N] = useState(!1), [W, M] = useState(), [A, q] = useState(), [Z, Q] = useState(!1), E = useRef([]), [_, z] = useState(200), X = useRef([]), te = useRef(), {
18369
+ } = e, [I, v] = useState(!1), [x, g] = useState(!1), m = useRef(!1), y = useRef(p || DEFAULT_SEARCH_LIMIT$1), [C, O] = useState(), [w, F] = useState(), [b, S] = useState(), [T, k] = useState(1), [$, B] = useState(0), [P, D] = useState(p || DEFAULT_SEARCH_LIMIT$1), j = useRef([]), [U, L] = useState(), [V, G] = useState([]), [Y, H] = useState(void 0), [K, N] = useState(!1), [W, M] = useState(), [A, q] = useState(), [Z, Q] = useState(!1), E = useRef([]), [_, z] = useState(200), X = useRef([]), te = useRef(), {
18387
18370
  height: ee
18388
18371
  } = useWindowDimensions(), re = useContext(ActionViewContext), {
18389
18372
  setResults: se = void 0,
@@ -18412,7 +18395,7 @@ function SearchTree(e, t) {
18412
18395
  Q(!0), k(de), B((de - 1) * P);
18413
18396
  };
18414
18397
  function Ie(de) {
18415
- se == null || se([...de]), Y([...de]);
18398
+ se == null || se([...de]), G([...de]);
18416
18399
  }
18417
18400
  const Se = useCallback(() => pe || V, [pe, V]), Re = async () => {
18418
18401
  const de = await ConnectionProvider.getHandler().nameSearch({
@@ -18651,7 +18634,7 @@ function SearchTree(e, t) {
18651
18634
  loading: Z,
18652
18635
  onRowClicked: ze,
18653
18636
  scrollY: c || Ye(),
18654
- colorsForResults: G,
18637
+ colorsForResults: Y,
18655
18638
  rowSelection: {
18656
18639
  selectedRowKeys: ve == null ? void 0 : ve.map((de) => de.id),
18657
18640
  onChange: Ge
@@ -18823,17 +18806,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18823
18806
  getContext: k,
18824
18807
  setOriginalValue: $,
18825
18808
  elementHasLostFocus: B
18826
- } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0] || void 0, L = t && t[1] || "";
18809
+ } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0], L = t && t[1] || "";
18827
18810
  useEffect(() => {
18828
- !Array.isArray(t) && t && K(t);
18811
+ !Array.isArray(t) && !isNaN(t) && K(t);
18829
18812
  }, [t]), useEffect(() => {
18830
18813
  U && L.length === 0 ? K(U) : U && L.length > 0 ? O(L) : !U && !L && O(w.current || "");
18831
18814
  }, [t]);
18832
18815
  const V = (A) => {
18833
18816
  n == null || n(A), B == null || B();
18834
- }, Y = (A) => {
18817
+ }, G = (A) => {
18835
18818
  w.current = A.target.value, V([void 0, ""]);
18836
- }, G = async () => {
18819
+ }, Y = async () => {
18837
18820
  if (!v && C !== L) {
18838
18821
  if (await new Promise((A) => setTimeout(A, 100)), y.current) {
18839
18822
  V([void 0, ""]);
@@ -18908,7 +18891,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18908
18891
  }))), j(P.current);
18909
18892
  }
18910
18893
  async function W(A) {
18911
- A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await G()) : A.code === "Backspace" && U !== void 0 && (A.preventDefault(), A.stopPropagation(), V([void 0, ""]));
18894
+ A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await Y()) : A.code === "Backspace" && U !== void 0 && (A.preventDefault(), A.stopPropagation(), V([void 0, ""]));
18912
18895
  }
18913
18896
  return /* @__PURE__ */ jsxs(Row, {
18914
18897
  gutter: 8,
@@ -18919,9 +18902,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18919
18902
  type: "text",
18920
18903
  value: C,
18921
18904
  disabled: s,
18922
- onChange: Y,
18905
+ onChange: G,
18923
18906
  className: d,
18924
- onBlur: G,
18907
+ onBlur: Y,
18925
18908
  onKeyDown: W,
18926
18909
  suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
18927
18910
  id: U,
@@ -20346,15 +20329,15 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20346
20329
  function V() {
20347
20330
  return f || h;
20348
20331
  }
20349
- function Y() {
20332
+ function G() {
20350
20333
  var A;
20351
20334
  (A = y.current) === null || A === void 0 || A.forceAlign();
20352
20335
  }
20353
- function G(A, q) {
20336
+ function Y(A, q) {
20354
20337
  if (j === "align") {
20355
20338
  var Z = p(q);
20356
20339
  b(Z), F !== Z ? Promise.resolve().then(function() {
20357
- Y();
20340
+ G();
20358
20341
  }) : U(function() {
20359
20342
  var Q;
20360
20343
  (Q = L.current) === null || Q === void 0 || Q.call(L);
@@ -20377,7 +20360,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20377
20360
  !H.motionName && j === "motion" && U();
20378
20361
  }, [H.motionName, j]), React.useImperativeHandle(t, function() {
20379
20362
  return {
20380
- forceAlign: Y,
20363
+ forceAlign: G,
20381
20364
  getElement: function() {
20382
20365
  return C.current;
20383
20366
  }
@@ -20410,7 +20393,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20410
20393
  monitorWindowResize: !0,
20411
20394
  disabled: W,
20412
20395
  align: d,
20413
- onAlign: G,
20396
+ onAlign: Y,
20414
20397
  children: /* @__PURE__ */ jsx("div", {
20415
20398
  ref: q,
20416
20399
  className: E,
@@ -20902,16 +20885,16 @@ var autoAdjustOverflow = {
20902
20885
  var B = _objectSpread2$1({}, k);
20903
20886
  "visible" in t && (B.popupVisible = t.visible);
20904
20887
  var P = function() {
20905
- var V = t.arrowContent, Y = V === void 0 ? null : V, G = t.overlay, H = t.id;
20888
+ var V = t.arrowContent, G = V === void 0 ? null : V, Y = t.overlay, H = t.id;
20906
20889
  return [
20907
20890
  /* @__PURE__ */ jsx("div", {
20908
20891
  className: "".concat(h, "-arrow"),
20909
- children: Y
20892
+ children: G
20910
20893
  }, "arrow"),
20911
20894
  /* @__PURE__ */ jsx(Content$2, {
20912
20895
  prefixCls: h,
20913
20896
  id: H,
20914
- overlay: G,
20897
+ overlay: Y,
20915
20898
  overlayInnerStyle: T
20916
20899
  }, "content")
20917
20900
  ];
@@ -21197,7 +21180,7 @@ function requireTooltip() {
21197
21180
  }, U = function() {
21198
21181
  var te = m.title, ee = m.overlay;
21199
21182
  return te === 0 ? te : ee || te || "";
21200
- }, L = m.prefixCls, V = m.openClassName, Y = m.getPopupContainer, G = m.getTooltipContainer, H = m.overlayClassName, K = m.color, N = m.overlayInnerStyle, W = m.children, M = F("tooltip", L), A = k;
21183
+ }, L = m.prefixCls, V = m.openClassName, G = m.getPopupContainer, Y = m.getTooltipContainer, H = m.overlayClassName, K = m.color, N = m.overlayInnerStyle, W = m.children, M = F("tooltip", L), A = k;
21201
21184
  !("visible" in m) && B() && (A = !1);
21202
21185
  var q = v((0, d.isValidElement)(W) ? W : /* @__PURE__ */ s.createElement("span", null, W), M), Z = q.props, Q = (0, l.default)(Z.className, (0, r.default)({}, V || "".concat(M, "-open"), !0)), E = (0, l.default)(H, (C = {}, (0, r.default)(C, "".concat(M, "-rtl"), b === "rtl"), (0, r.default)(C, "".concat(M, "-").concat(K), K && I.test(K)), C)), _ = N, z;
21203
21186
  return K && !I.test(K) && (_ = (0, a.default)((0, a.default)({}, N), {
@@ -21207,7 +21190,7 @@ function requireTooltip() {
21207
21190
  }), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({}, m, {
21208
21191
  prefixCls: M,
21209
21192
  overlayClassName: E,
21210
- getTooltipContainer: Y || G || w,
21193
+ getTooltipContainer: G || Y || w,
21211
21194
  ref: y,
21212
21195
  builtinPlacements: D(),
21213
21196
  overlay: U(),
@@ -21364,13 +21347,13 @@ function requireEditable() {
21364
21347
  }, V = function(W) {
21365
21348
  var M = W.keyCode;
21366
21349
  T.current || (k.current = M);
21367
- }, Y = function() {
21350
+ }, G = function() {
21368
21351
  F(P.trim());
21369
- }, G = function(W) {
21352
+ }, Y = function(W) {
21370
21353
  var M = W.keyCode, A = W.ctrlKey, q = W.altKey, Z = W.metaKey, Q = W.shiftKey;
21371
- k.current === M && !T.current && !A && !q && !Z && !Q && (M === c.default.ENTER ? Y() : M === c.default.ESC && b());
21354
+ k.current === M && !T.current && !A && !q && !Z && !Q && (M === c.default.ENTER ? G() : M === c.default.ESC && b());
21372
21355
  }, H = function() {
21373
- Y();
21356
+ G();
21374
21357
  }, K = (0, s.default)(I, "".concat(I, "-edit-content"), (0, r.default)({}, "".concat(I, "-rtl"), m === "rtl"), x);
21375
21358
  return /* @__PURE__ */ a.createElement("div", {
21376
21359
  className: K,
@@ -21381,7 +21364,7 @@ function requireEditable() {
21381
21364
  value: P,
21382
21365
  onChange: j,
21383
21366
  onKeyDown: V,
21384
- onKeyUp: G,
21367
+ onKeyUp: Y,
21385
21368
  onCompositionStart: U,
21386
21369
  onCompositionEnd: L,
21387
21370
  onBlur: H,
@@ -21463,7 +21446,7 @@ function requireUtil() {
21463
21446
  function V(H) {
21464
21447
  U.insertBefore(H, L);
21465
21448
  }
21466
- function Y(H, K) {
21449
+ function G(H, K) {
21467
21450
  var N = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, W = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : K.length, M = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((N + W) / 2), q = K.slice(0, A);
21468
21451
  if (H.textContent = q, N >= W - 1)
21469
21452
  for (var Z = W; Z >= N; Z -= 1) {
@@ -21477,9 +21460,9 @@ function requireUtil() {
21477
21460
  reactNode: Q
21478
21461
  };
21479
21462
  }
21480
- return B() ? Y(H, K, A, W, A) : Y(H, K, N, A, M);
21463
+ return B() ? G(H, K, A, W, A) : G(H, K, N, A, M);
21481
21464
  }
21482
- function G(H, K) {
21465
+ function Y(H, K) {
21483
21466
  var N = H.nodeType;
21484
21467
  if (N === s)
21485
21468
  return V(H), B() ? {
@@ -21491,7 +21474,7 @@ function requireUtil() {
21491
21474
  });
21492
21475
  if (N === c) {
21493
21476
  var W = H.textContent || "", M = document.createTextNode(W);
21494
- return V(M), Y(M, W);
21477
+ return V(M), G(M, W);
21495
21478
  }
21496
21479
  return {
21497
21480
  finished: !1,
@@ -21499,7 +21482,7 @@ function requireUtil() {
21499
21482
  };
21500
21483
  }
21501
21484
  return P.some(function(H, K) {
21502
- var N = G(H, K), W = N.finished, M = N.reactNode;
21485
+ var N = Y(H, K), W = N.finished, M = N.reactNode;
21503
21486
  return M && j.push(M), W;
21504
21487
  }), {
21505
21488
  content: j,
@@ -21517,24 +21500,24 @@ function requireBase() {
21517
21500
  Object.defineProperty(e, "__esModule", {
21518
21501
  value: !0
21519
21502
  }), e.default = void 0;
21520
- var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), h = n(requireClassnames()), p = n(requireToArray()), I = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(), O = n(requireLocaleReceiver()), w = n(requireDevWarning()), F = n(requireTransButton()), b = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), B = n(requireUtil()), P = function(G, H) {
21503
+ var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), h = n(requireClassnames()), p = n(requireToArray()), I = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(), O = n(requireLocaleReceiver()), w = n(requireDevWarning()), F = n(requireTransButton()), b = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), B = n(requireUtil()), P = function(Y, H) {
21521
21504
  var K = {};
21522
- for (var N in G)
21523
- Object.prototype.hasOwnProperty.call(G, N) && H.indexOf(N) < 0 && (K[N] = G[N]);
21524
- if (G != null && typeof Object.getOwnPropertySymbols == "function")
21525
- for (var W = 0, N = Object.getOwnPropertySymbols(G); W < N.length; W++)
21526
- H.indexOf(N[W]) < 0 && Object.prototype.propertyIsEnumerable.call(G, N[W]) && (K[N[W]] = G[N[W]]);
21505
+ for (var N in Y)
21506
+ Object.prototype.hasOwnProperty.call(Y, N) && H.indexOf(N) < 0 && (K[N] = Y[N]);
21507
+ if (Y != null && typeof Object.getOwnPropertySymbols == "function")
21508
+ for (var W = 0, N = Object.getOwnPropertySymbols(Y); W < N.length; W++)
21509
+ H.indexOf(N[W]) < 0 && Object.prototype.propertyIsEnumerable.call(Y, N[W]) && (K[N[W]] = Y[N[W]]);
21527
21510
  return K;
21528
21511
  }, D = (0, S.isStyleSupport)("webkitLineClamp"), j = (0, S.isStyleSupport)("textOverflow");
21529
- function U(G, H) {
21530
- var K = G.mark, N = G.code, W = G.underline, M = G.delete, A = G.strong, q = G.keyboard, Z = H;
21512
+ function U(Y, H) {
21513
+ var K = Y.mark, N = Y.code, W = Y.underline, M = Y.delete, A = Y.strong, q = Y.keyboard, Z = H;
21531
21514
  function Q(E, _) {
21532
21515
  !E || (Z = /* @__PURE__ */ f.createElement(_, {}, Z));
21533
21516
  }
21534
21517
  return Q(A, "strong"), Q(W, "u"), Q(M, "del"), Q(N, "code"), Q(K, "mark"), Q(q, "kbd"), Z;
21535
21518
  }
21536
- var L = "...", V = /* @__PURE__ */ function(G) {
21537
- (0, u.default)(K, G);
21519
+ var L = "...", V = /* @__PURE__ */ function(Y) {
21520
+ (0, u.default)(K, Y);
21538
21521
  var H = (0, d.default)(K);
21539
21522
  function K() {
21540
21523
  var N;
@@ -21773,8 +21756,8 @@ function requireBase() {
21773
21756
  V.contextType = C.ConfigContext, V.defaultProps = {
21774
21757
  children: ""
21775
21758
  };
21776
- var Y = V;
21777
- e.default = Y;
21759
+ var G = V;
21760
+ e.default = G;
21778
21761
  }(Base)), Base;
21779
21762
  }
21780
21763
  (function(e) {
@@ -22481,7 +22464,7 @@ const One2manyInput = (e) => {
22481
22464
  } = d || {}, {
22482
22465
  lang: v,
22483
22466
  t: x
22484
- } = useContext(LocaleContext), g = useRef(), [m, y] = useState(!1), [C, O] = useState(!1), [w, F] = useState(), [b, S] = useState(!1), [T, k] = useState(!1), [$, B] = useState(), [P, D] = useState([]), [j, U] = useState(!1), L = useRef([]), [V, Y] = useState(), G = useRef(), {
22467
+ } = useContext(LocaleContext), g = useRef(), [m, y] = useState(!1), [C, O] = useState(!1), [w, F] = useState(), [b, S] = useState(!1), [T, k] = useState(!1), [$, B] = useState(), [P, D] = useState([]), [j, U] = useState(!1), L = useRef([]), [V, G] = useState(), Y = useRef(), {
22485
22468
  readOnly: H,
22486
22469
  relation: K,
22487
22470
  context: N,
@@ -22516,7 +22499,7 @@ const One2manyInput = (e) => {
22516
22499
  ...N
22517
22500
  }
22518
22501
  });
22519
- G.current || (G.current = ae.map((ge) => ge.id)), Z(ae);
22502
+ Y.current || (Y.current = ae.map((ge) => ge.id)), Z(ae);
22520
22503
  } catch (ae) {
22521
22504
  F(ae);
22522
22505
  } finally {
@@ -22764,7 +22747,7 @@ const One2manyInput = (e) => {
22764
22747
  ...o.get("tree").fields,
22765
22748
  ...((he = o.get("form")) == null ? void 0 : he.fields) || {}
22766
22749
  }
22767
- }) : sortResultsWithOrder(q.map((Ie) => Ie.treeValues), G.current);
22750
+ }) : sortResultsWithOrder(q.map((Ie) => Ie.treeValues), Y.current);
22768
22751
  if (s === "tree")
22769
22752
  return /* @__PURE__ */ jsx(Tree, {
22770
22753
  total: q.length,
@@ -22779,7 +22762,7 @@ const One2manyInput = (e) => {
22779
22762
  onChange: D
22780
22763
  },
22781
22764
  sorter: V,
22782
- onChangeSort: Y
22765
+ onChangeSort: G
22783
22766
  });
22784
22767
  if (s === "graph") {
22785
22768
  const Ie = [[`${r.inv_field}`, "=", f]];
@@ -26370,11 +26353,11 @@ function FormActionBar() {
26370
26353
  confirmMessage: b("confirmRemoveItem"),
26371
26354
  lang: S,
26372
26355
  onOk: () => {
26373
- Y();
26356
+ G();
26374
26357
  }
26375
26358
  });
26376
26359
  }
26377
- async function Y() {
26360
+ async function G() {
26378
26361
  try {
26379
26362
  h == null || h(!0), await ConnectionProvider.getHandler().delete({
26380
26363
  model: f,
@@ -26390,7 +26373,7 @@ function FormActionBar() {
26390
26373
  h == null || h(!1);
26391
26374
  }
26392
26375
  }
26393
- async function G() {
26376
+ async function Y() {
26394
26377
  try {
26395
26378
  v == null || v(!0);
26396
26379
  const N = await ConnectionProvider.getHandler().duplicate({
@@ -26434,7 +26417,7 @@ function FormActionBar() {
26434
26417
  tooltip: b("duplicate"),
26435
26418
  disabled: o || a || s === void 0 || I || g,
26436
26419
  loading: I,
26437
- onClick: G
26420
+ onClick: Y
26438
26421
  }), /* @__PURE__ */ jsx(ActionButton, {
26439
26422
  icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
26440
26423
  tooltip: b("delete"),
@@ -27470,7 +27453,7 @@ function ActionView(e, t) {
27470
27453
  action_type: I,
27471
27454
  treeExpandable: v = !1,
27472
27455
  limit: x
27473
- } = e, [g, m] = useState(), [y, C] = useState([]), [O, w] = useState(), [F, b] = useState(), [S, T] = useState(), [k, $] = useState(!0), B = h || void 0, [P, D] = useState(B), [j, U] = useState([]), [L, V] = useState(), [Y, G] = useState([]), [H, K] = useState(), [N, W] = useState(), [M, A] = useState(0), [q, Z] = useState(!1), [Q, E] = useState(!1), [_, z] = useState(), {
27456
+ } = e, [g, m] = useState(), [y, C] = useState([]), [O, w] = useState(), [F, b] = useState(), [S, T] = useState(), [k, $] = useState(!0), B = h || void 0, [P, D] = useState(B), [j, U] = useState([]), [L, V] = useState(), [G, Y] = useState([]), [H, K] = useState(), [N, W] = useState(), [M, A] = useState(0), [q, Z] = useState(!1), [Q, E] = useState(!1), [_, z] = useState(), {
27474
27457
  t: X
27475
27458
  } = useContext(LocaleContext), te = useRef(), ee = useRef(), re = useRef(), se = useContext(TabManagerContext), {
27476
27459
  openShortcut: ie,
@@ -27482,7 +27465,7 @@ function ActionView(e, t) {
27482
27465
  } = se || {};
27483
27466
  useHotkeys("ctrl+g,command+g", (ue) => {
27484
27467
  ue.preventDefault(), Ee();
27485
- }, [we, ve, g, L, Y]);
27468
+ }, [we, ve, g, L, G]);
27486
27469
  function Fe(ue) {
27487
27470
  D(ue), pe == null || pe(ue);
27488
27471
  }
@@ -27558,7 +27541,7 @@ function ActionView(e, t) {
27558
27541
  async function oe(ue) {
27559
27542
  var _e;
27560
27543
  E(!0);
27561
- const Ie = Y.findIndex((Pe) => Pe.id === ue);
27544
+ const Ie = G.findIndex((Pe) => Pe.id === ue);
27562
27545
  let Se;
27563
27546
  if (Ie === -1) {
27564
27547
  try {
@@ -27574,7 +27557,7 @@ function ActionView(e, t) {
27574
27557
  return;
27575
27558
  }
27576
27559
  } else
27577
- Se = Y[Ie];
27560
+ Se = G[Ie];
27578
27561
  E(!1), Z(!1);
27579
27562
  const Re = a.find((Pe) => Pe[1] === "form");
27580
27563
  me({
@@ -27607,7 +27590,7 @@ function ActionView(e, t) {
27607
27590
  id: P,
27608
27591
  parentContext: o,
27609
27592
  onSubmitSucceed: (ue, Ie) => {
27610
- Y.findIndex((Re) => Re.id === ue) === -1 && (Y.push(Ie), G(Y), V(Y.length - 1));
27593
+ G.findIndex((Re) => Re.id === ue) === -1 && (G.push(Ie), Y(G), V(G.length - 1));
27611
27594
  }
27612
27595
  }), /* @__PURE__ */ jsx(SearchTree$1, {
27613
27596
  visible: g.type === "tree",
@@ -27625,7 +27608,7 @@ function ActionView(e, t) {
27625
27608
  id: Ie
27626
27609
  } = ue;
27627
27610
  Fe(Ie);
27628
- const Se = Y.findIndex((Re) => Re.id === Ie);
27611
+ const Se = G.findIndex((Re) => Re.id === Ie);
27629
27612
  V(Se), ye(y.find((Re) => Re.type === "form"));
27630
27613
  }
27631
27614
  })]
@@ -27679,8 +27662,8 @@ function ActionView(e, t) {
27679
27662
  setCurrentId: Fe,
27680
27663
  setCurrentItemIndex: V,
27681
27664
  currentItemIndex: L,
27682
- results: Y,
27683
- setResults: G,
27665
+ results: G,
27666
+ setResults: Y,
27684
27667
  currentModel: r,
27685
27668
  toolbar: H,
27686
27669
  setToolbar: K,
@@ -27885,8 +27868,8 @@ function DashboardTree(e) {
27885
27868
  domain: a = [],
27886
27869
  visible: s = !0,
27887
27870
  parentContext: c = {}
27888
- } = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [I, v] = useState(), [x, g] = useState(), [m, y] = useState(1), [C, O] = useState(0), w = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [b, S] = useState(0), [T, k] = useState([]), [$, B] = useState(void 0), [P, D] = useState(), [j, U] = useState(), [L, V] = useState(), [Y, G] = useState(!1), H = useRef([]), K = (z) => {
27889
- G(!0), y(z), O((z - 1) * w.current);
27871
+ } = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [I, v] = useState(), [x, g] = useState(), [m, y] = useState(1), [C, O] = useState(0), w = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [b, S] = useState(0), [T, k] = useState([]), [$, B] = useState(void 0), [P, D] = useState(), [j, U] = useState(), [L, V] = useState(), [G, Y] = useState(!1), H = useRef([]), K = (z) => {
27872
+ Y(!0), y(z), O((z - 1) * w.current);
27890
27873
  }, N = (z) => {
27891
27874
  const X = {};
27892
27875
  return z.forEach((te) => {
@@ -27927,11 +27910,11 @@ function DashboardTree(e) {
27927
27910
  k(ie);
27928
27911
  }, A = async () => {
27929
27912
  try {
27930
- G(!0), await M();
27913
+ Y(!0), await M();
27931
27914
  } catch (z) {
27932
27915
  U(JSON.stringify(z));
27933
27916
  } finally {
27934
- G(!1);
27917
+ Y(!1);
27935
27918
  }
27936
27919
  };
27937
27920
  useEffect(() => {
@@ -27997,7 +27980,7 @@ function DashboardTree(e) {
27997
27980
  treeView: I,
27998
27981
  results: T,
27999
27982
  onRequestPageChange: K,
28000
- loading: Y,
27983
+ loading: G,
28001
27984
  onRowClicked: E,
28002
27985
  colorsForResults: $,
28003
27986
  sorter: P,
@@ -28208,8 +28191,8 @@ function Dashboard(e, t) {
28208
28191
  title: U,
28209
28192
  views: L,
28210
28193
  model: V,
28211
- context: Y,
28212
- domain: G,
28194
+ context: G,
28195
+ domain: Y,
28213
28196
  initialView: H,
28214
28197
  limit: K
28215
28198
  } = T;
@@ -28228,15 +28211,15 @@ function Dashboard(e, t) {
28228
28211
  (H == null ? void 0 : H.type) === "graph" ? W = /* @__PURE__ */ jsx(Graph, {
28229
28212
  view_id: L.filter((q) => q[1] === "graph")[0][0],
28230
28213
  model: V,
28231
- context: Y,
28232
- domain: G,
28214
+ context: G,
28215
+ domain: Y,
28233
28216
  limit: K
28234
28217
  }) : (H == null ? void 0 : H.type) === "form" ? W = /* @__PURE__ */ jsx(DashboardForm, {
28235
28218
  model: V,
28236
- actionDomain: G
28219
+ actionDomain: Y
28237
28220
  }) : (H == null ? void 0 : H.type) === "tree" ? W = /* @__PURE__ */ jsx(DashboardTree, {
28238
28221
  model: V,
28239
- domain: G,
28222
+ domain: Y,
28240
28223
  view_id: L.filter((q) => q[1] === "tree")[0][0],
28241
28224
  onRowClicked: (q) => {
28242
28225
  const Z = L.find((Q) => {
@@ -28268,8 +28251,8 @@ function Dashboard(e, t) {
28268
28251
  title: U,
28269
28252
  views: L,
28270
28253
  model: V,
28271
- context: Y,
28272
- domain: G,
28254
+ context: G,
28255
+ domain: Y,
28273
28256
  setCanWeClose: () => {
28274
28257
  },
28275
28258
  initialView: H
@@ -28632,9 +28615,9 @@ function RootView(e, t) {
28632
28615
  views: U,
28633
28616
  name: L,
28634
28617
  target: V,
28635
- view_type: Y,
28636
- limit: G
28637
- } = T, H = Y === "tree", K = [];
28618
+ view_type: G,
28619
+ limit: Y
28620
+ } = T, H = G === "tree", K = [];
28638
28621
  for (const W of U) {
28639
28622
  const [M, A] = W;
28640
28623
  if (M)
@@ -28687,7 +28670,7 @@ function RootView(e, t) {
28687
28670
  forced_values: w,
28688
28671
  res_id: b,
28689
28672
  treeExpandable: H,
28690
- limit: G
28673
+ limit: Y
28691
28674
  });
28692
28675
  }
28693
28676
  function v({
@@ -28730,7 +28713,7 @@ function RootView(e, t) {
28730
28713
  ...r
28731
28714
  },
28732
28715
  fields: O
28733
- }), Y = k ? await ConnectionProvider.getHandler().evalDomain({
28716
+ }), G = k ? await ConnectionProvider.getHandler().evalDomain({
28734
28717
  domain: k,
28735
28718
  values: {
28736
28719
  ...w,
@@ -28749,7 +28732,7 @@ function RootView(e, t) {
28749
28732
  ...o,
28750
28733
  ...V
28751
28734
  },
28752
- domain: Y,
28735
+ domain: G,
28753
28736
  title: P,
28754
28737
  initialView: L,
28755
28738
  action_id: F,
@@ -28784,13 +28767,13 @@ function RootView(e, t) {
28784
28767
  target: j,
28785
28768
  view_type: U,
28786
28769
  limit: L
28787
- } = T, V = U === "tree", Y = [];
28770
+ } = T, V = U === "tree", G = [];
28788
28771
  for (const N of P) {
28789
28772
  const [W, M] = N;
28790
28773
  if (W)
28791
- Y.push(N);
28774
+ G.push(N);
28792
28775
  else if (M === "dashboard")
28793
- Y.push([void 0, "dashboard"]);
28776
+ G.push([void 0, "dashboard"]);
28794
28777
  else {
28795
28778
  const {
28796
28779
  view_id: A
@@ -28803,17 +28786,17 @@ function RootView(e, t) {
28803
28786
  ...k
28804
28787
  }
28805
28788
  });
28806
- Y.push([A, M]);
28789
+ G.push([A, M]);
28807
28790
  }
28808
28791
  }
28809
- let G, H;
28792
+ let Y, H;
28810
28793
  if (b == null) {
28811
- const N = Y.find((W) => W[0] === void 0);
28812
- G = void 0, H = N[1];
28794
+ const N = G.find((W) => W[0] === void 0);
28795
+ Y = void 0, H = N[1];
28813
28796
  } else
28814
- [G, H] = Y.find((N) => N[0] === void 0 ? !1 : N[0] === b);
28797
+ [Y, H] = G.find((N) => N[0] === void 0 ? !1 : N[0] === b);
28815
28798
  const K = {
28816
- id: G,
28799
+ id: Y,
28817
28800
  type: H
28818
28801
  };
28819
28802
  y({
@@ -28823,7 +28806,7 @@ function RootView(e, t) {
28823
28806
  ...k
28824
28807
  },
28825
28808
  model: B,
28826
- views: Y,
28809
+ views: G,
28827
28810
  title: D,
28828
28811
  target: j,
28829
28812
  initialView: K,
@@ -29095,7 +29078,7 @@ const FavouriteButton = (e) => {
29095
29078
  async function T() {
29096
29079
  if (!C)
29097
29080
  return;
29098
- const D = m.find((G) => G.key === y), {
29081
+ const D = m.find((Y) => Y.key === y), {
29099
29082
  id: j,
29100
29083
  type: U
29101
29084
  } = (D == null ? void 0 : D.action) || {};
@@ -29106,13 +29089,13 @@ const FavouriteButton = (e) => {
29106
29089
  const L = C.id;
29107
29090
  let V = !1;
29108
29091
  C.type === "form" && (V = O || !1);
29109
- const Y = await n({
29092
+ const G = await n({
29110
29093
  action_id: j,
29111
29094
  action_type: U,
29112
29095
  view_id: L,
29113
29096
  res_id: V
29114
29097
  });
29115
- Y !== !1 && I(Y), s(Y !== !1);
29098
+ G !== !1 && I(G), s(G !== !1);
29116
29099
  }
29117
29100
  async function k() {
29118
29101
  l(!1), w == null || w({
@@ -29193,7 +29176,7 @@ const FavouriteButton = (e) => {
29193
29176
  else {
29194
29177
  if (!C)
29195
29178
  return;
29196
- const D = m.find((Y) => Y.key === y), {
29179
+ const D = m.find((G) => G.key === y), {
29197
29180
  id: j,
29198
29181
  type: U
29199
29182
  } = (D == null ? void 0 : D.action) || {}, L = C.id;