@imj_media/ui 1.0.65 → 1.0.67

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,9 +1,9 @@
1
1
  import { jsx as i, jsxs as u, Fragment as $1 } from "react/jsx-runtime";
2
- import M1, { useState as Y, useRef as o1, useEffect as Q, useCallback as P, useMemo as x1, useImperativeHandle as o0, forwardRef as G1, useId as t9, createContext as T9, useContext as A9 } from "react";
2
+ import M1, { useState as Y, useRef as o1, useEffect as Q, useCallback as T, useMemo as x1, useImperativeHandle as r0, forwardRef as G1, useId as t9, createContext as T9, useContext as A9 } from "react";
3
3
  import { clsx as F9 } from "clsx";
4
4
  import { twMerge as N9 } from "tailwind-merge";
5
- import { library as r0 } from "@fortawesome/fontawesome-svg-core";
6
- import { faUser as t0, faHome as u0, faBell as a0, faEdit as l0, faSave as d0, faDownload as s0, faSearch as c0, faTrash as p0, faEye as C0, faHeart as L0, faStar as h0, faPlus as w0, faMinus as g0, faCheck as f0, faTimes as m0, faArrowLeft as M0, faArrowRight as x0, faArrowUp as b0, faArrowDown as v0, faBars as j0, faCog as V0, faInfo as H0, faExclamationTriangle as y0, faExclamationCircle as O0, faCheckCircle as k0, faSpinner as I0, faSync as Z0, faFilter as B0, faSort as S0, faCalendar as $0, faClock as P0, faMapMarkerAlt as T0, faFolder as A0, faCircle as F0, faSquare as N0, faList as D0, faTasks as z0, faTools as E0, faShapes as R0, faPalette as U0, faTachometerAlt as _0, faDesktop as G0, faCircleCheck as q0 } from "@fortawesome/pro-regular-svg-icons";
5
+ import { library as t0 } from "@fortawesome/fontawesome-svg-core";
6
+ import { faUser as u0, faHome as a0, faBell as l0, faEdit as d0, faSave as s0, faDownload as c0, faSearch as p0, faTrash as C0, faEye as L0, faHeart as h0, faStar as w0, faPlus as g0, faMinus as f0, faCheck as m0, faTimes as M0, faArrowLeft as x0, faArrowRight as b0, faArrowUp as v0, faArrowDown as j0, faBars as V0, faCog as H0, faInfo as y0, faExclamationTriangle as O0, faExclamationCircle as k0, faCheckCircle as I0, faSpinner as Z0, faSync as B0, faFilter as S0, faSort as $0, faCalendar as P0, faClock as T0, faMapMarkerAlt as A0, faFolder as F0, faCircle as N0, faSquare as D0, faList as z0, faTasks as E0, faTools as R0, faShapes as U0, faPalette as _0, faTachometerAlt as G0, faDesktop as q0, faCircleCheck as Y0 } from "@fortawesome/pro-regular-svg-icons";
7
7
  import { faUser as D9, faHome as z9, faBell as E9, faEdit as R9, faSave as U9, faDownload as _9, faSearch as G9, faTrash as q9, faEye as Y9, faHeart as J9, faStar as X9, faPlus as K9, faMinus as Q9, faCheck as W9, faTimes as n2, faArrowLeft as e2, faArrowRight as i2, faArrowUp as o2, faArrowDown as r2, faBars as t2, faCog as u2, faInfo as a2, faExclamationTriangle as l2, faExclamationCircle as d2, faCheckCircle as s2, faSpinner as c2, faSync as p2, faFilter as C2, faSort as L2, faCalendar as h2, faClock as w2, faMapMarkerAlt as g2, faFolder as f2, faCircle as m2, faSquare as M2, faList as x2, faTasks as b2, faTools as v2, faShapes as j2, faPalette as V2, faDashboard as H2, faDesktop as y2, faCircleCheck as O2 } from "@fortawesome/pro-solid-svg-icons";
8
8
  import { faFacebook as u9, faInstagram as a9, faTwitter as l9, faWhatsapp as Q1, faLinkedin as d9, faYoutube as s9, faGithub as c9, faGoogle as p9, faApple as C9, faMicrosoft as L9 } from "@fortawesome/free-brands-svg-icons";
9
9
  import { FontAwesomeIcon as k2 } from "@fortawesome/react-fontawesome";
