bonsaif-ui 0.1.11 → 0.1.12

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.
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as o, Fragment as Se } from "react/jsx-runtime";
3
- import { HiMagnifyingGlass as Ze, HiXMark as Ne, HiInformationCircle as jt, HiExclamationCircle as Br, HiExclamationTriangle as nr, HiCheckCircle as Tr, HiChevronLeft as Ue, HiChevronDown as Ye, HiChevronRight as je, HiCalendarDays as wt, HiCheck as Je, HiClipboardDocument as Or, HiLink as Ar, HiChevronUp as zr, HiChevronUpDown as Ir, HiEllipsisVertical as jr, HiInbox as ar, HiLockClosed as Pr, HiBars3 as Rr, HiHome as st, HiArrowRightOnRectangle as Hr, HiShieldCheck as bt, HiListBullet as Pt, HiBriefcase as _r, HiCog6Tooth as Rt, HiUsers as Ht, HiDocumentText as Wr, HiBell as Fr, HiUser as Ur, HiClipboardDocumentList as Yr, HiBuildingOffice2 as qr, HiRectangleGroup as Kr, HiTicket as Gr, HiChartBar as Vr } from "react-icons/hi2";
4
- import we, { useRef as ee, useState as O, useEffect as H, createContext as Xr, useLayoutEffect as Zr, useContext as Jr, isValidElement as St, Children as Qr, useMemo as Pe, useCallback as Me, cloneElement as en, forwardRef as tn, useSyncExternalStore as rn } from "react";
5
- import { createPortal as Re } from "react-dom";
6
- import { OverlayScrollbars as _t } from "overlayscrollbars";
7
- import { MdDragIndicator as nn } from "react-icons/md";
3
+ import { HiMagnifyingGlass as Je, HiXMark as Ne, HiInformationCircle as jt, HiExclamationCircle as Tr, HiExclamationTriangle as nr, HiCheckCircle as Ar, HiChevronLeft as Ue, HiChevronDown as Ye, HiChevronRight as Re, HiCalendarDays as wt, HiCheck as Qe, HiClipboardDocument as Or, HiLink as zr, HiChevronUp as Ir, HiChevronUpDown as jr, HiEllipsisVertical as Pr, HiInbox as ar, HiLockClosed as Rr, HiBars3 as _r, HiHome as st, HiArrowRightOnRectangle as Hr, HiShieldCheck as bt, HiListBullet as Pt, HiBriefcase as Wr, HiCog6Tooth as Rt, HiUsers as _t, HiDocumentText as Fr, HiBell as Ur, HiUser as Yr, HiClipboardDocumentList as qr, HiBuildingOffice2 as Gr, HiRectangleGroup as Kr, HiTicket as Vr, HiChartBar as Xr } from "react-icons/hi2";
4
+ import we, { useRef as ee, useState as A, useEffect as _, createContext as Zr, useLayoutEffect as Jr, useContext as Qr, isValidElement as St, Children as en, useMemo as _e, useCallback as Me, cloneElement as tn, forwardRef as rn, useSyncExternalStore as nn } from "react";
5
+ import { createPortal as He } from "react-dom";
6
+ import { OverlayScrollbars as Ht } from "overlayscrollbars";
7
+ import { MdDragIndicator as an } from "react-icons/md";
8
8
  import { OverlayScrollbarsComponent as Wt } from "overlayscrollbars-react";
9
- import { DayPicker as an, useDayPicker as on } from "react-day-picker";
9
+ import { DayPicker as on, useDayPicker as sn } from "react-day-picker";
10
10
  import "react-day-picker/dist/style.css";
