@imj_media/ui 1.2.47 → 1.2.48

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.esm.js CHANGED
@@ -35,7 +35,7 @@ function Qd(e, t) {
35
35
  };
36
36
  }
37
37
  const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
38
- const [n, a] = V(!1), [l, u] = V({ top: 0, left: 0 }), [m, d] = V({ width: 0, height: 0 }), [c, f] = V(e), h = Q(null), b = Q(null), p = Q(null), x = Q(null), y = Q(null), w = Q(null), g = Q(null), D = Q({ top: 0, left: 0 }), C = Q({ count: 0, lastTime: 0 }), N = L(() => {
38
+ const [n, a] = V(!1), [l, u] = V({ top: 0, left: 0 }), [m, d] = V({ width: 0, height: 0 }), [c, f] = V(e), h = Q(null), b = Q(null), p = Q(null), x = Q(null), y = Q(null), N = Q(null), g = Q(null), D = Q({ top: 0, left: 0 }), C = Q({ count: 0, lastTime: 0 }), w = L(() => {
39
39
  a(!1), u({ top: 0, left: 0 }), f(e), g.current = null, C.current.count = 0, C.current.lastTime = 0, D.current = { top: 0, left: 0 };
40
40
  }, [e]), k = L(() => {
41
41
  if (!h.current || !n) return;
@@ -43,12 +43,12 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
43
43
  if (g.current) {
44
44
  const M = g.current, A = 2;
45
45
  if (Math.abs(E.top - M.top) > A || Math.abs(E.left - M.left) > A) {
46
- N();
46
+ w();
47
47
  return;
48
48
  }
49
49
  }
50
50
  g.current = E;
51
- }, [n, N]), S = L(() => {
51
+ }, [n, w]), S = L(() => {
52
52
  var z, R, W, Y, ie, ae;
53
53
  if (!h.current || !b.current) return;
54
54
  const v = h.current.getBoundingClientRect(), E = b.current.getBoundingClientRect(), M = 8;
@@ -212,32 +212,32 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
212
212
  j < B && (j = B), j + E.width > X - B && (j = X - E.width - B), A < B && (A = B), A + E.height > O - B && (A = O - E.height - B);
213
213
  }
214
214
  if (isNaN(A) || isNaN(j) || A < 0 || j < 0) {
215
- N();
215
+ w();
216
216
  return;
217
217
  }
218
218
  const H = Date.now();
219
219
  if (H - C.current.lastTime < 100) {
220
220
  if (C.current.count++, C.current.count > 5) {
221
- N();
221
+ w();
222
222
  return;
223
223
  }
224
224
  } else
225
225
  C.current.count = 0;
226
226
  C.current.lastTime = H, D.current = { top: A, left: j }, u({ top: A, left: j });
227
- }, [e, t, i, N]);
227
+ }, [e, t, i, w]);
228
228
  U(() => (n && b.current ? (requestAnimationFrame(() => {
229
229
  if (S(), h.current) {
230
230
  const v = h.current.getBoundingClientRect();
231
231
  g.current = { top: v.top, left: v.left };
232
232
  }
233
- }), w.current = setInterval(k, 100)) : w.current && (clearInterval(w.current), w.current = null), () => {
234
- w.current && (clearInterval(w.current), w.current = null);
233
+ }), N.current = setInterval(k, 100)) : N.current && (clearInterval(N.current), N.current = null), () => {
234
+ N.current && (clearInterval(N.current), N.current = null);
235
235
  }), [n, S, k]), U(() => {
236
236
  if (h.current)
237
237
  return y.current = new IntersectionObserver(
238
238
  (v) => {
239
239
  v.forEach((E) => {
240
- !E.isIntersecting && n && N();
240
+ !E.isIntersecting && n && w();
241
241
  });
242
242
  },
243
243
  {
@@ -247,17 +247,17 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
247
247
  ), y.current.observe(h.current), () => {
248
248
  y.current && y.current.disconnect();
249
249
  };
250
- }, [n, N]), U(() => {
250
+ }, [n, w]), U(() => {
251
251
  if (!n) return;
252
252
  const v = () => {
253
- i || N();
253
+ i || w();
254
254
  }, E = () => {
255
- N();
255
+ w();
256
256
  };
257
257
  return window.addEventListener("scroll", v, !0), window.addEventListener("resize", E), () => {
258
258
  window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", E);
259
259
  };
260
- }, [n, i, N]);
260
+ }, [n, i, w]);
261
261
  const T = L(() => {
262
262
  o || (x.current && (clearTimeout(x.current), x.current = null), r > 0 ? x.current = setTimeout(() => {
263
263
  a(!0);
@@ -266,7 +266,7 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
266
266
  x.current && (clearTimeout(x.current), x.current = null), a(!1), u({ top: 0, left: 0 });
267
267
  }, []);
268
268
  return U(() => () => {
269
- x.current && clearTimeout(x.current), w.current && clearInterval(w.current);
269
+ x.current && clearTimeout(x.current), N.current && clearInterval(N.current);
270
270
  }, []), {
271
271
  isVisible: n,
272
272
  coords: l,
@@ -396,13 +396,13 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
396
396
  coords: p,
397
397
  adjustedPosition: x,
398
398
  triggerRef: y,
399
- tooltipRef: w,
399
+ tooltipRef: N,
400
400
  containerRef: g,
401
401
  handleMouseEnter: D,
402
402
  handleMouseLeave: C
403
- } = Zs(i, r, c, n, a), N = ta(c), k = ea(x), [S, T] = V({});
403
+ } = Zs(i, r, c, n, a), w = ta(c), k = ea(x), [S, T] = V({});
404
404
  U(() => {
405
- if (!b || !y.current || !w.current) {
405
+ if (!b || !y.current || !N.current) {
406
406
  T({});
407
407
  return;
408
408
  }
@@ -412,8 +412,8 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
412
412
  return;
413
413
  }
414
414
  requestAnimationFrame(() => {
415
- if (!y.current || !w.current) return;
416
- const j = y.current.firstElementChild, _ = (j instanceof HTMLElement ? j : y.current).getBoundingClientRect(), z = w.current.getBoundingClientRect(), R = 8, W = 8;
415
+ if (!y.current || !N.current) return;
416
+ const j = y.current.firstElementChild, _ = (j instanceof HTMLElement ? j : y.current).getBoundingClientRect(), z = N.current.getBoundingClientRect(), R = 8, W = 8;
417
417
  if (M) {
418
418
  const ie = _.left + _.width / 2 - z.left - R / 2, ae = Math.max(W, Math.min(ie, z.width - W));
419
419
  T({ left: `${ae}px`, right: "auto" });
@@ -469,9 +469,9 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
469
469
  b && (c ? /* @__PURE__ */ P(
470
470
  "div",
471
471
  {
472
- ref: w,
472
+ ref: N,
473
473
  id: o,
474
- className: I(N, "imj-ui-tooltip ui-font-body-sm-bold", l),
474
+ className: I(w, "imj-ui-tooltip ui-font-body-sm-bold", l),
475
475
  style: {
476
476
  top: `${p.top}px`,
477
477
  left: `${p.left}px`,
@@ -490,9 +490,9 @@ const Zs = (e = "top", t = "center", i = !1, r = 0, o = !1) => {
490
490
  /* @__PURE__ */ P(
491
491
  "div",
492
492
  {
493
- ref: w,
493
+ ref: N,
494
494
  id: o,
495
- className: I(N, "imj-ui-tooltip ui-font-body-sm-bold ui-text-danger", l),
495
+ className: I(w, "imj-ui-tooltip ui-font-body-sm-bold ui-text-danger", l),
496
496
  style: {
497
497
  top: `${p.top}px`,
498
498
  left: `${p.left}px`,
@@ -656,8 +656,8 @@ const ra = (e) => {
656
656
  U(() => {
657
657
  if (!t || !i || !d.current)
658
658
  return;
659
- const g = (k) => d.current ? (d.current.textContent = k, d.current.offsetWidth) : 0, D = g(f), C = g(h), N = Math.max(D, C);
660
- m((k) => N > k ? N : k);
659
+ const g = (k) => d.current ? (d.current.textContent = k, d.current.offsetWidth) : 0, D = g(f), C = g(h), w = Math.max(D, C);
660
+ m((k) => w > k ? w : k);
661
661
  }, [f, h, i, t]), U(() => {
662
662
  i || m(0);
663
663
  }, [i]);
@@ -668,7 +668,7 @@ const ra = (e) => {
668
668
  }, []), y = te(() => {
669
669
  if (i && t && u > 0)
670
670
  return { minWidth: `${u}px` };
671
- }, [i, t, u]), w = te(() => I(
671
+ }, [i, t, u]), N = te(() => I(
672
672
  "ui-absolute ui-opacity-0 ui-pointer-events-none ui-invisible ui-whitespace-nowrap ui-leading-none",
673
673
  na({ color: o, textAlign: n }),
674
674
  // Aplicar el mismo tamaño de fuente que el botón
@@ -686,7 +686,7 @@ const ra = (e) => {
686
686
  textRef: c,
687
687
  handleMouseEnter: p,
688
688
  handleMouseLeave: x,
689
- measureSpanClassName: w
689
+ measureSpanClassName: N
690
690
  };
691
691
  }, Ot = (e, t, i, r, o = !1) => {
692
692
  const a = ["solid", "icon"].includes(e) ? e : "solid", l = a !== "button", u = (d, c) => o ? c : d, m = {
@@ -794,11 +794,11 @@ const ra = (e) => {
794
794
  pointer: p,
795
795
  transition: x,
796
796
  classNameId: y,
797
- className: w,
797
+ className: N,
798
798
  isIconVariant: g,
799
799
  defaultSizeIcon: D
800
800
  }) => {
801
- const C = g ? !0 : D, N = g ? "xs" : t || "md", k = te(
801
+ const C = g ? !0 : D, w = g ? "xs" : t || "md", k = te(
802
802
  () => la(
803
803
  e,
804
804
  a,
@@ -833,17 +833,17 @@ const ra = (e) => {
833
833
  return {
834
834
  buttonClasses: te(
835
835
  () => k({
836
- size: N,
836
+ size: w,
837
837
  color: i,
838
838
  rounded: r,
839
839
  fullWidth: o,
840
840
  theme: e,
841
841
  pill: n,
842
- className: I(w)
842
+ className: I(N)
843
843
  }),
844
- [k, N, i, r, o, e, n, w]
844
+ [k, w, i, r, o, e, n, N]
845
845
  ),
846
- currentSizeIcon: N,
846
+ currentSizeIcon: w,
847
847
  currentDefaultSizeIcon: C
848
848
  };
849
849
  }, ca = (e, t, i, r, o) => o ? !0 : e ? !!(i || t !== null && t !== "" || r && r === "dot") : !1, da = (e, t, i) => {
@@ -974,7 +974,7 @@ const ha = {
974
974
  ...n
975
975
  };
976
976
  a && (y["--fa-primary-color"] = Tr[a]), l && (y["--fa-secondary-color"] = Tr[l]), u !== void 0 && (y["--fa-primary-opacity"] = u.toString()), m !== void 0 && (y["--fa-secondary-opacity"] = m.toString());
977
- const w = Ge(
977
+ const N = Ge(
978
978
  "ui-transition-all ui-duration-200 ui-ease-in-out",
979
979
  {
980
980
  variants: {
@@ -1015,7 +1015,7 @@ const ha = {
1015
1015
  size: "xs"
1016
1016
  }
1017
1017
  }
1018
- ), g = I(w({ size: i, color: r }), e), D = d ? "ui-flex ui-items-center ui-justify-center ui-shrink-0 ui-w-fit ui-h-fit" : "ui-inline-block ui-flex ui-items-center ui-justify-center";
1018
+ ), g = I(N({ size: i, color: r }), e), D = d ? "ui-flex ui-items-center ui-justify-center ui-shrink-0 ui-w-fit ui-h-fit" : "ui-inline-block ui-flex ui-items-center ui-justify-center";
1019
1019
  return o ? /* @__PURE__ */ s(
1020
1020
  "div",
1021
1021
  {
@@ -1349,7 +1349,7 @@ const sn = Fo, cr = "blue", dr = "solid", Si = "md", xa = {
1349
1349
  md: "md",
1350
1350
  lg: "md",
1351
1351
  xl: "lg"
1352
- }, w = (u == null ? void 0 : u.size) || y[i] || "md";
1352
+ }, N = (u == null ? void 0 : u.size) || y[i] || "md";
1353
1353
  if (!x) {
1354
1354
  const D = I(
1355
1355
  mi(i, r, o, n, a, l, "people"),
@@ -1358,7 +1358,7 @@ const sn = Fo, cr = "blue", dr = "solid", Si = "md", xa = {
1358
1358
  ), C = an[i];
1359
1359
  return /* @__PURE__ */ P("div", { className: "ui-imj ui-relative ui-inline-flex", children: [
1360
1360
  /* @__PURE__ */ s("div", { className: D, children: /* @__PURE__ */ s(be, { name: sn, size: C, color: "current" }) }),
1361
- u && /* @__PURE__ */ s(hi, { ...u, size: w })
1361
+ u && /* @__PURE__ */ s(hi, { ...u, size: N })
1362
1362
  ] });
1363
1363
  }
1364
1364
  const g = I(
@@ -1383,7 +1383,7 @@ const sn = Fo, cr = "blue", dr = "solid", Si = "md", xa = {
1383
1383
  loading: "lazy"
1384
1384
  }
1385
1385
  ) }),
1386
- u && /* @__PURE__ */ s(hi, { ...u, size: w })
1386
+ u && /* @__PURE__ */ s(hi, { ...u, size: N })
1387
1387
  ] });
1388
1388
  }, za = ({
1389
1389
  theme: e = dr,
@@ -1589,8 +1589,8 @@ const sn = Fo, cr = "blue", dr = "solid", Si = "md", xa = {
1589
1589
  if (typeof e == "string") {
1590
1590
  if (Fa(e))
1591
1591
  return /* @__PURE__ */ s(St, { type: "people", src: e, className: t, size: x });
1592
- const w = (a || e || "?").toString();
1593
- return /* @__PURE__ */ s(St, { type: "letter", text: w, className: t, size: x });
1592
+ const N = (a || e || "?").toString();
1593
+ return /* @__PURE__ */ s(St, { type: "letter", text: N, className: t, size: x });
1594
1594
  }
1595
1595
  return null;
1596
1596
  };
@@ -1695,7 +1695,7 @@ const ei = ({
1695
1695
  const p = e !== null ? String(e) : "", x = p !== "", y = !!l && r !== "dot";
1696
1696
  if (r !== "dot" && !x && !y && !h)
1697
1697
  return null;
1698
- const w = p.length, g = r === "dot", D = r === "sm", C = D && w === 1, N = D && w > 1, k = Ge(
1698
+ const N = p.length, g = r === "dot", D = r === "sm", C = D && N === 1, w = D && N > 1, k = Ge(
1699
1699
  "ui-inline-flex ui-items-center ui-justify-center ui-font-semibold ui-leading-none ui-overflow-hidden ui-text-body-xs-regular ui-tracking-body-xs",
1700
1700
  {
1701
1701
  variants: {
@@ -1757,7 +1757,7 @@ const ei = ({
1757
1757
  "ui-h-16 ui-w-16",
1758
1758
  "ui-p-4",
1759
1759
  y ? "ui-gap-4 ui-px-8 ui-w-auto" : ""
1760
- ].join(" ") : "", z = N ? [
1760
+ ].join(" ") : "", z = w ? [
1761
1761
  "ui-rounded-control-sm ui-h-16",
1762
1762
  "ui-px-8 ui-py-2",
1763
1763
  y ? "ui-gap-4 ui-pl-8 ui-pr-8" : ""
@@ -1984,11 +1984,11 @@ const ti = (e, t) => {
1984
1984
  badgeIconDuotoneOpacitySecondary: p,
1985
1985
  badgeLoading: x,
1986
1986
  hoverText: y,
1987
- color: w,
1987
+ color: N,
1988
1988
  rounded: g,
1989
1989
  children: D,
1990
1990
  textColor: C,
1991
- clickable: N = !0,
1991
+ clickable: w = !0,
1992
1992
  icon: k,
1993
1993
  link: S,
1994
1994
  size: T,
@@ -2042,7 +2042,7 @@ const ti = (e, t) => {
2042
2042
  tooltipProps: pt,
2043
2043
  ...dt
2044
2044
  }) => {
2045
- _a({ theme: n, size: T, color: w, pill: Oe, as: F, link: S });
2045
+ _a({ theme: n, size: T, color: N, pill: Oe, as: F, link: S });
2046
2046
  const ut = {
2047
2047
  disabled: j
2048
2048
  }, Je = k && typeof k == "object" && !Te.isValidElement(k) && "icon" in k && ("color" in k || "size" in k || "show" in k || "onClick" in k || "className" in k || "strokeWidth" in k), Ct = Je ? k : void 0, Qt = Je ? void 0 : fn({
@@ -2114,15 +2114,15 @@ const ti = (e, t) => {
2114
2114
  ), Nr = fa(Ne, ee), Sr = da(
2115
2115
  ue,
2116
2116
  Ht,
2117
- w
2117
+ N
2118
2118
  ), { buttonClasses: Ri } = ua({
2119
2119
  theme: n,
2120
2120
  size: T,
2121
- color: w,
2121
+ color: N,
2122
2122
  rounded: g,
2123
2123
  fullWidth: i,
2124
2124
  pill: Oe,
2125
- clickable: N,
2125
+ clickable: w,
2126
2126
  borderable: he,
2127
2127
  whiteBackground: Se,
2128
2128
  active: ct,
@@ -2145,7 +2145,7 @@ const ti = (e, t) => {
2145
2145
  {
2146
2146
  leftSlot: $e,
2147
2147
  size: T,
2148
- color: w,
2148
+ color: N,
2149
2149
  colorIcon: (Me == null ? void 0 : Me.colorIcon) || H,
2150
2150
  className: e,
2151
2151
  disabled: j,
@@ -2194,7 +2194,7 @@ const ti = (e, t) => {
2194
2194
  {
2195
2195
  rightSlot: st,
2196
2196
  size: T,
2197
- color: w,
2197
+ color: N,
2198
2198
  colorIcon: (Ae == null ? void 0 : Ae.colorIcon) || H,
2199
2199
  className: e,
2200
2200
  disabled: j,
@@ -2212,7 +2212,7 @@ const ti = (e, t) => {
2212
2212
  {
2213
2213
  icon: qt,
2214
2214
  size: T,
2215
- color: w,
2215
+ color: N,
2216
2216
  colorIcon: (ve == null ? void 0 : ve.color) || H,
2217
2217
  classNameIcon: (ve == null ? void 0 : ve.className) || nt,
2218
2218
  theme: n,
@@ -2271,8 +2271,8 @@ const ti = (e, t) => {
2271
2271
  {
2272
2272
  ref: ke,
2273
2273
  className: I(Ri, e),
2274
- role: N && !j ? "button" : void 0,
2275
- tabIndex: N && !j ? 0 : void 0,
2274
+ role: w && !j ? "button" : void 0,
2275
+ tabIndex: w && !j ? 0 : void 0,
2276
2276
  "aria-disabled": j,
2277
2277
  "aria-label": !Dt && k ? Xe || "Button" : void 0,
2278
2278
  onMouseEnter: zi,
@@ -2852,11 +2852,11 @@ const Ie = ({
2852
2852
  badgeIconDuotoneOpacitySecondary: p,
2853
2853
  clickable: x = !0,
2854
2854
  color: y = "primary",
2855
- rounded: w,
2855
+ rounded: N,
2856
2856
  children: g,
2857
2857
  icon: D,
2858
2858
  link: C,
2859
- size: N = "sm",
2859
+ size: w = "sm",
2860
2860
  target: k = "_self",
2861
2861
  onClickIcon: S,
2862
2862
  disabled: T,
@@ -2872,9 +2872,9 @@ const Ie = ({
2872
2872
  ref: e,
2873
2873
  theme: n,
2874
2874
  color: y,
2875
- rounded: w,
2875
+ rounded: N,
2876
2876
  fullWidth: i,
2877
- size: N,
2877
+ size: w,
2878
2878
  clickable: x,
2879
2879
  children: g,
2880
2880
  icon: D,
@@ -2973,10 +2973,10 @@ const Ie = ({
2973
2973
  showIcon: p,
2974
2974
  borderStyle: x,
2975
2975
  status: y,
2976
- ...w
2976
+ ...N
2977
2977
  }) => {
2978
- const g = Za(t, f, h), D = f && f > 0 ? g : t, C = f && f > 0 ? 0 : u, { color: N, size: k, progressSuffix: S, helperText: T, helperTextType: $ } = el({
2979
- ...w,
2978
+ const g = Za(t, f, h), D = f && f > 0 ? g : t, C = f && f > 0 ? 0 : u, { color: w, size: k, progressSuffix: S, helperText: T, helperTextType: $ } = el({
2979
+ ...N,
2980
2980
  progress: t,
2981
2981
  label: i
2982
2982
  }), v = L(
@@ -3033,7 +3033,7 @@ const Ie = ({
3033
3033
  {
3034
3034
  progress: D,
3035
3035
  size: k,
3036
- color: N,
3036
+ color: w,
3037
3037
  duration: C,
3038
3038
  withBackground: m,
3039
3039
  className: "ui-min-w-0 ui-flex-1"
@@ -3053,7 +3053,7 @@ const Ie = ({
3053
3053
  {
3054
3054
  progress: D,
3055
3055
  size: k,
3056
- color: N,
3056
+ color: w,
3057
3057
  duration: C,
3058
3058
  withBackground: m
3059
3059
  }
@@ -3084,14 +3084,14 @@ const xn = ({
3084
3084
  isLeaving: p,
3085
3085
  size: x = "sm",
3086
3086
  duration: y,
3087
- children: w,
3087
+ children: N,
3088
3088
  avatar: g
3089
3089
  }) => {
3090
3090
  process.env.NODE_ENV !== "production" && (!o && !n && console.warn('Alert: Either "message" or "title" should be provided'), y !== void 0 && (typeof y != "number" || y <= 0 || !Number.isFinite(y)) && console.warn(`Alert: "duration" must be a positive number, received: ${y}`), t && !["success", "danger", "warning", "info", "neutral", "brand"].includes(t) && console.warn(`Alert: Invalid color "${t}", using "success" as fallback`), i && !["contained", "outlined", "accent", "minimal"].includes(i) && console.warn(`Alert: Invalid variant "${i}", using "contained" as fallback`), x && !["sm", "md"].includes(x) && console.warn(`Alert: Invalid size "${x}", using "sm" as fallback`), b && !["none", "fade", "slide", "zoom", "flip", "bounce", "slide-up"].includes(b) && console.warn(`Alert: Invalid animation "${b}", using "none" as fallback`));
3091
3091
  const { isVisible: D, isLeaving: C } = Ga({ open: e, externalIsLeaving: p });
3092
3092
  if (!D)
3093
3093
  return null;
3094
- const N = !!m, k = (v) => {
3094
+ const w = !!m, k = (v) => {
3095
3095
  m && (v.stopPropagation(), m());
3096
3096
  }, S = {
3097
3097
  sm: "ui-p-12",
@@ -3121,7 +3121,7 @@ const xn = ({
3121
3121
  "ui-flex-col",
3122
3122
  r,
3123
3123
  Ya({ color: t, variant: i, isLeaving: C, animation: b }),
3124
- N && "ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out hover:ui-brightness-110"
3124
+ w && "ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out hover:ui-brightness-110"
3125
3125
  ),
3126
3126
  children: [
3127
3127
  /* @__PURE__ */ s(
@@ -3156,7 +3156,7 @@ const xn = ({
3156
3156
  ) })
3157
3157
  }
3158
3158
  ),
3159
- w,
3159
+ N,
3160
3160
  y && typeof y == "number" && y > 0 && Number.isFinite(y) ? /* @__PURE__ */ s("div", { className: "ui-w-full", children: /* @__PURE__ */ s(
3161
3161
  yn,
3162
3162
  {
@@ -3375,11 +3375,11 @@ const xn = ({
3375
3375
  onChange: p,
3376
3376
  onClickExtraSlot: x,
3377
3377
  className: y,
3378
- style: w,
3378
+ style: N,
3379
3379
  name: g,
3380
3380
  autosize: D = !1,
3381
3381
  colorLeftIcon: C,
3382
- colorRightIcon: N,
3382
+ colorRightIcon: w,
3383
3383
  colorExtraIcon: k,
3384
3384
  leftSlotDuotonePrimary: S,
3385
3385
  leftSlotDuotoneSecondary: T,
@@ -3441,7 +3441,7 @@ const xn = ({
3441
3441
  c ? "ui-w-full" : "ui-w-fit",
3442
3442
  y
3443
3443
  ),
3444
- style: w,
3444
+ style: N,
3445
3445
  children: [
3446
3446
  (e || W) && /* @__PURE__ */ P("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
3447
3447
  e && /* @__PURE__ */ s("label", { className: oe, children: e }),
@@ -3518,14 +3518,14 @@ const xn = ({
3518
3518
  className: I(
3519
3519
  `ui-absolute ${se("right")} ui-top-1/2 ui--translate-y-1/2`,
3520
3520
  "ui-inline-flex ui-leading-[0] ui-transition-colors ui-duration-150",
3521
- N ? "" : h ? "ui-text-disabled" : t ? "ui-text-danger" : "ui-text-tertiary group-focus-within:ui-text-brand"
3521
+ w ? "" : h ? "ui-text-disabled" : t ? "ui-text-danger" : "ui-text-tertiary group-focus-within:ui-text-brand"
3522
3522
  ),
3523
3523
  children: /* @__PURE__ */ s(
3524
3524
  be,
3525
3525
  {
3526
3526
  name: a,
3527
3527
  size: "sm",
3528
- color: N || "current",
3528
+ color: w || "current",
3529
3529
  colorDuotonePrimary: E,
3530
3530
  colorDuotoneSecondary: M,
3531
3531
  opacityDuotonePrimary: A,
@@ -3621,8 +3621,8 @@ const wn = (e, t = {}) => {
3621
3621
  U(() => {
3622
3622
  if (!e || t || !a) return;
3623
3623
  const d = (f) => {
3624
- var C, N;
3625
- const h = f.target, b = (C = i.current) == null ? void 0 : C.contains(h), p = (N = r == null ? void 0 : r.current) == null ? void 0 : N.contains(h), x = o ? h.closest(`[data-${n}-id="${o}"]`) : !1, y = n && !m ? h.closest(`[data-${n}-container-id="${o}"]`) : !1, w = l.some((k) => h.closest(k)), D = (() => {
3624
+ var C, w;
3625
+ const h = f.target, b = (C = i.current) == null ? void 0 : C.contains(h), p = (w = r == null ? void 0 : r.current) == null ? void 0 : w.contains(h), x = o ? h.closest(`[data-${n}-id="${o}"]`) : !1, y = n && !m ? h.closest(`[data-${n}-container-id="${o}"]`) : !1, N = l.some((k) => h.closest(k)), D = (() => {
3626
3626
  let k = h;
3627
3627
  for (; k && k !== document.body; ) {
3628
3628
  const S = k.attributes;
@@ -3652,7 +3652,7 @@ const wn = (e, t = {}) => {
3652
3652
  }
3653
3653
  return !1;
3654
3654
  })();
3655
- b || p || x || y || w || D || u();
3655
+ b || p || x || y || N || D || u();
3656
3656
  }, c = (f) => {
3657
3657
  f.detail.id === o && u();
3658
3658
  };
@@ -3676,35 +3676,35 @@ const wn = (e, t = {}) => {
3676
3676
  isDragging: !1,
3677
3677
  draggedItemId: null,
3678
3678
  dragOverItemId: null
3679
- }), a = Q(-1), l = Q(-1), u = Q(-1), m = Q(0), d = Q(null), c = L((y, w, g) => {
3680
- a.current = g, u.current = g, n((N) => ({
3681
- ...N,
3679
+ }), a = Q(-1), l = Q(-1), u = Q(-1), m = Q(0), d = Q(null), c = L((y, N, g) => {
3680
+ a.current = g, u.current = g, n((w) => ({
3681
+ ...w,
3682
3682
  isDragging: !0,
3683
- draggedItemId: w
3684
- })), y.dataTransfer.effectAllowed = "move", y.dataTransfer.setData("text/html", w);
3683
+ draggedItemId: N
3684
+ })), y.dataTransfer.effectAllowed = "move", y.dataTransfer.setData("text/html", N);
3685
3685
  const C = y.currentTarget.parentElement;
3686
3686
  if (C) {
3687
- const N = C.getBoundingClientRect(), k = document.createElement("canvas"), S = k.getContext("2d"), T = window.devicePixelRatio || 1;
3688
- if (k.width = N.width * T, k.height = N.height * T, k.style.width = `${N.width}px`, k.style.height = `${N.height}px`, S) {
3687
+ const w = C.getBoundingClientRect(), k = document.createElement("canvas"), S = k.getContext("2d"), T = window.devicePixelRatio || 1;
3688
+ if (k.width = w.width * T, k.height = w.height * T, k.style.width = `${w.width}px`, k.style.height = `${w.height}px`, S) {
3689
3689
  S.scale(T, T), window.getComputedStyle(C);
3690
3690
  const $ = getComputedStyle(document.documentElement).getPropertyValue("--color-bg-fill-hover").trim() || "#f0f1f2", v = getComputedStyle(document.documentElement).getPropertyValue("--color-border-default").trim() || "#c6c8cc", E = getComputedStyle(document.documentElement).getPropertyValue("--color-text-primary").trim() || "#313336", M = getComputedStyle(document.documentElement).getPropertyValue("--color-icon-default").trim() || "#949494";
3691
3691
  S.fillStyle = $, S.shadowColor = "rgba(0, 0, 0, 0.1)", S.shadowBlur = 8, S.shadowOffsetX = 0, S.shadowOffsetY = 2;
3692
3692
  const A = 8;
3693
- S.beginPath(), S.moveTo(A, 0), S.lineTo(N.width - A, 0), S.quadraticCurveTo(N.width, 0, N.width, A), S.lineTo(N.width, N.height - A), S.quadraticCurveTo(N.width, N.height, N.width - A, N.height), S.lineTo(A, N.height), S.quadraticCurveTo(0, N.height, 0, N.height - A), S.lineTo(0, A), S.quadraticCurveTo(0, 0, A, 0), S.closePath(), S.fill(), S.strokeStyle = v, S.lineWidth = 1, S.stroke(), S.fillStyle = E, S.font = "500 14px Inter, system-ui, sans-serif", S.textBaseline = "middle";
3693
+ S.beginPath(), S.moveTo(A, 0), S.lineTo(w.width - A, 0), S.quadraticCurveTo(w.width, 0, w.width, A), S.lineTo(w.width, w.height - A), S.quadraticCurveTo(w.width, w.height, w.width - A, w.height), S.lineTo(A, w.height), S.quadraticCurveTo(0, w.height, 0, w.height - A), S.lineTo(0, A), S.quadraticCurveTo(0, 0, A, 0), S.closePath(), S.fill(), S.strokeStyle = v, S.lineWidth = 1, S.stroke(), S.fillStyle = E, S.font = "500 14px Inter, system-ui, sans-serif", S.textBaseline = "middle";
3694
3694
  let j = C.querySelector('[class*="font-semibold"]');
3695
3695
  if (j || (j = C.querySelector('[class*="ui-font-body-sm-medium"]') || C.querySelector('[class*="ui-text-body-sm"]') || C.querySelector('[class*="ui-text-primary"]') || C.querySelector('[class*="font-body-sm-medium"]') || C.querySelector('[class*="text-primary"]') || C.querySelector(".ui-flex-1 > div:first-child")), j) {
3696
3696
  const W = j.textContent || "";
3697
- S.fillText(W, 40, N.height / 2);
3697
+ S.fillText(W, 40, w.height / 2);
3698
3698
  }
3699
3699
  S.fillStyle = M;
3700
- const H = 2, _ = 4, z = 12, R = N.height / 2;
3700
+ const H = 2, _ = 4, z = 12, R = w.height / 2;
3701
3701
  for (let W = 0; W < 3; W++)
3702
3702
  for (let Y = 0; Y < 2; Y++) {
3703
3703
  const ie = z + Y * _, ae = R - _ + W * _;
3704
3704
  S.beginPath(), S.arc(ie, ae, H, 0, Math.PI * 2), S.fill();
3705
3705
  }
3706
3706
  }
3707
- k.style.position = "absolute", k.style.top = "-9999px", k.style.left = "-9999px", document.body.appendChild(k), y.dataTransfer.setDragImage(k, 20, N.height / 2), setTimeout(() => {
3707
+ k.style.position = "absolute", k.style.top = "-9999px", k.style.left = "-9999px", document.body.appendChild(k), y.dataTransfer.setDragImage(k, 20, w.height / 2), setTimeout(() => {
3708
3708
  document.body.contains(k) && document.body.removeChild(k);
3709
3709
  }, 0);
3710
3710
  }
@@ -3715,19 +3715,19 @@ const wn = (e, t = {}) => {
3715
3715
  dragOverItemId: null
3716
3716
  }), a.current = -1, l.current = -1, u.current = -1, m.current = 0;
3717
3717
  }, []), h = L(
3718
- (y, w, g) => {
3718
+ (y, N, g) => {
3719
3719
  y.preventDefault(), y.dataTransfer.dropEffect = "move", l.current = g, i && a.current !== -1 && a.current !== g && Date.now() - m.current >= r && u.current !== g && (d.current !== null && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
3720
3720
  t == null || t(a.current, g), a.current = g, u.current = g, m.current = Date.now(), d.current = null;
3721
- })), n((D) => D.dragOverItemId !== w ? {
3721
+ })), n((D) => D.dragOverItemId !== N ? {
3722
3722
  ...D,
3723
- dragOverItemId: w
3723
+ dragOverItemId: N
3724
3724
  } : D);
3725
3725
  },
3726
3726
  [i, t, r]
3727
3727
  ), b = L((y) => {
3728
3728
  y.preventDefault();
3729
3729
  }, []), p = L(
3730
- (y, w, g) => {
3730
+ (y, N, g) => {
3731
3731
  if (y.preventDefault(), y.stopPropagation(), d.current !== null && (cancelAnimationFrame(d.current), d.current = null), !i) {
3732
3732
  const D = a.current, C = g;
3733
3733
  D !== -1 && D !== C && (t == null || t(D, C));
@@ -3790,8 +3790,8 @@ const wn = (e, t = {}) => {
3790
3790
  height: a.current.clientHeight
3791
3791
  });
3792
3792
  const f = (b) => {
3793
- const p = b.target, x = p == null ? void 0 : p.getBoundingClientRect(), y = (x == null ? void 0 : x.x) - e.x, w = (x == null ? void 0 : x.y) - e.y;
3794
- (y > 20 || y < -20 || w > 20 || w < -20) && (n(!1), t({ x: 0, y: 0 }));
3793
+ const p = b.target, x = p == null ? void 0 : p.getBoundingClientRect(), y = (x == null ? void 0 : x.x) - e.x, N = (x == null ? void 0 : x.y) - e.y;
3794
+ (y > 20 || y < -20 || N > 20 || N < -20) && (n(!1), t({ x: 0, y: 0 }));
3795
3795
  }, h = () => {
3796
3796
  n(!1), t({ x: 0, y: 0 });
3797
3797
  };
@@ -3982,11 +3982,11 @@ const wn = (e, t = {}) => {
3982
3982
  iconDuotoneOpacityPrimary: p,
3983
3983
  iconDuotoneOpacitySecondary: x,
3984
3984
  closeAtSuccess: y = !1,
3985
- successButtonText: w = "Guardar",
3985
+ successButtonText: N = "Guardar",
3986
3986
  showSuccessButton: g = !0,
3987
3987
  onCancel: D,
3988
3988
  cancelButtonText: C = "Cancelar",
3989
- closeAtCancel: N = !0,
3989
+ closeAtCancel: w = !0,
3990
3990
  showCancelButton: k = !0,
3991
3991
  showCloseButton: S = !0,
3992
3992
  closeAtCorner: T = !0,
@@ -4105,12 +4105,12 @@ const wn = (e, t = {}) => {
4105
4105
  const Se = ll(u, m);
4106
4106
  return Se.length > 0 ? Se : ml({
4107
4107
  cancelButtonText: C,
4108
- successButtonText: w,
4108
+ successButtonText: N,
4109
4109
  onCancel: D,
4110
4110
  onSuccess: c,
4111
4111
  showCancelButton: k,
4112
4112
  showSuccessButton: g,
4113
- closeAtCancel: N,
4113
+ closeAtCancel: w,
4114
4114
  closeAtSuccess: y,
4115
4115
  cancelButtonSlotLeft: B,
4116
4116
  successButtonSlotRight: K,
@@ -4123,12 +4123,12 @@ const wn = (e, t = {}) => {
4123
4123
  u,
4124
4124
  m,
4125
4125
  C,
4126
- w,
4126
+ N,
4127
4127
  D,
4128
4128
  c,
4129
4129
  k,
4130
4130
  g,
4131
- N,
4131
+ w,
4132
4132
  y,
4133
4133
  B,
4134
4134
  K,
@@ -4157,13 +4157,13 @@ const wn = (e, t = {}) => {
4157
4157
  showCloseButton: S,
4158
4158
  closeAtCorner: T,
4159
4159
  cancelButtonText: C,
4160
- successButtonText: w,
4160
+ successButtonText: N,
4161
4161
  onCancel: D,
4162
4162
  onSuccess: c,
4163
4163
  showCancelButton: k,
4164
4164
  showSuccessButton: g,
4165
4165
  closeAtSuccess: y,
4166
- closeAtCancel: N,
4166
+ closeAtCancel: w,
4167
4167
  title: $,
4168
4168
  icon: f,
4169
4169
  iconDuotonePrimary: h,
@@ -4323,13 +4323,13 @@ const wn = (e, t = {}) => {
4323
4323
  headerButtonOnClick: p,
4324
4324
  badgeIcon: x,
4325
4325
  badgeIconDuotonePrimary: y,
4326
- badgeIconDuotoneSecondary: w,
4326
+ badgeIconDuotoneSecondary: N,
4327
4327
  badgeIconDuotoneOpacityPrimary: g,
4328
4328
  badgeIconDuotoneOpacitySecondary: D,
4329
4329
  badgeLabel: C
4330
4330
  }) => {
4331
4331
  const {
4332
- onClose: N,
4332
+ onClose: w,
4333
4333
  showCloseButton: k,
4334
4334
  // Nuevo sistema procesado
4335
4335
  processedIcon: S,
@@ -4410,7 +4410,7 @@ const wn = (e, t = {}) => {
4410
4410
  oe && /* @__PURE__ */ s(
4411
4411
  me,
4412
4412
  {
4413
- onClick: N,
4413
+ onClick: w,
4414
4414
  "aria-label": "Cerrar modal",
4415
4415
  theme: "solid",
4416
4416
  color: "secondary",
@@ -4507,7 +4507,7 @@ const yl = ({ children: e, withPadding: t = !0 }) => {
4507
4507
  theme: x.theme || "solid",
4508
4508
  size: x.size || "xs",
4509
4509
  pill: x.pill || "sm",
4510
- onClick: (w) => b(x, w)
4510
+ onClick: (N) => b(x, N)
4511
4511
  }),
4512
4512
  children: x.label
4513
4513
  },
@@ -4527,14 +4527,14 @@ const yl = ({ children: e, withPadding: t = !0 }) => {
4527
4527
  padding: l = "md",
4528
4528
  aspect: u = "none"
4529
4529
  }) => {
4530
- const { hideFooter: m, currentTab: d } = Ci(), [c, f] = V(!1), [h, b] = V(!1), p = Q(null), x = Q(d), [y, w] = V(null), [g, D] = V(
4530
+ const { hideFooter: m, currentTab: d } = Ci(), [c, f] = V(!1), [h, b] = V(!1), p = Q(null), x = Q(d), [y, N] = V(null), [g, D] = V(
4531
4531
  null
4532
- ), [C, N] = V(null), [k, S] = V(null), [T, $] = V(null), v = L((z, R) => {
4532
+ ), [C, w] = V(null), [k, S] = V(null), [T, $] = V(null), v = L((z, R) => {
4533
4533
  const W = z.getBoundingClientRect(), Y = R.getBoundingClientRect(), ie = Y.top - W.top, ae = Y.left - W.left;
4534
4534
  D({
4535
4535
  width: Y.width,
4536
4536
  height: Y.height
4537
- }), N({
4537
+ }), w({
4538
4538
  top: ie,
4539
4539
  left: ae
4540
4540
  });
@@ -4544,7 +4544,7 @@ const yl = ({ children: e, withPadding: t = !0 }) => {
4544
4544
  let z = p.current.parentElement, R = 0;
4545
4545
  for (; z && R < 10; ) {
4546
4546
  if (z.classList.contains("ui-p-16")) {
4547
- w(z), $(z);
4547
+ N(z), $(z);
4548
4548
  let W = z.parentElement, Y = 0;
4549
4549
  for (; W && Y < 10; ) {
4550
4550
  if ((W.classList.contains("ui-rounded-surface-modal") || W.classList.contains("ui-rounded-lg")) && W.classList.contains("ui-bg-fill") && W.classList.contains("ui-flex")) {
@@ -4557,7 +4557,7 @@ const yl = ({ children: e, withPadding: t = !0 }) => {
4557
4557
  }
4558
4558
  z = z.parentElement, R++;
4559
4559
  }
4560
- } else !c && !h && (w(null), D(null), N(null), S(null), $(null));
4560
+ } else !c && !h && (N(null), D(null), w(null), S(null), $(null));
4561
4561
  }, [c, h, v]), U(() => {
4562
4562
  if (c && y) {
4563
4563
  const z = window.getComputedStyle(y).position;
@@ -4908,11 +4908,11 @@ const Sl = ({
4908
4908
  zIndex: p = 50,
4909
4909
  showCancelButton: x,
4910
4910
  showSuccessButton: y,
4911
- closeAtSuccess: w,
4911
+ closeAtSuccess: N,
4912
4912
  closeAtCancel: g,
4913
4913
  tabs: D,
4914
4914
  defaultValueTab: C,
4915
- onChangeTab: N,
4915
+ onChangeTab: w,
4916
4916
  headerButtonIcon: k,
4917
4917
  iconDuotonePrimary: S,
4918
4918
  iconDuotoneSecondary: T,
@@ -5006,7 +5006,7 @@ const Sl = ({
5006
5006
  onSuccess: h,
5007
5007
  showCancelButton: x,
5008
5008
  showSuccessButton: y,
5009
- closeAtSuccess: w,
5009
+ closeAtSuccess: N,
5010
5010
  closeAtCancel: g,
5011
5011
  title: b,
5012
5012
  icon: i,
@@ -5028,7 +5028,7 @@ const Sl = ({
5028
5028
  footerButtonOnClick: ie,
5029
5029
  tabs: D,
5030
5030
  defaultValueTab: C,
5031
- onChangeTab: N,
5031
+ onChangeTab: w,
5032
5032
  cancelButtonSlotLeft: ae,
5033
5033
  successButtonSlotRight: X,
5034
5034
  disableCancelButton: O,
@@ -5082,12 +5082,12 @@ const Sl = ({
5082
5082
  iconContentDuotoneOpacityPrimary: p,
5083
5083
  iconContentDuotoneOpacitySecondary: x,
5084
5084
  placeholder: y = "",
5085
- title: w,
5085
+ title: N,
5086
5086
  successButtonColor: g = "destructive",
5087
5087
  successButtonText: D = "Confirmar",
5088
5088
  size: C = "md"
5089
5089
  }) => {
5090
- const [N, k] = V("");
5090
+ const [w, k] = V("");
5091
5091
  return /* @__PURE__ */ s(
5092
5092
  Or,
5093
5093
  {
@@ -5096,13 +5096,13 @@ const Sl = ({
5096
5096
  onSuccess: a,
5097
5097
  size: C,
5098
5098
  zIndex: 60,
5099
- disableSuccessButton: n ? N !== n : !1,
5099
+ disableSuccessButton: n ? w !== n : !1,
5100
5100
  icon: l,
5101
5101
  iconDuotonePrimary: u,
5102
5102
  iconDuotoneSecondary: m,
5103
5103
  iconDuotoneOpacityPrimary: d,
5104
5104
  iconDuotoneOpacitySecondary: c,
5105
- title: w,
5105
+ title: N,
5106
5106
  successButtonColor: g,
5107
5107
  successButtonText: D,
5108
5108
  children: /* @__PURE__ */ s(Or.Body, { children: /* @__PURE__ */ P("div", { className: "ui-flex ui-flex-col ui-items-center ui-gap-4 ui-p-4", children: [
@@ -5127,7 +5127,7 @@ const Sl = ({
5127
5127
  {
5128
5128
  fullWidth: !0,
5129
5129
  label: i,
5130
- value: N,
5130
+ value: w,
5131
5131
  onChange: (S) => k(S.target.value),
5132
5132
  placeholder: y
5133
5133
  }
@@ -5231,7 +5231,7 @@ const Sl = ({
5231
5231
  disabled: ""
5232
5232
  }
5233
5233
  }
5234
- }), w = Ge(
5234
+ }), N = Ge(
5235
5235
  "ui-flex ui-items-center ui-justify-center ui-shrink-0 ui-rounded-control-xs ui-transition-colors ui-p-2",
5236
5236
  {
5237
5237
  variants: {
@@ -5258,7 +5258,7 @@ const Sl = ({
5258
5258
  disabled: ""
5259
5259
  }
5260
5260
  }
5261
- }), D = l || i === "disabled", C = D ? "disabled" : i, N = I(
5261
+ }), D = l || i === "disabled", C = D ? "disabled" : i, w = I(
5262
5262
  "ui-inline-flex ui-items-center ui-font-body-xs-semibold ui-transition-colors",
5263
5263
  "ui-text-body-xs-regular ui-pl-6 ui-pr-4 ui-py-2 ui-gap-4 ui-rounded-control-sm",
5264
5264
  n ? "ui-border" : "ui-border-0",
@@ -5281,7 +5281,7 @@ const Sl = ({
5281
5281
  }, $ = () => {
5282
5282
  f(!1);
5283
5283
  }, v = I(
5284
- w({ color: C }),
5284
+ N({ color: C }),
5285
5285
  !D && "ui-cursor-pointer",
5286
5286
  !D && g({ color: C }),
5287
5287
  D && "ui-cursor-not-allowed"
@@ -5289,7 +5289,7 @@ const Sl = ({
5289
5289
  return /* @__PURE__ */ P(
5290
5290
  "div",
5291
5291
  {
5292
- className: I("ui-imj", N),
5292
+ className: I("ui-imj", w),
5293
5293
  onClick: S,
5294
5294
  onMouseDown: T,
5295
5295
  onMouseUp: $,
@@ -5348,7 +5348,7 @@ const Sl = ({
5348
5348
  () => kl(e, t, i),
5349
5349
  // eslint-disable-next-line react-hooks/exhaustive-deps -- intención: valor inicial solo al montar
5350
5350
  []
5351
- ), [u, m] = V(l), [d, c] = V(""), [f, h] = V(!1), [b, p] = V(l.length), x = te(() => r === void 0 ? !0 : u.length < r, [u.length, r]), y = L(() => !i || i.length === 0 ? t : i[b % i.length], [i, b, t]), w = L(
5351
+ ), [u, m] = V(l), [d, c] = V(""), [f, h] = V(!1), [b, p] = V(l.length), x = te(() => r === void 0 ? !0 : u.length < r, [u.length, r]), y = L(() => !i || i.length === 0 ? t : i[b % i.length], [i, b, t]), N = L(
5352
5352
  (D) => {
5353
5353
  const C = D.trim();
5354
5354
  if (!C || !x || u.some(
@@ -5370,11 +5370,11 @@ const Sl = ({
5370
5370
  (D) => {
5371
5371
  const C = u.find((k) => k.id === D);
5372
5372
  if (!C) return;
5373
- const N = u.filter((k) => k.id !== D);
5374
- m(N), a == null || a(C), o == null || o({
5373
+ const w = u.filter((k) => k.id !== D);
5374
+ m(w), a == null || a(C), o == null || o({
5375
5375
  type: "remove",
5376
5376
  item: C,
5377
- items: N
5377
+ items: w
5378
5378
  });
5379
5379
  },
5380
5380
  [u, a, o]
@@ -5385,7 +5385,7 @@ const Sl = ({
5385
5385
  isFocused: f,
5386
5386
  setInputValue: c,
5387
5387
  setIsFocused: h,
5388
- addBadge: w,
5388
+ addBadge: N,
5389
5389
  removeBadge: g,
5390
5390
  canAddMore: x,
5391
5391
  getNextColor: y,
@@ -5415,11 +5415,11 @@ const Sl = ({
5415
5415
  onBlur: p,
5416
5416
  className: x
5417
5417
  }) => {
5418
- const y = Q(null), w = Q(null), {
5418
+ const y = Q(null), N = Q(null), {
5419
5419
  badges: g,
5420
5420
  inputValue: D,
5421
5421
  isFocused: C,
5422
- setInputValue: N,
5422
+ setInputValue: w,
5423
5423
  setIsFocused: k,
5424
5424
  addBadge: S,
5425
5425
  removeBadge: T,
@@ -5460,7 +5460,7 @@ const Sl = ({
5460
5460
  );
5461
5461
  return /* @__PURE__ */ P("div", { className: I("ui-flex ui-flex-col ui-gap-1", m ? "ui-w-full" : "ui-w-fit"), children: [
5462
5462
  i && /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: /* @__PURE__ */ s("label", { className: H, children: i }) }),
5463
- /* @__PURE__ */ P("div", { ref: w, className: j, onClick: A, children: [
5463
+ /* @__PURE__ */ P("div", { ref: N, className: j, onClick: A, children: [
5464
5464
  g.map((_) => /* @__PURE__ */ s(
5465
5465
  Gt,
5466
5466
  {
@@ -5477,7 +5477,7 @@ const Sl = ({
5477
5477
  ref: y,
5478
5478
  type: "text",
5479
5479
  value: D,
5480
- onChange: (_) => N(_.target.value),
5480
+ onChange: (_) => w(_.target.value),
5481
5481
  onKeyDown: v,
5482
5482
  onFocus: E,
5483
5483
  onBlur: M,
@@ -5552,7 +5552,7 @@ const Vt = ({
5552
5552
  // Figma: border/focus = #627dd0 (siempre, 1px)
5553
5553
  !r && "focus:ui-border-focus focus:ui-outline-none",
5554
5554
  n
5555
- ), w = d || c, g = /* @__PURE__ */ P("div", { className: "ui-imj ui-relative ui-inline-flex ui-flex-shrink-0 ui-items-center ui-justify-center", children: [
5555
+ ), N = d || c, g = /* @__PURE__ */ P("div", { className: "ui-imj ui-relative ui-inline-flex ui-flex-shrink-0 ui-items-center ui-justify-center", children: [
5556
5556
  /* @__PURE__ */ s(
5557
5557
  "input",
5558
5558
  {
@@ -5596,7 +5596,7 @@ const Vt = ({
5596
5596
  }
5597
5597
  )
5598
5598
  ] });
5599
- return w ? /* @__PURE__ */ s("div", { className: "ui-imj ui-flex ui-items-start", children: /* @__PURE__ */ P("div", { className: I("ui-flex ui-items-center ui-gap-8", f), children: [
5599
+ return N ? /* @__PURE__ */ s("div", { className: "ui-imj ui-flex ui-items-start", children: /* @__PURE__ */ P("div", { className: I("ui-flex ui-items-center ui-gap-8", f), children: [
5600
5600
  g,
5601
5601
  /* @__PURE__ */ P("div", { className: "ui-flex ui-flex-col ui-gap-4", children: [
5602
5602
  d && /* @__PURE__ */ s(
@@ -5728,8 +5728,8 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5728
5728
  disabled: l = !1,
5729
5729
  absolute: u = !1
5730
5730
  }) => {
5731
- const m = xi(), d = o || `popup-${m}`, [c, f] = V(!1), [h, b] = V({}), [p, x] = V(!1), y = Q(null), w = Q(null), g = Q(null), D = L(() => {
5732
- const k = y.current, S = w.current;
5731
+ const m = xi(), d = o || `popup-${m}`, [c, f] = V(!1), [h, b] = V({}), [p, x] = V(!1), y = Q(null), N = Q(null), g = Q(null), D = L(() => {
5732
+ const k = y.current, S = N.current;
5733
5733
  if (!k || !S) return;
5734
5734
  const T = k.getBoundingClientRect(), $ = S.getBoundingClientRect();
5735
5735
  if ($.width === 0 || $.height === 0)
@@ -5791,14 +5791,14 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5791
5791
  };
5792
5792
  b(H), x(!0);
5793
5793
  }, [e, t, d, u]), C = (k) => {
5794
- k && k.stopPropagation(), !l && (c ? N() : (El(d), b({}), x(!1), f(!0), Ki.add(d), n == null || n()));
5795
- }, N = () => {
5794
+ k && k.stopPropagation(), !l && (c ? w() : (El(d), b({}), x(!1), f(!0), Ki.add(d), n == null || n()));
5795
+ }, w = () => {
5796
5796
  f(!1), x(!1), Ki.delete(d), a == null || a();
5797
5797
  };
5798
5798
  return U(() => {
5799
5799
  if (c) {
5800
5800
  const k = () => {
5801
- const S = w.current;
5801
+ const S = N.current;
5802
5802
  if (S) {
5803
5803
  const T = S.getBoundingClientRect();
5804
5804
  T.width > 0 && T.height > 0 && T.width !== 0 && T.height !== 0 ? D() : setTimeout(() => {
@@ -5824,22 +5824,22 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5824
5824
  }, [c, p, u, D]), Sn({
5825
5825
  isActive: c,
5826
5826
  disabled: l,
5827
- elementRef: w,
5827
+ elementRef: N,
5828
5828
  containerRef: g,
5829
5829
  elementId: d,
5830
5830
  elementType: "popup",
5831
5831
  closeOnClickOutside: i,
5832
- onOutsideClick: N
5833
- }), fr(c, N, !r), {
5832
+ onOutsideClick: w
5833
+ }), fr(c, w, !r), {
5834
5834
  isOpen: c,
5835
5835
  popupStyle: h,
5836
5836
  isPositioned: p,
5837
5837
  triggerRef: y,
5838
- popupRef: w,
5838
+ popupRef: N,
5839
5839
  containerRef: g,
5840
5840
  popupUniqueId: d,
5841
5841
  togglePopup: C,
5842
- closePopup: N
5842
+ closePopup: w
5843
5843
  };
5844
5844
  }, Kt = $t(
5845
5845
  ({
@@ -5861,11 +5861,11 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5861
5861
  rounded: p = !1,
5862
5862
  leftSlot: x,
5863
5863
  borderRadius: y = "sm",
5864
- rightSlot: w,
5864
+ rightSlot: N,
5865
5865
  icon: g,
5866
5866
  colorIcon: D,
5867
5867
  pill: C = "xs",
5868
- tooltip: N,
5868
+ tooltip: w,
5869
5869
  tooltipPosition: k,
5870
5870
  tooltipAlignment: S,
5871
5871
  tooltipDelay: T,
@@ -5953,8 +5953,8 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5953
5953
  classNameIcon: void 0,
5954
5954
  strokeWidth: void 0,
5955
5955
  onClickIcon: void 0
5956
- }), q = F || G || (g ? { icon: g } : void 0), Z = N && typeof N == "object" && ("label" in N || "position" in N || "alignment" in N || "delay" in N || "absolute" in N || "className" in N), re = Z ? N : void 0, de = Z ? void 0 : mn({
5957
- tooltip: N,
5956
+ }), q = F || G || (g ? { icon: g } : void 0), Z = w && typeof w == "object" && ("label" in w || "position" in w || "alignment" in w || "delay" in w || "absolute" in w || "className" in w), re = Z ? w : void 0, de = Z ? void 0 : mn({
5957
+ tooltip: w,
5958
5958
  tooltipPosition: k,
5959
5959
  tooltipAlignment: S,
5960
5960
  tooltipDelay: T,
@@ -5981,7 +5981,7 @@ const Ki = /* @__PURE__ */ new Set(), El = (e) => {
5981
5981
  rounded: p,
5982
5982
  iconProps: q,
5983
5983
  leftSlot: x,
5984
- rightSlot: w,
5984
+ rightSlot: N,
5985
5985
  textColor: b,
5986
5986
  tooltipProps: ge,
5987
5987
  transition: j,
@@ -6024,20 +6024,20 @@ const Il = ({
6024
6024
  f(t ?? null);
6025
6025
  }, [t]);
6026
6026
  const { actions: h, activeTabContent: b } = te(() => {
6027
- const w = {};
6027
+ const N = {};
6028
6028
  let g = null;
6029
6029
  return Te.Children.forEach(e, (D) => {
6030
6030
  if (Te.isValidElement(D)) {
6031
6031
  const C = D.props;
6032
6032
  if (C.Component)
6033
- w[C.id] = {
6033
+ N[C.id] = {
6034
6034
  component: C.Component,
6035
6035
  tooltip: C.tooltip,
6036
6036
  tooltipPosition: C.tooltipPosition
6037
6037
  };
6038
6038
  else if (C.icon) {
6039
- const N = typeof C.icon == "string" ? C.icon : C.id || "icon";
6040
- w[N] = {
6039
+ const w = typeof C.icon == "string" ? C.icon : C.id || "icon";
6040
+ N[w] = {
6041
6041
  id: C.id,
6042
6042
  tooltip: C.tooltip,
6043
6043
  tooltipPosition: C.tooltipPosition,
@@ -6057,9 +6057,9 @@ const Il = ({
6057
6057
  C.id
6058
6058
  ));
6059
6059
  }
6060
- }), { actions: w, activeTabContent: g };
6061
- }, [e, c]), p = (w) => {
6062
- w && f(w === c ? null : w);
6060
+ }), { actions: N, activeTabContent: g };
6061
+ }, [e, c]), p = (N) => {
6062
+ N && f(N === c ? null : N);
6063
6063
  }, x = typeof l == "number" ? `${l}px` : l, y = typeof u == "number" ? `${u}px` : u;
6064
6064
  return /* @__PURE__ */ P(
6065
6065
  "div",
@@ -6136,16 +6136,16 @@ const Il = ({
6136
6136
  )
6137
6137
  }
6138
6138
  ) }),
6139
- /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-1 ui-flex-col ui-items-center ui-justify-center ui-gap-8", children: Object.entries(h).map(([w, g]) => {
6139
+ /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-1 ui-flex-col ui-items-center ui-justify-center ui-gap-8", children: Object.entries(h).map(([N, g]) => {
6140
6140
  if (g.component)
6141
- return /* @__PURE__ */ s(Te.Fragment, { children: g.component }, w);
6141
+ return /* @__PURE__ */ s(Te.Fragment, { children: g.component }, N);
6142
6142
  {
6143
- const D = c === g.id, C = g.icon, N = g.tooltipPosition || d;
6143
+ const D = c === g.id, C = g.icon, w = g.tooltipPosition || d;
6144
6144
  return /* @__PURE__ */ s(
6145
6145
  Bt,
6146
6146
  {
6147
6147
  label: g.tooltip || "",
6148
- position: N,
6148
+ position: w,
6149
6149
  disabled: !m || !g.tooltip,
6150
6150
  children: /* @__PURE__ */ s(
6151
6151
  Ie,
@@ -6158,7 +6158,7 @@ const Il = ({
6158
6158
  }
6159
6159
  )
6160
6160
  },
6161
- w
6161
+ N
6162
6162
  );
6163
6163
  }
6164
6164
  }) })
@@ -6212,9 +6212,9 @@ const Pl = (e) => {
6212
6212
  portalPosition: { top: 0, left: 0 },
6213
6213
  pendingDate: null,
6214
6214
  pendingRange: { start: null, end: null }
6215
- }), [m, d] = V(!1), c = Q(null), f = Q(null), h = Q(null), b = t === "single" ? e.selectedDate !== void 0 : e.selectedRange !== void 0, p = t === "single" ? e.selectedDate === void 0 : e.selectedRange === void 0, x = t === "single" ? n === !1 && l.pendingDate !== null ? l.pendingDate : p ? l.internalDate : i : null, y = t === "single" ? p ? l.internalDate : i : null, w = t === "range" ? a === !1 && (l.pendingRange.start || l.pendingRange.end) ? l.pendingRange : p ? l.internalRange : r : { start: null, end: null }, g = t === "range" ? p ? l.internalRange : r : { start: null, end: null }, D = (O) => O != null && O instanceof Date && !isNaN(O.getTime()), C = D(x) ? x : null, N = {
6216
- start: D(w == null ? void 0 : w.start) ? w.start : null,
6217
- end: D(w == null ? void 0 : w.end) ? w.end : null
6215
+ }), [m, d] = V(!1), c = Q(null), f = Q(null), h = Q(null), b = t === "single" ? e.selectedDate !== void 0 : e.selectedRange !== void 0, p = t === "single" ? e.selectedDate === void 0 : e.selectedRange === void 0, x = t === "single" ? n === !1 && l.pendingDate !== null ? l.pendingDate : p ? l.internalDate : i : null, y = t === "single" ? p ? l.internalDate : i : null, N = t === "range" ? a === !1 && (l.pendingRange.start || l.pendingRange.end) ? l.pendingRange : p ? l.internalRange : r : { start: null, end: null }, g = t === "range" ? p ? l.internalRange : r : { start: null, end: null }, D = (O) => O != null && O instanceof Date && !isNaN(O.getTime()), C = D(x) ? x : null, w = {
6216
+ start: D(N == null ? void 0 : N.start) ? N.start : null,
6217
+ end: D(N == null ? void 0 : N.end) ? N.end : null
6218
6218
  }, k = D(y) ? y : null, S = te(
6219
6219
  () => ({
6220
6220
  start: D(g == null ? void 0 : g.start) ? g.start : null,
@@ -6360,7 +6360,7 @@ const Pl = (e) => {
6360
6360
  }, [l.isOpen, X]), {
6361
6361
  state: l,
6362
6362
  selectedDate: C,
6363
- selectedRange: N,
6363
+ selectedRange: w,
6364
6364
  selectedDateForInput: k,
6365
6365
  selectedRangeForInput: S,
6366
6366
  inputRef: c,
@@ -6410,18 +6410,18 @@ const Pl = (e) => {
6410
6410
  };
6411
6411
  y = n(c, C);
6412
6412
  }
6413
- let w = !1;
6413
+ let N = !1;
6414
6414
  if (e.start && e.end && p && !h) {
6415
6415
  const C = new Date(c);
6416
- C.setDate(c.getDate() - 1), w = !n(C, e);
6416
+ C.setDate(c.getDate() - 1), N = !n(C, e);
6417
6417
  } else if (e.start && !e.end && f && y) {
6418
6418
  const C = new Date(c);
6419
6419
  C.setDate(c.getDate() - 1);
6420
- const N = {
6420
+ const w = {
6421
6421
  start: e.start < f ? e.start : f,
6422
6422
  end: e.start < f ? f : e.start
6423
6423
  };
6424
- w = !n(C, N);
6424
+ N = !n(C, w);
6425
6425
  }
6426
6426
  let g = !1;
6427
6427
  if (e.start && e.end && p && !b) {
@@ -6430,11 +6430,11 @@ const Pl = (e) => {
6430
6430
  } else if (e.start && !e.end && f && y) {
6431
6431
  const C = new Date(c);
6432
6432
  C.setDate(c.getDate() + 1);
6433
- const N = {
6433
+ const w = {
6434
6434
  start: e.start < f ? e.start : f,
6435
6435
  end: e.start < f ? f : e.start
6436
6436
  };
6437
- g = !n(C, N);
6437
+ g = !n(C, w);
6438
6438
  }
6439
6439
  let D = !0;
6440
6440
  return e.start && !e.end && f ? D = f >= e.start : e.start && e.end && (D = c >= e.start), {
@@ -6443,7 +6443,7 @@ const Pl = (e) => {
6443
6443
  isStart: h,
6444
6444
  isEnd: b,
6445
6445
  isInRange: p,
6446
- isFirstInRange: w,
6446
+ isFirstInRange: N,
6447
6447
  isLastInRange: g,
6448
6448
  afterSelected: D,
6449
6449
  isDisabled: x,
@@ -6485,8 +6485,8 @@ const Pl = (e) => {
6485
6485
  x.push(null);
6486
6486
  for (let g = 1; g <= b; g++)
6487
6487
  x.push(g);
6488
- const w = (7 - x.length % 7) % 7;
6489
- for (let g = 0; g < w; g++)
6488
+ const N = (7 - x.length % 7) % 7;
6489
+ for (let g = 0; g < N; g++)
6490
6490
  x.push(null);
6491
6491
  return x;
6492
6492
  },
@@ -6532,7 +6532,7 @@ const Pl = (e) => {
6532
6532
  if (!h) return null;
6533
6533
  const p = b.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), x = new RegExp(`^${p}$`), y = h.match(x);
6534
6534
  if (!y) return null;
6535
- const [, w, g, D] = y, C = new Date(parseInt(D), parseInt(g) - 1, parseInt(w));
6535
+ const [, N, g, D] = y, C = new Date(parseInt(D), parseInt(g) - 1, parseInt(N));
6536
6536
  return isNaN(C.getTime()) ? null : C;
6537
6537
  }, []), m = L(
6538
6538
  (h, b) => u(h, b) !== null,
@@ -6580,8 +6580,8 @@ const Pl = (e) => {
6580
6580
  const y = Q(null);
6581
6581
  if (e === null)
6582
6582
  return /* @__PURE__ */ s("div", { className: "ui-h-control-xs ui-w-control-xs" });
6583
- const w = (N) => {
6584
- N.stopPropagation(), m || f(t);
6583
+ const N = (w) => {
6584
+ w.stopPropagation(), m || f(t);
6585
6585
  }, g = () => {
6586
6586
  !m && h && (y.current && (clearTimeout(y.current), y.current = null), h(t));
6587
6587
  }, D = () => {
@@ -6589,8 +6589,8 @@ const Pl = (e) => {
6589
6589
  b(), y.current = null;
6590
6590
  }, 100) : b());
6591
6591
  }, C = () => {
6592
- let N = `ui-w-control-xs ui-h-control-xs ui-flex ui-items-center ui-select-none ui-justify-center ui-font-body-xs-medium ui-leading-body-xs-medium ui-tracking-body-xs ui-rounded-control-sm ${!l && !r && !a ? "hover:ui-bg-surface-brand hover:ui-text-blue-500 hover:ui-cursor-pointer" : ""} ui-text-body-xs-medium ui-transition-colors `;
6593
- return m ? N += " ui-text-disabled ui-cursor-not-allowed" : i ? N += " ui-bg-fill-brand ui-text-white " : o ? N += ` ui-bg-fill-brand ui-text-white ${u ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : n ? N += ` ui-bg-fill-brand ui-text-white ${u ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : r ? N += " ui-bg-surface-brand ui-text-brand" : c ? N += " ui-bg-surface-brand hover:ui-bg-surface-brand-hover" : d ? N += " ui-text-brand" : N += "hover:ui-bg-surface-disabled", `${N} ${p}`;
6592
+ let w = `ui-w-control-xs ui-h-control-xs ui-flex ui-items-center ui-select-none ui-justify-center ui-font-body-xs-medium ui-leading-body-xs-medium ui-tracking-body-xs ui-rounded-control-sm ${!l && !r && !a ? "hover:ui-bg-surface-brand hover:ui-text-blue-500 hover:ui-cursor-pointer" : ""} ui-text-body-xs-medium ui-transition-colors `;
6593
+ return m ? w += " ui-text-disabled ui-cursor-not-allowed" : i ? w += " ui-bg-fill-brand ui-text-white " : o ? w += ` ui-bg-fill-brand ui-text-white ${u ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : n ? w += ` ui-bg-fill-brand ui-text-white ${u ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : r ? w += " ui-bg-surface-brand ui-text-brand" : c ? w += " ui-bg-surface-brand hover:ui-bg-surface-brand-hover" : d ? w += " ui-text-brand" : w += "hover:ui-bg-surface-disabled", `${w} ${p}`;
6594
6594
  };
6595
6595
  return x ? x({
6596
6596
  day: e,
@@ -6608,7 +6608,7 @@ const Pl = (e) => {
6608
6608
  "div",
6609
6609
  {
6610
6610
  className: C(),
6611
- onClick: w,
6611
+ onClick: N,
6612
6612
  onMouseEnter: g,
6613
6613
  onMouseLeave: D,
6614
6614
  role: "button",
@@ -6777,7 +6777,7 @@ const Pl = (e) => {
6777
6777
  onDateHover: o,
6778
6778
  minDate: n,
6779
6779
  maxDate: a,
6780
- weekDays: l = ["D", "L", "M", "M", "J", "V", "S"],
6780
+ weekDays: l = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"],
6781
6781
  startOfWeek: u = 1,
6782
6782
  showWeekNumbers: m = !1,
6783
6783
  hoverDate: d,
@@ -6793,43 +6793,46 @@ const Pl = (e) => {
6793
6793
  },
6794
6794
  n,
6795
6795
  a
6796
- ), p = (w) => t ? w.getTime() === t.getTime() : !1, x = (w) => !!(n && w < n || a && w > a), y = f(e, u);
6796
+ ), p = (g) => t ? g.getTime() === t.getTime() : !1, x = (g) => !!(n && g < n || a && g > a), y = f(e, u), N = Array.from(
6797
+ { length: 7 },
6798
+ (g, D) => l[(u + D) % 7]
6799
+ );
6797
6800
  return /* @__PURE__ */ P("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
6798
- l.map((w, g) => /* @__PURE__ */ s(Ol, { day: w }, g)),
6799
- y.map((w, g) => {
6800
- if (w === null)
6801
- return /* @__PURE__ */ s("div", { className: "ui-h-control-xs ui-w-control-xs" }, g);
6802
- const D = new Date(e.getFullYear(), e.getMonth(), w), C = i ? b(D, d || null) : {
6801
+ N.map((g, D) => /* @__PURE__ */ s(Ol, { day: g }, D)),
6802
+ y.map((g, D) => {
6803
+ if (g === null)
6804
+ return /* @__PURE__ */ s("div", { className: "ui-h-control-xs ui-w-control-xs" }, D);
6805
+ const C = new Date(e.getFullYear(), e.getMonth(), g), w = i ? b(C, d || null) : {
6803
6806
  isStart: !1,
6804
6807
  isEnd: !1,
6805
6808
  isInRange: !1,
6806
6809
  isFirstInRange: !1,
6807
6810
  isLastInRange: !1,
6808
6811
  afterSelected: !0,
6809
- isDisabled: x(D),
6812
+ isDisabled: x(C),
6810
6813
  isHovered: !1
6811
6814
  };
6812
6815
  return /* @__PURE__ */ s(
6813
6816
  Ll,
6814
6817
  {
6815
- day: w,
6816
- date: D,
6817
- isSelected: p(D),
6818
- isInRange: C.isInRange,
6819
- isStart: C.isStart,
6820
- isEnd: C.isEnd,
6821
- isFirstInRange: C.isFirstInRange,
6822
- isLastInRange: C.isLastInRange,
6823
- afterSelected: C.afterSelected,
6824
- isDisabled: C.isDisabled,
6825
- isToday: h(D),
6826
- isHovered: C.isHovered,
6818
+ day: g,
6819
+ date: C,
6820
+ isSelected: p(C),
6821
+ isInRange: w.isInRange,
6822
+ isStart: w.isStart,
6823
+ isEnd: w.isEnd,
6824
+ isFirstInRange: w.isFirstInRange,
6825
+ isLastInRange: w.isLastInRange,
6826
+ afterSelected: w.afterSelected,
6827
+ isDisabled: w.isDisabled,
6828
+ isToday: h(C),
6829
+ isHovered: w.isHovered,
6827
6830
  onClick: r,
6828
6831
  onMouseEnter: o,
6829
6832
  onMouseLeave: () => o == null ? void 0 : o(null),
6830
6833
  renderDay: c
6831
6834
  },
6832
- g
6835
+ D
6833
6836
  );
6834
6837
  })
6835
6838
  ] });
@@ -6913,7 +6916,7 @@ const Pl = (e) => {
6913
6916
  !u && o && o(g.target.value);
6914
6917
  }, y = () => {
6915
6918
  !u && n && n();
6916
- }, w = () => {
6919
+ }, N = () => {
6917
6920
  !u && a && a();
6918
6921
  };
6919
6922
  return /* @__PURE__ */ s(
@@ -6930,7 +6933,7 @@ const Pl = (e) => {
6930
6933
  extraSlot: or,
6931
6934
  onChange: x,
6932
6935
  onFocus: y,
6933
- onBlur: w,
6936
+ onBlur: N,
6934
6937
  className: l,
6935
6938
  disabled: u,
6936
6939
  readOnly: !0,
@@ -7021,7 +7024,7 @@ const Pl = (e) => {
7021
7024
  minDate: n,
7022
7025
  maxDate: a,
7023
7026
  viewMode: l,
7024
- weekDays: u = ["D", "L", "M", "M", "J", "V", "S"],
7027
+ weekDays: u = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"],
7025
7028
  monthNames: m = [
7026
7029
  "Enero",
7027
7030
  "Febrero",
@@ -7046,7 +7049,7 @@ const Pl = (e) => {
7046
7049
  }) => {
7047
7050
  const y = (D) => {
7048
7051
  b == null || b(D);
7049
- }, w = (D) => {
7052
+ }, N = (D) => {
7050
7053
  p == null || p(D);
7051
7054
  };
7052
7055
  return /* @__PURE__ */ s("div", { className: "ui-flex ui-h-full ui-justify-center ui-p-3", children: (() => {
@@ -7085,7 +7088,7 @@ const Pl = (e) => {
7085
7088
  {
7086
7089
  currentDate: e,
7087
7090
  selectedYear: e.getFullYear(),
7088
- onYearSelect: w,
7091
+ onYearSelect: N,
7089
7092
  yearRange: f
7090
7093
  }
7091
7094
  );
@@ -7108,7 +7111,7 @@ const Pl = (e) => {
7108
7111
  onYearSelect: c,
7109
7112
  onGoToToday: f,
7110
7113
  locale: h = "es-ES",
7111
- weekDays: b = ["D", "L", "M", "M", "J", "V", "S"],
7114
+ weekDays: b = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"],
7112
7115
  monthNames: p = [
7113
7116
  "Enero",
7114
7117
  "Febrero",
@@ -7125,11 +7128,11 @@ const Pl = (e) => {
7125
7128
  ],
7126
7129
  startOfWeek: x = 1,
7127
7130
  showWeekNumbers: y = !1,
7128
- yearRange: w = 12,
7131
+ yearRange: N = 12,
7129
7132
  hoverDate: g,
7130
7133
  closeOnSelect: D,
7131
7134
  autoCloseRange: C,
7132
- onAccept: N,
7135
+ onAccept: w,
7133
7136
  onCancel: k,
7134
7137
  renderHeader: S,
7135
7138
  renderDay: T
@@ -7189,7 +7192,7 @@ const Pl = (e) => {
7189
7192
  currentDate: e,
7190
7193
  selectedYear: e.getFullYear(),
7191
7194
  onYearSelect: M,
7192
- yearRange: w
7195
+ yearRange: N
7193
7196
  }
7194
7197
  );
7195
7198
  default:
@@ -7219,7 +7222,7 @@ const Pl = (e) => {
7219
7222
  /* @__PURE__ */ s("div", { className: "ui-h-full ui-p-16", children: A() }),
7220
7223
  (!D || i && !C) && /* @__PURE__ */ P("footer", { className: "ui-flex ui-justify-end ui-gap-8 ui-border-t ui-border-default ui-p-3", children: [
7221
7224
  /* @__PURE__ */ s(me, { size: "xs", pill: "sm", color: "secondary", onClick: k, children: "Cancelar" }),
7222
- /* @__PURE__ */ s(me, { size: "xs", pill: "sm", onClick: N, children: "Aceptar" })
7225
+ /* @__PURE__ */ s(me, { size: "xs", pill: "sm", onClick: w, children: "Aceptar" })
7223
7226
  ] })
7224
7227
  ]
7225
7228
  }
@@ -7285,11 +7288,11 @@ const Pl = (e) => {
7285
7288
  maxDate: p,
7286
7289
  locale: x,
7287
7290
  weekDays: y,
7288
- monthNames: w,
7291
+ monthNames: N,
7289
7292
  startOfWeek: g,
7290
7293
  showWeekNumbers: D,
7291
7294
  yearRange: C,
7292
- hoverDate: N,
7295
+ hoverDate: w,
7293
7296
  closeOnSelect: k,
7294
7297
  autoCloseRange: S,
7295
7298
  calendarsCount: T = 1,
@@ -7378,7 +7381,7 @@ const Pl = (e) => {
7378
7381
  onNavigate: X,
7379
7382
  onToggleViewMode: Y,
7380
7383
  onGoToToday: f,
7381
- monthNames: w,
7384
+ monthNames: N,
7382
7385
  yearRange: C,
7383
7386
  renderHeader: A
7384
7387
  }
@@ -7395,11 +7398,11 @@ const Pl = (e) => {
7395
7398
  maxDate: p,
7396
7399
  viewMode: H[B],
7397
7400
  weekDays: y,
7398
- monthNames: w,
7401
+ monthNames: N,
7399
7402
  startOfWeek: g,
7400
7403
  showWeekNumbers: D,
7401
7404
  yearRange: C,
7402
- hoverDate: N,
7405
+ hoverDate: w,
7403
7406
  onMonthSelect: (K) => ie(B, K),
7404
7407
  onYearSelect: (K) => ae(B, K),
7405
7408
  renderDay: j
@@ -7427,11 +7430,11 @@ const Pl = (e) => {
7427
7430
  onGoToToday: f,
7428
7431
  locale: x,
7429
7432
  weekDays: y,
7430
- monthNames: w,
7433
+ monthNames: N,
7431
7434
  startOfWeek: g,
7432
7435
  showWeekNumbers: D,
7433
7436
  yearRange: C,
7434
- hoverDate: N,
7437
+ hoverDate: w,
7435
7438
  closeOnSelect: k,
7436
7439
  autoCloseRange: S,
7437
7440
  onAccept: E,
@@ -7473,11 +7476,11 @@ const Pl = (e) => {
7473
7476
  showWeekNumbers: p = !1,
7474
7477
  yearRange: x = 12,
7475
7478
  closeOnSelect: y = !1,
7476
- autoCloseRange: w = !0,
7479
+ autoCloseRange: N = !0,
7477
7480
  placeholder: g = "Seleccionar fecha",
7478
7481
  format: D = "dd/MM/yyyy",
7479
7482
  calendarsCount: C = 1,
7480
- renderHeader: N,
7483
+ renderHeader: w,
7481
7484
  renderDay: k,
7482
7485
  size: S = "sm"
7483
7486
  } = e, {
@@ -7516,9 +7519,9 @@ const Pl = (e) => {
7516
7519
  }
7517
7520
  H.setHoverDate(O);
7518
7521
  }, ie = () => {
7519
- t === "single" ? !y && T.pendingDate !== null && (H.setSelectedDate(T.pendingDate, !0), o == null || o(T.pendingDate)) : t === "range" && !w && (T.pendingRange.start || T.pendingRange.end) && (H.setSelectedRange(T.pendingRange, !0), n == null || n(T.pendingRange)), H.closePicker();
7522
+ t === "single" ? !y && T.pendingDate !== null && (H.setSelectedDate(T.pendingDate, !0), o == null || o(T.pendingDate)) : t === "range" && !N && (T.pendingRange.start || T.pendingRange.end) && (H.setSelectedRange(T.pendingRange, !0), n == null || n(T.pendingRange)), H.closePicker();
7520
7523
  }, ae = () => {
7521
- t === "single" && !y ? (H.setPendingDate(null), H.restoreOriginalDate()) : t === "range" && !w && (H.setPendingRange({ start: null, end: null }), H.restoreOriginalRange()), H.closePicker();
7524
+ t === "single" && !y ? (H.setPendingDate(null), H.restoreOriginalDate()) : t === "range" && !N && (H.setPendingRange({ start: null, end: null }), H.restoreOriginalRange()), H.closePicker();
7522
7525
  }, X = () => t === "single" ? z(E) : R(M);
7523
7526
  return /* @__PURE__ */ P("div", { className: I("ui-imj", "relative", h), children: [
7524
7527
  /* @__PURE__ */ s(
@@ -7562,12 +7565,12 @@ const Pl = (e) => {
7562
7565
  yearRange: x,
7563
7566
  hoverDate: T.hoverDate,
7564
7567
  closeOnSelect: y,
7565
- autoCloseRange: w,
7568
+ autoCloseRange: N,
7566
7569
  calendarsCount: C,
7567
7570
  mode: t,
7568
7571
  onAccept: ie,
7569
7572
  onCancel: ae,
7570
- renderHeader: N,
7573
+ renderHeader: w,
7571
7574
  renderDay: k
7572
7575
  }
7573
7576
  )
@@ -7650,13 +7653,13 @@ const _l = (e) => {
7650
7653
  scrollable: p = !0,
7651
7654
  cancelButtonText: x = "Cancelar",
7652
7655
  successButtonText: y = "Guardar",
7653
- onCancel: w = () => {
7656
+ onCancel: N = () => {
7654
7657
  },
7655
7658
  onSuccess: g = () => {
7656
7659
  },
7657
7660
  showCancelButton: D = !0,
7658
7661
  showSuccessButton: C = !0,
7659
- closeAtSuccess: N = !1,
7662
+ closeAtSuccess: w = !1,
7660
7663
  closeAtCancel: k = !0,
7661
7664
  disabledSuccessButton: S = !1,
7662
7665
  disabledCancelButton: T = !1,
@@ -7678,9 +7681,9 @@ const _l = (e) => {
7678
7681
  }, ne = M && M.length > 0;
7679
7682
  Nn(e), fr(e, t, c), Cn(e, ae, !f);
7680
7683
  const se = () => {
7681
- w && w(), k && t();
7684
+ N && N(), k && t();
7682
7685
  }, he = () => {
7683
- g && g(), N && t();
7686
+ g && g(), w && t();
7684
7687
  };
7685
7688
  if (!W || !Y) return null;
7686
7689
  const xe = /* @__PURE__ */ P(
@@ -8352,7 +8355,7 @@ const zn = ({
8352
8355
  const { isChecked: x, toggle: y } = Gl({
8353
8356
  ...b,
8354
8357
  disabled: e
8355
- }), w = I(
8358
+ }), N = I(
8356
8359
  // Base según Figma - usando clases de Tailwind configuradas con Positive Space
8357
8360
  "ui-imj",
8358
8361
  "ui-relative ui-inline-flex ui-shrink-0 ui-cursor-pointer ui-rounded-2xl",
@@ -8421,7 +8424,7 @@ const zn = ({
8421
8424
  onClick: () => {
8422
8425
  e || y();
8423
8426
  },
8424
- className: w,
8427
+ className: N,
8425
8428
  children: /* @__PURE__ */ s("span", { className: g })
8426
8429
  }
8427
8430
  );
@@ -9054,8 +9057,8 @@ Vuelve más tarde para ver las actualizaciones.`,
9054
9057
  (p, x) => {
9055
9058
  if (t !== "toggle") return;
9056
9059
  const y = e;
9057
- u((w) => {
9058
- const g = lr(w, p, x);
9060
+ u((N) => {
9061
+ const g = lr(N, p, x);
9059
9062
  return requestAnimationFrame(() => {
9060
9063
  var D;
9061
9064
  (D = y.onItemsReorder) == null || D.call(y, g);
@@ -9071,25 +9074,25 @@ Vuelve más tarde para ver las actualizaciones.`,
9071
9074
  }), { handlers: f, draggedItemId: h, dragOverItemId: b } = t === "toggle" ? c : { handlers: null, draggedItemId: null, dragOverItemId: null };
9072
9075
  if (t === "default") {
9073
9076
  const { items: p, currentValue: x, onItemClick: y } = e;
9074
- return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[208px]"), children: /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: p.map((w) => /* @__PURE__ */ s(
9077
+ return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[208px]"), children: /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: p.map((N) => /* @__PURE__ */ s(
9075
9078
  Nt,
9076
9079
  {
9077
- icon: w.icon,
9078
- iconColor: w.iconColor,
9079
- disabled: w.disabled,
9080
- current: x === w.id,
9081
- color: w.color,
9082
- onClick: () => y == null ? void 0 : y(w),
9083
- children: w.label
9080
+ icon: N.icon,
9081
+ iconColor: N.iconColor,
9082
+ disabled: N.disabled,
9083
+ current: x === N.id,
9084
+ color: N.color,
9085
+ onClick: () => y == null ? void 0 : y(N),
9086
+ children: N.label
9084
9087
  },
9085
- w.id
9088
+ N.id
9086
9089
  )) }) });
9087
9090
  }
9088
9091
  if (t === "separator") {
9089
9092
  const { groups: p, currentValue: x, onItemClick: y } = e;
9090
- return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[208px]"), children: /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: p.map((w, g) => /* @__PURE__ */ P(Te.Fragment, { children: [
9093
+ return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[208px]"), children: /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: p.map((N, g) => /* @__PURE__ */ P(Te.Fragment, { children: [
9091
9094
  g > 0 && /* @__PURE__ */ s(wt, {}),
9092
- w.items.map((D) => /* @__PURE__ */ s(
9095
+ N.items.map((D) => /* @__PURE__ */ s(
9093
9096
  Nt,
9094
9097
  {
9095
9098
  icon: D.icon,
@@ -9104,16 +9107,16 @@ Vuelve más tarde para ver las actualizaciones.`,
9104
9107
  }
9105
9108
  if (t === "radio") {
9106
9109
  const { items: p, selectedValue: x, onSelectionChange: y } = e;
9107
- return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[195px]"), children: /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-col ui-gap-8", children: p.map((w) => /* @__PURE__ */ s(
9110
+ return /* @__PURE__ */ s("div", { className: I(r, "ui-min-w-[195px]"), children: /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-col ui-gap-8", children: p.map((N) => /* @__PURE__ */ s(
9108
9111
  gr,
9109
9112
  {
9110
- selected: x === w.id,
9111
- disabled: w.disabled,
9112
- onClick: () => !w.disabled && (y == null ? void 0 : y(w.id)),
9113
- rightContent: w.count ? `(${w.count})` : void 0,
9114
- children: w.label
9113
+ selected: x === N.id,
9114
+ disabled: N.disabled,
9115
+ onClick: () => !N.disabled && (y == null ? void 0 : y(N.id)),
9116
+ rightContent: N.count ? `(${N.count})` : void 0,
9117
+ children: N.label
9115
9118
  },
9116
- w.id
9119
+ N.id
9117
9120
  )) }) });
9118
9121
  }
9119
9122
  if (t === "users-select") {
@@ -9121,10 +9124,10 @@ Vuelve más tarde para ver las actualizaciones.`,
9121
9124
  users: p,
9122
9125
  searchPlaceholder: x = "Buscar...",
9123
9126
  deleteButtonLabel: y = "🗑️ Borrar Usuario",
9124
- onUserToggle: w,
9127
+ onUserToggle: N,
9125
9128
  onDelete: g
9126
- } = e, D = p.filter((N) => N.selected), C = p.filter(
9127
- (N) => N.name.toLowerCase().includes(o.toLowerCase())
9129
+ } = e, D = p.filter((w) => w.selected), C = p.filter(
9130
+ (w) => w.name.toLowerCase().includes(o.toLowerCase())
9128
9131
  );
9129
9132
  return /* @__PURE__ */ P("div", { className: I(r, "ui-flex ui-min-w-[240px] ui-flex-col ui-gap-8"), children: [
9130
9133
  /* @__PURE__ */ s(
@@ -9135,10 +9138,10 @@ Vuelve más tarde para ver las actualizaciones.`,
9135
9138
  placeholder: x
9136
9139
  }
9137
9140
  ),
9138
- C.map((N) => /* @__PURE__ */ P(
9141
+ C.map((w) => /* @__PURE__ */ P(
9139
9142
  "div",
9140
9143
  {
9141
- onClick: () => w == null ? void 0 : w(N.id),
9144
+ onClick: () => N == null ? void 0 : N(w.id),
9142
9145
  className: I(
9143
9146
  "ui-flex ui-cursor-pointer ui-items-center ui-gap-8 ui-rounded-control-sm ui-px-8 ui-py-6 ui-transition-all",
9144
9147
  {
@@ -9146,26 +9149,26 @@ Vuelve más tarde para ver las actualizaciones.`,
9146
9149
  }
9147
9150
  ),
9148
9151
  children: [
9149
- /* @__PURE__ */ s("div", { className: "ui-flex ui-h-16 ui-w-16 ui-shrink-0 ui-items-center ui-justify-center ui-rounded-control-pill ui-bg-surface-secondary ui-text-body-xs-regular", children: N.avatar || N.name.substring(0, 1).toUpperCase() }),
9150
- /* @__PURE__ */ s("span", { className: "ui-flex-1 ui-text-body-sm-regular ui-font-body-sm-medium ui-text-primary", children: N.name }),
9152
+ /* @__PURE__ */ s("div", { className: "ui-flex ui-h-16 ui-w-16 ui-shrink-0 ui-items-center ui-justify-center ui-rounded-control-pill ui-bg-surface-secondary ui-text-body-xs-regular", children: w.avatar || w.name.substring(0, 1).toUpperCase() }),
9153
+ /* @__PURE__ */ s("span", { className: "ui-flex-1 ui-text-body-sm-regular ui-font-body-sm-medium ui-text-primary", children: w.name }),
9151
9154
  /* @__PURE__ */ s(
9152
9155
  Vt,
9153
9156
  {
9154
- checked: N.selected || !1,
9155
- onChange: () => w == null ? void 0 : w(N.id),
9157
+ checked: w.selected || !1,
9158
+ onChange: () => N == null ? void 0 : N(w.id),
9156
9159
  size: "md"
9157
9160
  }
9158
9161
  )
9159
9162
  ]
9160
9163
  },
9161
- N.id
9164
+ w.id
9162
9165
  )),
9163
9166
  D.length > 0 && /* @__PURE__ */ s(
9164
9167
  "button",
9165
9168
  {
9166
9169
  onClick: () => {
9167
- const N = D.map((k) => k.id);
9168
- g == null || g(N);
9170
+ const w = D.map((k) => k.id);
9171
+ g == null || g(w);
9169
9172
  },
9170
9173
  className: "ui-h-32 ui-w-full ui-rounded-control-sm ui-bg-surface-danger ui-px-8 ui-py-4 ui-text-body-sm-regular ui-font-body-sm-bold ui-text-danger ui-transition-colors hover:ui-bg-surface-danger-hover",
9171
9174
  children: y
@@ -9174,7 +9177,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9174
9177
  ] });
9175
9178
  }
9176
9179
  if (t === "toggle") {
9177
- const { items: p, onToggleChange: x, onItemsReorder: y, enableReordering: w = !1 } = e;
9180
+ const { items: p, onToggleChange: x, onItemsReorder: y, enableReordering: N = !1 } = e;
9178
9181
  return f ? /* @__PURE__ */ s(
9179
9182
  "div",
9180
9183
  {
@@ -9184,7 +9187,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9184
9187
  "[&>*]:ui-transition-transform [&>*]:ui-duration-200 [&>*]:ui-ease-out"
9185
9188
  ),
9186
9189
  children: l.map((g, D) => {
9187
- const C = w && h === g.id, N = w && b === g.id, k = w ? /* @__PURE__ */ s(
9190
+ const C = N && h === g.id, w = N && b === g.id, k = N ? /* @__PURE__ */ s(
9188
9191
  be,
9189
9192
  {
9190
9193
  name: $s,
@@ -9200,9 +9203,9 @@ Vuelve más tarde para ver las actualizaciones.`,
9200
9203
  checked: g.checked,
9201
9204
  disabled: g.disabled,
9202
9205
  onChange: (S) => x == null ? void 0 : x(g.id, S),
9203
- draggable: w && (g.draggable ?? !0),
9206
+ draggable: N && (g.draggable ?? !0),
9204
9207
  isDragging: C,
9205
- isDragOver: N,
9208
+ isDragOver: w,
9206
9209
  onDragStart: (S) => f.onDragStart(S, g.id, D),
9207
9210
  onDragEnd: f.onDragEnd,
9208
9211
  onDragOver: (S) => f.onDragOver(S, g.id, D),
@@ -9218,18 +9221,18 @@ Vuelve más tarde para ver las actualizaciones.`,
9218
9221
  }
9219
9222
  if (t === "user-list") {
9220
9223
  const { users: p, selectedUserId: x, onUserClick: y } = e;
9221
- return /* @__PURE__ */ s("div", { className: I(r, "ui-flex ui-min-w-[320px] ui-flex-col ui-gap-8"), children: p.map((w) => /* @__PURE__ */ s(
9224
+ return /* @__PURE__ */ s("div", { className: I(r, "ui-flex ui-min-w-[320px] ui-flex-col ui-gap-8"), children: p.map((N) => /* @__PURE__ */ s(
9222
9225
  Ii,
9223
9226
  {
9224
- name: w.name,
9225
- subtitle: w.subtitle,
9226
- avatar: w.avatar,
9227
- badge: w.badge,
9228
- badgeVariant: w.badgeVariant,
9229
- selected: x === w.id,
9230
- onClick: () => y == null ? void 0 : y(w.id)
9227
+ name: N.name,
9228
+ subtitle: N.subtitle,
9229
+ avatar: N.avatar,
9230
+ badge: N.badge,
9231
+ badgeVariant: N.badgeVariant,
9232
+ selected: x === N.id,
9233
+ onClick: () => y == null ? void 0 : y(N.id)
9231
9234
  },
9232
- w.id
9235
+ N.id
9233
9236
  )) });
9234
9237
  }
9235
9238
  if (t === "checkbox") {
@@ -9241,7 +9244,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9241
9244
  description: y.description,
9242
9245
  checked: y.checked,
9243
9246
  disabled: y.disabled,
9244
- onChange: (w) => x == null ? void 0 : x(y.id, w)
9247
+ onChange: (N) => x == null ? void 0 : x(y.id, N)
9245
9248
  },
9246
9249
  y.id
9247
9250
  )) });
@@ -9251,7 +9254,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9251
9254
  user: p,
9252
9255
  menuItems: x,
9253
9256
  selectedItemId: y,
9254
- darkMode: w = !1,
9257
+ darkMode: N = !1,
9255
9258
  onMenuItemClick: g,
9256
9259
  onDarkModeToggle: D
9257
9260
  } = e, C = () => typeof p.avatar == "string" ? /* @__PURE__ */ s("div", { className: "ui-flex ui-h-32 ui-w-32 ui-items-center ui-justify-center ui-rounded-control-pill ui-bg-fill-brand ui-text-body-sm-regular ui-font-body-sm-semibold ui-text-on-color", children: p.avatar }) : p.avatar || /* @__PURE__ */ s("div", { className: "ui-flex ui-h-32 ui-w-32 ui-items-center ui-justify-center ui-rounded-control-pill ui-bg-fill-brand ui-text-body-sm-regular ui-font-body-sm-semibold ui-text-on-color", children: p.name.substring(0, 2).toUpperCase() });
@@ -9264,22 +9267,22 @@ Vuelve más tarde para ver las actualizaciones.`,
9264
9267
  ] }),
9265
9268
  p.badge && /* @__PURE__ */ s("span", { className: "ui-shrink-0 ui-rounded-control-sm ui-bg-fill-brand ui-px-8 ui-py-2 ui-text-body-xs-regular ui-font-body-xs-semibold ui-text-on-color", children: p.badge })
9266
9269
  ] }),
9267
- /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: x.map((N, k) => N.type === "separator" ? /* @__PURE__ */ s(wt, {}, `separator-${k}`) : N.type === "toggle" ? /* @__PURE__ */ P(
9270
+ /* @__PURE__ */ s("ul", { className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-8 ui-p-0", children: x.map((w, k) => w.type === "separator" ? /* @__PURE__ */ s(wt, {}, `separator-${k}`) : w.type === "toggle" ? /* @__PURE__ */ P(
9268
9271
  "li",
9269
9272
  {
9270
9273
  className: "ui-flex ui-h-32 ui-items-center ui-justify-between ui-rounded-control-sm ui-px-8 ui-py-6",
9271
9274
  children: [
9272
- /* @__PURE__ */ s("div", { className: "ui-flex ui-items-center ui-gap-8", children: N.icon && /* @__PURE__ */ s("span", { className: "ui-flex ui-items-center ui-justify-center ui-text-tertiary", children: /* @__PURE__ */ s(Nt, { icon: N.icon, onClick: () => {
9273
- }, children: N.label }) }) }),
9275
+ /* @__PURE__ */ s("div", { className: "ui-flex ui-items-center ui-gap-8", children: w.icon && /* @__PURE__ */ s("span", { className: "ui-flex ui-items-center ui-justify-center ui-text-tertiary", children: /* @__PURE__ */ s(Nt, { icon: w.icon, onClick: () => {
9276
+ }, children: w.label }) }) }),
9274
9277
  /* @__PURE__ */ s(
9275
9278
  "div",
9276
9279
  {
9277
- onClick: () => D == null ? void 0 : D(!w),
9280
+ onClick: () => D == null ? void 0 : D(!N),
9278
9281
  className: I(
9279
9282
  "ui-flex ui-h-20 ui-w-32 ui-cursor-pointer ui-items-center ui-rounded-2xl ui-px-2 ui-transition-all",
9280
9283
  {
9281
- "ui-justify-end ui-bg-fill-brand": w,
9282
- "ui-justify-start ui-bg-fill-brand-disabled": !w
9284
+ "ui-justify-end ui-bg-fill-brand": N,
9285
+ "ui-justify-start ui-bg-fill-brand-disabled": !N
9283
9286
  }
9284
9287
  ),
9285
9288
  children: /* @__PURE__ */ s("div", { className: "ui-h-16 ui-w-16 ui-rounded-control-pill ui-bg-fill ui-shadow-lg" })
@@ -9287,27 +9290,27 @@ Vuelve más tarde para ver las actualizaciones.`,
9287
9290
  )
9288
9291
  ]
9289
9292
  },
9290
- N.id
9293
+ w.id
9291
9294
  ) : /* @__PURE__ */ s(
9292
9295
  Nt,
9293
9296
  {
9294
- icon: N.icon,
9295
- iconColor: N.iconColor,
9296
- current: y === N.id,
9297
- color: N.color,
9298
- onClick: () => g == null ? void 0 : g(N.id),
9299
- children: N.label
9297
+ icon: w.icon,
9298
+ iconColor: w.iconColor,
9299
+ current: y === w.id,
9300
+ color: w.color,
9301
+ onClick: () => g == null ? void 0 : g(w.id),
9302
+ children: w.label
9300
9303
  },
9301
- N.id
9304
+ w.id
9302
9305
  )) })
9303
9306
  ] });
9304
9307
  }
9305
9308
  if (t === "alphabetic") {
9306
9309
  const { groups: p, selectedItem: x, onItemClick: y } = e;
9307
- return /* @__PURE__ */ s("div", { className: I(r, "ui-flex ui-min-w-[208px] ui-flex-col ui-gap-8"), children: p.map((w, g) => /* @__PURE__ */ P("div", { children: [
9308
- /* @__PURE__ */ s("div", { className: "ui-mb-8 ui-text-body-xs-regular ui-font-body-xs-semibold ui-text-secondary", children: w.letter }),
9309
- /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-col ui-gap-8", children: w.items.map((D, C) => {
9310
- const N = x === D;
9310
+ return /* @__PURE__ */ s("div", { className: I(r, "ui-flex ui-min-w-[208px] ui-flex-col ui-gap-8"), children: p.map((N, g) => /* @__PURE__ */ P("div", { children: [
9311
+ /* @__PURE__ */ s("div", { className: "ui-mb-8 ui-text-body-xs-regular ui-font-body-xs-semibold ui-text-secondary", children: N.letter }),
9312
+ /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-col ui-gap-8", children: N.items.map((D, C) => {
9313
+ const w = x === D;
9311
9314
  return /* @__PURE__ */ s(
9312
9315
  "div",
9313
9316
  {
@@ -9316,22 +9319,22 @@ Vuelve más tarde para ver las actualizaciones.`,
9316
9319
  "ui-cursor-pointer ui-rounded-control-sm ui-px-8 ui-py-6 ui-text-body-sm-regular ui-font-body-sm-medium ui-transition-all",
9317
9320
  {
9318
9321
  // Selected: azul oscuro
9319
- "ui-bg-fill-brand ui-text-on-color": N,
9322
+ "ui-bg-fill-brand ui-text-on-color": w,
9320
9323
  // Default text
9321
- "ui-text-primary": !N,
9324
+ "ui-text-primary": !w,
9322
9325
  // Hover: gris claro (solo cuando no está seleccionado)
9323
- "hover:ui-bg-fill-hover": !N
9326
+ "hover:ui-bg-fill-hover": !w
9324
9327
  }
9325
9328
  ),
9326
9329
  children: D
9327
9330
  },
9328
- `${w.letter}-${C}`
9331
+ `${N.letter}-${C}`
9329
9332
  );
9330
9333
  }) })
9331
- ] }, w.letter)) });
9334
+ ] }, N.letter)) });
9332
9335
  }
9333
9336
  if (t === "filters") {
9334
- const { title: p = "Filtrar Por", items: x, selectedItemId: y, onItemClick: w } = e;
9337
+ const { title: p = "Filtrar Por", items: x, selectedItemId: y, onItemClick: N } = e;
9335
9338
  return /* @__PURE__ */ P("div", { className: I(r, "ui-flex ui-min-w-[208px] ui-flex-col ui-gap-8"), children: [
9336
9339
  /* @__PURE__ */ s("div", { className: "ui-text-body-sm-regular ui-font-body-sm-bold ui-text-primary", children: p }),
9337
9340
  /* @__PURE__ */ s(wt, {}),
@@ -9340,7 +9343,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9340
9343
  return /* @__PURE__ */ s(
9341
9344
  "div",
9342
9345
  {
9343
- onClick: () => w == null ? void 0 : w(g.id),
9346
+ onClick: () => N == null ? void 0 : N(g.id),
9344
9347
  className: I(
9345
9348
  "ui-cursor-pointer ui-rounded-control-sm ui-px-8 ui-py-6 ui-text-body-sm-regular ui-font-body-sm-medium ui-transition-all",
9346
9349
  {
@@ -9364,14 +9367,14 @@ Vuelve más tarde para ver las actualizaciones.`,
9364
9367
  title: p = "Headline",
9365
9368
  items: x,
9366
9369
  clearLabel: y = "🧹 Limpiar",
9367
- applyLabel: w = "Ok",
9370
+ applyLabel: N = "Ok",
9368
9371
  onItemToggle: g,
9369
9372
  onClear: D,
9370
9373
  onApply: C,
9371
- onBack: N
9374
+ onBack: w
9372
9375
  } = e, k = x.filter((S) => S.checked).map((S) => S.id);
9373
9376
  return /* @__PURE__ */ P("div", { className: I(r, "ui-flex ui-min-w-[208px] ui-flex-col ui-gap-8"), children: [
9374
- /* @__PURE__ */ s(Fn, { title: p, onBackClick: N }),
9377
+ /* @__PURE__ */ s(Fn, { title: p, onBackClick: w }),
9375
9378
  /* @__PURE__ */ s(wt, {}),
9376
9379
  /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-col ui-gap-8", children: x.map((S) => /* @__PURE__ */ P(
9377
9380
  "div",
@@ -9412,7 +9415,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9412
9415
  {
9413
9416
  onClick: () => C == null ? void 0 : C(k),
9414
9417
  className: "ui-h-20 ui-flex-1 ui-rounded-control-sm ui-bg-fill-brand ui-px-8 ui-py-4 ui-text-body-xs-regular ui-font-body-xs-bold ui-text-on-color ui-transition-colors hover:ui-bg-fill-brand-hover",
9415
- children: w
9418
+ children: N
9416
9419
  }
9417
9420
  )
9418
9421
  ] })
@@ -9448,7 +9451,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9448
9451
  onOpenChange: b,
9449
9452
  withCheckbox: p = !1
9450
9453
  }) => {
9451
- const x = xi(), y = m || `dropdown-${x}`, [w, g] = V(!1), [D, C] = V(!1), [N, k] = V(""), [S, T] = V("bottom"), [$, v] = V({}), E = Q(null), M = Q(null), A = Q(null), j = L(
9454
+ const x = xi(), y = m || `dropdown-${x}`, [N, g] = V(!1), [D, C] = V(!1), [w, k] = V(""), [S, T] = V("bottom"), [$, v] = V({}), E = Q(null), M = Q(null), A = Q(null), j = L(
9452
9455
  (F) => F == null ? [] : Array.isArray(F) ? F : [F],
9453
9456
  []
9454
9457
  ), H = L(
@@ -9484,7 +9487,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9484
9487
  });
9485
9488
  return F ? [F] : [];
9486
9489
  })(), X = (() => {
9487
- if (!l || !N)
9490
+ if (!l || !w)
9488
9491
  return i.filter((re) => {
9489
9492
  if (c) {
9490
9493
  const de = re[o], ge = j(Y).some(
@@ -9494,7 +9497,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9494
9497
  }
9495
9498
  return !(re[o] === -1 && (Y === -1 || Y === "-1"));
9496
9499
  });
9497
- const F = N.toLowerCase(), G = i.filter((re) => {
9500
+ const F = w.toLowerCase(), G = i.filter((re) => {
9498
9501
  if (re.isGroupTitle)
9499
9502
  return !1;
9500
9503
  const de = re[r];
@@ -9563,7 +9566,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9563
9566
  behavior: "smooth"
9564
9567
  });
9565
9568
  }, [ae, o]), ne = (F) => {
9566
- F && F.stopPropagation(), !d && (w ? se() : (Ql(y), k(""), C(!1), B(), setTimeout(() => {
9569
+ F && F.stopPropagation(), !d && (N ? se() : (Ql(y), k(""), C(!1), B(), setTimeout(() => {
9567
9570
  g(!0), Qi.add(y), setTimeout(() => {
9568
9571
  B(), setTimeout(() => {
9569
9572
  K();
@@ -9594,9 +9597,9 @@ Vuelve más tarde para ver las actualizaciones.`,
9594
9597
  F.stopPropagation(), ie(c ? [] : ""), k("");
9595
9598
  };
9596
9599
  return U(() => {
9597
- b == null || b(w);
9598
- }, [w, b]), Sn({
9599
- isActive: w,
9600
+ b == null || b(N);
9601
+ }, [N, b]), Sn({
9602
+ isActive: N,
9600
9603
  // Simplificar condición para mejorar detección
9601
9604
  disabled: d,
9602
9605
  elementRef: M,
@@ -9614,27 +9617,27 @@ Vuelve más tarde para ver las actualizaciones.`,
9614
9617
  }
9615
9618
  }), U(() => {
9616
9619
  const F = () => {
9617
- w && se();
9620
+ N && se();
9618
9621
  };
9619
9622
  return document.addEventListener("close-all-dropdowns", F), () => {
9620
9623
  document.removeEventListener("close-all-dropdowns", F);
9621
9624
  };
9622
- }, [w, se]), U(() => {
9623
- if (w) {
9625
+ }, [N, se]), U(() => {
9626
+ if (N) {
9624
9627
  const F = () => {
9625
9628
  B();
9626
9629
  }, G = () => {
9627
- w && !D && B();
9630
+ N && !D && B();
9628
9631
  };
9629
9632
  return window.addEventListener("resize", F), window.addEventListener("scroll", G, !1), document.addEventListener("scroll", G, !1), () => {
9630
9633
  window.removeEventListener("resize", F), window.removeEventListener("scroll", G, !1), document.removeEventListener("scroll", G, !1);
9631
9634
  };
9632
9635
  }
9633
- }, [w, B, D]), {
9636
+ }, [N, B, D]), {
9634
9637
  // Estado
9635
- isOpen: w,
9638
+ isOpen: N,
9636
9639
  isClosing: D,
9637
- searchValue: N,
9640
+ searchValue: w,
9638
9641
  selectedValue: Y,
9639
9642
  selectedOptions: ae,
9640
9643
  filteredOptions: X,
@@ -9676,7 +9679,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9676
9679
  idName: b,
9677
9680
  size: p
9678
9681
  }) => {
9679
- const [x, y] = V(!1), [w, g] = V(null), D = Q(null);
9682
+ const [x, y] = V(!1), [N, g] = V(null), D = Q(null);
9680
9683
  return U(() => {
9681
9684
  if (!D.current || i.length === 0) {
9682
9685
  y(!1), g(null);
@@ -9686,16 +9689,16 @@ Vuelve más tarde para ver las actualizaciones.`,
9686
9689
  const S = D.current;
9687
9690
  if (S) {
9688
9691
  const T = S.scrollHeight, $ = S.clientHeight;
9689
- if (w === null) {
9692
+ if (N === null) {
9690
9693
  g($);
9691
9694
  return;
9692
9695
  }
9693
- const v = T > w;
9696
+ const v = T > N;
9694
9697
  y(v);
9695
9698
  }
9696
9699
  }, 100);
9697
9700
  return () => clearTimeout(k);
9698
- }, [i.length, w]), // Input personalizado con tags para modo tags
9701
+ }, [i.length, N]), // Input personalizado con tags para modo tags
9699
9702
  /* @__PURE__ */ P("div", { className: "ui-relative ui-flex ui-w-full ui-flex-col ui-gap-1", children: [
9700
9703
  e && /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: /* @__PURE__ */ s("label", { className: "ui-text-label-md-regular ui-font-label-md-semibold ui-text-primary", children: e }) }),
9701
9704
  /* @__PURE__ */ P(
@@ -9709,8 +9712,8 @@ Vuelve más tarde para ver las actualizaciones.`,
9709
9712
  md: `ui-p-8 ${x ? "ui-min-h-control-md" : "ui-h-control-md"}`,
9710
9713
  lg: `ui-p-8 ${x ? "ui-min-h-control-lg" : "ui-h-control-lg"}`
9711
9714
  }[p]} ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-control-sm ui-border ui-border-default ui-bg-fill ui-py-4 ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-brand hover:ui-border-brand`,
9712
- onClick: (N) => {
9713
- a || o(N);
9715
+ onClick: (w) => {
9716
+ a || o(w);
9714
9717
  },
9715
9718
  onFocus: () => {
9716
9719
  !n && !a && (l(!0), o());
@@ -9722,9 +9725,9 @@ Vuelve más tarde para ver las actualizaciones.`,
9722
9725
  {
9723
9726
  ref: D,
9724
9727
  className: `ui-flex ui-flex-wrap ui-gap-1 ${x ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
9725
- children: i.map((N) => {
9726
- if (!N) return null;
9727
- const k = N[b], S = N[h];
9728
+ children: i.map((w) => {
9729
+ if (!w) return null;
9730
+ const k = w[b], S = w[h];
9728
9731
  return /* @__PURE__ */ s(
9729
9732
  Gt,
9730
9733
  {
@@ -9777,11 +9780,11 @@ Vuelve más tarde para ver las actualizaciones.`,
9777
9780
  disabled: p = !1,
9778
9781
  placeholder: x = "",
9779
9782
  options: y = [],
9780
- valueName: w = "label",
9783
+ valueName: N = "label",
9781
9784
  idName: g = "value",
9782
9785
  onValueChange: D,
9783
9786
  onOptionSelect: C,
9784
- onCheckboxChange: N,
9787
+ onCheckboxChange: w,
9785
9788
  searchable: k = !1,
9786
9789
  maxHeight: S = "200px",
9787
9790
  closeOnClickOutside: T = !0,
@@ -9838,7 +9841,7 @@ Vuelve más tarde para ver las actualizaciones.`,
9838
9841
  value: h,
9839
9842
  defaultValue: Z,
9840
9843
  options: q,
9841
- valueName: w,
9844
+ valueName: N,
9842
9845
  idName: g,
9843
9846
  onValueChange: D,
9844
9847
  onOptionSelect: C,
@@ -9878,13 +9881,13 @@ Vuelve más tarde para ver las actualizaciones.`,
9878
9881
  if (h === "" || h === -1 || h === "-1")
9879
9882
  se((le) => le !== l ? l : le), xe((le) => le !== null ? null : le);
9880
9883
  else {
9881
- const le = Array.isArray(h) ? h[0] : h, Ce = q.find((Re) => le == null ? !1 : Je(Re[w], le) || Je(Re[g], le));
9884
+ const le = Array.isArray(h) ? h[0] : h, Ce = q.find((Re) => le == null ? !1 : Je(Re[N], le) || Je(Re[g], le));
9882
9885
  if (Ce) {
9883
9886
  const Re = Ce.icon || l, J = Ce.iconColor || null;
9884
9887
  se((Le) => Le !== Re ? Re : Le), xe((Le) => Le !== J ? J : Le);
9885
9888
  }
9886
9889
  }
9887
- }, [h, Pe, q, w, g, l, Je]), Ut(
9890
+ }, [h, Pe, q, N, g, l, Je]), Ut(
9888
9891
  B,
9889
9892
  () => ({
9890
9893
  getValue: () => fe,
@@ -9967,14 +9970,14 @@ Vuelve más tarde para ver las actualizaciones.`,
9967
9970
  case "count":
9968
9971
  return `${we.length} elemento${we.length > 1 ? "s" : ""} seleccionado${we.length > 1 ? "s" : ""}`;
9969
9972
  case "text":
9970
- return we.map((le) => le == null ? void 0 : le[w]).filter(Boolean).join(", ");
9973
+ return we.map((le) => le == null ? void 0 : le[N]).filter(Boolean).join(", ");
9971
9974
  case "tags":
9972
9975
  default:
9973
9976
  return "";
9974
9977
  }
9975
9978
  } else {
9976
9979
  const le = we[0];
9977
- return le ? le[g] === -1 || le[w] === -1 || le[w] === "-1" ? x : String(le[w] || "") : "";
9980
+ return le ? le[g] === -1 || le[N] === -1 || le[N] === "-1" ? x : String(le[N] || "") : "";
9978
9981
  }
9979
9982
  }, _t = () => {
9980
9983
  if (!re || !ke.top) return null;
@@ -10037,11 +10040,11 @@ Vuelve más tarde para ver las actualizaciones.`,
10037
10040
  isGroupTitle: J.isGroupTitle,
10038
10041
  groupTitle: J.label,
10039
10042
  hasCurrent: j,
10040
- children: String(J[w] || "")
10043
+ children: String(J[N] || "")
10041
10044
  },
10042
- String(J[g] || J[w])
10045
+ String(J[g] || J[N])
10043
10046
  );
10044
- const ot = String(J[g] || J[w]);
10047
+ const ot = String(J[g] || J[N]);
10045
10048
  switch (Y) {
10046
10049
  case "list-default":
10047
10050
  return /* @__PURE__ */ s(
@@ -10053,7 +10056,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10053
10056
  color: J.color || "blue",
10054
10057
  icon: J.icon,
10055
10058
  iconColor: J.iconColor,
10056
- children: String(J[w] || "")
10059
+ children: String(J[N] || "")
10057
10060
  },
10058
10061
  ot
10059
10062
  );
@@ -10065,7 +10068,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10065
10068
  disabled: J.disabled,
10066
10069
  selected: Le,
10067
10070
  rightContent: J.rightContent,
10068
- children: String(J[w] || "")
10071
+ children: String(J[N] || "")
10069
10072
  },
10070
10073
  ot
10071
10074
  );
@@ -10073,7 +10076,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10073
10076
  return /* @__PURE__ */ s(
10074
10077
  br,
10075
10078
  {
10076
- title: String(J[w] || ""),
10079
+ title: String(J[N] || ""),
10077
10080
  description: J.description,
10078
10081
  checked: J.checked ?? !1,
10079
10082
  disabled: J.disabled,
@@ -10085,7 +10088,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10085
10088
  return /* @__PURE__ */ s(
10086
10089
  Ii,
10087
10090
  {
10088
- name: String(J[w] || ""),
10091
+ name: String(J[N] || ""),
10089
10092
  subtitle: J.subtitle,
10090
10093
  avatar: J.avatar,
10091
10094
  badge: J.badge,
@@ -10099,7 +10102,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10099
10102
  return /* @__PURE__ */ s(
10100
10103
  yr,
10101
10104
  {
10102
- title: String(J[w] || ""),
10105
+ title: String(J[N] || ""),
10103
10106
  description: J.description,
10104
10107
  checked: J.checked ?? Le,
10105
10108
  disabled: J.disabled,
@@ -10117,7 +10120,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10117
10120
  color: J.color || "blue",
10118
10121
  icon: J.icon,
10119
10122
  iconColor: J.iconColor,
10120
- children: String(J[w] || "")
10123
+ children: String(J[N] || "")
10121
10124
  },
10122
10125
  ot
10123
10126
  );
@@ -10132,7 +10135,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10132
10135
  "data-option-value": String(J[g]),
10133
10136
  icon: J.icon,
10134
10137
  iconColor: J.iconColor,
10135
- children: String(J[w] || "")
10138
+ children: String(J[N] || "")
10136
10139
  },
10137
10140
  ot
10138
10141
  );
@@ -10198,7 +10201,7 @@ Vuelve más tarde para ver las actualizaciones.`,
10198
10201
  error: i,
10199
10202
  helperText: r || "",
10200
10203
  rightSlot: u,
10201
- valueName: w,
10204
+ valueName: N,
10202
10205
  idName: g
10203
10206
  }
10204
10207
  ) : (
@@ -10235,11 +10238,11 @@ Vuelve más tarde para ver las actualizaciones.`,
10235
10238
  v && M !== "tags" && we.length > 0 && /* @__PURE__ */ s("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: we.map((le) => le ? /* @__PURE__ */ s(
10236
10239
  Gt,
10237
10240
  {
10238
- label: le[w],
10241
+ label: le[N],
10239
10242
  color: "accent",
10240
10243
  onClose: () => Ct(le[g])
10241
10244
  },
10242
- le[w]
10245
+ le[N]
10243
10246
  ) : null) }),
10244
10247
  _t()
10245
10248
  ]
@@ -12132,7 +12135,7 @@ const zr = "emoji-picker-recent", iu = ({
12132
12135
  buttonClassName: x,
12133
12136
  tooltip: y
12134
12137
  }) => {
12135
- const [w, g] = V("recent"), [D, C] = V(""), [N, k] = V([]), [S, T] = V(m || ""), $ = Q(null), v = Q({}), E = Q(!1), M = Q(null);
12138
+ const [N, g] = V("recent"), [D, C] = V(""), [w, k] = V([]), [S, T] = V(m || ""), $ = Q(null), v = Q({}), E = Q(!1), M = Q(null);
12136
12139
  U(() => {
12137
12140
  if (!E.current)
12138
12141
  if (E.current = !0, n && n.length > 0)
@@ -12152,7 +12155,7 @@ const zr = "emoji-picker-recent", iu = ({
12152
12155
  process.env.NODE_ENV !== "production" && console.error("Error saving recent emojis:", W);
12153
12156
  }
12154
12157
  }, j = (R) => {
12155
- const W = [R, ...N.filter((Y) => Y !== R)].slice(
12158
+ const W = [R, ...w.filter((Y) => Y !== R)].slice(
12156
12159
  0,
12157
12160
  t
12158
12161
  );
@@ -12160,13 +12163,13 @@ const zr = "emoji-picker-recent", iu = ({
12160
12163
  }, H = te(() => !D || D.trim() === "" ? [
12161
12164
  {
12162
12165
  ...ai[0],
12163
- emojis: N
12166
+ emojis: w
12164
12167
  },
12165
12168
  ...ai.slice(1)
12166
12169
  ] : ai.slice(1).map((Y) => ({
12167
12170
  ...Y,
12168
12171
  emojis: tu(D, Y.emojis)
12169
- })).filter((Y) => Y.emojis.length > 0), [D, N]), _ = (R) => {
12172
+ })).filter((Y) => Y.emojis.length > 0), [D, w]), _ = (R) => {
12170
12173
  const W = v.current[R];
12171
12174
  if (W && $.current) {
12172
12175
  const Y = $.current, ie = W.offsetTop - Y.offsetTop;
@@ -12207,7 +12210,7 @@ const zr = "emoji-picker-recent", iu = ({
12207
12210
  /* @__PURE__ */ s("div", { className: "ui-border-b ui-border-default ui-bg-surface ui-p-16", children: /* @__PURE__ */ s("div", { className: "ui-flex ui-flex-wrap ui-justify-between ui-gap-8", children: ai.map((R) => /* @__PURE__ */ s(
12208
12211
  Ie,
12209
12212
  {
12210
- borderable: w === R.id,
12213
+ borderable: N === R.id,
12211
12214
  size: "xs",
12212
12215
  icon: R.icon,
12213
12216
  rounded: !0,
@@ -12313,7 +12316,7 @@ const zr = "emoji-picker-recent", iu = ({
12313
12316
  label: h = "",
12314
12317
  fullWidth: b = !0
12315
12318
  }) => {
12316
- const { isFocused: p, setIsFocused: x, count: y, handleChange: w, handlePaste: g } = ru({
12319
+ const { isFocused: p, setIsFocused: x, count: y, handleChange: N, handlePaste: g } = ru({
12317
12320
  maxLength: f,
12318
12321
  onChange: t,
12319
12322
  value: e
@@ -12355,7 +12358,7 @@ const zr = "emoji-picker-recent", iu = ({
12355
12358
  x(!0), i == null || i(C);
12356
12359
  },
12357
12360
  value: e || "",
12358
- onChange: w,
12361
+ onChange: N,
12359
12362
  onPaste: g,
12360
12363
  onBlur: (C) => {
12361
12364
  x(!1), r == null || r(C);
@@ -12549,7 +12552,7 @@ const zr = "emoji-picker-recent", iu = ({
12549
12552
  /* @__PURE__ */ s(Qe, {}),
12550
12553
  /* @__PURE__ */ P("div", { className: "ui-flex ui-flex-col ui-gap-y-8 ui-p-16 ui-pt-12", children: [
12551
12554
  e.map((g, D) => {
12552
- const C = g.keyName || g.label.toLowerCase(), N = `filter-${D}-${g.type}-${g.label}`;
12555
+ const C = g.keyName || g.label.toLowerCase(), w = `filter-${D}-${g.type}-${g.label}`;
12553
12556
  return g.type === "dropdown" ? /* @__PURE__ */ s(
12554
12557
  ht,
12555
12558
  {
@@ -12563,7 +12566,7 @@ const zr = "emoji-picker-recent", iu = ({
12563
12566
  absolute: !1,
12564
12567
  closeOnClickOutside: !0
12565
12568
  },
12566
- N
12569
+ w
12567
12570
  ) : g.type === "multiple" ? /* @__PURE__ */ s(
12568
12571
  ht,
12569
12572
  {
@@ -12577,7 +12580,7 @@ const zr = "emoji-picker-recent", iu = ({
12577
12580
  absolute: !1,
12578
12581
  closeOnClickOutside: !0
12579
12582
  },
12580
- N
12583
+ w
12581
12584
  ) : g.type === "group" ? /* @__PURE__ */ s(
12582
12585
  ht,
12583
12586
  {
@@ -12593,7 +12596,7 @@ const zr = "emoji-picker-recent", iu = ({
12593
12596
  multiple: !0,
12594
12597
  withCheckbox: !0
12595
12598
  },
12596
- N
12599
+ w
12597
12600
  ) : g.type === "input" ? /* @__PURE__ */ s(
12598
12601
  tt,
12599
12602
  {
@@ -12602,7 +12605,7 @@ const zr = "emoji-picker-recent", iu = ({
12602
12605
  onChange: (k) => h(g.label, k.target.value, g),
12603
12606
  size: "xs"
12604
12607
  },
12605
- N
12608
+ w
12606
12609
  ) : g.type === "date" ? /* @__PURE__ */ s(
12607
12610
  Zt,
12608
12611
  {
@@ -12613,7 +12616,7 @@ const zr = "emoji-picker-recent", iu = ({
12613
12616
  onDateChange: (k) => h(g.label, k, g),
12614
12617
  placeholder: g.placeholder
12615
12618
  },
12616
- N
12619
+ w
12617
12620
  ) : g.type === "dateRange" ? /* @__PURE__ */ s(
12618
12621
  Zt,
12619
12622
  {
@@ -12624,14 +12627,14 @@ const zr = "emoji-picker-recent", iu = ({
12624
12627
  onRangeChange: (k) => h(g.label, k, g),
12625
12628
  placeholder: g.placeholder
12626
12629
  },
12627
- N
12630
+ w
12628
12631
  ) : g.type === "textarea" ? /* @__PURE__ */ s(
12629
12632
  nu,
12630
12633
  {
12631
12634
  value: typeof f[C] == "string" ? f[C] : "",
12632
12635
  onChange: (k) => h(g.label, k, g)
12633
12636
  },
12634
- N
12637
+ w
12635
12638
  ) : null;
12636
12639
  }),
12637
12640
  /* @__PURE__ */ s(Ie, { color: "primary", onClick: x, children: "Aplicar" })
@@ -12641,9 +12644,9 @@ const zr = "emoji-picker-recent", iu = ({
12641
12644
  );
12642
12645
  }, su = () => {
12643
12646
  const e = Q(null), [t, i] = V(!1), [r, o] = V(/* @__PURE__ */ new Set()), n = L(() => {
12644
- const N = window.getSelection();
12645
- if (!N || N.rangeCount === 0) return;
12646
- const k = N.getRangeAt(0);
12647
+ const w = window.getSelection();
12648
+ if (!w || w.rangeCount === 0) return;
12649
+ const k = w.getRangeAt(0);
12647
12650
  if (e.current && !e.current.contains(k.commonAncestorContainer)) return;
12648
12651
  const S = /* @__PURE__ */ new Set();
12649
12652
  let T = k.commonAncestorContainer;
@@ -12656,14 +12659,14 @@ const zr = "emoji-picker-recent", iu = ({
12656
12659
  }
12657
12660
  o(S);
12658
12661
  }, []), a = L(
12659
- (N, k) => {
12662
+ (w, k) => {
12660
12663
  var v;
12661
12664
  const S = window.getSelection();
12662
12665
  if (!S || S.rangeCount === 0) return;
12663
12666
  const T = S.getRangeAt(0);
12664
12667
  if (T.collapsed)
12665
12668
  return;
12666
- const $ = document.createElement(N);
12669
+ const $ = document.createElement(w);
12667
12670
  k && Object.assign($.style, k);
12668
12671
  try {
12669
12672
  T.surroundContents($);
@@ -12675,7 +12678,7 @@ const zr = "emoji-picker-recent", iu = ({
12675
12678
  },
12676
12679
  [n]
12677
12680
  ), l = L(
12678
- (N) => {
12681
+ (w) => {
12679
12682
  var $;
12680
12683
  const k = window.getSelection();
12681
12684
  if (!k || k.rangeCount === 0) return;
@@ -12683,7 +12686,7 @@ const zr = "emoji-picker-recent", iu = ({
12683
12686
  for (; T && T !== e.current; ) {
12684
12687
  if (T.nodeType === Node.ELEMENT_NODE) {
12685
12688
  const v = T;
12686
- if (v.tagName.toLowerCase() === N.toLowerCase()) {
12689
+ if (v.tagName.toLowerCase() === w.toLowerCase()) {
12687
12690
  const E = v.parentNode;
12688
12691
  for (; v.firstChild; )
12689
12692
  E == null || E.insertBefore(v.firstChild, v);
@@ -12696,40 +12699,40 @@ const zr = "emoji-picker-recent", iu = ({
12696
12699
  n(), ($ = e.current) == null || $.focus();
12697
12700
  },
12698
12701
  [n]
12699
- ), u = L((N) => {
12702
+ ), u = L((w) => {
12700
12703
  const k = window.getSelection();
12701
12704
  if (!k || k.rangeCount === 0) return !1;
12702
12705
  let T = k.getRangeAt(0).commonAncestorContainer;
12703
12706
  for (; T && T !== e.current; ) {
12704
12707
  if (T.nodeType === Node.ELEMENT_NODE) {
12705
12708
  const $ = T, v = $.tagName.toLowerCase();
12706
- if (N === "bold" && (v === "strong" || v === "b") || N === "italic" && (v === "em" || v === "i") || N === "underline" && v === "u" || N === "strikethrough" && (v === "s" || v === "strike" || v === "del") || N === "ul" && v === "ul" || N === "ol" && v === "ol") return !0;
12707
- if (N === "bold") {
12709
+ if (w === "bold" && (v === "strong" || v === "b") || w === "italic" && (v === "em" || v === "i") || w === "underline" && v === "u" || w === "strikethrough" && (v === "s" || v === "strike" || v === "del") || w === "ul" && v === "ul" || w === "ol" && v === "ol") return !0;
12710
+ if (w === "bold") {
12708
12711
  const E = window.getComputedStyle($);
12709
12712
  if (parseInt(E.fontWeight) >= 700) return !0;
12710
12713
  }
12711
- if (N === "italic" && window.getComputedStyle($).fontStyle === "italic" || N === "underline" && window.getComputedStyle($).textDecoration.includes("underline") || N === "strikethrough" && window.getComputedStyle($).textDecoration.includes("line-through"))
12714
+ if (w === "italic" && window.getComputedStyle($).fontStyle === "italic" || w === "underline" && window.getComputedStyle($).textDecoration.includes("underline") || w === "strikethrough" && window.getComputedStyle($).textDecoration.includes("line-through"))
12712
12715
  return !0;
12713
12716
  }
12714
12717
  T = T.parentNode;
12715
12718
  }
12716
12719
  return !1;
12717
12720
  }, []), m = L(
12718
- (N, k) => {
12721
+ (w, k) => {
12719
12722
  var $;
12720
12723
  const T = {
12721
12724
  bold: "strong",
12722
12725
  italic: "em",
12723
12726
  underline: "u",
12724
12727
  strikeThrough: "s"
12725
- }[N];
12726
- T ? u(N === "strikeThrough" ? "strikethrough" : N) ? l(T) : a(T) : N === "insertUnorderedList" ? c("ul") : N === "insertOrderedList" ? c("ol") : N === "createLink" && k ? d(k) : document.execCommand(N, !1, k), n(), ($ = e.current) == null || $.focus();
12728
+ }[w];
12729
+ T ? u(w === "strikeThrough" ? "strikethrough" : w) ? l(T) : a(T) : w === "insertUnorderedList" ? c("ul") : w === "insertOrderedList" ? c("ol") : w === "createLink" && k ? d(k) : document.execCommand(w, !1, k), n(), ($ = e.current) == null || $.focus();
12727
12730
  },
12728
12731
  // createLink y toggleList se definen más abajo; incluirlos crearía dependencia circular
12729
12732
  // eslint-disable-next-line react-hooks/exhaustive-deps
12730
12733
  [a, l, u, n]
12731
12734
  ), d = L(
12732
- (N) => {
12735
+ (w) => {
12733
12736
  var E;
12734
12737
  if (!e.current) return;
12735
12738
  const k = window.getSelection();
@@ -12739,7 +12742,7 @@ const zr = "emoji-picker-recent", iu = ({
12739
12742
  alert("Por favor selecciona el texto que quieres convertir en enlace");
12740
12743
  return;
12741
12744
  }
12742
- let T = N.trim();
12745
+ let T = w.trim();
12743
12746
  if (!T) return;
12744
12747
  T.match(/^https?:\/\//i) || (T = "https://" + T);
12745
12748
  const $ = document.createElement("a");
@@ -12755,7 +12758,7 @@ const zr = "emoji-picker-recent", iu = ({
12755
12758
  },
12756
12759
  [n]
12757
12760
  ), c = L(
12758
- (N) => {
12761
+ (w) => {
12759
12762
  var v, E, M, A;
12760
12763
  if (!e.current) return;
12761
12764
  const k = window.getSelection();
@@ -12773,18 +12776,18 @@ const zr = "emoji-picker-recent", iu = ({
12773
12776
  $ = $.parentNode || null;
12774
12777
  }
12775
12778
  if (T)
12776
- if (T.tagName.toLowerCase() === N) {
12779
+ if (T.tagName.toLowerCase() === w) {
12777
12780
  const H = T.parentNode;
12778
12781
  H && (Array.from(T.children).forEach((_) => {
12779
12782
  const z = document.createElement("div");
12780
12783
  z.innerHTML = _.innerHTML || "<br>", H.insertBefore(z, T);
12781
12784
  }), H.removeChild(T));
12782
12785
  } else {
12783
- const H = document.createElement(N);
12786
+ const H = document.createElement(w);
12784
12787
  H.innerHTML = T.innerHTML, (v = T.parentNode) == null || v.replaceChild(H, T);
12785
12788
  }
12786
12789
  else {
12787
- const j = document.createElement(N), H = document.createElement("li");
12790
+ const j = document.createElement(w), H = document.createElement("li");
12788
12791
  if (k.rangeCount > 0) {
12789
12792
  const _ = k.getRangeAt(0);
12790
12793
  if (_.collapsed) {
@@ -12816,39 +12819,39 @@ const zr = "emoji-picker-recent", iu = ({
12816
12819
  U(() => (document.addEventListener("selectionchange", h), () => {
12817
12820
  document.removeEventListener("selectionchange", h);
12818
12821
  }), [h]);
12819
- const b = L((N) => {
12822
+ const b = L((w) => {
12820
12823
  if (!e.current) return;
12821
12824
  e.current.focus();
12822
12825
  const k = window.getSelection();
12823
12826
  if (!k) return;
12824
12827
  let S;
12825
12828
  k.rangeCount > 0 ? (S = k.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(e.current), S.collapse(!1), k.removeAllRanges(), k.addRange(S));
12826
- const T = document.createTextNode(N);
12829
+ const T = document.createTextNode(w);
12827
12830
  S.insertNode(T), S.setStartAfter(T), S.collapse(!0), k.removeAllRanges(), k.addRange(S);
12828
- }, []), p = L((N) => {
12831
+ }, []), p = L((w) => {
12829
12832
  if (!e.current) return;
12830
12833
  e.current.focus();
12831
12834
  const k = window.getSelection();
12832
12835
  if (!k) return;
12833
12836
  let S;
12834
12837
  k.rangeCount > 0 ? (S = k.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(e.current), S.collapse(!1), k.removeAllRanges(), k.addRange(S));
12835
- const T = S.createContextualFragment(N);
12838
+ const T = S.createContextualFragment(w);
12836
12839
  S.insertNode(T), S.collapse(!1), k.removeAllRanges(), k.addRange(S);
12837
12840
  }, []), x = L(
12838
- (N) => {
12839
- b(N);
12841
+ (w) => {
12842
+ b(w);
12840
12843
  },
12841
12844
  [b]
12842
12845
  ), y = L(
12843
- (N) => {
12844
- p(`<span contenteditable="false" class="mention">@${N}</span>&nbsp;`);
12846
+ (w) => {
12847
+ p(`<span contenteditable="false" class="mention">@${w}</span>&nbsp;`);
12845
12848
  },
12846
12849
  [p]
12847
- ), w = L(() => {
12848
- var N;
12849
- return ((N = e.current) == null ? void 0 : N.innerHTML) || "";
12850
- }, []), g = L((N) => {
12851
- e.current && (e.current.innerHTML = N);
12850
+ ), N = L(() => {
12851
+ var w;
12852
+ return ((w = e.current) == null ? void 0 : w.innerHTML) || "";
12853
+ }, []), g = L((w) => {
12854
+ e.current && (e.current.innerHTML = w);
12852
12855
  }, []), D = L(() => {
12853
12856
  e.current && (e.current.innerHTML = "");
12854
12857
  }, []), C = L(() => {
@@ -12865,7 +12868,7 @@ const zr = "emoji-picker-recent", iu = ({
12865
12868
  handleEditorClick: f,
12866
12869
  insertEmoji: x,
12867
12870
  insertMention: y,
12868
- getHTML: w,
12871
+ getHTML: N,
12869
12872
  setHTML: g,
12870
12873
  clear: D,
12871
12874
  isEmpty: C
@@ -12903,11 +12906,11 @@ const zr = "emoji-picker-recent", iu = ({
12903
12906
  }) => {
12904
12907
  const {
12905
12908
  editorRef: y,
12906
- isFocused: w,
12909
+ isFocused: N,
12907
12910
  setIsFocused: g,
12908
12911
  activeFormats: D,
12909
12912
  execCommand: C,
12910
- handleEditorClick: N,
12913
+ handleEditorClick: w,
12911
12914
  insertEmoji: k,
12912
12915
  getHTML: S,
12913
12916
  setHTML: T,
@@ -12941,7 +12944,7 @@ const zr = "emoji-picker-recent", iu = ({
12941
12944
  "ui-imj",
12942
12945
  "ui-w-full ui-rounded-control-xs ui-border-1 ui-border-default ui-bg-surface-default ui-transition-colors",
12943
12946
  "ui-border-default",
12944
- w && "ui-border-default",
12947
+ N && "ui-border-default",
12945
12948
  o && "ui-pointer-events-none ui-opacity-50",
12946
12949
  h
12947
12950
  ),
@@ -13052,7 +13055,7 @@ const zr = "emoji-picker-recent", iu = ({
13052
13055
  onBlur: () => {
13053
13056
  g(!1);
13054
13057
  },
13055
- onClick: N,
13058
+ onClick: w,
13056
13059
  style: {
13057
13060
  minHeight: `${p}px`,
13058
13061
  maxHeight: `${x}px`
@@ -13179,7 +13182,7 @@ const zr = "emoji-picker-recent", iu = ({
13179
13182
  overlayClassName: d = "",
13180
13183
  size: c = "md"
13181
13184
  }) => {
13182
- const { currentIndex: f, currentImage: h, goToPrevious: b, goToNext: p, goToImage: x, hasPrevious: y, hasNext: w } = au({ images: e, initialIndex: t, onClose: r });
13185
+ const { currentIndex: f, currentImage: h, goToPrevious: b, goToNext: p, goToImage: x, hasPrevious: y, hasNext: N } = au({ images: e, initialIndex: t, onClose: r });
13183
13186
  if (U(() => (i ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
13184
13187
  document.body.style.overflow = "";
13185
13188
  }), [i]), !i || !h) return null;
@@ -13252,7 +13255,7 @@ const zr = "emoji-picker-recent", iu = ({
13252
13255
  ]
13253
13256
  }
13254
13257
  ),
13255
- l && w && /* @__PURE__ */ s(
13258
+ l && N && /* @__PURE__ */ s(
13256
13259
  me,
13257
13260
  {
13258
13261
  theme: "solid",
@@ -13267,13 +13270,13 @@ const zr = "emoji-picker-recent", iu = ({
13267
13270
  )
13268
13271
  ] }),
13269
13272
  n && h.title && /* @__PURE__ */ s("div", { className: "ui-bg-black/50 ui-rounded-lg ui-px-4 ui-py-2 ui-text-center ui-text-lg ui-font-medium ui-text-primary ui-backdrop-blur-sm", children: h.title }),
13270
- a && e.length > 1 && /* @__PURE__ */ s("div", { className: "ui-bg-black/50 ui-flex ui-items-center ui-gap-2 ui-rounded-control-pill ui-px-4 ui-py-3 ui-backdrop-blur-sm", children: e.map((C, N) => /* @__PURE__ */ s(
13273
+ a && e.length > 1 && /* @__PURE__ */ s("div", { className: "ui-bg-black/50 ui-flex ui-items-center ui-gap-2 ui-rounded-control-pill ui-px-4 ui-py-3 ui-backdrop-blur-sm", children: e.map((C, w) => /* @__PURE__ */ s(
13271
13274
  "button",
13272
13275
  {
13273
- onClick: () => x(N),
13274
- className: `ui-h-2.5 ui-w-2.5 ui-rounded-control-pill ui-border-1 ui-transition-all ui-duration-300 ${N === f ? "ui-border-white ui-bg-fill-brand" : "ui-border-default ui-bg-fill hover:ui-border-white hover:ui-bg-fill-brand"}`,
13275
- "aria-label": `Ir a imagen ${N + 1}`,
13276
- title: C.title || `Imagen ${N + 1}`
13276
+ onClick: () => x(w),
13277
+ className: `ui-h-2.5 ui-w-2.5 ui-rounded-control-pill ui-border-1 ui-transition-all ui-duration-300 ${w === f ? "ui-border-white ui-bg-fill-brand" : "ui-border-default ui-bg-fill hover:ui-border-white hover:ui-bg-fill-brand"}`,
13278
+ "aria-label": `Ir a imagen ${w + 1}`,
13279
+ title: C.title || `Imagen ${w + 1}`
13277
13280
  },
13278
13281
  C.id
13279
13282
  )) }),
@@ -13408,8 +13411,8 @@ const gu = (e, t, i) => {
13408
13411
  if (!(!c || o))
13409
13412
  return pu(f);
13410
13413
  }, [f, c, o]), b = (y) => {
13411
- const w = Ye(y);
13412
- et(w) ? n == null || n(w) : (y === "" || y === "#") && (n == null || n(y));
13414
+ const N = Ye(y);
13415
+ et(N) ? n == null || n(N) : (y === "" || y === "#") && (n == null || n(y));
13413
13416
  };
13414
13417
  Ut(u, () => ({
13415
13418
  getValue: () => {
@@ -13417,8 +13420,8 @@ const gu = (e, t, i) => {
13417
13420
  return ((y = m.current) == null ? void 0 : y.getValue()) || "";
13418
13421
  },
13419
13422
  setValue: (y) => {
13420
- var w;
13421
- (w = m.current) == null || w.setValue(y), b(y);
13423
+ var N;
13424
+ (N = m.current) == null || N.setValue(y), b(y);
13422
13425
  },
13423
13426
  focus: () => {
13424
13427
  var y;
@@ -13488,7 +13491,7 @@ const bu = ({ color: e, onColorChange: t, className: i }) => {
13488
13491
  h(A), p(j), x(d, A, j);
13489
13492
  },
13490
13493
  [d, x]
13491
- ), w = L(
13494
+ ), N = L(
13492
13495
  (T) => {
13493
13496
  if (!o.current) return;
13494
13497
  const $ = o.current.getBoundingClientRect(), v = Math.max(0, Math.min(1, (T - $.left) / $.width)), E = Math.round(v * 360);
@@ -13498,11 +13501,11 @@ const bu = ({ color: e, onColorChange: t, className: i }) => {
13498
13501
  ), g = (T) => {
13499
13502
  T.preventDefault(), a(!0), y(T.clientX, T.clientY);
13500
13503
  }, D = (T) => {
13501
- T.preventDefault(), u(!0), w(T.clientX);
13504
+ T.preventDefault(), u(!0), N(T.clientX);
13502
13505
  };
13503
13506
  U(() => {
13504
13507
  const T = (v) => {
13505
- n ? y(v.clientX, v.clientY) : l && w(v.clientX);
13508
+ n ? y(v.clientX, v.clientY) : l && N(v.clientX);
13506
13509
  }, $ = () => {
13507
13510
  a(!1), u(!1);
13508
13511
  };
@@ -13510,10 +13513,10 @@ const bu = ({ color: e, onColorChange: t, className: i }) => {
13510
13513
  return document.addEventListener("mousemove", T), document.addEventListener("mouseup", $), () => {
13511
13514
  document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", $);
13512
13515
  };
13513
- }, [n, l, y, w]);
13516
+ }, [n, l, y, N]);
13514
13517
  const C = {
13515
13518
  background: `linear-gradient(to top, #000 0%, transparent 50%, #fff 100%), linear-gradient(to right, hsl(${d}, 100%, 50%) 0%, transparent 100%)`
13516
- }, N = `linear-gradient(to right,
13519
+ }, w = `linear-gradient(to right,
13517
13520
  hsl(0, 100%, 50%) 0%,
13518
13521
  hsl(60, 100%, 50%) 16.66%,
13519
13522
  hsl(120, 100%, 50%) 33.33%,
@@ -13547,7 +13550,7 @@ const bu = ({ color: e, onColorChange: t, className: i }) => {
13547
13550
  {
13548
13551
  ref: o,
13549
13552
  className: "ui-relative ui-h-16 ui-w-full ui-cursor-pointer ui-overflow-hidden ui-rounded-control-pill",
13550
- style: { background: N },
13553
+ style: { background: w },
13551
13554
  onMouseDown: D,
13552
13555
  children: /* @__PURE__ */ s(
13553
13556
  "div",
@@ -13756,7 +13759,7 @@ const Nu = ({
13756
13759
  i(g), a(g), u("");
13757
13760
  }, y = (g) => {
13758
13761
  i(g), a(g), u("");
13759
- }, w = async () => {
13762
+ }, N = async () => {
13760
13763
  const g = await c();
13761
13764
  if (g) {
13762
13765
  const D = Ye(g);
@@ -13790,7 +13793,7 @@ const Nu = ({
13790
13793
  size: "sm",
13791
13794
  color: "tertiary",
13792
13795
  theme: "solid",
13793
- onClick: w,
13796
+ onClick: N,
13794
13797
  disabled: d,
13795
13798
  tooltip: d ? "Seleccionando color..." : "Seleccionar color de la pantalla",
13796
13799
  tooltipPosition: "top",
@@ -13832,11 +13835,11 @@ const Nu = ({
13832
13835
  const {
13833
13836
  isOpen: x,
13834
13837
  popupStyle: y,
13835
- isPositioned: w,
13838
+ isPositioned: N,
13836
13839
  triggerRef: g,
13837
13840
  popupRef: D,
13838
13841
  containerRef: C,
13839
- togglePopup: N,
13842
+ togglePopup: w,
13840
13843
  closePopup: k
13841
13844
  } = $n({
13842
13845
  position: h,
@@ -13871,17 +13874,17 @@ const Nu = ({
13871
13874
  et(R) && T(R);
13872
13875
  },
13873
13876
  open: () => {
13874
- f || N();
13877
+ f || w();
13875
13878
  },
13876
13879
  close: () => {
13877
13880
  k();
13878
13881
  },
13879
13882
  isOpen: () => x
13880
13883
  }),
13881
- [S, f, T, N, k, x]
13884
+ [S, f, T, w, k, x]
13882
13885
  );
13883
13886
  const A = (z) => {
13884
- f || (z.stopPropagation(), N());
13887
+ f || (z.stopPropagation(), w());
13885
13888
  }, j = (z) => {
13886
13889
  const R = Ye(z);
13887
13890
  et(R) ? (T(R), E(R)) : (z === "" || z === "#") && T(z);
@@ -13891,12 +13894,12 @@ const Nu = ({
13891
13894
  return et(z) ? z : S;
13892
13895
  }, [S]), _ = () => {
13893
13896
  if (!x) return null;
13894
- const z = u.absolute ? "absolute" : "fixed", R = w ? "visible" : "hidden", W = {
13897
+ const z = u.absolute ? "absolute" : "fixed", R = N ? "visible" : "hidden", W = {
13895
13898
  position: z,
13896
13899
  top: u.absolute ? "auto" : "-9999px",
13897
13900
  left: u.absolute ? "auto" : "-9999px",
13898
13901
  visibility: R,
13899
- opacity: w ? 1 : 0,
13902
+ opacity: N ? 1 : 0,
13900
13903
  transition: "opacity 0.1s ease-out",
13901
13904
  ...y
13902
13905
  }, Y = /* @__PURE__ */ s(
@@ -13977,17 +13980,17 @@ const ku = [
13977
13980
  U(() => {
13978
13981
  e > t && t > 0 && l(t);
13979
13982
  }, [e, t, l]);
13980
- const b = (N) => {
13981
- N >= 1 && N <= t && l(N);
13983
+ const b = (w) => {
13984
+ w >= 1 && w <= t && l(w);
13982
13985
  }, [p, x] = V(i);
13983
13986
  U(() => {
13984
13987
  x(i);
13985
13988
  }, [i]);
13986
- const y = Math.min(e * (i || 0), r || 0) || 0, w = te(() => !a || a.length === 0 ? 5 : Math.min(...a.map((N) => Number(N.id) || 5)), [a]), D = (() => {
13987
- const N = Math.min(Math.max(e, 1), Math.max(t - d + 1, 1)), k = Math.min(N + d - 1, t);
13988
- return Array.from({ length: k - N + 1 }, (S, T) => N + T);
13989
- })(), C = (N) => {
13990
- x(N), u(N), b(1);
13989
+ const y = Math.min(e * (i || 0), r || 0) || 0, N = te(() => !a || a.length === 0 ? 5 : Math.min(...a.map((w) => Number(w.id) || 5)), [a]), D = (() => {
13990
+ const w = Math.min(Math.max(e, 1), Math.max(t - d + 1, 1)), k = Math.min(w + d - 1, t);
13991
+ return Array.from({ length: k - w + 1 }, (S, T) => w + T);
13992
+ })(), C = (w) => {
13993
+ x(w), u(w), b(1);
13991
13994
  };
13992
13995
  return /* @__PURE__ */ s(
13993
13996
  "div",
@@ -14046,23 +14049,23 @@ const ku = [
14046
14049
  tooltipProps: { label: "Primera página", position: "top-left" }
14047
14050
  }
14048
14051
  ),
14049
- D.map((N) => /* @__PURE__ */ s(
14052
+ D.map((w) => /* @__PURE__ */ s(
14050
14053
  me,
14051
14054
  {
14052
14055
  square: !0,
14053
- onClick: () => b(N),
14054
- whiteBackground: e === N,
14056
+ onClick: () => b(w),
14057
+ whiteBackground: e === w,
14055
14058
  size: "xs",
14056
14059
  theme: "solid",
14057
14060
  pill: "pill",
14058
14061
  color: "secondary",
14059
14062
  disabled: t === 1,
14060
- active: e === N,
14061
- "aria-label": `Ir a la página ${N}`,
14062
- "aria-current": e === N ? "page" : void 0,
14063
- children: N
14063
+ active: e === w,
14064
+ "aria-label": `Ir a la página ${w}`,
14065
+ "aria-current": e === w ? "page" : void 0,
14066
+ children: w
14064
14067
  },
14065
- N
14068
+ w
14066
14069
  )),
14067
14070
  /* @__PURE__ */ s(
14068
14071
  me,
@@ -14095,7 +14098,7 @@ const ku = [
14095
14098
  ]
14096
14099
  }
14097
14100
  ) : /* @__PURE__ */ s("div", {}),
14098
- /* @__PURE__ */ s("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: f && r && r > w && /* @__PURE__ */ P(ze, { children: [
14101
+ /* @__PURE__ */ s("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: f && r && r > N && /* @__PURE__ */ P(ze, { children: [
14099
14102
  /* @__PURE__ */ s(
14100
14103
  "label",
14101
14104
  {
@@ -14113,7 +14116,7 @@ const ku = [
14113
14116
  value: p,
14114
14117
  idName: "id",
14115
14118
  className: "ui-min-w-[68px]",
14116
- onValueChange: (N) => C(Number(N))
14119
+ onValueChange: (w) => C(Number(w))
14117
14120
  }
14118
14121
  )
14119
14122
  ] }) })
@@ -14329,7 +14332,7 @@ const ku = [
14329
14332
  u(!1);
14330
14333
  }, []), y = L(() => {
14331
14334
  i || d(!0);
14332
- }, [i]), w = L(() => {
14335
+ }, [i]), N = L(() => {
14333
14336
  d(!1), u(!1);
14334
14337
  }, []), g = L(
14335
14338
  (D) => {
@@ -14353,7 +14356,7 @@ const ku = [
14353
14356
  handleMouseDown: p,
14354
14357
  handleMouseUp: x,
14355
14358
  handleMouseEnter: y,
14356
- handleMouseLeave: w,
14359
+ handleMouseLeave: N,
14357
14360
  handleClick: g
14358
14361
  }
14359
14362
  };
@@ -14765,7 +14768,7 @@ const ku = [
14765
14768
  currentStep: u,
14766
14769
  onClickStep: m,
14767
14770
  onStepChange: d
14768
- }), w = p(t || "blue"), g = f ? [
14771
+ }), N = p(t || "blue"), g = f ? [
14769
14772
  "ui-flex",
14770
14773
  "ui-flex-col",
14771
14774
  "ui-items-start",
@@ -14780,14 +14783,14 @@ const ku = [
14780
14783
  c && "ui-overflow-x-auto ui-overflow-y-hidden"
14781
14784
  ].filter(Boolean).join(" ");
14782
14785
  return /* @__PURE__ */ s("div", { className: I("ui-imj", g, Qu({ color: t, size: i, className: r })), children: e.map((D, C) => {
14783
- const N = y(C), k = C === e.length - 1;
14786
+ const w = y(C), k = C === e.length - 1;
14784
14787
  return /* @__PURE__ */ s(
14785
14788
  Ku,
14786
14789
  {
14787
14790
  step: D,
14788
14791
  stepIndex: C,
14789
- status: N,
14790
- colorClasses: w,
14792
+ status: w,
14793
+ colorClasses: N,
14791
14794
  isLast: k,
14792
14795
  onStepClick: x,
14793
14796
  classNameStep: o,
@@ -15079,8 +15082,8 @@ const It = [
15079
15082
  U(() => {
15080
15083
  const g = h.current;
15081
15084
  if (!g) return;
15082
- const D = () => f(!0), C = (N) => {
15083
- g.contains(N.relatedTarget) || f(!1);
15085
+ const D = () => f(!0), C = (w) => {
15086
+ g.contains(w.relatedTarget) || f(!1);
15084
15087
  };
15085
15088
  return g.addEventListener("focusin", D), g.addEventListener("focusout", C), () => {
15086
15089
  g.removeEventListener("focusin", D), g.removeEventListener("focusout", C);
@@ -15097,7 +15100,7 @@ const It = [
15097
15100
  ).map((g) => ({
15098
15101
  value: g.value,
15099
15102
  label: g.label
15100
- })), y = It.find((g) => g.value === n), w = (g) => {
15103
+ })), y = It.find((g) => g.value === n), N = (g) => {
15101
15104
  if (Array.isArray(g) && t.options) {
15102
15105
  const D = t.options.filter((C) => g.includes(C.value));
15103
15106
  p(D);
@@ -15128,7 +15131,7 @@ const It = [
15128
15131
  return `${D} ${g}`;
15129
15132
  if (n === "in") {
15130
15133
  if (b.length > 0) {
15131
- const C = b.map((N) => `"${N.label}"`).join(", ");
15134
+ const C = b.map((w) => `"${w.label}"`).join(", ");
15132
15135
  return `${D} ${g} [${C}]`;
15133
15136
  }
15134
15137
  return null;
@@ -15186,7 +15189,7 @@ const It = [
15186
15189
  placeholder: "Selecciona opciones...",
15187
15190
  options: t.options,
15188
15191
  value: b.map((g) => g.value),
15189
- onValueChange: w,
15192
+ onValueChange: N,
15190
15193
  valueName: "label",
15191
15194
  idName: "value",
15192
15195
  size: "xs",
@@ -15207,8 +15210,8 @@ const It = [
15207
15210
  })() : null,
15208
15211
  onDateChange: (g) => {
15209
15212
  if (g) {
15210
- const D = g.getFullYear(), C = String(g.getMonth() + 1).padStart(2, "0"), N = String(g.getDate()).padStart(2, "0");
15211
- u(`${D}-${C}-${N}`);
15213
+ const D = g.getFullYear(), C = String(g.getMonth() + 1).padStart(2, "0"), w = String(g.getDate()).padStart(2, "0");
15214
+ u(`${D}-${C}-${w}`);
15212
15215
  } else
15213
15216
  u("");
15214
15217
  },
@@ -15224,8 +15227,8 @@ const It = [
15224
15227
  })() : null,
15225
15228
  onDateChange: (g) => {
15226
15229
  if (g) {
15227
- const D = g.getFullYear(), C = String(g.getMonth() + 1).padStart(2, "0"), N = String(g.getDate()).padStart(2, "0");
15228
- d(`${D}-${C}-${N}`);
15230
+ const D = g.getFullYear(), C = String(g.getMonth() + 1).padStart(2, "0"), w = String(g.getDate()).padStart(2, "0");
15231
+ d(`${D}-${C}-${w}`);
15229
15232
  } else
15230
15233
  d("");
15231
15234
  },
@@ -15362,7 +15365,7 @@ const It = [
15362
15365
  return v ? v.requiresValue ? $.operator === "in" ? Array.isArray($.value) && $.value.length > 0 : v.requiresSecondValue ? $.value && $.value.toString().trim() !== "" && $.value2 && $.value2.toString().trim() !== "" : $.value && $.value.toString().trim() !== "" : !0 : !1;
15363
15366
  });
15364
15367
  r(S), u(!1), (T = a.current) == null || T.close();
15365
- }, [m, r]), w = L(() => {
15368
+ }, [m, r]), N = L(() => {
15366
15369
  d([]);
15367
15370
  }, []), g = L(() => {
15368
15371
  if (!c) return;
@@ -15390,7 +15393,7 @@ const It = [
15390
15393
  []
15391
15394
  ), C = L((S) => {
15392
15395
  d((T) => T.filter(($) => $.id !== S));
15393
- }, []), N = L(
15396
+ }, []), w = L(
15394
15397
  (S, T) => {
15395
15398
  d(
15396
15399
  ($) => $.map((v) => v.id === S ? { ...v, logicOperator: T } : v)
@@ -15499,7 +15502,7 @@ const It = [
15499
15502
  sc,
15500
15503
  {
15501
15504
  value: S.logicOperator || "and",
15502
- onChange: (E) => N(S.id, E)
15505
+ onChange: (E) => w(S.id, E)
15503
15506
  }
15504
15507
  )
15505
15508
  ] }, S.id);
@@ -15514,7 +15517,7 @@ const It = [
15514
15517
  color: "secondary",
15515
15518
  size: "xs",
15516
15519
  iconProps: { icon: hs },
15517
- onClick: w,
15520
+ onClick: N,
15518
15521
  pill: "pill",
15519
15522
  tooltipProps: { label: "Limpiar filtros", position: "top-left" }
15520
15523
  }
@@ -15561,11 +15564,11 @@ const ac = ({
15561
15564
  columns: p = [],
15562
15565
  rows: x = [],
15563
15566
  filters: y = [],
15564
- onColumnConfig: w,
15567
+ onColumnConfig: N,
15565
15568
  onColumnVisibilityChange: g,
15566
15569
  onMultipleColumnVisibilityChange: D,
15567
15570
  onColumnReorder: C,
15568
- onFiltersApply: N,
15571
+ onFiltersApply: w,
15569
15572
  className: k
15570
15573
  }) => {
15571
15574
  const [S, T] = V(""), [$, v] = V([]), [E, M] = V([]), [A, j] = V(!1), H = Q(null), _ = Q(null);
@@ -15658,9 +15661,9 @@ const ac = ({
15658
15661
  const G = y.filter(
15659
15662
  (q) => !(q.columnId === F.columnId && q.operator === F.operator && q.value === F.value)
15660
15663
  );
15661
- N == null || N(G);
15664
+ w == null || w(G);
15662
15665
  }, se = () => {
15663
- N == null || N([]), T(""), d == null || d("");
15666
+ w == null || w([]), T(""), d == null || d("");
15664
15667
  }, he = () => {
15665
15668
  T(""), d == null || d("");
15666
15669
  }, xe = y.length > 0 || S.trim().length > 0, oe = y.length + (S.trim().length > 0 ? 1 : 0);
@@ -15756,7 +15759,7 @@ const ac = ({
15756
15759
  rows: x,
15757
15760
  filters: y,
15758
15761
  onFiltersApply: (F) => {
15759
- N == null || N(F);
15762
+ w == null || w(F);
15760
15763
  }
15761
15764
  }
15762
15765
  ),
@@ -15909,9 +15912,9 @@ const Hn = qe(
15909
15912
  const m = it(r, I("", o), i.locked, l, void 0, u), d = rt(i, a), c = gt(i.contentAlign), f = I(
15910
15913
  "ui-flex ui-items-center ui-gap-8 ui-min-w-max ui-h-full",
15911
15914
  c
15912
- ), h = r === "selected" && !u ? "ui-text-brand-selected" : "ui-text-primary", b = r === "selected" && !u ? "ui-text-brand-selected" : "ui-text-primary", x = typeof e == "object" && e !== null && !Array.isArray(e) ? e : null, y = t && typeof t == "object" && "avatar" in t ? t : null, w = (x == null ? void 0 : x.avatar) ?? (y == null ? void 0 : y.avatar), g = (x == null ? void 0 : x.name) ?? e, D = (x == null ? void 0 : x.subtitle) ?? (y == null ? void 0 : y.subtitle);
15915
+ ), h = r === "selected" && !u ? "ui-text-brand-selected" : "ui-text-primary", b = r === "selected" && !u ? "ui-text-brand-selected" : "ui-text-primary", x = typeof e == "object" && e !== null && !Array.isArray(e) ? e : null, y = t && typeof t == "object" && "avatar" in t ? t : null, N = (x == null ? void 0 : x.avatar) ?? (y == null ? void 0 : y.avatar), g = (x == null ? void 0 : x.name) ?? e, D = (x == null ? void 0 : x.subtitle) ?? (y == null ? void 0 : y.subtitle);
15913
15916
  return /* @__PURE__ */ s("td", { className: m, ...d, onClick: (C) => Ue(C, n), children: /* @__PURE__ */ P("div", { className: f, children: [
15914
- w && /* @__PURE__ */ s(St, { type: "people", size: "sm", src: w }),
15917
+ N && /* @__PURE__ */ s(St, { type: "people", size: "sm", src: N }),
15915
15918
  /* @__PURE__ */ P("div", { className: "ui-flex ui-flex-col ui-justify-center", children: [
15916
15919
  /* @__PURE__ */ s(
15917
15920
  "span",
@@ -15954,9 +15957,9 @@ const Yn = qe(
15954
15957
  const u = it(i, r, t.locked, a, void 0, l), m = rt(t, n), d = e && typeof e == "object" && "text" in e && "type" in e, c = d ? e.text : String(e || ""), h = (() => {
15955
15958
  if (d)
15956
15959
  return e.type;
15957
- const w = t.statusMap;
15958
- if (w && c in w)
15959
- return w[c];
15960
+ const N = t.statusMap;
15961
+ if (N && c in N)
15962
+ return N[c];
15960
15963
  const g = c.toLowerCase();
15961
15964
  return g.includes("disponible") || g.includes("success") || g.includes("active") || g.includes("activo") || g.includes("enabled") ? "success" : g.includes("ocupado") || g.includes("warning") || g.includes("pendiente") ? "warning" : g.includes("error") || g.includes("danger") || g.includes("rechazado") ? "danger" : "gray";
15962
15965
  })(), b = i === "selected", p = {
@@ -16001,7 +16004,7 @@ const Yn = qe(
16001
16004
  }
16002
16005
  }
16003
16006
  }, x = b ? p[h].selected : p[h].default, y = gt(t.contentAlign);
16004
- return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (w) => Ue(w, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", y), children: /* @__PURE__ */ s(
16007
+ return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (N) => Ue(N, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", y), children: /* @__PURE__ */ s(
16005
16008
  "div",
16006
16009
  {
16007
16010
  className: I(
@@ -16064,16 +16067,16 @@ const lc = {
16064
16067
  let b = [];
16065
16068
  if (h) {
16066
16069
  const p = e, x = [];
16067
- Object.entries(lc).forEach(([w, g]) => {
16068
- const D = w, C = p[D];
16070
+ Object.entries(lc).forEach(([N, g]) => {
16071
+ const D = N, C = p[D];
16069
16072
  if (C && typeof C == "function") {
16070
- const N = `${D}Disabled`;
16073
+ const w = `${D}Disabled`;
16071
16074
  x.push({
16072
16075
  type: D,
16073
16076
  icon: g.icon,
16074
16077
  tooltip: g.tooltip,
16075
16078
  onClick: C,
16076
- disabled: p[N]
16079
+ disabled: p[w]
16077
16080
  });
16078
16081
  }
16079
16082
  });
@@ -16143,12 +16146,12 @@ const uc = ({
16143
16146
  },
16144
16147
  b
16145
16148
  );
16146
- const w = dc(y).slice(0, 3);
16149
+ const N = dc(y).slice(0, 3);
16147
16150
  return /* @__PURE__ */ s(
16148
16151
  St,
16149
16152
  {
16150
16153
  type: "letter",
16151
- text: w,
16154
+ text: N,
16152
16155
  size: Fr,
16153
16156
  className: "ui-flex-shrink-0 ui-border ui-border-default"
16154
16157
  },
@@ -16171,7 +16174,7 @@ const uc = ({
16171
16174
  isLastLocked: l = !1,
16172
16175
  isRowEditing: u
16173
16176
  }) => {
16174
- const [m, d] = V(e), [c, f] = V(""), h = Q(e), b = Q(!1), p = i === "selected" && t.editable && t.editable !== "none", x = it(i, o, t.locked, l, p, u), y = rt(t, a), w = gt(t.contentAlign), g = ($) => {
16177
+ const [m, d] = V(e), [c, f] = V(""), h = Q(e), b = Q(!1), p = i === "selected" && t.editable && t.editable !== "none", x = it(i, o, t.locked, l, p, u), y = rt(t, a), N = gt(t.contentAlign), g = ($) => {
16175
16178
  const v = t.type;
16176
16179
  return (v === "number" || v === "numeric") && $ !== "" && $ !== "-" && $ !== "+" && $ !== "." && !/^-?\d*\.?\d*$/.test($) ? "Debe ser un número válido" : "";
16177
16180
  };
@@ -16211,17 +16214,17 @@ const uc = ({
16211
16214
  }
16212
16215
  f("");
16213
16216
  }
16214
- }, N = ($) => {
16217
+ }, w = ($) => {
16215
16218
  const v = g($);
16216
16219
  f(v), d($), v || (b.current = !0);
16217
16220
  }, k = () => {
16218
16221
  b.current && m !== h.current && (r == null || r(m), h.current = m), b.current = !1;
16219
16222
  }, T = c !== "";
16220
- return /* @__PURE__ */ s("td", { className: x, ...y, onClick: ($) => Ue($, n), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", w), children: /* @__PURE__ */ s(
16223
+ return /* @__PURE__ */ s("td", { className: x, ...y, onClick: ($) => Ue($, n), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", N), children: /* @__PURE__ */ s(
16221
16224
  tt,
16222
16225
  {
16223
16226
  value: m ? String(m) : "",
16224
- onValueChange: N,
16227
+ onValueChange: w,
16225
16228
  onFocus: D,
16226
16229
  onBlur: k,
16227
16230
  onKeyDown: C,
@@ -16290,7 +16293,7 @@ const uc = ({
16290
16293
  isRowEditing: l
16291
16294
  }) => {
16292
16295
  const u = it(i, r, t.locked, a, void 0, l), m = rt(t, n), d = gt(t.contentAlign), f = e && typeof e == "object" && !Array.isArray(e) ? e : null, h = (f == null ? void 0 : f.value) ?? (typeof e == "number" ? e : 0), b = f == null ? void 0 : f.label, p = typeof h == "number" ? Math.min(Math.max(h, 0), 100) : 0, x = i === "selected", y = x && !l ? "ui-text-brand-selected" : "ui-text-secondary";
16293
- return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (w) => Ue(w, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", d), children: /* @__PURE__ */ P("div", { className: "ui-flex ui-items-center ui-gap-2 ui-w-full", children: [
16296
+ return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (N) => Ue(N, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", d), children: /* @__PURE__ */ P("div", { className: "ui-flex ui-items-center ui-gap-2 ui-w-full", children: [
16294
16297
  /* @__PURE__ */ s(
16295
16298
  gi,
16296
16299
  {
@@ -16360,14 +16363,14 @@ const uc = ({
16360
16363
  const y = bc(t.id);
16361
16364
  return yc(b, y);
16362
16365
  }, [t.id, h, b]), x = gt(t.contentAlign);
16363
- return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (y) => Ue(y, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", x), children: /* @__PURE__ */ s("div", { className: "ui-flex ui-items-center ui-gap-1", children: d.map((y, w) => {
16366
+ return /* @__PURE__ */ s("td", { className: u, ...m, onClick: (y) => Ue(y, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", x), children: /* @__PURE__ */ s("div", { className: "ui-flex ui-items-center ui-gap-1", children: d.map((y, N) => {
16364
16367
  const g = typeof y == "object" && y !== null ? {
16365
16368
  label: y[c] || y.label || String(y),
16366
16369
  color: y[f] || y.color || "gray",
16367
16370
  avatar: y.avatar,
16368
16371
  onClose: y.onClose
16369
16372
  } : { label: String(y), color: "gray" };
16370
- return h && p.length > 0 && (g.color = p[w % p.length]), /* @__PURE__ */ s("div", { className: "ui-max-w-[200px] ui-flex-shrink-0", children: /* @__PURE__ */ s(
16373
+ return h && p.length > 0 && (g.color = p[N % p.length]), /* @__PURE__ */ s("div", { className: "ui-max-w-[200px] ui-flex-shrink-0", children: /* @__PURE__ */ s(
16371
16374
  Gt,
16372
16375
  {
16373
16376
  label: g.label,
@@ -16375,7 +16378,7 @@ const uc = ({
16375
16378
  avatar: g.avatar,
16376
16379
  onClose: g.onClose
16377
16380
  }
16378
- ) }, w);
16381
+ ) }, N);
16379
16382
  }) }) }) });
16380
16383
  }
16381
16384
  );
@@ -16438,8 +16441,8 @@ const bi = (e) => /* @__PURE__ */ s(Vt, { ...e }), xc = ({
16438
16441
  if (typeof C[0] == "string")
16439
16442
  p = [x(C[0])];
16440
16443
  else if ((D = C[0]) != null && D.src) {
16441
- const N = C[0];
16442
- N && (p = [N]);
16444
+ const w = C[0];
16445
+ w && (p = [w]);
16443
16446
  }
16444
16447
  } else typeof C == "string" && (p = [x(C)]);
16445
16448
  }
@@ -16643,10 +16646,10 @@ const bi = (e) => /* @__PURE__ */ s(Vt, { ...e }), xc = ({
16643
16646
  isRowEditing: d
16644
16647
  }) => {
16645
16648
  const c = it(i, r, t.locked, a, void 0, d), f = rt(t, n), h = t.dateFormat || l, b = t.locale || u, p = t.dateFallback || m, x = te(() => {
16646
- const w = Nc(e);
16647
- return w ? kc(w, h, b) : p;
16649
+ const N = Nc(e);
16650
+ return N ? kc(N, h, b) : p;
16648
16651
  }, [e, h, b, p]), y = gt(t.contentAlign);
16649
- return t.render ? /* @__PURE__ */ s("td", { className: c, ...f, onClick: (w) => Ue(w, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", y), children: t.render(e, null, t) }) }) : /* @__PURE__ */ s("td", { className: c, ...f, onClick: (w) => Ue(w, o), children: /* @__PURE__ */ s(
16652
+ return t.render ? /* @__PURE__ */ s("td", { className: c, ...f, onClick: (N) => Ue(N, o), children: /* @__PURE__ */ s("div", { className: I("ui-flex ui-h-full ui-items-center", y), children: t.render(e, null, t) }) }) : /* @__PURE__ */ s("td", { className: c, ...f, onClick: (N) => Ue(N, o), children: /* @__PURE__ */ s(
16650
16653
  "div",
16651
16654
  {
16652
16655
  className: I("ui-flex ui-h-full ui-items-center ui-text-body-sm-regular", y),
@@ -16671,11 +16674,11 @@ const Cc = ({
16671
16674
  isActionsColumn: c = !1
16672
16675
  }) => {
16673
16676
  const f = (a == null ? void 0 : a(t.id, e.id)) || !1, h = t._isEditing === !0, b = f ? "focused" : o ? "selected" : "default", p = i && typeof i == "object" && !Array.isArray(i) && "type" in i && "value" in i, x = p ? i.value : i, y = p ? i.onChange : void 0;
16674
- let w = e.type, g = e, D = !1;
16677
+ let N = e.type, g = e, D = !1;
16675
16678
  if (p) {
16676
16679
  const S = i;
16677
- w = S.type, g = { ...e, columnOptions: S.options }, D = !0;
16678
- } else e.editable && e.editable !== "none" && h && (w = e.editable, g = { ...e, columnOptions: e.columnOptions }, D = !0);
16680
+ N = S.type, g = { ...e, columnOptions: S.options }, D = !0;
16681
+ } else e.editable && e.editable !== "none" && h && (N = e.editable, g = { ...e, columnOptions: e.columnOptions }, D = !0);
16679
16682
  const C = (S) => {
16680
16683
  y == null || y(S), l == null || l(t.id, e.id, S);
16681
16684
  }, k = {
@@ -16692,7 +16695,7 @@ const Cc = ({
16692
16695
  isActionsColumn: c,
16693
16696
  isRowEditing: h
16694
16697
  };
16695
- switch (w) {
16698
+ switch (N) {
16696
16699
  case "primary":
16697
16700
  return /* @__PURE__ */ s(Hn, { ...k });
16698
16701
  case "status":
@@ -16745,10 +16748,10 @@ const Cc = ({
16745
16748
  onLock: p,
16746
16749
  onResize: x,
16747
16750
  onResizeDoubleClick: y,
16748
- onResizeHover: w,
16751
+ onResizeHover: N,
16749
16752
  className: g
16750
16753
  }) => {
16751
- const D = Q(null), [C, N] = V(!1), [k, S] = V(!1), [T, $] = V(!1), v = Q(0), E = Q(0), M = Q(0), A = Q(80), j = Q(null), H = Q(!1), _ = Q(x), z = Q(e.id), R = Q(!1), W = Q(), Y = Q();
16754
+ const D = Q(null), [C, w] = V(!1), [k, S] = V(!1), [T, $] = V(!1), v = Q(0), E = Q(0), M = Q(0), A = Q(80), j = Q(null), H = Q(!1), _ = Q(x), z = Q(e.id), R = Q(!1), W = Q(), Y = Q();
16752
16755
  U(() => {
16753
16756
  _.current = x, z.current = e.id, R.current = k;
16754
16757
  }, [x, e.id, k]), U(() => {
@@ -16803,7 +16806,7 @@ const Cc = ({
16803
16806
  const O = (oe) => {
16804
16807
  var Se;
16805
16808
  if (oe.preventDefault(), oe.stopPropagation(), !D.current || !x) return;
16806
- N(!0), S(!1), R.current = !1, v.current = oe.clientX, E.current = oe.clientX;
16809
+ w(!0), S(!1), R.current = !1, v.current = oe.clientX, E.current = oe.clientX;
16807
16810
  const F = typeof e.width == "number" ? e.width : D.current.offsetWidth;
16808
16811
  isNaN(F) || F <= 0 ? M.current = 150 : M.current = F;
16809
16812
  let G = 0;
@@ -16843,17 +16846,17 @@ const Cc = ({
16843
16846
  W.current = B;
16844
16847
  }, [B]);
16845
16848
  const K = L(() => {
16846
- N(!1), S(!1), R.current = !1, $(!1), w == null || w(!1), E.current = 0, j.current && (cancelAnimationFrame(j.current), j.current = null);
16847
- }, [w]);
16849
+ w(!1), S(!1), R.current = !1, $(!1), N == null || N(!1), E.current = 0, j.current && (cancelAnimationFrame(j.current), j.current = null);
16850
+ }, [N]);
16848
16851
  U(() => {
16849
16852
  Y.current = K;
16850
16853
  }, [K]);
16851
16854
  const ne = (oe) => {
16852
16855
  oe.preventDefault(), oe.stopPropagation(), y == null || y();
16853
16856
  }, se = () => {
16854
- $(!0), w == null || w(!0);
16857
+ $(!0), N == null || N(!0);
16855
16858
  }, he = () => {
16856
- C || ($(!1), w == null || w(!1));
16859
+ C || ($(!1), N == null || N(!1));
16857
16860
  };
16858
16861
  U(() => {
16859
16862
  if (C) {
@@ -17027,7 +17030,7 @@ const Cc = ({
17027
17030
  isCellFocused: h,
17028
17031
  onCellChange: b
17029
17032
  }) => {
17030
- const p = t.some((C) => C.locked), x = r.length > 0 ? r.includes(e.id) : i, y = e._isEditing === !0, w = I(
17033
+ const p = t.some((C) => C.locked), x = r.length > 0 ? r.includes(e.id) : i, y = e._isEditing === !0, N = I(
17031
17034
  "ui-group ui-transition-colors ui-duration-150",
17032
17035
  (x || y) && "ui-bg-surface-brand-default",
17033
17036
  // row.expanded ya NO aplica fondo - solo se muestra seleccionado si está checkeado
@@ -17038,7 +17041,7 @@ const Cc = ({
17038
17041
  e.disabled || C.target.closest("button") || l == null || l(e);
17039
17042
  }, D = !e.isParent && "_isChild" in e && e._isChild;
17040
17043
  return /* @__PURE__ */ P(ze, { children: [
17041
- /* @__PURE__ */ P("tr", { className: w, onClick: g, "data-editing": y ? "true" : void 0, children: [
17044
+ /* @__PURE__ */ P("tr", { className: N, onClick: g, "data-editing": y ? "true" : void 0, children: [
17042
17045
  u && /* @__PURE__ */ s(
17043
17046
  "td",
17044
17047
  {
@@ -17102,15 +17105,15 @@ const Cc = ({
17102
17105
  }
17103
17106
  ),
17104
17107
  (() => {
17105
- const C = t.filter((S) => S.visible !== !1), N = [
17108
+ const C = t.filter((S) => S.visible !== !1), w = [
17106
17109
  ...C.filter((S) => S.locked),
17107
17110
  ...C.filter((S) => !S.locked)
17108
- ], k = N.filter((S) => S.locked);
17109
- return N.map((S, T) => {
17111
+ ], k = w.filter((S) => S.locked);
17112
+ return w.map((S, T) => {
17110
17113
  const $ = S.accessor ? typeof S.accessor == "function" ? S.accessor(e) : e[S.accessor] : void 0, v = S.render ? S.render($, e, S) : $, E = S.locked && k.length > 0 && k[k.length - 1].id === S.id, M = S.type === "actions";
17111
17114
  let A = (u ? 48 : 0) + (m ? 48 : 0);
17112
17115
  for (let H = 0; H < T; H++) {
17113
- const _ = N[H];
17116
+ const _ = w[H];
17114
17117
  if (_.locked) {
17115
17118
  let z = 150;
17116
17119
  const R = document.querySelector(`th[data-column-id="${_.id}"]`);
@@ -17128,8 +17131,8 @@ const Cc = ({
17128
17131
  let j = 0;
17129
17132
  if (M && c) {
17130
17133
  let H = 0;
17131
- for (let _ = T + 1; _ < N.length; _++) {
17132
- const z = N[_];
17134
+ for (let _ = T + 1; _ < w.length; _++) {
17135
+ const z = w[_];
17133
17136
  if (z.type === "actions") {
17134
17137
  let R = 120;
17135
17138
  const W = document.querySelector(`th[data-column-id="${z.id}"]`);
@@ -17359,15 +17362,15 @@ const Cc = ({
17359
17362
  onResizeDoubleClick: x,
17360
17363
  onResizeHover: y
17361
17364
  }) => {
17362
- const w = Q(null), [g, D] = V({}), C = e.filter((S) => S.visible !== !1), N = [
17365
+ const N = Q(null), [g, D] = V({}), C = e.filter((S) => S.visible !== !1), w = [
17363
17366
  ...C.filter((S) => S.locked),
17364
17367
  ...C.filter((S) => !S.locked)
17365
17368
  ], k = e.some((S) => S.locked);
17366
17369
  return U(() => {
17367
- if (!w.current || !k) return;
17370
+ if (!N.current || !k) return;
17368
17371
  const T = setTimeout(() => {
17369
17372
  var M;
17370
- const $ = {}, v = (M = w.current) == null ? void 0 : M.querySelectorAll("th[data-column-id]");
17373
+ const $ = {}, v = (M = N.current) == null ? void 0 : M.querySelectorAll("th[data-column-id]");
17371
17374
  v == null || v.forEach((A) => {
17372
17375
  const j = A.getAttribute("data-column-id");
17373
17376
  j && ($[j] = A.getBoundingClientRect().width);
@@ -17377,7 +17380,7 @@ const Cc = ({
17377
17380
  }, [e, k, g]), /* @__PURE__ */ s(
17378
17381
  "thead",
17379
17382
  {
17380
- ref: w,
17383
+ ref: N,
17381
17384
  className: "ui-bg-fill",
17382
17385
  children: /* @__PURE__ */ P("tr", { children: [
17383
17386
  r && /* @__PURE__ */ s(
@@ -17420,13 +17423,13 @@ const Cc = ({
17420
17423
  }
17421
17424
  }
17422
17425
  ),
17423
- N.map((S, T) => {
17424
- const $ = (t == null ? void 0 : t.columnId) === S.id, v = i.some((z) => z.columnId === S.id), E = N.filter((z) => z.locked), M = S.locked && E.length > 0 && E[E.length - 1].id === S.id, A = S.type === "actions";
17426
+ w.map((S, T) => {
17427
+ const $ = (t == null ? void 0 : t.columnId) === S.id, v = i.some((z) => z.columnId === S.id), E = w.filter((z) => z.locked), M = S.locked && E.length > 0 && E[E.length - 1].id === S.id, A = S.type === "actions";
17425
17428
  let j = (r ? 48 : 0) + (o ? 48 : 0), H = 0;
17426
17429
  if (A && d) {
17427
17430
  let z = 0;
17428
- for (let R = T + 1; R < N.length; R++) {
17429
- const W = N[R];
17431
+ for (let R = T + 1; R < w.length; R++) {
17432
+ const W = w[R];
17430
17433
  if (W.type === "actions") {
17431
17434
  const Y = g[W.id] || (typeof W.width == "number" ? W.width : typeof W.width == "string" && parseInt(W.width, 10) || 120);
17432
17435
  z += Y;
@@ -17436,7 +17439,7 @@ const Cc = ({
17436
17439
  }
17437
17440
  const _ = [];
17438
17441
  for (let z = 0; z < T; z++) {
17439
- const R = N[z];
17442
+ const R = w[z];
17440
17443
  if (R.locked) {
17441
17444
  let W = g[R.id] || 150;
17442
17445
  if (!g[R.id]) {
@@ -17556,8 +17559,8 @@ const Cc = ({
17556
17559
  isCellFocused: b,
17557
17560
  onCellChange: p
17558
17561
  }) => {
17559
- const x = t.filter((w) => w.visible !== !1), y = x.length + (a ? 1 : 0) + (l ? 1 : 0);
17560
- return i ? /* @__PURE__ */ s("tbody", { children: Array.from({ length: 10 }).map((w, g) => /* @__PURE__ */ s(
17562
+ const x = t.filter((N) => N.visible !== !1), y = x.length + (a ? 1 : 0) + (l ? 1 : 0);
17563
+ return i ? /* @__PURE__ */ s("tbody", { children: Array.from({ length: 10 }).map((N, g) => /* @__PURE__ */ s(
17561
17564
  Ec,
17562
17565
  {
17563
17566
  columns: x,
@@ -17565,12 +17568,12 @@ const Cc = ({
17565
17568
  showExpand: l
17566
17569
  },
17567
17570
  g
17568
- )) }) : e.length === 0 && r ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: y, className: "ui-p-0", children: /* @__PURE__ */ s(Xn, { ...r }) }) }) }) : /* @__PURE__ */ s("tbody", { children: e.map((w) => /* @__PURE__ */ s(
17571
+ )) }) : e.length === 0 && r ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: y, className: "ui-p-0", children: /* @__PURE__ */ s(Xn, { ...r }) }) }) }) : /* @__PURE__ */ s("tbody", { children: e.map((N) => /* @__PURE__ */ s(
17569
17572
  Jn,
17570
17573
  {
17571
- row: w,
17574
+ row: N,
17572
17575
  columns: t,
17573
- selected: o.includes(w.id),
17576
+ selected: o.includes(N.id),
17574
17577
  selectedIds: o,
17575
17578
  expandable: n,
17576
17579
  showSelection: a,
@@ -17584,7 +17587,7 @@ const Cc = ({
17584
17587
  isCellFocused: b,
17585
17588
  onCellChange: p
17586
17589
  },
17587
- w.id
17590
+ N.id
17588
17591
  )) });
17589
17592
  }, $c = ({
17590
17593
  columns: e,
@@ -17605,11 +17608,11 @@ const Cc = ({
17605
17608
  stickyActions: p = !0,
17606
17609
  className: x,
17607
17610
  selectedIds: y = [],
17608
- allSelected: w = !1,
17611
+ allSelected: N = !1,
17609
17612
  someSelected: g = !1,
17610
17613
  onSelectAll: D,
17611
17614
  onRowSelect: C,
17612
- onSort: N,
17615
+ onSort: w,
17613
17616
  onFilter: k,
17614
17617
  onLock: S,
17615
17618
  onResize: T,
@@ -17664,14 +17667,14 @@ const Cc = ({
17664
17667
  filters: a,
17665
17668
  showSelection: o == null ? void 0 : o.enabled,
17666
17669
  showExpand: l,
17667
- allSelected: w,
17670
+ allSelected: N,
17668
17671
  someSelected: g,
17669
17672
  resizable: u,
17670
17673
  stickyHeader: h,
17671
17674
  stickyCheckbox: b,
17672
17675
  stickyActions: p,
17673
17676
  onSelectAll: D,
17674
- onSort: N,
17677
+ onSort: w,
17675
17678
  onFilter: k,
17676
17679
  onLock: S,
17677
17680
  onResize: T,
@@ -18060,30 +18063,30 @@ const Cc = ({
18060
18063
  const a = e ? `${Uc}${e}` : null, l = L(() => ({
18061
18064
  version: Vr,
18062
18065
  updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
18063
- columns: i.map((N, k) => ({
18064
- id: N.id,
18066
+ columns: i.map((w, k) => ({
18067
+ id: w.id,
18065
18068
  order: k,
18066
- visible: N.visible !== !1,
18067
- locked: N.locked || !1,
18068
- width: N.width
18069
+ visible: w.visible !== !1,
18070
+ locked: w.locked || !1,
18071
+ width: w.width
18069
18072
  })),
18070
18073
  sort: r,
18071
18074
  filters: o
18072
18075
  }), [i, r, o]), u = L(() => {
18073
18076
  if (!a || !t) return null;
18074
18077
  try {
18075
- const N = localStorage.getItem(a);
18076
- if (!N) return null;
18077
- const k = JSON.parse(N);
18078
+ const w = localStorage.getItem(a);
18079
+ if (!w) return null;
18080
+ const k = JSON.parse(w);
18078
18081
  return k.version !== Vr ? (process.env.NODE_ENV !== "production" && console.warn(`[useTableConfig] Config version mismatch, resetting config for ${e}`), null) : k;
18079
- } catch (N) {
18080
- return process.env.NODE_ENV !== "production" && console.error(`[useTableConfig] Error loading config for ${e}:`, N), null;
18082
+ } catch (w) {
18083
+ return process.env.NODE_ENV !== "production" && console.error(`[useTableConfig] Error loading config for ${e}:`, w), null;
18081
18084
  }
18082
18085
  }, [a, t, e]), m = L(
18083
- (N) => {
18086
+ (w) => {
18084
18087
  if (!(!a || !t))
18085
18088
  try {
18086
- localStorage.setItem(a, JSON.stringify(N));
18089
+ localStorage.setItem(a, JSON.stringify(w));
18087
18090
  } catch (k) {
18088
18091
  process.env.NODE_ENV !== "production" && console.error(`[useTableConfig] Error saving config for ${e}:`, k);
18089
18092
  }
@@ -18094,11 +18097,11 @@ const Cc = ({
18094
18097
  u() || c(l());
18095
18098
  }, [i.length]);
18096
18099
  const f = L(
18097
- (N, k) => {
18100
+ (w, k) => {
18098
18101
  c((S) => {
18099
18102
  const T = {
18100
18103
  ...S,
18101
- ...N,
18104
+ ...w,
18102
18105
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
18103
18106
  };
18104
18107
  return m(T), n == null || n(T, k), T;
@@ -18106,9 +18109,9 @@ const Cc = ({
18106
18109
  },
18107
18110
  [m, n]
18108
18111
  ), h = L(() => {
18109
- const N = new Map(i.map((T) => [T.id, T])), k = [], S = new Set(d.columns.map((T) => T.id));
18112
+ const w = new Map(i.map((T) => [T.id, T])), k = [], S = new Set(d.columns.map((T) => T.id));
18110
18113
  return d.columns.sort((T, $) => T.order - $.order).forEach((T) => {
18111
- const $ = N.get(T.id);
18114
+ const $ = w.get(T.id);
18112
18115
  $ && k.push({
18113
18116
  ...$,
18114
18117
  visible: T.visible,
@@ -18119,8 +18122,8 @@ const Cc = ({
18119
18122
  S.has(T.id) || k.push(T);
18120
18123
  }), k;
18121
18124
  }, [i, d.columns]), b = L(
18122
- (N) => {
18123
- const k = N.map((S, T) => {
18125
+ (w) => {
18126
+ const k = w.map((S, T) => {
18124
18127
  const $ = d.columns.find((v) => v.id === S.id);
18125
18128
  return {
18126
18129
  id: S.id,
@@ -18134,23 +18137,23 @@ const Cc = ({
18134
18137
  },
18135
18138
  [d.columns, f]
18136
18139
  ), p = L(
18137
- (N, k) => {
18140
+ (w, k) => {
18138
18141
  const S = d.columns.map(
18139
- (T) => T.id === N ? { ...T, visible: k } : T
18142
+ (T) => T.id === w ? { ...T, visible: k } : T
18140
18143
  );
18141
18144
  f({ columns: S }, "column-visibility");
18142
18145
  },
18143
18146
  [d.columns, f]
18144
18147
  ), x = L(
18145
- (N) => {
18146
- const k = new Map(N.map((T) => [T.columnId, T.visible])), S = d.columns.map((T) => k.has(T.id) ? { ...T, visible: k.get(T.id) } : T);
18148
+ (w) => {
18149
+ const k = new Map(w.map((T) => [T.columnId, T.visible])), S = d.columns.map((T) => k.has(T.id) ? { ...T, visible: k.get(T.id) } : T);
18147
18150
  f({ columns: S }, "column-visibility");
18148
18151
  },
18149
18152
  [d.columns, f]
18150
18153
  ), y = L(
18151
- (N, k) => {
18154
+ (w, k) => {
18152
18155
  const S = d.columns.map(
18153
- (T) => T.id === N ? { ...T, locked: k } : T
18156
+ (T) => T.id === w ? { ...T, locked: k } : T
18154
18157
  );
18155
18158
  if (k) {
18156
18159
  const T = S.filter((E) => E.locked), $ = S.filter((E) => !E.locked), v = [...T, ...$].map((E, M) => ({
@@ -18162,27 +18165,27 @@ const Cc = ({
18162
18165
  f({ columns: S }, "column-lock");
18163
18166
  },
18164
18167
  [d.columns, f]
18165
- ), w = L(
18166
- (N, k) => {
18168
+ ), N = L(
18169
+ (w, k) => {
18167
18170
  const S = d.columns.map(
18168
- (T) => T.id === N ? { ...T, width: k } : T
18171
+ (T) => T.id === w ? { ...T, width: k } : T
18169
18172
  );
18170
18173
  f({ columns: S }, "column-resize");
18171
18174
  },
18172
18175
  [d.columns, f]
18173
18176
  ), g = L(
18174
- (N) => {
18175
- f({ sort: N }, "sort");
18177
+ (w) => {
18178
+ f({ sort: w }, "sort");
18176
18179
  },
18177
18180
  [f]
18178
18181
  ), D = L(
18179
- (N) => {
18180
- f({ filters: N }, "filter");
18182
+ (w) => {
18183
+ f({ filters: w }, "filter");
18181
18184
  },
18182
18185
  [f]
18183
18186
  ), C = L(() => {
18184
- const N = l();
18185
- c(N), a && t && localStorage.removeItem(a), n == null || n(N, "reset");
18187
+ const w = l();
18188
+ c(w), a && t && localStorage.removeItem(a), n == null || n(w, "reset");
18186
18189
  }, [l, a, t, n]);
18187
18190
  return {
18188
18191
  columns: h(),
@@ -18192,7 +18195,7 @@ const Cc = ({
18192
18195
  updateColumnVisibility: p,
18193
18196
  updateMultipleColumnVisibility: x,
18194
18197
  updateColumnLock: y,
18195
- updateColumnWidth: w,
18198
+ updateColumnWidth: N,
18196
18199
  updateSort: g,
18197
18200
  updateFilters: D,
18198
18201
  resetConfig: C,
@@ -18354,11 +18357,11 @@ const Cc = ({
18354
18357
  dense: p = !1,
18355
18358
  stickyHeader: x = !0,
18356
18359
  stickyCheckbox: y = !0,
18357
- stickyActions: w = !0,
18360
+ stickyActions: N = !0,
18358
18361
  showEditActions: g,
18359
18362
  configKey: D,
18360
18363
  persistConfig: C = !1,
18361
- onConfigChange: N,
18364
+ onConfigChange: w,
18362
18365
  className: k,
18363
18366
  onSort: S,
18364
18367
  onFilter: T,
@@ -18379,7 +18382,7 @@ const Cc = ({
18379
18382
  initialColumns: e,
18380
18383
  initialSort: l,
18381
18384
  initialFilters: u,
18382
- onConfigChange: N
18385
+ onConfigChange: w
18383
18386
  }), B = C && D ? O.columns : e, K = te(() => B.some((ee) => ee.editable && ee.editable !== "none"), [B]), ne = te(() => {
18384
18387
  if (g === !1 || !K)
18385
18388
  return B;
@@ -18633,7 +18636,7 @@ const Cc = ({
18633
18636
  dense: p,
18634
18637
  stickyHeader: x,
18635
18638
  stickyCheckbox: y,
18636
- stickyActions: w,
18639
+ stickyActions: N,
18637
18640
  selectedIds: re,
18638
18641
  allSelected: ge,
18639
18642
  someSelected: fe,
@@ -19345,13 +19348,13 @@ function Uf(e = {}) {
19345
19348
  initialSortDirection: o = "asc",
19346
19349
  initialFilters: n = [],
19347
19350
  initialSearch: a = ""
19348
- } = e, [l, u] = V(t), [m, d] = V(i), [c, f] = V(r), [h, b] = V(o), [p, x] = V(n), [y, w] = V(a), g = L((E) => {
19351
+ } = e, [l, u] = V(t), [m, d] = V(i), [c, f] = V(r), [h, b] = V(o), [p, x] = V(n), [y, N] = V(a), g = L((E) => {
19349
19352
  u(E);
19350
19353
  }, []), D = L((E) => {
19351
19354
  d(E), u(1);
19352
19355
  }, []), C = L((E, M = "asc") => {
19353
19356
  f(E), b(M), u(1);
19354
- }, []), N = L((E) => {
19357
+ }, []), w = L((E) => {
19355
19358
  x(E), u(1);
19356
19359
  }, []), k = L((E) => {
19357
19360
  x((M) => [...M, E]), u(1);
@@ -19360,9 +19363,9 @@ function Uf(e = {}) {
19360
19363
  }, []), T = L(() => {
19361
19364
  x([]), u(1);
19362
19365
  }, []), $ = L((E) => {
19363
- w(E), u(1);
19366
+ N(E), u(1);
19364
19367
  }, []), v = L(() => {
19365
- u(t), d(i), f(r), b(o), x(n), w(a);
19368
+ u(t), d(i), f(r), b(o), x(n), N(a);
19366
19369
  }, [
19367
19370
  t,
19368
19371
  i,
@@ -19383,7 +19386,7 @@ function Uf(e = {}) {
19383
19386
  setPage: g,
19384
19387
  setPageSize: D,
19385
19388
  setSort: C,
19386
- setFilters: N,
19389
+ setFilters: w,
19387
19390
  addFilter: k,
19388
19391
  removeFilter: S,
19389
19392
  clearFilters: T,
@@ -20347,7 +20350,7 @@ const n0 = () => {
20347
20350
  "ui-border-1 ui-border-default",
20348
20351
  // Posicionamiento para el portal (se aplicará en el contenedor del portal)
20349
20352
  o
20350
- ), w = I(
20353
+ ), N = I(
20351
20354
  // Posicionamiento fijo en la parte inferior, centrado horizontalmente
20352
20355
  "ui-fixed ui-bottom-6 ui-left-1/2 ui--translate-x-1/2",
20353
20356
  // Z-index alto para estar sobre otros elementos (menor que el DatePicker que usa 1100)
@@ -20366,7 +20369,7 @@ const n0 = () => {
20366
20369
  u == null || u(), m ? l == null || l(null) : c(-1);
20367
20370
  }, C = (v, E) => {
20368
20371
  v.onChange && v.onChange(E);
20369
- }, N = () => /* @__PURE__ */ P("div", { className: y, children: [
20372
+ }, w = () => /* @__PURE__ */ P("div", { className: y, children: [
20370
20373
  /* @__PURE__ */ s(
20371
20374
  Ie,
20372
20375
  {
@@ -20477,9 +20480,9 @@ const n0 = () => {
20477
20480
  /* @__PURE__ */ s(Qe, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
20478
20481
  /* @__PURE__ */ s(Ie, { color: "secondary", size: "xs", pill: "pill", icon: xt, onClick: r })
20479
20482
  ] })
20480
- ] }), T = (m ? a !== null && p !== null && x.length > 0 : d >= 0 && p !== null && x.length > 0) ? N() : k();
20483
+ ] }), T = (m ? a !== null && p !== null && x.length > 0 : d >= 0 && p !== null && x.length > 0) ? w() : k();
20481
20484
  return f ? kt(
20482
- /* @__PURE__ */ s("div", { className: I("ui-imj", w), children: T }),
20485
+ /* @__PURE__ */ s("div", { className: I("ui-imj", N), children: T }),
20483
20486
  document.body
20484
20487
  ) : null;
20485
20488
  }, wd = ({
@@ -20782,7 +20785,7 @@ const n0 = () => {
20782
20785
  maxHeight: `${a}px`,
20783
20786
  transition: `flex-basis ${l}ms ease-in-out, width ${l}ms ease-in-out`,
20784
20787
  backgroundColor: p
20785
- }, y = `${e.name}: ${e.percent}%`, w = () => {
20788
+ }, y = `${e.name}: ${e.percent}%`, N = () => {
20786
20789
  f(!0), m == null || m(e, t);
20787
20790
  }, g = () => {
20788
20791
  f(!1), d == null || d(e, t);
@@ -20792,7 +20795,7 @@ const n0 = () => {
20792
20795
  {
20793
20796
  className: I("ui-relative ui-h-full ui-flex-shrink-0", b),
20794
20797
  style: x,
20795
- onMouseEnter: w,
20798
+ onMouseEnter: N,
20796
20799
  onMouseLeave: g,
20797
20800
  role: "progressbar",
20798
20801
  "aria-valuenow": e.percent,
@@ -20915,13 +20918,13 @@ const No = qe(
20915
20918
  style: x,
20916
20919
  role: "list",
20917
20920
  "aria-label": "Lista con datos en hover",
20918
- children: c.map((y, w) => {
20919
- const g = f[w % f.length];
20921
+ children: c.map((y, N) => {
20922
+ const g = f[N % f.length];
20920
20923
  return /* @__PURE__ */ s(
20921
20924
  wo,
20922
20925
  {
20923
20926
  item: y,
20924
- index: w,
20927
+ index: N,
20925
20928
  color: g,
20926
20929
  indicatorSize: h,
20927
20930
  gap: b,
@@ -20931,7 +20934,7 @@ const No = qe(
20931
20934
  onHover: m,
20932
20935
  onLeave: d
20933
20936
  },
20934
- `list-item-${w}-${y.name}`
20937
+ `list-item-${N}-${y.name}`
20935
20938
  );
20936
20939
  })
20937
20940
  }
@@ -20954,10 +20957,10 @@ const Pd = qe(
20954
20957
  onSegmentHover: d,
20955
20958
  onSegmentLeave: c
20956
20959
  }) => {
20957
- const f = te(() => !Array.isArray(e) || e.length === 0 ? [] : e.filter((w) => w !== null && typeof w == "object").map((w) => ({
20958
- name: String(w.name ?? ""),
20959
- percent: Math.max(0, Math.min(100, Number(w.percent) || 0))
20960
- })).filter((w) => w.percent > 0), [e]), h = te(() => !Array.isArray(t) || t.length === 0 ? Cd : t.map((w) => Td(w)), [t]), b = te(() => f.reduce((w, g) => w + g.percent, 0), [f]), p = te(() => b === 0 ? f.map(() => 0) : b > 100 ? f.map((w) => w.percent / b * 100) : f.map((w) => w.percent), [f, b]), x = I(
20960
+ const f = te(() => !Array.isArray(e) || e.length === 0 ? [] : e.filter((N) => N !== null && typeof N == "object").map((N) => ({
20961
+ name: String(N.name ?? ""),
20962
+ percent: Math.max(0, Math.min(100, Number(N.percent) || 0))
20963
+ })).filter((N) => N.percent > 0), [e]), h = te(() => !Array.isArray(t) || t.length === 0 ? Cd : t.map((N) => Td(N)), [t]), b = te(() => f.reduce((N, g) => N + g.percent, 0), [f]), p = te(() => b === 0 ? f.map(() => 0) : b > 100 ? f.map((N) => N.percent / b * 100) : f.map((N) => N.percent), [f, b]), x = I(
20961
20964
  "ui-relative ui-w-full",
20962
20965
  m && "ui-opacity-50 ui-pointer-events-none",
20963
20966
  i
@@ -20990,12 +20993,12 @@ const Pd = qe(
20990
20993
  "aria-valuemin": 0,
20991
20994
  "aria-valuemax": 100,
20992
20995
  "aria-label": "Gráfica lineal de progreso",
20993
- children: f.map((w, g) => {
20996
+ children: f.map((N, g) => {
20994
20997
  const D = h[g % h.length], C = p[g];
20995
20998
  return /* @__PURE__ */ s(
20996
20999
  vo,
20997
21000
  {
20998
- data: w,
21001
+ data: N,
20999
21002
  index: g,
21000
21003
  width: C,
21001
21004
  color: D,
@@ -21007,7 +21010,7 @@ const Pd = qe(
21007
21010
  onHover: d,
21008
21011
  onLeave: c
21009
21012
  },
21010
- `linear-graphic-segment-${g}-${w.name}`
21013
+ `linear-graphic-segment-${g}-${N.name}`
21011
21014
  );
21012
21015
  })
21013
21016
  }