@@ -15,8 +15,7 @@ import { dark as B2, prism as S2, materialLight as $2, materialDark as P2, atomD
15
15
  function U(...o) {
16
16
  return N9(F9(o));
17
17
  }
18
- r0.add(
19
- t0,
18
+ t0.add(
20
19
  u0,
21
20
  a0,
22
21
  l0,
@@ -56,14 +55,15 @@ r0.add(
56
55
  E0,
57
56
  R0,
58
57
  U0,
59
- // Reemplazar faColor con faPalette
60
58
  _0,
59
+ // Reemplazar faColor con faPalette
61
60
  G0,
61
+ q0,
62
62
  // Reemplazar faScreen con faDesktop
63
- q0
63
+ Y0
64
64
  // Reemplazar faStatus con faCircleCheck
65
65
  );
66
- r0.add(
66
+ t0.add(
67
67
  D9,
68
68
  z9,
69
69
  E9,
@@ -108,7 +108,7 @@ r0.add(
108
108
  y2,
109
109
  O2
110
110
  );
111
- r0.add(
111
+ t0.add(
112
112
  u9,
113
113
  a9,
114
114
  l9,
@@ -122,49 +122,49 @@ r0.add(
122
122
  );
123
123
  const z2 = {
124
124
  // Solo mapear iconos básicos que sabemos que existen en Font Awesome Pro
125
- OutlineUserIcon: t0,
126
- OutlineHomeIcon: u0,
127
- OutlineBellIcon: a0,
128
- OutlineEditIcon: l0,
129
- OutlineSaveIcon: d0,
130
- OutlineDownloadIcon: s0,
131
- OutlineSearchIcon: c0,
132
- OutlineTrashIcon: p0,
133
- OutlineEyeIcon: C0,
134
- OutlineHeartIcon: L0,
135
- OutlineStarIcon: h0,
136
- OutlinePlusIcon: w0,
137
- OutlineMinusIcon: g0,
138
- OutlineCheckIcon: f0,
139
- OutlineTimesIcon: m0,
140
- OutlineArrowLeftIcon: M0,
141
- OutlineArrowRightIcon: x0,
142
- OutlineArrowUpIcon: b0,
143
- OutlineArrowDownIcon: v0,
144
- OutlineBarsIcon: j0,
145
- OutlineCogIcon: V0,
146
- OutlineInfoIcon: H0,
147
- OutlineExclamationTriangleIcon: y0,
148
- OutlineExclamationCircleIcon: O0,
149
- OutlineCheckCircleIcon: k0,
150
- OutlineSpinnerIcon: I0,
151
- OutlineSyncIcon: Z0,
152
- OutlineFilterIcon: B0,
153
- OutlineSortIcon: S0,
154
- OutlineCalendarIcon: $0,
155
- OutlineClockIcon: P0,
156
- OutlineMapMarkerAltIcon: T0,
157
- OutlineFolderIcon: A0,
158
- OutlineCircleIcon: F0,
159
- OutlineSquareIcon: N0,
160
- OutlineListIcon: D0,
161
- OutlineTasksIcon: z0,
162
- OutlineToolsIcon: E0,
163
- OutlineShapesIcon: R0,
164
- OutlineColorIcon: U0,
165
- OutlineDashboardIcon: _0,
166
- OutlineScreenIcon: G0,
167
- OutlineStatusIcon: q0
125
+ OutlineUserIcon: u0,
126
+ OutlineHomeIcon: a0,
127
+ OutlineBellIcon: l0,
128
+ OutlineEditIcon: d0,
129
+ OutlineSaveIcon: s0,
130
+ OutlineDownloadIcon: c0,
131
+ OutlineSearchIcon: p0,
132
+ OutlineTrashIcon: C0,
133
+ OutlineEyeIcon: L0,
134
+ OutlineHeartIcon: h0,
135
+ OutlineStarIcon: w0,
136
+ OutlinePlusIcon: g0,
137
+ OutlineMinusIcon: f0,
138
+ OutlineCheckIcon: m0,
139
+ OutlineTimesIcon: M0,
140
+ OutlineArrowLeftIcon: x0,
141
+ OutlineArrowRightIcon: b0,
142
+ OutlineArrowUpIcon: v0,
143
+ OutlineArrowDownIcon: j0,
144
+ OutlineBarsIcon: V0,
145
+ OutlineCogIcon: H0,
146
+ OutlineInfoIcon: y0,
147
+ OutlineExclamationTriangleIcon: O0,
148
+ OutlineExclamationCircleIcon: k0,
149
+ OutlineCheckCircleIcon: I0,
150
+ OutlineSpinnerIcon: Z0,
151
+ OutlineSyncIcon: B0,
152
+ OutlineFilterIcon: S0,
153
+ OutlineSortIcon: $0,
154
+ OutlineCalendarIcon: P0,
155
+ OutlineClockIcon: T0,
156
+ OutlineMapMarkerAltIcon: A0,
157
+ OutlineFolderIcon: F0,
158
+ OutlineCircleIcon: N0,
159
+ OutlineSquareIcon: D0,
160
+ OutlineListIcon: z0,
161
+ OutlineTasksIcon: E0,
162
+ OutlineToolsIcon: R0,
163
+ OutlineShapesIcon: U0,
164
+ OutlineColorIcon: _0,
165
+ OutlineDashboardIcon: G0,
166
+ OutlineScreenIcon: q0,
167
+ OutlineStatusIcon: Y0
168
168
  }, E2 = {
169
169
  // Iconos de marcas (Brands)
170
170
  FillFacebookIcon: u9,
@@ -180,49 +180,49 @@ const z2 = {
180
180
  FillTelegramIcon: Q1,
181
181
  // Usar WhatsApp como fallback
182
182
  // Iconos sólidos (Solid)
183
- FillUserIcon: t0,
184
- FillHomeIcon: u0,
185
- FillBellIcon: a0,
186
- FillEditIcon: l0,
187
- FillSaveIcon: d0,
188
- FillDownloadIcon: s0,
189
- FillSearchIcon: c0,
190
- FillTrashIcon: p0,
191
- FillEyeIcon: C0,
192
- FillHeartIcon: L0,
193
- FillStarIcon: h0,
194
- FillPlusIcon: w0,
195
- FillMinusIcon: g0,
196
- FillCheckIcon: f0,
197
- FillTimesIcon: m0,
198
- FillArrowLeftIcon: M0,
199
- FillArrowRightIcon: x0,
200
- FillArrowUpIcon: b0,
201
- FillArrowDownIcon: v0,
202
- FillBarsIcon: j0,
203
- FillCogIcon: V0,
204
- FillInfoIcon: H0,
205
- FillExclamationTriangleIcon: y0,
206
- FillExclamationCircleIcon: O0,
207
- FillCheckCircleIcon: k0,
208
- FillSpinnerIcon: I0,
209
- FillSyncIcon: Z0,
210
- FillFilterIcon: B0,
211
- FillSortIcon: S0,
212
- FillCalendarIcon: $0,
213
- FillClockIcon: P0,
214
- FillMapMarkerAltIcon: T0,
215
- FillFolderIcon: A0,
216
- FillCircleIcon: F0,
217
- FillSquareIcon: N0,
218
- FillListIcon: D0,
219
- FillTasksIcon: z0,
220
- FillToolsIcon: E0,
221
- FillShapesIcon: R0,
222
- FillColorIcon: U0,
223
- FillDashboardIcon: _0,
224
- FillScreenIcon: G0,
225
- FillStatusIcon: q0,
183
+ FillUserIcon: u0,
184
+ FillHomeIcon: a0,
185
+ FillBellIcon: l0,
186
+ FillEditIcon: d0,
187
+ FillSaveIcon: s0,
188
+ FillDownloadIcon: c0,
189
+ FillSearchIcon: p0,
190
+ FillTrashIcon: C0,
191
+ FillEyeIcon: L0,
192
+ FillHeartIcon: h0,
193
+ FillStarIcon: w0,
194
+ FillPlusIcon: g0,
195
+ FillMinusIcon: f0,
196
+ FillCheckIcon: m0,
197
+ FillTimesIcon: M0,
198
+ FillArrowLeftIcon: x0,
199
+ FillArrowRightIcon: b0,
200
+ FillArrowUpIcon: v0,
201
+ FillArrowDownIcon: j0,
202
+ FillBarsIcon: V0,
203
+ FillCogIcon: H0,
204
+ FillInfoIcon: y0,
205
+ FillExclamationTriangleIcon: O0,
206
+ FillExclamationCircleIcon: k0,
207
+ FillCheckCircleIcon: I0,
208
+ FillSpinnerIcon: Z0,
209
+ FillSyncIcon: B0,
210
+ FillFilterIcon: S0,
211
+ FillSortIcon: $0,
212
+ FillCalendarIcon: P0,
213
+ FillClockIcon: T0,
214
+ FillMapMarkerAltIcon: A0,
215
+ FillFolderIcon: F0,
216
+ FillCircleIcon: N0,
217
+ FillSquareIcon: D0,
218
+ FillListIcon: z0,
219
+ FillTasksIcon: E0,
220
+ FillToolsIcon: R0,
221
+ FillShapesIcon: U0,
222
+ FillColorIcon: _0,
223
+ FillDashboardIcon: G0,
224
+ FillScreenIcon: q0,
225
+ FillStatusIcon: Y0,
226
226
  // Iconos personalizados (mantener como null)
227
227
  FillLogoIcon: null
228
228
  // Mantener personalizado
@@ -270,7 +270,7 @@ const _2 = /* @__PURE__ */ new Set([
270
270
  function G2(o) {
271
271
  return _2.has(o);
272
272
  }
273
- const Y0 = {
273
+ const J0 = {
274
274
  none: 0,
275
275
  xs: 10,
276
276
  sm: 12,
@@ -304,17 +304,17 @@ function q2({
304
304
  background: a = !1,
305
305
  onClick: c
306
306
  }) {
307
- const l = Y0[r], s = t === "current" ? "currentColor" : t, C = s === "currentColor" ? "currentColor" : S1[s] || S1.blue, p = /* @__PURE__ */ i(
307
+ const d = J0[r], s = t === "current" ? "currentColor" : t, C = s === "currentColor" ? "currentColor" : S1[s] || S1.blue, p = /* @__PURE__ */ i(
308
308
  k2,
309
309
  {
310
310
  icon: o.icon,
311
311
  style: {
312
312
  color: C,
313
- fontSize: `${l}px`
313
+ fontSize: `${d}px`
314
314
  },
315
315
  className: e
316
316
  }
317
- ), d = (L) => {
317
+ ), l = (L) => {
318
318
  c && (L.stopPropagation(), c(L));
319
319
  };
320
320
  return c ? /* @__PURE__ */ i(
@@ -322,7 +322,7 @@ function q2({
322
322
  {
323
323
  role: "button",
324
324
  tabIndex: 0,
325
- onClick: d,
325
+ onClick: l,
326
326
  className: `ui-inline-block ui-cursor-pointer ui-rounded-full ui-p-1 ui-transition-all ui-duration-200 ${a ? "ui-rounded-full ui-bg-blue-50 ui-p-2" : ""} hover:ui-bg-[rgba(0,0,0,0.15)] hover:ui-shadow-[0_4px_12px_rgba(0,0,0,0.15)]`,
327
327
  style: {
328
328
  "--tw-shadow-color": C
@@ -339,10 +339,10 @@ function Y2({
339
339
  className: e,
340
340
  background: a = !1,
341
341
  svgProps: c = {},
342
- strokeWidth: l = 2,
342
+ strokeWidth: d = 2,
343
343
  onClick: s
344
344
  }) {
345
- const C = Y0[r];
345
+ const C = J0[r];
346
346
  return /* @__PURE__ */ u(
347
347
  "div",
348
348
  {
@@ -18586,7 +18586,7 @@ function Z5({
18586
18586
  className: e,
18587
18587
  background: a = !1,
18588
18588
  svgProps: c = {},
18589
- strokeWidth: l = 2,
18589
+ strokeWidth: d = 2,
18590
18590
  onClick: s
18591
18591
  }) {
18592
18592
  const p = {
@@ -18609,17 +18609,17 @@ function Z5({
18609
18609
  SquareOutlined: "SquareTextOutlined"
18610
18610
  // Usar SquareText como Square
18611
18611
  }[o] || o;
18612
- let d = W1[p];
18613
- if (d || (d = w9[p]), !d)
18612
+ let l = W1[p];
18613
+ if (l || (l = w9[p]), !l)
18614
18614
  return console.warn(`Icono legacy "${o}" no encontrado en ninguna variante`), null;
18615
- const L = d === W1[p] ? "outline" : "fill", h = Y0[r], f = S1[t === "current" && L === "fill" ? "white" : t] || S1.blue, g = S1[n] || S1.black, m = /* @__PURE__ */ i(
18616
- d,
18615
+ const L = l === W1[p] ? "outline" : "fill", h = J0[r], f = S1[t === "current" && L === "fill" ? "white" : t] || S1.blue, g = S1[n] || S1.black, m = /* @__PURE__ */ i(
18616
+ l,
18617
18617
  {
18618
18618
  width: h,
18619
18619
  height: h,
18620
18620
  ...L === "outline" ? { stroke: f, fill: "none" } : { fill: g, stroke: f },
18621
18621
  ...c,
18622
- strokeWidth: l
18622
+ strokeWidth: d
18623
18623
  }
18624
18624
  ), H = (j) => {
18625
18625
  s && (j.stopPropagation(), s(j));
@@ -18661,7 +18661,7 @@ function j1({
18661
18661
  className: e,
18662
18662
  background: a = !1,
18663
18663
  svgProps: c = {},
18664
- strokeWidth: l = 2,
18664
+ strokeWidth: d = 2,
18665
18665
  onClick: s
18666
18666
  }) {
18667
18667
  const C = U2(o);
@@ -18686,7 +18686,7 @@ function j1({
18686
18686
  className: e,
18687
18687
  background: a,
18688
18688
  svgProps: c,
18689
- strokeWidth: l,
18689
+ strokeWidth: d,
18690
18690
  onClick: s
18691
18691
  }
18692
18692
  ) : /* @__PURE__ */ i(
@@ -18699,7 +18699,7 @@ function j1({
18699
18699
  className: e,
18700
18700
  background: a,
18701
18701
  svgProps: c,
18702
- strokeWidth: l,
18702
+ strokeWidth: d,
18703
18703
  onClick: s
18704
18704
  }
18705
18705
  );
@@ -18711,7 +18711,7 @@ const B5 = ({
18711
18711
  className: n,
18712
18712
  ...e
18713
18713
  }) => {
18714
- const a = o && o.length > 0 && o.length < 3, c = !o || o.length === 0, l = a ? "custom" : c ? "badge" : "auto", s = C1(
18714
+ const a = o && o.length > 0 && o.length < 3, c = !o || o.length === 0, d = a ? "custom" : c ? "badge" : "auto", s = C1(
18715
18715
  `ui-img-badge ui-text-[10px] ui-border-1 ui-border-transparent ui-overflow-hidden ui-text-white ui-rounded-full ui-leading-none ui-inline-flex ui-items-center ui-justify-center ${!a && !c ? "ui-min-w-fit" : ""}`,
18716
18716
  {
18717
18717
  variants: {
@@ -18737,9 +18737,9 @@ const B5 = ({
18737
18737
  }
18738
18738
  }
18739
18739
  );
18740
- return /* @__PURE__ */ i("span", { className: U(s({ color: r, border: t, size: l }), n), ...e, children: o });
18740
+ return /* @__PURE__ */ i("span", { className: U(s({ color: r, border: t, size: d }), n), ...e, children: o });
18741
18741
  }, S5 = ({ slot: o, className: r, size: t, fallback: n = "" }) => {
18742
- const [e, a] = Y(!1), [c, l] = Y(!1), s = o1(null), p = C1("inner-avatar", {
18742
+ const [e, a] = Y(!1), [c, d] = Y(!1), s = o1(null), p = C1("inner-avatar", {
18743
18743
  variants: {
18744
18744
  size: {
18745
18745
  xs: "ui-w-2.5 ui-h-2.5 ui-text-[6px]",
@@ -18757,10 +18757,10 @@ const B5 = ({
18757
18757
  defaultVariants: {
18758
18758
  size: "lg"
18759
18759
  }
18760
- })({ size: t }), d = () => {
18761
- a(!0), l(!1), s.current && clearTimeout(s.current);
18760
+ })({ size: t }), l = () => {
18761
+ a(!0), d(!1), s.current && clearTimeout(s.current);
18762
18762
  }, L = () => {
18763
- l(!0), a(!1), s.current && clearTimeout(s.current);
18763
+ d(!0), a(!1), s.current && clearTimeout(s.current);
18764
18764
  }, h = (w) => {
18765
18765
  try {
18766
18766
  return new URL(w), !0;
@@ -18770,17 +18770,17 @@ const B5 = ({
18770
18770
  };
18771
18771
  return Q(() => {
18772
18772
  if (s.current && clearTimeout(s.current), !o || !h(o)) {
18773
- a(!0), l(!1);
18773
+ a(!0), d(!1);
18774
18774
  return;
18775
18775
  }
18776
- a(!1), l(!1), s.current = setTimeout(() => {
18776
+ a(!1), d(!1), s.current = setTimeout(() => {
18777
18777
  c || a(!0);
18778
18778
  }, 2e3);
18779
18779
  const w = new Image();
18780
18780
  return w.onload = () => {
18781
- l(!0), a(!1), s.current && clearTimeout(s.current);
18781
+ d(!0), a(!1), s.current && clearTimeout(s.current);
18782
18782
  }, w.onerror = () => {
18783
- a(!0), l(!1), s.current && clearTimeout(s.current);
18783
+ a(!0), d(!1), s.current && clearTimeout(s.current);
18784
18784
  }, w.src = o, () => {
18785
18785
  s.current && clearTimeout(s.current);
18786
18786
  };
@@ -18800,7 +18800,7 @@ const B5 = ({
18800
18800
  src: o,
18801
18801
  alt: "Visual",
18802
18802
  className: U(r, "ui-rounded-full ui-object-cover", p),
18803
- onError: d,
18803
+ onError: l,
18804
18804
  onLoad: L,
18805
18805
  loading: "lazy"
18806
18806
  }
@@ -19109,40 +19109,10 @@ const B5 = ({
19109
19109
  }
19110
19110
  });
19111
19111
  return /* @__PURE__ */ i("span", { className: e({ size: r }), role: "img", "aria-label": o, children: n });
19112
- }, b1 = ({
19113
- slot: o,
19114
- className: r,
19115
- colorIcon: t,
19116
- size: n,
19117
- defaultSizeIcon: e = !0,
19118
- onClick: a,
19119
- strokeWidth: c,
19120
- fallback: l
19121
- }) => {
19122
- const s = typeof o == "string" && o in g9;
19123
- return typeof o == "string" && (o in W1 || o in w9) ? /* @__PURE__ */ i(
19124
- j1,
19125
- {
19126
- strokeWidth: c,
19127
- name: o,
19128
- size: e ? "lg" : n,
19129
- color: t,
19130
- className: r,
19131
- onClick: a
19132
- }
19133
- ) : s ? /* @__PURE__ */ i($5, { name: o, size: e ? "sm" : n, className: r }) : typeof o == "string" ? /* @__PURE__ */ i(
19134
- S5,
19135
- {
19136
- slot: o,
19137
- className: r,
19138
- size: e ? "lg" : n,
19139
- fallback: l
19140
- }
19141
- ) : null;
19142
19112
  }, P5 = (o = "top", r = "center", t = !1, n = 0, e = !1) => {
19143
- const [a, c] = Y(!1), [l, s] = Y({ top: 0, left: 0 }), [C, p] = Y({ width: 0, height: 0 }), [d, L] = Y(o), h = o1(null), w = o1(null), f = o1(null), g = o1(null), b = o1(null), m = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), y = P(() => {
19113
+ const [a, c] = Y(!1), [d, s] = Y({ top: 0, left: 0 }), [C, p] = Y({ width: 0, height: 0 }), [l, L] = Y(o), h = o1(null), w = o1(null), f = o1(null), g = o1(null), b = o1(null), m = o1(null), H = o1(null), j = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), y = T(() => {
19144
19114
  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(() => {
19115
+ }, [o]), B = T(() => {
19146
19116
  if (!h.current || !a) return;
19147
19117
  const v = h.current.getBoundingClientRect(), x = { top: v.top, left: v.left };
19148
19118
  if (H.current) {
@@ -19153,64 +19123,64 @@ const B5 = ({
19153
19123
  }
19154
19124
  }
19155
19125
  H.current = x;
19156
- }, [a, y]), E = P(() => {
19157
- var J, G, R, X, n1, N;
19126
+ }, [a, y]), R = T(() => {
19127
+ var J, q, z, K, n1, N;
19158
19128
  if (!h.current || !w.current) return;
19159
19129
  const v = h.current.getBoundingClientRect(), x = w.current.getBoundingClientRect(), Z = 8;
19160
19130
  let O = 0, M = 0;
19161
19131
  if (t) {
19162
19132
  const $ = (J = f.current) == null ? void 0 : J.getBoundingClientRect();
19163
19133
  if (!$) return;
19164
- const k = v.top - $.top, F = v.left - $.left;
19134
+ const I = v.top - $.top, F = v.left - $.left;
19165
19135
  switch (o) {
19166
19136
  case "top":
19167
- O = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19137
+ O = I - x.height - Z, M = F + v.width / 2 - x.width / 2;
19168
19138
  break;
19169
19139
  case "bottom":
19170
- O = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19140
+ O = I + v.height + Z, M = F + v.width / 2 - x.width / 2;
19171
19141
  break;
19172
19142
  case "left":
19173
- O = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19143
+ O = I + v.height / 2 - x.height / 2, M = F - x.width - Z;
19174
19144
  break;
19175
19145
  case "right":
19176
- O = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19146
+ O = I + v.height / 2 - x.height / 2, M = F + v.width + Z;
19177
19147
  break;
19178
19148
  case "top-left":
19179
- O = k - x.height - Z, M = F;
19149
+ O = I - x.height - Z, M = F;
19180
19150
  break;
19181
19151
  case "top-right":
19182
- O = k - x.height - Z, M = F + v.width - x.width;
19152
+ O = I - x.height - Z, M = F + v.width - x.width;
19183
19153
  break;
19184
19154
  case "bottom-left":
19185
- O = k + v.height + Z, M = F;
19155
+ O = I + v.height + Z, M = F;
19186
19156
  break;
19187
19157
  case "bottom-right":
19188
- O = k + v.height + Z, M = F + v.width - x.width;
19158
+ O = I + v.height + Z, M = F + v.width - x.width;
19189
19159
  break;
19190
19160
  case "right-top":
19191
- O = k, M = F + v.width + Z;
19161
+ O = I, M = F + v.width + Z;
19192
19162
  break;
19193
19163
  case "right-bottom":
19194
- O = k + v.height - x.height, M = F + v.width + Z;
19164
+ O = I + v.height - x.height, M = F + v.width + Z;
19195
19165
  break;
19196
19166
  case "left-top":
19197
- O = k, M = F - x.width - Z;
19167
+ O = I, M = F - x.width - Z;
19198
19168
  break;
19199
19169
  case "left-bottom":
19200
- O = k + v.height - x.height, M = F - x.width - Z;
19170
+ O = I + v.height - x.height, M = F - x.width - Z;
19201
19171
  break;
19202
19172
  }
19203
19173
  O < 0 && (O = 0), M < 0 && (M = 0), (() => {
19204
- var T;
19205
- const a1 = (T = f.current) == null ? void 0 : T.getBoundingClientRect();
19174
+ var P;
19175
+ const a1 = (P = f.current) == null ? void 0 : P.getBoundingClientRect();
19206
19176
  if (!a1) return;
19207
19177
  let p1 = o, _ = !1;
19208
19178
  if (!(() => {
19209
19179
  switch (o) {
19210
19180
  case "top":
19211
- return k >= x.height + Z;
19181
+ return I >= x.height + Z;
19212
19182
  case "bottom":
19213
- return k + v.height + Z + x.height <= a1.height;
19183
+ return I + v.height + Z + x.height <= a1.height;
19214
19184
  case "left":
19215
19185
  return F >= x.width + Z;
19216
19186
  case "right":
@@ -19218,19 +19188,19 @@ const B5 = ({
19218
19188
  default:
19219
19189
  return !0;
19220
19190
  }
19221
- })() && (o === "top" ? k + v.height + Z + x.height <= a1.height && (p1 = "bottom", _ = !0) : o === "bottom" ? k >= x.height + Z && (p1 = "top", _ = !0) : o === "left" ? F + v.width + Z + x.width <= a1.width && (p1 = "right", _ = !0) : o === "right" && F >= x.width + Z && (p1 = "left", _ = !0), _)) {
19191
+ })() && (o === "top" ? I + v.height + Z + x.height <= a1.height && (p1 = "bottom", _ = !0) : o === "bottom" ? I >= x.height + Z && (p1 = "top", _ = !0) : o === "left" ? F + v.width + Z + x.width <= a1.width && (p1 = "right", _ = !0) : o === "right" && F >= x.width + Z && (p1 = "left", _ = !0), _)) {
19222
19192
  switch (p1) {
19223
19193
  case "top":
19224
- O = k - x.height - Z, M = F + v.width / 2 - x.width / 2;
19194
+ O = I - x.height - Z, M = F + v.width / 2 - x.width / 2;
19225
19195
  break;
19226
19196
  case "bottom":
19227
- O = k + v.height + Z, M = F + v.width / 2 - x.width / 2;
19197
+ O = I + v.height + Z, M = F + v.width / 2 - x.width / 2;
19228
19198
  break;
19229
19199
  case "left":
19230
- O = k + v.height / 2 - x.height / 2, M = F - x.width - Z;
19200
+ O = I + v.height / 2 - x.height / 2, M = F - x.width - Z;
19231
19201
  break;
19232
19202
  case "right":
19233
- O = k + v.height / 2 - x.height / 2, M = F + v.width + Z;
19203
+ O = I + v.height / 2 - x.height / 2, M = F + v.width + Z;
19234
19204
  break;
19235
19205
  }
19236
19206
  L(p1);
@@ -19279,14 +19249,14 @@ const B5 = ({
19279
19249
  switch (r) {
19280
19250
  case "start":
19281
19251
  if (t) {
19282
- const $ = (G = f.current) == null ? void 0 : G.getBoundingClientRect();
19252
+ const $ = (q = f.current) == null ? void 0 : q.getBoundingClientRect();
19283
19253
  $ && (M = v.left - $.left);
19284
19254
  } else
19285
19255
  M = v.left;
19286
19256
  break;
19287
19257
  case "end":
19288
19258
  if (t) {
19289
- const $ = (R = f.current) == null ? void 0 : R.getBoundingClientRect();
19259
+ const $ = (z = f.current) == null ? void 0 : z.getBoundingClientRect();
19290
19260
  $ && (M = v.right - $.left - x.width);
19291
19261
  } else
19292
19262
  M = v.right - x.width;
@@ -19296,7 +19266,7 @@ const B5 = ({
19296
19266
  switch (r) {
19297
19267
  case "start":
19298
19268
  if (t) {
19299
- const $ = (X = f.current) == null ? void 0 : X.getBoundingClientRect();
19269
+ const $ = (K = f.current) == null ? void 0 : K.getBoundingClientRect();
19300
19270
  $ && (O = v.top - $.top);
19301
19271
  } else
19302
19272
  O = v.top;
@@ -19313,31 +19283,31 @@ const B5 = ({
19313
19283
  const $ = (N = f.current) == null ? void 0 : N.getBoundingClientRect();
19314
19284
  $ && (M < 8 && (M = 8), M + x.width > $.width - 8 && (M = $.width - x.width - 8), O < 8 && (O = 8), O + x.height > $.height - 8 && (O = $.height - x.height - 8));
19315
19285
  } else {
19316
- const $ = window.innerWidth, k = window.innerHeight, F = 8;
19317
- M < F && (M = F), M + x.width > $ - F && (M = $ - x.width - F), O < F && (O = F), O + x.height > k - F && (O = k - x.height - F);
19286
+ const $ = window.innerWidth, I = window.innerHeight, F = 8;
19287
+ M < F && (M = F), M + x.width > $ - F && (M = $ - x.width - F), O < F && (O = F), O + x.height > I - F && (O = I - x.height - F);
19318
19288
  }
19319
19289
  if (isNaN(O) || isNaN(M) || O < 0 || M < 0) {
19320
19290
  y();
19321
19291
  return;
19322
19292
  }
19323
- const I = Date.now();
19324
- if (I - V.current.lastTime < 100) {
19293
+ const k = Date.now();
19294
+ if (k - V.current.lastTime < 100) {
19325
19295
  if (V.current.count++, V.current.count > 5) {
19326
19296
  y();
19327
19297
  return;
19328
19298
  }
19329
19299
  } else
19330
19300
  V.current.count = 0;
19331
- V.current.lastTime = I, j.current = { top: O, left: M }, s({ top: O, left: M });
19301
+ V.current.lastTime = k, j.current = { top: O, left: M }, s({ top: O, left: M });
19332
19302
  }, [o, r, t, y]);
19333
19303
  Q(() => (a && w.current ? (requestAnimationFrame(() => {
19334
- if (E(), h.current) {
19304
+ if (R(), h.current) {
19335
19305
  const v = h.current.getBoundingClientRect();
19336
19306
  H.current = { top: v.top, left: v.left };
19337
19307
  }
19338
19308
  }), m.current = setInterval(B, 100)) : m.current && (clearInterval(m.current), m.current = null), () => {
19339
19309
  m.current && (clearInterval(m.current), m.current = null);
19340
- }), [a, E, B]), Q(() => {
19310
+ }), [a, R, B]), Q(() => {
19341
19311
  if (h.current)
19342
19312
  return b.current = new IntersectionObserver(
19343
19313
  (v) => {
@@ -19363,26 +19333,26 @@ const B5 = ({
19363
19333
  window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", x);
19364
19334
  };
19365
19335
  }, [a, t, y]);
19366
- const A = P(() => {
19336
+ const A = T(() => {
19367
19337
  e || (g.current && (clearTimeout(g.current), g.current = null), n > 0 ? g.current = setTimeout(() => {
19368
19338
  c(!0);
19369
19339
  }, n) : c(!0));
19370
- }, [e, n]), S = P(() => {
19340
+ }, [e, n]), S = T(() => {
19371
19341
  g.current && (clearTimeout(g.current), g.current = null), c(!1), s({ top: 0, left: 0 });
19372
19342
  }, []);
19373
19343
  return Q(() => () => {
19374
19344
  g.current && clearTimeout(g.current), m.current && clearInterval(m.current);
19375
19345
  }, []), {
19376
19346
  isVisible: a,
19377
- coords: l,
19347
+ coords: d,
19378
19348
  tooltipDimensions: C,
19379
- adjustedPosition: d,
19349
+ adjustedPosition: l,
19380
19350
  triggerRef: h,
19381
19351
  tooltipRef: w,
19382
19352
  containerRef: f,
19383
19353
  handleMouseEnter: A,
19384
19354
  handleMouseLeave: S,
19385
- calculatePosition: E
19355
+ calculatePosition: R
19386
19356
  };
19387
19357
  }, T5 = {
19388
19358
  white: { bg: "ui-bg-white", text: "ui-text-gray-900", arrow: "var(--ui-color-white)" },
@@ -19585,11 +19555,11 @@ const B5 = ({
19585
19555
  color: e = "neutral",
19586
19556
  id: a = `tooltip-${Math.random().toString(36).substring(2, 9)}`,
19587
19557
  delay: c = 0,
19588
- disabled: l = !1,
19558
+ disabled: d = !1,
19589
19559
  className: s = "",
19590
19560
  fullWidth: C = !1,
19591
19561
  style: p,
19592
- arrowClassName: d,
19562
+ arrowClassName: l,
19593
19563
  absolute: L = !1,
19594
19564
  ...h
19595
19565
  }) => {
@@ -19602,8 +19572,8 @@ const B5 = ({
19602
19572
  containerRef: H,
19603
19573
  handleMouseEnter: j,
19604
19574
  handleMouseLeave: V
19605
- } = P5(t, n, L, c, l), y = N5(e, L), B = A5(g, e);
19606
- return /* @__PURE__ */ u("div", { ref: H, className: L ? "ui-relative" : "", children: [
19575
+ } = P5(t, n, L, c, d), y = N5(e, L), B = A5(g, e);
19576
+ return /* @__PURE__ */ u("div", { ref: H, className: L ? "ui-relative" : "ui-contents", children: [
19607
19577
  /* @__PURE__ */ i(
19608
19578
  "div",
19609
19579
  {
@@ -19637,7 +19607,7 @@ const B5 = ({
19637
19607
  ...h,
19638
19608
  children: [
19639
19609
  r,
19640
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", d), style: B })
19610
+ /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: B })
19641
19611
  ]
19642
19612
  }
19643
19613
  ) : D1(
@@ -19662,14 +19632,14 @@ const B5 = ({
19662
19632
  ...h,
19663
19633
  children: [
19664
19634
  r,
19665
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", d), style: B })
19635
+ /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: B })
19666
19636
  ]
19667
19637
  }
19668
19638
  ),
19669
19639
  document.body
19670
19640
  ))
19671
19641
  ] });
19672
- }, e9 = ({
19642
+ }, n0 = ({
19673
19643
  children: o,
19674
19644
  label: r,
19675
19645
  position: t = "top",
@@ -19677,13 +19647,13 @@ const B5 = ({
19677
19647
  color: e = "neutral",
19678
19648
  id: a = `tooltip-${Math.random().toString(36).substring(2, 9)}`,
19679
19649
  delay: c = 0,
19680
- disabled: l = !1,
19650
+ disabled: d = !1,
19681
19651
  className: s = "",
19682
19652
  style: C,
19683
19653
  arrowClassName: p,
19684
- absolute: d = !1,
19654
+ absolute: l = !1,
19685
19655
  ...L
19686
- }) => l || !r ? o : /* @__PURE__ */ i(
19656
+ }) => d || !r ? o : /* @__PURE__ */ i(
19687
19657
  D5,
19688
19658
  {
19689
19659
  ...L,
@@ -19694,13 +19664,60 @@ const B5 = ({
19694
19664
  color: e,
19695
19665
  id: a,
19696
19666
  delay: c,
19697
- disabled: l,
19667
+ disabled: d,
19698
19668
  className: s,
19699
19669
  style: C,
19700
19670
  arrowClassName: p,
19701
- absolute: d
19671
+ absolute: l
19702
19672
  }
19703
- ), w1 = (o, r, t, n) => {
19673
+ ), b1 = ({
19674
+ slot: o,
19675
+ className: r,
19676
+ colorIcon: t,
19677
+ size: n,
19678
+ defaultSizeIcon: e = !0,
19679
+ onClick: a,
19680
+ strokeWidth: c,
19681
+ fallback: d,
19682
+ tooltip: s,
19683
+ tooltipPosition: C = "top",
19684
+ tooltipAlignment: p = "center",
19685
+ tooltipColor: l = "neutral",
19686
+ tooltipDelay: L = 0,
19687
+ tooltipDisabled: h = !1
19688
+ }) => {
19689
+ const w = typeof o == "string" && o in g9, f = typeof o == "string" && (o in W1 || o in w9), g = () => f ? /* @__PURE__ */ i(
19690
+ j1,
19691
+ {
19692
+ strokeWidth: c,
19693
+ name: o,
19694
+ size: e ? "lg" : n,
19695
+ color: t,
19696
+ className: r,
19697
+ onClick: a
19698
+ }
19699
+ ) : w ? /* @__PURE__ */ i($5, { name: o, size: e ? "sm" : n, className: r }) : typeof o == "string" ? /* @__PURE__ */ i(
19700
+ S5,
19701
+ {
19702
+ slot: o,
19703
+ className: r,
19704
+ size: e ? "lg" : n,
19705
+ fallback: d
19706
+ }
19707
+ ) : null;
19708
+ return s ? /* @__PURE__ */ i(
19709
+ n0,
19710
+ {
19711
+ label: s,
19712
+ position: C,
19713
+ alignment: p,
19714
+ color: l,
19715
+ delay: L,
19716
+ disabled: h,
19717
+ children: g()
19718
+ }
19719
+ ) : g();
19720
+ }, w1 = (o, r, t, n) => {
19704
19721
  const e = o !== "button", a = {
19705
19722
  button: {
19706
19723
  blue: `ui-bg-blue-500 ui-text-white ${t ?? e ? "ui-border-white" : "ui-border-transparent"} ${r ? "enabled:hover:ui-bg-blue-700 active:enabled:ui-border-blue-300" : ""} disabled:ui-bg-blue-100 disabled:ui-cursor-not-allowed`,
@@ -19777,11 +19794,11 @@ const B5 = ({
19777
19794
  slotRight: e,
19778
19795
  variant: a = "button",
19779
19796
  badgeColor: c,
19780
- badgeLabel: l,
19797
+ badgeLabel: d,
19781
19798
  badgeBorder: s,
19782
19799
  color: C,
19783
19800
  rounded: p,
19784
- children: d,
19801
+ children: l,
19785
19802
  textColor: L,
19786
19803
  clickable: h = !0,
19787
19804
  icon: w,
@@ -19794,7 +19811,7 @@ const B5 = ({
19794
19811
  onClickRightSlot: V,
19795
19812
  disabled: y,
19796
19813
  colorIcon: B,
19797
- showShadow: E = !1,
19814
+ showShadow: R = !1,
19798
19815
  borderable: A,
19799
19816
  iconSizeExtended: S = "none",
19800
19817
  defaultSizeIcon: v = !0,
@@ -19802,26 +19819,26 @@ const B5 = ({
19802
19819
  as: Z = "button",
19803
19820
  classNameId: O = "imj-ui-inner-button",
19804
19821
  tooltip: M = "",
19805
- tooltipPosition: I,
19806
- tooltipAlignment: z,
19822
+ tooltipPosition: k,
19823
+ tooltipAlignment: D,
19807
19824
  tooltipColor: J = "neutral",
19808
- tooltipDelay: G,
19809
- tooltipAbsolute: R,
19810
- classNameTooltip: X,
19825
+ tooltipDelay: q,
19826
+ tooltipAbsolute: z,
19827
+ classNameTooltip: K,
19811
19828
  stopPropagation: n1 = !0,
19812
19829
  pointer: N = !1,
19813
19830
  ref: $,
19814
- onClick: k,
19831
+ onClick: I,
19815
19832
  textAlign: F = "center",
19816
- whiteBackground: e1 = !0,
19833
+ whiteBackground: i1 = !0,
19817
19834
  strokeWidth: a1 = 2,
19818
19835
  transition: p1 = !0,
19819
19836
  ..._
19820
19837
  }) => {
19821
19838
  const u1 = {
19822
19839
  disabled: y
19823
- }, T = a === "icon", K = T ? !0 : v, i1 = T ? "xs" : g, W = (V1) => {
19824
- n1 && V1.stopPropagation(), k && k(V1);
19840
+ }, P = a === "icon", X = P ? !0 : v, e1 = P ? "xs" : g, W = (V1) => {
19841
+ n1 && V1.stopPropagation(), I && I(V1);
19825
19842
  }, l1 = C1("", {
19826
19843
  variants: {
19827
19844
  color: {
@@ -19848,7 +19865,7 @@ const B5 = ({
19848
19865
  textAlign: "left"
19849
19866
  }
19850
19867
  }), d1 = () => /* @__PURE__ */ u($1, { children: [
19851
- d && n && /* @__PURE__ */ i(
19868
+ l && n && /* @__PURE__ */ i(
19852
19869
  b1,
19853
19870
  {
19854
19871
  slot: n,
@@ -19856,11 +19873,11 @@ const B5 = ({
19856
19873
  colorIcon: B,
19857
19874
  className: o,
19858
19875
  onClick: j,
19859
- defaultSizeIcon: K,
19876
+ defaultSizeIcon: X,
19860
19877
  strokeWidth: a1
19861
19878
  }
19862
19879
  ),
19863
- d && /* @__PURE__ */ u(
19880
+ l && /* @__PURE__ */ u(
19864
19881
  "p",
19865
19882
  {
19866
19883
  className: U(
@@ -19869,23 +19886,23 @@ const B5 = ({
19869
19886
  l1({ color: L, textAlign: F })
19870
19887
  ),
19871
19888
  children: [
19872
- d,
19889
+ l,
19873
19890
  " "
19874
19891
  ]
19875
19892
  }
19876
19893
  ),
19877
- c && d && /* @__PURE__ */ i(B5, { color: c, label: l, border: s }),
19878
- !d && w && (typeof w == "string" ? /* @__PURE__ */ i(
19894
+ c && l && /* @__PURE__ */ i(B5, { color: c, label: d, border: s }),
19895
+ !l && w && (typeof w == "string" ? /* @__PURE__ */ i(
19879
19896
  j1,
19880
19897
  {
19881
19898
  strokeWidth: a1,
19882
19899
  name: w,
19883
19900
  size: a === "icon" ? g : S !== "none" ? S : g,
19884
19901
  color: B,
19885
- onClick: a === "icon" ? k || H : void 0
19902
+ onClick: a === "icon" ? I || H : void 0
19886
19903
  }
19887
19904
  ) : w),
19888
- d && e && /* @__PURE__ */ i(
19905
+ l && e && /* @__PURE__ */ i(
19889
19906
  b1,
19890
19907
  {
19891
19908
  slot: e,
@@ -19893,12 +19910,12 @@ const B5 = ({
19893
19910
  colorIcon: B,
19894
19911
  className: o,
19895
19912
  onClick: V,
19896
- defaultSizeIcon: K,
19913
+ defaultSizeIcon: X,
19897
19914
  strokeWidth: a1
19898
19915
  }
19899
19916
  )
19900
19917
  ] }), r1 = b ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", s1 = x ? J || "neutral" : C, k1 = C1(
19901
- `${O} ui-h-fit ui-justify-center ui-flex ui-items-center ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${E && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${N && T ? "!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19918
+ `${O} ui-h-fit ui-justify-center ui-flex ui-items-center ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${R && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${N && P ? "!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19902
19919
  {
19903
19920
  variants: {
19904
19921
  variant: {
@@ -19909,26 +19926,26 @@ const B5 = ({
19909
19926
  icon: " ui-border-transparent"
19910
19927
  },
19911
19928
  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] ${b ? ` ui-max-w-5 ui-min-h-5 ${r1}` : ""}`,
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] ${b ? ` ui-max-w-6 ui-min-h-6 ${r1}` : ""}`,
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] ${b ? ` ui-max-w-[26px] ui-min-h-[26px] ${r1}` : ""}`,
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] ${b ? ` ui-max-w-[32px] ui-min-h-[32px] ${r1}` : ""}`,
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] ${b ? ` ui-max-w-[42px] ui-min-h-[42px] ${r1}` : ""}`,
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] ${b ? ` ui-max-w-[52px] ui-min-h-[52px] ${r1}` : ""}`,
19918
- "3xl": `ui-max-h-[62px] ui-min-h-[62px] ui-min-w-[62px] ${d ? "ui-px-7 ui-py-3.5" : "ui-p-3.5 ui-w-[62px] ui-flex ui-justify-center ui-items-center"} ui-h-[62px] ui-text-[20px] ${b ? `ui-max-w-[62px] ui-min-h-[62px] ${r1}` : ""}`
19929
+ xs: `ui-max-h-5 ui-min-h-5 ui-min-w-5 ${l ? "ui-px-1 ui-py-0.5" : "ui-p-0.5 ui-w-5 ui-flex ui-justify-center ui-items-center"} ui-h-5 ui-text-[10px] ${b ? ` ui-max-w-5 ui-min-h-5 ${r1}` : ""}`,
19930
+ sm: `ui-max-h-6 ui-min-h-6 ui-min-w-6 ${l ? "ui-px-2 ui-py-1" : "ui-p-1 ui-w-6 ui-flex ui-justify-center ui-items-center"} ui-h-6 ui-text-[10px] ${b ? ` ui-max-w-6 ui-min-h-6 ${r1}` : ""}`,
19931
+ md: `ui-max-h-[26px] ui-min-h-[26px] ui-min-w-[26px] ${l ? "ui-px-3 ui-py-1.5" : "ui-p-1.5 ui-w-[26px] ui-flex ui-justify-center ui-items-center"} ui-h-[26px] ui-text-[12px] ${b ? ` ui-max-w-[26px] ui-min-h-[26px] ${r1}` : ""}`,
19932
+ lg: `ui-max-h-[32px] ui-min-h-[32px] ui-min-w-[32px] ${l ? "ui-px-4 ui-py-2" : "ui-p-2 ui-w-[32px] ui-flex ui-justify-center ui-items-center"} ui-h-[32px] ui-text-[14px] ${b ? ` ui-max-w-[32px] ui-min-h-[32px] ${r1}` : ""}`,
19933
+ xl: `ui-max-h-[42px] ui-min-h-[42px] ui-min-w-[42px] ${l ? "ui-px-5 ui-py-2.5" : "ui-p-2.5 ui-w-[42px] ui-flex ui-justify-center ui-items-center"} ui-h-[42px] ui-text-[16px] ${b ? ` ui-max-w-[42px] ui-min-h-[42px] ${r1}` : ""}`,
19934
+ "2xl": `ui-max-h-[52px] ui-min-h-[52px] ui-min-w-[52px] ${l ? "ui-px-6 ui-py-3" : "ui-p-3 ui-w-[52px] ui-flex ui-justify-center ui-items-center"} ui-h-[52px] ui-text-[18px] ${b ? ` ui-max-w-[52px] ui-min-h-[52px] ${r1}` : ""}`,
19935
+ "3xl": `ui-max-h-[62px] ui-min-h-[62px] ui-min-w-[62px] ${l ? "ui-px-7 ui-py-3.5" : "ui-p-3.5 ui-w-[62px] ui-flex ui-justify-center ui-items-center"} ui-h-[62px] ui-text-[20px] ${b ? `ui-max-w-[62px] ui-min-h-[62px] ${r1}` : ""}`
19919
19936
  },
19920
19937
  color: {
19921
- blue: w1(a, h, A, e1).blue,
19922
- "blue-dark": w1(a, h, A, e1)["blue-dark"],
19923
- orange: w1(a, h, A, e1).orange,
19924
- red: w1(a, h, A, e1).red,
19925
- green: w1(a, h, A, e1).green,
19926
- white: w1(a, h, A, e1).white,
19927
- yellow: w1(a, h, A, e1).yellow,
19928
- "blue-light": w1(a, h, A, e1)["blue-light"],
19929
- neutral: w1(a, h, A, e1).neutral,
19930
- black: w1(a, h, A, e1).black,
19931
- transparent: w1(a, h, A, e1).transparent
19938
+ blue: w1(a, h, A, i1).blue,
19939
+ "blue-dark": w1(a, h, A, i1)["blue-dark"],
19940
+ orange: w1(a, h, A, i1).orange,
19941
+ red: w1(a, h, A, i1).red,
19942
+ green: w1(a, h, A, i1).green,
19943
+ white: w1(a, h, A, i1).white,
19944
+ yellow: w1(a, h, A, i1).yellow,
19945
+ "blue-light": w1(a, h, A, i1)["blue-light"],
19946
+ neutral: w1(a, h, A, i1).neutral,
19947
+ black: w1(a, h, A, i1).black,
19948
+ transparent: w1(a, h, A, i1).transparent
19932
19949
  },
19933
19950
  rounded: {
19934
19951
  false: "ui-rounded-sm",
@@ -19936,7 +19953,7 @@ const B5 = ({
19936
19953
  },
19937
19954
  fullWidth: {
19938
19955
  true: "ui-w-full",
19939
- false: !b && !w && d ? "ui-min-w-fit" : ""
19956
+ false: !b && !w && l ? "ui-min-w-fit" : ""
19940
19957
  }
19941
19958
  },
19942
19959
  defaultVariants: {
@@ -19947,7 +19964,7 @@ const B5 = ({
19947
19964
  }
19948
19965
  }
19949
19966
  )({
19950
- size: i1,
19967
+ size: e1,
19951
19968
  color: C,
19952
19969
  rounded: p,
19953
19970
  fullWidth: t,
@@ -19964,15 +19981,15 @@ const B5 = ({
19964
19981
  children: d1()
19965
19982
  }
19966
19983
  ) : Z === "div" ? /* @__PURE__ */ i(
19967
- e9,
19984
+ n0,
19968
19985
  {
19969
19986
  label: M,
19970
- position: I,
19971
- alignment: z,
19972
- absolute: R,
19987
+ position: k,
19988
+ alignment: D,
19989
+ absolute: z,
19973
19990
  color: s1,
19974
- delay: G,
19975
- className: X,
19991
+ delay: q,
19992
+ className: K,
19976
19993
  fullWidth: t,
19977
19994
  children: /* @__PURE__ */ i(
19978
19995
  "div",
@@ -19985,14 +20002,14 @@ const B5 = ({
19985
20002
  )
19986
20003
  }
19987
20004
  ) : /* @__PURE__ */ i(
19988
- e9,
20005
+ n0,
19989
20006
  {
19990
20007
  label: M,
19991
- position: I,
19992
- alignment: z,
20008
+ position: k,
20009
+ alignment: D,
19993
20010
  color: s1,
19994
- delay: G,
19995
- className: X,
20011
+ delay: q,
20012
+ className: K,
19996
20013
  fullWidth: t,
19997
20014
  children: /* @__PURE__ */ i(
19998
20015
  "button",
@@ -20042,7 +20059,7 @@ const B5 = ({
20042
20059
  headerClassName: a,
20043
20060
  defaultOpen: c = !1
20044
20061
  }) => {
20045
- const [l, s] = Y(c);
20062
+ const [d, s] = Y(c);
20046
20063
  return /* @__PURE__ */ u(
20047
20064
  "div",
20048
20065
  {
@@ -20051,14 +20068,14 @@ const B5 = ({
20051
20068
  /* @__PURE__ */ i(
20052
20069
  z5,
20053
20070
  {
20054
- open: l,
20071
+ open: d,
20055
20072
  title: o,
20056
20073
  setOpen: s,
20057
20074
  className: a,
20058
20075
  children: t
20059
20076
  }
20060
20077
  ),
20061
- /* @__PURE__ */ u(E5, { open: l, children: [
20078
+ /* @__PURE__ */ u(E5, { open: d, children: [
20062
20079
  r && /* @__PURE__ */ i("p", { className: "ui-mb-3 ui-mt-1 ui-text-xxs ui-leading-none ui-text-neutral-500", children: r }),
20063
20080
  /* @__PURE__ */ i("div", { className: "ui-mx-1 ui-my-1.5 ui-h-[1px] ui-w-full ui-bg-neutral-100" }),
20064
20081
  t && t
@@ -20069,7 +20086,7 @@ const B5 = ({
20069
20086
  );
20070
20087
  }, Si = (o) => /* @__PURE__ */ i(R5, { ...o }), U5 = () => ({
20071
20088
  getAlertClassName: (e, a, c = "contained") => {
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 = {
20089
+ const d = "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
20090
  green: "success",
20074
20091
  red: "danger",
20075
20092
  blue: "info",
@@ -20106,8 +20123,8 @@ const B5 = ({
20106
20123
  accent: "ui-bg-gray-300 ui-text-gray-800 ui-border-l-6 ui-border-gray-800",
20107
20124
  minimal: "ui-bg-white ui-text-gray-800"
20108
20125
  }
20109
- }, d = C[e];
20110
- return `${l} ${s} ${p[d][c]}`;
20126
+ }, l = C[e];
20127
+ return `${d} ${s} ${p[l][c]}`;
20111
20128
  },
20112
20129
  getPositionClasses: (e) => ({
20113
20130
  "top-left": "ui-fixed ui-top-5 ui-left-5",
@@ -20133,8 +20150,8 @@ const B5 = ({
20133
20150
  warning: "ExclamationTriangleOutlined",
20134
20151
  info: "LikeOutlined",
20135
20152
  gray: "InfoCircleOutlined"
20136
- }, l = a[e];
20137
- return c[l];
20153
+ }, d = a[e];
20154
+ return c[d];
20138
20155
  },
20139
20156
  getProgressBarColor: (e, a) => {
20140
20157
  const c = {
@@ -20143,14 +20160,14 @@ const B5 = ({
20143
20160
  blue: "info",
20144
20161
  yellow: "warning",
20145
20162
  neutral: "gray"
20146
- }, l = {
20163
+ }, d = {
20147
20164
  success: "ui-bg-success-500",
20148
20165
  danger: "ui-bg-danger-500",
20149
20166
  warning: "ui-bg-warning-500",
20150
20167
  info: "ui-bg-info-500",
20151
20168
  gray: "ui-bg-gray-500"
20152
20169
  }, s = c[e];
20153
- return a === "contained" ? "ui-bg-white" : l[s];
20170
+ return a === "contained" ? "ui-bg-white" : d[s];
20154
20171
  }
20155
20172
  }), _5 = (o) => {
20156
20173
  const { getIconForType: r } = U5(), t = o.variant === "contained", n = (a) => {
@@ -20219,10 +20236,10 @@ const B5 = ({
20219
20236
  }
20220
20237
  }, t = o.variant || "contained";
20221
20238
  if (!(o.onSecondaryClick || o.onPrimaryClick)) return null;
20222
- const e = (l) => {
20223
- l.stopPropagation(), o.onPrimaryClick && o.onPrimaryClick();
20224
- }, a = (l) => {
20225
- l.stopPropagation(), o.onSecondaryClick && o.onSecondaryClick();
20239
+ const e = (d) => {
20240
+ d.stopPropagation(), o.onPrimaryClick && o.onPrimaryClick();
20241
+ }, a = (d) => {
20242
+ d.stopPropagation(), o.onSecondaryClick && o.onSecondaryClick();
20226
20243
  }, c = t === "outlined";
20227
20244
  return /* @__PURE__ */ u("div", { className: "ui-mt-2 ui-flex ui-w-full ui-justify-end ui-gap-x-2", children: [
20228
20245
  o.onSecondaryClick && /* @__PURE__ */ i(
@@ -20419,11 +20436,11 @@ const B5 = ({
20419
20436
  progressChar: e = "%",
20420
20437
  showLabel: a = !0,
20421
20438
  showProgress: c = !0,
20422
- size: l = "xs",
20439
+ size: d = "xs",
20423
20440
  duration: s = 0,
20424
20441
  withBackground: C = !0,
20425
20442
  borderStyle: p = "solid",
20426
- icon: d,
20443
+ icon: l,
20427
20444
  showIcon: L = !1,
20428
20445
  description: h = ""
20429
20446
  }) => {
@@ -20459,8 +20476,8 @@ const B5 = ({
20459
20476
  }
20460
20477
  );
20461
20478
  return /* @__PURE__ */ u("div", { className: U("ui-relative ui-flex ui-w-full ui-gap-2 ui-p-1", o), children: [
20462
- (d || L) && /* @__PURE__ */ u("div", { className: U(w({ status: r })), children: [
20463
- d && /* @__PURE__ */ i(j1, { name: d, size: "2xl", color: "white", strokeWidth: 4 }),
20479
+ (l || L) && /* @__PURE__ */ u("div", { className: U(w({ status: r })), children: [
20480
+ l && /* @__PURE__ */ i(j1, { name: l, size: "2xl", color: "white", strokeWidth: 4 }),
20464
20481
  /* @__PURE__ */ i("div", { className: U(f({ borderStyle: p })) })
20465
20482
  ] }),
20466
20483
  /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-w-full ui-flex-col ui-gap-1.5", children: [
@@ -20472,7 +20489,7 @@ const B5 = ({
20472
20489
  J5,
20473
20490
  {
20474
20491
  progress: t,
20475
- size: l,
20492
+ size: d,
20476
20493
  color: r,
20477
20494
  duration: s,
20478
20495
  withBackground: C
@@ -20495,11 +20512,11 @@ const B5 = ({
20495
20512
  message: e,
20496
20513
  title: a,
20497
20514
  showCloseButton: c = !0,
20498
- onClose: l,
20515
+ onClose: d,
20499
20516
  onClick: s,
20500
20517
  onPrimaryClick: C,
20501
20518
  onSecondaryClick: p,
20502
- primaryButtonText: d = "Aceptar",
20519
+ primaryButtonText: l = "Aceptar",
20503
20520
  secondaryButtonText: L = "Cancelar",
20504
20521
  animation: h = "none",
20505
20522
  isLeaving: w,
@@ -20536,7 +20553,7 @@ const B5 = ({
20536
20553
  color: r,
20537
20554
  variant: t,
20538
20555
  showCloseButton: c,
20539
- onClose: l
20556
+ onClose: d
20540
20557
  }
20541
20558
  ),
20542
20559
  /* @__PURE__ */ i(
@@ -20546,7 +20563,7 @@ const B5 = ({
20546
20563
  variant: t,
20547
20564
  onPrimaryClick: C,
20548
20565
  onSecondaryClick: p,
20549
- primaryButtonText: d,
20566
+ primaryButtonText: l,
20550
20567
  secondaryButtonText: L
20551
20568
  }
20552
20569
  )
@@ -20572,11 +20589,11 @@ const B5 = ({
20572
20589
  slotRight: e,
20573
20590
  variant: a = "button",
20574
20591
  badgeColor: c,
20575
- badgeLabel: l,
20592
+ badgeLabel: d,
20576
20593
  badgeBorder: s,
20577
20594
  clickable: C = !0,
20578
20595
  color: p,
20579
- rounded: d,
20596
+ rounded: l,
20580
20597
  children: L,
20581
20598
  icon: h,
20582
20599
  link: w,
@@ -20589,7 +20606,7 @@ const B5 = ({
20589
20606
  tooltipPosition: V,
20590
20607
  tooltipAlignment: y,
20591
20608
  tooltipColor: B,
20592
- tooltipDelay: E,
20609
+ tooltipDelay: R,
20593
20610
  ...A
20594
20611
  }) => /* @__PURE__ */ i(
20595
20612
  t1,
@@ -20597,14 +20614,14 @@ const B5 = ({
20597
20614
  ref: o,
20598
20615
  variant: a,
20599
20616
  color: p,
20600
- rounded: d,
20617
+ rounded: l,
20601
20618
  fullWidth: t,
20602
20619
  size: f,
20603
20620
  clickable: C,
20604
20621
  children: L,
20605
20622
  icon: h,
20606
20623
  badgeColor: c,
20607
- badgeLabel: l,
20624
+ badgeLabel: d,
20608
20625
  badgeBorder: s,
20609
20626
  slotLeft: n,
20610
20627
  slotRight: e,
@@ -20618,7 +20635,7 @@ const B5 = ({
20618
20635
  tooltipPosition: V,
20619
20636
  tooltipAlignment: y,
20620
20637
  tooltipColor: B,
20621
- tooltipDelay: E,
20638
+ tooltipDelay: R,
20622
20639
  ...A
20623
20640
  }
20624
20641
  ), $i = ({
@@ -20628,18 +20645,18 @@ const B5 = ({
20628
20645
  color: n = "white",
20629
20646
  size: e = "md"
20630
20647
  }) => {
20631
- const a = M1.Children.toArray(o), c = M1.Children.map(o, (l, s) => {
20632
- if (!M1.isValidElement(l))
20633
- return l;
20634
- const C = s === 0, p = s === a.length - 1, d = l.props.icon;
20635
- return M1.cloneElement(l, {
20636
- ...l.props,
20637
- className: `${l.props.className || ""} ${C ? "!ui-rounded-r-none" : p ? "!ui-rounded-l-none" : "!ui-rounded-none"}`.trim(),
20648
+ const a = M1.Children.toArray(o), c = M1.Children.map(o, (d, s) => {
20649
+ if (!M1.isValidElement(d))
20650
+ return d;
20651
+ const C = s === 0, p = s === a.length - 1, l = d.props.icon;
20652
+ return M1.cloneElement(d, {
20653
+ ...d.props,
20654
+ className: `${d.props.className || ""} ${C ? "!ui-rounded-r-none" : p ? "!ui-rounded-l-none" : "!ui-rounded-none"}`.trim(),
20638
20655
  // Asegurar que los botones tengan el mismo tamaño y estilo base
20639
- size: l.props.size || e,
20640
- variant: l.props.variant || t,
20641
- color: l.props.color || n,
20642
- icon: d ? l.props.icon : void 0
20656
+ size: d.props.size || e,
20657
+ variant: d.props.variant || t,
20658
+ color: d.props.color || n,
20659
+ icon: l ? d.props.icon : void 0
20643
20660
  });
20644
20661
  });
20645
20662
  return /* @__PURE__ */ i("div", { className: `ui-flex ui-items-center ui-gap-0 ${r || ""}`, children: c });
@@ -20661,12 +20678,12 @@ const B5 = ({
20661
20678
  fullHeight: e = !0,
20662
20679
  onClick: a,
20663
20680
  rounded: c = !0,
20664
- padding: l = !0,
20681
+ padding: d = !0,
20665
20682
  gap: s = !0,
20666
20683
  active: C = !1
20667
20684
  }) => {
20668
- const p = (d) => {
20669
- d.stopPropagation(), a && a();
20685
+ const p = (l) => {
20686
+ l.stopPropagation(), a && a();
20670
20687
  };
20671
20688
  return /* @__PURE__ */ i(
20672
20689
  "div",
@@ -20675,7 +20692,7 @@ const B5 = ({
20675
20692
  "ui-flex ui-w-full ui-flex-col ui-border-1 ui-border-neutral-100 ui-bg-white ui-shadow-sm",
20676
20693
  r,
20677
20694
  s ? "ui-gap-4" : "",
20678
- l ? "ui-p-4" : "",
20695
+ d ? "ui-p-4" : "",
20679
20696
  c ? "ui-rounded-2xl" : "",
20680
20697
  t ? "ui-w-full" : "ui-w-fit",
20681
20698
  e ? "ui-h-full" : "",
@@ -20710,7 +20727,7 @@ const Q5 = (o) => {
20710
20727
  initialViewMode: e = "days",
20711
20728
  closeOnSelect: a = !1,
20712
20729
  autoCloseRange: c = !0
20713
- } = o, [l, s] = Y({
20730
+ } = o, [d, s] = Y({
20714
20731
  isOpen: !1,
20715
20732
  currentDate: /* @__PURE__ */ new Date(),
20716
20733
  viewMode: e,
@@ -20718,17 +20735,17 @@ const Q5 = (o) => {
20718
20735
  internalRange: { start: null, end: null },
20719
20736
  hoverDate: null,
20720
20737
  portalPosition: { top: 0, left: 0 }
20721
- }), [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 = (M) => M && M instanceof Date && !isNaN(M.getTime()), b = g(w) ? w : null, m = {
20738
+ }), [C, p] = Y(!1), l = o1(null), L = r === "single" ? t !== void 0 : n !== void 0, h = r === "single" ? t === void 0 : n === void 0, w = r === "single" ? h ? d.internalDate : t : null, f = r === "range" ? h ? d.internalRange : n : { start: null, end: null }, g = (M) => M && M instanceof Date && !isNaN(M.getTime()), b = g(w) ? w : null, m = {
20722
20739
  start: g(f == null ? void 0 : f.start) ? f.start : null,
20723
20740
  end: g(f == null ? void 0 : f.end) ? f.end : null
20724
- }, H = P(() => {
20725
- if (d.current) {
20726
- const M = d.current.getInputElement();
20741
+ }, H = T(() => {
20742
+ if (l.current) {
20743
+ const M = l.current.getInputElement();
20727
20744
  if (M) {
20728
- const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20729
- let n1, N = I.left;
20730
- const $ = z - I.bottom, k = I.top;
20731
- $ >= G + X ? n1 = I.bottom + X : k >= G + X ? n1 = I.top - G + X : $ > k ? n1 = I.bottom + X : n1 = I.top - G + X, I.left + R > J && (N = I.right - R), N = Math.max(0, Math.min(N, J - R)), s((F) => ({
20745
+ const k = M.getBoundingClientRect(), D = window.innerHeight, J = window.innerWidth, q = 320, z = 256, K = 8;
20746
+ let n1, N = k.left;
20747
+ const $ = D - k.bottom, I = k.top;
20748
+ $ >= q + K ? n1 = k.bottom + K : I >= q + K ? n1 = k.top - q + K : $ > I ? n1 = k.bottom + K : n1 = k.top - q + K, k.left + z > J && (N = k.right - z), N = Math.max(0, Math.min(N, J - z)), s((F) => ({
20732
20749
  ...F,
20733
20750
  isOpen: !0,
20734
20751
  portalPosition: { top: n1, left: N }
@@ -20737,92 +20754,92 @@ const Q5 = (o) => {
20737
20754
  }
20738
20755
  }
20739
20756
  s((M) => ({ ...M, isOpen: !0 })), p(!1);
20740
- }, []), j = P(() => {
20757
+ }, []), j = T(() => {
20741
20758
  s((M) => ({ ...M, isOpen: !1 })), p(!1);
20742
- }, []), V = P((M) => {
20743
- s((I) => ({ ...I, currentDate: M }));
20744
- }, []), y = P((M) => {
20745
- s((I) => ({ ...I, viewMode: M }));
20746
- }, []), B = P((M) => {
20747
- s((I) => {
20748
- const z = new Date(I.currentDate);
20749
- switch (I.viewMode) {
20759
+ }, []), V = T((M) => {
20760
+ s((k) => ({ ...k, currentDate: M }));
20761
+ }, []), y = T((M) => {
20762
+ s((k) => ({ ...k, viewMode: M }));
20763
+ }, []), B = T((M) => {
20764
+ s((k) => {
20765
+ const D = new Date(k.currentDate);
20766
+ switch (k.viewMode) {
20750
20767
  case "days":
20751
- z.setMonth(z.getMonth() + (M === "next" ? 1 : -1));
20768
+ D.setMonth(D.getMonth() + (M === "next" ? 1 : -1));
20752
20769
  break;
20753
20770
  case "months":
20754
- z.setFullYear(z.getFullYear() + (M === "next" ? 1 : -1));
20771
+ D.setFullYear(D.getFullYear() + (M === "next" ? 1 : -1));
20755
20772
  break;
20756
20773
  case "years":
20757
- z.setFullYear(z.getFullYear() + (M === "next" ? 12 : -12));
20774
+ D.setFullYear(D.getFullYear() + (M === "next" ? 12 : -12));
20758
20775
  break;
20759
20776
  }
20760
- return { ...I, currentDate: z };
20777
+ return { ...k, currentDate: D };
20761
20778
  });
20762
- }, []), E = P(
20779
+ }, []), R = T(
20763
20780
  (M) => {
20764
- var I;
20765
- r === "single" && (h && s((z) => ({ ...z, internalDate: M })), (I = o.onDateChange) == null || I.call(o, M), a && j());
20781
+ var k;
20782
+ r === "single" && (h && s((D) => ({ ...D, internalDate: M })), (k = o.onDateChange) == null || k.call(o, M), a && j());
20766
20783
  },
20767
20784
  [r, h, o.onDateChange, a, j]
20768
- ), A = P(
20785
+ ), A = T(
20769
20786
  (M) => {
20770
- var I;
20771
- r === "range" && (L || s((z) => ({ ...z, internalRange: M })), (I = o.onRangeChange) == null || I.call(o, M), c && M.start && M.end && j());
20787
+ var k;
20788
+ r === "range" && (L || s((D) => ({ ...D, internalRange: M })), (k = o.onRangeChange) == null || k.call(o, M), c && M.start && M.end && j());
20772
20789
  },
20773
20790
  [r, L, o.onRangeChange, c, j]
20774
- ), S = P((M) => {
20775
- s((I) => ({ ...I, hoverDate: M }));
20776
- }, []), v = P((M) => {
20777
- s((I) => {
20778
- const z = new Date(I.currentDate);
20779
- return z.setMonth(M), {
20780
- ...I,
20781
- currentDate: z,
20791
+ ), S = T((M) => {
20792
+ s((k) => ({ ...k, hoverDate: M }));
20793
+ }, []), v = T((M) => {
20794
+ s((k) => {
20795
+ const D = new Date(k.currentDate);
20796
+ return D.setMonth(M), {
20797
+ ...k,
20798
+ currentDate: D,
20782
20799
  viewMode: "days"
20783
20800
  };
20784
20801
  });
20785
- }, []), x = P((M) => {
20786
- s((I) => {
20787
- const z = new Date(I.currentDate);
20788
- return z.setFullYear(M), {
20789
- ...I,
20790
- currentDate: z,
20802
+ }, []), x = T((M) => {
20803
+ s((k) => {
20804
+ const D = new Date(k.currentDate);
20805
+ return D.setFullYear(M), {
20806
+ ...k,
20807
+ currentDate: D,
20791
20808
  viewMode: "months"
20792
20809
  };
20793
20810
  });
20794
- }, []), Z = P(() => {
20811
+ }, []), Z = T(() => {
20795
20812
  const M = /* @__PURE__ */ new Date();
20796
- s((I) => ({
20797
- ...I,
20813
+ s((k) => ({
20814
+ ...k,
20798
20815
  currentDate: M,
20799
20816
  viewMode: "days"
20800
20817
  }));
20801
- }, []), O = P(() => {
20802
- if (!d.current)
20818
+ }, []), O = T(() => {
20819
+ if (!l.current)
20803
20820
  return;
20804
- const M = d.current.getInputElement();
20821
+ const M = l.current.getInputElement();
20805
20822
  if (!M)
20806
20823
  return;
20807
- const I = M.getBoundingClientRect(), z = window.innerHeight, J = window.innerWidth, G = 320, R = 256, X = 8;
20808
- let n1, N = I.left;
20809
- const $ = z - I.bottom, k = I.top;
20810
- $ >= G + X ? n1 = I.bottom + X : k >= G + X ? n1 = I.top - G + X : $ > k ? n1 = I.bottom + X : n1 = I.top - G + X, I.left + R > J && (N = I.right - R), N = Math.max(0, Math.min(N, J - R)), s((F) => ({ ...F, portalPosition: { top: n1, left: N } })), p(!0);
20824
+ const k = M.getBoundingClientRect(), D = window.innerHeight, J = window.innerWidth, q = 320, z = 256, K = 8;
20825
+ let n1, N = k.left;
20826
+ const $ = D - k.bottom, I = k.top;
20827
+ $ >= q + K ? n1 = k.bottom + K : I >= q + K ? n1 = k.top - q + K : $ > I ? n1 = k.bottom + K : n1 = k.top - q + K, k.left + z > J && (N = k.right - z), N = Math.max(0, Math.min(N, J - z)), s((F) => ({ ...F, portalPosition: { top: n1, left: N } })), p(!0);
20811
20828
  }, []);
20812
20829
  return Q(() => {
20813
- if (!l.isOpen) return;
20814
- const M = () => O(), I = () => O();
20815
- return window.addEventListener("scroll", M, !0), window.addEventListener("resize", I), () => {
20816
- window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", I);
20830
+ if (!d.isOpen) return;
20831
+ const M = () => O(), k = () => O();
20832
+ return window.addEventListener("scroll", M, !0), window.addEventListener("resize", k), () => {
20833
+ window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", k);
20817
20834
  };
20818
- }, [l.isOpen, O]), Q(() => {
20819
- if (l.isOpen) {
20835
+ }, [d.isOpen, O]), Q(() => {
20836
+ if (d.isOpen) {
20820
20837
  const M = setTimeout(() => {
20821
20838
  O();
20822
20839
  }, 0);
20823
20840
  return () => clearTimeout(M);
20824
20841
  }
20825
- }, [l.isOpen, O]), Q(() => {
20842
+ }, [d.isOpen, O]), Q(() => {
20826
20843
  L && r === "single" && s((M) => ({
20827
20844
  ...M,
20828
20845
  internalDate: t
@@ -20833,17 +20850,17 @@ const Q5 = (o) => {
20833
20850
  internalRange: n || { start: null, end: null }
20834
20851
  }));
20835
20852
  }, [L, r, n]), {
20836
- state: l,
20853
+ state: d,
20837
20854
  selectedDate: b,
20838
20855
  selectedRange: m,
20839
- inputRef: d,
20856
+ inputRef: l,
20840
20857
  isPortalReady: C,
20841
20858
  actions: {
20842
20859
  openPicker: H,
20843
20860
  closePicker: j,
20844
20861
  setCurrentDate: V,
20845
20862
  setViewMode: y,
20846
- setSelectedDate: E,
20863
+ setSelectedDate: R,
20847
20864
  setSelectedRange: A,
20848
20865
  setHoverDate: S,
20849
20866
  updatePortalPosition: O,
@@ -20854,38 +20871,38 @@ const Q5 = (o) => {
20854
20871
  }
20855
20872
  };
20856
20873
  }, O1 = (o) => o && o instanceof Date && !isNaN(o.getTime()), f9 = (o, r, t, n, e) => {
20857
- const a = P((d, L) => !L.start || !L.end || !O1(L.start) || !O1(L.end) ? !1 : d >= L.start && d <= L.end, []), c = P((d, L) => !L.start || !O1(L.start) ? !1 : d.getTime() === L.start.getTime(), []), l = P((d, L) => !L.end || !O1(L.end) ? !1 : d.getTime() === L.end.getTime(), []), s = P(
20858
- (d) => !!(!O1(d) || t && O1(t) && d < t || n && O1(n) && d > n),
20874
+ const a = T((l, L) => !L.start || !L.end || !O1(L.start) || !O1(L.end) ? !1 : l >= L.start && l <= L.end, []), c = T((l, L) => !L.start || !O1(L.start) ? !1 : l.getTime() === L.start.getTime(), []), d = T((l, L) => !L.end || !O1(L.end) ? !1 : l.getTime() === L.end.getTime(), []), s = T(
20875
+ (l) => !!(!O1(l) || t && O1(t) && l < t || n && O1(n) && l > n),
20859
20876
  [t, n]
20860
- ), C = P(
20861
- (d, L, h) => {
20862
- if (!O1(d)) {
20863
- console.warn("useDateRange: Se recibió una fecha inválida:", d);
20877
+ ), C = T(
20878
+ (l, L, h) => {
20879
+ if (!O1(l)) {
20880
+ console.warn("useDateRange: Se recibió una fecha inválida:", l);
20864
20881
  return;
20865
20882
  }
20866
- if (s(d)) return;
20883
+ if (s(l)) return;
20867
20884
  const w = { ...o };
20868
- !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();
20885
+ !o.start || o.start && o.end ? (w.start = l, w.end = null) : l < o.start ? (w.start = l, w.end = o.start) : (w.start = o.start, w.end = l), r(w), e && w.start && w.end && h && h();
20869
20886
  },
20870
20887
  [o, r, s, e]
20871
- ), p = P(
20872
- (d, L) => {
20873
- const h = c(d, o), w = l(d, o), f = a(d, o), g = s(d);
20888
+ ), p = T(
20889
+ (l, L) => {
20890
+ const h = c(l, o), w = d(l, o), f = a(l, o), g = s(l);
20874
20891
  let b = !1;
20875
20892
  if (L && o.start && !o.end) {
20876
20893
  const V = {
20877
20894
  start: o.start < L ? o.start : L,
20878
20895
  end: o.start < L ? L : o.start
20879
20896
  };
20880
- b = a(d, V);
20897
+ b = a(l, V);
20881
20898
  }
20882
20899
  let m = !1;
20883
20900
  if (o.start && o.end && f && !h) {
20884
- const V = new Date(d);
20885
- V.setDate(d.getDate() - 1), m = !a(V, o);
20901
+ const V = new Date(l);
20902
+ V.setDate(l.getDate() - 1), m = !a(V, o);
20886
20903
  } else if (o.start && !o.end && L && b) {
20887
- const V = new Date(d);
20888
- V.setDate(d.getDate() - 1);
20904
+ const V = new Date(l);
20905
+ V.setDate(l.getDate() - 1);
20889
20906
  const y = {
20890
20907
  start: o.start < L ? o.start : L,
20891
20908
  end: o.start < L ? L : o.start
@@ -20894,11 +20911,11 @@ const Q5 = (o) => {
20894
20911
  }
20895
20912
  let H = !1;
20896
20913
  if (o.start && o.end && f && !w) {
20897
- const V = new Date(d);
20898
- V.setDate(d.getDate() + 1), H = !a(V, o);
20914
+ const V = new Date(l);
20915
+ V.setDate(l.getDate() + 1), H = !a(V, o);
20899
20916
  } else if (o.start && !o.end && L && b) {
20900
- const V = new Date(d);
20901
- V.setDate(d.getDate() + 1);
20917
+ const V = new Date(l);
20918
+ V.setDate(l.getDate() + 1);
20902
20919
  const y = {
20903
20920
  start: o.start < L ? o.start : L,
20904
20921
  end: o.start < L ? L : o.start
@@ -20906,7 +20923,7 @@ const Q5 = (o) => {
20906
20923
  H = !a(V, y);
20907
20924
  }
20908
20925
  let j = !0;
20909
- return o.start && !o.end && L ? j = L >= o.start : o.start && o.end && (j = d >= o.start), {
20926
+ return o.start && !o.end && L ? j = L >= o.start : o.start && o.end && (j = l >= o.start), {
20910
20927
  isSelectingStart: !o.start || o.start && o.end,
20911
20928
  isSelectingEnd: !!o.start && !o.end,
20912
20929
  isStart: h,
@@ -20919,37 +20936,37 @@ const Q5 = (o) => {
20919
20936
  isHovered: b
20920
20937
  };
20921
20938
  },
20922
- [o, c, l, a, s]
20939
+ [o, c, d, a, s]
20923
20940
  );
20924
20941
  return {
20925
20942
  isDateInRange: a,
20926
20943
  isDateRangeStart: c,
20927
- isDateRangeEnd: l,
20944
+ isDateRangeEnd: d,
20928
20945
  isDateDisabled: s,
20929
20946
  handleRangeSelection: C,
20930
20947
  getRangeState: p
20931
20948
  };
20932
20949
  }, q1 = (o, r, t) => {
20933
- const n = P(
20950
+ const n = T(
20934
20951
  (p) => {
20935
- const d = new Date(o);
20952
+ const l = new Date(o);
20936
20953
  switch (p) {
20937
20954
  case "prev":
20938
- d.setMonth(d.getMonth() - 1);
20955
+ l.setMonth(l.getMonth() - 1);
20939
20956
  break;
20940
20957
  case "next":
20941
- d.setMonth(d.getMonth() + 1);
20958
+ l.setMonth(l.getMonth() + 1);
20942
20959
  break;
20943
20960
  }
20944
20961
  r(p);
20945
20962
  },
20946
20963
  [o, r]
20947
- ), e = P((p) => {
20948
- 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();
20964
+ ), e = T((p) => {
20965
+ const l = p.getFullYear(), L = p.getMonth(), h = new Date(l, L, 1), w = new Date(l, L + 1, 0), f = w.getDate(), g = h.getDay();
20949
20966
  return { firstDay: h, lastDay: w, daysInMonth: f, startOfWeek: g };
20950
- }, []), a = P(
20951
- (p, d = 1) => {
20952
- const { firstDay: L, lastDay: h, daysInMonth: w, startOfWeek: f } = e(p), g = [], b = (f - d + 7) % 7;
20967
+ }, []), a = T(
20968
+ (p, l = 1) => {
20969
+ const { firstDay: L, lastDay: h, daysInMonth: w, startOfWeek: f } = e(p), g = [], b = (f - l + 7) % 7;
20953
20970
  for (let H = 0; H < b; H++)
20954
20971
  g.push(null);
20955
20972
  for (let H = 1; H <= w; H++)
@@ -20960,28 +20977,28 @@ const Q5 = (o) => {
20960
20977
  return g;
20961
20978
  },
20962
20979
  [e]
20963
- ), c = P((p = "es-ES") => {
20964
- const d = [];
20980
+ ), c = T((p = "es-ES") => {
20981
+ const l = [];
20965
20982
  for (let L = 0; L < 12; L++) {
20966
20983
  const h = new Date(2024, L, 1);
20967
- d.push(h.toLocaleDateString(p, { month: "long" }));
20984
+ l.push(h.toLocaleDateString(p, { month: "long" }));
20968
20985
  }
20969
- return d;
20970
- }, []), l = P((p, d = 12) => {
20971
- const L = [], h = p - Math.floor(d / 2);
20972
- for (let w = 0; w < d; w++)
20986
+ return l;
20987
+ }, []), d = T((p, l = 12) => {
20988
+ const L = [], h = p - Math.floor(l / 2);
20989
+ for (let w = 0; w < l; w++)
20973
20990
  L.push(h + w);
20974
20991
  return L;
20975
- }, []), s = P((p) => {
20976
- const d = /* @__PURE__ */ new Date();
20977
- return p.getDate() === d.getDate() && p.getMonth() === d.getMonth() && p.getFullYear() === d.getFullYear();
20978
- }, []), C = P((p, d) => p.toLocaleDateString("es-ES", d), []);
20992
+ }, []), s = T((p) => {
20993
+ const l = /* @__PURE__ */ new Date();
20994
+ return p.getDate() === l.getDate() && p.getMonth() === l.getMonth() && p.getFullYear() === l.getFullYear();
20995
+ }, []), C = T((p, l) => p.toLocaleDateString("es-ES", l), []);
20979
20996
  return {
20980
20997
  navigate: n,
20981
20998
  getDaysInMonth: e,
20982
20999
  getCalendarDays: a,
20983
21000
  getMonthNames: c,
20984
- getYearRange: l,
21001
+ getYearRange: d,
20985
21002
  isToday: s,
20986
21003
  formatDate: C
20987
21004
  };
@@ -20989,51 +21006,51 @@ const Q5 = (o) => {
20989
21006
  const [n, e] = Y({
20990
21007
  isFocused: !1,
20991
21008
  inputValue: o
20992
- }), a = P((h) => {
21009
+ }), a = T((h) => {
20993
21010
  e((w) => ({ ...w, isFocused: h }));
20994
- }, []), c = P((h) => {
21011
+ }, []), c = T((h) => {
20995
21012
  e((w) => ({ ...w, inputValue: h }));
20996
- }, []), l = P((h, w) => {
21013
+ }, []), d = T((h, w) => {
20997
21014
  if (!h) return "";
20998
21015
  const f = h.getDate().toString().padStart(2, "0"), g = (h.getMonth() + 1).toString().padStart(2, "0"), b = h.getFullYear();
20999
21016
  return w.format.replace("dd", f).replace("MM", g).replace("yyyy", b.toString());
21000
- }, []), s = P((h, w) => {
21017
+ }, []), s = T((h, w) => {
21001
21018
  if (!h) return null;
21002
21019
  const f = w.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), g = new RegExp(`^${f}$`), b = h.match(g);
21003
21020
  if (!b) return null;
21004
21021
  const [, m, H, j] = b, V = new Date(parseInt(j), parseInt(H) - 1, parseInt(m));
21005
21022
  return isNaN(V.getTime()) ? null : V;
21006
- }, []), C = P(
21023
+ }, []), C = T(
21007
21024
  (h, w) => s(h, w) !== null,
21008
21025
  [s]
21009
- ), p = P(
21026
+ ), p = T(
21010
21027
  (h) => {
21011
21028
  c(h);
21012
21029
  },
21013
21030
  [c]
21014
- ), d = P(() => {
21031
+ ), l = T(() => {
21015
21032
  a(!0);
21016
- }, [a]), L = P(() => {
21033
+ }, [a]), L = T(() => {
21017
21034
  a(!1);
21018
21035
  }, [a]);
21019
21036
  return {
21020
21037
  state: n,
21021
21038
  setFocused: a,
21022
21039
  setInputValue: c,
21023
- formatDateForInput: l,
21040
+ formatDateForInput: d,
21024
21041
  parseDateFromInput: s,
21025
21042
  validateDateInput: C,
21026
21043
  handleInputChange: p,
21027
- handleInputFocus: d,
21044
+ handleInputFocus: l,
21028
21045
  handleInputBlur: L
21029
21046
  };
21030
21047
  }, W5 = (o, r, t, n = 1e3) => {
21031
- const e = o1(null), a = P(
21048
+ const e = o1(null), a = T(
21032
21049
  (s) => {
21033
21050
  e.current && !e.current.contains(s.target) && r();
21034
21051
  },
21035
21052
  [r]
21036
- ), c = P(
21053
+ ), c = T(
21037
21054
  (s) => {
21038
21055
  s.key === "Escape" && r();
21039
21056
  },
@@ -21045,7 +21062,7 @@ const Q5 = (o) => {
21045
21062
  document.removeEventListener("mousedown", a), document.removeEventListener("keydown", c);
21046
21063
  };
21047
21064
  }, [o, a, c]);
21048
- const l = P(
21065
+ const d = T(
21049
21066
  (s) => o ? D1(
21050
21067
  M1.createElement(
21051
21068
  "div",
@@ -21067,7 +21084,7 @@ const Q5 = (o) => {
21067
21084
  );
21068
21085
  return {
21069
21086
  portalRef: e,
21070
- renderPortal: l
21087
+ renderPortal: d
21071
21088
  };
21072
21089
  }, n6 = ({
21073
21090
  day: o,
@@ -21077,11 +21094,11 @@ const Q5 = (o) => {
21077
21094
  isStart: e,
21078
21095
  isEnd: a,
21079
21096
  isFirstInRange: c,
21080
- isLastInRange: l,
21097
+ isLastInRange: d,
21081
21098
  afterSelected: s,
21082
21099
  isDisabled: C,
21083
21100
  isToday: p,
21084
- isHovered: d,
21101
+ isHovered: l,
21085
21102
  onClick: L,
21086
21103
  onMouseEnter: h,
21087
21104
  onMouseLeave: w,
@@ -21100,8 +21117,8 @@ const Q5 = (o) => {
21100
21117
  w(), b.current = null;
21101
21118
  }, 100) : w());
21102
21119
  }, V = () => {
21103
- let y = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!l && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
21104
- return C ? y += " ui-text-gray-400 ui-cursor-not-allowed" : t ? y += " ui-bg-blue-500 ui-text-white" : e ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? y += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? y += " ui-bg-blue-50 ui-text-blue-500" : d ? y += " ui-bg-blue-50" : p ? y += " ui-text-blue-500" : y += "hover:ui-bg-neutral-50", `${y} ${f}`;
21120
+ let y = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!d && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
21121
+ 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" : l ? y += " ui-bg-blue-50" : p ? y += " ui-text-blue-500" : y += "hover:ui-bg-neutral-50", `${y} ${f}`;
21105
21122
  };
21106
21123
  return g ? g({
21107
21124
  day: o,
@@ -21111,7 +21128,7 @@ const Q5 = (o) => {
21111
21128
  isStart: e,
21112
21129
  isEnd: a,
21113
21130
  isFirstInRange: c,
21114
- isLastInRange: l,
21131
+ isLastInRange: d,
21115
21132
  afterSelected: s,
21116
21133
  isDisabled: C,
21117
21134
  isToday: p
@@ -21164,15 +21181,15 @@ const Q5 = (o) => {
21164
21181
  onClick: n,
21165
21182
  className: e = ""
21166
21183
  }) => {
21167
- const a = (l) => {
21168
- l.stopPropagation(), t || n(o);
21184
+ const a = (d) => {
21185
+ d.stopPropagation(), t || n(o);
21169
21186
  };
21170
21187
  return /* @__PURE__ */ i(
21171
21188
  "div",
21172
21189
  {
21173
21190
  className: (() => {
21174
- let l = "ui-w-16 ui-h-12 ui-flex ui-items-center ui-font-medium ui-justify-center ui-text-xs ui-rounded ui-cursor-pointer ui-transition-colors";
21175
- return t ? l += " ui-text-gray-400 ui-cursor-not-allowed" : r ? l += " ui-bg-blue-500 ui-text-white" : l += " hover:ui-bg-blue-50 hover:ui-text-blue-500", `${l} ${e}`;
21191
+ let d = "ui-w-16 ui-h-12 ui-flex ui-items-center ui-font-medium ui-justify-center ui-text-xs ui-rounded ui-cursor-pointer ui-transition-colors";
21192
+ return t ? d += " ui-text-gray-400 ui-cursor-not-allowed" : r ? d += " ui-bg-blue-500 ui-text-white" : d += " hover:ui-bg-blue-50 hover:ui-text-blue-500", `${d} ${e}`;
21176
21193
  })(),
21177
21194
  onClick: a,
21178
21195
  role: "button",
@@ -21232,7 +21249,7 @@ const Q5 = (o) => {
21232
21249
  "Diciembre"
21233
21250
  ],
21234
21251
  className: c = "",
21235
- renderHeader: l
21252
+ renderHeader: d
21236
21253
  }) => {
21237
21254
  const s = () => {
21238
21255
  switch (r) {
@@ -21249,7 +21266,7 @@ const Q5 = (o) => {
21249
21266
  }, C = () => {
21250
21267
  n();
21251
21268
  };
21252
- return l ? l({
21269
+ return d ? d({
21253
21270
  currentDate: o,
21254
21271
  viewMode: r,
21255
21272
  toggleViewMode: C,
@@ -21295,11 +21312,11 @@ const Q5 = (o) => {
21295
21312
  onDateHover: e,
21296
21313
  minDate: a,
21297
21314
  maxDate: c,
21298
- weekDays: l = ["D", "L", "M", "M", "J", "V", "S"],
21315
+ weekDays: d = ["D", "L", "M", "M", "J", "V", "S"],
21299
21316
  startOfWeek: s = 1,
21300
21317
  showWeekNumbers: C = !1,
21301
21318
  hoverDate: p,
21302
- renderDay: d
21319
+ renderDay: l
21303
21320
  }) => {
21304
21321
  const { getCalendarDays: L, isToday: h } = q1(
21305
21322
  o,
@@ -21313,7 +21330,7 @@ const Q5 = (o) => {
21313
21330
  c
21314
21331
  ), f = (m) => r ? m.getTime() === r.getTime() : !1, g = (m) => !!(a && m < a || c && m > c), b = L(o, s);
21315
21332
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
21316
- l.map((m, H) => /* @__PURE__ */ i(o6, { day: m }, H)),
21333
+ d.map((m, H) => /* @__PURE__ */ i(o6, { day: m }, H)),
21317
21334
  b.map((m, H) => {
21318
21335
  if (m === null)
21319
21336
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, H);
@@ -21345,7 +21362,7 @@ const Q5 = (o) => {
21345
21362
  onClick: n,
21346
21363
  onMouseEnter: e,
21347
21364
  onMouseLeave: () => e == null ? void 0 : e(null),
21348
- renderDay: d
21365
+ renderDay: l
21349
21366
  },
21350
21367
  H
21351
21368
  );
@@ -21376,11 +21393,11 @@ const Q5 = (o) => {
21376
21393
  () => {
21377
21394
  }
21378
21395
  ), c = a();
21379
- return /* @__PURE__ */ i("div", { className: `ui-mx-auto ui-grid ui-w-fit ui-grid-cols-3 ${e}`, children: c.map((l, s) => /* @__PURE__ */ i(
21396
+ return /* @__PURE__ */ i("div", { className: `ui-mx-auto ui-grid ui-w-fit ui-grid-cols-3 ${e}`, children: c.map((d, s) => /* @__PURE__ */ i(
21380
21397
  e6,
21381
21398
  {
21382
21399
  monthIndex: s,
21383
- monthName: l,
21400
+ monthName: d,
21384
21401
  isSelected: r === s,
21385
21402
  isDisabled: !1,
21386
21403
  onClick: t
@@ -21399,23 +21416,23 @@ const Q5 = (o) => {
21399
21416
  () => {
21400
21417
  }
21401
21418
  ), c = a(o.getFullYear(), n);
21402
- return /* @__PURE__ */ i("div", { className: `ui-mx-auto ui-grid ui-w-fit ui-grid-cols-3 ${e}`, children: c.map((l) => /* @__PURE__ */ i(
21419
+ return /* @__PURE__ */ i("div", { className: `ui-mx-auto ui-grid ui-w-fit ui-grid-cols-3 ${e}`, children: c.map((d) => /* @__PURE__ */ i(
21403
21420
  i6,
21404
21421
  {
21405
- year: l,
21406
- isSelected: r === l,
21422
+ year: d,
21423
+ isSelected: r === d,
21407
21424
  isDisabled: !1,
21408
21425
  onClick: t
21409
21426
  },
21410
- l
21427
+ d
21411
21428
  )) });
21412
21429
  }, t6 = (o) => {
21413
- const { value: r, defaultValue: t, onChange: n, initialValue: e } = o, a = r !== void 0, c = t !== void 0 ? t : e, [l, s] = Y(c), C = a ? r : l, p = P(
21430
+ const { value: r, defaultValue: t, onChange: n, initialValue: e } = o, a = r !== void 0, c = t !== void 0 ? t : e, [d, s] = Y(c), C = a ? r : d, p = T(
21414
21431
  (L) => {
21415
21432
  a || s(L), n == null || n(L);
21416
21433
  },
21417
21434
  [a, n]
21418
- ), d = P(() => {
21435
+ ), l = T(() => {
21419
21436
  const L = t !== void 0 ? t : e;
21420
21437
  a || s(L), n == null || n(L);
21421
21438
  }, [a, t, e, n]);
@@ -21425,7 +21442,7 @@ const Q5 = (o) => {
21425
21442
  value: C,
21426
21443
  isControlled: a,
21427
21444
  setValue: p,
21428
- reset: d
21445
+ reset: l
21429
21446
  };
21430
21447
  }, u6 = (o) => t6(o), a6 = ({
21431
21448
  size: o = "md",
@@ -21434,30 +21451,30 @@ const Q5 = (o) => {
21434
21451
  extraSlot: n,
21435
21452
  value: e
21436
21453
  }) => {
21437
- const a = !!r, c = !!t, l = !!n, s = x1(() => {
21438
- const d = {
21454
+ const a = !!r, c = !!t, d = !!n, s = x1(() => {
21455
+ const l = {
21439
21456
  sm: {
21440
21457
  left: a ? "ui-pl-7.5" : "ui-pl-2",
21441
- right: c && l ? "ui-pr-15" : c || l ? "ui-pr-7.5" : "ui-pr-2"
21458
+ right: c && d ? "ui-pr-15" : c || d ? "ui-pr-7.5" : "ui-pr-2"
21442
21459
  },
21443
21460
  md: {
21444
21461
  left: a ? "ui-pl-8.5" : "ui-pl-3",
21445
- right: c && l ? "ui-pr-17" : c || l ? "ui-pr-8.5" : "ui-pr-3"
21462
+ right: c && d ? "ui-pr-17" : c || d ? "ui-pr-8.5" : "ui-pr-3"
21446
21463
  },
21447
21464
  lg: {
21448
21465
  left: a ? "ui-pl-10" : "ui-pl-4",
21449
- right: c && l ? "ui-pr-16" : c || l ? "ui-pr-9.5" : "ui-pr-4"
21466
+ right: c && d ? "ui-pr-16" : c || d ? "ui-pr-9.5" : "ui-pr-4"
21450
21467
  }
21451
21468
  }[o];
21452
- return `${d.left} ${d.right}`.trim();
21453
- }, [o, a, c, l]), C = x1(() => (p) => p === "left" ? {
21469
+ return `${l.left} ${l.right}`.trim();
21470
+ }, [o, a, c, d]), C = x1(() => (p) => p === "left" ? {
21454
21471
  sm: "ui-left-2",
21455
21472
  md: "ui-left-2.5",
21456
21473
  lg: "ui-left-4"
21457
21474
  }[o] : p === "right" ? {
21458
- sm: l ? "ui-right-8" : "ui-right-2",
21459
- md: l ? "ui-right-9" : "ui-right-2.5",
21460
- lg: l ? "ui-right-10" : "ui-right-3"
21475
+ sm: d ? "ui-right-8" : "ui-right-2",
21476
+ md: d ? "ui-right-9" : "ui-right-2.5",
21477
+ lg: d ? "ui-right-10" : "ui-right-3"
21461
21478
  }[o] : p === "extra" ? {
21462
21479
  sm: "ui-right-2",
21463
21480
  md: "ui-right-2.5",
@@ -21466,11 +21483,11 @@ const Q5 = (o) => {
21466
21483
  sm: "ui-right-[26px]",
21467
21484
  md: "ui-right-[32px]",
21468
21485
  lg: "ui-right-[36px]"
21469
- }[o] : "", [o, c, l]);
21486
+ }[o] : "", [o, c, d]);
21470
21487
  return {
21471
21488
  hasLeftSlot: a,
21472
21489
  hasRightSlot: c,
21473
- hasExtraSlot: l,
21490
+ hasExtraSlot: d,
21474
21491
  paddingClasses: s,
21475
21492
  getIconPosition: C
21476
21493
  };
@@ -21481,30 +21498,30 @@ const Q5 = (o) => {
21481
21498
  isControlled: n,
21482
21499
  inputId: e
21483
21500
  }) => {
21484
- const a = P(() => {
21485
- const d = e || "default-input";
21486
- return document.querySelector(`input[data-input-id="${d}"]`);
21487
- }, [e]), c = P(() => {
21488
- const d = a();
21489
- d == null || d.focus();
21490
- }, [a]), l = P(() => {
21491
- const d = a();
21492
- d == null || d.blur();
21493
- }, [a]), s = P(() => {
21501
+ const a = T(() => {
21502
+ const l = e || "default-input";
21503
+ return document.querySelector(`input[data-input-id="${l}"]`);
21504
+ }, [e]), c = T(() => {
21505
+ const l = a();
21506
+ l == null || l.focus();
21507
+ }, [a]), d = T(() => {
21508
+ const l = a();
21509
+ l == null || l.blur();
21510
+ }, [a]), s = T(() => {
21494
21511
  t("");
21495
- }, [t]), C = P(() => r, [r]), p = P(
21496
- (d) => {
21497
- t(d);
21512
+ }, [t]), C = T(() => r, [r]), p = T(
21513
+ (l) => {
21514
+ t(l);
21498
21515
  },
21499
21516
  [t]
21500
21517
  );
21501
- return o0(
21518
+ return r0(
21502
21519
  o,
21503
21520
  () => ({
21504
21521
  getValue: C,
21505
21522
  setValue: p,
21506
21523
  focus: c,
21507
- blur: l,
21524
+ blur: d,
21508
21525
  clear: s,
21509
21526
  getInputElement: a
21510
21527
  }),
@@ -21512,7 +21529,7 @@ const Q5 = (o) => {
21512
21529
  C,
21513
21530
  p,
21514
21531
  c,
21515
- l,
21532
+ d,
21516
21533
  s,
21517
21534
  a,
21518
21535
  r,
@@ -21521,7 +21538,7 @@ const Q5 = (o) => {
21521
21538
  ]
21522
21539
  ), {
21523
21540
  focus: c,
21524
- blur: l,
21541
+ blur: d,
21525
21542
  clear: s,
21526
21543
  getValue: C,
21527
21544
  setValueFromRef: p
@@ -21535,7 +21552,7 @@ const Q5 = (o) => {
21535
21552
  paddingClasses: a,
21536
21553
  autosize: c = !1
21537
21554
  }) => {
21538
- const l = x1(
21555
+ const d = x1(
21539
21556
  () => ({
21540
21557
  sm: "ui-h-8 ui-text-sm ui-py-1.5",
21541
21558
  md: "ui-h-10 ui-text-sm ui-py-2",
@@ -21543,27 +21560,27 @@ const Q5 = (o) => {
21543
21560
  }),
21544
21561
  []
21545
21562
  ), s = x1(() => {
21546
- const d = [
21563
+ const l = [
21547
21564
  n ? "ui-w-full" : "ui-min-w-72",
21548
21565
  "ui-border-1 ui-!font-normal ui-border-neutral-100 ui-rounded-sm",
21549
21566
  "focus-visible:ui-outline-blue-500 ui-transition-all ui-duration-100 ui-ease-in-out",
21550
21567
  "disabled:ui-text-neutral-300 disabled:ui-bg-neutral-50",
21551
21568
  a,
21552
21569
  e ? "" : "ui-caret-transparent",
21553
- l[o],
21570
+ d[o],
21554
21571
  c ? "field-sizing-content" : "",
21555
21572
  r ? "ui-bg-red-50" : "ui-bg-white"
21556
21573
  ];
21557
- return r ? d.push("ui-border-red-500 focus-visible:ui-outline-red-500 placeholder:ui-text-red-500") : d.push("placeholder:ui-text-neutral-500"), d.filter(Boolean).join(" ");
21558
- }, [n, a, e, l, o, r]), C = x1(() => {
21559
- const d = ["ui-relative ui-w-full"];
21560
- return t ? d.push("ui-text-neutral-500") : r && d.push("ui-text-red-500"), d.join(" ");
21574
+ return r ? l.push("ui-border-red-500 focus-visible:ui-outline-red-500 placeholder:ui-text-red-500") : l.push("placeholder:ui-text-neutral-500"), l.filter(Boolean).join(" ");
21575
+ }, [n, a, e, d, o, r]), C = x1(() => {
21576
+ const l = ["ui-relative ui-w-full"];
21577
+ return t ? l.push("ui-text-neutral-500") : r && l.push("ui-text-red-500"), l.join(" ");
21561
21578
  }, [t, r]), p = x1(() => {
21562
- const d = "ui-text-sm ui-font-bold";
21563
- return r ? `${d} ui-text-red-500` : `${d} ui-text-neutral-900`;
21579
+ const l = "ui-text-sm ui-font-bold";
21580
+ return r ? `${l} ui-text-red-500` : `${l} ui-text-neutral-900`;
21564
21581
  }, [r]);
21565
21582
  return {
21566
- inputSizes: l,
21583
+ inputSizes: d,
21567
21584
  baseClasses: s,
21568
21585
  containerClasses: C,
21569
21586
  labelClasses: p
@@ -21577,11 +21594,11 @@ const Q5 = (o) => {
21577
21594
  color: e,
21578
21595
  leftSlot: a = "",
21579
21596
  rightSlot: c = "",
21580
- extraSlot: l = "",
21597
+ extraSlot: d = "",
21581
21598
  caret: s = !0,
21582
21599
  value: C,
21583
21600
  fullWidth: p = !1,
21584
- defaultValue: d = "",
21601
+ defaultValue: l = "",
21585
21602
  disabled: L = !1,
21586
21603
  onValueChange: h,
21587
21604
  onChange: w,
@@ -21595,23 +21612,23 @@ const Q5 = (o) => {
21595
21612
  ...y
21596
21613
  }, B) => {
21597
21614
  const {
21598
- value: E,
21615
+ value: R,
21599
21616
  setValue: A,
21600
21617
  isControlled: S
21601
21618
  } = u6({
21602
21619
  value: C,
21603
- defaultValue: d,
21620
+ defaultValue: l,
21604
21621
  onChange: h
21605
- }), v = (z) => {
21606
- const J = z.target.value;
21607
- A(J), w == null || w(z);
21622
+ }), v = (D) => {
21623
+ const J = D.target.value;
21624
+ A(J), w == null || w(D);
21608
21625
  }, { paddingClasses: x, getIconPosition: Z } = a6({
21609
21626
  size: n,
21610
21627
  leftSlot: a,
21611
21628
  rightSlot: c,
21612
- extraSlot: l,
21629
+ extraSlot: d,
21613
21630
  value: C
21614
- }), { baseClasses: O, containerClasses: M, labelClasses: I } = d6({
21631
+ }), { baseClasses: O, containerClasses: M, labelClasses: k } = d6({
21615
21632
  size: n,
21616
21633
  error: r,
21617
21634
  disabled: L,
@@ -21622,7 +21639,7 @@ const Q5 = (o) => {
21622
21639
  });
21623
21640
  return l6({
21624
21641
  ref: B,
21625
- currentValue: E,
21642
+ currentValue: R,
21626
21643
  setValue: A,
21627
21644
  isControlled: S,
21628
21645
  inputId: y.id
@@ -21637,7 +21654,7 @@ const Q5 = (o) => {
21637
21654
  style: b,
21638
21655
  children: [
21639
21656
  (o || V) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
21640
- o && /* @__PURE__ */ i("label", { className: I, children: o }),
21657
+ o && /* @__PURE__ */ i("label", { className: k, children: o }),
21641
21658
  V && /* @__PURE__ */ i(
21642
21659
  v1,
21643
21660
  {
@@ -21667,7 +21684,7 @@ const Q5 = (o) => {
21667
21684
  {
21668
21685
  placeholder: "Placeholder",
21669
21686
  disabled: L,
21670
- value: E,
21687
+ value: R,
21671
21688
  onChange: v,
21672
21689
  name: m,
21673
21690
  "data-input-id": y.id || "default-input",
@@ -21682,19 +21699,19 @@ const Q5 = (o) => {
21682
21699
  className: `ui-absolute ${Z("right")} ui-top-1/2 ui--translate-y-1/2`
21683
21700
  }
21684
21701
  ),
21685
- c && l && /* @__PURE__ */ i(
21702
+ c && d && /* @__PURE__ */ i(
21686
21703
  "div",
21687
21704
  {
21688
21705
  className: `ui-absolute ${Z("separator")} ui-top-1/2 ui-h-5 ui-w-[1px] ui--translate-y-1/2 ${r ? "ui-bg-red-500" : "ui-bg-neutral-100"}`
21689
21706
  }
21690
21707
  ),
21691
- l && /* @__PURE__ */ i(
21708
+ d && /* @__PURE__ */ i(
21692
21709
  "button",
21693
21710
  {
21694
21711
  onClick: f,
21695
21712
  className: `ui-absolute ${Z("extra")} ui-top-1/2 ui-flex ui--translate-y-1/2 ui-place-items-center`,
21696
21713
  type: "button",
21697
- children: /* @__PURE__ */ i(b1, { slot: l })
21714
+ children: /* @__PURE__ */ i(b1, { slot: d })
21698
21715
  }
21699
21716
  )
21700
21717
  ] }),
@@ -21715,15 +21732,15 @@ const s6 = G1(
21715
21732
  onInputChange: e,
21716
21733
  onInputFocus: a,
21717
21734
  onInputBlur: c,
21718
- className: l = "",
21735
+ className: d = "",
21719
21736
  disabled: s = !1,
21720
21737
  readOnly: C = !1,
21721
21738
  format: p = "dd/MM/yyyy",
21722
- label: d = ""
21739
+ label: l = ""
21723
21740
  }, L) => /* @__PURE__ */ i(
21724
21741
  N1,
21725
21742
  {
21726
- label: d,
21743
+ label: l,
21727
21744
  ref: L,
21728
21745
  value: o,
21729
21746
  placeholder: r,
@@ -21741,7 +21758,7 @@ const s6 = G1(
21741
21758
  onBlur: () => {
21742
21759
  !s && c && c();
21743
21760
  },
21744
- className: l,
21761
+ className: d,
21745
21762
  disabled: s,
21746
21763
  readOnly: !0
21747
21764
  }
@@ -21767,16 +21784,16 @@ const s6 = G1(
21767
21784
  "Diciembre"
21768
21785
  ],
21769
21786
  yearRange: c = 12,
21770
- renderHeader: l
21787
+ renderHeader: d
21771
21788
  }) => {
21772
21789
  const { getYearRange: s } = q1(
21773
21790
  o[0],
21774
21791
  () => {
21775
21792
  }
21776
- ), C = (d) => {
21777
- t(d);
21778
- }, p = (d, L) => {
21779
- const h = a[d.getMonth()], w = d.getFullYear();
21793
+ ), C = (l) => {
21794
+ t(l);
21795
+ }, p = (l, L) => {
21796
+ const h = a[l.getMonth()], w = l.getFullYear();
21780
21797
  switch (L) {
21781
21798
  case "years":
21782
21799
  const f = s(w, c), g = f[0], b = f[f.length - 1];
@@ -21788,14 +21805,14 @@ const s6 = G1(
21788
21805
  return `${h} ${w}`;
21789
21806
  }
21790
21807
  };
21791
- return l && o.length > 1 ? /* @__PURE__ */ i("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: l({
21808
+ return d && o.length > 1 ? /* @__PURE__ */ i("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: d({
21792
21809
  currentDate: o[0],
21793
21810
  viewMode: r[0],
21794
21811
  toggleViewMode: () => n(0),
21795
21812
  navigate: C
21796
21813
  }) }) : /* @__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: [
21797
21814
  /* @__PURE__ */ i(_1, { direction: "prev", onClick: () => t("prev") }),
21798
- /* @__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(
21815
+ /* @__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((l, L) => /* @__PURE__ */ i(
21799
21816
  "div",
21800
21817
  {
21801
21818
  className: "ui-flex ui-w-full ui-min-w-0 ui-flex-1 ui-items-center ui-justify-center ui-text-center",
@@ -21812,7 +21829,7 @@ const s6 = G1(
21812
21829
  iconSizeExtended: "3xl",
21813
21830
  colorIcon: "blue",
21814
21831
  "aria-label": `Cambiar vista a ${r[L] === "days" ? "meses" : r[L] === "months" ? "años" : "días"}`,
21815
- children: p(d, r[L])
21832
+ children: p(l, r[L])
21816
21833
  }
21817
21834
  )
21818
21835
  },
@@ -21828,7 +21845,7 @@ const s6 = G1(
21828
21845
  onDateHover: e,
21829
21846
  minDate: a,
21830
21847
  maxDate: c,
21831
- viewMode: l,
21848
+ viewMode: d,
21832
21849
  weekDays: s = ["D", "L", "M", "M", "J", "V", "S"],
21833
21850
  monthNames: C = [
21834
21851
  "Enero",
@@ -21845,7 +21862,7 @@ const s6 = G1(
21845
21862
  "Diciembre"
21846
21863
  ],
21847
21864
  startOfWeek: p = 1,
21848
- showWeekNumbers: d = !1,
21865
+ showWeekNumbers: l = !1,
21849
21866
  yearRange: L = 12,
21850
21867
  hoverDate: h,
21851
21868
  onMonthSelect: w,
@@ -21858,7 +21875,7 @@ const s6 = G1(
21858
21875
  f == null || f(j);
21859
21876
  };
21860
21877
  return /* @__PURE__ */ i("div", { className: "ui-flex ui-h-full ui-justify-center ui-p-3", children: (() => {
21861
- switch (l) {
21878
+ switch (d) {
21862
21879
  case "days":
21863
21880
  return /* @__PURE__ */ i(
21864
21881
  m9,
@@ -21872,7 +21889,7 @@ const s6 = G1(
21872
21889
  maxDate: c,
21873
21890
  weekDays: s,
21874
21891
  startOfWeek: p,
21875
- showWeekNumbers: d,
21892
+ showWeekNumbers: l,
21876
21893
  hoverDate: h,
21877
21894
  renderDay: g
21878
21895
  }
@@ -21909,11 +21926,11 @@ const s6 = G1(
21909
21926
  onDateHover: e,
21910
21927
  minDate: a,
21911
21928
  maxDate: c,
21912
- viewMode: l,
21929
+ viewMode: d,
21913
21930
  onViewModeChange: s,
21914
21931
  onNavigate: C,
21915
21932
  onMonthSelect: p,
21916
- onYearSelect: d,
21933
+ onYearSelect: l,
21917
21934
  onGoToToday: L,
21918
21935
  locale: h = "es-ES",
21919
21936
  weekDays: w = ["D", "L", "M", "M", "J", "V", "S"],
@@ -21940,10 +21957,10 @@ const s6 = G1(
21940
21957
  renderHeader: y,
21941
21958
  renderDay: B
21942
21959
  }) => {
21943
- const E = (Z) => {
21960
+ const R = (Z) => {
21944
21961
  C == null || C(Z);
21945
21962
  }, A = () => {
21946
- switch (l) {
21963
+ switch (d) {
21947
21964
  case "days":
21948
21965
  s("months");
21949
21966
  break;
@@ -21957,9 +21974,9 @@ const s6 = G1(
21957
21974
  }, S = (Z) => {
21958
21975
  p == null || p(Z);
21959
21976
  }, v = (Z) => {
21960
- d == null || d(Z);
21977
+ l == null || l(Z);
21961
21978
  }, x = () => {
21962
- switch (l) {
21979
+ switch (d) {
21963
21980
  case "days":
21964
21981
  return /* @__PURE__ */ i(
21965
21982
  m9,
@@ -22014,8 +22031,8 @@ const s6 = G1(
22014
22031
  r6,
22015
22032
  {
22016
22033
  currentDate: o,
22017
- viewMode: l,
22018
- onNavigate: E,
22034
+ viewMode: d,
22035
+ onNavigate: R,
22019
22036
  onToggleViewMode: A,
22020
22037
  onGoToToday: L,
22021
22038
  monthNames: f,
@@ -22038,11 +22055,11 @@ const s6 = G1(
22038
22055
  selectedDate: e,
22039
22056
  selectedRange: a,
22040
22057
  onDateSelect: c,
22041
- onDateHover: l,
22058
+ onDateHover: d,
22042
22059
  onViewModeChange: s,
22043
22060
  onNavigate: C,
22044
22061
  onMonthSelect: p,
22045
- onYearSelect: d,
22062
+ onYearSelect: l,
22046
22063
  onGoToToday: L,
22047
22064
  viewMode: h,
22048
22065
  minDate: w,
@@ -22055,18 +22072,18 @@ const s6 = G1(
22055
22072
  yearRange: V,
22056
22073
  hoverDate: y,
22057
22074
  closeOnSelect: B,
22058
- autoCloseRange: E,
22075
+ autoCloseRange: R,
22059
22076
  calendarsCount: A = 1,
22060
22077
  mode: S = "single",
22061
22078
  onClickSelected: v = !1,
22062
22079
  renderHeader: x,
22063
22080
  renderDay: Z
22064
22081
  }) => {
22065
- const [O, M] = Y(Array(A).fill(h)), [I, z] = Y(() => {
22082
+ const [O, M] = Y(Array(A).fill(h)), [k, D] = Y(() => {
22066
22083
  const N = [];
22067
22084
  for (let $ = 0; $ < A; $++) {
22068
- const k = new Date(n);
22069
- k.setMonth(k.getMonth() + $), N.push(k);
22085
+ const I = new Date(n);
22086
+ I.setMonth(I.getMonth() + $), N.push(I);
22070
22087
  }
22071
22088
  return N;
22072
22089
  }), { renderPortal: J } = W5(o, r, t, 1100);
@@ -22075,84 +22092,84 @@ const s6 = G1(
22075
22092
  }, [h, A]), Q(() => {
22076
22093
  const N = [];
22077
22094
  for (let $ = 0; $ < A; $++) {
22078
- const k = new Date(n);
22079
- k.setMonth(k.getMonth() + $), N.push(k);
22095
+ const I = new Date(n);
22096
+ I.setMonth(I.getMonth() + $), N.push(I);
22080
22097
  }
22081
- z(N);
22098
+ D(N);
22082
22099
  }, [n, A]);
22083
- const G = (N) => {
22100
+ const q = (N) => {
22084
22101
  const $ = O[N];
22085
- let k;
22102
+ let I;
22086
22103
  switch ($) {
22087
22104
  case "days":
22088
- k = "months";
22105
+ I = "months";
22089
22106
  break;
22090
22107
  case "months":
22091
- k = "years";
22108
+ I = "years";
22092
22109
  break;
22093
22110
  case "years":
22094
- k = "days";
22111
+ I = "days";
22095
22112
  break;
22096
22113
  default:
22097
- k = "days";
22114
+ I = "days";
22098
22115
  }
22099
22116
  const F = [...O];
22100
- F[N] = k, M(F);
22101
- }, R = (N, $) => {
22102
- const k = [...I];
22103
- k[N] = new Date(
22104
- I[N].getFullYear(),
22117
+ F[N] = I, M(F);
22118
+ }, z = (N, $) => {
22119
+ const I = [...k];
22120
+ I[N] = new Date(
22121
+ k[N].getFullYear(),
22105
22122
  $,
22106
22123
  1
22107
- ), z(k);
22124
+ ), D(I);
22108
22125
  const F = [...O];
22109
22126
  F[N] = "days", M(F), p == null || p($);
22110
- }, X = (N, $) => {
22111
- const k = [...I];
22112
- k[N] = new Date($, I[N].getMonth(), 1), z(k);
22127
+ }, K = (N, $) => {
22128
+ const I = [...k];
22129
+ I[N] = new Date($, k[N].getMonth(), 1), D(I);
22113
22130
  const F = [...O];
22114
- F[N] = "months", M(F), d == null || d($);
22131
+ F[N] = "months", M(F), l == null || l($);
22115
22132
  }, n1 = (N) => {
22116
- const $ = [...I];
22117
- $.forEach((k, F) => {
22118
- const e1 = new Date(k);
22133
+ const $ = [...k];
22134
+ $.forEach((I, F) => {
22135
+ const i1 = new Date(I);
22119
22136
  switch (O[F]) {
22120
22137
  case "days":
22121
- e1.setMonth(e1.getMonth() + (N === "next" ? 1 : -1));
22138
+ i1.setMonth(i1.getMonth() + (N === "next" ? 1 : -1));
22122
22139
  break;
22123
22140
  case "months":
22124
- e1.setFullYear(e1.getFullYear() + (N === "next" ? 1 : -1));
22141
+ i1.setFullYear(i1.getFullYear() + (N === "next" ? 1 : -1));
22125
22142
  break;
22126
22143
  case "years":
22127
- e1.setFullYear(e1.getFullYear() + (N === "next" ? 12 : -12));
22144
+ i1.setFullYear(i1.getFullYear() + (N === "next" ? 12 : -12));
22128
22145
  break;
22129
22146
  }
22130
- $[F] = e1;
22131
- }), z($), C(N);
22147
+ $[F] = i1;
22148
+ }), D($), C(N);
22132
22149
  };
22133
22150
  return J(
22134
22151
  /* @__PURE__ */ i("div", { className: "ui-relative", children: S === "range" && A > 1 ? /* @__PURE__ */ u("div", { className: "ui-overflow-hidden ui-rounded-lg ui-border ui-bg-white ui-shadow-lg", children: [
22135
22152
  /* @__PURE__ */ i(
22136
22153
  c6,
22137
22154
  {
22138
- calendarDates: I,
22155
+ calendarDates: k,
22139
22156
  viewModes: O,
22140
22157
  onNavigate: n1,
22141
- onToggleViewMode: G,
22158
+ onToggleViewMode: q,
22142
22159
  onGoToToday: L,
22143
22160
  monthNames: m,
22144
22161
  yearRange: V,
22145
22162
  renderHeader: x
22146
22163
  }
22147
22164
  ),
22148
- /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: I.map((N, $) => /* @__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(
22165
+ /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: k.map((N, $) => /* @__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(
22149
22166
  p6,
22150
22167
  {
22151
22168
  currentDate: N,
22152
22169
  selectedDate: e,
22153
22170
  selectedRange: a,
22154
22171
  onDateSelect: c,
22155
- onDateHover: l,
22172
+ onDateHover: d,
22156
22173
  minDate: w,
22157
22174
  maxDate: f,
22158
22175
  viewMode: O[$],
@@ -22162,8 +22179,8 @@ const s6 = G1(
22162
22179
  showWeekNumbers: j,
22163
22180
  yearRange: V,
22164
22181
  hoverDate: y,
22165
- onMonthSelect: (k) => R($, k),
22166
- onYearSelect: (k) => X($, k),
22182
+ onMonthSelect: (I) => z($, I),
22183
+ onYearSelect: (I) => K($, I),
22167
22184
  renderDay: Z
22168
22185
  }
22169
22186
  ) }) }, $)) }),
@@ -22178,14 +22195,14 @@ const s6 = G1(
22178
22195
  selectedDate: e,
22179
22196
  selectedRange: a,
22180
22197
  onDateSelect: c,
22181
- onDateHover: l,
22198
+ onDateHover: d,
22182
22199
  minDate: w,
22183
22200
  maxDate: f,
22184
22201
  viewMode: h,
22185
22202
  onViewModeChange: s,
22186
22203
  onNavigate: C,
22187
22204
  onMonthSelect: p,
22188
- onYearSelect: d,
22205
+ onYearSelect: l,
22189
22206
  onGoToToday: L,
22190
22207
  locale: g,
22191
22208
  weekDays: b,
@@ -22195,7 +22212,7 @@ const s6 = G1(
22195
22212
  yearRange: V,
22196
22213
  hoverDate: y,
22197
22214
  closeOnSelect: B,
22198
- autoCloseRange: E,
22215
+ autoCloseRange: R,
22199
22216
  renderHeader: x,
22200
22217
  renderDay: Z
22201
22218
  }
@@ -22209,7 +22226,7 @@ const s6 = G1(
22209
22226
  onDateChange: e,
22210
22227
  onRangeChange: a,
22211
22228
  minDate: c,
22212
- maxDate: l,
22229
+ maxDate: d,
22213
22230
  locale: s = "es-ES",
22214
22231
  weekDays: C = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"],
22215
22232
  monthNames: p = [
@@ -22226,7 +22243,7 @@ const s6 = G1(
22226
22243
  "Noviembre",
22227
22244
  "Diciembre"
22228
22245
  ],
22229
- label: d = "",
22246
+ label: l = "",
22230
22247
  startOfWeek: L = 1,
22231
22248
  className: h = "",
22232
22249
  inputClassName: w = "",
@@ -22239,7 +22256,7 @@ const s6 = G1(
22239
22256
  rangeStartClassName: V = "bg-blue-500 text-white rounded-l-full",
22240
22257
  rangeEndClassName: y = "bg-blue-500 text-white rounded-r-full",
22241
22258
  todayClassName: B = "border border-blue-500",
22242
- showWeekNumbers: E = !1,
22259
+ showWeekNumbers: R = !1,
22243
22260
  yearRange: A = 12,
22244
22261
  initialViewMode: S = "days",
22245
22262
  closeOnSelect: v = !1,
@@ -22247,24 +22264,24 @@ const s6 = G1(
22247
22264
  placeholder: Z = "Seleccionar fecha",
22248
22265
  format: O = "dd/MM/yyyy",
22249
22266
  calendarsCount: M = 1,
22250
- renderHeader: I,
22251
- renderDay: z
22252
- } = o, { state: J, selectedDate: G, selectedRange: R, inputRef: X, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22253
- R,
22267
+ renderHeader: k,
22268
+ renderDay: D
22269
+ } = o, { state: J, selectedDate: q, selectedRange: z, inputRef: K, isPortalReady: n1, actions: N } = Q5(o), { handleRangeSelection: $ } = f9(
22270
+ z,
22254
22271
  N.setSelectedRange,
22255
22272
  c,
22256
- l,
22273
+ d,
22257
22274
  x
22258
- ), k = (_) => {
22275
+ ), I = (_) => {
22259
22276
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime()))
22260
22277
  return "";
22261
- const u1 = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0"), K = _.getFullYear();
22262
- return O.replace("dd", u1).replace("MM", T).replace("yyyy", K.toString());
22278
+ const u1 = _.getDate().toString().padStart(2, "0"), P = (_.getMonth() + 1).toString().padStart(2, "0"), X = _.getFullYear();
22279
+ return O.replace("dd", u1).replace("MM", P).replace("yyyy", X.toString());
22263
22280
  }, F = (_) => {
22264
22281
  if (!_ || !_.start && !_.end) return "";
22265
- const u1 = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), T = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
22266
- return u1 && T ? `${k(_.start)} - ${k(_.end)}` : u1 ? k(_.start) : T ? k(_.end) : "";
22267
- }, e1 = (_) => {
22282
+ const u1 = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), P = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
22283
+ return u1 && P ? `${I(_.start)} - ${I(_.end)}` : u1 ? I(_.start) : P ? I(_.end) : "";
22284
+ }, i1 = (_) => {
22268
22285
  if (!_ || !(_ instanceof Date) || isNaN(_.getTime())) {
22269
22286
  console.warn("DatePicker: Se recibió una fecha inválida:", _);
22270
22287
  return;
@@ -22276,15 +22293,15 @@ const s6 = G1(
22276
22293
  return;
22277
22294
  }
22278
22295
  N.setHoverDate(_);
22279
- }, p1 = () => r === "single" ? k(G) : F(R);
22296
+ }, p1 = () => r === "single" ? I(q) : F(z);
22280
22297
  return /* @__PURE__ */ u("div", { className: `relative ${h}`, children: [
22281
22298
  /* @__PURE__ */ i(
22282
22299
  s6,
22283
22300
  {
22284
- ref: X,
22301
+ ref: K,
22285
22302
  value: p1(),
22286
22303
  placeholder: Z,
22287
- label: d,
22304
+ label: l,
22288
22305
  isOpen: J.isOpen,
22289
22306
  onInputClick: N.openPicker,
22290
22307
  className: w,
@@ -22298,9 +22315,9 @@ const s6 = G1(
22298
22315
  onClose: N.closePicker,
22299
22316
  portalPosition: J.portalPosition,
22300
22317
  currentDate: J.currentDate,
22301
- selectedDate: G,
22302
- selectedRange: R,
22303
- onDateSelect: e1,
22318
+ selectedDate: q,
22319
+ selectedRange: z,
22320
+ onDateSelect: i1,
22304
22321
  onDateHover: a1,
22305
22322
  onViewModeChange: N.setViewMode,
22306
22323
  onNavigate: N.navigate,
@@ -22309,20 +22326,20 @@ const s6 = G1(
22309
22326
  onGoToToday: N.goToToday,
22310
22327
  viewMode: J.viewMode,
22311
22328
  minDate: c,
22312
- maxDate: l,
22329
+ maxDate: d,
22313
22330
  locale: s,
22314
22331
  weekDays: C,
22315
22332
  monthNames: p,
22316
22333
  startOfWeek: L,
22317
- showWeekNumbers: E,
22334
+ showWeekNumbers: R,
22318
22335
  yearRange: A,
22319
22336
  hoverDate: J.hoverDate,
22320
22337
  closeOnSelect: v,
22321
22338
  autoCloseRange: x,
22322
22339
  calendarsCount: M,
22323
22340
  mode: r,
22324
- renderHeader: I,
22325
- renderDay: z
22341
+ renderHeader: k,
22342
+ renderDay: D
22326
22343
  }
22327
22344
  )
22328
22345
  ] });
@@ -22330,16 +22347,16 @@ const s6 = G1(
22330
22347
  t && /* @__PURE__ */ i(j1, { name: t, background: !0, color: "blue" }),
22331
22348
  /* @__PURE__ */ i("h2", { className: U("ui-text-2xl ui-font-bold", r), children: o })
22332
22349
  ] }), v9 = (o, r = {}) => {
22333
- const { enterDelay: t = 10, exitDelay: n = 300 } = r, [e, a] = Y(!1), [c, l] = Y(!1);
22350
+ const { enterDelay: t = 10, exitDelay: n = 300 } = r, [e, a] = Y(!1), [c, d] = Y(!1);
22334
22351
  return Q(() => {
22335
22352
  if (o) {
22336
22353
  a(!0);
22337
22354
  const s = setTimeout(() => {
22338
- l(!0);
22355
+ d(!0);
22339
22356
  }, t);
22340
22357
  return () => clearTimeout(s);
22341
22358
  } else {
22342
- l(!1);
22359
+ d(!1);
22343
22360
  const s = setTimeout(() => a(!1), n);
22344
22361
  return () => clearTimeout(s);
22345
22362
  }
@@ -22352,7 +22369,7 @@ const s6 = G1(
22352
22369
  document.body.style.overflow = "";
22353
22370
  };
22354
22371
  }, [o, r]);
22355
- }, J0 = (o, r, t = !1) => {
22372
+ }, X0 = (o, r, t = !1) => {
22356
22373
  Q(() => {
22357
22374
  if (!o || t) return;
22358
22375
  const n = (e) => {
@@ -22372,8 +22389,8 @@ const s6 = G1(
22372
22389
  "[tabindex]:not([tabindex='-1'])"
22373
22390
  ], a = r.current.querySelectorAll(
22374
22391
  n.join(",")
22375
- ), c = a[0], l = a[a.length - 1], s = (C) => {
22376
- C.key === "Tab" && (C.shiftKey ? document.activeElement === c && (C.preventDefault(), l == null || l.focus()) : document.activeElement === l && (C.preventDefault(), c == null || c.focus()));
22392
+ ), c = a[0], d = a[a.length - 1], s = (C) => {
22393
+ C.key === "Tab" && (C.shiftKey ? document.activeElement === c && (C.preventDefault(), d == null || d.focus()) : document.activeElement === d && (C.preventDefault(), c == null || c.focus()));
22377
22394
  };
22378
22395
  return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
22379
22396
  }, [o, t, r]);
@@ -22412,7 +22429,7 @@ const s6 = G1(
22412
22429
  elementId: e,
22413
22430
  elementType: a,
22414
22431
  closeOnClickOutside: c = !0,
22415
- excludeSelectors: l = [],
22432
+ excludeSelectors: d = [],
22416
22433
  onOutsideClick: s,
22417
22434
  disableSameTypeCheck: C = !1
22418
22435
  }) => {
@@ -22420,12 +22437,12 @@ const s6 = G1(
22420
22437
  if (!o || r || !c) return;
22421
22438
  const p = (L) => {
22422
22439
  var V, y;
22423
- const h = L.target, w = (V = t.current) == null ? void 0 : V.contains(h), f = (y = n == null ? void 0 : n.current) == null ? void 0 : y.contains(h), g = e ? h.closest(`[data-${a}-id="${e}"]`) : !1, b = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, m = l.some((B) => h.closest(B)), j = (() => {
22440
+ const h = L.target, w = (V = t.current) == null ? void 0 : V.contains(h), f = (y = n == null ? void 0 : n.current) == null ? void 0 : y.contains(h), g = e ? h.closest(`[data-${a}-id="${e}"]`) : !1, b = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, m = d.some((B) => h.closest(B)), j = (() => {
22424
22441
  let B = h;
22425
22442
  for (; B && B !== document.body; ) {
22426
- const E = B.attributes;
22427
- for (let S = 0; S < E.length; S++) {
22428
- const v = E[S];
22443
+ const R = B.attributes;
22444
+ for (let S = 0; S < R.length; S++) {
22445
+ const v = R[S];
22429
22446
  if (v.name.startsWith("data-") && v.name.endsWith("-id")) {
22430
22447
  if (a === "dropdown" && (v.name.includes("popup") || v.name.includes("dropdown")))
22431
22448
  continue;
@@ -22451,11 +22468,11 @@ const s6 = G1(
22451
22468
  return !1;
22452
22469
  })();
22453
22470
  w || f || g || b || m || j || s();
22454
- }, d = (L) => {
22471
+ }, l = (L) => {
22455
22472
  L.detail.id === e && s();
22456
22473
  };
22457
- return document.addEventListener("mousedown", p, !0), document.addEventListener("click", p), e && document.addEventListener(`close-${a}`, d), () => {
22458
- document.removeEventListener("mousedown", p, !0), document.removeEventListener("click", p), e && document.removeEventListener(`close-${a}`, d);
22474
+ return document.addEventListener("mousedown", p, !0), document.addEventListener("click", p), e && document.addEventListener(`close-${a}`, l), () => {
22475
+ document.removeEventListener("mousedown", p, !0), document.removeEventListener("click", p), e && document.removeEventListener(`close-${a}`, l);
22459
22476
  };
22460
22477
  }, [
22461
22478
  o,
@@ -22465,7 +22482,7 @@ const s6 = G1(
22465
22482
  n,
22466
22483
  e,
22467
22484
  a,
22468
- l,
22485
+ d,
22469
22486
  s,
22470
22487
  C
22471
22488
  ]);
@@ -22481,11 +22498,11 @@ const s6 = G1(
22481
22498
  children: e,
22482
22499
  titleIcon: a,
22483
22500
  showCloseButton: c = !0,
22484
- disableEscapeClose: l = !1,
22501
+ disableEscapeClose: d = !1,
22485
22502
  disableOutsideTab: s = !1,
22486
22503
  position: C = "right",
22487
22504
  className: p,
22488
- scrollable: d = !0,
22505
+ scrollable: l = !0,
22489
22506
  cancelButtonText: L = "Cancelar",
22490
22507
  successButtonText: h = "Guardar",
22491
22508
  onCancel: w = () => {
@@ -22499,8 +22516,8 @@ const s6 = G1(
22499
22516
  disabledSuccessButton: j = !1,
22500
22517
  disabledCancelButton: V = !1
22501
22518
  }) => {
22502
- const y = H9(), { isVisible: B, isAnimating: E } = v9(o), A = o1(null);
22503
- j9(o), J0(o, r, l), V9(o, A, !s);
22519
+ const y = H9(), { isVisible: B, isAnimating: R } = v9(o), A = o1(null);
22520
+ j9(o), X0(o, r, d), V9(o, A, !s);
22504
22521
  const S = () => {
22505
22522
  w && w(), H && r();
22506
22523
  }, v = () => {
@@ -22536,7 +22553,7 @@ const s6 = G1(
22536
22553
  C === "right" ? "ui-ml-auto" : "ui-mr-auto"
22537
22554
  ),
22538
22555
  style: {
22539
- transform: C === "right" ? E ? "translateX(0)" : "translateX(100%)" : E ? "translateX(0)" : "translateX(-100%)"
22556
+ transform: C === "right" ? R ? "translateX(0)" : "translateX(100%)" : R ? "translateX(0)" : "translateX(-100%)"
22540
22557
  },
22541
22558
  children: /* @__PURE__ */ u(m1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
22542
22559
  /* @__PURE__ */ i(m1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: t && /* @__PURE__ */ i(b9, { title: t, icon: a }) }) }),
@@ -22545,8 +22562,8 @@ const s6 = G1(
22545
22562
  m1.Body,
22546
22563
  {
22547
22564
  fullHeight: !0,
22548
- className: U("ui-p-4", d ? "ui-overflow-y-auto" : ""),
22549
- scrollable: d,
22565
+ className: U("ui-p-4", l ? "ui-overflow-y-auto" : ""),
22566
+ scrollable: l,
22550
22567
  children: e
22551
22568
  }
22552
22569
  ),
@@ -22572,12 +22589,12 @@ const s6 = G1(
22572
22589
  current: e = !1,
22573
22590
  uppercase: a = !1,
22574
22591
  color: c = "blue",
22575
- "data-option-value": l,
22592
+ "data-option-value": d,
22576
22593
  iconColor: s
22577
22594
  }) => {
22578
22595
  const C = (w) => {
22579
22596
  n || t == null || t(w);
22580
- }, [p, d] = Y(!1), L = C1(
22597
+ }, [p, l] = Y(!1), L = C1(
22581
22598
  "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",
22582
22599
  {
22583
22600
  variants: {
@@ -22613,12 +22630,12 @@ const s6 = G1(
22613
22630
  disabled: n
22614
22631
  })} ${a ? "ui-uppercase" : ""} ui-leading-none`,
22615
22632
  onClick: C,
22616
- "data-option-value": l,
22633
+ "data-option-value": d,
22617
22634
  onMouseEnter: () => {
22618
- d(!0);
22635
+ l(!0);
22619
22636
  },
22620
22637
  onMouseLeave: () => {
22621
- d(!1);
22638
+ l(!1);
22622
22639
  },
22623
22640
  children: [
22624
22641
  /* @__PURE__ */ i(
@@ -22643,12 +22660,12 @@ const s6 = G1(
22643
22660
  uppercase: e = !1,
22644
22661
  color: a = "blue",
22645
22662
  "data-option-value": c,
22646
- iconColor: l,
22663
+ iconColor: d,
22647
22664
  checkboxProps: s,
22648
22665
  isGroupTitle: C = !1,
22649
22666
  groupTitle: p
22650
22667
  }) => {
22651
- const [d, L] = Y(!1), h = C1(
22668
+ const [l, L] = Y(!1), h = C1(
22652
22669
  "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",
22653
22670
  {
22654
22671
  variants: {
@@ -22723,17 +22740,17 @@ const s6 = G1(
22723
22740
  valueName: e = "id",
22724
22741
  currentValue: a,
22725
22742
  className: c,
22726
- children: l,
22743
+ children: d,
22727
22744
  withCheckbox: s = !1,
22728
22745
  onCheckboxChange: C
22729
- }) => o.length === 0 && !l ? null : /* @__PURE__ */ i(
22746
+ }) => o.length === 0 && !d ? null : /* @__PURE__ */ i(
22730
22747
  "ul",
22731
22748
  {
22732
22749
  className: U(
22733
22750
  "ui-m-0 ui-flex ui-min-w-max ui-list-none ui-flex-col ui-p-0 ui-py-2",
22734
22751
  c
22735
22752
  ),
22736
- children: l || o.map((p) => s ? /* @__PURE__ */ i(
22753
+ children: d || o.map((p) => s ? /* @__PURE__ */ i(
22737
22754
  k9,
22738
22755
  {
22739
22756
  icon: p.icon || r,
@@ -22741,7 +22758,7 @@ const s6 = G1(
22741
22758
  current: a === p[e],
22742
22759
  checkboxProps: {
22743
22760
  checked: p.checked || !1,
22744
- onChange: (d) => C == null ? void 0 : C(p[e], d),
22761
+ onChange: (l) => C == null ? void 0 : C(p[e], l),
22745
22762
  disabled: p.disabled
22746
22763
  },
22747
22764
  children: n && p[n]
@@ -22751,7 +22768,7 @@ const s6 = G1(
22751
22768
  O9,
22752
22769
  {
22753
22770
  icon: p.icon || r,
22754
- onClick: (d) => t == null ? void 0 : t(p, d),
22771
+ onClick: (l) => t == null ? void 0 : t(p, l),
22755
22772
  disabled: p.disabled,
22756
22773
  current: a === p[e],
22757
22774
  children: n && p[n]
@@ -22759,8 +22776,8 @@ const s6 = G1(
22759
22776
  p.id
22760
22777
  ))
22761
22778
  }
22762
- ), n0 = /* @__PURE__ */ new Set(), f6 = (o) => {
22763
- n0.forEach((r) => {
22779
+ ), e0 = /* @__PURE__ */ new Set(), f6 = (o) => {
22780
+ e0.forEach((r) => {
22764
22781
  if (r !== o) {
22765
22782
  const t = new CustomEvent("close-dropdown", { detail: { id: r } });
22766
22783
  document.dispatchEvent(t);
@@ -22774,51 +22791,51 @@ const s6 = G1(
22774
22791
  idName: e = "id",
22775
22792
  onValueChange: a,
22776
22793
  onOptionSelect: c,
22777
- searchable: l = !1,
22794
+ searchable: d = !1,
22778
22795
  closeOnClickOutside: s = !0,
22779
22796
  dropdownId: C,
22780
22797
  disabled: p = !1,
22781
- multiple: d = !1,
22798
+ multiple: l = !1,
22782
22799
  maxSelectedItems: L,
22783
22800
  absolute: h = !1,
22784
22801
  onOpenChange: w,
22785
22802
  withCheckbox: f = !1
22786
22803
  }) => {
22787
- const g = t9(), b = C || `dropdown-${g}`, [m, H] = Y(!1), [j, V] = Y(!1), [y, B] = Y(""), [E, A] = Y("bottom"), [S, v] = Y({}), x = o1(null), Z = o1(null), O = o1(null), M = P(
22788
- (T) => T == null ? [] : Array.isArray(T) ? T : [T],
22804
+ const g = t9(), b = C || `dropdown-${g}`, [m, H] = Y(!1), [j, V] = Y(!1), [y, B] = Y(""), [R, A] = Y("bottom"), [S, v] = Y({}), x = o1(null), Z = o1(null), O = o1(null), M = T(
22805
+ (P) => P == null ? [] : Array.isArray(P) ? P : [P],
22789
22806
  []
22790
- ), I = P(
22791
- (T) => T == null || T === "" ? "" : Array.isArray(T) ? T[0] || "" : T,
22807
+ ), k = T(
22808
+ (P) => P == null || P === "" ? "" : Array.isArray(P) ? P[0] || "" : P,
22792
22809
  []
22793
- ), [z, J] = Y(() => d ? M(r) : I(r)), G = o !== void 0, R = G ? o : z, X = P(
22794
- (T) => {
22795
- G || J(T), a == null || a(T);
22810
+ ), [D, J] = Y(() => l ? M(r) : k(r)), q = o !== void 0, z = q ? o : D, K = T(
22811
+ (P) => {
22812
+ q || J(P), a == null || a(P);
22796
22813
  },
22797
- [G, a]
22814
+ [q, a]
22798
22815
  );
22799
22816
  Q(() => {
22800
- if (G && o !== void 0)
22801
- if (d) {
22802
- const T = M(o);
22803
- J((K) => JSON.stringify(K) !== JSON.stringify(T) ? T : K);
22817
+ if (q && o !== void 0)
22818
+ if (l) {
22819
+ const P = M(o);
22820
+ J((X) => JSON.stringify(X) !== JSON.stringify(P) ? P : X);
22804
22821
  } else {
22805
- const T = I(o);
22806
- J((K) => K !== T ? T : K);
22822
+ const P = k(o);
22823
+ J((X) => X !== P ? P : X);
22807
22824
  }
22808
- }, [o, G, d, M, I]);
22809
- const n1 = d ? t.filter((T) => M(R).includes(T[e])) : [
22810
- t.find((T) => R === "" || R === null || R === void 0 ? !1 : T[e] === -1 ? R === -1 || R === "-1" : T[e] === R)
22825
+ }, [o, q, l, M, k]);
22826
+ const n1 = l ? t.filter((P) => M(z).includes(P[e])) : [
22827
+ t.find((P) => z === "" || z === null || z === void 0 ? !1 : P[e] === -1 ? z === -1 || z === "-1" : P[e] === z)
22811
22828
  ].filter(Boolean), N = (() => {
22812
- if (!l || !y)
22829
+ if (!d || !y)
22813
22830
  return t.filter((l1) => {
22814
- if (d) {
22815
- const d1 = M(R).includes(l1[e]);
22831
+ if (l) {
22832
+ const d1 = M(z).includes(l1[e]);
22816
22833
  return f ? !0 : !d1;
22817
22834
  }
22818
- return !(l1[e] === -1 && (R === -1 || R === "-1"));
22835
+ return !(l1[e] === -1 && (z === -1 || z === "-1"));
22819
22836
  });
22820
- const T = y.toLowerCase(), K = t.filter((l1) => l1.isGroupTitle ? !1 : l1[n].toLowerCase().includes(T)), i1 = [], W = /* @__PURE__ */ new Set();
22821
- return K.forEach((l1) => {
22837
+ const P = y.toLowerCase(), X = t.filter((l1) => l1.isGroupTitle ? !1 : l1[n].toLowerCase().includes(P)), e1 = [], W = /* @__PURE__ */ new Set();
22838
+ return X.forEach((l1) => {
22822
22839
  const d1 = t.indexOf(l1);
22823
22840
  let r1 = null;
22824
22841
  for (let s1 = d1 - 1; s1 >= 0; s1--)
@@ -22826,31 +22843,31 @@ const s6 = G1(
22826
22843
  r1 = t[s1];
22827
22844
  break;
22828
22845
  }
22829
- r1 && !W.has(r1[e]) && (i1.push(r1), W.add(r1[e])), i1.push(l1);
22830
- }), i1;
22831
- })(), $ = P(() => {
22832
- var i1, W;
22833
- const T = (i1 = O.current) == null ? void 0 : i1.querySelector("input");
22834
- return T || ((W = O.current) == null ? void 0 : W.querySelector(
22846
+ r1 && !W.has(r1[e]) && (e1.push(r1), W.add(r1[e])), e1.push(l1);
22847
+ }), e1;
22848
+ })(), $ = T(() => {
22849
+ var e1, W;
22850
+ const P = (e1 = O.current) == null ? void 0 : e1.querySelector("input");
22851
+ return P || ((W = O.current) == null ? void 0 : W.querySelector(
22835
22852
  '[data-dropdown-input="true"]'
22836
22853
  ));
22837
- }, []), k = P(() => {
22838
- const T = $();
22839
- T && requestAnimationFrame(() => {
22854
+ }, []), I = T(() => {
22855
+ const P = $();
22856
+ P && requestAnimationFrame(() => {
22840
22857
  var z1;
22841
- const K = T.getBoundingClientRect(), i1 = window.innerHeight;
22858
+ const X = P.getBoundingClientRect(), e1 = window.innerHeight;
22842
22859
  let W = 0;
22843
22860
  Z.current && (W = Z.current.offsetHeight), W === 0 && (W = Math.min(200, N.length * 40));
22844
- const l1 = i1 - K.bottom, d1 = K.top, r1 = l1 < W && d1 > l1 ? "top" : "bottom";
22861
+ const l1 = e1 - X.bottom, d1 = X.top, r1 = l1 < W && d1 > l1 ? "top" : "bottom";
22845
22862
  A(r1);
22846
- let s1 = 0, B1 = 0, k1 = K.width;
22863
+ let s1 = 0, B1 = 0, k1 = X.width;
22847
22864
  if (!h)
22848
- r1 === "bottom" ? s1 = K.bottom + 4 : s1 = K.top - W - 4, B1 = K.left;
22865
+ r1 === "bottom" ? s1 = X.bottom + 4 : s1 = X.top - W - 4, B1 = X.left;
22849
22866
  else {
22850
22867
  const f1 = (z1 = O.current) == null ? void 0 : z1.getBoundingClientRect();
22851
22868
  if (!f1) return;
22852
- const T1 = K.top - f1.top, H1 = K.left - f1.left;
22853
- r1 === "bottom" ? s1 = T1 + K.height + 4 : s1 = T1 - W - 4, B1 = H1;
22869
+ const T1 = X.top - f1.top, H1 = X.left - f1.left;
22870
+ r1 === "bottom" ? s1 = T1 + X.height + 4 : s1 = T1 - W - 4, B1 = H1;
22854
22871
  }
22855
22872
  const V1 = 1100, I1 = parseInt(b.replace(/\D/g, "")) || 0, P1 = V1 + I1 % 100, X1 = {
22856
22873
  position: h ? "absolute" : "fixed",
@@ -22861,54 +22878,54 @@ const s6 = G1(
22861
22878
  };
22862
22879
  v(X1);
22863
22880
  });
22864
- }, [$, N.length, b, h]), F = P(() => {
22881
+ }, [$, N.length, b, h]), F = T(() => {
22865
22882
  if (!Z.current || !n1.length)
22866
22883
  return;
22867
- const K = Z.current.querySelector(".ui-overflow-y-auto");
22868
- if (!K)
22884
+ const X = Z.current.querySelector(".ui-overflow-y-auto");
22885
+ if (!X)
22869
22886
  return;
22870
- const i1 = n1[0];
22871
- if (!i1) return;
22872
- const W = K.querySelector(
22873
- `[data-option-value="${i1[e]}"]`
22887
+ const e1 = n1[0];
22888
+ if (!e1) return;
22889
+ const W = X.querySelector(
22890
+ `[data-option-value="${e1[e]}"]`
22874
22891
  );
22875
22892
  if (!W)
22876
22893
  return;
22877
- const l1 = K.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22878
- K.scrollTo({
22894
+ const l1 = X.clientHeight, d1 = W.offsetTop, r1 = W.clientHeight, s1 = d1 - l1 / 2 + r1 / 2;
22895
+ X.scrollTo({
22879
22896
  top: Math.max(0, s1),
22880
22897
  behavior: "smooth"
22881
22898
  });
22882
- }, [n1, n]), e1 = (T) => {
22883
- T && T.stopPropagation(), !p && (m ? a1() : (f6(b), B(""), V(!1), k(), setTimeout(() => {
22884
- H(!0), n0.add(b), setTimeout(() => {
22885
- k(), setTimeout(() => {
22899
+ }, [n1, n]), i1 = (P) => {
22900
+ P && P.stopPropagation(), !p && (m ? a1() : (f6(b), B(""), V(!1), I(), setTimeout(() => {
22901
+ H(!0), e0.add(b), setTimeout(() => {
22902
+ I(), setTimeout(() => {
22886
22903
  F();
22887
22904
  }, 50);
22888
22905
  }, 50);
22889
22906
  }, 50)));
22890
22907
  }, a1 = () => {
22891
22908
  V(!0), setTimeout(() => {
22892
- H(!1), V(!1), n0.delete(b);
22909
+ H(!1), V(!1), e0.delete(b);
22893
22910
  }, 150);
22894
- }, p1 = (T, K) => {
22895
- if (K.stopPropagation(), !T.disabled) {
22896
- if (d) {
22897
- const i1 = M(R), W = T[e];
22898
- if (L && i1.length >= L && !i1.includes(W))
22911
+ }, p1 = (P, X) => {
22912
+ if (X.stopPropagation(), !P.disabled) {
22913
+ if (l) {
22914
+ const e1 = M(z), W = P[e];
22915
+ if (L && e1.length >= L && !e1.includes(W))
22899
22916
  return;
22900
- const l1 = i1.includes(W) ? i1.filter((d1) => d1 !== W) : [...i1, W];
22901
- X(l1);
22917
+ const l1 = e1.includes(W) ? e1.filter((d1) => d1 !== W) : [...e1, W];
22918
+ K(l1);
22902
22919
  } else {
22903
- const i1 = T[e] === -1 ? -1 : T[e];
22904
- X(i1), B(""), a1();
22920
+ const e1 = P[e] === -1 ? -1 : P[e];
22921
+ K(e1), B(""), a1();
22905
22922
  }
22906
- c == null || c(T);
22923
+ c == null || c(P);
22907
22924
  }
22908
- }, _ = (T) => {
22909
- B(T.target.value);
22910
- }, u1 = (T) => {
22911
- T.stopPropagation(), X(d ? [] : ""), B("");
22925
+ }, _ = (P) => {
22926
+ B(P.target.value);
22927
+ }, u1 = (P) => {
22928
+ P.stopPropagation(), K(l ? [] : ""), B("");
22912
22929
  };
22913
22930
  return Q(() => {
22914
22931
  w == null || w(m);
@@ -22930,48 +22947,48 @@ const s6 = G1(
22930
22947
  }, 0);
22931
22948
  }
22932
22949
  }), Q(() => {
22933
- const T = () => {
22950
+ const P = () => {
22934
22951
  m && a1();
22935
22952
  };
22936
- return document.addEventListener("close-all-dropdowns", T), () => {
22937
- document.removeEventListener("close-all-dropdowns", T);
22953
+ return document.addEventListener("close-all-dropdowns", P), () => {
22954
+ document.removeEventListener("close-all-dropdowns", P);
22938
22955
  };
22939
22956
  }, [m, a1]), Q(() => {
22940
22957
  if (m) {
22941
- const T = () => {
22942
- k();
22943
- }, K = () => {
22944
- m && !j && k();
22958
+ const P = () => {
22959
+ I();
22960
+ }, X = () => {
22961
+ m && !j && I();
22945
22962
  };
22946
- return window.addEventListener("resize", T), window.addEventListener("scroll", K, !1), document.addEventListener("scroll", K, !1), () => {
22947
- window.removeEventListener("resize", T), window.removeEventListener("scroll", K, !1), document.removeEventListener("scroll", K, !1);
22963
+ return window.addEventListener("resize", P), window.addEventListener("scroll", X, !1), document.addEventListener("scroll", X, !1), () => {
22964
+ window.removeEventListener("resize", P), window.removeEventListener("scroll", X, !1), document.removeEventListener("scroll", X, !1);
22948
22965
  };
22949
22966
  }
22950
- }, [m, k, j]), {
22967
+ }, [m, I, j]), {
22951
22968
  // Estado
22952
22969
  isOpen: m,
22953
22970
  isClosing: j,
22954
22971
  searchValue: y,
22955
- selectedValue: R,
22972
+ selectedValue: z,
22956
22973
  selectedOptions: n1,
22957
22974
  filteredOptions: N,
22958
- position: E,
22975
+ position: R,
22959
22976
  dropdownStyle: S,
22960
- isControlled: G,
22961
- multiple: d,
22977
+ isControlled: q,
22978
+ multiple: l,
22962
22979
  // Referencias
22963
22980
  inputRef: x,
22964
22981
  dropdownRef: Z,
22965
22982
  containerRef: O,
22966
22983
  dropdownUniqueId: b,
22967
22984
  // Funciones
22968
- toggleDropdown: e1,
22985
+ toggleDropdown: i1,
22969
22986
  closeDropdown: a1,
22970
22987
  handleOptionSelect: p1,
22971
22988
  handleSearchChange: _,
22972
22989
  handleClear: u1,
22973
- calculatePosition: k,
22974
- setValue: X,
22990
+ calculatePosition: I,
22991
+ setValue: K,
22975
22992
  scrollToSelectedOption: F,
22976
22993
  normalizeToArray: M
22977
22994
  };
@@ -22983,7 +23000,7 @@ const s6 = G1(
22983
23000
  variant: e = "button",
22984
23001
  borderable: a,
22985
23002
  rounded: c = !1,
22986
- badge: l = !1,
23003
+ badge: d = !1,
22987
23004
  color: s,
22988
23005
  ...C
22989
23006
  }) => /* @__PURE__ */ i(
@@ -23012,11 +23029,11 @@ const s6 = G1(
23012
23029
  toggleDropdown: e,
23013
23030
  isOpen: a,
23014
23031
  isOpening: c,
23015
- setIsOpening: l,
23032
+ setIsOpening: d,
23016
23033
  customInputRef: s,
23017
23034
  disabled: C,
23018
23035
  error: p,
23019
- helperText: d,
23036
+ helperText: l,
23020
23037
  rightSlot: L,
23021
23038
  valueName: h,
23022
23039
  idName: w
@@ -23030,9 +23047,9 @@ const s6 = G1(
23030
23047
  const V = setTimeout(() => {
23031
23048
  const y = H.current;
23032
23049
  if (y) {
23033
- const B = y.scrollHeight, E = y.clientHeight;
23050
+ const B = y.scrollHeight, R = y.clientHeight;
23034
23051
  if (b === null) {
23035
- m(E);
23052
+ m(R);
23036
23053
  return;
23037
23054
  }
23038
23055
  const A = B > b;
@@ -23053,7 +23070,7 @@ const s6 = G1(
23053
23070
  c || e(j);
23054
23071
  },
23055
23072
  onFocus: () => {
23056
- !a && !c && (l(!0), e());
23073
+ !a && !c && (d(!0), e());
23057
23074
  },
23058
23075
  tabIndex: C ? -1 : 0,
23059
23076
  children: [
@@ -23094,7 +23111,7 @@ const s6 = G1(
23094
23111
  }
23095
23112
  ),
23096
23113
  p && /* @__PURE__ */ i("p", { className: "ui-mt-1 ui-text-sm ui-text-red-600", children: p }),
23097
- d && /* @__PURE__ */ i("p", { className: "ui-mt-1 ui-text-sm ui-text-gray-500", children: d })
23114
+ l && /* @__PURE__ */ i("p", { className: "ui-mt-1 ui-text-sm ui-text-gray-500", children: l })
23098
23115
  ] });
23099
23116
  }, F1 = G1(
23100
23117
  ({
@@ -23105,11 +23122,11 @@ const s6 = G1(
23105
23122
  size: e = "sm",
23106
23123
  color: a,
23107
23124
  leftSlot: c = "",
23108
- rightSlot: l = "",
23125
+ rightSlot: d = "",
23109
23126
  searchPlaceholder: s = "Buscar...",
23110
23127
  noResultsText: C = "No hay resultados para",
23111
23128
  noResultsDescription: p = "Puede probar a utilizar otras palabras clave o ajustar los filtros.",
23112
- caret: d = !0,
23129
+ caret: l = !0,
23113
23130
  value: L,
23114
23131
  defaultValue: h = "",
23115
23132
  disabled: w = !1,
@@ -23122,7 +23139,7 @@ const s6 = G1(
23122
23139
  onCheckboxChange: V,
23123
23140
  searchable: y = !1,
23124
23141
  maxHeight: B = "200px",
23125
- closeOnClickOutside: E = !0,
23142
+ closeOnClickOutside: R = !0,
23126
23143
  dropdownId: A,
23127
23144
  multiple: S = !1,
23128
23145
  maxSelectedItems: v,
@@ -23130,11 +23147,11 @@ const s6 = G1(
23130
23147
  absolute: Z = !1,
23131
23148
  footer: O = !1,
23132
23149
  defaultOptionSelected: M = !1,
23133
- withCheckbox: I = !1,
23134
- onHandleAccept: z,
23150
+ withCheckbox: k = !1,
23151
+ onHandleAccept: D,
23135
23152
  ...J
23136
- }, G) => {
23137
- const R = o1(null), [X, n1] = Y(c), [N, $] = Y(null), [k, F] = Y(!1), p1 = S ? g : !S && M ? [
23153
+ }, q) => {
23154
+ const z = o1(null), [K, n1] = Y(c), [N, $] = Y(null), [I, F] = Y(!1), p1 = S ? g : !S && M ? [
23138
23155
  {
23139
23156
  ...{
23140
23157
  label: f || "Selecciona una opción",
@@ -23145,13 +23162,13 @@ const s6 = G1(
23145
23162
  value: -1,
23146
23163
  label: f || "Selecciona una opción"
23147
23164
  },
23148
- ...g.filter((D) => D[m] !== -1)
23165
+ ...g.filter((E) => E[m] !== -1)
23149
23166
  ] : g, _ = L !== void 0 ? L : M && !S ? -1 : h, {
23150
23167
  // Estado
23151
23168
  isOpen: u1,
23152
- isClosing: T,
23153
- searchValue: K,
23154
- selectedValue: i1,
23169
+ isClosing: P,
23170
+ searchValue: X,
23171
+ selectedValue: e1,
23155
23172
  selectedOptions: W,
23156
23173
  filteredOptions: l1,
23157
23174
  dropdownStyle: d1,
@@ -23164,13 +23181,13 @@ const s6 = G1(
23164
23181
  // Funciones
23165
23182
  toggleDropdown: I1,
23166
23183
  closeDropdown: P1,
23167
- handleOptionSelect: Q0,
23184
+ handleOptionSelect: W0,
23168
23185
  handleSearchChange: X1,
23169
23186
  handleClear: z1,
23170
23187
  calculatePosition: f1,
23171
23188
  scrollToSelectedOption: T1,
23172
23189
  setValue: H1,
23173
- normalizeToArray: W0
23190
+ normalizeToArray: n9
23174
23191
  } = m6({
23175
23192
  value: L,
23176
23193
  defaultValue: _,
@@ -23180,28 +23197,28 @@ const s6 = G1(
23180
23197
  onValueChange: H,
23181
23198
  onOptionSelect: j,
23182
23199
  searchable: y,
23183
- closeOnClickOutside: E,
23200
+ closeOnClickOutside: R,
23184
23201
  dropdownId: A,
23185
23202
  disabled: w,
23186
23203
  multiple: S,
23187
23204
  maxSelectedItems: v,
23188
23205
  absolute: Z,
23189
- withCheckbox: I,
23190
- onOpenChange: (D) => {
23191
- D && setTimeout(() => {
23206
+ withCheckbox: k,
23207
+ onOpenChange: (E) => {
23208
+ E && setTimeout(() => {
23192
23209
  F(!1);
23193
23210
  }, 200);
23194
23211
  }
23195
- }), A1 = (D, c1) => {
23212
+ }), A1 = (E, c1) => {
23196
23213
  if (S) {
23197
- const L1 = W0(i1), q = D[m];
23214
+ const L1 = n9(e1), G = E[m];
23198
23215
  if (c1) {
23199
- if (!L1.includes(q)) {
23200
- const h1 = [...L1, q];
23216
+ if (!L1.includes(G)) {
23217
+ const h1 = [...L1, G];
23201
23218
  H1(h1);
23202
23219
  }
23203
23220
  } else {
23204
- const h1 = L1.filter((y1) => y1 !== q);
23221
+ const h1 = L1.filter((y1) => y1 !== G);
23205
23222
  H1(h1);
23206
23223
  }
23207
23224
  }
@@ -23209,30 +23226,30 @@ const s6 = G1(
23209
23226
  Q(() => {
23210
23227
  if (r1 && L !== void 0)
23211
23228
  if (L === "" || L === -1 || L === "-1")
23212
- n1((D) => D !== c ? c : D), $((D) => D !== null ? null : D);
23229
+ n1((E) => E !== c ? c : E), $((E) => E !== null ? null : E);
23213
23230
  else {
23214
- const D = p1.find(
23231
+ const E = p1.find(
23215
23232
  (c1) => c1[b] === L || c1[m] === L
23216
23233
  );
23217
- if (D) {
23218
- const c1 = D.icon || c, L1 = D.iconColor || null;
23219
- n1((q) => q !== c1 ? c1 : q), $((q) => q !== L1 ? L1 : q);
23234
+ if (E) {
23235
+ const c1 = E.icon || c, L1 = E.iconColor || null;
23236
+ n1((G) => G !== c1 ? c1 : G), $((G) => G !== L1 ? L1 : G);
23220
23237
  }
23221
23238
  }
23222
- }, [L, r1, p1, b, m, c]), o0(
23223
- G,
23239
+ }, [L, r1, p1, b, m, c]), r0(
23240
+ q,
23224
23241
  () => ({
23225
- getValue: () => i1,
23226
- setValue: (D) => {
23227
- r1 || H1(D), H == null || H(D);
23242
+ getValue: () => e1,
23243
+ setValue: (E) => {
23244
+ r1 || H1(E), H == null || H(E);
23228
23245
  },
23229
23246
  focus: () => {
23230
- var D, c1;
23231
- S && x === "tags" ? (D = R.current) == null || D.focus() : (c1 = s1.current) == null || c1.focus();
23247
+ var E, c1;
23248
+ S && x === "tags" ? (E = z.current) == null || E.focus() : (c1 = s1.current) == null || c1.focus();
23232
23249
  },
23233
23250
  blur: () => {
23234
- var D, c1;
23235
- S && x === "tags" ? (D = R.current) == null || D.blur() : (c1 = s1.current) == null || c1.blur();
23251
+ var E, c1;
23252
+ S && x === "tags" ? (E = z.current) == null || E.blur() : (c1 = s1.current) == null || c1.blur();
23236
23253
  },
23237
23254
  clear: () => {
23238
23255
  r1 || H1(S ? [] : ""), H == null || H(S ? [] : "");
@@ -23247,7 +23264,7 @@ const s6 = G1(
23247
23264
  }
23248
23265
  }),
23249
23266
  [
23250
- i1,
23267
+ e1,
23251
23268
  r1,
23252
23269
  w,
23253
23270
  f1,
@@ -23260,38 +23277,38 @@ const s6 = G1(
23260
23277
  ]
23261
23278
  ), Q(() => {
23262
23279
  if (u1 && W.length > 0) {
23263
- const D = setTimeout(() => {
23280
+ const E = setTimeout(() => {
23264
23281
  T1();
23265
23282
  }, 150);
23266
- return () => clearTimeout(D);
23283
+ return () => clearTimeout(E);
23267
23284
  }
23268
23285
  }, [u1, W, T1]), Q(() => {
23269
23286
  if (u1 && S && x === "tags") {
23270
- const D = R.current;
23271
- if (!D) return;
23287
+ const E = z.current;
23288
+ if (!E) return;
23272
23289
  const c1 = new ResizeObserver(() => {
23273
23290
  setTimeout(() => {
23274
23291
  f1();
23275
23292
  }, 50);
23276
23293
  });
23277
- return c1.observe(D), () => {
23294
+ return c1.observe(E), () => {
23278
23295
  c1.disconnect();
23279
23296
  };
23280
23297
  }
23281
23298
  }, [u1, S, x, f1]), Q(() => {
23282
23299
  if (u1 && S && x === "tags") {
23283
- const D = setTimeout(() => {
23300
+ const E = setTimeout(() => {
23284
23301
  f1();
23285
23302
  }, 100);
23286
- return () => clearTimeout(D);
23303
+ return () => clearTimeout(E);
23287
23304
  }
23288
23305
  }, [W, u1, S, x, f1]);
23289
- const n9 = (D) => {
23306
+ const e9 = (E) => {
23290
23307
  if (S) {
23291
- const L1 = W0(i1).filter((q) => q !== D);
23292
- if (H1(L1), I && A1) {
23293
- const q = g.find((h1) => h1[m] === D);
23294
- q && A1(q, !1);
23308
+ const L1 = n9(e1).filter((G) => G !== E);
23309
+ if (H1(L1), k && A1) {
23310
+ const G = g.find((h1) => h1[m] === E);
23311
+ G && A1(G, !1);
23295
23312
  }
23296
23313
  }
23297
23314
  }, $9 = () => {
@@ -23301,19 +23318,19 @@ const s6 = G1(
23301
23318
  case "count":
23302
23319
  return `${W.length} elemento${W.length > 1 ? "s" : ""} seleccionado${W.length > 1 ? "s" : ""}`;
23303
23320
  case "text":
23304
- return W.map((D) => D == null ? void 0 : D[b]).filter(Boolean).join(", ");
23321
+ return W.map((E) => E == null ? void 0 : E[b]).filter(Boolean).join(", ");
23305
23322
  case "tags":
23306
23323
  default:
23307
23324
  return "";
23308
23325
  }
23309
23326
  } else {
23310
- const D = W[0];
23311
- return D ? D[m] === -1 || D[b] === -1 || D[b] === "-1" ? f : D[b] || "" : "";
23327
+ const E = W[0];
23328
+ return E ? E[m] === -1 || E[b] === -1 || E[b] === "-1" ? f : E[b] || "" : "";
23312
23329
  }
23313
23330
  }, P9 = () => {
23314
23331
  if (!u1 || !d1.top) return null;
23315
- const D = T ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (q, h1) => {
23316
- Q0(q, h1), q.icon && n1(q.icon), q.iconColor && $(q.iconColor);
23332
+ const E = P ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (G, h1) => {
23333
+ W0(G, h1), G.icon && n1(G.icon), G.iconColor && $(G.iconColor);
23317
23334
  }, L1 = /* @__PURE__ */ u(
23318
23335
  "div",
23319
23336
  {
@@ -23327,13 +23344,13 @@ const s6 = G1(
23327
23344
  width: d1.width,
23328
23345
  zIndex: d1.zIndex
23329
23346
  },
23330
- className: `py-2 ui-min-w-fit ui-overflow-hidden ui-rounded-sm ui-border ui-border-neutral-200 ui-bg-white ui-shadow-lg ${D}`,
23331
- onClick: (q) => q.stopPropagation(),
23347
+ className: `py-2 ui-min-w-fit ui-overflow-hidden ui-rounded-sm ui-border ui-border-neutral-200 ui-bg-white ui-shadow-lg ${E}`,
23348
+ onClick: (G) => G.stopPropagation(),
23332
23349
  children: [
23333
- /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (q) => q.stopPropagation(), children: /* @__PURE__ */ i(
23350
+ /* @__PURE__ */ i("div", { children: y && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (G) => G.stopPropagation(), children: /* @__PURE__ */ i(
23334
23351
  N1,
23335
23352
  {
23336
- value: K,
23353
+ value: X,
23337
23354
  onChange: X1,
23338
23355
  placeholder: s,
23339
23356
  leftSlot: "SearchOutlined",
@@ -23343,47 +23360,47 @@ const s6 = G1(
23343
23360
  }
23344
23361
  ) }) }),
23345
23362
  y && /* @__PURE__ */ i(U1, {}),
23346
- /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: l1.length > 0 ? l1.map((q) => {
23363
+ /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: l1.length > 0 ? l1.map((G) => {
23347
23364
  const h1 = S ? W.some(
23348
- (y1) => y1 && y1[m] === q[m]
23349
- ) : q[m] === -1 && (i1 === -1 || i1 === "-1") || q[m] === i1;
23350
- return I ? /* @__PURE__ */ i(
23365
+ (y1) => y1 && y1[m] === G[m]
23366
+ ) : G[m] === -1 && (e1 === -1 || e1 === "-1") || G[m] === e1;
23367
+ return k ? /* @__PURE__ */ i(
23351
23368
  k9,
23352
23369
  {
23353
- disabled: q.disabled,
23370
+ disabled: G.disabled,
23354
23371
  current: h1 ? "blue" : !1,
23355
- "data-option-value": q[m],
23356
- icon: q.icon,
23357
- iconColor: q.iconColor,
23372
+ "data-option-value": G[m],
23373
+ icon: G.icon,
23374
+ iconColor: G.iconColor,
23358
23375
  checkboxProps: {
23359
23376
  checked: h1,
23360
- onChange: (y1) => A1 == null ? void 0 : A1(q, y1),
23361
- disabled: q.disabled
23377
+ onChange: (y1) => A1 == null ? void 0 : A1(G, y1),
23378
+ disabled: G.disabled
23362
23379
  },
23363
- isGroupTitle: q.isGroupTitle,
23364
- groupTitle: q.label,
23365
- children: q[b]
23380
+ isGroupTitle: G.isGroupTitle,
23381
+ groupTitle: G.label,
23382
+ children: G[b]
23366
23383
  },
23367
- q[m] || q[b]
23384
+ G[m] || G[b]
23368
23385
  ) : /* @__PURE__ */ i(
23369
23386
  O9,
23370
23387
  {
23371
- onClick: (y1) => c1(q, y1),
23372
- disabled: q.disabled,
23388
+ onClick: (y1) => c1(G, y1),
23389
+ disabled: G.disabled,
23373
23390
  current: h1 ? "blue" : !1,
23374
- "data-option-value": q[m],
23375
- icon: q.icon,
23376
- iconColor: q.iconColor,
23377
- children: q[b]
23391
+ "data-option-value": G[m],
23392
+ icon: G.icon,
23393
+ iconColor: G.iconColor,
23394
+ children: G[b]
23378
23395
  },
23379
- q[m] || q[b]
23396
+ G[m] || G[b]
23380
23397
  );
23381
- }) : K ? /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-max-w-[300px] ui-break-words ui-px-3 ui-py-2 ui-text-center ui-text-sm ui-text-neutral-500", children: [
23398
+ }) : X ? /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-max-w-[300px] ui-break-words ui-px-3 ui-py-2 ui-text-center ui-text-sm ui-text-neutral-500", children: [
23382
23399
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(j1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
23383
23400
  /* @__PURE__ */ u("p", { className: "ui-font-semibold ui-text-neutral-800", children: [
23384
23401
  C,
23385
23402
  ' "',
23386
- K,
23403
+ X,
23387
23404
  '"'
23388
23405
  ] }),
23389
23406
  /* @__PURE__ */ i("p", { className: "ui-mt-2 ui-text-xs ui-text-neutral-500", children: p })
@@ -23426,16 +23443,16 @@ const s6 = G1(
23426
23443
  label: r,
23427
23444
  placeholder: f,
23428
23445
  selectedOptions: W,
23429
- handleRemoveSelected: n9,
23446
+ handleRemoveSelected: e9,
23430
23447
  toggleDropdown: I1,
23431
23448
  isOpen: u1,
23432
- isOpening: k,
23449
+ isOpening: I,
23433
23450
  setIsOpening: F,
23434
- customInputRef: R,
23451
+ customInputRef: z,
23435
23452
  disabled: w,
23436
23453
  error: t,
23437
23454
  helperText: n || "",
23438
- rightSlot: l,
23455
+ rightSlot: d,
23439
23456
  valueName: b,
23440
23457
  idName: m
23441
23458
  }
@@ -23450,16 +23467,16 @@ const s6 = G1(
23450
23467
  helperText: n,
23451
23468
  size: e,
23452
23469
  color: a,
23453
- leftSlot: X || void 0,
23470
+ leftSlot: K || void 0,
23454
23471
  colorLeftIcon: N || void 0,
23455
- rightSlot: l,
23472
+ rightSlot: d,
23456
23473
  fullWidth: !0,
23457
- caret: d,
23474
+ caret: l,
23458
23475
  disabled: w,
23459
23476
  placeholder: f,
23460
23477
  value: $9(),
23461
23478
  readOnly: !0,
23462
- onClick: (D) => I1(D),
23479
+ onClick: (E) => I1(E),
23463
23480
  onClickExtraSlot: () => I1(),
23464
23481
  extraSlot: u1 ? "ChevronUp1Outlined" : "ChevronDown1Outlined",
23465
23482
  name: o,
@@ -23468,15 +23485,15 @@ const s6 = G1(
23468
23485
  }
23469
23486
  )
23470
23487
  ),
23471
- S && x !== "tags" && W.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: W.map((D) => D ? /* @__PURE__ */ i(
23488
+ S && x !== "tags" && W.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: W.map((E) => E ? /* @__PURE__ */ i(
23472
23489
  I9,
23473
23490
  {
23474
- label: D[b],
23491
+ label: E[b],
23475
23492
  color: "blue",
23476
23493
  size: "sm",
23477
- onClick: () => n9(D[m])
23494
+ onClick: () => e9(E[m])
23478
23495
  },
23479
- D[b]
23496
+ E[b]
23480
23497
  ) : null) }),
23481
23498
  P9()
23482
23499
  ]
@@ -23491,21 +23508,21 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23491
23508
  const C = (t || "").length;
23492
23509
  c((p) => p !== C ? C : p);
23493
23510
  }, [t]), { isFocused: n, setIsFocused: e, count: a, handleChange: (C) => {
23494
- const p = C.target.value, d = p.length;
23495
- if (o > 0 && d > o) {
23511
+ const p = C.target.value, l = p.length;
23512
+ if (o > 0 && l > o) {
23496
23513
  const L = p.substring(0, o);
23497
23514
  c(o), r == null || r(L);
23498
23515
  return;
23499
23516
  }
23500
- c(d), r == null || r(p);
23517
+ c(l), r == null || r(p);
23501
23518
  }, handlePaste: (C) => {
23502
23519
  if (o > 0) {
23503
- const p = C.clipboardData.getData("text"), d = t || "";
23504
- if (d.length + p.length > o) {
23520
+ const p = C.clipboardData.getData("text"), l = t || "";
23521
+ if (l.length + p.length > o) {
23505
23522
  C.preventDefault();
23506
- const h = o - d.length, w = p.substring(0, h);
23523
+ const h = o - l.length, w = p.substring(0, h);
23507
23524
  if (h > 0) {
23508
- const f = d + w;
23525
+ const f = l + w;
23509
23526
  c(f.length), r == null || r(f);
23510
23527
  }
23511
23528
  }
@@ -23519,12 +23536,12 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23519
23536
  containerClassName: e = "",
23520
23537
  leftSlot: a = "",
23521
23538
  rightSlot: c = "",
23522
- disabled: l = !1,
23539
+ disabled: d = !1,
23523
23540
  error: s = "",
23524
23541
  helperText: C = "",
23525
23542
  maxLength: p = 0
23526
23543
  }) => {
23527
- const { isFocused: d, setIsFocused: L, count: h, handleChange: w, handlePaste: f } = x6({
23544
+ const { isFocused: l, setIsFocused: L, count: h, handleChange: w, handlePaste: f } = x6({
23528
23545
  maxLength: p,
23529
23546
  onChange: r,
23530
23547
  value: o
@@ -23542,7 +23559,7 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23542
23559
  {
23543
23560
  slot: a,
23544
23561
  className: "ui-absolute ui-left-2 ui-top-2",
23545
- colorIcon: l ? "neutral_soft" : s ? "red_soft" : d ? "blue" : "neutral"
23562
+ colorIcon: d ? "neutral_soft" : s ? "red_soft" : l ? "blue" : "neutral"
23546
23563
  }
23547
23564
  ),
23548
23565
  /* @__PURE__ */ i(
@@ -23554,14 +23571,14 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23554
23571
  onChange: w,
23555
23572
  onPaste: f,
23556
23573
  onBlur: () => L(!1),
23557
- disabled: l,
23574
+ disabled: d,
23558
23575
  rows: 1,
23559
23576
  className: U(
23560
23577
  "ui-textarea ui-min-h-23 ui-w-full ui-rounded-sm ui-border-1 ui-border-neutral-100 ui-p-2 ui-pt-1.5 ui-text-sm ui-text-neutral-900 placeholder:ui-text-neutral-500 focus:ui-outline-none",
23561
23578
  p > 0 ? "ui-pb-6.5" : "ui-pb-2",
23562
23579
  a ? "ui-pl-7" : "ui-pl-2",
23563
23580
  c ? "ui-pr-7" : "ui-pr-2",
23564
- l ? "ui-border-neutral-100 ui-text-neutral-500" : s ? "ui-border-red-500 ui-bg-red-50 ui-text-red-500 placeholder:ui-text-red-500 focus:ui-ring-1 focus:ui-ring-red-100" : "ui-border-neutral-100 ui-text-neutral-900 focus:ui-border-blue-500",
23581
+ d ? "ui-border-neutral-100 ui-text-neutral-500" : s ? "ui-border-red-500 ui-bg-red-50 ui-text-red-500 placeholder:ui-text-red-500 focus:ui-ring-1 focus:ui-ring-red-100" : "ui-border-neutral-100 ui-text-neutral-900 focus:ui-border-blue-500",
23565
23582
  n
23566
23583
  )
23567
23584
  }
@@ -23571,7 +23588,7 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23571
23588
  {
23572
23589
  slot: c,
23573
23590
  className: "ui-absolute ui-right-2 ui-top-2",
23574
- colorIcon: l ? "neutral_soft" : s ? "red_soft" : d ? "blue" : "neutral"
23591
+ colorIcon: d ? "neutral_soft" : s ? "red_soft" : l ? "blue" : "neutral"
23575
23592
  }
23576
23593
  ),
23577
23594
  p > 0 && /* @__PURE__ */ u(
@@ -23596,8 +23613,8 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23596
23613
  ]
23597
23614
  }
23598
23615
  );
23599
- }, e0 = /* @__PURE__ */ new Set(), v6 = (o) => {
23600
- e0.forEach((r) => {
23616
+ }, i0 = /* @__PURE__ */ new Set(), v6 = (o) => {
23617
+ i0.forEach((r) => {
23601
23618
  if (r !== o) {
23602
23619
  const t = new CustomEvent("close-popup", { detail: { id: r } });
23603
23620
  document.dispatchEvent(t);
@@ -23611,82 +23628,82 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23611
23628
  popupId: e,
23612
23629
  onOpen: a,
23613
23630
  onClose: c,
23614
- disabled: l = !1,
23631
+ disabled: d = !1,
23615
23632
  absolute: s = !1
23616
23633
  }) => {
23617
- const C = t9(), p = e || `popup-${C}`, [d, L] = Y(!1), [h, w] = Y({}), [f, g] = Y(!1), b = o1(null), m = o1(null), H = o1(null), j = P(() => {
23618
- const B = b.current, E = m.current;
23619
- if (!B || !E) return;
23620
- const A = B.getBoundingClientRect(), S = E.getBoundingClientRect();
23634
+ const C = t9(), p = e || `popup-${C}`, [l, L] = Y(!1), [h, w] = Y({}), [f, g] = Y(!1), b = o1(null), m = o1(null), H = o1(null), j = T(() => {
23635
+ const B = b.current, R = m.current;
23636
+ if (!B || !R) return;
23637
+ const A = B.getBoundingClientRect(), S = R.getBoundingClientRect();
23621
23638
  if (S.width === 0 || S.height === 0)
23622
23639
  return;
23623
23640
  let v = 0, x = 0;
23624
23641
  if (s) {
23625
- const z = B.offsetTop, J = B.offsetLeft, G = B.offsetWidth, R = B.offsetHeight;
23642
+ const D = B.offsetTop, J = B.offsetLeft, q = B.offsetWidth, z = B.offsetHeight;
23626
23643
  switch (o) {
23627
23644
  case "top":
23628
- v = z - S.height - r, x = J + (G - S.width) / 2;
23645
+ v = D - S.height - r, x = J + (q - S.width) / 2;
23629
23646
  break;
23630
23647
  case "bottom":
23631
23648
  case "bottom-center":
23632
- v = z + R + r, x = J + (G - S.width) / 2;
23649
+ v = D + z + r, x = J + (q - S.width) / 2;
23633
23650
  break;
23634
23651
  case "bottom-left":
23635
- v = z + R + r, x = J;
23652
+ v = D + z + r, x = J;
23636
23653
  break;
23637
23654
  case "bottom-right":
23638
- v = z + R + r, x = J + G - S.width;
23655
+ v = D + z + r, x = J + q - S.width;
23639
23656
  break;
23640
23657
  case "left":
23641
- v = z, x = J - S.width - r;
23658
+ v = D, x = J - S.width - r;
23642
23659
  break;
23643
23660
  case "right":
23644
- v = z, x = J + G + r;
23661
+ v = D, x = J + q + r;
23645
23662
  break;
23646
23663
  }
23647
23664
  } else {
23648
- const z = window.innerWidth, J = window.innerHeight, G = A.top, R = A.left, X = A.width, n1 = A.height;
23665
+ const D = window.innerWidth, J = window.innerHeight, q = A.top, z = A.left, K = A.width, n1 = A.height;
23649
23666
  switch (o) {
23650
23667
  case "top":
23651
- v = G - S.height - r, x = R + (X - S.width) / 2;
23668
+ v = q - S.height - r, x = z + (K - S.width) / 2;
23652
23669
  break;
23653
23670
  case "bottom":
23654
23671
  case "bottom-center":
23655
- v = G + n1 + r, x = R + (X - S.width) / 2;
23672
+ v = q + n1 + r, x = z + (K - S.width) / 2;
23656
23673
  break;
23657
23674
  case "bottom-left":
23658
- v = G + n1 + r, x = R;
23675
+ v = q + n1 + r, x = z;
23659
23676
  break;
23660
23677
  case "bottom-right":
23661
- v = G + n1 + r, x = R + X - S.width;
23678
+ v = q + n1 + r, x = z + K - S.width;
23662
23679
  break;
23663
23680
  case "left":
23664
- v = G, x = R - S.width - r;
23681
+ v = q, x = z - S.width - r;
23665
23682
  break;
23666
23683
  case "right":
23667
- v = G, x = R + X + r;
23684
+ v = q, x = z + K + r;
23668
23685
  break;
23669
23686
  }
23670
- x < 0 && (x = 0), x + S.width > z && (x = z - S.width), v < 0 && (v = 0), v + S.height > J && (v = J - S.height), o === "bottom-right" && S.width > A.width && (x = A.right - S.width, x < 0 && (x = 0));
23687
+ x < 0 && (x = 0), x + S.width > D && (x = D - S.width), v < 0 && (v = 0), v + S.height > J && (v = J - S.height), o === "bottom-right" && S.width > A.width && (x = A.right - S.width, x < 0 && (x = 0));
23671
23688
  }
23672
- const Z = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, M = Z + O % 100, I = {
23689
+ const Z = 1e3, O = parseInt(p.replace(/\D/g, "")) || 0, M = Z + O % 100, k = {
23673
23690
  position: s ? "absolute" : "fixed",
23674
23691
  top: `${v}px`,
23675
23692
  left: `${x}px`,
23676
23693
  zIndex: M
23677
23694
  };
23678
- w(I), g(!0);
23695
+ w(k), g(!0);
23679
23696
  }, [o, r, p, s]), V = (B) => {
23680
- B && B.stopPropagation(), !l && (d ? y() : (v6(p), w({}), g(!1), L(!0), e0.add(p), a == null || a()));
23697
+ B && B.stopPropagation(), !d && (l ? y() : (v6(p), w({}), g(!1), L(!0), i0.add(p), a == null || a()));
23681
23698
  }, y = () => {
23682
- L(!1), g(!1), e0.delete(p), c == null || c();
23699
+ L(!1), g(!1), i0.delete(p), c == null || c();
23683
23700
  };
23684
23701
  return Q(() => {
23685
- if (d) {
23702
+ if (l) {
23686
23703
  const B = () => {
23687
- const E = m.current;
23688
- if (E) {
23689
- const A = E.getBoundingClientRect();
23704
+ const R = m.current;
23705
+ if (R) {
23706
+ const A = R.getBoundingClientRect();
23690
23707
  A.width > 0 && A.height > 0 && A.width !== 0 && A.height !== 0 ? j() : setTimeout(() => {
23691
23708
  requestAnimationFrame(B);
23692
23709
  }, 10);
@@ -23696,28 +23713,28 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23696
23713
  requestAnimationFrame(B);
23697
23714
  }, 0);
23698
23715
  }
23699
- }, [d, j]), Q(() => {
23700
- if (!d || !f || s) return;
23716
+ }, [l, j]), Q(() => {
23717
+ if (!l || !f || s) return;
23701
23718
  let B = !1;
23702
- const E = () => {
23719
+ const R = () => {
23703
23720
  B || (requestAnimationFrame(() => {
23704
23721
  j(), B = !1;
23705
23722
  }), B = !0);
23706
23723
  };
23707
- return window.addEventListener("scroll", E, { passive: !0 }), window.addEventListener("resize", E, { passive: !0 }), () => {
23708
- window.removeEventListener("scroll", E), window.removeEventListener("resize", E);
23724
+ return window.addEventListener("scroll", R, { passive: !0 }), window.addEventListener("resize", R, { passive: !0 }), () => {
23725
+ window.removeEventListener("scroll", R), window.removeEventListener("resize", R);
23709
23726
  };
23710
- }, [d, f, s, j]), y9({
23711
- isActive: d,
23712
- disabled: l,
23727
+ }, [l, f, s, j]), y9({
23728
+ isActive: l,
23729
+ disabled: d,
23713
23730
  elementRef: m,
23714
23731
  containerRef: H,
23715
23732
  elementId: p,
23716
23733
  elementType: "popup",
23717
23734
  closeOnClickOutside: t,
23718
23735
  onOutsideClick: y
23719
- }), J0(d, y, !n), {
23720
- isOpen: d,
23736
+ }), X0(l, y, !n), {
23737
+ isOpen: l,
23721
23738
  popupStyle: h,
23722
23739
  isPositioned: f,
23723
23740
  triggerRef: b,
@@ -23743,11 +23760,11 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23743
23760
  closeOnClickOutside: e = !0,
23744
23761
  closeOnEscape: a = !0,
23745
23762
  popupId: c,
23746
- className: l = "",
23763
+ className: d = "",
23747
23764
  onOpen: s,
23748
23765
  onClose: C,
23749
23766
  disabled: p = !1,
23750
- variant: d = "outlined",
23767
+ variant: l = "outlined",
23751
23768
  color: L = "white",
23752
23769
  size: h = "md",
23753
23770
  textColor: w = "inherit",
@@ -23760,7 +23777,7 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23760
23777
  tooltip: V,
23761
23778
  tooltipPosition: y,
23762
23779
  tooltipAlignment: B,
23763
- tooltipColor: E,
23780
+ tooltipColor: R,
23764
23781
  tooltipDelay: A,
23765
23782
  absolute: S = !1,
23766
23783
  closeOnClick: v = !0,
@@ -23768,19 +23785,20 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23768
23785
  containerClassName: Z,
23769
23786
  buttonTransition: O = !0,
23770
23787
  buttonStyle: M,
23771
- stopPropagationList: I = !1,
23772
- ...z
23773
- }, J) => {
23788
+ stopPropagationList: k = !0,
23789
+ onClick: D,
23790
+ ...J
23791
+ }, q) => {
23774
23792
  const {
23775
- isOpen: G,
23776
- popupStyle: R,
23777
- isPositioned: X,
23778
- triggerRef: n1,
23779
- popupRef: N,
23780
- containerRef: $,
23781
- popupUniqueId: k,
23782
- togglePopup: F,
23783
- closePopup: e1
23793
+ isOpen: z,
23794
+ popupStyle: K,
23795
+ isPositioned: n1,
23796
+ triggerRef: N,
23797
+ popupRef: $,
23798
+ containerRef: I,
23799
+ popupUniqueId: F,
23800
+ togglePopup: i1,
23801
+ closePopup: a1
23784
23802
  } = j6({
23785
23803
  position: t,
23786
23804
  offset: n,
@@ -23792,61 +23810,63 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23792
23810
  disabled: p,
23793
23811
  absolute: S
23794
23812
  });
23795
- o0(
23796
- J,
23813
+ r0(
23814
+ q,
23797
23815
  () => ({
23798
23816
  open: () => {
23799
- p || F();
23817
+ p || i1();
23800
23818
  },
23801
23819
  close: () => {
23802
- e1();
23820
+ a1();
23803
23821
  },
23804
- isOpen: () => G
23822
+ isOpen: () => z
23805
23823
  }),
23806
- [p, F, e1, G]
23824
+ [p, i1, a1, z]
23807
23825
  );
23808
- const a1 = () => {
23809
- if (!G)
23826
+ const p1 = (u1) => {
23827
+ D && D(u1), !u1.defaultPrevented && !p && i1();
23828
+ }, _ = () => {
23829
+ if (!z)
23810
23830
  return null;
23811
- const p1 = {
23831
+ const u1 = {
23812
23832
  position: S ? "absolute" : "fixed",
23813
23833
  top: S ? "auto" : "-9999px",
23814
23834
  left: S ? "auto" : "-9999px",
23815
- visibility: X ? "visible" : "hidden",
23816
- opacity: X ? 1 : 0,
23835
+ visibility: n1 ? "visible" : "hidden",
23836
+ opacity: n1 ? 1 : 0,
23817
23837
  transition: "opacity 0.1s ease-out",
23818
- ...R
23819
- }, _ = V6(b), u1 = /* @__PURE__ */ i(
23838
+ ...K
23839
+ }, P = V6(b), X = /* @__PURE__ */ i(
23820
23840
  "div",
23821
23841
  {
23822
- ref: N,
23823
- id: k,
23824
- "data-popup-id": k,
23825
- style: p1,
23826
- className: `ui-border ui-border-neutral-100 ui-bg-white ${_} ui-overflow-hidden ui-shadow-lg ${l}`,
23827
- onClick: (K) => {
23828
- v && (I && K.stopPropagation(), e1());
23842
+ ref: $,
23843
+ id: F,
23844
+ "data-popup-id": F,
23845
+ style: u1,
23846
+ className: `ui-border ui-border-neutral-100 ui-bg-white ${P} ui-overflow-hidden ui-shadow-lg ${d}`,
23847
+ onClick: (W) => {
23848
+ k && W.stopPropagation(), v && a1();
23829
23849
  },
23830
- ...z,
23850
+ ...J,
23831
23851
  children: o
23832
23852
  }
23833
23853
  );
23834
- return S ? u1 : D1(u1, document.body);
23854
+ return S ? X : D1(X, document.body);
23835
23855
  };
23836
23856
  return /* @__PURE__ */ u(
23837
23857
  "div",
23838
23858
  {
23839
- ref: $,
23859
+ ref: I,
23840
23860
  className: U("ui-relative ui-h-max"),
23841
- "data-popup-container-id": k,
23861
+ "data-popup-container-id": F,
23842
23862
  children: [
23843
- /* @__PURE__ */ i("div", { ref: n1, className: U("ui-w-fit", Z), children: /* @__PURE__ */ i(
23863
+ /* @__PURE__ */ i("div", { ref: N, className: U("ui-w-fit", Z), children: /* @__PURE__ */ i(
23844
23864
  v1,
23845
23865
  {
23846
23866
  className: x,
23847
- onClick: F,
23867
+ onClick: p1,
23848
23868
  disabled: p,
23849
- variant: d,
23869
+ variant: l,
23850
23870
  color: L,
23851
23871
  size: h,
23852
23872
  rounded: f,
@@ -23858,14 +23878,14 @@ const x6 = ({ maxLength: o = 0, onChange: r, value: t }) => {
23858
23878
  tooltip: V,
23859
23879
  tooltipPosition: y,
23860
23880
  tooltipAlignment: B,
23861
- tooltipColor: E,
23881
+ tooltipColor: R,
23862
23882
  tooltipDelay: A,
23863
23883
  transition: O,
23864
23884
  style: M,
23865
23885
  children: r || ""
23866
23886
  }
23867
23887
  ) }),
23868
- a1()
23888
+ _()
23869
23889
  ]
23870
23890
  }
23871
23891
  );
@@ -23881,7 +23901,7 @@ const Z1 = {
23881
23901
  TEXTAREA: "textarea",
23882
23902
  GROUP: "group"
23883
23903
  }, H6 = ({ filters: o, onClear: r, onApply: t }) => {
23884
- const n = P((h) => {
23904
+ const n = T((h) => {
23885
23905
  switch (h) {
23886
23906
  case Z1.MULTIPLE:
23887
23907
  case Z1.GROUP:
@@ -23896,34 +23916,34 @@ const Z1 = {
23896
23916
  default:
23897
23917
  return "";
23898
23918
  }
23899
- }, []), e = P(
23919
+ }, []), e = T(
23900
23920
  (h) => n(h.type),
23901
23921
  [n]
23902
- ), a = P(
23922
+ ), a = T(
23903
23923
  (h) => n(h.type),
23904
23924
  [n]
23905
- ), [c, l] = Y(() => {
23925
+ ), [c, d] = Y(() => {
23906
23926
  const h = {};
23907
23927
  return o.forEach((w) => {
23908
23928
  const f = w.keyName || w.label.toLowerCase();
23909
23929
  h[f] = e(w);
23910
23930
  }), h;
23911
- }), s = P(() => {
23931
+ }), s = T(() => {
23912
23932
  const h = {};
23913
23933
  o.forEach((w) => {
23914
23934
  const f = w.keyName || w.label.toLowerCase(), g = e(w);
23915
23935
  h[f] = g;
23916
- }), l(h);
23936
+ }), d(h);
23917
23937
  }, [o, e]);
23918
23938
  Q(() => {
23919
23939
  s();
23920
23940
  }, [s]);
23921
- const C = P(() => {
23941
+ const C = T(() => {
23922
23942
  const h = {};
23923
23943
  o.forEach((w) => {
23924
23944
  const f = w.keyName || w.label.toLowerCase();
23925
23945
  h[f] = a(w);
23926
- }), l(h), o.forEach((w) => {
23946
+ }), d(h), o.forEach((w) => {
23927
23947
  if (w.onValueChange) {
23928
23948
  const f = a(w);
23929
23949
  w.onValueChange({
@@ -23932,19 +23952,19 @@ const Z1 = {
23932
23952
  });
23933
23953
  }
23934
23954
  }), r == null || r();
23935
- }, [o, a, r]), p = P(
23955
+ }, [o, a, r]), p = T(
23936
23956
  (h, w, f) => {
23937
23957
  const g = f.keyName || h.toLowerCase(), b = {
23938
23958
  ...c,
23939
23959
  [g]: w
23940
23960
  };
23941
- l(b), f.onValueChange && f.onValueChange({
23961
+ d(b), f.onValueChange && f.onValueChange({
23942
23962
  current: w,
23943
23963
  filters: b
23944
23964
  });
23945
23965
  },
23946
23966
  [c]
23947
- ), d = P(() => {
23967
+ ), l = T(() => {
23948
23968
  t == null || t(c);
23949
23969
  }, [t, c]);
23950
23970
  return x1(
@@ -23952,9 +23972,9 @@ const Z1 = {
23952
23972
  filterStates: c,
23953
23973
  handleFilterChange: p,
23954
23974
  handleClear: C,
23955
- handleApply: d
23975
+ handleApply: l
23956
23976
  }),
23957
- [c, p, C, d]
23977
+ [c, p, C, l]
23958
23978
  );
23959
23979
  }, Ni = ({
23960
23980
  filters: o = [],
@@ -23964,12 +23984,12 @@ const Z1 = {
23964
23984
  label: e = "Filtros",
23965
23985
  onClear: a,
23966
23986
  onApply: c,
23967
- closeOnApply: l = !0
23987
+ closeOnApply: d = !0
23968
23988
  }) => {
23969
23989
  const s = o1(null), {
23970
23990
  filterStates: C,
23971
23991
  handleFilterChange: p,
23972
- handleClear: d,
23992
+ handleClear: l,
23973
23993
  handleApply: L
23974
23994
  } = H6({
23975
23995
  filters: o,
@@ -23977,7 +23997,7 @@ const Z1 = {
23977
23997
  onApply: c
23978
23998
  }), h = () => {
23979
23999
  var g;
23980
- L(), l && ((g = s.current) == null || g.close());
24000
+ L(), d && ((g = s.current) == null || g.close());
23981
24001
  }, w = () => {
23982
24002
  const g = new CustomEvent("close-all-dropdowns");
23983
24003
  document.dispatchEvent(g);
@@ -24000,7 +24020,7 @@ const Z1 = {
24000
24020
  children: [
24001
24021
  /* @__PURE__ */ u("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4 ui-pb-3", children: [
24002
24022
  /* @__PURE__ */ i(b9, { title: t, icon: n }),
24003
- /* @__PURE__ */ i(v1, { variant: "text", color: "neutral", colorIcon: "neutral", onClick: d, children: r })
24023
+ /* @__PURE__ */ i(v1, { variant: "text", color: "neutral", colorIcon: "neutral", onClick: l, children: r })
24004
24024
  ] }),
24005
24025
  /* @__PURE__ */ i(U1, {}),
24006
24026
  /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-col ui-gap-y-2 ui-p-4 ui-pt-3", children: [
@@ -24100,10 +24120,10 @@ const Z1 = {
24100
24120
  disableOutsideTab: n = !1,
24101
24121
  disableOutsideClick: e = !1
24102
24122
  }) => {
24103
- const a = H9(), { isVisible: c, isAnimating: l } = v9(o, { exitDelay: 200 }), s = o1(null);
24104
- return j9(o), J0(o, r, t), h6(o, s), V9(o, s, !n), w6(o, s, r, e), {
24123
+ const a = H9(), { isVisible: c, isAnimating: d } = v9(o, { exitDelay: 200 }), s = o1(null);
24124
+ return j9(o), X0(o, r, t), h6(o, s), V9(o, s, !n), w6(o, s, r, e), {
24105
24125
  isVisible: c,
24106
- animateIn: l,
24126
+ animateIn: d,
24107
24127
  container: a,
24108
24128
  modalRef: s
24109
24129
  };
@@ -24115,11 +24135,11 @@ const Z1 = {
24115
24135
  closeAtSuccess: e = !1,
24116
24136
  successButtonText: a = "Guardar",
24117
24137
  showSuccessButton: c = !0,
24118
- onCancel: l,
24138
+ onCancel: d,
24119
24139
  cancelButtonText: s = "Cancelar",
24120
24140
  closeAtCancel: C = !0,
24121
24141
  showCancelButton: p = !0,
24122
- showCloseButton: d = !0,
24142
+ showCloseButton: l = !0,
24123
24143
  closeAtCorner: L = !0,
24124
24144
  title: h,
24125
24145
  tabs: w,
@@ -24132,15 +24152,15 @@ const Z1 = {
24132
24152
  cancelButtonSlotLeft: V,
24133
24153
  successButtonSlotRight: y,
24134
24154
  disableCancelButton: B,
24135
- disableSuccessButton: E
24155
+ disableSuccessButton: R
24136
24156
  }) => {
24137
24157
  const A = {
24138
24158
  onClose: r,
24139
- showCloseButton: d,
24159
+ showCloseButton: l,
24140
24160
  closeAtCorner: L,
24141
24161
  cancelButtonText: s,
24142
24162
  successButtonText: a,
24143
- onCancel: l,
24163
+ onCancel: d,
24144
24164
  onSuccess: t,
24145
24165
  showCancelButton: p,
24146
24166
  showSuccessButton: c,
@@ -24158,7 +24178,7 @@ const Z1 = {
24158
24178
  cancelButtonSlotLeft: V,
24159
24179
  successButtonSlotRight: y,
24160
24180
  disableCancelButton: B,
24161
- disableSuccessButton: E
24181
+ disableSuccessButton: R
24162
24182
  };
24163
24183
  return /* @__PURE__ */ i(B9.Provider, { value: A, children: o });
24164
24184
  }, S9 = () => {
@@ -24174,7 +24194,7 @@ const Z1 = {
24174
24194
  colorIcon: e = "blue",
24175
24195
  fullWidth: a = !1
24176
24196
  }) => {
24177
- var d;
24197
+ var l;
24178
24198
  const c = C1("", {
24179
24199
  variants: {
24180
24200
  size: {
@@ -24191,8 +24211,8 @@ const Z1 = {
24191
24211
  size: "sm",
24192
24212
  fullWidth: !1
24193
24213
  }
24194
- }), [l, s] = Y(r || ((d = o[0]) == null ? void 0 : d.value) || ""), C = (L) => {
24195
- l !== L && (s(L), t && t(L));
24214
+ }), [d, s] = Y(r || ((l = o[0]) == null ? void 0 : l.value) || ""), C = (L) => {
24215
+ d !== L && (s(L), t && t(L));
24196
24216
  }, p = c({ size: n, fullWidth: a });
24197
24217
  return /* @__PURE__ */ i("div", { className: U("ui-relative ui-flex ui-rounded-md ui-bg-neutral-50", p), children: o.map((L) => /* @__PURE__ */ i(
24198
24218
  t1,
@@ -24202,9 +24222,9 @@ const Z1 = {
24202
24222
  onClick: () => C(L.value),
24203
24223
  fullWidth: a,
24204
24224
  variant: "outlined",
24205
- clickable: l !== L.value,
24225
+ clickable: d !== L.value,
24206
24226
  borderable: !0,
24207
- color: l === L.value ? "white" : "transparent",
24227
+ color: d === L.value ? "white" : "transparent",
24208
24228
  showShadow: !1,
24209
24229
  slotLeft: L.slotLeft,
24210
24230
  slotRight: L.slotRight,
@@ -24220,19 +24240,19 @@ const Z1 = {
24220
24240
  defaultValueTab: e,
24221
24241
  onChangeTab: a,
24222
24242
  headerButtonIcon: c,
24223
- headerButtonOnClick: l
24243
+ headerButtonOnClick: d
24224
24244
  }) => {
24225
24245
  const {
24226
24246
  onClose: s,
24227
24247
  showCloseButton: C,
24228
24248
  icon: p,
24229
- tabs: d,
24249
+ tabs: l,
24230
24250
  defaultValueTab: L,
24231
24251
  onChangeTab: h,
24232
24252
  headerButtonIcon: w,
24233
24253
  headerButtonOnClick: f
24234
- } = S9(), g = r ?? C, b = c ?? w, m = l ?? f, H = (n == null ? void 0 : n.length) > 0 ? n : d, j = (H == null ? void 0 : H.length) ?? !1, V = a ?? h, y = e ?? L, B = (E) => {
24235
- V && V(E);
24254
+ } = S9(), g = r ?? C, b = c ?? w, m = d ?? f, H = (n == null ? void 0 : n.length) > 0 ? n : l, j = (H == null ? void 0 : H.length) ?? !1, V = a ?? h, y = e ?? L, B = (R) => {
24255
+ V && V(R);
24236
24256
  };
24237
24257
  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: [
24238
24258
  p && /* @__PURE__ */ i("div", { className: "ui-flex ui-h-8 ui-w-8 ui-items-center ui-justify-center ui-gap-2 ui-rounded-full ui-bg-blue-50 ui-text-blue-500", children: /* @__PURE__ */ i(b1, { slot: p, size: "lg" }) }),
@@ -24269,15 +24289,15 @@ const Z1 = {
24269
24289
  options: H ?? [],
24270
24290
  defaultValue: y,
24271
24291
  size: "sm",
24272
- onChange: (E) => {
24273
- B(E);
24292
+ onChange: (R) => {
24293
+ B(R);
24274
24294
  }
24275
24295
  }
24276
24296
  ) }) : null
24277
24297
  ] });
24278
24298
  };
24279
24299
  Y1.displayName = "Modal.Header";
24280
- const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", { className: U(r && "ui-p-4"), children: o }), X0 = ({
24300
+ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", { className: U(r && "ui-p-4"), children: o }), K0 = ({
24281
24301
  children: o,
24282
24302
  footerButtonIcon: r,
24283
24303
  footerButtonOnClick: t,
@@ -24287,11 +24307,11 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24287
24307
  const {
24288
24308
  onClose: a,
24289
24309
  cancelButtonText: c,
24290
- successButtonText: l,
24310
+ successButtonText: d,
24291
24311
  onCancel: s,
24292
24312
  onSuccess: C,
24293
24313
  showCancelButton: p,
24294
- showSuccessButton: d,
24314
+ showSuccessButton: l,
24295
24315
  closeAtSuccess: L,
24296
24316
  closeAtCancel: h,
24297
24317
  footerButtonIcon: w,
@@ -24334,13 +24354,13 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24334
24354
  children: c
24335
24355
  }
24336
24356
  ),
24337
- d && /* @__PURE__ */ i(
24357
+ l && /* @__PURE__ */ i(
24338
24358
  t1,
24339
24359
  {
24340
24360
  slotLeft: e ?? b,
24341
24361
  onClick: V,
24342
24362
  disabled: H,
24343
- children: l
24363
+ children: d
24344
24364
  }
24345
24365
  )
24346
24366
  ] })
@@ -24355,11 +24375,11 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24355
24375
  lg: "ui-max-w-[896px]",
24356
24376
  xl: "ui-max-w-[1100px]",
24357
24377
  "2xl": "ui-max-w-[1350px]"
24358
- }, S6 = (o) => K0({ children: o, component: Y1, componentName: "Modal.Header" }), $6 = (o) => K0({ children: o, component: X0, componentName: "Modal.Footer" }), K0 = ({
24378
+ }, S6 = (o) => Q0({ children: o, component: Y1, componentName: "Modal.Header" }), $6 = (o) => Q0({ children: o, component: K0, componentName: "Modal.Footer" }), Q0 = ({
24359
24379
  children: o,
24360
24380
  component: r,
24361
24381
  componentName: t
24362
- }) => M1.Children.toArray(o).some((n) => M1.isValidElement(n) ? n.type === r || n.type.displayName === t || n.type.name === t ? !0 : n.type === M1.Fragment || n.props.children ? K0({ children: n.props.children, component: r, componentName: t }) : !1 : !1), P6 = ({
24382
+ }) => M1.Children.toArray(o).some((n) => M1.isValidElement(n) ? n.type === r || n.type.displayName === t || n.type.name === t ? !0 : n.type === M1.Fragment || n.props.children ? Q0({ children: n.props.children, component: r, componentName: t }) : !1 : !1), P6 = ({
24363
24383
  isOpen: o,
24364
24384
  onClose: r,
24365
24385
  icon: t,
@@ -24367,11 +24387,11 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24367
24387
  children: e,
24368
24388
  showCloseButton: a = !0,
24369
24389
  disableEscapeClose: c = !1,
24370
- disableOutsideTab: l = !0,
24390
+ disableOutsideTab: d = !0,
24371
24391
  disableOutsideClick: s = !1,
24372
24392
  closeAtCorner: C = !0,
24373
24393
  cancelButtonText: p,
24374
- successButtonText: d,
24394
+ successButtonText: l,
24375
24395
  onCancel: L,
24376
24396
  onSuccess: h,
24377
24397
  title: w,
@@ -24384,22 +24404,22 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24384
24404
  onChangeTab: V,
24385
24405
  headerButtonIcon: y,
24386
24406
  headerButtonOnClick: B,
24387
- footerButtonIcon: E,
24407
+ footerButtonIcon: R,
24388
24408
  footerButtonOnClick: A,
24389
24409
  cancelButtonSlotLeft: S,
24390
24410
  successButtonSlotRight: v,
24391
24411
  disableCancelButton: x,
24392
24412
  disableSuccessButton: Z
24393
24413
  }) => {
24394
- const { isVisible: O, animateIn: M, container: I, modalRef: z } = O6({
24414
+ const { isVisible: O, animateIn: M, container: k, modalRef: D } = O6({
24395
24415
  isOpen: o,
24396
24416
  onClose: r,
24397
24417
  disableEscapeClose: c,
24398
- disableOutsideTab: l,
24418
+ disableOutsideTab: d,
24399
24419
  disableOutsideClick: s
24400
24420
  });
24401
- if (!I || !o && !O) return null;
24402
- const J = S6(e), G = $6(e), R = /* @__PURE__ */ u(
24421
+ if (!k || !o && !O) return null;
24422
+ const J = S6(e), q = $6(e), z = /* @__PURE__ */ u(
24403
24423
  "div",
24404
24424
  {
24405
24425
  "aria-modal": "true",
@@ -24414,20 +24434,20 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24414
24434
  "ui-fixed ui-inset-0 ui-bg-black ui-backdrop-blur-sm ui-transition-opacity ui-duration-200",
24415
24435
  M ? "ui-opacity-40" : "ui-opacity-0"
24416
24436
  ),
24417
- onClick: s ? (X) => X.stopPropagation() : r
24437
+ onClick: s ? (K) => K.stopPropagation() : r
24418
24438
  }
24419
24439
  ),
24420
24440
  /* @__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(
24421
24441
  "div",
24422
24442
  {
24423
- ref: z,
24443
+ ref: D,
24424
24444
  tabIndex: -1,
24425
24445
  className: U(
24426
24446
  "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",
24427
24447
  B6[n],
24428
24448
  M ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
24429
24449
  ),
24430
- onClick: (X) => X.stopPropagation(),
24450
+ onClick: (K) => K.stopPropagation(),
24431
24451
  children: /* @__PURE__ */ u(
24432
24452
  k6,
24433
24453
  {
@@ -24436,7 +24456,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24436
24456
  showCloseButton: a,
24437
24457
  closeAtCorner: C,
24438
24458
  cancelButtonText: p,
24439
- successButtonText: d,
24459
+ successButtonText: l,
24440
24460
  onCancel: L,
24441
24461
  onSuccess: h,
24442
24462
  showCancelButton: f,
@@ -24447,7 +24467,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24447
24467
  icon: t,
24448
24468
  headerButtonIcon: y,
24449
24469
  headerButtonOnClick: B,
24450
- footerButtonIcon: E,
24470
+ footerButtonIcon: R,
24451
24471
  footerButtonOnClick: A,
24452
24472
  tabs: H,
24453
24473
  defaultValueTab: j,
@@ -24459,7 +24479,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24459
24479
  children: [
24460
24480
  !J && (a || w ? /* @__PURE__ */ i(Y1, { title: w }) : null),
24461
24481
  e && e,
24462
- !G && /* @__PURE__ */ i(X0, {})
24482
+ !q && /* @__PURE__ */ i(K0, {})
24463
24483
  ]
24464
24484
  }
24465
24485
  )
@@ -24468,11 +24488,11 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24468
24488
  ]
24469
24489
  }
24470
24490
  );
24471
- return h9.createPortal(R, I);
24491
+ return h9.createPortal(z, k);
24472
24492
  }, zi = Object.assign(P6, {
24473
24493
  Header: Y1,
24474
24494
  Body: Z6,
24475
- Footer: X0
24495
+ Footer: K0
24476
24496
  }), T6 = [
24477
24497
  { label: "5", id: 5 },
24478
24498
  { label: "10", id: 10 },
@@ -24487,19 +24507,19 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24487
24507
  pageSizeText: e = "",
24488
24508
  showingPagesText: a = "Mostrando página",
24489
24509
  optionsSize: c = T6,
24490
- onPageChange: l,
24510
+ onPageChange: d,
24491
24511
  handlePageSize: s = () => {
24492
24512
  },
24493
24513
  className: C = "",
24494
24514
  maxVisiblePages: p = 5,
24495
- showVisiblePages: d = !1,
24515
+ showVisiblePages: l = !1,
24496
24516
  showPagesSelector: L = !1
24497
24517
  }) => {
24498
24518
  Q(() => {
24499
- o > r && r > 0 && l(r);
24500
- }, [o, r, l]);
24519
+ o > r && r > 0 && d(r);
24520
+ }, [o, r, d]);
24501
24521
  const h = (j) => {
24502
- j >= 1 && j <= r && l(j);
24522
+ j >= 1 && j <= r && d(j);
24503
24523
  }, [w, f] = Y(t);
24504
24524
  Q(() => {
24505
24525
  f(t);
@@ -24517,7 +24537,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
24517
24537
  role: "navigation",
24518
24538
  "aria-label": "Paginación",
24519
24539
  children: /* @__PURE__ */ u("div", { className: "ui-grid ui-w-full ui-grid-cols-[1fr] ui-grid-rows-3 ui-items-center ui-justify-center ui-gap-x-2 ui-gap-y-2 md:ui-grid-cols-[1fr_auto_1fr] md:ui-grid-rows-1 md:ui-justify-between", children: [
24520
- d && r > 1 ? /* @__PURE__ */ u("p", { className: "ui-text-black-black_light ui-text-center ui-text-xxs ui-tracking-wider md:ui-text-left", children: [
24540
+ l && r > 1 ? /* @__PURE__ */ u("p", { className: "ui-text-black-black_light ui-text-center ui-text-xxs ui-tracking-wider md:ui-text-left", children: [
24521
24541
  a,
24522
24542
  " ",
24523
24543
  o,
@@ -27798,15 +27818,15 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27798
27818
  name: a,
27799
27819
  id: c
27800
27820
  }) => {
27801
- 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(() => {
27821
+ const [d, s] = Y(!1), [C, p] = Y(!1), l = c || `radio-${Math.random().toString(36).substr(2, 9)}`, h = o !== void 0 ? o : r !== void 0 ? r : !1, w = T(() => t ? h ? "disabledChecked" : "disabledUnchecked" : d ? h ? "checkedActive" : "uncheckedActive" : C ? h ? "checkedHover" : "uncheckedHover" : h ? "checked" : "unchecked", [t, h, d, C]), f = T(() => {
27802
27822
  t || s(!0);
27803
- }, [t]), g = P(() => {
27823
+ }, [t]), g = T(() => {
27804
27824
  s(!1);
27805
- }, []), b = P(() => {
27825
+ }, []), b = T(() => {
27806
27826
  t || p(!0);
27807
- }, [t]), m = P(() => {
27827
+ }, [t]), m = T(() => {
27808
27828
  p(!1), s(!1);
27809
- }, []), H = P(
27829
+ }, []), H = T(
27810
27830
  (j) => {
27811
27831
  t || (j.preventDefault(), n && n({
27812
27832
  target: {
@@ -27821,8 +27841,8 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27821
27841
  );
27822
27842
  return {
27823
27843
  state: w(),
27824
- radioId: d,
27825
- isActive: l,
27844
+ radioId: l,
27845
+ isActive: d,
27826
27846
  isHovered: C,
27827
27847
  handlers: {
27828
27848
  handleMouseDown: f,
@@ -27840,13 +27860,13 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27840
27860
  className: e,
27841
27861
  labelClassName: a,
27842
27862
  id: c,
27843
- checked: l,
27863
+ checked: d,
27844
27864
  onChange: s,
27845
27865
  defaultChecked: C,
27846
27866
  ...p
27847
27867
  }) => {
27848
- const d = l !== void 0, L = d ? l : C !== void 0 ? C : !1, { state: h, radioId: w, handlers: f } = W6({
27849
- checked: l,
27868
+ const l = d !== void 0, L = l ? d : C !== void 0 ? C : !1, { state: h, radioId: w, handlers: f } = W6({
27869
+ checked: d,
27850
27870
  defaultChecked: C,
27851
27871
  disabled: n,
27852
27872
  onChange: s,
@@ -27860,8 +27880,8 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27860
27880
  {
27861
27881
  type: "radio",
27862
27882
  id: w,
27863
- checked: d ? l : void 0,
27864
- defaultChecked: !d && C !== void 0 ? C : void 0,
27883
+ checked: l ? d : void 0,
27884
+ defaultChecked: !l && C !== void 0 ? C : void 0,
27865
27885
  onChange: s,
27866
27886
  disabled: n,
27867
27887
  className: "ui-sr-only",
@@ -27913,9 +27933,9 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27913
27933
  onChange: r,
27914
27934
  options: t
27915
27935
  }) => {
27916
- const [n, e] = Y(o), a = o !== void 0 ? o : n, c = P(
27917
- (l) => {
27918
- r ? r(l) : e(l);
27936
+ const [n, e] = Y(o), a = o !== void 0 ? o : n, c = T(
27937
+ (d) => {
27938
+ r ? r(d) : e(d);
27919
27939
  },
27920
27940
  [r]
27921
27941
  );
@@ -27931,14 +27951,14 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27931
27951
  color: e = "blue",
27932
27952
  disabled: a = !1,
27933
27953
  orientation: c = "vertical",
27934
- className: l,
27954
+ className: d,
27935
27955
  name: s
27936
27956
  }) => {
27937
27957
  const { selectedValue: C, handleChange: p } = ei({
27938
27958
  value: r,
27939
27959
  onChange: t,
27940
27960
  options: o
27941
- }), d = (L) => {
27961
+ }), l = (L) => {
27942
27962
  p(L.target.value);
27943
27963
  };
27944
27964
  return /* @__PURE__ */ i(
@@ -27947,7 +27967,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27947
27967
  className: U(
27948
27968
  "ui-flex ui-gap-3",
27949
27969
  c === "horizontal" ? "ui-flex-row" : "ui-flex-col",
27950
- l
27970
+ d
27951
27971
  ),
27952
27972
  role: "radiogroup",
27953
27973
  "aria-label": s,
@@ -27957,7 +27977,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27957
27977
  value: L.value,
27958
27978
  label: L.label,
27959
27979
  checked: C === L.value,
27960
- onChange: d,
27980
+ onChange: l,
27961
27981
  size: n,
27962
27982
  color: e,
27963
27983
  disabled: a || L.disabled,
@@ -27977,7 +27997,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
27977
27997
  return {
27978
27998
  currentStep: c,
27979
27999
  getColorClasses: (p) => {
27980
- const d = {
28000
+ const l = {
27981
28001
  blue: {
27982
28002
  primary: "ui-bg-blue-500 ui-border-blue-500",
27983
28003
  secondary: "ui-border-blue-100",
@@ -28045,7 +28065,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28045
28065
  line: "ui-border-transparent"
28046
28066
  }
28047
28067
  };
28048
- return d[p] || d.blue;
28068
+ return l[p] || l.blue;
28049
28069
  },
28050
28070
  handleStepClick: (p) => {
28051
28071
  t && t(p), r === void 0 && a(p), n && n(p);
@@ -28092,16 +28112,16 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28092
28112
  isLast: e,
28093
28113
  onStepClick: a,
28094
28114
  classNameStep: c = "",
28095
- classNameStepLabel: l = "",
28115
+ classNameStepLabel: d = "",
28096
28116
  classNameStepIcon: s = "",
28097
28117
  classNameStepNumber: C = "",
28098
28118
  vertical: p = !1,
28099
- stepClickable: d = !1
28119
+ stepClickable: l = !1
28100
28120
  }) => /* @__PURE__ */ i("div", { className: p ? "ui-flex ui-flex-col ui-items-center ui-h-[60px] ui-min-h-[60px] ui-place-self-start" : "ui-flex ui-items-center ui-w-[130px] ui-min-w-[130px] ui-place-self-start", children: /* @__PURE__ */ u(
28101
28121
  "div",
28102
28122
  {
28103
28123
  className: `${p ? "ui-flex ui-flex-row ui-items-center ui-cursor-pointer ui-relative ui-h-full ui-gap-x-2" : "ui-flex ui-flex-col ui-items-center ui-cursor-pointer ui-relative ui-w-full"} ${c}`,
28104
- onClick: () => d && a(r),
28124
+ onClick: () => l && a(r),
28105
28125
  children: [
28106
28126
  /* @__PURE__ */ i(
28107
28127
  oi,
@@ -28118,7 +28138,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28118
28138
  {
28119
28139
  step: o,
28120
28140
  stepIndex: r,
28121
- className: l,
28141
+ className: d,
28122
28142
  vertical: p
28123
28143
  }
28124
28144
  ),
@@ -28159,11 +28179,11 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28159
28179
  classNameStep: e,
28160
28180
  classNameStepLabel: a,
28161
28181
  classNameStepIcon: c,
28162
- classNameStepNumber: l,
28182
+ classNameStepNumber: d,
28163
28183
  currentStep: s,
28164
28184
  onClickStep: C,
28165
28185
  onStepChange: p,
28166
- withScroll: d = !0,
28186
+ withScroll: l = !0,
28167
28187
  vertical: L = !1,
28168
28188
  stepClickable: h = !1
28169
28189
  }) => {
@@ -28173,7 +28193,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28173
28193
  onClickStep: C,
28174
28194
  onStepChange: p
28175
28195
  }), m = f(r || "blue");
28176
- return /* @__PURE__ */ i("div", { className: `${L ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${d ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${d ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${ai({ color: r, size: t, className: n })}`, children: o.map((j, V) => {
28196
+ return /* @__PURE__ */ i("div", { className: `${L ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${l ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${l ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${ai({ color: r, size: t, className: n })}`, children: o.map((j, V) => {
28177
28197
  const y = b(V), B = V === o.length - 1;
28178
28198
  return /* @__PURE__ */ i(
28179
28199
  ui,
@@ -28187,7 +28207,7 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28187
28207
  classNameStep: e,
28188
28208
  classNameStepLabel: a,
28189
28209
  classNameStepIcon: c,
28190
- classNameStepNumber: l,
28210
+ classNameStepNumber: d,
28191
28211
  vertical: L,
28192
28212
  stepClickable: h
28193
28213
  },
@@ -28215,8 +28235,8 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28215
28235
  if (typeof p == "boolean")
28216
28236
  return p ? C : `${C}={false}`;
28217
28237
  if (typeof p == "function") {
28218
- const d = p.toString();
28219
- return d.includes("=>") ? `${C}={${d}}` : `${C}={${d}}`;
28238
+ const l = p.toString();
28239
+ return l.includes("=>") ? `${C}={${l}}` : `${C}={${l}}`;
28220
28240
  } else {
28221
28241
  if (p === null)
28222
28242
  return `${C}={null}`;
@@ -28235,13 +28255,13 @@ const Z6 = ({ children: o, withPadding: r = !0 }) => /* @__PURE__ */ i("div", {
28235
28255
  let c = "";
28236
28256
  n.children && (Array.isArray(n.children) ? c = n.children.filter((C) => C != null).map((C) => R1(C)).join(`
28237
28257
  `) : c = R1(n.children));
28238
- const l = a ? ` ${a}` : "";
28258
+ const d = a ? ` ${a}` : "";
28239
28259
  if (!c)
28240
- return `<${e}${l} />`;
28260
+ return `<${e}${d} />`;
28241
28261
  const s = c.split(`
28242
28262
  `).map((C) => ` ${C}`).join(`
28243
28263
  `);
28244
- return `<${e}${l}>
28264
+ return `<${e}${d}>
28245
28265
  ${s}
28246
28266
  </${e}>`;
28247
28267
  }
@@ -28269,12 +28289,12 @@ ${s}
28269
28289
  borderRadius: "0.375rem",
28270
28290
  overflow: "hidden"
28271
28291
  };
28272
- }, l = r9[e] || r9.dracula;
28292
+ }, d = r9[e] || r9.dracula;
28273
28293
  return /* @__PURE__ */ i("div", { className: "w-full", style: c(), children: /* @__PURE__ */ i(
28274
28294
  Z2,
28275
28295
  {
28276
28296
  language: r,
28277
- style: l,
28297
+ style: d,
28278
28298
  showLineNumbers: t,
28279
28299
  customStyle: {
28280
28300
  margin: 0,
@@ -28318,17 +28338,17 @@ const pi = {
28318
28338
  let g1 = { ...pi };
28319
28339
  const K1 = [];
28320
28340
  let Ci = 0;
28321
- const E1 = /* @__PURE__ */ new Map(), i0 = {
28341
+ const E1 = /* @__PURE__ */ new Map(), o0 = {
28322
28342
  show(o, r = "green", t = {}) {
28323
28343
  const n = Date.now() + ++Ci;
28324
28344
  let e, a;
28325
28345
  typeof o == "string" ? (e = o, a = t) : (e = o.message, a = { ...t, ...o });
28326
- const c = `${e}-${r}`, l = Date.now(), s = E1.get(c);
28327
- if (s && l - s < 100)
28346
+ const c = `${e}-${r}`, d = Date.now(), s = E1.get(c);
28347
+ if (s && d - s < 100)
28328
28348
  return n;
28329
- E1.set(c, l);
28330
- for (const [p, d] of E1.entries())
28331
- l - d > 1e3 && E1.delete(p);
28349
+ E1.set(c, d);
28350
+ for (const [p, l] of E1.entries())
28351
+ d - l > 1e3 && E1.delete(p);
28332
28352
  const C = {
28333
28353
  id: n,
28334
28354
  message: e,
@@ -28388,39 +28408,39 @@ const E1 = /* @__PURE__ */ new Map(), i0 = {
28388
28408
  }, Li = () => {
28389
28409
  const [o, r] = Y([]), t = o1(/* @__PURE__ */ new Map()), n = o1(null);
28390
28410
  return Q(() => {
28391
- const a = i0.getListeners();
28411
+ const a = o0.getListeners();
28392
28412
  if (n.current) {
28393
- const l = a.indexOf(n.current);
28394
- l > -1 && a.splice(l, 1);
28413
+ const d = a.indexOf(n.current);
28414
+ d > -1 && a.splice(d, 1);
28395
28415
  }
28396
- const c = (l) => {
28397
- if (l.isLeaving) {
28416
+ const c = (d) => {
28417
+ if (d.isLeaving) {
28398
28418
  r(
28399
- (s) => s.map((C) => C.id === l.id ? { ...C, isLeaving: !0 } : C)
28419
+ (s) => s.map((C) => C.id === d.id ? { ...C, isLeaving: !0 } : C)
28400
28420
  ), setTimeout(() => {
28401
- r((s) => s.filter((C) => C.id !== l.id));
28421
+ r((s) => s.filter((C) => C.id !== d.id));
28402
28422
  }, g1.animationDuration);
28403
28423
  return;
28404
28424
  }
28405
28425
  if (r((s) => {
28406
- if (s.some((L) => L.id === l.id)) return s;
28407
- const p = { ...l, isLeaving: !1 };
28426
+ if (s.some((L) => L.id === d.id)) return s;
28427
+ const p = { ...d, isLeaving: !1 };
28408
28428
  return [...s, p].slice(-g1.maxToasts);
28409
- }), l.duration && l.duration > 0) {
28429
+ }), d.duration && d.duration > 0) {
28410
28430
  const s = setTimeout(() => {
28411
- i0.dismiss(l.id), t.current.delete(l.id);
28412
- }, l.duration);
28413
- t.current.set(l.id, s);
28431
+ o0.dismiss(d.id), t.current.delete(d.id);
28432
+ }, d.duration);
28433
+ t.current.set(d.id, s);
28414
28434
  }
28415
28435
  };
28416
28436
  return n.current = c, a.push(c), () => {
28417
- const l = a.indexOf(c);
28418
- l > -1 && a.splice(l, 1), t.current.forEach((s) => clearTimeout(s)), t.current.clear(), n.current = null;
28437
+ const d = a.indexOf(c);
28438
+ d > -1 && a.splice(d, 1), t.current.forEach((s) => clearTimeout(s)), t.current.clear(), n.current = null;
28419
28439
  };
28420
28440
  }, []), { toastsByPosition: x1(
28421
28441
  () => o.reduce((a, c) => {
28422
- const l = c.position || "top-right";
28423
- return a[l] || (a[l] = []), a[l].push(c), a;
28442
+ const d = c.position || "top-right";
28443
+ return a[d] || (a[d] = []), a[d].push(c), a;
28424
28444
  }, {}),
28425
28445
  [o]
28426
28446
  ), toasts: o };
@@ -28477,7 +28497,7 @@ const E1 = /* @__PURE__ */ new Map(), i0 = {
28477
28497
  },
28478
28498
  t
28479
28499
  )) });
28480
- }, fi = i0, Gi = () => {
28500
+ }, fi = o0, Gi = () => {
28481
28501
  const { toastsByPosition: o } = Li();
28482
28502
  return D1(/* @__PURE__ */ i(gi, { toasts: o }), document.body);
28483
28503
  };
@@ -28532,7 +28552,7 @@ export {
28532
28552
  I9 as Tag,
28533
28553
  b9 as Title,
28534
28554
  Gi as Toaster,
28535
- e9 as Tooltip,
28555
+ n0 as Tooltip,
28536
28556
  b1 as Visual,
28537
28557
  o6 as WeekDay,
28538
28558
  i6 as Year,