@imj_media/ui 1.2.87 → 1.2.89

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
@@ -1,12 +1,12 @@
1
- import { jsx as r, jsxs as b, Fragment as $e } from "react/jsx-runtime";
2
- import ye, { useState as A, useRef as q, useCallback as V, useEffect as Y, useMemo as oe, memo as rt, useLayoutEffect as ri, useImperativeHandle as yn, forwardRef as At, useId as oi, createContext as si, useContext as dr, Fragment as is, Children as pr, isValidElement as rs, Component as fr, cloneElement as os, createElement as ss } from "react";
1
+ import { jsx as r, jsxs as b, Fragment as Ze } from "react/jsx-runtime";
2
+ import ye, { useState as A, useRef as q, useCallback as V, useEffect as Y, useMemo as oe, memo as rt, useLayoutEffect as On, useImperativeHandle as yn, forwardRef as At, useId as oi, createContext as si, useContext as dr, Fragment as is, Children as pr, isValidElement as rs, Component as fr, cloneElement as os, createElement as ss } from "react";
3
3
  import { clsx as as } from "clsx";
4
4
  import { twMerge as us } from "tailwind-merge";
5
- import Fn, { createPortal as Rt } from "react-dom";
5
+ import _n, { createPortal as Rt } from "react-dom";
6
6
  import { cva as Qe } from "class-variance-authority";
7
7
  import { FontAwesomeIcon as Yr } from "@fortawesome/react-fontawesome";
8
- import { faUser as ls, faChevronUp as hr, faChevronDown as ai, faCircleInfo as Kr, faShapes as I1, faExclamationTriangle as cs, faLightEmergencyOn as ds, faCircleCheck as _n, faXmark as xt, faInfoCircle as ps, faArrowUpRightAndArrowDownLeftFromCenter as Di, faSearch as mn, faGripDotsVertical as fs, faArrowLeft as hs, faBookmarkPlus as Vi, faEllipsis as gn, faEye as ms, faAngleLeft as mr, faAngleRight as gr, faAngleDown as O1, faCalendar as Cr, faCircleNotch as gs, faClock as Cs, faFaceSmile as H1, faDog as bs, faLemon as ws, faFutbol as vs, faCarSide as Ls, faLightbulb as ys, faHeart as xs, faFlag as Ms, faFile as Ss, faFilter as Cn, faBold as ks, faItalic as js, faUnderline as Ns, faStrikethrough as Is, faListUl as br, faListOl as Os, faLink as Hs, faAt as Ds, faPaperPlane as D1, faGraduationCap as Vs, faPalette as Ts, faAngleDoubleLeft as Es, faAngleDoubleRight as Ps, faStar as Ai, faCheck as On, faHashtag as V1, faText as T1, faFilterList as zs, faPlus as As, faBroomWide as Rs, faGears as Bs, faTrash as E1, faPen as Ri, faUnlock as $s, faArrowsFromLine as Zs, faArrowUp as Fs, faArrowDown as _s, faArrowDownArrowUp as Us, faChevronRight as P1, faEmptySet as Gs, faArrowTurnLeft as qs, faArrowRightToBracket as Ys, faTableLayout as Ks, faFolderOpen as Xs, faChevronLeft as Qs } from "@fortawesome/pro-regular-svg-icons";
9
- import { faBell as Js, faClock as Ws, faCalendar as ea, faGripDotsVertical as ta, faStar as z1, faLocationDot as na, faPhone as ia, faEnvelope as ra, faTrash as oa, faCheck as sa, faEyeDropper as aa, faEye as ua, faLock as la, faFilter as ca, faArrowUp as da, faArrowDown as pa, faUser as fa, faArrowUpRight as Pn } from "@fortawesome/pro-solid-svg-icons";
8
+ import { faUser as ls, faChevronUp as hr, faChevronDown as ai, faCircleInfo as Kr, faShapes as I1, faExclamationTriangle as cs, faLightEmergencyOn as ds, faCircleCheck as Un, faXmark as Mt, faInfoCircle as ps, faArrowUpRightAndArrowDownLeftFromCenter as Di, faSearch as mn, faGripDotsVertical as fs, faArrowLeft as hs, faBookmarkPlus as Vi, faEllipsis as gn, faEye as ms, faAngleLeft as mr, faAngleRight as gr, faAngleDown as O1, faCalendar as Cr, faCircleNotch as gs, faClock as Cs, faFaceSmile as H1, faDog as bs, faLemon as ws, faFutbol as vs, faCarSide as Ls, faLightbulb as ys, faHeart as xs, faFlag as Ms, faFile as Ss, faFilter as Cn, faBold as ks, faItalic as js, faUnderline as Ns, faStrikethrough as Is, faListUl as br, faListOl as Os, faLink as Hs, faAt as Ds, faPaperPlane as D1, faGraduationCap as Vs, faPalette as Ts, faAngleDoubleLeft as Es, faAngleDoubleRight as Ps, faStar as Ai, faCheck as Hn, faHashtag as V1, faText as T1, faFilterList as zs, faPlus as As, faBroomWide as Rs, faGears as Bs, faTrash as E1, faPen as Ri, faUnlock as $s, faArrowsFromLine as Zs, faArrowUp as Fs, faArrowDown as _s, faArrowDownArrowUp as Us, faChevronRight as P1, faEmptySet as Gs, faArrowTurnLeft as qs, faArrowRightToBracket as Ys, faTableLayout as Ks, faFolderOpen as Xs, faChevronLeft as Qs } from "@fortawesome/pro-regular-svg-icons";
9
+ import { faBell as Js, faClock as Ws, faCalendar as ea, faGripDotsVertical as ta, faStar as z1, faLocationDot as na, faPhone as ia, faEnvelope as ra, faTrash as oa, faCheck as sa, faEyeDropper as aa, faEye as ua, faLock as la, faFilter as ca, faArrowUp as da, faArrowDown as pa, faUser as fa, faArrowUpRight as zn } from "@fortawesome/pro-solid-svg-icons";
10
10
  import { faBadgeCheck as ha } from "@fortawesome/pro-duotone-svg-icons";
11
11
  import ma from "lottie-react";
12
12
  import { Prism as ga } from "react-syntax-highlighter";
@@ -43,7 +43,7 @@ function Mp(e, i) {
43
43
  }, i));
44
44
  };
45
45
  }
