@mdspl/mds-shared-ui 0.2.5 → 0.2.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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as K, useState as Q, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
1
+ import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as J, useState as K, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
2
  import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as ae, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as no, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as ro, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as oo } from "@chakra-ui/react";
3
3
  import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
@@ -34,13 +34,13 @@ function ao() {
34
34
  return p.$$typeof === L ? null : p.displayName || p.name || null;
35
35
  if (typeof p == "string") return p;
36
36
  switch (p) {
37
- case m:
37
+ case b:
38
38
  return "Fragment";
39
39
  case w:
40
40
  return "Profiler";
41
41
  case x:
42
42
  return "StrictMode";
43
- case R:
43
+ case D:
44
44
  return "Suspense";
45
45
  case E:
46
46
  return "SuspenseList";
@@ -51,21 +51,21 @@ function ao() {
51
51
  switch (typeof p.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), p.$$typeof) {
54
- case g:
54
+ case d:
55
55
  return "Portal";
56
- case D:
56
+ case C:
57
57
  return p.displayName || "Context";
58
58
  case S:
59
59
  return (p._context.displayName || "Context") + ".Consumer";
60
60
  case j:
61
- var C = p.render;
62
- return p = p.displayName, p || (p = C.displayName || C.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
61
+ var R = p.render;
62
+ return p = p.displayName, p || (p = R.displayName || R.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
63
63
  case _:
64
- return C = p.displayName || null, C !== null ? C : e(p.type) || "Memo";
64
+ return R = p.displayName || null, R !== null ? R : e(p.type) || "Memo";
65
65
  case $:
66
- C = p._payload, p = p._init;
66
+ R = p._payload, p = p._init;
67
67
  try {
68
- return e(p(C));
68
+ return e(p(R));
69
69
  } catch {
70
70
  }
71
71
  }
@@ -77,33 +77,33 @@ function ao() {
77
77
  function n(p) {
78
78
  try {
79
79
  t(p);
80
- var C = !1;
80
+ var R = !1;
81
81
  } catch {
82
- C = !0;
82
+ R = !0;
83
83
  }
84
- if (C) {
85
- C = console;
86
- var O = C.error, k = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
84
+ if (R) {
85
+ R = console;
86
+ var O = R.error, k = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
87
87
  return O.call(
88
- C,
88
+ R,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
90
  k
91
91
  ), t(p);
92
92
  }
93
93
  }
94
94
  function r(p) {
95
- if (p === m) return "<>";
95
+ if (p === b) return "<>";
96
96
  if (typeof p == "object" && p !== null && p.$$typeof === $)
97
97
  return "<...>";
98
98
  try {
99
- var C = e(p);
100
- return C ? "<" + C + ">" : "<...>";
99
+ var R = e(p);
100
+ return R ? "<" + R + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function o() {
106
- var p = J.A;
106
+ var p = Z.A;
107
107
  return p === null ? null : p.getOwner();
108
108
  }
109
109
  function s() {
@@ -111,16 +111,16 @@ function ao() {
111
111
  }
112
112
  function i(p) {
113
113
  if (ee.call(p, "key")) {
114
- var C = Object.getOwnPropertyDescriptor(p, "key").get;
115
- if (C && C.isReactWarning) return !1;
114
+ var R = Object.getOwnPropertyDescriptor(p, "key").get;
115
+ if (R && R.isReactWarning) return !1;
116
116
  }
117
117
  return p.key !== void 0;
118
118
  }
119
- function l(p, C) {
119
+ function l(p, R) {
120
120
  function O() {
121
121
  $e || ($e = !0, console.error(
122
122
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
- C
123
+ R
124
124
  ));
125
125
  }
126
126
  O.isReactWarning = !0, Object.defineProperty(p, "key", {
@@ -134,12 +134,12 @@ function ao() {
134
134
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
135
  )), p = this.props.ref, p !== void 0 ? p : null;
136
136
  }
137
- function u(p, C, O, k, ve, X) {
137
+ function u(p, R, O, k, ve, X) {
138
138
  var P = O.ref;
139
139
  return p = {
140
- $$typeof: b,
140
+ $$typeof: v,
141
141
  type: p,
142
- key: C,
142
+ key: R,
143
143
  props: O,
144
144
  _owner: k
145
145
  }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(p, "ref", {
@@ -167,25 +167,25 @@ function ao() {
167
167
  value: X
168
168
  }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
169
169
  }
170
- function h(p, C, O, k, ve, X) {
171
- var P = C.children;
170
+ function f(p, R, O, k, ve, X) {
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
- f(P[k]);
176
+ h(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 f(P);
183
- if (ee.call(C, "key")) {
182
+ else h(P);
183
+ if (ee.call(R, "key")) {
184
184
  P = e(p);
185
- var Z = Object.keys(C).filter(function(I) {
185
+ var Q = Object.keys(R).filter(function(I) {
186
186
  return I !== "key";
187
187
  });
188
- k = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", Oe[P + k] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ k = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Oe[P + k] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
@@ -194,15 +194,15 @@ React keys must be passed directly to JSX without using spread:
194
194
  <%s key={someKey} {...props} />`,
195
195
  k,
196
196
  P,
197
- Z,
197
+ Q,
198
198
  P
199
199
  ), Oe[P + k] = !0);
200
200
  }
201
- if (P = null, O !== void 0 && (n(O), P = "" + O), i(C) && (n(C.key), P = "" + C.key), "key" in C) {
201
+ if (P = null, O !== void 0 && (n(O), P = "" + O), i(R) && (n(R.key), P = "" + R.key), "key" in R) {
202
202
  O = {};
203
- for (var re in C)
204
- re !== "key" && (O[re] = C[re]);
205
- } else O = C;
203
+ for (var re in R)
204
+ re !== "key" && (O[re] = R[re]);
205
+ } else O = R;
206
206
  return P && l(
207
207
  O,
208
208
  typeof p == "function" ? p.displayName || p.name || "Unknown" : p
@@ -215,39 +215,39 @@ React keys must be passed directly to JSX without using spread:
215
215
  X
216
216
  );
217
217
  }
218
- function f(p) {
219
- v(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === $ && (p._payload.status === "fulfilled" ? v(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
218
+ function h(p) {
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
- function v(p) {
222
- return typeof p == "object" && p !== null && p.$$typeof === b;
221
+ function m(p) {
222
+ return typeof p == "object" && p !== null && p.$$typeof === v;
223
223
  }
224
- var d = H, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, le = Array.isArray, Re = console.createTask ? console.createTask : function() {
224
+ var g = H, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, le = Array.isArray, Re = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- d = {
227
+ g = {
228
228
  react_stack_bottom_frame: function(p) {
229
229
  return p();
230
230
  }
231
231
  };
232
- var $e, G = {}, Pe = d.react_stack_bottom_frame.bind(
233
- d,
232
+ var $e, G = {}, Pe = g.react_stack_bottom_frame.bind(
233
+ g,
234
234
  s
235
235
  )(), ce = Re(r(s)), Oe = {};
236
- st.Fragment = m, st.jsx = function(p, C, O) {
237
- var k = 1e4 > J.recentlyCreatedOwnerStacks++;
238
- return h(
236
+ st.Fragment = b, st.jsx = function(p, R, O) {
237
+ var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
238
+ return f(
239
239
  p,
240
- C,
240
+ R,
241
241
  O,
242
242
  !1,
243
243
  k ? Error("react-stack-top-frame") : Pe,
244
244
  k ? Re(r(p)) : ce
245
245
  );
246
- }, st.jsxs = function(p, C, O) {
247
- var k = 1e4 > J.recentlyCreatedOwnerStacks++;
248
- return h(
246
+ }, st.jsxs = function(p, R, O) {
247
+ var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
248
+ return f(
249
249
  p,
250
- C,
250
+ R,
251
251
  O,
252
252
  !0,
253
253
  k ? Error("react-stack-top-frame") : Pe,
@@ -266,94 +266,94 @@ function co() {
266
266
  if ($n) return qt;
267
267
  $n = 1;
268
268
  var e = H;
269
- function t(f, v) {
270
- return f === v && (f !== 0 || 1 / f === 1 / v) || f !== f && v !== v;
269
+ function t(h, m) {
270
+ return h === m && (h !== 0 || 1 / h === 1 / m) || h !== h && 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(f, v) {
274
- var d = v(), b = r({ inst: { value: d, getSnapshot: v } }), g = b[0].inst, m = b[1];
273
+ function l(h, m) {
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
- g.value = d, g.getSnapshot = v, c(g) && m({ inst: g });
277
+ d.value = g, d.getSnapshot = m, c(d) && b({ inst: d });
278
278
  },
279
- [f, d, v]
279
+ [h, g, m]
280
280
  ), o(
281
281
  function() {
282
- return c(g) && m({ inst: g }), f(function() {
283
- c(g) && m({ inst: g });
282
+ return c(d) && b({ inst: d }), h(function() {
283
+ c(d) && b({ inst: d });
284
284
  });
285
285
  },
286
- [f]
287
- ), i(d), d;
286
+ [h]
287
+ ), i(g), g;
288
288
  }
289
- function c(f) {
290
- var v = f.getSnapshot;
291
- f = f.value;
289
+ function c(h) {
290
+ var m = h.getSnapshot;
291
+ h = h.value;
292
292
  try {
293
- var d = v();
294
- return !n(f, d);
293
+ var g = m();
294
+ return !n(h, g);
295
295
  } catch {
296
296
  return !0;
297
297
  }
298
298
  }
299
- function u(f, v) {
300
- return v();
299
+ function u(h, m) {
300
+ return m();
301
301
  }
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;
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;
304
304
  }
305
305
  var Kt = {};
306
306
  var Pn;
307
307
  function uo() {
308
308
  return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
309
- function e(d, b) {
310
- return d === b && (d !== 0 || 1 / d === 1 / b) || d !== d && b !== b;
309
+ function e(g, v) {
310
+ return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
311
311
  }
312
- function t(d, b) {
313
- h || o.startTransition === void 0 || (h = !0, console.error(
312
+ function t(g, v) {
313
+ f || o.startTransition === void 0 || (f = !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
- var g = b();
317
- if (!f) {
318
- var m = b();
319
- s(g, m) || (console.error(
316
+ var d = v();
317
+ if (!h) {
318
+ var b = v();
319
+ s(d, b) || (console.error(
320
320
  "The result of getSnapshot should be cached to avoid an infinite loop"
321
- ), f = !0);
321
+ ), h = !0);
322
322
  }
323
- m = i({
324
- inst: { value: g, getSnapshot: b }
323
+ b = i({
324
+ inst: { value: d, getSnapshot: v }
325
325
  });
326
- var x = m[0].inst, w = m[1];
326
+ var x = b[0].inst, w = b[1];
327
327
  return c(
328
328
  function() {
329
- x.value = g, x.getSnapshot = b, n(x) && w({ inst: x });
329
+ x.value = d, x.getSnapshot = v, n(x) && w({ inst: x });
330
330
  },
331
- [d, g, b]
331
+ [g, d, v]
332
332
  ), l(
333
333
  function() {
334
- return n(x) && w({ inst: x }), d(function() {
334
+ return n(x) && w({ inst: x }), g(function() {
335
335
  n(x) && w({ inst: x });
336
336
  });
337
337
  },
338
- [d]
339
- ), u(g), g;
338
+ [g]
339
+ ), u(d), d;
340
340
  }
341
- function n(d) {
342
- var b = d.getSnapshot;
343
- d = d.value;
341
+ function n(g) {
342
+ var v = g.getSnapshot;
343
+ g = g.value;
344
344
  try {
345
- var g = b();
346
- return !s(d, g);
345
+ var d = v();
346
+ return !s(g, d);
347
347
  } catch {
348
348
  return !0;
349
349
  }
350
350
  }
351
- function r(d, b) {
352
- return b();
351
+ function r(g, v) {
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 = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, f = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
356
- Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
355
+ var o = H, 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;
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
  }
359
359
  var zn;
@@ -365,102 +365,102 @@ function fo() {
365
365
  if (Fn) return Xt;
366
366
  Fn = 1;
367
367
  var e = H, t = fr();
368
- function n(u, h) {
369
- return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
368
+ function n(u, f) {
369
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
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, h, f, v, d) {
373
- var b = s(null);
374
- if (b.current === null) {
375
- var g = { hasValue: !1, value: null };
376
- b.current = g;
377
- } else g = b.current;
378
- b = l(
372
+ return Xt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
373
+ var v = s(null);
374
+ if (v.current === null) {
375
+ var d = { hasValue: !1, value: null };
376
+ v.current = d;
377
+ } else d = v.current;
378
+ v = l(
379
379
  function() {
380
- function x(R) {
380
+ function x(D) {
381
381
  if (!w) {
382
- if (w = !0, S = R, R = v(R), d !== void 0 && g.hasValue) {
383
- var E = g.value;
384
- if (d(E, R))
385
- return D = E;
382
+ if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
383
+ var E = d.value;
384
+ if (g(E, D))
385
+ return C = E;
386
386
  }
387
- return D = R;
387
+ return C = D;
388
388
  }
389
- if (E = D, r(S, R)) return E;
390
- var _ = v(R);
391
- return d !== void 0 && d(E, _) ? (S = R, E) : (S = R, D = _);
389
+ if (E = C, r(S, D)) return E;
390
+ var _ = m(D);
391
+ return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
392
392
  }
393
- var w = !1, S, D, j = f === void 0 ? null : f;
393
+ var w = !1, S, C, j = h === void 0 ? null : h;
394
394
  return [
395
395
  function() {
396
- return x(h());
396
+ return x(f());
397
397
  },
398
398
  j === null ? void 0 : function() {
399
399
  return x(j());
400
400
  }
401
401
  ];
402
402
  },
403
- [h, f, v, d]
403
+ [f, h, m, g]
404
404
  );
405
- var m = o(u, b[0], b[1]);
405
+ var b = o(u, v[0], v[1]);
406
406
  return i(
407
407
  function() {
408
- g.hasValue = !0, g.value = m;
408
+ d.hasValue = !0, d.value = b;
409
409
  },
410
- [m]
411
- ), c(m), m;
410
+ [b]
411
+ ), c(b), b;
412
412
  }, Xt;
413
413
  }
414
414
  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, h) {
419
- return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
418
+ function e(u, f) {
419
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
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 = H, 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, h, f, v, d) {
424
- var b = s(null);
425
- if (b.current === null) {
426
- var g = { hasValue: !1, value: null };
427
- b.current = g;
428
- } else g = b.current;
429
- b = l(
423
+ Jt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
424
+ var v = s(null);
425
+ if (v.current === null) {
426
+ var d = { hasValue: !1, value: null };
427
+ v.current = d;
428
+ } else d = v.current;
429
+ v = l(
430
430
  function() {
431
- function x(R) {
431
+ function x(D) {
432
432
  if (!w) {
433
- if (w = !0, S = R, R = v(R), d !== void 0 && g.hasValue) {
434
- var E = g.value;
435
- if (d(E, R))
436
- return D = E;
433
+ if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
434
+ var E = d.value;
435
+ if (g(E, D))
436
+ return C = E;
437
437
  }
438
- return D = R;
438
+ return C = D;
439
439
  }
440
- if (E = D, r(S, R))
440
+ if (E = C, r(S, D))
441
441
  return E;
442
- var _ = v(R);
443
- return d !== void 0 && d(E, _) ? (S = R, E) : (S = R, D = _);
442
+ var _ = m(D);
443
+ return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
444
444
  }
445
- var w = !1, S, D, j = f === void 0 ? null : f;
445
+ var w = !1, S, C, j = h === void 0 ? null : h;
446
446
  return [
447
447
  function() {
448
- return x(h());
448
+ return x(f());
449
449
  },
450
450
  j === null ? void 0 : function() {
451
451
  return x(j());
452
452
  }
453
453
  ];
454
454
  },
455
- [h, f, v, d]
455
+ [f, h, m, g]
456
456
  );
457
- var m = o(u, b[0], b[1]);
457
+ var b = o(u, v[0], v[1]);
458
458
  return i(
459
459
  function() {
460
- g.hasValue = !0, g.value = m;
460
+ d.hasValue = !0, d.value = b;
461
461
  },
462
- [m]
463
- ), c(m), m;
462
+ [b]
463
+ ), c(b), b;
464
464
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
465
465
  })()), Jt;
466
466
  }
@@ -633,16 +633,16 @@ function vn(e) {
633
633
  const t = M(e);
634
634
  return we(() => {
635
635
  t.current = e;
636
- }), K(function() {
636
+ }), J(function() {
637
637
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
638
638
  r[o] = arguments[o];
639
639
  return t.current == null ? void 0 : t.current(...r);
640
640
  }, []);
641
641
  }
642
642
  function Co() {
643
- const e = M(null), t = K((r, o) => {
643
+ const e = M(null), t = J((r, o) => {
644
644
  e.current = setInterval(r, o);
645
- }, []), n = K(() => {
645
+ }, []), n = J(() => {
646
646
  e.current !== null && (clearInterval(e.current), e.current = null);
647
647
  }, []);
648
648
  return [t, n];
@@ -666,7 +666,7 @@ function mt(e, t) {
666
666
  );
667
667
  }
668
668
  function kt(e) {
669
- const t = vn(e), n = M(null), r = K(
669
+ const t = vn(e), n = M(null), r = J(
670
670
  (o) => {
671
671
  o !== n.current && t?.(o, n.current), n.current = o;
672
672
  },
@@ -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 h = s[c];
701
- h != null && (s[c] = h + e * u);
700
+ const f = s[c];
701
+ f != null && (s[c] = f + e * u);
702
702
  }
703
703
  return s;
704
704
  }, {
@@ -838,9 +838,9 @@ function Oo(e) {
838
838
  }, n);
839
839
  }
840
840
  function To() {
841
- const [e, t] = Q("");
841
+ const [e, t] = K("");
842
842
  return {
843
- announce: K((r) => {
843
+ announce: J((r) => {
844
844
  r != null && t(r);
845
845
  }, []),
846
846
  announcement: e
@@ -856,8 +856,8 @@ function Io(e) {
856
856
  }, [e, t]);
857
857
  }
858
858
  function Ao() {
859
- const [e] = Q(() => /* @__PURE__ */ new Set()), t = K((r) => (e.add(r), () => e.delete(r)), [e]);
860
- return [K((r) => {
859
+ const [e] = K(() => /* @__PURE__ */ new Set()), t = J((r) => (e.add(r), () => e.delete(r)), [e]);
860
+ return [J((r) => {
861
861
  let {
862
862
  type: o,
863
863
  event: s
@@ -912,68 +912,68 @@ function Mo(e) {
912
912
  const {
913
913
  announce: s,
914
914
  announcement: i
915
- } = To(), l = xt("DndLiveRegion"), [c, u] = Q(!1);
915
+ } = To(), l = xt("DndLiveRegion"), [c, u] = K(!1);
916
916
  if (A(() => {
917
917
  u(!0);
918
918
  }, []), Io(N(() => ({
919
- onDragStart(f) {
919
+ onDragStart(h) {
920
920
  let {
921
- active: v
922
- } = f;
921
+ active: m
922
+ } = h;
923
923
  s(t.onDragStart({
924
- active: v
924
+ active: m
925
925
  }));
926
926
  },
927
- onDragMove(f) {
927
+ onDragMove(h) {
928
928
  let {
929
- active: v,
930
- over: d
931
- } = f;
929
+ active: m,
930
+ over: g
931
+ } = h;
932
932
  t.onDragMove && s(t.onDragMove({
933
- active: v,
934
- over: d
933
+ active: m,
934
+ over: g
935
935
  }));
936
936
  },
937
- onDragOver(f) {
937
+ onDragOver(h) {
938
938
  let {
939
- active: v,
940
- over: d
941
- } = f;
939
+ active: m,
940
+ over: g
941
+ } = h;
942
942
  s(t.onDragOver({
943
- active: v,
944
- over: d
943
+ active: m,
944
+ over: g
945
945
  }));
946
946
  },
947
- onDragEnd(f) {
947
+ onDragEnd(h) {
948
948
  let {
949
- active: v,
950
- over: d
951
- } = f;
949
+ active: m,
950
+ over: g
951
+ } = h;
952
952
  s(t.onDragEnd({
953
- active: v,
954
- over: d
953
+ active: m,
954
+ over: g
955
955
  }));
956
956
  },
957
- onDragCancel(f) {
957
+ onDragCancel(h) {
958
958
  let {
959
- active: v,
960
- over: d
961
- } = f;
959
+ active: m,
960
+ over: g
961
+ } = h;
962
962
  s(t.onDragCancel({
963
- active: v,
964
- over: d
963
+ active: m,
964
+ over: g
965
965
  }));
966
966
  }
967
967
  }), [s, t])), !c)
968
968
  return null;
969
- const h = H.createElement(H.Fragment, null, H.createElement(_o, {
969
+ const f = H.createElement(H.Fragment, null, H.createElement(_o, {
970
970
  id: r,
971
971
  value: o.draggable
972
972
  }), H.createElement(Oo, {
973
973
  id: l,
974
974
  announcement: i
975
975
  }));
976
- return n ? so(h, n) : h;
976
+ return n ? so(f, n) : f;
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, h = i * l, f = h / (c + u - h);
1074
- return Number(f.toFixed(4));
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));
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)), h = o ? e.width / o : e.width, f = 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)), f = o ? e.width / o : e.width, h = s ? e.height / s : e.height;
1161
1161
  return {
1162
- width: h,
1163
- height: f,
1162
+ width: f,
1163
+ height: h,
1164
1164
  top: u,
1165
- right: c + h,
1166
- bottom: u + f,
1165
+ right: c + f,
1166
+ bottom: u + h,
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: h
1179
+ transformOrigin: f
1180
1180
  } = te(e).getComputedStyle(e);
1181
- u && (n = Xo(n, u, h));
1181
+ u && (n = Xo(n, u, f));
1182
1182
  }
1183
1183
  const {
1184
1184
  top: r,
@@ -1301,22 +1301,22 @@ 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: h,
1305
- isLeft: f,
1306
- isRight: v
1307
- } = Rr(e), d = {
1304
+ isBottom: f,
1305
+ isLeft: h,
1306
+ isRight: m
1307
+ } = Rr(e), g = {
1308
1308
  x: 0,
1309
1309
  y: 0
1310
- }, b = {
1310
+ }, v = {
1311
1311
  x: 0,
1312
1312
  y: 0
1313
- }, g = {
1313
+ }, d = {
1314
1314
  height: t.height * o.y,
1315
1315
  width: t.width * o.x
1316
1316
  };
1317
- return !u && s <= t.top + g.height ? (d.y = B.Backward, b.y = r * Math.abs((t.top + g.height - s) / g.height)) : !h && c >= t.bottom - g.height && (d.y = B.Forward, b.y = r * Math.abs((t.bottom - g.height - c) / g.height)), !v && l >= t.right - g.width ? (d.x = B.Forward, b.x = r * Math.abs((t.right - g.width - l) / g.width)) : !f && i <= t.left + g.width && (d.x = B.Backward, b.x = r * Math.abs((t.left + g.width - i) / g.width)), {
1318
- direction: d,
1319
- speed: b
1317
+ return !u && s <= t.top + d.height ? (g.y = B.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !f && c >= t.bottom - d.height && (g.y = B.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = B.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !h && i <= t.left + d.width && (g.x = B.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
1318
+ direction: g,
1319
+ speed: v
1320
1320
  };
1321
1321
  }
1322
1322
  function ts(e) {
@@ -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), h = o[s] - u;
1388
- return this.rect[c] + h;
1387
+ const u = l(r), f = o[s] - u;
1388
+ return this.rect[c] + f;
1389
1389
  },
1390
1390
  enumerable: !0
1391
1391
  });
@@ -1506,66 +1506,66 @@ class jr {
1506
1506
  }
1507
1507
  const {
1508
1508
  collisionRect: u
1509
- } = r.current, h = u ? {
1509
+ } = r.current, f = u ? {
1510
1510
  x: u.left,
1511
1511
  y: u.top
1512
1512
  } : ge;
1513
- this.referenceCoordinates || (this.referenceCoordinates = h);
1514
- const f = i(t, {
1513
+ this.referenceCoordinates || (this.referenceCoordinates = f);
1514
+ const h = i(t, {
1515
1515
  active: n,
1516
1516
  context: r.current,
1517
- currentCoordinates: h
1517
+ currentCoordinates: f
1518
1518
  });
1519
- if (f) {
1520
- const v = Nt(f, h), d = {
1519
+ if (h) {
1520
+ const m = Nt(h, f), g = {
1521
1521
  x: 0,
1522
1522
  y: 0
1523
1523
  }, {
1524
- scrollableAncestors: b
1524
+ scrollableAncestors: v
1525
1525
  } = r.current;
1526
- for (const g of b) {
1527
- const m = t.code, {
1526
+ for (const d of v) {
1527
+ const b = t.code, {
1528
1528
  isTop: x,
1529
1529
  isRight: w,
1530
1530
  isLeft: S,
1531
- isBottom: D,
1531
+ isBottom: C,
1532
1532
  maxScroll: j,
1533
- minScroll: R
1534
- } = Rr(g), E = ts(g), _ = {
1535
- x: Math.min(m === T.Right ? E.right - E.width / 2 : E.right, Math.max(m === T.Right ? E.left : E.left + E.width / 2, f.x)),
1536
- y: Math.min(m === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(m === T.Down ? E.top : E.top + E.height / 2, f.y))
1537
- }, $ = m === T.Right && !w || m === T.Left && !S, F = m === T.Down && !D || m === T.Up && !x;
1538
- if ($ && _.x !== f.x) {
1539
- const L = g.scrollLeft + v.x, J = m === T.Right && L <= j.x || m === T.Left && L >= R.x;
1540
- if (J && !v.y) {
1541
- g.scrollTo({
1533
+ minScroll: D
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))
1537
+ }, $ = b === T.Right && !w || b === T.Left && !S, F = b === T.Down && !C || b === T.Up && !x;
1538
+ if ($ && _.x !== h.x) {
1539
+ const L = d.scrollLeft + m.x, Z = b === T.Right && L <= j.x || b === T.Left && L >= D.x;
1540
+ if (Z && !m.y) {
1541
+ d.scrollTo({
1542
1542
  left: L,
1543
1543
  behavior: l
1544
1544
  });
1545
1545
  return;
1546
1546
  }
1547
- J ? d.x = g.scrollLeft - L : d.x = m === T.Right ? g.scrollLeft - j.x : g.scrollLeft - R.x, d.x && g.scrollBy({
1548
- left: -d.x,
1547
+ Z ? g.x = d.scrollLeft - L : g.x = b === T.Right ? d.scrollLeft - j.x : d.scrollLeft - D.x, g.x && d.scrollBy({
1548
+ left: -g.x,
1549
1549
  behavior: l
1550
1550
  });
1551
1551
  break;
1552
- } else if (F && _.y !== f.y) {
1553
- const L = g.scrollTop + v.y, J = m === T.Down && L <= j.y || m === T.Up && L >= R.y;
1554
- if (J && !v.x) {
1555
- g.scrollTo({
1552
+ } else if (F && _.y !== h.y) {
1553
+ const L = d.scrollTop + m.y, Z = b === T.Down && L <= j.y || b === T.Up && L >= D.y;
1554
+ if (Z && !m.x) {
1555
+ d.scrollTo({
1556
1556
  top: L,
1557
1557
  behavior: l
1558
1558
  });
1559
1559
  return;
1560
1560
  }
1561
- J ? d.y = g.scrollTop - L : d.y = m === T.Down ? g.scrollTop - j.y : g.scrollTop - R.y, d.y && g.scrollBy({
1562
- top: -d.y,
1561
+ Z ? g.y = d.scrollTop - L : g.y = b === T.Down ? d.scrollTop - j.y : d.scrollTop - D.y, g.y && d.scrollBy({
1562
+ top: -g.y,
1563
1563
  behavior: l
1564
1564
  });
1565
1565
  break;
1566
1566
  }
1567
1567
  }
1568
- this.handleMove(t, Xe(Nt(f, this.referenceCoordinates), d));
1568
+ this.handleMove(t, Xe(Nt(h, this.referenceCoordinates), g));
1569
1569
  }
1570
1570
  }
1571
1571
  }
@@ -1853,14 +1853,14 @@ function hs(e) {
1853
1853
  order: l = Lt.TreeOrder,
1854
1854
  pointerCoordinates: c,
1855
1855
  scrollableAncestors: u,
1856
- scrollableAncestorRects: h,
1857
- delta: f,
1858
- threshold: v
1856
+ scrollableAncestorRects: f,
1857
+ delta: h,
1858
+ threshold: m
1859
1859
  } = e;
1860
- const d = ps({
1861
- delta: f,
1860
+ const g = ps({
1861
+ delta: h,
1862
1862
  disabled: !s
1863
- }), [b, g] = Co(), m = M({
1863
+ }), [v, d] = Co(), b = M({
1864
1864
  x: 0,
1865
1865
  y: 0
1866
1866
  }), x = M({
@@ -1878,62 +1878,62 @@ function hs(e) {
1878
1878
  case ct.DraggableRect:
1879
1879
  return o;
1880
1880
  }
1881
- }, [n, o, c]), S = M(null), D = K(() => {
1882
- const R = S.current;
1883
- if (!R)
1881
+ }, [n, o, c]), S = M(null), C = J(() => {
1882
+ const D = S.current;
1883
+ if (!D)
1884
1884
  return;
1885
- const E = m.current.x * x.current.x, _ = m.current.y * x.current.y;
1886
- R.scrollBy(E, _);
1885
+ const E = b.current.x * x.current.x, _ = b.current.y * x.current.y;
1886
+ D.scrollBy(E, _);
1887
1887
  }, []), j = N(() => l === Lt.TreeOrder ? [...u].reverse() : u, [l, u]);
1888
1888
  A(
1889
1889
  () => {
1890
1890
  if (!s || !u.length || !w) {
1891
- g();
1891
+ d();
1892
1892
  return;
1893
1893
  }
1894
- for (const R of j) {
1895
- if (r?.(R) === !1)
1894
+ for (const D of j) {
1895
+ if (r?.(D) === !1)
1896
1896
  continue;
1897
- const E = u.indexOf(R), _ = h[E];
1897
+ const E = u.indexOf(D), _ = f[E];
1898
1898
  if (!_)
1899
1899
  continue;
1900
1900
  const {
1901
1901
  direction: $,
1902
1902
  speed: F
1903
- } = es(R, _, w, t, v);
1903
+ } = es(D, _, w, t, m);
1904
1904
  for (const L of ["x", "y"])
1905
- d[L][$[L]] || (F[L] = 0, $[L] = 0);
1905
+ g[L][$[L]] || (F[L] = 0, $[L] = 0);
1906
1906
  if (F.x > 0 || F.y > 0) {
1907
- g(), S.current = R, b(D, i), m.current = F, x.current = $;
1907
+ d(), S.current = D, v(C, i), b.current = F, x.current = $;
1908
1908
  return;
1909
1909
  }
1910
1910
  }
1911
- m.current = {
1911
+ b.current = {
1912
1912
  x: 0,
1913
1913
  y: 0
1914
1914
  }, x.current = {
1915
1915
  x: 0,
1916
1916
  y: 0
1917
- }, g();
1917
+ }, d();
1918
1918
  },
1919
1919
  // eslint-disable-next-line react-hooks/exhaustive-deps
1920
1920
  [
1921
1921
  t,
1922
- D,
1922
+ C,
1923
1923
  r,
1924
- g,
1924
+ d,
1925
1925
  s,
1926
1926
  i,
1927
1927
  // eslint-disable-next-line react-hooks/exhaustive-deps
1928
1928
  JSON.stringify(w),
1929
1929
  // eslint-disable-next-line react-hooks/exhaustive-deps
1930
- JSON.stringify(d),
1931
- b,
1930
+ JSON.stringify(g),
1931
+ v,
1932
1932
  u,
1933
1933
  j,
1934
- h,
1934
+ f,
1935
1935
  // eslint-disable-next-line react-hooks/exhaustive-deps
1936
- JSON.stringify(v)
1936
+ JSON.stringify(m)
1937
1937
  ]
1938
1938
  );
1939
1939
  }
@@ -2005,16 +2005,16 @@ function ms(e, t) {
2005
2005
  dependencies: r,
2006
2006
  config: o
2007
2007
  } = t;
2008
- const [s, i] = Q(null), {
2008
+ const [s, i] = K(null), {
2009
2009
  frequency: l,
2010
2010
  measure: c,
2011
2011
  strategy: u
2012
- } = o, h = M(e), f = m(), v = dt(f), d = K(function(x) {
2013
- x === void 0 && (x = []), !v.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
- }, [v]), b = M(null), g = mt((x) => {
2015
- if (f && !n)
2012
+ } = o, f = M(e), h = b(), m = dt(h), g = J(function(x) {
2013
+ x === void 0 && (x = []), !m.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
+ }, [m]), v = M(null), d = mt((x) => {
2015
+ if (h && !n)
2016
2016
  return Jn;
2017
- if (!x || x === Jn || h.current !== e || s != null) {
2017
+ if (!x || x === Jn || f.current !== e || s != null) {
2018
2018
  const w = /* @__PURE__ */ new Map();
2019
2019
  for (let S of e) {
2020
2020
  if (!S)
@@ -2023,21 +2023,21 @@ function ms(e, t) {
2023
2023
  w.set(S.id, S.rect.current);
2024
2024
  continue;
2025
2025
  }
2026
- const D = S.node.current, j = D ? new xn(c(D), D) : null;
2026
+ const C = S.node.current, j = C ? new xn(c(C), C) : null;
2027
2027
  S.rect.current = j, j && w.set(S.id, j);
2028
2028
  }
2029
2029
  return w;
2030
2030
  }
2031
2031
  return x;
2032
- }, [e, s, n, f, c]);
2032
+ }, [e, s, n, h, c]);
2033
2033
  return A(() => {
2034
- h.current = e;
2034
+ f.current = e;
2035
2035
  }, [e]), A(
2036
2036
  () => {
2037
- f || d();
2037
+ h || g();
2038
2038
  },
2039
2039
  // eslint-disable-next-line react-hooks/exhaustive-deps
2040
- [n, f]
2040
+ [n, h]
2041
2041
  ), A(
2042
2042
  () => {
2043
2043
  s && s.length > 0 && i(null);
@@ -2046,18 +2046,18 @@ function ms(e, t) {
2046
2046
  [JSON.stringify(s)]
2047
2047
  ), A(
2048
2048
  () => {
2049
- f || typeof l != "number" || b.current !== null || (b.current = setTimeout(() => {
2050
- d(), b.current = null;
2049
+ h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
2050
+ g(), v.current = null;
2051
2051
  }, l));
2052
2052
  },
2053
2053
  // eslint-disable-next-line react-hooks/exhaustive-deps
2054
- [l, f, d, ...r]
2054
+ [l, h, g, ...r]
2055
2055
  ), {
2056
- droppableRects: g,
2057
- measureDroppableContainers: d,
2056
+ droppableRects: d,
2057
+ measureDroppableContainers: g,
2058
2058
  measuringScheduled: s != null
2059
2059
  };
2060
- function m() {
2060
+ function b() {
2061
2061
  switch (u) {
2062
2062
  case ft.Always:
2063
2063
  return !1;
@@ -2113,7 +2113,7 @@ function ws(e) {
2113
2113
  }
2114
2114
  function Zn(e, t, n) {
2115
2115
  t === void 0 && (t = ws);
2116
- const [r, o] = Q(null);
2116
+ const [r, o] = K(null);
2117
2117
  function s() {
2118
2118
  o((c) => {
2119
2119
  if (!e)
@@ -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 h = t(e);
2126
- return JSON.stringify(c) === JSON.stringify(h) ? c : h;
2125
+ const f = t(e);
2126
+ return JSON.stringify(c) === JSON.stringify(f) ? c : f;
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: h,
2135
- target: f
2134
+ type: f,
2135
+ target: h
2136
2136
  } = u;
2137
- if (h === "childList" && f instanceof HTMLElement && f.contains(e)) {
2137
+ if (f === "childList" && h instanceof HTMLElement && h.contains(e)) {
2138
2138
  s();
2139
2139
  break;
2140
2140
  }
@@ -2162,7 +2162,7 @@ function Cs(e) {
2162
2162
  }, [e]), n;
2163
2163
  }
2164
2164
  function Rs(e) {
2165
- const [t, n] = Q(null), r = M(e), o = K((s) => {
2165
+ const [t, n] = K(null), r = M(e), o = J((s) => {
2166
2166
  const i = en(s.target);
2167
2167
  i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
2168
2168
  }, []);
@@ -2246,7 +2246,7 @@ function Or(e) {
2246
2246
  const tr = [];
2247
2247
  function js(e, t) {
2248
2248
  t === void 0 && (t = Ze);
2249
- const [n] = e, r = Or(n ? te(n) : null), [o, s] = Q(tr);
2249
+ const [n] = e, r = Or(n ? te(n) : null), [o, s] = K(tr);
2250
2250
  function i() {
2251
2251
  s(() => e.length ? e.map((c) => Cr(c) ? r : new xn(t(c), c)) : tr);
2252
2252
  }
@@ -2269,26 +2269,26 @@ function Os(e) {
2269
2269
  let {
2270
2270
  measure: t
2271
2271
  } = e;
2272
- const [n, r] = Q(null), o = K((u) => {
2272
+ const [n, r] = K(null), o = J((u) => {
2273
2273
  for (const {
2274
- target: h
2274
+ target: f
2275
2275
  } of u)
2276
- if (bt(h)) {
2277
- r((f) => {
2278
- const v = t(h);
2279
- return f ? {
2280
- ...f,
2281
- width: v.width,
2282
- height: v.height
2283
- } : v;
2276
+ if (bt(f)) {
2277
+ r((h) => {
2278
+ const m = t(f);
2279
+ return h ? {
2280
+ ...h,
2281
+ width: m.width,
2282
+ height: m.height
2283
+ } : m;
2284
2284
  });
2285
2285
  break;
2286
2286
  }
2287
2287
  }, [t]), s = Vt({
2288
2288
  callback: o
2289
- }), i = K((u) => {
2290
- const h = _s(u);
2291
- s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2289
+ }), i = J((u) => {
2290
+ const f = _s(u);
2291
+ s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
2292
2292
  }, [t, s]), [l, c] = kt(i);
2293
2293
  return N(() => ({
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 h of [c.current, u.current]) {
2514
- if (!h)
2513
+ for (const f of [c.current, u.current]) {
2514
+ if (!f)
2515
2515
  continue;
2516
- const f = Eo(h);
2517
- if (f) {
2518
- f.focus();
2516
+ const h = Eo(f);
2517
+ if (h) {
2518
+ h.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 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
- const v = yr(u);
2583
- v && v.scrollBy({
2584
- top: f.y,
2585
- left: f.x
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) {
2582
+ const m = yr(u);
2583
+ m && m.scrollBy({
2584
+ top: h.y,
2585
+ left: h.x
2586
2586
  });
2587
2587
  }
2588
2588
  }, [t, i, l, r, n]);
@@ -2603,13 +2603,13 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2603
2603
  accessibility: l,
2604
2604
  autoScroll: c = !0,
2605
2605
  children: u,
2606
- sensors: h = Ts,
2607
- collisionDetection: f = Ho,
2608
- measuring: v,
2609
- modifiers: d,
2610
- ...b
2606
+ sensors: f = Ts,
2607
+ collisionDetection: h = Ho,
2608
+ measuring: m,
2609
+ modifiers: g,
2610
+ ...v
2611
2611
  } = t;
2612
- const g = to(Ms, void 0, Ns), [m, x] = g, [w, S] = Ao(), [D, j] = Q(Me.Uninitialized), R = D === Me.Initialized, {
2612
+ const d = to(Ms, void 0, Ns), [b, x] = d, [w, S] = Ao(), [C, j] = K(Me.Uninitialized), D = C === Me.Initialized, {
2613
2613
  draggable: {
2614
2614
  active: E,
2615
2615
  nodes: _,
@@ -2618,7 +2618,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2618
2618
  droppable: {
2619
2619
  containers: F
2620
2620
  }
2621
- } = m, L = E != null ? _.get(E) : null, J = M({
2621
+ } = b, L = E != null ? _.get(E) : null, Z = M({
2622
2622
  initial: null,
2623
2623
  translated: null
2624
2624
  }), ee = N(() => {
@@ -2627,24 +2627,24 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2627
2627
  id: E,
2628
2628
  // It's possible for the active node to unmount while dragging
2629
2629
  data: (q = L?.data) != null ? q : Is,
2630
- rect: J
2630
+ rect: Z
2631
2631
  } : null;
2632
- }, [E, L]), le = M(null), [Re, $e] = Q(null), [G, Pe] = Q(null), ce = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), C = Ps(v), {
2632
+ }, [E, L]), le = M(null), [Re, $e] = K(null), [G, Pe] = K(null), ce = dt(v, Object.values(v)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), R = Ps(m), {
2633
2633
  droppableRects: O,
2634
2634
  measureDroppableContainers: k,
2635
2635
  measuringScheduled: ve
2636
2636
  } = ms(p, {
2637
- dragging: R,
2637
+ dragging: D,
2638
2638
  dependencies: [$.x, $.y],
2639
- config: C.droppable
2640
- }), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Z = Zr(), re = xs(X, C.draggable.measure);
2639
+ config: R.droppable
2640
+ }), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Q = Zr(), re = xs(X, R.draggable.measure);
2641
2641
  zs({
2642
2642
  activeNode: E != null ? _.get(E) : null,
2643
- config: Z.layoutShiftCompensation,
2643
+ config: Q.layoutShiftCompensation,
2644
2644
  initialRect: re,
2645
- measure: C.draggable.measure
2645
+ measure: R.draggable.measure
2646
2646
  });
2647
- const I = Zn(X, C.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
2647
+ const I = Zn(X, R.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
2648
2648
  activatorEvent: null,
2649
2649
  active: null,
2650
2650
  activeNode: X,
@@ -2659,8 +2659,8 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2659
2659
  scrollableAncestors: [],
2660
2660
  scrollAdjustedTranslate: null
2661
2661
  }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = Os({
2662
- measure: C.dragOverlay.measure
2663
- }), Ye = (r = De.nodeRef.current) != null ? r : X, He = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = Ss(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Cs(R ? Ve ?? X : null), yt = js(Te), wt = $s(d, {
2662
+ measure: R.dragOverlay.measure
2663
+ }), Ye = (r = De.nodeRef.current) != null ? r : X, He = D ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = Ss(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Cs(D ? Ve ?? X : null), yt = js(Te), wt = $s(g, {
2664
2664
  transform: {
2665
2665
  x: $.x - Dn.x,
2666
2666
  y: $.y - Dn.y,
@@ -2677,13 +2677,13 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2677
2677
  scrollableAncestors: Te,
2678
2678
  scrollableAncestorRects: yt,
2679
2679
  windowRect: Bt
2680
- }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ? f({
2680
+ }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ? h({
2681
2681
  active: ee,
2682
2682
  collisionRect: We,
2683
2683
  droppableRects: O,
2684
2684
  droppableContainers: p,
2685
2685
  pointerCoordinates: En
2686
- }) : null, _n = Vo(et, "id"), [Ie, On] = Q(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Bo(Gr, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = K(
2686
+ }) : null, _n = Vo(et, "id"), [Ie, On] = K(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Bo(Gr, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = J(
2687
2687
  (q, oe) => {
2688
2688
  let {
2689
2689
  sensor: se,
@@ -2745,7 +2745,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2745
2745
  active: {
2746
2746
  id: ke,
2747
2747
  data: xe.data,
2748
- rect: J
2748
+ rect: Z
2749
2749
  }
2750
2750
  };
2751
2751
  St(() => {
@@ -2808,7 +2808,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2808
2808
  },
2809
2809
  // eslint-disable-next-line react-hooks/exhaustive-deps
2810
2810
  [_]
2811
- ), qr = K((q, oe) => (se, Ae) => {
2811
+ ), qr = J((q, oe) => (se, Ae) => {
2812
2812
  const ue = se.nativeEvent, ie = _.get(Ae);
2813
2813
  if (
2814
2814
  // Another sensor is already instantiating
@@ -2823,10 +2823,10 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2823
2823
  q(se, oe.options, me) === !0 && (ue.dndKit = {
2824
2824
  capturedBy: oe.sensor
2825
2825
  }, le.current = Ae, Tn(se, oe));
2826
- }, [_, Tn]), In = bs(h, qr);
2827
- Ds(h), we(() => {
2828
- I && D === Me.Initializing && j(Me.Initialized);
2829
- }, [I, D]), A(
2826
+ }, [_, Tn]), In = bs(f, qr);
2827
+ Ds(f), we(() => {
2828
+ I && C === Me.Initializing && j(Me.Initialized);
2829
+ }, [I, C]), A(
2830
2830
  () => {
2831
2831
  const {
2832
2832
  onDragMove: q
@@ -2909,12 +2909,12 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2909
2909
  over: Ie,
2910
2910
  scrollableAncestors: Te,
2911
2911
  scrollAdjustedTranslate: Be
2912
- }, J.current = {
2912
+ }, Z.current = {
2913
2913
  initial: He,
2914
2914
  translated: We
2915
2915
  };
2916
2916
  }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), hs({
2917
- ...Z,
2917
+ ...Q,
2918
2918
  delta: $,
2919
2919
  draggingRect: We,
2920
2920
  pointerCoordinates: En,
@@ -2936,10 +2936,10 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2936
2936
  measureDroppableContainers: k,
2937
2937
  scrollableAncestors: Te,
2938
2938
  scrollableAncestorRects: yt,
2939
- measuringConfiguration: C,
2939
+ measuringConfiguration: R,
2940
2940
  measuringScheduled: ve,
2941
2941
  windowRect: Bt
2942
- }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Bt]), Jr = N(() => ({
2942
+ }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, R, ve, Bt]), Jr = N(() => ({
2943
2943
  activatorEvent: G,
2944
2944
  activators: In,
2945
2945
  active: ee,
@@ -2967,7 +2967,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
2967
2967
  hiddenTextDescribedById: Oe
2968
2968
  }));
2969
2969
  function Zr() {
2970
- const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = R && !q && !oe;
2970
+ const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = D && !q && !oe;
2971
2971
  return typeof c == "object" ? {
2972
2972
  ...c,
2973
2973
  enabled: se
@@ -2988,45 +2988,45 @@ function Ys(e) {
2988
2988
  activatorEvent: l,
2989
2989
  active: c,
2990
2990
  activeNodeRect: u,
2991
- ariaDescribedById: h,
2992
- draggableNodes: f,
2993
- over: v
2991
+ ariaDescribedById: f,
2992
+ draggableNodes: h,
2993
+ over: m
2994
2994
  } = ze(Yt), {
2995
- role: d = nr,
2996
- roleDescription: b = "draggable",
2997
- tabIndex: g = 0
2998
- } = o ?? {}, m = c?.id === t, x = ze(m ? Ir : Fs), [w, S] = kt(), [D, j] = kt(), R = Es(i, t), E = dt(n);
2995
+ role: g = nr,
2996
+ roleDescription: v = "draggable",
2997
+ tabIndex: d = 0
2998
+ } = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] = kt(), [C, j] = kt(), D = Es(i, t), E = dt(n);
2999
2999
  we(
3000
- () => (f.set(t, {
3000
+ () => (h.set(t, {
3001
3001
  id: t,
3002
3002
  key: s,
3003
3003
  node: w,
3004
- activatorNode: D,
3004
+ activatorNode: C,
3005
3005
  data: E
3006
3006
  }), () => {
3007
- const $ = f.get(t);
3008
- $ && $.key === s && f.delete(t);
3007
+ const $ = h.get(t);
3008
+ $ && $.key === s && h.delete(t);
3009
3009
  }),
3010
3010
  // eslint-disable-next-line react-hooks/exhaustive-deps
3011
- [f, t]
3011
+ [h, t]
3012
3012
  );
3013
3013
  const _ = N(() => ({
3014
- role: d,
3015
- tabIndex: g,
3014
+ role: g,
3015
+ tabIndex: d,
3016
3016
  "aria-disabled": r,
3017
- "aria-pressed": m && d === nr ? !0 : void 0,
3018
- "aria-roledescription": b,
3019
- "aria-describedby": h.draggable
3020
- }), [r, d, g, m, b, h.draggable]);
3017
+ "aria-pressed": b && g === nr ? !0 : void 0,
3018
+ "aria-roledescription": v,
3019
+ "aria-describedby": f.draggable
3020
+ }), [r, g, d, b, v, f.draggable]);
3021
3021
  return {
3022
3022
  active: c,
3023
3023
  activatorEvent: l,
3024
3024
  activeNodeRect: u,
3025
3025
  attributes: _,
3026
- isDragging: m,
3027
- listeners: r ? void 0 : R,
3026
+ isDragging: b,
3027
+ listeners: r ? void 0 : D,
3028
3028
  node: w,
3029
- over: v,
3029
+ over: m,
3030
3030
  setNodeRef: S,
3031
3031
  setActivatorNodeRef: j,
3032
3032
  transform: x
@@ -3050,35 +3050,35 @@ function Us(e) {
3050
3050
  dispatch: l,
3051
3051
  over: c,
3052
3052
  measureDroppableContainers: u
3053
- } = ze(Yt), h = M({
3053
+ } = ze(Yt), f = M({
3054
3054
  disabled: n
3055
- }), f = M(!1), v = M(null), d = M(null), {
3056
- disabled: b,
3057
- updateMeasurementsFor: g,
3058
- timeout: m
3055
+ }), h = M(!1), m = M(null), g = M(null), {
3056
+ disabled: v,
3057
+ updateMeasurementsFor: d,
3058
+ timeout: b
3059
3059
  } = {
3060
3060
  ...Ws,
3061
3061
  ...o
3062
- }, x = dt(g ?? r), w = K(
3062
+ }, x = dt(d ?? r), w = J(
3063
3063
  () => {
3064
- if (!f.current) {
3065
- f.current = !0;
3064
+ if (!h.current) {
3065
+ h.current = !0;
3066
3066
  return;
3067
3067
  }
3068
- d.current != null && clearTimeout(d.current), d.current = setTimeout(() => {
3069
- u(Array.isArray(x.current) ? x.current : [x.current]), d.current = null;
3070
- }, m);
3068
+ g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
3069
+ u(Array.isArray(x.current) ? x.current : [x.current]), g.current = null;
3070
+ }, b);
3071
3071
  },
3072
3072
  //eslint-disable-next-line react-hooks/exhaustive-deps
3073
- [m]
3073
+ [b]
3074
3074
  ), S = Vt({
3075
3075
  callback: w,
3076
- disabled: b || !i
3077
- }), D = K((_, $) => {
3078
- S && ($ && (S.unobserve($), f.current = !1), _ && S.observe(_));
3079
- }, [S]), [j, R] = kt(D), E = dt(t);
3076
+ disabled: v || !i
3077
+ }), C = J((_, $) => {
3078
+ S && ($ && (S.unobserve($), h.current = !1), _ && S.observe(_));
3079
+ }, [S]), [j, D] = kt(C), E = dt(t);
3080
3080
  return A(() => {
3081
- !S || !j.current || (S.disconnect(), f.current = !1, S.observe(j.current));
3081
+ !S || !j.current || (S.disconnect(), h.current = !1, S.observe(j.current));
3082
3082
  }, [j, S]), A(
3083
3083
  () => (l({
3084
3084
  type: Y.RegisterDroppable,
@@ -3087,7 +3087,7 @@ function Us(e) {
3087
3087
  key: s,
3088
3088
  disabled: n,
3089
3089
  node: j,
3090
- rect: v,
3090
+ rect: m,
3091
3091
  data: E
3092
3092
  }
3093
3093
  }), () => l({
@@ -3098,19 +3098,19 @@ function Us(e) {
3098
3098
  // eslint-disable-next-line react-hooks/exhaustive-deps
3099
3099
  [r]
3100
3100
  ), A(() => {
3101
- n !== h.current.disabled && (l({
3101
+ n !== f.current.disabled && (l({
3102
3102
  type: Y.SetDroppableDisabled,
3103
3103
  id: r,
3104
3104
  key: s,
3105
3105
  disabled: n
3106
- }), h.current.disabled = n);
3106
+ }), f.current.disabled = n);
3107
3107
  }, [r, s, n, l]), {
3108
3108
  active: i,
3109
- rect: v,
3109
+ rect: m,
3110
3110
  isOver: c?.id === r,
3111
3111
  node: j,
3112
3112
  over: c,
3113
- setNodeRef: R
3113
+ setNodeRef: D
3114
3114
  };
3115
3115
  }
3116
3116
  function Ht(e, t, n) {
@@ -3267,27 +3267,27 @@ function Lr(e) {
3267
3267
  dragOverlay: l,
3268
3268
  droppableRects: c,
3269
3269
  over: u,
3270
- measureDroppableContainers: h
3271
- } = Hs(), f = xt(Nr, n), v = l.rect !== null, d = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = M(d), w = !Xs(d, x.current), S = m !== -1 && g === -1 || w, D = qs(s);
3270
+ measureDroppableContainers: f
3271
+ } = Hs(), h = xt(Nr, n), m = l.rect !== null, g = N(() => 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 = M(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
3272
3272
  we(() => {
3273
- w && b && h(d);
3274
- }, [w, d, b, h]), A(() => {
3275
- x.current = d;
3276
- }, [d]);
3273
+ w && v && f(g);
3274
+ }, [w, g, v, f]), A(() => {
3275
+ x.current = g;
3276
+ }, [g]);
3277
3277
  const j = N(
3278
3278
  () => ({
3279
- activeIndex: g,
3280
- containerId: f,
3281
- disabled: D,
3279
+ activeIndex: d,
3280
+ containerId: h,
3281
+ disabled: C,
3282
3282
  disableTransforms: S,
3283
- items: d,
3284
- overIndex: m,
3285
- useDragOverlay: v,
3286
- sortedRects: Gs(d, c),
3283
+ items: g,
3284
+ overIndex: b,
3285
+ useDragOverlay: m,
3286
+ sortedRects: Gs(g, c),
3287
3287
  strategy: o
3288
3288
  }),
3289
3289
  // eslint-disable-next-line react-hooks/exhaustive-deps
3290
- [g, f, D.draggable, D.droppable, S, d, m, c, v, o]
3290
+ [d, h, C.draggable, C.droppable, S, g, b, c, m, o]
3291
3291
  );
3292
3292
  return H.createElement(Mr.Provider, {
3293
3293
  value: j
@@ -3331,20 +3331,20 @@ function si(e) {
3331
3331
  node: r,
3332
3332
  rect: o
3333
3333
  } = e;
3334
- const [s, i] = Q(null), l = M(n);
3334
+ const [s, i] = K(null), l = M(n);
3335
3335
  return we(() => {
3336
3336
  if (!t && n !== l.current && r.current) {
3337
3337
  const c = o.current;
3338
3338
  if (c) {
3339
3339
  const u = Ze(r.current, {
3340
3340
  ignoreTransform: !0
3341
- }), h = {
3341
+ }), f = {
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
- (h.x || h.y) && i(h);
3347
+ (f.x || f.y) && i(f);
3348
3348
  }
3349
3349
  }
3350
3350
  n !== l.current && (l.current = n);
@@ -3365,23 +3365,23 @@ function Pr(e) {
3365
3365
  transition: u = ni
3366
3366
  } = e;
3367
3367
  const {
3368
- items: h,
3369
- containerId: f,
3370
- activeIndex: v,
3371
- disabled: d,
3372
- disableTransforms: b,
3373
- sortedRects: g,
3374
- overIndex: m,
3368
+ items: f,
3369
+ containerId: h,
3370
+ activeIndex: m,
3371
+ disabled: g,
3372
+ disableTransforms: v,
3373
+ sortedRects: d,
3374
+ overIndex: b,
3375
3375
  useDragOverlay: x,
3376
3376
  strategy: w
3377
- } = ze(Mr), S = ii(r, d), D = h.indexOf(i), j = N(() => ({
3377
+ } = ze(Mr), S = ii(r, g), C = f.indexOf(i), j = N(() => ({
3378
3378
  sortable: {
3379
- containerId: f,
3380
- index: D,
3381
- items: h
3379
+ containerId: h,
3380
+ index: C,
3381
+ items: f
3382
3382
  },
3383
3383
  ...o
3384
- }), [f, o, D, h]), R = N(() => h.slice(h.indexOf(i)), [h, i]), {
3384
+ }), [h, o, C, f]), D = N(() => f.slice(f.indexOf(i)), [f, i]), {
3385
3385
  rect: E,
3386
3386
  node: _,
3387
3387
  isOver: $,
@@ -3391,12 +3391,12 @@ function Pr(e) {
3391
3391
  data: j,
3392
3392
  disabled: S.droppable,
3393
3393
  resizeObserverConfig: {
3394
- updateMeasurementsFor: R,
3394
+ updateMeasurementsFor: D,
3395
3395
  ...c
3396
3396
  }
3397
3397
  }), {
3398
3398
  active: L,
3399
- activatorEvent: J,
3399
+ activatorEvent: Z,
3400
3400
  activeNodeRect: ee,
3401
3401
  attributes: le,
3402
3402
  setNodeRef: Re,
@@ -3413,30 +3413,30 @@ function Pr(e) {
3413
3413
  ...n
3414
3414
  },
3415
3415
  disabled: S.draggable
3416
- }), p = So(F, Re), C = !!L, O = C && !b && jt(v) && jt(m), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3417
- rects: g,
3416
+ }), p = So(F, Re), R = !!L, O = R && !v && jt(m) && jt(b), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3417
+ rects: d,
3418
3418
  activeNodeRect: ee,
3419
- activeIndex: v,
3420
- overIndex: m,
3421
- index: D
3422
- }) : null, Z = jt(v) && jt(m) ? s({
3419
+ activeIndex: m,
3420
+ overIndex: b,
3421
+ index: C
3422
+ }) : null, Q = jt(m) && jt(b) ? s({
3423
3423
  id: i,
3424
- items: h,
3425
- activeIndex: v,
3426
- overIndex: m
3427
- }) : D, re = L?.id, I = M({
3424
+ items: f,
3425
+ activeIndex: m,
3426
+ overIndex: b
3427
+ }) : C, re = L?.id, I = M({
3428
3428
  activeId: re,
3429
- items: h,
3430
- newIndex: Z,
3431
- containerId: f
3432
- }), Qe = h !== I.current.items, be = t({
3429
+ items: f,
3430
+ newIndex: Q,
3431
+ containerId: h
3432
+ }), Qe = f !== I.current.items, be = t({
3433
3433
  active: L,
3434
- containerId: f,
3434
+ containerId: h,
3435
3435
  isDragging: G,
3436
- isSorting: C,
3436
+ isSorting: R,
3437
3437
  id: i,
3438
- index: D,
3439
- items: h,
3438
+ index: C,
3439
+ items: f,
3440
3440
  newIndex: I.current.newIndex,
3441
3441
  previousItems: I.current.items,
3442
3442
  previousContainerId: I.current.containerId,
@@ -3444,13 +3444,13 @@ function Pr(e) {
3444
3444
  wasDragging: I.current.activeId != null
3445
3445
  }), Ve = si({
3446
3446
  disabled: !be,
3447
- index: D,
3447
+ index: C,
3448
3448
  node: _,
3449
3449
  rect: E
3450
3450
  });
3451
3451
  return A(() => {
3452
- C && I.current.newIndex !== Z && (I.current.newIndex = Z), f !== I.current.containerId && (I.current.containerId = f), h !== I.current.items && (I.current.items = h);
3453
- }, [C, Z, f, h]), 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(() => {
3454
3454
  if (re === I.current.activeId)
3455
3455
  return;
3456
3456
  if (re != null && I.current.activeId == null) {
@@ -3463,19 +3463,19 @@ function Pr(e) {
3463
3463
  return () => clearTimeout(Ye);
3464
3464
  }, [re]), {
3465
3465
  active: L,
3466
- activeIndex: v,
3466
+ activeIndex: m,
3467
3467
  attributes: le,
3468
3468
  data: j,
3469
3469
  rect: E,
3470
- index: D,
3471
- newIndex: Z,
3472
- items: h,
3470
+ index: C,
3471
+ newIndex: Q,
3472
+ items: f,
3473
3473
  isOver: $,
3474
- isSorting: C,
3474
+ isSorting: R,
3475
3475
  isDragging: G,
3476
3476
  listeners: $e,
3477
3477
  node: _,
3478
- overIndex: m,
3478
+ overIndex: b,
3479
3479
  over: Pe,
3480
3480
  setNodeRef: p,
3481
3481
  setActivatorNodeRef: ce,
@@ -3488,10 +3488,10 @@ function Pr(e) {
3488
3488
  if (
3489
3489
  // Temporarily disable transitions for a single frame to set up derived transforms
3490
3490
  Ve || // Or to prevent items jumping to back to their "new" position when items change
3491
- Qe && I.current.newIndex === D
3491
+ Qe && I.current.newIndex === C
3492
3492
  )
3493
3493
  return ri;
3494
- if (!(k && !bn(J) || !u) && (C || be))
3494
+ if (!(k && !bn(Z) || !u) && (R || be))
3495
3495
  return qe.Transition.toString({
3496
3496
  ...u,
3497
3497
  property: $r
@@ -3556,7 +3556,7 @@ const di = hn(
3556
3556
  ...l
3557
3557
  },
3558
3558
  [
3559
- ...i.map(([u, h]) => sn(u, h)),
3559
+ ...i.map(([u, f]) => sn(u, f)),
3560
3560
  ...Array.isArray(s) ? s : [s]
3561
3561
  ]
3562
3562
  )
@@ -3711,7 +3711,7 @@ function Vi(e, t) {
3711
3711
  ...c,
3712
3712
  data: e,
3713
3713
  columnOrder: l,
3714
- visibility: l.reduce((u, h) => (u[h.id] = !0, u), {}),
3714
+ visibility: l.reduce((u, f) => (u[f.id] = !0, u), {}),
3715
3715
  sortableColumns: l.map((u) => ({
3716
3716
  id: u.id,
3717
3717
  label: u.label,
@@ -3748,7 +3748,7 @@ function Ji({
3748
3748
  borderRight: o,
3749
3749
  borderRightColor: s
3750
3750
  }) {
3751
- const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: h } = Pr({ id: e });
3751
+ const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: f } = Pr({ id: e });
3752
3752
  return /* @__PURE__ */ a.jsx(
3753
3753
  ye.ColumnHeader,
3754
3754
  {
@@ -3757,7 +3757,7 @@ function Ji({
3757
3757
  w: e === "id" ? "80px" : void 0,
3758
3758
  style: {
3759
3759
  transform: qe.Transform.toString(u),
3760
- transition: h,
3760
+ transition: f,
3761
3761
  cursor: r,
3762
3762
  borderRight: o,
3763
3763
  borderRightColor: s
@@ -3774,8 +3774,8 @@ function Zi() {
3774
3774
  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) => {
3775
3775
  const { active: c, over: u } = l;
3776
3776
  if (!u || c.id === u.id) return;
3777
- const h = e.findIndex((d) => d.id === c.id), f = e.findIndex((d) => d.id === u.id), v = Ht(e, h, f);
3778
- Pi(v);
3777
+ const f = e.findIndex((g) => g.id === c.id), h = e.findIndex((g) => g.id === u.id), m = Ht(e, f, h);
3778
+ Pi(m);
3779
3779
  };
3780
3780
  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(
3781
3781
  Lr,
@@ -3914,7 +3914,7 @@ function pa({
3914
3914
  ] }) })
3915
3915
  ] }, o.id)) });
3916
3916
  }
3917
- function Sl({
3917
+ function Cl({
3918
3918
  tableId: e,
3919
3919
  data: t = [],
3920
3920
  headers: n = [],
@@ -3925,34 +3925,34 @@ function Sl({
3925
3925
  pageSize: l = 10,
3926
3926
  onPageChange: c,
3927
3927
  onPageSizeChange: u,
3928
- density: h = "sm",
3929
- totalCount: f = 0,
3930
- paginationMode: v = "client"
3928
+ density: f = "sm",
3929
+ totalCount: h = 0,
3930
+ paginationMode: m = "client"
3931
3931
  }) {
3932
3932
  A(() => {
3933
3933
  Yi(e);
3934
3934
  }, [e]), A(() => {
3935
3935
  Vi(t, n);
3936
3936
  }, [t, n]);
3937
- const { sortColumn: d, sortDirection: b, data: g } = vt(fe), m = N(() => {
3938
- const x = [...g];
3939
- if (d && x.sort(
3940
- (w, S) => b === "asc" ? String(w[d]).localeCompare(String(S[d])) : String(S[d]).localeCompare(String(w[d]))
3941
- ), v === "client") {
3937
+ const { sortColumn: g, sortDirection: v, data: d } = vt(fe), b = N(() => {
3938
+ const x = [...d];
3939
+ if (g && x.sort(
3940
+ (w, S) => v === "asc" ? String(w[g]).localeCompare(String(S[g])) : String(S[g]).localeCompare(String(w[g]))
3941
+ ), m === "client") {
3942
3942
  const w = i * l;
3943
3943
  return x.slice(w, w + l);
3944
3944
  }
3945
3945
  return x;
3946
- }, [g, d, b, i, l, v]);
3946
+ }, [d, g, v, i, l, m]);
3947
3947
  return /* @__PURE__ */ a.jsxs(Ge, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3948
- /* @__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..." }) : m.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: [
3948
+ /* @__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: [
3949
3949
  /* @__PURE__ */ a.jsx(Zi, {}),
3950
- /* @__PURE__ */ a.jsx(pa, { data: m, actions: s })
3950
+ /* @__PURE__ */ a.jsx(pa, { data: b, actions: s })
3951
3951
  ] }) }),
3952
3952
  /* @__PURE__ */ a.jsx(Ge, { mt: 0.5, children: /* @__PURE__ */ a.jsx(
3953
3953
  ua,
3954
3954
  {
3955
- totalCount: f,
3955
+ totalCount: h,
3956
3956
  pageSize: l,
3957
3957
  currentPage: i,
3958
3958
  onPageChange: c,
@@ -4054,79 +4054,79 @@ function _a({
4054
4054
  onChange: t,
4055
4055
  disabled: n = !1
4056
4056
  }) {
4057
- const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = Q(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = Q(!1), u = M(null);
4057
+ const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = K(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = K(!1), u = M(null);
4058
4058
  A(() => {
4059
- const b = (g) => {
4060
- g.ctrlKey && g.key === "d" && !g.shiftKey && !g.metaKey && (g.preventDefault(), u.current?.focus());
4059
+ const v = (d) => {
4060
+ d.ctrlKey && d.key === "d" && !d.shiftKey && !d.metaKey && (d.preventDefault(), u.current?.focus());
4061
4061
  };
4062
- return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
4062
+ return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
4063
4063
  }, []);
4064
- const h = (b) => {
4065
- let g = b;
4066
- if (g.includes(V)) {
4067
- const [m, x = ""] = g.split(V);
4068
- g = `${at(m.trim())}${V}${at(
4064
+ const f = (v) => {
4065
+ let d = v;
4066
+ if (d.includes(V)) {
4067
+ const [b, x = ""] = d.split(V);
4068
+ d = `${at(b.trim())}${V}${at(
4069
4069
  x.trim()
4070
4070
  )}`;
4071
- } else if (g.toLowerCase().includes(" to ")) {
4072
- const [m, x = ""] = g.split(/\s+to\s+/i);
4073
- g = `${at(m.trim())} to ${at(x.trim())}`;
4071
+ } else if (d.toLowerCase().includes(" to ")) {
4072
+ const [b, x = ""] = d.split(/\s+to\s+/i);
4073
+ d = `${at(b.trim())} to ${at(x.trim())}`;
4074
4074
  } else
4075
- g = at(g);
4076
- i(g);
4077
- }, f = () => {
4078
- const b = s.trim();
4079
- if (!b) {
4075
+ d = at(d);
4076
+ i(d);
4077
+ }, h = () => {
4078
+ const v = s.trim();
4079
+ if (!v) {
4080
4080
  t(void 0);
4081
4081
  return;
4082
4082
  }
4083
- if (b.includes(V)) {
4084
- const [g, m = ""] = b.split(V).map((S) => S.trim()), x = it(g), w = m ? it(m) : null;
4083
+ if (v.includes(V)) {
4084
+ const [d, b = ""] = v.split(V).map((S) => S.trim()), x = it(d), w = b ? it(b) : null;
4085
4085
  if (x && w) {
4086
- const [S, D] = w < x ? [w, x] : [x, w], j = `${he(S)}${V}${he(
4087
- D
4086
+ const [S, C] = w < x ? [w, x] : [x, w], j = `${he(S)}${V}${he(
4087
+ C
4088
4088
  )}`;
4089
- i(j), t(`${S}|${D}`);
4090
- } else if (x && !m)
4089
+ i(j), t(`${S}|${C}`);
4090
+ } else if (x && !b)
4091
4091
  i(`${he(x)}${V}`), t(void 0);
4092
- else if (x && m) {
4093
- const S = wa(), [D, j] = S < x ? [S, x] : [x, S], R = `${he(D)}${V}${he(
4092
+ else if (x && b) {
4093
+ const S = wa(), [C, j] = S < x ? [S, x] : [x, S], D = `${he(C)}${V}${he(
4094
4094
  j
4095
4095
  )}`;
4096
- i(R), t(`${D}|${j}`);
4096
+ i(D), t(`${C}|${j}`);
4097
4097
  } else
4098
4098
  i(""), t(void 0);
4099
4099
  } else {
4100
- const g = it(b);
4101
- g ? (i(`${he(g)}${V}`), t(void 0)) : (i(""), t(void 0));
4100
+ const d = it(v);
4101
+ d ? (i(`${he(d)}${V}`), t(void 0)) : (i(""), t(void 0));
4102
4102
  }
4103
- }, v = (b) => {
4104
- if (b.key !== "Enter") return;
4105
- b.preventDefault();
4106
- const g = u.current?.selectionStart || 0, m = s.indexOf(V);
4103
+ }, m = (v) => {
4104
+ if (v.key !== "Enter") return;
4105
+ v.preventDefault();
4106
+ const d = u.current?.selectionStart || 0, b = s.indexOf(V);
4107
4107
  if (!s.trim()) {
4108
4108
  i(`${ar()}${V}`);
4109
4109
  return;
4110
4110
  }
4111
- if (m === -1) {
4111
+ if (b === -1) {
4112
4112
  const w = it(s.trim());
4113
4113
  w && i(`${he(w)}${V}`);
4114
4114
  return;
4115
4115
  }
4116
- if (g <= m + V.length) {
4117
- const w = s.substring(0, m).trim(), S = s.substring(m + V.length), D = it(w);
4118
- D && i(`${he(D)}${V}${S}`);
4116
+ if (d <= b + V.length) {
4117
+ const w = s.substring(0, b).trim(), S = s.substring(b + V.length), C = it(w);
4118
+ C && i(`${he(C)}${V}${S}`);
4119
4119
  return;
4120
4120
  }
4121
- if (s.substring(m + V.length).trim())
4122
- f(), u.current?.blur();
4121
+ if (s.substring(b + V.length).trim())
4122
+ h(), u.current?.blur();
4123
4123
  else {
4124
- const w = s.substring(0, m + V.length) + ar();
4124
+ const w = s.substring(0, b + V.length) + ar();
4125
4125
  i(w), setTimeout(() => {
4126
- f(), u.current?.blur();
4126
+ h(), u.current?.blur();
4127
4127
  }, 0);
4128
4128
  }
4129
- }, d = () => {
4129
+ }, g = () => {
4130
4130
  i(""), t(void 0);
4131
4131
  };
4132
4132
  return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(An, { position: "revert", children: [
@@ -4144,7 +4144,7 @@ function _a({
4144
4144
  size: "sm",
4145
4145
  variant: "ghost",
4146
4146
  "aria-label": "Date range help",
4147
- onClick: () => c((b) => !b),
4147
+ onClick: () => c((v) => !v),
4148
4148
  children: /* @__PURE__ */ a.jsx(or, { size: 16 })
4149
4149
  }
4150
4150
  ) }),
@@ -4191,9 +4191,9 @@ function _a({
4191
4191
  value: s,
4192
4192
  size: "sm",
4193
4193
  disabled: n,
4194
- onChange: (b) => h(b.target.value),
4195
- onBlur: f,
4196
- onKeyDown: v,
4194
+ onChange: (v) => f(v.target.value),
4195
+ onBlur: h,
4196
+ onKeyDown: m,
4197
4197
  pr: s ? "10" : void 0,
4198
4198
  w: "100%"
4199
4199
  }
@@ -4204,15 +4204,13 @@ function _a({
4204
4204
  size: "sm",
4205
4205
  variant: "ghost",
4206
4206
  "aria-label": "Clear date range",
4207
- onClick: d,
4207
+ onClick: g,
4208
4208
  w: "100%"
4209
4209
  }
4210
4210
  ) })
4211
4211
  ] }) }) });
4212
4212
  }
4213
- const Oa = y(Fe.Root);
4214
- y(Fe.Label);
4215
- const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4213
+ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorText), lr = ({
4216
4214
  icon: e,
4217
4215
  value: t,
4218
4216
  onChange: n,
@@ -4223,69 +4221,72 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4223
4221
  label: l,
4224
4222
  helperText: c,
4225
4223
  isDisabled: u = !1,
4226
- required: h = !1,
4227
- errorText: f
4224
+ required: f = !1,
4225
+ errorText: h,
4226
+ visible: m
4228
4227
  }) => /* @__PURE__ */ a.jsxs(Oa, { width: i, children: [
4228
+ m && /* @__PURE__ */ a.jsx(Ta, { children: l }),
4229
4229
  /* @__PURE__ */ a.jsx(ur, { startElement: e, children: /* @__PURE__ */ a.jsx(
4230
4230
  dr,
4231
4231
  {
4232
4232
  value: t,
4233
- onChange: (v) => n?.(v.target.value),
4233
+ onChange: (g) => n?.(g.target.value),
4234
4234
  placeholder: r,
4235
4235
  size: o,
4236
4236
  variant: s,
4237
4237
  disabled: u,
4238
- required: h
4238
+ required: f
4239
4239
  }
4240
4240
  ) }),
4241
- f && /* @__PURE__ */ a.jsx(Ia, { fontSize: "xs", children: f }),
4242
- c && /* @__PURE__ */ a.jsx(Ta, { fontSize: "xs", children: c })
4243
- ] }), Aa = y(Fe.Root), ka = y(Fe.HelperText), Na = y(Fe.ErrorText), Ma = y(z.Root), La = y(z.Label), $a = y(z.Control), Pa = y(z.Trigger), za = y(z.ValueText), Fa = y(z.IndicatorGroup), Va = y(z.Indicator), Ya = y(z.Content), Ha = y(z.Item), Ba = y(z.ItemIndicator), Wa = y(z.HiddenSelect), Ua = y(z.Positioner), Ga = ({
4241
+ h && /* @__PURE__ */ a.jsx(Aa, { fontSize: "xs", children: h }),
4242
+ c && /* @__PURE__ */ a.jsx(Ia, { fontSize: "xs", children: c })
4243
+ ] }), ka = y(Fe.Root), Na = y(Fe.HelperText), Ma = y(Fe.ErrorText), La = y(z.Root), $a = y(z.Label), Pa = y(z.Control), za = y(z.Trigger), Fa = y(z.ValueText), Va = y(z.IndicatorGroup), Ya = y(z.Indicator), Ha = y(z.Content), Ba = y(z.Item), Wa = y(z.ItemIndicator), Ua = y(z.HiddenSelect), Ga = y(z.Positioner), Xa = ({
4244
4244
  options: e = [],
4245
4245
  label: t,
4246
4246
  value: n,
4247
4247
  onChange: r,
4248
4248
  placeholder: o,
4249
- size: s = "sm",
4249
+ size: s = "xs",
4250
4250
  width: i = "100%",
4251
4251
  variant: l = "outline",
4252
4252
  helperText: c,
4253
4253
  isDisabled: u,
4254
- required: h,
4255
- errorText: f
4254
+ required: f,
4255
+ errorText: h,
4256
+ visible: m
4256
4257
  }) => {
4257
- const v = cr({
4258
+ const g = cr({
4258
4259
  items: e
4259
4260
  });
4260
- return /* @__PURE__ */ a.jsxs(Aa, { disabled: u, required: h, children: [
4261
+ return /* @__PURE__ */ a.jsxs(ka, { disabled: u, required: f, children: [
4261
4262
  /* @__PURE__ */ a.jsxs(
4262
- Ma,
4263
+ La,
4263
4264
  {
4264
- collection: v,
4265
+ collection: g,
4265
4266
  variant: l,
4266
4267
  size: s,
4267
4268
  width: i,
4268
4269
  value: n ? [n] : [],
4269
- onValueChange: (d) => r?.(d.value[0]),
4270
+ onValueChange: (v) => r?.(v.value[0]),
4270
4271
  children: [
4271
- /* @__PURE__ */ a.jsx(Wa, {}),
4272
- t && /* @__PURE__ */ a.jsx(La, { children: t }),
4273
- /* @__PURE__ */ a.jsxs($a, { children: [
4274
- /* @__PURE__ */ a.jsx(Pa, { children: /* @__PURE__ */ a.jsx(za, { placeholder: o }) }),
4275
- /* @__PURE__ */ a.jsx(Fa, { children: /* @__PURE__ */ a.jsx(Va, {}) })
4272
+ /* @__PURE__ */ a.jsx(Ua, {}),
4273
+ m && /* @__PURE__ */ a.jsx($a, { children: t }),
4274
+ /* @__PURE__ */ a.jsxs(Pa, { children: [
4275
+ /* @__PURE__ */ a.jsx(za, { children: /* @__PURE__ */ a.jsx(Fa, { placeholder: o }) }),
4276
+ /* @__PURE__ */ a.jsx(Va, { children: /* @__PURE__ */ a.jsx(Ya, {}) })
4276
4277
  ] }),
4277
- /* @__PURE__ */ a.jsx(Ua, { children: /* @__PURE__ */ a.jsx(Ya, { children: v.items.map((d) => /* @__PURE__ */ a.jsxs(Ha, { item: d, children: [
4278
- d.label,
4279
- /* @__PURE__ */ a.jsx(Ba, {})
4280
- ] }, d.value)) }) })
4278
+ /* @__PURE__ */ a.jsx(Ga, { children: /* @__PURE__ */ a.jsx(Ha, { children: g.items.map((v) => /* @__PURE__ */ a.jsxs(Ba, { item: v, children: [
4279
+ v.label,
4280
+ /* @__PURE__ */ a.jsx(Wa, {})
4281
+ ] }, v.value)) }) })
4281
4282
  ]
4282
4283
  }
4283
4284
  ),
4284
- c && /* @__PURE__ */ a.jsx(ka, { children: c }),
4285
- f && /* @__PURE__ */ a.jsx(Na, { children: f })
4285
+ c && /* @__PURE__ */ a.jsx(Na, { children: c }),
4286
+ h && /* @__PURE__ */ a.jsx(Ma, { children: h })
4286
4287
  ] });
4287
4288
  }, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4288
- function Xa(e) {
4289
+ function qa(e) {
4289
4290
  try {
4290
4291
  return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
4291
4292
  } catch {
@@ -4295,7 +4296,7 @@ function Xa(e) {
4295
4296
  const $t = new gr({}), Cn = (e) => {
4296
4297
  const t = $t.state[e];
4297
4298
  if (t) return t;
4298
- const n = Xa(e);
4299
+ const n = qa(e);
4299
4300
  return $t.setState((r) => ({
4300
4301
  ...r,
4301
4302
  [e]: n
@@ -4305,13 +4306,13 @@ const $t = new gr({}), Cn = (e) => {
4305
4306
  ...n,
4306
4307
  [e]: t
4307
4308
  })), localStorage.setItem(Yr(e), JSON.stringify(t));
4308
- }, qa = (e, t) => {
4309
+ }, Ka = (e, t) => {
4309
4310
  const n = Cn(e).filter((r) => r.id !== t);
4310
4311
  Hr(e, n);
4311
- }, Ka = (e, t) => {
4312
+ }, Ja = (e, t) => {
4312
4313
  const n = [t, ...Cn(e)];
4313
4314
  Hr(e, n);
4314
- }, Ja = y(pe.Root), Za = y(pe.HiddenInput), Qa = y(pe.Control), el = y(pt.Root), tl = y(pt.Track), nl = y(pt.Range), rl = y(pt.Thumbs), ol = y(pt.Control), sl = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4315
+ }, Za = y(pe.Root), Qa = y(pe.HiddenInput), el = y(pe.Control), tl = y(pt.Root), nl = y(pt.Track), rl = y(pt.Range), ol = y(pt.Thumbs), sl = y(pt.Control), il = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4315
4316
  const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
4316
4317
  id: e.id
4317
4318
  }), c = {
@@ -4338,14 +4339,14 @@ const $t = new gr({}), Cn = (e) => {
4338
4339
  /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
4339
4340
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
4340
4341
  /* @__PURE__ */ a.jsxs(
4341
- Ja,
4342
+ Za,
4342
4343
  {
4343
4344
  checked: e.visible,
4344
4345
  size: "sm",
4345
4346
  onCheckedChange: (u) => t?.(e.id, !!u.checked),
4346
4347
  children: [
4347
- /* @__PURE__ */ a.jsx(Za, {}),
4348
- /* @__PURE__ */ a.jsx(Qa, {})
4348
+ /* @__PURE__ */ a.jsx(Qa, {}),
4349
+ /* @__PURE__ */ a.jsx(el, {})
4349
4350
  ]
4350
4351
  }
4351
4352
  )
@@ -4353,16 +4354,16 @@ const $t = new gr({}), Cn = (e) => {
4353
4354
  /* @__PURE__ */ a.jsxs(je, { align: "stretch", gap: 1, children: [
4354
4355
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
4355
4356
  /* @__PURE__ */ a.jsx(
4356
- el,
4357
+ tl,
4357
4358
  {
4358
4359
  min: 1,
4359
4360
  max: 5,
4360
4361
  step: 0.5,
4361
4362
  value: [e.size ?? 1],
4362
4363
  onValueChange: (u) => n?.(e.id, u.value[0]),
4363
- children: /* @__PURE__ */ a.jsxs(ol, { children: [
4364
- /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(nl, {}) }),
4365
- /* @__PURE__ */ a.jsx(rl, {})
4364
+ children: /* @__PURE__ */ a.jsxs(sl, { children: [
4365
+ /* @__PURE__ */ a.jsx(nl, { children: /* @__PURE__ */ a.jsx(rl, {}) }),
4366
+ /* @__PURE__ */ a.jsx(ol, {})
4366
4367
  ] })
4367
4368
  }
4368
4369
  )
@@ -4370,7 +4371,7 @@ const $t = new gr({}), Cn = (e) => {
4370
4371
  ]
4371
4372
  }
4372
4373
  );
4373
- }, il = y(Ce.Root), al = y(Ce.Trigger), ll = y(Ce.Backdrop), cl = y(Ce.Positioner), ul = y(Ce.Content), dl = y(Ce.Header), fl = y(Ce.Title), hl = y(Ce.Body), gl = y(Ce.Footer), pl = y(Ce.CloseTrigger), vl = y(zt.Root), bl = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e) => {
4374
+ }, al = y(Ce.Root), ll = y(Ce.Trigger), cl = y(Ce.Backdrop), ul = y(Ce.Positioner), dl = y(Ce.Content), fl = y(Ce.Header), hl = y(Ce.Title), gl = y(Ce.Body), pl = y(Ce.Footer), vl = y(Ce.CloseTrigger), bl = y(zt.Root), ml = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e, t) => {
4374
4375
  if (e.customComponent)
4375
4376
  return e.customComponent;
4376
4377
  switch (e.type) {
@@ -4381,7 +4382,8 @@ const $t = new gr({}), Cn = (e) => {
4381
4382
  placeholder: e.label,
4382
4383
  value: e.value,
4383
4384
  onChange: e.onChange,
4384
- label: ""
4385
+ label: e.label,
4386
+ visible: t
4385
4387
  }
4386
4388
  );
4387
4389
  case "number":
@@ -4397,12 +4399,13 @@ const $t = new gr({}), Cn = (e) => {
4397
4399
  );
4398
4400
  case "select":
4399
4401
  return /* @__PURE__ */ a.jsx(
4400
- Ga,
4402
+ Xa,
4401
4403
  {
4402
4404
  label: e.label,
4403
4405
  value: e.value,
4404
4406
  onChange: e.onChange,
4405
- options: e.options ?? []
4407
+ options: e.options ?? [],
4408
+ visible: t
4406
4409
  }
4407
4410
  );
4408
4411
  case "date":
@@ -4416,7 +4419,7 @@ const $t = new gr({}), Cn = (e) => {
4416
4419
  default:
4417
4420
  return null;
4418
4421
  }
4419
- }, ml = ({
4422
+ }, xl = ({
4420
4423
  filterDrawerSize: e = "sm",
4421
4424
  onVisibilityChange: t,
4422
4425
  onSizeChange: n,
@@ -4426,28 +4429,30 @@ const $t = new gr({}), Cn = (e) => {
4426
4429
  currentFilters: i = {},
4427
4430
  onLoadPreset: l,
4428
4431
  activePresetName: c,
4429
- onReorder: u
4432
+ onReorder: u,
4433
+ open: f,
4434
+ onOpenChange: h
4430
4435
  }) => {
4431
- const f = vt($t)[s] ?? Cn(s), v = () => {
4436
+ const g = vt($t)[s] ?? Cn(s), v = () => {
4432
4437
  const d = prompt("Preset name?");
4433
- d && Ka(s, {
4438
+ d && Ja(s, {
4434
4439
  id: crypto.randomUUID(),
4435
4440
  name: d,
4436
4441
  date: (/* @__PURE__ */ new Date()).toISOString(),
4437
4442
  filters: i
4438
4443
  });
4439
4444
  };
4440
- return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(il, { size: e, children: [
4441
- /* @__PURE__ */ a.jsx(al, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4445
+ return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(al, { size: e, open: f, onOpenChange: h, children: [
4446
+ /* @__PURE__ */ a.jsx(ll, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4442
4447
  /* @__PURE__ */ a.jsx(Ai, { size: 16 }),
4443
4448
  "Filters"
4444
4449
  ] }) }),
4445
4450
  /* @__PURE__ */ a.jsxs(gt, { children: [
4446
- /* @__PURE__ */ a.jsx(ll, {}),
4447
- /* @__PURE__ */ a.jsx(cl, { children: /* @__PURE__ */ a.jsxs(ul, { children: [
4448
- /* @__PURE__ */ a.jsx(dl, { children: /* @__PURE__ */ a.jsx(fl, { children: "Filters" }) }),
4449
- /* @__PURE__ */ a.jsx(hl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(vl, { defaultValue: "view", children: [
4450
- /* @__PURE__ */ a.jsxs(bl, { mb: 4, children: [
4451
+ /* @__PURE__ */ a.jsx(cl, {}),
4452
+ /* @__PURE__ */ a.jsx(ul, { children: /* @__PURE__ */ a.jsxs(dl, { children: [
4453
+ /* @__PURE__ */ a.jsx(fl, { children: /* @__PURE__ */ a.jsx(hl, { children: "Filters" }) }),
4454
+ /* @__PURE__ */ a.jsx(gl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(bl, { defaultValue: "view", children: [
4455
+ /* @__PURE__ */ a.jsxs(ml, { mb: 4, children: [
4451
4456
  /* @__PURE__ */ a.jsxs(rn, { value: "view", children: [
4452
4457
  /* @__PURE__ */ a.jsx(Mi, { size: 16 }),
4453
4458
  "Edit"
@@ -4472,7 +4477,7 @@ const $t = new gr({}), Cn = (e) => {
4472
4477
  rounded: "md",
4473
4478
  p: 3,
4474
4479
  mb: 3,
4475
- children: Br(d)
4480
+ children: Br(d, f)
4476
4481
  },
4477
4482
  d.id
4478
4483
  )) }),
@@ -4483,8 +4488,8 @@ const $t = new gr({}), Cn = (e) => {
4483
4488
  collisionDetection: mr,
4484
4489
  onDragEnd: ({ active: d, over: b }) => {
4485
4490
  if (!b || d.id === b.id) return;
4486
- const g = o.findIndex((w) => w.id === d.id), m = o.findIndex((w) => w.id === b.id), x = Ht(o, g, m);
4487
- u?.(x);
4491
+ const x = o.findIndex((C) => C.id === d.id), w = o.findIndex((C) => C.id === b.id), S = Ht(o, x, w);
4492
+ u?.(S);
4488
4493
  },
4489
4494
  children: /* @__PURE__ */ a.jsx(
4490
4495
  Lr,
@@ -4492,7 +4497,7 @@ const $t = new gr({}), Cn = (e) => {
4492
4497
  items: o.map((d) => d.id),
4493
4498
  strategy: Zs,
4494
4499
  children: o.map((d) => /* @__PURE__ */ a.jsx(
4495
- sl,
4500
+ il,
4496
4501
  {
4497
4502
  filter: d,
4498
4503
  onVisibilityChange: t,
@@ -4506,8 +4511,8 @@ const $t = new gr({}), Cn = (e) => {
4506
4511
  ) }),
4507
4512
  /* @__PURE__ */ a.jsx(on, { value: "presets", children: /* @__PURE__ */ a.jsxs(je, { align: "stretch", mb: 3, children: [
4508
4513
  /* @__PURE__ */ a.jsx(Gt, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4509
- f.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4510
- f.map((d) => /* @__PURE__ */ a.jsxs(
4514
+ g.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4515
+ g.map((d) => /* @__PURE__ */ a.jsxs(
4511
4516
  ae,
4512
4517
  {
4513
4518
  justify: "space-between",
@@ -4536,7 +4541,7 @@ const $t = new gr({}), Cn = (e) => {
4536
4541
  size: "xs",
4537
4542
  "aria-label": "Delete preset",
4538
4543
  variant: "ghost",
4539
- onClick: () => qa(s, d.id),
4544
+ onClick: () => Ka(s, d.id),
4540
4545
  children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
4541
4546
  }
4542
4547
  )
@@ -4547,7 +4552,7 @@ const $t = new gr({}), Cn = (e) => {
4547
4552
  ))
4548
4553
  ] }) })
4549
4554
  ] }) }),
4550
- /* @__PURE__ */ a.jsxs(gl, { justify: "space-between", children: [
4555
+ /* @__PURE__ */ a.jsxs(pl, { justify: "space-between", children: [
4551
4556
  /* @__PURE__ */ a.jsx(
4552
4557
  Gt,
4553
4558
  {
@@ -4558,12 +4563,12 @@ const $t = new gr({}), Cn = (e) => {
4558
4563
  children: "Clear All"
4559
4564
  }
4560
4565
  ),
4561
- /* @__PURE__ */ a.jsx(pl, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
4566
+ /* @__PURE__ */ a.jsx(vl, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
4562
4567
  ] })
4563
4568
  ] }) })
4564
4569
  ] })
4565
4570
  ] }) });
4566
- }, Cl = ({
4571
+ }, Rl = ({
4567
4572
  title: e,
4568
4573
  filters: t,
4569
4574
  onVisibilityChange: n,
@@ -4574,59 +4579,66 @@ const $t = new gr({}), Cn = (e) => {
4574
4579
  pageKey: l,
4575
4580
  currentFilters: c,
4576
4581
  onLoadPreset: u,
4577
- activePresetName: h,
4578
- filterDrawerSize: f = "sm"
4579
- }) => /* @__PURE__ */ a.jsxs(ae, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4580
- e,
4581
- /* @__PURE__ */ a.jsxs(ae, { gapX: 1, children: [
4582
- t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
4583
- ae,
4584
- {
4585
- flex: v.size ?? 1,
4586
- minW: `${(v.size ?? 1) * 100}px`,
4587
- alignItems: "center",
4588
- children: Br(v)
4589
- },
4590
- v.id
4591
- )),
4592
- /* @__PURE__ */ a.jsx(
4593
- ml,
4594
- {
4595
- filterDrawerSize: f,
4596
- onVisibilityChange: n,
4597
- onReorder: r,
4598
- onSizeChange: o,
4599
- onClear: s,
4600
- maxToolbarUnits: i,
4601
- pageKey: l,
4602
- filters: t,
4603
- currentFilters: c,
4604
- onLoadPreset: u,
4605
- activePresetName: h
4606
- }
4607
- )
4608
- ] })
4609
- ] }), Rl = (e, t) => {
4582
+ activePresetName: f,
4583
+ filterDrawerSize: h = "sm"
4584
+ }) => {
4585
+ const [m, g] = K(!1);
4586
+ return /* @__PURE__ */ a.jsxs(ae, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4587
+ e,
4588
+ /* @__PURE__ */ a.jsxs(ae, { gapX: 1, children: [
4589
+ t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
4590
+ ae,
4591
+ {
4592
+ flex: v.size ?? 1,
4593
+ minW: `${(v.size ?? 1) * 100}px`,
4594
+ alignItems: "center",
4595
+ children: Br(v)
4596
+ },
4597
+ v.id
4598
+ )),
4599
+ /* @__PURE__ */ a.jsx(
4600
+ xl,
4601
+ {
4602
+ filterDrawerSize: h,
4603
+ onVisibilityChange: n,
4604
+ onReorder: r,
4605
+ onSizeChange: o,
4606
+ onClear: s,
4607
+ maxToolbarUnits: i,
4608
+ pageKey: l,
4609
+ filters: t,
4610
+ currentFilters: c,
4611
+ onLoadPreset: u,
4612
+ activePresetName: f,
4613
+ open: m,
4614
+ onOpenChange: (v) => {
4615
+ g(v.open);
4616
+ }
4617
+ }
4618
+ )
4619
+ ] })
4620
+ ] });
4621
+ }, Dl = (e, t) => {
4610
4622
  localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4611
- }, Dl = (e) => {
4623
+ }, El = (e) => {
4612
4624
  try {
4613
4625
  return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
4614
4626
  } catch {
4615
4627
  return [];
4616
4628
  }
4617
- }, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4629
+ }, jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4618
4630
  __proto__: null
4619
4631
  }, Symbol.toStringTag, { value: "Module" }));
4620
4632
  export {
4621
- Sl as DataTable,
4622
- Cl as Filters,
4623
- El as MdsSharedUi,
4624
- Ka as addPreset,
4625
- qa as deletePreset,
4633
+ Cl as DataTable,
4634
+ Rl as Filters,
4635
+ jl as MdsSharedUi,
4636
+ Ja as addPreset,
4637
+ Ka as deletePreset,
4626
4638
  Cn as getPresets,
4627
- Dl as loadOrder,
4639
+ El as loadOrder,
4628
4640
  $t as presetStore,
4629
- Rl as saveOrder,
4641
+ Dl as saveOrder,
4630
4642
  Hr as savePresets,
4631
4643
  Vi as setData,
4632
4644
  Yi as setTableId,