11
- import { FiSave as sn } from "react-icons/fi";
12
- import { Toaster as ln } from "sonner";
13
- function cn(...e) {
11
+ import { FiSave as ln } from "react-icons/fi";
12
+ import { Toaster as cn } from "sonner";
13
+ function dn(...e) {
14
14
  return e.filter(Boolean).join(" ");
15
15
  }
16
- function Ya({
16
+ function qa({
17
17
  variant: e = "primary",
18
18
  className: r,
19
19
  type: n = "button",
@@ -23,26 +23,26 @@ function Ya({
23
23
  return /* @__PURE__ */ t(
24
24
  "button",
25
25
  {
26
- className: cn("bonsaif-ui-button", `bonsaif-ui-button--${e}`, r),
26
+ className: dn("bonsaif-ui-button", `bonsaif-ui-button--${e}`, r),
27
27
  type: n,
28
28
  ...i,
29
29
  children: a
30
30
  }
31
31
  );
32
32
  }
33
- function dn({
33
+ function un({
34
34
  value: e,
35
35
  onChange: r,
36
36
  placeholder: n,
37
37
  className: a = "",
38
38
  autoFocus: i = !1,
39
- forceExpanded: l = !1,
39
+ forceExpanded: c = !1,
40
40
  onEscape: d,
41
41
  size: s = "default",
42
42
  inputTabIndex: f
43
43
  }) {
44
- const p = ee(null), [k, N] = O(!1), g = l || k || e.trim().length > 0, v = s === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", m = a || "w-48 sm:w-64 lg:w-72";
45
- H(() => {
44
+ const p = ee(null), [S, N] = A(!1), y = c || S || e.trim().length > 0, v = s === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", m = a || "w-48 sm:w-64 lg:w-72";
45
+ _(() => {
46
46
  var b;
47
47
  i && ((b = p.current) == null || b.focus());
48
48
  }, [i]);
@@ -53,13 +53,13 @@ function dn({
53
53
  return /* @__PURE__ */ o(
54
54
  "div",
55
55
  {
56
- className: `relative flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${g ? m : "w-24 sm:w-28"}`,
56
+ className: `relative flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${y ? m : "w-24 sm:w-28"}`,
57
57
  onMouseDown: (b) => {
58
- g || (b.preventDefault(), h());
58
+ y || (b.preventDefault(), h());
59
59
  },
60
60
  children: [
61
61
  /* @__PURE__ */ t(
62
- Ze,
62
+ Je,
63
63
  {
64
64
  className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 pointer-events-none transition-colors duration-200",
65
65
  style: { color: "var(--text-muted)" }
@@ -77,8 +77,8 @@ function dn({
77
77
  onKeyDown: (b) => {
78
78
  b.key === "Escape" && (d == null || d());
79
79
  },
80
- placeholder: g ? n : "Buscar",
81
- className: `${v} w-full py-0 text-sm leading-none placeholder:text-[var(--text-muted)] focus:outline-none transition-all duration-200 ${g ? "pl-9 pr-8" : "cursor-pointer pl-9 pr-3"}`,
80
+ placeholder: y ? n : "Buscar",
81
+ className: `${v} w-full py-0 text-sm leading-none placeholder:text-[var(--text-muted)] focus:outline-none transition-all duration-200 ${y ? "pl-9 pr-8" : "cursor-pointer pl-9 pr-3"}`,
82
82
  style: {
83
83
  background: "color-mix(in srgb, var(--bg-card) 86%, transparent)",
84
84
  border: "1px solid var(--border)",
@@ -107,15 +107,15 @@ function dn({
107
107
  }
108
108
  );
109
109
  }
110
- const or = Xr({});
111
- function un(e) {
110
+ const or = Zr({});
111
+ function mn(e) {
112
112
  var a;
113
113
  const r = Array.from(
114
114
  e.querySelectorAll("*")
115
115
  ).filter(
116
116
  (i) => {
117
- var l;
118
- return i.scrollWidth > i.clientWidth && !!((l = i.textContent) != null && l.trim()) && i.tagName.toLowerCase() !== "svg" && !i.closest("svg");
117
+ var c;
118
+ return i.scrollWidth > i.clientWidth && !!((c = i.textContent) != null && c.trim()) && i.tagName.toLowerCase() !== "svg" && !i.closest("svg");
119
119
  }
120
120
  );
121
121
  return (e.scrollWidth > e.clientWidth || r.length > 0) && (((a = r[0]) == null ? void 0 : a.textContent) ?? e.textContent ?? "").trim() || null;
@@ -126,22 +126,22 @@ function Ct({
126
126
  onlyWhenOverflow: n = !1,
127
127
  className: a = "",
128
128
  style: i,
129
- as: l = "div"
129
+ as: c = "div"
130
130
  }) {
131
- const d = ee(null), s = ee(null), [f, p] = O(null), [k, N] = O("");
132
- H(() => {
131
+ const d = ee(null), s = ee(null), [f, p] = A(null), [S, N] = A("");
132
+ _(() => {
133
133
  const m = d.current;
134
134
  m && (m.querySelectorAll("[title]").forEach((h) => {
135
135
  const b = h.getAttribute("title");
136
136
  b && (h.getAttribute("aria-label") || h.setAttribute("aria-label", b), h.removeAttribute("title"));
137
137
  }), m.querySelectorAll("svg title").forEach((h) => h.remove()));
138
- }), Zr(() => {
138
+ }), Jr(() => {
139
139
  if (!f) return;
140
140
  const m = s.current;
141
141
  if (!m) return;
142
- const h = 12, b = 14, $ = m.getBoundingClientRect(), P = window.innerWidth - $.width - h, j = window.innerHeight - $.height - h;
142
+ const h = 12, b = 14, $ = m.getBoundingClientRect(), R = window.innerWidth - $.width - h, P = window.innerHeight - $.height - h;
143
143
  let D = f.mouseX + b, w = f.mouseY + b;
144
- D > P && (D = f.mouseX - $.width - b), w > j && (w = f.mouseY - $.height - b), D = Math.min(Math.max(h, D), Math.max(h, P)), w = Math.min(Math.max(h, w), Math.max(h, j)), (Math.abs(D - f.x) > 0.5 || Math.abs(w - f.y) > 0.5) && p(
144
+ D > R && (D = f.mouseX - $.width - b), w > P && (w = f.mouseY - $.height - b), D = Math.min(Math.max(h, D), Math.max(h, R)), w = Math.min(Math.max(h, w), Math.max(h, P)), (Math.abs(D - f.x) > 0.5 || Math.abs(w - f.y) > 0.5) && p(
145
145
  (C) => C && {
146
146
  ...C,
147
147
  x: D,
@@ -149,35 +149,35 @@ function Ct({
149
149
  }
150
150
  );
151
151
  }, [f]);
152
- const g = (m, h) => {
152
+ const y = (m, h) => {
153
153
  const b = d.current;
154
154
  if (b) {
155
155
  if (n) {
156
- const $ = un(b);
156
+ const $ = mn(b);
157
157
  if (!$) return;
158
158
  N($);
159
159
  }
160
160
  !n && !r || p({ mouseX: m, mouseY: h, x: m + 14, y: h + 14 });
161
161
  }
162
- }, v = n ? k : r;
162
+ }, v = n ? S : r;
163
163
  return /* @__PURE__ */ o(Se, { children: [
164
164
  /* @__PURE__ */ t(
165
- l,
165
+ c,
166
166
  {
167
167
  ref: (m) => {
168
168
  d.current = m;
169
169
  },
170
170
  className: a,
171
171
  style: i,
172
- onMouseEnter: (m) => g(m.clientX, m.clientY),
172
+ onMouseEnter: (m) => y(m.clientX, m.clientY),
173
173
  onMouseMove: (m) => {
174
- f && g(m.clientX, m.clientY);
174
+ f && y(m.clientX, m.clientY);
175
175
  },
176
176
  onMouseLeave: () => p(null),
177
177
  children: e
178
178
  }
179
179
  ),
180
- f && v ? Re(
180
+ f && v ? He(
181
181
  /* @__PURE__ */ t(
182
182
  "div",
183
183
  {
@@ -212,23 +212,23 @@ function Ft(e) {
212
212
  if (e !== void 0)
213
213
  return typeof e == "number" ? `${e}px` : e;
214
214
  }
215
- const mn = "inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap leading-none font-medium transition-all duration-150 focus:outline-none disabled:opacity-50 rounded-lg", fn = {
215
+ const fn = "inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap leading-none font-medium transition-all duration-150 focus:outline-none disabled:opacity-50 rounded-lg", pn = {
216
216
  primary: "border border-[var(--border)] text-[var(--text-main)] hover:border-[var(--border)] hover:bg-[var(--bg-input)] active:scale-[0.98] transition-colors",
217
217
  secondary: "border border-[var(--border)] text-[var(--text-main)] hover:border-[var(--border)] hover:bg-[var(--bg-input)] active:scale-[0.98] transition-colors",
218
218
  danger: "border border-[var(--border)] text-[var(--danger)] hover:border-[var(--danger)] hover:bg-[var(--danger-bg)] active:scale-[0.98] transition-colors",
219
219
  ghost: "text-[var(--text-secondary)] hover:opacity-70",
220
220
  icon: "text-[var(--text-muted)] hover:text-[var(--primary)] hover:bg-primary/5"
221
- }, pn = "border border-[var(--border)] text-[var(--text-muted)] shadow-sm shadow-black/5 hover:border-[var(--border)] hover:bg-[var(--bg-input)] hover:text-[var(--primary)] active:scale-[0.98] transition-colors", hn = {
221
+ }, hn = "border border-[var(--border)] text-[var(--text-muted)] shadow-sm shadow-black/5 hover:border-[var(--border)] hover:bg-[var(--bg-input)] hover:text-[var(--primary)] active:scale-[0.98] transition-colors", bn = {
222
222
  xs: "h-8 px-2.5 text-xs",
223
223
  sm: "h-9 px-3.5 text-xs",
224
224
  md: "h-10 px-3.5 text-sm",
225
225
  lg: "h-11 px-4 text-sm font-semibold"
226
- }, bn = {
226
+ }, xn = {
227
227
  xs: "h-8 w-8",
228
228
  sm: "h-9 w-9",
229
229
  md: "h-10 w-10",
230
230
  lg: "h-10 w-10"
231
- }, xn = {
231
+ }, vn = {
232
232
  primary: { background: "var(--bg-card)" },
233
233
  secondary: { background: "var(--bg-card)" },
234
234
  danger: { background: "var(--bg-card)" },
@@ -238,8 +238,8 @@ const mn = "inline-flex shrink-0 items-center justify-center gap-2 whitespace-no
238
238
  function Nt(e) {
239
239
  return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(Nt).join(" ").trim() : St(e) ? Nt(e.props.children) : "";
240
240
  }
241
- function vn(e) {
242
- return Qr.toArray(e).find(St) ?? null;
241
+ function gn(e) {
242
+ return en.toArray(e).find(St) ?? null;
243
243
  }
244
244
  function be({
245
245
  variant: e = "primary",
@@ -247,32 +247,32 @@ function be({
247
247
  loading: n = !1,
248
248
  icon: a,
249
249
  tooltip: i,
250
- iconOnly: l,
250
+ iconOnly: c,
251
251
  height: d,
252
252
  padding: s,
253
253
  children: f,
254
254
  className: p = "",
255
- disabled: k,
255
+ disabled: S,
256
256
  style: N,
257
- ...g
257
+ ...y
258
258
  }) {
259
- const v = Jr(or), m = l ?? v.iconOnly ?? e === "icon", h = v.compact ?? !1, b = v.headerAction ?? !1, $ = h && !b && r === "md" ? "xs" : r, P = e === "icon" || m, j = b && P, D = Nt(f), w = i ?? g.title ?? g["aria-label"] ?? (m ? D : void 0), C = w ? void 0 : g.title, L = g["aria-label"] ?? (typeof w == "string" ? w : D || void 0), I = n ? null : a ?? (m ? vn(f) : null), T = /* @__PURE__ */ o(
259
+ const v = Qr(or), m = c ?? v.iconOnly ?? e === "icon", h = v.compact ?? !1, b = v.headerAction ?? !1, $ = h && !b && r === "md" ? "xs" : r, R = e === "icon" || m, P = b && R, D = Nt(f), w = i ?? y.title ?? y["aria-label"] ?? (m ? D : void 0), C = w ? void 0 : y.title, L = y["aria-label"] ?? (typeof w == "string" ? w : D || void 0), I = n ? null : a ?? (m ? gn(f) : null), T = /* @__PURE__ */ o(
260
260
  "button",
261
261
  {
262
- ...g,
262
+ ...y,
263
263
  title: C,
264
264
  "aria-label": L,
265
265
  "data-variant": e,
266
266
  "data-size": $,
267
- "data-icon": P ? "true" : void 0,
268
- disabled: k || n,
269
- className: `${mn} ${j ? pn : fn[e]} ${P ? bn[$] : hn[$]} ${h && !P ? "px-2.5" : ""} ${p}`,
267
+ "data-icon": R ? "true" : void 0,
268
+ disabled: S || n,
269
+ className: `${fn} ${P ? hn : pn[e]} ${R ? xn[$] : bn[$]} ${h && !R ? "px-2.5" : ""} ${p}`,
270
270
  style: {
271
- ...xn[e],
271
+ ...vn[e],
272
272
  height: Ft(d),
273
273
  padding: Ft(s),
274
274
  ...N,
275
- ...j ? {
275
+ ...P ? {
276
276
  width: "40px",
277
277
  height: "40px",
278
278
  padding: 0,
@@ -296,13 +296,13 @@ function be({
296
296
  }
297
297
  ) : T;
298
298
  }
299
- function gn({
299
+ function yn({
300
300
  variant: e = "page",
301
301
  title: r = "Cargando...",
302
302
  rows: n = 6,
303
303
  children: a
304
304
  }) {
305
- return e === "table" ? /* @__PURE__ */ t(ir, { rows: n }) : e === "sections" ? /* @__PURE__ */ t(yn, { rows: n }) : e === "cards" ? /* @__PURE__ */ t(wn, { rows: n }) : /* @__PURE__ */ t("div", { className: "flex min-h-[240px] items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-6", children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-3 text-center", children: [
305
+ return e === "table" ? /* @__PURE__ */ t(ir, { rows: n }) : e === "sections" ? /* @__PURE__ */ t(wn, { rows: n }) : e === "cards" ? /* @__PURE__ */ t(Nn, { rows: n }) : /* @__PURE__ */ t("div", { className: "flex min-h-[240px] items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-6", children: /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-3 text-center", children: [
306
306
  /* @__PURE__ */ t("div", { className: "h-9 w-9 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--primary)]" }),
307
307
  /* @__PURE__ */ o("div", { children: [
308
308
  /* @__PURE__ */ t("p", { className: "text-sm font-semibold text-[var(--text-main)]", children: r }),
@@ -310,7 +310,7 @@ function gn({
310
310
  ] })
311
311
  ] }) });
312
312
  }
313
- function yn({ rows: e }) {
313
+ function wn({ rows: e }) {
314
314
  return /* @__PURE__ */ t("div", { className: "space-y-4", children: Array.from({ length: Math.max(2, Math.min(e, 4)) }).map(
315
315
  (r, n) => /* @__PURE__ */ o(
316
316
  "section",
@@ -341,7 +341,7 @@ function yn({ rows: e }) {
341
341
  )
342
342
  ) });
343
343
  }
344
- function wn({ rows: e }) {
344
+ function Nn({ rows: e }) {
345
345
  return /* @__PURE__ */ t("div", { className: "grid gap-3 md:grid-cols-2 xl:grid-cols-3", children: Array.from({ length: e }).map((r, n) => /* @__PURE__ */ o(
346
346
  "div",
347
347
  {
@@ -374,7 +374,7 @@ function ir({
374
374
  {
375
375
  className: "grid border-b border-[var(--border)] last:border-b-0",
376
376
  style: { gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` },
377
- children: Array.from({ length: n }).map((l, d) => /* @__PURE__ */ t("div", { className: "px-3 py-3", children: /* @__PURE__ */ t(
377
+ children: Array.from({ length: n }).map((c, d) => /* @__PURE__ */ t("div", { className: "px-3 py-3", children: /* @__PURE__ */ t(
378
378
  "div",
379
379
  {
380
380
  className: "h-3.5 animate-pulse rounded-full bg-[var(--bg-input)]",
@@ -395,7 +395,7 @@ function sr(e) {
395
395
  function Ut(e) {
396
396
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
397
397
  }
398
- function Nn(e) {
398
+ function kn(e) {
399
399
  return [
400
400
  e.label,
401
401
  sr(e.service),
@@ -403,37 +403,37 @@ function Nn(e) {
403
403
  e.service
404
404
  ].filter(Boolean).join(" ");
405
405
  }
406
- function kn(e) {
406
+ function Sn(e) {
407
407
  return typeof e == "function" ? e : e.default;
408
408
  }
409
- function Sn(e, r) {
409
+ function Cn(e, r) {
410
410
  return /* @__PURE__ */ t("div", { className: "flex min-h-[220px] items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-6 text-center", children: /* @__PURE__ */ o("div", { className: "max-w-md", children: [
411
411
  /* @__PURE__ */ t("p", { className: "text-sm font-semibold text-[var(--text-main)]", children: "No se pudo cargar este modulo" }),
412
412
  /* @__PURE__ */ t("p", { className: "mt-1 text-xs text-[var(--text-muted)]", children: e.message }),
413
413
  /* @__PURE__ */ t(be, { className: "mt-4", height: 36, padding: "0 14px", onClick: r, children: "Reintentar" })
414
414
  ] }) });
415
415
  }
416
- function qa({
416
+ function Ga({
417
417
  parentPanel: e,
418
418
  parentPanelComponent: r,
419
419
  renderParentPanel: n,
420
420
  parent: a,
421
421
  context: i,
422
- links: l,
422
+ links: c,
423
423
  moduleRegistry: d,
424
424
  loadModule: s,
425
425
  activeService: f,
426
426
  initialService: p,
427
- onActiveServiceChange: k,
427
+ onActiveServiceChange: S,
428
428
  canAccess: N,
429
- keepAlive: g = !0,
429
+ keepAlive: y = !0,
430
430
  title: v,
431
431
  subtitle: m,
432
432
  emptyState: h,
433
433
  loadingState: b,
434
- errorState: $ = Sn,
435
- renderTabLabel: P,
436
- searchableTabs: j = "auto",
434
+ errorState: $ = Cn,
435
+ renderTabLabel: R,
436
+ searchableTabs: P = "auto",
437
437
  tabsSearchThreshold: D = 6,
438
438
  tabsSearchPlaceholder: w = "Buscar modulo...",
439
439
  tabsSearchValue: C,
@@ -442,45 +442,45 @@ function qa({
442
442
  showTabCount: T = !0,
443
443
  className: B = "",
444
444
  parentClassName: z = "",
445
- contentClassName: _ = "",
445
+ contentClassName: H = "",
446
446
  tabsClassName: U = ""
447
447
  }) {
448
- var qe;
449
- const W = Pe(
450
- () => l.filter(
448
+ var Ge;
449
+ const W = _e(
450
+ () => c.filter(
451
451
  (E) => !E.hidden && ((N == null ? void 0 : N(E, i)) ?? !0)
452
452
  ),
453
- [N, i, l]
454
- ), X = (qe = W.find(
453
+ [N, i, c]
454
+ ), Z = (Ge = W.find(
455
455
  (E) => !E.disabled
456
- )) == null ? void 0 : qe.service, [te, u] = O(
457
- p ?? X ?? ""
458
- ), [M, F] = O({}), [Z, G] = O({}), [ne, le] = O(""), [x, J] = O(!1), ie = ee(Z), V = ee(0), ae = C ?? ne, A = Ut(ae), K = j === !0 || j === "auto" && W.length >= D, Q = K && ae.trim().length > 0, ue = Pe(() => A ? W.filter(
459
- (E) => Ut(Nn(E)).includes(A)
460
- ) : W, [A, W]), he = f ?? te, Y = W.find((E) => E.service === he) ?? W.find((E) => !E.disabled);
461
- H(() => {
462
- !Y && X && u(X);
463
- }, [X, Y]), H(() => {
464
- ie.current = Z;
465
- }, [Z]);
456
+ )) == null ? void 0 : Ge.service, [te, u] = A(
457
+ p ?? Z ?? ""
458
+ ), [M, F] = A({}), [K, V] = A({}), [ne, le] = A(""), [x, J] = A(!1), ie = ee(K), X = ee(0), ae = C ?? ne, O = Ut(ae), G = P === !0 || P === "auto" && W.length >= D, Q = G && ae.trim().length > 0, ue = _e(() => O ? W.filter(
459
+ (E) => Ut(kn(E)).includes(O)
460
+ ) : W, [O, W]), he = f ?? te, Y = W.find((E) => E.service === he) ?? W.find((E) => !E.disabled);
461
+ _(() => {
462
+ !Y && Z && u(Z);
463
+ }, [Z, Y]), _(() => {
464
+ ie.current = K;
465
+ }, [K]);
466
466
  const ve = (E) => {
467
- E.disabled || (f || u(E.service), k == null || k(E.service, E));
468
- }, Qe = (E) => {
467
+ E.disabled || (f || u(E.service), S == null || S(E.service, E));
468
+ }, qe = (E) => {
469
469
  C === void 0 && le(E), L == null || L(E);
470
- }, He = (E, me) => {
471
- const pe = ue.filter((ce) => !ce.disabled), Be = pe.findIndex(
470
+ }, Be = (E, me) => {
471
+ const pe = ue.filter((ce) => !ce.disabled), Ae = pe.findIndex(
472
472
  (ce) => ce.service === me.service
473
473
  );
474
- Be < 0 || ((E.key === "ArrowRight" || E.key === "ArrowDown") && (E.preventDefault(), ve(pe[(Be + 1) % pe.length])), (E.key === "ArrowLeft" || E.key === "ArrowUp") && (E.preventDefault(), ve(
475
- pe[(Be - 1 + pe.length) % pe.length]
474
+ Ae < 0 || ((E.key === "ArrowRight" || E.key === "ArrowDown") && (E.preventDefault(), ve(pe[(Ae + 1) % pe.length])), (E.key === "ArrowLeft" || E.key === "ArrowUp") && (E.preventDefault(), ve(
475
+ pe[(Ae - 1 + pe.length) % pe.length]
476
476
  )), E.key === "Home" && (E.preventDefault(), ve(pe[0])), E.key === "End" && (E.preventDefault(), ve(pe[pe.length - 1])));
477
- }, _e = Me(() => {
477
+ }, Te = Me(() => {
478
478
  if (!Y) return;
479
479
  const E = Y.service, me = ie.current[E];
480
- if (me != null && me.loading || me != null && me.component && g) return;
480
+ if (me != null && me.loading || me != null && me.component && y) return;
481
481
  const pe = (d == null ? void 0 : d[E]) ?? s;
482
482
  if (!pe) {
483
- G((ce) => ({
483
+ V((ce) => ({
484
484
  ...ce,
485
485
  [E]: {
486
486
  loading: !1,
@@ -489,27 +489,27 @@ function qa({
489
489
  }));
490
490
  return;
491
491
  }
492
- const Be = ++V.current;
493
- G((ce) => ({
492
+ const Ae = ++X.current;
493
+ V((ce) => ({
494
494
  ...ce,
495
495
  [E]: { ...ce[E], loading: !0, error: void 0 }
496
496
  })), pe(Y, i).then((ce) => {
497
- if (Be !== V.current && !g) return;
498
- const Ke = kn(ce);
499
- G((Ee) => ({
497
+ if (Ae !== X.current && !y) return;
498
+ const Ke = Sn(ce);
499
+ V((Ee) => ({
500
500
  ...Ee,
501
501
  [E]: { component: Ke, loading: !1 }
502
502
  }));
503
503
  }).catch((ce) => {
504
504
  const Ke = ce instanceof Error ? ce : new Error(String(ce));
505
- G((Ee) => ({
505
+ V((Ee) => ({
506
506
  ...Ee,
507
507
  [E]: { ...Ee[E], loading: !1, error: Ke }
508
508
  }));
509
509
  });
510
- }, [i, g, s, d, Y]);
511
- H(_e, [_e]);
512
- const et = Y ? M[Y.service] ?? null : null, se = Y ? Z[Y.service] : void 0, tt = se == null ? void 0 : se.component, Ce = (E) => {
510
+ }, [i, y, s, d, Y]);
511
+ _(Te, [Te]);
512
+ const et = Y ? M[Y.service] ?? null : null, se = Y ? K[Y.service] : void 0, tt = se == null ? void 0 : se.component, Ce = (E) => {
513
513
  Y && F((me) => ({
514
514
  ...me,
515
515
  [Y.service]: E
@@ -522,7 +522,7 @@ function qa({
522
522
  }, $e = {
523
523
  context: i,
524
524
  parent: a,
525
- links: l,
525
+ links: c,
526
526
  visibleLinks: W,
527
527
  filteredLinks: ue,
528
528
  selectedLink: Y,
@@ -548,30 +548,30 @@ function qa({
548
548
  /* @__PURE__ */ o(
549
549
  "div",
550
550
  {
551
- className: `relative min-w-0 overflow-visible rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${_}`,
551
+ className: `relative min-w-0 overflow-visible rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${H}`,
552
552
  children: [
553
- (v || m || K || T) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ o("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
553
+ (v || m || G || T) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ o("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
554
554
  /* @__PURE__ */ o("div", { className: "min-w-0", children: [
555
555
  v && /* @__PURE__ */ t("h2", { className: "truncate text-sm font-semibold text-[var(--text-main)]", children: v }),
556
556
  m && /* @__PURE__ */ t("p", { className: "mt-1 line-clamp-2 text-xs text-[var(--text-muted)]", children: m })
557
557
  ] }),
558
- (K || T) && /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-shrink-0 items-center justify-end gap-2", children: [
558
+ (G || T) && /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-shrink-0 items-center justify-end gap-2", children: [
559
559
  T && /* @__PURE__ */ o("span", { className: "hidden text-xs font-semibold text-[var(--text-muted)] transition-opacity duration-200 sm:inline", children: [
560
560
  ue.length,
561
561
  " / ",
562
562
  W.length
563
563
  ] }),
564
- K && /* @__PURE__ */ o(Se, { children: [
564
+ G && /* @__PURE__ */ o(Se, { children: [
565
565
  /* @__PURE__ */ t(
566
566
  "div",
567
567
  {
568
568
  className: `origin-right overflow-hidden transition-[width,opacity,transform] duration-200 ease-out ${x ? "w-[min(20rem,44vw)] translate-x-0 opacity-100" : "w-0 translate-x-2 opacity-0"}`,
569
569
  "aria-hidden": !x,
570
570
  children: /* @__PURE__ */ t(
571
- dn,
571
+ un,
572
572
  {
573
573
  value: ae,
574
- onChange: Qe,
574
+ onChange: qe,
575
575
  placeholder: w,
576
576
  className: "w-full",
577
577
  autoFocus: x,
@@ -590,10 +590,10 @@ function qa({
590
590
  "aria-label": x ? "Cerrar busqueda" : "Buscar tabs",
591
591
  "aria-expanded": x,
592
592
  onClick: () => {
593
- x && ae && Qe(""), J((E) => !E);
593
+ x && ae && qe(""), J((E) => !E);
594
594
  },
595
595
  className: `inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md border transition-all duration-200 hover:scale-[1.03] active:scale-95 ${x || Q ? "border-[var(--primary)] bg-[var(--bg-input)] text-[var(--text-main)] shadow-sm" : "border-[var(--border)] text-[var(--text-muted)] hover:bg-[var(--bg-input)] hover:text-[var(--text-main)]"}`,
596
- children: /* @__PURE__ */ t("span", { className: "grid h-4 w-4 place-items-center transition-transform duration-200", children: x || Q ? /* @__PURE__ */ t(Ne, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Ze, { className: "h-4 w-4" }) })
596
+ children: /* @__PURE__ */ t("span", { className: "grid h-4 w-4 place-items-center transition-transform duration-200", children: x || Q ? /* @__PURE__ */ t(Ne, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Je, { className: "h-4 w-4" }) })
597
597
  }
598
598
  )
599
599
  ] })
@@ -615,9 +615,9 @@ function qa({
615
615
  "aria-selected": me,
616
616
  disabled: E.disabled,
617
617
  onClick: () => ve(E),
618
- onKeyDown: (pe) => He(pe, E),
618
+ onKeyDown: (pe) => Be(pe, E),
619
619
  className: `inline-flex h-9 min-w-max items-center gap-2 rounded-md border px-3 text-xs font-semibold transition-all duration-200 disabled:cursor-not-allowed disabled:opacity-50 ${me ? "border-[var(--primary)] bg-[var(--bg-card)] text-[var(--text-main)] shadow-sm" : "border-transparent text-[var(--text-muted)] hover:bg-[var(--bg-card)] hover:text-[var(--text-main)]"}`,
620
- children: P ? P(E, me) : /* @__PURE__ */ o(Se, { children: [
620
+ children: R ? R(E, me) : /* @__PURE__ */ o(Se, { children: [
621
621
  E.icon,
622
622
  /* @__PURE__ */ t("span", { children: E.label ?? sr(E.service) }),
623
623
  E.badge && /* @__PURE__ */ t("span", { className: "rounded-full bg-[var(--bg-input)] px-1.5 py-0.5 text-[10px] text-[var(--text-muted)]", children: E.badge })
@@ -631,8 +631,8 @@ function qa({
631
631
  (Y == null ? void 0 : Y.description) && /* @__PURE__ */ t("div", { className: "border-b border-[var(--border)] px-4 py-2 text-xs text-[var(--text-muted)]", children: Y.description }),
632
632
  /* @__PURE__ */ o("div", { className: "min-h-[420px] p-4", children: [
633
633
  !Y && (h ?? /* @__PURE__ */ t("div", { className: "flex min-h-[220px] items-center justify-center rounded-lg border border-dashed border-[var(--border)] text-sm text-[var(--text-muted)]", children: "No hay modulos disponibles." })),
634
- Y && (se == null ? void 0 : se.loading) && (b ?? /* @__PURE__ */ t(gn, { title: "Cargando modulo..." })),
635
- Y && (se == null ? void 0 : se.error) && $(se.error, _e),
634
+ Y && (se == null ? void 0 : se.loading) && (b ?? /* @__PURE__ */ t(yn, { title: "Cargando modulo..." })),
635
+ Y && (se == null ? void 0 : se.error) && $(se.error, Te),
636
636
  Y && tt && !(se != null && se.loading) && !(se != null && se.error) && /* @__PURE__ */ t(
637
637
  tt,
638
638
  {
@@ -652,7 +652,7 @@ function qa({
652
652
  }
653
653
  );
654
654
  }
655
- const Cn = {
655
+ const $n = {
656
656
  info: {
657
657
  color: "#2563eb",
658
658
  background: "rgba(59, 130, 246, 0.1)",
@@ -663,7 +663,7 @@ const Cn = {
663
663
  color: "#047857",
664
664
  background: "rgba(16, 185, 129, 0.1)",
665
665
  border: "rgba(16, 185, 129, 0.24)",
666
- icon: /* @__PURE__ */ t(Tr, { className: "h-5 w-5" })
666
+ icon: /* @__PURE__ */ t(Ar, { className: "h-5 w-5" })
667
667
  },
668
668
  warning: {
669
669
  color: "#b45309",
@@ -675,7 +675,7 @@ const Cn = {
675
675
  color: "var(--danger)",
676
676
  background: "var(--danger-bg)",
677
677
  border: "color-mix(in srgb, var(--danger) 20%, var(--border))",
678
- icon: /* @__PURE__ */ t(Br, { className: "h-5 w-5" })
678
+ icon: /* @__PURE__ */ t(Tr, { className: "h-5 w-5" })
679
679
  },
680
680
  neutral: {
681
681
  color: "var(--text-secondary)",
@@ -690,10 +690,10 @@ function Ka({
690
690
  children: n,
691
691
  icon: a,
692
692
  action: i,
693
- onDismiss: l,
693
+ onDismiss: c,
694
694
  className: d = ""
695
695
  }) {
696
- const s = Cn[e];
696
+ const s = $n[e];
697
697
  return /* @__PURE__ */ o(
698
698
  "div",
699
699
  {
@@ -710,13 +710,13 @@ function Ka({
710
710
  n && /* @__PURE__ */ t("div", { className: "mt-0.5 text-sm leading-5 text-[var(--text-secondary)]", children: n }),
711
711
  i && /* @__PURE__ */ t("div", { className: "mt-3", children: i })
712
712
  ] }),
713
- l && /* @__PURE__ */ t(
713
+ c && /* @__PURE__ */ t(
714
714
  be,
715
715
  {
716
716
  variant: "icon",
717
717
  size: "xs",
718
718
  "aria-label": "Cerrar alerta",
719
- onClick: l,
719
+ onClick: c,
720
720
  className: "-mr-1 -mt-1",
721
721
  children: /* @__PURE__ */ t(Ne, { className: "h-4 w-4" })
722
722
  }
@@ -738,7 +738,7 @@ const lr = [
738
738
  "Octubre",
739
739
  "Noviembre",
740
740
  "Diciembre"
741
- ], $n = [
741
+ ], En = [
742
742
  "Ene",
743
743
  "Feb",
744
744
  "Mar",
@@ -751,11 +751,11 @@ const lr = [
751
751
  "Oct",
752
752
  "Nov",
753
753
  "Dic"
754
- ], En = ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sá"], xt = 6;
754
+ ], Mn = ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sá"], xt = 6;
755
755
  function kt(e, r, n) {
756
756
  return `${e}-${String(r).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
757
757
  }
758
- function Mn() {
758
+ function Dn() {
759
759
  const e = /* @__PURE__ */ new Date();
760
760
  return kt(e.getFullYear(), e.getMonth() + 1, e.getDate());
761
761
  }
@@ -763,32 +763,32 @@ function cr(e) {
763
763
  const [r, n, a] = e.split("-").map(Number);
764
764
  return { year: r, month: n, day: a };
765
765
  }
766
- function Dn(e) {
766
+ function Ln(e) {
767
767
  if (!e) return "Seleccionar fecha";
768
768
  const { year: r, month: n, day: a } = cr(e);
769
769
  return !r || !n || !a ? "Seleccionar fecha" : `${String(a).padStart(2, "0")} ${lr[n - 1]} ${r}`;
770
770
  }
771
- function Ga({
771
+ function Va({
772
772
  value: e,
773
773
  onChange: r,
774
774
  minDate: n,
775
775
  displayMode: a = "inline"
776
776
  }) {
777
- const i = Mn(), d = cr(e || i), s = a === "popover", [f, p] = O(!1), k = ee(null), [N, g] = O({
777
+ const i = Dn(), d = cr(e || i), s = a === "popover", [f, p] = A(!1), S = ee(null), [N, y] = A({
778
778
  horizontal: "left",
779
779
  vertical: "bottom"
780
- }), [v, m] = O(d.year), [h, b] = O(d.month), [$, P] = O("days"), j = 16, [D, w] = O(0), C = v - 7 + D, L = Array.from({ length: j }, (u, M) => C + M);
781
- H(() => {
782
- if (!s || !f || !k.current) return;
783
- const u = k.current.getBoundingClientRect(), M = 8, F = 280, Z = 340, G = u.left + F > window.innerWidth - M, ne = u.right - F >= M, le = u.bottom + 8 + Z > window.innerHeight - M, x = u.top - 8 - Z >= M;
784
- g({
785
- horizontal: G && ne ? "right" : "left",
780
+ }), [v, m] = A(d.year), [h, b] = A(d.month), [$, R] = A("days"), P = 16, [D, w] = A(0), C = v - 7 + D, L = Array.from({ length: P }, (u, M) => C + M);
781
+ _(() => {
782
+ if (!s || !f || !S.current) return;
783
+ const u = S.current.getBoundingClientRect(), M = 8, F = 280, K = 340, V = u.left + F > window.innerWidth - M, ne = u.right - F >= M, le = u.bottom + 8 + K > window.innerHeight - M, x = u.top - 8 - K >= M;
784
+ y({
785
+ horizontal: V && ne ? "right" : "left",
786
786
  vertical: le && x ? "top" : "bottom"
787
787
  });
788
- }, [s, f]), H(() => {
788
+ }, [s, f]), _(() => {
789
789
  if (!s || !f) return;
790
790
  function u(F) {
791
- k.current && (k.current.contains(F.target) || p(!1));
791
+ S.current && (S.current.contains(F.target) || p(!1));
792
792
  }
793
793
  function M(F) {
794
794
  F.key === "Escape" && p(!1);
@@ -803,17 +803,17 @@ function Ga({
803
803
  function T() {
804
804
  h === 12 ? (m((u) => u + 1), b(1)) : b((u) => u + 1);
805
805
  }
806
- const B = new Date(v, h - 1, 1).getDay(), z = new Date(v, h, 0).getDate(), _ = [
806
+ const B = new Date(v, h - 1, 1).getDay(), z = new Date(v, h, 0).getDate(), H = [
807
807
  ...Array(B).fill(null),
808
808
  ...Array.from({ length: z }, (u, M) => M + 1)
809
809
  ];
810
- for (; _.length < xt * 7; ) _.push(null);
811
- const U = _.slice(0, xt * 7);
810
+ for (; H.length < xt * 7; ) H.push(null);
811
+ const U = H.slice(0, xt * 7);
812
812
  function W(u) {
813
813
  const M = kt(v, h, u);
814
814
  n && M < n || (r(M), s && p(!1));
815
815
  }
816
- const X = {
816
+ const Z = {
817
817
  background: "none",
818
818
  border: "none",
819
819
  cursor: "pointer",
@@ -850,7 +850,7 @@ function Ga({
850
850
  {
851
851
  type: "button",
852
852
  onClick: I,
853
- style: X,
853
+ style: Z,
854
854
  title: "Mes anterior",
855
855
  children: /* @__PURE__ */ t(Ue, { size: 16 })
856
856
  }
@@ -860,7 +860,7 @@ function Ga({
860
860
  {
861
861
  type: "button",
862
862
  onClick: () => {
863
- P("years"), w(0);
863
+ R("years"), w(0);
864
864
  },
865
865
  style: {
866
866
  background: "none",
@@ -888,9 +888,9 @@ function Ga({
888
888
  {
889
889
  type: "button",
890
890
  onClick: T,
891
- style: X,
891
+ style: Z,
892
892
  title: "Mes siguiente",
893
- children: /* @__PURE__ */ t(je, { size: 16 })
893
+ children: /* @__PURE__ */ t(Re, { size: 16 })
894
894
  }
895
895
  )
896
896
  ] }) : /* @__PURE__ */ o(Se, { children: [
@@ -898,8 +898,8 @@ function Ga({
898
898
  "button",
899
899
  {
900
900
  type: "button",
901
- onClick: () => w((u) => u - j),
902
- style: X,
901
+ onClick: () => w((u) => u - P),
902
+ style: Z,
903
903
  children: /* @__PURE__ */ t(Ue, { size: 16 })
904
904
  }
905
905
  ),
@@ -907,7 +907,7 @@ function Ga({
907
907
  "button",
908
908
  {
909
909
  type: "button",
910
- onClick: () => P("days"),
910
+ onClick: () => R("days"),
911
911
  style: {
912
912
  background: "none",
913
913
  border: "none",
@@ -929,9 +929,9 @@ function Ga({
929
929
  "button",
930
930
  {
931
931
  type: "button",
932
- onClick: () => w((u) => u + j),
933
- style: X,
934
- children: /* @__PURE__ */ t(je, { size: 16 })
932
+ onClick: () => w((u) => u + P),
933
+ style: Z,
934
+ children: /* @__PURE__ */ t(Re, { size: 16 })
935
935
  }
936
936
  )
937
937
  ] })
@@ -947,7 +947,7 @@ function Ga({
947
947
  gap: 3,
948
948
  marginBottom: 8
949
949
  },
950
- children: $n.map((u, M) => {
950
+ children: En.map((u, M) => {
951
951
  const F = M + 1 === h;
952
952
  return /* @__PURE__ */ t(
953
953
  "button",
@@ -992,7 +992,7 @@ function Ga({
992
992
  {
993
993
  type: "button",
994
994
  onClick: () => {
995
- m(u), P("days");
995
+ m(u), R("days");
996
996
  },
997
997
  style: {
998
998
  border: "none",
@@ -1023,7 +1023,7 @@ function Ga({
1023
1023
  gridTemplateColumns: "repeat(7,1fr)",
1024
1024
  padding: "6px 8px 0"
1025
1025
  },
1026
- children: En.map((u) => /* @__PURE__ */ t(
1026
+ children: Mn.map((u) => /* @__PURE__ */ t(
1027
1027
  "div",
1028
1028
  {
1029
1029
  style: {
@@ -1053,7 +1053,7 @@ function Ga({
1053
1053
  children: U.map((u, M) => {
1054
1054
  if (u === null)
1055
1055
  return /* @__PURE__ */ t("div", { style: { aspectRatio: "1" } }, M);
1056
- const F = kt(v, h, u), Z = F === e, G = F === i, ne = !!(n && F < n);
1056
+ const F = kt(v, h, u), K = F === e, V = F === i, ne = !!(n && F < n);
1057
1057
  return /* @__PURE__ */ t(
1058
1058
  "button",
1059
1059
  {
@@ -1066,11 +1066,11 @@ function Ga({
1066
1066
  border: "none",
1067
1067
  cursor: ne ? "not-allowed" : "pointer",
1068
1068
  fontSize: 12,
1069
- fontWeight: Z || G ? 700 : 400,
1070
- background: Z ? "var(--primary)" : "transparent",
1071
- color: Z ? "var(--primary-fg, #ffffff)" : ne ? "var(--text-muted)" : "var(--text-main)",
1069
+ fontWeight: K || V ? 700 : 400,
1070
+ background: K ? "var(--primary)" : "transparent",
1071
+ color: K ? "var(--primary-fg, #ffffff)" : ne ? "var(--text-muted)" : "var(--text-main)",
1072
1072
  opacity: ne ? 0.4 : 1,
1073
- outline: G && !Z ? "2px solid var(--primary)" : "none",
1073
+ outline: V && !K ? "2px solid var(--primary)" : "none",
1074
1074
  outlineOffset: "-2px"
1075
1075
  },
1076
1076
  children: u
@@ -1084,7 +1084,7 @@ function Ga({
1084
1084
  ]
1085
1085
  }
1086
1086
  );
1087
- return s ? /* @__PURE__ */ o("div", { ref: k, className: "relative w-full", children: [
1087
+ return s ? /* @__PURE__ */ o("div", { ref: S, className: "relative w-full", children: [
1088
1088
  /* @__PURE__ */ o(
1089
1089
  "button",
1090
1090
  {
@@ -1100,7 +1100,7 @@ function Ga({
1100
1100
  children: [
1101
1101
  /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-2 min-w-0", children: [
1102
1102
  /* @__PURE__ */ t(wt, { className: "w-4 h-4 text-[var(--text-muted)]" }),
1103
- /* @__PURE__ */ t("span", { className: "truncate", children: Dn(e) })
1103
+ /* @__PURE__ */ t("span", { className: "truncate", children: Ln(e) })
1104
1104
  ] }),
1105
1105
  /* @__PURE__ */ t(
1106
1106
  Ye,
@@ -1124,24 +1124,24 @@ function Ga({
1124
1124
  )
1125
1125
  ] }) : te;
1126
1126
  }
1127
- const Ln = {
1127
+ const Bn = {
1128
1128
  sm: "h-4 w-4",
1129
1129
  md: "h-5 w-5"
1130
1130
  };
1131
- function Va({
1131
+ function Xa({
1132
1132
  label: e,
1133
1133
  description: r,
1134
1134
  error: n,
1135
1135
  size: a = "md",
1136
1136
  className: i = "",
1137
- containerClassName: l = "",
1137
+ containerClassName: c = "",
1138
1138
  disabled: d,
1139
1139
  ...s
1140
1140
  }) {
1141
1141
  return /* @__PURE__ */ o(
1142
1142
  "label",
1143
1143
  {
1144
- className: `group inline-flex items-start gap-2.5 ${d ? "cursor-not-allowed opacity-60" : "cursor-pointer"} ${l}`,
1144
+ className: `group inline-flex items-start gap-2.5 ${d ? "cursor-not-allowed opacity-60" : "cursor-pointer"} ${c}`,
1145
1145
  children: [
1146
1146
  /* @__PURE__ */ o("span", { className: "relative mt-0.5 inline-flex shrink-0", children: [
1147
1147
  /* @__PURE__ */ t(
@@ -1151,10 +1151,10 @@ function Va({
1151
1151
  type: "checkbox",
1152
1152
  disabled: d,
1153
1153
  "aria-invalid": !!n || s["aria-invalid"],
1154
- className: `peer ${Ln[a]} appearance-none rounded border border-[var(--border)] bg-[var(--bg-input)] transition-colors checked:border-[var(--primary)] checked:bg-[var(--primary)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)]/40 ${i}`
1154
+ className: `peer ${Bn[a]} appearance-none rounded border border-[var(--border)] bg-[var(--bg-input)] transition-colors checked:border-[var(--primary)] checked:bg-[var(--primary)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)]/40 ${i}`
1155
1155
  }
1156
1156
  ),
1157
- /* @__PURE__ */ t(Je, { className: "pointer-events-none absolute left-1/2 top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 scale-75 text-[var(--primary-fg)] opacity-0 transition peer-checked:scale-100 peer-checked:opacity-100" })
1157
+ /* @__PURE__ */ t(Qe, { className: "pointer-events-none absolute left-1/2 top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 scale-75 text-[var(--primary-fg)] opacity-0 transition peer-checked:scale-100 peer-checked:opacity-100" })
1158
1158
  ] }),
1159
1159
  (e || r || n) && /* @__PURE__ */ o("span", { className: "min-w-0", children: [
1160
1160
  e && /* @__PURE__ */ t("span", { className: "block text-sm font-medium leading-5 text-[var(--text-main)]", children: e }),
@@ -1169,7 +1169,7 @@ function dr(e) {
1169
1169
  const r = document.createElement("textarea");
1170
1170
  r.value = e, r.style.position = "fixed", r.style.opacity = "0", r.style.pointerEvents = "none", document.body.appendChild(r), r.select(), document.execCommand("copy"), document.body.removeChild(r);
1171
1171
  }
1172
- async function Bn(e) {
1172
+ async function Tn(e) {
1173
1173
  var r;
1174
1174
  if ((r = navigator.clipboard) != null && r.writeText) {
1175
1175
  await navigator.clipboard.writeText(e);
@@ -1177,7 +1177,7 @@ async function Bn(e) {
1177
1177
  }
1178
1178
  dr(e);
1179
1179
  }
1180
- function Tn(e) {
1180
+ function An(e) {
1181
1181
  return typeof e == "function" ? e() : e;
1182
1182
  }
1183
1183
  function ur({
@@ -1186,37 +1186,37 @@ function ur({
1186
1186
  title: n,
1187
1187
  copiedTitle: a = "Copiado",
1188
1188
  copiedLabel: i,
1189
- icon: l = /* @__PURE__ */ t(Or, { size: 14 }),
1190
- copiedIcon: d = /* @__PURE__ */ t(Je, { size: 14 }),
1189
+ icon: c = /* @__PURE__ */ t(Or, { size: 14 }),
1190
+ copiedIcon: d = /* @__PURE__ */ t(Qe, { size: 14 }),
1191
1191
  stopPropagation: s = !0,
1192
1192
  onCopied: f,
1193
1193
  onCopyError: p,
1194
- className: k = "",
1194
+ className: S = "",
1195
1195
  style: N,
1196
- children: g,
1196
+ children: y,
1197
1197
  onClick: v,
1198
1198
  type: m = "button",
1199
1199
  ...h
1200
1200
  }) {
1201
- const [b, $] = O(!1), P = ee(null);
1202
- H(() => () => {
1203
- P.current && window.clearTimeout(P.current);
1201
+ const [b, $] = A(!1), R = ee(null);
1202
+ _(() => () => {
1203
+ R.current && window.clearTimeout(R.current);
1204
1204
  }, []);
1205
- function j(w) {
1206
- $(!0), f == null || f(w), P.current && window.clearTimeout(P.current), P.current = window.setTimeout(() => {
1207
- $(!1), P.current = null;
1205
+ function P(w) {
1206
+ $(!0), f == null || f(w), R.current && window.clearTimeout(R.current), R.current = window.setTimeout(() => {
1207
+ $(!1), R.current = null;
1208
1208
  }, r);
1209
1209
  }
1210
1210
  async function D(w) {
1211
1211
  var L;
1212
1212
  if (s && w.stopPropagation(), v == null || v(w), w.defaultPrevented) return;
1213
- const C = Tn(e);
1213
+ const C = An(e);
1214
1214
  if (C)
1215
1215
  try {
1216
- await Bn(C), j(C);
1216
+ await Tn(C), P(C);
1217
1217
  } catch (I) {
1218
1218
  try {
1219
- dr(C), j(C);
1219
+ dr(C), P(C);
1220
1220
  } catch (T) {
1221
1221
  p == null || p(T, C);
1222
1222
  return;
@@ -1233,7 +1233,7 @@ function ur({
1233
1233
  title: b ? a : n,
1234
1234
  "aria-label": h["aria-label"] ?? (b ? a : n),
1235
1235
  "data-copied": b ? "true" : void 0,
1236
- className: `relative inline-flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-md transition-all duration-200 ${g ? "min-w-7 px-2" : "w-7"} ${k}`,
1236
+ className: `relative inline-flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-md transition-all duration-200 ${y ? "min-w-7 px-2" : "w-7"} ${S}`,
1237
1237
  style: {
1238
1238
  cursor: "pointer",
1239
1239
  background: b ? "rgba(22,163,74,0.15)" : "var(--bg-card)",
@@ -1248,21 +1248,21 @@ function ur({
1248
1248
  {
1249
1249
  className: "inline-flex items-center justify-center transition-all duration-150",
1250
1250
  style: { transform: b ? "scale(1.15)" : "scale(1)" },
1251
- children: b ? d : l
1251
+ children: b ? d : c
1252
1252
  }
1253
1253
  ),
1254
- g && /* @__PURE__ */ t("span", { className: "text-xs font-semibold leading-none", children: b ? i ?? g : g })
1254
+ y && /* @__PURE__ */ t("span", { className: "text-xs font-semibold leading-none", children: b ? i ?? y : y })
1255
1255
  ]
1256
1256
  }
1257
1257
  );
1258
1258
  }
1259
- function Xa({
1259
+ function Za({
1260
1260
  code: e,
1261
1261
  children: r,
1262
1262
  title: n = "Codigo",
1263
1263
  language: a,
1264
1264
  copyLabel: i = "Copiar",
1265
- copiedLabel: l = "Copiado",
1265
+ copiedLabel: c = "Copiado",
1266
1266
  className: d = "",
1267
1267
  style: s,
1268
1268
  onCopied: f
@@ -1296,7 +1296,7 @@ function Xa({
1296
1296
  value: p,
1297
1297
  title: "Copiar codigo",
1298
1298
  copiedTitle: "Codigo copiado",
1299
- copiedLabel: l,
1299
+ copiedLabel: c,
1300
1300
  onCopied: f,
1301
1301
  className: "h-7 min-w-[72px] px-2",
1302
1302
  style: {
@@ -1336,15 +1336,15 @@ function mr({
1336
1336
  options: n,
1337
1337
  placeholder: a = "Seleccionar…",
1338
1338
  emptyLabel: i,
1339
- disabled: l = !1,
1339
+ disabled: c = !1,
1340
1340
  className: d = "",
1341
1341
  style: s,
1342
1342
  height: f = 40,
1343
1343
  padding: p = "0 10px",
1344
- searchable: k = !0,
1344
+ searchable: S = !0,
1345
1345
  minOptionsForSearch: N = 6
1346
1346
  }) {
1347
- const [g, v] = O(!1), [m, h] = O(""), [b, $] = O(-1), [P, j] = O(!1), [D, w] = O({}), C = ee(null), L = ee(null), I = ee(null), T = ee(null), B = k && n.length >= N, z = n.find((u) => u.value === e) ?? null, _ = B && m.trim() ? n.filter(
1347
+ const [y, v] = A(!1), [m, h] = A(""), [b, $] = A(-1), [R, P] = A(!1), [D, w] = A({}), C = ee(null), L = ee(null), I = ee(null), T = ee(null), B = S && n.length >= N, z = n.find((u) => u.value === e) ?? null, H = B && m.trim() ? n.filter(
1348
1348
  (u) => {
1349
1349
  var M;
1350
1350
  return u.label.toLowerCase().includes(m.toLowerCase()) || ((M = u.sublabel) == null ? void 0 : M.toLowerCase().includes(m.toLowerCase()));
@@ -1352,35 +1352,35 @@ function mr({
1352
1352
  ) : n, U = Me(() => {
1353
1353
  const u = C.current;
1354
1354
  if (!u) return;
1355
- const M = u.getBoundingClientRect(), F = B ? 272 : 212, Z = window.innerHeight - M.bottom, G = Z < F && M.top > Z;
1355
+ const M = u.getBoundingClientRect(), F = B ? 272 : 212, K = window.innerHeight - M.bottom, V = K < F && M.top > K;
1356
1356
  w({
1357
1357
  position: "fixed",
1358
1358
  left: M.left,
1359
- top: G ? void 0 : M.bottom + 4,
1360
- bottom: G ? window.innerHeight - M.top + 4 : void 0,
1359
+ top: V ? void 0 : M.bottom + 4,
1360
+ bottom: V ? window.innerHeight - M.top + 4 : void 0,
1361
1361
  width: M.width,
1362
1362
  zIndex: 9999
1363
1363
  });
1364
1364
  }, [B]);
1365
- H(() => j(!0), []), H(() => {
1366
- if (!g) return;
1365
+ _(() => P(!0), []), _(() => {
1366
+ if (!y) return;
1367
1367
  function u(M) {
1368
- var Z, G;
1368
+ var K, V;
1369
1369
  const F = M.target;
1370
- !((Z = C.current) != null && Z.contains(F)) && !((G = L.current) != null && G.contains(F)) && (v(!1), h(""));
1370
+ !((K = C.current) != null && K.contains(F)) && !((V = L.current) != null && V.contains(F)) && (v(!1), h(""));
1371
1371
  }
1372
1372
  return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
1373
- }, [g]), H(() => {
1374
- g && ($(-1), U(), B && setTimeout(() => {
1373
+ }, [y]), _(() => {
1374
+ y && ($(-1), U(), B && setTimeout(() => {
1375
1375
  var u;
1376
1376
  return (u = I.current) == null ? void 0 : u.focus();
1377
1377
  }, 0));
1378
- }, [g, B, U]), H(() => {
1379
- if (g)
1378
+ }, [y, B, U]), _(() => {
1379
+ if (y)
1380
1380
  return window.addEventListener("resize", U), window.addEventListener("scroll", U, !0), () => {
1381
1381
  window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0);
1382
1382
  };
1383
- }, [g, U]), H(() => {
1383
+ }, [y, U]), _(() => {
1384
1384
  if (b < 0 || !T.current) return;
1385
1385
  const u = T.current.children[b];
1386
1386
  u == null || u.scrollIntoView({ block: "nearest" });
@@ -1391,12 +1391,12 @@ function mr({
1391
1391
  },
1392
1392
  [r]
1393
1393
  );
1394
- function X(u) {
1395
- if (!g) {
1394
+ function Z(u) {
1395
+ if (!y) {
1396
1396
  (u.key === "Enter" || u.key === " " || u.key === "ArrowDown") && (u.preventDefault(), v(!0));
1397
1397
  return;
1398
1398
  }
1399
- u.key === "Escape" ? (u.preventDefault(), v(!1), h("")) : u.key === "ArrowDown" ? (u.preventDefault(), $((M) => Math.min(M + 1, _.length - 1))) : u.key === "ArrowUp" ? (u.preventDefault(), $((M) => Math.max(M - 1, i ? -1 : 0))) : u.key === "Enter" && (u.preventDefault(), b === -1 && i ? W("") : _[b] && W(_[b].value));
1399
+ u.key === "Escape" ? (u.preventDefault(), v(!1), h("")) : u.key === "ArrowDown" ? (u.preventDefault(), $((M) => Math.min(M + 1, H.length - 1))) : u.key === "ArrowUp" ? (u.preventDefault(), $((M) => Math.max(M - 1, i ? -1 : 0))) : u.key === "Enter" && (u.preventDefault(), b === -1 && i ? W("") : H[b] && W(H[b].value));
1400
1400
  }
1401
1401
  const te = /* @__PURE__ */ o(
1402
1402
  "div",
@@ -1416,7 +1416,7 @@ function mr({
1416
1416
  style: { borderBottom: "1px solid var(--border)" },
1417
1417
  children: [
1418
1418
  /* @__PURE__ */ t(
1419
- Ze,
1419
+ Je,
1420
1420
  {
1421
1421
  className: "w-3.5 h-3.5 flex-shrink-0",
1422
1422
  style: { color: "var(--text-muted)" }
@@ -1485,23 +1485,23 @@ function mr({
1485
1485
  children: i
1486
1486
  }
1487
1487
  ),
1488
- _.map((u, M) => {
1489
- const Z = M === b, G = u.value === e;
1488
+ H.map((u, M) => {
1489
+ const K = M === b, V = u.value === e;
1490
1490
  return /* @__PURE__ */ o(
1491
1491
  "li",
1492
1492
  {
1493
1493
  role: "option",
1494
- "aria-selected": G,
1494
+ "aria-selected": V,
1495
1495
  onMouseDown: (ne) => {
1496
1496
  ne.preventDefault(), u.disabled || W(u.value);
1497
1497
  },
1498
1498
  onMouseEnter: () => !u.disabled && $(M),
1499
1499
  className: "flex items-center gap-2 px-3 py-2 cursor-pointer text-sm transition-colors",
1500
1500
  style: {
1501
- background: Z ? "var(--bg-hover)" : G ? "color-mix(in srgb, var(--primary) 6%, transparent)" : "transparent",
1501
+ background: K ? "var(--bg-hover)" : V ? "color-mix(in srgb, var(--primary) 6%, transparent)" : "transparent",
1502
1502
  color: u.disabled ? "var(--text-muted)" : "var(--text-main)",
1503
1503
  cursor: u.disabled ? "not-allowed" : "pointer",
1504
- boxShadow: G ? "inset 2px 0 0 var(--primary)" : void 0
1504
+ boxShadow: V ? "inset 2px 0 0 var(--primary)" : void 0
1505
1505
  },
1506
1506
  children: [
1507
1507
  u.color && /* @__PURE__ */ t(
@@ -1535,7 +1535,7 @@ function mr({
1535
1535
  u.value
1536
1536
  );
1537
1537
  }),
1538
- _.length === 0 && /* @__PURE__ */ t(
1538
+ H.length === 0 && /* @__PURE__ */ t(
1539
1539
  "li",
1540
1540
  {
1541
1541
  className: "px-3 py-4 text-sm text-center",
@@ -1555,26 +1555,26 @@ function mr({
1555
1555
  ref: C,
1556
1556
  className: `relative ${d || "w-full"}`,
1557
1557
  style: s,
1558
- onKeyDown: X,
1558
+ onKeyDown: Z,
1559
1559
  children: [
1560
1560
  /* @__PURE__ */ o(
1561
1561
  "button",
1562
1562
  {
1563
1563
  type: "button",
1564
- disabled: l,
1565
- onClick: () => !l && v((u) => !u),
1564
+ disabled: c,
1565
+ onClick: () => !c && v((u) => !u),
1566
1566
  className: "flex w-full items-center gap-2 rounded-lg text-left text-sm transition-colors focus:outline-none",
1567
1567
  style: {
1568
1568
  height: Yt(f),
1569
1569
  padding: Yt(p),
1570
1570
  background: "var(--bg-input)",
1571
1571
  color: z ? "var(--text-main)" : "var(--text-muted)",
1572
- border: g ? "1px solid var(--primary)" : "1px solid var(--border)",
1573
- opacity: l ? 0.5 : 1,
1574
- cursor: l ? "not-allowed" : "pointer"
1572
+ border: y ? "1px solid var(--primary)" : "1px solid var(--border)",
1573
+ opacity: c ? 0.5 : 1,
1574
+ cursor: c ? "not-allowed" : "pointer"
1575
1575
  },
1576
1576
  "aria-haspopup": "listbox",
1577
- "aria-expanded": g,
1577
+ "aria-expanded": y,
1578
1578
  children: [
1579
1579
  (z == null ? void 0 : z.color) && /* @__PURE__ */ t(
1580
1580
  "span",
@@ -1612,14 +1612,14 @@ function mr({
1612
1612
  className: "flex-shrink-0 w-4 h-4 transition-transform",
1613
1613
  style: {
1614
1614
  color: "var(--text-muted)",
1615
- transform: g ? "rotate(180deg)" : "rotate(0deg)"
1615
+ transform: y ? "rotate(180deg)" : "rotate(0deg)"
1616
1616
  }
1617
1617
  }
1618
1618
  )
1619
1619
  ]
1620
1620
  }
1621
1621
  ),
1622
- g && P && Re(te, document.body)
1622
+ y && R && He(te, document.body)
1623
1623
  ]
1624
1624
  }
1625
1625
  );
@@ -1628,18 +1628,18 @@ function it(e) {
1628
1628
  if (e !== void 0)
1629
1629
  return typeof e == "number" ? `${e}px` : e;
1630
1630
  }
1631
- function Za({
1631
+ function Ja({
1632
1632
  value: e,
1633
1633
  onChange: r,
1634
1634
  placeholder: n = "Buscar...",
1635
1635
  className: a = "",
1636
1636
  height: i = 40,
1637
- padding: l = "0 10px 0 30px",
1637
+ padding: c = "0 10px 0 30px",
1638
1638
  iconLeft: d = 10
1639
1639
  }) {
1640
1640
  return /* @__PURE__ */ o("div", { className: `relative ${a}`, children: [
1641
1641
  /* @__PURE__ */ t(
1642
- Ze,
1642
+ Je,
1643
1643
  {
1644
1644
  className: "absolute top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-[var(--text-muted)] pointer-events-none",
1645
1645
  style: { left: it(d) }
@@ -1653,27 +1653,27 @@ function Za({
1653
1653
  onChange: (s) => r(s.target.value),
1654
1654
  placeholder: n,
1655
1655
  className: "w-full rounded-lg border border-[var(--border)] [background:var(--bg-card)] text-sm text-[var(--text-main)] placeholder:text-[var(--text-muted)] outline-none transition-[border-color,box-shadow] focus:border-primary focus:ring-2 focus:ring-primary/20",
1656
- style: { height: it(i), padding: it(l) }
1656
+ style: { height: it(i), padding: it(c) }
1657
1657
  }
1658
1658
  )
1659
1659
  ] });
1660
1660
  }
1661
- function Ja({
1661
+ function Qa({
1662
1662
  value: e,
1663
1663
  onChange: r,
1664
1664
  options: n,
1665
1665
  placeholder: a,
1666
1666
  icon: i,
1667
- className: l = "",
1667
+ className: c = "",
1668
1668
  height: d = 40,
1669
1669
  padding: s,
1670
1670
  iconLeft: f = 10,
1671
1671
  searchable: p = !0
1672
1672
  }) {
1673
- const k = i ? n.map(
1674
- (N, g) => g === 0 && !N.color ? { ...N, sublabel: N.sublabel ?? void 0 } : N
1673
+ const S = i ? n.map(
1674
+ (N, y) => y === 0 && !N.color ? { ...N, sublabel: N.sublabel ?? void 0 } : N
1675
1675
  ) : n;
1676
- return /* @__PURE__ */ o("div", { className: `relative ${l}`, children: [
1676
+ return /* @__PURE__ */ o("div", { className: `relative ${c}`, children: [
1677
1677
  i && /* @__PURE__ */ t(
1678
1678
  "span",
1679
1679
  {
@@ -1687,7 +1687,7 @@ function Ja({
1687
1687
  {
1688
1688
  value: e,
1689
1689
  onChange: r,
1690
- options: k,
1690
+ options: S,
1691
1691
  placeholder: a,
1692
1692
  searchable: p,
1693
1693
  minOptionsForSearch: 5,
@@ -1707,57 +1707,57 @@ const On = {
1707
1707
  "4xl": "56rem",
1708
1708
  "5xl": "64rem"
1709
1709
  }, ot = 180;
1710
- function An({
1710
+ function zn({
1711
1711
  open: e,
1712
1712
  onClose: r,
1713
1713
  title: n,
1714
1714
  subtitle: a,
1715
1715
  leadingIcon: i,
1716
- headerActions: l,
1716
+ headerActions: c,
1717
1717
  footer: d,
1718
1718
  children: s,
1719
1719
  size: f = "md",
1720
1720
  maxWidth: p,
1721
- zIndex: k = 1e3,
1721
+ zIndex: S = 1e3,
1722
1722
  closeOnBackdrop: N = !0,
1723
- closeOnEscape: g = !0,
1723
+ closeOnEscape: y = !0,
1724
1724
  showCloseButton: v = !0,
1725
1725
  placement: m = "center",
1726
1726
  bodyClassName: h = "px-6 py-5",
1727
1727
  panelClassName: b = "",
1728
1728
  backdropClassName: $ = "bg-black/50 backdrop-blur-sm",
1729
- contentClassName: P = "p-4",
1730
- ariaLabel: j,
1729
+ contentClassName: R = "p-4",
1730
+ ariaLabel: P,
1731
1731
  frameless: D = !1
1732
1732
  }) {
1733
- const [w, C] = O(!1), [L, I] = O(!1), T = ee(null);
1734
- if (H(() => (e ? (T.current && clearTimeout(T.current), C(!0), requestAnimationFrame(() => requestAnimationFrame(() => I(!0)))) : (I(!1), T.current = setTimeout(
1733
+ const [w, C] = A(!1), [L, I] = A(!1), T = ee(null);
1734
+ if (_(() => (e ? (T.current && clearTimeout(T.current), C(!0), requestAnimationFrame(() => requestAnimationFrame(() => I(!0)))) : (I(!1), T.current = setTimeout(
1735
1735
  () => C(!1),
1736
1736
  ot + 40
1737
1737
  )), () => {
1738
1738
  T.current && clearTimeout(T.current);
1739
- }), [e]), H(() => {
1739
+ }), [e]), _(() => {
1740
1740
  if (e)
1741
1741
  return document.body.style.overflow = "hidden", () => {
1742
1742
  document.body.style.overflow = "";
1743
1743
  };
1744
- }, [e]), H(() => {
1745
- if (!e || !g) return;
1746
- const X = (te) => {
1744
+ }, [e]), _(() => {
1745
+ if (!e || !y) return;
1746
+ const Z = (te) => {
1747
1747
  te.key === "Escape" && r();
1748
1748
  };
1749
- return window.addEventListener("keydown", X), () => window.removeEventListener("keydown", X);
1750
- }, [g, r, e]), !w) return null;
1751
- const B = n || a || i || l || v, z = p ?? On[f], _ = m === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", U = m === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", W = L ? "translateY(0) scale(1)" : m === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1752
- return Re(
1749
+ return window.addEventListener("keydown", Z), () => window.removeEventListener("keydown", Z);
1750
+ }, [y, r, e]), !w) return null;
1751
+ const B = n || a || i || c || v, z = p ?? On[f], H = m === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", U = m === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", W = L ? "translateY(0) scale(1)" : m === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1752
+ return He(
1753
1753
  /* @__PURE__ */ o(
1754
1754
  "div",
1755
1755
  {
1756
1756
  role: "dialog",
1757
1757
  "aria-modal": "true",
1758
- "aria-label": j ?? n,
1759
- className: `fixed inset-0 flex ${_} ${P}`,
1760
- style: { zIndex: k },
1758
+ "aria-label": P ?? n,
1759
+ className: `fixed inset-0 flex ${H} ${R}`,
1760
+ style: { zIndex: S },
1761
1761
  children: [
1762
1762
  /* @__PURE__ */ t(
1763
1763
  "div",
@@ -1782,7 +1782,7 @@ function An({
1782
1782
  transform: W,
1783
1783
  transition: `opacity ${ot}ms ease, transform ${ot}ms ease`
1784
1784
  },
1785
- onClick: (X) => X.stopPropagation(),
1785
+ onClick: (Z) => Z.stopPropagation(),
1786
1786
  children: [
1787
1787
  B && /* @__PURE__ */ o(
1788
1788
  "div",
@@ -1812,7 +1812,7 @@ function An({
1812
1812
  ] })
1813
1813
  ] }),
1814
1814
  /* @__PURE__ */ o("div", { className: "flex flex-shrink-0 items-center gap-2", children: [
1815
- l,
1815
+ c,
1816
1816
  v && /* @__PURE__ */ t(be, { variant: "icon", onClick: r, title: "Cerrar", children: /* @__PURE__ */ t(Ne, { className: "h-5 w-5" }) })
1817
1817
  ] })
1818
1818
  ]
@@ -1836,7 +1836,7 @@ function An({
1836
1836
  document.body
1837
1837
  );
1838
1838
  }
1839
- const zn = {
1839
+ const In = {
1840
1840
  danger: {
1841
1841
  iconBg: "rgba(239,68,68,0.12)",
1842
1842
  iconColor: "var(--danger)",
@@ -1856,19 +1856,19 @@ const zn = {
1856
1856
  btnColor: "#fff"
1857
1857
  }
1858
1858
  };
1859
- function Qa({
1859
+ function eo({
1860
1860
  open: e,
1861
1861
  title: r,
1862
1862
  description: n,
1863
1863
  confirmLabel: a = "Confirmar",
1864
1864
  cancelLabel: i = "Cancelar",
1865
- variant: l = "danger",
1865
+ variant: c = "danger",
1866
1866
  onConfirm: d,
1867
1867
  onCancel: s
1868
1868
  }) {
1869
- const f = zn[l];
1869
+ const f = In[c];
1870
1870
  return /* @__PURE__ */ o(
1871
- An,
1871
+ zn,
1872
1872
  {
1873
1873
  open: e,
1874
1874
  onClose: s,
@@ -1945,40 +1945,40 @@ function Qa({
1945
1945
  }
1946
1946
  );
1947
1947
  }
1948
- function In(e, r) {
1948
+ function jn(e, r) {
1949
1949
  const n = typeof e == "function" ? e() : e;
1950
1950
  return r ? r(n) : n;
1951
1951
  }
1952
- function eo({
1952
+ function to({
1953
1953
  url: e,
1954
1954
  resolveUrl: r,
1955
1955
  title: n = "Copiar link",
1956
1956
  copiedTitle: a = "Link copiado",
1957
- icon: i = /* @__PURE__ */ t(Ar, { className: "h-3.5 w-3.5" }),
1958
- ...l
1957
+ icon: i = /* @__PURE__ */ t(zr, { className: "h-3.5 w-3.5" }),
1958
+ ...c
1959
1959
  }) {
1960
1960
  return /* @__PURE__ */ t(
1961
1961
  ur,
1962
1962
  {
1963
- ...l,
1964
- value: () => In(e, r),
1963
+ ...c,
1964
+ value: () => jn(e, r),
1965
1965
  title: n,
1966
1966
  copiedTitle: a,
1967
1967
  icon: i
1968
1968
  }
1969
1969
  );
1970
1970
  }
1971
- const jn = "[&_button]:h-7 [&_button]:min-h-0 [&_button]:gap-1 [&_button]:px-2 [&_button]:text-xs [&_button_svg]:h-3.5 [&_button_svg]:w-3.5 [&_button[data-icon=true]]:w-7 [&_button[data-icon=true]]:px-0", Pn = [];
1972
- function Ve(e) {
1971
+ const Pn = "[&_button]:h-7 [&_button]:min-h-0 [&_button]:gap-1 [&_button]:px-2 [&_button]:text-xs [&_button_svg]:h-3.5 [&_button_svg]:w-3.5 [&_button[data-icon=true]]:w-7 [&_button[data-icon=true]]:px-0", Rn = [];
1972
+ function Xe(e) {
1973
1973
  if (!e) return 150;
1974
1974
  const r = parseInt(e, 10);
1975
1975
  return isNaN(r) || r <= 0 ? 150 : r;
1976
1976
  }
1977
- function ze(e, r) {
1977
+ function je(e, r) {
1978
1978
  const n = e.minWidth ?? 80, a = e.maxWidth ?? 1 / 0;
1979
1979
  return Math.min(a, Math.max(n, r));
1980
1980
  }
1981
- function Rn(e, r) {
1981
+ function _n(e, r) {
1982
1982
  if (r <= 7) return Array.from({ length: r }, (a, i) => i + 1);
1983
1983
  const n = [1];
1984
1984
  e > 3 && n.push("...");
@@ -1986,7 +1986,7 @@ function Rn(e, r) {
1986
1986
  n.push(a);
1987
1987
  return e < r - 2 && n.push("..."), n.push(r), n;
1988
1988
  }
1989
- function Ie(e, r) {
1989
+ function Pe(e, r) {
1990
1990
  var d;
1991
1991
  const n = new Set(
1992
1992
  r.filter((s) => s.hideable !== !1).map((s) => s.key)
@@ -1996,10 +1996,10 @@ function Ie(e, r) {
1996
1996
  if (r.filter(
1997
1997
  (s) => !a.includes(s.key)
1998
1998
  ).length > 0) return a;
1999
- const l = (d = r.find(
1999
+ const c = (d = r.find(
2000
2000
  (s) => s.hideable !== !1
2001
2001
  )) == null ? void 0 : d.key;
2002
- return l ? a.filter((s) => s !== l) : [];
2002
+ return c ? a.filter((s) => s !== c) : [];
2003
2003
  }
2004
2004
  function qt({
2005
2005
  children: e,
@@ -2022,27 +2022,27 @@ function qt({
2022
2022
  }
2023
2023
  );
2024
2024
  }
2025
- function to({
2025
+ function ro({
2026
2026
  columns: e,
2027
2027
  data: r,
2028
2028
  getRowId: n,
2029
2029
  loading: a = !1,
2030
2030
  skeletonRows: i = 8,
2031
- emptyIcon: l,
2031
+ emptyIcon: c,
2032
2032
  emptyText: d = "Sin resultados",
2033
2033
  onRowClick: s,
2034
2034
  selected: f,
2035
2035
  onToggleOne: p,
2036
- onToggleAll: k,
2036
+ onToggleAll: S,
2037
2037
  highlightSelected: N = !0,
2038
- rowClassName: g,
2038
+ rowClassName: y,
2039
2039
  getRowCategory: v,
2040
2040
  stickyHeader: m = !0,
2041
2041
  pageSize: h = 25,
2042
2042
  pageSizeOptions: b = [25, 50, 100],
2043
2043
  pageSizeSelectWidth: $ = 62,
2044
- pageSizeSelectHeight: P = 30,
2045
- pageSizeSelectPadding: j = "0 7px",
2044
+ pageSizeSelectHeight: R = 30,
2045
+ pageSizeSelectPadding: P = "0 7px",
2046
2046
  totalRows: D,
2047
2047
  page: w,
2048
2048
  onPageChange: C,
@@ -2051,69 +2051,69 @@ function to({
2051
2051
  stickyFirstColumn: T = !1,
2052
2052
  bottomOffset: B = 0,
2053
2053
  compact: z = !0,
2054
- restrictHeight: _ = !0,
2054
+ restrictHeight: H = !0,
2055
2055
  minTableWidth: U,
2056
2056
  enableColumnVisibility: W = !1,
2057
- hiddenColumnKeys: X,
2058
- defaultHiddenColumnKeys: te = Pn,
2057
+ hiddenColumnKeys: Z,
2058
+ defaultHiddenColumnKeys: te = Rn,
2059
2059
  onHiddenColumnKeysChange: u,
2060
2060
  columnVisibilityLabel: M = "Columnas"
2061
2061
  }) {
2062
- const F = e.map((c) => c.key).join(","), [Z, G] = O(!I), ne = ee(null), le = ee(!I), x = X !== void 0, [J, ie] = O(() => Ie(te, e)), V = Ie(
2063
- x ? X : J,
2062
+ const F = e.map((l) => l.key).join(","), [K, V] = A(!I), ne = ee(null), le = ee(!I), x = Z !== void 0, [J, ie] = A(() => Pe(te, e)), X = Pe(
2063
+ x ? Z : J,
2064
2064
  e
2065
- ), [ae, A] = O(!1), [K, Q] = O(
2065
+ ), [ae, O] = A(!1), [G, Q] = A(
2066
2066
  null
2067
- ), [ue, he] = O(
2067
+ ), [ue, he] = A(
2068
2068
  {}
2069
- ), Y = ee(null), ve = ee(null), Qe = (c, y) => 50 + (c * 17 + y * 13 + 7) % 40, He = ee(null), [_e, et] = O(
2069
+ ), Y = ee(null), ve = ee(null), qe = (l, g) => 50 + (l * 17 + g * 13 + 7) % 40, Be = ee(null), [Te, et] = A(
2070
2070
  void 0
2071
- ), [se, tt] = O(!1);
2072
- H(() => {
2073
- const y = h !== !1 ? 32 : 0, S = 12;
2074
- function R() {
2075
- if (tt(window.innerWidth < 640), !He.current) return;
2076
- const q = He.current.getBoundingClientRect().top;
2071
+ ), [se, tt] = A(!1);
2072
+ _(() => {
2073
+ const g = h !== !1 ? 32 : 0, k = 12;
2074
+ function j() {
2075
+ if (tt(window.innerWidth < 640), !Be.current) return;
2076
+ const q = Be.current.getBoundingClientRect().top;
2077
2077
  et(
2078
2078
  Math.max(
2079
2079
  120,
2080
- window.innerHeight - q - y - S - B
2080
+ window.innerHeight - q - g - k - B
2081
2081
  )
2082
2082
  );
2083
2083
  }
2084
- return R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
2084
+ return j(), window.addEventListener("resize", j), () => window.removeEventListener("resize", j);
2085
2085
  }, [a, h, B]);
2086
- const [Ce, De] = O(
2087
- () => e.map((c) => c.key)
2088
- ), [$e, We] = O(
2086
+ const [Ce, De] = A(
2087
+ () => e.map((l) => l.key)
2088
+ ), [$e, We] = A(
2089
2089
  () => Object.fromEntries(
2090
- e.map((c) => [c.key, ze(c, Ve(c.width))])
2090
+ e.map((l) => [l.key, je(l, Xe(l.width))])
2091
2091
  )
2092
2092
  );
2093
- H(() => {
2094
- const c = e.map((S) => S.key);
2093
+ _(() => {
2094
+ const l = e.map((k) => k.key);
2095
2095
  if (!I) {
2096
- De(c), x || ie(
2097
- Ie(te, e)
2098
- ), le.current = !1, G(!0);
2096
+ De(l), x || ie(
2097
+ Pe(te, e)
2098
+ ), le.current = !1, V(!0);
2099
2099
  return;
2100
2100
  }
2101
- let y = !1;
2102
- return le.current = !1, G(!1), fetch(
2101
+ let g = !1;
2102
+ return le.current = !1, V(!1), fetch(
2103
2103
  `/api/user/preferences/datatables?key=${encodeURIComponent(I)}`,
2104
2104
  { cache: "no-store" }
2105
- ).then((S) => S.ok ? S.json() : null).then((S) => {
2105
+ ).then((k) => k.ok ? k.json() : null).then((k) => {
2106
2106
  var at, zt, It;
2107
- if (y) return;
2108
- const R = (at = S == null ? void 0 : S.settings) == null ? void 0 : at.columnOrder, q = Array.isArray(R) ? R.filter((xe) => c.includes(xe)) : [], oe = c.filter((xe) => !q.includes(xe)), de = q.length > 0 ? [...q, ...oe] : c, Ae = Object.fromEntries(
2109
- e.map((xe) => [xe.key, ze(xe, Ve(xe.width))])
2110
- ), re = ((zt = S == null ? void 0 : S.settings) == null ? void 0 : zt.columnWidths) ?? {}, fe = Object.fromEntries(
2107
+ if (g) return;
2108
+ const j = (at = k == null ? void 0 : k.settings) == null ? void 0 : at.columnOrder, q = Array.isArray(j) ? j.filter((xe) => l.includes(xe)) : [], oe = l.filter((xe) => !q.includes(xe)), de = q.length > 0 ? [...q, ...oe] : l, Ie = Object.fromEntries(
2109
+ e.map((xe) => [xe.key, je(xe, Xe(xe.width))])
2110
+ ), re = ((zt = k == null ? void 0 : k.settings) == null ? void 0 : zt.columnWidths) ?? {}, fe = Object.fromEntries(
2111
2111
  e.map((xe) => [
2112
2112
  xe.key,
2113
- ze(xe, re[xe.key] ?? Ae[xe.key])
2113
+ je(xe, re[xe.key] ?? Ie[xe.key])
2114
2114
  ])
2115
- ), nt = Ie(
2116
- ((It = S == null ? void 0 : S.settings) == null ? void 0 : It.hiddenColumnKeys) ?? te,
2115
+ ), nt = Pe(
2116
+ ((It = k == null ? void 0 : k.settings) == null ? void 0 : It.hiddenColumnKeys) ?? te,
2117
2117
  e
2118
2118
  );
2119
2119
  De(de), We(fe), x || ie(nt), ne.current = JSON.stringify({
@@ -2122,29 +2122,29 @@ function to({
2122
2122
  hiddenColumnKeys: nt
2123
2123
  }), le.current = !0;
2124
2124
  }).catch(() => {
2125
- if (!y) {
2126
- De(c);
2127
- const S = Object.fromEntries(
2125
+ if (!g) {
2126
+ De(l);
2127
+ const k = Object.fromEntries(
2128
2128
  e.map((q) => [
2129
2129
  q.key,
2130
- ze(q, Ve(q.width))
2130
+ je(q, Xe(q.width))
2131
2131
  ])
2132
2132
  );
2133
- We(S);
2134
- const R = Ie(
2133
+ We(k);
2134
+ const j = Pe(
2135
2135
  te,
2136
2136
  e
2137
2137
  );
2138
- x || ie(R), ne.current = JSON.stringify({
2139
- columnOrder: c,
2140
- columnWidths: S,
2141
- hiddenColumnKeys: R
2138
+ x || ie(j), ne.current = JSON.stringify({
2139
+ columnOrder: l,
2140
+ columnWidths: k,
2141
+ hiddenColumnKeys: j
2142
2142
  }), le.current = !0;
2143
2143
  }
2144
2144
  }).finally(() => {
2145
- y || G(!0);
2145
+ g || V(!0);
2146
2146
  }), () => {
2147
- y = !0;
2147
+ g = !0;
2148
2148
  };
2149
2149
  }, [
2150
2150
  I,
@@ -2152,180 +2152,180 @@ function to({
2152
2152
  e,
2153
2153
  te,
2154
2154
  x
2155
- ]), H(() => {
2156
- if (!I || !Z || !le.current) return;
2157
- const c = {
2155
+ ]), _(() => {
2156
+ if (!I || !K || !le.current) return;
2157
+ const l = {
2158
2158
  columnOrder: Ce,
2159
2159
  columnWidths: $e,
2160
- hiddenColumnKeys: V
2161
- }, y = JSON.stringify(c);
2162
- if (y === ne.current) return;
2163
- const S = window.setTimeout(() => {
2160
+ hiddenColumnKeys: X
2161
+ }, g = JSON.stringify(l);
2162
+ if (g === ne.current) return;
2163
+ const k = window.setTimeout(() => {
2164
2164
  fetch("/api/user/preferences/datatables", {
2165
2165
  method: "PATCH",
2166
2166
  headers: { "Content-Type": "application/json" },
2167
- body: JSON.stringify({ key: I, settings: c })
2168
- }).then((R) => {
2169
- R.ok && (ne.current = y);
2167
+ body: JSON.stringify({ key: I, settings: l })
2168
+ }).then((j) => {
2169
+ j.ok && (ne.current = g);
2170
2170
  }).catch(() => {
2171
2171
  });
2172
2172
  }, 300);
2173
- return () => window.clearTimeout(S);
2174
- }, [Ce, $e, V, I, Z]), H(() => {
2175
- De((c) => {
2176
- const y = e.map((q) => q.key), S = c.filter((q) => y.includes(q)), R = y.filter((q) => !S.includes(q));
2177
- return [...S, ...R];
2173
+ return () => window.clearTimeout(k);
2174
+ }, [Ce, $e, X, I, K]), _(() => {
2175
+ De((l) => {
2176
+ const g = e.map((q) => q.key), k = l.filter((q) => g.includes(q)), j = g.filter((q) => !k.includes(q));
2177
+ return [...k, ...j];
2178
2178
  });
2179
2179
  }, [F, e]);
2180
- const qe = Ce.map((c) => e.find((y) => y.key === c)).filter((c) => !!c), E = qe.filter(
2181
- (c) => !V.includes(c.key)
2180
+ const Ge = Ce.map((l) => e.find((g) => g.key === l)).filter((l) => !!l), E = Ge.filter(
2181
+ (l) => !X.includes(l.key)
2182
2182
  );
2183
- function me(c) {
2184
- const y = Ie(c, e);
2185
- x || ie(y), u == null || u(y);
2183
+ function me(l) {
2184
+ const g = Pe(l, e);
2185
+ x || ie(g), u == null || u(g);
2186
2186
  }
2187
- function pe(c) {
2187
+ function pe(l) {
2188
2188
  me(
2189
- V.includes(c) ? V.filter((y) => y !== c) : [...V, c]
2189
+ X.includes(l) ? X.filter((g) => g !== l) : [...X, l]
2190
2190
  );
2191
2191
  }
2192
- function Be() {
2192
+ function Ae() {
2193
2193
  me([]);
2194
2194
  }
2195
2195
  const ce = we.useCallback(
2196
- (c = ve.current) => {
2197
- if (!c) return;
2198
- const y = c.getBoundingClientRect(), S = 256, R = Math.min(
2199
- Math.max(8, y.right - S),
2200
- window.innerWidth - S - 8
2201
- ), q = window.innerHeight - y.bottom, oe = q < 288 && y.top > q ? void 0 : y.bottom + 6, de = oe === void 0 ? window.innerHeight - y.top + 6 : void 0;
2196
+ (l = ve.current) => {
2197
+ if (!l) return;
2198
+ const g = l.getBoundingClientRect(), k = 256, j = Math.min(
2199
+ Math.max(8, g.right - k),
2200
+ window.innerWidth - k - 8
2201
+ ), q = window.innerHeight - g.bottom, oe = q < 288 && g.top > q ? void 0 : g.bottom + 6, de = oe === void 0 ? window.innerHeight - g.top + 6 : void 0;
2202
2202
  he({
2203
2203
  position: "fixed",
2204
2204
  zIndex: 9999,
2205
- left: R,
2205
+ left: j,
2206
2206
  top: oe,
2207
2207
  bottom: de,
2208
- width: S
2208
+ width: k
2209
2209
  });
2210
2210
  },
2211
2211
  []
2212
2212
  );
2213
- function Ke(c, y) {
2214
- c.preventDefault(), c.stopPropagation();
2215
- const S = ve.current === c.currentTarget && K === y;
2216
- if (ae && S) {
2217
- A(!1), Q(null);
2213
+ function Ke(l, g) {
2214
+ l.preventDefault(), l.stopPropagation();
2215
+ const k = ve.current === l.currentTarget && G === g;
2216
+ if (ae && k) {
2217
+ O(!1), Q(null);
2218
2218
  return;
2219
2219
  }
2220
- ve.current = c.currentTarget, Q(y), ce(c.currentTarget), A(!0);
2220
+ ve.current = l.currentTarget, Q(g), ce(l.currentTarget), O(!0);
2221
2221
  }
2222
- H(() => {
2223
- We((c) => {
2224
- const y = Object.fromEntries(
2225
- e.map((S) => [S.key, ze(S, Ve(S.width))])
2222
+ _(() => {
2223
+ We((l) => {
2224
+ const g = Object.fromEntries(
2225
+ e.map((k) => [k.key, je(k, Xe(k.width))])
2226
2226
  );
2227
2227
  return Object.fromEntries(
2228
- e.map((S) => [
2229
- S.key,
2230
- ze(S, c[S.key] ?? y[S.key])
2228
+ e.map((k) => [
2229
+ k.key,
2230
+ je(k, l[k.key] ?? g[k.key])
2231
2231
  ])
2232
2232
  );
2233
2233
  });
2234
- }, [F, e]), H(() => {
2234
+ }, [F, e]), _(() => {
2235
2235
  x || ie(
2236
- (c) => Ie(c, e)
2236
+ (l) => Pe(l, e)
2237
2237
  );
2238
- }, [F, e, x]), H(() => {
2239
- function c(R) {
2238
+ }, [F, e, x]), _(() => {
2239
+ function l(j) {
2240
2240
  var oe, de;
2241
- const q = R.target;
2242
- !((oe = Y.current) != null && oe.contains(q)) && !((de = ve.current) != null && de.contains(q)) && (A(!1), Q(null));
2241
+ const q = j.target;
2242
+ !((oe = Y.current) != null && oe.contains(q)) && !((de = ve.current) != null && de.contains(q)) && (O(!1), Q(null));
2243
2243
  }
2244
- function y(R) {
2245
- R.key === "Escape" && (A(!1), Q(null));
2244
+ function g(j) {
2245
+ j.key === "Escape" && (O(!1), Q(null));
2246
2246
  }
2247
- function S() {
2247
+ function k() {
2248
2248
  ce();
2249
2249
  }
2250
- return ae && (document.addEventListener("mousedown", c), window.addEventListener("keydown", y), window.addEventListener("resize", S), window.addEventListener("scroll", S, !0)), () => {
2251
- document.removeEventListener("mousedown", c), window.removeEventListener("keydown", y), window.removeEventListener("resize", S), window.removeEventListener("scroll", S, !0);
2250
+ return ae && (document.addEventListener("mousedown", l), window.addEventListener("keydown", g), window.addEventListener("resize", k), window.addEventListener("scroll", k, !0)), () => {
2251
+ document.removeEventListener("mousedown", l), window.removeEventListener("keydown", g), window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
2252
2252
  };
2253
2253
  }, [ae, ce]);
2254
2254
  const Ee = ee(null);
2255
- H(() => {
2256
- function c(S) {
2257
- const R = Ee.current;
2258
- if (!R) return;
2259
- const q = S.clientX - R.startX, oe = e.find((de) => de.key === R.colKey);
2255
+ _(() => {
2256
+ function l(k) {
2257
+ const j = Ee.current;
2258
+ if (!j) return;
2259
+ const q = k.clientX - j.startX, oe = e.find((de) => de.key === j.colKey);
2260
2260
  oe && We((de) => ({
2261
2261
  ...de,
2262
- [R.colKey]: ze(oe, R.startWidth + q)
2262
+ [j.colKey]: je(oe, j.startWidth + q)
2263
2263
  }));
2264
2264
  }
2265
- function y() {
2265
+ function g() {
2266
2266
  Ee.current && (Ee.current = null, document.body.style.cursor = "", document.body.style.userSelect = "");
2267
2267
  }
2268
- return document.addEventListener("pointermove", c), document.addEventListener("pointerup", y), () => {
2269
- document.removeEventListener("pointermove", c), document.removeEventListener("pointerup", y);
2268
+ return document.addEventListener("pointermove", l), document.addEventListener("pointerup", g), () => {
2269
+ document.removeEventListener("pointermove", l), document.removeEventListener("pointerup", g);
2270
2270
  };
2271
2271
  }, [e]);
2272
- const rt = ee(null), [$t, dt] = O(null);
2273
- function xr(c, y) {
2274
- rt.current = Ce.indexOf(c), y.dataTransfer.effectAllowed = "move";
2272
+ const rt = ee(null), [$t, dt] = A(null);
2273
+ function xr(l, g) {
2274
+ rt.current = Ce.indexOf(l), g.dataTransfer.effectAllowed = "move";
2275
2275
  }
2276
- function vr(c, y) {
2277
- y.preventDefault(), y.dataTransfer.dropEffect = "move";
2278
- const S = Ce.indexOf(c);
2279
- $t !== S && dt(S);
2276
+ function vr(l, g) {
2277
+ g.preventDefault(), g.dataTransfer.dropEffect = "move";
2278
+ const k = Ce.indexOf(l);
2279
+ $t !== k && dt(k);
2280
2280
  }
2281
- function gr(c, y) {
2282
- y.preventDefault();
2283
- const S = rt.current, R = Ce.indexOf(c);
2284
- S !== null && S !== R && De((q) => {
2285
- const oe = [...q], [de] = oe.splice(S, 1);
2286
- return oe.splice(R, 0, de), oe;
2281
+ function gr(l, g) {
2282
+ g.preventDefault();
2283
+ const k = rt.current, j = Ce.indexOf(l);
2284
+ k !== null && k !== j && De((q) => {
2285
+ const oe = [...q], [de] = oe.splice(k, 1);
2286
+ return oe.splice(j, 0, de), oe;
2287
2287
  }), rt.current = null, dt(null);
2288
2288
  }
2289
2289
  function yr() {
2290
2290
  rt.current = null, dt(null);
2291
2291
  }
2292
- const [ge, Et] = O(null);
2293
- function wr(c) {
2294
- c.sortKey && Et(
2295
- (y) => (y == null ? void 0 : y.key) === c.key ? { key: c.key, dir: y.dir === "asc" ? "desc" : "asc" } : { key: c.key, dir: "asc" }
2292
+ const [ge, Et] = A(null);
2293
+ function wr(l) {
2294
+ l.sortKey && Et(
2295
+ (g) => (g == null ? void 0 : g.key) === l.key ? { key: l.key, dir: g.dir === "asc" ? "desc" : "asc" } : { key: l.key, dir: "asc" }
2296
2296
  );
2297
2297
  }
2298
- const [Nr, ut] = O(1), [Mt, kr] = O(
2298
+ const [Nr, ut] = A(1), [Mt, kr] = A(
2299
2299
  h === !1 ? 0 : h
2300
2300
  );
2301
- H(() => {
2301
+ _(() => {
2302
2302
  ut(1);
2303
2303
  }, [r]);
2304
- const Fe = !!(C && L), Te = h !== !1, ye = Fe ? w ?? 1 : Nr, Oe = Fe || Te ? Mt : r.length, ke = !!f && !!p && !!k, mt = ke ? 40 : 0, Sr = ke && r.length > 0 && f.size === r.length, Cr = ke && f.size > 0 && f.size < r.length, ft = we.useMemo(() => {
2304
+ const Fe = !!(C && L), Oe = h !== !1, ye = Fe ? w ?? 1 : Nr, ze = Fe || Oe ? Mt : r.length, ke = !!f && !!p && !!S, mt = ke ? 40 : 0, Sr = ke && r.length > 0 && f.size === r.length, Cr = ke && f.size > 0 && f.size < r.length, ft = we.useMemo(() => {
2305
2305
  if (!ge) return r;
2306
- const c = e.find((y) => y.key === ge.key && y.sortKey);
2307
- return c != null && c.sortKey ? [...r].sort((y, S) => {
2308
- const R = y[c.sortKey], q = S[c.sortKey], oe = R === q ? 0 : R == null ? 1 : q == null || R < q ? -1 : 1;
2306
+ const l = e.find((g) => g.key === ge.key && g.sortKey);
2307
+ return l != null && l.sortKey ? [...r].sort((g, k) => {
2308
+ const j = g[l.sortKey], q = k[l.sortKey], oe = j === q ? 0 : j == null ? 1 : q == null || j < q ? -1 : 1;
2309
2309
  return ge.dir === "asc" ? oe : -oe;
2310
2310
  }) : r;
2311
2311
  }, [r, ge, e]), Dt = we.useMemo(() => {
2312
- if (Fe || !Te) return ft;
2313
- const c = (ye - 1) * Oe;
2314
- return ft.slice(c, c + Oe);
2315
- }, [ft, Fe, Te, ye, Oe]), Ge = D ?? r.length, pt = Te ? Math.max(1, Math.ceil(Ge / Oe)) : 1, $r = Te ? (ye - 1) * Oe + 1 : 1, Er = Te ? Math.min(ye * Oe, Ge) : Ge;
2316
- function ht(c) {
2317
- const y = Math.max(1, Math.min(c, pt));
2318
- Fe ? C(y) : ut(y);
2312
+ if (Fe || !Oe) return ft;
2313
+ const l = (ye - 1) * ze;
2314
+ return ft.slice(l, l + ze);
2315
+ }, [ft, Fe, Oe, ye, ze]), Ve = D ?? r.length, pt = Oe ? Math.max(1, Math.ceil(Ve / ze)) : 1, $r = Oe ? (ye - 1) * ze + 1 : 1, Er = Oe ? Math.min(ye * ze, Ve) : Ve;
2316
+ function ht(l) {
2317
+ const g = Math.max(1, Math.min(l, pt));
2318
+ Fe ? C(g) : ut(g);
2319
2319
  }
2320
- function Mr(c) {
2321
- kr(c), Fe ? (L(c), C(1)) : ut(1), L && L(c);
2320
+ function Mr(l) {
2321
+ kr(l), Fe ? (L(l), C(1)) : ut(1), L && L(l);
2322
2322
  }
2323
- const Lt = (c) => c === "center" ? "text-center" : c === "right" ? "text-right" : "text-left", Dr = "color-mix(in srgb, var(--primary) 6%, var(--bg-card))", Lr = E.length + (ke ? 1 : 0);
2324
- H(() => {
2325
- ge && V.includes(ge.key) && Et(null);
2326
- }, [V, ge]);
2327
- function Bt(c) {
2328
- return c ? typeof c == "string" ? { key: c, label: c } : c : null;
2323
+ const Lt = (l) => l === "center" ? "text-center" : l === "right" ? "text-right" : "text-left", Dr = "color-mix(in srgb, var(--primary) 6%, var(--bg-card))", Lr = E.length + (ke ? 1 : 0);
2324
+ _(() => {
2325
+ ge && X.includes(ge.key) && Et(null);
2326
+ }, [X, ge]);
2327
+ function Bt(l) {
2328
+ return l ? typeof l == "string" ? { key: l, label: l } : l : null;
2329
2329
  }
2330
2330
  const Tt = () => /* @__PURE__ */ o(
2331
2331
  "tr",
@@ -2356,21 +2356,21 @@ function to({
2356
2356
  {
2357
2357
  type: "checkbox",
2358
2358
  checked: Sr,
2359
- ref: (c) => {
2360
- c && (c.indeterminate = Cr);
2359
+ ref: (l) => {
2360
+ l && (l.indeterminate = Cr);
2361
2361
  },
2362
- onChange: k,
2362
+ onChange: S,
2363
2363
  className: "rounded cursor-pointer accent-[var(--primary)]"
2364
2364
  }
2365
2365
  )
2366
2366
  }
2367
2367
  ),
2368
- E.map((c, y) => {
2369
- const S = (ge == null ? void 0 : ge.key) === c.key, R = !!c.sortKey, q = T && !se && y === 0, oe = $t === y, Ae = ($e[c.key] ?? Ve(c.width)) < 120;
2368
+ E.map((l, g) => {
2369
+ const k = (ge == null ? void 0 : ge.key) === l.key, j = !!l.sortKey, q = T && !se && g === 0, oe = $t === g, Ie = ($e[l.key] ?? Xe(l.width)) < 120;
2370
2370
  return /* @__PURE__ */ o(
2371
2371
  "th",
2372
2372
  {
2373
- className: `group select-none ${Ae ? "text-left" : Lt(c.align)}`,
2373
+ className: `group select-none ${Ie ? "text-left" : Lt(l.align)}`,
2374
2374
  style: {
2375
2375
  ...q ? {
2376
2376
  position: "sticky",
@@ -2386,24 +2386,24 @@ function to({
2386
2386
  borderBottom: "2px solid var(--border)",
2387
2387
  borderRight: "1px solid var(--border)"
2388
2388
  },
2389
- color: S ? "var(--primary)" : "var(--text-muted)",
2389
+ color: k ? "var(--primary)" : "var(--text-muted)",
2390
2390
  whiteSpace: "nowrap",
2391
2391
  transition: "color 0.15s",
2392
2392
  borderLeft: oe ? "2px solid var(--primary)" : "2px solid transparent",
2393
- cursor: R ? "pointer" : "default",
2393
+ cursor: j ? "pointer" : "default",
2394
2394
  // Padding: room for grip icon left, column menu and resize handle right.
2395
2395
  padding: W ? z ? "5px 48px 5px 6px" : "7px 52px 7px 6px" : z ? "5px 24px 5px 6px" : "7px 28px 7px 6px"
2396
2396
  },
2397
- onDragOver: (re) => vr(c.key, re),
2398
- onDrop: (re) => gr(c.key, re),
2399
- onClick: R ? () => wr(c) : void 0,
2397
+ onDragOver: (re) => vr(l.key, re),
2398
+ onDrop: (re) => gr(l.key, re),
2399
+ onClick: j ? () => wr(l) : void 0,
2400
2400
  children: [
2401
2401
  /* @__PURE__ */ t(
2402
2402
  "span",
2403
2403
  {
2404
2404
  draggable: !0,
2405
2405
  onDragStart: (re) => {
2406
- re.stopPropagation(), xr(c.key, re);
2406
+ re.stopPropagation(), xr(l.key, re);
2407
2407
  },
2408
2408
  onDragEnd: (re) => {
2409
2409
  re.stopPropagation(), yr();
@@ -2416,7 +2416,7 @@ function to({
2416
2416
  color: "var(--text-muted)",
2417
2417
  verticalAlign: "middle"
2418
2418
  },
2419
- children: /* @__PURE__ */ t(nn, { size: 15 })
2419
+ children: /* @__PURE__ */ t(an, { size: 15 })
2420
2420
  }
2421
2421
  ),
2422
2422
  /* @__PURE__ */ t(
@@ -2425,15 +2425,15 @@ function to({
2425
2425
  className: "inline-block max-w-full align-middle",
2426
2426
  style: {
2427
2427
  width: W ? "calc(100% - 42px)" : "calc(100% - 22px)",
2428
- textAlign: Ae ? "left" : c.align === "center" ? "center" : c.align === "right" ? "right" : "left"
2428
+ textAlign: Ie ? "left" : l.align === "center" ? "center" : l.align === "right" ? "right" : "left"
2429
2429
  },
2430
2430
  children: /* @__PURE__ */ o(
2431
2431
  "span",
2432
2432
  {
2433
2433
  className: `inline-flex max-w-full items-center gap-1 font-semibold uppercase tracking-wider ${z ? "text-[11px]" : "text-xs"}`,
2434
2434
  children: [
2435
- /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: c.header }),
2436
- R && /* @__PURE__ */ t("span", { className: "flex-shrink-0 opacity-60", children: S ? ge.dir === "asc" ? /* @__PURE__ */ t(zr, { className: "w-3 h-3" }) : /* @__PURE__ */ t(Ye, { className: "w-3 h-3" }) : /* @__PURE__ */ t(Ir, { className: "w-3 h-3 opacity-40" }) })
2435
+ /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: l.header }),
2436
+ j && /* @__PURE__ */ t("span", { className: "flex-shrink-0 opacity-60", children: k ? ge.dir === "asc" ? /* @__PURE__ */ t(Ir, { className: "w-3 h-3" }) : /* @__PURE__ */ t(Ye, { className: "w-3 h-3" }) : /* @__PURE__ */ t(jr, { className: "w-3 h-3 opacity-40" }) })
2437
2437
  ]
2438
2438
  }
2439
2439
  )
@@ -2444,13 +2444,13 @@ function to({
2444
2444
  {
2445
2445
  type: "button",
2446
2446
  "aria-haspopup": "menu",
2447
- "aria-expanded": ae && K === c.key,
2447
+ "aria-expanded": ae && G === l.key,
2448
2448
  "aria-label": M,
2449
2449
  title: M,
2450
- onClick: (re) => Ke(re, c.key),
2451
- className: `absolute top-1/2 right-3 inline-flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md opacity-0 transition-colors transition-opacity hover:bg-[var(--bg-card)] group-hover:opacity-100 focus:opacity-100 ${ae && K === c.key ? "opacity-100" : ""}`,
2450
+ onClick: (re) => Ke(re, l.key),
2451
+ className: `absolute top-1/2 right-3 inline-flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md opacity-0 transition-colors transition-opacity hover:bg-[var(--bg-card)] group-hover:opacity-100 focus:opacity-100 ${ae && G === l.key ? "opacity-100" : ""}`,
2452
2452
  style: { color: "var(--text-muted)", zIndex: 4 },
2453
- children: /* @__PURE__ */ t(jr, { className: "h-4 w-4" })
2453
+ children: /* @__PURE__ */ t(Pr, { className: "h-4 w-4" })
2454
2454
  }
2455
2455
  ),
2456
2456
  /* @__PURE__ */ t(
@@ -2461,9 +2461,9 @@ function to({
2461
2461
  title: "Arrastrar para redimensionar",
2462
2462
  onPointerDown: (re) => {
2463
2463
  re.preventDefault(), re.stopPropagation(), Ee.current = {
2464
- colKey: c.key,
2464
+ colKey: l.key,
2465
2465
  startX: re.clientX,
2466
- startWidth: $e[c.key] ?? 150
2466
+ startWidth: $e[l.key] ?? 150
2467
2467
  }, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2468
2468
  },
2469
2469
  onClick: (re) => re.stopPropagation(),
@@ -2485,16 +2485,16 @@ function to({
2485
2485
  )
2486
2486
  ]
2487
2487
  },
2488
- c.key
2488
+ l.key
2489
2489
  );
2490
2490
  })
2491
2491
  ]
2492
2492
  }
2493
- ), Ot = () => {
2493
+ ), At = () => {
2494
2494
  if (!W || !ae || typeof document > "u")
2495
2495
  return null;
2496
- const c = V.length;
2497
- return Re(
2496
+ const l = X.length;
2497
+ return He(
2498
2498
  /* @__PURE__ */ o(
2499
2499
  "div",
2500
2500
  {
@@ -2508,28 +2508,28 @@ function to({
2508
2508
  },
2509
2509
  children: [
2510
2510
  /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2 border-b border-[var(--border)] px-2 py-1.5", children: [
2511
- /* @__PURE__ */ t("span", { className: "min-w-0 truncate text-xs font-semibold uppercase text-[var(--text-muted)]", children: c > 0 ? `${E.length} de ${e.length} visibles` : `${e.length} visibles` }),
2511
+ /* @__PURE__ */ t("span", { className: "min-w-0 truncate text-xs font-semibold uppercase text-[var(--text-muted)]", children: l > 0 ? `${E.length} de ${e.length} visibles` : `${e.length} visibles` }),
2512
2512
  /* @__PURE__ */ t(
2513
2513
  "button",
2514
2514
  {
2515
2515
  type: "button",
2516
- onClick: Be,
2517
- disabled: c === 0,
2516
+ onClick: Ae,
2517
+ disabled: l === 0,
2518
2518
  className: "rounded px-1.5 py-0.5 text-xs font-medium text-[var(--primary)] transition-colors hover:bg-[var(--bg-input)] disabled:opacity-40",
2519
2519
  children: "Mostrar todas"
2520
2520
  }
2521
2521
  )
2522
2522
  ] }),
2523
- /* @__PURE__ */ t("div", { className: "max-h-72 overflow-auto py-1", children: qe.map((y) => {
2524
- const S = !V.includes(y.key), q = !(y.hideable !== !1) || S && E.length <= 1;
2523
+ /* @__PURE__ */ t("div", { className: "max-h-72 overflow-auto py-1", children: Ge.map((g) => {
2524
+ const k = !X.includes(g.key), q = !(g.hideable !== !1) || k && E.length <= 1;
2525
2525
  return /* @__PURE__ */ o(
2526
2526
  "button",
2527
2527
  {
2528
2528
  type: "button",
2529
2529
  role: "menuitemcheckbox",
2530
- "aria-checked": S,
2530
+ "aria-checked": k,
2531
2531
  disabled: q,
2532
- onClick: () => pe(y.key),
2532
+ onClick: () => pe(g.key),
2533
2533
  className: "flex w-full min-w-0 items-center gap-2 rounded-md px-2.5 py-1.5 text-left transition-colors hover:bg-[var(--bg-input)] disabled:cursor-not-allowed disabled:opacity-50",
2534
2534
  style: { color: "var(--text-main)" },
2535
2535
  children: [
@@ -2538,17 +2538,17 @@ function to({
2538
2538
  {
2539
2539
  className: "flex h-4 w-4 shrink-0 items-center justify-center rounded border",
2540
2540
  style: {
2541
- borderColor: S ? "var(--primary)" : "var(--border)",
2542
- background: S ? "var(--primary)" : "var(--bg-input)",
2541
+ borderColor: k ? "var(--primary)" : "var(--border)",
2542
+ background: k ? "var(--primary)" : "var(--bg-input)",
2543
2543
  color: "var(--primary-fg)"
2544
2544
  },
2545
- children: S && /* @__PURE__ */ t(Je, { className: "h-3 w-3" })
2545
+ children: k && /* @__PURE__ */ t(Qe, { className: "h-3 w-3" })
2546
2546
  }
2547
2547
  ),
2548
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-sm", children: y.header })
2548
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-sm", children: g.header })
2549
2549
  ]
2550
2550
  },
2551
- y.key
2551
+ g.key
2552
2552
  );
2553
2553
  }) })
2554
2554
  ]
@@ -2556,9 +2556,9 @@ function to({
2556
2556
  ),
2557
2557
  document.body
2558
2558
  );
2559
- }, At = () => {
2560
- if (!Te || a) return null;
2561
- const c = Rn(ye, pt);
2559
+ }, Ot = () => {
2560
+ if (!Oe || a) return null;
2561
+ const l = _n(ye, pt);
2562
2562
  return /* @__PURE__ */ o(
2563
2563
  "div",
2564
2564
  {
@@ -2566,22 +2566,22 @@ function to({
2566
2566
  style: { borderColor: "var(--border)", background: "var(--bg-input)" },
2567
2567
  children: [
2568
2568
  /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-2", children: [
2569
- /* @__PURE__ */ t("span", { style: { color: "var(--text-muted)" }, children: Ge === 0 ? "0 filas" : `${$r}–${Er} de ${Ge}` }),
2569
+ /* @__PURE__ */ t("span", { style: { color: "var(--text-muted)" }, children: Ve === 0 ? "0 filas" : `${$r}–${Er} de ${Ve}` }),
2570
2570
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
2571
2571
  /* @__PURE__ */ t("span", { style: { color: "var(--text-muted)" }, children: "Filas:" }),
2572
2572
  /* @__PURE__ */ t(
2573
2573
  mr,
2574
2574
  {
2575
- value: String(Oe),
2576
- onChange: (y) => Mr(Number(y)),
2577
- options: b.map((y) => ({
2578
- value: String(y),
2579
- label: String(y)
2575
+ value: String(ze),
2576
+ onChange: (g) => Mr(Number(g)),
2577
+ options: b.map((g) => ({
2578
+ value: String(g),
2579
+ label: String(g)
2580
2580
  })),
2581
2581
  placeholder: "Filas",
2582
2582
  searchable: !1,
2583
- height: P,
2584
- padding: j,
2583
+ height: R,
2584
+ padding: P,
2585
2585
  className: "shrink-0 [&>button]:rounded-md [&>button]:text-xs [&_svg]:h-3.5 [&_svg]:w-3.5",
2586
2586
  style: { width: $ }
2587
2587
  }
@@ -2599,27 +2599,27 @@ function to({
2599
2599
  children: /* @__PURE__ */ t(Ue, { className: "h-3.5 w-3.5" })
2600
2600
  }
2601
2601
  ),
2602
- c.map(
2603
- (y, S) => y === "..." ? /* @__PURE__ */ t(
2602
+ l.map(
2603
+ (g, k) => g === "..." ? /* @__PURE__ */ t(
2604
2604
  "span",
2605
2605
  {
2606
2606
  className: "px-1",
2607
2607
  style: { color: "var(--text-muted)" },
2608
2608
  children: "…"
2609
2609
  },
2610
- `e${S}`
2610
+ `e${k}`
2611
2611
  ) : /* @__PURE__ */ t(
2612
2612
  "button",
2613
2613
  {
2614
- onClick: () => ht(y),
2614
+ onClick: () => ht(g),
2615
2615
  className: "h-5 w-5 rounded text-[11px] font-medium transition-colors",
2616
2616
  style: {
2617
- background: y === ye ? "var(--primary)" : "transparent",
2618
- color: y === ye ? "var(--primary-fg)" : "var(--text-muted)"
2617
+ background: g === ye ? "var(--primary)" : "transparent",
2618
+ color: g === ye ? "var(--primary-fg)" : "var(--text-muted)"
2619
2619
  },
2620
- children: y
2620
+ children: g
2621
2621
  },
2622
- y
2622
+ g
2623
2623
  )
2624
2624
  ),
2625
2625
  /* @__PURE__ */ t(
@@ -2629,7 +2629,7 @@ function to({
2629
2629
  onClick: () => ht(ye + 1),
2630
2630
  className: "rounded p-0.5 transition-colors disabled:opacity-30",
2631
2631
  style: { color: "var(--text-muted)", background: "transparent" },
2632
- children: /* @__PURE__ */ t(je, { className: "h-3.5 w-3.5" })
2632
+ children: /* @__PURE__ */ t(Re, { className: "h-3.5 w-3.5" })
2633
2633
  }
2634
2634
  )
2635
2635
  ] }),
@@ -2637,18 +2637,75 @@ function to({
2637
2637
  ]
2638
2638
  }
2639
2639
  );
2640
- };
2641
- return a && r.length === 0 ? /* @__PURE__ */ o(
2640
+ }, Br = () => /* @__PURE__ */ t(
2641
+ "div",
2642
+ {
2643
+ className: "w-full min-w-0 max-w-full flex flex-col rounded-xl overflow-hidden",
2644
+ style: { border: "1px solid var(--border)" },
2645
+ children: /* @__PURE__ */ o(
2646
+ "div",
2647
+ {
2648
+ ref: Be,
2649
+ className: "min-w-0 max-w-full",
2650
+ style: {
2651
+ maxHeight: H ? Te : void 0,
2652
+ background: "var(--bg-card)"
2653
+ },
2654
+ children: [
2655
+ /* @__PURE__ */ t(
2656
+ "div",
2657
+ {
2658
+ className: "border-b px-3 py-2",
2659
+ style: {
2660
+ borderColor: "var(--border)",
2661
+ background: "color-mix(in srgb, var(--bg-input) 72%, transparent)"
2662
+ },
2663
+ children: /* @__PURE__ */ t(
2664
+ "div",
2665
+ {
2666
+ className: "h-3.5 w-40 animate-pulse rounded-full",
2667
+ style: { background: "var(--border)" }
2668
+ }
2669
+ )
2670
+ }
2671
+ ),
2672
+ /* @__PURE__ */ t("div", { className: "space-y-2 p-3", children: Array.from({ length: Math.min(6, i) }).map(
2673
+ (l, g) => /* @__PURE__ */ t(
2674
+ "div",
2675
+ {
2676
+ className: "grid grid-cols-[1.2fr_1fr_0.8fr_0.7fr] gap-3",
2677
+ children: Array.from({ length: 4 }).map((k, j) => /* @__PURE__ */ t(
2678
+ "div",
2679
+ {
2680
+ className: "h-3.5 animate-pulse rounded-full",
2681
+ style: {
2682
+ background: "var(--border)",
2683
+ width: `${qe(g, j)}%`,
2684
+ minWidth: 32
2685
+ }
2686
+ },
2687
+ j
2688
+ ))
2689
+ },
2690
+ g
2691
+ )
2692
+ ) })
2693
+ ]
2694
+ }
2695
+ )
2696
+ }
2697
+ );
2698
+ return I && !K ? Br() : a && r.length === 0 ? /* @__PURE__ */ o(
2642
2699
  "div",
2643
2700
  {
2644
2701
  className: "w-full min-w-0 max-w-full flex flex-col rounded-xl overflow-visible",
2645
2702
  style: { border: "1px solid var(--border)" },
2646
2703
  children: [
2647
- Ot(),
2704
+ At(),
2648
2705
  /* @__PURE__ */ t(
2649
2706
  "div",
2650
2707
  {
2651
- ref: He,
2708
+ ref: Be,
2652
2709
  className: "min-w-0 max-w-full overflow-hidden rounded-t-xl",
2653
2710
  children: /* @__PURE__ */ t(
2654
2711
  Wt,
@@ -2656,7 +2713,7 @@ function to({
2656
2713
  options: { scrollbars: { autoHide: "leave", autoHideDelay: 200 } },
2657
2714
  className: "w-full",
2658
2715
  style: {
2659
- maxHeight: _ ? _e : void 0,
2716
+ maxHeight: H ? Te : void 0,
2660
2717
  maxWidth: "100%"
2661
2718
  },
2662
2719
  defer: !0,
@@ -2674,12 +2731,12 @@ function to({
2674
2731
  children: [
2675
2732
  /* @__PURE__ */ o("colgroup", { children: [
2676
2733
  ke && /* @__PURE__ */ t("col", { style: { width: 40 } }),
2677
- E.map((c) => /* @__PURE__ */ t(
2734
+ E.map((l) => /* @__PURE__ */ t(
2678
2735
  "col",
2679
2736
  {
2680
- style: { width: $e[c.key] ?? 150 }
2737
+ style: { width: $e[l.key] ?? 150 }
2681
2738
  },
2682
- c.key
2739
+ l.key
2683
2740
  ))
2684
2741
  ] }),
2685
2742
  /* @__PURE__ */ t(
@@ -2695,7 +2752,7 @@ function to({
2695
2752
  children: Tt()
2696
2753
  }
2697
2754
  ),
2698
- /* @__PURE__ */ t("tbody", { children: Array.from({ length: i }).map((c, y) => /* @__PURE__ */ o("tr", { children: [
2755
+ /* @__PURE__ */ t("tbody", { children: Array.from({ length: i }).map((l, g) => /* @__PURE__ */ o("tr", { children: [
2699
2756
  ke && /* @__PURE__ */ t(
2700
2757
  "td",
2701
2758
  {
@@ -2706,11 +2763,11 @@ function to({
2706
2763
  }
2707
2764
  }
2708
2765
  ),
2709
- E.map((S, R) => /* @__PURE__ */ t(
2766
+ E.map((k, j) => /* @__PURE__ */ t(
2710
2767
  "td",
2711
2768
  {
2712
2769
  className: z ? "px-2 py-1.5" : "px-3 py-2",
2713
- style: T && !se && R === 0 ? {
2770
+ style: T && !se && j === 0 ? {
2714
2771
  position: "sticky",
2715
2772
  left: mt,
2716
2773
  zIndex: 1,
@@ -2729,15 +2786,15 @@ function to({
2729
2786
  className: "h-3.5 rounded-full animate-pulse",
2730
2787
  style: {
2731
2788
  background: "var(--border)",
2732
- width: `${Qe(y, R)}%`,
2789
+ width: `${qe(g, j)}%`,
2733
2790
  minWidth: 32
2734
2791
  }
2735
2792
  }
2736
2793
  )
2737
2794
  },
2738
- S.key
2795
+ k.key
2739
2796
  ))
2740
- ] }, y)) })
2797
+ ] }, g)) })
2741
2798
  ]
2742
2799
  }
2743
2800
  )
@@ -2745,11 +2802,11 @@ function to({
2745
2802
  )
2746
2803
  }
2747
2804
  ),
2748
- At()
2805
+ Ot()
2749
2806
  ]
2750
2807
  }
2751
2808
  ) : !a && r.length === 0 ? /* @__PURE__ */ o("div", { className: "py-20 flex flex-col items-center gap-3", children: [
2752
- l && /* @__PURE__ */ t("div", { style: { color: "var(--text-muted)", opacity: 0.5 }, children: l }),
2809
+ c && /* @__PURE__ */ t("div", { style: { color: "var(--text-muted)", opacity: 0.5 }, children: c }),
2753
2810
  /* @__PURE__ */ t("p", { className: "text-sm", style: { color: "var(--text-muted)" }, children: d })
2754
2811
  ] }) : /* @__PURE__ */ o(
2755
2812
  "div",
@@ -2757,11 +2814,11 @@ function to({
2757
2814
  className: "w-full min-w-0 max-w-full flex flex-col rounded-xl overflow-visible",
2758
2815
  style: { border: "1px solid var(--border)" },
2759
2816
  children: [
2760
- Ot(),
2817
+ At(),
2761
2818
  /* @__PURE__ */ t(
2762
2819
  "div",
2763
2820
  {
2764
- ref: He,
2821
+ ref: Be,
2765
2822
  className: "min-w-0 max-w-full overflow-hidden rounded-t-xl",
2766
2823
  children: /* @__PURE__ */ t(
2767
2824
  Wt,
@@ -2769,7 +2826,7 @@ function to({
2769
2826
  options: { scrollbars: { autoHide: "leave", autoHideDelay: 200 } },
2770
2827
  className: "w-full",
2771
2828
  style: {
2772
- maxHeight: _ ? _e : void 0,
2829
+ maxHeight: H ? Te : void 0,
2773
2830
  maxWidth: "100%"
2774
2831
  },
2775
2832
  defer: !0,
@@ -2787,12 +2844,12 @@ function to({
2787
2844
  children: [
2788
2845
  /* @__PURE__ */ o("colgroup", { children: [
2789
2846
  ke && /* @__PURE__ */ t("col", { style: { width: 40 } }),
2790
- E.map((c) => /* @__PURE__ */ t(
2847
+ E.map((l) => /* @__PURE__ */ t(
2791
2848
  "col",
2792
2849
  {
2793
- style: { width: $e[c.key] ?? 150 }
2850
+ style: { width: $e[l.key] ?? 150 }
2794
2851
  },
2795
- c.key
2852
+ l.key
2796
2853
  ))
2797
2854
  ] }),
2798
2855
  /* @__PURE__ */ t(
@@ -2808,12 +2865,12 @@ function to({
2808
2865
  children: Tt()
2809
2866
  }
2810
2867
  ),
2811
- /* @__PURE__ */ t("tbody", { children: Dt.map((c, y) => {
2812
- const S = n(c), R = Bt(v == null ? void 0 : v(c)), q = y > 0 ? Bt(
2813
- v == null ? void 0 : v(Dt[y - 1])
2814
- ) : null, oe = R && R.key !== (q == null ? void 0 : q.key), de = ke && f.has(S), Ae = !!s, re = de && N ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : y % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 50%, var(--bg-card))" : "var(--bg-card)";
2868
+ /* @__PURE__ */ t("tbody", { children: Dt.map((l, g) => {
2869
+ const k = n(l), j = Bt(v == null ? void 0 : v(l)), q = g > 0 ? Bt(
2870
+ v == null ? void 0 : v(Dt[g - 1])
2871
+ ) : null, oe = j && j.key !== (q == null ? void 0 : q.key), de = ke && f.has(k), Ie = !!s, re = de && N ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : g % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 50%, var(--bg-card))" : "var(--bg-card)";
2815
2872
  return /* @__PURE__ */ o(we.Fragment, { children: [
2816
- oe && /* @__PURE__ */ t("tr", { className: R.className ?? "", children: /* @__PURE__ */ t(
2873
+ oe && /* @__PURE__ */ t("tr", { className: j.className ?? "", children: /* @__PURE__ */ t(
2817
2874
  "td",
2818
2875
  {
2819
2876
  colSpan: Lr,
@@ -2824,16 +2881,16 @@ function to({
2824
2881
  borderRight: "1px solid var(--border)"
2825
2882
  },
2826
2883
  children: /* @__PURE__ */ t("div", { className: "flex min-w-0 items-center justify-between gap-3", children: /* @__PURE__ */ o("div", { className: "min-w-0", children: [
2827
- /* @__PURE__ */ t("div", { className: "truncate text-xs font-semibold uppercase tracking-wider text-[var(--text-main)]", children: R.label }),
2828
- R.description && /* @__PURE__ */ t("div", { className: "mt-0.5 truncate text-xs text-[var(--text-muted)]", children: R.description })
2884
+ /* @__PURE__ */ t("div", { className: "truncate text-xs font-semibold uppercase tracking-wider text-[var(--text-main)]", children: j.label }),
2885
+ j.description && /* @__PURE__ */ t("div", { className: "mt-0.5 truncate text-xs text-[var(--text-muted)]", children: j.description })
2829
2886
  ] }) })
2830
2887
  }
2831
2888
  ) }),
2832
2889
  /* @__PURE__ */ o(
2833
2890
  "tr",
2834
2891
  {
2835
- onClick: Ae ? () => s(c) : void 0,
2836
- className: `transition-colors ${Ae ? "cursor-pointer" : ""} ${g ? g(c) : ""}`,
2892
+ onClick: Ie ? () => s(l) : void 0,
2893
+ className: `transition-colors ${Ie ? "cursor-pointer" : ""} ${y ? y(l) : ""}`,
2837
2894
  style: {
2838
2895
  "--dt-row-bg": re,
2839
2896
  "--dt-sticky-bg": re,
@@ -2870,7 +2927,7 @@ function to({
2870
2927
  borderRight: "1px solid var(--border)"
2871
2928
  },
2872
2929
  onClick: (fe) => {
2873
- fe.stopPropagation(), p(S);
2930
+ fe.stopPropagation(), p(k);
2874
2931
  },
2875
2932
  children: /* @__PURE__ */ t(
2876
2933
  "input",
@@ -2878,7 +2935,7 @@ function to({
2878
2935
  type: "checkbox",
2879
2936
  checked: de,
2880
2937
  onClick: (fe) => fe.stopPropagation(),
2881
- onChange: () => p(S),
2938
+ onChange: () => p(k),
2882
2939
  className: "rounded cursor-pointer accent-[var(--primary)]"
2883
2940
  }
2884
2941
  )
@@ -2889,7 +2946,7 @@ function to({
2889
2946
  return /* @__PURE__ */ t(
2890
2947
  "td",
2891
2948
  {
2892
- className: `${z ? "px-2 py-1.5" : "px-3 py-2"} ${jn} ${Lt(fe.align)} ${fe.className ?? ""}`,
2949
+ className: `${z ? "px-2 py-1.5" : "px-3 py-2"} ${Pn} ${Lt(fe.align)} ${fe.className ?? ""}`,
2893
2950
  style: {
2894
2951
  overflow: "hidden",
2895
2952
  whiteSpace: "nowrap",
@@ -2905,7 +2962,7 @@ function to({
2905
2962
  borderRight: "1px solid var(--border)"
2906
2963
  }
2907
2964
  },
2908
- children: /* @__PURE__ */ t(qt, { children: fe.cell(c) })
2965
+ children: /* @__PURE__ */ t(qt, { children: fe.cell(l) })
2909
2966
  },
2910
2967
  fe.key
2911
2968
  );
@@ -2913,7 +2970,7 @@ function to({
2913
2970
  ]
2914
2971
  }
2915
2972
  )
2916
- ] }, S);
2973
+ ] }, k);
2917
2974
  }) })
2918
2975
  ]
2919
2976
  }
@@ -2922,22 +2979,22 @@ function to({
2922
2979
  )
2923
2980
  }
2924
2981
  ),
2925
- At()
2982
+ Ot()
2926
2983
  ]
2927
2984
  }
2928
2985
  );
2929
2986
  }
2930
- function Xe(e) {
2987
+ function Ze(e) {
2931
2988
  return e ? /* @__PURE__ */ new Date(`${e}T12:00:00`) : void 0;
2932
2989
  }
2933
- function Kt(e) {
2990
+ function Gt(e) {
2934
2991
  return e.toISOString().slice(0, 10);
2935
2992
  }
2936
2993
  function Hn({
2937
2994
  calendarMonth: e,
2938
2995
  displayIndex: r
2939
2996
  }) {
2940
- const { previousMonth: n, nextMonth: a, goToMonth: i, months: l, labels: d, formatters: s } = on(), f = !!n && r === 0, p = !!a && r === l.length - 1;
2997
+ const { previousMonth: n, nextMonth: a, goToMonth: i, months: c, labels: d, formatters: s } = sn(), f = !!n && r === 0, p = !!a && r === c.length - 1;
2941
2998
  return /* @__PURE__ */ o(
2942
2999
  "div",
2943
3000
  {
@@ -2995,35 +3052,35 @@ function Hn({
2995
3052
  opacity: p ? 1 : 0.45,
2996
3053
  cursor: p ? "pointer" : "not-allowed"
2997
3054
  },
2998
- children: /* @__PURE__ */ t(je, { size: 16 })
3055
+ children: /* @__PURE__ */ t(Re, { size: 16 })
2999
3056
  }
3000
3057
  )
3001
3058
  ]
3002
3059
  }
3003
3060
  );
3004
3061
  }
3005
- function _n(e) {
3062
+ function Wn(e) {
3006
3063
  return e.charAt(0).toUpperCase() + e.slice(1);
3007
3064
  }
3008
- function ro({
3065
+ function no({
3009
3066
  startDate: e,
3010
3067
  endDate: r,
3011
3068
  onChange: n,
3012
3069
  minDate: a,
3013
3070
  viewMonth: i,
3014
- numberOfMonths: l = 1,
3071
+ numberOfMonths: c = 1,
3015
3072
  showSummary: d = !0,
3016
3073
  startLabel: s = "Inicio",
3017
3074
  endLabel: f = "Regreso"
3018
3075
  }) {
3019
3076
  const p = {
3020
- from: Xe(e),
3021
- to: Xe(r)
3022
- }, k = Xe(a), [N, g] = O(
3023
- Xe(i || e)
3077
+ from: Ze(e),
3078
+ to: Ze(r)
3079
+ }, S = Ze(a), [N, y] = A(
3080
+ Ze(i || e)
3024
3081
  );
3025
- return H(() => {
3026
- g(Xe(i || e));
3082
+ return _(() => {
3083
+ y(Ze(i || e));
3027
3084
  }, [i, e]), /* @__PURE__ */ o("div", { children: [
3028
3085
  /* @__PURE__ */ t(
3029
3086
  "div",
@@ -3038,19 +3095,19 @@ function ro({
3038
3095
  padding: "10px 8px"
3039
3096
  },
3040
3097
  children: /* @__PURE__ */ t(
3041
- an,
3098
+ on,
3042
3099
  {
3043
3100
  mode: "range",
3044
3101
  selected: p,
3045
3102
  month: N,
3046
- onMonthChange: g,
3103
+ onMonthChange: y,
3047
3104
  onSelect: (v) => {
3048
- const m = v != null && v.from ? Kt(v.from) : e, h = v != null && v.to ? Kt(v.to) : "";
3105
+ const m = v != null && v.from ? Gt(v.from) : e, h = v != null && v.to ? Gt(v.to) : "";
3049
3106
  n({ startDate: m, endDate: h });
3050
3107
  },
3051
- numberOfMonths: l,
3108
+ numberOfMonths: c,
3052
3109
  hideNavigation: !0,
3053
- disabled: k ? { before: k } : void 0,
3110
+ disabled: S ? { before: S } : void 0,
3054
3111
  showOutsideDays: !1,
3055
3112
  components: {
3056
3113
  MonthCaption: Hn
@@ -3145,7 +3202,7 @@ function ro({
3145
3202
  }
3146
3203
  },
3147
3204
  formatters: {
3148
- formatCaption: (v) => _n(
3205
+ formatCaption: (v) => Wn(
3149
3206
  new Intl.DateTimeFormat("es-MX", {
3150
3207
  month: "long",
3151
3208
  year: "numeric"
@@ -3192,21 +3249,21 @@ function ro({
3192
3249
  )
3193
3250
  ] });
3194
3251
  }
3195
- function Wn(e) {
3252
+ function Fn(e) {
3196
3253
  if (e !== void 0)
3197
3254
  return typeof e == "number" ? `${e}px` : e;
3198
3255
  }
3199
- function no({
3256
+ function ao({
3200
3257
  trigger: e,
3201
3258
  items: r,
3202
3259
  align: n = "end",
3203
3260
  width: a = 220,
3204
3261
  disabled: i = !1,
3205
- className: l = "",
3262
+ className: c = "",
3206
3263
  menuClassName: d = "",
3207
3264
  onOpenChange: s
3208
3265
  }) {
3209
- const [f, p] = O(!1), [k, N] = O(!1), [g, v] = O({}), m = ee(null), h = ee(null), b = Me(
3266
+ const [f, p] = A(!1), [S, N] = A(!1), [y, v] = A({}), m = ee(null), h = ee(null), b = Me(
3210
3267
  (w) => {
3211
3268
  p(w), s == null || s(w);
3212
3269
  },
@@ -3214,17 +3271,17 @@ function no({
3214
3271
  ), $ = Me(() => {
3215
3272
  const w = m.current;
3216
3273
  if (!w) return;
3217
- const C = w.getBoundingClientRect(), L = typeof a == "number" ? a : C.width, I = typeof a == "number" ? a : Math.max(C.width, 180), T = n === "end" ? Math.max(8, C.right - I) : Math.min(C.left, window.innerWidth - I - 8), B = window.innerHeight - C.bottom, z = B < 240 && C.top > B ? void 0 : C.bottom + 6, _ = z === void 0 ? window.innerHeight - C.top + 6 : void 0;
3274
+ const C = w.getBoundingClientRect(), L = typeof a == "number" ? a : C.width, I = typeof a == "number" ? a : Math.max(C.width, 180), T = n === "end" ? Math.max(8, C.right - I) : Math.min(C.left, window.innerWidth - I - 8), B = window.innerHeight - C.bottom, z = B < 240 && C.top > B ? void 0 : C.bottom + 6, H = z === void 0 ? window.innerHeight - C.top + 6 : void 0;
3218
3275
  v({
3219
3276
  position: "fixed",
3220
3277
  zIndex: 9999,
3221
3278
  left: T,
3222
3279
  top: z,
3223
- bottom: _,
3224
- width: Wn(typeof a == "number" ? L : a)
3280
+ bottom: H,
3281
+ width: Fn(typeof a == "number" ? L : a)
3225
3282
  });
3226
3283
  }, [n, a]);
3227
- H(() => N(!0), []), H(() => {
3284
+ _(() => N(!0), []), _(() => {
3228
3285
  if (!f) return;
3229
3286
  $();
3230
3287
  const w = (L) => {
@@ -3238,9 +3295,9 @@ function no({
3238
3295
  document.removeEventListener("mousedown", w), window.removeEventListener("keydown", C), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
3239
3296
  };
3240
3297
  }, [f, b, $]);
3241
- const P = (w) => {
3298
+ const R = (w) => {
3242
3299
  i || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), b(!f));
3243
- }, j = St(e) ? en(e, {
3300
+ }, P = St(e) ? tn(e, {
3244
3301
  onClick: () => !i && b(!f)
3245
3302
  }) : e, D = f ? /* @__PURE__ */ t(
3246
3303
  "div",
@@ -3248,7 +3305,7 @@ function no({
3248
3305
  ref: h,
3249
3306
  role: "menu",
3250
3307
  className: `overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-1 shadow-xl ${d}`,
3251
- style: g,
3308
+ style: y,
3252
3309
  children: r.map((w) => /* @__PURE__ */ o("div", { children: [
3253
3310
  w.separatorBefore && /* @__PURE__ */ t("div", { className: "my-1 border-t border-[var(--border)]" }),
3254
3311
  /* @__PURE__ */ o(
@@ -3285,42 +3342,42 @@ function no({
3285
3342
  tabIndex: i ? -1 : 0,
3286
3343
  "aria-haspopup": "menu",
3287
3344
  "aria-expanded": f,
3288
- onKeyDown: P,
3289
- className: `inline-flex ${i ? "pointer-events-none opacity-60" : ""} ${l}`,
3345
+ onKeyDown: R,
3346
+ className: `inline-flex ${i ? "pointer-events-none opacity-60" : ""} ${c}`,
3290
3347
  children: [
3291
- j,
3292
- k && D ? Re(D, document.body) : null
3348
+ P,
3349
+ S && D ? He(D, document.body) : null
3293
3350
  ]
3294
3351
  }
3295
3352
  );
3296
3353
  }
3297
- function ao({
3354
+ function oo({
3298
3355
  open: e,
3299
3356
  onClose: r,
3300
3357
  title: n,
3301
3358
  subtitle: a,
3302
3359
  leadingIcon: i,
3303
- confirmLabel: l = "Guardar",
3360
+ confirmLabel: c = "Guardar",
3304
3361
  onConfirm: d,
3305
3362
  loading: s = !1,
3306
3363
  confirmDisabled: f = !1,
3307
3364
  headerActions: p,
3308
- bodyClassName: k = "flex-1 overflow-y-auto px-6 py-5",
3365
+ bodyClassName: S = "flex-1 overflow-y-auto px-6 py-5",
3309
3366
  width: N = 440,
3310
- children: g
3367
+ children: y
3311
3368
  }) {
3312
- const [v, m] = O(!1);
3313
- return H(() => {
3369
+ const [v, m] = A(!1);
3370
+ return _(() => {
3314
3371
  m(!0);
3315
- }, []), H(() => (document.body.style.overflow = e ? "hidden" : "", () => {
3372
+ }, []), _(() => (document.body.style.overflow = e ? "hidden" : "", () => {
3316
3373
  document.body.style.overflow = "";
3317
- }), [e]), H(() => {
3374
+ }), [e]), _(() => {
3318
3375
  if (!e) return;
3319
3376
  const h = (b) => {
3320
3377
  b.key === "Escape" && r();
3321
3378
  };
3322
3379
  return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
3323
- }, [e, r]), v ? Re(
3380
+ }, [e, r]), v ? He(
3324
3381
  /* @__PURE__ */ o(
3325
3382
  "div",
3326
3383
  {
@@ -3390,11 +3447,11 @@ function ao({
3390
3447
  {
3391
3448
  variant: "primary",
3392
3449
  size: "sm",
3393
- icon: /* @__PURE__ */ t(sn, { className: "w-4 h-4" }),
3450
+ icon: /* @__PURE__ */ t(ln, { className: "w-4 h-4" }),
3394
3451
  onClick: d,
3395
3452
  loading: s,
3396
3453
  disabled: f,
3397
- title: l
3454
+ title: c
3398
3455
  }
3399
3456
  )
3400
3457
  ] })
@@ -3402,7 +3459,7 @@ function ao({
3402
3459
  ]
3403
3460
  }
3404
3461
  ),
3405
- /* @__PURE__ */ t("div", { "data-drawer-scroll": "true", className: k, children: g })
3462
+ /* @__PURE__ */ t("div", { "data-drawer-scroll": "true", className: S, children: y })
3406
3463
  ]
3407
3464
  }
3408
3465
  )
@@ -3412,24 +3469,24 @@ function ao({
3412
3469
  document.body
3413
3470
  ) : null;
3414
3471
  }
3415
- const Fn = {
3472
+ const Un = {
3416
3473
  sm: "min-h-[160px] p-4",
3417
3474
  md: "min-h-[220px] p-6",
3418
3475
  lg: "min-h-[300px] p-8"
3419
3476
  };
3420
- function oo({
3477
+ function io({
3421
3478
  title: e = "Sin resultados",
3422
3479
  description: r,
3423
3480
  icon: n = /* @__PURE__ */ t(ar, { className: "h-5 w-5" }),
3424
3481
  action: a,
3425
3482
  secondaryAction: i,
3426
- size: l = "md",
3483
+ size: c = "md",
3427
3484
  className: d = ""
3428
3485
  }) {
3429
3486
  return /* @__PURE__ */ t(
3430
3487
  "div",
3431
3488
  {
3432
- className: `flex items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] text-center ${Fn[l]} ${d}`,
3489
+ className: `flex items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] text-center ${Un[c]} ${d}`,
3433
3490
  children: /* @__PURE__ */ o("div", { className: "flex max-w-sm flex-col items-center gap-3", children: [
3434
3491
  n && /* @__PURE__ */ t("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-input)] text-[var(--text-muted)]", children: n }),
3435
3492
  /* @__PURE__ */ o("div", { className: "space-y-1", children: [
@@ -3444,20 +3501,20 @@ function oo({
3444
3501
  }
3445
3502
  );
3446
3503
  }
3447
- function Un({
3504
+ function Yn({
3448
3505
  label: e,
3449
3506
  children: r,
3450
3507
  helperText: n,
3451
3508
  error: a,
3452
3509
  labelAction: i,
3453
- required: l = !1,
3510
+ required: c = !1,
3454
3511
  className: d = "",
3455
3512
  contentClassName: s = ""
3456
3513
  }) {
3457
3514
  return /* @__PURE__ */ o("label", { className: `flex flex-col gap-2 ${d}`, children: [
3458
3515
  (e || i) && /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1 text-xs font-semibold uppercase text-[var(--text-muted)]", children: [
3459
3516
  e && /* @__PURE__ */ t("span", { children: e }),
3460
- l && /* @__PURE__ */ t("span", { className: "text-[var(--danger)]", children: "*" }),
3517
+ c && /* @__PURE__ */ t("span", { className: "text-[var(--danger)]", children: "*" }),
3461
3518
  i && /* @__PURE__ */ t("span", { className: "ml-auto normal-case", children: i })
3462
3519
  ] }),
3463
3520
  /* @__PURE__ */ t("span", { className: `block ${s}`, children: r }),
@@ -3470,13 +3527,13 @@ var fr = {
3470
3527
  className: void 0,
3471
3528
  style: void 0,
3472
3529
  attr: void 0
3473
- }, Gt = we.createContext && /* @__PURE__ */ we.createContext(fr), Yn = ["attr", "size", "title"];
3474
- function qn(e, r) {
3530
+ }, Kt = we.createContext && /* @__PURE__ */ we.createContext(fr), qn = ["attr", "size", "title"];
3531
+ function Gn(e, r) {
3475
3532
  if (e == null) return {};
3476
3533
  var n, a, i = Kn(e, r);
3477
3534
  if (Object.getOwnPropertySymbols) {
3478
- var l = Object.getOwnPropertySymbols(e);
3479
- for (a = 0; a < l.length; a++) n = l[a], r.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
3535
+ var c = Object.getOwnPropertySymbols(e);
3536
+ for (a = 0; a < c.length; a++) n = c[a], r.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
3480
3537
  }
3481
3538
  return i;
3482
3539
  }
@@ -3512,21 +3569,21 @@ function ct(e) {
3512
3569
  for (var r = 1; r < arguments.length; r++) {
3513
3570
  var n = arguments[r] != null ? arguments[r] : {};
3514
3571
  r % 2 ? Vt(Object(n), !0).forEach(function(a) {
3515
- Gn(e, a, n[a]);
3572
+ Vn(e, a, n[a]);
3516
3573
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vt(Object(n)).forEach(function(a) {
3517
3574
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
3518
3575
  });
3519
3576
  }
3520
3577
  return e;
3521
3578
  }
3522
- function Gn(e, r, n) {
3523
- return (r = Vn(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
3579
+ function Vn(e, r, n) {
3580
+ return (r = Xn(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
3524
3581
  }
3525
- function Vn(e) {
3526
- var r = Xn(e, "string");
3582
+ function Xn(e) {
3583
+ var r = Zn(e, "string");
3527
3584
  return typeof r == "symbol" ? r : r + "";
3528
3585
  }
3529
- function Xn(e, r) {
3586
+ function Zn(e, r) {
3530
3587
  if (typeof e != "object" || !e) return e;
3531
3588
  var n = e[Symbol.toPrimitive];
3532
3589
  if (n !== void 0) {
@@ -3542,17 +3599,17 @@ function pr(e) {
3542
3599
  }, r.attr), pr(r.child)));
3543
3600
  }
3544
3601
  function hr(e) {
3545
- return (r) => /* @__PURE__ */ we.createElement(Zn, lt({
3602
+ return (r) => /* @__PURE__ */ we.createElement(Jn, lt({
3546
3603
  attr: ct({}, e.attr)
3547
3604
  }, r), pr(e.child));
3548
3605
  }
3549
- function Zn(e) {
3606
+ function Jn(e) {
3550
3607
  var r = (n) => {
3551
3608
  var {
3552
3609
  attr: a,
3553
3610
  size: i,
3554
- title: l
3555
- } = e, d = qn(e, Yn), s = i || n.size || "1em", f;
3611
+ title: c
3612
+ } = e, d = Gn(e, qn), s = i || n.size || "1em", f;
3556
3613
  return n.className && (f = n.className), e.className && (f = (f ? f + " " : "") + e.className), /* @__PURE__ */ we.createElement("svg", lt({
3557
3614
  stroke: "currentColor",
3558
3615
  fill: "currentColor",
@@ -3565,14 +3622,14 @@ function Zn(e) {
3565
3622
  height: s,
3566
3623
  width: s,
3567
3624
  xmlns: "http://www.w3.org/2000/svg"
3568
- }), l && /* @__PURE__ */ we.createElement("title", null, l), e.children);
3625
+ }), c && /* @__PURE__ */ we.createElement("title", null, c), e.children);
3569
3626
  };
3570
- return Gt !== void 0 ? /* @__PURE__ */ we.createElement(Gt.Consumer, null, (n) => r(n)) : r(fr);
3627
+ return Kt !== void 0 ? /* @__PURE__ */ we.createElement(Kt.Consumer, null, (n) => r(n)) : r(fr);
3571
3628
  }
3572
- function Jn(e) {
3629
+ function Qn(e) {
3573
3630
  return hr({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z" }, child: [] }] })(e);
3574
3631
  }
3575
- function Qn(e) {
3632
+ function ea(e) {
3576
3633
  return hr({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z" }, child: [] }] })(e);
3577
3634
  }
3578
3635
  function vt({
@@ -3587,25 +3644,25 @@ function vt({
3587
3644
  }
3588
3645
  );
3589
3646
  }
3590
- function io({
3647
+ function so({
3591
3648
  label: e,
3592
3649
  containerClassName: r = "",
3593
3650
  helperText: n,
3594
3651
  error: a,
3595
3652
  labelAction: i,
3596
- floatingLabel: l = !1,
3653
+ floatingLabel: c = !1,
3597
3654
  showPasswordToggle: d = !0,
3598
3655
  className: s = "",
3599
3656
  required: f,
3600
3657
  ...p
3601
3658
  }) {
3602
- const [k, N] = O(() => !!p.autoFocus), [g, v] = O(!1), m = p.type === "password" && d, h = m && g ? "text" : p.type, b = p.value !== void 0 ? String(p.value).length > 0 : p.defaultValue !== void 0 && String(p.defaultValue).length > 0, $ = k || b, P = {
3659
+ const [S, N] = A(() => !!p.autoFocus), [y, v] = A(!1), m = p.type === "password" && d, h = m && y ? "text" : p.type, b = p.value !== void 0 ? String(p.value).length > 0 : p.defaultValue !== void 0 && String(p.defaultValue).length > 0, $ = S || b, R = {
3603
3660
  top: $ ? 7 : 12,
3604
- color: k ? "var(--primary)" : "var(--text-muted)",
3661
+ color: S ? "var(--primary)" : "var(--text-muted)",
3605
3662
  fontSize: $ ? 10 : 13,
3606
3663
  fontWeight: $ ? 600 : 400,
3607
3664
  textTransform: $ ? "uppercase" : "none"
3608
- }, j = (C) => {
3665
+ }, P = (C) => {
3609
3666
  var L;
3610
3667
  N(!0), (L = p.onFocus) == null || L.call(p, C);
3611
3668
  }, D = (C) => {
@@ -3615,8 +3672,8 @@ function io({
3615
3672
  "button",
3616
3673
  {
3617
3674
  type: "button",
3618
- "aria-label": g ? "Ocultar contraseña" : "Mostrar contraseña",
3619
- "aria-pressed": g,
3675
+ "aria-label": y ? "Ocultar contraseña" : "Mostrar contraseña",
3676
+ "aria-pressed": y,
3620
3677
  className: "absolute right-2.5 top-1/2 flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded-md text-[var(--text-muted)] transition-colors duration-200 hover:text-[var(--primary)] focus:outline-none",
3621
3678
  tabIndex: -1,
3622
3679
  onClick: () => v((C) => !C),
@@ -3625,22 +3682,22 @@ function io({
3625
3682
  "span",
3626
3683
  {
3627
3684
  "aria-hidden": "true",
3628
- className: `absolute inset-0 flex items-center justify-center transition-[opacity,transform] duration-200 ease-out ${g ? "scale-y-0 rotate-[-8deg] opacity-0" : "scale-y-100 rotate-0 opacity-100"}`,
3629
- children: /* @__PURE__ */ t(Jn, { className: "h-[18px] w-[18px]" })
3685
+ className: `absolute inset-0 flex items-center justify-center transition-[opacity,transform] duration-200 ease-out ${y ? "scale-y-0 rotate-[-8deg] opacity-0" : "scale-y-100 rotate-0 opacity-100"}`,
3686
+ children: /* @__PURE__ */ t(Qn, { className: "h-[18px] w-[18px]" })
3630
3687
  }
3631
3688
  ),
3632
3689
  /* @__PURE__ */ t(
3633
3690
  "span",
3634
3691
  {
3635
3692
  "aria-hidden": "true",
3636
- className: `absolute inset-0 flex items-center justify-center transition-[opacity,transform] duration-200 ease-out ${g ? "scale-y-100 rotate-0 opacity-100" : "scale-y-0 rotate-[8deg] opacity-0"}`,
3637
- children: /* @__PURE__ */ t(Qn, { className: "h-[18px] w-[18px]" })
3693
+ className: `absolute inset-0 flex items-center justify-center transition-[opacity,transform] duration-200 ease-out ${y ? "scale-y-100 rotate-0 opacity-100" : "scale-y-0 rotate-[8deg] opacity-0"}`,
3694
+ children: /* @__PURE__ */ t(ea, { className: "h-[18px] w-[18px]" })
3638
3695
  }
3639
3696
  )
3640
3697
  ]
3641
3698
  }
3642
3699
  ) : null;
3643
- return l ? /* @__PURE__ */ o("label", { className: `flex flex-col gap-2 ${r}`, children: [
3700
+ return c ? /* @__PURE__ */ o("label", { className: `flex flex-col gap-2 ${r}`, children: [
3644
3701
  /* @__PURE__ */ o("span", { className: "relative block", children: [
3645
3702
  /* @__PURE__ */ t(
3646
3703
  vt,
@@ -3652,7 +3709,7 @@ function io({
3652
3709
  "aria-invalid": !!a || p["aria-invalid"],
3653
3710
  "data-has-value": b ? "true" : void 0,
3654
3711
  className: `h-11 w-full pt-5 ${m ? "pr-10" : ""} ${s}`,
3655
- onFocus: j,
3712
+ onFocus: P,
3656
3713
  onBlur: D
3657
3714
  }
3658
3715
  ),
@@ -3660,7 +3717,7 @@ function io({
3660
3717
  "span",
3661
3718
  {
3662
3719
  className: "pointer-events-none absolute left-3 transition-all duration-150",
3663
- style: P,
3720
+ style: R,
3664
3721
  children: [
3665
3722
  e,
3666
3723
  f && /* @__PURE__ */ t("span", { className: "ml-1 text-[var(--danger)]", children: "*" })
@@ -3693,7 +3750,7 @@ function io({
3693
3750
  required: f,
3694
3751
  "aria-invalid": !!a || p["aria-invalid"],
3695
3752
  className: `w-full pr-10 ${s}`,
3696
- onFocus: j,
3753
+ onFocus: P,
3697
3754
  onBlur: D
3698
3755
  }
3699
3756
  ),
@@ -3714,32 +3771,32 @@ function Xt(e) {
3714
3771
  if (e !== void 0)
3715
3772
  return typeof e == "number" ? `${e}px` : e;
3716
3773
  }
3717
- function ea(e, r) {
3774
+ function ta(e, r) {
3718
3775
  return e.length !== r.length ? !1 : e.every((n, a) => n === r[a]);
3719
3776
  }
3720
- function so({
3777
+ function lo({
3721
3778
  value: e,
3722
3779
  onChange: r,
3723
3780
  options: n,
3724
3781
  placeholder: a = "Seleccionar…",
3725
3782
  disabled: i = !1,
3726
- className: l = "",
3783
+ className: c = "",
3727
3784
  style: d,
3728
3785
  height: s = 40,
3729
3786
  padding: f = "0 10px",
3730
3787
  searchable: p = !0,
3731
- minOptionsForSearch: k = 6,
3788
+ minOptionsForSearch: S = 6,
3732
3789
  maxVisibleValues: N = 2,
3733
- emptyText: g = "Sin resultados",
3790
+ emptyText: y = "Sin resultados",
3734
3791
  clearLabel: v = "Limpiar seleccion"
3735
3792
  }) {
3736
- const [m, h] = O(!1), [b, $] = O(""), [P, j] = O(0), [D, w] = O(!1), [C, L] = O({}), I = ee(null), T = ee(null), B = ee(null), z = ee(null), _ = p && n.length >= k, U = Pe(() => new Set(e), [e]), W = Pe(
3793
+ const [m, h] = A(!1), [b, $] = A(""), [R, P] = A(0), [D, w] = A(!1), [C, L] = A({}), I = ee(null), T = ee(null), B = ee(null), z = ee(null), H = p && n.length >= S, U = _e(() => new Set(e), [e]), W = _e(
3737
3794
  () => n.filter((x) => U.has(x.value)),
3738
3795
  [n, U]
3739
- ), X = W.slice(0, N), te = Math.max(
3796
+ ), Z = W.slice(0, N), te = Math.max(
3740
3797
  0,
3741
- W.length - X.length
3742
- ), u = _ && b.trim() ? n.filter(
3798
+ W.length - Z.length
3799
+ ), u = H && b.trim() ? n.filter(
3743
3800
  (x) => {
3744
3801
  var J;
3745
3802
  return x.label.toLowerCase().includes(b.toLowerCase()) || ((J = x.sublabel) == null ? void 0 : J.toLowerCase().includes(b.toLowerCase()));
@@ -3747,7 +3804,7 @@ function so({
3747
3804
  ) : n, M = Me(() => {
3748
3805
  const x = I.current;
3749
3806
  if (!x) return;
3750
- const J = x.getBoundingClientRect(), ie = _ ? 304 : 244, V = window.innerHeight - J.bottom, ae = V < ie && J.top > V;
3807
+ const J = x.getBoundingClientRect(), ie = H ? 304 : 244, X = window.innerHeight - J.bottom, ae = X < ie && J.top > X;
3751
3808
  L({
3752
3809
  position: "fixed",
3753
3810
  left: J.left,
@@ -3756,49 +3813,49 @@ function so({
3756
3813
  width: J.width,
3757
3814
  zIndex: 9999
3758
3815
  });
3759
- }, [_]), F = Me(
3816
+ }, [H]), F = Me(
3760
3817
  (x) => {
3761
- ea(e, x) || r(x);
3818
+ ta(e, x) || r(x);
3762
3819
  },
3763
3820
  [r, e]
3764
- ), Z = Me(
3821
+ ), K = Me(
3765
3822
  (x) => {
3766
- const J = n.find((V) => V.value === x);
3823
+ const J = n.find((X) => X.value === x);
3767
3824
  if (J != null && J.disabled) return;
3768
- const ie = U.has(x) ? e.filter((V) => V !== x) : [...e, x];
3825
+ const ie = U.has(x) ? e.filter((X) => X !== x) : [...e, x];
3769
3826
  F(ie);
3770
3827
  },
3771
3828
  [F, n, e, U]
3772
- ), G = Me(() => F([]), [F]);
3773
- H(() => w(!0), []), H(() => {
3829
+ ), V = Me(() => F([]), [F]);
3830
+ _(() => w(!0), []), _(() => {
3774
3831
  if (!m) return;
3775
3832
  function x(J) {
3776
- var V, ae;
3833
+ var X, ae;
3777
3834
  const ie = J.target;
3778
- !((V = I.current) != null && V.contains(ie)) && !((ae = T.current) != null && ae.contains(ie)) && (h(!1), $(""));
3835
+ !((X = I.current) != null && X.contains(ie)) && !((ae = T.current) != null && ae.contains(ie)) && (h(!1), $(""));
3779
3836
  }
3780
3837
  return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
3781
- }, [m]), H(() => {
3782
- m && (j(0), M(), _ && setTimeout(() => {
3838
+ }, [m]), _(() => {
3839
+ m && (P(0), M(), H && setTimeout(() => {
3783
3840
  var x;
3784
3841
  return (x = B.current) == null ? void 0 : x.focus();
3785
3842
  }, 0));
3786
- }, [m, _, M]), H(() => {
3843
+ }, [m, H, M]), _(() => {
3787
3844
  if (m)
3788
3845
  return window.addEventListener("resize", M), window.addEventListener("scroll", M, !0), () => {
3789
3846
  window.removeEventListener("resize", M), window.removeEventListener("scroll", M, !0);
3790
3847
  };
3791
- }, [m, M]), H(() => {
3792
- if (P < 0 || !z.current) return;
3793
- const x = z.current.children[P];
3848
+ }, [m, M]), _(() => {
3849
+ if (R < 0 || !z.current) return;
3850
+ const x = z.current.children[R];
3794
3851
  x == null || x.scrollIntoView({ block: "nearest" });
3795
- }, [P]);
3852
+ }, [R]);
3796
3853
  function ne(x) {
3797
3854
  if (!m) {
3798
3855
  (x.key === "Enter" || x.key === " " || x.key === "ArrowDown") && (x.preventDefault(), h(!0));
3799
3856
  return;
3800
3857
  }
3801
- x.key === "Escape" && (x.preventDefault(), h(!1), $("")), x.key === "ArrowDown" && (x.preventDefault(), j((J) => Math.min(J + 1, u.length - 1))), x.key === "ArrowUp" && (x.preventDefault(), j((J) => Math.max(J - 1, 0))), x.key === "Enter" && u[P] && (x.preventDefault(), Z(u[P].value)), x.key === "Backspace" && !b && e.length && (x.preventDefault(), F(e.slice(0, -1)));
3858
+ x.key === "Escape" && (x.preventDefault(), h(!1), $("")), x.key === "ArrowDown" && (x.preventDefault(), P((J) => Math.min(J + 1, u.length - 1))), x.key === "ArrowUp" && (x.preventDefault(), P((J) => Math.max(J - 1, 0))), x.key === "Enter" && u[R] && (x.preventDefault(), K(u[R].value)), x.key === "Backspace" && !b && e.length && (x.preventDefault(), F(e.slice(0, -1)));
3802
3859
  }
3803
3860
  const le = /* @__PURE__ */ o(
3804
3861
  "div",
@@ -3811,14 +3868,14 @@ function so({
3811
3868
  border: "1px solid var(--border)"
3812
3869
  },
3813
3870
  children: [
3814
- _ && /* @__PURE__ */ o(
3871
+ H && /* @__PURE__ */ o(
3815
3872
  "div",
3816
3873
  {
3817
3874
  className: "flex items-center gap-2 px-3 py-2",
3818
3875
  style: { borderBottom: "1px solid var(--border)" },
3819
3876
  children: [
3820
3877
  /* @__PURE__ */ t(
3821
- Ze,
3878
+ Je,
3822
3879
  {
3823
3880
  className: "h-3.5 w-3.5 flex-shrink-0",
3824
3881
  style: { color: "var(--text-muted)" }
@@ -3830,7 +3887,7 @@ function so({
3830
3887
  ref: B,
3831
3888
  value: b,
3832
3889
  onChange: (x) => {
3833
- $(x.target.value), j(0);
3890
+ $(x.target.value), P(0);
3834
3891
  },
3835
3892
  placeholder: "Buscar…",
3836
3893
  className: "min-w-0 flex-1 bg-transparent text-sm outline-none",
@@ -3874,7 +3931,7 @@ function so({
3874
3931
  {
3875
3932
  type: "button",
3876
3933
  onMouseDown: (x) => {
3877
- x.preventDefault(), G();
3934
+ x.preventDefault(), V();
3878
3935
  },
3879
3936
  className: "font-semibold transition-colors hover:text-[var(--primary)]",
3880
3937
  children: v
@@ -3891,26 +3948,26 @@ function so({
3891
3948
  "aria-multiselectable": "true",
3892
3949
  className: "overflow-y-auto",
3893
3950
  style: {
3894
- maxHeight: _ ? 220 : 200,
3951
+ maxHeight: H ? 220 : 200,
3895
3952
  scrollbarWidth: "thin",
3896
3953
  scrollbarColor: "var(--border) transparent",
3897
3954
  overscrollBehavior: "contain"
3898
3955
  },
3899
3956
  children: [
3900
3957
  u.map((x, J) => {
3901
- const ie = J === P, V = U.has(x.value);
3958
+ const ie = J === R, X = U.has(x.value);
3902
3959
  return /* @__PURE__ */ o(
3903
3960
  "li",
3904
3961
  {
3905
3962
  role: "option",
3906
- "aria-selected": V,
3963
+ "aria-selected": X,
3907
3964
  onMouseDown: (ae) => {
3908
- ae.preventDefault(), Z(x.value);
3965
+ ae.preventDefault(), K(x.value);
3909
3966
  },
3910
- onMouseEnter: () => !x.disabled && j(J),
3967
+ onMouseEnter: () => !x.disabled && P(J),
3911
3968
  className: "flex cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors",
3912
3969
  style: {
3913
- background: ie ? "var(--bg-hover)" : V ? "color-mix(in srgb, var(--primary) 6%, transparent)" : "transparent",
3970
+ background: ie ? "var(--bg-hover)" : X ? "color-mix(in srgb, var(--primary) 6%, transparent)" : "transparent",
3914
3971
  color: x.disabled ? "var(--text-muted)" : "var(--text-main)",
3915
3972
  cursor: x.disabled ? "not-allowed" : "pointer",
3916
3973
  opacity: x.disabled ? 0.58 : 1
@@ -3921,11 +3978,11 @@ function so({
3921
3978
  {
3922
3979
  className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded border",
3923
3980
  style: {
3924
- borderColor: V ? "var(--primary)" : "var(--border)",
3925
- background: V ? "var(--primary)" : "var(--bg-input)",
3981
+ borderColor: X ? "var(--primary)" : "var(--border)",
3982
+ background: X ? "var(--primary)" : "var(--bg-input)",
3926
3983
  color: "var(--primary-fg)"
3927
3984
  },
3928
- children: V && /* @__PURE__ */ t(Je, { className: "h-3 w-3" })
3985
+ children: X && /* @__PURE__ */ t(Qe, { className: "h-3 w-3" })
3929
3986
  }
3930
3987
  ),
3931
3988
  x.color && /* @__PURE__ */ t(
@@ -3964,7 +4021,7 @@ function so({
3964
4021
  {
3965
4022
  className: "px-3 py-4 text-center text-sm",
3966
4023
  style: { color: "var(--text-muted)" },
3967
- children: g
4024
+ children: y
3968
4025
  }
3969
4026
  )
3970
4027
  ]
@@ -3977,7 +4034,7 @@ function so({
3977
4034
  "div",
3978
4035
  {
3979
4036
  ref: I,
3980
- className: `relative ${l || "w-full"}`,
4037
+ className: `relative ${c || "w-full"}`,
3981
4038
  style: d,
3982
4039
  onKeyDown: ne,
3983
4040
  children: [
@@ -4000,8 +4057,8 @@ function so({
4000
4057
  "aria-haspopup": "listbox",
4001
4058
  "aria-expanded": m,
4002
4059
  children: [
4003
- /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1.5 overflow-hidden", children: X.length ? /* @__PURE__ */ o(Se, { children: [
4004
- X.map((x) => /* @__PURE__ */ o(
4060
+ /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1.5 overflow-hidden", children: Z.length ? /* @__PURE__ */ o(Se, { children: [
4061
+ Z.map((x) => /* @__PURE__ */ o(
4005
4062
  "span",
4006
4063
  {
4007
4064
  className: "inline-flex max-w-[160px] items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs font-semibold",
@@ -4045,7 +4102,7 @@ function so({
4045
4102
  tabIndex: -1,
4046
4103
  "aria-label": v,
4047
4104
  onMouseDown: (x) => {
4048
- x.preventDefault(), x.stopPropagation(), G();
4105
+ x.preventDefault(), x.stopPropagation(), V();
4049
4106
  },
4050
4107
  className: "flex-shrink-0 rounded-full p-0.5 transition-colors hover:bg-black/10",
4051
4108
  style: { color: "var(--text-muted)" },
@@ -4064,31 +4121,31 @@ function so({
4064
4121
  ]
4065
4122
  }
4066
4123
  ),
4067
- m && D && Re(le, document.body)
4124
+ m && D && He(le, document.body)
4068
4125
  ]
4069
4126
  }
4070
4127
  );
4071
4128
  }
4072
- function ta(e, r, n) {
4073
- const a = [], i = Math.max(2, e - n), l = Math.min(r - 1, e + n);
4129
+ function ra(e, r, n) {
4130
+ const a = [], i = Math.max(2, e - n), c = Math.min(r - 1, e + n);
4074
4131
  a.push(1), i > 2 && a.push("...");
4075
- for (let d = i; d <= l; d += 1) a.push(d);
4076
- return l < r - 1 && a.push("..."), r > 1 && a.push(r), a;
4132
+ for (let d = i; d <= c; d += 1) a.push(d);
4133
+ return c < r - 1 && a.push("..."), r > 1 && a.push(r), a;
4077
4134
  }
4078
- function lo({
4135
+ function co({
4079
4136
  page: e,
4080
4137
  totalPages: r,
4081
4138
  onPageChange: n,
4082
4139
  disabled: a = !1,
4083
4140
  siblingCount: i = 1,
4084
- className: l = ""
4141
+ className: c = ""
4085
4142
  }) {
4086
- const d = Math.max(1, r), s = Math.min(Math.max(1, e), d), f = ta(s, d, i);
4143
+ const d = Math.max(1, r), s = Math.min(Math.max(1, e), d), f = ra(s, d, i);
4087
4144
  return /* @__PURE__ */ o(
4088
4145
  "nav",
4089
4146
  {
4090
4147
  "aria-label": "Paginacion",
4091
- className: `inline-flex items-center gap-1 ${l}`,
4148
+ className: `inline-flex items-center gap-1 ${c}`,
4092
4149
  children: [
4093
4150
  /* @__PURE__ */ t(
4094
4151
  be,
@@ -4102,13 +4159,13 @@ function lo({
4102
4159
  }
4103
4160
  ),
4104
4161
  f.map(
4105
- (p, k) => p === "..." ? /* @__PURE__ */ t(
4162
+ (p, S) => p === "..." ? /* @__PURE__ */ t(
4106
4163
  "span",
4107
4164
  {
4108
4165
  className: "flex h-8 min-w-8 items-center justify-center text-xs font-semibold text-[var(--text-muted)]",
4109
4166
  children: "..."
4110
4167
  },
4111
- `ellipsis-${k}`
4168
+ `ellipsis-${S}`
4112
4169
  ) : /* @__PURE__ */ t(
4113
4170
  "button",
4114
4171
  {
@@ -4135,20 +4192,20 @@ function lo({
4135
4192
  "aria-label": "Pagina siguiente",
4136
4193
  disabled: a || s >= d,
4137
4194
  onClick: () => n(s + 1),
4138
- children: /* @__PURE__ */ t(je, { className: "h-4 w-4" })
4195
+ children: /* @__PURE__ */ t(Re, { className: "h-4 w-4" })
4139
4196
  }
4140
4197
  )
4141
4198
  ]
4142
4199
  }
4143
4200
  );
4144
4201
  }
4145
- function co({
4202
+ function uo({
4146
4203
  value: e,
4147
4204
  onChange: r,
4148
4205
  options: n,
4149
4206
  name: a,
4150
4207
  label: i,
4151
- orientation: l = "vertical",
4208
+ orientation: c = "vertical",
4152
4209
  disabled: d = !1,
4153
4210
  className: s = "",
4154
4211
  optionClassName: f = ""
@@ -4158,16 +4215,16 @@ function co({
4158
4215
  /* @__PURE__ */ t(
4159
4216
  "div",
4160
4217
  {
4161
- className: l === "horizontal" ? "flex flex-wrap gap-2" : "flex flex-col gap-2",
4218
+ className: c === "horizontal" ? "flex flex-wrap gap-2" : "flex flex-col gap-2",
4162
4219
  children: n.map((p) => {
4163
- const k = p.value === e, N = d || p.disabled;
4220
+ const S = p.value === e, N = d || p.disabled;
4164
4221
  return /* @__PURE__ */ o(
4165
4222
  "label",
4166
4223
  {
4167
4224
  className: `inline-flex min-w-0 items-start gap-2 rounded-lg border px-2.5 py-1.5 transition-colors ${N ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-[var(--bg-input)]"} ${f}`,
4168
4225
  style: {
4169
- borderColor: k ? "color-mix(in srgb, var(--primary) 48%, var(--border))" : "var(--border)",
4170
- background: k ? "color-mix(in srgb, var(--primary) 8%, transparent)" : "var(--bg-card)"
4226
+ borderColor: S ? "color-mix(in srgb, var(--primary) 48%, var(--border))" : "var(--border)",
4227
+ background: S ? "color-mix(in srgb, var(--primary) 8%, transparent)" : "var(--bg-card)"
4171
4228
  },
4172
4229
  children: [
4173
4230
  /* @__PURE__ */ o("span", { className: "relative mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-[var(--border)] bg-[var(--bg-input)]", children: [
@@ -4177,7 +4234,7 @@ function co({
4177
4234
  type: "radio",
4178
4235
  name: a,
4179
4236
  value: p.value,
4180
- checked: k,
4237
+ checked: S,
4181
4238
  disabled: N,
4182
4239
  onChange: () => r(p.value),
4183
4240
  className: "absolute inset-0 opacity-0"
@@ -4186,7 +4243,7 @@ function co({
4186
4243
  /* @__PURE__ */ t(
4187
4244
  "span",
4188
4245
  {
4189
- className: `h-2 w-2 rounded-full transition ${k ? "scale-100 opacity-100" : "scale-50 opacity-0"}`,
4246
+ className: `h-2 w-2 rounded-full transition ${S ? "scale-100 opacity-100" : "scale-50 opacity-0"}`,
4190
4247
  style: { background: "var(--primary)" }
4191
4248
  }
4192
4249
  )
@@ -4204,13 +4261,13 @@ function co({
4204
4261
  )
4205
4262
  ] });
4206
4263
  }
4207
- function uo({
4264
+ function mo({
4208
4265
  title: e,
4209
4266
  subtitle: r,
4210
4267
  icon: n,
4211
4268
  actions: a,
4212
4269
  children: i,
4213
- footer: l,
4270
+ footer: c,
4214
4271
  className: d = "",
4215
4272
  bodyClassName: s = "p-4"
4216
4273
  }) {
@@ -4231,12 +4288,12 @@ function uo({
4231
4288
  a && /* @__PURE__ */ t("div", { className: "shrink-0", children: a })
4232
4289
  ] }),
4233
4290
  /* @__PURE__ */ t("div", { className: s, children: i }),
4234
- l && /* @__PURE__ */ t("footer", { className: "border-t border-[var(--border)] px-4 py-3", children: l })
4291
+ c && /* @__PURE__ */ t("footer", { className: "border-t border-[var(--border)] px-4 py-3", children: c })
4235
4292
  ]
4236
4293
  }
4237
4294
  );
4238
4295
  }
4239
- const ra = {
4296
+ const na = {
4240
4297
  neutral: {
4241
4298
  text: "var(--text-secondary)",
4242
4299
  bg: "var(--bg-input)",
@@ -4267,24 +4324,24 @@ const ra = {
4267
4324
  bg: "rgba(59, 130, 246, 0.11)",
4268
4325
  border: "rgba(59, 130, 246, 0.24)"
4269
4326
  }
4270
- }, na = {
4327
+ }, aa = {
4271
4328
  xs: "min-h-5 px-1.5 text-[10px]",
4272
4329
  sm: "min-h-6 px-2 text-xs",
4273
4330
  md: "min-h-7 px-2.5 text-sm"
4274
4331
  };
4275
- function mo({
4332
+ function fo({
4276
4333
  children: e,
4277
4334
  tone: r = "neutral",
4278
4335
  size: n = "sm",
4279
4336
  icon: a,
4280
4337
  dot: i = !1,
4281
- className: l = ""
4338
+ className: c = ""
4282
4339
  }) {
4283
- const d = ra[r];
4340
+ const d = na[r];
4284
4341
  return /* @__PURE__ */ o(
4285
4342
  "span",
4286
4343
  {
4287
- className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${na[n]} ${l}`,
4344
+ className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${aa[n]} ${c}`,
4288
4345
  style: {
4289
4346
  color: d.text,
4290
4347
  background: d.bg,
@@ -4305,18 +4362,18 @@ function mo({
4305
4362
  }
4306
4363
  );
4307
4364
  }
4308
- function fo({
4365
+ function po({
4309
4366
  tabs: e,
4310
4367
  activeTabId: r,
4311
4368
  defaultActiveTabId: n,
4312
4369
  onTabChange: a,
4313
4370
  ariaLabel: i = "Pestanas",
4314
- variant: l = "underline",
4371
+ variant: c = "underline",
4315
4372
  className: d = "",
4316
4373
  listClassName: s = "",
4317
4374
  panelClassName: f = ""
4318
4375
  }) {
4319
- const p = e.find((m) => !m.disabled) ?? e[0], k = r ?? n ?? (p == null ? void 0 : p.id), N = e.find((m) => m.id === k) ?? p, g = (m) => {
4376
+ const p = e.find((m) => !m.disabled) ?? e[0], S = r ?? n ?? (p == null ? void 0 : p.id), N = e.find((m) => m.id === S) ?? p, y = (m) => {
4320
4377
  m.disabled || a == null || a(m.id);
4321
4378
  };
4322
4379
  return /* @__PURE__ */ o("div", { className: d, children: [
@@ -4331,11 +4388,11 @@ function fo({
4331
4388
  const b = h.findIndex(
4332
4389
  ($) => $.id === N.id
4333
4390
  );
4334
- (m.key === "ArrowRight" || m.key === "ArrowDown") && (m.preventDefault(), g(h[(b + 1) % h.length])), (m.key === "ArrowLeft" || m.key === "ArrowUp") && (m.preventDefault(), g(
4391
+ (m.key === "ArrowRight" || m.key === "ArrowDown") && (m.preventDefault(), y(h[(b + 1) % h.length])), (m.key === "ArrowLeft" || m.key === "ArrowUp") && (m.preventDefault(), y(
4335
4392
  h[(b - 1 + h.length) % h.length]
4336
- )), m.key === "Home" && (m.preventDefault(), g(h[0])), m.key === "End" && (m.preventDefault(), g(h[h.length - 1]));
4393
+ )), m.key === "Home" && (m.preventDefault(), y(h[0])), m.key === "End" && (m.preventDefault(), y(h[h.length - 1]));
4337
4394
  },
4338
- className: `flex min-w-0 gap-1 overflow-x-auto ${l === "underline" ? "border-b border-[var(--border)]" : "rounded-lg border border-[var(--border)] bg-[var(--bg-input)] p-1"} ${s}`,
4395
+ className: `flex min-w-0 gap-1 overflow-x-auto ${c === "underline" ? "border-b border-[var(--border)]" : "rounded-lg border border-[var(--border)] bg-[var(--bg-input)] p-1"} ${s}`,
4339
4396
  children: e.map((m) => {
4340
4397
  const h = m.id === (N == null ? void 0 : N.id);
4341
4398
  return /* @__PURE__ */ o(
@@ -4348,12 +4405,12 @@ function fo({
4348
4405
  id: `${m.id}-tab`,
4349
4406
  disabled: m.disabled,
4350
4407
  tabIndex: h ? 0 : -1,
4351
- onClick: () => g(m),
4352
- className: `inline-flex min-h-8 shrink-0 items-center justify-center gap-1.5 whitespace-nowrap px-2.5 text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${l === "underline" ? "border-b-2" : "rounded-md border"}`,
4408
+ onClick: () => y(m),
4409
+ className: `inline-flex min-h-8 shrink-0 items-center justify-center gap-1.5 whitespace-nowrap px-2.5 text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${c === "underline" ? "border-b-2" : "rounded-md border"}`,
4353
4410
  style: {
4354
4411
  color: h ? "var(--primary)" : "var(--text-muted)",
4355
4412
  borderColor: h ? "var(--primary)" : "transparent",
4356
- background: l === "pills" && h ? "var(--bg-card)" : "transparent"
4413
+ background: c === "pills" && h ? "var(--bg-card)" : "transparent"
4357
4414
  },
4358
4415
  children: [
4359
4416
  m.icon && /* @__PURE__ */ t("span", { className: "shrink-0", children: m.icon }),
@@ -4381,67 +4438,67 @@ function fo({
4381
4438
  function Le(...e) {
4382
4439
  return e.filter(Boolean).join(" ");
4383
4440
  }
4384
- function po({
4441
+ function ho({
4385
4442
  steps: e,
4386
4443
  activeStepId: r,
4387
4444
  initialStepId: n,
4388
4445
  completedStepIds: a,
4389
4446
  defaultCompletedStepIds: i = [],
4390
- onActiveStepChange: l,
4447
+ onActiveStepChange: c,
4391
4448
  onCompletedStepIdsChange: d,
4392
4449
  onBlockedStep: s,
4393
4450
  allowBackNavigation: f = !0,
4394
4451
  showFooter: p = !0,
4395
- previousLabel: k = "Anterior",
4452
+ previousLabel: S = "Anterior",
4396
4453
  nextLabel: N = "Siguiente",
4397
- blockedNextLabel: g = "Completa este paso",
4454
+ blockedNextLabel: y = "Completa este paso",
4398
4455
  className: v = "",
4399
4456
  headerClassName: m = "",
4400
4457
  contentClassName: h = "",
4401
4458
  footerClassName: b = ""
4402
4459
  }) {
4403
4460
  var ae;
4404
- const $ = ((ae = e[0]) == null ? void 0 : ae.id) ?? "", [P, j] = O(
4461
+ const $ = ((ae = e[0]) == null ? void 0 : ae.id) ?? "", [R, P] = A(
4405
4462
  n ?? $
4406
- ), [D, w] = O(
4463
+ ), [D, w] = A(
4407
4464
  i
4408
- ), C = r ?? P, L = a ?? D, I = Pe(
4465
+ ), C = r ?? R, L = a ?? D, I = _e(
4409
4466
  () => new Set(L),
4410
4467
  [L]
4411
4468
  ), T = Math.max(
4412
4469
  0,
4413
- e.findIndex((A) => A.id === C)
4414
- ), B = e[T] ?? e[0], z = e.length <= 1 ? 100 : T / (e.length - 1) * 100, _ = (A) => {
4415
- a || w(A), d == null || d(A);
4416
- }, U = (A) => {
4417
- const K = e.find((Q) => Q.id === A);
4418
- K && (r || j(A), l == null || l(A, K));
4419
- }, W = (A) => I.has(A), X = (A) => e.slice(0, A).find((K) => !K.optional && !I.has(K.id)), te = (A) => {
4420
- const K = e[A];
4421
- return !K || K.disabled ? !1 : A === T || f && A < T ? !0 : !X(A);
4422
- }, u = (A) => {
4423
- const K = e.findIndex((Q) => Q.id === A);
4424
- return K >= 0 && te(K);
4425
- }, M = (A) => {
4426
- const K = e.findIndex((Q) => Q.id === A);
4427
- if (K < 0) return !1;
4428
- if (!te(K)) {
4429
- const Q = X(K);
4430
- return Q && (s == null || s(e[K], Q)), !1;
4470
+ e.findIndex((O) => O.id === C)
4471
+ ), B = e[T] ?? e[0], z = e.length <= 1 ? 100 : T / (e.length - 1) * 100, H = (O) => {
4472
+ a || w(O), d == null || d(O);
4473
+ }, U = (O) => {
4474
+ const G = e.find((Q) => Q.id === O);
4475
+ G && (r || P(O), c == null || c(O, G));
4476
+ }, W = (O) => I.has(O), Z = (O) => e.slice(0, O).find((G) => !G.optional && !I.has(G.id)), te = (O) => {
4477
+ const G = e[O];
4478
+ return !G || G.disabled ? !1 : O === T || f && O < T ? !0 : !Z(O);
4479
+ }, u = (O) => {
4480
+ const G = e.findIndex((Q) => Q.id === O);
4481
+ return G >= 0 && te(G);
4482
+ }, M = (O) => {
4483
+ const G = e.findIndex((Q) => Q.id === O);
4484
+ if (G < 0) return !1;
4485
+ if (!te(G)) {
4486
+ const Q = Z(G);
4487
+ return Q && (s == null || s(e[G], Q)), !1;
4431
4488
  }
4432
- return U(A), !0;
4433
- }, F = (A = B == null ? void 0 : B.id) => {
4434
- !A || I.has(A) || _([...L, A]);
4435
- }, Z = (A = B == null ? void 0 : B.id) => {
4436
- if (!A) return;
4437
- const K = e.findIndex((ue) => ue.id === A), Q = L.filter((ue) => {
4489
+ return U(O), !0;
4490
+ }, F = (O = B == null ? void 0 : B.id) => {
4491
+ !O || I.has(O) || H([...L, O]);
4492
+ }, K = (O = B == null ? void 0 : B.id) => {
4493
+ if (!O) return;
4494
+ const G = e.findIndex((ue) => ue.id === O), Q = L.filter((ue) => {
4438
4495
  const he = e.findIndex((Y) => Y.id === ue);
4439
- return he >= 0 && he < K;
4496
+ return he >= 0 && he < G;
4440
4497
  });
4441
- _(Q), K >= 0 && T > K && U(A);
4442
- }, G = () => T <= 0 ? !1 : M(e[T - 1].id), ne = () => {
4443
- const A = e[T + 1];
4444
- return A ? M(A.id) : !1;
4498
+ H(Q), G >= 0 && T > G && U(O);
4499
+ }, V = () => T <= 0 ? !1 : M(e[T - 1].id), ne = () => {
4500
+ const O = e[T + 1];
4501
+ return O ? M(O.id) : !1;
4445
4502
  }, le = {
4446
4503
  activeStep: B,
4447
4504
  activeIndex: T,
@@ -4449,13 +4506,13 @@ function po({
4449
4506
  isCompleted: W,
4450
4507
  isUnlocked: u,
4451
4508
  completeStep: F,
4452
- uncompleteStep: Z,
4509
+ uncompleteStep: K,
4453
4510
  goToStep: M,
4454
4511
  goNext: ne,
4455
- goPrevious: G
4512
+ goPrevious: V
4456
4513
  };
4457
4514
  if (!B) return null;
4458
- const x = e[T + 1], J = T > 0, ie = x ? u(x.id) : !1, V = typeof B.content == "function" ? B.content(le) : B.content;
4515
+ const x = e[T + 1], J = T > 0, ie = x ? u(x.id) : !1, X = typeof B.content == "function" ? B.content(le) : B.content;
4459
4516
  return /* @__PURE__ */ o(
4460
4517
  "section",
4461
4518
  {
@@ -4486,8 +4543,8 @@ function po({
4486
4543
  style: {
4487
4544
  gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))`
4488
4545
  },
4489
- children: e.map((A, K) => {
4490
- const Q = A.id === B.id, ue = W(A.id), he = te(K), Y = X(K);
4546
+ children: e.map((O, G) => {
4547
+ const Q = O.id === B.id, ue = W(O.id), he = te(G), Y = Z(G);
4491
4548
  return /* @__PURE__ */ o(
4492
4549
  "button",
4493
4550
  {
@@ -4495,8 +4552,8 @@ function po({
4495
4552
  disabled: !he,
4496
4553
  "aria-current": Q ? "step" : void 0,
4497
4554
  "aria-disabled": !he,
4498
- title: !he && Y ? `Completa ${Y.title}` : A.title,
4499
- onClick: () => M(A.id),
4555
+ title: !he && Y ? `Completa ${Y.title}` : O.title,
4556
+ onClick: () => M(O.id),
4500
4557
  className: Le(
4501
4558
  "group relative min-h-16 min-w-0 overflow-hidden rounded-md border p-3 text-left transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)]/35 disabled:cursor-not-allowed",
4502
4559
  Q && "border-[var(--primary)] bg-[var(--bg-card)] shadow-sm",
@@ -4525,7 +4582,7 @@ function po({
4525
4582
  !ue && !Q && he && "border-[var(--border)] text-[var(--text-muted)]",
4526
4583
  !he && "border-[var(--border)] text-[var(--text-muted)]"
4527
4584
  ),
4528
- children: ue ? /* @__PURE__ */ t(Je, { className: "h-4 w-4" }) : he ? K + 1 : /* @__PURE__ */ t(Pr, { className: "h-3.5 w-3.5" })
4585
+ children: ue ? /* @__PURE__ */ t(Qe, { className: "h-4 w-4" }) : he ? G + 1 : /* @__PURE__ */ t(Rr, { className: "h-3.5 w-3.5" })
4529
4586
  }
4530
4587
  ),
4531
4588
  /* @__PURE__ */ o("span", { className: "min-w-0 flex-1", children: [
@@ -4537,19 +4594,19 @@ function po({
4537
4594
  Q ? "text-[var(--text-main)]" : "text-[var(--text-secondary)]"
4538
4595
  ),
4539
4596
  children: [
4540
- K + 1,
4597
+ G + 1,
4541
4598
  ". ",
4542
- A.title
4599
+ O.title
4543
4600
  ]
4544
4601
  }
4545
4602
  ),
4546
- A.description && /* @__PURE__ */ t("span", { className: "mt-1 block truncate text-[11px] text-[var(--text-muted)]", children: A.description })
4603
+ O.description && /* @__PURE__ */ t("span", { className: "mt-1 block truncate text-[11px] text-[var(--text-muted)]", children: O.description })
4547
4604
  ] }),
4548
- A.badge && /* @__PURE__ */ t("span", { className: "shrink-0", children: A.badge })
4605
+ O.badge && /* @__PURE__ */ t("span", { className: "shrink-0", children: O.badge })
4549
4606
  ] })
4550
4607
  ]
4551
4608
  },
4552
- A.id
4609
+ O.id
4553
4610
  );
4554
4611
  })
4555
4612
  }
@@ -4564,7 +4621,7 @@ function po({
4564
4621
  "min-h-72 animate-[stepWizardIn_220ms_ease-out] p-5",
4565
4622
  h
4566
4623
  ),
4567
- children: V
4624
+ children: X
4568
4625
  },
4569
4626
  B.id
4570
4627
  ),
@@ -4584,8 +4641,8 @@ function po({
4584
4641
  padding: "0 14px",
4585
4642
  icon: /* @__PURE__ */ t(Ue, {}),
4586
4643
  disabled: !J,
4587
- onClick: G,
4588
- children: k
4644
+ onClick: V,
4645
+ children: S
4589
4646
  }
4590
4647
  ),
4591
4648
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3 text-xs text-[var(--text-muted)]", children: [
@@ -4606,10 +4663,10 @@ function po({
4606
4663
  {
4607
4664
  height: 38,
4608
4665
  padding: "0 14px",
4609
- icon: /* @__PURE__ */ t(je, {}),
4666
+ icon: /* @__PURE__ */ t(Re, {}),
4610
4667
  disabled: !x || !ie,
4611
4668
  onClick: ne,
4612
- children: x && !ie ? g : N
4669
+ children: x && !ie ? y : N
4613
4670
  }
4614
4671
  )
4615
4672
  ]
@@ -4619,17 +4676,17 @@ function po({
4619
4676
  }
4620
4677
  );
4621
4678
  }
4622
- const aa = {
4679
+ const oa = {
4623
4680
  sm: "min-h-20 px-2.5 py-1.5 text-xs leading-5",
4624
4681
  md: "min-h-24 px-2.5 py-2 text-sm leading-5",
4625
4682
  lg: "min-h-32 px-3 py-2.5 text-sm leading-6"
4626
- }, oa = {
4683
+ }, ia = {
4627
4684
  none: "resize-none",
4628
4685
  vertical: "resize-y",
4629
4686
  horizontal: "resize-x",
4630
4687
  both: "resize"
4631
4688
  };
4632
- function ia(e, r) {
4689
+ function sa(e, r) {
4633
4690
  if (e) {
4634
4691
  if (typeof e == "function") {
4635
4692
  e(r);
@@ -4638,61 +4695,61 @@ function ia(e, r) {
4638
4695
  e.current = r;
4639
4696
  }
4640
4697
  }
4641
- function sa(e, r) {
4698
+ function la(e, r) {
4642
4699
  return e !== void 0 ? String(e).length : r !== void 0 ? String(r).length : 0;
4643
4700
  }
4644
- const la = tn(
4701
+ const ca = rn(
4645
4702
  function({
4646
4703
  className: r = "",
4647
4704
  wrapperClassName: n = "",
4648
4705
  size: a = "md",
4649
4706
  resize: i = "vertical",
4650
- autoResize: l = !1,
4707
+ autoResize: c = !1,
4651
4708
  minRows: d,
4652
4709
  maxRows: s,
4653
4710
  showCount: f = !1,
4654
4711
  maxCount: p,
4655
- status: k = "default",
4712
+ status: S = "default",
4656
4713
  icon: N,
4657
- action: g,
4714
+ action: y,
4658
4715
  style: v,
4659
4716
  value: m,
4660
4717
  defaultValue: h,
4661
4718
  maxLength: b,
4662
4719
  onInput: $,
4663
- ...P
4664
- }, j) {
4665
- const D = ee(null), w = sa(m, h), C = p ?? b, L = !!(N || g || f), I = k === "error" ? "var(--danger)" : k === "success" ? "#16a34a" : "var(--border)", T = {
4720
+ ...R
4721
+ }, P) {
4722
+ const D = ee(null), w = la(m, h), C = p ?? b, L = !!(N || y || f), I = S === "error" ? "var(--danger)" : S === "success" ? "#16a34a" : "var(--border)", T = {
4666
4723
  ...v ?? {},
4667
4724
  ...d ? { minHeight: `${d * 24 + 18}px` } : null,
4668
4725
  ...s ? { maxHeight: `${s * 24 + 18}px` } : null
4669
4726
  }, B = () => {
4670
- const _ = D.current;
4671
- !_ || !l || (_.style.height = "auto", _.style.height = `${_.scrollHeight}px`);
4727
+ const H = D.current;
4728
+ !H || !c || (H.style.height = "auto", H.style.height = `${H.scrollHeight}px`);
4672
4729
  };
4673
- H(B, [l, m]);
4730
+ _(B, [c, m]);
4674
4731
  const z = /* @__PURE__ */ t(
4675
4732
  "textarea",
4676
4733
  {
4677
- ...P,
4678
- ref: (_) => {
4679
- D.current = _, ia(j, _);
4734
+ ...R,
4735
+ ref: (H) => {
4736
+ D.current = H, sa(P, H);
4680
4737
  },
4681
4738
  value: m,
4682
4739
  defaultValue: h,
4683
4740
  maxLength: b,
4684
- "aria-invalid": k === "error" || P["aria-invalid"],
4685
- onInput: (_) => {
4686
- B(), $ == null || $(_);
4741
+ "aria-invalid": S === "error" || R["aria-invalid"],
4742
+ onInput: (H) => {
4743
+ B(), $ == null || $(H);
4687
4744
  },
4688
4745
  style: { ...T, borderColor: I },
4689
- className: `w-full rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${aa[a]} ${oa[l ? "none" : i]} ${N ? "pl-8" : ""} ${g ? "pr-10" : ""} ${r}`
4746
+ className: `w-full rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${oa[a]} ${ia[c ? "none" : i]} ${N ? "pl-8" : ""} ${y ? "pr-10" : ""} ${r}`
4690
4747
  }
4691
4748
  );
4692
4749
  return L ? /* @__PURE__ */ o("span", { className: `relative block ${n}`, children: [
4693
4750
  N && /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2.5 top-2.5 flex h-4 w-4 items-center justify-center text-[var(--text-muted)]", children: N }),
4694
4751
  z,
4695
- g && /* @__PURE__ */ t("span", { className: "absolute right-2 top-2 flex items-center justify-center", children: g }),
4752
+ y && /* @__PURE__ */ t("span", { className: "absolute right-2 top-2 flex items-center justify-center", children: y }),
4696
4753
  f && /* @__PURE__ */ o("span", { className: "absolute bottom-1.5 right-2 rounded bg-[var(--bg-input)] px-1.5 text-[10px] font-semibold text-[var(--text-muted)]", children: [
4697
4754
  w,
4698
4755
  C ? `/${C}` : ""
@@ -4700,31 +4757,31 @@ const la = tn(
4700
4757
  ] }) : z;
4701
4758
  }
4702
4759
  );
4703
- function ho({
4760
+ function bo({
4704
4761
  label: e,
4705
4762
  containerClassName: r = "",
4706
4763
  helperText: n,
4707
4764
  error: a,
4708
4765
  labelAction: i,
4709
- required: l,
4766
+ required: c,
4710
4767
  className: d = "",
4711
4768
  status: s,
4712
4769
  ...f
4713
4770
  }) {
4714
4771
  return /* @__PURE__ */ t(
4715
- Un,
4772
+ Yn,
4716
4773
  {
4717
4774
  label: e,
4718
- required: l,
4775
+ required: c,
4719
4776
  helperText: n,
4720
4777
  error: a,
4721
4778
  labelAction: i,
4722
4779
  className: r,
4723
4780
  children: /* @__PURE__ */ t(
4724
- la,
4781
+ ca,
4725
4782
  {
4726
4783
  ...f,
4727
- required: l,
4784
+ required: c,
4728
4785
  status: a ? "error" : s,
4729
4786
  className: `w-full ${d}`
4730
4787
  }
@@ -4732,7 +4789,7 @@ function ho({
4732
4789
  }
4733
4790
  );
4734
4791
  }
4735
- const ca = {
4792
+ const da = {
4736
4793
  xs: {
4737
4794
  width: 28,
4738
4795
  height: 16,
@@ -4746,19 +4803,19 @@ const ca = {
4746
4803
  padding: 2
4747
4804
  }
4748
4805
  };
4749
- function bo({
4806
+ function xo({
4750
4807
  checked: e,
4751
4808
  disabled: r,
4752
4809
  onCheckedChange: n,
4753
4810
  size: a = "sm",
4754
4811
  className: i = "",
4755
- ...l
4812
+ ...c
4756
4813
  }) {
4757
- const d = ca[a], s = e ? d.width - d.thumb - d.padding * 2 : 0;
4814
+ const d = da[a], s = e ? d.width - d.thumb - d.padding * 2 : 0;
4758
4815
  return /* @__PURE__ */ t(
4759
4816
  "button",
4760
4817
  {
4761
- ...l,
4818
+ ...c,
4762
4819
  type: "button",
4763
4820
  role: "switch",
4764
4821
  "aria-checked": e,
@@ -4792,7 +4849,7 @@ const Zt = [
4792
4849
  ".sidebar-scroll",
4793
4850
  "[data-overlay-scroll='true']"
4794
4851
  ].join(",");
4795
- function da(e) {
4852
+ function ua(e) {
4796
4853
  if (!(e instanceof HTMLElement) || e.dataset.overlayScroll === "false" || e.closest("[data-overlayscrollbars]") || e.matches("textarea,input,select,[contenteditable='true']"))
4797
4854
  return !1;
4798
4855
  const r = window.getComputedStyle(e);
@@ -4810,25 +4867,25 @@ function Jt(e) {
4810
4867
  r.style.display = "none", r.style.height = "0", r.style.pointerEvents = "none";
4811
4868
  });
4812
4869
  }
4813
- function ua() {
4814
- return H(() => {
4870
+ function ma() {
4871
+ return _(() => {
4815
4872
  const e = /* @__PURE__ */ new WeakMap();
4816
4873
  let r = 0;
4817
4874
  const n = () => {
4818
- r = 0, document.querySelectorAll(Zt).forEach((l) => {
4819
- if (!da(l)) return;
4820
- if (_t(l)) {
4821
- Jt(l);
4875
+ r = 0, document.querySelectorAll(Zt).forEach((c) => {
4876
+ if (!ua(c)) return;
4877
+ if (Ht(c)) {
4878
+ Jt(c);
4822
4879
  return;
4823
4880
  }
4824
- const s = _t(l, {
4825
- overflow: br(l) ? { x: "hidden", y: "scroll" } : void 0,
4881
+ const s = Ht(c, {
4882
+ overflow: br(c) ? { x: "hidden", y: "scroll" } : void 0,
4826
4883
  scrollbars: {
4827
4884
  autoHide: "leave",
4828
4885
  autoHideDelay: 180
4829
4886
  }
4830
4887
  });
4831
- Jt(l), e.set(l, s);
4888
+ Jt(c), e.set(c, s);
4832
4889
  });
4833
4890
  }, a = () => {
4834
4891
  r || (r = window.requestAnimationFrame(n));
@@ -4841,14 +4898,14 @@ function ua() {
4841
4898
  attributes: !0,
4842
4899
  attributeFilter: ["class", "data-overlay-scroll"]
4843
4900
  }), window.addEventListener("resize", a), () => {
4844
- r && window.cancelAnimationFrame(r), i.disconnect(), window.removeEventListener("resize", a), document.querySelectorAll(Zt).forEach((l) => {
4901
+ r && window.cancelAnimationFrame(r), i.disconnect(), window.removeEventListener("resize", a), document.querySelectorAll(Zt).forEach((c) => {
4845
4902
  var d;
4846
- l instanceof HTMLElement && ((d = e.get(l)) == null || d.destroy());
4903
+ c instanceof HTMLElement && ((d = e.get(c)) == null || d.destroy());
4847
4904
  });
4848
4905
  };
4849
4906
  }, []), null;
4850
4907
  }
4851
- const ma = {
4908
+ const fa = {
4852
4909
  xs: { wh: "w-5 h-5", text: "text-[8px]" },
4853
4910
  sm: { wh: "w-7 h-7", text: "text-[11px]" },
4854
4911
  md: { wh: "w-9 h-9", text: "text-sm" },
@@ -4863,12 +4920,12 @@ const ma = {
4863
4920
  "bg-teal-500",
4864
4921
  "bg-rose-500",
4865
4922
  "bg-cyan-500"
4866
- ], fa = {
4923
+ ], pa = {
4867
4924
  xs: "text-xs",
4868
4925
  sm: "text-sm",
4869
4926
  md: "text-base",
4870
4927
  lg: "text-lg"
4871
- }, pa = "bonsaif.bot", ha = "Bonsaif Bot", ba = {
4928
+ }, ha = "bonsaif.bot", ba = "Bonsaif Bot", xa = {
4872
4929
  xs: "p-0.5",
4873
4930
  sm: "p-1",
4874
4931
  md: "p-1.5",
@@ -4878,39 +4935,39 @@ const ma = {
4878
4935
  function er(e) {
4879
4936
  return typeof e == "string" ? e.trim() : "";
4880
4937
  }
4881
- function xa(e) {
4938
+ function va(e) {
4882
4939
  let r = 0;
4883
4940
  for (const n of e) r = r * 31 + n.charCodeAt(0) & 65535;
4884
4941
  return Qt[r % Qt.length];
4885
4942
  }
4886
- function va(e, r) {
4887
- return e === pa || r === ha;
4888
- }
4889
4943
  function ga(e, r) {
4944
+ return e === ha || r === ba;
4945
+ }
4946
+ function ya(e, r) {
4890
4947
  return `${e.replace(/\/$/, "")}${r}`;
4891
4948
  }
4892
- function ya({
4949
+ function wa({
4893
4950
  userId: e,
4894
4951
  username: r,
4895
4952
  name: n,
4896
4953
  size: a = "md",
4897
4954
  showName: i = !1,
4898
- showTooltip: l,
4955
+ showTooltip: c,
4899
4956
  tooltipContent: d,
4900
4957
  fallbackLabel: s = "Usuario",
4901
4958
  wrapperClassName: f = "",
4902
4959
  labelClassName: p = "",
4903
- labelSize: k = "xs",
4960
+ labelSize: S = "xs",
4904
4961
  avatarVersion: N = 0,
4905
- className: g = "",
4962
+ className: y = "",
4906
4963
  style: v
4907
4964
  }) {
4908
4965
  var W;
4909
- const [m, h] = O(!1), b = typeof e == "string" && e.trim() && e !== "undefined" && e !== "null" ? e.trim() : "";
4910
- H(() => {
4966
+ const [m, h] = A(!1), b = typeof e == "string" && e.trim() && e !== "undefined" && e !== "null" ? e.trim() : "";
4967
+ _(() => {
4911
4968
  h(!1);
4912
4969
  }, [b, N]);
4913
- const { wh: $, text: P } = ma[a], j = er(n) || er(r) || s, D = j.trim()[0] || "?", w = typeof process < "u" && ((W = process.env) == null ? void 0 : W.NEXT_PUBLIC_BASE_PATH) || "", C = va(r, n), L = ga(w, "/favicon.svg"), I = b ? `${w}/api/user/avatar/${b}${N ? `?v=${N}` : ""}` : "", B = {
4970
+ const { wh: $, text: R } = fa[a], P = er(n) || er(r) || s, D = P.trim()[0] || "?", w = typeof process < "u" && ((W = process.env) == null ? void 0 : W.NEXT_PUBLIC_BASE_PATH) || "", C = ga(r, n), L = ya(w, "/favicon.svg"), I = b ? `${w}/api/user/avatar/${b}${N ? `?v=${N}` : ""}` : "", B = {
4914
4971
  xs: 20,
4915
4972
  sm: 28,
4916
4973
  md: 36,
@@ -4919,13 +4976,13 @@ function ya({
4919
4976
  }[a], z = C ? /* @__PURE__ */ t(
4920
4977
  "span",
4921
4978
  {
4922
- className: `${$} ${ba[a]} rounded-full flex items-center justify-center bg-[#071f1a] ring-1 ring-emerald-400/35 shadow-[0_0_0_1px_rgba(255,255,255,0.06)] flex-shrink-0 ${g}`,
4979
+ className: `${$} ${xa[a]} rounded-full flex items-center justify-center bg-[#071f1a] ring-1 ring-emerald-400/35 shadow-[0_0_0_1px_rgba(255,255,255,0.06)] flex-shrink-0 ${y}`,
4923
4980
  style: v,
4924
4981
  children: /* @__PURE__ */ t(
4925
4982
  "img",
4926
4983
  {
4927
4984
  src: L,
4928
- alt: j,
4985
+ alt: P,
4929
4986
  width: B,
4930
4987
  height: B,
4931
4988
  className: "h-full w-full object-contain"
@@ -4936,10 +4993,10 @@ function ya({
4936
4993
  "img",
4937
4994
  {
4938
4995
  src: I,
4939
- alt: j,
4996
+ alt: P,
4940
4997
  width: B,
4941
4998
  height: B,
4942
- className: `${$} rounded-full object-cover flex-shrink-0 ${g}`,
4999
+ className: `${$} rounded-full object-cover flex-shrink-0 ${y}`,
4943
5000
  style: v,
4944
5001
  onError: () => h(!0)
4945
5002
  },
@@ -4947,9 +5004,9 @@ function ya({
4947
5004
  ) : /* @__PURE__ */ t(
4948
5005
  "span",
4949
5006
  {
4950
- className: `${$} ${xa(j)} ${P} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${g}`,
5007
+ className: `${$} ${va(P)} ${R} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${y}`,
4951
5008
  style: v,
4952
- title: j,
5009
+ title: P,
4953
5010
  children: D
4954
5011
  }
4955
5012
  );
@@ -4963,16 +5020,16 @@ function ya({
4963
5020
  /* @__PURE__ */ t(
4964
5021
  "span",
4965
5022
  {
4966
- className: `min-w-0 truncate ${fa[k]} font-medium text-[var(--text-main)] ${p}`,
4967
- title: j,
4968
- children: j
5023
+ className: `min-w-0 truncate ${pa[S]} font-medium text-[var(--text-main)] ${p}`,
5024
+ title: P,
5025
+ children: P
4969
5026
  }
4970
5027
  )
4971
5028
  ]
4972
5029
  }
4973
5030
  );
4974
- const _ = l ?? !0, U = d ?? j;
4975
- return _ && U ? /* @__PURE__ */ t(
5031
+ const H = c ?? !0, U = d ?? P;
5032
+ return H && U ? /* @__PURE__ */ t(
4976
5033
  Ct,
4977
5034
  {
4978
5035
  as: "span",
@@ -4982,30 +5039,30 @@ function ya({
4982
5039
  }
4983
5040
  ) : z;
4984
5041
  }
4985
- function wa({ href: e, className: r, children: n }) {
5042
+ function Na({ href: e, className: r, children: n }) {
4986
5043
  return /* @__PURE__ */ t("a", { href: e, className: r, children: n });
4987
5044
  }
4988
- function Na(e) {
5045
+ function ka(e) {
4989
5046
  return e.reduce((r, n) => {
4990
5047
  const a = n.section ?? "Principal";
4991
5048
  return r[a] = [...r[a] ?? [], n], r;
4992
5049
  }, {});
4993
5050
  }
4994
- function ka({
5051
+ function Sa({
4995
5052
  children: e,
4996
5053
  navItems: r = [],
4997
5054
  currentPath: n = typeof window > "u" ? "/" : window.location.pathname,
4998
5055
  user: a,
4999
5056
  appName: i = "Bonsaif",
5000
- appLogo: l,
5057
+ appLogo: c,
5001
5058
  header: d,
5002
5059
  footer: s,
5003
5060
  onLogout: f,
5004
- LinkComponent: p = wa
5061
+ LinkComponent: p = Na
5005
5062
  }) {
5006
- const [k, N] = O(!1), g = Na(r);
5063
+ const [S, N] = A(!1), y = ka(r);
5007
5064
  return /* @__PURE__ */ o("div", { className: "min-h-screen bg-[var(--bg-main)] text-[var(--text-main)]", children: [
5008
- /* @__PURE__ */ t(ua, {}),
5065
+ /* @__PURE__ */ t(ma, {}),
5009
5066
  /* @__PURE__ */ t(
5010
5067
  "button",
5011
5068
  {
@@ -5013,10 +5070,10 @@ function ka({
5013
5070
  "aria-label": "Abrir navegación",
5014
5071
  className: "fixed left-3 top-3 z-50 inline-flex h-9 w-9 items-center justify-center rounded-md border border-white/10 bg-black/70 text-white lg:hidden",
5015
5072
  onClick: () => N(!0),
5016
- children: /* @__PURE__ */ t(Rr, { className: "h-5 w-5" })
5073
+ children: /* @__PURE__ */ t(_r, { className: "h-5 w-5" })
5017
5074
  }
5018
5075
  ),
5019
- k && /* @__PURE__ */ t(
5076
+ S && /* @__PURE__ */ t(
5020
5077
  "button",
5021
5078
  {
5022
5079
  type: "button",
@@ -5028,10 +5085,10 @@ function ka({
5028
5085
  /* @__PURE__ */ o(
5029
5086
  "aside",
5030
5087
  {
5031
- className: `fixed inset-y-0 left-0 z-50 flex w-72 flex-col bg-[#071716] text-white shadow-2xl transition-transform duration-200 lg:translate-x-0 ${k ? "translate-x-0" : "-translate-x-full"}`,
5088
+ className: `fixed inset-y-0 left-0 z-50 flex w-72 flex-col bg-[#071716] text-white shadow-2xl transition-transform duration-200 lg:translate-x-0 ${S ? "translate-x-0" : "-translate-x-full"}`,
5032
5089
  children: [
5033
5090
  /* @__PURE__ */ o("div", { className: "flex h-16 items-center gap-3 border-b border-white/10 px-4", children: [
5034
- /* @__PURE__ */ t("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-white/10 text-white", children: l ?? /* @__PURE__ */ t(st, { className: "h-5 w-5" }) }),
5091
+ /* @__PURE__ */ t("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-white/10 text-white", children: c ?? /* @__PURE__ */ t(st, { className: "h-5 w-5" }) }),
5035
5092
  /* @__PURE__ */ t("div", { className: "min-w-0 flex-1 truncate text-sm font-semibold", children: i }),
5036
5093
  /* @__PURE__ */ t(
5037
5094
  "button",
@@ -5049,7 +5106,7 @@ function ka({
5049
5106
  {
5050
5107
  className: "sidebar-scroll min-h-0 flex-1 overflow-y-auto px-3 py-4",
5051
5108
  "data-overlay-scroll": "true",
5052
- children: Object.entries(g).map(([v, m]) => /* @__PURE__ */ o("div", { className: "mb-5", children: [
5109
+ children: Object.entries(y).map(([v, m]) => /* @__PURE__ */ o("div", { className: "mb-5", children: [
5053
5110
  /* @__PURE__ */ o("div", { className: "mb-2 flex items-center gap-2 px-2 text-[11px] font-semibold uppercase tracking-wide text-white/35", children: [
5054
5111
  /* @__PURE__ */ t(Ye, { className: "h-3.5 w-3.5" }),
5055
5112
  v
@@ -5075,7 +5132,7 @@ function ka({
5075
5132
  /* @__PURE__ */ o("div", { className: "border-t border-white/10 p-3", children: [
5076
5133
  a && /* @__PURE__ */ o("div", { className: "mb-3 flex min-w-0 items-center gap-3 rounded-lg bg-white/[0.04] p-2", children: [
5077
5134
  /* @__PURE__ */ t(
5078
- ya,
5135
+ wa,
5079
5136
  {
5080
5137
  name: a.initials ?? a.name ?? a.email ?? "Usuario",
5081
5138
  size: "md"
@@ -5109,7 +5166,7 @@ function ka({
5109
5166
  ] })
5110
5167
  ] });
5111
5168
  }
5112
- const Sa = {
5169
+ const Ca = {
5113
5170
  dashboard: "Dashboard",
5114
5171
  tickets: "Tickets",
5115
5172
  teams: "Equipos",
@@ -5133,29 +5190,29 @@ const Sa = {
5133
5190
  "security-incidents": "Incidentes",
5134
5191
  "guard-schedule": "Guardias"
5135
5192
  }, gt = {
5136
- dashboard: /* @__PURE__ */ t(Vr, { className: "h-5 w-5" }),
5137
- tickets: /* @__PURE__ */ t(Gr, { className: "h-5 w-5" }),
5138
- teams: /* @__PURE__ */ t(Ht, { className: "h-5 w-5" }),
5193
+ dashboard: /* @__PURE__ */ t(Xr, { className: "h-5 w-5" }),
5194
+ tickets: /* @__PURE__ */ t(Vr, { className: "h-5 w-5" }),
5195
+ teams: /* @__PURE__ */ t(_t, { className: "h-5 w-5" }),
5139
5196
  projects: /* @__PURE__ */ t(Kr, { className: "h-5 w-5" }),
5140
- clients: /* @__PURE__ */ t(qr, { className: "h-5 w-5" }),
5141
- surveys: /* @__PURE__ */ t(Yr, { className: "h-5 w-5" }),
5142
- profile: /* @__PURE__ */ t(Ur, { className: "h-5 w-5" }),
5197
+ clients: /* @__PURE__ */ t(Gr, { className: "h-5 w-5" }),
5198
+ surveys: /* @__PURE__ */ t(qr, { className: "h-5 w-5" }),
5199
+ profile: /* @__PURE__ */ t(Yr, { className: "h-5 w-5" }),
5143
5200
  settings: /* @__PURE__ */ t(Rt, { className: "h-5 w-5" }),
5144
- notifications: /* @__PURE__ */ t(Fr, { className: "h-5 w-5" }),
5145
- changelog: /* @__PURE__ */ t(Wr, { className: "h-5 w-5" }),
5201
+ notifications: /* @__PURE__ */ t(Ur, { className: "h-5 w-5" }),
5202
+ changelog: /* @__PURE__ */ t(Fr, { className: "h-5 w-5" }),
5146
5203
  admin: /* @__PURE__ */ t(bt, { className: "h-5 w-5" }),
5147
- users: /* @__PURE__ */ t(Ht, { className: "h-5 w-5" }),
5204
+ users: /* @__PURE__ */ t(_t, { className: "h-5 w-5" }),
5148
5205
  roles: /* @__PURE__ */ t(bt, { className: "h-5 w-5" }),
5149
5206
  menus: /* @__PURE__ */ t(Rt, { className: "h-5 w-5" }),
5150
5207
  guards: /* @__PURE__ */ t(wt, { className: "h-5 w-5" }),
5151
5208
  vacations: /* @__PURE__ */ t(wt, { className: "h-5 w-5" }),
5152
5209
  audit: /* @__PURE__ */ t(Pt, { className: "h-5 w-5" }),
5153
- positions: /* @__PURE__ */ t(_r, { className: "h-5 w-5" }),
5210
+ positions: /* @__PURE__ */ t(Wr, { className: "h-5 w-5" }),
5154
5211
  ranks: /* @__PURE__ */ t(Pt, { className: "h-5 w-5" }),
5155
5212
  "email-inbox": /* @__PURE__ */ t(ar, { className: "h-5 w-5" }),
5156
5213
  "security-incidents": /* @__PURE__ */ t(bt, { className: "h-5 w-5" })
5157
5214
  };
5158
- function Ca({
5215
+ function $a({
5159
5216
  href: e,
5160
5217
  className: r,
5161
5218
  style: n,
@@ -5163,54 +5220,54 @@ function Ca({
5163
5220
  }) {
5164
5221
  return /* @__PURE__ */ t("a", { href: e, className: r, style: n, children: a });
5165
5222
  }
5166
- function $a(e) {
5223
+ function Ea(e) {
5167
5224
  return e.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
5168
5225
  }
5169
- function Ea(e) {
5226
+ function Ma(e) {
5170
5227
  return /^\d+$/.test(e) || /^[a-f0-9]{8,}$/i.test(e);
5171
5228
  }
5172
- function Ma(e) {
5229
+ function Da(e) {
5173
5230
  const r = e.split("/").filter(Boolean);
5174
5231
  if (r.length === 0 || r.length === 1 && r[0] === "dashboard")
5175
5232
  return [];
5176
- const n = decodeURIComponent(r[r.length - 1]), a = r.length > 1 ? decodeURIComponent(r[r.length - 2]) : void 0, i = Ea(n) && a ? a : n, l = Sa[i] ?? $a(i);
5177
- return [{ label: "Inicio", href: "/" }, { label: l }];
5233
+ const n = decodeURIComponent(r[r.length - 1]), a = r.length > 1 ? decodeURIComponent(r[r.length - 2]) : void 0, i = Ma(n) && a ? a : n, c = Ca[i] ?? Ea(i);
5234
+ return [{ label: "Inicio", href: "/" }, { label: c }];
5178
5235
  }
5179
5236
  function yt(e) {
5180
5237
  return (e == null ? void 0 : e.querySelector(":scope > .os-viewport")) ?? (e == null ? void 0 : e.querySelector(
5181
5238
  ":scope > [data-overlayscrollbars-viewport]"
5182
5239
  ));
5183
5240
  }
5184
- function Da(e) {
5241
+ function La(e) {
5185
5242
  const r = e.split("/").filter(Boolean), n = r[r.length - 1];
5186
5243
  if (!n) return /* @__PURE__ */ t(st, { className: "h-5 w-5" });
5187
5244
  if (gt[n]) return gt[n];
5188
5245
  const a = r.length > 1 ? r[r.length - 2] : "";
5189
5246
  return gt[a] ?? /* @__PURE__ */ t(st, { className: "h-5 w-5" });
5190
5247
  }
5191
- function xo({
5248
+ function vo({
5192
5249
  title: e,
5193
5250
  subtitle: r,
5194
5251
  action: n,
5195
5252
  meta: a,
5196
5253
  icon: i,
5197
- className: l = "",
5254
+ className: c = "",
5198
5255
  contentClassName: d = "",
5199
5256
  breadcrumbs: s,
5200
5257
  currentPath: f = typeof window > "u" ? "/" : window.location.pathname,
5201
5258
  showBreadcrumbs: p = !0,
5202
- contained: k = !1,
5203
- LinkComponent: N = Ca
5259
+ contained: S = !1,
5260
+ LinkComponent: N = $a
5204
5261
  }) {
5205
- const g = ee(null), [v, m] = O(!1), [h, b] = O(null), $ = s ?? Ma(f), P = i ?? Da(f), j = p && $.length > 1;
5206
- return H(() => {
5207
- if (k) {
5262
+ const y = ee(null), [v, m] = A(!1), [h, b] = A(null), $ = s ?? Da(f), R = i ?? La(f), P = p && $.length > 1;
5263
+ return _(() => {
5264
+ if (S) {
5208
5265
  m(!1);
5209
5266
  return;
5210
5267
  }
5211
5268
  let D = null, w = 0, C = 0;
5212
5269
  const L = () => {
5213
- const B = g.current, z = document.querySelector(
5270
+ const B = y.current, z = document.querySelector(
5214
5271
  "[data-app-scroll='true']"
5215
5272
  );
5216
5273
  return (B == null ? void 0 : B.closest(".os-viewport")) ?? (B == null ? void 0 : B.closest(
@@ -5225,23 +5282,23 @@ function xo({
5225
5282
  return T(), w = window.requestAnimationFrame(T), C = window.setTimeout(T, 120), () => {
5226
5283
  window.cancelAnimationFrame(w), window.clearTimeout(C), D == null || D.removeEventListener("scroll", I);
5227
5284
  };
5228
- }, [k]), H(() => {
5229
- if (k) {
5285
+ }, [S]), _(() => {
5286
+ if (S) {
5230
5287
  b(null);
5231
5288
  return;
5232
5289
  }
5233
5290
  let D = 0;
5234
5291
  const w = [], C = () => {
5235
- const U = g.current, W = U == null ? void 0 : U.parentElement, X = document.querySelector(
5292
+ const U = y.current, W = U == null ? void 0 : U.parentElement, Z = document.querySelector(
5236
5293
  "[data-app-scroll='true']"
5237
- ), te = yt(X) ?? X;
5294
+ ), te = yt(Z) ?? Z;
5238
5295
  if (!U || !W || !te) {
5239
5296
  b(null);
5240
5297
  return;
5241
5298
  }
5242
- const u = W.getBoundingClientRect(), M = window.getComputedStyle(W), F = te.getBoundingClientRect(), Z = te instanceof HTMLElement && te.clientWidth > 0 ? te.clientWidth : F.width, G = u.left + parseFloat(M.paddingLeft || "0"), ne = {
5243
- marginLeft: Math.round(F.left - G),
5244
- width: Math.round(Z)
5299
+ const u = W.getBoundingClientRect(), M = window.getComputedStyle(W), F = te.getBoundingClientRect(), K = te instanceof HTMLElement && te.clientWidth > 0 ? te.clientWidth : F.width, V = u.left + parseFloat(M.paddingLeft || "0"), ne = {
5300
+ marginLeft: Math.round(F.left - V),
5301
+ width: Math.round(K)
5245
5302
  };
5246
5303
  b(
5247
5304
  (le) => le && le.marginLeft === ne.marginLeft && le.width === ne.width ? le : ne
@@ -5250,27 +5307,27 @@ function xo({
5250
5307
  window.cancelAnimationFrame(D), D = window.requestAnimationFrame(C);
5251
5308
  };
5252
5309
  L(), window.addEventListener("resize", L);
5253
- const I = new ResizeObserver(L), T = g.current, B = T == null ? void 0 : T.parentElement, z = document.querySelector(
5310
+ const I = new ResizeObserver(L), T = y.current, B = T == null ? void 0 : T.parentElement, z = document.querySelector(
5254
5311
  "[data-app-scroll='true']"
5255
- ), _ = yt(z) ?? z;
5256
- return [B, z, _].forEach((U) => {
5312
+ ), H = yt(z) ?? z;
5313
+ return [B, z, H].forEach((U) => {
5257
5314
  U && I.observe(U);
5258
5315
  }), w.push(window.setTimeout(L, 120)), w.push(window.setTimeout(L, 280)), () => {
5259
5316
  window.cancelAnimationFrame(D), window.removeEventListener("resize", L), I.disconnect(), w.forEach((U) => window.clearTimeout(U));
5260
5317
  };
5261
- }, [k]), /* @__PURE__ */ t(
5318
+ }, [S]), /* @__PURE__ */ t(
5262
5319
  "div",
5263
5320
  {
5264
- ref: g,
5321
+ ref: y,
5265
5322
  "data-page-header": "true",
5266
5323
  "data-compact": v ? "true" : "false",
5267
- className: `sticky top-0 z-30 overflow-visible py-0 transition-[background-color,box-shadow,border-color] duration-300 ease-out ${k ? "mb-0 flex-shrink-0" : "mb-4 sm:mb-0"} ${l}`,
5324
+ className: `sticky top-0 z-30 overflow-visible py-0 transition-[background-color,box-shadow,border-color] duration-300 ease-out ${S ? "mb-0 flex-shrink-0" : "mb-4 sm:mb-0"} ${c}`,
5268
5325
  style: {
5269
5326
  ...h ? { marginLeft: h.marginLeft, width: h.width } : null,
5270
- background: k ? "var(--bg-card)" : v ? "var(--bg-main)" : "color-mix(in srgb, var(--bg-main) 44%, transparent)",
5327
+ background: S ? "var(--bg-card)" : v ? "var(--bg-main)" : "color-mix(in srgb, var(--bg-main) 44%, transparent)",
5271
5328
  backdropFilter: "saturate(1.2) blur(14px)",
5272
5329
  WebkitBackdropFilter: "saturate(1.2) blur(14px)",
5273
- borderBottom: k || v ? "1px solid var(--border)" : "1px solid transparent",
5330
+ borderBottom: S || v ? "1px solid var(--border)" : "1px solid transparent",
5274
5331
  boxShadow: v ? "0 10px 28px rgba(12, 54, 53, 0.12)" : "none"
5275
5332
  },
5276
5333
  children: /* @__PURE__ */ o(
@@ -5283,7 +5340,7 @@ function xo({
5283
5340
  {
5284
5341
  className: `min-w-0 flex flex-1 flex-col justify-center transition-[gap,transform] duration-300 ease-out ${v ? "gap-1" : "gap-1.5 sm:gap-2"}`,
5285
5342
  children: [
5286
- j && /* @__PURE__ */ t(
5343
+ P && /* @__PURE__ */ t(
5287
5344
  "nav",
5288
5345
  {
5289
5346
  "aria-label": "Breadcrumb",
@@ -5300,7 +5357,7 @@ function xo({
5300
5357
  className: "flex min-w-0 items-center gap-1.5",
5301
5358
  children: [
5302
5359
  w > 0 && /* @__PURE__ */ t(
5303
- je,
5360
+ Re,
5304
5361
  {
5305
5362
  className: "h-3.5 w-3.5 transition-[color,transform] duration-300 ease-out",
5306
5363
  style: { color: "var(--text-muted)" }
@@ -5344,9 +5401,9 @@ function xo({
5344
5401
  {
5345
5402
  className: `flex-shrink-0 transition-[color,transform,opacity] duration-300 ease-out ${v ? "scale-75 opacity-80" : "scale-90 opacity-100"}`,
5346
5403
  style: {
5347
- color: j ? "var(--text-secondary)" : "var(--text-muted)"
5404
+ color: P ? "var(--text-secondary)" : "var(--text-muted)"
5348
5405
  },
5349
- children: P
5406
+ children: R
5350
5407
  }
5351
5408
  ),
5352
5409
  /* @__PURE__ */ o(
@@ -5408,27 +5465,27 @@ function xo({
5408
5465
  }
5409
5466
  );
5410
5467
  }
5411
- function vo({
5468
+ function go({
5412
5469
  children: e,
5413
5470
  currentPath: r = typeof window > "u" ? "/" : window.location.pathname,
5414
5471
  publicRoutes: n = ["/", "/login", "/reset-password"],
5415
5472
  ...a
5416
5473
  }) {
5417
- return n.includes(r) ? /* @__PURE__ */ t(Se, { children: e }) : /* @__PURE__ */ t(ka, { currentPath: r, ...a, children: e });
5474
+ return n.includes(r) ? /* @__PURE__ */ t(Se, { children: e }) : /* @__PURE__ */ t(Sa, { currentPath: r, ...a, children: e });
5418
5475
  }
5419
5476
  function tr() {
5420
5477
  if (typeof window > "u") return "system";
5421
5478
  const e = localStorage.getItem("theme");
5422
5479
  return e === "light" || e === "dark" ? e : e === "system" ? "system" : document.documentElement.classList.contains("dark") ? "dark" : "light";
5423
5480
  }
5424
- function La(e, r, n) {
5481
+ function Ba(e, r, n) {
5425
5482
  try {
5426
5483
  const a = new URL(e), i = a.searchParams.get("callbackUrl");
5427
5484
  if (i) {
5428
- const l = new URL(i, a.origin);
5429
- return l.searchParams.set("theme", r), n && (l.searchParams.set("primeAuthOrigin", window.location.origin), l.searchParams.set("primeAuthProjectKey", n)), a.searchParams.set(
5485
+ const c = new URL(i, a.origin);
5486
+ return c.searchParams.set("theme", r), n && (c.searchParams.set("primeAuthOrigin", window.location.origin), c.searchParams.set("primeAuthProjectKey", n)), a.searchParams.set(
5430
5487
  "callbackUrl",
5431
- `${l.pathname}${l.search}${l.hash}`
5488
+ `${c.pathname}${c.search}${c.hash}`
5432
5489
  ), a.toString();
5433
5490
  }
5434
5491
  return a.searchParams.set("theme", r), n && (a.searchParams.set("primeAuthOrigin", window.location.origin), a.searchParams.set("primeAuthProjectKey", n)), a.toString();
@@ -5436,15 +5493,15 @@ function La(e, r, n) {
5436
5493
  return e;
5437
5494
  }
5438
5495
  }
5439
- function go({
5496
+ function yo({
5440
5497
  name: e,
5441
5498
  src: r,
5442
5499
  projectKey: n
5443
5500
  }) {
5444
- const [a, i] = O(
5501
+ const [a, i] = A(
5445
5502
  () => tr()
5446
- ), l = ee(null);
5447
- H(() => {
5503
+ ), c = ee(null);
5504
+ _(() => {
5448
5505
  const f = new MutationObserver(
5449
5506
  () => i(tr())
5450
5507
  );
@@ -5453,35 +5510,35 @@ function go({
5453
5510
  attributeFilter: ["class"]
5454
5511
  }), () => f.disconnect();
5455
5512
  }, []);
5456
- const d = Pe(
5457
- () => La(r, a, n),
5513
+ const d = _e(
5514
+ () => Ba(r, a, n),
5458
5515
  [n, r, a]
5459
- ), s = Pe(() => {
5516
+ ), s = _e(() => {
5460
5517
  try {
5461
5518
  return new URL(d).origin;
5462
5519
  } catch {
5463
5520
  return "";
5464
5521
  }
5465
5522
  }, [d]);
5466
- return H(() => {
5523
+ return _(() => {
5467
5524
  if (!n) return;
5468
5525
  const f = n;
5469
- function p(k) {
5526
+ function p(S) {
5470
5527
  var v, m, h;
5471
- if (k.source !== ((v = l.current) == null ? void 0 : v.contentWindow) || s && k.origin !== s) return;
5472
- if (((m = k.data) == null ? void 0 : m.type) === "prime-microservice:overlay") {
5528
+ if (S.source !== ((v = c.current) == null ? void 0 : v.contentWindow) || s && S.origin !== s) return;
5529
+ if (((m = S.data) == null ? void 0 : m.type) === "prime-microservice:overlay") {
5473
5530
  window.dispatchEvent(
5474
5531
  new CustomEvent("prime-auth:microservice-overlay", {
5475
- detail: { active: !!k.data.active }
5532
+ detail: { active: !!S.data.active }
5476
5533
  })
5477
5534
  );
5478
5535
  return;
5479
5536
  }
5480
- if (((h = k.data) == null ? void 0 : h.type) !== "prime-microservice:navigation") return;
5481
- const N = k.data.path;
5537
+ if (((h = S.data) == null ? void 0 : h.type) !== "prime-microservice:navigation") return;
5538
+ const N = S.data.path;
5482
5539
  if (!N || !N.startsWith("/") || N.startsWith("//")) return;
5483
- const g = `/apps/${encodeURIComponent(f)}${N}`;
5484
- `${window.location.pathname}${window.location.search}${window.location.hash}` !== g && (window.history.replaceState(window.history.state, "", g), window.dispatchEvent(
5540
+ const y = `/apps/${encodeURIComponent(f)}${N}`;
5541
+ `${window.location.pathname}${window.location.search}${window.location.hash}` !== y && (window.history.replaceState(window.history.state, "", y), window.dispatchEvent(
5485
5542
  new CustomEvent("prime-auth:microservice-navigation")
5486
5543
  ));
5487
5544
  }
@@ -5495,7 +5552,7 @@ function go({
5495
5552
  }, [s, n]), /* @__PURE__ */ t("div", { className: "flex h-full min-h-screen flex-col bg-[var(--bg-main)]", children: /* @__PURE__ */ t(
5496
5553
  "iframe",
5497
5554
  {
5498
- ref: l,
5555
+ ref: c,
5499
5556
  src: d,
5500
5557
  title: e,
5501
5558
  className: "min-h-0 flex-1 border-0 bg-[var(--bg-main)]",
@@ -5505,9 +5562,9 @@ function go({
5505
5562
  }
5506
5563
  ) });
5507
5564
  }
5508
- function yo() {
5509
- const [e, r] = O(""), [n, a] = O(!1), [i, l] = O({ width: 96, height: 96 });
5510
- return H(() => {
5565
+ function wo() {
5566
+ const [e, r] = A(""), [n, a] = A(!1), [i, c] = A({ width: 96, height: 96 });
5567
+ return _(() => {
5511
5568
  let d = !1;
5512
5569
  return fetch("/api/microservices/prime-suite/chat-url", { cache: "no-store" }).then((s) => s.ok ? s.json() : null).then((s) => {
5513
5570
  !d && (s != null && s.src) && r(s.src);
@@ -5515,12 +5572,12 @@ function yo() {
5515
5572
  }), () => {
5516
5573
  d = !0;
5517
5574
  };
5518
- }, []), H(() => {
5575
+ }, []), _(() => {
5519
5576
  const d = (s) => {
5520
5577
  var p;
5521
5578
  if (((p = s.data) == null ? void 0 : p.type) !== "prime-suite-chat:state") return;
5522
5579
  const f = !!s.data.active;
5523
- a(f), l({
5580
+ a(f), c({
5524
5581
  width: rr(s.data.width, 96, 720),
5525
5582
  height: rr(s.data.height, 96, 560)
5526
5583
  });
@@ -5547,7 +5604,7 @@ function rr(e, r, n) {
5547
5604
  const a = typeof e == "number" && Number.isFinite(e) ? e : r;
5548
5605
  return Math.max(r, Math.min(n, Math.ceil(a)));
5549
5606
  }
5550
- function Ba(e) {
5607
+ function Ta(e) {
5551
5608
  const r = document.documentElement, n = new MutationObserver(e);
5552
5609
  n.observe(r, { attributes: !0, attributeFilter: ["class"] });
5553
5610
  const a = window.matchMedia("(prefers-color-scheme: dark)");
@@ -5555,64 +5612,64 @@ function Ba(e) {
5555
5612
  n.disconnect(), a.removeEventListener("change", e);
5556
5613
  };
5557
5614
  }
5558
- function Ta() {
5615
+ function Aa() {
5559
5616
  const e = localStorage.getItem("theme") || "system", r = window.matchMedia("(prefers-color-scheme: dark)").matches;
5560
5617
  return document.documentElement.classList.contains("dark") || e === "dark" || e === "system" && r ? "dark" : "light";
5561
5618
  }
5562
5619
  function Oa() {
5563
5620
  return "light";
5564
5621
  }
5565
- function wo() {
5566
- const e = rn(
5567
- Ba,
5622
+ function No() {
5623
+ const e = nn(
5568
5624
  Ta,
5625
+ Aa,
5569
5626
  Oa
5570
5627
  );
5571
- return /* @__PURE__ */ t(ln, { position: "bottom-center", theme: e, richColors: !0, closeButton: !0 });
5628
+ return /* @__PURE__ */ t(cn, { position: "bottom-center", theme: e, richColors: !0, closeButton: !0 });
5572
5629
  }
5573
5630
  export {
5574
5631
  Ka as Alert,
5575
- ka as AuthShell,
5576
- Ya as BonsaifButton,
5632
+ Sa as AuthShell,
5633
+ qa as BonsaifButton,
5577
5634
  be as Button,
5578
- Ga as CalendarPicker,
5579
- Va as Checkbox,
5580
- Xa as CodeBlock,
5581
- Ja as CompactFilterSelect,
5582
- Za as CompactSearchInput,
5583
- Qa as ConfirmDialog,
5635
+ Va as CalendarPicker,
5636
+ Xa as Checkbox,
5637
+ Za as CodeBlock,
5638
+ Qa as CompactFilterSelect,
5639
+ Ja as CompactSearchInput,
5640
+ eo as ConfirmDialog,
5584
5641
  ur as CopyButton,
5585
- eo as CopyLinkButton,
5586
- to as DataTable,
5587
- ro as DateRangePicker,
5588
- ao as Drawer,
5589
- no as DropdownMenu,
5590
- qa as DynamicDetailTabs,
5591
- oo as EmptyState,
5592
- Un as FormField,
5593
- ua as GlobalScrollbars,
5594
- io as InputField,
5595
- gn as LoadingState,
5596
- go as MicroserviceFrame,
5597
- An as Modal,
5642
+ to as CopyLinkButton,
5643
+ ro as DataTable,
5644
+ no as DateRangePicker,
5645
+ oo as Drawer,
5646
+ ao as DropdownMenu,
5647
+ Ga as DynamicDetailTabs,
5648
+ io as EmptyState,
5649
+ Yn as FormField,
5650
+ ma as GlobalScrollbars,
5651
+ so as InputField,
5652
+ yn as LoadingState,
5653
+ yo as MicroserviceFrame,
5654
+ zn as Modal,
5598
5655
  Ct as MouseTooltip,
5599
- so as MultiSelect,
5600
- xo as PageHeader,
5601
- dn as PageSearchInput,
5602
- lo as Pagination,
5603
- vo as PrimeAuthRouteShell,
5604
- wo as PrimeAuthToaster,
5605
- yo as PrimeSuiteChatFrame,
5606
- co as RadioGroup,
5656
+ lo as MultiSelect,
5657
+ vo as PageHeader,
5658
+ un as PageSearchInput,
5659
+ co as Pagination,
5660
+ go as PrimeAuthRouteShell,
5661
+ No as PrimeAuthToaster,
5662
+ wo as PrimeSuiteChatFrame,
5663
+ uo as RadioGroup,
5607
5664
  mr as SearchableSelect,
5608
- uo as SectionPanel,
5609
- mo as StatusBadge,
5610
- po as StepWizard,
5611
- fo as Tabs,
5665
+ mo as SectionPanel,
5666
+ fo as StatusBadge,
5667
+ ho as StepWizard,
5668
+ po as Tabs,
5612
5669
  vt as TextInput,
5613
- la as Textarea,
5614
- ho as TextareaField,
5615
- bo as Toggle,
5616
- ya as UserAvatar,
5617
- cn
5670
+ ca as Textarea,
5671
+ bo as TextareaField,
5672
+ xo as Toggle,
5673
+ wa as UserAvatar,
5674
+ dn as cn
5618
5675
  };