@iaclinical/components 1.0.25 → 1.0.26

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,4 +1,4 @@
1
- import { defineComponent as P, computed as r, createElementBlock as l, openBlock as s, normalizeClass as c, createElementVNode as o, createCommentVNode as m, renderSlot as V, toDisplayString as x, createBlock as ee, unref as _e, normalizeStyle as Q, ref as L, onMounted as $e, onUnmounted as Ce, watch as ve, createTextVNode as q, withModifiers as H, createVNode as G, withDirectives as ue, Fragment as E, renderList as W, vModelSelect as ke, Teleport as pe, Transition as ce, withCtx as ae, nextTick as fe, resolveDynamicComponent as Me, vModelText as Ae } from "vue";
1
+ import { defineComponent as P, computed as r, createElementBlock as l, openBlock as s, normalizeClass as f, createElementVNode as o, createCommentVNode as m, renderSlot as V, toDisplayString as x, createBlock as ee, unref as _e, normalizeStyle as J, ref as O, onMounted as $e, onUnmounted as Ce, watch as ve, createTextVNode as q, withModifiers as H, createVNode as Q, withDirectives as ue, Fragment as E, renderList as W, vModelSelect as ke, Teleport as pe, Transition as ce, withCtx as ae, nextTick as fe, resolveDynamicComponent as Me, vModelText as Ae } from "vue";
2
2
  import { Icon as Ee } from "@iconify/vue";
3
3
  const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
4
4
  key: 1,
@@ -22,8 +22,8 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
22
22
  },
23
23
  emits: ["toggle-menu"],
