@amateescu/portal-ui-components 0.0.7-beta3 → 0.0.7-beta4

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.
@@ -1,9 +1,7 @@
1
1
  import { jsx as _e, jsxs as xn } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
3
  import P, { useContext as pe, useRef as te, forwardRef as ft, useState as st, useEffect as Ne, useMemo as Se, createRef as ho, Children as vo } from "react";
4
- import { X as po, Y as Tt, I as Ye, d as M, Z as gt, H as Ae, q as D, $ as yo, a0 as bo, h as lt, C as mt, g as K, m as Xt, R as Fe, k as ht, p as Co, s as xo, y as E, _ as Yt, a as Re, b as Zt, e as Ze, c as Ie, j as ue, D as Eo, i as nr, K as de, L as Je, a1 as Et, J as rr, Q as or, M as Y, a2 as ir, a3 as wo, U as So, E as Fo, a4 as Oo, u as $o, w as En, v as Po, a5 as wn, x as Sn, P as No, B as le, a6 as Ro, a7 as Io, a8 as ke, a9 as Oe, aa as we, A as Fn, t as Vo, T as Jt, ab as To, ac as ar, ad as _o, N as Mo, S as sr, G as ct, W as Lo, V as Ho, ae as Qt, af as Bo, ag as jo, ah as lr } from "../../Skeleton-DsmxphyA.js";
5
- import { _ as ne } from "../../toPropertyKey-Dgu5PCQm.js";
6
- import { a as Do } from "../../index-D2lG1Jv0.js";
4
+ import { Z as po, $ as Tt, I as Ye, e as M, a0 as gt, L as Ae, v as D, d as ne, a1 as yo, a2 as bo, a3 as Co, j as lt, C as mt, h as K, n as Xt, T as Fe, l as ht, q as xo, s as Eo, A as E, _ as Yt, a as Re, b as Zt, g as Ze, c as Ie, k as ue, F as wo, i as nr, K as de, N as Je, a4 as Et, M as rr, S as or, O as Y, a5 as ir, a6 as So, W as Fo, G as Oo, a7 as $o, u as Po, w as En, y as No, a8 as wn, z as Sn, P as Ro, E as le, a9 as Io, aa as Vo, ab as ke, ac as Oe, ad as we, D as Fn, t as To, V as Jt, ae as _o, af as ar, ag as Mo, Q as Lo, U as sr, J as ct, Y as Ho, X as jo, ah as Qt, ai as Bo, aj as Do, ak as lr } from "../../Skeleton-DAEfQTU0.js";
7
5
  import { a as se } from "../../index-kNWC7pFF.js";
8
6
  import { _ as cr, a as k } from "../../assertThisInitialized-BUtkG-md.js";
