@imj_media/ui 1.0.57 → 1.0.58

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 Z1 } from "react/jsx-runtime";
2
- import f1, { useState as Y, useRef as o1, useEffect as X, useCallback as P, useMemo as m1, useImperativeHandle as e0, forwardRef as U1, useId as i9, createContext as $9, useContext as P9 } from "react";
2
+ import f1, { useState as Y, useRef as o1, useEffect as K, useCallback as P, useMemo as m1, useImperativeHandle as e0, forwardRef as U1, useId as i9, createContext as $9, useContext as P9 } from "react";
3
3
  import { clsx as T9 } from "clsx";
4
4
  import { twMerge as N9 } from "tailwind-merge";
5
5
  import { library as i0 } from "@fortawesome/fontawesome-svg-core";
6
- import { faUser as o0, faHome as r0, faBell as t0, faEdit as u0, faSave as a0, faDownload as l0, faSearch as d0, faTrash as s0, faEye as c0, faHeart as p0, faStar as C0, faPlus as L0, faMinus as h0, faCheck as w0, faTimes as g0, faArrowLeft as f0, faArrowRight as m0, faArrowUp as M0, faArrowDown as x0, faBars as b0, faCog as v0, faInfo as j0, faExclamationTriangle as V0, faExclamationCircle as H0, faCheckCircle as y0, faSpinner as O0, faSync as k0, faFilter as I0, faSort as Z0, faCalendar as B0, faClock as S0, faMapMarkerAlt as $0, faFolder as P0, faCircle as T0, faSquare as N0, faList as A0, faTasks as D0, faTools as F0, faShapes as E0, faPalette as z0, faTachometerAlt as R0, faDesktop as U0, faCircleCheck as _0 } from "@fortawesome/pro-regular-svg-icons";
7
- import { faUser as A9, faHome as D9, faBell as F9, faEdit as E9, faSave as z9, faDownload as R9, faSearch as U9, faTrash as _9, faEye as G9, faHeart as q9, faStar as Y9, faPlus as J9, faMinus as X9, faCheck as K9, faTimes as Q9, faArrowLeft as W9, faArrowRight as n2, faArrowUp as e2, faArrowDown as i2, faBars as o2, faCog as r2, faInfo as t2, faExclamationTriangle as u2, faExclamationCircle as a2, faCheckCircle as l2, faSpinner as d2, faSync as s2, faFilter as c2, faSort as p2, faCalendar as C2, faClock as L2, faMapMarkerAlt as h2, faFolder as w2, faCircle as g2, faSquare as f2, faList as m2, faTasks as M2, faTools as x2, faShapes as b2, faPalette as v2, faDashboard as j2, faDesktop as V2, faCircleCheck as H2 } from "@fortawesome/pro-solid-svg-icons";
6
+ import { faUser as o0, faHome as r0, faBell as t0, faEdit as u0, faSave as a0, faDownload as l0, faSearch as d0, faTrash as s0, faEye as c0, faHeart as p0, faStar as C0, faPlus as L0, faMinus as h0, faCheck as w0, faTimes as g0, faArrowLeft as f0, faArrowRight as m0, faArrowUp as M0, faArrowDown as x0, faBars as b0, faCog as v0, faInfo as j0, faExclamationTriangle as V0, faExclamationCircle as H0, faCheckCircle as y0, faSpinner as O0, faSync as k0, faFilter as I0, faSort as Z0, faCalendar as B0, faClock as S0, faMapMarkerAlt as $0, faFolder as P0, faCircle as T0, faSquare as N0, faList as A0, faTasks as F0, faTools as D0, faShapes as z0, faPalette as E0, faTachometerAlt as R0, faDesktop as U0, faCircleCheck as _0 } from "@fortawesome/pro-regular-svg-icons";
7
+ import { faUser as A9, faHome as F9, faBell as D9, faEdit as z9, faSave as E9, faDownload as R9, faSearch as U9, faTrash as _9, faEye as G9, faHeart as q9, faStar as Y9, faPlus as J9, faMinus as X9, faCheck as K9, faTimes as Q9, faArrowLeft as W9, faArrowRight as n2, faArrowUp as e2, faArrowDown as i2, faBars as o2, faCog as r2, faInfo as t2, faExclamationTriangle as u2, faExclamationCircle as a2, faCheckCircle as l2, faSpinner as d2, faSync as s2, faFilter as c2, faSort as p2, faCalendar as C2, faClock as L2, faMapMarkerAlt as h2, faFolder as w2, faCircle as g2, faSquare as f2, faList as m2, faTasks as M2, faTools as x2, faShapes as b2, faPalette as v2, faDashboard as j2, faDesktop as V2, faCircleCheck as H2 } from "@fortawesome/pro-solid-svg-icons";
8
8
  import { faFacebook as o9, faInstagram as r9, faTwitter as t9, faWhatsapp as X1, faLinkedin as u9, faYoutube as a9, faGithub as l9, faGoogle as d9, faApple as s9, faMicrosoft as c9 } from "@fortawesome/free-brands-svg-icons";
9
9
  import { FontAwesomeIcon as y2 } from "@fortawesome/react-fontawesome";
10
10
  import { cva as c1 } from "class-variance-authority";
