@gisce/react-ooui 1.0.23 → 1.0.24

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.
@@ -4093,8 +4093,8 @@ const {
4093
4093
  if (x)
4094
4094
  return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
4095
4095
  if (u) {
4096
- const w = iconMapper(u);
4097
- return w && /* @__PURE__ */ jsx(w, {});
4096
+ const O = iconMapper(u);
4097
+ return O && /* @__PURE__ */ jsx(O, {});
4098
4098
  }
4099
4099
  }
4100
4100
  async function C() {
@@ -4104,7 +4104,7 @@ const {
4104
4104
  context: h
4105
4105
  }), g(!1));
4106
4106
  }
4107
- function O() {
4107
+ function w() {
4108
4108
  if (l) {
4109
4109
  showDialog$9({
4110
4110
  confirmMessage: l,
@@ -4123,7 +4123,7 @@ const {
4123
4123
  }),
4124
4124
  children: /* @__PURE__ */ jsxs(Dropdown.Button, {
4125
4125
  disabled: !s || p,
4126
- onClick: O,
4126
+ onClick: w,
4127
4127
  icon: /* @__PURE__ */ jsx(DownOutlined, {}),
4128
4128
  type: d ? "primary" : void 0,
4129
4129
  overlay: /* @__PURE__ */ jsx(Items, {
@@ -4175,8 +4175,8 @@ const {
4175
4175
  if (v)
4176
4176
  return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
4177
4177
  if (u) {
4178
- const O = iconMapper(u);
4179
- return O && /* @__PURE__ */ jsx(O, {});
4178
+ const w = iconMapper(u);
4179
+ return w && /* @__PURE__ */ jsx(w, {});
4180
4180
  }
4181
4181
  }
4182
4182
  return /* @__PURE__ */ jsx(Menu.Item, {
@@ -4585,65 +4585,65 @@ function requireReactIs_production_min() {
4585
4585
  return reactIs_production_min;
4586
4586
  hasRequiredReactIs_production_min = 1;
4587
4587
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
4588
- function y(O) {
4589
- if (typeof O == "object" && O !== null) {
4590
- var w = O.$$typeof;
4591
- switch (w) {
4588
+ function y(w) {
4589
+ if (typeof w == "object" && w !== null) {
4590
+ var O = w.$$typeof;
4591
+ switch (O) {
4592
4592
  case t:
4593
- switch (O = O.type, O) {
4593
+ switch (w = w.type, w) {
4594
4594
  case l:
4595
4595
  case u:
4596
4596
  case r:
4597
4597
  case a:
4598
4598
  case o:
4599
4599
  case f:
4600
- return O;
4600
+ return w;
4601
4601
  default:
4602
- switch (O = O && O.$$typeof, O) {
4602
+ switch (w = w && w.$$typeof, w) {
4603
4603
  case c:
4604
4604
  case d:
4605
4605
  case I:
4606
4606
  case p:
4607
4607
  case s:
4608
- return O;
4609
- default:
4610
4608
  return w;
4609
+ default:
4610
+ return O;
4611
4611
  }
4612
4612
  }
4613
4613
  case n:
4614
- return w;
4614
+ return O;
4615
4615
  }
4616
4616
  }
4617
4617
  }
4618
- function C(O) {
4619
- return y(O) === u;
4620
- }
4621
- return reactIs_production_min.AsyncMode = l, reactIs_production_min.ConcurrentMode = u, reactIs_production_min.ContextConsumer = c, reactIs_production_min.ContextProvider = s, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = d, reactIs_production_min.Fragment = r, reactIs_production_min.Lazy = I, reactIs_production_min.Memo = p, reactIs_production_min.Portal = n, reactIs_production_min.Profiler = a, reactIs_production_min.StrictMode = o, reactIs_production_min.Suspense = f, reactIs_production_min.isAsyncMode = function(O) {
4622
- return C(O) || y(O) === l;
4623
- }, reactIs_production_min.isConcurrentMode = C, reactIs_production_min.isContextConsumer = function(O) {
4624
- return y(O) === c;
4625
- }, reactIs_production_min.isContextProvider = function(O) {
4626
- return y(O) === s;
4627
- }, reactIs_production_min.isElement = function(O) {
4628
- return typeof O == "object" && O !== null && O.$$typeof === t;
4629
- }, reactIs_production_min.isForwardRef = function(O) {
4630
- return y(O) === d;
4631
- }, reactIs_production_min.isFragment = function(O) {
4632
- return y(O) === r;
4633
- }, reactIs_production_min.isLazy = function(O) {
4634
- return y(O) === I;
4635
- }, reactIs_production_min.isMemo = function(O) {
4636
- return y(O) === p;
4637
- }, reactIs_production_min.isPortal = function(O) {
4638
- return y(O) === n;
4639
- }, reactIs_production_min.isProfiler = function(O) {
4640
- return y(O) === a;
4641
- }, reactIs_production_min.isStrictMode = function(O) {
4642
- return y(O) === o;
4643
- }, reactIs_production_min.isSuspense = function(O) {
4644
- return y(O) === f;
4645
- }, reactIs_production_min.isValidElementType = function(O) {
4646
- return typeof O == "string" || typeof O == "function" || O === r || O === u || O === a || O === o || O === f || O === h || typeof O == "object" && O !== null && (O.$$typeof === I || O.$$typeof === p || O.$$typeof === s || O.$$typeof === c || O.$$typeof === d || O.$$typeof === x || O.$$typeof === g || O.$$typeof === m || O.$$typeof === v);
4618
+ function C(w) {
4619
+ return y(w) === u;
4620
+ }
4621
+ return reactIs_production_min.AsyncMode = l, reactIs_production_min.ConcurrentMode = u, reactIs_production_min.ContextConsumer = c, reactIs_production_min.ContextProvider = s, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = d, reactIs_production_min.Fragment = r, reactIs_production_min.Lazy = I, reactIs_production_min.Memo = p, reactIs_production_min.Portal = n, reactIs_production_min.Profiler = a, reactIs_production_min.StrictMode = o, reactIs_production_min.Suspense = f, reactIs_production_min.isAsyncMode = function(w) {
4622
+ return C(w) || y(w) === l;
4623
+ }, reactIs_production_min.isConcurrentMode = C, reactIs_production_min.isContextConsumer = function(w) {
4624
+ return y(w) === c;
4625
+ }, reactIs_production_min.isContextProvider = function(w) {
4626
+ return y(w) === s;
4627
+ }, reactIs_production_min.isElement = function(w) {
4628
+ return typeof w == "object" && w !== null && w.$$typeof === t;
4629
+ }, reactIs_production_min.isForwardRef = function(w) {
4630
+ return y(w) === d;
4631
+ }, reactIs_production_min.isFragment = function(w) {
4632
+ return y(w) === r;
4633
+ }, reactIs_production_min.isLazy = function(w) {
4634
+ return y(w) === I;
4635
+ }, reactIs_production_min.isMemo = function(w) {
4636
+ return y(w) === p;
4637
+ }, reactIs_production_min.isPortal = function(w) {
4638
+ return y(w) === n;
4639
+ }, reactIs_production_min.isProfiler = function(w) {
4640
+ return y(w) === a;
4641
+ }, reactIs_production_min.isStrictMode = function(w) {
4642
+ return y(w) === o;
4643
+ }, reactIs_production_min.isSuspense = function(w) {
4644
+ return y(w) === f;
4645
+ }, reactIs_production_min.isValidElementType = function(w) {
4646
+ return typeof w == "string" || typeof w == "function" || w === r || w === u || w === a || w === o || w === f || w === h || typeof w == "object" && w !== null && (w.$$typeof === I || w.$$typeof === p || w.$$typeof === s || w.$$typeof === c || w.$$typeof === d || w.$$typeof === x || w.$$typeof === g || w.$$typeof === m || w.$$typeof === v);
4647
4647
  }, reactIs_production_min.typeOf = y, reactIs_production_min;
4648
4648
  }
4649
4649
  var reactIs_development = {};
@@ -4694,7 +4694,7 @@ function requireReactIs_development() {
4694
4694
  }
4695
4695
  }
4696
4696
  }
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;
4697
+ var w = l, O = 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
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
  }
@@ -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 = 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;
4737
+ reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, 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;
@@ -6211,13 +6211,13 @@ function requireUtils() {
6211
6211
  function f() {
6212
6212
  var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6213
6213
  return Object.keys(m).reduce(function(y, C) {
6214
- var O = m[C];
6214
+ var w = m[C];
6215
6215
  switch (C) {
6216
6216
  case "class":
6217
- y.className = O, delete y.class;
6217
+ y.className = w, delete y.class;
6218
6218
  break;
6219
6219
  default:
6220
- y[C] = O;
6220
+ y[C] = w;
6221
6221
  }
6222
6222
  return y;
6223
6223
  }, {});
@@ -6225,12 +6225,12 @@ function requireUtils() {
6225
6225
  function h(m, y, C) {
6226
6226
  return C ? /* @__PURE__ */ a.default.createElement(m.tag, (0, n.default)((0, n.default)({
6227
6227
  key: y
6228
- }, f(m.attrs)), C), (m.children || []).map(function(O, w) {
6229
- return h(O, "".concat(y, "-").concat(m.tag, "-").concat(w));
6228
+ }, f(m.attrs)), C), (m.children || []).map(function(w, O) {
6229
+ return h(w, "".concat(y, "-").concat(m.tag, "-").concat(O));
6230
6230
  })) : /* @__PURE__ */ a.default.createElement(m.tag, (0, n.default)({
6231
6231
  key: y
6232
- }, f(m.attrs)), (m.children || []).map(function(O, w) {
6233
- return h(O, "".concat(y, "-").concat(m.tag, "-").concat(w));
6232
+ }, f(m.attrs)), (m.children || []).map(function(w, O) {
6233
+ return h(w, "".concat(y, "-").concat(m.tag, "-").concat(O));
6234
6234
  }));
6235
6235
  }
6236
6236
  function p(m) {
@@ -6304,11 +6304,11 @@ function requireUtils() {
6304
6304
  `;
6305
6305
  utils$1.iconStyles = x;
6306
6306
  var g = function() {
6307
- var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : x, C = (0, a.useContext)(l.default), O = C.csp;
6307
+ var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : x, C = (0, a.useContext)(l.default), w = C.csp;
6308
6308
  (0, a.useEffect)(function() {
6309
6309
  (0, c.updateCSS)(y, "@ant-design-icons", {
6310
6310
  prepend: !0,
6311
- csp: O
6311
+ csp: w
6312
6312
  });
6313
6313
  }, []);
6314
6314
  };
@@ -6395,11 +6395,11 @@ function requireAntdIcon() {
6395
6395
  var n = e(requireObjectSpread2()), r = e(requireSlicedToArray()), o = e(requireDefineProperty()), a = e(requireObjectWithoutProperties()), s = t(React__default), c = e(requireClassnames()), l = e(requireContext$2()), u = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), h = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6396
6396
  (0, d.setTwoToneColor)("#1890ff");
6397
6397
  var p = /* @__PURE__ */ s.forwardRef(function(v, x) {
6398
- var g, m = v.className, y = v.icon, C = v.spin, O = v.rotate, w = v.tabIndex, F = v.onClick, b = v.twoToneColor, S = (0, a.default)(v, h), T = s.useContext(l.default), k = T.prefixCls, $ = k === void 0 ? "anticon" : k, B = (0, c.default)($, (g = {}, (0, o.default)(g, "".concat($, "-").concat(y.name), !!y.name), (0, o.default)(g, "".concat($, "-spin"), !!C || y.name === "loading"), g), m), P = w;
6398
+ var g, m = v.className, y = v.icon, C = v.spin, w = v.rotate, O = v.tabIndex, F = v.onClick, b = v.twoToneColor, S = (0, a.default)(v, h), T = s.useContext(l.default), k = T.prefixCls, $ = k === void 0 ? "anticon" : k, B = (0, c.default)($, (g = {}, (0, o.default)(g, "".concat($, "-").concat(y.name), !!y.name), (0, o.default)(g, "".concat($, "-spin"), !!C || y.name === "loading"), g), m), P = O;
6399
6399
  P === void 0 && F && (P = -1);
6400
- var D = O ? {
6401
- msTransform: "rotate(".concat(O, "deg)"),
6402
- transform: "rotate(".concat(O, "deg)")
6400
+ var D = w ? {
6401
+ msTransform: "rotate(".concat(w, "deg)"),
6402
+ transform: "rotate(".concat(w, "deg)")
6403
6403
  } : void 0, j = (0, f.normalizeTwoToneColors)(b), U = (0, r.default)(j, 2), L = U[0], V = U[1];
6404
6404
  return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
6405
6405
  role: "img",
@@ -6656,14 +6656,14 @@ function requireRegeneratorRuntime() {
6656
6656
  var m = Object.getPrototypeOf, y = m && m(m(k([])));
6657
6657
  y && y !== o && a.call(y, c) && (g = y);
6658
6658
  var C = x.prototype = I.prototype = Object.create(g);
6659
- function O(B) {
6659
+ function w(B) {
6660
6660
  ["next", "throw", "return"].forEach(function(P) {
6661
6661
  d(B, P, function(D) {
6662
6662
  return this._invoke(P, D);
6663
6663
  });
6664
6664
  });
6665
6665
  }
6666
- function w(B, P) {
6666
+ function O(B, P) {
6667
6667
  function D(U, L, V, G) {
6668
6668
  var Y = h(B[U], B, L);
6669
6669
  if (Y.type !== "throw") {
@@ -6757,15 +6757,15 @@ function requireRegeneratorRuntime() {
6757
6757
  return {
6758
6758
  __await: B
6759
6759
  };
6760
- }, O(w.prototype), d(w.prototype, l, function() {
6760
+ }, w(O.prototype), d(O.prototype, l, function() {
6761
6761
  return this;
6762
- }), r.AsyncIterator = w, r.async = function(B, P, D, j, U) {
6762
+ }), r.AsyncIterator = O, r.async = function(B, P, D, j, U) {
6763
6763
  U === void 0 && (U = Promise);
6764
- var L = new w(f(B, P, D, j), U);
6764
+ var L = new O(f(B, P, D, j), U);
6765
6765
  return r.isGeneratorFunction(P) ? L : L.next().then(function(V) {
6766
6766
  return V.done ? V.value : L.next();
6767
6767
  });
6768
- }, O(C), d(C, u, "Generator"), d(C, c, function() {
6768
+ }, w(C), d(C, u, "Generator"), d(C, c, function() {
6769
6769
  return this;
6770
6770
  }), d(C, "toString", function() {
6771
6771
  return "[object Generator]";
@@ -7442,8 +7442,8 @@ Schema.prototype = {
7442
7442
  var x, g = [], m = {};
7443
7443
  function y(C) {
7444
7444
  if (Array.isArray(C)) {
7445
- var O;
7446
- g = (O = g).concat.apply(O, C);
7445
+ var w;
7446
+ g = (w = g).concat.apply(w, C);
7447
7447
  } else
7448
7448
  g.push(C);
7449
7449
  }
@@ -7474,14 +7474,14 @@ Schema.prototype = {
7474
7474
  return asyncMap(h, s, function(v, x) {
7475
7475
  var g = v.rule, m = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
7476
7476
  m = m && (g.required || !g.required && v.value), g.field = v.field;
7477
- function y(w, F) {
7477
+ function y(O, F) {
7478
7478
  return _extends(_extends({}, F), {}, {
7479
- fullField: g.fullField + "." + w
7479
+ fullField: g.fullField + "." + O
7480
7480
  });
7481
7481
  }
7482
- function C(w) {
7483
- w === void 0 && (w = []);
7484
- var F = w;
7482
+ function C(O) {
7483
+ O === void 0 && (O = []);
7484
+ var F = O;
7485
7485
  if (Array.isArray(F) || (F = [F]), !s.suppressWarning && F.length && Schema.warning("async-validator:", F), F.length && g.message !== void 0 && (F = [].concat(g.message)), F = F.map(complementError(g)), s.first && F.length)
7486
7486
  return I[g.field] = 1, x(F);
7487
7487
  if (!m)
@@ -7506,11 +7506,11 @@ Schema.prototype = {
7506
7506
  });
7507
7507
  }
7508
7508
  }
7509
- var O;
7510
- g.asyncValidator ? O = g.asyncValidator(g, v.value, C, v.source, s) : g.validator && (O = g.validator(g, v.value, C, v.source, s), O === !0 ? C() : O === !1 ? C(g.message || g.field + " fails") : O instanceof Array ? C(O) : O instanceof Error && C(O.message)), O && O.then && O.then(function() {
7509
+ var w;
7510
+ g.asyncValidator ? w = g.asyncValidator(g, v.value, C, v.source, s) : g.validator && (w = g.validator(g, v.value, C, v.source, s), w === !0 ? C() : w === !1 ? C(g.message || g.field + " fails") : w instanceof Array ? C(w) : w instanceof Error && C(w.message)), w && w.then && w.then(function() {
7511
7511
  return C();
7512
- }, function(w) {
7513
- return C(w);
7512
+ }, function(O) {
7513
+ return C(O);
7514
7514
  });
7515
7515
  }, function(v) {
7516
7516
  l(v);
@@ -7772,10 +7772,10 @@ function validateRules(e, t, n, r, o, a) {
7772
7772
  return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
7773
7773
  validator: function(p, I, v) {
7774
7774
  var x = !1, g = function() {
7775
- for (var C = arguments.length, O = new Array(C), w = 0; w < C; w++)
7776
- O[w] = arguments[w];
7775
+ for (var C = arguments.length, w = new Array(C), O = 0; O < C; O++)
7776
+ w[O] = arguments[O];
7777
7777
  Promise.resolve().then(function() {
7778
- warningOnce(!x, "Your validator function has already return a promise. `callback` will be ignored."), x || v.apply(void 0, O);
7778
+ warningOnce(!x, "Your validator function has already return a promise. `callback` will be ignored."), x || v.apply(void 0, w);
7779
7779
  });
7780
7780
  }, m = f(p, I, g);
7781
7781
  x = m && typeof m.then == "function" && typeof m.catch == "function", warningOnce(x, "`callback` is deprecated. Please return a promise instead."), x && m.then(function() {
@@ -7919,8 +7919,8 @@ var Field = /* @__PURE__ */ function(e) {
7919
7919
  break;
7920
7920
  case "setField": {
7921
7921
  if (C) {
7922
- var O = d.data;
7923
- "touched" in O && (o.touched = O.touched), "validating" in O && !("originRCField" in O) && (o.validatePromise = O.validating ? Promise.resolve([]) : null), "errors" in O && (o.errors = O.errors || []), o.dirty = !0, o.reRender();
7922
+ var w = d.data;
7923
+ "touched" in w && (o.touched = w.touched), "validating" in w && !("originRCField" in w) && (o.validatePromise = w.validating ? Promise.resolve([]) : null), "errors" in w && (o.errors = w.errors || []), o.dirty = !0, o.reRender();
7924
7924
  return;
7925
7925
  }
7926
7926
  if (h && !g.length && requireUpdate(h, l, x, m, y, d)) {
@@ -7930,8 +7930,8 @@ var Field = /* @__PURE__ */ function(e) {
7930
7930
  break;
7931
7931
  }
7932
7932
  case "dependenciesUpdate": {
7933
- var w = I.map(getNamePath);
7934
- if (w.some(function(F) {
7933
+ var O = I.map(getNamePath);
7934
+ if (O.some(function(F) {
7935
7935
  return containsNamePath(d.relatedFields, F);
7936
7936
  })) {
7937
7937
  o.reRender();
@@ -7953,11 +7953,11 @@ var Field = /* @__PURE__ */ function(e) {
7953
7953
  return [];
7954
7954
  var h = o.props, p = h.validateFirst, I = p === void 0 ? !1 : p, v = h.messageVariables, x = l || {}, g = x.triggerName, m = o.getRules();
7955
7955
  g && (m = m.filter(function(C) {
7956
- var O = C.validateTrigger;
7957
- if (!O)
7956
+ var w = C.validateTrigger;
7957
+ if (!w)
7958
7958
  return !0;
7959
- var w = toArray$2(O);
7960
- return w.includes(g);
7959
+ var O = toArray$2(w);
7960
+ return O.includes(g);
7961
7961
  }));
7962
7962
  var y = validateRules(u, d, m, l, I, v);
7963
7963
  return y.catch(function(C) {
@@ -8010,14 +8010,14 @@ var Field = /* @__PURE__ */ function(e) {
8010
8010
  var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
8011
8011
  return getValue(l || u(!0), d);
8012
8012
  }, o.getControlled = function() {
8013
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, h = u.getValueFromEvent, p = u.normalize, I = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue, O = y(HOOK_MARK), w = O.dispatch, F = o.getValue(), b = v || function($) {
8013
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, h = u.getValueFromEvent, p = u.normalize, I = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue, w = y(HOOK_MARK), O = w.dispatch, F = o.getValue(), b = v || function($) {
8014
8014
  return _defineProperty$1({}, I, $);
8015
8015
  }, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), b(F));
8016
8016
  T[d] = function() {
8017
8017
  o.touched = !0, o.dirty = !0;
8018
8018
  for (var $, B = arguments.length, P = new Array(B), D = 0; D < B; D++)
8019
8019
  P[D] = arguments[D];
8020
- h ? $ = h.apply(void 0, P) : $ = defaultGetValueFromEvent.apply(void 0, [I].concat(P)), p && ($ = p($, F, C(!0))), w({
8020
+ h ? $ = h.apply(void 0, P) : $ = defaultGetValueFromEvent.apply(void 0, [I].concat(P)), p && ($ = p($, F, C(!0))), O({
8021
8021
  type: "updateValue",
8022
8022
  namePath: m,
8023
8023
  value: $
@@ -8029,7 +8029,7 @@ var Field = /* @__PURE__ */ function(e) {
8029
8029
  T[$] = function() {
8030
8030
  B && B.apply(void 0, arguments);
8031
8031
  var P = o.props.rules;
8032
- P && P.length && w({
8032
+ P && P.length && O({
8033
8033
  type: "validateField",
8034
8034
  namePath: m,
8035
8035
  triggerName: $
@@ -8131,8 +8131,8 @@ var List = function(t) {
8131
8131
  F < 0 || F >= S.length || b < 0 || b >= S.length || (u.keys = move(u.keys, F, b), g(move(S, F, b)));
8132
8132
  }
8133
8133
  }
8134
- }, O = x || [];
8135
- return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), o(O.map(function(w, F) {
8134
+ }, w = x || [];
8135
+ return Array.isArray(w) || (w = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), o(w.map(function(O, F) {
8136
8136
  var b = u.keys[F];
8137
8137
  return b === void 0 && (u.keys[F] = u.id, b = u.keys[F], u.id += 1), {
8138
8138
  name: F,
@@ -8707,14 +8707,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
8707
8707
  children: a
8708
8708
  });
8709
8709
  }, Form$2 = function(t, n) {
8710
- var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, I = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, m = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), y = React.useContext(FormContext), C = useForm(s), O = _slicedToArray(C, 1), w = O[0], F = w.getInternalHooks(HOOK_MARK), b = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, k = F.setValidateMessages, $ = F.setPreserve;
8710
+ var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, I = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, m = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), y = React.useContext(FormContext), C = useForm(s), w = _slicedToArray(C, 1), O = w[0], F = O.getInternalHooks(HOOK_MARK), b = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, k = F.setValidateMessages, $ = F.setPreserve;
8711
8711
  React.useImperativeHandle(n, function() {
8712
- return w;
8712
+ return O;
8713
8713
  }), React.useEffect(function() {
8714
- return y.registerForm(r, w), function() {
8714
+ return y.registerForm(r, O), function() {
8715
8715
  y.unregisterForm(r);
8716
8716
  };
8717
- }, [y, w, r]), k(_objectSpread2$1(_objectSpread2$1({}, y.validateMessages), f)), T({
8717
+ }, [y, O, r]), k(_objectSpread2$1(_objectSpread2$1({}, y.validateMessages), f)), T({
8718
8718
  onValuesChange: I,
8719
8719
  onFieldsChange: function(Y) {
8720
8720
  if (y.triggerFormChange(r, Y), v) {
@@ -8732,26 +8732,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
8732
8732
  S(o, !B.current), B.current || (B.current = !0);
8733
8733
  var P = l, D = typeof l == "function";
8734
8734
  if (D) {
8735
- var j = w.getFieldsValue(!0);
8736
- P = l(j, w);
8735
+ var j = O.getFieldsValue(!0);
8736
+ P = l(j, O);
8737
8737
  }
8738
8738
  b(!D);
8739
8739
  var U = React.useRef();
8740
8740
  React.useEffect(function() {
8741
- isSimilar(U.current || [], a || []) || w.setFields(a || []), U.current = a;
8742
- }, [a, w]);
8741
+ isSimilar(U.current || [], a || []) || O.setFields(a || []), U.current = a;
8742
+ }, [a, O]);
8743
8743
  var L = React.useMemo(function() {
8744
- return _objectSpread2$1(_objectSpread2$1({}, w), {}, {
8744
+ return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
8745
8745
  validateTrigger: p
8746
8746
  });
8747
- }, [w, p]), V = /* @__PURE__ */ jsx(Context.Provider, {
8747
+ }, [O, p]), V = /* @__PURE__ */ jsx(Context.Provider, {
8748
8748
  value: L,
8749
8749
  children: P
8750
8750
  });
8751
8751
  return d === !1 ? V : /* @__PURE__ */ jsx(d, {
8752
8752
  ...m,
8753
8753
  onSubmit: function(Y) {
8754
- Y.preventDefault(), Y.stopPropagation(), w.submit();
8754
+ Y.preventDefault(), Y.stopPropagation(), O.submit();
8755
8755
  },
8756
8756
  children: V
8757
8757
  });
@@ -9170,8 +9170,8 @@ function requireLocaleReceiver() {
9170
9170
  return (0, a.default)(v, [{
9171
9171
  key: "getLocale",
9172
9172
  value: function() {
9173
- var g = this.props, m = g.componentName, y = g.defaultLocale, C = y || u.default[m || "global"], O = this.context, w = m && O ? O[m] : {};
9174
- return (0, r.default)((0, r.default)({}, typeof C == "function" ? C() : C), w || {});
9173
+ var g = this.props, m = g.componentName, y = g.defaultLocale, C = y || u.default[m || "global"], w = this.context, O = m && w ? w[m] : {};
9174
+ return (0, r.default)((0, r.default)({}, typeof C == "function" ? C() : C), O || {});
9175
9175
  }
9176
9176
  }, {
9177
9177
  key: "getLocaleCode",
@@ -9309,16 +9309,16 @@ function requireEmpty() {
9309
9309
  g.indexOf(y[C]) < 0 && Object.prototype.propertyIsEnumerable.call(x, y[C]) && (m[y[C]] = x[y[C]]);
9310
9310
  return m;
9311
9311
  }, h = /* @__PURE__ */ a.createElement(u.default, null), p = /* @__PURE__ */ a.createElement(d.default, null), I = function(g) {
9312
- var m = g.className, y = g.prefixCls, C = g.image, O = C === void 0 ? h : C, w = g.description, F = g.children, b = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = a.useContext(c.ConfigContext), k = T.getPrefixCls, $ = T.direction;
9312
+ var m = g.className, y = g.prefixCls, C = g.image, w = C === void 0 ? h : C, O = g.description, F = g.children, b = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = a.useContext(c.ConfigContext), k = T.getPrefixCls, $ = T.direction;
9313
9313
  return /* @__PURE__ */ a.createElement(l.default, {
9314
9314
  componentName: "Empty"
9315
9315
  }, function(B) {
9316
- var P, D = k("empty", y), j = typeof w < "u" ? w : B.description, U = typeof j == "string" ? j : "empty", L = null;
9317
- return typeof O == "string" ? L = /* @__PURE__ */ a.createElement("img", {
9316
+ var P, D = k("empty", y), j = typeof O < "u" ? O : B.description, U = typeof j == "string" ? j : "empty", L = null;
9317
+ return typeof w == "string" ? L = /* @__PURE__ */ a.createElement("img", {
9318
9318
  alt: U,
9319
- src: O
9320
- }) : L = O, /* @__PURE__ */ a.createElement("div", (0, r.default)({
9321
- className: (0, s.default)(D, (P = {}, (0, o.default)(P, "".concat(D, "-normal"), O === p), (0, o.default)(P, "".concat(D, "-rtl"), $ === "rtl"), P), m)
9319
+ src: w
9320
+ }) : L = w, /* @__PURE__ */ a.createElement("div", (0, r.default)({
9321
+ className: (0, s.default)(D, (P = {}, (0, o.default)(P, "".concat(D, "-normal"), w === p), (0, o.default)(P, "".concat(D, "-rtl"), $ === "rtl"), P), m)
9322
9322
  }, S), /* @__PURE__ */ a.createElement("div", {
9323
9323
  className: "".concat(D, "-image"),
9324
9324
  style: b
@@ -9389,9 +9389,9 @@ function requireContext() {
9389
9389
  return function(f) {
9390
9390
  var h = function(x) {
9391
9391
  return /* @__PURE__ */ r.createElement(c, null, function(g) {
9392
- var m = u.prefixCls, y = g.getPrefixCls, C = x.prefixCls, O = y(m, C);
9392
+ var m = u.prefixCls, y = g.getPrefixCls, C = x.prefixCls, w = y(m, C);
9393
9393
  return /* @__PURE__ */ r.createElement(f, (0, n.default)({}, g, x, {
9394
- prefixCls: O
9394
+ prefixCls: w
9395
9395
  }));
9396
9396
  });
9397
9397
  }, p = f.constructor, I = p && p.displayName || f.name || "Component";
@@ -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], G = L[1], Y = 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, w = r.onAppearEnd, O = 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), G(null));
9570
+ D === STATUS_APPEAR && M.current ? le = w == null ? void 0 : w(ie, se) : D === STATUS_ENTER && M.current ? le = O == null ? void 0 : O(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() {
@@ -9646,7 +9646,7 @@ function genCSSMotion(e) {
9646
9646
  return null;
9647
9647
  }
9648
9648
  }
9649
- var y = useStatus(v, c, m, o), C = _slicedToArray(y, 4), O = C[0], w = C[1], F = C[2], b = C[3], S = useRef(a);
9649
+ var y = useStatus(v, c, m, o), C = _slicedToArray(y, 4), w = C[0], O = C[1], F = C[2], b = C[3], S = useRef(a);
9650
9650
  S.current = a;
9651
9651
  var T = React.useCallback(function(D) {
9652
9652
  x.current = D, fillRef(S.current, D);
@@ -9655,7 +9655,7 @@ function genCSSMotion(e) {
9655
9655
  });
9656
9656
  if (!f)
9657
9657
  k = null;
9658
- else if (O === STATUS_NONE || !n(o))
9658
+ else if (w === STATUS_NONE || !n(o))
9659
9659
  b ? k = f(_objectSpread2$1({}, $), T) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9660
9660
  style: {
9661
9661
  display: "none"
@@ -9665,8 +9665,8 @@ function genCSSMotion(e) {
9665
9665
  }), T);
9666
9666
  else {
9667
9667
  var B, P;
9668
- w === STEP_PREPARE ? P = "prepare" : isActive(w) ? P = "active" : w === STEP_START && (P = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9669
- className: classnamesExports(getTransitionName$1(h, O), (B = {}, _defineProperty$1(B, getTransitionName$1(h, "".concat(O, "-").concat(P)), P), _defineProperty$1(B, h, typeof h == "string"), B)),
9668
+ O === STEP_PREPARE ? P = "prepare" : isActive(O) ? P = "active" : O === STEP_START && (P = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9669
+ className: classnamesExports(getTransitionName$1(h, w), (B = {}, _defineProperty$1(B, getTransitionName$1(h, "".concat(w, "-").concat(P)), P), _defineProperty$1(B, h, typeof h == "string"), B)),
9670
9670
  style: F
9671
9671
  }), T);
9672
9672
  }
@@ -9769,10 +9769,10 @@ function genCSSMotionList(e) {
9769
9769
  key: m.key,
9770
9770
  visible: y,
9771
9771
  eventProps: m,
9772
- onVisibleChanged: function(O) {
9773
- h == null || h(O, {
9772
+ onVisibleChanged: function(w) {
9773
+ h == null || h(w, {
9774
9774
  key: m.key
9775
- }), O || c.removeKey(m.key);
9775
+ }), w || c.removeKey(m.key);
9776
9776
  }
9777
9777
  }),
9778
9778
  children: f
@@ -9953,9 +9953,9 @@ var Notification = /* @__PURE__ */ function(e) {
9953
9953
  key: g,
9954
9954
  noticeKey: m || g,
9955
9955
  updateMark: x,
9956
- onClose: function(O) {
9957
- var w;
9958
- o.remove(O), (w = I.onClose) === null || w === void 0 || w.call(I);
9956
+ onClose: function(w) {
9957
+ var O;
9958
+ o.remove(w), (O = I.onClose) === null || O === void 0 || O.call(I);
9959
9959
  },
9960
9960
  onClick: I.onClick,
9961
9961
  children: I.content
@@ -10258,14 +10258,14 @@ function requireNotice() {
10258
10258
  }, {
10259
10259
  key: "render",
10260
10260
  value: function() {
10261
- var v = this, x = this.props, g = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon, O = x.style, w = x.onClick, F = x.children, b = x.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function($, B) {
10261
+ var v = this, x = this.props, g = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon, w = x.style, O = x.onClick, F = x.children, b = x.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function($, B) {
10262
10262
  return (B.substr(0, 5) === "data-" || B.substr(0, 5) === "aria-" || B === "role") && ($[B] = v.props[B]), $;
10263
10263
  }, {}), k = c.createElement("div", Object.assign({
10264
10264
  className: (0, u.default)(S, m, (0, n.default)({}, "".concat(S, "-closable"), y)),
10265
- style: O,
10265
+ style: w,
10266
10266
  onMouseEnter: this.clearCloseTimer,
10267
10267
  onMouseLeave: this.startCloseTimer,
10268
- onClick: w
10268
+ onClick: O
10269
10269
  }, T), c.createElement("div", {
10270
10270
  className: "".concat(S, "-content")
10271
10271
  }, F), y ? c.createElement("a", {
@@ -10329,7 +10329,7 @@ function requireUseMessage() {
10329
10329
  v == null || v.component.add(b, S);
10330
10330
  }
10331
10331
  }, g = (0, s.default)(x), m = (0, o.default)(g, 2), y = m[0], C = m[1];
10332
- function O(F) {
10332
+ function w(F) {
10333
10333
  var b = F.prefixCls, S = I("message", b), T = F.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(B) {
10334
10334
  var P = function() {
10335
10335
  return typeof F.onClose == "function" && F.onClose(), B(!0);
@@ -10350,10 +10350,10 @@ function requireUseMessage() {
10350
10350
  return k.then(B, P);
10351
10351
  }, $.promise = k, $;
10352
10352
  }
10353
- var w = a.useRef({});
10354
- return w.current.open = O, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
10355
- return (0, l.attachTypeApi)(w.current, F);
10356
- }), [w.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
10353
+ var O = a.useRef({});
10354
+ return O.current.open = w, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
10355
+ return (0, l.attachTypeApi)(O.current, F);
10356
+ }), [O.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
10357
10357
  key: "holder"
10358
10358
  }, function(F) {
10359
10359
  return I = F.getPrefixCls, C;
@@ -10370,12 +10370,12 @@ function requireMessage() {
10370
10370
  Object.defineProperty(e, "__esModule", {
10371
10371
  value: !0
10372
10372
  }), e.getKeyThenIncreaseKey = F, e.attachTypeApi = D, e.default = e.getInstance = void 0;
10373
- var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), h = n(requireInfoCircleFilled()), p = n(requireUseMessage()), I, v = 3, x, g = 1, m = "ant-message", y = "move-up", C, O, w = !1;
10373
+ var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), h = n(requireInfoCircleFilled()), p = n(requireUseMessage()), I, v = 3, x, g = 1, m = "ant-message", y = "move-up", C, w, O = !1;
10374
10374
  function F() {
10375
10375
  return g++;
10376
10376
  }
10377
10377
  function b(L) {
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);
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 && (w = L.maxCount, I = null), L.rtl !== void 0 && (O = L.rtl);
10379
10379
  }
10380
10380
  function S(L, V) {
10381
10381
  var G = L.prefixCls || m;
@@ -10393,7 +10393,7 @@ function requireMessage() {
10393
10393
  top: x
10394
10394
  },
10395
10395
  getContainer: C,
10396
- maxCount: O
10396
+ maxCount: w
10397
10397
  }, function(Y) {
10398
10398
  if (I) {
10399
10399
  V({
@@ -10416,7 +10416,7 @@ function requireMessage() {
10416
10416
  loading: l.default
10417
10417
  };
10418
10418
  function k(L, V) {
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));
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"), O === !0), G));
10420
10420
  return {
10421
10421
  key: L.key,
10422
10422
  duration: Y,
@@ -10708,26 +10708,26 @@ function requireUseNotification() {
10708
10708
  I == null || I.component.add(F, b);
10709
10709
  }
10710
10710
  }, x = (0, s.default)(v), g = (0, o.default)(x, 2), m = g[0], y = g[1];
10711
- function C(w) {
10712
- var F = w.prefixCls, b = p("notification", F);
10713
- u((0, r.default)((0, r.default)({}, w), {
10711
+ function C(O) {
10712
+ var F = O.prefixCls, b = p("notification", F);
10713
+ u((0, r.default)((0, r.default)({}, O), {
10714
10714
  prefixCls: b
10715
10715
  }), function(S) {
10716
10716
  var T = S.prefixCls, k = S.instance;
10717
- I = k, m(d(w, T));
10717
+ I = k, m(d(O, T));
10718
10718
  });
10719
10719
  }
10720
- var O = a.useRef({});
10721
- return O.current.open = C, ["success", "info", "warning", "error"].forEach(function(w) {
10722
- O.current[w] = function(F) {
10723
- return O.current.open((0, r.default)((0, r.default)({}, F), {
10724
- type: w
10720
+ var w = a.useRef({});
10721
+ return w.current.open = C, ["success", "info", "warning", "error"].forEach(function(O) {
10722
+ w.current[O] = function(F) {
10723
+ return w.current.open((0, r.default)((0, r.default)({}, F), {
10724
+ type: O
10725
10725
  }));
10726
10726
  };
10727
- }), [O.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
10727
+ }), [w.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
10728
10728
  key: "holder"
10729
- }, function(w) {
10730
- return p = w.getPrefixCls, y;
10729
+ }, function(O) {
10730
+ return p = O.getPrefixCls, y;
10731
10731
  })];
10732
10732
  };
10733
10733
  return f;
@@ -10767,10 +10767,10 @@ function requireNotification() {
10767
10767
  }
10768
10768
  A((Y = Y.apply(L, V || [])).next());
10769
10769
  });
10770
- }, x = {}, g = 4.5, m = 24, y = 24, C = "ant-notification", O = "topRight", w, F, b = !1;
10770
+ }, x = {}, g = 4.5, m = 24, y = 24, C = "ant-notification", w = "topRight", O, F, b = !1;
10771
10771
  function S(L) {
10772
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);
10773
+ W !== void 0 && (C = W), V !== void 0 && (g = V), G !== void 0 ? w = G : L.rtl && (w = "topLeft"), Y !== void 0 && (y = Y), H !== void 0 && (m = H), K !== void 0 && (O = K), N !== void 0 && (F = N), L.rtl !== void 0 && (b = L.rtl);
10774
10774
  }
10775
10775
  function T(L) {
10776
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;
@@ -10807,7 +10807,7 @@ function requireNotification() {
10807
10807
  return Y;
10808
10808
  }
10809
10809
  function k(L, V) {
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];
10810
+ var G = L.placement, Y = G === void 0 ? w : G, H = L.top, K = L.bottom, N = L.getContainer, W = N === void 0 ? O : 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({
@@ -10943,14 +10943,14 @@ 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()), I = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
10944
10944
  e.configConsumerProps = I;
10945
10945
  var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(C) {
10946
- var O = C.children, w = C.csp, F = C.autoInsertSpaceInButton, b = C.form, S = C.locale, T = C.componentSize, k = C.direction, $ = C.space, B = C.virtual, P = C.dropdownMatchSelectWidth, D = C.legacyLocale, j = C.parentContext, U = C.iconPrefixCls, L = o.useCallback(function(N, W) {
10946
+ var w = C.children, O = C.csp, F = C.autoInsertSpaceInButton, b = C.form, S = C.locale, T = C.componentSize, k = C.direction, $ = C.space, B = C.virtual, P = C.dropdownMatchSelectWidth, D = C.legacyLocale, j = C.parentContext, U = C.iconPrefixCls, L = o.useCallback(function(N, W) {
10947
10947
  var M = C.prefixCls;
10948
10948
  if (W)
10949
10949
  return W;
10950
10950
  var A = M || j.getPrefixCls("");
10951
10951
  return N ? "".concat(A, "-").concat(N) : A;
10952
10952
  }, [j.getPrefixCls]), V = (0, r.default)((0, r.default)({}, j), {
10953
- csp: w,
10953
+ csp: O,
10954
10954
  autoInsertSpaceInButton: F,
10955
10955
  locale: S || D,
10956
10956
  direction: k,
@@ -10974,10 +10974,10 @@ function requireConfigProvider() {
10974
10974
  return {
10975
10975
  prefixCls: U
10976
10976
  };
10977
- }, [U]), H = O, K = {};
10977
+ }, [U]), H = w, K = {};
10978
10978
  return S && S.Form && S.Form.defaultValidateMessages && (K = S.Form.defaultValidateMessages), b && b.validateMessages && (K = (0, r.default)((0, r.default)({}, K), b.validateMessages)), Object.keys(K).length > 0 && (H = /* @__PURE__ */ o.createElement(s.FormProvider, {
10979
10979
  validateMessages: K
10980
- }, O)), S && (H = /* @__PURE__ */ o.createElement(l.default, {
10980
+ }, w)), S && (H = /* @__PURE__ */ o.createElement(l.default, {
10981
10981
  locale: S,
10982
10982
  _ANT_MARK__: l.ANT_MARK
10983
10983
  }, H)), U && (H = /* @__PURE__ */ o.createElement(a.default.Provider, {
@@ -10994,7 +10994,7 @@ function requireConfigProvider() {
10994
10994
  }), p.default.config({
10995
10995
  rtl: C.direction === "rtl"
10996
10996
  }));
10997
- }, [C.direction]), /* @__PURE__ */ o.createElement(u.default, null, function(O, w, F) {
10997
+ }, [C.direction]), /* @__PURE__ */ o.createElement(u.default, null, function(w, O, F) {
10998
10998
  return /* @__PURE__ */ o.createElement(d.ConfigConsumer, null, function(b) {
10999
10999
  return /* @__PURE__ */ o.createElement(x, (0, r.default)({
11000
11000
  parentContext: b,
@@ -11016,46 +11016,46 @@ function requireInput() {
11016
11016
  value: !0
11017
11017
  }), e.fixControlledValue = x, e.resolveOnChange = g, e.getInputClassName = m, e.triggerFocus = y, e.default = void 0;
11018
11018
  var r = n(require_extends()), o = n(requireClassCallCheck()), a = n(requireCreateClass()), s = n(requireInherits()), c = n(requireCreateSuper()), l = n(requireDefineProperty()), u = t(React__default), d = n(requireClassnames()), f = n(requireOmit()), h = t(requireClearableLabeledInput()), p = requireConfigProvider(), I = n(requireSizeContext()), v = n(requireDevWarning());
11019
- function x(w) {
11020
- return typeof w > "u" || w === null ? "" : w;
11019
+ function x(O) {
11020
+ return typeof O > "u" || O === null ? "" : O;
11021
11021
  }
11022
- function g(w, F, b) {
11022
+ function g(O, F, b) {
11023
11023
  if (b) {
11024
11024
  var S = F;
11025
11025
  if (F.type === "click") {
11026
- S = Object.create(F), S.target = w, S.currentTarget = w;
11027
- var T = w.value;
11028
- w.value = "", b(S), w.value = T;
11026
+ S = Object.create(F), S.target = O, S.currentTarget = O;
11027
+ var T = O.value;
11028
+ O.value = "", b(S), O.value = T;
11029
11029
  return;
11030
11030
  }
11031
11031
  b(S);
11032
11032
  }
11033
11033
  }
11034
- function m(w, F, b, S, T) {
11034
+ function m(O, F, b, S, T) {
11035
11035
  var k;
11036
- return (0, d.default)(w, (k = {}, (0, l.default)(k, "".concat(w, "-sm"), b === "small"), (0, l.default)(k, "".concat(w, "-lg"), b === "large"), (0, l.default)(k, "".concat(w, "-disabled"), S), (0, l.default)(k, "".concat(w, "-rtl"), T === "rtl"), (0, l.default)(k, "".concat(w, "-borderless"), !F), k));
11036
+ return (0, d.default)(O, (k = {}, (0, l.default)(k, "".concat(O, "-sm"), b === "small"), (0, l.default)(k, "".concat(O, "-lg"), b === "large"), (0, l.default)(k, "".concat(O, "-disabled"), S), (0, l.default)(k, "".concat(O, "-rtl"), T === "rtl"), (0, l.default)(k, "".concat(O, "-borderless"), !F), k));
11037
11037
  }
11038
- function y(w, F) {
11039
- if (!!w) {
11040
- w.focus(F);
11038
+ function y(O, F) {
11039
+ if (!!O) {
11040
+ O.focus(F);
11041
11041
  var b = F || {}, S = b.cursor;
11042
11042
  if (S) {
11043
- var T = w.value.length;
11043
+ var T = O.value.length;
11044
11044
  switch (S) {
11045
11045
  case "start":
11046
- w.setSelectionRange(0, 0);
11046
+ O.setSelectionRange(0, 0);
11047
11047
  break;
11048
11048
  case "end":
11049
- w.setSelectionRange(T, T);
11049
+ O.setSelectionRange(T, T);
11050
11050
  break;
11051
11051
  default:
11052
- w.setSelectionRange(0, T);
11052
+ O.setSelectionRange(0, T);
11053
11053
  }
11054
11054
  }
11055
11055
  }
11056
11056
  }
11057
- var C = /* @__PURE__ */ function(w) {
11058
- (0, s.default)(b, w);
11057
+ var C = /* @__PURE__ */ function(O) {
11058
+ (0, s.default)(b, O);
11059
11059
  var F = (0, c.default)(b);
11060
11060
  function b(S) {
11061
11061
  var T;
@@ -11197,8 +11197,8 @@ function requireInput() {
11197
11197
  C.defaultProps = {
11198
11198
  type: "text"
11199
11199
  };
11200
- var O = C;
11201
- e.default = O;
11200
+ var w = C;
11201
+ e.default = w;
11202
11202
  }(Input)), Input;
11203
11203
  }
11204
11204
  var reactNode = {}, hasRequiredReactNode;
@@ -11235,19 +11235,19 @@ function requireClearableLabeledInput() {
11235
11235
  return !!(y.addonBefore || y.addonAfter);
11236
11236
  }
11237
11237
  var g = /* @__PURE__ */ function(y) {
11238
- (0, s.default)(O, y);
11239
- var C = (0, c.default)(O);
11240
- function O() {
11241
- var w;
11242
- return (0, o.default)(this, O), w = C.apply(this, arguments), w.containerRef = /* @__PURE__ */ l.createRef(), w.onInputMouseUp = function(F) {
11238
+ (0, s.default)(w, y);
11239
+ var C = (0, c.default)(w);
11240
+ function w() {
11241
+ var O;
11242
+ return (0, o.default)(this, w), O = C.apply(this, arguments), O.containerRef = /* @__PURE__ */ l.createRef(), O.onInputMouseUp = function(F) {
11243
11243
  var b;
11244
- if (!((b = w.containerRef.current) === null || b === void 0) && b.contains(F.target)) {
11245
- var S = w.props.triggerFocus;
11244
+ if (!((b = O.containerRef.current) === null || b === void 0) && b.contains(F.target)) {
11245
+ var S = O.props.triggerFocus;
11246
11246
  S == null || S();
11247
11247
  }
11248
- }, w;
11248
+ }, O;
11249
11249
  }
11250
- return (0, a.default)(O, [{
11250
+ return (0, a.default)(w, [{
11251
11251
  key: "renderClearIcon",
11252
11252
  value: function(F) {
11253
11253
  var b = this.props, S = b.allowClear, T = b.value, k = b.disabled, $ = b.readOnly, B = b.handleReset;
@@ -11333,7 +11333,7 @@ function requireClearableLabeledInput() {
11333
11333
  var F = this.props, b = F.prefixCls, S = F.inputType, T = F.element;
11334
11334
  return S === I[0] ? this.renderTextAreaWithClearIcon(b, T) : this.renderInputWithLabel(b, this.renderLabeledIcon(b, T));
11335
11335
  }
11336
- }]), O;
11336
+ }]), w;
11337
11337
  }(l.Component), m = g;
11338
11338
  e.default = m;
11339
11339
  }(ClearableLabeledInput)), ClearableLabeledInput;
@@ -11343,16 +11343,16 @@ function requireClearableLabeledInput() {
11343
11343
  Object.defineProperty(e, "__esModule", {
11344
11344
  value: !0
11345
11345
  }), e.default = void 0;
11346
- var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), h = n(requireUseMergedState()), p = n(requireClearableLabeledInput()), I = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()), g = function(C, O) {
11347
- var w = {};
11346
+ var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), h = n(requireUseMergedState()), p = n(requireClearableLabeledInput()), I = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()), g = function(C, w) {
11347
+ var O = {};
11348
11348
  for (var F in C)
11349
- Object.prototype.hasOwnProperty.call(C, F) && O.indexOf(F) < 0 && (w[F] = C[F]);
11349
+ Object.prototype.hasOwnProperty.call(C, F) && w.indexOf(F) < 0 && (O[F] = C[F]);
11350
11350
  if (C != null && typeof Object.getOwnPropertySymbols == "function")
11351
11351
  for (var b = 0, F = Object.getOwnPropertySymbols(C); b < F.length; b++)
11352
- O.indexOf(F[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, F[b]) && (w[F[b]] = C[F[b]]);
11353
- return w;
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, G = l.useContext(x.default), Y = l.useRef(null), H = l.useRef(null), K = (0, h.default)(j.defaultValue, {
11352
+ w.indexOf(F[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, F[b]) && (O[F[b]] = C[F[b]]);
11353
+ return O;
11354
+ }, m = /* @__PURE__ */ l.forwardRef(function(C, w) {
11355
+ var O, 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() {
@@ -11368,7 +11368,7 @@ function requireClearableLabeledInput() {
11368
11368
  (le = Y.current) === null || le === void 0 || le.focus();
11369
11369
  }), (0, v.resolveOnChange)(Y.current, ie, j.onChange);
11370
11370
  }, E = L("input", F);
11371
- l.useImperativeHandle(O, function() {
11371
+ l.useImperativeHandle(w, function() {
11372
11372
  var se;
11373
11373
  return {
11374
11374
  resizableTextArea: (se = Y.current) === null || se === void 0 ? void 0 : se.resizableTextArea,
@@ -11384,7 +11384,7 @@ function requireClearableLabeledInput() {
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"), G === "small" || D === "small"), (0, s.default)(w, "".concat(E, "-lg"), G === "large" || D === "large"), w)),
11387
+ className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(E, "-borderless"), !S), (0, s.default)(O, B, B && !k), (0, s.default)(O, "".concat(E, "-sm"), G === "small" || D === "small"), (0, s.default)(O, "".concat(E, "-lg"), G === "large" || D === "large"), O)),
11388
11388
  style: k ? void 0 : P,
11389
11389
  prefixCls: E,
11390
11390
  onChange: Z,
@@ -11490,7 +11490,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11490
11490
  }
11491
11491
  g.current = S, x(S);
11492
11492
  }
11493
- function O() {
11493
+ function w() {
11494
11494
  return u.map((b, S) => /* @__PURE__ */ jsxs(Row, {
11495
11495
  style: {
11496
11496
  paddingBottom: 20
@@ -11517,7 +11517,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11517
11517
  })]
11518
11518
  }, S));
11519
11519
  }
11520
- async function w() {
11520
+ async function O() {
11521
11521
  I(!0);
11522
11522
  try {
11523
11523
  for (const b of Object.keys(v))
@@ -11539,7 +11539,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11539
11539
  }
11540
11540
  function F() {
11541
11541
  return f ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
11542
- children: [O(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
11542
+ children: [w(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
11543
11543
  justify: "end",
11544
11544
  children: /* @__PURE__ */ jsxs(Space, {
11545
11545
  children: [/* @__PURE__ */ jsx(Button$1, {
@@ -11550,7 +11550,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11550
11550
  }), /* @__PURE__ */ jsx(Button$1, {
11551
11551
  icon: p ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
11552
11552
  disabled: p,
11553
- onClick: w,
11553
+ onClick: O,
11554
11554
  style: {
11555
11555
  marginLeft: 15
11556
11556
  },
@@ -11852,29 +11852,29 @@ function debounce(e, t, n) {
11852
11852
  if (typeof e != "function")
11853
11853
  throw new TypeError(FUNC_ERROR_TEXT);
11854
11854
  t = toNumber(t) || 0, isObject$1(n) && (d = !!n.leading, f = "maxWait" in n, a = f ? nativeMax(toNumber(n.maxWait) || 0, t) : a, h = "trailing" in n ? !!n.trailing : h);
11855
- function p(w) {
11855
+ function p(O) {
11856
11856
  var F = r, b = o;
11857
- return r = o = void 0, u = w, s = e.apply(b, F), s;
11857
+ return r = o = void 0, u = O, s = e.apply(b, F), s;
11858
11858
  }
11859
- function I(w) {
11860
- return u = w, c = setTimeout(g, t), d ? p(w) : s;
11859
+ function I(O) {
11860
+ return u = O, c = setTimeout(g, t), d ? p(O) : s;
11861
11861
  }
11862
- function v(w) {
11863
- var F = w - l, b = w - u, S = t - F;
11862
+ function v(O) {
11863
+ var F = O - l, b = O - u, S = t - F;
11864
11864
  return f ? nativeMin(S, a - b) : S;
11865
11865
  }
11866
- function x(w) {
11867
- var F = w - l, b = w - u;
11866
+ function x(O) {
11867
+ var F = O - l, b = O - u;
11868
11868
  return l === void 0 || F >= t || F < 0 || f && b >= a;
11869
11869
  }
11870
11870
  function g() {
11871
- var w = now$1();
11872
- if (x(w))
11873
- return m(w);
11874
- c = setTimeout(g, v(w));
11871
+ var O = now$1();
11872
+ if (x(O))
11873
+ return m(O);
11874
+ c = setTimeout(g, v(O));
11875
11875
  }
11876
- function m(w) {
11877
- return c = void 0, h && r ? p(w) : (r = o = void 0, s);
11876
+ function m(O) {
11877
+ return c = void 0, h && r ? p(O) : (r = o = void 0, s);
11878
11878
  }
11879
11879
  function y() {
11880
11880
  c !== void 0 && clearTimeout(c), u = 0, r = l = o = c = void 0;
@@ -11882,9 +11882,9 @@ function debounce(e, t, n) {
11882
11882
  function C() {
11883
11883
  return c === void 0 ? s : m(now$1());
11884
11884
  }
11885
- function O() {
11886
- var w = now$1(), F = x(w);
11887
- if (r = arguments, o = this, l = w, F) {
11885
+ function w() {
11886
+ var O = now$1(), F = x(O);
11887
+ if (r = arguments, o = this, l = O, F) {
11888
11888
  if (c === void 0)
11889
11889
  return I(l);
11890
11890
  if (f)
@@ -11892,7 +11892,7 @@ function debounce(e, t, n) {
11892
11892
  }
11893
11893
  return c === void 0 && (c = setTimeout(g, t)), s;
11894
11894
  }
11895
- return O.cancel = y, O.flush = C, O;
11895
+ return w.cancel = y, w.flush = C, w;
11896
11896
  }
11897
11897
  var debounce_1 = debounce, browser$1 = { exports: {} }, lib$2 = {}, readableBrowser = { exports: {} }, events = { exports: {} }, R = typeof Reflect == "object" ? Reflect : null, ReflectApply = R && typeof R.apply == "function" ? R.apply : function(t, n, r) {
11898
11898
  return Function.prototype.apply.call(t, n, r);
@@ -12439,7 +12439,7 @@ function require_stream_writable() {
12439
12439
  };
12440
12440
  }
12441
12441
  var t;
12442
- b.WritableState = w;
12442
+ b.WritableState = O;
12443
12443
  var n = {
12444
12444
  deprecate: browser
12445
12445
  }, r = streamBrowser, o = require$$0.Buffer, a = commonjsGlobal.Uint8Array || function() {
@@ -12452,22 +12452,22 @@ function require_stream_writable() {
12452
12452
  }
12453
12453
  var l = destroy_1, u = state, d = u.getHighWaterMark, f = errorsBrowser.codes, h = f.ERR_INVALID_ARG_TYPE, p = f.ERR_METHOD_NOT_IMPLEMENTED, I = f.ERR_MULTIPLE_CALLBACK, v = f.ERR_STREAM_CANNOT_PIPE, x = f.ERR_STREAM_DESTROYED, g = f.ERR_STREAM_NULL_VALUES, m = f.ERR_STREAM_WRITE_AFTER_END, y = f.ERR_UNKNOWN_ENCODING, C = l.errorOrDestroy;
12454
12454
  inherits_browser.exports(b, r);
12455
- function O() {
12455
+ function w() {
12456
12456
  }
12457
- function w(M, A, q) {
12457
+ function O(M, A, q) {
12458
12458
  t = t || require_stream_duplex(), M = M || {}, typeof q != "boolean" && (q = A instanceof t), this.objectMode = !!M.objectMode, q && (this.objectMode = this.objectMode || !!M.writableObjectMode), this.highWaterMark = d(this, M, "writableHighWaterMark", q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12459
12459
  var Z = M.decodeStrings === !1;
12460
12460
  this.decodeStrings = !Z, this.defaultEncoding = M.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Q) {
12461
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 = M.emitClose !== !1, this.autoDestroy = !!M.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
12463
12463
  }
12464
- w.prototype.getBuffer = function() {
12464
+ O.prototype.getBuffer = function() {
12465
12465
  for (var A = this.bufferedRequest, q = []; A; )
12466
12466
  q.push(A), A = A.next;
12467
12467
  return q;
12468
12468
  }, function() {
12469
12469
  try {
12470
- Object.defineProperty(w.prototype, "buffer", {
12470
+ Object.defineProperty(O.prototype, "buffer", {
12471
12471
  get: n.deprecate(function() {
12472
12472
  return this.getBuffer();
12473
12473
  }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
@@ -12478,7 +12478,7 @@ function require_stream_writable() {
12478
12478
  var F;
12479
12479
  typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (F = Function.prototype[Symbol.hasInstance], Object.defineProperty(b, Symbol.hasInstance, {
12480
12480
  value: function(A) {
12481
- return F.call(this, A) ? !0 : this !== b ? !1 : A && A._writableState instanceof w;
12481
+ return F.call(this, A) ? !0 : this !== b ? !1 : A && A._writableState instanceof O;
12482
12482
  }
12483
12483
  })) : F = function(A) {
12484
12484
  return A instanceof this;
@@ -12488,7 +12488,7 @@ function require_stream_writable() {
12488
12488
  var A = this instanceof t;
12489
12489
  if (!A && !F.call(b, this))
12490
12490
  return new b(M);
12491
- this._writableState = new w(M, this, A), this.writable = !0, M && (typeof M.write == "function" && (this._write = M.write), typeof M.writev == "function" && (this._writev = M.writev), typeof M.destroy == "function" && (this._destroy = M.destroy), typeof M.final == "function" && (this._final = M.final)), r.call(this);
12491
+ this._writableState = new O(M, this, A), this.writable = !0, M && (typeof M.write == "function" && (this._write = M.write), typeof M.writev == "function" && (this._writev = M.writev), typeof M.destroy == "function" && (this._destroy = M.destroy), typeof M.final == "function" && (this._final = M.final)), r.call(this);
12492
12492
  }
12493
12493
  b.prototype.pipe = function() {
12494
12494
  C(this, new v());
@@ -12503,7 +12503,7 @@ function require_stream_writable() {
12503
12503
  }
12504
12504
  b.prototype.write = function(M, A, q) {
12505
12505
  var Z = this._writableState, Q = !1, E = !Z.objectMode && c(M);
12506
- return E && !o.isBuffer(M) && (M = s(M)), typeof A == "function" && (q = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof q != "function" && (q = O), Z.ending ? S(this, q) : (E || T(this, Z, M, q)) && (Z.pendingcb++, Q = $(this, Z, E, M, A, q)), Q;
12506
+ return E && !o.isBuffer(M) && (M = s(M)), typeof A == "function" && (q = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof q != "function" && (q = w), Z.ending ? S(this, q) : (E || T(this, Z, M, q)) && (Z.pendingcb++, Q = $(this, Z, E, M, A, q)), Q;
12507
12507
  }, b.prototype.cork = function() {
12508
12508
  this._writableState.corked++;
12509
12509
  }, b.prototype.uncork = function() {
@@ -12832,8 +12832,8 @@ function requireString_decoder() {
12832
12832
  var C = m.length - 1;
12833
12833
  if (C < y)
12834
12834
  return 0;
12835
- var O = a(m[C]);
12836
- return O >= 0 ? (O > 0 && (g.lastNeed = O - 1), O) : --C < y || O === -2 ? 0 : (O = a(m[C]), O >= 0 ? (O > 0 && (g.lastNeed = O - 2), O) : --C < y || O === -2 ? 0 : (O = a(m[C]), O >= 0 ? (O > 0 && (O === 2 ? O = 0 : g.lastNeed = O - 3), O) : 0));
12835
+ var w = a(m[C]);
12836
+ return w >= 0 ? (w > 0 && (g.lastNeed = w - 1), w) : --C < y || w === -2 ? 0 : (w = a(m[C]), w >= 0 ? (w > 0 && (g.lastNeed = w - 2), w) : --C < y || w === -2 ? 0 : (w = a(m[C]), w >= 0 ? (w > 0 && (w === 2 ? w = 0 : g.lastNeed = w - 3), w) : 0));
12837
12837
  }
12838
12838
  function c(g, m, y) {
12839
12839
  if ((m[0] & 192) !== 128)
@@ -12997,25 +12997,25 @@ function requireAsync_iterator() {
12997
12997
  m[a] ? b(m[a]) : F(d(void 0, !0));
12998
12998
  });
12999
12999
  });
13000
- var C = this[c], O;
13000
+ var C = this[c], w;
13001
13001
  if (C)
13002
- O = new Promise(p(C, this));
13002
+ w = new Promise(p(C, this));
13003
13003
  else {
13004
- var w = this[u].read();
13005
- if (w !== null)
13006
- return Promise.resolve(d(w, !1));
13007
- O = new Promise(this[l]);
13004
+ var O = this[u].read();
13005
+ if (O !== null)
13006
+ return Promise.resolve(d(O, !1));
13007
+ w = new Promise(this[l]);
13008
13008
  }
13009
- return this[c] = O, O;
13009
+ return this[c] = w, w;
13010
13010
  }
13011
13011
  }, t(e, Symbol.asyncIterator, function() {
13012
13012
  return this;
13013
13013
  }), t(e, "return", function() {
13014
13014
  var m = this;
13015
13015
  return new Promise(function(y, C) {
13016
- m[u].destroy(null, function(O) {
13017
- if (O) {
13018
- C(O);
13016
+ m[u].destroy(null, function(w) {
13017
+ if (w) {
13018
+ C(w);
13019
13019
  return;
13020
13020
  }
13021
13021
  y(d(void 0, !0));
@@ -13038,16 +13038,16 @@ function requireAsync_iterator() {
13038
13038
  value: m._readableState.endEmitted,
13039
13039
  writable: !0
13040
13040
  }), t(y, l, {
13041
- value: function(w, F) {
13041
+ value: function(O, F) {
13042
13042
  var b = C[u].read();
13043
- b ? (C[c] = null, C[r] = null, C[o] = null, w(d(b, !1))) : (C[r] = w, C[o] = F);
13043
+ b ? (C[c] = null, C[r] = null, C[o] = null, O(d(b, !1))) : (C[r] = O, C[o] = F);
13044
13044
  },
13045
13045
  writable: !0
13046
13046
  }), y));
13047
- return C[c] = null, n(m, function(O) {
13048
- if (O && O.code !== "ERR_STREAM_PREMATURE_CLOSE") {
13049
- var w = C[o];
13050
- w !== null && (C[c] = null, C[r] = null, C[o] = null, w(O)), C[a] = O;
13047
+ return C[c] = null, n(m, function(w) {
13048
+ if (w && w.code !== "ERR_STREAM_PREMATURE_CLOSE") {
13049
+ var O = C[o];
13050
+ O !== null && (C[c] = null, C[r] = null, C[o] = null, O(w)), C[a] = w;
13051
13051
  return;
13052
13052
  }
13053
13053
  var F = C[r];
@@ -13084,7 +13084,7 @@ function require_stream_readable() {
13084
13084
  };
13085
13085
  var u = requireBuffer_list(), d = destroy_1, f = state, h = f.getHighWaterMark, p = errorsBrowser.codes, I = p.ERR_INVALID_ARG_TYPE, v = p.ERR_STREAM_PUSH_AFTER_EOF, x = p.ERR_METHOD_NOT_IMPLEMENTED, g = p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, m, y, C;
13086
13086
  inherits_browser.exports(S, n);
13087
- var O = d.errorOrDestroy, w = ["error", "close", "destroy", "pause", "resume"];
13087
+ var w = d.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
13088
13088
  function F(E, _, z) {
13089
13089
  if (typeof E.prependListener == "function")
13090
13090
  return E.prependListener(_, z);
@@ -13123,12 +13123,12 @@ function require_stream_readable() {
13123
13123
  else {
13124
13124
  var re;
13125
13125
  if (te || (re = $(ee, _)), re)
13126
- O(E, re);
13126
+ w(E, re);
13127
13127
  else if (ee.objectMode || _ && _.length > 0)
13128
13128
  if (typeof _ != "string" && !ee.objectMode && Object.getPrototypeOf(_) !== r.prototype && (_ = a(_)), X)
13129
- ee.endEmitted ? O(E, new g()) : k(E, ee, _, !0);
13129
+ ee.endEmitted ? w(E, new g()) : k(E, ee, _, !0);
13130
13130
  else if (ee.ended)
13131
- O(E, new v());
13131
+ w(E, new v());
13132
13132
  else {
13133
13133
  if (ee.destroyed)
13134
13134
  return !1;
@@ -13204,7 +13204,7 @@ function require_stream_readable() {
13204
13204
  _.readingMore = !1;
13205
13205
  }
13206
13206
  S.prototype._read = function(E) {
13207
- O(this, new x("_read()"));
13207
+ w(this, new x("_read()"));
13208
13208
  }, S.prototype.pipe = function(E, _) {
13209
13209
  var z = this, X = this._readableState;
13210
13210
  switch (X.pipesCount) {
@@ -13240,7 +13240,7 @@ function require_stream_readable() {
13240
13240
  l("dest.write", Ce), Ce === !1 && ((X.pipesCount === 1 && X.pipes === E || X.pipesCount > 1 && Q(X.pipes, E) !== -1) && !le && (l("false write response, pause", X.awaitDrain), X.awaitDrain++), z.pause());
13241
13241
  }
13242
13242
  function we(Te) {
13243
- l("onerror", Te), ye(), E.removeListener("error", we), t(E, "error") === 0 && O(E, Te);
13243
+ l("onerror", Te), ye(), E.removeListener("error", we), t(E, "error") === 0 && w(E, Te);
13244
13244
  }
13245
13245
  F(E, "error", we);
13246
13246
  function me() {
@@ -13336,8 +13336,8 @@ function require_stream_readable() {
13336
13336
  return E[se].apply(E, arguments);
13337
13337
  };
13338
13338
  }(te));
13339
- for (var ee = 0; ee < w.length; ee++)
13340
- E.on(w[ee], this.emit.bind(this, w[ee]));
13339
+ for (var ee = 0; ee < O.length; ee++)
13340
+ E.on(O[ee], this.emit.bind(this, O[ee]));
13341
13341
  return this._read = function(re) {
13342
13342
  l("wrapped _read", re), X && (X = !1, E.resume());
13343
13343
  }, this;
@@ -15713,12 +15713,12 @@ const Image = (e) => {
15713
15713
  summaryField: g,
15714
15714
  titleField: m
15715
15715
  } = r, y = a.filter((b) => b.values), C = useContext(FormContext$1), {
15716
- getContext: O
15716
+ getContext: w
15717
15717
  } = C || {};
15718
15718
  useDeepCompareEffect(() => {
15719
15719
  F();
15720
15720
  }, [a]);
15721
- const w = (b) => {
15721
+ const O = (b) => {
15722
15722
  o == null || o({
15723
15723
  items: b
15724
15724
  });
@@ -15732,11 +15732,11 @@ const Image = (e) => {
15732
15732
  model: I,
15733
15733
  items: a,
15734
15734
  context: {
15735
- ...O == null ? void 0 : O(),
15735
+ ...w == null ? void 0 : w(),
15736
15736
  ...v
15737
15737
  }
15738
15738
  });
15739
- w(b);
15739
+ O(b);
15740
15740
  } catch (b) {
15741
15741
  u(b);
15742
15742
  } finally {
@@ -15792,7 +15792,7 @@ const Image = (e) => {
15792
15792
  f(!1);
15793
15793
  },
15794
15794
  parentContext: {
15795
- ...O == null ? void 0 : O(),
15795
+ ...w == null ? void 0 : w(),
15796
15796
  ...v
15797
15797
  },
15798
15798
  onCancel: () => {
@@ -15966,7 +15966,7 @@ const transformPlainMany2Ones = ({
15966
15966
  onChange: r
15967
15967
  } = e, {
15968
15968
  items: o = []
15969
- } = t || {}, a = o.filter((w) => w.operation !== "pendingRemove").map((w) => w.id), [s, c] = useState([]), [l, u] = useState(), [d, f] = useState(!1), {
15969
+ } = t || {}, a = o.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [s, c] = useState([]), [l, u] = useState(), [d, f] = useState(!1), {
15970
15970
  relation: h,
15971
15971
  context: p,
15972
15972
  readOnly: I,
@@ -15977,26 +15977,26 @@ const transformPlainMany2Ones = ({
15977
15977
  useDeepCompareEffect(() => {
15978
15978
  y();
15979
15979
  }, [o]);
15980
- const m = (w) => {
15980
+ const m = (O) => {
15981
15981
  r == null || r({
15982
- items: w
15982
+ items: O
15983
15983
  });
15984
15984
  };
15985
15985
  async function y() {
15986
15986
  f(!0);
15987
- let w = [];
15987
+ let O = [];
15988
15988
  try {
15989
- if (I && (w = [["id", "in", a]]), n.domain) {
15989
+ if (I && (O = [["id", "in", a]]), n.domain) {
15990
15990
  const S = await ConnectionProvider.getHandler().evalDomain({
15991
15991
  domain: n.domain,
15992
15992
  values: x.getPlainValues(),
15993
15993
  context: x.getContext()
15994
15994
  });
15995
- w = [...w, ...S];
15995
+ O = [...O, ...S];
15996
15996
  }
15997
15997
  const b = (await ConnectionProvider.getHandler().search({
15998
15998
  model: h,
15999
- params: w,
15999
+ params: O,
16000
16000
  fields: [v],
16001
16001
  context: {
16002
16002
  ...g == null ? void 0 : g(),
@@ -16017,26 +16017,26 @@ const transformPlainMany2Ones = ({
16017
16017
  f(!1);
16018
16018
  }
16019
16019
  }
16020
- const C = (w) => {
16021
- const F = o.map((S) => w.includes(S.id) ? S.operation == "pendingRemove" ? {
16020
+ const C = (O) => {
16021
+ const F = o.map((S) => O.includes(S.id) ? S.operation == "pendingRemove" ? {
16022
16022
  ...S,
16023
16023
  operation: "pendingLink"
16024
16024
  } : S : {
16025
16025
  id: S.id,
16026
16026
  operation: "pendingRemove"
16027
16027
  }), b = F.map((S) => S.id);
16028
- w.filter((S) => !b.includes(S)).map((S) => {
16028
+ O.filter((S) => !b.includes(S)).map((S) => {
16029
16029
  F.push({
16030
16030
  id: S,
16031
16031
  operation: "pendingLink"
16032
16032
  });
16033
16033
  }), m(F);
16034
- }, O = (w) => {
16034
+ }, w = (O) => {
16035
16035
  const {
16036
16036
  label: F,
16037
16037
  closable: b,
16038
16038
  onClose: S
16039
- } = w, T = (k) => {
16039
+ } = O, T = (k) => {
16040
16040
  k.preventDefault(), k.stopPropagation();
16041
16041
  };
16042
16042
  return /* @__PURE__ */ jsx(Tag, {
@@ -16061,7 +16061,7 @@ const transformPlainMany2Ones = ({
16061
16061
  children: /* @__PURE__ */ jsx(Select, {
16062
16062
  mode: "multiple",
16063
16063
  value: s.length ? a : [],
16064
- tagRender: O,
16064
+ tagRender: w,
16065
16065
  bordered: !I,
16066
16066
  disabled: I,
16067
16067
  options: s,
@@ -16291,8 +16291,8 @@ const transformPlainMany2Ones = ({
16291
16291
  const [t, n] = useState(!1), [r, o] = useState(!1), [a, s] = useState(!1), [c, l] = useState(!1), [u, d] = useState(!0), [f, h] = useState([]), [p, I] = useState(!1), [v, x] = useState([]), [g, m] = useState(!1), {
16292
16292
  children: y,
16293
16293
  currentView: C,
16294
- title: O,
16295
- setCurrentView: w,
16294
+ title: w,
16295
+ setCurrentView: O,
16296
16296
  availableViews: F,
16297
16297
  formRef: b,
16298
16298
  searchTreeRef: S,
@@ -16325,9 +16325,9 @@ const transformPlainMany2Ones = ({
16325
16325
  };
16326
16326
  return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
16327
16327
  value: {
16328
- title: O,
16328
+ title: w,
16329
16329
  currentView: C,
16330
- setCurrentView: w,
16330
+ setCurrentView: O,
16331
16331
  availableViews: F,
16332
16332
  formIsSaving: t,
16333
16333
  setFormIsSaving: n,
@@ -16586,7 +16586,7 @@ const transformPlainMany2Ones = ({
16586
16586
  context: T,
16587
16587
  actionData: k
16588
16588
  }) {
16589
- h ? O({
16589
+ h ? w({
16590
16590
  domain: F,
16591
16591
  model: b,
16592
16592
  formView: S,
@@ -16600,7 +16600,7 @@ const transformPlainMany2Ones = ({
16600
16600
  actionData: k
16601
16601
  }), p(!0));
16602
16602
  }
16603
- async function O({
16603
+ async function w({
16604
16604
  domain: F,
16605
16605
  model: b,
16606
16606
  formView: S,
@@ -16621,7 +16621,7 @@ const transformPlainMany2Ones = ({
16621
16621
  actionData: k
16622
16622
  }), p(!0);
16623
16623
  }
16624
- async function w() {
16624
+ async function O() {
16625
16625
  var F;
16626
16626
  (F = d.current) == null || F.call(d), p(!1), v({
16627
16627
  domain: void 0,
@@ -16652,7 +16652,7 @@ const transformPlainMany2Ones = ({
16652
16652
  model: I.model,
16653
16653
  formView: I.formView,
16654
16654
  visible: h,
16655
- onSubmitSucceed: w,
16655
+ onSubmitSucceed: O,
16656
16656
  onCancel: () => {
16657
16657
  var F;
16658
16658
  (F = d.current) == null || F.call(d), p(!1), v({
@@ -16693,8 +16693,8 @@ function Form(e, t) {
16693
16693
  actionDomain: m,
16694
16694
  visible: y = !0,
16695
16695
  rootForm: C = !1,
16696
- defaultValues: O,
16697
- forcedValues: w = {}
16696
+ defaultValues: w,
16697
+ forcedValues: O = {}
16698
16698
  } = e, {
16699
16699
  lang: F
16700
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), {
@@ -16795,7 +16795,7 @@ function Form(e, t) {
16795
16795
  ...g,
16796
16796
  ...ne
16797
16797
  },
16798
- extraValues: O
16798
+ extraValues: w
16799
16799
  });
16800
16800
  }, ge = () => Object.keys(getTouchedValues({
16801
16801
  source: W.current,
@@ -16946,7 +16946,7 @@ function Form(e, t) {
16946
16946
  id: me(),
16947
16947
  values: {
16948
16948
  ...ce,
16949
- ...w
16949
+ ...O
16950
16950
  },
16951
16951
  fields: U,
16952
16952
  context: {
@@ -16959,7 +16959,7 @@ function Form(e, t) {
16959
16959
  model: n,
16960
16960
  values: {
16961
16961
  ...ce,
16962
- ...w
16962
+ ...O
16963
16963
  },
16964
16964
  fields: U,
16965
16965
  context: {
@@ -17312,12 +17312,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
17312
17312
  const {
17313
17313
  action_id: y,
17314
17314
  res_id: C,
17315
- action_type: O,
17316
- view_id: w
17315
+ action_type: w,
17316
+ view_id: O
17317
17317
  } = c, F = await ConnectionProvider.getHandler().isShortcutFavorite({
17318
17318
  action_id: y,
17319
- action_type: O,
17320
- view_id: w,
17319
+ action_type: w,
17320
+ view_id: O,
17321
17321
  res_id: C || !1
17322
17322
  });
17323
17323
  p(F !== !1), F !== !1 && v(F);
@@ -17331,13 +17331,13 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
17331
17331
  const {
17332
17332
  action_id: y,
17333
17333
  res_id: C,
17334
- action_type: O,
17335
- view_id: w
17334
+ action_type: w,
17335
+ view_id: O
17336
17336
  } = c;
17337
17337
  await ConnectionProvider.getHandler().addFavourite({
17338
17338
  action_id: y,
17339
- action_type: O,
17340
- view_id: w,
17339
+ action_type: w,
17340
+ view_id: O,
17341
17341
  res_id: C || !1
17342
17342
  });
17343
17343
  }
@@ -17815,8 +17815,8 @@ function SearchFilter(e) {
17815
17815
  if (!f)
17816
17816
  return;
17817
17817
  const y = p ? f : u, C = y == null ? void 0 : y.rows;
17818
- return C == null ? void 0 : C.map((O, w) => /* @__PURE__ */ jsx(Row, {
17819
- children: O.map((F, b) => /* @__PURE__ */ jsx(Col, {
17818
+ return C == null ? void 0 : C.map((w, O) => /* @__PURE__ */ jsx(Row, {
17819
+ children: w.map((F, b) => /* @__PURE__ */ jsx(Col, {
17820
17820
  xs: 24,
17821
17821
  className: "p-2",
17822
17822
  xl: 6,
@@ -17824,7 +17824,7 @@ function SearchFilter(e) {
17824
17824
  field: F
17825
17825
  })
17826
17826
  }, b))
17827
- }, w));
17827
+ }, O));
17828
17828
  };
17829
17829
  useDeepCompareEffect(() => {
17830
17830
  I(!1);
@@ -17838,13 +17838,13 @@ function SearchFilter(e) {
17838
17838
  onFinish: (y) => {
17839
17839
  const {
17840
17840
  limit: C,
17841
- offset: O
17841
+ offset: w
17842
17842
  } = y;
17843
17843
  delete y.offset, delete y.limit;
17844
- const w = getParamsForFields(y, t);
17844
+ const O = getParamsForFields(y, t);
17845
17845
  o({
17846
- params: w,
17847
- offset: O,
17846
+ params: O,
17847
+ offset: w,
17848
17848
  limit: C
17849
17849
  });
17850
17850
  },
@@ -18018,7 +18018,7 @@ const Many2oneSuffixModal = (e) => {
18018
18018
  children: $.name
18019
18019
  }, $.id));
18020
18020
  return /* @__PURE__ */ jsx(Menu, {
18021
- onClick: O,
18021
+ onClick: w,
18022
18022
  children: [/* @__PURE__ */ jsx(Menu.Item, {
18023
18023
  disabled: !d.toolbar.action || d.toolbar.action.length === 0,
18024
18024
  icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
@@ -18037,7 +18037,7 @@ const Many2oneSuffixModal = (e) => {
18037
18037
  })]
18038
18038
  });
18039
18039
  }
18040
- function O(T) {
18040
+ function w(T) {
18041
18041
  if (T.key === "action")
18042
18042
  a(!0);
18043
18043
  else if (T.key === "print")
@@ -18055,7 +18055,7 @@ const Many2oneSuffixModal = (e) => {
18055
18055
  });
18056
18056
  }
18057
18057
  }
18058
- function w(T) {
18058
+ function O(T) {
18059
18059
  a(!1), m == null || m({
18060
18060
  actionData: T,
18061
18061
  values: h,
@@ -18094,7 +18094,7 @@ const Many2oneSuffixModal = (e) => {
18094
18094
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
18095
18095
  visible: o,
18096
18096
  items: (b = d == null ? void 0 : d.toolbar) == null ? void 0 : b.action,
18097
- onItemClicked: w,
18097
+ onItemClicked: O,
18098
18098
  onCancel: () => a(!1)
18099
18099
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
18100
18100
  visible: s,
@@ -18256,12 +18256,12 @@ function Tree(e) {
18256
18256
  sorter: I,
18257
18257
  onFetchChildrenForRecord: v,
18258
18258
  childField: x
18259
- } = e, [g, m] = useState([]), [y, C] = useState([]), O = useRef(!1), w = useRef(null), {
18259
+ } = e, [g, m] = useState([]), [y, C] = useState([]), w = useRef(!1), O = useRef(null), {
18260
18260
  t: F
18261
18261
  } = useContext(LocaleContext);
18262
18262
  useEffect(() => {
18263
- w.current = getTree(o);
18264
- const D = getTableColumns(w.current, {
18263
+ O.current = getTree(o);
18264
+ const D = getTableColumns(O.current, {
18265
18265
  boolean: booleanComponentFn,
18266
18266
  many2one: many2OneComponentFn,
18267
18267
  text: textComponentFn,
@@ -18275,8 +18275,8 @@ function Tree(e) {
18275
18275
  });
18276
18276
  C(D);
18277
18277
  }, [o]), useEffect(() => {
18278
- O.current = !1;
18279
- const D = getTableItems(w.current, a);
18278
+ w.current = !1;
18279
+ const D = getTableItems(O.current, a);
18280
18280
  m(D);
18281
18281
  }, [a]);
18282
18282
  const b = (t - 1) * n + 1, S = b - 1 + g.length, T = r === void 0 ? null : r === 0 ? F("no_results") : F("summary").replace("{from}", b == null ? void 0 : b.toString()).replace("{to}", S == null ? void 0 : S.toString()).replace("{total}", r == null ? void 0 : r.toString()), k = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
@@ -18299,7 +18299,7 @@ function Tree(e) {
18299
18299
  });
18300
18300
  function $() {
18301
18301
  var V;
18302
- const j = w.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
18302
+ const j = O.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
18303
18303
  label: G.sum,
18304
18304
  field: G.id
18305
18305
  }));
@@ -18315,12 +18315,12 @@ function Tree(e) {
18315
18315
  });
18316
18316
  }
18317
18317
  let B, P = f;
18318
- if (w.current !== null) {
18318
+ if (O.current !== null) {
18319
18319
  B = calculateColumnsWidth(y, g, 600);
18320
- const j = w.current;
18320
+ const j = O.current;
18321
18321
  f && j.columns.some((U) => U.sum !== void 0) && (P = f - 30);
18322
18322
  }
18323
- return w.current === null ? /* @__PURE__ */ jsx(Spin, {
18323
+ return O.current === null ? /* @__PURE__ */ jsx(Spin, {
18324
18324
  style: {
18325
18325
  padding: "2rem"
18326
18326
  }
@@ -18366,7 +18366,7 @@ function SearchTree(e, t) {
18366
18366
  parentContext: f = {},
18367
18367
  onChangeSelectedRowKeys: h,
18368
18368
  limit: p
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(), {
18369
+ } = e, [I, v] = useState(!1), [x, g] = useState(!1), m = useRef(!1), y = useRef(p || DEFAULT_SEARCH_LIMIT$1), [C, w] = useState(), [O, 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(), {
18370
18370
  height: ee
18371
18371
  } = useWindowDimensions(), re = useContext(ActionViewContext), {
18372
18372
  setResults: se = void 0,
@@ -18408,14 +18408,14 @@ function SearchTree(e, t) {
18408
18408
  if (L(de.length), Ee == null || Ee(de.length), de.length > 0) {
18409
18409
  const xe = de.map((J) => J == null ? void 0 : J[0]), {
18410
18410
  colors: Oe
18411
- } = getTree(w), ke = await ConnectionProvider.getHandler().readEvalUiObjects({
18411
+ } = getTree(O), ke = await ConnectionProvider.getHandler().readEvalUiObjects({
18412
18412
  model: C,
18413
18413
  ids: xe,
18414
- arch: w == null ? void 0 : w.arch,
18415
- fields: w.field_parent ? {
18416
- ...w.fields,
18417
- [w.field_parent]: {}
18418
- } : w.fields,
18414
+ arch: O == null ? void 0 : O.arch,
18415
+ fields: O.field_parent ? {
18416
+ ...O.fields,
18417
+ [O.field_parent]: {}
18418
+ } : O.fields,
18419
18419
  context: f,
18420
18420
  attrs: Oe && {
18421
18421
  colors: Oe
@@ -18426,7 +18426,7 @@ function SearchTree(e, t) {
18426
18426
  resultsToSort: Ae,
18427
18427
  sorter: Te,
18428
18428
  fields: {
18429
- ...w.fields,
18429
+ ...O.fields,
18430
18430
  ...b.fields
18431
18431
  }
18432
18432
  }) : [...X.current];
@@ -18447,7 +18447,7 @@ function SearchTree(e, t) {
18447
18447
  }, De = async () => {
18448
18448
  const de = E.current.length > 0 ? E.current : l, xe = Pe(j.current, de), {
18449
18449
  colors: Oe
18450
- } = getTree(w), {
18450
+ } = getTree(O), {
18451
18451
  totalItems: ke,
18452
18452
  results: Ae,
18453
18453
  attrsEvaluated: Ue
@@ -18456,10 +18456,10 @@ function SearchTree(e, t) {
18456
18456
  limit: P,
18457
18457
  offset: $,
18458
18458
  model: C,
18459
- fields: w.field_parent ? {
18460
- ...w.fields,
18461
- [w.field_parent]: {}
18462
- } : w.fields,
18459
+ fields: O.field_parent ? {
18460
+ ...O.fields,
18461
+ [O.field_parent]: {}
18462
+ } : O.fields,
18463
18463
  context: f,
18464
18464
  attrs: Oe && {
18465
18465
  colors: Oe
@@ -18470,7 +18470,7 @@ function SearchTree(e, t) {
18470
18470
  resultsToSort: Ae,
18471
18471
  sorter: Te,
18472
18472
  fields: {
18473
- ...w.fields,
18473
+ ...O.fields,
18474
18474
  ...b.fields
18475
18475
  }
18476
18476
  }) : [...X.current];
@@ -18491,16 +18491,16 @@ function SearchTree(e, t) {
18491
18491
  }
18492
18492
  };
18493
18493
  async function Me(de) {
18494
- const xe = de[(w == null ? void 0 : w.field_parent) || "child_id"], Oe = await ConnectionProvider.getHandler().readObjects({
18494
+ const xe = de[(O == null ? void 0 : O.field_parent) || "child_id"], Oe = await ConnectionProvider.getHandler().readObjects({
18495
18495
  model: C,
18496
18496
  ids: xe,
18497
- fields: w.field_parent ? {
18498
- ...w.fields,
18499
- [w.field_parent]: {}
18500
- } : w.fields,
18497
+ fields: O.field_parent ? {
18498
+ ...O.fields,
18499
+ [O.field_parent]: {}
18500
+ } : O.fields,
18501
18501
  context: f
18502
18502
  });
18503
- return Ie([...Se(), ...Oe]), getTableItems(getTree(w), Oe);
18503
+ return Ie([...Se(), ...Oe]), getTableItems(getTree(O), Oe);
18504
18504
  }
18505
18505
  useEffect(() => {
18506
18506
  !x || u && (m.current = !1, Be());
@@ -18515,7 +18515,7 @@ function SearchTree(e, t) {
18515
18515
  v(!1), ae == null || ae(!1);
18516
18516
  }
18517
18517
  }, He = async () => {
18518
- O(n);
18518
+ w(n);
18519
18519
  let de = r;
18520
18520
  r || (de = await ConnectionProvider.getHandler().getView({
18521
18521
  model: n,
@@ -18547,14 +18547,14 @@ function SearchTree(e, t) {
18547
18547
  id: xe
18548
18548
  } = de;
18549
18549
  te.current || (te.current = await ConnectionProvider.getHandler().treeButOpen({
18550
- id: w.view_id,
18550
+ id: O.view_id,
18551
18551
  model: C,
18552
18552
  context: f
18553
18553
  }));
18554
18554
  const Oe = te.current[0][2];
18555
18555
  await (he == null ? void 0 : he({
18556
18556
  actionData: Oe,
18557
- fields: w.fields,
18557
+ fields: O.fields,
18558
18558
  values: {
18559
18559
  active_id: xe,
18560
18560
  ...de
@@ -18565,7 +18565,7 @@ function SearchTree(e, t) {
18565
18565
  const {
18566
18566
  id: xe
18567
18567
  } = de;
18568
- if (w != null && w.isExpandable) {
18568
+ if (O != null && O.isExpandable) {
18569
18569
  try {
18570
18570
  await je(de);
18571
18571
  } catch (Oe) {
@@ -18577,7 +18577,7 @@ function SearchTree(e, t) {
18577
18577
  id: xe,
18578
18578
  model: C,
18579
18579
  formView: b,
18580
- treeView: w
18580
+ treeView: O
18581
18581
  });
18582
18582
  };
18583
18583
  function Ge(de) {
@@ -18585,9 +18585,9 @@ function SearchTree(e, t) {
18585
18585
  we == null || we(xe), h == null || h(de);
18586
18586
  }
18587
18587
  function Ye() {
18588
- return w != null && w.isExpandable ? ee - 160 : ee - (_ + 210);
18588
+ return O != null && O.isExpandable ? ee - 160 : ee - (_ + 210);
18589
18589
  }
18590
- const Ke = () => !w || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
18590
+ const Ke = () => !O || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
18591
18591
  children: [/* @__PURE__ */ jsx(Measure, {
18592
18592
  bounds: !0,
18593
18593
  onResize: (de) => {
@@ -18604,10 +18604,10 @@ function SearchTree(e, t) {
18604
18604
  },
18605
18605
  children: [/* @__PURE__ */ jsx(SearchFilter, {
18606
18606
  fields: {
18607
- ...w.fields,
18607
+ ...O.fields,
18608
18608
  ...b.fields
18609
18609
  },
18610
- searchFields: mergeSearchFields([b.search_fields, w.search_fields]),
18610
+ searchFields: mergeSearchFields([b.search_fields, O.search_fields]),
18611
18611
  onClear: We,
18612
18612
  limit: P,
18613
18613
  offset: $,
@@ -18628,7 +18628,7 @@ function SearchTree(e, t) {
18628
18628
  total: U,
18629
18629
  limit: P,
18630
18630
  page: T,
18631
- treeView: w,
18631
+ treeView: O,
18632
18632
  results: Se(),
18633
18633
  onRequestPageChange: ue,
18634
18634
  loading: Z,
@@ -18646,14 +18646,14 @@ function SearchTree(e, t) {
18646
18646
  resultsToSort: Se(),
18647
18647
  sorter: de,
18648
18648
  fields: {
18649
- ...w.fields,
18649
+ ...O.fields,
18650
18650
  ...b.fields
18651
18651
  }
18652
18652
  }) : [...X.current];
18653
18653
  Ie(xe);
18654
18654
  },
18655
- onFetchChildrenForRecord: w.isExpandable ? Me : void 0,
18656
- childField: w.field_parent
18655
+ onFetchChildrenForRecord: O.isExpandable ? Me : void 0,
18656
+ childField: O.field_parent
18657
18657
  })]
18658
18658
  });
18659
18659
  return A ? /* @__PURE__ */ jsx(Alert, {
@@ -18799,7 +18799,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18799
18799
  context: c,
18800
18800
  id: l,
18801
18801
  domain: u
18802
- } = r, d = o && !s ? Config.requiredClass : void 0, [f, h] = useState(!1), [p, I] = useState(!1), [v, x] = useState(!1), [g, m] = useState(), y = useRef(!1), [C, O] = useState(""), w = useRef(), F = useContext(FormContext$1), {
18802
+ } = r, d = o && !s ? Config.requiredClass : void 0, [f, h] = useState(!1), [p, I] = useState(!1), [v, x] = useState(!1), [g, m] = useState(), y = useRef(!1), [C, w] = useState(""), O = useRef(), F = useContext(FormContext$1), {
18803
18803
  domain: b,
18804
18804
  getValues: S,
18805
18805
  getFields: T,
@@ -18810,12 +18810,12 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18810
18810
  useEffect(() => {
18811
18811
  !Array.isArray(t) && !isNaN(t) && K(t);
18812
18812
  }, [t]), useEffect(() => {
18813
- U && L.length === 0 ? K(U) : U && L.length > 0 ? O(L) : !U && !L && O(w.current || "");
18813
+ U && L.length === 0 ? K(U) : U && L.length > 0 ? w(L) : !U && !L && w(O.current || "");
18814
18814
  }, [t]);
18815
18815
  const V = (A) => {
18816
18816
  n == null || n(A), B == null || B();
18817
18817
  }, G = (A) => {
18818
- w.current = A.target.value, V([void 0, ""]);
18818
+ O.current = A.target.value, V([void 0, ""]);
18819
18819
  }, Y = async () => {
18820
18820
  if (!v && C !== L) {
18821
18821
  if (await new Promise((A) => setTimeout(A, 100)), y.current) {
@@ -18825,17 +18825,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18825
18825
  x(!0);
18826
18826
  try {
18827
18827
  if (P.current && P.current.length > 0)
18828
- H(w.current);
18828
+ H(O.current);
18829
18829
  else {
18830
18830
  const A = await ConnectionProvider.getHandler().nameSearch({
18831
18831
  model: a,
18832
- payload: w.current,
18832
+ payload: O.current,
18833
18833
  context: {
18834
18834
  ...k == null ? void 0 : k(),
18835
18835
  ...c
18836
18836
  }
18837
18837
  });
18838
- A.length === 1 ? (w.current = void 0, V(A[0])) : H(w.current);
18838
+ A.length === 1 ? (O.current = void 0, V(A[0])) : H(O.current);
18839
18839
  }
18840
18840
  } catch (A) {
18841
18841
  showDialog$3(A);
@@ -18945,7 +18945,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18945
18945
  visible: f,
18946
18946
  nameSearch: U ? void 0 : g,
18947
18947
  onSelectValues: (A) => {
18948
- h(!1), K(A[0]), y.current = !1, w.current = void 0;
18948
+ h(!1), K(A[0]), y.current = !1, O.current = void 0;
18949
18949
  },
18950
18950
  onCloseModal: () => {
18951
18951
  h(!1), y.current = !1;
@@ -19400,11 +19400,11 @@ function requireTransButton() {
19400
19400
  display: "inline-block"
19401
19401
  }, l = /* @__PURE__ */ o.forwardRef(function(d, f) {
19402
19402
  var h = function(C) {
19403
- var O = C.keyCode;
19404
- O === a.default.ENTER && C.preventDefault();
19403
+ var w = C.keyCode;
19404
+ w === a.default.ENTER && C.preventDefault();
19405
19405
  }, p = function(C) {
19406
- var O = C.keyCode, w = d.onClick;
19407
- O === a.default.ENTER && w && w();
19406
+ var w = C.keyCode, O = d.onClick;
19407
+ w === a.default.ENTER && O && O();
19408
19408
  }, I = d.style, v = d.noStyle, x = d.disabled, g = s(d, ["style", "noStyle", "disabled"]), m = {};
19409
19409
  return v || (m = (0, r.default)({}, c)), x && (m.pointerEvents = "none"), m = (0, r.default)((0, r.default)({}, m), I), /* @__PURE__ */ o.createElement("div", (0, r.default)({
19410
19410
  role: "button",
@@ -20101,8 +20101,8 @@ function doAlign(e, t, n, r) {
20101
20101
  var C = flip(o, /[tb]/gi, {
20102
20102
  t: "b",
20103
20103
  b: "t"
20104
- }), O = flipOffset(a, 1), w = flipOffset(s, 1), F = getElFuturePos(p, t, C, O, w);
20105
- isCompleteFailY(F, p, h) || (d = 1, o = C, a = O, s = w);
20104
+ }), w = flipOffset(a, 1), O = flipOffset(s, 1), F = getElFuturePos(p, t, C, w, O);
20105
+ isCompleteFailY(F, p, h) || (d = 1, o = C, a = w, s = O);
20106
20106
  }
20107
20107
  d && (I = getElFuturePos(p, t, o, a, s), utils.mix(v, I));
20108
20108
  var b = isFailX(I, p, h), S = isFailY(I, p, h);
@@ -20212,7 +20212,7 @@ var Align = function e(t, n) {
20212
20212
  var r = t.children, o = t.disabled, a = t.target, s = t.align, c = t.onAlign, l = t.monitorWindowResize, u = t.monitorBufferTime, d = u === void 0 ? 0 : u, f = React__default.useRef({}), h = React__default.useRef(), p = React__default.Children.only(r), I = React__default.useRef({});
20213
20213
  I.current.disabled = o, I.current.target = a, I.current.onAlign = c;
20214
20214
  var v = useBuffer(function() {
20215
- var w = I.current, F = w.disabled, b = w.target, S = w.onAlign;
20215
+ var O = I.current, F = O.disabled, b = O.target, S = O.onAlign;
20216
20216
  if (!F && b) {
20217
20217
  var T = h.current, k, $ = getElement(b), B = getPoint(b);
20218
20218
  f.current.element = $, f.current.point = B;
@@ -20228,17 +20228,17 @@ var Align = function e(t, n) {
20228
20228
  }
20229
20229
  });
20230
20230
  React__default.useEffect(function() {
20231
- var w = getElement(a), F = getPoint(a);
20232
- h.current !== C.current.element && (C.current.cancel(), C.current.element = h.current, C.current.cancel = monitorResize(h.current, g)), (f.current.element !== w || !isSamePoint(f.current.point, F)) && (g(), y.current.element !== w && (y.current.cancel(), y.current.element = w, y.current.cancel = monitorResize(w, g)));
20231
+ var O = getElement(a), F = getPoint(a);
20232
+ h.current !== C.current.element && (C.current.cancel(), C.current.element = h.current, C.current.cancel = monitorResize(h.current, g)), (f.current.element !== O || !isSamePoint(f.current.point, F)) && (g(), y.current.element !== O && (y.current.cancel(), y.current.element = O, y.current.cancel = monitorResize(O, g)));
20233
20233
  }), React__default.useEffect(function() {
20234
20234
  o ? m() : g();
20235
20235
  }, [o]);
20236
- var O = React__default.useRef(null);
20236
+ var w = React__default.useRef(null);
20237
20237
  return React__default.useEffect(function() {
20238
- l ? O.current || (O.current = addEventListenerWrap(window, "resize", g)) : O.current && (O.current.remove(), O.current = null);
20238
+ l ? w.current || (w.current = addEventListenerWrap(window, "resize", g)) : w.current && (w.current.remove(), w.current = null);
20239
20239
  }, [l]), React__default.useEffect(function() {
20240
20240
  return function() {
20241
- y.current.cancel(), C.current.cancel(), O.current && O.current.remove(), m();
20241
+ y.current.cancel(), C.current.cancel(), w.current && w.current.remove(), m();
20242
20242
  };
20243
20243
  }, []), React__default.useImperativeHandle(n, function() {
20244
20244
  return {
@@ -20321,7 +20321,7 @@ const useVisibleStatus = function(e, t) {
20321
20321
  return [s, a];
20322
20322
  };
20323
20323
  var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20324
- var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, h = e.getRootDomNode, p = e.getClassNameFromAlign, I = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(), O = useState(), w = _slicedToArray(O, 2), F = w[0], b = w[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), k = T[0], $ = T[1];
20324
+ var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, h = e.getRootDomNode, p = e.getClassNameFromAlign, I = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(), w = useState(), O = _slicedToArray(w, 2), F = O[0], b = O[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), k = T[0], $ = T[1];
20325
20325
  function B() {
20326
20326
  l && $(h());
20327
20327
  }
@@ -20544,7 +20544,7 @@ function generateTrigger(e) {
20544
20544
  var u = [], d = s.props, f = d.popupPlacement, h = d.builtinPlacements, p = d.prefixCls, I = d.alignPoint, v = d.getPopupClassNameFromAlign;
20545
20545
  return f && h && u.push(getAlignPopupClassName(h, p, l, I)), v && u.push(v(l)), u.join(" ");
20546
20546
  }, s.getComponent = function() {
20547
- var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, I = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion, O = l.zIndex, w = l.popup, F = l.stretch, b = l.alignPoint, S = l.mobile, T = s.state, k = T.popupVisible, $ = T.point, B = s.getPopupAlign(), P = {};
20547
+ var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, I = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion, w = l.zIndex, O = l.popup, F = l.stretch, b = l.alignPoint, S = l.mobile, T = s.state, k = T.popupVisible, $ = T.point, B = s.getPopupAlign(), P = {};
20548
20548
  return s.isMouseEnterToShow() && (P.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (P.onMouseLeave = s.onPopupMouseLeave), P.onMouseDown = s.onPopupMouseDown, P.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
20549
20549
  prefixCls: u,
20550
20550
  destroyPopupOnHide: d,
@@ -20560,7 +20560,7 @@ function generateTrigger(e) {
20560
20560
  getRootDomNode: s.getRootDomNode,
20561
20561
  style: x,
20562
20562
  mask: g,
20563
- zIndex: O,
20563
+ zIndex: w,
20564
20564
  transitionName: v,
20565
20565
  maskAnimation: m,
20566
20566
  maskTransitionName: y,
@@ -20568,7 +20568,7 @@ function generateTrigger(e) {
20568
20568
  ref: s.popupRef,
20569
20569
  motion: p,
20570
20570
  mobile: S,
20571
- children: typeof w == "function" ? w() : w
20571
+ children: typeof O == "function" ? O() : O
20572
20572
  });
20573
20573
  }, s.attachParent = function(l) {
20574
20574
  wrapperRaf.cancel(s.attachId);
@@ -20878,7 +20878,7 @@ var autoAdjustOverflow = {
20878
20878
  children: typeof n == "function" ? n() : n
20879
20879
  });
20880
20880
  }, Tooltip = function e(t, n) {
20881
- var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, h = f === void 0 ? "rc-tooltip" : f, p = t.children, I = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align, O = C === void 0 ? {} : C, w = t.destroyTooltipOnHide, F = w === void 0 ? !1 : w, b = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
20881
+ var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, h = f === void 0 ? "rc-tooltip" : f, p = t.children, I = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align, w = C === void 0 ? {} : C, O = t.destroyTooltipOnHide, F = O === void 0 ? !1 : O, b = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
20882
20882
  useImperativeHandle(n, function() {
20883
20883
  return $.current;
20884
20884
  });
@@ -20914,7 +20914,7 @@ var autoAdjustOverflow = {
20914
20914
  builtinPlacements: placements$2,
20915
20915
  popupPlacement: y,
20916
20916
  ref: $,
20917
- popupAlign: O,
20917
+ popupAlign: w,
20918
20918
  getPopupContainer: S,
20919
20919
  onPopupVisibleChange: I,
20920
20920
  afterPopupVisibleChange: v,
@@ -21121,20 +21121,20 @@ function requireTooltip() {
21121
21121
  value: !0
21122
21122
  }), e.default = void 0;
21123
21123
  var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = n(require_extends()), s = t(React__default), c = n(require$$6), l = n(requireClassnames()), u = n(requirePlacements()), d = requireReactNode(), f = requireConfigProvider(), h = requireColors(), p = function(y, C) {
21124
- var O = {}, w = (0, a.default)({}, y);
21124
+ var w = {}, O = (0, a.default)({}, y);
21125
21125
  return C.forEach(function(F) {
21126
- y && F in y && (O[F] = y[F], delete w[F]);
21126
+ y && F in y && (w[F] = y[F], delete O[F]);
21127
21127
  }), {
21128
- picked: O,
21129
- omitted: w
21128
+ picked: w,
21129
+ omitted: O
21130
21130
  };
21131
21131
  }, I = new RegExp("^(".concat(h.PresetColorTypes.join("|"), ")(-inverse)?$"));
21132
21132
  function v(m, y) {
21133
21133
  var C = m.type;
21134
21134
  if ((C.__ANT_BUTTON === !0 || C.__ANT_SWITCH === !0 || C.__ANT_CHECKBOX === !0 || m.type === "button") && m.props.disabled) {
21135
- var O = p(m.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), w = O.picked, F = O.omitted, b = (0, a.default)((0, a.default)({
21135
+ var w = p(m.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), O = w.picked, F = w.omitted, b = (0, a.default)((0, a.default)({
21136
21136
  display: "inline-block"
21137
- }, w), {
21137
+ }, O), {
21138
21138
  cursor: "not-allowed",
21139
21139
  width: m.props.block ? "100%" : null
21140
21140
  }), S = (0, a.default)((0, a.default)({}, F), {
@@ -21151,7 +21151,7 @@ function requireTooltip() {
21151
21151
  return m;
21152
21152
  }
21153
21153
  var x = /* @__PURE__ */ s.forwardRef(function(m, y) {
21154
- var C, O = s.useContext(f.ConfigContext), w = O.getPopupContainer, F = O.getPrefixCls, b = O.direction, S = s.useState(!!m.visible || !!m.defaultVisible), T = (0, o.default)(S, 2), k = T[0], $ = T[1];
21154
+ var C, w = s.useContext(f.ConfigContext), O = w.getPopupContainer, F = w.getPrefixCls, b = w.direction, S = s.useState(!!m.visible || !!m.defaultVisible), T = (0, o.default)(S, 2), k = T[0], $ = T[1];
21155
21155
  s.useEffect(function() {
21156
21156
  "visible" in m && $(m.visible);
21157
21157
  }, [m.visible]);
@@ -21190,7 +21190,7 @@ function requireTooltip() {
21190
21190
  }), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({}, m, {
21191
21191
  prefixCls: M,
21192
21192
  overlayClassName: E,
21193
- getTooltipContainer: G || Y || w,
21193
+ getTooltipContainer: G || Y || O,
21194
21194
  ref: y,
21195
21195
  builtinPlacements: D(),
21196
21196
  overlay: U(),
@@ -21262,12 +21262,12 @@ function requireTypography() {
21262
21262
  x.indexOf(m[y]) < 0 && Object.prototype.propertyIsEnumerable.call(v, m[y]) && (g[m[y]] = v[m[y]]);
21263
21263
  return g;
21264
21264
  }, f = function(x, g) {
21265
- var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y, O = x.className, w = x["aria-label"], F = x.setContentRef, b = x.children, S = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
21265
+ var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y, w = x.className, O = x["aria-label"], F = x.setContentRef, b = x.children, S = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
21266
21266
  return F && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, c.composeRef)(g, F)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
21267
- var $ = k.getPrefixCls, B = k.direction, P = C, D = $("typography", m), j = (0, s.default)(D, (0, o.default)({}, "".concat(D, "-rtl"), B === "rtl"), O);
21267
+ var $ = k.getPrefixCls, B = k.direction, P = C, D = $("typography", m), j = (0, s.default)(D, (0, o.default)({}, "".concat(D, "-rtl"), B === "rtl"), w);
21268
21268
  return /* @__PURE__ */ a.createElement(P, (0, r.default)({
21269
21269
  className: j,
21270
- "aria-label": w,
21270
+ "aria-label": O,
21271
21271
  ref: T
21272
21272
  }, S), b);
21273
21273
  });
@@ -21326,10 +21326,10 @@ function requireEditable() {
21326
21326
  value: !0
21327
21327
  }), e.default = void 0;
21328
21328
  var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(TextArea$3), d = function(p) {
21329
- var I = p.prefixCls, v = p["aria-label"], x = p.className, g = p.style, m = p.direction, y = p.maxLength, C = p.autoSize, O = C === void 0 ? !0 : C, w = p.value, F = p.onSave, b = p.onCancel, S = a.useRef(), T = a.useRef(!1), k = a.useRef(), $ = a.useState(w), B = (0, o.default)($, 2), P = B[0], D = B[1];
21329
+ var I = p.prefixCls, v = p["aria-label"], x = p.className, g = p.style, m = p.direction, y = p.maxLength, C = p.autoSize, w = C === void 0 ? !0 : C, O = p.value, F = p.onSave, b = p.onCancel, S = a.useRef(), T = a.useRef(!1), k = a.useRef(), $ = a.useState(O), B = (0, o.default)($, 2), P = B[0], D = B[1];
21330
21330
  a.useEffect(function() {
21331
- D(w);
21332
- }, [w]), a.useEffect(function() {
21331
+ D(O);
21332
+ }, [O]), a.useEffect(function() {
21333
21333
  if (S.current && S.current.resizableTextArea) {
21334
21334
  var N = S.current.resizableTextArea.textArea;
21335
21335
  N.focus();
@@ -21369,7 +21369,7 @@ function requireEditable() {
21369
21369
  onCompositionEnd: L,
21370
21370
  onBlur: H,
21371
21371
  "aria-label": v,
21372
- autoSize: O
21372
+ autoSize: w
21373
21373
  }), /* @__PURE__ */ a.createElement(l.default, {
21374
21374
  className: "".concat(I, "-edit-content-confirm")
21375
21375
  }));
@@ -21411,7 +21411,7 @@ function requireUtil() {
21411
21411
  }
21412
21412
  var I = function(x, g, m, y, C) {
21413
21413
  u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
21414
- var O = g.rows, w = g.suffix, F = w === void 0 ? "" : w, b = window.getComputedStyle(x), S = h(b), T = f(b.lineHeight), k = Math.round(T * (O + 1) + f(b.paddingTop) + f(b.paddingBottom));
21414
+ var w = g.rows, O = g.suffix, F = O === void 0 ? "" : O, b = window.getComputedStyle(x), S = h(b), T = f(b.lineHeight), k = Math.round(T * (w + 1) + f(b.paddingTop) + f(b.paddingBottom));
21415
21415
  u.setAttribute("style", S), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
21416
21416
  var $ = p((0, a.default)(m));
21417
21417
  (0, r.render)(/* @__PURE__ */ o.createElement("div", {
@@ -21500,7 +21500,7 @@ function requireBase() {
21500
21500
  Object.defineProperty(e, "__esModule", {
21501
21501
  value: !0
21502
21502
  }), e.default = void 0;
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) {
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(), w = n(requireLocaleReceiver()), O = 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) {
21504
21504
  var K = {};
21505
21505
  for (var N in Y)
21506
21506
  Object.prototype.hasOwnProperty.call(Y, N) && H.indexOf(N) < 0 && (K[N] = Y[N]);
@@ -21619,7 +21619,7 @@ function requireBase() {
21619
21619
  value: function() {
21620
21620
  var W = this.state, M = W.ellipsisText, A = W.isEllipsis, q = W.expanded, Z = this.getEllipsis(), Q = Z.rows, E = Z.suffix, _ = Z.onEllipsis, z = this.props.children;
21621
21621
  if (!(!Q || Q < 0 || !this.contentRef.current || q) && !this.canUseCSSEllipsis()) {
21622
- (0, w.default)((0, p.default)(z).every(function(se) {
21622
+ (0, O.default)((0, p.default)(z).every(function(se) {
21623
21623
  return typeof se == "string";
21624
21624
  }), "Typography", "`ellipsis` should use string as children only.");
21625
21625
  var X = (0, B.default)(this.contentRef.current, {
@@ -21721,7 +21721,7 @@ function requireBase() {
21721
21721
  }, /* @__PURE__ */ f.createElement("span", null, Ce)));
21722
21722
  } else
21723
21723
  Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, _, pe);
21724
- return Ce = U(this.props, Ce), /* @__PURE__ */ f.createElement(O.default, {
21724
+ return Ce = U(this.props, Ce), /* @__PURE__ */ f.createElement(w.default, {
21725
21725
  componentName: "Text"
21726
21726
  }, function(ae) {
21727
21727
  var ge, he = ae.edit, ue = ae.copy, Ie = ae.copied, Se = ae.expand;
@@ -21749,7 +21749,7 @@ function requireBase() {
21749
21749
  key: "getDerivedStateFromProps",
21750
21750
  value: function(W) {
21751
21751
  var M = W.children, A = W.editable;
21752
- return (0, w.default)(!A || typeof M == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
21752
+ return (0, O.default)(!A || typeof M == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
21753
21753
  }
21754
21754
  }]), K;
21755
21755
  }(f.Component);
@@ -21795,7 +21795,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21795
21795
  suffix: l,
21796
21796
  field: u,
21797
21797
  operator: d
21798
- } = e, [f, h] = useState(!1), [p, I] = useState(), [v, x] = useState(), [g, m] = useState(), [y, C] = useState(0), [O, w] = useState(0), [F, b] = useState(), [S, T] = useState(), [k, $] = useState();
21798
+ } = e, [f, h] = useState(!1), [p, I] = useState(), [v, x] = useState(), [g, m] = useState(), [y, C] = useState(0), [w, O] = useState(0), [F, b] = useState(), [S, T] = useState(), [k, $] = useState();
21799
21799
  useEffect(() => {
21800
21800
  P();
21801
21801
  }, [t, o]);
@@ -21882,7 +21882,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21882
21882
  bounds: !0,
21883
21883
  onResize: (D) => {
21884
21884
  var j, U;
21885
- C((j = D.bounds) == null ? void 0 : j.height), w((U = D.bounds) == null ? void 0 : U.width);
21885
+ C((j = D.bounds) == null ? void 0 : j.height), O((U = D.bounds) == null ? void 0 : U.width);
21886
21886
  },
21887
21887
  children: ({
21888
21888
  measureRef: D
@@ -21892,7 +21892,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21892
21892
  percent: v,
21893
21893
  measureRef: D,
21894
21894
  height: y,
21895
- width: O,
21895
+ width: w,
21896
21896
  color: F,
21897
21897
  icon: S,
21898
21898
  suffix: l
@@ -21901,7 +21901,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21901
21901
  total: g,
21902
21902
  measureRef: D,
21903
21903
  height: y,
21904
- width: O,
21904
+ width: w,
21905
21905
  color: F,
21906
21906
  icon: S,
21907
21907
  suffix: l
@@ -22388,10 +22388,10 @@ const Graph = (e) => {
22388
22388
  });
22389
22389
  }
22390
22390
  function y() {
22391
- let O = "_";
22392
- return c === 0 ? O = "_" : O = (l + 1).toString(), /* @__PURE__ */ jsxs("span", {
22391
+ let w = "_";
22392
+ return c === 0 ? w = "_" : w = (l + 1).toString(), /* @__PURE__ */ jsxs("span", {
22393
22393
  className: "pl-1 pr-1",
22394
- children: ["(", O, "/", c, ")"]
22394
+ children: ["(", w, "/", c, ")"]
22395
22395
  });
22396
22396
  }
22397
22397
  function C() {
@@ -22464,7 +22464,7 @@ const One2manyInput = (e) => {
22464
22464
  } = d || {}, {
22465
22465
  lang: v,
22466
22466
  t: x
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(), {
22467
+ } = useContext(LocaleContext), g = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, 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(), {
22468
22468
  readOnly: H,
22469
22469
  relation: K,
22470
22470
  context: N,
@@ -22487,7 +22487,7 @@ const One2manyInput = (e) => {
22487
22487
  await E(), l > q.length - 1 && l !== 0 && u(0);
22488
22488
  }, E = async () => {
22489
22489
  var oe;
22490
- O(!0), y(!1), F(void 0);
22490
+ w(!0), y(!1), F(void 0);
22491
22491
  try {
22492
22492
  const ae = await readObjectValues({
22493
22493
  treeFields: o.get("tree").fields,
@@ -22503,7 +22503,7 @@ const One2manyInput = (e) => {
22503
22503
  } catch (ae) {
22504
22504
  F(ae);
22505
22505
  } finally {
22506
- O(!1);
22506
+ w(!1);
22507
22507
  }
22508
22508
  };
22509
22509
  async function _() {
@@ -22599,7 +22599,7 @@ const One2manyInput = (e) => {
22599
22599
  k(!0);
22600
22600
  }) : k(!0);
22601
22601
  }, pe = async () => {
22602
- O(!0), y(!1), F(void 0);
22602
+ w(!0), y(!1), F(void 0);
22603
22603
  try {
22604
22604
  if (q[l].id > 0) {
22605
22605
  const oe = a.map((ae) => ae.id === q[l].id ? {
@@ -22612,10 +22612,10 @@ const One2manyInput = (e) => {
22612
22612
  } catch (oe) {
22613
22613
  F(oe);
22614
22614
  }
22615
- u(0), O(!1);
22615
+ u(0), w(!1);
22616
22616
  }, ve = async () => {
22617
22617
  const oe = q.filter((ae) => P.includes(ae.id));
22618
- O(!0), y(!1), F(void 0);
22618
+ w(!0), y(!1), F(void 0);
22619
22619
  try {
22620
22620
  const ae = oe.map((he) => he.id), ge = a.filter((he) => !(ae.includes(he.id) && he.id < 0)).map((he) => ae.includes(he.id) ? {
22621
22621
  ...he,
@@ -22625,7 +22625,7 @@ const One2manyInput = (e) => {
22625
22625
  } catch (ae) {
22626
22626
  F(ae);
22627
22627
  }
22628
- u(0), O(!1);
22628
+ u(0), w(!1);
22629
22629
  }, we = (oe, ae, ge) => {
22630
22630
  let he;
22631
22631
  if (oe)
@@ -22663,7 +22663,7 @@ const One2manyInput = (e) => {
22663
22663
  } = oe;
22664
22664
  B(a.find((ge) => ge.id === ae)), U(!1), S(!0);
22665
22665
  }, Fe = async (oe) => {
22666
- O(!0);
22666
+ w(!0);
22667
22667
  let ae = a;
22668
22668
  const ge = oe.filter((he) => !a.find((ue) => ue.id === he));
22669
22669
  try {
@@ -22696,7 +22696,7 @@ const One2manyInput = (e) => {
22696
22696
  } catch (he) {
22697
22697
  F(he);
22698
22698
  } finally {
22699
- O(!1);
22699
+ w(!1);
22700
22700
  }
22701
22701
  };
22702
22702
  function ye() {
@@ -22778,10 +22778,10 @@ const One2manyInput = (e) => {
22778
22778
  });
22779
22779
  }
22780
22780
  };
22781
- if (w)
22781
+ if (O)
22782
22782
  return /* @__PURE__ */ jsx(Alert, {
22783
22783
  className: "mt-10",
22784
- message: w,
22784
+ message: O,
22785
22785
  type: "error",
22786
22786
  banner: !0
22787
22787
  });
@@ -25818,8 +25818,8 @@ const DatePickerConfig = {
25818
25818
  r == null || r(m);
25819
25819
  };
25820
25820
  async function I() {
25821
- const m = await getMimeType(n), y = `data:${m == null ? void 0 : m.mime};base64,${n}`, C = document.createElement("a"), O = d(s);
25822
- C.href = y, C.download = O, C.click();
25821
+ const m = await getMimeType(n), y = `data:${m == null ? void 0 : m.mime};base64,${n}`, C = document.createElement("a"), w = d(s), O = d("name");
25822
+ C.href = y, C.download = w || O, C.click();
25823
25823
  }
25824
25824
  async function v() {
25825
25825
  const m = await getMimeType(n);
@@ -26306,8 +26306,8 @@ function FormActionBar() {
26306
26306
  toolbar: m,
26307
26307
  attachments: y,
26308
26308
  formRef: C,
26309
- setFormHasChanges: O,
26310
- searchTreeRef: w,
26309
+ setFormHasChanges: w,
26310
+ searchTreeRef: O,
26311
26311
  goToResourceId: F
26312
26312
  } = useContext(ActionViewContext), {
26313
26313
  t: b,
@@ -26446,7 +26446,7 @@ function FormActionBar() {
26446
26446
  currentView: t,
26447
26447
  availableViews: e.filter((N) => N.type === "tree" || N.type === "form"),
26448
26448
  onChangeView: (N) => {
26449
- O == null || O(!1), n == null || n(N);
26449
+ w == null || w(!1), n == null || n(N);
26450
26450
  },
26451
26451
  disabled: H,
26452
26452
  formHasChanges: o
@@ -26656,23 +26656,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26656
26656
  }
26657
26657
  function d(m, y) {
26658
26658
  (y == null || y > m.length) && (y = m.length);
26659
- for (var C = 0, O = new Array(y); C < y; C++)
26660
- O[C] = m[C];
26661
- return O;
26659
+ for (var C = 0, w = new Array(y); C < y; C++)
26660
+ w[C] = m[C];
26661
+ return w;
26662
26662
  }
26663
26663
  function f(m, y) {
26664
26664
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(m)))) {
26665
- var C = [], O = !0, w = !1, F = void 0;
26665
+ var C = [], w = !0, O = !1, F = void 0;
26666
26666
  try {
26667
- for (var b = m[Symbol.iterator](), S; !(O = (S = b.next()).done) && (C.push(S.value), !(y && C.length === y)); O = !0)
26667
+ for (var b = m[Symbol.iterator](), S; !(w = (S = b.next()).done) && (C.push(S.value), !(y && C.length === y)); w = !0)
26668
26668
  ;
26669
26669
  } catch (T) {
26670
- w = !0, F = T;
26670
+ O = !0, F = T;
26671
26671
  } finally {
26672
26672
  try {
26673
- !O && b.return != null && b.return();
26673
+ !w && b.return != null && b.return();
26674
26674
  } finally {
26675
- if (w)
26675
+ if (O)
26676
26676
  throw F;
26677
26677
  }
26678
26678
  }
@@ -26702,8 +26702,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26702
26702
  }
26703
26703
  function x(m, y) {
26704
26704
  for (var C = 0; C < y.length; C++) {
26705
- var O = y[C];
26706
- if (m === O || v(O) && O.test(m))
26705
+ var w = y[C];
26706
+ if (m === w || v(w) && w.test(m))
26707
26707
  return !0;
26708
26708
  }
26709
26709
  return !1;
@@ -26711,7 +26711,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26711
26711
  function g(m, y) {
26712
26712
  if ((0, n.default)(m), !m || /[\s<>]/.test(m) || m.indexOf("mailto:") === 0 || (y = (0, a.default)(y, p), y.validate_length && m.length >= 2083) || !y.allow_fragments && m.includes("#") || !y.allow_query_components && (m.includes("?") || m.includes("&")))
26713
26713
  return !1;
26714
- var C, O, w, F, b, S, T, k;
26714
+ var C, w, O, F, b, S, T, k;
26715
26715
  if (T = m.split("#"), m = T.shift(), T = m.split("?"), m = T.shift(), T = m.split("://"), T.length > 1) {
26716
26716
  if (C = T.shift().toLowerCase(), y.require_valid_protocol && y.protocols.indexOf(C) === -1)
26717
26717
  return !1;
@@ -26729,20 +26729,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26729
26729
  if (T = m.split("/"), m = T.shift(), m === "" && !y.require_host)
26730
26730
  return !0;
26731
26731
  if (T = m.split("@"), T.length > 1) {
26732
- if (y.disallow_auth || T[0] === "" || (O = T.shift(), O.indexOf(":") >= 0 && O.split(":").length > 2))
26732
+ if (y.disallow_auth || T[0] === "" || (w = T.shift(), w.indexOf(":") >= 0 && w.split(":").length > 2))
26733
26733
  return !1;
26734
- var $ = O.split(":"), B = c($, 2), P = B[0], D = B[1];
26734
+ var $ = w.split(":"), B = c($, 2), P = B[0], D = B[1];
26735
26735
  if (P === "" && D === "")
26736
26736
  return !1;
26737
26737
  }
26738
26738
  F = T.join("@"), S = null, k = null;
26739
26739
  var j = F.match(I);
26740
- if (j ? (w = "", k = j[1], S = j[2] || null) : (T = F.split(":"), w = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
26740
+ if (j ? (O = "", k = j[1], S = j[2] || null) : (T = F.split(":"), O = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
26741
26741
  if (b = parseInt(S, 10), !/^[0-9]+$/.test(S) || b <= 0 || b > 65535)
26742
26742
  return !1;
26743
26743
  } else if (y.require_port)
26744
26744
  return !1;
26745
- return y.host_whitelist ? x(w, y.host_whitelist) : !(!(0, o.default)(w) && !(0, r.default)(w, y) && (!k || !(0, o.default)(k, 6)) || (w = w || k, y.host_blacklist && x(w, y.host_blacklist)));
26745
+ return y.host_whitelist ? x(O, y.host_whitelist) : !(!(0, o.default)(O) && !(0, r.default)(O, y) && (!k || !(0, o.default)(k, 6)) || (O = O || k, y.host_blacklist && x(O, y.host_blacklist)));
26746
26746
  }
26747
26747
  e.exports = t.default, e.exports.default = t.default;
26748
26748
  })(isURL$1, isURL$1.exports);
@@ -26869,8 +26869,8 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
26869
26869
  if (C) {
26870
26870
  if (y === m)
26871
26871
  return !1;
26872
- var O = y.split('"').length === y.split('\\"').length;
26873
- if (!O)
26872
+ var w = y.split('"').length === y.split('\\"').length;
26873
+ if (!w)
26874
26874
  return !1;
26875
26875
  }
26876
26876
  return !0;
@@ -26879,18 +26879,18 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
26879
26879
  if ((0, n.default)(m), y = (0, r.default)(y, l), y.require_display_name || y.allow_display_name) {
26880
26880
  var C = m.match(u);
26881
26881
  if (C) {
26882
- var O = C[1];
26883
- if (m = m.replace(O, "").replace(/(^<|>$)/g, ""), O.endsWith(" ") && (O = O.substr(0, O.length - 1)), !x(O))
26882
+ var w = C[1];
26883
+ if (m = m.replace(w, "").replace(/(^<|>$)/g, ""), w.endsWith(" ") && (w = w.substr(0, w.length - 1)), !x(w))
26884
26884
  return !1;
26885
26885
  } else if (y.require_display_name)
26886
26886
  return !1;
26887
26887
  }
26888
26888
  if (!y.ignore_max_length && m.length > v)
26889
26889
  return !1;
26890
- var w = m.split("@"), F = w.pop(), b = F.toLowerCase();
26890
+ var O = m.split("@"), F = O.pop(), b = F.toLowerCase();
26891
26891
  if (y.host_blacklist.includes(b))
26892
26892
  return !1;
26893
- var S = w.join("@");
26893
+ var S = O.join("@");
26894
26894
  if (y.domain_specific_validation && (b === "gmail.com" || b === "googlemail.com")) {
26895
26895
  S = S.toLowerCase();
26896
26896
  var T = S.split("+")[0];
@@ -27149,16 +27149,16 @@ function TreeActionBar(e) {
27149
27149
  treeIsLoading: y
27150
27150
  } = useContext(ActionViewContext), {
27151
27151
  parentContext: C = {},
27152
- treeExpandable: O
27152
+ treeExpandable: w
27153
27153
  } = e, {
27154
- t: w,
27154
+ t: O,
27155
27155
  lang: F
27156
27156
  } = useContext(LocaleContext), b = useContext(ContentRootContext), {
27157
27157
  processAction: S
27158
27158
  } = b || {};
27159
27159
  function T() {
27160
27160
  showDialog$9({
27161
- confirmMessage: w("confirmRemove"),
27161
+ confirmMessage: O("confirmRemove"),
27162
27162
  lang: F,
27163
27163
  onOk: () => {
27164
27164
  k();
@@ -27217,7 +27217,7 @@ function TreeActionBar(e) {
27217
27217
  }
27218
27218
  return n ? /* @__PURE__ */ jsxs(Space, {
27219
27219
  wrap: !0,
27220
- children: [O ? null : /* @__PURE__ */ jsxs(Fragment, {
27220
+ children: [w ? null : /* @__PURE__ */ jsxs(Fragment, {
27221
27221
  children: [/* @__PURE__ */ jsx(SearchBar, {
27222
27222
  disabled: c || s || y,
27223
27223
  searchText: m,
@@ -27228,24 +27228,24 @@ function TreeActionBar(e) {
27228
27228
  disabled: y
27229
27229
  }), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
27230
27230
  icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
27231
- tooltip: w("duplicate"),
27231
+ tooltip: O("duplicate"),
27232
27232
  disabled: !o || (o == null ? void 0 : o.length) !== 1 || c || y,
27233
27233
  loading: c,
27234
27234
  onClick: $
27235
27235
  }), /* @__PURE__ */ jsx(ActionButton, {
27236
27236
  icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
27237
- tooltip: w("delete"),
27237
+ tooltip: O("delete"),
27238
27238
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
27239
27239
  loading: s,
27240
27240
  onClick: T
27241
27241
  }), separator$1()]
27242
- }), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
27242
+ }), !w && /* @__PURE__ */ jsx(ButtonWithBadge, {
27243
27243
  icon: /* @__PURE__ */ jsx(FilterOutlined, {
27244
27244
  style: {
27245
27245
  color: v ? "white" : void 0
27246
27246
  }
27247
27247
  }),
27248
- tooltip: w("advanced_search"),
27248
+ tooltip: O("advanced_search"),
27249
27249
  type: v ? "primary" : "default",
27250
27250
  onClick: () => {
27251
27251
  x == null || x(!v);
@@ -27254,22 +27254,22 @@ function TreeActionBar(e) {
27254
27254
  badgeNumber: I == null ? void 0 : I.length
27255
27255
  }), /* @__PURE__ */ jsx(ActionButton, {
27256
27256
  icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
27257
- tooltip: w("showLogs"),
27257
+ tooltip: O("showLogs"),
27258
27258
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
27259
27259
  loading: !1,
27260
27260
  onClick: () => {
27261
- showLogInfo(u, o[0].id, w);
27261
+ showLogInfo(u, o[0].id, O);
27262
27262
  }
27263
27263
  }), /* @__PURE__ */ jsx(ActionButton, {
27264
27264
  icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
27265
- tooltip: w("refresh"),
27265
+ tooltip: O("refresh"),
27266
27266
  disabled: c || s || y,
27267
27267
  loading: !1,
27268
27268
  onClick: () => {
27269
27269
  var P;
27270
27270
  (P = d == null ? void 0 : d.current) == null || P.refreshResults();
27271
27271
  }
27272
- }), !O && /* @__PURE__ */ jsxs(Fragment, {
27272
+ }), !w && /* @__PURE__ */ jsxs(Fragment, {
27273
27273
  children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
27274
27274
  currentView: n,
27275
27275
  availableViews: t.filter((P) => P.type === "tree" || P.type === "form"),
@@ -27279,7 +27279,7 @@ function TreeActionBar(e) {
27279
27279
  }), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
27280
27280
  icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
27281
27281
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
27282
- tooltip: w("actions"),
27282
+ tooltip: O("actions"),
27283
27283
  items: p == null ? void 0 : p.action,
27284
27284
  onItemClick: (P) => {
27285
27285
  !P || B(P);
@@ -27287,7 +27287,7 @@ function TreeActionBar(e) {
27287
27287
  }), /* @__PURE__ */ jsx(DropdownButton, {
27288
27288
  icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
27289
27289
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
27290
- tooltip: w("reports"),
27290
+ tooltip: O("reports"),
27291
27291
  items: p == null ? void 0 : p.print,
27292
27292
  onItemClick: (P) => {
27293
27293
  !P || B({
@@ -27453,7 +27453,7 @@ function ActionView(e, t) {
27453
27453
  action_type: I,
27454
27454
  treeExpandable: v = !1,
27455
27455
  limit: x
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(), {
27456
+ } = e, [g, m] = useState(), [y, C] = useState([]), [w, O] = 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(), {
27457
27457
  t: X
27458
27458
  } = useContext(LocaleContext), te = useRef(), ee = useRef(), re = useRef(), se = useContext(TabManagerContext), {
27459
27459
  openShortcut: ie,
@@ -27511,7 +27511,7 @@ function ActionView(e, t) {
27511
27511
  id: Se,
27512
27512
  context: o
27513
27513
  });
27514
- Re === "tree" ? w({
27514
+ Re === "tree" ? O({
27515
27515
  ..._e,
27516
27516
  isExpandable: v
27517
27517
  }) : Re === "form" && (b(_e), K(_e == null ? void 0 : _e.toolbar)), ue.push({
@@ -27601,7 +27601,7 @@ function ActionView(e, t) {
27601
27601
  parentContext: o,
27602
27602
  nameSearch: _,
27603
27603
  formView: F,
27604
- treeView: O,
27604
+ treeView: w,
27605
27605
  domain: n,
27606
27606
  onRowClicked: (ue) => {
27607
27607
  const {
@@ -27638,7 +27638,7 @@ function ActionView(e, t) {
27638
27638
  children: [/* @__PURE__ */ jsx(TitleHeader, {
27639
27639
  children: g.type === "form" ? /* @__PURE__ */ jsx(FormActionBar, {}) : /* @__PURE__ */ jsx(TreeActionBar, {
27640
27640
  parentContext: o,
27641
- treeExpandable: (O == null ? void 0 : O.isExpandable) || !1
27641
+ treeExpandable: (w == null ? void 0 : w.isExpandable) || !1
27642
27642
  })
27643
27643
  }), ae(), /* @__PURE__ */ jsx(GoToResourceModal, {
27644
27644
  visible: q,
@@ -27738,13 +27738,13 @@ async function fetchAction({
27738
27738
  if (y)
27739
27739
  I.push(m);
27740
27740
  else {
27741
- const { view_id: O } = await ConnectionProvider.getHandler().getView({
27741
+ const { view_id: w } = await ConnectionProvider.getHandler().getView({
27742
27742
  model: l,
27743
27743
  type: C,
27744
27744
  id: y,
27745
27745
  context: { ...t, ...s }
27746
27746
  });
27747
- I.push([O, C]);
27747
+ I.push([w, C]);
27748
27748
  }
27749
27749
  }
27750
27750
  const [v, x] = I[0], g = { id: v, type: x };
@@ -27868,8 +27868,8 @@ function DashboardTree(e) {
27868
27868
  domain: a = [],
27869
27869
  visible: s = !0,
27870
27870
  parentContext: c = {}
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);
27871
+ } = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [I, v] = useState(), [x, g] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = 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), w((z - 1) * O.current);
27873
27873
  }, N = (z) => {
27874
27874
  const X = {};
27875
27875
  return z.forEach((te) => {
@@ -27889,7 +27889,7 @@ function DashboardTree(e) {
27889
27889
  attrsEvaluated: se
27890
27890
  } = await ConnectionProvider.getHandler().searchForTree({
27891
27891
  params: X,
27892
- limit: w.current,
27892
+ limit: O.current,
27893
27893
  offset: C,
27894
27894
  model: h,
27895
27895
  fields: I.fields,
@@ -27934,7 +27934,7 @@ function DashboardTree(e) {
27934
27934
  action: t,
27935
27935
  context: c
27936
27936
  });
27937
- H.current = z.domain, g(z.views.get("form")), v(z.views.get("tree")), p(z.model), w.current = z.limit;
27937
+ H.current = z.domain, g(z.views.get("form")), v(z.views.get("tree")), p(z.model), O.current = z.limit;
27938
27938
  }, Q = async () => {
27939
27939
  p(n);
27940
27940
  const z = await ConnectionProvider.getHandler().getView({
@@ -27975,7 +27975,7 @@ function DashboardTree(e) {
27975
27975
  }), /* @__PURE__ */ jsx(Tree, {
27976
27976
  showPagination: !1,
27977
27977
  total: b,
27978
- limit: w.current,
27978
+ limit: O.current,
27979
27979
  page: m,
27980
27980
  treeView: I,
27981
27981
  results: T,
@@ -28065,7 +28065,7 @@ function Dashboard(e, t) {
28065
28065
  items: k,
28066
28066
  model: T,
28067
28067
  context: r
28068
- }), B = await O($);
28068
+ }), B = await w($);
28069
28069
  c(B), u(!1), h(!1);
28070
28070
  } catch (b) {
28071
28071
  f(JSON.stringify(b));
@@ -28103,7 +28103,7 @@ function Dashboard(e, t) {
28103
28103
  context: r
28104
28104
  }))[0];
28105
28105
  }
28106
- async function O(b) {
28106
+ async function w(b) {
28107
28107
  const S = [];
28108
28108
  for (const T of b) {
28109
28109
  const {
@@ -28122,7 +28122,7 @@ function Dashboard(e, t) {
28122
28122
  }
28123
28123
  return S;
28124
28124
  }
28125
- async function w(b) {
28125
+ async function O(b) {
28126
28126
  if (!I)
28127
28127
  return;
28128
28128
  const S = b.filter((B) => {
@@ -28176,7 +28176,7 @@ function Dashboard(e, t) {
28176
28176
  type: "error",
28177
28177
  banner: !0
28178
28178
  }) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
28179
- onPositionItemsChanged: w,
28179
+ onPositionItemsChanged: O,
28180
28180
  children: s.map((b, S) => {
28181
28181
  const {
28182
28182
  actionData: T,
@@ -28367,9 +28367,9 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28367
28367
  banner: !0
28368
28368
  });
28369
28369
  }
28370
- const O = () => {
28370
+ const w = () => {
28371
28371
  F(s.map((b) => b.value));
28372
- }, w = () => {
28372
+ }, O = () => {
28373
28373
  F([]);
28374
28374
  }, F = (b) => {
28375
28375
  const S = o.map((k) => b.includes(k.id) ? k.operation == "pendingRemove" ? {
@@ -28407,11 +28407,11 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28407
28407
  })
28408
28408
  }), !I && /* @__PURE__ */ jsxs(Space, {
28409
28409
  children: [/* @__PURE__ */ jsx(Button$1, {
28410
- onClick: O,
28410
+ onClick: w,
28411
28411
  disabled: a.length == s.length,
28412
28412
  children: "Check all"
28413
28413
  }), /* @__PURE__ */ jsx(Button$1, {
28414
- onClick: w,
28414
+ onClick: O,
28415
28415
  disabled: a.length === 0,
28416
28416
  children: "Uncheck all"
28417
28417
  })]
@@ -28572,21 +28572,21 @@ function RootView(e, t) {
28572
28572
  }));
28573
28573
  function h(C) {
28574
28574
  if (C === s) {
28575
- const O = l.findIndex((w) => w.key === C);
28576
- l[O - 1] && c(l[O - 1].key), l[O + 1] && c(l[O + 1].key);
28575
+ const w = l.findIndex((O) => O.key === C);
28576
+ l[w - 1] && c(l[w - 1].key), l[w + 1] && c(l[w + 1].key);
28577
28577
  }
28578
- u(l.filter((O) => O.key !== C)), d.current.delete(C);
28578
+ u(l.filter((w) => w.key !== C)), d.current.delete(C);
28579
28579
  }
28580
28580
  function p({
28581
28581
  tabKey: C,
28582
- canWeClose: O
28582
+ canWeClose: w
28583
28583
  }) {
28584
- d.current.set(C, O);
28584
+ d.current.set(C, w);
28585
28585
  }
28586
28586
  async function I({
28587
28587
  action: C,
28588
- values: O,
28589
- forced_values: w,
28588
+ values: w,
28589
+ forced_values: O,
28590
28590
  initialViewType: F,
28591
28591
  res_id: b,
28592
28592
  domain: S = []
@@ -28666,8 +28666,8 @@ function RootView(e, t) {
28666
28666
  initialView: N,
28667
28667
  action_type: k,
28668
28668
  action_id: B,
28669
- values: O,
28670
- forced_values: w,
28669
+ values: w,
28670
+ forced_values: O,
28671
28671
  res_id: b,
28672
28672
  treeExpandable: H,
28673
28673
  limit: Y
@@ -28675,23 +28675,23 @@ function RootView(e, t) {
28675
28675
  }
28676
28676
  function v({
28677
28677
  title: C,
28678
- content: O,
28679
- key: w,
28678
+ content: w,
28679
+ key: O,
28680
28680
  action: F
28681
28681
  }) {
28682
28682
  let b = [...l];
28683
28683
  l.length === 1 && l[0].key === "welcome" && (b = [...l.filter((S) => S.key !== "welcome")]), u([...b, {
28684
28684
  title: C,
28685
- key: w,
28685
+ key: O,
28686
28686
  closable: !0,
28687
- content: O,
28687
+ content: w,
28688
28688
  action: F
28689
- }]), c(w);
28689
+ }]), c(O);
28690
28690
  }
28691
28691
  async function x({
28692
28692
  relateData: C,
28693
- fields: O,
28694
- values: w,
28693
+ fields: w,
28694
+ values: O,
28695
28695
  action_id: F,
28696
28696
  action_type: b
28697
28697
  }) {
@@ -28709,14 +28709,14 @@ function RootView(e, t) {
28709
28709
  }, V = parseContext({
28710
28710
  context: T,
28711
28711
  values: {
28712
- ...w,
28712
+ ...O,
28713
28713
  ...r
28714
28714
  },
28715
- fields: O
28715
+ fields: w
28716
28716
  }), G = k ? await ConnectionProvider.getHandler().evalDomain({
28717
28717
  domain: k,
28718
28718
  values: {
28719
- ...w,
28719
+ ...O,
28720
28720
  ...r
28721
28721
  },
28722
28722
  context: {
@@ -28742,11 +28742,11 @@ function RootView(e, t) {
28742
28742
  }
28743
28743
  async function g(C) {
28744
28744
  const {
28745
- action_id: O,
28746
- action_type: w,
28745
+ action_id: w,
28746
+ action_type: O,
28747
28747
  res_id: F,
28748
28748
  view_id: b
28749
- } = C, S = `${w},${O}`, T = await ConnectionProvider.getHandler().getActionData({
28749
+ } = C, S = `${O},${w}`, T = await ConnectionProvider.getHandler().getActionData({
28750
28750
  action: S,
28751
28751
  context: o
28752
28752
  }), k = parseContext({
@@ -28810,8 +28810,8 @@ function RootView(e, t) {
28810
28810
  title: D,
28811
28811
  target: j,
28812
28812
  initialView: K,
28813
- action_id: O,
28814
- action_type: w,
28813
+ action_id: w,
28814
+ action_type: O,
28815
28815
  res_id: F,
28816
28816
  treeExpandable: V,
28817
28817
  limit: L
@@ -28819,8 +28819,8 @@ function RootView(e, t) {
28819
28819
  }
28820
28820
  async function m({
28821
28821
  model: C,
28822
- values: O,
28823
- forced_values: w,
28822
+ values: w,
28823
+ forced_values: O,
28824
28824
  initialViewType: F,
28825
28825
  res_id: b,
28826
28826
  domain: S
@@ -28828,8 +28828,8 @@ function RootView(e, t) {
28828
28828
  const T = await ConnectionProvider.getHandler().getActionStringForModel(C);
28829
28829
  await I({
28830
28830
  action: T,
28831
- values: O,
28832
- forced_values: w,
28831
+ values: w,
28832
+ forced_values: O,
28833
28833
  initialViewType: F,
28834
28834
  res_id: b,
28835
28835
  domain: S
@@ -28837,8 +28837,8 @@ function RootView(e, t) {
28837
28837
  }
28838
28838
  async function y({
28839
28839
  domain: C,
28840
- context: O,
28841
- model: w,
28840
+ context: w,
28841
+ model: O,
28842
28842
  views: F,
28843
28843
  title: b,
28844
28844
  target: S,
@@ -28854,21 +28854,21 @@ function RootView(e, t) {
28854
28854
  const L = v4();
28855
28855
  if (S !== "current") {
28856
28856
  const V = await ConnectionProvider.getHandler().getView({
28857
- model: w,
28857
+ model: O,
28858
28858
  type: "form",
28859
28859
  id: T.type === "form" ? T.id : void 0,
28860
28860
  context: {
28861
28861
  ...o,
28862
- ...O
28862
+ ...w
28863
28863
  }
28864
28864
  });
28865
28865
  f.current.openActionModal({
28866
28866
  domain: C,
28867
- model: w,
28867
+ model: O,
28868
28868
  formView: V,
28869
28869
  context: {
28870
28870
  ...o,
28871
- ...O
28871
+ ...w
28872
28872
  },
28873
28873
  actionData: {
28874
28874
  action_id: k,
@@ -28890,10 +28890,10 @@ function RootView(e, t) {
28890
28890
  tabKey: L,
28891
28891
  title: b,
28892
28892
  views: F,
28893
- model: w,
28893
+ model: O,
28894
28894
  context: {
28895
28895
  ...o,
28896
- ...O
28896
+ ...w
28897
28897
  },
28898
28898
  domain: C,
28899
28899
  setCanWeClose: p,
@@ -28917,8 +28917,8 @@ function RootView(e, t) {
28917
28917
  tabs: l,
28918
28918
  activeKey: s,
28919
28919
  onRemoveTab: async (C) => {
28920
- const O = d.current.get(C);
28921
- (await (O == null ? void 0 : O()) || s === "welcome") && h(C);
28920
+ const w = d.current.get(C);
28921
+ (await (w == null ? void 0 : w()) || s === "welcome") && h(C);
28922
28922
  },
28923
28923
  onChangeTab: (C) => {
28924
28924
  c(C);
@@ -29047,14 +29047,14 @@ const FavouriteButton = (e) => {
29047
29047
  tabs: m,
29048
29048
  activeKey: y,
29049
29049
  currentView: C,
29050
- currentId: O,
29051
- openDefaultActionForModel: w
29050
+ currentId: w,
29051
+ openDefaultActionForModel: O
29052
29052
  } = x || {};
29053
29053
  useEffect(() => {
29054
29054
  F();
29055
29055
  }, []), useEffect(() => {
29056
29056
  T();
29057
- }, [m, y, C, O]);
29057
+ }, [m, y, C, w]);
29058
29058
  async function F() {
29059
29059
  try {
29060
29060
  h(!0);
@@ -29088,7 +29088,7 @@ const FavouriteButton = (e) => {
29088
29088
  }
29089
29089
  const L = C.id;
29090
29090
  let V = !1;
29091
- C.type === "form" && (V = O || !1);
29091
+ C.type === "form" && (V = w || !1);
29092
29092
  const G = await n({
29093
29093
  action_id: j,
29094
29094
  action_type: U,
@@ -29098,7 +29098,7 @@ const FavouriteButton = (e) => {
29098
29098
  G !== !1 && I(G), s(G !== !1);
29099
29099
  }
29100
29100
  async function k() {
29101
- l(!1), w == null || w({
29101
+ l(!1), O == null || O({
29102
29102
  model: "ir.ui.view_sc"
29103
29103
  });
29104
29104
  }
@@ -29185,7 +29185,7 @@ const FavouriteButton = (e) => {
29185
29185
  s(!1);
29186
29186
  return;
29187
29187
  }
29188
- C.type === "form" && (V = O || !1), await r({
29188
+ C.type === "form" && (V = w || !1), await r({
29189
29189
  action_id: j,
29190
29190
  action_type: U,
29191
29191
  view_id: L,