@imj_media/ui 1.0.63 → 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,10 +1,10 @@
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";
6
- import { faUser as t0, faHome as u0, faBell as a0, faEdit as l0, faSave as d0, faDownload as s0, faSearch as c0, faTrash as p0, faEye as C0, faHeart as L0, faStar as h0, faPlus as w0, faMinus as g0, faCheck as f0, faTimes as m0, faArrowLeft as M0, faArrowRight as x0, faArrowUp as b0, faArrowDown as v0, faBars as j0, faCog as V0, faInfo as H0, faExclamationTriangle as y0, faExclamationCircle as O0, faCheckCircle as k0, faSpinner as I0, faSync as Z0, faFilter as B0, faSort as S0, faCalendar as $0, faClock as P0, faMapMarkerAlt as T0, faFolder as A0, faCircle as F0, faSquare as N0, faList as D0, faTasks as E0, faTools as z0, faShapes as R0, faPalette as U0, faTachometerAlt as _0, faDesktop as G0, faCircleCheck as q0 } from "@fortawesome/pro-regular-svg-icons";
7
- import { faUser as D9, faHome as E9, faBell as z9, faEdit as R9, faSave as U9, faDownload as _9, faSearch as G9, faTrash as q9, faEye as Y9, faHeart as J9, faStar as X9, faPlus as K9, faMinus as Q9, faCheck as W9, faTimes as n2, faArrowLeft as e2, faArrowRight as i2, faArrowUp as o2, faArrowDown as r2, faBars as t2, faCog as u2, faInfo as a2, faExclamationTriangle as l2, faExclamationCircle as d2, faCheckCircle as s2, faSpinner as c2, faSync as p2, faFilter as C2, faSort as L2, faCalendar as h2, faClock as w2, faMapMarkerAlt as g2, faFolder as f2, faCircle as m2, faSquare as M2, faList as x2, faTasks as b2, faTools as v2, faShapes as j2, faPalette as V2, faDashboard as H2, faDesktop as y2, faCircleCheck as O2 } from "@fortawesome/pro-solid-svg-icons";
6
+ import { faUser as t0, faHome as u0, faBell as a0, faEdit as l0, faSave as d0, faDownload as s0, faSearch as c0, faTrash as p0, faEye as C0, faHeart as L0, faStar as h0, faPlus as w0, faMinus as g0, faCheck as f0, faTimes as m0, faArrowLeft as M0, faArrowRight as x0, faArrowUp as b0, faArrowDown as v0, faBars as j0, faCog as V0, faInfo as H0, faExclamationTriangle as y0, faExclamationCircle as O0, faCheckCircle as k0, faSpinner as I0, faSync as Z0, faFilter as B0, faSort as S0, faCalendar as $0, faClock as P0, faMapMarkerAlt as T0, faFolder as A0, faCircle as F0, faSquare as N0, faList as D0, faTasks as z0, faTools as E0, faShapes as R0, faPalette as U0, faTachometerAlt as _0, faDesktop as G0, faCircleCheck as q0 } from "@fortawesome/pro-regular-svg-icons";
7
+ import { faUser as D9, faHome as z9, faBell as E9, faEdit as R9, faSave as U9, faDownload as _9, faSearch as G9, faTrash as q9, faEye as Y9, faHeart as J9, faStar as X9, faPlus as K9, faMinus as Q9, faCheck as W9, faTimes as n2, faArrowLeft as e2, faArrowRight as i2, faArrowUp as o2, faArrowDown as r2, faBars as t2, faCog as u2, faInfo as a2, faExclamationTriangle as l2, faExclamationCircle as d2, faCheckCircle as s2, faSpinner as c2, faSync as p2, faFilter as C2, faSort as L2, faCalendar as h2, faClock as w2, faMapMarkerAlt as g2, faFolder as f2, faCircle as m2, faSquare as M2, faList as x2, faTasks as b2, faTools as v2, faShapes as j2, faPalette as V2, faDashboard as H2, faDesktop as y2, faCircleCheck as O2 } from "@fortawesome/pro-solid-svg-icons";
8
8
  import { faFacebook as u9, faInstagram as a9, faTwitter as l9, faWhatsapp as Q1, faLinkedin as d9, faYoutube as s9, faGithub as c9, faGoogle as p9, faApple as C9, faMicrosoft as L9 } from "@fortawesome/free-brands-svg-icons";
9
9
  import { FontAwesomeIcon as k2 } from "@fortawesome/react-fontawesome";
10
10
  import { cva as C1 } from "class-variance-authority";
