@imj_media/ui 1.0.79 → 1.0.80

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
@@ -12,7 +12,7 @@ import b9, { createPortal as E1 } from "react-dom";
12
12
  import $2 from "lottie-react";
13
13
  import { Prism as N2 } from "react-syntax-highlighter";
14
14
  import { dark as T2, prism as A2, materialLight as z2, materialDark as P2, atomDark as F2, oneLight as E2, oneDark as D2, tomorrow as R2, dracula as _2 } from "react-syntax-highlighter/dist/esm/styles/prism";
15
- function U(...t) {
15
+ function _(...t) {
16
16
  return R9(D9(t));
17
17
  }
18
18
  l0.add(
@@ -349,7 +349,7 @@ function Q2({
349
349
  return /* @__PURE__ */ u(
350
350
  "div",
351
351
  {
352
- className: U("ui-inline-block ui-text-center ui-text-xs ui-text-gray-500", e),
352
+ className: _("ui-inline-block ui-text-center ui-text-xs ui-text-gray-500", e),
353
353
  style: { fontSize: `${C}px` },
354
354
  children: [
355
355
  "Custom: ",
@@ -18671,7 +18671,7 @@ function Tt({
18671
18671
  role: "button",
18672
18672
  tabIndex: 0,
18673
18673
  onClick: Z,
18674
- className: U(
18674
+ className: _(
18675
18675
  e,
18676
18676
  "ui-inline-block ui-cursor-pointer ui-rounded-full ui-p-1 ui-transition-all ui-duration-200",
18677
18677
  a ? `ui-rounded-full ui-bg-blue-50 ${l[c]}` : "",
@@ -18685,7 +18685,7 @@ function Tt({
18685
18685
  ) : /* @__PURE__ */ i(
18686
18686
  "i",
18687
18687
  {
18688
- className: U(
18688
+ className: _(
18689
18689
  e,
18690
18690
  "ui-inline-block",
18691
18691
  a ? `ui-rounded-full ui-bg-blue-50 ${l[c]}` : ""
@@ -18782,7 +18782,7 @@ const At = ({
18782
18782
  }
18783
18783
  }
18784
18784
  );
18785
- return /* @__PURE__ */ i("span", { className: U(d({ color: o, border: r, size: s }), n), ...e, children: t });
18785
+ return /* @__PURE__ */ i("span", { className: _(d({ color: o, border: r, size: s }), n), ...e, children: t });
18786
18786
  }, zt = ({ slot: t, className: o, size: r, fallback: n = "" }) => {
18787
18787
  const [e, a] = q(!1), [c, s] = q(!1), d = i1(null), p = C1("inner-avatar", {
18788
18788
  variants: {
@@ -18832,7 +18832,7 @@ const At = ({
18832
18832
  }, [t]), !t || e ? /* @__PURE__ */ i(
18833
18833
  "div",
18834
18834
  {
18835
- className: U(
18835
+ className: _(
18836
18836
  o,
18837
18837
  "ui-rounded-full ui-flex ui-items-center ui-bg-blue-500 ui-justify-center ui-text-white ui-font-medium ui-leading-none",
18838
18838
  p
@@ -18844,7 +18844,7 @@ const At = ({
18844
18844
  {
18845
18845
  src: t,
18846
18846
  alt: "Visual",
18847
- className: U(o, "ui-rounded-full ui-object-cover", p),
18847
+ className: _(o, "ui-rounded-full ui-object-cover", p),
18848
18848
  onError: l,
18849
18849
  onLoad: L,
18850
18850
  loading: "lazy"
@@ -18852,7 +18852,7 @@ const At = ({
18852
18852
  ) : /* @__PURE__ */ i(
18853
18853
  "div",
18854
18854
  {
18855
- className: U(
18855
+ className: _(
18856
18856
  o,
18857
18857
  "ui-rounded-full ui-flex ui-items-center ui-bg-gray-300 ui-justify-center ui-text-gray-600 ui-font-medium",
18858
18858
  p
@@ -19155,26 +19155,26 @@ const At = ({
19155
19155
  });
19156
19156
  return /* @__PURE__ */ i("span", { className: e({ size: o }), role: "img", "aria-label": t, children: n });
19157
19157
  }, Ft = (t = "top", o = "center", r = !1, n = 0, e = !1) => {
19158
- const [a, c] = q(!1), [s, d] = q({ top: 0, left: 0 }), [C, p] = q({ width: 0, height: 0 }), [l, L] = q(t), h = i1(null), g = i1(null), m = i1(null), f = i1(null), V = i1(null), j = i1(null), I = i1(null), H = i1({ top: 0, left: 0 }), Z = i1({ count: 0, lastTime: 0 }), b = N(() => {
19159
- c(!1), d({ top: 0, left: 0 }), L(t), I.current = null, Z.current.count = 0, Z.current.lastTime = 0, H.current = { top: 0, left: 0 };
19158
+ const [a, c] = q(!1), [s, d] = q({ top: 0, left: 0 }), [C, p] = q({ width: 0, height: 0 }), [l, L] = q(t), h = i1(null), g = i1(null), m = i1(null), f = i1(null), V = i1(null), j = i1(null), k = i1(null), H = i1({ top: 0, left: 0 }), Z = i1({ count: 0, lastTime: 0 }), b = N(() => {
19159
+ c(!1), d({ top: 0, left: 0 }), L(t), k.current = null, Z.current.count = 0, Z.current.lastTime = 0, H.current = { top: 0, left: 0 };
19160
19160
  }, [t]), v = N(() => {
19161
19161
  if (!h.current || !a) return;
19162
19162
  const w = h.current.getBoundingClientRect(), x = { top: w.top, left: w.left };
19163
- if (I.current) {
19164
- const $ = I.current, B = 2;
19163
+ if (k.current) {
19164
+ const $ = k.current, B = 2;
19165
19165
  if (Math.abs(x.top - $.top) > B || Math.abs(x.left - $.left) > B) {
19166
19166
  b();
19167
19167
  return;
19168
19168
  }
19169
19169
  }
19170
- I.current = x;
19170
+ k.current = x;
19171
19171
  }, [a, b]), S = N(() => {
19172
- var _, G, R, W, F, P;
19172
+ var U, G, R, W, F, P;
19173
19173
  if (!h.current || !g.current) return;
19174
19174
  const w = h.current.getBoundingClientRect(), x = g.current.getBoundingClientRect(), $ = 8;
19175
19175
  let B = 0, M = 0;
19176
19176
  if (r) {
19177
- const T = (_ = m.current) == null ? void 0 : _.getBoundingClientRect();
19177
+ const T = (U = m.current) == null ? void 0 : U.getBoundingClientRect();
19178
19178
  if (!T) return;
19179
19179
  const z = w.top - T.top, D = w.left - T.left;
19180
19180
  switch (t) {
@@ -19335,20 +19335,20 @@ const At = ({
19335
19335
  b();
19336
19336
  return;
19337
19337
  }
19338
- const k = Date.now();
19339
- if (k - Z.current.lastTime < 100) {
19338
+ const I = Date.now();
19339
+ if (I - Z.current.lastTime < 100) {
19340
19340
  if (Z.current.count++, Z.current.count > 5) {
19341
19341
  b();
19342
19342
  return;
19343
19343
  }
19344
19344
  } else
19345
19345
  Z.current.count = 0;
19346
- Z.current.lastTime = k, H.current = { top: B, left: M }, d({ top: B, left: M });
19346
+ Z.current.lastTime = I, H.current = { top: B, left: M }, d({ top: B, left: M });
19347
19347
  }, [t, o, r, b]);
19348
19348
  K(() => (a && g.current ? (requestAnimationFrame(() => {
19349
19349
  if (S(), h.current) {
19350
19350
  const w = h.current.getBoundingClientRect();
19351
- I.current = { top: w.top, left: w.left };
19351
+ k.current = { top: w.top, left: w.left };
19352
19352
  }
19353
19353
  }), j.current = setInterval(v, 100)) : j.current && (clearInterval(j.current), j.current = null), () => {
19354
19354
  j.current && (clearInterval(j.current), j.current = null);
@@ -19614,11 +19614,11 @@ const At = ({
19614
19614
  adjustedPosition: f,
19615
19615
  triggerRef: V,
19616
19616
  tooltipRef: j,
19617
- containerRef: I,
19617
+ containerRef: k,
19618
19618
  handleMouseEnter: H,
19619
19619
  handleMouseLeave: Z
19620
19620
  } = Ft(r, n, L, c, s), b = _t(e, L), v = Dt(f, e);
19621
- return /* @__PURE__ */ u("div", { ref: I, className: L ? "ui-relative" : "ui-contents", children: [
19621
+ return /* @__PURE__ */ u("div", { ref: k, className: L ? "ui-relative" : "ui-contents", children: [
19622
19622
  /* @__PURE__ */ i(
19623
19623
  "div",
19624
19624
  {
@@ -19627,7 +19627,7 @@ const At = ({
19627
19627
  onMouseLeave: Z,
19628
19628
  onFocus: H,
19629
19629
  onBlur: Z,
19630
- className: U("ui-inline-block ui-h-fit ui-w-fit", C ? "ui-w-full" : "ui-w-fit"),
19630
+ className: _("ui-inline-block ui-h-fit ui-w-fit", C ? "ui-w-full" : "ui-w-fit"),
19631
19631
  children: t
19632
19632
  }
19633
19633
  ),
@@ -19636,7 +19636,7 @@ const At = ({
19636
19636
  {
19637
19637
  ref: j,
19638
19638
  id: a,
19639
- className: U(
19639
+ className: _(
19640
19640
  b,
19641
19641
  "imj-ui-tooltip ui-font-bold",
19642
19642
  d
@@ -19652,7 +19652,7 @@ const At = ({
19652
19652
  ...h,
19653
19653
  children: [
19654
19654
  o,
19655
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: v })
19655
+ /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", l), style: v })
19656
19656
  ]
19657
19657
  }
19658
19658
  ) : E1(
@@ -19661,7 +19661,7 @@ const At = ({
19661
19661
  {
19662
19662
  ref: j,
19663
19663
  id: a,
19664
- className: U(
19664
+ className: _(
19665
19665
  b,
19666
19666
  "imj-ui-tooltip ui-font-bold",
19667
19667
  d
@@ -19677,7 +19677,7 @@ const At = ({
19677
19677
  ...h,
19678
19678
  children: [
19679
19679
  o,
19680
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: v })
19680
+ /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", l), style: v })
19681
19681
  ]
19682
19682
  }
19683
19683
  ),
@@ -19864,7 +19864,7 @@ const At = ({
19864
19864
  size: f,
19865
19865
  square: V = !1,
19866
19866
  target: j = "_self",
19867
- onClickIcon: I,
19867
+ onClickIcon: k,
19868
19868
  onClickLeftSlot: H,
19869
19869
  onClickRightSlot: Z,
19870
19870
  disabled: b,
@@ -19877,9 +19877,9 @@ const At = ({
19877
19877
  as: $ = "button",
19878
19878
  classNameId: B = "imj-ui-inner-button",
19879
19879
  tooltip: M = "",
19880
- tooltipPosition: k,
19880
+ tooltipPosition: I,
19881
19881
  tooltipAlignment: A,
19882
- tooltipColor: _ = "neutral",
19882
+ tooltipColor: U = "neutral",
19883
19883
  tooltipDelay: G,
19884
19884
  tooltipAbsolute: R,
19885
19885
  classNameTooltip: W,
@@ -19938,7 +19938,7 @@ const At = ({
19938
19938
  l && /* @__PURE__ */ u(
19939
19939
  "p",
19940
19940
  {
19941
- className: U(
19941
+ className: _(
19942
19942
  "ui-relative ui-leading-none",
19943
19943
  n || e ? "" : "ui-w-full",
19944
19944
  s1({ color: L, textAlign: D })
@@ -19957,7 +19957,7 @@ const At = ({
19957
19957
  name: g,
19958
19958
  size: a === "icon" ? f : O !== "none" ? O : f,
19959
19959
  color: v,
19960
- onClick: a === "icon" ? z || I : void 0
19960
+ onClick: a === "icon" ? z || k : void 0
19961
19961
  }
19962
19962
  ) : g),
19963
19963
  l && e && /* @__PURE__ */ i(
@@ -19972,7 +19972,7 @@ const At = ({
19972
19972
  strokeWidth: a1
19973
19973
  }
19974
19974
  )
19975
- ] }), r1 = V ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", d1 = x ? _ || "neutral" : C, k1 = C1(
19975
+ ] }), r1 = V ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", d1 = x ? U || "neutral" : C, k1 = C1(
19976
19976
  `${B} ui-h-fit ui-justify-center ui-flex ui-items-center ui-box-border ui-border-solid ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${S && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${P ? "enabled:!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19977
19977
  {
19978
19978
  variants: {
@@ -20028,7 +20028,7 @@ const At = ({
20028
20028
  rounded: p,
20029
20029
  fullWidth: r,
20030
20030
  variant: a,
20031
- className: U(t)
20031
+ className: _(t)
20032
20032
  });
20033
20033
  return m ? /* @__PURE__ */ i(
20034
20034
  "a",
@@ -20036,14 +20036,14 @@ const At = ({
20036
20036
  ref: T,
20037
20037
  href: m,
20038
20038
  target: j,
20039
- className: U(k1, t),
20039
+ className: _(k1, t),
20040
20040
  children: l1()
20041
20041
  }
20042
20042
  ) : $ === "div" ? /* @__PURE__ */ i(
20043
20043
  i0,
20044
20044
  {
20045
20045
  label: M,
20046
- position: k,
20046
+ position: I,
20047
20047
  alignment: A,
20048
20048
  absolute: R,
20049
20049
  color: d1,
@@ -20054,7 +20054,7 @@ const At = ({
20054
20054
  "div",
20055
20055
  {
20056
20056
  ref: T,
20057
- className: U(k1, t),
20057
+ className: _(k1, t),
20058
20058
  ...J,
20059
20059
  children: l1()
20060
20060
  }
@@ -20064,7 +20064,7 @@ const At = ({
20064
20064
  i0,
20065
20065
  {
20066
20066
  label: M,
20067
- position: k,
20067
+ position: I,
20068
20068
  alignment: A,
20069
20069
  color: d1,
20070
20070
  delay: G,
@@ -20074,7 +20074,7 @@ const At = ({
20074
20074
  "button",
20075
20075
  {
20076
20076
  ref: T,
20077
- className: U(k1, t),
20077
+ className: _(k1, t),
20078
20078
  ...u1,
20079
20079
  ...J,
20080
20080
  onClick: e1,
@@ -20535,10 +20535,10 @@ const At = ({
20535
20535
  }
20536
20536
  }
20537
20537
  );
20538
- return /* @__PURE__ */ u("div", { className: U("ui-relative ui-flex ui-w-full ui-gap-2 ui-p-1", t), children: [
20539
- (l || L) && /* @__PURE__ */ u("div", { className: U(g({ status: o })), children: [
20538
+ return /* @__PURE__ */ u("div", { className: _("ui-relative ui-flex ui-w-full ui-gap-2 ui-p-1", t), children: [
20539
+ (l || L) && /* @__PURE__ */ u("div", { className: _(g({ status: o })), children: [
20540
20540
  l && /* @__PURE__ */ i(L1, { name: l, size: "2xl", color: "white", strokeWidth: 4 }),
20541
- /* @__PURE__ */ i("div", { className: U(m({ borderStyle: p })) })
20541
+ /* @__PURE__ */ i("div", { className: _(m({ borderStyle: p })) })
20542
20542
  ] }),
20543
20543
  /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-w-full ui-flex-col ui-gap-1.5", children: [
20544
20544
  /* @__PURE__ */ u("div", { className: "ui-flex ui-items-center ui-justify-between ui-gap-2", children: [
@@ -20558,7 +20558,7 @@ const At = ({
20558
20558
  /* @__PURE__ */ i(
20559
20559
  "p",
20560
20560
  {
20561
- className: U("ui-text-xxs", o === "red" ? "ui-text-red-500" : "ui-text-neutral-500"),
20561
+ className: _("ui-text-xxs", o === "red" ? "ui-text-red-500" : "ui-text-neutral-500"),
20562
20562
  children: h
20563
20563
  }
20564
20564
  )
@@ -20584,7 +20584,7 @@ const At = ({
20584
20584
  duration: f = 3e3,
20585
20585
  size: V = "sm"
20586
20586
  }) => {
20587
- const { isVisible: j, isLeaving: I } = Wt({ open: t, externalIsLeaving: g });
20587
+ const { isVisible: j, isLeaving: k } = Wt({ open: t, externalIsLeaving: g });
20588
20588
  if (!j)
20589
20589
  return null;
20590
20590
  const H = !!d, Z = (v) => {
@@ -20596,15 +20596,15 @@ const At = ({
20596
20596
  return /* @__PURE__ */ u(
20597
20597
  "div",
20598
20598
  {
20599
- className: U(
20599
+ className: _(
20600
20600
  "ui-imj-alert ui-relative ui-overflow-hidden",
20601
20601
  n,
20602
- Qt({ color: o, variant: r, isLeaving: I, animation: h }),
20602
+ Qt({ color: o, variant: r, isLeaving: k, animation: h }),
20603
20603
  H ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20604
20604
  ),
20605
20605
  onClick: Z,
20606
20606
  children: [
20607
- /* @__PURE__ */ u("div", { className: U(b[V]), children: [
20607
+ /* @__PURE__ */ u("div", { className: _(b[V]), children: [
20608
20608
  /* @__PURE__ */ i(
20609
20609
  Xt,
20610
20610
  {
@@ -20628,7 +20628,7 @@ const At = ({
20628
20628
  }
20629
20629
  )
20630
20630
  ] }),
20631
- m && /* @__PURE__ */ i("div", { className: U("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20631
+ m && /* @__PURE__ */ i("div", { className: _("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20632
20632
  no,
20633
20633
  {
20634
20634
  progress: 100,
@@ -20821,7 +20821,7 @@ const At = ({
20821
20821
  target: f = "_self",
20822
20822
  onClickIcon: V,
20823
20823
  disabled: j,
20824
- colorIcon: I,
20824
+ colorIcon: k,
20825
20825
  tooltip: H,
20826
20826
  tooltipPosition: Z,
20827
20827
  tooltipAlignment: b,
@@ -20849,7 +20849,7 @@ const At = ({
20849
20849
  target: f,
20850
20850
  onClickIcon: V,
20851
20851
  disabled: j,
20852
- colorIcon: I,
20852
+ colorIcon: k,
20853
20853
  className: o,
20854
20854
  tooltip: H,
20855
20855
  tooltipPosition: Z,
@@ -20879,7 +20879,7 @@ const At = ({
20879
20879
  className: f,
20880
20880
  style: V,
20881
20881
  name: j,
20882
- autosize: I = !1,
20882
+ autosize: k = !1,
20883
20883
  colorLeftIcon: H,
20884
20884
  infoTooltip: Z = "",
20885
20885
  ...b
@@ -20893,22 +20893,22 @@ const At = ({
20893
20893
  defaultValue: l,
20894
20894
  onChange: h
20895
20895
  }), w = (A) => {
20896
- const _ = A.target.value;
20897
- y(_), g == null || g(A);
20896
+ const U = A.target.value;
20897
+ y(U), g == null || g(A);
20898
20898
  }, { paddingClasses: x, getIconPosition: $ } = ro({
20899
20899
  size: n,
20900
20900
  leftSlot: a,
20901
20901
  rightSlot: c,
20902
20902
  extraSlot: s,
20903
20903
  value: C
20904
- }), { baseClasses: B, containerClasses: M, labelClasses: k } = ao({
20904
+ }), { baseClasses: B, containerClasses: M, labelClasses: I } = ao({
20905
20905
  size: n,
20906
20906
  error: o,
20907
20907
  disabled: L,
20908
20908
  fullWidth: p,
20909
20909
  caret: d,
20910
20910
  paddingClasses: x,
20911
- autosize: I
20911
+ autosize: k
20912
20912
  });
20913
20913
  return uo({
20914
20914
  ref: v,
@@ -20919,7 +20919,7 @@ const At = ({
20919
20919
  }), /* @__PURE__ */ u(
20920
20920
  "div",
20921
20921
  {
20922
- className: U(
20922
+ className: _(
20923
20923
  "ui-relative ui-flex ui-flex-col ui-gap-1",
20924
20924
  p ? "ui-w-full" : "ui-w-fit",
20925
20925
  f
@@ -20927,7 +20927,7 @@ const At = ({
20927
20927
  style: V,
20928
20928
  children: [
20929
20929
  (t || Z) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
20930
- t && /* @__PURE__ */ i("label", { className: k, children: t }),
20930
+ t && /* @__PURE__ */ i("label", { className: I, children: t }),
20931
20931
  Z && /* @__PURE__ */ i(
20932
20932
  b1,
20933
20933
  {
@@ -21170,7 +21170,7 @@ const M9 = (t, o = {}) => {
21170
21170
  onChangeTab: f,
21171
21171
  headerButtonIcon: V,
21172
21172
  headerButtonOnClick: j,
21173
- footerButtonIcon: I,
21173
+ footerButtonIcon: k,
21174
21174
  footerButtonOnClick: H,
21175
21175
  cancelButtonSlotLeft: Z,
21176
21176
  successButtonSlotRight: b,
@@ -21197,7 +21197,7 @@ const M9 = (t, o = {}) => {
21197
21197
  onChangeTab: f,
21198
21198
  headerButtonIcon: V,
21199
21199
  headerButtonOnClick: j,
21200
- footerButtonIcon: I,
21200
+ footerButtonIcon: k,
21201
21201
  footerButtonOnClick: H,
21202
21202
  cancelButtonSlotLeft: Z,
21203
21203
  successButtonSlotRight: b,
@@ -21239,7 +21239,7 @@ const M9 = (t, o = {}) => {
21239
21239
  }), [s, d] = q(o || ((l = t[0]) == null ? void 0 : l.value) || ""), C = (L) => {
21240
21240
  s !== L && (d(L), r && r(L));
21241
21241
  }, p = c({ size: n, fullWidth: a });
21242
- return /* @__PURE__ */ i("div", { className: U("ui-relative ui-flex ui-rounded-md ui-bg-neutral-50", p), children: t.map((L) => /* @__PURE__ */ i(
21242
+ return /* @__PURE__ */ i("div", { className: _("ui-relative ui-flex ui-rounded-md ui-bg-neutral-50", p), children: t.map((L) => /* @__PURE__ */ i(
21243
21243
  o1,
21244
21244
  {
21245
21245
  size: n,
@@ -21276,7 +21276,7 @@ const M9 = (t, o = {}) => {
21276
21276
  onChangeTab: h,
21277
21277
  headerButtonIcon: g,
21278
21278
  headerButtonOnClick: m
21279
- } = k9(), f = o ?? C, V = c ?? g, j = s ?? m, I = (n == null ? void 0 : n.length) > 0 ? n : l, H = (I == null ? void 0 : I.length) ?? !1, Z = a ?? h, b = e ?? L, v = (S) => {
21279
+ } = k9(), f = o ?? C, V = c ?? g, j = s ?? m, k = (n == null ? void 0 : n.length) > 0 ? n : l, H = (k == null ? void 0 : k.length) ?? !1, Z = a ?? h, b = e ?? L, v = (S) => {
21280
21280
  Z && Z(S);
21281
21281
  };
21282
21282
  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: [
@@ -21311,7 +21311,7 @@ const M9 = (t, o = {}) => {
21311
21311
  H ? /* @__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(
21312
21312
  Co,
21313
21313
  {
21314
- options: I ?? [],
21314
+ options: k ?? [],
21315
21315
  defaultValue: b,
21316
21316
  size: "sm",
21317
21317
  onChange: (S) => {
@@ -21322,7 +21322,7 @@ const M9 = (t, o = {}) => {
21322
21322
  ] });
21323
21323
  };
21324
21324
  J1.displayName = "Modal.Header";
21325
- const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", { className: U(o && "ui-p-4"), children: t }), e9 = ({
21325
+ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", { className: _(o && "ui-p-4"), children: t }), e9 = ({
21326
21326
  children: t,
21327
21327
  footerButtonIcon: o,
21328
21328
  footerButtonOnClick: r,
@@ -21344,7 +21344,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21344
21344
  footerButtonOnClick: f,
21345
21345
  cancelButtonSlotLeft: V,
21346
21346
  successButtonSlotRight: j,
21347
- successButtonColor: I,
21347
+ successButtonColor: k,
21348
21348
  disableCancelButton: H,
21349
21349
  disableSuccessButton: Z
21350
21350
  } = k9(), b = () => {
@@ -21387,7 +21387,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21387
21387
  slotLeft: e ?? j,
21388
21388
  onClick: v,
21389
21389
  disabled: Z,
21390
- color: a ?? I,
21390
+ color: a ?? k,
21391
21391
  children: d
21392
21392
  }
21393
21393
  )
@@ -21427,7 +21427,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21427
21427
  showSuccessButton: f,
21428
21428
  closeAtSuccess: V,
21429
21429
  closeAtCancel: j,
21430
- tabs: I,
21430
+ tabs: k,
21431
21431
  defaultValueTab: H,
21432
21432
  onChangeTab: Z,
21433
21433
  headerButtonIcon: b,
@@ -21440,7 +21440,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21440
21440
  disableSuccessButton: $,
21441
21441
  successButtonColor: B
21442
21442
  }) => {
21443
- const { isVisible: M, animateIn: k, container: A, modalRef: _ } = co({
21443
+ const { isVisible: M, animateIn: I, container: A, modalRef: U } = co({
21444
21444
  isOpen: t,
21445
21445
  onClose: o,
21446
21446
  disableEscapeClose: c,
@@ -21459,9 +21459,9 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21459
21459
  /* @__PURE__ */ i(
21460
21460
  "div",
21461
21461
  {
21462
- className: U(
21462
+ className: _(
21463
21463
  "ui-fixed ui-inset-0 ui-bg-black ui-backdrop-blur-sm ui-transition-opacity ui-duration-200",
21464
- k ? "ui-opacity-40" : "ui-opacity-0"
21464
+ I ? "ui-opacity-40" : "ui-opacity-0"
21465
21465
  ),
21466
21466
  onClick: d ? (F) => F.stopPropagation() : o
21467
21467
  }
@@ -21469,12 +21469,12 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21469
21469
  /* @__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(
21470
21470
  "div",
21471
21471
  {
21472
- ref: _,
21472
+ ref: U,
21473
21473
  tabIndex: -1,
21474
- className: U(
21474
+ className: _(
21475
21475
  "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",
21476
21476
  ho[n],
21477
- k ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
21477
+ I ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
21478
21478
  ),
21479
21479
  onClick: (F) => F.stopPropagation(),
21480
21480
  children: /* @__PURE__ */ u(
@@ -21498,7 +21498,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21498
21498
  headerButtonOnClick: v,
21499
21499
  footerButtonIcon: S,
21500
21500
  footerButtonOnClick: y,
21501
- tabs: I,
21501
+ tabs: k,
21502
21502
  defaultValueTab: H,
21503
21503
  onChangeTab: Z,
21504
21504
  cancelButtonSlotLeft: O,
@@ -21584,7 +21584,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21584
21584
  }, G1 = ({ className: t, vertical: o = !1, padding: r = !0 }) => /* @__PURE__ */ i(
21585
21585
  "div",
21586
21586
  {
21587
- className: U(
21587
+ className: _(
21588
21588
  "ui-bg-neutral-100",
21589
21589
  t,
21590
21590
  "",
@@ -21609,7 +21609,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21609
21609
  return /* @__PURE__ */ i(
21610
21610
  "div",
21611
21611
  {
21612
- className: U(
21612
+ className: _(
21613
21613
  "ui-flex ui-w-full ui-flex-col ui-border-1 ui-border-neutral-100 ui-bg-white ui-shadow-sm",
21614
21614
  o,
21615
21615
  d ? "ui-gap-4" : "",
@@ -21630,7 +21630,7 @@ v1.Header = ({ children: t, className: o }) => /* @__PURE__ */ i("div", { classN
21630
21630
  v1.Body = ({ children: t, className: o, fullHeight: r = !1, scrollable: n = !0 }) => /* @__PURE__ */ i(
21631
21631
  "div",
21632
21632
  {
21633
- className: U(
21633
+ className: _(
21634
21634
  o,
21635
21635
  r ? "ui-h-full" : "",
21636
21636
  n ? "custom-scrollbar ui-overflow-y-auto" : ""
@@ -21659,14 +21659,14 @@ const mo = (t) => {
21659
21659
  }), [C, p] = q(!1), l = i1(null), L = o === "single" ? r !== void 0 : n !== void 0, h = o === "single" ? r === void 0 : n === void 0, g = o === "single" ? h ? s.internalDate : r : null, m = o === "range" ? h ? s.internalRange : n : { start: null, end: null }, f = (M) => M && M instanceof Date && !isNaN(M.getTime()), V = f(g) ? g : null, j = {
21660
21660
  start: f(m == null ? void 0 : m.start) ? m.start : null,
21661
21661
  end: f(m == null ? void 0 : m.end) ? m.end : null
21662
- }, I = N(() => {
21662
+ }, k = N(() => {
21663
21663
  if (l.current) {
21664
21664
  const M = l.current.getInputElement();
21665
21665
  if (M) {
21666
- const k = M.getBoundingClientRect(), A = window.innerHeight, _ = window.innerWidth, G = 320, R = 256, W = 8;
21667
- let F, P = k.left;
21668
- const T = A - k.bottom, z = k.top;
21669
- T >= G + W ? F = k.bottom + W : z >= G + W ? F = k.top - G - W : T > z ? F = k.bottom + W : F = k.top - G - W, k.left + R > _ && (P = k.right - R), P = Math.max(0, Math.min(P, _ - R)), d((D) => ({
21666
+ const I = M.getBoundingClientRect(), A = window.innerHeight, U = window.innerWidth, G = 320, R = 256, W = 8;
21667
+ let F, P = I.left;
21668
+ const T = A - I.bottom, z = I.top;
21669
+ T >= G + W ? F = I.bottom + W : z >= G + W ? F = I.top - G - W : T > z ? F = I.bottom + W : F = I.top - G - W, I.left + R > U && (P = I.right - R), P = Math.max(0, Math.min(P, U - R)), d((D) => ({
21670
21670
  ...D,
21671
21671
  isOpen: !0,
21672
21672
  portalPosition: { top: F, left: P }
@@ -21678,13 +21678,13 @@ const mo = (t) => {
21678
21678
  }, []), H = N(() => {
21679
21679
  d((M) => ({ ...M, isOpen: !1 })), p(!1);
21680
21680
  }, []), Z = N((M) => {
21681
- d((k) => ({ ...k, currentDate: M }));
21681
+ d((I) => ({ ...I, currentDate: M }));
21682
21682
  }, []), b = N((M) => {
21683
- d((k) => ({ ...k, viewMode: M }));
21683
+ d((I) => ({ ...I, viewMode: M }));
21684
21684
  }, []), v = N((M) => {
21685
- d((k) => {
21686
- const A = new Date(k.currentDate);
21687
- switch (k.viewMode) {
21685
+ d((I) => {
21686
+ const A = new Date(I.currentDate);
21687
+ switch (I.viewMode) {
21688
21688
  case "days":
21689
21689
  A.setMonth(A.getMonth() + (M === "next" ? 1 : -1));
21690
21690
  break;
@@ -21695,44 +21695,44 @@ const mo = (t) => {
21695
21695
  A.setFullYear(A.getFullYear() + (M === "next" ? 12 : -12));
21696
21696
  break;
21697
21697
  }
21698
- return { ...k, currentDate: A };
21698
+ return { ...I, currentDate: A };
21699
21699
  });
21700
21700
  }, []), S = N(
21701
21701
  (M) => {
21702
- var k;
21703
- o === "single" && (h && d((A) => ({ ...A, internalDate: M })), (k = t.onDateChange) == null || k.call(t, M), a && H());
21702
+ var I;
21703
+ o === "single" && (h && d((A) => ({ ...A, internalDate: M })), (I = t.onDateChange) == null || I.call(t, M), a && H());
21704
21704
  },
21705
21705
  [o, h, t.onDateChange, a, H]
21706
21706
  ), y = N(
21707
21707
  (M) => {
21708
- var k;
21709
- o === "range" && (L || d((A) => ({ ...A, internalRange: M })), (k = t.onRangeChange) == null || k.call(t, M), c && M.start && M.end && H());
21708
+ var I;
21709
+ o === "range" && (L || d((A) => ({ ...A, internalRange: M })), (I = t.onRangeChange) == null || I.call(t, M), c && M.start && M.end && H());
21710
21710
  },
21711
21711
  [o, L, t.onRangeChange, c, H]
21712
21712
  ), O = N((M) => {
21713
- d((k) => ({ ...k, hoverDate: M }));
21713
+ d((I) => ({ ...I, hoverDate: M }));
21714
21714
  }, []), w = N((M) => {
21715
- d((k) => {
21716
- const A = new Date(k.currentDate);
21715
+ d((I) => {
21716
+ const A = new Date(I.currentDate);
21717
21717
  return A.setMonth(M), {
21718
- ...k,
21718
+ ...I,
21719
21719
  currentDate: A,
21720
21720
  viewMode: "days"
21721
21721
  };
21722
21722
  });
21723
21723
  }, []), x = N((M) => {
21724
- d((k) => {
21725
- const A = new Date(k.currentDate);
21724
+ d((I) => {
21725
+ const A = new Date(I.currentDate);
21726
21726
  return A.setFullYear(M), {
21727
- ...k,
21727
+ ...I,
21728
21728
  currentDate: A,
21729
21729
  viewMode: "months"
21730
21730
  };
21731
21731
  });
21732
21732
  }, []), $ = N(() => {
21733
21733
  const M = /* @__PURE__ */ new Date();
21734
- d((k) => ({
21735
- ...k,
21734
+ d((I) => ({
21735
+ ...I,
21736
21736
  currentDate: M,
21737
21737
  viewMode: "days"
21738
21738
  }));
@@ -21742,16 +21742,16 @@ const mo = (t) => {
21742
21742
  const M = l.current.getInputElement();
21743
21743
  if (!M)
21744
21744
  return;
21745
- const k = M.getBoundingClientRect(), A = window.innerHeight, _ = window.innerWidth, G = 320, R = 256, W = 8;
21746
- let F, P = k.left;
21747
- const T = A - k.bottom, z = k.top;
21748
- T >= G + W ? F = k.bottom + W : z >= G + W ? F = k.top - G - W : T > z ? F = k.bottom + W : F = k.top - G - W, k.left + R > _ && (P = k.right - R), P = Math.max(0, Math.min(P, _ - R)), d((D) => ({ ...D, portalPosition: { top: F, left: P } })), p(!0);
21745
+ const I = M.getBoundingClientRect(), A = window.innerHeight, U = window.innerWidth, G = 320, R = 256, W = 8;
21746
+ let F, P = I.left;
21747
+ const T = A - I.bottom, z = I.top;
21748
+ T >= G + W ? F = I.bottom + W : z >= G + W ? F = I.top - G - W : T > z ? F = I.bottom + W : F = I.top - G - W, I.left + R > U && (P = I.right - R), P = Math.max(0, Math.min(P, U - R)), d((D) => ({ ...D, portalPosition: { top: F, left: P } })), p(!0);
21749
21749
  }, []);
21750
21750
  return K(() => {
21751
21751
  if (!s.isOpen) return;
21752
- const M = () => B(), k = () => B();
21753
- return window.addEventListener("scroll", M, !0), window.addEventListener("resize", k), () => {
21754
- window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", k);
21752
+ const M = () => B(), I = () => B();
21753
+ return window.addEventListener("scroll", M, !0), window.addEventListener("resize", I), () => {
21754
+ window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", I);
21755
21755
  };
21756
21756
  }, [s.isOpen, B]), K(() => {
21757
21757
  if (s.isOpen) {
@@ -21767,7 +21767,7 @@ const mo = (t) => {
21767
21767
  inputRef: l,
21768
21768
  isPortalReady: C,
21769
21769
  actions: {
21770
- openPicker: I,
21770
+ openPicker: k,
21771
21771
  closePicker: H,
21772
21772
  setCurrentDate: Z,
21773
21773
  setViewMode: b,
@@ -21820,10 +21820,10 @@ const mo = (t) => {
21820
21820
  };
21821
21821
  j = !a(Z, b);
21822
21822
  }
21823
- let I = !1;
21823
+ let k = !1;
21824
21824
  if (t.start && t.end && m && !g) {
21825
21825
  const Z = new Date(l);
21826
- Z.setDate(l.getDate() + 1), I = !a(Z, t);
21826
+ Z.setDate(l.getDate() + 1), k = !a(Z, t);
21827
21827
  } else if (t.start && !t.end && L && V) {
21828
21828
  const Z = new Date(l);
21829
21829
  Z.setDate(l.getDate() + 1);
@@ -21831,7 +21831,7 @@ const mo = (t) => {
21831
21831
  start: t.start < L ? t.start : L,
21832
21832
  end: t.start < L ? L : t.start
21833
21833
  };
21834
- I = !a(Z, b);
21834
+ k = !a(Z, b);
21835
21835
  }
21836
21836
  let H = !0;
21837
21837
  return t.start && !t.end && L ? H = L >= t.start : t.start && t.end && (H = l >= t.start), {
@@ -21841,7 +21841,7 @@ const mo = (t) => {
21841
21841
  isEnd: g,
21842
21842
  isInRange: m,
21843
21843
  isFirstInRange: j,
21844
- isLastInRange: I,
21844
+ isLastInRange: k,
21845
21845
  afterSelected: H,
21846
21846
  isDisabled: f,
21847
21847
  isHovered: V
@@ -21878,12 +21878,12 @@ const mo = (t) => {
21878
21878
  }, []), a = N(
21879
21879
  (p, l = 1) => {
21880
21880
  const { firstDay: L, lastDay: h, daysInMonth: g, startOfWeek: m } = e(p), f = [], V = (m - l + 7) % 7;
21881
- for (let I = 0; I < V; I++)
21881
+ for (let k = 0; k < V; k++)
21882
21882
  f.push(null);
21883
- for (let I = 1; I <= g; I++)
21884
- f.push(I);
21883
+ for (let k = 1; k <= g; k++)
21884
+ f.push(k);
21885
21885
  const j = (7 - f.length % 7) % 7;
21886
- for (let I = 0; I < j; I++)
21886
+ for (let k = 0; k < j; k++)
21887
21887
  f.push(null);
21888
21888
  return f;
21889
21889
  },
@@ -21929,7 +21929,7 @@ const mo = (t) => {
21929
21929
  if (!h) return null;
21930
21930
  const m = g.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), f = new RegExp(`^${m}$`), V = h.match(f);
21931
21931
  if (!V) return null;
21932
- const [, j, I, H] = V, Z = new Date(parseInt(H), parseInt(I) - 1, parseInt(j));
21932
+ const [, j, k, H] = V, Z = new Date(parseInt(H), parseInt(k) - 1, parseInt(j));
21933
21933
  return isNaN(Z.getTime()) ? null : Z;
21934
21934
  }, []), C = N(
21935
21935
  (h, g) => d(h, g) !== null,
@@ -22021,7 +22021,7 @@ const mo = (t) => {
22021
22021
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
22022
22022
  const j = (b) => {
22023
22023
  b.stopPropagation(), C || L(o);
22024
- }, I = () => {
22024
+ }, k = () => {
22025
22025
  !C && h && (V.current && (clearTimeout(V.current), V.current = null), h(o));
22026
22026
  }, H = () => {
22027
22027
  !C && g && (r || n || e || a ? V.current = setTimeout(() => {
@@ -22048,7 +22048,7 @@ const mo = (t) => {
22048
22048
  {
22049
22049
  className: Z(),
22050
22050
  onClick: j,
22051
- onMouseEnter: I,
22051
+ onMouseEnter: k,
22052
22052
  onMouseLeave: H,
22053
22053
  role: "button",
22054
22054
  tabIndex: C ? -1 : 0,
@@ -22241,10 +22241,10 @@ const mo = (t) => {
22241
22241
  c
22242
22242
  ), m = (j) => o ? j.getTime() === o.getTime() : !1, f = (j) => !!(a && j < a || c && j > c), V = L(t, d);
22243
22243
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
22244
- s.map((j, I) => /* @__PURE__ */ i(jo, { day: j }, I)),
22245
- V.map((j, I) => {
22244
+ s.map((j, k) => /* @__PURE__ */ i(jo, { day: j }, k)),
22245
+ V.map((j, k) => {
22246
22246
  if (j === null)
22247
- return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, I);
22247
+ return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, k);
22248
22248
  const H = new Date(t.getFullYear(), t.getMonth(), j), Z = r ? g(H, p || null) : {
22249
22249
  isStart: !1,
22250
22250
  isEnd: !1,
@@ -22275,7 +22275,7 @@ const mo = (t) => {
22275
22275
  onMouseLeave: () => e == null ? void 0 : e(null),
22276
22276
  renderDay: l
22277
22277
  },
22278
- I
22278
+ k
22279
22279
  );
22280
22280
  })
22281
22281
  ] });
@@ -22570,7 +22570,7 @@ const mo = (t) => {
22570
22570
  startOfWeek: f = 1,
22571
22571
  showWeekNumbers: V = !1,
22572
22572
  yearRange: j = 12,
22573
- hoverDate: I,
22573
+ hoverDate: k,
22574
22574
  closeOnSelect: H,
22575
22575
  autoCloseRange: Z,
22576
22576
  renderHeader: b,
@@ -22610,7 +22610,7 @@ const mo = (t) => {
22610
22610
  weekDays: g,
22611
22611
  startOfWeek: f,
22612
22612
  showWeekNumbers: V,
22613
- hoverDate: I,
22613
+ hoverDate: k,
22614
22614
  renderDay: v
22615
22615
  }
22616
22616
  );
@@ -22641,7 +22641,7 @@ const mo = (t) => {
22641
22641
  return /* @__PURE__ */ u(
22642
22642
  "div",
22643
22643
  {
22644
- className: U(
22644
+ className: _(
22645
22645
  "ui-min-w-[254px] ui-overflow-hidden ui-rounded-lg ui-border ui-border-neutral-100 ui-bg-white ui-shadow-lg",
22646
22646
  H ? "ui-min-h-[280px]" : "ui-min-h-[325px]"
22647
22647
  ),
@@ -22686,7 +22686,7 @@ const mo = (t) => {
22686
22686
  locale: f,
22687
22687
  weekDays: V,
22688
22688
  monthNames: j,
22689
- startOfWeek: I,
22689
+ startOfWeek: k,
22690
22690
  showWeekNumbers: H,
22691
22691
  yearRange: Z,
22692
22692
  hoverDate: b,
@@ -22698,14 +22698,14 @@ const mo = (t) => {
22698
22698
  renderHeader: x,
22699
22699
  renderDay: $
22700
22700
  }) => {
22701
- const [B, M] = q(Array(y).fill(h)), [k, A] = q(() => {
22701
+ const [B, M] = q(Array(y).fill(h)), [I, A] = q(() => {
22702
22702
  const P = [];
22703
22703
  for (let T = 0; T < y; T++) {
22704
22704
  const z = new Date(n);
22705
22705
  z.setMonth(z.getMonth() + T), P.push(z);
22706
22706
  }
22707
22707
  return P;
22708
- }), { renderPortal: _ } = bo(t, o, r, 1100);
22708
+ }), { renderPortal: U } = bo(t, o, r, 1100);
22709
22709
  K(() => {
22710
22710
  M(Array(y).fill(h));
22711
22711
  }, [h, y]), K(() => {
@@ -22735,21 +22735,21 @@ const mo = (t) => {
22735
22735
  const D = [...B];
22736
22736
  D[P] = z, M(D);
22737
22737
  }, R = (P, T) => {
22738
- const z = [...k];
22738
+ const z = [...I];
22739
22739
  z[P] = new Date(
22740
- k[P].getFullYear(),
22740
+ I[P].getFullYear(),
22741
22741
  T,
22742
22742
  1
22743
22743
  ), A(z);
22744
22744
  const D = [...B];
22745
22745
  D[P] = "days", M(D), p == null || p(T);
22746
22746
  }, W = (P, T) => {
22747
- const z = [...k];
22748
- z[P] = new Date(T, k[P].getMonth(), 1), A(z);
22747
+ const z = [...I];
22748
+ z[P] = new Date(T, I[P].getMonth(), 1), A(z);
22749
22749
  const D = [...B];
22750
22750
  D[P] = "months", M(D), l == null || l(T);
22751
22751
  }, F = (P) => {
22752
- const T = [...k];
22752
+ const T = [...I];
22753
22753
  T.forEach((z, D) => {
22754
22754
  const n1 = new Date(z);
22755
22755
  switch (B[D]) {
@@ -22766,12 +22766,12 @@ const mo = (t) => {
22766
22766
  T[D] = n1;
22767
22767
  }), A(T), C(P);
22768
22768
  };
22769
- return _(
22769
+ return U(
22770
22770
  /* @__PURE__ */ i("div", { className: "ui-relative", children: O === "range" && y > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
22771
22771
  /* @__PURE__ */ i(
22772
22772
  yo,
22773
22773
  {
22774
- calendarDates: k,
22774
+ calendarDates: I,
22775
22775
  viewModes: B,
22776
22776
  onNavigate: F,
22777
22777
  onToggleViewMode: G,
@@ -22781,7 +22781,7 @@ const mo = (t) => {
22781
22781
  renderHeader: x
22782
22782
  }
22783
22783
  ),
22784
- /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: k.map((P, T) => /* @__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(
22784
+ /* @__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((P, T) => /* @__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(
22785
22785
  Oo,
22786
22786
  {
22787
22787
  currentDate: P,
@@ -22794,7 +22794,7 @@ const mo = (t) => {
22794
22794
  viewMode: B[T],
22795
22795
  weekDays: V,
22796
22796
  monthNames: j,
22797
- startOfWeek: I,
22797
+ startOfWeek: k,
22798
22798
  showWeekNumbers: H,
22799
22799
  yearRange: Z,
22800
22800
  hoverDate: b,
@@ -22826,7 +22826,7 @@ const mo = (t) => {
22826
22826
  locale: f,
22827
22827
  weekDays: V,
22828
22828
  monthNames: j,
22829
- startOfWeek: I,
22829
+ startOfWeek: k,
22830
22830
  showWeekNumbers: H,
22831
22831
  yearRange: Z,
22832
22832
  hoverDate: b,
@@ -22870,7 +22870,7 @@ const mo = (t) => {
22870
22870
  dayClassName: f = "",
22871
22871
  monthClassName: V = "",
22872
22872
  yearClassName: j = "",
22873
- disabledDayClassName: I = "text-gray-400 cursor-not-allowed",
22873
+ disabledDayClassName: k = "text-gray-400 cursor-not-allowed",
22874
22874
  rangeClassName: H = "bg-blue-100",
22875
22875
  rangeStartClassName: Z = "bg-blue-500 text-white rounded-l-full",
22876
22876
  rangeEndClassName: b = "bg-blue-500 text-white rounded-r-full",
@@ -22883,9 +22883,9 @@ const mo = (t) => {
22883
22883
  placeholder: $ = "Seleccionar fecha",
22884
22884
  format: B = "dd/MM/yyyy",
22885
22885
  calendarsCount: M = 1,
22886
- renderHeader: k,
22886
+ renderHeader: I,
22887
22887
  renderDay: A
22888
- } = t, { state: _, selectedDate: G, selectedRange: R, inputRef: W, isPortalReady: F, actions: P } = mo(t), { handleRangeSelection: T } = I9(
22888
+ } = t, { state: U, selectedDate: G, selectedRange: R, inputRef: W, isPortalReady: F, actions: P } = mo(t), { handleRangeSelection: T } = I9(
22889
22889
  R,
22890
22890
  P.setSelectedRange,
22891
22891
  c,
@@ -22905,7 +22905,7 @@ const mo = (t) => {
22905
22905
  console.warn("DatePicker: Se recibió una fecha inválida:", J);
22906
22906
  return;
22907
22907
  }
22908
- o === "single" ? P.setSelectedDate(J) : T(J, _.hoverDate, P.closePicker);
22908
+ o === "single" ? P.setSelectedDate(J) : T(J, U.hoverDate, P.closePicker);
22909
22909
  }, a1 = (J) => {
22910
22910
  if (J !== null && (!(J instanceof Date) || isNaN(J.getTime()))) {
22911
22911
  console.warn("DatePicker: Se recibió una fecha inválida en hover:", J);
@@ -22921,7 +22921,7 @@ const mo = (t) => {
22921
22921
  value: p1(),
22922
22922
  placeholder: $,
22923
22923
  label: l,
22924
- isOpen: _.isOpen,
22924
+ isOpen: U.isOpen,
22925
22925
  onInputClick: P.openPicker,
22926
22926
  className: g,
22927
22927
  format: B
@@ -22930,10 +22930,10 @@ const mo = (t) => {
22930
22930
  /* @__PURE__ */ i(
22931
22931
  Io,
22932
22932
  {
22933
- isOpen: _.isOpen && F,
22933
+ isOpen: U.isOpen && F,
22934
22934
  onClose: P.closePicker,
22935
- portalPosition: _.portalPosition,
22936
- currentDate: _.currentDate,
22935
+ portalPosition: U.portalPosition,
22936
+ currentDate: U.currentDate,
22937
22937
  selectedDate: G,
22938
22938
  selectedRange: R,
22939
22939
  onDateSelect: n1,
@@ -22943,7 +22943,7 @@ const mo = (t) => {
22943
22943
  onMonthSelect: P.handleMonthSelect,
22944
22944
  onYearSelect: P.handleYearSelect,
22945
22945
  onGoToToday: P.goToToday,
22946
- viewMode: _.viewMode,
22946
+ viewMode: U.viewMode,
22947
22947
  minDate: c,
22948
22948
  maxDate: s,
22949
22949
  locale: d,
@@ -22952,19 +22952,19 @@ const mo = (t) => {
22952
22952
  startOfWeek: L,
22953
22953
  showWeekNumbers: S,
22954
22954
  yearRange: y,
22955
- hoverDate: _.hoverDate,
22955
+ hoverDate: U.hoverDate,
22956
22956
  closeOnSelect: w,
22957
22957
  autoCloseRange: x,
22958
22958
  calendarsCount: M,
22959
22959
  mode: o,
22960
- renderHeader: k,
22960
+ renderHeader: I,
22961
22961
  renderDay: A
22962
22962
  }
22963
22963
  )
22964
22964
  ] });
22965
22965
  }, $9 = ({ title: t, className: o, icon: r }) => /* @__PURE__ */ u("div", { className: "ui-flex ui-w-full ui-items-center ui-gap-x-2", children: [
22966
22966
  r && /* @__PURE__ */ i(L1, { name: r, background: !0, color: "blue" }),
22967
- /* @__PURE__ */ i("h2", { className: U("ui-text-2xl ui-font-bold", o), children: t })
22967
+ /* @__PURE__ */ i("h2", { className: _("ui-text-2xl ui-font-bold", o), children: t })
22968
22968
  ] }), Zo = {
22969
22969
  sm: "ui-w-64",
22970
22970
  md: "ui-w-80",
@@ -22991,14 +22991,14 @@ const mo = (t) => {
22991
22991
  showCancelButton: f = !0,
22992
22992
  showSuccessButton: V = !0,
22993
22993
  closeAtSuccess: j = !1,
22994
- closeAtCancel: I = !0,
22994
+ closeAtCancel: k = !0,
22995
22995
  disabledSuccessButton: H = !1,
22996
22996
  disabledCancelButton: Z = !1
22997
22997
  }) => {
22998
22998
  const b = H9(), { isVisible: v, isAnimating: S } = M9(t), y = i1(null);
22999
22999
  j9(t), W0(t, o, s), V9(t, y, !d);
23000
23000
  const O = () => {
23001
- g && g(), I && o();
23001
+ g && g(), k && o();
23002
23002
  }, w = () => {
23003
23003
  m && m(), j && o();
23004
23004
  };
@@ -23014,7 +23014,7 @@ const mo = (t) => {
23014
23014
  /* @__PURE__ */ i(
23015
23015
  "div",
23016
23016
  {
23017
- className: U(
23017
+ className: _(
23018
23018
  "ui-absolute ui-inset-0 ui-bg-black ui-opacity-50 ui-backdrop-blur-sm ui-transition-opacity ui-duration-300",
23019
23019
  t ? "ui-opacity-100" : "ui-opacity-0"
23020
23020
  )
@@ -23026,7 +23026,7 @@ const mo = (t) => {
23026
23026
  ref: y,
23027
23027
  tabIndex: -1,
23028
23028
  onClick: ($) => $.stopPropagation(),
23029
- className: U(
23029
+ className: _(
23030
23030
  "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",
23031
23031
  Zo[n],
23032
23032
  C === "right" ? "ui-ml-auto" : "ui-mr-auto"
@@ -23034,14 +23034,14 @@ const mo = (t) => {
23034
23034
  style: {
23035
23035
  transform: C === "right" ? S ? "translateX(0)" : "translateX(100%)" : S ? "translateX(0)" : "translateX(-100%)"
23036
23036
  },
23037
- children: /* @__PURE__ */ u(v1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
23037
+ children: /* @__PURE__ */ u(v1, { rounded: !1, padding: !1, gap: !1, className: _(p), children: [
23038
23038
  /* @__PURE__ */ i(v1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: r && /* @__PURE__ */ i($9, { title: r, icon: a }) }) }),
23039
23039
  /* @__PURE__ */ i(v1.Separator, { padding: !1 }),
23040
23040
  /* @__PURE__ */ i(
23041
23041
  v1.Body,
23042
23042
  {
23043
23043
  fullHeight: !0,
23044
- className: U("ui-p-4", l ? "ui-overflow-y-auto" : ""),
23044
+ className: _("ui-p-4", l ? "ui-overflow-y-auto" : ""),
23045
23045
  scrollable: l,
23046
23046
  children: e
23047
23047
  }
@@ -23060,7 +23060,7 @@ const mo = (t) => {
23060
23060
  }
23061
23061
  );
23062
23062
  return b9.createPortal(x, b);
23063
- }, Jr = ({ className: t }) => /* @__PURE__ */ i("div", { className: U("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", t) }), N9 = ({
23063
+ }, Jr = ({ className: t }) => /* @__PURE__ */ i("div", { className: _("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", t) }), N9 = ({
23064
23064
  children: t,
23065
23065
  icon: o,
23066
23066
  onClick: r,
@@ -23225,7 +23225,7 @@ const mo = (t) => {
23225
23225
  }) => t.length === 0 && !s ? null : /* @__PURE__ */ i(
23226
23226
  "ul",
23227
23227
  {
23228
- className: U(
23228
+ className: _(
23229
23229
  "ui-m-0 ui-flex ui-min-w-max ui-list-none ui-flex-col ui-p-0 ui-py-2",
23230
23230
  c
23231
23231
  ),
@@ -23280,15 +23280,15 @@ const mo = (t) => {
23280
23280
  onOpenChange: g,
23281
23281
  withCheckbox: m = !1
23282
23282
  }) => {
23283
- const f = a0(), V = C || `dropdown-${f}`, [j, I] = q(!1), [H, Z] = q(!1), [b, v] = q(""), [S, y] = q("bottom"), [O, w] = q({}), x = i1(null), $ = i1(null), B = i1(null), M = N(
23283
+ const f = a0(), V = C || `dropdown-${f}`, [j, k] = q(!1), [H, Z] = q(!1), [b, v] = q(""), [S, y] = q("bottom"), [O, w] = q({}), x = i1(null), $ = i1(null), B = i1(null), M = N(
23284
23284
  (E) => E == null ? [] : Array.isArray(E) ? E : [E],
23285
23285
  []
23286
- ), k = N(
23286
+ ), I = N(
23287
23287
  (E) => E == null || E === "" ? "" : Array.isArray(E) ? E[0] || "" : E,
23288
23288
  []
23289
- ), [A, _] = q(() => l ? M(o) : k(o)), G = t !== void 0, R = G ? t : A, W = N(
23289
+ ), [A, U] = q(() => l ? M(o) : I(o)), G = t !== void 0, R = G ? t : A, W = N(
23290
23290
  (E) => {
23291
- G || _(E), a == null || a(E);
23291
+ G || U(E), a == null || a(E);
23292
23292
  },
23293
23293
  [G, a]
23294
23294
  );
@@ -23296,12 +23296,12 @@ const mo = (t) => {
23296
23296
  if (G && t !== void 0)
23297
23297
  if (l) {
23298
23298
  const E = M(t);
23299
- _((Q) => JSON.stringify(Q) !== JSON.stringify(E) ? E : Q);
23299
+ U((Q) => JSON.stringify(Q) !== JSON.stringify(E) ? E : Q);
23300
23300
  } else {
23301
- const E = k(t);
23302
- _((Q) => Q !== E ? E : Q);
23301
+ const E = I(t);
23302
+ U((Q) => Q !== E ? E : Q);
23303
23303
  }
23304
- }, [t, G, l, M, k]);
23304
+ }, [t, G, l, M, I]);
23305
23305
  const F = l ? r.filter((E) => M(R).includes(E[e])) : [
23306
23306
  r.find((E) => R === "" || R === null || R === void 0 ? !1 : E[e] === -1 ? R === -1 || R === "-1" : E[e] === R)
23307
23307
  ].filter(Boolean), P = (() => {
@@ -23377,7 +23377,7 @@ const mo = (t) => {
23377
23377
  });
23378
23378
  }, [F, n]), n1 = (E) => {
23379
23379
  E && E.stopPropagation(), !p && (j ? a1() : (So(V), v(""), Z(!1), z(), setTimeout(() => {
23380
- I(!0), t0.add(V), setTimeout(() => {
23380
+ k(!0), t0.add(V), setTimeout(() => {
23381
23381
  z(), setTimeout(() => {
23382
23382
  D();
23383
23383
  }, 50);
@@ -23385,7 +23385,7 @@ const mo = (t) => {
23385
23385
  }, 50)));
23386
23386
  }, a1 = () => {
23387
23387
  Z(!0), setTimeout(() => {
23388
- I(!1), Z(!1), t0.delete(V);
23388
+ k(!1), Z(!1), t0.delete(V);
23389
23389
  }, 150);
23390
23390
  }, p1 = (E, Q) => {
23391
23391
  if (Q.stopPropagation(), !E.disabled) {
@@ -23494,7 +23494,7 @@ const mo = (t) => {
23494
23494
  onClickRightSlot: t || void 0,
23495
23495
  size: r,
23496
23496
  defaultSizeIcon: !1,
23497
- className: U("ui:h-fit", o),
23497
+ className: _("ui:h-fit", o),
23498
23498
  classNameId: "imj-ui-tag",
23499
23499
  ...C,
23500
23500
  clickable: !1,
@@ -23517,14 +23517,14 @@ const mo = (t) => {
23517
23517
  valueName: h,
23518
23518
  idName: g
23519
23519
  }) => {
23520
- const [m, f] = q(!1), [V, j] = q(null), I = i1(null);
23520
+ const [m, f] = q(!1), [V, j] = q(null), k = i1(null);
23521
23521
  return K(() => {
23522
- if (!I.current || r.length === 0) {
23522
+ if (!k.current || r.length === 0) {
23523
23523
  f(!1), j(null);
23524
23524
  return;
23525
23525
  }
23526
23526
  const Z = setTimeout(() => {
23527
- const b = I.current;
23527
+ const b = k.current;
23528
23528
  if (b) {
23529
23529
  const v = b.scrollHeight, S = b.clientHeight;
23530
23530
  if (V === null) {
@@ -23556,7 +23556,7 @@ const mo = (t) => {
23556
23556
  r.length > 0 ? /* @__PURE__ */ i(
23557
23557
  "div",
23558
23558
  {
23559
- ref: I,
23559
+ ref: k,
23560
23560
  className: `ui-flex ui-flex-wrap ui-gap-1 ${m ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
23561
23561
  children: r.map((H) => H ? /* @__PURE__ */ i(
23562
23562
  A9,
@@ -23613,7 +23613,7 @@ const mo = (t) => {
23613
23613
  options: f = [],
23614
23614
  valueName: V = "label",
23615
23615
  idName: j = "value",
23616
- onValueChange: I,
23616
+ onValueChange: k,
23617
23617
  onOptionSelect: H,
23618
23618
  onCheckboxChange: Z,
23619
23619
  searchable: b = !1,
@@ -23626,9 +23626,9 @@ const mo = (t) => {
23626
23626
  absolute: $ = !1,
23627
23627
  footer: B = !1,
23628
23628
  defaultOptionSelected: M = !1,
23629
- withCheckbox: k = !1,
23629
+ withCheckbox: I = !1,
23630
23630
  onHandleAccept: A,
23631
- ..._
23631
+ ...U
23632
23632
  }, G) => {
23633
23633
  const R = i1(null), [W, F] = q(c), [P, T] = q(null), [z, D] = q(!1), p1 = O ? f : !O && M ? [
23634
23634
  {
@@ -23673,7 +23673,7 @@ const mo = (t) => {
23673
23673
  options: p1,
23674
23674
  valueName: V,
23675
23675
  idName: j,
23676
- onValueChange: I,
23676
+ onValueChange: k,
23677
23677
  onOptionSelect: H,
23678
23678
  searchable: b,
23679
23679
  closeOnClickOutside: S,
@@ -23682,7 +23682,7 @@ const mo = (t) => {
23682
23682
  multiple: O,
23683
23683
  maxSelectedItems: w,
23684
23684
  absolute: $,
23685
- withCheckbox: k,
23685
+ withCheckbox: I,
23686
23686
  onOpenChange: (Y) => {
23687
23687
  Y && setTimeout(() => {
23688
23688
  D(!1);
@@ -23720,7 +23720,7 @@ const mo = (t) => {
23720
23720
  () => ({
23721
23721
  getValue: () => t1,
23722
23722
  setValue: (Y) => {
23723
- r1 || H1(Y), I == null || I(Y);
23723
+ r1 || H1(Y), k == null || k(Y);
23724
23724
  },
23725
23725
  focus: () => {
23726
23726
  var Y, c1;
@@ -23731,7 +23731,7 @@ const mo = (t) => {
23731
23731
  O && x === "tags" ? (Y = R.current) == null || Y.blur() : (c1 = d1.current) == null || c1.blur();
23732
23732
  },
23733
23733
  clear: () => {
23734
- r1 || H1(O ? [] : ""), I == null || I(O ? [] : "");
23734
+ r1 || H1(O ? [] : ""), k == null || k(O ? [] : "");
23735
23735
  },
23736
23736
  open: () => {
23737
23737
  g || (x1(), setTimeout(() => {
@@ -23747,7 +23747,7 @@ const mo = (t) => {
23747
23747
  r1,
23748
23748
  g,
23749
23749
  x1,
23750
- I,
23750
+ k,
23751
23751
  A1,
23752
23752
  O,
23753
23753
  H1,
@@ -23785,7 +23785,7 @@ const mo = (t) => {
23785
23785
  const r9 = (Y) => {
23786
23786
  if (O) {
23787
23787
  const g1 = o9(t1).filter((X) => X !== Y);
23788
- if (H1(g1), k && P1) {
23788
+ if (H1(g1), I && P1) {
23789
23789
  const X = f.find((w1) => w1[j] === Y);
23790
23790
  X && P1(X, !1);
23791
23791
  }
@@ -23845,7 +23845,7 @@ const mo = (t) => {
23845
23845
  const w1 = O ? e1.some(
23846
23846
  (y1) => y1 && y1[j] === X[j]
23847
23847
  ) : X[j] === -1 && (t1 === -1 || t1 === "-1") || X[j] === t1;
23848
- return k ? /* @__PURE__ */ i(
23848
+ return I ? /* @__PURE__ */ i(
23849
23849
  T9,
23850
23850
  {
23851
23851
  disabled: X.disabled,
@@ -23962,7 +23962,7 @@ const mo = (t) => {
23962
23962
  extraSlot: u1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23963
23963
  name: t,
23964
23964
  autosize: !0,
23965
- ..._
23965
+ ...U
23966
23966
  }
23967
23967
  )
23968
23968
  ),
@@ -24001,7 +24001,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24001
24001
  disabled: s = !1,
24002
24002
  absolute: d = !1
24003
24003
  }) => {
24004
- const C = a0(), p = e || `popup-${C}`, [l, L] = q(!1), [h, g] = q({}), [m, f] = q(!1), V = i1(null), j = i1(null), I = i1(null), H = N(() => {
24004
+ const C = a0(), p = e || `popup-${C}`, [l, L] = q(!1), [h, g] = q({}), [m, f] = q(!1), V = i1(null), j = i1(null), k = i1(null), H = N(() => {
24005
24005
  const v = V.current, S = j.current;
24006
24006
  if (!v || !S) return;
24007
24007
  const y = v.getBoundingClientRect(), O = S.getBoundingClientRect();
@@ -24009,30 +24009,30 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24009
24009
  return;
24010
24010
  let w = 0, x = 0;
24011
24011
  if (d) {
24012
- const A = v.offsetTop, _ = v.offsetLeft, G = v.offsetWidth, R = v.offsetHeight;
24012
+ const A = v.offsetTop, U = v.offsetLeft, G = v.offsetWidth, R = v.offsetHeight;
24013
24013
  switch (t) {
24014
24014
  case "top":
24015
- w = A - O.height - o, x = _ + (G - O.width) / 2;
24015
+ w = A - O.height - o, x = U + (G - O.width) / 2;
24016
24016
  break;
24017
24017
  case "bottom":
24018
24018
  case "bottom-center":
24019
- w = A + R + o, x = _ + (G - O.width) / 2;
24019
+ w = A + R + o, x = U + (G - O.width) / 2;
24020
24020
  break;
24021
24021
  case "bottom-left":
24022
- w = A + R + o, x = _;
24022
+ w = A + R + o, x = U;
24023
24023
  break;
24024
24024
  case "bottom-right":
24025
- w = A + R + o, x = _ + G - O.width;
24025
+ w = A + R + o, x = U + G - O.width;
24026
24026
  break;
24027
24027
  case "left":
24028
- w = A, x = _ - O.width - o;
24028
+ w = A, x = U - O.width - o;
24029
24029
  break;
24030
24030
  case "right":
24031
- w = A, x = _ + G + o;
24031
+ w = A, x = U + G + o;
24032
24032
  break;
24033
24033
  }
24034
24034
  } else {
24035
- const A = window.innerWidth, _ = window.innerHeight, G = y.top, R = y.left, W = y.width, F = y.height;
24035
+ const A = window.innerWidth, U = window.innerHeight, G = y.top, R = y.left, W = y.width, F = y.height;
24036
24036
  switch (t) {
24037
24037
  case "top":
24038
24038
  w = G - O.height - o, x = R + (W - O.width) / 2;
@@ -24054,15 +24054,15 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24054
24054
  w = G, x = R + W + o;
24055
24055
  break;
24056
24056
  }
24057
- x < 0 && (x = 0), x + O.width > A && (x = A - O.width), w < 0 && (w = 0), w + O.height > _ && (w = _ - O.height), t === "bottom-right" && O.width > y.width && (x = y.right - O.width, x < 0 && (x = 0));
24057
+ x < 0 && (x = 0), x + O.width > A && (x = A - O.width), w < 0 && (w = 0), w + O.height > U && (w = U - O.height), t === "bottom-right" && O.width > y.width && (x = y.right - O.width, x < 0 && (x = 0));
24058
24058
  }
24059
- const $ = 1e3, B = parseInt(p.replace(/\D/g, "")) || 0, M = $ + B % 100, k = {
24059
+ const $ = 1e3, B = parseInt(p.replace(/\D/g, "")) || 0, M = $ + B % 100, I = {
24060
24060
  position: d ? "absolute" : "fixed",
24061
24061
  top: `${w}px`,
24062
24062
  left: `${x}px`,
24063
24063
  zIndex: M
24064
24064
  };
24065
- g(k), f(!0);
24065
+ g(I), f(!0);
24066
24066
  }, [t, o, p, d]), Z = (v) => {
24067
24067
  v && v.stopPropagation(), !s && (l ? b() : (No(p), g({}), f(!1), L(!0), o0.add(p), a == null || a()));
24068
24068
  }, b = () => {
@@ -24098,7 +24098,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24098
24098
  isActive: l,
24099
24099
  disabled: s,
24100
24100
  elementRef: j,
24101
- containerRef: I,
24101
+ containerRef: k,
24102
24102
  elementId: p,
24103
24103
  elementType: "popup",
24104
24104
  closeOnClickOutside: r,
@@ -24109,7 +24109,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24109
24109
  isPositioned: m,
24110
24110
  triggerRef: V,
24111
24111
  popupRef: j,
24112
- containerRef: I,
24112
+ containerRef: k,
24113
24113
  popupUniqueId: p,
24114
24114
  togglePopup: Z,
24115
24115
  closePopup: b
@@ -24142,7 +24142,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24142
24142
  slotLeft: f,
24143
24143
  borderRadius: V = "sm",
24144
24144
  slotRight: j,
24145
- icon: I,
24145
+ icon: k,
24146
24146
  colorIcon: H,
24147
24147
  tooltip: Z,
24148
24148
  tooltipPosition: b,
@@ -24155,9 +24155,9 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24155
24155
  containerClassName: $,
24156
24156
  buttonTransition: B = !0,
24157
24157
  buttonStyle: M,
24158
- stopPropagationList: k = !0,
24158
+ stopPropagationList: I = !0,
24159
24159
  onClick: A,
24160
- ..._
24160
+ ...U
24161
24161
  }, G) => {
24162
24162
  const {
24163
24163
  isOpen: R,
@@ -24215,9 +24215,9 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24215
24215
  style: u1,
24216
24216
  className: `ui-border ui-border-neutral-100 ui-bg-white ${E} ui-overflow-hidden ui-shadow-lg ${s}`,
24217
24217
  onClick: (e1) => {
24218
- k && e1.stopPropagation(), w && a1();
24218
+ I && e1.stopPropagation(), w && a1();
24219
24219
  },
24220
- ..._,
24220
+ ...U,
24221
24221
  children: t
24222
24222
  }
24223
24223
  );
@@ -24227,10 +24227,10 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24227
24227
  "div",
24228
24228
  {
24229
24229
  ref: z,
24230
- className: U("ui-relative ui-h-max"),
24230
+ className: _("ui-relative ui-h-max"),
24231
24231
  "data-popup-container-id": D,
24232
24232
  children: [
24233
- /* @__PURE__ */ i("div", { ref: P, className: U("ui-w-fit", $), children: /* @__PURE__ */ i(
24233
+ /* @__PURE__ */ i("div", { ref: P, className: _("ui-w-fit", $), children: /* @__PURE__ */ i(
24234
24234
  b1,
24235
24235
  {
24236
24236
  className: x,
@@ -24240,7 +24240,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24240
24240
  color: L,
24241
24241
  size: h,
24242
24242
  rounded: m,
24243
- icon: I,
24243
+ icon: k,
24244
24244
  slotLeft: f,
24245
24245
  slotRight: j,
24246
24246
  colorIcon: H,
@@ -25843,10 +25843,10 @@ const s9 = "emoji-picker-recent", Fo = ({
25843
25843
  slotRight: f,
25844
25844
  borderRadius: V = "md",
25845
25845
  disabled: j = !1,
25846
- buttonClassName: I,
25846
+ buttonClassName: k,
25847
25847
  tooltip: H
25848
25848
  }) => {
25849
- const [Z, b] = q("recent"), [v, S] = q(""), [y, O] = q([]), [w, x] = q(C || ""), $ = i1(null), B = i1({}), M = i1(!1), k = i1(null);
25849
+ const [Z, b] = q("recent"), [v, S] = q(""), [y, O] = q([]), [w, x] = q(C || ""), $ = i1(null), B = i1({}), M = i1(!1), I = i1(null);
25850
25850
  K(() => {
25851
25851
  if (!M.current)
25852
25852
  if (M.current = !0, a && a.length > 0)
@@ -25865,12 +25865,12 @@ const s9 = "emoji-picker-recent", Fo = ({
25865
25865
  } catch (P) {
25866
25866
  console.error("Error saving recent emojis:", P);
25867
25867
  }
25868
- }, _ = (F) => {
25868
+ }, U = (F) => {
25869
25869
  const P = [F, ...y.filter((T) => T !== F)].slice(
25870
25870
  0,
25871
25871
  o
25872
25872
  );
25873
- O(P), A(P), t == null || t(F), d && k.current && k.current.close();
25873
+ O(P), A(P), t == null || t(F), d && I.current && I.current.close();
25874
25874
  }, G = h1(() => !v || v.trim() === "" ? [
25875
25875
  {
25876
25876
  ...R1[0],
@@ -25904,7 +25904,7 @@ const s9 = "emoji-picker-recent", Fo = ({
25904
25904
  return /* @__PURE__ */ i(
25905
25905
  i9,
25906
25906
  {
25907
- ref: k,
25907
+ ref: I,
25908
25908
  label: w,
25909
25909
  position: p,
25910
25910
  variant: l,
@@ -25914,13 +25914,13 @@ const s9 = "emoji-picker-recent", Fo = ({
25914
25914
  clickable: !1,
25915
25915
  borderRadius: V,
25916
25916
  disabled: j,
25917
- buttonClassName: I,
25917
+ buttonClassName: k,
25918
25918
  tooltip: H,
25919
25919
  closeOnClick: !1,
25920
25920
  children: /* @__PURE__ */ u(
25921
25921
  "div",
25922
25922
  {
25923
- className: U("ui-flex ui-flex-col ui-bg-white", r),
25923
+ className: _("ui-flex ui-flex-col ui-bg-white", r),
25924
25924
  style: { width: `${n}px` },
25925
25925
  children: [
25926
25926
  /* @__PURE__ */ i("div", { className: "ui-border-b ui-border-neutral-100 ui-bg-white ui-px-4 ui-py-3", children: /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-wrap ui-gap-2", children: R1.map((F) => /* @__PURE__ */ i(
@@ -25968,7 +25968,7 @@ const s9 = "emoji-picker-recent", Fo = ({
25968
25968
  /* @__PURE__ */ i("div", { className: "ui-grid ui-grid-cols-8 ui-gap-1", children: F.emojis.length === 0 && F.id === "recent" ? /* @__PURE__ */ i("div", { className: "ui-col-span-8 ui-py-4 ui-text-center ui-text-xs ui-text-neutral-400", children: "No hay emojis recientes" }) : F.emojis.map((P, T) => /* @__PURE__ */ i(
25969
25969
  "button",
25970
25970
  {
25971
- onClick: () => _(P),
25971
+ onClick: () => U(P),
25972
25972
  className: "ui-flex ui-h-8 ui-w-8 ui-cursor-pointer ui-items-center ui-justify-center ui-rounded ui-text-base ui-transition-colors hover:ui-bg-neutral-50",
25973
25973
  "aria-label": `Emoji ${P}`,
25974
25974
  type: "button",
@@ -26025,22 +26025,23 @@ const s9 = "emoji-picker-recent", Fo = ({
26025
26025
  error: d = "",
26026
26026
  helperText: C = "",
26027
26027
  maxLength: p = 0,
26028
- label: l = "Que hace?"
26028
+ label: l = "",
26029
+ fullWidth: L = !0
26029
26030
  }) => {
26030
- const { isFocused: L, setIsFocused: h, count: g, handleChange: m, handlePaste: f } = Eo({
26031
+ const { isFocused: h, setIsFocused: g, count: m, handleChange: f, handlePaste: V } = Eo({
26031
26032
  maxLength: p,
26032
26033
  onChange: o,
26033
26034
  value: t
26034
- }), V = h1(() => {
26035
- const j = "ui-text-sm ui-font-bold";
26036
- return d ? `${j} ui-text-red-500` : `${j} ui-text-neutral-900`;
26035
+ }), j = h1(() => {
26036
+ const k = "ui-text-sm ui-font-bold";
26037
+ return d ? `${k} ui-text-red-500` : `${k} ui-text-neutral-900`;
26037
26038
  }, [d]);
26038
- return /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-flex-col ui-gap-1 ui-w-fit", children: [
26039
- l && /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: l && /* @__PURE__ */ i("label", { className: V, children: l }) }),
26039
+ return /* @__PURE__ */ u("div", { className: _("ui-relative ui-flex ui-flex-col ui-gap-1", L ? "ui-w-full" : "ui-w-fit"), children: [
26040
+ l && /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: l && /* @__PURE__ */ i("label", { className: j, children: l }) }),
26040
26041
  /* @__PURE__ */ u(
26041
26042
  "div",
26042
26043
  {
26043
- className: U(
26044
+ className: _(
26044
26045
  "ui-relative ui-flex ui-h-full ui-min-h-5 ui-w-full ui-flex-col",
26045
26046
  e
26046
26047
  ),
@@ -26050,21 +26051,21 @@ const s9 = "emoji-picker-recent", Fo = ({
26050
26051
  {
26051
26052
  slot: a,
26052
26053
  className: "ui-absolute ui-left-2 ui-top-2",
26053
- colorIcon: s ? "neutral_soft" : d ? "red_soft" : L ? "blue" : "neutral"
26054
+ colorIcon: s ? "neutral_soft" : d ? "red_soft" : h ? "blue" : "neutral"
26054
26055
  }
26055
26056
  ),
26056
26057
  /* @__PURE__ */ i(
26057
26058
  "textarea",
26058
26059
  {
26059
26060
  placeholder: r,
26060
- onFocus: () => h(!0),
26061
+ onFocus: () => g(!0),
26061
26062
  value: t || "",
26062
- onChange: m,
26063
- onPaste: f,
26064
- onBlur: () => h(!1),
26063
+ onChange: f,
26064
+ onPaste: V,
26065
+ onBlur: () => g(!1),
26065
26066
  disabled: s,
26066
26067
  rows: 1,
26067
- className: U(
26068
+ className: _(
26068
26069
  "ui-textarea ui-min-h-23 ui-w-full ui-rounded-sm ui-border-1 ui-border-neutral-100 ui-p-2 ui-pt-1.5 ui-text-sm ui-text-neutral-900 placeholder:ui-text-neutral-500 focus:ui-outline-none",
26069
26070
  p > 0 ? "ui-pb-6.5" : "ui-pb-2",
26070
26071
  a ? "ui-pl-7" : "ui-pl-2",
@@ -26079,20 +26080,20 @@ const s9 = "emoji-picker-recent", Fo = ({
26079
26080
  {
26080
26081
  slot: c,
26081
26082
  className: "ui-absolute ui-right-2 ui-top-2",
26082
- colorIcon: s ? "neutral_soft" : d ? "red_soft" : L ? "blue" : "neutral"
26083
+ colorIcon: s ? "neutral_soft" : d ? "red_soft" : h ? "blue" : "neutral"
26083
26084
  }
26084
26085
  ),
26085
26086
  p > 0 && /* @__PURE__ */ u(
26086
26087
  "div",
26087
26088
  {
26088
- className: U(
26089
+ className: _(
26089
26090
  "ui-absolute ui-left-2 ui-flex ui-w-full ui-items-center ui-gap-2 ui-px-2",
26090
26091
  C && d ? "ui-bottom-[50px]" : C || d ? "ui-bottom-[29px]" : "ui-bottom-2"
26091
26092
  ),
26092
26093
  children: [
26093
26094
  /* @__PURE__ */ i(L1, { name: "FileOutlined", color: "neutral_soft", size: "sm" }),
26094
26095
  /* @__PURE__ */ u("p", { className: "ui-text-sm ui-leading-none ui-text-neutral-500", children: [
26095
- g,
26096
+ m,
26096
26097
  "/",
26097
26098
  p
26098
26099
  ] })
@@ -26238,7 +26239,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26238
26239
  /* @__PURE__ */ i(G1, {}),
26239
26240
  /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-col ui-gap-y-2 ui-p-4 ui-pt-3", children: [
26240
26241
  t.map((f, V) => {
26241
- const j = f.keyName || f.label.toLowerCase(), I = `filter-${V}-${f.type}-${f.label}`;
26242
+ const j = f.keyName || f.label.toLowerCase(), k = `filter-${V}-${f.type}-${f.label}`;
26242
26243
  return f.type === "dropdown" ? /* @__PURE__ */ i(
26243
26244
  F1,
26244
26245
  {
@@ -26251,7 +26252,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26251
26252
  absolute: !1,
26252
26253
  closeOnClickOutside: !0
26253
26254
  },
26254
- I
26255
+ k
26255
26256
  ) : f.type === "multiple" ? /* @__PURE__ */ i(
26256
26257
  F1,
26257
26258
  {
@@ -26265,7 +26266,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26265
26266
  absolute: !1,
26266
26267
  closeOnClickOutside: !0
26267
26268
  },
26268
- I
26269
+ k
26269
26270
  ) : f.type === "group" ? /* @__PURE__ */ i(
26270
26271
  F1,
26271
26272
  {
@@ -26281,7 +26282,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26281
26282
  multiple: !0,
26282
26283
  withCheckbox: !0
26283
26284
  },
26284
- I
26285
+ k
26285
26286
  ) : f.type === "input" ? /* @__PURE__ */ i(
26286
26287
  B1,
26287
26288
  {
@@ -26289,7 +26290,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26289
26290
  value: C[j] || "",
26290
26291
  onChange: (H) => p(f.label, H.target.value, f)
26291
26292
  },
26292
- I
26293
+ k
26293
26294
  ) : f.type === "date" ? /* @__PURE__ */ i(
26294
26295
  l9,
26295
26296
  {
@@ -26299,7 +26300,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26299
26300
  onDateChange: (H) => p(f.label, H, f),
26300
26301
  placeholder: f.placeholder
26301
26302
  },
26302
- I
26303
+ k
26303
26304
  ) : f.type === "dateRange" ? /* @__PURE__ */ i(
26304
26305
  l9,
26305
26306
  {
@@ -26309,14 +26310,14 @@ const s9 = "emoji-picker-recent", Fo = ({
26309
26310
  onRangeChange: (H) => p(f.label, H, f),
26310
26311
  placeholder: f.placeholder
26311
26312
  },
26312
- I
26313
+ k
26313
26314
  ) : f.type === "textarea" ? /* @__PURE__ */ i(
26314
26315
  Do,
26315
26316
  {
26316
26317
  value: C[j] || "",
26317
26318
  onChange: (H) => p(f.label, H, f)
26318
26319
  },
26319
- I
26320
+ k
26320
26321
  ) : null;
26321
26322
  }),
26322
26323
  /* @__PURE__ */ i(b1, { color: "blue", onClick: h, children: "Aplicar" })
@@ -26433,8 +26434,8 @@ const s9 = "emoji-picker-recent", Fo = ({
26433
26434
  let S = v.rangeCount > 0 ? v.getRangeAt(0).commonAncestorContainer : t.current, y = null, O = S;
26434
26435
  for (; O && O !== t.current; ) {
26435
26436
  if (O.nodeType === Node.ELEMENT_NODE) {
26436
- const M = O, k = M.tagName.toLowerCase();
26437
- if (k === "ul" || k === "ol") {
26437
+ const M = O, I = M.tagName.toLowerCase();
26438
+ if (I === "ul" || I === "ol") {
26438
26439
  y = M;
26439
26440
  break;
26440
26441
  }
@@ -26443,33 +26444,33 @@ const s9 = "emoji-picker-recent", Fo = ({
26443
26444
  }
26444
26445
  if (y)
26445
26446
  if (y.tagName.toLowerCase() === b) {
26446
- const k = y.parentNode;
26447
- k && (Array.from(y.children).forEach((A) => {
26448
- const _ = document.createElement("div");
26449
- _.innerHTML = A.innerHTML || "<br>", k.insertBefore(_, y);
26450
- }), k.removeChild(y));
26447
+ const I = y.parentNode;
26448
+ I && (Array.from(y.children).forEach((A) => {
26449
+ const U = document.createElement("div");
26450
+ U.innerHTML = A.innerHTML || "<br>", I.insertBefore(U, y);
26451
+ }), I.removeChild(y));
26451
26452
  } else {
26452
- const k = document.createElement(b);
26453
- k.innerHTML = y.innerHTML, (w = y.parentNode) == null || w.replaceChild(k, y);
26453
+ const I = document.createElement(b);
26454
+ I.innerHTML = y.innerHTML, (w = y.parentNode) == null || w.replaceChild(I, y);
26454
26455
  }
26455
26456
  else {
26456
- const M = document.createElement(b), k = document.createElement("li");
26457
+ const M = document.createElement(b), I = document.createElement("li");
26457
26458
  if (v.rangeCount > 0) {
26458
26459
  const A = v.getRangeAt(0);
26459
26460
  if (A.collapsed) {
26460
- k.innerHTML = "<br>", M.appendChild(k), t.current.childNodes.length === 0 || ((x = t.current.textContent) == null ? void 0 : x.trim()) === "" ? (t.current.innerHTML = "", t.current.appendChild(M)) : A.insertNode(M);
26461
- const _ = document.createRange();
26462
- _.setStart(k, 0), _.collapse(!0), v.removeAllRanges(), v.addRange(_);
26461
+ I.innerHTML = "<br>", M.appendChild(I), t.current.childNodes.length === 0 || ((x = t.current.textContent) == null ? void 0 : x.trim()) === "" ? (t.current.innerHTML = "", t.current.appendChild(M)) : A.insertNode(M);
26462
+ const U = document.createRange();
26463
+ U.setStart(I, 0), U.collapse(!0), v.removeAllRanges(), v.addRange(U);
26463
26464
  } else {
26464
- const _ = A.extractContents();
26465
- (($ = _.textContent) == null ? void 0 : $.trim()) === "" ? k.innerHTML = "<br>" : k.appendChild(_), M.appendChild(k), A.insertNode(M);
26465
+ const U = A.extractContents();
26466
+ (($ = U.textContent) == null ? void 0 : $.trim()) === "" ? I.innerHTML = "<br>" : I.appendChild(U), M.appendChild(I), A.insertNode(M);
26466
26467
  const G = document.createRange();
26467
- G.selectNodeContents(k), G.collapse(!1), v.removeAllRanges(), v.addRange(G);
26468
+ G.selectNodeContents(I), G.collapse(!1), v.removeAllRanges(), v.addRange(G);
26468
26469
  }
26469
26470
  } else {
26470
- k.innerHTML = "<br>", M.appendChild(k), t.current.appendChild(M);
26471
+ I.innerHTML = "<br>", M.appendChild(I), t.current.appendChild(M);
26471
26472
  const A = document.createRange();
26472
- A.setStart(k, 0), A.collapse(!0), v.removeAllRanges(), v.addRange(A);
26473
+ A.setStart(I, 0), A.collapse(!0), v.removeAllRanges(), v.addRange(A);
26473
26474
  }
26474
26475
  }
26475
26476
  setTimeout(() => {
@@ -26508,7 +26509,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26508
26509
  }, [m]), j = N(() => {
26509
26510
  var b;
26510
26511
  return ((b = t.current) == null ? void 0 : b.innerHTML) || "";
26511
- }, []), I = N((b) => {
26512
+ }, []), k = N((b) => {
26512
26513
  t.current && (t.current.innerHTML = b);
26513
26514
  }, []), H = N(() => {
26514
26515
  t.current && (t.current.innerHTML = "");
@@ -26527,7 +26528,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26527
26528
  insertEmoji: f,
26528
26529
  insertMention: V,
26529
26530
  getHTML: j,
26530
- setHTML: I,
26531
+ setHTML: k,
26531
26532
  clear: H,
26532
26533
  isEmpty: Z
26533
26534
  };
@@ -26537,7 +26538,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26537
26538
  type: "button",
26538
26539
  onClick: o,
26539
26540
  disabled: r,
26540
- className: U(
26541
+ className: _(
26541
26542
  "ui-flex ui-h-5 ui-w-5 ui-items-center ui-justify-center ui-rounded ui-text-neutral-500 ui-transition-colors hover:ui-bg-white",
26542
26543
  t && "ui-bg-white ui-text-blue-500",
26543
26544
  r && "ui-opacity-50 ui-cursor-not-allowed"
@@ -26568,7 +26569,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26568
26569
  const {
26569
26570
  editorRef: V,
26570
26571
  isFocused: j,
26571
- setIsFocused: I,
26572
+ setIsFocused: k,
26572
26573
  activeFormats: H,
26573
26574
  execCommand: Z,
26574
26575
  handleEditorClick: b,
@@ -26591,16 +26592,16 @@ const s9 = "emoji-picker-recent", Fo = ({
26591
26592
  !O() && !e && (l == null || l());
26592
26593
  }, M = () => {
26593
26594
  const A = document.createElement("input");
26594
- A.type = "file", A.onchange = (_) => {
26595
+ A.type = "file", A.onchange = (U) => {
26595
26596
  var R;
26596
- const G = (R = _.target.files) == null ? void 0 : R[0];
26597
+ const G = (R = U.target.files) == null ? void 0 : R[0];
26597
26598
  G && (s == null || s(G));
26598
26599
  }, A.click();
26599
- }, k = (A) => H.has(A);
26600
+ }, I = (A) => H.has(A);
26600
26601
  return /* @__PURE__ */ i(
26601
26602
  "div",
26602
26603
  {
26603
- className: U(
26604
+ className: _(
26604
26605
  "ui-w-full ui-rounded ui-border ui-bg-white ui-transition-colors",
26605
26606
  j ? "ui-border-neutral-300" : "ui-border-neutral-200",
26606
26607
  e && "ui-opacity-50 ui-pointer-events-none",
@@ -26611,7 +26612,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26611
26612
  /* @__PURE__ */ i(
26612
26613
  S1,
26613
26614
  {
26614
- isActive: k("bold"),
26615
+ isActive: I("bold"),
26615
26616
  onClick: () => Z("bold"),
26616
26617
  disabled: e,
26617
26618
  tooltip: "Negrita",
@@ -26621,7 +26622,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26621
26622
  /* @__PURE__ */ i(
26622
26623
  S1,
26623
26624
  {
26624
- isActive: k("italic"),
26625
+ isActive: I("italic"),
26625
26626
  onClick: () => Z("italic"),
26626
26627
  disabled: e,
26627
26628
  tooltip: "Cursiva",
@@ -26631,7 +26632,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26631
26632
  /* @__PURE__ */ i(
26632
26633
  S1,
26633
26634
  {
26634
- isActive: k("underline"),
26635
+ isActive: I("underline"),
26635
26636
  onClick: () => Z("underline"),
26636
26637
  disabled: e,
26637
26638
  tooltip: "Subrayado",
@@ -26644,7 +26645,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26644
26645
  /* @__PURE__ */ i(
26645
26646
  S1,
26646
26647
  {
26647
- isActive: k("strikethrough"),
26648
+ isActive: I("strikethrough"),
26648
26649
  onClick: () => Z("strikeThrough"),
26649
26650
  disabled: e,
26650
26651
  tooltip: "Tachado",
@@ -26655,7 +26656,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26655
26656
  /* @__PURE__ */ i(
26656
26657
  S1,
26657
26658
  {
26658
- isActive: k("ul"),
26659
+ isActive: I("ul"),
26659
26660
  onClick: () => Z("insertUnorderedList"),
26660
26661
  disabled: e,
26661
26662
  tooltip: "Lista sin orden",
@@ -26665,7 +26666,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26665
26666
  /* @__PURE__ */ i(
26666
26667
  S1,
26667
26668
  {
26668
- isActive: k("ol"),
26669
+ isActive: I("ol"),
26669
26670
  onClick: () => Z("insertOrderedList"),
26670
26671
  disabled: e,
26671
26672
  tooltip: "Lista ordenada",
@@ -26692,7 +26693,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26692
26693
  {
26693
26694
  ref: V,
26694
26695
  contentEditable: !e,
26695
- className: U(
26696
+ className: _(
26696
26697
  "ui-w-full ui-overflow-y-auto ui-px-2 ui-py-1 ui-text-sm ui-text-neutral-700 ui-outline-none",
26697
26698
  "focus:ui-outline-none",
26698
26699
  "[&:empty]:before:ui-text-neutral-400 [&:empty]:before:ui-content-[attr(data-placeholder)]",
@@ -26703,8 +26704,8 @@ const s9 = "emoji-picker-recent", Fo = ({
26703
26704
  ),
26704
26705
  "data-placeholder": n,
26705
26706
  onInput: $,
26706
- onFocus: () => I(!0),
26707
- onBlur: () => I(!1),
26707
+ onFocus: () => k(!0),
26708
+ onBlur: () => k(!1),
26708
26709
  onClick: b,
26709
26710
  style: {
26710
26711
  minHeight: `${m}px`,
@@ -26765,7 +26766,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26765
26766
  type: "button",
26766
26767
  onClick: B,
26767
26768
  disabled: e || w,
26768
- className: U(
26769
+ className: _(
26769
26770
  "ui-flex ui-h-8 ui-w-8 ui-items-center ui-justify-center ui-rounded ui-text-white ui-transition-colors disabled:ui-opacity-50",
26770
26771
  w || e ? "ui-bg-neutral-300 ui-cursor-not-allowed" : "ui-bg-blue-500 hover:ui-bg-blue-600"
26771
26772
  ),
@@ -26852,7 +26853,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26852
26853
  "div",
26853
26854
  {
26854
26855
  className: `ui-relative ui-z-10 ui-flex ui-flex-col ui-items-center ui-justify-center ui-gap-4 ui-w-full ui-px-4 ${C}`,
26855
- onClick: (I) => I.stopPropagation(),
26856
+ onClick: (k) => k.stopPropagation(),
26856
26857
  children: [
26857
26858
  /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-items-center ui-justify-center ui-gap-6 ui-w-full", children: [
26858
26859
  s && f && /* @__PURE__ */ i(
@@ -26914,15 +26915,15 @@ const s9 = "emoji-picker-recent", Fo = ({
26914
26915
  )
26915
26916
  ] }),
26916
26917
  a && L.title && /* @__PURE__ */ i("div", { className: "ui-text-center ui-text-neutral-900 ui-text-lg ui-font-medium ui-px-4 ui-py-2 ui-bg-black/50 ui-rounded-lg ui-backdrop-blur-sm", children: L.title }),
26917
- c && t.length > 1 && /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-gap-2 ui-px-4 ui-py-3 ui-bg-black/50 ui-rounded-full ui-backdrop-blur-sm", children: t.map((I, H) => /* @__PURE__ */ i(
26918
+ c && t.length > 1 && /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-gap-2 ui-px-4 ui-py-3 ui-bg-black/50 ui-rounded-full ui-backdrop-blur-sm", children: t.map((k, H) => /* @__PURE__ */ i(
26918
26919
  "button",
26919
26920
  {
26920
26921
  onClick: () => m(H),
26921
26922
  className: `ui-w-2.5 ui-h-2.5 ui-rounded-full ui-transition-all ui-duration-300 ui-border-1 ${H === l ? "ui-bg-blue-500 ui-border-white" : "ui-bg-white ui-border-neutral-100 hover:ui-bg-blue-500 hover:ui-border-white"}`,
26922
26923
  "aria-label": `Ir a imagen ${H + 1}`,
26923
- title: I.title || `Imagen ${H + 1}`
26924
+ title: k.title || `Imagen ${H + 1}`
26924
26925
  },
26925
- I.id
26926
+ k.id
26926
26927
  )) }),
26927
26928
  d && /* @__PURE__ */ u("div", { className: "ui-absolute ui-bottom-4 ui-left-4 ui-text-white ui-text-sm ui-font-medium ui-px-3 ui-py-1 ui-bg-black/50 ui-rounded-full ui-backdrop-blur-sm", children: [
26928
26929
  l + 1,
@@ -26973,7 +26974,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26973
26974
  const f = Math.min(t * (r || 0), n || 0) || 0, j = (() => {
26974
26975
  const H = Math.min(Math.max(t, 1), Math.max(o - p + 1, 1)), Z = Math.min(H + p - 1, o);
26975
26976
  return Array.from({ length: Z - H + 1 }, (b, v) => H + v);
26976
- })(), I = (H) => {
26977
+ })(), k = (H) => {
26977
26978
  m(H), d(H), h(1);
26978
26979
  };
26979
26980
  return /* @__PURE__ */ i(
@@ -27096,7 +27097,7 @@ const s9 = "emoji-picker-recent", Fo = ({
27096
27097
  options: c,
27097
27098
  value: g,
27098
27099
  valueName: "id",
27099
- onValueChange: (H) => I(Number(H))
27100
+ onValueChange: (H) => k(Number(H))
27100
27101
  }
27101
27102
  )
27102
27103
  ] }) })
@@ -30272,7 +30273,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30272
30273
  r || p(!0);
30273
30274
  }, [r]), j = N(() => {
30274
30275
  p(!1), d(!1);
30275
- }, []), I = N(
30276
+ }, []), k = N(
30276
30277
  (H) => {
30277
30278
  r || (H.preventDefault(), n && n({
30278
30279
  target: {
@@ -30295,7 +30296,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30295
30296
  handleMouseUp: f,
30296
30297
  handleMouseEnter: V,
30297
30298
  handleMouseLeave: j,
30298
- handleClick: I
30299
+ handleClick: k
30299
30300
  }
30300
30301
  };
30301
30302
  }, cr = ({
@@ -30320,7 +30321,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30320
30321
  name: p.name,
30321
30322
  id: c
30322
30323
  });
30323
- return /* @__PURE__ */ u("div", { className: U("ui-flex ui-items-center", e), children: [
30324
+ return /* @__PURE__ */ u("div", { className: _("ui-flex ui-items-center", e), children: [
30324
30325
  /* @__PURE__ */ i(
30325
30326
  "input",
30326
30327
  {
@@ -30343,7 +30344,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30343
30344
  onMouseUp: m.handleMouseUp,
30344
30345
  onMouseEnter: m.handleMouseEnter,
30345
30346
  onMouseLeave: m.handleMouseLeave,
30346
- className: U(
30347
+ className: _(
30347
30348
  "ui-relative ui-inline-flex ui-cursor-pointer ui-items-center",
30348
30349
  n && "ui-cursor-not-allowed"
30349
30350
  ),
@@ -30359,7 +30360,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30359
30360
  children: L && /* @__PURE__ */ i(
30360
30361
  "div",
30361
30362
  {
30362
- className: U("ui-absolute ui-rounded-full", "ui-bg-white"),
30363
+ className: _("ui-absolute ui-rounded-full", "ui-bg-white"),
30363
30364
  style: {
30364
30365
  zIndex: 1,
30365
30366
  width: o === "sm" ? "4px" : o === "md" ? "6px" : "8px",
@@ -30369,7 +30370,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30369
30370
  )
30370
30371
  }
30371
30372
  ),
30372
- t && /* @__PURE__ */ i("span", { className: U(sr({ size: o, disabled: n }), a), children: t })
30373
+ t && /* @__PURE__ */ i("span", { className: _(sr({ size: o, disabled: n }), a), children: t })
30373
30374
  ]
30374
30375
  }
30375
30376
  )
@@ -30410,7 +30411,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30410
30411
  return /* @__PURE__ */ i(
30411
30412
  "div",
30412
30413
  {
30413
- className: U(
30414
+ className: _(
30414
30415
  "ui-flex ui-gap-3",
30415
30416
  c === "horizontal" ? "ui-flex-row" : "ui-flex-col",
30416
30417
  s
@@ -31008,7 +31009,7 @@ export {
31008
31009
  Qr as Wysiwyg,
31009
31010
  Mo as Year,
31010
31011
  B9 as YearGrid,
31011
- U as cn,
31012
+ _ as cn,
31012
31013
  sr as labelVariants,
31013
31014
  lr as radioButtonVariants,
31014
31015
  kr as toast,