@mateosuarezdev/react-ui 1.0.56 → 1.0.58

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
@@ -9,19 +9,19 @@
9
9
  */
10
10
 
11
11
  import { jsx as d, jsxs as v, Fragment as vt } from "react/jsx-runtime";
12
- import Ae, { useRef as $, useEffect as H, useState as I, useSyncExternalStore as Tr, useLayoutEffect as Cn, useId as Sn, useCallback as A, forwardRef as De, useContext as wt, useMemo as te, memo as Cr, createContext as Bt } from "react";
13
- import { createPortal as Mn } from "react-dom";
14
- import { clsx as Sr } from "clsx";
15
- import { twMerge as Mr } from "tailwind-merge";
12
+ import Ae, { useRef as $, useEffect as H, useState as I, useSyncExternalStore as Tr, useLayoutEffect as Cn, useId as Mn, useCallback as A, forwardRef as De, useContext as wt, useMemo as te, memo as Cr, createContext as Bt } from "react";
13
+ import { createPortal as Sn } from "react-dom";
14
+ import { clsx as Mr } from "clsx";
15
+ import { twMerge as Sr } from "tailwind-merge";
16
16
  import { atom as Dr } from "@mateosuarezdev/atoms";
17
17
  import { ChevronLeft as Dn, ChevronRight as Pn, CalendarDays as On, Clock as Ln, Check as Fn, Minus as Pr, DollarSign as Or, CheckIcon as Xe, EyeOffIcon as Lr, Eye as Fr, XIcon as Ar, ChevronDownIcon as Wr, Search as _r, X as yt, ChevronDown as Yr, Plus as An, XCircle as Rr, TriangleAlert as Ir, CheckCircle as jr, Info as zr, ArrowRight as Hr } from "lucide-react";
18
18
  import { AnimatePresence as Ie, motion as ne, useTransform as rn, cancelFrame as re, frame as ct, animate as Ft } from "framer-motion";
19
- import { useSearchParams as Br, navigate as ke, useInitialChangeEvent as Vr } from "@mateosuarezdev/react-router";
19
+ import { useSearchParams as Br, navigate as Ee, useInitialChangeEvent as Vr } from "@mateosuarezdev/react-router";
20
20
  import { appendErrors as Wn, FormProvider as Xr, useForm as qr, useFormContext as Qe, Controller as Je } from "react-hook-form";
21
21
  import { validateFieldsNatively as on, toNestErrors as an } from "@hookform/resolvers";
22
22
  import { createGesture as _n } from "@mateosuarezdev/gestures";
23
23
  import { EventEmitter as Kr } from "@mateosuarezdev/event-emitter";
24
- const N = (...e) => Mr(Sr(e));
24
+ const N = (...e) => Sr(Mr(e));
25
25
  function Ze(e, t = 100) {
26
26
  let n = null, r = null;
27
27
  return function(...o) {
@@ -169,7 +169,7 @@ const lt = (e) => {
169
169
  window.removeEventListener("resize", c), f && f.disconnect(), m && i && m.removeEventListener("scroll", c);
170
170
  };
171
171
  }, [n, ...r]), { ref: o, overflowInfo: s };
