@mdspl/mds-shared-ui 0.3.2 → 0.3.4

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.
package/dist/index.js CHANGED
@@ -167,19 +167,19 @@ function ao() {
167
167
  value: q
168
168
  }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
169
169
  }
170
- function f(p, R, O, k, ve, q) {
170
+ function h(p, R, O, k, ve, q) {
171
171
  var P = R.children;
172
172
  if (P !== void 0)
173
173
  if (k)
174
174
  if (le(P)) {
175
175
  for (k = 0; k < P.length; k++)
176
- h(P[k]);
176
+ f(P[k]);
177
177
  Object.freeze && Object.freeze(P);
178
178
  } else
179
179
  console.error(
180
180
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
181
  );
182
- else h(P);
182
+ else f(P);
183
183
  if (te.call(R, "key")) {
184
184
  P = e(p);
185
185
  var Q = Object.keys(R).filter(function(I) {
@@ -215,7 +215,7 @@ React keys must be passed directly to JSX without using spread:
215
215
  q
216
216
  );
217
217
  }
218
- function h(p) {
218
+ function f(p) {
219
219
  m(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === $ && (p._payload.status === "fulfilled" ? m(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
220
220
  }
221
221
  function m(p) {
@@ -235,7 +235,7 @@ React keys must be passed directly to JSX without using spread:
235
235
  )(), ce = De(r(s)), Oe = {};
236
236
  st.Fragment = b, st.jsx = function(p, R, O) {
237
237
  var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
238
- return f(
238
+ return h(
239
239
  p,
240
240
  R,
241
241
  O,
@@ -245,7 +245,7 @@ React keys must be passed directly to JSX without using spread:
245
245
  );
246
246
  }, st.jsxs = function(p, R, O) {
247
247
  var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
248
- return f(
248
+ return h(
249
249
  p,
250
250
  R,
251
251
  O,
@@ -266,41 +266,41 @@ function co() {
266
266
  if ($n) return qt;
267
267
  $n = 1;
268
268
  var e = B;
269
- function t(h, m) {
270
- return h === m && (h !== 0 || 1 / h === 1 / m) || h !== h && m !== m;
269
+ function t(f, m) {
270
+ return f === m && (f !== 0 || 1 / f === 1 / m) || f !== f && m !== m;
271
271
  }
272
272
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, i = e.useDebugValue;
273
- function l(h, m) {
273
+ function l(f, m) {
274
274
  var g = m(), v = r({ inst: { value: g, getSnapshot: m } }), d = v[0].inst, b = v[1];
275
275
  return s(
276
276
  function() {
277
277
  d.value = g, d.getSnapshot = m, c(d) && b({ inst: d });
278
278
  },
279
- [h, g, m]
279
+ [f, g, m]
280
280
  ), o(
281
281
  function() {
282
- return c(d) && b({ inst: d }), h(function() {
282
+ return c(d) && b({ inst: d }), f(function() {
283
283
  c(d) && b({ inst: d });
284
284
  });
285
285
  },
286
- [h]
286
+ [f]
287
287
  ), i(g), g;
288
288
  }
289
- function c(h) {
290
- var m = h.getSnapshot;
291
- h = h.value;
289
+ function c(f) {
290
+ var m = f.getSnapshot;
291
+ f = f.value;
292
292
  try {
293
293
  var g = m();
294
- return !n(h, g);
294
+ return !n(f, g);
295
295
  } catch {
296
296
  return !0;
297
297
  }
298
298
  }
299
- function u(h, m) {
299
+ function u(f, m) {
300
300
  return m();
301
301
  }
302
- var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
303
- return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, qt;
302
+ var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
303
+ return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, qt;
304
304
  }
305
305
  var Kt = {};
306
306
  var Pn;
@@ -310,15 +310,15 @@ function uo() {
310
310
  return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
311
311
  }
312
312
  function t(g, v) {
313
- f || o.startTransition === void 0 || (f = !0, console.error(
313
+ h || o.startTransition === void 0 || (h = !0, console.error(
314
314
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
315
315
  ));
316
316
  var d = v();
317
- if (!h) {
317
+ if (!f) {
318
318
  var b = v();
319
319
  s(d, b) || (console.error(
320
320
  "The result of getSnapshot should be cached to avoid an infinite loop"
321
- ), h = !0);
321
+ ), f = !0);
322
322
  }
323
323
  b = i({
324
324
  inst: { value: d, getSnapshot: v }
@@ -352,7 +352,7 @@ function uo() {
352
352
  return v();
353
353
  }
354
354
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
355
- var o = B, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, h = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
355
+ var o = B, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, f = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
356
356
  Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
357
357
  })()), Kt;
358
358
  }
@@ -365,11 +365,11 @@ function fo() {
365
365
  if (Fn) return Xt;
366
366
  Fn = 1;
367
367
  var e = B, t = fr();
368
- function n(u, f) {
369
- return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
368
+ function n(u, h) {
369
+ return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
370
370
  }
371
371
  var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, i = e.useEffect, l = e.useMemo, c = e.useDebugValue;
372
- return Xt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
372
+ return Xt.useSyncExternalStoreWithSelector = function(u, h, f, m, g) {
373
373
  var v = s(null);
374
374
  if (v.current === null) {
375
375
  var d = { hasValue: !1, value: null };
@@ -390,17 +390,17 @@ function fo() {
390
390
  var _ = m(D);
391
391
  return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
392
392
  }
393
- var w = !1, S, C, j = h === void 0 ? null : h;
393
+ var w = !1, S, C, j = f === void 0 ? null : f;
394
394
  return [
395
395
  function() {
396
- return x(f());
396
+ return x(h());
397
397
  },
398
398
  j === null ? void 0 : function() {
399
399
  return x(j());
400
400
  }
401
401
  ];
402
402
  },
403
- [f, h, m, g]
403
+ [h, f, m, g]
404
404
  );
405
405
  var b = o(u, v[0], v[1]);
406
406
  return i(
@@ -415,12 +415,12 @@ var Jt = {};
415
415
  var Vn;
416
416
  function ho() {
417
417
  return Vn || (Vn = 1, process.env.NODE_ENV !== "production" && (function() {
418
- function e(u, f) {
419
- return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
418
+ function e(u, h) {
419
+ return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
420
420
  }
421
421
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
422
422
  var t = B, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
423
- Jt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
423
+ Jt.useSyncExternalStoreWithSelector = function(u, h, f, m, g) {
424
424
  var v = s(null);
425
425
  if (v.current === null) {
426
426
  var d = { hasValue: !1, value: null };
@@ -442,17 +442,17 @@ function ho() {
442
442
  var _ = m(D);
443
443
  return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
444
444
  }
445
- var w = !1, S, C, j = h === void 0 ? null : h;
445
+ var w = !1, S, C, j = f === void 0 ? null : f;
446
446
  return [
447
447
  function() {
448
- return x(f());
448
+ return x(h());
449
449
  },
450
450
  j === null ? void 0 : function() {
451
451
  return x(j());
452
452
  }
453
453
  ];
454
454
  },
455
- [f, h, m, g]
455
+ [h, f, m, g]
456
456
  );
457
457
  var b = o(u, v[0], v[1]);
458
458
  return i(
@@ -697,8 +697,8 @@ function vr(e) {
697
697
  return r.reduce((s, i) => {
698
698
  const l = Object.entries(i);
699
699
  for (const [c, u] of l) {
700
- const f = s[c];
701
- f != null && (s[c] = f + e * u);
700
+ const h = s[c];
701
+ h != null && (s[c] = h + e * u);
702
702
  }
703
703
  return s;
704
704
  }, {
@@ -916,49 +916,49 @@ function No(e) {
916
916
  if (A(() => {
917
917
  u(!0);
918
918
  }, []), Io(M(() => ({
919
- onDragStart(h) {
919
+ onDragStart(f) {
920
920
  let {
921
921
  active: m
922
- } = h;
922
+ } = f;
923
923
  s(t.onDragStart({
924
924
  active: m
925
925
  }));
926
926
  },
927
- onDragMove(h) {
927
+ onDragMove(f) {
928
928
  let {
929
929
  active: m,
930
930
  over: g
931
- } = h;
931
+ } = f;
932
932
  t.onDragMove && s(t.onDragMove({
933
933
  active: m,
934
934
  over: g
935
935
  }));
936
936
  },
937
- onDragOver(h) {
937
+ onDragOver(f) {
938
938
  let {
939
939
  active: m,
940
940
  over: g
941
- } = h;
941
+ } = f;
942
942
  s(t.onDragOver({
943
943
  active: m,
944
944
  over: g
945
945
  }));
946
946
  },
947
- onDragEnd(h) {
947
+ onDragEnd(f) {
948
948
  let {
949
949
  active: m,
950
950
  over: g
951
- } = h;
951
+ } = f;
952
952
  s(t.onDragEnd({
953
953
  active: m,
954
954
  over: g
955
955
  }));
956
956
  },
957
- onDragCancel(h) {
957
+ onDragCancel(f) {
958
958
  let {
959
959
  active: m,
960
960
  over: g
961
- } = h;
961
+ } = f;
962
962
  s(t.onDragCancel({
963
963
  active: m,
964
964
  over: g
@@ -966,14 +966,14 @@ function No(e) {
966
966
  }
967
967
  }), [s, t])), !c)
968
968
  return null;
969
- const f = B.createElement(B.Fragment, null, B.createElement(_o, {
969
+ const h = B.createElement(B.Fragment, null, B.createElement(_o, {
970
970
  id: r,
971
971
  value: o.draggable
972
972
  }), B.createElement(Oo, {
973
973
  id: l,
974
974
  announcement: i
975
975
  }));
976
- return n ? so(f, n) : f;
976
+ return n ? so(h, n) : h;
977
977
  }
978
978
  var Y;
979
979
  (function(e) {
@@ -1070,8 +1070,8 @@ const mr = (e) => {
1070
1070
  function Yo(e, t) {
1071
1071
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), i = o - r, l = s - n;
1072
1072
  if (r < o && n < s) {
1073
- const c = t.width * t.height, u = e.width * e.height, f = i * l, h = f / (c + u - f);
1074
- return Number(h.toFixed(4));
1073
+ const c = t.width * t.height, u = e.width * e.height, h = i * l, f = h / (c + u - h);
1074
+ return Number(f.toFixed(4));
1075
1075
  }
1076
1076
  return 0;
1077
1077
  }
@@ -1157,13 +1157,13 @@ function Xo(e, t, n) {
1157
1157
  scaleY: s,
1158
1158
  x: i,
1159
1159
  y: l
1160
- } = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, h = s ? e.height / s : e.height;
1160
+ } = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), h = o ? e.width / o : e.width, f = s ? e.height / s : e.height;
1161
1161
  return {
1162
- width: f,
1163
- height: h,
1162
+ width: h,
1163
+ height: f,
1164
1164
  top: u,
1165
- right: c + f,
1166
- bottom: u + h,
1165
+ right: c + h,
1166
+ bottom: u + f,
1167
1167
  left: c
1168
1168
  };
1169
1169
  }
@@ -1176,9 +1176,9 @@ function Ze(e, t) {
1176
1176
  if (t.ignoreTransform) {
1177
1177
  const {
1178
1178
  transform: u,
1179
- transformOrigin: f
1179
+ transformOrigin: h
1180
1180
  } = re(e).getComputedStyle(e);
1181
- u && (n = Xo(n, u, f));
1181
+ u && (n = Xo(n, u, h));
1182
1182
  }
1183
1183
  const {
1184
1184
  top: r,
@@ -1301,8 +1301,8 @@ function es(e, t, n, r, o) {
1301
1301
  r === void 0 && (r = 10), o === void 0 && (o = Qo);
1302
1302
  const {
1303
1303
  isTop: u,
1304
- isBottom: f,
1305
- isLeft: h,
1304
+ isBottom: h,
1305
+ isLeft: f,
1306
1306
  isRight: m
1307
1307
  } = Rr(e), g = {
1308
1308
  x: 0,
@@ -1314,7 +1314,7 @@ function es(e, t, n, r, o) {
1314
1314
  height: t.height * o.y,
1315
1315
  width: t.width * o.x
1316
1316
  };
1317
- return !u && s <= t.top + d.height ? (g.y = H.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !f && c >= t.bottom - d.height && (g.y = H.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = H.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !h && i <= t.left + d.width && (g.x = H.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
1317
+ return !u && s <= t.top + d.height ? (g.y = H.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !h && c >= t.bottom - d.height && (g.y = H.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = H.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !f && i <= t.left + d.width && (g.x = H.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
1318
1318
  direction: g,
1319
1319
  speed: v
1320
1320
  };
@@ -1384,8 +1384,8 @@ class xn {
1384
1384
  for (const c of i)
1385
1385
  Object.defineProperty(this, c, {
1386
1386
  get: () => {
1387
- const u = l(r), f = o[s] - u;
1388
- return this.rect[c] + f;
1387
+ const u = l(r), h = o[s] - u;
1388
+ return this.rect[c] + h;
1389
1389
  },
1390
1390
  enumerable: !0
1391
1391
  });
@@ -1506,18 +1506,18 @@ class jr {
1506
1506
  }
1507
1507
  const {
1508
1508
  collisionRect: u
1509
- } = r.current, f = u ? {
1509
+ } = r.current, h = u ? {
1510
1510
  x: u.left,
1511
1511
  y: u.top
1512
1512
  } : ge;
1513
- this.referenceCoordinates || (this.referenceCoordinates = f);
1514
- const h = i(t, {
1513
+ this.referenceCoordinates || (this.referenceCoordinates = h);
1514
+ const f = i(t, {
1515
1515
  active: n,
1516
1516
  context: r.current,
1517
- currentCoordinates: f
1517
+ currentCoordinates: h
1518
1518
  });
1519
- if (h) {
1520
- const m = Nt(h, f), g = {
1519
+ if (f) {
1520
+ const m = Nt(f, h), g = {
1521
1521
  x: 0,
1522
1522
  y: 0
1523
1523
  }, {
@@ -1532,10 +1532,10 @@ class jr {
1532
1532
  maxScroll: j,
1533
1533
  minScroll: D
1534
1534
  } = Rr(d), E = ts(d), _ = {
1535
- x: Math.min(b === T.Right ? E.right - E.width / 2 : E.right, Math.max(b === T.Right ? E.left : E.left + E.width / 2, h.x)),
1536
- y: Math.min(b === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(b === T.Down ? E.top : E.top + E.height / 2, h.y))
1535
+ x: Math.min(b === T.Right ? E.right - E.width / 2 : E.right, Math.max(b === T.Right ? E.left : E.left + E.width / 2, f.x)),
1536
+ y: Math.min(b === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(b === T.Down ? E.top : E.top + E.height / 2, f.y))
1537
1537
  }, $ = b === T.Right && !w || b === T.Left && !S, F = b === T.Down && !C || b === T.Up && !x;
1538
- if ($ && _.x !== h.x) {
1538
+ if ($ && _.x !== f.x) {
1539
1539
  const L = d.scrollLeft + m.x, Z = b === T.Right && L <= j.x || b === T.Left && L >= D.x;
1540
1540
  if (Z && !m.y) {
1541
1541
  d.scrollTo({
@@ -1549,7 +1549,7 @@ class jr {
1549
1549
  behavior: l
1550
1550
  });
1551
1551
  break;
1552
- } else if (F && _.y !== h.y) {
1552
+ } else if (F && _.y !== f.y) {
1553
1553
  const L = d.scrollTop + m.y, Z = b === T.Down && L <= j.y || b === T.Up && L >= D.y;
1554
1554
  if (Z && !m.x) {
1555
1555
  d.scrollTo({
@@ -1565,7 +1565,7 @@ class jr {
1565
1565
  break;
1566
1566
  }
1567
1567
  }
1568
- this.handleMove(t, Xe(Nt(h, this.referenceCoordinates), g));
1568
+ this.handleMove(t, Xe(Nt(f, this.referenceCoordinates), g));
1569
1569
  }
1570
1570
  }
1571
1571
  }
@@ -1853,12 +1853,12 @@ function hs(e) {
1853
1853
  order: l = $t.TreeOrder,
1854
1854
  pointerCoordinates: c,
1855
1855
  scrollableAncestors: u,
1856
- scrollableAncestorRects: f,
1857
- delta: h,
1856
+ scrollableAncestorRects: h,
1857
+ delta: f,
1858
1858
  threshold: m
1859
1859
  } = e;
1860
1860
  const g = ps({
1861
- delta: h,
1861
+ delta: f,
1862
1862
  disabled: !s
1863
1863
  }), [v, d] = Co(), b = N({
1864
1864
  x: 0,
@@ -1894,7 +1894,7 @@ function hs(e) {
1894
1894
  for (const D of j) {
1895
1895
  if (r?.(D) === !1)
1896
1896
  continue;
1897
- const E = u.indexOf(D), _ = f[E];
1897
+ const E = u.indexOf(D), _ = h[E];
1898
1898
  if (!_)
1899
1899
  continue;
1900
1900
  const {
@@ -1931,7 +1931,7 @@ function hs(e) {
1931
1931
  v,
1932
1932
  u,
1933
1933
  j,
1934
- f,
1934
+ h,
1935
1935
  // eslint-disable-next-line react-hooks/exhaustive-deps
1936
1936
  JSON.stringify(m)
1937
1937
  ]
@@ -2009,12 +2009,12 @@ function ms(e, t) {
2009
2009
  frequency: l,
2010
2010
  measure: c,
2011
2011
  strategy: u
2012
- } = o, f = N(e), h = b(), m = dt(h), g = J(function(x) {
2012
+ } = o, h = N(e), f = b(), m = dt(f), g = J(function(x) {
2013
2013
  x === void 0 && (x = []), !m.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
2014
  }, [m]), v = N(null), d = mt((x) => {
2015
- if (h && !n)
2015
+ if (f && !n)
2016
2016
  return Jn;
2017
- if (!x || x === Jn || f.current !== e || s != null) {
2017
+ if (!x || x === Jn || h.current !== e || s != null) {
2018
2018
  const w = /* @__PURE__ */ new Map();
2019
2019
  for (let S of e) {
2020
2020
  if (!S)
@@ -2029,15 +2029,15 @@ function ms(e, t) {
2029
2029
  return w;
2030
2030
  }
2031
2031
  return x;
2032
- }, [e, s, n, h, c]);
2032
+ }, [e, s, n, f, c]);
2033
2033
  return A(() => {
2034
- f.current = e;
2034
+ h.current = e;
2035
2035
  }, [e]), A(
2036
2036
  () => {
2037
- h || g();
2037
+ f || g();
2038
2038
  },
2039
2039
  // eslint-disable-next-line react-hooks/exhaustive-deps
2040
- [n, h]
2040
+ [n, f]
2041
2041
  ), A(
2042
2042
  () => {
2043
2043
  s && s.length > 0 && i(null);
@@ -2046,12 +2046,12 @@ function ms(e, t) {
2046
2046
  [JSON.stringify(s)]
2047
2047
  ), A(
2048
2048
  () => {
2049
- h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
2049
+ f || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
2050
2050
  g(), v.current = null;
2051
2051
  }, l));
2052
2052
  },
2053
2053
  // eslint-disable-next-line react-hooks/exhaustive-deps
2054
- [l, h, g, ...r]
2054
+ [l, f, g, ...r]
2055
2055
  ), {
2056
2056
  droppableRects: d,
2057
2057
  measureDroppableContainers: g,
@@ -2122,8 +2122,8 @@ function Zn(e, t, n) {
2122
2122
  var u;
2123
2123
  return (u = c ?? n) != null ? u : null;
2124
2124
  }
2125
- const f = t(e);
2126
- return JSON.stringify(c) === JSON.stringify(f) ? c : f;
2125
+ const h = t(e);
2126
+ return JSON.stringify(c) === JSON.stringify(h) ? c : h;
2127
2127
  });
2128
2128
  }
2129
2129
  const i = ys({
@@ -2131,10 +2131,10 @@ function Zn(e, t, n) {
2131
2131
  if (e)
2132
2132
  for (const u of c) {
2133
2133
  const {
2134
- type: f,
2135
- target: h
2134
+ type: h,
2135
+ target: f
2136
2136
  } = u;
2137
- if (f === "childList" && h instanceof HTMLElement && h.contains(e)) {
2137
+ if (h === "childList" && f instanceof HTMLElement && f.contains(e)) {
2138
2138
  s();
2139
2139
  break;
2140
2140
  }
@@ -2271,13 +2271,13 @@ function Os(e) {
2271
2271
  } = e;
2272
2272
  const [n, r] = G(null), o = J((u) => {
2273
2273
  for (const {
2274
- target: f
2274
+ target: h
2275
2275
  } of u)
2276
- if (bt(f)) {
2277
- r((h) => {
2278
- const m = t(f);
2279
- return h ? {
2280
- ...h,
2276
+ if (bt(h)) {
2277
+ r((f) => {
2278
+ const m = t(h);
2279
+ return f ? {
2280
+ ...f,
2281
2281
  width: m.width,
2282
2282
  height: m.height
2283
2283
  } : m;
@@ -2287,8 +2287,8 @@ function Os(e) {
2287
2287
  }, [t]), s = Yt({
2288
2288
  callback: o
2289
2289
  }), i = J((u) => {
2290
- const f = _s(u);
2291
- s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
2290
+ const h = _s(u);
2291
+ s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2292
2292
  }, [t, s]), [l, c] = Mt(i);
2293
2293
  return M(() => ({
2294
2294
  nodeRef: l,
@@ -2510,12 +2510,12 @@ function Ls(e) {
2510
2510
  if (!c.current && !u.current)
2511
2511
  return;
2512
2512
  requestAnimationFrame(() => {
2513
- for (const f of [c.current, u.current]) {
2514
- if (!f)
2513
+ for (const h of [c.current, u.current]) {
2514
+ if (!h)
2515
2515
  continue;
2516
- const h = Eo(f);
2517
- if (h) {
2518
- h.focus();
2516
+ const f = Eo(h);
2517
+ if (f) {
2518
+ f.focus();
2519
2519
  break;
2520
2520
  }
2521
2521
  }
@@ -2577,12 +2577,12 @@ function zs(e) {
2577
2577
  const u = t?.node.current;
2578
2578
  if (!u || u.isConnected === !1)
2579
2579
  return;
2580
- const f = n(u), h = xr(f, r);
2581
- if (i || (h.x = 0), l || (h.y = 0), s.current = !0, Math.abs(h.x) > 0 || Math.abs(h.y) > 0) {
2580
+ const h = n(u), f = xr(h, r);
2581
+ if (i || (f.x = 0), l || (f.y = 0), s.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
2582
2582
  const m = yr(u);
2583
2583
  m && m.scrollBy({
2584
- top: h.y,
2585
- left: h.x
2584
+ top: f.y,
2585
+ left: f.x
2586
2586
  });
2587
2587
  }
2588
2588
  }, [t, i, l, r, n]);
@@ -2603,8 +2603,8 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2603
2603
  accessibility: l,
2604
2604
  autoScroll: c = !0,
2605
2605
  children: u,
2606
- sensors: f = Ts,
2607
- collisionDetection: h = Bo,
2606
+ sensors: h = Ts,
2607
+ collisionDetection: f = Bo,
2608
2608
  measuring: m,
2609
2609
  modifiers: g,
2610
2610
  ...v
@@ -2677,7 +2677,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2677
2677
  scrollableAncestors: Te,
2678
2678
  scrollableAncestorRects: yt,
2679
2679
  windowRect: Wt
2680
- }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), He = Xe(wt, Wr), We = Be ? Uo(Be, wt) : null, et = te && We ? h({
2680
+ }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), He = Xe(wt, Wr), We = Be ? Uo(Be, wt) : null, et = te && We ? f({
2681
2681
  active: te,
2682
2682
  collisionRect: We,
2683
2683
  droppableRects: O,
@@ -2823,8 +2823,8 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2823
2823
  K(ie, se.options, me) === !0 && (ue.dndKit = {
2824
2824
  capturedBy: se.sensor
2825
2825
  }, le.current = Ae, Tn(ie, se));
2826
- }, [_, Tn]), In = bs(f, qr);
2827
- Ds(f), Se(() => {
2826
+ }, [_, Tn]), In = bs(h, qr);
2827
+ Ds(h), Se(() => {
2828
2828
  I && C === Ne.Initializing && j(Ne.Initialized);
2829
2829
  }, [I, C]), A(
2830
2830
  () => {
@@ -2988,8 +2988,8 @@ function Ys(e) {
2988
2988
  activatorEvent: l,
2989
2989
  active: c,
2990
2990
  activeNodeRect: u,
2991
- ariaDescribedById: f,
2992
- draggableNodes: h,
2991
+ ariaDescribedById: h,
2992
+ draggableNodes: f,
2993
2993
  over: m
2994
2994
  } = ze(Bt), {
2995
2995
  role: g = nr,
@@ -2997,18 +2997,18 @@ function Ys(e) {
2997
2997
  tabIndex: d = 0
2998
2998
  } = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] = Mt(), [C, j] = Mt(), D = Es(i, t), E = dt(n);
2999
2999
  Se(
3000
- () => (h.set(t, {
3000
+ () => (f.set(t, {
3001
3001
  id: t,
3002
3002
  key: s,
3003
3003
  node: w,
3004
3004
  activatorNode: C,
3005
3005
  data: E
3006
3006
  }), () => {
3007
- const $ = h.get(t);
3008
- $ && $.key === s && h.delete(t);
3007
+ const $ = f.get(t);
3008
+ $ && $.key === s && f.delete(t);
3009
3009
  }),
3010
3010
  // eslint-disable-next-line react-hooks/exhaustive-deps
3011
- [h, t]
3011
+ [f, t]
3012
3012
  );
3013
3013
  const _ = M(() => ({
3014
3014
  role: g,
@@ -3016,8 +3016,8 @@ function Ys(e) {
3016
3016
  "aria-disabled": r,
3017
3017
  "aria-pressed": b && g === nr ? !0 : void 0,
3018
3018
  "aria-roledescription": v,
3019
- "aria-describedby": f.draggable
3020
- }), [r, g, d, b, v, f.draggable]);
3019
+ "aria-describedby": h.draggable
3020
+ }), [r, g, d, b, v, h.draggable]);
3021
3021
  return {
3022
3022
  active: c,
3023
3023
  activatorEvent: l,
@@ -3050,9 +3050,9 @@ function Us(e) {
3050
3050
  dispatch: l,
3051
3051
  over: c,
3052
3052
  measureDroppableContainers: u
3053
- } = ze(Bt), f = N({
3053
+ } = ze(Bt), h = N({
3054
3054
  disabled: n
3055
- }), h = N(!1), m = N(null), g = N(null), {
3055
+ }), f = N(!1), m = N(null), g = N(null), {
3056
3056
  disabled: v,
3057
3057
  updateMeasurementsFor: d,
3058
3058
  timeout: b
@@ -3061,8 +3061,8 @@ function Us(e) {
3061
3061
  ...o
3062
3062
  }, x = dt(d ?? r), w = J(
3063
3063
  () => {
3064
- if (!h.current) {
3065
- h.current = !0;
3064
+ if (!f.current) {
3065
+ f.current = !0;
3066
3066
  return;
3067
3067
  }
3068
3068
  g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
@@ -3075,10 +3075,10 @@ function Us(e) {
3075
3075
  callback: w,
3076
3076
  disabled: v || !i
3077
3077
  }), C = J((_, $) => {
3078
- S && ($ && (S.unobserve($), h.current = !1), _ && S.observe(_));
3078
+ S && ($ && (S.unobserve($), f.current = !1), _ && S.observe(_));
3079
3079
  }, [S]), [j, D] = Mt(C), E = dt(t);
3080
3080
  return A(() => {
3081
- !S || !j.current || (S.disconnect(), h.current = !1, S.observe(j.current));
3081
+ !S || !j.current || (S.disconnect(), f.current = !1, S.observe(j.current));
3082
3082
  }, [j, S]), A(
3083
3083
  () => (l({
3084
3084
  type: Y.RegisterDroppable,
@@ -3098,12 +3098,12 @@ function Us(e) {
3098
3098
  // eslint-disable-next-line react-hooks/exhaustive-deps
3099
3099
  [r]
3100
3100
  ), A(() => {
3101
- n !== f.current.disabled && (l({
3101
+ n !== h.current.disabled && (l({
3102
3102
  type: Y.SetDroppableDisabled,
3103
3103
  id: r,
3104
3104
  key: s,
3105
3105
  disabled: n
3106
- }), f.current.disabled = n);
3106
+ }), h.current.disabled = n);
3107
3107
  }, [r, s, n, l]), {
3108
3108
  active: i,
3109
3109
  rect: m,
@@ -3267,17 +3267,17 @@ function Lr(e) {
3267
3267
  dragOverlay: l,
3268
3268
  droppableRects: c,
3269
3269
  over: u,
3270
- measureDroppableContainers: f
3271
- } = Bs(), h = xt(Mr, n), m = l.rect !== null, g = M(() => r.map((D) => typeof D == "object" && "id" in D ? D.id : D), [r]), v = i != null, d = i ? g.indexOf(i.id) : -1, b = u ? g.indexOf(u.id) : -1, x = N(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
3270
+ measureDroppableContainers: h
3271
+ } = Bs(), f = xt(Mr, n), m = l.rect !== null, g = M(() => r.map((D) => typeof D == "object" && "id" in D ? D.id : D), [r]), v = i != null, d = i ? g.indexOf(i.id) : -1, b = u ? g.indexOf(u.id) : -1, x = N(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
3272
3272
  Se(() => {
3273
- w && v && f(g);
3274
- }, [w, g, v, f]), A(() => {
3273
+ w && v && h(g);
3274
+ }, [w, g, v, h]), A(() => {
3275
3275
  x.current = g;
3276
3276
  }, [g]);
3277
3277
  const j = M(
3278
3278
  () => ({
3279
3279
  activeIndex: d,
3280
- containerId: h,
3280
+ containerId: f,
3281
3281
  disabled: C,
3282
3282
  disableTransforms: S,
3283
3283
  items: g,
@@ -3287,7 +3287,7 @@ function Lr(e) {
3287
3287
  strategy: o
3288
3288
  }),
3289
3289
  // eslint-disable-next-line react-hooks/exhaustive-deps
3290
- [d, h, C.draggable, C.droppable, S, g, b, c, m, o]
3290
+ [d, f, C.draggable, C.droppable, S, g, b, c, m, o]
3291
3291
  );
3292
3292
  return B.createElement(Nr.Provider, {
3293
3293
  value: j
@@ -3338,13 +3338,13 @@ function si(e) {
3338
3338
  if (c) {
3339
3339
  const u = Ze(r.current, {
3340
3340
  ignoreTransform: !0
3341
- }), f = {
3341
+ }), h = {
3342
3342
  x: c.left - u.left,
3343
3343
  y: c.top - u.top,
3344
3344
  scaleX: c.width / u.width,
3345
3345
  scaleY: c.height / u.height
3346
3346
  };
3347
- (f.x || f.y) && i(f);
3347
+ (h.x || h.y) && i(h);
3348
3348
  }
3349
3349
  }
3350
3350
  n !== l.current && (l.current = n);
@@ -3365,8 +3365,8 @@ function Pr(e) {
3365
3365
  transition: u = ni
3366
3366
  } = e;
3367
3367
  const {
3368
- items: f,
3369
- containerId: h,
3368
+ items: h,
3369
+ containerId: f,
3370
3370
  activeIndex: m,
3371
3371
  disabled: g,
3372
3372
  disableTransforms: v,
@@ -3374,14 +3374,14 @@ function Pr(e) {
3374
3374
  overIndex: b,
3375
3375
  useDragOverlay: x,
3376
3376
  strategy: w
3377
- } = ze(Nr), S = ii(r, g), C = f.indexOf(i), j = M(() => ({
3377
+ } = ze(Nr), S = ii(r, g), C = h.indexOf(i), j = M(() => ({
3378
3378
  sortable: {
3379
- containerId: h,
3379
+ containerId: f,
3380
3380
  index: C,
3381
- items: f
3381
+ items: h
3382
3382
  },
3383
3383
  ...o
3384
- }), [h, o, C, f]), D = M(() => f.slice(f.indexOf(i)), [f, i]), {
3384
+ }), [f, o, C, h]), D = M(() => h.slice(h.indexOf(i)), [h, i]), {
3385
3385
  rect: E,
3386
3386
  node: _,
3387
3387
  isOver: $,
@@ -3421,22 +3421,22 @@ function Pr(e) {
3421
3421
  index: C
3422
3422
  }) : null, Q = jt(m) && jt(b) ? s({
3423
3423
  id: i,
3424
- items: f,
3424
+ items: h,
3425
3425
  activeIndex: m,
3426
3426
  overIndex: b
3427
3427
  }) : C, oe = L?.id, I = N({
3428
3428
  activeId: oe,
3429
- items: f,
3429
+ items: h,
3430
3430
  newIndex: Q,
3431
- containerId: h
3432
- }), Qe = f !== I.current.items, be = t({
3431
+ containerId: f
3432
+ }), Qe = h !== I.current.items, be = t({
3433
3433
  active: L,
3434
- containerId: h,
3434
+ containerId: f,
3435
3435
  isDragging: X,
3436
3436
  isSorting: R,
3437
3437
  id: i,
3438
3438
  index: C,
3439
- items: f,
3439
+ items: h,
3440
3440
  newIndex: I.current.newIndex,
3441
3441
  previousItems: I.current.items,
3442
3442
  previousContainerId: I.current.containerId,
@@ -3449,8 +3449,8 @@ function Pr(e) {
3449
3449
  rect: E
3450
3450
  });
3451
3451
  return A(() => {
3452
- R && I.current.newIndex !== Q && (I.current.newIndex = Q), h !== I.current.containerId && (I.current.containerId = h), f !== I.current.items && (I.current.items = f);
3453
- }, [R, Q, h, f]), A(() => {
3452
+ R && I.current.newIndex !== Q && (I.current.newIndex = Q), f !== I.current.containerId && (I.current.containerId = f), h !== I.current.items && (I.current.items = h);
3453
+ }, [R, Q, f, h]), A(() => {
3454
3454
  if (oe === I.current.activeId)
3455
3455
  return;
3456
3456
  if (oe != null && I.current.activeId == null) {
@@ -3469,7 +3469,7 @@ function Pr(e) {
3469
3469
  rect: E,
3470
3470
  index: C,
3471
3471
  newIndex: Q,
3472
- items: f,
3472
+ items: h,
3473
3473
  isOver: $,
3474
3474
  isSorting: R,
3475
3475
  isDragging: X,
@@ -3556,7 +3556,7 @@ const di = hn(
3556
3556
  ...l
3557
3557
  },
3558
3558
  [
3559
- ...i.map(([u, f]) => sn(u, f)),
3559
+ ...i.map(([u, h]) => sn(u, h)),
3560
3560
  ...Array.isArray(s) ? s : [s]
3561
3561
  ]
3562
3562
  )
@@ -3717,7 +3717,7 @@ function Bi(e, t) {
3717
3717
  ...c,
3718
3718
  data: e,
3719
3719
  columnOrder: l,
3720
- visibility: l.reduce((u, f) => (u[f.id] = !0, u), {}),
3720
+ visibility: l.reduce((u, h) => (u[h.id] = !0, u), {}),
3721
3721
  sortableColumns: l.map((u) => ({
3722
3722
  id: u.id,
3723
3723
  label: u.label,
@@ -3752,26 +3752,28 @@ function Qi({
3752
3752
  onClick: n,
3753
3753
  cursor: r,
3754
3754
  borderRight: o,
3755
- borderRightColor: s
3755
+ borderRightColor: s,
3756
+ backgroundColor: i
3756
3757
  }) {
3757
- const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: f } = Pr({ id: e });
3758
+ const { setNodeRef: l, attributes: c, listeners: u, transform: h, transition: f } = Pr({ id: e });
3758
3759
  return /* @__PURE__ */ a.jsx(
3759
3760
  ye.ColumnHeader,
3760
3761
  {
3761
- ref: i,
3762
+ ref: l,
3762
3763
  onClick: n,
3764
+ backgroundColor: i,
3763
3765
  w: e === "id" ? "80px" : void 0,
3764
3766
  style: {
3765
- transform: qe.Transform.toString(u),
3767
+ transform: qe.Transform.toString(h),
3766
3768
  transition: f,
3767
3769
  cursor: r,
3768
3770
  borderRight: o,
3769
3771
  borderRightColor: s
3770
3772
  },
3771
- ...l,
3773
+ ...c,
3772
3774
  children: /* @__PURE__ */ a.jsxs(ne, { justify: "space-between", children: [
3773
3775
  t,
3774
- /* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
3776
+ /* @__PURE__ */ a.jsx("span", { ...u, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
3775
3777
  ] })
3776
3778
  }
3777
3779
  );
@@ -3780,17 +3782,17 @@ function ea() {
3780
3782
  const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = vt(fe), s = e.map((l) => o.find((c) => c.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), i = (l) => {
3781
3783
  const { active: c, over: u } = l;
3782
3784
  if (!u || c.id === u.id) return;
3783
- const f = e.findIndex((g) => g.id === c.id), h = e.findIndex((g) => g.id === u.id), m = Ht(e, f, h);
3785
+ const h = e.findIndex((g) => g.id === c.id), f = e.findIndex((g) => g.id === u.id), m = Ht(e, h, f);
3784
3786
  Fi(m);
3785
3787
  };
3786
- return /* @__PURE__ */ a.jsx(ye.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
3788
+ return /* @__PURE__ */ a.jsx(ye.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
3787
3789
  Lr,
3788
3790
  {
3789
3791
  items: e.map((l) => l.id),
3790
3792
  strategy: Ks,
3791
3793
  children: /* @__PURE__ */ a.jsxs(ye.Row, { height: "28px", children: [
3792
- s.map((l, c) => {
3793
- const u = n === l?.id;
3794
+ s.map((l) => {
3795
+ const c = n === l?.id;
3794
3796
  return /* @__PURE__ */ a.jsx(
3795
3797
  Qi,
3796
3798
  {
@@ -3809,7 +3811,7 @@ function ea() {
3809
3811
  },
3810
3812
  children: [
3811
3813
  l?.label,
3812
- l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(bi, { size: 14 }) : /* @__PURE__ */ a.jsx(hi, { size: 14 }) : /* @__PURE__ */ a.jsx(pi, { size: 14, opacity: 0.4 }))
3814
+ l?.sortable && (c ? r === "asc" ? /* @__PURE__ */ a.jsx(bi, { size: 14 }) : /* @__PURE__ */ a.jsx(hi, { size: 14 }) : /* @__PURE__ */ a.jsx(pi, { size: 14, opacity: 0.4 }))
3813
3815
  ]
3814
3816
  }
3815
3817
  )
@@ -3931,8 +3933,8 @@ function Dl({
3931
3933
  pageSize: l = 10,
3932
3934
  onPageChange: c,
3933
3935
  onPageSizeChange: u,
3934
- density: f = "sm",
3935
- totalCount: h = 0,
3936
+ density: h = "sm",
3937
+ totalCount: f = 0,
3936
3938
  paginationMode: m = "client"
3937
3939
  }) {
3938
3940
  A(() => {
@@ -3945,20 +3947,20 @@ function Dl({
3945
3947
  if (g && x.sort(
3946
3948
  (w, S) => v === "asc" ? String(w[g]).localeCompare(String(S[g])) : String(S[g]).localeCompare(String(w[g]))
3947
3949
  ), m === "client") {
3948
- const w = i * l;
3950
+ const w = (i - 1) * l;
3949
3951
  return x.slice(w, w + l);
3950
3952
  }
3951
3953
  return x;
3952
3954
  }, [d, g, v, i, l, m]);
3953
3955
  return /* @__PURE__ */ a.jsxs(Ge, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3954
- /* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: f, children: [
3956
+ /* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: h, children: [
3955
3957
  /* @__PURE__ */ a.jsx(ea, {}),
3956
3958
  /* @__PURE__ */ a.jsx(ba, { data: b, actions: s })
3957
3959
  ] }) }),
3958
3960
  /* @__PURE__ */ a.jsx(Ge, { mt: 0.5, children: /* @__PURE__ */ a.jsx(
3959
3961
  fa,
3960
3962
  {
3961
- totalCount: h,
3963
+ totalCount: f,
3962
3964
  pageSize: l,
3963
3965
  currentPage: i,
3964
3966
  onPageChange: c,
@@ -4067,7 +4069,7 @@ function Ta({
4067
4069
  };
4068
4070
  return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
4069
4071
  }, []);
4070
- const f = (v) => {
4072
+ const h = (v) => {
4071
4073
  let d = v;
4072
4074
  if (d.includes(V)) {
4073
4075
  const [b, x = ""] = d.split(V);
@@ -4080,7 +4082,7 @@ function Ta({
4080
4082
  } else
4081
4083
  d = at(d);
4082
4084
  i(d);
4083
- }, h = () => {
4085
+ }, f = () => {
4084
4086
  const v = s.trim();
4085
4087
  if (!v) {
4086
4088
  t(void 0);
@@ -4125,11 +4127,11 @@ function Ta({
4125
4127
  return;
4126
4128
  }
4127
4129
  if (s.substring(b + V.length).trim())
4128
- h(), u.current?.blur();
4130
+ f(), u.current?.blur();
4129
4131
  else {
4130
4132
  const w = s.substring(0, b + V.length) + ar();
4131
4133
  i(w), setTimeout(() => {
4132
- h(), u.current?.blur();
4134
+ f(), u.current?.blur();
4133
4135
  }, 0);
4134
4136
  }
4135
4137
  }, g = () => {
@@ -4197,8 +4199,8 @@ function Ta({
4197
4199
  value: s,
4198
4200
  size: "sm",
4199
4201
  disabled: n,
4200
- onChange: (v) => f(v.target.value),
4201
- onBlur: h,
4202
+ onChange: (v) => h(v.target.value),
4203
+ onBlur: f,
4202
4204
  onKeyDown: m,
4203
4205
  pr: s ? "10" : void 0,
4204
4206
  w: "100%"
@@ -4227,8 +4229,8 @@ const Ia = y(Fe.Root), Aa = y(Fe.Label), ka = y(Fe.HelperText), Ma = y(Fe.ErrorT
4227
4229
  label: l,
4228
4230
  helperText: c,
4229
4231
  isDisabled: u = !1,
4230
- required: f = !1,
4231
- errorText: h,
4232
+ required: h = !1,
4233
+ errorText: f,
4232
4234
  visible: m
4233
4235
  }) => /* @__PURE__ */ a.jsxs(Ia, { width: i, children: [
4234
4236
  m && /* @__PURE__ */ a.jsx(Aa, { children: l }),
@@ -4241,10 +4243,10 @@ const Ia = y(Fe.Root), Aa = y(Fe.Label), ka = y(Fe.HelperText), Ma = y(Fe.ErrorT
4241
4243
  size: o,
4242
4244
  variant: s,
4243
4245
  disabled: u,
4244
- required: f
4246
+ required: h
4245
4247
  }
4246
4248
  ) }),
4247
- h && /* @__PURE__ */ a.jsx(Ma, { fontSize: "xs", children: h }),
4249
+ f && /* @__PURE__ */ a.jsx(Ma, { fontSize: "xs", children: f }),
4248
4250
  c && /* @__PURE__ */ a.jsx(ka, { fontSize: "xs", children: c })
4249
4251
  ] }), Na = y(Fe.Root), La = y(Fe.HelperText), $a = y(Fe.ErrorText), Pa = y(z.Root), za = y(z.Label), Fa = y(z.Control), Va = y(z.Trigger), Ya = y(z.ValueText), Ba = y(z.IndicatorGroup), Ha = y(z.Indicator), Wa = y(z.Content), Ua = y(z.Item), Ga = y(z.ItemIndicator), Xa = y(z.HiddenSelect), qa = y(z.Positioner), Ka = ({
4250
4252
  options: e = [],
@@ -4257,14 +4259,14 @@ const Ia = y(Fe.Root), Aa = y(Fe.Label), ka = y(Fe.HelperText), Ma = y(Fe.ErrorT
4257
4259
  variant: l = "outline",
4258
4260
  helperText: c,
4259
4261
  isDisabled: u,
4260
- required: f,
4261
- errorText: h,
4262
+ required: h,
4263
+ errorText: f,
4262
4264
  visible: m
4263
4265
  }) => {
4264
4266
  const g = cr({
4265
4267
  items: e
4266
4268
  });
4267
- return /* @__PURE__ */ a.jsxs(Na, { disabled: u, required: f, children: [
4269
+ return /* @__PURE__ */ a.jsxs(Na, { disabled: u, required: h, children: [
4268
4270
  /* @__PURE__ */ a.jsxs(
4269
4271
  Pa,
4270
4272
  {
@@ -4289,7 +4291,7 @@ const Ia = y(Fe.Root), Aa = y(Fe.Label), ka = y(Fe.HelperText), Ma = y(Fe.ErrorT
4289
4291
  }
4290
4292
  ),
4291
4293
  c && /* @__PURE__ */ a.jsx(La, { children: c }),
4292
- h && /* @__PURE__ */ a.jsx($a, { children: h })
4294
+ f && /* @__PURE__ */ a.jsx($a, { children: f })
4293
4295
  ] });
4294
4296
  }, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4295
4297
  function Ja(e) {
@@ -4436,8 +4438,8 @@ const Pt = new gr({}), Cn = (e) => {
4436
4438
  onLoadPreset: l,
4437
4439
  activePresetName: c,
4438
4440
  onReorder: u,
4439
- open: f,
4440
- onOpenChange: h
4441
+ open: h,
4442
+ onOpenChange: f
4441
4443
  }) => {
4442
4444
  const g = vt(Pt)[s] ?? Cn(s), v = () => {
4443
4445
  const d = prompt("Preset name?");
@@ -4448,7 +4450,7 @@ const Pt = new gr({}), Cn = (e) => {
4448
4450
  filters: i
4449
4451
  });
4450
4452
  };
4451
- return /* @__PURE__ */ a.jsx(ne, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(cl, { size: e, open: f, onOpenChange: h, children: [
4453
+ return /* @__PURE__ */ a.jsx(ne, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(cl, { size: e, open: h, onOpenChange: f, children: [
4452
4454
  /* @__PURE__ */ a.jsx(ul, { asChild: !0, children: /* @__PURE__ */ a.jsxs(we, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4453
4455
  /* @__PURE__ */ a.jsx(Ai, { size: 16 }),
4454
4456
  "Filters"
@@ -4483,7 +4485,7 @@ const Pt = new gr({}), Cn = (e) => {
4483
4485
  rounded: "md",
4484
4486
  p: 3,
4485
4487
  mb: 3,
4486
- children: Hr(d, f)
4488
+ children: Hr(d, h)
4487
4489
  },
4488
4490
  d.id
4489
4491
  )) }),
@@ -4585,8 +4587,8 @@ const Pt = new gr({}), Cn = (e) => {
4585
4587
  pageKey: l,
4586
4588
  currentFilters: c,
4587
4589
  onLoadPreset: u,
4588
- activePresetName: f,
4589
- filterDrawerSize: h = "sm"
4590
+ activePresetName: h,
4591
+ filterDrawerSize: f = "sm"
4590
4592
  }) => {
4591
4593
  const [m, g] = G(!1);
4592
4594
  return /* @__PURE__ */ a.jsxs(ne, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
@@ -4605,7 +4607,7 @@ const Pt = new gr({}), Cn = (e) => {
4605
4607
  /* @__PURE__ */ a.jsx(
4606
4608
  wl,
4607
4609
  {
4608
- filterDrawerSize: h,
4610
+ filterDrawerSize: f,
4609
4611
  onVisibilityChange: n,
4610
4612
  onReorder: r,
4611
4613
  onSizeChange: o,
@@ -4615,7 +4617,7 @@ const Pt = new gr({}), Cn = (e) => {
4615
4617
  filters: t,
4616
4618
  currentFilters: c,
4617
4619
  onLoadPreset: u,
4618
- activePresetName: f,
4620
+ activePresetName: h,
4619
4621
  open: m,
4620
4622
  onOpenChange: (v) => {
4621
4623
  g(v.open);
@@ -4634,7 +4636,7 @@ const Pt = new gr({}), Cn = (e) => {
4634
4636
  }
4635
4637
  }, Ol = ({
4636
4638
  onClick: e,
4637
- size: t = "sm",
4639
+ size: t = "xs",
4638
4640
  variant: n = "solid",
4639
4641
  label: r,
4640
4642
  leftIcon: o,
@@ -4643,7 +4645,8 @@ const Pt = new gr({}), Cn = (e) => {
4643
4645
  colorScheme: l,
4644
4646
  loading: c,
4645
4647
  loadingText: u,
4646
- rounded: f
4648
+ rounded: h,
4649
+ type: f = "button"
4647
4650
  }) => /* @__PURE__ */ a.jsx(
4648
4651
  Tt,
4649
4652
  {
@@ -4654,7 +4657,8 @@ const Pt = new gr({}), Cn = (e) => {
4654
4657
  colorPalette: l,
4655
4658
  loading: c,
4656
4659
  loadingText: u,
4657
- rounded: f,
4660
+ rounded: h,
4661
+ type: f,
4658
4662
  children: /* @__PURE__ */ a.jsxs(ne, { gap: 1, children: [
4659
4663
  o,
4660
4664
  r,
@@ -4702,6 +4706,7 @@ export {
4702
4706
  Ol as MDSButton,
4703
4707
  Sa as MDSCheckbox,
4704
4708
  lr as MDSInput,
4709
+ Tl as MDSRefreshButton,
4705
4710
  Ka as MDSSelectBox,
4706
4711
  Tl as RefreshButton,
4707
4712
  Qa as addPreset,