46
- const Lt = 8, ft = 8;
46
+ const yt = 8, ft = 8;
47
47
  function Oa(e, i, o, t) {
48
48
  let n = 0, s = 0;
49
49
  switch (e) {
@@ -149,43 +149,43 @@ function Da(e) {
149
149
  p,
150
150
  n,
151
151
  s,
152
- Lt
152
+ yt
153
153
  );
154
154
  if (f = m.top, d = m.left, f < 0 && (f = 0), d < 0 && (d = 0), !(() => {
155
155
  switch (i) {
156
156
  case "top":
157
- return h >= s.height + Lt;
157
+ return h >= s.height + yt;
158
158
  case "bottom":
159
- return h + n.height + Lt + s.height <= a.height;
159
+ return h + n.height + yt + s.height <= a.height;
160
160
  case "left":
161
- return p >= s.width + Lt;
161
+ return p >= s.width + yt;
162
162
  case "right":
163
- return p + n.width + Lt + s.width <= a.width;
163
+ return p + n.width + yt + s.width <= a.width;
164
164
  default:
165
165
  return !0;
166
166
  }
167
167
  })()) {
168
168
  let C = i, v = !1;
169
- if (i === "top" ? h + n.height + Lt + s.height <= a.height && (C = "bottom", v = !0) : i === "bottom" ? h >= s.height + Lt && (C = "top", v = !0) : i === "left" ? p + n.width + Lt + s.width <= a.width && (C = "right", v = !0) : i === "right" && p >= s.width + Lt && (C = "left", v = !0), v) {
169
+ if (i === "top" ? h + n.height + yt + s.height <= a.height && (C = "bottom", v = !0) : i === "bottom" ? h >= s.height + yt && (C = "top", v = !0) : i === "left" ? p + n.width + yt + s.width <= a.width && (C = "right", v = !0) : i === "right" && p >= s.width + yt && (C = "left", v = !0), v) {
170
170
  switch (C) {
171
171
  case "top":
172
- f = h - s.height - Lt, d = p + n.width / 2 - s.width / 2;
172
+ f = h - s.height - yt, d = p + n.width / 2 - s.width / 2;
173
173
  break;
174
174
  case "bottom":
175
- f = h + n.height + Lt, d = p + n.width / 2 - s.width / 2;
175
+ f = h + n.height + yt, d = p + n.width / 2 - s.width / 2;
176
176
  break;
177
177
  case "left":
178
- f = h + n.height / 2 - s.height / 2, d = p - s.width - Lt;
178
+ f = h + n.height / 2 - s.height / 2, d = p - s.width - yt;
179
179
  break;
180
180
  case "right":
181
- f = h + n.height / 2 - s.height / 2, d = p + n.width + Lt;
181
+ f = h + n.height / 2 - s.height / 2, d = p + n.width + yt;
182
182
  break;
183
183
  }
184
184
  c = C;
185
185
  }
186
186
  }
187
187
  } else {
188
- const h = Oa(i, n, s, Lt);
188
+ const h = Oa(i, n, s, yt);
189
189
  f = h.top, d = h.left;
190
190
  }
191
191
  if (i.includes("top") || i.includes("bottom"))
@@ -719,7 +719,7 @@ function za(e) {
719
719
  function Aa(e, i) {
720
720
  return typeof e == "string" ? e : typeof i == "string" ? i : "";
721
721
  }
722
- const yt = ({
722
+ const xt = ({
723
723
  children: e,
724
724
  title: i,
725
725
  className: o = "",
@@ -741,7 +741,7 @@ const yt = ({
741
741
  }
742
742
  c(za(L));
743
743
  }, [s, l]);
744
- if (ri(() => {
744
+ if (On(() => {
745
745
  if (l) return;
746
746
  g();
747
747
  const L = f.current;
@@ -1035,7 +1035,7 @@ const yt = ({
1035
1035
  measureSpanClassName: u
1036
1036
  }) => {
1037
1037
  const l = n ?? "center";
1038
- return /* @__PURE__ */ b($e, { children: [
1038
+ return /* @__PURE__ */ b(Ze, { children: [
1039
1039
  /* @__PURE__ */ r(
1040
1040
  "span",
1041
1041
  {
@@ -1057,7 +1057,7 @@ const yt = ({
1057
1057
  $a({ color: t, textAlign: l })
1058
1058
  ),
1059
1059
  style: o,
1060
- children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ b($e, { children: [
1060
+ children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ b(Ze, { children: [
1061
1061
  e,
1062
1062
  " "
1063
1063
  ] }) : e
@@ -1338,7 +1338,7 @@ const _a = (e) => {
1338
1338
  backgroundSize: C,
1339
1339
  padding: v
1340
1340
  }
1341
- ) : ye.isValidElement(e) ? /* @__PURE__ */ r($e, { children: e }) : null;
1341
+ ) : ye.isValidElement(e) ? /* @__PURE__ */ r(Ze, { children: e }) : null;
1342
1342
  };
1343
1343
  Q1.displayName = "ButtonIcon";
1344
1344
  const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
@@ -1393,7 +1393,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1393
1393
  md: "lg",
1394
1394
  lg: "xl",
1395
1395
  xl: "2xl"
1396
- }, zn = "ui-border-1", t1 = "ui-border", n1 = {
1396
+ }, An = "ui-border-1", t1 = "ui-border", n1 = {
1397
1397
  blue: "ui-border-all-colors-blue",
1398
1398
  red: "ui-border-all-colors-red",
1399
1399
  orange: "ui-border-all-colors-orange",
@@ -1423,15 +1423,15 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1423
1423
  }, Qa = 3, Ja = "ui-opacity-50 ui-cursor-not-allowed", Wa = "ui-grayscale", r1 = "ui-bg-fill-disabled", eu = "ui-mix-blend-luminosity", eo = (e, i, o, t = !1) => t ? o === "letter" ? e1[e] : Bi[e] : i === "solid" ? Ga[e] : o === "letter" ? e1[e] : Bi[e], tu = (e) => qa[e], nu = (e, i, o, t, n = !1) => {
1424
1424
  if (!e) return "";
1425
1425
  if (i === "people")
1426
- return j(zn, t1, "ui-border-default");
1426
+ return j(An, t1, "ui-border-default");
1427
1427
  if ((i === "icon" || i === "letter") && o) {
1428
1428
  if (n)
1429
- return j(zn, n1[o]);
1429
+ return j(An, n1[o]);
1430
1430
  const s = t === "soft" ? n1[o] : Ya[o];
1431
- return j(zn, s, "ui-border-default");
1431
+ return j(An, s, "ui-border-default");
1432
1432
  }
1433
- return j(zn, t1, "ui-border-default");
1434
- }, to = (e, i) => e ? Ka : i ? Xa[i] ?? i1 : i1, Un = (e, i, o, t, n, s, a, u, l) => j(
1433
+ return j(An, t1, "ui-border-default");
1434
+ }, to = (e, i) => e ? Ka : i ? Xa[i] ?? i1 : i1, Gn = (e, i, o, t, n, s, a, u, l) => j(
1435
1435
  // Layout base
1436
1436
  "ui-flex ui-items-center ui-justify-center",
1437
1437
  // Tipografía
@@ -1449,7 +1449,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1449
1449
  t && n && Wa,
1450
1450
  // Clases personalizadas
1451
1451
  s
1452
- ), iu = (e, i = Qa) => e.slice(0, i).toUpperCase(), Dn = (e) => {
1452
+ ), iu = (e, i = Qa) => e.slice(0, i).toUpperCase(), Vn = (e) => {
1453
1453
  try {
1454
1454
  return new URL(e), !0;
1455
1455
  } catch {
@@ -1473,7 +1473,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1473
1473
  sm: "xs",
1474
1474
  md: "xs",
1475
1475
  lg: "xs"
1476
- }, Gn = ({
1476
+ }, qn = ({
1477
1477
  type: e = "color",
1478
1478
  color: i = "brand",
1479
1479
  size: o = "md",
@@ -1550,7 +1550,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1550
1550
  h(!0), d(!1), p.current && clearTimeout(p.current);
1551
1551
  };
1552
1552
  Y(() => {
1553
- if (p.current && clearTimeout(p.current), !e || !Dn(e)) {
1553
+ if (p.current && clearTimeout(p.current), !e || !Vn(e)) {
1554
1554
  d(!0), h(!1);
1555
1555
  return;
1556
1556
  }
@@ -1576,17 +1576,17 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1576
1576
  }, L = (l == null ? void 0 : l.size) || v[o] || "md";
1577
1577
  if (!C) {
1578
1578
  const y = j(
1579
- Un(o, t, n, s, a, u, "people"),
1579
+ Gn(o, t, n, s, a, u, "people"),
1580
1580
  s ? r1 : "ui-bg-surface-disabled",
1581
1581
  "ui-text-disabled"
1582
1582
  ), M = W1[o];
1583
1583
  return /* @__PURE__ */ b("div", { className: "ui-imj ui-relative ui-inline-flex", children: [
1584
1584
  /* @__PURE__ */ r("div", { className: y, children: /* @__PURE__ */ r(Le, { name: J1, size: M, color: "current" }) }),
1585
- l && /* @__PURE__ */ r(Gn, { ...l, size: L })
1585
+ l && /* @__PURE__ */ r(qn, { ...l, size: L })
1586
1586
  ] });
1587
1587
  }
1588
1588
  const w = j(
1589
- Un(o, t, n, s, a, u, "people"),
1589
+ Gn(o, t, n, s, a, u, "people"),
1590
1590
  s && r1
1591
1591
  );
1592
1592
  return /* @__PURE__ */ b("div", { className: "ui-imj ui-relative ui-inline-flex", children: [
@@ -1607,7 +1607,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1607
1607
  loading: "lazy"
1608
1608
  }
1609
1609
  ) }),
1610
- l && /* @__PURE__ */ r(Gn, { ...l, size: L })
1610
+ l && /* @__PURE__ */ r(qn, { ...l, size: L })
1611
1611
  ] });
1612
1612
  }, lu = ({
1613
1613
  theme: e = Mr,
@@ -1634,7 +1634,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1634
1634
  "div",
1635
1635
  {
1636
1636
  className: j(
1637
- Un(
1637
+ Gn(
1638
1638
  o,
1639
1639
  t,
1640
1640
  n,
@@ -1657,7 +1657,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1657
1657
  )
1658
1658
  }
1659
1659
  ),
1660
- f && /* @__PURE__ */ r(Gn, { ...f, size: p })
1660
+ f && /* @__PURE__ */ r(qn, { ...f, size: p })
1661
1661
  ] });
1662
1662
  }, cu = ({
1663
1663
  text: e,
@@ -1684,7 +1684,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1684
1684
  "div",
1685
1685
  {
1686
1686
  className: j(
1687
- Un(
1687
+ Gn(
1688
1688
  t,
1689
1689
  n,
1690
1690
  s,
@@ -1700,7 +1700,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1700
1700
  children: c
1701
1701
  }
1702
1702
  ),
1703
- f && /* @__PURE__ */ r(Gn, { ...f, size: p })
1703
+ f && /* @__PURE__ */ r(qn, { ...f, size: p })
1704
1704
  ] });
1705
1705
  }, du = ({
1706
1706
  stack: e,
@@ -1750,13 +1750,13 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1750
1750
  {
1751
1751
  className: "ui-shrink-0",
1752
1752
  style: h < u.length - 1 || l > 0 ? { marginRight: `${f[i]}px` } : void 0,
1753
- children: /* @__PURE__ */ r(Mt, { ...m, size: p })
1753
+ children: /* @__PURE__ */ r(St, { ...m, size: p })
1754
1754
  },
1755
1755
  h
1756
1756
  );
1757
1757
  }),
1758
1758
  l > 0 && /* @__PURE__ */ r("div", { className: "ui-shrink-0", children: /* @__PURE__ */ r(
1759
- Mt,
1759
+ St,
1760
1760
  {
1761
1761
  type: "letter",
1762
1762
  text: `+${l}`,
@@ -1769,7 +1769,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1769
1769
  ]
1770
1770
  }
1771
1771
  );
1772
- }, Mt = (e) => {
1772
+ }, St = (e) => {
1773
1773
  if ("stack" in e && e.stack)
1774
1774
  return /* @__PURE__ */ r(du, { ...e });
1775
1775
  const i = e;
@@ -1783,7 +1783,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1783
1783
  default:
1784
1784
  return null;
1785
1785
  }
1786
- }, pu = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Dn(e) : !1, en = ({
1786
+ }, pu = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1, en = ({
1787
1787
  slot: e,
1788
1788
  className: i,
1789
1789
  colorIcon: o,
@@ -1819,9 +1819,9 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
1819
1819
  );
1820
1820
  if (typeof e == "string") {
1821
1821
  if (pu(e))
1822
- return /* @__PURE__ */ r(Mt, { type: "people", src: e, className: i, size: C });
1822
+ return /* @__PURE__ */ r(St, { type: "people", src: e, className: i, size: C });
1823
1823
  const L = (a || e || "?").toString();
1824
- return /* @__PURE__ */ r(Mt, { type: "letter", text: L, className: i, size: C });
1824
+ return /* @__PURE__ */ r(St, { type: "letter", text: L, className: i, size: C });
1825
1825
  }
1826
1826
  return null;
1827
1827
  };
@@ -2000,7 +2000,7 @@ const jt = ({
2000
2000
  md: "xs",
2001
2001
  lg: "sm",
2002
2002
  dot: "xs"
2003
- }, de = y && (t === "lg" || t === "md" || t === "sm") ? "ui-gap-4" : "", F = () => y ? l != null ? /* @__PURE__ */ r("span", { className: "ui-inline-flex ui-shrink-0 ui-items-center ui-justify-center", "aria-hidden": !0, children: l }) : u == null ? null : /* @__PURE__ */ r(
2003
+ }, pe = y && (t === "lg" || t === "md" || t === "sm") ? "ui-gap-4" : "", F = () => y ? l != null ? /* @__PURE__ */ r("span", { className: "ui-inline-flex ui-shrink-0 ui-items-center ui-justify-center", "aria-hidden": !0, children: l }) : u == null ? null : /* @__PURE__ */ r(
2004
2004
  Le,
2005
2005
  {
2006
2006
  name: u,
@@ -2060,17 +2060,17 @@ const jt = ({
2060
2060
  K,
2061
2061
  Z,
2062
2062
  $,
2063
- de,
2063
+ pe,
2064
2064
  m ? ne[t] || ne.sm : "",
2065
2065
  // Aplicar tamaño mínimo cuando está en loading
2066
2066
  a
2067
2067
  ),
2068
2068
  style: me,
2069
2069
  ...v,
2070
- children: m ? ie() : /* @__PURE__ */ b($e, { children: [
2070
+ children: m ? ie() : /* @__PURE__ */ b(Ze, { children: [
2071
2071
  !x && F(),
2072
2072
  !x && (g ? /* @__PURE__ */ r(
2073
- yt,
2073
+ xt,
2074
2074
  {
2075
2075
  truncate: !0,
2076
2076
  title: L,
@@ -2248,7 +2248,7 @@ const _t = (e, i) => {
2248
2248
  iconDuotoneOpacitySecondary: $,
2249
2249
  leftSlotDuotonePrimary: K,
2250
2250
  leftSlotDuotoneSecondary: ee,
2251
- leftSlotDuotoneOpacityPrimary: de,
2251
+ leftSlotDuotoneOpacityPrimary: pe,
2252
2252
  leftSlotDuotoneOpacitySecondary: F,
2253
2253
  rightSlotDuotonePrimary: ne,
2254
2254
  rightSlotDuotoneSecondary: ie,
@@ -2268,24 +2268,24 @@ const _t = (e, i) => {
2268
2268
  classNameTooltip: Ce,
2269
2269
  stopPropagation: se = !0,
2270
2270
  pointer: be = !0,
2271
- onClick: Ie,
2271
+ onClick: Ne,
2272
2272
  pill: he = "sm",
2273
- textAlign: Ve = "center",
2274
- whiteBackground: pe = !0,
2275
- strokeWidth: Ne = 2,
2276
- transition: Ue = !0,
2277
- classNameIcon: ze = "",
2273
+ textAlign: Te = "center",
2274
+ whiteBackground: de = !0,
2275
+ strokeWidth: Ie = 2,
2276
+ transition: Fe = !0,
2277
+ classNameIcon: Ae = "",
2278
2278
  active: Re = !1,
2279
2279
  // Nuevo sistema de configuraciones
2280
- iconProps: Ze,
2281
- badge: Ae,
2282
- leftSlotProps: Ge,
2283
- rightSlotProps: kt,
2284
- tooltipProps: ot,
2285
- ...Fe
2286
- }, Je) {
2280
+ iconProps: _e,
2281
+ badge: Be,
2282
+ leftSlotProps: ot,
2283
+ rightSlotProps: vt,
2284
+ tooltipProps: Je,
2285
+ ...Ve
2286
+ }, Ue) {
2287
2287
  gu({ theme: a, size: D, color: w, pill: he, as: U, link: N });
2288
- const wt = {
2288
+ const bt = {
2289
2289
  disabled: P
2290
2290
  }, Ke = S && typeof S == "object" && !ye.isValidElement(S) && "icon" in S && ("color" in S || "size" in S || "show" in S || "onClick" in S || "className" in S || "strokeWidth" in S || "background" in S || "backgroundColor" in S || "backgroundSize" in S || "padding" in S), tt = Ke ? S : void 0, qe = Ke ? void 0 : ro({
2291
2291
  icon: S,
@@ -2294,10 +2294,10 @@ const _t = (e, i) => {
2294
2294
  iconDuotoneOpacityPrimary: Z,
2295
2295
  iconDuotoneOpacitySecondary: $,
2296
2296
  colorIcon: R,
2297
- classNameIcon: ze,
2298
- strokeWidth: Ne,
2297
+ classNameIcon: Ae,
2298
+ strokeWidth: Ie,
2299
2299
  onClickIcon: H
2300
- }), vt = fu({
2300
+ }), Lt = fu({
2301
2301
  badgeColor: u,
2302
2302
  badgeLabel: l,
2303
2303
  badgeTheme: f,
@@ -2309,11 +2309,11 @@ const _t = (e, i) => {
2309
2309
  badgeIconDuotoneOpacityPrimary: g,
2310
2310
  badgeIconDuotoneOpacitySecondary: C,
2311
2311
  badgeLoading: v
2312
- }), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, _e = st ? void 0 : hu({
2312
+ }), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, Ge = st ? void 0 : hu({
2313
2313
  leftSlot: n,
2314
2314
  leftSlotDuotonePrimary: K,
2315
2315
  leftSlotDuotoneSecondary: ee,
2316
- leftSlotDuotoneOpacityPrimary: de,
2316
+ leftSlotDuotoneOpacityPrimary: pe,
2317
2317
  leftSlotDuotoneOpacitySecondary: F,
2318
2318
  onClickLeftSlot: T,
2319
2319
  colorIcon: R
@@ -2325,14 +2325,14 @@ const _t = (e, i) => {
2325
2325
  rightSlotDuotoneOpacitySecondary: fe,
2326
2326
  onClickRightSlot: z,
2327
2327
  colorIcon: R
2328
- }), Pe = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = Pe ? J : void 0, Xe = Pe ? void 0 : oo({
2328
+ }), ze = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = ze ? J : void 0, Xe = ze ? void 0 : oo({
2329
2329
  tooltip: J,
2330
2330
  tooltipPosition: ae,
2331
2331
  tooltipAlignment: ge,
2332
2332
  tooltipDelay: ve,
2333
2333
  tooltipAbsolute: _,
2334
2334
  classNameTooltip: Ce
2335
- }), W = Ze || tt || qe || (S && !Ke && !ye.isValidElement(S) ? { icon: S, show: !0 } : void 0), Q = Ae || vt, xe = Ge || Bt || _e, Me = kt || je || re, De = ot || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) || typeof S == "string" || typeof S == "object" && S !== null && "icon" in S ? S : void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, St = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Ee = (De == null ? void 0 : De.label) || (Pe ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(St), {
2335
+ }), W = _e || tt || qe || (S && !Ke && !ye.isValidElement(S) ? { icon: S, show: !0 } : void 0), Q = Be || Lt, xe = ot || Bt || Ge, Me = vt || je || re, De = Je || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) || typeof S == "string" || typeof S == "object" && S !== null && "icon" in S ? S : void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, kt = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Pe = (De == null ? void 0 : De.label) || (ze ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(kt), {
2336
2336
  displayText: ji,
2337
2337
  textStyle: Ni,
2338
2338
  measureRef: Ii,
@@ -2346,14 +2346,14 @@ const _t = (e, i) => {
2346
2346
  badgeFinishedLoading: ki,
2347
2347
  size: D,
2348
2348
  textColor: x,
2349
- textAlign: Ve
2349
+ textAlign: Te
2350
2350
  }), Vt = G1(
2351
2351
  Dt,
2352
2352
  Ut,
2353
2353
  Gt,
2354
2354
  nn,
2355
- St
2356
- ), kn = Y1(St, nn), jn = q1(
2355
+ kt
2356
+ ), kn = Y1(kt, nn), jn = q1(
2357
2357
  Mn,
2358
2358
  Dt,
2359
2359
  w
@@ -2366,7 +2366,7 @@ const _t = (e, i) => {
2366
2366
  pill: he,
2367
2367
  clickable: I,
2368
2368
  borderable: G,
2369
- whiteBackground: pe,
2369
+ whiteBackground: de,
2370
2370
  active: Re,
2371
2371
  square: k,
2372
2372
  icon: !!Ht,
@@ -2374,14 +2374,14 @@ const _t = (e, i) => {
2374
2374
  shouldShowBadge: Vt,
2375
2375
  showShadow: X,
2376
2376
  pointer: be,
2377
- transition: Ue,
2377
+ transition: Fe,
2378
2378
  classNameId: te,
2379
2379
  className: i,
2380
2380
  isIconVariant: Mi,
2381
2381
  defaultSizeIcon: we
2382
- }), En = (Nn) => {
2383
- se && Nn.stopPropagation(), Ie && Ie(Nn);
2384
- }, an = () => /* @__PURE__ */ b($e, { children: [
2382
+ }), Pn = (Nn) => {
2383
+ se && Nn.stopPropagation(), Ne && Ne(Nn);
2384
+ }, an = () => /* @__PURE__ */ b(Ze, { children: [
2385
2385
  (xe == null ? void 0 : xe.show) !== !1 && /* @__PURE__ */ r(
2386
2386
  no,
2387
2387
  {
@@ -2391,11 +2391,11 @@ const _t = (e, i) => {
2391
2391
  colorIcon: (xe == null ? void 0 : xe.colorIcon) || R,
2392
2392
  className: i,
2393
2393
  disabled: P,
2394
- strokeWidth: Ne,
2394
+ strokeWidth: Ie,
2395
2395
  onClickLeftSlot: (xe == null ? void 0 : xe.onClick) || T,
2396
2396
  leftSlotDuotonePrimary: (xe == null ? void 0 : xe.iconDuotonePrimary) || K,
2397
2397
  leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) || ee,
2398
- leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || de,
2398
+ leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || pe,
2399
2399
  leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) || F,
2400
2400
  hasChildren: lt
2401
2401
  }
@@ -2407,7 +2407,7 @@ const _t = (e, i) => {
2407
2407
  hasSlots: !!(ue || Se),
2408
2408
  textStyle: Ni,
2409
2409
  textColor: x,
2410
- textAlign: Ve,
2410
+ textAlign: Te,
2411
2411
  measureRef: Ii,
2412
2412
  textRef: Oi,
2413
2413
  measureSpanClassName: Hi
@@ -2427,7 +2427,7 @@ const _t = (e, i) => {
2427
2427
  badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
2428
2428
  badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
2429
2429
  badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
2430
- badgeLoading: St,
2430
+ badgeLoading: kt,
2431
2431
  isAbsolute: !1
2432
2432
  }
2433
2433
  ),
@@ -2440,7 +2440,7 @@ const _t = (e, i) => {
2440
2440
  colorIcon: (Me == null ? void 0 : Me.colorIcon) || R,
2441
2441
  className: i,
2442
2442
  disabled: P,
2443
- strokeWidth: Ne,
2443
+ strokeWidth: Ie,
2444
2444
  onClickRightSlot: (Me == null ? void 0 : Me.onClick) || z,
2445
2445
  rightSlotDuotonePrimary: (Me == null ? void 0 : Me.iconDuotonePrimary) || ne,
2446
2446
  rightSlotDuotoneSecondary: (Me == null ? void 0 : Me.iconDuotoneSecondary) || ie,
@@ -2456,9 +2456,9 @@ const _t = (e, i) => {
2456
2456
  size: D,
2457
2457
  color: w,
2458
2458
  colorIcon: (W == null ? void 0 : W.color) || R,
2459
- classNameIcon: (W == null ? void 0 : W.className) || ze,
2459
+ classNameIcon: (W == null ? void 0 : W.className) || Ae,
2460
2460
  theme: a,
2461
- onClick: Ie,
2461
+ onClick: Ne,
2462
2462
  onClickIcon: (W == null ? void 0 : W.onClick) || H,
2463
2463
  iconFontSize: W == null ? void 0 : W.size,
2464
2464
  background: W == null ? void 0 : W.background,
@@ -2485,19 +2485,19 @@ const _t = (e, i) => {
2485
2485
  badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
2486
2486
  badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
2487
2487
  badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
2488
- badgeLoading: St,
2488
+ badgeLoading: kt,
2489
2489
  isAbsolute: !0
2490
2490
  }
2491
2491
  );
2492
2492
  return N ? /* @__PURE__ */ b(
2493
2493
  "a",
2494
2494
  {
2495
- ref: Je,
2495
+ ref: Ue,
2496
2496
  href: N,
2497
2497
  target: O,
2498
2498
  rel: O === "_blank" ? "noopener noreferrer" : void 0,
2499
2499
  className: j(sn, i),
2500
- onClick: En,
2500
+ onClick: Pn,
2501
2501
  onMouseEnter: rn,
2502
2502
  onMouseLeave: on,
2503
2503
  children: [
@@ -2508,7 +2508,7 @@ const _t = (e, i) => {
2508
2508
  ) : U === "div" ? /* @__PURE__ */ r(
2509
2509
  It,
2510
2510
  {
2511
- label: Ee || "",
2511
+ label: Pe || "",
2512
2512
  position: We,
2513
2513
  alignment: et,
2514
2514
  absolute: Yt,
@@ -2518,15 +2518,15 @@ const _t = (e, i) => {
2518
2518
  children: /* @__PURE__ */ b(
2519
2519
  "div",
2520
2520
  {
2521
- ref: Je,
2521
+ ref: Ue,
2522
2522
  className: j(sn, i),
2523
2523
  role: I && !P ? "button" : void 0,
2524
2524
  tabIndex: I && !P ? 0 : void 0,
2525
2525
  "aria-disabled": P,
2526
- "aria-label": !lt && S ? Ee || "Button" : void 0,
2526
+ "aria-label": !lt && S ? Pe || "Button" : void 0,
2527
2527
  onMouseEnter: rn,
2528
2528
  onMouseLeave: on,
2529
- ...Fe,
2529
+ ...Ve,
2530
2530
  children: [
2531
2531
  an(),
2532
2532
  un()
@@ -2537,7 +2537,7 @@ const _t = (e, i) => {
2537
2537
  ) : /* @__PURE__ */ r(
2538
2538
  It,
2539
2539
  {
2540
- label: Ee || "",
2540
+ label: Pe || "",
2541
2541
  position: We,
2542
2542
  alignment: et,
2543
2543
  delay: $t,
@@ -2546,13 +2546,13 @@ const _t = (e, i) => {
2546
2546
  children: /* @__PURE__ */ b(
2547
2547
  "button",
2548
2548
  {
2549
- ref: Je,
2549
+ ref: Ue,
2550
2550
  className: j(sn, i),
2551
- "aria-label": !lt && S ? Ee || "Button" : void 0,
2551
+ "aria-label": !lt && S ? Pe || "Button" : void 0,
2552
2552
  "aria-disabled": P,
2553
- ...wt,
2554
- ...Fe,
2555
- onClick: En,
2553
+ ...bt,
2554
+ ...Ve,
2555
+ onClick: Pn,
2556
2556
  onMouseEnter: rn,
2557
2557
  onMouseLeave: on,
2558
2558
  children: [
@@ -2725,7 +2725,7 @@ const Cu = ({
2725
2725
  "bottom-right": "ui-fixed ui-bottom-5 ui-right-5"
2726
2726
  })[n],
2727
2727
  getIconForType: (n) => ({
2728
- success: _n,
2728
+ success: Un,
2729
2729
  danger: ds,
2730
2730
  warning: cs,
2731
2731
  info: Kr,
@@ -2758,7 +2758,7 @@ const Cu = ({
2758
2758
  /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-1 ui-items-start ui-justify-between ui-gap-8", children: [
2759
2759
  e.avatar ? (
2760
2760
  // Avatar con imagen de persona
2761
- /* @__PURE__ */ r(Mt, { type: "people", src: e.avatar, size: "xs", className: "ui-flex-shrink-0" })
2761
+ /* @__PURE__ */ r(St, { type: "people", src: e.avatar, size: "xs", className: "ui-flex-shrink-0" })
2762
2762
  ) : o ? (
2763
2763
  // Icono con fondo circular para variante outlined (comportamiento anterior)
2764
2764
  /* @__PURE__ */ r(
@@ -2814,7 +2814,7 @@ const Cu = ({
2814
2814
  e.showCloseButton && /* @__PURE__ */ r(
2815
2815
  ke,
2816
2816
  {
2817
- icon: xt,
2817
+ icon: Mt,
2818
2818
  size: "xxs",
2819
2819
  pill: "pill",
2820
2820
  color: "tertiary",
@@ -3006,7 +3006,7 @@ const wu = ({
3006
3006
  warning: "ui-bg-fill-warning-selected",
3007
3007
  info: "ui-bg-fill-info-selected",
3008
3008
  neutral: "ui-bg-fill-tertiary-selected"
3009
- }, qn = rt(
3009
+ }, Yn = rt(
3010
3010
  ({
3011
3011
  progress: e = 0,
3012
3012
  size: i = "xxs",
@@ -3044,7 +3044,7 @@ const wu = ({
3044
3044
  ) });
3045
3045
  }
3046
3046
  );
3047
- qn.displayName = "BarProgress";
3047
+ Yn.displayName = "BarProgress";
3048
3048
  const Zi = rt(
3049
3049
  ({ label: e, value: i, suffix: o = "", className: t }) => typeof i == "number" ? /* @__PURE__ */ b(
3050
3050
  "span",
@@ -3082,7 +3082,7 @@ const lo = rt(({ children: e, type: i = "custom", className: o }) => {
3082
3082
  return /* @__PURE__ */ r("p", { className: t, children: e });
3083
3083
  });
3084
3084
  lo.displayName = "HelperText";
3085
- const Te = ye.forwardRef(function({
3085
+ const Ee = ye.forwardRef(function({
3086
3086
  className: i,
3087
3087
  fullWidth: o = !1,
3088
3088
  leftSlot: t,
@@ -3153,7 +3153,7 @@ const Te = ye.forwardRef(function({
3153
3153
  }
3154
3154
  );
3155
3155
  });
3156
- Te.displayName = "Button";
3156
+ Ee.displayName = "Button";
3157
3157
  const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
3158
3158
  const [t, n] = A(e), s = q(null), a = q(0), u = q(!1), l = q(o), f = 16;
3159
3159
  Y(() => {
@@ -3264,13 +3264,13 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
3264
3264
  }
3265
3265
  ),
3266
3266
  a && /* @__PURE__ */ r(
3267
- Te,
3267
+ Ee,
3268
3268
  {
3269
3269
  theme: "solid",
3270
3270
  color: "tertiary",
3271
3271
  size: "xxs",
3272
3272
  pill: "pill",
3273
- icon: xt,
3273
+ icon: Mt,
3274
3274
  onClick: k,
3275
3275
  className: "ui-rounded-control-pill ui-p-2",
3276
3276
  "aria-label": "Cerrar"
@@ -3281,7 +3281,7 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
3281
3281
  d ? /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-gap-8", children: [
3282
3282
  t && o && /* @__PURE__ */ r(Zi, { label: o, className: "ui-shrink-0" }),
3283
3283
  /* @__PURE__ */ r(
3284
- qn,
3284
+ Yn,
3285
3285
  {
3286
3286
  progress: y,
3287
3287
  size: I,
@@ -3294,14 +3294,14 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
3294
3294
  H()
3295
3295
  ] }) : (
3296
3296
  /* ===== MODO NORMAL: Header arriba, barra abajo ===== */
3297
- /* @__PURE__ */ b($e, { children: [
3297
+ /* @__PURE__ */ b(Ze, { children: [
3298
3298
  /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-justify-between", children: [
3299
3299
  t && o && /* @__PURE__ */ r(Zi, { label: o }),
3300
3300
  /* @__PURE__ */ r("div", { className: "ui-min-h-px ui-flex-1" }),
3301
3301
  H()
3302
3302
  ] }),
3303
3303
  /* @__PURE__ */ r(
3304
- qn,
3304
+ Yn,
3305
3305
  {
3306
3306
  progress: y,
3307
3307
  size: I,
@@ -3660,7 +3660,7 @@ const po = ({
3660
3660
  infoTooltip: $ = "",
3661
3661
  pill: K = "sm",
3662
3662
  ...ee
3663
- }, de) => {
3663
+ }, pe) => {
3664
3664
  const {
3665
3665
  value: F,
3666
3666
  setValue: ne,
@@ -3690,13 +3690,13 @@ const po = ({
3690
3690
  pill: K
3691
3691
  });
3692
3692
  Ou({
3693
- ref: de,
3693
+ ref: pe,
3694
3694
  currentValue: F,
3695
3695
  setValue: ne,
3696
3696
  isControlled: ie,
3697
3697
  inputId: ee.id
3698
3698
  });
3699
- const te = ((J) => !J || typeof J != "string" ? !1 : J.startsWith("data:") || J.startsWith("blob:") ? !0 : Dn(J))(s);
3699
+ const te = ((J) => !J || typeof J != "string" ? !1 : J.startsWith("data:") || J.startsWith("blob:") ? !0 : Vn(J))(s);
3700
3700
  return /* @__PURE__ */ b(
3701
3701
  "div",
3702
3702
  {
@@ -3710,7 +3710,7 @@ const po = ({
3710
3710
  (e || $) && /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
3711
3711
  e && /* @__PURE__ */ r("label", { className: we, children: e }),
3712
3712
  $ && /* @__PURE__ */ r(
3713
- Te,
3713
+ Ee,
3714
3714
  {
3715
3715
  theme: "solid",
3716
3716
  size: "xs",
@@ -3850,14 +3850,14 @@ const ho = (e, i = {}) => {
3850
3850
  return () => clearTimeout(l);
3851
3851
  }
3852
3852
  }, [e, o, t]), { isVisible: n, isAnimating: a };
3853
- }, Bn = /* @__PURE__ */ new Set(), o1 = () => {
3854
- typeof document > "u" || (document.body.style.overflow = Bn.size > 0 ? "hidden" : "");
3853
+ }, $n = /* @__PURE__ */ new Set(), o1 = () => {
3854
+ typeof document > "u" || (document.body.style.overflow = $n.size > 0 ? "hidden" : "");
3855
3855
  }, mo = (e) => {
3856
3856
  const i = typeof window < "u", o = oi();
3857
3857
  Y(() => {
3858
3858
  if (i)
3859
- return e ? Bn.add(o) : Bn.delete(o), o1(), () => {
3860
- Bn.delete(o), o1();
3859
+ return e ? $n.add(o) : $n.delete(o), o1(), () => {
3860
+ $n.delete(o), o1();
3861
3861
  };
3862
3862
  }, [e, i, o]);
3863
3863
  };
@@ -4148,13 +4148,13 @@ const Du = (e, i, o, t = !1) => {
4148
4148
  }, Lo = si(null), Eu = (e, i) => {
4149
4149
  const o = [];
4150
4150
  return i && i.show !== !1 && o.push({ ...i, id: i.id || "footer-secondary" }), e && e.show !== !1 && o.push({ ...e, id: e.id || "footer-primary" }), o;
4151
- }, Vn = (e, i) => {
4151
+ }, Tn = (e, i) => {
4152
4152
  process.env.NODE_ENV !== "production" && console.warn(
4153
4153
  `[Modal] La prop "${e}" está deprecada y será removida en una versión futura. Por favor, usa "${i}" en su lugar. `
4154
4154
  );
4155
4155
  }, Pu = (e) => {
4156
4156
  if (e.icon)
4157
- return Vn("icon / iconDuotonePrimary / iconDuotoneSecondary", "iconConfig"), {
4157
+ return Tn("icon / iconDuotonePrimary / iconDuotoneSecondary", "iconConfig"), {
4158
4158
  icon: e.icon,
4159
4159
  show: !0,
4160
4160
  iconDuotonePrimary: e.iconDuotonePrimary,
@@ -4164,7 +4164,7 @@ const Du = (e, i, o, t = !1) => {
4164
4164
  };
4165
4165
  }, zu = (e) => {
4166
4166
  if (!(!e.headerButtonOnClick && !e.headerButtonIcon))
4167
- return Vn("headerButtonIcon / headerButtonOnClick", "headerButton"), {
4167
+ return Tn("headerButtonIcon / headerButtonOnClick", "headerButton"), {
4168
4168
  id: "header-button",
4169
4169
  icon: e.headerButtonIcon,
4170
4170
  onClick: e.headerButtonOnClick,
@@ -4180,7 +4180,7 @@ const Du = (e, i, o, t = !1) => {
4180
4180
  };
4181
4181
  }, Au = (e) => {
4182
4182
  if (e.badgeLabel)
4183
- return Vn("badgeIcon / badgeLabel", "badge"), {
4183
+ return Tn("badgeIcon / badgeLabel", "badge"), {
4184
4184
  id: "badge",
4185
4185
  label: e.badgeLabel,
4186
4186
  icon: e.badgeIcon,
@@ -4194,7 +4194,7 @@ const Du = (e, i, o, t = !1) => {
4194
4194
  };
4195
4195
  }, Ru = (e) => {
4196
4196
  if (!(!e.footerButtonOnClick && !e.footerButtonIcon))
4197
- return Vn("footerButtonIcon / footerButtonOnClick", "footerAuxButton"), {
4197
+ return Tn("footerButtonIcon / footerButtonOnClick", "footerAuxButton"), {
4198
4198
  id: "footer-aux-button",
4199
4199
  icon: e.footerButtonIcon,
4200
4200
  onClick: e.footerButtonOnClick,
@@ -4209,7 +4209,7 @@ const Du = (e, i, o, t = !1) => {
4209
4209
  iconDuotoneOpacitySecondary: e.footerButtonIconDuotoneOpacitySecondary
4210
4210
  };
4211
4211
  }, Bu = (e) => {
4212
- (e.showCancelButton || e.showSuccessButton) && Vn(
4212
+ (e.showCancelButton || e.showSuccessButton) && Tn(
4213
4213
  "cancelButtonText / successButtonText / onCancel / onSuccess",
4214
4214
  "footerPrimaryButton (success) / footerSecondaryButton (cancel)"
4215
4215
  );
@@ -4282,7 +4282,7 @@ const Du = (e, i, o, t = !1) => {
4282
4282
  footerButtonIconDuotonePrimary: $,
4283
4283
  footerButtonIconDuotoneSecondary: K,
4284
4284
  footerButtonIconDuotoneOpacityPrimary: ee,
4285
- footerButtonIconDuotoneOpacitySecondary: de,
4285
+ footerButtonIconDuotoneOpacitySecondary: pe,
4286
4286
  footerButtonOnClick: F,
4287
4287
  cancelButtonSlotLeft: ne,
4288
4288
  successButtonSlotRight: ie,
@@ -4301,8 +4301,8 @@ const Du = (e, i, o, t = !1) => {
4301
4301
  Y(() => {
4302
4302
  O !== void 0 && ve(O);
4303
4303
  }, [O]);
4304
- const _ = (pe) => {
4305
- ve(pe), H && H(pe);
4304
+ const _ = (de) => {
4305
+ ve(de), H && H(de);
4306
4306
  }, Ce = oe(() => o ? o.show !== !1 ? o : void 0 : Pu({
4307
4307
  icon: h,
4308
4308
  iconDuotonePrimary: p,
@@ -4318,10 +4318,10 @@ const Du = (e, i, o, t = !1) => {
4318
4318
  C
4319
4319
  ]), se = oe(() => {
4320
4320
  if (n && n.length > 0)
4321
- return n.filter((Ne) => Ne.show !== !1);
4321
+ return n.filter((Ie) => Ie.show !== !1);
4322
4322
  if (t && t.show !== !1)
4323
4323
  return [{ ...t, id: t.id || "header-button" }];
4324
- const pe = zu({
4324
+ const de = zu({
4325
4325
  headerButtonIcon: T,
4326
4326
  headerButtonIconDuotonePrimary: z,
4327
4327
  headerButtonIconDuotoneSecondary: P,
@@ -4329,7 +4329,7 @@ const Du = (e, i, o, t = !1) => {
4329
4329
  headerButtonIconDuotoneOpacitySecondary: E,
4330
4330
  headerButtonOnClick: B
4331
4331
  });
4332
- return pe ? [pe] : [];
4332
+ return de ? [de] : [];
4333
4333
  }, [
4334
4334
  n,
4335
4335
  t,
@@ -4341,10 +4341,10 @@ const Du = (e, i, o, t = !1) => {
4341
4341
  B
4342
4342
  ]), be = oe(() => {
4343
4343
  if (a && a.length > 0)
4344
- return a.filter((Ne) => Ne.show !== !1);
4344
+ return a.filter((Ie) => Ie.show !== !1);
4345
4345
  if (s && s.show !== !1)
4346
4346
  return [{ ...s, id: s.id || "badge" }];
4347
- const pe = Au({
4347
+ const de = Au({
4348
4348
  badgeIcon: G,
4349
4349
  badgeIconDuotonePrimary: le,
4350
4350
  badgeIconDuotoneSecondary: we,
@@ -4352,7 +4352,7 @@ const Du = (e, i, o, t = !1) => {
4352
4352
  badgeIconDuotoneOpacitySecondary: te,
4353
4353
  badgeLabel: J
4354
4354
  });
4355
- return pe ? [pe] : [];
4355
+ return de ? [de] : [];
4356
4356
  }, [
4357
4357
  a,
4358
4358
  s,
@@ -4362,12 +4362,12 @@ const Du = (e, i, o, t = !1) => {
4362
4362
  U,
4363
4363
  te,
4364
4364
  J
4365
- ]), Ie = oe(() => u ? u.show !== !1 ? u : void 0 : Ru({
4365
+ ]), Ne = oe(() => u ? u.show !== !1 ? u : void 0 : Ru({
4366
4366
  footerButtonIcon: Z,
4367
4367
  footerButtonIconDuotonePrimary: $,
4368
4368
  footerButtonIconDuotoneSecondary: K,
4369
4369
  footerButtonIconDuotoneOpacityPrimary: ee,
4370
- footerButtonIconDuotoneOpacitySecondary: de,
4370
+ footerButtonIconDuotoneOpacitySecondary: pe,
4371
4371
  footerButtonOnClick: F
4372
4372
  }), [
4373
4373
  u,
@@ -4375,13 +4375,13 @@ const Du = (e, i, o, t = !1) => {
4375
4375
  $,
4376
4376
  K,
4377
4377
  ee,
4378
- de,
4378
+ pe,
4379
4379
  F
4380
4380
  ]), he = oe(() => {
4381
4381
  if (d && d.length > 0)
4382
- return d.filter((Ne) => Ne.show !== !1);
4383
- const pe = Eu(l, f);
4384
- return pe.length > 0 ? pe : Bu({
4382
+ return d.filter((Ie) => Ie.show !== !1);
4383
+ const de = Eu(l, f);
4384
+ return de.length > 0 ? de : Bu({
4385
4385
  cancelButtonText: M,
4386
4386
  successButtonText: L,
4387
4387
  onCancel: y,
@@ -4413,7 +4413,7 @@ const Du = (e, i, o, t = !1) => {
4413
4413
  me,
4414
4414
  fe,
4415
4415
  X
4416
- ]), Ve = {
4416
+ ]), Te = {
4417
4417
  // Nuevo sistema (modelo cerrado)
4418
4418
  iconConfig: o,
4419
4419
  headerButton: t,
@@ -4428,7 +4428,7 @@ const Du = (e, i, o, t = !1) => {
4428
4428
  processedIcon: Ce,
4429
4429
  processedHeaderButtons: se,
4430
4430
  processedBadges: be,
4431
- processedFooterAuxButton: Ie,
4431
+ processedFooterAuxButton: Ne,
4432
4432
  processedFooterButtons: he,
4433
4433
  // Props legacy (mantener para retrocompatibilidad)
4434
4434
  onClose: i,
@@ -4462,7 +4462,7 @@ const Du = (e, i, o, t = !1) => {
4462
4462
  footerButtonIconDuotonePrimary: $,
4463
4463
  footerButtonIconDuotoneSecondary: K,
4464
4464
  footerButtonIconDuotoneOpacityPrimary: ee,
4465
- footerButtonIconDuotoneOpacitySecondary: de,
4465
+ footerButtonIconDuotoneOpacitySecondary: pe,
4466
4466
  footerButtonOnClick: F,
4467
4467
  cancelButtonSlotLeft: ne,
4468
4468
  successButtonSlotRight: ie,
@@ -4477,7 +4477,7 @@ const Du = (e, i, o, t = !1) => {
4477
4477
  badgeLabel: J,
4478
4478
  hideFooter: ae
4479
4479
  };
4480
- return /* @__PURE__ */ r(Lo.Provider, { value: Ve, children: e });
4480
+ return /* @__PURE__ */ r(Lo.Provider, { value: Te, children: e });
4481
4481
  }, ci = () => {
4482
4482
  const e = dr(Lo);
4483
4483
  if (!e)
@@ -4524,7 +4524,7 @@ const Du = (e, i, o, t = !1) => {
4524
4524
  c
4525
4525
  ),
4526
4526
  children: e.map((p) => /* @__PURE__ */ r(
4527
- Te,
4527
+ Ee,
4528
4528
  {
4529
4529
  size: u,
4530
4530
  onClick: () => d(p.value),
@@ -4581,7 +4581,7 @@ const Du = (e, i, o, t = !1) => {
4581
4581
  ...n,
4582
4582
  ...i
4583
4583
  };
4584
- }, Tn = ({
4584
+ }, En = ({
4585
4585
  children: e,
4586
4586
  showCloseButton: i,
4587
4587
  title: o,
@@ -4627,7 +4627,7 @@ const Du = (e, i, o, t = !1) => {
4627
4627
  headerButtonIconDuotonePrimary: $,
4628
4628
  headerButtonIconDuotoneSecondary: K,
4629
4629
  headerButtonIconDuotoneOpacityPrimary: ee,
4630
- headerButtonIconDuotoneOpacitySecondary: de,
4630
+ headerButtonIconDuotoneOpacitySecondary: pe,
4631
4631
  headerButtonOnClick: F,
4632
4632
  badgeIcon: ne,
4633
4633
  badgeIconDuotonePrimary: ie,
@@ -4671,9 +4671,9 @@ const Du = (e, i, o, t = !1) => {
4671
4671
  {
4672
4672
  "aria-label": se.label || `Header button ${be + 1}`,
4673
4673
  ...$u(se, {
4674
- onClick: se.onClick ? (Ie) => {
4674
+ onClick: se.onClick ? (Ne) => {
4675
4675
  var he;
4676
- return (he = se.onClick) == null ? void 0 : he.call(se, Ie);
4676
+ return (he = se.onClick) == null ? void 0 : he.call(se, Ne);
4677
4677
  } : void 0,
4678
4678
  theme: se.theme || "solid",
4679
4679
  color: se.color || "secondary",
@@ -4693,7 +4693,7 @@ const Du = (e, i, o, t = !1) => {
4693
4693
  theme: "solid",
4694
4694
  color: "secondary",
4695
4695
  pill: "pill",
4696
- icon: xt,
4696
+ icon: Mt,
4697
4697
  size: "xs"
4698
4698
  }
4699
4699
  )
@@ -4711,7 +4711,7 @@ const Du = (e, i, o, t = !1) => {
4711
4711
  ) }) : null
4712
4712
  ] });
4713
4713
  };
4714
- Tn.displayName = "Modal.Header";
4714
+ En.displayName = "Modal.Header";
4715
4715
  const xo = ({ children: e, withPadding: i = !0 }) => {
4716
4716
  const { hideFooter: o } = ci();
4717
4717
  return /* @__PURE__ */ r(
@@ -4877,9 +4877,9 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
4877
4877
  if (!w || l === "none")
4878
4878
  return { width: "100%", height: "100%" };
4879
4879
  const { width: E, height: B } = w, Z = 64, $ = E - Z, K = B - Z, ee = T[l];
4880
- let de, F;
4881
- return de = $, F = de / ee, F > K && (F = K, de = F * ee), {
4882
- width: `${de}px`,
4880
+ let pe, F;
4881
+ return pe = $, F = pe / ee, F > K && (F = K, pe = F * ee), {
4882
+ width: `${pe}px`,
4883
4883
  height: `${F}px`
4884
4884
  };
4885
4885
  }, [w, l, T]), P = V(() => {
@@ -4956,7 +4956,7 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
4956
4956
  )
4957
4957
  }
4958
4958
  ),
4959
- (c || p) && v ? Fn.createPortal(
4959
+ (c || p) && v ? _n.createPortal(
4960
4960
  /* @__PURE__ */ r(
4961
4961
  "div",
4962
4962
  {
@@ -4978,7 +4978,7 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
4978
4978
  ),
4979
4979
  v
4980
4980
  ) : null,
4981
- (c || p) && v && w && M ? Fn.createPortal(
4981
+ (c || p) && v && w && M ? _n.createPortal(
4982
4982
  /* @__PURE__ */ r(
4983
4983
  "div",
4984
4984
  {
@@ -5149,7 +5149,7 @@ const _u = {
5149
5149
  lg: "ui-max-w-[896px]",
5150
5150
  xl: "ui-max-w-[1100px]",
5151
5151
  "2xl": "ui-max-w-[1350px]"
5152
- }, Uu = (e) => kr({ children: e, component: Tn, componentName: "Modal.Header" }), Gu = (e) => kr({ children: e, component: di, componentName: "Modal.Footer" }), kr = ({
5152
+ }, Uu = (e) => kr({ children: e, component: En, componentName: "Modal.Header" }), Gu = (e) => kr({ children: e, component: di, componentName: "Modal.Footer" }), kr = ({
5153
5153
  children: e,
5154
5154
  component: i,
5155
5155
  componentName: o
@@ -5161,7 +5161,7 @@ const _u = {
5161
5161
  });
5162
5162
  function qu(e) {
5163
5163
  return Object.assign(e, {
5164
- Header: Tn,
5164
+ Header: En,
5165
5165
  Body: xo,
5166
5166
  Footer: di,
5167
5167
  Image: Mo
@@ -5208,7 +5208,7 @@ const Yu = ({
5208
5208
  footerButtonIconDuotoneOpacitySecondary: $,
5209
5209
  footerButtonOnClick: K,
5210
5210
  cancelButtonSlotLeft: ee,
5211
- successButtonSlotRight: de,
5211
+ successButtonSlotRight: pe,
5212
5212
  disableCancelButton: F,
5213
5213
  disableSuccessButton: ne,
5214
5214
  successButtonColor: ie,
@@ -5230,32 +5230,49 @@ const Yu = ({
5230
5230
  footerSecondaryButton: se,
5231
5231
  footerButtons: be
5232
5232
  }) => {
5233
- const { isVisible: Ie, animateIn: he, container: Ve, modalRef: pe } = Tu({
5233
+ const { isVisible: Ne, animateIn: he, container: Te, modalRef: de } = Tu({
5234
5234
  isOpen: e,
5235
5235
  onClose: i,
5236
5236
  disableEscapeClose: a,
5237
5237
  disableOutsideTab: u,
5238
5238
  disableOutsideClick: l
5239
- }), Ne = q(null);
5240
- if (ri(() => {
5241
- if (!Ie) return;
5242
- const Ge = Ne.current;
5243
- Ge && (Ge.scrollTop = 0);
5244
- }, [e, Ie]), !Ve || !e && !Ie) return null;
5245
- const Ue = Uu(n), ze = Gu(n), Re = g === 60 ? "ui-z-[60]" : g === 50 ? "ui-z-50" : "", Ze = g === 50 || g === 60 ? void 0 : { zIndex: g }, Ae = /* @__PURE__ */ b(
5239
+ }), Ie = q(null), [Fe, Ae] = A(!1), Re = V(() => {
5240
+ const Ve = de.current;
5241
+ if (!Ve) return;
5242
+ const Ue = window.innerHeight;
5243
+ Ae(Ve.offsetHeight + 64 > Ue);
5244
+ }, []);
5245
+ if (On(() => {
5246
+ if (!Ne) {
5247
+ Ae(!1);
5248
+ return;
5249
+ }
5250
+ Re();
5251
+ const Ve = de.current;
5252
+ if (!Ve) return;
5253
+ const Ue = new ResizeObserver(Re);
5254
+ return Ue.observe(Ve), window.addEventListener("resize", Re), () => {
5255
+ Ue.disconnect(), window.removeEventListener("resize", Re);
5256
+ };
5257
+ }, [Ne, Re]), On(() => {
5258
+ if (!Ne) return;
5259
+ const Ve = Ie.current;
5260
+ Ve && (Ve.scrollTop = 0);
5261
+ }, [e, Ne, Fe]), !Te || !e && !Ne) return null;
5262
+ const _e = Uu(n), Be = Gu(n), ot = g === 60 ? "ui-z-[60]" : g === 50 ? "ui-z-50" : "", vt = g === 50 || g === 60 ? void 0 : { zIndex: g }, Je = /* @__PURE__ */ b(
5246
5263
  "div",
5247
5264
  {
5248
5265
  "aria-modal": "true",
5249
5266
  role: "dialog",
5250
5267
  "aria-describedby": "modal-description",
5251
- ref: Ne,
5268
+ ref: Ie,
5252
5269
  className: j(
5253
5270
  "ui-imj",
5254
5271
  "modal-portal",
5255
5272
  "ui-fixed ui-inset-0 ui-overflow-y-auto",
5256
- Re
5273
+ ot
5257
5274
  ),
5258
- style: Ze,
5275
+ style: vt,
5259
5276
  children: [
5260
5277
  /* @__PURE__ */ r(
5261
5278
  "div",
@@ -5264,98 +5281,107 @@ const Yu = ({
5264
5281
  "ui-fixed ui-inset-0 ui-bg-black ui-backdrop-blur-sm ui-transition-opacity ui-duration-200",
5265
5282
  he ? "ui-opacity-40" : "ui-opacity-0"
5266
5283
  ),
5267
- onClick: l ? (Ge) => Ge.stopPropagation() : i
5284
+ onClick: l ? (Ve) => Ve.stopPropagation() : i
5268
5285
  }
5269
5286
  ),
5270
- /* @__PURE__ */ r("div", { className: "ui-flex ui-min-h-full ui-items-start ui-justify-center ui-px-4 ui-py-8", children: /* @__PURE__ */ r(
5287
+ /* @__PURE__ */ r(
5271
5288
  "div",
5272
5289
  {
5273
- ref: pe,
5274
- tabIndex: -1,
5275
5290
  className: j(
5276
- "ui-relative ui-z-10 ui-flex ui-w-full ui-flex-col ui-rounded-surface-modal ui-border-1 ui-border-default ui-bg-fill ui-shadow-md ui-outline-none",
5277
- _u[t]
5291
+ "ui-flex ui-min-h-full ui-justify-center ui-px-4 ui-py-8",
5292
+ Fe ? "ui-items-start" : "ui-items-center"
5278
5293
  ),
5279
- onClick: (Ge) => Ge.stopPropagation(),
5280
5294
  children: /* @__PURE__ */ r(
5281
5295
  "div",
5282
5296
  {
5297
+ ref: de,
5298
+ tabIndex: -1,
5283
5299
  className: j(
5284
- "ui-flex ui-min-h-0 ui-w-full ui-flex-col ui-transform ui-transition-all ui-duration-200",
5285
- he ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
5300
+ "ui-relative ui-z-10 ui-flex ui-w-full ui-flex-col ui-rounded-surface-modal ui-border-1 ui-border-default ui-bg-fill ui-shadow-md ui-outline-none",
5301
+ _u[t]
5286
5302
  ),
5287
- children: /* @__PURE__ */ b(
5288
- yo,
5303
+ onClick: (Ve) => Ve.stopPropagation(),
5304
+ children: /* @__PURE__ */ r(
5305
+ "div",
5289
5306
  {
5290
- isOpen: e,
5291
- onClose: i,
5292
- showCloseButton: s,
5293
- closeAtCorner: f,
5294
- cancelButtonText: d,
5295
- successButtonText: c,
5296
- onCancel: h,
5297
- onSuccess: p,
5298
- showCancelButton: C,
5299
- showSuccessButton: v,
5300
- closeAtSuccess: L,
5301
- closeAtCancel: w,
5302
- title: m,
5303
- icon: o,
5304
- iconDuotonePrimary: S,
5305
- iconDuotoneSecondary: N,
5306
- iconDuotoneOpacityPrimary: D,
5307
- iconDuotoneOpacitySecondary: k,
5308
- headerButtonIcon: I,
5309
- headerButtonIconDuotonePrimary: O,
5310
- headerButtonIconDuotoneSecondary: H,
5311
- headerButtonIconDuotoneOpacityPrimary: T,
5312
- headerButtonIconDuotoneOpacitySecondary: z,
5313
- headerButtonOnClick: P,
5314
- footerButtonIcon: R,
5315
- footerButtonIconDuotonePrimary: E,
5316
- footerButtonIconDuotoneSecondary: B,
5317
- footerButtonIconDuotoneOpacityPrimary: Z,
5318
- footerButtonIconDuotoneOpacitySecondary: $,
5319
- footerButtonOnClick: K,
5320
- tabs: y,
5321
- defaultValueTab: M,
5322
- onChangeTab: x,
5323
- cancelButtonSlotLeft: ee,
5324
- successButtonSlotRight: de,
5325
- disableCancelButton: F,
5326
- disableSuccessButton: ne,
5327
- successButtonColor: ie,
5328
- badgeIcon: me,
5329
- badgeIconDuotonePrimary: fe,
5330
- badgeIconDuotoneSecondary: X,
5331
- badgeIconDuotoneOpacityPrimary: G,
5332
- badgeIconDuotoneOpacitySecondary: le,
5333
- badgeLabel: we,
5334
- hideFooter: U,
5335
- iconConfig: te,
5336
- headerButton: J,
5337
- headerButtons: ae,
5338
- badge: ge,
5339
- badges: ve,
5340
- footerAuxButton: _,
5341
- footerPrimaryButton: Ce,
5342
- footerSecondaryButton: se,
5343
- footerButtons: be,
5344
- children: [
5345
- !Ue && (s || m ? /* @__PURE__ */ r(Tn, { title: m }) : null),
5346
- n && n,
5347
- !ze && !U && /* @__PURE__ */ r(di, {})
5348
- ]
5307
+ className: j(
5308
+ "ui-flex ui-min-h-0 ui-w-full ui-flex-col ui-transform ui-transition-all ui-duration-200",
5309
+ he ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
5310
+ ),
5311
+ children: /* @__PURE__ */ b(
5312
+ yo,
5313
+ {
5314
+ isOpen: e,
5315
+ onClose: i,
5316
+ showCloseButton: s,
5317
+ closeAtCorner: f,
5318
+ cancelButtonText: d,
5319
+ successButtonText: c,
5320
+ onCancel: h,
5321
+ onSuccess: p,
5322
+ showCancelButton: C,
5323
+ showSuccessButton: v,
5324
+ closeAtSuccess: L,
5325
+ closeAtCancel: w,
5326
+ title: m,
5327
+ icon: o,
5328
+ iconDuotonePrimary: S,
5329
+ iconDuotoneSecondary: N,
5330
+ iconDuotoneOpacityPrimary: D,
5331
+ iconDuotoneOpacitySecondary: k,
5332
+ headerButtonIcon: I,
5333
+ headerButtonIconDuotonePrimary: O,
5334
+ headerButtonIconDuotoneSecondary: H,
5335
+ headerButtonIconDuotoneOpacityPrimary: T,
5336
+ headerButtonIconDuotoneOpacitySecondary: z,
5337
+ headerButtonOnClick: P,
5338
+ footerButtonIcon: R,
5339
+ footerButtonIconDuotonePrimary: E,
5340
+ footerButtonIconDuotoneSecondary: B,
5341
+ footerButtonIconDuotoneOpacityPrimary: Z,
5342
+ footerButtonIconDuotoneOpacitySecondary: $,
5343
+ footerButtonOnClick: K,
5344
+ tabs: y,
5345
+ defaultValueTab: M,
5346
+ onChangeTab: x,
5347
+ cancelButtonSlotLeft: ee,
5348
+ successButtonSlotRight: pe,
5349
+ disableCancelButton: F,
5350
+ disableSuccessButton: ne,
5351
+ successButtonColor: ie,
5352
+ badgeIcon: me,
5353
+ badgeIconDuotonePrimary: fe,
5354
+ badgeIconDuotoneSecondary: X,
5355
+ badgeIconDuotoneOpacityPrimary: G,
5356
+ badgeIconDuotoneOpacitySecondary: le,
5357
+ badgeLabel: we,
5358
+ hideFooter: U,
5359
+ iconConfig: te,
5360
+ headerButton: J,
5361
+ headerButtons: ae,
5362
+ badge: ge,
5363
+ badges: ve,
5364
+ footerAuxButton: _,
5365
+ footerPrimaryButton: Ce,
5366
+ footerSecondaryButton: se,
5367
+ footerButtons: be,
5368
+ children: [
5369
+ !_e && (s || m ? /* @__PURE__ */ r(En, { title: m }) : null),
5370
+ n && n,
5371
+ !Be && !U && /* @__PURE__ */ r(di, {})
5372
+ ]
5373
+ }
5374
+ )
5349
5375
  }
5350
5376
  )
5351
5377
  }
5352
5378
  )
5353
5379
  }
5354
- ) })
5380
+ )
5355
5381
  ]
5356
5382
  }
5357
5383
  );
5358
- return Fn.createPortal(Ae, Ve);
5384
+ return _n.createPortal(Je, Te);
5359
5385
  }, a1 = qu(Yu), Np = ({
5360
5386
  isOpen: e,
5361
5387
  onClose: i,
@@ -5592,7 +5618,7 @@ const Yu = ({
5592
5618
  onMouseLeave: O,
5593
5619
  ...h,
5594
5620
  children: [
5595
- i ? /* @__PURE__ */ r(Mt, { type: "people", src: i, size: "xxs", className: "ui-shrink-0" }) : f && /* @__PURE__ */ r("div", { className: w({ color: I }), children: /* @__PURE__ */ r(
5621
+ i ? /* @__PURE__ */ r(St, { type: "people", src: i, size: "xxs", className: "ui-shrink-0" }) : f && /* @__PURE__ */ r("div", { className: w({ color: I }), children: /* @__PURE__ */ r(
5596
5622
  Le,
5597
5623
  {
5598
5624
  name: f,
@@ -5602,7 +5628,7 @@ const Yu = ({
5602
5628
  }
5603
5629
  ) }),
5604
5630
  e && /* @__PURE__ */ r(
5605
- yt,
5631
+ xt,
5606
5632
  {
5607
5633
  truncate: d,
5608
5634
  title: e,
@@ -5625,7 +5651,7 @@ const Yu = ({
5625
5651
  children: /* @__PURE__ */ r(
5626
5652
  Le,
5627
5653
  {
5628
- name: xt,
5654
+ name: Mt,
5629
5655
  size: "xs",
5630
5656
  color: "current",
5631
5657
  className: L({ color: I })
@@ -5803,7 +5829,7 @@ const Yu = ({
5803
5829
  };
5804
5830
  Ju.displayName = "Badges";
5805
5831
  function pi(e) {
5806
- return e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Dn(e) : !1;
5832
+ return e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1;
5807
5833
  }
5808
5834
  function Wu({
5809
5835
  width: e = 24,
@@ -24180,7 +24206,7 @@ const ko = ({
24180
24206
  iconDuotoneSecondary: f,
24181
24207
  iconDuotoneOpacityPrimary: d,
24182
24208
  iconDuotoneOpacitySecondary: c
24183
- }) => ye.isValidElement(e) ? /* @__PURE__ */ r($e, { children: e }) : typeof e == "string" && pi(e) ? /* @__PURE__ */ r(Mt, { type: "people", src: e, className: n, size: "xxs" }) : /* @__PURE__ */ r(
24209
+ }) => ye.isValidElement(e) ? /* @__PURE__ */ r(Ze, { children: e }) : typeof e == "string" && pi(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: "xxs" }) : /* @__PURE__ */ r(
24184
24210
  fi,
24185
24211
  {
24186
24212
  className: n,
@@ -24215,7 +24241,7 @@ const No = ({
24215
24241
  if (!c || !e)
24216
24242
  return null;
24217
24243
  const h = bn(o, t), p = i === "xxs" ? "xs" : "sm", m = "xxs";
24218
- return jo(e) ? /* @__PURE__ */ r(Mt, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
24244
+ return jo(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
24219
24245
  fi,
24220
24246
  {
24221
24247
  name: e,
@@ -24248,7 +24274,7 @@ const Io = ({
24248
24274
  if (!c || !e)
24249
24275
  return null;
24250
24276
  const h = bn(o, t), p = i === "xxs" ? "xs" : "sm", m = "xxs";
24251
- return jo(e) ? /* @__PURE__ */ r(Mt, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
24277
+ return jo(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
24252
24278
  fi,
24253
24279
  {
24254
24280
  name: e,
@@ -24444,7 +24470,7 @@ const $4 = (e) => {
24444
24470
  iconDuotoneOpacitySecondary: $,
24445
24471
  leftSlotDuotonePrimary: K,
24446
24472
  leftSlotDuotoneSecondary: ee,
24447
- leftSlotDuotoneOpacityPrimary: de,
24473
+ leftSlotDuotoneOpacityPrimary: pe,
24448
24474
  leftSlotDuotoneOpacitySecondary: F,
24449
24475
  rightSlotDuotonePrimary: ne,
24450
24476
  rightSlotDuotoneSecondary: ie,
@@ -24464,24 +24490,24 @@ const $4 = (e) => {
24464
24490
  classNameTooltip: Ce,
24465
24491
  stopPropagation: se = !0,
24466
24492
  pointer: be = !0,
24467
- onClick: Ie,
24493
+ onClick: Ne,
24468
24494
  pill: he = "sm",
24469
- textAlign: Ve = "center",
24470
- whiteBackground: pe = !0,
24471
- strokeWidth: Ne = 2,
24472
- transition: Ue = !0,
24473
- classNameIcon: ze = "",
24495
+ textAlign: Te = "center",
24496
+ whiteBackground: de = !0,
24497
+ strokeWidth: Ie = 2,
24498
+ transition: Fe = !0,
24499
+ classNameIcon: Ae = "",
24474
24500
  active: Re = !1,
24475
24501
  // Nuevo sistema de configuraciones
24476
- iconProps: Ze,
24477
- badge: Ae,
24478
- leftSlotProps: Ge,
24479
- rightSlotProps: kt,
24480
- tooltipProps: ot,
24481
- ...Fe
24482
- }, Je) {
24502
+ iconProps: _e,
24503
+ badge: Be,
24504
+ leftSlotProps: ot,
24505
+ rightSlotProps: vt,
24506
+ tooltipProps: Je,
24507
+ ...Ve
24508
+ }, Ue) {
24483
24509
  G4({ theme: a, size: D, color: w, pill: he, as: U, link: N });
24484
- const wt = {
24510
+ const bt = {
24485
24511
  disabled: P
24486
24512
  }, Ke = S && typeof S == "object" && !ye.isValidElement(S) && "icon" in S && ("color" in S || "size" in S || "show" in S || "onClick" in S || "className" in S || "strokeWidth" in S), tt = Ke ? S : void 0, qe = Ke ? void 0 : $4({
24487
24513
  icon: S,
@@ -24490,10 +24516,10 @@ const $4 = (e) => {
24490
24516
  iconDuotoneOpacityPrimary: Z,
24491
24517
  iconDuotoneOpacitySecondary: $,
24492
24518
  colorIcon: R,
24493
- classNameIcon: ze,
24494
- strokeWidth: Ne,
24519
+ classNameIcon: Ae,
24520
+ strokeWidth: Ie,
24495
24521
  onClickIcon: H
24496
- }), vt = Z4({
24522
+ }), Lt = Z4({
24497
24523
  badgeColor: u,
24498
24524
  badgeLabel: l,
24499
24525
  badgeTheme: f,
@@ -24505,11 +24531,11 @@ const $4 = (e) => {
24505
24531
  badgeIconDuotoneOpacityPrimary: g,
24506
24532
  badgeIconDuotoneOpacitySecondary: C,
24507
24533
  badgeLoading: v
24508
- }), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, _e = st ? void 0 : F4({
24534
+ }), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, Ge = st ? void 0 : F4({
24509
24535
  leftSlot: n,
24510
24536
  leftSlotDuotonePrimary: K,
24511
24537
  leftSlotDuotoneSecondary: ee,
24512
- leftSlotDuotoneOpacityPrimary: de,
24538
+ leftSlotDuotoneOpacityPrimary: pe,
24513
24539
  leftSlotDuotoneOpacitySecondary: F,
24514
24540
  onClickLeftSlot: T,
24515
24541
  colorIcon: R
@@ -24521,14 +24547,14 @@ const $4 = (e) => {
24521
24547
  rightSlotDuotoneOpacitySecondary: fe,
24522
24548
  onClickRightSlot: z,
24523
24549
  colorIcon: R
24524
- }), Pe = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = Pe ? J : void 0, Xe = Pe ? void 0 : U4({
24550
+ }), ze = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = ze ? J : void 0, Xe = ze ? void 0 : U4({
24525
24551
  tooltip: J,
24526
24552
  tooltipPosition: ae,
24527
24553
  tooltipAlignment: ge,
24528
24554
  tooltipDelay: ve,
24529
24555
  tooltipAbsolute: _,
24530
24556
  classNameTooltip: Ce
24531
- }), W = Ze || tt || qe || (S && !Ke && !ye.isValidElement(S) && typeof S == "string" && !pi(S) ? { icon: S, show: !0 } : void 0), Q = Ae || vt, xe = Ge || Bt || _e, Me = kt || je || re, De = ot || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) ? S : S ?? void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, St = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Ee = (De == null ? void 0 : De.label) || (Pe ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(St), {
24557
+ }), W = _e || tt || qe || (S && !Ke && !ye.isValidElement(S) && typeof S == "string" && !pi(S) ? { icon: S, show: !0 } : void 0), Q = Be || Lt, xe = ot || Bt || Ge, Me = vt || je || re, De = Je || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) ? S : S ?? void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, kt = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Pe = (De == null ? void 0 : De.label) || (ze ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(kt), {
24532
24558
  displayText: ji,
24533
24559
  textStyle: Ni,
24534
24560
  measureRef: Ii,
@@ -24542,14 +24568,14 @@ const $4 = (e) => {
24542
24568
  badgeFinishedLoading: ki,
24543
24569
  size: D,
24544
24570
  textColor: x,
24545
- textAlign: Ve
24571
+ textAlign: Te
24546
24572
  }), Vt = G1(
24547
24573
  Dt,
24548
24574
  Ut,
24549
24575
  Gt,
24550
24576
  nn,
24551
- St
24552
- ), kn = Y1(St, nn), jn = q1(
24577
+ kt
24578
+ ), kn = Y1(kt, nn), jn = q1(
24553
24579
  Mn,
24554
24580
  Dt,
24555
24581
  w
@@ -24562,7 +24588,7 @@ const $4 = (e) => {
24562
24588
  pill: he,
24563
24589
  clickable: I,
24564
24590
  borderable: G,
24565
- whiteBackground: pe,
24591
+ whiteBackground: de,
24566
24592
  active: Re,
24567
24593
  square: k,
24568
24594
  icon: !!Ht,
@@ -24570,14 +24596,14 @@ const $4 = (e) => {
24570
24596
  shouldShowBadge: Vt,
24571
24597
  showShadow: X,
24572
24598
  pointer: be,
24573
- transition: Ue,
24599
+ transition: Fe,
24574
24600
  classNameId: te,
24575
24601
  className: i,
24576
24602
  isIconVariant: Mi,
24577
24603
  defaultSizeIcon: we
24578
- }), En = (Nn) => {
24579
- se && Nn.stopPropagation(), Ie && Ie(Nn);
24580
- }, an = () => /* @__PURE__ */ b($e, { children: [
24604
+ }), Pn = (Nn) => {
24605
+ se && Nn.stopPropagation(), Ne && Ne(Nn);
24606
+ }, an = () => /* @__PURE__ */ b(Ze, { children: [
24581
24607
  (xe == null ? void 0 : xe.show) !== !1 && /* @__PURE__ */ r(
24582
24608
  No,
24583
24609
  {
@@ -24587,11 +24613,11 @@ const $4 = (e) => {
24587
24613
  colorIcon: (xe == null ? void 0 : xe.colorIcon) || R,
24588
24614
  className: i,
24589
24615
  disabled: P,
24590
- strokeWidth: Ne,
24616
+ strokeWidth: Ie,
24591
24617
  onClickLeftSlot: (xe == null ? void 0 : xe.onClick) || T,
24592
24618
  leftSlotDuotonePrimary: (xe == null ? void 0 : xe.iconDuotonePrimary) || K,
24593
24619
  leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) || ee,
24594
- leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || de,
24620
+ leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || pe,
24595
24621
  leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) || F,
24596
24622
  hasChildren: lt
24597
24623
  }
@@ -24603,7 +24629,7 @@ const $4 = (e) => {
24603
24629
  hasSlots: !!(ue || Se),
24604
24630
  textStyle: Ni,
24605
24631
  textColor: x,
24606
- textAlign: Ve,
24632
+ textAlign: Te,
24607
24633
  measureRef: Ii,
24608
24634
  textRef: Oi,
24609
24635
  measureSpanClassName: Hi
@@ -24623,7 +24649,7 @@ const $4 = (e) => {
24623
24649
  badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
24624
24650
  badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
24625
24651
  badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
24626
- badgeLoading: St,
24652
+ badgeLoading: kt,
24627
24653
  isAbsolute: !1
24628
24654
  }
24629
24655
  ),
@@ -24636,7 +24662,7 @@ const $4 = (e) => {
24636
24662
  colorIcon: (Me == null ? void 0 : Me.colorIcon) || R,
24637
24663
  className: i,
24638
24664
  disabled: P,
24639
- strokeWidth: Ne,
24665
+ strokeWidth: Ie,
24640
24666
  onClickRightSlot: (Me == null ? void 0 : Me.onClick) || z,
24641
24667
  rightSlotDuotonePrimary: (Me == null ? void 0 : Me.iconDuotonePrimary) || ne,
24642
24668
  rightSlotDuotoneSecondary: (Me == null ? void 0 : Me.iconDuotoneSecondary) || ie,
@@ -24652,9 +24678,9 @@ const $4 = (e) => {
24652
24678
  size: D,
24653
24679
  color: w,
24654
24680
  colorIcon: (W == null ? void 0 : W.color) || R,
24655
- classNameIcon: (W == null ? void 0 : W.className) || ze,
24681
+ classNameIcon: (W == null ? void 0 : W.className) || Ae,
24656
24682
  theme: a,
24657
- onClick: Ie,
24683
+ onClick: Ne,
24658
24684
  onClickIcon: (W == null ? void 0 : W.onClick) || H,
24659
24685
  iconDuotonePrimary: (W == null ? void 0 : W.colorDuotonePrimary) || (W == null ? void 0 : W.iconDuotonePrimary) || E,
24660
24686
  iconDuotoneSecondary: (W == null ? void 0 : W.colorDuotoneSecondary) || (W == null ? void 0 : W.iconDuotoneSecondary) || B,
@@ -24676,14 +24702,14 @@ const $4 = (e) => {
24676
24702
  badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
24677
24703
  badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
24678
24704
  badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
24679
- badgeLoading: St,
24705
+ badgeLoading: kt,
24680
24706
  isAbsolute: !0
24681
24707
  }
24682
24708
  );
24683
24709
  return N ? /* @__PURE__ */ b(
24684
24710
  "a",
24685
24711
  {
24686
- ref: Je,
24712
+ ref: Ue,
24687
24713
  href: N,
24688
24714
  target: O,
24689
24715
  className: j(sn, i),
@@ -24697,7 +24723,7 @@ const $4 = (e) => {
24697
24723
  ) : U === "div" ? /* @__PURE__ */ r(
24698
24724
  It,
24699
24725
  {
24700
- label: Ee || "",
24726
+ label: Pe || "",
24701
24727
  position: We,
24702
24728
  alignment: et,
24703
24729
  absolute: Yt,
@@ -24707,15 +24733,15 @@ const $4 = (e) => {
24707
24733
  children: /* @__PURE__ */ b(
24708
24734
  "div",
24709
24735
  {
24710
- ref: Je,
24736
+ ref: Ue,
24711
24737
  className: j(sn, i),
24712
24738
  role: I && !P ? "button" : void 0,
24713
24739
  tabIndex: I && !P ? 0 : void 0,
24714
24740
  "aria-disabled": P,
24715
- "aria-label": !lt && S ? Ee || "Button" : void 0,
24741
+ "aria-label": !lt && S ? Pe || "Button" : void 0,
24716
24742
  onMouseEnter: rn,
24717
24743
  onMouseLeave: on,
24718
- ...Fe,
24744
+ ...Ve,
24719
24745
  children: [
24720
24746
  an(),
24721
24747
  un()
@@ -24726,7 +24752,7 @@ const $4 = (e) => {
24726
24752
  ) : /* @__PURE__ */ r(
24727
24753
  It,
24728
24754
  {
24729
- label: Ee || "",
24755
+ label: Pe || "",
24730
24756
  position: We,
24731
24757
  alignment: et,
24732
24758
  delay: $t,
@@ -24735,13 +24761,13 @@ const $4 = (e) => {
24735
24761
  children: /* @__PURE__ */ b(
24736
24762
  "button",
24737
24763
  {
24738
- ref: Je,
24764
+ ref: Ue,
24739
24765
  className: j(sn, i),
24740
- "aria-label": !lt && S ? Ee || "Button" : void 0,
24766
+ "aria-label": !lt && S ? Pe || "Button" : void 0,
24741
24767
  "aria-disabled": P,
24742
- ...wt,
24743
- ...Fe,
24744
- onClick: En,
24768
+ ...bt,
24769
+ ...Ve,
24770
+ onClick: Pn,
24745
24771
  onMouseEnter: rn,
24746
24772
  onMouseLeave: on,
24747
24773
  children: [
@@ -25176,25 +25202,25 @@ function W4(e) {
25176
25202
  return "top";
25177
25203
  }
25178
25204
  }
25179
- function Yn(e, i) {
25205
+ function Kn(e, i) {
25180
25206
  return Math.min(Math.max(e, fn), Math.max(fn, i - fn));
25181
25207
  }
25182
25208
  function e8(e, i, o) {
25183
25209
  const { edge: t, align: n, offsetPx: s = 0 } = e;
25184
25210
  if (t === "top" || t === "bottom") {
25185
25211
  let u = fn + s;
25186
- return n === "center" ? u = i / 2 + s : n === "end" && (u = i - fn + s), { edge: t, offsetPx: Yn(u, i) };
25212
+ return n === "center" ? u = i / 2 + s : n === "end" && (u = i - fn + s), { edge: t, offsetPx: Kn(u, i) };
25187
25213
  }
25188
25214
  let a = fn + s;
25189
- return n === "center" ? a = o / 2 + s : n === "end" && (a = o - fn + s), { edge: t, offsetPx: Yn(a, o) };
25215
+ return n === "center" ? a = o / 2 + s : n === "end" && (a = o - fn + s), { edge: t, offsetPx: Kn(a, o) };
25190
25216
  }
25191
25217
  function t8(e, i, o, t, n, s) {
25192
25218
  const a = W4(e), u = i.left + i.width / 2, l = i.top + i.height / 2;
25193
25219
  if (a === "top" || a === "bottom") {
25194
- const d = Yn(u - o, n);
25220
+ const d = Kn(u - o, n);
25195
25221
  return { edge: a, offsetPx: d };
25196
25222
  }
25197
- const f = Yn(l - t, s);
25223
+ const f = Kn(l - t, s);
25198
25224
  return { edge: a, offsetPx: f };
25199
25225
  }
25200
25226
  function n8(e, i, o, t, n, s, a, u) {
@@ -25436,7 +25462,7 @@ const Ho = ({
25436
25462
  });
25437
25463
  }
25438
25464
  }, u8);
25439
- }, [E, $]), de = V(() => {
25465
+ }, [E, $]), pe = V(() => {
25440
25466
  !D || u || (T.current = !0, E(), R(), O.current = window.setTimeout(() => {
25441
25467
  O.current = null, T.current && !u && K();
25442
25468
  }, k));
@@ -25482,8 +25508,8 @@ const Ho = ({
25482
25508
  };
25483
25509
  te.addEventListener("click", J);
25484
25510
  const ae = [() => te.removeEventListener("click", J)];
25485
- D && (te.addEventListener("mouseenter", de), te.addEventListener("mouseleave", F), ae.push(
25486
- () => te.removeEventListener("mouseenter", de),
25511
+ D && (te.addEventListener("mouseenter", pe), te.addEventListener("mouseleave", F), ae.push(
25512
+ () => te.removeEventListener("mouseenter", pe),
25487
25513
  () => te.removeEventListener("mouseleave", F)
25488
25514
  )), le = () => ae.forEach((ge) => ge());
25489
25515
  }, U = window.requestAnimationFrame(() => {
@@ -25497,9 +25523,9 @@ const Ho = ({
25497
25523
  u,
25498
25524
  D,
25499
25525
  me,
25500
- de,
25526
+ pe,
25501
25527
  F
25502
- ]), ri(() => {
25528
+ ]), On(() => {
25503
25529
  if (!m)
25504
25530
  return;
25505
25531
  let G = !1, le = 0;
@@ -25558,7 +25584,7 @@ const Ho = ({
25558
25584
  togglePopup: me,
25559
25585
  closePopup: $,
25560
25586
  openPopup: K,
25561
- openOnHoverTriggerProps: D ? { onMouseEnter: de, onMouseLeave: F } : void 0,
25587
+ openOnHoverTriggerProps: D ? { onMouseEnter: pe, onMouseLeave: F } : void 0,
25562
25588
  openOnHoverPopupProps: D ? { onMouseEnter: ne, onMouseLeave: ie } : void 0
25563
25589
  };
25564
25590
  }, d8 = 0.7, p8 = 3, f8 = 3, h8 = `translate(14, 0) scale(${d8}, 1) translate(-14, 0)`, m8 = "M5.2 11.65 C4.35 11.65 3.85 10.95 4.25 10.15 C6.15 6.2 9.85 3.35 12.85 2.15 Q14 1.25 15.15 2.15 C18.15 3.35 21.85 6.2 23.75 10.15 C24.15 10.95 23.65 11.65 22.8 11.65 Q14 10.55 5.2 11.65 Z", g8 = "M4.25 10.15 C6.15 6.2 9.85 3.35 12.85 2.15 Q14 1.25 15.15 2.15 C18.15 3.35 21.85 6.2 23.75 10.15", C8 = 2.3, b8 = 7;
@@ -25671,7 +25697,7 @@ function v8({
25671
25697
  footerSecondaryButton: p,
25672
25698
  footerButtons: m,
25673
25699
  children: [
25674
- o ? /* @__PURE__ */ r(Tn, { showCloseButton: n, children: s || a ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-flex-1 ui-flex-col ui-gap-2", children: [
25700
+ o ? /* @__PURE__ */ r(En, { showCloseButton: n, children: s || a ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-flex-1 ui-flex-col ui-gap-2", children: [
25675
25701
  s ? /* @__PURE__ */ r("span", { className: "ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children: s }) : null,
25676
25702
  a ? /* @__PURE__ */ r("p", { className: "ui-line-clamp-2 ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-text-tertiary", children: a }) : null
25677
25703
  ] }) : null }) : null,
@@ -25723,7 +25749,7 @@ const Ft = At(
25723
25749
  popoverStructured: $ = !1,
25724
25750
  popoverTitle: K,
25725
25751
  popoverDescription: ee,
25726
- popoverShowHeader: de = !0,
25752
+ popoverShowHeader: pe = !0,
25727
25753
  popoverShowCloseButton: F = !0,
25728
25754
  popoverIconConfig: ne,
25729
25755
  popoverBadge: ie,
@@ -25743,19 +25769,19 @@ const Ft = At(
25743
25769
  }, Ce) => {
25744
25770
  const se = !!ge, {
25745
25771
  isOpen: be,
25746
- popupStyle: Ie,
25772
+ popupStyle: Ne,
25747
25773
  isPositioned: he,
25748
- triggerRef: Ve,
25749
- popupRef: pe,
25750
- contentRef: Ne,
25751
- arrowPlacement: Ue,
25752
- containerRef: ze,
25774
+ triggerRef: Te,
25775
+ popupRef: de,
25776
+ contentRef: Ie,
25777
+ arrowPlacement: Fe,
25778
+ containerRef: Ae,
25753
25779
  popupUniqueId: Re,
25754
- togglePopup: Ze,
25755
- closePopup: Ae,
25756
- openPopup: Ge,
25757
- openOnHoverTriggerProps: kt,
25758
- openOnHoverPopupProps: ot
25780
+ togglePopup: _e,
25781
+ closePopup: Be,
25782
+ openPopup: ot,
25783
+ openOnHoverTriggerProps: vt,
25784
+ openOnHoverPopupProps: Je
25759
25785
  } = Ho({
25760
25786
  position: o,
25761
25787
  offset: t,
@@ -25774,18 +25800,18 @@ const Ft = At(
25774
25800
  Ce,
25775
25801
  () => ({
25776
25802
  open: () => {
25777
- d || Ge();
25803
+ d || ot();
25778
25804
  },
25779
25805
  close: () => {
25780
- Ae();
25806
+ Be();
25781
25807
  },
25782
25808
  isOpen: () => be
25783
25809
  }),
25784
- [d, Ge, Ae, be]
25810
+ [d, ot, Be, be]
25785
25811
  );
25786
- const Fe = (je) => {
25787
- B && B(je), !je.defaultPrevented && !d && Ze();
25788
- }, Je = () => {
25812
+ const Ve = (je) => {
25813
+ B && B(je), !je.defaultPrevented && !d && _e();
25814
+ }, Ue = () => {
25789
25815
  if (!be)
25790
25816
  return null;
25791
25817
  const je = {
@@ -25795,36 +25821,36 @@ const Ft = At(
25795
25821
  visibility: he ? "visible" : "hidden",
25796
25822
  opacity: he ? 1 : 0,
25797
25823
  transition: "opacity 0.1s ease-out",
25798
- ...Ie
25799
- }, _e = j(
25824
+ ...Ne
25825
+ }, Ge = j(
25800
25826
  "ui-overflow-hidden ui-rounded-surface-card ui-border ui-border-default ui-bg-fill ui-shadow-lg",
25801
25827
  u
25802
- ), Pe = /* @__PURE__ */ b(
25828
+ ), ze = /* @__PURE__ */ b(
25803
25829
  "div",
25804
25830
  {
25805
- ref: pe,
25831
+ ref: de,
25806
25832
  id: Re,
25807
25833
  "data-popup-id": Re,
25808
25834
  style: je,
25809
25835
  className: "ui-relative",
25810
- ...ot,
25836
+ ...Je,
25811
25837
  children: [
25812
- Ue ? /* @__PURE__ */ r(Do, { placement: Ue }) : null,
25838
+ Fe ? /* @__PURE__ */ r(Do, { placement: Fe }) : null,
25813
25839
  /* @__PURE__ */ r(
25814
25840
  "div",
25815
25841
  {
25816
- ref: Ne,
25817
- className: _e,
25842
+ ref: Ie,
25843
+ className: Ge,
25818
25844
  onClick: (Xe) => {
25819
- E && Xe.stopPropagation(), H && Ae();
25845
+ E && Xe.stopPropagation(), H && Be();
25820
25846
  },
25821
25847
  ..._,
25822
25848
  children: $ ? /* @__PURE__ */ r(
25823
25849
  v8,
25824
25850
  {
25825
25851
  isOpen: be,
25826
- onClose: Ae,
25827
- showHeader: de,
25852
+ onClose: Be,
25853
+ showHeader: pe,
25828
25854
  showFooter: G,
25829
25855
  showCloseButton: F,
25830
25856
  title: K,
@@ -25847,8 +25873,8 @@ const Ft = At(
25847
25873
  ]
25848
25874
  }
25849
25875
  );
25850
- return O ? Pe : Rt(Pe, document.body);
25851
- }, wt = y && typeof y == "object" && !ye.isValidElement(y) && "icon" in y && ("color" in y || "size" in y || "show" in y || "onClick" in y || "className" in y || "strokeWidth" in y), Ke = wt ? y : void 0, tt = wt ? void 0 : ro({
25876
+ return O ? ze : Rt(ze, document.body);
25877
+ }, bt = y && typeof y == "object" && !ye.isValidElement(y) && "icon" in y && ("color" in y || "size" in y || "show" in y || "onClick" in y || "className" in y || "strokeWidth" in y), Ke = bt ? y : void 0, tt = bt ? void 0 : ro({
25852
25878
  icon: y,
25853
25879
  iconDuotonePrimary: void 0,
25854
25880
  iconDuotoneSecondary: void 0,
@@ -25858,7 +25884,7 @@ const Ft = At(
25858
25884
  classNameIcon: void 0,
25859
25885
  strokeWidth: void 0,
25860
25886
  onClickIcon: void 0
25861
- }), qe = Ke || tt || (y ? { icon: y } : void 0), vt = I && typeof I == "object" && ("label" in I || "position" in I || "alignment" in I || "delay" in I || "absolute" in I || "className" in I), st = vt ? I : void 0, Bt = vt ? void 0 : oo({
25887
+ }), qe = Ke || tt || (y ? { icon: y } : void 0), Lt = I && typeof I == "object" && ("label" in I || "position" in I || "alignment" in I || "delay" in I || "absolute" in I || "className" in I), st = Lt ? I : void 0, Bt = Lt ? void 0 : oo({
25862
25888
  tooltip: I,
25863
25889
  tooltipPosition: S,
25864
25890
  tooltipAlignment: N,
@@ -25869,22 +25895,22 @@ const Ft = At(
25869
25895
  return /* @__PURE__ */ b(
25870
25896
  "div",
25871
25897
  {
25872
- ref: ze,
25898
+ ref: Ae,
25873
25899
  className: j("ui-imj ui-relative ui-h-max", ve && "ui-w-full"),
25874
25900
  "data-popup-container-id": Re,
25875
25901
  children: [
25876
25902
  se ? null : /* @__PURE__ */ r(
25877
25903
  "div",
25878
25904
  {
25879
- ref: Ve,
25905
+ ref: Te,
25880
25906
  className: j(ve ? "ui-w-full" : "ui-w-fit", z),
25881
- ...kt,
25907
+ ...vt,
25882
25908
  children: /* @__PURE__ */ r(
25883
25909
  ke,
25884
25910
  {
25885
25911
  color: h,
25886
25912
  className: T,
25887
- onClick: Fe,
25913
+ onClick: Ve,
25888
25914
  disabled: d,
25889
25915
  theme: c,
25890
25916
  size: p,
@@ -25914,7 +25940,7 @@ const Ft = At(
25914
25940
  )
25915
25941
  }
25916
25942
  ),
25917
- Je()
25943
+ Ue()
25918
25944
  ]
25919
25945
  }
25920
25946
  );
@@ -27610,7 +27636,7 @@ function k8({
27610
27636
  return /* @__PURE__ */ b(
27611
27637
  "div",
27612
27638
  {
27613
- className: "ui-flex ui-flex-col ui-gap-4 ui-px-12 ui-py-8",
27639
+ className: "ui-flex ui-flex-col ui-gap-8",
27614
27640
  role: "group",
27615
27641
  "aria-label": "Etiquetas",
27616
27642
  children: [
@@ -27678,35 +27704,36 @@ function j8({
27678
27704
  selectAllLabel: n,
27679
27705
  tagsShowSelectAll: s = !1,
27680
27706
  footer: a,
27681
- maxHeightClass: u = "ui-h-[212px]",
27707
+ maxHeightClass: u = "ui-h-[215px]",
27682
27708
  onDismiss: l
27683
27709
  }) {
27684
- const f = !!(i && i.length > 0 && t), d = e.length > 0;
27710
+ const f = !!(i && i.length > 0 && t), d = e.length > 0, c = f && !!a;
27685
27711
  return /* @__PURE__ */ b(
27686
27712
  "div",
27687
27713
  {
27688
27714
  className: j(
27689
- "ui-flex ui-w-52 ui-flex-col-reverse ui-gap-0 ui-overflow-hidden",
27715
+ "ui-flex ui-w-52 ui-flex-col-reverse ui-gap-8 ui-overflow-hidden ui-p-8",
27690
27716
  u,
27691
27717
  Hr
27692
27718
  ),
27693
27719
  onClick: zt,
27694
27720
  children: [
27695
- a ? /* @__PURE__ */ r("div", { className: "ui-shrink-0 ui-border-subtle ui-border-b ui-px-12 ui-pt-8 ui-pb-8", children: /* @__PURE__ */ r(
27696
- Te,
27721
+ a ? /* @__PURE__ */ r("div", { className: "ui-shrink-0", children: /* @__PURE__ */ r(
27722
+ Ee,
27697
27723
  {
27698
27724
  color: "secondary",
27699
27725
  theme: "solid",
27700
27726
  size: "xxs",
27701
27727
  fullWidth: !0,
27702
- onClick: (c) => {
27703
- var h;
27704
- zt(c), (h = a.onClick) == null || h.call(a, { label: a.label }), l == null || l();
27728
+ onClick: (h) => {
27729
+ var p;
27730
+ zt(h), (p = a.onClick) == null || p.call(a, { label: a.label }), l == null || l();
27705
27731
  },
27706
27732
  children: a.label
27707
27733
  }
27708
27734
  ) }) : null,
27709
- f && i && t ? /* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-flex-1 ui-overflow-y-auto ui-border-subtle ui-border-b", children: /* @__PURE__ */ r(
27735
+ c ? /* @__PURE__ */ r("div", { className: "ui-shrink-0 ui-py-4", "aria-hidden": !0, children: /* @__PURE__ */ r("div", { className: "ui-border-subtle ui-border-b" }) }) : null,
27736
+ f && i && t ? /* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-flex-1 ui-overflow-y-auto", children: /* @__PURE__ */ r(
27710
27737
  k8,
27711
27738
  {
27712
27739
  tags: i,
@@ -27716,7 +27743,7 @@ function j8({
27716
27743
  showSelectAll: s
27717
27744
  }
27718
27745
  ) }) : null,
27719
- d ? /* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-flex-1 ui-overflow-y-auto", children: /* @__PURE__ */ r(To, { padding: "sm", children: zo(e, l) }) }) : null
27746
+ d ? /* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-flex-1 ui-overflow-y-auto", children: /* @__PURE__ */ r(To, { padding: "none", children: zo(e, l) }) }) : null
27720
27747
  ]
27721
27748
  }
27722
27749
  );
@@ -27739,7 +27766,7 @@ function I8({
27739
27766
  className: o
27740
27767
  }) {
27741
27768
  const t = q(null), n = q(null), s = q(null), [a, u] = A(() => e.length), l = e.length;
27742
- if (ri(() => {
27769
+ if (On(() => {
27743
27770
  if (l === 0) {
27744
27771
  u(0);
27745
27772
  return;
@@ -27834,7 +27861,7 @@ function I8({
27834
27861
  },
27835
27862
  `${p}-${m}`
27836
27863
  )),
27837
- f > 0 ? /* @__PURE__ */ b($e, { children: [
27864
+ f > 0 ? /* @__PURE__ */ b(Ze, { children: [
27838
27865
  /* @__PURE__ */ r(
27839
27866
  "button",
27840
27867
  {
@@ -27897,18 +27924,22 @@ function O8(e) {
27897
27924
  const i = window.getComputedStyle(e).columnGap || window.getComputedStyle(e).gap, o = parseFloat(i);
27898
27925
  return Number.isFinite(o) ? o : 8;
27899
27926
  }
27900
- const Kn = {
27927
+ const Xn = {
27901
27928
  add: "Agregar",
27902
27929
  added: "Agregado",
27903
27930
  remove: "Quitar"
27904
27931
  };
27905
- function c1({ labelText: e }) {
27906
- return /* @__PURE__ */ b("span", { className: "ui-flex ui-w-full ui-min-w-0 ui-items-center ui-justify-center ui-gap-8", children: [
27907
- /* @__PURE__ */ b("span", { className: "ui-relative ui-flex ui-h-16 ui-w-16 ui-shrink-0 ui-items-center ui-justify-center", children: [
27932
+ function c1({
27933
+ labelText: e,
27934
+ showLeadingIcon: i = !0
27935
+ }) {
27936
+ const o = "ui-block ui-w-max ui-max-w-full ui-whitespace-nowrap ui-text-center ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none";
27937
+ return /* @__PURE__ */ b("span", { className: "ui-mx-auto ui-inline-flex ui-max-w-full ui-items-center ui-justify-center ui-gap-8", children: [
27938
+ i ? /* @__PURE__ */ b("span", { className: "ui-relative ui-flex ui-h-16 ui-w-16 ui-shrink-0 ui-items-center ui-justify-center", children: [
27908
27939
  /* @__PURE__ */ r(
27909
27940
  Le,
27910
27941
  {
27911
- name: _n,
27942
+ name: Un,
27912
27943
  size: "sm",
27913
27944
  color: "current",
27914
27945
  className: "ui-transition-opacity group-hover:ui-opacity-0",
@@ -27918,19 +27949,19 @@ function c1({ labelText: e }) {
27918
27949
  /* @__PURE__ */ r(
27919
27950
  "span",
27920
27951
  {
27921
- className: "ui-pointer-events-none ui-absolute ui-inset-0 ui-flex ui-items-center ui-justify-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100",
27952
+ className: "ui-pointer-events-none ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100",
27922
27953
  "aria-hidden": !0,
27923
- children: /* @__PURE__ */ r(Le, { name: xt, size: "sm", color: "current" })
27954
+ children: /* @__PURE__ */ r(Le, { name: Mt, size: "sm", color: "current" })
27924
27955
  }
27925
27956
  )
27926
- ] }),
27927
- /* @__PURE__ */ b("span", { className: "ui-relative ui-inline-block ui-min-w-0 ui-shrink", children: [
27928
- /* @__PURE__ */ b("span", { className: "ui-invisible ui-inline-grid ui-grid-cols-1", children: [
27957
+ ] }) : null,
27958
+ /* @__PURE__ */ b("span", { className: "ui-relative ui-inline-grid ui-shrink-0", children: [
27959
+ /* @__PURE__ */ b("span", { className: "ui-invisible ui-col-start-1 ui-row-start-1 ui-inline-grid ui-grid-cols-1", children: [
27929
27960
  /* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: e }),
27930
- /* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: Kn.remove })
27961
+ /* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: Xn.remove })
27931
27962
  ] }),
27932
- /* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-flex ui-items-center ui-justify-center ui-opacity-100 ui-transition-opacity group-hover:ui-opacity-0", children: /* @__PURE__ */ r("span", { className: "ui-whitespace-nowrap ui-text-center ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: e }) }),
27933
- /* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-flex ui-items-center ui-justify-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100", children: /* @__PURE__ */ r("span", { className: "ui-whitespace-nowrap ui-text-center ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: Kn.remove }) })
27963
+ /* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-100 ui-transition-opacity group-hover:ui-opacity-0", children: /* @__PURE__ */ r("span", { className: o, children: e }) }),
27964
+ /* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100", children: /* @__PURE__ */ r("span", { className: o, children: Xn.remove }) })
27934
27965
  ] })
27935
27966
  ] });
27936
27967
  }
@@ -27972,21 +28003,21 @@ const Ro = At(
27972
28003
  }, E) {
27973
28004
  const B = q(null), Z = q(null), [$, K] = A(() => [
27974
28005
  ...v
27975
- ]), ee = !!(L && g.length > 0), de = C ?? $, F = de.length > 0, ne = oe(
28006
+ ]), ee = !!(L && g.length > 0), pe = C ?? $, F = pe.length > 0, ne = oe(
27976
28007
  () => ({ family: "catalog", title: p, primaryVariant: D }),
27977
28008
  [p, D]
27978
28009
  ), ie = g.join("\0");
27979
28010
  Y(() => {
27980
- C === void 0 && K((pe) => pe.filter((Ne) => g.includes(Ne)));
28011
+ C === void 0 && K((de) => de.filter((Ie) => g.includes(Ie)));
27981
28012
  }, [ie, C]);
27982
- const me = (pe) => {
27983
- C === void 0 && K(pe), L == null || L(pe, ne);
27984
- }, fe = k ?? Kn[D], X = ee && g.length > 0 ? F ? D === "add" ? Vi : D === "added" ? _n : xt : Vi : D === "add" ? Vi : D === "added" ? _n : xt, G = ee && g.length > 0 ? F ? `${fe} ${de.length}/${g.length}` : k ?? Kn.add : fe, le = P ?? (ee ? { label: "Cerrar", onClick: () => {
27985
- } } : void 0), we = !!(T != null && T.length), U = I ?? x, te = !!U, J = !te && (!!(z != null && z.length) || ee), ae = ee && g.length > 0 && F && D === "added", ge = ae ? /* @__PURE__ */ r(c1, { labelText: G }) : G, ve = "ui-w-[250px] ui-min-w-[250px] ui-max-w-[250px]", _ = f && f.length > 0 ? f : d ? Y4 : [], Ce = (pe) => {
27986
- s && (pe.stopPropagation(), s(ne));
27987
- }, se = (pe) => {
27988
- s && (pe.key === "Enter" || pe.key === " ") && (pe.preventDefault(), s(ne));
27989
- }, be = !!(c != null && c.trim()) || !!(h != null && h.trim()), Ie = !!(m != null && m.trim()), he = we ? /* @__PURE__ */ r(
28013
+ const me = (de) => {
28014
+ C === void 0 && K(de), L == null || L(de, ne);
28015
+ }, fe = k ?? Xn[D], X = ee && g.length > 0 ? F ? D === "add" ? Vi : D === "added" ? Un : Mt : Vi : D === "add" ? Vi : D === "added" ? Un : Mt, G = ee && g.length > 0 ? F ? `${fe} ${pe.length}/${g.length}` : k ?? Xn.add : fe, le = P ?? (ee ? { label: "Cerrar", onClick: () => {
28016
+ } } : void 0), we = !!(T != null && T.length), U = I ?? x, te = !!U, J = !te && (!!(z != null && z.length) || ee), ae = ee && g.length > 0 && F && D === "added", ge = ae ? /* @__PURE__ */ r(c1, { labelText: G }) : G, ve = "ui-w-[250px] ui-min-w-[250px] ui-max-w-[250px]", _ = f && f.length > 0 ? f : d ? Y4 : [], Ce = (de) => {
28017
+ s && (de.stopPropagation(), s(ne));
28018
+ }, se = (de) => {
28019
+ s && (de.key === "Enter" || de.key === " ") && (de.preventDefault(), s(ne));
28020
+ }, be = !!(c != null && c.trim()) || !!(h != null && h.trim()), Ne = !!(m != null && m.trim()), he = we ? /* @__PURE__ */ r(
27990
28021
  Ft,
27991
28022
  {
27992
28023
  ref: B,
@@ -28004,14 +28035,14 @@ const Ro = At(
28004
28035
  {
28005
28036
  items: T,
28006
28037
  onDismiss: () => {
28007
- var pe;
28008
- return (pe = B.current) == null ? void 0 : pe.close();
28038
+ var de;
28039
+ return (de = B.current) == null ? void 0 : de.close();
28009
28040
  }
28010
28041
  }
28011
28042
  )
28012
28043
  }
28013
28044
  ) : /* @__PURE__ */ r(
28014
- Te,
28045
+ Ee,
28015
28046
  {
28016
28047
  color: "secondary",
28017
28048
  size: "xs",
@@ -28020,12 +28051,12 @@ const Ro = At(
28020
28051
  icon: gn,
28021
28052
  className: j(M ? "ui-bg-fill-secondary-hover" : void 0),
28022
28053
  "aria-label": "Opciones",
28023
- onClick: (pe) => {
28024
- zt(pe), H == null || H(ne);
28054
+ onClick: (de) => {
28055
+ zt(de), H == null || H(ne);
28025
28056
  }
28026
28057
  }
28027
- ), Ve = te ? /* @__PURE__ */ r(
28028
- Te,
28058
+ ), Te = te ? /* @__PURE__ */ r(
28059
+ Ee,
28029
28060
  {
28030
28061
  link: U,
28031
28062
  target: N,
@@ -28065,21 +28096,21 @@ const Ro = At(
28065
28096
  {
28066
28097
  items: z ?? [],
28067
28098
  tags: ee ? g : void 0,
28068
- selectedTags: de,
28099
+ selectedTags: pe,
28069
28100
  onTagsChange: ee ? me : void 0,
28070
28101
  selectAllLabel: w,
28071
28102
  tagsShowSelectAll: y,
28072
28103
  footer: le,
28073
28104
  maxHeightClass: R,
28074
28105
  onDismiss: () => {
28075
- var pe;
28076
- return (pe = Z.current) == null ? void 0 : pe.close();
28106
+ var de;
28107
+ return (de = Z.current) == null ? void 0 : de.close();
28077
28108
  }
28078
28109
  }
28079
28110
  )
28080
28111
  }
28081
28112
  ) : D === "added" ? /* @__PURE__ */ r(
28082
- Te,
28113
+ Ee,
28083
28114
  {
28084
28115
  color: "secondary",
28085
28116
  theme: "solid",
@@ -28088,13 +28119,13 @@ const Ro = At(
28088
28119
  fullWidth: !0,
28089
28120
  textAlign: "center",
28090
28121
  className: "ui-group ui-justify-center",
28091
- onClick: (pe) => {
28092
- zt(pe), O == null || O(ne);
28122
+ onClick: (de) => {
28123
+ zt(de), O == null || O(ne);
28093
28124
  },
28094
28125
  children: /* @__PURE__ */ r(c1, { labelText: fe })
28095
28126
  }
28096
28127
  ) : /* @__PURE__ */ r(
28097
- Te,
28128
+ Ee,
28098
28129
  {
28099
28130
  color: D === "add" ? "primary" : "secondary",
28100
28131
  theme: "solid",
@@ -28104,8 +28135,8 @@ const Ro = At(
28104
28135
  fullWidth: !0,
28105
28136
  textAlign: "center",
28106
28137
  className: "ui-justify-center",
28107
- onClick: (pe) => {
28108
- zt(pe), O == null || O(ne);
28138
+ onClick: (de) => {
28139
+ zt(de), O == null || O(ne);
28109
28140
  },
28110
28141
  children: fe
28111
28142
  }
@@ -28159,19 +28190,19 @@ const Ro = At(
28159
28190
  backgroundColor: "white"
28160
28191
  }
28161
28192
  ) }) : null,
28162
- _.length > 0 ? /* @__PURE__ */ r("div", { className: "ui-pointer-events-none ui-absolute ui-right-8 ui-top-8 ui-z-10 ui-flex ui-items-start ui-gap-4", children: _.map((pe, Ne) => {
28163
- const { id: Ue, tooltip: ze, tooltipProps: Re, ...Ze } = pe, Ae = Ue ?? `media-indicator-${Ne}`, Ge = /* @__PURE__ */ r("span", { className: "ui-pointer-events-auto ui-inline-flex ui-shrink-0", children: /* @__PURE__ */ r(Le, { ...Ze, size: "xs", padding: "xs" }) });
28164
- return ze != null && String(ze).length > 0 ? /* @__PURE__ */ r(
28193
+ _.length > 0 ? /* @__PURE__ */ r("div", { className: "ui-pointer-events-none ui-absolute ui-right-8 ui-top-8 ui-z-10 ui-flex ui-items-start ui-gap-4", children: _.map((de, Ie) => {
28194
+ const { id: Fe, tooltip: Ae, tooltipProps: Re, ..._e } = de, Be = Fe ?? `media-indicator-${Ie}`, ot = /* @__PURE__ */ r("span", { className: "ui-pointer-events-auto ui-inline-flex ui-shrink-0", children: /* @__PURE__ */ r(Le, { ..._e, size: "xs", padding: "xs" }) });
28195
+ return Ae != null && String(Ae).length > 0 ? /* @__PURE__ */ r(
28165
28196
  It,
28166
28197
  {
28167
- label: ze,
28198
+ label: Ae,
28168
28199
  position: "top",
28169
28200
  preserveLayout: !0,
28170
28201
  ...Re,
28171
- children: Ge
28202
+ children: ot
28172
28203
  },
28173
- Ae
28174
- ) : /* @__PURE__ */ r(is, { children: Ge }, Ae);
28204
+ Be
28205
+ ) : /* @__PURE__ */ r(is, { children: ot }, Be);
28175
28206
  }) }) : null
28176
28207
  ] }) : null,
28177
28208
  /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-4 ui-px-16", children: [
@@ -28184,7 +28215,7 @@ const Ro = At(
28184
28215
  ),
28185
28216
  children: [
28186
28217
  c != null && c.trim() ? /* @__PURE__ */ r("div", { className: "ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
28187
- yt,
28218
+ xt,
28188
28219
  {
28189
28220
  title: c,
28190
28221
  position: "top",
@@ -28198,7 +28229,7 @@ const Ro = At(
28198
28229
  h != null && h.trim() ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-shrink-0 ui-items-center ui-gap-4", children: [
28199
28230
  /* @__PURE__ */ r(Le, { name: z1, size: "xs", color: "yellow" }),
28200
28231
  /* @__PURE__ */ r(
28201
- yt,
28232
+ xt,
28202
28233
  {
28203
28234
  title: h.trim(),
28204
28235
  position: "top",
@@ -28215,7 +28246,7 @@ const Ro = At(
28215
28246
  }
28216
28247
  ) : null,
28217
28248
  /* @__PURE__ */ r("div", { className: "ui-w-full ui-min-w-0", children: /* @__PURE__ */ r(
28218
- yt,
28249
+ xt,
28219
28250
  {
28220
28251
  title: p,
28221
28252
  position: "top",
@@ -28226,7 +28257,7 @@ const Ro = At(
28226
28257
  children: p
28227
28258
  }
28228
28259
  ) }),
28229
- Ie ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-items-center ui-gap-4", children: [
28260
+ Ne ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-items-center ui-gap-4", children: [
28230
28261
  /* @__PURE__ */ r(
28231
28262
  "span",
28232
28263
  {
@@ -28238,7 +28269,7 @@ const Ro = At(
28238
28269
  }
28239
28270
  ),
28240
28271
  /* @__PURE__ */ r("div", { className: "ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
28241
- yt,
28272
+ xt,
28242
28273
  {
28243
28274
  title: m,
28244
28275
  position: "top",
@@ -28254,7 +28285,7 @@ const Ro = At(
28254
28285
  ] }),
28255
28286
  /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-items-center ui-gap-12 ui-px-16", children: [
28256
28287
  he,
28257
- /* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-flex-1", children: Ve })
28288
+ /* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-flex-1", children: Te })
28258
28289
  ] })
28259
28290
  ]
28260
28291
  }
@@ -28315,7 +28346,7 @@ const Bo = At(
28315
28346
  )
28316
28347
  }
28317
28348
  ) : /* @__PURE__ */ r(
28318
- Te,
28349
+ Ee,
28319
28350
  {
28320
28351
  color: "secondary",
28321
28352
  size: "xs",
@@ -28361,7 +28392,7 @@ const Bo = At(
28361
28392
  S ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-items-center ui-gap-4", children: [
28362
28393
  /* @__PURE__ */ r(Le, { name: z1, size: "xs", color: "yellow" }),
28363
28394
  /* @__PURE__ */ r(
28364
- yt,
28395
+ xt,
28365
28396
  {
28366
28397
  title: (a ?? "").trim(),
28367
28398
  position: "top",
@@ -28376,7 +28407,7 @@ const Bo = At(
28376
28407
  }
28377
28408
  ) : null,
28378
28409
  /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-col ui-items-center ui-gap-12", children: [
28379
- /* @__PURE__ */ r(Mt, { type: "letter", text: l, theme: "solid", color: "blue", size: "md" }),
28410
+ /* @__PURE__ */ r(St, { type: "letter", text: l, theme: "solid", color: "blue", size: "md" }),
28380
28411
  /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-col ui-items-center ui-text-center", children: [
28381
28412
  /* @__PURE__ */ r("p", { className: "ui-w-full ui-truncate ui-text-body-sm-regular ui-font-body-sm-regular ui-leading-body-sm-regular ui-tracking-body-sm ui-text-primary", children: f }),
28382
28413
  /* @__PURE__ */ r("p", { className: "ui-w-full ui-truncate ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-secondary", children: d })
@@ -28402,7 +28433,7 @@ const Bo = At(
28402
28433
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-10 ui-px-16", children: [
28403
28434
  T,
28404
28435
  /* @__PURE__ */ r(
28405
- Te,
28436
+ Ee,
28406
28437
  {
28407
28438
  color: "primary",
28408
28439
  theme: "solid",
@@ -28526,7 +28557,7 @@ const V8 = ({
28526
28557
  className: "ui-relative ui-z-10 ui-h-full ui-w-11 ui-min-w-11 ui-bg-fill",
28527
28558
  style: { zIndex: 10 },
28528
28559
  children: /* @__PURE__ */ b("div", { className: "no-scrollbar ui-mb-auto ui-flex ui-h-[calc(100%)] ui-flex-col ui-items-center ui-justify-between ui-gap-8 ui-overflow-y-auto ui-py-8", children: [
28529
- n && /* @__PURE__ */ r($e, { children: a ? /* @__PURE__ */ r(
28560
+ n && /* @__PURE__ */ r(Ze, { children: a ? /* @__PURE__ */ r(
28530
28561
  Ft,
28531
28562
  {
28532
28563
  position: "left",
@@ -28547,7 +28578,7 @@ const V8 = ({
28547
28578
  position: d,
28548
28579
  disabled: !f,
28549
28580
  children: /* @__PURE__ */ r(
28550
- Te,
28581
+ Ee,
28551
28582
  {
28552
28583
  color: "secondary",
28553
28584
  size: "xs",
@@ -28570,7 +28601,7 @@ const V8 = ({
28570
28601
  position: x,
28571
28602
  disabled: !f || !w.tooltip,
28572
28603
  children: /* @__PURE__ */ r(
28573
- Te,
28604
+ Ee,
28574
28605
  {
28575
28606
  color: y ? "primary" : "secondary",
28576
28607
  size: "xs",
@@ -28723,7 +28754,7 @@ const E8 = (e) => {
28723
28754
  },
28724
28755
  // eslint-disable-next-line react-hooks/exhaustive-deps -- props.onDateChange en deps; evitar recrear en cada cambio de props
28725
28756
  [i, g, e.onDateChange, s, z]
28726
- ), de = V(
28757
+ ), pe = V(
28727
28758
  (X, G = !1) => {
28728
28759
  var le;
28729
28760
  i === "range" && (a === !0 || G === !0 ? (m || l((we) => ({
@@ -28799,7 +28830,7 @@ const E8 = (e) => {
28799
28830
  setCurrentDate: Z,
28800
28831
  setViewMode: $,
28801
28832
  setSelectedDate: ee,
28802
- setSelectedRange: de,
28833
+ setSelectedRange: pe,
28803
28834
  setHoverDate: F,
28804
28835
  updatePortalPosition: fe,
28805
28836
  navigate: K,
@@ -29108,11 +29139,11 @@ const E8 = (e) => {
29108
29139
  "aria-label": `Día ${e}`,
29109
29140
  children: e
29110
29141
  }
29111
- ), Xn = ({
29142
+ ), Qn = ({
29112
29143
  direction: e,
29113
29144
  onClick: i,
29114
29145
  disabled: o = !1
29115
- }) => /* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(
29146
+ }) => /* @__PURE__ */ r(Ze, { children: /* @__PURE__ */ r(
29116
29147
  ke,
29117
29148
  {
29118
29149
  theme: "solid",
@@ -29193,8 +29224,8 @@ const E8 = (e) => {
29193
29224
  }
29194
29225
  ),
29195
29226
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-1", children: [
29196
- /* @__PURE__ */ r(Xn, { direction: "prev", onClick: () => o("prev") }),
29197
- /* @__PURE__ */ r(Xn, { direction: "next", onClick: () => o("next") })
29227
+ /* @__PURE__ */ r(Qn, { direction: "prev", onClick: () => o("prev") }),
29228
+ /* @__PURE__ */ r(Qn, { direction: "next", onClick: () => o("next") })
29198
29229
  ] })
29199
29230
  ] }) });
29200
29231
  }, Zo = ({
@@ -29414,7 +29445,7 @@ const E8 = (e) => {
29414
29445
  toggleViewMode: () => t(0),
29415
29446
  navigate: f
29416
29447
  }) }) : /* @__PURE__ */ r("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: /* @__PURE__ */ b("div", { className: "ui-relative ui-flex ui-w-full ui-items-center ui-justify-between", children: [
29417
- /* @__PURE__ */ r(Xn, { direction: "prev", onClick: () => o("prev") }),
29448
+ /* @__PURE__ */ r(Qn, { direction: "prev", onClick: () => o("prev") }),
29418
29449
  /* @__PURE__ */ r("div", { className: "ui-absolute ui-flex ui-w-full ui-flex-1 ui-items-center ui-justify-center ui-gap-2 ui-px-2 md:ui-px-0", children: e.map((c, h) => /* @__PURE__ */ r(
29419
29450
  "div",
29420
29451
  {
@@ -29438,7 +29469,7 @@ const E8 = (e) => {
29438
29469
  },
29439
29470
  h
29440
29471
  )) }),
29441
- /* @__PURE__ */ r(Xn, { direction: "next", onClick: () => o("next") })
29472
+ /* @__PURE__ */ r(Qn, { direction: "next", onClick: () => o("next") })
29442
29473
  ] }) });
29443
29474
  }, F8 = ({
29444
29475
  currentDate: e,
@@ -29778,7 +29809,7 @@ const E8 = (e) => {
29778
29809
  ie[F] = new Date(ne, E[F].getMonth(), 1), B(ie);
29779
29810
  const me = [...P];
29780
29811
  me[F] = "months", R(me), c == null || c(ne);
29781
- }, de = (F) => {
29812
+ }, pe = (F) => {
29782
29813
  const ne = [...E];
29783
29814
  ne.forEach((ie, me) => {
29784
29815
  const fe = new Date(ie);
@@ -29803,7 +29834,7 @@ const E8 = (e) => {
29803
29834
  {
29804
29835
  calendarDates: E,
29805
29836
  viewModes: P,
29806
- onNavigate: de,
29837
+ onNavigate: pe,
29807
29838
  onToggleViewMode: $,
29808
29839
  onGoToToday: h,
29809
29840
  monthNames: L,
@@ -29869,7 +29900,7 @@ const E8 = (e) => {
29869
29900
  }
29870
29901
  ) })
29871
29902
  );
29872
- }, Hn = (e) => {
29903
+ }, Dn = (e) => {
29873
29904
  const {
29874
29905
  mode: i = "single",
29875
29906
  selectedDate: o = null,
@@ -29947,13 +29978,13 @@ const E8 = (e) => {
29947
29978
  i === "single" ? !v && N.pendingDate !== null && (P.setSelectedDate(N.pendingDate, !0), n == null || n(N.pendingDate)) : i === "range" && !L && (N.pendingRange.start || N.pendingRange.end) && (P.setSelectedRange(N.pendingRange, !0), s == null || s(N.pendingRange)), P.closePicker();
29948
29979
  }, ee = () => {
29949
29980
  i === "single" && !v ? (P.setPendingDate(null), P.restoreOriginalDate()) : i === "range" && !L && (P.setPendingRange({ start: null, end: null }), P.restoreOriginalRange()), P.closePicker();
29950
- }, de = () => i === "single" ? E(O) : B(H);
29981
+ }, pe = () => i === "single" ? E(O) : B(H);
29951
29982
  return /* @__PURE__ */ b("div", { className: j("ui-imj", "relative", p), children: [
29952
29983
  /* @__PURE__ */ r(
29953
29984
  $8,
29954
29985
  {
29955
29986
  ref: T,
29956
- value: de(),
29987
+ value: pe(),
29957
29988
  placeholder: w,
29958
29989
  label: c,
29959
29990
  size: S,
@@ -30097,11 +30128,11 @@ const q8 = (e) => {
30097
30128
  currentTab: P,
30098
30129
  tabsOverHeader: R = !1
30099
30130
  }) => {
30100
- const { content: E, footer: B } = q8(n), Z = vo(), { isVisible: $, isAnimating: K } = ho(e), ee = q(null), [de, F] = A(T);
30131
+ const { content: E, footer: B } = q8(n), Z = vo(), { isVisible: $, isAnimating: K } = ho(e), ee = q(null), [pe, F] = A(T);
30101
30132
  Y(() => {
30102
30133
  T !== void 0 && F(T);
30103
30134
  }, [T]);
30104
- const ne = P ?? de, ie = (le) => {
30135
+ const ne = P ?? pe, ie = (le) => {
30105
30136
  P === void 0 && F(le), z && z(le);
30106
30137
  }, me = H && H.length > 0;
30107
30138
  mo(e), Sr(e, i, c), wo(e, ee, !h);
@@ -30164,7 +30195,7 @@ const q8 = (e) => {
30164
30195
  theme: "solid",
30165
30196
  color: "secondary",
30166
30197
  pill: "pill",
30167
- icon: xt,
30198
+ icon: Mt,
30168
30199
  size: "xs"
30169
30200
  }
30170
30201
  ) }),
@@ -30196,14 +30227,14 @@ const q8 = (e) => {
30196
30227
  children: E
30197
30228
  }
30198
30229
  ),
30199
- B ? /* @__PURE__ */ b($e, { children: [
30230
+ B ? /* @__PURE__ */ b(Ze, { children: [
30200
30231
  /* @__PURE__ */ r(Et.Separator, { padding: !1 }),
30201
30232
  B
30202
- ] }) : (y || M) && /* @__PURE__ */ b($e, { children: [
30233
+ ] }) : (y || M) && /* @__PURE__ */ b(Ze, { children: [
30203
30234
  /* @__PURE__ */ r(Et.Separator, { padding: !1 }),
30204
30235
  /* @__PURE__ */ b(Et.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-16 ui-p-16", children: [
30205
30236
  y && /* @__PURE__ */ r(
30206
- Te,
30237
+ Ee,
30207
30238
  {
30208
30239
  size: "xs",
30209
30240
  fullWidth: !0,
@@ -30216,7 +30247,7 @@ const q8 = (e) => {
30216
30247
  }
30217
30248
  ),
30218
30249
  M && /* @__PURE__ */ r(
30219
- Te,
30250
+ Ee,
30220
30251
  {
30221
30252
  size: "xs",
30222
30253
  fullWidth: !0,
@@ -30236,7 +30267,7 @@ const q8 = (e) => {
30236
30267
  ]
30237
30268
  }
30238
30269
  );
30239
- return Fn.createPortal(G, Z);
30270
+ return _n.createPortal(G, Z);
30240
30271
  };
30241
30272
  X8.Footer = Uo;
30242
30273
  const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
@@ -30291,7 +30322,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30291
30322
  Z((te) => te !== U ? U : te);
30292
30323
  }
30293
30324
  }, [e, $, c, P, R]);
30294
- const de = c ? o.filter((U) => {
30325
+ const pe = c ? o.filter((U) => {
30295
30326
  const te = U[n];
30296
30327
  return P(K).some((J) => E(J, te));
30297
30328
  }) : (() => {
@@ -30336,7 +30367,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30336
30367
  }, []), ie = V(() => {
30337
30368
  const U = ne();
30338
30369
  U && requestAnimationFrame(() => {
30339
- var Ue;
30370
+ var Fe;
30340
30371
  const te = U.getBoundingClientRect(), J = window.innerHeight;
30341
30372
  let ae = 0;
30342
30373
  T.current && (ae = T.current.offsetHeight), ae === 0 && (ae = Math.min(200, F.length * 40));
@@ -30347,27 +30378,27 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30347
30378
  if (!p)
30348
30379
  _ === "bottom" ? Ce = te.bottom + 4 : Ce = te.top - ae - 4, se = te.left;
30349
30380
  else {
30350
- const ze = (Ue = z.current) == null ? void 0 : Ue.getBoundingClientRect();
30351
- if (!ze) return;
30352
- const Re = te.top - ze.top, Ze = te.left - ze.left;
30353
- _ === "bottom" ? Ce = Re + te.height + 4 : Ce = Re - ae - 4, se = Ze;
30381
+ const Ae = (Fe = z.current) == null ? void 0 : Fe.getBoundingClientRect();
30382
+ if (!Ae) return;
30383
+ const Re = te.top - Ae.top, _e = te.left - Ae.left;
30384
+ _ === "bottom" ? Ce = Re + te.height + 4 : Ce = Re - ae - 4, se = _e;
30354
30385
  }
30355
- const Ie = m !== void 0 ? m : p ? 9999 : 1100, he = m !== void 0 ? 0 : parseInt(L.replace(/\D/g, "")) || 0, Ve = Ie + he % 100, Ne = {
30386
+ const Ne = m !== void 0 ? m : p ? 9999 : 1100, he = m !== void 0 ? 0 : parseInt(L.replace(/\D/g, "")) || 0, Te = Ne + he % 100, Ie = {
30356
30387
  position: p ? "absolute" : "fixed",
30357
30388
  top: `${Ce}px`,
30358
30389
  left: `${se}px`,
30359
30390
  width: `${be}px`,
30360
- zIndex: Ve
30391
+ zIndex: Te
30361
30392
  };
30362
- O(Ne);
30393
+ O(Ie);
30363
30394
  });
30364
30395
  }, [ne, F.length, L, p, m]), me = V(() => {
30365
- if (!T.current || !de.length)
30396
+ if (!T.current || !pe.length)
30366
30397
  return;
30367
30398
  const te = T.current.querySelector(".ui-overflow-y-auto");
30368
30399
  if (!te)
30369
30400
  return;
30370
- const J = de[0];
30401
+ const J = pe[0];
30371
30402
  if (!J) return;
30372
30403
  const ae = te.querySelector(
30373
30404
  `[data-option-value="${J[n]}"]`
@@ -30379,7 +30410,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30379
30410
  top: Math.max(0, Ce),
30380
30411
  behavior: "smooth"
30381
30412
  });
30382
- }, [de, n]), fe = (U) => {
30413
+ }, [pe, n]), fe = (U) => {
30383
30414
  U && U.stopPropagation(), !d && (w ? X() : (Q8(L), S(""), x(!1), ie(), setTimeout(() => {
30384
30415
  y(!0), Gi.add(L), setTimeout(() => {
30385
30416
  ie(), setTimeout(() => {
@@ -30451,7 +30482,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30451
30482
  isClosing: M,
30452
30483
  searchValue: I,
30453
30484
  selectedValue: K,
30454
- selectedOptions: de,
30485
+ selectedOptions: pe,
30455
30486
  filteredOptions: F,
30456
30487
  position: N,
30457
30488
  dropdownStyle: k,
@@ -30614,7 +30645,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30614
30645
  pill: $ = "sm",
30615
30646
  listVariant: K = "default",
30616
30647
  onToggleChange: ee,
30617
- filtersTitle: de,
30648
+ filtersTitle: pe,
30618
30649
  tooltipProps: F,
30619
30650
  loading: ne = !1,
30620
30651
  ...ie
@@ -30638,24 +30669,24 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30638
30669
  searchValue: Ce,
30639
30670
  selectedValue: se,
30640
30671
  selectedOptions: be,
30641
- filteredOptions: Ie,
30672
+ filteredOptions: Ne,
30642
30673
  dropdownStyle: he,
30643
- isControlled: Ve,
30674
+ isControlled: Te,
30644
30675
  // Referencias
30645
- inputRef: pe,
30646
- dropdownRef: Ne,
30647
- containerRef: Ue,
30648
- dropdownUniqueId: ze,
30676
+ inputRef: de,
30677
+ dropdownRef: Ie,
30678
+ containerRef: Fe,
30679
+ dropdownUniqueId: Ae,
30649
30680
  // Funciones
30650
30681
  toggleDropdown: Re,
30651
- closeDropdown: Ze,
30652
- handleOptionSelect: Ae,
30653
- handleSearchChange: Ge,
30654
- handleClear: kt,
30655
- calculatePosition: ot,
30656
- scrollToSelectedOption: Fe,
30657
- setValue: Je,
30658
- normalizeToArray: wt
30682
+ closeDropdown: _e,
30683
+ handleOptionSelect: Be,
30684
+ handleSearchChange: ot,
30685
+ handleClear: vt,
30686
+ calculatePosition: Je,
30687
+ scrollToSelectedOption: Ve,
30688
+ setValue: Ue,
30689
+ normalizeToArray: bt
30659
30690
  } = J8({
30660
30691
  value: p,
30661
30692
  defaultValue: ge,
@@ -30680,38 +30711,38 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30680
30711
  }
30681
30712
  }), Ke = (ce, je) => {
30682
30713
  if (k) {
30683
- const _e = wt(se), re = ce[w];
30714
+ const Ge = bt(se), re = ce[w];
30684
30715
  if (je) {
30685
- if (!_e.includes(re)) {
30686
- const Pe = [..._e, re];
30687
- Je(Pe);
30716
+ if (!Ge.includes(re)) {
30717
+ const ze = [...Ge, re];
30718
+ Ue(ze);
30688
30719
  }
30689
30720
  } else {
30690
- const Pe = _e.filter((pt) => pt !== re);
30691
- Je(Pe);
30721
+ const ze = Ge.filter((pt) => pt !== re);
30722
+ Ue(ze);
30692
30723
  }
30693
30724
  }
30694
30725
  }, tt = V((ce, je) => {
30695
30726
  if (ce === je || String(ce) === String(je)) return !0;
30696
- const _e = Number(ce), re = Number(je);
30697
- return !isNaN(_e) && !isNaN(re) && _e === re;
30727
+ const Ge = Number(ce), re = Number(je);
30728
+ return !isNaN(Ge) && !isNaN(re) && Ge === re;
30698
30729
  }, []);
30699
30730
  Y(() => {
30700
- if (Ve && p !== void 0)
30731
+ if (Te && p !== void 0)
30701
30732
  if (p === "" || p === -1 || p === "-1")
30702
30733
  G((ce) => ce !== u ? u : ce), we((ce) => ce !== null ? null : ce);
30703
30734
  else {
30704
- const ce = Array.isArray(p) ? p[0] : p, je = ae.find((_e) => ce == null ? !1 : tt(_e[L], ce) || tt(_e[w], ce));
30735
+ const ce = Array.isArray(p) ? p[0] : p, je = ae.find((Ge) => ce == null ? !1 : tt(Ge[L], ce) || tt(Ge[w], ce));
30705
30736
  if (je) {
30706
- const _e = je.icon || u, re = je.iconColor || null;
30707
- G((Pe) => Pe !== _e ? _e : Pe), we((Pe) => Pe !== re ? re : Pe), K === "user" && G(
30737
+ const Ge = je.icon || u, re = je.iconColor || null;
30738
+ G((ze) => ze !== Ge ? Ge : ze), we((ze) => ze !== re ? re : ze), K === "user" && G(
30708
30739
  je.avatarUrl ? je.avatarUrl : u
30709
30740
  );
30710
30741
  }
30711
30742
  }
30712
30743
  }, [
30713
30744
  p,
30714
- Ve,
30745
+ Te,
30715
30746
  ae,
30716
30747
  L,
30717
30748
  w,
@@ -30723,78 +30754,78 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30723
30754
  () => ({
30724
30755
  getValue: () => se,
30725
30756
  setValue: (ce) => {
30726
- Ve || Je(ce), y == null || y(ce);
30757
+ Te || Ue(ce), y == null || y(ce);
30727
30758
  },
30728
30759
  focus: () => {
30729
30760
  var ce, je;
30730
- k && H === "tags" ? (ce = fe.current) == null || ce.focus() : (je = pe.current) == null || je.focus();
30761
+ k && H === "tags" ? (ce = fe.current) == null || ce.focus() : (je = de.current) == null || je.focus();
30731
30762
  },
30732
30763
  blur: () => {
30733
30764
  var ce, je;
30734
- k && H === "tags" ? (ce = fe.current) == null || ce.blur() : (je = pe.current) == null || je.blur();
30765
+ k && H === "tags" ? (ce = fe.current) == null || ce.blur() : (je = de.current) == null || je.blur();
30735
30766
  },
30736
30767
  clear: () => {
30737
- Ve || Je(k ? [] : ""), y == null || y(k ? [] : "");
30768
+ Te || Ue(k ? [] : ""), y == null || y(k ? [] : "");
30738
30769
  },
30739
30770
  open: () => {
30740
- g || (ot(), setTimeout(() => {
30771
+ g || (Je(), setTimeout(() => {
30741
30772
  Re();
30742
30773
  }, 50));
30743
30774
  },
30744
30775
  close: () => {
30745
- Ze();
30776
+ _e();
30746
30777
  }
30747
30778
  }),
30748
30779
  [
30749
30780
  se,
30750
- Ve,
30781
+ Te,
30751
30782
  g,
30752
- ot,
30783
+ Je,
30753
30784
  y,
30754
- Ze,
30785
+ _e,
30755
30786
  k,
30756
- Je,
30787
+ Ue,
30757
30788
  Re,
30758
- pe,
30789
+ de,
30759
30790
  H
30760
30791
  ]
30761
30792
  ), Y(() => {
30762
30793
  if (ve && be.length > 0) {
30763
30794
  const ce = setTimeout(() => {
30764
- Fe();
30795
+ Ve();
30765
30796
  }, 150);
30766
30797
  return () => clearTimeout(ce);
30767
30798
  }
30768
- }, [ve, be, Fe]), Y(() => {
30799
+ }, [ve, be, Ve]), Y(() => {
30769
30800
  if (ve && k && H === "tags") {
30770
30801
  const ce = fe.current;
30771
30802
  if (!ce) return;
30772
30803
  const je = new ResizeObserver(() => {
30773
30804
  setTimeout(() => {
30774
- ot();
30805
+ Je();
30775
30806
  }, 50);
30776
30807
  });
30777
30808
  return je.observe(ce), () => {
30778
30809
  je.disconnect();
30779
30810
  };
30780
30811
  }
30781
- }, [ve, k, H, ot]), Y(() => {
30812
+ }, [ve, k, H, Je]), Y(() => {
30782
30813
  if (ve && k && H === "tags") {
30783
30814
  const ce = setTimeout(() => {
30784
- ot();
30815
+ Je();
30785
30816
  }, 100);
30786
30817
  return () => clearTimeout(ce);
30787
30818
  }
30788
- }, [be, ve, k, H, ot]);
30819
+ }, [be, ve, k, H, Je]);
30789
30820
  const qe = (ce) => {
30790
30821
  if (k) {
30791
- const _e = wt(se).filter((re) => re !== ce);
30792
- if (Je(_e), B && Ke) {
30793
- const re = v.find((Pe) => Pe[w] === ce);
30822
+ const Ge = bt(se).filter((re) => re !== ce);
30823
+ if (Ue(Ge), B && Ke) {
30824
+ const re = v.find((ze) => ze[w] === ce);
30794
30825
  re && Ke(re, !1);
30795
30826
  }
30796
30827
  }
30797
- }, vt = () => {
30828
+ }, Lt = () => {
30798
30829
  if (k) {
30799
30830
  if (be.length === 0) return "";
30800
30831
  switch (H) {
@@ -30812,14 +30843,14 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30812
30843
  }
30813
30844
  }, st = () => {
30814
30845
  if (!ve || !he.top) return null;
30815
- const ce = _ ? "animate-dropdown-exit" : "animate-dropdown-enter", je = (re, Pe) => {
30816
- Ae(re, Pe), re.icon && G(re.icon), re.iconColor && we(re.iconColor), K === "user" && G(re.avatarUrl ? re.avatarUrl : u);
30817
- }, _e = /* @__PURE__ */ b(
30846
+ const ce = _ ? "animate-dropdown-exit" : "animate-dropdown-enter", je = (re, ze) => {
30847
+ Be(re, ze), re.icon && G(re.icon), re.iconColor && we(re.iconColor), K === "user" && G(re.avatarUrl ? re.avatarUrl : u);
30848
+ }, Ge = /* @__PURE__ */ b(
30818
30849
  "div",
30819
30850
  {
30820
- ref: Ne,
30821
- id: ze,
30822
- "data-dropdown-id": ze,
30851
+ ref: Ie,
30852
+ id: Ae,
30853
+ "data-dropdown-id": Ae,
30823
30854
  "data-dropdown-portal": "true",
30824
30855
  style: {
30825
30856
  position: he.position,
@@ -30836,7 +30867,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30836
30867
  gt,
30837
30868
  {
30838
30869
  value: Ce,
30839
- onChange: Ge,
30870
+ onChange: ot,
30840
30871
  placeholder: f,
30841
30872
  leftSlot: mn,
30842
30873
  autoFocus: !0,
@@ -30846,12 +30877,12 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30846
30877
  ) }) }),
30847
30878
  I && /* @__PURE__ */ r(ct, {}),
30848
30879
  /* @__PURE__ */ b("div", { className: "custom-scrollbar ui-flex ui-max-h-[200px] ui-w-full ui-flex-col ui-gap-8 ui-overflow-y-auto ui-p-8 ui-will-change-transform", children: [
30849
- K === "filters" && de && /* @__PURE__ */ b($e, { children: [
30850
- /* @__PURE__ */ r("div", { className: "ui-text-body-sm-regular ui-font-body-sm-bold ui-leading-body-sm-bold ui-tracking-body-sm ui-text-primary", children: de }),
30880
+ K === "filters" && pe && /* @__PURE__ */ b(Ze, { children: [
30881
+ /* @__PURE__ */ r("div", { className: "ui-text-body-sm-regular ui-font-body-sm-bold ui-leading-body-sm-bold ui-tracking-body-sm ui-text-primary", children: pe }),
30851
30882
  /* @__PURE__ */ r("div", { className: "ui-w-full ui-border-t-1 ui-border-default" })
30852
30883
  ] }),
30853
- Ie.length > 0 ? Ie.map((re) => {
30854
- const Pe = k ? be.some(
30884
+ Ne.length > 0 ? Ne.map((re) => {
30885
+ const ze = k ? be.some(
30855
30886
  (Xe) => Xe && tt(
30856
30887
  Xe[w],
30857
30888
  re[w]
@@ -30862,12 +30893,12 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30862
30893
  Vo,
30863
30894
  {
30864
30895
  disabled: re.disabled,
30865
- current: Pe ? "blue" : !1,
30896
+ current: ze ? "blue" : !1,
30866
30897
  "data-option-value": String(re[w]),
30867
30898
  icon: re.icon,
30868
30899
  iconColor: re.iconColor,
30869
30900
  checkboxProps: {
30870
- checked: Pe,
30901
+ checked: ze,
30871
30902
  onChange: (Xe) => Ke == null ? void 0 : Ke(re, Xe),
30872
30903
  disabled: re.disabled
30873
30904
  },
@@ -30890,7 +30921,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30890
30921
  {
30891
30922
  onClick: (Xe) => je(re, Xe),
30892
30923
  disabled: re.disabled,
30893
- current: Pe,
30924
+ current: ze,
30894
30925
  color: re.color || "blue",
30895
30926
  icon: re.icon,
30896
30927
  iconColor: re.iconColor,
@@ -30904,7 +30935,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30904
30935
  {
30905
30936
  onClick: () => je(re, {}),
30906
30937
  disabled: re.disabled,
30907
- selected: Pe,
30938
+ selected: ze,
30908
30939
  rightContent: re.rightContent,
30909
30940
  children: String(re[L] || "")
30910
30941
  },
@@ -30938,7 +30969,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30938
30969
  ) : re.avatar,
30939
30970
  badge: re.badge,
30940
30971
  badgeVariant: re.badgeVariant,
30941
- selected: Pe,
30972
+ selected: ze,
30942
30973
  onClick: () => je(re, {})
30943
30974
  },
30944
30975
  pt
@@ -30949,7 +30980,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30949
30980
  {
30950
30981
  title: String(re[L] || ""),
30951
30982
  description: re.description,
30952
- checked: re.checked ?? Pe,
30983
+ checked: re.checked ?? ze,
30953
30984
  disabled: re.disabled,
30954
30985
  onChange: (Xe) => ee == null ? void 0 : ee(re, Xe)
30955
30986
  },
@@ -30961,7 +30992,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30961
30992
  {
30962
30993
  onClick: (Xe) => je(re, Xe),
30963
30994
  disabled: re.disabled,
30964
- current: Pe,
30995
+ current: ze,
30965
30996
  color: re.color || "blue",
30966
30997
  icon: re.icon,
30967
30998
  iconColor: re.iconColor,
@@ -30976,7 +31007,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30976
31007
  {
30977
31008
  onClick: (Xe) => je(re, Xe),
30978
31009
  disabled: re.disabled,
30979
- current: Pe ? "blue" : !1,
31010
+ current: ze ? "blue" : !1,
30980
31011
  "data-option-value": String(re[w]),
30981
31012
  icon: re.icon,
30982
31013
  iconColor: re.iconColor,
@@ -30996,28 +31027,28 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
30996
31027
  /* @__PURE__ */ r("p", { className: "ui-mt-2 ui-text-body-xs-regular ui-text-tertiary", children: c })
30997
31028
  ] }) : /* @__PURE__ */ r("div", { className: "ui-px-3 ui-text-center ui-text-sm ui-text-tertiary", children: "Sin opciones" })
30998
31029
  ] }),
30999
- R && /* @__PURE__ */ b($e, { children: [
31030
+ R && /* @__PURE__ */ b(Ze, { children: [
31000
31031
  /* @__PURE__ */ r(ct, {}),
31001
31032
  /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-[200px] ui-gap-x-2 ui-px-4 ui-py-2", children: [
31002
31033
  /* @__PURE__ */ r(
31003
- Te,
31034
+ Ee,
31004
31035
  {
31005
31036
  color: "secondary",
31006
31037
  leftSlot: oa,
31007
31038
  variant: "outlined",
31008
31039
  size: "xs",
31009
31040
  fullWidth: !0,
31010
- onClick: kt,
31041
+ onClick: vt,
31011
31042
  children: "Limpiar"
31012
31043
  }
31013
31044
  ),
31014
- /* @__PURE__ */ r(Te, { color: "primary", size: "xs", fullWidth: !0, onClick: () => Ze(), children: "OK" })
31045
+ /* @__PURE__ */ r(Ee, { color: "primary", size: "xs", fullWidth: !0, onClick: () => _e(), children: "OK" })
31015
31046
  ] })
31016
31047
  ] })
31017
31048
  ]
31018
31049
  }
31019
31050
  );
31020
- return T ? _e : Rt(_e, document.body);
31051
+ return T ? Ge : Rt(Ge, document.body);
31021
31052
  };
31022
31053
  Y(() => {
31023
31054
  u && G(u);
@@ -31025,9 +31056,9 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
31025
31056
  const Bt = /* @__PURE__ */ b(
31026
31057
  "div",
31027
31058
  {
31028
- ref: Ue,
31059
+ ref: Fe,
31029
31060
  className: "ui-imj ui-relative ui-w-full",
31030
- "data-dropdown-container-id": ze,
31061
+ "data-dropdown-container-id": Ae,
31031
31062
  children: [
31032
31063
  k && H === "tags" ? /* @__PURE__ */ r(
31033
31064
  W8,
@@ -31054,7 +31085,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
31054
31085
  /* @__PURE__ */ r(
31055
31086
  gt,
31056
31087
  {
31057
- ref: pe,
31088
+ ref: de,
31058
31089
  label: i,
31059
31090
  error: o,
31060
31091
  helperText: t,
@@ -31069,7 +31100,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
31069
31100
  caret: h,
31070
31101
  disabled: g,
31071
31102
  placeholder: C,
31072
- value: vt(),
31103
+ value: Lt(),
31073
31104
  readOnly: !0,
31074
31105
  onClick: (ce) => Re(ce),
31075
31106
  onClickExtraSlot: () => Re(),
@@ -31400,7 +31431,7 @@ const e3 = {
31400
31431
  }
31401
31432
  });
31402
31433
  return /* @__PURE__ */ r("span", { className: j("ui-imj", n({ size: i })), role: "img", "aria-label": e, children: t });
31403
- }, An = [
31434
+ }, Rn = [
31404
31435
  {
31405
31436
  id: "recent",
31406
31437
  name: "Recientes",
@@ -33008,11 +33039,11 @@ const p1 = "emoji-picker-recent", i3 = ({
33008
33039
  I(Z), T(Z), e == null || e(B), l && H.current && H.current.close();
33009
33040
  }, P = oe(() => !y || y.trim() === "" ? [
33010
33041
  {
33011
- ...An[0],
33042
+ ...Rn[0],
33012
33043
  emojis: x
33013
33044
  },
33014
- ...An.slice(1)
33015
- ] : An.slice(1).map(($) => ({
33045
+ ...Rn.slice(1)
33046
+ ] : Rn.slice(1).map(($) => ({
33016
33047
  ...$,
33017
33048
  emojis: n3(y, $.emojis)
33018
33049
  })).filter(($) => $.emojis.length > 0), [y, x]), R = (B) => {
@@ -33031,8 +33062,8 @@ const p1 = "emoji-picker-recent", i3 = ({
33031
33062
  let $ = "recent";
33032
33063
  Object.entries(k.current).forEach(([K, ee]) => {
33033
33064
  if (ee) {
33034
- const de = ee.offsetTop - B.offsetTop;
33035
- Z >= de - 50 && ($ = K);
33065
+ const pe = ee.offsetTop - B.offsetTop;
33066
+ Z >= pe - 50 && ($ = K);
33036
33067
  }
33037
33068
  }), w($);
33038
33069
  };
@@ -33053,8 +33084,8 @@ const p1 = "emoji-picker-recent", i3 = ({
33053
33084
  tooltip: v,
33054
33085
  closeOnClick: !1,
33055
33086
  children: /* @__PURE__ */ b("div", { className: j("ui-flex ui-flex-col ui-bg-fill", o), children: [
33056
- /* @__PURE__ */ r("div", { className: "ui-border-b ui-border-default ui-bg-surface ui-p-16", children: /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-wrap ui-justify-between ui-gap-8", children: An.map((B) => /* @__PURE__ */ r(
33057
- Te,
33087
+ /* @__PURE__ */ r("div", { className: "ui-border-b ui-border-default ui-bg-surface ui-p-16", children: /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-wrap ui-justify-between ui-gap-8", children: Rn.map((B) => /* @__PURE__ */ r(
33088
+ Ee,
33058
33089
  {
33059
33090
  borderable: L === B.id,
33060
33091
  size: "xs",
@@ -33393,7 +33424,7 @@ const p1 = "emoji-picker-recent", i3 = ({
33393
33424
  children: [
33394
33425
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-16 ui-pb-12", children: [
33395
33426
  /* @__PURE__ */ r(Ci, { title: o, icon: t }),
33396
- /* @__PURE__ */ r(Te, { theme: "solid", color: "secondary", pill: "sm", size: "xxs", onClick: m, children: i })
33427
+ /* @__PURE__ */ r(Ee, { theme: "solid", color: "secondary", pill: "sm", size: "xxs", onClick: m, children: i })
33397
33428
  ] }),
33398
33429
  /* @__PURE__ */ r(ct, {}),
33399
33430
  /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-y-8 ui-p-16 ui-pt-12", children: [
@@ -33453,7 +33484,7 @@ const p1 = "emoji-picker-recent", i3 = ({
33453
33484
  },
33454
33485
  x
33455
33486
  ) : w.type === "date" ? /* @__PURE__ */ r(
33456
- Hn,
33487
+ Dn,
33457
33488
  {
33458
33489
  closeOnSelect: !0,
33459
33490
  size: "xs",
@@ -33464,7 +33495,7 @@ const p1 = "emoji-picker-recent", i3 = ({
33464
33495
  },
33465
33496
  x
33466
33497
  ) : w.type === "dateRange" ? /* @__PURE__ */ r(
33467
- Hn,
33498
+ Dn,
33468
33499
  {
33469
33500
  size: "xs",
33470
33501
  label: w.label,
@@ -33483,7 +33514,7 @@ const p1 = "emoji-picker-recent", i3 = ({
33483
33514
  x
33484
33515
  ) : null;
33485
33516
  }),
33486
- /* @__PURE__ */ r(Te, { color: "primary", onClick: C, children: "Aplicar" })
33517
+ /* @__PURE__ */ r(Ee, { color: "primary", onClick: C, children: "Aplicar" })
33487
33518
  ] })
33488
33519
  ]
33489
33520
  }
@@ -33729,7 +33760,7 @@ const f3 = () => {
33729
33760
  isEmpty: M
33730
33761
  };
33731
33762
  }, dn = ({ isActive: e, onClick: i, disabled: o, icon: t, tooltip: n }) => /* @__PURE__ */ r(
33732
- Te,
33763
+ Ee,
33733
33764
  {
33734
33765
  color: e ? "primary" : "secondary",
33735
33766
  size: "xxs",
@@ -33924,9 +33955,9 @@ const f3 = () => {
33924
33955
  onMouseDown: (E) => E.preventDefault(),
33925
33956
  children: [
33926
33957
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
33927
- a && /* @__PURE__ */ b($e, { children: [
33958
+ a && /* @__PURE__ */ b(Ze, { children: [
33928
33959
  /* @__PURE__ */ r(
33929
- Te,
33960
+ Ee,
33930
33961
  {
33931
33962
  color: "tertiary",
33932
33963
  size: "xs",
@@ -33951,7 +33982,7 @@ const f3 = () => {
33951
33982
  }
33952
33983
  ),
33953
33984
  l && /* @__PURE__ */ r(
33954
- Te,
33985
+ Ee,
33955
33986
  {
33956
33987
  color: "tertiary",
33957
33988
  size: "xs",
@@ -33966,7 +33997,7 @@ const f3 = () => {
33966
33997
  )
33967
33998
  ] }),
33968
33999
  d && /* @__PURE__ */ r(
33969
- Te,
34000
+ Ee,
33970
34001
  {
33971
34002
  color: O || n ? "secondary" : "primary",
33972
34003
  size: "sm",
@@ -34104,7 +34135,7 @@ const f3 = () => {
34104
34135
  color: "secondary",
34105
34136
  size: "sm",
34106
34137
  pill: "pill",
34107
- iconProps: { icon: xt },
34138
+ iconProps: { icon: Mt },
34108
34139
  onClick: t,
34109
34140
  tooltipProps: { label: "Cerrar", position: "bottom" },
34110
34141
  className: "ui-bg-fill/90 ui-shadow-lg hover:ui-bg-fill"
@@ -34638,7 +34669,7 @@ const I3 = ({
34638
34669
  }
34639
34670
  ) }),
34640
34671
  f && /* @__PURE__ */ r(
34641
- Te,
34672
+ Ee,
34642
34673
  {
34643
34674
  icon: aa,
34644
34675
  size: "sm",
@@ -34949,7 +34980,7 @@ const H3 = [
34949
34980
  ]
34950
34981
  }
34951
34982
  ) : /* @__PURE__ */ r("div", {}),
34952
- /* @__PURE__ */ r("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: h && t && t > L && /* @__PURE__ */ b($e, { children: [
34983
+ /* @__PURE__ */ r("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: h && t && t > L && /* @__PURE__ */ b(Ze, { children: [
34953
34984
  /* @__PURE__ */ r(
34954
34985
  "label",
34955
34986
  {
@@ -35506,7 +35537,7 @@ const H3 = [
35506
35537
  classNameNumber: n = ""
35507
35538
  }) => {
35508
35539
  const s = "ui-min-w-[38px] ui-min-h-[38px] ui-max-w-[38px] ui-max-h-[38px] ui-rounded-control-pill ui-flex ui-items-center ui-justify-center ui-border-3";
35509
- return i === "completed" ? /* @__PURE__ */ r("div", { className: `${s} ${o.primary} ${t}`, children: /* @__PURE__ */ r(Le, { name: On, color: "white" }) }) : i === "active" ? /* @__PURE__ */ r(
35540
+ return i === "completed" ? /* @__PURE__ */ r("div", { className: `${s} ${o.primary} ${t}`, children: /* @__PURE__ */ r(Le, { name: Hn, color: "white" }) }) : i === "active" ? /* @__PURE__ */ r(
35510
35541
  "div",
35511
35542
  {
35512
35543
  className: `${s} ${o.primary.split(" ")[0]} ${t} ${o.secondary}`,
@@ -35670,7 +35701,7 @@ const H3 = [
35670
35701
  materialLight: wa,
35671
35702
  prism: ba,
35672
35703
  dark: Ca
35673
- }, $n = (e) => {
35704
+ }, Zn = (e) => {
35674
35705
  if (typeof e == "string") return e;
35675
35706
  if (ye.isValidElement(e)) {
35676
35707
  const i = e, { type: o, props: t } = i, n = typeof o == "string" ? o : o.name || "Component", s = Object.entries(t).filter(([f]) => f !== "children").map(([f, d]) => {
@@ -35697,8 +35728,8 @@ const H3 = [
35697
35728
  }
35698
35729
  }).join(" ");
35699
35730
  let a = "";
35700
- t.children && (Array.isArray(t.children) ? a = t.children.filter((f) => f !== null).map((f) => $n(f)).join(`
35701
- `) : a = $n(t.children));
35731
+ t.children && (Array.isArray(t.children) ? a = t.children.filter((f) => f !== null).map((f) => Zn(f)).join(`
35732
+ `) : a = Zn(t.children));
35702
35733
  const u = s ? ` ${s}` : "";
35703
35734
  if (!a)
35704
35735
  return `<${n}${u} />`;
@@ -35709,7 +35740,7 @@ const H3 = [
35709
35740
  ${l}
35710
35741
  </${n}>`;
35711
35742
  }
35712
- return Array.isArray(e) ? e.map((i) => $n(i)).join(`
35743
+ return Array.isArray(e) ? e.map((i) => Zn(i)).join(`
35713
35744
  `) : String(e);
35714
35745
  }, r5 = ({ children: e }) => /* @__PURE__ */ r("h2", { className: "ui-text-lg ui-font-semibold ui-text-gray-900", children: e }), o5 = ({ children: e }) => /* @__PURE__ */ r("div", { className: "ui-text-gray-tertiary ui-text-body-xs-regular", children: e }), s5 = ({ children: e, className: i = "" }) => /* @__PURE__ */ r("div", { className: `ui-flex ui-w-full ui-items-center ui-gap-2 ${i}`, children: e }), a5 = ({
35715
35746
  children: e,
@@ -35718,7 +35749,7 @@ ${l}
35718
35749
  customStyle: t = {},
35719
35750
  theme: n = "prism"
35720
35751
  }) => {
35721
- const s = typeof e == "string" ? e : $n(e), a = () => {
35752
+ const s = typeof e == "string" ? e : Zn(e), a = () => {
35722
35753
  const l = [
35723
35754
  "dracula",
35724
35755
  "tomorrow",
@@ -36026,7 +36057,7 @@ const Jt = [
36026
36057
  color: "secondary",
36027
36058
  size: "xxs",
36028
36059
  tooltip: { label: "Quitar", position: "top-left" },
36029
- iconProps: { icon: xt },
36060
+ iconProps: { icon: Mt },
36030
36061
  onClick: () => t(e.id),
36031
36062
  pill: "pill"
36032
36063
  }
@@ -36064,9 +36095,9 @@ const Jt = [
36064
36095
  defaultOptionSelected: !1,
36065
36096
  selectedItemsDisplay: "tags"
36066
36097
  }
36067
- ) : /* @__PURE__ */ r($e, { children: i.dataType === "date" ? /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-8", children: [
36098
+ ) : /* @__PURE__ */ r(Ze, { children: i.dataType === "date" ? /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-8", children: [
36068
36099
  /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-col ui-gap-4", children: /* @__PURE__ */ r(
36069
- Hn,
36100
+ Dn,
36070
36101
  {
36071
36102
  selectedDate: u && typeof u == "string" ? (() => {
36072
36103
  const [y, M, x] = u.split("-").map(Number);
@@ -36083,7 +36114,7 @@ const Jt = [
36083
36114
  }
36084
36115
  ) }),
36085
36116
  v.requiresSecondValue && /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-col ui-gap-4", children: /* @__PURE__ */ r(
36086
- Hn,
36117
+ Dn,
36087
36118
  {
36088
36119
  selectedDate: f && typeof f == "string" ? (() => {
36089
36120
  const [y, M, x] = f.split("-").map(Number);
@@ -36099,7 +36130,7 @@ const Jt = [
36099
36130
  closeOnSelect: !0
36100
36131
  }
36101
36132
  ) })
36102
- ] }) : /* @__PURE__ */ b($e, { children: [
36133
+ ] }) : /* @__PURE__ */ b(Ze, { children: [
36103
36134
  /* @__PURE__ */ r(
36104
36135
  gt,
36105
36136
  {
@@ -36396,7 +36427,7 @@ const Jt = [
36396
36427
  color: "primary",
36397
36428
  size: "xs",
36398
36429
  pill: "md",
36399
- iconProps: { icon: On },
36430
+ iconProps: { icon: Hn },
36400
36431
  onClick: v,
36401
36432
  disabled: !I,
36402
36433
  children: "Aplicar Filtros"
@@ -36441,7 +36472,7 @@ const h5 = ({
36441
36472
  onFiltersApply: k,
36442
36473
  className: O
36443
36474
  }) => {
36444
- const [H, T] = A(""), z = o !== void 0 ? o : H, [P, R] = A([]), [E, B] = A([]), [Z, $] = A(!1), K = q(null), ee = q(null), de = oe(
36475
+ const [H, T] = A(""), z = o !== void 0 ? o : H, [P, R] = A([]), [E, B] = A([]), [Z, $] = A(!1), K = q(null), ee = q(null), pe = oe(
36445
36476
  () => ({
36446
36477
  selectedIds: w,
36447
36478
  selectedRows: M.filter((_) => w.includes(_.id))
@@ -36476,21 +36507,21 @@ const h5 = ({
36476
36507
  var se;
36477
36508
  const _ = [];
36478
36509
  if (E.forEach((be) => {
36479
- const Ie = P.find((he) => he.id === be.id);
36480
- Ie && Ie.checked !== be.checked && _.push({ columnId: be.id, visible: be.checked ?? !1 });
36510
+ const Ne = P.find((he) => he.id === be.id);
36511
+ Ne && Ne.checked !== be.checked && _.push({ columnId: be.id, visible: be.checked ?? !1 });
36481
36512
  }), _.length > 0 && (_.length > 1 && N ? N(_) : _.forEach((be) => {
36482
36513
  S == null || S(be.columnId, be.visible);
36483
36514
  })), E.some(
36484
- (be, Ie) => {
36515
+ (be, Ne) => {
36485
36516
  var he;
36486
- return ((he = P[Ie]) == null ? void 0 : he.id) !== be.id;
36517
+ return ((he = P[Ne]) == null ? void 0 : he.id) !== be.id;
36487
36518
  }
36488
36519
  )) {
36489
- const be = new Map(E.map((he, Ve) => [he.id, Ve])), Ie = [...y].sort((he, Ve) => {
36490
- const pe = be.get(he.id) ?? 999, Ne = be.get(Ve.id) ?? 999;
36491
- return pe - Ne;
36520
+ const be = new Map(E.map((he, Te) => [he.id, Te])), Ne = [...y].sort((he, Te) => {
36521
+ const de = be.get(he.id) ?? 999, Ie = be.get(Te.id) ?? 999;
36522
+ return de - Ie;
36492
36523
  });
36493
- D == null || D(Ie);
36524
+ D == null || D(Ne);
36494
36525
  }
36495
36526
  R(E), $(!1), (se = K.current) == null || se.close();
36496
36527
  }, fe = () => {
@@ -36520,7 +36551,7 @@ const h5 = ({
36520
36551
  thisYear: "es este año",
36521
36552
  lastYear: "es año pasado"
36522
36553
  }, we = (_) => {
36523
- const Ce = y.find((Ie) => Ie.id === _.columnId), se = Ce ? typeof Ce.header == "string" ? Ce.header : Ce.id : _.columnId;
36554
+ const Ce = y.find((Ne) => Ne.id === _.columnId), se = Ce ? typeof Ce.header == "string" ? Ce.header : Ce.id : _.columnId;
36524
36555
  if (_.columnId === "_search")
36525
36556
  return `"${_.value}"`;
36526
36557
  const be = le[_.operator] || _.operator;
@@ -36529,8 +36560,8 @@ const h5 = ({
36529
36560
  ))
36530
36561
  return `"${se}" ${be}`;
36531
36562
  if (_.operator === "in" && Array.isArray(_.value)) {
36532
- const Ie = (Array.isArray(_.value) ? _.value : [_.value]).map((he) => `"${String(he)}"`).join(", ");
36533
- return `"${se}" ${be} [${Ie}]`;
36563
+ const Ne = (Array.isArray(_.value) ? _.value : [_.value]).map((he) => `"${String(he)}"`).join(", ");
36564
+ return `"${se}" ${be} [${Ne}]`;
36534
36565
  }
36535
36566
  return _.operator === "between" && _.value && _.value2 ? `"${se}" ${be} "${_.value}" y "${_.value2}"` : _.value ? `"${se}" ${be} "${_.value}"` : se;
36536
36567
  }, U = (_) => _.columnId === "_search" ? "success" : "accent", te = (_) => {
@@ -36553,7 +36584,7 @@ const h5 = ({
36553
36584
  ),
36554
36585
  children: [
36555
36586
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
36556
- t && /* @__PURE__ */ b($e, { children: [
36587
+ t && /* @__PURE__ */ b(Ze, { children: [
36557
36588
  /* @__PURE__ */ b(
36558
36589
  Ft,
36559
36590
  {
@@ -36604,7 +36635,7 @@ const h5 = ({
36604
36635
  color: "primary",
36605
36636
  size: "xxs",
36606
36637
  pill: "md",
36607
- iconProps: { icon: On },
36638
+ iconProps: { icon: Hn },
36608
36639
  onClick: me,
36609
36640
  children: "Guardar"
36610
36641
  }
@@ -36651,7 +36682,7 @@ const h5 = ({
36651
36682
  size: _.size ?? "xs",
36652
36683
  pill: "sm",
36653
36684
  leftSlot: _.leftSlot,
36654
- onClick: () => _.onClick(de),
36685
+ onClick: () => _.onClick(pe),
36655
36686
  disabled: _.disabled,
36656
36687
  children: _.label
36657
36688
  },
@@ -36665,7 +36696,7 @@ const h5 = ({
36665
36696
  size: C.size ?? "xs",
36666
36697
  pill: "sm",
36667
36698
  leftSlot: C.leftSlot,
36668
- onClick: () => C.onClick(de),
36699
+ onClick: () => C.onClick(pe),
36669
36700
  disabled: C.requiresSelection !== !1 && L === 0,
36670
36701
  children: C.label
36671
36702
  }
@@ -36677,7 +36708,7 @@ const h5 = ({
36677
36708
  size: "xs",
36678
36709
  pill: "sm",
36679
36710
  leftSlot: f,
36680
- onClick: () => m == null ? void 0 : m(de),
36711
+ onClick: () => m == null ? void 0 : m(pe),
36681
36712
  disabled: L === 0,
36682
36713
  children: l
36683
36714
  }
@@ -36690,7 +36721,7 @@ const h5 = ({
36690
36721
  size: g.size ?? "xs",
36691
36722
  pill: "sm",
36692
36723
  leftSlot: g.leftSlot,
36693
- onClick: () => g.onClick(de),
36724
+ onClick: () => g.onClick(pe),
36694
36725
  disabled: g.requiresSelection !== !1 && L === 0,
36695
36726
  children: g.label
36696
36727
  }
@@ -36702,7 +36733,7 @@ const h5 = ({
36702
36733
  size: "xs",
36703
36734
  pill: "sm",
36704
36735
  leftSlot: a,
36705
- onClick: () => p == null ? void 0 : p(de),
36736
+ onClick: () => p == null ? void 0 : p(pe),
36706
36737
  disabled: L === 0,
36707
36738
  children: s
36708
36739
  }
@@ -36714,7 +36745,7 @@ const h5 = ({
36714
36745
  ge && /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-8 ui-bg-fill ui-px-16 ui-py-8", children: [
36715
36746
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
36716
36747
  /* @__PURE__ */ r("span", { className: "ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-tertiary", children: "Filtros activos:" }),
36717
- /* @__PURE__ */ r(Te, { color: "link", size: "xxs", onClick: J, children: "Limpiar todos" })
36748
+ /* @__PURE__ */ r(Ee, { color: "link", size: "xxs", onClick: J, children: "Limpiar todos" })
36718
36749
  ] }),
36719
36750
  /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-wrap ui-items-center ui-gap-8", children: [
36720
36751
  z.trim().length > 0 && /* @__PURE__ */ r(
@@ -36766,11 +36797,11 @@ const h5 = ({
36766
36797
  u && "ui-overflow-hidden ui-min-w-0",
36767
36798
  // Clases adicionales
36768
36799
  i
36769
- ), Qn = 120, Ln = 80, Dr = 300, dt = (e, i = 0, o, t, n) => {
36770
- const s = e.width !== void 0, a = t && !s, u = e.minWidth ?? Ln, l = e.minWidth ?? Qn;
36800
+ ), Jn = 120, Ln = 80, Dr = 300, dt = (e, i = 0, o, t, n) => {
36801
+ const s = e.width !== void 0, a = t && !s, u = e.minWidth ?? Ln, l = e.minWidth ?? Jn;
36771
36802
  let f, d;
36772
36803
  a ? (f = l, d = l) : n ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (f = void 0, d = e.minWidth ?? Dr) : (f = typeof e.width == "number" || typeof e.width == "string" ? e.width : u, d = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (f = "100%", d = e.minWidth ?? 0) : s ? (f = e.width, d = e.minWidth ?? 0) : (f = u, d = u);
36773
- const c = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, h = e.minWidth ?? Qn, p = a ? h : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(c) ? c : void 0);
36804
+ const c = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, h = e.minWidth ?? Jn, p = a ? h : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(c) ? c : void 0);
36774
36805
  return {
36775
36806
  "data-column-id": e.id,
36776
36807
  style: {
@@ -36782,7 +36813,7 @@ const h5 = ({
36782
36813
  }
36783
36814
  };
36784
36815
  }, Ye = (e, i) => !!(i && e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number")), m5 = (e, i, o) => {
36785
- const t = e.width !== void 0, n = i && !t, s = e.minWidth ?? Ln, a = e.minWidth ?? Qn;
36816
+ const t = e.width !== void 0, n = i && !t, s = e.minWidth ?? Ln, a = e.minWidth ?? Jn;
36786
36817
  return n ? a : o ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? e.minWidth ?? Dr : e.width !== void 0 ? e.minWidth ?? 0 : Ln : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") || t ? e.minWidth ?? 0 : s;
36787
36818
  }, Ot = (e = "left") => {
36788
36819
  switch (e) {
@@ -36921,7 +36952,7 @@ const Wo = ({
36921
36952
  );
36922
36953
  };
36923
36954
  Wo.displayName = "CustomText";
36924
- const Jn = ({
36955
+ const Wn = ({
36925
36956
  type: e = "body",
36926
36957
  size: i,
36927
36958
  weight: o = "regular",
@@ -37029,7 +37060,7 @@ const Jn = ({
37029
37060
  );
37030
37061
  }
37031
37062
  return l ? /* @__PURE__ */ r(
37032
- yt,
37063
+ xt,
37033
37064
  {
37034
37065
  truncate: l,
37035
37066
  title: d ?? (typeof t == "string" ? t : void 0),
@@ -37039,7 +37070,7 @@ const Jn = ({
37039
37070
  }
37040
37071
  ) : g;
37041
37072
  };
37042
- Jn.displayName = "Text";
37073
+ Wn.displayName = "Text";
37043
37074
  function g5(e, i, o) {
37044
37075
  return e.textColor ? e.textColor : (i === "selected" || i === "focused") && !o ? "brand-selected" : "primary";
37045
37076
  }
@@ -37081,7 +37112,7 @@ const e0 = rt(
37081
37112
  if (t.render) {
37082
37113
  const w = i !== void 0 ? i : e, y = typeof w == "string" || typeof w == "number" ? String(w) : void 0;
37083
37114
  return /* @__PURE__ */ r("td", { className: h, ...p, onClick: (M) => ut(M, u), children: /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(
37084
- Jn,
37115
+ Wn,
37085
37116
  {
37086
37117
  type: "body",
37087
37118
  size: "sm",
@@ -37097,7 +37128,7 @@ const e0 = rt(
37097
37128
  }
37098
37129
  const L = e ? String(e) : "-";
37099
37130
  return /* @__PURE__ */ r("td", { className: h, ...p, onClick: (w) => ut(w, u), children: /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(
37100
- Jn,
37131
+ Wn,
37101
37132
  {
37102
37133
  type: "body",
37103
37134
  size: "sm",
@@ -37146,7 +37177,7 @@ const t0 = rt(
37146
37177
  p
37147
37178
  ), g = (t === "selected" || t === "focused") && !l, C = g ? "ui-text-brand-selected" : "ui-text-primary", v = g ? "ui-text-brand-selected" : "ui-text-primary", L = typeof e == "object" && e !== null && !Array.isArray(e), w = L ? e : null, y = i && typeof i == "object" && "avatar" in i ? i : null, M = (w == null ? void 0 : w.avatar) ?? (y == null ? void 0 : y.avatar), x = L ? e.name : typeof e == "string" || typeof e == "number" ? e : void 0, I = (w == null ? void 0 : w.subtitle) ?? (y == null ? void 0 : y.subtitle);
37148
37179
  return /* @__PURE__ */ r("td", { className: d, ...c, onClick: (S) => ut(S, s), children: /* @__PURE__ */ b("div", { className: m, children: [
37149
- M && /* @__PURE__ */ r(Mt, { type: "people", size: "sm", src: M }),
37180
+ M && /* @__PURE__ */ r(St, { type: "people", size: "sm", src: M }),
37150
37181
  /* @__PURE__ */ b(
37151
37182
  "div",
37152
37183
  {
@@ -37156,7 +37187,7 @@ const t0 = rt(
37156
37187
  ),
37157
37188
  children: [
37158
37189
  /* @__PURE__ */ r(
37159
- yt,
37190
+ xt,
37160
37191
  {
37161
37192
  truncate: h,
37162
37193
  title: typeof x == "string" ? x : void 0,
@@ -37170,7 +37201,7 @@ const t0 = rt(
37170
37201
  }
37171
37202
  ),
37172
37203
  I && /* @__PURE__ */ r(
37173
- yt,
37204
+ xt,
37174
37205
  {
37175
37206
  truncate: h,
37176
37207
  title: typeof I == "string" ? I : void 0,
@@ -37304,7 +37335,7 @@ const n0 = rt(
37304
37335
  v.bg
37305
37336
  ),
37306
37337
  children: /* @__PURE__ */ r(
37307
- yt,
37338
+ xt,
37308
37339
  {
37309
37340
  truncate: w,
37310
37341
  title: h,
@@ -37460,7 +37491,7 @@ const b5 = ({
37460
37491
  p && "ui-min-w-0 ui-overflow-hidden"
37461
37492
  ),
37462
37493
  children: /* @__PURE__ */ r("a", { href: v, className: m, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ r(
37463
- yt,
37494
+ xt,
37464
37495
  {
37465
37496
  truncate: p,
37466
37497
  title: typeof L == "string" ? L : String(L),
@@ -37469,7 +37500,7 @@ const b5 = ({
37469
37500
  ) })
37470
37501
  }
37471
37502
  ) });
37472
- }, m1 = "sm", w5 = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Dn(e) : !1, v5 = (e) => typeof e == "string" && e.trim().length > 0 ? e.trim() : "?", L5 = ({
37503
+ }, m1 = "sm", w5 = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1, v5 = (e) => typeof e == "string" && e.trim().length > 0 ? e.trim() : "?", L5 = ({
37473
37504
  value: e,
37474
37505
  column: i,
37475
37506
  state: o = "default",
@@ -37502,7 +37533,7 @@ const b5 = ({
37502
37533
  const v = typeof g == "object" && g !== null ? g : null, L = v ? v.src : g, w = v ? v.name : g;
37503
37534
  if (typeof L == "string" && w5(L))
37504
37535
  return /* @__PURE__ */ r(
37505
- Mt,
37536
+ St,
37506
37537
  {
37507
37538
  type: "people",
37508
37539
  src: L,
@@ -37513,7 +37544,7 @@ const b5 = ({
37513
37544
  );
37514
37545
  const y = v5(w).slice(0, 3);
37515
37546
  return /* @__PURE__ */ r(
37516
- Mt,
37547
+ St,
37517
37548
  {
37518
37549
  type: "letter",
37519
37550
  text: y,
@@ -37705,7 +37736,7 @@ const b5 = ({
37705
37736
  m && "ui-min-w-0 ui-overflow-hidden"
37706
37737
  ),
37707
37738
  children: p && /* @__PURE__ */ r(
37708
- Te,
37739
+ Ee,
37709
37740
  {
37710
37741
  theme: p.theme || "solid",
37711
37742
  color: p.color || "primary",
@@ -37751,7 +37782,7 @@ const b5 = ({
37751
37782
  ),
37752
37783
  children: /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-min-w-0 ui-items-center ui-gap-2", children: [
37753
37784
  /* @__PURE__ */ r(
37754
- qn,
37785
+ Yn,
37755
37786
  {
37756
37787
  progress: v,
37757
37788
  size: "xxs",
@@ -37907,7 +37938,7 @@ const b5 = ({
37907
37938
  }
37908
37939
  );
37909
37940
  o0.displayName = "TagsCell";
37910
- const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
37941
+ const ei = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
37911
37942
  value: e,
37912
37943
  column: i,
37913
37944
  state: o = "default",
@@ -37937,7 +37968,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
37937
37968
  h && "ui-min-w-0 ui-overflow-hidden"
37938
37969
  ),
37939
37970
  children: /* @__PURE__ */ r(
37940
- Wn,
37971
+ ei,
37941
37972
  {
37942
37973
  checked: !!e,
37943
37974
  onChange: t || (() => {
@@ -38076,7 +38107,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
38076
38107
  }
38077
38108
  ),
38078
38109
  /* @__PURE__ */ r(
38079
- yt,
38110
+ xt,
38080
38111
  {
38081
38112
  truncate: p,
38082
38113
  title: c.toFixed(1),
@@ -38266,7 +38297,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
38266
38297
  L && "ui-min-w-0 ui-overflow-hidden"
38267
38298
  ),
38268
38299
  children: /* @__PURE__ */ r(
38269
- yt,
38300
+ xt,
38270
38301
  {
38271
38302
  truncate: L,
38272
38303
  title: v,
@@ -38375,15 +38406,15 @@ const T5 = ({
38375
38406
  className: y,
38376
38407
  hasColumnMaxWidthAuto: M = !1
38377
38408
  }) => {
38378
- var be, Ie;
38409
+ var be, Ne;
38379
38410
  const x = q(null), [I, S] = A(!1), [N, D] = A(!1), [k, O] = A(!1), H = q(0), T = q(0), z = q(0), P = q(80), R = q(null), E = q(C), B = q(e.id), Z = q(!1), $ = q(), K = q(), ee = q(null);
38380
38411
  Y(() => {
38381
38412
  E.current = C, B.current = e.id, Z.current = N;
38382
38413
  }, [C, e.id, N]);
38383
- const de = e.width !== void 0, F = h && !de, ne = e.minWidth ?? Ln, ie = F ? e.minWidth ?? Qn : 0;
38414
+ const pe = e.width !== void 0, F = h && !pe, ne = e.minWidth ?? Ln, ie = F ? e.minWidth ?? Jn : 0;
38384
38415
  let me, fe;
38385
- F ? (me = ie, fe = ie) : M ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = void 0, fe = e.minWidth ?? Dr) : (me = typeof e.width == "number" || typeof e.width == "string" ? e.width : ne, fe = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = "100%", fe = e.minWidth ?? 0) : de ? (me = e.width, fe = e.minWidth ?? 0) : (me = ne, fe = ne);
38386
- const X = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, G = F ? ie : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(X) ? X : void 0), le = de || Ye(e, M), we = j(
38416
+ F ? (me = ie, fe = ie) : M ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = void 0, fe = e.minWidth ?? Dr) : (me = typeof e.width == "number" || typeof e.width == "string" ? e.width : ne, fe = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = "100%", fe = e.minWidth ?? 0) : pe ? (me = e.width, fe = e.minWidth ?? 0) : (me = ne, fe = ne);
38417
+ const X = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, G = F ? ie : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(X) ? X : void 0), le = pe || Ye(e, M), we = j(
38387
38418
  "ui-group ui-px-4 ui-py-3 ui-text-left ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-tertiary",
38388
38419
  "ui-transition-colors ui-duration-150",
38389
38420
  "ui-h-12",
@@ -38406,31 +38437,31 @@ const T5 = ({
38406
38437
  var tt;
38407
38438
  if (he.preventDefault(), he.stopPropagation(), !x.current || !C) return;
38408
38439
  S(!0), D(!1), Z.current = !1, H.current = he.clientX, T.current = he.clientX;
38409
- const Ve = typeof e.width == "number" ? e.width : x.current.offsetWidth;
38410
- isNaN(Ve) || Ve <= 0 ? z.current = 150 : z.current = Ve;
38411
- let pe = 0;
38412
- const Ne = x.current.querySelector(".ui-truncate");
38413
- let Ue = 0;
38414
- if ((tt = Ne == null ? void 0 : Ne.textContent) != null && tt.trim()) {
38415
- const qe = document.createElement("span");
38416
- qe.style.position = "absolute", qe.style.visibility = "hidden", qe.style.whiteSpace = "nowrap", qe.style.font = window.getComputedStyle(Ne).font, qe.textContent = Ne.textContent, document.body.appendChild(qe), Ue = qe.offsetWidth, document.body.removeChild(qe);
38417
- }
38418
- const ze = x.current.querySelector(".ui-justify-between"), Re = ze == null ? void 0 : ze.firstElementChild, Ze = e.headerIcon ? Re == null ? void 0 : Re.querySelector(".ui-flex-shrink-0") : null;
38419
- Ze && Ze.offsetWidth > 0 && (Ue += Ze.offsetWidth + 8);
38420
- const Ae = ze == null ? void 0 : ze.lastElementChild, Ge = Ae ? Ae.offsetWidth : 0, kt = Ue + Ge + 48;
38421
- (Ue > 0 || Ge > 0) && (pe = Math.max(pe, kt));
38422
- const ot = x.current.closest("table");
38440
+ const Te = typeof e.width == "number" ? e.width : x.current.offsetWidth;
38441
+ isNaN(Te) || Te <= 0 ? z.current = 150 : z.current = Te;
38442
+ let de = 0;
38443
+ const Ie = x.current.querySelector(".ui-truncate");
38423
38444
  let Fe = 0;
38424
- ot && ot.querySelectorAll(`td[data-column-id="${e.id}"]`).forEach((vt) => {
38425
- const st = vt.scrollWidth;
38426
- Fe = Math.max(Fe, st);
38445
+ if ((tt = Ie == null ? void 0 : Ie.textContent) != null && tt.trim()) {
38446
+ const qe = document.createElement("span");
38447
+ qe.style.position = "absolute", qe.style.visibility = "hidden", qe.style.whiteSpace = "nowrap", qe.style.font = window.getComputedStyle(Ie).font, qe.textContent = Ie.textContent, document.body.appendChild(qe), Fe = qe.offsetWidth, document.body.removeChild(qe);
38448
+ }
38449
+ const Ae = x.current.querySelector(".ui-justify-between"), Re = Ae == null ? void 0 : Ae.firstElementChild, _e = e.headerIcon ? Re == null ? void 0 : Re.querySelector(".ui-flex-shrink-0") : null;
38450
+ _e && _e.offsetWidth > 0 && (Fe += _e.offsetWidth + 8);
38451
+ const Be = Ae == null ? void 0 : Ae.lastElementChild, ot = Be ? Be.offsetWidth : 0, vt = Fe + ot + 48;
38452
+ (Fe > 0 || ot > 0) && (de = Math.max(de, vt));
38453
+ const Je = x.current.closest("table");
38454
+ let Ve = 0;
38455
+ Je && Je.querySelectorAll(`td[data-column-id="${e.id}"]`).forEach((Lt) => {
38456
+ const st = Lt.scrollWidth;
38457
+ Ve = Math.max(Ve, st);
38427
38458
  });
38428
- const Je = Fe > 0 ? Fe + 32 : 0;
38429
- pe = Math.max(pe, Je);
38430
- const wt = Math.max(80, pe || 80), Ke = typeof e.originalWidth == "number" ? e.originalWidth : void 0;
38459
+ const Ue = Ve > 0 ? Ve + 32 : 0;
38460
+ de = Math.max(de, Ue);
38461
+ const bt = Math.max(80, de || 80), Ke = typeof e.originalWidth == "number" ? e.originalWidth : void 0;
38431
38462
  P.current = Math.min(
38432
38463
  z.current,
38433
- wt,
38464
+ bt,
38434
38465
  Ke ?? 1 / 0
38435
38466
  );
38436
38467
  }, ae = V(() => {
@@ -38439,14 +38470,14 @@ const T5 = ({
38439
38470
  ee.current.style.top = `${he.bottom - 16}px`, ee.current.style.left = `${he.right - 16}px`;
38440
38471
  }, []), ge = V((he) => {
38441
38472
  if (!E.current) return;
38442
- const Ve = he.clientX - H.current, pe = Math.abs(Ve), Ne = Z.current;
38443
- if (!Ne && pe < 3)
38473
+ const Te = he.clientX - H.current, de = Math.abs(Te), Ie = Z.current;
38474
+ if (!Ie && de < 3)
38444
38475
  return;
38445
- Ne || (Z.current = !0, D(!0));
38446
- const Ue = he.clientX - T.current, ze = isNaN(z.current) || z.current <= 0 ? 150 : z.current, Re = isNaN(P.current) || P.current <= 0 ? 80 : P.current, Ze = Math.max(Re, ze + Ue);
38447
- isNaN(Ze) || Ze <= 0 || (R.current && cancelAnimationFrame(R.current), R.current = requestAnimationFrame(() => {
38448
- var Ae;
38449
- (Ae = E.current) == null || Ae.call(E, Ze, z.current), ae();
38476
+ Ie || (Z.current = !0, D(!0));
38477
+ const Fe = he.clientX - T.current, Ae = isNaN(z.current) || z.current <= 0 ? 150 : z.current, Re = isNaN(P.current) || P.current <= 0 ? 80 : P.current, _e = Math.max(Re, Ae + Fe);
38478
+ isNaN(_e) || _e <= 0 || (R.current && cancelAnimationFrame(R.current), R.current = requestAnimationFrame(() => {
38479
+ var Be;
38480
+ (Be = E.current) == null || Be.call(E, _e, z.current), ae();
38450
38481
  }));
38451
38482
  }, [ae]);
38452
38483
  Y(() => {
@@ -38467,15 +38498,15 @@ const T5 = ({
38467
38498
  };
38468
38499
  return Y(() => {
38469
38500
  if (I) {
38470
- const he = (pe) => {
38471
- var Ne;
38472
- return (Ne = $.current) == null ? void 0 : Ne.call($, pe);
38473
- }, Ve = () => {
38474
- var pe;
38475
- return (pe = K.current) == null ? void 0 : pe.call(K);
38501
+ const he = (de) => {
38502
+ var Ie;
38503
+ return (Ie = $.current) == null ? void 0 : Ie.call($, de);
38504
+ }, Te = () => {
38505
+ var de;
38506
+ return (de = K.current) == null ? void 0 : de.call(K);
38476
38507
  };
38477
- return document.addEventListener("mousemove", he), document.addEventListener("mouseup", Ve), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
38478
- document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", Ve), document.body.style.cursor = "", document.body.style.userSelect = "", R.current && (cancelAnimationFrame(R.current), R.current = null);
38508
+ return document.addEventListener("mousemove", he), document.addEventListener("mouseup", Te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
38509
+ document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", Te), document.body.style.cursor = "", document.body.style.userSelect = "", R.current && (cancelAnimationFrame(R.current), R.current = null);
38479
38510
  };
38480
38511
  }
38481
38512
  }, [I]), /* @__PURE__ */ b(
@@ -38609,7 +38640,7 @@ const T5 = ({
38609
38640
  ),
38610
38641
  style: {
38611
38642
  top: (((be = x.current) == null ? void 0 : be.getBoundingClientRect().bottom) ?? 0) - 16,
38612
- left: (((Ie = x.current) == null ? void 0 : Ie.getBoundingClientRect().right) ?? 0) - 16
38643
+ left: (((Ne = x.current) == null ? void 0 : Ne.getBoundingClientRect().right) ?? 0) - 16
38613
38644
  },
38614
38645
  onMouseDown: J,
38615
38646
  onMouseEnter: Ce,
@@ -38653,7 +38684,7 @@ const T5 = ({
38653
38684
  ), x = (S) => {
38654
38685
  e.disabled || S.target.closest("button") || u == null || u(e);
38655
38686
  }, I = !e.isParent && "_isChild" in e && e._isChild;
38656
- return /* @__PURE__ */ b($e, { children: [
38687
+ return /* @__PURE__ */ b(Ze, { children: [
38657
38688
  /* @__PURE__ */ b(
38658
38689
  "tr",
38659
38690
  {
@@ -38677,7 +38708,7 @@ const T5 = ({
38677
38708
  ...(d || v) && { left: 0 }
38678
38709
  },
38679
38710
  children: !I && /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
38680
- Wn,
38711
+ ei,
38681
38712
  {
38682
38713
  checked: L,
38683
38714
  onChange: () => s == null ? void 0 : s(e),
@@ -38713,7 +38744,7 @@ const T5 = ({
38713
38744
  }
38714
38745
  ),
38715
38746
  I && l && /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
38716
- Wn,
38747
+ ei,
38717
38748
  {
38718
38749
  checked: L,
38719
38750
  onChange: () => s == null ? void 0 : s(e),
@@ -38760,8 +38791,8 @@ const T5 = ({
38760
38791
  else if (typeof $.width == "number")
38761
38792
  K = $.width;
38762
38793
  else if (typeof $.width == "string") {
38763
- const de = parseInt($.width, 10);
38764
- isNaN(de) || (K = de);
38794
+ const pe = parseInt($.width, 10);
38795
+ isNaN(pe) || (K = pe);
38765
38796
  }
38766
38797
  B += K;
38767
38798
  }
@@ -38792,7 +38823,7 @@ const T5 = ({
38792
38823
  ]
38793
38824
  }
38794
38825
  ),
38795
- e.expanded && e.children && e.children.length > 0 && /* @__PURE__ */ r($e, { children: e.children.map((S) => /* @__PURE__ */ r(
38826
+ e.expanded && e.children && e.children.length > 0 && /* @__PURE__ */ r(Ze, { children: e.children.map((S) => /* @__PURE__ */ r(
38796
38827
  a0,
38797
38828
  {
38798
38829
  row: { ...S, _isChild: !0 },
@@ -39018,7 +39049,7 @@ const T5 = ({
39018
39049
  ...(f || N) && { left: 0 }
39019
39050
  },
39020
39051
  children: /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
39021
- Wn,
39052
+ ei,
39022
39053
  {
39023
39054
  checked: s,
39024
39055
  indeterminate: a && !s,
@@ -39159,7 +39190,7 @@ const T5 = ({
39159
39190
  /* @__PURE__ */ r("h3", { className: "ui-text-heading-h2 ui-font-heading-h2 ui-leading-heading-h2 ui-tracking-heading-h2", children: u }),
39160
39191
  l && /* @__PURE__ */ r("p", { className: "ui-leading-body-md ui-w-full ui-text-body-md-regular ui-font-body-md-regular ui-tracking-body-md ui-text-tertiary", children: l })
39161
39192
  ] }),
39162
- n && /* @__PURE__ */ r(Te, { variant: "button", color: "primary", size: "md", onClick: n.onClick, children: n.label })
39193
+ n && /* @__PURE__ */ r(Ee, { variant: "button", color: "primary", size: "md", onClick: n.onClick, children: n.label })
39163
39194
  ] });
39164
39195
  }, A5 = ({
39165
39196
  rows: e,
@@ -39264,12 +39295,12 @@ const T5 = ({
39264
39295
  c && "ui-table-hover",
39265
39296
  h && "ui-table-dense",
39266
39297
  C
39267
- ), de = j(
39298
+ ), pe = j(
39268
39299
  "ui-w-full ui-min-w-0 ui-h-full ui-overflow-x-auto ui-overflow-y-auto custom-scrollbar",
39269
39300
  "ui-pb-16"
39270
39301
  // padding-bottom para crear espacio arriba del scrollbar horizontal
39271
39302
  ), F = B.length === 0 && !o;
39272
- return /* @__PURE__ */ b("div", { className: de, children: [
39303
+ return /* @__PURE__ */ b("div", { className: pe, children: [
39273
39304
  /* @__PURE__ */ b("style", { children: [
39274
39305
  f && `
39275
39306
  td[data-column-id="${f}"],
@@ -39382,7 +39413,7 @@ const T5 = ({
39382
39413
  ] }),
39383
39414
  o.length > 0 && /* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
39384
39415
  /* @__PURE__ */ r("div", { className: "ui-flex ui-items-center ui-gap-16", children: o.map((u, l) => /* @__PURE__ */ r(
39385
- Te,
39416
+ Ee,
39386
39417
  {
39387
39418
  theme: u.label ? "solid" : "icon",
39388
39419
  color: u.color || "secondary",
@@ -39395,7 +39426,7 @@ const T5 = ({
39395
39426
  },
39396
39427
  `action-${l}-${u.label || u.icon}`
39397
39428
  )) }),
39398
- t && /* @__PURE__ */ b($e, { children: [
39429
+ t && /* @__PURE__ */ b(Ze, { children: [
39399
39430
  /* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
39400
39431
  /* @__PURE__ */ r(
39401
39432
  ke,
@@ -39404,7 +39435,7 @@ const T5 = ({
39404
39435
  color: "secondary",
39405
39436
  size: "xs",
39406
39437
  pill: "pill",
39407
- iconProps: { icon: xt },
39438
+ iconProps: { icon: Mt },
39408
39439
  onClick: t
39409
39440
  }
39410
39441
  )
@@ -39637,7 +39668,7 @@ const T5 = ({
39637
39668
  handleCellBlur: t,
39638
39669
  isCellFocused: n
39639
39670
  };
39640
- }, Rn = (e) => ({
39671
+ }, Bn = (e) => ({
39641
39672
  columnId: e.columnId,
39642
39673
  operator: e.operator,
39643
39674
  value: e.value,
@@ -39663,7 +39694,7 @@ const T5 = ({
39663
39694
  };
39664
39695
  t((c) => {
39665
39696
  const h = [...c, d];
39666
- return i == null || i(h.map(Rn)), h;
39697
+ return i == null || i(h.map(Bn)), h;
39667
39698
  });
39668
39699
  },
39669
39700
  [i]
@@ -39673,7 +39704,7 @@ const T5 = ({
39673
39704
  const h = c.map(
39674
39705
  (p) => p.id === f ? { ...p, ...d } : p
39675
39706
  );
39676
- return i == null || i(h.map(Rn)), h;
39707
+ return i == null || i(h.map(Bn)), h;
39677
39708
  });
39678
39709
  },
39679
39710
  [i]
@@ -39681,7 +39712,7 @@ const T5 = ({
39681
39712
  (f) => {
39682
39713
  t((d) => {
39683
39714
  const c = d.filter((h) => h.id !== f);
39684
- return i == null || i(c.map(Rn)), c;
39715
+ return i == null || i(c.map(Bn)), c;
39685
39716
  });
39686
39717
  },
39687
39718
  [i]
@@ -39689,7 +39720,7 @@ const T5 = ({
39689
39720
  t([]), i == null || i([]);
39690
39721
  }, [i]), l = V(
39691
39722
  (f) => {
39692
- t(f), i == null || i(f.map(Rn));
39723
+ t(f), i == null || i(f.map(Bn));
39693
39724
  },
39694
39725
  [i]
39695
39726
  );
@@ -39943,7 +39974,7 @@ function o6(e) {
39943
39974
  render: (d, c, h) => {
39944
39975
  const p = u ? u(d, c, h) : [], m = Array.isArray(p) ? p : [];
39945
39976
  return [{
39946
- icon: c._isEditing ? On : Ri,
39977
+ icon: c._isEditing ? Hn : Ri,
39947
39978
  tooltip: c._isEditing ? "Guardar" : "Editar",
39948
39979
  color: c._isEditing ? "secondary" : "tertiary",
39949
39980
  onClick: () => {
@@ -39964,7 +39995,7 @@ function o6(e) {
39964
39995
  editable: "none",
39965
39996
  render: (a, u) => [
39966
39997
  {
39967
- icon: u._isEditing ? On : Ri,
39998
+ icon: u._isEditing ? Hn : Ri,
39968
39999
  tooltip: u._isEditing ? "Guardar " : "Editar",
39969
40000
  onClick: () => {
39970
40001
  u._toggleEdit && u._toggleEdit();
@@ -39977,7 +40008,7 @@ function o6(e) {
39977
40008
  function s6(e) {
39978
40009
  return e.map((i) => i.width === void 0 && i.resizable !== !1 ? { ...i, resizable: !0 } : i);
39979
40010
  }
39980
- const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e), Be = (e) => {
40011
+ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e), $e = (e) => {
39981
40012
  const [i, o, t] = e.split("T")[0].split("-").map(Number);
39982
40013
  return new Date(i, o - 1, t);
39983
40014
  }, d0 = (e) => {
@@ -40003,7 +40034,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
40003
40034
  return { start: o, end: o };
40004
40035
  }
40005
40036
  }, Xt = (e, i, o) => {
40006
- const t = Be(String(e)), n = Be(String(i)), s = t.getTime(), a = n.getTime();
40037
+ const t = $e(String(e)), n = $e(String(i)), s = t.getTime(), a = n.getTime();
40007
40038
  switch (o) {
40008
40039
  case "equals":
40009
40040
  return s === a;
@@ -40024,7 +40055,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
40024
40055
  }
40025
40056
  }, a6 = (e, i) => {
40026
40057
  if (!Oe(e)) return !1;
40027
- const o = Be(String(e)), { start: t, end: n } = d0(i), s = o.getTime(), a = t.getTime(), u = n.getTime();
40058
+ const o = $e(String(e)), { start: t, end: n } = d0(i), s = o.getTime(), a = t.getTime(), u = n.getTime();
40028
40059
  return s >= a && s <= u;
40029
40060
  }, b1 = (e, i, o, t) => {
40030
40061
  const n = e == null || e === "";
@@ -40072,7 +40103,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
40072
40103
  case "between":
40073
40104
  if (n) return !1;
40074
40105
  if (Oe(e) && Oe(o) && Oe(t)) {
40075
- const l = Be(String(e)), f = Be(String(o)), d = Be(String(t)), c = l.getTime(), h = Math.min(f.getTime(), d.getTime()), p = Math.max(f.getTime(), d.getTime());
40106
+ const l = $e(String(e)), f = $e(String(o)), d = $e(String(t)), c = l.getTime(), h = Math.min(f.getTime(), d.getTime()), p = Math.max(f.getTime(), d.getTime());
40076
40107
  return c >= h && c <= p;
40077
40108
  }
40078
40109
  const s = Number(e), a = Math.min(Number(o), Number(t)), u = Math.max(Number(o), Number(t));
@@ -40240,7 +40271,7 @@ const af = ({
40240
40271
  onEditModeChange: Z,
40241
40272
  onSuccessComplete: $
40242
40273
  }) => {
40243
- const K = q(null), [ee, de] = A(null), F = q(/* @__PURE__ */ new Set()), ne = q(/* @__PURE__ */ new Set()), ie = r6({
40274
+ const K = q(null), [ee, pe] = A(null), F = q(/* @__PURE__ */ new Set()), ne = q(/* @__PURE__ */ new Set()), ie = r6({
40244
40275
  configKey: M,
40245
40276
  persistConfig: x,
40246
40277
  queryPersist: I,
@@ -40265,22 +40296,22 @@ const af = ({
40265
40296
  selectedIds: Ce,
40266
40297
  selectedCount: se,
40267
40298
  allSelected: be,
40268
- someSelected: Ie,
40299
+ someSelected: Ne,
40269
40300
  handleRowSelect: he,
40270
- handleSelectAll: Ve,
40271
- clearSelection: pe
40301
+ handleSelectAll: Te,
40302
+ clearSelection: de
40272
40303
  } = G5(i, n == null ? void 0 : n.multiple, {
40273
40304
  isRowSelectable: _
40274
- }), { handleRowExpand: Ne, applyExpandedState: Ue } = W5(), { handleCellFocus: ze, handleCellBlur: Re, isCellFocused: Ze } = e6(), { filters: Ae, setAllFilters: Ge } = t6({
40305
+ }), { handleRowExpand: Ie, applyExpandedState: Fe } = W5(), { handleCellFocus: Ae, handleCellBlur: Re, isCellFocused: _e } = e6(), { filters: Be, setAllFilters: ot } = t6({
40275
40306
  initialFilters: me,
40276
40307
  onFiltersChange: (ue) => {
40277
40308
  k == null || k(ue), x && M && I && ie.updateFilters(ue);
40278
40309
  }
40279
- }), { toggleRowEdit: kt, applyEditState: ot } = n6({
40310
+ }), { toggleRowEdit: vt, applyEditState: Je } = n6({
40280
40311
  externalEditingRowIds: E,
40281
40312
  onEditingRowIdsChange: B,
40282
40313
  onEditModeChange: Z
40283
- }), [Fe, Je] = A(
40314
+ }), [Ve, Ue] = A(
40284
40315
  () => (x && M && I ? ie.searchQuery : "") ?? ""
40285
40316
  );
40286
40317
  Y(() => {
@@ -40291,56 +40322,56 @@ const af = ({
40291
40322
  document.removeEventListener("mousedown", ue);
40292
40323
  };
40293
40324
  }, [Re]);
40294
- const wt = q(Ae.length), Ke = q(Fe);
40325
+ const bt = q(Be.length), Ke = q(Ve);
40295
40326
  Y(() => {
40296
- var Ee;
40297
- const ue = wt.current !== Ae.length, Se = Ke.current !== Fe;
40298
- a != null && a.enabled && (ue || Se) && a.currentPage !== 1 && ((Ee = a == null ? void 0 : a.onPageChange) == null || Ee.call(a, 1)), wt.current = Ae.length, Ke.current = Fe;
40299
- }, [Ae.length, Fe, a]);
40327
+ var Pe;
40328
+ const ue = bt.current !== Be.length, Se = Ke.current !== Ve;
40329
+ a != null && a.enabled && (ue || Se) && a.currentPage !== 1 && ((Pe = a == null ? void 0 : a.onPageChange) == null || Pe.call(a, 1)), bt.current = Be.length, Ke.current = Ve;
40330
+ }, [Be.length, Ve, a]);
40300
40331
  const tt = oe(
40301
40332
  () => l6({
40302
40333
  initialRows: i,
40303
40334
  columns: we,
40304
- internalSearchQuery: Fe,
40335
+ internalSearchQuery: Ve,
40305
40336
  internalSearchEnabled: u == null ? void 0 : u.internalSearch
40306
40337
  }),
40307
- [i, Fe, we, u == null ? void 0 : u.internalSearch]
40338
+ [i, Ve, we, u == null ? void 0 : u.internalSearch]
40308
40339
  ), qe = oe(
40309
40340
  () => c6({
40310
40341
  searchedRows: tt,
40311
- filters: Ae,
40342
+ filters: Be,
40312
40343
  columns: we,
40313
40344
  internalFiltersEnabled: u == null ? void 0 : u.internalFilters
40314
40345
  }),
40315
- [tt, Ae, we, u == null ? void 0 : u.internalFilters]
40316
- ), vt = oe(
40346
+ [tt, Be, we, u == null ? void 0 : u.internalFilters]
40347
+ ), Lt = oe(
40317
40348
  () => d6({
40318
40349
  filteredRows: qe,
40319
40350
  sortConfig: ge,
40320
40351
  columns: we
40321
40352
  }),
40322
40353
  [qe, ge, we]
40323
- ), st = vt.length, Bt = oe(
40354
+ ), st = Lt.length, Bt = oe(
40324
40355
  () => p6({
40325
- sortedRows: vt,
40356
+ sortedRows: Lt,
40326
40357
  paginationConfig: a,
40327
40358
  toolbarConfig: u,
40328
40359
  totalAfterFilters: st
40329
40360
  }),
40330
40361
  [
40331
- vt,
40362
+ Lt,
40332
40363
  a,
40333
40364
  st,
40334
40365
  u == null ? void 0 : u.internalSearch,
40335
40366
  u == null ? void 0 : u.internalFilters
40336
40367
  ]
40337
- ), ce = Ue(Bt), je = oe(() => ot(ce).map((Se) => ({
40368
+ ), ce = Fe(Bt), je = oe(() => Je(ce).map((Se) => ({
40338
40369
  ...Se,
40339
- _toggleEdit: () => kt(Se.id)
40340
- })), [ce, ot, kt]), _e = oe(() => {
40341
- var Ee, We, et;
40370
+ _toggleEdit: () => vt(Se.id)
40371
+ })), [ce, Je, vt]), Ge = oe(() => {
40372
+ var Pe, We, et;
40342
40373
  if (a != null && a.enabled) {
40343
- const $t = ((Ee = je[0]) == null ? void 0 : Ee.id) ?? "";
40374
+ const $t = ((Pe = je[0]) == null ? void 0 : Pe.id) ?? "";
40344
40375
  return `${a.currentPage ?? 1}-${je.length}-${$t}`;
40345
40376
  }
40346
40377
  const ue = ((We = je[0]) == null ? void 0 : We.id) ?? "", Se = ((et = je[je.length - 1]) == null ? void 0 : et.id) ?? "";
@@ -40349,8 +40380,8 @@ const af = ({
40349
40380
  () => f6({
40350
40381
  empty: t,
40351
40382
  rowsWithEditStateLength: je.length,
40352
- internalSearchQuery: Fe,
40353
- filtersLength: Ae.length,
40383
+ internalSearchQuery: Ve,
40384
+ filtersLength: Be.length,
40354
40385
  initialRowsLength: i.length,
40355
40386
  searchedRowsLength: tt.length,
40356
40387
  filteredRowsLength: qe.length
@@ -40358,29 +40389,29 @@ const af = ({
40358
40389
  [
40359
40390
  t,
40360
40391
  je.length,
40361
- Fe,
40362
- Ae.length,
40392
+ Ve,
40393
+ Be.length,
40363
40394
  i.length,
40364
40395
  tt.length,
40365
40396
  qe.length
40366
40397
  ]
40367
- ), Pe = (ue) => {
40398
+ ), ze = (ue) => {
40368
40399
  const Se = Z5(ge, ue);
40369
40400
  ve(ue), D == null || D(Se), x && M && Se && ie.updateSort(Se);
40370
40401
  }, pt = (ue) => {
40371
40402
  }, Xe = (ue) => {
40372
40403
  te(ue);
40373
- const Se = we.find((Ee) => Ee.id === ue);
40404
+ const Se = we.find((Pe) => Pe.id === ue);
40374
40405
  x && M && Se && ie.updateColumnLock(ue, !Se.locked);
40375
- }, W = (ue, Se, Ee) => {
40376
- J(ue, Se), O == null || O(ue, Se), x && M && ie.updateColumnWidth(ue, Se, Ee);
40406
+ }, W = (ue, Se, Pe) => {
40407
+ J(ue, Se), O == null || O(ue, Se), x && M && ie.updateColumnWidth(ue, Se, Pe);
40377
40408
  }, Q = (ue) => {
40378
- if (we.find((Ee) => Ee.id === ue) && K.current) {
40379
- const Ee = K.current.querySelector(`th[data-column-id="${ue}"]`), We = K.current.querySelectorAll(`td[data-column-id="${ue}"]`);
40380
- if (Ee || We.length > 0) {
40409
+ if (we.find((Pe) => Pe.id === ue) && K.current) {
40410
+ const Pe = K.current.querySelector(`th[data-column-id="${ue}"]`), We = K.current.querySelectorAll(`td[data-column-id="${ue}"]`);
40411
+ if (Pe || We.length > 0) {
40381
40412
  let et = 0;
40382
- if (Ee) {
40383
- const Yt = Ee.querySelector(".ui-truncate");
40413
+ if (Pe) {
40414
+ const Yt = Pe.querySelector(".ui-truncate");
40384
40415
  Yt && (et = Math.max(et, Yt.scrollWidth + 80));
40385
40416
  }
40386
40417
  We.forEach((Yt) => {
@@ -40391,33 +40422,33 @@ const af = ({
40391
40422
  }
40392
40423
  }
40393
40424
  }, xe = (ue, Se) => {
40394
- de(Se ? ue : null);
40425
+ pe(Se ? ue : null);
40395
40426
  }, Me = (ue) => {
40396
40427
  var Se;
40397
- Je(ue), (Se = u == null ? void 0 : u.onSearch) == null || Se.call(u, ue), x && M && I && ie.setSearchQuery(ue);
40428
+ Ue(ue), (Se = u == null ? void 0 : u.onSearch) == null || Se.call(u, ue), x && M && I && ie.setSearchQuery(ue);
40398
40429
  }, De = (ue, Se) => {
40399
40430
  U(ue, Se), T == null || T(ue, Se), x && M && ie.updateColumnVisibility(ue, Se);
40400
40431
  }, Ht = (ue) => {
40401
- ue.forEach(({ columnId: Se, visible: Ee }) => {
40402
- U(Se, Ee), T == null || T(Se, Ee);
40432
+ ue.forEach(({ columnId: Se, visible: Pe }) => {
40433
+ U(Se, Pe), T == null || T(Se, Pe);
40403
40434
  }), x && M && ie.updateMultipleColumnVisibility(ue);
40404
40435
  }, Dt = (ue) => {
40405
- const Se = ue.map((Ee) => Ee.id);
40436
+ const Se = ue.map((Pe) => Pe.id);
40406
40437
  ae(Se), H == null || H(ue), x && M && ie.updateColumnOrder(ue);
40407
40438
  }, Ut = (ue) => {
40408
- Ne(ue), P == null || P(ue);
40409
- }, tn = (ue, Se, Ee) => {
40439
+ Ie(ue), P == null || P(ue);
40440
+ }, tn = (ue, Se, Pe) => {
40410
40441
  F.current.add(ue);
40411
40442
  const We = i.find((et) => et.id === ue);
40412
- R && R(ue, Se, Ee, We);
40443
+ R && R(ue, Se, Pe, We);
40413
40444
  };
40414
40445
  Y(() => {
40415
40446
  if (!$) return;
40416
- const ue = new Set(E || []), Se = ne.current, Ee = [];
40447
+ const ue = new Set(E || []), Se = ne.current, Pe = [];
40417
40448
  if (Se.forEach((We) => {
40418
- ue.has(We) || Ee.push(We);
40419
- }), Ee.length > 0) {
40420
- const We = Ee.filter((et) => F.current.has(et));
40449
+ ue.has(We) || Pe.push(We);
40450
+ }), Pe.length > 0) {
40451
+ const We = Pe.filter((et) => F.current.has(et));
40421
40452
  We.length > 0 && ($(We), We.forEach((et) => {
40422
40453
  F.current.delete(et);
40423
40454
  }));
@@ -40434,26 +40465,26 @@ const af = ({
40434
40465
  "ui-imj ui-relative ui-flex ui-h-full ui-w-full ui-max-w-full ui-flex-col ui-overflow-hidden ui-bg-fill ui-rounded-surface-sheet ui-p-16",
40435
40466
  m && "ui-border ui-border-default",
40436
40467
  N
40437
- ), St = (ue) => {
40438
- Ge(ue), !((u == null ? void 0 : u.internalFilters) ?? !1) && k && k(ue);
40468
+ ), kt = (ue) => {
40469
+ ot(ue), !((u == null ? void 0 : u.internalFilters) ?? !1) && k && k(ue);
40439
40470
  };
40440
40471
  return /* @__PURE__ */ b("div", { ref: K, className: Gt, children: [
40441
40472
  u && /* @__PURE__ */ r(
40442
40473
  h5,
40443
40474
  {
40444
40475
  ...u,
40445
- searchValue: Fe,
40476
+ searchValue: Ve,
40446
40477
  showFilters: u.showFilters ?? !0,
40447
40478
  selectedCount: se,
40448
40479
  selectedIds: Ce,
40449
40480
  columns: we,
40450
40481
  rows: i,
40451
- filters: Ae,
40482
+ filters: Be,
40452
40483
  onSearch: Me,
40453
40484
  onColumnVisibilityChange: De,
40454
40485
  onMultipleColumnVisibilityChange: Ht,
40455
40486
  onColumnReorder: Dt,
40456
- onFiltersApply: St
40487
+ onFiltersApply: kt
40457
40488
  }
40458
40489
  ),
40459
40490
  /* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
@@ -40466,7 +40497,7 @@ const af = ({
40466
40497
  selection: n,
40467
40498
  isRowSelectionDisabled: s ? (ue) => v1(ue, s) : void 0,
40468
40499
  sort: ge,
40469
- filters: Ae,
40500
+ filters: Be,
40470
40501
  expandable: d,
40471
40502
  resizable: c,
40472
40503
  resizeHoverColumnId: ee,
@@ -40479,10 +40510,10 @@ const af = ({
40479
40510
  stickyActions: w,
40480
40511
  selectedIds: Ce,
40481
40512
  allSelected: be,
40482
- someSelected: Ie,
40483
- onSelectAll: Ve,
40513
+ someSelected: Ne,
40514
+ onSelectAll: Te,
40484
40515
  onRowSelect: he,
40485
- onSort: Pe,
40516
+ onSort: ze,
40486
40517
  onFilter: pt,
40487
40518
  onLock: Xe,
40488
40519
  onResize: W,
@@ -40490,10 +40521,10 @@ const af = ({
40490
40521
  onResizeHover: xe,
40491
40522
  onRowClick: z,
40492
40523
  onRowExpand: Ut,
40493
- onCellFocus: ze,
40494
- isCellFocused: Ze,
40524
+ onCellFocus: Ae,
40525
+ isCellFocused: _e,
40495
40526
  onCellChange: tn,
40496
- rowsDataKey: _e
40527
+ rowsDataKey: Ge
40497
40528
  }
40498
40529
  ) }),
40499
40530
  (n == null ? void 0 : n.showSelectionBar) && se > 0 && /* @__PURE__ */ r(
@@ -40510,7 +40541,7 @@ const af = ({
40510
40541
  selectedIds: Ce,
40511
40542
  actions: n.actions,
40512
40543
  selectionText: n.selectionText,
40513
- onClearSelection: n.showClearSelection ? pe : void 0,
40544
+ onClearSelection: n.showClearSelection ? de : void 0,
40514
40545
  className: "ui-pointer-events-auto"
40515
40546
  }
40516
40547
  )
@@ -40608,9 +40639,9 @@ const af = ({
40608
40639
  const n = String(e).toLowerCase(), s = String(o).toLowerCase();
40609
40640
  switch (i.operator) {
40610
40641
  case "equals":
40611
- return Oe(e) && Oe(o) ? Be(e).getTime() === Be(o).getTime() : n === s;
40642
+ return Oe(e) && Oe(o) ? $e(e).getTime() === $e(o).getTime() : n === s;
40612
40643
  case "notEquals":
40613
- return Oe(e) && Oe(o) ? Be(e).getTime() !== Be(o).getTime() : n !== s;
40644
+ return Oe(e) && Oe(o) ? $e(e).getTime() !== $e(o).getTime() : n !== s;
40614
40645
  case "contains":
40615
40646
  return n.includes(s);
40616
40647
  case "notContains":
@@ -40620,22 +40651,22 @@ const af = ({
40620
40651
  case "endsWith":
40621
40652
  return n.endsWith(s);
40622
40653
  case "gt":
40623
- return Oe(e) && Oe(o) ? Be(e).getTime() > Be(o).getTime() : Number(e) > Number(o);
40654
+ return Oe(e) && Oe(o) ? $e(e).getTime() > $e(o).getTime() : Number(e) > Number(o);
40624
40655
  case "gte":
40625
- return Oe(e) && Oe(o) ? Be(e).getTime() >= Be(o).getTime() : Number(e) >= Number(o);
40656
+ return Oe(e) && Oe(o) ? $e(e).getTime() >= $e(o).getTime() : Number(e) >= Number(o);
40626
40657
  case "lt":
40627
- return Oe(e) && Oe(o) ? Be(e).getTime() < Be(o).getTime() : Number(e) < Number(o);
40658
+ return Oe(e) && Oe(o) ? $e(e).getTime() < $e(o).getTime() : Number(e) < Number(o);
40628
40659
  case "lte":
40629
- return Oe(e) && Oe(o) ? Be(e).getTime() <= Be(o).getTime() : Number(e) <= Number(o);
40660
+ return Oe(e) && Oe(o) ? $e(e).getTime() <= $e(o).getTime() : Number(e) <= Number(o);
40630
40661
  case "between":
40631
40662
  if (!i.value2) return !1;
40632
40663
  if (Oe(e) && Oe(o) && Oe(i.value2)) {
40633
- const f = Be(e).getTime(), d = Math.min(
40634
- Be(o).getTime(),
40635
- Be(i.value2).getTime()
40664
+ const f = $e(e).getTime(), d = Math.min(
40665
+ $e(o).getTime(),
40666
+ $e(i.value2).getTime()
40636
40667
  ), c = Math.max(
40637
- Be(o).getTime(),
40638
- Be(i.value2).getTime()
40668
+ $e(o).getTime(),
40669
+ $e(i.value2).getTime()
40639
40670
  );
40640
40671
  return f >= d && f <= c;
40641
40672
  }
@@ -40647,16 +40678,16 @@ const af = ({
40647
40678
  ) : o.some((f) => String(f).toLowerCase() === n) : !1;
40648
40679
  // Operadores específicos de fecha
40649
40680
  case "afterDate":
40650
- return !Oe(e) || !Oe(o) ? !1 : Be(e).getTime() > Be(o).getTime();
40681
+ return !Oe(e) || !Oe(o) ? !1 : $e(e).getTime() > $e(o).getTime();
40651
40682
  case "beforeDate":
40652
- return !Oe(e) || !Oe(o) ? !1 : Be(e).getTime() < Be(o).getTime();
40683
+ return !Oe(e) || !Oe(o) ? !1 : $e(e).getTime() < $e(o).getTime();
40653
40684
  // Operadores de fechas relativas
40654
40685
  case "thisMonth":
40655
40686
  case "lastMonth":
40656
40687
  case "thisYear":
40657
40688
  case "lastYear": {
40658
40689
  if (!Oe(e)) return !1;
40659
- const f = Be(e), { start: d, end: c } = d0(i.operator), h = f.getTime();
40690
+ const f = $e(e), { start: d, end: c } = d0(i.operator), h = f.getTime();
40660
40691
  return h >= d.getTime() && h <= c.getTime();
40661
40692
  }
40662
40693
  default:
@@ -40884,22 +40915,22 @@ function C0(e, i, o) {
40884
40915
  }) : typeof n == "object" ? C0(e, n, s) : e.append(s, String(n)));
40885
40916
  });
40886
40917
  }
40887
- let ei = null;
40918
+ let ti = null;
40888
40919
  class k6 extends Error {
40889
40920
  constructor(i, o, t, n) {
40890
40921
  super(i), this.status = o, this.statusText = t, this.data = n, this.name = "StrapiApiError";
40891
40922
  }
40892
40923
  }
40893
40924
  function pf(e) {
40894
- ei = e;
40925
+ ti = e;
40895
40926
  }
40896
40927
  function j6() {
40897
- if (!ei)
40928
+ if (!ti)
40898
40929
  throw new Error("Strapi client not configured. Call configureStrapiClient() first.");
40899
- return ei;
40930
+ return ti;
40900
40931
  }
40901
40932
  function ff() {
40902
- return ei !== null;
40933
+ return ti !== null;
40903
40934
  }
40904
40935
  async function wi(e, i = {}) {
40905
40936
  const o = j6(), t = e.startsWith("http") ? e : `${o.baseUrl}${e.startsWith("/") ? e : `/${e}`}`, n = {
@@ -41679,14 +41710,14 @@ class E6 {
41679
41710
  return { ...Tt };
41680
41711
  }
41681
41712
  }
41682
- const bt = new E6(), Of = () => bt, y0 = () => {
41713
+ const wt = new E6(), Of = () => wt, y0 = () => {
41683
41714
  const [e, i] = A({
41684
41715
  brand: null,
41685
41716
  neutral: null
41686
41717
  });
41687
41718
  Y(() => {
41688
- i(bt.getGroups());
41689
- const n = bt.subscribe((s) => {
41719
+ i(wt.getGroups());
41720
+ const n = wt.subscribe((s) => {
41690
41721
  i({ ...s });
41691
41722
  });
41692
41723
  return () => {
@@ -41702,7 +41733,7 @@ const bt = new E6(), Of = () => bt, y0 = () => {
41702
41733
  groups: e,
41703
41734
  activeGroups: o,
41704
41735
  leavingGroups: t,
41705
- dismissGroup: (n) => bt.dismissGroup(n)
41736
+ dismissGroup: (n) => wt.dismissGroup(n)
41706
41737
  };
41707
41738
  }, x0 = ye.memo(({ message: e }) => {
41708
41739
  const [i, o] = A(!0), t = q(null);
@@ -41745,7 +41776,7 @@ const bt = new E6(), Of = () => bt, y0 = () => {
41745
41776
  x0.displayName = "MessageItem";
41746
41777
  const Tr = ye.memo(({ messages: e }) => {
41747
41778
  const { getPositionClasses: i } = L0();
41748
- return Object.keys(e).length === 0 ? null : /* @__PURE__ */ r($e, { children: Object.entries(e).map(([o, t]) => {
41779
+ return Object.keys(e).length === 0 ? null : /* @__PURE__ */ r(Ze, { children: Object.entries(e).map(([o, t]) => {
41749
41780
  const n = o;
41750
41781
  return process.env.NODE_ENV !== "production" && ![
41751
41782
  "top-left",
@@ -41780,7 +41811,7 @@ const Hf = () => {
41780
41811
  }), [t]);
41781
41812
  const l = (c) => {
41782
41813
  var h;
41783
- c.stopPropagation(), bt.dismissGroup(n), (h = i.onClose) == null || h.call(i);
41814
+ c.stopPropagation(), wt.dismissGroup(n), (h = i.onClose) == null || h.call(i);
41784
41815
  };
41785
41816
  if (!s)
41786
41817
  return null;
@@ -41822,7 +41853,7 @@ const Hf = () => {
41822
41853
  });
41823
41854
  M0.displayName = "NotificationItem";
41824
41855
  const Er = ye.memo(({ groups: e }) => {
41825
- const { getPositionClasses: i } = L0(), o = bt.getConfig(), t = Object.values(e).filter(
41856
+ const { getPositionClasses: i } = L0(), o = wt.getConfig(), t = Object.values(e).filter(
41826
41857
  (s) => s !== null
41827
41858
  );
41828
41859
  if (t.length === 0)
@@ -41849,13 +41880,13 @@ const Df = () => {
41849
41880
  }, Vf = () => {
41850
41881
  const { messagesByPosition: e } = v0(), { groups: i } = y0();
41851
41882
  return Rt(
41852
- /* @__PURE__ */ b($e, { children: [
41883
+ /* @__PURE__ */ b(Ze, { children: [
41853
41884
  /* @__PURE__ */ r(Tr, { messages: e }),
41854
41885
  /* @__PURE__ */ r(Er, { groups: i })
41855
41886
  ] }),
41856
41887
  document.body
41857
41888
  );
41858
- }, Tf = nt, Ef = bt, Pf = {
41889
+ }, Tf = nt, Ef = wt, Pf = {
41859
41890
  // Métodos de toast (se apilan)
41860
41891
  success: nt.success.bind(nt),
41861
41892
  error: nt.error.bind(nt),
@@ -41865,10 +41896,10 @@ const Df = () => {
41865
41896
  dismiss: nt.dismiss.bind(nt),
41866
41897
  configure: nt.configure.bind(nt),
41867
41898
  // Métodos de notification (se agrupan)
41868
- brand: bt.brand.bind(bt),
41869
- neutral: bt.neutral.bind(bt),
41870
- dismissNotification: bt.dismissGroup.bind(bt),
41871
- configureNotification: bt.configure.bind(bt)
41899
+ brand: wt.brand.bind(wt),
41900
+ neutral: wt.neutral.bind(wt),
41901
+ dismissNotification: wt.dismissGroup.bind(wt),
41902
+ configureNotification: wt.configure.bind(wt)
41872
41903
  }, zf = ({
41873
41904
  text: e,
41874
41905
  count: i,
@@ -41921,7 +41952,7 @@ const Df = () => {
41921
41952
  k.onChange && k.onChange(O);
41922
41953
  }, x = () => /* @__PURE__ */ b("div", { className: v, children: [
41923
41954
  /* @__PURE__ */ r(
41924
- Te,
41955
+ Ee,
41925
41956
  {
41926
41957
  color: "secondary",
41927
41958
  size: "xs",
@@ -41955,7 +41986,7 @@ const Df = () => {
41955
41986
  ) }, `addon-${O}`);
41956
41987
  if (k.type === "date")
41957
41988
  return /* @__PURE__ */ r("div", { className: "ui-w-[160px]", children: /* @__PURE__ */ r(
41958
- Hn,
41989
+ Dn,
41959
41990
  {
41960
41991
  size: "xs",
41961
41992
  mode: ((H = k.datePickerProps) == null ? void 0 : H.mode) || "single",
@@ -41978,7 +42009,7 @@ const Df = () => {
41978
42009
  if (k.type === "button") {
41979
42010
  const E = k.label ? void 0 : k.icon, B = k.label && k.icon ? k.icon : void 0;
41980
42011
  return /* @__PURE__ */ r(
41981
- Te,
42012
+ Ee,
41982
42013
  {
41983
42014
  color: k.color || "secondary",
41984
42015
  size: "xs",
@@ -42000,15 +42031,15 @@ const Df = () => {
42000
42031
  }
42001
42032
  return null;
42002
42033
  }) }),
42003
- t && /* @__PURE__ */ b($e, { children: [
42034
+ t && /* @__PURE__ */ b(Ze, { children: [
42004
42035
  /* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
42005
- /* @__PURE__ */ r(Te, { color: "secondary", size: "xs", pill: "pill", icon: xt, onClick: t })
42036
+ /* @__PURE__ */ r(Ee, { color: "secondary", size: "xs", pill: "pill", icon: Mt, onClick: t })
42006
42037
  ] })
42007
42038
  ] }), I = () => /* @__PURE__ */ b("div", { className: v, children: [
42008
42039
  /* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-max ui-items-center ui-gap-16", children: m.map((k, O) => {
42009
42040
  const H = k.label ? void 0 : k.icon, T = k.label && k.icon ? k.icon : void 0;
42010
42041
  return /* @__PURE__ */ r(
42011
- Te,
42042
+ Ee,
42012
42043
  {
42013
42044
  color: k.color || "secondary",
42014
42045
  size: "xs",
@@ -42026,9 +42057,9 @@ const Df = () => {
42026
42057
  `button-${O}-${k.label || k.icon}`
42027
42058
  );
42028
42059
  }) }),
42029
- t && /* @__PURE__ */ b($e, { children: [
42060
+ t && /* @__PURE__ */ b(Ze, { children: [
42030
42061
  /* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
42031
- /* @__PURE__ */ r(Te, { color: "secondary", size: "xs", pill: "pill", icon: xt, onClick: t })
42062
+ /* @__PURE__ */ r(Ee, { color: "secondary", size: "xs", pill: "pill", icon: Mt, onClick: t })
42032
42063
  ] })
42033
42064
  ] }), N = (f ? a !== null && g !== null && C.length > 0 : d >= 0 && g !== null && C.length > 0) ? x() : I();
42034
42065
  return h ? Rt(
@@ -42098,7 +42129,7 @@ const Df = () => {
42098
42129
  }) => {
42099
42130
  const s = () => {
42100
42131
  const a = (o == null ? void 0 : o.type) || "people", { type: u, ...l } = o || {};
42101
- return /* @__PURE__ */ r(Mt, { type: a, size: "md", ...l });
42132
+ return /* @__PURE__ */ r(St, { type: a, size: "md", ...l });
42102
42133
  };
42103
42134
  return /* @__PURE__ */ b("div", { className: j("ui-flex ui-w-full ui-flex-col ui-gap-8", n), children: [
42104
42135
  /* @__PURE__ */ r(
@@ -42112,7 +42143,7 @@ const Df = () => {
42112
42143
  ),
42113
42144
  /* @__PURE__ */ r(vi, {}),
42114
42145
  /* @__PURE__ */ r(
42115
- Te,
42146
+ Ee,
42116
42147
  {
42117
42148
  theme: "solid",
42118
42149
  color: "tertiary",
@@ -42142,10 +42173,10 @@ const Df = () => {
42142
42173
  danger: "ui-bg-surface-danger ui-text-danger",
42143
42174
  info: "ui-bg-surface-info-hover ui-text-info"
42144
42175
  }, m = {
42145
- success: Pn,
42146
- warning: Pn,
42147
- danger: Pn,
42148
- info: Pn
42176
+ success: zn,
42177
+ warning: zn,
42178
+ danger: zn,
42179
+ info: zn
42149
42180
  };
42150
42181
  return /* @__PURE__ */ b(
42151
42182
  "div",
@@ -42196,7 +42227,7 @@ const Df = () => {
42196
42227
  ) }),
42197
42228
  h && /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-gap-8", children: [
42198
42229
  /* @__PURE__ */ r(
42199
- Te,
42230
+ Ee,
42200
42231
  {
42201
42232
  theme: "solid",
42202
42233
  color: "tertiary",
@@ -42208,13 +42239,13 @@ const Df = () => {
42208
42239
  }
42209
42240
  ),
42210
42241
  /* @__PURE__ */ r(
42211
- Te,
42242
+ Ee,
42212
42243
  {
42213
42244
  theme: "solid",
42214
42245
  color: "tertiary",
42215
42246
  size: "xxs",
42216
42247
  fullWidth: !0,
42217
- leftSlot: xt,
42248
+ leftSlot: Mt,
42218
42249
  onClick: l,
42219
42250
  children: "Concluir"
42220
42251
  }
@@ -42625,7 +42656,7 @@ const y1 = {
42625
42656
  return /* @__PURE__ */ b("div", { className: j("ui-imj", c), role: "listitem", children: [
42626
42657
  /* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-4", children: [
42627
42658
  a && /* @__PURE__ */ r(N0, { color: f, size: d }),
42628
- u && /* @__PURE__ */ r(Jn, { type: "body", size: "sm", color: "primary", children: u })
42659
+ u && /* @__PURE__ */ r(Wn, { type: "body", size: "sm", color: "primary", children: u })
42629
42660
  ] }),
42630
42661
  l && /* @__PURE__ */ r(Ci, { className: "ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children: l })
42631
42662
  ] });
@@ -42670,7 +42701,7 @@ function X6({
42670
42701
  function Ji(e, i, o) {
42671
42702
  return (i - e) / o;
42672
42703
  }
42673
- function ti(e, i, o, t) {
42704
+ function ni(e, i, o, t) {
42674
42705
  const n = o / (i - e);
42675
42706
  return (t - e) * n;
42676
42707
  }
@@ -42689,7 +42720,7 @@ function zr(e, i, o, t, n) {
42689
42720
  }
42690
42721
  }
42691
42722
  const Wi = 17;
42692
- function Zn(e, i, o) {
42723
+ function Fn(e, i, o) {
42693
42724
  const t = {
42694
42725
  second: 1e3,
42695
42726
  minute: 60,
@@ -42742,12 +42773,12 @@ function O0({
42742
42773
  canvasTimeEnd: t,
42743
42774
  canvasWidth: n
42744
42775
  }) {
42745
- const s = i - e, a = Math.max(e, o), u = Math.min(i, t), l = ti(
42776
+ const s = i - e, a = Math.max(e, o), u = Math.min(i, t), l = ni(
42746
42777
  o,
42747
42778
  t,
42748
42779
  n,
42749
42780
  a
42750
- ), d = ti(
42781
+ ), d = ni(
42751
42782
  o,
42752
42783
  t,
42753
42784
  n,
@@ -43004,7 +43035,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43004
43035
  calculateInteractionNewTimes: I0,
43005
43036
  calculateScrollCanvas: tr,
43006
43037
  calculateTimeForXPosition: Pr,
43007
- calculateXPositionForTime: ti,
43038
+ calculateXPositionForTime: ni,
43008
43039
  collision: D0,
43009
43040
  coordinateToTimeRatio: Ji,
43010
43041
  getCanvasBoundariesFromVisibleTime: $r,
@@ -43013,7 +43044,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43013
43044
  getGroupedItems: H0,
43014
43045
  getItemDimensions: z0,
43015
43046
  getItemWithInteractions: A0,
43016
- getMinUnit: Zn,
43047
+ getMinUnit: Fn,
43017
43048
  getNextUnit: Ar,
43018
43049
  getVisibleItems: Br,
43019
43050
  groupNoStack: T0,
@@ -43125,7 +43156,7 @@ function R0(e) {
43125
43156
  timelineUnit: u,
43126
43157
  timelineWidth: l
43127
43158
  }),
43128
- getLeftOffsetFromDate: (d) => ti(t, n, s, d),
43159
+ getLeftOffsetFromDate: (d) => ni(t, n, s, d),
43129
43160
  getDateFromLeftOffsetPosition: (d) => Pr(t, n, s, d),
43130
43161
  showPeriod: a
43131
43162
  }),
@@ -43145,7 +43176,7 @@ function R0(e) {
43145
43176
  R0.displayName = "TimelineStateProvider";
43146
43177
  const yi = Li.Consumer, u7 = () => dr(Li);
43147
43178
  qt.extend(Na);
43148
- const ni = class ni extends fr {
43179
+ const ii = class ii extends fr {
43149
43180
  constructor(i) {
43150
43181
  super(i), this.state = {
43151
43182
  interactMounted: !1,
@@ -43476,11 +43507,11 @@ const ni = class ni extends fr {
43476
43507
  });
43477
43508
  }
43478
43509
  };
43479
- ni.defaultProps = {
43510
+ ii.defaultProps = {
43480
43511
  selected: !1,
43481
43512
  itemRenderer: X6
43482
- }, ni.contextType = Li;
43483
- let rr = ni;
43513
+ }, ii.contextType = Li;
43514
+ let rr = ii;
43484
43515
  function l7(e, i) {
43485
43516
  const o = He(e, "canResize") !== void 0 ? He(e, "canResize") : i;
43486
43517
  return o === "left" || o === "both";
@@ -44504,10 +44535,10 @@ function G7([e], i, o, t = D7) {
44504
44535
  }
44505
44536
  cr.displayName = "DateHeader";
44506
44537
  qt.extend(Ia);
44507
- const ii = class ii extends fr {
44538
+ const ri = class ri extends fr {
44508
44539
  constructor(i) {
44509
44540
  super(i), this.getTimelineContext = () => {
44510
- const { width: p, visibleTimeStart: m, visibleTimeEnd: g, canvasTimeStart: C, canvasTimeEnd: v } = this.state, L = g - m, w = Qt(p, this.props.buffer), y = Zn(L, p, this.props.timeSteps);
44541
+ const { width: p, visibleTimeStart: m, visibleTimeEnd: g, canvasTimeStart: C, canvasTimeEnd: v } = this.state, L = g - m, w = Qt(p, this.props.buffer), y = Fn(L, p, this.props.timeSteps);
44511
44542
  return {
44512
44543
  canvasWidth: w,
44513
44544
  timelineUnit: y,
@@ -44519,7 +44550,7 @@ const ii = class ii extends fr {
44519
44550
  };
44520
44551
  }, this.getTimelineUnit = () => {
44521
44552
  const { width: p, visibleTimeStart: m, visibleTimeEnd: g } = this.state, { timeSteps: C } = this.props, v = g - m;
44522
- return Zn(v, p, C);
44553
+ return Fn(v, p, C);
44523
44554
  }, this.handleContainerWheel = (p) => {
44524
44555
  if (!(p.ctrlKey || p.metaKey || p.altKey)) return;
44525
44556
  p.preventDefault(), p.stopPropagation();
@@ -44974,7 +45005,7 @@ const ii = class ii extends fr {
44974
45005
  canvasTimeEnd: m
44975
45006
  } = this.state;
44976
45007
  let { dimensionItems: g, height: C, groupHeights: v, groupTops: L } = this.state;
44977
- const w = h - c, y = Qt(d, u), M = Zn(w, d, s);
45008
+ const w = h - c, y = Qt(d, u), M = Fn(w, d, s);
44978
45009
  if (!!l || !!f) {
44979
45010
  const S = vn(
44980
45011
  i,
@@ -45085,7 +45116,7 @@ const ii = class ii extends fr {
45085
45116
  );
45086
45117
  }
45087
45118
  };
45088
- ii.setDayjsLocale = qt.locale, ii.defaultProps = {
45119
+ ri.setDayjsLocale = qt.locale, ri.defaultProps = {
45089
45120
  sidebarWidth: 150,
45090
45121
  rightSidebarWidth: 0,
45091
45122
  dragSnap: 1e3 * 60 * 15,
@@ -45149,7 +45180,7 @@ ii.setDayjsLocale = qt.locale, ii.defaultProps = {
45149
45180
  children: null,
45150
45181
  selected: null
45151
45182
  };
45152
- let N1 = ii;
45183
+ let N1 = ri;
45153
45184
  const $f = (e) => e.children || null, q7 = 1e3 * 10;
45154
45185
  function Y7({
45155
45186
  interval: e = q7,
@@ -45401,13 +45432,13 @@ export {
45401
45432
  i0 as ActionsCell,
45402
45433
  po as Alert,
45403
45434
  Np as AlertDialog,
45404
- Mt as Avatar,
45435
+ St as Avatar,
45405
45436
  L5 as AvatarsCell,
45406
45437
  jt as Badge,
45407
45438
  Ju as Badges,
45408
- qn as BarProgress,
45439
+ Yn as BarProgress,
45409
45440
  qi as Body,
45410
- Te as Button,
45441
+ Ee as Button,
45411
45442
  M5 as ButtonCell,
45412
45443
  Ip as ButtonGroup,
45413
45444
  Zf as COLORS,
@@ -45435,7 +45466,7 @@ export {
45435
45466
  s0 as DateCell,
45436
45467
  cr as DateHeader,
45437
45468
  $8 as DateInput,
45438
- Hn as DatePicker,
45469
+ Dn as DatePicker,
45439
45470
  G8 as DatePickerPortal,
45440
45471
  P8 as Day,
45441
45472
  X8 as Drawer,
@@ -45498,7 +45529,7 @@ export {
45498
45529
  z8 as Month,
45499
45530
  Fo as MonthGrid,
45500
45531
  Z8 as MultipleCalendarsHeader,
45501
- Xn as NavigationButton,
45532
+ Qn as NavigationButton,
45502
45533
  M0 as NotificationItem,
45503
45534
  Er as NotificationPositions,
45504
45535
  Df as Notifier,
@@ -45522,7 +45553,7 @@ export {
45522
45553
  N1 as ReactCalendarTimeline,
45523
45554
  Uf as ReviewProvider,
45524
45555
  d7 as RowItems,
45525
- Wn as SelectionCheckbox,
45556
+ ei as SelectionCheckbox,
45526
45557
  ct as Separator,
45527
45558
  Rf as Sidebar,
45528
45559
  vi as SidebarDivider,
@@ -45559,7 +45590,7 @@ export {
45559
45590
  h5 as TableToolbar,
45560
45591
  wn as Tag,
45561
45592
  o0 as TagsCell,
45562
- Jn as Text,
45593
+ Wn as Text,
45563
45594
  y5 as TextFieldCell,
45564
45595
  N0 as TextListIndicator,
45565
45596
  Y6 as TextListWithData,
@@ -45574,7 +45605,7 @@ export {
45574
45605
  Ir as Toggle,
45575
45606
  zf as Toolbar,
45576
45607
  It as Tooltip,
45577
- yt as TruncatedWithTooltip,
45608
+ xt as TruncatedWithTooltip,
45578
45609
  en as Visual,
45579
45610
  R8 as WeekDay,
45580
45611
  Gp as Wysiwyg,
@@ -45617,7 +45648,7 @@ export {
45617
45648
  b6 as normalizeStrаpiItem,
45618
45649
  h0 as normalizeTeamsResponse,
45619
45650
  Ef as notification,
45620
- bt as notificationService,
45651
+ wt as notificationService,
45621
45652
  Pf as notify,
45622
45653
  p6 as paginateRowsForDisplay,
45623
45654
  H5 as parseDate,