172
- }, St = {
172
+ }, Mt = {
173
173
  xs: "w-8 h-8",
174
174
  sm: "w-10 h-10 text-lg",
175
175
  md: "w-14 h-14 text-xl",
@@ -185,14 +185,14 @@ const lt = (e) => {
185
185
  {
186
186
  alt: "avatar",
187
187
  src: e,
188
- className: N("rounded-full bg-base-3", St[n])
188
+ className: N("rounded-full bg-base-3", Mt[n])
189
189
  }
190
190
  ) : t ? /* @__PURE__ */ d(
191
191
  "p",
192
192
  {
193
193
  className: N(
194
194
  "rounded-full font-medium dark-theme:bg-base-3 border border-base-6 dark-theme:border-base-4 flex items-center justify-center",
195
- St[n],
195
+ Mt[n],
196
196
  r
197
197
  ),
198
198
  children: Ur(t)
@@ -204,7 +204,7 @@ const lt = (e) => {
204
204
  "rounded-full text-2xl font-medium flex items-center justify-center",
205
205
  "bg-base-2 dark-theme:bg-base-3 border border-base-4",
206
206
  "lg:hover:bg-base-3 max-lg:active:bg-base-4 transition-colors",
207
- St[n],
207
+ Mt[n],
208
208
  r
209
209
  ),
210
210
  children: /* @__PURE__ */ v(
@@ -309,11 +309,11 @@ function eo(e) {
309
309
  const Wt = Dr(
310
310
  typeof window < "u" ? window.innerWidth > 1024 : !0
311
311
  );
312
- let Mt = !1;
312
+ let St = !1;
313
313
  const sn = Ze(() => {
314
314
  Wt.set(window.innerWidth > 1024);
315
315
  });
316
- typeof window < "u" && (Mt && (window.removeEventListener("resize", sn), Mt = !1), window.addEventListener("resize", sn), Mt = !0);
316
+ typeof window < "u" && (St && (window.removeEventListener("resize", sn), St = !1), window.addEventListener("resize", sn), St = !0);
317
317
  const xt = () => (Cn(() => {
318
318
  Wt.set(window.innerWidth > 1024);
319
319
  }, []), eo(Wt));
@@ -328,14 +328,14 @@ function Xi({
328
328
  return H(() => {
329
329
  const f = s.current;
330
330
  if (!f) return;
331
- function m(C, M, P, y) {
332
- const E = C - P, F = M - y;
333
- return Math.sqrt(E * E + F * F);
331
+ function m(C, S, P, y) {
332
+ const k = C - P, F = S - y;
333
+ return Math.sqrt(k * k + F * F);
334
334
  }
335
335
  function b(C) {
336
336
  if (C.touches.length !== 1) return;
337
- const M = C.touches[0];
338
- i.current = { x: M.clientX, y: M.clientY }, l.current = !1, c.current = !0, setTimeout(() => {
337
+ const S = C.touches[0];
338
+ i.current = { x: S.clientX, y: S.clientY }, l.current = !1, c.current = !0, setTimeout(() => {
339
339
  c.current && (a.current = setTimeout(() => {
340
340
  c.current && (l.current = !0, e?.(C));
341
341
  }, n));
@@ -343,10 +343,10 @@ function Xi({
343
343
  }
344
344
  function h(C) {
345
345
  if (C.touches.length !== 1) return;
346
- const M = C.touches[0];
346
+ const S = C.touches[0];
347
347
  m(
348
- M.clientX,
349
- M.clientY,
348
+ S.clientX,
349
+ S.clientY,
350
350
  i.current.x,
351
351
  i.current.y
352
352
  ) > o && (c.current = !1, clearTimeout(a.current));
@@ -357,14 +357,14 @@ function Xi({
357
357
  function w(C) {
358
358
  C.button === 0 && (u.current = !0);
359
359
  }
360
- function k(C) {
360
+ function E(C) {
361
361
  C.button !== 0 || !u.current || (u.current = !1, t?.(C));
362
362
  }
363
- function S(C) {
363
+ function M(C) {
364
364
  C.preventDefault();
365
365
  }
366
- return f.addEventListener("touchstart", b), f.addEventListener("touchmove", h), f.addEventListener("touchend", g), f.addEventListener("mousedown", w), f.addEventListener("mouseup", k), f.addEventListener("contextmenu", S), () => {
367
- clearTimeout(a.current), f.removeEventListener("touchstart", b), f.removeEventListener("touchmove", h), f.removeEventListener("touchend", g), f.removeEventListener("mousedown", w), f.removeEventListener("mouseup", k), f.removeEventListener("contextmenu", S);
366
+ return f.addEventListener("touchstart", b), f.addEventListener("touchmove", h), f.addEventListener("touchend", g), f.addEventListener("mousedown", w), f.addEventListener("mouseup", E), f.addEventListener("contextmenu", M), () => {
367
+ clearTimeout(a.current), f.removeEventListener("touchstart", b), f.removeEventListener("touchmove", h), f.removeEventListener("touchend", g), f.removeEventListener("mousedown", w), f.removeEventListener("mouseup", E), f.removeEventListener("contextmenu", M);
368
368
  };
369
369
  }, [e, t, n, r, o]), s;
370
370
  }
@@ -411,13 +411,13 @@ const qi = () => {
411
411
  y: 0,
412
412
  width: 0,
413
413
  height: 0
414
- }), w = $(null), k = Sn(), S = A(
414
+ }), w = $(null), E = Mn(), M = A(
415
415
  (y) => {
416
- const E = y ?? g.current;
417
- if (!E) return { x: 0, top: 0, bottom: void 0 };
416
+ const k = y ?? g.current;
417
+ if (!k) return { x: 0, top: 0, bottom: void 0 };
418
418
  const F = f.width, Y = f.height;
419
419
  return to({
420
- triggerRect: E,
420
+ triggerRect: k,
421
421
  popoverWidth: F,
422
422
  popoverHeight: Y,
423
423
  align: t,
@@ -446,7 +446,7 @@ const qi = () => {
446
446
  width: h.current.offsetWidth,
447
447
  height: h.current.offsetHeight
448
448
  });
449
- }, M = A(() => {
449
+ }, S = A(() => {
450
450
  if (!b.current) return;
451
451
  const y = b.current.getBoundingClientRect();
452
452
  g.current = {
@@ -458,14 +458,14 @@ const qi = () => {
458
458
  y: y.y,
459
459
  width: y.width,
460
460
  height: y.height
461
- }, u((E) => (E ? l?.() : i?.(), !E));
461
+ }, u((k) => (k ? l?.() : i?.(), !k));
462
462
  }, []), P = A(() => {
463
463
  u(!1), l?.();
464
464
  }, []);
465
465
  return {
466
466
  triggerRef: b,
467
467
  triggerProps: {
468
- id: k,
468
+ id: E,
469
469
  "aria-expanded": c,
470
470
  "aria-haspopup": !0
471
471
  },
@@ -474,9 +474,9 @@ const qi = () => {
474
474
  /**
475
475
  * Call this sync before rendering the popover
476
476
  */
477
- getPopoverPosition: S,
477
+ getPopoverPosition: M,
478
478
  open: c,
479
- toggle: M,
479
+ toggle: S,
480
480
  close: P
481
481
  };
482
482
  }, to = ({
@@ -516,8 +516,8 @@ const qi = () => {
516
516
  else if (r === "end")
517
517
  c = e.right - t, c < a && (g >= t ? c = e.left : c = a);
518
518
  else {
519
- const k = e.left + e.width / 2 - t / 2;
520
- k >= a && k + t <= l.width - a ? c = k : k < a ? c = a : c = l.width - t - a;
519
+ const E = e.left + e.width / 2 - t / 2;
520
+ E >= a && E + t <= l.width - a ? c = E : E < a ? c = a : c = l.width - t - a;
521
521
  }
522
522
  } else {
523
523
  const b = e.top, h = l.height - e.bottom;
@@ -528,8 +528,8 @@ const qi = () => {
528
528
  else if (r === "end")
529
529
  c = e.right - t, c < a && (g >= t ? c = e.left : c = a);
530
530
  else {
531
- const k = e.left + e.width / 2 - t / 2;
532
- k >= a && k + t <= l.width - a ? c = k : k < a ? c = a : c = l.width - t - a;
531
+ const E = e.left + e.width / 2 - t / 2;
532
+ E >= a && E + t <= l.width - a ? c = E : E < a ? c = a : c = l.width - t - a;
533
533
  }
534
534
  }
535
535
  c = Math.max(
@@ -643,20 +643,20 @@ const qi = () => {
643
643
  type: m = "button",
644
644
  ...b
645
645
  }, h) => {
646
- const [g, w] = I(!1), k = (P) => {
646
+ const [g, w] = I(!1), E = (P) => {
647
647
  o === "enabled" && (f ? (w(!0), s && s(P), setTimeout(() => w(!1), 1e3)) : s && s(P));
648
- }, { ref: S, ripple: C } = no(
648
+ }, { ref: M, ripple: C } = no(
649
649
  l,
650
650
  e === "contrast" || c
651
- ), M = Rn(S, h);
651
+ ), S = Rn(M, h);
652
652
  return /* @__PURE__ */ d(
653
653
  "button",
654
654
  {
655
- ref: M,
655
+ ref: S,
656
656
  type: m,
657
657
  disabled: b.disabled ? b.disabled : o === "disabled" || o === "loading",
658
658
  onMouseDown: C,
659
- onClick: (P) => g ? null : k(P),
659
+ onClick: (P) => g ? null : E(P),
660
660
  className: N(
661
661
  ro,
662
662
  oo[t],
@@ -729,7 +729,7 @@ function ln(e) {
729
729
  );
730
730
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
731
731
  }
732
- function Et(e, ...t) {
732
+ function kt(e, ...t) {
733
733
  const n = ce.bind(
734
734
  null,
735
735
  t.find((r) => typeof r == "object")
@@ -741,7 +741,7 @@ function dt(e, t) {
741
741
  return n.setHours(0, 0, 0, 0), n;
742
742
  }
743
743
  function mo(e, t, n) {
744
- const [r, o] = Et(
744
+ const [r, o] = kt(
745
745
  n?.in,
746
746
  e,
747
747
  t
@@ -753,7 +753,7 @@ function ho(e, t) {
753
753
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), ut(r);
754
754
  }
755
755
  function Dt(e, t, n) {
756
- const [r, o] = Et(
756
+ const [r, o] = kt(
757
757
  n?.in,
758
758
  e,
759
759
  t
@@ -771,7 +771,7 @@ function go(e, t) {
771
771
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
772
772
  }
773
773
  function vo(e, t) {
774
- const [n, r] = Et(e, t.start, t.end);
774
+ const [n, r] = kt(e, t.start, t.end);
775
775
  return { start: n, end: r };
776
776
  }
777
777
  function wo(e, t) {
@@ -855,7 +855,7 @@ const No = {
855
855
  one: "almost 1 year",
856
856
  other: "almost {{count}} years"
857
857
  }
858
- }, Eo = (e, t, n) => {
858
+ }, ko = (e, t, n) => {
859
859
  let r;
860
860
  const o = No[e];
861
861
  return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
@@ -866,7 +866,7 @@ function We(e) {
866
866
  return e.formats[n] || e.formats[e.defaultWidth];
867
867
  };
868
868
  }
869
- const ko = {
869
+ const Eo = {
870
870
  full: "EEEE, MMMM do, y",
871
871
  long: "MMMM do, y",
872
872
  medium: "MMM d, y",
@@ -883,7 +883,7 @@ const ko = {
883
883
  short: "{{date}}, {{time}}"
884
884
  }, Co = {
885
885
  date: We({
886
- formats: ko,
886
+ formats: Eo,
887
887
  defaultWidth: "full"
888
888
  }),
889
889
  time: We({
@@ -894,14 +894,14 @@ const ko = {
894
894
  formats: To,
895
895
  defaultWidth: "full"
896
896
  })
897
- }, So = {
897
+ }, Mo = {
898
898
  lastWeek: "'last' eeee 'at' p",
899
899
  yesterday: "'yesterday at' p",
900
900
  today: "'today at' p",
901
901
  tomorrow: "'tomorrow at' p",
902
902
  nextWeek: "eeee 'at' p",
903
903
  other: "P"
904
- }, Mo = (e, t, n, r) => So[e];
904
+ }, So = (e, t, n, r) => Mo[e];
905
905
  function de(e) {
906
906
  return (t, n) => {
907
907
  const r = n?.context ? String(n.context) : "standalone";
@@ -1214,9 +1214,9 @@ const Io = /^(\d+)(th|st|nd|rd)?/i, jo = /\d+/i, zo = {
1214
1214
  })
1215
1215
  }, Hn = {
1216
1216
  code: "en-US",
1217
- formatDistance: Eo,
1217
+ formatDistance: ko,
1218
1218
  formatLong: Co,
1219
- formatRelative: Mo,
1219
+ formatRelative: So,
1220
1220
  localize: _o,
1221
1221
  match: Jo,
1222
1222
  options: {
@@ -1794,7 +1794,7 @@ const ve = {
1794
1794
  // so this token always has the same output as `XX`
1795
1795
  case "XXXX":
1796
1796
  case "XX":
1797
- return Ee(r);
1797
+ return ke(r);
1798
1798
  // Hours, minutes and optional seconds with `:` delimiter
1799
1799
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1800
1800
  // so this token always has the same output as `XXX`
@@ -1802,7 +1802,7 @@ const ve = {
1802
1802
  case "XXX":
1803
1803
  // Hours and minutes with `:` delimiter
1804
1804
  default:
1805
- return Ee(r, ":");
1805
+ return ke(r, ":");
1806
1806
  }
1807
1807
  },
1808
1808
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1817,7 +1817,7 @@ const ve = {
1817
1817
  // so this token always has the same output as `xx`
1818
1818
  case "xxxx":
1819
1819
  case "xx":
1820
- return Ee(r);
1820
+ return ke(r);
1821
1821
  // Hours, minutes and optional seconds with `:` delimiter
1822
1822
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1823
1823
  // so this token always has the same output as `xxx`
@@ -1825,7 +1825,7 @@ const ve = {
1825
1825
  case "xxx":
1826
1826
  // Hours and minutes with `:` delimiter
1827
1827
  default:
1828
- return Ee(r, ":");
1828
+ return ke(r, ":");
1829
1829
  }
1830
1830
  },
1831
1831
  // Timezone (GMT)
@@ -1840,7 +1840,7 @@ const ve = {
1840
1840
  // Long
1841
1841
  case "OOOO":
1842
1842
  default:
1843
- return "GMT" + Ee(r, ":");
1843
+ return "GMT" + ke(r, ":");
1844
1844
  }
1845
1845
  },
1846
1846
  // Timezone (specific non-location)
@@ -1855,7 +1855,7 @@ const ve = {
1855
1855
  // Long
1856
1856
  case "zzzz":
1857
1857
  default:
1858
- return "GMT" + Ee(r, ":");
1858
+ return "GMT" + ke(r, ":");
1859
1859
  }
1860
1860
  },
1861
1861
  // Seconds timestamp
@@ -1873,9 +1873,9 @@ function dn(e, t = "") {
1873
1873
  return s === 0 ? n + String(o) : n + String(o) + t + z(s, 2);
1874
1874
  }
1875
1875
  function fn(e, t) {
1876
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + z(Math.abs(e) / 60, 2) : Ee(e, t);
1876
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + z(Math.abs(e) / 60, 2) : ke(e, t);
1877
1877
  }
1878
- function Ee(e, t = "") {
1878
+ function ke(e, t = "") {
1879
1879
  const n = e > 0 ? "-" : "+", r = Math.abs(e), o = z(Math.trunc(r / 60), 2), s = z(r % 60, 2);
1880
1880
  return n + o + t + s;
1881
1881
  }
@@ -1987,7 +1987,7 @@ function ga(e) {
1987
1987
  return t ? t[1].replace(ba, "'") : e;
1988
1988
  }
1989
1989
  function hn(e, t, n) {
1990
- const [r, o] = Et(
1990
+ const [r, o] = kt(
1991
1991
  n?.in,
1992
1992
  e,
1993
1993
  t
@@ -2078,7 +2078,7 @@ const va = {
2078
2078
  long: "{{date}} 'a las' {{time}}",
2079
2079
  medium: "{{date}}, {{time}}",
2080
2080
  short: "{{date}}, {{time}}"
2081
- }, Ea = {
2081
+ }, ka = {
2082
2082
  date: We({
2083
2083
  formats: ya,
2084
2084
  defaultWidth: "full"
@@ -2091,7 +2091,7 @@ const va = {
2091
2091
  formats: Na,
2092
2092
  defaultWidth: "full"
2093
2093
  })
2094
- }, ka = {
2094
+ }, Ea = {
2095
2095
  lastWeek: "'el' eeee 'pasado a la' p",
2096
2096
  yesterday: "'ayer a la' p",
2097
2097
  today: "'hoy a la' p",
@@ -2105,15 +2105,15 @@ const va = {
2105
2105
  tomorrow: "'mañana a las' p",
2106
2106
  nextWeek: "eeee 'a las' p",
2107
2107
  other: "P"
2108
- }, Ta = (e, t, n, r) => t.getHours() !== 1 ? $a[e] : ka[e], Ca = {
2108
+ }, Ta = (e, t, n, r) => t.getHours() !== 1 ? $a[e] : Ea[e], Ca = {
2109
2109
  narrow: ["AC", "DC"],
2110
2110
  abbreviated: ["AC", "DC"],
2111
2111
  wide: ["antes de cristo", "después de cristo"]
2112
- }, Sa = {
2112
+ }, Ma = {
2113
2113
  narrow: ["1", "2", "3", "4"],
2114
2114
  abbreviated: ["T1", "T2", "T3", "T4"],
2115
2115
  wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
2116
- }, Ma = {
2116
+ }, Sa = {
2117
2117
  narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
2118
2118
  abbreviated: [
2119
2119
  "ene",
@@ -2225,12 +2225,12 @@ const va = {
2225
2225
  defaultWidth: "wide"
2226
2226
  }),
2227
2227
  quarter: de({
2228
- values: Sa,
2228
+ values: Ma,
2229
2229
  defaultWidth: "wide",
2230
2230
  argumentCallback: (e) => Number(e) - 1
2231
2231
  }),
2232
2232
  month: de({
2233
- values: Ma,
2233
+ values: Sa,
2234
2234
  defaultWidth: "wide"
2235
2235
  }),
2236
2236
  day: de({
@@ -2356,7 +2356,7 @@ const va = {
2356
2356
  }, Ke = {
2357
2357
  code: "es",
2358
2358
  formatDistance: wa,
2359
- formatLong: Ea,
2359
+ formatLong: ka,
2360
2360
  formatRelative: Ta,
2361
2361
  localize: Fa,
2362
2362
  match: qa,
@@ -2376,11 +2376,11 @@ function Ua(e) {
2376
2376
  return Ka(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
2377
2377
  }
2378
2378
  let Ga = !1;
2379
- function kt() {
2379
+ function Et() {
2380
2380
  return Ga;
2381
2381
  }
2382
2382
  function bn(e, t) {
2383
- if (!kt()) return t && e ? e.contains(t) : !1;
2383
+ if (!Et()) return t && e ? e.contains(t) : !1;
2384
2384
  if (!e || !t) return !1;
2385
2385
  let n = t;
2386
2386
  for (; n !== null; ) {
@@ -2391,13 +2391,13 @@ function bn(e, t) {
2391
2391
  }
2392
2392
  const ie = (e = document) => {
2393
2393
  var t;
2394
- if (!kt()) return e.activeElement;
2394
+ if (!Et()) return e.activeElement;
2395
2395
  let n = e.activeElement;
2396
2396
  for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
2397
2397
  return n;
2398
2398
  };
2399
2399
  function Fe(e) {
2400
- return kt() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
2400
+ return Et() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
2401
2401
  }
2402
2402
  class Qa {
2403
2403
  get currentNode() {
@@ -2521,7 +2521,7 @@ class Qa {
2521
2521
  }
2522
2522
  }
2523
2523
  function Ja(e, t, n, r) {
2524
- return kt() ? new Qa(e, t, n, r) : e.createTreeWalker(t, n, r);
2524
+ return Et() ? new Qa(e, t, n, r) : e.createTreeWalker(t, n, r);
2525
2525
  }
2526
2526
  function pn(e) {
2527
2527
  if (Za()) e.focus({
@@ -2692,7 +2692,7 @@ function Kn(e) {
2692
2692
  }
2693
2693
  return !1;
2694
2694
  }
2695
- let bs = !1, et = null, ps = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map(), Se = !1, Yt = !1;
2695
+ let bs = !1, et = null, ps = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map(), Me = !1, Yt = !1;
2696
2696
  function Qt(e, t) {
2697
2697
  for (let n of ps) n(e, t);
2698
2698
  }
@@ -2700,26 +2700,26 @@ function gs(e) {
2700
2700
  return !(e.metaKey || !Kt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
2701
2701
  }
2702
2702
  function mt(e) {
2703
- Se = !0, gs(e) && (et = "keyboard", Qt("keyboard", e));
2703
+ Me = !0, gs(e) && (et = "keyboard", Qt("keyboard", e));
2704
2704
  }
2705
2705
  function oe(e) {
2706
- et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Se = !0, Qt("pointer", e));
2706
+ et = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Me = !0, Qt("pointer", e));
2707
2707
  }
2708
2708
  function Un(e) {
2709
- is(e) && (Se = !0, et = "virtual");
2709
+ is(e) && (Me = !0, et = "virtual");
2710
2710
  }
2711
2711
  function Gn(e) {
2712
- e.target === window || e.target === document || bs || !e.isTrusted || (!Se && !Yt && (et = "virtual", Qt("virtual", e)), Se = !1, Yt = !1);
2712
+ e.target === window || e.target === document || bs || !e.isTrusted || (!Me && !Yt && (et = "virtual", Qt("virtual", e)), Me = !1, Yt = !1);
2713
2713
  }
2714
2714
  function Qn() {
2715
- Se = !1, Yt = !0;
2715
+ Me = !1, Yt = !0;
2716
2716
  }
2717
2717
  function vn(e) {
2718
2718
  if (typeof window > "u" || typeof document > "u" || Ve.get(ft(e))) return;
2719
2719
  const t = ft(e), n = G(e);
2720
2720
  let r = t.HTMLElement.prototype.focus;
2721
2721
  t.HTMLElement.prototype.focus = function() {
2722
- Se = !0, r.apply(this, arguments);
2722
+ Me = !0, r.apply(this, arguments);
2723
2723
  }, n.addEventListener("keydown", mt, !0), n.addEventListener("keyup", mt, !0), n.addEventListener("click", Un, !0), t.addEventListener("focus", Gn, !0), t.addEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", oe, !0), n.addEventListener("pointermove", oe, !0), n.addEventListener("pointerup", oe, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", oe, !0), n.addEventListener("mousemove", oe, !0), n.addEventListener("mouseup", oe, !0)), t.addEventListener("beforeunload", () => {
2724
2724
  Jn(e);
2725
2725
  }, {
@@ -2785,7 +2785,7 @@ function ys(e) {
2785
2785
  };
2786
2786
  }, [
2787
2787
  t
2788
- ]), $s(i, r, n), Es(i, n), Ts(i, r, n), ks(i, o), H(() => {
2788
+ ]), $s(i, r, n), ks(i, n), Ts(i, r, n), Es(i, o), H(() => {
2789
2789
  const m = ie(G(i.current ? i.current[0] : void 0));
2790
2790
  let b = null;
2791
2791
  if (ae(m, i.current)) {
@@ -2890,7 +2890,7 @@ function Ns(e) {
2890
2890
  }
2891
2891
  return t ? !t.some((s) => s.checked) : !1;
2892
2892
  }
2893
- function Es(e, t) {
2893
+ function ks(e, t) {
2894
2894
  let n = $(void 0), r = $(void 0);
2895
2895
  me(() => {
2896
2896
  let o = e.current;
@@ -2981,7 +2981,7 @@ function tr(e, t = !0) {
2981
2981
  function It(e, t = !0) {
2982
2982
  be(tr(e, t));
2983
2983
  }
2984
- function ks(e, t) {
2984
+ function Es(e, t) {
2985
2985
  const n = Ae.useRef(t);
2986
2986
  H(() => {
2987
2987
  if (n.current) {
@@ -3175,7 +3175,7 @@ class jt {
3175
3175
  }
3176
3176
  }
3177
3177
  let X = new Jt();
3178
- const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3178
+ const je = ({ children: e, node: t }) => Sn(e, t ?? document.body), Cs = ({
3179
3179
  children: e,
3180
3180
  customTrigger: t,
3181
3181
  triggerContent: n,
@@ -3195,10 +3195,10 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3195
3195
  }) => {
3196
3196
  const {
3197
3197
  triggerRef: w,
3198
- triggerProps: k,
3199
- popoverRef: S,
3198
+ triggerProps: E,
3199
+ popoverRef: M,
3200
3200
  getPopoverPosition: C,
3201
- open: M,
3201
+ open: S,
3202
3202
  toggle: P,
3203
3203
  close: y
3204
3204
  } = Xt({
@@ -3219,23 +3219,23 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3219
3219
  l && (F.preventDefault(), y(), w.current?.focus());
3220
3220
  }
3221
3221
  },
3222
- { enabled: M }
3223
- ), Vt(S, (F) => {
3224
- !c || !w.current || !M || !F.target || w.current.contains(F.target) || y();
3222
+ { enabled: S }
3223
+ ), Vt(M, (F) => {
3224
+ !c || !w.current || !S || !F.target || w.current.contains(F.target) || y();
3225
3225
  });
3226
- const E = C();
3226
+ const k = C();
3227
3227
  return /* @__PURE__ */ v(vt, { children: [
3228
3228
  t ? t({
3229
3229
  triggerRef: w,
3230
- triggerProps: k,
3230
+ triggerProps: E,
3231
3231
  toggle: P,
3232
- open: M,
3232
+ open: S,
3233
3233
  close: y
3234
3234
  }) : /* @__PURE__ */ d(
3235
3235
  "button",
3236
3236
  {
3237
3237
  ref: w,
3238
- ...k,
3238
+ ...E,
3239
3239
  onClick: P,
3240
3240
  className: N(
3241
3241
  "outline-none p-2 rounded-md transition-colors",
@@ -3245,7 +3245,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3245
3245
  children: n
3246
3246
  }
3247
3247
  ),
3248
- /* @__PURE__ */ d(Ie, { children: M && /* @__PURE__ */ d(je, { children: /* @__PURE__ */ d(ys, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ d(
3248
+ /* @__PURE__ */ d(Ie, { children: S && /* @__PURE__ */ d(je, { children: /* @__PURE__ */ d(ys, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ d(
3249
3249
  ne.div,
3250
3250
  {
3251
3251
  initial: {
@@ -3264,12 +3264,12 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3264
3264
  duration: 0.2,
3265
3265
  bounce: 0.1
3266
3266
  },
3267
- ref: S,
3267
+ ref: M,
3268
3268
  style: {
3269
3269
  position: "fixed",
3270
- left: E.x,
3271
- top: E.top,
3272
- bottom: E.bottom,
3270
+ left: k.x,
3271
+ top: k.top,
3272
+ bottom: k.bottom,
3273
3273
  maxHeight: typeof b == "number" ? `${b}px` : b,
3274
3274
  minWidth: typeof h == "number" ? `${h}px` : h,
3275
3275
  maxWidth: typeof g == "number" ? `${g}px` : g,
@@ -3309,7 +3309,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3309
3309
  }) => /* @__PURE__ */ d("div", { className: N("p-4", t), children: e }), Gi = ({
3310
3310
  children: e,
3311
3311
  className: t
3312
- }) => /* @__PURE__ */ d("div", { className: N("p-4 border-t border-base-4", t), children: e }), Ss = (e, t) => {
3312
+ }) => /* @__PURE__ */ d("div", { className: N("p-4 border-t border-base-4", t), children: e }), Ms = (e, t) => {
3313
3313
  const n = new Date(2023, 0, 1), r = [];
3314
3314
  for (let o = 0; o < 7; o++) {
3315
3315
  const s = new Date(n);
@@ -3336,62 +3336,62 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3336
3336
  ), b = $(null), h = te(() => n ? new Set(
3337
3337
  n.map((y) => new Date(y).toDateString())
3338
3338
  ) : /* @__PURE__ */ new Set(), [n]), g = te(() => new Set(r || []), [r]), w = te(() => {
3339
- const y = yo(c), E = go(c), F = new Date(y), Y = new Date(E);
3339
+ const y = yo(c), k = go(c), F = new Date(y), Y = new Date(k);
3340
3340
  if (i) {
3341
3341
  const T = y.getDay(), p = T === 0 ? 6 : T - 1;
3342
3342
  F.setDate(y.getDate() - p);
3343
- const O = E.getDay(), D = O === 0 ? 0 : 7 - O;
3344
- Y.setDate(E.getDate() + D);
3343
+ const O = k.getDay(), D = O === 0 ? 0 : 7 - O;
3344
+ Y.setDate(k.getDate() + D);
3345
3345
  } else
3346
- F.setDate(y.getDate() - y.getDay()), Y.setDate(E.getDate() + (6 - E.getDay()));
3346
+ F.setDate(y.getDate() - y.getDay()), Y.setDate(k.getDate() + (6 - k.getDay()));
3347
3347
  return wo({ start: F, end: Y });
3348
- }, [c, i]), k = te(
3349
- () => Ss(a ?? Ke, i),
3348
+ }, [c, i]), E = te(
3349
+ () => Ms(a ?? Ke, i),
3350
3350
  [a, i]
3351
- ), S = (y) => {
3352
- const E = y.toDateString(), F = y.getDay();
3353
- return !(h.has(E) || g.has(F) || o && y < o || s && y > s);
3351
+ ), M = (y) => {
3352
+ const k = y.toDateString(), F = y.getDay();
3353
+ return !(h.has(k) || g.has(F) || o && y < o || s && y > s);
3354
3354
  }, C = (y) => {
3355
- S(y) && t && t(y), m(y);
3356
- }, M = (y) => {
3355
+ M(y) && t && t(y), m(y);
3356
+ }, S = (y) => {
3357
3357
  if (!f) return;
3358
- let E = new Date(f), F = !0, Y, T;
3358
+ let k = new Date(f), F = !0, Y, T;
3359
3359
  switch (y.key) {
3360
3360
  case "ArrowUp":
3361
- E.setDate(E.getDate() - 7);
3361
+ k.setDate(k.getDate() - 7);
3362
3362
  break;
3363
3363
  case "ArrowDown":
3364
- E.setDate(E.getDate() + 7);
3364
+ k.setDate(k.getDate() + 7);
3365
3365
  break;
3366
3366
  case "ArrowLeft":
3367
- E.setDate(E.getDate() - 1);
3367
+ k.setDate(k.getDate() - 1);
3368
3368
  break;
3369
3369
  case "ArrowRight":
3370
- E.setDate(E.getDate() + 1);
3370
+ k.setDate(k.getDate() + 1);
3371
3371
  break;
3372
3372
  case "Home":
3373
- Y = E.getDay(), E.setDate(E.getDate() - Y);
3373
+ Y = k.getDay(), k.setDate(k.getDate() - Y);
3374
3374
  break;
3375
3375
  case "End":
3376
- T = E.getDay(), E.setDate(E.getDate() + (6 - T));
3376
+ T = k.getDay(), k.setDate(k.getDate() + (6 - T));
3377
3377
  break;
3378
3378
  case "PageUp":
3379
- E = y.shiftKey ? Pt(E, 12) : Pt(E, 1);
3379
+ k = y.shiftKey ? Pt(k, 12) : Pt(k, 1);
3380
3380
  break;
3381
3381
  case "PageDown":
3382
- E = y.shiftKey ? it(E, 12) : it(E, 1);
3382
+ k = y.shiftKey ? it(k, 12) : it(k, 1);
3383
3383
  break;
3384
3384
  case "Enter":
3385
3385
  case " ":
3386
- S(f) && t && t(f);
3386
+ M(f) && t && t(f);
3387
3387
  break;
3388
3388
  default:
3389
3389
  F = !1;
3390
3390
  }
3391
- F && (y.preventDefault(), E.getTime() !== f.getTime() && (m(E), hn(E, c) || u(E)));
3391
+ F && (y.preventDefault(), k.getTime() !== f.getTime() && (m(k), hn(k, c) || u(k)));
3392
3392
  }, P = (y) => {
3393
3393
  u(
3394
- (E) => y === "prev" ? Pt(E, 1) : it(E, 1)
3394
+ (k) => y === "prev" ? Pt(k, 1) : it(k, 1)
3395
3395
  );
3396
3396
  };
3397
3397
  return /* @__PURE__ */ v(
@@ -3402,7 +3402,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3402
3402
  "dark-theme:bg-base-3 border border-base-5 dark-theme:border-base-4 rounded-6 px-4 pt-3 pb-4 w-full lg:w-80",
3403
3403
  l
3404
3404
  ),
3405
- onKeyDown: M,
3405
+ onKeyDown: S,
3406
3406
  tabIndex: 0,
3407
3407
  role: "grid",
3408
3408
  "aria-label": "Calendar",
@@ -3428,7 +3428,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3428
3428
  }
3429
3429
  )
3430
3430
  ] }),
3431
- /* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "row", children: k.map((y) => /* @__PURE__ */ d(
3431
+ /* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "row", children: E.map((y) => /* @__PURE__ */ d(
3432
3432
  "div",
3433
3433
  {
3434
3434
  className: "text-xs flex items-center w-8 justify-center text-base-11",
@@ -3437,8 +3437,8 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3437
3437
  },
3438
3438
  y
3439
3439
  )) }),
3440
- /* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "grid", children: w.map((y, E) => {
3441
- const F = hn(y, c), Y = e ? Dt(y, e) : !1, T = f && Dt(y, f), p = S(y), O = Dt(y, /* @__PURE__ */ new Date());
3440
+ /* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "grid", children: w.map((y, k) => {
3441
+ const F = hn(y, c), Y = e ? Dt(y, e) : !1, T = f && Dt(y, f), p = M(y), O = Dt(y, /* @__PURE__ */ new Date());
3442
3442
  return /* @__PURE__ */ d(
3443
3443
  "button",
3444
3444
  {
@@ -3462,7 +3462,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3462
3462
  ),
3463
3463
  children: Ce(y, "d")
3464
3464
  },
3465
- E
3465
+ k
3466
3466
  );
3467
3467
  }) })
3468
3468
  ]
@@ -3608,7 +3608,7 @@ const Zi = () => /* @__PURE__ */ v("div", { children: [
3608
3608
  checked: "bg-brand lg:hover:bg-brand-hover text-brand-text",
3609
3609
  uncheckedDisabled: "bg-base-3 border-base-4",
3610
3610
  checkedDisabled: "bg-base-3 border-base-4 text-base-10"
3611
- }, Ms = De(
3611
+ }, Ss = De(
3612
3612
  ({
3613
3613
  checked: e = !1,
3614
3614
  onCheckedChange: t,
@@ -3700,7 +3700,7 @@ const Zi = () => /* @__PURE__ */ v("div", { children: [
3700
3700
  ] });
3701
3701
  }
3702
3702
  );
3703
- Ms.displayName = "Checkbox";
3703
+ Ss.displayName = "Checkbox";
3704
3704
  const tc = ({
3705
3705
  title: e,
3706
3706
  message: t,
@@ -3713,7 +3713,7 @@ const tc = ({
3713
3713
  trigger: l
3714
3714
  }) => {
3715
3715
  const { searchParams: c } = Br(), u = te(() => !!c[n], [c]), f = A(() => {
3716
- ke.to(`${window.location.pathname}?${n}=open`);
3716
+ Ee.to(`${window.location.pathname}?${n}=open`);
3717
3717
  }, [n]);
3718
3718
  return /* @__PURE__ */ v(vt, { children: [
3719
3719
  /* @__PURE__ */ d(Ie, { initial: !1, children: u && r ? /* @__PURE__ */ v(je, { node: document && document.getElementById("modals"), children: [
@@ -3740,7 +3740,7 @@ const tc = ({
3740
3740
  /* @__PURE__ */ d(
3741
3741
  U,
3742
3742
  {
3743
- onClick: () => ke.back(),
3743
+ onClick: () => Ee.back(),
3744
3744
  color: "transparentinactive",
3745
3745
  size: "sm",
3746
3746
  children: o ?? "Cancelar"
@@ -3751,7 +3751,7 @@ const tc = ({
3751
3751
  {
3752
3752
  size: "sm",
3753
3753
  onClick: () => {
3754
- i && i(), ke.back();
3754
+ i && i(), Ee.back();
3755
3755
  },
3756
3756
  color: a,
3757
3757
  children: s ?? "Continuar"
@@ -3764,7 +3764,7 @@ const tc = ({
3764
3764
  ] }) : null }),
3765
3765
  l ? l(f) : null
3766
3766
  ] });
3767
- }, nc = ({
3767
+ }, nc = ({ className: e }) => /* @__PURE__ */ d("div", { className: N("w-full h-px bg-base-4", e) }), rc = ({
3768
3768
  scrollY: e,
3769
3769
  height: t = 300,
3770
3770
  className: n,
@@ -3945,7 +3945,7 @@ function Is(e, t, n) {
3945
3945
  };
3946
3946
  throw new Error("Invalid input: not a Zod schema");
3947
3947
  }
3948
- function rc({
3948
+ function oc({
3949
3949
  methods: e,
3950
3950
  onSubmit: t,
3951
3951
  onError: n,
@@ -3970,7 +3970,7 @@ function rc({
3970
3970
  }
3971
3971
  ) });
3972
3972
  }
3973
- function oc(e, t) {
3973
+ function ac(e, t) {
3974
3974
  return qr({
3975
3975
  resolver: Is(e),
3976
3976
  defaultValues: t
@@ -4019,15 +4019,15 @@ const js = ({
4019
4019
  type: h = "text",
4020
4020
  value: g,
4021
4021
  ...w
4022
- }, k) => {
4023
- const S = $(null), C = $(!1), [M, P] = I(!1), [y, E] = I(!1), F = h === "password", Y = F && M ? "text" : c ? "number" : h, T = g !== "" && g !== null && g !== void 0;
4022
+ }, E) => {
4023
+ const M = $(null), C = $(!1), [S, P] = I(!1), [y, k] = I(!1), F = h === "password", Y = F && S ? "text" : c ? "number" : h, T = g !== "" && g !== null && g !== void 0;
4024
4024
  return H(() => {
4025
4025
  if (!C.current) {
4026
4026
  C.current = !0;
4027
4027
  return;
4028
4028
  }
4029
- S.current && Gr(S.current);
4030
- }, [M, S]), /* @__PURE__ */ v("div", { className: N("relative", f), children: [
4029
+ M.current && Gr(M.current);
4030
+ }, [S, M]), /* @__PURE__ */ v("div", { className: N("relative", f), children: [
4031
4031
  e && n === "default" && /* @__PURE__ */ d(
4032
4032
  "label",
4033
4033
  {
@@ -4079,7 +4079,7 @@ const js = ({
4079
4079
  "input",
4080
4080
  {
4081
4081
  ref: (p) => {
4082
- k && (typeof k == "function" ? k(p) : k.current = p), S.current = p;
4082
+ E && (typeof E == "function" ? E(p) : E.current = p), M.current = p;
4083
4083
  },
4084
4084
  type: Y,
4085
4085
  className: N(
@@ -4096,8 +4096,8 @@ const js = ({
4096
4096
  ),
4097
4097
  value: g,
4098
4098
  placeholder: s,
4099
- onFocus: () => E(!0),
4100
- onBlur: () => E(!1),
4099
+ onFocus: () => k(!0),
4100
+ onBlur: () => k(!1),
4101
4101
  ...w
4102
4102
  }
4103
4103
  )
@@ -4119,9 +4119,9 @@ const js = ({
4119
4119
  n === "floating" ? "absolute right-3 top-1/2 -translate-y-1/2" : "absolute right-3 top-10"
4120
4120
  ),
4121
4121
  onClick: () => {
4122
- P(!M);
4122
+ P(!S);
4123
4123
  },
4124
- children: M ? /* @__PURE__ */ d(
4124
+ children: S ? /* @__PURE__ */ d(
4125
4125
  Lr,
4126
4126
  {
4127
4127
  size: 20,
@@ -4141,7 +4141,7 @@ const js = ({
4141
4141
  }
4142
4142
  );
4143
4143
  lr.displayName = "Input";
4144
- const ac = ({
4144
+ const sc = ({
4145
4145
  name: e,
4146
4146
  customRead: t,
4147
4147
  customSet: n,
@@ -4184,7 +4184,7 @@ const ac = ({
4184
4184
  if (!e)
4185
4185
  throw new Error("useAliveScope must be wrapped within AliveScopeProvider");
4186
4186
  return e;
4187
- }, sc = ({ children: e }) => {
4187
+ }, ic = ({ children: e }) => {
4188
4188
  const [t, n] = I({}), r = $(
4189
4189
  {}
4190
4190
  ), o = $(
@@ -4263,14 +4263,14 @@ const ac = ({
4263
4263
  );
4264
4264
  }), []);
4265
4265
  } },
4266
- children: Mn(r, o, e)
4266
+ children: Sn(r, o, e)
4267
4267
  }
4268
- )), ic = () => {
4268
+ )), cc = () => {
4269
4269
  const e = wt(dr);
4270
4270
  if (!e)
4271
4271
  throw new Error("useKeepAlive must be used within KeepAliveProvider");
4272
4272
  return e;
4273
- }, cc = ({
4273
+ }, lc = ({
4274
4274
  aliveKey: e,
4275
4275
  children: t,
4276
4276
  enabled: n = !0,
@@ -4298,8 +4298,8 @@ const ac = ({
4298
4298
  if (n) return;
4299
4299
  const h = new IntersectionObserver(
4300
4300
  (w) => {
4301
- w.forEach((k) => {
4302
- k.isIntersecting && (u(!0), h.disconnect());
4301
+ w.forEach((E) => {
4302
+ E.isIntersecting && (u(!0), h.disconnect());
4303
4303
  });
4304
4304
  },
4305
4305
  {
@@ -4363,7 +4363,7 @@ const Ks = De(
4363
4363
  ] })
4364
4364
  );
4365
4365
  Ks.displayName = "LazyImageWrapped";
4366
- const lc = ({
4366
+ const uc = ({
4367
4367
  lightSolid: e = !0,
4368
4368
  className: t,
4369
4369
  children: n,
@@ -4379,7 +4379,7 @@ const lc = ({
4379
4379
  ...r,
4380
4380
  children: n
4381
4381
  }
4382
- ), uc = ({
4382
+ ), dc = ({
4383
4383
  onClick: e,
4384
4384
  lightSolid: t = !0,
4385
4385
  className: n,
@@ -4414,7 +4414,7 @@ const lc = ({
4414
4414
  disabled: b = !1,
4415
4415
  className: h
4416
4416
  }) => {
4417
- const [g, w] = I(""), [k, S] = I(!1), [C, M] = I(-1), P = $(null), y = $(null), E = $([]), {
4417
+ const [g, w] = I(""), [E, M] = I(!1), [C, S] = I(-1), P = $(null), y = $(null), k = $([]), {
4418
4418
  triggerRef: F,
4419
4419
  triggerProps: Y,
4420
4420
  popoverRef: T,
@@ -4427,10 +4427,10 @@ const lc = ({
4427
4427
  side: "top",
4428
4428
  avoidCollisions: !1,
4429
4429
  onOpen: () => {
4430
- S(!0), m && P.current && setTimeout(() => P.current?.focus(), 10);
4430
+ M(!0), m && P.current && setTimeout(() => P.current?.focus(), 10);
4431
4431
  },
4432
4432
  onClose: () => {
4433
- S(!1), w(""), M(-1);
4433
+ M(!1), w(""), S(-1);
4434
4434
  }
4435
4435
  }), j = $(
4436
4436
  `multiselect-${Math.random().toString(36).substr(2, 9)}`
@@ -4446,7 +4446,7 @@ const lc = ({
4446
4446
  (L) => a(L).toLowerCase().includes(g.toLowerCase())
4447
4447
  ) : n;
4448
4448
  H(() => {
4449
- E.current = E.current.slice(0, Q.length);
4449
+ k.current = k.current.slice(0, Q.length);
4450
4450
  }, [Q.length]);
4451
4451
  const se = (L) => i ? r.some(
4452
4452
  (R) => R === s(L) || s(R) === s(L)
@@ -4501,13 +4501,13 @@ const lc = ({
4501
4501
  D();
4502
4502
  else {
4503
4503
  const R = C >= Q.length - 1 ? 0 : C + 1;
4504
- M(R), E.current[R]?.scrollIntoView({ block: "nearest" });
4504
+ S(R), k.current[R]?.scrollIntoView({ block: "nearest" });
4505
4505
  }
4506
4506
  break;
4507
4507
  case "ArrowUp":
4508
4508
  if (L.preventDefault(), O) {
4509
4509
  const R = C <= 0 ? Q.length - 1 : C - 1;
4510
- M(R), E.current[R]?.scrollIntoView({ block: "nearest" });
4510
+ S(R), k.current[R]?.scrollIntoView({ block: "nearest" });
4511
4511
  }
4512
4512
  break;
4513
4513
  case "Backspace":
@@ -4517,9 +4517,9 @@ const lc = ({
4517
4517
  }
4518
4518
  break;
4519
4519
  }
4520
- }, Er = (L) => {
4521
- w(L.target.value), M(-1);
4522
- }, kr = () => {
4520
+ }, kr = (L) => {
4521
+ w(L.target.value), S(-1);
4522
+ }, Er = () => {
4523
4523
  b || (m && P.current && P.current.focus(), D());
4524
4524
  }, rt = (L) => {
4525
4525
  console.log(`Accessibility announcement: ${L}`);
@@ -4551,13 +4551,13 @@ const lc = ({
4551
4551
  {
4552
4552
  "py-3": t === "default",
4553
4553
  "pt-5 pb-2": t === "floating",
4554
- "ring-1 ring-brand": O || k,
4554
+ "ring-1 ring-brand": O || E,
4555
4555
  "text-red-9": c,
4556
- "ring-2 ring-red-6": c && (O || k),
4556
+ "ring-2 ring-red-6": c && (O || E),
4557
4557
  "opacity-60 cursor-not-allowed": b
4558
4558
  }
4559
4559
  ),
4560
- onClick: kr,
4560
+ onClick: Er,
4561
4561
  role: "combobox",
4562
4562
  "aria-expanded": O,
4563
4563
  "aria-haspopup": "listbox",
@@ -4576,7 +4576,7 @@ const lc = ({
4576
4576
  "absolute transition-all duration-200 pointer-events-none",
4577
4577
  "text-base top-4 font-semibold left-3",
4578
4578
  {
4579
- "text-sm top-2 left-2": k || le,
4579
+ "text-sm top-2 left-2": E || le,
4580
4580
  "text-red-9": !!c
4581
4581
  }
4582
4582
  ),
@@ -4629,7 +4629,7 @@ const lc = ({
4629
4629
  type: "text",
4630
4630
  className: "flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm",
4631
4631
  value: g,
4632
- onChange: Er,
4632
+ onChange: kr,
4633
4633
  onKeyDown: nt,
4634
4634
  placeholder: le ? "" : u,
4635
4635
  disabled: b,
@@ -4687,7 +4687,7 @@ const lc = ({
4687
4687
  "div",
4688
4688
  {
4689
4689
  ref: ($r) => {
4690
- E.current[R] = $r;
4690
+ k.current[R] = $r;
4691
4691
  },
4692
4692
  className: N(
4693
4693
  "px-3 py-2 text-sm cursor-pointer flex items-center justify-between",
@@ -4702,7 +4702,7 @@ const lc = ({
4702
4702
  onClick: () => ze(L),
4703
4703
  role: "option",
4704
4704
  "aria-selected": J,
4705
- onMouseEnter: () => M(R),
4705
+ onMouseEnter: () => S(R),
4706
4706
  children: [
4707
4707
  /* @__PURE__ */ d("span", { children: a(L) }),
4708
4708
  J && /* @__PURE__ */ d(Xe, { size: 16 })
@@ -4724,7 +4724,7 @@ const lc = ({
4724
4724
  ),
4725
4725
  /* @__PURE__ */ d("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: K.length > 0 ? `Selected: ${K.map(a).join(", ")}` : "No selections" })
4726
4726
  ] });
4727
- }, dc = ({
4727
+ }, fc = ({
4728
4728
  name: e,
4729
4729
  ...t
4730
4730
  }) => {
@@ -4748,7 +4748,7 @@ const lc = ({
4748
4748
  "Form control missing for field: ",
4749
4749
  e
4750
4750
  ] }));
4751
- }, fc = ({
4751
+ }, mc = ({
4752
4752
  id: e,
4753
4753
  tabPage: t,
4754
4754
  absolute: n = !0,
@@ -4762,7 +4762,7 @@ const lc = ({
4762
4762
  showScrollbar: u = !0,
4763
4763
  onScroll: f
4764
4764
  }) => {
4765
- const m = $(null), b = $(null), h = $(null), g = $(null), w = $(null), [k, S] = I(!1), C = $(null), M = $({
4765
+ const m = $(null), b = $(null), h = $(null), g = $(null), w = $(null), [E, M] = I(!1), C = $(null), S = $({
4766
4766
  startY: 0,
4767
4767
  // Track where the scroll position was when gesture started
4768
4768
  currentY: 0,
@@ -4775,19 +4775,19 @@ const lc = ({
4775
4775
  isPullingToRefresh: !1
4776
4776
  }), P = xt(), y = A(
4777
4777
  Ze(() => {
4778
- m.current && b.current && (M.current.maxScroll = Math.max(
4778
+ m.current && b.current && (S.current.maxScroll = Math.max(
4779
4779
  0,
4780
4780
  b.current.offsetHeight - m.current.offsetHeight
4781
4781
  ));
4782
4782
  }),
4783
4783
  []
4784
- ), E = A((_) => {
4785
- const { maxScroll: x } = M.current;
4784
+ ), k = A((_) => {
4785
+ const { maxScroll: x } = S.current;
4786
4786
  return _ > 0 ? Math.pow(_, 0.8) : _ < -x ? -x - Math.pow(-(_ + x), 0.8) : _;
4787
4787
  }, []), F = A(() => {
4788
4788
  if (!u || !m.current || !g.current)
4789
4789
  return;
4790
- const { currentY: _, maxScroll: x } = M.current, V = m.current.offsetHeight, K = Math.max(
4790
+ const { currentY: _, maxScroll: x } = S.current, V = m.current.offsetHeight, K = Math.max(
4791
4791
  30,
4792
4792
  V / (V + x) * V
4793
4793
  ), le = V - K;
@@ -4795,10 +4795,10 @@ const lc = ({
4795
4795
  _ > 0 ? (Q = 0, se = 1 - _ / V, g.current.style.transformOrigin = "top") : _ < -x ? (Q = le, se = 1 - Math.abs(_ + x) / V, g.current.style.transformOrigin = "bottom") : g.current.style.transformOrigin = "top", g.current.style.transform = `translate3d(0, ${Q}px, 0) scaleY(${se})`, g.current.style.height = `${K}px`;
4796
4796
  }, [u]), Y = A(
4797
4797
  (_) => {
4798
- if (M.current.currentY = _, b.current && (b.current.style.transform = `translate3d(0, ${_}px, 0)`), h.current) {
4798
+ if (S.current.currentY = _, b.current && (b.current.style.transform = `translate3d(0, ${_}px, 0)`), h.current) {
4799
4799
  const x = Math.max(
4800
- _ - M.current.refreshThreshold,
4801
- -M.current.refreshThreshold
4800
+ _ - S.current.refreshThreshold,
4801
+ -S.current.refreshThreshold
4802
4802
  );
4803
4803
  h.current.style.transform = `translate3d(0, ${x}px, 0)`;
4804
4804
  }
@@ -4807,7 +4807,7 @@ const lc = ({
4807
4807
  [F]
4808
4808
  ), T = A(
4809
4809
  (_) => {
4810
- const x = M.current;
4810
+ const x = S.current;
4811
4811
  x.frameCallback && (re(x.frameCallback), x.frameCallback = null);
4812
4812
  const V = performance.now(), K = x.currentY, le = _ - K, Q = () => {
4813
4813
  const se = performance.now() - V, ze = Math.min(se / c, 1), tt = 1 - Math.pow(1 - ze, 3), nt = K + le * tt;
@@ -4818,7 +4818,7 @@ const lc = ({
4818
4818
  [Y, c]
4819
4819
  ), p = A(
4820
4820
  (_) => {
4821
- const x = M.current;
4821
+ const x = S.current;
4822
4822
  x.frameCallback && (re(x.frameCallback), x.frameCallback = null);
4823
4823
  let V = _, K = Date.now();
4824
4824
  const le = () => {
@@ -4848,33 +4848,33 @@ const lc = ({
4848
4848
  if (C.current !== null && Date.now() - C.current < 50)
4849
4849
  return;
4850
4850
  C.current = Date.now();
4851
- const x = M.current;
4851
+ const x = S.current;
4852
4852
  x.isScrolling = !0, x.startY = x.currentY, x.lastTimestamp = Date.now(), x.isPullingToRefresh = x.currentY === 0, x.pullDistance = 0, x.frameCallback && (re(x.frameCallback), x.frameCallback = null), O();
4853
4853
  },
4854
4854
  [O]
4855
4855
  ), W = A(
4856
4856
  (_) => {
4857
- const x = M.current;
4857
+ const x = S.current;
4858
4858
  if (!x.isScrolling) return;
4859
- const V = E(x.startY + _.deltaY);
4860
- x.isPullingToRefresh && V < x.startY && (x.isPullingToRefresh = !1), Y(V), s && x.isPullingToRefresh && !k && V > 0 && (x.pullDistance = V, h.current && (h.current.textContent = x.pullDistance > x.refreshThreshold ? "Release to refresh" : "Pull to refresh")), O();
4859
+ const V = k(x.startY + _.deltaY);
4860
+ x.isPullingToRefresh && V < x.startY && (x.isPullingToRefresh = !1), Y(V), s && x.isPullingToRefresh && !E && V > 0 && (x.pullDistance = V, h.current && (h.current.textContent = x.pullDistance > x.refreshThreshold ? "Release to refresh" : "Pull to refresh")), O();
4861
4861
  },
4862
4862
  [
4863
4863
  s,
4864
4864
  Y,
4865
- k,
4865
+ E,
4866
4866
  O,
4867
- E
4867
+ k
4868
4868
  ]
4869
4869
  ), j = A(
4870
4870
  (_) => {
4871
- const x = M.current;
4872
- x.isScrolling && (x.isScrolling = !1, s && x.isPullingToRefresh && !k && x.pullDistance > x.refreshThreshold ? q() : x.currentY > 0 || x.currentY < -x.maxScroll ? T(x.currentY > 0 ? 0 : -x.maxScroll) : p(_.velocityY), x.isPullingToRefresh = !1);
4871
+ const x = S.current;
4872
+ x.isScrolling && (x.isScrolling = !1, s && x.isPullingToRefresh && !E && x.pullDistance > x.refreshThreshold ? q() : x.currentY > 0 || x.currentY < -x.maxScroll ? T(x.currentY > 0 ? 0 : -x.maxScroll) : p(_.velocityY), x.isPullingToRefresh = !1);
4873
4873
  },
4874
- [s, p, T, k]
4874
+ [s, p, T, E]
4875
4875
  ), q = A(() => {
4876
- S(!0), T(M.current.refreshThreshold), h.current && (h.current.textContent = "Refreshing..."), s && s().then(() => {
4877
- S(!1), T(0);
4876
+ M(!0), T(S.current.refreshThreshold), h.current && (h.current.textContent = "Refreshing..."), s && s().then(() => {
4877
+ M(!1), T(0);
4878
4878
  });
4879
4879
  }, [s, T]);
4880
4880
  return H(() => {
@@ -4993,7 +4993,7 @@ const lc = ({
4993
4993
  `scroller${e}`
4994
4994
  );
4995
4995
  };
4996
- function mc({
4996
+ function hc({
4997
4997
  id: e,
4998
4998
  showScrollbar: t = !0,
4999
4999
  onRefresh: n,
@@ -5022,7 +5022,7 @@ function mc({
5022
5022
  ), w = A((T) => {
5023
5023
  const { maxScroll: p } = h.current;
5024
5024
  return T > 0 ? Math.pow(T, 0.8) : T < -p ? -p - Math.pow(-(T + p), 0.8) : T;
5025
- }, []), k = A(() => {
5025
+ }, []), E = A(() => {
5026
5026
  if (!t || !a.current || !c.current)
5027
5027
  return;
5028
5028
  const { currentY: T, maxScroll: p } = h.current, O = a.current.offsetHeight, D = Math.max(
@@ -5031,7 +5031,7 @@ function mc({
5031
5031
  ), W = O - D;
5032
5032
  let j = -T / p * W, q = 1;
5033
5033
  T > 0 ? (j = 0, q = 1 - T / O, c.current.style.transformOrigin = "top") : T < -p ? (j = W, q = 1 - Math.abs(T + p) / O, c.current.style.transformOrigin = "bottom") : c.current.style.transformOrigin = "top", c.current.style.transform = `translate3d(0, ${j}px, 0) scaleY(${q})`, c.current.style.height = `${D}px`;
5034
- }, [t]), S = A(
5034
+ }, [t]), M = A(
5035
5035
  (T) => {
5036
5036
  if (h.current.currentY = T, i.current && (i.current.style.transform = `translate3d(0, ${T}px, 0)`), l.current) {
5037
5037
  const p = Math.max(
@@ -5040,21 +5040,21 @@ function mc({
5040
5040
  );
5041
5041
  l.current.style.transform = `translate3d(0, ${p}px, 0)`;
5042
5042
  }
5043
- s && s(T), k();
5043
+ s && s(T), E();
5044
5044
  },
5045
- [k]
5045
+ [E]
5046
5046
  ), C = A(
5047
5047
  (T) => {
5048
5048
  const p = h.current;
5049
5049
  p.frameCallback && (re(p.frameCallback), p.frameCallback = null);
5050
5050
  const O = performance.now(), D = p.currentY, W = T - D, j = () => {
5051
5051
  const q = performance.now() - O, _ = Math.min(q / r, 1), x = 1 - Math.pow(1 - _, 3), V = D + W * x;
5052
- S(V), _ >= 1 && (p.frameCallback && (re(p.frameCallback), p.frameCallback = null), S(T));
5052
+ M(V), _ >= 1 && (p.frameCallback && (re(p.frameCallback), p.frameCallback = null), M(T));
5053
5053
  };
5054
5054
  p.frameCallback = ct.render(j, !0);
5055
5055
  },
5056
- [S, r]
5057
- ), M = A(
5056
+ [M, r]
5057
+ ), S = A(
5058
5058
  (T) => {
5059
5059
  const p = h.current;
5060
5060
  p.frameCallback && (re(p.frameCallback), p.frameCallback = null);
@@ -5065,11 +5065,11 @@ function mc({
5065
5065
  p.frameCallback && (re(p.frameCallback), p.frameCallback = null), C(p.currentY > 0 ? 0 : -p.maxScroll);
5066
5066
  return;
5067
5067
  }
5068
- S(p.currentY), Math.abs(O) < 0.01 && p.frameCallback && (re(p.frameCallback), p.frameCallback = null);
5068
+ M(p.currentY), Math.abs(O) < 0.01 && p.frameCallback && (re(p.frameCallback), p.frameCallback = null);
5069
5069
  };
5070
5070
  p.frameCallback = ct.render(W, !0);
5071
5071
  },
5072
- [S, C]
5072
+ [M, C]
5073
5073
  ), P = A(() => {
5074
5074
  if (!t || !c.current) return;
5075
5075
  u.current !== null && clearTimeout(u.current), requestAnimationFrame(() => {
@@ -5090,16 +5090,16 @@ function mc({
5090
5090
  p.isScrolling = !0, p.startY = p.currentY, p.lastTimestamp = Date.now(), p.isPullingToRefresh = p.currentY === 0, p.pullDistance = 0, p.frameCallback && (re(p.frameCallback), p.frameCallback = null), P();
5091
5091
  },
5092
5092
  [P]
5093
- ), E = A(
5093
+ ), k = A(
5094
5094
  (T) => {
5095
5095
  const p = h.current;
5096
5096
  if (!p.isScrolling) return;
5097
5097
  const O = w(p.startY + T.deltaY);
5098
- p.isPullingToRefresh && O < p.startY && (p.isPullingToRefresh = !1), S(O), n && p.isPullingToRefresh && !f && O > 0 && (p.pullDistance = O), P();
5098
+ p.isPullingToRefresh && O < p.startY && (p.isPullingToRefresh = !1), M(O), n && p.isPullingToRefresh && !f && O > 0 && (p.pullDistance = O), P();
5099
5099
  },
5100
5100
  [
5101
5101
  n,
5102
- S,
5102
+ M,
5103
5103
  f,
5104
5104
  P,
5105
5105
  w
@@ -5111,9 +5111,9 @@ function mc({
5111
5111
  }, [n, C]), Y = A(
5112
5112
  (T) => {
5113
5113
  const p = h.current;
5114
- p.isScrolling && (p.isScrolling = !1, n && p.isPullingToRefresh && !f && p.pullDistance > p.refreshThreshold ? F() : p.currentY > 0 || p.currentY < -p.maxScroll ? C(p.currentY > 0 ? 0 : -p.maxScroll) : M(T.velocityY), p.isPullingToRefresh = !1);
5114
+ p.isScrolling && (p.isScrolling = !1, n && p.isPullingToRefresh && !f && p.pullDistance > p.refreshThreshold ? F() : p.currentY > 0 || p.currentY < -p.maxScroll ? C(p.currentY > 0 ? 0 : -p.maxScroll) : S(T.velocityY), p.isPullingToRefresh = !1);
5115
5115
  },
5116
- [n, M, C, f, F]
5116
+ [n, S, C, f, F]
5117
5117
  );
5118
5118
  return H(() => {
5119
5119
  if (!a.current) return;
@@ -5123,16 +5123,16 @@ function mc({
5123
5123
  passive: !0,
5124
5124
  direction: "y",
5125
5125
  onStart: y,
5126
- onMove: E,
5126
+ onMove: k,
5127
5127
  onEnd: Y
5128
5128
  });
5129
5129
  return T.init(), () => T.destroy();
5130
- }, [y, E, Y]), H(() => {
5130
+ }, [y, k, Y]), H(() => {
5131
5131
  if (a.current)
5132
- return g(), k(), window.addEventListener("resize", g), () => {
5132
+ return g(), E(), window.addEventListener("resize", g), () => {
5133
5133
  window.removeEventListener("resize", g), u.current !== null && clearTimeout(u.current);
5134
5134
  };
5135
- }, [g, k]), {
5135
+ }, [g, E]), {
5136
5136
  container: {
5137
5137
  props: {
5138
5138
  id: e,
@@ -5176,8 +5176,8 @@ function mc({
5176
5176
  refreshing: f,
5177
5177
  updateMaxScroll: g,
5178
5178
  rubberBandEffect: w,
5179
- updateScrollbarPosition: k,
5180
- setPosition: S
5179
+ updateScrollbarPosition: E,
5180
+ setPosition: M
5181
5181
  };
5182
5182
  }
5183
5183
  const Gs = {
@@ -5185,7 +5185,7 @@ const Gs = {
5185
5185
  4: "text-4xl",
5186
5186
  5: "text-5xl",
5187
5187
  6: "text-6xl"
5188
- }, hc = ({
5188
+ }, bc = ({
5189
5189
  title: e,
5190
5190
  description: t,
5191
5191
  size: n = "6",
@@ -5194,7 +5194,7 @@ const Gs = {
5194
5194
  }) => /* @__PURE__ */ v("div", { className: N("text-center", o), children: [
5195
5195
  /* @__PURE__ */ d("p", { className: `${Gs[n]} font-medium`, children: e }),
5196
5196
  t ? /* @__PURE__ */ d("p", { className: N("mt-6 text-base-11", r), children: t }) : null
5197
- ] }), bc = De(
5197
+ ] }), pc = De(
5198
5198
  ({
5199
5199
  placeholder: e = "Buscar",
5200
5200
  value: t,
@@ -5267,7 +5267,7 @@ const Gs = {
5267
5267
  }
5268
5268
  );
5269
5269
  }
5270
- ), En = ({
5270
+ ), kn = ({
5271
5271
  el: e,
5272
5272
  direction: t,
5273
5273
  amount: n = 200,
@@ -5295,7 +5295,7 @@ const Gs = {
5295
5295
  });
5296
5296
  }, Qs = {
5297
5297
  default: [0.32, 0.72, 0, 1]
5298
- }, kn = {
5298
+ }, En = {
5299
5299
  initial: { opacity: 0 },
5300
5300
  animate: {
5301
5301
  opacity: 1,
@@ -5311,7 +5311,7 @@ const Gs = {
5311
5311
  duration: 0.3
5312
5312
  }
5313
5313
  }
5314
- }, mr = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakSet();
5314
+ }, mr = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakSet();
5315
5315
  let Ne, Zt = 0, en = 0;
5316
5316
  const pe = "__aa_tgt", Ue = "__aa_del", pt = "__aa_new", Zs = (e) => {
5317
5317
  const t = ai(e);
@@ -5349,7 +5349,7 @@ function Pe(e) {
5349
5349
  bt.set(
5350
5350
  e,
5351
5351
  setTimeout(async () => {
5352
- const r = Me.get(e);
5352
+ const r = Se.get(e);
5353
5353
  try {
5354
5354
  await r?.finished, Z.set(e, Re(e)), ti(e);
5355
5355
  } catch {
@@ -5423,7 +5423,7 @@ function Ot(e, t) {
5423
5423
  }
5424
5424
  function si(e) {
5425
5425
  const t = e.isConnected, n = Z.has(e);
5426
- t && _e.has(e) && _e.delete(e), Me.has(e) && Me.get(e)?.cancel(), pt in e ? $n(e) : n && t ? ci(e) : n && !t ? li(e) : $n(e);
5426
+ t && _e.has(e) && _e.delete(e), Se.has(e) && Se.get(e)?.cancel(), pt in e ? $n(e) : n && t ? ci(e) : n && !t ? li(e) : $n(e);
5427
5427
  }
5428
5428
  function ue(e) {
5429
5429
  return Number(e.replace(/[^0-9.\-]/g, ""));
@@ -5504,7 +5504,7 @@ function ci(e) {
5504
5504
  );
5505
5505
  r = new Animation(s), r.play();
5506
5506
  }
5507
- Me.set(e, r), Z.set(e, n), r.addEventListener("finish", Pe.bind(null, e));
5507
+ Se.set(e, r), Z.set(e, n), r.addEventListener("finish", Pe.bind(null, e));
5508
5508
  }
5509
5509
  function $n(e) {
5510
5510
  pt in e && delete e[pt];
@@ -5529,10 +5529,10 @@ function $n(e) {
5529
5529
  const [o] = nn(n(e, "add", t));
5530
5530
  r = new Animation(o), r.play();
5531
5531
  }
5532
- Me.set(e, r), r.addEventListener("finish", Pe.bind(null, e));
5532
+ Se.set(e, r), r.addEventListener("finish", Pe.bind(null, e));
5533
5533
  }
5534
5534
  function Tn(e, t) {
5535
- e.remove(), Z.delete(e), _e.delete(e), Me.delete(e), zt.get(e)?.disconnect(), setTimeout(() => {
5535
+ e.remove(), Z.delete(e), _e.delete(e), Se.delete(e), zt.get(e)?.disconnect(), setTimeout(() => {
5536
5536
  if (Ue in e && delete e[Ue], Object.defineProperty(e, pt, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
5537
5537
  for (const n in t)
5538
5538
  e.style[n] = "";
@@ -5577,7 +5577,7 @@ function li(e) {
5577
5577
  );
5578
5578
  h?.styleReset !== !1 && (m = h?.styleReset || m, Object.assign(e.style, m)), f = new Animation(b), f.play();
5579
5579
  }
5580
- Me.set(e, f), f.addEventListener("finish", Tn.bind(null, e, m));
5580
+ Se.set(e, f), f.addEventListener("finish", Tn.bind(null, e, m));
5581
5581
  }
5582
5582
  function ui(e, t, n, r) {
5583
5583
  const o = Zt - t, s = en - n, a = document.documentElement.style.scrollBehavior;
@@ -5649,7 +5649,7 @@ const we = {
5649
5649
  item: "grow"
5650
5650
  }
5651
5651
  }
5652
- }, pc = ({
5652
+ }, gc = ({
5653
5653
  options: e,
5654
5654
  selected: t,
5655
5655
  onChange: n,
@@ -5667,8 +5667,8 @@ const we = {
5667
5667
  className: b
5668
5668
  }) => {
5669
5669
  const [h, g] = I({ left: !1, right: !1 }), { ref: w } = Jr({
5670
- onOverflow: (k) => {
5671
- g({ left: k.canScrollLeft, right: k.canScrollRight });
5670
+ onOverflow: (E) => {
5671
+ g({ left: E.canScrollLeft, right: E.canScrollRight });
5672
5672
  },
5673
5673
  // enabled: inView,
5674
5674
  trackScroll: m
@@ -5692,23 +5692,23 @@ const we = {
5692
5692
  we.rounded[f],
5693
5693
  we.border[u]
5694
5694
  ),
5695
- children: e.map((k) => {
5696
- const S = r(t) === r(k);
5695
+ children: e.map((E) => {
5696
+ const M = r(t) === r(E);
5697
5697
  return /* @__PURE__ */ d(
5698
5698
  "button",
5699
5699
  {
5700
- onClick: () => n?.(k),
5700
+ onClick: () => n?.(E),
5701
5701
  className: N(
5702
5702
  "border-r px-3 py-1 last:border-none text-nowrap shrink-0",
5703
5703
  we.widths[c].item,
5704
- !S && "lg:hover:bg-overlay-3",
5705
- s ? s(S) : S ? we.colors[i] : we.unselectedColors[l],
5704
+ !M && "lg:hover:bg-overlay-3",
5705
+ s ? s(M) : M ? we.colors[i] : we.unselectedColors[l],
5706
5706
  we.border[u],
5707
5707
  a
5708
5708
  ),
5709
- children: o(k)
5709
+ children: o(E)
5710
5710
  },
5711
- r(k)
5711
+ r(E)
5712
5712
  );
5713
5713
  })
5714
5714
  }
@@ -5717,12 +5717,12 @@ const we = {
5717
5717
  h.left ? /* @__PURE__ */ d(
5718
5718
  ne.button,
5719
5719
  {
5720
- variants: kn,
5720
+ variants: En,
5721
5721
  initial: "initial",
5722
5722
  animate: "animate",
5723
5723
  exit: "exit",
5724
5724
  onClick: () => {
5725
- w.current && En({ el: w.current, direction: "left" });
5725
+ w.current && kn({ el: w.current, direction: "left" });
5726
5726
  },
5727
5727
  className: "absolute shrink-0 left-0 px-1 h-full bg-gradient-to-r from-base-2 top-0",
5728
5728
  children: /* @__PURE__ */ d(Dn, { className: "text-base-13" })
@@ -5732,12 +5732,12 @@ const we = {
5732
5732
  h.right ? /* @__PURE__ */ d(
5733
5733
  ne.button,
5734
5734
  {
5735
- variants: kn,
5735
+ variants: En,
5736
5736
  initial: "initial",
5737
5737
  animate: "animate",
5738
5738
  exit: "exit",
5739
5739
  onClick: () => {
5740
- w.current && En({ el: w.current, direction: "right" });
5740
+ w.current && kn({ el: w.current, direction: "right" });
5741
5741
  },
5742
5742
  className: "absolute shrink-0 right-0 px-1 h-full bg-gradient-to-l from-base-2 top-0",
5743
5743
  children: /* @__PURE__ */ d(Pn, { className: "text-base-13" })
@@ -5766,27 +5766,27 @@ function fi({
5766
5766
  searchable: b,
5767
5767
  className: h
5768
5768
  }) {
5769
- const [g, w] = I(-1), k = $(null), {
5770
- triggerRef: S,
5769
+ const [g, w] = I(-1), E = $(null), {
5770
+ triggerRef: M,
5771
5771
  triggerProps: C,
5772
- popoverRef: M,
5772
+ popoverRef: S,
5773
5773
  getPopoverPosition: P,
5774
5774
  open: y,
5775
- toggle: E,
5775
+ toggle: k,
5776
5776
  close: F
5777
5777
  } = Xt({
5778
5778
  align: "start",
5779
5779
  side: "bottom",
5780
5780
  avoidCollisions: !0,
5781
5781
  onOpen: () => {
5782
- b && k.current && setTimeout(() => k.current?.focus(), 10);
5782
+ b && E.current && setTimeout(() => E.current?.focus(), 10);
5783
5783
  },
5784
5784
  onClose: () => {
5785
5785
  w(-1);
5786
5786
  }
5787
5787
  });
5788
- Vt(M, (p) => {
5789
- !S.current || !y || !p.target || S.current.contains(p.target) || F();
5788
+ Vt(S, (p) => {
5789
+ !M.current || !y || !p.target || M.current.contains(p.target) || F();
5790
5790
  });
5791
5791
  const Y = P(), T = c && r ? c(r, n) : r;
5792
5792
  return /* @__PURE__ */ v("div", { className: N("relative", h), children: [
@@ -5803,10 +5803,10 @@ function fi({
5803
5803
  /* @__PURE__ */ v(
5804
5804
  U,
5805
5805
  {
5806
- ref: S,
5806
+ ref: M,
5807
5807
  color: "solidhybrid",
5808
5808
  className: "w-full justify-between",
5809
- onClick: E,
5809
+ onClick: k,
5810
5810
  ...C,
5811
5811
  children: [
5812
5812
  T ? a(T) : m,
@@ -5827,13 +5827,13 @@ function fi({
5827
5827
  animate: { opacity: 1, y: 0 },
5828
5828
  exit: { opacity: 0, y: -10 },
5829
5829
  transition: { duration: 0.15 },
5830
- ref: M,
5830
+ ref: S,
5831
5831
  style: {
5832
5832
  position: "fixed",
5833
5833
  left: Y.x,
5834
5834
  top: Y.top,
5835
5835
  bottom: Y.bottom,
5836
- width: S.current?.offsetWidth ?? 200
5836
+ width: M.current?.offsetWidth ?? 200
5837
5837
  },
5838
5838
  className: N(
5839
5839
  "bg-base-1 dark-theme:bg-base-3 border border-base-4",
@@ -5878,7 +5878,7 @@ function fi({
5878
5878
  ) }) })
5879
5879
  ] });
5880
5880
  }
5881
- const gc = ({ name: e, ...t }) => {
5881
+ const vc = ({ name: e, ...t }) => {
5882
5882
  const { control: n } = Qe();
5883
5883
  return n ? /* @__PURE__ */ d(
5884
5884
  Je,
@@ -5899,7 +5899,7 @@ const gc = ({ name: e, ...t }) => {
5899
5899
  "Form control missing for field: ",
5900
5900
  e
5901
5901
  ] }));
5902
- }, vc = ({ className: e }) => /* @__PURE__ */ d("div", { className: N("w-full h-px bg-base-4", e) }), wc = ({
5902
+ }, wc = ({
5903
5903
  text: e,
5904
5904
  length: t = 120,
5905
5905
  size: n = "sm",
@@ -6060,9 +6060,9 @@ const gc = ({ name: e, ...t }) => {
6060
6060
  const m = Vr(), b = xt(), h = $(null), g = mi(), w = te(() => i === "modal" || b, [i, b]);
6061
6061
  return H(() => {
6062
6062
  g.add(e);
6063
- const k = g.getPrevId();
6064
- if (!k || (h.current = document.getElementById(k), !h.current)) return;
6065
- k && g.animateParentModal(
6063
+ const E = g.getPrevId();
6064
+ if (!E || (h.current = document.getElementById(E), !h.current)) return;
6065
+ E && g.animateParentModal(
6066
6066
  h.current,
6067
6067
  w ? "modal" : "sheet"
6068
6068
  );
@@ -6093,7 +6093,7 @@ const gc = ({ name: e, ...t }) => {
6093
6093
  }
6094
6094
  },
6095
6095
  onClick: () => {
6096
- m ? ke.back() : ke.replace(l ?? t);
6096
+ m ? Ee.back() : Ee.replace(l ?? t);
6097
6097
  },
6098
6098
  className: N(
6099
6099
  "bg-black/40 absolute w-full h-full left-0 top-0",
@@ -6136,8 +6136,8 @@ const gc = ({ name: e, ...t }) => {
6136
6136
  translateY: w ? "50%" : 0,
6137
6137
  height: w ? "65%" : "95%"
6138
6138
  },
6139
- onAnimationStart: (k) => {
6140
- (k?.scale === 0.8 || k?.y > 50) && h.current && g.restoreParentModal(h.current);
6139
+ onAnimationStart: (E) => {
6140
+ (E?.scale === 0.8 || E?.y > 50) && h.current && g.restoreParentModal(h.current);
6141
6141
  },
6142
6142
  className: N(
6143
6143
  "bg-base-1 absolute w-full lg:max-w-[600px] h-full rounded-6 overflow-hidden flex flex-col",
@@ -6156,7 +6156,7 @@ const gc = ({ name: e, ...t }) => {
6156
6156
  {
6157
6157
  size: "xs",
6158
6158
  onClick: () => {
6159
- m ? ke.back() : ke.replace(l ?? t);
6159
+ m ? Ee.back() : Ee.replace(l ?? t);
6160
6160
  },
6161
6161
  children: /* @__PURE__ */ d(yt, { size: 20 })
6162
6162
  }
@@ -6183,7 +6183,7 @@ function bi({
6183
6183
  required: o,
6184
6184
  className: s = ""
6185
6185
  }) {
6186
- const a = Sn();
6186
+ const a = Mn();
6187
6187
  return /* @__PURE__ */ v(
6188
6188
  "button",
6189
6189
  {
@@ -6249,7 +6249,7 @@ const pi = ({
6249
6249
  maxTags: l,
6250
6250
  validateTag: c
6251
6251
  }) => {
6252
- const [u, f] = I(""), [m, b] = I(!1), [h, g] = I(null), w = $(null), k = $(null), S = $([]), C = r.length > 0, M = $(
6252
+ const [u, f] = I(""), [m, b] = I(!1), [h, g] = I(null), w = $(null), E = $(null), M = $([]), C = r.length > 0, S = $(
6253
6253
  `taginput-${Math.random().toString(36).substr(2, 9)}`
6254
6254
  ).current, P = $(
6255
6255
  `label-${Math.random().toString(36).substr(2, 9)}`
@@ -6257,9 +6257,9 @@ const pi = ({
6257
6257
  `error-${Math.random().toString(36).substr(2, 9)}`
6258
6258
  ).current;
6259
6259
  H(() => {
6260
- S.current = S.current.slice(0, r.length);
6260
+ M.current = M.current.slice(0, r.length);
6261
6261
  }, [r.length]);
6262
- const E = (D) => {
6262
+ const k = (D) => {
6263
6263
  if (D.key === "Enter" && u.trim()) {
6264
6264
  D.preventDefault();
6265
6265
  const W = u.trim();
@@ -6285,7 +6285,7 @@ const pi = ({
6285
6285
  } else if (D.key === "Backspace" && !u && r.length > 0) {
6286
6286
  const W = r[r.length - 1];
6287
6287
  o(r.slice(0, -1)), O(`Removed tag ${W}`);
6288
- } else D.key === "ArrowLeft" && u === "" && r.length > 0 && S.current[r.length - 1] && S.current[r.length - 1]?.focus();
6288
+ } else D.key === "ArrowLeft" && u === "" && r.length > 0 && M.current[r.length - 1] && M.current[r.length - 1]?.focus();
6289
6289
  }, F = (D, W) => {
6290
6290
  if (D.key === "Backspace" || D.key === "Delete") {
6291
6291
  D.preventDefault();
@@ -6293,10 +6293,10 @@ const pi = ({
6293
6293
  q.splice(W, 1), o(q), setTimeout(() => {
6294
6294
  w.current && w.current.focus();
6295
6295
  }, 0), O(`Removed tag ${j}`);
6296
- } else D.key === "ArrowRight" ? (D.preventDefault(), W < r.length - 1 ? S.current[W + 1]?.focus() : w.current?.focus()) : D.key === "ArrowLeft" && (D.preventDefault(), W > 0 && S.current[W - 1]?.focus());
6296
+ } else D.key === "ArrowRight" ? (D.preventDefault(), W < r.length - 1 ? M.current[W + 1]?.focus() : w.current?.focus()) : D.key === "ArrowLeft" && (D.preventDefault(), W > 0 && M.current[W - 1]?.focus());
6297
6297
  }, Y = (D, W) => {
6298
6298
  o(r.filter((j) => j !== D)), setTimeout(() => {
6299
- W < r.length - 1 ? S.current[W]?.focus() : W > 0 ? S.current[W - 1]?.focus() : w.current?.focus();
6299
+ W < r.length - 1 ? M.current[W]?.focus() : W > 0 ? M.current[W - 1]?.focus() : w.current?.focus();
6300
6300
  }, 0), O(`Removed tag ${D}`);
6301
6301
  }, T = (D) => {
6302
6302
  f(D.target.value), g(null);
@@ -6306,12 +6306,12 @@ const pi = ({
6306
6306
  console.log(`Accessibility announcement: ${D}`);
6307
6307
  };
6308
6308
  return /* @__PURE__ */ v("div", { children: [
6309
- /* @__PURE__ */ v("div", { className: "relative", ref: k, children: [
6309
+ /* @__PURE__ */ v("div", { className: "relative", ref: E, children: [
6310
6310
  t === "default" ? /* @__PURE__ */ v(
6311
6311
  "label",
6312
6312
  {
6313
6313
  id: P,
6314
- htmlFor: M,
6314
+ htmlFor: S,
6315
6315
  className: N("text-base top-4 font-semibold left-3", {
6316
6316
  "text-sm top-2 left-2": m || C || i,
6317
6317
  "text-red-9": !!a
@@ -6344,7 +6344,7 @@ const pi = ({
6344
6344
  "label",
6345
6345
  {
6346
6346
  id: P,
6347
- htmlFor: M,
6347
+ htmlFor: S,
6348
6348
  className: N(
6349
6349
  "absolute transition-all duration-200 pointer-events-none",
6350
6350
  "text-base top-4 font-semibold left-3",
@@ -6371,7 +6371,7 @@ const pi = ({
6371
6371
  "div",
6372
6372
  {
6373
6373
  ref: (j) => {
6374
- S.current[W] = j;
6374
+ M.current[W] = j;
6375
6375
  },
6376
6376
  className: N(
6377
6377
  "line-clamp-1 text-brand rounded-full px-2 text-sm flex items-center",
@@ -6403,13 +6403,13 @@ const pi = ({
6403
6403
  /* @__PURE__ */ d(
6404
6404
  "input",
6405
6405
  {
6406
- id: M,
6406
+ id: S,
6407
6407
  ref: w,
6408
6408
  type: "text",
6409
6409
  className: "flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm placeholder:text-secondarytext",
6410
6410
  value: u,
6411
6411
  onChange: T,
6412
- onKeyDown: E,
6412
+ onKeyDown: k,
6413
6413
  onFocus: () => b(!0),
6414
6414
  onBlur: () => b(!1),
6415
6415
  enterKeyHint: "enter",
@@ -6439,7 +6439,7 @@ const pi = ({
6439
6439
  ),
6440
6440
  /* @__PURE__ */ d("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: r.length > 0 ? `Current tags: ${r.join(", ")}` : "No tags added yet" })
6441
6441
  ] });
6442
- }, Ec = ({ name: e, ...t }) => {
6442
+ }, kc = ({ name: e, ...t }) => {
6443
6443
  const { control: n } = Qe();
6444
6444
  return n ? /* @__PURE__ */ d(
6445
6445
  Je,
@@ -6540,7 +6540,7 @@ const pi = ({
6540
6540
  }
6541
6541
  );
6542
6542
  xr.displayName = "TextArea";
6543
- const kc = ({
6543
+ const Ec = ({
6544
6544
  name: e,
6545
6545
  customRead: t,
6546
6546
  customSet: n,
@@ -6649,21 +6649,6 @@ const kc = ({
6649
6649
  )
6650
6650
  ] });
6651
6651
  };
6652
- class Tc {
6653
- constructor() {
6654
- this.listeners = /* @__PURE__ */ new Map();
6655
- }
6656
- emit(t, n) {
6657
- const r = this.listeners.get(t);
6658
- r && r.forEach((o) => o(n));
6659
- }
6660
- listen(t, n) {
6661
- return this.listeners.has(t) || this.listeners.set(t, /* @__PURE__ */ new Set()), this.listeners.get(t).add(n), () => {
6662
- const r = this.listeners.get(t);
6663
- r && (r.delete(n), r.size === 0 && this.listeners.delete(t));
6664
- };
6665
- }
6666
- }
6667
6652
  function Lt(e, t, n = !0) {
6668
6653
  const r = $(void 0);
6669
6654
  H(() => (n || r.current && r.current(), r.current = he.listen(e, t), () => r.current && r.current()), [e, t, n]);
@@ -6676,7 +6661,7 @@ function Nr(e = 8) {
6676
6661
  n += t.charAt(Math.floor(Math.random() * t.length));
6677
6662
  return n;
6678
6663
  }
6679
- const Cc = ({ colors: e }) => {
6664
+ const Tc = ({ colors: e }) => {
6680
6665
  const [t, n] = I([]), r = A(
6681
6666
  (a) => {
6682
6667
  n((i) => [
@@ -6718,7 +6703,7 @@ const Cc = ({ colors: e }) => {
6718
6703
  id: "toaster",
6719
6704
  className: "fixed z-9999 top-[calc(var(--safe-area-top)+0px)] pointer-events-none left-0 mt-4 mb-4 px-4 w-full flex flex-col gap-y-2 items-center justify-center",
6720
6705
  children: /* @__PURE__ */ d(Ie, { mode: "popLayout", children: t.map((a) => /* @__PURE__ */ d(
6721
- Ei,
6706
+ ki,
6722
6707
  {
6723
6708
  toast: a,
6724
6709
  remove: o,
@@ -6749,7 +6734,7 @@ const Cc = ({ colors: e }) => {
6749
6734
  icon: Rr,
6750
6735
  color: "text-red-9"
6751
6736
  }
6752
- }, Ei = ({
6737
+ }, ki = ({
6753
6738
  toast: e,
6754
6739
  remove: t,
6755
6740
  colors: n
@@ -6788,7 +6773,7 @@ const Cc = ({ colors: e }) => {
6788
6773
  ]
6789
6774
  }
6790
6775
  );
6791
- }, Sc = {
6776
+ }, Cc = {
6792
6777
  simple: (e, t) => he.emit("create-toast", {
6793
6778
  type: "simple",
6794
6779
  message: e,
@@ -6834,47 +6819,46 @@ const Cc = ({ colors: e }) => {
6834
6819
  }
6835
6820
  };
6836
6821
  export {
6837
- sc as AliveScope,
6822
+ ic as AliveScope,
6838
6823
  zi as Avatar,
6839
6824
  Hi as AvatarsGroup,
6840
6825
  U as Button,
6841
6826
  nr as Calendar,
6842
- Ms as Checkbox,
6827
+ Ss as Checkbox,
6843
6828
  tc as ConfirmationDialog,
6844
6829
  Qi as DatePickerDemo,
6845
6830
  Ji as DatePickerPopover,
6846
6831
  ec as DateTimePicker,
6847
- nc as ElasticHeader,
6848
- Tc as EventEmitter,
6832
+ nc as Divider,
6833
+ rc as ElasticHeader,
6849
6834
  Ii as FocusTrap,
6850
- rc as Form,
6851
- ac as FormInput,
6852
- dc as FormMultiSelect,
6853
- gc as FormSelect,
6835
+ oc as Form,
6836
+ sc as FormInput,
6837
+ fc as FormMultiSelect,
6838
+ vc as FormSelect,
6854
6839
  yc as FormSubmit,
6855
- Ec as FormTags,
6856
- kc as FormTextArea,
6840
+ kc as FormTags,
6841
+ Ec as FormTextArea,
6857
6842
  $c as FormWorkingHours,
6858
6843
  js as Icon,
6859
6844
  lr as Input,
6860
- cc as KeepAlive,
6845
+ lc as KeepAlive,
6861
6846
  fr as LazyImage,
6862
6847
  Ks as LazyImageWrapped,
6863
- lc as List,
6864
- uc as ListItem,
6848
+ uc as List,
6849
+ dc as ListItem,
6865
6850
  xc as ModalsProvider,
6866
6851
  Us as MultiSelect,
6867
- fc as PageScroller,
6868
- hc as PageTitle,
6852
+ mc as PageScroller,
6853
+ bc as PageTitle,
6869
6854
  Cs as PopoverCard,
6870
6855
  Ui as PopoverCardContent,
6871
6856
  Gi as PopoverCardFooter,
6872
6857
  Ki as PopoverCardHeader,
6873
6858
  je as Portal,
6874
- bc as SearchInput,
6875
- pc as SegmentedControl,
6859
+ pc as SearchInput,
6860
+ gc as SegmentedControl,
6876
6861
  fi as Select,
6877
- vc as Separator,
6878
6862
  wc as ShowMoreText,
6879
6863
  wr as Spinner,
6880
6864
  Nc as SuperModal,
@@ -6882,7 +6866,7 @@ export {
6882
6866
  pi as Tags,
6883
6867
  xr as TextArea,
6884
6868
  Zi as TimePicker,
6885
- Cc as Toaster,
6869
+ Tc as Toaster,
6886
6870
  to as calculatePopoverPosition,
6887
6871
  lt as checkOverflow,
6888
6872
  N as cn,
@@ -6896,22 +6880,22 @@ export {
6896
6880
  Gr as setFocusEnd,
6897
6881
  Ze as throttle,
6898
6882
  Yi as toTitleCase,
6899
- Sc as toast,
6883
+ Cc as toast,
6900
6884
  Bi as useClickAway,
6901
6885
  Vi as useClickAwayAdvanced,
6902
6886
  Vt as useClickAwayWithRef,
6903
6887
  Lt as useEventListener,
6904
- ic as useKeepAlive,
6888
+ cc as useKeepAlive,
6905
6889
  Zr as useKeyListener,
6906
6890
  xt as useLargeScreen,
6907
6891
  Xi as useLongPress,
6908
6892
  Rn as useMergedRef,
6909
- oc as useMethods,
6893
+ ac as useMethods,
6910
6894
  mi as useModals,
6911
6895
  qi as useNetwork,
6912
6896
  Jr as useOverflow,
6913
6897
  ji as useOverflowState,
6914
6898
  Xt as usePopover,
6915
6899
  no as useRipple,
6916
- mc as useScroller
6900
+ hc as useScroller
6917
6901
  };