@gisce/react-ooui 1.2.0-rc.39 → 1.2.0-rc.41

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.
@@ -1334,7 +1334,7 @@ function requireReactIs_development() {
1334
1334
  }
1335
1335
  }
1336
1336
  }
1337
- var E = d, O = f, z = c, P = u, M = r, L = p, W = o, B = v, N = g, J = a, U = l, H = s, K = h, re = !1;
1337
+ var E = d, O = f, G = c, P = u, M = r, L = p, W = o, B = v, N = g, J = a, U = l, H = s, K = h, re = !1;
1338
1338
  function ie(I) {
1339
1339
  return re || (re = !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.")), ne(I) || T(I) === d;
1340
1340
  }
@@ -1356,7 +1356,7 @@ function requireReactIs_development() {
1356
1356
  function me(I) {
1357
1357
  return T(I) === o;
1358
1358
  }
1359
- function G(I) {
1359
+ function z(I) {
1360
1360
  return T(I) === v;
1361
1361
  }
1362
1362
  function te(I) {
@@ -1374,7 +1374,7 @@ function requireReactIs_development() {
1374
1374
  function D(I) {
1375
1375
  return T(I) === h;
1376
1376
  }
1377
- reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment = W, reactIs_development.Lazy = B, reactIs_development.Memo = N, reactIs_development.Portal = J, reactIs_development.Profiler = U, reactIs_development.StrictMode = H, reactIs_development.Suspense = K, reactIs_development.isAsyncMode = ie, reactIs_development.isConcurrentMode = ne, reactIs_development.isContextConsumer = Q, reactIs_development.isContextProvider = ae, reactIs_development.isElement = oe, reactIs_development.isForwardRef = ce, reactIs_development.isFragment = me, reactIs_development.isLazy = G, reactIs_development.isMemo = te, reactIs_development.isPortal = he, reactIs_development.isProfiler = ge, reactIs_development.isStrictMode = Te, reactIs_development.isSuspense = D, reactIs_development.isValidElementType = w, reactIs_development.typeOf = T;
1377
+ reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = G, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment = W, reactIs_development.Lazy = B, reactIs_development.Memo = N, reactIs_development.Portal = J, reactIs_development.Profiler = U, reactIs_development.StrictMode = H, reactIs_development.Suspense = K, reactIs_development.isAsyncMode = ie, reactIs_development.isConcurrentMode = ne, reactIs_development.isContextConsumer = Q, reactIs_development.isContextProvider = ae, reactIs_development.isElement = oe, reactIs_development.isForwardRef = ce, reactIs_development.isFragment = me, reactIs_development.isLazy = z, reactIs_development.isMemo = te, reactIs_development.isPortal = he, reactIs_development.isProfiler = ge, reactIs_development.isStrictMode = Te, reactIs_development.isSuspense = D, reactIs_development.isValidElementType = w, reactIs_development.typeOf = T;
1378
1378
  }()), reactIs_development;
1379
1379
  }
1380
1380
  (function(e) {
@@ -1742,10 +1742,10 @@ function SingleObserver(e) {
1742
1742
  }, [p, o]), m = React$n.useRef(e);
1743
1743
  m.current = e;
1744
1744
  var g = React$n.useCallback(function(v) {
1745
- var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight, z = Math.floor(w), P = Math.floor(T);
1746
- if (d.current.width !== z || d.current.height !== P || d.current.offsetWidth !== E || d.current.offsetHeight !== O) {
1745
+ var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight, G = Math.floor(w), P = Math.floor(T);
1746
+ if (d.current.width !== G || d.current.height !== P || d.current.offsetWidth !== E || d.current.offsetHeight !== O) {
1747
1747
  var M = {
1748
- width: z,
1748
+ width: G,
1749
1749
  height: P,
1750
1750
  offsetWidth: E,
1751
1751
  offsetHeight: O
@@ -1877,11 +1877,11 @@ function useMergedState$2(e, r) {
1877
1877
  }, [s]);
1878
1878
  var g = React$n.useRef(), v = useEvent$2(function(S, y) {
1879
1879
  p(function(x) {
1880
- var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
1881
- if (z === T)
1880
+ var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2], G = typeof S == "function" ? S(T) : S;
1881
+ if (G === T)
1882
1882
  return x;
1883
1883
  var P = E === Source$1.INNER && g.current !== O ? O : T;
1884
- return [z, Source$1.INNER, P];
1884
+ return [G, Source$1.INNER, P];
1885
1885
  }, y);
1886
1886
  }), C = useEvent$2(l);
1887
1887
  return useLayoutEffect$2(function() {
@@ -1951,11 +1951,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
1951
1951
  });
1952
1952
  var T = React$n.useMemo(function() {
1953
1953
  return u && _typeof$2(u) === "object" ? [u.minRows, u.maxRows] : [];
1954
- }, [u]), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = !!u, M = function() {
1954
+ }, [u]), E = _slicedToArray(T, 2), O = E[0], G = E[1], P = !!u, M = function() {
1955
1955
  try {
1956
1956
  if (document.activeElement === w.current) {
1957
- var me = w.current, G = me.selectionStart, te = me.selectionEnd, he = me.scrollTop;
1958
- w.current.setSelectionRange(G, te), w.current.scrollTop = he;
1957
+ var me = w.current, z = me.selectionStart, te = me.selectionEnd, he = me.scrollTop;
1958
+ w.current.setSelectionRange(z, te), w.current.scrollTop = he;
1959
1959
  }
1960
1960
  } catch {
1961
1961
  }
@@ -1964,11 +1964,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
1964
1964
  };
1965
1965
  useLayoutEffect$2(function() {
1966
1966
  P && re();
1967
- }, [l, O, z, P]), useLayoutEffect$2(function() {
1967
+ }, [l, O, G, P]), useLayoutEffect$2(function() {
1968
1968
  if (B === RESIZE_START)
1969
1969
  N(RESIZE_MEASURING);
1970
1970
  else if (B === RESIZE_MEASURING) {
1971
- var ce = calculateAutoSizeStyle(w.current, !1, O, z);
1971
+ var ce = calculateAutoSizeStyle(w.current, !1, O, G);
1972
1972
  N(RESIZE_STABLE), K(ce);
1973
1973
  } else
1974
1974
  M();
@@ -2141,11 +2141,11 @@ function useMergedState(e, r) {
2141
2141
  }, [s]);
2142
2142
  var g = React$j.useRef(), v = (0, _useEvent.default)(function(S, y) {
2143
2143
  p(function(x) {
2144
- var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
2145
- if (z === T)
2144
+ var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2], G = typeof S == "function" ? S(T) : S;
2145
+ if (G === T)
2146
2146
  return x;
2147
2147
  var P = E === Source.INNER && g.current !== O ? O : T;
2148
- return [z, Source.INNER, P];
2148
+ return [G, Source.INNER, P];
2149
2149
  }, y);
2150
2150
  }), C = (0, _useEvent.default)(l);
2151
2151
  return (0, _useLayoutEffect.default)(function() {
@@ -2401,7 +2401,7 @@ function _regeneratorRuntime() {
2401
2401
  var H = U.arg;
2402
2402
  return H ? H.done ? (N[B.resultName] = H.value, N.next = B.nextLoc, N.method !== "return" && (N.method = "next", N.arg = void 0), N.delegate = null, h) : H : (N.method = "throw", N.arg = new TypeError("iterator result is not an object"), N.delegate = null, h);
2403
2403
  }
2404
- function z(B) {
2404
+ function G(B) {
2405
2405
  var N = {
2406
2406
  tryLoc: B[0]
2407
2407
  };
@@ -2414,7 +2414,7 @@ function _regeneratorRuntime() {
2414
2414
  function M(B) {
2415
2415
  this.tryEntries = [{
2416
2416
  tryLoc: "root"
2417
- }], B.forEach(z, this), this.reset(!0);
2417
+ }], B.forEach(G, this), this.reset(!0);
2418
2418
  }
2419
2419
  function L(B) {
2420
2420
  if (B) {
@@ -3168,17 +3168,17 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
3168
3168
  return asyncMap(m, d, function(C, S) {
3169
3169
  var y = C.rule, x = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
3170
3170
  x = x && (y.required || !y.required && C.value), y.field = C.field;
3171
- function w(O, z) {
3172
- return _extends({}, z, {
3171
+ function w(O, G) {
3172
+ return _extends({}, G, {
3173
3173
  fullField: y.fullField + "." + O,
3174
3174
  fullFields: y.fullFields ? [].concat(y.fullFields, [O]) : [O]
3175
3175
  });
3176
3176
  }
3177
3177
  function T(O) {
3178
3178
  O === void 0 && (O = []);
3179
- var z = Array.isArray(O) ? O : [O];
3180
- !d.suppressWarning && z.length && e.warning("async-validator:", z), z.length && y.message !== void 0 && (z = [].concat(y.message));
3181
- var P = z.map(complementError(y, c));
3179
+ var G = Array.isArray(O) ? O : [O];
3180
+ !d.suppressWarning && G.length && e.warning("async-validator:", G), G.length && y.message !== void 0 && (G = [].concat(y.message));
3181
+ var P = G.map(complementError(y, c));
3182
3182
  if (d.first && P.length)
3183
3183
  return v[y.field] = 1, S(P);
3184
3184
  if (!x)
@@ -3462,8 +3462,8 @@ function validateRules(e, r, a, o, s, l) {
3462
3462
  });
3463
3463
  return m && (g.validator = function(v, C, S) {
3464
3464
  var y = !1, x = function() {
3465
- for (var E = arguments.length, O = new Array(E), z = 0; z < E; z++)
3466
- O[z] = arguments[z];
3465
+ for (var E = arguments.length, O = new Array(E), G = 0; G < E; G++)
3466
+ O[G] = arguments[G];
3467
3467
  Promise.resolve().then(function() {
3468
3468
  warningOnce$1(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || S.apply(void 0, O);
3469
3469
  });
@@ -3644,8 +3644,8 @@ var Field = /* @__PURE__ */ function(e) {
3644
3644
  }
3645
3645
  case "dependenciesUpdate": {
3646
3646
  var O = v.map(getNamePath);
3647
- if (O.some(function(z) {
3648
- return containsNamePath(p.relatedFields, z);
3647
+ if (O.some(function(G) {
3648
+ return containsNamePath(p.relatedFields, G);
3649
3649
  })) {
3650
3650
  s.reRender();
3651
3651
  return;
@@ -3682,11 +3682,11 @@ var Field = /* @__PURE__ */ function(e) {
3682
3682
  if (s.validatePromise === h) {
3683
3683
  var E;
3684
3684
  s.validatePromise = null;
3685
- var O = [], z = [];
3685
+ var O = [], G = [];
3686
3686
  (E = T.forEach) === null || E === void 0 || E.call(T, function(P) {
3687
3687
  var M = P.rule.warningOnly, L = P.errors, W = L === void 0 ? EMPTY_ERRORS : L;
3688
- M ? z.push.apply(z, _toConsumableArray(W)) : O.push.apply(O, _toConsumableArray(W));
3689
- }), s.errors = O, s.warnings = z, s.triggerMetaEvent(), s.reRender();
3688
+ M ? G.push.apply(G, _toConsumableArray(W)) : O.push.apply(O, _toConsumableArray(W));
3689
+ }), s.errors = O, s.warnings = G, s.triggerMetaEvent(), s.reRender();
3690
3690
  }
3691
3691
  }), w;
3692
3692
  });
@@ -3739,14 +3739,14 @@ var Field = /* @__PURE__ */ function(e) {
3739
3739
  var f = s.props.fieldContext.getFieldsValue, p = s.getNamePath();
3740
3740
  return getValue$3(d || f(!0), p);
3741
3741
  }, s.getControlled = function() {
3742
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch, z = s.getValue(), P = C || function(B) {
3742
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch, G = s.getValue(), P = C || function(B) {
3743
3743
  return _defineProperty$1({}, v, B);
3744
- }, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(z));
3744
+ }, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(G));
3745
3745
  L[p] = function() {
3746
3746
  s.touched = !0, s.dirty = !0, s.triggerMetaEvent();
3747
3747
  for (var B, N = arguments.length, J = new Array(N), U = 0; U < N; U++)
3748
3748
  J[U] = arguments[U];
3749
- m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B, z, T(!0))), O({
3749
+ m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B, G, T(!0))), O({
3750
3750
  type: "updateValue",
3751
3751
  namePath: x,
3752
3752
  value: B
@@ -3875,7 +3875,7 @@ var ListContext = /* @__PURE__ */ React$n.createContext(null), List = function(r
3875
3875
  }
3876
3876
  }
3877
3877
  }, O = y || [];
3878
- return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(z, P) {
3878
+ return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(G, P) {
3879
3879
  var M = f.keys[P];
3880
3880
  return M === void 0 && (f.keys[P] = f.id, M = f.keys[P], f.id += 1), {
3881
3881
  name: P,
@@ -4498,7 +4498,7 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
4498
4498
  children: l
4499
4499
  });
4500
4500
  }, _excluded$4 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"], Form$2 = function(r, a) {
4501
- var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0], z = O.getInternalHooks(HOOK_MARK), P = z.useSubscribe, M = z.setInitialValues, L = z.setCallbacks, W = z.setValidateMessages, B = z.setPreserve, N = z.destroyForm;
4501
+ var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0], G = O.getInternalHooks(HOOK_MARK), P = G.useSubscribe, M = G.setInitialValues, L = G.setCallbacks, W = G.setValidateMessages, B = G.setPreserve, N = G.destroyForm;
4502
4502
  React$n.useImperativeHandle(a, function() {
4503
4503
  return O;
4504
4504
  }), React$n.useEffect(function() {
@@ -4577,8 +4577,8 @@ function useWatch() {
4577
4577
  return S.current = C, useEffect(
4578
4578
  function() {
4579
4579
  if (!!v) {
4580
- var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(z) {
4581
- var P = getValue$3(z, S.current), M = stringify$1(P);
4580
+ var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(G) {
4581
+ var P = getValue$3(G, S.current), M = stringify$1(P);
4582
4582
  h.current !== M && (h.current = M, f(P));
4583
4583
  }), O = getValue$3(y(), S.current);
4584
4584
  return f(O), E;
@@ -6258,8 +6258,8 @@ function requireAntdIcon() {
6258
6258
  var a = e(objectSpread2.exports), o = e(slicedToArray.exports), s = e(defineProperty.exports), l = e(requireObjectWithoutProperties()), u = r(React__default), c = e(classnames.exports), d = e(Context$1), f = e(requireIconBase()), p = requireTwoTonePrimaryColor(), h = requireUtils(), m = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6259
6259
  (0, p.setTwoToneColor)("#1890ff");
6260
6260
  var g = /* @__PURE__ */ u.forwardRef(function(C, S) {
6261
- var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, z = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default), W = L.prefixCls, B = W === void 0 ? "anticon" : W, N = (0, c.default)(B, (y = {}, (0, s.default)(y, "".concat(B, "-").concat(w.name), !!w.name), (0, s.default)(y, "".concat(B, "-spin"), !!T || w.name === "loading"), y), x), J = O;
6262
- J === void 0 && z && (J = -1);
6261
+ var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, G = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default), W = L.prefixCls, B = W === void 0 ? "anticon" : W, N = (0, c.default)(B, (y = {}, (0, s.default)(y, "".concat(B, "-").concat(w.name), !!w.name), (0, s.default)(y, "".concat(B, "-spin"), !!T || w.name === "loading"), y), x), J = O;
6262
+ J === void 0 && G && (J = -1);
6263
6263
  var U = E ? {
6264
6264
  msTransform: "rotate(".concat(E, "deg)"),
6265
6265
  transform: "rotate(".concat(E, "deg)")
@@ -6270,7 +6270,7 @@ function requireAntdIcon() {
6270
6270
  }, M), {}, {
6271
6271
  ref: S,
6272
6272
  tabIndex: J,
6273
- onClick: z,
6273
+ onClick: G,
6274
6274
  className: N
6275
6275
  }), /* @__PURE__ */ u.createElement(f.default, {
6276
6276
  icon: w,
@@ -6620,7 +6620,7 @@ const useStepQueue = function(e, r) {
6620
6620
  }, []), [l, s];
6621
6621
  };
6622
6622
  function useStatus(e, r, a, o) {
6623
- var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd, z = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2), W = L[0], B = L[1], N = useSafeState$1(STATUS_NONE), J = _slicedToArray(N, 2), U = J[0], H = J[1], K = useSafeState$1(null), re = _slicedToArray(K, 2), ie = re[0], ne = re[1], Q = useRef(!1), ae = useRef(null);
6623
+ var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd, G = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2), W = L[0], B = L[1], N = useSafeState$1(STATUS_NONE), J = _slicedToArray(N, 2), U = J[0], H = J[1], K = useSafeState$1(null), re = _slicedToArray(K, 2), ie = re[0], ne = re[1], Q = useRef(!1), ae = useRef(null);
6624
6624
  function oe() {
6625
6625
  return a();
6626
6626
  }
@@ -6628,19 +6628,19 @@ function useStatus(e, r, a, o) {
6628
6628
  function me(Pe) {
6629
6629
  var Fe = oe();
6630
6630
  if (!(Pe && !Pe.deadline && Pe.target !== Fe)) {
6631
- var Ze = ce.current, Xt;
6632
- U === STATUS_APPEAR && Ze ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && Ze ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && Ze && (Xt = z == null ? void 0 : z(Fe, Pe)), U !== STATUS_NONE && Ze && Xt !== !1 && (H(STATUS_NONE, !0), ne(null, !0));
6631
+ var et = ce.current, Xt;
6632
+ U === STATUS_APPEAR && et ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && et ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && et && (Xt = G == null ? void 0 : G(Fe, Pe)), U !== STATUS_NONE && et && Xt !== !1 && (H(STATUS_NONE, !0), ne(null, !0));
6633
6633
  }
6634
6634
  }
6635
- var G = useDomMotionEvents(me), te = _slicedToArray(G, 1), he = te[0], ge = React$n.useMemo(function() {
6636
- var Pe, Fe, Ze;
6635
+ var z = useDomMotionEvents(me), te = _slicedToArray(z, 1), he = te[0], ge = React$n.useMemo(function() {
6636
+ var Pe, Fe, et;
6637
6637
  switch (U) {
6638
6638
  case STATUS_APPEAR:
6639
6639
  return Pe = {}, _defineProperty$1(Pe, STEP_PREPARE, m), _defineProperty$1(Pe, STEP_START, C), _defineProperty$1(Pe, STEP_ACTIVE, x), Pe;
6640
6640
  case STATUS_ENTER:
6641
6641
  return Fe = {}, _defineProperty$1(Fe, STEP_PREPARE, g), _defineProperty$1(Fe, STEP_START, S), _defineProperty$1(Fe, STEP_ACTIVE, w), Fe;
6642
6642
  case STATUS_LEAVE:
6643
- return Ze = {}, _defineProperty$1(Ze, STEP_PREPARE, v), _defineProperty$1(Ze, STEP_START, y), _defineProperty$1(Ze, STEP_ACTIVE, T), Ze;
6643
+ return et = {}, _defineProperty$1(et, STEP_PREPARE, v), _defineProperty$1(et, STEP_START, y), _defineProperty$1(et, STEP_ACTIVE, T), et;
6644
6644
  default:
6645
6645
  return {};
6646
6646
  }
@@ -6650,8 +6650,8 @@ function useStatus(e, r, a, o) {
6650
6650
  return Fe ? Fe(oe()) : SkipStep;
6651
6651
  }
6652
6652
  if (pe in ge) {
6653
- var Ze;
6654
- ne(((Ze = ge[pe]) === null || Ze === void 0 ? void 0 : Ze.call(ge, oe(), null)) || null);
6653
+ var et;
6654
+ ne(((et = ge[pe]) === null || et === void 0 ? void 0 : et.call(ge, oe(), null)) || null);
6655
6655
  }
6656
6656
  return pe === STEP_ACTIVE && (he(oe()), p > 0 && (clearTimeout(ae.current), ae.current = setTimeout(function() {
6657
6657
  me({
@@ -6710,7 +6710,7 @@ function genCSSMotion(e) {
6710
6710
  return null;
6711
6711
  }
6712
6712
  }
6713
- var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1], z = T[2], P = T[3], M = React$n.useRef(P);
6713
+ var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1], G = T[2], P = T[3], M = React$n.useRef(P);
6714
6714
  P && (M.current = !0);
6715
6715
  var L = React$n.useCallback(function(K) {
6716
6716
  S.current = K, fillRef$1(l, K);
@@ -6731,7 +6731,7 @@ function genCSSMotion(e) {
6731
6731
  var N, J;
6732
6732
  O === STEP_PREPARE ? J = "prepare" : isActive(O) ? J = "active" : O === STEP_START && (J = "start"), W = h(_objectSpread2$g(_objectSpread2$g({}, B), {}, {
6733
6733
  className: classNames(getTransitionName$1(m, E), (N = {}, _defineProperty$1(N, getTransitionName$1(m, "".concat(E, "-").concat(J)), J), _defineProperty$1(N, m, typeof m == "string"), N)),
6734
- style: z
6734
+ style: G
6735
6735
  }), L);
6736
6736
  }
6737
6737
  if (/* @__PURE__ */ React$n.isValidElement(W) && supportRef$1(W)) {
@@ -6847,8 +6847,8 @@ function genCSSMotionList(e) {
6847
6847
  if (m == null || m(O, {
6848
6848
  key: w.key
6849
6849
  }), !O) {
6850
- var z = c.removeKey(w.key);
6851
- z === 0 && g && g();
6850
+ var G = c.removeKey(w.key);
6851
+ G === 0 && g && g();
6852
6852
  }
6853
6853
  }
6854
6854
  }, h);
@@ -7293,8 +7293,8 @@ function requireNotice() {
7293
7293
  w[T] = arguments[T];
7294
7294
  return y = C.call.apply(C, [this].concat(w)), y.closeTimer = null, y.close = function(E) {
7295
7295
  E && E.stopPropagation(), y.clearCloseTimer();
7296
- var O = y.props, z = O.onClose, P = O.noticeKey;
7297
- z && z(P);
7296
+ var O = y.props, G = O.onClose, P = O.noticeKey;
7297
+ G && G(P);
7298
7298
  }, y.startCloseTimer = function() {
7299
7299
  y.props.duration && (y.closeTimer = window.setTimeout(function() {
7300
7300
  y.close();
@@ -7326,7 +7326,7 @@ function requireNotice() {
7326
7326
  }, {
7327
7327
  key: "render",
7328
7328
  value: function() {
7329
- var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, z = w.closeIcon, P = w.style, M = w.onClick, L = w.children, W = w.holder, B = "".concat(T, "-notice"), N = Object.keys(this.props).reduce(function(U, H) {
7329
+ var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, G = w.closeIcon, P = w.style, M = w.onClick, L = w.children, W = w.holder, B = "".concat(T, "-notice"), N = Object.keys(this.props).reduce(function(U, H) {
7330
7330
  return (H.substr(0, 5) === "data-" || H.substr(0, 5) === "aria-" || H === "role") && (U[H] = x.props[H]), U;
7331
7331
  }, {}), J = /* @__PURE__ */ d.createElement("div", (0, a.default)({
7332
7332
  className: (0, p.default)(B, E, (0, o.default)({}, "".concat(B, "-closable"), O)),
@@ -7340,7 +7340,7 @@ function requireNotice() {
7340
7340
  tabIndex: 0,
7341
7341
  onClick: this.close,
7342
7342
  className: "".concat(B, "-close")
7343
- }, z || /* @__PURE__ */ d.createElement("span", {
7343
+ }, G || /* @__PURE__ */ d.createElement("span", {
7344
7344
  className: "".concat(B, "-close-x")
7345
7345
  })) : null);
7346
7346
  return W ? /* @__PURE__ */ f.default.createPortal(J, W) : J;
@@ -7446,10 +7446,10 @@ function requireUseMessage() {
7446
7446
  return N.then(U, H);
7447
7447
  }, J.promise = N, J;
7448
7448
  }
7449
- var z = u.useRef({});
7450
- return z.current.open = O, c.typeList.forEach(function(P) {
7451
- return (0, c.attachTypeApi)(z.current, P);
7452
- }), [z.current, /* @__PURE__ */ u.createElement(d.ConfigConsumer, {
7449
+ var G = u.useRef({});
7450
+ return G.current.open = O, c.typeList.forEach(function(P) {
7451
+ return (0, c.attachTypeApi)(G.current, P);
7452
+ }), [G.current, /* @__PURE__ */ u.createElement(d.ConfigConsumer, {
7453
7453
  key: "holder"
7454
7454
  }, function(P) {
7455
7455
  return v = P.getPrefixCls, C = P.getPopupContainer, E;
@@ -7466,15 +7466,15 @@ function requireMessage() {
7466
7466
  Object.defineProperty(e, "__esModule", {
7467
7467
  value: !0
7468
7468
  }), e.attachTypeApi = re, e.getInstance = e.default = void 0, e.getKeyThenIncreaseKey = M, e.typeList = void 0;
7469
- var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O, z, P = !1;
7469
+ var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O, G, P = !1;
7470
7470
  function M() {
7471
7471
  return x++;
7472
7472
  }
7473
7473
  function L(Q) {
7474
- Q.top !== void 0 && (y = Q.top, C = null), Q.duration !== void 0 && (S = Q.duration), Q.prefixCls !== void 0 && (w = Q.prefixCls), Q.getContainer !== void 0 && (O = Q.getContainer, C = null), Q.transitionName !== void 0 && (T = Q.transitionName, C = null, E = !0), Q.maxCount !== void 0 && (z = Q.maxCount, C = null), Q.rtl !== void 0 && (P = Q.rtl);
7474
+ Q.top !== void 0 && (y = Q.top, C = null), Q.duration !== void 0 && (S = Q.duration), Q.prefixCls !== void 0 && (w = Q.prefixCls), Q.getContainer !== void 0 && (O = Q.getContainer, C = null), Q.transitionName !== void 0 && (T = Q.transitionName, C = null, E = !0), Q.maxCount !== void 0 && (G = Q.maxCount, C = null), Q.rtl !== void 0 && (P = Q.rtl);
7475
7475
  }
7476
7476
  function W(Q, ae) {
7477
- var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(), G = me.getPrefixCls, te = me.getRootPrefixCls, he = me.getIconPrefixCls, ge = G("message", oe || w), Te = te(Q.rootPrefixCls, ge), D = he();
7477
+ var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(), z = me.getPrefixCls, te = me.getRootPrefixCls, he = me.getIconPrefixCls, ge = z("message", oe || w), Te = te(Q.rootPrefixCls, ge), D = he();
7478
7478
  if (C) {
7479
7479
  ae({
7480
7480
  prefixCls: ge,
@@ -7491,7 +7491,7 @@ function requireMessage() {
7491
7491
  top: y
7492
7492
  },
7493
7493
  getContainer: O || ce,
7494
- maxCount: z
7494
+ maxCount: G
7495
7495
  };
7496
7496
  h.default.newInstance(I, function(pe) {
7497
7497
  if (C) {
@@ -7520,7 +7520,7 @@ function requireMessage() {
7520
7520
  }, N = Object.keys(B);
7521
7521
  e.typeList = N;
7522
7522
  function J(Q, ae, oe) {
7523
- var ce, me = Q.duration !== void 0 ? Q.duration : S, G = B[Q.type], te = (0, p.default)("".concat(ae, "-custom-content"), (ce = {}, (0, s.default)(ce, "".concat(ae, "-").concat(Q.type), Q.type), (0, s.default)(ce, "".concat(ae, "-rtl"), P === !0), ce));
7523
+ var ce, me = Q.duration !== void 0 ? Q.duration : S, z = B[Q.type], te = (0, p.default)("".concat(ae, "-custom-content"), (ce = {}, (0, s.default)(ce, "".concat(ae, "-").concat(Q.type), Q.type), (0, s.default)(ce, "".concat(ae, "-rtl"), P === !0), ce));
7524
7524
  return {
7525
7525
  key: Q.key,
7526
7526
  duration: me,
@@ -7530,28 +7530,28 @@ function requireMessage() {
7530
7530
  iconPrefixCls: oe
7531
7531
  }, /* @__PURE__ */ m.createElement("div", {
7532
7532
  className: te
7533
- }, Q.icon || G && /* @__PURE__ */ m.createElement(G, null), /* @__PURE__ */ m.createElement("span", null, Q.content))),
7533
+ }, Q.icon || z && /* @__PURE__ */ m.createElement(z, null), /* @__PURE__ */ m.createElement("span", null, Q.content))),
7534
7534
  onClose: Q.onClose,
7535
7535
  onClick: Q.onClick
7536
7536
  };
7537
7537
  }
7538
7538
  function U(Q) {
7539
7539
  var ae = Q.key || M(), oe = new Promise(function(me) {
7540
- var G = function() {
7540
+ var z = function() {
7541
7541
  return typeof Q.onClose == "function" && Q.onClose(), me(!0);
7542
7542
  };
7543
7543
  W(Q, function(te) {
7544
7544
  var he = te.prefixCls, ge = te.iconPrefixCls, Te = te.instance;
7545
7545
  Te.notice(J((0, o.default)((0, o.default)({}, Q), {
7546
7546
  key: ae,
7547
- onClose: G
7547
+ onClose: z
7548
7548
  }), he, ge));
7549
7549
  });
7550
7550
  }), ce = function() {
7551
7551
  C && C.removeNotice(ae);
7552
7552
  };
7553
- return ce.then = function(me, G) {
7554
- return oe.then(me, G);
7553
+ return ce.then = function(me, z) {
7554
+ return oe.then(me, z);
7555
7555
  }, ce.promise = oe, ce;
7556
7556
  }
7557
7557
  function H(Q) {
@@ -7566,8 +7566,8 @@ function requireMessage() {
7566
7566
  var oe = C, ce = oe.removeNotice;
7567
7567
  ce(ae);
7568
7568
  } else {
7569
- var me = C, G = me.destroy;
7570
- G(), C = null;
7569
+ var me = C, z = me.destroy;
7570
+ z(), C = null;
7571
7571
  }
7572
7572
  }
7573
7573
  };
@@ -7660,19 +7660,19 @@ var notification = {}, regeneratorRuntime = { exports: {} };
7660
7660
  });
7661
7661
  });
7662
7662
  }
7663
- function z(U, H) {
7663
+ function G(U, H) {
7664
7664
  function K(ie, ne, Q, ae) {
7665
7665
  var oe = g(U[ie], U, ne);
7666
7666
  if (oe.type !== "throw") {
7667
7667
  var ce = oe.arg, me = ce.value;
7668
- return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(G) {
7669
- K("next", G, Q, ae);
7670
- }, function(G) {
7671
- K("throw", G, Q, ae);
7672
- }) : H.resolve(me).then(function(G) {
7673
- ce.value = G, Q(ce);
7674
- }, function(G) {
7675
- return K("throw", G, Q, ae);
7668
+ return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(z) {
7669
+ K("next", z, Q, ae);
7670
+ }, function(z) {
7671
+ K("throw", z, Q, ae);
7672
+ }) : H.resolve(me).then(function(z) {
7673
+ ce.value = z, Q(ce);
7674
+ }, function(z) {
7675
+ return K("throw", z, Q, ae);
7676
7676
  });
7677
7677
  }
7678
7678
  ae(oe.arg);
@@ -7804,11 +7804,11 @@ var notification = {}, regeneratorRuntime = { exports: {} };
7804
7804
  return {
7805
7805
  __await: U
7806
7806
  };
7807
- }, O(z.prototype), h(z.prototype, f, function() {
7807
+ }, O(G.prototype), h(G.prototype, f, function() {
7808
7808
  return this;
7809
- }), o.AsyncIterator = z, o.async = function(U, H, K, re, ie) {
7809
+ }), o.AsyncIterator = G, o.async = function(U, H, K, re, ie) {
7810
7810
  ie === void 0 && (ie = Promise);
7811
- var ne = new z(m(U, H, K, re), ie);
7811
+ var ne = new G(m(U, H, K, re), ie);
7812
7812
  return o.isGeneratorFunction(H) ? ne : ne.next().then(function(Q) {
7813
7813
  return Q.done ? Q.value : ne.next();
7814
7814
  });
@@ -8097,12 +8097,12 @@ function requireUseNotification() {
8097
8097
  function d(f, p) {
8098
8098
  var h = function() {
8099
8099
  var g, v = null, C = {
8100
- add: function(z, P) {
8101
- v == null || v.component.add(z, P);
8100
+ add: function(G, P) {
8101
+ v == null || v.component.add(G, P);
8102
8102
  }
8103
8103
  }, S = (0, l.default)(C), y = (0, s.default)(S, 2), x = y[0], w = y[1];
8104
8104
  function T(O) {
8105
- var z = O.prefixCls, P = g("notification", z);
8105
+ var G = O.prefixCls, P = g("notification", G);
8106
8106
  f((0, o.default)((0, o.default)({}, O), {
8107
8107
  prefixCls: P
8108
8108
  }), function(M) {
@@ -8112,8 +8112,8 @@ function requireUseNotification() {
8112
8112
  }
8113
8113
  var E = u.useRef({});
8114
8114
  return E.current.open = T, ["success", "info", "warning", "error"].forEach(function(O) {
8115
- E.current[O] = function(z) {
8116
- return E.current.open((0, o.default)((0, o.default)({}, z), {
8115
+ E.current[O] = function(G) {
8116
+ return E.current.open((0, o.default)((0, o.default)({}, G), {
8117
8117
  type: O
8118
8118
  }));
8119
8119
  };
@@ -8136,23 +8136,23 @@ function requireNotification() {
8136
8136
  }), e.getInstance = e.default = void 0;
8137
8137
  var o = a(regeneratorRuntime.exports), s = a(_extends$1.exports), l = a(defineProperty.exports), u = a(CheckCircleOutlined$3.exports), c = a(CloseCircleOutlined$3.exports), d = a(CloseOutlined$3.exports), f = a(ExclamationCircleOutlined$3.exports), p = a(InfoCircleOutlined$3.exports), h = a(classnames.exports), m = a(require$$11$1), g = r(React__default), v = r(requireConfigProvider()), C = a(requireUseNotification()), S = function(ne, Q, ae, oe) {
8138
8138
  function ce(me) {
8139
- return me instanceof ae ? me : new ae(function(G) {
8140
- G(me);
8139
+ return me instanceof ae ? me : new ae(function(z) {
8140
+ z(me);
8141
8141
  });
8142
8142
  }
8143
- return new (ae || (ae = Promise))(function(me, G) {
8143
+ return new (ae || (ae = Promise))(function(me, z) {
8144
8144
  function te(Te) {
8145
8145
  try {
8146
8146
  ge(oe.next(Te));
8147
8147
  } catch (D) {
8148
- G(D);
8148
+ z(D);
8149
8149
  }
8150
8150
  }
8151
8151
  function he(Te) {
8152
8152
  try {
8153
8153
  ge(oe.throw(Te));
8154
8154
  } catch (D) {
8155
- G(D);
8155
+ z(D);
8156
8156
  }
8157
8157
  }
8158
8158
  function ge(Te) {
@@ -8160,10 +8160,10 @@ function requireNotification() {
8160
8160
  }
8161
8161
  ge((oe = oe.apply(ne, Q || [])).next());
8162
8162
  });
8163
- }, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight", z, P, M = !1, L;
8163
+ }, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight", G, P, M = !1, L;
8164
8164
  function W(ne) {
8165
- var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer, G = ne.closeIcon, te = ne.prefixCls;
8166
- te !== void 0 && (E = te), Q !== void 0 && (x = Q), ae !== void 0 ? O = ae : ne.rtl && (O = "topLeft"), oe !== void 0 && (T = oe), ce !== void 0 && (w = ce), me !== void 0 && (z = me), G !== void 0 && (P = G), ne.rtl !== void 0 && (M = ne.rtl), ne.maxCount !== void 0 && (L = ne.maxCount);
8165
+ var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer, z = ne.closeIcon, te = ne.prefixCls;
8166
+ te !== void 0 && (E = te), Q !== void 0 && (x = Q), ae !== void 0 ? O = ae : ne.rtl && (O = "topLeft"), oe !== void 0 && (T = oe), ce !== void 0 && (w = ce), me !== void 0 && (G = me), z !== void 0 && (P = z), ne.rtl !== void 0 && (M = ne.rtl), ne.maxCount !== void 0 && (L = ne.maxCount);
8167
8167
  }
8168
8168
  function B(ne) {
8169
8169
  var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : w, ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : T, oe;
@@ -8218,7 +8218,7 @@ function requireNotification() {
8218
8218
  return oe;
8219
8219
  }
8220
8220
  function N(ne, Q) {
8221
- var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom, G = ne.getContainer, te = G === void 0 ? z : G, he = ne.prefixCls, ge = (0, v.globalConfig)(), Te = ge.getPrefixCls, D = ge.getIconPrefixCls, I = Te("notification", he || E), pe = D(), Re = "".concat(I, "-").concat(oe), Oe = y[Re];
8221
+ var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom, z = ne.getContainer, te = z === void 0 ? G : z, he = ne.prefixCls, ge = (0, v.globalConfig)(), Te = ge.getPrefixCls, D = ge.getIconPrefixCls, I = Te("notification", he || E), pe = D(), Re = "".concat(I, "-").concat(oe), Oe = y[Re];
8222
8222
  if (Oe) {
8223
8223
  Promise.resolve(Oe).then(function(Pe) {
8224
8224
  Q({
@@ -8253,17 +8253,17 @@ function requireNotification() {
8253
8253
  warning: f.default
8254
8254
  };
8255
8255
  function U(ne, Q, ae) {
8256
- var oe = ne.duration, ce = ne.icon, me = ne.type, G = ne.description, te = ne.message, he = ne.btn, ge = ne.onClose, Te = ne.onClick, D = ne.key, I = ne.style, pe = ne.className, Re = ne.closeIcon, Oe = Re === void 0 ? P : Re, ve = ne.props, Pe = oe === void 0 ? x : oe, Fe = null;
8256
+ var oe = ne.duration, ce = ne.icon, me = ne.type, z = ne.description, te = ne.message, he = ne.btn, ge = ne.onClose, Te = ne.onClick, D = ne.key, I = ne.style, pe = ne.className, Re = ne.closeIcon, Oe = Re === void 0 ? P : Re, ve = ne.props, Pe = oe === void 0 ? x : oe, Fe = null;
8257
8257
  ce ? Fe = /* @__PURE__ */ g.createElement("span", {
8258
8258
  className: "".concat(Q, "-icon")
8259
8259
  }, ne.icon) : me && (Fe = /* @__PURE__ */ g.createElement(J[me] || null, {
8260
8260
  className: "".concat(Q, "-icon ").concat(Q, "-icon-").concat(me)
8261
8261
  }));
8262
- var Ze = /* @__PURE__ */ g.createElement("span", {
8262
+ var et = /* @__PURE__ */ g.createElement("span", {
8263
8263
  className: "".concat(Q, "-close-x")
8264
8264
  }, Oe || /* @__PURE__ */ g.createElement(d.default, {
8265
8265
  className: "".concat(Q, "-close-icon")
8266
- })), Xt = !G && Fe ? /* @__PURE__ */ g.createElement("span", {
8266
+ })), Xt = !z && Fe ? /* @__PURE__ */ g.createElement("span", {
8267
8267
  className: "".concat(Q, "-message-single-line-auto-margin")
8268
8268
  }) : null;
8269
8269
  return {
@@ -8276,12 +8276,12 @@ function requireNotification() {
8276
8276
  className: "".concat(Q, "-message")
8277
8277
  }, Xt, te), /* @__PURE__ */ g.createElement("div", {
8278
8278
  className: "".concat(Q, "-description")
8279
- }, G), he ? /* @__PURE__ */ g.createElement("span", {
8279
+ }, z), he ? /* @__PURE__ */ g.createElement("span", {
8280
8280
  className: "".concat(Q, "-btn")
8281
8281
  }, he) : null)),
8282
8282
  duration: Pe,
8283
8283
  closable: !0,
8284
- closeIcon: Ze,
8284
+ closeIcon: et,
8285
8285
  onClose: ge,
8286
8286
  onClick: Te,
8287
8287
  key: D,
@@ -8480,7 +8480,7 @@ function requireConfigProvider() {
8480
8480
  var T = "anticon";
8481
8481
  e.defaultIconPrefixCls = T;
8482
8482
  var E, O;
8483
- function z() {
8483
+ function G() {
8484
8484
  return E || w;
8485
8485
  }
8486
8486
  function P() {
@@ -8488,24 +8488,24 @@ function requireConfigProvider() {
8488
8488
  }
8489
8489
  var M = function(U) {
8490
8490
  var H = U.prefixCls, K = U.iconPrefixCls, re = U.theme;
8491
- H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(z(), re);
8491
+ H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(G(), re);
8492
8492
  }, L = function() {
8493
8493
  return {
8494
8494
  getPrefixCls: function(H, K) {
8495
- return K || (H ? "".concat(z(), "-").concat(H) : z());
8495
+ return K || (H ? "".concat(G(), "-").concat(H) : G());
8496
8496
  },
8497
8497
  getIconPrefixCls: P,
8498
8498
  getRootPrefixCls: function(H, K) {
8499
- return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") : z());
8499
+ return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") : G());
8500
8500
  }
8501
8501
  };
8502
8502
  };
8503
8503
  e.globalConfig = L;
8504
8504
  var W = function(U) {
8505
- var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space, G = U.virtual, te = U.dropdownMatchSelectWidth, he = U.legacyLocale, ge = U.parentContext, Te = U.iconPrefixCls, D = U.componentDisabled, I = c.useCallback(function(Fe, Ze) {
8505
+ var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space, z = U.virtual, te = U.dropdownMatchSelectWidth, he = U.legacyLocale, ge = U.parentContext, Te = U.iconPrefixCls, D = U.componentDisabled, I = c.useCallback(function(Fe, et) {
8506
8506
  var Xt = U.prefixCls;
8507
- if (Ze)
8508
- return Ze;
8507
+ if (et)
8508
+ return et;
8509
8509
  var Zt = Xt || ge.getPrefixCls("");
8510
8510
  return Fe ? "".concat(Zt, "-").concat(Fe) : Zt;
8511
8511
  }, [ge.getPrefixCls, U.prefixCls]), pe = (0, o.default)((0, o.default)({}, ge), {
@@ -8514,20 +8514,20 @@ function requireConfigProvider() {
8514
8514
  locale: ae || he,
8515
8515
  direction: ce,
8516
8516
  space: me,
8517
- virtual: G,
8517
+ virtual: z,
8518
8518
  dropdownMatchSelectWidth: te,
8519
8519
  getPrefixCls: I
8520
8520
  });
8521
8521
  x.forEach(function(Fe) {
8522
- var Ze = U[Fe];
8523
- Ze && (pe[Fe] = Ze);
8522
+ var et = U[Fe];
8523
+ et && (pe[Fe] = et);
8524
8524
  });
8525
8525
  var Re = (0, u.default)(function() {
8526
8526
  return pe;
8527
- }, pe, function(Fe, Ze) {
8528
- var Xt = Object.keys(Fe), Zt = Object.keys(Ze);
8527
+ }, pe, function(Fe, et) {
8528
+ var Xt = Object.keys(Fe), Zt = Object.keys(et);
8529
8529
  return Xt.length !== Zt.length || Xt.some(function(er) {
8530
- return Fe[er] !== Ze[er];
8530
+ return Fe[er] !== et[er];
8531
8531
  });
8532
8532
  }), Oe = c.useMemo(function() {
8533
8533
  return {
@@ -8674,8 +8674,8 @@ function cloneElement(e, r) {
8674
8674
  }
8675
8675
  return (0, l.default)(E, [{
8676
8676
  key: "renderClearIcon",
8677
- value: function(z) {
8678
- var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(z, "-clear-icon");
8677
+ value: function(G) {
8678
+ var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(G, "-clear-icon");
8679
8679
  return /* @__PURE__ */ p.createElement(d.default, {
8680
8680
  onClick: N,
8681
8681
  onMouseDown: function(re) {
@@ -8687,13 +8687,13 @@ function cloneElement(e, r) {
8687
8687
  }
8688
8688
  }, {
8689
8689
  key: "renderTextAreaWithClearIcon",
8690
- value: function(z, P, M) {
8690
+ value: function(G, P, M) {
8691
8691
  var L, W = this.props, B = W.value, N = W.allowClear, J = W.className, U = W.style, H = W.direction, K = W.bordered, re = W.hidden, ie = W.status, ne = M.status, Q = M.hasFeedback;
8692
8692
  if (!N)
8693
8693
  return (0, m.cloneElement)(P, {
8694
8694
  value: B
8695
8695
  });
8696
- var ae = (0, f.default)("".concat(z, "-affix-wrapper"), "".concat(z, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(z, "-affix-wrapper"), (0, g.getMergedStatus)(ne, ie), Q), (L = {}, (0, o.default)(L, "".concat(z, "-affix-wrapper-rtl"), H === "rtl"), (0, o.default)(L, "".concat(z, "-affix-wrapper-borderless"), !K), (0, o.default)(L, "".concat(J), !S(this.props) && J), L));
8696
+ var ae = (0, f.default)("".concat(G, "-affix-wrapper"), "".concat(G, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(G, "-affix-wrapper"), (0, g.getMergedStatus)(ne, ie), Q), (L = {}, (0, o.default)(L, "".concat(G, "-affix-wrapper-rtl"), H === "rtl"), (0, o.default)(L, "".concat(G, "-affix-wrapper-borderless"), !K), (0, o.default)(L, "".concat(J), !S(this.props) && J), L));
8697
8697
  return /* @__PURE__ */ p.createElement("span", {
8698
8698
  className: ae,
8699
8699
  style: U,
@@ -8701,16 +8701,16 @@ function cloneElement(e, r) {
8701
8701
  }, (0, m.cloneElement)(P, {
8702
8702
  style: null,
8703
8703
  value: B
8704
- }), this.renderClearIcon(z));
8704
+ }), this.renderClearIcon(G));
8705
8705
  }
8706
8706
  }, {
8707
8707
  key: "render",
8708
8708
  value: function() {
8709
- var z = this;
8709
+ var G = this;
8710
8710
  return /* @__PURE__ */ p.createElement(h.FormItemInputContext.Consumer, null, function(P) {
8711
- var M = z.props, L = M.prefixCls, W = M.inputType, B = M.element;
8711
+ var M = G.props, L = M.prefixCls, W = M.inputType, B = M.element;
8712
8712
  if (W === C[0])
8713
- return z.renderTextAreaWithClearIcon(L, B, P);
8713
+ return G.renderTextAreaWithClearIcon(L, B, P);
8714
8714
  });
8715
8715
  }
8716
8716
  }]), E;
@@ -8779,7 +8779,7 @@ var BaseInput = function(r) {
8779
8779
  var a = r.inputElement, o = r.prefixCls, s = r.prefix, l = r.suffix, u = r.addonBefore, c = r.addonAfter, d = r.className, f = r.style, p = r.affixWrapperClassName, h = r.groupClassName, m = r.wrapperClassName, g = r.disabled, v = r.readOnly, C = r.focused, S = r.triggerFocus, y = r.allowClear, x = r.value, w = r.handleReset, T = r.hidden, E = useRef(null), O = function(re) {
8780
8780
  var ie;
8781
8781
  (ie = E.current) !== null && ie !== void 0 && ie.contains(re.target) && (S == null || S());
8782
- }, z = function() {
8782
+ }, G = function() {
8783
8783
  var re;
8784
8784
  if (!y)
8785
8785
  return null;
@@ -8801,7 +8801,7 @@ var BaseInput = function(r) {
8801
8801
  if (hasPrefixSuffix$1(r)) {
8802
8802
  var M, L = "".concat(o, "-affix-wrapper"), W = classNames(L, (M = {}, _defineProperty$1(M, "".concat(L, "-disabled"), g), _defineProperty$1(M, "".concat(L, "-focused"), C), _defineProperty$1(M, "".concat(L, "-readonly"), v), _defineProperty$1(M, "".concat(L, "-input-with-clear-btn"), l && y && x), M), !hasAddon(r) && d, p), B = (l || y) && /* @__PURE__ */ jsxs("span", {
8803
8803
  className: "".concat(o, "-suffix"),
8804
- children: [z(), l]
8804
+ children: [G(), l]
8805
8805
  });
8806
8806
  P = /* @__PURE__ */ jsxs("span", {
8807
8807
  className: W,
@@ -8851,7 +8851,7 @@ function omit(e, r) {
8851
8851
  var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"], Input = /* @__PURE__ */ forwardRef(function(e, r) {
8852
8852
  var a = e.autoComplete, o = e.onChange, s = e.onFocus, l = e.onBlur, u = e.onPressEnter, c = e.onKeyDown, d = e.prefixCls, f = d === void 0 ? "rc-input" : d, p = e.disabled, h = e.htmlSize, m = e.className, g = e.maxLength, v = e.suffix, C = e.showCount, S = e.type, y = S === void 0 ? "text" : S, x = e.inputClassName, w = _objectWithoutProperties(e, _excluded$1), T = useMergedState$2(e.defaultValue, {
8853
8853
  value: e.value
8854
- }), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0], W = M[1], B = useRef(null), N = function(ae) {
8854
+ }), E = _slicedToArray(T, 2), O = E[0], G = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0], W = M[1], B = useRef(null), N = function(ae) {
8855
8855
  B.current && triggerFocus(B.current, ae);
8856
8856
  };
8857
8857
  useImperativeHandle(r, function() {
@@ -8877,7 +8877,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
8877
8877
  });
8878
8878
  }, [p]);
8879
8879
  var J = function(ae) {
8880
- e.value === void 0 && z(ae.target.value), B.current && resolveOnChange(B.current, ae, o);
8880
+ e.value === void 0 && G(ae.target.value), B.current && resolveOnChange(B.current, ae, o);
8881
8881
  }, U = function(ae) {
8882
8882
  u && ae.key === "Enter" && u(ae), c == null || c(ae);
8883
8883
  }, H = function(ae) {
@@ -8885,7 +8885,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
8885
8885
  }, K = function(ae) {
8886
8886
  W(!1), l == null || l(ae);
8887
8887
  }, re = function(ae) {
8888
- z(""), N(), B.current && resolveOnChange(B.current, ae, o);
8888
+ G(""), N(), B.current && resolveOnChange(B.current, ae, o);
8889
8889
  }, ie = function() {
8890
8890
  var ae = omit(e, [
8891
8891
  "prefixCls",
@@ -9021,8 +9021,8 @@ function toArray$1(e) {
9021
9021
  var E;
9022
9022
  if (!w)
9023
9023
  return "";
9024
- var O = w.compactDirection, z = w.isFirstItem, P = w.isLastItem, M = O === "vertical" ? "-vertical-" : "-";
9025
- return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"), z), (0, s.default)(E, "".concat(y, "-compact").concat(M, "last-item"), P), (0, s.default)(E, "".concat(y, "-compact").concat(M, "item-rtl"), x === "rtl"), E));
9024
+ var O = w.compactDirection, G = w.isFirstItem, P = w.isLastItem, M = O === "vertical" ? "-vertical-" : "-";
9025
+ return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"), G), (0, s.default)(E, "".concat(y, "-compact").concat(M, "last-item"), P), (0, s.default)(E, "".concat(y, "-compact").concat(M, "item-rtl"), x === "rtl"), E));
9026
9026
  }, [y, x, w]);
9027
9027
  return {
9028
9028
  compactSize: w == null ? void 0 : w.compactSize,
@@ -9044,18 +9044,18 @@ function toArray$1(e) {
9044
9044
  value: w
9045
9045
  }, x);
9046
9046
  }, v = function(y) {
9047
- var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, z = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls, W = y.className, B = y.children, N = f(y, ["size", "direction", "block", "prefixCls", "className", "children"]), J = T("space-compact", L), U = (0, l.default)(J, (x = {}, (0, s.default)(x, "".concat(J, "-rtl"), E === "rtl"), (0, s.default)(x, "".concat(J, "-block"), M), (0, s.default)(x, "".concat(J, "-vertical"), P === "vertical"), x), W), H = c.useContext(p), K = (0, u.default)(B), re = c.useMemo(function() {
9047
+ var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, G = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls, W = y.className, B = y.children, N = f(y, ["size", "direction", "block", "prefixCls", "className", "children"]), J = T("space-compact", L), U = (0, l.default)(J, (x = {}, (0, s.default)(x, "".concat(J, "-rtl"), E === "rtl"), (0, s.default)(x, "".concat(J, "-block"), M), (0, s.default)(x, "".concat(J, "-vertical"), P === "vertical"), x), W), H = c.useContext(p), K = (0, u.default)(B), re = c.useMemo(function() {
9048
9048
  return K.map(function(ie, ne) {
9049
9049
  var Q = ie && ie.key || "".concat(J, "-item-").concat(ne);
9050
9050
  return /* @__PURE__ */ c.createElement(g, {
9051
9051
  key: Q,
9052
- compactSize: z,
9052
+ compactSize: G,
9053
9053
  compactDirection: P,
9054
9054
  isFirstItem: ne === 0 && (!H || (H == null ? void 0 : H.isFirstItem)),
9055
9055
  isLastItem: ne === K.length - 1 && (!H || (H == null ? void 0 : H.isLastItem))
9056
9056
  }, ie);
9057
9057
  });
9058
- }, [z, K, H]);
9058
+ }, [G, K, H]);
9059
9059
  return K.length === 0 ? null : /* @__PURE__ */ c.createElement("div", (0, o.default)({
9060
9060
  className: U
9061
9061
  }, N), re);
@@ -9096,7 +9096,7 @@ function hasPrefixSuffix(e) {
9096
9096
  var r = interopRequireWildcard.exports.default, a = interopRequireDefault.exports.default;
9097
9097
  Object.defineProperty(e, "__esModule", {
9098
9098
  value: !0
9099
- }), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus = z;
9099
+ }), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus = G;
9100
9100
  var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(CloseCircleFilled$3.exports), c = a(classnames.exports), d = a(require$$7), f = ref, p = r(React__default), h = requireConfigProvider(), m = a(DisabledContext), g = a(SizeContext), v = context, C = Compact, S = statusUtils, y = a(warning$4), x = a(useRemovePasswordTimeout), w = utils$1, T = function(L, W) {
9101
9101
  var B = {};
9102
9102
  for (var N in L)
@@ -9138,7 +9138,7 @@ function hasPrefixSuffix(e) {
9138
9138
  B(J);
9139
9139
  }
9140
9140
  }
9141
- function z(L, W) {
9141
+ function G(L, W) {
9142
9142
  if (!!L) {
9143
9143
  L.focus(W);
9144
9144
  var B = W || {}, N = B.cursor;
@@ -9159,11 +9159,11 @@ function hasPrefixSuffix(e) {
9159
9159
  }
9160
9160
  }
9161
9161
  var P = /* @__PURE__ */ (0, p.forwardRef)(function(L, W) {
9162
- var B, N, J, U = L.prefixCls, H = L.bordered, K = H === void 0 ? !0 : H, re = L.status, ie = L.size, ne = L.disabled, Q = L.onBlur, ae = L.onFocus, oe = L.suffix, ce = L.allowClear, me = L.addonAfter, G = L.addonBefore, te = L.className, he = L.onChange, ge = T(L, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), Te = p.default.useContext(h.ConfigContext), D = Te.getPrefixCls, I = Te.direction, pe = Te.input, Re = D("input", U), Oe = (0, p.useRef)(null), ve = (0, C.useCompactItemContext)(Re, I), Pe = ve.compactSize, Fe = ve.compactItemClassnames, Ze = p.default.useContext(g.default), Xt = Pe || ie || Ze, Zt = p.default.useContext(m.default), er = ne != null ? ne : Zt, qe = (0, p.useContext)(v.FormItemInputContext), Ht = qe.status, _t = qe.hasFeedback, qt = qe.feedbackIcon, kt = (0, S.getMergedStatus)(Ht, re), et = (0, w.hasPrefixSuffix)(L) || !!_t, Yt = (0, p.useRef)(et);
9162
+ var B, N, J, U = L.prefixCls, H = L.bordered, K = H === void 0 ? !0 : H, re = L.status, ie = L.size, ne = L.disabled, Q = L.onBlur, ae = L.onFocus, oe = L.suffix, ce = L.allowClear, me = L.addonAfter, z = L.addonBefore, te = L.className, he = L.onChange, ge = T(L, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), Te = p.default.useContext(h.ConfigContext), D = Te.getPrefixCls, I = Te.direction, pe = Te.input, Re = D("input", U), Oe = (0, p.useRef)(null), ve = (0, C.useCompactItemContext)(Re, I), Pe = ve.compactSize, Fe = ve.compactItemClassnames, et = p.default.useContext(g.default), Xt = Pe || ie || et, Zt = p.default.useContext(m.default), er = ne != null ? ne : Zt, qe = (0, p.useContext)(v.FormItemInputContext), Ht = qe.status, _t = qe.hasFeedback, qt = qe.feedbackIcon, kt = (0, S.getMergedStatus)(Ht, re), Ze = (0, w.hasPrefixSuffix)(L) || !!_t, Yt = (0, p.useRef)(Ze);
9163
9163
  (0, p.useEffect)(function() {
9164
9164
  var or;
9165
- et && !Yt.current && process.env.NODE_ENV !== "production" && (0, y.default)(document.activeElement === ((or = Oe.current) === null || or === void 0 ? void 0 : or.input), "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), Yt.current = et;
9166
- }, [et]);
9165
+ Ze && !Yt.current && process.env.NODE_ENV !== "production" && (0, y.default)(document.activeElement === ((or = Oe.current) === null || or === void 0 ? void 0 : or.input), "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), Yt.current = Ze;
9166
+ }, [Ze]);
9167
9167
  var tr = (0, x.default)(Oe, !0), it = function($r) {
9168
9168
  tr(), Q == null || Q($r);
9169
9169
  }, xt = function($r) {
@@ -9189,11 +9189,11 @@ function hasPrefixSuffix(e) {
9189
9189
  override: !0,
9190
9190
  status: !0
9191
9191
  }, me)),
9192
- addonBefore: G && /* @__PURE__ */ p.default.createElement(C.NoCompactStyle, null, /* @__PURE__ */ p.default.createElement(v.NoFormStyle, {
9192
+ addonBefore: z && /* @__PURE__ */ p.default.createElement(C.NoCompactStyle, null, /* @__PURE__ */ p.default.createElement(v.NoFormStyle, {
9193
9193
  override: !0,
9194
9194
  status: !0
9195
- }, G)),
9196
- inputClassName: (0, c.default)((B = {}, (0, o.default)(B, "".concat(Re, "-sm"), Xt === "small"), (0, o.default)(B, "".concat(Re, "-lg"), Xt === "large"), (0, o.default)(B, "".concat(Re, "-rtl"), I === "rtl"), (0, o.default)(B, "".concat(Re, "-borderless"), !K), B), !et && (0, S.getStatusClassNames)(Re, kt)),
9195
+ }, z)),
9196
+ inputClassName: (0, c.default)((B = {}, (0, o.default)(B, "".concat(Re, "-sm"), Xt === "small"), (0, o.default)(B, "".concat(Re, "-lg"), Xt === "large"), (0, o.default)(B, "".concat(Re, "-rtl"), I === "rtl"), (0, o.default)(B, "".concat(Re, "-borderless"), !K), B), !Ze && (0, S.getStatusClassNames)(Re, kt)),
9197
9197
  affixWrapperClassName: (0, c.default)((N = {}, (0, o.default)(N, "".concat(Re, "-affix-wrapper-sm"), Xt === "small"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-lg"), Xt === "large"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-rtl"), I === "rtl"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-borderless"), !K), N), (0, S.getStatusClassNames)("".concat(Re, "-affix-wrapper"), kt, _t)),
9198
9198
  wrapperClassName: (0, c.default)((0, o.default)({}, "".concat(Re, "-group-rtl"), I === "rtl")),
9199
9199
  groupClassName: (0, c.default)((J = {}, (0, o.default)(J, "".concat(Re, "-group-wrapper-sm"), Xt === "small"), (0, o.default)(J, "".concat(Re, "-group-wrapper-lg"), Xt === "large"), (0, o.default)(J, "".concat(Re, "-group-wrapper-rtl"), I === "rtl"), J), (0, S.getStatusClassNames)("".concat(Re, "-group-wrapper"), kt, _t))
@@ -9222,11 +9222,11 @@ function hasPrefixSuffix(e) {
9222
9222
  var N = W;
9223
9223
  return M ? N = E(W, B) : (0, c.default)(L || "").length < W.length && (0, c.default)(W || "").length > B && (N = L), N;
9224
9224
  }
9225
- var z = /* @__PURE__ */ m.forwardRef(function(M, L) {
9226
- var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, K = M.maxLength, re = M.className, ie = M.style, ne = M.size, Q = M.disabled, ae = M.onCompositionStart, oe = M.onCompositionEnd, ce = M.onChange, me = M.status, G = T(M, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), te = m.useContext(g.ConfigContext), he = te.getPrefixCls, ge = te.direction, Te = m.useContext(C.default), D = m.useContext(v.default), I = Q != null ? Q : D, pe = m.useContext(S.FormItemInputContext), Re = pe.status, Oe = pe.hasFeedback, ve = pe.isFormItemInput, Pe = pe.feedbackIcon, Fe = (0, y.getMergedStatus)(Re, me), Ze = m.useRef(null), Xt = m.useRef(null), Zt = m.useState(!1), er = (0, u.default)(Zt, 2), qe = er[0], Ht = er[1], _t = m.useRef(), qt = m.useRef(0), kt = (0, p.default)(G.defaultValue, {
9227
- value: G.value
9228
- }), et = (0, u.default)(kt, 2), Yt = et[0], tr = et[1], it = G.hidden, xt = function(_r, Pr) {
9229
- G.value === void 0 && (tr(_r), Pr == null || Pr());
9225
+ var G = /* @__PURE__ */ m.forwardRef(function(M, L) {
9226
+ var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, K = M.maxLength, re = M.className, ie = M.style, ne = M.size, Q = M.disabled, ae = M.onCompositionStart, oe = M.onCompositionEnd, ce = M.onChange, me = M.status, z = T(M, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), te = m.useContext(g.ConfigContext), he = te.getPrefixCls, ge = te.direction, Te = m.useContext(C.default), D = m.useContext(v.default), I = Q != null ? Q : D, pe = m.useContext(S.FormItemInputContext), Re = pe.status, Oe = pe.hasFeedback, ve = pe.isFormItemInput, Pe = pe.feedbackIcon, Fe = (0, y.getMergedStatus)(Re, me), et = m.useRef(null), Xt = m.useRef(null), Zt = m.useState(!1), er = (0, u.default)(Zt, 2), qe = er[0], Ht = er[1], _t = m.useRef(), qt = m.useRef(0), kt = (0, p.default)(z.defaultValue, {
9227
+ value: z.value
9228
+ }), Ze = (0, u.default)(kt, 2), Yt = Ze[0], tr = Ze[1], it = z.hidden, xt = function(_r, Pr) {
9229
+ z.value === void 0 && (tr(_r), Pr == null || Pr());
9230
9230
  }, Qt = Number(K) > 0, Jt = function(_r) {
9231
9231
  Ht(!0), _t.current = Yt, qt.current = _r.currentTarget.selectionStart, ae == null || ae(_r);
9232
9232
  }, rr = function(_r) {
@@ -9247,23 +9247,23 @@ function hasPrefixSuffix(e) {
9247
9247
  xt(Pr), (0, w.resolveOnChange)(_r.currentTarget, _r, ce, Pr);
9248
9248
  }, $r = function(_r) {
9249
9249
  var Pr, Hr, Xr;
9250
- xt(""), (Pr = Ze.current) === null || Pr === void 0 || Pr.focus(), (0, w.resolveOnChange)((Xr = (Hr = Ze.current) === null || Hr === void 0 ? void 0 : Hr.resizableTextArea) === null || Xr === void 0 ? void 0 : Xr.textArea, _r, ce);
9250
+ xt(""), (Pr = et.current) === null || Pr === void 0 || Pr.focus(), (0, w.resolveOnChange)((Xr = (Hr = et.current) === null || Hr === void 0 ? void 0 : Hr.resizableTextArea) === null || Xr === void 0 ? void 0 : Xr.textArea, _r, ce);
9251
9251
  }, Wr = he("input", B);
9252
9252
  m.useImperativeHandle(L, function() {
9253
9253
  var Zr;
9254
9254
  return {
9255
- resizableTextArea: (Zr = Ze.current) === null || Zr === void 0 ? void 0 : Zr.resizableTextArea,
9255
+ resizableTextArea: (Zr = et.current) === null || Zr === void 0 ? void 0 : Zr.resizableTextArea,
9256
9256
  focus: function(Pr) {
9257
9257
  var Hr, Xr;
9258
- (0, w.triggerFocus)((Xr = (Hr = Ze.current) === null || Hr === void 0 ? void 0 : Hr.resizableTextArea) === null || Xr === void 0 ? void 0 : Xr.textArea, Pr);
9258
+ (0, w.triggerFocus)((Xr = (Hr = et.current) === null || Hr === void 0 ? void 0 : Hr.resizableTextArea) === null || Xr === void 0 ? void 0 : Xr.textArea, Pr);
9259
9259
  },
9260
9260
  blur: function() {
9261
9261
  var Pr;
9262
- return (Pr = Ze.current) === null || Pr === void 0 ? void 0 : Pr.blur();
9262
+ return (Pr = et.current) === null || Pr === void 0 ? void 0 : Pr.blur();
9263
9263
  }
9264
9264
  };
9265
9265
  });
9266
- var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(G, ["allowClear"]), {
9266
+ var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(z, ["allowClear"]), {
9267
9267
  disabled: I,
9268
9268
  className: (0, d.default)((W = {}, (0, s.default)(W, "".concat(Wr, "-borderless"), !J), (0, s.default)(W, re, re && !H), (0, s.default)(W, "".concat(Wr, "-sm"), Te === "small" || ne === "small"), (0, s.default)(W, "".concat(Wr, "-lg"), Te === "large" || ne === "large"), W), (0, y.getStatusClassNames)(Wr, Fe)),
9269
9269
  style: H ? {
@@ -9273,12 +9273,12 @@ function hasPrefixSuffix(e) {
9273
9273
  onCompositionStart: Jt,
9274
9274
  onChange: or,
9275
9275
  onCompositionEnd: rr,
9276
- ref: Ze
9276
+ ref: et
9277
9277
  })), Ur = (0, w.fixControlledValue)(Yt);
9278
- !qe && Qt && (G.value === null || G.value === void 0) && (Ur = E(Ur, K));
9278
+ !qe && Qt && (z.value === null || z.value === void 0) && (Ur = E(Ur, K));
9279
9279
  var Kr = /* @__PURE__ */ m.createElement(x.default, (0, l.default)({
9280
9280
  disabled: I
9281
- }, G, {
9281
+ }, z, {
9282
9282
  prefixCls: Wr,
9283
9283
  direction: ge,
9284
9284
  inputType: "text",
@@ -9306,7 +9306,7 @@ function hasPrefixSuffix(e) {
9306
9306
  }, Pe));
9307
9307
  }
9308
9308
  return Kr;
9309
- }), P = z;
9309
+ }), P = G;
9310
9310
  e.default = P;
9311
9311
  })(TextArea$2);
9312
9312
  const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
@@ -9430,7 +9430,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
9430
9430
  }
9431
9431
  v(!1), u();
9432
9432
  }
9433
- function z() {
9433
+ function G() {
9434
9434
  return h ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
9435
9435
  children: [E(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
9436
9436
  justify: "end",
@@ -9464,7 +9464,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
9464
9464
  footer: null,
9465
9465
  destroyOnClose: !0,
9466
9466
  maskClosable: !1,
9467
- children: z()
9467
+ children: G()
9468
9468
  });
9469
9469
  };
9470
9470
  function ButtonWithTooltip(e) {
@@ -9746,19 +9746,19 @@ function debounce(e, r, a) {
9746
9746
  throw new TypeError(FUNC_ERROR_TEXT);
9747
9747
  r = toNumber(r) || 0, isObject$3(a) && (p = !!a.leading, h = "maxWait" in a, l = h ? nativeMax(toNumber(a.maxWait) || 0, r) : l, m = "trailing" in a ? !!a.trailing : m);
9748
9748
  function g(O) {
9749
- var z = o, P = s;
9750
- return o = s = void 0, f = O, u = e.apply(P, z), u;
9749
+ var G = o, P = s;
9750
+ return o = s = void 0, f = O, u = e.apply(P, G), u;
9751
9751
  }
9752
9752
  function v(O) {
9753
9753
  return f = O, c = setTimeout(y, r), p ? g(O) : u;
9754
9754
  }
9755
9755
  function C(O) {
9756
- var z = O - d, P = O - f, M = r - z;
9756
+ var G = O - d, P = O - f, M = r - G;
9757
9757
  return h ? nativeMin(M, l - P) : M;
9758
9758
  }
9759
9759
  function S(O) {
9760
- var z = O - d, P = O - f;
9761
- return d === void 0 || z >= r || z < 0 || h && P >= l;
9760
+ var G = O - d, P = O - f;
9761
+ return d === void 0 || G >= r || G < 0 || h && P >= l;
9762
9762
  }
9763
9763
  function y() {
9764
9764
  var O = now$1();
@@ -9776,8 +9776,8 @@ function debounce(e, r, a) {
9776
9776
  return c === void 0 ? u : x(now$1());
9777
9777
  }
9778
9778
  function E() {
9779
- var O = now$1(), z = S(O);
9780
- if (o = arguments, s = this, d = O, z) {
9779
+ var O = now$1(), G = S(O);
9780
+ if (o = arguments, s = this, d = O, G) {
9781
9781
  if (c === void 0)
9782
9782
  return v(d);
9783
9783
  if (h)
@@ -10325,10 +10325,10 @@ function require_stream_writable() {
10325
10325
  if (hasRequired_stream_writable)
10326
10326
  return _stream_writable;
10327
10327
  hasRequired_stream_writable = 1, _stream_writable = P;
10328
- function e(G) {
10328
+ function e(z) {
10329
10329
  var te = this;
10330
10330
  this.next = null, this.entry = null, this.finish = function() {
10331
- me(te, G);
10331
+ me(te, z);
10332
10332
  };
10333
10333
  }
10334
10334
  var r;
@@ -10337,22 +10337,22 @@ function require_stream_writable() {
10337
10337
  deprecate: browser
10338
10338
  }, o = streamBrowser, s = require$$0.Buffer, l = commonjsGlobal.Uint8Array || function() {
10339
10339
  };
10340
- function u(G) {
10341
- return s.from(G);
10340
+ function u(z) {
10341
+ return s.from(z);
10342
10342
  }
10343
- function c(G) {
10344
- return s.isBuffer(G) || G instanceof l;
10343
+ function c(z) {
10344
+ return s.isBuffer(z) || z instanceof l;
10345
10345
  }
10346
10346
  var d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, g = h.ERR_METHOD_NOT_IMPLEMENTED, v = h.ERR_MULTIPLE_CALLBACK, C = h.ERR_STREAM_CANNOT_PIPE, S = h.ERR_STREAM_DESTROYED, y = h.ERR_STREAM_NULL_VALUES, x = h.ERR_STREAM_WRITE_AFTER_END, w = h.ERR_UNKNOWN_ENCODING, T = d.errorOrDestroy;
10347
10347
  inherits_browser.exports(P, o);
10348
10348
  function E() {
10349
10349
  }
10350
- function O(G, te, he) {
10351
- r = r || require_stream_duplex(), G = G || {}, typeof he != "boolean" && (he = te instanceof r), this.objectMode = !!G.objectMode, he && (this.objectMode = this.objectMode || !!G.writableObjectMode), this.highWaterMark = p(this, G, "writableHighWaterMark", he), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
10352
- var ge = G.decodeStrings === !1;
10353
- this.decodeStrings = !ge, this.defaultEncoding = G.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Te) {
10350
+ function O(z, te, he) {
10351
+ r = r || require_stream_duplex(), z = z || {}, typeof he != "boolean" && (he = te instanceof r), this.objectMode = !!z.objectMode, he && (this.objectMode = this.objectMode || !!z.writableObjectMode), this.highWaterMark = p(this, z, "writableHighWaterMark", he), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
10352
+ var ge = z.decodeStrings === !1;
10353
+ this.decodeStrings = !ge, this.defaultEncoding = z.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Te) {
10354
10354
  H(te, Te);
10355
- }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = G.emitClose !== !1, this.autoDestroy = !!G.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
10355
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = z.emitClose !== !1, this.autoDestroy = !!z.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
10356
10356
  }
10357
10357
  O.prototype.getBuffer = function() {
10358
10358
  for (var te = this.bufferedRequest, he = []; te; )
@@ -10368,40 +10368,40 @@ function require_stream_writable() {
10368
10368
  } catch {
10369
10369
  }
10370
10370
  }();
10371
- var z;
10372
- typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (z = Function.prototype[Symbol.hasInstance], Object.defineProperty(P, Symbol.hasInstance, {
10371
+ var G;
10372
+ typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (G = Function.prototype[Symbol.hasInstance], Object.defineProperty(P, Symbol.hasInstance, {
10373
10373
  value: function(te) {
10374
- return z.call(this, te) ? !0 : this !== P ? !1 : te && te._writableState instanceof O;
10374
+ return G.call(this, te) ? !0 : this !== P ? !1 : te && te._writableState instanceof O;
10375
10375
  }
10376
- })) : z = function(te) {
10376
+ })) : G = function(te) {
10377
10377
  return te instanceof this;
10378
10378
  };
10379
- function P(G) {
10379
+ function P(z) {
10380
10380
  r = r || require_stream_duplex();
10381
10381
  var te = this instanceof r;
10382
- if (!te && !z.call(P, this))
10383
- return new P(G);
10384
- this._writableState = new O(G, this, te), this.writable = !0, G && (typeof G.write == "function" && (this._write = G.write), typeof G.writev == "function" && (this._writev = G.writev), typeof G.destroy == "function" && (this._destroy = G.destroy), typeof G.final == "function" && (this._final = G.final)), o.call(this);
10382
+ if (!te && !G.call(P, this))
10383
+ return new P(z);
10384
+ this._writableState = new O(z, this, te), this.writable = !0, z && (typeof z.write == "function" && (this._write = z.write), typeof z.writev == "function" && (this._writev = z.writev), typeof z.destroy == "function" && (this._destroy = z.destroy), typeof z.final == "function" && (this._final = z.final)), o.call(this);
10385
10385
  }
10386
10386
  P.prototype.pipe = function() {
10387
10387
  T(this, new C());
10388
10388
  };
10389
- function M(G, te) {
10389
+ function M(z, te) {
10390
10390
  var he = new x();
10391
- T(G, he), process.nextTick(te, he);
10391
+ T(z, he), process.nextTick(te, he);
10392
10392
  }
10393
- function L(G, te, he, ge) {
10393
+ function L(z, te, he, ge) {
10394
10394
  var Te;
10395
- return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(G, Te), process.nextTick(ge, Te), !1) : !0;
10395
+ return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(z, Te), process.nextTick(ge, Te), !1) : !0;
10396
10396
  }
10397
- P.prototype.write = function(G, te, he) {
10398
- var ge = this._writableState, Te = !1, D = !ge.objectMode && c(G);
10399
- return D && !s.isBuffer(G) && (G = u(G)), typeof te == "function" && (he = te, te = null), D ? te = "buffer" : te || (te = ge.defaultEncoding), typeof he != "function" && (he = E), ge.ending ? M(this, he) : (D || L(this, ge, G, he)) && (ge.pendingcb++, Te = B(this, ge, D, G, te, he)), Te;
10397
+ P.prototype.write = function(z, te, he) {
10398
+ var ge = this._writableState, Te = !1, D = !ge.objectMode && c(z);
10399
+ return D && !s.isBuffer(z) && (z = u(z)), typeof te == "function" && (he = te, te = null), D ? te = "buffer" : te || (te = ge.defaultEncoding), typeof he != "function" && (he = E), ge.ending ? M(this, he) : (D || L(this, ge, z, he)) && (ge.pendingcb++, Te = B(this, ge, D, z, te, he)), Te;
10400
10400
  }, P.prototype.cork = function() {
10401
10401
  this._writableState.corked++;
10402
10402
  }, P.prototype.uncork = function() {
10403
- var G = this._writableState;
10404
- G.corked && (G.corked--, !G.writing && !G.corked && !G.bufferProcessing && G.bufferedRequest && ie(this, G));
10403
+ var z = this._writableState;
10404
+ z.corked && (z.corked--, !z.writing && !z.corked && !z.bufferProcessing && z.bufferedRequest && ie(this, z));
10405
10405
  }, P.prototype.setDefaultEncoding = function(te) {
10406
10406
  if (typeof te == "string" && (te = te.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((te + "").toLowerCase()) > -1))
10407
10407
  throw new w(te);
@@ -10412,8 +10412,8 @@ function require_stream_writable() {
10412
10412
  return this._writableState && this._writableState.getBuffer();
10413
10413
  }
10414
10414
  });
10415
- function W(G, te, he) {
10416
- return !G.objectMode && G.decodeStrings !== !1 && typeof te == "string" && (te = s.from(te, he)), te;
10415
+ function W(z, te, he) {
10416
+ return !z.objectMode && z.decodeStrings !== !1 && typeof te == "string" && (te = s.from(te, he)), te;
10417
10417
  }
10418
10418
  Object.defineProperty(P.prototype, "writableHighWaterMark", {
10419
10419
  enumerable: !1,
@@ -10421,7 +10421,7 @@ function require_stream_writable() {
10421
10421
  return this._writableState.highWaterMark;
10422
10422
  }
10423
10423
  });
10424
- function B(G, te, he, ge, Te, D) {
10424
+ function B(z, te, he, ge, Te, D) {
10425
10425
  if (!he) {
10426
10426
  var I = W(te, ge, Te);
10427
10427
  ge !== I && (he = !0, Te = "buffer", ge = I);
@@ -10439,94 +10439,94 @@ function require_stream_writable() {
10439
10439
  next: null
10440
10440
  }, Oe ? Oe.next = te.lastBufferedRequest : te.bufferedRequest = te.lastBufferedRequest, te.bufferedRequestCount += 1;
10441
10441
  } else
10442
- N(G, te, !1, pe, ge, Te, D);
10442
+ N(z, te, !1, pe, ge, Te, D);
10443
10443
  return Re;
10444
10444
  }
10445
- function N(G, te, he, ge, Te, D, I) {
10446
- te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ? G._writev(Te, te.onwrite) : G._write(Te, D, te.onwrite), te.sync = !1;
10445
+ function N(z, te, he, ge, Te, D, I) {
10446
+ te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ? z._writev(Te, te.onwrite) : z._write(Te, D, te.onwrite), te.sync = !1;
10447
10447
  }
10448
- function J(G, te, he, ge, Te) {
10449
- --te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe, G, te), G._writableState.errorEmitted = !0, T(G, ge)) : (Te(ge), G._writableState.errorEmitted = !0, T(G, ge), oe(G, te));
10448
+ function J(z, te, he, ge, Te) {
10449
+ --te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe, z, te), z._writableState.errorEmitted = !0, T(z, ge)) : (Te(ge), z._writableState.errorEmitted = !0, T(z, ge), oe(z, te));
10450
10450
  }
10451
- function U(G) {
10452
- G.writing = !1, G.writecb = null, G.length -= G.writelen, G.writelen = 0;
10451
+ function U(z) {
10452
+ z.writing = !1, z.writecb = null, z.length -= z.writelen, z.writelen = 0;
10453
10453
  }
10454
- function H(G, te) {
10455
- var he = G._writableState, ge = he.sync, Te = he.writecb;
10454
+ function H(z, te) {
10455
+ var he = z._writableState, ge = he.sync, Te = he.writecb;
10456
10456
  if (typeof Te != "function")
10457
10457
  throw new v();
10458
10458
  if (U(he), te)
10459
- J(G, he, ge, te, Te);
10459
+ J(z, he, ge, te, Te);
10460
10460
  else {
10461
- var D = ne(he) || G.destroyed;
10462
- !D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(G, he), ge ? process.nextTick(K, G, he, D, Te) : K(G, he, D, Te);
10461
+ var D = ne(he) || z.destroyed;
10462
+ !D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(z, he), ge ? process.nextTick(K, z, he, D, Te) : K(z, he, D, Te);
10463
10463
  }
10464
10464
  }
10465
- function K(G, te, he, ge) {
10466
- he || re(G, te), te.pendingcb--, ge(), oe(G, te);
10465
+ function K(z, te, he, ge) {
10466
+ he || re(z, te), te.pendingcb--, ge(), oe(z, te);
10467
10467
  }
10468
- function re(G, te) {
10469
- te.length === 0 && te.needDrain && (te.needDrain = !1, G.emit("drain"));
10468
+ function re(z, te) {
10469
+ te.length === 0 && te.needDrain && (te.needDrain = !1, z.emit("drain"));
10470
10470
  }
10471
- function ie(G, te) {
10471
+ function ie(z, te) {
10472
10472
  te.bufferProcessing = !0;
10473
10473
  var he = te.bufferedRequest;
10474
- if (G._writev && he && he.next) {
10474
+ if (z._writev && he && he.next) {
10475
10475
  var ge = te.bufferedRequestCount, Te = new Array(ge), D = te.corkedRequestsFree;
10476
10476
  D.entry = he;
10477
10477
  for (var I = 0, pe = !0; he; )
10478
10478
  Te[I] = he, he.isBuf || (pe = !1), he = he.next, I += 1;
10479
- Te.allBuffers = pe, N(G, te, !0, te.length, Te, "", D.finish), te.pendingcb++, te.lastBufferedRequest = null, D.next ? (te.corkedRequestsFree = D.next, D.next = null) : te.corkedRequestsFree = new e(te), te.bufferedRequestCount = 0;
10479
+ Te.allBuffers = pe, N(z, te, !0, te.length, Te, "", D.finish), te.pendingcb++, te.lastBufferedRequest = null, D.next ? (te.corkedRequestsFree = D.next, D.next = null) : te.corkedRequestsFree = new e(te), te.bufferedRequestCount = 0;
10480
10480
  } else {
10481
10481
  for (; he; ) {
10482
10482
  var Re = he.chunk, Oe = he.encoding, ve = he.callback, Pe = te.objectMode ? 1 : Re.length;
10483
- if (N(G, te, !1, Pe, Re, Oe, ve), he = he.next, te.bufferedRequestCount--, te.writing)
10483
+ if (N(z, te, !1, Pe, Re, Oe, ve), he = he.next, te.bufferedRequestCount--, te.writing)
10484
10484
  break;
10485
10485
  }
10486
10486
  he === null && (te.lastBufferedRequest = null);
10487
10487
  }
10488
10488
  te.bufferedRequest = he, te.bufferProcessing = !1;
10489
10489
  }
10490
- P.prototype._write = function(G, te, he) {
10490
+ P.prototype._write = function(z, te, he) {
10491
10491
  he(new g("_write()"));
10492
- }, P.prototype._writev = null, P.prototype.end = function(G, te, he) {
10492
+ }, P.prototype._writev = null, P.prototype.end = function(z, te, he) {
10493
10493
  var ge = this._writableState;
10494
- return typeof G == "function" ? (he = G, G = null, te = null) : typeof te == "function" && (he = te, te = null), G != null && this.write(G, te), ge.corked && (ge.corked = 1, this.uncork()), ge.ending || ce(this, ge, he), this;
10494
+ return typeof z == "function" ? (he = z, z = null, te = null) : typeof te == "function" && (he = te, te = null), z != null && this.write(z, te), ge.corked && (ge.corked = 1, this.uncork()), ge.ending || ce(this, ge, he), this;
10495
10495
  }, Object.defineProperty(P.prototype, "writableLength", {
10496
10496
  enumerable: !1,
10497
10497
  get: function() {
10498
10498
  return this._writableState.length;
10499
10499
  }
10500
10500
  });
10501
- function ne(G) {
10502
- return G.ending && G.length === 0 && G.bufferedRequest === null && !G.finished && !G.writing;
10501
+ function ne(z) {
10502
+ return z.ending && z.length === 0 && z.bufferedRequest === null && !z.finished && !z.writing;
10503
10503
  }
10504
- function Q(G, te) {
10505
- G._final(function(he) {
10506
- te.pendingcb--, he && T(G, he), te.prefinished = !0, G.emit("prefinish"), oe(G, te);
10504
+ function Q(z, te) {
10505
+ z._final(function(he) {
10506
+ te.pendingcb--, he && T(z, he), te.prefinished = !0, z.emit("prefinish"), oe(z, te);
10507
10507
  });
10508
10508
  }
10509
- function ae(G, te) {
10510
- !te.prefinished && !te.finalCalled && (typeof G._final == "function" && !te.destroyed ? (te.pendingcb++, te.finalCalled = !0, process.nextTick(Q, G, te)) : (te.prefinished = !0, G.emit("prefinish")));
10509
+ function ae(z, te) {
10510
+ !te.prefinished && !te.finalCalled && (typeof z._final == "function" && !te.destroyed ? (te.pendingcb++, te.finalCalled = !0, process.nextTick(Q, z, te)) : (te.prefinished = !0, z.emit("prefinish")));
10511
10511
  }
10512
- function oe(G, te) {
10512
+ function oe(z, te) {
10513
10513
  var he = ne(te);
10514
- if (he && (ae(G, te), te.pendingcb === 0 && (te.finished = !0, G.emit("finish"), te.autoDestroy))) {
10515
- var ge = G._readableState;
10516
- (!ge || ge.autoDestroy && ge.endEmitted) && G.destroy();
10514
+ if (he && (ae(z, te), te.pendingcb === 0 && (te.finished = !0, z.emit("finish"), te.autoDestroy))) {
10515
+ var ge = z._readableState;
10516
+ (!ge || ge.autoDestroy && ge.endEmitted) && z.destroy();
10517
10517
  }
10518
10518
  return he;
10519
10519
  }
10520
- function ce(G, te, he) {
10521
- te.ending = !0, oe(G, te), he && (te.finished ? process.nextTick(he) : G.once("finish", he)), te.ended = !0, G.writable = !1;
10520
+ function ce(z, te, he) {
10521
+ te.ending = !0, oe(z, te), he && (te.finished ? process.nextTick(he) : z.once("finish", he)), te.ended = !0, z.writable = !1;
10522
10522
  }
10523
- function me(G, te, he) {
10524
- var ge = G.entry;
10525
- for (G.entry = null; ge; ) {
10523
+ function me(z, te, he) {
10524
+ var ge = z.entry;
10525
+ for (z.entry = null; ge; ) {
10526
10526
  var Te = ge.callback;
10527
10527
  te.pendingcb--, Te(he), ge = ge.next;
10528
10528
  }
10529
- te.corkedRequestsFree.next = G;
10529
+ te.corkedRequestsFree.next = z;
10530
10530
  }
10531
10531
  return Object.defineProperty(P.prototype, "destroyed", {
10532
10532
  enumerable: !1,
@@ -10536,8 +10536,8 @@ function require_stream_writable() {
10536
10536
  set: function(te) {
10537
10537
  !this._writableState || (this._writableState.destroyed = te);
10538
10538
  }
10539
- }), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(G, te) {
10540
- te(G);
10539
+ }), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(z, te) {
10540
+ te(z);
10541
10541
  }, _stream_writable;
10542
10542
  }
10543
10543
  var _stream_duplex, hasRequired_stream_duplex;
@@ -10885,9 +10885,9 @@ function requireAsync_iterator() {
10885
10885
  if (this[u])
10886
10886
  return Promise.resolve(p(void 0, !0));
10887
10887
  if (this[f].destroyed)
10888
- return new Promise(function(z, P) {
10888
+ return new Promise(function(G, P) {
10889
10889
  process.nextTick(function() {
10890
- x[l] ? P(x[l]) : z(p(void 0, !0));
10890
+ x[l] ? P(x[l]) : G(p(void 0, !0));
10891
10891
  });
10892
10892
  });
10893
10893
  var T = this[c], E;
@@ -10931,9 +10931,9 @@ function requireAsync_iterator() {
10931
10931
  value: x._readableState.endEmitted,
10932
10932
  writable: !0
10933
10933
  }), r(w, d, {
10934
- value: function(O, z) {
10934
+ value: function(O, G) {
10935
10935
  var P = T[f].read();
10936
- P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] = z);
10936
+ P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] = G);
10937
10937
  },
10938
10938
  writable: !0
10939
10939
  }), w));
@@ -10943,8 +10943,8 @@ function requireAsync_iterator() {
10943
10943
  O !== null && (T[c] = null, T[o] = null, T[s] = null, O(E)), T[l] = E;
10944
10944
  return;
10945
10945
  }
10946
- var z = T[o];
10947
- z !== null && (T[c] = null, T[o] = null, T[s] = null, z(p(void 0, !0))), T[u] = !0;
10946
+ var G = T[o];
10947
+ G !== null && (T[c] = null, T[o] = null, T[s] = null, G(p(void 0, !0))), T[u] = !0;
10948
10948
  }), x.on("readable", m.bind(null, T)), T;
10949
10949
  };
10950
10950
  return async_iterator = S, async_iterator;
@@ -10978,7 +10978,7 @@ function require_stream_readable() {
10978
10978
  var f = requireBuffer_list(), p = destroy_1, h = state, m = h.getHighWaterMark, g = errorsBrowser.codes, v = g.ERR_INVALID_ARG_TYPE, C = g.ERR_STREAM_PUSH_AFTER_EOF, S = g.ERR_METHOD_NOT_IMPLEMENTED, y = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, x, w, T;
10979
10979
  inherits_browser.exports(M, a);
10980
10980
  var E = p.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
10981
- function z(D, I, pe) {
10981
+ function G(D, I, pe) {
10982
10982
  if (typeof D.prependListener == "function")
10983
10983
  return D.prependListener(I, pe);
10984
10984
  !D._events || !D._events[I] ? D.on(I, pe) : Array.isArray(D._events[I]) ? D._events[I].unshift(pe) : D._events[I] = [pe, D._events[I]];
@@ -11083,7 +11083,7 @@ function require_stream_readable() {
11083
11083
  }
11084
11084
  function re(D) {
11085
11085
  var I = D._readableState;
11086
- d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark, G(D);
11086
+ d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark, z(D);
11087
11087
  }
11088
11088
  function ie(D, I) {
11089
11089
  I.readingMore || (I.readingMore = !0, process.nextTick(ne, D, I));
@@ -11114,28 +11114,28 @@ function require_stream_readable() {
11114
11114
  Re.pipesCount += 1, d("pipe count=%d opts=%j", Re.pipesCount, I);
11115
11115
  var Oe = (!I || I.end !== !1) && D !== process.stdout && D !== process.stderr, ve = Oe ? Fe : qt;
11116
11116
  Re.endEmitted ? process.nextTick(ve) : pe.once("end", ve), D.on("unpipe", Pe);
11117
- function Pe(kt, et) {
11118
- d("onunpipe"), kt === pe && et && et.hasUnpiped === !1 && (et.hasUnpiped = !0, Zt());
11117
+ function Pe(kt, Ze) {
11118
+ d("onunpipe"), kt === pe && Ze && Ze.hasUnpiped === !1 && (Ze.hasUnpiped = !0, Zt());
11119
11119
  }
11120
11120
  function Fe() {
11121
11121
  d("onend"), D.end();
11122
11122
  }
11123
- var Ze = Q(pe);
11124
- D.on("drain", Ze);
11123
+ var et = Q(pe);
11124
+ D.on("drain", et);
11125
11125
  var Xt = !1;
11126
11126
  function Zt() {
11127
- d("cleanup"), D.removeListener("close", Ht), D.removeListener("finish", _t), D.removeListener("drain", Ze), D.removeListener("error", qe), D.removeListener("unpipe", Pe), pe.removeListener("end", Fe), pe.removeListener("end", qt), pe.removeListener("data", er), Xt = !0, Re.awaitDrain && (!D._writableState || D._writableState.needDrain) && Ze();
11127
+ d("cleanup"), D.removeListener("close", Ht), D.removeListener("finish", _t), D.removeListener("drain", et), D.removeListener("error", qe), D.removeListener("unpipe", Pe), pe.removeListener("end", Fe), pe.removeListener("end", qt), pe.removeListener("data", er), Xt = !0, Re.awaitDrain && (!D._writableState || D._writableState.needDrain) && et();
11128
11128
  }
11129
11129
  pe.on("data", er);
11130
11130
  function er(kt) {
11131
11131
  d("ondata");
11132
- var et = D.write(kt);
11133
- d("dest.write", et), et === !1 && ((Re.pipesCount === 1 && Re.pipes === D || Re.pipesCount > 1 && Te(Re.pipes, D) !== -1) && !Xt && (d("false write response, pause", Re.awaitDrain), Re.awaitDrain++), pe.pause());
11132
+ var Ze = D.write(kt);
11133
+ d("dest.write", Ze), Ze === !1 && ((Re.pipesCount === 1 && Re.pipes === D || Re.pipesCount > 1 && Te(Re.pipes, D) !== -1) && !Xt && (d("false write response, pause", Re.awaitDrain), Re.awaitDrain++), pe.pause());
11134
11134
  }
11135
11135
  function qe(kt) {
11136
11136
  d("onerror", kt), qt(), D.removeListener("error", qe), r(D, "error") === 0 && E(D, kt);
11137
11137
  }
11138
- z(D, "error", qe);
11138
+ G(D, "error", qe);
11139
11139
  function Ht() {
11140
11140
  D.removeListener("finish", _t), qt();
11141
11141
  }
@@ -11152,7 +11152,7 @@ function require_stream_readable() {
11152
11152
  function Q(D) {
11153
11153
  return function() {
11154
11154
  var pe = D._readableState;
11155
- d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0, G(D));
11155
+ d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0, z(D));
11156
11156
  };
11157
11157
  }
11158
11158
  M.prototype.unpipe = function(D) {
@@ -11199,12 +11199,12 @@ function require_stream_readable() {
11199
11199
  I.resumeScheduled || (I.resumeScheduled = !0, process.nextTick(me, D, I));
11200
11200
  }
11201
11201
  function me(D, I) {
11202
- d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"), G(D), I.flowing && !I.reading && D.read(0);
11202
+ d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"), z(D), I.flowing && !I.reading && D.read(0);
11203
11203
  }
11204
11204
  M.prototype.pause = function() {
11205
11205
  return d("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (d("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
11206
11206
  };
11207
- function G(D) {
11207
+ function z(D) {
11208
11208
  var I = D._readableState;
11209
11209
  for (d("flow", I.flowing); I.flowing && D.read() !== null; )
11210
11210
  ;
@@ -13617,14 +13617,14 @@ const Image = (e) => {
13617
13617
  getContext: E
13618
13618
  } = T || {};
13619
13619
  useDeepCompareEffect(() => {
13620
- z();
13620
+ G();
13621
13621
  }, [l]);
13622
13622
  const O = (P) => {
13623
13623
  s == null || s({
13624
13624
  items: P
13625
13625
  });
13626
13626
  };
13627
- async function z() {
13627
+ async function G() {
13628
13628
  c(!0), f(void 0);
13629
13629
  try {
13630
13630
  const P = await readObjectValues({
@@ -13700,7 +13700,7 @@ const Image = (e) => {
13700
13700
  h(!1);
13701
13701
  },
13702
13702
  readOnly: S,
13703
- postSaveAction: z
13703
+ postSaveAction: G
13704
13704
  })]
13705
13705
  });
13706
13706
  }, Indicator = (e) => {
@@ -13933,43 +13933,43 @@ const transformPlainMany2Ones = ({
13933
13933
  };
13934
13934
  });
13935
13935
  c(P);
13936
- } catch (z) {
13937
- f(z);
13936
+ } catch (G) {
13937
+ f(G);
13938
13938
  } finally {
13939
13939
  h(!1);
13940
13940
  }
13941
13941
  }
13942
13942
  const T = (O) => {
13943
- const z = s.map((M) => O.includes(M.id) ? M.operation == "pendingRemove" ? {
13943
+ const G = s.map((M) => O.includes(M.id) ? M.operation == "pendingRemove" ? {
13944
13944
  ...M,
13945
13945
  operation: "pendingLink"
13946
13946
  } : M : {
13947
13947
  id: M.id,
13948
13948
  operation: "pendingRemove"
13949
- }), P = z.map((M) => M.id);
13949
+ }), P = G.map((M) => M.id);
13950
13950
  O.filter((M) => !P.includes(M)).map((M) => {
13951
- z.push({
13951
+ G.push({
13952
13952
  id: M,
13953
13953
  operation: "pendingLink"
13954
13954
  });
13955
- }), x(z);
13955
+ }), x(G);
13956
13956
  }, E = (O) => {
13957
13957
  const {
13958
- label: z,
13958
+ label: G,
13959
13959
  closable: P,
13960
13960
  onClose: M
13961
13961
  } = O, L = (W) => {
13962
13962
  W.preventDefault(), W.stopPropagation();
13963
13963
  };
13964
13964
  return /* @__PURE__ */ jsx(Tag$1, {
13965
- color: colorFromString(z),
13965
+ color: colorFromString(G),
13966
13966
  onMouseDown: L,
13967
13967
  style: {
13968
13968
  margin: "5px"
13969
13969
  },
13970
13970
  closable: P,
13971
13971
  onClose: M,
13972
- children: z
13972
+ children: G
13973
13973
  });
13974
13974
  };
13975
13975
  return d ? /* @__PURE__ */ jsx(Alert, {
@@ -14356,8 +14356,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14356
14356
  limit: T,
14357
14357
  setLimit: E,
14358
14358
  searchParams: O = [],
14359
- setSearchValues: z
14360
- } = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = useState$1(1), [H, K] = useState$1(0), [re, ie] = useState$1(), [ne, Q] = useState$1([]), [ae, oe] = useState$1(void 0), ce = useRef(T || DEFAULT_SEARCH_LIMIT$1), me = useRef([]), G = useCallback((ve) => {
14359
+ setSearchValues: G
14360
+ } = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = useState$1(1), [H, K] = useState$1(0), [re, ie] = useState$1(), [ne, Q] = useState$1([]), [ae, oe] = useState$1(void 0), ce = useRef(T || DEFAULT_SEARCH_LIMIT$1), me = useRef([]), z = useCallback((ve) => {
14361
14361
  S == null || S([...ve]), Q([...ve]);
14362
14362
  }, []), te = useCallback(() => y || ne, [y, ne]), he = useCallback(async () => {
14363
14363
  const ve = await ConnectionProvider.getHandler().nameSearch({
@@ -14368,7 +14368,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14368
14368
  context: f
14369
14369
  });
14370
14370
  if (ie(ve.length), p == null || p(ve.length), ve.length > 0) {
14371
- const Pe = ve.map((qe) => qe == null ? void 0 : qe[0]), { colors: Fe } = getTree(h), Ze = await ConnectionProvider.getHandler().readEvalUiObjects({
14371
+ const Pe = ve.map((qe) => qe == null ? void 0 : qe[0]), { colors: Fe } = getTree(h), et = await ConnectionProvider.getHandler().readEvalUiObjects({
14372
14372
  model: r,
14373
14373
  ids: Pe,
14374
14374
  arch: h == null ? void 0 : h.arch,
@@ -14377,19 +14377,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14377
14377
  attrs: Fe && {
14378
14378
  colors: Fe
14379
14379
  }
14380
- }), Xt = Ze[0];
14381
- me.current = [...Xt], oe(getColorMap(Ze[1]));
14380
+ }), Xt = et[0];
14381
+ me.current = [...Xt], oe(getColorMap(et[1]));
14382
14382
  const Zt = Xt.map((qe) => qe.id), er = g !== void 0 ? sortResults({
14383
14383
  resultsToSort: Xt,
14384
14384
  sorter: g,
14385
14385
  fields: { ...h.fields, ...m.fields }
14386
14386
  }) : [...me.current];
14387
- G(er), Zt.length > 0 ? C == null || C(0) : C == null || C(void 0);
14387
+ z(er), Zt.length > 0 ? C == null || C(0) : C == null || C(void 0);
14388
14388
  } else
14389
- G([]), C == null || C(void 0);
14389
+ z([]), C == null || C(void 0);
14390
14390
  d.current = !0;
14391
14391
  }, [
14392
- G,
14392
+ z,
14393
14393
  d,
14394
14394
  c,
14395
14395
  r,
@@ -14402,8 +14402,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14402
14402
  p
14403
14403
  ]), ge = useCallback(
14404
14404
  async (ve) => {
14405
- const { params: Pe, newOffset: Fe } = ve || {}, Ze = mergeParams(Pe || O, x), { colors: Xt } = getTree(h), { totalItems: Zt, results: er, attrsEvaluated: qe } = await ConnectionProvider.getHandler().searchForTree({
14406
- params: Ze,
14405
+ const { params: Pe, newOffset: Fe } = ve || {}, et = mergeParams(Pe || O, x), { colors: Xt } = getTree(h), { totalItems: Zt, results: er, attrsEvaluated: qe } = await ConnectionProvider.getHandler().searchForTree({
14406
+ params: et,
14407
14407
  limit: ce.current,
14408
14408
  offset: Fe || H,
14409
14409
  model: r,
@@ -14417,7 +14417,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14417
14417
  sorter: g,
14418
14418
  fields: { ...h.fields, ...m.fields }
14419
14419
  }) : [...me.current];
14420
- if (G(Ht), y && Ht.length > 0) {
14420
+ if (z(Ht), y && Ht.length > 0) {
14421
14421
  const qt = Ht.findIndex(
14422
14422
  (kt) => w === kt.id
14423
14423
  );
@@ -14430,7 +14430,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14430
14430
  [
14431
14431
  C,
14432
14432
  y,
14433
- G,
14433
+ z,
14434
14434
  w,
14435
14435
  r,
14436
14436
  f,
@@ -14466,7 +14466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14466
14466
  d,
14467
14467
  p,
14468
14468
  C,
14469
- G,
14469
+ z,
14470
14470
  N,
14471
14471
  W,
14472
14472
  M,
@@ -14482,13 +14482,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14482
14482
  sorter: ve,
14483
14483
  fields: { ...h.fields, ...m.fields }
14484
14484
  }) : [...me.current];
14485
- G(Pe);
14485
+ z(Pe);
14486
14486
  },
14487
- [v, te, h, m, G]
14487
+ [v, te, h, m, z]
14488
14488
  ), I = useCallback(
14489
14489
  (ve) => {
14490
- const { params: Pe, searchValues: Fe, limit: Ze, offset: Xt } = ve;
14491
- P || (a == null || a(void 0), o == null || o([]), z == null || z(Fe), s == null || s(Pe), l == null || l(!1), W(!0), N(void 0), U(1), Ze && (ce.current = Ze, E == null || E(Ze)), Xt && K(Xt), Te({
14490
+ const { params: Pe, searchValues: Fe, limit: et, offset: Xt } = ve;
14491
+ P || (a == null || a(void 0), o == null || o([]), G == null || G(Fe), s == null || s(Pe), l == null || l(!1), W(!0), N(void 0), U(1), et && (ce.current = et, E == null || E(et)), Xt && K(Xt), Te({
14492
14492
  params: Pe,
14493
14493
  newOffset: Xt
14494
14494
  }));
@@ -14512,7 +14512,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14512
14512
  },
14513
14513
  [M, T, K, U]
14514
14514
  ), Re = useCallback(() => {
14515
- P || (a == null || a(void 0), s == null || s([]), z == null || z({}), N(void 0), K(0), U(1), E == null || E(T || DEFAULT_SEARCH_LIMIT$1));
14515
+ P || (a == null || a(void 0), s == null || s([]), G == null || G({}), N(void 0), K(0), U(1), E == null || E(T || DEFAULT_SEARCH_LIMIT$1));
14516
14516
  }, [
14517
14517
  P,
14518
14518
  a,
@@ -14530,9 +14530,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14530
14530
  fields: h.field_parent ? { ...h.fields, [h.field_parent]: {} } : h.fields,
14531
14531
  context: f
14532
14532
  });
14533
- return G([...te(), ...Fe]), getTableItems(getTree(h), Fe);
14533
+ return z([...te(), ...Fe]), getTableItems(getTree(h), Fe);
14534
14534
  },
14535
- [h, r, f, te, G]
14535
+ [h, r, f, te, z]
14536
14536
  );
14537
14537
  return {
14538
14538
  submit: I,
@@ -14575,22 +14575,22 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14575
14575
  setSelectedRowItems: T,
14576
14576
  selectedRowItems: E,
14577
14577
  searchTreeNameSearch: O,
14578
- setSearchTreeNameSearch: z,
14578
+ setSearchTreeNameSearch: G,
14579
14579
  goToResourceId: P,
14580
14580
  limit: M
14581
- } = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = useState$1(!1), [H, K] = useState$1(!0), [re, ie] = useState$1(!0), [ne, Q] = useState$1([]), [ae, oe] = useState$1(!1), [ce, me] = useState$1([]), [G, te] = useState$1(!1), [he, ge] = useState$1(!0), [Te, D] = useState$1(), [I, pe] = useState$1({}), [Re, Oe] = useState$1(M !== void 0 ? M : DEFAULT_SEARCH_LIMIT$1), [ve, Pe] = useState$1(o);
14581
+ } = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = useState$1(!1), [H, K] = useState$1(!0), [re, ie] = useState$1(!0), [ne, Q] = useState$1([]), [ae, oe] = useState$1(!1), [ce, me] = useState$1([]), [z, te] = useState$1(!1), [he, ge] = useState$1(!0), [Te, D] = useState$1(), [I, pe] = useState$1({}), [Re, Oe] = useState$1(M !== void 0 ? M : DEFAULT_SEARCH_LIMIT$1), [ve, Pe] = useState$1(o);
14582
14582
  useEffect(() => {
14583
14583
  m && m.length > 0 && !g && (v == null || v(0), p == null || p(m[0].id));
14584
14584
  }, [m]), useEffect(() => {
14585
14585
  Oe(M !== void 0 ? M : DEFAULT_SEARCH_LIMIT$1);
14586
14586
  }, [M]), useEffect(() => {
14587
- l.length === 1 ? D(l[0]) : l.length > 1 && D(l.filter((Ze) => Ze.view_id !== a.view_id)[0]);
14587
+ l.length === 1 ? D(l[0]) : l.length > 1 && D(l.filter((et) => et.view_id !== a.view_id)[0]);
14588
14588
  }, [l]), useEffect(() => {
14589
- (Te == null ? void 0 : Te.view_id) === a.view_id && l.length > 1 && D(l.filter((Ze) => Ze.view_id !== a.view_id)[0]);
14589
+ (Te == null ? void 0 : Te.view_id) === a.view_id && l.length > 1 && D(l.filter((et) => et.view_id !== a.view_id)[0]);
14590
14590
  }, [a]);
14591
14591
  const Fe = async () => {
14592
- var Ze;
14593
- await ((Ze = u.current) == null ? void 0 : Ze.submitForm());
14592
+ var et;
14593
+ return await ((et = u.current) == null ? void 0 : et.submitForm());
14594
14594
  };
14595
14595
  return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
14596
14596
  value: {
@@ -14627,14 +14627,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14627
14627
  setDuplicatingItem: oe,
14628
14628
  setSearchParams: me,
14629
14629
  searchParams: ce,
14630
- searchVisible: G,
14630
+ searchVisible: z,
14631
14631
  setSearchVisible: te,
14632
14632
  sorter: S,
14633
14633
  setSorter: y,
14634
14634
  totalItems: x,
14635
14635
  setTotalItems: w,
14636
14636
  searchTreeNameSearch: O,
14637
- setSearchTreeNameSearch: z,
14637
+ setSearchTreeNameSearch: G,
14638
14638
  setGraphIsLoading: ge,
14639
14639
  graphIsLoading: he,
14640
14640
  previousView: Te,
@@ -14696,13 +14696,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14696
14696
  const [m, g] = useState$1(!1), [v, C] = useState$1({
14697
14697
  context: {}
14698
14698
  });
14699
- async function S(z) {
14699
+ async function S(G) {
14700
14700
  const {
14701
14701
  reportData: P,
14702
14702
  fields: M,
14703
14703
  values: L,
14704
14704
  context: W = {}
14705
- } = z, {
14705
+ } = G, {
14706
14706
  context: B,
14707
14707
  model: N,
14708
14708
  datas: J = {},
@@ -14740,11 +14740,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14740
14740
  l.current = !1, clearInterval(s.current), showDialog$8(ne), c(!1);
14741
14741
  }
14742
14742
  }
14743
- async function y(z) {
14743
+ async function y(G) {
14744
14744
  let P;
14745
14745
  try {
14746
14746
  if (P = await ConnectionProvider.getHandler().getReport({
14747
- id: z
14747
+ id: G
14748
14748
  }), P.state && l.current === !0) {
14749
14749
  l.current = !1, clearInterval(s.current), c(!1);
14750
14750
  const M = await getMimeType(P.result);
@@ -14755,7 +14755,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14755
14755
  }
14756
14756
  }
14757
14757
  async function x({
14758
- actionData: z,
14758
+ actionData: G,
14759
14759
  fields: P,
14760
14760
  values: M,
14761
14761
  context: L,
@@ -14763,30 +14763,30 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14763
14763
  }) {
14764
14764
  const {
14765
14765
  type: B
14766
- } = z;
14766
+ } = G;
14767
14767
  return p.current.push(W), B === "ir.actions.report.xml" ? await S({
14768
- reportData: z,
14768
+ reportData: G,
14769
14769
  fields: P,
14770
14770
  values: M,
14771
14771
  context: L
14772
14772
  }) : B === "ir.actions.act_window" ? await w({
14773
- actionData: z,
14773
+ actionData: G,
14774
14774
  fields: P,
14775
14775
  values: M,
14776
14776
  context: L
14777
14777
  }) : (showDialog$8(`${B} action not supported`), {});
14778
14778
  }
14779
14779
  async function w({
14780
- actionData: z,
14780
+ actionData: G,
14781
14781
  fields: P = {},
14782
14782
  values: M = {},
14783
14783
  context: L = {}
14784
14784
  }) {
14785
14785
  var U;
14786
- let W = z;
14787
- z.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
14786
+ let W = G;
14787
+ G.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
14788
14788
  model: "ir.actions.act_window",
14789
- ids: [parseInt(z.id)],
14789
+ ids: [parseInt(G.id)],
14790
14790
  context: L
14791
14791
  }))[0]);
14792
14792
  const N = {
@@ -14864,20 +14864,20 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14864
14864
  }
14865
14865
  }
14866
14866
  function T({
14867
- domain: z,
14867
+ domain: G,
14868
14868
  model: P,
14869
14869
  formView: M,
14870
14870
  context: L,
14871
14871
  actionData: W
14872
14872
  }) {
14873
14873
  m ? E({
14874
- domain: z,
14874
+ domain: G,
14875
14875
  model: P,
14876
14876
  formView: M,
14877
14877
  context: L,
14878
14878
  actionData: W
14879
14879
  }) : (C({
14880
- domain: z,
14880
+ domain: G,
14881
14881
  model: P,
14882
14882
  context: L,
14883
14883
  formView: M,
@@ -14885,7 +14885,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14885
14885
  }), g(!0));
14886
14886
  }
14887
14887
  async function E({
14888
- domain: z,
14888
+ domain: G,
14889
14889
  model: P,
14890
14890
  formView: M,
14891
14891
  context: L,
@@ -14898,7 +14898,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
14898
14898
  formView: void 0,
14899
14899
  actionData: void 0
14900
14900
  }), g(!1), await new Promise((B) => setTimeout(B, 300)), C({
14901
- domain: z,
14901
+ domain: G,
14902
14902
  model: P,
14903
14903
  context: L,
14904
14904
  formView: M,
@@ -14978,9 +14978,9 @@ function Form(e, r) {
14978
14978
  defaultValues: E,
14979
14979
  forcedValues: O = {}
14980
14980
  } = e, {
14981
- t: z,
14981
+ t: G,
14982
14982
  lang: P
14983
- } = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = Form$3.useForm(), [H, K] = useState$1(), [re, ie] = useState$1(), ne = useContext(FormModalContext), [Q, ae] = useState$1(), [oe, ce] = useState$1(!1), me = useRef(), G = useRef({}), te = useRef({}), he = useRef(!1), ge = useRef(!1), Te = Q < WIDTH_BREAKPOINT, D = useContext(FormContext$2), {
14983
+ } = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = Form$3.useForm(), [H, K] = useState$1(), [re, ie] = useState$1(), ne = useContext(FormModalContext), [Q, ae] = useState$1(), [oe, ce] = useState$1(!1), me = useRef(), z = useRef({}), te = useRef({}), he = useRef(!1), ge = useRef(!1), Te = Q < WIDTH_BREAKPOINT, D = useContext(FormContext$2), {
14984
14984
  activeId: I,
14985
14985
  getPlainValues: pe
14986
14986
  } = D || {}, Re = useContext(ActionViewContext), {
@@ -14988,7 +14988,7 @@ function Form(e, r) {
14988
14988
  setFormHasChanges: ve = void 0,
14989
14989
  setCurrentId: Pe = void 0,
14990
14990
  setFormIsLoading: Fe = void 0,
14991
- setAttachments: Ze = void 0,
14991
+ setAttachments: et = void 0,
14992
14992
  title: Xt = void 0,
14993
14993
  setTitle: Zt = void 0
14994
14994
  } = (T ? Re : {}) || {}, er = useContext(ContentRootContext), {
@@ -15026,7 +15026,7 @@ function Form(e, r) {
15026
15026
  }, kt = (Le) => {
15027
15027
  Oe == null || Oe(!1), f == null || f(Le);
15028
15028
  };
15029
- function et() {
15029
+ function Ze() {
15030
15030
  return o || me.current;
15031
15031
  }
15032
15032
  function Yt() {
@@ -15065,15 +15065,15 @@ function Form(e, r) {
15065
15065
  }
15066
15066
  function Jt() {
15067
15067
  return {
15068
- id: et(),
15069
- active_id: et(),
15070
- active_ids: [et()],
15068
+ id: Ze(),
15069
+ active_id: Ze(),
15070
+ active_ids: [Ze()],
15071
15071
  parent_id: I,
15072
15072
  ...Ht
15073
15073
  };
15074
15074
  }
15075
15075
  const rr = async (Le) => {
15076
- const Ae = et() ? N == null ? void 0 : N.context : {};
15076
+ const Ae = Ze() ? N == null ? void 0 : N.context : {};
15077
15077
  return await ConnectionProvider.getHandler().defaultGet({
15078
15078
  model: a,
15079
15079
  fields: Le,
@@ -15084,7 +15084,7 @@ function Form(e, r) {
15084
15084
  extraValues: E
15085
15085
  });
15086
15086
  }, or = () => Object.keys(getTouchedValues({
15087
- source: G.current,
15087
+ source: z.current,
15088
15088
  target: $r(re),
15089
15089
  fields: re
15090
15090
  })).length !== 0, $r = (Le) => {
@@ -15104,7 +15104,7 @@ function Form(e, r) {
15104
15104
  try {
15105
15105
  return await U.validateFields(), !1;
15106
15106
  } catch {
15107
- return message$1.error(z("fillRequiredFields")), !0;
15107
+ return message$1.error(G("fillRequiredFields")), !0;
15108
15108
  }
15109
15109
  }
15110
15110
  const Kr = async () => {
@@ -15137,7 +15137,7 @@ function Form(e, r) {
15137
15137
  }), x && (Ae = {
15138
15138
  ...getValuesForDomain(x),
15139
15139
  ...Ae
15140
- }), G.current = processValues(Ae, Tt), _r({
15140
+ }), z.current = processValues(Ae, Tt), _r({
15141
15141
  values: Ae,
15142
15142
  fields: Tt,
15143
15143
  reset: !0,
@@ -15149,7 +15149,7 @@ function Form(e, r) {
15149
15149
  }), Fe == null || Fe(!1), ve == null || ve(!1), Rr && ce(!0);
15150
15150
  };
15151
15151
  function en(Le, Ae) {
15152
- G.current[Le] = Ae, ve == null || ve(or());
15152
+ z.current[Le] = Ae, ve == null || ve(or());
15153
15153
  }
15154
15154
  const sn = async () => new Promise(async (Le) => {
15155
15155
  or() ? showDialog$6({
@@ -15197,22 +15197,22 @@ function Form(e, r) {
15197
15197
  arch: Ae
15198
15198
  }) => {
15199
15199
  let Tt = {}, Pt = !1;
15200
- if (et()) {
15200
+ if (Ze()) {
15201
15201
  Tt = (await ConnectionProvider.getHandler().readObjects({
15202
15202
  model: a,
15203
- ids: [et()],
15203
+ ids: [Ze()],
15204
15204
  fields: Le,
15205
15205
  context: y
15206
15206
  }))[0];
15207
15207
  const Rr = await ConnectionProvider.getHandler().search({
15208
- params: [["res_model", "=", a], ["res_id", "=", et()]],
15208
+ params: [["res_model", "=", a], ["res_id", "=", Ze()]],
15209
15209
  fields: ["id", "name"],
15210
15210
  context: Qt(),
15211
15211
  model: "ir.attachment"
15212
15212
  });
15213
- Ze == null || Ze(Rr);
15213
+ et == null || et(Rr);
15214
15214
  } else
15215
- Ze == null || Ze([]), Tt = await rr(Le), Pt = !0;
15215
+ et == null || et([]), Tt = await rr(Le), Pt = !0;
15216
15216
  return {
15217
15217
  values: Tt,
15218
15218
  defaultGetCalled: Pt
@@ -15221,15 +15221,15 @@ function Form(e, r) {
15221
15221
  const {
15222
15222
  callOnSubmitSucceed: Ae = !0
15223
15223
  } = Le || {};
15224
- if (et()) {
15224
+ if (Ze()) {
15225
15225
  const Tt = getTouchedValues({
15226
- source: G.current,
15226
+ source: z.current,
15227
15227
  target: $r(re),
15228
15228
  fields: re
15229
15229
  });
15230
15230
  await ConnectionProvider.getHandler().update({
15231
15231
  model: a,
15232
- id: et(),
15232
+ id: Ze(),
15233
15233
  values: {
15234
15234
  ...Tt,
15235
15235
  ...O
@@ -15239,7 +15239,7 @@ function Form(e, r) {
15239
15239
  ...y,
15240
15240
  ...N == null ? void 0 : N.context
15241
15241
  }
15242
- }), G.current = $r(re);
15242
+ }), z.current = $r(re);
15243
15243
  } else {
15244
15244
  const Tt = $r(re), Pt = await ConnectionProvider.getHandler().create({
15245
15245
  model: a,
@@ -15253,23 +15253,29 @@ function Form(e, r) {
15253
15253
  ...N == null ? void 0 : N.context
15254
15254
  }
15255
15255
  });
15256
- me.current = Pt, G.current = Tt;
15256
+ me.current = Pt, z.current = Tt;
15257
15257
  }
15258
- C && await C([et()]), !S && Ae && (_t == null || _t(et(), tr(), xt()));
15258
+ C && await C([Ze()]), !S && Ae && (_t == null || _t(Ze(), tr(), xt()));
15259
15259
  }, Xr = async (Le) => {
15260
15260
  const {
15261
15261
  callOnSubmitSucceed: Ae = !0
15262
15262
  } = Le || {};
15263
- !S && Ae && (_t == null || _t(et(), tr(), xt()));
15263
+ !S && Ae && (_t == null || _t(Ze(), tr(), xt()));
15264
15264
  }, cn = async (Le) => {
15265
15265
  let Ae = !1;
15266
15266
  const {
15267
15267
  callOnSubmitSucceed: Tt = !0
15268
15268
  } = Le || {};
15269
- if (ge.current = !0, B(void 0), !or() && et() && Tt)
15270
- return ge.current = !1, ve == null || ve(!1), qt == null || qt(), !0;
15269
+ if (ge.current = !0, B(void 0), !or() && Ze() && Tt)
15270
+ return ge.current = !1, ve == null || ve(!1), qt == null || qt(), {
15271
+ succeed: !0,
15272
+ id: Ze()
15273
+ };
15271
15274
  if (await Ur())
15272
- return ge.current = !1, showDialog$5(P), !1;
15275
+ return ge.current = !1, showDialog$5(P), {
15276
+ succeed: !1,
15277
+ id: Ze()
15278
+ };
15273
15279
  L(!0), Oe == null || Oe(!0);
15274
15280
  try {
15275
15281
  m === "api" ? await Hr(Le) : await Xr(Le), h && (me.current = void 0, _r({
@@ -15278,11 +15284,14 @@ function Form(e, r) {
15278
15284
  reset: !0
15279
15285
  })), await Yr(), Ae = !0;
15280
15286
  } catch (Pt) {
15281
- ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(z("errorWhileSavingForm")), B(Pt != null && Pt.message ? Pt.message : Pt);
15287
+ ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(G("errorWhileSavingForm")), B(Pt != null && Pt.message ? Pt.message : Pt);
15282
15288
  } finally {
15283
15289
  ge.current = !1, Oe == null || Oe(!1), L(!1);
15284
15290
  }
15285
- return Ae;
15291
+ return {
15292
+ succeed: Ae,
15293
+ id: Ze()
15294
+ };
15286
15295
  }, dn = ({
15287
15296
  fields: Le,
15288
15297
  arch: Ae,
@@ -15351,7 +15360,7 @@ function Form(e, r) {
15351
15360
  }), Pt = await ConnectionProvider.getHandler().executeOnChange({
15352
15361
  model: a,
15353
15362
  action: Ae.method,
15354
- ids: et() ? [et()] : [],
15363
+ ids: Ze() ? [Ze()] : [],
15355
15364
  payload: Tt,
15356
15365
  fields: re
15357
15366
  });
@@ -15398,7 +15407,7 @@ function Form(e, r) {
15398
15407
  const Tt = await ConnectionProvider.getHandler().execute({
15399
15408
  model: a,
15400
15409
  action: Le,
15401
- payload: [et()],
15410
+ payload: [Ze()],
15402
15411
  context: {
15403
15412
  ...Ae,
15404
15413
  ...N == null ? void 0 : N.context,
@@ -15406,9 +15415,9 @@ function Form(e, r) {
15406
15415
  }
15407
15416
  });
15408
15417
  if (typeof Tt == "object" && Tt !== null && Object.keys(Tt).length === 0 && S)
15409
- _t == null || _t(et(), tr(), xt());
15418
+ _t == null || _t(Ze(), tr(), xt());
15410
15419
  else if (Tt.type && Tt.type === "ir.actions.act_window_close")
15411
- _t == null || _t(et(), tr(), xt());
15420
+ _t == null || _t(Ze(), tr(), xt());
15412
15421
  else if (Tt.type) {
15413
15422
  let Pt = {};
15414
15423
  Tt.context && (Pt = parseContext({
@@ -15431,9 +15440,9 @@ function Form(e, r) {
15431
15440
  const Ae = await ConnectionProvider.getHandler().executeWorkflow({
15432
15441
  model: a,
15433
15442
  action: Le,
15434
- payload: et()
15443
+ payload: Ze()
15435
15444
  });
15436
- Ae.type && Ae.type === "ir.actions.act_window_close" ? _t == null || _t(et(), tr(), xt()) : await Yr();
15445
+ Ae.type && Ae.type === "ir.actions.act_window_close" ? _t == null || _t(Ze(), tr(), xt()) : await Yr();
15437
15446
  }
15438
15447
  async function $n({
15439
15448
  action: Le,
@@ -15468,7 +15477,7 @@ function Form(e, r) {
15468
15477
  Yr();
15469
15478
  }
15470
15479
  })) || {};
15471
- !T && Tt && (_t == null || _t(et(), tr(), xt()));
15480
+ !T && Tt && (_t == null || _t(Ze(), tr(), xt()));
15472
15481
  }
15473
15482
  function Vn() {
15474
15483
  mn({
@@ -15601,13 +15610,13 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
15601
15610
  res_id: T,
15602
15611
  action_type: E,
15603
15612
  view_id: O
15604
- } = c, z = await ConnectionProvider.getHandler().isShortcutFavorite({
15613
+ } = c, G = await ConnectionProvider.getHandler().isShortcutFavorite({
15605
15614
  action_id: w,
15606
15615
  action_type: E,
15607
15616
  view_id: O,
15608
15617
  res_id: T || !1
15609
15618
  });
15610
- g(z !== !1), z !== !1 && C(z);
15619
+ g(G !== !1), G !== !1 && C(G);
15611
15620
  }
15612
15621
  async function y() {
15613
15622
  if (m && v)
@@ -16070,7 +16079,7 @@ function SearchFilter(e) {
16070
16079
  const P = new SearchFilter$1(a, r);
16071
16080
  P.parse(), C(P._simpleSearchContainer), y(P._advancedSearchContainer);
16072
16081
  }, [r, a]);
16073
- const O = E(), z = (P) => {
16082
+ const O = E(), G = (P) => {
16074
16083
  const {
16075
16084
  limit: M,
16076
16085
  offset: L
@@ -16101,7 +16110,7 @@ function SearchFilter(e) {
16101
16110
  children: [/* @__PURE__ */ jsxs(Form$3, {
16102
16111
  className: "p-3 rounded shadow-md bg-gray-50",
16103
16112
  form: T,
16104
- onFinish: z,
16113
+ onFinish: G,
16105
16114
  initialValues: {
16106
16115
  offset: u,
16107
16116
  limit: c
@@ -16358,7 +16367,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
16358
16367
  }
16359
16368
  });
16360
16369
  }
16361
- function z(L) {
16370
+ function G(L) {
16362
16371
  c(!1), x == null || x({
16363
16372
  actionData: {
16364
16373
  ...L,
@@ -16391,7 +16400,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
16391
16400
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
16392
16401
  visible: u,
16393
16402
  items: (M = p == null ? void 0 : p.toolbar) == null ? void 0 : M.print,
16394
- onItemClicked: z,
16403
+ onItemClicked: G,
16395
16404
  onCancel: () => c(!1)
16396
16405
  })]
16397
16406
  });
@@ -16509,7 +16518,7 @@ function Tree(e) {
16509
16518
  childField: S,
16510
16519
  rootTree: y = !1,
16511
16520
  context: x
16512
- } = e, [w, T] = useState$1([]), [E, O] = useState$1([]), z = useRef(!1), P = useRef(null), {
16521
+ } = e, [w, T] = useState$1([]), [E, O] = useState$1([]), G = useRef(!1), P = useRef(null), {
16513
16522
  t: M
16514
16523
  } = useContext(LocaleContext), L = useRef(a), W = useContext(ActionViewContext), {
16515
16524
  title: B = void 0,
@@ -16534,7 +16543,7 @@ function Tree(e) {
16534
16543
  }, x);
16535
16544
  O(Q), P.current.string && B !== P.current.string && (N == null || N(P.current.string));
16536
16545
  }, [s]), useEffect(() => {
16537
- z.current = !1;
16546
+ G.current = !1;
16538
16547
  const Q = getTableItems(P.current, l);
16539
16548
  T(Q), L.current = a;
16540
16549
  }, [l]);
@@ -16558,16 +16567,16 @@ function Tree(e) {
16558
16567
  });
16559
16568
  function re() {
16560
16569
  var me;
16561
- const ae = P.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
16562
- label: G.sum,
16563
- field: G.id
16570
+ const ae = P.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
16571
+ label: z.sum,
16572
+ field: z.id
16564
16573
  }));
16565
16574
  if (!ae || ae.length === 0)
16566
16575
  return null;
16567
- let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((G) => p == null ? void 0 : p.selectedRowKeys.includes(G.id)) : w;
16568
- return ae.forEach((G) => {
16569
- const te = ce.reduce((he, ge) => ge[G.field] && !isNaN(ge[G.field]) ? he + ge[G.field] : he, 0);
16570
- oe.push(`${G.label}: ${Math.round(te * 100) / 100}`);
16576
+ let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((z) => p == null ? void 0 : p.selectedRowKeys.includes(z.id)) : w;
16577
+ return ae.forEach((z) => {
16578
+ const te = ce.reduce((he, ge) => ge[z.field] && !isNaN(ge[z.field]) ? he + ge[z.field] : he, 0);
16579
+ oe.push(`${z.label}: ${Math.round(te * 100) / 100}`);
16571
16580
  }), /* @__PURE__ */ jsx("div", {
16572
16581
  className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
16573
16582
  children: oe.join(", ")
@@ -16623,7 +16632,7 @@ function SearchTree(e, r) {
16623
16632
  rootTree: p = !1,
16624
16633
  parentContext: h = {},
16625
16634
  onChangeSelectedRowKeys: m
16626
- } = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, z] = useState$1(), [P, M] = useState$1(), [L, W] = useState$1(200), B = useRef(), {
16635
+ } = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, G] = useState$1(), [P, M] = useState$1(), [L, W] = useState$1(200), B = useRef(), {
16627
16636
  height: N
16628
16637
  } = useWindowDimensions(), J = useContext(ContentRootContext), {
16629
16638
  processAction: U
@@ -16637,7 +16646,7 @@ function SearchTree(e, r) {
16637
16646
  searchParams: oe = [],
16638
16647
  setSearchParams: ce = void 0,
16639
16648
  searchVisible: me = !0,
16640
- setSearchVisible: G = void 0,
16649
+ setSearchVisible: z = void 0,
16641
16650
  sorter: te = void 0,
16642
16651
  setSorter: he = void 0,
16643
16652
  setTotalItems: ge = void 0,
@@ -16651,7 +16660,7 @@ function SearchTree(e, r) {
16651
16660
  submit: ve,
16652
16661
  clear: Pe,
16653
16662
  fetchResults: Fe,
16654
- tableRefreshing: Ze,
16663
+ tableRefreshing: et,
16655
16664
  searchFilterLoading: Xt,
16656
16665
  searchError: Zt,
16657
16666
  page: er,
@@ -16660,7 +16669,7 @@ function SearchTree(e, r) {
16660
16669
  requestPageChange: _t,
16661
16670
  changeSort: qt,
16662
16671
  fetchChildrenForRecord: kt,
16663
- colorsForResults: et,
16672
+ colorsForResults: Ze,
16664
16673
  totalItems: Yt
16665
16674
  } = useSearch({
16666
16675
  model: x,
@@ -16669,7 +16678,7 @@ function SearchTree(e, r) {
16669
16678
  setSearchParams: ce,
16670
16679
  setSearchValues: pe,
16671
16680
  searchParams: oe,
16672
- setSearchVisible: G,
16681
+ setSearchVisible: z,
16673
16682
  setTreeIsLoading: D,
16674
16683
  nameSearch: u,
16675
16684
  searchNameGetDoneRef: y,
@@ -16718,7 +16727,7 @@ function SearchTree(e, r) {
16718
16727
  model: a,
16719
16728
  type: "tree",
16720
16729
  context: h
16721
- })), z(Ar), E(Ur);
16730
+ })), G(Ar), E(Ur);
16722
16731
  };
16723
16732
  useEffect(() => {
16724
16733
  tr();
@@ -16795,10 +16804,10 @@ function SearchTree(e, r) {
16795
16804
  treeView: T,
16796
16805
  results: Ht(),
16797
16806
  onRequestPageChange: _t,
16798
- loading: Ze,
16807
+ loading: et,
16799
16808
  onRowClicked: Jt,
16800
16809
  scrollY: c || or(),
16801
- colorsForResults: et,
16810
+ colorsForResults: Ze,
16802
16811
  rowSelection: {
16803
16812
  selectedRowKeys: Q == null ? void 0 : Q.map((Ar) => Ar.id),
16804
16813
  onChange: rr
@@ -16953,14 +16962,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
16953
16962
  context: c,
16954
16963
  id: d,
16955
16964
  domain: f
16956
- } = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(), z = useContext(FormContext$2), {
16965
+ } = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(), G = useContext(FormContext$2), {
16957
16966
  domain: P,
16958
16967
  getValues: M,
16959
16968
  getFields: L,
16960
16969
  getContext: W,
16961
16970
  setOriginalValue: B,
16962
16971
  elementHasLostFocus: N
16963
- } = z || {}, J = useRef([]), [U, H] = useState$1([]), K = r && r[0] || void 0, re = r && r[1] || "";
16972
+ } = G || {}, J = useRef([]), [U, H] = useState$1([]), K = r && r[0] || void 0, re = r && r[1] || "";
16964
16973
  useEffect(() => {
16965
16974
  !Array.isArray(r) && r && oe(r);
16966
16975
  }, [r]), useEffect(() => {
@@ -18163,8 +18172,8 @@ function doAlign(e, r, a, o) {
18163
18172
  var T = flip(s, /[tb]/gi, {
18164
18173
  t: "b",
18165
18174
  b: "t"
18166
- }), E = flipOffset(l, 1), O = flipOffset(u, 1), z = getElFuturePos(g, r, T, E, O);
18167
- isCompleteFailY(z, g, m) || (p = 1, s = T, l = E, u = O);
18175
+ }), E = flipOffset(l, 1), O = flipOffset(u, 1), G = getElFuturePos(g, r, T, E, O);
18176
+ isCompleteFailY(G, g, m) || (p = 1, s = T, l = E, u = O);
18168
18177
  }
18169
18178
  p && (v = getElFuturePos(g, r, s, l, u), utils.mix(C, v));
18170
18179
  var P = isFailX(v, g, m), M = isFailY(v, g, m);
@@ -18809,8 +18818,8 @@ var Align = function e(r, a) {
18809
18818
  var o = r.children, s = r.disabled, l = r.target, u = r.align, c = r.onAlign, d = r.monitorWindowResize, f = r.monitorBufferTime, p = f === void 0 ? 0 : f, h = React__default.useRef({}), m = React__default.useRef(), g = React__default.Children.only(o), v = React__default.useRef({});
18810
18819
  v.current.disabled = s, v.current.target = l, v.current.align = u, v.current.onAlign = c;
18811
18820
  var C = useBuffer(function() {
18812
- var O = v.current, z = O.disabled, P = O.target, M = O.align, L = O.onAlign;
18813
- if (!z && P) {
18821
+ var O = v.current, G = O.disabled, P = O.target, M = O.align, L = O.onAlign;
18822
+ if (!G && P) {
18814
18823
  var W = m.current, B, N = getElement(P), J = getPoint(P);
18815
18824
  h.current.element = N, h.current.point = J, h.current.align = M;
18816
18825
  var U = document, H = U.activeElement;
@@ -18825,8 +18834,8 @@ var Align = function e(r, a) {
18825
18834
  }
18826
18835
  });
18827
18836
  React__default.useEffect(function() {
18828
- var O = getElement(l), z = getPoint(l);
18829
- m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point, z) || !isEqual_1(h.current.align, u)) && (y(), w.current.element !== O && (w.current.cancel(), w.current.element = O, w.current.cancel = monitorResize(O, y)));
18837
+ var O = getElement(l), G = getPoint(l);
18838
+ m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point, G) || !isEqual_1(h.current.align, u)) && (y(), w.current.element !== O && (w.current.cancel(), w.current.element = O, w.current.cancel = monitorResize(O, y)));
18830
18839
  }), React__default.useEffect(function() {
18831
18840
  s ? x() : y();
18832
18841
  }, [s]);
@@ -18919,7 +18928,7 @@ const useVisibleStatus = function(e, r) {
18919
18928
  return [u, l];
18920
18929
  };
18921
18930
  var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
18922
- var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(), z = useState$1(), P = _slicedToArray(z, 2), M = P[0], L = P[1], W = useStretchStyle(d), B = _slicedToArray(W, 2), N = B[0], J = B[1];
18931
+ var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(), G = useState$1(), P = _slicedToArray(G, 2), M = P[0], L = P[1], W = useStretchStyle(d), B = _slicedToArray(W, 2), N = B[0], J = B[1];
18923
18932
  function U() {
18924
18933
  d && J(g());
18925
18934
  }
@@ -18930,7 +18939,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
18930
18939
  function me() {
18931
18940
  return m || g;
18932
18941
  }
18933
- function G() {
18942
+ function z() {
18934
18943
  var pe;
18935
18944
  (pe = E.current) === null || pe === void 0 || pe.forceAlign();
18936
18945
  }
@@ -18941,7 +18950,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
18941
18950
  }), re === "align" && (C == null || C(pe, Re));
18942
18951
  }
18943
18952
  useLayoutEffect$2(function() {
18944
- re === "align" && (ae < 3 ? G() : ie(function() {
18953
+ re === "align" && (ae < 3 ? z() : ie(function() {
18945
18954
  var pe;
18946
18955
  (pe = ce.current) === null || pe === void 0 || pe.call(ce);
18947
18956
  }));
@@ -18962,7 +18971,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
18962
18971
  !he.motionName && re === "motion" && ie();
18963
18972
  }, [he.motionName, re]), React$n.useImperativeHandle(r, function() {
18964
18973
  return {
18965
- forceAlign: G,
18974
+ forceAlign: z,
18966
18975
  getElement: function() {
18967
18976
  return O.current;
18968
18977
  }
@@ -19148,7 +19157,7 @@ function generateTrigger(e) {
19148
19157
  var f = [], p = u.props, h = p.popupPlacement, m = p.builtinPlacements, g = p.prefixCls, v = p.alignPoint, C = p.getPopupClassNameFromAlign;
19149
19158
  return h && m && f.push(getAlignPopupClassName(m, g, d, v)), C && f.push(C(d)), f.join(" ");
19150
19159
  }), _defineProperty$1(_assertThisInitialized(u), "getComponent", function() {
19151
- var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup, z = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender, W = d.onPopupClick, B = u.state, N = B.popupVisible, J = B.point, U = u.getPopupAlign(), H = {};
19160
+ var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup, G = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender, W = d.onPopupClick, B = u.state, N = B.popupVisible, J = B.point, U = u.getPopupAlign(), H = {};
19152
19161
  return u.isMouseEnterToShow() && (H.onMouseEnter = u.onPopupMouseEnter), u.isMouseLeaveToHide() && (H.onMouseLeave = u.onPopupMouseLeave), H.onMouseDown = u.onPopupMouseDown, H.onTouchStart = u.onPopupMouseDown, /* @__PURE__ */ jsx(Popup$1, {
19153
19162
  prefixCls: f,
19154
19163
  destroyPopupOnHide: p,
@@ -19160,7 +19169,7 @@ function generateTrigger(e) {
19160
19169
  animation: v,
19161
19170
  getClassNameFromAlign: u.getPopupClassNameFromAlign,
19162
19171
  ...H,
19163
- stretch: z,
19172
+ stretch: G,
19164
19173
  getRootDomNode: u.getRootDomNode,
19165
19174
  style: S,
19166
19175
  mask: y,
@@ -19502,7 +19511,7 @@ function Popup(e) {
19502
19511
  });
19503
19512
  }
19504
19513
  var Tooltip = function e(r, a) {
19505
- var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E, z = r.destroyTooltipOnHide, P = z === void 0 ? !1 : z, M = r.defaultVisible, L = r.getTooltipContainer, W = r.overlayInnerStyle, B = r.arrowContent, N = r.overlay, J = r.id, U = r.showArrow, H = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]), K = useRef(null);
19514
+ var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E, G = r.destroyTooltipOnHide, P = G === void 0 ? !1 : G, M = r.defaultVisible, L = r.getTooltipContainer, W = r.overlayInnerStyle, B = r.arrowContent, N = r.overlay, J = r.id, U = r.showArrow, H = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]), K = useRef(null);
19506
19515
  useImperativeHandle(a, function() {
19507
19516
  return K.current;
19508
19517
  });
@@ -19776,24 +19785,24 @@ placements$1.default = _default$1;
19776
19785
  Object.defineProperty(e, "__esModule", {
19777
19786
  value: !0
19778
19787
  }), e.default = void 0;
19779
- var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O, z) {
19788
+ var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O, G) {
19780
19789
  var P = {};
19781
19790
  for (var M in O)
19782
- Object.prototype.hasOwnProperty.call(O, M) && z.indexOf(M) < 0 && (P[M] = O[M]);
19791
+ Object.prototype.hasOwnProperty.call(O, M) && G.indexOf(M) < 0 && (P[M] = O[M]);
19783
19792
  if (O != null && typeof Object.getOwnPropertySymbols == "function")
19784
19793
  for (var L = 0, M = Object.getOwnPropertySymbols(O); L < M.length; L++)
19785
- z.indexOf(M[L]) < 0 && Object.prototype.propertyIsEnumerable.call(O, M[L]) && (P[M[L]] = O[M[L]]);
19794
+ G.indexOf(M[L]) < 0 && Object.prototype.propertyIsEnumerable.call(O, M[L]) && (P[M[L]] = O[M[L]]);
19786
19795
  return P;
19787
- }, y = function(z, P) {
19788
- var M = {}, L = (0, l.default)({}, z);
19796
+ }, y = function(G, P) {
19797
+ var M = {}, L = (0, l.default)({}, G);
19789
19798
  return P.forEach(function(W) {
19790
- z && W in z && (M[W] = z[W], delete L[W]);
19799
+ G && W in G && (M[W] = G[W], delete L[W]);
19791
19800
  }), {
19792
19801
  picked: M,
19793
19802
  omitted: L
19794
19803
  };
19795
19804
  }, x = new RegExp("^(".concat(h.PresetColorTypes.join("|"), ")(-inverse)?$"));
19796
- function w(O, z) {
19805
+ function w(O, G) {
19797
19806
  var P = O.type;
19798
19807
  if ((P.__ANT_BUTTON === !0 || O.type === "button") && O.props.disabled || P.__ANT_SWITCH === !0 && (O.props.disabled || O.props.loading) || P.__ANT_RADIO === !0 && O.props.disabled) {
19799
19808
  var M = y(O.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), L = M.picked, W = M.omitted, B = (0, l.default)((0, l.default)({
@@ -19809,49 +19818,49 @@ placements$1.default = _default$1;
19809
19818
  });
19810
19819
  return /* @__PURE__ */ f.createElement("span", {
19811
19820
  style: B,
19812
- className: (0, u.default)(O.props.className, "".concat(z, "-disabled-compatible-wrapper"))
19821
+ className: (0, u.default)(O.props.className, "".concat(G, "-disabled-compatible-wrapper"))
19813
19822
  }, J);
19814
19823
  }
19815
19824
  return O;
19816
19825
  }
19817
- var T = /* @__PURE__ */ f.forwardRef(function(O, z) {
19826
+ var T = /* @__PURE__ */ f.forwardRef(function(O, G) {
19818
19827
  var P, M = f.useContext(p.ConfigContext), L = M.getPopupContainer, W = M.getPrefixCls, B = M.direction;
19819
19828
  process.env.NODE_ENV !== "production" && [["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"]].forEach(function(qt) {
19820
- var kt = (0, s.default)(qt, 2), et = kt[0], Yt = kt[1];
19821
- process.env.NODE_ENV !== "production" && (0, C.default)(!(et in O), "Tooltip", "`".concat(et, "` is deprecated which will be removed in next major version, please use `").concat(Yt, "` instead."));
19829
+ var kt = (0, s.default)(qt, 2), Ze = kt[0], Yt = kt[1];
19830
+ process.env.NODE_ENV !== "production" && (0, C.default)(!(Ze in O), "Tooltip", "`".concat(Ze, "` is deprecated which will be removed in next major version, please use `").concat(Yt, "` instead."));
19822
19831
  });
19823
19832
  var N = (0, d.default)(!1, {
19824
19833
  value: O.open !== void 0 ? O.open : O.visible,
19825
19834
  defaultValue: O.defaultOpen !== void 0 ? O.defaultOpen : O.defaultVisible
19826
19835
  }), J = (0, s.default)(N, 2), U = J[0], H = J[1], K = function() {
19827
- var kt = O.title, et = O.overlay;
19828
- return !kt && !et && kt !== 0;
19836
+ var kt = O.title, Ze = O.overlay;
19837
+ return !kt && !Ze && kt !== 0;
19829
19838
  }, re = function(kt) {
19830
- var et, Yt;
19831
- H(K() ? !1 : kt), K() || ((et = O.onOpenChange) === null || et === void 0 || et.call(O, kt), (Yt = O.onVisibleChange) === null || Yt === void 0 || Yt.call(O, kt));
19839
+ var Ze, Yt;
19840
+ H(K() ? !1 : kt), K() || ((Ze = O.onOpenChange) === null || Ze === void 0 || Ze.call(O, kt), (Yt = O.onVisibleChange) === null || Yt === void 0 || Yt.call(O, kt));
19832
19841
  }, ie = function() {
19833
- var kt = O.builtinPlacements, et = O.arrowPointAtCenter, Yt = et === void 0 ? !1 : et, tr = O.autoAdjustOverflow, it = tr === void 0 ? !0 : tr;
19842
+ var kt = O.builtinPlacements, Ze = O.arrowPointAtCenter, Yt = Ze === void 0 ? !1 : Ze, tr = O.autoAdjustOverflow, it = tr === void 0 ? !0 : tr;
19834
19843
  return kt || (0, g.default)({
19835
19844
  arrowPointAtCenter: Yt,
19836
19845
  autoAdjustOverflow: it
19837
19846
  });
19838
- }, ne = function(kt, et) {
19847
+ }, ne = function(kt, Ze) {
19839
19848
  var Yt = ie(), tr = Object.keys(Yt).find(function(Qt) {
19840
19849
  var Jt, rr;
19841
- return Yt[Qt].points[0] === ((Jt = et.points) === null || Jt === void 0 ? void 0 : Jt[0]) && Yt[Qt].points[1] === ((rr = et.points) === null || rr === void 0 ? void 0 : rr[1]);
19850
+ return Yt[Qt].points[0] === ((Jt = Ze.points) === null || Jt === void 0 ? void 0 : Jt[0]) && Yt[Qt].points[1] === ((rr = Ze.points) === null || rr === void 0 ? void 0 : rr[1]);
19842
19851
  });
19843
19852
  if (!!tr) {
19844
19853
  var it = kt.getBoundingClientRect(), xt = {
19845
19854
  top: "50%",
19846
19855
  left: "50%"
19847
19856
  };
19848
- /top|Bottom/.test(tr) ? xt.top = "".concat(it.height - et.offset[1], "px") : /Top|bottom/.test(tr) && (xt.top = "".concat(-et.offset[1], "px")), /left|Right/.test(tr) ? xt.left = "".concat(it.width - et.offset[0], "px") : /right|Left/.test(tr) && (xt.left = "".concat(-et.offset[0], "px")), kt.style.transformOrigin = "".concat(xt.left, " ").concat(xt.top);
19857
+ /top|Bottom/.test(tr) ? xt.top = "".concat(it.height - Ze.offset[1], "px") : /Top|bottom/.test(tr) && (xt.top = "".concat(-Ze.offset[1], "px")), /left|Right/.test(tr) ? xt.left = "".concat(it.width - Ze.offset[0], "px") : /right|Left/.test(tr) && (xt.left = "".concat(-Ze.offset[0], "px")), kt.style.transformOrigin = "".concat(xt.left, " ").concat(xt.top);
19849
19858
  }
19850
19859
  }, Q = function() {
19851
- var kt = O.title, et = O.overlay;
19852
- return kt === 0 ? kt : et || kt || "";
19853
- }, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, G = me === void 0 ? 0.1 : me, te = O.mouseLeaveDelay, he = te === void 0 ? 0.1 : te, ge = S(O, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), Te = O.prefixCls, D = O.openClassName, I = O.getTooltipContainer, pe = O.overlayClassName, Re = O.color, Oe = O.overlayInnerStyle, ve = O.children, Pe = W("tooltip", Te), Fe = W(), Ze = U;
19854
- !("open" in O) && !("visible" in O) && K() && (Ze = !1);
19860
+ var kt = O.title, Ze = O.overlay;
19861
+ return kt === 0 ? kt : Ze || kt || "";
19862
+ }, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, z = me === void 0 ? 0.1 : me, te = O.mouseLeaveDelay, he = te === void 0 ? 0.1 : te, ge = S(O, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), Te = O.prefixCls, D = O.openClassName, I = O.getTooltipContainer, pe = O.overlayClassName, Re = O.color, Oe = O.overlayInnerStyle, ve = O.children, Pe = W("tooltip", Te), Fe = W(), et = U;
19863
+ !("open" in O) && !("visible" in O) && K() && (et = !1);
19855
19864
  var Xt = w((0, v.isValidElement)(ve) && !(0, v.isFragment)(ve) ? ve : /* @__PURE__ */ f.createElement("span", null, ve), Pe), Zt = Xt.props, er = !Zt.className || typeof Zt.className == "string" ? (0, u.default)(Zt.className, (0, o.default)({}, D || "".concat(Pe, "-open"), !0)) : Zt.className, qe = (0, u.default)(pe, (P = {}, (0, o.default)(P, "".concat(Pe, "-rtl"), B === "rtl"), (0, o.default)(P, "".concat(Pe, "-").concat(Re), Re && x.test(Re)), P)), Ht = Oe, _t = {};
19856
19865
  return Re && !x.test(Re) && (Ht = (0, l.default)((0, l.default)({}, Oe), {
19857
19866
  background: Re
@@ -19859,15 +19868,15 @@ placements$1.default = _default$1;
19859
19868
  "--antd-arrow-background-color": Re
19860
19869
  }), /* @__PURE__ */ f.createElement(c.default, (0, l.default)({}, ge, {
19861
19870
  placement: ce,
19862
- mouseEnterDelay: G,
19871
+ mouseEnterDelay: z,
19863
19872
  mouseLeaveDelay: he,
19864
19873
  prefixCls: Pe,
19865
19874
  overlayClassName: qe,
19866
19875
  getTooltipContainer: ae || I || L,
19867
- ref: z,
19876
+ ref: G,
19868
19877
  builtinPlacements: ie(),
19869
19878
  overlay: Q(),
19870
- visible: Ze,
19879
+ visible: et,
19871
19880
  onVisibleChange: re,
19872
19881
  onPopupAlign: ne,
19873
19882
  overlayInnerStyle: Ht,
@@ -19879,7 +19888,7 @@ placements$1.default = _default$1;
19879
19888
  motionName: (0, m.getTransitionName)(Fe, "zoom-big-fast", O.transitionName),
19880
19889
  motionDeadline: 1e3
19881
19890
  }
19882
- }), Ze ? (0, v.cloneElement)(Xt, {
19891
+ }), et ? (0, v.cloneElement)(Xt, {
19883
19892
  className: er
19884
19893
  }) : Xt);
19885
19894
  });
@@ -19926,10 +19935,10 @@ EnterOutlined$2.default = _default;
19926
19935
  value: !0
19927
19936
  }), e.default = void 0;
19928
19937
  var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(EnterOutlined$3.exports), u = a(classnames.exports), c = a(KeyCode$1), d = r(React__default), f = a(TextArea$2), p = reactNode, h = function(v) {
19929
- var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E, z = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd, W = v.component, B = v.enterIcon, N = B === void 0 ? /* @__PURE__ */ d.createElement(l.default, null) : B, J = d.useRef(null), U = d.useRef(!1), H = d.useRef(), K = d.useState(z), re = (0, s.default)(K, 2), ie = re[0], ne = re[1];
19938
+ var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E, G = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd, W = v.component, B = v.enterIcon, N = B === void 0 ? /* @__PURE__ */ d.createElement(l.default, null) : B, J = d.useRef(null), U = d.useRef(!1), H = d.useRef(), K = d.useState(G), re = (0, s.default)(K, 2), ie = re[0], ne = re[1];
19930
19939
  d.useEffect(function() {
19931
- ne(z);
19932
- }, [z]), d.useEffect(function() {
19940
+ ne(G);
19941
+ }, [G]), d.useEffect(function() {
19933
19942
  if (J.current && J.current.resizableTextArea) {
19934
19943
  var Te = J.current.resizableTextArea.textArea;
19935
19944
  Te.focus();
@@ -19949,7 +19958,7 @@ EnterOutlined$2.default = _default;
19949
19958
  U.current || (H.current = I);
19950
19959
  }, me = function() {
19951
19960
  P(ie.trim());
19952
- }, G = function(D) {
19961
+ }, z = function(D) {
19953
19962
  var I = D.keyCode, pe = D.ctrlKey, Re = D.altKey, Oe = D.metaKey, ve = D.shiftKey;
19954
19963
  H.current === I && !U.current && !pe && !Re && !Oe && !ve && (I === c.default.ENTER ? (me(), L == null || L()) : I === c.default.ESC && M());
19955
19964
  }, te = function() {
@@ -19964,7 +19973,7 @@ EnterOutlined$2.default = _default;
19964
19973
  value: ie,
19965
19974
  onChange: Q,
19966
19975
  onKeyDown: ce,
19967
- onKeyUp: G,
19976
+ onKeyUp: z,
19968
19977
  onCompositionStart: ae,
19969
19978
  onCompositionEnd: oe,
19970
19979
  onBlur: te,
@@ -20020,7 +20029,7 @@ var Typography = {};
20020
20029
  v.indexOf(S[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, S[y]) && (C[S[y]] = g[S[y]]);
20021
20030
  return C;
20022
20031
  }, h = /* @__PURE__ */ c.forwardRef(function(g, v) {
20023
- var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]), z = c.useContext(d.ConfigContext), P = z.getPrefixCls, M = z.direction, L = E != null ? E : M, W = v;
20032
+ var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]), G = c.useContext(d.ConfigContext), P = G.getPrefixCls, M = G.direction, L = E != null ? E : M, W = v;
20024
20033
  w && (process.env.NODE_ENV !== "production" && (0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), W = (0, u.composeRef)(v, w));
20025
20034
  var B = P("typography", C), N = (0, l.default)(B, (0, s.default)({}, "".concat(B, "-rtl"), L === "rtl"), x);
20026
20035
  return /* @__PURE__ */ c.createElement(y, (0, o.default)({
@@ -20050,10 +20059,10 @@ var Ellipsis = {};
20050
20059
  }), T;
20051
20060
  }
20052
20061
  function h(w, T) {
20053
- for (var E = 0, O = [], z = 0; z < w.length; z += 1) {
20062
+ for (var E = 0, O = [], G = 0; G < w.length; G += 1) {
20054
20063
  if (E === T)
20055
20064
  return O;
20056
- var P = w[z], M = f(P), L = M ? String(P).length : 1, W = E + L;
20065
+ var P = w[G], M = f(P), L = M ? String(P).length : 1, W = E + L;
20057
20066
  if (W > T) {
20058
20067
  var B = T - E;
20059
20068
  return O.push(String(P).slice(0, B)), O;
@@ -20063,18 +20072,18 @@ var Ellipsis = {};
20063
20072
  return w;
20064
20073
  }
20065
20074
  var m = 0, g = 1, v = 2, C = 3, S = 4, y = function(T) {
20066
- var E = T.enabledMeasure, O = T.children, z = T.text, P = T.width, M = T.fontSize, L = T.rows, W = T.onEllipsis, B = d.useState([0, 0, 0]), N = (0, s.default)(B, 2), J = (0, s.default)(N[0], 3), U = J[0], H = J[1], K = J[2], re = N[1], ie = d.useState(m), ne = (0, s.default)(ie, 2), Q = ne[0], ae = ne[1], oe = d.useState(0), ce = (0, s.default)(oe, 2), me = ce[0], G = ce[1], te = d.useRef(null), he = d.useRef(null), ge = d.useMemo(function() {
20067
- return (0, u.default)(z);
20068
- }, [z]), Te = d.useMemo(function() {
20075
+ var E = T.enabledMeasure, O = T.children, G = T.text, P = T.width, M = T.fontSize, L = T.rows, W = T.onEllipsis, B = d.useState([0, 0, 0]), N = (0, s.default)(B, 2), J = (0, s.default)(N[0], 3), U = J[0], H = J[1], K = J[2], re = N[1], ie = d.useState(m), ne = (0, s.default)(ie, 2), Q = ne[0], ae = ne[1], oe = d.useState(0), ce = (0, s.default)(oe, 2), me = ce[0], z = ce[1], te = d.useRef(null), he = d.useRef(null), ge = d.useMemo(function() {
20076
+ return (0, u.default)(G);
20077
+ }, [G]), Te = d.useMemo(function() {
20069
20078
  return p(ge);
20070
20079
  }, [ge]), D = d.useMemo(function() {
20071
20080
  return !E || Q !== C ? O(ge, !1) : O(h(ge, H), H < Te);
20072
20081
  }, [E, Q, O, ge, H, Te]);
20073
20082
  (0, c.default)(function() {
20074
20083
  E && P && M && Te && (ae(g), re([0, Math.ceil(Te / 2), Te]));
20075
- }, [E, P, M, z, Te, L]), (0, c.default)(function() {
20084
+ }, [E, P, M, G, Te, L]), (0, c.default)(function() {
20076
20085
  var Oe;
20077
- Q === g && G(((Oe = te.current) === null || Oe === void 0 ? void 0 : Oe.offsetHeight) || 0);
20086
+ Q === g && z(((Oe = te.current) === null || Oe === void 0 ? void 0 : Oe.offsetHeight) || 0);
20078
20087
  }, [Q]), (0, c.default)(function() {
20079
20088
  var Oe, ve;
20080
20089
  if (me) {
@@ -20083,8 +20092,8 @@ var Ellipsis = {};
20083
20092
  Pe <= Fe ? (ae(S), W(!1)) : ae(v);
20084
20093
  } else if (Q === v)
20085
20094
  if (U !== K) {
20086
- var Ze = ((ve = he.current) === null || ve === void 0 ? void 0 : ve.offsetHeight) || 0, Xt = L * me, Zt = U, er = K;
20087
- U === K - 1 ? er = U : Ze <= Xt ? Zt = H : er = H;
20095
+ var et = ((ve = he.current) === null || ve === void 0 ? void 0 : ve.offsetHeight) || 0, Xt = L * me, Zt = U, er = K;
20096
+ U === K - 1 ? er = U : et <= Xt ? Zt = H : er = H;
20088
20097
  var qe = Math.ceil((Zt + er) / 2);
20089
20098
  re([Zt, qe, er]);
20090
20099
  } else
@@ -20145,7 +20154,7 @@ var EllipsisTooltip = {};
20145
20154
  Object.defineProperty(e, "__esModule", {
20146
20155
  value: !0
20147
20156
  }), e.default = void 0;
20148
- var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1, z = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect), W = a(Typography), B = a(Ellipsis), N = a(EllipsisTooltip), J = function(Q, ae) {
20157
+ var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1, G = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect), W = a(Typography), B = a(Ellipsis), N = a(EllipsisTooltip), J = function(Q, ae) {
20149
20158
  var oe = {};
20150
20159
  for (var ce in Q)
20151
20160
  Object.prototype.hasOwnProperty.call(Q, ce) && ae.indexOf(ce) < 0 && (oe[ce] = Q[ce]);
@@ -20155,11 +20164,11 @@ var EllipsisTooltip = {};
20155
20164
  return oe;
20156
20165
  };
20157
20166
  function U(Q, ae) {
20158
- var oe = Q.mark, ce = Q.code, me = Q.underline, G = Q.delete, te = Q.strong, he = Q.keyboard, ge = Q.italic, Te = ae;
20167
+ var oe = Q.mark, ce = Q.code, me = Q.underline, z = Q.delete, te = Q.strong, he = Q.keyboard, ge = Q.italic, Te = ae;
20159
20168
  function D(I, pe) {
20160
20169
  !I || (Te = /* @__PURE__ */ x.createElement(pe, {}, Te));
20161
20170
  }
20162
- return D(te, "strong"), D(me, "u"), D(G, "del"), D(ce, "code"), D(oe, "mark"), D(he, "kbd"), D(ge, "i"), Te;
20171
+ return D(te, "strong"), D(me, "u"), D(z, "del"), D(ce, "code"), D(oe, "mark"), D(he, "kbd"), D(ge, "i"), Te;
20163
20172
  }
20164
20173
  function H(Q, ae, oe) {
20165
20174
  return Q === !0 || Q === void 0 ? ae : Q || oe && ae;
@@ -20168,7 +20177,7 @@ var EllipsisTooltip = {};
20168
20177
  return Q === !1 ? [!1, !1] : Array.isArray(Q) ? Q : [Q];
20169
20178
  }
20170
20179
  var re = "...", ie = /* @__PURE__ */ x.forwardRef(function(Q, ae) {
20171
- var oe, ce, me, G = Q.prefixCls, te = Q.className, he = Q.style, ge = Q.type, Te = Q.disabled, D = Q.children, I = Q.ellipsis, pe = Q.editable, Re = Q.copyable, Oe = Q.component, ve = Q.title, Pe = J(Q, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), Fe = x.useContext(w.ConfigContext), Ze = Fe.getPrefixCls, Xt = Fe.direction, Zt = (0, T.useLocaleReceiver)("Text")[0], er = x.useRef(null), qe = x.useRef(null), Ht = Ze("typography", G), _t = (0, S.default)(Pe, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), qt = (0, M.default)(pe), kt = (0, u.default)(qt, 2), et = kt[0], Yt = kt[1], tr = (0, C.default)(!1, {
20180
+ var oe, ce, me, z = Q.prefixCls, te = Q.className, he = Q.style, ge = Q.type, Te = Q.disabled, D = Q.children, I = Q.ellipsis, pe = Q.editable, Re = Q.copyable, Oe = Q.component, ve = Q.title, Pe = J(Q, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), Fe = x.useContext(w.ConfigContext), et = Fe.getPrefixCls, Xt = Fe.direction, Zt = (0, T.useLocaleReceiver)("Text")[0], er = x.useRef(null), qe = x.useRef(null), Ht = et("typography", z), _t = (0, S.default)(Pe, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), qt = (0, M.default)(pe), kt = (0, u.default)(qt, 2), Ze = kt[0], Yt = kt[1], tr = (0, C.default)(!1, {
20172
20181
  value: Yt.editing
20173
20182
  }), it = (0, u.default)(tr, 2), xt = it[0], Qt = it[1], Jt = Yt.triggerType, rr = Jt === void 0 ? ["icon"] : Jt, or = function(jt) {
20174
20183
  var ar;
@@ -20202,8 +20211,8 @@ var EllipsisTooltip = {};
20202
20211
  var mn = x.useState(!1), yn = (0, u.default)(mn, 2), _n = yn[0], Nn = yn[1], Ln = x.useState(!1), bn = (0, u.default)(Ln, 2), $n = bn[0], On = bn[1], Vn = x.useState(!1), Pn = (0, u.default)(Vn, 2), qn = Pn[0], Un = Pn[1], Le = x.useState(!1), Ae = (0, u.default)(Le, 2), Tt = Ae[0], Pt = Ae[1], Rr = x.useState(!1), an = (0, u.default)(Rr, 2), fn = an[0], Bn = an[1], gn = x.useState(!0), Fn = (0, u.default)(gn, 2), Kn = Fn[0], Xn = Fn[1], Zn = (0, M.default)(I, {
20203
20212
  expandable: !1
20204
20213
  }), Wn = (0, u.default)(Zn, 2), ln = Wn[0], zr = Wn[1], rn = ln && !qn, Hn = zr.rows, pn = Hn === void 0 ? 1 : Hn, Mn = x.useMemo(function() {
20205
- return !rn || zr.suffix !== void 0 || zr.onEllipsis || zr.expandable || et || Yr;
20206
- }, [rn, zr, et, Yr]);
20214
+ return !rn || zr.suffix !== void 0 || zr.onEllipsis || zr.expandable || Ze || Yr;
20215
+ }, [rn, zr, Ze, Yr]);
20207
20216
  (0, v.default)(function() {
20208
20217
  ln && !Mn && (Nn((0, O.isStyleSupport)("webkitLineClamp")), On((0, O.isStyleSupport)("textOverflow")));
20209
20218
  }, [Mn, ln]);
@@ -20288,9 +20297,9 @@ var EllipsisTooltip = {};
20288
20297
  "aria-label": Zt.expand
20289
20298
  }, Gr);
20290
20299
  }, ca = function() {
20291
- if (!!et) {
20300
+ if (!!Ze) {
20292
20301
  var jt = Yt.icon, ar = Yt.tooltip, Gr = (0, g.default)(ar)[0] || Zt.edit, tn = typeof Gr == "string" ? Gr : "";
20293
- return rr.includes("icon") ? /* @__PURE__ */ x.createElement(z.default, {
20302
+ return rr.includes("icon") ? /* @__PURE__ */ x.createElement(G.default, {
20294
20303
  key: "edit",
20295
20304
  title: ar === !1 ? "" : Gr
20296
20305
  }, /* @__PURE__ */ x.createElement(E.default, {
@@ -20305,7 +20314,7 @@ var EllipsisTooltip = {};
20305
20314
  }, da = function() {
20306
20315
  if (!!Yr) {
20307
20316
  var jt = en.tooltips, ar = en.icon, Gr = K(jt), tn = K(ar), vn = _r ? H(Gr[1], Zt.copied) : H(Gr[0], Zt.copy), ha = _r ? Zt.copied : Zt.copy, ma = typeof vn == "string" ? vn : ha;
20308
- return /* @__PURE__ */ x.createElement(z.default, {
20317
+ return /* @__PURE__ */ x.createElement(G.default, {
20309
20318
  key: "copy",
20310
20319
  title: vn
20311
20320
  }, /* @__PURE__ */ x.createElement(E.default, {
@@ -20333,7 +20342,7 @@ var EllipsisTooltip = {};
20333
20342
  isEllipsis: zn
20334
20343
  }, /* @__PURE__ */ x.createElement(W.default, (0, s.default)({
20335
20344
  className: (0, p.default)((jt = {}, (0, o.default)(jt, "".concat(Ht, "-").concat(ge), ge), (0, o.default)(jt, "".concat(Ht, "-disabled"), Te), (0, o.default)(jt, "".concat(Ht, "-ellipsis"), ln), (0, o.default)(jt, "".concat(Ht, "-single-line"), rn && pn === 1), (0, o.default)(jt, "".concat(Ht, "-ellipsis-single-line"), Jn), (0, o.default)(jt, "".concat(Ht, "-ellipsis-multiple-line"), In), jt), te),
20336
- prefixCls: G,
20345
+ prefixCls: z,
20337
20346
  style: (0, s.default)((0, s.default)({}, he), {
20338
20347
  WebkitLineClamp: In ? pn : void 0
20339
20348
  }),
@@ -20401,7 +20410,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
20401
20410
  field: f,
20402
20411
  operator: p,
20403
20412
  manualIds: h
20404
- } = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, z] = useState$1(0), [P, M] = useState$1(), [L, W] = useState$1(), [B, N] = useState$1();
20413
+ } = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, G] = useState$1(0), [P, M] = useState$1(), [L, W] = useState$1(), [B, N] = useState$1();
20405
20414
  useEffect(() => {
20406
20415
  H();
20407
20416
  }, [r, s]);
@@ -20526,7 +20535,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
20526
20535
  bounds: !0,
20527
20536
  onResize: (K) => {
20528
20537
  var re, ie;
20529
- E((re = K.bounds) == null ? void 0 : re.height), z((ie = K.bounds) == null ? void 0 : ie.width);
20538
+ E((re = K.bounds) == null ? void 0 : re.height), G((ie = K.bounds) == null ? void 0 : ie.width);
20530
20539
  },
20531
20540
  children: ({
20532
20541
  measureRef: K
@@ -21148,11 +21157,11 @@ const One2manyInput = (e) => {
21148
21157
  } = p || {}, {
21149
21158
  lang: S,
21150
21159
  t: y
21151
- } = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [z, P] = useState$1(), [M, L] = useState$1(!1), [W, B] = useState$1(!1), [N, J] = useState$1(), [U, H] = useState$1([]), [K, re] = useState$1(!1), ie = useRef([]), [ne, Q] = useState$1(), ae = useRef(), {
21160
+ } = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [G, P] = useState$1(), [M, L] = useState$1(!1), [W, B] = useState$1(!1), [N, J] = useState$1(), [U, H] = useState$1([]), [K, re] = useState$1(!1), ie = useRef([]), [ne, Q] = useState$1(), ae = useRef(), {
21152
21161
  readOnly: oe,
21153
21162
  relation: ce,
21154
21163
  context: me,
21155
- domain: G
21164
+ domain: z
21156
21165
  } = o, te = o.type === "many2many", {
21157
21166
  id: he
21158
21167
  } = o, ge = l.filter((it) => it.values && it.operation !== "pendingRemove");
@@ -21191,9 +21200,9 @@ const One2manyInput = (e) => {
21191
21200
  }
21192
21201
  };
21193
21202
  async function pe() {
21194
- G && (ie.current = transformDomainForChildWidget({
21203
+ z && (ie.current = transformDomainForChildWidget({
21195
21204
  domain: await ConnectionProvider.getHandler().evalDomain({
21196
- domain: G,
21205
+ domain: z,
21197
21206
  values: transformPlainMany2Ones({
21198
21207
  fields: m(),
21199
21208
  values: g()
@@ -21252,7 +21261,7 @@ const One2manyInput = (e) => {
21252
21261
  Pe(), it(), T(!1);
21253
21262
  }
21254
21263
  }) : it();
21255
- }, Ze = () => {
21264
+ }, et = () => {
21256
21265
  if (te) {
21257
21266
  showDialog$1({
21258
21267
  lang: S,
@@ -21396,7 +21405,7 @@ const One2manyInput = (e) => {
21396
21405
  return xt.parse(s.get(u).arch), xt.string;
21397
21406
  }
21398
21407
  }
21399
- const et = () => {
21408
+ const Ze = () => {
21400
21409
  var xt, Qt, Jt, rr;
21401
21410
  if (u === "form")
21402
21411
  return ge.length === 0 ? y("noCurrentEntries") : /* @__PURE__ */ jsx(Form$1, {
@@ -21470,10 +21479,10 @@ const One2manyInput = (e) => {
21470
21479
  });
21471
21480
  }
21472
21481
  };
21473
- if (z)
21482
+ if (G)
21474
21483
  return /* @__PURE__ */ jsx(Alert, {
21475
21484
  className: "mt-10",
21476
- message: z,
21485
+ message: G,
21477
21486
  type: "error",
21478
21487
  banner: !0
21479
21488
  });
@@ -21487,7 +21496,7 @@ const One2manyInput = (e) => {
21487
21496
  formHasChanges: w,
21488
21497
  totalItems: ge.length,
21489
21498
  currentItemIndex: d,
21490
- onDelete: Ze,
21499
+ onDelete: et,
21491
21500
  onCreateItem: Xt,
21492
21501
  onToggleViewMode: Re,
21493
21502
  onPreviousItem: Oe,
@@ -21496,7 +21505,7 @@ const One2manyInput = (e) => {
21496
21505
  selectedRowKeys: U,
21497
21506
  showCreateButton: ((tr = s.get("form")) == null ? void 0 : tr.fields) !== void 0,
21498
21507
  showToggleButton: s.size > 1
21499
- }), et(), /* @__PURE__ */ jsx(FormModal, {
21508
+ }), Ze(), /* @__PURE__ */ jsx(FormModal, {
21500
21509
  formView: s.get("form"),
21501
21510
  model: ce,
21502
21511
  id: N == null ? void 0 : N.id,
@@ -24434,7 +24443,7 @@ var isIP = { exports: {} };
24434
24443
  }
24435
24444
  if (!w.ignore_max_length && x.length > C)
24436
24445
  return !1;
24437
- var O = x.split("@"), z = O.pop(), P = z.toLowerCase();
24446
+ var O = x.split("@"), G = O.pop(), P = G.toLowerCase();
24438
24447
  if (w.host_blacklist.includes(P))
24439
24448
  return !1;
24440
24449
  var M = O.join("@");
@@ -24452,19 +24461,19 @@ var isIP = { exports: {} };
24452
24461
  }
24453
24462
  if (w.ignore_max_length === !1 && (!(0, s.default)(M, {
24454
24463
  max: 64
24455
- }) || !(0, s.default)(z, {
24464
+ }) || !(0, s.default)(G, {
24456
24465
  max: 254
24457
24466
  })))
24458
24467
  return !1;
24459
- if (!(0, l.default)(z, {
24468
+ if (!(0, l.default)(G, {
24460
24469
  require_tld: w.require_tld
24461
24470
  })) {
24462
24471
  if (!w.allow_ip_domain)
24463
24472
  return !1;
24464
- if (!(0, u.default)(z)) {
24465
- if (!z.startsWith("[") || !z.endsWith("]"))
24473
+ if (!(0, u.default)(G)) {
24474
+ if (!G.startsWith("[") || !G.endsWith("]"))
24466
24475
  return !1;
24467
- var N = z.substr(1, z.length - 2);
24476
+ var N = G.substr(1, G.length - 2);
24468
24477
  if (N.length === 0 || !(0, u.default)(N))
24469
24478
  return !1;
24470
24479
  }
@@ -24514,18 +24523,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24514
24523
  }
24515
24524
  function h(x, w) {
24516
24525
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(x)))) {
24517
- var T = [], E = !0, O = !1, z = void 0;
24526
+ var T = [], E = !0, O = !1, G = void 0;
24518
24527
  try {
24519
24528
  for (var P = x[Symbol.iterator](), M; !(E = (M = P.next()).done) && (T.push(M.value), !(w && T.length === w)); E = !0)
24520
24529
  ;
24521
24530
  } catch (L) {
24522
- O = !0, z = L;
24531
+ O = !0, G = L;
24523
24532
  } finally {
24524
24533
  try {
24525
24534
  !E && P.return != null && P.return();
24526
24535
  } finally {
24527
24536
  if (O)
24528
- throw z;
24537
+ throw G;
24529
24538
  }
24530
24539
  }
24531
24540
  return T;
@@ -24563,7 +24572,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24563
24572
  function y(x, w) {
24564
24573
  if ((0, a.default)(x), !x || /[\s<>]/.test(x) || x.indexOf("mailto:") === 0 || (w = (0, l.default)(w, g), w.validate_length && x.length >= 2083) || !w.allow_fragments && x.includes("#") || !w.allow_query_components && (x.includes("?") || x.includes("&")))
24565
24574
  return !1;
24566
- var T, E, O, z, P, M, L, W;
24575
+ var T, E, O, G, P, M, L, W;
24567
24576
  if (L = x.split("#"), x = L.shift(), L = x.split("?"), x = L.shift(), L = x.split("://"), L.length > 1) {
24568
24577
  if (T = L.shift().toLowerCase(), w.require_valid_protocol && w.protocols.indexOf(T) === -1)
24569
24578
  return !1;
@@ -24587,9 +24596,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24587
24596
  if (J === "" && U === "")
24588
24597
  return !1;
24589
24598
  }
24590
- z = L.join("@"), M = null, W = null;
24591
- var H = z.match(v);
24592
- if (H ? (O = "", W = H[1], M = H[2] || null) : (L = z.split(":"), O = L.shift(), L.length && (M = L.join(":"))), M !== null && M.length > 0) {
24599
+ G = L.join("@"), M = null, W = null;
24600
+ var H = G.match(v);
24601
+ if (H ? (O = "", W = H[1], M = H[2] || null) : (L = G.split(":"), O = L.shift(), L.length && (M = L.join(":"))), M !== null && M.length > 0) {
24593
24602
  if (P = parseInt(M, 10), !/^[0-9]+$/.test(M) || P <= 0 || P > 65535)
24594
24603
  return !1;
24595
24604
  } else if (w.require_port)
@@ -25311,7 +25320,7 @@ const Kt = (e) => {
25311
25320
  const T = useCallback(() => c === "left" ? ee(o) : ee(o).filter((W) => a.includes(W.key)), [o, c, a]), E = [...a, ...d], O = useCallback(({ checked: W }) => {
25312
25321
  const B = W.filter((N) => c !== "left" || !a.includes(N));
25313
25322
  f(B), B.length === T().length ? (S(!0), v(!1)) : B.length > 0 ? (v(!0), S(!1)) : (v(!1), S(!1));
25314
- }, [T, a]), z = useCallback((W) => {
25323
+ }, [T, a]), G = useCallback((W) => {
25315
25324
  const { value: B } = W.target;
25316
25325
  m(B.trim() === "" ? void 0 : B.trim());
25317
25326
  }, []), P = useCallback((W) => {
@@ -25320,7 +25329,7 @@ const Kt = (e) => {
25320
25329
  const { dragNode: B, dropPosition: N } = W, { key: J } = B, U = [...a], H = U.indexOf(J);
25321
25330
  H > -1 && U.splice(H, 1), N === -1 ? U.unshift(J) : U.splice(N, 0, J), p(U);
25322
25331
  }, [a]), L = c === "right" ? { className: "draggable-tree", draggable: !0, onDrop: M } : {};
25323
- return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange: z, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...L, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: c === "left" ? E : d, loadData: c === "left" ? s : void 0, treeData: y, onCheck: O, titleRender: (W) => jsx(En, { node: W }) }) })] })] });
25332
+ return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange: G, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...L, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: c === "left" ? E : d, loadData: c === "left" ? s : void 0, treeData: y, onCheck: O, titleRender: (W) => jsx(En, { node: W }) }) })] })] });
25324
25333
  }, nt = k(Col)`
25325
25334
  padding: 0.5rem;
25326
25335
  border-color: #d9d9d9;
@@ -26328,7 +26337,7 @@ function FormActionBar({
26328
26337
  formRef: T,
26329
26338
  setFormHasChanges: E,
26330
26339
  previousView: O,
26331
- setPreviousView: z,
26340
+ setPreviousView: G,
26332
26341
  goToResourceId: P
26333
26342
  } = useContext(ActionViewContext), {
26334
26343
  t: M,
@@ -26342,29 +26351,29 @@ function FormActionBar({
26342
26351
  useEffect(() => {
26343
26352
  !u && H.current && message$1.success(M("savedRegisters")), H.current = u || !1;
26344
26353
  }, [u]);
26345
- function K(G) {
26354
+ function K(z) {
26346
26355
  if (l) {
26347
26356
  showDialog({
26348
26357
  lang: L,
26349
26358
  onOk: () => {
26350
- G();
26359
+ z();
26351
26360
  }
26352
26361
  });
26353
26362
  return;
26354
26363
  }
26355
- G();
26364
+ z();
26356
26365
  }
26357
- function re(G) {
26366
+ function re(z) {
26358
26367
  if (l) {
26359
26368
  showDialog$6({
26360
26369
  lang: L,
26361
26370
  onOk: () => {
26362
- G();
26371
+ z();
26363
26372
  }
26364
26373
  });
26365
26374
  return;
26366
26375
  }
26367
- G();
26376
+ z();
26368
26377
  }
26369
26378
  function ie() {
26370
26379
  d && d.length > p + 1 ? (f == null || f(p + 1), h == null || h(d[p + 1].id)) : d && p + 1 === d.length && (f == null || f(0), h == null || h(d[0].id));
@@ -26387,12 +26396,12 @@ function FormActionBar({
26387
26396
  model: m,
26388
26397
  ids: [c]
26389
26398
  });
26390
- const G = d == null ? void 0 : d.filter((he) => he.id !== c);
26391
- y == null || y(G);
26399
+ const z = d == null ? void 0 : d.filter((he) => he.id !== c);
26400
+ y == null || y(z);
26392
26401
  let te = 0;
26393
- p > 0 && p <= d.length - 1 && (te = p - 1), G != null && G[te] ? (h == null || h(G == null ? void 0 : G[te].id), f == null || f(te)) : (h == null || h(void 0), f == null || f(void 0));
26394
- } catch (G) {
26395
- showDialog$3(JSON.stringify(G));
26402
+ p > 0 && p <= d.length - 1 && (te = p - 1), z != null && z[te] ? (h == null || h(z == null ? void 0 : z[te].id), f == null || f(te)) : (h == null || h(void 0), f == null || f(void 0));
26403
+ } catch (z) {
26404
+ showDialog$3(JSON.stringify(z));
26396
26405
  } finally {
26397
26406
  g == null || g(!1);
26398
26407
  }
@@ -26400,22 +26409,22 @@ function FormActionBar({
26400
26409
  async function oe() {
26401
26410
  try {
26402
26411
  S == null || S(!0);
26403
- const G = await ConnectionProvider.getHandler().duplicate({
26412
+ const z = await ConnectionProvider.getHandler().duplicate({
26404
26413
  id: c,
26405
26414
  model: m,
26406
26415
  context: T.current.getContext()
26407
26416
  });
26408
- G && await (P == null ? void 0 : P(G));
26409
- } catch (G) {
26410
- showDialog$3(JSON.stringify(G));
26417
+ z && await (P == null ? void 0 : P(z));
26418
+ } catch (z) {
26419
+ showDialog$3(JSON.stringify(z));
26411
26420
  } finally {
26412
26421
  S == null || S(!1);
26413
26422
  }
26414
26423
  }
26415
26424
  const ce = u || v || x || C;
26416
- function me(G) {
26425
+ function me(z) {
26417
26426
  B == null || B({
26418
- actionData: G,
26427
+ actionData: z,
26419
26428
  values: T.current.getValues(),
26420
26429
  fields: T.current.getFields(),
26421
26430
  context: T.current.getContext(),
@@ -26470,8 +26479,8 @@ function FormActionBar({
26470
26479
  currentView: a,
26471
26480
  previousView: O,
26472
26481
  availableViews: r,
26473
- onChangeView: (G) => {
26474
- z == null || z(a), E == null || E(!1), o == null || o(G);
26482
+ onChangeView: (z) => {
26483
+ G == null || G(a), E == null || E(!1), o == null || o(z);
26475
26484
  },
26476
26485
  disabled: ce,
26477
26486
  formHasChanges: l
@@ -26498,20 +26507,29 @@ function FormActionBar({
26498
26507
  disabled: ce,
26499
26508
  tooltip: M("actions"),
26500
26509
  items: e == null ? void 0 : e.action,
26501
- onItemClick: async (G) => {
26502
- !G || !await (s == null ? void 0 : s()) || me(G);
26510
+ onItemClick: async (z) => {
26511
+ !z || !(await saveNewDocumentIfNeeded({
26512
+ onFormSave: s,
26513
+ currentId: c
26514
+ })).succeed || me(z);
26503
26515
  }
26504
26516
  }), /* @__PURE__ */ jsx(DropdownButton, {
26505
26517
  icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
26506
26518
  disabled: ce,
26507
26519
  tooltip: M("reports"),
26508
26520
  items: e == null ? void 0 : e.print,
26509
- onItemClick: async (G) => {
26510
- !G || !await (s == null ? void 0 : s()) || me({
26511
- ...G,
26521
+ onItemClick: async (z) => {
26522
+ if (!z)
26523
+ return;
26524
+ const te = await saveNewDocumentIfNeeded({
26525
+ onFormSave: s,
26526
+ currentId: c
26527
+ });
26528
+ !te.succeed || me({
26529
+ ...z,
26512
26530
  datas: {
26513
- ...G.datas || {},
26514
- ids: [c]
26531
+ ...z.datas || {},
26532
+ ids: [te.currentId]
26515
26533
  }
26516
26534
  });
26517
26535
  }
@@ -26520,22 +26538,29 @@ function FormActionBar({
26520
26538
  disabled: ce,
26521
26539
  tooltip: M("related"),
26522
26540
  items: e == null ? void 0 : e.relate,
26523
- onItemClick: async (G) => {
26524
- !G || !await (s == null ? void 0 : s()) || J({
26525
- relateData: G,
26541
+ onItemClick: async (z) => {
26542
+ !z || !(await saveNewDocumentIfNeeded({
26543
+ onFormSave: s,
26544
+ currentId: c
26545
+ })).succeed || J({
26546
+ relateData: z,
26526
26547
  values: T.current.getValues(),
26527
26548
  fields: T.current.getFields(),
26528
- action_id: G.id,
26529
- action_type: G.type
26549
+ action_id: z.id,
26550
+ action_type: z.type
26530
26551
  });
26531
26552
  }
26532
26553
  }), /* @__PURE__ */ jsx(AttachmentsButton, {
26533
26554
  disabled: ce,
26534
26555
  attachments: w,
26535
26556
  onAddNewAttachment: async () => {
26536
- if (!await (s == null ? void 0 : s()))
26557
+ const z = await saveNewDocumentIfNeeded({
26558
+ onFormSave: s,
26559
+ currentId: c
26560
+ });
26561
+ if (!z.succeed)
26537
26562
  return;
26538
- const te = c, he = m;
26563
+ const te = z.currentId, he = m;
26539
26564
  U({
26540
26565
  model: "ir.attachment",
26541
26566
  values: {
@@ -26549,19 +26574,26 @@ function FormActionBar({
26549
26574
  });
26550
26575
  },
26551
26576
  onListAllAttachments: async () => {
26552
- if (!await (s == null ? void 0 : s()))
26577
+ const z = await saveNewDocumentIfNeeded({
26578
+ onFormSave: s,
26579
+ currentId: c
26580
+ });
26581
+ if (!z.succeed)
26553
26582
  return;
26554
- const te = c;
26583
+ const te = z.currentId;
26555
26584
  U({
26556
26585
  model: "ir.attachment",
26557
26586
  domain: [["res_model", "=", `${m}`], ["res_id", "=", `${te}`]],
26558
26587
  initialViewType: "tree"
26559
26588
  });
26560
26589
  },
26561
- onViewAttachmentDetails: async (G) => {
26562
- !await (s == null ? void 0 : s()) || U({
26590
+ onViewAttachmentDetails: async (z) => {
26591
+ !(await saveNewDocumentIfNeeded({
26592
+ onFormSave: s,
26593
+ currentId: c
26594
+ })).succeed || U({
26563
26595
  model: "ir.attachment",
26564
- res_id: G.id,
26596
+ res_id: z.id,
26565
26597
  initialViewType: "form"
26566
26598
  });
26567
26599
  }
@@ -26573,6 +26605,24 @@ function separator$2() {
26573
26605
  className: "inline-block w-2"
26574
26606
  });
26575
26607
  }
26608
+ async function saveNewDocumentIfNeeded({
26609
+ onFormSave: e,
26610
+ currentId: r
26611
+ }) {
26612
+ if (r !== void 0)
26613
+ return {
26614
+ succeed: !0,
26615
+ currentId: r
26616
+ };
26617
+ const a = await (e == null ? void 0 : e());
26618
+ return a != null && a.succeed ? {
26619
+ succeed: !0,
26620
+ currentId: a.id
26621
+ } : {
26622
+ succeed: !1,
26623
+ currentId: void 0
26624
+ };
26625
+ }
26576
26626
  const LinkInput = (e) => {
26577
26627
  const {
26578
26628
  ooui: r,
@@ -26920,7 +26970,7 @@ const GraphActionView = (e) => {
26920
26970
  setTotalItems: T = void 0,
26921
26971
  setSearchTreeNameSearch: E = void 0,
26922
26972
  setTreeIsLoading: O = void 0,
26923
- limit: z,
26973
+ limit: G,
26924
26974
  setLimit: P,
26925
26975
  searchParams: M,
26926
26976
  searchValues: L,
@@ -26959,7 +27009,7 @@ const GraphActionView = (e) => {
26959
27009
  domain: l,
26960
27010
  currentId: m,
26961
27011
  setActionViewTotalItems: T,
26962
- limit: z,
27012
+ limit: G,
26963
27013
  setLimit: P
26964
27014
  });
26965
27015
  return !a || !r ? null : /* @__PURE__ */ jsxs(Fragment, {
@@ -26976,7 +27026,7 @@ const GraphActionView = (e) => {
26976
27026
  ...u.fields
26977
27027
  },
26978
27028
  searchFields: mergeSearchFields([u.search_fields, c.search_fields]),
26979
- limit: z,
27029
+ limit: G,
26980
27030
  onClear: U,
26981
27031
  offset: re,
26982
27032
  isSearching: H,
@@ -26993,7 +27043,7 @@ const GraphActionView = (e) => {
26993
27043
  model: o,
26994
27044
  context: s,
26995
27045
  domain: mergeParams(M || [], l),
26996
- limit: N ? z : void 0,
27046
+ limit: N ? G : void 0,
26997
27047
  manualIds: N ? g == null ? void 0 : g.map((ne) => ne.id) : void 0
26998
27048
  })]
26999
27049
  });
@@ -27117,7 +27167,7 @@ function TreeActionBar(e) {
27117
27167
  previousView: T,
27118
27168
  results: E,
27119
27169
  limit: O,
27120
- totalItems: z
27170
+ totalItems: G
27121
27171
  } = useContext(ActionViewContext), {
27122
27172
  parentContext: P = {},
27123
27173
  treeExpandable: M,
@@ -27335,7 +27385,7 @@ function TreeActionBar(e) {
27335
27385
  model: f,
27336
27386
  domain: mergeParams(((ae = p == null ? void 0 : p.current) == null ? void 0 : ae.getDomain()) || [], g || []),
27337
27387
  limit: O,
27338
- totalRegisters: z || 0,
27388
+ totalRegisters: G || 0,
27339
27389
  selectedRegistersToExport: s,
27340
27390
  visibleRegisters: (E == null ? void 0 : E.length) || 0,
27341
27391
  context: P
@@ -27499,8 +27549,8 @@ function ActionView(e, r) {
27499
27549
  action_type: v,
27500
27550
  treeExpandable: C = !1,
27501
27551
  limit: S
27502
- } = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), z = m || void 0, [P, M] = useState$1(z), [L, W] = useState$1([]), [B, N] = useState$1(), [J, U] = useState$1([]), [H, K] = useState$1(), [re, ie] = useState$1(0), [ne, Q] = useState$1(!1), [ae, oe] = useState$1(!1), [ce, me] = useState$1(), {
27503
- t: G
27552
+ } = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), G = m || void 0, [P, M] = useState$1(G), [L, W] = useState$1([]), [B, N] = useState$1(), [J, U] = useState$1([]), [H, K] = useState$1(), [re, ie] = useState$1(0), [ne, Q] = useState$1(!1), [ae, oe] = useState$1(!1), [ce, me] = useState$1(), {
27553
+ t: z
27504
27554
  } = useContext(LocaleContext), te = useRef(), he = useRef(), ge = useContext(TabManagerContext), {
27505
27555
  setCurrentView: Te,
27506
27556
  setCurrentId: D,
@@ -27509,7 +27559,7 @@ function ActionView(e, r) {
27509
27559
  openAction: Re
27510
27560
  } = ge || {};
27511
27561
  useHotkeys("ctrl+g,command+g", (qe) => {
27512
- qe.preventDefault(), Ze();
27562
+ qe.preventDefault(), et();
27513
27563
  }, [pe, I, y, B, J]);
27514
27564
  function Oe(qe) {
27515
27565
  M(qe), D == null || D(qe);
@@ -27525,9 +27575,9 @@ function ActionView(e, r) {
27525
27575
  const qe = [];
27526
27576
  for (const _t of l) {
27527
27577
  const [qt, kt] = _t;
27528
- let et;
27578
+ let Ze;
27529
27579
  try {
27530
- kt !== "dashboard" && (et = await ConnectionProvider.getHandler().getView({
27580
+ kt !== "dashboard" && (Ze = await ConnectionProvider.getHandler().getView({
27531
27581
  model: o,
27532
27582
  type: kt,
27533
27583
  id: qt,
@@ -27563,14 +27613,14 @@ function ActionView(e, r) {
27563
27613
  }
27564
27614
  case "form": {
27565
27615
  qe.push({
27566
- ...et,
27616
+ ...Ze,
27567
27617
  type: kt
27568
27618
  });
27569
27619
  break;
27570
27620
  }
27571
27621
  case "tree": {
27572
27622
  qe.push({
27573
- ...et,
27623
+ ...Ze,
27574
27624
  isExpandable: C,
27575
27625
  type: kt
27576
27626
  });
@@ -27578,7 +27628,7 @@ function ActionView(e, r) {
27578
27628
  }
27579
27629
  case "graph": {
27580
27630
  qe.push({
27581
- ...et,
27631
+ ...Ze,
27582
27632
  type: kt
27583
27633
  });
27584
27634
  break;
@@ -27594,20 +27644,20 @@ Please, make sure the view ids on the fields_view_get responses are the same as
27594
27644
  canWeClose: Fe
27595
27645
  }), useEffect(() => {
27596
27646
  const qe = w.find((_t) => _t.type === "tree"), Ht = w.find((_t) => f.id ? _t.type === f.type && _t.view_id === f.id : _t.type === f.type);
27597
- ve(Ht || qe), m ? D == null || D(z) : (Oe(void 0), N(void 0)), Pe();
27647
+ ve(Ht || qe), m ? D == null || D(G) : (Oe(void 0), N(void 0)), Pe();
27598
27648
  }, [o, l, m]), useEffect(() => {
27599
27649
  pe === d && (D == null || D(P), Te == null || Te(y));
27600
27650
  }, [I, pe]);
27601
27651
  async function Fe() {
27602
27652
  return y.type === "form" ? await te.current.cancelUnsavedChanges() : !0;
27603
27653
  }
27604
- async function Ze() {
27654
+ async function et() {
27605
27655
  pe === d && (y.type === "form" && !await te.current.cancelUnsavedChanges() || Q(!0));
27606
27656
  }
27607
27657
  async function Xt(qe) {
27608
27658
  var kt;
27609
27659
  oe(!0);
27610
- const Ht = J.findIndex((et) => et.id === qe);
27660
+ const Ht = J.findIndex((Ze) => Ze.id === qe);
27611
27661
  let _t;
27612
27662
  if (Ht === -1) {
27613
27663
  try {
@@ -27619,13 +27669,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
27619
27669
  } catch {
27620
27670
  }
27621
27671
  if (!_t) {
27622
- oe(!1), Q(!1), showDialog$7(G("idNotFound"));
27672
+ oe(!1), Q(!1), showDialog$7(z("idNotFound"));
27623
27673
  return;
27624
27674
  }
27625
27675
  } else
27626
27676
  _t = J[Ht];
27627
27677
  oe(!1), Q(!1);
27628
- const qt = l.find((et) => et[1] === "form");
27678
+ const qt = l.find((Ze) => Ze[1] === "form");
27629
27679
  Re({
27630
27680
  domain: [],
27631
27681
  context: s,
@@ -27927,10 +27977,10 @@ function DashboardTree(e) {
27927
27977
  domain: l = [],
27928
27978
  visible: u = !0,
27929
27979
  parentContext: c = {}
27930
- } = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT), z = useRef([]), [P, M] = useState$1(0), [L, W] = useState$1([]), [B, N] = useState$1(void 0), [J, U] = useState$1(), [H, K] = useState$1(), [re, ie] = useState$1(), [ne, Q] = useState$1(!1), ae = useRef([]), oe = (D) => {
27980
+ } = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT), G = useRef([]), [P, M] = useState$1(0), [L, W] = useState$1([]), [B, N] = useState$1(void 0), [J, U] = useState$1(), [H, K] = useState$1(), [re, ie] = useState$1(), [ne, Q] = useState$1(!1), ae = useRef([]), oe = (D) => {
27931
27981
  Q(!0), w(D), E((D - 1) * O.current);
27932
27982
  }, ce = async () => {
27933
- const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(z.current, D), {
27983
+ const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(G.current, D), {
27934
27984
  colors: pe
27935
27985
  } = getTree(v), {
27936
27986
  totalItems: Re,
@@ -27969,7 +28019,7 @@ function DashboardTree(e) {
27969
28019
  useEffect(() => {
27970
28020
  !p || u && me();
27971
28021
  }, [x, T, p, u]);
27972
- const G = async (D) => {
28022
+ const z = async (D) => {
27973
28023
  h(!1), f(!0), ie(void 0);
27974
28024
  try {
27975
28025
  D === "action" ? await te() : await he(), h(!0);
@@ -28001,7 +28051,7 @@ function DashboardTree(e) {
28001
28051
  C(I);
28002
28052
  };
28003
28053
  useEffect(() => {
28004
- r ? G("action") : a && G("model");
28054
+ r ? z("action") : a && z("model");
28005
28055
  }, [r, a]);
28006
28056
  const ge = (D) => {
28007
28057
  const {
@@ -28104,7 +28154,7 @@ function Dashboard(e, r) {
28104
28154
  refresh: () => {
28105
28155
  y();
28106
28156
  },
28107
- configDashboard: z
28157
+ configDashboard: G
28108
28158
  }));
28109
28159
  async function y() {
28110
28160
  f(!0), m(!0), h(void 0);
@@ -28217,7 +28267,7 @@ function Dashboard(e, r) {
28217
28267
  context: o
28218
28268
  });
28219
28269
  }
28220
- async function z() {
28270
+ async function G() {
28221
28271
  g(l);
28222
28272
  }
28223
28273
  return p ? /* @__PURE__ */ jsx(Alert, {
@@ -28320,7 +28370,7 @@ function Dashboard(e, r) {
28320
28370
  limit: oe
28321
28371
  });
28322
28372
  }
28323
- let G;
28373
+ let z;
28324
28374
  const te = re.find((he) => {
28325
28375
  const [, ge] = he;
28326
28376
  return ge === "tree";
@@ -28332,7 +28382,7 @@ function Dashboard(e, r) {
28332
28382
  title: I,
28333
28383
  model: pe
28334
28384
  } = L;
28335
- G = {
28385
+ z = {
28336
28386
  action_id: Te,
28337
28387
  action_type: D,
28338
28388
  name: I,
@@ -28346,7 +28396,7 @@ function Dashboard(e, r) {
28346
28396
  id: N,
28347
28397
  title: K,
28348
28398
  parms: ce,
28349
- action: G,
28399
+ action: z,
28350
28400
  openAction: g,
28351
28401
  children: me
28352
28402
  }, N);
@@ -28452,10 +28502,10 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
28452
28502
  });
28453
28503
  }
28454
28504
  const E = () => {
28455
- z(u.map((P) => P.value));
28505
+ G(u.map((P) => P.value));
28456
28506
  }, O = () => {
28457
- z([]);
28458
- }, z = (P) => {
28507
+ G([]);
28508
+ }, G = (P) => {
28459
28509
  const M = s.map((W) => P.includes(W.id) ? W.operation == "pendingRemove" ? {
28460
28510
  ...W,
28461
28511
  operation: "original"
@@ -28476,7 +28526,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
28476
28526
  children: [/* @__PURE__ */ jsx(Checkbox.Group, {
28477
28527
  value: u.length ? l : [],
28478
28528
  disabled: v,
28479
- onChange: z,
28529
+ onChange: G,
28480
28530
  style: {
28481
28531
  width: "100%"
28482
28532
  },
@@ -28671,7 +28721,7 @@ function RootView(e, r) {
28671
28721
  action: T,
28672
28722
  values: E,
28673
28723
  forced_values: O,
28674
- initialViewType: z,
28724
+ initialViewType: G,
28675
28725
  res_id: P,
28676
28726
  domain: M = []
28677
28727
  }) {
@@ -28703,8 +28753,8 @@ function RootView(e, r) {
28703
28753
  limit: Q
28704
28754
  } = L, ae = ne === "tree", oe = [];
28705
28755
  for (const me of K) {
28706
- const [G, te] = me;
28707
- if (G)
28756
+ const [z, te] = me;
28757
+ if (z)
28708
28758
  oe.push(me);
28709
28759
  else if (te === "dashboard")
28710
28760
  oe.push([void 0, "dashboard"]);
@@ -28714,7 +28764,7 @@ function RootView(e, r) {
28714
28764
  } = await ConnectionProvider.getHandler().getView({
28715
28765
  model: H,
28716
28766
  type: te,
28717
- id: G,
28767
+ id: z,
28718
28768
  context: {
28719
28769
  ...s,
28720
28770
  ...J
@@ -28724,17 +28774,17 @@ function RootView(e, r) {
28724
28774
  }
28725
28775
  }
28726
28776
  let ce;
28727
- if (z) {
28728
- const [me, G] = oe.find(([te, he]) => he === z);
28777
+ if (G) {
28778
+ const [me, z] = oe.find(([te, he]) => he === G);
28729
28779
  ce = {
28730
28780
  id: me,
28731
- type: G
28781
+ type: z
28732
28782
  };
28733
28783
  } else {
28734
- const [me, G] = oe[0];
28784
+ const [me, z] = oe[0];
28735
28785
  ce = {
28736
28786
  id: me,
28737
- type: G
28787
+ type: z
28738
28788
  };
28739
28789
  }
28740
28790
  w({
@@ -28761,7 +28811,7 @@ function RootView(e, r) {
28761
28811
  title: T,
28762
28812
  content: E,
28763
28813
  key: O,
28764
- action: z
28814
+ action: G
28765
28815
  }) {
28766
28816
  let P = [...d];
28767
28817
  d.length === 1 && d[0].key === "welcome" && (P = [...d.filter((M) => M.key !== "welcome")]), f([...P, {
@@ -28769,14 +28819,14 @@ function RootView(e, r) {
28769
28819
  key: O,
28770
28820
  closable: !0,
28771
28821
  content: E,
28772
- action: z
28822
+ action: G
28773
28823
  }]), c(O);
28774
28824
  }
28775
28825
  async function S({
28776
28826
  relateData: T,
28777
28827
  fields: E,
28778
28828
  values: O,
28779
- action_id: z,
28829
+ action_id: G,
28780
28830
  action_type: P
28781
28831
  }) {
28782
28832
  const {
@@ -28823,7 +28873,7 @@ function RootView(e, r) {
28823
28873
  domain: ne,
28824
28874
  title: J,
28825
28875
  initialView: re,
28826
- action_id: z,
28876
+ action_id: G,
28827
28877
  action_type: P,
28828
28878
  limit: U
28829
28879
  });
@@ -28832,7 +28882,7 @@ function RootView(e, r) {
28832
28882
  const {
28833
28883
  action_id: E,
28834
28884
  action_type: O,
28835
- res_id: z,
28885
+ res_id: G,
28836
28886
  view_id: P
28837
28887
  } = T, M = `${O},${E}`, L = await ConnectionProvider.getHandler().getActionData({
28838
28888
  action: M,
@@ -28857,24 +28907,24 @@ function RootView(e, r) {
28857
28907
  limit: re
28858
28908
  } = L, ie = K === "tree", ne = [];
28859
28909
  for (const ce of J) {
28860
- const [me, G] = ce;
28910
+ const [me, z] = ce;
28861
28911
  if (me)
28862
28912
  ne.push(ce);
28863
- else if (G === "dashboard")
28913
+ else if (z === "dashboard")
28864
28914
  ne.push([void 0, "dashboard"]);
28865
28915
  else {
28866
28916
  const {
28867
28917
  view_id: te
28868
28918
  } = await ConnectionProvider.getHandler().getView({
28869
28919
  model: N,
28870
- type: G,
28920
+ type: z,
28871
28921
  id: me,
28872
28922
  context: {
28873
28923
  ...s,
28874
28924
  ...W
28875
28925
  }
28876
28926
  });
28877
- ne.push([te, G]);
28927
+ ne.push([te, z]);
28878
28928
  }
28879
28929
  }
28880
28930
  let Q, ae;
@@ -28900,7 +28950,7 @@ function RootView(e, r) {
28900
28950
  initialView: oe,
28901
28951
  action_id: E,
28902
28952
  action_type: O,
28903
- res_id: z,
28953
+ res_id: G,
28904
28954
  treeExpandable: ie,
28905
28955
  limit: re
28906
28956
  });
@@ -28909,7 +28959,7 @@ function RootView(e, r) {
28909
28959
  model: T,
28910
28960
  values: E,
28911
28961
  forced_values: O,
28912
- initialViewType: z,
28962
+ initialViewType: G,
28913
28963
  res_id: P,
28914
28964
  domain: M
28915
28965
  }) {
@@ -28918,7 +28968,7 @@ function RootView(e, r) {
28918
28968
  action: L,
28919
28969
  values: E,
28920
28970
  forced_values: O,
28921
- initialViewType: z,
28971
+ initialViewType: G,
28922
28972
  res_id: P,
28923
28973
  domain: M
28924
28974
  });
@@ -28927,7 +28977,7 @@ function RootView(e, r) {
28927
28977
  domain: T,
28928
28978
  context: E,
28929
28979
  model: O,
28930
- views: z,
28980
+ views: G,
28931
28981
  title: P,
28932
28982
  target: M,
28933
28983
  initialView: L,
@@ -28981,7 +29031,7 @@ function RootView(e, r) {
28981
29031
  action_type: B,
28982
29032
  tabKey: re,
28983
29033
  title: P,
28984
- views: z,
29034
+ views: G,
28985
29035
  model: O,
28986
29036
  context: {
28987
29037
  ...s,
@@ -29144,11 +29194,11 @@ const FavouriteButton = (e) => {
29144
29194
  openDefaultActionForModel: O
29145
29195
  } = S || {};
29146
29196
  useEffect(() => {
29147
- z();
29197
+ G();
29148
29198
  }, []), useEffect(() => {
29149
29199
  L();
29150
29200
  }, [x, w, T, E]);
29151
- async function z() {
29201
+ async function G() {
29152
29202
  try {
29153
29203
  m(!0);
29154
29204
  const U = await r();
@@ -29166,7 +29216,7 @@ const FavouriteButton = (e) => {
29166
29216
  (K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && y(K), d(!1));
29167
29217
  }
29168
29218
  function M(U) {
29169
- U && z(), d(U);
29219
+ U && G(), d(U);
29170
29220
  }
29171
29221
  async function L() {
29172
29222
  if (!T)
@@ -29285,7 +29335,7 @@ const FavouriteButton = (e) => {
29285
29335
  res_id: ie
29286
29336
  });
29287
29337
  }
29288
- await z(), u(!l);
29338
+ await G(), u(!l);
29289
29339
  }
29290
29340
  return /* @__PURE__ */ jsxs(Fragment, {
29291
29341
  children: [/* @__PURE__ */ jsx(Button$1, {