@imj_media/ui 1.0.44 → 1.0.45

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
@@ -18270,7 +18270,7 @@ function j1({
18270
18270
  let L = q1[r];
18271
18271
  if (L || (L = d0[r]), !L)
18272
18272
  return console.warn(`Icono "${r}" no encontrado en ninguna variante`), null;
18273
- const p = L === q1[r] ? "outline" : "fill", l = V8[o], w = N1[t === "current" && p === "fill" ? "white" : t] || N1.blue, h = N1[n] || N1.black, x = /* @__PURE__ */ i(
18273
+ const p = L === q1[r] ? "outline" : "fill", l = V8[o], w = N1[t === "current" && p === "fill" ? "white" : t] || N1.blue, h = N1[n] || N1.black, j = /* @__PURE__ */ i(
18274
18274
  L,
18275
18275
  {
18276
18276
  width: l,
@@ -18279,15 +18279,15 @@ function j1({
18279
18279
  ...c,
18280
18280
  strokeWidth: d
18281
18281
  }
18282
- ), M = (b) => {
18283
- s && (b.stopPropagation(), s(b));
18282
+ ), v = (x) => {
18283
+ s && (x.stopPropagation(), s(x));
18284
18284
  };
18285
18285
  return s ? /* @__PURE__ */ i(
18286
18286
  "div",
18287
18287
  {
18288
18288
  role: "button",
18289
18289
  tabIndex: 0,
18290
- onClick: M,
18290
+ onClick: v,
18291
18291
  className: Y(
18292
18292
  e,
18293
18293
  "ui-inline-block ui-cursor-pointer ui-rounded-full ui-p-1 ui-transition-all ui-duration-200",
@@ -18297,7 +18297,7 @@ function j1({
18297
18297
  style: {
18298
18298
  "--tw-shadow-color": w
18299
18299
  },
18300
- children: x
18300
+ children: j
18301
18301
  }
18302
18302
  ) : /* @__PURE__ */ i(
18303
18303
  "i",
@@ -18307,7 +18307,7 @@ function j1({
18307
18307
  "ui-inline-block",
18308
18308
  a ? "ui-rounded-full ui-bg-blue-50 ui-p-2" : ""
18309
18309
  ),
18310
- children: x
18310
+ children: j
18311
18311
  }
18312
18312
  );
18313
18313
  }
@@ -18689,67 +18689,67 @@ const H8 = ({
18689
18689
  }
18690
18690
  ) : d ? /* @__PURE__ */ i(y8, { name: r, size: e ? "sm" : n, className: o }) : typeof r == "string" ? /* @__PURE__ */ i(O8, { slot: r, className: o, size: e ? "lg" : n }) : null;
18691
18691
  }, Z8 = (r = "top", o = "center", t = !1, n = 0, e = !1) => {
18692
- const [a, c] = X(!1), [d, s] = X({ top: 0, left: 0 }), [L, p] = X({ width: 0, height: 0 }), [l, C] = X(r), w = t1(null), h = t1(null), f = t1(null), x = t1(null), M = t1(null), b = t1(null), V = t1(null), j = t1({ top: 0, left: 0 }), H = t1({ count: 0, lastTime: 0 }), Z = P(() => {
18693
- c(!1), s({ top: 0, left: 0 }), C(r), V.current = null, H.current.count = 0, H.current.lastTime = 0, j.current = { top: 0, left: 0 };
18692
+ const [a, c] = X(!1), [d, s] = X({ top: 0, left: 0 }), [L, p] = X({ width: 0, height: 0 }), [l, C] = X(r), w = t1(null), h = t1(null), f = t1(null), j = t1(null), v = t1(null), x = t1(null), V = t1(null), b = t1({ top: 0, left: 0 }), H = t1({ count: 0, lastTime: 0 }), y = P(() => {
18693
+ c(!1), s({ top: 0, left: 0 }), C(r), V.current = null, H.current.count = 0, H.current.lastTime = 0, b.current = { top: 0, left: 0 };
18694
18694
  }, [r]), D = P(() => {
18695
18695
  if (!w.current || !a) return;
18696
- const v = w.current.getBoundingClientRect(), g = { top: v.top, left: v.left };
18696
+ const m = w.current.getBoundingClientRect(), g = { top: m.top, left: m.left };
18697
18697
  if (V.current) {
18698
18698
  const k = V.current, O = 2;
18699
18699
  if (Math.abs(g.top - k.top) > O || Math.abs(g.left - k.left) > O) {
18700
- Z();
18700
+ y();
18701
18701
  return;
18702
18702
  }
18703
18703
  }
18704
18704
  V.current = g;
18705
- }, [a, Z]), U = P(() => {
18705
+ }, [a, y]), U = P(() => {
18706
18706
  var q, z, Q, G, J, R;
18707
18707
  if (!w.current || !h.current) return;
18708
- const v = w.current.getBoundingClientRect(), g = h.current.getBoundingClientRect(), k = 8;
18709
- let O = 0, m = 0;
18708
+ const m = w.current.getBoundingClientRect(), g = h.current.getBoundingClientRect(), k = 8;
18709
+ let O = 0, M = 0;
18710
18710
  if (t) {
18711
- const y = (q = f.current) == null ? void 0 : q.getBoundingClientRect();
18712
- if (!y) return;
18713
- const B = v.top - y.top, T = v.left - y.left;
18711
+ const Z = (q = f.current) == null ? void 0 : q.getBoundingClientRect();
18712
+ if (!Z) return;
18713
+ const B = m.top - Z.top, T = m.left - Z.left;
18714
18714
  switch (r) {
18715
18715
  case "top":
18716
- O = B - g.height - k, m = T + v.width / 2 - g.width / 2;
18716
+ O = B - g.height - k, M = T + m.width / 2 - g.width / 2;
18717
18717
  break;
18718
18718
  case "bottom":
18719
- O = B + v.height + k, m = T + v.width / 2 - g.width / 2;
18719
+ O = B + m.height + k, M = T + m.width / 2 - g.width / 2;
18720
18720
  break;
18721
18721
  case "left":
18722
- O = B + v.height / 2 - g.height / 2, m = T - g.width - k;
18722
+ O = B + m.height / 2 - g.height / 2, M = T - g.width - k;
18723
18723
  break;
18724
18724
  case "right":
18725
- O = B + v.height / 2 - g.height / 2, m = T + v.width + k;
18725
+ O = B + m.height / 2 - g.height / 2, M = T + m.width + k;
18726
18726
  break;
18727
18727
  case "top-left":
18728
- O = B - g.height - k, m = T;
18728
+ O = B - g.height - k, M = T;
18729
18729
  break;
18730
18730
  case "top-right":
18731
- O = B - g.height - k, m = T + v.width - g.width;
18731
+ O = B - g.height - k, M = T + m.width - g.width;
18732
18732
  break;
18733
18733
  case "bottom-left":
18734
- O = B + v.height + k, m = T;
18734
+ O = B + m.height + k, M = T;
18735
18735
  break;
18736
18736
  case "bottom-right":
18737
- O = B + v.height + k, m = T + v.width - g.width;
18737
+ O = B + m.height + k, M = T + m.width - g.width;
18738
18738
  break;
18739
18739
  case "right-top":
18740
- O = B, m = T + v.width + k;
18740
+ O = B, M = T + m.width + k;
18741
18741
  break;
18742
18742
  case "right-bottom":
18743
- O = B + v.height - g.height, m = T + v.width + k;
18743
+ O = B + m.height - g.height, M = T + m.width + k;
18744
18744
  break;
18745
18745
  case "left-top":
18746
- O = B, m = T - g.width - k;
18746
+ O = B, M = T - g.width - k;
18747
18747
  break;
18748
18748
  case "left-bottom":
18749
- O = B + v.height - g.height, m = T - g.width - k;
18749
+ O = B + m.height - g.height, M = T - g.width - k;
18750
18750
  break;
18751
18751
  }
18752
- O < 0 && (O = 0), m < 0 && (m = 0), (() => {
18752
+ O < 0 && (O = 0), M < 0 && (M = 0), (() => {
18753
18753
  var _;
18754
18754
  const u1 = (_ = f.current) == null ? void 0 : _.getBoundingClientRect();
18755
18755
  if (!u1) return;
@@ -18759,27 +18759,27 @@ const H8 = ({
18759
18759
  case "top":
18760
18760
  return B >= g.height + k;
18761
18761
  case "bottom":
18762
- return B + v.height + k + g.height <= u1.height;
18762
+ return B + m.height + k + g.height <= u1.height;
18763
18763
  case "left":
18764
18764
  return T >= g.width + k;
18765
18765
  case "right":
18766
- return T + v.width + k + g.width <= u1.width;
18766
+ return T + m.width + k + g.width <= u1.width;
18767
18767
  default:
18768
18768
  return !0;
18769
18769
  }
18770
- })() && (r === "top" ? B + v.height + k + g.height <= u1.height && (F = "bottom", i1 = !0) : r === "bottom" ? B >= g.height + k && (F = "top", i1 = !0) : r === "left" ? T + v.width + k + g.width <= u1.width && (F = "right", i1 = !0) : r === "right" && T >= g.width + k && (F = "left", i1 = !0), i1)) {
18770
+ })() && (r === "top" ? B + m.height + k + g.height <= u1.height && (F = "bottom", i1 = !0) : r === "bottom" ? B >= g.height + k && (F = "top", i1 = !0) : r === "left" ? T + m.width + k + g.width <= u1.width && (F = "right", i1 = !0) : r === "right" && T >= g.width + k && (F = "left", i1 = !0), i1)) {
18771
18771
  switch (F) {
18772
18772
  case "top":
18773
- O = B - g.height - k, m = T + v.width / 2 - g.width / 2;
18773
+ O = B - g.height - k, M = T + m.width / 2 - g.width / 2;
18774
18774
  break;
18775
18775
  case "bottom":
18776
- O = B + v.height + k, m = T + v.width / 2 - g.width / 2;
18776
+ O = B + m.height + k, M = T + m.width / 2 - g.width / 2;
18777
18777
  break;
18778
18778
  case "left":
18779
- O = B + v.height / 2 - g.height / 2, m = T - g.width - k;
18779
+ O = B + m.height / 2 - g.height / 2, M = T - g.width - k;
18780
18780
  break;
18781
18781
  case "right":
18782
- O = B + v.height / 2 - g.height / 2, m = T + v.width + k;
18782
+ O = B + m.height / 2 - g.height / 2, M = T + m.width + k;
18783
18783
  break;
18784
18784
  }
18785
18785
  C(F);
@@ -18788,139 +18788,139 @@ const H8 = ({
18788
18788
  } else
18789
18789
  switch (r) {
18790
18790
  case "top":
18791
- O = v.top - g.height - k, m = v.left + v.width / 2 - g.width / 2;
18791
+ O = m.top - g.height - k, M = m.left + m.width / 2 - g.width / 2;
18792
18792
  break;
18793
18793
  case "bottom":
18794
- O = v.bottom + k, m = v.left + v.width / 2 - g.width / 2;
18794
+ O = m.bottom + k, M = m.left + m.width / 2 - g.width / 2;
18795
18795
  break;
18796
18796
  case "left":
18797
- O = v.top + v.height / 2 - g.height / 2, m = v.left - g.width - k;
18797
+ O = m.top + m.height / 2 - g.height / 2, M = m.left - g.width - k;
18798
18798
  break;
18799
18799
  case "right":
18800
- O = v.top + v.height / 2 - g.height / 2, m = v.right + k;
18800
+ O = m.top + m.height / 2 - g.height / 2, M = m.right + k;
18801
18801
  break;
18802
18802
  case "top-left":
18803
- O = v.top - g.height - k, m = v.left;
18803
+ O = m.top - g.height - k, M = m.left;
18804
18804
  break;
18805
18805
  case "top-right":
18806
- O = v.top - g.height - k, m = v.right - g.width;
18806
+ O = m.top - g.height - k, M = m.right - g.width;
18807
18807
  break;
18808
18808
  case "bottom-left":
18809
- O = v.bottom + k, m = v.left;
18809
+ O = m.bottom + k, M = m.left;
18810
18810
  break;
18811
18811
  case "bottom-right":
18812
- O = v.bottom + k, m = v.right - g.width;
18812
+ O = m.bottom + k, M = m.right - g.width;
18813
18813
  break;
18814
18814
  case "right-top":
18815
- O = v.top, m = v.right + k;
18815
+ O = m.top, M = m.right + k;
18816
18816
  break;
18817
18817
  case "right-bottom":
18818
- O = v.bottom - g.height, m = v.right + k;
18818
+ O = m.bottom - g.height, M = m.right + k;
18819
18819
  break;
18820
18820
  case "left-top":
18821
- O = v.top, m = v.left - g.width - k;
18821
+ O = m.top, M = m.left - g.width - k;
18822
18822
  break;
18823
18823
  case "left-bottom":
18824
- O = v.bottom - g.height, m = v.left - g.width - k;
18824
+ O = m.bottom - g.height, M = m.left - g.width - k;
18825
18825
  break;
18826
18826
  }
18827
18827
  if (r.includes("top") || r.includes("bottom"))
18828
18828
  switch (o) {
18829
18829
  case "start":
18830
18830
  if (t) {
18831
- const y = (z = f.current) == null ? void 0 : z.getBoundingClientRect();
18832
- y && (m = v.left - y.left);
18831
+ const Z = (z = f.current) == null ? void 0 : z.getBoundingClientRect();
18832
+ Z && (M = m.left - Z.left);
18833
18833
  } else
18834
- m = v.left;
18834
+ M = m.left;
18835
18835
  break;
18836
18836
  case "end":
18837
18837
  if (t) {
18838
- const y = (Q = f.current) == null ? void 0 : Q.getBoundingClientRect();
18839
- y && (m = v.right - y.left - g.width);
18838
+ const Z = (Q = f.current) == null ? void 0 : Q.getBoundingClientRect();
18839
+ Z && (M = m.right - Z.left - g.width);
18840
18840
  } else
18841
- m = v.right - g.width;
18841
+ M = m.right - g.width;
18842
18842
  break;
18843
18843
  }
18844
18844
  else if (r.includes("left") || r.includes("right"))
18845
18845
  switch (o) {
18846
18846
  case "start":
18847
18847
  if (t) {
18848
- const y = (G = f.current) == null ? void 0 : G.getBoundingClientRect();
18849
- y && (O = v.top - y.top);
18848
+ const Z = (G = f.current) == null ? void 0 : G.getBoundingClientRect();
18849
+ Z && (O = m.top - Z.top);
18850
18850
  } else
18851
- O = v.top;
18851
+ O = m.top;
18852
18852
  break;
18853
18853
  case "end":
18854
18854
  if (t) {
18855
- const y = (J = f.current) == null ? void 0 : J.getBoundingClientRect();
18856
- y && (O = v.bottom - y.top - g.height);
18855
+ const Z = (J = f.current) == null ? void 0 : J.getBoundingClientRect();
18856
+ Z && (O = m.bottom - Z.top - g.height);
18857
18857
  } else
18858
- O = v.bottom - g.height;
18858
+ O = m.bottom - g.height;
18859
18859
  break;
18860
18860
  }
18861
18861
  if (t) {
18862
- const y = (R = f.current) == null ? void 0 : R.getBoundingClientRect();
18863
- y && (m < 8 && (m = 8), m + g.width > y.width - 8 && (m = y.width - g.width - 8), O < 8 && (O = 8), O + g.height > y.height - 8 && (O = y.height - g.height - 8));
18862
+ const Z = (R = f.current) == null ? void 0 : R.getBoundingClientRect();
18863
+ Z && (M < 8 && (M = 8), M + g.width > Z.width - 8 && (M = Z.width - g.width - 8), O < 8 && (O = 8), O + g.height > Z.height - 8 && (O = Z.height - g.height - 8));
18864
18864
  } else {
18865
- const y = window.innerWidth, B = window.innerHeight, T = 8;
18866
- m < T && (m = T), m + g.width > y - T && (m = y - g.width - T), O < T && (O = T), O + g.height > B - T && (O = B - g.height - T);
18865
+ const Z = window.innerWidth, B = window.innerHeight, T = 8;
18866
+ M < T && (M = T), M + g.width > Z - T && (M = Z - g.width - T), O < T && (O = T), O + g.height > B - T && (O = B - g.height - T);
18867
18867
  }
18868
- if (isNaN(O) || isNaN(m) || O < 0 || m < 0) {
18869
- Z();
18868
+ if (isNaN(O) || isNaN(M) || O < 0 || M < 0) {
18869
+ y();
18870
18870
  return;
18871
18871
  }
18872
18872
  const I = Date.now();
18873
18873
  if (I - H.current.lastTime < 100) {
18874
18874
  if (H.current.count++, H.current.count > 5) {
18875
- Z();
18875
+ y();
18876
18876
  return;
18877
18877
  }
18878
18878
  } else
18879
18879
  H.current.count = 0;
18880
- H.current.lastTime = I, j.current = { top: O, left: m }, s({ top: O, left: m });
18881
- }, [r, o, t, Z]);
18880
+ H.current.lastTime = I, b.current = { top: O, left: M }, s({ top: O, left: M });
18881
+ }, [r, o, t, y]);
18882
18882
  W(() => (a && h.current ? (requestAnimationFrame(() => {
18883
18883
  if (U(), w.current) {
18884
- const v = w.current.getBoundingClientRect();
18885
- V.current = { top: v.top, left: v.left };
18884
+ const m = w.current.getBoundingClientRect();
18885
+ V.current = { top: m.top, left: m.left };
18886
18886
  }
18887
- }), b.current = setInterval(D, 100)) : b.current && (clearInterval(b.current), b.current = null), () => {
18888
- b.current && (clearInterval(b.current), b.current = null);
18887
+ }), x.current = setInterval(D, 100)) : x.current && (clearInterval(x.current), x.current = null), () => {
18888
+ x.current && (clearInterval(x.current), x.current = null);
18889
18889
  }), [a, U, D]), W(() => {
18890
18890
  if (w.current)
18891
- return M.current = new IntersectionObserver(
18892
- (v) => {
18893
- v.forEach((g) => {
18894
- !g.isIntersecting && a && Z();
18891
+ return v.current = new IntersectionObserver(
18892
+ (m) => {
18893
+ m.forEach((g) => {
18894
+ !g.isIntersecting && a && y();
18895
18895
  });
18896
18896
  },
18897
18897
  {
18898
18898
  threshold: 0,
18899
18899
  rootMargin: "8px"
18900
18900
  }
18901
- ), M.current.observe(w.current), () => {
18902
- M.current && M.current.disconnect();
18901
+ ), v.current.observe(w.current), () => {
18902
+ v.current && v.current.disconnect();
18903
18903
  };
18904
- }, [a, Z]), W(() => {
18904
+ }, [a, y]), W(() => {
18905
18905
  if (!a) return;
18906
- const v = () => {
18907
- t || Z();
18906
+ const m = () => {
18907
+ t || y();
18908
18908
  }, g = () => {
18909
- Z();
18909
+ y();
18910
18910
  };
18911
- return window.addEventListener("scroll", v, !0), window.addEventListener("resize", g), () => {
18912
- window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", g);
18911
+ return window.addEventListener("scroll", m, !0), window.addEventListener("resize", g), () => {
18912
+ window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", g);
18913
18913
  };
18914
- }, [a, t, Z]);
18914
+ }, [a, t, y]);
18915
18915
  const A = P(() => {
18916
- e || (x.current && (clearTimeout(x.current), x.current = null), n > 0 ? x.current = setTimeout(() => {
18916
+ e || (j.current && (clearTimeout(j.current), j.current = null), n > 0 ? j.current = setTimeout(() => {
18917
18917
  c(!0);
18918
18918
  }, n) : c(!0));
18919
18919
  }, [e, n]), S = P(() => {
18920
- x.current && (clearTimeout(x.current), x.current = null), c(!1), s({ top: 0, left: 0 });
18920
+ j.current && (clearTimeout(j.current), j.current = null), c(!1), s({ top: 0, left: 0 });
18921
18921
  }, []);
18922
18922
  return W(() => () => {
18923
- x.current && clearTimeout(x.current), b.current && clearInterval(b.current);
18923
+ j.current && clearTimeout(j.current), x.current && clearInterval(x.current);
18924
18924
  }, []), {
18925
18925
  isVisible: a,
18926
18926
  coords: d,
@@ -19145,21 +19145,21 @@ const H8 = ({
19145
19145
  const {
19146
19146
  isVisible: h,
19147
19147
  coords: f,
19148
- adjustedPosition: x,
19149
- triggerRef: M,
19150
- tooltipRef: b,
19148
+ adjustedPosition: j,
19149
+ triggerRef: v,
19150
+ tooltipRef: x,
19151
19151
  containerRef: V,
19152
- handleMouseEnter: j,
19152
+ handleMouseEnter: b,
19153
19153
  handleMouseLeave: H
19154
- } = Z8(t, n, C, c, d), Z = S8(e, C), D = I8(x, e);
19154
+ } = Z8(t, n, C, c, d), y = S8(e, C), D = I8(j, e);
19155
19155
  return /* @__PURE__ */ u("div", { ref: V, className: C ? "ui-relative" : "", children: [
19156
19156
  /* @__PURE__ */ i(
19157
19157
  "div",
19158
19158
  {
19159
- ref: M,
19160
- onMouseEnter: j,
19159
+ ref: v,
19160
+ onMouseEnter: b,
19161
19161
  onMouseLeave: H,
19162
- onFocus: j,
19162
+ onFocus: b,
19163
19163
  onBlur: H,
19164
19164
  className: Y("ui-inline-block ui-h-fit ui-w-fit", L ? "ui-w-full" : "ui-w-fit"),
19165
19165
  children: r
@@ -19168,10 +19168,10 @@ const H8 = ({
19168
19168
  h && (C ? /* @__PURE__ */ u(
19169
19169
  "div",
19170
19170
  {
19171
- ref: b,
19171
+ ref: x,
19172
19172
  id: a,
19173
19173
  className: Y(
19174
- Z,
19174
+ y,
19175
19175
  "imj-ui-tooltip ui-font-bold",
19176
19176
  s
19177
19177
  ),
@@ -19193,10 +19193,10 @@ const H8 = ({
19193
19193
  /* @__PURE__ */ u(
19194
19194
  "div",
19195
19195
  {
19196
- ref: b,
19196
+ ref: x,
19197
19197
  id: a,
19198
19198
  className: Y(
19199
- Z,
19199
+ y,
19200
19200
  "imj-ui-tooltip ui-font-bold",
19201
19201
  s
19202
19202
  ),
@@ -19335,22 +19335,22 @@ const H8 = ({
19335
19335
  clickable: w = !0,
19336
19336
  icon: h,
19337
19337
  link: f,
19338
- size: x,
19339
- square: M = !1,
19340
- target: b = "_self",
19338
+ size: j,
19339
+ square: v = !1,
19340
+ target: x = "_self",
19341
19341
  onClickIcon: V,
19342
- onClickLeftSlot: j,
19342
+ onClickLeftSlot: b,
19343
19343
  onClickRightSlot: H,
19344
- disabled: Z,
19344
+ disabled: y,
19345
19345
  colorIcon: D,
19346
19346
  showShadow: U = !1,
19347
19347
  borderable: A,
19348
19348
  iconSizeExtended: S = "none",
19349
- defaultSizeIcon: v = !0,
19349
+ defaultSizeIcon: m = !0,
19350
19350
  defaultTooltipColor: g = !0,
19351
19351
  as: k = "button",
19352
19352
  classNameId: O = "imj-ui-inner-button",
19353
- tooltip: m = "",
19353
+ tooltip: M = "",
19354
19354
  tooltipPosition: I,
19355
19355
  tooltipAlignment: N,
19356
19356
  tooltipColor: q = "neutral",
@@ -19359,7 +19359,7 @@ const H8 = ({
19359
19359
  classNameTooltip: G,
19360
19360
  stopPropagation: J = !0,
19361
19361
  pointer: R = !1,
19362
- ref: y,
19362
+ ref: Z,
19363
19363
  onClick: B,
19364
19364
  textAlign: T = "center",
19365
19365
  whiteBackground: e1 = !1,
@@ -19368,8 +19368,8 @@ const H8 = ({
19368
19368
  ...i1
19369
19369
  }) => {
19370
19370
  const $ = {
19371
- disabled: Z
19372
- }, _ = a === "icon", r1 = _ ? !0 : v, n1 = _ ? "xs" : x, p1 = (L1) => {
19371
+ disabled: y
19372
+ }, _ = a === "icon", r1 = _ ? !0 : m, n1 = _ ? "xs" : j, p1 = (L1) => {
19373
19373
  J && L1.stopPropagation(), B && B(L1);
19374
19374
  }, s1 = c1("", {
19375
19375
  variants: {
@@ -19401,10 +19401,10 @@ const H8 = ({
19401
19401
  b1,
19402
19402
  {
19403
19403
  slot: n,
19404
- size: x,
19404
+ size: j,
19405
19405
  colorIcon: D,
19406
19406
  className: r,
19407
- onClick: j,
19407
+ onClick: b,
19408
19408
  defaultSizeIcon: r1,
19409
19409
  strokeWidth: u1
19410
19410
  }
@@ -19429,7 +19429,7 @@ const H8 = ({
19429
19429
  {
19430
19430
  strokeWidth: u1,
19431
19431
  name: h,
19432
- size: a === "icon" ? x : S !== "none" ? S : x,
19432
+ size: a === "icon" ? j : S !== "none" ? S : j,
19433
19433
  color: D,
19434
19434
  onClick: a === "icon" ? B || V : void 0
19435
19435
  }
@@ -19438,7 +19438,7 @@ const H8 = ({
19438
19438
  b1,
19439
19439
  {
19440
19440
  slot: e,
19441
- size: S !== "none" ? S : x,
19441
+ size: S !== "none" ? S : j,
19442
19442
  colorIcon: D,
19443
19443
  className: r,
19444
19444
  onClick: H,
@@ -19446,7 +19446,7 @@ const H8 = ({
19446
19446
  strokeWidth: u1
19447
19447
  }
19448
19448
  )
19449
- ] }), a1 = M ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", v1 = g ? q || "neutral" : L, M1 = c1(
19449
+ ] }), a1 = v ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", v1 = g ? q || "neutral" : L, M1 = c1(
19450
19450
  `${O} ui-h-fit ui-justify-center ui-flex ui-items-center ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${U && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${R && _ ? "!ui-cursor-pointer" : ""} ${F ? "ui-transition-all ui-duration-300" : ""}`,
19451
19451
  {
19452
19452
  variants: {
@@ -19458,13 +19458,13 @@ const H8 = ({
19458
19458
  icon: " ui-border-transparent"
19459
19459
  },
19460
19460
  size: {
19461
- xs: `ui-max-h-5 ui-min-h-5 ui-min-w-5 ${l ? "ui-px-1 ui-py-0.5" : "ui-p-0.5 ui-w-5 ui-flex ui-justify-center ui-items-center"} ui-h-5 ui-text-[10px] ${M ? ` ui-max-w-5 ui-min-h-5 ${a1}` : ""}`,
19462
- sm: `ui-max-h-6 ui-min-h-6 ui-min-w-6 ${l ? "ui-px-2 ui-py-1" : "ui-p-1 ui-w-6 ui-flex ui-justify-center ui-items-center"} ui-h-6 ui-text-[10px] ${M ? ` ui-max-w-6 ui-min-h-6 ${a1}` : ""}`,
19463
- md: `ui-max-h-[26px] ui-min-h-[26px] ui-min-w-[26px] ${l ? "ui-px-3 ui-py-1.5" : "ui-p-1.5 ui-w-[26px] ui-flex ui-justify-center ui-items-center"} ui-h-[26px] ui-text-[12px] ${M ? ` ui-max-w-[26px] ui-min-h-[26px] ${a1}` : ""}`,
19464
- lg: `ui-max-h-[32px] ui-min-h-[32px] ui-min-w-[32px] ${l ? "ui-px-4 ui-py-2" : "ui-p-2 ui-w-[32px] ui-flex ui-justify-center ui-items-center"} ui-h-[32px] ui-text-[14px] ${M ? ` ui-max-w-[32px] ui-min-h-[32px] ${a1}` : ""}`,
19465
- xl: `ui-max-h-[42px] ui-min-h-[42px] ui-min-w-[42px] ${l ? "ui-px-5 ui-py-2.5" : "ui-p-2.5 ui-w-[42px] ui-flex ui-justify-center ui-items-center"} ui-h-[42px] ui-text-[16px] ${M ? ` ui-max-w-[42px] ui-min-h-[42px] ${a1}` : ""}`,
19466
- "2xl": `ui-max-h-[52px] ui-min-h-[52px] ui-min-w-[52px] ${l ? "ui-px-6 ui-py-3" : "ui-p-3 ui-w-[52px] ui-flex ui-justify-center ui-items-center"} ui-h-[52px] ui-text-[18px] ${M ? ` ui-max-w-[52px] ui-min-h-[52px] ${a1}` : ""}`,
19467
- "3xl": `ui-max-h-[62px] ui-min-h-[62px] ui-min-w-[62px] ${l ? "ui-px-7 ui-py-3.5" : "ui-p-3.5 ui-w-[62px] ui-flex ui-justify-center ui-items-center"} ui-h-[62px] ui-text-[20px] ${M ? `ui-max-w-[62px] ui-min-h-[62px] ${a1}` : ""}`
19461
+ xs: `ui-max-h-5 ui-min-h-5 ui-min-w-5 ${l ? "ui-px-1 ui-py-0.5" : "ui-p-0.5 ui-w-5 ui-flex ui-justify-center ui-items-center"} ui-h-5 ui-text-[10px] ${v ? ` ui-max-w-5 ui-min-h-5 ${a1}` : ""}`,
19462
+ sm: `ui-max-h-6 ui-min-h-6 ui-min-w-6 ${l ? "ui-px-2 ui-py-1" : "ui-p-1 ui-w-6 ui-flex ui-justify-center ui-items-center"} ui-h-6 ui-text-[10px] ${v ? ` ui-max-w-6 ui-min-h-6 ${a1}` : ""}`,
19463
+ md: `ui-max-h-[26px] ui-min-h-[26px] ui-min-w-[26px] ${l ? "ui-px-3 ui-py-1.5" : "ui-p-1.5 ui-w-[26px] ui-flex ui-justify-center ui-items-center"} ui-h-[26px] ui-text-[12px] ${v ? ` ui-max-w-[26px] ui-min-h-[26px] ${a1}` : ""}`,
19464
+ lg: `ui-max-h-[32px] ui-min-h-[32px] ui-min-w-[32px] ${l ? "ui-px-4 ui-py-2" : "ui-p-2 ui-w-[32px] ui-flex ui-justify-center ui-items-center"} ui-h-[32px] ui-text-[14px] ${v ? ` ui-max-w-[32px] ui-min-h-[32px] ${a1}` : ""}`,
19465
+ xl: `ui-max-h-[42px] ui-min-h-[42px] ui-min-w-[42px] ${l ? "ui-px-5 ui-py-2.5" : "ui-p-2.5 ui-w-[42px] ui-flex ui-justify-center ui-items-center"} ui-h-[42px] ui-text-[16px] ${v ? ` ui-max-w-[42px] ui-min-h-[42px] ${a1}` : ""}`,
19466
+ "2xl": `ui-max-h-[52px] ui-min-h-[52px] ui-min-w-[52px] ${l ? "ui-px-6 ui-py-3" : "ui-p-3 ui-w-[52px] ui-flex ui-justify-center ui-items-center"} ui-h-[52px] ui-text-[18px] ${v ? ` ui-max-w-[52px] ui-min-h-[52px] ${a1}` : ""}`,
19467
+ "3xl": `ui-max-h-[62px] ui-min-h-[62px] ui-min-w-[62px] ${l ? "ui-px-7 ui-py-3.5" : "ui-p-3.5 ui-w-[62px] ui-flex ui-justify-center ui-items-center"} ui-h-[62px] ui-text-[20px] ${v ? `ui-max-w-[62px] ui-min-h-[62px] ${a1}` : ""}`
19468
19468
  },
19469
19469
  color: {
19470
19470
  blue: C1(a, w, A, e1).blue,
@@ -19485,7 +19485,7 @@ const H8 = ({
19485
19485
  },
19486
19486
  fullWidth: {
19487
19487
  true: "ui-w-full",
19488
- false: !M && !h && l ? "ui-min-w-fit" : ""
19488
+ false: !v && !h && l ? "ui-min-w-fit" : ""
19489
19489
  }
19490
19490
  },
19491
19491
  defaultVariants: {
@@ -19506,16 +19506,16 @@ const H8 = ({
19506
19506
  return f ? /* @__PURE__ */ i(
19507
19507
  "a",
19508
19508
  {
19509
- ref: y,
19509
+ ref: Z,
19510
19510
  href: f,
19511
- target: b,
19511
+ target: x,
19512
19512
  className: Y(M1, r),
19513
19513
  children: d1()
19514
19514
  }
19515
19515
  ) : k === "div" ? /* @__PURE__ */ i(
19516
19516
  o0,
19517
19517
  {
19518
- label: m,
19518
+ label: M,
19519
19519
  position: I,
19520
19520
  alignment: N,
19521
19521
  absolute: Q,
@@ -19526,7 +19526,7 @@ const H8 = ({
19526
19526
  children: /* @__PURE__ */ i(
19527
19527
  "div",
19528
19528
  {
19529
- ref: y,
19529
+ ref: Z,
19530
19530
  className: Y(M1, r),
19531
19531
  ...i1,
19532
19532
  children: d1()
@@ -19536,7 +19536,7 @@ const H8 = ({
19536
19536
  ) : /* @__PURE__ */ i(
19537
19537
  o0,
19538
19538
  {
19539
- label: m,
19539
+ label: M,
19540
19540
  position: I,
19541
19541
  alignment: N,
19542
19542
  color: v1,
@@ -19546,7 +19546,7 @@ const H8 = ({
19546
19546
  children: /* @__PURE__ */ i(
19547
19547
  "button",
19548
19548
  {
19549
- ref: y,
19549
+ ref: Z,
19550
19550
  className: Y(M1, r),
19551
19551
  ...$,
19552
19552
  ...i1,
@@ -20054,19 +20054,19 @@ const H8 = ({
20054
20054
  progressBarColor: h = !1,
20055
20055
  duration: f = 3e3
20056
20056
  }) => {
20057
- const { isVisible: x, isLeaving: M } = R8({ open: r, externalIsLeaving: w });
20058
- if (!x)
20057
+ const { isVisible: j, isLeaving: v } = R8({ open: r, externalIsLeaving: w });
20058
+ if (!j)
20059
20059
  return null;
20060
- const b = !!d, V = (j) => {
20061
- d && (j.stopPropagation(), d());
20060
+ const x = !!d, V = (b) => {
20061
+ d && (b.stopPropagation(), d());
20062
20062
  };
20063
20063
  return /* @__PURE__ */ u(
20064
20064
  "div",
20065
20065
  {
20066
20066
  className: Y(
20067
20067
  "ui-relative ui-overflow-hidden",
20068
- E8({ type: o, variant: t, isLeaving: M, animation: C }),
20069
- b ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20068
+ E8({ type: o, variant: t, isLeaving: v, animation: C }),
20069
+ x ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20070
20070
  ),
20071
20071
  onClick: V,
20072
20072
  children: [
@@ -20124,13 +20124,13 @@ const H8 = ({
20124
20124
  icon: w,
20125
20125
  link: h,
20126
20126
  size: f,
20127
- target: x = "_self",
20128
- onClickIcon: M,
20129
- disabled: b,
20127
+ target: j = "_self",
20128
+ onClickIcon: v,
20129
+ disabled: x,
20130
20130
  colorIcon: V,
20131
- tooltip: j,
20131
+ tooltip: b,
20132
20132
  tooltipPosition: H,
20133
- tooltipAlignment: Z,
20133
+ tooltipAlignment: y,
20134
20134
  tooltipColor: D,
20135
20135
  tooltipDelay: U,
20136
20136
  ...A
@@ -20152,14 +20152,14 @@ const H8 = ({
20152
20152
  slotLeft: n,
20153
20153
  slotRight: e,
20154
20154
  link: h,
20155
- target: x,
20156
- onClickIcon: M,
20157
- disabled: b,
20155
+ target: j,
20156
+ onClickIcon: v,
20157
+ disabled: x,
20158
20158
  colorIcon: V,
20159
20159
  className: o,
20160
- tooltip: j,
20160
+ tooltip: b,
20161
20161
  tooltipPosition: H,
20162
- tooltipAlignment: Z,
20162
+ tooltipAlignment: y,
20163
20163
  tooltipColor: D,
20164
20164
  tooltipDelay: U,
20165
20165
  ...A
@@ -20261,17 +20261,17 @@ const Y8 = (r) => {
20261
20261
  internalRange: { start: null, end: null },
20262
20262
  hoverDate: null,
20263
20263
  portalPosition: { top: 0, left: 0 }
20264
- }), [L, p] = X(!1), l = t1(null), C = o === "single" ? t !== void 0 : n !== void 0, w = o === "single" ? t == null : n === void 0, h = o === "single" ? w ? d.internalDate : t : null, f = o === "range" ? w ? d.internalRange : n : { start: null, end: null }, x = (m) => m && m instanceof Date && !isNaN(m.getTime()), M = x(h) ? h : null, b = {
20265
- start: x(f == null ? void 0 : f.start) ? f.start : null,
20266
- end: x(f == null ? void 0 : f.end) ? f.end : null
20264
+ }), [L, p] = X(!1), l = t1(null), C = o === "single" ? t !== void 0 : n !== void 0, w = o === "single" ? t == null : n === void 0, h = o === "single" ? w ? d.internalDate : t : null, f = o === "range" ? w ? d.internalRange : n : { start: null, end: null }, j = (M) => M && M instanceof Date && !isNaN(M.getTime()), v = j(h) ? h : null, x = {
20265
+ start: j(f == null ? void 0 : f.start) ? f.start : null,
20266
+ end: j(f == null ? void 0 : f.end) ? f.end : null
20267
20267
  }, V = P(() => {
20268
20268
  if (l.current) {
20269
- const m = l.current.getInputElement();
20270
- if (m) {
20271
- const I = m.getBoundingClientRect(), N = window.innerHeight, q = window.innerWidth, z = 320, Q = 256, G = 8;
20269
+ const M = l.current.getInputElement();
20270
+ if (M) {
20271
+ const I = M.getBoundingClientRect(), N = window.innerHeight, q = window.innerWidth, z = 320, Q = 256, G = 8;
20272
20272
  let J, R = I.left;
20273
- const y = N - I.bottom, B = I.top;
20274
- y >= z + G ? J = I.bottom + G : B >= z + G ? J = I.top - z + G : y > B ? J = I.bottom + G : J = I.top - z + G, I.left + Q > q && (R = I.right - Q), R = Math.max(0, Math.min(R, q - Q)), s((T) => ({
20273
+ const Z = N - I.bottom, B = I.top;
20274
+ Z >= z + G ? J = I.bottom + G : B >= z + G ? J = I.top - z + G : Z > B ? J = I.bottom + G : J = I.top - z + G, I.left + Q > q && (R = I.right - Q), R = Math.max(0, Math.min(R, q - Q)), s((T) => ({
20275
20275
  ...T,
20276
20276
  isOpen: !0,
20277
20277
  portalPosition: { top: J, left: R }
@@ -20279,109 +20279,109 @@ const Y8 = (r) => {
20279
20279
  return;
20280
20280
  }
20281
20281
  }
20282
- s((m) => ({ ...m, isOpen: !0 })), p(!1);
20283
- }, []), j = P(() => {
20284
- s((m) => ({ ...m, isOpen: !1 })), p(!1);
20285
- }, []), H = P((m) => {
20286
- s((I) => ({ ...I, currentDate: m }));
20287
- }, []), Z = P((m) => {
20288
- s((I) => ({ ...I, viewMode: m }));
20289
- }, []), D = P((m) => {
20282
+ s((M) => ({ ...M, isOpen: !0 })), p(!1);
20283
+ }, []), b = P(() => {
20284
+ s((M) => ({ ...M, isOpen: !1 })), p(!1);
20285
+ }, []), H = P((M) => {
20286
+ s((I) => ({ ...I, currentDate: M }));
20287
+ }, []), y = P((M) => {
20288
+ s((I) => ({ ...I, viewMode: M }));
20289
+ }, []), D = P((M) => {
20290
20290
  s((I) => {
20291
20291
  const N = new Date(I.currentDate);
20292
20292
  switch (I.viewMode) {
20293
20293
  case "days":
20294
- N.setMonth(N.getMonth() + (m === "next" ? 1 : -1));
20294
+ N.setMonth(N.getMonth() + (M === "next" ? 1 : -1));
20295
20295
  break;
20296
20296
  case "months":
20297
- N.setFullYear(N.getFullYear() + (m === "next" ? 1 : -1));
20297
+ N.setFullYear(N.getFullYear() + (M === "next" ? 1 : -1));
20298
20298
  break;
20299
20299
  case "years":
20300
- N.setFullYear(N.getFullYear() + (m === "next" ? 12 : -12));
20300
+ N.setFullYear(N.getFullYear() + (M === "next" ? 12 : -12));
20301
20301
  break;
20302
20302
  }
20303
20303
  return { ...I, currentDate: N };
20304
20304
  });
20305
20305
  }, []), U = P(
20306
- (m) => {
20306
+ (M) => {
20307
20307
  var I;
20308
- o === "single" && (w && s((N) => ({ ...N, internalDate: m })), (I = r.onDateChange) == null || I.call(r, m), a && j());
20308
+ o === "single" && (w && s((N) => ({ ...N, internalDate: M })), (I = r.onDateChange) == null || I.call(r, M), a && b());
20309
20309
  },
20310
- [o, w, r.onDateChange, a, j]
20310
+ [o, w, r.onDateChange, a, b]
20311
20311
  ), A = P(
20312
- (m) => {
20312
+ (M) => {
20313
20313
  var I;
20314
- o === "range" && (C || s((N) => ({ ...N, internalRange: m })), (I = r.onRangeChange) == null || I.call(r, m), c && m.start && m.end && j());
20314
+ o === "range" && (C || s((N) => ({ ...N, internalRange: M })), (I = r.onRangeChange) == null || I.call(r, M), c && M.start && M.end && b());
20315
20315
  },
20316
- [o, C, r.onRangeChange, c, j]
20317
- ), S = P((m) => {
20318
- s((I) => ({ ...I, hoverDate: m }));
20319
- }, []), v = P((m) => {
20316
+ [o, C, r.onRangeChange, c, b]
20317
+ ), S = P((M) => {
20318
+ s((I) => ({ ...I, hoverDate: M }));
20319
+ }, []), m = P((M) => {
20320
20320
  s((I) => {
20321
20321
  const N = new Date(I.currentDate);
20322
- return N.setMonth(m), {
20322
+ return N.setMonth(M), {
20323
20323
  ...I,
20324
20324
  currentDate: N,
20325
20325
  viewMode: "days"
20326
20326
  };
20327
20327
  });
20328
- }, []), g = P((m) => {
20328
+ }, []), g = P((M) => {
20329
20329
  s((I) => {
20330
20330
  const N = new Date(I.currentDate);
20331
- return N.setFullYear(m), {
20331
+ return N.setFullYear(M), {
20332
20332
  ...I,
20333
20333
  currentDate: N,
20334
20334
  viewMode: "months"
20335
20335
  };
20336
20336
  });
20337
20337
  }, []), k = P(() => {
20338
- const m = /* @__PURE__ */ new Date();
20338
+ const M = /* @__PURE__ */ new Date();
20339
20339
  s((I) => ({
20340
20340
  ...I,
20341
- currentDate: m,
20341
+ currentDate: M,
20342
20342
  viewMode: "days"
20343
20343
  }));
20344
20344
  }, []), O = P(() => {
20345
20345
  if (!l.current)
20346
20346
  return;
20347
- const m = l.current.getInputElement();
20348
- if (!m)
20347
+ const M = l.current.getInputElement();
20348
+ if (!M)
20349
20349
  return;
20350
- const I = m.getBoundingClientRect(), N = window.innerHeight, q = window.innerWidth, z = 320, Q = 256, G = 8;
20350
+ const I = M.getBoundingClientRect(), N = window.innerHeight, q = window.innerWidth, z = 320, Q = 256, G = 8;
20351
20351
  let J, R = I.left;
20352
- const y = N - I.bottom, B = I.top;
20353
- y >= z + G ? J = I.bottom + G : B >= z + G ? J = I.top - z + G : y > B ? J = I.bottom + G : J = I.top - z + G, I.left + Q > q && (R = I.right - Q), R = Math.max(0, Math.min(R, q - Q)), s((T) => ({ ...T, portalPosition: { top: J, left: R } })), p(!0);
20352
+ const Z = N - I.bottom, B = I.top;
20353
+ Z >= z + G ? J = I.bottom + G : B >= z + G ? J = I.top - z + G : Z > B ? J = I.bottom + G : J = I.top - z + G, I.left + Q > q && (R = I.right - Q), R = Math.max(0, Math.min(R, q - Q)), s((T) => ({ ...T, portalPosition: { top: J, left: R } })), p(!0);
20354
20354
  }, []);
20355
20355
  return W(() => {
20356
20356
  if (!d.isOpen) return;
20357
- const m = () => O(), I = () => O();
20358
- return window.addEventListener("scroll", m, !0), window.addEventListener("resize", I), () => {
20359
- window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", I);
20357
+ const M = () => O(), I = () => O();
20358
+ return window.addEventListener("scroll", M, !0), window.addEventListener("resize", I), () => {
20359
+ window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", I);
20360
20360
  };
20361
20361
  }, [d.isOpen, O]), W(() => {
20362
20362
  if (d.isOpen) {
20363
- const m = setTimeout(() => {
20363
+ const M = setTimeout(() => {
20364
20364
  O();
20365
20365
  }, 0);
20366
- return () => clearTimeout(m);
20366
+ return () => clearTimeout(M);
20367
20367
  }
20368
20368
  }, [d.isOpen, O]), {
20369
20369
  state: d,
20370
- selectedDate: M,
20371
- selectedRange: b,
20370
+ selectedDate: v,
20371
+ selectedRange: x,
20372
20372
  inputRef: l,
20373
20373
  isPortalReady: L,
20374
20374
  actions: {
20375
20375
  openPicker: V,
20376
- closePicker: j,
20376
+ closePicker: b,
20377
20377
  setCurrentDate: H,
20378
- setViewMode: Z,
20378
+ setViewMode: y,
20379
20379
  setSelectedDate: U,
20380
20380
  setSelectedRange: A,
20381
20381
  setHoverDate: S,
20382
20382
  updatePortalPosition: O,
20383
20383
  navigate: D,
20384
- handleMonthSelect: v,
20384
+ handleMonthSelect: m,
20385
20385
  handleYearSelect: g,
20386
20386
  goToToday: k
20387
20387
  }
@@ -20403,53 +20403,53 @@ const Y8 = (r) => {
20403
20403
  [r, o, s, e]
20404
20404
  ), p = P(
20405
20405
  (l, C) => {
20406
- const w = c(l, r), h = d(l, r), f = a(l, r), x = s(l);
20407
- let M = !1;
20406
+ const w = c(l, r), h = d(l, r), f = a(l, r), j = s(l);
20407
+ let v = !1;
20408
20408
  if (C && r.start && !r.end) {
20409
20409
  const H = {
20410
20410
  start: r.start < C ? r.start : C,
20411
20411
  end: r.start < C ? C : r.start
20412
20412
  };
20413
- M = a(l, H);
20413
+ v = a(l, H);
20414
20414
  }
20415
- let b = !1;
20415
+ let x = !1;
20416
20416
  if (r.start && r.end && f && !w) {
20417
20417
  const H = new Date(l);
20418
- H.setDate(l.getDate() - 1), b = !a(H, r);
20419
- } else if (r.start && !r.end && C && M) {
20418
+ H.setDate(l.getDate() - 1), x = !a(H, r);
20419
+ } else if (r.start && !r.end && C && v) {
20420
20420
  const H = new Date(l);
20421
20421
  H.setDate(l.getDate() - 1);
20422
- const Z = {
20422
+ const y = {
20423
20423
  start: r.start < C ? r.start : C,
20424
20424
  end: r.start < C ? C : r.start
20425
20425
  };
20426
- b = !a(H, Z);
20426
+ x = !a(H, y);
20427
20427
  }
20428
20428
  let V = !1;
20429
20429
  if (r.start && r.end && f && !h) {
20430
20430
  const H = new Date(l);
20431
20431
  H.setDate(l.getDate() + 1), V = !a(H, r);
20432
- } else if (r.start && !r.end && C && M) {
20432
+ } else if (r.start && !r.end && C && v) {
20433
20433
  const H = new Date(l);
20434
20434
  H.setDate(l.getDate() + 1);
20435
- const Z = {
20435
+ const y = {
20436
20436
  start: r.start < C ? r.start : C,
20437
20437
  end: r.start < C ? C : r.start
20438
20438
  };
20439
- V = !a(H, Z);
20439
+ V = !a(H, y);
20440
20440
  }
20441
- let j = !0;
20442
- return r.start && !r.end && C ? j = C >= r.start : r.start && r.end && (j = l >= r.start), {
20441
+ let b = !0;
20442
+ return r.start && !r.end && C ? b = C >= r.start : r.start && r.end && (b = l >= r.start), {
20443
20443
  isSelectingStart: !r.start || r.start && r.end,
20444
20444
  isSelectingEnd: !!r.start && !r.end,
20445
20445
  isStart: w,
20446
20446
  isEnd: h,
20447
20447
  isInRange: f,
20448
- isFirstInRange: b,
20448
+ isFirstInRange: x,
20449
20449
  isLastInRange: V,
20450
- afterSelected: j,
20451
- isDisabled: x,
20452
- isHovered: M
20450
+ afterSelected: b,
20451
+ isDisabled: j,
20452
+ isHovered: v
20453
20453
  };
20454
20454
  },
20455
20455
  [r, c, d, a, s]
@@ -20478,19 +20478,19 @@ const Y8 = (r) => {
20478
20478
  },
20479
20479
  [r, o]
20480
20480
  ), e = P((p) => {
20481
- const l = p.getFullYear(), C = p.getMonth(), w = new Date(l, C, 1), h = new Date(l, C + 1, 0), f = h.getDate(), x = w.getDay();
20482
- return { firstDay: w, lastDay: h, daysInMonth: f, startOfWeek: x };
20481
+ const l = p.getFullYear(), C = p.getMonth(), w = new Date(l, C, 1), h = new Date(l, C + 1, 0), f = h.getDate(), j = w.getDay();
20482
+ return { firstDay: w, lastDay: h, daysInMonth: f, startOfWeek: j };
20483
20483
  }, []), a = P(
20484
20484
  (p, l = 1) => {
20485
- const { firstDay: C, lastDay: w, daysInMonth: h, startOfWeek: f } = e(p), x = [], M = (f - l + 7) % 7;
20486
- for (let V = 0; V < M; V++)
20487
- x.push(null);
20485
+ const { firstDay: C, lastDay: w, daysInMonth: h, startOfWeek: f } = e(p), j = [], v = (f - l + 7) % 7;
20486
+ for (let V = 0; V < v; V++)
20487
+ j.push(null);
20488
20488
  for (let V = 1; V <= h; V++)
20489
- x.push(V);
20490
- const b = (7 - x.length % 7) % 7;
20491
- for (let V = 0; V < b; V++)
20492
- x.push(null);
20493
- return x;
20489
+ j.push(V);
20490
+ const x = (7 - j.length % 7) % 7;
20491
+ for (let V = 0; V < x; V++)
20492
+ j.push(null);
20493
+ return j;
20494
20494
  },
20495
20495
  [e]
20496
20496
  ), c = P((p = "es-ES") => {
@@ -20528,13 +20528,13 @@ const Y8 = (r) => {
20528
20528
  e((h) => ({ ...h, inputValue: w }));
20529
20529
  }, []), d = P((w, h) => {
20530
20530
  if (!w) return "";
20531
- const f = w.getDate().toString().padStart(2, "0"), x = (w.getMonth() + 1).toString().padStart(2, "0"), M = w.getFullYear();
20532
- return h.format.replace("dd", f).replace("MM", x).replace("yyyy", M.toString());
20531
+ const f = w.getDate().toString().padStart(2, "0"), j = (w.getMonth() + 1).toString().padStart(2, "0"), v = w.getFullYear();
20532
+ return h.format.replace("dd", f).replace("MM", j).replace("yyyy", v.toString());
20533
20533
  }, []), s = P((w, h) => {
20534
20534
  if (!w) return null;
20535
- const f = h.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), x = new RegExp(`^${f}$`), M = w.match(x);
20536
- if (!M) return null;
20537
- const [, b, V, j] = M, H = new Date(parseInt(j), parseInt(V) - 1, parseInt(b));
20535
+ const f = h.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), j = new RegExp(`^${f}$`), v = w.match(j);
20536
+ if (!v) return null;
20537
+ const [, x, V, b] = v, H = new Date(parseInt(b), parseInt(V) - 1, parseInt(x));
20538
20538
  return isNaN(H.getTime()) ? null : H;
20539
20539
  }, []), L = P(
20540
20540
  (w, h) => s(w, h) !== null,
@@ -20619,24 +20619,24 @@ const Y8 = (r) => {
20619
20619
  onMouseEnter: w,
20620
20620
  onMouseLeave: h,
20621
20621
  className: f = "",
20622
- renderDay: x
20622
+ renderDay: j
20623
20623
  }) => {
20624
- const M = t1(null);
20624
+ const v = t1(null);
20625
20625
  if (r === null)
20626
20626
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
20627
- const b = (Z) => {
20628
- Z.stopPropagation(), L || C(o);
20627
+ const x = (y) => {
20628
+ y.stopPropagation(), L || C(o);
20629
20629
  }, V = () => {
20630
- !L && w && (M.current && (clearTimeout(M.current), M.current = null), w(o));
20631
- }, j = () => {
20632
- !L && h && (t || n || e || a ? M.current = setTimeout(() => {
20633
- h(), M.current = null;
20630
+ !L && w && (v.current && (clearTimeout(v.current), v.current = null), w(o));
20631
+ }, b = () => {
20632
+ !L && h && (t || n || e || a ? v.current = setTimeout(() => {
20633
+ h(), v.current = null;
20634
20634
  }, 100) : h());
20635
20635
  }, H = () => {
20636
- let Z = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!d && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
20637
- return L ? Z += " ui-text-gray-400 ui-cursor-not-allowed" : t ? Z += " ui-bg-blue-500 ui-text-white" : e ? Z += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? Z += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? Z += " ui-bg-blue-50 ui-text-blue-500" : l ? Z += " ui-bg-blue-50" : p ? Z += " ui-text-blue-500" : Z += "hover:ui-bg-neutral-50", `${Z} ${f}`;
20636
+ let y = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!d && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
20637
+ return L ? y += " ui-text-gray-400 ui-cursor-not-allowed" : t ? y += " ui-bg-blue-500 ui-text-white" : e ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? y += " ui-bg-blue-50 ui-text-blue-500" : l ? y += " ui-bg-blue-50" : p ? y += " ui-text-blue-500" : y += "hover:ui-bg-neutral-50", `${y} ${f}`;
20638
20638
  };
20639
- return x ? x({
20639
+ return j ? j({
20640
20640
  day: r,
20641
20641
  date: o,
20642
20642
  isSelected: t,
@@ -20652,9 +20652,9 @@ const Y8 = (r) => {
20652
20652
  "div",
20653
20653
  {
20654
20654
  className: H(),
20655
- onClick: b,
20655
+ onClick: x,
20656
20656
  onMouseEnter: V,
20657
- onMouseLeave: j,
20657
+ onMouseLeave: b,
20658
20658
  role: "button",
20659
20659
  tabIndex: L ? -1 : 0,
20660
20660
  "aria-label": `${r} ${o.toLocaleDateString()}`,
@@ -20844,28 +20844,28 @@ const Y8 = (r) => {
20844
20844
  },
20845
20845
  a,
20846
20846
  c
20847
- ), f = (b) => o ? b.getTime() === o.getTime() : !1, x = (b) => !!(a && b < a || c && b > c), M = C(r, s);
20847
+ ), f = (x) => o ? x.getTime() === o.getTime() : !1, j = (x) => !!(a && x < a || c && x > c), v = C(r, s);
20848
20848
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
20849
- d.map((b, V) => /* @__PURE__ */ i(K8, { day: b }, V)),
20850
- M.map((b, V) => {
20851
- if (b === null)
20849
+ d.map((x, V) => /* @__PURE__ */ i(K8, { day: x }, V)),
20850
+ v.map((x, V) => {
20851
+ if (x === null)
20852
20852
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, V);
20853
- const j = new Date(r.getFullYear(), r.getMonth(), b), H = t ? h(j, p || null) : {
20853
+ const b = new Date(r.getFullYear(), r.getMonth(), x), H = t ? h(b, p || null) : {
20854
20854
  isStart: !1,
20855
20855
  isEnd: !1,
20856
20856
  isInRange: !1,
20857
20857
  isFirstInRange: !1,
20858
20858
  isLastInRange: !1,
20859
20859
  afterSelected: !0,
20860
- isDisabled: x(j),
20860
+ isDisabled: j(b),
20861
20861
  isHovered: !1
20862
20862
  };
20863
20863
  return /* @__PURE__ */ i(
20864
20864
  J8,
20865
20865
  {
20866
- day: b,
20867
- date: j,
20868
- isSelected: f(j),
20866
+ day: x,
20867
+ date: b,
20868
+ isSelected: f(b),
20869
20869
  isInRange: H.isInRange,
20870
20870
  isStart: H.isStart,
20871
20871
  isEnd: H.isEnd,
@@ -20873,7 +20873,7 @@ const Y8 = (r) => {
20873
20873
  isLastInRange: H.isLastInRange,
20874
20874
  afterSelected: H.afterSelected,
20875
20875
  isDisabled: H.isDisabled,
20876
- isToday: w(j),
20876
+ isToday: w(b),
20877
20877
  isHovered: H.isHovered,
20878
20878
  onClick: n,
20879
20879
  onMouseEnter: e,
@@ -21118,13 +21118,13 @@ const Y8 = (r) => {
21118
21118
  onValueChange: w,
21119
21119
  onChange: h,
21120
21120
  onClickExtraSlot: f,
21121
- className: x,
21122
- style: M,
21123
- name: b,
21121
+ className: j,
21122
+ style: v,
21123
+ name: x,
21124
21124
  autosize: V = !1,
21125
- colorLeftIcon: j,
21125
+ colorLeftIcon: b,
21126
21126
  infoTooltip: H = "",
21127
- ...Z
21127
+ ...y
21128
21128
  }, D) => {
21129
21129
  const {
21130
21130
  value: U,
@@ -21134,7 +21134,7 @@ const Y8 = (r) => {
21134
21134
  value: L,
21135
21135
  defaultValue: l,
21136
21136
  onChange: w
21137
- }), v = (N) => {
21137
+ }), m = (N) => {
21138
21138
  const q = N.target.value;
21139
21139
  A(q), h == null || h(N);
21140
21140
  }, { paddingClasses: g, getIconPosition: k } = e3({
@@ -21142,7 +21142,7 @@ const Y8 = (r) => {
21142
21142
  leftSlot: a,
21143
21143
  rightSlot: c,
21144
21144
  extraSlot: d
21145
- }), { baseClasses: O, containerClasses: m, labelClasses: I } = r3({
21145
+ }), { baseClasses: O, containerClasses: M, labelClasses: I } = r3({
21146
21146
  size: n,
21147
21147
  error: o,
21148
21148
  disabled: C,
@@ -21156,16 +21156,16 @@ const Y8 = (r) => {
21156
21156
  currentValue: U,
21157
21157
  setValue: A,
21158
21158
  isControlled: S,
21159
- inputId: Z.id
21159
+ inputId: y.id
21160
21160
  }), /* @__PURE__ */ u(
21161
21161
  "div",
21162
21162
  {
21163
21163
  className: Y(
21164
21164
  "ui-relative ui-flex ui-flex-col ui-gap-1",
21165
21165
  p ? "ui-w-full" : "ui-w-fit",
21166
- x
21166
+ j
21167
21167
  ),
21168
- style: M,
21168
+ style: v,
21169
21169
  children: [
21170
21170
  (r || H) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
21171
21171
  r && /* @__PURE__ */ i("label", { className: I, children: r }),
@@ -21183,12 +21183,12 @@ const Y8 = (r) => {
21183
21183
  }
21184
21184
  )
21185
21185
  ] }),
21186
- /* @__PURE__ */ u("div", { className: m, children: [
21186
+ /* @__PURE__ */ u("div", { className: M, children: [
21187
21187
  a && /* @__PURE__ */ i(
21188
21188
  b1,
21189
21189
  {
21190
21190
  slot: a,
21191
- colorIcon: j,
21191
+ colorIcon: b,
21192
21192
  className: `ui-absolute ${k("left")} ui-top-1/2 ui--translate-y-1/2`
21193
21193
  }
21194
21194
  ),
@@ -21198,11 +21198,11 @@ const Y8 = (r) => {
21198
21198
  placeholder: "Placeholder",
21199
21199
  disabled: C,
21200
21200
  value: U,
21201
- onChange: v,
21202
- name: b,
21203
- "data-input-id": Z.id || "default-input",
21201
+ onChange: m,
21202
+ name: x,
21203
+ "data-input-id": y.id || "default-input",
21204
21204
  className: O + " ui-min-w-12",
21205
- ...Z
21205
+ ...y
21206
21206
  }
21207
21207
  ),
21208
21208
  c && /* @__PURE__ */ i(
@@ -21262,8 +21262,8 @@ const o3 = E1(
21262
21262
  s || n();
21263
21263
  },
21264
21264
  extraSlot: "CalendarOutlined",
21265
- onChange: (M) => {
21266
- !s && e && e(M.target.value);
21265
+ onChange: (v) => {
21266
+ !s && e && e(v.target.value);
21267
21267
  },
21268
21268
  onFocus: () => {
21269
21269
  !s && a && a();
@@ -21309,8 +21309,8 @@ const o3 = E1(
21309
21309
  const w = a[l.getMonth()], h = l.getFullYear();
21310
21310
  switch (C) {
21311
21311
  case "years":
21312
- const f = s(h, c), x = f[0], M = f[f.length - 1];
21313
- return `${x} - ${M}`;
21312
+ const f = s(h, c), j = f[0], v = f[f.length - 1];
21313
+ return `${j} - ${v}`;
21314
21314
  case "months":
21315
21315
  return `${h}`;
21316
21316
  case "days":
@@ -21380,12 +21380,12 @@ const o3 = E1(
21380
21380
  hoverDate: w,
21381
21381
  onMonthSelect: h,
21382
21382
  onYearSelect: f,
21383
- renderDay: x
21383
+ renderDay: j
21384
21384
  }) => {
21385
- const M = (j) => {
21386
- h == null || h(j);
21387
- }, b = (j) => {
21388
- f == null || f(j);
21385
+ const v = (b) => {
21386
+ h == null || h(b);
21387
+ }, x = (b) => {
21388
+ f == null || f(b);
21389
21389
  };
21390
21390
  return /* @__PURE__ */ i("div", { className: "ui-flex ui-h-full ui-justify-center ui-p-3", children: (() => {
21391
21391
  switch (d) {
@@ -21404,7 +21404,7 @@ const o3 = E1(
21404
21404
  startOfWeek: p,
21405
21405
  showWeekNumbers: l,
21406
21406
  hoverDate: w,
21407
- renderDay: x
21407
+ renderDay: j
21408
21408
  }
21409
21409
  );
21410
21410
  case "months":
@@ -21413,7 +21413,7 @@ const o3 = E1(
21413
21413
  {
21414
21414
  currentDate: r,
21415
21415
  selectedMonth: r.getMonth(),
21416
- onMonthSelect: M,
21416
+ onMonthSelect: v,
21417
21417
  monthNames: L
21418
21418
  }
21419
21419
  );
@@ -21423,7 +21423,7 @@ const o3 = E1(
21423
21423
  {
21424
21424
  currentDate: r,
21425
21425
  selectedYear: r.getFullYear(),
21426
- onYearSelect: b,
21426
+ onYearSelect: x,
21427
21427
  yearRange: C
21428
21428
  }
21429
21429
  );
@@ -21461,13 +21461,13 @@ const o3 = E1(
21461
21461
  "Noviembre",
21462
21462
  "Diciembre"
21463
21463
  ],
21464
- startOfWeek: x = 1,
21465
- showWeekNumbers: M = !1,
21466
- yearRange: b = 12,
21464
+ startOfWeek: j = 1,
21465
+ showWeekNumbers: v = !1,
21466
+ yearRange: x = 12,
21467
21467
  hoverDate: V,
21468
- closeOnSelect: j,
21468
+ closeOnSelect: b,
21469
21469
  autoCloseRange: H,
21470
- renderHeader: Z,
21470
+ renderHeader: y,
21471
21471
  renderDay: D
21472
21472
  }) => {
21473
21473
  const U = (k) => {
@@ -21486,7 +21486,7 @@ const o3 = E1(
21486
21486
  }
21487
21487
  }, S = (k) => {
21488
21488
  p == null || p(k);
21489
- }, v = (k) => {
21489
+ }, m = (k) => {
21490
21490
  l == null || l(k);
21491
21491
  }, g = () => {
21492
21492
  switch (d) {
@@ -21502,8 +21502,8 @@ const o3 = E1(
21502
21502
  minDate: a,
21503
21503
  maxDate: c,
21504
21504
  weekDays: h,
21505
- startOfWeek: x,
21506
- showWeekNumbers: M,
21505
+ startOfWeek: j,
21506
+ showWeekNumbers: v,
21507
21507
  hoverDate: V,
21508
21508
  renderDay: D
21509
21509
  }
@@ -21524,8 +21524,8 @@ const o3 = E1(
21524
21524
  {
21525
21525
  currentDate: r,
21526
21526
  selectedYear: r.getFullYear(),
21527
- onYearSelect: v,
21528
- yearRange: b
21527
+ onYearSelect: m,
21528
+ yearRange: x
21529
21529
  }
21530
21530
  );
21531
21531
  default:
@@ -21537,7 +21537,7 @@ const o3 = E1(
21537
21537
  {
21538
21538
  className: Y(
21539
21539
  "ui-min-w-[254px] ui-overflow-hidden ui-rounded-lg ui-border ui-border-neutral-100 ui-bg-white ui-shadow-lg",
21540
- j ? "ui-min-h-[280px]" : "ui-min-h-[325px]"
21540
+ b ? "ui-min-h-[280px]" : "ui-min-h-[325px]"
21541
21541
  ),
21542
21542
  children: [
21543
21543
  /* @__PURE__ */ i(
@@ -21549,11 +21549,11 @@ const o3 = E1(
21549
21549
  onToggleViewMode: A,
21550
21550
  onGoToToday: C,
21551
21551
  monthNames: f,
21552
- renderHeader: Z
21552
+ renderHeader: y
21553
21553
  }
21554
21554
  ),
21555
21555
  /* @__PURE__ */ i("div", { className: "ui-h-full ui-p-3", children: g() }),
21556
- !j && /* @__PURE__ */ u("footer", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
21556
+ !b && /* @__PURE__ */ u("footer", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
21557
21557
  /* @__PURE__ */ i(o1, { variant: "outlined", size: "md", color: "white", children: "Cancelar" }),
21558
21558
  /* @__PURE__ */ i(o1, { size: "md", children: "Aceptar" })
21559
21559
  ] })
@@ -21577,43 +21577,43 @@ const o3 = E1(
21577
21577
  viewMode: w,
21578
21578
  minDate: h,
21579
21579
  maxDate: f,
21580
- locale: x,
21581
- weekDays: M,
21582
- monthNames: b,
21580
+ locale: j,
21581
+ weekDays: v,
21582
+ monthNames: x,
21583
21583
  startOfWeek: V,
21584
- showWeekNumbers: j,
21584
+ showWeekNumbers: b,
21585
21585
  yearRange: H,
21586
- hoverDate: Z,
21586
+ hoverDate: y,
21587
21587
  closeOnSelect: D,
21588
21588
  autoCloseRange: U,
21589
21589
  calendarsCount: A = 1,
21590
21590
  mode: S = "single",
21591
- onClickSelected: v = !1,
21591
+ onClickSelected: m = !1,
21592
21592
  renderHeader: g,
21593
21593
  renderDay: k
21594
21594
  }) => {
21595
- const [O, m] = X(Array(A).fill(w)), [I, N] = X(() => {
21595
+ const [O, M] = X(Array(A).fill(w)), [I, N] = X(() => {
21596
21596
  const R = [];
21597
- for (let y = 0; y < A; y++) {
21597
+ for (let Z = 0; Z < A; Z++) {
21598
21598
  const B = new Date(n);
21599
- B.setMonth(B.getMonth() + y), R.push(B);
21599
+ B.setMonth(B.getMonth() + Z), R.push(B);
21600
21600
  }
21601
21601
  return R;
21602
21602
  }), { renderPortal: q } = q8(r, o, t, 1100);
21603
21603
  W(() => {
21604
- m(Array(A).fill(w));
21604
+ M(Array(A).fill(w));
21605
21605
  }, [w, A]), W(() => {
21606
21606
  const R = [];
21607
- for (let y = 0; y < A; y++) {
21607
+ for (let Z = 0; Z < A; Z++) {
21608
21608
  const B = new Date(n);
21609
- B.setMonth(B.getMonth() + y), R.push(B);
21609
+ B.setMonth(B.getMonth() + Z), R.push(B);
21610
21610
  }
21611
21611
  N(R);
21612
21612
  }, [n, A]);
21613
21613
  const z = (R) => {
21614
- const y = O[R];
21614
+ const Z = O[R];
21615
21615
  let B;
21616
- switch (y) {
21616
+ switch (Z) {
21617
21617
  case "days":
21618
21618
  B = "months";
21619
21619
  break;
@@ -21627,24 +21627,24 @@ const o3 = E1(
21627
21627
  B = "days";
21628
21628
  }
21629
21629
  const T = [...O];
21630
- T[R] = B, m(T);
21631
- }, Q = (R, y) => {
21630
+ T[R] = B, M(T);
21631
+ }, Q = (R, Z) => {
21632
21632
  const B = [...I];
21633
21633
  B[R] = new Date(
21634
21634
  I[R].getFullYear(),
21635
- y,
21635
+ Z,
21636
21636
  1
21637
21637
  ), N(B);
21638
21638
  const T = [...O];
21639
- T[R] = "days", m(T), p == null || p(y);
21640
- }, G = (R, y) => {
21639
+ T[R] = "days", M(T), p == null || p(Z);
21640
+ }, G = (R, Z) => {
21641
21641
  const B = [...I];
21642
- B[R] = new Date(y, I[R].getMonth(), 1), N(B);
21642
+ B[R] = new Date(Z, I[R].getMonth(), 1), N(B);
21643
21643
  const T = [...O];
21644
- T[R] = "months", m(T), l == null || l(y);
21644
+ T[R] = "months", M(T), l == null || l(Z);
21645
21645
  }, J = (R) => {
21646
- const y = [...I];
21647
- y.forEach((B, T) => {
21646
+ const Z = [...I];
21647
+ Z.forEach((B, T) => {
21648
21648
  const e1 = new Date(B);
21649
21649
  switch (O[T]) {
21650
21650
  case "days":
@@ -21657,8 +21657,8 @@ const o3 = E1(
21657
21657
  e1.setFullYear(e1.getFullYear() + (R === "next" ? 12 : -12));
21658
21658
  break;
21659
21659
  }
21660
- y[T] = e1;
21661
- }), N(y), L(R);
21660
+ Z[T] = e1;
21661
+ }), N(Z), L(R);
21662
21662
  };
21663
21663
  return q(
21664
21664
  /* @__PURE__ */ i("div", { className: "ui-relative", children: S === "range" && A > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
@@ -21670,12 +21670,12 @@ const o3 = E1(
21670
21670
  onNavigate: J,
21671
21671
  onToggleViewMode: z,
21672
21672
  onGoToToday: C,
21673
- monthNames: b,
21673
+ monthNames: x,
21674
21674
  yearRange: H,
21675
21675
  renderHeader: g
21676
21676
  }
21677
21677
  ),
21678
- /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: I.map((R, y) => /* @__PURE__ */ i("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ i("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-white", children: /* @__PURE__ */ i(
21678
+ /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: I.map((R, Z) => /* @__PURE__ */ i("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ i("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-white", children: /* @__PURE__ */ i(
21679
21679
  u3,
21680
21680
  {
21681
21681
  currentDate: R,
@@ -21685,18 +21685,18 @@ const o3 = E1(
21685
21685
  onDateHover: d,
21686
21686
  minDate: h,
21687
21687
  maxDate: f,
21688
- viewMode: O[y],
21689
- weekDays: M,
21690
- monthNames: b,
21688
+ viewMode: O[Z],
21689
+ weekDays: v,
21690
+ monthNames: x,
21691
21691
  startOfWeek: V,
21692
- showWeekNumbers: j,
21692
+ showWeekNumbers: b,
21693
21693
  yearRange: H,
21694
- hoverDate: Z,
21695
- onMonthSelect: (B) => Q(y, B),
21696
- onYearSelect: (B) => G(y, B),
21694
+ hoverDate: y,
21695
+ onMonthSelect: (B) => Q(Z, B),
21696
+ onYearSelect: (B) => G(Z, B),
21697
21697
  renderDay: k
21698
21698
  }
21699
- ) }) }, y)) }),
21699
+ ) }) }, Z)) }),
21700
21700
  /* @__PURE__ */ u("div", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
21701
21701
  /* @__PURE__ */ i(o1, { variant: "outlined", size: "md", color: "white", children: "Cancelar" }),
21702
21702
  /* @__PURE__ */ i(o1, { size: "md", children: "Aceptar" })
@@ -21717,13 +21717,13 @@ const o3 = E1(
21717
21717
  onMonthSelect: p,
21718
21718
  onYearSelect: l,
21719
21719
  onGoToToday: C,
21720
- locale: x,
21721
- weekDays: M,
21722
- monthNames: b,
21720
+ locale: j,
21721
+ weekDays: v,
21722
+ monthNames: x,
21723
21723
  startOfWeek: V,
21724
- showWeekNumbers: j,
21724
+ showWeekNumbers: b,
21725
21725
  yearRange: H,
21726
- hoverDate: Z,
21726
+ hoverDate: y,
21727
21727
  closeOnSelect: D,
21728
21728
  autoCloseRange: U,
21729
21729
  renderHeader: g,
@@ -21761,30 +21761,30 @@ const o3 = E1(
21761
21761
  inputClassName: w = "",
21762
21762
  headerClassName: h = "",
21763
21763
  dayClassName: f = "",
21764
- monthClassName: x = "",
21765
- yearClassName: M = "",
21766
- disabledDayClassName: b = "text-gray-400 cursor-not-allowed",
21764
+ monthClassName: j = "",
21765
+ yearClassName: v = "",
21766
+ disabledDayClassName: x = "text-gray-400 cursor-not-allowed",
21767
21767
  rangeClassName: V = "bg-blue-100",
21768
- rangeStartClassName: j = "bg-blue-500 text-white rounded-l-full",
21768
+ rangeStartClassName: b = "bg-blue-500 text-white rounded-l-full",
21769
21769
  rangeEndClassName: H = "bg-blue-500 text-white rounded-r-full",
21770
- todayClassName: Z = "border border-blue-500",
21770
+ todayClassName: y = "border border-blue-500",
21771
21771
  showWeekNumbers: D = !1,
21772
21772
  yearRange: U = 12,
21773
21773
  initialViewMode: A = "days",
21774
21774
  closeOnSelect: S = !1,
21775
- autoCloseRange: v = !0,
21775
+ autoCloseRange: m = !0,
21776
21776
  placeholder: g = "Seleccionar fecha",
21777
21777
  format: k = "dd/MM/yyyy",
21778
21778
  calendarsCount: O = 1,
21779
- renderHeader: m,
21779
+ renderHeader: M,
21780
21780
  renderDay: I
21781
21781
  } = r, { state: N, selectedDate: q, selectedRange: z, inputRef: Q, isPortalReady: G, actions: J } = Y8(r), { handleRangeSelection: R } = c0(
21782
21782
  z,
21783
21783
  J.setSelectedRange,
21784
21784
  c,
21785
21785
  d,
21786
- v
21787
- ), y = (F) => {
21786
+ m
21787
+ ), Z = (F) => {
21788
21788
  if (!F || !(F instanceof Date) || isNaN(F.getTime()))
21789
21789
  return "";
21790
21790
  const i1 = F.getDate().toString().padStart(2, "0"), $ = (F.getMonth() + 1).toString().padStart(2, "0"), _ = F.getFullYear();
@@ -21792,7 +21792,7 @@ const o3 = E1(
21792
21792
  }, B = (F) => {
21793
21793
  if (!F || !F.start && !F.end) return "";
21794
21794
  const i1 = F.start && F.start instanceof Date && !isNaN(F.start.getTime()), $ = F.end && F.end instanceof Date && !isNaN(F.end.getTime());
21795
- return i1 && $ ? `${y(F.start)} - ${y(F.end)}` : i1 ? y(F.start) : $ ? y(F.end) : "";
21795
+ return i1 && $ ? `${Z(F.start)} - ${Z(F.end)}` : i1 ? Z(F.start) : $ ? Z(F.end) : "";
21796
21796
  }, T = (F) => {
21797
21797
  if (!F || !(F instanceof Date) || isNaN(F.getTime())) {
21798
21798
  console.warn("DatePicker: Se recibió una fecha inválida:", F);
@@ -21805,7 +21805,7 @@ const o3 = E1(
21805
21805
  return;
21806
21806
  }
21807
21807
  J.setHoverDate(F);
21808
- }, u1 = () => o === "single" ? y(q) : B(z);
21808
+ }, u1 = () => o === "single" ? Z(q) : B(z);
21809
21809
  return /* @__PURE__ */ u("div", { className: `relative ${C}`, children: [
21810
21810
  /* @__PURE__ */ i(
21811
21811
  o3,
@@ -21846,10 +21846,10 @@ const o3 = E1(
21846
21846
  yearRange: U,
21847
21847
  hoverDate: N.hoverDate,
21848
21848
  closeOnSelect: S,
21849
- autoCloseRange: v,
21849
+ autoCloseRange: m,
21850
21850
  calendarsCount: O,
21851
21851
  mode: o,
21852
- renderHeader: m,
21852
+ renderHeader: M,
21853
21853
  renderDay: I
21854
21854
  }
21855
21855
  )
@@ -21946,9 +21946,9 @@ const o3 = E1(
21946
21946
  W(() => {
21947
21947
  if (!r || o || !c) return;
21948
21948
  const L = (l) => {
21949
- var b, V;
21950
- const C = l.target, w = (b = t.current) == null ? void 0 : b.contains(C), h = (V = n == null ? void 0 : n.current) == null ? void 0 : V.contains(C), f = e ? C.closest(`[data-${a}-id="${e}"]`) : !1, x = a ? C.closest(`[data-${a}-container-id]`) : !1, M = d.some((j) => C.closest(j));
21951
- w || h || f || x || M || s();
21949
+ var x, V;
21950
+ const C = l.target, w = (x = t.current) == null ? void 0 : x.contains(C), h = (V = n == null ? void 0 : n.current) == null ? void 0 : V.contains(C), f = e ? C.closest(`[data-${a}-id="${e}"]`) : !1, j = a ? C.closest(`[data-${a}-container-id]`) : !1, v = d.some((b) => C.closest(b));
21951
+ w || h || f || j || v || s();
21952
21952
  }, p = (l) => {
21953
21953
  l.detail.id === e && s();
21954
21954
  };
@@ -21989,19 +21989,19 @@ const o3 = E1(
21989
21989
  },
21990
21990
  onSuccess: f = () => {
21991
21991
  },
21992
- showCancelButton: x = !0,
21993
- showSuccessButton: M = !0,
21994
- closeAtSuccess: b = !1,
21992
+ showCancelButton: j = !0,
21993
+ showSuccessButton: v = !0,
21994
+ closeAtSuccess: x = !1,
21995
21995
  closeAtCancel: V = !0
21996
21996
  }) => {
21997
- const j = f0(), { isVisible: H, isAnimating: Z } = w0(r), D = t1(null);
21997
+ const b = f0(), { isVisible: H, isAnimating: y } = w0(r), D = t1(null);
21998
21998
  h0(r), W1(r, o, d), g0(r, D, !s);
21999
21999
  const U = () => {
22000
22000
  h && h(), V && o();
22001
22001
  }, A = () => {
22002
- f && f(), b && o();
22002
+ f && f(), x && o();
22003
22003
  };
22004
- if (!j || !H) return null;
22004
+ if (!b || !H) return null;
22005
22005
  const S = /* @__PURE__ */ u(
22006
22006
  "div",
22007
22007
  {
@@ -22024,14 +22024,14 @@ const o3 = E1(
22024
22024
  {
22025
22025
  ref: D,
22026
22026
  tabIndex: -1,
22027
- onClick: (v) => v.stopPropagation(),
22027
+ onClick: (m) => m.stopPropagation(),
22028
22028
  className: Y(
22029
22029
  "ui-relative ui-z-10 ui-flex ui-flex-col ui-bg-white ui-shadow-xl ui-outline-none ui-transition-transform ui-duration-300 ui-ease-in-out",
22030
22030
  p3[n],
22031
22031
  L === "right" ? "ui-ml-auto" : "ui-mr-auto"
22032
22032
  ),
22033
22033
  style: {
22034
- transform: L === "right" ? Z ? "translateX(0)" : "translateX(100%)" : Z ? "translateX(0)" : "translateX(-100%)"
22034
+ transform: L === "right" ? y ? "translateX(0)" : "translateX(100%)" : y ? "translateX(0)" : "translateX(-100%)"
22035
22035
  },
22036
22036
  children: /* @__PURE__ */ u(g1, { rounded: !1, padding: !1, gap: !1, className: Y(p), children: [
22037
22037
  /* @__PURE__ */ i(g1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: t && /* @__PURE__ */ i(d3, { title: t, icon: a }) }) }),
@@ -22045,11 +22045,11 @@ const o3 = E1(
22045
22045
  children: e
22046
22046
  }
22047
22047
  ),
22048
- (x || M) && /* @__PURE__ */ u(Z1, { children: [
22048
+ (j || v) && /* @__PURE__ */ u(Z1, { children: [
22049
22049
  /* @__PURE__ */ i(g1.Separator, { padding: !1 }),
22050
22050
  /* @__PURE__ */ u(g1.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-4 ui-p-4", children: [
22051
- x && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "outlined", color: "white", onClick: U, children: C }),
22052
- M && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "button", onClick: A, children: w })
22051
+ j && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "outlined", color: "white", onClick: U, children: C }),
22052
+ v && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "button", onClick: A, children: w })
22053
22053
  ] })
22054
22054
  ] })
22055
22055
  ] })
@@ -22058,7 +22058,7 @@ const o3 = E1(
22058
22058
  ]
22059
22059
  }
22060
22060
  );
22061
- return l0.createPortal(S, j);
22061
+ return l0.createPortal(S, b);
22062
22062
  }, p5 = ({ className: r }) => /* @__PURE__ */ i("div", { className: Y("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", r) }), m0 = ({
22063
22063
  children: r,
22064
22064
  icon: o,
@@ -22257,13 +22257,13 @@ const o3 = E1(
22257
22257
  absolute: w = !1,
22258
22258
  onOpenChange: h
22259
22259
  }) => {
22260
- const f = a0(), x = L || `dropdown-${f}`, [M, b] = X(!1), [V, j] = X(!1), [H, Z] = X(""), [D, U] = X("bottom"), [A, S] = X({}), v = t1(null), g = t1(null), k = t1(null), O = P(
22260
+ const f = a0(), j = L || `dropdown-${f}`, [v, x] = X(!1), [V, b] = X(!1), [H, y] = X(""), [D, U] = X("bottom"), [A, S] = X({}), m = t1(null), g = t1(null), k = t1(null), O = P(
22261
22261
  ($) => $ == null ? [] : Array.isArray($) ? $ : [$],
22262
22262
  []
22263
- ), m = P(
22263
+ ), M = P(
22264
22264
  ($) => $ == null || $ === "" ? "" : Array.isArray($) ? $[0] || "" : $,
22265
22265
  []
22266
- ), [I, N] = X(() => l ? O(o) : m(o)), q = r !== void 0, z = q ? r : I, Q = P(
22266
+ ), [I, N] = X(() => l ? O(o) : M(o)), q = r !== void 0, z = q ? r : I, Q = P(
22267
22267
  ($) => {
22268
22268
  q || N($), a == null || a($);
22269
22269
  },
@@ -22275,16 +22275,16 @@ const o3 = E1(
22275
22275
  const $ = O(r);
22276
22276
  N((_) => JSON.stringify(_) !== JSON.stringify($) ? $ : _);
22277
22277
  } else {
22278
- const $ = m(r);
22278
+ const $ = M(r);
22279
22279
  N((_) => _ !== $ ? $ : _);
22280
22280
  }
22281
- }, [r, q, l, O, m]);
22282
- const G = l ? t.filter(($) => O(z).includes($[n])) : [
22283
- t.find(($) => z === "" || z === null || z === void 0 ? !1 : $[e] === -1 ? z === -1 || z === "-1" : $[n] === z)
22281
+ }, [r, q, l, O, M]);
22282
+ const G = l ? t.filter(($) => O(z).includes($[e])) : [
22283
+ t.find(($) => z === "" || z === null || z === void 0 ? !1 : $[e] === -1 ? z === -1 || z === "-1" : $[e] === z)
22284
22284
  ].filter(Boolean), J = t.filter(($) => {
22285
22285
  const _ = d ? $[n].toLowerCase().includes(H.toLowerCase()) : !0;
22286
22286
  if (l) {
22287
- const r1 = O(z).includes($[n]);
22287
+ const r1 = O(z).includes($[e]);
22288
22288
  return _ && !r1;
22289
22289
  }
22290
22290
  return $[e] === -1 && (z === -1 || z === "-1") ? !1 : _;
@@ -22294,7 +22294,7 @@ const o3 = E1(
22294
22294
  return $ || ((n1 = k.current) == null ? void 0 : n1.querySelector(
22295
22295
  '[data-dropdown-input="true"]'
22296
22296
  ));
22297
- }, []), y = P(() => {
22297
+ }, []), Z = P(() => {
22298
22298
  const $ = R();
22299
22299
  $ && requestAnimationFrame(() => {
22300
22300
  var $1;
@@ -22312,7 +22312,7 @@ const o3 = E1(
22312
22312
  const I1 = _.top - w1.top, O1 = _.left - w1.left;
22313
22313
  d1 === "bottom" ? a1 = I1 + _.height + 4 : a1 = I1 - n1 - 4, v1 = O1;
22314
22314
  }
22315
- const M1 = 1100, L1 = parseInt(x.replace(/\D/g, "")) || 0, k1 = M1 + L1 % 100, _1 = {
22315
+ const M1 = 1100, L1 = parseInt(j.replace(/\D/g, "")) || 0, k1 = M1 + L1 % 100, _1 = {
22316
22316
  position: w ? "absolute" : "fixed",
22317
22317
  top: `${a1}px`,
22318
22318
  left: `${v1}px`,
@@ -22321,7 +22321,7 @@ const o3 = E1(
22321
22321
  };
22322
22322
  S(_1);
22323
22323
  });
22324
- }, [R, J.length, x, w]), B = P(() => {
22324
+ }, [R, J.length, j, w]), B = P(() => {
22325
22325
  if (!g.current || !G.length)
22326
22326
  return;
22327
22327
  const _ = g.current.querySelector(".ui-overflow-y-auto");
@@ -22330,7 +22330,7 @@ const o3 = E1(
22330
22330
  const r1 = G[0];
22331
22331
  if (!r1) return;
22332
22332
  const n1 = _.querySelector(
22333
- `[data-option-value="${r1[n]}"]`
22333
+ `[data-option-value="${r1[e]}"]`
22334
22334
  );
22335
22335
  if (!n1)
22336
22336
  return;
@@ -22340,64 +22340,64 @@ const o3 = E1(
22340
22340
  behavior: "smooth"
22341
22341
  });
22342
22342
  }, [G, n]), T = ($) => {
22343
- $ && $.stopPropagation(), !p && (M ? e1() : (C3(x), Z(""), j(!1), y(), setTimeout(() => {
22344
- b(!0), G1.add(x), setTimeout(() => {
22345
- y(), setTimeout(() => {
22343
+ $ && $.stopPropagation(), !p && (v ? e1() : (C3(j), y(""), b(!1), Z(), setTimeout(() => {
22344
+ x(!0), G1.add(j), setTimeout(() => {
22345
+ Z(), setTimeout(() => {
22346
22346
  B();
22347
22347
  }, 50);
22348
22348
  }, 50);
22349
22349
  }, 50)));
22350
22350
  }, e1 = () => {
22351
- j(!0), setTimeout(() => {
22352
- b(!1), j(!1), G1.delete(x);
22351
+ b(!0), setTimeout(() => {
22352
+ x(!1), b(!1), G1.delete(j);
22353
22353
  }, 150);
22354
22354
  }, u1 = ($, _) => {
22355
22355
  if (_.stopPropagation(), !$.disabled) {
22356
22356
  if (l) {
22357
- const r1 = O(z), n1 = $[n];
22357
+ const r1 = O(z), n1 = $[e];
22358
22358
  if (C && r1.length >= C && !r1.includes(n1))
22359
22359
  return;
22360
22360
  const p1 = r1.includes(n1) ? r1.filter((s1) => s1 !== n1) : [...r1, n1];
22361
22361
  Q(p1);
22362
22362
  } else {
22363
- const r1 = $[e] === -1 ? -1 : $[n];
22364
- Q(r1), Z(""), e1();
22363
+ const r1 = $[e] === -1 ? -1 : $[e];
22364
+ Q(r1), y(""), e1();
22365
22365
  }
22366
22366
  c == null || c($);
22367
22367
  }
22368
22368
  }, F = ($) => {
22369
- Z($.target.value);
22369
+ y($.target.value);
22370
22370
  }, i1 = ($) => {
22371
- $.stopPropagation(), Q(l ? [] : ""), Z("");
22371
+ $.stopPropagation(), Q(l ? [] : ""), y("");
22372
22372
  };
22373
22373
  return W(() => {
22374
- h == null || h(M);
22375
- }, [M, h]), M0({
22376
- isActive: M && !V,
22374
+ h == null || h(v);
22375
+ }, [v, h]), M0({
22376
+ isActive: v && !V,
22377
22377
  // Solo activar cuando esté abierto y no cerrando
22378
22378
  disabled: p,
22379
22379
  elementRef: g,
22380
22380
  containerRef: k,
22381
- elementId: x,
22381
+ elementId: j,
22382
22382
  elementType: "dropdown",
22383
22383
  closeOnClickOutside: s,
22384
22384
  onOutsideClick: () => {
22385
22385
  e1();
22386
22386
  }
22387
22387
  }), W(() => {
22388
- if (M) {
22388
+ if (v) {
22389
22389
  const $ = () => {
22390
- y();
22390
+ Z();
22391
22391
  }, _ = () => {
22392
- M && !V && y();
22392
+ v && !V && Z();
22393
22393
  };
22394
22394
  return window.addEventListener("resize", $), window.addEventListener("scroll", _, !1), document.addEventListener("scroll", _, !1), () => {
22395
22395
  window.removeEventListener("resize", $), window.removeEventListener("scroll", _, !1), document.removeEventListener("scroll", _, !1);
22396
22396
  };
22397
22397
  }
22398
- }, [M, y, V]), {
22398
+ }, [v, Z, V]), {
22399
22399
  // Estado
22400
- isOpen: M,
22400
+ isOpen: v,
22401
22401
  isClosing: V,
22402
22402
  searchValue: H,
22403
22403
  selectedValue: z,
@@ -22408,17 +22408,17 @@ const o3 = E1(
22408
22408
  isControlled: q,
22409
22409
  multiple: l,
22410
22410
  // Referencias
22411
- inputRef: v,
22411
+ inputRef: m,
22412
22412
  dropdownRef: g,
22413
22413
  containerRef: k,
22414
- dropdownUniqueId: x,
22414
+ dropdownUniqueId: j,
22415
22415
  // Funciones
22416
22416
  toggleDropdown: T,
22417
22417
  closeDropdown: e1,
22418
22418
  handleOptionSelect: u1,
22419
22419
  handleSearchChange: F,
22420
22420
  handleClear: i1,
22421
- calculatePosition: y,
22421
+ calculatePosition: Z,
22422
22422
  setValue: Q,
22423
22423
  scrollToSelectedOption: B,
22424
22424
  normalizeToArray: O
@@ -22466,28 +22466,29 @@ const o3 = E1(
22466
22466
  error: p,
22467
22467
  helperText: l,
22468
22468
  rightSlot: C,
22469
- valueName: w
22469
+ valueName: w,
22470
+ idName: h
22470
22471
  }) => {
22471
- const [h, f] = X(!1), [x, M] = X(null), b = t1(null);
22472
+ const [f, j] = X(!1), [v, x] = X(null), V = t1(null);
22472
22473
  return W(() => {
22473
- if (!b.current || t.length === 0) {
22474
- f(!1), M(null);
22474
+ if (!V.current || t.length === 0) {
22475
+ j(!1), x(null);
22475
22476
  return;
22476
22477
  }
22477
- const j = setTimeout(() => {
22478
- const H = b.current;
22479
- if (H) {
22480
- const Z = H.scrollHeight, D = H.clientHeight;
22481
- if (x === null) {
22482
- M(D);
22478
+ const H = setTimeout(() => {
22479
+ const y = V.current;
22480
+ if (y) {
22481
+ const D = y.scrollHeight, U = y.clientHeight;
22482
+ if (v === null) {
22483
+ x(U);
22483
22484
  return;
22484
22485
  }
22485
- const U = Z > x;
22486
- f(U);
22486
+ const A = D > v;
22487
+ j(A);
22487
22488
  }
22488
22489
  }, 100);
22489
- return () => clearTimeout(j);
22490
- }, [t.length, x]), // Input personalizado con tags para modo tags
22490
+ return () => clearTimeout(H);
22491
+ }, [t.length, v]), // Input personalizado con tags para modo tags
22491
22492
  /* @__PURE__ */ u("div", { className: "ui-w-full", children: [
22492
22493
  r && /* @__PURE__ */ i("label", { className: "ui-mb-1 ui-block ui-text-sm ui-font-bold ui-text-gray-700", children: r }),
22493
22494
  /* @__PURE__ */ u(
@@ -22495,9 +22496,9 @@ const o3 = E1(
22495
22496
  {
22496
22497
  ref: s,
22497
22498
  "data-dropdown-input": "true",
22498
- className: `ui-flex ui-min-h-[32px] ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-md ui-border ui-border-gray-300 ui-bg-white ui-px-2 ${h ? "ui-py-2" : "ui-py-0.5"} ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-blue-500 focus-within:ui-ring-2 focus-within:ui-ring-blue-200 hover:ui-border-gray-400`,
22499
- onClick: (V) => {
22500
- c || e(V);
22499
+ className: `ui-flex ui-min-h-[32px] ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-md ui-border ui-border-gray-300 ui-bg-white ui-px-2 ${f ? "ui-py-2" : "ui-py-0.5"} ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-blue-500 focus-within:ui-ring-2 focus-within:ui-ring-blue-200 hover:ui-border-gray-400`,
22500
+ onClick: (b) => {
22501
+ c || e(b);
22501
22502
  },
22502
22503
  onFocus: () => {
22503
22504
  !a && !c && (d(!0), e());
@@ -22507,20 +22508,20 @@ const o3 = E1(
22507
22508
  t.length > 0 ? /* @__PURE__ */ i(
22508
22509
  "div",
22509
22510
  {
22510
- ref: b,
22511
- className: `ui-flex ui-flex-wrap ui-gap-1 ${h ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
22512
- children: t.map((V) => V ? /* @__PURE__ */ i(
22511
+ ref: V,
22512
+ className: `ui-flex ui-flex-wrap ui-gap-1 ${f ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
22513
+ children: t.map((b) => b ? /* @__PURE__ */ i(
22513
22514
  x0,
22514
22515
  {
22515
22516
  className: "ui-z-[1010]",
22516
- label: V[w],
22517
+ label: b[w],
22517
22518
  color: "blue",
22518
22519
  size: "xs",
22519
- onClick: (j) => {
22520
- j.stopPropagation(), n(V[w]);
22520
+ onClick: (H) => {
22521
+ H.stopPropagation(), n(b[h]);
22521
22522
  }
22522
22523
  },
22523
- V[w]
22524
+ b[w]
22524
22525
  ) : null)
22525
22526
  }
22526
22527
  ) : /* @__PURE__ */ i("span", { className: "ui-text-sm ui-text-neutral-500", children: o }),
@@ -22561,38 +22562,38 @@ const o3 = E1(
22561
22562
  defaultValue: w = "",
22562
22563
  disabled: h = !1,
22563
22564
  placeholder: f = "",
22564
- options: x = [],
22565
- valueName: M = "label",
22566
- idName: b = "id",
22565
+ options: j = [],
22566
+ valueName: v = "label",
22567
+ idName: x = "value",
22567
22568
  onValueChange: V,
22568
- onOptionSelect: j,
22569
+ onOptionSelect: b,
22569
22570
  onCheckboxChange: H,
22570
- searchable: Z = !1,
22571
+ searchable: y = !1,
22571
22572
  maxHeight: D = "200px",
22572
22573
  closeOnClickOutside: U = !0,
22573
22574
  dropdownId: A,
22574
22575
  multiple: S = !1,
22575
- maxSelectedItems: v,
22576
+ maxSelectedItems: m,
22576
22577
  selectedItemsDisplay: g = "tags",
22577
22578
  absolute: k = !1,
22578
22579
  footer: O = !1,
22579
- defaultOptionSelected: m = !1,
22580
+ defaultOptionSelected: M = !1,
22580
22581
  withCheckbox: I = !1,
22581
22582
  ...N
22582
22583
  }, q) => {
22583
- const z = t1(null), [Q, G] = X(c), [J, R] = X(null), [y, B] = X(!1), u1 = S ? x : !S && m ? [
22584
+ const z = t1(null), [Q, G] = X(c), [J, R] = X(null), [Z, B] = X(!1), u1 = S ? j : !S && M ? [
22584
22585
  {
22585
22586
  ...{
22586
22587
  label: f || "Selecciona una opción",
22587
22588
  value: -1,
22588
22589
  disabled: !1
22589
22590
  },
22590
- [b]: -1,
22591
+ [x]: -1,
22591
22592
  value: -1,
22592
22593
  label: f || "Selecciona una opción"
22593
22594
  },
22594
- ...x.filter((E) => E[b] !== -1)
22595
- ] : x, F = C !== void 0 ? C : m && !S ? -1 : w, {
22595
+ ...j.filter((E) => E[x] !== -1)
22596
+ ] : j, F = C !== void 0 ? C : M && !S ? -1 : w, {
22596
22597
  // Estado
22597
22598
  isOpen: i1,
22598
22599
  isClosing: $,
@@ -22621,16 +22622,16 @@ const o3 = E1(
22621
22622
  value: C,
22622
22623
  defaultValue: F,
22623
22624
  options: u1,
22624
- valueName: M,
22625
- idName: b,
22625
+ valueName: v,
22626
+ idName: x,
22626
22627
  onValueChange: V,
22627
- onOptionSelect: j,
22628
- searchable: Z,
22628
+ onOptionSelect: b,
22629
+ searchable: y,
22629
22630
  closeOnClickOutside: U,
22630
22631
  dropdownId: A,
22631
22632
  disabled: h,
22632
22633
  multiple: S,
22633
- maxSelectedItems: v,
22634
+ maxSelectedItems: m,
22634
22635
  absolute: k,
22635
22636
  onOpenChange: (E) => {
22636
22637
  E && setTimeout(() => {
@@ -22644,14 +22645,14 @@ const o3 = E1(
22644
22645
  G((E) => E !== c ? c : E), R((E) => E !== null ? null : E);
22645
22646
  else {
22646
22647
  const E = u1.find(
22647
- (l1) => l1[M] === C || l1[b] === C
22648
+ (l1) => l1[v] === C || l1[x] === C
22648
22649
  );
22649
22650
  if (E) {
22650
22651
  const l1 = E.icon || c, V1 = E.iconColor || null;
22651
22652
  G((K) => K !== l1 ? l1 : K), R((K) => K !== V1 ? V1 : K);
22652
22653
  }
22653
22654
  }
22654
- }, [C, d1, u1, M, b, c]), Q1(
22655
+ }, [C, d1, u1, v, x, c]), Q1(
22655
22656
  q,
22656
22657
  () => ({
22657
22658
  getValue: () => r1,
@@ -22730,14 +22731,14 @@ const o3 = E1(
22730
22731
  case "count":
22731
22732
  return `${n1.length} elemento${n1.length > 1 ? "s" : ""} seleccionado${n1.length > 1 ? "s" : ""}`;
22732
22733
  case "text":
22733
- return n1.map((E) => E == null ? void 0 : E[M]).filter(Boolean).join(", ");
22734
+ return n1.map((E) => E == null ? void 0 : E[v]).filter(Boolean).join(", ");
22734
22735
  case "tags":
22735
22736
  default:
22736
22737
  return "";
22737
22738
  }
22738
22739
  } else {
22739
22740
  const E = n1[0];
22740
- return E ? E[b] === -1 || E[M] === -1 || E[M] === "-1" ? f : E[M] || "" : "";
22741
+ return E ? E[x] === -1 || E[v] === -1 || E[v] === "-1" ? f : E[v] || "" : "";
22741
22742
  }
22742
22743
  }, y0 = () => {
22743
22744
  if (!i1 || !s1.top) return null;
@@ -22759,7 +22760,7 @@ const o3 = E1(
22759
22760
  className: `py-2 ui-min-w-fit ui-overflow-hidden ui-rounded-sm ui-border ui-border-neutral-200 ui-bg-white ui-shadow-lg ${E}`,
22760
22761
  onClick: (K) => K.stopPropagation(),
22761
22762
  children: [
22762
- /* @__PURE__ */ i("div", { children: Z && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (K) => K.stopPropagation(), children: /* @__PURE__ */ i(
22763
+ /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (K) => K.stopPropagation(), children: /* @__PURE__ */ i(
22763
22764
  A1,
22764
22765
  {
22765
22766
  value: _,
@@ -22771,17 +22772,17 @@ const o3 = E1(
22771
22772
  size: "sm"
22772
22773
  }
22773
22774
  ) }) }),
22774
- Z && /* @__PURE__ */ i(J1, {}),
22775
+ y && /* @__PURE__ */ i(J1, {}),
22775
22776
  /* @__PURE__ */ i("div", { className: "no-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: p1.length > 0 ? p1.map((K) => {
22776
22777
  const P1 = S ? n1.some(
22777
- (y1) => y1 && y1[M] === K[M]
22778
- ) : K[b] === -1 && (r1 === -1 || r1 === "-1") || K[M] === r1;
22778
+ (y1) => y1 && y1[x] === K[x]
22779
+ ) : K[x] === -1 && (r1 === -1 || r1 === "-1") || K[x] === r1;
22779
22780
  return I ? /* @__PURE__ */ i(
22780
22781
  v0,
22781
22782
  {
22782
22783
  disabled: K.disabled,
22783
22784
  current: P1 ? "blue" : !1,
22784
- "data-option-value": K[M],
22785
+ "data-option-value": K[x],
22785
22786
  icon: K.icon,
22786
22787
  iconColor: K.iconColor,
22787
22788
  checkboxProps: {
@@ -22789,21 +22790,21 @@ const o3 = E1(
22789
22790
  onChange: (y1) => H == null ? void 0 : H(K, y1),
22790
22791
  disabled: K.disabled
22791
22792
  },
22792
- children: K[M]
22793
+ children: K[v]
22793
22794
  },
22794
- K[b] || K[M]
22795
+ K[x] || K[v]
22795
22796
  ) : /* @__PURE__ */ i(
22796
22797
  m0,
22797
22798
  {
22798
22799
  onClick: (y1) => l1(K, y1),
22799
22800
  disabled: K.disabled,
22800
22801
  current: P1 ? "blue" : !1,
22801
- "data-option-value": K[M],
22802
+ "data-option-value": K[x],
22802
22803
  icon: K.icon,
22803
22804
  iconColor: K.iconColor,
22804
- children: K[M]
22805
+ children: K[v]
22805
22806
  },
22806
- K[b] || K[M]
22807
+ K[x] || K[v]
22807
22808
  );
22808
22809
  }) : _ ? /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-max-w-[300px] ui-break-words ui-px-3 ui-py-2 ui-text-center ui-text-sm ui-text-neutral-500", children: [
22809
22810
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(j1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
@@ -22856,14 +22857,15 @@ const o3 = E1(
22856
22857
  handleRemoveSelected: r0,
22857
22858
  toggleDropdown: L1,
22858
22859
  isOpen: i1,
22859
- isOpening: y,
22860
+ isOpening: Z,
22860
22861
  setIsOpening: B,
22861
22862
  customInputRef: z,
22862
22863
  disabled: h,
22863
22864
  error: t,
22864
22865
  helperText: n || "",
22865
22866
  rightSlot: d,
22866
- valueName: M
22867
+ valueName: v,
22868
+ idName: x
22867
22869
  }
22868
22870
  ) : (
22869
22871
  // Input normal para otros modos
@@ -22897,12 +22899,12 @@ const o3 = E1(
22897
22899
  S && g !== "tags" && n1.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: n1.map((E) => E ? /* @__PURE__ */ i(
22898
22900
  x0,
22899
22901
  {
22900
- label: E[M],
22902
+ label: E[v],
22901
22903
  color: "blue",
22902
22904
  size: "sm",
22903
- onClick: () => r0(E[M])
22905
+ onClick: () => r0(E[x])
22904
22906
  },
22905
- E[M]
22907
+ E[v]
22906
22908
  ) : null) }),
22907
22909
  y0()
22908
22910
  ]
@@ -22946,13 +22948,13 @@ const h3 = {
22946
22948
  title: w,
22947
22949
  tabs: h,
22948
22950
  defaultValueTab: f,
22949
- onChangeTab: x,
22950
- headerButtonIcon: M,
22951
- headerButtonOnClick: b,
22951
+ onChangeTab: j,
22952
+ headerButtonIcon: v,
22953
+ headerButtonOnClick: x,
22952
22954
  footerButtonIcon: V,
22953
- footerButtonOnClick: j,
22955
+ footerButtonOnClick: b,
22954
22956
  cancelButtonSlotLeft: H,
22955
- successButtonSlotRight: Z
22957
+ successButtonSlotRight: y
22956
22958
  }) => {
22957
22959
  const D = {
22958
22960
  onClose: o,
@@ -22970,13 +22972,13 @@ const h3 = {
22970
22972
  icon: n,
22971
22973
  tabs: h,
22972
22974
  defaultValueTab: f,
22973
- onChangeTab: x,
22974
- headerButtonIcon: M,
22975
- headerButtonOnClick: b,
22975
+ onChangeTab: j,
22976
+ headerButtonIcon: v,
22977
+ headerButtonOnClick: x,
22976
22978
  footerButtonIcon: V,
22977
- footerButtonOnClick: j,
22979
+ footerButtonOnClick: b,
22978
22980
  cancelButtonSlotLeft: H,
22979
- successButtonSlotRight: Z
22981
+ successButtonSlotRight: y
22980
22982
  };
22981
22983
  return /* @__PURE__ */ i(j0.Provider, { value: D, children: r });
22982
22984
  }, V0 = () => {
@@ -23049,26 +23051,26 @@ const h3 = {
23049
23051
  onChangeTab: w,
23050
23052
  headerButtonIcon: h,
23051
23053
  headerButtonOnClick: f
23052
- } = V0(), x = o ?? L, M = c ?? h, b = d ?? f, V = (n == null ? void 0 : n.length) > 0 ? n : l, j = (V == null ? void 0 : V.length) ?? !1, H = a ?? w, Z = e ?? C, D = (U) => {
23054
+ } = V0(), j = o ?? L, v = c ?? h, x = d ?? f, V = (n == null ? void 0 : n.length) > 0 ? n : l, b = (V == null ? void 0 : V.length) ?? !1, H = a ?? w, y = e ?? C, D = (U) => {
23053
23055
  H && H(U);
23054
23056
  };
23055
23057
  return /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-flex-wrap ui-items-center ui-justify-between ui-gap-x-md ui-border-b ui-border-neutral-100 ui-p-4", children: [
23056
23058
  p && /* @__PURE__ */ i("div", { className: "ui-flex ui-h-8 ui-w-8 ui-items-center ui-justify-center ui-gap-2 ui-rounded-full ui-bg-blue-50 ui-text-blue-500", children: /* @__PURE__ */ i(b1, { slot: p, size: "lg" }) }),
23057
23059
  /* @__PURE__ */ i("div", { className: "ui-flex-1", children: t ? /* @__PURE__ */ i("h2", { className: "ui-text-2xl ui-font-semibold", children: t }) : r }),
23058
23060
  /* @__PURE__ */ u("div", { className: "ui-z-10 ui-flex ui-items-center ui-gap-2", children: [
23059
- b && /* @__PURE__ */ i(
23061
+ x && /* @__PURE__ */ i(
23060
23062
  o1,
23061
23063
  {
23062
- onClick: b,
23064
+ onClick: x,
23063
23065
  "aria-label": "Header button",
23064
23066
  variant: "outlined",
23065
23067
  rounded: !0,
23066
23068
  color: "white",
23067
- icon: M ?? "AlignJustifyOutlined",
23069
+ icon: v ?? "AlignJustifyOutlined",
23068
23070
  size: "lg"
23069
23071
  }
23070
23072
  ),
23071
- x && /* @__PURE__ */ i(
23073
+ j && /* @__PURE__ */ i(
23072
23074
  o1,
23073
23075
  {
23074
23076
  onClick: s,
@@ -23081,11 +23083,11 @@ const h3 = {
23081
23083
  }
23082
23084
  )
23083
23085
  ] }),
23084
- j ? /* @__PURE__ */ i("div", { className: "ui-z-0 ui-mt-2 ui-flex ui-w-full ui-justify-center ui-overflow-x-auto sm:ui-absolute", children: /* @__PURE__ */ i(
23086
+ b ? /* @__PURE__ */ i("div", { className: "ui-z-0 ui-mt-2 ui-flex ui-w-full ui-justify-center ui-overflow-x-auto sm:ui-absolute", children: /* @__PURE__ */ i(
23085
23087
  M3,
23086
23088
  {
23087
23089
  options: V ?? [],
23088
- defaultValue: Z,
23090
+ defaultValue: y,
23089
23091
  size: "sm",
23090
23092
  onChange: (U) => {
23091
23093
  D(U);
@@ -23114,13 +23116,13 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23114
23116
  closeAtCancel: w,
23115
23117
  footerButtonIcon: h,
23116
23118
  footerButtonOnClick: f,
23117
- cancelButtonSlotLeft: x,
23118
- successButtonSlotRight: M
23119
- } = V0(), b = () => {
23119
+ cancelButtonSlotLeft: j,
23120
+ successButtonSlotRight: v
23121
+ } = V0(), x = () => {
23120
23122
  s && s(), w && a();
23121
23123
  }, V = () => {
23122
23124
  L && L(), C && a();
23123
- }, j = o ?? h, H = t ?? f;
23125
+ }, b = o ?? h, H = t ?? f;
23124
23126
  return /* @__PURE__ */ u(
23125
23127
  "div",
23126
23128
  {
@@ -23133,7 +23135,7 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23133
23135
  variant: "outlined",
23134
23136
  rounded: !0,
23135
23137
  color: "white",
23136
- icon: j ?? "AlignJustifyOutlined",
23138
+ icon: b ?? "AlignJustifyOutlined",
23137
23139
  size: "lg",
23138
23140
  onClick: H
23139
23141
  }
@@ -23142,17 +23144,17 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23142
23144
  p && /* @__PURE__ */ i(
23143
23145
  o1,
23144
23146
  {
23145
- slotLeft: n ?? x,
23147
+ slotLeft: n ?? j,
23146
23148
  color: "white",
23147
23149
  variant: "outlined",
23148
- onClick: b,
23150
+ onClick: x,
23149
23151
  children: c
23150
23152
  }
23151
23153
  ),
23152
23154
  l && /* @__PURE__ */ i(
23153
23155
  o1,
23154
23156
  {
23155
- slotLeft: e ?? M,
23157
+ slotLeft: e ?? v,
23156
23158
  onClick: V,
23157
23159
  children: d
23158
23160
  }
@@ -23190,20 +23192,20 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23190
23192
  onSuccess: w,
23191
23193
  title: h,
23192
23194
  showCancelButton: f,
23193
- showSuccessButton: x,
23194
- closeAtSuccess: M,
23195
- closeAtCancel: b,
23195
+ showSuccessButton: j,
23196
+ closeAtSuccess: v,
23197
+ closeAtCancel: x,
23196
23198
  tabs: V,
23197
- defaultValueTab: j,
23199
+ defaultValueTab: b,
23198
23200
  onChangeTab: H,
23199
- headerButtonIcon: Z,
23201
+ headerButtonIcon: y,
23200
23202
  headerButtonOnClick: D,
23201
23203
  footerButtonIcon: U,
23202
23204
  footerButtonOnClick: A,
23203
23205
  cancelButtonSlotLeft: S,
23204
- successButtonSlotRight: v
23206
+ successButtonSlotRight: m
23205
23207
  }) => {
23206
- const { isVisible: g, animateIn: k, container: O, modalRef: m } = g3({
23208
+ const { isVisible: g, animateIn: k, container: O, modalRef: M } = g3({
23207
23209
  isOpen: r,
23208
23210
  onClose: o,
23209
23211
  disableEscapeClose: c,
@@ -23232,7 +23234,7 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23232
23234
  /* @__PURE__ */ i("div", { className: "ui-flex ui-min-h-full ui-items-start ui-justify-center ui-px-4 ui-py-8", children: /* @__PURE__ */ i(
23233
23235
  "div",
23234
23236
  {
23235
- ref: m,
23237
+ ref: M,
23236
23238
  tabIndex: -1,
23237
23239
  className: Y(
23238
23240
  "ui-relative ui-z-10 ui-my-auto ui-flex ui-w-full ui-transform ui-flex-col ui-rounded-lg ui-bg-white ui-shadow-md ui-outline-none ui-transition-all ui-duration-200",
@@ -23252,20 +23254,20 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23252
23254
  onCancel: C,
23253
23255
  onSuccess: w,
23254
23256
  showCancelButton: f,
23255
- showSuccessButton: x,
23256
- closeAtSuccess: M,
23257
- closeAtCancel: b,
23257
+ showSuccessButton: j,
23258
+ closeAtSuccess: v,
23259
+ closeAtCancel: x,
23258
23260
  title: h,
23259
23261
  icon: t,
23260
- headerButtonIcon: Z,
23262
+ headerButtonIcon: y,
23261
23263
  headerButtonOnClick: D,
23262
23264
  footerButtonIcon: U,
23263
23265
  footerButtonOnClick: A,
23264
23266
  tabs: V,
23265
- defaultValueTab: j,
23267
+ defaultValueTab: b,
23266
23268
  onChangeTab: H,
23267
23269
  cancelButtonSlotLeft: S,
23268
- successButtonSlotRight: v,
23270
+ successButtonSlotRight: m,
23269
23271
  children: [
23270
23272
  !I && (a || h ? /* @__PURE__ */ i(F1, { title: h }) : null),
23271
23273
  e && e,
@@ -23301,80 +23303,80 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23301
23303
  disabled: d = !1,
23302
23304
  absolute: s = !1
23303
23305
  }) => {
23304
- const L = a0(), p = e || `popup-${L}`, [l, C] = X(!1), [w, h] = X({}), [f, x] = X(!1), M = t1(null), b = t1(null), V = t1(null), j = P(() => {
23305
- const D = M.current, U = b.current;
23306
+ const L = a0(), p = e || `popup-${L}`, [l, C] = X(!1), [w, h] = X({}), [f, j] = X(!1), v = t1(null), x = t1(null), V = t1(null), b = P(() => {
23307
+ const D = v.current, U = x.current;
23306
23308
  if (!D || !U) return;
23307
23309
  const A = D.getBoundingClientRect(), S = U.getBoundingClientRect();
23308
23310
  if (S.width === 0 || S.height === 0)
23309
23311
  return;
23310
- let v = 0, g = 0;
23312
+ let m = 0, g = 0;
23311
23313
  if (s) {
23312
23314
  const N = D.offsetTop, q = D.offsetLeft, z = D.offsetWidth, Q = D.offsetHeight;
23313
23315
  switch (r) {
23314
23316
  case "top":
23315
- v = N - S.height - o, g = q + (z - S.width) / 2;
23317
+ m = N - S.height - o, g = q + (z - S.width) / 2;
23316
23318
  break;
23317
23319
  case "bottom":
23318
23320
  case "bottom-center":
23319
- v = N + Q + o, g = q + (z - S.width) / 2;
23321
+ m = N + Q + o, g = q + (z - S.width) / 2;
23320
23322
  break;
23321
23323
  case "bottom-left":
23322
- v = N + Q + o, g = q;
23324
+ m = N + Q + o, g = q;
23323
23325
  break;
23324
23326
  case "bottom-right":
23325
- v = N + Q + o, g = q + z - S.width;
23327
+ m = N + Q + o, g = q + z - S.width;
23326
23328
  break;
23327
23329
  case "left":
23328
- v = N, g = q - S.width - o;
23330
+ m = N, g = q - S.width - o;
23329
23331
  break;
23330
23332
  case "right":
23331
- v = N, g = q + z + o;
23333
+ m = N, g = q + z + o;
23332
23334
  break;
23333
23335
  }
23334
23336
  } else {
23335
23337
  const N = window.innerWidth, q = window.innerHeight, z = A.top, Q = A.left, G = A.width, J = A.height;
23336
23338
  switch (r) {
23337
23339
  case "top":
23338
- v = z - S.height - o, g = Q + (G - S.width) / 2;
23340
+ m = z - S.height - o, g = Q + (G - S.width) / 2;
23339
23341
  break;
23340
23342
  case "bottom":
23341
23343
  case "bottom-center":
23342
- v = z + J + o, g = Q + (G - S.width) / 2;
23344
+ m = z + J + o, g = Q + (G - S.width) / 2;
23343
23345
  break;
23344
23346
  case "bottom-left":
23345
- v = z + J + o, g = Q;
23347
+ m = z + J + o, g = Q;
23346
23348
  break;
23347
23349
  case "bottom-right":
23348
- v = z + J + o, g = Q + G - S.width;
23350
+ m = z + J + o, g = Q + G - S.width;
23349
23351
  break;
23350
23352
  case "left":
23351
- v = z, g = Q - S.width - o;
23353
+ m = z, g = Q - S.width - o;
23352
23354
  break;
23353
23355
  case "right":
23354
- v = z, g = Q + G + o;
23356
+ m = z, g = Q + G + o;
23355
23357
  break;
23356
23358
  }
23357
- g < 0 && (g = 0), g + S.width > N && (g = N - S.width), v < 0 && (v = 0), v + S.height > q && (v = q - S.height), r === "bottom-right" && S.width > A.width && (g = A.right - S.width, g < 0 && (g = 0));
23359
+ g < 0 && (g = 0), g + S.width > N && (g = N - S.width), m < 0 && (m = 0), m + S.height > q && (m = q - S.height), r === "bottom-right" && S.width > A.width && (g = A.right - S.width, g < 0 && (g = 0));
23358
23360
  }
23359
- const k = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, m = k + O % 100, I = {
23361
+ const k = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, M = k + O % 100, I = {
23360
23362
  position: s ? "absolute" : "fixed",
23361
- top: `${v}px`,
23363
+ top: `${m}px`,
23362
23364
  left: `${g}px`,
23363
- zIndex: m
23365
+ zIndex: M
23364
23366
  };
23365
- h(I), x(!0);
23367
+ h(I), j(!0);
23366
23368
  }, [r, o, p, s]), H = (D) => {
23367
- D && D.stopPropagation(), !d && (l ? Z() : (V3(p), h({}), x(!1), C(!0), X1.add(p), a == null || a()));
23368
- }, Z = () => {
23369
- C(!1), x(!1), X1.delete(p), c == null || c();
23369
+ D && D.stopPropagation(), !d && (l ? y() : (V3(p), h({}), j(!1), C(!0), X1.add(p), a == null || a()));
23370
+ }, y = () => {
23371
+ C(!1), j(!1), X1.delete(p), c == null || c();
23370
23372
  };
23371
23373
  return W(() => {
23372
23374
  if (l) {
23373
23375
  const D = () => {
23374
- const U = b.current;
23376
+ const U = x.current;
23375
23377
  if (U) {
23376
23378
  const A = U.getBoundingClientRect();
23377
- A.width > 0 && A.height > 0 && A.width !== 0 && A.height !== 0 ? j() : setTimeout(() => {
23379
+ A.width > 0 && A.height > 0 && A.width !== 0 && A.height !== 0 ? b() : setTimeout(() => {
23378
23380
  requestAnimationFrame(D);
23379
23381
  }, 10);
23380
23382
  }
@@ -23383,36 +23385,36 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23383
23385
  requestAnimationFrame(D);
23384
23386
  }, 0);
23385
23387
  }
23386
- }, [l, j]), W(() => {
23388
+ }, [l, b]), W(() => {
23387
23389
  if (!l || !f || s) return;
23388
23390
  let D = !1;
23389
23391
  const U = () => {
23390
23392
  D || (requestAnimationFrame(() => {
23391
- j(), D = !1;
23393
+ b(), D = !1;
23392
23394
  }), D = !0);
23393
23395
  };
23394
23396
  return window.addEventListener("scroll", U, { passive: !0 }), window.addEventListener("resize", U, { passive: !0 }), () => {
23395
23397
  window.removeEventListener("scroll", U), window.removeEventListener("resize", U);
23396
23398
  };
23397
- }, [l, f, s, j]), M0({
23399
+ }, [l, f, s, b]), M0({
23398
23400
  isActive: l,
23399
23401
  disabled: d,
23400
- elementRef: b,
23402
+ elementRef: x,
23401
23403
  containerRef: V,
23402
23404
  elementId: p,
23403
23405
  elementType: "popup",
23404
23406
  closeOnClickOutside: t,
23405
- onOutsideClick: Z
23406
- }), W1(l, Z, !n), {
23407
+ onOutsideClick: y
23408
+ }), W1(l, y, !n), {
23407
23409
  isOpen: l,
23408
23410
  popupStyle: w,
23409
23411
  isPositioned: f,
23410
- triggerRef: M,
23411
- popupRef: b,
23412
+ triggerRef: v,
23413
+ popupRef: x,
23412
23414
  containerRef: V,
23413
23415
  popupUniqueId: p,
23414
23416
  togglePopup: H,
23415
- closePopup: Z
23417
+ closePopup: y
23416
23418
  };
23417
23419
  }, O3 = (r) => ({
23418
23420
  sm: "ui-rounded-sm",
@@ -23439,22 +23441,22 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23439
23441
  size: w = "md",
23440
23442
  textColor: h = "inherit",
23441
23443
  rounded: f = !1,
23442
- slotLeft: x,
23443
- borderRadius: M = "sm",
23444
- slotRight: b,
23444
+ slotLeft: j,
23445
+ borderRadius: v = "sm",
23446
+ slotRight: x,
23445
23447
  icon: V,
23446
- colorIcon: j,
23448
+ colorIcon: b,
23447
23449
  tooltip: H,
23448
- tooltipPosition: Z,
23450
+ tooltipPosition: y,
23449
23451
  tooltipAlignment: D,
23450
23452
  tooltipColor: U,
23451
23453
  tooltipDelay: A,
23452
23454
  absolute: S = !1,
23453
- closeOnClick: v = !0,
23455
+ closeOnClick: m = !0,
23454
23456
  buttonClassName: g,
23455
23457
  containerClassName: k,
23456
23458
  buttonTransition: O = !0,
23457
- buttonStyle: m,
23459
+ buttonStyle: M,
23458
23460
  ...I
23459
23461
  }, N) => {
23460
23462
  const {
@@ -23464,7 +23466,7 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23464
23466
  triggerRef: G,
23465
23467
  popupRef: J,
23466
23468
  containerRef: R,
23467
- popupUniqueId: y,
23469
+ popupUniqueId: Z,
23468
23470
  togglePopup: B,
23469
23471
  closePopup: T
23470
23472
  } = H3({
@@ -23502,16 +23504,16 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23502
23504
  opacity: Q ? 1 : 0,
23503
23505
  transition: "opacity 0.1s ease-out",
23504
23506
  ...z
23505
- }, F = O3(M), i1 = /* @__PURE__ */ i(
23507
+ }, F = O3(v), i1 = /* @__PURE__ */ i(
23506
23508
  "div",
23507
23509
  {
23508
23510
  ref: J,
23509
- id: y,
23510
- "data-popup-id": y,
23511
+ id: Z,
23512
+ "data-popup-id": Z,
23511
23513
  style: u1,
23512
23514
  className: `ui-border ui-border-neutral-100 ui-bg-white ${F} ui-overflow-hidden ui-shadow-lg ${d}`,
23513
23515
  onClick: () => {
23514
- v && T();
23516
+ m && T();
23515
23517
  },
23516
23518
  ...I,
23517
23519
  children: r
@@ -23524,7 +23526,7 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23524
23526
  {
23525
23527
  ref: R,
23526
23528
  className: Y("ui-relative ui-h-max"),
23527
- "data-popup-container-id": y,
23529
+ "data-popup-container-id": Z,
23528
23530
  children: [
23529
23531
  /* @__PURE__ */ i("div", { ref: G, className: Y("ui-w-fit", k), children: /* @__PURE__ */ i(
23530
23532
  H1,
@@ -23537,17 +23539,17 @@ const m3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23537
23539
  size: w,
23538
23540
  rounded: f,
23539
23541
  icon: V,
23540
- slotLeft: x,
23541
- slotRight: b,
23542
- colorIcon: j,
23542
+ slotLeft: j,
23543
+ slotRight: x,
23544
+ colorIcon: b,
23543
23545
  textColor: h,
23544
23546
  tooltip: H,
23545
- tooltipPosition: Z,
23547
+ tooltipPosition: y,
23546
23548
  tooltipAlignment: D,
23547
23549
  tooltipColor: U,
23548
23550
  tooltipDelay: A,
23549
23551
  transition: O,
23550
- style: m,
23552
+ style: M,
23551
23553
  children: o || ""
23552
23554
  }
23553
23555
  ) }),
@@ -23583,17 +23585,17 @@ const Z3 = [
23583
23585
  W(() => {
23584
23586
  r > o && o > 0 && d(o);
23585
23587
  }, [r, o, d]);
23586
- const w = (j) => {
23587
- j >= 1 && j <= o && d(j);
23588
+ const w = (b) => {
23589
+ b >= 1 && b <= o && d(b);
23588
23590
  }, [h, f] = X(t);
23589
23591
  W(() => {
23590
23592
  f(t);
23591
23593
  }, [t]);
23592
- const x = Math.min(r * (t || 0), n || 0) || 0, b = (() => {
23593
- const j = Math.min(Math.max(r, 1), Math.max(o - p + 1, 1)), H = Math.min(j + p - 1, o);
23594
- return Array.from({ length: H - j + 1 }, (Z, D) => j + D);
23595
- })(), V = (j) => {
23596
- f(j), s(j), w(1);
23594
+ const j = Math.min(r * (t || 0), n || 0) || 0, x = (() => {
23595
+ const b = Math.min(Math.max(r, 1), Math.max(o - p + 1, 1)), H = Math.min(b + p - 1, o);
23596
+ return Array.from({ length: H - b + 1 }, (y, D) => b + D);
23597
+ })(), V = (b) => {
23598
+ f(b), s(b), w(1);
23597
23599
  };
23598
23600
  return /* @__PURE__ */ i(
23599
23601
  "div",
@@ -23610,9 +23612,9 @@ const Z3 = [
23610
23612
  o,
23611
23613
  n && /* @__PURE__ */ u("span", { className: "ui-ml-2", children: [
23612
23614
  "(",
23613
- x,
23615
+ j,
23614
23616
  "-",
23615
- x,
23617
+ j,
23616
23618
  " de ",
23617
23619
  n,
23618
23620
  ")"
@@ -23652,21 +23654,21 @@ const Z3 = [
23652
23654
  "aria-label": "Ir a la página anterior"
23653
23655
  }
23654
23656
  ),
23655
- b.map((j) => /* @__PURE__ */ i(
23657
+ x.map((b) => /* @__PURE__ */ i(
23656
23658
  o1,
23657
23659
  {
23658
23660
  square: !0,
23659
23661
  rounded: !0,
23660
- onClick: () => w(j),
23661
- whiteBackground: r === j,
23662
+ onClick: () => w(b),
23663
+ whiteBackground: r === b,
23662
23664
  size: "md",
23663
23665
  variant: "outlined",
23664
- color: r === j ? "neutral" : "white",
23665
- "aria-label": `Ir a la página ${j}`,
23666
- "aria-current": r === j ? "page" : void 0,
23667
- children: j
23666
+ color: r === b ? "neutral" : "white",
23667
+ "aria-label": `Ir a la página ${b}`,
23668
+ "aria-current": r === b ? "page" : void 0,
23669
+ children: b
23668
23670
  },
23669
- j
23671
+ b
23670
23672
  )),
23671
23673
  /* @__PURE__ */ i(
23672
23674
  o1,
@@ -23715,7 +23717,7 @@ const Z3 = [
23715
23717
  options: c,
23716
23718
  value: h,
23717
23719
  valueName: "id",
23718
- onValueChange: (j) => V(Number(j))
23720
+ onValueChange: (b) => V(Number(b))
23719
23721
  }
23720
23722
  )
23721
23723
  ] }) })
@@ -23939,15 +23941,15 @@ const Z3 = [
23939
23941
  }) => {
23940
23942
  const [d, s] = X(!1), [L, p] = X(!1), l = c || `radio-${Math.random().toString(36).substr(2, 9)}`, w = r !== void 0 ? r : o !== void 0 ? o : !1, h = P(() => t ? w ? "disabledChecked" : "disabledUnchecked" : d ? w ? "checkedActive" : "uncheckedActive" : L ? w ? "checkedHover" : "uncheckedHover" : w ? "checked" : "unchecked", [t, w, d, L]), f = P(() => {
23941
23943
  t || s(!0);
23942
- }, [t]), x = P(() => {
23944
+ }, [t]), j = P(() => {
23943
23945
  s(!1);
23944
- }, []), M = P(() => {
23946
+ }, []), v = P(() => {
23945
23947
  t || p(!0);
23946
- }, [t]), b = P(() => {
23948
+ }, [t]), x = P(() => {
23947
23949
  p(!1), s(!1);
23948
23950
  }, []), V = P(
23949
- (j) => {
23950
- t || (j.preventDefault(), n && n({
23951
+ (b) => {
23952
+ t || (b.preventDefault(), n && n({
23951
23953
  target: {
23952
23954
  value: e,
23953
23955
  checked: !w,
@@ -23965,9 +23967,9 @@ const Z3 = [
23965
23967
  isHovered: L,
23966
23968
  handlers: {
23967
23969
  handleMouseDown: f,
23968
- handleMouseUp: x,
23969
- handleMouseEnter: M,
23970
- handleMouseLeave: b,
23970
+ handleMouseUp: j,
23971
+ handleMouseEnter: v,
23972
+ handleMouseLeave: x,
23971
23973
  handleClick: V
23972
23974
  }
23973
23975
  };
@@ -24306,23 +24308,23 @@ const Z3 = [
24306
24308
  vertical: C = !1,
24307
24309
  stepClickable: w = !1
24308
24310
  }) => {
24309
- const { currentStep: h, getColorClasses: f, handleStepClick: x, getStepStatus: M } = N3({
24311
+ const { currentStep: h, getColorClasses: f, handleStepClick: j, getStepStatus: v } = N3({
24310
24312
  steps: r,
24311
24313
  currentStep: s,
24312
24314
  onClickStep: L,
24313
24315
  onStepChange: p
24314
- }), b = f(o || "blue");
24315
- return /* @__PURE__ */ i("div", { className: `${C ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${l ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${l ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${E3({ color: o, size: t, className: n })}`, children: r.map((j, H) => {
24316
- const Z = M(H), D = H === r.length - 1;
24316
+ }), x = f(o || "blue");
24317
+ return /* @__PURE__ */ i("div", { className: `${C ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${l ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${l ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${E3({ color: o, size: t, className: n })}`, children: r.map((b, H) => {
24318
+ const y = v(H), D = H === r.length - 1;
24317
24319
  return /* @__PURE__ */ i(
24318
24320
  A3,
24319
24321
  {
24320
- step: j,
24322
+ step: b,
24321
24323
  stepIndex: H,
24322
- status: Z,
24323
- colorClasses: b,
24324
+ status: y,
24325
+ colorClasses: x,
24324
24326
  isLast: D,
24325
- onStepClick: x,
24327
+ onStepClick: j,
24326
24328
  classNameStep: e,
24327
24329
  classNameStepLabel: a,
24328
24330
  classNameStepIcon: c,