@mateosuarezdev/react-ui 1.0.57 → 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,10 +9,10 @@
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";
@@ -21,7 +21,7 @@ import { appendErrors as Wn, FormProvider as Xr, useForm as qr, useFormContext a
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 k = C - P, F = M - y;
331
+ function m(C, S, P, y) {
332
+ const k = C - P, F = S - y;
333
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));
@@ -360,11 +360,11 @@ function Xi({
360
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", 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);
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,7 +411,7 @@ const qi = () => {
411
411
  y: 0,
412
412
  width: 0,
413
413
  height: 0
414
- }), w = $(null), E = Sn(), S = A(
414
+ }), w = $(null), E = Mn(), M = A(
415
415
  (y) => {
416
416
  const k = y ?? g.current;
417
417
  if (!k) return { x: 0, top: 0, bottom: void 0 };
@@ -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 = {
@@ -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 = ({
@@ -645,14 +645,14 @@ const qi = () => {
645
645
  }, h) => {
646
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,
@@ -894,14 +894,14 @@ const Eo = {
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";
@@ -1216,7 +1216,7 @@ const Io = /^(\d+)(th|st|nd|rd)?/i, jo = /\d+/i, zo = {
1216
1216
  code: "en-US",
1217
1217
  formatDistance: ko,
1218
1218
  formatLong: Co,
1219
- formatRelative: Mo,
1219
+ formatRelative: So,
1220
1220
  localize: _o,
1221
1221
  match: Jo,
1222
1222
  options: {
@@ -2109,11 +2109,11 @@ const va = {
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({
@@ -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
  }, {
@@ -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,
@@ -3196,9 +3196,9 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3196
3196
  const {
3197
3197
  triggerRef: w,
3198
3198
  triggerProps: E,
3199
- popoverRef: S,
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,9 +3219,9 @@ 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
3226
  const k = C();
3227
3227
  return /* @__PURE__ */ v(vt, { children: [
@@ -3229,7 +3229,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3229
3229
  triggerRef: w,
3230
3230
  triggerProps: E,
3231
3231
  toggle: P,
3232
- open: M,
3232
+ open: S,
3233
3233
  close: y
3234
3234
  }) : /* @__PURE__ */ d(
3235
3235
  "button",
@@ -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,7 +3264,7 @@ 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
3270
  left: k.x,
@@ -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);
@@ -3346,14 +3346,14 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3346
3346
  F.setDate(y.getDate() - y.getDay()), Y.setDate(k.getDate() + (6 - k.getDay()));
3347
3347
  return wo({ start: F, end: Y });
3348
3348
  }, [c, i]), E = te(
3349
- () => Ss(a ?? Ke, i),
3349
+ () => Ms(a ?? Ke, i),
3350
3350
  [a, i]
3351
- ), S = (y) => {
3351
+ ), M = (y) => {
3352
3352
  const k = y.toDateString(), F = y.getDay();
3353
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
3358
  let k = new Date(f), F = !0, Y, T;
3359
3359
  switch (y.key) {
@@ -3383,7 +3383,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
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;
@@ -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",
@@ -3438,7 +3438,7 @@ const je = ({ children: e, node: t }) => Mn(e, t ?? document.body), Cs = ({
3438
3438
  y
3439
3439
  )) }),
3440
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 = S(y), O = Dt(y, /* @__PURE__ */ new Date());
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
  {
@@ -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,
@@ -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
@@ -4020,14 +4020,14 @@ const js = ({
4020
4020
  value: g,
4021
4021
  ...w
4022
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;
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
- E && (typeof E == "function" ? E(p) : E.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(
@@ -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,
@@ -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(""), [E, S] = I(!1), [C, M] = I(-1), P = $(null), y = $(null), k = $([]), {
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)}`
@@ -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), k.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), k.current[R]?.scrollIntoView({ block: "nearest" });
4510
+ S(R), k.current[R]?.scrollIntoView({ block: "nearest" });
4511
4511
  }
4512
4512
  break;
4513
4513
  case "Backspace":
@@ -4518,7 +4518,7 @@ const lc = ({
4518
4518
  break;
4519
4519
  }
4520
4520
  }, kr = (L) => {
4521
- w(L.target.value), M(-1);
4521
+ w(L.target.value), S(-1);
4522
4522
  }, Er = () => {
4523
4523
  b || (m && P.current && P.current.focus(), D());
4524
4524
  }, rt = (L) => {
@@ -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), [E, 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
4784
  ), k = A((_) => {
4785
- const { maxScroll: x } = M.current;
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,13 +4848,13 @@ 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
4859
  const V = k(x.startY + _.deltaY);
4860
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();
@@ -4868,13 +4868,13 @@ const lc = ({
4868
4868
  ]
4869
4869
  ), j = A(
4870
4870
  (_) => {
4871
- const x = M.current;
4871
+ const x = S.current;
4872
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
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,
@@ -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(
@@ -5049,12 +5049,12 @@ function mc({
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(() => {
@@ -5095,11 +5095,11 @@ function mc({
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;
@@ -5177,7 +5177,7 @@ function mc({
5177
5177
  updateMaxScroll: g,
5178
5178
  rubberBandEffect: w,
5179
5179
  updateScrollbarPosition: E,
5180
- setPosition: S
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,
@@ -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,
@@ -5693,7 +5693,7 @@ const we = {
5693
5693
  we.border[u]
5694
5694
  ),
5695
5695
  children: e.map((E) => {
5696
- const S = r(t) === r(E);
5696
+ const M = r(t) === r(E);
5697
5697
  return /* @__PURE__ */ d(
5698
5698
  "button",
5699
5699
  {
@@ -5701,8 +5701,8 @@ const we = {
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
  ),
@@ -5767,9 +5767,9 @@ function fi({
5767
5767
  className: h
5768
5768
  }) {
5769
5769
  const [g, w] = I(-1), E = $(null), {
5770
- triggerRef: S,
5770
+ triggerRef: M,
5771
5771
  triggerProps: C,
5772
- popoverRef: M,
5772
+ popoverRef: S,
5773
5773
  getPopoverPosition: P,
5774
5774
  open: y,
5775
5775
  toggle: k,
@@ -5785,8 +5785,8 @@ function fi({
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,7 +5803,7 @@ 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
5809
  onClick: k,
@@ -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",
@@ -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), E = $(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,7 +6257,7 @@ 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
6262
  const k = (D) => {
6263
6263
  if (D.key === "Enter" && 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);
@@ -6311,7 +6311,7 @@ const pi = ({
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,7 +6403,7 @@ 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",
@@ -6819,46 +6819,46 @@ const Tc = ({ colors: e }) => {
6819
6819
  }
6820
6820
  };
6821
6821
  export {
6822
- sc as AliveScope,
6822
+ ic as AliveScope,
6823
6823
  zi as Avatar,
6824
6824
  Hi as AvatarsGroup,
6825
6825
  U as Button,
6826
6826
  nr as Calendar,
6827
- Ms as Checkbox,
6827
+ Ss as Checkbox,
6828
6828
  tc as ConfirmationDialog,
6829
6829
  Qi as DatePickerDemo,
6830
6830
  Ji as DatePickerPopover,
6831
6831
  ec as DateTimePicker,
6832
- nc as ElasticHeader,
6832
+ nc as Divider,
6833
+ rc as ElasticHeader,
6833
6834
  Ii as FocusTrap,
6834
- rc as Form,
6835
- ac as FormInput,
6836
- dc as FormMultiSelect,
6837
- gc as FormSelect,
6835
+ oc as Form,
6836
+ sc as FormInput,
6837
+ fc as FormMultiSelect,
6838
+ vc as FormSelect,
6838
6839
  yc as FormSubmit,
6839
6840
  kc as FormTags,
6840
6841
  Ec as FormTextArea,
6841
6842
  $c as FormWorkingHours,
6842
6843
  js as Icon,
6843
6844
  lr as Input,
6844
- cc as KeepAlive,
6845
+ lc as KeepAlive,
6845
6846
  fr as LazyImage,
6846
6847
  Ks as LazyImageWrapped,
6847
- lc as List,
6848
- uc as ListItem,
6848
+ uc as List,
6849
+ dc as ListItem,
6849
6850
  xc as ModalsProvider,
6850
6851
  Us as MultiSelect,
6851
- fc as PageScroller,
6852
- hc as PageTitle,
6852
+ mc as PageScroller,
6853
+ bc as PageTitle,
6853
6854
  Cs as PopoverCard,
6854
6855
  Ui as PopoverCardContent,
6855
6856
  Gi as PopoverCardFooter,
6856
6857
  Ki as PopoverCardHeader,
6857
6858
  je as Portal,
6858
- bc as SearchInput,
6859
- pc as SegmentedControl,
6859
+ pc as SearchInput,
6860
+ gc as SegmentedControl,
6860
6861
  fi as Select,
6861
- vc as Separator,
6862
6862
  wc as ShowMoreText,
6863
6863
  wr as Spinner,
6864
6864
  Nc as SuperModal,
@@ -6885,17 +6885,17 @@ export {
6885
6885
  Vi as useClickAwayAdvanced,
6886
6886
  Vt as useClickAwayWithRef,
6887
6887
  Lt as useEventListener,
6888
- ic as useKeepAlive,
6888
+ cc as useKeepAlive,
6889
6889
  Zr as useKeyListener,
6890
6890
  xt as useLargeScreen,
6891
6891
  Xi as useLongPress,
6892
6892
  Rn as useMergedRef,
6893
- oc as useMethods,
6893
+ ac as useMethods,
6894
6894
  mi as useModals,
6895
6895
  qi as useNetwork,
6896
6896
  Jr as useOverflow,
6897
6897
  ji as useOverflowState,
6898
6898
  Xt as usePopover,
6899
6899
  no as useRipple,
6900
- mc as useScroller
6900
+ hc as useScroller
6901
6901
  };