@dronico/droni-kit 1.25.1 → 1.26.0

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 { getCurrentInstance as Pe, defineComponent as L, computed as o, openBlock as t, createBlock as W, resolveDynamicComponent as Q, mergeProps as O, withCtx as A, renderSlot as _, createElementBlock as a, ref as N, watch as ae, normalizeClass as s, createElementVNode as m, withModifiers as G, toDisplayString as j, createCommentVNode as S, Fragment as E, renderList as K, createTextVNode as P, withDirectives as xe, vShow as he, useSlots as we, unref as R, provide as Ie, createVNode as J, onMounted as be, onBeforeUnmount as pe, Teleport as me, Transition as ne, normalizeStyle as te, nextTick as ue, withKeys as ye, reactive as ze, readonly as Ae, TransitionGroup as Ee } from "vue";
1
+ import { getCurrentInstance as Pe, defineComponent as L, computed as o, openBlock as t, createBlock as W, resolveDynamicComponent as Q, mergeProps as O, withCtx as I, renderSlot as _, createElementBlock as a, ref as N, watch as ae, normalizeClass as n, createElementVNode as m, withModifiers as G, toDisplayString as j, createCommentVNode as S, Fragment as E, renderList as K, createTextVNode as P, withDirectives as he, vShow as xe, useSlots as we, unref as R, provide as Ae, createVNode as J, onMounted as be, onBeforeUnmount as pe, Teleport as me, Transition as ne, normalizeStyle as te, nextTick as ue, withKeys as ye, reactive as ze, readonly as Ie, TransitionGroup as Ee } from "vue";
2
2
  function We() {
3
3
  try {
4
4
  const d = Pe(), r = d == null ? void 0 : d.appContext.app;
@@ -11,8 +11,8 @@ function se(d) {
11
11
  return d ? We() ? "RouterLink" : "a" : "button";
12
12
  }
13
13
  function fe(d, r, e = {}) {
14
- const l = { ...e };
15
- return r === "a" ? (l.href = typeof d == "string" ? d : "#", l.role = "button") : r !== "button" && r !== "span" && (l.to = d), l;
14
+ const s = { ...e };
15
+ return r === "a" ? (s.href = typeof d == "string" ? d : "#", s.role = "button") : r !== "button" && r !== "span" && (s.to = d), s;
16
16
  }
17
17
  const Oe = { key: 1 }, Fe = `
18
18
  dk:transition
@@ -40,14 +40,14 @@ const Oe = { key: 1 }, Fe = `
40
40
  to: { default: void 0 }
41
41
  },
42
42
  setup(d) {
43
- const r = d, e = o(() => se(r.to)), l = o(() => {
43
+ const r = d, e = o(() => se(r.to)), s = o(() => {
44
44
  const p = {};
45
45
  return e.value === "button" && (p.type = r.type), fe(r.to, e.value, p);
46
46
  }), g = {
47
47
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
48
48
  md: "dk:text-base dk:px-4 dk:py-2",
49
49
  lg: "dk:text-lg dk:px-5 dk:py-3"
50
- }, n = {
50
+ }, l = {
51
51
  all: "dk:rounded",
52
52
  top: "dk:rounded-t",
53
53
  bottom: "dk:rounded-b",
@@ -226,17 +226,17 @@ const Oe = { key: 1 }, Fe = `
226
226
  dk:dark:text-amber-100
227
227
  dk:dark:hover:bg-amber-800`
228
228
  }
229
- }, h = o(() => {
229
+ }, x = o(() => {
230
230
  var z;
231
- const p = (((z = w[r.variant]) == null ? void 0 : z[r.color]) || "") + " " + w[r.variant].base, b = g[r.size] || "", v = r.block ? "dk:w-full" : "", f = n[r.rounded] || "";
231
+ const p = (((z = w[r.variant]) == null ? void 0 : z[r.color]) || "") + " " + w[r.variant].base, b = g[r.size] || "", v = r.block ? "dk:w-full" : "", f = l[r.rounded] || "";
232
232
  return [Fe, p, b, v, f].join(" ");
233
233
  });
234
- return (p, b) => (t(), W(Q(e.value), O(l.value, {
235
- class: h.value,
234
+ return (p, b) => (t(), W(Q(e.value), O(s.value, {
235
+ class: x.value,
236
236
  title: r.title,
237
237
  disabled: r.disabled || r.loading
238
238
  }), {
239
- default: A(() => [
239
+ default: I(() => [
240
240
  r.loading ? (t(), a("span", Oe, "Cargando...")) : _(p.$slots, "default", {}, void 0, void 0, 0)
241
241
  ]),
242
242
  _: 3
@@ -277,11 +277,11 @@ const Oe = { key: 1 }, Fe = `
277
277
  },
278
278
  emits: ["update:modelValue", "open-browser", "upload-file", "open-file"],
279
279
  setup(d, { emit: r }) {
280
- const e = d, l = r, g = N(null), n = N(""), w = {
280
+ const e = d, s = r, g = N(null), l = N(""), w = {
281
281
  sm: "dk:gap-1 dk:px-2 dk:py-1",
282
282
  md: "dk:gap-2 dk:px-3 dk:py-2",
283
283
  lg: "dk:gap-3 dk:px-4 dk:py-3"
284
- }, h = {
284
+ }, x = {
285
285
  all: "dk:rounded-xl",
286
286
  top: "dk:rounded-t-xl",
287
287
  bottom: "dk:rounded-b-xl",
@@ -289,7 +289,7 @@ const Oe = { key: 1 }, Fe = `
289
289
  right: "dk:rounded-r-xl",
290
290
  none: "dk:rounded-none"
291
291
  }, p = o(() => e.block ? "dk:w-full" : "dk:inline-flex dk:max-w-full"), b = o(() => {
292
- const k = w[e.size] || w.md, u = h[e.rounded] || h.all;
292
+ const k = w[e.size] || w.md, u = x[e.rounded] || x.all;
293
293
  return [
294
294
  "dk:flex dk:w-full dk:flex-col dk:items-stretch dk:justify-between dk:border-b dk:border-zinc-300 dk:bg-zinc-50 dk:text-zinc-800 dk:shadow-sm dk:transition-colors",
295
295
  "dk:dark:border-zinc-600 dk:dark:bg-zinc-800 dk:dark:text-zinc-100",
@@ -302,12 +302,12 @@ const Oe = { key: 1 }, Fe = `
302
302
  "dk:sm:w-auto dk:sm:flex-row dk:sm:items-center dk:sm:justify-end"
303
303
  ].join(" ")), z = o(() => [
304
304
  "dk:mt-1 dk:max-w-full dk:overflow-hidden dk:text-ellipsis dk:whitespace-nowrap dk:text-sm",
305
- e.modelValue || n.value ? "dk:text-zinc-900 dk:dark:text-zinc-100" : "dk:text-zinc-500 dk:dark:text-zinc-400"
306
- ].join(" ")), V = o(() => n.value ? n.value : e.modelValue ? y(e.modelValue) : "No hay archivo seleccionado");
305
+ e.modelValue || l.value ? "dk:text-zinc-900 dk:dark:text-zinc-100" : "dk:text-zinc-500 dk:dark:text-zinc-400"
306
+ ].join(" ")), V = o(() => l.value ? l.value : e.modelValue ? y(e.modelValue) : "No hay archivo seleccionado");
307
307
  ae(
308
308
  () => e.modelValue,
309
309
  (k) => {
310
- k && (n.value = "");
310
+ k && (l.value = "");
311
311
  }
312
312
  );
313
313
  function y(k) {
@@ -315,42 +315,42 @@ const Oe = { key: 1 }, Fe = `
315
315
  return u[u.length - 1];
316
316
  }
317
317
  function c() {
318
- l("open-browser");
318
+ s("open-browser");
319
319
  }
320
320
  function i() {
321
321
  var k;
322
322
  (k = g.value) == null || k.click();
323
323
  }
324
- function x(k) {
324
+ function h(k) {
325
325
  var D;
326
326
  const u = k.target, $ = (D = u.files) == null ? void 0 : D[0];
327
- $ && (n.value = $.name, l("upload-file", $), C(u));
327
+ $ && (l.value = $.name, s("upload-file", $), C(u));
328
328
  }
329
329
  function C(k) {
330
330
  k.value = "";
331
331
  }
332
332
  return (k, u) => (t(), a("div", {
333
- class: s(p.value)
333
+ class: n(p.value)
334
334
  }, [
335
335
  m("div", {
336
- class: s(b.value)
336
+ class: n(b.value)
337
337
  }, [
338
338
  m("div", {
339
- class: s(v.value)
339
+ class: n(v.value)
340
340
  }, [
341
- e.modelValue ?? n.value ? (t(), a("p", {
341
+ e.modelValue ?? l.value ? (t(), a("p", {
342
342
  key: 0,
343
- class: s(z.value)
343
+ class: n(z.value)
344
344
  }, [
345
345
  m("a", {
346
346
  href: "#",
347
- onClick: u[0] || (u[0] = G(($) => l("open-file", e.modelValue ?? n.value), ["prevent"])),
347
+ onClick: u[0] || (u[0] = G(($) => s("open-file", e.modelValue ?? l.value), ["prevent"])),
348
348
  class: "dk:ml-2 dk:text-pink-500 dk:underline dk:transition-colors dk:hover:text-pink-800 dk:dark:text-pink-400 dk:dark:hover:text-pink-300"
349
349
  }, j(V.value), 1)
350
350
  ], 2)) : S("", !0)
351
351
  ], 2),
352
352
  m("div", {
353
- class: s(f.value)
353
+ class: n(f.value)
354
354
  }, [
355
355
  e.browserBtn ? (t(), W(oe, {
356
356
  key: 0,
@@ -361,7 +361,7 @@ const Oe = { key: 1 }, Fe = `
361
361
  title: "Abrir navegador de archivos",
362
362
  onClick: c
363
363
  }, {
364
- default: A(() => [...u[1] || (u[1] = [
364
+ default: I(() => [...u[1] || (u[1] = [
365
365
  m("i", {
366
366
  class: "mdi mdi-folder-search-outline",
367
367
  "aria-hidden": "true"
@@ -378,7 +378,7 @@ const Oe = { key: 1 }, Fe = `
378
378
  title: "Subir nuevo archivo",
379
379
  onClick: i
380
380
  }, {
381
- default: A(() => [...u[2] || (u[2] = [
381
+ default: I(() => [...u[2] || (u[2] = [
382
382
  m("i", {
383
383
  class: "mdi mdi-upload",
384
384
  "aria-hidden": "true"
@@ -394,7 +394,7 @@ const Oe = { key: 1 }, Fe = `
394
394
  type: "file",
395
395
  class: "dk:hidden",
396
396
  accept: e.accept,
397
- onChange: x
397
+ onChange: h
398
398
  }, null, 40, Ne)
399
399
  ], 2));
400
400
  }
@@ -433,12 +433,12 @@ const Oe = { key: 1 }, Fe = `
433
433
  },
434
434
  emits: ["update:modelValue"],
435
435
  setup(d, { emit: r }) {
436
- const e = d, l = r;
436
+ const e = d, s = r;
437
437
  function g(p) {
438
438
  const b = p.target;
439
- l("update:modelValue", b.value);
439
+ s("update:modelValue", b.value);
440
440
  }
441
- const n = {
441
+ const l = {
442
442
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
443
443
  md: "dk:text-base dk:px-4 dk:py-2",
444
444
  lg: "dk:text-lg dk:px-5 dk:py-3"
@@ -449,12 +449,12 @@ const Oe = { key: 1 }, Fe = `
449
449
  left: "dk:rounded-l",
450
450
  right: "dk:rounded-r",
451
451
  none: "dk:rounded-none"
452
- }, h = o(() => {
453
- const p = n[e.size] || "", b = e.block ? "dk:w-full" : "", v = w[e.rounded] || "";
452
+ }, x = o(() => {
453
+ const p = l[e.size] || "", b = e.block ? "dk:w-full" : "", v = w[e.rounded] || "";
454
454
  return [Ue, p, b, v].join(" ");
455
455
  });
456
456
  return (p, b) => (t(), a("input", O({
457
- class: h.value,
457
+ class: x.value,
458
458
  value: d.modelValue
459
459
  }, p.$attrs, { onInput: g }), null, 16, Ke));
460
460
  }
@@ -501,12 +501,12 @@ const Oe = { key: 1 }, Fe = `
501
501
  },
502
502
  emits: ["update:modelValue"],
503
503
  setup(d, { emit: r }) {
504
- const e = d, l = r;
504
+ const e = d, s = r;
505
505
  function g(v) {
506
506
  const f = v.target;
507
- e.autoheight && b(f), l("update:modelValue", f.value);
507
+ e.autoheight && b(f), s("update:modelValue", f.value);
508
508
  }
509
- const n = {
509
+ const l = {
510
510
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
511
511
  md: "dk:text-base dk:px-3 dk:py-2",
512
512
  lg: "dk:text-lg dk:px-5 dk:py-3"
@@ -517,13 +517,13 @@ const Oe = { key: 1 }, Fe = `
517
517
  left: "dk:rounded-l",
518
518
  right: "dk:rounded-r",
519
519
  none: "dk:rounded-none"
520
- }, h = {
520
+ }, x = {
521
521
  none: "dk:resize-none",
522
522
  both: "dk:resize",
523
523
  horizontal: "dk:resize-x",
524
524
  vertical: "dk:resize-y"
525
525
  }, p = o(() => {
526
- const v = n[e.size] || "", f = e.block ? "dk:w-full" : "", z = w[e.rounded] || "", V = h[e.resize] || "";
526
+ const v = l[e.size] || "", f = e.block ? "dk:w-full" : "", z = w[e.rounded] || "", V = x[e.resize] || "";
527
527
  return [He, v, f, z, V].join(" ");
528
528
  }), b = (v) => {
529
529
  v.style.height = "auto", v.style.height = `${v.scrollHeight + 5}px`;
@@ -592,7 +592,7 @@ const Oe = { key: 1 }, Fe = `
592
592
  emits: ["update:modelValue"],
593
593
  setup(d, { emit: r }) {
594
594
  const e = d;
595
- function l(b, v) {
595
+ function s(b, v) {
596
596
  const f = v.split(".").reduce((z, V) => {
597
597
  if (!(z === null || typeof z != "object"))
598
598
  return z[V];
@@ -600,7 +600,7 @@ const Oe = { key: 1 }, Fe = `
600
600
  return typeof f == "string" || typeof f == "number" ? f : void 0;
601
601
  }
602
602
  const g = r;
603
- function n(b) {
603
+ function l(b) {
604
604
  const f = b.target.value, z = Number(f);
605
605
  !isNaN(z) && f !== "" ? g("update:modelValue", z) : g("update:modelValue", f);
606
606
  }
@@ -608,7 +608,7 @@ const Oe = { key: 1 }, Fe = `
608
608
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
609
609
  md: "dk:text-base dk:px-4 dk:py-2",
610
610
  lg: "dk:text-lg dk:px-5 dk:py-3"
611
- }, h = {
611
+ }, x = {
612
612
  all: "dk:rounded",
613
613
  top: "dk:rounded-t",
614
614
  bottom: "dk:rounded-b",
@@ -616,19 +616,19 @@ const Oe = { key: 1 }, Fe = `
616
616
  right: "dk:rounded-r",
617
617
  none: "dk:rounded-none"
618
618
  }, p = o(() => {
619
- const b = w[e.size] || "", v = e.block ? "dk:w-full" : "", f = h[e.rounded] || "";
619
+ const b = w[e.size] || "", v = e.block ? "dk:w-full" : "", f = x[e.rounded] || "";
620
620
  return [Ye, b, v, f].join(" ");
621
621
  });
622
622
  return (b, v) => (t(), a("select", O(b.$attrs, {
623
623
  class: p.value,
624
- onChange: n
624
+ onChange: l
625
625
  }), [
626
626
  d.placeholder ? (t(), a("option", Qe, j(d.placeholder), 1)) : S("", !0),
627
627
  (t(!0), a(E, null, K(d.options, (f, z) => (t(), a("option", {
628
628
  key: z,
629
- value: l(f, d.itemValue) ?? "",
630
- selected: l(f, d.itemValue) == d.modelValue
631
- }, j(l(f, d.itemLabel) ?? ""), 9, Ge))), 128))
629
+ value: s(f, d.itemValue) ?? "",
630
+ selected: s(f, d.itemValue) == d.modelValue
631
+ }, j(s(f, d.itemLabel) ?? ""), 9, Ge))), 128))
632
632
  ], 16));
633
633
  }
634
634
  }), Je = {
@@ -663,7 +663,7 @@ const Oe = { key: 1 }, Fe = `
663
663
  }
664
664
  },
665
665
  setup(d) {
666
- const r = N(!1), e = d, l = {
666
+ const r = N(!1), e = d, s = {
667
667
  s: "dk:text-sm",
668
668
  m: "dk:text-base",
669
669
  l: "dk:text-lg"
@@ -671,16 +671,16 @@ const Oe = { key: 1 }, Fe = `
671
671
  s: "dk:mt-1",
672
672
  m: "dk:mt-1.5",
673
673
  l: "dk:mt-2"
674
- }, n = {
674
+ }, l = {
675
675
  s: "dk:text-xs",
676
676
  m: "dk:text-sm",
677
677
  l: "dk:text-base"
678
- }, w = o(() => [Ze].join(" ")), h = o(() => {
679
- const v = l[e.size] || l.m, f = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", z = e.helpText ? "dk:cursor-help" : "";
678
+ }, w = o(() => [Ze].join(" ")), x = o(() => {
679
+ const v = s[e.size] || s.m, f = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", z = e.helpText ? "dk:cursor-help" : "";
680
680
  return [f, v, z].join(" ");
681
- }), p = o(() => [g[e.size] || g.m].join(" ")), b = o(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", n[e.size] || n.m].join(" "));
681
+ }), p = o(() => [g[e.size] || g.m].join(" ")), b = o(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", l[e.size] || l.m].join(" "));
682
682
  return (v, f) => (t(), a("label", {
683
- class: s(w.value)
683
+ class: n(w.value)
684
684
  }, [
685
685
  d.title ? (t(), a("div", {
686
686
  key: 0,
@@ -689,30 +689,30 @@ const Oe = { key: 1 }, Fe = `
689
689
  onMouseleave: f[1] || (f[1] = (z) => r.value = !1)
690
690
  }, [
691
691
  m("div", {
692
- class: s(h.value)
692
+ class: n(x.value)
693
693
  }, [
694
694
  d.icon ? (t(), a("i", {
695
695
  key: 0,
696
- class: s([d.icon, "dk:mr-2"])
696
+ class: n([d.icon, "dk:mr-2"])
697
697
  }, null, 2)) : S("", !0),
698
698
  P(" " + j(d.title) + " ", 1),
699
699
  d.required ? (t(), a("span", Je, "*")) : S("", !0)
700
700
  ], 2),
701
- xe(m("div", Xe, [
701
+ he(m("div", Xe, [
702
702
  P(j(d.helpText) + " ", 1),
703
703
  f[2] || (f[2] = m("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
704
704
  ], 512), [
705
- [he, r.value && d.helpText]
705
+ [xe, r.value && d.helpText]
706
706
  ])
707
707
  ], 32)) : S("", !0),
708
708
  m("div", {
709
- class: s(p.value)
709
+ class: n(p.value)
710
710
  }, [
711
711
  _(v.$slots, "default", {}, void 0, !0)
712
712
  ], 2),
713
713
  d.error ? (t(), a("div", {
714
714
  key: 1,
715
- class: s(b.value)
715
+ class: n(b.value)
716
716
  }, [
717
717
  f[3] || (f[3] = m("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
718
718
  P(" " + j(d.error), 1)
@@ -721,17 +721,20 @@ const Oe = { key: 1 }, Fe = `
721
721
  }
722
722
  }), ie = (d, r) => {
723
723
  const e = d.__vccOpts || d;
724
- for (const [l, g] of r)
725
- e[l] = g;
724
+ for (const [s, g] of r)
725
+ e[s] = g;
726
726
  return e;
727
727
  }, _t = /* @__PURE__ */ ie(Re, [["__scopeId", "data-v-aa6b6cdc"]]), ed = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, dd = ["checked", "disabled"], Lt = /* @__PURE__ */ L({
728
728
  inheritAttrs: !1,
729
729
  __name: "DuiCheckbox",
730
730
  props: {
731
731
  modelValue: {
732
- type: Boolean,
732
+ type: [Boolean, Array],
733
733
  default: !1
734
734
  },
735
+ value: {
736
+ type: null
737
+ },
735
738
  label: {
736
739
  type: String,
737
740
  default: ""
@@ -752,10 +755,6 @@ const Oe = { key: 1 }, Fe = `
752
755
  type: Boolean,
753
756
  default: !1
754
757
  },
755
- rounded: {
756
- type: String,
757
- default: "all"
758
- },
759
758
  disabled: {
760
759
  type: Boolean,
761
760
  default: !1
@@ -763,7 +762,7 @@ const Oe = { key: 1 }, Fe = `
763
762
  },
764
763
  emits: ["update:modelValue"],
765
764
  setup(d, { emit: r }) {
766
- const e = d, l = r, g = we(), n = {
765
+ const e = d, s = r, g = we(), l = o(() => Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : e.modelValue), w = {
767
766
  sm: {
768
767
  track: "dk:w-9 dk:h-5",
769
768
  thumb: "dk:w-3.5 dk:h-3.5",
@@ -779,14 +778,7 @@ const Oe = { key: 1 }, Fe = `
779
778
  thumb: "dk:w-5 dk:h-5",
780
779
  translate: "dk:peer-checked:translate-x-7"
781
780
  }
782
- }, w = {
783
- all: "dk:rounded-full",
784
- top: "dk:rounded-t-full",
785
- bottom: "dk:rounded-b-full",
786
- left: "dk:rounded-l-full",
787
- right: "dk:rounded-r-full",
788
- none: "dk:rounded-none"
789
- }, h = {
781
+ }, x = {
790
782
  neutral: "dk:peer-checked:bg-zinc-500 dk:peer-checked:dark:bg-zinc-500",
791
783
  primary: "dk:peer-checked:bg-slate-600 dk:peer-checked:dark:bg-slate-500",
792
784
  secondary: "dk:peer-checked:bg-pink-600 dk:peer-checked:dark:bg-pink-500",
@@ -800,18 +792,17 @@ const Oe = { key: 1 }, Fe = `
800
792
  "dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",
801
793
  e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
802
794
  ].join(" ")), f = o(() => {
803
- const y = n[e.size] || n.md, c = w[e.rounded] || w.all, i = h[e.color] || h.primary;
795
+ const y = w[e.size] || w.md, c = x[e.color] || x.primary;
804
796
  return [
805
- "dk:inline-flex dk:items-center dk:transition-colors dk:duration-200",
797
+ "dk:inline-flex dk:items-center dk:rounded-full dk:transition-colors dk:duration-200",
806
798
  "dk:bg-zinc-300 dk:dark:bg-zinc-700",
807
799
  "dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500",
808
800
  "dk:peer-disabled:opacity-70",
809
801
  y.track,
810
- c,
811
- i
802
+ c
812
803
  ].join(" ");
813
804
  }), z = o(() => {
814
- const y = n[e.size] || n.md;
805
+ const y = w[e.size] || w.md;
815
806
  return [
816
807
  "dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2",
817
808
  "dk:bg-white dk:dark:bg-zinc-100",
@@ -823,14 +814,19 @@ const Oe = { key: 1 }, Fe = `
823
814
  });
824
815
  function V(y) {
825
816
  const c = y.target;
826
- l("update:modelValue", c.checked);
817
+ if (Array.isArray(e.modelValue)) {
818
+ const i = e.modelValue.filter((h) => h !== e.value);
819
+ c.checked && i.push(e.value), s("update:modelValue", i);
820
+ return;
821
+ }
822
+ s("update:modelValue", c.checked);
827
823
  }
828
824
  return (y, c) => (t(), a("label", {
829
- class: s(b.value)
825
+ class: n(b.value)
830
826
  }, [
831
827
  p.value && d.labelPosition === "left" ? (t(), a("span", {
832
828
  key: 0,
833
- class: s(v.value)
829
+ class: n(v.value)
834
830
  }, [
835
831
  _(y.$slots, "default", {}, () => [
836
832
  P(j(d.label), 1)
@@ -840,19 +836,19 @@ const Oe = { key: 1 }, Fe = `
840
836
  m("input", O({
841
837
  type: "checkbox",
842
838
  class: "dk:sr-only dk:peer",
843
- checked: d.modelValue,
839
+ checked: l.value,
844
840
  disabled: d.disabled
845
841
  }, y.$attrs, { onChange: V }), null, 16, dd),
846
842
  m("span", {
847
- class: s(f.value)
843
+ class: n(f.value)
848
844
  }, null, 2),
849
845
  m("span", {
850
- class: s(z.value)
846
+ class: n(z.value)
851
847
  }, null, 2)
852
848
  ]),
853
849
  p.value && d.labelPosition === "right" ? (t(), a("span", {
854
850
  key: 1,
855
- class: s(v.value)
851
+ class: n(v.value)
856
852
  }, [
857
853
  _(y.$slots, "default", {}, () => [
858
854
  P(j(d.label), 1)
@@ -876,15 +872,15 @@ const Oe = { key: 1 }, Fe = `
876
872
  },
877
873
  emits: ["update:modelValue", "change"],
878
874
  setup(d, { emit: r }) {
879
- const e = d, l = r, g = Math.random().toString(36).slice(2, 8);
880
- function n(C) {
881
- l("update:modelValue", C), l("change", C);
875
+ const e = d, s = r, g = Math.random().toString(36).slice(2, 8);
876
+ function l(C) {
877
+ s("update:modelValue", C), s("change", C);
882
878
  }
883
879
  const w = {
884
880
  sm: { radio: "dk:w-3.5 dk:h-3.5", dot: "dk:w-1.5 dk:h-1.5", label: "dk:text-xs", description: "dk:text-xs" },
885
881
  md: { radio: "dk:w-4 dk:h-4", dot: "dk:w-2 dk:h-2", label: "dk:text-sm", description: "dk:text-xs" },
886
882
  lg: { radio: "dk:w-5 dk:h-5", dot: "dk:w-2.5 dk:h-2.5", label: "dk:text-base", description: "dk:text-sm" }
887
- }, h = {
883
+ }, x = {
888
884
  neutral: "dk:peer-checked:border-zinc-600 dk:dark:peer-checked:border-zinc-400",
889
885
  primary: "dk:peer-checked:border-slate-600 dk:dark:peer-checked:border-slate-400",
890
886
  secondary: "dk:peer-checked:border-pink-600 dk:dark:peer-checked:border-pink-400",
@@ -911,7 +907,7 @@ const Oe = { key: 1 }, Fe = `
911
907
  return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none", $, D].join(" ");
912
908
  }
913
909
  function V(C) {
914
- const k = w[e.size], u = h[e.color], $ = b[e.color];
910
+ const k = w[e.size], u = x[e.color], $ = b[e.color];
915
911
  return [
916
912
  "dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150",
917
913
  "dk:border-zinc-300 dk:dark:border-zinc-600",
@@ -929,20 +925,20 @@ const Oe = { key: 1 }, Fe = `
929
925
  C.dot,
930
926
  k
931
927
  ].join(" ");
932
- }), c = o(() => "dk:flex dk:flex-col"), i = o(() => [w[e.size].label, "dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")), x = o(() => [w[e.size].description, "dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));
928
+ }), c = o(() => "dk:flex dk:flex-col"), i = o(() => [w[e.size].label, "dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")), h = o(() => [w[e.size].description, "dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));
933
929
  return (C, k) => (t(), a("div", {
934
- class: s(v.value),
930
+ class: n(v.value),
935
931
  role: "radiogroup",
936
932
  "aria-labelledby": d.groupLabel ? `rg-label-${R(g)}` : void 0
937
933
  }, [
938
934
  d.groupLabel ? (t(), a("span", {
939
935
  key: 0,
940
936
  id: `rg-label-${R(g)}`,
941
- class: s(f.value)
937
+ class: n(f.value)
942
938
  }, j(d.groupLabel), 11, rd)) : S("", !0),
943
939
  (t(!0), a(E, null, K(d.options, (u) => (t(), a("label", {
944
940
  key: u.value,
945
- class: s(z(u.value, u.disabled))
941
+ class: n(z(u.value, u.disabled))
946
942
  }, [
947
943
  m("span", ad, [
948
944
  m("input", O({
@@ -953,24 +949,24 @@ const Oe = { key: 1 }, Fe = `
953
949
  checked: d.modelValue === u.value,
954
950
  disabled: u.disabled || d.disabled
955
951
  }, { ref_for: !0 }, C.$attrs, {
956
- onChange: ($) => n(u.value)
952
+ onChange: ($) => l(u.value)
957
953
  }), null, 16, od),
958
954
  m("span", {
959
- class: s(V(u.value))
955
+ class: n(V(u.value))
960
956
  }, null, 2),
961
957
  m("span", {
962
- class: s(y.value)
958
+ class: n(y.value)
963
959
  }, null, 2)
964
960
  ]),
965
961
  m("span", {
966
- class: s(c.value)
962
+ class: n(c.value)
967
963
  }, [
968
964
  m("span", {
969
- class: s(i.value)
965
+ class: n(i.value)
970
966
  }, j(u.label), 3),
971
967
  u.description ? (t(), a("span", {
972
968
  key: 0,
973
- class: s(x.value)
969
+ class: n(h.value)
974
970
  }, j(u.description), 3)) : S("", !0)
975
971
  ], 2)
976
972
  ], 2))), 128))
@@ -1029,7 +1025,7 @@ const Oe = { key: 1 }, Fe = `
1029
1025
  },
1030
1026
  emits: ["update:modelValue", "change"],
1031
1027
  setup(d, { emit: r }) {
1032
- const e = d, l = r, g = we(), n = {
1028
+ const e = d, s = r, g = we(), l = {
1033
1029
  sm: {
1034
1030
  track: "dk:w-8 dk:h-4",
1035
1031
  thumb: "dk:w-3 dk:h-3",
@@ -1055,25 +1051,25 @@ const Oe = { key: 1 }, Fe = `
1055
1051
  success: "dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-500",
1056
1052
  warning: "dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",
1057
1053
  danger: "dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-500"
1058
- }, h = o(() => !!(e.label || g.default)), p = o(() => {
1059
- const i = e.block ? "dk:w-full dk:justify-between" : "", x = e.block ? "dk:flex" : "dk:inline-flex", C = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
1060
- return [x, "dk:items-center dk:gap-3 dk:select-none", i, C].join(" ");
1054
+ }, x = o(() => !!(e.label || g.default)), p = o(() => {
1055
+ const i = e.block ? "dk:w-full dk:justify-between" : "", h = e.block ? "dk:flex" : "dk:inline-flex", C = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
1056
+ return [h, "dk:items-center dk:gap-3 dk:select-none", i, C].join(" ");
1061
1057
  }), b = o(() => [
1062
1058
  "dk:flex dk:flex-col",
1063
1059
  "dk:text-sm dk:leading-snug dk:text-zinc-700 dk:dark:text-zinc-200",
1064
1060
  e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
1065
1061
  ].join(" ")), v = o(() => "dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"), f = o(() => {
1066
- const i = n[e.size], x = w[e.color];
1062
+ const i = l[e.size], h = w[e.color];
1067
1063
  return [
1068
1064
  "dk:relative dk:inline-flex dk:items-center dk:transition-colors dk:duration-200 dk:rounded-full",
1069
1065
  "dk:bg-zinc-300 dk:dark:bg-zinc-600",
1070
1066
  "dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500",
1071
1067
  "dk:peer-disabled:opacity-70",
1072
1068
  i.track,
1073
- x
1069
+ h
1074
1070
  ].join(" ");
1075
1071
  }), z = o(() => {
1076
- const i = n[e.size];
1072
+ const i = l[e.size];
1077
1073
  return [
1078
1074
  "dk:absolute",
1079
1075
  i.offset,
@@ -1092,22 +1088,22 @@ const Oe = { key: 1 }, Fe = `
1092
1088
  danger: "dk:text-rose-600 dk:dark:text-rose-400"
1093
1089
  }, y = o(() => e.modelValue ? V[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500");
1094
1090
  function c(i) {
1095
- const x = i.target;
1096
- l("update:modelValue", x.checked), l("change", x.checked);
1091
+ const h = i.target;
1092
+ s("update:modelValue", h.checked), s("change", h.checked);
1097
1093
  }
1098
- return (i, x) => (t(), a("label", {
1099
- class: s(p.value)
1094
+ return (i, h) => (t(), a("label", {
1095
+ class: n(p.value)
1100
1096
  }, [
1101
- h.value && d.labelPosition === "left" ? (t(), a("span", {
1097
+ x.value && d.labelPosition === "left" ? (t(), a("span", {
1102
1098
  key: 0,
1103
- class: s(b.value)
1099
+ class: n(b.value)
1104
1100
  }, [
1105
1101
  _(i.$slots, "default", {}, () => [
1106
1102
  P(j(d.label), 1)
1107
1103
  ]),
1108
1104
  d.description ? (t(), a("span", {
1109
1105
  key: 0,
1110
- class: s(v.value)
1106
+ class: n(v.value)
1111
1107
  }, j(d.description), 3)) : S("", !0)
1112
1108
  ], 2)) : S("", !0),
1113
1109
  m("span", kd, [
@@ -1120,17 +1116,17 @@ const Oe = { key: 1 }, Fe = `
1120
1116
  disabled: d.disabled
1121
1117
  }, i.$attrs, { onChange: c }), null, 16, nd),
1122
1118
  m("span", {
1123
- class: s(f.value)
1119
+ class: n(f.value)
1124
1120
  }, null, 2),
1125
1121
  m("span", {
1126
- class: s(z.value)
1122
+ class: n(z.value)
1127
1123
  }, [
1128
1124
  d.showIcons ? (t(), a("span", {
1129
1125
  key: 0,
1130
1126
  "aria-hidden": "true",
1131
- class: s(y.value)
1127
+ class: n(y.value)
1132
1128
  }, [
1133
- d.modelValue ? (t(), a("svg", sd, [...x[0] || (x[0] = [
1129
+ d.modelValue ? (t(), a("svg", sd, [...h[0] || (h[0] = [
1134
1130
  m("path", {
1135
1131
  d: "M3.5 6.5l2 2 3-3",
1136
1132
  stroke: "currentColor",
@@ -1139,7 +1135,7 @@ const Oe = { key: 1 }, Fe = `
1139
1135
  "stroke-linejoin": "round",
1140
1136
  fill: "none"
1141
1137
  }, null, -1)
1142
- ])])) : (t(), a("svg", ld, [...x[1] || (x[1] = [
1138
+ ])])) : (t(), a("svg", ld, [...h[1] || (h[1] = [
1143
1139
  m("line", {
1144
1140
  x1: "3",
1145
1141
  y1: "3",
@@ -1162,21 +1158,21 @@ const Oe = { key: 1 }, Fe = `
1162
1158
  ], 2)) : S("", !0)
1163
1159
  ], 2)
1164
1160
  ]),
1165
- h.value && d.labelPosition === "right" ? (t(), a("span", {
1161
+ x.value && d.labelPosition === "right" ? (t(), a("span", {
1166
1162
  key: 1,
1167
- class: s(b.value)
1163
+ class: n(b.value)
1168
1164
  }, [
1169
1165
  _(i.$slots, "default", {}, () => [
1170
1166
  P(j(d.label), 1)
1171
1167
  ]),
1172
1168
  d.description ? (t(), a("span", {
1173
1169
  key: 0,
1174
- class: s(v.value)
1170
+ class: n(v.value)
1175
1171
  }, j(d.description), 3)) : S("", !0)
1176
1172
  ], 2)) : S("", !0)
1177
1173
  ], 2));
1178
1174
  }
1179
- }), cd = ["novalidate", "method", "action", "aria-busy"], ud = ["disabled"], It = /* @__PURE__ */ L({
1175
+ }), cd = ["novalidate", "method", "action", "aria-busy"], ud = ["disabled"], At = /* @__PURE__ */ L({
1180
1176
  __name: "DuiForm",
1181
1177
  props: {
1182
1178
  novalidate: { type: Boolean, default: !1 },
@@ -1188,19 +1184,19 @@ const Oe = { key: 1 }, Fe = `
1188
1184
  },
1189
1185
  emits: ["submit", "reset"],
1190
1186
  setup(d, { emit: r }) {
1191
- const e = d, l = r, g = Symbol("DuiForm");
1192
- Ie(g, {
1187
+ const e = d, s = r, g = Symbol("DuiForm");
1188
+ Ae(g, {
1193
1189
  loading: o(() => e.loading),
1194
1190
  disabled: o(() => e.disabled)
1195
1191
  });
1196
- function n(y) {
1192
+ function l(y) {
1197
1193
  const c = y.target, i = new FormData(c);
1198
- l("submit", { formData: i, event: y });
1194
+ s("submit", { formData: i, event: y });
1199
1195
  }
1200
1196
  function w(y) {
1201
- l("reset", y);
1197
+ s("reset", y);
1202
1198
  }
1203
- const h = {
1199
+ const x = {
1204
1200
  sm: "dk:space-y-3",
1205
1201
  md: "dk:space-y-5",
1206
1202
  lg: "dk:space-y-7"
@@ -1211,7 +1207,7 @@ const Oe = { key: 1 }, Fe = `
1211
1207
  "dk:mb-5",
1212
1208
  "dk:pb-4",
1213
1209
  "dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700"
1214
- ].join(" ")), v = o(() => h[e.gap] || h.md), f = o(() => [
1210
+ ].join(" ")), v = o(() => x[e.gap] || x.md), f = o(() => [
1215
1211
  "dk:mt-6",
1216
1212
  "dk:pt-4",
1217
1213
  "dk:border-t dk:border-zinc-200 dk:dark:border-zinc-700",
@@ -1233,14 +1229,14 @@ const Oe = { key: 1 }, Fe = `
1233
1229
  novalidate: d.novalidate,
1234
1230
  method: d.method,
1235
1231
  action: d.action,
1236
- class: s(p.value),
1232
+ class: n(p.value),
1237
1233
  "aria-busy": d.loading,
1238
- onSubmit: G(n, ["prevent"]),
1234
+ onSubmit: G(l, ["prevent"]),
1239
1235
  onReset: G(w, ["prevent"])
1240
1236
  }, [
1241
1237
  y.$slots.header ? (t(), a("div", {
1242
1238
  key: 0,
1243
- class: s(b.value)
1239
+ class: n(b.value)
1244
1240
  }, [
1245
1241
  _(y.$slots, "header")
1246
1242
  ], 2)) : S("", !0),
@@ -1249,24 +1245,24 @@ const Oe = { key: 1 }, Fe = `
1249
1245
  class: "dk:border-0 dk:p-0 dk:m-0 dk:min-w-0"
1250
1246
  }, [
1251
1247
  m("div", {
1252
- class: s(v.value)
1248
+ class: n(v.value)
1253
1249
  }, [
1254
1250
  _(y.$slots, "default")
1255
1251
  ], 2)
1256
1252
  ], 8, ud),
1257
1253
  y.$slots.footer ? (t(), a("div", {
1258
1254
  key: 1,
1259
- class: s(f.value)
1255
+ class: n(f.value)
1260
1256
  }, [
1261
1257
  _(y.$slots, "footer")
1262
1258
  ], 2)) : S("", !0),
1263
1259
  d.loading ? (t(), a("div", {
1264
1260
  key: 2,
1265
- class: s(z.value),
1261
+ class: n(z.value),
1266
1262
  "aria-hidden": "true"
1267
1263
  }, [
1268
1264
  m("span", {
1269
- class: s(V.value)
1265
+ class: n(V.value)
1270
1266
  }, null, 2)
1271
1267
  ], 2)) : S("", !0)
1272
1268
  ], 42, cd));
@@ -1277,7 +1273,7 @@ const Oe = { key: 1 }, Fe = `
1277
1273
  dk:text-sm
1278
1274
  dk:leading-relaxed
1279
1275
  dk:max-w-full
1280
- `, At = /* @__PURE__ */ L({
1276
+ `, It = /* @__PURE__ */ L({
1281
1277
  __name: "DuiAlert",
1282
1278
  props: {
1283
1279
  variant: {
@@ -1301,7 +1297,7 @@ const Oe = { key: 1 }, Fe = `
1301
1297
  left: "dk:rounded-l",
1302
1298
  right: "dk:rounded-r",
1303
1299
  none: "dk:rounded-none"
1304
- }, l = {
1300
+ }, s = {
1305
1301
  solid: {
1306
1302
  base: "",
1307
1303
  neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
@@ -1331,17 +1327,17 @@ const Oe = { key: 1 }, Fe = `
1331
1327
  }
1332
1328
  }, g = o(() => {
1333
1329
  var p;
1334
- const n = ((p = l[r.variant]) == null ? void 0 : p[r.color]) || "", w = l[r.variant].base || "", h = e[r.rounded] || "";
1335
- return [bd, w, n, h].join(" ");
1330
+ const l = ((p = s[r.variant]) == null ? void 0 : p[r.color]) || "", w = s[r.variant].base || "", x = e[r.rounded] || "";
1331
+ return [bd, w, l, x].join(" ");
1336
1332
  });
1337
- return (n, w) => (t(), a("div", {
1338
- class: s(g.value),
1333
+ return (l, w) => (t(), a("div", {
1334
+ class: n(g.value),
1339
1335
  role: "alert"
1340
1336
  }, [
1341
- _(n.$slots, "default")
1337
+ _(l.$slots, "default")
1342
1338
  ], 2));
1343
1339
  }
1344
- }), pd = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, md = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, fd = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, gd = { key: 0 }, xd = ["colspan"], hd = {
1340
+ }), pd = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, md = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, fd = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, gd = { key: 0 }, hd = ["colspan"], xd = {
1345
1341
  key: 0,
1346
1342
  class: "dk:bg-gray-50 dk:dark:bg-gray-700 dk:border-t dk:border-gray-200 dk:dark:border-gray-600"
1347
1343
  }, vd = ["colspan"], yd = { class: "pagination-container" }, wd = { class: "pagination-info" }, zd = { class: "pagination-buttons" }, Cd = { class: "page-numbers" }, $d = ["onClick"], Sd = /* @__PURE__ */ L({
@@ -1366,24 +1362,24 @@ const Oe = { key: 1 }, Fe = `
1366
1362
  },
1367
1363
  emits: ["paginate"],
1368
1364
  setup(d, { emit: r }) {
1369
- const e = d, l = r, g = o(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), n = o(() => {
1365
+ const e = d, s = r, g = o(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), l = o(() => {
1370
1366
  if (!e.pagination) return [];
1371
- const h = [], p = 5, { page: b } = e.pagination, v = g.value;
1367
+ const x = [], p = 5, { page: b } = e.pagination, v = g.value;
1372
1368
  let f = Math.max(1, b - Math.floor(p / 2)), z = Math.min(v, f + p - 1);
1373
1369
  z - f < p - 1 && (f = Math.max(1, z - p + 1));
1374
1370
  for (let V = f; V <= z; V++)
1375
- h.push(V);
1376
- return h;
1377
- }), w = (h) => {
1378
- e.pagination && h >= 1 && h <= g.value && l("paginate", h);
1371
+ x.push(V);
1372
+ return x;
1373
+ }), w = (x) => {
1374
+ e.pagination && x >= 1 && x <= g.value && s("paginate", x);
1379
1375
  };
1380
- return (h, p) => (t(), a("div", pd, [
1376
+ return (x, p) => (t(), a("div", pd, [
1381
1377
  m("table", md, [
1382
1378
  m("thead", fd, [
1383
1379
  m("tr", null, [
1384
1380
  (t(!0), a(E, null, K(e.columns, (b) => (t(), a("th", {
1385
1381
  key: b.name,
1386
- class: s(["dk:px-6 dk:py-3", b.classes])
1382
+ class: n(["dk:px-6 dk:py-3", b.classes])
1387
1383
  }, j(b.label), 3))), 128))
1388
1384
  ]),
1389
1385
  e.loading ? (t(), a("tr", gd, [
@@ -1392,11 +1388,11 @@ const Oe = { key: 1 }, Fe = `
1392
1388
  class: "dk:p-0"
1393
1389
  }, [...p[2] || (p[2] = [
1394
1390
  m("div", { class: "loading-bar" }, null, -1)
1395
- ])], 8, xd)
1391
+ ])], 8, hd)
1396
1392
  ])) : S("", !0)
1397
1393
  ]),
1398
1394
  m("tbody", {
1399
- class: s({ "is-loading": e.loading })
1395
+ class: n({ "is-loading": e.loading })
1400
1396
  }, [
1401
1397
  (t(!0), a(E, null, K(e.rows, (b, v) => (t(), a("tr", {
1402
1398
  key: v,
@@ -1406,13 +1402,13 @@ const Oe = { key: 1 }, Fe = `
1406
1402
  key: f.name,
1407
1403
  class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
1408
1404
  }, [
1409
- _(h.$slots, f.name, O({ ref_for: !0 }, b), () => [
1405
+ _(x.$slots, f.name, O({ ref_for: !0 }, b), () => [
1410
1406
  P(j(b[f.name]), 1)
1411
1407
  ], !0)
1412
1408
  ]))), 128))
1413
1409
  ]))), 128))
1414
1410
  ], 2),
1415
- e.pagination ? (t(), a("tfoot", hd, [
1411
+ e.pagination ? (t(), a("tfoot", xd, [
1416
1412
  m("tr", null, [
1417
1413
  m("td", {
1418
1414
  colspan: e.columns.length,
@@ -1428,16 +1424,16 @@ const Oe = { key: 1 }, Fe = `
1428
1424
  onClick: p[0] || (p[0] = (b) => w(e.pagination.page - 1)),
1429
1425
  disabled: e.pagination.page === 1
1430
1426
  }, {
1431
- default: A(() => [...p[3] || (p[3] = [
1427
+ default: I(() => [...p[3] || (p[3] = [
1432
1428
  P(" ← Anterior ", -1)
1433
1429
  ])]),
1434
1430
  _: 1
1435
1431
  }, 8, ["disabled"]),
1436
1432
  m("div", Cd, [
1437
- (t(!0), a(E, null, K(n.value, (b) => (t(), a("button", {
1433
+ (t(!0), a(E, null, K(l.value, (b) => (t(), a("button", {
1438
1434
  key: b,
1439
1435
  onClick: (v) => w(b),
1440
- class: s(["page-number", { active: b === e.pagination.page }])
1436
+ class: n(["page-number", { active: b === e.pagination.page }])
1441
1437
  }, j(b), 11, $d))), 128))
1442
1438
  ]),
1443
1439
  J(oe, {
@@ -1447,7 +1443,7 @@ const Oe = { key: 1 }, Fe = `
1447
1443
  onClick: p[1] || (p[1] = (b) => w(e.pagination.page + 1)),
1448
1444
  disabled: e.pagination.page === g.value
1449
1445
  }, {
1450
- default: A(() => [...p[4] || (p[4] = [
1446
+ default: I(() => [...p[4] || (p[4] = [
1451
1447
  P(" Siguiente → ", -1)
1452
1448
  ])]),
1453
1449
  _: 1
@@ -1484,11 +1480,11 @@ const Oe = { key: 1 }, Fe = `
1484
1480
  to: { default: void 0 }
1485
1481
  },
1486
1482
  setup(d) {
1487
- const r = d, e = o(() => r.to ? se(r.to) : "span"), l = o(() => fe(r.to, e.value)), g = {
1483
+ const r = d, e = o(() => r.to ? se(r.to) : "span"), s = o(() => fe(r.to, e.value)), g = {
1488
1484
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
1489
1485
  md: "dk:text-base dk:px-4 dk:py-2",
1490
1486
  lg: "dk:text-lg dk:px-5 dk:py-3"
1491
- }, n = {
1487
+ }, l = {
1492
1488
  all: "dk:rounded",
1493
1489
  top: "dk:rounded-t",
1494
1490
  bottom: "dk:rounded-b",
@@ -1667,16 +1663,16 @@ const Oe = { key: 1 }, Fe = `
1667
1663
  dk:dark:text-amber-100
1668
1664
  dk:dark:hover:bg-amber-800`
1669
1665
  }
1670
- }, h = o(() => {
1666
+ }, x = o(() => {
1671
1667
  var z;
1672
- const p = (((z = w[r.variant]) == null ? void 0 : z[r.color]) || "") + " " + w[r.variant].base, b = g[r.size] || "", v = r.block ? "dk:block" : "dk:inline-block", f = n[r.rounded] || "";
1668
+ const p = (((z = w[r.variant]) == null ? void 0 : z[r.color]) || "") + " " + w[r.variant].base, b = g[r.size] || "", v = r.block ? "dk:block" : "dk:inline-block", f = l[r.rounded] || "";
1673
1669
  return [Vd, p, b, v, f].join(" ");
1674
1670
  });
1675
- return (p, b) => (t(), W(Q(e.value), O(l.value, {
1676
- class: h.value,
1671
+ return (p, b) => (t(), W(Q(e.value), O(s.value, {
1672
+ class: x.value,
1677
1673
  title: r.title
1678
1674
  }), {
1679
- default: A(() => [
1675
+ default: I(() => [
1680
1676
  r.loading ? (t(), a("span", jd, "Cargando...")) : _(p.$slots, "default", {}, void 0, void 0, 0)
1681
1677
  ]),
1682
1678
  _: 3
@@ -1695,10 +1691,10 @@ const Oe = { key: 1 }, Fe = `
1695
1691
  to: { default: void 0 }
1696
1692
  },
1697
1693
  setup(d) {
1698
- const r = d, e = () => r.to ? se(r.to) : "div", l = () => r.to ? se(r.to) : "h3", g = () => {
1694
+ const r = d, e = () => r.to ? se(r.to) : "div", s = () => r.to ? se(r.to) : "h3", g = () => {
1699
1695
  const c = e();
1700
1696
  return fe(r.to, c);
1701
- }, n = {
1697
+ }, l = {
1702
1698
  s: {
1703
1699
  padding: "dk:p-3",
1704
1700
  spacing: "dk:space-y-2",
@@ -1736,11 +1732,11 @@ const Oe = { key: 1 }, Fe = `
1736
1732
  "dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
1737
1733
  "dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
1738
1734
  "dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"
1739
- ].join(" ")), h = o(() => [
1735
+ ].join(" ")), x = o(() => [
1740
1736
  "dk:w-full dk:h-48 dk:object-cover",
1741
1737
  "dk:relative dk:z-10"
1742
1738
  ].join(" ")), p = o(() => {
1743
- const c = n[r.size];
1739
+ const c = l[r.size];
1744
1740
  return [
1745
1741
  c.padding,
1746
1742
  c.spacing,
@@ -1748,10 +1744,10 @@ const Oe = { key: 1 }, Fe = `
1748
1744
  "dk:relative dk:z-10"
1749
1745
  ].join(" ");
1750
1746
  }), b = o(() => [
1751
- n[r.size].spacing
1747
+ l[r.size].spacing
1752
1748
  ].join(" ")), v = o(() => {
1753
1749
  const i = [
1754
- n[r.size].titleSize,
1750
+ l[r.size].titleSize,
1755
1751
  "dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
1756
1752
  "dk:line-clamp-2"
1757
1753
  ];
@@ -1768,11 +1764,11 @@ const Oe = { key: 1 }, Fe = `
1768
1764
  ];
1769
1765
  return r.to && c.push("dk:no-underline"), c.join(" ");
1770
1766
  }), z = o(() => [
1771
- n[r.size].subtitleSize,
1767
+ l[r.size].subtitleSize,
1772
1768
  "dk:text-gray-600 dk:dark:text-gray-400",
1773
1769
  "dk:line-clamp-3"
1774
1770
  ].join(" ")), V = o(() => [
1775
- n[r.size].contentSize,
1771
+ l[r.size].contentSize,
1776
1772
  "dk:text-gray-700 dk:dark:text-gray-300"
1777
1773
  ].join(" ")), y = o(() => [
1778
1774
  "dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
@@ -1780,47 +1776,47 @@ const Oe = { key: 1 }, Fe = `
1780
1776
  "dk:relative dk:z-10"
1781
1777
  ].join(" "));
1782
1778
  return (c, i) => (t(), a("div", {
1783
- class: s(w.value)
1779
+ class: n(w.value)
1784
1780
  }, [
1785
1781
  d.image ? (t(), a("div", Bd, [
1786
1782
  (t(), W(Q(e()), O(g(), { class: f.value }), {
1787
- default: A(() => [
1783
+ default: I(() => [
1788
1784
  m("img", {
1789
1785
  src: d.image,
1790
1786
  alt: d.title || "Card image",
1791
- class: s(h.value)
1787
+ class: n(x.value)
1792
1788
  }, null, 10, Dd)
1793
1789
  ]),
1794
1790
  _: 1
1795
1791
  }, 16, ["class"]))
1796
1792
  ])) : S("", !0),
1797
1793
  m("div", {
1798
- class: s(p.value)
1794
+ class: n(p.value)
1799
1795
  }, [
1800
1796
  d.title || d.subtitle ? (t(), a("div", {
1801
1797
  key: 0,
1802
- class: s(b.value)
1798
+ class: n(b.value)
1803
1799
  }, [
1804
- d.title ? (t(), W(Q(l()), O({ key: 0 }, g(), { class: v.value }), {
1805
- default: A(() => [
1800
+ d.title ? (t(), W(Q(s()), O({ key: 0 }, g(), { class: v.value }), {
1801
+ default: I(() => [
1806
1802
  P(j(d.title), 1)
1807
1803
  ]),
1808
1804
  _: 1
1809
1805
  }, 16, ["class"])) : S("", !0),
1810
1806
  d.subtitle ? (t(), a("p", {
1811
1807
  key: 1,
1812
- class: s(z.value)
1808
+ class: n(z.value)
1813
1809
  }, j(d.subtitle), 3)) : S("", !0)
1814
1810
  ], 2)) : S("", !0),
1815
1811
  c.$slots.default ? (t(), a("div", {
1816
1812
  key: 1,
1817
- class: s(V.value)
1813
+ class: n(V.value)
1818
1814
  }, [
1819
1815
  _(c.$slots, "default")
1820
1816
  ], 2)) : S("", !0),
1821
1817
  c.$slots.footer ? (t(), a("div", {
1822
1818
  key: 2,
1823
- class: s(y.value)
1819
+ class: n(y.value)
1824
1820
  }, [
1825
1821
  _(c.$slots, "footer")
1826
1822
  ], 2)) : S("", !0)
@@ -1848,7 +1844,7 @@ const Oe = { key: 1 }, Fe = `
1848
1844
  },
1849
1845
  emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
1850
1846
  setup(d, { emit: r }) {
1851
- const e = d, l = r, g = Math.random().toString(36).slice(2, 10), n = `dui-modal-title-${g}`, w = `dui-modal-description-${g}`, h = {
1847
+ const e = d, s = r, g = Math.random().toString(36).slice(2, 10), l = `dui-modal-title-${g}`, w = `dui-modal-description-${g}`, x = {
1852
1848
  all: "dk:rounded-xl",
1853
1849
  top: "dk:rounded-t-xl",
1854
1850
  bottom: "dk:rounded-b-xl",
@@ -1898,12 +1894,12 @@ const Oe = { key: 1 }, Fe = `
1898
1894
  e.centered ? "dk:items-center" : "dk:items-start dk:pt-8",
1899
1895
  "dk:justify-center"
1900
1896
  ].join(" ")), z = o(() => {
1901
- const $ = b[e.variant].base, D = b[e.variant][e.color], I = h[e.rounded], X = p[e.size];
1897
+ const $ = b[e.variant].base, D = b[e.variant][e.color], A = x[e.rounded], X = p[e.size];
1902
1898
  return [
1903
1899
  "dk:relative dk:flex dk:flex-col dk:overflow-hidden",
1904
1900
  $,
1905
1901
  D,
1906
- I,
1902
+ A,
1907
1903
  X
1908
1904
  ].join(" ");
1909
1905
  }), V = o(() => [
@@ -1918,32 +1914,32 @@ const Oe = { key: 1 }, Fe = `
1918
1914
  ].join(" "));
1919
1915
  function i() {
1920
1916
  if (typeof document > "u") return;
1921
- const $ = document.body, I = Number($.dataset.duiModalCount || "0") + 1;
1922
- $.dataset.duiModalCount = String(I), I === 1 && ($.style.overflow = "hidden");
1917
+ const $ = document.body, A = Number($.dataset.duiModalCount || "0") + 1;
1918
+ $.dataset.duiModalCount = String(A), A === 1 && ($.style.overflow = "hidden");
1923
1919
  }
1924
- function x() {
1920
+ function h() {
1925
1921
  if (typeof document > "u") return;
1926
- const $ = document.body, D = Number($.dataset.duiModalCount || "0"), I = Math.max(0, D - 1);
1927
- $.dataset.duiModalCount = String(I), I === 0 && ($.style.overflow = "");
1922
+ const $ = document.body, D = Number($.dataset.duiModalCount || "0"), A = Math.max(0, D - 1);
1923
+ $.dataset.duiModalCount = String(A), A === 0 && ($.style.overflow = "");
1928
1924
  }
1929
1925
  function C($) {
1930
- l("update:modelValue", !1), l("close", $);
1926
+ s("update:modelValue", !1), s("close", $);
1931
1927
  }
1932
1928
  function k() {
1933
- l("backdrop"), !(e.persistent || !e.closeOnBackdrop) && C("backdrop");
1929
+ s("backdrop"), !(e.persistent || !e.closeOnBackdrop) && C("backdrop");
1934
1930
  }
1935
1931
  function u($) {
1936
- $.key !== "Escape" || !e.modelValue || (l("escape"), !(e.persistent || !e.closeOnEsc) && C("escape"));
1932
+ $.key !== "Escape" || !e.modelValue || (s("escape"), !(e.persistent || !e.closeOnEsc) && C("escape"));
1937
1933
  }
1938
1934
  return ae(
1939
1935
  () => e.modelValue,
1940
1936
  ($, D) => {
1941
- $ && !D && (i(), l("open")), !$ && D && x();
1937
+ $ && !D && (i(), s("open")), !$ && D && h();
1942
1938
  }
1943
1939
  ), be(() => {
1944
1940
  e.modelValue && i(), typeof window < "u" && window.addEventListener("keydown", u);
1945
1941
  }), pe(() => {
1946
- e.modelValue && x(), typeof window < "u" && window.removeEventListener("keydown", u);
1942
+ e.modelValue && h(), typeof window < "u" && window.removeEventListener("keydown", u);
1947
1943
  }), ($, D) => (t(), W(me, { to: "body" }, [
1948
1944
  J(ne, {
1949
1945
  "enter-active-class": "dk:transition-opacity dk:duration-200",
@@ -1951,34 +1947,34 @@ const Oe = { key: 1 }, Fe = `
1951
1947
  "enter-from-class": "dk:opacity-0",
1952
1948
  "leave-to-class": "dk:opacity-0"
1953
1949
  }, {
1954
- default: A(() => [
1950
+ default: I(() => [
1955
1951
  e.modelValue ? (t(), a("div", {
1956
1952
  key: 0,
1957
1953
  style: te({ zIndex: String(e.zIndex) }),
1958
- class: s(v.value),
1954
+ class: n(v.value),
1959
1955
  onClick: k
1960
1956
  }, [
1961
1957
  m("div", {
1962
- class: s(f.value)
1958
+ class: n(f.value)
1963
1959
  }, [
1964
1960
  m("div", {
1965
1961
  role: "dialog",
1966
1962
  "aria-modal": "true",
1967
- "aria-labelledby": e.title ? n : void 0,
1963
+ "aria-labelledby": e.title ? l : void 0,
1968
1964
  "aria-describedby": e.description ? w : void 0,
1969
- class: s(z.value),
1965
+ class: n(z.value),
1970
1966
  onClick: D[1] || (D[1] = G(() => {
1971
1967
  }, ["stop"]))
1972
1968
  }, [
1973
1969
  $.$slots.header || e.title || e.description || e.showClose ? (t(), a("header", {
1974
1970
  key: 0,
1975
- class: s(V.value)
1971
+ class: n(V.value)
1976
1972
  }, [
1977
1973
  m("div", null, [
1978
1974
  _($.$slots, "header", {}, () => [
1979
1975
  e.title ? (t(), a("h2", {
1980
1976
  key: 0,
1981
- id: n,
1977
+ id: l,
1982
1978
  class: "dk:text-lg dk:font-semibold"
1983
1979
  }, j(e.title), 1)) : S("", !0),
1984
1980
  e.description ? (t(), a("p", {
@@ -1993,19 +1989,19 @@ const Oe = { key: 1 }, Fe = `
1993
1989
  type: "button",
1994
1990
  class: "dk:inline-flex dk:h-8 dk:w-8 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30",
1995
1991
  "aria-label": "Cerrar modal",
1996
- onClick: D[0] || (D[0] = (I) => C("button"))
1992
+ onClick: D[0] || (D[0] = (A) => C("button"))
1997
1993
  }, [...D[2] || (D[2] = [
1998
1994
  m("span", { "aria-hidden": "true" }, "×", -1)
1999
1995
  ])])) : S("", !0)
2000
1996
  ], 2)) : S("", !0),
2001
1997
  m("section", {
2002
- class: s(y.value)
1998
+ class: n(y.value)
2003
1999
  }, [
2004
2000
  _($.$slots, "default")
2005
2001
  ], 2),
2006
2002
  $.$slots.footer ? (t(), a("footer", {
2007
2003
  key: 1,
2008
- class: s(c.value)
2004
+ class: n(c.value)
2009
2005
  }, [
2010
2006
  _($.$slots, "footer")
2011
2007
  ], 2)) : S("", !0)
@@ -2035,7 +2031,7 @@ const Oe = { key: 1 }, Fe = `
2035
2031
  },
2036
2032
  emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
2037
2033
  setup(d, { emit: r }) {
2038
- const e = d, l = r, n = `dui-drawer-title-${Math.random().toString(36).slice(2, 10)}`, w = {
2034
+ const e = d, s = r, l = `dui-drawer-title-${Math.random().toString(36).slice(2, 10)}`, w = {
2039
2035
  left: {
2040
2036
  sm: "dk:w-[95%] dk:md:w-16",
2041
2037
  md: "dk:w-[95%] dk:md:w-1/3",
@@ -2060,7 +2056,7 @@ const Oe = { key: 1 }, Fe = `
2060
2056
  lg: "dk:h-[95%] dk:md:h-1/2",
2061
2057
  xl: "dk:h-[95%] dk:md:h-[90%]"
2062
2058
  }
2063
- }, h = {
2059
+ }, x = {
2064
2060
  left: "dk:inset-y-0 dk:left-0 dk:h-full dk:rounded-r-xl",
2065
2061
  right: "dk:inset-y-0 dk:right-0 dk:h-full dk:rounded-l-xl",
2066
2062
  top: "dk:inset-x-0 dk:top-0 dk:w-full dk:rounded-b-xl",
@@ -2109,7 +2105,7 @@ const Oe = { key: 1 }, Fe = `
2109
2105
  const k = b[e.variant].base, u = b[e.variant][e.color], $ = w[e.position][e.size];
2110
2106
  return [
2111
2107
  "dk:fixed dk:flex dk:flex-col dk:overflow-hidden",
2112
- h[e.position],
2108
+ x[e.position],
2113
2109
  k,
2114
2110
  u,
2115
2111
  $
@@ -2132,18 +2128,18 @@ const Oe = { key: 1 }, Fe = `
2132
2128
  k.dataset.duiDrawerCount = String($), $ === 0 && (k.style.overflow = "");
2133
2129
  }
2134
2130
  function i(k) {
2135
- l("update:modelValue", !1), l("close", k);
2131
+ s("update:modelValue", !1), s("close", k);
2136
2132
  }
2137
- function x() {
2138
- l("backdrop"), !(e.persistent || !e.closeOnBackdrop) && i("backdrop");
2133
+ function h() {
2134
+ s("backdrop"), !(e.persistent || !e.closeOnBackdrop) && i("backdrop");
2139
2135
  }
2140
2136
  function C(k) {
2141
- k.key !== "Escape" || !e.modelValue || (l("escape"), !(e.persistent || !e.closeOnEsc) && i("escape"));
2137
+ k.key !== "Escape" || !e.modelValue || (s("escape"), !(e.persistent || !e.closeOnEsc) && i("escape"));
2142
2138
  }
2143
2139
  return ae(
2144
2140
  () => e.modelValue,
2145
2141
  (k, u) => {
2146
- k && !u && (y(), l("open")), !k && u && c();
2142
+ k && !u && (y(), s("open")), !k && u && c();
2147
2143
  }
2148
2144
  ), be(() => {
2149
2145
  e.modelValue && y(), typeof window < "u" && window.addEventListener("keydown", C);
@@ -2156,12 +2152,12 @@ const Oe = { key: 1 }, Fe = `
2156
2152
  "enter-from-class": "dk:opacity-0",
2157
2153
  "leave-to-class": "dk:opacity-0"
2158
2154
  }, {
2159
- default: A(() => [
2155
+ default: I(() => [
2160
2156
  e.modelValue ? (t(), a("div", {
2161
2157
  key: 0,
2162
2158
  style: te({ zIndex: String(e.zIndex) }),
2163
- class: s(v.value),
2164
- onClick: x
2159
+ class: n(v.value),
2160
+ onClick: h
2165
2161
  }, null, 6)) : S("", !0)
2166
2162
  ]),
2167
2163
  _: 1
@@ -2172,25 +2168,25 @@ const Oe = { key: 1 }, Fe = `
2172
2168
  "enter-from-class": p.value.hidden,
2173
2169
  "leave-to-class": p.value.hidden
2174
2170
  }, {
2175
- default: A(() => [
2171
+ default: I(() => [
2176
2172
  e.modelValue ? (t(), a("div", {
2177
2173
  key: 0,
2178
2174
  style: te({ zIndex: String(e.zIndex + 1) }),
2179
2175
  role: "dialog",
2180
2176
  "aria-modal": "true",
2181
- "aria-labelledby": e.name ? n : void 0,
2182
- class: s(f.value),
2177
+ "aria-labelledby": e.name ? l : void 0,
2178
+ class: n(f.value),
2183
2179
  onClick: u[1] || (u[1] = G(() => {
2184
2180
  }, ["stop"]))
2185
2181
  }, [
2186
2182
  k.$slots.header || e.name || e.showClose ? (t(), a("header", {
2187
2183
  key: 0,
2188
- class: s(z.value)
2184
+ class: n(z.value)
2189
2185
  }, [
2190
2186
  _(k.$slots, "header", {}, () => [
2191
2187
  e.name ? (t(), a("h2", {
2192
2188
  key: 0,
2193
- id: n,
2189
+ id: l,
2194
2190
  class: "dk:text-lg dk:font-semibold dk:truncate"
2195
2191
  }, j(e.name), 1)) : S("", !0)
2196
2192
  ]),
@@ -2205,13 +2201,13 @@ const Oe = { key: 1 }, Fe = `
2205
2201
  ])])) : S("", !0)
2206
2202
  ], 2)) : S("", !0),
2207
2203
  m("section", {
2208
- class: s(_d)
2204
+ class: n(_d)
2209
2205
  }, [
2210
2206
  _(k.$slots, "default")
2211
2207
  ]),
2212
2208
  k.$slots.actions ? (t(), a("footer", {
2213
2209
  key: 1,
2214
- class: s(R(V))
2210
+ class: n(R(V))
2215
2211
  }, [
2216
2212
  _(k.$slots, "actions")
2217
2213
  ], 2)) : S("", !0)
@@ -2247,7 +2243,7 @@ const Oe = { key: 1 }, Fe = `
2247
2243
  },
2248
2244
  emits: ["update:modelValue", "open", "close"],
2249
2245
  setup(d, { emit: r }) {
2250
- const e = d, l = r, g = N(null), n = N(null), w = N(!1), h = o(() => e.modelValue !== void 0), p = o(() => h.value ? !!e.modelValue : w.value), b = N(e.placement), v = N({ top: 0, left: 0 }), f = N(!1);
2246
+ const e = d, s = r, g = N(null), l = N(null), w = N(!1), x = o(() => e.modelValue !== void 0), p = o(() => x.value ? !!e.modelValue : w.value), b = N(e.placement), v = N({ top: 0, left: 0 }), f = N(!1);
2251
2247
  let z = null, V = null;
2252
2248
  const y = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`, c = {
2253
2249
  all: "dk:rounded-md",
@@ -2260,7 +2256,7 @@ const Oe = { key: 1 }, Fe = `
2260
2256
  sm: "dk:px-2 dk:py-1 dk:text-xs",
2261
2257
  md: "dk:px-2.5 dk:py-1.5 dk:text-sm",
2262
2258
  lg: "dk:px-3 dk:py-2 dk:text-base"
2263
- }, x = {
2259
+ }, h = {
2264
2260
  xs: "dk:max-w-40",
2265
2261
  sm: "dk:max-w-56",
2266
2262
  md: "dk:max-w-72",
@@ -2268,7 +2264,7 @@ const Oe = { key: 1 }, Fe = `
2268
2264
  full: "dk:max-w-[min(92vw,42rem)]"
2269
2265
  };
2270
2266
  function C(M) {
2271
- return typeof M == "string" && M in x;
2267
+ return typeof M == "string" && M in h;
2272
2268
  }
2273
2269
  const k = {
2274
2270
  solid: {
@@ -2290,7 +2286,7 @@ const Oe = { key: 1 }, Fe = `
2290
2286
  danger: "dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"
2291
2287
  }
2292
2288
  }, u = o(() => {
2293
- const M = c[e.rounded], B = i[e.size], T = k[e.variant].base, U = k[e.variant][e.color], F = C(e.maxWidth) ? x[e.maxWidth] : "";
2289
+ const M = c[e.rounded], B = i[e.size], T = k[e.variant].base, U = k[e.variant][e.color], F = C(e.maxWidth) ? h[e.maxWidth] : "";
2294
2290
  return [
2295
2291
  "dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default",
2296
2292
  "dk:break-words dk:whitespace-normal",
@@ -2328,21 +2324,21 @@ const Oe = { key: 1 }, Fe = `
2328
2324
  T[B] || T.top
2329
2325
  ].join(" ");
2330
2326
  });
2331
- function I() {
2327
+ function A() {
2332
2328
  z && (clearTimeout(z), z = null), V && (clearTimeout(V), V = null);
2333
2329
  }
2334
2330
  function X(M, B) {
2335
- e.disabled || (h.value ? l("update:modelValue", M) : w.value = M, M ? (l("open", B), ue(() => {
2331
+ e.disabled || (x.value ? s("update:modelValue", M) : w.value = M, M ? (s("open", B), ue(() => {
2336
2332
  Z();
2337
- })) : l("close", B));
2333
+ })) : s("close", B));
2338
2334
  }
2339
2335
  function ee(M) {
2340
- I(), z = setTimeout(() => {
2336
+ A(), z = setTimeout(() => {
2341
2337
  X(!0, M);
2342
2338
  }, Math.max(0, e.showDelay));
2343
2339
  }
2344
2340
  function de(M) {
2345
- I(), V = setTimeout(() => {
2341
+ A(), V = setTimeout(() => {
2346
2342
  M === "hover" && e.interactive && f.value || X(!1, M);
2347
2343
  }, Math.max(0, e.hideDelay));
2348
2344
  }
@@ -2375,8 +2371,8 @@ const Oe = { key: 1 }, Fe = `
2375
2371
  return U === "top" ? B.top - T.height - F < Y : U === "bottom" ? B.bottom + T.height + F > window.innerHeight - Y : U === "left" ? B.left - T.width - F < Y : B.right + T.width + F > window.innerWidth - Y;
2376
2372
  }
2377
2373
  function Z() {
2378
- if (!g.value || !n.value) return;
2379
- const M = g.value.getBoundingClientRect(), B = n.value.getBoundingClientRect();
2374
+ if (!g.value || !l.value) return;
2375
+ const M = g.value.getBoundingClientRect(), B = l.value.getBoundingClientRect();
2380
2376
  let T = e.placement;
2381
2377
  $e(T, M, B) && (T = ge(T)), b.value = T, v.value = re(T, M, B);
2382
2378
  }
@@ -2388,7 +2384,7 @@ const Oe = { key: 1 }, Fe = `
2388
2384
  if (e.trigger === "hover") {
2389
2385
  if (e.interactive) {
2390
2386
  const T = M.relatedTarget;
2391
- if (T && ((B = n.value) != null && B.contains(T)))
2387
+ if (T && ((B = l.value) != null && B.contains(T)))
2392
2388
  return;
2393
2389
  }
2394
2390
  de("hover");
@@ -2404,7 +2400,7 @@ const Oe = { key: 1 }, Fe = `
2404
2400
  e.trigger === "click" && (M.stopPropagation(), p.value ? de("click") : ee("click"));
2405
2401
  }
2406
2402
  function Me() {
2407
- e.interactive && (f.value = !0, I());
2403
+ e.interactive && (f.value = !0, A());
2408
2404
  }
2409
2405
  function Te(M) {
2410
2406
  var T;
@@ -2416,12 +2412,12 @@ const Oe = { key: 1 }, Fe = `
2416
2412
  var T, U;
2417
2413
  if (e.trigger !== "click" || !p.value) return;
2418
2414
  const B = M.target;
2419
- (T = g.value) != null && T.contains(B) || (U = n.value) != null && U.contains(B) || de("outside");
2415
+ (T = g.value) != null && T.contains(B) || (U = l.value) != null && U.contains(B) || de("outside");
2420
2416
  }
2421
2417
  return ae(
2422
2418
  () => e.modelValue,
2423
2419
  (M) => {
2424
- h.value && M && ue(Z);
2420
+ x.value && M && ue(Z);
2425
2421
  }
2426
2422
  ), ae(
2427
2423
  () => e.placement,
@@ -2433,7 +2429,7 @@ const Oe = { key: 1 }, Fe = `
2433
2429
  }), be(() => {
2434
2430
  typeof window > "u" || (window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0), window.addEventListener("click", ve));
2435
2431
  }), pe(() => {
2436
- I(), !(typeof window > "u") && (window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("click", ve));
2432
+ A(), !(typeof window > "u") && (window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("click", ve));
2437
2433
  }), (M, B) => (t(), a(E, null, [
2438
2434
  m("span", {
2439
2435
  ref_key: "triggerRef",
@@ -2461,14 +2457,14 @@ const Oe = { key: 1 }, Fe = `
2461
2457
  "enter-from-class": "dk:opacity-0",
2462
2458
  "leave-to-class": "dk:opacity-0"
2463
2459
  }, {
2464
- default: A(() => [
2460
+ default: I(() => [
2465
2461
  p.value && !e.disabled ? (t(), a("div", {
2466
2462
  key: 0,
2467
2463
  ref_key: "tooltipRef",
2468
- ref: n,
2464
+ ref: l,
2469
2465
  id: y,
2470
2466
  role: "tooltip",
2471
- class: s(u.value),
2467
+ class: n(u.value),
2472
2468
  style: te($.value),
2473
2469
  onMouseenter: Me,
2474
2470
  onMouseleave: Te
@@ -2479,7 +2475,7 @@ const Oe = { key: 1 }, Fe = `
2479
2475
  e.arrow ? (t(), a("span", {
2480
2476
  key: 0,
2481
2477
  "aria-hidden": "true",
2482
- class: s(D.value)
2478
+ class: n(D.value)
2483
2479
  }, null, 2)) : S("", !0)
2484
2480
  ], 38)) : S("", !0)
2485
2481
  ]),
@@ -2488,7 +2484,7 @@ const Oe = { key: 1 }, Fe = `
2488
2484
  ], 8, ["to"]))
2489
2485
  ], 64));
2490
2486
  }
2491
- }), Id = ["open"], Ad = ["onClick"], Ed = { class: "dui-acc-title" }, Wd = { class: "dui-acc-panel" }, Od = /* @__PURE__ */ L({
2487
+ }), Ad = ["open"], Id = ["onClick"], Ed = { class: "dui-acc-title" }, Wd = { class: "dui-acc-panel" }, Od = /* @__PURE__ */ L({
2492
2488
  __name: "DuiAccordion",
2493
2489
  props: {
2494
2490
  items: {},
@@ -2501,18 +2497,18 @@ const Oe = { key: 1 }, Fe = `
2501
2497
  },
2502
2498
  emits: ["update:modelValue", "change"],
2503
2499
  setup(d, { emit: r }) {
2504
- const e = d, l = r, g = N([]);
2505
- function n() {
2500
+ const e = d, s = r, g = N([]);
2501
+ function l() {
2506
2502
  return e.modelValue === void 0 ? g.value : Array.isArray(e.modelValue) ? e.modelValue : e.modelValue ? [e.modelValue] : [];
2507
2503
  }
2508
2504
  function w(C) {
2509
- return n().includes(C);
2505
+ return l().includes(C);
2510
2506
  }
2511
- function h(C, k) {
2507
+ function x(C, k) {
2512
2508
  if (k) return;
2513
- const u = n();
2509
+ const u = l();
2514
2510
  let $;
2515
- e.multiple ? $ = u.includes(C) ? u.filter((D) => D !== C) : [...u, C] : $ = u.includes(C) ? [] : [C], g.value = $, l("update:modelValue", e.multiple ? $ : $[0] ?? ""), l("change", C);
2511
+ e.multiple ? $ = u.includes(C) ? u.filter((D) => D !== C) : [...u, C] : $ = u.includes(C) ? [] : [C], g.value = $, s("update:modelValue", e.multiple ? $ : $[0] ?? ""), s("change", C);
2516
2512
  }
2517
2513
  const p = {
2518
2514
  sm: {
@@ -2560,8 +2556,8 @@ const Oe = { key: 1 }, Fe = `
2560
2556
  "dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none",
2561
2557
  "dk:transition-colors dk:duration-150",
2562
2558
  u.summary
2563
- ], I = $ ? [b[e.color], v[e.color]] : ["dk:text-zinc-700 dk:dark:text-zinc-300", "dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"], X = "dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500", ee = k ? "dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
2564
- return [...D, ...I, X, ee].join(" ");
2559
+ ], A = $ ? [b[e.color], v[e.color]] : ["dk:text-zinc-700 dk:dark:text-zinc-300", "dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"], X = "dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500", ee = k ? "dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
2560
+ return [...D, ...A, X, ee].join(" ");
2565
2561
  }
2566
2562
  function c(C) {
2567
2563
  const k = p[e.size];
@@ -2571,32 +2567,32 @@ const Oe = { key: 1 }, Fe = `
2571
2567
  k.chevron
2572
2568
  ].join(" ");
2573
2569
  }
2574
- const i = o(() => ["dk:flex-shrink-0 dk:leading-none", p[e.size].icon].join(" ")), x = o(() => [
2570
+ const i = o(() => ["dk:flex-shrink-0 dk:leading-none", p[e.size].icon].join(" ")), h = o(() => [
2575
2571
  p[e.size].content,
2576
2572
  "dk:text-zinc-600 dk:dark:text-zinc-400 dk:leading-relaxed"
2577
2573
  ].join(" "));
2578
2574
  return (C, k) => (t(), a("div", {
2579
- class: s(z.value)
2575
+ class: n(z.value)
2580
2576
  }, [
2581
2577
  (t(!0), a(E, null, K(d.items, (u, $) => (t(), a("details", {
2582
2578
  key: u.value ?? $,
2583
2579
  open: w(u.value ?? String($)),
2584
- class: s(V.value),
2580
+ class: n(V.value),
2585
2581
  onToggle: k[0] || (k[0] = G(() => {
2586
2582
  }, ["prevent"]))
2587
2583
  }, [
2588
2584
  m("summary", {
2589
- class: s(y(u.value ?? String($), u.disabled)),
2590
- onClick: G((D) => h(u.value ?? String($), u.disabled), ["prevent"])
2585
+ class: n(y(u.value ?? String($), u.disabled)),
2586
+ onClick: G((D) => x(u.value ?? String($), u.disabled), ["prevent"])
2591
2587
  }, [
2592
2588
  u.icon ? (t(), a("span", {
2593
2589
  key: 0,
2594
2590
  "aria-hidden": "true",
2595
- class: s(i.value)
2591
+ class: n(i.value)
2596
2592
  }, j(u.icon), 3)) : S("", !0),
2597
2593
  m("span", Ed, j(u.title), 1),
2598
2594
  (t(), a("svg", {
2599
- class: s(c(u.value ?? String($))),
2595
+ class: n(c(u.value ?? String($))),
2600
2596
  viewBox: "0 0 16 16",
2601
2597
  fill: "none",
2602
2598
  stroke: "currentColor",
@@ -2607,17 +2603,17 @@ const Oe = { key: 1 }, Fe = `
2607
2603
  }, [...k[1] || (k[1] = [
2608
2604
  m("polyline", { points: "4 6 8 10 12 6" }, null, -1)
2609
2605
  ])], 2))
2610
- ], 10, Ad),
2606
+ ], 10, Id),
2611
2607
  m("div", Wd, [
2612
2608
  m("div", {
2613
- class: s(x.value)
2609
+ class: n(h.value)
2614
2610
  }, [
2615
2611
  _(C.$slots, u.value ?? String($), {}, () => [
2616
2612
  m("p", null, j(u.content), 1)
2617
2613
  ], !0)
2618
2614
  ], 2)
2619
2615
  ])
2620
- ], 42, Id))), 128))
2616
+ ], 42, Ad))), 128))
2621
2617
  ], 2));
2622
2618
  }
2623
2619
  }), Ut = /* @__PURE__ */ ie(Od, [["__scopeId", "data-v-9bd77ff3"]]), Fd = ["aria-label"], qt = /* @__PURE__ */ L({
@@ -2635,12 +2631,12 @@ const Oe = { key: 1 }, Fe = `
2635
2631
  },
2636
2632
  emits: ["dismiss"],
2637
2633
  setup(d, { emit: r }) {
2638
- const e = d, l = r, g = {
2634
+ const e = d, s = r, g = {
2639
2635
  xs: "dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",
2640
2636
  sm: "dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",
2641
2637
  md: "dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",
2642
2638
  lg: "dk:text-base dk:px-3 dk:py-1.5 dk:gap-2"
2643
- }, n = {
2639
+ }, l = {
2644
2640
  full: "dk:rounded-full",
2645
2641
  md: "dk:rounded-md",
2646
2642
  none: "dk:rounded-none"
@@ -2669,7 +2665,7 @@ const Oe = { key: 1 }, Fe = `
2669
2665
  warning: "dk:border dk:border-amber-400 dk:text-amber-700 dk:dark:border-amber-500 dk:dark:text-amber-300",
2670
2666
  danger: "dk:border dk:border-rose-400 dk:text-rose-700 dk:dark:border-rose-500 dk:dark:text-rose-300"
2671
2667
  }
2672
- }, h = {
2668
+ }, x = {
2673
2669
  neutral: "dk:bg-zinc-500 dk:dark:bg-zinc-400",
2674
2670
  primary: "dk:bg-slate-500 dk:dark:bg-slate-400",
2675
2671
  secondary: "dk:bg-pink-500 dk:dark:bg-pink-400",
@@ -2677,9 +2673,9 @@ const Oe = { key: 1 }, Fe = `
2677
2673
  warning: "dk:bg-amber-500 dk:dark:bg-amber-400",
2678
2674
  danger: "dk:bg-rose-500 dk:dark:bg-rose-400"
2679
2675
  }, p = o(() => {
2680
- const z = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", V = g[e.size], y = n[e.rounded], c = w[e.variant][e.color], i = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
2676
+ const z = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", V = g[e.size], y = l[e.rounded], c = w[e.variant][e.color], i = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
2681
2677
  return [z, V, y, c, i].join(" ");
2682
- }), b = o(() => ["dk:rounded-full dk:flex-shrink-0", { xs: "dk:w-1.5 dk:h-1.5", sm: "dk:w-2 dk:h-2", md: "dk:w-2 dk:h-2", lg: "dk:w-2.5 dk:h-2.5" }[e.size], h[e.color]].join(" ")), v = o(() => "dk:flex-shrink-0 dk:flex dk:items-center"), f = o(() => [
2678
+ }), b = o(() => ["dk:rounded-full dk:flex-shrink-0", { xs: "dk:w-1.5 dk:h-1.5", sm: "dk:w-2 dk:h-2", md: "dk:w-2 dk:h-2", lg: "dk:w-2.5 dk:h-2.5" }[e.size], x[e.color]].join(" ")), v = o(() => "dk:flex-shrink-0 dk:flex dk:items-center"), f = o(() => [
2683
2679
  "dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center",
2684
2680
  "dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none",
2685
2681
  "dk:opacity-60 dk:hover:opacity-100 dk:transition-opacity dk:outline-none",
@@ -2689,15 +2685,15 @@ const Oe = { key: 1 }, Fe = `
2689
2685
  href: d.href,
2690
2686
  class: p.value
2691
2687
  }, z.$attrs), {
2692
- default: A(() => [
2688
+ default: I(() => [
2693
2689
  z.$slots.icon || d.dot ? (t(), a("span", {
2694
2690
  key: 0,
2695
2691
  "aria-hidden": "true",
2696
- class: s(v.value)
2692
+ class: n(v.value)
2697
2693
  }, [
2698
2694
  d.dot ? (t(), a("span", {
2699
2695
  key: 0,
2700
- class: s(b.value)
2696
+ class: n(b.value)
2701
2697
  }, null, 2)) : _(z.$slots, "icon", {}, void 0, void 0, 1)
2702
2698
  ], 2)) : S("", !0),
2703
2699
  _(z.$slots, "default", {}, () => [
@@ -2706,9 +2702,9 @@ const Oe = { key: 1 }, Fe = `
2706
2702
  d.dismissible ? (t(), a("button", {
2707
2703
  key: 1,
2708
2704
  type: "button",
2709
- class: s(f.value),
2705
+ class: n(f.value),
2710
2706
  "aria-label": d.label ? `Quitar ${d.label}` : "Quitar",
2711
- onClick: V[0] || (V[0] = G((y) => l("dismiss"), ["prevent"]))
2707
+ onClick: V[0] || (V[0] = G((y) => s("dismiss"), ["prevent"]))
2712
2708
  }, " × ", 10, Fd)) : S("", !0)
2713
2709
  ]),
2714
2710
  _: 3
@@ -2729,14 +2725,14 @@ const Oe = { key: 1 }, Fe = `
2729
2725
  },
2730
2726
  emits: ["update:modelValue", "open", "close"],
2731
2727
  setup(d, { emit: r }) {
2732
- const e = d, l = r, g = N(null), n = N(!1), w = o(() => e.modelValue !== void 0 ? e.modelValue : n.value);
2733
- function h() {
2728
+ const e = d, s = r, g = N(null), l = N(!1), w = o(() => e.modelValue !== void 0 ? e.modelValue : l.value);
2729
+ function x() {
2734
2730
  if (e.disabled) return;
2735
2731
  const c = !w.value;
2736
- n.value = c, l("update:modelValue", c), l(c ? "open" : "close");
2732
+ l.value = c, s("update:modelValue", c), s(c ? "open" : "close");
2737
2733
  }
2738
2734
  function p() {
2739
- n.value = !1, l("update:modelValue", !1), l("close");
2735
+ l.value = !1, s("update:modelValue", !1), s("close");
2740
2736
  }
2741
2737
  function b(c) {
2742
2738
  g.value && !g.value.contains(c.target) && p();
@@ -2790,10 +2786,10 @@ const Oe = { key: 1 }, Fe = `
2790
2786
  class: "dk:relative dk:inline-block"
2791
2787
  }, [
2792
2788
  m("div", {
2793
- onClick: h,
2789
+ onClick: x,
2794
2790
  onKeydown: [
2795
- ye(G(h, ["prevent"]), ["enter"]),
2796
- ye(G(h, ["prevent"]), ["space"])
2791
+ ye(G(x, ["prevent"]), ["enter"]),
2792
+ ye(G(x, ["prevent"]), ["space"])
2797
2793
  ]
2798
2794
  }, [
2799
2795
  _(c.$slots, "trigger")
@@ -2804,10 +2800,10 @@ const Oe = { key: 1 }, Fe = `
2804
2800
  "enter-from-class": "dk:opacity-0 dk:scale-95",
2805
2801
  "leave-to-class": "dk:opacity-0 dk:scale-95"
2806
2802
  }, {
2807
- default: A(() => [
2803
+ default: I(() => [
2808
2804
  w.value ? (t(), a("div", {
2809
2805
  key: 0,
2810
- class: s(y.value),
2806
+ class: n(y.value),
2811
2807
  style: te(V.value),
2812
2808
  role: "menu",
2813
2809
  "aria-label": d.ariaLabel
@@ -2835,16 +2831,16 @@ const Oe = { key: 1 }, Fe = `
2835
2831
  },
2836
2832
  emits: ["click"],
2837
2833
  setup(d, { emit: r }) {
2838
- const e = d, l = r, g = o(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), n = {
2834
+ const e = d, s = r, g = o(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), l = {
2839
2835
  sm: "dk:px-3 dk:py-1 dk:text-xs",
2840
2836
  md: "dk:px-3 dk:py-2 dk:text-sm",
2841
2837
  lg: "dk:px-4 dk:py-2.5 dk:text-base"
2842
2838
  }, w = o(() => {
2843
- const b = "dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none", v = n[e.size], f = e.danger ? "dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40" : "dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10", z = e.disabled ? "dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
2839
+ const b = "dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none", v = l[e.size], f = e.danger ? "dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40" : "dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10", z = e.disabled ? "dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
2844
2840
  return [b, v, f, z].join(" ");
2845
- }), h = o(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
2841
+ }), x = o(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
2846
2842
  function p(b) {
2847
- e.disabled || l("click", b);
2843
+ e.disabled || s("click", b);
2848
2844
  }
2849
2845
  return (b, v) => (t(), W(Q(d.href ? "a" : "button"), O(g.value, {
2850
2846
  class: w.value,
@@ -2852,10 +2848,10 @@ const Oe = { key: 1 }, Fe = `
2852
2848
  "aria-disabled": d.disabled,
2853
2849
  onClick: p
2854
2850
  }), {
2855
- default: A(() => [
2851
+ default: I(() => [
2856
2852
  b.$slots.icon || d.icon ? (t(), a("span", {
2857
2853
  key: 0,
2858
- class: s(h.value),
2854
+ class: n(x.value),
2859
2855
  "aria-hidden": "true"
2860
2856
  }, [
2861
2857
  _(b.$slots, "icon", {}, () => [
@@ -2907,23 +2903,23 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
2907
2903
  },
2908
2904
  emits: ["update:modelValue", "change"],
2909
2905
  setup(d, { emit: r }) {
2910
- const e = d, l = r, g = o(() => Math.max(1, Math.ceil(e.total / e.perPage)));
2911
- function n(c) {
2912
- c < 1 || c > g.value || c === e.modelValue || (l("update:modelValue", c), l("change", c));
2906
+ const e = d, s = r, g = o(() => Math.max(1, Math.ceil(e.total / e.perPage)));
2907
+ function l(c) {
2908
+ c < 1 || c > g.value || c === e.modelValue || (s("update:modelValue", c), s("change", c));
2913
2909
  }
2914
2910
  const w = o(() => {
2915
- const c = g.value, i = e.modelValue, x = e.siblingCount, C = e.showBoundary ? 1 : 0;
2916
- if (c <= 2 * x + 2 * C + 3)
2917
- return Array.from({ length: c }, (D, I) => I + 1);
2911
+ const c = g.value, i = e.modelValue, h = e.siblingCount, C = e.showBoundary ? 1 : 0;
2912
+ if (c <= 2 * h + 2 * C + 3)
2913
+ return Array.from({ length: c }, (D, A) => A + 1);
2918
2914
  const k = [];
2919
2915
  for (let D = 1; D <= C; D++) k.push(D);
2920
- const u = Math.max(C + 1, i - x), $ = Math.min(c - C, i + x);
2916
+ const u = Math.max(C + 1, i - h), $ = Math.min(c - C, i + h);
2921
2917
  u > C + 1 && k.push("...");
2922
2918
  for (let D = u; D <= $; D++) k.push(D);
2923
2919
  $ < c - C && k.push("...");
2924
2920
  for (let D = c - C + 1; D <= c; D++) k.push(D);
2925
2921
  return k;
2926
- }), h = {
2922
+ }), x = {
2927
2923
  sm: "dk:w-7 dk:h-7 dk:text-xs",
2928
2924
  md: "dk:w-9 dk:h-9 dk:text-sm",
2929
2925
  lg: "dk:w-11 dk:h-11 dk:text-base"
@@ -2957,7 +2953,7 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
2957
2953
  danger: "dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"
2958
2954
  }
2959
2955
  }, v = o(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"), f = o(() => {
2960
- const c = h[e.size], i = p[e.rounded];
2956
+ const c = x[e.size], i = p[e.rounded];
2961
2957
  return [
2962
2958
  "dk:inline-flex dk:items-center dk:justify-center dk:font-medium dk:transition-colors dk:duration-150 dk:outline-none dk:select-none dk:cursor-pointer dk:disabled:cursor-not-allowed dk:disabled:pointer-events-none",
2963
2959
  c,
@@ -2976,17 +2972,17 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
2976
2972
  "dk:text-zinc-600 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
2977
2973
  ].join(" ");
2978
2974
  }
2979
- const y = o(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", h[e.size]].join(" "));
2975
+ const y = o(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", x[e.size]].join(" "));
2980
2976
  return (c, i) => (t(), a("nav", {
2981
2977
  "aria-label": d.ariaLabel,
2982
- class: s(v.value)
2978
+ class: n(v.value)
2983
2979
  }, [
2984
2980
  m("button", {
2985
2981
  type: "button",
2986
2982
  disabled: d.modelValue <= 1,
2987
2983
  "aria-label": d.prevLabel,
2988
- class: s([z.value, d.modelValue <= 1 ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
2989
- onClick: i[0] || (i[0] = (x) => n(d.modelValue - 1))
2984
+ class: n([z.value, d.modelValue <= 1 ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
2985
+ onClick: i[0] || (i[0] = (h) => l(d.modelValue - 1))
2990
2986
  }, [
2991
2987
  i[2] || (i[2] = m("svg", {
2992
2988
  class: "dk:w-4 dk:h-4",
@@ -3002,26 +2998,26 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3002
2998
  ], -1)),
3003
2999
  d.showLabels ? (t(), a("span", Xd, j(d.prevLabel), 1)) : S("", !0)
3004
3000
  ], 10, Jd),
3005
- (t(!0), a(E, null, K(w.value, (x) => (t(), a(E, { key: x }, [
3006
- x === "..." ? (t(), a("span", {
3001
+ (t(!0), a(E, null, K(w.value, (h) => (t(), a(E, { key: h }, [
3002
+ h === "..." ? (t(), a("span", {
3007
3003
  key: 0,
3008
- class: s(y.value),
3004
+ class: n(y.value),
3009
3005
  "aria-hidden": "true"
3010
3006
  }, "…", 2)) : (t(), a("button", {
3011
3007
  key: 1,
3012
3008
  type: "button",
3013
- "aria-label": `Pagina ${x}`,
3014
- "aria-current": d.modelValue === x ? "page" : void 0,
3015
- class: s(V(x)),
3016
- onClick: (C) => n(x)
3017
- }, j(x), 11, Zd))
3009
+ "aria-label": `Pagina ${h}`,
3010
+ "aria-current": d.modelValue === h ? "page" : void 0,
3011
+ class: n(V(h)),
3012
+ onClick: (C) => l(h)
3013
+ }, j(h), 11, Zd))
3018
3014
  ], 64))), 128)),
3019
3015
  m("button", {
3020
3016
  type: "button",
3021
3017
  disabled: d.modelValue >= g.value,
3022
3018
  "aria-label": d.nextLabel,
3023
- class: s([z.value, d.modelValue >= g.value ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
3024
- onClick: i[1] || (i[1] = (x) => n(d.modelValue + 1))
3019
+ class: n([z.value, d.modelValue >= g.value ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
3020
+ onClick: i[1] || (i[1] = (h) => l(d.modelValue + 1))
3025
3021
  }, [
3026
3022
  d.showLabels ? (t(), a("span", et, j(d.nextLabel), 1)) : S("", !0),
3027
3023
  i[3] || (i[3] = m("svg", {
@@ -3049,30 +3045,30 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3049
3045
  },
3050
3046
  setup(d) {
3051
3047
  const r = d;
3052
- function e(h) {
3053
- if (h !== void 0)
3054
- return typeof h == "number" ? `${h}px` : h;
3048
+ function e(x) {
3049
+ if (x !== void 0)
3050
+ return typeof x == "number" ? `${x}px` : x;
3055
3051
  }
3056
- const l = o(() => ({
3052
+ const s = o(() => ({
3057
3053
  width: e(r.width),
3058
3054
  height: e(r.height)
3059
3055
  })), g = {
3060
3056
  pulse: "dui-skeleton-pulse",
3061
3057
  wave: "dui-skeleton-wave",
3062
3058
  none: ""
3063
- }, n = {
3059
+ }, l = {
3064
3060
  text: "dk:block dk:h-4 dk:w-full dk:rounded",
3065
3061
  circular: "dk:block dk:w-10 dk:h-10 dk:rounded-full",
3066
3062
  rectangular: "dk:block dk:w-full dk:h-20 dk:rounded-none",
3067
3063
  rounded: "dk:block dk:w-full dk:h-20 dk:rounded-xl"
3068
3064
  }, w = o(() => [
3069
3065
  "dk:bg-zinc-200 dk:dark:bg-zinc-700",
3070
- n[r.variant],
3066
+ l[r.variant],
3071
3067
  g[r.animation]
3072
3068
  ].join(" "));
3073
- return (h, p) => (t(), a("span", {
3074
- class: s(w.value),
3075
- style: te(l.value),
3069
+ return (x, p) => (t(), a("span", {
3070
+ class: n(w.value),
3071
+ style: te(s.value),
3076
3072
  "aria-hidden": "true",
3077
3073
  role: "presentation"
3078
3074
  }, null, 6));
@@ -3094,25 +3090,25 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3094
3090
  },
3095
3091
  emits: ["update:modelValue", "change"],
3096
3092
  setup(d, { emit: r }) {
3097
- const e = d, l = r, g = Math.random().toString(36).slice(2, 8);
3098
- function n(y, c) {
3099
- c || (l("update:modelValue", y), l("change", y));
3093
+ const e = d, s = r, g = Math.random().toString(36).slice(2, 8);
3094
+ function l(y, c) {
3095
+ c || (s("update:modelValue", y), s("change", y));
3100
3096
  }
3101
3097
  function w(y, c) {
3102
- const i = e.tabs.filter((C) => !C.disabled).map((C) => C.value), x = i.indexOf(c);
3098
+ const i = e.tabs.filter((C) => !C.disabled).map((C) => C.value), h = i.indexOf(c);
3103
3099
  if (y.key === "ArrowRight" || y.key === "ArrowDown") {
3104
3100
  y.preventDefault();
3105
- const C = i[(x + 1) % i.length];
3106
- n(C);
3101
+ const C = i[(h + 1) % i.length];
3102
+ l(C);
3107
3103
  }
3108
3104
  if (y.key === "ArrowLeft" || y.key === "ArrowUp") {
3109
3105
  y.preventDefault();
3110
- const C = i[(x - 1 + i.length) % i.length];
3111
- n(C);
3106
+ const C = i[(h - 1 + i.length) % i.length];
3107
+ l(C);
3112
3108
  }
3113
- y.key === "Home" && (y.preventDefault(), n(i[0])), y.key === "End" && (y.preventDefault(), n(i[i.length - 1]));
3109
+ y.key === "Home" && (y.preventDefault(), l(i[0])), y.key === "End" && (y.preventDefault(), l(i[i.length - 1]));
3114
3110
  }
3115
- const h = {
3111
+ const x = {
3116
3112
  sm: "dk:text-xs dk:px-3 dk:py-1.5",
3117
3113
  md: "dk:text-sm dk:px-4 dk:py-2",
3118
3114
  lg: "dk:text-base dk:px-5 dk:py-2.5"
@@ -3132,24 +3128,24 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3132
3128
  return [y, c, i].join(" ");
3133
3129
  });
3134
3130
  function f(y, c) {
3135
- const i = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t", x = h[e.size], C = e.modelValue === y, k = c ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", u = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
3131
+ const i = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t", h = x[e.size], C = e.modelValue === y, k = c ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", u = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
3136
3132
  if (e.variant === "underline") {
3137
- const I = C ? `dk:border-b-2 ${p[e.color].underline}` : "dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";
3138
- return [i, x, I, k, u].join(" ");
3133
+ const A = C ? `dk:border-b-2 ${p[e.color].underline}` : "dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";
3134
+ return [i, h, A, k, u].join(" ");
3139
3135
  }
3140
3136
  if (e.variant === "pills") {
3141
- const I = C ? `dk:rounded-lg ${p[e.color].pills}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";
3142
- return [i, x, I, k, u].join(" ");
3137
+ const A = C ? `dk:rounded-lg ${p[e.color].pills}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";
3138
+ return [i, h, A, k, u].join(" ");
3143
3139
  }
3144
3140
  const $ = C ? `dk:rounded-lg ${p[e.color].boxed}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-black/5 dk:dark:hover:bg-white/5 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200", D = e.fullWidth ? "dk:flex-1 dk:text-center dk:justify-center" : "";
3145
- return [i, x, $, k, u, D].join(" ");
3141
+ return [i, h, $, k, u, D].join(" ");
3146
3142
  }
3147
3143
  const z = o(() => "dk:ml-1 dk:inline-flex dk:items-center dk:justify-center dk:rounded-full dk:bg-current/15 dk:text-current dk:text-[10px] dk:font-semibold dk:px-1.5 dk:py-px dk:leading-none"), V = o(() => [{ sm: "dk:pt-3", md: "dk:pt-4", lg: "dk:pt-5" }[e.size], "dk:outline-none"].join(" "));
3148
3144
  return (y, c) => (t(), a("div", {
3149
- class: s(b.value)
3145
+ class: n(b.value)
3150
3146
  }, [
3151
3147
  m("div", {
3152
- class: s(v.value),
3148
+ class: n(v.value),
3153
3149
  role: "tablist",
3154
3150
  "aria-label": d.ariaLabel
3155
3151
  }, [
@@ -3161,15 +3157,15 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3161
3157
  "aria-selected": d.modelValue === i.value,
3162
3158
  disabled: i.disabled,
3163
3159
  role: "tab",
3164
- class: s(f(i.value, i.disabled)),
3165
- onClick: (x) => n(i.value, i.disabled),
3166
- onKeydown: (x) => w(x, i.value)
3160
+ class: n(f(i.value, i.disabled)),
3161
+ onClick: (h) => l(i.value, i.disabled),
3162
+ onKeydown: (h) => w(h, i.value)
3167
3163
  }, [
3168
3164
  i.icon ? (t(), a("span", at, j(i.icon), 1)) : S("", !0),
3169
3165
  P(" " + j(i.label) + " ", 1),
3170
3166
  i.badge !== void 0 ? (t(), a("span", {
3171
3167
  key: 1,
3172
- class: s(z.value)
3168
+ class: n(z.value)
3173
3169
  }, j(i.badge), 3)) : S("", !0)
3174
3170
  ], 42, rt))), 128))
3175
3171
  ], 10, tt),
@@ -3180,7 +3176,7 @@ const Gt = /* @__PURE__ */ ie(Hd, [["render", Gd]]), Yd = ["aria-label"], Jd = [
3180
3176
  role: "tabpanel",
3181
3177
  tabindex: d.modelValue === i.value ? 0 : -1,
3182
3178
  hidden: d.modelValue !== i.value,
3183
- class: s(V.value)
3179
+ class: n(V.value)
3184
3180
  }, [
3185
3181
  _(y.$slots, i.value)
3186
3182
  ], 10, ot))), 128))
@@ -3208,7 +3204,7 @@ function kt() {
3208
3204
  }
3209
3205
  function nt() {
3210
3206
  return {
3211
- toasts: Ae(le.toasts),
3207
+ toasts: Ie(le.toasts),
3212
3208
  add: ke,
3213
3209
  remove: Ce,
3214
3210
  clear: kt,
@@ -3233,7 +3229,7 @@ const st = {
3233
3229
  zIndex: { default: 9999 }
3234
3230
  },
3235
3231
  setup(d) {
3236
- const r = d, { toasts: e, remove: l } = nt(), g = o(() => e.slice(0, r.maxToasts)), n = {
3232
+ const r = d, { toasts: e, remove: s } = nt(), g = o(() => e.slice(0, r.maxToasts)), l = {
3237
3233
  "top-right": "dk:top-4 dk:right-4 dk:items-end",
3238
3234
  "top-left": "dk:top-4 dk:left-4 dk:items-start",
3239
3235
  "top-center": "dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center",
@@ -3242,8 +3238,8 @@ const st = {
3242
3238
  "bottom-center": "dk:bottom-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center"
3243
3239
  }, w = o(() => [
3244
3240
  "dk:fixed dk:pointer-events-none",
3245
- n[r.position]
3246
- ].join(" ")), h = o(() => ({
3241
+ l[r.position]
3242
+ ].join(" ")), x = o(() => ({
3247
3243
  zIndex: String(r.zIndex)
3248
3244
  })), p = o(() => "dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"), b = {
3249
3245
  neutral: "dk:bg-zinc-800 dk:dark:bg-zinc-700 dk:text-white dk:border-zinc-600",
@@ -3272,43 +3268,43 @@ const st = {
3272
3268
  }
3273
3269
  return (V, y) => (t(), W(me, { to: "body" }, [
3274
3270
  m("div", {
3275
- class: s(w.value),
3276
- style: te(h.value),
3271
+ class: n(w.value),
3272
+ style: te(x.value),
3277
3273
  "aria-live": "polite",
3278
3274
  "aria-atomic": "false"
3279
3275
  }, [
3280
3276
  J(Ee, {
3281
3277
  tag: "div",
3282
- class: s(p.value),
3278
+ class: n(p.value),
3283
3279
  "enter-active-class": "dk:transition-all dk:duration-300 dk:ease-out",
3284
3280
  "leave-active-class": "dk:transition-all dk:duration-200 dk:ease-in dk:absolute dk:w-full",
3285
3281
  "enter-from-class": "dk:opacity-0 dk:translate-y-2 dk:scale-95",
3286
3282
  "leave-to-class": "dk:opacity-0 dk:scale-95",
3287
3283
  "move-class": "dk:transition-all dk:duration-300"
3288
3284
  }, {
3289
- default: A(() => [
3285
+ default: I(() => [
3290
3286
  (t(!0), a(E, null, K(g.value, (c) => (t(), a("div", {
3291
3287
  key: c.id,
3292
3288
  role: "alert",
3293
- class: s(f(c.color))
3289
+ class: n(f(c.color))
3294
3290
  }, [
3295
3291
  c.icon ? (t(), a("span", st, j(c.icon), 1)) : (t(), a("span", {
3296
3292
  key: 1,
3297
- class: s(z(c.color)),
3293
+ class: n(z(c.color)),
3298
3294
  "aria-hidden": "true"
3299
3295
  }, null, 2)),
3300
3296
  m("div", lt, [
3301
3297
  c.title ? (t(), a("p", it, j(c.title), 1)) : S("", !0),
3302
3298
  m("p", {
3303
- class: s(["dk:text-sm dk:leading-snug", { "dk:opacity-80": c.title }])
3299
+ class: n(["dk:text-sm dk:leading-snug", { "dk:opacity-80": c.title }])
3304
3300
  }, j(c.message), 3)
3305
3301
  ]),
3306
3302
  c.closable ? (t(), a("button", {
3307
3303
  key: 2,
3308
3304
  type: "button",
3309
- class: s(ut),
3305
+ class: n(ut),
3310
3306
  "aria-label": "Cerrar notificacion",
3311
- onClick: (i) => R(l)(c.id)
3307
+ onClick: (i) => R(s)(c.id)
3312
3308
  }, [...y[0] || (y[0] = [
3313
3309
  m("i", {
3314
3310
  class: "mdi mdi-close",
@@ -3334,47 +3330,47 @@ const st = {
3334
3330
  },
3335
3331
  emits: ["confirmed"],
3336
3332
  setup(d, { emit: r }) {
3337
- const e = N(!1), l = N(!1), g = r, n = d;
3333
+ const e = N(!1), s = N(!1), g = r, l = d;
3338
3334
  function w() {
3339
3335
  e.value = !0, setTimeout(() => {
3340
- e.value = !1, l.value = !1;
3336
+ e.value = !1, s.value = !1;
3341
3337
  }, 1e4);
3342
3338
  }
3343
- function h() {
3344
- g("confirmed"), e.value = !1, l.value = !1;
3339
+ function x() {
3340
+ g("confirmed"), e.value = !1, s.value = !1;
3345
3341
  }
3346
3342
  return (p, b) => e.value ? (t(), a("div", bt, [
3347
3343
  J(id, {
3348
- modelValue: l.value,
3349
- "onUpdate:modelValue": b[0] || (b[0] = (v) => l.value = v),
3350
- label: n.checkLabel,
3351
- size: n.size,
3352
- variant: n.variant,
3353
- color: n.color,
3354
- checked: l.value
3344
+ modelValue: s.value,
3345
+ "onUpdate:modelValue": b[0] || (b[0] = (v) => s.value = v),
3346
+ label: l.checkLabel,
3347
+ size: l.size,
3348
+ variant: l.variant,
3349
+ color: l.color,
3350
+ checked: s.value
3355
3351
  }, null, 8, ["modelValue", "label", "size", "variant", "color", "checked"]),
3356
3352
  b[2] || (b[2] = m("br", null, null, -1)),
3357
- l.value ? (t(), W(oe, {
3353
+ s.value ? (t(), W(oe, {
3358
3354
  key: 0,
3359
- onClick: b[1] || (b[1] = (v) => h()),
3360
- variant: n.variant,
3361
- color: n.color,
3362
- size: n.size
3355
+ onClick: b[1] || (b[1] = (v) => x()),
3356
+ variant: l.variant,
3357
+ color: l.color,
3358
+ size: l.size
3363
3359
  }, {
3364
- default: A(() => [
3365
- P(j(n.confirmLabel), 1)
3360
+ default: I(() => [
3361
+ P(j(l.confirmLabel), 1)
3366
3362
  ]),
3367
3363
  _: 1
3368
3364
  }, 8, ["variant", "color", "size"])) : S("", !0)
3369
3365
  ])) : (t(), W(oe, {
3370
3366
  key: 0,
3371
3367
  onClick: w,
3372
- variant: n.variant,
3373
- color: n.color,
3374
- size: n.size
3368
+ variant: l.variant,
3369
+ color: l.color,
3370
+ size: l.size
3375
3371
  }, {
3376
- default: A(() => [
3377
- P(j(n.label), 1)
3372
+ default: I(() => [
3373
+ P(j(l.label), 1)
3378
3374
  ]),
3379
3375
  _: 1
3380
3376
  }, 8, ["variant", "color", "size"]));
@@ -3385,10 +3381,10 @@ const st = {
3385
3381
  }, mt = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, ft = {
3386
3382
  key: 0,
3387
3383
  class: "dk:relative dk:group"
3388
- }, gt = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:bg-none dk:dark:bg-zinc-900 dk:backdrop-blur-md dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-zinc-800 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, xt = {
3384
+ }, gt = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:bg-none dk:dark:bg-zinc-900 dk:backdrop-blur-md dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-zinc-800 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, ht = {
3389
3385
  key: 1,
3390
3386
  class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
3391
- }, ht = {
3387
+ }, xt = {
3392
3388
  class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
3393
3389
  fill: "none",
3394
3390
  viewBox: "0 0 24 24"
@@ -3404,17 +3400,17 @@ const st = {
3404
3400
  underlineColor: { default: "primary" }
3405
3401
  },
3406
3402
  setup(d) {
3407
- const r = d, e = N(!1), l = ze({}), g = (x) => se(x.to), n = (x) => {
3408
- const C = g(x);
3409
- return fe(x.to, C);
3403
+ const r = d, e = N(!1), s = ze({}), g = (h) => se(h.to), l = (h) => {
3404
+ const C = g(h);
3405
+ return fe(h.to, C);
3410
3406
  }, w = () => {
3411
3407
  e.value = !e.value;
3412
- }, h = () => {
3413
- e.value = !1, Object.keys(l).forEach((x) => {
3414
- l[x] = !1;
3408
+ }, x = () => {
3409
+ e.value = !1, Object.keys(s).forEach((h) => {
3410
+ s[h] = !1;
3415
3411
  });
3416
- }, p = (x) => {
3417
- l[x] = !l[x];
3412
+ }, p = (h) => {
3413
+ s[h] = !s[h];
3418
3414
  }, b = {
3419
3415
  s: {
3420
3416
  height: "dk:h-12",
@@ -3435,7 +3431,7 @@ const st = {
3435
3431
  itemPadding: "dk:px-4 dk:py-3"
3436
3432
  }
3437
3433
  }, v = o(() => {
3438
- const x = b[r.size];
3434
+ const h = b[r.size];
3439
3435
  return [
3440
3436
  "dk:relative",
3441
3437
  "dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
@@ -3448,9 +3444,9 @@ const st = {
3448
3444
  "dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
3449
3445
  "dk:dark:before:hidden",
3450
3446
  "dk:flex dk:items-center dk:w-full dk:gap-4",
3451
- x.height,
3452
- x.padding,
3453
- x.text
3447
+ h.height,
3448
+ h.padding,
3449
+ h.text
3454
3450
  ].join(" ");
3455
3451
  }), f = o(() => [
3456
3452
  "dk:flex dk:items-center dk:space-x-1 dk:flex-1",
@@ -3460,7 +3456,7 @@ const st = {
3460
3456
  right: "dk:justify-end"
3461
3457
  }[r.itemsAlignment]
3462
3458
  ].join(" ")), z = () => {
3463
- const x = {
3459
+ const h = {
3464
3460
  neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
3465
3461
  primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
3466
3462
  secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
@@ -3468,13 +3464,13 @@ const st = {
3468
3464
  danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
3469
3465
  warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
3470
3466
  };
3471
- return x[r.underlineColor] || x.primary;
3467
+ return h[r.underlineColor] || h.primary;
3472
3468
  }, V = o(() => {
3473
- const x = b[r.size], C = z();
3469
+ const h = b[r.size], C = z();
3474
3470
  return (k, u = !0) => {
3475
- const $ = k.active ?? !1, D = u ? "dk:pl-3" : "dk:pl-2", I = "dk:pr-3", X = u ? "dk:pl-2" : "dk:pl-1", ee = "dk:pr-2", de = u ? "dk:pl-4" : "dk:pl-3", ge = "dk:pr-4";
3471
+ const $ = k.active ?? !1, D = u ? "dk:pl-3" : "dk:pl-2", A = "dk:pr-3", X = u ? "dk:pl-2" : "dk:pl-1", ee = "dk:pr-2", de = u ? "dk:pl-4" : "dk:pl-3", ge = "dk:pr-4";
3476
3472
  let re = "";
3477
- return x.itemPadding.includes("px-2") ? re = `${X} ${ee} dk:py-1.5` : x.itemPadding.includes("px-4") ? re = `${de} ${ge} dk:py-3` : re = `${D} ${I} dk:py-2`, [
3473
+ return h.itemPadding.includes("px-2") ? re = `${X} ${ee} dk:py-1.5` : h.itemPadding.includes("px-4") ? re = `${de} ${ge} dk:py-3` : re = `${D} ${A} dk:py-2`, [
3478
3474
  // Block style with animated underline
3479
3475
  "dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
3480
3476
  "dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
@@ -3509,27 +3505,27 @@ const st = {
3509
3505
  "dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
3510
3506
  "dk:transition-all dk:duration-200 dk:no-underline"
3511
3507
  ].join(" "));
3512
- return (x, C) => (t(), a("nav", {
3513
- class: s(v.value)
3508
+ return (h, C) => (t(), a("nav", {
3509
+ class: n(v.value)
3514
3510
  }, [
3515
- x.$slots.brand ? (t(), a("div", pt, [
3516
- _(x.$slots, "brand")
3511
+ h.$slots.brand ? (t(), a("div", pt, [
3512
+ _(h.$slots, "brand")
3517
3513
  ])) : S("", !0),
3518
3514
  m("div", mt, [
3519
3515
  m("div", {
3520
- class: s(f.value)
3516
+ class: n(f.value)
3521
3517
  }, [
3522
3518
  (t(!0), a(E, null, K(d.items, (k) => (t(), a(E, {
3523
3519
  key: k.label
3524
3520
  }, [
3525
3521
  k.children && k.children.length > 0 ? (t(), a("div", ft, [
3526
- (t(), W(Q(g(k)), O({ ref_for: !0 }, n(k), {
3522
+ (t(), W(Q(g(k)), O({ ref_for: !0 }, l(k), {
3527
3523
  class: V.value(k, !0)
3528
3524
  }), {
3529
- default: A(() => [
3525
+ default: I(() => [
3530
3526
  k.icon ? (t(), a("i", {
3531
3527
  key: 0,
3532
- class: s([k.icon, "dk:mr-2"])
3528
+ class: n([k.icon, "dk:mr-2"])
3533
3529
  }, null, 2)) : S("", !0),
3534
3530
  P(" " + j(k.label) + " ", 1),
3535
3531
  C[0] || (C[0] = m("svg", {
@@ -3551,11 +3547,11 @@ const st = {
3551
3547
  m("div", gt, [
3552
3548
  (t(!0), a(E, null, K(k.children, (u) => (t(), W(Q(g(u)), O({
3553
3549
  key: u.label
3554
- }, { ref_for: !0 }, n(u), { class: y.value }), {
3555
- default: A(() => [
3550
+ }, { ref_for: !0 }, l(u), { class: y.value }), {
3551
+ default: I(() => [
3556
3552
  u.icon ? (t(), a("i", {
3557
3553
  key: 0,
3558
- class: s([u.icon, "dk:mr-2"])
3554
+ class: n([u.icon, "dk:mr-2"])
3559
3555
  }, null, 2)) : S("", !0),
3560
3556
  P(" " + j(u.label), 1)
3561
3557
  ]),
@@ -3565,13 +3561,13 @@ const st = {
3565
3561
  ])) : (t(), W(Q(g(k)), O({
3566
3562
  key: 1,
3567
3563
  ref_for: !0
3568
- }, n(k), {
3564
+ }, l(k), {
3569
3565
  class: V.value(k, !1)
3570
3566
  }), {
3571
- default: A(() => [
3567
+ default: I(() => [
3572
3568
  k.icon ? (t(), a("i", {
3573
3569
  key: 0,
3574
- class: s([k.icon, "dk:mr-2"])
3570
+ class: n([k.icon, "dk:mr-2"])
3575
3571
  }, null, 2)) : S("", !0),
3576
3572
  P(" " + j(k.label), 1)
3577
3573
  ]),
@@ -3580,15 +3576,15 @@ const st = {
3580
3576
  ], 64))), 128))
3581
3577
  ], 2)
3582
3578
  ]),
3583
- x.$slots.actions ? (t(), a("div", xt, [
3584
- _(x.$slots, "actions")
3579
+ h.$slots.actions ? (t(), a("div", ht, [
3580
+ _(h.$slots, "actions")
3585
3581
  ])) : S("", !0),
3586
3582
  m("button", {
3587
3583
  type: "button",
3588
3584
  onClick: w,
3589
3585
  class: "dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"
3590
3586
  }, [
3591
- (t(), a("svg", ht, [
3587
+ (t(), a("svg", xt, [
3592
3588
  m("path", {
3593
3589
  "stroke-linecap": "round",
3594
3590
  "stroke-linejoin": "round",
@@ -3597,7 +3593,7 @@ const st = {
3597
3593
  }, null, 8, vt)
3598
3594
  ]))
3599
3595
  ]),
3600
- xe(m("div", yt, [
3596
+ he(m("div", yt, [
3601
3597
  m("div", wt, [
3602
3598
  (t(!0), a(E, null, K(d.items, (k) => (t(), a(E, {
3603
3599
  key: k.label
@@ -3606,17 +3602,17 @@ const st = {
3606
3602
  m("button", {
3607
3603
  type: "button",
3608
3604
  onClick: (u) => p(k.label),
3609
- class: s([c.value, "dk:justify-between"])
3605
+ class: n([c.value, "dk:justify-between"])
3610
3606
  }, [
3611
3607
  m("div", $t, [
3612
3608
  k.icon ? (t(), a("i", {
3613
3609
  key: 0,
3614
- class: s([k.icon, "dk:mr-2"])
3610
+ class: n([k.icon, "dk:mr-2"])
3615
3611
  }, null, 2)) : S("", !0),
3616
3612
  P(" " + j(k.label), 1)
3617
3613
  ]),
3618
3614
  (t(), a("svg", {
3619
- class: s(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", l[k.label] ? "dk:rotate-180" : ""]),
3615
+ class: n(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", s[k.label] ? "dk:rotate-180" : ""]),
3620
3616
  fill: "none",
3621
3617
  stroke: "currentColor",
3622
3618
  viewBox: "0 0 24 24"
@@ -3629,48 +3625,48 @@ const st = {
3629
3625
  }, null, -1)
3630
3626
  ])], 2))
3631
3627
  ], 10, Ct),
3632
- xe(m("div", St, [
3628
+ he(m("div", St, [
3633
3629
  (t(!0), a(E, null, K(k.children, (u) => (t(), W(Q(g(u)), O({
3634
3630
  key: u.label
3635
- }, { ref_for: !0 }, n(u), {
3631
+ }, { ref_for: !0 }, l(u), {
3636
3632
  class: i.value,
3637
- onClick: h
3633
+ onClick: x
3638
3634
  }), {
3639
- default: A(() => [
3635
+ default: I(() => [
3640
3636
  u.icon ? (t(), a("i", {
3641
3637
  key: 0,
3642
- class: s([u.icon, "dk:mr-2"])
3638
+ class: n([u.icon, "dk:mr-2"])
3643
3639
  }, null, 2)) : S("", !0),
3644
3640
  P(" " + j(u.label), 1)
3645
3641
  ]),
3646
3642
  _: 2
3647
3643
  }, 1040, ["class"]))), 128))
3648
3644
  ], 512), [
3649
- [he, l[k.label]]
3645
+ [xe, s[k.label]]
3650
3646
  ])
3651
3647
  ])) : (t(), W(Q(g(k)), O({
3652
3648
  key: 1,
3653
3649
  ref_for: !0
3654
- }, n(k), {
3650
+ }, l(k), {
3655
3651
  class: c.value,
3656
- onClick: h
3652
+ onClick: x
3657
3653
  }), {
3658
- default: A(() => [
3654
+ default: I(() => [
3659
3655
  k.icon ? (t(), a("i", {
3660
3656
  key: 0,
3661
- class: s([k.icon, "dk:mr-2"])
3657
+ class: n([k.icon, "dk:mr-2"])
3662
3658
  }, null, 2)) : S("", !0),
3663
3659
  P(" " + j(k.label), 1)
3664
3660
  ]),
3665
3661
  _: 2
3666
3662
  }, 1040, ["class"]))
3667
3663
  ], 64))), 128)),
3668
- x.$slots.actions ? (t(), a("div", jt, [
3669
- _(x.$slots, "actions")
3664
+ h.$slots.actions ? (t(), a("div", jt, [
3665
+ _(h.$slots, "actions")
3670
3666
  ])) : S("", !0)
3671
3667
  ])
3672
3668
  ], 512), [
3673
- [he, e.value]
3669
+ [xe, e.value]
3674
3670
  ])
3675
3671
  ], 2));
3676
3672
  }
@@ -3678,7 +3674,7 @@ const st = {
3678
3674
  export {
3679
3675
  Ut as DuiAccordion,
3680
3676
  Wt as DuiAction,
3681
- At as DuiAlert,
3677
+ It as DuiAlert,
3682
3678
  qt as DuiBadge,
3683
3679
  oe as DuiButton,
3684
3680
  Ot as DuiCard,
@@ -3689,7 +3685,7 @@ export {
3689
3685
  Qt as DuiDropdownItem,
3690
3686
  Gt as DuiDropdownSeparator,
3691
3687
  Bt as DuiFile,
3692
- It as DuiForm,
3688
+ At as DuiForm,
3693
3689
  Dt as DuiInput,
3694
3690
  _t as DuiLabel,
3695
3691
  Ft as DuiModal,