24
24
  setup(t, { emit: b }) {
25
- const e = t, f = b, n = r(() => {
26
- const u = "flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full", v = {
25
+ const e = t, v = b, n = r(() => {
26
+ const u = "flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full", c = {
27
27
  default: "bg-primary-700 text-primary-50",
28
28
  dark: "bg-secondary-900 text-white",
29
29
  light: "bg-white text-secondary-900 border-b border-secondary-200"
@@ -34,22 +34,22 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
34
34
  }, h = e.sticky ? "sticky top-0" : "", i = e.shadow ? "shadow-md" : "";
35
35
  return [
36
36
  u,
37
- v[e.variant],
37
+ c[e.variant],
38
38
  a[e.height],
39
39
  h,
40
40
  i
41
41
  ].join(" ");
42
42
  });
43
- return (u, v) => (s(), l("header", {
44
- class: c(n.value)
43
+ return (u, c) => (s(), l("header", {
44
+ class: f(n.value)
45
45
  }, [
46
46
  o("div", Pe, [
47
47
  t.showMenuButton ? (s(), l("button", {
48
48
  key: 0,
49
- onClick: v[0] || (v[0] = (a) => f("toggle-menu")),
49
+ onClick: c[0] || (c[0] = (a) => v("toggle-menu")),
50
50
  class: "p-1.5 sm:p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
51
51
  "aria-label": "Toggle menu"
52
- }, [...v[1] || (v[1] = [
52
+ }, [...c[1] || (c[1] = [
53
53
  o("svg", {
54
54
  class: "w-5 h-5 sm:w-6 sm:h-6 text-primary-50",
55
55
  fill: "none",
@@ -80,8 +80,8 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
80
80
  }
81
81
  }), K = (t, b) => {
82
82
  const e = t.__vccOpts || t;
83
- for (const [f, n] of b)
84
- e[f] = n;
83
+ for (const [v, n] of b)
84
+ e[v] = n;
85
85
  return e;
86
86
  }, ml = /* @__PURE__ */ K(Ke, [["__scopeId", "data-v-c5861315"]]), Ue = ["type", "disabled", "aria-label"], Je = {
87
87
  key: 0,
@@ -101,7 +101,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
101
101
  },
102
102
  emits: ["click"],
103
103
  setup(t, { emit: b }) {
104
- const e = t, f = b, n = r(() => e.variant === "icon"), u = r(() => e.badge > 99 ? "99+" : e.badge.toString()), v = r(() => {
104
+ const e = t, v = b, n = r(() => e.variant === "icon"), u = r(() => e.badge > 99 ? "99+" : e.badge.toString()), c = r(() => {
105
105
  const h = "inline-flex items-center justify-center font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", i = {
106
106
  primary: "bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 focus-visible:ring-primary-700",
107
107
  secondary: "bg-secondary-200 text-secondary-900 hover:bg-secondary-300 hover:text-secondary-800 focus-visible:ring-secondary-500",
@@ -121,16 +121,16 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
121
121
  md: "rounded-lg",
122
122
  sm: "rounded-md",
123
123
  none: "rounded-none"
124
- }, T = e.textColor ? e.textColor : "", B = r(() => {
125
- var O, j;
126
- return e.textColorHover ? e.textColorHover : (O = e.textColor) != null && O.includes("white") || (j = e.textColor) != null && j.includes("50") ? "hover:text-black" : "";
124
+ }, T = e.textColor ? e.textColor : "", D = r(() => {
125
+ var L, j;
126
+ return e.textColorHover ? e.textColorHover : (L = e.textColor) != null && L.includes("white") || (j = e.textColor) != null && j.includes("50") ? "hover:text-black" : "";
127
127
  });
128
- return `${h} ${i[e.variant]} ${p[e.size]} ${g[e.radius]} ${T} ${B.value}`;
128
+ return `${h} ${i[e.variant]} ${p[e.size]} ${g[e.radius]} ${T} ${D.value}`;
129
129
  }), a = (h) => {
130
- e.disabled || f("click", h);
130
+ e.disabled || v("click", h);
131
131
  };
132
132
  return (h, i) => (s(), l("button", {
133
- class: c(v.value),
133
+ class: f(c.value),
134
134
  type: t.type,
135
135
  disabled: t.disabled,
136
136
  onClick: a,
@@ -159,7 +159,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
159
159
  lg: "24px",
160
160
  xl: "30px",
161
161
  "2xl": "36px"
162
- }, f = (a, h) => {
162
+ }, v = (a, h) => {
163
163
  const i = a.replace(/_/g, "-");
164
164
  switch (h) {
165
165
  case "filled":
@@ -175,13 +175,13 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
175
175
  default:
176
176
  return `material-symbols:${i}`;
177
177
  }
178
- }, n = r(() => f(b.name, b.variant)), u = r(() => {
178
+ }, n = r(() => v(b.name, b.variant)), u = r(() => {
179
179
  const a = [
180
180
  "inline-flex items-center justify-center select-none",
181
181
  "transition-transform duration-200"
182
182
  ];
183
183
  return b.color && (b.color.startsWith("text-") || b.color.startsWith("fill-")) && a.push(b.color), b.spin && a.push("animate-spin"), a.join(" ");
184
- }), v = r(() => {
184
+ }), c = r(() => {
185
185
  const a = {};
186
186
  if (e[b.size] ? (a.fontSize = e[b.size], a.width = e[b.size], a.height = e[b.size]) : (a.fontSize = b.size, a.width = b.size, a.height = b.size), b.color && !b.color.startsWith("text-") && !b.color.startsWith("fill-") && (a.color = b.color), b.rotate !== 0) {
187
187
  const h = `rotate(${b.rotate}deg)`;
@@ -191,8 +191,8 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
191
191
  });
192
192
  return (a, h) => (s(), ee(_e(Ee), {
193
193
  icon: n.value,
194
- class: c(u.value),
195
- style: Q(v.value),
194
+ class: f(u.value),
195
+ style: J(c.value),
196
196
  "aria-label": t.ariaLabel,
197
197
  role: t.ariaLabel ? "img" : void 0
198
198
  }, null, 8, ["icon", "class", "style", "aria-label", "role"]));
@@ -243,7 +243,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
243
243
  },
244
244
  emits: ["update:modelValue", "date-select", "range-select"],
245
245
  setup(t, { emit: b }) {
246
- const e = t, f = b, n = L(!1), u = L(null), v = L((/* @__PURE__ */ new Date()).getMonth()), a = L((/* @__PURE__ */ new Date()).getFullYear()), h = L(`calendar-${Math.random().toString(36).substr(2, 9)}`), i = L(null), p = L(null), g = [
246
+ const e = t, v = b, n = O(!1), u = O(null), c = O((/* @__PURE__ */ new Date()).getMonth()), a = O((/* @__PURE__ */ new Date()).getFullYear()), h = O(`calendar-${Math.random().toString(36).substr(2, 9)}`), i = O(null), p = O(null), g = [
247
247
  "Enero",
248
248
  "Febrero",
249
249
  "Marzo",
@@ -256,12 +256,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
256
256
  "Octubre",
257
257
  "Noviembre",
258
258
  "Diciembre"
259
- ], T = ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"], B = r(() => ({ sm: "xs", md: "sm", lg: "md" })[e.size] || "sm"), O = r(() => {
259
+ ], T = ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"], D = r(() => ({ sm: "xs", md: "sm", lg: "md" })[e.size] || "sm"), L = r(() => {
260
260
  const y = (/* @__PURE__ */ new Date()).getFullYear(), $ = [];
261
261
  for (let z = y - 100; z <= y + 10; z++)
262
262
  $.push(z);
263
263
  return $;
264
- }), j = r(() => "ds-label"), S = r(() => e.bordered ? "border border-neutral-300" : ""), D = r(() => {
264
+ }), j = r(() => "ds-label"), S = r(() => e.bordered ? "border border-neutral-300" : ""), B = r(() => {
265
265
  const y = "w-full rounded-md transition-colors focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer", $ = {
266
266
  sm: "px-3 py-1.5 pr-10 text-sm",
267
267
  md: "px-4 py-2 pr-10 text-base",
@@ -287,12 +287,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
287
287
  }[e.color]}`), M = r(() => `px-3 py-1.5 text-sm border border-secondary-300 rounded-md transition-colors focus:outline-none ${{
288
288
  primary: "text-primary-600 hover:text-primary-700 hover:bg-primary-50",
289
289
  secondary: "text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"
290
- }[e.color]}`), d = r(() => e.mode === "single" && e.modelValue && e.modelValue instanceof Date ? A(e.modelValue) : ""), w = r(() => e.mode === "range" && e.modelValue && typeof e.modelValue == "object" && "start" in e.modelValue && e.modelValue.start ? A(e.modelValue.start) : ""), C = r(() => e.mode === "range" && e.modelValue && typeof e.modelValue == "object" && "end" in e.modelValue && e.modelValue.end ? A(e.modelValue.end) : ""), J = r(() => e.mode === "single" ? i.value !== null : i.value !== null && p.value !== null && p.value >= i.value);
290
+ }[e.color]}`), d = r(() => e.mode === "single" && e.modelValue && e.modelValue instanceof Date ? A(e.modelValue) : ""), w = r(() => e.mode === "range" && e.modelValue && typeof e.modelValue == "object" && "start" in e.modelValue && e.modelValue.start ? A(e.modelValue.start) : ""), C = r(() => e.mode === "range" && e.modelValue && typeof e.modelValue == "object" && "end" in e.modelValue && e.modelValue.end ? A(e.modelValue.end) : ""), G = r(() => e.mode === "single" ? i.value !== null : i.value !== null && p.value !== null && p.value >= i.value);
291
291
  r(() => e.mode === "range" && i.value && p.value ? p.value < i.value : !1);
292
292
  const F = r(() => {
293
- const y = new Date(a.value, v.value, 1), $ = new Date(a.value, v.value + 1, 0), z = y.getDay(), _ = $.getDate(), U = [], Z = new Date(a.value, v.value - 1, 0);
293
+ const y = new Date(a.value, c.value, 1), $ = new Date(a.value, c.value + 1, 0), z = y.getDay(), _ = $.getDate(), U = [], Z = new Date(a.value, c.value - 1, 0);
294
294
  for (let R = z - 1; R >= 0; R--) {
295
- const X = new Date(a.value, v.value - 1, Z.getDate() - R);
295
+ const X = new Date(a.value, c.value - 1, Z.getDate() - R);
296
296
  U.push({
297
297
  day: X.getDate(),
298
298
  date: X,
@@ -302,7 +302,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
302
302
  });
303
303
  }
304
304
  for (let R = 1; R <= _; R++) {
305
- const X = new Date(a.value, v.value, R);
305
+ const X = new Date(a.value, c.value, R);
306
306
  U.push({
307
307
  day: R,
308
308
  date: X,
@@ -313,7 +313,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
313
313
  }
314
314
  const Ye = 42 - U.length;
315
315
  for (let R = 1; R <= Ye; R++) {
316
- const X = new Date(a.value, v.value + 1, R);
316
+ const X = new Date(a.value, c.value + 1, R);
317
317
  U.push({
318
318
  day: R,
319
319
  date: X,
@@ -400,18 +400,18 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
400
400
  e.mode === "single" ? (i.value = y, p.value = null) : u.value === "start" || !i.value ? (i.value = y, p.value = null, u.value = "end") : (u.value === "end" || !p.value) && (y < i.value ? (p.value = i.value, i.value = y) : p.value = y, u.value = null);
401
401
  }, Le = () => {
402
402
  if (e.mode === "single")
403
- f("update:modelValue", i.value), i.value && f("date-select", i.value);
403
+ v("update:modelValue", i.value), i.value && v("date-select", i.value);
404
404
  else {
405
405
  const y = { start: i.value, end: p.value };
406
- f("update:modelValue", y), f("range-select", y);
406
+ v("update:modelValue", y), v("range-select", y);
407
407
  }
408
408
  re();
409
409
  }, Oe = () => {
410
- v.value === 0 ? (v.value = 11, a.value--) : v.value--;
410
+ c.value === 0 ? (c.value = 11, a.value--) : c.value--;
411
411
  }, Fe = () => {
412
- v.value === 11 ? (v.value = 0, a.value++) : v.value++;
412
+ c.value === 11 ? (c.value = 0, a.value++) : c.value++;
413
413
  }, xe = () => {
414
- }, de = L(), we = (y) => {
414
+ }, de = O(), we = (y) => {
415
415
  de.value && !de.value.contains(y.target) && re();
416
416
  };
417
417
  return $e(() => {
@@ -429,17 +429,17 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
429
429
  t.label && t.showLabel ? (s(), l("label", {
430
430
  key: 0,
431
431
  for: h.value,
432
- class: c(j.value)
432
+ class: f(j.value)
433
433
  }, [
434
434
  q(x(t.label) + " ", 1),
435
435
  t.required ? (s(), l("span", Xe, "*")) : m("", !0)
436
436
  ], 10, Ze)) : m("", !0),
437
437
  o("div", {
438
- class: c(["relative rounded-md", S.value])
438
+ class: f(["relative rounded-md", S.value])
439
439
  }, [
440
440
  o("input", {
441
441
  id: h.value,
442
- class: c(D.value),
442
+ class: f(B.value),
443
443
  type: "text",
444
444
  disabled: t.disabled,
445
445
  placeholder: t.placeholder || "Seleccionar fecha",
@@ -451,30 +451,30 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
451
451
  }, null, 42, et),
452
452
  o("button", {
453
453
  type: "button",
454
- class: c(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
454
+ class: f(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
455
455
  onClick: H(Ie, ["stop"]),
456
456
  disabled: t.disabled
457
457
  }, [
458
- G(se, {
458
+ Q(se, {
459
459
  name: t.iconName,
460
- size: B.value
460
+ size: D.value
461
461
  }, null, 8, ["name", "size"])
462
462
  ], 10, tt)
463
463
  ], 2)
464
464
  ])) : (s(), l("div", st, [
465
465
  t.label && t.showLabel ? (s(), l("label", {
466
466
  key: 0,
467
- class: c(j.value)
467
+ class: f(j.value)
468
468
  }, [
469
469
  q(x(t.label) + " ", 1),
470
470
  t.required ? (s(), l("span", lt, "*")) : m("", !0)
471
471
  ], 2)) : m("", !0),
472
472
  o("div", ot, [
473
473
  o("div", {
474
- class: c(["relative rounded-md", S.value])
474
+ class: f(["relative rounded-md", S.value])
475
475
  }, [
476
476
  o("input", {
477
- class: c(D.value),
477
+ class: f(B.value),
478
478
  type: "text",
479
479
  disabled: t.disabled,
480
480
  placeholder: t.startPlaceholder || "Fecha desde",
@@ -486,21 +486,21 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
486
486
  }, null, 42, at),
487
487
  o("button", {
488
488
  type: "button",
489
- class: c(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
489
+ class: f(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
490
490
  onClick: $[2] || ($[2] = H(() => me("start"), ["stop"])),
491
491
  disabled: t.disabled
492
492
  }, [
493
- G(se, {
493
+ Q(se, {
494
494
  name: t.startIconName,
495
- size: B.value
495
+ size: D.value
496
496
  }, null, 8, ["name", "size"])
497
497
  ], 10, nt)
498
498
  ], 2),
499
499
  o("div", {
500
- class: c(["relative rounded-md", S.value])
500
+ class: f(["relative rounded-md", S.value])
501
501
  }, [
502
502
  o("input", {
503
- class: c(D.value),
503
+ class: f(B.value),
504
504
  type: "text",
505
505
  disabled: t.disabled,
506
506
  placeholder: t.endPlaceholder || "Fecha hasta",
@@ -512,13 +512,13 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
512
512
  }, null, 42, rt),
513
513
  o("button", {
514
514
  type: "button",
515
- class: c(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
515
+ class: f(["absolute right-3 top-1/2 -translate-y-1/2", k.value]),
516
516
  onClick: $[5] || ($[5] = H(() => me("end"), ["stop"])),
517
517
  disabled: t.disabled
518
518
  }, [
519
- G(se, {
519
+ Q(se, {
520
520
  name: t.endIconName,
521
- size: B.value
521
+ size: D.value
522
522
  }, null, 8, ["name", "size"])
523
523
  ], 10, it)
524
524
  ], 2)
@@ -527,7 +527,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
527
527
  t.error ? (s(), l("p", dt, x(t.error), 1)) : t.helperText ? (s(), l("p", ut, x(t.helperText), 1)) : m("", !0),
528
528
  n.value ? (s(), l("div", {
529
529
  key: 4,
530
- class: c(["absolute top-full mt-1 left-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden p-4", I.value]),
530
+ class: f(["absolute top-full mt-1 left-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden p-4", I.value]),
531
531
  onClick: $[8] || ($[8] = H(() => {
532
532
  }, ["stop"]))
533
533
  }, [
@@ -535,17 +535,17 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
535
535
  o("button", {
536
536
  type: "button",
537
537
  onClick: Oe,
538
- class: c(Y.value)
538
+ class: f(Y.value)
539
539
  }, [
540
- G(se, {
540
+ Q(se, {
541
541
  name: "chevron-left",
542
542
  size: "sm"
543
543
  })
544
544
  ], 2),
545
545
  o("div", ft, [
546
546
  ue(o("select", {
547
- "onUpdate:modelValue": $[6] || ($[6] = (z) => v.value = z),
548
- class: c(N.value),
547
+ "onUpdate:modelValue": $[6] || ($[6] = (z) => c.value = z),
548
+ class: f(N.value),
549
549
  onChange: xe
550
550
  }, [
551
551
  (s(), l(E, null, W(g, (z, _) => o("option", {
@@ -553,14 +553,14 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
553
553
  value: _
554
554
  }, x(z), 9, vt)), 64))
555
555
  ], 34), [
556
- [ke, v.value]
556
+ [ke, c.value]
557
557
  ]),
558
558
  ue(o("select", {
559
559
  "onUpdate:modelValue": $[7] || ($[7] = (z) => a.value = z),
560
- class: c(N.value),
560
+ class: f(N.value),
561
561
  onChange: xe
562
562
  }, [
563
- (s(!0), l(E, null, W(O.value, (z) => (s(), l("option", {
563
+ (s(!0), l(E, null, W(L.value, (z) => (s(), l("option", {
564
564
  key: z,
565
565
  value: z
566
566
  }, x(z), 9, pt))), 128))
@@ -571,9 +571,9 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
571
571
  o("button", {
572
572
  type: "button",
573
573
  onClick: Fe,
574
- class: c(Y.value)
574
+ class: f(Y.value)
575
575
  }, [
576
- G(se, {
576
+ Q(se, {
577
577
  name: "chevron-right",
578
578
  size: "sm"
579
579
  })
@@ -589,7 +589,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
589
589
  (s(!0), l(E, null, W(F.value, (z) => (s(), l("button", {
590
590
  key: z.key,
591
591
  type: "button",
592
- class: c(De(z)),
592
+ class: f(De(z)),
593
593
  disabled: z.disabled || ge(z.date),
594
594
  onClick: (_) => je(z.date)
595
595
  }, x(z.day), 11, yt))), 128))
@@ -597,14 +597,14 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
597
597
  o("div", mt, [
598
598
  o("button", {
599
599
  type: "button",
600
- class: c(M.value),
600
+ class: f(M.value),
601
601
  onClick: re
602
602
  }, " Cancelar ", 2),
603
603
  o("button", {
604
604
  type: "button",
605
- class: c(te.value),
605
+ class: f(te.value),
606
606
  onClick: Le,
607
- disabled: !J.value
607
+ disabled: !G.value
608
608
  }, " Confirmar ", 10, ht)
609
609
  ])
610
610
  ], 2)) : m("", !0)
@@ -630,7 +630,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
630
630
  md: "shadow",
631
631
  lg: "shadow-lg",
632
632
  xl: "shadow-xl"
633
- }, f = {
633
+ }, v = {
634
634
  none: "rounded-none",
635
635
  sm: "rounded-sm",
636
636
  md: "rounded-md",
@@ -640,11 +640,11 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
640
640
  }, n = r(() => [
641
641
  "w-full bg-white",
642
642
  e[b.shadow],
643
- f[b.rounded],
643
+ v[b.rounded],
644
644
  b.bordered ? "border border-gray-200" : ""
645
645
  ]);
646
- return (u, v) => (s(), l("div", {
647
- class: c(n.value)
646
+ return (u, c) => (s(), l("div", {
647
+ class: f(n.value)
648
648
  }, [
649
649
  u.$slots.header ? (s(), l("div", wt, [
650
650
  V(u.$slots, "header")
@@ -669,21 +669,21 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
669
669
  },
670
670
  emits: ["update:modelValue", "close"],
671
671
  setup(t, { emit: b }) {
672
- const e = t, f = b, n = r({
672
+ const e = t, v = b, n = r({
673
673
  get: () => e.modelValue,
674
- set: (a) => f("update:modelValue", a)
674
+ set: (a) => v("update:modelValue", a)
675
675
  }), u = () => {
676
- n.value = !1, f("close");
677
- }, v = () => {
676
+ n.value = !1, v("close");
677
+ }, c = () => {
678
678
  e.closeOnBackdrop && u();
679
679
  };
680
680
  return (a, h) => (s(), ee(pe, { to: "body" }, [
681
- G(ce, { name: "dialog" }, {
681
+ Q(ce, { name: "dialog" }, {
682
682
  default: ae(() => [
683
683
  n.value ? (s(), l("div", {
684
684
  key: 0,
685
685
  class: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 px-4",
686
- onClick: v
686
+ onClick: c
687
687
  }, [
688
688
  o("div", {
689
689
  class: "relative w-full rounded-lg bg-white shadow-xl sm:max-w-lg md:max-w-2xl",
@@ -759,7 +759,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
759
759
  },
760
760
  emits: ["update:modelValue", "change", "error"],
761
761
  setup(t, { emit: b }) {
762
- const e = t, f = b, n = L(null), u = L(!1), v = L(e.modelValue), a = L(""), h = r(() => ({
762
+ const e = t, v = b, n = O(null), u = O(!1), c = O(e.modelValue), a = O(""), h = r(() => ({
763
763
  sm: "w-20 h-20",
764
764
  md: "w-32 h-32",
765
765
  lg: "w-48 h-48",
@@ -773,30 +773,30 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
773
773
  e.disabled || (u.value = !0);
774
774
  }, T = () => {
775
775
  u.value = !1;
776
- }, B = (k) => {
776
+ }, D = (k) => {
777
777
  if (a.value = "", e.maxSize && k.size > e.maxSize) {
778
778
  const I = (e.maxSize / 1048576).toFixed(2);
779
- return a.value = `El archivo excede el tamaño máximo de ${I}MB`, f("error", a.value), !1;
779
+ return a.value = `El archivo excede el tamaño máximo de ${I}MB`, v("error", a.value), !1;
780
780
  }
781
781
  return !0;
782
- }, O = (k) => {
782
+ }, L = (k) => {
783
783
  var N;
784
784
  const Y = (N = k.target.files) == null ? void 0 : N[0];
785
- Y && B(Y) && (v.value = Y, f("update:modelValue", Y), f("change", Y));
785
+ Y && D(Y) && (c.value = Y, v("update:modelValue", Y), v("change", Y));
786
786
  }, j = (k) => {
787
787
  var Y;
788
788
  u.value = !1;
789
789
  const I = (Y = k.dataTransfer) == null ? void 0 : Y.files[0];
790
- I && B(I) && (v.value = I, f("update:modelValue", I), f("change", I));
790
+ I && D(I) && (c.value = I, v("update:modelValue", I), v("change", I));
791
791
  }, S = () => {
792
- v.value = null, a.value = "", n.value && (n.value.value = ""), f("update:modelValue", null), f("change", null);
793
- }, D = (k) => {
792
+ c.value = null, a.value = "", n.value && (n.value.value = ""), v("update:modelValue", null), v("change", null);
793
+ }, B = (k) => {
794
794
  if (k === 0) return "0 Bytes";
795
795
  const I = 1024, Y = ["Bytes", "KB", "MB", "GB"], N = Math.floor(Math.log(k) / Math.log(I));
796
796
  return Math.round(k / Math.pow(I, N) * 100) / 100 + " " + Y[N];
797
797
  };
798
798
  return (k, I) => (s(), l("div", {
799
- class: c(["relative border-2 border-dashed rounded-lg p-8 transition-colors", [
799
+ class: f(["relative border-2 border-dashed rounded-lg p-8 transition-colors", [
800
800
  u.value ? "border-primary-700 bg-primary-50" : "border-gray-300 bg-white hover:border-primary-500",
801
801
  t.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
802
802
  ]]),
@@ -813,11 +813,11 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
813
813
  multiple: t.multiple,
814
814
  disabled: t.disabled,
815
815
  class: "hidden",
816
- onChange: O
816
+ onChange: L
817
817
  }, null, 40, Vt),
818
818
  o("div", Tt, [
819
819
  o("div", {
820
- class: c([h.value, "flex items-center justify-center"])
820
+ class: f([h.value, "flex items-center justify-center"])
821
821
  }, [
822
822
  t.illustration ? (s(), l("img", {
823
823
  key: 0,
@@ -839,7 +839,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
839
839
  o("span", Ot, x(t.linkText), 1)
840
840
  ])
841
841
  ]),
842
- v.value ? (s(), l("div", {
842
+ c.value ? (s(), l("div", {
843
843
  key: 0,
844
844
  class: "w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",
845
845
  onClick: I[0] || (I[0] = H(() => {
@@ -860,8 +860,8 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
860
860
  })
861
861
  ], -1)),
862
862
  o("div", Yt, [
863
- o("p", _t, x(v.value.name), 1),
864
- o("p", At, x(D(v.value.size)), 1)
863
+ o("p", _t, x(c.value.name), 1),
864
+ o("p", At, x(B(c.value.size)), 1)
865
865
  ])
866
866
  ]),
867
867
  t.disabled ? m("", !0) : (s(), l("button", {
@@ -916,7 +916,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
916
916
  },
917
917
  emits: ["update:modelValue", "blur", "focus"],
918
918
  setup(t, { emit: b }) {
919
- const e = t, f = b, n = L(`input-${Math.random().toString(36).substr(2, 9)}`), u = r(() => "ds-label"), v = r(() => {
919
+ const e = t, v = b, n = O(`input-${Math.random().toString(36).substr(2, 9)}`), u = r(() => "ds-label"), c = r(() => {
920
920
  const p = "w-full rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50", g = {
921
921
  sm: "h-8 px-3 text-sm",
922
922
  md: "h-10 px-4 text-base",
@@ -925,21 +925,21 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
925
925
  default: "border border-secondary-300 bg-white focus:border-primary-500 focus:ring-primary-500",
926
926
  filled: "border-0 bg-secondary-100 focus:bg-white focus:ring-primary-500",
927
927
  outlined: "border-2 border-secondary-300 bg-transparent focus:border-primary-500 focus:ring-primary-500"
928
- }, B = e.error ? "border-danger-500 focus:border-danger-500 focus:ring-danger-500 pr-10" : "";
929
- return `${p} ${g[e.size]} ${T[e.variant]} ${B}`;
928
+ }, D = e.error ? "border-danger-500 focus:border-danger-500 focus:ring-danger-500 pr-10" : "";
929
+ return `${p} ${g[e.size]} ${T[e.variant]} ${D}`;
930
930
  }), a = (p) => {
931
931
  const g = p.target;
932
- f("update:modelValue", g.value);
932
+ v("update:modelValue", g.value);
933
933
  }, h = (p) => {
934
- f("blur", p);
934
+ v("blur", p);
935
935
  }, i = (p) => {
936
- f("focus", p);
936
+ v("focus", p);
937
937
  };
938
938
  return (p, g) => (s(), l("div", qt, [
939
939
  t.label ? (s(), l("label", {
940
940
  key: 0,
941
941
  for: n.value,
942
- class: c(u.value)
942
+ class: f(u.value)
943
943
  }, [
944
944
  q(x(t.label) + " ", 1),
945
945
  t.required ? (s(), l("span", Nt, "*")) : m("", !0)
@@ -947,7 +947,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
947
947
  o("div", Wt, [
948
948
  o("input", {
949
949
  id: n.value,
950
- class: c(v.value),
950
+ class: f(c.value),
951
951
  type: t.type,
952
952
  disabled: t.disabled,
953
953
  placeholder: t.placeholder,
@@ -997,21 +997,21 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
997
997
  warning: "text-warning-500",
998
998
  danger: "text-danger-500",
999
999
  info: "text-info-500"
1000
- }, f = {
1000
+ }, v = {
1001
1001
  primary: "bg-primary-700",
1002
1002
  secondary: "bg-secondary-500",
1003
1003
  success: "bg-success-500",
1004
1004
  warning: "bg-warning-500",
1005
1005
  danger: "bg-danger-500",
1006
1006
  info: "bg-info-500"
1007
- }, n = r(() => [e[b.color]]), u = r(() => [f[b.color]]);
1008
- return (v, a) => t.type === "circular" ? (s(), l("div", {
1007
+ }, n = r(() => [e[b.color]]), u = r(() => [v[b.color]]);
1008
+ return (c, a) => t.type === "circular" ? (s(), l("div", {
1009
1009
  key: 0,
1010
- class: c(n.value)
1010
+ class: f(n.value)
1011
1011
  }, [
1012
1012
  (s(), l("svg", {
1013
1013
  class: "animate-spin",
1014
- style: Q({ width: t.size, height: t.size }),
1014
+ style: J({ width: t.size, height: t.size }),
1015
1015
  viewBox: "0 0 24 24"
1016
1016
  }, [
1017
1017
  o("circle", {
@@ -1032,12 +1032,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1032
1032
  ], 2)) : t.type === "linear" ? (s(), l("div", {
1033
1033
  key: 1,
1034
1034
  class: "w-full",
1035
- style: Q({ height: t.height })
1035
+ style: J({ height: t.height })
1036
1036
  }, [
1037
1037
  o("div", Zt, [
1038
1038
  o("div", {
1039
- class: c([[u.value, { "animate-linear-loader": t.progress === void 0 }], "h-full rounded-lg"]),
1040
- style: Q({ width: t.progress !== void 0 ? `${Math.min(Math.max(t.progress, 0), 100)}%` : "100%" })
1039
+ class: f([[u.value, { "animate-linear-loader": t.progress === void 0 }], "h-full rounded-lg"]),
1040
+ style: J({ width: t.progress !== void 0 ? `${Math.min(Math.max(t.progress, 0), 100)}%` : "100%" })
1041
1041
  }, null, 6)
1042
1042
  ])
1043
1043
  ], 4)) : m("", !0);
@@ -1077,7 +1077,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1077
1077
  },
1078
1078
  emits: ["open", "close", "select"],
1079
1079
  setup(t, { emit: b }) {
1080
- const e = t, f = b, n = L(!1), u = L(null), v = L(null), a = L({}), h = r(() => [
1080
+ const e = t, v = b, n = O(!1), u = O(null), c = O(null), a = O({}), h = r(() => [
1081
1081
  "inline-flex items-center justify-center px-4 py-2 text-sm font-medium",
1082
1082
  "bg-white border border-secondary-300 rounded-md text-secondary-700",
1083
1083
  "hover:bg-secondary-100 hover:text-secondary-900 hover:border-secondary-400",
@@ -1088,39 +1088,39 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1088
1088
  "fixed bg-white rounded-lg shadow-lg border border-secondary-200",
1089
1089
  "flex flex-col",
1090
1090
  "focus:outline-none"
1091
- ], `z-${e.zIndex}`].join(" ")), p = r(() => "px-4 py-3 border-b border-secondary-200 bg-secondary-50"), g = r(() => "px-4 py-3 border-t border-secondary-200 bg-secondary-50"), T = r(() => "py-1 overflow-y-auto flex-1 min-h-0"), B = r(() => "my-1 border-t border-secondary-200"), O = r(() => "px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"), j = (d) => {
1091
+ ], `z-${e.zIndex}`].join(" ")), p = r(() => "px-4 py-3 border-b border-secondary-200 bg-secondary-50"), g = r(() => "px-4 py-3 border-t border-secondary-200 bg-secondary-50"), T = r(() => "py-1 overflow-y-auto flex-1 min-h-0"), D = r(() => "my-1 border-t border-secondary-200"), L = r(() => "px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"), j = (d) => {
1092
1092
  const w = [
1093
1093
  "w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left",
1094
1094
  "transition-all duration-150 focus:outline-none cursor-pointer",
1095
1095
  "disabled:opacity-50 disabled:cursor-not-allowed"
1096
- ], C = d.variant || "default", J = {
1096
+ ], C = d.variant || "default", G = {
1097
1097
  default: "text-secondary-700 hover:bg-secondary-100 hover:text-secondary-900 focus:bg-secondary-100",
1098
1098
  danger: "text-danger-600 hover:bg-danger-100 hover:text-danger-700 focus:bg-danger-100",
1099
1099
  success: "text-success-600 hover:bg-success-100 hover:text-success-700 focus:bg-success-100",
1100
1100
  warning: "text-warning-600 hover:bg-warning-100 hover:text-warning-700 focus:bg-warning-100"
1101
1101
  };
1102
1102
  let F = "";
1103
- return d.color && (F = d.color, (d.color.includes("white") || d.color.includes("50")) && (F += " hover:text-black")), [...w, F || J[C]].join(" ");
1103
+ return d.color && (F = d.color, (d.color.includes("white") || d.color.includes("50")) && (F += " hover:text-black")), [...w, F || G[C]].join(" ");
1104
1104
  }, S = () => {
1105
- e.disabled || (n.value ? k() : D());
1106
- }, D = () => {
1107
- n.value = !0, f("open"), fe(() => {
1105
+ e.disabled || (n.value ? k() : B());
1106
+ }, B = () => {
1107
+ n.value = !0, v("open"), fe(() => {
1108
1108
  M(), document.addEventListener("click", Y), document.addEventListener("keydown", N);
1109
1109
  });
1110
1110
  }, k = () => {
1111
- n.value = !1, f("close"), document.removeEventListener("click", Y), document.removeEventListener("keydown", N);
1111
+ n.value = !1, v("close"), document.removeEventListener("click", Y), document.removeEventListener("keydown", N);
1112
1112
  }, I = (d) => {
1113
- d.disabled || (d.action && d.action(), f("select", d), e.closeOnClick && !d.children && k());
1113
+ d.disabled || (d.action && d.action(), v("select", d), e.closeOnClick && !d.children && k());
1114
1114
  }, Y = (d) => {
1115
1115
  const w = d.target;
1116
- u.value && !u.value.contains(w) && v.value && !v.value.contains(w) && k();
1116
+ u.value && !u.value.contains(w) && c.value && !c.value.contains(w) && k();
1117
1117
  }, N = (d) => {
1118
1118
  d.key === "Escape" && k();
1119
1119
  }, te = (d) => {
1120
1120
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), S());
1121
1121
  }, M = () => {
1122
- if (!u.value || !v.value) return;
1123
- const d = u.value.getBoundingClientRect(), w = v.value.getBoundingClientRect(), C = window.innerWidth, J = window.innerHeight;
1122
+ if (!u.value || !c.value) return;
1123
+ const d = u.value.getBoundingClientRect(), w = c.value.getBoundingClientRect(), C = window.innerWidth, G = window.innerHeight;
1124
1124
  let F = 0, A = 0;
1125
1125
  switch (e.position) {
1126
1126
  case "bottom-start":
@@ -1148,7 +1148,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1148
1148
  F = d.bottom - w.height + e.offset.y, A = d.left - w.width - e.offset.x;
1149
1149
  break;
1150
1150
  }
1151
- A + w.width > C && (A = C - w.width - 8), A < 8 && (A = 8), F + w.height > J && (F = J - w.height - 8), F < 8 && (F = 8), a.value = {
1151
+ A + w.width > C && (A = C - w.width - 8), A < 8 && (A = 8), F + w.height > G && (F = G - w.height - 8), F < 8 && (F = 8), a.value = {
1152
1152
  top: `${F}px`,
1153
1153
  left: `${A}px`,
1154
1154
  width: e.width === "auto" ? `${Math.max(d.width, 240)}px` : e.width,
@@ -1163,7 +1163,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1163
1163
  }), ve(() => e.items, () => {
1164
1164
  n.value && fe(M);
1165
1165
  }, { deep: !0 }), (d, w) => (s(), l("div", {
1166
- class: c(["menu-wrapper", { "w-full": t.fullWidth }])
1166
+ class: f(["menu-wrapper", { "w-full": t.fullWidth }])
1167
1167
  }, [
1168
1168
  o("div", {
1169
1169
  ref_key: "triggerRef",
@@ -1175,7 +1175,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1175
1175
  }, () => [
1176
1176
  o("button", {
1177
1177
  type: "button",
1178
- class: c(h.value),
1178
+ class: f(h.value),
1179
1179
  disabled: t.disabled,
1180
1180
  onClick: S,
1181
1181
  onKeydown: te,
@@ -1189,7 +1189,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1189
1189
  ], !0),
1190
1190
  t.showChevron ? (s(), l("svg", {
1191
1191
  key: 0,
1192
- class: c(["w-4 h-4 ml-2 transition-transform", n.value ? "rotate-180" : ""]),
1192
+ class: f(["w-4 h-4 ml-2 transition-transform", n.value ? "rotate-180" : ""]),
1193
1193
  fill: "none",
1194
1194
  stroke: "currentColor",
1195
1195
  viewBox: "0 0 24 24"
@@ -1208,38 +1208,38 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1208
1208
  n.value ? (s(), l("div", {
1209
1209
  key: 0,
1210
1210
  ref_key: "menuRef",
1211
- ref: v,
1212
- class: c(i.value),
1213
- style: Q(a.value),
1211
+ ref: c,
1212
+ class: f(i.value),
1213
+ style: J(a.value),
1214
1214
  onClick: w[0] || (w[0] = H(() => {
1215
1215
  }, ["stop"]))
1216
1216
  }, [
1217
1217
  d.$slots.header ? (s(), l("div", {
1218
1218
  key: 0,
1219
- class: c(p.value)
1219
+ class: f(p.value)
1220
1220
  }, [
1221
1221
  V(d.$slots, "header", { close: k }, void 0, !0)
1222
1222
  ], 2)) : m("", !0),
1223
1223
  o("div", {
1224
- class: c(T.value)
1224
+ class: f(T.value)
1225
1225
  }, [
1226
1226
  V(d.$slots, "default", {
1227
1227
  close: k,
1228
1228
  isOpen: n.value
1229
1229
  }, () => [
1230
- (s(!0), l(E, null, W(t.items, (C, J) => (s(), l(E, {
1231
- key: C.id || J
1230
+ (s(!0), l(E, null, W(t.items, (C, G) => (s(), l(E, {
1231
+ key: C.id || G
1232
1232
  }, [
1233
1233
  C.type === "divider" ? (s(), l("div", {
1234
1234
  key: 0,
1235
- class: c(B.value)
1235
+ class: f(D.value)
1236
1236
  }, null, 2)) : C.type === "header" ? (s(), l("div", {
1237
1237
  key: 1,
1238
- class: c(O.value)
1238
+ class: f(L.value)
1239
1239
  }, x(C.label), 3)) : (s(), l("button", {
1240
1240
  key: 2,
1241
1241
  type: "button",
1242
- class: c(j(C)),
1242
+ class: f(j(C)),
1243
1243
  disabled: C.disabled,
1244
1244
  onClick: (F) => I(C)
1245
1245
  }, [
@@ -1292,7 +1292,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1292
1292
  ], 2),
1293
1293
  d.$slots.footer ? (s(), l("div", {
1294
1294
  key: 1,
1295
- class: c(g.value)
1295
+ class: f(g.value)
1296
1296
  }, [
1297
1297
  V(d.$slots, "footer", { close: k }, void 0, !0)
1298
1298
  ], 2)) : m("", !0)
@@ -1353,7 +1353,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1353
1353
  },
1354
1354
  emits: ["update:modelValue", "change", "action"],
1355
1355
  setup(t, { emit: b }) {
1356
- const e = t, f = b, n = L(!1), u = L(""), v = L(null), a = r(
1356
+ const e = t, v = b, n = O(!1), u = O(""), c = O(null), a = r(
1357
1357
  () => `select-${Math.random().toString(36).substr(2, 9)}`
1358
1358
  ), h = r(() => e.options.find((M) => M.value === e.modelValue) || null), i = r(() => {
1359
1359
  if (!e.searchable || !u.value)
@@ -1376,61 +1376,61 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1376
1376
  w[e.variant],
1377
1377
  C
1378
1378
  ].join(" ");
1379
- }), B = r(() => `absolute ${e.menuPosition === "top" ? "bottom-full mb-1" : "top-full mt-1"} left-0 right-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden`), O = (M) => {
1379
+ }), D = r(() => `absolute ${e.menuPosition === "top" ? "bottom-full mb-1" : "top-full mt-1"} left-0 right-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden`), L = (M) => {
1380
1380
  const d = "w-full px-4 py-2 text-left hover:bg-primary-50 transition-colors focus:outline-none focus:bg-primary-50 disabled:opacity-50 disabled:cursor-not-allowed", w = S(M) ? "bg-primary-50" : "";
1381
1381
  return [d, w].join(" ");
1382
1382
  }, j = (M) => {
1383
1383
  const d = "w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";
1384
1384
  return M.variant === "danger" ? `${d} text-danger-600 hover:bg-danger-50 focus:bg-danger-50` : `${d} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`;
1385
- }, S = (M) => M.value === e.modelValue, D = () => {
1385
+ }, S = (M) => M.value === e.modelValue, B = () => {
1386
1386
  e.disabled || (n.value = !n.value, n.value && e.searchable && fe(() => {
1387
1387
  var M;
1388
- (M = v.value) == null || M.focus();
1388
+ (M = c.value) == null || M.focus();
1389
1389
  }));
1390
1390
  }, k = () => {
1391
1391
  n.value = !1, u.value = "";
1392
1392
  }, I = (M) => {
1393
- M.disabled || (f("update:modelValue", M.value), f("change", M), k());
1393
+ M.disabled || (v("update:modelValue", M.value), v("change", M), k());
1394
1394
  }, Y = (M) => {
1395
- M.action && M.action(), f("action", M), k();
1395
+ M.action && M.action(), v("action", M), k();
1396
1396
  }, N = (M) => {
1397
1397
  const d = M.relatedTarget;
1398
1398
  d && d.closest(".select-wrapper") || setTimeout(() => {
1399
1399
  k();
1400
1400
  }, 200);
1401
1401
  }, te = (M) => {
1402
- M.key === "Escape" ? k() : (M.key === "Enter" || M.key === " ") && (M.preventDefault(), D());
1402
+ M.key === "Escape" ? k() : (M.key === "Enter" || M.key === " ") && (M.preventDefault(), B());
1403
1403
  };
1404
1404
  return ve(n, (M) => {
1405
1405
  M && (u.value = "");
1406
1406
  }), (M, d) => (s(), l("div", {
1407
- class: c(["select-wrapper", { "w-full": t.fullWidth }])
1407
+ class: f(["select-wrapper", { "w-full": t.fullWidth }])
1408
1408
  }, [
1409
1409
  t.label ? (s(), l("label", {
1410
1410
  key: 0,
1411
1411
  for: a.value,
1412
- class: c(p.value)
1412
+ class: f(p.value)
1413
1413
  }, [
1414
1414
  q(x(t.label) + " ", 1),
1415
1415
  t.required ? (s(), l("span", ps, "*")) : m("", !0)
1416
1416
  ], 10, vs)) : m("", !0),
1417
1417
  o("div", {
1418
- class: c(["relative", g.value])
1418
+ class: f(["relative", g.value])
1419
1419
  }, [
1420
1420
  o("button", {
1421
1421
  id: a.value,
1422
1422
  type: "button",
1423
- class: c(T.value),
1423
+ class: f(T.value),
1424
1424
  disabled: t.disabled,
1425
1425
  "aria-expanded": n.value,
1426
1426
  "aria-haspopup": !0,
1427
- onClick: D,
1427
+ onClick: B,
1428
1428
  onBlur: N,
1429
1429
  onKeydown: te
1430
1430
  }, [
1431
1431
  o("span", bs, x(h.value ? h.value.label : t.placeholder), 1),
1432
1432
  (s(), l("svg", {
1433
- class: c(["w-5 h-5 flex-shrink-0 transition-transform text-secondary-600", n.value ? "rotate-180" : ""]),
1433
+ class: f(["w-5 h-5 flex-shrink-0 transition-transform text-[#565656] opacity-80", n.value ? "rotate-180" : ""]),
1434
1434
  fill: "none",
1435
1435
  stroke: "currentColor",
1436
1436
  viewBox: "0 0 24 24",
@@ -1446,14 +1446,14 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1446
1446
  ], 42, gs),
1447
1447
  n.value ? (s(), l("div", {
1448
1448
  key: 0,
1449
- class: c(B.value),
1449
+ class: f(D.value),
1450
1450
  onClick: d[2] || (d[2] = H(() => {
1451
1451
  }, ["stop"]))
1452
1452
  }, [
1453
1453
  t.searchable ? (s(), l("div", ys, [
1454
1454
  ue(o("input", {
1455
1455
  ref_key: "searchInput",
1456
- ref: v,
1456
+ ref: c,
1457
1457
  "onUpdate:modelValue": d[0] || (d[0] = (w) => u.value = w),
1458
1458
  type: "text",
1459
1459
  class: "w-full px-3 py-2 text-sm border border-secondary-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500",
@@ -1469,7 +1469,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1469
1469
  (s(!0), l(E, null, W(i.value, (w) => (s(), l("button", {
1470
1470
  key: w.value,
1471
1471
  type: "button",
1472
- class: c(O(w)),
1472
+ class: f(L(w)),
1473
1473
  onClick: (C) => I(w)
1474
1474
  }, [
1475
1475
  o("div", ks, [
@@ -1488,7 +1488,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1488
1488
  (s(!0), l(E, null, W(t.actionItems, (w) => (s(), l("button", {
1489
1489
  key: w.id,
1490
1490
  type: "button",
1491
- class: c(j(w)),
1491
+ class: f(j(w)),
1492
1492
  onClick: (C) => Y(w)
1493
1493
  }, [
1494
1494
  w.icon ? (s(), l("svg", {
@@ -1514,7 +1514,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1514
1514
  })) : m("", !0)
1515
1515
  ], 2));
1516
1516
  }
1517
- }), Bl = /* @__PURE__ */ K(Ts, [["__scopeId", "data-v-c22d5b94"]]), Ss = /* @__PURE__ */ P({
1517
+ }), Bl = /* @__PURE__ */ K(Ts, [["__scopeId", "data-v-4b6dade4"]]), Ss = /* @__PURE__ */ P({
1518
1518
  __name: "Sidebar",
1519
1519
  props: {
1520
1520
  modelValue: { type: Boolean, default: !1 },
@@ -1530,14 +1530,14 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1530
1530
  },
1531
1531
  emits: ["update:modelValue", "close", "open"],
1532
1532
  setup(t, { emit: b }) {
1533
- const e = t, f = b, n = r({
1533
+ const e = t, v = b, n = r({
1534
1534
  get: () => e.modelValue,
1535
- set: (B) => f("update:modelValue", B)
1535
+ set: (D) => v("update:modelValue", D)
1536
1536
  }), u = () => {
1537
- e.persistent || (n.value = !1, f("close"));
1538
- }, v = r(() => e.position === "left" ? "slide-right" : "slide-left"), a = r(() => {
1539
- const B = "fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none", O = e.position === "left" ? "left-0" : "right-0", j = e.shadow ? e.position === "left" ? "shadow-[2px_0_8px_rgba(0,0,0,0.1)]" : "shadow-[-2px_0_8px_rgba(0,0,0,0.1)]" : "";
1540
- return [B, O, j].filter(Boolean).join(" ");
1537
+ e.persistent || (n.value = !1, v("close"));
1538
+ }, c = r(() => e.position === "left" ? "slide-right" : "slide-left"), a = r(() => {
1539
+ const D = "fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none", L = e.position === "left" ? "left-0" : "right-0", j = e.shadow ? e.position === "left" ? "shadow-[2px_0_8px_rgba(0,0,0,0.1)]" : "shadow-[-2px_0_8px_rgba(0,0,0,0.1)]" : "";
1540
+ return [D, L, j].filter(Boolean).join(" ");
1541
1541
  }), h = r(() => ({
1542
1542
  // Base fluid width; respect custom width as max constraint
1543
1543
  width: "100%",
@@ -1551,36 +1551,36 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1551
1551
  md: "p-4",
1552
1552
  lg: "p-6"
1553
1553
  }, p = r(() => `flex items-center justify-between border-b border-gray-200 ${i[e.padding]}`), g = r(() => `flex-1 overflow-y-auto ${i[e.padding]}`), T = r(() => `border-t border-gray-200 ${i[e.padding]}`);
1554
- return (B, O) => (s(), ee(pe, { to: "body" }, [
1555
- G(ce, { name: "fade" }, {
1554
+ return (D, L) => (s(), ee(pe, { to: "body" }, [
1555
+ Q(ce, { name: "fade" }, {
1556
1556
  default: ae(() => [
1557
1557
  n.value && t.overlay ? (s(), l("div", {
1558
1558
  key: 0,
1559
1559
  onClick: u,
1560
1560
  class: "fixed inset-0 bg-black/50 z-40",
1561
- style: Q({ top: t.overlayTop })
1561
+ style: J({ top: t.overlayTop })
1562
1562
  }, null, 4)) : m("", !0)
1563
1563
  ]),
1564
1564
  _: 1
1565
1565
  }),
1566
- G(ce, { name: v.value }, {
1566
+ Q(ce, { name: c.value }, {
1567
1567
  default: ae(() => [
1568
1568
  n.value ? (s(), l("aside", {
1569
1569
  key: 0,
1570
- class: c(a.value),
1571
- style: Q(h.value)
1570
+ class: f(a.value),
1571
+ style: J(h.value)
1572
1572
  }, [
1573
- B.$slots.header ? (s(), l("div", {
1573
+ D.$slots.header ? (s(), l("div", {
1574
1574
  key: 0,
1575
- class: c(p.value)
1575
+ class: f(p.value)
1576
1576
  }, [
1577
- V(B.$slots, "header", {}, void 0, !0),
1577
+ V(D.$slots, "header", {}, void 0, !0),
1578
1578
  t.closable ? (s(), l("button", {
1579
1579
  key: 0,
1580
1580
  onClick: u,
1581
1581
  class: "p-2 hover:bg-gray-100 rounded-md transition-colors",
1582
1582
  "aria-label": "Cerrar menú"
1583
- }, [...O[0] || (O[0] = [
1583
+ }, [...L[0] || (L[0] = [
1584
1584
  o("svg", {
1585
1585
  class: "w-5 h-5",
1586
1586
  fill: "none",
@@ -1597,15 +1597,15 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1597
1597
  ])])) : m("", !0)
1598
1598
  ], 2)) : m("", !0),
1599
1599
  o("div", {
1600
- class: c(g.value)
1600
+ class: f(g.value)
1601
1601
  }, [
1602
- V(B.$slots, "default", {}, void 0, !0)
1602
+ V(D.$slots, "default", {}, void 0, !0)
1603
1603
  ], 2),
1604
- B.$slots.footer ? (s(), l("div", {
1604
+ D.$slots.footer ? (s(), l("div", {
1605
1605
  key: 1,
1606
- class: c(T.value)
1606
+ class: f(T.value)
1607
1607
  }, [
1608
- V(B.$slots, "footer", {}, void 0, !0)
1608
+ V(D.$slots, "footer", {}, void 0, !0)
1609
1609
  ], 2)) : m("", !0)
1610
1610
  ], 6)) : m("", !0)
1611
1611
  ]),
@@ -1636,24 +1636,24 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1636
1636
  rowClass: { default: void 0 }
1637
1637
  },
1638
1638
  setup(t) {
1639
- const b = t, e = L(null), f = L("asc"), n = (a) => {
1640
- e.value === a ? f.value = f.value === "asc" ? "desc" : "asc" : (e.value = a, f.value = "asc");
1639
+ const b = t, e = O(null), v = O("asc"), n = (a) => {
1640
+ e.value === a ? v.value = v.value === "asc" ? "desc" : "asc" : (e.value = a, v.value = "asc");
1641
1641
  }, u = r(() => {
1642
1642
  if (!e.value)
1643
1643
  return b.data;
1644
1644
  const a = [...b.data];
1645
1645
  return a.sort((h, i) => {
1646
1646
  const p = h[e.value], g = i[e.value];
1647
- return typeof p == "string" && typeof g == "string" ? f.value === "asc" ? p.localeCompare(g) : g.localeCompare(p) : typeof p == "number" && typeof g == "number" ? f.value === "asc" ? p - g : g - p : 0;
1647
+ return typeof p == "string" && typeof g == "string" ? v.value === "asc" ? p.localeCompare(g) : g.localeCompare(p) : typeof p == "number" && typeof g == "number" ? v.value === "asc" ? p - g : g - p : 0;
1648
1648
  }), a;
1649
- }), v = r(() => b.columns.filter((a) => !a.hideOnMobile));
1649
+ }), c = r(() => b.columns.filter((a) => !a.hideOnMobile));
1650
1650
  return (a, h) => (s(), l("div", Is, [
1651
1651
  o("div", js, [
1652
1652
  (s(!0), l(E, null, W(u.value, (i, p) => (s(), l("div", {
1653
1653
  key: `card-${p}`,
1654
1654
  class: "rounded-lg border border-gray-200 bg-white p-4 shadow-sm"
1655
1655
  }, [
1656
- (s(!0), l(E, null, W(v.value, (g) => (s(), l("div", {
1656
+ (s(!0), l(E, null, W(c.value, (g) => (s(), l("div", {
1657
1657
  key: `card-${p}-${g.key}`,
1658
1658
  class: "flex flex-col gap-1 py-1"
1659
1659
  }, [
@@ -1678,15 +1678,15 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1678
1678
  o("table", _s, [
1679
1679
  o("thead", As, [
1680
1680
  o("tr", {
1681
- class: c([
1681
+ class: f([
1682
1682
  "w-full",
1683
1683
  b.headerClass || "bg-neutral-50 border-b border-gray-100"
1684
1684
  ])
1685
1685
  }, [
1686
1686
  (s(!0), l(E, null, W(t.columns, (i) => (s(), l("th", {
1687
1687
  key: i.key,
1688
- style: Q(i.width ? { width: i.width } : {}),
1689
- class: c([
1688
+ style: J(i.width ? { width: i.width } : {}),
1689
+ class: f([
1690
1690
  "px-4 py-3 text-left text-xs font-semibold text-gray-700 border-l border-gray-100 first:border-l-0",
1691
1691
  i.sortable ? "cursor-pointer hover:text-primary-600 select-none transition-colors" : "",
1692
1692
  b.headerCellClass
@@ -1696,7 +1696,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1696
1696
  o("div", Ps, [
1697
1697
  o("span", null, x(i.label), 1),
1698
1698
  i.sortable ? (s(), l("span", qs, [
1699
- e.value !== i.key ? (s(), l("span", Rs, "⇅")) : (s(), l("span", Ns, x(f.value === "asc" ? "↑" : "↓"), 1))
1699
+ e.value !== i.key ? (s(), l("span", Rs, "⇅")) : (s(), l("span", Ns, x(v.value === "asc" ? "↑" : "↓"), 1))
1700
1700
  ])) : m("", !0)
1701
1701
  ])
1702
1702
  ], 14, Es))), 128))
@@ -1705,14 +1705,14 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1705
1705
  o("tbody", Ws, [
1706
1706
  (s(!0), l(E, null, W(u.value, (i, p) => (s(), l("tr", {
1707
1707
  key: p,
1708
- class: c([
1708
+ class: f([
1709
1709
  "w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",
1710
1710
  b.rowClass
1711
1711
  ])
1712
1712
  }, [
1713
1713
  (s(!0), l(E, null, W(t.columns, (g) => (s(), l("td", {
1714
1714
  key: `${p}-${g.key}`,
1715
- class: c([
1715
+ class: f([
1716
1716
  "px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",
1717
1717
  b.cellClass
1718
1718
  ])
@@ -1751,20 +1751,20 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1751
1751
  },
1752
1752
  emits: ["update:modelValue"],
1753
1753
  setup(t, { emit: b }) {
1754
- const e = t, f = b, n = (h) => e.modelValue === h, u = (h) => {
1755
- n(h) || f("update:modelValue", h);
1756
- }, v = r(() => e.modelValue), a = r(
1757
- () => e.tabs.find((h) => h.value === v.value)
1754
+ const e = t, v = b, n = (h) => e.modelValue === h, u = (h) => {
1755
+ n(h) || v("update:modelValue", h);
1756
+ }, c = r(() => e.modelValue), a = r(
1757
+ () => e.tabs.find((h) => h.value === c.value)
1758
1758
  );
1759
1759
  return (h, i) => (s(), l("div", Js, [
1760
1760
  o("div", {
1761
- class: c(["tabs-header", t.headerClass])
1761
+ class: f(["tabs-header", t.headerClass])
1762
1762
  }, [
1763
1763
  o("div", Gs, [
1764
1764
  (s(!0), l(E, null, W(t.tabs, (p) => (s(), l("button", {
1765
1765
  key: p.value,
1766
1766
  type: "button",
1767
- class: c([
1767
+ class: f([
1768
1768
  Zs,
1769
1769
  n(p.value) ? Xs : el
1770
1770
  ]),
@@ -1775,11 +1775,11 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1775
1775
  ])
1776
1776
  ], 2),
1777
1777
  o("div", {
1778
- class: c(["tabs-content", t.contentClass]),
1778
+ class: f(["tabs-content", t.contentClass]),
1779
1779
  role: "tabpanel"
1780
1780
  }, [
1781
- V(h.$slots, v.value, {
1782
- active: v.value,
1781
+ V(h.$slots, c.value, {
1782
+ active: c.value,
1783
1783
  tab: a.value
1784
1784
  }, void 0, !0)
1785
1785
  ], 2)
@@ -1837,7 +1837,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1837
1837
  button3: "span",
1838
1838
  caption: "span",
1839
1839
  overline: "span"
1840
- }, f = {
1840
+ }, v = {
1841
1841
  left: "text-left",
1842
1842
  center: "text-center",
1843
1843
  right: "text-right",
@@ -1857,25 +1857,26 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1857
1857
  semibold: "font-semibold",
1858
1858
  bold: "font-bold",
1859
1859
  extrabold: "font-extrabold"
1860
- }, v = t, a = r(() => v.variant), h = r(() => v.color), i = r(() => v.align), p = r(() => v.as || e[a.value] || "span"), g = r(() => v.weight ? u[v.weight] : "");
1861
- return (T, B) => (s(), ee(Me(p.value), {
1862
- class: c([
1860
+ }, c = t, a = r(() => c.variant), h = r(() => c.align), i = r(() => c.as || e[a.value] || "span"), p = r(() => c.color && c.color.startsWith("#")), g = r(() => p.value ? "" : n[c.color] || n.default), T = r(() => p.value ? { color: c.color } : {}), D = r(() => c.weight ? u[c.weight] : "");
1861
+ return (L, j) => (s(), ee(Me(i.value), {
1862
+ class: f([
1863
1863
  sl,
1864
1864
  b[a.value],
1865
- n[h.value],
1866
- f[i.value],
1867
1865
  g.value,
1866
+ v[h.value],
1867
+ D.value,
1868
1868
  {
1869
1869
  uppercase: t.uppercase || a.value === "overline",
1870
1870
  truncate: t.truncate
1871
1871
  }
1872
- ])
1872
+ ]),
1873
+ style: J(T.value)
1873
1874
  }, {
1874
1875
  default: ae(() => [
1875
- V(T.$slots, "default")
1876
+ V(L.$slots, "default")
1876
1877
  ]),
1877
1878
  _: 3
1878
- }, 8, ["class"]));
1879
+ }, 8, ["class", "style"]));
1879
1880
  }
1880
1881
  }), ll = { class: "w-full flex items-center justify-between gap-3 py-2" }, ol = {
1881
1882
  key: 0,
@@ -1901,33 +1902,33 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1901
1902
  },
1902
1903
  emits: ["update:modelValue", "change"],
1903
1904
  setup(t, { emit: b }) {
1904
- const e = t, f = b, n = r(() => {
1905
+ const e = t, v = b, n = r(() => {
1905
1906
  const g = Math.ceil(e.totalItems / e.pageSize);
1906
1907
  return g > 0 ? g : 1;
1907
1908
  }), u = r(() => {
1908
1909
  const g = Number(e.modelValue || 1);
1909
1910
  return g < 1 ? 1 : g > n.value ? n.value : g;
1910
- }), v = r(() => e.totalItems === 0 ? 0 : (u.value - 1) * e.pageSize + 1), a = r(() => Math.min(u.value * e.pageSize, e.totalItems)), h = r(() => `Mostrando ${v.value} a ${a.value} de ${e.totalItems}`), i = r(() => {
1911
- const g = n.value, T = Math.max(3, e.maxPages), B = u.value;
1911
+ }), c = r(() => e.totalItems === 0 ? 0 : (u.value - 1) * e.pageSize + 1), a = r(() => Math.min(u.value * e.pageSize, e.totalItems)), h = r(() => `Mostrando ${c.value} a ${a.value} de ${e.totalItems}`), i = r(() => {
1912
+ const g = n.value, T = Math.max(3, e.maxPages), D = u.value;
1912
1913
  if (g <= T)
1913
1914
  return Array.from({ length: g }, (k, I) => I + 1);
1914
- const O = Math.floor(T / 2);
1915
- let j = Math.max(1, B - O), S = Math.min(g, j + T - 1);
1915
+ const L = Math.floor(T / 2);
1916
+ let j = Math.max(1, D - L), S = Math.min(g, j + T - 1);
1916
1917
  j = Math.max(1, Math.min(j, S - T + 1));
1917
- const D = [];
1918
- j > 1 && (D.push(1), j > 2 && D.push("…"));
1918
+ const B = [];
1919
+ j > 1 && (B.push(1), j > 2 && B.push("…"));
1919
1920
  for (let k = j; k <= S; k++)
1920
- D.push(k);
1921
- return S < g && (S < g - 1 && D.push("…"), D.push(g)), D;
1921
+ B.push(k);
1922
+ return S < g && (S < g - 1 && B.push("…"), B.push(g)), B;
1922
1923
  });
1923
1924
  function p(g) {
1924
1925
  const T = Math.max(1, Math.min(g, n.value));
1925
- T !== u.value && (f("update:modelValue", T), f("change", T));
1926
+ T !== u.value && (v("update:modelValue", T), v("change", T));
1926
1927
  }
1927
1928
  return (g, T) => (s(), l("div", ll, [
1928
1929
  t.showSummary ? (s(), l("div", ol, [
1929
1930
  V(g.$slots, "summary", {
1930
- start: v.value,
1931
+ start: c.value,
1931
1932
  end: a.value,
1932
1933
  total: t.totalItems
1933
1934
  }, () => [
@@ -1940,28 +1941,28 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1940
1941
  type: "button",
1941
1942
  class: "h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",
1942
1943
  disabled: u.value <= 1,
1943
- onClick: T[0] || (T[0] = (B) => p(u.value - 1)),
1944
+ onClick: T[0] || (T[0] = (D) => p(u.value - 1)),
1944
1945
  "aria-label": "Anterior"
1945
1946
  }, x(t.previousText), 9, rl),
1946
- (s(!0), l(E, null, W(i.value, (B, O) => (s(), l(E, {
1947
- key: `page-${O}-${B}`
1947
+ (s(!0), l(E, null, W(i.value, (D, L) => (s(), l(E, {
1948
+ key: `page-${L}-${D}`
1948
1949
  }, [
1949
- B === "…" ? (s(), l("span", il, " … ")) : (s(), l("button", {
1950
+ D === "…" ? (s(), l("span", il, " … ")) : (s(), l("button", {
1950
1951
  key: 1,
1951
1952
  type: "button",
1952
- "aria-label": `Página ${B}`,
1953
- class: c([
1953
+ "aria-label": `Página ${D}`,
1954
+ class: f([
1954
1955
  "h-8 min-w-8 px-3 rounded-full text-sm font-semibold transition-colors",
1955
- B === u.value ? "bg-primary-500 text-white" : "text-secondary-700 hover:bg-secondary-100"
1956
+ D === u.value ? "bg-primary-500 text-white" : "text-secondary-700 hover:bg-secondary-100"
1956
1957
  ]),
1957
- onClick: (j) => p(B)
1958
- }, x(B), 11, dl))
1958
+ onClick: (j) => p(D)
1959
+ }, x(D), 11, dl))
1959
1960
  ], 64))), 128)),
1960
1961
  o("button", {
1961
1962
  type: "button",
1962
1963
  class: "h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",
1963
1964
  disabled: u.value >= n.value,
1964
- onClick: T[1] || (T[1] = (B) => p(u.value + 1)),
1965
+ onClick: T[1] || (T[1] = (D) => p(u.value + 1)),
1965
1966
  "aria-label": "Siguiente"
1966
1967
  }, x(t.nextText), 9, ul)
1967
1968
  ])
@@ -1984,8 +1985,8 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1984
1985
  },
1985
1986
  emits: ["close", "accept", "cancel"],
1986
1987
  setup(t, { emit: b }) {
1987
- const e = b, f = t, n = r(() => f.variant ?? "info"), u = r(() => f.multiline ?? !1), v = r(() => f.actions ?? !1), a = r(() => f.nodeId ?? void 0), h = () => e("close"), i = r(() => {
1988
- if (f.title) return f.title;
1988
+ const e = b, v = t, n = r(() => v.variant ?? "info"), u = r(() => v.multiline ?? !1), c = r(() => v.actions ?? !1), a = r(() => v.nodeId ?? void 0), h = () => e("close"), i = r(() => {
1989
+ if (v.title) return v.title;
1989
1990
  switch (n.value) {
1990
1991
  case "info":
1991
1992
  return "Alerta de información";
@@ -1996,7 +1997,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
1996
1997
  case "error":
1997
1998
  return "Alerta de error";
1998
1999
  }
1999
- }), p = r(() => f.description ?? ""), g = r(() => {
2000
+ }), p = r(() => v.description ?? ""), g = r(() => {
2000
2001
  switch (n.value) {
2001
2002
  case "info":
2002
2003
  return {
@@ -2023,18 +2024,18 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2023
2024
  icon: "text-[#ff4235]"
2024
2025
  };
2025
2026
  }
2026
- }), T = r(() => "bg-[var(--color-primario/700,#269ea4)]"), B = r(() => {
2027
+ }), T = r(() => "bg-[var(--color-primario/700,#269ea4)]"), D = r(() => {
2027
2028
  const S = "flex w-full items-start gap-4 flex-col";
2028
- if (!f.stackOn) return `${S} sm:flex-row sm:items-center`;
2029
- const D = f.stackOn, k = `${D}:flex-row ${D}:items-center`;
2029
+ if (!v.stackOn) return `${S} sm:flex-row sm:items-center`;
2030
+ const B = v.stackOn, k = `${B}:flex-row ${B}:items-center`;
2030
2031
  return `${S} ${k}`;
2031
- }), O = r(() => {
2032
- if (!f.stackOn) return "flex-col sm:flex-row items-start sm:items-center";
2033
- const S = f.stackOn;
2032
+ }), L = r(() => {
2033
+ if (!v.stackOn) return "flex-col sm:flex-row items-start sm:items-center";
2034
+ const S = v.stackOn;
2034
2035
  return `flex-col ${S}:flex-row items-start ${S}:items-center`;
2035
- }), j = r(() => f.stackOn ? `self-start ${f.stackOn}:self-auto` : "self-start sm:self-auto");
2036
- return (S, D) => (s(), l("div", {
2037
- class: c(["relative w-full rounded-xl border", [
2036
+ }), j = r(() => v.stackOn ? `self-start ${v.stackOn}:self-auto` : "self-start sm:self-auto");
2037
+ return (S, B) => (s(), l("div", {
2038
+ class: f(["relative w-full rounded-xl border", [
2038
2039
  g.value.border,
2039
2040
  g.value.bg
2040
2041
  ]]),
@@ -2047,7 +2048,7 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2047
2048
  class: "absolute top-3 right-3 text-[color:var(--neutrales/texto-principal,#565656)]/70 hover:opacity-100 opacity-70",
2048
2049
  "aria-label": "Cerrar",
2049
2050
  onClick: h
2050
- }, [...D[2] || (D[2] = [
2051
+ }, [...B[2] || (B[2] = [
2051
2052
  o("svg", {
2052
2053
  xmlns: "http://www.w3.org/2000/svg",
2053
2054
  width: "18",
@@ -2074,10 +2075,10 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2074
2075
  ], -1)
2075
2076
  ])])) : m("", !0),
2076
2077
  o("div", {
2077
- class: c(["p-6", { "pb-0": v.value }])
2078
+ class: f(["p-6", { "pb-0": c.value }])
2078
2079
  }, [
2079
2080
  o("div", {
2080
- class: c(B.value)
2081
+ class: f(D.value)
2081
2082
  }, [
2082
2083
  o("div", vl, [
2083
2084
  n.value === "info" ? (s(), l("svg", {
@@ -2087,12 +2088,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2087
2088
  height: "24",
2088
2089
  viewBox: "0 0 24 24",
2089
2090
  fill: "none",
2090
- class: c(g.value.icon),
2091
+ class: f(g.value.icon),
2091
2092
  stroke: "currentColor",
2092
2093
  "stroke-width": "2",
2093
2094
  "stroke-linecap": "round",
2094
2095
  "stroke-linejoin": "round"
2095
- }, [...D[3] || (D[3] = [
2096
+ }, [...B[3] || (B[3] = [
2096
2097
  o("circle", {
2097
2098
  cx: "12",
2098
2099
  cy: "12",
@@ -2117,12 +2118,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2117
2118
  height: "24",
2118
2119
  viewBox: "0 0 24 24",
2119
2120
  fill: "none",
2120
- class: c(g.value.icon),
2121
+ class: f(g.value.icon),
2121
2122
  stroke: "currentColor",
2122
2123
  "stroke-width": "2",
2123
2124
  "stroke-linecap": "round",
2124
2125
  "stroke-linejoin": "round"
2125
- }, [...D[4] || (D[4] = [
2126
+ }, [...B[4] || (B[4] = [
2126
2127
  o("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }, null, -1),
2127
2128
  o("line", {
2128
2129
  x1: "12",
@@ -2143,12 +2144,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2143
2144
  height: "24",
2144
2145
  viewBox: "0 0 24 24",
2145
2146
  fill: "none",
2146
- class: c(g.value.icon),
2147
+ class: f(g.value.icon),
2147
2148
  stroke: "currentColor",
2148
2149
  "stroke-width": "2",
2149
2150
  "stroke-linecap": "round",
2150
2151
  "stroke-linejoin": "round"
2151
- }, [...D[5] || (D[5] = [
2152
+ }, [...B[5] || (B[5] = [
2152
2153
  o("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }, null, -1),
2153
2154
  o("polyline", { points: "22 4 12 14.01 9 11.01" }, null, -1)
2154
2155
  ])], 2)) : (s(), l("svg", {
@@ -2158,12 +2159,12 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2158
2159
  height: "24",
2159
2160
  viewBox: "0 0 24 24",
2160
2161
  fill: "none",
2161
- class: c(g.value.icon),
2162
+ class: f(g.value.icon),
2162
2163
  stroke: "currentColor",
2163
2164
  "stroke-width": "2",
2164
2165
  "stroke-linecap": "round",
2165
2166
  "stroke-linejoin": "round"
2166
- }, [...D[6] || (D[6] = [
2167
+ }, [...B[6] || (B[6] = [
2167
2168
  o("polygon", { points: "7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2" }, null, -1),
2168
2169
  o("line", {
2169
2170
  x1: "12",
@@ -2180,13 +2181,13 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2180
2181
  ])], 2))
2181
2182
  ]),
2182
2183
  o("div", {
2183
- class: c(["flex-1 flex gap-4 text-[14px]", [O.value, t.closable ? "pr-6" : "", { "whitespace-nowrap": !u.value, "whitespace-pre-wrap": u.value }]])
2184
+ class: f(["flex-1 flex gap-4 text-[14px]", [L.value, t.closable ? "pr-6" : "", { "whitespace-nowrap": !u.value, "whitespace-pre-wrap": u.value }]])
2184
2185
  }, [
2185
2186
  o("div", {
2186
- class: c(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium", j.value])
2187
+ class: f(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium", j.value])
2187
2188
  }, x(i.value), 3),
2188
2189
  o("div", {
2189
- class: c(["flex-1 tracking-[0.25px] text-[color:var(--neutrales/texto-principal,#565656)]", { "overflow-hidden overflow-ellipsis": !u.value }])
2190
+ class: f(["flex-1 tracking-[0.25px] text-[color:var(--neutrales/texto-principal,#565656)]", { "overflow-hidden overflow-ellipsis": !u.value }])
2190
2191
  }, [
2191
2192
  V(S.$slots, "description", {}, () => [
2192
2193
  q(x(p.value), 1)
@@ -2195,23 +2196,23 @@ const Pe = { class: "flex items-center gap-2 sm:gap-3 shrink-0" }, qe = {
2195
2196
  ], 2)
2196
2197
  ], 2)
2197
2198
  ], 2),
2198
- v.value ? (s(), l("div", pl, [
2199
+ c.value ? (s(), l("div", pl, [
2199
2200
  o("button", {
2200
2201
  type: "button",
2201
2202
  class: "px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-[color:var(--neutrales/texto-principal,#565656)]",
2202
- onClick: D[0] || (D[0] = (k) => S.$emit("cancel"))
2203
+ onClick: B[0] || (B[0] = (k) => S.$emit("cancel"))
2203
2204
  }, [
2204
2205
  V(S.$slots, "cancel", {}, () => [
2205
- D[7] || (D[7] = q("Cancelar", -1))
2206
+ B[7] || (B[7] = q("Cancelar", -1))
2206
2207
  ])
2207
2208
  ]),
2208
2209
  o("button", {
2209
2210
  type: "button",
2210
- class: c(["px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-white", T.value]),
2211
- onClick: D[1] || (D[1] = (k) => S.$emit("accept"))
2211
+ class: f(["px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-white", T.value]),
2212
+ onClick: B[1] || (B[1] = (k) => S.$emit("accept"))
2212
2213
  }, [
2213
2214
  V(S.$slots, "accept", {}, () => [
2214
- D[8] || (D[8] = q("Aceptar", -1))
2215
+ B[8] || (B[8] = q("Aceptar", -1))
2215
2216
  ])
2216
2217
  ], 2)
2217
2218
  ])) : m("", !0)