9
7
  import '../../assets/index3.css';const Ao = (e) => /* @__PURE__ */ g.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), zo = (e) => /* @__PURE__ */ g.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("path", { d: "M5 13L9 17L19 7", stroke: "#12121A", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Wo = "_flexRowCenter_14ewh_1", qo = "_mr10_14ewh_7", Go = "_text18_14ewh_15", Uo = "_content_14ewh_19", Ge = {
@@ -157,12 +155,12 @@ function ce() {
157
155
  try {
158
156
  u({}, "");
159
157
  } catch {
160
- u = function(F, R, B) {
161
- return F[R] = B;
158
+ u = function(F, R, j) {
159
+ return F[R] = j;
162
160
  };
163
161
  }
164
162
  function l(S, C, F, R) {
165
- var B = C && C.prototype instanceof y ? C : y, V = Object.create(B.prototype), W = new L(R || []);
163
+ var j = C && C.prototype instanceof y ? C : y, V = Object.create(j.prototype), W = new L(R || []);
166
164
  return o(V, "_invoke", {
167
165
  value: _(S, F, W)
168
166
  }), V;
@@ -203,8 +201,8 @@ function ce() {
203
201
  });
204
202
  }
205
203
  function N(S, C) {
206
- function F(B, V, W, U) {
207
- var z = d(S[B], S, V);
204
+ function F(j, V, W, U) {
205
+ var z = d(S[j], S, V);
208
206
  if (z.type !== "throw") {
209
207
  var J = z.arg, Q = J.value;
210
208
  return Q && ne(Q) == "object" && r.call(Q, "__await") ? C.resolve(Q.__await).then(function(oe) {
@@ -233,16 +231,16 @@ function ce() {
233
231
  }
234
232
  function _(S, C, F) {
235
233
  var R = m;
236
- return function(B, V) {
234
+ return function(j, V) {
237
235
  if (R === p) throw Error("Generator is already running");
238
236
  if (R === h) {
239
- if (B === "throw") throw V;
237
+ if (j === "throw") throw V;
240
238
  return {
241
239
  value: e,
242
240
  done: !0
243
241
  };
244
242
  }
245
- for (F.method = B, F.arg = V; ; ) {
243
+ for (F.method = j, F.arg = V; ; ) {
246
244
  var W = F.delegate;
247
245
  if (W) {
248
246
  var U = H(W, F);
@@ -272,9 +270,9 @@ function ce() {
272
270
  function H(S, C) {
273
271
  var F = C.method, R = S.iterator[F];
274
272
  if (R === e) return C.delegate = null, F === "throw" && S.iterator.return && (C.method = "return", C.arg = e, H(S, C), C.method === "throw") || F !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + F + "' method")), f;
275
- var B = d(R, S.iterator, C.arg);
276
- if (B.type === "throw") return C.method = "throw", C.arg = B.arg, C.delegate = null, f;
277
- var V = B.arg;
273
+ var j = d(R, S.iterator, C.arg);
274
+ if (j.type === "throw") return C.method = "throw", C.arg = j.arg, C.delegate = null, f;
275
+ var V = j.arg;
278
276
  return V ? V.done ? (C[S.resultName] = V.value, C.next = S.nextLoc, C.method !== "return" && (C.method = "next", C.arg = e), C.delegate = null, f) : V : (C.method = "throw", C.arg = new TypeError("iterator result is not an object"), C.delegate = null, f);
279
277
  }
280
278
  function A(S) {
@@ -283,7 +281,7 @@ function ce() {
283
281
  };
284
282
  1 in S && (C.catchLoc = S[1]), 2 in S && (C.finallyLoc = S[2], C.afterLoc = S[3]), this.tryEntries.push(C);
285
283
  }
286
- function j(S) {
284
+ function B(S) {
287
285
  var C = S.completion || {};
288
286
  C.type = "normal", delete C.arg, S.completion = C;
289
287
  }
@@ -298,9 +296,9 @@ function ce() {
298
296
  if (C) return C.call(S);
299
297
  if (typeof S.next == "function") return S;
300
298
  if (!isNaN(S.length)) {
301
- var F = -1, R = function B() {
302
- for (; ++F < S.length; ) if (r.call(S, F)) return B.value = S[F], B.done = !1, B;
303
- return B.value = e, B.done = !0, B;
299
+ var F = -1, R = function j() {
300
+ for (; ++F < S.length; ) if (r.call(S, F)) return j.value = S[F], j.done = !1, j;
301
+ return j.value = e, j.done = !0, j;
304
302
  };
305
303
  return R.next = R;
306
304
  }
@@ -324,9 +322,9 @@ function ce() {
324
322
  };
325
323
  }, T(N.prototype), u(N.prototype, s, function() {
326
324
  return this;
327
- }), t.AsyncIterator = N, t.async = function(S, C, F, R, B) {
328
- B === void 0 && (B = Promise);
329
- var V = new N(l(S, C, F, R), B);
325
+ }), t.AsyncIterator = N, t.async = function(S, C, F, R, j) {
326
+ j === void 0 && (j = Promise);
327
+ var V = new N(l(S, C, F, R), j);
330
328
  return t.isGeneratorFunction(C) ? V : V.next().then(function(W) {
331
329
  return W.done ? W.value : V.next();
332
330
  });
@@ -337,17 +335,17 @@ function ce() {
337
335
  }), t.keys = function(S) {
338
336
  var C = Object(S), F = [];
339
337
  for (var R in C) F.push(R);
340
- return F.reverse(), function B() {
338
+ return F.reverse(), function j() {
341
339
  for (; F.length; ) {
342
340
  var V = F.pop();
343
- if (V in C) return B.value = V, B.done = !1, B;
341
+ if (V in C) return j.value = V, j.done = !1, j;
344
342
  }
345
- return B.done = !0, B;
343
+ return j.done = !0, j;
346
344
  };
347
345
  }, t.values = G, L.prototype = {
348
346
  constructor: L,
349
347
  reset: function(C) {
350
- if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(j), !C) for (var F in this) F.charAt(0) === "t" && r.call(this, F) && !isNaN(+F.slice(1)) && (this[F] = e);
348
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(B), !C) for (var F in this) F.charAt(0) === "t" && r.call(this, F) && !isNaN(+F.slice(1)) && (this[F] = e);
351
349
  },
352
350
  stop: function() {
353
351
  this.done = !0;
@@ -361,8 +359,8 @@ function ce() {
361
359
  function R(J, Q) {
362
360
  return W.type = "throw", W.arg = C, F.next = J, Q && (F.method = "next", F.arg = e), !!Q;
363
361
  }
364
- for (var B = this.tryEntries.length - 1; B >= 0; --B) {
365
- var V = this.tryEntries[B], W = V.completion;
362
+ for (var j = this.tryEntries.length - 1; j >= 0; --j) {
363
+ var V = this.tryEntries[j], W = V.completion;
366
364
  if (V.tryLoc === "root") return R("end");
367
365
  if (V.tryLoc <= this.prev) {
368
366
  var U = r.call(V, "catchLoc"), z = r.call(V, "finallyLoc");
@@ -380,9 +378,9 @@ function ce() {
380
378
  },
381
379
  abrupt: function(C, F) {
382
380
  for (var R = this.tryEntries.length - 1; R >= 0; --R) {
383
- var B = this.tryEntries[R];
384
- if (B.tryLoc <= this.prev && r.call(B, "finallyLoc") && this.prev < B.finallyLoc) {
385
- var V = B;
381
+ var j = this.tryEntries[R];
382
+ if (j.tryLoc <= this.prev && r.call(j, "finallyLoc") && this.prev < j.finallyLoc) {
383
+ var V = j;
386
384
  break;
387
385
  }
388
386
  }
@@ -397,17 +395,17 @@ function ce() {
397
395
  finish: function(C) {
398
396
  for (var F = this.tryEntries.length - 1; F >= 0; --F) {
399
397
  var R = this.tryEntries[F];
400
- if (R.finallyLoc === C) return this.complete(R.completion, R.afterLoc), j(R), f;
398
+ if (R.finallyLoc === C) return this.complete(R.completion, R.afterLoc), B(R), f;
401
399
  }
402
400
  },
403
401
  catch: function(C) {
404
402
  for (var F = this.tryEntries.length - 1; F >= 0; --F) {
405
403
  var R = this.tryEntries[F];
406
404
  if (R.tryLoc === C) {
407
- var B = R.completion;
408
- if (B.type === "throw") {
409
- var V = B.arg;
410
- j(R);
405
+ var j = R.completion;
406
+ if (j.type === "throw") {
407
+ var V = j.arg;
408
+ B(R);
411
409
  }
412
410
  return V;
413
411
  }
@@ -446,7 +444,7 @@ function Ve(e) {
446
444
  });
447
445
  };
448
446
  }
449
- var Qe = M({}, Do), vi = Qe.version, pi = Qe.render, yi = Qe.unmountComponentAtNode, vt;
447
+ var Qe = M({}, yo), vi = Qe.version, pi = Qe.render, yi = Qe.unmountComponentAtNode, vt;
450
448
  try {
451
449
  var bi = Number((vi || "").split(".")[0]);
452
450
  bi >= 18 && (vt = Qe.createRoot);
@@ -543,7 +541,7 @@ const Si = (e) => {
543
541
  }
544
542
  }
545
543
  };
546
- }, Fi = yo("Wave", (e) => [Si(e)]), Cr = `${bo}-wave-target`;
544
+ }, Fi = bo("Wave", (e) => [Si(e)]), Cr = `${Co}-wave-target`;
547
545
  function wt(e) {
548
546
  return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
549
547
  e !== "transparent";
@@ -584,9 +582,9 @@ const $i = (e) => {
584
582
  borderTopLeftRadius: _,
585
583
  borderTopRightRadius: H,
586
584
  borderBottomLeftRadius: A,
587
- borderBottomRightRadius: j
585
+ borderBottomRightRadius: B
588
586
  } = I;
589
- c([_, H, j, A].map((L) => St(parseFloat(L))));
587
+ c([_, H, B, A].map((L) => St(parseFloat(L))));
590
588
  }
591
589
  if (g.useEffect(() => {
592
590
  if (n) {
@@ -675,7 +673,7 @@ const $i = (e) => {
675
673
  if (!l || l.nodeType !== 1 || n)
676
674
  return;
677
675
  const d = (m) => {
678
- !Co(m.target) || // No need wave
676
+ !xo(m.target) || // No need wave
679
677
  !l.getAttribute || l.getAttribute("disabled") || l.disabled || l.className.includes("disabled") || l.className.includes("-leave") || c(m);
680
678
  };
681
679
  return l.addEventListener("click", d, !0), () => {
@@ -683,7 +681,7 @@ const $i = (e) => {
683
681
  };
684
682
  }, [n]), !/* @__PURE__ */ P.isValidElement(t))
685
683
  return t ?? null;
686
- const u = xo(t) ? Xt(t.ref, i) : i;
684
+ const u = Eo(t) ? Xt(t.ref, i) : i;
687
685
  return mr(t, {
688
686
  ref: u
689
687
  });
@@ -1250,13 +1248,13 @@ class pt {
1250
1248
  this.r = n[0], this.g = n[1], this.b = n[2], this.a = n[3];
1251
1249
  }
1252
1250
  }
1253
- var Bi = ["b"], ji = ["v"], Pt = function(t) {
1251
+ var ji = ["b"], Bi = ["v"], Pt = function(t) {
1254
1252
  return Math.round(Number(t || 0));
1255
1253
  }, Di = function(t) {
1256
1254
  if (t instanceof pt)
1257
1255
  return t;
1258
1256
  if (t && ne(t) === "object" && "h" in t && "b" in t) {
1259
- var n = t, r = n.b, o = Ze(n, Bi);
1257
+ var n = t, r = n.b, o = Ze(n, ji);
1260
1258
  return M(M({}, o), {}, {
1261
1259
  v: r
1262
1260
  });
@@ -1277,7 +1275,7 @@ var Bi = ["b"], ji = ["v"], Pt = function(t) {
1277
1275
  }, {
1278
1276
  key: "toHsb",
1279
1277
  value: function() {
1280
- var o = this.toHsv(), i = o.v, a = Ze(o, ji);
1278
+ var o = this.toHsv(), i = o.v, a = Ze(o, Bi);
1281
1279
  return M(M({}, a), {}, {
1282
1280
  b: i,
1283
1281
  a: this.a
@@ -1357,13 +1355,13 @@ function Pr(e) {
1357
1355
  };
1358
1356
  }, []);
1359
1357
  var h = function(w) {
1360
- var O = qi(w), I = O.pageX, $ = O.pageY, T = n.current.getBoundingClientRect(), N = T.x, _ = T.y, H = T.width, A = T.height, j = t.current.getBoundingClientRect(), L = j.width, G = j.height, S = L / 2, C = G / 2, F = Math.max(0, Math.min(I - N, H)) - S, R = Math.max(0, Math.min($ - _, A)) - C, B = {
1358
+ var O = qi(w), I = O.pageX, $ = O.pageY, T = n.current.getBoundingClientRect(), N = T.x, _ = T.y, H = T.width, A = T.height, B = t.current.getBoundingClientRect(), L = B.width, G = B.height, S = L / 2, C = G / 2, F = Math.max(0, Math.min(I - N, H)) - S, R = Math.max(0, Math.min($ - _, A)) - C, j = {
1361
1359
  x: F,
1362
1360
  y: r === "x" ? d.y : R
1363
1361
  };
1364
1362
  if (L === 0 && G === 0 || L !== G)
1365
1363
  return !1;
1366
- o == null || o(B);
1364
+ o == null || o(j);
1367
1365
  }, f = function(w) {
1368
1366
  w.preventDefault(), h(w);
1369
1367
  }, y = function(w) {
@@ -1445,7 +1443,7 @@ var Nr = function(t) {
1445
1443
  }
1446
1444
  })));
1447
1445
  }, Ui = function(t, n) {
1448
- var r = Eo(t, {
1446
+ var r = wo(t, {
1449
1447
  value: n
1450
1448
  }), o = ue(r, 2), i = o[0], a = o[1], s = Se(function() {
1451
1449
  return He(i);
@@ -1555,8 +1553,8 @@ var Yi = [{
1555
1553
  }], Zi = /* @__PURE__ */ ft(function(e, t) {
1556
1554
  var n = e.value, r = e.defaultValue, o = e.prefixCls, i = o === void 0 ? Ai : o, a = e.onChange, s = e.onChangeComplete, c = e.className, u = e.style, l = e.panelRender, d = e.disabledAlpha, m = d === void 0 ? !1 : d, x = e.disabled, p = x === void 0 ? !1 : x, h = e.components, f = Xi(h), y = ue(f, 1), v = y[0], b = Ui(r || zi, n), w = ue(b, 2), O = w[0], I = w[1], $ = Se(function() {
1557
1555
  return O.setA(1).toRgbString();
1558
- }, [O]), T = function(R, B) {
1559
- n || I(R), a == null || a(R, B);
1556
+ }, [O]), T = function(R, j) {
1557
+ n || I(R), a == null || a(R, j);
1560
1558
  }, N = function(R) {
1561
1559
  return new xe(O.setHue(R));
1562
1560
  }, _ = function(R) {
@@ -1571,7 +1569,7 @@ var Yi = [{
1571
1569
  type: "alpha",
1572
1570
  value: R
1573
1571
  });
1574
- }, j = function(R) {
1572
+ }, B = function(R) {
1575
1573
  s && s(N(R));
1576
1574
  }, L = function(R) {
1577
1575
  s && s(_(R));
@@ -1594,7 +1592,7 @@ var Yi = [{
1594
1592
  max: 359,
1595
1593
  value: O.getHue(),
1596
1594
  onChange: H,
1597
- onChangeComplete: j
1595
+ onChangeComplete: B
1598
1596
  })), !m && /* @__PURE__ */ P.createElement(v, se({}, S, {
1599
1597
  type: "alpha",
1600
1598
  colors: [{
@@ -2072,7 +2070,7 @@ const aa = {
2072
2070
  boxShadow: "none",
2073
2071
  background: t
2074
2072
  }, yt(e, n, r))
2075
- }), je = (e, t, n, r, o) => ({
2073
+ }), Be = (e, t, n, r, o) => ({
2076
2074
  [`&${e.componentCls}-variant-${n}`]: Object.assign({
2077
2075
  color: t,
2078
2076
  boxShadow: "none"
@@ -2088,7 +2086,7 @@ const aa = {
2088
2086
  background: e.colorFillSecondary
2089
2087
  }, {
2090
2088
  background: e.colorFill
2091
- })), je(e, e.textTextColor, "link", {
2089
+ })), Be(e, e.textTextColor, "link", {
2092
2090
  color: e.colorLinkHover,
2093
2091
  background: e.linkHoverBg
2094
2092
  }, {
@@ -2108,7 +2106,7 @@ const aa = {
2108
2106
  background: e.colorPrimaryBgHover
2109
2107
  }, {
2110
2108
  background: e.colorPrimaryBorder
2111
- })), je(e, e.colorLink, "text", {
2109
+ })), Be(e, e.colorLink, "text", {
2112
2110
  color: e.colorPrimaryTextHover,
2113
2111
  background: e.colorPrimaryBg
2114
2112
  }, {
@@ -2137,13 +2135,13 @@ const aa = {
2137
2135
  background: e.colorErrorBgFilledHover
2138
2136
  }, {
2139
2137
  background: e.colorErrorBgActive
2140
- })), je(e, e.colorError, "text", {
2138
+ })), Be(e, e.colorError, "text", {
2141
2139
  color: e.colorErrorHover,
2142
2140
  background: e.colorErrorBg
2143
2141
  }, {
2144
2142
  color: e.colorErrorHover,
2145
2143
  background: e.colorErrorBgActive
2146
- })), je(e, e.colorError, "link", {
2144
+ })), Be(e, e.colorError, "link", {
2147
2145
  color: e.colorErrorHover
2148
2146
  }, {
2149
2147
  color: e.colorErrorActive
@@ -2170,7 +2168,7 @@ const aa = {
2170
2168
  color: e.defaultActiveColor,
2171
2169
  borderColor: e.defaultActiveBorderColor,
2172
2170
  background: e.defaultActiveBg
2173
- })), je(e, e.textTextColor, "text", {
2171
+ })), Be(e, e.textTextColor, "text", {
2174
2172
  color: e.textTextHoverColor,
2175
2173
  background: e.textHoverBg
2176
2174
  }, {
@@ -2182,7 +2180,7 @@ const aa = {
2182
2180
  }, {
2183
2181
  background: e.colorPrimaryActive,
2184
2182
  color: e.primaryColor
2185
- })), je(e, e.colorLink, "link", {
2183
+ })), Be(e, e.colorLink, "link", {
2186
2184
  color: e.colorLinkHover,
2187
2185
  background: e.linkHoverBg
2188
2186
  }, {
@@ -2507,16 +2505,16 @@ const Ma = {
2507
2505
  classNames: T,
2508
2506
  style: N = {},
2509
2507
  autoInsertSpace: _
2510
- } = e, H = Ta(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), A = l || "default", [j, L] = Se(() => {
2508
+ } = e, H = Ta(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), A = l || "default", [B, L] = Se(() => {
2511
2509
  if (c && u)
2512
2510
  return [c, u];
2513
2511
  const ie = Ma[A] || [];
2514
2512
  return d ? ["danger", ie[1]] : ie;
2515
- }, [l, c, u, d]), S = j === "danger" ? "dangerous" : j, {
2513
+ }, [l, c, u, d]), S = B === "danger" ? "dangerous" : B, {
2516
2514
  getPrefixCls: C,
2517
2515
  direction: F,
2518
2516
  button: R
2519
- } = pe(Fe), B = (n = _ ?? (R == null ? void 0 : R.autoInsertSpace)) !== null && n !== void 0 ? n : !0, V = C("btn", s), [W, U, z] = Sa(V), J = pe(wo), Q = h ?? J, oe = pe(wr), ye = Se(() => _a(a), [a]), [me, ot] = st(ye.loading), [We, qe] = st(!1), Ee = Xt(t, /* @__PURE__ */ ho()), Z = vo.count(v) === 1 && !b && !it(L);
2517
+ } = pe(Fe), j = (n = _ ?? (R == null ? void 0 : R.autoInsertSpace)) !== null && n !== void 0 ? n : !0, V = C("btn", s), [W, U, z] = Sa(V), J = pe(So), Q = h ?? J, oe = pe(wr), ye = Se(() => _a(a), [a]), [me, ot] = st(ye.loading), [We, qe] = st(!1), Ee = Xt(t, /* @__PURE__ */ ho()), Z = vo.count(v) === 1 && !b && !it(L);
2520
2518
  Ne(() => {
2521
2519
  let ie = null;
2522
2520
  ye.delay > 0 ? ie = setTimeout(() => {
@@ -2527,7 +2525,7 @@ const Ma = {
2527
2525
  }
2528
2526
  return be;
2529
2527
  }, [ye]), Ne(() => {
2530
- if (!Ee || !Ee.current || !B)
2528
+ if (!Ee || !Ee.current || !j)
2531
2529
  return;
2532
2530
  const ie = Ee.current.textContent;
2533
2531
  Z && Lt(ie) ? We || qe(!0) : We && qe(!1);
@@ -2551,10 +2549,10 @@ const Ma = {
2551
2549
  large: "lg",
2552
2550
  small: "sm",
2553
2551
  middle: void 0
2554
- }, hn = So((ie) => {
2552
+ }, hn = Fo((ie) => {
2555
2553
  var be, xt;
2556
2554
  return (xt = (be = x ?? co) !== null && be !== void 0 ? be : oe) !== null && xt !== void 0 ? xt : ie;
2557
- }), vn = hn && (r = uo[hn]) !== null && r !== void 0 ? r : "", fo = me ? "loading" : b, bt = Fo(H, ["navigate"]), pn = K(V, U, z, {
2555
+ }), vn = hn && (r = uo[hn]) !== null && r !== void 0 ? r : "", fo = me ? "loading" : b, bt = Oo(H, ["navigate"]), pn = K(V, U, z, {
2558
2556
  [`${V}-${m}`]: m !== "default" && m,
2559
2557
  // line(253 - 254): Compatible with versions earlier than 5.21.0
2560
2558
  [`${V}-${A}`]: A,
@@ -2565,7 +2563,7 @@ const Ma = {
2565
2563
  [`${V}-icon-only`]: !v && v !== 0 && !!fo,
2566
2564
  [`${V}-background-ghost`]: O && !it(L),
2567
2565
  [`${V}-loading`]: me,
2568
- [`${V}-two-chinese-chars`]: We && B && !me,
2566
+ [`${V}-two-chinese-chars`]: We && j && !me,
2569
2567
  [`${V}-block`]: I,
2570
2568
  [`${V}-rtl`]: F === "rtl",
2571
2569
  [`${V}-icon-end`]: w === "end"
@@ -2577,7 +2575,7 @@ const Ma = {
2577
2575
  existIcon: !!b,
2578
2576
  prefixCls: V,
2579
2577
  loading: me
2580
- }), Cn = v || v === 0 ? Mi(v, Z && B) : null;
2578
+ }), Cn = v || v === 0 ? Mi(v, Z && j) : null;
2581
2579
  if (bt.href !== void 0)
2582
2580
  return W(/* @__PURE__ */ P.createElement("a", Object.assign({}, bt, {
2583
2581
  className: K(pn, {
@@ -2623,7 +2621,7 @@ const Mr = (e) => {
2623
2621
  isSilent: c,
2624
2622
  quitOnNullishReturnValue: u,
2625
2623
  actionFn: l
2626
- } = e, d = g.useRef(!1), m = g.useRef(null), [x, p] = Oo(!1), h = function() {
2624
+ } = e, d = g.useRef(!1), m = g.useRef(null), [x, p] = $o(!1), h = function() {
2627
2625
  i == null || i.apply(void 0, arguments);
2628
2626
  };
2629
2627
  g.useEffect(() => {
@@ -2738,14 +2736,14 @@ function Ha(e) {
2738
2736
  }, r = e.ownerDocument, o = r.defaultView || r.parentWindow;
2739
2737
  return n.left += Hn(o), n.top += Hn(o, !0), n;
2740
2738
  }
2741
- const Ba = /* @__PURE__ */ g.memo(function(e) {
2739
+ const ja = /* @__PURE__ */ g.memo(function(e) {
2742
2740
  var t = e.children;
2743
2741
  return t;
2744
2742
  }, function(e, t) {
2745
2743
  var n = t.shouldUpdate;
2746
2744
  return !n;
2747
2745
  });
2748
- var ja = {
2746
+ var Ba = {
2749
2747
  width: 0,
2750
2748
  height: 0,
2751
2749
  overflow: "hidden",
@@ -2753,7 +2751,7 @@ var ja = {
2753
2751
  }, Da = {
2754
2752
  outline: "none"
2755
2753
  }, un = /* @__PURE__ */ P.forwardRef(function(e, t) {
2756
- var n = e.prefixCls, r = e.className, o = e.style, i = e.title, a = e.ariaId, s = e.footer, c = e.closable, u = e.closeIcon, l = e.onClose, d = e.children, m = e.bodyStyle, x = e.bodyProps, p = e.modalRender, h = e.onMouseDown, f = e.onMouseUp, y = e.holderRef, v = e.visible, b = e.forceRender, w = e.width, O = e.height, I = e.classNames, $ = e.styles, T = P.useContext(Hr), N = T.panel, _ = $o(y, N), H = te(), A = te();
2754
+ var n = e.prefixCls, r = e.className, o = e.style, i = e.title, a = e.ariaId, s = e.footer, c = e.closable, u = e.closeIcon, l = e.onClose, d = e.children, m = e.bodyStyle, x = e.bodyProps, p = e.modalRender, h = e.onMouseDown, f = e.onMouseUp, y = e.holderRef, v = e.visible, b = e.forceRender, w = e.width, O = e.height, I = e.classNames, $ = e.styles, T = P.useContext(Hr), N = T.panel, _ = Po(y, N), H = te(), A = te();
2757
2755
  P.useImperativeHandle(t, function() {
2758
2756
  return {
2759
2757
  focus: function() {
@@ -2772,8 +2770,8 @@ var ja = {
2772
2770
  }
2773
2771
  };
2774
2772
  });
2775
- var j = {};
2776
- w !== void 0 && (j.width = w), O !== void 0 && (j.height = O);
2773
+ var B = {};
2774
+ w !== void 0 && (B.width = w), O !== void 0 && (B.height = O);
2777
2775
  var L = s ? /* @__PURE__ */ P.createElement("div", {
2778
2776
  className: K("".concat(n, "-footer"), I == null ? void 0 : I.footer),
2779
2777
  style: M({}, $ == null ? void 0 : $.footer)
@@ -2796,7 +2794,7 @@ var ja = {
2796
2794
  }, C, {
2797
2795
  className: "".concat(n, "-close"),
2798
2796
  disabled: F
2799
- }), S.closeIcon) : null, B = /* @__PURE__ */ P.createElement("div", {
2797
+ }), S.closeIcon) : null, j = /* @__PURE__ */ P.createElement("div", {
2800
2798
  className: K("".concat(n, "-content"), I == null ? void 0 : I.content),
2801
2799
  style: $ == null ? void 0 : $.content
2802
2800
  }, R, G, /* @__PURE__ */ P.createElement("div", se({
@@ -2809,7 +2807,7 @@ var ja = {
2809
2807
  "aria-labelledby": i ? a : null,
2810
2808
  "aria-modal": "true",
2811
2809
  ref: _,
2812
- style: M(M({}, o), j),
2810
+ style: M(M({}, o), B),
2813
2811
  className: K(n, r),
2814
2812
  onMouseDown: h,
2815
2813
  onMouseUp: f
@@ -2817,16 +2815,16 @@ var ja = {
2817
2815
  ref: H,
2818
2816
  tabIndex: 0,
2819
2817
  style: Da
2820
- }, /* @__PURE__ */ P.createElement(Ba, {
2818
+ }, /* @__PURE__ */ P.createElement(ja, {
2821
2819
  shouldUpdate: v || b
2822
- }, p ? p(B) : B)), /* @__PURE__ */ P.createElement("div", {
2820
+ }, p ? p(j) : j)), /* @__PURE__ */ P.createElement("div", {
2823
2821
  tabIndex: 0,
2824
2822
  ref: A,
2825
- style: ja
2823
+ style: Ba
2826
2824
  }));
2827
2825
  });
2828
2826
  process.env.NODE_ENV !== "production" && (un.displayName = "Panel");
2829
- var Br = /* @__PURE__ */ g.forwardRef(function(e, t) {
2827
+ var jr = /* @__PURE__ */ g.forwardRef(function(e, t) {
2830
2828
  var n = e.prefixCls, r = e.title, o = e.style, i = e.className, a = e.visible, s = e.forceRender, c = e.destroyOnClose, u = e.motionName, l = e.ariaId, d = e.onVisibleChanged, m = e.mousePosition, x = te(), p = g.useState(), h = ue(p, 2), f = h[0], y = h[1], v = {};
2831
2829
  f && (v.transformOrigin = f);
2832
2830
  function b() {
@@ -2855,7 +2853,7 @@ var Br = /* @__PURE__ */ g.forwardRef(function(e, t) {
2855
2853
  }));
2856
2854
  });
2857
2855
  });
2858
- Br.displayName = "Content";
2856
+ jr.displayName = "Content";
2859
2857
  var Aa = function(t) {
2860
2858
  var n = t.prefixCls, r = t.style, o = t.visible, i = t.maskProps, a = t.motionName, s = t.className;
2861
2859
  return /* @__PURE__ */ g.createElement(mt, {
@@ -2872,11 +2870,11 @@ var Aa = function(t) {
2872
2870
  }, i));
2873
2871
  });
2874
2872
  }, za = function(t) {
2875
- var n = t.prefixCls, r = n === void 0 ? "rc-dialog" : n, o = t.zIndex, i = t.visible, a = i === void 0 ? !1 : i, s = t.keyboard, c = s === void 0 ? !0 : s, u = t.focusTriggerAfterClose, l = u === void 0 ? !0 : u, d = t.wrapStyle, m = t.wrapClassName, x = t.wrapProps, p = t.onClose, h = t.afterOpenChange, f = t.afterClose, y = t.transitionName, v = t.animation, b = t.closable, w = b === void 0 ? !0 : b, O = t.mask, I = O === void 0 ? !0 : O, $ = t.maskTransitionName, T = t.maskAnimation, N = t.maskClosable, _ = N === void 0 ? !0 : N, H = t.maskStyle, A = t.maskProps, j = t.rootClassName, L = t.classNames, G = t.styles;
2873
+ var n = t.prefixCls, r = n === void 0 ? "rc-dialog" : n, o = t.zIndex, i = t.visible, a = i === void 0 ? !1 : i, s = t.keyboard, c = s === void 0 ? !0 : s, u = t.focusTriggerAfterClose, l = u === void 0 ? !0 : u, d = t.wrapStyle, m = t.wrapClassName, x = t.wrapProps, p = t.onClose, h = t.afterOpenChange, f = t.afterClose, y = t.transitionName, v = t.animation, b = t.closable, w = b === void 0 ? !0 : b, O = t.mask, I = O === void 0 ? !0 : O, $ = t.maskTransitionName, T = t.maskAnimation, N = t.maskClosable, _ = N === void 0 ? !0 : N, H = t.maskStyle, A = t.maskProps, B = t.rootClassName, L = t.classNames, G = t.styles;
2876
2874
  process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(Z) {
2877
2875
  En(!(Z in t), "".concat(Z, " is deprecated, please use styles instead."));
2878
2876
  }), "wrapClassName" in t && En(!1, "wrapClassName is deprecated, please use classNames instead."));
2879
- var S = te(), C = te(), F = te(), R = g.useState(a), B = ue(R, 2), V = B[0], W = B[1], U = Po();
2877
+ var S = te(), C = te(), F = te(), R = g.useState(a), j = ue(R, 2), V = j[0], W = j[1], U = No();
2880
2878
  function z() {
2881
2879
  wn(C.current, document.activeElement) || (S.current = document.activeElement);
2882
2880
  }
@@ -2936,7 +2934,7 @@ var Aa = function(t) {
2936
2934
  display: V ? null : "none"
2937
2935
  });
2938
2936
  return /* @__PURE__ */ g.createElement("div", se({
2939
- className: K("".concat(r, "-root"), j)
2937
+ className: K("".concat(r, "-root"), B)
2940
2938
  }, tn(t, {
2941
2939
  data: !0
2942
2940
  })), /* @__PURE__ */ g.createElement(Aa, {
@@ -2955,7 +2953,7 @@ var Aa = function(t) {
2955
2953
  ref: C,
2956
2954
  onClick: qe,
2957
2955
  style: Ee
2958
- }, x), /* @__PURE__ */ g.createElement(Br, se({}, t, {
2956
+ }, x), /* @__PURE__ */ g.createElement(jr, se({}, t, {
2959
2957
  onMouseDown: ot,
2960
2958
  onMouseUp: We,
2961
2959
  ref: F,
@@ -2967,7 +2965,7 @@ var Aa = function(t) {
2967
2965
  onVisibleChanged: Q,
2968
2966
  motionName: Ln(r, y, v)
2969
2967
  }))));
2970
- }, jr = function(t) {
2968
+ }, Br = function(t) {
2971
2969
  var n = t.visible, r = t.getContainer, o = t.forceRender, i = t.destroyOnClose, a = i === void 0 ? !1 : i, s = t.afterClose, c = t.panelRef, u = g.useState(n), l = ue(u, 2), d = l[0], m = l[1], x = g.useMemo(function() {
2972
2970
  return {
2973
2971
  panel: c
@@ -2977,7 +2975,7 @@ var Aa = function(t) {
2977
2975
  n && m(!0);
2978
2976
  }, [n]), !o && a && !d ? null : /* @__PURE__ */ g.createElement(Hr.Provider, {
2979
2977
  value: x
2980
- }, /* @__PURE__ */ g.createElement(No, {
2978
+ }, /* @__PURE__ */ g.createElement(Ro, {
2981
2979
  open: n || o || d,
2982
2980
  autoDestroy: !1,
2983
2981
  getContainer: r,
@@ -2989,7 +2987,7 @@ var Aa = function(t) {
2989
2987
  }
2990
2988
  }))));
2991
2989
  };
2992
- jr.displayName = "Dialog";
2990
+ Br.displayName = "Dialog";
2993
2991
  var $e = "RC_FORM_INTERNAL_HOOKS", X = function() {
2994
2992
  le(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
2995
2993
  }, De = /* @__PURE__ */ g.createContext({
@@ -3031,7 +3029,7 @@ function Ht(e) {
3031
3029
  function Wa(e) {
3032
3030
  return e && !!e._init;
3033
3031
  }
3034
- function Bt() {
3032
+ function jt() {
3035
3033
  return {
3036
3034
  default: "Validation error on field %s",
3037
3035
  required: "%s is required",
@@ -3084,7 +3082,7 @@ function Bt() {
3084
3082
  }
3085
3083
  };
3086
3084
  }
3087
- var jt = Bt();
3085
+ var Bt = jt();
3088
3086
  function qa(e) {
3089
3087
  try {
3090
3088
  return Function.toString.call(e).indexOf("[native code]") !== -1;
@@ -3093,7 +3091,7 @@ function qa(e) {
3093
3091
  }
3094
3092
  }
3095
3093
  function Ga(e, t, n) {
3096
- if (Ro()) return Reflect.construct.apply(null, arguments);
3094
+ if (Io()) return Reflect.construct.apply(null, arguments);
3097
3095
  var r = [null];
3098
3096
  r.push.apply(r, t);
3099
3097
  var o = new (e.bind.apply(e, r))();
@@ -3109,7 +3107,7 @@ function Dt(e) {
3109
3107
  t.set(r, o);
3110
3108
  }
3111
3109
  function o() {
3112
- return Ga(r, arguments, Io(this).constructor);
3110
+ return Ga(r, arguments, Vo(this).constructor);
3113
3111
  }
3114
3112
  return o.prototype = Object.create(r.prototype, {
3115
3113
  constructor: {
@@ -3183,7 +3181,7 @@ function Ka(e, t, n) {
3183
3181
  t(s, a);
3184
3182
  });
3185
3183
  }
3186
- function Bn(e, t, n) {
3184
+ function jn(e, t, n) {
3187
3185
  var r = 0, o = e.length;
3188
3186
  function i(a) {
3189
3187
  if (a && a.length) {
@@ -3201,7 +3199,7 @@ function Xa(e) {
3201
3199
  t.push.apply(t, D(e[n] || []));
3202
3200
  }), t;
3203
3201
  }
3204
- var jn = /* @__PURE__ */ function(e) {
3202
+ var Bn = /* @__PURE__ */ function(e) {
3205
3203
  Yt(n, e);
3206
3204
  var t = Zt(n);
3207
3205
  function n(r, o) {
@@ -3214,9 +3212,9 @@ function Ya(e, t, n, r, o) {
3214
3212
  if (t.first) {
3215
3213
  var i = new Promise(function(m, x) {
3216
3214
  var p = function(y) {
3217
- return r(y), y.length ? x(new jn(y, At(y))) : m(o);
3215
+ return r(y), y.length ? x(new Bn(y, At(y))) : m(o);
3218
3216
  }, h = Xa(e);
3219
- Bn(h, n, p);
3217
+ jn(h, n, p);
3220
3218
  });
3221
3219
  return i.catch(function(m) {
3222
3220
  return m;
@@ -3225,11 +3223,11 @@ function Ya(e, t, n, r, o) {
3225
3223
  var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, u = 0, l = [], d = new Promise(function(m, x) {
3226
3224
  var p = function(f) {
3227
3225
  if (l.push.apply(l, f), u++, u === c)
3228
- return r(l), l.length ? x(new jn(l, At(l))) : m(o);
3226
+ return r(l), l.length ? x(new Bn(l, At(l))) : m(o);
3229
3227
  };
3230
3228
  s.length || (r(l), m(o)), s.forEach(function(h) {
3231
3229
  var f = e[h];
3232
- a.indexOf(h) !== -1 ? Bn(f, n, p) : Ka(f, n, p);
3230
+ a.indexOf(h) !== -1 ? jn(f, n, p) : Ka(f, n, p);
3233
3231
  });
3234
3232
  });
3235
3233
  return d.catch(function(m) {
@@ -3525,7 +3523,7 @@ const Xe = {
3525
3523
  };
3526
3524
  var tt = /* @__PURE__ */ function() {
3527
3525
  function e(t) {
3528
- Re(this, e), E(this, "rules", null), E(this, "_messages", jt), this.define(t);
3526
+ Re(this, e), E(this, "rules", null), E(this, "_messages", Bt), this.define(t);
3529
3527
  }
3530
3528
  return Ie(e, [{
3531
3529
  key: "define",
@@ -3543,7 +3541,7 @@ var tt = /* @__PURE__ */ function() {
3543
3541
  }, {
3544
3542
  key: "messages",
3545
3543
  value: function(n) {
3546
- return n && (this._messages = An(Bt(), n)), this._messages;
3544
+ return n && (this._messages = An(jt(), n)), this._messages;
3547
3545
  }
3548
3546
  }, {
3549
3547
  key: "validate",
@@ -3567,7 +3565,7 @@ var tt = /* @__PURE__ */ function() {
3567
3565
  }
3568
3566
  if (s.messages) {
3569
3567
  var l = this.messages();
3570
- l === jt && (l = Bt()), An(l, s.messages), s.messages = l;
3568
+ l === Bt && (l = jt()), An(l, s.messages), s.messages = l;
3571
3569
  } else
3572
3570
  s.messages = this.messages();
3573
3571
  var d = {}, m = s.keys || Object.keys(this.rules);
@@ -3607,18 +3605,18 @@ var tt = /* @__PURE__ */ function() {
3607
3605
  if (f.required && !p.value)
3608
3606
  return f.message !== void 0 ? N = [].concat(f.message).map(Dn(f, a)) : s.error && (N = [s.error(f, ge(s.messages.required, f.field))]), h(N);
3609
3607
  var _ = {};
3610
- f.defaultField && Object.keys(p.value).map(function(j) {
3611
- _[j] = f.defaultField;
3608
+ f.defaultField && Object.keys(p.value).map(function(B) {
3609
+ _[B] = f.defaultField;
3612
3610
  }), _ = M(M({}, _), p.rule.fields);
3613
3611
  var H = {};
3614
- Object.keys(_).forEach(function(j) {
3615
- var L = _[j], G = Array.isArray(L) ? L : [L];
3616
- H[j] = G.map(v.bind(null, j));
3612
+ Object.keys(_).forEach(function(B) {
3613
+ var L = _[B], G = Array.isArray(L) ? L : [L];
3614
+ H[B] = G.map(v.bind(null, B));
3617
3615
  });
3618
3616
  var A = new e(H);
3619
- A.messages(s.messages), p.rule.options && (p.rule.options.messages = s.messages, p.rule.options.error = s.error), A.validate(p.value, p.rule.options || s, function(j) {
3617
+ A.messages(s.messages), p.rule.options && (p.rule.options.messages = s.messages, p.rule.options.error = s.error), A.validate(p.value, p.rule.options || s, function(B) {
3620
3618
  var L = [];
3621
- N && N.length && L.push.apply(L, D(N)), j && j.length && L.push.apply(L, D(j)), h(L.length ? L : null);
3619
+ N && N.length && L.push.apply(L, D(N)), B && B.length && L.push.apply(L, D(B)), h(L.length ? L : null);
3622
3620
  });
3623
3621
  }
3624
3622
  }
@@ -3668,7 +3666,7 @@ E(tt, "register", function(t, n) {
3668
3666
  Xe[t] = n;
3669
3667
  });
3670
3668
  E(tt, "warning", Dr);
3671
- E(tt, "messages", jt);
3669
+ E(tt, "messages", Bt);
3672
3670
  E(tt, "validators", Xe);
3673
3671
  var fe = "'${name}' is not a valid ${type}", zr = {
3674
3672
  default: "Validation error on field '${name}'",
@@ -3912,7 +3910,7 @@ function Gn(e, t) {
3912
3910
  n = we(n, r, o);
3913
3911
  }), n;
3914
3912
  }
3915
- function Be(e, t) {
3913
+ function je(e, t) {
3916
3914
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
3917
3915
  return e && e.some(function(r) {
3918
3916
  return Wr(t, r, n);
@@ -3987,7 +3985,7 @@ var dn = /* @__PURE__ */ function(e) {
3987
3985
  } else
3988
3986
  o.metaCache = null;
3989
3987
  }), E(k(o), "onStoreChange", function(c, u, l) {
3990
- var d = o.props, m = d.shouldUpdate, x = d.dependencies, p = x === void 0 ? [] : x, h = d.onReset, f = l.store, y = o.getNamePath(), v = o.getValue(c), b = o.getValue(f), w = u && Be(u, y);
3988
+ var d = o.props, m = d.shouldUpdate, x = d.dependencies, p = x === void 0 ? [] : x, h = d.onReset, f = l.store, y = o.getNamePath(), v = o.getValue(c), b = o.getValue(f), w = u && je(u, y);
3991
3989
  switch (l.type === "valueUpdate" && l.source === "external" && !Fn(v, b) && (o.touched = !0, o.dirty = !0, o.validatePromise = null, o.errors = he, o.warnings = he, o.triggerMetaEvent()), l.type) {
3992
3990
  case "reset":
3993
3991
  if (!u || w) {
@@ -4007,7 +4005,7 @@ var dn = /* @__PURE__ */ function(e) {
4007
4005
  if (w) {
4008
4006
  "touched" in O && (o.touched = O.touched), "validating" in O && !("originRCField" in O) && (o.validatePromise = O.validating ? Promise.resolve([]) : null), "errors" in O && (o.errors = O.errors || he), "warnings" in O && (o.warnings = O.warnings || he), o.dirty = !0, o.triggerMetaEvent(), o.reRender();
4009
4007
  return;
4010
- } else if ("value" in O && Be(u, y, !0)) {
4008
+ } else if ("value" in O && je(u, y, !0)) {
4011
4009
  o.reRender();
4012
4010
  return;
4013
4011
  }
@@ -4020,7 +4018,7 @@ var dn = /* @__PURE__ */ function(e) {
4020
4018
  case "dependenciesUpdate": {
4021
4019
  var I = p.map(ee);
4022
4020
  if (I.some(function($) {
4023
- return Be(l.relatedFields, $);
4021
+ return je(l.relatedFields, $);
4024
4022
  })) {
4025
4023
  o.reRender();
4026
4024
  return;
@@ -4076,11 +4074,11 @@ var dn = /* @__PURE__ */ function(e) {
4076
4074
  if (o.validatePromise === h) {
4077
4075
  var H;
4078
4076
  o.validatePromise = null;
4079
- var A = [], j = [];
4077
+ var A = [], B = [];
4080
4078
  (H = _.forEach) === null || H === void 0 || H.call(_, function(L) {
4081
4079
  var G = L.rule.warningOnly, S = L.errors, C = S === void 0 ? he : S;
4082
- G ? j.push.apply(j, D(C)) : A.push.apply(A, D(C));
4083
- }), o.errors = A, o.warnings = j, o.triggerMetaEvent(), o.reRender();
4080
+ G ? B.push.apply(B, D(C)) : A.push.apply(A, D(C));
4081
+ }), o.errors = A, o.warnings = B, o.triggerMetaEvent(), o.reRender();
4084
4082
  }
4085
4083
  }), N.abrupt("return", $);
4086
4084
  case 13:
@@ -4127,7 +4125,7 @@ var dn = /* @__PURE__ */ function(e) {
4127
4125
  isFunction: !0
4128
4126
  });
4129
4127
  }
4130
- var l = Vo(c);
4128
+ var l = To(c);
4131
4129
  return l.length !== 1 || !/* @__PURE__ */ g.isValidElement(l[0]) ? {
4132
4130
  child: l,
4133
4131
  isFunction: !1
@@ -4156,8 +4154,8 @@ var dn = /* @__PURE__ */ function(e) {
4156
4154
  value: L
4157
4155
  }), _ && _.apply(void 0, S);
4158
4156
  };
4159
- var j = Ht(v || []);
4160
- return j.forEach(function(L) {
4157
+ var B = Ht(v || []);
4158
+ return B.forEach(function(L) {
4161
4159
  var G = A[L];
4162
4160
  A[L] = function() {
4163
4161
  G && G.apply(void 0, arguments);
@@ -4268,10 +4266,10 @@ function $s(e) {
4268
4266
  },
4269
4267
  remove: function(N) {
4270
4268
  var _ = O(), H = new Set(Array.isArray(N) ? N : [N]);
4271
- H.size <= 0 || (l.keys = l.keys.filter(function(A, j) {
4272
- return !H.has(j);
4273
- }), b(_.filter(function(A, j) {
4274
- return !H.has(j);
4269
+ H.size <= 0 || (l.keys = l.keys.filter(function(A, B) {
4270
+ return !H.has(B);
4271
+ }), b(_.filter(function(A, B) {
4272
+ return !H.has(B);
4275
4273
  })));
4276
4274
  },
4277
4275
  move: function(N, _) {
@@ -4557,7 +4555,7 @@ var Le = /* @__PURE__ */ function() {
4557
4555
  var i = r.map(ee);
4558
4556
  return o.some(function(a) {
4559
4557
  var s = a.getNamePath();
4560
- return Be(i, s) && a.isFieldValidating();
4558
+ return je(i, s) && a.isFieldValidating();
4561
4559
  });
4562
4560
  }), E(this, "isFieldValidating", function(r) {
4563
4561
  return n.warningUnhooked(), n.isFieldsValidating([r]);
@@ -4780,7 +4778,7 @@ var Le = /* @__PURE__ */ function() {
4780
4778
  }
4781
4779
  var c = a.filter(function(u) {
4782
4780
  var l = u.name;
4783
- return Be(r, l);
4781
+ return je(r, l);
4784
4782
  });
4785
4783
  c.length && i(c, a);
4786
4784
  }
@@ -4792,7 +4790,7 @@ var Le = /* @__PURE__ */ function() {
4792
4790
  n.getFieldEntities(!0).forEach(function(v) {
4793
4791
  if (s || c.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
4794
4792
  var b = v.getNamePath();
4795
- if (d.add(b.join(l)), !s || Be(c, b, x)) {
4793
+ if (d.add(b.join(l)), !s || je(c, b, x)) {
4796
4794
  var w = v.validateRules(M({
4797
4795
  validateMessages: M(M({}, zr), n.validateMessages)
4798
4796
  }, a));
@@ -4918,7 +4916,7 @@ var Ut = /* @__PURE__ */ g.createContext({
4918
4916
  })
4919
4917
  }, i);
4920
4918
  }, Vs = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Ts = function(t, n) {
4921
- var r = t.name, o = t.initialValues, i = t.fields, a = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, d = t.validateMessages, m = t.validateTrigger, x = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, b = Ze(t, Vs), w = g.useRef(null), O = g.useContext(Ut), I = Ur(a), $ = ue(I, 1), T = $[0], N = T.getInternalHooks($e), _ = N.useSubscribe, H = N.setInitialValues, A = N.setCallbacks, j = N.setValidateMessages, L = N.setPreserve, G = N.destroyForm;
4919
+ var r = t.name, o = t.initialValues, i = t.fields, a = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, d = t.validateMessages, m = t.validateTrigger, x = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, b = Ze(t, Vs), w = g.useRef(null), O = g.useContext(Ut), I = Ur(a), $ = ue(I, 1), T = $[0], N = T.getInternalHooks($e), _ = N.useSubscribe, H = N.setInitialValues, A = N.setCallbacks, B = N.setValidateMessages, L = N.setPreserve, G = N.destroyForm;
4922
4920
  g.useImperativeHandle(n, function() {
4923
4921
  return M(M({}, T), {}, {
4924
4922
  nativeElement: w.current
@@ -4927,7 +4925,7 @@ var Ut = /* @__PURE__ */ g.createContext({
4927
4925
  return O.registerForm(r, T), function() {
4928
4926
  O.unregisterForm(r);
4929
4927
  };
4930
- }, [O, T, r]), j(M(M({}, O.validateMessages), d)), A({
4928
+ }, [O, T, r]), B(M(M({}, O.validateMessages), d)), A({
4931
4929
  onValuesChange: p,
4932
4930
  onFieldsChange: function(z) {
4933
4931
  if (O.triggerFormChange(r, z), h) {
@@ -4958,9 +4956,9 @@ var Ut = /* @__PURE__ */ g.createContext({
4958
4956
  } else
4959
4957
  C = c;
4960
4958
  _(!F);
4961
- var B = g.useRef();
4959
+ var j = g.useRef();
4962
4960
  g.useEffect(function() {
4963
- Ss(B.current || [], i || []) || T.setFields(i || []), B.current = i;
4961
+ Ss(j.current || [], i || []) || T.setFields(i || []), j.current = i;
4964
4962
  }, [i, T]);
4965
4963
  var V = g.useMemo(function() {
4966
4964
  return M(M({}, T), {}, {
@@ -5010,11 +5008,11 @@ function Ms() {
5010
5008
  function() {
5011
5009
  if (f) {
5012
5010
  var b = h.getFieldsValue, w = h.getInternalHooks, O = w($e), I = O.registerWatch, $ = function(H, A) {
5013
- var j = a.preserve ? A : H;
5014
- return typeof r == "function" ? r(j) : Oe(j, v.current);
5011
+ var B = a.preserve ? A : H;
5012
+ return typeof r == "function" ? r(B) : Oe(B, v.current);
5015
5013
  }, T = I(function(_, H) {
5016
- var A = $(_, H), j = kn(A);
5017
- x.current !== j && (x.current = j, d(A));
5014
+ var A = $(_, H), B = kn(A);
5015
+ x.current !== B && (x.current = B, d(A));
5018
5016
  }), N = $(b(), b(!0));
5019
5017
  return l !== N && d(N), T;
5020
5018
  }
@@ -5045,7 +5043,7 @@ const Hs = (e) => {
5045
5043
  return /* @__PURE__ */ g.createElement(kt.Provider, {
5046
5044
  value: i
5047
5045
  }, t);
5048
- }, Bs = (e) => {
5046
+ }, js = (e) => {
5049
5047
  const {
5050
5048
  space: t,
5051
5049
  form: n,
@@ -5095,9 +5093,9 @@ function Yn() {
5095
5093
  });
5096
5094
  }), e;
5097
5095
  }
5098
- const js = {};
5096
+ const Bs = {};
5099
5097
  function Ds(e, t) {
5100
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : js;
5098
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Bs;
5101
5099
  const r = Xn(e), o = Xn(t), i = typeof r != "boolean" ? !!(r != null && r.disabled) : !1, a = P.useMemo(() => Object.assign({
5102
5100
  closeIcon: /* @__PURE__ */ P.createElement(Jt, null)
5103
5101
  }, n), [n]), s = P.useMemo(() => r === !1 ? !1 : r ? Yn(a, o, r) : o === !1 ? !1 : o ? Yn(a, o) : a.closable ? a : !1, [r, o, a]);
@@ -5118,7 +5116,7 @@ function Ds(e, t) {
5118
5116
  return [!0, l, i];
5119
5117
  }, [s, a]);
5120
5118
  }
5121
- const As = () => To() && window.document.documentElement;
5119
+ const As = () => _o() && window.document.documentElement;
5122
5120
  function Zn() {
5123
5121
  }
5124
5122
  const zs = /* @__PURE__ */ g.createContext({
@@ -5191,7 +5189,7 @@ const Kr = (e) => {
5191
5189
  CancelBtn: Jn
5192
5190
  })), h = /* @__PURE__ */ P.createElement(Lr, {
5193
5191
  value: p
5194
- }, h)) : h = u, /* @__PURE__ */ P.createElement(_o, {
5192
+ }, h)) : h = u, /* @__PURE__ */ P.createElement(Mo, {
5195
5193
  disabled: !1
5196
5194
  }, h);
5197
5195
  };
@@ -5283,7 +5281,7 @@ const qs = (e) => {
5283
5281
  },
5284
5282
  // ======================== Modal ========================
5285
5283
  {
5286
- [t]: Object.assign(Object.assign({}, Mo(e)), {
5284
+ [t]: Object.assign(Object.assign({}, Lo(e)), {
5287
5285
  pointerEvents: "none",
5288
5286
  position: "relative",
5289
5287
  top: 100,
@@ -5521,7 +5519,7 @@ const Jr = (e) => {
5521
5519
  styles: O,
5522
5520
  children: I,
5523
5521
  loading: $
5524
- } = e, T = ks(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), N = r("modal", c), _ = r(), H = sr(N), [A, j, L] = Zr(N, H), G = K(m, {
5522
+ } = e, T = ks(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), N = r("modal", c), _ = r(), H = sr(N), [A, B, L] = Zr(N, H), G = K(m, {
5525
5523
  [`${N}-centered`]: !!x,
5526
5524
  [`${N}-wrap-rtl`]: o === "rtl"
5527
5525
  }), S = b !== null && !$ ? /* @__PURE__ */ g.createElement(Kr, Object.assign({}, e, {
@@ -5533,19 +5531,19 @@ const Jr = (e) => {
5533
5531
  className: `${N}-close-icon`
5534
5532
  }),
5535
5533
  closeIconRender: (U) => kr(N, U)
5536
- }), B = Ws(`.${N}-content`), [V, W] = mi("Modal", T.zIndex);
5537
- return A(/* @__PURE__ */ g.createElement(Bs, {
5534
+ }), j = Ws(`.${N}-content`), [V, W] = mi("Modal", T.zIndex);
5535
+ return A(/* @__PURE__ */ g.createElement(js, {
5538
5536
  form: !0,
5539
5537
  space: !0
5540
5538
  }, /* @__PURE__ */ g.createElement(nn.Provider, {
5541
5539
  value: W
5542
- }, /* @__PURE__ */ g.createElement(jr, Object.assign({
5540
+ }, /* @__PURE__ */ g.createElement(Br, Object.assign({
5543
5541
  width: v
5544
5542
  }, T, {
5545
5543
  zIndex: V,
5546
5544
  getContainer: p === void 0 ? n : p,
5547
5545
  prefixCls: N,
5548
- rootClassName: K(j, l, L, H),
5546
+ rootClassName: K(B, l, L, H),
5549
5547
  footer: S,
5550
5548
  visible: d ?? y,
5551
5549
  mousePosition: (t = T.mousePosition) !== null && t !== void 0 ? t : Kt,
@@ -5558,14 +5556,14 @@ const Jr = (e) => {
5558
5556
  focusTriggerAfterClose: h,
5559
5557
  transitionName: ct(_, "zoom", e.transitionName),
5560
5558
  maskTransitionName: ct(_, "fade", e.maskTransitionName),
5561
- className: K(j, u, i == null ? void 0 : i.className),
5559
+ className: K(B, u, i == null ? void 0 : i.className),
5562
5560
  style: Object.assign(Object.assign({}, i == null ? void 0 : i.style), f),
5563
5561
  classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), w), {
5564
5562
  wrapper: K(G, w == null ? void 0 : w.wrapper)
5565
5563
  }),
5566
5564
  styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), O),
5567
- panelRef: B
5568
- }), $ ? /* @__PURE__ */ g.createElement(Lo, {
5565
+ panelRef: j
5566
+ }), $ ? /* @__PURE__ */ g.createElement(Ho, {
5569
5567
  active: !0,
5570
5568
  title: !1,
5571
5569
  paragraph: {
@@ -5593,7 +5591,7 @@ const Jr = (e) => {
5593
5591
  [`${e.antCls}-modal-header`]: {
5594
5592
  display: "none"
5595
5593
  },
5596
- [`${l}-body-wrapper`]: Object.assign({}, Ho()),
5594
+ [`${l}-body-wrapper`]: Object.assign({}, jo()),
5597
5595
  [`&${t} ${t}-body`]: {
5598
5596
  padding: u
5599
5597
  },
@@ -5756,8 +5754,8 @@ const eo = (e) => {
5756
5754
  } = e;
5757
5755
  if (process.env.NODE_ENV !== "production") {
5758
5756
  const A = Ae("Modal");
5759
- [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((j) => {
5760
- let [L, G] = j;
5757
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((B) => {
5758
+ let [L, G] = B;
5761
5759
  A.deprecated(!(L in e), L, G);
5762
5760
  });
5763
5761
  }
@@ -5840,7 +5838,7 @@ const Js = (e) => {
5840
5838
  };
5841
5839
  function rt(e) {
5842
5840
  const t = Bo();
5843
- process.env.NODE_ENV !== "production" && !t.holderRender && jo("Modal");
5841
+ process.env.NODE_ENV !== "production" && !t.holderRender && Do("Modal");
5844
5842
  const n = document.createDocumentFragment();
5845
5843
  let r = Object.assign(Object.assign({}, e), {
5846
5844
  close: s,
@@ -6114,7 +6112,7 @@ ve.destroyAll = function() {
6114
6112
  ve.config = Qs;
6115
6113
  ve._InternalPanelDoNotUseOrYouWillBeFired = ll;
6116
6114
  process.env.NODE_ENV !== "production" && (ve.displayName = "Modal");
6117
- function vl({ modalOpen: e, contentText: t, setModalOpen: n, title: r, okText: o }) {
6115
+ function ml({ modalOpen: e, contentText: t, setModalOpen: n, title: r, okText: o }) {
6118
6116
  return /* @__PURE__ */ _e(
6119
6117
  ve,
6120
6118
  {
@@ -6146,5 +6144,5 @@ function vl({ modalOpen: e, contentText: t, setModalOpen: n, title: r, okText: o
6146
6144
  );
6147
6145
  }
6148
6146
  export {
6149
- vl as InfoModal
6147
+ ml as InfoModal
6150
6148
  };