@mateosuarezdev/react-ui 1.0.56 → 1.0.57

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
@@ -16,7 +16,7 @@ import { twMerge as Mr } 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";
@@ -329,8 +329,8 @@ function Xi({
329
329
  const f = s.current;
330
330
  if (!f) return;
331
331
  function m(C, M, P, y) {
332
- const E = C - P, F = M - y;
333
- return Math.sqrt(E * E + F * F);
332
+ const k = C - P, F = M - y;
333
+ return Math.sqrt(k * k + F * F);
334
334
  }
335
335
  function b(C) {
336
336
  if (C.touches.length !== 1) return;
@@ -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
363
  function S(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", S), () => {
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", S);
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 = Sn(), S = 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,
@@ -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
  },
@@ -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,7 +643,7 @@ 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
648
  }, { ref: S, ripple: C } = no(
649
649
  l,
@@ -656,7 +656,7 @@ const qi = () => {
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({
@@ -1214,7 +1214,7 @@ 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
1219
  formatRelative: Mo,
1220
1220
  localize: _o,
@@ -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,7 +2105,7 @@ 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"]
@@ -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({
@@ -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) {
@@ -3195,7 +3195,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3195
3195
  }) => {
3196
3196
  const {
3197
3197
  triggerRef: w,
3198
- triggerProps: k,
3198
+ triggerProps: E,
3199
3199
  popoverRef: S,
3200
3200
  getPopoverPosition: C,
3201
3201
  open: M,
@@ -3223,11 +3223,11 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3223
3223
  ), Vt(S, (F) => {
3224
3224
  !c || !w.current || !M || !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
3232
  open: M,
3233
3233
  close: y
@@ -3235,7 +3235,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
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",
@@ -3267,9 +3267,9 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3267
3267
  ref: S,
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,
@@ -3336,50 +3336,50 @@ 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(
3348
+ }, [c, i]), E = te(
3349
3349
  () => Ss(a ?? Ke, i),
3350
3350
  [a, i]
3351
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);
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
3355
  S(y) && t && t(y), m(y);
3356
3356
  }, M = (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 " ":
@@ -3388,10 +3388,10 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
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(
@@ -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,7 +3437,7 @@ 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) => {
3440
+ /* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "grid", children: w.map((y, k) => {
3441
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());
3442
3442
  return /* @__PURE__ */ d(
3443
3443
  "button",
@@ -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
  ]
@@ -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"
@@ -4019,8 +4019,8 @@ 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 S = $(null), C = $(!1), [M, P] = I(!1), [y, k] = I(!1), F = h === "password", Y = F && M ? "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;
@@ -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), S.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
  )
@@ -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
  {
@@ -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, S] = I(!1), [C, M] = I(-1), P = $(null), y = $(null), k = $([]), {
4418
4418
  triggerRef: F,
4419
4419
  triggerProps: Y,
4420
4420
  popoverRef: T,
@@ -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
+ M(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
+ M(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) => {
4520
+ }, kr = (L) => {
4521
4521
  w(L.target.value), M(-1);
4522
- }, kr = () => {
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",
@@ -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, S] = I(!1), C = $(null), M = $({
4766
4766
  startY: 0,
4767
4767
  // Track where the scroll position was when gesture started
4768
4768
  currentY: 0,
@@ -4781,7 +4781,7 @@ const lc = ({
4781
4781
  ));
4782
4782
  }),
4783
4783
  []
4784
- ), E = A((_) => {
4784
+ ), k = A((_) => {
4785
4785
  const { maxScroll: x } = M.current;
4786
4786
  return _ > 0 ? Math.pow(_, 0.8) : _ < -x ? -x - Math.pow(-(_ + x), 0.8) : _;
4787
4787
  }, []), F = A(() => {
@@ -4856,22 +4856,22 @@ const lc = ({
4856
4856
  (_) => {
4857
4857
  const x = M.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
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);
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
4876
  S(!0), T(M.current.refreshThreshold), h.current && (h.current.textContent = "Refreshing..."), s && s().then(() => {
4877
4877
  S(!1), T(0);
@@ -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(
@@ -5040,9 +5040,9 @@ 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;
@@ -5090,7 +5090,7 @@ 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;
@@ -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,7 +5176,7 @@ function mc({
5176
5176
  refreshing: f,
5177
5177
  updateMaxScroll: g,
5178
5178
  rubberBandEffect: w,
5179
- updateScrollbarPosition: k,
5179
+ updateScrollbarPosition: E,
5180
5180
  setPosition: S
5181
5181
  };
5182
5182
  }
@@ -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,
@@ -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,12 +5692,12 @@ 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 S = 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,
@@ -5706,9 +5706,9 @@ const we = {
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,20 +5766,20 @@ function fi({
5766
5766
  searchable: b,
5767
5767
  className: h
5768
5768
  }) {
5769
- const [g, w] = I(-1), k = $(null), {
5769
+ const [g, w] = I(-1), E = $(null), {
5770
5770
  triggerRef: S,
5771
5771
  triggerProps: C,
5772
5772
  popoverRef: M,
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);
@@ -5806,7 +5806,7 @@ function fi({
5806
5806
  ref: S,
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,
@@ -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
  }
@@ -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), S = $([]), C = r.length > 0, M = $(
6253
6253
  `taginput-${Math.random().toString(36).substr(2, 9)}`
6254
6254
  ).current, P = $(
6255
6255
  `label-${Math.random().toString(36).substr(2, 9)}`
@@ -6259,7 +6259,7 @@ const pi = ({
6259
6259
  H(() => {
6260
6260
  S.current = S.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();
@@ -6306,7 +6306,7 @@ 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
  {
@@ -6409,7 +6409,7 @@ const pi = ({
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,
@@ -6845,15 +6830,14 @@ export {
6845
6830
  Ji as DatePickerPopover,
6846
6831
  ec as DateTimePicker,
6847
6832
  nc as ElasticHeader,
6848
- Tc as EventEmitter,
6849
6833
  Ii as FocusTrap,
6850
6834
  rc as Form,
6851
6835
  ac as FormInput,
6852
6836
  dc as FormMultiSelect,
6853
6837
  gc as FormSelect,
6854
6838
  yc as FormSubmit,
6855
- Ec as FormTags,
6856
- kc as FormTextArea,
6839
+ kc as FormTags,
6840
+ Ec as FormTextArea,
6857
6841
  $c as FormWorkingHours,
6858
6842
  js as Icon,
6859
6843
  lr as Input,
@@ -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,7 +6880,7 @@ 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,