@imj_media/ui 1.0.78 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as i, jsxs as u, Fragment as $1 } from "react/jsx-runtime";
2
- import M1, { useState as q, useRef as i1, useEffect as K, useCallback as N, useMemo as m1, useImperativeHandle as u0, forwardRef as Y1, createContext as F9, useContext as E9, useId as a0 } from "react";
2
+ import M1, { useState as q, useRef as i1, useEffect as K, useCallback as N, useMemo as h1, useImperativeHandle as u0, forwardRef as Y1, createContext as F9, useContext as E9, useId as a0 } from "react";
3
3
  import { clsx as D9 } from "clsx";
4
4
  import { twMerge as R9 } from "tailwind-merge";
5
5
  import { library as l0 } from "@fortawesome/fontawesome-svg-core";
6
- import { faUser as s0, faHome as d0, faBell as c0, faEdit as p0, faSave as C0, faDownload as L0, faSearch as h0, faTrash as g0, faEye as w0, faHeart as f0, faStar as m0, faPlus as b0, faMinus as v0, faCheck as x0, faTimes as M0, faArrowLeft as j0, faArrowRight as V0, faArrowUp as H0, faArrowDown as y0, faBars as O0, faCog as k0, faInfo as I0, faExclamationTriangle as Z0, faExclamationCircle as S0, faCheckCircle as B0, faSpinner as $0, faSync as N0, faFilter as T0, faSort as A0, faCalendar as z0, faClock as P0, faMapMarkerAlt as F0, faFolder as E0, faCircle as D0, faSquare as R0, faList as _0, faTasks as U0, faTools as G0, faShapes as q0, faPalette as Y0, faTachometerAlt as J0, faDesktop as X0, faCircleCheck as K0 } from "@fortawesome/pro-regular-svg-icons";
7
- import { faUser as _9, faHome as U9, faBell as G9, faEdit as q9, faSave as Y9, faDownload as J9, faSearch as X9, faTrash as K9, faEye as Q9, faHeart as W9, faStar as e2, faPlus as n2, faMinus as i2, faCheck as t2, faTimes as o2, faArrowLeft as r2, faArrowRight as u2, faArrowUp as a2, faArrowDown as l2, faBars as s2, faCog as d2, faInfo as c2, faExclamationTriangle as p2, faExclamationCircle as C2, faCheckCircle as L2, faSpinner as h2, faSync as g2, faFilter as w2, faSort as f2, faCalendar as m2, faClock as b2, faMapMarkerAlt as v2, faFolder as x2, faCircle as M2, faSquare as j2, faList as V2, faTasks as H2, faTools as y2, faShapes as O2, faPalette as k2, faDashboard as I2, faDesktop as Z2, faCircleCheck as S2 } from "@fortawesome/pro-solid-svg-icons";
6
+ import { faUser as s0, faHome as d0, faBell as c0, faEdit as p0, faSave as C0, faDownload as L0, faSearch as h0, faTrash as g0, faEye as w0, faHeart as f0, faStar as m0, faPlus as b0, faMinus as x0, faCheck as v0, faTimes as M0, faArrowLeft as j0, faArrowRight as V0, faArrowUp as H0, faArrowDown as y0, faBars as O0, faCog as k0, faInfo as I0, faExclamationTriangle as Z0, faExclamationCircle as S0, faCheckCircle as B0, faSpinner as $0, faSync as N0, faFilter as T0, faSort as A0, faCalendar as z0, faClock as P0, faMapMarkerAlt as F0, faFolder as E0, faCircle as D0, faSquare as R0, faList as _0, faTasks as U0, faTools as G0, faShapes as q0, faPalette as Y0, faTachometerAlt as J0, faDesktop as X0, faCircleCheck as K0 } from "@fortawesome/pro-regular-svg-icons";
7
+ import { faUser as _9, faHome as U9, faBell as G9, faEdit as q9, faSave as Y9, faDownload as J9, faSearch as X9, faTrash as K9, faEye as Q9, faHeart as W9, faStar as e2, faPlus as n2, faMinus as i2, faCheck as t2, faTimes as o2, faArrowLeft as r2, faArrowRight as u2, faArrowUp as a2, faArrowDown as l2, faBars as s2, faCog as d2, faInfo as c2, faExclamationTriangle as p2, faExclamationCircle as C2, faCheckCircle as L2, faSpinner as h2, faSync as g2, faFilter as w2, faSort as f2, faCalendar as m2, faClock as b2, faMapMarkerAlt as x2, faFolder as v2, faCircle as M2, faSquare as j2, faList as V2, faTasks as H2, faTools as y2, faShapes as O2, faPalette as k2, faDashboard as I2, faDesktop as Z2, faCircleCheck as S2 } from "@fortawesome/pro-solid-svg-icons";
8
8
  import { faFacebook as c9, faInstagram as p9, faTwitter as C9, faWhatsapp as e0, faLinkedin as L9, faYoutube as h9, faGithub as g9, faGoogle as w9, faApple as f9, faMicrosoft as m9 } from "@fortawesome/free-brands-svg-icons";
9
9
  import { FontAwesomeIcon as B2 } from "@fortawesome/react-fontawesome";
10
10
  import { cva as C1 } from "class-variance-authority";
