@blofin/blofin-ui 0.7.46-beta.6 → 0.7.46-beta.7

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.
Files changed (92) hide show
  1. package/dist/{ProTable-c3365a58.js → ProTable-b2defffb.js} +138 -133
  2. package/dist/ProTable.es.js +2 -2
  3. package/dist/{index-3fa3962a.js → index-00b2e6f6.js} +2 -2
  4. package/dist/{index-46059e60.js → index-0590c1ae.js} +2 -2
  5. package/dist/{index-8f93a64e.js → index-05ca0d3e.js} +2 -2
  6. package/dist/{index-8cc09c15.js → index-061ed081.js} +3 -3
  7. package/dist/{index-bdbf1ed9.js → index-08a031e6.js} +2 -2
  8. package/dist/{index-b16f7604.js → index-0950c0b4.js} +2 -2
  9. package/dist/{index-d713154b.js → index-1166f97a.js} +3 -3
  10. package/dist/{index-aea7b8a2.js → index-146f365a.js} +2 -2
  11. package/dist/{index-161de844.js → index-1920996a.js} +2 -2
  12. package/dist/{index-b5d2dfed.js → index-1a42d8c8.js} +2 -2
  13. package/dist/{index-976a4e57.js → index-1ad7bb6d.js} +2 -2
  14. package/dist/{index-73ce54b5.js → index-1d1bfe69.js} +2 -2
  15. package/dist/{index-8ab92563.js → index-1dd8cee5.js} +2 -2
  16. package/dist/{index-42a78bd9.js → index-1e3d32f6.js} +3 -3
  17. package/dist/{index-9085305d.js → index-20ebd2c4.js} +2 -2
  18. package/dist/{index-c1f4511e.js → index-239f56a0.js} +2 -2
  19. package/dist/{index-3652e4ff.js → index-249f1ddd.js} +2 -2
  20. package/dist/{index-232020c3.js → index-253bb3d0.js} +3 -3
  21. package/dist/{index-21efeef8.js → index-264087d9.js} +2 -2
  22. package/dist/{index-e5d82d63.js → index-27cdee5f.js} +4 -4
  23. package/dist/{index-0a024de4.js → index-2881d797.js} +3 -3
  24. package/dist/{index-b0c9c0b6.js → index-2b4c3f01.js} +2 -2
  25. package/dist/{index-b45fb620.js → index-2c59b6c1.js} +3 -3
  26. package/dist/{index-7c328e91.js → index-2ec61202.js} +2 -2
  27. package/dist/{index-358e3718.js → index-361e08e1.js} +2 -2
  28. package/dist/{index-4ab23e44.js → index-383de4a4.js} +2 -2
  29. package/dist/{index-f456776b.js → index-3d2d3a5d.js} +2 -2
  30. package/dist/{index-e5c15548.js → index-4531c56c.js} +3 -3
  31. package/dist/{index-108c2b56.js → index-46931b47.js} +2 -2
  32. package/dist/{index-c81a6fff.js → index-46e2305b.js} +2 -2
  33. package/dist/{index-a6ab0255.js → index-48fd6ee8.js} +3 -3
  34. package/dist/{index-addae2d3.js → index-4f9a4312.js} +3 -3
  35. package/dist/{index-0fe0ebf9.js → index-5457324d.js} +2 -2
  36. package/dist/{index-8e25ac56.js → index-56c106c5.js} +2 -2
  37. package/dist/{index-03f43ded.js → index-56fc7254.js} +2 -2
  38. package/dist/{index-72ed94f2.js → index-5bca828b.js} +1 -1
  39. package/dist/{index-f1dfe0db.js → index-5c3ae320.js} +3 -3
  40. package/dist/{index-8961e37e.js → index-5f0330ed.js} +2 -2
  41. package/dist/{index-c2a5c00a.js → index-649a18c6.js} +3 -3
  42. package/dist/{index-26b8d720.js → index-6513b327.js} +2 -2
  43. package/dist/{index-4f8c3e7b.js → index-66d71769.js} +2 -2
  44. package/dist/{index-66bee68e.js → index-7099d19f.js} +2 -2
  45. package/dist/{index-043e550e.js → index-72a0ce80.js} +2 -2
  46. package/dist/{index-1996dce7.js → index-746aee8c.js} +2 -2
  47. package/dist/{index-fea829a4.js → index-7a33b1fd.js} +84 -84
  48. package/dist/{index-acce0b99.js → index-7aa0be27.js} +2 -2
  49. package/dist/{index-131bfb07.js → index-7fc8ba37.js} +2 -2
  50. package/dist/{index-547d5344.js → index-80e148f1.js} +4 -4
  51. package/dist/{index-c2b9273f.js → index-82143974.js} +3 -3
  52. package/dist/{index-7a424ebc.js → index-824d0040.js} +3 -3
  53. package/dist/{index-806c46e9.js → index-832d52e1.js} +2 -2
  54. package/dist/{index-a644e388.js → index-88769569.js} +2 -2
  55. package/dist/{index-5734ebcc.js → index-8a20442c.js} +2 -2
  56. package/dist/{index-d33497b7.js → index-8fdc7345.js} +2 -2
  57. package/dist/{index-971d95cd.js → index-9072b096.js} +2 -2
  58. package/dist/{index-c8023ac0.js → index-92ebc0b3.js} +2 -2
  59. package/dist/{index-13745838.js → index-9456f163.js} +2 -2
  60. package/dist/{index-a25d8c8d.js → index-97bc9b5a.js} +2 -2
  61. package/dist/{index-cf87d28e.js → index-97ee8d78.js} +2 -2
  62. package/dist/{index-b4178b93.js → index-9c97f5e5.js} +2 -2
  63. package/dist/{index-e8a97a76.js → index-a011a539.js} +2 -2
  64. package/dist/{index-12accd5a.js → index-a6d0a98a.js} +2 -2
  65. package/dist/{index-2cb5d34e.js → index-a6d9ebf0.js} +2 -2
  66. package/dist/{index-ed3cce52.js → index-a7b29b5f.js} +2 -2
  67. package/dist/{index-f745d274.js → index-aa036036.js} +2 -2
  68. package/dist/{index-405f7a5c.js → index-aa182014.js} +2 -2
  69. package/dist/{index-8a058545.js → index-ad36bfaf.js} +2 -2
  70. package/dist/{index-4d85ffcc.js → index-af2fdd10.js} +2 -2
  71. package/dist/{index-14913abe.js → index-b33e71a4.js} +2 -2
  72. package/dist/{index-a074fc05.js → index-b4ab6abf.js} +1 -1
  73. package/dist/{index-1f279897.js → index-b6041218.js} +2 -2
  74. package/dist/{index-77b4e38a.js → index-bd237f22.js} +2 -2
  75. package/dist/{index-e54b3888.js → index-c0c26186.js} +2 -2
  76. package/dist/{index-6a1e7365.js → index-cae1c474.js} +2 -2
  77. package/dist/{index-eba0c81e.js → index-d0dcda88.js} +2 -2
  78. package/dist/{index-452d351f.js → index-d4231cce.js} +2 -2
  79. package/dist/{index-30b83d57.js → index-d80d0539.js} +2 -2
  80. package/dist/{index-1816fdb0.js → index-df7d80d1.js} +2 -2
  81. package/dist/{index-38cf3114.js → index-e4a74c94.js} +2 -2
  82. package/dist/{index-7c6bca28.js → index-e53959ce.js} +3 -3
  83. package/dist/{index-0ab82aad.js → index-eaf32072.js} +2 -2
  84. package/dist/{index-536be593.js → index-f0bfebcf.js} +2 -2
  85. package/dist/{index-6b5c5a37.js → index-f2410964.js} +2 -2
  86. package/dist/{index-96c6e513.js → index-f344eda3.js} +2 -2
  87. package/dist/{index-b0a192d7.js → index-f7cf342f.js} +1 -1
  88. package/dist/{index-23d6be45.js → index-f9116936.js} +2 -2
  89. package/dist/{index-5bab509c.js → index-f9a8c2a7.js} +2 -2
  90. package/dist/{index-34eb29bc.js → index-fa8bac01.js} +3 -3
  91. package/dist/index.es.js +2 -2
  92. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { j as z } from "./jsx-runtime-82a9ddf6.js";