@@ -52,8 +52,8 @@ r0.add(
52
52
  F0,
53
53
  N0,
54
54
  D0,
55
- E0,
56
55
  z0,
56
+ E0,
57
57
  R0,
58
58
  U0,
59
59
  // Reemplazar faColor con faPalette
@@ -65,8 +65,8 @@ r0.add(
65
65
  );
66
66
  r0.add(
67
67
  D9,
68
- E9,
69
68
  z9,
69
+ E9,
70
70
  R9,
71
71
  U9,
72
72
  _9,
@@ -120,7 +120,7 @@ r0.add(
120
120
  C9,
121
121
  L9
122
122
  );
123
- const E2 = {
123
+ const z2 = {
124
124
  // Solo mapear iconos básicos que sabemos que existen en Font Awesome Pro
125
125
  OutlineUserIcon: t0,
126
126
  OutlineHomeIcon: u0,
@@ -158,14 +158,14 @@ const E2 = {
158
158
  OutlineCircleIcon: F0,
159
159
  OutlineSquareIcon: N0,
160
160
  OutlineListIcon: D0,
161
- OutlineTasksIcon: E0,
162
- OutlineToolsIcon: z0,
161
+ OutlineTasksIcon: z0,
162
+ OutlineToolsIcon: E0,
163
163
  OutlineShapesIcon: R0,
164
164
  OutlineColorIcon: U0,
165
165
  OutlineDashboardIcon: _0,
166
166
  OutlineScreenIcon: G0,
167
167
  OutlineStatusIcon: q0
168
- }, z2 = {
168
+ }, E2 = {
169
169
  // Iconos de marcas (Brands)
170
170
  FillFacebookIcon: u9,
171
171
  FillInstagramIcon: a9,
@@ -216,8 +216,8 @@ const E2 = {
216
216
  FillCircleIcon: F0,
217
217
  FillSquareIcon: N0,
218
218
  FillListIcon: D0,
219
- FillTasksIcon: E0,
220
- FillToolsIcon: z0,
219
+ FillTasksIcon: z0,
220
+ FillToolsIcon: E0,
221
221
  FillShapesIcon: R0,
222
222
  FillColorIcon: U0,
223
223
  FillDashboardIcon: _0,
@@ -227,8 +227,8 @@ const E2 = {
227
227
  FillLogoIcon: null
228
228
  // Mantener personalizado
229
229
  }, R2 = {
230
- ...E2,
231
- ...z2
230
+ ...z2,
231
+ ...E2
232
232
  };
233
233
  function U2(o) {
234
234
  const r = R2[o];
@@ -3027,7 +3027,7 @@ function Dn({
3027
3027
  }
3028
3028
  );
3029
3029
  }
3030
- function En({
3030
+ function zn({
3031
3031
  width: o = 24,
3032
3032
  height: r = 24,
3033
3033
  fill: t = "none",
@@ -3067,7 +3067,7 @@ function En({
3067
3067
  }
3068
3068
  );
3069
3069
  }
3070
- function zn({
3070
+ function En({
3071
3071
  width: o = 24,
3072
3072
  height: r = 24,
3073
3073
  fill: t = "none",
@@ -6199,7 +6199,7 @@ function De({
6199
6199
  }
6200
6200
  );
6201
6201
  }
6202
- function Ee({
6202
+ function ze({
6203
6203
  width: o = 24,
6204
6204
  height: r = 24,
6205
6205
  fill: t = "none",
@@ -6247,7 +6247,7 @@ function Ee({
6247
6247
  }
6248
6248
  );
6249
6249
  }
6250
- function ze({
6250
+ function Ee({
6251
6251
  width: o = 24,
6252
6252
  height: r = 24,
6253
6253
  fill: t = "none",
@@ -9455,7 +9455,7 @@ function D4({
9455
9455
  }
9456
9456
  );
9457
9457
  }
9458
- function E4({
9458
+ function z4({
9459
9459
  width: o = 24,
9460
9460
  height: r = 24,
9461
9461
  fill: t = "none",
@@ -9483,7 +9483,7 @@ function E4({
9483
9483
  }
9484
9484
  );
9485
9485
  }
9486
- function z4({
9486
+ function E4({
9487
9487
  width: o = 24,
9488
9488
  height: r = 24,
9489
9489
  fill: t = "none",
@@ -12625,7 +12625,7 @@ function D8({
12625
12625
  }
12626
12626
  );
12627
12627
  }
12628
- function E8({
12628
+ function z8({
12629
12629
  width: o = 24,
12630
12630
  height: r = 24,
12631
12631
  fill: t = "none",
@@ -12685,7 +12685,7 @@ function E8({
12685
12685
  }
12686
12686
  );
12687
12687
  }
12688
- function z8({
12688
+ function E8({
12689
12689
  width: o = 24,
12690
12690
  height: r = 24,
12691
12691
  fill: t = "none",
@@ -15794,7 +15794,7 @@ function D3({
15794
15794
  }
15795
15795
  );
15796
15796
  }
15797
- function E3({
15797
+ function z3({
15798
15798
  width: o = 24,
15799
15799
  height: r = 24,
15800
15800
  fill: t = "none",
@@ -15890,7 +15890,7 @@ function E3({
15890
15890
  }
15891
15891
  );
15892
15892
  }
15893
- function z3({
15893
+ function E3({
15894
15894
  width: o = 24,
15895
15895
  height: r = 24,
15896
15896
  fill: t = "none",
@@ -17933,11 +17933,11 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17933
17933
  AngleDoubleRightOutlined: M3,
17934
17934
  AngleDoubleUpOutlined: l5,
17935
17935
  AngleDownOutlined: c5,
17936
- AngleLeftOutlined: zn,
17936
+ AngleLeftOutlined: En,
17937
17937
  AngleRightOutlined: W3,
17938
17938
  AngleUpOutlined: m5,
17939
17939
  ArchivarOutlined: I3,
17940
- AreaOutlined: E8,
17940
+ AreaOutlined: z8,
17941
17941
  ArrowCircleDownOutlined: de,
17942
17942
  ArrowCircleLeftOutlined: P3,
17943
17943
  ArrowCircleRightOutlined: c3,
@@ -17950,7 +17950,7 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17950
17950
  ArrowRightOutlined: V3,
17951
17951
  ArrowUpLeftOutlined: J4,
17952
17952
  ArrowUpOutlined: u4,
17953
- ArrowUpRightOutlined: En,
17953
+ ArrowUpRightOutlined: zn,
17954
17954
  ArrowVerticalOutlined: s4,
17955
17955
  Backward1Outlined: S4,
17956
17956
  Backward2Outlined: l4,
@@ -18049,7 +18049,7 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18049
18049
  Folder2Outlined: o8,
18050
18050
  FolderOutlined: O8,
18051
18051
  GanttOutlined: Fn,
18052
- GaugeOutlined: ze,
18052
+ GaugeOutlined: Ee,
18053
18053
  GearOutlined: N8,
18054
18054
  GestionOutlined: tn,
18055
18055
  GlassOutlined: Ze,
@@ -18070,11 +18070,11 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18070
18070
  InfoCardOutlined: Un,
18071
18071
  InfoCircleOutlined: M4,
18072
18072
  InfoOutlined: $8,
18073
- InstallOutlined: E3,
18073
+ InstallOutlined: z3,
18074
18074
  InventarioOutlined: p5,
18075
18075
  JoyasOutlined: Mn,
18076
18076
  KanbanOutlined: W2,
18077
- KeyOutlined: E4,
18077
+ KeyOutlined: z4,
18078
18078
  LatitudeOutlined: o4,
18079
18079
  LegalFileOutlined: w5,
18080
18080
  LightbulbIndifferentOutlined: N3,
@@ -18118,8 +18118,8 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18118
18118
  PauseOutlined: dn,
18119
18119
  PautaInteligenteOutlined: Ye,
18120
18120
  PautaTradicionalOutlined: wn,
18121
- PencilOutlined: z3,
18122
- PercentageOutlined: Ee,
18121
+ PencilOutlined: E3,
18122
+ PercentageOutlined: ze,
18123
18123
  PerifoneoOutlined: k4,
18124
18124
  PerifoneoSlashOutlined: ce,
18125
18125
  PermisionarioOutlined: We,
@@ -18128,7 +18128,7 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18128
18128
  PlantillaOutlined: Ce,
18129
18129
  PlayOutlined: _e,
18130
18130
  Plus1Outlined: Ie,
18131
- PlusOutlined: z8,
18131
+ PlusOutlined: E8,
18132
18132
  PostventaOutlined: Q2,
18133
18133
  PowerOutlined: b3,
18134
18134
  PreferenciasDeUbicacionOutlined: vn,
@@ -18198,7 +18198,7 @@ const W1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18198
18198
  TrashOutlined: fe,
18199
18199
  TrashSlashOutlined: Wn,
18200
18200
  TreeDiagramOutlined: A8,
18201
- UbicacionesOutlined: z4,
18201
+ UbicacionesOutlined: E4,
18202
18202
  UndoOutlined: $n,
18203
18203
  UnlockOutlined: B3,
18204
18204
  UpdateOutlined: re,
@@ -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;
@@ -19140,97 +19140,97 @@ const B5 = ({
19140
19140
  }
19141
19141
  ) : null;
19142
19142
  }, P5 = (o = "top", r = "center", t = !1, n = 0, e = !1) => {
19143
- const [a, c] = Y(!1), [l, s] = Y({ top: 0, left: 0 }), [C, p] = Y({ width: 0, height: 0 }), [d, L] = Y(o), h = o1(null), w = o1(null), f = o1(null), g = o1(null), b = o1(null), m = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), O = P(() => {
19143
+ const [a, c] = Y(!1), [l, s] = Y({ top: 0, left: 0 }), [C, p] = Y({ width: 0, height: 0 }), [d, L] = Y(o), h = o1(null), w = o1(null), f = o1(null), g = o1(null), b = o1(null), m = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), y = P(() => {
19144
19144
  c(!1), s({ top: 0, left: 0 }), L(o), H.current = null, V.current.count = 0, V.current.lastTime = 0, j.current = { top: 0, left: 0 };
19145
19145
  }, [o]), B = P(() => {
19146
19146
  if (!h.current || !a) return;
19147
19147
  const v = h.current.getBoundingClientRect(), x = { top: v.top, left: v.left };
19148
19148
  if (H.current) {
19149
- const Z = H.current, y = 2;
19150
- if (Math.abs(x.top - Z.top) > y || Math.abs(x.left - Z.left) > y) {
19151
- O();
19149
+ const Z = H.current, O = 2;
19150
+ if (Math.abs(x.top - Z.top) > O || Math.abs(x.left - Z.left) > O) {
19151
+ y();
19152
19152
  return;
19153
19153
  }
19154
19154
  }
19155
19155
  H.current = x;
19156
- }, [a, O]), R = P(() => {
19157
- var J, q, z, 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
- let y = 0, M = 0;
19160
+ let O = 0, M = 0;
19161
19161
  if (t) {
19162
19162
  const $ = (J = f.current) == null ? void 0 : J.getBoundingClientRect();
19163
19163
  if (!$) return;
19164
19164
  const k = v.top - $.top, F = v.left - $.left;
19165
19165
  switch (o) {
19166
19166
  case "top":
19167
- y = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19167
+ O = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19168
19168
  break;
19169
19169
  case "bottom":
19170
- y = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19170
+ O = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19171
19171
  break;
19172
19172
  case "left":
19173
- y = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19173
+ O = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19174
19174
  break;
19175
19175
  case "right":
19176
- y = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19176
+ O = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19177
19177
  break;
19178
19178
  case "top-left":
19179
- y = k - x.height - Z, M = F;
19179
+ O = k - x.height - Z, M = F;
19180
19180
  break;
19181
19181
  case "top-right":
19182
- y = k - x.height - Z, M = F + v.width - x.width;
19182
+ O = k - x.height - Z, M = F + v.width - x.width;
19183
19183
  break;
19184
19184
  case "bottom-left":
19185
- y = k + v.height + Z, M = F;
19185
+ O = k + v.height + Z, M = F;
19186
19186
  break;
19187
19187
  case "bottom-right":
19188
- y = k + v.height + Z, M = F + v.width - x.width;
19188
+ O = k + v.height + Z, M = F + v.width - x.width;
19189
19189
  break;
19190
19190
  case "right-top":
19191
- y = k, M = F + v.width + Z;
19191
+ O = k, M = F + v.width + Z;
19192
19192
  break;
19193
19193
  case "right-bottom":
19194
- y = k + v.height - x.height, M = F + v.width + Z;
19194
+ O = k + v.height - x.height, M = F + v.width + Z;
19195
19195
  break;
19196
19196
  case "left-top":
19197
- y = k, M = F - x.width - Z;
19197
+ O = k, M = F - x.width - Z;
19198
19198
  break;
19199
19199
  case "left-bottom":
19200
- y = k + v.height - x.height, M = F - x.width - Z;
19200
+ O = k + v.height - x.height, M = F - x.width - Z;
19201
19201
  break;
19202
19202
  }
19203
- y < 0 && (y = 0), M < 0 && (M = 0), (() => {
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
- y = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19224
+ O = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19225
19225
  break;
19226
19226
  case "bottom":
19227
- y = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19227
+ O = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19228
19228
  break;
19229
19229
  case "left":
19230
- y = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19230
+ O = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19231
19231
  break;
19232
19232
  case "right":
19233
- y = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19233
+ O = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19234
19234
  break;
19235
19235
  }
19236
19236
  L(p1);
@@ -19239,54 +19239,54 @@ const B5 = ({
19239
19239
  } else
19240
19240
  switch (o) {
19241
19241
  case "top":
19242
- y = v.top - x.height - Z, M = v.left + v.width / 2 - x.width / 2;
19242
+ O = v.top - x.height - Z, M = v.left + v.width / 2 - x.width / 2;
19243
19243
  break;
19244
19244
  case "bottom":
19245
- y = v.bottom + Z, M = v.left + v.width / 2 - x.width / 2;
19245
+ O = v.bottom + Z, M = v.left + v.width / 2 - x.width / 2;
19246
19246
  break;
19247
19247
  case "left":
19248
- y = v.top + v.height / 2 - x.height / 2, M = v.left - x.width - Z;
19248
+ O = v.top + v.height / 2 - x.height / 2, M = v.left - x.width - Z;
19249
19249
  break;
19250
19250
  case "right":
19251
- y = v.top + v.height / 2 - x.height / 2, M = v.right + Z;
19251
+ O = v.top + v.height / 2 - x.height / 2, M = v.right + Z;
19252
19252
  break;
19253
19253
  case "top-left":
19254
- y = v.top - x.height - Z, M = v.left;
19254
+ O = v.top - x.height - Z, M = v.left;
19255
19255
  break;
19256
19256
  case "top-right":
19257
- y = v.top - x.height - Z, M = v.right - x.width;
19257
+ O = v.top - x.height - Z, M = v.right - x.width;
19258
19258
  break;
19259
19259
  case "bottom-left":
19260
- y = v.bottom + Z, M = v.left;
19260
+ O = v.bottom + Z, M = v.left;
19261
19261
  break;
19262
19262
  case "bottom-right":
19263
- y = v.bottom + Z, M = v.right - x.width;
19263
+ O = v.bottom + Z, M = v.right - x.width;
19264
19264
  break;
19265
19265
  case "right-top":
19266
- y = v.top, M = v.right + Z;
19266
+ O = v.top, M = v.right + Z;
19267
19267
  break;
19268
19268
  case "right-bottom":
19269
- y = v.bottom - x.height, M = v.right + Z;
19269
+ O = v.bottom - x.height, M = v.right + Z;
19270
19270
  break;
19271
19271
  case "left-top":
19272
- y = v.top, M = v.left - x.width - Z;
19272
+ O = v.top, M = v.left - x.width - Z;
19273
19273
  break;
19274
19274
  case "left-bottom":
19275
- y = v.bottom - x.height, M = v.left - x.width - Z;
19275
+ O = v.bottom - x.height, M = v.left - x.width - Z;
19276
19276
  break;
19277
19277
  }
19278
19278
  if (o.includes("top") || o.includes("bottom"))
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 $ = (z = f.current) == null ? void 0 : z.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;
@@ -19297,52 +19297,52 @@ const B5 = ({
19297
19297
  case "start":
19298
19298
  if (t) {
19299
19299
  const $ = (X = f.current) == null ? void 0 : X.getBoundingClientRect();
19300
- $ && (y = v.top - $.top);
19300
+ $ && (O = v.top - $.top);
19301
19301
  } else
19302
- y = v.top;
19302
+ O = v.top;
19303
19303
  break;
19304
19304
  case "end":
19305
19305
  if (t) {
19306
19306
  const $ = (n1 = f.current) == null ? void 0 : n1.getBoundingClientRect();
19307
- $ && (y = v.bottom - $.top - x.height);
19307
+ $ && (O = v.bottom - $.top - x.height);
19308
19308
  } else
19309
- y = v.bottom - x.height;
19309
+ O = v.bottom - x.height;
19310
19310
  break;
19311
19311
  }
19312
19312
  if (t) {
19313
19313
  const $ = (N = f.current) == null ? void 0 : N.getBoundingClientRect();
19314
- $ && (M < 8 && (M = 8), M + x.width > $.width - 8 && (M = $.width - x.width - 8), y < 8 && (y = 8), y + x.height > $.height - 8 && (y = $.height - x.height - 8));
19314
+ $ && (M < 8 && (M = 8), M + x.width > $.width - 8 && (M = $.width - x.width - 8), O < 8 && (O = 8), O + x.height > $.height - 8 && (O = $.height - x.height - 8));
19315
19315
  } else {
19316
19316
  const $ = window.innerWidth, k = window.innerHeight, F = 8;
19317
- M < F && (M = F), M + x.width > $ - F && (M = $ - x.width - F), y < F && (y = F), y + x.height > k - F && (y = k - x.height - F);
19317
+ M < F && (M = F), M + x.width > $ - F && (M = $ - x.width - F), O < F && (O = F), O + x.height > k - F && (O = k - x.height - F);
19318
19318
  }
19319
- if (isNaN(y) || isNaN(M) || y < 0 || M < 0) {
19320
- O();
19319
+ if (isNaN(O) || isNaN(M) || O < 0 || M < 0) {
19320
+ y();
19321
19321
  return;
19322
19322
  }
19323
19323
  const I = Date.now();
19324
19324
  if (I - V.current.lastTime < 100) {
19325
19325
  if (V.current.count++, V.current.count > 5) {
19326
- O();
19326
+ y();
19327
19327
  return;
19328
19328
  }
19329
19329
  } else
19330
19330
  V.current.count = 0;
19331
- V.current.lastTime = I, j.current = { top: y, left: M }, s({ top: y, left: M });
19332
- }, [o, r, t, O]);
19333
- K(() => (a && w.current ? (requestAnimationFrame(() => {
19334
- if (R(), h.current) {
19331
+ V.current.lastTime = I, j.current = { top: O, left: M }, s({ top: O, left: M });
19332
+ }, [o, r, t, y]);
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) => {
19344
19344
  v.forEach((x) => {
19345
- !x.isIntersecting && a && O();
19345
+ !x.isIntersecting && a && y();
19346
19346
  });
19347
19347
  },
19348
19348
  {
@@ -19352,17 +19352,17 @@ const B5 = ({
19352
19352
  ), b.current.observe(h.current), () => {
19353
19353
  b.current && b.current.disconnect();
19354
19354
  };
19355
- }, [a, O]), K(() => {
19355
+ }, [a, y]), Q(() => {
19356
19356
  if (!a) return;
19357
19357
  const v = () => {
19358
- t || O();
19358
+ t || y();
19359
19359
  }, x = () => {
19360
- O();
19360
+ y();
19361
19361
  };
19362
19362
  return window.addEventListener("scroll", v, !0), window.addEventListener("resize", x), () => {
19363
19363
  window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", x);
19364
19364
  };
19365
- }, [a, t, O]);
19365
+ }, [a, t, y]);
19366
19366
  const A = P(() => {
19367
19367
  e || (g.current && (clearTimeout(g.current), g.current = null), n > 0 ? g.current = setTimeout(() => {
19368
19368
  c(!0);
@@ -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)" },
@@ -19602,7 +19602,7 @@ const B5 = ({
19602
19602
  containerRef: H,
19603
19603
  handleMouseEnter: j,
19604
19604
  handleMouseLeave: V
19605
- } = P5(t, n, L, c, l), O = N5(e, L), B = A5(g, e);
19605
+ } = P5(t, n, L, c, l), y = N5(e, L), B = A5(g, e);
19606
19606
  return /* @__PURE__ */ u("div", { ref: H, className: L ? "ui-relative" : "", children: [
19607
19607
  /* @__PURE__ */ i(
19608
19608
  "div",
@@ -19622,7 +19622,7 @@ const B5 = ({
19622
19622
  ref: m,
19623
19623
  id: a,
19624
19624
  className: U(
19625
- O,
19625
+ y,
19626
19626
  "imj-ui-tooltip ui-font-bold",
19627
19627
  s
19628
19628
  ),
@@ -19647,7 +19647,7 @@ const B5 = ({
19647
19647
  ref: m,
19648
19648
  id: a,
19649
19649
  className: U(
19650
- O,
19650
+ y,
19651
19651
  "imj-ui-tooltip ui-font-bold",
19652
19652
  s
19653
19653
  ),
@@ -19792,35 +19792,35 @@ const B5 = ({
19792
19792
  onClickIcon: H,
19793
19793
  onClickLeftSlot: j,
19794
19794
  onClickRightSlot: V,
19795
- disabled: O,
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,
19801
19801
  defaultTooltipColor: x = !0,
19802
19802
  as: Z = "button",
19803
- classNameId: y = "imj-ui-inner-button",
19803
+ classNameId: O = "imj-ui-inner-button",
19804
19804
  tooltip: M = "",
19805
19805
  tooltipPosition: I,
19806
- tooltipAlignment: E,
19806
+ tooltipAlignment: z,
19807
19807
  tooltipColor: J = "neutral",
19808
- tooltipDelay: q,
19809
- tooltipAbsolute: z,
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 = {
19822
- disabled: O
19823
- }, T = a === "icon", Q = T ? !0 : v, e1 = T ? "xs" : g, W = (V1) => {
19821
+ const u1 = {
19822
+ disabled: y
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
- `${y} 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,
@@ -19968,10 +19968,10 @@ const B5 = ({
19968
19968
  {
19969
19969
  label: M,
19970
19970
  position: I,
19971
- alignment: E,
19972
- absolute: z,
19971
+ alignment: z,
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(
@@ -19989,9 +19989,9 @@ const B5 = ({
19989
19989
  {
19990
19990
  label: M,
19991
19991
  position: I,
19992
- alignment: E,
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()
@@ -20007,7 +20007,7 @@ const B5 = ({
20007
20007
  )
20008
20008
  }
20009
20009
  );
20010
- }, E5 = ({
20010
+ }, z5 = ({
20011
20011
  title: o,
20012
20012
  open: r,
20013
20013
  setOpen: t,
@@ -20026,7 +20026,7 @@ const B5 = ({
20026
20026
  icon: r || !e ? "Minus2Outlined" : "Plus1Outlined"
20027
20027
  }
20028
20028
  )
20029
- ] }), z5 = ({ children: o, open: r }) => /* @__PURE__ */ i(
20029
+ ] }), E5 = ({ children: o, open: r }) => /* @__PURE__ */ i(
20030
20030
  "div",
20031
20031
  {
20032
20032
  className: `ui-w-full ui-overflow-hidden ui-transition-all ui-ease-in-out ${r ? "ui-duration-600 ui-max-h-96 ui-opacity-100" : "ui-max-h-0 ui-opacity-0 ui-duration-300"}`,
@@ -20049,7 +20049,7 @@ const B5 = ({
20049
20049
  className: `ui-w-full ui-overflow-hidden ui-rounded-lg ui-border ui-border-neutral-100 ui-bg-white ui-p-2 ${e}`,
20050
20050
  children: [
20051
20051
  /* @__PURE__ */ i(
20052
- E5,
20052
+ z5,
20053
20053
  {
20054
20054
  open: l,
20055
20055
  title: o,
@@ -20058,7 +20058,7 @@ const B5 = ({
20058
20058
  children: t
20059
20059
  }
20060
20060
  ),
20061
- /* @__PURE__ */ u(z5, { open: l, children: [
20061
+ /* @__PURE__ */ u(E5, { open: l, children: [
20062
20062
  r && /* @__PURE__ */ i("p", { className: "ui-mb-3 ui-mt-1 ui-text-xxs ui-leading-none ui-text-neutral-500", children: r }),
20063
20063
  /* @__PURE__ */ i("div", { className: "ui-mx-1 ui-my-1.5 ui-h-[1px] ui-w-full ui-bg-neutral-100" }),
20064
20064
  t && t
@@ -20131,7 +20131,7 @@ const B5 = ({
20131
20131
  success: "Check2Outlined",
20132
20132
  danger: "ExclamationTriangleOutlined",
20133
20133
  warning: "ExclamationTriangleOutlined",
20134
- info: "InfoCircleOutlined",
20134
+ info: "LikeOutlined",
20135
20135
  gray: "InfoCircleOutlined"
20136
20136
  }, l = a[e];
20137
20137
  return c[l];
@@ -20156,14 +20156,14 @@ const B5 = ({
20156
20156
  const { getIconForType: r } = U5(), t = o.variant === "contained", n = (a) => {
20157
20157
  a.stopPropagation(), o.onClose && o.onClose(a);
20158
20158
  }, e = o.color === "yellow";
20159
- return /* @__PURE__ */ u("div", { className: `ui-flex ui-gap-x-1 ${o.title ? "ui-items-start" : "ui-items-center"}`, children: [
20159
+ return /* @__PURE__ */ u("div", { className: `ui-flex ui-gap-x-2 ${o.title ? "ui-items-start" : "ui-items-center"}`, children: [
20160
20160
  /* @__PURE__ */ i(
20161
20161
  j1,
20162
20162
  {
20163
20163
  name: r(o.color || "green"),
20164
20164
  color: t ? e ? "yellow_dark" : "white" : void 0,
20165
20165
  size: "2xl",
20166
- className: "ui-mt-0.5 ui-flex-shrink-0"
20166
+ className: "ui-flex-shrink-0"
20167
20167
  }
20168
20168
  ),
20169
20169
  /* @__PURE__ */ u("div", { className: "ui-min-w-0 ui-flex-1", children: [
@@ -20286,31 +20286,31 @@ const B5 = ({
20286
20286
  }, c = t ? a[n].out : a[n].in;
20287
20287
  return `${e} ${c} ${{
20288
20288
  green: {
20289
- contained: "ui-bg-green-500 ui-border-green-500 ui-border-2",
20289
+ contained: "ui-bg-green-500 ui-border-green-100 ui-border-3",
20290
20290
  outlined: "!ui-text-green-500 ui-border ui-border-green-500 ui-shadow ui-bg-green-50",
20291
20291
  accent: "ui-bg-green-50 ui-text-green-500 ui-border-l-6 ui-border-green-500",
20292
20292
  minimal: "ui-bg-white ui-text-green-500"
20293
20293
  },
20294
20294
  red: {
20295
- contained: "ui-bg-red-500 ui-border-red-500 ui-border-2",
20295
+ contained: "ui-bg-red-500 ui-border-red-100 ui-border-3",
20296
20296
  outlined: "!ui-text-red-500 ui-border ui-border-red-500 ui-shadow ui-bg-red-50",
20297
20297
  accent: "ui-bg-red-50 ui-text-red-500 ui-border-l-6 ui-border-red-500",
20298
20298
  minimal: "ui-bg-white ui-text-red-500"
20299
20299
  },
20300
20300
  blue: {
20301
- contained: "ui-bg-blue-500 ui-border-blue-500 ui-border-2",
20301
+ contained: "ui-bg-blue-500 ui-border-blue-100 ui-border-3",
20302
20302
  outlined: "!ui-text-blue-500 ui-border ui-border-blue-500 ui-shadow ui-bg-blue-50",
20303
20303
  accent: "ui-bg-blue-50 ui-text-blue-500 ui-border-l-6 ui-border-blue-500",
20304
20304
  minimal: "ui-bg-white ui-text-blue-500"
20305
20305
  },
20306
20306
  yellow: {
20307
- contained: "ui-bg-yellow-500 ui-border-yellow-500 ui-border-2",
20307
+ contained: "ui-bg-yellow-500 ui-border-yellow-100 ui-border-3",
20308
20308
  outlined: "!ui-text-yellow-800 ui-border ui-border-yellow-800 ui-shadow ui-bg-yellow-50",
20309
20309
  accent: "ui-bg-yellow-50 ui-text-yellow-500 ui-border-l-6 ui-border-yellow-500",
20310
20310
  minimal: "ui-bg-white ui-text-yellow-500"
20311
20311
  },
20312
20312
  neutral: {
20313
- contained: "ui-bg-neutral-800 ui-border-neutral-800 ui-border-2",
20313
+ contained: "ui-bg-neutral-800 ui-border-neutral-100 ui-border-3",
20314
20314
  outlined: "!ui-text-neutral-800 ui-border ui-border-neutral-800 ui-shadow ui-bg-neutral-50",
20315
20315
  accent: "ui-bg-neutral-50 ui-text-neutral-800 ui-border-l-6 ui-border-neutral-800",
20316
20316
  minimal: "ui-bg-white ui-text-neutral-800"
@@ -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));
@@ -20504,13 +20504,17 @@ const B5 = ({
20504
20504
  animation: h = "none",
20505
20505
  isLeaving: w,
20506
20506
  progressBarColor: f = !1,
20507
- duration: g = 3e3
20507
+ duration: g = 3e3,
20508
+ size: b = "sm"
20508
20509
  }) => {
20509
- const { isVisible: b, isLeaving: m } = Y5({ open: o, externalIsLeaving: w });
20510
- if (!b)
20510
+ const { isVisible: m, isLeaving: H } = Y5({ open: o, externalIsLeaving: w });
20511
+ if (!m)
20511
20512
  return null;
20512
- const H = !!s, j = (V) => {
20513
- s && (V.stopPropagation(), s());
20513
+ const j = !!s, V = (B) => {
20514
+ s && (B.stopPropagation(), s());
20515
+ }, y = {
20516
+ sm: "ui-px-4 ui-py-2",
20517
+ md: "ui-p-4"
20514
20518
  };
20515
20519
  return /* @__PURE__ */ u(
20516
20520
  "div",
@@ -20518,12 +20522,12 @@ const B5 = ({
20518
20522
  className: U(
20519
20523
  "ui-imj-alert ui-relative ui-overflow-hidden",
20520
20524
  n,
20521
- q5({ color: r, variant: t, isLeaving: m, animation: h }),
20522
- H ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20525
+ q5({ color: r, variant: t, isLeaving: H, animation: h }),
20526
+ j ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20523
20527
  ),
20524
- onClick: j,
20528
+ onClick: V,
20525
20529
  children: [
20526
- /* @__PURE__ */ u("div", { className: "ui-p-4", children: [
20530
+ /* @__PURE__ */ u("div", { className: U(y[b]), children: [
20527
20531
  /* @__PURE__ */ i(
20528
20532
  _5,
20529
20533
  {
@@ -20583,9 +20587,9 @@ const B5 = ({
20583
20587
  colorIcon: H,
20584
20588
  tooltip: j,
20585
20589
  tooltipPosition: V,
20586
- tooltipAlignment: O,
20590
+ tooltipAlignment: y,
20587
20591
  tooltipColor: B,
20588
- tooltipDelay: R,
20592
+ tooltipDelay: E,
20589
20593
  ...A
20590
20594
  }) => /* @__PURE__ */ i(
20591
20595
  t1,
@@ -20612,9 +20616,9 @@ const B5 = ({
20612
20616
  className: r,
20613
20617
  tooltip: j,
20614
20618
  tooltipPosition: V,
20615
- tooltipAlignment: O,
20619
+ tooltipAlignment: y,
20616
20620
  tooltipColor: B,
20617
- tooltipDelay: R,
20621
+ tooltipDelay: E,
20618
20622
  ...A
20619
20623
  }
20620
20624
  ), $i = ({
@@ -20721,10 +20725,10 @@ const Q5 = (o) => {
20721
20725
  if (d.current) {
20722
20726
  const M = d.current.getInputElement();
20723
20727
  if (M) {
20724
- const I = M.getBoundingClientRect(), E = window.innerHeight, J = window.innerWidth, q = 320, z = 256, X = 8;
20728
+ const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20725
20729
  let n1, N = I.left;
20726
- const $ = E - I.bottom, k = I.top;
20727
- $ >= 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 + z > J && (N = I.right - z), N = Math.max(0, Math.min(N, J - z)), s((F) => ({
20730
+ const $ = z - I.bottom, k = I.top;
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) => ({
20728
20732
  ...F,
20729
20733
  isOpen: !0,
20730
20734
  portalPosition: { top: n1, left: N }
@@ -20737,53 +20741,53 @@ const Q5 = (o) => {
20737
20741
  s((M) => ({ ...M, isOpen: !1 })), p(!1);
20738
20742
  }, []), V = P((M) => {
20739
20743
  s((I) => ({ ...I, currentDate: M }));
20740
- }, []), O = P((M) => {
20744
+ }, []), y = P((M) => {
20741
20745
  s((I) => ({ ...I, viewMode: M }));
20742
20746
  }, []), B = P((M) => {
20743
20747
  s((I) => {
20744
- const E = new Date(I.currentDate);
20748
+ const z = new Date(I.currentDate);
20745
20749
  switch (I.viewMode) {
20746
20750
  case "days":
20747
- E.setMonth(E.getMonth() + (M === "next" ? 1 : -1));
20751
+ z.setMonth(z.getMonth() + (M === "next" ? 1 : -1));
20748
20752
  break;
20749
20753
  case "months":
20750
- E.setFullYear(E.getFullYear() + (M === "next" ? 1 : -1));
20754
+ z.setFullYear(z.getFullYear() + (M === "next" ? 1 : -1));
20751
20755
  break;
20752
20756
  case "years":
20753
- E.setFullYear(E.getFullYear() + (M === "next" ? 12 : -12));
20757
+ z.setFullYear(z.getFullYear() + (M === "next" ? 12 : -12));
20754
20758
  break;
20755
20759
  }
20756
- return { ...I, currentDate: E };
20760
+ return { ...I, currentDate: z };
20757
20761
  });
20758
- }, []), R = P(
20762
+ }, []), E = P(
20759
20763
  (M) => {
20760
20764
  var I;
20761
- r === "single" && (h && s((E) => ({ ...E, internalDate: M })), (I = o.onDateChange) == null || I.call(o, M), a && j());
20765
+ r === "single" && (h && s((z) => ({ ...z, internalDate: M })), (I = o.onDateChange) == null || I.call(o, M), a && j());
20762
20766
  },
20763
20767
  [r, h, o.onDateChange, a, j]
20764
20768
  ), A = P(
20765
20769
  (M) => {
20766
20770
  var I;
20767
- r === "range" && (L || s((E) => ({ ...E, internalRange: M })), (I = o.onRangeChange) == null || I.call(o, M), c && M.start && M.end && j());
20771
+ r === "range" && (L || s((z) => ({ ...z, internalRange: M })), (I = o.onRangeChange) == null || I.call(o, M), c && M.start && M.end && j());
20768
20772
  },
20769
20773
  [r, L, o.onRangeChange, c, j]
20770
20774
  ), S = P((M) => {
20771
20775
  s((I) => ({ ...I, hoverDate: M }));
20772
20776
  }, []), v = P((M) => {
20773
20777
  s((I) => {
20774
- const E = new Date(I.currentDate);
20775
- return E.setMonth(M), {
20778
+ const z = new Date(I.currentDate);
20779
+ return z.setMonth(M), {
20776
20780
  ...I,
20777
- currentDate: E,
20781
+ currentDate: z,
20778
20782
  viewMode: "days"
20779
20783
  };
20780
20784
  });
20781
20785
  }, []), x = P((M) => {
20782
20786
  s((I) => {
20783
- const E = new Date(I.currentDate);
20784
- return E.setFullYear(M), {
20787
+ const z = new Date(I.currentDate);
20788
+ return z.setFullYear(M), {
20785
20789
  ...I,
20786
- currentDate: E,
20790
+ currentDate: z,
20787
20791
  viewMode: "months"
20788
20792
  };
20789
20793
  });
@@ -20794,36 +20798,36 @@ const Q5 = (o) => {
20794
20798
  currentDate: M,
20795
20799
  viewMode: "days"
20796
20800
  }));
20797
- }, []), y = P(() => {
20801
+ }, []), O = P(() => {
20798
20802
  if (!d.current)
20799
20803
  return;
20800
20804
  const M = d.current.getInputElement();
20801
20805
  if (!M)
20802
20806
  return;
20803
- const I = M.getBoundingClientRect(), E = window.innerHeight, J = window.innerWidth, q = 320, z = 256, X = 8;
20807
+ const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20804
20808
  let n1, N = I.left;
20805
- const $ = E - I.bottom, k = I.top;
20806
- $ >= 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 + z > J && (N = I.right - z), N = Math.max(0, Math.min(N, J - z)), s((F) => ({ ...F, portalPosition: { top: n1, left: N } })), p(!0);
20809
+ const $ = z - I.bottom, k = I.top;
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);
20807
20811
  }, []);
20808
- return K(() => {
20812
+ return Q(() => {
20809
20813
  if (!l.isOpen) return;
20810
- const M = () => y(), I = () => y();
20814
+ const M = () => O(), I = () => O();
20811
20815
  return window.addEventListener("scroll", M, !0), window.addEventListener("resize", I), () => {
20812
20816
  window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", I);
20813
20817
  };
20814
- }, [l.isOpen, y]), K(() => {
20818
+ }, [l.isOpen, O]), Q(() => {
20815
20819
  if (l.isOpen) {
20816
20820
  const M = setTimeout(() => {
20817
- y();
20821
+ O();
20818
20822
  }, 0);
20819
20823
  return () => clearTimeout(M);
20820
20824
  }
20821
- }, [l.isOpen, y]), K(() => {
20825
+ }, [l.isOpen, O]), Q(() => {
20822
20826
  L && r === "single" && s((M) => ({
20823
20827
  ...M,
20824
20828
  internalDate: t
20825
20829
  }));
20826
- }, [L, r, t]), K(() => {
20830
+ }, [L, r, t]), Q(() => {
20827
20831
  L && r === "range" && s((M) => ({
20828
20832
  ...M,
20829
20833
  internalRange: n || { start: null, end: null }
@@ -20838,11 +20842,11 @@ const Q5 = (o) => {
20838
20842
  openPicker: H,
20839
20843
  closePicker: j,
20840
20844
  setCurrentDate: V,
20841
- setViewMode: O,
20842
- setSelectedDate: R,
20845
+ setViewMode: y,
20846
+ setSelectedDate: E,
20843
20847
  setSelectedRange: A,
20844
20848
  setHoverDate: S,
20845
- updatePortalPosition: y,
20849
+ updatePortalPosition: O,
20846
20850
  navigate: B,
20847
20851
  handleMonthSelect: v,
20848
20852
  handleYearSelect: x,
@@ -20882,11 +20886,11 @@ const Q5 = (o) => {
20882
20886
  } else if (o.start && !o.end && L && b) {
20883
20887
  const V = new Date(d);
20884
20888
  V.setDate(d.getDate() - 1);
20885
- const O = {
20889
+ const y = {
20886
20890
  start: o.start < L ? o.start : L,
20887
20891
  end: o.start < L ? L : o.start
20888
20892
  };
20889
- m = !a(V, O);
20893
+ m = !a(V, y);
20890
20894
  }
20891
20895
  let H = !1;
20892
20896
  if (o.start && o.end && f && !w) {
@@ -20895,11 +20899,11 @@ const Q5 = (o) => {
20895
20899
  } else if (o.start && !o.end && L && b) {
20896
20900
  const V = new Date(d);
20897
20901
  V.setDate(d.getDate() + 1);
20898
- const O = {
20902
+ const y = {
20899
20903
  start: o.start < L ? o.start : L,
20900
20904
  end: o.start < L ? L : o.start
20901
20905
  };
20902
- H = !a(V, O);
20906
+ H = !a(V, y);
20903
20907
  }
20904
20908
  let j = !0;
20905
20909
  return o.start && !o.end && L ? j = L >= o.start : o.start && o.end && (j = d >= o.start), {
@@ -21035,7 +21039,7 @@ const Q5 = (o) => {
21035
21039
  },
21036
21040
  [r]
21037
21041
  );
21038
- K(() => {
21042
+ Q(() => {
21039
21043
  if (o)
21040
21044
  return document.addEventListener("mousedown", a), document.addEventListener("keydown", c), () => {
21041
21045
  document.removeEventListener("mousedown", a), document.removeEventListener("keydown", c);
@@ -21087,8 +21091,8 @@ const Q5 = (o) => {
21087
21091
  const b = o1(null);
21088
21092
  if (o === null)
21089
21093
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
21090
- const m = (O) => {
21091
- O.stopPropagation(), C || L(r);
21094
+ const m = (y) => {
21095
+ y.stopPropagation(), C || L(r);
21092
21096
  }, H = () => {
21093
21097
  !C && h && (b.current && (clearTimeout(b.current), b.current = null), h(r));
21094
21098
  }, j = () => {
@@ -21096,8 +21100,8 @@ const Q5 = (o) => {
21096
21100
  w(), b.current = null;
21097
21101
  }, 100) : w());
21098
21102
  }, V = () => {
21099
- let O = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!l && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
21100
- return C ? O += " ui-text-gray-400 ui-cursor-not-allowed" : t ? O += " ui-bg-blue-500 ui-text-white" : e ? O += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? O += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? O += " ui-bg-blue-50 ui-text-blue-500" : d ? O += " ui-bg-blue-50" : p ? O += " ui-text-blue-500" : O += "hover:ui-bg-neutral-50", `${O} ${f}`;
21103
+ let y = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!l && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
21104
+ return C ? y += " ui-text-gray-400 ui-cursor-not-allowed" : t ? y += " ui-bg-blue-500 ui-text-white" : e ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? y += " ui-bg-blue-50 ui-text-blue-500" : d ? y += " ui-bg-blue-50" : p ? y += " ui-text-blue-500" : y += "hover:ui-bg-neutral-50", `${y} ${f}`;
21101
21105
  };
21102
21106
  return g ? g({
21103
21107
  day: o,
@@ -21415,7 +21419,7 @@ const Q5 = (o) => {
21415
21419
  const L = t !== void 0 ? t : e;
21416
21420
  a || s(L), n == null || n(L);
21417
21421
  }, [a, t, e, n]);
21418
- return K(() => {
21422
+ return Q(() => {
21419
21423
  a && r !== void 0 && s(r);
21420
21424
  }, [a, r]), {
21421
21425
  value: C,
@@ -21588,26 +21592,26 @@ const Q5 = (o) => {
21588
21592
  autosize: H = !1,
21589
21593
  colorLeftIcon: j,
21590
21594
  infoTooltip: V = "",
21591
- ...O
21595
+ ...y
21592
21596
  }, B) => {
21593
21597
  const {
21594
- value: R,
21598
+ value: E,
21595
21599
  setValue: A,
21596
21600
  isControlled: S
21597
21601
  } = u6({
21598
21602
  value: C,
21599
21603
  defaultValue: d,
21600
21604
  onChange: h
21601
- }), v = (E) => {
21602
- const J = E.target.value;
21603
- A(J), w == null || w(E);
21605
+ }), v = (z) => {
21606
+ const J = z.target.value;
21607
+ A(J), w == null || w(z);
21604
21608
  }, { paddingClasses: x, getIconPosition: Z } = a6({
21605
21609
  size: n,
21606
21610
  leftSlot: a,
21607
21611
  rightSlot: c,
21608
21612
  extraSlot: l,
21609
21613
  value: C
21610
- }), { baseClasses: y, containerClasses: M, labelClasses: I } = d6({
21614
+ }), { baseClasses: O, containerClasses: M, labelClasses: I } = d6({
21611
21615
  size: n,
21612
21616
  error: r,
21613
21617
  disabled: L,
@@ -21618,10 +21622,10 @@ const Q5 = (o) => {
21618
21622
  });
21619
21623
  return l6({
21620
21624
  ref: B,
21621
- currentValue: R,
21625
+ currentValue: E,
21622
21626
  setValue: A,
21623
21627
  isControlled: S,
21624
- inputId: O.id
21628
+ inputId: y.id
21625
21629
  }), /* @__PURE__ */ u(
21626
21630
  "div",
21627
21631
  {
@@ -21663,12 +21667,12 @@ const Q5 = (o) => {
21663
21667
  {
21664
21668
  placeholder: "Placeholder",
21665
21669
  disabled: L,
21666
- value: R,
21670
+ value: E,
21667
21671
  onChange: v,
21668
21672
  name: m,
21669
- "data-input-id": O.id || "default-input",
21670
- className: y + " ui-min-w-12",
21671
- ...O
21673
+ "data-input-id": y.id || "default-input",
21674
+ className: O + " ui-min-w-12",
21675
+ ...y
21672
21676
  }
21673
21677
  ),
21674
21678
  c && /* @__PURE__ */ i(
@@ -21933,10 +21937,10 @@ const s6 = G1(
21933
21937
  hoverDate: H,
21934
21938
  closeOnSelect: j,
21935
21939
  autoCloseRange: V,
21936
- renderHeader: O,
21940
+ renderHeader: y,
21937
21941
  renderDay: B
21938
21942
  }) => {
21939
- const R = (Z) => {
21943
+ const E = (Z) => {
21940
21944
  C == null || C(Z);
21941
21945
  }, A = () => {
21942
21946
  switch (l) {
@@ -22011,11 +22015,11 @@ const s6 = G1(
22011
22015
  {
22012
22016
  currentDate: o,
22013
22017
  viewMode: l,
22014
- onNavigate: R,
22018
+ onNavigate: E,
22015
22019
  onToggleViewMode: A,
22016
22020
  onGoToToday: L,
22017
22021
  monthNames: f,
22018
- renderHeader: O
22022
+ renderHeader: y
22019
22023
  }
22020
22024
  ),
22021
22025
  /* @__PURE__ */ i("div", { className: "ui-h-full ui-p-3", children: x() }),
@@ -22049,16 +22053,16 @@ const s6 = G1(
22049
22053
  startOfWeek: H,
22050
22054
  showWeekNumbers: j,
22051
22055
  yearRange: V,
22052
- hoverDate: O,
22056
+ hoverDate: y,
22053
22057
  closeOnSelect: B,
22054
- autoCloseRange: R,
22058
+ autoCloseRange: E,
22055
22059
  calendarsCount: A = 1,
22056
22060
  mode: S = "single",
22057
22061
  onClickSelected: v = !1,
22058
22062
  renderHeader: x,
22059
22063
  renderDay: Z
22060
22064
  }) => {
22061
- const [y, M] = Y(Array(A).fill(h)), [I, E] = Y(() => {
22065
+ const [O, M] = Y(Array(A).fill(h)), [I, z] = Y(() => {
22062
22066
  const N = [];
22063
22067
  for (let $ = 0; $ < A; $++) {
22064
22068
  const k = new Date(n);
@@ -22066,18 +22070,18 @@ const s6 = G1(
22066
22070
  }
22067
22071
  return N;
22068
22072
  }), { renderPortal: J } = W5(o, r, t, 1100);
22069
- K(() => {
22073
+ Q(() => {
22070
22074
  M(Array(A).fill(h));
22071
- }, [h, A]), K(() => {
22075
+ }, [h, A]), Q(() => {
22072
22076
  const N = [];
22073
22077
  for (let $ = 0; $ < A; $++) {
22074
22078
  const k = new Date(n);
22075
22079
  k.setMonth(k.getMonth() + $), N.push(k);
22076
22080
  }
22077
- E(N);
22081
+ z(N);
22078
22082
  }, [n, A]);
22079
- const q = (N) => {
22080
- const $ = y[N];
22083
+ const G = (N) => {
22084
+ const $ = O[N];
22081
22085
  let k;
22082
22086
  switch ($) {
22083
22087
  case "days":
@@ -22092,39 +22096,39 @@ const s6 = G1(
22092
22096
  default:
22093
22097
  k = "days";
22094
22098
  }
22095
- const F = [...y];
22099
+ const F = [...O];
22096
22100
  F[N] = k, M(F);
22097
- }, z = (N, $) => {
22101
+ }, R = (N, $) => {
22098
22102
  const k = [...I];
22099
22103
  k[N] = new Date(
22100
22104
  I[N].getFullYear(),
22101
22105
  $,
22102
22106
  1
22103
- ), E(k);
22104
- const F = [...y];
22107
+ ), z(k);
22108
+ const F = [...O];
22105
22109
  F[N] = "days", M(F), p == null || p($);
22106
22110
  }, X = (N, $) => {
22107
22111
  const k = [...I];
22108
- k[N] = new Date($, I[N].getMonth(), 1), E(k);
22109
- const F = [...y];
22112
+ k[N] = new Date($, I[N].getMonth(), 1), z(k);
22113
+ const F = [...O];
22110
22114
  F[N] = "months", M(F), d == null || d($);
22111
22115
  }, n1 = (N) => {
22112
22116
  const $ = [...I];
22113
22117
  $.forEach((k, F) => {
22114
- const i1 = new Date(k);
22115
- switch (y[F]) {
22118
+ const e1 = new Date(k);
22119
+ switch (O[F]) {
22116
22120
  case "days":
22117
- i1.setMonth(i1.getMonth() + (N === "next" ? 1 : -1));
22121
+ e1.setMonth(e1.getMonth() + (N === "next" ? 1 : -1));
22118
22122
  break;
22119
22123
  case "months":
22120
- i1.setFullYear(i1.getFullYear() + (N === "next" ? 1 : -1));
22124
+ e1.setFullYear(e1.getFullYear() + (N === "next" ? 1 : -1));
22121
22125
  break;
22122
22126
  case "years":
22123
- i1.setFullYear(i1.getFullYear() + (N === "next" ? 12 : -12));
22127
+ e1.setFullYear(e1.getFullYear() + (N === "next" ? 12 : -12));
22124
22128
  break;
22125
22129
  }
22126
- $[F] = i1;
22127
- }), E($), C(N);
22130
+ $[F] = e1;
22131
+ }), z($), C(N);
22128
22132
  };
22129
22133
  return J(
22130
22134
  /* @__PURE__ */ i("div", { className: "ui-relative", children: S === "range" && A > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
@@ -22132,9 +22136,9 @@ const s6 = G1(
22132
22136
  c6,
22133
22137
  {
22134
22138
  calendarDates: I,
22135
- viewModes: y,
22139
+ viewModes: O,
22136
22140
  onNavigate: n1,
22137
- onToggleViewMode: q,
22141
+ onToggleViewMode: G,
22138
22142
  onGoToToday: L,
22139
22143
  monthNames: m,
22140
22144
  yearRange: V,
@@ -22151,14 +22155,14 @@ const s6 = G1(
22151
22155
  onDateHover: l,
22152
22156
  minDate: w,
22153
22157
  maxDate: f,
22154
- viewMode: y[$],
22158
+ viewMode: O[$],
22155
22159
  weekDays: b,
22156
22160
  monthNames: m,
22157
22161
  startOfWeek: H,
22158
22162
  showWeekNumbers: j,
22159
22163
  yearRange: V,
22160
- hoverDate: O,
22161
- onMonthSelect: (k) => z($, k),
22164
+ hoverDate: y,
22165
+ onMonthSelect: (k) => R($, k),
22162
22166
  onYearSelect: (k) => X($, k),
22163
22167
  renderDay: Z
22164
22168
  }
@@ -22189,9 +22193,9 @@ const s6 = G1(
22189
22193
  startOfWeek: H,
22190
22194
  showWeekNumbers: j,
22191
22195
  yearRange: V,
22192
- hoverDate: O,
22196
+ hoverDate: y,
22193
22197
  closeOnSelect: B,
22194
- autoCloseRange: R,
22198
+ autoCloseRange: E,
22195
22199
  renderHeader: x,
22196
22200
  renderDay: Z
22197
22201
  }
@@ -22233,20 +22237,20 @@ const s6 = G1(
22233
22237
  disabledDayClassName: H = "text-gray-400 cursor-not-allowed",
22234
22238
  rangeClassName: j = "bg-blue-100",
22235
22239
  rangeStartClassName: V = "bg-blue-500 text-white rounded-l-full",
22236
- rangeEndClassName: O = "bg-blue-500 text-white rounded-r-full",
22240
+ rangeEndClassName: y = "bg-blue-500 text-white rounded-r-full",
22237
22241
  todayClassName: B = "border border-blue-500",
22238
- showWeekNumbers: R = !1,
22242
+ showWeekNumbers: E = !1,
22239
22243
  yearRange: A = 12,
22240
22244
  initialViewMode: S = "days",
22241
22245
  closeOnSelect: v = !1,
22242
22246
  autoCloseRange: x = !0,
22243
22247
  placeholder: Z = "Seleccionar fecha",
22244
- format: y = "dd/MM/yyyy",
22248
+ format: O = "dd/MM/yyyy",
22245
22249
  calendarsCount: M = 1,
22246
22250
  renderHeader: I,
22247
- renderDay: E
22248
- } = o, { state: J, selectedDate: q, selectedRange: z, inputRef: X, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22249
- z,
22251
+ renderDay: z
22252
+ } = o, { state: J, selectedDate: G, selectedRange: R, inputRef: X, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22253
+ R,
22250
22254
  N.setSelectedRange,
22251
22255
  c,
22252
22256
  l,
@@ -22254,25 +22258,25 @@ const s6 = G1(
22254
22258
  ), k = (_) => {
22255
22259
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime()))
22256
22260
  return "";
22257
- const a1 = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0"), Q = _.getFullYear();
22258
- return y.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());
22259
22263
  }, F = (_) => {
22260
22264
  if (!_ || !_.start && !_.end) return "";
22261
- const a1 = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), T = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
22262
- return a1 && T ? `${k(_.start)} - ${k(_.end)}` : a1 ? k(_.start) : T ? k(_.end) : "";
22263
- }, 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 = (_) => {
22264
22268
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime())) {
22265
22269
  console.warn("DatePicker: Se recibió una fecha inválida:", _);
22266
22270
  return;
22267
22271
  }
22268
22272
  r === "single" ? N.setSelectedDate(_) : $(_, J.hoverDate, N.closePicker);
22269
- }, u1 = (_) => {
22273
+ }, a1 = (_) => {
22270
22274
  if (_ !== null && (!(_ instanceof Date) || isNaN(_.getTime()))) {
22271
22275
  console.warn("DatePicker: Se recibió una fecha inválida en hover:", _);
22272
22276
  return;
22273
22277
  }
22274
22278
  N.setHoverDate(_);
22275
- }, p1 = () => r === "single" ? k(q) : F(z);
22279
+ }, p1 = () => r === "single" ? k(G) : F(R);
22276
22280
  return /* @__PURE__ */ u("div", { className: `relative ${h}`, children: [
22277
22281
  /* @__PURE__ */ i(
22278
22282
  s6,
@@ -22284,7 +22288,7 @@ const s6 = G1(
22284
22288
  isOpen: J.isOpen,
22285
22289
  onInputClick: N.openPicker,
22286
22290
  className: w,
22287
- format: y
22291
+ format: O
22288
22292
  }
22289
22293
  ),
22290
22294
  /* @__PURE__ */ i(
@@ -22294,10 +22298,10 @@ const s6 = G1(
22294
22298
  onClose: N.closePicker,
22295
22299
  portalPosition: J.portalPosition,
22296
22300
  currentDate: J.currentDate,
22297
- selectedDate: q,
22298
- selectedRange: z,
22299
- onDateSelect: i1,
22300
- onDateHover: u1,
22301
+ selectedDate: G,
22302
+ selectedRange: R,
22303
+ onDateSelect: e1,
22304
+ onDateHover: a1,
22301
22305
  onViewModeChange: N.setViewMode,
22302
22306
  onNavigate: N.navigate,
22303
22307
  onMonthSelect: N.handleMonthSelect,
@@ -22310,7 +22314,7 @@ const s6 = G1(
22310
22314
  weekDays: C,
22311
22315
  monthNames: p,
22312
22316
  startOfWeek: L,
22313
- showWeekNumbers: R,
22317
+ showWeekNumbers: E,
22314
22318
  yearRange: A,
22315
22319
  hoverDate: J.hoverDate,
22316
22320
  closeOnSelect: v,
@@ -22318,7 +22322,7 @@ const s6 = G1(
22318
22322
  calendarsCount: M,
22319
22323
  mode: r,
22320
22324
  renderHeader: I,
22321
- renderDay: E
22325
+ renderDay: z
22322
22326
  }
22323
22327
  )
22324
22328
  ] });
@@ -22327,7 +22331,7 @@ const s6 = G1(
22327
22331
  /* @__PURE__ */ i("h2", { className: U("ui-text-2xl ui-font-bold", r), children: o })
22328
22332
  ] }), v9 = (o, r = {}) => {
22329
22333
  const { enterDelay: t = 10, exitDelay: n = 300 } = r, [e, a] = Y(!1), [c, l] = Y(!1);
22330
- return K(() => {
22334
+ return Q(() => {
22331
22335
  if (o) {
22332
22336
  a(!0);
22333
22337
  const s = setTimeout(() => {
@@ -22342,14 +22346,14 @@ const s6 = G1(
22342
22346
  }, [o, t, n]), { isVisible: e, isAnimating: c };
22343
22347
  }, j9 = (o) => {
22344
22348
  const r = typeof window < "u";
22345
- K(() => {
22349
+ Q(() => {
22346
22350
  if (r)
22347
22351
  return o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
22348
22352
  document.body.style.overflow = "";
22349
22353
  };
22350
22354
  }, [o, r]);
22351
22355
  }, J0 = (o, r, t = !1) => {
22352
- K(() => {
22356
+ Q(() => {
22353
22357
  if (!o || t) return;
22354
22358
  const n = (e) => {
22355
22359
  e.key === "Escape" && r();
@@ -22357,7 +22361,7 @@ const s6 = G1(
22357
22361
  return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
22358
22362
  }, [o, r, t]);
22359
22363
  }, V9 = (o, r, t = !1) => {
22360
- K(() => {
22364
+ Q(() => {
22361
22365
  if (!o || t || !r.current) return;
22362
22366
  const n = [
22363
22367
  "button",
@@ -22374,7 +22378,7 @@ const s6 = G1(
22374
22378
  return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
22375
22379
  }, [o, t, r]);
22376
22380
  }, h6 = (o, r) => {
22377
- K(() => {
22381
+ Q(() => {
22378
22382
  o && r.current && requestAnimationFrame(() => {
22379
22383
  var t;
22380
22384
  (t = r.current) == null || t.focus();
@@ -22382,14 +22386,14 @@ const s6 = G1(
22382
22386
  }, [o, r]);
22383
22387
  }, H9 = () => {
22384
22388
  const o = typeof window < "u", [r] = Y(() => o ? document.createElement("div") : null);
22385
- return K(() => {
22389
+ return Q(() => {
22386
22390
  if (!(!r || !o))
22387
22391
  return document.body.appendChild(r), () => {
22388
22392
  document.body.contains(r) && document.body.removeChild(r);
22389
22393
  };
22390
22394
  }, [r, o]), r;
22391
22395
  }, w6 = (o, r, t, n = !1) => {
22392
- K(() => {
22396
+ Q(() => {
22393
22397
  if (!o || n) return;
22394
22398
  const e = (a) => {
22395
22399
  var s;
@@ -22412,16 +22416,16 @@ const s6 = G1(
22412
22416
  onOutsideClick: s,
22413
22417
  disableSameTypeCheck: C = !1
22414
22418
  }) => {
22415
- K(() => {
22419
+ Q(() => {
22416
22420
  if (!o || r || !c) return;
22417
22421
  const p = (L) => {
22418
- var V, O;
22419
- const h = L.target, w = (V = t.current) == null ? void 0 : V.contains(h), f = (O = n == null ? void 0 : n.current) == null ? void 0 : O.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 = (() => {
22422
+ var V, y;
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 = (() => {
22420
22424
  let B = h;
22421
22425
  for (; B && B !== document.body; ) {
22422
- const R = B.attributes;
22423
- for (let S = 0; S < R.length; S++) {
22424
- const v = R[S];
22426
+ const E = B.attributes;
22427
+ for (let S = 0; S < E.length; S++) {
22428
+ const v = E[S];
22425
22429
  if (v.name.startsWith("data-") && v.name.endsWith("-id")) {
22426
22430
  if (a === "dropdown" && (v.name.includes("popup") || v.name.includes("dropdown")))
22427
22431
  continue;
@@ -22495,14 +22499,14 @@ const s6 = G1(
22495
22499
  disabledSuccessButton: j = !1,
22496
22500
  disabledCancelButton: V = !1
22497
22501
  }) => {
22498
- const O = H9(), { isVisible: B, isAnimating: R } = v9(o), A = o1(null);
22502
+ const y = H9(), { isVisible: B, isAnimating: E } = v9(o), A = o1(null);
22499
22503
  j9(o), J0(o, r, l), V9(o, A, !s);
22500
22504
  const S = () => {
22501
22505
  w && w(), H && r();
22502
22506
  }, v = () => {
22503
22507
  f && f(), m && r();
22504
22508
  };
22505
- if (!O || !B) return null;
22509
+ if (!y || !B) return null;
22506
22510
  const x = /* @__PURE__ */ u(
22507
22511
  "div",
22508
22512
  {
@@ -22532,7 +22536,7 @@ const s6 = G1(
22532
22536
  C === "right" ? "ui-ml-auto" : "ui-mr-auto"
22533
22537
  ),
22534
22538
  style: {
22535
- 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%)"
22536
22540
  },
22537
22541
  children: /* @__PURE__ */ u(m1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
22538
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 }) }) }),
@@ -22559,7 +22563,7 @@ const s6 = G1(
22559
22563
  ]
22560
22564
  }
22561
22565
  );
22562
- return h9.createPortal(x, O);
22566
+ return h9.createPortal(x, y);
22563
22567
  }, Ai = ({ className: o }) => /* @__PURE__ */ i("div", { className: U("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", o) }), O9 = ({
22564
22568
  children: o,
22565
22569
  icon: r,
@@ -22780,41 +22784,41 @@ const s6 = G1(
22780
22784
  onOpenChange: w,
22781
22785
  withCheckbox: f = !1
22782
22786
  }) => {
22783
- const g = t9(), b = C || `dropdown-${g}`, [m, H] = Y(!1), [j, V] = Y(!1), [O, B] = Y(""), [R, A] = Y("bottom"), [S, v] = Y({}), x = o1(null), Z = o1(null), y = 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(
22784
22788
  (T) => T == null ? [] : Array.isArray(T) ? T : [T],
22785
22789
  []
22786
22790
  ), I = P(
22787
22791
  (T) => T == null || T === "" ? "" : Array.isArray(T) ? T[0] || "" : T,
22788
22792
  []
22789
- ), [E, J] = Y(() => d ? M(r) : I(r)), q = o !== void 0, z = q ? o : E, X = P(
22793
+ ), [z, J] = Y(() => d ? M(r) : I(r)), G = o !== void 0, R = G ? o : z, X = P(
22790
22794
  (T) => {
22791
- q || J(T), a == null || a(T);
22795
+ G || J(T), a == null || a(T);
22792
22796
  },
22793
- [q, a]
22797
+ [G, a]
22794
22798
  );
22795
- K(() => {
22796
- if (q && o !== void 0)
22799
+ Q(() => {
22800
+ if (G && o !== void 0)
22797
22801
  if (d) {
22798
22802
  const T = M(o);
22799
- J((Q) => JSON.stringify(Q) !== JSON.stringify(T) ? T : Q);
22803
+ J((K) => JSON.stringify(K) !== JSON.stringify(T) ? T : K);
22800
22804
  } else {
22801
22805
  const T = I(o);
22802
- J((Q) => Q !== T ? T : Q);
22806
+ J((K) => K !== T ? T : K);
22803
22807
  }
22804
- }, [o, q, d, M, I]);
22805
- const n1 = d ? t.filter((T) => M(z).includes(T[e])) : [
22806
- t.find((T) => z === "" || z === null || z === void 0 ? !1 : T[e] === -1 ? z === -1 || z === "-1" : T[e] === z)
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)
22807
22811
  ].filter(Boolean), N = (() => {
22808
- if (!l || !O)
22812
+ if (!l || !y)
22809
22813
  return t.filter((l1) => {
22810
22814
  if (d) {
22811
- const d1 = M(z).includes(l1[e]);
22815
+ const d1 = M(R).includes(l1[e]);
22812
22816
  return f ? !0 : !d1;
22813
22817
  }
22814
- return !(l1[e] === -1 && (z === -1 || z === "-1"));
22818
+ return !(l1[e] === -1 && (R === -1 || R === "-1"));
22815
22819
  });
22816
- const T = O.toLowerCase(), Q = t.filter((l1) => l1.isGroupTitle ? !1 : l1[n].toLowerCase().includes(T)), e1 = [], W = /* @__PURE__ */ new Set();
22817
- 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) => {
22818
22822
  const d1 = t.indexOf(l1);
22819
22823
  let r1 = null;
22820
22824
  for (let s1 = d1 - 1; s1 >= 0; s1--)
@@ -22822,31 +22826,31 @@ const s6 = G1(
22822
22826
  r1 = t[s1];
22823
22827
  break;
22824
22828
  }
22825
- r1 && !W.has(r1[e]) && (e1.push(r1), W.add(r1[e])), e1.push(l1);
22826
- }), e1;
22829
+ r1 && !W.has(r1[e]) && (i1.push(r1), W.add(r1[e])), i1.push(l1);
22830
+ }), i1;
22827
22831
  })(), $ = P(() => {
22828
- var e1, W;
22829
- const T = (e1 = y.current) == null ? void 0 : e1.querySelector("input");
22830
- return T || ((W = y.current) == null ? void 0 : W.querySelector(
22832
+ var i1, W;
22833
+ const T = (i1 = O.current) == null ? void 0 : i1.querySelector("input");
22834
+ return T || ((W = O.current) == null ? void 0 : W.querySelector(
22831
22835
  '[data-dropdown-input="true"]'
22832
22836
  ));
22833
22837
  }, []), k = P(() => {
22834
22838
  const T = $();
22835
22839
  T && requestAnimationFrame(() => {
22836
- var E1;
22837
- const Q = T.getBoundingClientRect(), e1 = window.innerHeight;
22840
+ var z1;
22841
+ const K = T.getBoundingClientRect(), i1 = window.innerHeight;
22838
22842
  let W = 0;
22839
22843
  Z.current && (W = Z.current.offsetHeight), W === 0 && (W = Math.min(200, N.length * 40));
22840
- 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";
22841
22845
  A(r1);
22842
- let s1 = 0, B1 = 0, k1 = Q.width;
22846
+ let s1 = 0, B1 = 0, k1 = K.width;
22843
22847
  if (!h)
22844
- 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;
22845
22849
  else {
22846
- const g1 = (E1 = y.current) == null ? void 0 : E1.getBoundingClientRect();
22847
- if (!g1) return;
22848
- const T1 = Q.top - g1.top, H1 = Q.left - g1.left;
22849
- r1 === "bottom" ? s1 = T1 + Q.height + 4 : s1 = T1 - W - 4, B1 = H1;
22850
+ const f1 = (z1 = O.current) == null ? void 0 : z1.getBoundingClientRect();
22851
+ if (!f1) return;
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;
22850
22854
  }
22851
22855
  const V1 = 1100, I1 = parseInt(b.replace(/\D/g, "")) || 0, P1 = V1 + I1 % 100, X1 = {
22852
22856
  position: h ? "absolute" : "fixed",
@@ -22860,60 +22864,60 @@ const s6 = G1(
22860
22864
  }, [$, N.length, b, h]), F = P(() => {
22861
22865
  if (!Z.current || !n1.length)
22862
22866
  return;
22863
- const Q = Z.current.querySelector(".ui-overflow-y-auto");
22864
- if (!Q)
22867
+ const K = Z.current.querySelector(".ui-overflow-y-auto");
22868
+ if (!K)
22865
22869
  return;
22866
- const e1 = n1[0];
22867
- if (!e1) return;
22868
- const W = Q.querySelector(
22869
- `[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]}"]`
22870
22874
  );
22871
22875
  if (!W)
22872
22876
  return;
22873
- const l1 = Q.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22874
- Q.scrollTo({
22877
+ const l1 = K.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22878
+ K.scrollTo({
22875
22879
  top: Math.max(0, s1),
22876
22880
  behavior: "smooth"
22877
22881
  });
22878
- }, [n1, n]), i1 = (T) => {
22879
- 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(() => {
22880
22884
  H(!0), n0.add(b), setTimeout(() => {
22881
22885
  k(), setTimeout(() => {
22882
22886
  F();
22883
22887
  }, 50);
22884
22888
  }, 50);
22885
22889
  }, 50)));
22886
- }, u1 = () => {
22890
+ }, a1 = () => {
22887
22891
  V(!0), setTimeout(() => {
22888
22892
  H(!1), V(!1), n0.delete(b);
22889
22893
  }, 150);
22890
- }, p1 = (T, Q) => {
22891
- if (Q.stopPropagation(), !T.disabled) {
22894
+ }, p1 = (T, K) => {
22895
+ if (K.stopPropagation(), !T.disabled) {
22892
22896
  if (d) {
22893
- const e1 = M(z), W = T[e];
22894
- 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))
22895
22899
  return;
22896
- 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];
22897
22901
  X(l1);
22898
22902
  } else {
22899
- const e1 = T[e] === -1 ? -1 : T[e];
22900
- X(e1), B(""), u1();
22903
+ const i1 = T[e] === -1 ? -1 : T[e];
22904
+ X(i1), B(""), a1();
22901
22905
  }
22902
22906
  c == null || c(T);
22903
22907
  }
22904
22908
  }, _ = (T) => {
22905
22909
  B(T.target.value);
22906
- }, a1 = (T) => {
22910
+ }, u1 = (T) => {
22907
22911
  T.stopPropagation(), X(d ? [] : ""), B("");
22908
22912
  };
22909
- return K(() => {
22913
+ return Q(() => {
22910
22914
  w == null || w(m);
22911
22915
  }, [m, w]), y9({
22912
22916
  isActive: m,
22913
22917
  // Simplificar condición para mejorar detección
22914
22918
  disabled: p,
22915
22919
  elementRef: Z,
22916
- containerRef: h ? void 0 : y,
22920
+ containerRef: h ? void 0 : O,
22917
22921
  // No usar containerRef cuando absolute=true
22918
22922
  elementId: b,
22919
22923
  elementType: "dropdown",
@@ -22922,50 +22926,50 @@ const s6 = G1(
22922
22926
  // Deshabilitar isInsideSameType cuando absolute=true
22923
22927
  onOutsideClick: () => {
22924
22928
  setTimeout(() => {
22925
- u1();
22929
+ a1();
22926
22930
  }, 0);
22927
22931
  }
22928
- }), K(() => {
22932
+ }), Q(() => {
22929
22933
  const T = () => {
22930
- m && u1();
22934
+ m && a1();
22931
22935
  };
22932
22936
  return document.addEventListener("close-all-dropdowns", T), () => {
22933
22937
  document.removeEventListener("close-all-dropdowns", T);
22934
22938
  };
22935
- }, [m, u1]), K(() => {
22939
+ }, [m, a1]), Q(() => {
22936
22940
  if (m) {
22937
22941
  const T = () => {
22938
22942
  k();
22939
- }, Q = () => {
22943
+ }, K = () => {
22940
22944
  m && !j && k();
22941
22945
  };
22942
- return window.addEventListener("resize", T), window.addEventListener("scroll", Q, !1), document.addEventListener("scroll", Q, !1), () => {
22943
- 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);
22944
22948
  };
22945
22949
  }
22946
22950
  }, [m, k, j]), {
22947
22951
  // Estado
22948
22952
  isOpen: m,
22949
22953
  isClosing: j,
22950
- searchValue: O,
22951
- selectedValue: z,
22954
+ searchValue: y,
22955
+ selectedValue: R,
22952
22956
  selectedOptions: n1,
22953
22957
  filteredOptions: N,
22954
- position: R,
22958
+ position: E,
22955
22959
  dropdownStyle: S,
22956
- isControlled: q,
22960
+ isControlled: G,
22957
22961
  multiple: d,
22958
22962
  // Referencias
22959
22963
  inputRef: x,
22960
22964
  dropdownRef: Z,
22961
- containerRef: y,
22965
+ containerRef: O,
22962
22966
  dropdownUniqueId: b,
22963
22967
  // Funciones
22964
- toggleDropdown: i1,
22965
- closeDropdown: u1,
22968
+ toggleDropdown: e1,
22969
+ closeDropdown: a1,
22966
22970
  handleOptionSelect: p1,
22967
22971
  handleSearchChange: _,
22968
- handleClear: a1,
22972
+ handleClear: u1,
22969
22973
  calculatePosition: k,
22970
22974
  setValue: X,
22971
22975
  scrollToSelectedOption: F,
@@ -23018,17 +23022,17 @@ const s6 = G1(
23018
23022
  idName: w
23019
23023
  }) => {
23020
23024
  const [f, g] = Y(!1), [b, m] = Y(null), H = o1(null);
23021
- return K(() => {
23025
+ return Q(() => {
23022
23026
  if (!H.current || t.length === 0) {
23023
23027
  g(!1), m(null);
23024
23028
  return;
23025
23029
  }
23026
23030
  const V = setTimeout(() => {
23027
- const O = H.current;
23028
- if (O) {
23029
- const B = O.scrollHeight, R = O.clientHeight;
23031
+ const y = H.current;
23032
+ if (y) {
23033
+ const B = y.scrollHeight, E = y.clientHeight;
23030
23034
  if (b === null) {
23031
- m(R);
23035
+ m(E);
23032
23036
  return;
23033
23037
  }
23034
23038
  const A = B > b;
@@ -23116,21 +23120,21 @@ const s6 = G1(
23116
23120
  onValueChange: H,
23117
23121
  onOptionSelect: j,
23118
23122
  onCheckboxChange: V,
23119
- searchable: O = !1,
23123
+ searchable: y = !1,
23120
23124
  maxHeight: B = "200px",
23121
- closeOnClickOutside: R = !0,
23125
+ closeOnClickOutside: E = !0,
23122
23126
  dropdownId: A,
23123
23127
  multiple: S = !1,
23124
23128
  maxSelectedItems: v,
23125
23129
  selectedItemsDisplay: x = "tags",
23126
23130
  absolute: Z = !1,
23127
- footer: y = !1,
23131
+ footer: O = !1,
23128
23132
  defaultOptionSelected: M = !1,
23129
23133
  withCheckbox: I = !1,
23130
- onHandleAccept: E,
23134
+ onHandleAccept: z,
23131
23135
  ...J
23132
- }, q) => {
23133
- const z = 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 ? [
23134
23138
  {
23135
23139
  ...{
23136
23140
  label: f || "Selecciona una opción",
@@ -23144,10 +23148,10 @@ const s6 = G1(
23144
23148
  ...g.filter((D) => D[m] !== -1)
23145
23149
  ] : g, _ = L !== void 0 ? L : M && !S ? -1 : h, {
23146
23150
  // Estado
23147
- isOpen: a1,
23151
+ isOpen: u1,
23148
23152
  isClosing: T,
23149
- searchValue: Q,
23150
- selectedValue: e1,
23153
+ searchValue: K,
23154
+ selectedValue: i1,
23151
23155
  selectedOptions: W,
23152
23156
  filteredOptions: l1,
23153
23157
  dropdownStyle: d1,
@@ -23162,8 +23166,8 @@ const s6 = G1(
23162
23166
  closeDropdown: P1,
23163
23167
  handleOptionSelect: Q0,
23164
23168
  handleSearchChange: X1,
23165
- handleClear: E1,
23166
- calculatePosition: g1,
23169
+ handleClear: z1,
23170
+ calculatePosition: f1,
23167
23171
  scrollToSelectedOption: T1,
23168
23172
  setValue: H1,
23169
23173
  normalizeToArray: W0
@@ -23175,8 +23179,8 @@ const s6 = G1(
23175
23179
  idName: m,
23176
23180
  onValueChange: H,
23177
23181
  onOptionSelect: j,
23178
- searchable: O,
23179
- closeOnClickOutside: R,
23182
+ searchable: y,
23183
+ closeOnClickOutside: E,
23180
23184
  dropdownId: A,
23181
23185
  disabled: w,
23182
23186
  multiple: S,
@@ -23190,19 +23194,19 @@ const s6 = G1(
23190
23194
  }
23191
23195
  }), A1 = (D, c1) => {
23192
23196
  if (S) {
23193
- const L1 = W0(e1), G = D[m];
23197
+ const L1 = W0(i1), q = D[m];
23194
23198
  if (c1) {
23195
- if (!L1.includes(G)) {
23196
- const h1 = [...L1, G];
23199
+ if (!L1.includes(q)) {
23200
+ const h1 = [...L1, q];
23197
23201
  H1(h1);
23198
23202
  }
23199
23203
  } else {
23200
- const h1 = L1.filter((y1) => y1 !== G);
23204
+ const h1 = L1.filter((y1) => y1 !== q);
23201
23205
  H1(h1);
23202
23206
  }
23203
23207
  }
23204
23208
  };
23205
- K(() => {
23209
+ Q(() => {
23206
23210
  if (r1 && L !== void 0)
23207
23211
  if (L === "" || L === -1 || L === "-1")
23208
23212
  n1((D) => D !== c ? c : D), $((D) => D !== null ? null : D);
@@ -23212,29 +23216,29 @@ const s6 = G1(
23212
23216
  );
23213
23217
  if (D) {
23214
23218
  const c1 = D.icon || c, L1 = D.iconColor || null;
23215
- n1((G) => G !== c1 ? c1 : G), $((G) => G !== L1 ? L1 : G);
23219
+ n1((q) => q !== c1 ? c1 : q), $((q) => q !== L1 ? L1 : q);
23216
23220
  }
23217
23221
  }
23218
23222
  }, [L, r1, p1, b, m, c]), o0(
23219
- q,
23223
+ G,
23220
23224
  () => ({
23221
- getValue: () => e1,
23225
+ getValue: () => i1,
23222
23226
  setValue: (D) => {
23223
23227
  r1 || H1(D), H == null || H(D);
23224
23228
  },
23225
23229
  focus: () => {
23226
23230
  var D, c1;
23227
- S && x === "tags" ? (D = z.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();
23228
23232
  },
23229
23233
  blur: () => {
23230
23234
  var D, c1;
23231
- S && x === "tags" ? (D = z.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();
23232
23236
  },
23233
23237
  clear: () => {
23234
23238
  r1 || H1(S ? [] : ""), H == null || H(S ? [] : "");
23235
23239
  },
23236
23240
  open: () => {
23237
- w || (g1(), setTimeout(() => {
23241
+ w || (f1(), setTimeout(() => {
23238
23242
  I1();
23239
23243
  }, 50));
23240
23244
  },
@@ -23243,10 +23247,10 @@ const s6 = G1(
23243
23247
  }
23244
23248
  }),
23245
23249
  [
23246
- e1,
23250
+ i1,
23247
23251
  r1,
23248
23252
  w,
23249
- g1,
23253
+ f1,
23250
23254
  H,
23251
23255
  P1,
23252
23256
  S,
@@ -23254,40 +23258,40 @@ const s6 = G1(
23254
23258
  I1,
23255
23259
  x
23256
23260
  ]
23257
- ), K(() => {
23258
- if (a1 && W.length > 0) {
23261
+ ), Q(() => {
23262
+ if (u1 && W.length > 0) {
23259
23263
  const D = setTimeout(() => {
23260
23264
  T1();
23261
23265
  }, 150);
23262
23266
  return () => clearTimeout(D);
23263
23267
  }
23264
- }, [a1, W, T1]), K(() => {
23265
- if (a1 && S && x === "tags") {
23266
- const D = z.current;
23268
+ }, [u1, W, T1]), Q(() => {
23269
+ if (u1 && S && x === "tags") {
23270
+ const D = R.current;
23267
23271
  if (!D) return;
23268
23272
  const c1 = new ResizeObserver(() => {
23269
23273
  setTimeout(() => {
23270
- g1();
23274
+ f1();
23271
23275
  }, 50);
23272
23276
  });
23273
23277
  return c1.observe(D), () => {
23274
23278
  c1.disconnect();
23275
23279
  };
23276
23280
  }
23277
- }, [a1, S, x, g1]), K(() => {
23278
- if (a1 && S && x === "tags") {
23281
+ }, [u1, S, x, f1]), Q(() => {
23282
+ if (u1 && S && x === "tags") {
23279
23283
  const D = setTimeout(() => {
23280
- g1();
23284
+ f1();
23281
23285
  }, 100);
23282
23286
  return () => clearTimeout(D);
23283
23287
  }
23284
- }, [W, a1, S, x, g1]);
23288
+ }, [W, u1, S, x, f1]);
23285
23289
  const n9 = (D) => {
23286
23290
  if (S) {
23287
- const L1 = W0(e1).filter((G) => G !== D);
23291
+ const L1 = W0(i1).filter((q) => q !== D);
23288
23292
  if (H1(L1), I && A1) {
23289
- const G = g.find((h1) => h1[m] === D);
23290
- G && A1(G, !1);
23293
+ const q = g.find((h1) => h1[m] === D);
23294
+ q && A1(q, !1);
23291
23295
  }
23292
23296
  }
23293
23297
  }, $9 = () => {
@@ -23307,9 +23311,9 @@ const s6 = G1(
23307
23311
  return D ? D[m] === -1 || D[b] === -1 || D[b] === "-1" ? f : D[b] || "" : "";
23308
23312
  }
23309
23313
  }, P9 = () => {
23310
- if (!a1 || !d1.top) return null;
23311
- const D = T ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (G, h1) => {
23312
- 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);
23313
23317
  }, L1 = /* @__PURE__ */ u(
23314
23318
  "div",
23315
23319
  {
@@ -23324,12 +23328,12 @@ const s6 = G1(
23324
23328
  zIndex: d1.zIndex
23325
23329
  },
23326
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}`,
23327
- onClick: (G) => G.stopPropagation(),
23331
+ onClick: (q) => q.stopPropagation(),
23328
23332
  children: [
23329
- /* @__PURE__ */ i("div", { children: O && /* @__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(
23330
23334
  N1,
23331
23335
  {
23332
- value: Q,
23336
+ value: K,
23333
23337
  onChange: X1,
23334
23338
  placeholder: s,
23335
23339
  leftSlot: "SearchOutlined",
@@ -23338,53 +23342,53 @@ const s6 = G1(
23338
23342
  size: "sm"
23339
23343
  }
23340
23344
  ) }) }),
23341
- O && /* @__PURE__ */ i(U1, {}),
23342
- /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: l1.length > 0 ? l1.map((G) => {
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((q) => {
23343
23347
  const h1 = S ? W.some(
23344
- (y1) => y1 && y1[m] === G[m]
23345
- ) : 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;
23346
23350
  return I ? /* @__PURE__ */ i(
23347
23351
  k9,
23348
23352
  {
23349
- disabled: G.disabled,
23353
+ disabled: q.disabled,
23350
23354
  current: h1 ? "blue" : !1,
23351
- "data-option-value": G[m],
23352
- icon: G.icon,
23353
- iconColor: G.iconColor,
23355
+ "data-option-value": q[m],
23356
+ icon: q.icon,
23357
+ iconColor: q.iconColor,
23354
23358
  checkboxProps: {
23355
23359
  checked: h1,
23356
- onChange: (y1) => A1 == null ? void 0 : A1(G, y1),
23357
- disabled: G.disabled
23360
+ onChange: (y1) => A1 == null ? void 0 : A1(q, y1),
23361
+ disabled: q.disabled
23358
23362
  },
23359
- isGroupTitle: G.isGroupTitle,
23360
- groupTitle: G.label,
23361
- children: G[b]
23363
+ isGroupTitle: q.isGroupTitle,
23364
+ groupTitle: q.label,
23365
+ children: q[b]
23362
23366
  },
23363
- G[m] || G[b]
23367
+ q[m] || q[b]
23364
23368
  ) : /* @__PURE__ */ i(
23365
23369
  O9,
23366
23370
  {
23367
- onClick: (y1) => c1(G, y1),
23368
- disabled: G.disabled,
23371
+ onClick: (y1) => c1(q, y1),
23372
+ disabled: q.disabled,
23369
23373
  current: h1 ? "blue" : !1,
23370
- "data-option-value": G[m],
23371
- icon: G.icon,
23372
- iconColor: G.iconColor,
23373
- children: G[b]
23374
+ "data-option-value": q[m],
23375
+ icon: q.icon,
23376
+ iconColor: q.iconColor,
23377
+ children: q[b]
23374
23378
  },
23375
- G[m] || G[b]
23379
+ q[m] || q[b]
23376
23380
  );
23377
- }) : 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: [
23378
23382
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(j1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
23379
23383
  /* @__PURE__ */ u("p", { className: "ui-font-semibold ui-text-neutral-800", children: [
23380
23384
  C,
23381
23385
  ' "',
23382
- Q,
23386
+ K,
23383
23387
  '"'
23384
23388
  ] }),
23385
23389
  /* @__PURE__ */ i("p", { className: "ui-mt-2 ui-text-xs ui-text-neutral-500", children: p })
23386
23390
  ] }) : /* @__PURE__ */ i("div", { className: "ui-px-3 ui-text-center ui-text-sm ui-text-neutral-500", children: "Sin opciones" }) }),
23387
- y && /* @__PURE__ */ u($1, { children: [
23391
+ O && /* @__PURE__ */ u($1, { children: [
23388
23392
  /* @__PURE__ */ i(U1, {}),
23389
23393
  /* @__PURE__ */ u("div", { className: "ui-flex ui-min-w-[200px] ui-gap-x-2 ui-px-4 ui-py-2", children: [
23390
23394
  /* @__PURE__ */ i(
@@ -23395,7 +23399,7 @@ const s6 = G1(
23395
23399
  variant: "outlined",
23396
23400
  size: "sm",
23397
23401
  fullWidth: !0,
23398
- onClick: E1,
23402
+ onClick: z1,
23399
23403
  children: "Limpiar"
23400
23404
  }
23401
23405
  ),
@@ -23407,7 +23411,7 @@ const s6 = G1(
23407
23411
  );
23408
23412
  return Z ? L1 : D1(L1, document.body);
23409
23413
  };
23410
- return K(() => {
23414
+ return Q(() => {
23411
23415
  c && n1(c);
23412
23416
  }, [c]), /* @__PURE__ */ u(
23413
23417
  "div",
@@ -23424,10 +23428,10 @@ const s6 = G1(
23424
23428
  selectedOptions: W,
23425
23429
  handleRemoveSelected: n9,
23426
23430
  toggleDropdown: I1,
23427
- isOpen: a1,
23431
+ isOpen: u1,
23428
23432
  isOpening: k,
23429
23433
  setIsOpening: F,
23430
- customInputRef: z,
23434
+ customInputRef: R,
23431
23435
  disabled: w,
23432
23436
  error: t,
23433
23437
  helperText: n || "",
@@ -23457,7 +23461,7 @@ const s6 = G1(
23457
23461
  readOnly: !0,
23458
23462
  onClick: (D) => I1(D),
23459
23463
  onClickExtraSlot: () => I1(),
23460
- extraSlot: a1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23464
+ extraSlot: u1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23461
23465
  name: o,
23462
23466
  autosize: !0,
23463
23467
  ...J
@@ -23483,7 +23487,7 @@ const s6 = G1(
23483
23487
  F1.displayName = "Dropdown";
23484
23488
  const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23485
23489
  const [n, e] = Y(!1), [a, c] = Y(() => (t || "").length);
23486
- return K(() => {
23490
+ return Q(() => {
23487
23491
  const C = (t || "").length;
23488
23492
  c((p) => p !== C ? C : p);
23489
23493
  }, [t]), { isFocused: n, setIsFocused: e, count: a, handleChange: (C) => {
@@ -23611,61 +23615,61 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23611
23615
  absolute: s = !1
23612
23616
  }) => {
23613
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(() => {
23614
- const B = b.current, R = m.current;
23615
- if (!B || !R) return;
23616
- 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();
23617
23621
  if (S.width === 0 || S.height === 0)
23618
23622
  return;
23619
23623
  let v = 0, x = 0;
23620
23624
  if (s) {
23621
- const E = B.offsetTop, J = B.offsetLeft, q = B.offsetWidth, z = B.offsetHeight;
23625
+ const z = B.offsetTop, J = B.offsetLeft, G = B.offsetWidth, R = B.offsetHeight;
23622
23626
  switch (o) {
23623
23627
  case "top":
23624
- v = E - S.height - r, x = J + (q - S.width) / 2;
23628
+ v = z - S.height - r, x = J + (G - S.width) / 2;
23625
23629
  break;
23626
23630
  case "bottom":
23627
23631
  case "bottom-center":
23628
- v = E + z + r, x = J + (q - S.width) / 2;
23632
+ v = z + R + r, x = J + (G - S.width) / 2;
23629
23633
  break;
23630
23634
  case "bottom-left":
23631
- v = E + z + r, x = J;
23635
+ v = z + R + r, x = J;
23632
23636
  break;
23633
23637
  case "bottom-right":
23634
- v = E + z + r, x = J + q - S.width;
23638
+ v = z + R + r, x = J + G - S.width;
23635
23639
  break;
23636
23640
  case "left":
23637
- v = E, x = J - S.width - r;
23641
+ v = z, x = J - S.width - r;
23638
23642
  break;
23639
23643
  case "right":
23640
- v = E, x = J + q + r;
23644
+ v = z, x = J + G + r;
23641
23645
  break;
23642
23646
  }
23643
23647
  } else {
23644
- const E = window.innerWidth, J = window.innerHeight, q = A.top, z = 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;
23645
23649
  switch (o) {
23646
23650
  case "top":
23647
- v = q - S.height - r, x = z + (X - S.width) / 2;
23651
+ v = G - S.height - r, x = R + (X - S.width) / 2;
23648
23652
  break;
23649
23653
  case "bottom":
23650
23654
  case "bottom-center":
23651
- v = q + n1 + r, x = z + (X - S.width) / 2;
23655
+ v = G + n1 + r, x = R + (X - S.width) / 2;
23652
23656
  break;
23653
23657
  case "bottom-left":
23654
- v = q + n1 + r, x = z;
23658
+ v = G + n1 + r, x = R;
23655
23659
  break;
23656
23660
  case "bottom-right":
23657
- v = q + n1 + r, x = z + X - S.width;
23661
+ v = G + n1 + r, x = R + X - S.width;
23658
23662
  break;
23659
23663
  case "left":
23660
- v = q, x = z - S.width - r;
23664
+ v = G, x = R - S.width - r;
23661
23665
  break;
23662
23666
  case "right":
23663
- v = q, x = z + X + r;
23667
+ v = G, x = R + X + r;
23664
23668
  break;
23665
23669
  }
23666
- x < 0 && (x = 0), x + S.width > E && (x = E - 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));
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));
23667
23671
  }
23668
- const Z = 1e3, y = parseInt(p.replace(/\D/g, "")) || 0, M = Z + y % 100, I = {
23672
+ const Z = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, M = Z + O % 100, I = {
23669
23673
  position: s ? "absolute" : "fixed",
23670
23674
  top: `${v}px`,
23671
23675
  left: `${x}px`,
@@ -23673,16 +23677,16 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23673
23677
  };
23674
23678
  w(I), g(!0);
23675
23679
  }, [o, r, p, s]), V = (B) => {
23676
- B && B.stopPropagation(), !l && (d ? O() : (v6(p), w({}), g(!1), L(!0), e0.add(p), a == null || a()));
23677
- }, O = () => {
23680
+ B && B.stopPropagation(), !l && (d ? y() : (v6(p), w({}), g(!1), L(!0), e0.add(p), a == null || a()));
23681
+ }, y = () => {
23678
23682
  L(!1), g(!1), e0.delete(p), c == null || c();
23679
23683
  };
23680
- return K(() => {
23684
+ return Q(() => {
23681
23685
  if (d) {
23682
23686
  const B = () => {
23683
- const R = m.current;
23684
- if (R) {
23685
- const A = R.getBoundingClientRect();
23687
+ const E = m.current;
23688
+ if (E) {
23689
+ const A = E.getBoundingClientRect();
23686
23690
  A.width > 0 && A.height > 0 && A.width !== 0 && A.height !== 0 ? j() : setTimeout(() => {
23687
23691
  requestAnimationFrame(B);
23688
23692
  }, 10);
@@ -23692,16 +23696,16 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23692
23696
  requestAnimationFrame(B);
23693
23697
  }, 0);
23694
23698
  }
23695
- }, [d, j]), K(() => {
23699
+ }, [d, j]), Q(() => {
23696
23700
  if (!d || !f || s) return;
23697
23701
  let B = !1;
23698
- const R = () => {
23702
+ const E = () => {
23699
23703
  B || (requestAnimationFrame(() => {
23700
23704
  j(), B = !1;
23701
23705
  }), B = !0);
23702
23706
  };
23703
- return window.addEventListener("scroll", R, { passive: !0 }), window.addEventListener("resize", R, { passive: !0 }), () => {
23704
- 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);
23705
23709
  };
23706
23710
  }, [d, f, s, j]), y9({
23707
23711
  isActive: d,
@@ -23711,8 +23715,8 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23711
23715
  elementId: p,
23712
23716
  elementType: "popup",
23713
23717
  closeOnClickOutside: t,
23714
- onOutsideClick: O
23715
- }), J0(d, O, !n), {
23718
+ onOutsideClick: y
23719
+ }), J0(d, y, !n), {
23716
23720
  isOpen: d,
23717
23721
  popupStyle: h,
23718
23722
  isPositioned: f,
@@ -23721,7 +23725,7 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23721
23725
  containerRef: H,
23722
23726
  popupUniqueId: p,
23723
23727
  togglePopup: V,
23724
- closePopup: O
23728
+ closePopup: y
23725
23729
  };
23726
23730
  }, V6 = (o) => ({
23727
23731
  sm: "ui-rounded-sm",
@@ -23754,28 +23758,29 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23754
23758
  icon: H,
23755
23759
  colorIcon: j,
23756
23760
  tooltip: V,
23757
- tooltipPosition: O,
23761
+ tooltipPosition: y,
23758
23762
  tooltipAlignment: B,
23759
- tooltipColor: R,
23763
+ tooltipColor: E,
23760
23764
  tooltipDelay: A,
23761
23765
  absolute: S = !1,
23762
23766
  closeOnClick: v = !0,
23763
23767
  buttonClassName: x,
23764
23768
  containerClassName: Z,
23765
- buttonTransition: y = !0,
23769
+ buttonTransition: O = !0,
23766
23770
  buttonStyle: M,
23767
- ...I
23768
- }, E) => {
23771
+ stopPropagationList: I = !1,
23772
+ ...z
23773
+ }, J) => {
23769
23774
  const {
23770
- isOpen: J,
23771
- popupStyle: q,
23772
- isPositioned: z,
23773
- triggerRef: X,
23774
- popupRef: n1,
23775
- containerRef: N,
23776
- popupUniqueId: $,
23777
- togglePopup: k,
23778
- 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
23779
23784
  } = j6({
23780
23785
  position: t,
23781
23786
  offset: n,
@@ -23788,58 +23793,58 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23788
23793
  absolute: S
23789
23794
  });
23790
23795
  o0(
23791
- E,
23796
+ J,
23792
23797
  () => ({
23793
23798
  open: () => {
23794
- p || k();
23799
+ p || F();
23795
23800
  },
23796
23801
  close: () => {
23797
- F();
23802
+ e1();
23798
23803
  },
23799
- isOpen: () => J
23804
+ isOpen: () => G
23800
23805
  }),
23801
- [p, k, F, J]
23806
+ [p, F, e1, G]
23802
23807
  );
23803
- const i1 = () => {
23804
- if (!J)
23808
+ const a1 = () => {
23809
+ if (!G)
23805
23810
  return null;
23806
- const u1 = {
23811
+ const p1 = {
23807
23812
  position: S ? "absolute" : "fixed",
23808
23813
  top: S ? "auto" : "-9999px",
23809
23814
  left: S ? "auto" : "-9999px",
23810
- visibility: z ? "visible" : "hidden",
23811
- opacity: z ? 1 : 0,
23815
+ visibility: X ? "visible" : "hidden",
23816
+ opacity: X ? 1 : 0,
23812
23817
  transition: "opacity 0.1s ease-out",
23813
- ...q
23814
- }, p1 = V6(b), _ = /* @__PURE__ */ i(
23818
+ ...R
23819
+ }, _ = V6(b), u1 = /* @__PURE__ */ i(
23815
23820
  "div",
23816
23821
  {
23817
- ref: n1,
23818
- id: $,
23819
- "data-popup-id": $,
23820
- style: u1,
23821
- className: `ui-border ui-border-neutral-100 ui-bg-white ${p1} ui-overflow-hidden ui-shadow-lg ${l}`,
23822
- onClick: () => {
23823
- 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());
23824
23829
  },
23825
- ...I,
23830
+ ...z,
23826
23831
  children: o
23827
23832
  }
23828
23833
  );
23829
- return S ? _ : D1(_, document.body);
23834
+ return S ? u1 : D1(u1, document.body);
23830
23835
  };
23831
23836
  return /* @__PURE__ */ u(
23832
23837
  "div",
23833
23838
  {
23834
- ref: N,
23839
+ ref: $,
23835
23840
  className: U("ui-relative ui-h-max"),
23836
- "data-popup-container-id": $,
23841
+ "data-popup-container-id": k,
23837
23842
  children: [
23838
- /* @__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(
23839
23844
  v1,
23840
23845
  {
23841
23846
  className: x,
23842
- onClick: k,
23847
+ onClick: F,
23843
23848
  disabled: p,
23844
23849
  variant: d,
23845
23850
  color: L,
@@ -23851,16 +23856,16 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23851
23856
  colorIcon: j,
23852
23857
  textColor: w,
23853
23858
  tooltip: V,
23854
- tooltipPosition: O,
23859
+ tooltipPosition: y,
23855
23860
  tooltipAlignment: B,
23856
- tooltipColor: R,
23861
+ tooltipColor: E,
23857
23862
  tooltipDelay: A,
23858
- transition: y,
23863
+ transition: O,
23859
23864
  style: M,
23860
23865
  children: r || ""
23861
23866
  }
23862
23867
  ) }),
23863
- i1()
23868
+ a1()
23864
23869
  ]
23865
23870
  }
23866
23871
  );
@@ -23910,7 +23915,7 @@ const Z1 = {
23910
23915
  h[f] = g;
23911
23916
  }), l(h);
23912
23917
  }, [o, e]);
23913
- K(() => {
23918
+ Q(() => {
23914
23919
  s();
23915
23920
  }, [s]);
23916
23921
  const C = P(() => {
@@ -24125,9 +24130,9 @@ const Z1 = {
24125
24130
  footerButtonIcon: H,
24126
24131
  footerButtonOnClick: j,
24127
24132
  cancelButtonSlotLeft: V,
24128
- successButtonSlotRight: O,
24133
+ successButtonSlotRight: y,
24129
24134
  disableCancelButton: B,
24130
- disableSuccessButton: R
24135
+ disableSuccessButton: E
24131
24136
  }) => {
24132
24137
  const A = {
24133
24138
  onClose: r,
@@ -24151,9 +24156,9 @@ const Z1 = {
24151
24156
  footerButtonIcon: H,
24152
24157
  footerButtonOnClick: j,
24153
24158
  cancelButtonSlotLeft: V,
24154
- successButtonSlotRight: O,
24159
+ successButtonSlotRight: y,
24155
24160
  disableCancelButton: B,
24156
- disableSuccessButton: R
24161
+ disableSuccessButton: E
24157
24162
  };
24158
24163
  return /* @__PURE__ */ i(B9.Provider, { value: A, children: o });
24159
24164
  }, S9 = () => {
@@ -24226,8 +24231,8 @@ const Z1 = {
24226
24231
  onChangeTab: h,
24227
24232
  headerButtonIcon: w,
24228
24233
  headerButtonOnClick: f
24229
- } = 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, O = e ?? L, B = (R) => {
24230
- 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);
24231
24236
  };
24232
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: [
24233
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" }) }),
@@ -24262,10 +24267,10 @@ const Z1 = {
24262
24267
  I6,
24263
24268
  {
24264
24269
  options: H ?? [],
24265
- defaultValue: O,
24270
+ defaultValue: y,
24266
24271
  size: "sm",
24267
- onChange: (R) => {
24268
- B(R);
24272
+ onChange: (E) => {
24273
+ B(E);
24269
24274
  }
24270
24275
  }
24271
24276
  ) }) : null
@@ -24299,7 +24304,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24299
24304
  s && s(), h && a();
24300
24305
  }, V = () => {
24301
24306
  C && C(), L && a();
24302
- }, O = r ?? w, B = t ?? f;
24307
+ }, y = r ?? w, B = t ?? f;
24303
24308
  return /* @__PURE__ */ u(
24304
24309
  "div",
24305
24310
  {
@@ -24312,7 +24317,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24312
24317
  variant: "outlined",
24313
24318
  rounded: !0,
24314
24319
  color: "white",
24315
- icon: O ?? "AlignJustifyOutlined",
24320
+ icon: y ?? "AlignJustifyOutlined",
24316
24321
  size: "lg",
24317
24322
  onClick: B
24318
24323
  }
@@ -24377,24 +24382,24 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24377
24382
  tabs: H,
24378
24383
  defaultValueTab: j,
24379
24384
  onChangeTab: V,
24380
- headerButtonIcon: O,
24385
+ headerButtonIcon: y,
24381
24386
  headerButtonOnClick: B,
24382
- footerButtonIcon: R,
24387
+ footerButtonIcon: E,
24383
24388
  footerButtonOnClick: A,
24384
24389
  cancelButtonSlotLeft: S,
24385
24390
  successButtonSlotRight: v,
24386
24391
  disableCancelButton: x,
24387
24392
  disableSuccessButton: Z
24388
24393
  }) => {
24389
- const { isVisible: y, animateIn: M, container: I, modalRef: E } = O6({
24394
+ const { isVisible: O, animateIn: M, container: I, modalRef: z } = O6({
24390
24395
  isOpen: o,
24391
24396
  onClose: r,
24392
24397
  disableEscapeClose: c,
24393
24398
  disableOutsideTab: l,
24394
24399
  disableOutsideClick: s
24395
24400
  });
24396
- if (!I || !o && !y) return null;
24397
- const J = S6(e), q = $6(e), z = /* @__PURE__ */ u(
24401
+ if (!I || !o && !O) return null;
24402
+ const J = S6(e), G = $6(e), R = /* @__PURE__ */ u(
24398
24403
  "div",
24399
24404
  {
24400
24405
  "aria-modal": "true",
@@ -24415,7 +24420,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24415
24420
  /* @__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(
24416
24421
  "div",
24417
24422
  {
24418
- ref: E,
24423
+ ref: z,
24419
24424
  tabIndex: -1,
24420
24425
  className: U(
24421
24426
  "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",
@@ -24440,9 +24445,9 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24440
24445
  closeAtCancel: m,
24441
24446
  title: w,
24442
24447
  icon: t,
24443
- headerButtonIcon: O,
24448
+ headerButtonIcon: y,
24444
24449
  headerButtonOnClick: B,
24445
- footerButtonIcon: R,
24450
+ footerButtonIcon: E,
24446
24451
  footerButtonOnClick: A,
24447
24452
  tabs: H,
24448
24453
  defaultValueTab: j,
@@ -24454,7 +24459,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24454
24459
  children: [
24455
24460
  !J && (a || w ? /* @__PURE__ */ i(Y1, { title: w }) : null),
24456
24461
  e && e,
24457
- !q && /* @__PURE__ */ i(X0, {})
24462
+ !G && /* @__PURE__ */ i(X0, {})
24458
24463
  ]
24459
24464
  }
24460
24465
  )
@@ -24463,8 +24468,8 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24463
24468
  ]
24464
24469
  }
24465
24470
  );
24466
- return h9.createPortal(z, I);
24467
- }, Ei = Object.assign(P6, {
24471
+ return h9.createPortal(R, I);
24472
+ }, zi = Object.assign(P6, {
24468
24473
  Header: Y1,
24469
24474
  Body: Z6,
24470
24475
  Footer: X0
@@ -24474,7 +24479,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24474
24479
  { label: "25", id: 25 },
24475
24480
  { label: "50", id: 50 },
24476
24481
  { label: "100", id: 100 }
24477
- ], zi = ({
24482
+ ], Ei = ({
24478
24483
  currentPage: o,
24479
24484
  pageCount: r,
24480
24485
  pageSize: t = 10,
@@ -24490,18 +24495,18 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24490
24495
  showVisiblePages: d = !1,
24491
24496
  showPagesSelector: L = !1
24492
24497
  }) => {
24493
- K(() => {
24498
+ Q(() => {
24494
24499
  o > r && r > 0 && l(r);
24495
24500
  }, [o, r, l]);
24496
24501
  const h = (j) => {
24497
24502
  j >= 1 && j <= r && l(j);
24498
24503
  }, [w, f] = Y(t);
24499
- K(() => {
24504
+ Q(() => {
24500
24505
  f(t);
24501
24506
  }, [t]);
24502
24507
  const g = Math.min(o * (t || 0), n || 0) || 0, m = (() => {
24503
24508
  const j = Math.min(Math.max(o, 1), Math.max(r - p + 1, 1)), V = Math.min(j + p - 1, r);
24504
- return Array.from({ length: V - j + 1 }, (O, B) => j + B);
24509
+ return Array.from({ length: V - j + 1 }, (y, B) => j + B);
24505
24510
  })(), H = (j) => {
24506
24511
  f(j), s(j), h(1);
24507
24512
  };
@@ -24632,9 +24637,9 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24632
24637
  ] })
24633
24638
  }
24634
24639
  );
24635
- }, A6 = "Main Scene", F6 = 0, N6 = 500, D6 = 500, E6 = {
24640
+ }, A6 = "Main Scene", F6 = 0, N6 = 500, D6 = 500, z6 = {
24636
24641
  g: "@lottiefiles/creator 1.47.1"
24637
- }, z6 = [
24642
+ }, E6 = [
24638
24643
  {
24639
24644
  ty: 0,
24640
24645
  nm: "logo",
@@ -27559,8 +27564,8 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27559
27564
  ddd: F6,
27560
27565
  h: N6,
27561
27566
  w: D6,
27562
- meta: E6,
27563
- layers: z6,
27567
+ meta: z6,
27568
+ layers: E6,
27564
27569
  v: R6,
27565
27570
  fr: U6,
27566
27571
  op: _6,
@@ -28169,13 +28174,13 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28169
28174
  onStepChange: p
28170
28175
  }), m = f(r || "blue");
28171
28176
  return /* @__PURE__ */ i("div", { className: `${L ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${d ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${d ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${ai({ color: r, size: t, className: n })}`, children: o.map((j, V) => {
28172
- const O = b(V), B = V === o.length - 1;
28177
+ const y = b(V), B = V === o.length - 1;
28173
28178
  return /* @__PURE__ */ i(
28174
28179
  ui,
28175
28180
  {
28176
28181
  step: j,
28177
28182
  stepIndex: V,
28178
- status: O,
28183
+ status: y,
28179
28184
  colorClasses: m,
28180
28185
  isLast: B,
28181
28186
  onStepClick: g,
@@ -28307,22 +28312,23 @@ const pi = {
28307
28312
  primaryButtonText: "Aceptar",
28308
28313
  secondaryButtonText: "Cancelar",
28309
28314
  progressBarColor: !1,
28310
- animationDuration: 300
28315
+ animationDuration: 300,
28316
+ size: "sm"
28311
28317
  };
28312
- let f1 = { ...pi };
28318
+ let g1 = { ...pi };
28313
28319
  const K1 = [];
28314
28320
  let Ci = 0;
28315
- const z1 = /* @__PURE__ */ new Map(), i0 = {
28321
+ const E1 = /* @__PURE__ */ new Map(), i0 = {
28316
28322
  show(o, r = "green", t = {}) {
28317
28323
  const n = Date.now() + ++Ci;
28318
28324
  let e, a;
28319
28325
  typeof o == "string" ? (e = o, a = t) : (e = o.message, a = { ...t, ...o });
28320
- const c = `${e}-${r}`, l = Date.now(), s = z1.get(c);
28326
+ const c = `${e}-${r}`, l = Date.now(), s = E1.get(c);
28321
28327
  if (s && l - s < 100)
28322
28328
  return n;
28323
- z1.set(c, l);
28324
- for (const [p, d] of z1.entries())
28325
- l - d > 1e3 && z1.delete(p);
28329
+ E1.set(c, l);
28330
+ for (const [p, d] of E1.entries())
28331
+ l - d > 1e3 && E1.delete(p);
28326
28332
  const C = {
28327
28333
  id: n,
28328
28334
  message: e,
@@ -28334,11 +28340,12 @@ const z1 = /* @__PURE__ */ new Map(), i0 = {
28334
28340
  onSecondaryClick: a.onSecondaryClick,
28335
28341
  showCloseButton: a.showCloseButton ?? !0,
28336
28342
  isLeaving: !1,
28337
- duration: a.duration ?? f1.duration,
28338
- position: a.position ?? f1.position,
28339
- variant: a.variant ?? f1.variant,
28340
- primaryButtonText: a.primaryButtonText ?? f1.primaryButtonText,
28341
- secondaryButtonText: a.secondaryButtonText ?? f1.secondaryButtonText
28343
+ duration: a.duration ?? g1.duration,
28344
+ position: a.position ?? g1.position,
28345
+ variant: a.variant ?? g1.variant,
28346
+ primaryButtonText: a.primaryButtonText ?? g1.primaryButtonText,
28347
+ secondaryButtonText: a.secondaryButtonText ?? g1.secondaryButtonText,
28348
+ size: a.size ?? g1.size
28342
28349
  };
28343
28350
  return K1.forEach((p) => p(C)), n;
28344
28351
  },
@@ -28365,22 +28372,22 @@ const z1 = /* @__PURE__ */ new Map(), i0 = {
28365
28372
  title: "",
28366
28373
  color: "green",
28367
28374
  duration: 0,
28368
- position: f1.position,
28375
+ position: g1.position,
28369
28376
  showCloseButton: !0,
28370
28377
  isLeaving: !0,
28371
- variant: f1.variant
28378
+ variant: g1.variant
28372
28379
  })
28373
28380
  );
28374
28381
  },
28375
28382
  configure(o) {
28376
- Object.assign(f1, o);
28383
+ Object.assign(g1, o);
28377
28384
  },
28378
28385
  getListeners() {
28379
28386
  return K1;
28380
28387
  }
28381
28388
  }, Li = () => {
28382
28389
  const [o, r] = Y([]), t = o1(/* @__PURE__ */ new Map()), n = o1(null);
28383
- return K(() => {
28390
+ return Q(() => {
28384
28391
  const a = i0.getListeners();
28385
28392
  if (n.current) {
28386
28393
  const l = a.indexOf(n.current);
@@ -28392,13 +28399,13 @@ const z1 = /* @__PURE__ */ new Map(), i0 = {
28392
28399
  (s) => s.map((C) => C.id === l.id ? { ...C, isLeaving: !0 } : C)
28393
28400
  ), setTimeout(() => {
28394
28401
  r((s) => s.filter((C) => C.id !== l.id));
28395
- }, f1.animationDuration);
28402
+ }, g1.animationDuration);
28396
28403
  return;
28397
28404
  }
28398
28405
  if (r((s) => {
28399
28406
  if (s.some((L) => L.id === l.id)) return s;
28400
28407
  const p = { ...l, isLeaving: !1 };
28401
- return [...s, p].slice(-f1.maxToasts);
28408
+ return [...s, p].slice(-g1.maxToasts);
28402
28409
  }), l.duration && l.duration > 0) {
28403
28410
  const s = setTimeout(() => {
28404
28411
  i0.dismiss(l.id), t.current.delete(l.id);
@@ -28431,7 +28438,7 @@ const z1 = /* @__PURE__ */ new Map(), i0 = {
28431
28438
  })[r]
28432
28439
  }), wi = ({ toastItem: o }) => {
28433
28440
  const [r, t] = Y(!0);
28434
- K(() => {
28441
+ Q(() => {
28435
28442
  o.isLeaving && setTimeout(() => {
28436
28443
  t(!1);
28437
28444
  }, 300);
@@ -28456,7 +28463,8 @@ const z1 = /* @__PURE__ */ new Map(), i0 = {
28456
28463
  isLeaving: o.isLeaving,
28457
28464
  onClick: o.onClick,
28458
28465
  duration: o.duration,
28459
- animation: o.animation || "fade"
28466
+ animation: o.animation || "fade",
28467
+ size: o.size || "sm"
28460
28468
  }
28461
28469
  ) : null;
28462
28470
  }, gi = ({ toasts: o }) => {
@@ -28502,13 +28510,13 @@ export {
28502
28510
  k9 as ListItemWithCheckbox,
28503
28511
  Ai as ListSeparator,
28504
28512
  Di as Logo,
28505
- Ei as Modal,
28513
+ zi as Modal,
28506
28514
  k6 as ModalProvider,
28507
28515
  e6 as Month,
28508
28516
  M9 as MonthGrid,
28509
28517
  c6 as MultipleCalendarsHeader,
28510
28518
  _1 as NavigationButton,
28511
- zi as Pagination,
28519
+ Ei as Pagination,
28512
28520
  Z9 as Popup,
28513
28521
  ni as RadioButton,
28514
28522
  Ui as RadioButtonGroup,