@@ -28,8 +28,8 @@ l0.add(
28
28
  f0,
29
29
  m0,
30
30
  b0,
31
- v0,
32
31
  x0,
32
+ v0,
33
33
  M0,
34
34
  j0,
35
35
  V0,
@@ -95,8 +95,8 @@ l0.add(
95
95
  f2,
96
96
  m2,
97
97
  b2,
98
- v2,
99
98
  x2,
99
+ v2,
100
100
  M2,
101
101
  j2,
102
102
  V2,
@@ -134,8 +134,8 @@ const U2 = {
134
134
  OutlineHeartIcon: f0,
135
135
  OutlineStarIcon: m0,
136
136
  OutlinePlusIcon: b0,
137
- OutlineMinusIcon: v0,
138
- OutlineCheckIcon: x0,
137
+ OutlineMinusIcon: x0,
138
+ OutlineCheckIcon: v0,
139
139
  OutlineTimesIcon: M0,
140
140
  OutlineArrowLeftIcon: j0,
141
141
  OutlineArrowRightIcon: V0,
@@ -192,8 +192,8 @@ const U2 = {
192
192
  FillHeartIcon: f0,
193
193
  FillStarIcon: m0,
194
194
  FillPlusIcon: b0,
195
- FillMinusIcon: v0,
196
- FillCheckIcon: x0,
195
+ FillMinusIcon: x0,
196
+ FillCheckIcon: v0,
197
197
  FillTimesIcon: M0,
198
198
  FillArrowLeftIcon: j0,
199
199
  FillArrowRightIcon: V0,
@@ -1546,7 +1546,7 @@ function be({
1546
1546
  }
1547
1547
  );
1548
1548
  }
1549
- function ve({
1549
+ function xe({
1550
1550
  width: t = 24,
1551
1551
  height: o = 24,
1552
1552
  fill: r = "none",
@@ -1626,7 +1626,7 @@ function ve({
1626
1626
  }
1627
1627
  );
1628
1628
  }
1629
- function xe({
1629
+ function ve({
1630
1630
  width: t = 24,
1631
1631
  height: o = 24,
1632
1632
  fill: r = "none",
@@ -4773,7 +4773,7 @@ function bn({
4773
4773
  }
4774
4774
  );
4775
4775
  }
4776
- function vn({
4776
+ function xn({
4777
4777
  width: t = 24,
4778
4778
  height: o = 24,
4779
4779
  fill: r = "none",
@@ -4878,7 +4878,7 @@ function vn({
4878
4878
  }
4879
4879
  );
4880
4880
  }
4881
- function xn({
4881
+ function vn({
4882
4882
  width: t = 24,
4883
4883
  height: o = 24,
4884
4884
  fill: r = "none",
@@ -7927,7 +7927,7 @@ function b4({
7927
7927
  }
7928
7928
  );
7929
7929
  }
7930
- function v4({
7930
+ function x4({
7931
7931
  width: t = 24,
7932
7932
  height: o = 24,
7933
7933
  fill: r = "none",
@@ -8010,7 +8010,7 @@ function v4({
8010
8010
  }
8011
8011
  );
8012
8012
  }
8013
- function x4({
8013
+ function v4({
8014
8014
  width: t = 24,
8015
8015
  height: o = 24,
8016
8016
  fill: r = "none",
@@ -11031,7 +11031,7 @@ function bi({
11031
11031
  }
11032
11032
  );
11033
11033
  }
11034
- function vi({
11034
+ function xi({
11035
11035
  width: t = 24,
11036
11036
  height: o = 24,
11037
11037
  fill: r = "none",
@@ -11069,7 +11069,7 @@ function vi({
11069
11069
  }
11070
11070
  );
11071
11071
  }
11072
- function xi({
11072
+ function vi({
11073
11073
  width: t = 24,
11074
11074
  height: o = 24,
11075
11075
  fill: r = "none",
@@ -14387,7 +14387,7 @@ function b8({
14387
14387
  }
14388
14388
  );
14389
14389
  }
14390
- function v8({
14390
+ function x8({
14391
14391
  width: t = 24,
14392
14392
  height: o = 24,
14393
14393
  fill: r = "none",
@@ -14427,7 +14427,7 @@ function v8({
14427
14427
  }
14428
14428
  );
14429
14429
  }
14430
- function x8({
14430
+ function v8({
14431
14431
  width: t = 24,
14432
14432
  height: o = 24,
14433
14433
  fill: r = "none",
@@ -17516,7 +17516,7 @@ function bt({
17516
17516
  }
17517
17517
  );
17518
17518
  }
17519
- function vt({
17519
+ function xt({
17520
17520
  width: t = 24,
17521
17521
  height: o = 24,
17522
17522
  fill: r = "none",
@@ -17581,7 +17581,7 @@ function vt({
17581
17581
  }
17582
17582
  );
17583
17583
  }
17584
- function xt({
17584
+ function vt({
17585
17585
  width: t = 24,
17586
17586
  height: o = 24,
17587
17587
  fill: r = "none",
@@ -17989,7 +17989,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17989
17989
  Bill1Outlined: zn,
17990
17990
  BillOutlined: Rn,
17991
17991
  BrainOutlined: Z8,
17992
- BrushOutlined: vi,
17992
+ BrushOutlined: xi,
17993
17993
  BuildingOutlined: D8,
17994
17994
  BusOutlined: w4,
17995
17995
  CalculcatorOutlined: _i,
@@ -17998,10 +17998,10 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17998
17998
  CalendarPlusOutlined: dt,
17999
17999
  CalendarXOutlined: O8,
18000
18000
  CalendarclockOutlined: Ii,
18001
- CalendarioDeCampanasOutlined: vn,
18001
+ CalendarioDeCampanasOutlined: xn,
18002
18002
  CampanasUrbanosOutlined: kn,
18003
18003
  CaretDownOutlined: a8,
18004
- CaretLeftOutlined: xe,
18004
+ CaretLeftOutlined: ve,
18005
18005
  CaretRightOutlined: A8,
18006
18006
  CaretUpOutlined: Q8,
18007
18007
  CatalogoOutlined: t8,
@@ -18012,7 +18012,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18012
18012
  ChevronCircleLeftOutlined: Mt,
18013
18013
  ChevronCircleRightOutlined: Y4,
18014
18014
  ChevronCircleUpOutlined: An,
18015
- ChevronDown1Outlined: x8,
18015
+ ChevronDown1Outlined: v8,
18016
18016
  ChevronDownOutlined: tt,
18017
18017
  ChevronHorizontalOutlined: k4,
18018
18018
  ChevronLeft1Outlined: di,
@@ -18095,7 +18095,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18095
18095
  ImagesOutlined: m8,
18096
18096
  ImjLogoOutlined: yt,
18097
18097
  ImplementacionOutlined: ge,
18098
- IndoorOutlined: xt,
18098
+ IndoorOutlined: vt,
18099
18099
  InfoCardOutlined: qe,
18100
18100
  InfoCircleOutlined: j4,
18101
18101
  InfoOutlined: zi,
@@ -18105,7 +18105,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18105
18105
  KanbanOutlined: te,
18106
18106
  KeyOutlined: U4,
18107
18107
  LatitudeOutlined: a4,
18108
- LegalFileOutlined: vt,
18108
+ LegalFileOutlined: xt,
18109
18109
  LightbulbIndifferentOutlined: R8,
18110
18110
  LightbulbOutlined: Ht,
18111
18111
  LightbulbSlashOutlined: lt,
@@ -18161,7 +18161,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18161
18161
  PostventaOutlined: ie,
18162
18162
  PowerOutlined: H8,
18163
18163
  PreferenciasDeUbicacionOutlined: He,
18164
- PrintOutlined: ve,
18164
+ PrintOutlined: xe,
18165
18165
  PropuestaComercialOutlined: s4,
18166
18166
  Proveedor1Outlined: bn,
18167
18167
  ProveedorOutlined: y4,
@@ -18176,7 +18176,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18176
18176
  RefreshOutlined: en,
18177
18177
  RegresarVistaCardsOutlined: Lt,
18178
18178
  RouteOutlined: an,
18179
- RouteSlashOutlined: xi,
18179
+ RouteSlashOutlined: vi,
18180
18180
  SackDollarOutlined: g8,
18181
18181
  SaveOutlined: fn,
18182
18182
  ScissorsOutlined: Ve,
@@ -18207,7 +18207,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18207
18207
  SortDownOutlined: Hn,
18208
18208
  SortOutlined: Ie,
18209
18209
  SortUpOutlined: W8,
18210
- SplitOutlined: v4,
18210
+ SplitOutlined: x4,
18211
18211
  SquareDashedOutlined: Li,
18212
18212
  SquareMoneyOutlined: gi,
18213
18213
  SquareTextOutlined: he,
@@ -18215,7 +18215,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18215
18215
  StatusOutlined: Xi,
18216
18216
  StopOutlined: bi,
18217
18217
  SunOutlined: r4,
18218
- TableOutlined: x4,
18218
+ TableOutlined: v4,
18219
18219
  TagOutlined: _8,
18220
18220
  TaskListOutlined: ke,
18221
18221
  TaskOutlined: w8,
@@ -18224,7 +18224,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18224
18224
  TimelineOutlined: Wi,
18225
18225
  ToolsOutlined: E8,
18226
18226
  TraficoOutlined: C4,
18227
- TrashOutlined: xn,
18227
+ TrashOutlined: vn,
18228
18228
  TrashSlashOutlined: tn,
18229
18229
  TreeDiagramOutlined: Ei,
18230
18230
  UbicacionesOutlined: G4,
@@ -18235,7 +18235,7 @@ const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18235
18235
  UrbanosOutlined: W2,
18236
18236
  UserComercialOutlined: r8,
18237
18237
  UserEditOutlined: nn,
18238
- UserOutlined: v8,
18238
+ UserOutlined: x8,
18239
18239
  UserPlusOutlined: st,
18240
18240
  UsersOutlined: Ne,
18241
18241
  VallasMovilesOutlined: Ai,
@@ -18596,7 +18596,7 @@ function Nt({ width: t = 24, height: o = 24, fill: r, stroke: n }) {
18596
18596
  }
18597
18597
  );
18598
18598
  }
18599
- const v9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18599
+ const x9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18600
18600
  __proto__: null,
18601
18601
  FacebookFill: St,
18602
18602
  InstagramFill: kt,
@@ -18651,14 +18651,14 @@ function Tt({
18651
18651
  "6xl": "ui-p-9"
18652
18652
  }, L = p[t] || t;
18653
18653
  let h = n0[L];
18654
- if (h || (h = v9[L]), !h)
18654
+ if (h || (h = x9[L]), !h)
18655
18655
  return console.warn(`Icono legacy "${t}" no encontrado en ninguna variante`), null;
18656
- const g = h === n0[L] ? "outline" : "fill", m = Q0[o], H = T1[r === "current" && g === "fill" ? "white" : r] || T1.blue, j = T1[n] || T1.black, V = /* @__PURE__ */ i(
18656
+ const g = h === n0[L] ? "outline" : "fill", m = Q0[o], V = T1[r === "current" && g === "fill" ? "white" : r] || T1.blue, j = T1[n] || T1.black, H = /* @__PURE__ */ i(
18657
18657
  h,
18658
18658
  {
18659
18659
  width: m,
18660
18660
  height: m,
18661
- ...g === "outline" ? { stroke: H, fill: "none" } : { fill: j, stroke: H },
18661
+ ...g === "outline" ? { stroke: V, fill: "none" } : { fill: j, stroke: V },
18662
18662
  ...s,
18663
18663
  strokeWidth: d
18664
18664
  }
@@ -18678,9 +18678,9 @@ function Tt({
18678
18678
  "hover:ui-bg-[rgba(0,0,0,0.15)] hover:ui-shadow-[0_4px_12px_rgba(0,0,0,0.15)]"
18679
18679
  ),
18680
18680
  style: {
18681
- "--tw-shadow-color": H
18681
+ "--tw-shadow-color": V
18682
18682
  },
18683
- children: V
18683
+ children: H
18684
18684
  }
18685
18685
  ) : /* @__PURE__ */ i(
18686
18686
  "i",
@@ -18690,7 +18690,7 @@ function Tt({
18690
18690
  "ui-inline-block",
18691
18691
  a ? `ui-rounded-full ui-bg-blue-50 ${l[c]}` : ""
18692
18692
  ),
18693
- children: V
18693
+ children: H
18694
18694
  }
18695
18695
  );
18696
18696
  }
@@ -18860,7 +18860,7 @@ const At = ({
18860
18860
  children: n
18861
18861
  }
18862
18862
  );
18863
- }, x9 = {
18863
+ }, v9 = {
18864
18864
  // Emociones
18865
18865
  feliz: "😊",
18866
18866
  triste: "😢",
@@ -19134,7 +19134,7 @@ const At = ({
19134
19134
  esgrima: "🤺",
19135
19135
  boxeo: "🥊"
19136
19136
  }, Pt = ({ name: t, size: o, className: r }) => {
19137
- const n = x9[t], e = C1(`ui-inline-block ui-leading-none ${r}`, {
19137
+ const n = v9[t], e = C1(`ui-inline-block ui-leading-none ${r}`, {
19138
19138
  variants: {
19139
19139
  size: {
19140
19140
  xs: "ui-text-xs",
@@ -19155,23 +19155,23 @@ const At = ({
19155
19155
  });
19156
19156
  return /* @__PURE__ */ i("span", { className: e({ size: o }), role: "img", "aria-label": t, children: n });
19157
19157
  }, Ft = (t = "top", o = "center", r = !1, n = 0, e = !1) => {
19158
- const [a, c] = q(!1), [s, d] = q({ top: 0, left: 0 }), [C, p] = q({ width: 0, height: 0 }), [l, L] = q(t), h = i1(null), g = i1(null), m = i1(null), f = i1(null), H = i1(null), j = i1(null), I = i1(null), V = i1({ top: 0, left: 0 }), Z = i1({ count: 0, lastTime: 0 }), b = N(() => {
19159
- c(!1), d({ top: 0, left: 0 }), L(t), I.current = null, Z.current.count = 0, Z.current.lastTime = 0, V.current = { top: 0, left: 0 };
19160
- }, [t]), x = N(() => {
19158
+ const [a, c] = q(!1), [s, d] = q({ top: 0, left: 0 }), [C, p] = q({ width: 0, height: 0 }), [l, L] = q(t), h = i1(null), g = i1(null), m = i1(null), f = i1(null), V = i1(null), j = i1(null), I = i1(null), H = i1({ top: 0, left: 0 }), Z = i1({ count: 0, lastTime: 0 }), b = N(() => {
19159
+ c(!1), d({ top: 0, left: 0 }), L(t), I.current = null, Z.current.count = 0, Z.current.lastTime = 0, H.current = { top: 0, left: 0 };
19160
+ }, [t]), v = N(() => {
19161
19161
  if (!h.current || !a) return;
19162
- const w = h.current.getBoundingClientRect(), v = { top: w.top, left: w.left };
19162
+ const w = h.current.getBoundingClientRect(), x = { top: w.top, left: w.left };
19163
19163
  if (I.current) {
19164
19164
  const $ = I.current, B = 2;
19165
- if (Math.abs(v.top - $.top) > B || Math.abs(v.left - $.left) > B) {
19165
+ if (Math.abs(x.top - $.top) > B || Math.abs(x.left - $.left) > B) {
19166
19166
  b();
19167
19167
  return;
19168
19168
  }
19169
19169
  }
19170
- I.current = v;
19170
+ I.current = x;
19171
19171
  }, [a, b]), S = N(() => {
19172
19172
  var _, G, R, W, F, P;
19173
19173
  if (!h.current || !g.current) return;
19174
- const w = h.current.getBoundingClientRect(), v = g.current.getBoundingClientRect(), $ = 8;
19174
+ const w = h.current.getBoundingClientRect(), x = g.current.getBoundingClientRect(), $ = 8;
19175
19175
  let B = 0, M = 0;
19176
19176
  if (r) {
19177
19177
  const T = (_ = m.current) == null ? void 0 : _.getBoundingClientRect();
@@ -19179,40 +19179,40 @@ const At = ({
19179
19179
  const z = w.top - T.top, D = w.left - T.left;
19180
19180
  switch (t) {
19181
19181
  case "top":
19182
- B = z - v.height - $, M = D + w.width / 2 - v.width / 2;
19182
+ B = z - x.height - $, M = D + w.width / 2 - x.width / 2;
19183
19183
  break;
19184
19184
  case "bottom":
19185
- B = z + w.height + $, M = D + w.width / 2 - v.width / 2;
19185
+ B = z + w.height + $, M = D + w.width / 2 - x.width / 2;
19186
19186
  break;
19187
19187
  case "left":
19188
- B = z + w.height / 2 - v.height / 2, M = D - v.width - $;
19188
+ B = z + w.height / 2 - x.height / 2, M = D - x.width - $;
19189
19189
  break;
19190
19190
  case "right":
19191
- B = z + w.height / 2 - v.height / 2, M = D + w.width + $;
19191
+ B = z + w.height / 2 - x.height / 2, M = D + w.width + $;
19192
19192
  break;
19193
19193
  case "top-left":
19194
- B = z - v.height - $, M = D;
19194
+ B = z - x.height - $, M = D;
19195
19195
  break;
19196
19196
  case "top-right":
19197
- B = z - v.height - $, M = D + w.width - v.width;
19197
+ B = z - x.height - $, M = D + w.width - x.width;
19198
19198
  break;
19199
19199
  case "bottom-left":
19200
19200
  B = z + w.height + $, M = D;
19201
19201
  break;
19202
19202
  case "bottom-right":
19203
- B = z + w.height + $, M = D + w.width - v.width;
19203
+ B = z + w.height + $, M = D + w.width - x.width;
19204
19204
  break;
19205
19205
  case "right-top":
19206
19206
  B = z, M = D + w.width + $;
19207
19207
  break;
19208
19208
  case "right-bottom":
19209
- B = z + w.height - v.height, M = D + w.width + $;
19209
+ B = z + w.height - x.height, M = D + w.width + $;
19210
19210
  break;
19211
19211
  case "left-top":
19212
- B = z, M = D - v.width - $;
19212
+ B = z, M = D - x.width - $;
19213
19213
  break;
19214
19214
  case "left-bottom":
19215
- B = z + w.height - v.height, M = D - v.width - $;
19215
+ B = z + w.height - x.height, M = D - x.width - $;
19216
19216
  break;
19217
19217
  }
19218
19218
  B < 0 && (B = 0), M < 0 && (M = 0), (() => {
@@ -19223,29 +19223,29 @@ const At = ({
19223
19223
  if (!(() => {
19224
19224
  switch (t) {
19225
19225
  case "top":
19226
- return z >= v.height + $;
19226
+ return z >= x.height + $;
19227
19227
  case "bottom":
19228
- return z + w.height + $ + v.height <= a1.height;
19228
+ return z + w.height + $ + x.height <= a1.height;
19229
19229
  case "left":
19230
- return D >= v.width + $;
19230
+ return D >= x.width + $;
19231
19231
  case "right":
19232
- return D + w.width + $ + v.width <= a1.width;
19232
+ return D + w.width + $ + x.width <= a1.width;
19233
19233
  default:
19234
19234
  return !0;
19235
19235
  }
19236
- })() && (t === "top" ? z + w.height + $ + v.height <= a1.height && (p1 = "bottom", J = !0) : t === "bottom" ? z >= v.height + $ && (p1 = "top", J = !0) : t === "left" ? D + w.width + $ + v.width <= a1.width && (p1 = "right", J = !0) : t === "right" && D >= v.width + $ && (p1 = "left", J = !0), J)) {
19236
+ })() && (t === "top" ? z + w.height + $ + x.height <= a1.height && (p1 = "bottom", J = !0) : t === "bottom" ? z >= x.height + $ && (p1 = "top", J = !0) : t === "left" ? D + w.width + $ + x.width <= a1.width && (p1 = "right", J = !0) : t === "right" && D >= x.width + $ && (p1 = "left", J = !0), J)) {
19237
19237
  switch (p1) {
19238
19238
  case "top":
19239
- B = z - v.height - $, M = D + w.width / 2 - v.width / 2;
19239
+ B = z - x.height - $, M = D + w.width / 2 - x.width / 2;
19240
19240
  break;
19241
19241
  case "bottom":
19242
- B = z + w.height + $, M = D + w.width / 2 - v.width / 2;
19242
+ B = z + w.height + $, M = D + w.width / 2 - x.width / 2;
19243
19243
  break;
19244
19244
  case "left":
19245
- B = z + w.height / 2 - v.height / 2, M = D - v.width - $;
19245
+ B = z + w.height / 2 - x.height / 2, M = D - x.width - $;
19246
19246
  break;
19247
19247
  case "right":
19248
- B = z + w.height / 2 - v.height / 2, M = D + w.width + $;
19248
+ B = z + w.height / 2 - x.height / 2, M = D + w.width + $;
19249
19249
  break;
19250
19250
  }
19251
19251
  L(p1);
@@ -19254,40 +19254,40 @@ const At = ({
19254
19254
  } else
19255
19255
  switch (t) {
19256
19256
  case "top":
19257
- B = w.top - v.height - $, M = w.left + w.width / 2 - v.width / 2;
19257
+ B = w.top - x.height - $, M = w.left + w.width / 2 - x.width / 2;
19258
19258
  break;
19259
19259
  case "bottom":
19260
- B = w.bottom + $, M = w.left + w.width / 2 - v.width / 2;
19260
+ B = w.bottom + $, M = w.left + w.width / 2 - x.width / 2;
19261
19261
  break;
19262
19262
  case "left":
19263
- B = w.top + w.height / 2 - v.height / 2, M = w.left - v.width - $;
19263
+ B = w.top + w.height / 2 - x.height / 2, M = w.left - x.width - $;
19264
19264
  break;
19265
19265
  case "right":
19266
- B = w.top + w.height / 2 - v.height / 2, M = w.right + $;
19266
+ B = w.top + w.height / 2 - x.height / 2, M = w.right + $;
19267
19267
  break;
19268
19268
  case "top-left":
19269
- B = w.top - v.height - $, M = w.left;
19269
+ B = w.top - x.height - $, M = w.left;
19270
19270
  break;
19271
19271
  case "top-right":
19272
- B = w.top - v.height - $, M = w.right - v.width;
19272
+ B = w.top - x.height - $, M = w.right - x.width;
19273
19273
  break;
19274
19274
  case "bottom-left":
19275
19275
  B = w.bottom + $, M = w.left;
19276
19276
  break;
19277
19277
  case "bottom-right":
19278
- B = w.bottom + $, M = w.right - v.width;
19278
+ B = w.bottom + $, M = w.right - x.width;
19279
19279
  break;
19280
19280
  case "right-top":
19281
19281
  B = w.top, M = w.right + $;
19282
19282
  break;
19283
19283
  case "right-bottom":
19284
- B = w.bottom - v.height, M = w.right + $;
19284
+ B = w.bottom - x.height, M = w.right + $;
19285
19285
  break;
19286
19286
  case "left-top":
19287
- B = w.top, M = w.left - v.width - $;
19287
+ B = w.top, M = w.left - x.width - $;
19288
19288
  break;
19289
19289
  case "left-bottom":
19290
- B = w.bottom - v.height, M = w.left - v.width - $;
19290
+ B = w.bottom - x.height, M = w.left - x.width - $;
19291
19291
  break;
19292
19292
  }
19293
19293
  if (t.includes("top") || t.includes("bottom"))
@@ -19302,9 +19302,9 @@ const At = ({
19302
19302
  case "end":
19303
19303
  if (r) {
19304
19304
  const T = (R = m.current) == null ? void 0 : R.getBoundingClientRect();
19305
- T && (M = w.right - T.left - v.width);
19305
+ T && (M = w.right - T.left - x.width);
19306
19306
  } else
19307
- M = w.right - v.width;
19307
+ M = w.right - x.width;
19308
19308
  break;
19309
19309
  }
19310
19310
  else if (t.includes("left") || t.includes("right"))
@@ -19319,17 +19319,17 @@ const At = ({
19319
19319
  case "end":
19320
19320
  if (r) {
19321
19321
  const T = (F = m.current) == null ? void 0 : F.getBoundingClientRect();
19322
- T && (B = w.bottom - T.top - v.height);
19322
+ T && (B = w.bottom - T.top - x.height);
19323
19323
  } else
19324
- B = w.bottom - v.height;
19324
+ B = w.bottom - x.height;
19325
19325
  break;
19326
19326
  }
19327
19327
  if (r) {
19328
19328
  const T = (P = m.current) == null ? void 0 : P.getBoundingClientRect();
19329
- T && (M < 8 && (M = 8), M + v.width > T.width - 8 && (M = T.width - v.width - 8), B < 8 && (B = 8), B + v.height > T.height - 8 && (B = T.height - v.height - 8));
19329
+ T && (M < 8 && (M = 8), M + x.width > T.width - 8 && (M = T.width - x.width - 8), B < 8 && (B = 8), B + x.height > T.height - 8 && (B = T.height - x.height - 8));
19330
19330
  } else {
19331
19331
  const T = window.innerWidth, z = window.innerHeight, D = 8;
19332
- M < D && (M = D), M + v.width > T - D && (M = T - v.width - D), B < D && (B = D), B + v.height > z - D && (B = z - v.height - D);
19332
+ M < D && (M = D), M + x.width > T - D && (M = T - x.width - D), B < D && (B = D), B + x.height > z - D && (B = z - x.height - D);
19333
19333
  }
19334
19334
  if (isNaN(B) || isNaN(M) || B < 0 || M < 0) {
19335
19335
  b();
@@ -19343,39 +19343,39 @@ const At = ({
19343
19343
  }
19344
19344
  } else
19345
19345
  Z.current.count = 0;
19346
- Z.current.lastTime = k, V.current = { top: B, left: M }, d({ top: B, left: M });
19346
+ Z.current.lastTime = k, H.current = { top: B, left: M }, d({ top: B, left: M });
19347
19347
  }, [t, o, r, b]);
19348
19348
  K(() => (a && g.current ? (requestAnimationFrame(() => {
19349
19349
  if (S(), h.current) {
19350
19350
  const w = h.current.getBoundingClientRect();
19351
19351
  I.current = { top: w.top, left: w.left };
19352
19352
  }
19353
- }), j.current = setInterval(x, 100)) : j.current && (clearInterval(j.current), j.current = null), () => {
19353
+ }), j.current = setInterval(v, 100)) : j.current && (clearInterval(j.current), j.current = null), () => {
19354
19354
  j.current && (clearInterval(j.current), j.current = null);
19355
- }), [a, S, x]), K(() => {
19355
+ }), [a, S, v]), K(() => {
19356
19356
  if (h.current)
19357
- return H.current = new IntersectionObserver(
19357
+ return V.current = new IntersectionObserver(
19358
19358
  (w) => {
19359
- w.forEach((v) => {
19360
- !v.isIntersecting && a && b();
19359
+ w.forEach((x) => {
19360
+ !x.isIntersecting && a && b();
19361
19361
  });
19362
19362
  },
19363
19363
  {
19364
19364
  threshold: 0,
19365
19365
  rootMargin: "8px"
19366
19366
  }
19367
- ), H.current.observe(h.current), () => {
19368
- H.current && H.current.disconnect();
19367
+ ), V.current.observe(h.current), () => {
19368
+ V.current && V.current.disconnect();
19369
19369
  };
19370
19370
  }, [a, b]), K(() => {
19371
19371
  if (!a) return;
19372
19372
  const w = () => {
19373
19373
  r || b();
19374
- }, v = () => {
19374
+ }, x = () => {
19375
19375
  b();
19376
19376
  };
19377
- return window.addEventListener("scroll", w, !0), window.addEventListener("resize", v), () => {
19378
- window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", v);
19377
+ return window.addEventListener("scroll", w, !0), window.addEventListener("resize", x), () => {
19378
+ window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", x);
19379
19379
  };
19380
19380
  }, [a, r, b]);
19381
19381
  const y = N(() => {
@@ -19423,7 +19423,7 @@ const At = ({
19423
19423
  text: "ui-text-gray-900",
19424
19424
  arrow: "var(--ui-color-transparent)"
19425
19425
  }
19426
- }, Dt = (t, o = "neutral") => m1(() => {
19426
+ }, Dt = (t, o = "neutral") => h1(() => {
19427
19427
  const e = Et[o].arrow;
19428
19428
  switch (t) {
19429
19429
  case "top":
@@ -19589,7 +19589,7 @@ const At = ({
19589
19589
  text: "ui-text-gray-900",
19590
19590
  arrow: "var(--ui-color-transparent)"
19591
19591
  }
19592
- }, _t = (t = "neutral", o = !1) => m1(() => {
19592
+ }, _t = (t = "neutral", o = !1) => h1(() => {
19593
19593
  const n = Rt[t];
19594
19594
  return `${o ? "ui-absolute" : "ui-fixed"} ui-z-[9999] ui-px-2 ui-py-1 ui-rounded ui-text-[10px] ui-leading-relaxed ui-max-w-[300px] ui-break-words ui-shadow-lg ui-transition-opacity ui-duration-150 ui-ease-in-out ${n.bg} ${n.text}`;
19595
19595
  }, [t, o]), Ut = ({
@@ -19612,20 +19612,20 @@ const At = ({
19612
19612
  isVisible: g,
19613
19613
  coords: m,
19614
19614
  adjustedPosition: f,
19615
- triggerRef: H,
19615
+ triggerRef: V,
19616
19616
  tooltipRef: j,
19617
19617
  containerRef: I,
19618
- handleMouseEnter: V,
19618
+ handleMouseEnter: H,
19619
19619
  handleMouseLeave: Z
19620
- } = Ft(r, n, L, c, s), b = _t(e, L), x = Dt(f, e);
19620
+ } = Ft(r, n, L, c, s), b = _t(e, L), v = Dt(f, e);
19621
19621
  return /* @__PURE__ */ u("div", { ref: I, className: L ? "ui-relative" : "ui-contents", children: [
19622
19622
  /* @__PURE__ */ i(
19623
19623
  "div",
19624
19624
  {
19625
- ref: H,
19626
- onMouseEnter: V,
19625
+ ref: V,
19626
+ onMouseEnter: H,
19627
19627
  onMouseLeave: Z,
19628
- onFocus: V,
19628
+ onFocus: H,
19629
19629
  onBlur: Z,
19630
19630
  className: U("ui-inline-block ui-h-fit ui-w-fit", C ? "ui-w-full" : "ui-w-fit"),
19631
19631
  children: t
@@ -19652,7 +19652,7 @@ const At = ({
19652
19652
  ...h,
19653
19653
  children: [
19654
19654
  o,
19655
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: x })
19655
+ /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: v })
19656
19656
  ]
19657
19657
  }
19658
19658
  ) : E1(
@@ -19677,7 +19677,7 @@ const At = ({
19677
19677
  ...h,
19678
19678
  children: [
19679
19679
  o,
19680
- /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: x })
19680
+ /* @__PURE__ */ i("div", { className: U("tooltip-imj-ui-arrow", l), style: v })
19681
19681
  ]
19682
19682
  }
19683
19683
  ),
@@ -19731,7 +19731,7 @@ const At = ({
19731
19731
  tooltipDelay: L = 0,
19732
19732
  tooltipDisabled: h = !1
19733
19733
  }) => {
19734
- const g = typeof t == "string" && t in x9, m = typeof t == "string" && (t in n0 || t in v9), f = () => m ? /* @__PURE__ */ i(
19734
+ const g = typeof t == "string" && t in v9, m = typeof t == "string" && (t in n0 || t in x9), f = () => m ? /* @__PURE__ */ i(
19735
19735
  L1,
19736
19736
  {
19737
19737
  strokeWidth: c,
@@ -19762,7 +19762,7 @@ const At = ({
19762
19762
  children: f()
19763
19763
  }
19764
19764
  ) : f();
19765
- }, w1 = (t, o, r, n) => {
19765
+ }, f1 = (t, o, r, n) => {
19766
19766
  const e = t !== "button", a = {
19767
19767
  button: {
19768
19768
  blue: `ui-bg-blue-500 ui-text-white ${r ?? e ? "ui-border-white" : "ui-border-transparent"} ${o ? "enabled:hover:ui-bg-blue-700 active:enabled:ui-border-blue-300" : ""} disabled:ui-bg-blue-100 disabled:ui-cursor-not-allowed`,
@@ -19862,18 +19862,18 @@ const At = ({
19862
19862
  icon: g,
19863
19863
  link: m,
19864
19864
  size: f,
19865
- square: H = !1,
19865
+ square: V = !1,
19866
19866
  target: j = "_self",
19867
19867
  onClickIcon: I,
19868
- onClickLeftSlot: V,
19868
+ onClickLeftSlot: H,
19869
19869
  onClickRightSlot: Z,
19870
19870
  disabled: b,
19871
- colorIcon: x,
19871
+ colorIcon: v,
19872
19872
  showShadow: S = !1,
19873
19873
  borderable: y,
19874
19874
  iconSizeExtended: O = "none",
19875
19875
  defaultSizeIcon: w = !0,
19876
- defaultTooltipColor: v = !0,
19876
+ defaultTooltipColor: x = !0,
19877
19877
  as: $ = "button",
19878
19878
  classNameId: B = "imj-ui-inner-button",
19879
19879
  tooltip: M = "",
@@ -19928,9 +19928,9 @@ const At = ({
19928
19928
  {
19929
19929
  slot: n,
19930
19930
  size: f,
19931
- colorIcon: x,
19931
+ colorIcon: v,
19932
19932
  className: t,
19933
- onClick: V,
19933
+ onClick: H,
19934
19934
  defaultSizeIcon: Q,
19935
19935
  strokeWidth: a1
19936
19936
  }
@@ -19956,7 +19956,7 @@ const At = ({
19956
19956
  strokeWidth: a1,
19957
19957
  name: g,
19958
19958
  size: a === "icon" ? f : O !== "none" ? O : f,
19959
- color: x,
19959
+ color: v,
19960
19960
  onClick: a === "icon" ? z || I : void 0
19961
19961
  }
19962
19962
  ) : g),
@@ -19965,14 +19965,14 @@ const At = ({
19965
19965
  {
19966
19966
  slot: e,
19967
19967
  size: O !== "none" ? O : f,
19968
- colorIcon: x,
19968
+ colorIcon: v,
19969
19969
  className: t,
19970
19970
  onClick: Z,
19971
19971
  defaultSizeIcon: Q,
19972
19972
  strokeWidth: a1
19973
19973
  }
19974
19974
  )
19975
- ] }), r1 = H ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", d1 = v ? _ || "neutral" : C, k1 = C1(
19975
+ ] }), r1 = V ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", d1 = x ? _ || "neutral" : C, k1 = C1(
19976
19976
  `${B} ui-h-fit ui-justify-center ui-flex ui-items-center ui-box-border ui-border-solid ui-gap-x-1.5 ui-border-[1.5px] ui-font-bold ui-cursor-default ${S && a !== "icon" ? "ui-shadow-button" : ""} ui-overflow-hidden ${P ? "enabled:!ui-cursor-pointer" : ""} ${p1 ? "ui-transition-all ui-duration-300" : ""}`,
19977
19977
  {
19978
19978
  variants: {
@@ -19985,26 +19985,26 @@ const At = ({
19985
19985
  emoji: " ui-border-transparent"
19986
19986
  },
19987
19987
  size: {
19988
- 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] ${H ? ` ui-max-w-5 ui-min-h-5 ${r1}` : ""}`,
19989
- 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] ${H ? ` ui-max-w-6 ui-min-h-6 ${r1}` : ""}`,
19990
- 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] ${H ? ` ui-max-w-[26px] ui-min-h-[26px] ${r1}` : ""}`,
19991
- 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] ${H ? ` ui-max-w-[32px] ui-min-h-[32px] ${r1}` : ""}`,
19992
- 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] ${H ? ` ui-max-w-[42px] ui-min-h-[42px] ${r1}` : ""}`,
19993
- "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] ${H ? ` ui-max-w-[52px] ui-min-h-[52px] ${r1}` : ""}`,
19994
- "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] ${H ? `ui-max-w-[62px] ui-min-h-[62px] ${r1}` : ""}`
19988
+ 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] ${V ? ` ui-max-w-5 ui-min-h-5 ${r1}` : ""}`,
19989
+ 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] ${V ? ` ui-max-w-6 ui-min-h-6 ${r1}` : ""}`,
19990
+ 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] ${V ? ` ui-max-w-[26px] ui-min-h-[26px] ${r1}` : ""}`,
19991
+ 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] ${V ? ` ui-max-w-[32px] ui-min-h-[32px] ${r1}` : ""}`,
19992
+ 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] ${V ? ` ui-max-w-[42px] ui-min-h-[42px] ${r1}` : ""}`,
19993
+ "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] ${V ? ` ui-max-w-[52px] ui-min-h-[52px] ${r1}` : ""}`,
19994
+ "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] ${V ? `ui-max-w-[62px] ui-min-h-[62px] ${r1}` : ""}`
19995
19995
  },
19996
19996
  color: {
19997
- blue: w1(a, h, y, n1).blue,
19998
- "blue-dark": w1(a, h, y, n1)["blue-dark"],
19999
- orange: w1(a, h, y, n1).orange,
20000
- red: w1(a, h, y, n1).red,
20001
- green: w1(a, h, y, n1).green,
20002
- white: w1(a, h, y, n1).white,
20003
- yellow: w1(a, h, y, n1).yellow,
20004
- "blue-light": w1(a, h, y, n1)["blue-light"],
20005
- neutral: w1(a, h, y, n1).neutral,
20006
- black: w1(a, h, y, n1).black,
20007
- transparent: w1(a, h, y, n1).transparent
19997
+ blue: f1(a, h, y, n1).blue,
19998
+ "blue-dark": f1(a, h, y, n1)["blue-dark"],
19999
+ orange: f1(a, h, y, n1).orange,
20000
+ red: f1(a, h, y, n1).red,
20001
+ green: f1(a, h, y, n1).green,
20002
+ white: f1(a, h, y, n1).white,
20003
+ yellow: f1(a, h, y, n1).yellow,
20004
+ "blue-light": f1(a, h, y, n1)["blue-light"],
20005
+ neutral: f1(a, h, y, n1).neutral,
20006
+ black: f1(a, h, y, n1).black,
20007
+ transparent: f1(a, h, y, n1).transparent
20008
20008
  },
20009
20009
  rounded: {
20010
20010
  false: "ui-rounded-sm",
@@ -20012,7 +20012,7 @@ const At = ({
20012
20012
  },
20013
20013
  fullWidth: {
20014
20014
  true: "ui-w-full",
20015
- false: !H && !g && l ? "ui-min-w-fit" : ""
20015
+ false: !V && !g && l ? "ui-min-w-fit" : ""
20016
20016
  }
20017
20017
  },
20018
20018
  defaultVariants: {
@@ -20582,13 +20582,13 @@ const At = ({
20582
20582
  isLeaving: g,
20583
20583
  progressBarColor: m = !1,
20584
20584
  duration: f = 3e3,
20585
- size: H = "sm"
20585
+ size: V = "sm"
20586
20586
  }) => {
20587
20587
  const { isVisible: j, isLeaving: I } = Wt({ open: t, externalIsLeaving: g });
20588
20588
  if (!j)
20589
20589
  return null;
20590
- const V = !!d, Z = (x) => {
20591
- d && (x.stopPropagation(), d());
20590
+ const H = !!d, Z = (v) => {
20591
+ d && (v.stopPropagation(), d());
20592
20592
  }, b = {
20593
20593
  sm: "ui-px-4 ui-py-2",
20594
20594
  md: "ui-p-4"
@@ -20600,11 +20600,11 @@ const At = ({
20600
20600
  "ui-imj-alert ui-relative ui-overflow-hidden",
20601
20601
  n,
20602
20602
  Qt({ color: o, variant: r, isLeaving: I, animation: h }),
20603
- V ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20603
+ H ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20604
20604
  ),
20605
20605
  onClick: Z,
20606
20606
  children: [
20607
- /* @__PURE__ */ u("div", { className: U(b[H]), children: [
20607
+ /* @__PURE__ */ u("div", { className: U(b[V]), children: [
20608
20608
  /* @__PURE__ */ i(
20609
20609
  Xt,
20610
20610
  {
@@ -20666,7 +20666,7 @@ const At = ({
20666
20666
  extraSlot: n,
20667
20667
  value: e
20668
20668
  }) => {
20669
- const a = !!o, c = !!r, s = !!n, d = m1(() => {
20669
+ const a = !!o, c = !!r, s = !!n, d = h1(() => {
20670
20670
  const l = {
20671
20671
  sm: {
20672
20672
  left: a ? "ui-pl-7.5" : "ui-pl-2",
@@ -20682,7 +20682,7 @@ const At = ({
20682
20682
  }
20683
20683
  }[t];
20684
20684
  return `${l.left} ${l.right}`.trim();
20685
- }, [t, a, c, s]), C = m1(() => (p) => p === "left" ? {
20685
+ }, [t, a, c, s]), C = h1(() => (p) => p === "left" ? {
20686
20686
  sm: "ui-left-2",
20687
20687
  md: "ui-left-2.5",
20688
20688
  lg: "ui-left-4"
@@ -20767,14 +20767,14 @@ const At = ({
20767
20767
  paddingClasses: a,
20768
20768
  autosize: c = !1
20769
20769
  }) => {
20770
- const s = m1(
20770
+ const s = h1(
20771
20771
  () => ({
20772
20772
  sm: "ui-h-8 ui-text-sm ui-py-1.5",
20773
20773
  md: "ui-h-10 ui-text-sm ui-py-2",
20774
20774
  lg: "ui-h-12 ui-text-base ui-py-2.5"
20775
20775
  }),
20776
20776
  []
20777
- ), d = m1(() => {
20777
+ ), d = h1(() => {
20778
20778
  const l = [
20779
20779
  "ui-box-border",
20780
20780
  n ? "ui-w-full" : "ui-min-w-72",
@@ -20788,10 +20788,10 @@ const At = ({
20788
20788
  o ? "ui-bg-red-50" : "ui-bg-white"
20789
20789
  ];
20790
20790
  return o ? 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(" ");
20791
- }, [n, a, e, s, t, o]), C = m1(() => {
20791
+ }, [n, a, e, s, t, o]), C = h1(() => {
20792
20792
  const l = ["ui-relative ui-w-full"];
20793
20793
  return r ? l.push("ui-text-neutral-500") : o && l.push("ui-text-red-500"), l.join(" ");
20794
- }, [r, o]), p = m1(() => {
20794
+ }, [r, o]), p = h1(() => {
20795
20795
  const l = "ui-text-sm ui-font-bold";
20796
20796
  return o ? `${l} ui-text-red-500` : `${l} ui-text-neutral-900`;
20797
20797
  }, [o]);
@@ -20819,13 +20819,13 @@ const At = ({
20819
20819
  link: g,
20820
20820
  size: m,
20821
20821
  target: f = "_self",
20822
- onClickIcon: H,
20822
+ onClickIcon: V,
20823
20823
  disabled: j,
20824
20824
  colorIcon: I,
20825
- tooltip: V,
20825
+ tooltip: H,
20826
20826
  tooltipPosition: Z,
20827
20827
  tooltipAlignment: b,
20828
- tooltipColor: x,
20828
+ tooltipColor: v,
20829
20829
  tooltipDelay: S,
20830
20830
  ...y
20831
20831
  }) => /* @__PURE__ */ i(
@@ -20847,14 +20847,14 @@ const At = ({
20847
20847
  slotRight: e,
20848
20848
  link: g,
20849
20849
  target: f,
20850
- onClickIcon: H,
20850
+ onClickIcon: V,
20851
20851
  disabled: j,
20852
20852
  colorIcon: I,
20853
20853
  className: o,
20854
- tooltip: V,
20854
+ tooltip: H,
20855
20855
  tooltipPosition: Z,
20856
20856
  tooltipAlignment: b,
20857
- tooltipColor: x,
20857
+ tooltipColor: v,
20858
20858
  tooltipDelay: S,
20859
20859
  ...y
20860
20860
  }
@@ -20877,13 +20877,13 @@ const At = ({
20877
20877
  onChange: g,
20878
20878
  onClickExtraSlot: m,
20879
20879
  className: f,
20880
- style: H,
20880
+ style: V,
20881
20881
  name: j,
20882
20882
  autosize: I = !1,
20883
- colorLeftIcon: V,
20883
+ colorLeftIcon: H,
20884
20884
  infoTooltip: Z = "",
20885
20885
  ...b
20886
- }, x) => {
20886
+ }, v) => {
20887
20887
  const {
20888
20888
  value: S,
20889
20889
  setValue: y,
@@ -20895,7 +20895,7 @@ const At = ({
20895
20895
  }), w = (A) => {
20896
20896
  const _ = A.target.value;
20897
20897
  y(_), g == null || g(A);
20898
- }, { paddingClasses: v, getIconPosition: $ } = ro({
20898
+ }, { paddingClasses: x, getIconPosition: $ } = ro({
20899
20899
  size: n,
20900
20900
  leftSlot: a,
20901
20901
  rightSlot: c,
@@ -20907,11 +20907,11 @@ const At = ({
20907
20907
  disabled: L,
20908
20908
  fullWidth: p,
20909
20909
  caret: d,
20910
- paddingClasses: v,
20910
+ paddingClasses: x,
20911
20911
  autosize: I
20912
20912
  });
20913
20913
  return uo({
20914
- ref: x,
20914
+ ref: v,
20915
20915
  currentValue: S,
20916
20916
  setValue: y,
20917
20917
  isControlled: O,
@@ -20924,7 +20924,7 @@ const At = ({
20924
20924
  p ? "ui-w-full" : "ui-w-fit",
20925
20925
  f
20926
20926
  ),
20927
- style: H,
20927
+ style: V,
20928
20928
  children: [
20929
20929
  (t || Z) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
20930
20930
  t && /* @__PURE__ */ i("label", { className: k, children: t }),
@@ -20947,7 +20947,7 @@ const At = ({
20947
20947
  j1,
20948
20948
  {
20949
20949
  slot: a,
20950
- colorIcon: V,
20950
+ colorIcon: H,
20951
20951
  className: `ui-absolute ${$("left")} ui-top-1/2 ui--translate-y-1/2`,
20952
20952
  fallback: (C == null ? void 0 : C.toString().substring(0, 1)) || ""
20953
20953
  }
@@ -21087,10 +21087,10 @@ const M9 = (t, o = {}) => {
21087
21087
  if (!t || o || !c) return;
21088
21088
  const p = (L) => {
21089
21089
  var Z, b;
21090
- const h = L.target, g = (Z = r.current) == null ? void 0 : Z.contains(h), m = (b = n == null ? void 0 : n.current) == null ? void 0 : b.contains(h), f = e ? h.closest(`[data-${a}-id="${e}"]`) : !1, H = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, j = s.some((x) => h.closest(x)), V = (() => {
21091
- let x = h;
21092
- for (; x && x !== document.body; ) {
21093
- const S = x.attributes;
21090
+ const h = L.target, g = (Z = r.current) == null ? void 0 : Z.contains(h), m = (b = n == null ? void 0 : n.current) == null ? void 0 : b.contains(h), f = e ? h.closest(`[data-${a}-id="${e}"]`) : !1, V = a && !C ? h.closest(`[data-${a}-container-id="${e}"]`) : !1, j = s.some((v) => h.closest(v)), H = (() => {
21091
+ let v = h;
21092
+ for (; v && v !== document.body; ) {
21093
+ const S = v.attributes;
21094
21094
  for (let O = 0; O < S.length; O++) {
21095
21095
  const w = S[O];
21096
21096
  if (w.name.startsWith("data-") && w.name.endsWith("-id")) {
@@ -21099,7 +21099,7 @@ const M9 = (t, o = {}) => {
21099
21099
  return !0;
21100
21100
  }
21101
21101
  }
21102
- const y = x.className;
21102
+ const y = v.className;
21103
21103
  if (typeof y == "string") {
21104
21104
  const O = y.split(" ");
21105
21105
  if ([
@@ -21110,14 +21110,14 @@ const M9 = (t, o = {}) => {
21110
21110
  "popover-portal",
21111
21111
  "react-datepicker",
21112
21112
  "react-datepicker-popper"
21113
- ].some((v) => O.includes(v)) || O.some((v) => v.endsWith("-portal")))
21113
+ ].some((x) => O.includes(x)) || O.some((x) => x.endsWith("-portal")))
21114
21114
  return !0;
21115
21115
  }
21116
- x = x.parentElement;
21116
+ v = v.parentElement;
21117
21117
  }
21118
21118
  return !1;
21119
21119
  })();
21120
- g || m || f || H || j || V || d();
21120
+ g || m || f || V || j || H || d();
21121
21121
  }, l = (L) => {
21122
21122
  L.detail.id === e && d();
21123
21123
  };
@@ -21168,13 +21168,13 @@ const M9 = (t, o = {}) => {
21168
21168
  tabs: g,
21169
21169
  defaultValueTab: m,
21170
21170
  onChangeTab: f,
21171
- headerButtonIcon: H,
21171
+ headerButtonIcon: V,
21172
21172
  headerButtonOnClick: j,
21173
21173
  footerButtonIcon: I,
21174
- footerButtonOnClick: V,
21174
+ footerButtonOnClick: H,
21175
21175
  cancelButtonSlotLeft: Z,
21176
21176
  successButtonSlotRight: b,
21177
- disableCancelButton: x,
21177
+ disableCancelButton: v,
21178
21178
  disableSuccessButton: S,
21179
21179
  successButtonColor: y = "blue"
21180
21180
  }) => {
@@ -21195,13 +21195,13 @@ const M9 = (t, o = {}) => {
21195
21195
  tabs: g,
21196
21196
  defaultValueTab: m,
21197
21197
  onChangeTab: f,
21198
- headerButtonIcon: H,
21198
+ headerButtonIcon: V,
21199
21199
  headerButtonOnClick: j,
21200
21200
  footerButtonIcon: I,
21201
- footerButtonOnClick: V,
21201
+ footerButtonOnClick: H,
21202
21202
  cancelButtonSlotLeft: Z,
21203
21203
  successButtonSlotRight: b,
21204
- disableCancelButton: x,
21204
+ disableCancelButton: v,
21205
21205
  disableSuccessButton: S,
21206
21206
  successButtonColor: y
21207
21207
  };
@@ -21276,7 +21276,7 @@ const M9 = (t, o = {}) => {
21276
21276
  onChangeTab: h,
21277
21277
  headerButtonIcon: g,
21278
21278
  headerButtonOnClick: m
21279
- } = k9(), f = o ?? C, H = c ?? g, j = s ?? m, I = (n == null ? void 0 : n.length) > 0 ? n : l, V = (I == null ? void 0 : I.length) ?? !1, Z = a ?? h, b = e ?? L, x = (S) => {
21279
+ } = k9(), f = o ?? C, V = c ?? g, j = s ?? m, I = (n == null ? void 0 : n.length) > 0 ? n : l, H = (I == null ? void 0 : I.length) ?? !1, Z = a ?? h, b = e ?? L, v = (S) => {
21280
21280
  Z && Z(S);
21281
21281
  };
21282
21282
  return /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-flex-wrap ui-items-center ui-justify-between ui-gap-x-md ui-border-b ui-border-neutral-100 ui-p-4", children: [
@@ -21291,7 +21291,7 @@ const M9 = (t, o = {}) => {
21291
21291
  variant: "outlined",
21292
21292
  rounded: !0,
21293
21293
  color: "white",
21294
- icon: H ?? "AlignJustifyOutlined",
21294
+ icon: V ?? "AlignJustifyOutlined",
21295
21295
  size: "lg"
21296
21296
  }
21297
21297
  ),
@@ -21308,14 +21308,14 @@ const M9 = (t, o = {}) => {
21308
21308
  }
21309
21309
  )
21310
21310
  ] }),
21311
- V ? /* @__PURE__ */ i("div", { className: "ui-z-0 ui-mt-2 ui-flex ui-w-full ui-justify-center ui-overflow-x-auto sm:ui-absolute", children: /* @__PURE__ */ i(
21311
+ H ? /* @__PURE__ */ i("div", { className: "ui-z-0 ui-mt-2 ui-flex ui-w-full ui-justify-center ui-overflow-x-auto sm:ui-absolute", children: /* @__PURE__ */ i(
21312
21312
  Co,
21313
21313
  {
21314
21314
  options: I ?? [],
21315
21315
  defaultValue: b,
21316
21316
  size: "sm",
21317
21317
  onChange: (S) => {
21318
- x(S);
21318
+ v(S);
21319
21319
  }
21320
21320
  }
21321
21321
  ) }) : null
@@ -21342,14 +21342,14 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21342
21342
  closeAtCancel: g,
21343
21343
  footerButtonIcon: m,
21344
21344
  footerButtonOnClick: f,
21345
- cancelButtonSlotLeft: H,
21345
+ cancelButtonSlotLeft: V,
21346
21346
  successButtonSlotRight: j,
21347
21347
  successButtonColor: I,
21348
- disableCancelButton: V,
21348
+ disableCancelButton: H,
21349
21349
  disableSuccessButton: Z
21350
21350
  } = k9(), b = () => {
21351
21351
  C && C(), g && c();
21352
- }, x = () => {
21352
+ }, v = () => {
21353
21353
  p && p(), h && c();
21354
21354
  }, S = o ?? m, y = r ?? f;
21355
21355
  return /* @__PURE__ */ u(
@@ -21373,11 +21373,11 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21373
21373
  l && /* @__PURE__ */ i(
21374
21374
  o1,
21375
21375
  {
21376
- slotLeft: n ?? H,
21376
+ slotLeft: n ?? V,
21377
21377
  color: "white",
21378
21378
  variant: "outlined",
21379
21379
  onClick: b,
21380
- disabled: V,
21380
+ disabled: H,
21381
21381
  children: s
21382
21382
  }
21383
21383
  ),
@@ -21385,7 +21385,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21385
21385
  o1,
21386
21386
  {
21387
21387
  slotLeft: e ?? j,
21388
- onClick: x,
21388
+ onClick: v,
21389
21389
  disabled: Z,
21390
21390
  color: a ?? I,
21391
21391
  children: d
@@ -21425,18 +21425,18 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21425
21425
  title: g,
21426
21426
  showCancelButton: m,
21427
21427
  showSuccessButton: f,
21428
- closeAtSuccess: H,
21428
+ closeAtSuccess: V,
21429
21429
  closeAtCancel: j,
21430
21430
  tabs: I,
21431
- defaultValueTab: V,
21431
+ defaultValueTab: H,
21432
21432
  onChangeTab: Z,
21433
21433
  headerButtonIcon: b,
21434
- headerButtonOnClick: x,
21434
+ headerButtonOnClick: v,
21435
21435
  footerButtonIcon: S,
21436
21436
  footerButtonOnClick: y,
21437
21437
  cancelButtonSlotLeft: O,
21438
21438
  successButtonSlotRight: w,
21439
- disableCancelButton: v,
21439
+ disableCancelButton: x,
21440
21440
  disableSuccessButton: $,
21441
21441
  successButtonColor: B
21442
21442
  }) => {
@@ -21490,20 +21490,20 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21490
21490
  onSuccess: h,
21491
21491
  showCancelButton: m,
21492
21492
  showSuccessButton: f,
21493
- closeAtSuccess: H,
21493
+ closeAtSuccess: V,
21494
21494
  closeAtCancel: j,
21495
21495
  title: g,
21496
21496
  icon: r,
21497
21497
  headerButtonIcon: b,
21498
- headerButtonOnClick: x,
21498
+ headerButtonOnClick: v,
21499
21499
  footerButtonIcon: S,
21500
21500
  footerButtonOnClick: y,
21501
21501
  tabs: I,
21502
- defaultValueTab: V,
21502
+ defaultValueTab: H,
21503
21503
  onChangeTab: Z,
21504
21504
  cancelButtonSlotLeft: O,
21505
21505
  successButtonSlotRight: w,
21506
- disableCancelButton: v,
21506
+ disableCancelButton: x,
21507
21507
  disableSuccessButton: $,
21508
21508
  successButtonColor: B,
21509
21509
  children: [
@@ -21591,7 +21591,7 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21591
21591
  o ? "ui-max-h-full ui-min-h-7 ui-w-[1px]" : "ui-h-[1px] ui-w-full"
21592
21592
  )
21593
21593
  }
21594
- ), x1 = ({
21594
+ ), v1 = ({
21595
21595
  children: t,
21596
21596
  className: o,
21597
21597
  fullWidth: r = !1,
@@ -21626,8 +21626,8 @@ const Lo = ({ children: t, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
21626
21626
  }
21627
21627
  );
21628
21628
  };
21629
- x1.Header = ({ children: t, className: o }) => /* @__PURE__ */ i("div", { className: o, children: t });
21630
- x1.Body = ({ children: t, className: o, fullHeight: r = !1, scrollable: n = !0 }) => /* @__PURE__ */ i(
21629
+ v1.Header = ({ children: t, className: o }) => /* @__PURE__ */ i("div", { className: o, children: t });
21630
+ v1.Body = ({ children: t, className: o, fullHeight: r = !1, scrollable: n = !0 }) => /* @__PURE__ */ i(
21631
21631
  "div",
21632
21632
  {
21633
21633
  className: U(
@@ -21638,8 +21638,8 @@ x1.Body = ({ children: t, className: o, fullHeight: r = !1, scrollable: n = !0 }
21638
21638
  children: t
21639
21639
  }
21640
21640
  );
21641
- x1.Footer = ({ children: t, className: o }) => /* @__PURE__ */ i("div", { className: o, children: t });
21642
- x1.Separator = ({ className: t, vertical: o = !1, padding: r = !0 }) => /* @__PURE__ */ i(G1, { vertical: o, padding: r, className: t });
21641
+ v1.Footer = ({ children: t, className: o }) => /* @__PURE__ */ i("div", { className: o, children: t });
21642
+ v1.Separator = ({ className: t, vertical: o = !1, padding: r = !0 }) => /* @__PURE__ */ i(G1, { vertical: o, padding: r, className: t });
21643
21643
  const mo = (t) => {
21644
21644
  const {
21645
21645
  mode: o = "single",
@@ -21656,7 +21656,7 @@ const mo = (t) => {
21656
21656
  internalRange: { start: null, end: null },
21657
21657
  hoverDate: null,
21658
21658
  portalPosition: { top: 0, left: 0 }
21659
- }), [C, p] = q(!1), l = i1(null), L = o === "single" ? r !== void 0 : n !== void 0, h = o === "single" ? r === void 0 : n === void 0, g = o === "single" ? h ? s.internalDate : r : null, m = o === "range" ? h ? s.internalRange : n : { start: null, end: null }, f = (M) => M && M instanceof Date && !isNaN(M.getTime()), H = f(g) ? g : null, j = {
21659
+ }), [C, p] = q(!1), l = i1(null), L = o === "single" ? r !== void 0 : n !== void 0, h = o === "single" ? r === void 0 : n === void 0, g = o === "single" ? h ? s.internalDate : r : null, m = o === "range" ? h ? s.internalRange : n : { start: null, end: null }, f = (M) => M && M instanceof Date && !isNaN(M.getTime()), V = f(g) ? g : null, j = {
21660
21660
  start: f(m == null ? void 0 : m.start) ? m.start : null,
21661
21661
  end: f(m == null ? void 0 : m.end) ? m.end : null
21662
21662
  }, I = N(() => {
@@ -21675,13 +21675,13 @@ const mo = (t) => {
21675
21675
  }
21676
21676
  }
21677
21677
  d((M) => ({ ...M, isOpen: !0 })), p(!1);
21678
- }, []), V = N(() => {
21678
+ }, []), H = N(() => {
21679
21679
  d((M) => ({ ...M, isOpen: !1 })), p(!1);
21680
21680
  }, []), Z = N((M) => {
21681
21681
  d((k) => ({ ...k, currentDate: M }));
21682
21682
  }, []), b = N((M) => {
21683
21683
  d((k) => ({ ...k, viewMode: M }));
21684
- }, []), x = N((M) => {
21684
+ }, []), v = N((M) => {
21685
21685
  d((k) => {
21686
21686
  const A = new Date(k.currentDate);
21687
21687
  switch (k.viewMode) {
@@ -21700,15 +21700,15 @@ const mo = (t) => {
21700
21700
  }, []), S = N(
21701
21701
  (M) => {
21702
21702
  var k;
21703
- o === "single" && (h && d((A) => ({ ...A, internalDate: M })), (k = t.onDateChange) == null || k.call(t, M), a && V());
21703
+ o === "single" && (h && d((A) => ({ ...A, internalDate: M })), (k = t.onDateChange) == null || k.call(t, M), a && H());
21704
21704
  },
21705
- [o, h, t.onDateChange, a, V]
21705
+ [o, h, t.onDateChange, a, H]
21706
21706
  ), y = N(
21707
21707
  (M) => {
21708
21708
  var k;
21709
- o === "range" && (L || d((A) => ({ ...A, internalRange: M })), (k = t.onRangeChange) == null || k.call(t, M), c && M.start && M.end && V());
21709
+ o === "range" && (L || d((A) => ({ ...A, internalRange: M })), (k = t.onRangeChange) == null || k.call(t, M), c && M.start && M.end && H());
21710
21710
  },
21711
- [o, L, t.onRangeChange, c, V]
21711
+ [o, L, t.onRangeChange, c, H]
21712
21712
  ), O = N((M) => {
21713
21713
  d((k) => ({ ...k, hoverDate: M }));
21714
21714
  }, []), w = N((M) => {
@@ -21720,7 +21720,7 @@ const mo = (t) => {
21720
21720
  viewMode: "days"
21721
21721
  };
21722
21722
  });
21723
- }, []), v = N((M) => {
21723
+ }, []), x = N((M) => {
21724
21724
  d((k) => {
21725
21725
  const A = new Date(k.currentDate);
21726
21726
  return A.setFullYear(M), {
@@ -21762,22 +21762,22 @@ const mo = (t) => {
21762
21762
  }
21763
21763
  }, [s.isOpen, B]), {
21764
21764
  state: s,
21765
- selectedDate: H,
21765
+ selectedDate: V,
21766
21766
  selectedRange: j,
21767
21767
  inputRef: l,
21768
21768
  isPortalReady: C,
21769
21769
  actions: {
21770
21770
  openPicker: I,
21771
- closePicker: V,
21771
+ closePicker: H,
21772
21772
  setCurrentDate: Z,
21773
21773
  setViewMode: b,
21774
21774
  setSelectedDate: S,
21775
21775
  setSelectedRange: y,
21776
21776
  setHoverDate: O,
21777
21777
  updatePortalPosition: B,
21778
- navigate: x,
21778
+ navigate: v,
21779
21779
  handleMonthSelect: w,
21780
- handleYearSelect: v,
21780
+ handleYearSelect: x,
21781
21781
  goToToday: $
21782
21782
  }
21783
21783
  };
@@ -21799,19 +21799,19 @@ const mo = (t) => {
21799
21799
  ), p = N(
21800
21800
  (l, L) => {
21801
21801
  const h = c(l, t), g = s(l, t), m = a(l, t), f = d(l);
21802
- let H = !1;
21802
+ let V = !1;
21803
21803
  if (L && t.start && !t.end) {
21804
21804
  const Z = {
21805
21805
  start: t.start < L ? t.start : L,
21806
21806
  end: t.start < L ? L : t.start
21807
21807
  };
21808
- H = a(l, Z);
21808
+ V = a(l, Z);
21809
21809
  }
21810
21810
  let j = !1;
21811
21811
  if (t.start && t.end && m && !h) {
21812
21812
  const Z = new Date(l);
21813
21813
  Z.setDate(l.getDate() - 1), j = !a(Z, t);
21814
- } else if (t.start && !t.end && L && H) {
21814
+ } else if (t.start && !t.end && L && V) {
21815
21815
  const Z = new Date(l);
21816
21816
  Z.setDate(l.getDate() - 1);
21817
21817
  const b = {
@@ -21824,7 +21824,7 @@ const mo = (t) => {
21824
21824
  if (t.start && t.end && m && !g) {
21825
21825
  const Z = new Date(l);
21826
21826
  Z.setDate(l.getDate() + 1), I = !a(Z, t);
21827
- } else if (t.start && !t.end && L && H) {
21827
+ } else if (t.start && !t.end && L && V) {
21828
21828
  const Z = new Date(l);
21829
21829
  Z.setDate(l.getDate() + 1);
21830
21830
  const b = {
@@ -21833,8 +21833,8 @@ const mo = (t) => {
21833
21833
  };
21834
21834
  I = !a(Z, b);
21835
21835
  }
21836
- let V = !0;
21837
- return t.start && !t.end && L ? V = L >= t.start : t.start && t.end && (V = l >= t.start), {
21836
+ let H = !0;
21837
+ return t.start && !t.end && L ? H = L >= t.start : t.start && t.end && (H = l >= t.start), {
21838
21838
  isSelectingStart: !t.start || t.start && t.end,
21839
21839
  isSelectingEnd: !!t.start && !t.end,
21840
21840
  isStart: h,
@@ -21842,9 +21842,9 @@ const mo = (t) => {
21842
21842
  isInRange: m,
21843
21843
  isFirstInRange: j,
21844
21844
  isLastInRange: I,
21845
- afterSelected: V,
21845
+ afterSelected: H,
21846
21846
  isDisabled: f,
21847
- isHovered: H
21847
+ isHovered: V
21848
21848
  };
21849
21849
  },
21850
21850
  [t, c, s, a, d]
@@ -21877,8 +21877,8 @@ const mo = (t) => {
21877
21877
  return { firstDay: h, lastDay: g, daysInMonth: m, startOfWeek: f };
21878
21878
  }, []), a = N(
21879
21879
  (p, l = 1) => {
21880
- const { firstDay: L, lastDay: h, daysInMonth: g, startOfWeek: m } = e(p), f = [], H = (m - l + 7) % 7;
21881
- for (let I = 0; I < H; I++)
21880
+ const { firstDay: L, lastDay: h, daysInMonth: g, startOfWeek: m } = e(p), f = [], V = (m - l + 7) % 7;
21881
+ for (let I = 0; I < V; I++)
21882
21882
  f.push(null);
21883
21883
  for (let I = 1; I <= g; I++)
21884
21884
  f.push(I);
@@ -21923,13 +21923,13 @@ const mo = (t) => {
21923
21923
  e((g) => ({ ...g, inputValue: h }));
21924
21924
  }, []), s = N((h, g) => {
21925
21925
  if (!h) return "";
21926
- const m = h.getDate().toString().padStart(2, "0"), f = (h.getMonth() + 1).toString().padStart(2, "0"), H = h.getFullYear();
21927
- return g.format.replace("dd", m).replace("MM", f).replace("yyyy", H.toString());
21926
+ const m = h.getDate().toString().padStart(2, "0"), f = (h.getMonth() + 1).toString().padStart(2, "0"), V = h.getFullYear();
21927
+ return g.format.replace("dd", m).replace("MM", f).replace("yyyy", V.toString());
21928
21928
  }, []), d = N((h, g) => {
21929
21929
  if (!h) return null;
21930
- const m = g.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), f = new RegExp(`^${m}$`), H = h.match(f);
21931
- if (!H) return null;
21932
- const [, j, I, V] = H, Z = new Date(parseInt(V), parseInt(I) - 1, parseInt(j));
21930
+ const m = g.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), f = new RegExp(`^${m}$`), V = h.match(f);
21931
+ if (!V) return null;
21932
+ const [, j, I, H] = V, Z = new Date(parseInt(H), parseInt(I) - 1, parseInt(j));
21933
21933
  return isNaN(Z.getTime()) ? null : Z;
21934
21934
  }, []), C = N(
21935
21935
  (h, g) => d(h, g) !== null,
@@ -21997,7 +21997,7 @@ const mo = (t) => {
21997
21997
  portalRef: e,
21998
21998
  renderPortal: s
21999
21999
  };
22000
- }, vo = ({
22000
+ }, xo = ({
22001
22001
  day: t,
22002
22002
  date: o,
22003
22003
  isSelected: r,
@@ -22016,16 +22016,16 @@ const mo = (t) => {
22016
22016
  className: m = "",
22017
22017
  renderDay: f
22018
22018
  }) => {
22019
- const H = i1(null);
22019
+ const V = i1(null);
22020
22020
  if (t === null)
22021
22021
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
22022
22022
  const j = (b) => {
22023
22023
  b.stopPropagation(), C || L(o);
22024
22024
  }, I = () => {
22025
- !C && h && (H.current && (clearTimeout(H.current), H.current = null), h(o));
22026
- }, V = () => {
22027
- !C && g && (r || n || e || a ? H.current = setTimeout(() => {
22028
- g(), H.current = null;
22025
+ !C && h && (V.current && (clearTimeout(V.current), V.current = null), h(o));
22026
+ }, H = () => {
22027
+ !C && g && (r || n || e || a ? V.current = setTimeout(() => {
22028
+ g(), V.current = null;
22029
22029
  }, 100) : g());
22030
22030
  }, Z = () => {
22031
22031
  let b = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!s && !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`;
@@ -22049,7 +22049,7 @@ const mo = (t) => {
22049
22049
  className: Z(),
22050
22050
  onClick: j,
22051
22051
  onMouseEnter: I,
22052
- onMouseLeave: V,
22052
+ onMouseLeave: H,
22053
22053
  role: "button",
22054
22054
  tabIndex: C ? -1 : 0,
22055
22055
  "aria-label": `${t} ${o.toLocaleDateString()}`,
@@ -22058,7 +22058,7 @@ const mo = (t) => {
22058
22058
  children: t
22059
22059
  }
22060
22060
  );
22061
- }, xo = ({
22061
+ }, vo = ({
22062
22062
  monthIndex: t,
22063
22063
  monthName: o,
22064
22064
  isSelected: r,
@@ -22239,28 +22239,28 @@ const mo = (t) => {
22239
22239
  },
22240
22240
  a,
22241
22241
  c
22242
- ), m = (j) => o ? j.getTime() === o.getTime() : !1, f = (j) => !!(a && j < a || c && j > c), H = L(t, d);
22242
+ ), m = (j) => o ? j.getTime() === o.getTime() : !1, f = (j) => !!(a && j < a || c && j > c), V = L(t, d);
22243
22243
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
22244
22244
  s.map((j, I) => /* @__PURE__ */ i(jo, { day: j }, I)),
22245
- H.map((j, I) => {
22245
+ V.map((j, I) => {
22246
22246
  if (j === null)
22247
22247
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, I);
22248
- const V = new Date(t.getFullYear(), t.getMonth(), j), Z = r ? g(V, p || null) : {
22248
+ const H = new Date(t.getFullYear(), t.getMonth(), j), Z = r ? g(H, p || null) : {
22249
22249
  isStart: !1,
22250
22250
  isEnd: !1,
22251
22251
  isInRange: !1,
22252
22252
  isFirstInRange: !1,
22253
22253
  isLastInRange: !1,
22254
22254
  afterSelected: !0,
22255
- isDisabled: f(V),
22255
+ isDisabled: f(H),
22256
22256
  isHovered: !1
22257
22257
  };
22258
22258
  return /* @__PURE__ */ i(
22259
- vo,
22259
+ xo,
22260
22260
  {
22261
22261
  day: j,
22262
- date: V,
22263
- isSelected: m(V),
22262
+ date: H,
22263
+ isSelected: m(H),
22264
22264
  isInRange: Z.isInRange,
22265
22265
  isStart: Z.isStart,
22266
22266
  isEnd: Z.isEnd,
@@ -22268,7 +22268,7 @@ const mo = (t) => {
22268
22268
  isLastInRange: Z.isLastInRange,
22269
22269
  afterSelected: Z.afterSelected,
22270
22270
  isDisabled: Z.isDisabled,
22271
- isToday: h(V),
22271
+ isToday: h(H),
22272
22272
  isHovered: Z.isHovered,
22273
22273
  onClick: n,
22274
22274
  onMouseEnter: e,
@@ -22305,7 +22305,7 @@ const mo = (t) => {
22305
22305
  }
22306
22306
  ), c = a();
22307
22307
  return /* @__PURE__ */ i("div", { className: `ui-mx-auto ui-grid ui-w-fit ui-grid-cols-3 ${e}`, children: c.map((s, d) => /* @__PURE__ */ i(
22308
- xo,
22308
+ vo,
22309
22309
  {
22310
22310
  monthIndex: d,
22311
22311
  monthName: s,
@@ -22358,7 +22358,7 @@ const mo = (t) => {
22358
22358
  !d && e && e(j.target.value);
22359
22359
  }, f = () => {
22360
22360
  !d && a && a();
22361
- }, H = () => {
22361
+ }, V = () => {
22362
22362
  !d && c && c();
22363
22363
  };
22364
22364
  return /* @__PURE__ */ i(
@@ -22374,7 +22374,7 @@ const mo = (t) => {
22374
22374
  extraSlot: "CalendarOutlined",
22375
22375
  onChange: m,
22376
22376
  onFocus: f,
22377
- onBlur: H,
22377
+ onBlur: V,
22378
22378
  className: s,
22379
22379
  disabled: d,
22380
22380
  readOnly: !0,
@@ -22415,8 +22415,8 @@ const mo = (t) => {
22415
22415
  const h = a[l.getMonth()], g = l.getFullYear();
22416
22416
  switch (L) {
22417
22417
  case "years":
22418
- const m = d(g, c), f = m[0], H = m[m.length - 1];
22419
- return `${f} - ${H}`;
22418
+ const m = d(g, c), f = m[0], V = m[m.length - 1];
22419
+ return `${f} - ${V}`;
22420
22420
  case "months":
22421
22421
  return `${g}`;
22422
22422
  case "days":
@@ -22488,10 +22488,10 @@ const mo = (t) => {
22488
22488
  onYearSelect: m,
22489
22489
  renderDay: f
22490
22490
  }) => {
22491
- const H = (V) => {
22492
- g == null || g(V);
22493
- }, j = (V) => {
22494
- m == null || m(V);
22491
+ const V = (H) => {
22492
+ g == null || g(H);
22493
+ }, j = (H) => {
22494
+ m == null || m(H);
22495
22495
  };
22496
22496
  return /* @__PURE__ */ i("div", { className: "ui-flex ui-h-full ui-justify-center ui-p-3", children: (() => {
22497
22497
  switch (s) {
@@ -22519,7 +22519,7 @@ const mo = (t) => {
22519
22519
  {
22520
22520
  currentDate: t,
22521
22521
  selectedMonth: t.getMonth(),
22522
- onMonthSelect: H,
22522
+ onMonthSelect: V,
22523
22523
  monthNames: C
22524
22524
  }
22525
22525
  );
@@ -22568,13 +22568,13 @@ const mo = (t) => {
22568
22568
  "Diciembre"
22569
22569
  ],
22570
22570
  startOfWeek: f = 1,
22571
- showWeekNumbers: H = !1,
22571
+ showWeekNumbers: V = !1,
22572
22572
  yearRange: j = 12,
22573
22573
  hoverDate: I,
22574
- closeOnSelect: V,
22574
+ closeOnSelect: H,
22575
22575
  autoCloseRange: Z,
22576
22576
  renderHeader: b,
22577
- renderDay: x
22577
+ renderDay: v
22578
22578
  }) => {
22579
22579
  const S = ($) => {
22580
22580
  C == null || C($);
@@ -22594,7 +22594,7 @@ const mo = (t) => {
22594
22594
  p == null || p($);
22595
22595
  }, w = ($) => {
22596
22596
  l == null || l($);
22597
- }, v = () => {
22597
+ }, x = () => {
22598
22598
  switch (s) {
22599
22599
  case "days":
22600
22600
  return /* @__PURE__ */ i(
@@ -22609,9 +22609,9 @@ const mo = (t) => {
22609
22609
  maxDate: c,
22610
22610
  weekDays: g,
22611
22611
  startOfWeek: f,
22612
- showWeekNumbers: H,
22612
+ showWeekNumbers: V,
22613
22613
  hoverDate: I,
22614
- renderDay: x
22614
+ renderDay: v
22615
22615
  }
22616
22616
  );
22617
22617
  case "months":
@@ -22643,7 +22643,7 @@ const mo = (t) => {
22643
22643
  {
22644
22644
  className: U(
22645
22645
  "ui-min-w-[254px] ui-overflow-hidden ui-rounded-lg ui-border ui-border-neutral-100 ui-bg-white ui-shadow-lg",
22646
- V ? "ui-min-h-[280px]" : "ui-min-h-[325px]"
22646
+ H ? "ui-min-h-[280px]" : "ui-min-h-[325px]"
22647
22647
  ),
22648
22648
  children: [
22649
22649
  /* @__PURE__ */ i(
@@ -22658,8 +22658,8 @@ const mo = (t) => {
22658
22658
  renderHeader: b
22659
22659
  }
22660
22660
  ),
22661
- /* @__PURE__ */ i("div", { className: "ui-h-full ui-p-3", children: v() }),
22662
- !V && /* @__PURE__ */ u("footer", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
22661
+ /* @__PURE__ */ i("div", { className: "ui-h-full ui-p-3", children: x() }),
22662
+ !H && /* @__PURE__ */ u("footer", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
22663
22663
  /* @__PURE__ */ i(o1, { variant: "outlined", size: "md", color: "white", children: "Cancelar" }),
22664
22664
  /* @__PURE__ */ i(o1, { size: "md", children: "Aceptar" })
22665
22665
  ] })
@@ -22684,18 +22684,18 @@ const mo = (t) => {
22684
22684
  minDate: g,
22685
22685
  maxDate: m,
22686
22686
  locale: f,
22687
- weekDays: H,
22687
+ weekDays: V,
22688
22688
  monthNames: j,
22689
22689
  startOfWeek: I,
22690
- showWeekNumbers: V,
22690
+ showWeekNumbers: H,
22691
22691
  yearRange: Z,
22692
22692
  hoverDate: b,
22693
- closeOnSelect: x,
22693
+ closeOnSelect: v,
22694
22694
  autoCloseRange: S,
22695
22695
  calendarsCount: y = 1,
22696
22696
  mode: O = "single",
22697
22697
  onClickSelected: w = !1,
22698
- renderHeader: v,
22698
+ renderHeader: x,
22699
22699
  renderDay: $
22700
22700
  }) => {
22701
22701
  const [B, M] = q(Array(y).fill(h)), [k, A] = q(() => {
@@ -22778,7 +22778,7 @@ const mo = (t) => {
22778
22778
  onGoToToday: L,
22779
22779
  monthNames: j,
22780
22780
  yearRange: Z,
22781
- renderHeader: v
22781
+ renderHeader: x
22782
22782
  }
22783
22783
  ),
22784
22784
  /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: k.map((P, T) => /* @__PURE__ */ i("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ i("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-white", children: /* @__PURE__ */ i(
@@ -22792,10 +22792,10 @@ const mo = (t) => {
22792
22792
  minDate: g,
22793
22793
  maxDate: m,
22794
22794
  viewMode: B[T],
22795
- weekDays: H,
22795
+ weekDays: V,
22796
22796
  monthNames: j,
22797
22797
  startOfWeek: I,
22798
- showWeekNumbers: V,
22798
+ showWeekNumbers: H,
22799
22799
  yearRange: Z,
22800
22800
  hoverDate: b,
22801
22801
  onMonthSelect: (z) => R(T, z),
@@ -22824,15 +22824,15 @@ const mo = (t) => {
22824
22824
  onYearSelect: l,
22825
22825
  onGoToToday: L,
22826
22826
  locale: f,
22827
- weekDays: H,
22827
+ weekDays: V,
22828
22828
  monthNames: j,
22829
22829
  startOfWeek: I,
22830
- showWeekNumbers: V,
22830
+ showWeekNumbers: H,
22831
22831
  yearRange: Z,
22832
22832
  hoverDate: b,
22833
- closeOnSelect: x,
22833
+ closeOnSelect: v,
22834
22834
  autoCloseRange: S,
22835
- renderHeader: v,
22835
+ renderHeader: x,
22836
22836
  renderDay: $
22837
22837
  }
22838
22838
  ) })
@@ -22868,18 +22868,18 @@ const mo = (t) => {
22868
22868
  inputClassName: g = "",
22869
22869
  headerClassName: m = "",
22870
22870
  dayClassName: f = "",
22871
- monthClassName: H = "",
22871
+ monthClassName: V = "",
22872
22872
  yearClassName: j = "",
22873
22873
  disabledDayClassName: I = "text-gray-400 cursor-not-allowed",
22874
- rangeClassName: V = "bg-blue-100",
22874
+ rangeClassName: H = "bg-blue-100",
22875
22875
  rangeStartClassName: Z = "bg-blue-500 text-white rounded-l-full",
22876
22876
  rangeEndClassName: b = "bg-blue-500 text-white rounded-r-full",
22877
- todayClassName: x = "border border-blue-500",
22877
+ todayClassName: v = "border border-blue-500",
22878
22878
  showWeekNumbers: S = !1,
22879
22879
  yearRange: y = 12,
22880
22880
  initialViewMode: O = "days",
22881
22881
  closeOnSelect: w = !1,
22882
- autoCloseRange: v = !0,
22882
+ autoCloseRange: x = !0,
22883
22883
  placeholder: $ = "Seleccionar fecha",
22884
22884
  format: B = "dd/MM/yyyy",
22885
22885
  calendarsCount: M = 1,
@@ -22890,7 +22890,7 @@ const mo = (t) => {
22890
22890
  P.setSelectedRange,
22891
22891
  c,
22892
22892
  s,
22893
- v
22893
+ x
22894
22894
  ), z = (J) => {
22895
22895
  if (!J || !(J instanceof Date) || isNaN(J.getTime()))
22896
22896
  return "";
@@ -22954,7 +22954,7 @@ const mo = (t) => {
22954
22954
  yearRange: y,
22955
22955
  hoverDate: _.hoverDate,
22956
22956
  closeOnSelect: w,
22957
- autoCloseRange: v,
22957
+ autoCloseRange: x,
22958
22958
  calendarsCount: M,
22959
22959
  mode: o,
22960
22960
  renderHeader: k,
@@ -22989,21 +22989,21 @@ const mo = (t) => {
22989
22989
  onSuccess: m = () => {
22990
22990
  },
22991
22991
  showCancelButton: f = !0,
22992
- showSuccessButton: H = !0,
22992
+ showSuccessButton: V = !0,
22993
22993
  closeAtSuccess: j = !1,
22994
22994
  closeAtCancel: I = !0,
22995
- disabledSuccessButton: V = !1,
22995
+ disabledSuccessButton: H = !1,
22996
22996
  disabledCancelButton: Z = !1
22997
22997
  }) => {
22998
- const b = H9(), { isVisible: x, isAnimating: S } = M9(t), y = i1(null);
22998
+ const b = H9(), { isVisible: v, isAnimating: S } = M9(t), y = i1(null);
22999
22999
  j9(t), W0(t, o, s), V9(t, y, !d);
23000
23000
  const O = () => {
23001
23001
  g && g(), I && o();
23002
23002
  }, w = () => {
23003
23003
  m && m(), j && o();
23004
23004
  };
23005
- if (!b || !x) return null;
23006
- const v = /* @__PURE__ */ u(
23005
+ if (!b || !v) return null;
23006
+ const x = /* @__PURE__ */ u(
23007
23007
  "div",
23008
23008
  {
23009
23009
  "aria-modal": "true",
@@ -23034,11 +23034,11 @@ const mo = (t) => {
23034
23034
  style: {
23035
23035
  transform: C === "right" ? S ? "translateX(0)" : "translateX(100%)" : S ? "translateX(0)" : "translateX(-100%)"
23036
23036
  },
23037
- children: /* @__PURE__ */ u(x1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
23038
- /* @__PURE__ */ i(x1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: r && /* @__PURE__ */ i($9, { title: r, icon: a }) }) }),
23039
- /* @__PURE__ */ i(x1.Separator, { padding: !1 }),
23037
+ children: /* @__PURE__ */ u(v1, { rounded: !1, padding: !1, gap: !1, className: U(p), children: [
23038
+ /* @__PURE__ */ i(v1.Header, { children: /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-4", children: r && /* @__PURE__ */ i($9, { title: r, icon: a }) }) }),
23039
+ /* @__PURE__ */ i(v1.Separator, { padding: !1 }),
23040
23040
  /* @__PURE__ */ i(
23041
- x1.Body,
23041
+ v1.Body,
23042
23042
  {
23043
23043
  fullHeight: !0,
23044
23044
  className: U("ui-p-4", l ? "ui-overflow-y-auto" : ""),
@@ -23046,11 +23046,11 @@ const mo = (t) => {
23046
23046
  children: e
23047
23047
  }
23048
23048
  ),
23049
- (f || H) && /* @__PURE__ */ u($1, { children: [
23050
- /* @__PURE__ */ i(x1.Separator, { padding: !1 }),
23051
- /* @__PURE__ */ u(x1.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-4 ui-p-4", children: [
23049
+ (f || V) && /* @__PURE__ */ u($1, { children: [
23050
+ /* @__PURE__ */ i(v1.Separator, { padding: !1 }),
23051
+ /* @__PURE__ */ u(v1.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-4 ui-p-4", children: [
23052
23052
  f && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "outlined", color: "white", onClick: O, disabled: Z, children: L }),
23053
- H && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "button", onClick: w, disabled: V, children: h })
23053
+ V && /* @__PURE__ */ i(b1, { fullWidth: !0, variant: "button", onClick: w, disabled: H, children: h })
23054
23054
  ] })
23055
23055
  ] })
23056
23056
  ] })
@@ -23059,7 +23059,7 @@ const mo = (t) => {
23059
23059
  ]
23060
23060
  }
23061
23061
  );
23062
- return b9.createPortal(v, b);
23062
+ return b9.createPortal(x, b);
23063
23063
  }, Jr = ({ className: t }) => /* @__PURE__ */ i("div", { className: U("ui-my-1 ui-h-px ui-w-full ui-bg-neutral-100", t) }), N9 = ({
23064
23064
  children: t,
23065
23065
  icon: o,
@@ -23280,7 +23280,7 @@ const mo = (t) => {
23280
23280
  onOpenChange: g,
23281
23281
  withCheckbox: m = !1
23282
23282
  }) => {
23283
- const f = a0(), H = C || `dropdown-${f}`, [j, I] = q(!1), [V, Z] = q(!1), [b, x] = q(""), [S, y] = q("bottom"), [O, w] = q({}), v = i1(null), $ = i1(null), B = i1(null), M = N(
23283
+ const f = a0(), V = C || `dropdown-${f}`, [j, I] = q(!1), [H, Z] = q(!1), [b, v] = q(""), [S, y] = q("bottom"), [O, w] = q({}), x = i1(null), $ = i1(null), B = i1(null), M = N(
23284
23284
  (E) => E == null ? [] : Array.isArray(E) ? E : [E],
23285
23285
  []
23286
23286
  ), k = N(
@@ -23343,12 +23343,12 @@ const mo = (t) => {
23343
23343
  if (!h)
23344
23344
  r1 === "bottom" ? d1 = Q.bottom + 4 : d1 = Q.top - e1 - 4, N1 = Q.left;
23345
23345
  else {
23346
- const v1 = (D1 = B.current) == null ? void 0 : D1.getBoundingClientRect();
23347
- if (!v1) return;
23348
- const z1 = Q.top - v1.top, H1 = Q.left - v1.left;
23346
+ const x1 = (D1 = B.current) == null ? void 0 : D1.getBoundingClientRect();
23347
+ if (!x1) return;
23348
+ const z1 = Q.top - x1.top, H1 = Q.left - x1.left;
23349
23349
  r1 === "bottom" ? d1 = z1 + Q.height + 4 : d1 = z1 - e1 - 4, N1 = H1;
23350
23350
  }
23351
- const V1 = h ? 9999 : 1100, I1 = parseInt(H.replace(/\D/g, "")) || 0, A1 = V1 + I1 % 100, Q1 = {
23351
+ const V1 = h ? 9999 : 1100, I1 = parseInt(V.replace(/\D/g, "")) || 0, A1 = V1 + I1 % 100, Q1 = {
23352
23352
  position: h ? "absolute" : "fixed",
23353
23353
  top: `${d1}px`,
23354
23354
  left: `${N1}px`,
@@ -23357,7 +23357,7 @@ const mo = (t) => {
23357
23357
  };
23358
23358
  w(Q1);
23359
23359
  });
23360
- }, [T, P.length, H, h]), D = N(() => {
23360
+ }, [T, P.length, V, h]), D = N(() => {
23361
23361
  if (!$.current || !F.length)
23362
23362
  return;
23363
23363
  const Q = $.current.querySelector(".ui-overflow-y-auto");
@@ -23376,8 +23376,8 @@ const mo = (t) => {
23376
23376
  behavior: "smooth"
23377
23377
  });
23378
23378
  }, [F, n]), n1 = (E) => {
23379
- E && E.stopPropagation(), !p && (j ? a1() : (So(H), x(""), Z(!1), z(), setTimeout(() => {
23380
- I(!0), t0.add(H), setTimeout(() => {
23379
+ E && E.stopPropagation(), !p && (j ? a1() : (So(V), v(""), Z(!1), z(), setTimeout(() => {
23380
+ I(!0), t0.add(V), setTimeout(() => {
23381
23381
  z(), setTimeout(() => {
23382
23382
  D();
23383
23383
  }, 50);
@@ -23385,7 +23385,7 @@ const mo = (t) => {
23385
23385
  }, 50)));
23386
23386
  }, a1 = () => {
23387
23387
  Z(!0), setTimeout(() => {
23388
- I(!1), Z(!1), t0.delete(H);
23388
+ I(!1), Z(!1), t0.delete(V);
23389
23389
  }, 150);
23390
23390
  }, p1 = (E, Q) => {
23391
23391
  if (Q.stopPropagation(), !E.disabled) {
@@ -23397,14 +23397,14 @@ const mo = (t) => {
23397
23397
  W(s1);
23398
23398
  } else {
23399
23399
  const t1 = E[e] === -1 ? -1 : E[e];
23400
- W(t1), x(""), a1();
23400
+ W(t1), v(""), a1();
23401
23401
  }
23402
23402
  c == null || c(E);
23403
23403
  }
23404
23404
  }, J = (E) => {
23405
- x(E.target.value);
23405
+ v(E.target.value);
23406
23406
  }, u1 = (E) => {
23407
- E.stopPropagation(), W(l ? [] : ""), x("");
23407
+ E.stopPropagation(), W(l ? [] : ""), v("");
23408
23408
  };
23409
23409
  return K(() => {
23410
23410
  g == null || g(j);
@@ -23415,7 +23415,7 @@ const mo = (t) => {
23415
23415
  elementRef: $,
23416
23416
  containerRef: h ? void 0 : B,
23417
23417
  // No usar containerRef cuando absolute=true
23418
- elementId: H,
23418
+ elementId: V,
23419
23419
  elementType: "dropdown",
23420
23420
  closeOnClickOutside: d,
23421
23421
  disableSameTypeCheck: h,
@@ -23437,16 +23437,16 @@ const mo = (t) => {
23437
23437
  const E = () => {
23438
23438
  z();
23439
23439
  }, Q = () => {
23440
- j && !V && z();
23440
+ j && !H && z();
23441
23441
  };
23442
23442
  return window.addEventListener("resize", E), window.addEventListener("scroll", Q, !1), document.addEventListener("scroll", Q, !1), () => {
23443
23443
  window.removeEventListener("resize", E), window.removeEventListener("scroll", Q, !1), document.removeEventListener("scroll", Q, !1);
23444
23444
  };
23445
23445
  }
23446
- }, [j, z, V]), {
23446
+ }, [j, z, H]), {
23447
23447
  // Estado
23448
23448
  isOpen: j,
23449
- isClosing: V,
23449
+ isClosing: H,
23450
23450
  searchValue: b,
23451
23451
  selectedValue: R,
23452
23452
  selectedOptions: F,
@@ -23456,10 +23456,10 @@ const mo = (t) => {
23456
23456
  isControlled: G,
23457
23457
  multiple: l,
23458
23458
  // Referencias
23459
- inputRef: v,
23459
+ inputRef: x,
23460
23460
  dropdownRef: $,
23461
23461
  containerRef: B,
23462
- dropdownUniqueId: H,
23462
+ dropdownUniqueId: V,
23463
23463
  // Funciones
23464
23464
  toggleDropdown: n1,
23465
23465
  closeDropdown: a1,
@@ -23517,7 +23517,7 @@ const mo = (t) => {
23517
23517
  valueName: h,
23518
23518
  idName: g
23519
23519
  }) => {
23520
- const [m, f] = q(!1), [H, j] = q(null), I = i1(null);
23520
+ const [m, f] = q(!1), [V, j] = q(null), I = i1(null);
23521
23521
  return K(() => {
23522
23522
  if (!I.current || r.length === 0) {
23523
23523
  f(!1), j(null);
@@ -23526,17 +23526,17 @@ const mo = (t) => {
23526
23526
  const Z = setTimeout(() => {
23527
23527
  const b = I.current;
23528
23528
  if (b) {
23529
- const x = b.scrollHeight, S = b.clientHeight;
23530
- if (H === null) {
23529
+ const v = b.scrollHeight, S = b.clientHeight;
23530
+ if (V === null) {
23531
23531
  j(S);
23532
23532
  return;
23533
23533
  }
23534
- const y = x > H;
23534
+ const y = v > V;
23535
23535
  f(y);
23536
23536
  }
23537
23537
  }, 100);
23538
23538
  return () => clearTimeout(Z);
23539
- }, [r.length, H]), // Input personalizado con tags para modo tags
23539
+ }, [r.length, V]), // Input personalizado con tags para modo tags
23540
23540
  /* @__PURE__ */ u("div", { className: "ui-w-full", children: [
23541
23541
  t && /* @__PURE__ */ i("label", { className: "ui-mb-1 ui-block ui-text-sm ui-font-bold ui-text-gray-700", children: t }),
23542
23542
  /* @__PURE__ */ u(
@@ -23545,8 +23545,8 @@ const mo = (t) => {
23545
23545
  ref: d,
23546
23546
  "data-dropdown-input": "true",
23547
23547
  className: `ui-flex ui-min-h-[32px] ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-md ui-border ui-border-gray-300 ui-bg-white ui-px-2 ${m ? "ui-py-2" : "ui-py-0.5"} ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-blue-500 focus-within:ui-ring-2 focus-within:ui-ring-blue-200 hover:ui-border-gray-400`,
23548
- onClick: (V) => {
23549
- c || e(V);
23548
+ onClick: (H) => {
23549
+ c || e(H);
23550
23550
  },
23551
23551
  onFocus: () => {
23552
23552
  !a && !c && (s(!0), e());
@@ -23558,18 +23558,18 @@ const mo = (t) => {
23558
23558
  {
23559
23559
  ref: I,
23560
23560
  className: `ui-flex ui-flex-wrap ui-gap-1 ${m ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
23561
- children: r.map((V) => V ? /* @__PURE__ */ i(
23561
+ children: r.map((H) => H ? /* @__PURE__ */ i(
23562
23562
  A9,
23563
23563
  {
23564
23564
  className: "ui-z-[1010]",
23565
- label: V[h],
23565
+ label: H[h],
23566
23566
  color: "blue",
23567
23567
  size: "xs",
23568
23568
  onClick: (Z) => {
23569
- Z.stopPropagation(), n(V[g]);
23569
+ Z.stopPropagation(), n(H[g]);
23570
23570
  }
23571
23571
  },
23572
- V[h]
23572
+ H[h]
23573
23573
  ) : null)
23574
23574
  }
23575
23575
  ) : /* @__PURE__ */ i("span", { className: "ui-text-sm ui-text-neutral-500", children: o }),
@@ -23611,18 +23611,18 @@ const mo = (t) => {
23611
23611
  disabled: g = !1,
23612
23612
  placeholder: m = "",
23613
23613
  options: f = [],
23614
- valueName: H = "label",
23614
+ valueName: V = "label",
23615
23615
  idName: j = "value",
23616
23616
  onValueChange: I,
23617
- onOptionSelect: V,
23617
+ onOptionSelect: H,
23618
23618
  onCheckboxChange: Z,
23619
23619
  searchable: b = !1,
23620
- maxHeight: x = "200px",
23620
+ maxHeight: v = "200px",
23621
23621
  closeOnClickOutside: S = !0,
23622
23622
  dropdownId: y,
23623
23623
  multiple: O = !1,
23624
23624
  maxSelectedItems: w,
23625
- selectedItemsDisplay: v = "tags",
23625
+ selectedItemsDisplay: x = "tags",
23626
23626
  absolute: $ = !1,
23627
23627
  footer: B = !1,
23628
23628
  defaultOptionSelected: M = !1,
@@ -23663,7 +23663,7 @@ const mo = (t) => {
23663
23663
  handleOptionSelect: t9,
23664
23664
  handleSearchChange: Q1,
23665
23665
  handleClear: D1,
23666
- calculatePosition: v1,
23666
+ calculatePosition: x1,
23667
23667
  scrollToSelectedOption: z1,
23668
23668
  setValue: H1,
23669
23669
  normalizeToArray: o9
@@ -23671,10 +23671,10 @@ const mo = (t) => {
23671
23671
  value: L,
23672
23672
  defaultValue: J,
23673
23673
  options: p1,
23674
- valueName: H,
23674
+ valueName: V,
23675
23675
  idName: j,
23676
23676
  onValueChange: I,
23677
- onOptionSelect: V,
23677
+ onOptionSelect: H,
23678
23678
  searchable: b,
23679
23679
  closeOnClickOutside: S,
23680
23680
  dropdownId: y,
@@ -23690,15 +23690,15 @@ const mo = (t) => {
23690
23690
  }
23691
23691
  }), P1 = (Y, c1) => {
23692
23692
  if (O) {
23693
- const h1 = o9(t1), X = Y[j];
23693
+ const g1 = o9(t1), X = Y[j];
23694
23694
  if (c1) {
23695
- if (!h1.includes(X)) {
23696
- const g1 = [...h1, X];
23697
- H1(g1);
23695
+ if (!g1.includes(X)) {
23696
+ const w1 = [...g1, X];
23697
+ H1(w1);
23698
23698
  }
23699
23699
  } else {
23700
- const g1 = h1.filter((y1) => y1 !== X);
23701
- H1(g1);
23700
+ const w1 = g1.filter((y1) => y1 !== X);
23701
+ H1(w1);
23702
23702
  }
23703
23703
  }
23704
23704
  };
@@ -23708,14 +23708,14 @@ const mo = (t) => {
23708
23708
  F((Y) => Y !== c ? c : Y), T((Y) => Y !== null ? null : Y);
23709
23709
  else {
23710
23710
  const Y = p1.find(
23711
- (c1) => c1[H] === L || c1[j] === L
23711
+ (c1) => c1[V] === L || c1[j] === L
23712
23712
  );
23713
23713
  if (Y) {
23714
- const c1 = Y.icon || c, h1 = Y.iconColor || null;
23715
- F((X) => X !== c1 ? c1 : X), T((X) => X !== h1 ? h1 : X);
23714
+ const c1 = Y.icon || c, g1 = Y.iconColor || null;
23715
+ F((X) => X !== c1 ? c1 : X), T((X) => X !== g1 ? g1 : X);
23716
23716
  }
23717
23717
  }
23718
- }, [L, r1, p1, H, j, c]), u0(
23718
+ }, [L, r1, p1, V, j, c]), u0(
23719
23719
  G,
23720
23720
  () => ({
23721
23721
  getValue: () => t1,
@@ -23724,17 +23724,17 @@ const mo = (t) => {
23724
23724
  },
23725
23725
  focus: () => {
23726
23726
  var Y, c1;
23727
- O && v === "tags" ? (Y = R.current) == null || Y.focus() : (c1 = d1.current) == null || c1.focus();
23727
+ O && x === "tags" ? (Y = R.current) == null || Y.focus() : (c1 = d1.current) == null || c1.focus();
23728
23728
  },
23729
23729
  blur: () => {
23730
23730
  var Y, c1;
23731
- O && v === "tags" ? (Y = R.current) == null || Y.blur() : (c1 = d1.current) == null || c1.blur();
23731
+ O && x === "tags" ? (Y = R.current) == null || Y.blur() : (c1 = d1.current) == null || c1.blur();
23732
23732
  },
23733
23733
  clear: () => {
23734
23734
  r1 || H1(O ? [] : ""), I == null || I(O ? [] : "");
23735
23735
  },
23736
23736
  open: () => {
23737
- g || (v1(), setTimeout(() => {
23737
+ g || (x1(), setTimeout(() => {
23738
23738
  I1();
23739
23739
  }, 50));
23740
23740
  },
@@ -23746,13 +23746,13 @@ const mo = (t) => {
23746
23746
  t1,
23747
23747
  r1,
23748
23748
  g,
23749
- v1,
23749
+ x1,
23750
23750
  I,
23751
23751
  A1,
23752
23752
  O,
23753
23753
  H1,
23754
23754
  I1,
23755
- v
23755
+ x
23756
23756
  ]
23757
23757
  ), K(() => {
23758
23758
  if (u1 && e1.length > 0) {
@@ -23762,55 +23762,55 @@ const mo = (t) => {
23762
23762
  return () => clearTimeout(Y);
23763
23763
  }
23764
23764
  }, [u1, e1, z1]), K(() => {
23765
- if (u1 && O && v === "tags") {
23765
+ if (u1 && O && x === "tags") {
23766
23766
  const Y = R.current;
23767
23767
  if (!Y) return;
23768
23768
  const c1 = new ResizeObserver(() => {
23769
23769
  setTimeout(() => {
23770
- v1();
23770
+ x1();
23771
23771
  }, 50);
23772
23772
  });
23773
23773
  return c1.observe(Y), () => {
23774
23774
  c1.disconnect();
23775
23775
  };
23776
23776
  }
23777
- }, [u1, O, v, v1]), K(() => {
23778
- if (u1 && O && v === "tags") {
23777
+ }, [u1, O, x, x1]), K(() => {
23778
+ if (u1 && O && x === "tags") {
23779
23779
  const Y = setTimeout(() => {
23780
- v1();
23780
+ x1();
23781
23781
  }, 100);
23782
23782
  return () => clearTimeout(Y);
23783
23783
  }
23784
- }, [e1, u1, O, v, v1]);
23784
+ }, [e1, u1, O, x, x1]);
23785
23785
  const r9 = (Y) => {
23786
23786
  if (O) {
23787
- const h1 = o9(t1).filter((X) => X !== Y);
23788
- if (H1(h1), k && P1) {
23789
- const X = f.find((g1) => g1[j] === Y);
23787
+ const g1 = o9(t1).filter((X) => X !== Y);
23788
+ if (H1(g1), k && P1) {
23789
+ const X = f.find((w1) => w1[j] === Y);
23790
23790
  X && P1(X, !1);
23791
23791
  }
23792
23792
  }
23793
23793
  }, z9 = () => {
23794
23794
  if (O) {
23795
23795
  if (e1.length === 0) return "";
23796
- switch (v) {
23796
+ switch (x) {
23797
23797
  case "count":
23798
23798
  return `${e1.length} elemento${e1.length > 1 ? "s" : ""} seleccionado${e1.length > 1 ? "s" : ""}`;
23799
23799
  case "text":
23800
- return e1.map((Y) => Y == null ? void 0 : Y[H]).filter(Boolean).join(", ");
23800
+ return e1.map((Y) => Y == null ? void 0 : Y[V]).filter(Boolean).join(", ");
23801
23801
  case "tags":
23802
23802
  default:
23803
23803
  return "";
23804
23804
  }
23805
23805
  } else {
23806
23806
  const Y = e1[0];
23807
- return Y ? Y[j] === -1 || Y[H] === -1 || Y[H] === "-1" ? m : Y[H] || "" : "";
23807
+ return Y ? Y[j] === -1 || Y[V] === -1 || Y[V] === "-1" ? m : Y[V] || "" : "";
23808
23808
  }
23809
23809
  }, P9 = () => {
23810
23810
  if (!u1 || !l1.top) return null;
23811
- const Y = E ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (X, g1) => {
23812
- t9(X, g1), X.icon && F(X.icon), X.iconColor && T(X.iconColor);
23813
- }, h1 = /* @__PURE__ */ u(
23811
+ const Y = E ? "animate-dropdown-exit" : "animate-dropdown-enter", c1 = (X, w1) => {
23812
+ t9(X, w1), X.icon && F(X.icon), X.iconColor && T(X.iconColor);
23813
+ }, g1 = /* @__PURE__ */ u(
23814
23814
  "div",
23815
23815
  {
23816
23816
  ref: N1,
@@ -23842,39 +23842,39 @@ const mo = (t) => {
23842
23842
  ) }) }),
23843
23843
  b && /* @__PURE__ */ i(G1, {}),
23844
23844
  /* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: s1.length > 0 ? s1.map((X) => {
23845
- const g1 = O ? e1.some(
23845
+ const w1 = O ? e1.some(
23846
23846
  (y1) => y1 && y1[j] === X[j]
23847
23847
  ) : X[j] === -1 && (t1 === -1 || t1 === "-1") || X[j] === t1;
23848
23848
  return k ? /* @__PURE__ */ i(
23849
23849
  T9,
23850
23850
  {
23851
23851
  disabled: X.disabled,
23852
- current: g1 ? "blue" : !1,
23852
+ current: w1 ? "blue" : !1,
23853
23853
  "data-option-value": X[j],
23854
23854
  icon: X.icon,
23855
23855
  iconColor: X.iconColor,
23856
23856
  checkboxProps: {
23857
- checked: g1,
23857
+ checked: w1,
23858
23858
  onChange: (y1) => P1 == null ? void 0 : P1(X, y1),
23859
23859
  disabled: X.disabled
23860
23860
  },
23861
23861
  isGroupTitle: X.isGroupTitle,
23862
23862
  groupTitle: X.label,
23863
- children: X[H]
23863
+ children: X[V]
23864
23864
  },
23865
- X[j] || X[H]
23865
+ X[j] || X[V]
23866
23866
  ) : /* @__PURE__ */ i(
23867
23867
  N9,
23868
23868
  {
23869
23869
  onClick: (y1) => c1(X, y1),
23870
23870
  disabled: X.disabled,
23871
- current: g1 ? "blue" : !1,
23871
+ current: w1 ? "blue" : !1,
23872
23872
  "data-option-value": X[j],
23873
23873
  icon: X.icon,
23874
23874
  iconColor: X.iconColor,
23875
- children: X[H]
23875
+ children: X[V]
23876
23876
  },
23877
- X[j] || X[H]
23877
+ X[j] || X[V]
23878
23878
  );
23879
23879
  }) : Q ? /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-max-w-[300px] ui-break-words ui-px-3 ui-py-2 ui-text-center ui-text-sm ui-text-neutral-500", children: [
23880
23880
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(L1, { name: "SearchOutlined", size: "5xl", color: "neutral" }) }),
@@ -23907,7 +23907,7 @@ const mo = (t) => {
23907
23907
  ]
23908
23908
  }
23909
23909
  );
23910
- return $ ? h1 : E1(h1, document.body);
23910
+ return $ ? g1 : E1(g1, document.body);
23911
23911
  };
23912
23912
  return K(() => {
23913
23913
  c && F(c);
@@ -23918,7 +23918,7 @@ const mo = (t) => {
23918
23918
  className: "ui-relative ui-w-full",
23919
23919
  "data-dropdown-container-id": V1,
23920
23920
  children: [
23921
- O && v === "tags" ? /* @__PURE__ */ i(
23921
+ O && x === "tags" ? /* @__PURE__ */ i(
23922
23922
  $o,
23923
23923
  {
23924
23924
  label: o,
@@ -23934,7 +23934,7 @@ const mo = (t) => {
23934
23934
  error: r,
23935
23935
  helperText: n || "",
23936
23936
  rightSlot: s,
23937
- valueName: H,
23937
+ valueName: V,
23938
23938
  idName: j
23939
23939
  }
23940
23940
  ) : (
@@ -23966,15 +23966,15 @@ const mo = (t) => {
23966
23966
  }
23967
23967
  )
23968
23968
  ),
23969
- O && v !== "tags" && e1.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: e1.map((Y) => Y ? /* @__PURE__ */ i(
23969
+ O && x !== "tags" && e1.length > 0 && /* @__PURE__ */ i("div", { className: "ui-mt-2 ui-flex ui-flex-wrap ui-gap-2", children: e1.map((Y) => Y ? /* @__PURE__ */ i(
23970
23970
  A9,
23971
23971
  {
23972
- label: Y[H],
23972
+ label: Y[V],
23973
23973
  color: "blue",
23974
23974
  size: "sm",
23975
23975
  onClick: () => r9(Y[j])
23976
23976
  },
23977
- Y[H]
23977
+ Y[V]
23978
23978
  ) : null) }),
23979
23979
  P9()
23980
23980
  ]
@@ -24001,100 +24001,100 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24001
24001
  disabled: s = !1,
24002
24002
  absolute: d = !1
24003
24003
  }) => {
24004
- const C = a0(), p = e || `popup-${C}`, [l, L] = q(!1), [h, g] = q({}), [m, f] = q(!1), H = i1(null), j = i1(null), I = i1(null), V = N(() => {
24005
- const x = H.current, S = j.current;
24006
- if (!x || !S) return;
24007
- const y = x.getBoundingClientRect(), O = S.getBoundingClientRect();
24004
+ const C = a0(), p = e || `popup-${C}`, [l, L] = q(!1), [h, g] = q({}), [m, f] = q(!1), V = i1(null), j = i1(null), I = i1(null), H = N(() => {
24005
+ const v = V.current, S = j.current;
24006
+ if (!v || !S) return;
24007
+ const y = v.getBoundingClientRect(), O = S.getBoundingClientRect();
24008
24008
  if (O.width === 0 || O.height === 0)
24009
24009
  return;
24010
- let w = 0, v = 0;
24010
+ let w = 0, x = 0;
24011
24011
  if (d) {
24012
- const A = x.offsetTop, _ = x.offsetLeft, G = x.offsetWidth, R = x.offsetHeight;
24012
+ const A = v.offsetTop, _ = v.offsetLeft, G = v.offsetWidth, R = v.offsetHeight;
24013
24013
  switch (t) {
24014
24014
  case "top":
24015
- w = A - O.height - o, v = _ + (G - O.width) / 2;
24015
+ w = A - O.height - o, x = _ + (G - O.width) / 2;
24016
24016
  break;
24017
24017
  case "bottom":
24018
24018
  case "bottom-center":
24019
- w = A + R + o, v = _ + (G - O.width) / 2;
24019
+ w = A + R + o, x = _ + (G - O.width) / 2;
24020
24020
  break;
24021
24021
  case "bottom-left":
24022
- w = A + R + o, v = _;
24022
+ w = A + R + o, x = _;
24023
24023
  break;
24024
24024
  case "bottom-right":
24025
- w = A + R + o, v = _ + G - O.width;
24025
+ w = A + R + o, x = _ + G - O.width;
24026
24026
  break;
24027
24027
  case "left":
24028
- w = A, v = _ - O.width - o;
24028
+ w = A, x = _ - O.width - o;
24029
24029
  break;
24030
24030
  case "right":
24031
- w = A, v = _ + G + o;
24031
+ w = A, x = _ + G + o;
24032
24032
  break;
24033
24033
  }
24034
24034
  } else {
24035
24035
  const A = window.innerWidth, _ = window.innerHeight, G = y.top, R = y.left, W = y.width, F = y.height;
24036
24036
  switch (t) {
24037
24037
  case "top":
24038
- w = G - O.height - o, v = R + (W - O.width) / 2;
24038
+ w = G - O.height - o, x = R + (W - O.width) / 2;
24039
24039
  break;
24040
24040
  case "bottom":
24041
24041
  case "bottom-center":
24042
- w = G + F + o, v = R + (W - O.width) / 2;
24042
+ w = G + F + o, x = R + (W - O.width) / 2;
24043
24043
  break;
24044
24044
  case "bottom-left":
24045
- w = G + F + o, v = R;
24045
+ w = G + F + o, x = R;
24046
24046
  break;
24047
24047
  case "bottom-right":
24048
- w = G + F + o, v = R + W - O.width;
24048
+ w = G + F + o, x = R + W - O.width;
24049
24049
  break;
24050
24050
  case "left":
24051
- w = G, v = R - O.width - o;
24051
+ w = G, x = R - O.width - o;
24052
24052
  break;
24053
24053
  case "right":
24054
- w = G, v = R + W + o;
24054
+ w = G, x = R + W + o;
24055
24055
  break;
24056
24056
  }
24057
- v < 0 && (v = 0), v + O.width > A && (v = A - O.width), w < 0 && (w = 0), w + O.height > _ && (w = _ - O.height), t === "bottom-right" && O.width > y.width && (v = y.right - O.width, v < 0 && (v = 0));
24057
+ x < 0 && (x = 0), x + O.width > A && (x = A - O.width), w < 0 && (w = 0), w + O.height > _ && (w = _ - O.height), t === "bottom-right" && O.width > y.width && (x = y.right - O.width, x < 0 && (x = 0));
24058
24058
  }
24059
24059
  const $ = 1e3, B = parseInt(p.replace(/\D/g, "")) || 0, M = $ + B % 100, k = {
24060
24060
  position: d ? "absolute" : "fixed",
24061
24061
  top: `${w}px`,
24062
- left: `${v}px`,
24062
+ left: `${x}px`,
24063
24063
  zIndex: M
24064
24064
  };
24065
24065
  g(k), f(!0);
24066
- }, [t, o, p, d]), Z = (x) => {
24067
- x && x.stopPropagation(), !s && (l ? b() : (No(p), g({}), f(!1), L(!0), o0.add(p), a == null || a()));
24066
+ }, [t, o, p, d]), Z = (v) => {
24067
+ v && v.stopPropagation(), !s && (l ? b() : (No(p), g({}), f(!1), L(!0), o0.add(p), a == null || a()));
24068
24068
  }, b = () => {
24069
24069
  L(!1), f(!1), o0.delete(p), c == null || c();
24070
24070
  };
24071
24071
  return K(() => {
24072
24072
  if (l) {
24073
- const x = () => {
24073
+ const v = () => {
24074
24074
  const S = j.current;
24075
24075
  if (S) {
24076
24076
  const y = S.getBoundingClientRect();
24077
- y.width > 0 && y.height > 0 && y.width !== 0 && y.height !== 0 ? V() : setTimeout(() => {
24078
- requestAnimationFrame(x);
24077
+ y.width > 0 && y.height > 0 && y.width !== 0 && y.height !== 0 ? H() : setTimeout(() => {
24078
+ requestAnimationFrame(v);
24079
24079
  }, 10);
24080
24080
  }
24081
24081
  };
24082
24082
  setTimeout(() => {
24083
- requestAnimationFrame(x);
24083
+ requestAnimationFrame(v);
24084
24084
  }, 0);
24085
24085
  }
24086
- }, [l, V]), K(() => {
24086
+ }, [l, H]), K(() => {
24087
24087
  if (!l || !m || d) return;
24088
- let x = !1;
24088
+ let v = !1;
24089
24089
  const S = () => {
24090
- x || (requestAnimationFrame(() => {
24091
- V(), x = !1;
24092
- }), x = !0);
24090
+ v || (requestAnimationFrame(() => {
24091
+ H(), v = !1;
24092
+ }), v = !0);
24093
24093
  };
24094
24094
  return window.addEventListener("scroll", S, { passive: !0 }), window.addEventListener("resize", S, { passive: !0 }), () => {
24095
24095
  window.removeEventListener("scroll", S), window.removeEventListener("resize", S);
24096
24096
  };
24097
- }, [l, m, d, V]), y9({
24097
+ }, [l, m, d, H]), y9({
24098
24098
  isActive: l,
24099
24099
  disabled: s,
24100
24100
  elementRef: j,
@@ -24107,7 +24107,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24107
24107
  isOpen: l,
24108
24108
  popupStyle: h,
24109
24109
  isPositioned: m,
24110
- triggerRef: H,
24110
+ triggerRef: V,
24111
24111
  popupRef: j,
24112
24112
  containerRef: I,
24113
24113
  popupUniqueId: p,
@@ -24140,18 +24140,18 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24140
24140
  textColor: g = "inherit",
24141
24141
  rounded: m = !1,
24142
24142
  slotLeft: f,
24143
- borderRadius: H = "sm",
24143
+ borderRadius: V = "sm",
24144
24144
  slotRight: j,
24145
24145
  icon: I,
24146
- colorIcon: V,
24146
+ colorIcon: H,
24147
24147
  tooltip: Z,
24148
24148
  tooltipPosition: b,
24149
- tooltipAlignment: x,
24149
+ tooltipAlignment: v,
24150
24150
  tooltipColor: S,
24151
24151
  tooltipDelay: y,
24152
24152
  absolute: O = !1,
24153
24153
  closeOnClick: w = !0,
24154
- buttonClassName: v,
24154
+ buttonClassName: x,
24155
24155
  containerClassName: $,
24156
24156
  buttonTransition: B = !0,
24157
24157
  buttonStyle: M,
@@ -24206,7 +24206,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24206
24206
  opacity: F ? 1 : 0,
24207
24207
  transition: "opacity 0.1s ease-out",
24208
24208
  ...W
24209
- }, E = Ao(H), Q = /* @__PURE__ */ i(
24209
+ }, E = Ao(V), Q = /* @__PURE__ */ i(
24210
24210
  "div",
24211
24211
  {
24212
24212
  ref: T,
@@ -24233,7 +24233,7 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24233
24233
  /* @__PURE__ */ i("div", { ref: P, className: U("ui-w-fit", $), children: /* @__PURE__ */ i(
24234
24234
  b1,
24235
24235
  {
24236
- className: v,
24236
+ className: x,
24237
24237
  onClick: p1,
24238
24238
  disabled: p,
24239
24239
  variant: l,
@@ -24243,11 +24243,11 @@ const o0 = /* @__PURE__ */ new Set(), No = (t) => {
24243
24243
  icon: I,
24244
24244
  slotLeft: f,
24245
24245
  slotRight: j,
24246
- colorIcon: V,
24246
+ colorIcon: H,
24247
24247
  textColor: g,
24248
24248
  tooltip: Z,
24249
24249
  tooltipPosition: b,
24250
- tooltipAlignment: x,
24250
+ tooltipAlignment: v,
24251
24251
  tooltipColor: S,
24252
24252
  tooltipDelay: y,
24253
24253
  transition: B,
@@ -25841,12 +25841,12 @@ const s9 = "emoji-picker-recent", Fo = ({
25841
25841
  icon: g = "FacebookFill",
25842
25842
  slotLeft: m,
25843
25843
  slotRight: f,
25844
- borderRadius: H = "md",
25844
+ borderRadius: V = "md",
25845
25845
  disabled: j = !1,
25846
25846
  buttonClassName: I,
25847
- tooltip: V
25847
+ tooltip: H
25848
25848
  }) => {
25849
- const [Z, b] = q("recent"), [x, S] = q(""), [y, O] = q([]), [w, v] = q(C || ""), $ = i1(null), B = i1({}), M = i1(!1), k = i1(null);
25849
+ const [Z, b] = q("recent"), [v, S] = q(""), [y, O] = q([]), [w, x] = q(C || ""), $ = i1(null), B = i1({}), M = i1(!1), k = i1(null);
25850
25850
  K(() => {
25851
25851
  if (!M.current)
25852
25852
  if (M.current = !0, a && a.length > 0)
@@ -25871,7 +25871,7 @@ const s9 = "emoji-picker-recent", Fo = ({
25871
25871
  o
25872
25872
  );
25873
25873
  O(P), A(P), t == null || t(F), d && k.current && k.current.close();
25874
- }, G = m1(() => !x || x.trim() === "" ? [
25874
+ }, G = h1(() => !v || v.trim() === "" ? [
25875
25875
  {
25876
25876
  ...R1[0],
25877
25877
  emojis: y
@@ -25879,8 +25879,8 @@ const s9 = "emoji-picker-recent", Fo = ({
25879
25879
  ...R1.slice(1)
25880
25880
  ] : R1.slice(1).map((T) => ({
25881
25881
  ...T,
25882
- emojis: Po(x, T.emojis)
25883
- })).filter((T) => T.emojis.length > 0), [x, y]), R = (F) => {
25882
+ emojis: Po(v, T.emojis)
25883
+ })).filter((T) => T.emojis.length > 0), [v, y]), R = (F) => {
25884
25884
  const P = B.current[F];
25885
25885
  if (P && $.current) {
25886
25886
  const T = $.current, z = P.offsetTop - T.offsetTop;
@@ -25912,10 +25912,10 @@ const s9 = "emoji-picker-recent", Fo = ({
25912
25912
  size: h,
25913
25913
  icon: "FaceSmileOutlined",
25914
25914
  clickable: !1,
25915
- borderRadius: H,
25915
+ borderRadius: V,
25916
25916
  disabled: j,
25917
25917
  buttonClassName: I,
25918
- tooltip: V,
25918
+ tooltip: H,
25919
25919
  closeOnClick: !1,
25920
25920
  children: /* @__PURE__ */ u(
25921
25921
  "div",
@@ -25944,7 +25944,7 @@ const s9 = "emoji-picker-recent", Fo = ({
25944
25944
  {
25945
25945
  leftSlot: "SearchOutlined",
25946
25946
  placeholder: s,
25947
- value: x,
25947
+ value: v,
25948
25948
  onValueChange: S,
25949
25949
  fullWidth: !0,
25950
25950
  size: "sm"
@@ -26016,7 +26016,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26016
26016
  }, Do = ({
26017
26017
  value: t,
26018
26018
  onChange: o,
26019
- placeholder: r = "Placeholder",
26019
+ placeholder: r = "",
26020
26020
  className: n = "",
26021
26021
  containerClassName: e = "",
26022
26022
  leftSlot: a = "",
@@ -26024,80 +26024,87 @@ const s9 = "emoji-picker-recent", Fo = ({
26024
26024
  disabled: s = !1,
26025
26025
  error: d = "",
26026
26026
  helperText: C = "",
26027
- maxLength: p = 0
26027
+ maxLength: p = 0,
26028
+ label: l = "Que hace?"
26028
26029
  }) => {
26029
- const { isFocused: l, setIsFocused: L, count: h, handleChange: g, handlePaste: m } = Eo({
26030
+ const { isFocused: L, setIsFocused: h, count: g, handleChange: m, handlePaste: f } = Eo({
26030
26031
  maxLength: p,
26031
26032
  onChange: o,
26032
26033
  value: t
26033
- });
26034
- return /* @__PURE__ */ u(
26035
- "div",
26036
- {
26037
- className: U(
26038
- "ui-relative ui-flex ui-h-full ui-min-h-5 ui-w-full ui-flex-col",
26039
- e
26040
- ),
26041
- children: [
26042
- a && /* @__PURE__ */ i(
26043
- j1,
26044
- {
26045
- slot: a,
26046
- className: "ui-absolute ui-left-2 ui-top-2",
26047
- colorIcon: s ? "neutral_soft" : d ? "red_soft" : l ? "blue" : "neutral"
26048
- }
26049
- ),
26050
- /* @__PURE__ */ i(
26051
- "textarea",
26052
- {
26053
- placeholder: r,
26054
- onFocus: () => L(!0),
26055
- value: t || "",
26056
- onChange: g,
26057
- onPaste: m,
26058
- onBlur: () => L(!1),
26059
- disabled: s,
26060
- rows: 1,
26061
- className: U(
26062
- "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",
26063
- p > 0 ? "ui-pb-6.5" : "ui-pb-2",
26064
- a ? "ui-pl-7" : "ui-pl-2",
26065
- c ? "ui-pr-7" : "ui-pr-2",
26066
- s ? "ui-border-neutral-100 ui-text-neutral-500" : d ? "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",
26067
- n
26068
- )
26069
- }
26070
- ),
26071
- c && /* @__PURE__ */ i(
26072
- j1,
26073
- {
26074
- slot: c,
26075
- className: "ui-absolute ui-right-2 ui-top-2",
26076
- colorIcon: s ? "neutral_soft" : d ? "red_soft" : l ? "blue" : "neutral"
26077
- }
26078
- ),
26079
- p > 0 && /* @__PURE__ */ u(
26080
- "div",
26081
- {
26082
- className: U(
26083
- "ui-absolute ui-left-2 ui-flex ui-w-full ui-items-center ui-gap-2 ui-px-2",
26084
- C && d ? "ui-bottom-[50px]" : C || d ? "ui-bottom-[29px]" : "ui-bottom-2"
26085
- ),
26086
- children: [
26087
- /* @__PURE__ */ i(L1, { name: "FileOutlined", color: "neutral_soft", size: "sm" }),
26088
- /* @__PURE__ */ u("p", { className: "ui-text-sm ui-leading-none ui-text-neutral-500", children: [
26089
- h,
26090
- "/",
26091
- p
26092
- ] })
26093
- ]
26094
- }
26034
+ }), V = h1(() => {
26035
+ const j = "ui-text-sm ui-font-bold";
26036
+ return d ? `${j} ui-text-red-500` : `${j} ui-text-neutral-900`;
26037
+ }, [d]);
26038
+ return /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-flex-col ui-gap-1 ui-w-fit", children: [
26039
+ l && /* @__PURE__ */ i("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: l && /* @__PURE__ */ i("label", { className: V, children: l }) }),
26040
+ /* @__PURE__ */ u(
26041
+ "div",
26042
+ {
26043
+ className: U(
26044
+ "ui-relative ui-flex ui-h-full ui-min-h-5 ui-w-full ui-flex-col",
26045
+ e
26095
26046
  ),
26096
- C && /* @__PURE__ */ i("p", { className: "ui-text-sm ui-text-neutral-500", children: C }),
26097
- d && /* @__PURE__ */ i("p", { className: "ui-text-sm ui-text-red-500", children: d })
26098
- ]
26099
- }
26100
- );
26047
+ children: [
26048
+ a && /* @__PURE__ */ i(
26049
+ j1,
26050
+ {
26051
+ slot: a,
26052
+ className: "ui-absolute ui-left-2 ui-top-2",
26053
+ colorIcon: s ? "neutral_soft" : d ? "red_soft" : L ? "blue" : "neutral"
26054
+ }
26055
+ ),
26056
+ /* @__PURE__ */ i(
26057
+ "textarea",
26058
+ {
26059
+ placeholder: r,
26060
+ onFocus: () => h(!0),
26061
+ value: t || "",
26062
+ onChange: m,
26063
+ onPaste: f,
26064
+ onBlur: () => h(!1),
26065
+ disabled: s,
26066
+ rows: 1,
26067
+ className: U(
26068
+ "ui-textarea ui-min-h-23 ui-w-full ui-rounded-sm ui-border-1 ui-border-neutral-100 ui-p-2 ui-pt-1.5 ui-text-sm ui-text-neutral-900 placeholder:ui-text-neutral-500 focus:ui-outline-none",
26069
+ p > 0 ? "ui-pb-6.5" : "ui-pb-2",
26070
+ a ? "ui-pl-7" : "ui-pl-2",
26071
+ c ? "ui-pr-7" : "ui-pr-2",
26072
+ s ? "ui-border-neutral-100 ui-text-neutral-500" : d ? "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",
26073
+ n
26074
+ )
26075
+ }
26076
+ ),
26077
+ c && /* @__PURE__ */ i(
26078
+ j1,
26079
+ {
26080
+ slot: c,
26081
+ className: "ui-absolute ui-right-2 ui-top-2",
26082
+ colorIcon: s ? "neutral_soft" : d ? "red_soft" : L ? "blue" : "neutral"
26083
+ }
26084
+ ),
26085
+ p > 0 && /* @__PURE__ */ u(
26086
+ "div",
26087
+ {
26088
+ className: U(
26089
+ "ui-absolute ui-left-2 ui-flex ui-w-full ui-items-center ui-gap-2 ui-px-2",
26090
+ C && d ? "ui-bottom-[50px]" : C || d ? "ui-bottom-[29px]" : "ui-bottom-2"
26091
+ ),
26092
+ children: [
26093
+ /* @__PURE__ */ i(L1, { name: "FileOutlined", color: "neutral_soft", size: "sm" }),
26094
+ /* @__PURE__ */ u("p", { className: "ui-text-sm ui-leading-none ui-text-neutral-500", children: [
26095
+ g,
26096
+ "/",
26097
+ p
26098
+ ] })
26099
+ ]
26100
+ }
26101
+ ),
26102
+ C && /* @__PURE__ */ i("p", { className: "ui-text-sm ui-text-neutral-500", children: C }),
26103
+ d && /* @__PURE__ */ i("p", { className: "ui-text-sm ui-text-red-500", children: d })
26104
+ ]
26105
+ }
26106
+ )
26107
+ ] });
26101
26108
  }, Z1 = {
26102
26109
  DROPDOWN: "dropdown",
26103
26110
  MULTIPLE: "multiple",
@@ -26160,20 +26167,20 @@ const s9 = "emoji-picker-recent", Fo = ({
26160
26167
  }), o == null || o();
26161
26168
  }, [t, a, o]), p = N(
26162
26169
  (h, g, m) => {
26163
- const f = m.keyName || h.toLowerCase(), H = {
26170
+ const f = m.keyName || h.toLowerCase(), V = {
26164
26171
  ...c,
26165
26172
  [f]: g
26166
26173
  };
26167
- s(H), m.onValueChange && m.onValueChange({
26174
+ s(V), m.onValueChange && m.onValueChange({
26168
26175
  current: g,
26169
- filters: H
26176
+ filters: V
26170
26177
  });
26171
26178
  },
26172
26179
  [c]
26173
26180
  ), l = N(() => {
26174
26181
  r == null || r(c);
26175
26182
  }, [r, c]);
26176
- return m1(
26183
+ return h1(
26177
26184
  () => ({
26178
26185
  filterStates: c,
26179
26186
  handleFilterChange: p,
@@ -26230,15 +26237,15 @@ const s9 = "emoji-picker-recent", Fo = ({
26230
26237
  ] }),
26231
26238
  /* @__PURE__ */ i(G1, {}),
26232
26239
  /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-col ui-gap-y-2 ui-p-4 ui-pt-3", children: [
26233
- t.map((f, H) => {
26234
- const j = f.keyName || f.label.toLowerCase(), I = `filter-${H}-${f.type}-${f.label}`;
26240
+ t.map((f, V) => {
26241
+ const j = f.keyName || f.label.toLowerCase(), I = `filter-${V}-${f.type}-${f.label}`;
26235
26242
  return f.type === "dropdown" ? /* @__PURE__ */ i(
26236
26243
  F1,
26237
26244
  {
26238
26245
  fullWidth: !0,
26239
26246
  label: f.label,
26240
26247
  options: f.options || [],
26241
- onValueChange: (V) => p(f.label, V, f),
26248
+ onValueChange: (H) => p(f.label, H, f),
26242
26249
  value: C[j] || "",
26243
26250
  placeholder: f.placeholder,
26244
26251
  absolute: !1,
@@ -26251,7 +26258,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26251
26258
  label: f.label,
26252
26259
  options: f.options || [],
26253
26260
  size: "md",
26254
- onValueChange: (V) => p(f.label, V, f),
26261
+ onValueChange: (H) => p(f.label, H, f),
26255
26262
  value: C[j] || "",
26256
26263
  placeholder: f.placeholder,
26257
26264
  multiple: !0,
@@ -26265,7 +26272,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26265
26272
  label: f.label,
26266
26273
  options: f.options,
26267
26274
  size: "md",
26268
- onValueChange: (V) => p(f.label, V, f),
26275
+ onValueChange: (H) => p(f.label, H, f),
26269
26276
  value: C[j] || "",
26270
26277
  placeholder: f.placeholder,
26271
26278
  selectedItemsDisplay: "tags",
@@ -26280,7 +26287,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26280
26287
  {
26281
26288
  label: f.label,
26282
26289
  value: C[j] || "",
26283
- onChange: (V) => p(f.label, V.target.value, f)
26290
+ onChange: (H) => p(f.label, H.target.value, f)
26284
26291
  },
26285
26292
  I
26286
26293
  ) : f.type === "date" ? /* @__PURE__ */ i(
@@ -26289,7 +26296,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26289
26296
  closeOnSelect: !0,
26290
26297
  label: f.label,
26291
26298
  selectedDate: C[j] || null,
26292
- onDateChange: (V) => p(f.label, V, f),
26299
+ onDateChange: (H) => p(f.label, H, f),
26293
26300
  placeholder: f.placeholder
26294
26301
  },
26295
26302
  I
@@ -26299,7 +26306,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26299
26306
  label: f.label,
26300
26307
  mode: "range",
26301
26308
  selectedRange: C[j] || { start: null, end: null },
26302
- onRangeChange: (V) => p(f.label, V, f),
26309
+ onRangeChange: (H) => p(f.label, H, f),
26303
26310
  placeholder: f.placeholder
26304
26311
  },
26305
26312
  I
@@ -26307,7 +26314,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26307
26314
  Do,
26308
26315
  {
26309
26316
  value: C[j] || "",
26310
- onChange: (V) => p(f.label, V, f)
26317
+ onChange: (H) => p(f.label, H, f)
26311
26318
  },
26312
26319
  I
26313
26320
  ) : null;
@@ -26319,21 +26326,21 @@ const s9 = "emoji-picker-recent", Fo = ({
26319
26326
  );
26320
26327
  }, _o = () => {
26321
26328
  const t = i1(null), [o, r] = q(!1), [n, e] = q(/* @__PURE__ */ new Set()), a = N(() => {
26322
- const b = /* @__PURE__ */ new Set(), x = window.getSelection();
26323
- if (!x || x.rangeCount === 0) {
26329
+ const b = /* @__PURE__ */ new Set(), v = window.getSelection();
26330
+ if (!v || v.rangeCount === 0) {
26324
26331
  e(b);
26325
26332
  return;
26326
26333
  }
26327
- let y = x.getRangeAt(0).commonAncestorContainer;
26334
+ let y = v.getRangeAt(0).commonAncestorContainer;
26328
26335
  for (; y && y !== t.current; ) {
26329
26336
  if (y.nodeType === Node.ELEMENT_NODE) {
26330
- const O = y, w = O.tagName.toLowerCase(), v = window.getComputedStyle(O);
26331
- (w === "strong" || w === "b") && b.add("bold"), (w === "em" || w === "i") && b.add("italic"), w === "u" && b.add("underline"), (w === "s" || w === "strike" || w === "del") && b.add("strikethrough"), w === "ul" && b.add("ul"), w === "ol" && b.add("ol"), parseInt(v.fontWeight) >= 700 && b.add("bold"), v.fontStyle === "italic" && b.add("italic"), v.textDecoration.includes("underline") && b.add("underline"), v.textDecoration.includes("line-through") && b.add("strikethrough");
26337
+ const O = y, w = O.tagName.toLowerCase(), x = window.getComputedStyle(O);
26338
+ (w === "strong" || w === "b") && b.add("bold"), (w === "em" || w === "i") && b.add("italic"), w === "u" && b.add("underline"), (w === "s" || w === "strike" || w === "del") && b.add("strikethrough"), w === "ul" && b.add("ul"), w === "ol" && b.add("ol"), parseInt(x.fontWeight) >= 700 && b.add("bold"), x.fontStyle === "italic" && b.add("italic"), x.textDecoration.includes("underline") && b.add("underline"), x.textDecoration.includes("line-through") && b.add("strikethrough");
26332
26339
  }
26333
26340
  y = y.parentNode;
26334
26341
  }
26335
26342
  e(b);
26336
- }, []), c = N((b, x) => {
26343
+ }, []), c = N((b, v) => {
26337
26344
  var w;
26338
26345
  const S = window.getSelection();
26339
26346
  if (!S || S.rangeCount === 0) return;
@@ -26341,7 +26348,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26341
26348
  if (y.collapsed)
26342
26349
  return;
26343
26350
  const O = document.createElement(b);
26344
- x && Object.assign(O.style, x);
26351
+ v && Object.assign(O.style, v);
26345
26352
  try {
26346
26353
  y.surroundContents(O);
26347
26354
  } catch {
@@ -26351,17 +26358,17 @@ const s9 = "emoji-picker-recent", Fo = ({
26351
26358
  S.removeAllRanges(), a(), (w = t.current) == null || w.focus();
26352
26359
  }, [a]), s = N((b) => {
26353
26360
  var O;
26354
- const x = window.getSelection();
26355
- if (!x || x.rangeCount === 0) return;
26356
- let y = x.getRangeAt(0).commonAncestorContainer;
26361
+ const v = window.getSelection();
26362
+ if (!v || v.rangeCount === 0) return;
26363
+ let y = v.getRangeAt(0).commonAncestorContainer;
26357
26364
  for (; y && y !== t.current; ) {
26358
26365
  if (y.nodeType === Node.ELEMENT_NODE) {
26359
26366
  const w = y;
26360
26367
  if (w.tagName.toLowerCase() === b.toLowerCase()) {
26361
- const v = w.parentNode;
26368
+ const x = w.parentNode;
26362
26369
  for (; w.firstChild; )
26363
- v == null || v.insertBefore(w.firstChild, w);
26364
- v == null || v.removeChild(w);
26370
+ x == null || x.insertBefore(w.firstChild, w);
26371
+ x == null || x.removeChild(w);
26365
26372
  break;
26366
26373
  }
26367
26374
  }
@@ -26369,16 +26376,16 @@ const s9 = "emoji-picker-recent", Fo = ({
26369
26376
  }
26370
26377
  a(), (O = t.current) == null || O.focus();
26371
26378
  }, [a]), d = N((b) => {
26372
- const x = window.getSelection();
26373
- if (!x || x.rangeCount === 0) return !1;
26374
- let y = x.getRangeAt(0).commonAncestorContainer;
26379
+ const v = window.getSelection();
26380
+ if (!v || v.rangeCount === 0) return !1;
26381
+ let y = v.getRangeAt(0).commonAncestorContainer;
26375
26382
  for (; y && y !== t.current; ) {
26376
26383
  if (y.nodeType === Node.ELEMENT_NODE) {
26377
26384
  const O = y, w = O.tagName.toLowerCase();
26378
26385
  if (b === "bold" && (w === "strong" || w === "b") || b === "italic" && (w === "em" || w === "i") || b === "underline" && w === "u" || b === "strikethrough" && (w === "s" || w === "strike" || w === "del") || b === "ul" && w === "ul" || b === "ol" && w === "ol") return !0;
26379
26386
  if (b === "bold") {
26380
- const v = window.getComputedStyle(O);
26381
- if (parseInt(v.fontWeight) >= 700) return !0;
26387
+ const x = window.getComputedStyle(O);
26388
+ if (parseInt(x.fontWeight) >= 700) return !0;
26382
26389
  }
26383
26390
  if (b === "italic" && window.getComputedStyle(O).fontStyle === "italic" || b === "underline" && window.getComputedStyle(O).textDecoration.includes("underline") || b === "strikethrough" && window.getComputedStyle(O).textDecoration.includes("line-through"))
26384
26391
  return !0;
@@ -26386,7 +26393,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26386
26393
  y = y.parentNode;
26387
26394
  }
26388
26395
  return !1;
26389
- }, []), C = N((b, x) => {
26396
+ }, []), C = N((b, v) => {
26390
26397
  var O;
26391
26398
  const y = {
26392
26399
  bold: "strong",
@@ -26394,13 +26401,13 @@ const s9 = "emoji-picker-recent", Fo = ({
26394
26401
  underline: "u",
26395
26402
  strikeThrough: "s"
26396
26403
  }[b];
26397
- y ? d(b === "strikeThrough" ? "strikethrough" : b) ? s(y) : c(y) : b === "insertUnorderedList" ? l("ul") : b === "insertOrderedList" ? l("ol") : b === "createLink" && x ? p(x) : document.execCommand(b, !1, x), a(), (O = t.current) == null || O.focus();
26404
+ y ? d(b === "strikeThrough" ? "strikethrough" : b) ? s(y) : c(y) : b === "insertUnorderedList" ? l("ul") : b === "insertOrderedList" ? l("ol") : b === "createLink" && v ? p(v) : document.execCommand(b, !1, v), a(), (O = t.current) == null || O.focus();
26398
26405
  }, [c, s, d, a]), p = N((b) => {
26399
- var v;
26406
+ var x;
26400
26407
  if (!t.current) return;
26401
- const x = window.getSelection();
26402
- if (!x || x.rangeCount === 0) return;
26403
- const S = x.getRangeAt(0);
26408
+ const v = window.getSelection();
26409
+ if (!v || v.rangeCount === 0) return;
26410
+ const S = v.getRangeAt(0);
26404
26411
  if (S.collapsed) {
26405
26412
  alert("Por favor selecciona el texto que quieres convertir en enlace");
26406
26413
  return;
@@ -26417,13 +26424,13 @@ const s9 = "emoji-picker-recent", Fo = ({
26417
26424
  O.appendChild(B), S.insertNode(O);
26418
26425
  }
26419
26426
  const w = document.createRange();
26420
- w.setStartAfter(O), w.collapse(!0), x.removeAllRanges(), x.addRange(w), (v = t.current) == null || v.focus(), a();
26427
+ w.setStartAfter(O), w.collapse(!0), v.removeAllRanges(), v.addRange(w), (x = t.current) == null || x.focus(), a();
26421
26428
  }, [a]), l = N((b) => {
26422
- var w, v, $, B;
26429
+ var w, x, $, B;
26423
26430
  if (!t.current) return;
26424
- const x = window.getSelection();
26425
- if (!x) return;
26426
- let S = x.rangeCount > 0 ? x.getRangeAt(0).commonAncestorContainer : t.current, y = null, O = S;
26431
+ const v = window.getSelection();
26432
+ if (!v) return;
26433
+ let S = v.rangeCount > 0 ? v.getRangeAt(0).commonAncestorContainer : t.current, y = null, O = S;
26427
26434
  for (; O && O !== t.current; ) {
26428
26435
  if (O.nodeType === Node.ELEMENT_NODE) {
26429
26436
  const M = O, k = M.tagName.toLowerCase();
@@ -26447,22 +26454,22 @@ const s9 = "emoji-picker-recent", Fo = ({
26447
26454
  }
26448
26455
  else {
26449
26456
  const M = document.createElement(b), k = document.createElement("li");
26450
- if (x.rangeCount > 0) {
26451
- const A = x.getRangeAt(0);
26457
+ if (v.rangeCount > 0) {
26458
+ const A = v.getRangeAt(0);
26452
26459
  if (A.collapsed) {
26453
- k.innerHTML = "<br>", M.appendChild(k), t.current.childNodes.length === 0 || ((v = t.current.textContent) == null ? void 0 : v.trim()) === "" ? (t.current.innerHTML = "", t.current.appendChild(M)) : A.insertNode(M);
26460
+ k.innerHTML = "<br>", M.appendChild(k), t.current.childNodes.length === 0 || ((x = t.current.textContent) == null ? void 0 : x.trim()) === "" ? (t.current.innerHTML = "", t.current.appendChild(M)) : A.insertNode(M);
26454
26461
  const _ = document.createRange();
26455
- _.setStart(k, 0), _.collapse(!0), x.removeAllRanges(), x.addRange(_);
26462
+ _.setStart(k, 0), _.collapse(!0), v.removeAllRanges(), v.addRange(_);
26456
26463
  } else {
26457
26464
  const _ = A.extractContents();
26458
26465
  (($ = _.textContent) == null ? void 0 : $.trim()) === "" ? k.innerHTML = "<br>" : k.appendChild(_), M.appendChild(k), A.insertNode(M);
26459
26466
  const G = document.createRange();
26460
- G.selectNodeContents(k), G.collapse(!1), x.removeAllRanges(), x.addRange(G);
26467
+ G.selectNodeContents(k), G.collapse(!1), v.removeAllRanges(), v.addRange(G);
26461
26468
  }
26462
26469
  } else {
26463
26470
  k.innerHTML = "<br>", M.appendChild(k), t.current.appendChild(M);
26464
26471
  const A = document.createRange();
26465
- A.setStart(k, 0), A.collapse(!0), x.removeAllRanges(), x.addRange(A);
26472
+ A.setStart(k, 0), A.collapse(!0), v.removeAllRanges(), v.addRange(A);
26466
26473
  }
26467
26474
  }
26468
26475
  setTimeout(() => {
@@ -26479,35 +26486,35 @@ const s9 = "emoji-picker-recent", Fo = ({
26479
26486
  const g = N((b) => {
26480
26487
  if (!t.current) return;
26481
26488
  t.current.focus();
26482
- const x = window.getSelection();
26483
- if (!x) return;
26489
+ const v = window.getSelection();
26490
+ if (!v) return;
26484
26491
  let S;
26485
- x.rangeCount > 0 ? (S = x.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(t.current), S.collapse(!1), x.removeAllRanges(), x.addRange(S));
26492
+ v.rangeCount > 0 ? (S = v.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(t.current), S.collapse(!1), v.removeAllRanges(), v.addRange(S));
26486
26493
  const y = document.createTextNode(b);
26487
- S.insertNode(y), S.setStartAfter(y), S.collapse(!0), x.removeAllRanges(), x.addRange(S);
26494
+ S.insertNode(y), S.setStartAfter(y), S.collapse(!0), v.removeAllRanges(), v.addRange(S);
26488
26495
  }, []), m = N((b) => {
26489
26496
  if (!t.current) return;
26490
26497
  t.current.focus();
26491
- const x = window.getSelection();
26492
- if (!x) return;
26498
+ const v = window.getSelection();
26499
+ if (!v) return;
26493
26500
  let S;
26494
- x.rangeCount > 0 ? (S = x.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(t.current), S.collapse(!1), x.removeAllRanges(), x.addRange(S));
26501
+ v.rangeCount > 0 ? (S = v.getRangeAt(0), S.deleteContents()) : (S = document.createRange(), S.selectNodeContents(t.current), S.collapse(!1), v.removeAllRanges(), v.addRange(S));
26495
26502
  const y = S.createContextualFragment(b);
26496
- S.insertNode(y), S.collapse(!1), x.removeAllRanges(), x.addRange(S);
26503
+ S.insertNode(y), S.collapse(!1), v.removeAllRanges(), v.addRange(S);
26497
26504
  }, []), f = N((b) => {
26498
26505
  g(b);
26499
- }, [g]), H = N((b) => {
26506
+ }, [g]), V = N((b) => {
26500
26507
  m(`<span contenteditable="false" class="mention">@${b}</span>&nbsp;`);
26501
26508
  }, [m]), j = N(() => {
26502
26509
  var b;
26503
26510
  return ((b = t.current) == null ? void 0 : b.innerHTML) || "";
26504
26511
  }, []), I = N((b) => {
26505
26512
  t.current && (t.current.innerHTML = b);
26506
- }, []), V = N(() => {
26513
+ }, []), H = N(() => {
26507
26514
  t.current && (t.current.innerHTML = "");
26508
26515
  }, []), Z = N(() => {
26509
- var x;
26510
- return (((x = t.current) == null ? void 0 : x.textContent) || "").trim().length === 0;
26516
+ var v;
26517
+ return (((v = t.current) == null ? void 0 : v.textContent) || "").trim().length === 0;
26511
26518
  }, []);
26512
26519
  return {
26513
26520
  editorRef: t,
@@ -26518,10 +26525,10 @@ const s9 = "emoji-picker-recent", Fo = ({
26518
26525
  updateActiveFormats: a,
26519
26526
  handleEditorClick: L,
26520
26527
  insertEmoji: f,
26521
- insertMention: H,
26528
+ insertMention: V,
26522
26529
  getHTML: j,
26523
26530
  setHTML: I,
26524
- clear: V,
26531
+ clear: H,
26525
26532
  isEmpty: Z
26526
26533
  };
26527
26534
  }, S1 = ({ isActive: t, onClick: o, disabled: r, children: n, tooltip: e }) => /* @__PURE__ */ i(
@@ -26559,27 +26566,27 @@ const s9 = "emoji-picker-recent", Fo = ({
26559
26566
  maxHeight: f = 300
26560
26567
  }) => {
26561
26568
  const {
26562
- editorRef: H,
26569
+ editorRef: V,
26563
26570
  isFocused: j,
26564
26571
  setIsFocused: I,
26565
- activeFormats: V,
26572
+ activeFormats: H,
26566
26573
  execCommand: Z,
26567
26574
  handleEditorClick: b,
26568
- insertEmoji: x,
26575
+ insertEmoji: v,
26569
26576
  getHTML: S,
26570
26577
  setHTML: y,
26571
26578
  isEmpty: O
26572
- } = _o(), [w, v] = q(!0);
26579
+ } = _o(), [w, x] = q(!0);
26573
26580
  K(() => {
26574
- t !== void 0 && H.current && S() !== t && y(t);
26581
+ t !== void 0 && V.current && S() !== t && y(t);
26575
26582
  }, [t, S, y]), K(() => {
26576
- o && H.current && !H.current.innerHTML && y(o);
26583
+ o && V.current && !V.current.innerHTML && y(o);
26577
26584
  }, [o, y]), K(() => {
26578
- g && H.current && H.current.focus();
26585
+ g && V.current && V.current.focus();
26579
26586
  }, [g]);
26580
26587
  const $ = () => {
26581
26588
  const A = S();
26582
- r == null || r(A), v(O());
26589
+ r == null || r(A), x(O());
26583
26590
  }, B = () => {
26584
26591
  !O() && !e && (l == null || l());
26585
26592
  }, M = () => {
@@ -26589,7 +26596,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26589
26596
  const G = (R = _.target.files) == null ? void 0 : R[0];
26590
26597
  G && (s == null || s(G));
26591
26598
  }, A.click();
26592
- }, k = (A) => V.has(A);
26599
+ }, k = (A) => H.has(A);
26593
26600
  return /* @__PURE__ */ i(
26594
26601
  "div",
26595
26602
  {
@@ -26683,7 +26690,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26683
26690
  /* @__PURE__ */ i(
26684
26691
  "div",
26685
26692
  {
26686
- ref: H,
26693
+ ref: V,
26687
26694
  contentEditable: !e,
26688
26695
  className: U(
26689
26696
  "ui-w-full ui-overflow-y-auto ui-px-2 ui-py-1 ui-text-sm ui-text-neutral-700 ui-outline-none",
@@ -26728,7 +26735,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26728
26735
  color: "white",
26729
26736
  size: "lg",
26730
26737
  position: "bottom-left",
26731
- onEmojiSelect: x,
26738
+ onEmojiSelect: v,
26732
26739
  closeOnSelect: !0,
26733
26740
  width: 330,
26734
26741
  height: 300
@@ -26740,7 +26747,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26740
26747
  type: "button",
26741
26748
  onClick: () => {
26742
26749
  const A = prompt("Mencionar a:");
26743
- A && (x(`@${A} `), C == null || C(A));
26750
+ A && (v(`@${A} `), C == null || C(A));
26744
26751
  },
26745
26752
  disabled: e,
26746
26753
  className: "ui-flex ui-h-5 ui-w-5 ui-items-center ui-justify-center ui-rounded ui-text-neutral-500 ui-transition-colors hover:ui-bg-neutral-50 disabled:ui-opacity-50",
@@ -26828,7 +26835,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26828
26835
  goToNext: g,
26829
26836
  goToImage: m,
26830
26837
  hasPrevious: f,
26831
- hasNext: H
26838
+ hasNext: V
26832
26839
  } = Uo({ images: t, initialIndex: o, onClose: n });
26833
26840
  if (K(() => (r ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
26834
26841
  document.body.style.overflow = "";
@@ -26889,7 +26896,7 @@ const s9 = "emoji-picker-recent", Fo = ({
26889
26896
  }
26890
26897
  ) })
26891
26898
  ] }),
26892
- s && H && /* @__PURE__ */ i(
26899
+ s && V && /* @__PURE__ */ i(
26893
26900
  o1,
26894
26901
  {
26895
26902
  variant: "button",
@@ -26907,13 +26914,13 @@ const s9 = "emoji-picker-recent", Fo = ({
26907
26914
  )
26908
26915
  ] }),
26909
26916
  a && L.title && /* @__PURE__ */ i("div", { className: "ui-text-center ui-text-neutral-900 ui-text-lg ui-font-medium ui-px-4 ui-py-2 ui-bg-black/50 ui-rounded-lg ui-backdrop-blur-sm", children: L.title }),
26910
- c && t.length > 1 && /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-gap-2 ui-px-4 ui-py-3 ui-bg-black/50 ui-rounded-full ui-backdrop-blur-sm", children: t.map((I, V) => /* @__PURE__ */ i(
26917
+ c && t.length > 1 && /* @__PURE__ */ i("div", { className: "ui-flex ui-items-center ui-gap-2 ui-px-4 ui-py-3 ui-bg-black/50 ui-rounded-full ui-backdrop-blur-sm", children: t.map((I, H) => /* @__PURE__ */ i(
26911
26918
  "button",
26912
26919
  {
26913
- onClick: () => m(V),
26914
- className: `ui-w-2.5 ui-h-2.5 ui-rounded-full ui-transition-all ui-duration-300 ui-border-1 ${V === l ? "ui-bg-blue-500 ui-border-white" : "ui-bg-white ui-border-neutral-100 hover:ui-bg-blue-500 hover:ui-border-white"}`,
26915
- "aria-label": `Ir a imagen ${V + 1}`,
26916
- title: I.title || `Imagen ${V + 1}`
26920
+ onClick: () => m(H),
26921
+ className: `ui-w-2.5 ui-h-2.5 ui-rounded-full ui-transition-all ui-duration-300 ui-border-1 ${H === l ? "ui-bg-blue-500 ui-border-white" : "ui-bg-white ui-border-neutral-100 hover:ui-bg-blue-500 hover:ui-border-white"}`,
26922
+ "aria-label": `Ir a imagen ${H + 1}`,
26923
+ title: I.title || `Imagen ${H + 1}`
26917
26924
  },
26918
26925
  I.id
26919
26926
  )) }),
@@ -26957,17 +26964,17 @@ const s9 = "emoji-picker-recent", Fo = ({
26957
26964
  K(() => {
26958
26965
  t > o && o > 0 && s(o);
26959
26966
  }, [t, o, s]);
26960
- const h = (V) => {
26961
- V >= 1 && V <= o && s(V);
26967
+ const h = (H) => {
26968
+ H >= 1 && H <= o && s(H);
26962
26969
  }, [g, m] = q(r);
26963
26970
  K(() => {
26964
26971
  m(r);
26965
26972
  }, [r]);
26966
26973
  const f = Math.min(t * (r || 0), n || 0) || 0, j = (() => {
26967
- const V = Math.min(Math.max(t, 1), Math.max(o - p + 1, 1)), Z = Math.min(V + p - 1, o);
26968
- return Array.from({ length: Z - V + 1 }, (b, x) => V + x);
26969
- })(), I = (V) => {
26970
- m(V), d(V), h(1);
26974
+ const H = Math.min(Math.max(t, 1), Math.max(o - p + 1, 1)), Z = Math.min(H + p - 1, o);
26975
+ return Array.from({ length: Z - H + 1 }, (b, v) => H + v);
26976
+ })(), I = (H) => {
26977
+ m(H), d(H), h(1);
26971
26978
  };
26972
26979
  return /* @__PURE__ */ i(
26973
26980
  "div",
@@ -27026,21 +27033,21 @@ const s9 = "emoji-picker-recent", Fo = ({
27026
27033
  "aria-label": "Ir a la página anterior"
27027
27034
  }
27028
27035
  ),
27029
- j.map((V) => /* @__PURE__ */ i(
27036
+ j.map((H) => /* @__PURE__ */ i(
27030
27037
  o1,
27031
27038
  {
27032
27039
  square: !0,
27033
27040
  rounded: !0,
27034
- onClick: () => h(V),
27035
- whiteBackground: t === V,
27041
+ onClick: () => h(H),
27042
+ whiteBackground: t === H,
27036
27043
  size: "md",
27037
27044
  variant: "outlined",
27038
- color: t === V ? "neutral" : "white",
27039
- "aria-label": `Ir a la página ${V}`,
27040
- "aria-current": t === V ? "page" : void 0,
27041
- children: V
27045
+ color: t === H ? "neutral" : "white",
27046
+ "aria-label": `Ir a la página ${H}`,
27047
+ "aria-current": t === H ? "page" : void 0,
27048
+ children: H
27042
27049
  },
27043
- V
27050
+ H
27044
27051
  )),
27045
27052
  /* @__PURE__ */ i(
27046
27053
  o1,
@@ -27089,7 +27096,7 @@ const s9 = "emoji-picker-recent", Fo = ({
27089
27096
  options: c,
27090
27097
  value: g,
27091
27098
  valueName: "id",
27092
- onValueChange: (V) => I(Number(V))
27099
+ onValueChange: (H) => I(Number(H))
27093
27100
  }
27094
27101
  )
27095
27102
  ] }) })
@@ -30261,13 +30268,13 @@ const s9 = "emoji-picker-recent", Fo = ({
30261
30268
  r || d(!0);
30262
30269
  }, [r]), f = N(() => {
30263
30270
  d(!1);
30264
- }, []), H = N(() => {
30271
+ }, []), V = N(() => {
30265
30272
  r || p(!0);
30266
30273
  }, [r]), j = N(() => {
30267
30274
  p(!1), d(!1);
30268
30275
  }, []), I = N(
30269
- (V) => {
30270
- r || (V.preventDefault(), n && n({
30276
+ (H) => {
30277
+ r || (H.preventDefault(), n && n({
30271
30278
  target: {
30272
30279
  value: e,
30273
30280
  checked: !h,
@@ -30286,7 +30293,7 @@ const s9 = "emoji-picker-recent", Fo = ({
30286
30293
  handlers: {
30287
30294
  handleMouseDown: m,
30288
30295
  handleMouseUp: f,
30289
- handleMouseEnter: H,
30296
+ handleMouseEnter: V,
30290
30297
  handleMouseLeave: j,
30291
30298
  handleClick: I
30292
30299
  }
@@ -30626,22 +30633,22 @@ const s9 = "emoji-picker-recent", Fo = ({
30626
30633
  vertical: L = !1,
30627
30634
  stepClickable: h = !1
30628
30635
  }) => {
30629
- const { currentStep: g, getColorClasses: m, handleStepClick: f, getStepStatus: H } = Cr({
30636
+ const { currentStep: g, getColorClasses: m, handleStepClick: f, getStepStatus: V } = Cr({
30630
30637
  steps: t,
30631
30638
  currentStep: d,
30632
30639
  onClickStep: C,
30633
30640
  onStepChange: p
30634
30641
  }), j = m(o || "blue");
30635
- 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" : ""}`} ${fr({ color: o, size: r, className: n })}`, children: t.map((V, Z) => {
30636
- const b = H(Z), x = Z === t.length - 1;
30642
+ 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" : ""}`} ${fr({ color: o, size: r, className: n })}`, children: t.map((H, Z) => {
30643
+ const b = V(Z), v = Z === t.length - 1;
30637
30644
  return /* @__PURE__ */ i(
30638
30645
  wr,
30639
30646
  {
30640
- step: V,
30647
+ step: H,
30641
30648
  stepIndex: Z,
30642
30649
  status: b,
30643
30650
  colorClasses: j,
30644
- isLast: x,
30651
+ isLast: v,
30645
30652
  onStepClick: f,
30646
30653
  classNameStep: e,
30647
30654
  classNameStepLabel: a,
@@ -30706,7 +30713,7 @@ ${d}
30706
30713
  }
30707
30714
  return Array.isArray(t) ? t.map((o) => U1(o)).join(`
30708
30715
  `) : String(t);
30709
- }, mr = ({ children: t }) => /* @__PURE__ */ i("h2", { className: "ui-text-lg ui-font-semibold ui-text-gray-900", children: t }), br = ({ children: t }) => /* @__PURE__ */ i("p", { className: "ui-text-xs ui-text-gray-500", children: t }), vr = ({ children: t, className: o = "" }) => /* @__PURE__ */ i("div", { className: `ui-flex ui-w-full ui-items-center ui-gap-2 ${o}`, children: t }), xr = ({
30716
+ }, mr = ({ children: t }) => /* @__PURE__ */ i("h2", { className: "ui-text-lg ui-font-semibold ui-text-gray-900", children: t }), br = ({ children: t }) => /* @__PURE__ */ i("p", { className: "ui-text-xs ui-text-gray-500", children: t }), xr = ({ children: t, className: o = "" }) => /* @__PURE__ */ i("div", { className: `ui-flex ui-w-full ui-items-center ui-gap-2 ${o}`, children: t }), vr = ({
30710
30717
  children: t,
30711
30718
  language: o = "jsx",
30712
30719
  showLineNumbers: r = !1,
@@ -30761,8 +30768,8 @@ ${d}
30761
30768
  );
30762
30769
  K1.Title = mr;
30763
30770
  K1.Description = br;
30764
- K1.Content = vr;
30765
- K1.Code = xr;
30771
+ K1.Content = xr;
30772
+ K1.Code = vr;
30766
30773
  const Mr = {
30767
30774
  duration: 5e3,
30768
30775
  maxToasts: 5,
@@ -30774,7 +30781,7 @@ const Mr = {
30774
30781
  animationDuration: 300,
30775
30782
  size: "sm"
30776
30783
  };
30777
- let f1 = { ...Mr };
30784
+ let m1 = { ...Mr };
30778
30785
  const W1 = [];
30779
30786
  let jr = 0;
30780
30787
  const _1 = /* @__PURE__ */ new Map(), r0 = {
@@ -30799,12 +30806,12 @@ const _1 = /* @__PURE__ */ new Map(), r0 = {
30799
30806
  onSecondaryClick: a.onSecondaryClick,
30800
30807
  showCloseButton: a.showCloseButton ?? !0,
30801
30808
  isLeaving: !1,
30802
- duration: a.duration ?? f1.duration,
30803
- position: a.position ?? f1.position,
30804
- variant: a.variant ?? f1.variant,
30805
- primaryButtonText: a.primaryButtonText ?? f1.primaryButtonText,
30806
- secondaryButtonText: a.secondaryButtonText ?? f1.secondaryButtonText,
30807
- size: a.size ?? f1.size
30809
+ duration: a.duration ?? m1.duration,
30810
+ position: a.position ?? m1.position,
30811
+ variant: a.variant ?? m1.variant,
30812
+ primaryButtonText: a.primaryButtonText ?? m1.primaryButtonText,
30813
+ secondaryButtonText: a.secondaryButtonText ?? m1.secondaryButtonText,
30814
+ size: a.size ?? m1.size
30808
30815
  };
30809
30816
  return W1.forEach((p) => p(C)), n;
30810
30817
  },
@@ -30831,15 +30838,15 @@ const _1 = /* @__PURE__ */ new Map(), r0 = {
30831
30838
  title: "",
30832
30839
  color: "green",
30833
30840
  duration: 0,
30834
- position: f1.position,
30841
+ position: m1.position,
30835
30842
  showCloseButton: !0,
30836
30843
  isLeaving: !0,
30837
- variant: f1.variant
30844
+ variant: m1.variant
30838
30845
  })
30839
30846
  );
30840
30847
  },
30841
30848
  configure(t) {
30842
- Object.assign(f1, t);
30849
+ Object.assign(m1, t);
30843
30850
  },
30844
30851
  getListeners() {
30845
30852
  return W1;
@@ -30858,13 +30865,13 @@ const _1 = /* @__PURE__ */ new Map(), r0 = {
30858
30865
  (d) => d.map((C) => C.id === s.id ? { ...C, isLeaving: !0 } : C)
30859
30866
  ), setTimeout(() => {
30860
30867
  o((d) => d.filter((C) => C.id !== s.id));
30861
- }, f1.animationDuration);
30868
+ }, m1.animationDuration);
30862
30869
  return;
30863
30870
  }
30864
30871
  if (o((d) => {
30865
30872
  if (d.some((L) => L.id === s.id)) return d;
30866
30873
  const p = { ...s, isLeaving: !1 };
30867
- return [...d, p].slice(-f1.maxToasts);
30874
+ return [...d, p].slice(-m1.maxToasts);
30868
30875
  }), s.duration && s.duration > 0) {
30869
30876
  const d = setTimeout(() => {
30870
30877
  r0.dismiss(s.id), r.current.delete(s.id);
@@ -30876,7 +30883,7 @@ const _1 = /* @__PURE__ */ new Map(), r0 = {
30876
30883
  const s = a.indexOf(c);
30877
30884
  s > -1 && a.splice(s, 1), r.current.forEach((d) => clearTimeout(d)), r.current.clear(), n.current = null;
30878
30885
  };
30879
- }, []), { toastsByPosition: m1(
30886
+ }, []), { toastsByPosition: h1(
30880
30887
  () => t.reduce((a, c) => {
30881
30888
  const s = c.position || "top-right";
30882
30889
  return a[s] || (a[s] = []), a[s].push(c), a;
@@ -30951,11 +30958,11 @@ export {
30951
30958
  Oo as CalendarContent,
30952
30959
  Z9 as CalendarGrid,
30953
30960
  Vo as CalendarHeader,
30954
- x1 as Card,
30961
+ v1 as Card,
30955
30962
  Ho as DateInput,
30956
30963
  l9 as DatePicker,
30957
30964
  Io as DatePickerPortal,
30958
- vo as Day,
30965
+ xo as Day,
30959
30966
  Yr as Drawer,
30960
30967
  F1 as Dropdown,
30961
30968
  Pt as Emoji,
@@ -30974,7 +30981,7 @@ export {
30974
30981
  e3 as Logo,
30975
30982
  a9 as Modal,
30976
30983
  po as ModalProvider,
30977
- xo as Month,
30984
+ vo as Month,
30978
30985
  S9 as MonthGrid,
30979
30986
  yo as MultipleCalendarsHeader,
30980
30987
  q1 as NavigationButton,