2
2
  import * as Ce from "react";
3
3
  import q, { useLayoutEffect as Fn, useEffect as M, useRef as L, useMemo as O, useCallback as X, useState as ee, createContext as Je, memo as $n, useReducer as Wn, useContext as Ee } from "react";
4
- import { c as $, a as Ue, u as Hn } from "./index-6ffbeca8.js";
4
+ import { c as $, a as Me, u as Hn } from "./index-6ffbeca8.js";
5
5
  import { unstable_batchedUpdates as rt, createPortal as Xn } from "react-dom";
6
6
  var V = /* @__PURE__ */ ((e) => (e.default = "default", e.desc = "desc", e.asc = "asc", e))(V || {});
7
7
  const Yn = $("bu-w-full bu-rounded-lg", {
@@ -174,7 +174,7 @@ function rr() {
174
174
  );
175
175
  }
176
176
  const dt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
177
- function Le(e) {
177
+ function ze(e) {
178
178
  const t = Object.prototype.toString.call(e);
179
179
  return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
180
180
  t === "[object global]";
@@ -184,7 +184,7 @@ function Et(e) {
184
184
  }
185
185
  function G(e) {
186
186
  var t, n;
187
- return e ? Le(e) ? e : Et(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
187
+ return e ? ze(e) ? e : Et(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
188
188
  }
189
189
  function It(e) {
190
190
  const {
@@ -193,13 +193,13 @@ function It(e) {
193
193
  return e instanceof t;
194
194
  }
195
195
  function _e(e) {
196
- return Le(e) ? !1 : e instanceof G(e).HTMLElement;
196
+ return ze(e) ? !1 : e instanceof G(e).HTMLElement;
197
197
  }
198
198
  function dn(e) {
199
199
  return e instanceof G(e).SVGElement;
200
200
  }
201
- function ze(e) {
202
- return e ? Le(e) ? e.document : Et(e) ? It(e) ? e : _e(e) || dn(e) ? e.ownerDocument : document : document : document;
201
+ function je(e) {
202
+ return e ? ze(e) ? e.document : Et(e) ? It(e) ? e : _e(e) || dn(e) ? e.ownerDocument : document : document : document;
203
203
  }
204
204
  const fe = dt ? Fn : M;
205
205
  function kt(e) {
@@ -279,7 +279,7 @@ function fn(e) {
279
279
  });
280
280
  };
281
281
  }
282
- const Me = /* @__PURE__ */ fn(1), lt = /* @__PURE__ */ fn(-1);
282
+ const Le = /* @__PURE__ */ fn(1), lt = /* @__PURE__ */ fn(-1);
283
283
  function ir(e) {
284
284
  return "clientX" in e && "clientY" in e;
285
285
  }
@@ -743,7 +743,7 @@ function Tr(e, t, n) {
743
743
  const Ar = {
744
744
  ignoreTransform: !1
745
745
  };
746
- function je(e, t) {
746
+ function Pe(e, t) {
747
747
  t === void 0 && (t = Ar);
748
748
  let n = e.getBoundingClientRect();
749
749
  if (t.ignoreTransform) {
@@ -771,7 +771,7 @@ function je(e, t) {
771
771
  };
772
772
  }
773
773
  function Vt(e) {
774
- return je(e, {
774
+ return Pe(e, {
775
775
  ignoreTransform: !0
776
776
  });
777
777
  }
@@ -816,13 +816,13 @@ function bn(e) {
816
816
  return t ?? null;
817
817
  }
818
818
  function yt(e) {
819
- return !dt || !e ? null : Le(e) ? e : Et(e) ? It(e) || e === ze(e).scrollingElement ? window : _e(e) ? e : null : null;
819
+ return !dt || !e ? null : ze(e) ? e : Et(e) ? It(e) || e === je(e).scrollingElement ? window : _e(e) ? e : null : null;
820
820
  }
821
821
  function vn(e) {
822
- return Le(e) ? e.scrollX : e.scrollLeft;
822
+ return ze(e) ? e.scrollX : e.scrollLeft;
823
823
  }
824
824
  function pn(e) {
825
- return Le(e) ? e.scrollY : e.scrollTop;
825
+ return ze(e) ? e.scrollY : e.scrollTop;
826
826
  }
827
827
  function Dt(e) {
828
828
  return {
@@ -923,7 +923,7 @@ function jr(e) {
923
923
  };
924
924
  }
925
925
  function wn(e) {
926
- return e.reduce((t, n) => Me(t, Dt(n)), ie);
926
+ return e.reduce((t, n) => Le(t, Dt(n)), ie);
927
927
  }
928
928
  function Pr(e) {
929
929
  return e.reduce((t, n) => t + vn(n), 0);
@@ -932,7 +932,7 @@ function Br(e) {
932
932
  return e.reduce((t, n) => t + pn(n), 0);
933
933
  }
934
934
  function Fr(e, t) {
935
- if (t === void 0 && (t = je), !e)
935
+ if (t === void 0 && (t = Pe), !e)
936
936
  return;
937
937
  const {
938
938
  top: n,
@@ -967,7 +967,7 @@ class Nt {
967
967
  });
968
968
  }
969
969
  }
970
- class Xe {
970
+ class Ye {
971
971
  constructor(t) {
972
972
  this.target = void 0, this.listeners = [], this.removeAll = () => {
973
973
  this.listeners.forEach((n) => {
@@ -985,7 +985,7 @@ function Wr(e) {
985
985
  const {
986
986
  EventTarget: t
987
987
  } = G(e);
988
- return e instanceof t ? e : ze(e);
988
+ return e instanceof t ? e : je(e);
989
989
  }
990
990
  function xt(e, t) {
991
991
  const n = Math.abs(e.x), r = Math.abs(e.y);
@@ -1044,7 +1044,7 @@ class Ot {
1044
1044
  target: n
1045
1045
  }
1046
1046
  } = t;
1047
- this.props = t, this.listeners = new Xe(ze(n)), this.windowListeners = new Xe(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1047
+ this.props = t, this.listeners = new Ye(je(n)), this.windowListeners = new Ye(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1048
1048
  }
1049
1049
  attach() {
1050
1050
  this.handleStart(), this.windowListeners.add(re.Resize, this.handleCancel), this.windowListeners.add(re.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(re.Keydown, this.handleKeyDown));
@@ -1098,16 +1098,16 @@ class Ot {
1098
1098
  } = r.current;
1099
1099
  for (const g of v) {
1100
1100
  const b = t.code, {
1101
- isTop: m,
1101
+ isTop: w,
1102
1102
  isRight: p,
1103
- isLeft: w,
1103
+ isLeft: m,
1104
1104
  isBottom: C,
1105
1105
  maxScroll: D,
1106
1106
  minScroll: R
1107
1107
  } = xn(g), y = jr(g), x = {
1108
1108
  x: Math.min(b === E.Right ? y.right - y.width / 2 : y.right, Math.max(b === E.Right ? y.left : y.left + y.width / 2, c.x)),
1109
1109
  y: Math.min(b === E.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(b === E.Down ? y.top : y.top + y.height / 2, c.y))
1110
- }, I = b === E.Right && !p || b === E.Left && !w, N = b === E.Down && !C || b === E.Up && !m;
1110
+ }, I = b === E.Right && !p || b === E.Left && !m, N = b === E.Down && !C || b === E.Up && !w;
1111
1111
  if (I && x.x !== c.x) {
1112
1112
  const S = g.scrollLeft + h.x, Y = b === E.Right && S <= D.x || b === E.Left && S >= R.x;
1113
1113
  if (Y && !h.y) {
@@ -1138,7 +1138,7 @@ class Ot {
1138
1138
  break;
1139
1139
  }
1140
1140
  }
1141
- this.handleMove(t, Me(lt(c, this.referenceCoordinates), f));
1141
+ this.handleMove(t, Le(lt(c, this.referenceCoordinates), f));
1142
1142
  }
1143
1143
  }
1144
1144
  }
@@ -1200,7 +1200,7 @@ class Mt {
1200
1200
  } = t, {
1201
1201
  target: s
1202
1202
  } = i;
1203
- this.props = t, this.events = n, this.document = ze(s), this.documentListeners = new Xe(this.document), this.listeners = new Xe(r), this.windowListeners = new Xe(G(s)), this.initialCoordinates = (o = St(i)) != null ? o : ie, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1203
+ this.props = t, this.events = n, this.document = je(s), this.documentListeners = new Ye(this.document), this.listeners = new Ye(r), this.windowListeners = new Ye(G(s)), this.initialCoordinates = (o = St(i)) != null ? o : ie, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1204
1204
  }
1205
1205
  attach() {
1206
1206
  const {
@@ -1318,7 +1318,7 @@ class Lt extends Mt {
1318
1318
  constructor(t) {
1319
1319
  const {
1320
1320
  event: n
1321
- } = t, r = ze(n.target);
1321
+ } = t, r = je(n.target);
1322
1322
  super(t, Yr, r);
1323
1323
  }
1324
1324
  }
@@ -1349,7 +1349,7 @@ var Ct;
1349
1349
  })(Ct || (Ct = {}));
1350
1350
  class Ur extends Mt {
1351
1351
  constructor(t) {
1352
- super(t, Kr, ze(t.event.target));
1352
+ super(t, Kr, je(t.event.target));
1353
1353
  }
1354
1354
  }
1355
1355
  Ur.activators = [{
@@ -1407,10 +1407,10 @@ Vr.activators = [{
1407
1407
  }), !0);
1408
1408
  }
1409
1409
  }];
1410
- var Ye;
1410
+ var Ke;
1411
1411
  (function(e) {
1412
1412
  e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
1413
- })(Ye || (Ye = {}));
1413
+ })(Ke || (Ke = {}));
1414
1414
  var ut;
1415
1415
  (function(e) {
1416
1416
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
@@ -1418,7 +1418,7 @@ var ut;
1418
1418
  function qr(e) {
1419
1419
  let {
1420
1420
  acceleration: t,
1421
- activator: n = Ye.Pointer,
1421
+ activator: n = Ke.Pointer,
1422
1422
  canScroll: r,
1423
1423
  draggingRect: o,
1424
1424
  enabled: i,
@@ -1436,26 +1436,26 @@ function qr(e) {
1436
1436
  }), [v, g] = or(), b = L({
1437
1437
  x: 0,
1438
1438
  y: 0
1439
- }), m = L({
1439
+ }), w = L({
1440
1440
  x: 0,
1441
1441
  y: 0
1442
1442
  }), p = O(() => {
1443
1443
  switch (n) {
1444
- case Ye.Pointer:
1444
+ case Ke.Pointer:
1445
1445
  return l ? {
1446
1446
  top: l.y,
1447
1447
  bottom: l.y,
1448
1448
  left: l.x,
1449
1449
  right: l.x
1450
1450
  } : null;
1451
- case Ye.DraggableRect:
1451
+ case Ke.DraggableRect:
1452
1452
  return o;
1453
1453
  }
1454
- }, [n, o, l]), w = L(null), C = X(() => {
1455
- const R = w.current;
1454
+ }, [n, o, l]), m = L(null), C = X(() => {
1455
+ const R = m.current;
1456
1456
  if (!R)
1457
1457
  return;
1458
- const y = b.current.x * m.current.x, x = b.current.y * m.current.y;
1458
+ const y = b.current.x * w.current.x, x = b.current.y * w.current.y;
1459
1459
  R.scrollBy(y, x);
1460
1460
  }, []), D = O(() => a === ut.TreeOrder ? [...d].reverse() : d, [a, d]);
1461
1461
  M(
@@ -1477,14 +1477,14 @@ function qr(e) {
1477
1477
  for (const S of ["x", "y"])
1478
1478
  f[S][I[S]] || (N[S] = 0, I[S] = 0);
1479
1479
  if (N.x > 0 || N.y > 0) {
1480
- g(), w.current = R, v(C, s), b.current = N, m.current = I;
1480
+ g(), m.current = R, v(C, s), b.current = N, w.current = I;
1481
1481
  return;
1482
1482
  }
1483
1483
  }
1484
1484
  b.current = {
1485
1485
  x: 0,
1486
1486
  y: 0
1487
- }, m.current = {
1487
+ }, w.current = {
1488
1488
  x: 0,
1489
1489
  y: 0
1490
1490
  }, g();
@@ -1582,26 +1582,26 @@ function Qr(e, t) {
1582
1582
  frequency: a,
1583
1583
  measure: l,
1584
1584
  strategy: d
1585
- } = o, u = L(e), c = b(), h = Ve(c), f = X(function(m) {
1586
- m === void 0 && (m = []), !h.current && s((p) => p === null ? m : p.concat(m.filter((w) => !p.includes(w))));
1587
- }, [h]), v = L(null), g = Ze((m) => {
1585
+ } = o, u = L(e), c = b(), h = Ve(c), f = X(function(w) {
1586
+ w === void 0 && (w = []), !h.current && s((p) => p === null ? w : p.concat(w.filter((m) => !p.includes(m))));
1587
+ }, [h]), v = L(null), g = Ze((w) => {
1588
1588
  if (c && !n)
1589
1589
  return _t;
1590
- if (!m || m === _t || u.current !== e || i != null) {
1590
+ if (!w || w === _t || u.current !== e || i != null) {
1591
1591
  const p = /* @__PURE__ */ new Map();
1592
- for (let w of e) {
1593
- if (!w)
1592
+ for (let m of e) {
1593
+ if (!m)
1594
1594
  continue;
1595
- if (i && i.length > 0 && !i.includes(w.id) && w.rect.current) {
1596
- p.set(w.id, w.rect.current);
1595
+ if (i && i.length > 0 && !i.includes(m.id) && m.rect.current) {
1596
+ p.set(m.id, m.rect.current);
1597
1597
  continue;
1598
1598
  }
1599
- const C = w.node.current, D = C ? new Nt(l(C), C) : null;
1600
- w.rect.current = D, D && p.set(w.id, D);
1599
+ const C = m.node.current, D = C ? new Nt(l(C), C) : null;
1600
+ m.rect.current = D, D && p.set(m.id, D);
1601
1601
  }
1602
1602
  return p;
1603
1603
  }
1604
- return m;
1604
+ return w;
1605
1605
  }, [e, i, n, c, l]);
1606
1606
  return M(() => {
1607
1607
  u.current = e;
@@ -1682,7 +1682,7 @@ function ft(e) {
1682
1682
  return M(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1683
1683
  }
1684
1684
  function no(e) {
1685
- return new Nt(je(e), e);
1685
+ return new Nt(Pe(e), e);
1686
1686
  }
1687
1687
  function Zt(e, t, n) {
1688
1688
  t === void 0 && (t = no);
@@ -1760,7 +1760,7 @@ function io(e) {
1760
1760
  d == null || d.removeEventListener("scroll", o);
1761
1761
  });
1762
1762
  }
1763
- }, [o, e]), O(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Me(i, s), ie) : wn(e) : ie, [e, t]);
1763
+ }, [o, e]), O(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Le(i, s), ie) : wn(e) : ie, [e, t]);
1764
1764
  }
1765
1765
  function en(e, t) {
1766
1766
  t === void 0 && (t = []);
@@ -1818,7 +1818,7 @@ function Dn(e) {
1818
1818
  }
1819
1819
  const tn = [];
1820
1820
  function lo(e, t) {
1821
- t === void 0 && (t = je);
1821
+ t === void 0 && (t = Pe);
1822
1822
  const [n] = e, r = Dn(n ? G(n) : null), [o, i] = ee(tn);
1823
1823
  function s() {
1824
1824
  i(() => e.length ? e.map((l) => yn(l) ? r : new Nt(t(l), l)) : tn);
@@ -1887,10 +1887,10 @@ const fo = [{
1887
1887
  frequency: Rt.Optimized
1888
1888
  },
1889
1889
  dragOverlay: {
1890
- measure: je
1890
+ measure: Pe
1891
1891
  }
1892
1892
  };
1893
- class Ke extends Map {
1893
+ class Ue extends Map {
1894
1894
  get(t) {
1895
1895
  var n;
1896
1896
  return t != null && (n = super.get(t)) != null ? n : void 0;
@@ -1920,7 +1920,7 @@ const go = {
1920
1920
  containerNodeRect: null,
1921
1921
  draggableNodes: /* @__PURE__ */ new Map(),
1922
1922
  droppableRects: /* @__PURE__ */ new Map(),
1923
- droppableContainers: /* @__PURE__ */ new Ke(),
1923
+ droppableContainers: /* @__PURE__ */ new Ue(),
1924
1924
  over: null,
1925
1925
  dragOverlay: {
1926
1926
  nodeRef: {
@@ -1963,7 +1963,7 @@ function vo() {
1963
1963
  }
1964
1964
  },
1965
1965
  droppable: {
1966
- containers: new Ke()
1966
+ containers: new Ue()
1967
1967
  }
1968
1968
  };
1969
1969
  }
@@ -2011,7 +2011,7 @@ function po(e, t) {
2011
2011
  element: n
2012
2012
  } = t, {
2013
2013
  id: r
2014
- } = n, o = new Ke(e.droppable.containers);
2014
+ } = n, o = new Ue(e.droppable.containers);
2015
2015
  return o.set(r, n), {
2016
2016
  ...e,
2017
2017
  droppable: {
@@ -2028,7 +2028,7 @@ function po(e, t) {
2028
2028
  } = t, i = e.droppable.containers.get(n);
2029
2029
  if (!i || r !== i.key)
2030
2030
  return e;
2031
- const s = new Ke(e.droppable.containers);
2031
+ const s = new Ue(e.droppable.containers);
2032
2032
  return s.set(n, {
2033
2033
  ...i,
2034
2034
  disabled: o
@@ -2047,7 +2047,7 @@ function po(e, t) {
2047
2047
  } = t, o = e.droppable.containers.get(n);
2048
2048
  if (!o || r !== o.key)
2049
2049
  return e;
2050
- const i = new Ke(e.droppable.containers);
2050
+ const i = new Ue(e.droppable.containers);
2051
2051
  return i.delete(n), {
2052
2052
  ...e,
2053
2053
  droppable: {
@@ -2182,7 +2182,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2182
2182
  modifiers: f,
2183
2183
  ...v
2184
2184
  } = t;
2185
- const g = Wn(po, void 0, vo), [b, m] = g, [p, w] = hr(), [C, D] = ee(De.Uninitialized), R = C === De.Initialized, {
2185
+ const g = Wn(po, void 0, vo), [b, w] = g, [p, m] = hr(), [C, D] = ee(De.Uninitialized), R = C === De.Initialized, {
2186
2186
  draggable: {
2187
2187
  active: y,
2188
2188
  nodes: x,
@@ -2205,7 +2205,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2205
2205
  }, [y, S]), T = L(null), [J, U] = ee(null), [k, se] = ee(null), j = Ve(v, Object.values(v)), ae = Qe("DndDescribedBy", s), le = O(() => N.getEnabled(), [N]), W = wo(h), {
2206
2206
  droppableRects: he,
2207
2207
  measureDroppableContainers: Re,
2208
- measuringScheduled: Pe
2208
+ measuringScheduled: Be
2209
2209
  } = Qr(le, {
2210
2210
  dragging: R,
2211
2211
  dependencies: [I.x, I.y],
@@ -2217,7 +2217,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2217
2217
  initialRect: ge,
2218
2218
  measure: W.draggable.measure
2219
2219
  });
2220
- const A = Zt(te, W.draggable.measure, ge), Be = Zt(te ? te.parentElement : null), ce = L({
2220
+ const A = Zt(te, W.draggable.measure, ge), Fe = Zt(te ? te.parentElement : null), ce = L({
2221
2221
  activatorEvent: null,
2222
2222
  active: null,
2223
2223
  activeNode: te,
@@ -2243,20 +2243,20 @@ const So = /* @__PURE__ */ $n(function(t) {
2243
2243
  activatorEvent: k,
2244
2244
  active: K,
2245
2245
  activeNodeRect: A,
2246
- containerNodeRect: Be,
2246
+ containerNodeRect: Fe,
2247
2247
  draggingNodeRect: Te,
2248
2248
  over: ce.current.over,
2249
2249
  overlayNodeRect: be.rect,
2250
2250
  scrollableAncestors: ye,
2251
2251
  scrollableAncestorRects: tt,
2252
2252
  windowRect: gt
2253
- }), Bt = et ? Me(et, I) : null, Ft = io(ye), Nn = en(Ft), On = en(Ft, [A]), Ae = Me(nt, Nn), Ne = Te ? Ir(Te, nt) : null, Fe = K && Ne ? c({
2253
+ }), Bt = et ? Le(et, I) : null, Ft = io(ye), Nn = en(Ft), On = en(Ft, [A]), Ae = Le(nt, Nn), Ne = Te ? Ir(Te, nt) : null, $e = K && Ne ? c({
2254
2254
  active: K,
2255
2255
  collisionRect: Ne,
2256
2256
  droppableRects: he,
2257
2257
  droppableContainers: le,
2258
2258
  pointerCoordinates: Bt
2259
- }) : null, $t = mr(Fe, "id"), [xe, Wt] = ee(null), Mn = jt ? nt : Me(nt, On), Ln = Rr(Mn, (i = xe == null ? void 0 : xe.rect) != null ? i : null, A), bt = L(null), Ht = X(
2259
+ }) : null, $t = mr($e, "id"), [xe, Wt] = ee(null), Mn = jt ? nt : Le(nt, On), Ln = Rr(Mn, (i = xe == null ? void 0 : xe.rect) != null ? i : null, A), bt = L(null), Ht = X(
2260
2260
  (H, _) => {
2261
2261
  let {
2262
2262
  sensor: Z,
@@ -2292,14 +2292,14 @@ const So = /* @__PURE__ */ $n(function(t) {
2292
2292
  if (!x.get(F))
2293
2293
  return;
2294
2294
  const {
2295
- onDragPending: We
2295
+ onDragPending: He
2296
2296
  } = j.current, Se = {
2297
2297
  id: F,
2298
2298
  constraint: me,
2299
2299
  initialCoordinates: de,
2300
2300
  offset: ve
2301
2301
  };
2302
- We == null || We(Se), p({
2302
+ He == null || He(Se), p({
2303
2303
  type: "onDragPending",
2304
2304
  event: Se
2305
2305
  });
@@ -2313,7 +2313,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2313
2313
  return;
2314
2314
  const {
2315
2315
  onDragStart: ve
2316
- } = j.current, $e = {
2316
+ } = j.current, We = {
2317
2317
  activatorEvent: Q,
2318
2318
  active: {
2319
2319
  id: me,
@@ -2322,18 +2322,18 @@ const So = /* @__PURE__ */ $n(function(t) {
2322
2322
  }
2323
2323
  };
2324
2324
  rt(() => {
2325
- ve == null || ve($e), D(De.Initializing), m({
2325
+ ve == null || ve(We), D(De.Initializing), w({
2326
2326
  type: P.DragStart,
2327
2327
  initialCoordinates: F,
2328
2328
  active: me
2329
2329
  }), p({
2330
2330
  type: "onDragStart",
2331
- event: $e
2331
+ event: We
2332
2332
  }), U(bt.current), se(Q);
2333
2333
  });
2334
2334
  },
2335
2335
  onMove(F) {
2336
- m({
2336
+ w({
2337
2337
  type: P.DragMove,
2338
2338
  coordinates: F
2339
2339
  });
@@ -2347,31 +2347,31 @@ const So = /* @__PURE__ */ $n(function(t) {
2347
2347
  const {
2348
2348
  active: de,
2349
2349
  collisions: ve,
2350
- over: $e,
2351
- scrollAdjustedTranslate: We
2350
+ over: We,
2351
+ scrollAdjustedTranslate: He
2352
2352
  } = ce.current;
2353
2353
  let Se = null;
2354
- if (de && We) {
2354
+ if (de && He) {
2355
2355
  const {
2356
- cancelDrop: He
2356
+ cancelDrop: Xe
2357
2357
  } = j.current;
2358
2358
  Se = {
2359
2359
  activatorEvent: Q,
2360
2360
  active: de,
2361
2361
  collisions: ve,
2362
- delta: We,
2363
- over: $e
2364
- }, F === P.DragEnd && typeof He == "function" && await Promise.resolve(He(Se)) && (F = P.DragCancel);
2362
+ delta: He,
2363
+ over: We
2364
+ }, F === P.DragEnd && typeof Xe == "function" && await Promise.resolve(Xe(Se)) && (F = P.DragCancel);
2365
2365
  }
2366
2366
  T.current = null, rt(() => {
2367
- m({
2367
+ w({
2368
2368
  type: F
2369
2369
  }), D(De.Uninitialized), Wt(null), U(null), se(null), bt.current = null;
2370
- const He = F === P.DragEnd ? "onDragEnd" : "onDragCancel";
2370
+ const Xe = F === P.DragEnd ? "onDragEnd" : "onDragCancel";
2371
2371
  if (Se) {
2372
- const vt = j.current[He];
2372
+ const vt = j.current[Xe];
2373
2373
  vt == null || vt(Se), p({
2374
- type: He,
2374
+ type: Xe,
2375
2375
  event: Se
2376
2376
  });
2377
2377
  }
@@ -2473,7 +2473,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2473
2473
  active: K,
2474
2474
  activeNode: te,
2475
2475
  collisionRect: Ne,
2476
- collisions: Fe,
2476
+ collisions: $e,
2477
2477
  droppableRects: he,
2478
2478
  draggableNodes: x,
2479
2479
  draggingNode: ke,
@@ -2486,7 +2486,7 @@ const So = /* @__PURE__ */ $n(function(t) {
2486
2486
  initial: Te,
2487
2487
  translated: Ne
2488
2488
  };
2489
- }, [K, te, Fe, Ne, x, ke, Te, he, N, xe, ye, Ae]), qr({
2489
+ }, [K, te, $e, Ne, x, ke, Te, he, N, xe, ye, Ae]), qr({
2490
2490
  ...pe,
2491
2491
  delta: I,
2492
2492
  draggingRect: Ne,
@@ -2499,8 +2499,8 @@ const So = /* @__PURE__ */ $n(function(t) {
2499
2499
  activeNode: te,
2500
2500
  activeNodeRect: A,
2501
2501
  activatorEvent: k,
2502
- collisions: Fe,
2503
- containerNodeRect: Be,
2502
+ collisions: $e,
2503
+ containerNodeRect: Fe,
2504
2504
  dragOverlay: be,
2505
2505
  draggableNodes: x,
2506
2506
  droppableContainers: N,
@@ -2510,9 +2510,9 @@ const So = /* @__PURE__ */ $n(function(t) {
2510
2510
  scrollableAncestors: ye,
2511
2511
  scrollableAncestorRects: tt,
2512
2512
  measuringConfiguration: W,
2513
- measuringScheduled: Pe,
2513
+ measuringScheduled: Be,
2514
2514
  windowRect: gt
2515
- }), [K, te, A, k, Fe, Be, be, x, N, he, xe, Re, ye, tt, W, Pe, gt]), Pn = O(() => ({
2515
+ }), [K, te, A, k, $e, Fe, be, x, N, he, xe, Re, ye, tt, W, Be, gt]), Pn = O(() => ({
2516
2516
  activatorEvent: k,
2517
2517
  activators: Xt,
2518
2518
  active: K,
@@ -2520,13 +2520,13 @@ const So = /* @__PURE__ */ $n(function(t) {
2520
2520
  ariaDescribedById: {
2521
2521
  draggable: ae
2522
2522
  },
2523
- dispatch: m,
2523
+ dispatch: w,
2524
2524
  draggableNodes: x,
2525
2525
  over: xe,
2526
2526
  measureDroppableContainers: Re
2527
- }), [k, Xt, K, A, m, ae, x, xe, Re]);
2527
+ }), [k, Xt, K, A, w, ae, x, xe, Re]);
2528
2528
  return q.createElement(hn.Provider, {
2529
- value: w
2529
+ value: m
2530
2530
  }, q.createElement(ht.Provider, {
2531
2531
  value: Pn
2532
2532
  }, q.createElement(Cn.Provider, {
@@ -2568,7 +2568,7 @@ function Ro(e) {
2568
2568
  role: f = nn,
2569
2569
  roleDescription: v = "draggable",
2570
2570
  tabIndex: g = 0
2571
- } = o ?? {}, b = (l == null ? void 0 : l.id) === t, m = Ee(b ? Rn : Do), [p, w] = at(), [C, D] = at(), R = ao(s, t), y = Ve(n);
2571
+ } = o ?? {}, b = (l == null ? void 0 : l.id) === t, w = Ee(b ? Rn : Do), [p, m] = at(), [C, D] = at(), R = ao(s, t), y = Ve(n);
2572
2572
  fe(
2573
2573
  () => (c.set(t, {
2574
2574
  id: t,
@@ -2600,9 +2600,9 @@ function Ro(e) {
2600
2600
  listeners: r ? void 0 : R,
2601
2601
  node: p,
2602
2602
  over: h,
2603
- setNodeRef: w,
2603
+ setNodeRef: m,
2604
2604
  setActivatorNodeRef: D,
2605
- transform: m
2605
+ transform: w
2606
2606
  };
2607
2607
  }
2608
2608
  function Eo() {
@@ -2632,27 +2632,27 @@ function To(e) {
2632
2632
  } = {
2633
2633
  ...ko,
2634
2634
  ...o
2635
- }, m = Ve(g ?? r), p = X(
2635
+ }, w = Ve(g ?? r), p = X(
2636
2636
  () => {
2637
2637
  if (!c.current) {
2638
2638
  c.current = !0;
2639
2639
  return;
2640
2640
  }
2641
2641
  f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
2642
- d(Array.isArray(m.current) ? m.current : [m.current]), f.current = null;
2642
+ d(Array.isArray(w.current) ? w.current : [w.current]), f.current = null;
2643
2643
  }, b);
2644
2644
  },
2645
2645
  //eslint-disable-next-line react-hooks/exhaustive-deps
2646
2646
  [b]
2647
- ), w = ft({
2647
+ ), m = ft({
2648
2648
  callback: p,
2649
2649
  disabled: v || !s
2650
2650
  }), C = X((x, I) => {
2651
- w && (I && (w.unobserve(I), c.current = !1), x && w.observe(x));
2652
- }, [w]), [D, R] = at(C), y = Ve(t);
2651
+ m && (I && (m.unobserve(I), c.current = !1), x && m.observe(x));
2652
+ }, [m]), [D, R] = at(C), y = Ve(t);
2653
2653
  return M(() => {
2654
- !w || !D.current || (w.disconnect(), c.current = !1, w.observe(D.current));
2655
- }, [D, w]), M(
2654
+ !m || !D.current || (m.disconnect(), c.current = !1, m.observe(D.current));
2655
+ }, [D, m]), M(
2656
2656
  () => (a({
2657
2657
  type: P.RegisterDroppable,
2658
2658
  element: {
@@ -2799,18 +2799,18 @@ function zo(e) {
2799
2799
  droppableRects: l,
2800
2800
  over: d,
2801
2801
  measureDroppableContainers: u
2802
- } = Eo(), c = Qe(In, n), h = a.rect !== null, f = O(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), v = s != null, g = s ? f.indexOf(s.id) : -1, b = d ? f.indexOf(d.id) : -1, m = L(f), p = !No(f, m.current), w = b !== -1 && g === -1 || p, C = Oo(i);
2802
+ } = Eo(), c = Qe(In, n), h = a.rect !== null, f = O(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), v = s != null, g = s ? f.indexOf(s.id) : -1, b = d ? f.indexOf(d.id) : -1, w = L(f), p = !No(f, w.current), m = b !== -1 && g === -1 || p, C = Oo(i);
2803
2803
  fe(() => {
2804
2804
  p && v && u(f);
2805
2805
  }, [p, f, v, u]), M(() => {
2806
- m.current = f;
2806
+ w.current = f;
2807
2807
  }, [f]);
2808
2808
  const D = O(
2809
2809
  () => ({
2810
2810
  activeIndex: g,
2811
2811
  containerId: c,
2812
2812
  disabled: C,
2813
- disableTransforms: w,
2813
+ disableTransforms: m,
2814
2814
  items: f,
2815
2815
  overIndex: b,
2816
2816
  useDragOverlay: h,
@@ -2818,7 +2818,7 @@ function zo(e) {
2818
2818
  strategy: o
2819
2819
  }),
2820
2820
  // eslint-disable-next-line react-hooks/exhaustive-deps
2821
- [g, c, C.draggable, C.droppable, w, f, b, l, h, o]
2821
+ [g, c, C.draggable, C.droppable, m, f, b, l, h, o]
2822
2822
  );
2823
2823
  return q.createElement(kn.Provider, {
2824
2824
  value: D
@@ -2867,7 +2867,7 @@ function $o(e) {
2867
2867
  if (!t && n !== a.current && r.current) {
2868
2868
  const l = o.current;
2869
2869
  if (l) {
2870
- const d = je(r.current, {
2870
+ const d = Pe(r.current, {
2871
2871
  ignoreTransform: !0
2872
2872
  }), u = {
2873
2873
  x: l.left - d.left,
@@ -2903,9 +2903,9 @@ function Wo(e) {
2903
2903
  disableTransforms: v,
2904
2904
  sortedRects: g,
2905
2905
  overIndex: b,
2906
- useDragOverlay: m,
2906
+ useDragOverlay: w,
2907
2907
  strategy: p
2908
- } = Ee(kn), w = Ho(r, f), C = u.indexOf(s), D = O(() => ({
2908
+ } = Ee(kn), m = Ho(r, f), C = u.indexOf(s), D = O(() => ({
2909
2909
  sortable: {
2910
2910
  containerId: c,
2911
2911
  index: C,
@@ -2920,7 +2920,7 @@ function Wo(e) {
2920
2920
  } = To({
2921
2921
  id: s,
2922
2922
  data: D,
2923
- disabled: w.droppable,
2923
+ disabled: m.droppable,
2924
2924
  resizeObserverConfig: {
2925
2925
  updateMeasurementsFor: R,
2926
2926
  ...l
@@ -2943,8 +2943,8 @@ function Wo(e) {
2943
2943
  ...Fo,
2944
2944
  ...n
2945
2945
  },
2946
- disabled: w.draggable
2947
- }), le = rr(N, J), W = !!S, he = W && !v && ot(h) && ot(b), Re = !m && k, Pe = Re && he ? ae : null, et = he ? Pe ?? (a ?? p)({
2946
+ disabled: m.draggable
2947
+ }), le = rr(N, J), W = !!S, he = W && !v && ot(h) && ot(b), Re = !w && k, Be = Re && he ? ae : null, et = he ? Be ?? (a ?? p)({
2948
2948
  rects: g,
2949
2949
  activeNodeRect: K,
2950
2950
  activeIndex: h,
@@ -2960,7 +2960,7 @@ function Wo(e) {
2960
2960
  items: u,
2961
2961
  newIndex: pe,
2962
2962
  containerId: c
2963
- }), Be = u !== A.current.items, ce = t({
2963
+ }), Fe = u !== A.current.items, ce = t({
2964
2964
  active: S,
2965
2965
  containerId: c,
2966
2966
  isDragging: k,
@@ -3019,7 +3019,7 @@ function Wo(e) {
3019
3019
  if (
3020
3020
  // Temporarily disable transitions for a single frame to set up derived transforms
3021
3021
  Ie || // Or to prevent items jumping to back to their "new" position when items change
3022
- Be && A.current.newIndex === C
3022
+ Fe && A.current.newIndex === C
3023
3023
  )
3024
3024
  return Bo;
3025
3025
  if (!(Re && !Tt(Y) || !d) && (W || ce))
@@ -3074,7 +3074,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3074
3074
  listeners: v,
3075
3075
  setNodeRef: g,
3076
3076
  transform: b,
3077
- transition: m,
3077
+ transition: w,
3078
3078
  isDragging: p
3079
3079
  } = Wo({
3080
3080
  id: e.key || `col-${t}`,
@@ -3084,7 +3084,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3084
3084
  duration: 250,
3085
3085
  easing: "cubic-bezier(0.25, 1, 0.5, 1)"
3086
3086
  }
3087
- }), w = Ce.useCallback(
3087
+ }), m = Ce.useCallback(
3088
3088
  (y) => {
3089
3089
  d.current = y, g(y);
3090
3090
  },
@@ -3103,7 +3103,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3103
3103
  e.fixed ? x = p ? 1001 : 1e3 : p && (x = 100);
3104
3104
  const I = {
3105
3105
  transform: b ? qe.Translate.toString(b) : void 0,
3106
- transition: m || "transform 250ms cubic-bezier(0.25, 1, 0.5, 1)",
3106
+ transition: w || "transform 250ms cubic-bezier(0.25, 1, 0.5, 1)",
3107
3107
  willChange: "transform",
3108
3108
  width: y,
3109
3109
  textAlign: oe.getTextAlign(e.align),
@@ -3126,7 +3126,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3126
3126
  I.right = `${N}px`;
3127
3127
  }
3128
3128
  return I;
3129
- }, D = Ue(
3129
+ }, D = Me(
3130
3130
  "bu-group",
3131
3131
  oe.getThClasses({
3132
3132
  theme: l,
@@ -3139,12 +3139,11 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3139
3139
  return /* @__PURE__ */ z.jsx(
3140
3140
  "th",
3141
3141
  {
3142
- ref: w,
3142
+ ref: m,
3143
3143
  className: D,
3144
3144
  style: C(),
3145
3145
  ...f,
3146
3146
  ...v,
3147
- onClick: () => o(e),
3148
3147
  children: /* @__PURE__ */ z.jsxs(
3149
3148
  "div",
3150
3149
  {
@@ -3153,13 +3152,13 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3153
3152
  children: [
3154
3153
  /* @__PURE__ */ z.jsxs("div", { className: "bu-flex bu-items-center", children: [
3155
3154
  e.renderHeader ? e.renderHeader([]) : e.title,
3156
- i(e),
3155
+ i(e, o),
3157
3156
  e.renderEndIcon ? e.renderEndIcon() : null
3158
3157
  ] }),
3159
3158
  R && /* @__PURE__ */ z.jsx(
3160
3159
  "span",
3161
3160
  {
3162
- className: Ue(
3161
+ className: Me(
3163
3162
  oe.dragHandle({
3164
3163
  theme: l
3165
3164
  }),
@@ -3190,18 +3189,20 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3190
3189
  theme: l = "light"
3191
3190
  } = e, d = (c) => {
3192
3191
  c.filter && c.key && r(c.key, c.type);
3193
- }, u = (c) => {
3192
+ }, u = (c, h) => {
3194
3193
  if (!c.filter || !c.key)
3195
3194
  return null;
3196
- const h = n[c.key] || V.default, f = l === "dark" ? "#EBECF5" : "#0A0A0A", v = "#F80", g = h !== V.default;
3195
+ const f = n[c.key] || V.default, v = l === "dark" ? "#EBECF5" : "#0A0A0A", g = "#F80", b = f !== V.default;
3197
3196
  return /* @__PURE__ */ z.jsx(
3198
3197
  "span",
3199
3198
  {
3200
- className: Ue(
3199
+ className: Me(
3201
3200
  "bu-inline-flex bu-align-middle bu-transition-opacity bu-duration-200",
3202
- "bu-ml-[4px]",
3203
- g ? "bu-opacity-100" : "bu-opacity-0 group-hover:bu-opacity-100"
3201
+ "bu-ml-[4px] bu-cursor-pointer"
3204
3202
  ),
3203
+ onClick: (w) => {
3204
+ w.stopPropagation(), h(c);
3205
+ },
3205
3206
  children: /* @__PURE__ */ z.jsxs(
3206
3207
  "svg",
3207
3208
  {
@@ -3210,21 +3211,25 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3210
3211
  height: "10",
3211
3212
  viewBox: "0 0 6 10",
3212
3213
  fill: "none",
3214
+ className: Me(
3215
+ "bu-transition-opacity bu-duration-200",
3216
+ b ? "bu-opacity-100" : "bu-opacity-0 group-hover:bu-opacity-100"
3217
+ ),
3213
3218
  children: [
3214
3219
  /* @__PURE__ */ z.jsx(
3215
3220
  "path",
3216
3221
  {
3217
3222
  d: "M5.4847 3.04301V4.10942H0.151367V3.04301L2.81803 0.376343L5.4847 3.04301Z",
3218
- fill: h === V.asc ? v : f,
3219
- fillOpacity: h === V.asc ? "1" : "0.2"
3223
+ fill: f === V.asc ? g : v,
3224
+ fillOpacity: f === V.asc ? "1" : "0.2"
3220
3225
  }
3221
3226
  ),
3222
3227
  /* @__PURE__ */ z.jsx(
3223
3228
  "path",
3224
3229
  {
3225
3230
  d: "M5.4847 5.89067V6.95707L2.81803 9.62374L0.151367 6.95707V5.89067H5.4847Z",
3226
- fill: h === V.desc ? v : f,
3227
- fillOpacity: h === V.desc ? "1" : "0.2"
3231
+ fill: f === V.desc ? g : v,
3232
+ fillOpacity: f === V.desc ? "1" : "0.2"
3228
3233
  }
3229
3234
  )
3230
3235
  ]
@@ -3233,7 +3238,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3233
3238
  }
3234
3239
  );
3235
3240
  };
3236
- return /* @__PURE__ */ z.jsx("thead", { className: Ue(oe.thead({ theme: l }), i), children: /* @__PURE__ */ z.jsx("tr", { children: t.map((c, h) => /* @__PURE__ */ z.jsx(
3241
+ return /* @__PURE__ */ z.jsx("thead", { className: Me(oe.thead({ theme: l }), i), children: /* @__PURE__ */ z.jsx("tr", { children: t.map((c, h) => /* @__PURE__ */ z.jsx(
3237
3242
  Yo,
3238
3243
  {
3239
3244
  column: c,
@@ -3270,7 +3275,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3270
3275
  if (u.onCell)
3271
3276
  return u.onCell(c, h);
3272
3277
  };
3273
- return /* @__PURE__ */ z.jsx("tbody", { className: Ue(oe.tbody({ theme: s }), i), children: n.map((u, c) => /* @__PURE__ */ z.jsx(
3278
+ return /* @__PURE__ */ z.jsx("tbody", { className: Me(oe.tbody({ theme: s }), i), children: n.map((u, c) => /* @__PURE__ */ z.jsx(
3274
3279
  "tr",
3275
3280
  {
3276
3281
  id: e.rowIdPrefix ? `${e.rowIdPrefix}-${c}` : "",
@@ -3320,7 +3325,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3320
3325
  dragHandleIcon: h,
3321
3326
  maxHeight: f,
3322
3327
  rowIdPrefix: v
3323
- } = e, { theme: g } = Hn(), [b, m] = Ce.useState(t), [p, w] = Ce.useState({}), [C, D] = Ce.useState(null), R = pr(
3328
+ } = e, { theme: g } = Hn(), [b, w] = Ce.useState(t), [p, m] = Ce.useState({}), [C, D] = Ce.useState(null), R = pr(
3324
3329
  Kt(Lt, {
3325
3330
  activationConstraint: {
3326
3331
  distance: 8
@@ -3330,7 +3335,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3330
3335
  Kt(Ot)
3331
3336
  );
3332
3337
  Ce.useEffect(() => {
3333
- m(t);
3338
+ w(t);
3334
3339
  }, [t]);
3335
3340
  const y = (T, J) => {
3336
3341
  const U = p[T] || V.default;
@@ -3338,7 +3343,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3338
3343
  U === V.default ? k = V.desc : U === V.desc ? k = V.asc : k = V.default;
3339
3344
  const se = J || "single";
3340
3345
  let j;
3341
- if (se === "single" ? j = { [T]: k } : (j = { ...p, [T]: k }, k === V.default && delete j[T]), w(j), l)
3346
+ if (se === "single" ? j = { [T]: k } : (j = { ...p, [T]: k }, k === V.default && delete j[T]), m(j), l)
3342
3347
  if (se === "single")
3343
3348
  l({ sortKey: T, sort: k });
3344
3349
  else {
@@ -3352,7 +3357,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3352
3357
  D(T.active.id);
3353
3358
  }, I = (T) => {
3354
3359
  const { active: J, over: U } = T;
3355
- D(null), !(!U || J.id === U.id) && m((k) => {
3360
+ D(null), !(!U || J.id === U.id) && w((k) => {
3356
3361
  const se = k.findIndex((le) => le.key === J.id), j = k.findIndex((le) => le.key === U.id);
3357
3362
  if (se === -1 || j === -1 || k[j].fixed)
3358
3363
  return k;