@imj_media/ui 1.0.64 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as u, Fragment as $1 } from "react/jsx-runtime";
2
- import M1, { useState as Y, useRef as o1, useEffect as K, useCallback as P, useMemo as x1, useImperativeHandle as o0, forwardRef as G1, useId as t9, createContext as T9, useContext as A9 } from "react";
2
+ import M1, { useState as Y, useRef as o1, useEffect as Q, useCallback as P, useMemo as x1, useImperativeHandle as o0, forwardRef as G1, useId as t9, createContext as T9, useContext as A9 } from "react";
3
3
  import { clsx as F9 } from "clsx";
4
4
  import { twMerge as N9 } from "tailwind-merge";
5
5
  import { library as r0 } from "@fortawesome/fontawesome-svg-core";
@@ -18768,7 +18768,7 @@ const B5 = ({
18768
18768
  return !1;
18769
18769
  }
18770
18770
  };
18771
- return K(() => {
18771
+ return Q(() => {
18772
18772
  if (s.current && clearTimeout(s.current), !o || !h(o)) {
18773
18773
  a(!0), l(!1);
18774
18774
  return;
@@ -19153,8 +19153,8 @@ const B5 = ({
19153
19153
  }
19154
19154
  }
19155
19155
  H.current = x;
19156
- }, [a, y]), R = P(() => {
19157
- var J, q, E, X, n1, N;
19156
+ }, [a, y]), E = P(() => {
19157
+ var J, G, R, X, n1, N;
19158
19158
  if (!h.current || !w.current) return;
19159
19159
  const v = h.current.getBoundingClientRect(), x = w.current.getBoundingClientRect(), Z = 8;
19160
19160
  let O = 0, M = 0;
@@ -19202,23 +19202,23 @@ const B5 = ({
19202
19202
  }
19203
19203
  O < 0 && (O = 0), M < 0 && (M = 0), (() => {
19204
19204
  var T;
19205
- const u1 = (T = f.current) == null ? void 0 : T.getBoundingClientRect();
19206
- if (!u1) return;
19205
+ const a1 = (T = f.current) == null ? void 0 : T.getBoundingClientRect();
19206
+ if (!a1) return;
19207
19207
  let p1 = o, _ = !1;
19208
19208
  if (!(() => {
19209
19209
  switch (o) {
19210
19210
  case "top":
19211
19211
  return k >= x.height + Z;
19212
19212
  case "bottom":
19213
- return k + v.height + Z + x.height <= u1.height;
19213
+ return k + v.height + Z + x.height <= a1.height;
19214
19214
  case "left":
19215
19215
  return F >= x.width + Z;
19216
19216
  case "right":
19217
- return F + v.width + Z + x.width <= u1.width;
19217
+ return F + v.width + Z + x.width <= a1.width;
19218
19218
  default:
19219
19219
  return !0;
19220
19220
  }
19221
- })() && (o === "top" ? k + v.height + Z + x.height <= u1.height && (p1 = "bottom", _ = !0) : o === "bottom" ? k >= x.height + Z && (p1 = "top", _ = !0) : o === "left" ? F + v.width + Z + x.width <= u1.width && (p1 = "right", _ = !0) : o === "right" && F >= x.width + Z && (p1 = "left", _ = !0), _)) {
19221
+ })() && (o === "top" ? k + v.height + Z + x.height <= a1.height && (p1 = "bottom", _ = !0) : o === "bottom" ? k >= x.height + Z && (p1 = "top", _ = !0) : o === "left" ? F + v.width + Z + x.width <= a1.width && (p1 = "right", _ = !0) : o === "right" && F >= x.width + Z && (p1 = "left", _ = !0), _)) {
19222
19222
  switch (p1) {
19223
19223
  case "top":
19224
19224
  O = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
@@ -19279,14 +19279,14 @@ const B5 = ({
19279
19279
  switch (r) {
19280
19280
  case "start":
19281
19281
  if (t) {
19282
- const $ = (q = f.current) == null ? void 0 : q.getBoundingClientRect();
19282
+ const $ = (G = f.current) == null ? void 0 : G.getBoundingClientRect();
19283
19283
  $ && (M = v.left - $.left);
19284
19284
  } else
19285
19285
  M = v.left;
19286
19286
  break;
19287
19287
  case "end":
19288
19288
  if (t) {
19289
- const $ = (E = f.current) == null ? void 0 : E.getBoundingClientRect();
19289
+ const $ = (R = f.current) == null ? void 0 : R.getBoundingClientRect();
19290
19290
  $ && (M = v.right - $.left - x.width);
19291
19291
  } else
19292
19292
  M = v.right - x.width;
@@ -19330,14 +19330,14 @@ const B5 = ({
19330
19330
  V.current.count = 0;
19331
19331
  V.current.lastTime = I, j.current = { top: O, left: M }, s({ top: O, left: M });
19332
19332
  }, [o, r, t, y]);
19333
- K(() => (a && w.current ? (requestAnimationFrame(() => {
19334
- if (R(), h.current) {
19333
+ Q(() => (a && w.current ? (requestAnimationFrame(() => {
19334
+ if (E(), h.current) {
19335
19335
  const v = h.current.getBoundingClientRect();
19336
19336
  H.current = { top: v.top, left: v.left };
19337
19337
  }
19338
19338
  }), m.current = setInterval(B, 100)) : m.current && (clearInterval(m.current), m.current = null), () => {
19339
19339
  m.current && (clearInterval(m.current), m.current = null);
19340
- }), [a, R, B]), K(() => {
19340
+ }), [a, E, B]), Q(() => {
19341
19341
  if (h.current)
19342
19342
  return b.current = new IntersectionObserver(
19343
19343
  (v) => {
@@ -19352,7 +19352,7 @@ const B5 = ({
19352
19352
  ), b.current.observe(h.current), () => {
19353
19353
  b.current && b.current.disconnect();
19354
19354
  };
19355
- }, [a, y]), K(() => {
19355
+ }, [a, y]), Q(() => {
19356
19356
  if (!a) return;
19357
19357
  const v = () => {
19358
19358
  t || y();
@@ -19370,7 +19370,7 @@ const B5 = ({
19370
19370
  }, [e, n]), S = P(() => {
19371
19371
  g.current && (clearTimeout(g.current), g.current = null), c(!1), s({ top: 0, left: 0 });
19372
19372
  }, []);
19373
- return K(() => () => {
19373
+ return Q(() => () => {
19374
19374
  g.current && clearTimeout(g.current), m.current && clearInterval(m.current);
19375
19375
  }, []), {
19376
19376
  isVisible: a,
@@ -19382,7 +19382,7 @@ const B5 = ({
19382
19382
  containerRef: f,
19383
19383
  handleMouseEnter: A,
19384
19384
  handleMouseLeave: S,
19385
- calculatePosition: R
19385
+ calculatePosition: E
19386
19386
  };
19387
19387
  }, T5 = {
19388
19388
  white: { bg: "ui-bg-white", text: "ui-text-gray-900", arrow: "var(--ui-color-white)" },
@@ -19794,7 +19794,7 @@ const B5 = ({
19794
19794
  onClickRightSlot: V,
19795
19795
  disabled: y,
19796
19796
  colorIcon: B,
19797
- showShadow: R = !1,
19797
+ showShadow: E = !1,
19798
19798
  borderable: A,
19799
19799
  iconSizeExtended: S = "none",
19800
19800
  defaultSizeIcon: v = !0,
@@ -19805,22 +19805,22 @@ const B5 = ({
19805
19805
  tooltipPosition: I,
19806
19806
  tooltipAlignment: z,
19807
19807
  tooltipColor: J = "neutral",
19808
- tooltipDelay: q,
19809
- tooltipAbsolute: E,
19808
+ tooltipDelay: G,
19809
+ tooltipAbsolute: R,
19810
19810
  classNameTooltip: X,
19811
19811
  stopPropagation: n1 = !0,
19812
19812
  pointer: N = !1,
19813
19813
  ref: $,
19814
19814
  onClick: k,
19815
19815
  textAlign: F = "center",
19816
- whiteBackground: i1 = !0,
19817
- strokeWidth: u1 = 2,
19816
+ whiteBackground: e1 = !0,
19817
+ strokeWidth: a1 = 2,
19818
19818
  transition: p1 = !0,
19819
19819
  ..._
19820
19820
  }) => {
19821
- const a1 = {
19821
+ const u1 = {
19822
19822
  disabled: y
19823
- }, T = a === "icon", Q = T ? !0 : v, e1 = T ? "xs" : g, W = (V1) => {
19823
+ }, T = a === "icon", K = T ? !0 : v, i1 = T ? "xs" : g, W = (V1) => {
19824
19824
  n1 && V1.stopPropagation(), k && k(V1);
19825
19825
  }, l1 = C1("", {
19826
19826
  variants: {
@@ -19856,8 +19856,8 @@ const B5 = ({
19856
19856
  colorIcon: B,
19857
19857
  className: o,
19858
19858
  onClick: j,
19859
- defaultSizeIcon: Q,
19860
- strokeWidth: u1
19859
+ defaultSizeIcon: K,
19860
+ strokeWidth: a1
19861
19861
  }
19862
19862
  ),
19863
19863
  d && /* @__PURE__ */ u(
@@ -19878,7 +19878,7 @@ const B5 = ({
19878
19878
  !d && w && (typeof w == "string" ? /* @__PURE__ */ i(
19879
19879
  j1,
19880
19880
  {
19881
- strokeWidth: u1,
19881
+ strokeWidth: a1,
19882
19882
  name: w,
19883
19883
  size: a === "icon" ? g : S !== "none" ? S : g,
19884
19884
  color: B,
@@ -19893,12 +19893,12 @@ const B5 = ({
19893
19893
  colorIcon: B,
19894
19894
  className: o,
19895
19895
  onClick: V,
19896
- defaultSizeIcon: Q,
19897
- strokeWidth: u1
19896
+ defaultSizeIcon: K,
19897
+ strokeWidth: a1
19898
19898
  }
19899
19899
  )
19900
19900
  ] }), r1 = b ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", s1 = x ? J || "neutral" : C, k1 = C1(
19901
- `${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 ${R && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${N && T ? "!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19901
+ `${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 ${E && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${N && T ? "!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19902
19902
  {
19903
19903
  variants: {
19904
19904
  variant: {
@@ -19918,17 +19918,17 @@ const B5 = ({
19918
19918
  "3xl": `ui-max-h-[62px] ui-min-h-[62px] ui-min-w-[62px] ${d ? "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] ${b ? `ui-max-w-[62px] ui-min-h-[62px] ${r1}` : ""}`
19919
19919
  },
19920
19920
  color: {
19921
- blue: w1(a, h, A, i1).blue,
19922
- "blue-dark": w1(a, h, A, i1)["blue-dark"],
19923
- orange: w1(a, h, A, i1).orange,
19924
- red: w1(a, h, A, i1).red,
19925
- green: w1(a, h, A, i1).green,
19926
- white: w1(a, h, A, i1).white,
19927
- yellow: w1(a, h, A, i1).yellow,
19928
- "blue-light": w1(a, h, A, i1)["blue-light"],
19929
- neutral: w1(a, h, A, i1).neutral,
19930
- black: w1(a, h, A, i1).black,
19931
- transparent: w1(a, h, A, i1).transparent
19921
+ blue: w1(a, h, A, e1).blue,
19922
+ "blue-dark": w1(a, h, A, e1)["blue-dark"],
19923
+ orange: w1(a, h, A, e1).orange,
19924
+ red: w1(a, h, A, e1).red,
19925
+ green: w1(a, h, A, e1).green,
19926
+ white: w1(a, h, A, e1).white,
19927
+ yellow: w1(a, h, A, e1).yellow,
19928
+ "blue-light": w1(a, h, A, e1)["blue-light"],
19929
+ neutral: w1(a, h, A, e1).neutral,
19930
+ black: w1(a, h, A, e1).black,
19931
+ transparent: w1(a, h, A, e1).transparent
19932
19932
  },
19933
19933
  rounded: {
19934
19934
  false: "ui-rounded-sm",
@@ -19947,7 +19947,7 @@ const B5 = ({
19947
19947
  }
19948
19948
  }
19949
19949
  )({
19950
- size: e1,
19950
+ size: i1,
19951
19951
  color: C,
19952
19952
  rounded: p,
19953
19953
  fullWidth: t,
@@ -19969,9 +19969,9 @@ const B5 = ({
19969
19969
  label: M,
19970
19970
  position: I,
19971
19971
  alignment: z,
19972
- absolute: E,
19972
+ absolute: R,
19973
19973
  color: s1,
19974
- delay: q,
19974
+ delay: G,
19975
19975
  className: X,
19976
19976
  fullWidth: t,
19977
19977
  children: /* @__PURE__ */ i(
@@ -19991,7 +19991,7 @@ const B5 = ({
19991
19991
  position: I,
19992
19992
  alignment: z,
19993
19993
  color: s1,
19994
- delay: q,
19994
+ delay: G,
19995
19995
  className: X,
19996
19996
  fullWidth: t,
19997
19997
  children: /* @__PURE__ */ i(
@@ -19999,7 +19999,7 @@ const B5 = ({
19999
19999
  {
20000
20000
  ref: $,
20001
20001
  className: U(k1, o),
20002
- ...a1,
20002
+ ...u1,
20003
20003
  ..._,
20004
20004
  onClick: W,
20005
20005
  children: d1()
@@ -20318,11 +20318,11 @@ const B5 = ({
20318
20318
  }[o][r]}`;
20319
20319
  }, Y5 = ({ open: o, externalIsLeaving: r }) => {
20320
20320
  const [t, n] = Y(!1), [e, a] = Y(!1), c = r !== void 0 ? r : e;
20321
- return K(() => {
20321
+ return Q(() => {
20322
20322
  o ? (n(!0), a(!1)) : (a(!0), r === void 0 && setTimeout(() => {
20323
20323
  n(!1);
20324
20324
  }, 300));
20325
- }, [o, r]), K(() => {
20325
+ }, [o, r]), Q(() => {
20326
20326
  r && r !== e && (a(!0), setTimeout(() => {
20327
20327
  n(!1);
20328
20328
  }, 300));
@@ -20589,7 +20589,7 @@ const B5 = ({
20589
20589
  tooltipPosition: V,
20590
20590
  tooltipAlignment: y,
20591
20591
  tooltipColor: B,
20592
- tooltipDelay: R,
20592
+ tooltipDelay: E,
20593
20593
  ...A
20594
20594
  }) => /* @__PURE__ */ i(
20595
20595
  t1,
@@ -20618,7 +20618,7 @@ const B5 = ({
20618
20618
  tooltipPosition: V,
20619
20619
  tooltipAlignment: y,
20620
20620
  tooltipColor: B,
20621
- tooltipDelay: R,
20621
+ tooltipDelay: E,
20622
20622
  ...A
20623
20623
  }
20624
20624
  ), $i = ({
@@ -20725,10 +20725,10 @@ const Q5 = (o) => {
20725
20725
  if (d.current) {
20726
20726
  const M = d.current.getInputElement();
20727
20727
  if (M) {
20728
- const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, q = 320, E = 256, X = 8;
20728
+ const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20729
20729
  let n1, N = I.left;
20730
20730
  const $ = z - I.bottom, k = I.top;
20731
- $ >= q + X ? n1 = I.bottom + X : k >= q + X ? n1 = I.top - q + X : $ > k ? n1 = I.bottom + X : n1 = I.top - q + X, I.left + E > J && (N = I.right - E), N = Math.max(0, Math.min(N, J - E)), s((F) => ({
20731
+ $ >= G + X ? n1 = I.bottom + X : k >= G + X ? n1 = I.top - G + X : $ > k ? n1 = I.bottom + X : n1 = I.top - G + X, I.left + R > J && (N = I.right - R), N = Math.max(0, Math.min(N, J - R)), s((F) => ({
20732
20732
  ...F,
20733
20733
  isOpen: !0,
20734
20734
  portalPosition: { top: n1, left: N }
@@ -20759,7 +20759,7 @@ const Q5 = (o) => {
20759
20759
  }
20760
20760
  return { ...I, currentDate: z };
20761
20761
  });
20762
- }, []), R = P(
20762
+ }, []), E = P(
20763
20763
  (M) => {
20764
20764
  var I;
20765
20765
  r === "single" && (h && s((z) => ({ ...z, internalDate: M })), (I = o.onDateChange) == null || I.call(o, M), a && j());
@@ -20804,30 +20804,30 @@ const Q5 = (o) => {
20804
20804
  const M = d.current.getInputElement();
20805
20805
  if (!M)
20806
20806
  return;
20807
- const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, q = 320, E = 256, X = 8;
20807
+ const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20808
20808
  let n1, N = I.left;
20809
20809
  const $ = z - I.bottom, k = I.top;
20810
- $ >= q + X ? n1 = I.bottom + X : k >= q + X ? n1 = I.top - q + X : $ > k ? n1 = I.bottom + X : n1 = I.top - q + X, I.left + E > J && (N = I.right - E), N = Math.max(0, Math.min(N, J - E)), s((F) => ({ ...F, portalPosition: { top: n1, left: N } })), p(!0);
20810
+ $ >= G + X ? n1 = I.bottom + X : k >= G + X ? n1 = I.top - G + X : $ > k ? n1 = I.bottom + X : n1 = I.top - G + X, I.left + R > J && (N = I.right - R), N = Math.max(0, Math.min(N, J - R)), s((F) => ({ ...F, portalPosition: { top: n1, left: N } })), p(!0);
20811
20811
  }, []);
20812
- return K(() => {
20812
+ return Q(() => {
20813
20813
  if (!l.isOpen) return;
20814
20814
  const M = () => O(), I = () => O();
20815
20815
  return window.addEventListener("scroll", M, !0), window.addEventListener("resize", I), () => {
20816
20816
  window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", I);
20817
20817
  };
20818
- }, [l.isOpen, O]), K(() => {
20818
+ }, [l.isOpen, O]), Q(() => {
20819
20819
  if (l.isOpen) {
20820
20820
  const M = setTimeout(() => {
20821
20821
  O();
20822
20822
  }, 0);
20823
20823
  return () => clearTimeout(M);
20824
20824
  }
20825
- }, [l.isOpen, O]), K(() => {
20825
+ }, [l.isOpen, O]), Q(() => {
20826
20826
  L && r === "single" && s((M) => ({
20827
20827
  ...M,
20828
20828
  internalDate: t
20829
20829
  }));
20830
- }, [L, r, t]), K(() => {
20830
+ }, [L, r, t]), Q(() => {
20831
20831
  L && r === "range" && s((M) => ({
20832
20832
  ...M,
20833
20833
  internalRange: n || { start: null, end: null }
@@ -20843,7 +20843,7 @@ const Q5 = (o) => {
20843
20843
  closePicker: j,
20844
20844
  setCurrentDate: V,
20845
20845
  setViewMode: y,
20846
- setSelectedDate: R,
20846
+ setSelectedDate: E,
20847
20847
  setSelectedRange: A,
20848
20848
  setHoverDate: S,
20849
20849
  updatePortalPosition: O,
@@ -21039,7 +21039,7 @@ const Q5 = (o) => {
21039
21039
  },
21040
21040
  [r]
21041
21041
  );
21042
- K(() => {
21042
+ Q(() => {
21043
21043
  if (o)
21044
21044
  return document.addEventListener("mousedown", a), document.addEventListener("keydown", c), () => {
21045
21045
  document.removeEventListener("mousedown", a), document.removeEventListener("keydown", c);
@@ -21419,7 +21419,7 @@ const Q5 = (o) => {
21419
21419
  const L = t !== void 0 ? t : e;
21420
21420
  a || s(L), n == null || n(L);
21421
21421
  }, [a, t, e, n]);
21422
- return K(() => {
21422
+ return Q(() => {
21423
21423
  a && r !== void 0 && s(r);
21424
21424
  }, [a, r]), {
21425
21425
  value: C,
@@ -21595,7 +21595,7 @@ const Q5 = (o) => {
21595
21595
  ...y
21596
21596
  }, B) => {
21597
21597
  const {
21598
- value: R,
21598
+ value: E,
21599
21599
  setValue: A,
21600
21600
  isControlled: S
21601
21601
  } = u6({
@@ -21622,7 +21622,7 @@ const Q5 = (o) => {
21622
21622
  });
21623
21623
  return l6({
21624
21624
  ref: B,
21625
- currentValue: R,
21625
+ currentValue: E,
21626
21626
  setValue: A,
21627
21627
  isControlled: S,
21628
21628
  inputId: y.id
@@ -21667,7 +21667,7 @@ const Q5 = (o) => {
21667
21667
  {
21668
21668
  placeholder: "Placeholder",
21669
21669
  disabled: L,
21670
- value: R,
21670
+ value: E,
21671
21671
  onChange: v,
21672
21672
  name: m,
21673
21673
  "data-input-id": y.id || "default-input",
@@ -21940,7 +21940,7 @@ const s6 = G1(
21940
21940
  renderHeader: y,
21941
21941
  renderDay: B
21942
21942
  }) => {
21943
- const R = (Z) => {
21943
+ const E = (Z) => {
21944
21944
  C == null || C(Z);
21945
21945
  }, A = () => {
21946
21946
  switch (l) {
@@ -22015,7 +22015,7 @@ const s6 = G1(
22015
22015
  {
22016
22016
  currentDate: o,
22017
22017
  viewMode: l,
22018
- onNavigate: R,
22018
+ onNavigate: E,
22019
22019
  onToggleViewMode: A,
22020
22020
  onGoToToday: L,
22021
22021
  monthNames: f,
@@ -22055,7 +22055,7 @@ const s6 = G1(
22055
22055
  yearRange: V,
22056
22056
  hoverDate: y,
22057
22057
  closeOnSelect: B,
22058
- autoCloseRange: R,
22058
+ autoCloseRange: E,
22059
22059
  calendarsCount: A = 1,
22060
22060
  mode: S = "single",
22061
22061
  onClickSelected: v = !1,
@@ -22070,9 +22070,9 @@ const s6 = G1(
22070
22070
  }
22071
22071
  return N;
22072
22072
  }), { renderPortal: J } = W5(o, r, t, 1100);
22073
- K(() => {
22073
+ Q(() => {
22074
22074
  M(Array(A).fill(h));
22075
- }, [h, A]), K(() => {
22075
+ }, [h, A]), Q(() => {
22076
22076
  const N = [];
22077
22077
  for (let $ = 0; $ < A; $++) {
22078
22078
  const k = new Date(n);
@@ -22080,7 +22080,7 @@ const s6 = G1(
22080
22080
  }
22081
22081
  z(N);
22082
22082
  }, [n, A]);
22083
- const q = (N) => {
22083
+ const G = (N) => {
22084
22084
  const $ = O[N];
22085
22085
  let k;
22086
22086
  switch ($) {
@@ -22098,7 +22098,7 @@ const s6 = G1(
22098
22098
  }
22099
22099
  const F = [...O];
22100
22100
  F[N] = k, M(F);
22101
- }, E = (N, $) => {
22101
+ }, R = (N, $) => {
22102
22102
  const k = [...I];
22103
22103
  k[N] = new Date(
22104
22104
  I[N].getFullYear(),
@@ -22115,19 +22115,19 @@ const s6 = G1(
22115
22115
  }, n1 = (N) => {
22116
22116
  const $ = [...I];
22117
22117
  $.forEach((k, F) => {
22118
- const i1 = new Date(k);
22118
+ const e1 = new Date(k);
22119
22119
  switch (O[F]) {
22120
22120
  case "days":
22121
- i1.setMonth(i1.getMonth() + (N === "next" ? 1 : -1));
22121
+ e1.setMonth(e1.getMonth() + (N === "next" ? 1 : -1));
22122
22122
  break;
22123
22123
  case "months":
22124
- i1.setFullYear(i1.getFullYear() + (N === "next" ? 1 : -1));
22124
+ e1.setFullYear(e1.getFullYear() + (N === "next" ? 1 : -1));
22125
22125
  break;
22126
22126
  case "years":
22127
- i1.setFullYear(i1.getFullYear() + (N === "next" ? 12 : -12));
22127
+ e1.setFullYear(e1.getFullYear() + (N === "next" ? 12 : -12));
22128
22128
  break;
22129
22129
  }
22130
- $[F] = i1;
22130
+ $[F] = e1;
22131
22131
  }), z($), C(N);
22132
22132
  };
22133
22133
  return J(
@@ -22138,7 +22138,7 @@ const s6 = G1(
22138
22138
  calendarDates: I,
22139
22139
  viewModes: O,
22140
22140
  onNavigate: n1,
22141
- onToggleViewMode: q,
22141
+ onToggleViewMode: G,
22142
22142
  onGoToToday: L,
22143
22143
  monthNames: m,
22144
22144
  yearRange: V,
@@ -22162,7 +22162,7 @@ const s6 = G1(
22162
22162
  showWeekNumbers: j,
22163
22163
  yearRange: V,
22164
22164
  hoverDate: y,
22165
- onMonthSelect: (k) => E($, k),
22165
+ onMonthSelect: (k) => R($, k),
22166
22166
  onYearSelect: (k) => X($, k),
22167
22167
  renderDay: Z
22168
22168
  }
@@ -22195,7 +22195,7 @@ const s6 = G1(
22195
22195
  yearRange: V,
22196
22196
  hoverDate: y,
22197
22197
  closeOnSelect: B,
22198
- autoCloseRange: R,
22198
+ autoCloseRange: E,
22199
22199
  renderHeader: x,
22200
22200
  renderDay: Z
22201
22201
  }
@@ -22239,7 +22239,7 @@ const s6 = G1(
22239
22239
  rangeStartClassName: V = "bg-blue-500 text-white rounded-l-full",
22240
22240
  rangeEndClassName: y = "bg-blue-500 text-white rounded-r-full",
22241
22241
  todayClassName: B = "border border-blue-500",
22242
- showWeekNumbers: R = !1,
22242
+ showWeekNumbers: E = !1,
22243
22243
  yearRange: A = 12,
22244
22244
  initialViewMode: S = "days",
22245
22245
  closeOnSelect: v = !1,
@@ -22249,8 +22249,8 @@ const s6 = G1(
22249
22249
  calendarsCount: M = 1,
22250
22250
  renderHeader: I,
22251
22251
  renderDay: z
22252
- } = o, { state: J, selectedDate: q, selectedRange: E, inputRef: X, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22253
- E,
22252
+ } = o, { state: J, selectedDate: G, selectedRange: R, inputRef: X, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22253
+ R,
22254
22254
  N.setSelectedRange,
22255
22255
  c,
22256
22256
  l,
@@ -22258,25 +22258,25 @@ const s6 = G1(
22258
22258
  ), k = (_) => {
22259
22259
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime()))
22260
22260
  return "";
22261
- const a1 = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0"), Q = _.getFullYear();
22262
- return O.replace("dd", a1).replace("MM", T).replace("yyyy", Q.toString());
22261
+ const u1 = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0"), K = _.getFullYear();
22262
+ return O.replace("dd", u1).replace("MM", T).replace("yyyy", K.toString());
22263
22263
  }, F = (_) => {
22264
22264
  if (!_ || !_.start && !_.end) return "";
22265
- const a1 = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), T = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
22266
- return a1 && T ? `${k(_.start)} - ${k(_.end)}` : a1 ? k(_.start) : T ? k(_.end) : "";
22267
- }, i1 = (_) => {
22265
+ const u1 = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), T = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
22266
+ return u1 && T ? `${k(_.start)} - ${k(_.end)}` : u1 ? k(_.start) : T ? k(_.end) : "";
22267
+ }, e1 = (_) => {
22268
22268
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime())) {
22269
22269
  console.warn("DatePicker: Se recibió una fecha inválida:", _);
22270
22270
  return;
22271
22271
  }
22272
22272
  r === "single" ? N.setSelectedDate(_) : $(_, J.hoverDate, N.closePicker);
22273
- }, u1 = (_) => {
22273
+ }, a1 = (_) => {
22274
22274
  if (_ !== null && (!(_ instanceof Date) || isNaN(_.getTime()))) {
22275
22275
  console.warn("DatePicker: Se recibió una fecha inválida en hover:", _);
22276
22276
  return;
22277
22277
  }
22278
22278
  N.setHoverDate(_);
22279
- }, p1 = () => r === "single" ? k(q) : F(E);
22279
+ }, p1 = () => r === "single" ? k(G) : F(R);
22280
22280
  return /* @__PURE__ */ u("div", { className: `relative ${h}`, children: [
22281
22281
  /* @__PURE__ */ i(
22282
22282
  s6,
@@ -22298,10 +22298,10 @@ const s6 = G1(
22298
22298
  onClose: N.closePicker,
22299
22299
  portalPosition: J.portalPosition,
22300
22300
  currentDate: J.currentDate,
22301
- selectedDate: q,
22302
- selectedRange: E,
22303
- onDateSelect: i1,
22304
- onDateHover: u1,
22301
+ selectedDate: G,
22302
+ selectedRange: R,
22303
+ onDateSelect: e1,
22304
+ onDateHover: a1,
22305
22305
  onViewModeChange: N.setViewMode,
22306
22306
  onNavigate: N.navigate,
22307
22307
  onMonthSelect: N.handleMonthSelect,
@@ -22314,7 +22314,7 @@ const s6 = G1(
22314
22314
  weekDays: C,
22315
22315
  monthNames: p,
22316
22316
  startOfWeek: L,
22317
- showWeekNumbers: R,
22317
+ showWeekNumbers: E,
22318
22318
  yearRange: A,
22319
22319
  hoverDate: J.hoverDate,
22320
22320
  closeOnSelect: v,
@@ -22331,7 +22331,7 @@ const s6 = G1(
22331
22331
  /* @__PURE__ */ i("h2", { className: U("ui-text-2xl ui-font-bold", r), children: o })
22332
22332
  ] }), v9 = (o, r = {}) => {
22333
22333
  const { enterDelay: t = 10, exitDelay: n = 300 } = r, [e, a] = Y(!1), [c, l] = Y(!1);
22334
- return K(() => {
22334
+ return Q(() => {
22335
22335
  if (o) {
22336
22336
  a(!0);
22337
22337
  const s = setTimeout(() => {
@@ -22346,14 +22346,14 @@ const s6 = G1(
22346
22346
  }, [o, t, n]), { isVisible: e, isAnimating: c };
22347
22347
  }, j9 = (o) => {
22348
22348
  const r = typeof window < "u";
22349
- K(() => {
22349
+ Q(() => {
22350
22350
  if (r)
22351
22351
  return o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
22352
22352
  document.body.style.overflow = "";
22353
22353
  };
22354
22354
  }, [o, r]);
22355
22355
  }, J0 = (o, r, t = !1) => {
22356
- K(() => {
22356
+ Q(() => {
22357
22357
  if (!o || t) return;
22358
22358
  const n = (e) => {
22359
22359
  e.key === "Escape" && r();
@@ -22361,7 +22361,7 @@ const s6 = G1(
22361
22361
  return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
22362
22362
  }, [o, r, t]);
22363
22363
  }, V9 = (o, r, t = !1) => {
22364
- K(() => {
22364
+ Q(() => {
22365
22365
  if (!o || t || !r.current) return;
22366
22366
  const n = [
22367
22367
  "button",
@@ -22378,7 +22378,7 @@ const s6 = G1(
22378
22378
  return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
22379
22379
  }, [o, t, r]);
22380
22380
  }, h6 = (o, r) => {
22381
- K(() => {
22381
+ Q(() => {
22382
22382
  o && r.current && requestAnimationFrame(() => {
22383
22383
  var t;
22384
22384
  (t = r.current) == null || t.focus();
@@ -22386,14 +22386,14 @@ const s6 = G1(
22386
22386
  }, [o, r]);
22387
22387
  }, H9 = () => {
22388
22388
  const o = typeof window < "u", [r] = Y(() => o ? document.createElement("div") : null);
22389
- return K(() => {
22389
+ return Q(() => {
22390
22390
  if (!(!r || !o))
22391
22391
  return document.body.appendChild(r), () => {
22392
22392
  document.body.contains(r) && document.body.removeChild(r);
22393
22393
  };
22394
22394
  }, [r, o]), r;
22395
22395
  }, w6 = (o, r, t, n = !1) => {
22396
- K(() => {
22396
+ Q(() => {
22397
22397
  if (!o || n) return;
22398
22398
  const e = (a) => {
22399
22399
  var s;
@@ -22416,16 +22416,16 @@ const s6 = G1(
22416
22416
  onOutsideClick: s,
22417
22417
  disableSameTypeCheck: C = !1
22418
22418
  }) => {
22419
- K(() => {
22419
+ Q(() => {
22420
22420
  if (!o || r || !c) return;
22421
22421
  const p = (L) => {
22422
22422
  var V, y;
22423
22423
  const h = L.target, w = (V = t.current) == null ? void 0 : V.contains(h), f = (y = n == null ? void 0 : n.current) == null ? void 0 : y.contains(h), g = e ? h.closest(`[data-${a}-id="${e}"]`) : !1, b = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, m = l.some((B) => h.closest(B)), j = (() => {
22424
22424
  let B = h;
22425
22425
  for (; B && B !== document.body; ) {
22426
- const R = B.attributes;
22427
- for (let S = 0; S < R.length; S++) {
22428
- const v = R[S];
22426
+ const E = B.attributes;
22427
+ for (let S = 0; S < E.length; S++) {
22428
+ const v = E[S];
22429
22429
  if (v.name.startsWith("data-") && v.name.endsWith("-id")) {
22430
22430
  if (a === "dropdown" && (v.name.includes("popup") || v.name.includes("dropdown")))
22431
22431
  continue;
@@ -22499,7 +22499,7 @@ const s6 = G1(
22499
22499
  disabledSuccessButton: j = !1,
22500
22500
  disabledCancelButton: V = !1
22501
22501
  }) => {
22502
- const y = H9(), { isVisible: B, isAnimating: R } = v9(o), A = o1(null);
22502
+ const y = H9(), { isVisible: B, isAnimating: E } = v9(o), A = o1(null);
22503
22503
  j9(o), J0(o, r, l), V9(o, A, !s);
22504
22504
  const S = () => {
22505
22505
  w && w(), H && r();
@@ -22536,7 +22536,7 @@ const s6 = G1(
22536
22536
  C === "right" ? "ui-ml-auto" : "ui-mr-auto"
22537
22537
  ),
22538
22538
  style: {
22539
- transform: C === "right" ? R ? "translateX(0)" : "translateX(100%)" : R ? "translateX(0)" : "translateX(-100%)"
22539
+ transform: C === "right" ? E ? "translateX(0)" : "translateX(100%)" : E ? "translateX(0)" : "translateX(-100%)"
22540
22540
  },
22541
22541
  children: /* @__PURE__ */ u(m1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
22542
22542
  /* @__PURE__ */ i(m1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: t && /* @__PURE__ */ i(b9, { title: t, icon: a }) }) }),
@@ -22784,41 +22784,41 @@ const s6 = G1(
22784
22784
  onOpenChange: w,
22785
22785
  withCheckbox: f = !1
22786
22786
  }) => {
22787
- const g = t9(), b = C || `dropdown-${g}`, [m, H] = Y(!1), [j, V] = Y(!1), [y, B] = Y(""), [R, A] = Y("bottom"), [S, v] = Y({}), x = o1(null), Z = o1(null), O = o1(null), M = P(
22787
+ const g = t9(), b = C || `dropdown-${g}`, [m, H] = Y(!1), [j, V] = Y(!1), [y, B] = Y(""), [E, A] = Y("bottom"), [S, v] = Y({}), x = o1(null), Z = o1(null), O = o1(null), M = P(
22788
22788
  (T) => T == null ? [] : Array.isArray(T) ? T : [T],
22789
22789
  []
22790
22790
  ), I = P(
22791
22791
  (T) => T == null || T === "" ? "" : Array.isArray(T) ? T[0] || "" : T,
22792
22792
  []
22793
- ), [z, J] = Y(() => d ? M(r) : I(r)), q = o !== void 0, E = q ? o : z, X = P(
22793
+ ), [z, J] = Y(() => d ? M(r) : I(r)), G = o !== void 0, R = G ? o : z, X = P(
22794
22794
  (T) => {
22795
- q || J(T), a == null || a(T);
22795
+ G || J(T), a == null || a(T);
22796
22796
  },
22797
- [q, a]
22797
+ [G, a]
22798
22798
  );
22799
- K(() => {
22800
- if (q && o !== void 0)
22799
+ Q(() => {
22800
+ if (G && o !== void 0)
22801
22801
  if (d) {
22802
22802
  const T = M(o);
22803
- J((Q) => JSON.stringify(Q) !== JSON.stringify(T) ? T : Q);
22803
+ J((K) => JSON.stringify(K) !== JSON.stringify(T) ? T : K);
22804
22804
  } else {
22805
22805
  const T = I(o);
22806
- J((Q) => Q !== T ? T : Q);
22806
+ J((K) => K !== T ? T : K);
22807
22807
  }
22808
- }, [o, q, d, M, I]);
22809
- const n1 = d ? t.filter((T) => M(E).includes(T[e])) : [
22810
- t.find((T) => E === "" || E === null || E === void 0 ? !1 : T[e] === -1 ? E === -1 || E === "-1" : T[e] === E)
22808
+ }, [o, G, d, M, I]);
22809
+ const n1 = d ? t.filter((T) => M(R).includes(T[e])) : [
22810
+ t.find((T) => R === "" || R === null || R === void 0 ? !1 : T[e] === -1 ? R === -1 || R === "-1" : T[e] === R)
22811
22811
  ].filter(Boolean), N = (() => {
22812
22812
  if (!l || !y)
22813
22813
  return t.filter((l1) => {
22814
22814
  if (d) {
22815
- const d1 = M(E).includes(l1[e]);
22815
+ const d1 = M(R).includes(l1[e]);
22816
22816
  return f ? !0 : !d1;
22817
22817
  }
22818
- return !(l1[e] === -1 && (E === -1 || E === "-1"));
22818
+ return !(l1[e] === -1 && (R === -1 || R === "-1"));
22819
22819
  });
22820
- const T = y.toLowerCase(), Q = t.filter((l1) => l1.isGroupTitle ? !1 : l1[n].toLowerCase().includes(T)), e1 = [], W = /* @__PURE__ */ new Set();
22821
- return Q.forEach((l1) => {
22820
+ const T = y.toLowerCase(), K = t.filter((l1) => l1.isGroupTitle ? !1 : l1[n].toLowerCase().includes(T)), i1 = [], W = /* @__PURE__ */ new Set();
22821
+ return K.forEach((l1) => {
22822
22822
  const d1 = t.indexOf(l1);
22823
22823
  let r1 = null;
22824
22824
  for (let s1 = d1 - 1; s1 >= 0; s1--)
@@ -22826,11 +22826,11 @@ const s6 = G1(
22826
22826
  r1 = t[s1];
22827
22827
  break;
22828
22828
  }
22829
- r1 && !W.has(r1[e]) && (e1.push(r1), W.add(r1[e])), e1.push(l1);
22830
- }), e1;
22829
+ r1 && !W.has(r1[e]) && (i1.push(r1), W.add(r1[e])), i1.push(l1);
22830
+ }), i1;
22831
22831
  })(), $ = P(() => {
22832
- var e1, W;
22833
- const T = (e1 = O.current) == null ? void 0 : e1.querySelector("input");
22832
+ var i1, W;
22833
+ const T = (i1 = O.current) == null ? void 0 : i1.querySelector("input");
22834
22834
  return T || ((W = O.current) == null ? void 0 : W.querySelector(
22835
22835
  '[data-dropdown-input="true"]'
22836
22836
  ));
@@ -22838,19 +22838,19 @@ const s6 = G1(
22838
22838
  const T = $();
22839
22839
  T && requestAnimationFrame(() => {
22840
22840
  var z1;
22841
- const Q = T.getBoundingClientRect(), e1 = window.innerHeight;
22841
+ const K = T.getBoundingClientRect(), i1 = window.innerHeight;
22842
22842
  let W = 0;
22843
22843
  Z.current && (W = Z.current.offsetHeight), W === 0 && (W = Math.min(200, N.length * 40));
22844
- const l1 = e1 - Q.bottom, d1 = Q.top, r1 = l1 < W && d1 > l1 ? "top" : "bottom";
22844
+ const l1 = i1 - K.bottom, d1 = K.top, r1 = l1 < W && d1 > l1 ? "top" : "bottom";
22845
22845
  A(r1);
22846
- let s1 = 0, B1 = 0, k1 = Q.width;
22846
+ let s1 = 0, B1 = 0, k1 = K.width;
22847
22847
  if (!h)
22848
- r1 === "bottom" ? s1 = Q.bottom + 4 : s1 = Q.top - W - 4, B1 = Q.left;
22848
+ r1 === "bottom" ? s1 = K.bottom + 4 : s1 = K.top - W - 4, B1 = K.left;
22849
22849
  else {
22850
22850
  const f1 = (z1 = O.current) == null ? void 0 : z1.getBoundingClientRect();
22851
22851
  if (!f1) return;
22852
- const T1 = Q.top - f1.top, H1 = Q.left - f1.left;
22853
- r1 === "bottom" ? s1 = T1 + Q.height + 4 : s1 = T1 - W - 4, B1 = H1;
22852
+ const T1 = K.top - f1.top, H1 = K.left - f1.left;
22853
+ r1 === "bottom" ? s1 = T1 + K.height + 4 : s1 = T1 - W - 4, B1 = H1;
22854
22854
  }
22855
22855
  const V1 = 1100, I1 = parseInt(b.replace(/\D/g, "")) || 0, P1 = V1 + I1 % 100, X1 = {
22856
22856
  position: h ? "absolute" : "fixed",
@@ -22864,53 +22864,53 @@ const s6 = G1(
22864
22864
  }, [$, N.length, b, h]), F = P(() => {
22865
22865
  if (!Z.current || !n1.length)
22866
22866
  return;
22867
- const Q = Z.current.querySelector(".ui-overflow-y-auto");
22868
- if (!Q)
22867
+ const K = Z.current.querySelector(".ui-overflow-y-auto");
22868
+ if (!K)
22869
22869
  return;
22870
- const e1 = n1[0];
22871
- if (!e1) return;
22872
- const W = Q.querySelector(
22873
- `[data-option-value="${e1[e]}"]`
22870
+ const i1 = n1[0];
22871
+ if (!i1) return;
22872
+ const W = K.querySelector(
22873
+ `[data-option-value="${i1[e]}"]`
22874
22874
  );
22875
22875
  if (!W)
22876
22876
  return;
22877
- const l1 = Q.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22878
- Q.scrollTo({
22877
+ const l1 = K.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22878
+ K.scrollTo({
22879
22879
  top: Math.max(0, s1),
22880
22880
  behavior: "smooth"
22881
22881
  });
22882
- }, [n1, n]), i1 = (T) => {
22883
- T && T.stopPropagation(), !p && (m ? u1() : (f6(b), B(""), V(!1), k(), setTimeout(() => {
22882
+ }, [n1, n]), e1 = (T) => {
22883
+ T && T.stopPropagation(), !p && (m ? a1() : (f6(b), B(""), V(!1), k(), setTimeout(() => {
22884
22884
  H(!0), n0.add(b), setTimeout(() => {
22885
22885
  k(), setTimeout(() => {
22886
22886
  F();
22887
22887
  }, 50);
22888
22888
  }, 50);
22889
22889
  }, 50)));
22890
- }, u1 = () => {
22890
+ }, a1 = () => {
22891
22891
  V(!0), setTimeout(() => {
22892
22892
  H(!1), V(!1), n0.delete(b);
22893
22893
  }, 150);
22894
- }, p1 = (T, Q) => {
22895
- if (Q.stopPropagation(), !T.disabled) {
22894
+ }, p1 = (T, K) => {
22895
+ if (K.stopPropagation(), !T.disabled) {
22896
22896
  if (d) {
22897
- const e1 = M(E), W = T[e];
22898
- if (L && e1.length >= L && !e1.includes(W))
22897
+ const i1 = M(R), W = T[e];
22898
+ if (L && i1.length >= L && !i1.includes(W))
22899
22899
  return;
22900
- const l1 = e1.includes(W) ? e1.filter((d1) => d1 !== W) : [...e1, W];
22900
+ const l1 = i1.includes(W) ? i1.filter((d1) => d1 !== W) : [...i1, W];
22901
22901
  X(l1);
22902
22902
  } else {
22903
- const e1 = T[e] === -1 ? -1 : T[e];
22904
- X(e1), B(""), u1();
22903
+ const i1 = T[e] === -1 ? -1 : T[e];
22904
+ X(i1), B(""), a1();
22905
22905
  }
22906
22906
  c == null || c(T);
22907
22907
  }
22908
22908
  }, _ = (T) => {
22909
22909
  B(T.target.value);
22910
- }, a1 = (T) => {
22910
+ }, u1 = (T) => {
22911
22911
  T.stopPropagation(), X(d ? [] : ""), B("");
22912
22912
  };
22913
- return K(() => {
22913
+ return Q(() => {
22914
22914
  w == null || w(m);
22915
22915
  }, [m, w]), y9({
22916
22916
  isActive: m,
@@ -22926,25 +22926,25 @@ const s6 = G1(
22926
22926
  // Deshabilitar isInsideSameType cuando absolute=true
22927
22927
  onOutsideClick: () => {
22928
22928
  setTimeout(() => {
22929
- u1();
22929
+ a1();
22930
22930
  }, 0);
22931
22931
  }
22932
- }), K(() => {
22932
+ }), Q(() => {
22933
22933
  const T = () => {
22934
- m && u1();
22934
+ m && a1();
22935
22935
  };
22936
22936
  return document.addEventListener("close-all-dropdowns", T), () => {
22937
22937
  document.removeEventListener("close-all-dropdowns", T);
22938
22938
  };
22939
- }, [m, u1]), K(() => {
22939
+ }, [m, a1]), Q(() => {
22940
22940
  if (m) {
22941
22941
  const T = () => {
22942
22942
  k();
22943
- }, Q = () => {
22943
+ }, K = () => {
22944
22944
  m && !j && k();
22945
22945
  };
22946
- return window.addEventListener("resize", T), window.addEventListener("scroll", Q, !1), document.addEventListener("scroll", Q, !1), () => {
22947
- window.removeEventListener("resize", T), window.removeEventListener("scroll", Q, !1), document.removeEventListener("scroll", Q, !1);
22946
+ return window.addEventListener("resize", T), window.addEventListener("scroll", K, !1), document.addEventListener("scroll", K, !1), () => {
22947
+ window.removeEventListener("resize", T), window.removeEventListener("scroll", K, !1), document.removeEventListener("scroll", K, !1);
22948
22948
  };
22949
22949
  }
22950
22950
  }, [m, k, j]), {
@@ -22952,12 +22952,12 @@ const s6 = G1(
22952
22952
  isOpen: m,
22953
22953
  isClosing: j,
22954
22954
  searchValue: y,
22955
- selectedValue: E,
22955
+ selectedValue: R,
22956
22956
  selectedOptions: n1,
22957
22957
  filteredOptions: N,
22958
- position: R,
22958
+ position: E,
22959
22959
  dropdownStyle: S,
22960
- isControlled: q,
22960
+ isControlled: G,
22961
22961
  multiple: d,
22962
22962
  // Referencias
22963
22963
  inputRef: x,
@@ -22965,11 +22965,11 @@ const s6 = G1(
22965
22965
  containerRef: O,
22966
22966
  dropdownUniqueId: b,
22967
22967
  // Funciones
22968
- toggleDropdown: i1,
22969
- closeDropdown: u1,
22968
+ toggleDropdown: e1,
22969
+ closeDropdown: a1,
22970
22970
  handleOptionSelect: p1,
22971
22971
  handleSearchChange: _,
22972
- handleClear: a1,
22972
+ handleClear: u1,
22973
22973
  calculatePosition: k,
22974
22974
  setValue: X,
22975
22975
  scrollToSelectedOption: F,
@@ -23022,7 +23022,7 @@ const s6 = G1(
23022
23022
  idName: w
23023
23023
  }) => {
23024
23024
  const [f, g] = Y(!1), [b, m] = Y(null), H = o1(null);
23025
- return K(() => {
23025
+ return Q(() => {
23026
23026
  if (!H.current || t.length === 0) {
23027
23027
  g(!1), m(null);
23028
23028
  return;
@@ -23030,9 +23030,9 @@ const s6 = G1(
23030
23030
  const V = setTimeout(() => {
23031
23031
  const y = H.current;
23032
23032
  if (y) {
23033
- const B = y.scrollHeight, R = y.clientHeight;
23033
+ const B = y.scrollHeight, E = y.clientHeight;
23034
23034
  if (b === null) {
23035
- m(R);
23035
+ m(E);
23036
23036
  return;
23037
23037
  }
23038
23038
  const A = B > b;
@@ -23122,7 +23122,7 @@ const s6 = G1(
23122
23122
  onCheckboxChange: V,
23123
23123
  searchable: y = !1,
23124
23124
  maxHeight: B = "200px",
23125
- closeOnClickOutside: R = !0,
23125
+ closeOnClickOutside: E = !0,
23126
23126
  dropdownId: A,
23127
23127
  multiple: S = !1,
23128
23128
  maxSelectedItems: v,
@@ -23133,8 +23133,8 @@ const s6 = G1(
23133
23133
  withCheckbox: I = !1,
23134
23134
  onHandleAccept: z,
23135
23135
  ...J
23136
- }, q) => {
23137
- const E = o1(null), [X, n1] = Y(c), [N, $] = Y(null), [k, F] = Y(!1), p1 = S ? g : !S && M ? [
23136
+ }, G) => {
23137
+ const R = o1(null), [X, n1] = Y(c), [N, $] = Y(null), [k, F] = Y(!1), p1 = S ? g : !S && M ? [
23138
23138
  {
23139
23139
  ...{
23140
23140
  label: f || "Selecciona una opción",
@@ -23148,10 +23148,10 @@ const s6 = G1(
23148
23148
  ...g.filter((D) => D[m] !== -1)
23149
23149
  ] : g, _ = L !== void 0 ? L : M && !S ? -1 : h, {
23150
23150
  // Estado
23151
- isOpen: a1,
23151
+ isOpen: u1,
23152
23152
  isClosing: T,
23153
- searchValue: Q,
23154
- selectedValue: e1,
23153
+ searchValue: K,
23154
+ selectedValue: i1,
23155
23155
  selectedOptions: W,
23156
23156
  filteredOptions: l1,
23157
23157
  dropdownStyle: d1,
@@ -23180,7 +23180,7 @@ const s6 = G1(
23180
23180
  onValueChange: H,
23181
23181
  onOptionSelect: j,
23182
23182
  searchable: y,
23183
- closeOnClickOutside: R,
23183
+ closeOnClickOutside: E,
23184
23184
  dropdownId: A,
23185
23185
  disabled: w,
23186
23186
  multiple: S,
@@ -23194,19 +23194,19 @@ const s6 = G1(
23194
23194
  }
23195
23195
  }), A1 = (D, c1) => {
23196
23196
  if (S) {
23197
- const L1 = W0(e1), G = D[m];
23197
+ const L1 = W0(i1), q = D[m];
23198
23198
  if (c1) {
23199
- if (!L1.includes(G)) {
23200
- const h1 = [...L1, G];
23199
+ if (!L1.includes(q)) {
23200
+ const h1 = [...L1, q];
23201
23201
  H1(h1);
23202
23202
  }
23203
23203
  } else {
23204
- const h1 = L1.filter((y1) => y1 !== G);
23204
+ const h1 = L1.filter((y1) => y1 !== q);
23205
23205
  H1(h1);
23206
23206
  }
23207
23207
  }
23208
23208
  };
23209
- K(() => {
23209
+ Q(() => {
23210
23210
  if (r1 && L !== void 0)
23211
23211
  if (L === "" || L === -1 || L === "-1")
23212
23212
  n1((D) => D !== c ? c : D), $((D) => D !== null ? null : D);
@@ -23216,23 +23216,23 @@ const s6 = G1(
23216
23216
  );
23217
23217
  if (D) {
23218
23218
  const c1 = D.icon || c, L1 = D.iconColor || null;
23219
- n1((G) => G !== c1 ? c1 : G), $((G) => G !== L1 ? L1 : G);
23219
+ n1((q) => q !== c1 ? c1 : q), $((q) => q !== L1 ? L1 : q);
23220
23220
  }
23221
23221
  }
23222
23222
  }, [L, r1, p1, b, m, c]), o0(
23223
- q,
23223
+ G,
23224
23224
  () => ({
23225
- getValue: () => e1,
23225
+ getValue: () => i1,
23226
23226
  setValue: (D) => {
23227
23227
  r1 || H1(D), H == null || H(D);
23228
23228
  },
23229
23229
  focus: () => {
23230
23230
  var D, c1;
23231
- S && x === "tags" ? (D = E.current) == null || D.focus() : (c1 = s1.current) == null || c1.focus();
23231
+ S && x === "tags" ? (D = R.current) == null || D.focus() : (c1 = s1.current) == null || c1.focus();
23232
23232
  },
23233
23233
  blur: () => {
23234
23234
  var D, c1;
23235
- S && x === "tags" ? (D = E.current) == null || D.blur() : (c1 = s1.current) == null || c1.blur();
23235
+ S && x === "tags" ? (D = R.current) == null || D.blur() : (c1 = s1.current) == null || c1.blur();
23236
23236
  },
23237
23237
  clear: () => {
23238
23238
  r1 || H1(S ? [] : ""), H == null || H(S ? [] : "");
@@ -23247,7 +23247,7 @@ const s6 = G1(
23247
23247
  }
23248
23248
  }),
23249
23249
  [
23250
- e1,
23250
+ i1,
23251
23251
  r1,
23252
23252
  w,
23253
23253
  f1,
@@ -23258,16 +23258,16 @@ const s6 = G1(
23258
23258
  I1,
23259
23259
  x
23260
23260
  ]
23261
- ), K(() => {
23262
- if (a1 && W.length > 0) {
23261
+ ), Q(() => {
23262
+ if (u1 && W.length > 0) {
23263
23263
  const D = setTimeout(() => {
23264
23264
  T1();
23265
23265
  }, 150);
23266
23266
  return () => clearTimeout(D);
23267
23267
  }
23268
- }, [a1, W, T1]), K(() => {
23269
- if (a1 && S && x === "tags") {
23270
- const D = E.current;
23268
+ }, [u1, W, T1]), Q(() => {
23269
+ if (u1 && S && x === "tags") {
23270
+ const D = R.current;
23271
23271
  if (!D) return;
23272
23272
  const c1 = new ResizeObserver(() => {
23273
23273
  setTimeout(() => {
@@ -23278,20 +23278,20 @@ const s6 = G1(
23278
23278
  c1.disconnect();
23279
23279
  };
23280
23280
  }
23281
- }, [a1, S, x, f1]), K(() => {
23282
- if (a1 && S && x === "tags") {
23281
+ }, [u1, S, x, f1]), Q(() => {
23282
+ if (u1 && S && x === "tags") {
23283
23283
  const D = setTimeout(() => {
23284
23284
  f1();
23285
23285
  }, 100);
23286
23286
  return () => clearTimeout(D);
23287
23287
  }
23288
- }, [W, a1, S, x, f1]);
23288
+ }, [W, u1, S, x, f1]);
23289
23289
  const n9 = (D) => {
23290
23290
  if (S) {
23291
- const L1 = W0(e1).filter((G) => G !== D);
23291
+ const L1 = W0(i1).filter((q) => q !== D);
23292
23292
  if (H1(L1), I && A1) {
23293
- const G = g.find((h1) => h1[m] === D);
23294
- G && A1(G, !1);
23293
+ const q = g.find((h1) => h1[m] === D);
23294
+ q && A1(q, !1);
23295
23295
  }
23296
23296
  }
23297
23297
  }, $9 = () => {
@@ -23311,9 +23311,9 @@ const s6 = G1(
23311
23311
  return D ? D[m] === -1 || D[b] === -1 || D[b] === "-1" ? f : D[b] || "" : "";
23312
23312
  }
23313
23313
  }, P9 = () => {
23314
- if (!a1 || !d1.top) return null;
23315
- const D = T ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (G, h1) => {
23316
- Q0(G, h1), G.icon && n1(G.icon), G.iconColor && $(G.iconColor);
23314
+ if (!u1 || !d1.top) return null;
23315
+ const D = T ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (q, h1) => {
23316
+ Q0(q, h1), q.icon && n1(q.icon), q.iconColor && $(q.iconColor);
23317
23317
  }, L1 = /* @__PURE__ */ u(
23318
23318
  "div",
23319
23319
  {
@@ -23328,12 +23328,12 @@ const s6 = G1(
23328
23328
  zIndex: d1.zIndex
23329
23329
  },
23330
23330
  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 ${D}`,
23331
- onClick: (G) => G.stopPropagation(),
23331
+ onClick: (q) => q.stopPropagation(),
23332
23332
  children: [
23333
- /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (G) => G.stopPropagation(), children: /* @__PURE__ */ i(
23333
+ /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (q) => q.stopPropagation(), children: /* @__PURE__ */ i(
23334
23334
  N1,
23335
23335
  {
23336
- value: Q,
23336
+ value: K,
23337
23337
  onChange: X1,
23338
23338
  placeholder: s,
23339
23339
  leftSlot: "SearchOutlined",
@@ -23343,47 +23343,47 @@ const s6 = G1(
23343
23343
  }
23344
23344
  ) }) }),
23345
23345
  y && /* @__PURE__ */ i(U1, {}),
23346
- /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: l1.length > 0 ? l1.map((G) => {
23346
+ /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: l1.length > 0 ? l1.map((q) => {
23347
23347
  const h1 = S ? W.some(
23348
- (y1) => y1 && y1[m] === G[m]
23349
- ) : G[m] === -1 && (e1 === -1 || e1 === "-1") || G[m] === e1;
23348
+ (y1) => y1 && y1[m] === q[m]
23349
+ ) : q[m] === -1 && (i1 === -1 || i1 === "-1") || q[m] === i1;
23350
23350
  return I ? /* @__PURE__ */ i(
23351
23351
  k9,
23352
23352
  {
23353
- disabled: G.disabled,
23353
+ disabled: q.disabled,
23354
23354
  current: h1 ? "blue" : !1,
23355
- "data-option-value": G[m],
23356
- icon: G.icon,
23357
- iconColor: G.iconColor,
23355
+ "data-option-value": q[m],
23356
+ icon: q.icon,
23357
+ iconColor: q.iconColor,
23358
23358
  checkboxProps: {
23359
23359
  checked: h1,
23360
- onChange: (y1) => A1 == null ? void 0 : A1(G, y1),
23361
- disabled: G.disabled
23360
+ onChange: (y1) => A1 == null ? void 0 : A1(q, y1),
23361
+ disabled: q.disabled
23362
23362
  },
23363
- isGroupTitle: G.isGroupTitle,
23364
- groupTitle: G.label,
23365
- children: G[b]
23363
+ isGroupTitle: q.isGroupTitle,
23364
+ groupTitle: q.label,
23365
+ children: q[b]
23366
23366
  },
23367
- G[m] || G[b]
23367
+ q[m] || q[b]
23368
23368
  ) : /* @__PURE__ */ i(
23369
23369
  O9,
23370
23370
  {
23371
- onClick: (y1) => c1(G, y1),
23372
- disabled: G.disabled,
23371
+ onClick: (y1) => c1(q, y1),
23372
+ disabled: q.disabled,
23373
23373
  current: h1 ? "blue" : !1,
23374
- "data-option-value": G[m],
23375
- icon: G.icon,
23376
- iconColor: G.iconColor,
23377
- children: G[b]
23374
+ "data-option-value": q[m],
23375
+ icon: q.icon,
23376
+ iconColor: q.iconColor,
23377
+ children: q[b]
23378
23378
  },
23379
- G[m] || G[b]
23379
+ q[m] || q[b]
23380
23380
  );
23381
- }) : Q ? /* @__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: [
23381
+ }) : K ? /* @__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: [
23382
23382
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(j1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
23383
23383
  /* @__PURE__ */ u("p", { className: "ui-font-semibold ui-text-neutral-800", children: [
23384
23384
  C,
23385
23385
  ' "',
23386
- Q,
23386
+ K,
23387
23387
  '"'
23388
23388
  ] }),
23389
23389
  /* @__PURE__ */ i("p", { className: "ui-mt-2 ui-text-xs ui-text-neutral-500", children: p })
@@ -23411,7 +23411,7 @@ const s6 = G1(
23411
23411
  );
23412
23412
  return Z ? L1 : D1(L1, document.body);
23413
23413
  };
23414
- return K(() => {
23414
+ return Q(() => {
23415
23415
  c && n1(c);
23416
23416
  }, [c]), /* @__PURE__ */ u(
23417
23417
  "div",
@@ -23428,10 +23428,10 @@ const s6 = G1(
23428
23428
  selectedOptions: W,
23429
23429
  handleRemoveSelected: n9,
23430
23430
  toggleDropdown: I1,
23431
- isOpen: a1,
23431
+ isOpen: u1,
23432
23432
  isOpening: k,
23433
23433
  setIsOpening: F,
23434
- customInputRef: E,
23434
+ customInputRef: R,
23435
23435
  disabled: w,
23436
23436
  error: t,
23437
23437
  helperText: n || "",
@@ -23461,7 +23461,7 @@ const s6 = G1(
23461
23461
  readOnly: !0,
23462
23462
  onClick: (D) => I1(D),
23463
23463
  onClickExtraSlot: () => I1(),
23464
- extraSlot: a1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23464
+ extraSlot: u1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23465
23465
  name: o,
23466
23466
  autosize: !0,
23467
23467
  ...J
@@ -23487,7 +23487,7 @@ const s6 = G1(
23487
23487
  F1.displayName = "Dropdown";
23488
23488
  const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23489
23489
  const [n, e] = Y(!1), [a, c] = Y(() => (t || "").length);
23490
- return K(() => {
23490
+ return Q(() => {
23491
23491
  const C = (t || "").length;
23492
23492
  c((p) => p !== C ? C : p);
23493
23493
  }, [t]), { isFocused: n, setIsFocused: e, count: a, handleChange: (C) => {
@@ -23615,56 +23615,56 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23615
23615
  absolute: s = !1
23616
23616
  }) => {
23617
23617
  const C = t9(), p = e || `popup-${C}`, [d, L] = Y(!1), [h, w] = Y({}), [f, g] = Y(!1), b = o1(null), m = o1(null), H = o1(null), j = P(() => {
23618
- const B = b.current, R = m.current;
23619
- if (!B || !R) return;
23620
- const A = B.getBoundingClientRect(), S = R.getBoundingClientRect();
23618
+ const B = b.current, E = m.current;
23619
+ if (!B || !E) return;
23620
+ const A = B.getBoundingClientRect(), S = E.getBoundingClientRect();
23621
23621
  if (S.width === 0 || S.height === 0)
23622
23622
  return;
23623
23623
  let v = 0, x = 0;
23624
23624
  if (s) {
23625
- const z = B.offsetTop, J = B.offsetLeft, q = B.offsetWidth, E = B.offsetHeight;
23625
+ const z = B.offsetTop, J = B.offsetLeft, G = B.offsetWidth, R = B.offsetHeight;
23626
23626
  switch (o) {
23627
23627
  case "top":
23628
- v = z - S.height - r, x = J + (q - S.width) / 2;
23628
+ v = z - S.height - r, x = J + (G - S.width) / 2;
23629
23629
  break;
23630
23630
  case "bottom":
23631
23631
  case "bottom-center":
23632
- v = z + E + r, x = J + (q - S.width) / 2;
23632
+ v = z + R + r, x = J + (G - S.width) / 2;
23633
23633
  break;
23634
23634
  case "bottom-left":
23635
- v = z + E + r, x = J;
23635
+ v = z + R + r, x = J;
23636
23636
  break;
23637
23637
  case "bottom-right":
23638
- v = z + E + r, x = J + q - S.width;
23638
+ v = z + R + r, x = J + G - S.width;
23639
23639
  break;
23640
23640
  case "left":
23641
23641
  v = z, x = J - S.width - r;
23642
23642
  break;
23643
23643
  case "right":
23644
- v = z, x = J + q + r;
23644
+ v = z, x = J + G + r;
23645
23645
  break;
23646
23646
  }
23647
23647
  } else {
23648
- const z = window.innerWidth, J = window.innerHeight, q = A.top, E = A.left, X = A.width, n1 = A.height;
23648
+ const z = window.innerWidth, J = window.innerHeight, G = A.top, R = A.left, X = A.width, n1 = A.height;
23649
23649
  switch (o) {
23650
23650
  case "top":
23651
- v = q - S.height - r, x = E + (X - S.width) / 2;
23651
+ v = G - S.height - r, x = R + (X - S.width) / 2;
23652
23652
  break;
23653
23653
  case "bottom":
23654
23654
  case "bottom-center":
23655
- v = q + n1 + r, x = E + (X - S.width) / 2;
23655
+ v = G + n1 + r, x = R + (X - S.width) / 2;
23656
23656
  break;
23657
23657
  case "bottom-left":
23658
- v = q + n1 + r, x = E;
23658
+ v = G + n1 + r, x = R;
23659
23659
  break;
23660
23660
  case "bottom-right":
23661
- v = q + n1 + r, x = E + X - S.width;
23661
+ v = G + n1 + r, x = R + X - S.width;
23662
23662
  break;
23663
23663
  case "left":
23664
- v = q, x = E - S.width - r;
23664
+ v = G, x = R - S.width - r;
23665
23665
  break;
23666
23666
  case "right":
23667
- v = q, x = E + X + r;
23667
+ v = G, x = R + X + r;
23668
23668
  break;
23669
23669
  }
23670
23670
  x < 0 && (x = 0), x + S.width > z && (x = z - S.width), v < 0 && (v = 0), v + S.height > J && (v = J - S.height), o === "bottom-right" && S.width > A.width && (x = A.right - S.width, x < 0 && (x = 0));
@@ -23681,12 +23681,12 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23681
23681
  }, y = () => {
23682
23682
  L(!1), g(!1), e0.delete(p), c == null || c();
23683
23683
  };
23684
- return K(() => {
23684
+ return Q(() => {
23685
23685
  if (d) {
23686
23686
  const B = () => {
23687
- const R = m.current;
23688
- if (R) {
23689
- const A = R.getBoundingClientRect();
23687
+ const E = m.current;
23688
+ if (E) {
23689
+ const A = E.getBoundingClientRect();
23690
23690
  A.width > 0 && A.height > 0 && A.width !== 0 && A.height !== 0 ? j() : setTimeout(() => {
23691
23691
  requestAnimationFrame(B);
23692
23692
  }, 10);
@@ -23696,16 +23696,16 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23696
23696
  requestAnimationFrame(B);
23697
23697
  }, 0);
23698
23698
  }
23699
- }, [d, j]), K(() => {
23699
+ }, [d, j]), Q(() => {
23700
23700
  if (!d || !f || s) return;
23701
23701
  let B = !1;
23702
- const R = () => {
23702
+ const E = () => {
23703
23703
  B || (requestAnimationFrame(() => {
23704
23704
  j(), B = !1;
23705
23705
  }), B = !0);
23706
23706
  };
23707
- return window.addEventListener("scroll", R, { passive: !0 }), window.addEventListener("resize", R, { passive: !0 }), () => {
23708
- window.removeEventListener("scroll", R), window.removeEventListener("resize", R);
23707
+ return window.addEventListener("scroll", E, { passive: !0 }), window.addEventListener("resize", E, { passive: !0 }), () => {
23708
+ window.removeEventListener("scroll", E), window.removeEventListener("resize", E);
23709
23709
  };
23710
23710
  }, [d, f, s, j]), y9({
23711
23711
  isActive: d,
@@ -23760,7 +23760,7 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23760
23760
  tooltip: V,
23761
23761
  tooltipPosition: y,
23762
23762
  tooltipAlignment: B,
23763
- tooltipColor: R,
23763
+ tooltipColor: E,
23764
23764
  tooltipDelay: A,
23765
23765
  absolute: S = !1,
23766
23766
  closeOnClick: v = !0,
@@ -23768,18 +23768,19 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23768
23768
  containerClassName: Z,
23769
23769
  buttonTransition: O = !0,
23770
23770
  buttonStyle: M,
23771
- ...I
23772
- }, z) => {
23771
+ stopPropagationList: I = !1,
23772
+ ...z
23773
+ }, J) => {
23773
23774
  const {
23774
- isOpen: J,
23775
- popupStyle: q,
23776
- isPositioned: E,
23777
- triggerRef: X,
23778
- popupRef: n1,
23779
- containerRef: N,
23780
- popupUniqueId: $,
23781
- togglePopup: k,
23782
- closePopup: F
23775
+ isOpen: G,
23776
+ popupStyle: R,
23777
+ isPositioned: X,
23778
+ triggerRef: n1,
23779
+ popupRef: N,
23780
+ containerRef: $,
23781
+ popupUniqueId: k,
23782
+ togglePopup: F,
23783
+ closePopup: e1
23783
23784
  } = j6({
23784
23785
  position: t,
23785
23786
  offset: n,
@@ -23792,58 +23793,58 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23792
23793
  absolute: S
23793
23794
  });
23794
23795
  o0(
23795
- z,
23796
+ J,
23796
23797
  () => ({
23797
23798
  open: () => {
23798
- p || k();
23799
+ p || F();
23799
23800
  },
23800
23801
  close: () => {
23801
- F();
23802
+ e1();
23802
23803
  },
23803
- isOpen: () => J
23804
+ isOpen: () => G
23804
23805
  }),
23805
- [p, k, F, J]
23806
+ [p, F, e1, G]
23806
23807
  );
23807
- const i1 = () => {
23808
- if (!J)
23808
+ const a1 = () => {
23809
+ if (!G)
23809
23810
  return null;
23810
- const u1 = {
23811
+ const p1 = {
23811
23812
  position: S ? "absolute" : "fixed",
23812
23813
  top: S ? "auto" : "-9999px",
23813
23814
  left: S ? "auto" : "-9999px",
23814
- visibility: E ? "visible" : "hidden",
23815
- opacity: E ? 1 : 0,
23815
+ visibility: X ? "visible" : "hidden",
23816
+ opacity: X ? 1 : 0,
23816
23817
  transition: "opacity 0.1s ease-out",
23817
- ...q
23818
- }, p1 = V6(b), _ = /* @__PURE__ */ i(
23818
+ ...R
23819
+ }, _ = V6(b), u1 = /* @__PURE__ */ i(
23819
23820
  "div",
23820
23821
  {
23821
- ref: n1,
23822
- id: $,
23823
- "data-popup-id": $,
23824
- style: u1,
23825
- className: `ui-border ui-border-neutral-100 ui-bg-white ${p1} ui-overflow-hidden ui-shadow-lg ${l}`,
23826
- onClick: () => {
23827
- v && F();
23822
+ ref: N,
23823
+ id: k,
23824
+ "data-popup-id": k,
23825
+ style: p1,
23826
+ className: `ui-border ui-border-neutral-100 ui-bg-white ${_} ui-overflow-hidden ui-shadow-lg ${l}`,
23827
+ onClick: (K) => {
23828
+ v && (I && K.stopPropagation(), e1());
23828
23829
  },
23829
- ...I,
23830
+ ...z,
23830
23831
  children: o
23831
23832
  }
23832
23833
  );
23833
- return S ? _ : D1(_, document.body);
23834
+ return S ? u1 : D1(u1, document.body);
23834
23835
  };
23835
23836
  return /* @__PURE__ */ u(
23836
23837
  "div",
23837
23838
  {
23838
- ref: N,
23839
+ ref: $,
23839
23840
  className: U("ui-relative ui-h-max"),
23840
- "data-popup-container-id": $,
23841
+ "data-popup-container-id": k,
23841
23842
  children: [
23842
- /* @__PURE__ */ i("div", { ref: X, className: U("ui-w-fit", Z), children: /* @__PURE__ */ i(
23843
+ /* @__PURE__ */ i("div", { ref: n1, className: U("ui-w-fit", Z), children: /* @__PURE__ */ i(
23843
23844
  v1,
23844
23845
  {
23845
23846
  className: x,
23846
- onClick: k,
23847
+ onClick: F,
23847
23848
  disabled: p,
23848
23849
  variant: d,
23849
23850
  color: L,
@@ -23857,14 +23858,14 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23857
23858
  tooltip: V,
23858
23859
  tooltipPosition: y,
23859
23860
  tooltipAlignment: B,
23860
- tooltipColor: R,
23861
+ tooltipColor: E,
23861
23862
  tooltipDelay: A,
23862
23863
  transition: O,
23863
23864
  style: M,
23864
23865
  children: r || ""
23865
23866
  }
23866
23867
  ) }),
23867
- i1()
23868
+ a1()
23868
23869
  ]
23869
23870
  }
23870
23871
  );
@@ -23914,7 +23915,7 @@ const Z1 = {
23914
23915
  h[f] = g;
23915
23916
  }), l(h);
23916
23917
  }, [o, e]);
23917
- K(() => {
23918
+ Q(() => {
23918
23919
  s();
23919
23920
  }, [s]);
23920
23921
  const C = P(() => {
@@ -24131,7 +24132,7 @@ const Z1 = {
24131
24132
  cancelButtonSlotLeft: V,
24132
24133
  successButtonSlotRight: y,
24133
24134
  disableCancelButton: B,
24134
- disableSuccessButton: R
24135
+ disableSuccessButton: E
24135
24136
  }) => {
24136
24137
  const A = {
24137
24138
  onClose: r,
@@ -24157,7 +24158,7 @@ const Z1 = {
24157
24158
  cancelButtonSlotLeft: V,
24158
24159
  successButtonSlotRight: y,
24159
24160
  disableCancelButton: B,
24160
- disableSuccessButton: R
24161
+ disableSuccessButton: E
24161
24162
  };
24162
24163
  return /* @__PURE__ */ i(B9.Provider, { value: A, children: o });
24163
24164
  }, S9 = () => {
@@ -24230,8 +24231,8 @@ const Z1 = {
24230
24231
  onChangeTab: h,
24231
24232
  headerButtonIcon: w,
24232
24233
  headerButtonOnClick: f
24233
- } = S9(), g = r ?? C, b = c ?? w, m = l ?? f, H = (n == null ? void 0 : n.length) > 0 ? n : d, j = (H == null ? void 0 : H.length) ?? !1, V = a ?? h, y = e ?? L, B = (R) => {
24234
- V && V(R);
24234
+ } = S9(), g = r ?? C, b = c ?? w, m = l ?? f, H = (n == null ? void 0 : n.length) > 0 ? n : d, j = (H == null ? void 0 : H.length) ?? !1, V = a ?? h, y = e ?? L, B = (E) => {
24235
+ V && V(E);
24235
24236
  };
24236
24237
  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: [
24237
24238
  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" }) }),
@@ -24268,8 +24269,8 @@ const Z1 = {
24268
24269
  options: H ?? [],
24269
24270
  defaultValue: y,
24270
24271
  size: "sm",
24271
- onChange: (R) => {
24272
- B(R);
24272
+ onChange: (E) => {
24273
+ B(E);
24273
24274
  }
24274
24275
  }
24275
24276
  ) }) : null
@@ -24383,7 +24384,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24383
24384
  onChangeTab: V,
24384
24385
  headerButtonIcon: y,
24385
24386
  headerButtonOnClick: B,
24386
- footerButtonIcon: R,
24387
+ footerButtonIcon: E,
24387
24388
  footerButtonOnClick: A,
24388
24389
  cancelButtonSlotLeft: S,
24389
24390
  successButtonSlotRight: v,
@@ -24398,7 +24399,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24398
24399
  disableOutsideClick: s
24399
24400
  });
24400
24401
  if (!I || !o && !O) return null;
24401
- const J = S6(e), q = $6(e), E = /* @__PURE__ */ u(
24402
+ const J = S6(e), G = $6(e), R = /* @__PURE__ */ u(
24402
24403
  "div",
24403
24404
  {
24404
24405
  "aria-modal": "true",
@@ -24446,7 +24447,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24446
24447
  icon: t,
24447
24448
  headerButtonIcon: y,
24448
24449
  headerButtonOnClick: B,
24449
- footerButtonIcon: R,
24450
+ footerButtonIcon: E,
24450
24451
  footerButtonOnClick: A,
24451
24452
  tabs: H,
24452
24453
  defaultValueTab: j,
@@ -24458,7 +24459,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24458
24459
  children: [
24459
24460
  !J && (a || w ? /* @__PURE__ */ i(Y1, { title: w }) : null),
24460
24461
  e && e,
24461
- !q && /* @__PURE__ */ i(X0, {})
24462
+ !G && /* @__PURE__ */ i(X0, {})
24462
24463
  ]
24463
24464
  }
24464
24465
  )
@@ -24467,7 +24468,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24467
24468
  ]
24468
24469
  }
24469
24470
  );
24470
- return h9.createPortal(E, I);
24471
+ return h9.createPortal(R, I);
24471
24472
  }, zi = Object.assign(P6, {
24472
24473
  Header: Y1,
24473
24474
  Body: Z6,
@@ -24494,13 +24495,13 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24494
24495
  showVisiblePages: d = !1,
24495
24496
  showPagesSelector: L = !1
24496
24497
  }) => {
24497
- K(() => {
24498
+ Q(() => {
24498
24499
  o > r && r > 0 && l(r);
24499
24500
  }, [o, r, l]);
24500
24501
  const h = (j) => {
24501
24502
  j >= 1 && j <= r && l(j);
24502
24503
  }, [w, f] = Y(t);
24503
- K(() => {
24504
+ Q(() => {
24504
24505
  f(t);
24505
24506
  }, [t]);
24506
24507
  const g = Math.min(o * (t || 0), n || 0) || 0, m = (() => {
@@ -28386,7 +28387,7 @@ const E1 = /* @__PURE__ */ new Map(), i0 = {
28386
28387
  }
28387
28388
  }, Li = () => {
28388
28389
  const [o, r] = Y([]), t = o1(/* @__PURE__ */ new Map()), n = o1(null);
28389
- return K(() => {
28390
+ return Q(() => {
28390
28391
  const a = i0.getListeners();
28391
28392
  if (n.current) {
28392
28393
  const l = a.indexOf(n.current);
@@ -28437,7 +28438,7 @@ const E1 = /* @__PURE__ */ new Map(), i0 = {
28437
28438
  })[r]
28438
28439
  }), wi = ({ toastItem: o }) => {
28439
28440
  const [r, t] = Y(!0);
28440
- K(() => {
28441
+ Q(() => {
28441
28442
  o.isLeaving && setTimeout(() => {
28442
28443
  t(!1);
28443
28444
  }, 300);