@dronico/droni-kit 1.12.3 → 1.12.4

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,20 +1,20 @@
1
- import { getCurrentInstance as I, defineComponent as j, computed as c, createBlock as V, openBlock as d, resolveDynamicComponent as D, mergeProps as C, withCtx as T, renderSlot as _, createElementBlock as t, createCommentVNode as m, toDisplayString as z, Fragment as $, renderList as B, ref as q, normalizeClass as h, createElementVNode as p, withDirectives as R, createTextVNode as S, vShow as A, reactive as E } from "vue";
2
- function F() {
1
+ import { getCurrentInstance as O, defineComponent as B, computed as p, createBlock as D, openBlock as d, resolveDynamicComponent as V, mergeProps as C, withCtx as T, renderSlot as j, createElementBlock as t, createCommentVNode as m, toDisplayString as z, Fragment as _, renderList as M, ref as W, normalizeClass as x, createElementVNode as g, withDirectives as L, createTextVNode as $, vShow as R, reactive as q } from "vue";
2
+ function E() {
3
3
  try {
4
- const r = I(), e = r == null ? void 0 : r.appContext.app;
4
+ const r = O(), e = r == null ? void 0 : r.appContext.app;
5
5
  return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
6
6
  } catch {
7
7
  return !1;
8
8
  }
9
9
  }
10
- function O(r, e = !1) {
11
- return r ? e ? "NuxtLink" : F() ? "RouterLink" : "a" : "button";
10
+ function A(r, e = !1) {
11
+ return r ? e ? "NuxtLink" : E() ? "RouterLink" : "a" : "button";
12
12
  }
13
- function W(r, e, o = {}) {
14
- const a = { ...o };
15
- return e === "a" ? (a.href = typeof r == "string" ? r : "#", a.role = "button") : e !== "button" && e !== "span" && (a.to = r), a;
13
+ function I(r, e, k = {}) {
14
+ const n = { ...k };
15
+ return e === "a" ? (n.href = typeof r == "string" ? r : "#", n.role = "button") : e !== "button" && e !== "span" && (n.to = r), n;
16
16
  }
17
- const H = { key: 1 }, G = `
17
+ const F = { key: 1 }, H = `
18
18
  dk:transition
19
19
  dk:text-center
20
20
  dk:disabled:opacity-50
@@ -25,7 +25,7 @@ const H = { key: 1 }, G = `
25
25
  dk:text-ellipsis
26
26
  dk:whitespace-nowrap
27
27
  dk:active:scale-95
28
- dk:max-w-full`, $e = /* @__PURE__ */ j({
28
+ dk:max-w-full`, Se = /* @__PURE__ */ B({
29
29
  __name: "DuiButton",
30
30
  props: {
31
31
  variant: { default: "solid" },
@@ -41,21 +41,21 @@ const H = { key: 1 }, G = `
41
41
  nuxt: { type: Boolean, default: !1 }
42
42
  },
43
43
  setup(r) {
44
- const e = r, o = c(() => O(e.to, e.nuxt)), a = c(() => {
45
- const n = {};
46
- return o.value === "button" && (n.type = e.type), W(e.to, o.value, n);
47
- }), l = {
44
+ const e = r, k = p(() => A(e.to, e.nuxt)), n = p(() => {
45
+ const a = {};
46
+ return k.value === "button" && (a.type = e.type), I(e.to, k.value, a);
47
+ }), s = {
48
48
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
49
49
  md: "dk:text-base dk:px-4 dk:py-2",
50
50
  lg: "dk:text-lg dk:px-5 dk:py-3"
51
- }, g = {
51
+ }, l = {
52
52
  all: "dk:rounded",
53
53
  top: "dk:rounded-t",
54
54
  bottom: "dk:rounded-b",
55
55
  left: "dk:rounded-l",
56
56
  right: "dk:rounded-r",
57
57
  none: "dk:rounded-none"
58
- }, b = {
58
+ }, c = {
59
59
  solid: {
60
60
  base: "dk:border-b",
61
61
  neutral: `
@@ -227,23 +227,23 @@ const H = { key: 1 }, G = `
227
227
  dk:dark:text-amber-100
228
228
  dk:dark:hover:bg-amber-800`
229
229
  }
230
- }, y = c(() => {
230
+ }, y = p(() => {
231
231
  var f;
232
- const n = (((f = b[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + b[e.variant].base, v = l[e.size] || "", s = e.block ? "dk:w-full" : "", u = g[e.rounded] || "";
233
- return [G, n, v, s, u].join(" ");
232
+ const a = (((f = c[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + c[e.variant].base, h = s[e.size] || "", o = e.block ? "dk:w-full" : "", i = l[e.rounded] || "";
233
+ return [H, a, h, o, i].join(" ");
234
234
  });
235
- return (n, v) => (d(), V(D(o.value), C(a.value, {
235
+ return (a, h) => (d(), D(V(k.value), C(n.value, {
236
236
  class: y.value,
237
237
  title: e.title,
238
238
  disabled: e.disabled || e.loading
239
239
  }), {
240
240
  default: T(() => [
241
- e.loading ? (d(), t("span", H, "Cargando...")) : _(n.$slots, "default", { key: 0 })
241
+ e.loading ? (d(), t("span", F, "Cargando...")) : j(a.$slots, "default", { key: 0 })
242
242
  ]),
243
243
  _: 3
244
244
  }, 16, ["class", "title", "disabled"]));
245
245
  }
246
- }), J = ["value"], K = `
246
+ }), G = ["value"], J = `
247
247
  dk:border-b
248
248
  dk:border-zinc-300
249
249
  dk:bg-zinc-50
@@ -255,7 +255,7 @@ const H = { key: 1 }, G = `
255
255
  dk:dark:bg-zinc-800
256
256
  dk:dark:text-zinc-100
257
257
  dk:dark:focus:bg-zinc-700
258
- dk:dark:[color-scheme:dark]`, _e = /* @__PURE__ */ j({
258
+ dk:dark:[color-scheme:dark]`, $e = /* @__PURE__ */ B({
259
259
  inheritAttrs: !1,
260
260
  __name: "DuiInput",
261
261
  props: {
@@ -278,32 +278,32 @@ const H = { key: 1 }, G = `
278
278
  },
279
279
  emits: ["update:modelValue"],
280
280
  setup(r, { emit: e }) {
281
- const o = r, a = e;
282
- function l(n) {
283
- const v = n.target;
284
- a("update:modelValue", v.value);
281
+ const k = r, n = e;
282
+ function s(a) {
283
+ const h = a.target;
284
+ n("update:modelValue", h.value);
285
285
  }
286
- const g = {
286
+ const l = {
287
287
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
288
288
  md: "dk:text-base dk:px-4 dk:py-2",
289
289
  lg: "dk:text-lg dk:px-5 dk:py-3"
290
- }, b = {
290
+ }, c = {
291
291
  all: "dk:rounded",
292
292
  top: "dk:rounded-t",
293
293
  bottom: "dk:rounded-b",
294
294
  left: "dk:rounded-l",
295
295
  right: "dk:rounded-r",
296
296
  none: "dk:rounded-none"
297
- }, y = c(() => {
298
- const n = g[o.size] || "", v = o.block ? "dk:w-full" : "", s = b[o.rounded] || "";
299
- return [K, n, v, s].join(" ");
297
+ }, y = p(() => {
298
+ const a = l[k.size] || "", h = k.block ? "dk:w-full" : "", o = c[k.rounded] || "";
299
+ return [J, a, h, o].join(" ");
300
300
  });
301
- return (n, v) => (d(), t("input", C({
301
+ return (a, h) => (d(), t("input", C({
302
302
  class: y.value,
303
303
  value: r.modelValue
304
- }, n.$attrs, { onInput: l }), null, 16, J));
304
+ }, a.$attrs, { onInput: s }), null, 16, G));
305
305
  }
306
- }), Q = ["value"], U = `
306
+ }), K = ["value"], Q = `
307
307
  dk:border-b
308
308
  dk:border-zinc-300
309
309
  dk:bg-zinc-50
@@ -315,7 +315,7 @@ const H = { key: 1 }, G = `
315
315
  dk:dark:bg-zinc-800
316
316
  dk:dark:text-zinc-100
317
317
  dk:dark:focus:bg-zinc-700
318
- dk:dark:[color-scheme:dark]`, je = /* @__PURE__ */ j({
318
+ dk:dark:[color-scheme:dark]`, _e = /* @__PURE__ */ B({
319
319
  inheritAttrs: !1,
320
320
  __name: "DuiTextarea",
321
321
  props: {
@@ -346,16 +346,16 @@ const H = { key: 1 }, G = `
346
346
  },
347
347
  emits: ["update:modelValue"],
348
348
  setup(r, { emit: e }) {
349
- const o = r, a = e;
350
- function l(s) {
351
- const u = s.target;
352
- o.autoheight && v(u), a("update:modelValue", u.value);
349
+ const k = r, n = e;
350
+ function s(o) {
351
+ const i = o.target;
352
+ k.autoheight && h(i), n("update:modelValue", i.value);
353
353
  }
354
- const g = {
354
+ const l = {
355
355
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
356
356
  md: "dk:text-base dk:px-3 dk:py-2",
357
357
  lg: "dk:text-lg dk:px-5 dk:py-3"
358
- }, b = {
358
+ }, c = {
359
359
  all: "dk:rounded",
360
360
  top: "dk:rounded-t",
361
361
  bottom: "dk:rounded-b",
@@ -367,24 +367,24 @@ const H = { key: 1 }, G = `
367
367
  both: "dk:resize",
368
368
  horizontal: "dk:resize-x",
369
369
  vertical: "dk:resize-y"
370
- }, n = c(() => {
371
- const s = g[o.size] || "", u = o.block ? "dk:w-full" : "", f = b[o.rounded] || "", N = y[o.resize] || "";
372
- return [U, s, u, f, N].join(" ");
373
- }), v = (s) => {
374
- s.style.height = "auto", s.style.height = `${s.scrollHeight + 5}px`;
370
+ }, a = p(() => {
371
+ const o = l[k.size] || "", i = k.block ? "dk:w-full" : "", f = c[k.rounded] || "", P = y[k.resize] || "";
372
+ return [Q, o, i, f, P].join(" ");
373
+ }), h = (o) => {
374
+ o.style.height = "auto", o.style.height = `${o.scrollHeight + 5}px`;
375
375
  };
376
- return (s, u) => (d(), t("textarea", C(s.$attrs, {
377
- class: n.value,
376
+ return (o, i) => (d(), t("textarea", C(o.$attrs, {
377
+ class: a.value,
378
378
  value: r.modelValue,
379
- onInput: l
380
- }), null, 16, Q));
379
+ onInput: s
380
+ }), null, 16, K));
381
381
  }
382
- }), X = {
382
+ }), U = {
383
383
  key: 0,
384
384
  disabled: "",
385
385
  selected: "",
386
386
  hidden: ""
387
- }, Y = ["value", "selected"], Z = `
387
+ }, X = ["value", "selected"], Y = `
388
388
  dk:border-b
389
389
  dk:border-zinc-300
390
390
  dk:bg-zinc-50
@@ -397,7 +397,7 @@ const H = { key: 1 }, G = `
397
397
  dk:dark:text-zinc-100
398
398
  dk:dark:focus:bg-zinc-700
399
399
  dk:dark:[color-scheme:dark]
400
- `, Ve = /* @__PURE__ */ j({
400
+ `, je = /* @__PURE__ */ B({
401
401
  inheritAttrs: !1,
402
402
  __name: "DuiSelect",
403
403
  props: {
@@ -436,42 +436,42 @@ const H = { key: 1 }, G = `
436
436
  },
437
437
  emits: ["update:modelValue"],
438
438
  setup(r, { emit: e }) {
439
- const o = r, a = e;
440
- function l(n) {
441
- const s = n.target.value, u = Number(s);
442
- !isNaN(u) && s !== "" ? a("update:modelValue", u) : a("update:modelValue", s);
439
+ const k = r, n = e;
440
+ function s(a) {
441
+ const o = a.target.value, i = Number(o);
442
+ !isNaN(i) && o !== "" ? n("update:modelValue", i) : n("update:modelValue", o);
443
443
  }
444
- const g = {
444
+ const l = {
445
445
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
446
446
  md: "dk:text-base dk:px-4 dk:py-2",
447
447
  lg: "dk:text-lg dk:px-5 dk:py-3"
448
- }, b = {
448
+ }, c = {
449
449
  all: "dk:rounded",
450
450
  top: "dk:rounded-t",
451
451
  bottom: "dk:rounded-b",
452
452
  left: "dk:rounded-l",
453
453
  right: "dk:rounded-r",
454
454
  none: "dk:rounded-none"
455
- }, y = c(() => {
456
- const n = g[o.size] || "", v = o.block ? "dk:w-full" : "", s = b[o.rounded] || "";
457
- return [Z, n, v, s].join(" ");
455
+ }, y = p(() => {
456
+ const a = l[k.size] || "", h = k.block ? "dk:w-full" : "", o = c[k.rounded] || "";
457
+ return [Y, a, h, o].join(" ");
458
458
  });
459
- return (n, v) => (d(), t("select", C(n.$attrs, {
459
+ return (a, h) => (d(), t("select", C(a.$attrs, {
460
460
  class: y.value,
461
- onChange: l
461
+ onChange: s
462
462
  }), [
463
- r.placeholder ? (d(), t("option", X, z(r.placeholder), 1)) : m("", !0),
464
- (d(!0), t($, null, B(r.options, (s, u) => (d(), t("option", {
465
- key: u,
466
- value: s[r.itemValue] ?? "",
467
- selected: s[r.itemValue] == r.modelValue
468
- }, z(s[r.itemLabel] ?? ""), 9, Y))), 128))
463
+ r.placeholder ? (d(), t("option", U, z(r.placeholder), 1)) : m("", !0),
464
+ (d(!0), t(_, null, M(r.options, (o, i) => (d(), t("option", {
465
+ key: i,
466
+ value: o[r.itemValue] ?? "",
467
+ selected: o[r.itemValue] == r.modelValue
468
+ }, z(o[r.itemLabel] ?? ""), 9, X))), 128))
469
469
  ], 16));
470
470
  }
471
- }), ee = {
471
+ }), Z = {
472
472
  key: 1,
473
473
  class: "dk:text-rose-500 dk:ml-1"
474
- }, de = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, re = "dk:space-y-1", te = /* @__PURE__ */ j({
474
+ }, ee = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, de = "dk:space-y-1", re = /* @__PURE__ */ B({
475
475
  __name: "DuiLabel",
476
476
  props: {
477
477
  title: {
@@ -500,74 +500,74 @@ const H = { key: 1 }, G = `
500
500
  }
501
501
  },
502
502
  setup(r) {
503
- const e = q(!1), o = r, a = {
503
+ const e = W(!1), k = r, n = {
504
504
  s: "dk:text-sm",
505
505
  m: "dk:text-base",
506
506
  l: "dk:text-lg"
507
- }, l = {
507
+ }, s = {
508
508
  s: "dk:mt-1",
509
509
  m: "dk:mt-1.5",
510
510
  l: "dk:mt-2"
511
- }, g = {
511
+ }, l = {
512
512
  s: "dk:text-xs",
513
513
  m: "dk:text-sm",
514
514
  l: "dk:text-base"
515
- }, b = c(() => [re].join(" ")), y = c(() => {
516
- const s = a[o.size] || a.m, u = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", f = o.helpText ? "dk:cursor-help" : "";
517
- return [u, s, f].join(" ");
518
- }), n = c(() => [l[o.size] || l.m].join(" ")), v = c(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", g[o.size] || g.m].join(" "));
519
- return (s, u) => (d(), t("label", {
520
- class: h(b.value)
515
+ }, c = p(() => [de].join(" ")), y = p(() => {
516
+ const o = n[k.size] || n.m, i = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", f = k.helpText ? "dk:cursor-help" : "";
517
+ return [i, o, f].join(" ");
518
+ }), a = p(() => [s[k.size] || s.m].join(" ")), h = p(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", l[k.size] || l.m].join(" "));
519
+ return (o, i) => (d(), t("label", {
520
+ class: x(c.value)
521
521
  }, [
522
522
  r.title ? (d(), t("div", {
523
523
  key: 0,
524
524
  class: "dk:relative",
525
- onMouseenter: u[0] || (u[0] = (f) => e.value = !!r.helpText),
526
- onMouseleave: u[1] || (u[1] = (f) => e.value = !1)
525
+ onMouseenter: i[0] || (i[0] = (f) => e.value = !!r.helpText),
526
+ onMouseleave: i[1] || (i[1] = (f) => e.value = !1)
527
527
  }, [
528
- p("div", {
529
- class: h(y.value)
528
+ g("div", {
529
+ class: x(y.value)
530
530
  }, [
531
531
  r.icon ? (d(), t("i", {
532
532
  key: 0,
533
- class: h([r.icon, "dk:mr-2"])
533
+ class: x([r.icon, "dk:mr-2"])
534
534
  }, null, 2)) : m("", !0),
535
- S(" " + z(r.title) + " ", 1),
536
- r.required ? (d(), t("span", ee, "*")) : m("", !0)
535
+ $(" " + z(r.title) + " ", 1),
536
+ r.required ? (d(), t("span", Z, "*")) : m("", !0)
537
537
  ], 2),
538
- R(p("div", de, [
539
- S(z(r.helpText) + " ", 1),
540
- u[2] || (u[2] = p("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
538
+ L(g("div", ee, [
539
+ $(z(r.helpText) + " ", 1),
540
+ i[2] || (i[2] = g("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
541
541
  ], 512), [
542
- [A, e.value && r.helpText]
542
+ [R, e.value && r.helpText]
543
543
  ])
544
544
  ], 32)) : m("", !0),
545
- p("div", {
546
- class: h(n.value)
545
+ g("div", {
546
+ class: x(a.value)
547
547
  }, [
548
- _(s.$slots, "default", {}, void 0, !0)
548
+ j(o.$slots, "default", {}, void 0, !0)
549
549
  ], 2),
550
550
  r.error ? (d(), t("div", {
551
551
  key: 1,
552
- class: h(v.value)
552
+ class: x(h.value)
553
553
  }, [
554
- u[3] || (u[3] = p("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)),
555
- S(" " + z(r.error), 1)
554
+ i[3] || (i[3] = g("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)),
555
+ $(" " + z(r.error), 1)
556
556
  ], 2)) : m("", !0)
557
557
  ], 2));
558
558
  }
559
- }), oe = (r, e) => {
560
- const o = r.__vccOpts || r;
561
- for (const [a, l] of e)
562
- o[a] = l;
563
- return o;
564
- }, De = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-aa6b6cdc"]]), ke = `
559
+ }), te = (r, e) => {
560
+ const k = r.__vccOpts || r;
561
+ for (const [n, s] of e)
562
+ k[n] = s;
563
+ return k;
564
+ }, Be = /* @__PURE__ */ te(re, [["__scopeId", "data-v-aa6b6cdc"]]), ke = `
565
565
  dk:px-4
566
566
  dk:py-3
567
567
  dk:text-sm
568
568
  dk:leading-relaxed
569
569
  dk:max-w-full
570
- `, Te = /* @__PURE__ */ j({
570
+ `, De = /* @__PURE__ */ B({
571
571
  __name: "DuiAlert",
572
572
  props: {
573
573
  variant: {
@@ -584,14 +584,14 @@ const H = { key: 1 }, G = `
584
584
  }
585
585
  },
586
586
  setup(r) {
587
- const e = r, o = {
587
+ const e = r, k = {
588
588
  all: "dk:rounded",
589
589
  top: "dk:rounded-t",
590
590
  bottom: "dk:rounded-b",
591
591
  left: "dk:rounded-l",
592
592
  right: "dk:rounded-r",
593
593
  none: "dk:rounded-none"
594
- }, a = {
594
+ }, n = {
595
595
  solid: {
596
596
  base: "",
597
597
  neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
@@ -619,19 +619,19 @@ const H = { key: 1 }, G = `
619
619
  warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
620
620
  danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
621
621
  }
622
- }, l = c(() => {
623
- var n;
624
- const g = ((n = a[e.variant]) == null ? void 0 : n[e.color]) || "", b = a[e.variant].base || "", y = o[e.rounded] || "";
625
- return [ke, b, g, y].join(" ");
622
+ }, s = p(() => {
623
+ var a;
624
+ const l = ((a = n[e.variant]) == null ? void 0 : a[e.color]) || "", c = n[e.variant].base || "", y = k[e.rounded] || "";
625
+ return [ke, c, l, y].join(" ");
626
626
  });
627
- return (g, b) => (d(), t("div", {
628
- class: h(l.value),
627
+ return (l, c) => (d(), t("div", {
628
+ class: x(s.value),
629
629
  role: "alert"
630
630
  }, [
631
- _(g.$slots, "default")
631
+ j(l.$slots, "default")
632
632
  ], 2));
633
633
  }
634
- }), ae = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, se = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, ne = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Be = /* @__PURE__ */ j({
634
+ }), oe = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, ae = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, se = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Ve = /* @__PURE__ */ B({
635
635
  __name: "DuiTable",
636
636
  props: {
637
637
  columns: {
@@ -645,27 +645,27 @@ const H = { key: 1 }, G = `
645
645
  },
646
646
  setup(r) {
647
647
  const e = r;
648
- return (o, a) => (d(), t("div", ae, [
649
- p("table", se, [
650
- p("thead", ne, [
651
- p("tr", null, [
652
- (d(!0), t($, null, B(e.columns, (l) => (d(), t("th", {
653
- key: l.name,
654
- class: h(["dk:px-6 dk:py-3", l.classes])
655
- }, z(l.label), 3))), 128))
648
+ return (k, n) => (d(), t("div", oe, [
649
+ g("table", ae, [
650
+ g("thead", se, [
651
+ g("tr", null, [
652
+ (d(!0), t(_, null, M(e.columns, (s) => (d(), t("th", {
653
+ key: s.name,
654
+ class: x(["dk:px-6 dk:py-3", s.classes])
655
+ }, z(s.label), 3))), 128))
656
656
  ])
657
657
  ]),
658
- p("tbody", null, [
659
- (d(!0), t($, null, B(e.rows, (l, g) => (d(), t("tr", {
660
- key: g,
658
+ g("tbody", null, [
659
+ (d(!0), t(_, null, M(e.rows, (s, l) => (d(), t("tr", {
660
+ key: l,
661
661
  class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
662
662
  }, [
663
- (d(!0), t($, null, B(e.columns, (b) => (d(), t("td", {
664
- key: b.name,
663
+ (d(!0), t(_, null, M(e.columns, (c) => (d(), t("td", {
664
+ key: c.name,
665
665
  class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
666
666
  }, [
667
- _(o.$slots, b.name, C({ ref_for: !0 }, l), () => [
668
- S(z(l[b.name]), 1)
667
+ j(k.$slots, c.name, C({ ref_for: !0 }, s), () => [
668
+ $(z(s[c.name]), 1)
669
669
  ])
670
670
  ]))), 128))
671
671
  ]))), 128))
@@ -673,7 +673,7 @@ const H = { key: 1 }, G = `
673
673
  ])
674
674
  ]));
675
675
  }
676
- }), le = { key: 1 }, ie = `
676
+ }), ne = { key: 1 }, le = `
677
677
  dk:transition
678
678
  dk:text-center
679
679
  dk:disabled:opacity-50
@@ -684,7 +684,7 @@ const H = { key: 1 }, G = `
684
684
  dk:text-ellipsis
685
685
  dk:whitespace-nowrap
686
686
  dk:active:scale-95
687
- dk:max-w-full`, Le = /* @__PURE__ */ j({
687
+ dk:max-w-full`, Te = /* @__PURE__ */ B({
688
688
  __name: "DuiAction",
689
689
  props: {
690
690
  variant: { default: "solid" },
@@ -698,18 +698,18 @@ const H = { key: 1 }, G = `
698
698
  nuxt: { type: Boolean, default: !1 }
699
699
  },
700
700
  setup(r) {
701
- const e = r, o = c(() => e.to ? O(e.to, e.nuxt) : "span"), a = c(() => W(e.to, o.value)), l = {
701
+ const e = r, k = p(() => e.to ? A(e.to, e.nuxt) : "span"), n = p(() => I(e.to, k.value)), s = {
702
702
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
703
703
  md: "dk:text-base dk:px-4 dk:py-2",
704
704
  lg: "dk:text-lg dk:px-5 dk:py-3"
705
- }, g = {
705
+ }, l = {
706
706
  all: "dk:rounded",
707
707
  top: "dk:rounded-t",
708
708
  bottom: "dk:rounded-b",
709
709
  left: "dk:rounded-l",
710
710
  right: "dk:rounded-r",
711
711
  none: "dk:rounded-none"
712
- }, b = {
712
+ }, c = {
713
713
  solid: {
714
714
  base: "dk:border-b",
715
715
  neutral: `
@@ -881,52 +881,39 @@ const H = { key: 1 }, G = `
881
881
  dk:dark:text-amber-100
882
882
  dk:dark:hover:bg-amber-800`
883
883
  }
884
- }, y = c(() => {
884
+ }, y = p(() => {
885
885
  var f;
886
- const n = (((f = b[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + b[e.variant].base, v = l[e.size] || "", s = e.block ? "dk:block" : "dk:inline-block", u = g[e.rounded] || "";
887
- return [ie, n, v, s, u].join(" ");
886
+ const a = (((f = c[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + c[e.variant].base, h = s[e.size] || "", o = e.block ? "dk:block" : "dk:inline-block", i = l[e.rounded] || "";
887
+ return [le, a, h, o, i].join(" ");
888
888
  });
889
- return (n, v) => (d(), V(D(o.value), C(a.value, {
889
+ return (a, h) => (d(), D(V(k.value), C(n.value, {
890
890
  class: y.value,
891
891
  title: e.title
892
892
  }), {
893
893
  default: T(() => [
894
- e.loading ? (d(), t("span", le, "Cargando...")) : _(n.$slots, "default", { key: 0 })
894
+ e.loading ? (d(), t("span", ne, "Cargando...")) : j(a.$slots, "default", { key: 0 })
895
895
  ]),
896
896
  _: 3
897
897
  }, 16, ["class", "title"]));
898
898
  }
899
- }), ue = {
899
+ }), ie = {
900
900
  key: 0,
901
901
  class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
902
- }, ce = ["src", "alt"], Ne = /* @__PURE__ */ j({
902
+ }, ue = ["src", "alt"], Me = /* @__PURE__ */ B({
903
903
  __name: "DuiCard",
904
904
  props: {
905
905
  size: { default: "m" },
906
906
  image: { default: void 0 },
907
907
  title: { default: void 0 },
908
908
  subtitle: { default: void 0 },
909
- to: { default: void 0 }
909
+ to: { default: void 0 },
910
+ nuxt: { type: Boolean, default: !1 }
910
911
  },
911
912
  setup(r) {
912
- const e = r, o = I(), a = o == null ? void 0 : o.appContext.app, l = c(() => {
913
- try {
914
- return !!(a != null && a.config.globalProperties.$router || a != null && a.config.globalProperties.$route || globalThis.VueRouter || a != null && a.component("RouterLink"));
915
- } catch {
916
- return !1;
917
- }
918
- }), g = c(() => {
919
- try {
920
- return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || a != null && a.component("NuxtLink"));
921
- } catch {
922
- return !1;
923
- }
924
- }), b = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "div", y = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "h3", n = () => {
925
- const k = {};
926
- if (!e.to) return k;
927
- const L = b();
928
- return L === "a" ? k.href = typeof e.to == "string" ? e.to : "#" : (L === "RouterLink" || L === "NuxtLink") && (k.to = e.to), k;
929
- }, v = {
913
+ const e = r, k = () => e.to ? A(e.to, e.nuxt) : "div", n = () => e.to ? A(e.to, e.nuxt) : "h3", s = () => {
914
+ const v = k();
915
+ return I(e.to, v);
916
+ }, l = {
930
917
  s: {
931
918
  padding: "dk:p-3",
932
919
  spacing: "dk:space-y-2",
@@ -948,112 +935,112 @@ const H = { key: 1 }, G = `
948
935
  subtitleSize: "dk:text-lg",
949
936
  contentSize: "dk:text-lg"
950
937
  }
951
- }, s = c(() => [
938
+ }, c = p(() => [
952
939
  // Base card styles
953
940
  "dk:bg-white dk:rounded-lg dk:shadow-md dk:border dk:border-gray-200",
954
941
  "dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:dark:shadow-gray-900/20",
955
942
  "dk:transition-all dk:duration-200",
956
943
  "dk:hover:shadow-lg dk:dark:hover:shadow-gray-900/40",
957
944
  "dk:overflow-hidden"
958
- ].join(" ")), u = c(() => [
945
+ ].join(" ")), y = p(() => [
959
946
  "dk:w-full dk:h-48 dk:object-cover"
960
- ].join(" ")), f = c(() => {
961
- const k = v[e.size];
947
+ ].join(" ")), a = p(() => {
948
+ const v = l[e.size];
962
949
  return [
963
- k.padding,
964
- k.spacing
950
+ v.padding,
951
+ v.spacing
965
952
  ].join(" ");
966
- }), N = c(() => [
967
- v[e.size].spacing
968
- ].join(" ")), P = c(() => {
969
- const L = [
970
- v[e.size].titleSize,
953
+ }), h = p(() => [
954
+ l[e.size].spacing
955
+ ].join(" ")), o = p(() => {
956
+ const b = [
957
+ l[e.size].titleSize,
971
958
  "dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
972
959
  "dk:line-clamp-2"
973
960
  ];
974
- return e.to && L.push(
961
+ return e.to && b.push(
975
962
  "dk:no-underline dk:hover:underline dk:transition-colors",
976
963
  "dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
977
- ), L.join(" ");
978
- }), M = c(() => {
979
- const k = [
964
+ ), b.join(" ");
965
+ }), i = p(() => {
966
+ const v = [
980
967
  "dk:block",
981
968
  "dk:transition-transform dk:duration-200",
982
969
  "dk:hover:scale-105"
983
970
  ];
984
- return e.to && k.push("dk:no-underline"), k.join(" ");
985
- }), x = c(() => [
986
- v[e.size].subtitleSize,
971
+ return e.to && v.push("dk:no-underline"), v.join(" ");
972
+ }), f = p(() => [
973
+ l[e.size].subtitleSize,
987
974
  "dk:text-gray-600 dk:dark:text-gray-400",
988
975
  "dk:line-clamp-3"
989
- ].join(" ")), w = c(() => [
990
- v[e.size].contentSize,
976
+ ].join(" ")), P = p(() => [
977
+ l[e.size].contentSize,
991
978
  "dk:text-gray-700 dk:dark:text-gray-300"
992
- ].join(" ")), i = c(() => [
979
+ ].join(" ")), N = p(() => [
993
980
  "dk:border-t dk:border-gray-200 dk:dark:border-gray-700",
994
981
  "dk:pt-3 dk:mt-3"
995
982
  ].join(" "));
996
- return (k, L) => (d(), t("div", {
997
- class: h(s.value)
983
+ return (v, b) => (d(), t("div", {
984
+ class: x(c.value)
998
985
  }, [
999
- k.image ? (d(), t("div", ue, [
1000
- (d(), V(D(b()), C(n(), { class: M.value }), {
986
+ v.image ? (d(), t("div", ie, [
987
+ (d(), D(V(k()), C(s(), { class: i.value }), {
1001
988
  default: T(() => [
1002
- p("img", {
1003
- src: k.image,
1004
- alt: k.title || "Card image",
1005
- class: h(u.value)
1006
- }, null, 10, ce)
989
+ g("img", {
990
+ src: v.image,
991
+ alt: v.title || "Card image",
992
+ class: x(y.value)
993
+ }, null, 10, ue)
1007
994
  ]),
1008
995
  _: 1
1009
996
  }, 16, ["class"]))
1010
997
  ])) : m("", !0),
1011
- p("div", {
1012
- class: h(f.value)
998
+ g("div", {
999
+ class: x(a.value)
1013
1000
  }, [
1014
- k.title || k.subtitle ? (d(), t("div", {
1001
+ v.title || v.subtitle ? (d(), t("div", {
1015
1002
  key: 0,
1016
- class: h(N.value)
1003
+ class: x(h.value)
1017
1004
  }, [
1018
- k.title ? (d(), V(D(y()), C({ key: 0 }, n(), { class: P.value }), {
1005
+ v.title ? (d(), D(V(n()), C({ key: 0 }, s(), { class: o.value }), {
1019
1006
  default: T(() => [
1020
- S(z(k.title), 1)
1007
+ $(z(v.title), 1)
1021
1008
  ]),
1022
1009
  _: 1
1023
1010
  }, 16, ["class"])) : m("", !0),
1024
- k.subtitle ? (d(), t("p", {
1011
+ v.subtitle ? (d(), t("p", {
1025
1012
  key: 1,
1026
- class: h(x.value)
1027
- }, z(k.subtitle), 3)) : m("", !0)
1013
+ class: x(f.value)
1014
+ }, z(v.subtitle), 3)) : m("", !0)
1028
1015
  ], 2)) : m("", !0),
1029
- k.$slots.default ? (d(), t("div", {
1016
+ v.$slots.default ? (d(), t("div", {
1030
1017
  key: 1,
1031
- class: h(w.value)
1018
+ class: x(P.value)
1032
1019
  }, [
1033
- _(k.$slots, "default")
1020
+ j(v.$slots, "default")
1034
1021
  ], 2)) : m("", !0),
1035
- k.$slots.footer ? (d(), t("div", {
1022
+ v.$slots.footer ? (d(), t("div", {
1036
1023
  key: 2,
1037
- class: h(i.value)
1024
+ class: x(N.value)
1038
1025
  }, [
1039
- _(k.$slots, "footer")
1026
+ j(v.$slots, "footer")
1040
1027
  ], 2)) : m("", !0)
1041
1028
  ], 2)
1042
1029
  ], 2));
1043
1030
  }
1044
- }), be = {
1031
+ }), ce = {
1045
1032
  key: 0,
1046
1033
  class: "dk:flex dk:items-center dk:gap-4"
1047
- }, ge = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, pe = {
1034
+ }, be = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, ge = {
1048
1035
  key: 0,
1049
1036
  class: "dk:relative dk:group"
1050
- }, ve = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-white dk:rounded-lg dk:shadow-lg dk:border dk:border-gray-200 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50 dk:dark:bg-gray-800 dk:dark:border-gray-700" }, xe = {
1037
+ }, pe = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-white dk:rounded-lg dk:shadow-lg dk:border dk:border-gray-200 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50 dk:dark:bg-gray-800 dk:dark:border-gray-700" }, ve = {
1051
1038
  key: 2,
1052
1039
  class: "dk:hidden dk:md:flex dk:items-center dk:gap-2"
1053
- }, he = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-white dk:border-t dk:border-gray-200 dk:shadow-lg dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:z-40" }, me = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, ye = { key: 0 }, fe = ["onClick"], ze = { class: "dk:flex dk:items-center dk:flex-1" }, we = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ce = {
1040
+ }, xe = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-white dk:border-t dk:border-gray-200 dk:shadow-lg dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:z-40" }, he = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, me = { key: 0 }, ye = ["onClick"], fe = { class: "dk:flex dk:items-center dk:flex-1" }, ze = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, we = {
1054
1041
  key: 0,
1055
1042
  class: "dk:pt-3 dk:border-t dk:border-gray-200 dk:dark:border-gray-700"
1056
- }, Pe = /* @__PURE__ */ j({
1043
+ }, Pe = /* @__PURE__ */ B({
1057
1044
  __name: "DuiNavbar",
1058
1045
  props: {
1059
1046
  items: { default: () => [] },
@@ -1061,18 +1048,18 @@ const H = { key: 1 }, G = `
1061
1048
  nuxt: { type: Boolean, default: !1 }
1062
1049
  },
1063
1050
  setup(r) {
1064
- const e = r, o = I(), a = q(!1), l = E({}), g = (x) => O(x.to, e.nuxt), b = (x) => {
1065
- const w = g(x);
1066
- return W(x.to, w);
1051
+ const e = r, k = O(), n = W(!1), s = q({}), l = (b) => A(b.to, e.nuxt), c = (b) => {
1052
+ const S = l(b);
1053
+ return I(b.to, S);
1067
1054
  }, y = () => {
1068
- a.value = !a.value;
1069
- }, n = () => {
1070
- a.value = !1, Object.keys(l).forEach((x) => {
1071
- l[x] = !1;
1055
+ n.value = !n.value;
1056
+ }, a = () => {
1057
+ n.value = !1, Object.keys(s).forEach((b) => {
1058
+ s[b] = !1;
1072
1059
  });
1073
- }, v = (x) => {
1074
- l[x] = !l[x];
1075
- }, s = {
1060
+ }, h = (b) => {
1061
+ s[b] = !s[b];
1062
+ }, o = {
1076
1063
  s: {
1077
1064
  height: "dk:h-12",
1078
1065
  padding: "dk:px-3",
@@ -1091,61 +1078,61 @@ const H = { key: 1 }, G = `
1091
1078
  text: "dk:text-lg",
1092
1079
  itemPadding: "dk:px-4 dk:py-3"
1093
1080
  }
1094
- }, u = c(() => {
1095
- const x = s[e.size];
1081
+ }, i = p(() => {
1082
+ const b = o[e.size];
1096
1083
  return [
1097
1084
  // Base classes
1098
1085
  "dk:relative dk:bg-white dk:border-b dk:border-gray-200 dk:shadow-sm",
1099
1086
  "dk:dark:bg-gray-800 dk:dark:border-gray-700",
1100
1087
  "dk:flex dk:items-center dk:w-full",
1101
1088
  // Conditional justify based on slots
1102
- !!(o != null && o.slots.brand || o != null && o.slots.actions) ? "dk:justify-between" : "dk:justify-center dk:md:justify-start",
1103
- x.height,
1104
- x.padding,
1105
- x.text
1089
+ !!(k != null && k.slots.brand || k != null && k.slots.actions) ? "dk:justify-between" : "dk:justify-center dk:md:justify-start",
1090
+ b.height,
1091
+ b.padding,
1092
+ b.text
1106
1093
  ].join(" ");
1107
- }), f = c(() => [
1094
+ }), f = p(() => [
1108
1095
  // Base styles
1109
1096
  "dk:flex dk:items-center dk:rounded-lg dk:transition-all dk:duration-200",
1110
1097
  "dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-gray-100",
1111
1098
  "dk:dark:text-gray-300 dk:dark:hover:text-gray-100 dk:dark:hover:bg-gray-700",
1112
1099
  "dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:focus:ring-gray-600",
1113
1100
  "dk:no-underline",
1114
- s[e.size].itemPadding
1115
- ].join(" ")), N = c(() => [
1101
+ o[e.size].itemPadding
1102
+ ].join(" ")), P = p(() => [
1116
1103
  "dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
1117
1104
  "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900",
1118
1105
  "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1119
1106
  "dk:transition-colors dk:duration-200 dk:no-underline"
1120
- ].join(" ")), P = c(() => [
1107
+ ].join(" ")), N = p(() => [
1121
1108
  "dk:flex dk:items-center dk:justify-between dk:w-full dk:text-left dk:px-3 dk:py-2",
1122
1109
  "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900 dk:rounded-lg",
1123
1110
  "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1124
1111
  "dk:transition-colors dk:duration-200 dk:no-underline"
1125
- ].join(" ")), M = c(() => [
1112
+ ].join(" ")), v = p(() => [
1126
1113
  "dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
1127
1114
  "dk:text-gray-600 dk:hover:bg-gray-100 dk:hover:text-gray-800",
1128
1115
  "dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-200",
1129
1116
  "dk:transition-colors dk:duration-200 dk:no-underline"
1130
1117
  ].join(" "));
1131
- return (x, w) => (d(), t("nav", {
1132
- class: h(u.value)
1118
+ return (b, S) => (d(), t("nav", {
1119
+ class: x(i.value)
1133
1120
  }, [
1134
- x.$slots.brand ? (d(), t("div", be, [
1135
- _(x.$slots, "brand"),
1136
- p("button", {
1121
+ b.$slots.brand ? (d(), t("div", ce, [
1122
+ j(b.$slots, "brand"),
1123
+ g("button", {
1137
1124
  type: "button",
1138
1125
  class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
1139
1126
  onClick: y
1140
- }, w[0] || (w[0] = [
1141
- p("span", { class: "dk:sr-only" }, "Open main menu", -1),
1142
- p("svg", {
1127
+ }, S[0] || (S[0] = [
1128
+ g("span", { class: "dk:sr-only" }, "Open main menu", -1),
1129
+ g("svg", {
1143
1130
  class: "dk:w-5 dk:h-5",
1144
1131
  fill: "none",
1145
1132
  stroke: "currentColor",
1146
1133
  viewBox: "0 0 24 24"
1147
1134
  }, [
1148
- p("path", {
1135
+ g("path", {
1149
1136
  "stroke-linecap": "round",
1150
1137
  "stroke-linejoin": "round",
1151
1138
  "stroke-width": "2",
@@ -1154,20 +1141,20 @@ const H = { key: 1 }, G = `
1154
1141
  ], -1)
1155
1142
  ]))
1156
1143
  ])) : m("", !0),
1157
- x.$slots.brand ? m("", !0) : (d(), t("button", {
1144
+ b.$slots.brand ? m("", !0) : (d(), t("button", {
1158
1145
  key: 1,
1159
1146
  type: "button",
1160
1147
  class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
1161
1148
  onClick: y
1162
- }, w[1] || (w[1] = [
1163
- p("span", { class: "dk:sr-only" }, "Open main menu", -1),
1164
- p("svg", {
1149
+ }, S[1] || (S[1] = [
1150
+ g("span", { class: "dk:sr-only" }, "Open main menu", -1),
1151
+ g("svg", {
1165
1152
  class: "dk:w-5 dk:h-5",
1166
1153
  fill: "none",
1167
1154
  stroke: "currentColor",
1168
1155
  viewBox: "0 0 24 24"
1169
1156
  }, [
1170
- p("path", {
1157
+ g("path", {
1171
1158
  "stroke-linecap": "round",
1172
1159
  "stroke-linejoin": "round",
1173
1160
  "stroke-width": "2",
@@ -1175,25 +1162,25 @@ const H = { key: 1 }, G = `
1175
1162
  })
1176
1163
  ], -1)
1177
1164
  ]))),
1178
- p("div", ge, [
1179
- (d(!0), t($, null, B(x.items, (i) => (d(), t($, {
1180
- key: i.label
1165
+ g("div", be, [
1166
+ (d(!0), t(_, null, M(b.items, (u) => (d(), t(_, {
1167
+ key: u.label
1181
1168
  }, [
1182
- i.children && i.children.length > 0 ? (d(), t("div", pe, [
1183
- (d(), V(D(g(i)), C({ ref_for: !0 }, b(i), { class: f.value }), {
1169
+ u.children && u.children.length > 0 ? (d(), t("div", ge, [
1170
+ (d(), D(V(l(u)), C({ ref_for: !0 }, c(u), { class: f.value }), {
1184
1171
  default: T(() => [
1185
- i.icon ? (d(), t("i", {
1172
+ u.icon ? (d(), t("i", {
1186
1173
  key: 0,
1187
- class: h([i.icon, "dk:mr-2"])
1174
+ class: x([u.icon, "dk:mr-2"])
1188
1175
  }, null, 2)) : m("", !0),
1189
- S(" " + z(i.label) + " ", 1),
1190
- w[2] || (w[2] = p("svg", {
1176
+ $(" " + z(u.label) + " ", 1),
1177
+ S[2] || (S[2] = g("svg", {
1191
1178
  class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
1192
1179
  fill: "none",
1193
1180
  stroke: "currentColor",
1194
1181
  viewBox: "0 0 24 24"
1195
1182
  }, [
1196
- p("path", {
1183
+ g("path", {
1197
1184
  "stroke-linecap": "round",
1198
1185
  "stroke-linejoin": "round",
1199
1186
  "stroke-width": "2",
@@ -1203,127 +1190,127 @@ const H = { key: 1 }, G = `
1203
1190
  ]),
1204
1191
  _: 2
1205
1192
  }, 1040, ["class"])),
1206
- p("div", ve, [
1207
- (d(!0), t($, null, B(i.children, (k) => (d(), V(D(g(k)), C({
1208
- key: k.label,
1193
+ g("div", pe, [
1194
+ (d(!0), t(_, null, M(u.children, (w) => (d(), D(V(l(w)), C({
1195
+ key: w.label,
1209
1196
  ref_for: !0
1210
- }, b(k), { class: N.value }), {
1197
+ }, c(w), { class: P.value }), {
1211
1198
  default: T(() => [
1212
- k.icon ? (d(), t("i", {
1199
+ w.icon ? (d(), t("i", {
1213
1200
  key: 0,
1214
- class: h([k.icon, "dk:mr-2"])
1201
+ class: x([w.icon, "dk:mr-2"])
1215
1202
  }, null, 2)) : m("", !0),
1216
- S(" " + z(k.label), 1)
1203
+ $(" " + z(w.label), 1)
1217
1204
  ]),
1218
1205
  _: 2
1219
1206
  }, 1040, ["class"]))), 128))
1220
1207
  ])
1221
- ])) : (d(), V(D(g(i)), C({
1208
+ ])) : (d(), D(V(l(u)), C({
1222
1209
  key: 1,
1223
1210
  ref_for: !0
1224
- }, b(i), { class: f.value }), {
1211
+ }, c(u), { class: f.value }), {
1225
1212
  default: T(() => [
1226
- i.icon ? (d(), t("i", {
1213
+ u.icon ? (d(), t("i", {
1227
1214
  key: 0,
1228
- class: h([i.icon, "dk:mr-2"])
1215
+ class: x([u.icon, "dk:mr-2"])
1229
1216
  }, null, 2)) : m("", !0),
1230
- S(" " + z(i.label), 1)
1217
+ $(" " + z(u.label), 1)
1231
1218
  ]),
1232
1219
  _: 2
1233
1220
  }, 1040, ["class"]))
1234
1221
  ], 64))), 128))
1235
1222
  ]),
1236
- x.$slots.actions ? (d(), t("div", xe, [
1237
- _(x.$slots, "actions")
1223
+ b.$slots.actions ? (d(), t("div", ve, [
1224
+ j(b.$slots, "actions")
1238
1225
  ])) : m("", !0),
1239
- R(p("div", he, [
1240
- p("div", me, [
1241
- (d(!0), t($, null, B(x.items, (i) => (d(), t($, {
1242
- key: i.label
1226
+ L(g("div", xe, [
1227
+ g("div", he, [
1228
+ (d(!0), t(_, null, M(b.items, (u) => (d(), t(_, {
1229
+ key: u.label
1243
1230
  }, [
1244
- i.children && i.children.length > 0 ? (d(), t("div", ye, [
1245
- p("button", {
1231
+ u.children && u.children.length > 0 ? (d(), t("div", me, [
1232
+ g("button", {
1246
1233
  type: "button",
1247
- onClick: (k) => v(i.label),
1248
- class: h(P.value)
1234
+ onClick: (w) => h(u.label),
1235
+ class: x(N.value)
1249
1236
  }, [
1250
- p("div", ze, [
1251
- i.icon ? (d(), t("i", {
1237
+ g("div", fe, [
1238
+ u.icon ? (d(), t("i", {
1252
1239
  key: 0,
1253
- class: h([i.icon, "dk:mr-2"])
1240
+ class: x([u.icon, "dk:mr-2"])
1254
1241
  }, null, 2)) : m("", !0),
1255
- S(" " + z(i.label), 1)
1242
+ $(" " + z(u.label), 1)
1256
1243
  ]),
1257
1244
  (d(), t("svg", {
1258
- class: h(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", l[i.label] ? "dk:rotate-180" : ""]),
1245
+ class: x(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", s[u.label] ? "dk:rotate-180" : ""]),
1259
1246
  fill: "none",
1260
1247
  stroke: "currentColor",
1261
1248
  viewBox: "0 0 24 24"
1262
- }, w[3] || (w[3] = [
1263
- p("path", {
1249
+ }, S[3] || (S[3] = [
1250
+ g("path", {
1264
1251
  "stroke-linecap": "round",
1265
1252
  "stroke-linejoin": "round",
1266
1253
  "stroke-width": "2",
1267
1254
  d: "M19 9l-7 7-7-7"
1268
1255
  }, null, -1)
1269
1256
  ]), 2))
1270
- ], 10, fe),
1271
- R(p("div", we, [
1272
- (d(!0), t($, null, B(i.children, (k) => (d(), V(D(g(k)), C({
1273
- key: k.label,
1257
+ ], 10, ye),
1258
+ L(g("div", ze, [
1259
+ (d(!0), t(_, null, M(u.children, (w) => (d(), D(V(l(w)), C({
1260
+ key: w.label,
1274
1261
  ref_for: !0
1275
- }, b(k), {
1276
- class: M.value,
1277
- onClick: n
1262
+ }, c(w), {
1263
+ class: v.value,
1264
+ onClick: a
1278
1265
  }), {
1279
1266
  default: T(() => [
1280
- k.icon ? (d(), t("i", {
1267
+ w.icon ? (d(), t("i", {
1281
1268
  key: 0,
1282
- class: h([k.icon, "dk:mr-2"])
1269
+ class: x([w.icon, "dk:mr-2"])
1283
1270
  }, null, 2)) : m("", !0),
1284
- S(" " + z(k.label), 1)
1271
+ $(" " + z(w.label), 1)
1285
1272
  ]),
1286
1273
  _: 2
1287
1274
  }, 1040, ["class"]))), 128))
1288
1275
  ], 512), [
1289
- [A, l[i.label]]
1276
+ [R, s[u.label]]
1290
1277
  ])
1291
- ])) : (d(), V(D(g(i)), C({
1278
+ ])) : (d(), D(V(l(u)), C({
1292
1279
  key: 1,
1293
1280
  ref_for: !0
1294
- }, b(i), {
1295
- class: P.value,
1296
- onClick: n
1281
+ }, c(u), {
1282
+ class: N.value,
1283
+ onClick: a
1297
1284
  }), {
1298
1285
  default: T(() => [
1299
- i.icon ? (d(), t("i", {
1286
+ u.icon ? (d(), t("i", {
1300
1287
  key: 0,
1301
- class: h([i.icon, "dk:mr-2"])
1288
+ class: x([u.icon, "dk:mr-2"])
1302
1289
  }, null, 2)) : m("", !0),
1303
- S(" " + z(i.label), 1)
1290
+ $(" " + z(u.label), 1)
1304
1291
  ]),
1305
1292
  _: 2
1306
1293
  }, 1040, ["class"]))
1307
1294
  ], 64))), 128)),
1308
- x.$slots.actions ? (d(), t("div", Ce, [
1309
- _(x.$slots, "actions")
1295
+ b.$slots.actions ? (d(), t("div", we, [
1296
+ j(b.$slots, "actions")
1310
1297
  ])) : m("", !0)
1311
1298
  ])
1312
1299
  ], 512), [
1313
- [A, a.value]
1300
+ [R, n.value]
1314
1301
  ])
1315
1302
  ], 2));
1316
1303
  }
1317
1304
  });
1318
1305
  export {
1319
- Le as DuiAction,
1320
- Te as DuiAlert,
1321
- $e as DuiButton,
1322
- Ne as DuiCard,
1323
- _e as DuiInput,
1324
- De as DuiLabel,
1306
+ Te as DuiAction,
1307
+ De as DuiAlert,
1308
+ Se as DuiButton,
1309
+ Me as DuiCard,
1310
+ $e as DuiInput,
1311
+ Be as DuiLabel,
1325
1312
  Pe as DuiNavbar,
1326
- Ve as DuiSelect,
1327
- Be as DuiTable,
1328
- je as DuiTextarea
1313
+ je as DuiSelect,
1314
+ Ve as DuiTable,
1315
+ _e as DuiTextarea
1329
1316
  };