@@ -52,10 +52,10 @@ i0.add(
52
52
  T0,
53
53
  N0,
54
54
  A0,
55
- D0,
56
55
  F0,
57
- E0,
56
+ D0,
58
57
  z0,
58
+ E0,
59
59
  // Reemplazar faColor con faPalette
60
60
  R0,
61
61
  U0,
@@ -65,10 +65,10 @@ i0.add(
65
65
  );
66
66
  i0.add(
67
67
  A9,
68
- D9,
69
68
  F9,
70
- E9,
69
+ D9,
71
70
  z9,
71
+ E9,
72
72
  R9,
73
73
  U9,
74
74
  _9,
@@ -120,7 +120,7 @@ i0.add(
120
120
  s9,
121
121
  c9
122
122
  );
123
- const D2 = {
123
+ const F2 = {
124
124
  // Solo mapear iconos básicos que sabemos que existen en Font Awesome Pro
125
125
  OutlineUserIcon: o0,
126
126
  OutlineHomeIcon: r0,
@@ -158,14 +158,14 @@ const D2 = {
158
158
  OutlineCircleIcon: T0,
159
159
  OutlineSquareIcon: N0,
160
160
  OutlineListIcon: A0,
161
- OutlineTasksIcon: D0,
162
- OutlineToolsIcon: F0,
163
- OutlineShapesIcon: E0,
164
- OutlineColorIcon: z0,
161
+ OutlineTasksIcon: F0,
162
+ OutlineToolsIcon: D0,
163
+ OutlineShapesIcon: z0,
164
+ OutlineColorIcon: E0,
165
165
  OutlineDashboardIcon: R0,
166
166
  OutlineScreenIcon: U0,
167
167
  OutlineStatusIcon: _0
168
- }, F2 = {
168
+ }, D2 = {
169
169
  // Iconos de marcas (Brands)
170
170
  FillFacebookIcon: o9,
171
171
  FillInstagramIcon: r9,
@@ -216,22 +216,22 @@ const D2 = {
216
216
  FillCircleIcon: T0,
217
217
  FillSquareIcon: N0,
218
218
  FillListIcon: A0,
219
- FillTasksIcon: D0,
220
- FillToolsIcon: F0,
221
- FillShapesIcon: E0,
222
- FillColorIcon: z0,
219
+ FillTasksIcon: F0,
220
+ FillToolsIcon: D0,
221
+ FillShapesIcon: z0,
222
+ FillColorIcon: E0,
223
223
  FillDashboardIcon: R0,
224
224
  FillScreenIcon: U0,
225
225
  FillStatusIcon: _0,
226
226
  // Iconos personalizados (mantener como null)
227
227
  FillLogoIcon: null
228
228
  // Mantener personalizado
229
- }, E2 = {
230
- ...D2,
231
- ...F2
229
+ }, z2 = {
230
+ ...F2,
231
+ ...D2
232
232
  };
233
- function z2(o) {
234
- const r = E2[o];
233
+ function E2(o) {
234
+ const r = z2[o];
235
235
  return r ? o.startsWith("Fill") ? o.includes("Facebook") || o.includes("Instagram") || o.includes("Twitter") || o.includes("Whatsapp") || o.includes("Linkedin") || o.includes("Youtube") || o.includes("Github") || o.includes("Google") || o.includes("Apple") || o.includes("Microsoft") || o.includes("Telegram") ? {
236
236
  icon: r,
237
237
  variant: "brands",
@@ -3027,7 +3027,7 @@ function An({
3027
3027
  }
3028
3028
  );
3029
3029
  }
3030
- function Dn({
3030
+ function Fn({
3031
3031
  width: o = 24,
3032
3032
  height: r = 24,
3033
3033
  fill: t = "none",
@@ -3067,7 +3067,7 @@ function Dn({
3067
3067
  }
3068
3068
  );
3069
3069
  }
3070
- function Fn({
3070
+ function Dn({
3071
3071
  width: o = 24,
3072
3072
  height: r = 24,
3073
3073
  fill: t = "none",
@@ -3095,7 +3095,7 @@ function Fn({
3095
3095
  }
3096
3096
  );
3097
3097
  }
3098
- function En({
3098
+ function zn({
3099
3099
  width: o = 24,
3100
3100
  height: r = 24,
3101
3101
  fill: t = "none",
@@ -3135,7 +3135,7 @@ function En({
3135
3135
  }
3136
3136
  );
3137
3137
  }
3138
- function zn({
3138
+ function En({
3139
3139
  width: o = 24,
3140
3140
  height: r = 24,
3141
3141
  fill: t = "none",
@@ -6199,7 +6199,7 @@ function Ae({
6199
6199
  }
6200
6200
  );
6201
6201
  }
6202
- function De({
6202
+ function Fe({
6203
6203
  width: o = 24,
6204
6204
  height: r = 24,
6205
6205
  fill: t = "none",
@@ -6247,7 +6247,7 @@ function De({
6247
6247
  }
6248
6248
  );
6249
6249
  }
6250
- function Fe({
6250
+ function De({
6251
6251
  width: o = 24,
6252
6252
  height: r = 24,
6253
6253
  fill: t = "none",
@@ -6337,7 +6337,7 @@ function Fe({
6337
6337
  }
6338
6338
  );
6339
6339
  }
6340
- function Ee({
6340
+ function ze({
6341
6341
  width: o = 24,
6342
6342
  height: r = 24,
6343
6343
  fill: t = "none",
@@ -6368,7 +6368,7 @@ function Ee({
6368
6368
  }
6369
6369
  );
6370
6370
  }
6371
- function ze({
6371
+ function Ee({
6372
6372
  width: o = 24,
6373
6373
  height: r = 24,
6374
6374
  fill: t = "none",
@@ -9455,7 +9455,7 @@ function A4({
9455
9455
  }
9456
9456
  );
9457
9457
  }
9458
- function D4({
9458
+ function F4({
9459
9459
  width: o = 24,
9460
9460
  height: r = 24,
9461
9461
  fill: t = "none",
@@ -9483,7 +9483,7 @@ function D4({
9483
9483
  }
9484
9484
  );
9485
9485
  }
9486
- function F4({
9486
+ function D4({
9487
9487
  width: o = 24,
9488
9488
  height: r = 24,
9489
9489
  fill: t = "none",
@@ -9521,7 +9521,7 @@ function F4({
9521
9521
  }
9522
9522
  );
9523
9523
  }
9524
- function E4({
9524
+ function z4({
9525
9525
  width: o = 24,
9526
9526
  height: r = 24,
9527
9527
  fill: t = "none",
@@ -9559,7 +9559,7 @@ function E4({
9559
9559
  }
9560
9560
  );
9561
9561
  }
9562
- function z4({
9562
+ function E4({
9563
9563
  width: o = 24,
9564
9564
  height: r = 24,
9565
9565
  fill: t = "none",
@@ -12625,7 +12625,7 @@ function A8({
12625
12625
  }
12626
12626
  );
12627
12627
  }
12628
- function D8({
12628
+ function F8({
12629
12629
  width: o = 24,
12630
12630
  height: r = 24,
12631
12631
  fill: t = "none",
@@ -12685,7 +12685,7 @@ function D8({
12685
12685
  }
12686
12686
  );
12687
12687
  }
12688
- function F8({
12688
+ function D8({
12689
12689
  width: o = 24,
12690
12690
  height: r = 24,
12691
12691
  fill: t = "none",
@@ -12713,7 +12713,7 @@ function F8({
12713
12713
  }
12714
12714
  );
12715
12715
  }
12716
- function E8({
12716
+ function z8({
12717
12717
  width: o = 24,
12718
12718
  height: r = 24,
12719
12719
  fill: t = "none",
@@ -12771,7 +12771,7 @@ function E8({
12771
12771
  }
12772
12772
  );
12773
12773
  }
12774
- function z8({
12774
+ function E8({
12775
12775
  width: o = 24,
12776
12776
  height: r = 24,
12777
12777
  fill: t = "none",
@@ -15794,7 +15794,7 @@ function A3({
15794
15794
  }
15795
15795
  );
15796
15796
  }
15797
- function D3({
15797
+ function F3({
15798
15798
  width: o = 24,
15799
15799
  height: r = 24,
15800
15800
  fill: t = "none",
@@ -15890,7 +15890,7 @@ function D3({
15890
15890
  }
15891
15891
  );
15892
15892
  }
15893
- function F3({
15893
+ function D3({
15894
15894
  width: o = 24,
15895
15895
  height: r = 24,
15896
15896
  fill: t = "none",
@@ -15940,7 +15940,7 @@ function F3({
15940
15940
  }
15941
15941
  );
15942
15942
  }
15943
- function E3({
15943
+ function z3({
15944
15944
  width: o = 24,
15945
15945
  height: r = 24,
15946
15946
  fill: t = "none",
@@ -16020,7 +16020,7 @@ function E3({
16020
16020
  }
16021
16021
  );
16022
16022
  }
16023
- function z3({
16023
+ function E3({
16024
16024
  width: o = 24,
16025
16025
  height: r = 24,
16026
16026
  fill: t = "none",
@@ -17933,11 +17933,11 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17933
17933
  AngleDoubleRightOutlined: f3,
17934
17934
  AngleDoubleUpOutlined: u5,
17935
17935
  AngleDownOutlined: d5,
17936
- AngleLeftOutlined: Fn,
17936
+ AngleLeftOutlined: Dn,
17937
17937
  AngleRightOutlined: K3,
17938
17938
  AngleUpOutlined: g5,
17939
17939
  ArchivarOutlined: O3,
17940
- AreaOutlined: D8,
17940
+ AreaOutlined: F8,
17941
17941
  ArrowCircleDownOutlined: ae,
17942
17942
  ArrowCircleLeftOutlined: S3,
17943
17943
  ArrowCircleRightOutlined: d3,
@@ -17950,7 +17950,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17950
17950
  ArrowRightOutlined: v3,
17951
17951
  ArrowUpLeftOutlined: q4,
17952
17952
  ArrowUpOutlined: r4,
17953
- ArrowUpRightOutlined: Dn,
17953
+ ArrowUpRightOutlined: Fn,
17954
17954
  ArrowVerticalOutlined: l4,
17955
17955
  Backward1Outlined: Z4,
17956
17956
  Backward2Outlined: u4,
@@ -17982,7 +17982,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17982
17982
  CheckOutlined: c8,
17983
17983
  ChevronCircleDownOutlined: Sn,
17984
17984
  ChevronCircleLeftOutlined: w5,
17985
- ChevronCircleRightOutlined: z4,
17985
+ ChevronCircleRightOutlined: E4,
17986
17986
  ChevronCircleUpOutlined: Ze,
17987
17987
  ChevronDown1Outlined: w3,
17988
17988
  ChevronDownOutlined: X3,
@@ -17999,7 +17999,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17999
17999
  CirclePlusOutlined: Q4,
18000
18000
  CircleXOutlined: C5,
18001
18001
  CityOutlined: n5,
18002
- ClockOutlined: En,
18002
+ ClockOutlined: zn,
18003
18003
  CloneOutlined: R3,
18004
18004
  CoinOutlined: Pe,
18005
18005
  CoinsOutlined: i4,
@@ -18049,13 +18049,13 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18049
18049
  Folder2Outlined: e8,
18050
18050
  FolderOutlined: H8,
18051
18051
  GanttOutlined: Tn,
18052
- GaugeOutlined: Fe,
18052
+ GaugeOutlined: De,
18053
18053
  GearOutlined: N8,
18054
18054
  GestionOutlined: on,
18055
18055
  GlassOutlined: ke,
18056
18056
  GridOutlined: l3,
18057
18057
  GroupFilesOutlined: U4,
18058
- GroupOutlined: E8,
18058
+ GroupOutlined: z8,
18059
18059
  HandOutlined: a3,
18060
18060
  HardOutlined: L4,
18061
18061
  HistoryOutlined: je,
@@ -18067,21 +18067,21 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18067
18067
  ImjLogoOutlined: M5,
18068
18068
  ImplementacionOutlined: cn,
18069
18069
  IndoorOutlined: h5,
18070
- InfoCardOutlined: zn,
18070
+ InfoCardOutlined: En,
18071
18071
  InfoCircleOutlined: f4,
18072
18072
  InfoOutlined: B8,
18073
- InstallOutlined: D3,
18073
+ InstallOutlined: F3,
18074
18074
  InventarioOutlined: s5,
18075
18075
  JoyasOutlined: fn,
18076
18076
  KanbanOutlined: K2,
18077
- KeyOutlined: D4,
18077
+ KeyOutlined: F4,
18078
18078
  LatitudeOutlined: e4,
18079
18079
  LegalFileOutlined: L5,
18080
18080
  LightbulbIndifferentOutlined: N3,
18081
18081
  LightbulbOutlined: m5,
18082
18082
  LightbulbSlashOutlined: e5,
18083
18083
  LikeOutlined: Q8,
18084
- LinkOutlined: E4,
18084
+ LinkOutlined: z4,
18085
18085
  ListOutlined: i3,
18086
18086
  ListaCampanas1Outlined: m4,
18087
18087
  ListaCampanas2Outlined: Xe,
@@ -18098,7 +18098,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18098
18098
  MallOutlined: le,
18099
18099
  MapOutlined: c5,
18100
18100
  MaximizeOutlined: _n,
18101
- MediumOutlined: ze,
18101
+ MediumOutlined: Ee,
18102
18102
  MinimizeOutlined: fe,
18103
18103
  Minus1Outlined: se,
18104
18104
  Minus2Outlined: Y2,
@@ -18118,8 +18118,8 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18118
18118
  PauseOutlined: an,
18119
18119
  PautaInteligenteOutlined: Ge,
18120
18120
  PautaTradicionalOutlined: Ln,
18121
- PencilOutlined: F3,
18122
- PercentageOutlined: De,
18121
+ PencilOutlined: D3,
18122
+ PercentageOutlined: Fe,
18123
18123
  PerifoneoOutlined: y4,
18124
18124
  PerifoneoSlashOutlined: de,
18125
18125
  PermisionarioOutlined: Ke,
@@ -18128,7 +18128,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18128
18128
  PlantillaOutlined: ce,
18129
18129
  PlayOutlined: Re,
18130
18130
  Plus1Outlined: Oe,
18131
- PlusOutlined: F8,
18131
+ PlusOutlined: D8,
18132
18132
  PostventaOutlined: X2,
18133
18133
  PowerOutlined: M3,
18134
18134
  PreferenciasDeUbicacionOutlined: xn,
@@ -18154,10 +18154,10 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18154
18154
  ScreenOutlined: $8,
18155
18155
  SearchCompanyOutlined: Ie,
18156
18156
  SearchMinusOutlined: n4,
18157
- SearchOutlined: Ee,
18157
+ SearchOutlined: ze,
18158
18158
  SearchPlusOutlined: I8,
18159
18159
  SeguimientoOutlined: _8,
18160
- SelectOutlined: z3,
18160
+ SelectOutlined: E3,
18161
18161
  SelectSlashOutlined: K4,
18162
18162
  ShapesOutlined: ue,
18163
18163
  ShareOutlined: An,
@@ -18172,7 +18172,7 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18172
18172
  SortAlphaUpOutlined: vn,
18173
18173
  SortAltOutlined: nn,
18174
18174
  SortAmountDownAltOutlined: n3,
18175
- SortAmountDownOutlined: E3,
18175
+ SortAmountDownOutlined: z3,
18176
18176
  SortAmountUpAltOutlined: U3,
18177
18177
  SortAmountUpOutlined: me,
18178
18178
  SortDownOutlined: Me,
@@ -18198,11 +18198,11 @@ const K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18198
18198
  TrashOutlined: we,
18199
18199
  TrashSlashOutlined: Kn,
18200
18200
  TreeDiagramOutlined: P8,
18201
- UbicacionesOutlined: F4,
18201
+ UbicacionesOutlined: D4,
18202
18202
  UndoOutlined: Bn,
18203
18203
  UnlockOutlined: I3,
18204
18204
  UpdateOutlined: ie,
18205
- UploadOutlined: z8,
18205
+ UploadOutlined: E8,
18206
18206
  UrbanosOutlined: q2,
18207
18207
  UserComercialOutlined: W8,
18208
18208
  UserEditOutlined: Xn,
@@ -18612,12 +18612,12 @@ function k5({
18612
18612
  let d = K1[p];
18613
18613
  if (d || (d = C9[p]), !d)
18614
18614
  return console.warn(`Icono legacy "${o}" no encontrado en ninguna variante`), null;
18615
- const L = d === K1[p] ? "outline" : "fill", w = G0[r], h = I1[t === "current" && L === "fill" ? "white" : t] || I1.blue, b = I1[n] || I1.black, v = /* @__PURE__ */ i(
18615
+ const L = d === K1[p] ? "outline" : "fill", h = G0[r], f = I1[t === "current" && L === "fill" ? "white" : t] || I1.blue, g = I1[n] || I1.black, v = /* @__PURE__ */ i(
18616
18616
  d,
18617
18617
  {
18618
- width: w,
18619
- height: w,
18620
- ...L === "outline" ? { stroke: h, fill: "none" } : { fill: b, stroke: h },
18618
+ width: h,
18619
+ height: h,
18620
+ ...L === "outline" ? { stroke: f, fill: "none" } : { fill: g, stroke: f },
18621
18621
  ...c,
18622
18622
  strokeWidth: l
18623
18623
  }
@@ -18637,7 +18637,7 @@ function k5({
18637
18637
  "hover:ui-bg-[rgba(0,0,0,0.15)] hover:ui-shadow-[0_4px_12px_rgba(0,0,0,0.15)]"
18638
18638
  ),
18639
18639
  style: {
18640
- "--tw-shadow-color": h
18640
+ "--tw-shadow-color": f
18641
18641
  },
18642
18642
  children: v
18643
18643
  }
@@ -18664,7 +18664,7 @@ function v1({
18664
18664
  strokeWidth: l = 2,
18665
18665
  onClick: s
18666
18666
  }) {
18667
- const C = z2(o);
18667
+ const C = E2(o);
18668
18668
  return C ? /* @__PURE__ */ i(
18669
18669
  _2,
18670
18670
  {
@@ -18761,27 +18761,27 @@ const I5 = ({
18761
18761
  a(!0), l(!1), s.current && clearTimeout(s.current);
18762
18762
  }, L = () => {
18763
18763
  l(!0), a(!1), s.current && clearTimeout(s.current);
18764
- }, w = (g) => {
18764
+ }, h = (w) => {
18765
18765
  try {
18766
- return new URL(g), !0;
18766
+ return new URL(w), !0;
18767
18767
  } catch {
18768
18768
  return !1;
18769
18769
  }
18770
18770
  };
18771
- return X(() => {
18772
- if (s.current && clearTimeout(s.current), !o || !w(o)) {
18771
+ return K(() => {
18772
+ if (s.current && clearTimeout(s.current), !o || !h(o)) {
18773
18773
  a(!0), l(!1);
18774
18774
  return;
18775
18775
  }
18776
18776
  a(!1), l(!1), s.current = setTimeout(() => {
18777
18777
  c || a(!0);
18778
18778
  }, 2e3);
18779
- const g = new Image();
18780
- return g.onload = () => {
18779
+ const w = new Image();
18780
+ return w.onload = () => {
18781
18781
  l(!0), a(!1), s.current && clearTimeout(s.current);
18782
- }, g.onerror = () => {
18782
+ }, w.onerror = () => {
18783
18783
  a(!0), l(!1), s.current && clearTimeout(s.current);
18784
- }, g.src = o, () => {
18784
+ }, w.src = o, () => {
18785
18785
  s.current && clearTimeout(s.current);
18786
18786
  };
18787
18787
  }, [o]), !o || e ? /* @__PURE__ */ i(
@@ -19140,97 +19140,97 @@ const I5 = ({
19140
19140
  }
19141
19141
  ) : null;
19142
19142
  }, S5 = (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), w = o1(null), g = o1(null), h = o1(null), b = o1(null), f = o1(null), v = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), y = 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), M = o1(null), v = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), O = 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
- }, [o]), B = P(() => {
19146
- if (!w.current || !a) return;
19147
- const x = w.current.getBoundingClientRect(), m = { top: x.top, left: x.left };
19145
+ }, [o]), $ = P(() => {
19146
+ if (!h.current || !a) return;
19147
+ const b = h.current.getBoundingClientRect(), m = { top: b.top, left: b.left };
19148
19148
  if (H.current) {
19149
- const I = H.current, O = 2;
19150
- if (Math.abs(m.top - I.top) > O || Math.abs(m.left - I.left) > O) {
19151
- y();
19149
+ const I = H.current, y = 2;
19150
+ if (Math.abs(m.top - I.top) > y || Math.abs(m.left - I.left) > y) {
19151
+ O();
19152
19152
  return;
19153
19153
  }
19154
19154
  }
19155
19155
  H.current = m;
19156
- }, [a, y]), R = P(() => {
19157
- var G, z, K, J, n1, A;
19158
- if (!w.current || !g.current) return;
19159
- const x = w.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), I = 8;
19160
- let O = 0, M = 0;
19156
+ }, [a, O]), R = P(() => {
19157
+ var G, E, X, J, n1, A;
19158
+ if (!h.current || !w.current) return;
19159
+ const b = h.current.getBoundingClientRect(), m = w.current.getBoundingClientRect(), I = 8;
19160
+ let y = 0, x = 0;
19161
19161
  if (t) {
19162
- const S = (G = h.current) == null ? void 0 : G.getBoundingClientRect();
19163
- if (!S) return;
19164
- const k = x.top - S.top, F = x.left - S.left;
19162
+ const B = (G = f.current) == null ? void 0 : G.getBoundingClientRect();
19163
+ if (!B) return;
19164
+ const k = b.top - B.top, D = b.left - B.left;
19165
19165
  switch (o) {
19166
19166
  case "top":
19167
- O = k - m.height - I, M = F + x.width / 2 - m.width / 2;
19167
+ y = k - m.height - I, x = D + b.width / 2 - m.width / 2;
19168
19168
  break;
19169
19169
  case "bottom":
19170
- O = k + x.height + I, M = F + x.width / 2 - m.width / 2;
19170
+ y = k + b.height + I, x = D + b.width / 2 - m.width / 2;
19171
19171
  break;
19172
19172
  case "left":
19173
- O = k + x.height / 2 - m.height / 2, M = F - m.width - I;
19173
+ y = k + b.height / 2 - m.height / 2, x = D - m.width - I;
19174
19174
  break;
19175
19175
  case "right":
19176
- O = k + x.height / 2 - m.height / 2, M = F + x.width + I;
19176
+ y = k + b.height / 2 - m.height / 2, x = D + b.width + I;
19177
19177
  break;
19178
19178
  case "top-left":
19179
- O = k - m.height - I, M = F;
19179
+ y = k - m.height - I, x = D;
19180
19180
  break;
19181
19181
  case "top-right":
19182
- O = k - m.height - I, M = F + x.width - m.width;
19182
+ y = k - m.height - I, x = D + b.width - m.width;
19183
19183
  break;
19184
19184
  case "bottom-left":
19185
- O = k + x.height + I, M = F;
19185
+ y = k + b.height + I, x = D;
19186
19186
  break;
19187
19187
  case "bottom-right":
19188
- O = k + x.height + I, M = F + x.width - m.width;
19188
+ y = k + b.height + I, x = D + b.width - m.width;
19189
19189
  break;
19190
19190
  case "right-top":
19191
- O = k, M = F + x.width + I;
19191
+ y = k, x = D + b.width + I;
19192
19192
  break;
19193
19193
  case "right-bottom":
19194
- O = k + x.height - m.height, M = F + x.width + I;
19194
+ y = k + b.height - m.height, x = D + b.width + I;
19195
19195
  break;
19196
19196
  case "left-top":
19197
- O = k, M = F - m.width - I;
19197
+ y = k, x = D - m.width - I;
19198
19198
  break;
19199
19199
  case "left-bottom":
19200
- O = k + x.height - m.height, M = F - m.width - I;
19200
+ y = k + b.height - m.height, x = D - m.width - I;
19201
19201
  break;
19202
19202
  }
19203
- O < 0 && (O = 0), M < 0 && (M = 0), (() => {
19203
+ y < 0 && (y = 0), x < 0 && (x = 0), (() => {
19204
19204
  var q;
19205
- const t1 = (q = h.current) == null ? void 0 : q.getBoundingClientRect();
19205
+ const t1 = (q = f.current) == null ? void 0 : q.getBoundingClientRect();
19206
19206
  if (!t1) return;
19207
- let l1 = o, D = !1;
19207
+ let l1 = o, F = !1;
19208
19208
  if (!(() => {
19209
19209
  switch (o) {
19210
19210
  case "top":
19211
19211
  return k >= m.height + I;
19212
19212
  case "bottom":
19213
- return k + x.height + I + m.height <= t1.height;
19213
+ return k + b.height + I + m.height <= t1.height;
19214
19214
  case "left":
19215
- return F >= m.width + I;
19215
+ return D >= m.width + I;
19216
19216
  case "right":
19217
- return F + x.width + I + m.width <= t1.width;
19217
+ return D + b.width + I + m.width <= t1.width;
19218
19218
  default:
19219
19219
  return !0;
19220
19220
  }
19221
- })() && (o === "top" ? k + x.height + I + m.height <= t1.height && (l1 = "bottom", D = !0) : o === "bottom" ? k >= m.height + I && (l1 = "top", D = !0) : o === "left" ? F + x.width + I + m.width <= t1.width && (l1 = "right", D = !0) : o === "right" && F >= m.width + I && (l1 = "left", D = !0), D)) {
19221
+ })() && (o === "top" ? k + b.height + I + m.height <= t1.height && (l1 = "bottom", F = !0) : o === "bottom" ? k >= m.height + I && (l1 = "top", F = !0) : o === "left" ? D + b.width + I + m.width <= t1.width && (l1 = "right", F = !0) : o === "right" && D >= m.width + I && (l1 = "left", F = !0), F)) {
19222
19222
  switch (l1) {
19223
19223
  case "top":
19224
- O = k - m.height - I, M = F + x.width / 2 - m.width / 2;
19224
+ y = k - m.height - I, x = D + b.width / 2 - m.width / 2;
19225
19225
  break;
19226
19226
  case "bottom":
19227
- O = k + x.height + I, M = F + x.width / 2 - m.width / 2;
19227
+ y = k + b.height + I, x = D + b.width / 2 - m.width / 2;
19228
19228
  break;
19229
19229
  case "left":
19230
- O = k + x.height / 2 - m.height / 2, M = F - m.width - I;
19230
+ y = k + b.height / 2 - m.height / 2, x = D - m.width - I;
19231
19231
  break;
19232
19232
  case "right":
19233
- O = k + x.height / 2 - m.height / 2, M = F + x.width + I;
19233
+ y = k + b.height / 2 - m.height / 2, x = D + b.width + I;
19234
19234
  break;
19235
19235
  }
19236
19236
  L(l1);
@@ -19239,149 +19239,149 @@ const I5 = ({
19239
19239
  } else
19240
19240
  switch (o) {
19241
19241
  case "top":
19242
- O = x.top - m.height - I, M = x.left + x.width / 2 - m.width / 2;
19242
+ y = b.top - m.height - I, x = b.left + b.width / 2 - m.width / 2;
19243
19243
  break;
19244
19244
  case "bottom":
19245
- O = x.bottom + I, M = x.left + x.width / 2 - m.width / 2;
19245
+ y = b.bottom + I, x = b.left + b.width / 2 - m.width / 2;
19246
19246
  break;
19247
19247
  case "left":
19248
- O = x.top + x.height / 2 - m.height / 2, M = x.left - m.width - I;
19248
+ y = b.top + b.height / 2 - m.height / 2, x = b.left - m.width - I;
19249
19249
  break;
19250
19250
  case "right":
19251
- O = x.top + x.height / 2 - m.height / 2, M = x.right + I;
19251
+ y = b.top + b.height / 2 - m.height / 2, x = b.right + I;
19252
19252
  break;
19253
19253
  case "top-left":
19254
- O = x.top - m.height - I, M = x.left;
19254
+ y = b.top - m.height - I, x = b.left;
19255
19255
  break;
19256
19256
  case "top-right":
19257
- O = x.top - m.height - I, M = x.right - m.width;
19257
+ y = b.top - m.height - I, x = b.right - m.width;
19258
19258
  break;
19259
19259
  case "bottom-left":
19260
- O = x.bottom + I, M = x.left;
19260
+ y = b.bottom + I, x = b.left;
19261
19261
  break;
19262
19262
  case "bottom-right":
19263
- O = x.bottom + I, M = x.right - m.width;
19263
+ y = b.bottom + I, x = b.right - m.width;
19264
19264
  break;
19265
19265
  case "right-top":
19266
- O = x.top, M = x.right + I;
19266
+ y = b.top, x = b.right + I;
19267
19267
  break;
19268
19268
  case "right-bottom":
19269
- O = x.bottom - m.height, M = x.right + I;
19269
+ y = b.bottom - m.height, x = b.right + I;
19270
19270
  break;
19271
19271
  case "left-top":
19272
- O = x.top, M = x.left - m.width - I;
19272
+ y = b.top, x = b.left - m.width - I;
19273
19273
  break;
19274
19274
  case "left-bottom":
19275
- O = x.bottom - m.height, M = x.left - m.width - I;
19275
+ y = b.bottom - m.height, x = b.left - m.width - I;
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 S = (z = h.current) == null ? void 0 : z.getBoundingClientRect();
19283
- S && (M = x.left - S.left);
19282
+ const B = (E = f.current) == null ? void 0 : E.getBoundingClientRect();
19283
+ B && (x = b.left - B.left);
19284
19284
  } else
19285
- M = x.left;
19285
+ x = b.left;
19286
19286
  break;
19287
19287
  case "end":
19288
19288
  if (t) {
19289
- const S = (K = h.current) == null ? void 0 : K.getBoundingClientRect();
19290
- S && (M = x.right - S.left - m.width);
19289
+ const B = (X = f.current) == null ? void 0 : X.getBoundingClientRect();
19290
+ B && (x = b.right - B.left - m.width);
19291
19291
  } else
19292
- M = x.right - m.width;
19292
+ x = b.right - m.width;
19293
19293
  break;
19294
19294
  }
19295
19295
  else if (o.includes("left") || o.includes("right"))
19296
19296
  switch (r) {
19297
19297
  case "start":
19298
19298
  if (t) {
19299
- const S = (J = h.current) == null ? void 0 : J.getBoundingClientRect();
19300
- S && (O = x.top - S.top);
19299
+ const B = (J = f.current) == null ? void 0 : J.getBoundingClientRect();
19300
+ B && (y = b.top - B.top);
19301
19301
  } else
19302
- O = x.top;
19302
+ y = b.top;
19303
19303
  break;
19304
19304
  case "end":
19305
19305
  if (t) {
19306
- const S = (n1 = h.current) == null ? void 0 : n1.getBoundingClientRect();
19307
- S && (O = x.bottom - S.top - m.height);
19306
+ const B = (n1 = f.current) == null ? void 0 : n1.getBoundingClientRect();
19307
+ B && (y = b.bottom - B.top - m.height);
19308
19308
  } else
19309
- O = x.bottom - m.height;
19309
+ y = b.bottom - m.height;
19310
19310
  break;
19311
19311
  }
19312
19312
  if (t) {
19313
- const S = (A = h.current) == null ? void 0 : A.getBoundingClientRect();
19314
- S && (M < 8 && (M = 8), M + m.width > S.width - 8 && (M = S.width - m.width - 8), O < 8 && (O = 8), O + m.height > S.height - 8 && (O = S.height - m.height - 8));
19313
+ const B = (A = f.current) == null ? void 0 : A.getBoundingClientRect();
19314
+ B && (x < 8 && (x = 8), x + m.width > B.width - 8 && (x = B.width - m.width - 8), y < 8 && (y = 8), y + m.height > B.height - 8 && (y = B.height - m.height - 8));
19315
19315
  } else {
19316
- const S = window.innerWidth, k = window.innerHeight, F = 8;
19317
- M < F && (M = F), M + m.width > S - F && (M = S - m.width - F), O < F && (O = F), O + m.height > k - F && (O = k - m.height - F);
19316
+ const B = window.innerWidth, k = window.innerHeight, D = 8;
19317
+ x < D && (x = D), x + m.width > B - D && (x = B - m.width - D), y < D && (y = D), y + m.height > k - D && (y = k - m.height - D);
19318
19318
  }
19319
- if (isNaN(O) || isNaN(M) || O < 0 || M < 0) {
19320
- y();
19319
+ if (isNaN(y) || isNaN(x) || y < 0 || x < 0) {
19320
+ O();
19321
19321
  return;
19322
19322
  }
19323
19323
  const Z = Date.now();
19324
19324
  if (Z - V.current.lastTime < 100) {
19325
19325
  if (V.current.count++, V.current.count > 5) {
19326
- y();
19326
+ O();
19327
19327
  return;
19328
19328
  }
19329
19329
  } else
19330
19330
  V.current.count = 0;
19331
- V.current.lastTime = Z, j.current = { top: O, left: M }, s({ top: O, left: M });
19332
- }, [o, r, t, y]);
19333
- X(() => (a && g.current ? (requestAnimationFrame(() => {
19334
- if (R(), w.current) {
19335
- const x = w.current.getBoundingClientRect();
19336
- H.current = { top: x.top, left: x.left };
19337
- }
19338
- }), v.current = setInterval(B, 100)) : v.current && (clearInterval(v.current), v.current = null), () => {
19331
+ V.current.lastTime = Z, j.current = { top: y, left: x }, s({ top: y, left: x });
19332
+ }, [o, r, t, O]);
19333
+ K(() => (a && w.current ? (requestAnimationFrame(() => {
19334
+ if (R(), h.current) {
19335
+ const b = h.current.getBoundingClientRect();
19336
+ H.current = { top: b.top, left: b.left };
19337
+ }
19338
+ }), v.current = setInterval($, 100)) : v.current && (clearInterval(v.current), v.current = null), () => {
19339
19339
  v.current && (clearInterval(v.current), v.current = null);
19340
- }), [a, R, B]), X(() => {
19341
- if (w.current)
19342
- return f.current = new IntersectionObserver(
19343
- (x) => {
19344
- x.forEach((m) => {
19345
- !m.isIntersecting && a && y();
19340
+ }), [a, R, $]), K(() => {
19341
+ if (h.current)
19342
+ return M.current = new IntersectionObserver(
19343
+ (b) => {
19344
+ b.forEach((m) => {
19345
+ !m.isIntersecting && a && O();
19346
19346
  });
19347
19347
  },
19348
19348
  {
19349
19349
  threshold: 0,
19350
19350
  rootMargin: "8px"
19351
19351
  }
19352
- ), f.current.observe(w.current), () => {
19353
- f.current && f.current.disconnect();
19352
+ ), M.current.observe(h.current), () => {
19353
+ M.current && M.current.disconnect();
19354
19354
  };
19355
- }, [a, y]), X(() => {
19355
+ }, [a, O]), K(() => {
19356
19356
  if (!a) return;
19357
- const x = () => {
19358
- t || y();
19357
+ const b = () => {
19358
+ t || O();
19359
19359
  }, m = () => {
19360
- y();
19360
+ O();
19361
19361
  };
19362
- return window.addEventListener("scroll", x, !0), window.addEventListener("resize", m), () => {
19363
- window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", m);
19362
+ return window.addEventListener("scroll", b, !0), window.addEventListener("resize", m), () => {
19363
+ window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", m);
19364
19364
  };
19365
- }, [a, t, y]);
19365
+ }, [a, t, O]);
19366
19366
  const N = P(() => {
19367
- e || (b.current && (clearTimeout(b.current), b.current = null), n > 0 ? b.current = setTimeout(() => {
19367
+ e || (g.current && (clearTimeout(g.current), g.current = null), n > 0 ? g.current = setTimeout(() => {
19368
19368
  c(!0);
19369
19369
  }, n) : c(!0));
19370
- }, [e, n]), $ = P(() => {
19371
- b.current && (clearTimeout(b.current), b.current = null), c(!1), s({ top: 0, left: 0 });
19370
+ }, [e, n]), S = P(() => {
19371
+ g.current && (clearTimeout(g.current), g.current = null), c(!1), s({ top: 0, left: 0 });
19372
19372
  }, []);
19373
- return X(() => () => {
19374
- b.current && clearTimeout(b.current), v.current && clearInterval(v.current);
19373
+ return K(() => () => {
19374
+ g.current && clearTimeout(g.current), v.current && clearInterval(v.current);
19375
19375
  }, []), {
19376
19376
  isVisible: a,
19377
19377
  coords: l,
19378
19378
  tooltipDimensions: C,
19379
19379
  adjustedPosition: d,
19380
- triggerRef: w,
19381
- tooltipRef: g,
19382
- containerRef: h,
19380
+ triggerRef: h,
19381
+ tooltipRef: w,
19382
+ containerRef: f,
19383
19383
  handleMouseEnter: N,
19384
- handleMouseLeave: $,
19384
+ handleMouseLeave: S,
19385
19385
  calculatePosition: R
19386
19386
  };
19387
19387
  }, $5 = {
@@ -19591,23 +19591,23 @@ const I5 = ({
19591
19591
  style: p,
19592
19592
  arrowClassName: d,
19593
19593
  absolute: L = !1,
19594
- ...w
19594
+ ...h
19595
19595
  }) => {
19596
19596
  const {
19597
- isVisible: g,
19598
- coords: h,
19599
- adjustedPosition: b,
19600
- triggerRef: f,
19597
+ isVisible: w,
19598
+ coords: f,
19599
+ adjustedPosition: g,
19600
+ triggerRef: M,
19601
19601
  tooltipRef: v,
19602
19602
  containerRef: H,
19603
19603
  handleMouseEnter: j,
19604
19604
  handleMouseLeave: V
19605
- } = S5(t, n, L, c, l), y = N5(e, L), B = P5(b, e);
19605
+ } = S5(t, n, L, c, l), O = N5(e, L), $ = P5(g, e);
19606
19606
  return /* @__PURE__ */ u("div", { ref: H, className: L ? "ui-relative" : "", children: [
19607
19607
  /* @__PURE__ */ i(
19608
19608
  "div",
19609
19609
  {
19610
- ref: f,
19610
+ ref: M,
19611
19611
  onMouseEnter: j,
19612
19612
  onMouseLeave: V,
19613
19613
  onFocus: j,
@@ -19616,28 +19616,28 @@ const I5 = ({
19616
19616
  children: o
19617
19617
  }
19618
19618
  ),
19619
- g && (L ? /* @__PURE__ */ u(
19619
+ w && (L ? /* @__PURE__ */ u(
19620
19620
  "div",
19621
19621
  {
19622
19622
  ref: v,
19623
19623
  id: a,
19624
19624
  className: _(
19625
- y,
19625
+ O,
19626
19626
  "imj-ui-tooltip ui-font-bold",
19627
19627
  s
19628
19628
  ),
19629
19629
  style: {
19630
- top: `${h.top}px`,
19631
- left: `${h.left}px`,
19632
- opacity: h.top === 0 && h.left === 0 ? 0 : 1,
19630
+ top: `${f.top}px`,
19631
+ left: `${f.left}px`,
19632
+ opacity: f.top === 0 && f.left === 0 ? 0 : 1,
19633
19633
  ...p
19634
19634
  },
19635
19635
  role: "tooltip",
19636
- "aria-hidden": !g,
19637
- ...w,
19636
+ "aria-hidden": !w,
19637
+ ...h,
19638
19638
  children: [
19639
19639
  r,
19640
- /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", d), style: B })
19640
+ /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", d), style: $ })
19641
19641
  ]
19642
19642
  }
19643
19643
  ) : P1(
@@ -19647,22 +19647,22 @@ const I5 = ({
19647
19647
  ref: v,
19648
19648
  id: a,
19649
19649
  className: _(
19650
- y,
19650
+ O,
19651
19651
  "imj-ui-tooltip ui-font-bold",
19652
19652
  s
19653
19653
  ),
19654
19654
  style: {
19655
- top: `${h.top}px`,
19656
- left: `${h.left}px`,
19657
- opacity: h.top === 0 && h.left === 0 ? 0 : 1,
19655
+ top: `${f.top}px`,
19656
+ left: `${f.left}px`,
19657
+ opacity: f.top === 0 && f.left === 0 ? 0 : 1,
19658
19658
  ...p
19659
19659
  },
19660
19660
  role: "tooltip",
19661
- "aria-hidden": !g,
19662
- ...w,
19661
+ "aria-hidden": !w,
19662
+ ...h,
19663
19663
  children: [
19664
19664
  r,
19665
- /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", d), style: B })
19665
+ /* @__PURE__ */ i("div", { className: _("tooltip-imj-ui-arrow", d), style: $ })
19666
19666
  ]
19667
19667
  }
19668
19668
  ),
@@ -19783,44 +19783,44 @@ const I5 = ({
19783
19783
  rounded: p,
19784
19784
  children: d,
19785
19785
  textColor: L,
19786
- clickable: w = !0,
19787
- icon: g,
19788
- link: h,
19789
- size: b,
19790
- square: f = !1,
19786
+ clickable: h = !0,
19787
+ icon: w,
19788
+ link: f,
19789
+ size: g,
19790
+ square: M = !1,
19791
19791
  target: v = "_self",
19792
19792
  onClickIcon: H,
19793
19793
  onClickLeftSlot: j,
19794
19794
  onClickRightSlot: V,
19795
- disabled: y,
19796
- colorIcon: B,
19795
+ disabled: O,
19796
+ colorIcon: $,
19797
19797
  showShadow: R = !1,
19798
19798
  borderable: N,
19799
- iconSizeExtended: $ = "none",
19800
- defaultSizeIcon: x = !0,
19799
+ iconSizeExtended: S = "none",
19800
+ defaultSizeIcon: b = !0,
19801
19801
  defaultTooltipColor: m = !0,
19802
19802
  as: I = "button",
19803
- classNameId: O = "imj-ui-inner-button",
19804
- tooltip: M = "",
19803
+ classNameId: y = "imj-ui-inner-button",
19804
+ tooltip: x = "",
19805
19805
  tooltipPosition: Z,
19806
- tooltipAlignment: E,
19806
+ tooltipAlignment: z,
19807
19807
  tooltipColor: G = "neutral",
19808
- tooltipDelay: z,
19809
- tooltipAbsolute: K,
19808
+ tooltipDelay: E,
19809
+ tooltipAbsolute: X,
19810
19810
  classNameTooltip: J,
19811
19811
  stopPropagation: n1 = !0,
19812
19812
  pointer: A = !1,
19813
- ref: S,
19813
+ ref: B,
19814
19814
  onClick: k,
19815
- textAlign: F = "center",
19815
+ textAlign: D = "center",
19816
19816
  whiteBackground: e1 = !1,
19817
19817
  strokeWidth: t1 = 2,
19818
19818
  transition: l1 = !0,
19819
- ...D
19819
+ ...F
19820
19820
  }) => {
19821
19821
  const T = {
19822
- disabled: y
19823
- }, q = a === "icon", i1 = q ? !0 : x, W = q ? "xs" : b, p1 = (L1) => {
19822
+ disabled: O
19823
+ }, q = a === "icon", i1 = q ? !0 : b, W = q ? "xs" : g, p1 = (L1) => {
19824
19824
  n1 && L1.stopPropagation(), k && k(L1);
19825
19825
  }, s1 = c1("", {
19826
19826
  variants: {
@@ -19852,8 +19852,8 @@ const I5 = ({
19852
19852
  M1,
19853
19853
  {
19854
19854
  slot: n,
19855
- size: b,
19856
- colorIcon: B,
19855
+ size: g,
19856
+ colorIcon: $,
19857
19857
  className: o,
19858
19858
  onClick: j,
19859
19859
  defaultSizeIcon: i1,
@@ -19866,7 +19866,7 @@ const I5 = ({
19866
19866
  className: _(
19867
19867
  "ui-relative ui-leading-none",
19868
19868
  n || e ? "" : "ui-w-full",
19869
- s1({ color: L, textAlign: F })
19869
+ s1({ color: L, textAlign: D })
19870
19870
  ),
19871
19871
  children: [
19872
19872
  d,
@@ -19875,60 +19875,60 @@ const I5 = ({
19875
19875
  }
19876
19876
  ),
19877
19877
  c && d && /* @__PURE__ */ i(I5, { color: c, label: l, border: s }),
19878
- !d && g && (typeof g == "string" ? /* @__PURE__ */ i(
19878
+ !d && w && (typeof w == "string" ? /* @__PURE__ */ i(
19879
19879
  v1,
19880
19880
  {
19881
19881
  strokeWidth: t1,
19882
- name: g,
19883
- size: a === "icon" ? b : $ !== "none" ? $ : b,
19884
- color: B,
19882
+ name: w,
19883
+ size: a === "icon" ? g : S !== "none" ? S : g,
19884
+ color: $,
19885
19885
  onClick: a === "icon" ? k || H : void 0
19886
19886
  }
19887
- ) : g),
19887
+ ) : w),
19888
19888
  d && e && /* @__PURE__ */ i(
19889
19889
  M1,
19890
19890
  {
19891
19891
  slot: e,
19892
- size: $ !== "none" ? $ : b,
19893
- colorIcon: B,
19892
+ size: S !== "none" ? S : g,
19893
+ colorIcon: $,
19894
19894
  className: o,
19895
19895
  onClick: V,
19896
19896
  defaultSizeIcon: i1,
19897
19897
  strokeWidth: t1
19898
19898
  }
19899
19899
  )
19900
- ] }), u1 = f ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", j1 = m ? G || "neutral" : C, x1 = c1(
19901
- `${O} ui-h-fit ui-justify-center ui-flex ui-items-center ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${R && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${A && q ? "!ui-cursor-pointer" : ""} ${l1 ? "ui-transition-all ui-duration-300" : ""}`,
19900
+ ] }), u1 = M ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", j1 = m ? G || "neutral" : C, x1 = 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 ${A && q ? "!ui-cursor-pointer" : ""} ${l1 ? "ui-transition-all ui-duration-300" : ""}`,
19902
19902
  {
19903
19903
  variants: {
19904
19904
  variant: {
19905
19905
  button: " ui-border-transparent",
19906
- text: ` !ui-border-transparent !ui-bg-transparent ${w ? "enabled:hover:ui-underline !ui-active:enabled:ui-underline" : ""} disabled:ui-cursor-not-allowed`,
19906
+ text: ` !ui-border-transparent !ui-bg-transparent ${h ? "enabled:hover:ui-underline !ui-active:enabled:ui-underline" : ""} disabled:ui-cursor-not-allowed`,
19907
19907
  outlined: "",
19908
19908
  soft: "",
19909
19909
  icon: " ui-border-transparent"
19910
19910
  },
19911
19911
  size: {
19912
- xs: `ui-max-h-5 ui-min-h-5 ui-min-w-5 ${d ? "ui-px-1 ui-py-0.5" : "ui-p-0.5 ui-w-5 ui-flex ui-justify-center ui-items-center"} ui-h-5 ui-text-[10px] ${f ? ` ui-max-w-5 ui-min-h-5 ${u1}` : ""}`,
19913
- sm: `ui-max-h-6 ui-min-h-6 ui-min-w-6 ${d ? "ui-px-2 ui-py-1" : "ui-p-1 ui-w-6 ui-flex ui-justify-center ui-items-center"} ui-h-6 ui-text-[10px] ${f ? ` ui-max-w-6 ui-min-h-6 ${u1}` : ""}`,
19914
- md: `ui-max-h-[26px] ui-min-h-[26px] ui-min-w-[26px] ${d ? "ui-px-3 ui-py-1.5" : "ui-p-1.5 ui-w-[26px] ui-flex ui-justify-center ui-items-center"} ui-h-[26px] ui-text-[12px] ${f ? ` ui-max-w-[26px] ui-min-h-[26px] ${u1}` : ""}`,
19915
- lg: `ui-max-h-[32px] ui-min-h-[32px] ui-min-w-[32px] ${d ? "ui-px-4 ui-py-2" : "ui-p-2 ui-w-[32px] ui-flex ui-justify-center ui-items-center"} ui-h-[32px] ui-text-[14px] ${f ? ` ui-max-w-[32px] ui-min-h-[32px] ${u1}` : ""}`,
19916
- xl: `ui-max-h-[42px] ui-min-h-[42px] ui-min-w-[42px] ${d ? "ui-px-5 ui-py-2.5" : "ui-p-2.5 ui-w-[42px] ui-flex ui-justify-center ui-items-center"} ui-h-[42px] ui-text-[16px] ${f ? ` ui-max-w-[42px] ui-min-h-[42px] ${u1}` : ""}`,
19917
- "2xl": `ui-max-h-[52px] ui-min-h-[52px] ui-min-w-[52px] ${d ? "ui-px-6 ui-py-3" : "ui-p-3 ui-w-[52px] ui-flex ui-justify-center ui-items-center"} ui-h-[52px] ui-text-[18px] ${f ? ` ui-max-w-[52px] ui-min-h-[52px] ${u1}` : ""}`,
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] ${f ? `ui-max-w-[62px] ui-min-h-[62px] ${u1}` : ""}`
19912
+ xs: `ui-max-h-5 ui-min-h-5 ui-min-w-5 ${d ? "ui-px-1 ui-py-0.5" : "ui-p-0.5 ui-w-5 ui-flex ui-justify-center ui-items-center"} ui-h-5 ui-text-[10px] ${M ? ` ui-max-w-5 ui-min-h-5 ${u1}` : ""}`,
19913
+ sm: `ui-max-h-6 ui-min-h-6 ui-min-w-6 ${d ? "ui-px-2 ui-py-1" : "ui-p-1 ui-w-6 ui-flex ui-justify-center ui-items-center"} ui-h-6 ui-text-[10px] ${M ? ` ui-max-w-6 ui-min-h-6 ${u1}` : ""}`,
19914
+ md: `ui-max-h-[26px] ui-min-h-[26px] ui-min-w-[26px] ${d ? "ui-px-3 ui-py-1.5" : "ui-p-1.5 ui-w-[26px] ui-flex ui-justify-center ui-items-center"} ui-h-[26px] ui-text-[12px] ${M ? ` ui-max-w-[26px] ui-min-h-[26px] ${u1}` : ""}`,
19915
+ lg: `ui-max-h-[32px] ui-min-h-[32px] ui-min-w-[32px] ${d ? "ui-px-4 ui-py-2" : "ui-p-2 ui-w-[32px] ui-flex ui-justify-center ui-items-center"} ui-h-[32px] ui-text-[14px] ${M ? ` ui-max-w-[32px] ui-min-h-[32px] ${u1}` : ""}`,
19916
+ xl: `ui-max-h-[42px] ui-min-h-[42px] ui-min-w-[42px] ${d ? "ui-px-5 ui-py-2.5" : "ui-p-2.5 ui-w-[42px] ui-flex ui-justify-center ui-items-center"} ui-h-[42px] ui-text-[16px] ${M ? ` ui-max-w-[42px] ui-min-h-[42px] ${u1}` : ""}`,
19917
+ "2xl": `ui-max-h-[52px] ui-min-h-[52px] ui-min-w-[52px] ${d ? "ui-px-6 ui-py-3" : "ui-p-3 ui-w-[52px] ui-flex ui-justify-center ui-items-center"} ui-h-[52px] ui-text-[18px] ${M ? ` ui-max-w-[52px] ui-min-h-[52px] ${u1}` : ""}`,
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] ${M ? `ui-max-w-[62px] ui-min-h-[62px] ${u1}` : ""}`
19919
19919
  },
19920
19920
  color: {
19921
- blue: C1(a, w, N, e1).blue,
19922
- "blue-dark": C1(a, w, N, e1)["blue-dark"],
19923
- orange: C1(a, w, N, e1).orange,
19924
- red: C1(a, w, N, e1).red,
19925
- green: C1(a, w, N, e1).green,
19926
- white: C1(a, w, N, e1).white,
19927
- yellow: C1(a, w, N, e1).yellow,
19928
- "blue-light": C1(a, w, N, e1)["blue-light"],
19929
- neutral: C1(a, w, N, e1).neutral,
19930
- black: C1(a, w, N, e1).black,
19931
- transparent: C1(a, w, N, e1).transparent
19921
+ blue: C1(a, h, N, e1).blue,
19922
+ "blue-dark": C1(a, h, N, e1)["blue-dark"],
19923
+ orange: C1(a, h, N, e1).orange,
19924
+ red: C1(a, h, N, e1).red,
19925
+ green: C1(a, h, N, e1).green,
19926
+ white: C1(a, h, N, e1).white,
19927
+ yellow: C1(a, h, N, e1).yellow,
19928
+ "blue-light": C1(a, h, N, e1)["blue-light"],
19929
+ neutral: C1(a, h, N, e1).neutral,
19930
+ black: C1(a, h, N, e1).black,
19931
+ transparent: C1(a, h, N, e1).transparent
19932
19932
  },
19933
19933
  rounded: {
19934
19934
  false: "ui-rounded-sm",
@@ -19936,7 +19936,7 @@ const I5 = ({
19936
19936
  },
19937
19937
  fullWidth: {
19938
19938
  true: "ui-w-full",
19939
- false: !f && !g && d ? "ui-min-w-fit" : ""
19939
+ false: !M && !w && d ? "ui-min-w-fit" : ""
19940
19940
  }
19941
19941
  },
19942
19942
  defaultVariants: {
@@ -19954,11 +19954,11 @@ const I5 = ({
19954
19954
  variant: a,
19955
19955
  className: _(o)
19956
19956
  });
19957
- return h ? /* @__PURE__ */ i(
19957
+ return f ? /* @__PURE__ */ i(
19958
19958
  "a",
19959
19959
  {
19960
- ref: S,
19961
- href: h,
19960
+ ref: B,
19961
+ href: f,
19962
19962
  target: v,
19963
19963
  className: _(x1, o),
19964
19964
  children: d1()
@@ -19966,20 +19966,20 @@ const I5 = ({
19966
19966
  ) : I === "div" ? /* @__PURE__ */ i(
19967
19967
  Q0,
19968
19968
  {
19969
- label: M,
19969
+ label: x,
19970
19970
  position: Z,
19971
- alignment: E,
19972
- absolute: K,
19971
+ alignment: z,
19972
+ absolute: X,
19973
19973
  color: j1,
19974
- delay: z,
19974
+ delay: E,
19975
19975
  className: J,
19976
19976
  fullWidth: t,
19977
19977
  children: /* @__PURE__ */ i(
19978
19978
  "div",
19979
19979
  {
19980
- ref: S,
19980
+ ref: B,
19981
19981
  className: _(x1, o),
19982
- ...D,
19982
+ ...F,
19983
19983
  children: d1()
19984
19984
  }
19985
19985
  )
@@ -19987,27 +19987,27 @@ const I5 = ({
19987
19987
  ) : /* @__PURE__ */ i(
19988
19988
  Q0,
19989
19989
  {
19990
- label: M,
19990
+ label: x,
19991
19991
  position: Z,
19992
- alignment: E,
19992
+ alignment: z,
19993
19993
  color: j1,
19994
- delay: z,
19994
+ delay: E,
19995
19995
  className: J,
19996
19996
  fullWidth: t,
19997
19997
  children: /* @__PURE__ */ i(
19998
19998
  "button",
19999
19999
  {
20000
- ref: S,
20000
+ ref: B,
20001
20001
  className: _(x1, o),
20002
20002
  ...T,
20003
- ...D,
20003
+ ...F,
20004
20004
  onClick: p1,
20005
20005
  children: d1()
20006
20006
  }
20007
20007
  )
20008
20008
  }
20009
20009
  );
20010
- }, D5 = ({
20010
+ }, F5 = ({
20011
20011
  title: o,
20012
20012
  open: r,
20013
20013
  setOpen: t,
@@ -20026,14 +20026,14 @@ const I5 = ({
20026
20026
  icon: r || !e ? "Minus2Outlined" : "Plus1Outlined"
20027
20027
  }
20028
20028
  )
20029
- ] }), F5 = ({ children: o, open: r }) => /* @__PURE__ */ i(
20029
+ ] }), D5 = ({ 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"}`,
20033
20033
  "aria-hidden": !r,
20034
20034
  children: /* @__PURE__ */ i("div", { className: "ui-bg-gray-50 ui-text-gray-700", children: o })
20035
20035
  }
20036
- ), E5 = ({
20036
+ ), z5 = ({
20037
20037
  title: o,
20038
20038
  subtitle: r,
20039
20039
  children: t,
@@ -20049,7 +20049,7 @@ const I5 = ({
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
- D5,
20052
+ F5,
20053
20053
  {
20054
20054
  open: l,
20055
20055
  title: o,
@@ -20058,7 +20058,7 @@ const I5 = ({
20058
20058
  children: t
20059
20059
  }
20060
20060
  ),
20061
- /* @__PURE__ */ u(F5, { open: l, children: [
20061
+ /* @__PURE__ */ u(D5, { 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
@@ -20067,7 +20067,7 @@ const I5 = ({
20067
20067
  },
20068
20068
  n
20069
20069
  );
20070
- }, Zi = (o) => /* @__PURE__ */ i(E5, { ...o }), z5 = () => ({
20070
+ }, Zi = (o) => /* @__PURE__ */ i(z5, { ...o }), E5 = () => ({
20071
20071
  getAlertClassName: (e, a, c = "contained") => {
20072
20072
  const l = "ui-rounded-md ui-p-2 ui-shadow-md ui-transform ui-transition-all ui-duration-300 ui-ease-in-out", s = a ? "ui-opacity-0 ui-translate-x-4" : "ui-opacity-100 ui-translate-x-0", C = {
20073
20073
  green: "success",
@@ -20153,7 +20153,7 @@ const I5 = ({
20153
20153
  return a === "contained" ? "ui-bg-white" : l[s];
20154
20154
  }
20155
20155
  }), R5 = (o) => {
20156
- const { getIconForType: r } = z5(), t = o.variant === "contained", n = (a) => {
20156
+ const { getIconForType: r } = E5(), t = o.variant === "contained", n = (a) => {
20157
20157
  a.stopPropagation(), o.onClose && o.onClose(a);
20158
20158
  }, e = o.color === "yellow";
20159
20159
  return /* @__PURE__ */ u("div", { className: `ui-flex ui-gap-x-1 ${o.title ? "ui-items-start" : "ui-items-center"}`, children: [
@@ -20318,11 +20318,11 @@ const I5 = ({
20318
20318
  }[o][r]}`;
20319
20319
  }, G5 = ({ open: o, externalIsLeaving: r }) => {
20320
20320
  const [t, n] = Y(!1), [e, a] = Y(!1), c = r !== void 0 ? r : e;
20321
- return X(() => {
20321
+ return K(() => {
20322
20322
  o ? (n(!0), a(!1)) : (a(!0), r === void 0 && setTimeout(() => {
20323
20323
  n(!1);
20324
20324
  }, 300));
20325
- }, [o, r]), X(() => {
20325
+ }, [o, r]), K(() => {
20326
20326
  r && r !== e && (a(!0), setTimeout(() => {
20327
20327
  n(!1);
20328
20328
  }, 300));
@@ -20425,9 +20425,9 @@ const I5 = ({
20425
20425
  borderStyle: p = "solid",
20426
20426
  icon: d,
20427
20427
  showIcon: L = !1,
20428
- description: w = ""
20428
+ description: h = ""
20429
20429
  }) => {
20430
- const g = c1(
20430
+ const w = c1(
20431
20431
  "ui-w-11 ui-h-11 ui-min-w-11 ui-min-h-11 ui-rounded-full ui-flex ui-items-center ui-justify-center ui-relative",
20432
20432
  {
20433
20433
  variants: {
@@ -20446,7 +20446,7 @@ const I5 = ({
20446
20446
  }
20447
20447
  }
20448
20448
  }
20449
- ), h = c1(
20449
+ ), f = c1(
20450
20450
  "ui-absolute ui-border-[3px] ui-p-3.5 ui-rounded-full ui-border-white",
20451
20451
  {
20452
20452
  variants: {
@@ -20459,9 +20459,9 @@ const I5 = ({
20459
20459
  }
20460
20460
  );
20461
20461
  return /* @__PURE__ */ u("div", { className: _("ui-relative ui-flex ui-w-full ui-gap-2 ui-p-1", o), children: [
20462
- (d || L) && /* @__PURE__ */ u("div", { className: _(g({ status: r })), children: [
20462
+ (d || L) && /* @__PURE__ */ u("div", { className: _(w({ status: r })), children: [
20463
20463
  d && /* @__PURE__ */ i(v1, { name: d, size: "2xl", color: "white", strokeWidth: 4 }),
20464
- /* @__PURE__ */ i("div", { className: _(h({ borderStyle: p })) })
20464
+ /* @__PURE__ */ i("div", { className: _(f({ borderStyle: p })) })
20465
20465
  ] }),
20466
20466
  /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-w-full ui-flex-col ui-gap-1.5", children: [
20467
20467
  /* @__PURE__ */ u("div", { className: "ui-flex ui-items-center ui-justify-between ui-gap-2", children: [
@@ -20482,7 +20482,7 @@ const I5 = ({
20482
20482
  "p",
20483
20483
  {
20484
20484
  className: _("ui-text-xxs", r === "red" ? "ui-text-red-500" : "ui-text-neutral-500"),
20485
- children: w
20485
+ children: h
20486
20486
  }
20487
20487
  )
20488
20488
  ] })
@@ -20501,13 +20501,13 @@ const I5 = ({
20501
20501
  onSecondaryClick: p,
20502
20502
  primaryButtonText: d = "Aceptar",
20503
20503
  secondaryButtonText: L = "Cancelar",
20504
- animation: w = "none",
20505
- isLeaving: g,
20506
- progressBarColor: h = !1,
20507
- duration: b = 3e3
20504
+ animation: h = "none",
20505
+ isLeaving: w,
20506
+ progressBarColor: f = !1,
20507
+ duration: g = 3e3
20508
20508
  }) => {
20509
- const { isVisible: f, isLeaving: v } = G5({ open: o, externalIsLeaving: g });
20510
- if (!f)
20509
+ const { isVisible: M, isLeaving: v } = G5({ open: o, externalIsLeaving: w });
20510
+ if (!M)
20511
20511
  return null;
20512
20512
  const H = !!s, j = (V) => {
20513
20513
  s && (V.stopPropagation(), s());
@@ -20518,7 +20518,7 @@ const I5 = ({
20518
20518
  className: _(
20519
20519
  "ui-imj-alert ui-relative ui-overflow-hidden",
20520
20520
  n,
20521
- _5({ color: r, variant: t, isLeaving: v, animation: w }),
20521
+ _5({ color: r, variant: t, isLeaving: v, animation: h }),
20522
20522
  H ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20523
20523
  ),
20524
20524
  onClick: j,
@@ -20547,11 +20547,11 @@ const I5 = ({
20547
20547
  }
20548
20548
  )
20549
20549
  ] }),
20550
- h && /* @__PURE__ */ i("div", { className: _("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20550
+ f && /* @__PURE__ */ i("div", { className: _("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20551
20551
  Y5,
20552
20552
  {
20553
20553
  progress: 100,
20554
- duration: b,
20554
+ duration: g,
20555
20555
  color: t === "contained" ? "white" : r,
20556
20556
  showLabel: !1,
20557
20557
  withBackground: !1
@@ -20574,17 +20574,17 @@ const I5 = ({
20574
20574
  color: p,
20575
20575
  rounded: d,
20576
20576
  children: L,
20577
- icon: w,
20578
- link: g,
20579
- size: h,
20580
- target: b = "_self",
20581
- onClickIcon: f,
20577
+ icon: h,
20578
+ link: w,
20579
+ size: f,
20580
+ target: g = "_self",
20581
+ onClickIcon: M,
20582
20582
  disabled: v,
20583
20583
  colorIcon: H,
20584
20584
  tooltip: j,
20585
20585
  tooltipPosition: V,
20586
- tooltipAlignment: y,
20587
- tooltipColor: B,
20586
+ tooltipAlignment: O,
20587
+ tooltipColor: $,
20588
20588
  tooltipDelay: R,
20589
20589
  ...N
20590
20590
  }) => /* @__PURE__ */ i(
@@ -20595,25 +20595,25 @@ const I5 = ({
20595
20595
  color: p,
20596
20596
  rounded: d,
20597
20597
  fullWidth: t,
20598
- size: h,
20598
+ size: f,
20599
20599
  clickable: C,
20600
20600
  children: L,
20601
- icon: w,
20601
+ icon: h,
20602
20602
  badgeColor: c,
20603
20603
  badgeLabel: l,
20604
20604
  badgeBorder: s,
20605
20605
  slotLeft: n,
20606
20606
  slotRight: e,
20607
- link: g,
20608
- target: b,
20609
- onClickIcon: f,
20607
+ link: w,
20608
+ target: g,
20609
+ onClickIcon: M,
20610
20610
  disabled: v,
20611
20611
  colorIcon: H,
20612
20612
  className: r,
20613
20613
  tooltip: j,
20614
20614
  tooltipPosition: V,
20615
- tooltipAlignment: y,
20616
- tooltipColor: B,
20615
+ tooltipAlignment: O,
20616
+ tooltipColor: $,
20617
20617
  tooltipDelay: R,
20618
20618
  ...N
20619
20619
  }
@@ -20639,7 +20639,7 @@ const I5 = ({
20639
20639
  });
20640
20640
  });
20641
20641
  return /* @__PURE__ */ i("div", { className: `ui-flex ui-items-center ui-gap-0 ${r || ""}`, children: c });
20642
- }, E1 = ({ className: o, vertical: r = !1, padding: t = !0 }) => /* @__PURE__ */ i(
20642
+ }, z1 = ({ className: o, vertical: r = !1, padding: t = !0 }) => /* @__PURE__ */ i(
20643
20643
  "div",
20644
20644
  {
20645
20645
  className: _(
@@ -20697,7 +20697,7 @@ g1.Body = ({ children: o, className: r, fullHeight: t = !1, scrollable: n = !0 }
20697
20697
  }
20698
20698
  );
20699
20699
  g1.Footer = ({ children: o, className: r }) => /* @__PURE__ */ i("div", { className: r, children: o });
20700
- g1.Separator = ({ className: o, vertical: r = !1, padding: t = !0 }) => /* @__PURE__ */ i(E1, { vertical: r, padding: t, className: o });
20700
+ g1.Separator = ({ className: o, vertical: r = !1, padding: t = !0 }) => /* @__PURE__ */ i(z1, { vertical: r, padding: t, className: o });
20701
20701
  const X5 = (o) => {
20702
20702
  const {
20703
20703
  mode: r = "single",
@@ -20714,123 +20714,123 @@ const X5 = (o) => {
20714
20714
  internalRange: { start: null, end: null },
20715
20715
  hoverDate: null,
20716
20716
  portalPosition: { top: 0, left: 0 }
20717
- }), [C, p] = Y(!1), d = o1(null), L = r === "single" ? t !== void 0 : n !== void 0, w = r === "single" ? t === void 0 : n === void 0, g = r === "single" ? w ? l.internalDate : t : null, h = r === "range" ? w ? l.internalRange : n : { start: null, end: null }, b = (M) => M && M instanceof Date && !isNaN(M.getTime()), f = b(g) ? g : null, v = {
20718
- start: b(h == null ? void 0 : h.start) ? h.start : null,
20719
- end: b(h == null ? void 0 : h.end) ? h.end : null
20717
+ }), [C, p] = Y(!1), d = o1(null), L = r === "single" ? t !== void 0 : n !== void 0, h = r === "single" ? t === void 0 : n === void 0, w = r === "single" ? h ? l.internalDate : t : null, f = r === "range" ? h ? l.internalRange : n : { start: null, end: null }, g = (x) => x && x instanceof Date && !isNaN(x.getTime()), M = g(w) ? w : null, v = {
20718
+ start: g(f == null ? void 0 : f.start) ? f.start : null,
20719
+ end: g(f == null ? void 0 : f.end) ? f.end : null
20720
20720
  }, H = P(() => {
20721
20721
  if (d.current) {
20722
- const M = d.current.getInputElement();
20723
- if (M) {
20724
- const Z = M.getBoundingClientRect(), E = window.innerHeight, G = window.innerWidth, z = 320, K = 256, J = 8;
20722
+ const x = d.current.getInputElement();
20723
+ if (x) {
20724
+ const Z = x.getBoundingClientRect(), z = window.innerHeight, G = window.innerWidth, E = 320, X = 256, J = 8;
20725
20725
  let n1, A = Z.left;
20726
- const S = E - Z.bottom, k = Z.top;
20727
- S >= z + J ? n1 = Z.bottom + J : k >= z + J ? n1 = Z.top - z + J : S > k ? n1 = Z.bottom + J : n1 = Z.top - z + J, Z.left + K > G && (A = Z.right - K), A = Math.max(0, Math.min(A, G - K)), s((F) => ({
20728
- ...F,
20726
+ const B = z - Z.bottom, k = Z.top;
20727
+ B >= E + J ? n1 = Z.bottom + J : k >= E + J ? n1 = Z.top - E + J : B > k ? n1 = Z.bottom + J : n1 = Z.top - E + J, Z.left + X > G && (A = Z.right - X), A = Math.max(0, Math.min(A, G - X)), s((D) => ({
20728
+ ...D,
20729
20729
  isOpen: !0,
20730
20730
  portalPosition: { top: n1, left: A }
20731
20731
  })), p(!0);
20732
20732
  return;
20733
20733
  }
20734
20734
  }
20735
- s((M) => ({ ...M, isOpen: !0 })), p(!1);
20735
+ s((x) => ({ ...x, isOpen: !0 })), p(!1);
20736
20736
  }, []), j = P(() => {
20737
- s((M) => ({ ...M, isOpen: !1 })), p(!1);
20738
- }, []), V = P((M) => {
20739
- s((Z) => ({ ...Z, currentDate: M }));
20740
- }, []), y = P((M) => {
20741
- s((Z) => ({ ...Z, viewMode: M }));
20742
- }, []), B = P((M) => {
20737
+ s((x) => ({ ...x, isOpen: !1 })), p(!1);
20738
+ }, []), V = P((x) => {
20739
+ s((Z) => ({ ...Z, currentDate: x }));
20740
+ }, []), O = P((x) => {
20741
+ s((Z) => ({ ...Z, viewMode: x }));
20742
+ }, []), $ = P((x) => {
20743
20743
  s((Z) => {
20744
- const E = new Date(Z.currentDate);
20744
+ const z = new Date(Z.currentDate);
20745
20745
  switch (Z.viewMode) {
20746
20746
  case "days":
20747
- E.setMonth(E.getMonth() + (M === "next" ? 1 : -1));
20747
+ z.setMonth(z.getMonth() + (x === "next" ? 1 : -1));
20748
20748
  break;
20749
20749
  case "months":
20750
- E.setFullYear(E.getFullYear() + (M === "next" ? 1 : -1));
20750
+ z.setFullYear(z.getFullYear() + (x === "next" ? 1 : -1));
20751
20751
  break;
20752
20752
  case "years":
20753
- E.setFullYear(E.getFullYear() + (M === "next" ? 12 : -12));
20753
+ z.setFullYear(z.getFullYear() + (x === "next" ? 12 : -12));
20754
20754
  break;
20755
20755
  }
20756
- return { ...Z, currentDate: E };
20756
+ return { ...Z, currentDate: z };
20757
20757
  });
20758
20758
  }, []), R = P(
20759
- (M) => {
20759
+ (x) => {
20760
20760
  var Z;
20761
- r === "single" && (w && s((E) => ({ ...E, internalDate: M })), (Z = o.onDateChange) == null || Z.call(o, M), a && j());
20761
+ r === "single" && (h && s((z) => ({ ...z, internalDate: x })), (Z = o.onDateChange) == null || Z.call(o, x), a && j());
20762
20762
  },
20763
- [r, w, o.onDateChange, a, j]
20763
+ [r, h, o.onDateChange, a, j]
20764
20764
  ), N = P(
20765
- (M) => {
20765
+ (x) => {
20766
20766
  var Z;
20767
- r === "range" && (L || s((E) => ({ ...E, internalRange: M })), (Z = o.onRangeChange) == null || Z.call(o, M), c && M.start && M.end && j());
20767
+ r === "range" && (L || s((z) => ({ ...z, internalRange: x })), (Z = o.onRangeChange) == null || Z.call(o, x), c && x.start && x.end && j());
20768
20768
  },
20769
20769
  [r, L, o.onRangeChange, c, j]
20770
- ), $ = P((M) => {
20771
- s((Z) => ({ ...Z, hoverDate: M }));
20772
- }, []), x = P((M) => {
20770
+ ), S = P((x) => {
20771
+ s((Z) => ({ ...Z, hoverDate: x }));
20772
+ }, []), b = P((x) => {
20773
20773
  s((Z) => {
20774
- const E = new Date(Z.currentDate);
20775
- return E.setMonth(M), {
20774
+ const z = new Date(Z.currentDate);
20775
+ return z.setMonth(x), {
20776
20776
  ...Z,
20777
- currentDate: E,
20777
+ currentDate: z,
20778
20778
  viewMode: "days"
20779
20779
  };
20780
20780
  });
20781
- }, []), m = P((M) => {
20781
+ }, []), m = P((x) => {
20782
20782
  s((Z) => {
20783
- const E = new Date(Z.currentDate);
20784
- return E.setFullYear(M), {
20783
+ const z = new Date(Z.currentDate);
20784
+ return z.setFullYear(x), {
20785
20785
  ...Z,
20786
- currentDate: E,
20786
+ currentDate: z,
20787
20787
  viewMode: "months"
20788
20788
  };
20789
20789
  });
20790
20790
  }, []), I = P(() => {
20791
- const M = /* @__PURE__ */ new Date();
20791
+ const x = /* @__PURE__ */ new Date();
20792
20792
  s((Z) => ({
20793
20793
  ...Z,
20794
- currentDate: M,
20794
+ currentDate: x,
20795
20795
  viewMode: "days"
20796
20796
  }));
20797
- }, []), O = P(() => {
20797
+ }, []), y = P(() => {
20798
20798
  if (!d.current)
20799
20799
  return;
20800
- const M = d.current.getInputElement();
20801
- if (!M)
20800
+ const x = d.current.getInputElement();
20801
+ if (!x)
20802
20802
  return;
20803
- const Z = M.getBoundingClientRect(), E = window.innerHeight, G = window.innerWidth, z = 320, K = 256, J = 8;
20803
+ const Z = x.getBoundingClientRect(), z = window.innerHeight, G = window.innerWidth, E = 320, X = 256, J = 8;
20804
20804
  let n1, A = Z.left;
20805
- const S = E - Z.bottom, k = Z.top;
20806
- S >= z + J ? n1 = Z.bottom + J : k >= z + J ? n1 = Z.top - z + J : S > k ? n1 = Z.bottom + J : n1 = Z.top - z + J, Z.left + K > G && (A = Z.right - K), A = Math.max(0, Math.min(A, G - K)), s((F) => ({ ...F, portalPosition: { top: n1, left: A } })), p(!0);
20805
+ const B = z - Z.bottom, k = Z.top;
20806
+ B >= E + J ? n1 = Z.bottom + J : k >= E + J ? n1 = Z.top - E + J : B > k ? n1 = Z.bottom + J : n1 = Z.top - E + J, Z.left + X > G && (A = Z.right - X), A = Math.max(0, Math.min(A, G - X)), s((D) => ({ ...D, portalPosition: { top: n1, left: A } })), p(!0);
20807
20807
  }, []);
20808
- return X(() => {
20808
+ return K(() => {
20809
20809
  if (!l.isOpen) return;
20810
- const M = () => O(), Z = () => O();
20811
- return window.addEventListener("scroll", M, !0), window.addEventListener("resize", Z), () => {
20812
- window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", Z);
20810
+ const x = () => y(), Z = () => y();
20811
+ return window.addEventListener("scroll", x, !0), window.addEventListener("resize", Z), () => {
20812
+ window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", Z);
20813
20813
  };
20814
- }, [l.isOpen, O]), X(() => {
20814
+ }, [l.isOpen, y]), K(() => {
20815
20815
  if (l.isOpen) {
20816
- const M = setTimeout(() => {
20817
- O();
20816
+ const x = setTimeout(() => {
20817
+ y();
20818
20818
  }, 0);
20819
- return () => clearTimeout(M);
20819
+ return () => clearTimeout(x);
20820
20820
  }
20821
- }, [l.isOpen, O]), X(() => {
20822
- L && r === "single" && s((M) => ({
20823
- ...M,
20821
+ }, [l.isOpen, y]), K(() => {
20822
+ L && r === "single" && s((x) => ({
20823
+ ...x,
20824
20824
  internalDate: t
20825
20825
  }));
20826
- }, [L, r, t]), X(() => {
20827
- L && r === "range" && s((M) => ({
20828
- ...M,
20826
+ }, [L, r, t]), K(() => {
20827
+ L && r === "range" && s((x) => ({
20828
+ ...x,
20829
20829
  internalRange: n || { start: null, end: null }
20830
20830
  }));
20831
20831
  }, [L, r, n]), {
20832
20832
  state: l,
20833
- selectedDate: f,
20833
+ selectedDate: M,
20834
20834
  selectedRange: v,
20835
20835
  inputRef: d,
20836
20836
  isPortalReady: C,
@@ -20838,13 +20838,13 @@ const X5 = (o) => {
20838
20838
  openPicker: H,
20839
20839
  closePicker: j,
20840
20840
  setCurrentDate: V,
20841
- setViewMode: y,
20841
+ setViewMode: O,
20842
20842
  setSelectedDate: R,
20843
20843
  setSelectedRange: N,
20844
- setHoverDate: $,
20845
- updatePortalPosition: O,
20846
- navigate: B,
20847
- handleMonthSelect: x,
20844
+ setHoverDate: S,
20845
+ updatePortalPosition: y,
20846
+ navigate: $,
20847
+ handleMonthSelect: b,
20848
20848
  handleYearSelect: m,
20849
20849
  goToToday: I
20850
20850
  }
@@ -20854,65 +20854,65 @@ const X5 = (o) => {
20854
20854
  (d) => !!(!V1(d) || t && V1(t) && d < t || n && V1(n) && d > n),
20855
20855
  [t, n]
20856
20856
  ), C = P(
20857
- (d, L, w) => {
20857
+ (d, L, h) => {
20858
20858
  if (!V1(d)) {
20859
20859
  console.warn("useDateRange: Se recibió una fecha inválida:", d);
20860
20860
  return;
20861
20861
  }
20862
20862
  if (s(d)) return;
20863
- const g = { ...o };
20864
- !o.start || o.start && o.end ? (g.start = d, g.end = null) : d < o.start ? (g.start = d, g.end = o.start) : (g.start = o.start, g.end = d), r(g), e && g.start && g.end && w && w();
20863
+ const w = { ...o };
20864
+ !o.start || o.start && o.end ? (w.start = d, w.end = null) : d < o.start ? (w.start = d, w.end = o.start) : (w.start = o.start, w.end = d), r(w), e && w.start && w.end && h && h();
20865
20865
  },
20866
20866
  [o, r, s, e]
20867
20867
  ), p = P(
20868
20868
  (d, L) => {
20869
- const w = c(d, o), g = l(d, o), h = a(d, o), b = s(d);
20870
- let f = !1;
20869
+ const h = c(d, o), w = l(d, o), f = a(d, o), g = s(d);
20870
+ let M = !1;
20871
20871
  if (L && o.start && !o.end) {
20872
20872
  const V = {
20873
20873
  start: o.start < L ? o.start : L,
20874
20874
  end: o.start < L ? L : o.start
20875
20875
  };
20876
- f = a(d, V);
20876
+ M = a(d, V);
20877
20877
  }
20878
20878
  let v = !1;
20879
- if (o.start && o.end && h && !w) {
20879
+ if (o.start && o.end && f && !h) {
20880
20880
  const V = new Date(d);
20881
20881
  V.setDate(d.getDate() - 1), v = !a(V, o);
20882
- } else if (o.start && !o.end && L && f) {
20882
+ } else if (o.start && !o.end && L && M) {
20883
20883
  const V = new Date(d);
20884
20884
  V.setDate(d.getDate() - 1);
20885
- const y = {
20885
+ const O = {
20886
20886
  start: o.start < L ? o.start : L,
20887
20887
  end: o.start < L ? L : o.start
20888
20888
  };
20889
- v = !a(V, y);
20889
+ v = !a(V, O);
20890
20890
  }
20891
20891
  let H = !1;
20892
- if (o.start && o.end && h && !g) {
20892
+ if (o.start && o.end && f && !w) {
20893
20893
  const V = new Date(d);
20894
20894
  V.setDate(d.getDate() + 1), H = !a(V, o);
20895
- } else if (o.start && !o.end && L && f) {
20895
+ } else if (o.start && !o.end && L && M) {
20896
20896
  const V = new Date(d);
20897
20897
  V.setDate(d.getDate() + 1);
20898
- const y = {
20898
+ const O = {
20899
20899
  start: o.start < L ? o.start : L,
20900
20900
  end: o.start < L ? L : o.start
20901
20901
  };
20902
- H = !a(V, y);
20902
+ H = !a(V, O);
20903
20903
  }
20904
20904
  let j = !0;
20905
20905
  return o.start && !o.end && L ? j = L >= o.start : o.start && o.end && (j = d >= o.start), {
20906
20906
  isSelectingStart: !o.start || o.start && o.end,
20907
20907
  isSelectingEnd: !!o.start && !o.end,
20908
- isStart: w,
20909
- isEnd: g,
20910
- isInRange: h,
20908
+ isStart: h,
20909
+ isEnd: w,
20910
+ isInRange: f,
20911
20911
  isFirstInRange: v,
20912
20912
  isLastInRange: H,
20913
20913
  afterSelected: j,
20914
- isDisabled: b,
20915
- isHovered: f
20914
+ isDisabled: g,
20915
+ isHovered: M
20916
20916
  };
20917
20917
  },
20918
20918
  [o, c, l, a, s]
@@ -20941,32 +20941,32 @@ const X5 = (o) => {
20941
20941
  },
20942
20942
  [o, r]
20943
20943
  ), e = P((p) => {
20944
- const d = p.getFullYear(), L = p.getMonth(), w = new Date(d, L, 1), g = new Date(d, L + 1, 0), h = g.getDate(), b = w.getDay();
20945
- return { firstDay: w, lastDay: g, daysInMonth: h, startOfWeek: b };
20944
+ const d = p.getFullYear(), L = p.getMonth(), h = new Date(d, L, 1), w = new Date(d, L + 1, 0), f = w.getDate(), g = h.getDay();
20945
+ return { firstDay: h, lastDay: w, daysInMonth: f, startOfWeek: g };
20946
20946
  }, []), a = P(
20947
20947
  (p, d = 1) => {
20948
- const { firstDay: L, lastDay: w, daysInMonth: g, startOfWeek: h } = e(p), b = [], f = (h - d + 7) % 7;
20949
- for (let H = 0; H < f; H++)
20950
- b.push(null);
20951
- for (let H = 1; H <= g; H++)
20952
- b.push(H);
20953
- const v = (7 - b.length % 7) % 7;
20948
+ const { firstDay: L, lastDay: h, daysInMonth: w, startOfWeek: f } = e(p), g = [], M = (f - d + 7) % 7;
20949
+ for (let H = 0; H < M; H++)
20950
+ g.push(null);
20951
+ for (let H = 1; H <= w; H++)
20952
+ g.push(H);
20953
+ const v = (7 - g.length % 7) % 7;
20954
20954
  for (let H = 0; H < v; H++)
20955
- b.push(null);
20956
- return b;
20955
+ g.push(null);
20956
+ return g;
20957
20957
  },
20958
20958
  [e]
20959
20959
  ), c = P((p = "es-ES") => {
20960
20960
  const d = [];
20961
20961
  for (let L = 0; L < 12; L++) {
20962
- const w = new Date(2024, L, 1);
20963
- d.push(w.toLocaleDateString(p, { month: "long" }));
20962
+ const h = new Date(2024, L, 1);
20963
+ d.push(h.toLocaleDateString(p, { month: "long" }));
20964
20964
  }
20965
20965
  return d;
20966
20966
  }, []), l = P((p, d = 12) => {
20967
- const L = [], w = p - Math.floor(d / 2);
20968
- for (let g = 0; g < d; g++)
20969
- L.push(w + g);
20967
+ const L = [], h = p - Math.floor(d / 2);
20968
+ for (let w = 0; w < d; w++)
20969
+ L.push(h + w);
20970
20970
  return L;
20971
20971
  }, []), s = P((p) => {
20972
20972
  const d = /* @__PURE__ */ new Date();
@@ -20985,26 +20985,26 @@ const X5 = (o) => {
20985
20985
  const [n, e] = Y({
20986
20986
  isFocused: !1,
20987
20987
  inputValue: o
20988
- }), a = P((w) => {
20989
- e((g) => ({ ...g, isFocused: w }));
20990
- }, []), c = P((w) => {
20991
- e((g) => ({ ...g, inputValue: w }));
20992
- }, []), l = P((w, g) => {
20993
- if (!w) return "";
20994
- const h = w.getDate().toString().padStart(2, "0"), b = (w.getMonth() + 1).toString().padStart(2, "0"), f = w.getFullYear();
20995
- return g.format.replace("dd", h).replace("MM", b).replace("yyyy", f.toString());
20996
- }, []), s = P((w, g) => {
20997
- if (!w) return null;
20998
- const h = g.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), b = new RegExp(`^${h}$`), f = w.match(b);
20999
- if (!f) return null;
21000
- const [, v, H, j] = f, V = new Date(parseInt(j), parseInt(H) - 1, parseInt(v));
20988
+ }), a = P((h) => {
20989
+ e((w) => ({ ...w, isFocused: h }));
20990
+ }, []), c = P((h) => {
20991
+ e((w) => ({ ...w, inputValue: h }));
20992
+ }, []), l = P((h, w) => {
20993
+ if (!h) return "";
20994
+ const f = h.getDate().toString().padStart(2, "0"), g = (h.getMonth() + 1).toString().padStart(2, "0"), M = h.getFullYear();
20995
+ return w.format.replace("dd", f).replace("MM", g).replace("yyyy", M.toString());
20996
+ }, []), s = P((h, w) => {
20997
+ if (!h) return null;
20998
+ const f = w.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), g = new RegExp(`^${f}$`), M = h.match(g);
20999
+ if (!M) return null;
21000
+ const [, v, H, j] = M, V = new Date(parseInt(j), parseInt(H) - 1, parseInt(v));
21001
21001
  return isNaN(V.getTime()) ? null : V;
21002
21002
  }, []), C = P(
21003
- (w, g) => s(w, g) !== null,
21003
+ (h, w) => s(h, w) !== null,
21004
21004
  [s]
21005
21005
  ), p = P(
21006
- (w) => {
21007
- c(w);
21006
+ (h) => {
21007
+ c(h);
21008
21008
  },
21009
21009
  [c]
21010
21010
  ), d = P(() => {
@@ -21035,7 +21035,7 @@ const X5 = (o) => {
21035
21035
  },
21036
21036
  [r]
21037
21037
  );
21038
- X(() => {
21038
+ K(() => {
21039
21039
  if (o)
21040
21040
  return document.addEventListener("mousedown", a), document.addEventListener("keydown", c), () => {
21041
21041
  document.removeEventListener("mousedown", a), document.removeEventListener("keydown", c);
@@ -21079,27 +21079,27 @@ const X5 = (o) => {
21079
21079
  isToday: p,
21080
21080
  isHovered: d,
21081
21081
  onClick: L,
21082
- onMouseEnter: w,
21083
- onMouseLeave: g,
21084
- className: h = "",
21085
- renderDay: b
21082
+ onMouseEnter: h,
21083
+ onMouseLeave: w,
21084
+ className: f = "",
21085
+ renderDay: g
21086
21086
  }) => {
21087
- const f = o1(null);
21087
+ const M = o1(null);
21088
21088
  if (o === null)
21089
21089
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
21090
- const v = (y) => {
21091
- y.stopPropagation(), C || L(r);
21090
+ const v = (O) => {
21091
+ O.stopPropagation(), C || L(r);
21092
21092
  }, H = () => {
21093
- !C && w && (f.current && (clearTimeout(f.current), f.current = null), w(r));
21093
+ !C && h && (M.current && (clearTimeout(M.current), M.current = null), h(r));
21094
21094
  }, j = () => {
21095
- !C && g && (t || n || e || a ? f.current = setTimeout(() => {
21096
- g(), f.current = null;
21097
- }, 100) : g());
21095
+ !C && w && (t || n || e || a ? M.current = setTimeout(() => {
21096
+ w(), M.current = null;
21097
+ }, 100) : w());
21098
21098
  }, V = () => {
21099
- 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`;
21100
- 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} ${h}`;
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}`;
21101
21101
  };
21102
- return b ? b({
21102
+ return g ? g({
21103
21103
  day: o,
21104
21104
  date: r,
21105
21105
  isSelected: t,
@@ -21187,7 +21187,7 @@ const X5 = (o) => {
21187
21187
  "aria-label": `Día ${o}`,
21188
21188
  children: o
21189
21189
  }
21190
- ), z1 = ({
21190
+ ), E1 = ({
21191
21191
  direction: o,
21192
21192
  onClick: r,
21193
21193
  disabled: t = !1,
@@ -21279,8 +21279,8 @@ const X5 = (o) => {
21279
21279
  }
21280
21280
  ),
21281
21281
  /* @__PURE__ */ u("div", { className: "ui-flex ui-items-center ui-gap-1", children: [
21282
- /* @__PURE__ */ i(z1, { direction: "prev", onClick: () => t("prev") }),
21283
- /* @__PURE__ */ i(z1, { direction: "next", onClick: () => t("next") })
21282
+ /* @__PURE__ */ i(E1, { direction: "prev", onClick: () => t("prev") }),
21283
+ /* @__PURE__ */ i(E1, { direction: "next", onClick: () => t("next") })
21284
21284
  ] })
21285
21285
  ] }) });
21286
21286
  }, w9 = ({
@@ -21297,30 +21297,30 @@ const X5 = (o) => {
21297
21297
  hoverDate: p,
21298
21298
  renderDay: d
21299
21299
  }) => {
21300
- const { getCalendarDays: L, isToday: w } = _1(
21300
+ const { getCalendarDays: L, isToday: h } = _1(
21301
21301
  o,
21302
21302
  () => {
21303
21303
  }
21304
- ), { getRangeState: g } = h9(
21304
+ ), { getRangeState: w } = h9(
21305
21305
  t || { start: null, end: null },
21306
21306
  () => {
21307
21307
  },
21308
21308
  a,
21309
21309
  c
21310
- ), h = (v) => r ? v.getTime() === r.getTime() : !1, b = (v) => !!(a && v < a || c && v > c), f = L(o, s);
21310
+ ), f = (v) => r ? v.getTime() === r.getTime() : !1, g = (v) => !!(a && v < a || c && v > c), M = L(o, s);
21311
21311
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
21312
21312
  l.map((v, H) => /* @__PURE__ */ i(e6, { day: v }, H)),
21313
- f.map((v, H) => {
21313
+ M.map((v, H) => {
21314
21314
  if (v === null)
21315
21315
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, H);
21316
- const j = new Date(o.getFullYear(), o.getMonth(), v), V = t ? g(j, p || null) : {
21316
+ const j = new Date(o.getFullYear(), o.getMonth(), v), V = t ? w(j, p || null) : {
21317
21317
  isStart: !1,
21318
21318
  isEnd: !1,
21319
21319
  isInRange: !1,
21320
21320
  isFirstInRange: !1,
21321
21321
  isLastInRange: !1,
21322
21322
  afterSelected: !0,
21323
- isDisabled: b(j),
21323
+ isDisabled: g(j),
21324
21324
  isHovered: !1
21325
21325
  };
21326
21326
  return /* @__PURE__ */ i(
@@ -21328,7 +21328,7 @@ const X5 = (o) => {
21328
21328
  {
21329
21329
  day: v,
21330
21330
  date: j,
21331
- isSelected: h(j),
21331
+ isSelected: f(j),
21332
21332
  isInRange: V.isInRange,
21333
21333
  isStart: V.isStart,
21334
21334
  isEnd: V.isEnd,
@@ -21336,7 +21336,7 @@ const X5 = (o) => {
21336
21336
  isLastInRange: V.isLastInRange,
21337
21337
  afterSelected: V.afterSelected,
21338
21338
  isDisabled: V.isDisabled,
21339
- isToday: w(j),
21339
+ isToday: h(j),
21340
21340
  isHovered: V.isHovered,
21341
21341
  onClick: n,
21342
21342
  onMouseEnter: e,
@@ -21415,7 +21415,7 @@ const X5 = (o) => {
21415
21415
  const L = t !== void 0 ? t : e;
21416
21416
  a || s(L), n == null || n(L);
21417
21417
  }, [a, t, e, n]);
21418
- return X(() => {
21418
+ return K(() => {
21419
21419
  a && r !== void 0 && s(r);
21420
21420
  }, [a, r]), {
21421
21421
  value: C,
@@ -21579,35 +21579,35 @@ const X5 = (o) => {
21579
21579
  fullWidth: p = !1,
21580
21580
  defaultValue: d = "",
21581
21581
  disabled: L = !1,
21582
- onValueChange: w,
21583
- onChange: g,
21584
- onClickExtraSlot: h,
21585
- className: b,
21586
- style: f,
21582
+ onValueChange: h,
21583
+ onChange: w,
21584
+ onClickExtraSlot: f,
21585
+ className: g,
21586
+ style: M,
21587
21587
  name: v,
21588
21588
  autosize: H = !1,
21589
21589
  colorLeftIcon: j,
21590
21590
  infoTooltip: V = "",
21591
- ...y
21592
- }, B) => {
21591
+ ...O
21592
+ }, $) => {
21593
21593
  const {
21594
21594
  value: R,
21595
21595
  setValue: N,
21596
- isControlled: $
21596
+ isControlled: S
21597
21597
  } = r6({
21598
21598
  value: C,
21599
21599
  defaultValue: d,
21600
- onChange: w
21601
- }), x = (E) => {
21602
- const G = E.target.value;
21603
- N(G), g == null || g(E);
21600
+ onChange: h
21601
+ }), b = (z) => {
21602
+ const G = z.target.value;
21603
+ N(G), w == null || w(z);
21604
21604
  }, { paddingClasses: m, getIconPosition: I } = t6({
21605
21605
  size: n,
21606
21606
  leftSlot: a,
21607
21607
  rightSlot: c,
21608
21608
  extraSlot: l,
21609
21609
  value: C
21610
- }), { baseClasses: O, containerClasses: M, labelClasses: Z } = a6({
21610
+ }), { baseClasses: y, containerClasses: x, labelClasses: Z } = a6({
21611
21611
  size: n,
21612
21612
  error: r,
21613
21613
  disabled: L,
@@ -21617,20 +21617,20 @@ const X5 = (o) => {
21617
21617
  autosize: H
21618
21618
  });
21619
21619
  return u6({
21620
- ref: B,
21620
+ ref: $,
21621
21621
  currentValue: R,
21622
21622
  setValue: N,
21623
- isControlled: $,
21624
- inputId: y.id
21623
+ isControlled: S,
21624
+ inputId: O.id
21625
21625
  }), /* @__PURE__ */ u(
21626
21626
  "div",
21627
21627
  {
21628
21628
  className: _(
21629
21629
  "ui-relative ui-flex ui-flex-col ui-gap-1",
21630
21630
  p ? "ui-w-full" : "ui-w-fit",
21631
- b
21631
+ g
21632
21632
  ),
21633
- style: f,
21633
+ style: M,
21634
21634
  children: [
21635
21635
  (o || V) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
21636
21636
  o && /* @__PURE__ */ i("label", { className: Z, children: o }),
@@ -21648,7 +21648,7 @@ const X5 = (o) => {
21648
21648
  }
21649
21649
  )
21650
21650
  ] }),
21651
- /* @__PURE__ */ u("div", { className: M, children: [
21651
+ /* @__PURE__ */ u("div", { className: x, children: [
21652
21652
  a && C && /* @__PURE__ */ i(
21653
21653
  M1,
21654
21654
  {
@@ -21664,11 +21664,11 @@ const X5 = (o) => {
21664
21664
  placeholder: "Placeholder",
21665
21665
  disabled: L,
21666
21666
  value: R,
21667
- onChange: x,
21667
+ onChange: b,
21668
21668
  name: v,
21669
- "data-input-id": y.id || "default-input",
21670
- className: O + " ui-min-w-12",
21671
- ...y
21669
+ "data-input-id": O.id || "default-input",
21670
+ className: y + " ui-min-w-12",
21671
+ ...O
21672
21672
  }
21673
21673
  ),
21674
21674
  c && /* @__PURE__ */ i(
@@ -21687,7 +21687,7 @@ const X5 = (o) => {
21687
21687
  l && /* @__PURE__ */ i(
21688
21688
  "button",
21689
21689
  {
21690
- onClick: h,
21690
+ onClick: f,
21691
21691
  className: `ui-absolute ${I("extra")} ui-top-1/2 ui-flex ui--translate-y-1/2 ui-place-items-center`,
21692
21692
  type: "button",
21693
21693
  children: /* @__PURE__ */ i(M1, { slot: l })
@@ -21728,8 +21728,8 @@ const l6 = U1(
21728
21728
  s || n();
21729
21729
  },
21730
21730
  extraSlot: "CalendarOutlined",
21731
- onChange: (f) => {
21732
- !s && e && e(f.target.value);
21731
+ onChange: (M) => {
21732
+ !s && e && e(M.target.value);
21733
21733
  },
21734
21734
  onFocus: () => {
21735
21735
  !s && a && a();
@@ -21772,16 +21772,16 @@ const l6 = U1(
21772
21772
  ), C = (d) => {
21773
21773
  t(d);
21774
21774
  }, p = (d, L) => {
21775
- const w = a[d.getMonth()], g = d.getFullYear();
21775
+ const h = a[d.getMonth()], w = d.getFullYear();
21776
21776
  switch (L) {
21777
21777
  case "years":
21778
- const h = s(g, c), b = h[0], f = h[h.length - 1];
21779
- return `${b} - ${f}`;
21778
+ const f = s(w, c), g = f[0], M = f[f.length - 1];
21779
+ return `${g} - ${M}`;
21780
21780
  case "months":
21781
- return `${g}`;
21781
+ return `${w}`;
21782
21782
  case "days":
21783
21783
  default:
21784
- return `${w} ${g}`;
21784
+ return `${h} ${w}`;
21785
21785
  }
21786
21786
  };
21787
21787
  return l && o.length > 1 ? /* @__PURE__ */ i("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: l({
@@ -21790,7 +21790,7 @@ const l6 = U1(
21790
21790
  toggleViewMode: () => n(0),
21791
21791
  navigate: C
21792
21792
  }) }) : /* @__PURE__ */ i("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-w-full ui-items-center ui-justify-between", children: [
21793
- /* @__PURE__ */ i(z1, { direction: "prev", onClick: () => t("prev") }),
21793
+ /* @__PURE__ */ i(E1, { direction: "prev", onClick: () => t("prev") }),
21794
21794
  /* @__PURE__ */ i("div", { className: "ui-absolute ui-flex ui-w-full ui-flex-1 ui-items-center ui-justify-center ui-gap-2 ui-px-2 md:ui-px-0", children: o.map((d, L) => /* @__PURE__ */ i(
21795
21795
  "div",
21796
21796
  {
@@ -21814,7 +21814,7 @@ const l6 = U1(
21814
21814
  },
21815
21815
  L
21816
21816
  )) }),
21817
- /* @__PURE__ */ i(z1, { direction: "next", onClick: () => t("next") })
21817
+ /* @__PURE__ */ i(E1, { direction: "next", onClick: () => t("next") })
21818
21818
  ] }) });
21819
21819
  }, s6 = ({
21820
21820
  currentDate: o,
@@ -21843,15 +21843,15 @@ const l6 = U1(
21843
21843
  startOfWeek: p = 1,
21844
21844
  showWeekNumbers: d = !1,
21845
21845
  yearRange: L = 12,
21846
- hoverDate: w,
21847
- onMonthSelect: g,
21848
- onYearSelect: h,
21849
- renderDay: b
21846
+ hoverDate: h,
21847
+ onMonthSelect: w,
21848
+ onYearSelect: f,
21849
+ renderDay: g
21850
21850
  }) => {
21851
- const f = (j) => {
21852
- g == null || g(j);
21851
+ const M = (j) => {
21852
+ w == null || w(j);
21853
21853
  }, v = (j) => {
21854
- h == null || h(j);
21854
+ f == null || f(j);
21855
21855
  };
21856
21856
  return /* @__PURE__ */ i("div", { className: "ui-flex ui-h-full ui-justify-center ui-p-3", children: (() => {
21857
21857
  switch (l) {
@@ -21869,8 +21869,8 @@ const l6 = U1(
21869
21869
  weekDays: s,
21870
21870
  startOfWeek: p,
21871
21871
  showWeekNumbers: d,
21872
- hoverDate: w,
21873
- renderDay: b
21872
+ hoverDate: h,
21873
+ renderDay: g
21874
21874
  }
21875
21875
  );
21876
21876
  case "months":
@@ -21879,7 +21879,7 @@ const l6 = U1(
21879
21879
  {
21880
21880
  currentDate: o,
21881
21881
  selectedMonth: o.getMonth(),
21882
- onMonthSelect: f,
21882
+ onMonthSelect: M,
21883
21883
  monthNames: C
21884
21884
  }
21885
21885
  );
@@ -21911,9 +21911,9 @@ const l6 = U1(
21911
21911
  onMonthSelect: p,
21912
21912
  onYearSelect: d,
21913
21913
  onGoToToday: L,
21914
- locale: w = "es-ES",
21915
- weekDays: g = ["D", "L", "M", "M", "J", "V", "S"],
21916
- monthNames: h = [
21914
+ locale: h = "es-ES",
21915
+ weekDays: w = ["D", "L", "M", "M", "J", "V", "S"],
21916
+ monthNames: f = [
21917
21917
  "Enero",
21918
21918
  "Febrero",
21919
21919
  "Marzo",
@@ -21927,14 +21927,14 @@ const l6 = U1(
21927
21927
  "Noviembre",
21928
21928
  "Diciembre"
21929
21929
  ],
21930
- startOfWeek: b = 1,
21931
- showWeekNumbers: f = !1,
21930
+ startOfWeek: g = 1,
21931
+ showWeekNumbers: M = !1,
21932
21932
  yearRange: v = 12,
21933
21933
  hoverDate: H,
21934
21934
  closeOnSelect: j,
21935
21935
  autoCloseRange: V,
21936
- renderHeader: y,
21937
- renderDay: B
21936
+ renderHeader: O,
21937
+ renderDay: $
21938
21938
  }) => {
21939
21939
  const R = (I) => {
21940
21940
  C == null || C(I);
@@ -21950,9 +21950,9 @@ const l6 = U1(
21950
21950
  s("days");
21951
21951
  break;
21952
21952
  }
21953
- }, $ = (I) => {
21953
+ }, S = (I) => {
21954
21954
  p == null || p(I);
21955
- }, x = (I) => {
21955
+ }, b = (I) => {
21956
21956
  d == null || d(I);
21957
21957
  }, m = () => {
21958
21958
  switch (l) {
@@ -21967,11 +21967,11 @@ const l6 = U1(
21967
21967
  onDateHover: e,
21968
21968
  minDate: a,
21969
21969
  maxDate: c,
21970
- weekDays: g,
21971
- startOfWeek: b,
21972
- showWeekNumbers: f,
21970
+ weekDays: w,
21971
+ startOfWeek: g,
21972
+ showWeekNumbers: M,
21973
21973
  hoverDate: H,
21974
- renderDay: B
21974
+ renderDay: $
21975
21975
  }
21976
21976
  );
21977
21977
  case "months":
@@ -21980,8 +21980,8 @@ const l6 = U1(
21980
21980
  {
21981
21981
  currentDate: o,
21982
21982
  selectedMonth: o.getMonth(),
21983
- onMonthSelect: $,
21984
- monthNames: h
21983
+ onMonthSelect: S,
21984
+ monthNames: f
21985
21985
  }
21986
21986
  );
21987
21987
  case "years":
@@ -21990,7 +21990,7 @@ const l6 = U1(
21990
21990
  {
21991
21991
  currentDate: o,
21992
21992
  selectedYear: o.getFullYear(),
21993
- onYearSelect: x,
21993
+ onYearSelect: b,
21994
21994
  yearRange: v
21995
21995
  }
21996
21996
  );
@@ -22014,8 +22014,8 @@ const l6 = U1(
22014
22014
  onNavigate: R,
22015
22015
  onToggleViewMode: N,
22016
22016
  onGoToToday: L,
22017
- monthNames: h,
22018
- renderHeader: y
22017
+ monthNames: f,
22018
+ renderHeader: O
22019
22019
  }
22020
22020
  ),
22021
22021
  /* @__PURE__ */ i("div", { className: "ui-h-full ui-p-3", children: m() }),
@@ -22040,46 +22040,46 @@ const l6 = U1(
22040
22040
  onMonthSelect: p,
22041
22041
  onYearSelect: d,
22042
22042
  onGoToToday: L,
22043
- viewMode: w,
22044
- minDate: g,
22045
- maxDate: h,
22046
- locale: b,
22047
- weekDays: f,
22043
+ viewMode: h,
22044
+ minDate: w,
22045
+ maxDate: f,
22046
+ locale: g,
22047
+ weekDays: M,
22048
22048
  monthNames: v,
22049
22049
  startOfWeek: H,
22050
22050
  showWeekNumbers: j,
22051
22051
  yearRange: V,
22052
- hoverDate: y,
22053
- closeOnSelect: B,
22052
+ hoverDate: O,
22053
+ closeOnSelect: $,
22054
22054
  autoCloseRange: R,
22055
22055
  calendarsCount: N = 1,
22056
- mode: $ = "single",
22057
- onClickSelected: x = !1,
22056
+ mode: S = "single",
22057
+ onClickSelected: b = !1,
22058
22058
  renderHeader: m,
22059
22059
  renderDay: I
22060
22060
  }) => {
22061
- const [O, M] = Y(Array(N).fill(w)), [Z, E] = Y(() => {
22061
+ const [y, x] = Y(Array(N).fill(h)), [Z, z] = Y(() => {
22062
22062
  const A = [];
22063
- for (let S = 0; S < N; S++) {
22063
+ for (let B = 0; B < N; B++) {
22064
22064
  const k = new Date(n);
22065
- k.setMonth(k.getMonth() + S), A.push(k);
22065
+ k.setMonth(k.getMonth() + B), A.push(k);
22066
22066
  }
22067
22067
  return A;
22068
22068
  }), { renderPortal: G } = K5(o, r, t, 1100);
22069
- X(() => {
22070
- M(Array(N).fill(w));
22071
- }, [w, N]), X(() => {
22069
+ K(() => {
22070
+ x(Array(N).fill(h));
22071
+ }, [h, N]), K(() => {
22072
22072
  const A = [];
22073
- for (let S = 0; S < N; S++) {
22073
+ for (let B = 0; B < N; B++) {
22074
22074
  const k = new Date(n);
22075
- k.setMonth(k.getMonth() + S), A.push(k);
22075
+ k.setMonth(k.getMonth() + B), A.push(k);
22076
22076
  }
22077
- E(A);
22077
+ z(A);
22078
22078
  }, [n, N]);
22079
- const z = (A) => {
22080
- const S = O[A];
22079
+ const E = (A) => {
22080
+ const B = y[A];
22081
22081
  let k;
22082
- switch (S) {
22082
+ switch (B) {
22083
22083
  case "days":
22084
22084
  k = "months";
22085
22085
  break;
@@ -22092,27 +22092,27 @@ const l6 = U1(
22092
22092
  default:
22093
22093
  k = "days";
22094
22094
  }
22095
- const F = [...O];
22096
- F[A] = k, M(F);
22097
- }, K = (A, S) => {
22095
+ const D = [...y];
22096
+ D[A] = k, x(D);
22097
+ }, X = (A, B) => {
22098
22098
  const k = [...Z];
22099
22099
  k[A] = new Date(
22100
22100
  Z[A].getFullYear(),
22101
- S,
22101
+ B,
22102
22102
  1
22103
- ), E(k);
22104
- const F = [...O];
22105
- F[A] = "days", M(F), p == null || p(S);
22106
- }, J = (A, S) => {
22103
+ ), z(k);
22104
+ const D = [...y];
22105
+ D[A] = "days", x(D), p == null || p(B);
22106
+ }, J = (A, B) => {
22107
22107
  const k = [...Z];
22108
- k[A] = new Date(S, Z[A].getMonth(), 1), E(k);
22109
- const F = [...O];
22110
- F[A] = "months", M(F), d == null || d(S);
22108
+ k[A] = new Date(B, Z[A].getMonth(), 1), z(k);
22109
+ const D = [...y];
22110
+ D[A] = "months", x(D), d == null || d(B);
22111
22111
  }, n1 = (A) => {
22112
- const S = [...Z];
22113
- S.forEach((k, F) => {
22112
+ const B = [...Z];
22113
+ B.forEach((k, D) => {
22114
22114
  const e1 = new Date(k);
22115
- switch (O[F]) {
22115
+ switch (y[D]) {
22116
22116
  case "days":
22117
22117
  e1.setMonth(e1.getMonth() + (A === "next" ? 1 : -1));
22118
22118
  break;
@@ -22123,25 +22123,25 @@ const l6 = U1(
22123
22123
  e1.setFullYear(e1.getFullYear() + (A === "next" ? 12 : -12));
22124
22124
  break;
22125
22125
  }
22126
- S[F] = e1;
22127
- }), E(S), C(A);
22126
+ B[D] = e1;
22127
+ }), z(B), C(A);
22128
22128
  };
22129
22129
  return G(
22130
- /* @__PURE__ */ i("div", { className: "ui-relative", children: $ === "range" && N > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
22130
+ /* @__PURE__ */ i("div", { className: "ui-relative", children: S === "range" && N > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
22131
22131
  /* @__PURE__ */ i(
22132
22132
  d6,
22133
22133
  {
22134
22134
  calendarDates: Z,
22135
- viewModes: O,
22135
+ viewModes: y,
22136
22136
  onNavigate: n1,
22137
- onToggleViewMode: z,
22137
+ onToggleViewMode: E,
22138
22138
  onGoToToday: L,
22139
22139
  monthNames: v,
22140
22140
  yearRange: V,
22141
22141
  renderHeader: m
22142
22142
  }
22143
22143
  ),
22144
- /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: Z.map((A, S) => /* @__PURE__ */ i("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ i("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-white", children: /* @__PURE__ */ i(
22144
+ /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: Z.map((A, B) => /* @__PURE__ */ i("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ i("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-white", children: /* @__PURE__ */ i(
22145
22145
  s6,
22146
22146
  {
22147
22147
  currentDate: A,
@@ -22149,20 +22149,20 @@ const l6 = U1(
22149
22149
  selectedRange: a,
22150
22150
  onDateSelect: c,
22151
22151
  onDateHover: l,
22152
- minDate: g,
22153
- maxDate: h,
22154
- viewMode: O[S],
22155
- weekDays: f,
22152
+ minDate: w,
22153
+ maxDate: f,
22154
+ viewMode: y[B],
22155
+ weekDays: M,
22156
22156
  monthNames: v,
22157
22157
  startOfWeek: H,
22158
22158
  showWeekNumbers: j,
22159
22159
  yearRange: V,
22160
- hoverDate: y,
22161
- onMonthSelect: (k) => K(S, k),
22162
- onYearSelect: (k) => J(S, k),
22160
+ hoverDate: O,
22161
+ onMonthSelect: (k) => X(B, k),
22162
+ onYearSelect: (k) => J(B, k),
22163
22163
  renderDay: I
22164
22164
  }
22165
- ) }) }, S)) }),
22165
+ ) }) }, B)) }),
22166
22166
  /* @__PURE__ */ u("div", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
22167
22167
  /* @__PURE__ */ i(r1, { variant: "outlined", size: "md", color: "white", children: "Cancelar" }),
22168
22168
  /* @__PURE__ */ i(r1, { size: "md", children: "Aceptar" })
@@ -22175,22 +22175,22 @@ const l6 = U1(
22175
22175
  selectedRange: a,
22176
22176
  onDateSelect: c,
22177
22177
  onDateHover: l,
22178
- minDate: g,
22179
- maxDate: h,
22180
- viewMode: w,
22178
+ minDate: w,
22179
+ maxDate: f,
22180
+ viewMode: h,
22181
22181
  onViewModeChange: s,
22182
22182
  onNavigate: C,
22183
22183
  onMonthSelect: p,
22184
22184
  onYearSelect: d,
22185
22185
  onGoToToday: L,
22186
- locale: b,
22187
- weekDays: f,
22186
+ locale: g,
22187
+ weekDays: M,
22188
22188
  monthNames: v,
22189
22189
  startOfWeek: H,
22190
22190
  showWeekNumbers: j,
22191
22191
  yearRange: V,
22192
- hoverDate: y,
22193
- closeOnSelect: B,
22192
+ hoverDate: O,
22193
+ closeOnSelect: $,
22194
22194
  autoCloseRange: R,
22195
22195
  renderHeader: m,
22196
22196
  renderDay: I
@@ -22224,56 +22224,56 @@ const l6 = U1(
22224
22224
  ],
22225
22225
  label: d = "",
22226
22226
  startOfWeek: L = 1,
22227
- className: w = "",
22228
- inputClassName: g = "",
22229
- headerClassName: h = "",
22230
- dayClassName: b = "",
22231
- monthClassName: f = "",
22227
+ className: h = "",
22228
+ inputClassName: w = "",
22229
+ headerClassName: f = "",
22230
+ dayClassName: g = "",
22231
+ monthClassName: M = "",
22232
22232
  yearClassName: v = "",
22233
22233
  disabledDayClassName: H = "text-gray-400 cursor-not-allowed",
22234
22234
  rangeClassName: j = "bg-blue-100",
22235
22235
  rangeStartClassName: V = "bg-blue-500 text-white rounded-l-full",
22236
- rangeEndClassName: y = "bg-blue-500 text-white rounded-r-full",
22237
- todayClassName: B = "border border-blue-500",
22236
+ rangeEndClassName: O = "bg-blue-500 text-white rounded-r-full",
22237
+ todayClassName: $ = "border border-blue-500",
22238
22238
  showWeekNumbers: R = !1,
22239
22239
  yearRange: N = 12,
22240
- initialViewMode: $ = "days",
22241
- closeOnSelect: x = !1,
22240
+ initialViewMode: S = "days",
22241
+ closeOnSelect: b = !1,
22242
22242
  autoCloseRange: m = !0,
22243
22243
  placeholder: I = "Seleccionar fecha",
22244
- format: O = "dd/MM/yyyy",
22245
- calendarsCount: M = 1,
22244
+ format: y = "dd/MM/yyyy",
22245
+ calendarsCount: x = 1,
22246
22246
  renderHeader: Z,
22247
- renderDay: E
22248
- } = o, { state: G, selectedDate: z, selectedRange: K, inputRef: J, isPortalReady: n1, actions: A } = X5(o), { handleRangeSelection: S } = h9(
22249
- K,
22247
+ renderDay: z
22248
+ } = o, { state: G, selectedDate: E, selectedRange: X, inputRef: J, isPortalReady: n1, actions: A } = X5(o), { handleRangeSelection: B } = h9(
22249
+ X,
22250
22250
  A.setSelectedRange,
22251
22251
  c,
22252
22252
  l,
22253
22253
  m
22254
- ), k = (D) => {
22255
- if (!D || !(D instanceof Date) || isNaN(D.getTime()))
22254
+ ), k = (F) => {
22255
+ if (!F || !(F instanceof Date) || isNaN(F.getTime()))
22256
22256
  return "";
22257
- const T = D.getDate().toString().padStart(2, "0"), q = (D.getMonth() + 1).toString().padStart(2, "0"), i1 = D.getFullYear();
22258
- return O.replace("dd", T).replace("MM", q).replace("yyyy", i1.toString());
22259
- }, F = (D) => {
22260
- if (!D || !D.start && !D.end) return "";
22261
- const T = D.start && D.start instanceof Date && !isNaN(D.start.getTime()), q = D.end && D.end instanceof Date && !isNaN(D.end.getTime());
22262
- return T && q ? `${k(D.start)} - ${k(D.end)}` : T ? k(D.start) : q ? k(D.end) : "";
22263
- }, e1 = (D) => {
22264
- if (!D || !(D instanceof Date) || isNaN(D.getTime())) {
22265
- console.warn("DatePicker: Se recibió una fecha inválida:", D);
22257
+ const T = F.getDate().toString().padStart(2, "0"), q = (F.getMonth() + 1).toString().padStart(2, "0"), i1 = F.getFullYear();
22258
+ return y.replace("dd", T).replace("MM", q).replace("yyyy", i1.toString());
22259
+ }, D = (F) => {
22260
+ if (!F || !F.start && !F.end) return "";
22261
+ const T = F.start && F.start instanceof Date && !isNaN(F.start.getTime()), q = F.end && F.end instanceof Date && !isNaN(F.end.getTime());
22262
+ return T && q ? `${k(F.start)} - ${k(F.end)}` : T ? k(F.start) : q ? k(F.end) : "";
22263
+ }, e1 = (F) => {
22264
+ if (!F || !(F instanceof Date) || isNaN(F.getTime())) {
22265
+ console.warn("DatePicker: Se recibió una fecha inválida:", F);
22266
22266
  return;
22267
22267
  }
22268
- r === "single" ? A.setSelectedDate(D) : S(D, G.hoverDate, A.closePicker);
22269
- }, t1 = (D) => {
22270
- if (D !== null && (!(D instanceof Date) || isNaN(D.getTime()))) {
22271
- console.warn("DatePicker: Se recibió una fecha inválida en hover:", D);
22268
+ r === "single" ? A.setSelectedDate(F) : B(F, G.hoverDate, A.closePicker);
22269
+ }, t1 = (F) => {
22270
+ if (F !== null && (!(F instanceof Date) || isNaN(F.getTime()))) {
22271
+ console.warn("DatePicker: Se recibió una fecha inválida en hover:", F);
22272
22272
  return;
22273
22273
  }
22274
- A.setHoverDate(D);
22275
- }, l1 = () => r === "single" ? k(z) : F(K);
22276
- return /* @__PURE__ */ u("div", { className: `relative ${w}`, children: [
22274
+ A.setHoverDate(F);
22275
+ }, l1 = () => r === "single" ? k(E) : D(X);
22276
+ return /* @__PURE__ */ u("div", { className: `relative ${h}`, children: [
22277
22277
  /* @__PURE__ */ i(
22278
22278
  l6,
22279
22279
  {
@@ -22283,8 +22283,8 @@ const l6 = U1(
22283
22283
  label: d,
22284
22284
  isOpen: G.isOpen,
22285
22285
  onInputClick: A.openPicker,
22286
- className: g,
22287
- format: O
22286
+ className: w,
22287
+ format: y
22288
22288
  }
22289
22289
  ),
22290
22290
  /* @__PURE__ */ i(
@@ -22294,8 +22294,8 @@ const l6 = U1(
22294
22294
  onClose: A.closePicker,
22295
22295
  portalPosition: G.portalPosition,
22296
22296
  currentDate: G.currentDate,
22297
- selectedDate: z,
22298
- selectedRange: K,
22297
+ selectedDate: E,
22298
+ selectedRange: X,
22299
22299
  onDateSelect: e1,
22300
22300
  onDateHover: t1,
22301
22301
  onViewModeChange: A.setViewMode,
@@ -22313,12 +22313,12 @@ const l6 = U1(
22313
22313
  showWeekNumbers: R,
22314
22314
  yearRange: N,
22315
22315
  hoverDate: G.hoverDate,
22316
- closeOnSelect: x,
22316
+ closeOnSelect: b,
22317
22317
  autoCloseRange: m,
22318
- calendarsCount: M,
22318
+ calendarsCount: x,
22319
22319
  mode: r,
22320
22320
  renderHeader: Z,
22321
- renderDay: E
22321
+ renderDay: z
22322
22322
  }
22323
22323
  )
22324
22324
  ] });
@@ -22327,7 +22327,7 @@ const l6 = U1(
22327
22327
  /* @__PURE__ */ i("h2", { className: _("ui-text-2xl ui-font-bold", r), children: o })
22328
22328
  ] }), M9 = (o, r = {}) => {
22329
22329
  const { enterDelay: t = 10, exitDelay: n = 300 } = r, [e, a] = Y(!1), [c, l] = Y(!1);
22330
- return X(() => {
22330
+ return K(() => {
22331
22331
  if (o) {
22332
22332
  a(!0);
22333
22333
  const s = setTimeout(() => {
@@ -22342,14 +22342,14 @@ const l6 = U1(
22342
22342
  }, [o, t, n]), { isVisible: e, isAnimating: c };
22343
22343
  }, x9 = (o) => {
22344
22344
  const r = typeof window < "u";
22345
- X(() => {
22345
+ K(() => {
22346
22346
  if (r)
22347
22347
  return o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
22348
22348
  document.body.style.overflow = "";
22349
22349
  };
22350
22350
  }, [o, r]);
22351
22351
  }, q0 = (o, r, t = !1) => {
22352
- X(() => {
22352
+ K(() => {
22353
22353
  if (!o || t) return;
22354
22354
  const n = (e) => {
22355
22355
  e.key === "Escape" && r();
@@ -22357,7 +22357,7 @@ const l6 = U1(
22357
22357
  return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
22358
22358
  }, [o, r, t]);
22359
22359
  }, b9 = (o, r, t = !1) => {
22360
- X(() => {
22360
+ K(() => {
22361
22361
  if (!o || t || !r.current) return;
22362
22362
  const n = [
22363
22363
  "button",
@@ -22374,7 +22374,7 @@ const l6 = U1(
22374
22374
  return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
22375
22375
  }, [o, t, r]);
22376
22376
  }, C6 = (o, r) => {
22377
- X(() => {
22377
+ K(() => {
22378
22378
  o && r.current && requestAnimationFrame(() => {
22379
22379
  var t;
22380
22380
  (t = r.current) == null || t.focus();
@@ -22382,14 +22382,14 @@ const l6 = U1(
22382
22382
  }, [o, r]);
22383
22383
  }, v9 = () => {
22384
22384
  const o = typeof window < "u", [r] = Y(() => o ? document.createElement("div") : null);
22385
- return X(() => {
22385
+ return K(() => {
22386
22386
  if (!(!r || !o))
22387
22387
  return document.body.appendChild(r), () => {
22388
22388
  document.body.contains(r) && document.body.removeChild(r);
22389
22389
  };
22390
22390
  }, [r, o]), r;
22391
22391
  }, L6 = (o, r, t, n = !1) => {
22392
- X(() => {
22392
+ K(() => {
22393
22393
  if (!o || n) return;
22394
22394
  const e = (a) => {
22395
22395
  var s;
@@ -22412,25 +22412,25 @@ const l6 = U1(
22412
22412
  onOutsideClick: s,
22413
22413
  disableSameTypeCheck: C = !1
22414
22414
  }) => {
22415
- X(() => {
22415
+ K(() => {
22416
22416
  if (!o || r || !c) return;
22417
22417
  const p = (L) => {
22418
- var V, y;
22419
- const w = L.target, g = (V = t.current) == null ? void 0 : V.contains(w), h = (y = n == null ? void 0 : n.current) == null ? void 0 : y.contains(w), b = e ? w.closest(`[data-${a}-id="${e}"]`) : !1, f = a && !C ? w.closest(`[data-${a}-container-id="${e}"]`) : !1, v = l.some((B) => w.closest(B)), j = (() => {
22420
- let B = w;
22421
- for (; B && B !== document.body; ) {
22422
- const R = B.attributes;
22423
- for (let $ = 0; $ < R.length; $++) {
22424
- const x = R[$];
22425
- if (x.name.startsWith("data-") && x.name.endsWith("-id")) {
22426
- if (a === "dropdown" && (x.name.includes("popup") || x.name.includes("dropdown")))
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, M = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, v = l.some(($) => h.closest($)), j = (() => {
22420
+ let $ = h;
22421
+ for (; $ && $ !== document.body; ) {
22422
+ const R = $.attributes;
22423
+ for (let S = 0; S < R.length; S++) {
22424
+ const b = R[S];
22425
+ if (b.name.startsWith("data-") && b.name.endsWith("-id")) {
22426
+ if (a === "dropdown" && (b.name.includes("popup") || b.name.includes("dropdown")))
22427
22427
  continue;
22428
22428
  return !0;
22429
22429
  }
22430
22430
  }
22431
- const N = B.className;
22431
+ const N = $.className;
22432
22432
  if (typeof N == "string") {
22433
- const $ = N.split(" ");
22433
+ const S = N.split(" ");
22434
22434
  if ([
22435
22435
  "date-picker-portal",
22436
22436
  "dropdown-portal",
@@ -22439,14 +22439,14 @@ const l6 = U1(
22439
22439
  "popover-portal",
22440
22440
  "react-datepicker",
22441
22441
  "react-datepicker-popper"
22442
- ].some((m) => $.includes(m)) || $.some((m) => m.endsWith("-portal")))
22442
+ ].some((m) => S.includes(m)) || S.some((m) => m.endsWith("-portal")))
22443
22443
  return !0;
22444
22444
  }
22445
- B = B.parentElement;
22445
+ $ = $.parentElement;
22446
22446
  }
22447
22447
  return !1;
22448
22448
  })();
22449
- g || h || b || f || v || j || s();
22449
+ w || f || g || M || v || j || s();
22450
22450
  }, d = (L) => {
22451
22451
  L.detail.id === e && s();
22452
22452
  };
@@ -22483,26 +22483,26 @@ const l6 = U1(
22483
22483
  className: p,
22484
22484
  scrollable: d = !0,
22485
22485
  cancelButtonText: L = "Cancelar",
22486
- successButtonText: w = "Guardar",
22487
- onCancel: g = () => {
22486
+ successButtonText: h = "Guardar",
22487
+ onCancel: w = () => {
22488
22488
  },
22489
- onSuccess: h = () => {
22489
+ onSuccess: f = () => {
22490
22490
  },
22491
- showCancelButton: b = !0,
22492
- showSuccessButton: f = !0,
22491
+ showCancelButton: g = !0,
22492
+ showSuccessButton: M = !0,
22493
22493
  closeAtSuccess: v = !1,
22494
22494
  closeAtCancel: H = !0,
22495
22495
  disabledSuccessButton: j = !1,
22496
22496
  disabledCancelButton: V = !1
22497
22497
  }) => {
22498
- const y = v9(), { isVisible: B, isAnimating: R } = M9(o), N = o1(null);
22498
+ const O = v9(), { isVisible: $, isAnimating: R } = M9(o), N = o1(null);
22499
22499
  x9(o), q0(o, r, l), b9(o, N, !s);
22500
- const $ = () => {
22501
- g && g(), H && r();
22502
- }, x = () => {
22503
- h && h(), v && r();
22500
+ const S = () => {
22501
+ w && w(), H && r();
22502
+ }, b = () => {
22503
+ f && f(), v && r();
22504
22504
  };
22505
- if (!y || !B) return null;
22505
+ if (!O || !$) return null;
22506
22506
  const m = /* @__PURE__ */ u(
22507
22507
  "div",
22508
22508
  {
@@ -22546,11 +22546,11 @@ const l6 = U1(
22546
22546
  children: e
22547
22547
  }
22548
22548
  ),
22549
- (b || f) && /* @__PURE__ */ u(Z1, { children: [
22549
+ (g || M) && /* @__PURE__ */ u(Z1, { children: [
22550
22550
  /* @__PURE__ */ i(g1.Separator, { padding: !1 }),
22551
22551
  /* @__PURE__ */ u(g1.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-4 ui-p-4", children: [
22552
- b && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "outlined", color: "white", onClick: $, disabled: V, children: L }),
22553
- f && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "button", onClick: x, disabled: j, children: w })
22552
+ g && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "outlined", color: "white", onClick: S, disabled: V, children: L }),
22553
+ M && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "button", onClick: b, disabled: j, children: h })
22554
22554
  ] })
22555
22555
  ] })
22556
22556
  ] })
@@ -22559,7 +22559,7 @@ const l6 = U1(
22559
22559
  ]
22560
22560
  }
22561
22561
  );
22562
- return p9.createPortal(m, y);
22562
+ return p9.createPortal(m, O);
22563
22563
  }, Pi = ({ className: o }) => /* @__PURE__ */ i("div", { className: _("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", o) }), V9 = ({
22564
22564
  children: o,
22565
22565
  icon: r,
@@ -22571,8 +22571,8 @@ const l6 = U1(
22571
22571
  "data-option-value": l,
22572
22572
  iconColor: s
22573
22573
  }) => {
22574
- const C = (g) => {
22575
- n || t == null || t(g);
22574
+ const C = (w) => {
22575
+ n || t == null || t(w);
22576
22576
  }, [p, d] = Y(!1), L = c1(
22577
22577
  "ui-flex ui-items-center ui-gap-x-4 ui-text-sm ui-transition-all duration-300 ui-font-semibold ui-px-4 ui-h-8 ui-py-1",
22578
22578
  {
@@ -22599,7 +22599,7 @@ const l6 = U1(
22599
22599
  { current: "red", disabled: !1, className: "hover:ui-bg-red-100 hover:ui-text-red-600" }
22600
22600
  ]
22601
22601
  }
22602
- ), w = p && !n ? "white" : s || (c === "blue" ? "neutral_soft" : c === "red" ? "current" : "neutral");
22602
+ ), h = p && !n ? "white" : s || (c === "blue" ? "neutral_soft" : c === "red" ? "current" : "neutral");
22603
22603
  return /* @__PURE__ */ u(
22604
22604
  "li",
22605
22605
  {
@@ -22617,7 +22617,7 @@ const l6 = U1(
22617
22617
  d(!1);
22618
22618
  },
22619
22619
  children: [
22620
- /* @__PURE__ */ i(M1, { slot: r, colorIcon: w, size: "2xl", defaultSizeIcon: !1, fallback: o == null ? void 0 : o.toString().substring(0, 1) }),
22620
+ /* @__PURE__ */ i(M1, { slot: r, colorIcon: h, size: "2xl", defaultSizeIcon: !1, fallback: o == null ? void 0 : o.toString().substring(0, 1) }),
22621
22621
  o
22622
22622
  ]
22623
22623
  }
@@ -22656,8 +22656,8 @@ const l6 = U1(
22656
22656
  { current: "red", disabled: !1, className: "ui-bg-red-50 ui-text-red-500" }
22657
22657
  ]
22658
22658
  }
22659
- ), L = C && !t ? "white" : l || (a === "blue" ? "neutral_soft" : a === "red" ? "current" : "neutral"), w = (g) => {
22660
- g.stopPropagation();
22659
+ ), L = C && !t ? "white" : l || (a === "blue" ? "neutral_soft" : a === "red" ? "current" : "neutral"), h = (w) => {
22660
+ w.stopPropagation();
22661
22661
  };
22662
22662
  return /* @__PURE__ */ u(
22663
22663
  "li",
@@ -22675,12 +22675,12 @@ const l6 = U1(
22675
22675
  p(!1);
22676
22676
  },
22677
22677
  children: [
22678
- /* @__PURE__ */ i("div", { onClick: w, className: "ui-cursor-pointer", children: /* @__PURE__ */ i(
22678
+ /* @__PURE__ */ i("div", { onClick: h, className: "ui-cursor-pointer", children: /* @__PURE__ */ i(
22679
22679
  "input",
22680
22680
  {
22681
22681
  type: "checkbox",
22682
22682
  checked: s.checked,
22683
- onChange: (g) => s.onChange(g.target.checked),
22683
+ onChange: (w) => s.onChange(w.target.checked),
22684
22684
  disabled: s.disabled || t,
22685
22685
  className: "ui-focus:ring-blue-500 ui-focus:ring-2 ui-h-4 ui-w-4 ui-rounded ui-border-gray-300 ui-bg-gray-100 ui-text-blue-600"
22686
22686
  }
@@ -22755,47 +22755,47 @@ const l6 = U1(
22755
22755
  disabled: p = !1,
22756
22756
  multiple: d = !1,
22757
22757
  maxSelectedItems: L,
22758
- absolute: w = !1,
22759
- onOpenChange: g
22758
+ absolute: h = !1,
22759
+ onOpenChange: w
22760
22760
  }) => {
22761
- const h = i9(), b = C || `dropdown-${h}`, [f, v] = Y(!1), [H, j] = Y(!1), [V, y] = Y(""), [B, R] = Y("bottom"), [N, $] = Y({}), x = o1(null), m = o1(null), I = o1(null), O = P(
22761
+ const f = i9(), g = C || `dropdown-${f}`, [M, v] = Y(!1), [H, j] = Y(!1), [V, O] = Y(""), [$, R] = Y("bottom"), [N, S] = Y({}), b = o1(null), m = o1(null), I = o1(null), y = P(
22762
22762
  (T) => T == null ? [] : Array.isArray(T) ? T : [T],
22763
22763
  []
22764
- ), M = P(
22764
+ ), x = P(
22765
22765
  (T) => T == null || T === "" ? "" : Array.isArray(T) ? T[0] || "" : T,
22766
22766
  []
22767
- ), [Z, E] = Y(() => d ? O(r) : M(r)), G = o !== void 0, z = G ? o : Z, K = P(
22767
+ ), [Z, z] = Y(() => d ? y(r) : x(r)), G = o !== void 0, E = G ? o : Z, X = P(
22768
22768
  (T) => {
22769
- G || E(T), a == null || a(T);
22769
+ G || z(T), a == null || a(T);
22770
22770
  },
22771
22771
  [G, a]
22772
22772
  );
22773
- X(() => {
22773
+ K(() => {
22774
22774
  if (G && o !== void 0)
22775
22775
  if (d) {
22776
- const T = O(o);
22777
- E((q) => JSON.stringify(q) !== JSON.stringify(T) ? T : q);
22776
+ const T = y(o);
22777
+ z((q) => JSON.stringify(q) !== JSON.stringify(T) ? T : q);
22778
22778
  } else {
22779
- const T = M(o);
22780
- E((q) => q !== T ? T : q);
22779
+ const T = x(o);
22780
+ z((q) => q !== T ? T : q);
22781
22781
  }
22782
- }, [o, G, d, O, M]);
22783
- const J = d ? t.filter((T) => O(z).includes(T[e])) : [
22784
- t.find((T) => z === "" || z === null || z === void 0 ? !1 : T[e] === -1 ? z === -1 || z === "-1" : T[e] === z)
22782
+ }, [o, G, d, y, x]);
22783
+ const J = d ? t.filter((T) => y(E).includes(T[e])) : [
22784
+ t.find((T) => E === "" || E === null || E === void 0 ? !1 : T[e] === -1 ? E === -1 || E === "-1" : T[e] === E)
22785
22785
  ].filter(Boolean), n1 = t.filter((T) => {
22786
22786
  const q = l ? T[n].toLowerCase().includes(V.toLowerCase()) : !0;
22787
22787
  if (d) {
22788
- const i1 = O(z).includes(T[e]);
22788
+ const i1 = y(E).includes(T[e]);
22789
22789
  return q && !i1;
22790
22790
  }
22791
- return T[e] === -1 && (z === -1 || z === "-1") ? !1 : q;
22791
+ return T[e] === -1 && (E === -1 || E === "-1") ? !1 : q;
22792
22792
  }), A = P(() => {
22793
22793
  var i1, W;
22794
22794
  const T = (i1 = I.current) == null ? void 0 : i1.querySelector("input");
22795
22795
  return T || ((W = I.current) == null ? void 0 : W.querySelector(
22796
22796
  '[data-dropdown-input="true"]'
22797
22797
  ));
22798
- }, []), S = P(() => {
22798
+ }, []), B = P(() => {
22799
22799
  const T = A();
22800
22800
  T && requestAnimationFrame(() => {
22801
22801
  var N1;
@@ -22805,7 +22805,7 @@ const l6 = U1(
22805
22805
  const p1 = i1 - q.bottom, s1 = q.top, d1 = p1 < W && s1 > p1 ? "top" : "bottom";
22806
22806
  R(d1);
22807
22807
  let u1 = 0, j1 = 0, T1 = q.width;
22808
- if (!w)
22808
+ if (!h)
22809
22809
  d1 === "bottom" ? u1 = q.bottom + 4 : u1 = q.top - W - 4, j1 = q.left;
22810
22810
  else {
22811
22811
  const h1 = (N1 = I.current) == null ? void 0 : N1.getBoundingClientRect();
@@ -22813,16 +22813,16 @@ const l6 = U1(
22813
22813
  const S1 = q.top - h1.top, y1 = q.left - h1.left;
22814
22814
  d1 === "bottom" ? u1 = S1 + q.height + 4 : u1 = S1 - W - 4, j1 = y1;
22815
22815
  }
22816
- const x1 = 1100, L1 = parseInt(b.replace(/\D/g, "")) || 0, B1 = x1 + L1 % 100, Y1 = {
22817
- position: w ? "absolute" : "fixed",
22816
+ const x1 = 1100, L1 = parseInt(g.replace(/\D/g, "")) || 0, B1 = x1 + L1 % 100, Y1 = {
22817
+ position: h ? "absolute" : "fixed",
22818
22818
  top: `${u1}px`,
22819
22819
  left: `${j1}px`,
22820
22820
  width: `${T1}px`,
22821
22821
  zIndex: B1
22822
22822
  };
22823
- $(Y1);
22823
+ S(Y1);
22824
22824
  });
22825
- }, [A, n1.length, b, w]), k = P(() => {
22825
+ }, [A, n1.length, g, h]), k = P(() => {
22826
22826
  if (!m.current || !J.length)
22827
22827
  return;
22828
22828
  const q = m.current.querySelector(".ui-overflow-y-auto");
@@ -22840,101 +22840,101 @@ const l6 = U1(
22840
22840
  top: Math.max(0, u1),
22841
22841
  behavior: "smooth"
22842
22842
  });
22843
- }, [J, n]), F = (T) => {
22844
- T && T.stopPropagation(), !p && (f ? e1() : (w6(b), y(""), j(!1), S(), setTimeout(() => {
22845
- v(!0), Q1.add(b), setTimeout(() => {
22846
- S(), setTimeout(() => {
22843
+ }, [J, n]), D = (T) => {
22844
+ T && T.stopPropagation(), !p && (M ? e1() : (w6(g), O(""), j(!1), B(), setTimeout(() => {
22845
+ v(!0), Q1.add(g), setTimeout(() => {
22846
+ B(), setTimeout(() => {
22847
22847
  k();
22848
22848
  }, 50);
22849
22849
  }, 50);
22850
22850
  }, 50)));
22851
22851
  }, e1 = () => {
22852
22852
  j(!0), setTimeout(() => {
22853
- v(!1), j(!1), Q1.delete(b);
22853
+ v(!1), j(!1), Q1.delete(g);
22854
22854
  }, 150);
22855
22855
  }, t1 = (T, q) => {
22856
22856
  if (q.stopPropagation(), !T.disabled) {
22857
22857
  if (d) {
22858
- const i1 = O(z), W = T[e];
22858
+ const i1 = y(E), W = T[e];
22859
22859
  if (L && i1.length >= L && !i1.includes(W))
22860
22860
  return;
22861
22861
  const p1 = i1.includes(W) ? i1.filter((s1) => s1 !== W) : [...i1, W];
22862
- K(p1);
22862
+ X(p1);
22863
22863
  } else {
22864
22864
  const i1 = T[e] === -1 ? -1 : T[e];
22865
- K(i1), y(""), e1();
22865
+ X(i1), O(""), e1();
22866
22866
  }
22867
22867
  c == null || c(T);
22868
22868
  }
22869
22869
  }, l1 = (T) => {
22870
- y(T.target.value);
22871
- }, D = (T) => {
22872
- T.stopPropagation(), K(d ? [] : ""), y("");
22870
+ O(T.target.value);
22871
+ }, F = (T) => {
22872
+ T.stopPropagation(), X(d ? [] : ""), O("");
22873
22873
  };
22874
- return X(() => {
22875
- g == null || g(f);
22876
- }, [f, g]), j9({
22877
- isActive: f,
22874
+ return K(() => {
22875
+ w == null || w(M);
22876
+ }, [M, w]), j9({
22877
+ isActive: M,
22878
22878
  // Simplificar condición para mejorar detección
22879
22879
  disabled: p,
22880
22880
  elementRef: m,
22881
- containerRef: w ? void 0 : I,
22881
+ containerRef: h ? void 0 : I,
22882
22882
  // No usar containerRef cuando absolute=true
22883
- elementId: b,
22883
+ elementId: g,
22884
22884
  elementType: "dropdown",
22885
22885
  closeOnClickOutside: s,
22886
- disableSameTypeCheck: w,
22886
+ disableSameTypeCheck: h,
22887
22887
  // Deshabilitar isInsideSameType cuando absolute=true
22888
22888
  onOutsideClick: () => {
22889
22889
  setTimeout(() => {
22890
22890
  e1();
22891
22891
  }, 0);
22892
22892
  }
22893
- }), X(() => {
22893
+ }), K(() => {
22894
22894
  const T = () => {
22895
- f && e1();
22895
+ M && e1();
22896
22896
  };
22897
22897
  return document.addEventListener("close-all-dropdowns", T), () => {
22898
22898
  document.removeEventListener("close-all-dropdowns", T);
22899
22899
  };
22900
- }, [f, e1]), X(() => {
22901
- if (f) {
22900
+ }, [M, e1]), K(() => {
22901
+ if (M) {
22902
22902
  const T = () => {
22903
- S();
22903
+ B();
22904
22904
  }, q = () => {
22905
- f && !H && S();
22905
+ M && !H && B();
22906
22906
  };
22907
22907
  return window.addEventListener("resize", T), window.addEventListener("scroll", q, !1), document.addEventListener("scroll", q, !1), () => {
22908
22908
  window.removeEventListener("resize", T), window.removeEventListener("scroll", q, !1), document.removeEventListener("scroll", q, !1);
22909
22909
  };
22910
22910
  }
22911
- }, [f, S, H]), {
22911
+ }, [M, B, H]), {
22912
22912
  // Estado
22913
- isOpen: f,
22913
+ isOpen: M,
22914
22914
  isClosing: H,
22915
22915
  searchValue: V,
22916
- selectedValue: z,
22916
+ selectedValue: E,
22917
22917
  selectedOptions: J,
22918
22918
  filteredOptions: n1,
22919
- position: B,
22919
+ position: $,
22920
22920
  dropdownStyle: N,
22921
22921
  isControlled: G,
22922
22922
  multiple: d,
22923
22923
  // Referencias
22924
- inputRef: x,
22924
+ inputRef: b,
22925
22925
  dropdownRef: m,
22926
22926
  containerRef: I,
22927
- dropdownUniqueId: b,
22927
+ dropdownUniqueId: g,
22928
22928
  // Funciones
22929
- toggleDropdown: F,
22929
+ toggleDropdown: D,
22930
22930
  closeDropdown: e1,
22931
22931
  handleOptionSelect: t1,
22932
22932
  handleSearchChange: l1,
22933
- handleClear: D,
22934
- calculatePosition: S,
22935
- setValue: K,
22933
+ handleClear: F,
22934
+ calculatePosition: B,
22935
+ setValue: X,
22936
22936
  scrollToSelectedOption: k,
22937
- normalizeToArray: O
22937
+ normalizeToArray: y
22938
22938
  };
22939
22939
  }, y9 = ({
22940
22940
  onClick: o,
@@ -22979,29 +22979,29 @@ const l6 = U1(
22979
22979
  error: p,
22980
22980
  helperText: d,
22981
22981
  rightSlot: L,
22982
- valueName: w,
22983
- idName: g
22982
+ valueName: h,
22983
+ idName: w
22984
22984
  }) => {
22985
- const [h, b] = Y(!1), [f, v] = Y(null), H = o1(null);
22986
- return X(() => {
22985
+ const [f, g] = Y(!1), [M, v] = Y(null), H = o1(null);
22986
+ return K(() => {
22987
22987
  if (!H.current || t.length === 0) {
22988
- b(!1), v(null);
22988
+ g(!1), v(null);
22989
22989
  return;
22990
22990
  }
22991
22991
  const V = setTimeout(() => {
22992
- const y = H.current;
22993
- if (y) {
22994
- const B = y.scrollHeight, R = y.clientHeight;
22995
- if (f === null) {
22992
+ const O = H.current;
22993
+ if (O) {
22994
+ const $ = O.scrollHeight, R = O.clientHeight;
22995
+ if (M === null) {
22996
22996
  v(R);
22997
22997
  return;
22998
22998
  }
22999
- const N = B > f;
23000
- b(N);
22999
+ const N = $ > M;
23000
+ g(N);
23001
23001
  }
23002
23002
  }, 100);
23003
23003
  return () => clearTimeout(V);
23004
- }, [t.length, f]), // Input personalizado con tags para modo tags
23004
+ }, [t.length, M]), // Input personalizado con tags para modo tags
23005
23005
  /* @__PURE__ */ u("div", { className: "ui-w-full", children: [
23006
23006
  o && /* @__PURE__ */ i("label", { className: "ui-mb-1 ui-block ui-text-sm ui-font-bold ui-text-gray-700", children: o }),
23007
23007
  /* @__PURE__ */ u(
@@ -23009,7 +23009,7 @@ const l6 = U1(
23009
23009
  {
23010
23010
  ref: s,
23011
23011
  "data-dropdown-input": "true",
23012
- className: `ui-flex ui-min-h-[32px] ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-md ui-border ui-border-gray-300 ui-bg-white ui-px-2 ${h ? "ui-py-2" : "ui-py-0.5"} ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-blue-500 focus-within:ui-ring-2 focus-within:ui-ring-blue-200 hover:ui-border-gray-400`,
23012
+ className: `ui-flex ui-min-h-[32px] ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-md ui-border ui-border-gray-300 ui-bg-white ui-px-2 ${f ? "ui-py-2" : "ui-py-0.5"} ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-blue-500 focus-within:ui-ring-2 focus-within:ui-ring-blue-200 hover:ui-border-gray-400`,
23013
23013
  onClick: (j) => {
23014
23014
  c || e(j);
23015
23015
  },
@@ -23022,19 +23022,19 @@ const l6 = U1(
23022
23022
  "div",
23023
23023
  {
23024
23024
  ref: H,
23025
- className: `ui-flex ui-flex-wrap ui-gap-1 ${h ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
23025
+ className: `ui-flex ui-flex-wrap ui-gap-1 ${f ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
23026
23026
  children: t.map((j) => j ? /* @__PURE__ */ i(
23027
23027
  y9,
23028
23028
  {
23029
23029
  className: "ui-z-[1010]",
23030
- label: j[w],
23030
+ label: j[h],
23031
23031
  color: "blue",
23032
23032
  size: "xs",
23033
23033
  onClick: (V) => {
23034
- V.stopPropagation(), n(j[g]);
23034
+ V.stopPropagation(), n(j[w]);
23035
23035
  }
23036
23036
  },
23037
- j[w]
23037
+ j[h]
23038
23038
  ) : null)
23039
23039
  }
23040
23040
  ) : /* @__PURE__ */ i("span", { className: "ui-text-sm ui-text-neutral-500", children: r }),
@@ -23072,43 +23072,43 @@ const l6 = U1(
23072
23072
  noResultsDescription: p = "Puede probar a utilizar otras palabras clave o ajustar los filtros.",
23073
23073
  caret: d = !0,
23074
23074
  value: L,
23075
- defaultValue: w = "",
23076
- disabled: g = !1,
23077
- placeholder: h = "",
23078
- options: b = [],
23079
- valueName: f = "label",
23075
+ defaultValue: h = "",
23076
+ disabled: w = !1,
23077
+ placeholder: f = "",
23078
+ options: g = [],
23079
+ valueName: M = "label",
23080
23080
  idName: v = "value",
23081
23081
  onValueChange: H,
23082
23082
  onOptionSelect: j,
23083
23083
  onCheckboxChange: V,
23084
- searchable: y = !1,
23085
- maxHeight: B = "200px",
23084
+ searchable: O = !1,
23085
+ maxHeight: $ = "200px",
23086
23086
  closeOnClickOutside: R = !0,
23087
23087
  dropdownId: N,
23088
- multiple: $ = !1,
23089
- maxSelectedItems: x,
23088
+ multiple: S = !1,
23089
+ maxSelectedItems: b,
23090
23090
  selectedItemsDisplay: m = "tags",
23091
23091
  absolute: I = !1,
23092
- footer: O = !1,
23093
- defaultOptionSelected: M = !1,
23092
+ footer: y = !1,
23093
+ defaultOptionSelected: x = !1,
23094
23094
  withCheckbox: Z = !1,
23095
- ...E
23095
+ ...z
23096
23096
  }, G) => {
23097
- const z = o1(null), [K, J] = Y(c), [n1, A] = Y(null), [S, k] = Y(!1), t1 = $ ? b : !$ && M ? [
23097
+ const E = o1(null), [X, J] = Y(c), [n1, A] = Y(null), [B, k] = Y(!1), t1 = S ? g : !S && x ? [
23098
23098
  {
23099
23099
  ...{
23100
- label: h || "Selecciona una opción",
23100
+ label: f || "Selecciona una opción",
23101
23101
  value: -1,
23102
23102
  disabled: !1
23103
23103
  },
23104
23104
  [v]: -1,
23105
23105
  value: -1,
23106
- label: h || "Selecciona una opción"
23106
+ label: f || "Selecciona una opción"
23107
23107
  },
23108
- ...b.filter((U) => U[v] !== -1)
23109
- ] : b, l1 = L !== void 0 ? L : M && !$ ? -1 : w, {
23108
+ ...g.filter((U) => U[v] !== -1)
23109
+ ] : g, l1 = L !== void 0 ? L : x && !S ? -1 : h, {
23110
23110
  // Estado
23111
- isOpen: D,
23111
+ isOpen: F,
23112
23112
  isClosing: T,
23113
23113
  searchValue: q,
23114
23114
  selectedValue: i1,
@@ -23135,16 +23135,16 @@ const l6 = U1(
23135
23135
  value: L,
23136
23136
  defaultValue: l1,
23137
23137
  options: t1,
23138
- valueName: f,
23138
+ valueName: M,
23139
23139
  idName: v,
23140
23140
  onValueChange: H,
23141
23141
  onOptionSelect: j,
23142
- searchable: y,
23142
+ searchable: O,
23143
23143
  closeOnClickOutside: R,
23144
23144
  dropdownId: N,
23145
- disabled: g,
23146
- multiple: $,
23147
- maxSelectedItems: x,
23145
+ disabled: w,
23146
+ multiple: S,
23147
+ maxSelectedItems: b,
23148
23148
  absolute: I,
23149
23149
  onOpenChange: (U) => {
23150
23150
  U && setTimeout(() => {
@@ -23152,20 +23152,20 @@ const l6 = U1(
23152
23152
  }, 200);
23153
23153
  }
23154
23154
  });
23155
- X(() => {
23155
+ K(() => {
23156
23156
  if (d1 && L !== void 0)
23157
23157
  if (L === "" || L === -1 || L === "-1")
23158
23158
  J((U) => U !== c ? c : U), A((U) => U !== null ? null : U);
23159
23159
  else {
23160
23160
  const U = t1.find(
23161
- (a1) => a1[f] === L || a1[v] === L
23161
+ (a1) => a1[M] === L || a1[v] === L
23162
23162
  );
23163
23163
  if (U) {
23164
23164
  const a1 = U.icon || c, H1 = U.iconColor || null;
23165
23165
  J((Q) => Q !== a1 ? a1 : Q), A((Q) => Q !== H1 ? H1 : Q);
23166
23166
  }
23167
23167
  }
23168
- }, [L, d1, t1, f, v, c]), e0(
23168
+ }, [L, d1, t1, M, v, c]), e0(
23169
23169
  G,
23170
23170
  () => ({
23171
23171
  getValue: () => i1,
@@ -23174,17 +23174,17 @@ const l6 = U1(
23174
23174
  },
23175
23175
  focus: () => {
23176
23176
  var U, a1;
23177
- $ && m === "tags" ? (U = z.current) == null || U.focus() : (a1 = u1.current) == null || a1.focus();
23177
+ S && m === "tags" ? (U = E.current) == null || U.focus() : (a1 = u1.current) == null || a1.focus();
23178
23178
  },
23179
23179
  blur: () => {
23180
23180
  var U, a1;
23181
- $ && m === "tags" ? (U = z.current) == null || U.blur() : (a1 = u1.current) == null || a1.blur();
23181
+ S && m === "tags" ? (U = E.current) == null || U.blur() : (a1 = u1.current) == null || a1.blur();
23182
23182
  },
23183
23183
  clear: () => {
23184
- d1 || y1($ ? [] : ""), H == null || H($ ? [] : "");
23184
+ d1 || y1(S ? [] : ""), H == null || H(S ? [] : "");
23185
23185
  },
23186
23186
  open: () => {
23187
- g || (h1(), setTimeout(() => {
23187
+ w || (h1(), setTimeout(() => {
23188
23188
  L1();
23189
23189
  }, 50));
23190
23190
  },
@@ -23195,25 +23195,25 @@ const l6 = U1(
23195
23195
  [
23196
23196
  i1,
23197
23197
  d1,
23198
- g,
23198
+ w,
23199
23199
  h1,
23200
23200
  H,
23201
23201
  B1,
23202
- $,
23202
+ S,
23203
23203
  y1,
23204
23204
  L1,
23205
23205
  m
23206
23206
  ]
23207
- ), X(() => {
23208
- if (D && W.length > 0) {
23207
+ ), K(() => {
23208
+ if (F && W.length > 0) {
23209
23209
  const U = setTimeout(() => {
23210
23210
  S1();
23211
23211
  }, 150);
23212
23212
  return () => clearTimeout(U);
23213
23213
  }
23214
- }, [D, W, S1]), X(() => {
23215
- if (D && $ && m === "tags") {
23216
- const U = z.current;
23214
+ }, [F, W, S1]), K(() => {
23215
+ if (F && S && m === "tags") {
23216
+ const U = E.current;
23217
23217
  if (!U) return;
23218
23218
  const a1 = new ResizeObserver(() => {
23219
23219
  setTimeout(() => {
@@ -23224,37 +23224,37 @@ const l6 = U1(
23224
23224
  a1.disconnect();
23225
23225
  };
23226
23226
  }
23227
- }, [D, $, m, h1]), X(() => {
23228
- if (D && $ && m === "tags") {
23227
+ }, [F, S, m, h1]), K(() => {
23228
+ if (F && S && m === "tags") {
23229
23229
  const U = setTimeout(() => {
23230
23230
  h1();
23231
23231
  }, 100);
23232
23232
  return () => clearTimeout(U);
23233
23233
  }
23234
- }, [W, D, $, m, h1]);
23234
+ }, [W, F, S, m, h1]);
23235
23235
  const K0 = (U) => {
23236
- if ($) {
23236
+ if (S) {
23237
23237
  const H1 = Z9(i1).filter((Q) => Q !== U);
23238
23238
  y1(H1);
23239
23239
  }
23240
23240
  }, B9 = () => {
23241
- if ($) {
23241
+ if (S) {
23242
23242
  if (W.length === 0) return "";
23243
23243
  switch (m) {
23244
23244
  case "count":
23245
23245
  return `${W.length} elemento${W.length > 1 ? "s" : ""} seleccionado${W.length > 1 ? "s" : ""}`;
23246
23246
  case "text":
23247
- return W.map((U) => U == null ? void 0 : U[f]).filter(Boolean).join(", ");
23247
+ return W.map((U) => U == null ? void 0 : U[M]).filter(Boolean).join(", ");
23248
23248
  case "tags":
23249
23249
  default:
23250
23250
  return "";
23251
23251
  }
23252
23252
  } else {
23253
23253
  const U = W[0];
23254
- return U ? U[v] === -1 || U[f] === -1 || U[f] === "-1" ? h : U[f] || "" : "";
23254
+ return U ? U[v] === -1 || U[M] === -1 || U[M] === "-1" ? f : U[M] || "" : "";
23255
23255
  }
23256
23256
  }, S9 = () => {
23257
- if (!D || !s1.top) return null;
23257
+ if (!F || !s1.top) return null;
23258
23258
  const U = T ? "animate-dropdown-exit" : "animate-dropdown-enter", a1 = (Q, A1) => {
23259
23259
  X0(Q, A1), Q.icon && J(Q.icon), Q.iconColor && A(Q.iconColor);
23260
23260
  }, H1 = /* @__PURE__ */ u(
@@ -23273,7 +23273,7 @@ const l6 = U1(
23273
23273
  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 ${U}`,
23274
23274
  onClick: (Q) => Q.stopPropagation(),
23275
23275
  children: [
23276
- /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (Q) => Q.stopPropagation(), children: /* @__PURE__ */ i(
23276
+ /* @__PURE__ */ i("div", { children: O && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (Q) => Q.stopPropagation(), children: /* @__PURE__ */ i(
23277
23277
  $1,
23278
23278
  {
23279
23279
  value: q,
@@ -23285,9 +23285,9 @@ const l6 = U1(
23285
23285
  size: "sm"
23286
23286
  }
23287
23287
  ) }) }),
23288
- y && /* @__PURE__ */ i(E1, {}),
23288
+ O && /* @__PURE__ */ i(z1, {}),
23289
23289
  /* @__PURE__ */ i("div", { className: "no-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: p1.length > 0 ? p1.map((Q) => {
23290
- const A1 = $ ? W.some(
23290
+ const A1 = S ? W.some(
23291
23291
  (O1) => O1 && O1[v] === Q[v]
23292
23292
  ) : Q[v] === -1 && (i1 === -1 || i1 === "-1") || Q[v] === i1;
23293
23293
  return Z ? /* @__PURE__ */ i(
@@ -23303,9 +23303,9 @@ const l6 = U1(
23303
23303
  onChange: (O1) => V == null ? void 0 : V(Q, O1),
23304
23304
  disabled: Q.disabled
23305
23305
  },
23306
- children: Q[f]
23306
+ children: Q[M]
23307
23307
  },
23308
- Q[v] || Q[f]
23308
+ Q[v] || Q[M]
23309
23309
  ) : /* @__PURE__ */ i(
23310
23310
  V9,
23311
23311
  {
@@ -23315,9 +23315,9 @@ const l6 = U1(
23315
23315
  "data-option-value": Q[v],
23316
23316
  icon: Q.icon,
23317
23317
  iconColor: Q.iconColor,
23318
- children: Q[f]
23318
+ children: Q[M]
23319
23319
  },
23320
- Q[v] || Q[f]
23320
+ Q[v] || Q[M]
23321
23321
  );
23322
23322
  }) : 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: [
23323
23323
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(v1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
@@ -23329,8 +23329,8 @@ const l6 = U1(
23329
23329
  ] }),
23330
23330
  /* @__PURE__ */ i("p", { className: "ui-mt-2 ui-text-xs ui-text-neutral-500", children: p })
23331
23331
  ] }) : /* @__PURE__ */ i("div", { className: "ui-px-3 ui-text-center ui-text-sm ui-text-neutral-500", children: "Sin opciones" }) }),
23332
- O && /* @__PURE__ */ u(Z1, { children: [
23333
- /* @__PURE__ */ i(E1, {}),
23332
+ y && /* @__PURE__ */ u(Z1, { children: [
23333
+ /* @__PURE__ */ i(z1, {}),
23334
23334
  /* @__PURE__ */ u("div", { className: "ui-flex ui-min-w-[200px] ui-gap-x-2 ui-px-4 ui-py-2", children: [
23335
23335
  /* @__PURE__ */ i(
23336
23336
  b1,
@@ -23352,7 +23352,7 @@ const l6 = U1(
23352
23352
  );
23353
23353
  return I ? H1 : P1(H1, document.body);
23354
23354
  };
23355
- return X(() => {
23355
+ return K(() => {
23356
23356
  c && J(c);
23357
23357
  }, [c]), /* @__PURE__ */ u(
23358
23358
  "div",
@@ -23361,23 +23361,23 @@ const l6 = U1(
23361
23361
  className: "ui-relative ui-w-full",
23362
23362
  "data-dropdown-container-id": x1,
23363
23363
  children: [
23364
- $ && m === "tags" ? /* @__PURE__ */ i(
23364
+ S && m === "tags" ? /* @__PURE__ */ i(
23365
23365
  f6,
23366
23366
  {
23367
23367
  label: r,
23368
- placeholder: h,
23368
+ placeholder: f,
23369
23369
  selectedOptions: W,
23370
23370
  handleRemoveSelected: K0,
23371
23371
  toggleDropdown: L1,
23372
- isOpen: D,
23373
- isOpening: S,
23372
+ isOpen: F,
23373
+ isOpening: B,
23374
23374
  setIsOpening: k,
23375
- customInputRef: z,
23376
- disabled: g,
23375
+ customInputRef: E,
23376
+ disabled: w,
23377
23377
  error: t,
23378
23378
  helperText: n || "",
23379
23379
  rightSlot: l,
23380
- valueName: f,
23380
+ valueName: M,
23381
23381
  idName: v
23382
23382
  }
23383
23383
  ) : (
@@ -23391,33 +23391,33 @@ const l6 = U1(
23391
23391
  helperText: n,
23392
23392
  size: e,
23393
23393
  color: a,
23394
- leftSlot: K || void 0,
23394
+ leftSlot: X || void 0,
23395
23395
  colorLeftIcon: n1 || void 0,
23396
23396
  rightSlot: l,
23397
23397
  fullWidth: !0,
23398
23398
  caret: d,
23399
- disabled: g,
23400
- placeholder: h,
23399
+ disabled: w,
23400
+ placeholder: f,
23401
23401
  value: B9(),
23402
23402
  readOnly: !0,
23403
23403
  onClick: (U) => L1(U),
23404
23404
  onClickExtraSlot: () => L1(),
23405
- extraSlot: D ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23405
+ extraSlot: F ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23406
23406
  name: o,
23407
23407
  autosize: !0,
23408
- ...E
23408
+ ...z
23409
23409
  }
23410
23410
  )
23411
23411
  ),
23412
- $ && m !== "tags" && W.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: W.map((U) => U ? /* @__PURE__ */ i(
23412
+ S && m !== "tags" && W.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: W.map((U) => U ? /* @__PURE__ */ i(
23413
23413
  y9,
23414
23414
  {
23415
- label: U[f],
23415
+ label: U[M],
23416
23416
  color: "blue",
23417
23417
  size: "sm",
23418
23418
  onClick: () => K0(U[v])
23419
23419
  },
23420
- U[f]
23420
+ U[M]
23421
23421
  ) : null) }),
23422
23422
  S9()
23423
23423
  ]
@@ -23428,7 +23428,7 @@ const l6 = U1(
23428
23428
  R1.displayName = "Dropdown";
23429
23429
  const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23430
23430
  const [n, e] = Y(!1), [a, c] = Y(() => (t || "").length);
23431
- return X(() => {
23431
+ return K(() => {
23432
23432
  const C = (t || "").length;
23433
23433
  c((p) => p !== C ? C : p);
23434
23434
  }, [t]), { isFocused: n, setIsFocused: e, count: a, handleChange: (C) => {
@@ -23444,10 +23444,10 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23444
23444
  const p = C.clipboardData.getData("text"), d = t || "";
23445
23445
  if (d.length + p.length > o) {
23446
23446
  C.preventDefault();
23447
- const w = o - d.length, g = p.substring(0, w);
23448
- if (w > 0) {
23449
- const h = d + g;
23450
- c(h.length), r == null || r(h);
23447
+ const h = o - d.length, w = p.substring(0, h);
23448
+ if (h > 0) {
23449
+ const f = d + w;
23450
+ c(f.length), r == null || r(f);
23451
23451
  }
23452
23452
  }
23453
23453
  }
@@ -23465,7 +23465,7 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23465
23465
  helperText: C = "",
23466
23466
  maxLength: p = 0
23467
23467
  }) => {
23468
- const { isFocused: d, setIsFocused: L, count: w, handleChange: g, handlePaste: h } = m6({
23468
+ const { isFocused: d, setIsFocused: L, count: h, handleChange: w, handlePaste: f } = m6({
23469
23469
  maxLength: p,
23470
23470
  onChange: r,
23471
23471
  value: o
@@ -23492,8 +23492,8 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23492
23492
  placeholder: t,
23493
23493
  onFocus: () => L(!0),
23494
23494
  value: o || "",
23495
- onChange: g,
23496
- onPaste: h,
23495
+ onChange: w,
23496
+ onPaste: f,
23497
23497
  onBlur: () => L(!1),
23498
23498
  disabled: l,
23499
23499
  rows: 1,
@@ -23525,7 +23525,7 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23525
23525
  children: [
23526
23526
  /* @__PURE__ */ i(v1, { name: "FileOutlined", color: "neutral_soft", size: "sm" }),
23527
23527
  /* @__PURE__ */ u("p", { className: "ui-text-sm ui-leading-none ui-text-neutral-500", children: [
23528
- w,
23528
+ h,
23529
23529
  "/",
23530
23530
  p
23531
23531
  ] })
@@ -23555,100 +23555,100 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23555
23555
  disabled: l = !1,
23556
23556
  absolute: s = !1
23557
23557
  }) => {
23558
- const C = i9(), p = e || `popup-${C}`, [d, L] = Y(!1), [w, g] = Y({}), [h, b] = Y(!1), f = o1(null), v = o1(null), H = o1(null), j = P(() => {
23559
- const B = f.current, R = v.current;
23560
- if (!B || !R) return;
23561
- const N = B.getBoundingClientRect(), $ = R.getBoundingClientRect();
23562
- if ($.width === 0 || $.height === 0)
23558
+ const C = i9(), p = e || `popup-${C}`, [d, L] = Y(!1), [h, w] = Y({}), [f, g] = Y(!1), M = o1(null), v = o1(null), H = o1(null), j = P(() => {
23559
+ const $ = M.current, R = v.current;
23560
+ if (!$ || !R) return;
23561
+ const N = $.getBoundingClientRect(), S = R.getBoundingClientRect();
23562
+ if (S.width === 0 || S.height === 0)
23563
23563
  return;
23564
- let x = 0, m = 0;
23564
+ let b = 0, m = 0;
23565
23565
  if (s) {
23566
- const E = B.offsetTop, G = B.offsetLeft, z = B.offsetWidth, K = B.offsetHeight;
23566
+ const z = $.offsetTop, G = $.offsetLeft, E = $.offsetWidth, X = $.offsetHeight;
23567
23567
  switch (o) {
23568
23568
  case "top":
23569
- x = E - $.height - r, m = G + (z - $.width) / 2;
23569
+ b = z - S.height - r, m = G + (E - S.width) / 2;
23570
23570
  break;
23571
23571
  case "bottom":
23572
23572
  case "bottom-center":
23573
- x = E + K + r, m = G + (z - $.width) / 2;
23573
+ b = z + X + r, m = G + (E - S.width) / 2;
23574
23574
  break;
23575
23575
  case "bottom-left":
23576
- x = E + K + r, m = G;
23576
+ b = z + X + r, m = G;
23577
23577
  break;
23578
23578
  case "bottom-right":
23579
- x = E + K + r, m = G + z - $.width;
23579
+ b = z + X + r, m = G + E - S.width;
23580
23580
  break;
23581
23581
  case "left":
23582
- x = E, m = G - $.width - r;
23582
+ b = z, m = G - S.width - r;
23583
23583
  break;
23584
23584
  case "right":
23585
- x = E, m = G + z + r;
23585
+ b = z, m = G + E + r;
23586
23586
  break;
23587
23587
  }
23588
23588
  } else {
23589
- const E = window.innerWidth, G = window.innerHeight, z = N.top, K = N.left, J = N.width, n1 = N.height;
23589
+ const z = window.innerWidth, G = window.innerHeight, E = N.top, X = N.left, J = N.width, n1 = N.height;
23590
23590
  switch (o) {
23591
23591
  case "top":
23592
- x = z - $.height - r, m = K + (J - $.width) / 2;
23592
+ b = E - S.height - r, m = X + (J - S.width) / 2;
23593
23593
  break;
23594
23594
  case "bottom":
23595
23595
  case "bottom-center":
23596
- x = z + n1 + r, m = K + (J - $.width) / 2;
23596
+ b = E + n1 + r, m = X + (J - S.width) / 2;
23597
23597
  break;
23598
23598
  case "bottom-left":
23599
- x = z + n1 + r, m = K;
23599
+ b = E + n1 + r, m = X;
23600
23600
  break;
23601
23601
  case "bottom-right":
23602
- x = z + n1 + r, m = K + J - $.width;
23602
+ b = E + n1 + r, m = X + J - S.width;
23603
23603
  break;
23604
23604
  case "left":
23605
- x = z, m = K - $.width - r;
23605
+ b = E, m = X - S.width - r;
23606
23606
  break;
23607
23607
  case "right":
23608
- x = z, m = K + J + r;
23608
+ b = E, m = X + J + r;
23609
23609
  break;
23610
23610
  }
23611
- m < 0 && (m = 0), m + $.width > E && (m = E - $.width), x < 0 && (x = 0), x + $.height > G && (x = G - $.height), o === "bottom-right" && $.width > N.width && (m = N.right - $.width, m < 0 && (m = 0));
23611
+ m < 0 && (m = 0), m + S.width > z && (m = z - S.width), b < 0 && (b = 0), b + S.height > G && (b = G - S.height), o === "bottom-right" && S.width > N.width && (m = N.right - S.width, m < 0 && (m = 0));
23612
23612
  }
23613
- const I = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, M = I + O % 100, Z = {
23613
+ const I = 1e3, y = parseInt(p.replace(/\D/g, "")) || 0, x = I + y % 100, Z = {
23614
23614
  position: s ? "absolute" : "fixed",
23615
- top: `${x}px`,
23615
+ top: `${b}px`,
23616
23616
  left: `${m}px`,
23617
- zIndex: M
23617
+ zIndex: x
23618
23618
  };
23619
- g(Z), b(!0);
23620
- }, [o, r, p, s]), V = (B) => {
23621
- B && B.stopPropagation(), !l && (d ? y() : (x6(p), g({}), b(!1), L(!0), W1.add(p), a == null || a()));
23622
- }, y = () => {
23623
- L(!1), b(!1), W1.delete(p), c == null || c();
23619
+ w(Z), g(!0);
23620
+ }, [o, r, p, s]), V = ($) => {
23621
+ $ && $.stopPropagation(), !l && (d ? O() : (x6(p), w({}), g(!1), L(!0), W1.add(p), a == null || a()));
23622
+ }, O = () => {
23623
+ L(!1), g(!1), W1.delete(p), c == null || c();
23624
23624
  };
23625
- return X(() => {
23625
+ return K(() => {
23626
23626
  if (d) {
23627
- const B = () => {
23627
+ const $ = () => {
23628
23628
  const R = v.current;
23629
23629
  if (R) {
23630
23630
  const N = R.getBoundingClientRect();
23631
23631
  N.width > 0 && N.height > 0 && N.width !== 0 && N.height !== 0 ? j() : setTimeout(() => {
23632
- requestAnimationFrame(B);
23632
+ requestAnimationFrame($);
23633
23633
  }, 10);
23634
23634
  }
23635
23635
  };
23636
23636
  setTimeout(() => {
23637
- requestAnimationFrame(B);
23637
+ requestAnimationFrame($);
23638
23638
  }, 0);
23639
23639
  }
23640
- }, [d, j]), X(() => {
23641
- if (!d || !h || s) return;
23642
- let B = !1;
23640
+ }, [d, j]), K(() => {
23641
+ if (!d || !f || s) return;
23642
+ let $ = !1;
23643
23643
  const R = () => {
23644
- B || (requestAnimationFrame(() => {
23645
- j(), B = !1;
23646
- }), B = !0);
23644
+ $ || (requestAnimationFrame(() => {
23645
+ j(), $ = !1;
23646
+ }), $ = !0);
23647
23647
  };
23648
23648
  return window.addEventListener("scroll", R, { passive: !0 }), window.addEventListener("resize", R, { passive: !0 }), () => {
23649
23649
  window.removeEventListener("scroll", R), window.removeEventListener("resize", R);
23650
23650
  };
23651
- }, [d, h, s, j]), j9({
23651
+ }, [d, f, s, j]), j9({
23652
23652
  isActive: d,
23653
23653
  disabled: l,
23654
23654
  elementRef: v,
@@ -23656,17 +23656,17 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23656
23656
  elementId: p,
23657
23657
  elementType: "popup",
23658
23658
  closeOnClickOutside: t,
23659
- onOutsideClick: y
23660
- }), q0(d, y, !n), {
23659
+ onOutsideClick: O
23660
+ }), q0(d, O, !n), {
23661
23661
  isOpen: d,
23662
- popupStyle: w,
23663
- isPositioned: h,
23664
- triggerRef: f,
23662
+ popupStyle: h,
23663
+ isPositioned: f,
23664
+ triggerRef: M,
23665
23665
  popupRef: v,
23666
23666
  containerRef: H,
23667
23667
  popupUniqueId: p,
23668
23668
  togglePopup: V,
23669
- closePopup: y
23669
+ closePopup: O
23670
23670
  };
23671
23671
  }, v6 = (o) => ({
23672
23672
  sm: "ui-rounded-sm",
@@ -23690,37 +23690,37 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23690
23690
  disabled: p = !1,
23691
23691
  variant: d = "outlined",
23692
23692
  color: L = "white",
23693
- size: w = "md",
23694
- textColor: g = "inherit",
23695
- rounded: h = !1,
23696
- slotLeft: b,
23697
- borderRadius: f = "sm",
23693
+ size: h = "md",
23694
+ textColor: w = "inherit",
23695
+ rounded: f = !1,
23696
+ slotLeft: g,
23697
+ borderRadius: M = "sm",
23698
23698
  slotRight: v,
23699
23699
  icon: H,
23700
23700
  colorIcon: j,
23701
23701
  tooltip: V,
23702
- tooltipPosition: y,
23703
- tooltipAlignment: B,
23702
+ tooltipPosition: O,
23703
+ tooltipAlignment: $,
23704
23704
  tooltipColor: R,
23705
23705
  tooltipDelay: N,
23706
- absolute: $ = !1,
23707
- closeOnClick: x = !0,
23706
+ absolute: S = !1,
23707
+ closeOnClick: b = !0,
23708
23708
  buttonClassName: m,
23709
23709
  containerClassName: I,
23710
- buttonTransition: O = !0,
23711
- buttonStyle: M,
23710
+ buttonTransition: y = !0,
23711
+ buttonStyle: x,
23712
23712
  ...Z
23713
- }, E) => {
23713
+ }, z) => {
23714
23714
  const {
23715
23715
  isOpen: G,
23716
- popupStyle: z,
23717
- isPositioned: K,
23716
+ popupStyle: E,
23717
+ isPositioned: X,
23718
23718
  triggerRef: J,
23719
23719
  popupRef: n1,
23720
23720
  containerRef: A,
23721
- popupUniqueId: S,
23721
+ popupUniqueId: B,
23722
23722
  togglePopup: k,
23723
- closePopup: F
23723
+ closePopup: D
23724
23724
  } = b6({
23725
23725
  position: t,
23726
23726
  offset: n,
@@ -23730,55 +23730,55 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23730
23730
  onOpen: s,
23731
23731
  onClose: C,
23732
23732
  disabled: p,
23733
- absolute: $
23733
+ absolute: S
23734
23734
  });
23735
23735
  e0(
23736
- E,
23736
+ z,
23737
23737
  () => ({
23738
23738
  open: () => {
23739
23739
  p || k();
23740
23740
  },
23741
23741
  close: () => {
23742
- F();
23742
+ D();
23743
23743
  },
23744
23744
  isOpen: () => G
23745
23745
  }),
23746
- [p, k, F, G]
23746
+ [p, k, D, G]
23747
23747
  );
23748
23748
  const e1 = () => {
23749
23749
  if (!G)
23750
23750
  return null;
23751
23751
  const t1 = {
23752
- position: $ ? "absolute" : "fixed",
23753
- top: $ ? "auto" : "-9999px",
23754
- left: $ ? "auto" : "-9999px",
23755
- visibility: K ? "visible" : "hidden",
23756
- opacity: K ? 1 : 0,
23752
+ position: S ? "absolute" : "fixed",
23753
+ top: S ? "auto" : "-9999px",
23754
+ left: S ? "auto" : "-9999px",
23755
+ visibility: X ? "visible" : "hidden",
23756
+ opacity: X ? 1 : 0,
23757
23757
  transition: "opacity 0.1s ease-out",
23758
- ...z
23759
- }, l1 = v6(f), D = /* @__PURE__ */ i(
23758
+ ...E
23759
+ }, l1 = v6(M), F = /* @__PURE__ */ i(
23760
23760
  "div",
23761
23761
  {
23762
23762
  ref: n1,
23763
- id: S,
23764
- "data-popup-id": S,
23763
+ id: B,
23764
+ "data-popup-id": B,
23765
23765
  style: t1,
23766
23766
  className: `ui-border ui-border-neutral-100 ui-bg-white ${l1} ui-overflow-hidden ui-shadow-lg ${l}`,
23767
23767
  onClick: () => {
23768
- x && F();
23768
+ b && D();
23769
23769
  },
23770
23770
  ...Z,
23771
23771
  children: o
23772
23772
  }
23773
23773
  );
23774
- return $ ? D : P1(D, document.body);
23774
+ return S ? F : P1(F, document.body);
23775
23775
  };
23776
23776
  return /* @__PURE__ */ u(
23777
23777
  "div",
23778
23778
  {
23779
23779
  ref: A,
23780
23780
  className: _("ui-relative ui-h-max"),
23781
- "data-popup-container-id": S,
23781
+ "data-popup-container-id": B,
23782
23782
  children: [
23783
23783
  /* @__PURE__ */ i("div", { ref: J, className: _("ui-w-fit", I), children: /* @__PURE__ */ i(
23784
23784
  b1,
@@ -23788,20 +23788,20 @@ const m6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23788
23788
  disabled: p,
23789
23789
  variant: d,
23790
23790
  color: L,
23791
- size: w,
23792
- rounded: h,
23791
+ size: h,
23792
+ rounded: f,
23793
23793
  icon: H,
23794
- slotLeft: b,
23794
+ slotLeft: g,
23795
23795
  slotRight: v,
23796
23796
  colorIcon: j,
23797
- textColor: g,
23797
+ textColor: w,
23798
23798
  tooltip: V,
23799
- tooltipPosition: y,
23800
- tooltipAlignment: B,
23799
+ tooltipPosition: O,
23800
+ tooltipAlignment: $,
23801
23801
  tooltipColor: R,
23802
23802
  tooltipDelay: N,
23803
- transition: O,
23804
- style: M,
23803
+ transition: y,
23804
+ style: x,
23805
23805
  children: r || ""
23806
23806
  }
23807
23807
  ) }),
@@ -23820,8 +23820,8 @@ const k1 = {
23820
23820
  DATE_RANGE: "dateRange",
23821
23821
  TEXTAREA: "textarea"
23822
23822
  }, j6 = ({ filters: o, onClear: r, onApply: t }) => {
23823
- const n = P((w) => {
23824
- switch (w) {
23823
+ const n = P((h) => {
23824
+ switch (h) {
23825
23825
  case k1.MULTIPLE:
23826
23826
  return [];
23827
23827
  case k1.DATE:
@@ -23835,50 +23835,50 @@ const k1 = {
23835
23835
  return "";
23836
23836
  }
23837
23837
  }, []), e = P(
23838
- (w) => n(w.type),
23838
+ (h) => n(h.type),
23839
23839
  [n]
23840
23840
  ), a = P(
23841
- (w) => n(w.type),
23841
+ (h) => n(h.type),
23842
23842
  [n]
23843
23843
  ), [c, l] = Y(() => {
23844
- const w = {};
23845
- return o.forEach((g) => {
23846
- const h = g.keyName || g.label.toLowerCase();
23847
- w[h] = e(g);
23848
- }), w;
23844
+ const h = {};
23845
+ return o.forEach((w) => {
23846
+ const f = w.keyName || w.label.toLowerCase();
23847
+ h[f] = e(w);
23848
+ }), h;
23849
23849
  }), s = P(() => {
23850
- const w = {};
23851
- o.forEach((g) => {
23852
- const h = g.keyName || g.label.toLowerCase(), b = e(g);
23853
- w[h] = b;
23854
- }), l(w);
23850
+ const h = {};
23851
+ o.forEach((w) => {
23852
+ const f = w.keyName || w.label.toLowerCase(), g = e(w);
23853
+ h[f] = g;
23854
+ }), l(h);
23855
23855
  }, [o, e]);
23856
- X(() => {
23856
+ K(() => {
23857
23857
  s();
23858
23858
  }, [s]);
23859
23859
  const C = P(() => {
23860
- const w = {};
23861
- o.forEach((g) => {
23862
- const h = g.keyName || g.label.toLowerCase();
23863
- w[h] = a(g);
23864
- }), l(w), o.forEach((g) => {
23865
- if (g.onValueChange) {
23866
- const h = a(g);
23867
- g.onValueChange({
23868
- current: h,
23869
- filters: w
23860
+ const h = {};
23861
+ o.forEach((w) => {
23862
+ const f = w.keyName || w.label.toLowerCase();
23863
+ h[f] = a(w);
23864
+ }), l(h), o.forEach((w) => {
23865
+ if (w.onValueChange) {
23866
+ const f = a(w);
23867
+ w.onValueChange({
23868
+ current: f,
23869
+ filters: h
23870
23870
  });
23871
23871
  }
23872
23872
  }), r == null || r();
23873
23873
  }, [o, a, r]), p = P(
23874
- (w, g, h) => {
23875
- const b = h.keyName || w.toLowerCase(), f = {
23874
+ (h, w, f) => {
23875
+ const g = f.keyName || h.toLowerCase(), M = {
23876
23876
  ...c,
23877
- [b]: g
23877
+ [g]: w
23878
23878
  };
23879
- l(f), h.onValueChange && h.onValueChange({
23880
- current: g,
23881
- filters: f
23879
+ l(M), f.onValueChange && f.onValueChange({
23880
+ current: w,
23881
+ filters: M
23882
23882
  });
23883
23883
  },
23884
23884
  [c]
@@ -23899,120 +23899,109 @@ const k1 = {
23899
23899
  clearText: r = "Limpiar",
23900
23900
  title: t = "Filtros",
23901
23901
  icon: n = "FilterOutlined",
23902
- onClear: e,
23903
- onApply: a,
23904
- closeOnApply: c = !0
23902
+ label: e = "Filtros",
23903
+ onClear: a,
23904
+ onApply: c,
23905
+ closeOnApply: l = !0
23905
23906
  }) => {
23906
- const l = o1(null), { filterStates: s, handleFilterChange: C, handleClear: p, handleApply: d } = j6({
23907
+ const s = o1(null), { filterStates: C, handleFilterChange: p, handleClear: d, handleApply: L } = j6({
23907
23908
  filters: o,
23908
- onClear: e,
23909
- onApply: a
23910
- }), L = () => {
23911
- var h;
23912
- d(), c && ((h = l.current) == null || h.close());
23909
+ onClear: a,
23910
+ onApply: c
23911
+ }), h = () => {
23912
+ var g;
23913
+ L(), l && ((g = s.current) == null || g.close());
23913
23914
  }, w = () => {
23914
- const h = new CustomEvent("close-all-dropdowns");
23915
- document.dispatchEvent(h);
23916
- }, g = () => {
23917
- w();
23915
+ const g = new CustomEvent("close-all-dropdowns");
23916
+ document.dispatchEvent(g);
23918
23917
  };
23919
- return X(() => {
23920
- const h = (b) => {
23921
- var y, B;
23922
- const f = b.target;
23923
- if (!((y = l.current) != null && y.isOpen()))
23924
- return;
23925
- const v = document.querySelector("[data-popup-container-id]"), H = v == null ? void 0 : v.contains(f);
23926
- document.querySelector("[data-dropdown-id]") || H || (B = l.current) == null || B.close();
23927
- };
23928
- return document.addEventListener("mousedown", h, !1), () => {
23929
- document.removeEventListener("mousedown", h, !1);
23930
- };
23931
- }, []), /* @__PURE__ */ u(
23918
+ return /* @__PURE__ */ u(
23932
23919
  O9,
23933
23920
  {
23934
23921
  borderRadius: "2xl",
23935
- absolute: !0,
23936
- label: "Lista",
23922
+ absolute: !1,
23923
+ label: e,
23937
23924
  slotLeft: "FilterOutlined",
23938
23925
  size: "lg",
23939
23926
  closeOnClick: !1,
23940
23927
  closeOnClickOutside: !0,
23941
23928
  className: "ui-w-[320px]",
23942
- ref: l,
23943
- onClose: g,
23929
+ ref: s,
23930
+ onClose: () => {
23931
+ w();
23932
+ },
23944
23933
  children: [
23945
23934
  /* @__PURE__ */ u("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4 ui-pb-3", children: [
23946
23935
  /* @__PURE__ */ i(m9, { title: t, icon: n }),
23947
- /* @__PURE__ */ i(b1, { variant: "text", color: "neutral", colorIcon: "neutral", onClick: p, children: r })
23936
+ /* @__PURE__ */ i(b1, { variant: "text", color: "neutral", colorIcon: "neutral", onClick: d, children: r })
23948
23937
  ] }),
23949
- /* @__PURE__ */ i(E1, {}),
23938
+ /* @__PURE__ */ i(z1, {}),
23950
23939
  /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-col ui-gap-y-2 ui-p-4 ui-pt-3", children: [
23951
- o.map((h) => {
23952
- const b = h.keyName || h.label.toLowerCase();
23953
- return h.type === "dropdown" ? /* @__PURE__ */ i(
23940
+ o.map((g) => {
23941
+ const M = g.keyName || g.label.toLowerCase();
23942
+ return g.type === "dropdown" ? /* @__PURE__ */ i(
23954
23943
  R1,
23955
23944
  {
23956
- label: h.label,
23957
- options: h.options || [],
23958
- onValueChange: (f) => C(h.label, f, h),
23959
- value: s[b] || "",
23960
- placeholder: h.placeholder,
23961
- absolute: !0,
23945
+ label: g.label,
23946
+ options: g.options || [],
23947
+ onValueChange: (v) => p(g.label, v, g),
23948
+ value: C[M] || "",
23949
+ placeholder: g.placeholder,
23950
+ absolute: !1,
23962
23951
  closeOnClickOutside: !0
23963
23952
  },
23964
- `${h.type}-${h.label}`
23965
- ) : h.type === "multiple" ? /* @__PURE__ */ i(
23953
+ `${g.type}-${g.label}`
23954
+ ) : g.type === "multiple" ? /* @__PURE__ */ i(
23966
23955
  R1,
23967
23956
  {
23968
- label: h.label,
23969
- options: h.options || [],
23957
+ label: g.label,
23958
+ options: g.options || [],
23970
23959
  size: "md",
23971
- onValueChange: (f) => C(h.label, f, h),
23972
- value: s[b] || "",
23973
- placeholder: h.placeholder,
23960
+ onValueChange: (v) => p(g.label, v, g),
23961
+ value: C[M] || "",
23962
+ placeholder: g.placeholder,
23974
23963
  multiple: !0,
23975
- absolute: !0,
23964
+ absolute: !1,
23976
23965
  closeOnClickOutside: !0
23977
23966
  },
23978
- `${h.type}-${h.label}`
23979
- ) : h.type === "input" ? /* @__PURE__ */ i(
23967
+ `${g.type}-${g.label}`
23968
+ ) : g.type === "input" ? /* @__PURE__ */ i(
23980
23969
  $1,
23981
23970
  {
23982
- label: h.label,
23983
- value: s[b] || "",
23984
- onChange: (f) => C(h.label, f.target.value, h)
23971
+ label: g.label,
23972
+ value: C[M] || "",
23973
+ onChange: (v) => p(g.label, v.target.value, g)
23985
23974
  },
23986
- `${h.type}-${h.label}`
23987
- ) : h.type === "date" ? /* @__PURE__ */ i(
23975
+ `${g.type}-${g.label}`
23976
+ ) : g.type === "date" ? /* @__PURE__ */ i(
23988
23977
  n9,
23989
23978
  {
23990
23979
  closeOnSelect: !0,
23991
- label: h.label,
23992
- selectedDate: s[b] || null,
23993
- onDateChange: (f) => C(h.label, f, h),
23994
- placeholder: h.placeholder
23980
+ label: g.label,
23981
+ selectedDate: C[M] || null,
23982
+ onDateChange: (v) => p(g.label, v, g),
23983
+ placeholder: g.placeholder
23995
23984
  },
23996
- `${h.type}-${h.label}`
23997
- ) : h.type === "dateRange" ? /* @__PURE__ */ i(
23985
+ `${g.type}-${g.label}`
23986
+ ) : g.type === "dateRange" ? /* @__PURE__ */ i(
23998
23987
  n9,
23999
23988
  {
24000
- label: h.label,
24001
- selectedRange: s[b] || { start: null, end: null },
24002
- onRangeChange: (f) => C(h.label, f, h),
24003
- placeholder: h.placeholder
23989
+ label: g.label,
23990
+ selectedRange: C[M] || { start: null, end: null },
23991
+ onRangeChange: (v) => p(g.label, v, g),
23992
+ placeholder: g.placeholder
24004
23993
  },
24005
- `${h.type}-${h.label}`
24006
- ) : h.type === "textarea" ? /* @__PURE__ */ i(
23994
+ `${g.type}-${g.label}`
23995
+ ) : g.type === "textarea" ? /* @__PURE__ */ i(
24007
23996
  M6,
24008
23997
  {
24009
- value: s[b] || "",
24010
- onChange: (f) => C(h.label, f, h)
23998
+ value: C[M] || "",
23999
+ onChange: (v) => p(g.label, v, g)
24011
24000
  },
24012
- `${h.type}-${h.label}`
24001
+ `${g.type}-${g.label}`
24013
24002
  ) : null;
24014
24003
  }),
24015
- /* @__PURE__ */ i(b1, { color: "blue", onClick: L, children: "Aplicar" })
24004
+ /* @__PURE__ */ i(b1, { color: "blue", onClick: h, children: "Aplicar" })
24016
24005
  ] })
24017
24006
  ]
24018
24007
  }
@@ -24049,17 +24038,17 @@ const k1 = {
24049
24038
  showCancelButton: p = !0,
24050
24039
  showCloseButton: d = !0,
24051
24040
  closeAtCorner: L = !0,
24052
- title: w,
24053
- tabs: g,
24054
- defaultValueTab: h,
24055
- onChangeTab: b,
24056
- headerButtonIcon: f,
24041
+ title: h,
24042
+ tabs: w,
24043
+ defaultValueTab: f,
24044
+ onChangeTab: g,
24045
+ headerButtonIcon: M,
24057
24046
  headerButtonOnClick: v,
24058
24047
  footerButtonIcon: H,
24059
24048
  footerButtonOnClick: j,
24060
24049
  cancelButtonSlotLeft: V,
24061
- successButtonSlotRight: y,
24062
- disableCancelButton: B,
24050
+ successButtonSlotRight: O,
24051
+ disableCancelButton: $,
24063
24052
  disableSuccessButton: R
24064
24053
  }) => {
24065
24054
  const N = {
@@ -24074,18 +24063,18 @@ const k1 = {
24074
24063
  showSuccessButton: c,
24075
24064
  closeAtSuccess: e,
24076
24065
  closeAtCancel: C,
24077
- title: w,
24066
+ title: h,
24078
24067
  icon: n,
24079
- tabs: g,
24080
- defaultValueTab: h,
24081
- onChangeTab: b,
24082
- headerButtonIcon: f,
24068
+ tabs: w,
24069
+ defaultValueTab: f,
24070
+ onChangeTab: g,
24071
+ headerButtonIcon: M,
24083
24072
  headerButtonOnClick: v,
24084
24073
  footerButtonIcon: H,
24085
24074
  footerButtonOnClick: j,
24086
24075
  cancelButtonSlotLeft: V,
24087
- successButtonSlotRight: y,
24088
- disableCancelButton: B,
24076
+ successButtonSlotRight: O,
24077
+ disableCancelButton: $,
24089
24078
  disableSuccessButton: R
24090
24079
  };
24091
24080
  return /* @__PURE__ */ i(k9.Provider, { value: N, children: o });
@@ -24156,10 +24145,10 @@ const k1 = {
24156
24145
  icon: p,
24157
24146
  tabs: d,
24158
24147
  defaultValueTab: L,
24159
- onChangeTab: w,
24160
- headerButtonIcon: g,
24161
- headerButtonOnClick: h
24162
- } = I9(), b = r ?? C, f = c ?? g, v = l ?? h, H = (n == null ? void 0 : n.length) > 0 ? n : d, j = (H == null ? void 0 : H.length) ?? !1, V = a ?? w, y = e ?? L, B = (R) => {
24148
+ onChangeTab: h,
24149
+ headerButtonIcon: w,
24150
+ headerButtonOnClick: f
24151
+ } = I9(), g = r ?? C, M = c ?? w, v = 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, $ = (R) => {
24163
24152
  V && V(R);
24164
24153
  };
24165
24154
  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: [
@@ -24174,11 +24163,11 @@ const k1 = {
24174
24163
  variant: "outlined",
24175
24164
  rounded: !0,
24176
24165
  color: "white",
24177
- icon: f ?? "AlignJustifyOutlined",
24166
+ icon: M ?? "AlignJustifyOutlined",
24178
24167
  size: "lg"
24179
24168
  }
24180
24169
  ),
24181
- b && /* @__PURE__ */ i(
24170
+ g && /* @__PURE__ */ i(
24182
24171
  r1,
24183
24172
  {
24184
24173
  onClick: s,
@@ -24195,10 +24184,10 @@ const k1 = {
24195
24184
  O6,
24196
24185
  {
24197
24186
  options: H ?? [],
24198
- defaultValue: y,
24187
+ defaultValue: O,
24199
24188
  size: "sm",
24200
24189
  onChange: (R) => {
24201
- B(R);
24190
+ $(R);
24202
24191
  }
24203
24192
  }
24204
24193
  ) }) : null
@@ -24221,40 +24210,40 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24221
24210
  showCancelButton: p,
24222
24211
  showSuccessButton: d,
24223
24212
  closeAtSuccess: L,
24224
- closeAtCancel: w,
24225
- footerButtonIcon: g,
24226
- footerButtonOnClick: h,
24227
- cancelButtonSlotLeft: b,
24228
- successButtonSlotRight: f,
24213
+ closeAtCancel: h,
24214
+ footerButtonIcon: w,
24215
+ footerButtonOnClick: f,
24216
+ cancelButtonSlotLeft: g,
24217
+ successButtonSlotRight: M,
24229
24218
  disableCancelButton: v,
24230
24219
  disableSuccessButton: H
24231
24220
  } = I9(), j = () => {
24232
- s && s(), w && a();
24221
+ s && s(), h && a();
24233
24222
  }, V = () => {
24234
24223
  C && C(), L && a();
24235
- }, y = r ?? g, B = t ?? h;
24224
+ }, O = r ?? w, $ = t ?? f;
24236
24225
  return /* @__PURE__ */ u(
24237
24226
  "div",
24238
24227
  {
24239
- className: `ui-flex ui-border-t ui-border-neutral-100 ui-p-4 ${B ? "ui-justify-between" : "ui-justify-end"} ui-items-center ui-gap-2`,
24228
+ className: `ui-flex ui-border-t ui-border-neutral-100 ui-p-4 ${$ ? "ui-justify-between" : "ui-justify-end"} ui-items-center ui-gap-2`,
24240
24229
  children: [
24241
- B && /* @__PURE__ */ i(
24230
+ $ && /* @__PURE__ */ i(
24242
24231
  r1,
24243
24232
  {
24244
24233
  "aria-label": "Header button",
24245
24234
  variant: "outlined",
24246
24235
  rounded: !0,
24247
24236
  color: "white",
24248
- icon: y ?? "AlignJustifyOutlined",
24237
+ icon: O ?? "AlignJustifyOutlined",
24249
24238
  size: "lg",
24250
- onClick: B
24239
+ onClick: $
24251
24240
  }
24252
24241
  ),
24253
24242
  o || /* @__PURE__ */ u("div", { className: "ui-flex ui-gap-2", children: [
24254
24243
  p && /* @__PURE__ */ i(
24255
24244
  r1,
24256
24245
  {
24257
- slotLeft: n ?? b,
24246
+ slotLeft: n ?? g,
24258
24247
  color: "white",
24259
24248
  variant: "outlined",
24260
24249
  onClick: j,
@@ -24265,7 +24254,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24265
24254
  d && /* @__PURE__ */ i(
24266
24255
  r1,
24267
24256
  {
24268
- slotLeft: e ?? f,
24257
+ slotLeft: e ?? M,
24269
24258
  onClick: V,
24270
24259
  disabled: H,
24271
24260
  children: l
@@ -24301,33 +24290,33 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24301
24290
  cancelButtonText: p,
24302
24291
  successButtonText: d,
24303
24292
  onCancel: L,
24304
- onSuccess: w,
24305
- title: g,
24306
- showCancelButton: h,
24307
- showSuccessButton: b,
24308
- closeAtSuccess: f,
24293
+ onSuccess: h,
24294
+ title: w,
24295
+ showCancelButton: f,
24296
+ showSuccessButton: g,
24297
+ closeAtSuccess: M,
24309
24298
  closeAtCancel: v,
24310
24299
  tabs: H,
24311
24300
  defaultValueTab: j,
24312
24301
  onChangeTab: V,
24313
- headerButtonIcon: y,
24314
- headerButtonOnClick: B,
24302
+ headerButtonIcon: O,
24303
+ headerButtonOnClick: $,
24315
24304
  footerButtonIcon: R,
24316
24305
  footerButtonOnClick: N,
24317
- cancelButtonSlotLeft: $,
24318
- successButtonSlotRight: x,
24306
+ cancelButtonSlotLeft: S,
24307
+ successButtonSlotRight: b,
24319
24308
  disableCancelButton: m,
24320
24309
  disableSuccessButton: I
24321
24310
  }) => {
24322
- const { isVisible: O, animateIn: M, container: Z, modalRef: E } = H6({
24311
+ const { isVisible: y, animateIn: x, container: Z, modalRef: z } = H6({
24323
24312
  isOpen: o,
24324
24313
  onClose: r,
24325
24314
  disableEscapeClose: c,
24326
24315
  disableOutsideTab: l,
24327
24316
  disableOutsideClick: s
24328
24317
  });
24329
- if (!Z || !o && !O) return null;
24330
- const G = Z6(e), z = B6(e), K = /* @__PURE__ */ u(
24318
+ if (!Z || !o && !y) return null;
24319
+ const G = Z6(e), E = B6(e), X = /* @__PURE__ */ u(
24331
24320
  "div",
24332
24321
  {
24333
24322
  "aria-modal": "true",
@@ -24340,7 +24329,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24340
24329
  {
24341
24330
  className: _(
24342
24331
  "ui-fixed ui-inset-0 ui-bg-black ui-backdrop-blur-sm ui-transition-opacity ui-duration-200",
24343
- M ? "ui-opacity-40" : "ui-opacity-0"
24332
+ x ? "ui-opacity-40" : "ui-opacity-0"
24344
24333
  ),
24345
24334
  onClick: s ? (J) => J.stopPropagation() : r
24346
24335
  }
@@ -24348,12 +24337,12 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24348
24337
  /* @__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(
24349
24338
  "div",
24350
24339
  {
24351
- ref: E,
24340
+ ref: z,
24352
24341
  tabIndex: -1,
24353
24342
  className: _(
24354
24343
  "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",
24355
24344
  I6[n],
24356
- M ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
24345
+ x ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
24357
24346
  ),
24358
24347
  onClick: (J) => J.stopPropagation(),
24359
24348
  children: /* @__PURE__ */ u(
@@ -24366,28 +24355,28 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24366
24355
  cancelButtonText: p,
24367
24356
  successButtonText: d,
24368
24357
  onCancel: L,
24369
- onSuccess: w,
24370
- showCancelButton: h,
24371
- showSuccessButton: b,
24372
- closeAtSuccess: f,
24358
+ onSuccess: h,
24359
+ showCancelButton: f,
24360
+ showSuccessButton: g,
24361
+ closeAtSuccess: M,
24373
24362
  closeAtCancel: v,
24374
- title: g,
24363
+ title: w,
24375
24364
  icon: t,
24376
- headerButtonIcon: y,
24377
- headerButtonOnClick: B,
24365
+ headerButtonIcon: O,
24366
+ headerButtonOnClick: $,
24378
24367
  footerButtonIcon: R,
24379
24368
  footerButtonOnClick: N,
24380
24369
  tabs: H,
24381
24370
  defaultValueTab: j,
24382
24371
  onChangeTab: V,
24383
- cancelButtonSlotLeft: $,
24384
- successButtonSlotRight: x,
24372
+ cancelButtonSlotLeft: S,
24373
+ successButtonSlotRight: b,
24385
24374
  disableCancelButton: m,
24386
24375
  disableSuccessButton: I,
24387
24376
  children: [
24388
- !G && (a || g ? /* @__PURE__ */ i(G1, { title: g }) : null),
24377
+ !G && (a || w ? /* @__PURE__ */ i(G1, { title: w }) : null),
24389
24378
  e && e,
24390
- !z && /* @__PURE__ */ i(Y0, {})
24379
+ !E && /* @__PURE__ */ i(Y0, {})
24391
24380
  ]
24392
24381
  }
24393
24382
  )
@@ -24396,8 +24385,8 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24396
24385
  ]
24397
24386
  }
24398
24387
  );
24399
- return p9.createPortal(K, Z);
24400
- }, Di = Object.assign(S6, {
24388
+ return p9.createPortal(X, Z);
24389
+ }, Fi = Object.assign(S6, {
24401
24390
  Header: G1,
24402
24391
  Body: k6,
24403
24392
  Footer: Y0
@@ -24407,7 +24396,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24407
24396
  { label: "25", id: 25 },
24408
24397
  { label: "50", id: 50 },
24409
24398
  { label: "100", id: 100 }
24410
- ], Fi = ({
24399
+ ], Di = ({
24411
24400
  currentPage: o,
24412
24401
  pageCount: r,
24413
24402
  pageSize: t = 10,
@@ -24423,20 +24412,20 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24423
24412
  showVisiblePages: d = !1,
24424
24413
  showPagesSelector: L = !1
24425
24414
  }) => {
24426
- X(() => {
24415
+ K(() => {
24427
24416
  o > r && r > 0 && l(r);
24428
24417
  }, [o, r, l]);
24429
- const w = (j) => {
24418
+ const h = (j) => {
24430
24419
  j >= 1 && j <= r && l(j);
24431
- }, [g, h] = Y(t);
24432
- X(() => {
24433
- h(t);
24420
+ }, [w, f] = Y(t);
24421
+ K(() => {
24422
+ f(t);
24434
24423
  }, [t]);
24435
- const b = Math.min(o * (t || 0), n || 0) || 0, v = (() => {
24424
+ const g = Math.min(o * (t || 0), n || 0) || 0, v = (() => {
24436
24425
  const j = Math.min(Math.max(o, 1), Math.max(r - p + 1, 1)), V = Math.min(j + p - 1, r);
24437
- return Array.from({ length: V - j + 1 }, (y, B) => j + B);
24426
+ return Array.from({ length: V - j + 1 }, (O, $) => j + $);
24438
24427
  })(), H = (j) => {
24439
- h(j), s(j), w(1);
24428
+ f(j), s(j), h(1);
24440
24429
  };
24441
24430
  return /* @__PURE__ */ i(
24442
24431
  "div",
@@ -24453,9 +24442,9 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24453
24442
  r,
24454
24443
  n && /* @__PURE__ */ u("span", { className: "ui-ml-2", children: [
24455
24444
  "(",
24456
- b,
24445
+ g,
24457
24446
  "-",
24458
- b,
24447
+ g,
24459
24448
  " de ",
24460
24449
  n,
24461
24450
  ")"
@@ -24476,7 +24465,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24476
24465
  rounded: !0,
24477
24466
  color: "white",
24478
24467
  icon: "AngleDoubleLeftOutlined",
24479
- onClick: () => w(1),
24468
+ onClick: () => h(1),
24480
24469
  disabled: o === 1,
24481
24470
  "aria-label": "Ir a la primera página"
24482
24471
  }
@@ -24490,7 +24479,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24490
24479
  rounded: !0,
24491
24480
  color: "white",
24492
24481
  icon: "AngleLeftOutlined",
24493
- onClick: () => w(o - 1),
24482
+ onClick: () => h(o - 1),
24494
24483
  disabled: o === 1,
24495
24484
  "aria-label": "Ir a la página anterior"
24496
24485
  }
@@ -24500,7 +24489,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24500
24489
  {
24501
24490
  square: !0,
24502
24491
  rounded: !0,
24503
- onClick: () => w(j),
24492
+ onClick: () => h(j),
24504
24493
  whiteBackground: o === j,
24505
24494
  size: "md",
24506
24495
  variant: "outlined",
@@ -24520,7 +24509,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24520
24509
  rounded: !0,
24521
24510
  color: "white",
24522
24511
  icon: "AngleRightOutlined",
24523
- onClick: () => w(o + 1),
24512
+ onClick: () => h(o + 1),
24524
24513
  disabled: o === r,
24525
24514
  "aria-label": "Ir a la página siguiente"
24526
24515
  }
@@ -24534,7 +24523,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24534
24523
  rounded: !0,
24535
24524
  color: "white",
24536
24525
  icon: "AngleDoubleRightOutlined",
24537
- onClick: () => w(r),
24526
+ onClick: () => h(r),
24538
24527
  disabled: o === r,
24539
24528
  "aria-label": "Ir a la última página"
24540
24529
  }
@@ -24556,7 +24545,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24556
24545
  {
24557
24546
  size: "sm",
24558
24547
  options: c,
24559
- value: g,
24548
+ value: w,
24560
24549
  valueName: "id",
24561
24550
  onValueChange: (j) => H(Number(j))
24562
24551
  }
@@ -24565,9 +24554,9 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24565
24554
  ] })
24566
24555
  }
24567
24556
  );
24568
- }, P6 = "Main Scene", T6 = 0, N6 = 500, A6 = 500, D6 = {
24557
+ }, P6 = "Main Scene", T6 = 0, N6 = 500, A6 = 500, F6 = {
24569
24558
  g: "@lottiefiles/creator 1.47.1"
24570
- }, F6 = [
24559
+ }, D6 = [
24571
24560
  {
24572
24561
  ty: 0,
24573
24562
  nm: "logo",
@@ -25627,7 +25616,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
25627
25616
  ],
25628
25617
  ind: 2
25629
25618
  }
25630
- ], E6 = "5.7.0", z6 = 30, R6 = 150, U6 = 0, _6 = [
25619
+ ], z6 = "5.7.0", E6 = 30, R6 = 150, U6 = 0, _6 = [
25631
25620
  {
25632
25621
  nm: "Nested Scene 2",
25633
25622
  id: "precomp_Shape Layer - SVG_29362cac-4bba-4dc9-85b7-4d7b9600fad1",
@@ -27492,15 +27481,15 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27492
27481
  ddd: T6,
27493
27482
  h: N6,
27494
27483
  w: A6,
27495
- meta: D6,
27496
- layers: F6,
27497
- v: E6,
27498
- fr: z6,
27484
+ meta: F6,
27485
+ layers: D6,
27486
+ v: z6,
27487
+ fr: E6,
27499
27488
  op: R6,
27500
27489
  ip: U6,
27501
27490
  assets: _6,
27502
27491
  slots: G6
27503
- }, Ei = ({ size: o = 96, loop: r = !0, style: t, className: n }) => /* @__PURE__ */ i(
27492
+ }, zi = ({ size: o = 96, loop: r = !0, style: t, className: n }) => /* @__PURE__ */ i(
27504
27493
  "div",
27505
27494
  {
27506
27495
  className: n,
@@ -27726,11 +27715,11 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27726
27715
  name: a,
27727
27716
  id: c
27728
27717
  }) => {
27729
- const [l, s] = Y(!1), [C, p] = Y(!1), d = c || `radio-${Math.random().toString(36).substr(2, 9)}`, w = o !== void 0 ? o : r !== void 0 ? r : !1, g = P(() => t ? w ? "disabledChecked" : "disabledUnchecked" : l ? w ? "checkedActive" : "uncheckedActive" : C ? w ? "checkedHover" : "uncheckedHover" : w ? "checked" : "unchecked", [t, w, l, C]), h = P(() => {
27718
+ const [l, s] = Y(!1), [C, p] = Y(!1), d = c || `radio-${Math.random().toString(36).substr(2, 9)}`, h = o !== void 0 ? o : r !== void 0 ? r : !1, w = P(() => t ? h ? "disabledChecked" : "disabledUnchecked" : l ? h ? "checkedActive" : "uncheckedActive" : C ? h ? "checkedHover" : "uncheckedHover" : h ? "checked" : "unchecked", [t, h, l, C]), f = P(() => {
27730
27719
  t || s(!0);
27731
- }, [t]), b = P(() => {
27720
+ }, [t]), g = P(() => {
27732
27721
  s(!1);
27733
- }, []), f = P(() => {
27722
+ }, []), M = P(() => {
27734
27723
  t || p(!0);
27735
27724
  }, [t]), v = P(() => {
27736
27725
  p(!1), s(!1);
@@ -27739,23 +27728,23 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27739
27728
  t || (j.preventDefault(), n && n({
27740
27729
  target: {
27741
27730
  value: e,
27742
- checked: !w,
27731
+ checked: !h,
27743
27732
  type: "radio",
27744
27733
  name: a
27745
27734
  }
27746
27735
  }));
27747
27736
  },
27748
- [t, n, e, w, a]
27737
+ [t, n, e, h, a]
27749
27738
  );
27750
27739
  return {
27751
- state: g(),
27740
+ state: w(),
27752
27741
  radioId: d,
27753
27742
  isActive: l,
27754
27743
  isHovered: C,
27755
27744
  handlers: {
27756
- handleMouseDown: h,
27757
- handleMouseUp: b,
27758
- handleMouseEnter: f,
27745
+ handleMouseDown: f,
27746
+ handleMouseUp: g,
27747
+ handleMouseEnter: M,
27759
27748
  handleMouseLeave: v,
27760
27749
  handleClick: H
27761
27750
  }
@@ -27773,7 +27762,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27773
27762
  defaultChecked: C,
27774
27763
  ...p
27775
27764
  }) => {
27776
- const d = l !== void 0, L = d ? l : C !== void 0 ? C : !1, { state: w, radioId: g, handlers: h } = K6({
27765
+ const d = l !== void 0, L = d ? l : C !== void 0 ? C : !1, { state: h, radioId: w, handlers: f } = K6({
27777
27766
  checked: l,
27778
27767
  defaultChecked: C,
27779
27768
  disabled: n,
@@ -27787,7 +27776,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27787
27776
  "input",
27788
27777
  {
27789
27778
  type: "radio",
27790
- id: g,
27779
+ id: w,
27791
27780
  checked: d ? l : void 0,
27792
27781
  defaultChecked: !d && C !== void 0 ? C : void 0,
27793
27782
  onChange: s,
@@ -27799,12 +27788,12 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27799
27788
  /* @__PURE__ */ u(
27800
27789
  "label",
27801
27790
  {
27802
- htmlFor: g,
27803
- onClick: h.handleClick,
27804
- onMouseDown: h.handleMouseDown,
27805
- onMouseUp: h.handleMouseUp,
27806
- onMouseEnter: h.handleMouseEnter,
27807
- onMouseLeave: h.handleMouseLeave,
27791
+ htmlFor: w,
27792
+ onClick: f.handleClick,
27793
+ onMouseDown: f.handleMouseDown,
27794
+ onMouseUp: f.handleMouseUp,
27795
+ onMouseEnter: f.handleMouseEnter,
27796
+ onMouseLeave: f.handleMouseLeave,
27808
27797
  className: _(
27809
27798
  "ui-relative ui-inline-flex ui-cursor-pointer ui-items-center",
27810
27799
  n && "ui-cursor-not-allowed"
@@ -27816,7 +27805,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27816
27805
  className: J6({
27817
27806
  size: r,
27818
27807
  color: t,
27819
- state: w
27808
+ state: h
27820
27809
  }),
27821
27810
  children: L && /* @__PURE__ */ i(
27822
27811
  "div",
@@ -27851,7 +27840,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27851
27840
  selectedValue: a,
27852
27841
  handleChange: c
27853
27842
  };
27854
- }, zi = ({
27843
+ }, Ei = ({
27855
27844
  options: o,
27856
27845
  value: r,
27857
27846
  onChange: t,
@@ -28093,31 +28082,31 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28093
28082
  onStepChange: p,
28094
28083
  withScroll: d = !0,
28095
28084
  vertical: L = !1,
28096
- stepClickable: w = !1
28085
+ stepClickable: h = !1
28097
28086
  }) => {
28098
- const { currentStep: g, getColorClasses: h, handleStepClick: b, getStepStatus: f } = ni({
28087
+ const { currentStep: w, getColorClasses: f, handleStepClick: g, getStepStatus: M } = ni({
28099
28088
  steps: o,
28100
28089
  currentStep: s,
28101
28090
  onClickStep: C,
28102
28091
  onStepChange: p
28103
- }), v = h(r || "blue");
28092
+ }), v = f(r || "blue");
28104
28093
  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" : ""}`} ${ti({ color: r, size: t, className: n })}`, children: o.map((j, V) => {
28105
- const y = f(V), B = V === o.length - 1;
28094
+ const O = M(V), $ = V === o.length - 1;
28106
28095
  return /* @__PURE__ */ i(
28107
28096
  ri,
28108
28097
  {
28109
28098
  step: j,
28110
28099
  stepIndex: V,
28111
- status: y,
28100
+ status: O,
28112
28101
  colorClasses: v,
28113
- isLast: B,
28114
- onStepClick: b,
28102
+ isLast: $,
28103
+ onStepClick: g,
28115
28104
  classNameStep: e,
28116
28105
  classNameStepLabel: a,
28117
28106
  classNameStepIcon: c,
28118
28107
  classNameStepNumber: l,
28119
28108
  vertical: L,
28120
- stepClickable: w
28109
+ stepClickable: h
28121
28110
  },
28122
28111
  V
28123
28112
  );
@@ -28132,7 +28121,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28132
28121
  materialLight: B2,
28133
28122
  prism: Z2,
28134
28123
  dark: I2
28135
- }, F1 = (o) => {
28124
+ }, D1 = (o) => {
28136
28125
  if (typeof o == "string") return o;
28137
28126
  if (f1.isValidElement(o)) {
28138
28127
  const r = o, { type: t, props: n } = r;
@@ -28161,8 +28150,8 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28161
28150
  }
28162
28151
  }).join(" ");
28163
28152
  let c = "";
28164
- n.children && (Array.isArray(n.children) ? c = n.children.filter((C) => C != null).map((C) => F1(C)).join(`
28165
- `) : c = F1(n.children));
28153
+ n.children && (Array.isArray(n.children) ? c = n.children.filter((C) => C != null).map((C) => D1(C)).join(`
28154
+ `) : c = D1(n.children));
28166
28155
  const l = a ? ` ${a}` : "";
28167
28156
  if (!c)
28168
28157
  return `<${e}${l} />`;
@@ -28173,7 +28162,7 @@ const k6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28173
28162
  ${s}
28174
28163
  </${e}>`;
28175
28164
  }
28176
- return Array.isArray(o) ? o.map((r) => F1(r)).join(`
28165
+ return Array.isArray(o) ? o.map((r) => D1(r)).join(`
28177
28166
  `) : String(o);
28178
28167
  }, ui = ({ children: o }) => /* @__PURE__ */ i("h2", { className: "ui-text-lg ui-font-semibold ui-text-gray-900", children: o }), ai = ({ children: o }) => /* @__PURE__ */ i("p", { className: "ui-text-xs ui-text-gray-500", children: o }), li = ({ children: o, className: r = "" }) => /* @__PURE__ */ i("div", { className: `ui-flex ui-w-full ui-items-center ui-gap-2 ${r}`, children: o }), di = ({
28179
28168
  children: o,
@@ -28182,7 +28171,7 @@ ${s}
28182
28171
  customStyle: n = {},
28183
28172
  theme: e = "prism"
28184
28173
  }) => {
28185
- const a = typeof o == "string" ? o : F1(o), c = () => {
28174
+ const a = typeof o == "string" ? o : D1(o), c = () => {
28186
28175
  const s = [
28187
28176
  "dracula",
28188
28177
  "tomorrow",
@@ -28245,17 +28234,17 @@ const si = {
28245
28234
  let w1 = { ...si };
28246
28235
  const J1 = [];
28247
28236
  let ci = 0;
28248
- const D1 = /* @__PURE__ */ new Map(), n0 = {
28237
+ const F1 = /* @__PURE__ */ new Map(), n0 = {
28249
28238
  show(o, r = "green", t = {}) {
28250
28239
  const n = Date.now() + ++ci;
28251
28240
  let e, a;
28252
28241
  typeof o == "string" ? (e = o, a = t) : (e = o.message, a = { ...t, ...o });
28253
- const c = `${e}-${r}`, l = Date.now(), s = D1.get(c);
28242
+ const c = `${e}-${r}`, l = Date.now(), s = F1.get(c);
28254
28243
  if (s && l - s < 100)
28255
28244
  return n;
28256
- D1.set(c, l);
28257
- for (const [p, d] of D1.entries())
28258
- l - d > 1e3 && D1.delete(p);
28245
+ F1.set(c, l);
28246
+ for (const [p, d] of F1.entries())
28247
+ l - d > 1e3 && F1.delete(p);
28259
28248
  const C = {
28260
28249
  id: n,
28261
28250
  message: e,
@@ -28313,7 +28302,7 @@ const D1 = /* @__PURE__ */ new Map(), n0 = {
28313
28302
  }
28314
28303
  }, pi = () => {
28315
28304
  const [o, r] = Y([]), t = o1(/* @__PURE__ */ new Map()), n = o1(null);
28316
- return X(() => {
28305
+ return K(() => {
28317
28306
  const a = n0.getListeners();
28318
28307
  if (n.current) {
28319
28308
  const l = a.indexOf(n.current);
@@ -28364,7 +28353,7 @@ const D1 = /* @__PURE__ */ new Map(), n0 = {
28364
28353
  })[r]
28365
28354
  }), Li = ({ toastItem: o }) => {
28366
28355
  const [r, t] = Y(!0);
28367
- X(() => {
28356
+ K(() => {
28368
28357
  o.isLeaving && setTimeout(() => {
28369
28358
  t(!1);
28370
28359
  }, 300);
@@ -28435,18 +28424,18 @@ export {
28435
28424
  H9 as ListItemWithCheckbox,
28436
28425
  Pi as ListSeparator,
28437
28426
  Ai as Logo,
28438
- Di as Modal,
28427
+ Fi as Modal,
28439
28428
  y6 as ModalProvider,
28440
28429
  W5 as Month,
28441
28430
  g9 as MonthGrid,
28442
28431
  d6 as MultipleCalendarsHeader,
28443
- z1 as NavigationButton,
28444
- Fi as Pagination,
28432
+ E1 as NavigationButton,
28433
+ Di as Pagination,
28445
28434
  O9 as Popup,
28446
28435
  Q6 as RadioButton,
28447
- zi as RadioButtonGroup,
28448
- E1 as Separator,
28449
- Ei as Spinner,
28436
+ Ei as RadioButtonGroup,
28437
+ z1 as Separator,
28438
+ zi as Spinner,
28450
28439
  oi as StepConnector,
28451
28440
  ei as StepIcon,
28452
28441
  ri as StepItem,