@vasakgroup/vue-libvasak 0.18.0 → 1.0.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,53 +1,53 @@
1
- import { ref as w, onMounted as J, onUnmounted as ve, watch as W, defineComponent as E, toRef as Be, computed as v, createElementBlock as r, unref as q, openBlock as i, normalizeStyle as re, createCommentVNode as h, createElementVNode as T, createVNode as O, toDisplayString as V, normalizeClass as x, renderSlot as S, createBlock as Q, onBeforeUnmount as ce, Fragment as Z, renderList as ne, withCtx as K, mergeModels as Ae, useAttrs as $e, useId as ot, useModel as it, withDirectives as Ce, mergeProps as oe, isRef as rt, vModelSelect as st, inject as pe, getCurrentInstance as Fe, provide as de, createTextVNode as ze, toHandlers as qe, createSlots as ut, withModifiers as M, withKeys as F, Teleport as fe, Transition as ye, nextTick as Y, TransitionGroup as ct, vShow as Re, cloneVNode as dt, h as ft, Comment as mt, Text as bt } from "vue";
1
+ import { ref as w, onMounted as J, onUnmounted as ve, watch as W, defineComponent as E, toRef as Be, computed as v, createElementBlock as r, unref as R, openBlock as i, normalizeStyle as re, createCommentVNode as x, createElementVNode as T, createVNode as O, toDisplayString as V, normalizeClass as h, renderSlot as S, createBlock as Q, onBeforeUnmount as ce, Fragment as Z, renderList as le, withCtx as K, mergeModels as Ae, useAttrs as $e, useId as ot, useModel as it, withDirectives as Ce, mergeProps as oe, isRef as rt, vModelSelect as st, inject as pe, getCurrentInstance as Fe, provide as de, createTextVNode as ze, toHandlers as Re, createSlots as ut, withModifiers as M, withKeys as F, Teleport as fe, Transition as ye, nextTick as Y, TransitionGroup as ct, vShow as qe, cloneVNode as dt, h as ft, Comment as mt, Text as bt } from "vue";
2
2
  import { listen as vt } from "@tauri-apps/api/event";
3
3
  import { getSymbolSource as pt, getIconSource as yt } from "@vasakgroup/plugin-vicons";
4
4
  import { getCurrentWindow as gt } from "@tauri-apps/api/window";
5
5
  import { useI18n as ht } from "@vasakgroup/tauri-plugin-i18n";
6
6
  const xt = "vicons:theme-changed", be = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new Map(), se = w(0);
7
- let le = 0, ue = null, te = null;
8
- function Tn() {
9
- be.clear(), ae.clear(), le = 0, ue = null, te = null, se.value = 0;
7
+ let ne = 0, ue = null, te = null;
8
+ function Tl() {
9
+ be.clear(), ae.clear(), ne = 0, ue = null, te = null, se.value = 0;
10
10
  }
11
11
  function wt() {
12
12
  be.clear(), ae.clear(), se.value++;
13
13
  }
14
14
  function kt() {
15
- return le++, ue || te ? te ?? Promise.resolve() : (te = vt(xt, wt).then((e) => {
16
- le <= 0 ? e() : ue = e, te = null;
15
+ return ne++, ue || te ? te ?? Promise.resolve() : (te = vt(xt, wt).then((e) => {
16
+ ne <= 0 ? e() : ue = e, te = null;
17
17
  }), te);
18
18
  }
19
19
  function $t() {
20
- le--, !(le > 0) && (le = 0, ue?.(), ue = null);
20
+ ne--, !(ne > 0) && (ne = 0, ue?.(), ue = null);
21
21
  }
22
- function Ct(e, l) {
23
- const t = `${l}:${e}`, a = be.get(t);
22
+ function Ct(e, n) {
23
+ const t = `${n}:${e}`, a = be.get(t);
24
24
  if (a !== void 0)
25
25
  return Promise.resolve(a);
26
- const n = ae.get(t);
27
- if (n)
28
- return n;
29
- const o = se.value, s = (l === "symbol" ? pt(e) : yt(e)).then((u) => (se.value === o && be.set(t, u), u)).finally(() => {
26
+ const l = ae.get(t);
27
+ if (l)
28
+ return l;
29
+ const o = se.value, s = (n === "symbol" ? pt(e) : yt(e)).then((u) => (se.value === o && be.set(t, u), u)).finally(() => {
30
30
  ae.get(t) === s && ae.delete(t);
31
31
  });
32
32
  return ae.set(t, s), s;
33
33
  }
34
- function zt(e, l) {
34
+ function zt(e, n) {
35
35
  const t = w("");
36
- let a = !1, n = 0;
36
+ let a = !1, l = 0;
37
37
  async function o() {
38
- const s = ++n, u = e.value;
38
+ const s = ++l, u = e.value;
39
39
  if (!u) {
40
40
  t.value = "";
41
41
  return;
42
42
  }
43
- const m = await Ct(u, l.value);
44
- s === n && !a && (t.value = m);
43
+ const m = await Ct(u, n.value);
44
+ s === l && !a && (t.value = m);
45
45
  }
46
46
  return J(async () => {
47
47
  await kt(), a || await o();
48
48
  }), ve(() => {
49
49
  a = !0, $t();
50
- }), W([e, l], o), W(se, o), t;
50
+ }), W([e, n], o), W(se, o), t;
51
51
  }
52
52
  const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
53
53
  __name: "ThemeIcon",
@@ -58,10 +58,10 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
58
58
  alt: { default: "" }
59
59
  },
60
60
  setup(e) {
61
- const l = e, t = zt(Be(l, "name"), Be(l, "type")), a = v(() => `${l.size}px`);
62
- return (n, o) => q(t) ? (i(), r("img", {
61
+ const n = e, t = zt(Be(n, "name"), Be(n, "type")), a = v(() => `${n.size}px`);
62
+ return (l, o) => R(t) ? (i(), r("img", {
63
63
  key: 0,
64
- src: q(t),
64
+ src: R(t),
65
65
  alt: e.alt,
66
66
  style: re({ width: a.value, height: a.value }),
67
67
  class: "shrink-0 object-contain"
@@ -82,31 +82,31 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
82
82
  defaultOpen: { type: Boolean, default: !0 }
83
83
  },
84
84
  setup(e) {
85
- const l = e, t = w(l.defaultOpen);
85
+ const n = e, t = w(n.defaultOpen);
86
86
  return W(
87
- () => l.collapsed,
87
+ () => n.collapsed,
88
88
  (a) => {
89
89
  a && (t.value = !0);
90
90
  }
91
- ), (a, n) => (i(), r("section", Dt, [
92
- e.collapsed ? h("", !0) : (i(), r("button", {
91
+ ), (a, l) => (i(), r("section", Dt, [
92
+ e.collapsed ? x("", !0) : (i(), r("button", {
93
93
  key: 0,
94
94
  type: "button",
95
95
  class: "group flex w-full items-center justify-between rounded-corner px-2 py-1 text-tx-muted text-xs uppercase tracking-[0.08em] hover:bg-ui-surface/60",
96
96
  "aria-expanded": t.value,
97
- onClick: n[0] || (n[0] = (o) => t.value = !t.value)
97
+ onClick: l[0] || (l[0] = (o) => t.value = !t.value)
98
98
  }, [
99
99
  T("span", null, V(e.title), 1),
100
100
  O(H, {
101
101
  name: "pan-down-symbolic",
102
102
  type: "symbol",
103
103
  size: 12,
104
- class: x(["transition-transform duration-200", t.value ? "" : "-rotate-90"])
104
+ class: h(["transition-transform duration-200", t.value ? "" : "-rotate-90"])
105
105
  }, null, 8, ["class"])
106
106
  ], 8, Et)),
107
107
  t.value || e.collapsed ? (i(), r("div", Tt, [
108
108
  S(a.$slots, "default")
109
- ])) : h("", !0)
109
+ ])) : x("", !0)
110
110
  ]));
111
111
  }
112
112
  }), Bt = ["title", "aria-label", "disabled", "aria-current"], At = { key: 1 }, St = {
@@ -127,21 +127,21 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
127
127
  },
128
128
  emits: ["click"],
129
129
  setup(e) {
130
- return (l, t) => (i(), r("button", {
130
+ return (n, t) => (i(), r("button", {
131
131
  type: "button",
132
132
  title: e.collapsed ? e.label : void 0,
133
133
  "aria-label": e.collapsed ? e.label : void 0,
134
134
  disabled: e.disabled,
135
135
  "aria-current": e.active ? "page" : void 0,
136
- class: x(["group relative flex w-full items-center gap-3 rounded-corner border px-3 py-2 text-left text-sm transition-all duration-200", [
136
+ class: h(["group relative flex w-full items-center gap-3 rounded-corner border px-3 py-2 text-left text-sm transition-all duration-200", [
137
137
  e.active ? "border-secondary bg-primary/15 text-tx-main shadow-sm" : "border-transparent bg-transparent hover:border-ui-border hover:bg-ui-surface/70",
138
138
  e.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer",
139
139
  e.collapsed ? "justify-center px-2" : ""
140
140
  ]]),
141
- onClick: t[0] || (t[0] = (a) => l.$emit("click"))
141
+ onClick: t[0] || (t[0] = (a) => n.$emit("click"))
142
142
  }, [
143
143
  T("span", {
144
- class: x(["flex h-8 w-8 shrink-0 items-center justify-center rounded-corner font-semibold text-xs uppercase tracking-wide", e.active ? "border-secondary bg-primary/20" : ""]),
144
+ class: h(["flex h-8 w-8 shrink-0 items-center justify-center rounded-corner font-semibold text-xs uppercase tracking-wide", e.active ? "border-secondary bg-primary/20" : ""]),
145
145
  "aria-hidden": "true"
146
146
  }, [
147
147
  e.icon ? (i(), Q(H, {
@@ -150,8 +150,8 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
150
150
  size: 20
151
151
  }, null, 8, ["name"])) : (i(), r("span", At, V(e.label.charAt(0).toUpperCase()), 1))
152
152
  ], 2),
153
- e.collapsed ? h("", !0) : (i(), r("span", St, V(e.label), 1)),
154
- !e.collapsed && e.badge !== "" ? (i(), r("span", Vt, V(e.badge), 1)) : h("", !0)
153
+ e.collapsed ? x("", !0) : (i(), r("span", St, V(e.label), 1)),
154
+ !e.collapsed && e.badge !== "" ? (i(), r("span", Vt, V(e.badge), 1)) : x("", !0)
155
155
  ], 10, Bt));
156
156
  }
157
157
  }), Mt = {
@@ -166,7 +166,7 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
166
166
  }, Ft = {
167
167
  key: 1,
168
168
  class: "truncate text-tx-muted text-xs"
169
- }, qt = { key: 0 }, Rt = {
169
+ }, Rt = { key: 0 }, qt = {
170
170
  key: 1,
171
171
  class: "flex border-ui-border border-b p-2"
172
172
  }, Nt = ["aria-label", "aria-expanded"], Ht = { class: "flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-2" }, Se = "hidden h-8 w-8 shrink-0 items-center justify-center rounded-corner border border-ui-border bg-ui-surface/70 transition-colors hover:bg-ui-surface md:inline-flex", Ve = 767, Ut = /* @__PURE__ */ E({
@@ -181,8 +181,8 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
181
181
  expandLabel: { default: "Expand" }
182
182
  },
183
183
  emits: ["update:modelValue", "update:collapsed", "change"],
184
- setup(e, { expose: l, emit: t }) {
185
- const a = e, n = t, o = w(a.collapsed ?? !1), s = w(!1);
184
+ setup(e, { expose: n, emit: t }) {
185
+ const a = e, l = t, o = w(a.collapsed ?? !1), s = w(!1);
186
186
  let u = null, m = null;
187
187
  const f = v(() => s.value || o.value), d = v(() => !!(a.title || a.subtitle));
188
188
  v(() => a.categories.length > 0);
@@ -193,10 +193,10 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
193
193
  s.value = L() <= Ve;
194
194
  }
195
195
  function A() {
196
- o.value = !o.value, n("update:collapsed", o.value);
196
+ o.value = !o.value, l("update:collapsed", o.value);
197
197
  }
198
198
  function y($) {
199
- n("update:modelValue", $), n("change", $);
199
+ l("update:modelValue", $), l("change", $);
200
200
  }
201
201
  return W(
202
202
  () => a.collapsed,
@@ -207,14 +207,14 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
207
207
  u = window.matchMedia(`(max-width: ${Ve}px)`), D(), u.addEventListener("change", D), window.addEventListener("resize", D), typeof ResizeObserver < "u" && document.documentElement && (m = new ResizeObserver(D), m.observe(document.documentElement));
208
208
  }), ce(() => {
209
209
  u?.removeEventListener("change", D), window.removeEventListener("resize", D), m?.disconnect(), m = null;
210
- }), l({ collapsed: f }), ($, j) => (i(), r("aside", {
211
- class: x(["relative z-30 flex h-full shrink-0 flex-col rounded-corner border border-ui-border bg-ui-surface/70 transition-all duration-300", ["w-[84px]", f.value ? "md:w-[84px]" : "md:w-72"]])
210
+ }), n({ collapsed: f }), ($, j) => (i(), r("aside", {
211
+ class: h(["relative z-30 flex h-full shrink-0 flex-col rounded-corner border border-ui-border bg-ui-surface/70 transition-all duration-300", ["w-[84px]", f.value ? "md:w-[84px]" : "md:w-72"]])
212
212
  }, [
213
213
  d.value || $.$slots.header ? (i(), r("header", Mt, [
214
214
  T("div", It, [
215
215
  T("button", {
216
216
  type: "button",
217
- class: x(Se),
217
+ class: h(Se),
218
218
  "aria-label": f.value ? e.expandLabel : e.collapseLabel,
219
219
  "aria-expanded": !f.value,
220
220
  onClick: A
@@ -226,17 +226,17 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
226
226
  }, null, 8, ["name"])
227
227
  ], 8, Ot),
228
228
  d.value && !f.value ? (i(), r("div", jt, [
229
- e.title ? (i(), r("p", Pt, V(e.title), 1)) : h("", !0),
230
- e.subtitle ? (i(), r("p", Ft, V(e.subtitle), 1)) : h("", !0)
231
- ])) : h("", !0)
229
+ e.title ? (i(), r("p", Pt, V(e.title), 1)) : x("", !0),
230
+ e.subtitle ? (i(), r("p", Ft, V(e.subtitle), 1)) : x("", !0)
231
+ ])) : x("", !0)
232
232
  ]),
233
- $.$slots.header && !f.value ? (i(), r("div", qt, [
233
+ $.$slots.header && !f.value ? (i(), r("div", Rt, [
234
234
  S($.$slots, "header", { collapsed: f.value })
235
- ])) : h("", !0)
236
- ])) : (i(), r("div", Rt, [
235
+ ])) : x("", !0)
236
+ ])) : (i(), r("div", qt, [
237
237
  T("button", {
238
238
  type: "button",
239
- class: x(Se),
239
+ class: h(Se),
240
240
  "aria-label": f.value ? e.expandLabel : e.collapseLabel,
241
241
  "aria-expanded": !f.value,
242
242
  onClick: A
@@ -249,13 +249,13 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
249
249
  ], 8, Nt)
250
250
  ])),
251
251
  T("div", Ht, [
252
- (i(!0), r(Z, null, ne(e.categories, (C) => (i(), Q(Ne, {
252
+ (i(!0), r(Z, null, le(e.categories, (C) => (i(), Q(Ne, {
253
253
  key: C.id,
254
254
  title: C.title,
255
255
  collapsed: f.value
256
256
  }, {
257
257
  default: K(() => [
258
- (i(!0), r(Z, null, ne(C.items, (g) => (i(), Q(He, {
258
+ (i(!0), r(Z, null, le(C.items, (g) => (i(), Q(He, {
259
259
  key: g.id,
260
260
  label: g.label,
261
261
  icon: g.icon,
@@ -284,8 +284,8 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
284
284
  modelModifiers: {}
285
285
  }),
286
286
  emits: /* @__PURE__ */ Ae(["change"], ["update:modelValue"]),
287
- setup(e, { emit: l }) {
288
- const t = e, a = $e(), n = ot(), o = v(() => a.id ?? n), s = l, [u, m] = it(e, "modelValue", {
287
+ setup(e, { emit: n }) {
288
+ const t = e, a = $e(), l = ot(), o = v(() => a.id ?? l), s = n, [u, m] = it(e, "modelValue", {
289
289
  set(f) {
290
290
  return m.number ? Number(f) : f;
291
291
  }
@@ -295,18 +295,18 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
295
295
  key: 0,
296
296
  for: o.value,
297
297
  class: "text-tx-muted text-xs"
298
- }, V(t.label), 9, Wt)) : h("", !0),
298
+ }, V(t.label), 9, Wt)) : x("", !0),
299
299
  T("div", Gt, [
300
300
  Ce(T("select", oe({
301
301
  id: o.value,
302
302
  "onUpdate:modelValue": d[0] || (d[0] = (L) => rt(u) ? u.value = L : null),
303
303
  class: "min-w-0 flex-1 appearance-none truncate rounded-corner border border-ui-border bg-ui-surface/60 py-1.5 pr-8 pl-2 text-sm text-tx-main"
304
- }, q(a), {
304
+ }, R(a), {
305
305
  onChange: d[1] || (d[1] = (L) => s("change", L))
306
306
  }), [
307
307
  S(f.$slots, "default")
308
308
  ], 16, Qt), [
309
- [st, q(u)]
309
+ [st, R(u)]
310
310
  ]),
311
311
  O(H, {
312
312
  name: "pan-down-symbolic",
@@ -328,11 +328,11 @@ function Jt(e) {
328
328
  function me() {
329
329
  const e = pe(Le, null);
330
330
  if (e) return e;
331
- const l = w("top");
331
+ const n = w("top");
332
332
  return {
333
- posicion: l,
334
- orientacion: v(() => ke(l.value)),
335
- vertical: v(() => ke(l.value) === "vertical")
333
+ posicion: n,
334
+ orientacion: v(() => ke(n.value)),
335
+ vertical: v(() => ke(n.value) === "vertical")
336
336
  };
337
337
  }
338
338
  const De = ["minimize", "maximize", "close"], Zt = "window", _t = "barPosition";
@@ -341,20 +341,20 @@ function ea(e) {
341
341
  return Jt(t) ? t : null;
342
342
  }
343
343
  function ta(e = "top") {
344
- const l = w(e);
344
+ const n = w(e);
345
345
  let t = null, a = !1;
346
- async function n() {
346
+ async function l() {
347
347
  try {
348
348
  const { readConfig: o } = await import("@vasakgroup/plugin-config-manager"), s = await o();
349
- l.value = ea(s) ?? e;
349
+ n.value = ea(s) ?? e;
350
350
  } catch {
351
351
  }
352
352
  }
353
353
  return J(async () => {
354
- await n();
354
+ await l();
355
355
  try {
356
356
  const { listen: o } = await import("@tauri-apps/api/event"), s = await o("config-changed", () => {
357
- n();
357
+ l();
358
358
  });
359
359
  if (a) {
360
360
  s();
@@ -365,17 +365,17 @@ function ta(e = "top") {
365
365
  }
366
366
  }), ce(() => {
367
367
  a = !0, t?.(), t = null;
368
- }), l;
368
+ }), n;
369
369
  }
370
370
  function Ue(e) {
371
- const l = Fe(), t = {};
371
+ const n = Fe(), t = {};
372
372
  for (const a of e) {
373
- const n = `on${a[0].toUpperCase()}${a.slice(1)}`;
374
- l?.vnode.props?.[n] && (t[a] = () => l.emit(a));
373
+ const l = `on${a[0].toUpperCase()}${a.slice(1)}`;
374
+ n?.vnode.props?.[l] && (t[a] = () => n.emit(a));
375
375
  }
376
376
  return t;
377
377
  }
378
- const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title", "aria-label"], xe = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", Ke = /* @__PURE__ */ E({
378
+ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title", "aria-label"], xe = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", Ke = /* @__PURE__ */ E({
379
379
  __name: "WindowControls",
380
380
  props: {
381
381
  controls: { default: () => De },
@@ -384,8 +384,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
384
384
  closeLabel: {}
385
385
  },
386
386
  emits: ["minimize", "maximize", "close"],
387
- setup(e, { emit: l }) {
388
- const t = e, { t: a } = ht(), n = v(() => t.minimizeLabel ?? a("ventana.minimizar")), o = v(() => t.maximizeLabel ?? a("ventana.maximizar")), s = v(() => t.closeLabel ?? a("ventana.cerrar")), u = l, { vertical: m } = me(), f = v(() => ({
387
+ setup(e, { emit: n }) {
388
+ const t = e, { t: a } = ht(), l = v(() => t.minimizeLabel ?? a("ventana.minimizar")), o = v(() => t.maximizeLabel ?? a("ventana.maximizar")), s = v(() => t.closeLabel ?? a("ventana.cerrar")), u = n, { vertical: m } = me(), f = v(() => ({
389
389
  minimize: t.controls.includes("minimize"),
390
390
  maximize: t.controls.includes("maximize"),
391
391
  close: t.controls.includes("close")
@@ -411,15 +411,15 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
411
411
  }
412
412
  return (j, C) => e.controls.length ? (i(), r("div", {
413
413
  key: 0,
414
- class: x(["flex shrink-0 gap-1", q(m) ? "flex-col" : ""]),
414
+ class: h(["flex shrink-0 gap-1", R(m) ? "flex-col" : ""]),
415
415
  "data-tauri-drag-region": ""
416
416
  }, [
417
417
  f.value.minimize ? (i(), r("button", {
418
418
  key: 0,
419
419
  type: "button",
420
- class: x([xe, "hover:bg-status-success"]),
421
- title: n.value,
422
- "aria-label": n.value,
420
+ class: h([xe, "hover:bg-status-success"]),
421
+ title: l.value,
422
+ "aria-label": l.value,
423
423
  onClick: C[0] || (C[0] = (g) => A())
424
424
  }, [
425
425
  O(H, {
@@ -427,11 +427,11 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
427
427
  type: "symbol",
428
428
  size: 24
429
429
  })
430
- ], 10, aa)) : h("", !0),
430
+ ], 10, aa)) : x("", !0),
431
431
  f.value.maximize ? (i(), r("button", {
432
432
  key: 1,
433
433
  type: "button",
434
- class: x([xe, "hover:bg-status-warning"]),
434
+ class: h([xe, "hover:bg-status-warning"]),
435
435
  title: o.value,
436
436
  "aria-label": o.value,
437
437
  onClick: C[1] || (C[1] = (g) => y())
@@ -441,11 +441,11 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
441
441
  type: "symbol",
442
442
  size: 24
443
443
  })
444
- ], 10, la)) : h("", !0),
444
+ ], 10, na)) : x("", !0),
445
445
  f.value.close ? (i(), r("button", {
446
446
  key: 2,
447
447
  type: "button",
448
- class: x([xe, "hover:bg-status-error"]),
448
+ class: h([xe, "hover:bg-status-error"]),
449
449
  title: s.value,
450
450
  "aria-label": s.value,
451
451
  onClick: C[2] || (C[2] = (g) => $())
@@ -455,8 +455,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
455
455
  type: "symbol",
456
456
  size: 24
457
457
  })
458
- ], 10, na)) : h("", !0)
459
- ], 2)) : h("", !0);
458
+ ], 10, la)) : x("", !0)
459
+ ], 2)) : x("", !0);
460
460
  }
461
461
  }), oa = {
462
462
  key: 0,
@@ -478,51 +478,51 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
478
478
  },
479
479
  emits: ["minimize", "maximize", "close"],
480
480
  setup(e) {
481
- const l = e, t = me(), a = v(() => l.position ?? t.posicion.value), n = v(() => a.value === "left" || a.value === "right");
481
+ const n = e, t = me(), a = v(() => n.position ?? t.posicion.value), l = v(() => a.value === "left" || a.value === "right");
482
482
  return de(Le, {
483
483
  posicion: a,
484
- orientacion: v(() => n.value ? "vertical" : "horizontal"),
485
- vertical: n
484
+ orientacion: v(() => l.value ? "vertical" : "horizontal"),
485
+ vertical: l
486
486
  }), (o, s) => (i(), r("div", {
487
- class: x(["relative flex shrink-0 items-center gap-2 p-1 font-title", n.value ? "h-full flex-col" : "w-full"]),
487
+ class: h(["relative flex shrink-0 items-center gap-2 p-1 font-title", l.value ? "h-full flex-col" : "w-full"]),
488
488
  "data-tauri-drag-region": ""
489
489
  }, [
490
490
  o.$slots.identidad ? (i(), r("div", oa, [
491
491
  S(o.$slots, "identidad")
492
- ])) : h("", !0),
493
- (o.$slots.titulo || e.title) && !n.value ? (i(), r("p", ia, [
492
+ ])) : x("", !0),
493
+ (o.$slots.titulo || e.title) && !l.value ? (i(), r("p", ia, [
494
494
  S(o.$slots, "titulo", {}, () => [
495
495
  ze(V(e.title), 1)
496
496
  ])
497
- ])) : h("", !0),
497
+ ])) : x("", !0),
498
498
  T("div", {
499
- class: x(["flex min-h-0 min-w-0 flex-1 items-center gap-2 overflow-auto", n.value ? "flex-col" : ""]),
499
+ class: h(["flex min-h-0 min-w-0 flex-1 items-center gap-2 overflow-auto", l.value ? "flex-col" : ""]),
500
500
  "data-tauri-drag-region": ""
501
501
  }, [
502
502
  S(o.$slots, "default")
503
503
  ], 2),
504
504
  o.$slots.acciones ? (i(), r("div", {
505
505
  key: 2,
506
- class: x(["flex shrink-0 items-center gap-1", n.value ? "flex-col" : ""])
506
+ class: h(["flex shrink-0 items-center gap-1", l.value ? "flex-col" : ""])
507
507
  }, [
508
508
  S(o.$slots, "acciones")
509
- ], 2)) : h("", !0),
509
+ ], 2)) : x("", !0),
510
510
  O(Ke, oe({
511
511
  controls: e.controls,
512
512
  "minimize-label": e.minimizeLabel,
513
513
  "maximize-label": e.maximizeLabel,
514
514
  "close-label": e.closeLabel
515
- }, qe(q(Ue)(["minimize", "maximize", "close"]))), null, 16, ["controls", "minimize-label", "maximize-label", "close-label"]),
515
+ }, Re(R(Ue)(["minimize", "maximize", "close"]))), null, 16, ["controls", "minimize-label", "maximize-label", "close-label"]),
516
516
  o.$slots.centro ? (i(), r("div", {
517
517
  key: 3,
518
- class: x(["pointer-events-none absolute flex items-center justify-center", n.value ? "inset-x-0 top-1/2 -translate-y-1/2 flex-col" : "inset-y-0 left-1/2 -translate-x-1/2"])
518
+ class: h(["pointer-events-none absolute flex items-center justify-center", l.value ? "inset-x-0 top-1/2 -translate-y-1/2 flex-col" : "inset-y-0 left-1/2 -translate-x-1/2"])
519
519
  }, [
520
520
  T("div", {
521
- class: x(["pointer-events-auto flex items-center gap-2", n.value ? "flex-col" : ""])
521
+ class: h(["pointer-events-auto flex items-center gap-2", l.value ? "flex-col" : ""])
522
522
  }, [
523
523
  S(o.$slots, "centro")
524
524
  ], 2)
525
- ], 2)) : h("", !0)
525
+ ], 2)) : x("", !0)
526
526
  ], 2));
527
527
  }
528
528
  }), ra = { class: "flex min-h-0 min-w-0 flex-1" }, sa = /* @__PURE__ */ E({
@@ -538,8 +538,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
538
538
  },
539
539
  emits: ["minimize", "maximize", "close"],
540
540
  setup(e) {
541
- const l = e, t = ta(), a = v(() => l.position ?? t.value), n = v(() => ke(a.value)), o = v(() => n.value === "vertical");
542
- de(Le, { posicion: a, orientacion: n, vertical: o });
541
+ const n = e, t = ta(), a = v(() => n.position ?? t.value), l = v(() => ke(a.value)), o = v(() => l.value === "vertical");
542
+ de(Le, { posicion: a, orientacion: l, vertical: o });
543
543
  const s = {
544
544
  top: "flex-col",
545
545
  bottom: "flex-col-reverse",
@@ -547,9 +547,9 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
547
547
  right: "flex-row-reverse"
548
548
  };
549
549
  return (u, m) => (i(), r("div", {
550
- class: x(["flex h-screen w-screen overflow-hidden rounded-corner-window border border-ui-border bg-ui-bg/80", s[a.value]])
550
+ class: h(["flex h-screen w-screen overflow-hidden rounded-corner-window border border-ui-border bg-ui-bg/80", s[a.value]])
551
551
  }, [
552
- e.hideBar ? h("", !0) : (i(), Q(We, oe({
552
+ e.hideBar ? x("", !0) : (i(), Q(We, oe({
553
553
  key: 0,
554
554
  position: a.value,
555
555
  title: e.title,
@@ -557,7 +557,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
557
557
  "maximize-label": e.maximizeLabel,
558
558
  "close-label": e.closeLabel,
559
559
  controls: e.controls
560
- }, qe(q(Ue)(["minimize", "maximize", "close"]))), ut({
560
+ }, Re(R(Ue)(["minimize", "maximize", "close"]))), ut({
561
561
  default: K(() => [
562
562
  S(u.$slots, "barra")
563
563
  ]),
@@ -617,8 +617,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
617
617
  tabindex: { default: 0 }
618
618
  },
619
619
  emits: ["select", "close", "menu", "mover", "navegar"],
620
- setup(e, { emit: l }) {
621
- const t = e, a = l, { vertical: n, posicion: o } = me(), s = w(null), u = w(null), m = w(!1), f = w(!1), d = w(!1), L = w({ top: 0, left: 0, right: 0 });
620
+ setup(e, { emit: n }) {
621
+ const t = e, a = n, { vertical: l, posicion: o } = me(), s = w(null), u = w(null), m = w(!1), f = w(!1), d = w(!1), L = w({ top: 0, left: 0, right: 0 });
622
622
  let D = null, A = null;
623
623
  const y = v(() => t.tab.closable !== !1), $ = v(() => t.tab.tooltip ?? t.tab.label), j = v(
624
624
  () => t.tab.dirty ? `${t.tab.label} · ${t.dirtyLabel}` : t.tab.label
@@ -627,23 +627,23 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
627
627
  ), b = v(
628
628
  () => y.value && (g.value || t.active || !t.tab.dirty)
629
629
  ), p = v(
630
- () => n.value && (m.value || f.value || d.value)
630
+ () => l.value && (m.value || f.value || d.value)
631
631
  ), P = v(() => {
632
- const R = { position: "fixed", top: `${L.value.top}px`, zIndex: 50 };
633
- return o.value === "right" ? { ...R, right: `${L.value.right + Ie}px` } : { ...R, left: `${L.value.left + Ie}px` };
632
+ const q = { position: "fixed", top: `${L.value.top}px`, zIndex: 50 };
633
+ return o.value === "right" ? { ...q, right: `${L.value.right + Ie}px` } : { ...q, left: `${L.value.left + Ie}px` };
634
634
  });
635
635
  function _() {
636
- const R = s.value;
637
- if (!R) return;
638
- const k = R.getBoundingClientRect();
636
+ const q = s.value;
637
+ if (!q) return;
638
+ const k = q.getBoundingClientRect();
639
639
  L.value = {
640
640
  top: k.top,
641
641
  left: k.right,
642
642
  right: window.innerWidth - k.left
643
643
  };
644
644
  }
645
- function U(R) {
646
- const k = R.relatedTarget;
645
+ function U(q) {
646
+ const k = q.relatedTarget;
647
647
  k && u.value?.contains(k) || (d.value = !1);
648
648
  }
649
649
  function ee() {
@@ -655,27 +655,27 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
655
655
  function B() {
656
656
  D !== null && clearTimeout(D), D = null, A = null;
657
657
  }
658
- function z(R) {
659
- R.button === 0 && (A = { x: R.clientX, y: R.clientY }, D = setTimeout(() => {
658
+ function z(q) {
659
+ q.button === 0 && (A = { x: q.clientX, y: q.clientY }, D = setTimeout(() => {
660
660
  A && a("menu", A), B();
661
661
  }, pa));
662
662
  }
663
- function I(R) {
663
+ function I(q) {
664
664
  if (!A) return;
665
- (Math.abs(R.clientX - A.x) > Me || Math.abs(R.clientY - A.y) > Me) && B();
665
+ (Math.abs(q.clientX - A.x) > Me || Math.abs(q.clientY - A.y) > Me) && B();
666
666
  }
667
- function ie(R) {
668
- R.button === 1 && y.value && (R.preventDefault(), a("close"));
667
+ function ie(q) {
668
+ q.button === 1 && y.value && (q.preventDefault(), a("close"));
669
669
  }
670
- function nt(R) {
671
- R.preventDefault(), a("menu", { x: R.clientX, y: R.clientY });
670
+ function lt(q) {
671
+ q.preventDefault(), a("menu", { x: q.clientX, y: q.clientY });
672
672
  }
673
- return ce(B), (R, k) => (i(), r("div", {
673
+ return ce(B), (q, k) => (i(), r("div", {
674
674
  ref_key: "raiz",
675
675
  ref: s,
676
- class: x(["group relative flex shrink-0 cursor-pointer items-center gap-2 rounded-corner border border-ui-border transition-colors", [
676
+ class: h(["group relative flex shrink-0 cursor-pointer items-center gap-2 rounded-corner border border-ui-border transition-colors", [
677
677
  e.active ? "bg-primary font-bold text-tx-on-primary" : "bg-ui-bg/80 hover:bg-ui-surface/70",
678
- q(n) ? "size-8 justify-center p-0 text-sm" : "w-34 max-w-34 px-3 py-1 text-sm"
678
+ R(l) ? "size-8 justify-center p-0 text-sm" : "w-34 max-w-34 px-3 py-1 text-sm"
679
679
  ]]),
680
680
  role: "tab",
681
681
  "aria-selected": e.active,
@@ -699,7 +699,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
699
699
  k[18] || (k[18] = F(M((N) => y.value && a("close"), ["prevent", "stop"]), ["delete"]))
700
700
  ],
701
701
  onAuxclick: M(ie, ["stop"]),
702
- onContextmenu: nt,
702
+ onContextmenu: lt,
703
703
  onPointerdown: z,
704
704
  onPointermove: I,
705
705
  onPointerup: B,
@@ -714,13 +714,13 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
714
714
  name: e.tab.icon,
715
715
  size: 16,
716
716
  class: "shrink-0"
717
- }, null, 8, ["name"])) : q(n) ? (i(), r("span", ca, V(C.value), 1)) : h("", !0),
718
- q(n) ? h("", !0) : (i(), r("span", da, V(e.tab.label), 1)),
717
+ }, null, 8, ["name"])) : R(l) ? (i(), r("span", ca, V(C.value), 1)) : x("", !0),
718
+ R(l) ? x("", !0) : (i(), r("span", da, V(e.tab.label), 1)),
719
719
  c.value ? (i(), r("span", {
720
720
  key: 3,
721
- class: x(["size-2 shrink-0 rounded-full bg-current", q(n) ? "absolute right-0.5 top-0.5" : ""]),
721
+ class: h(["size-2 shrink-0 rounded-full bg-current", R(l) ? "absolute right-0.5 top-0.5" : ""]),
722
722
  "aria-hidden": "true"
723
- }, null, 2)) : b.value && !q(n) ? (i(), r("button", {
723
+ }, null, 2)) : b.value && !R(l) ? (i(), r("button", {
724
724
  key: 4,
725
725
  type: "button",
726
726
  class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
@@ -733,7 +733,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
733
733
  type: "symbol",
734
734
  size: 12
735
735
  })
736
- ], 8, fa)) : h("", !0),
736
+ ], 8, fa)) : x("", !0),
737
737
  (i(), Q(fe, { to: "body" }, [
738
738
  O(ye, {
739
739
  "enter-active-class": "transition duration-150 ease-out",
@@ -744,7 +744,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
744
744
  default: K(() => [
745
745
  p.value ? (i(), r("div", {
746
746
  key: 0,
747
- class: x(["flex items-center gap-2 rounded-corner border border-ui-border bg-ui-surface/95 px-3 py-1 text-sm shadow-lg", e.active ? "font-bold" : ""]),
747
+ class: h(["flex items-center gap-2 rounded-corner border border-ui-border bg-ui-surface/95 px-3 py-1 text-sm shadow-lg", e.active ? "font-bold" : ""]),
748
748
  ref_key: "desplegadoRef",
749
749
  ref: u,
750
750
  style: re(P.value),
@@ -754,7 +754,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
754
754
  onFocusout: U
755
755
  }, [
756
756
  T("span", ma, V(e.tab.label), 1),
757
- e.tab.dirty ? (i(), r("span", ba)) : h("", !0),
757
+ e.tab.dirty ? (i(), r("span", ba)) : x("", !0),
758
758
  y.value ? (i(), r("button", {
759
759
  key: 1,
760
760
  type: "button",
@@ -768,8 +768,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
768
768
  type: "symbol",
769
769
  size: 12
770
770
  })
771
- ], 8, va)) : h("", !0)
772
- ], 38)) : h("", !0)
771
+ ], 8, va)) : x("", !0)
772
+ ], 38)) : x("", !0)
773
773
  ]),
774
774
  _: 1
775
775
  })
@@ -787,8 +787,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
787
787
  fixedOrder: { type: Boolean, default: !1 }
788
788
  },
789
789
  emits: ["update:modelValue", "select", "close", "new", "reorder", "menu"],
790
- setup(e, { emit: l }) {
791
- const t = e, a = l, { vertical: n } = me(), o = w(null), s = w(0), u = w(null), m = w(null);
790
+ setup(e, { emit: n }) {
791
+ const t = e, a = n, { vertical: l } = me(), o = w(null), s = w(0), u = w(null), m = w(null);
792
792
  function f(g) {
793
793
  a("update:modelValue", g), a("select", g);
794
794
  }
@@ -808,8 +808,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
808
808
  function D(g) {
809
809
  const c = o.value;
810
810
  if (!c) return;
811
- const b = g.deltaY || g.deltaX || 0, p = n.value ? c.scrollTop : c.scrollLeft;
812
- n.value ? c.scrollTop += b : c.scrollLeft += b, (n.value ? c.scrollTop : c.scrollLeft) !== p && g.preventDefault();
811
+ const b = g.deltaY || g.deltaX || 0, p = l.value ? c.scrollTop : c.scrollLeft;
812
+ l.value ? c.scrollTop += b : c.scrollLeft += b, (l.value ? c.scrollTop : c.scrollLeft) !== p && g.preventDefault();
813
813
  }
814
814
  function A(g, c) {
815
815
  t.fixedOrder || (u.value = g, c.dataTransfer?.setData("text/plain", String(g)), c.dataTransfer && (c.dataTransfer.effectAllowed = "move"));
@@ -827,22 +827,22 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
827
827
  u.value = null, m.value = null;
828
828
  }
829
829
  const C = v(
830
- () => n.value ? "flex h-full flex-col items-center gap-1 overflow-y-auto overflow-x-hidden" : "flex items-center gap-1 overflow-x-auto overflow-y-hidden"
830
+ () => l.value ? "flex h-full flex-col items-center gap-1 overflow-y-auto overflow-x-hidden" : "flex items-center gap-1 overflow-x-auto overflow-y-hidden"
831
831
  );
832
832
  return (g, c) => (i(), r("div", {
833
- class: x(["flex min-h-0 min-w-0 items-center gap-1", q(n) ? "w-full flex-col" : "h-full"]),
833
+ class: h(["flex min-h-0 min-w-0 items-center gap-1", R(l) ? "w-full flex-col" : "h-full"]),
834
834
  role: "tablist",
835
- "aria-orientation": q(n) ? "vertical" : "horizontal"
835
+ "aria-orientation": R(l) ? "vertical" : "horizontal"
836
836
  }, [
837
837
  T("div", {
838
838
  ref_key: "carril",
839
839
  ref: o,
840
- class: x(C.value),
840
+ class: h(C.value),
841
841
  onWheel: D
842
842
  }, [
843
- (i(!0), r(Z, null, ne(e.tabs, (b, p) => (i(), r("div", {
843
+ (i(!0), r(Z, null, le(e.tabs, (b, p) => (i(), r("div", {
844
844
  key: b.id,
845
- class: x(["transition-opacity", [
845
+ class: h(["transition-opacity", [
846
846
  u.value === p ? "opacity-40" : "",
847
847
  m.value === p && u.value !== p ? "ring-2 ring-secondary rounded-corner" : ""
848
848
  ]]),
@@ -879,7 +879,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
879
879
  type: "symbol",
880
880
  size: 14
881
881
  })
882
- ], 8, ha)) : h("", !0)
882
+ ], 8, ha)) : x("", !0)
883
883
  ], 10, ya));
884
884
  }
885
885
  }), wa = ["id", "aria-label", "type", "value", "placeholder", "disabled", "readonly", "required", "aria-describedby", "autocomplete", "aria-invalid"], Qe = /* @__PURE__ */ E({
@@ -900,19 +900,19 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
900
900
  lazy: { type: Boolean, default: !1 }
901
901
  },
902
902
  emits: ["update:modelValue", "keyup", "keydown"],
903
- setup(e, { expose: l, emit: t }) {
904
- const a = e, n = t;
903
+ setup(e, { expose: n, emit: t }) {
904
+ const a = e, l = t;
905
905
  function o(d) {
906
- a.lazy || n("update:modelValue", d.target.value);
906
+ a.lazy || l("update:modelValue", d.target.value);
907
907
  }
908
908
  function s(d) {
909
- a.lazy && n("update:modelValue", d.target.value);
909
+ a.lazy && l("update:modelValue", d.target.value);
910
910
  }
911
911
  const u = w(null);
912
912
  function m() {
913
913
  return u.value?.focus(), u.value !== null && document.activeElement === u.value;
914
914
  }
915
- l({ enfocar: m });
915
+ n({ enfocar: m });
916
916
  const f = v(() => [
917
917
  "w-full rounded-corner border bg-ui-surface/70 px-3 py-1.5 text-sm text-tx-main",
918
918
  "placeholder:text-tx-muted focus:outline-none focus:ring-1 focus:ring-primary",
@@ -934,11 +934,11 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
934
934
  "aria-describedby": e.describedBy,
935
935
  autocomplete: e.autocomplete,
936
936
  "aria-invalid": e.invalid || void 0,
937
- class: x(f.value),
937
+ class: h(f.value),
938
938
  onInput: o,
939
939
  onChange: s,
940
- onKeyup: L[0] || (L[0] = (D) => n("keyup", D)),
941
- onKeydown: L[1] || (L[1] = (D) => n("keydown", D))
940
+ onKeyup: L[0] || (L[0] = (D) => l("keyup", D)),
941
+ onKeydown: L[1] || (L[1] = (D) => l("keydown", D))
942
942
  }, null, 42, wa));
943
943
  }
944
944
  }), ka = { class: "pointer-events-none absolute left-2 flex items-center" }, $a = ["aria-label"], Ee = /* @__PURE__ */ E({
@@ -957,8 +957,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
957
957
  expanded: { type: Boolean }
958
958
  },
959
959
  emits: ["update:modelValue", "search", "clear", "keydown"],
960
- setup(e, { expose: l, emit: t }) {
961
- const a = e, n = t, o = w(null);
960
+ setup(e, { expose: n, emit: t }) {
961
+ const a = e, l = t, o = w(null);
962
962
  let s;
963
963
  const u = v(() => a.modelValue.length > 0), m = v(
964
964
  () => a.listboxId ? {
@@ -973,18 +973,18 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
973
973
  clearTimeout(s), s = void 0;
974
974
  }
975
975
  function L($) {
976
- n("update:modelValue", $), !(a.debounce <= 0) && (d(), s = setTimeout(() => n("search", $), a.debounce));
976
+ l("update:modelValue", $), !(a.debounce <= 0) && (d(), s = setTimeout(() => l("search", $), a.debounce));
977
977
  }
978
978
  function D() {
979
- d(), n("search", a.modelValue);
979
+ d(), l("search", a.modelValue);
980
980
  }
981
981
  function A() {
982
- d(), n("update:modelValue", ""), n("clear"), y();
982
+ d(), l("update:modelValue", ""), l("clear"), y();
983
983
  }
984
984
  function y() {
985
985
  return o.value?.enfocar() ?? !1;
986
986
  }
987
- return l({ enfocar: y }), J(async () => {
987
+ return n({ enfocar: y }), J(async () => {
988
988
  a.autofocus && (await Y(), y());
989
989
  }), ve(d), W(
990
990
  () => a.disabled,
@@ -1000,7 +1000,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1000
1000
  name: e.busy ? "content-loading" : "system-search",
1001
1001
  type: "symbol",
1002
1002
  size: 14,
1003
- class: x(e.busy ? "animate-spin opacity-70" : "opacity-60")
1003
+ class: h(e.busy ? "animate-spin opacity-70" : "opacity-60")
1004
1004
  }, null, 8, ["name", "class"])
1005
1005
  ]),
1006
1006
  O(Qe, oe({
@@ -1014,7 +1014,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1014
1014
  disabled: e.disabled,
1015
1015
  class: ["pl-7 [&::-webkit-search-cancel-button]:appearance-none", f.value ? "pr-8" : ""],
1016
1016
  "onUpdate:modelValue": L,
1017
- onKeydown: j[0] || (j[0] = (C) => n("keydown", C))
1017
+ onKeydown: j[0] || (j[0] = (C) => l("keydown", C))
1018
1018
  }), null, 16, ["model-value", "placeholder", "ariaLabel", "disabled", "class"]),
1019
1019
  f.value ? (i(), r("button", {
1020
1020
  key: 0,
@@ -1031,7 +1031,7 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1031
1031
  size: 12,
1032
1032
  alt: ""
1033
1033
  })
1034
- ], 40, $a)) : h("", !0)
1034
+ ], 40, $a)) : x("", !0)
1035
1035
  ], 32));
1036
1036
  }
1037
1037
  }), Ca = ["title", "aria-label", "aria-expanded"], za = /* @__PURE__ */ E({
@@ -1045,8 +1045,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1045
1045
  debounce: { default: 0 }
1046
1046
  },
1047
1047
  emits: ["update:modelValue", "search", "open", "close"],
1048
- setup(e, { emit: l }) {
1049
- const t = e, a = l, { vertical: n, posicion: o } = me(), s = w(!1), u = w(null), m = v(() => n.value || t.collapsed), f = v(() => !m.value || s.value), d = v(() => {
1048
+ setup(e, { emit: n }) {
1049
+ const t = e, a = n, { vertical: l, posicion: o } = me(), s = w(!1), u = w(null), m = v(() => l.value || t.collapsed), f = v(() => !m.value || s.value), d = v(() => {
1050
1050
  if (!m.value) return "";
1051
1051
  const y = "absolute z-40 w-64 rounded-corner border border-ui-border bg-ui-surface/95 p-1 shadow-lg";
1052
1052
  return o.value === "left" ? `${y} left-full top-0 ml-1` : o.value === "right" ? `${y} right-full top-0 mr-1` : o.value === "bottom" ? `${y} bottom-full right-0 mb-1` : `${y} top-full right-0 mt-1`;
@@ -1081,10 +1081,10 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1081
1081
  type: "symbol",
1082
1082
  size: 14
1083
1083
  })
1084
- ], 40, Ca)) : h("", !0),
1084
+ ], 40, Ca)) : x("", !0),
1085
1085
  f.value ? (i(), r("div", {
1086
1086
  key: 1,
1087
- class: x(d.value),
1087
+ class: h(d.value),
1088
1088
  onKeydown: F(D, ["esc"])
1089
1089
  }, [
1090
1090
  O(Ee, {
@@ -1095,11 +1095,11 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1095
1095
  label: e.label,
1096
1096
  disabled: e.disabled,
1097
1097
  debounce: e.debounce,
1098
- class: x(m.value ? "" : "w-48"),
1098
+ class: h(m.value ? "" : "w-48"),
1099
1099
  "onUpdate:modelValue": $[2] || ($[2] = (j) => a("update:modelValue", j)),
1100
1100
  onSearch: $[3] || ($[3] = (j) => a("search", j))
1101
1101
  }, null, 8, ["model-value", "placeholder", "label", "disabled", "debounce", "class"])
1102
- ], 34)) : h("", !0)
1102
+ ], 34)) : x("", !0)
1103
1103
  ], 32));
1104
1104
  }
1105
1105
  }), La = ["type", "disabled"], Da = {
@@ -1123,8 +1123,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1123
1123
  preventDefault: { type: Boolean, default: !1 }
1124
1124
  },
1125
1125
  emits: ["click"],
1126
- setup(e, { emit: l }) {
1127
- const t = e, a = l, n = {
1126
+ setup(e, { emit: n }) {
1127
+ const t = e, a = n, l = {
1128
1128
  primary: "bg-primary dark:bg-primary-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-primary/90 dark:hover:bg-primary-dark/90",
1129
1129
  secondary: "bg-secondary dark:bg-secondary-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-secondary/80 dark:hover:bg-secondary-dark/80",
1130
1130
  danger: "bg-status-error dark:bg-status-error-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-status-error/90 dark:hover:bg-status-error-dark/90"
@@ -1138,8 +1138,8 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1138
1138
  return (u, m) => (i(), r("button", {
1139
1139
  type: t.type,
1140
1140
  onClick: s,
1141
- class: x(["rounded-corner transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2", [
1142
- n[t.variant],
1141
+ class: h(["rounded-corner transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2", [
1142
+ l[t.variant],
1143
1143
  o[t.size],
1144
1144
  t.fullWidth ? "w-full" : "",
1145
1145
  t.iconSrc && !t.label ? "px-2 py-2" : "",
@@ -1147,26 +1147,26 @@ const aa = ["title", "aria-label"], la = ["title", "aria-label"], na = ["title",
1147
1147
  ]]),
1148
1148
  disabled: t.disabled || t.loading
1149
1149
  }, [
1150
- e.loading ? (i(), r("span", Da)) : h("", !0),
1150
+ e.loading ? (i(), r("span", Da)) : x("", !0),
1151
1151
  t.iconSrc && !t.iconRight ? (i(), r("img", {
1152
1152
  key: 1,
1153
1153
  src: t.iconSrc,
1154
1154
  alt: t.iconAlt || t.label,
1155
1155
  class: "w-4 h-4"
1156
- }, null, 8, Ea)) : h("", !0),
1157
- t.label ? (i(), r("span", Ta, V(t.label), 1)) : h("", !0),
1156
+ }, null, 8, Ea)) : x("", !0),
1157
+ t.label ? (i(), r("span", Ta, V(t.label), 1)) : x("", !0),
1158
1158
  t.iconSrc && t.iconRight ? (i(), r("img", {
1159
1159
  key: 3,
1160
1160
  src: t.iconSrc,
1161
1161
  alt: t.iconAlt || t.label,
1162
1162
  class: "w-4 h-4"
1163
- }, null, 8, Ba)) : h("", !0)
1163
+ }, null, 8, Ba)) : x("", !0)
1164
1164
  ], 10, La));
1165
1165
  }
1166
- }), ge = (e, l) => {
1166
+ }), ge = (e, n) => {
1167
1167
  const t = e.__vccOpts || e;
1168
- for (const [a, n] of l)
1169
- t[a] = n;
1168
+ for (const [a, l] of n)
1169
+ t[a] = l;
1170
1170
  return t;
1171
1171
  }, Sa = /* @__PURE__ */ ge(Aa, [["__scopeId", "data-v-2eaf6e27"]]), Ye = {
1172
1172
  info: "border-ui-border bg-ui-surface/70 text-tx-main",
@@ -1192,11 +1192,11 @@ const Va = ["role"], Ma = {
1192
1192
  iconType: { default: "symbol" }
1193
1193
  },
1194
1194
  setup(e) {
1195
- const l = e, t = v(() => Ye[l.tone]), a = v(() => Xe(l.tone));
1196
- return (n, o) => (i(), r("div", {
1195
+ const n = e, t = v(() => Ye[n.tone]), a = v(() => Xe(n.tone));
1196
+ return (l, o) => (i(), r("div", {
1197
1197
  role: a.value,
1198
1198
  "aria-atomic": "true",
1199
- class: x(["flex gap-3 rounded-corner border px-4 py-2 text-sm", t.value])
1199
+ class: h(["flex gap-3 rounded-corner border px-4 py-2 text-sm", t.value])
1200
1200
  }, [
1201
1201
  e.icon ? (i(), r("span", Ma, [
1202
1202
  O(H, {
@@ -1205,13 +1205,13 @@ const Va = ["role"], Ma = {
1205
1205
  size: 18,
1206
1206
  alt: ""
1207
1207
  }, null, 8, ["name", "type"])
1208
- ])) : h("", !0),
1208
+ ])) : x("", !0),
1209
1209
  T("div", Ia, [
1210
- e.title ? (i(), r("p", Oa, V(e.title), 1)) : h("", !0),
1210
+ e.title ? (i(), r("p", Oa, V(e.title), 1)) : x("", !0),
1211
1211
  T("div", {
1212
- class: x(e.title ? "mt-1" : "")
1212
+ class: h(e.title ? "mt-1" : "")
1213
1213
  }, [
1214
- S(n.$slots, "default")
1214
+ S(l.$slots, "default")
1215
1215
  ], 2)
1216
1216
  ])
1217
1217
  ], 10, Va));
@@ -1219,7 +1219,7 @@ const Va = ["role"], Ma = {
1219
1219
  }), Pa = { class: "font-medium text-sm text-tx-main" }, Fa = {
1220
1220
  key: 0,
1221
1221
  class: "text-sm text-tx-muted"
1222
- }, qa = /* @__PURE__ */ E({
1222
+ }, Ra = /* @__PURE__ */ E({
1223
1223
  __name: "EmptyState",
1224
1224
  props: {
1225
1225
  title: {},
@@ -1229,8 +1229,8 @@ const Va = ["role"], Ma = {
1229
1229
  bordered: { type: Boolean, default: !1 }
1230
1230
  },
1231
1231
  setup(e) {
1232
- return (l, t) => (i(), r("div", {
1233
- class: x(["flex flex-col items-center justify-center gap-3 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
1232
+ return (n, t) => (i(), r("div", {
1233
+ class: h(["flex flex-col items-center justify-center gap-3 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
1234
1234
  }, [
1235
1235
  O(H, {
1236
1236
  name: e.icon,
@@ -1239,24 +1239,24 @@ const Va = ["role"], Ma = {
1239
1239
  class: "opacity-60"
1240
1240
  }, null, 8, ["name", "type"]),
1241
1241
  T("p", Pa, V(e.title), 1),
1242
- e.note ? (i(), r("p", Fa, V(e.note), 1)) : h("", !0),
1243
- S(l.$slots, "default")
1242
+ e.note ? (i(), r("p", Fa, V(e.note), 1)) : x("", !0),
1243
+ S(n.$slots, "default")
1244
1244
  ], 2));
1245
1245
  }
1246
- }), Ra = { class: "text-sm text-tx-muted" }, Na = /* @__PURE__ */ E({
1246
+ }), qa = { class: "text-sm text-tx-muted" }, Na = /* @__PURE__ */ E({
1247
1247
  __name: "LoadingState",
1248
1248
  props: {
1249
1249
  label: {},
1250
1250
  bordered: { type: Boolean, default: !1 }
1251
1251
  },
1252
1252
  setup(e) {
1253
- return (l, t) => (i(), r("div", {
1253
+ return (n, t) => (i(), r("div", {
1254
1254
  role: "status",
1255
1255
  "aria-atomic": "true",
1256
- class: x(["flex flex-col items-center justify-center gap-4 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
1256
+ class: h(["flex flex-col items-center justify-center gap-4 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
1257
1257
  }, [
1258
1258
  t[0] || (t[0] = T("span", { class: "h-10 w-10 animate-spin rounded-full border-4 border-ui-border border-t-primary motion-reduce:animate-none" }, null, -1)),
1259
- T("p", Ra, V(e.label), 1)
1259
+ T("p", qa, V(e.label), 1)
1260
1260
  ], 2));
1261
1261
  }
1262
1262
  }), Ha = ["role"], Ua = /* @__PURE__ */ E({
@@ -1266,12 +1266,12 @@ const Va = ["role"], Ma = {
1266
1266
  position: { default: "bottom-right" }
1267
1267
  },
1268
1268
  setup(e) {
1269
- const l = e, t = v(
1270
- () => l.position === "bottom-center" ? "bottom-4 left-1/2 -translate-x-1/2" : "right-4 bottom-4"
1269
+ const n = e, t = v(
1270
+ () => n.position === "bottom-center" ? "bottom-4 left-1/2 -translate-x-1/2" : "right-4 bottom-4"
1271
1271
  );
1272
- return (a, n) => (i(), Q(fe, { to: "body" }, [
1272
+ return (a, l) => (i(), Q(fe, { to: "body" }, [
1273
1273
  T("div", {
1274
- class: x(["pointer-events-none fixed z-60 flex flex-col gap-2", t.value])
1274
+ class: h(["pointer-events-none fixed z-60 flex flex-col gap-2", t.value])
1275
1275
  }, [
1276
1276
  O(ct, {
1277
1277
  "enter-active-class": "transition-all duration-300 ease-out",
@@ -1281,11 +1281,11 @@ const Va = ["role"], Ma = {
1281
1281
  "move-class": "transition-transform duration-300"
1282
1282
  }, {
1283
1283
  default: K(() => [
1284
- (i(!0), r(Z, null, ne(e.toasts, (o) => (i(), r("div", {
1284
+ (i(!0), r(Z, null, le(e.toasts, (o) => (i(), r("div", {
1285
1285
  key: o.id,
1286
- role: q(Xe)(o.tone ?? "info"),
1286
+ role: R(Xe)(o.tone ?? "info"),
1287
1287
  "aria-atomic": "true",
1288
- class: x(["pointer-events-auto rounded-corner border px-4 py-2 text-sm shadow-lg backdrop-blur-sm", q(Ye)[o.tone ?? "info"]])
1288
+ class: h(["pointer-events-auto rounded-corner border px-4 py-2 text-sm shadow-lg backdrop-blur-sm", R(Ye)[o.tone ?? "info"]])
1289
1289
  }, [
1290
1290
  S(a.$slots, "default", { aviso: o }, () => [
1291
1291
  ze(V(o.message), 1)
@@ -1304,42 +1304,47 @@ const Va = ["role"], Ma = {
1304
1304
  __name: "ProgressBar",
1305
1305
  props: {
1306
1306
  value: {},
1307
- label: {}
1307
+ label: {},
1308
+ tone: { default: "normal" }
1308
1309
  },
1309
1310
  setup(e) {
1310
- const l = e, t = v(
1311
- () => l.value === null ? null : Math.max(0, Math.min(100, l.value))
1311
+ const n = e, t = {
1312
+ normal: "bg-primary",
1313
+ warning: "bg-status-warning",
1314
+ critical: "bg-status-error"
1315
+ }, a = v(
1316
+ () => n.value === null ? null : Math.max(0, Math.min(100, n.value))
1312
1317
  );
1313
- return (a, n) => (i(), r("div", {
1318
+ return (l, o) => (i(), r("div", {
1314
1319
  role: "progressbar",
1315
1320
  "aria-label": e.label,
1316
- "aria-valuenow": t.value ?? void 0,
1321
+ "aria-valuenow": a.value ?? void 0,
1317
1322
  "aria-valuemin": "0",
1318
1323
  "aria-valuemax": "100",
1319
1324
  class: "h-2 w-full overflow-hidden rounded-corner bg-ui-surface/70"
1320
1325
  }, [
1321
- t.value !== null ? (i(), r("div", {
1326
+ a.value !== null ? (i(), r("div", {
1322
1327
  key: 0,
1323
- class: "h-full rounded-corner bg-primary transition-[width] duration-300 ease-out",
1324
- style: re({ width: `${t.value}%` })
1325
- }, null, 4)) : (i(), r("div", Wa))
1328
+ class: h(["h-full rounded-corner transition-[width] duration-300 ease-out", t[e.tone]]),
1329
+ style: re({ width: `${a.value}%` })
1330
+ }, null, 6)) : (i(), r("div", Wa))
1326
1331
  ], 8, Ka));
1327
1332
  }
1328
1333
  }), Qa = /[/\-_.]/;
1329
- function we(e, l) {
1330
- if (!l) return 100;
1331
- const t = l.toLowerCase();
1334
+ function we(e, n) {
1335
+ if (!n) return 100;
1336
+ const t = n.toLowerCase();
1332
1337
  return t === e ? 0 : t.startsWith(e) ? 10 : t.split(Qa).some((a) => a.startsWith(e)) ? 30 : t.includes(e) ? 40 : 100;
1333
1338
  }
1334
- function Ya(e, l) {
1335
- const t = l.trim().toLowerCase();
1339
+ function Ya(e, n) {
1340
+ const t = n.trim().toLowerCase();
1336
1341
  if (!t) return e;
1337
1342
  const a = [];
1338
- for (let n = 0; n < e.length; n++) {
1339
- const o = e[n], s = we(t, o.valor), u = we(t, o.etiqueta), m = u === 10 ? 20 : u, d = we(t, o.detalle) === 100 ? 100 : 40, L = Math.min(s, m, d);
1340
- L !== 100 && a.push({ opcion: o, rango: L, orden: n });
1343
+ for (let l = 0; l < e.length; l++) {
1344
+ const o = e[l], s = we(t, o.valor), u = we(t, o.etiqueta), m = u === 10 ? 20 : u, d = we(t, o.detalle) === 100 ? 100 : 40, L = Math.min(s, m, d);
1345
+ L !== 100 && a.push({ opcion: o, rango: L, orden: l });
1341
1346
  }
1342
- return a.sort((n, o) => n.rango - o.rango || n.orden - o.orden), a.map((n) => n.opcion);
1347
+ return a.sort((l, o) => l.rango - o.rango || l.orden - o.orden), a.map((l) => l.opcion);
1343
1348
  }
1344
1349
  let Oe = 0;
1345
1350
  function Xa() {
@@ -1348,16 +1353,16 @@ function Xa() {
1348
1353
  const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 flex-1 truncate" }, _a = {
1349
1354
  key: 0,
1350
1355
  class: "ml-2 text-tx-muted text-xs"
1351
- }, el = { class: "border-ui-border border-b p-2" }, tl = ["id"], al = {
1356
+ }, en = { class: "border-ui-border border-b p-2" }, tn = ["id"], an = {
1352
1357
  key: 0,
1353
1358
  class: "p-3 text-center text-tx-muted text-xs"
1354
- }, ll = ["id", "data-indice", "aria-selected"], nl = { class: "min-w-0 flex-1 truncate" }, ol = {
1359
+ }, nn = ["id", "data-indice", "aria-selected"], ln = { class: "min-w-0 flex-1 truncate" }, on = {
1355
1360
  key: 0,
1356
1361
  class: "shrink-0 text-tx-muted text-xs"
1357
- }, il = {
1362
+ }, rn = {
1358
1363
  key: 1,
1359
1364
  class: "px-2 py-1 text-tx-muted text-xs"
1360
- }, rl = /* @__PURE__ */ E({
1365
+ }, sn = /* @__PURE__ */ E({
1361
1366
  __name: "SearchSelect",
1362
1367
  props: {
1363
1368
  modelValue: {},
@@ -1371,10 +1376,10 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1371
1376
  up: { type: Boolean, default: !1 }
1372
1377
  },
1373
1378
  emits: ["update:modelValue"],
1374
- setup(e, { emit: l }) {
1375
- const t = e, a = l, n = w(""), o = w(!1), s = w(0), u = w(null), m = w(null), f = w(null), d = Xa(), L = v(
1379
+ setup(e, { emit: n }) {
1380
+ const t = e, a = n, l = w(""), o = w(!1), s = w(0), u = w(null), m = w(null), f = w(null), d = Xa(), L = v(
1376
1381
  () => t.options.find((B) => B.valor === t.modelValue) ?? null
1377
- ), D = v(() => Ya(t.options, n.value)), A = v(() => D.value.slice(0, t.limit)), y = v(() => Math.max(0, D.value.length - t.limit)), $ = v(
1382
+ ), D = v(() => Ya(t.options, l.value)), A = v(() => D.value.slice(0, t.limit)), y = v(() => Math.max(0, D.value.length - t.limit)), $ = v(
1378
1383
  () => A.value.length > 0 ? `${d}-${s.value}` : void 0
1379
1384
  );
1380
1385
  function j(B) {
@@ -1386,7 +1391,7 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1386
1391
  s.value = B >= 0 ? B : 0, await Y(), f.value?.enfocar(), U();
1387
1392
  }
1388
1393
  function g(B = !0) {
1389
- o.value && (o.value = !1, n.value = "", B && Y(() => m.value?.focus()));
1394
+ o.value && (o.value = !1, l.value = "", B && Y(() => m.value?.focus()));
1390
1395
  }
1391
1396
  function c(B) {
1392
1397
  const z = A.value.length;
@@ -1423,7 +1428,7 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1423
1428
  (B) => {
1424
1429
  B && g(!1);
1425
1430
  }
1426
- ), W(n, () => {
1431
+ ), W(l, () => {
1427
1432
  s.value = 0, U();
1428
1433
  });
1429
1434
  function G(B) {
@@ -1451,7 +1456,7 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1451
1456
  }, [
1452
1457
  T("span", Za, [
1453
1458
  ze(V(L.value?.etiqueta ?? e.placeholder) + " ", 1),
1454
- L.value?.detalle ? (i(), r("span", _a, V(L.value.detalle), 1)) : h("", !0)
1459
+ L.value?.detalle ? (i(), r("span", _a, V(L.value.detalle), 1)) : x("", !0)
1455
1460
  ]),
1456
1461
  O(H, {
1457
1462
  name: "go-down",
@@ -1462,7 +1467,7 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1462
1467
  ], 40, Ja),
1463
1468
  o.value ? (i(), r("div", {
1464
1469
  key: 0,
1465
- class: x(["absolute z-20 w-full min-w-64 rounded-corner border border-ui-border-strong bg-ui-bg shadow-lg", e.up ? "bottom-full mb-1" : "mt-1"]),
1470
+ class: h(["absolute z-20 w-full min-w-64 rounded-corner border border-ui-border-strong bg-ui-bg shadow-lg", e.up ? "bottom-full mb-1" : "mt-1"]),
1466
1471
  onKeydown: [
1467
1472
  z[4] || (z[4] = F(M((I) => g(), ["prevent"]), ["escape"])),
1468
1473
  z[5] || (z[5] = F(M((I) => c(1), ["prevent"]), ["down"])),
@@ -1475,47 +1480,47 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1475
1480
  onClick: P,
1476
1481
  onMousemove: _
1477
1482
  }, [
1478
- T("div", el, [
1483
+ T("div", en, [
1479
1484
  O(Ee, {
1480
1485
  ref_key: "campo",
1481
1486
  ref: f,
1482
- modelValue: n.value,
1483
- "onUpdate:modelValue": z[3] || (z[3] = (I) => n.value = I),
1487
+ modelValue: l.value,
1488
+ "onUpdate:modelValue": z[3] || (z[3] = (I) => l.value = I),
1484
1489
  label: e.label,
1485
1490
  placeholder: e.searchPlaceholder,
1486
- "listbox-id": q(d),
1491
+ "listbox-id": R(d),
1487
1492
  "active-option-id": $.value,
1488
1493
  expanded: o.value
1489
1494
  }, null, 8, ["modelValue", "label", "placeholder", "listbox-id", "active-option-id", "expanded"])
1490
1495
  ]),
1491
1496
  T("ul", {
1492
- id: q(d),
1497
+ id: R(d),
1493
1498
  ref_key: "lista",
1494
1499
  ref: u,
1495
1500
  role: "listbox",
1496
1501
  class: "max-h-56 overflow-y-auto p-1"
1497
1502
  }, [
1498
- A.value.length === 0 ? (i(), r("li", al, V(e.emptyText), 1)) : h("", !0),
1499
- (i(!0), r(Z, null, ne(A.value, (I, ie) => (i(), r("li", {
1500
- id: `${q(d)}-${ie}`,
1503
+ A.value.length === 0 ? (i(), r("li", an, V(e.emptyText), 1)) : x("", !0),
1504
+ (i(!0), r(Z, null, le(A.value, (I, ie) => (i(), r("li", {
1505
+ id: `${R(d)}-${ie}`,
1501
1506
  key: I.valor,
1502
1507
  "data-indice": ie,
1503
1508
  role: "option",
1504
1509
  "aria-selected": I.valor === e.modelValue,
1505
- class: x(["flex cursor-pointer items-baseline gap-2 rounded-corner px-2 py-1 text-sm", [
1510
+ class: h(["flex cursor-pointer items-baseline gap-2 rounded-corner px-2 py-1 text-sm", [
1506
1511
  ie === s.value ? "bg-ui-surface" : "",
1507
1512
  I.valor === e.modelValue ? "font-medium text-primary" : "text-tx-main"
1508
1513
  ]])
1509
1514
  }, [
1510
- T("span", nl, V(I.etiqueta), 1),
1511
- I.detalle ? (i(), r("span", ol, V(I.detalle), 1)) : h("", !0)
1512
- ], 10, ll))), 128)),
1513
- y.value > 0 ? (i(), r("li", il, "+" + V(y.value), 1)) : h("", !0)
1514
- ], 8, tl)
1515
- ], 34)) : h("", !0)
1515
+ T("span", ln, V(I.etiqueta), 1),
1516
+ I.detalle ? (i(), r("span", on, V(I.detalle), 1)) : x("", !0)
1517
+ ], 10, nn))), 128)),
1518
+ y.value > 0 ? (i(), r("li", rn, "+" + V(y.value), 1)) : x("", !0)
1519
+ ], 8, tn)
1520
+ ], 34)) : x("", !0)
1516
1521
  ], 32));
1517
1522
  }
1518
- }), sl = { class: "text-base font-semibold m-0 text-primary dark:text-primary-dark" }, ul = /* @__PURE__ */ E({
1523
+ }), un = { class: "text-base font-semibold m-0 text-primary dark:text-primary-dark" }, cn = /* @__PURE__ */ E({
1519
1524
  __name: "ConfigSection",
1520
1525
  props: {
1521
1526
  title: {},
@@ -1523,26 +1528,26 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1523
1528
  customClass: { default: () => ({}) }
1524
1529
  },
1525
1530
  setup(e) {
1526
- return (l, t) => (i(), r("div", {
1527
- class: x(["flex flex-col gap-4 p-4 background rounded-corner", e.customClass])
1531
+ return (n, t) => (i(), r("div", {
1532
+ class: h(["flex flex-col gap-4 p-4 background rounded-corner", e.customClass])
1528
1533
  }, [
1529
- T("h3", sl, V(e.icon ? `${e.icon} ${e.title}` : e.title), 1),
1530
- S(l.$slots, "default", {}, void 0, !0)
1534
+ T("h3", un, V(e.icon ? `${e.icon} ${e.title}` : e.title), 1),
1535
+ S(n.$slots, "default", {}, void 0, !0)
1531
1536
  ], 2));
1532
1537
  }
1533
- }), cl = /* @__PURE__ */ ge(ul, [["__scopeId", "data-v-45bd4eab"]]), dl = { class: "flex items-center gap-3 flex-1 min-w-0" }, fl = ["src", "alt"], ml = { class: "min-w-0" }, bl = { class: "font-semibold truncate" }, vl = {
1538
+ }), dn = /* @__PURE__ */ ge(cn, [["__scopeId", "data-v-45bd4eab"]]), fn = { class: "flex items-center gap-3 flex-1 min-w-0" }, mn = ["src", "alt"], bn = { class: "min-w-0" }, vn = { class: "font-semibold truncate" }, pn = {
1534
1539
  key: 0,
1535
1540
  class: "text-xs text-gray-400 truncate"
1536
- }, pl = {
1541
+ }, yn = {
1537
1542
  key: 1,
1538
1543
  class: "text-xs text-gray-400 truncate"
1539
- }, yl = {
1544
+ }, gn = {
1540
1545
  key: 2,
1541
1546
  class: "text-xs text-gray-400 flex gap-2 mt-1"
1542
- }, gl = {
1547
+ }, hn = {
1543
1548
  key: 1,
1544
1549
  class: "w-2 h-2 rounded-full bg-green-500"
1545
- }, hl = /* @__PURE__ */ E({
1550
+ }, xn = /* @__PURE__ */ E({
1546
1551
  __name: "DeviceCard",
1547
1552
  props: {
1548
1553
  icon: {},
@@ -1558,48 +1563,48 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
1558
1563
  clickable: { type: Boolean, default: !1 }
1559
1564
  },
1560
1565
  emits: ["action", "click"],
1561
- setup(e, { emit: l }) {
1562
- const t = l, a = () => {
1566
+ setup(e, { emit: n }) {
1567
+ const t = n, a = () => {
1563
1568
  t("action");
1564
- }, n = () => {
1569
+ }, l = () => {
1565
1570
  t("click");
1566
1571
  };
1567
1572
  return (o, s) => (i(), r("div", {
1568
- class: x(["flex items-center justify-between background rounded-vsk px-6 py-3 mb-4", [{ "border-l-4 border-green-500": e.isConnected }, e.customClass]]),
1569
- onClick: n
1573
+ class: h(["flex items-center justify-between background rounded-vsk px-6 py-3 mb-4", [{ "border-l-4 border-green-500": e.isConnected }, e.customClass]]),
1574
+ onClick: l
1570
1575
  }, [
1571
- T("div", dl, [
1576
+ T("div", fn, [
1572
1577
  T("img", {
1573
1578
  src: e.icon,
1574
1579
  alt: e.title,
1575
1580
  class: "h-7 w-7 shrink-0"
1576
- }, null, 8, fl),
1577
- T("div", ml, [
1578
- T("div", bl, V(e.title), 1),
1579
- e.subtitle ? (i(), r("div", vl, V(e.subtitle), 1)) : h("", !0),
1580
- e.metadata ? (i(), r("div", pl, V(e.metadata), 1)) : h("", !0),
1581
- e.extraInfo && e.extraInfo.length > 0 ? (i(), r("div", yl, [
1582
- (i(!0), r(Z, null, ne(e.extraInfo, (u, m) => (i(), r("span", { key: m }, V(u), 1))), 128))
1583
- ])) : h("", !0)
1581
+ }, null, 8, mn),
1582
+ T("div", bn, [
1583
+ T("div", vn, V(e.title), 1),
1584
+ e.subtitle ? (i(), r("div", pn, V(e.subtitle), 1)) : x("", !0),
1585
+ e.metadata ? (i(), r("div", yn, V(e.metadata), 1)) : x("", !0),
1586
+ e.extraInfo && e.extraInfo.length > 0 ? (i(), r("div", gn, [
1587
+ (i(!0), r(Z, null, le(e.extraInfo, (u, m) => (i(), r("span", { key: m }, V(u), 1))), 128))
1588
+ ])) : x("", !0)
1584
1589
  ])
1585
1590
  ]),
1586
1591
  e.showActionButton ? (i(), r("button", {
1587
1592
  key: 0,
1588
1593
  class: "bg-vsk-primary rounded-vsk px-4 py-2 text-sm font-semibold cursor-pointer hover:opacity-70",
1589
1594
  onClick: M(a, ["stop"])
1590
- }, V(e.actionLabel), 1)) : h("", !0),
1591
- e.showStatusIndicator && e.isConnected ? (i(), r("div", gl)) : h("", !0)
1595
+ }, V(e.actionLabel), 1)) : x("", !0),
1596
+ e.showStatusIndicator && e.isConnected ? (i(), r("div", hn)) : x("", !0)
1592
1597
  ], 2));
1593
1598
  }
1594
1599
  }), Je = /* @__PURE__ */ Symbol("diálogo de vasak");
1595
1600
  function Ze() {
1596
1601
  const e = pe(Je, null);
1597
1602
  if (e) return e;
1598
- const l = w(!1);
1603
+ const n = w(!1);
1599
1604
  return {
1600
- abierto: v(() => l.value),
1605
+ abierto: v(() => n.value),
1601
1606
  cerrar: () => {
1602
- l.value = !1;
1607
+ n.value = !1;
1603
1608
  },
1604
1609
  idDelTitulo: w(null),
1605
1610
  ponerElTitulo: () => {
@@ -1607,30 +1612,30 @@ function Ze() {
1607
1612
  };
1608
1613
  }
1609
1614
  let je = 0;
1610
- function xl() {
1615
+ function wn() {
1611
1616
  return je += 1, `vsk-dialogo-titulo-${je}`;
1612
1617
  }
1613
- const wl = /* @__PURE__ */ E({
1618
+ const kn = /* @__PURE__ */ E({
1614
1619
  __name: "Dialog",
1615
1620
  props: {
1616
1621
  open: { type: Boolean, default: !1 }
1617
1622
  },
1618
1623
  emits: ["update:open"],
1619
- setup(e, { emit: l }) {
1620
- const t = e, a = l, n = w(null);
1624
+ setup(e, { emit: n }) {
1625
+ const t = e, a = n, l = w(null);
1621
1626
  return de(Je, {
1622
1627
  abierto: v(() => t.open),
1623
1628
  cerrar: () => a("update:open", !1),
1624
- idDelTitulo: n,
1629
+ idDelTitulo: l,
1625
1630
  ponerElTitulo: (o) => {
1626
- n.value = o;
1631
+ l.value = o;
1627
1632
  }
1628
1633
  }), (o, s) => S(o.$slots, "default");
1629
1634
  }
1630
- }), kl = {
1635
+ }), $n = {
1631
1636
  key: 0,
1632
1637
  class: "absolute inset-0 rounded-corner-window bg-ui-border-dark/40"
1633
- }, $l = ["aria-labelledby", "aria-label"], Cl = "relative z-10 w-full rounded-corner border border-ui-border bg-ui-bg/80 p-6 text-tx-main shadow-lg", zl = /* @__PURE__ */ E({
1638
+ }, Cn = ["aria-labelledby", "aria-label"], zn = "relative z-10 w-full rounded-corner border border-ui-border bg-ui-bg/80 p-6 text-tx-main shadow-lg", Ln = /* @__PURE__ */ E({
1634
1639
  inheritAttrs: !1,
1635
1640
  __name: "DialogContent",
1636
1641
  props: {
@@ -1638,10 +1643,10 @@ const wl = /* @__PURE__ */ E({
1638
1643
  ariaLabel: {}
1639
1644
  },
1640
1645
  setup(e) {
1641
- const l = e, t = $e(), a = v(() => t.class ?? ""), n = v(() => {
1646
+ const n = e, t = $e(), a = v(() => t.class ?? ""), l = v(() => {
1642
1647
  const { class: C, ...g } = t;
1643
1648
  return g;
1644
- }), o = v(() => l.size === "full" ? "relative z-10 h-full w-full overflow-hidden rounded-corner-window text-tx-main" : `${Cl} ${l.size === "lg" ? "max-w-2xl" : "max-w-lg"}`), s = Ze(), u = v(() => s.abierto.value), m = w(null), f = w(null);
1649
+ }), o = v(() => n.size === "full" ? "relative z-10 h-full w-full overflow-hidden rounded-corner-window text-tx-main" : `${zn} ${n.size === "lg" ? "max-w-2xl" : "max-w-lg"}`), s = Ze(), u = v(() => s.abierto.value), m = w(null), f = w(null);
1645
1650
  let d = null;
1646
1651
  function L() {
1647
1652
  return f.value ? [...f.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')] : [];
@@ -1704,65 +1709,65 @@ const wl = /* @__PURE__ */ E({
1704
1709
  onClick: A,
1705
1710
  onKeydown: D
1706
1711
  }, [
1707
- l.size === "md" ? (i(), r("div", kl)) : h("", !0),
1712
+ n.size === "md" ? (i(), r("div", $n)) : x("", !0),
1708
1713
  T("div", oe({
1709
1714
  ref_key: "panel",
1710
1715
  ref: f,
1711
1716
  tabindex: "-1",
1712
1717
  role: "dialog",
1713
1718
  "aria-modal": "true",
1714
- "aria-labelledby": q(s).idDelTitulo.value ?? void 0,
1715
- "aria-label": q(s).idDelTitulo.value ? void 0 : e.ariaLabel
1716
- }, n.value, {
1719
+ "aria-labelledby": R(s).idDelTitulo.value ?? void 0,
1720
+ "aria-label": R(s).idDelTitulo.value ? void 0 : e.ariaLabel
1721
+ }, l.value, {
1717
1722
  class: [a.value, o.value]
1718
1723
  }), [
1719
1724
  S(C.$slots, "default")
1720
- ], 16, $l)
1721
- ], 544)) : h("", !0)
1725
+ ], 16, Cn)
1726
+ ], 544)) : x("", !0)
1722
1727
  ]),
1723
1728
  _: 3
1724
1729
  })
1725
1730
  ]));
1726
1731
  }
1727
- }), Ll = { class: "text-sm text-tx-muted" }, Dl = /* @__PURE__ */ E({
1732
+ }), Dn = { class: "text-sm text-tx-muted" }, En = /* @__PURE__ */ E({
1728
1733
  __name: "DialogDescription",
1729
1734
  setup(e) {
1730
- return (l, t) => (i(), r("p", Ll, [
1731
- S(l.$slots, "default")
1735
+ return (n, t) => (i(), r("p", Dn, [
1736
+ S(n.$slots, "default")
1732
1737
  ]));
1733
1738
  }
1734
- }), El = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, Tl = /* @__PURE__ */ E({
1739
+ }), Tn = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, Bn = /* @__PURE__ */ E({
1735
1740
  __name: "DialogFooter",
1736
1741
  setup(e) {
1737
- return (l, t) => (i(), r("div", El, [
1738
- S(l.$slots, "default")
1742
+ return (n, t) => (i(), r("div", Tn, [
1743
+ S(n.$slots, "default")
1739
1744
  ]));
1740
1745
  }
1741
- }), Bl = { class: "flex flex-col gap-1.5 text-center sm:text-left" }, Al = /* @__PURE__ */ E({
1746
+ }), An = { class: "flex flex-col gap-1.5 text-center sm:text-left" }, Sn = /* @__PURE__ */ E({
1742
1747
  __name: "DialogHeader",
1743
1748
  setup(e) {
1744
- return (l, t) => (i(), r("div", Bl, [
1745
- S(l.$slots, "default")
1749
+ return (n, t) => (i(), r("div", An, [
1750
+ S(n.$slots, "default")
1746
1751
  ]));
1747
1752
  }
1748
- }), Sl = ["id"], Vl = /* @__PURE__ */ E({
1753
+ }), Vn = ["id"], Mn = /* @__PURE__ */ E({
1749
1754
  __name: "DialogTitle",
1750
1755
  setup(e) {
1751
- const l = Ze(), t = xl();
1752
- return J(() => l.ponerElTitulo(t)), ve(() => l.ponerElTitulo(null)), (a, n) => (i(), r("h2", {
1753
- id: q(t),
1756
+ const n = Ze(), t = wn();
1757
+ return J(() => n.ponerElTitulo(t)), ve(() => n.ponerElTitulo(null)), (a, l) => (i(), r("h2", {
1758
+ id: R(t),
1754
1759
  class: "font-semibold text-lg leading-none tracking-tight"
1755
1760
  }, [
1756
1761
  S(a.$slots, "default")
1757
- ], 8, Sl));
1762
+ ], 8, Vn));
1758
1763
  }
1759
1764
  }), _e = /* @__PURE__ */ Symbol("menú de vasak");
1760
1765
  function he() {
1761
1766
  const e = pe(_e, null);
1762
1767
  if (e) return e;
1763
- const l = w(!1);
1768
+ const n = w(!1);
1764
1769
  return {
1765
- abierto: l,
1770
+ abierto: n,
1766
1771
  idDelMenu: "vsk-menu-suelto",
1767
1772
  idDeLaEtiqueta: w(null),
1768
1773
  ponerLaEtiqueta: () => {
@@ -1772,13 +1777,13 @@ function he() {
1772
1777
  },
1773
1778
  focoAlAbrir: w("ninguno"),
1774
1779
  abrir: () => {
1775
- l.value = !0;
1780
+ n.value = !0;
1776
1781
  },
1777
1782
  cerrar: () => {
1778
- l.value = !1;
1783
+ n.value = !1;
1779
1784
  },
1780
1785
  alternar: () => {
1781
- l.value = !l.value;
1786
+ n.value = !n.value;
1782
1787
  }
1783
1788
  };
1784
1789
  }
@@ -1786,19 +1791,19 @@ let Pe = 0;
1786
1791
  function et() {
1787
1792
  return Pe += 1, `vsk-menu-${Pe}`;
1788
1793
  }
1789
- const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1794
+ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
1790
1795
  __name: "DropdownMenu",
1791
1796
  props: {
1792
1797
  open: { type: Boolean, default: void 0 }
1793
1798
  },
1794
1799
  emits: ["update:open"],
1795
- setup(e, { emit: l }) {
1796
- const t = e, a = l, n = w(!1), o = w(null), s = w(null), u = w("ninguno"), m = et();
1800
+ setup(e, { emit: n }) {
1801
+ const t = e, a = n, l = w(!1), o = w(null), s = w(null), u = w("ninguno"), m = et();
1797
1802
  let f = null;
1798
1803
  const d = v({
1799
- get: () => t.open ?? n.value,
1804
+ get: () => t.open ?? l.value,
1800
1805
  set: (y) => {
1801
- t.open === void 0 && (n.value = y), a("update:open", y);
1806
+ t.open === void 0 && (l.value = y), a("update:open", y);
1802
1807
  }
1803
1808
  });
1804
1809
  W(d, (y) => {
@@ -1838,14 +1843,14 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1838
1843
  abrir: L,
1839
1844
  cerrar: D,
1840
1845
  alternar: A
1841
- }), (y, $) => (i(), r("div", Ml, [
1846
+ }), (y, $) => (i(), r("div", In, [
1842
1847
  S(y.$slots, "default")
1843
1848
  ]));
1844
1849
  }
1845
- }), Ol = ["id", "aria-labelledby", "inert"], jl = {
1850
+ }), jn = ["id", "aria-labelledby", "inert"], Pn = {
1846
1851
  role: "none",
1847
1852
  class: "py-1"
1848
- }, X = 8, Pl = /* @__PURE__ */ E({
1853
+ }, X = 8, Fn = /* @__PURE__ */ E({
1849
1854
  inheritAttrs: !1,
1850
1855
  __name: "DropdownMenuContent",
1851
1856
  props: {
@@ -1854,7 +1859,7 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1854
1859
  sideOffset: { default: 4 }
1855
1860
  },
1856
1861
  setup(e) {
1857
- const l = e, t = he(), { idDelMenu: a, idDeLaEtiqueta: n } = t, o = v(() => t.disparador.value), s = v(() => t.abierto.value), u = w(null), m = w({
1862
+ const n = e, t = he(), { idDelMenu: a, idDeLaEtiqueta: l } = t, o = v(() => t.disparador.value), s = v(() => t.abierto.value), u = w(null), m = w({
1858
1863
  top: 0,
1859
1864
  left: 0,
1860
1865
  techo: null
@@ -1865,7 +1870,7 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1865
1870
  right: "left"
1866
1871
  };
1867
1872
  function d(c, b) {
1868
- const p = l.sideOffset + X;
1873
+ const p = n.sideOffset + X;
1869
1874
  switch (c) {
1870
1875
  case "bottom":
1871
1876
  return window.innerHeight - b.bottom - p;
@@ -1882,30 +1887,30 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1882
1887
  }
1883
1888
  function D() {
1884
1889
  if (!o.value || !u.value) return;
1885
- const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, P = l.side === "top" || l.side === "bottom", _ = P ? b : p;
1886
- let U = l.side;
1890
+ const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, P = n.side === "top" || n.side === "bottom", _ = P ? b : p;
1891
+ let U = n.side;
1887
1892
  const ee = d(U, c);
1888
1893
  ee < _ && d(f[U], c) > ee && (U = f[U]);
1889
1894
  let G = 0, B = 0, z = null;
1890
1895
  switch (U) {
1891
1896
  case "bottom": {
1892
- G = c.bottom + l.sideOffset, z = Math.max(window.innerHeight - G - X, 0);
1897
+ G = c.bottom + n.sideOffset, z = Math.max(window.innerHeight - G - X, 0);
1893
1898
  break;
1894
1899
  }
1895
1900
  case "top": {
1896
- z = Math.max(d("top", c), 0), G = c.top - l.sideOffset - Math.min(b, z);
1901
+ z = Math.max(d("top", c), 0), G = c.top - n.sideOffset - Math.min(b, z);
1897
1902
  break;
1898
1903
  }
1899
1904
  case "left":
1900
1905
  case "right": {
1901
- B = U === "right" ? c.right + l.sideOffset : c.left - p - l.sideOffset;
1906
+ B = U === "right" ? c.right + n.sideOffset : c.left - p - n.sideOffset;
1902
1907
  const I = window.innerHeight - 2 * X;
1903
1908
  G = L(c.top, X, window.innerHeight - Math.min(b, I) - X), z = Math.max(window.innerHeight - G - X, 0);
1904
1909
  break;
1905
1910
  }
1906
1911
  }
1907
1912
  if (P)
1908
- switch (l.align) {
1913
+ switch (n.align) {
1909
1914
  case "start":
1910
1915
  B = c.left;
1911
1916
  break;
@@ -1997,11 +2002,11 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
1997
2002
  ref_key: "contenido",
1998
2003
  ref: u
1999
2004
  }, c.$attrs, {
2000
- id: q(a),
2005
+ id: R(a),
2001
2006
  role: "menu",
2002
2007
  tabindex: "-1",
2003
2008
  "aria-orientation": "vertical",
2004
- "aria-labelledby": q(n) ?? void 0,
2009
+ "aria-labelledby": R(l) ?? void 0,
2005
2010
  inert: !s.value,
2006
2011
  style: {
2007
2012
  position: "fixed",
@@ -2017,33 +2022,33 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
2017
2022
  onClick: b[0] || (b[0] = (p) => p.stopPropagation()),
2018
2023
  onKeydown: j
2019
2024
  }), [
2020
- T("div", jl, [
2025
+ T("div", Pn, [
2021
2026
  S(c.$slots, "default")
2022
2027
  ])
2023
- ], 16, Ol), [
2024
- [Re, s.value]
2028
+ ], 16, jn), [
2029
+ [qe, s.value]
2025
2030
  ])
2026
2031
  ]),
2027
2032
  _: 3
2028
2033
  })
2029
2034
  ]));
2030
2035
  }
2031
- }), Fl = ["aria-disabled", "onKeydown"], ql = /* @__PURE__ */ E({
2036
+ }), Rn = ["aria-disabled", "onKeydown"], qn = /* @__PURE__ */ E({
2032
2037
  __name: "DropdownMenuItem",
2033
2038
  props: {
2034
2039
  disabled: { type: Boolean, default: !1 }
2035
2040
  },
2036
2041
  emits: ["select", "click"],
2037
- setup(e, { emit: l }) {
2038
- const t = e, a = l, n = he();
2042
+ setup(e, { emit: n }) {
2043
+ const t = e, a = n, l = he();
2039
2044
  function o(s) {
2040
- t.disabled || (a("select"), a("click", s), n.cerrar({ devolverElFoco: !0 }));
2045
+ t.disabled || (a("select"), a("click", s), l.cerrar({ devolverElFoco: !0 }));
2041
2046
  }
2042
2047
  return (s, u) => (i(), r("div", {
2043
2048
  role: "menuitem",
2044
2049
  tabindex: "0",
2045
2050
  "aria-disabled": e.disabled || void 0,
2046
- class: x([
2051
+ class: h([
2047
2052
  "px-3 py-2 text-sm transition-colors outline-none",
2048
2053
  {
2049
2054
  "opacity-50 cursor-not-allowed": e.disabled,
@@ -2057,17 +2062,17 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
2057
2062
  ]
2058
2063
  }, [
2059
2064
  S(s.$slots, "default")
2060
- ], 42, Fl));
2065
+ ], 42, Rn));
2061
2066
  }
2062
- }), Rl = /* @__PURE__ */ E({
2067
+ }), Nn = /* @__PURE__ */ E({
2063
2068
  __name: "DropdownMenuLabel",
2064
2069
  setup(e) {
2065
- const l = he(), t = `${et()}-titulo`;
2070
+ const n = he(), t = `${et()}-titulo`;
2066
2071
  return J(() => {
2067
- l.ponerLaEtiqueta(t);
2072
+ n.ponerLaEtiqueta(t);
2068
2073
  }), ce(() => {
2069
- l.ponerLaEtiqueta(null);
2070
- }), (a, n) => (i(), r("div", {
2074
+ n.ponerLaEtiqueta(null);
2075
+ }), (a, l) => (i(), r("div", {
2071
2076
  id: t,
2072
2077
  role: "presentation",
2073
2078
  class: "px-3 py-2 text-sm font-semibold text-tx-main"
@@ -2075,30 +2080,30 @@ const Ml = { class: "relative inline-block" }, Il = /* @__PURE__ */ E({
2075
2080
  S(a.$slots, "default")
2076
2081
  ]));
2077
2082
  }
2078
- }), Nl = {
2083
+ }), Hn = {
2079
2084
  role: "separator",
2080
2085
  "aria-orientation": "horizontal",
2081
2086
  class: "bg-ui-bg/80 my-4 h-0.5"
2082
- }, Hl = /* @__PURE__ */ E({
2087
+ }, Un = /* @__PURE__ */ E({
2083
2088
  __name: "DropdownMenuSeparator",
2084
2089
  setup(e) {
2085
- return (l, t) => (i(), r("div", Nl));
2090
+ return (n, t) => (i(), r("div", Hn));
2086
2091
  }
2087
2092
  });
2088
2093
  function tt(e) {
2089
- const l = e.filter(
2094
+ const n = e.filter(
2090
2095
  (a) => a.type !== mt && !(a.type === bt && typeof a.children == "string" && !a.children.trim())
2091
2096
  );
2092
- if (l.length !== 1) return null;
2093
- const t = l[0];
2097
+ if (n.length !== 1) return null;
2098
+ const t = n[0];
2094
2099
  return t.type === Z && Array.isArray(t.children) ? tt(t.children) : t;
2095
2100
  }
2096
- function Ul(e) {
2101
+ function Kn(e) {
2097
2102
  if (e instanceof HTMLElement) return e;
2098
- const l = e?.$el;
2099
- return l instanceof HTMLElement ? l : null;
2103
+ const n = e?.$el;
2104
+ return n instanceof HTMLElement ? n : null;
2100
2105
  }
2101
- const Kl = E({
2106
+ const Wn = E({
2102
2107
  name: "DropdownMenuTrigger",
2103
2108
  inheritAttrs: !1,
2104
2109
  props: {
@@ -2107,10 +2112,10 @@ const Kl = E({
2107
2112
  /** El disparador no abre nada; lo abre la aplicación por su cuenta. */
2108
2113
  disabled: { type: Boolean, default: !1 }
2109
2114
  },
2110
- setup(e, { slots: l, attrs: t }) {
2111
- const a = he(), n = w(null);
2115
+ setup(e, { slots: n, attrs: t }) {
2116
+ const a = he(), l = w(null);
2112
2117
  function o() {
2113
- a.ponerElDisparador(Ul(n.value));
2118
+ a.ponerElDisparador(Kn(l.value));
2114
2119
  }
2115
2120
  function s() {
2116
2121
  e.disabled || (o(), a.alternar());
@@ -2136,7 +2141,7 @@ const Kl = E({
2136
2141
  return () => {
2137
2142
  const m = {
2138
2143
  ref: (d) => {
2139
- n.value = d, o();
2144
+ l.value = d, o();
2140
2145
  },
2141
2146
  "aria-haspopup": "menu",
2142
2147
  "aria-expanded": a.abierto.value ? "true" : "false",
@@ -2146,7 +2151,7 @@ const Kl = E({
2146
2151
  "aria-controls": a.abierto.value ? a.idDelMenu : void 0,
2147
2152
  onClick: s,
2148
2153
  onKeydown: u
2149
- }, f = l.default?.() ?? [];
2154
+ }, f = n.default?.() ?? [];
2150
2155
  if (e.asChild) {
2151
2156
  const d = tt(f);
2152
2157
  if (d) return dt(d, { ...t, ...m });
@@ -2158,7 +2163,7 @@ const Kl = E({
2158
2163
  );
2159
2164
  };
2160
2165
  }
2161
- }), Wl = ["for"], Gl = /* @__PURE__ */ E({
2166
+ }), Gn = ["for"], Qn = /* @__PURE__ */ E({
2162
2167
  __name: "FormGroup",
2163
2168
  props: {
2164
2169
  label: {},
@@ -2167,45 +2172,45 @@ const Kl = E({
2167
2172
  labelClass: { default: () => ({}) }
2168
2173
  },
2169
2174
  setup(e) {
2170
- return (l, t) => (i(), r("div", {
2171
- class: x(["flex flex-col gap-2", e.customClass])
2175
+ return (n, t) => (i(), r("div", {
2176
+ class: h(["flex flex-col gap-2", e.customClass])
2172
2177
  }, [
2173
2178
  e.label ? (i(), r("label", {
2174
2179
  key: 0,
2175
2180
  for: e.htmlFor,
2176
- class: x(["text-sm font-medium text-primary dark:text-primary-dark", e.labelClass])
2177
- }, V(e.label), 11, Wl)) : h("", !0),
2178
- S(l.$slots, "default", {}, void 0, !0)
2181
+ class: h(["text-sm font-medium text-primary dark:text-primary-dark", e.labelClass])
2182
+ }, V(e.label), 11, Gn)) : x("", !0),
2183
+ S(n.$slots, "default", {}, void 0, !0)
2179
2184
  ], 2));
2180
2185
  }
2181
- }), Ql = /* @__PURE__ */ ge(Gl, [["__scopeId", "data-v-c0d9d9cb"]]), Yl = /* @__PURE__ */ E({
2186
+ }), Yn = /* @__PURE__ */ ge(Qn, [["__scopeId", "data-v-c0d9d9cb"]]), Xn = /* @__PURE__ */ E({
2182
2187
  __name: "ListCard",
2183
2188
  props: {
2184
2189
  clickable: { type: Boolean, default: !1 },
2185
2190
  customClass: { default: () => ({}) }
2186
2191
  },
2187
2192
  emits: ["click"],
2188
- setup(e, { emit: l }) {
2189
- const t = e, a = l, n = () => {
2193
+ setup(e, { emit: n }) {
2194
+ const t = e, a = n, l = () => {
2190
2195
  t.clickable && a("click");
2191
2196
  };
2192
2197
  return (o, s) => (i(), r("div", {
2193
- class: x([
2198
+ class: h([
2194
2199
  "flex items-center justify-between background p-3 rounded-vsk border border-vsk-primary/70 transition-colors duration-200",
2195
2200
  {
2196
2201
  "hover:bg-vsk-primary/5 cursor-pointer": t.clickable
2197
2202
  },
2198
2203
  e.customClass
2199
2204
  ]),
2200
- onClick: n
2205
+ onClick: l
2201
2206
  }, [
2202
2207
  S(o.$slots, "default", {}, void 0, !0)
2203
2208
  ], 2));
2204
2209
  }
2205
- }), Xl = /* @__PURE__ */ ge(Yl, [["__scopeId", "data-v-f86d47da"]]), Jl = { class: "background rounded-corner flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-all duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80" }, Zl = ["title", "aria-label"], _l = ["src"], en = {
2210
+ }), Jn = /* @__PURE__ */ ge(Xn, [["__scopeId", "data-v-f86d47da"]]), Zn = { class: "background rounded-corner flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-all duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80" }, _n = ["title", "aria-label"], el = ["src"], tl = {
2206
2211
  key: 1,
2207
2212
  class: "w-8 h-8 flex items-center justify-center"
2208
- }, tn = ["src"], an = ["min", "max", "value", "aria-label", "aria-valuetext"], ln = /* @__PURE__ */ E({
2213
+ }, al = ["src"], nl = ["min", "max", "value", "aria-label", "aria-valuetext"], ll = /* @__PURE__ */ E({
2209
2214
  __name: "SliderControl",
2210
2215
  props: {
2211
2216
  icon: {},
@@ -2219,18 +2224,18 @@ const Kl = E({
2219
2224
  getPercentageClass: { type: Function, default: () => "" }
2220
2225
  },
2221
2226
  emits: ["update:modelValue", "buttonClick"],
2222
- setup(e, { emit: l }) {
2223
- const t = e, a = l, n = v(() => {
2227
+ setup(e, { emit: n }) {
2228
+ const t = e, a = n, l = v(() => {
2224
2229
  if (t.max <= t.min) return 0;
2225
2230
  const m = t.max - t.min, f = t.modelValue - t.min;
2226
2231
  return Math.round(f / m * 100);
2227
- }), o = v(() => t.getPercentageClass ? t.getPercentageClass(n.value) : ""), s = (m) => {
2232
+ }), o = v(() => t.getPercentageClass ? t.getPercentageClass(l.value) : ""), s = (m) => {
2228
2233
  const f = m.target;
2229
2234
  a("update:modelValue", Number(f.value));
2230
2235
  }, u = () => {
2231
2236
  a("buttonClick");
2232
2237
  };
2233
- return (m, f) => (i(), r("div", Jl, [
2238
+ return (m, f) => (i(), r("div", Zn, [
2234
2239
  e.showButton ? (i(), r("button", {
2235
2240
  key: 0,
2236
2241
  onClick: u,
@@ -2242,14 +2247,14 @@ const Kl = E({
2242
2247
  T("img", {
2243
2248
  src: e.icon,
2244
2249
  alt: "",
2245
- class: x(["w-6 h-6 transition-all duration-200", e.iconClass])
2246
- }, null, 10, _l)
2247
- ], 8, Zl)) : (i(), r("div", en, [
2250
+ class: h(["w-6 h-6 transition-all duration-200", e.iconClass])
2251
+ }, null, 10, el)
2252
+ ], 8, _n)) : (i(), r("div", tl, [
2248
2253
  T("img", {
2249
2254
  src: e.icon,
2250
2255
  alt: "",
2251
2256
  class: "w-6 h-6 transition-all duration-200"
2252
- }, null, 8, tn)
2257
+ }, null, 8, al)
2253
2258
  ])),
2254
2259
  T("input", {
2255
2260
  type: "range",
@@ -2258,12 +2263,12 @@ const Kl = E({
2258
2263
  value: e.modelValue,
2259
2264
  onInput: s,
2260
2265
  "aria-label": e.label,
2261
- "aria-valuetext": `${n.value}%`,
2266
+ "aria-valuetext": `${l.value}%`,
2262
2267
  class: "flex-1 transition-all duration-200 hover:scale-105"
2263
- }, null, 40, an),
2268
+ }, null, 40, nl),
2264
2269
  T("span", {
2265
- class: x(["w-12 text-right transition-all duration-200 font-medium", o.value])
2266
- }, V(n.value) + "% ", 3)
2270
+ class: h(["w-12 text-right transition-all duration-200 font-medium", o.value])
2271
+ }, V(l.value) + "% ", 3)
2267
2272
  ]));
2268
2273
  }
2269
2274
  }), Te = /* @__PURE__ */ E({
@@ -2273,16 +2278,16 @@ const Kl = E({
2273
2278
  size: { default: "small" }
2274
2279
  },
2275
2280
  setup(e) {
2276
- const l = e, t = v(() => l.size === "small");
2277
- return (a, n) => (i(), r("span", {
2281
+ const n = e, t = v(() => n.size === "small");
2282
+ return (a, l) => (i(), r("span", {
2278
2283
  "aria-hidden": "true",
2279
- class: x(["inline-flex shrink-0 items-center rounded-full border transition-colors", [
2284
+ class: h(["inline-flex shrink-0 items-center rounded-full border transition-colors", [
2280
2285
  t.value ? "h-6 w-11" : "h-7 w-12",
2281
2286
  e.on ? "border-transparent bg-primary" : "border-ui-border-strong bg-ui-surface"
2282
2287
  ]])
2283
2288
  }, [
2284
2289
  T("span", {
2285
- class: x(["inline-block transform rounded-full shadow transition-transform", [
2290
+ class: h(["inline-block transform rounded-full shadow transition-transform", [
2286
2291
  t.value ? "h-4 w-4" : "h-5 w-5",
2287
2292
  e.on ? "bg-tx-on-primary" : "bg-tx-main",
2288
2293
  e.on ? "translate-x-6" : "translate-x-1"
@@ -2290,10 +2295,10 @@ const Kl = E({
2290
2295
  }, null, 2)
2291
2296
  ], 2));
2292
2297
  }
2293
- }), nn = ["aria-checked", "disabled"], on = { class: "min-w-0 flex-1" }, rn = { class: "block font-medium text-sm text-tx-main" }, sn = {
2298
+ }), ol = ["aria-checked", "disabled"], il = { class: "min-w-0 flex-1" }, rl = { class: "block font-medium text-sm text-tx-main" }, sl = {
2294
2299
  key: 0,
2295
2300
  class: "mt-0.5 block text-tx-muted text-xs"
2296
- }, un = /* @__PURE__ */ E({
2301
+ }, ul = /* @__PURE__ */ E({
2297
2302
  __name: "SwitchRow",
2298
2303
  props: {
2299
2304
  modelValue: { type: Boolean },
@@ -2304,9 +2309,9 @@ const Kl = E({
2304
2309
  disabled: { type: Boolean, default: !1 }
2305
2310
  },
2306
2311
  emits: ["update:modelValue"],
2307
- setup(e, { emit: l }) {
2308
- const t = e, a = l;
2309
- return (n, o) => (i(), r("button", {
2312
+ setup(e, { emit: n }) {
2313
+ const t = e, a = n;
2314
+ return (l, o) => (i(), r("button", {
2310
2315
  type: "button",
2311
2316
  role: "switch",
2312
2317
  "aria-checked": e.modelValue,
@@ -2320,7 +2325,7 @@ const Kl = E({
2320
2325
  }, null, 8, ["on"]),
2321
2326
  e.icon ? (i(), r("span", {
2322
2327
  key: 0,
2323
- class: x(["flex size-10 shrink-0 items-center justify-center rounded-corner border", e.modelValue ? "border-secondary bg-primary/20" : "border-ui-border bg-ui-surface/40"]),
2328
+ class: h(["flex size-10 shrink-0 items-center justify-center rounded-corner border", e.modelValue ? "border-secondary bg-primary/20" : "border-ui-border bg-ui-surface/40"]),
2324
2329
  "aria-hidden": "true"
2325
2330
  }, [
2326
2331
  O(H, {
@@ -2329,15 +2334,15 @@ const Kl = E({
2329
2334
  size: 24,
2330
2335
  alt: ""
2331
2336
  }, null, 8, ["name", "type"])
2332
- ], 2)) : h("", !0),
2333
- T("span", on, [
2334
- T("span", rn, V(e.label), 1),
2335
- e.description ? (i(), r("span", sn, V(e.description), 1)) : h("", !0),
2336
- S(n.$slots, "pie")
2337
+ ], 2)) : x("", !0),
2338
+ T("span", il, [
2339
+ T("span", rl, V(e.label), 1),
2340
+ e.description ? (i(), r("span", sl, V(e.description), 1)) : x("", !0),
2341
+ S(l.$slots, "pie")
2337
2342
  ])
2338
- ], 8, nn));
2343
+ ], 8, ol));
2339
2344
  }
2340
- }), cn = ["aria-checked", "aria-label", "disabled"], dn = /* @__PURE__ */ E({
2345
+ }), cl = ["aria-checked", "aria-label", "disabled"], dl = /* @__PURE__ */ E({
2341
2346
  __name: "SwitchToggle",
2342
2347
  props: {
2343
2348
  modelValue: { type: Boolean },
@@ -2346,9 +2351,9 @@ const Kl = E({
2346
2351
  size: { default: "small" }
2347
2352
  },
2348
2353
  emits: ["update:modelValue"],
2349
- setup(e, { emit: l }) {
2350
- const t = e, a = l;
2351
- function n() {
2354
+ setup(e, { emit: n }) {
2355
+ const t = e, a = n;
2356
+ function l() {
2352
2357
  a("update:modelValue", !t.modelValue);
2353
2358
  }
2354
2359
  return (o, s) => (i(), r("button", {
@@ -2358,15 +2363,15 @@ const Kl = E({
2358
2363
  "aria-label": e.label,
2359
2364
  disabled: e.disabled,
2360
2365
  class: "rounded-full transition-opacity disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
2361
- onClick: n
2366
+ onClick: l
2362
2367
  }, [
2363
2368
  O(Te, {
2364
2369
  on: e.modelValue,
2365
2370
  size: e.size
2366
2371
  }, null, 8, ["on", "size"])
2367
- ], 8, cn));
2372
+ ], 8, cl));
2368
2373
  }
2369
- }), fn = ["disabled", "title", "aria-label", "aria-pressed", "aria-busy"], mn = ["src"], bn = /* @__PURE__ */ E({
2374
+ }), fl = ["disabled", "title", "aria-label", "aria-pressed", "aria-busy"], ml = ["src"], bl = /* @__PURE__ */ E({
2370
2375
  __name: "ToggleControl",
2371
2376
  props: {
2372
2377
  icon: {},
@@ -2378,14 +2383,14 @@ const Kl = E({
2378
2383
  customClass: { default: () => ({}) }
2379
2384
  },
2380
2385
  emits: ["click"],
2381
- setup(e, { emit: l }) {
2382
- const t = l;
2386
+ setup(e, { emit: n }) {
2387
+ const t = n;
2383
2388
  function a() {
2384
2389
  t("click");
2385
2390
  }
2386
- return (n, o) => (i(), r("button", {
2391
+ return (l, o) => (i(), r("button", {
2387
2392
  type: "button",
2388
- class: x(["p-2 rounded-corner bg-ui-bg/80 hover:opacity-50 transition-all duration-300 h-17.5 w-17.5 group relative overflow-hidden hover:scale-105 hover:shadow-lg active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2", {
2393
+ class: h(["p-2 rounded-corner bg-ui-bg/80 hover:opacity-50 transition-all duration-300 h-17.5 w-17.5 group relative overflow-hidden hover:scale-105 hover:shadow-lg active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2", {
2389
2394
  "animate-pulse": e.isLoading,
2390
2395
  "ring-2 ring-primary": e.isActive,
2391
2396
  "opacity-60": !e.isActive,
@@ -2401,63 +2406,63 @@ const Kl = E({
2401
2406
  T("img", {
2402
2407
  src: e.icon,
2403
2408
  alt: "",
2404
- class: x(["m-auto w-12.5 h-12.5 transition-all duration-300 group-hover:scale-110 relative z-10", {
2409
+ class: h(["m-auto w-12.5 h-12.5 transition-all duration-300 group-hover:scale-110 relative z-10", {
2405
2410
  "animate-spin": e.isLoading,
2406
2411
  "filter brightness-75": !e.isActive,
2407
2412
  "drop-shadow-lg": e.isActive,
2408
2413
  ...e.iconClass
2409
2414
  }])
2410
- }, null, 10, mn)
2411
- ], 10, fn));
2415
+ }, null, 10, ml)
2416
+ ], 10, fl));
2412
2417
  }
2413
2418
  }), at = /* @__PURE__ */ Symbol("tooltip de vasak");
2414
- function lt() {
2419
+ function nt() {
2415
2420
  const e = pe(at, null);
2416
2421
  if (e) return e;
2417
- const l = w(!1);
2422
+ const n = w(!1);
2418
2423
  return {
2419
- abierto: v(() => l.value),
2424
+ abierto: v(() => n.value),
2420
2425
  disparador: w(null),
2421
2426
  ponerElDisparador: () => {
2422
2427
  },
2423
2428
  abrir: () => {
2424
- l.value = !0;
2429
+ n.value = !0;
2425
2430
  },
2426
2431
  cerrar: () => {
2427
- l.value = !1;
2432
+ n.value = !1;
2428
2433
  }
2429
2434
  };
2430
2435
  }
2431
- const vn = { class: "inline-block" }, pn = /* @__PURE__ */ E({
2436
+ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
2432
2437
  __name: "Tooltip",
2433
2438
  props: {
2434
2439
  disabled: { type: Boolean, default: !1 },
2435
2440
  delayDuration: { default: 200 }
2436
2441
  },
2437
2442
  setup(e) {
2438
- const l = e, t = w(!1), a = w(null);
2439
- let n = null;
2443
+ const n = e, t = w(!1), a = w(null);
2444
+ let l = null;
2440
2445
  function o() {
2441
- l.disabled || (n = setTimeout(() => {
2446
+ n.disabled || (l = setTimeout(() => {
2442
2447
  t.value = !0;
2443
- }, l.delayDuration));
2448
+ }, n.delayDuration));
2444
2449
  }
2445
2450
  function s() {
2446
- n && clearTimeout(n), t.value = !1;
2451
+ l && clearTimeout(l), t.value = !1;
2447
2452
  }
2448
2453
  return de(at, {
2449
- abierto: v(() => t.value && !l.disabled),
2454
+ abierto: v(() => t.value && !n.disabled),
2450
2455
  disparador: a,
2451
2456
  ponerElDisparador: (u) => {
2452
2457
  a.value = u;
2453
2458
  },
2454
2459
  abrir: o,
2455
2460
  cerrar: s
2456
- }), (u, m) => (i(), r("div", vn, [
2461
+ }), (u, m) => (i(), r("div", vl, [
2457
2462
  S(u.$slots, "default")
2458
2463
  ]));
2459
2464
  }
2460
- }), yn = /* @__PURE__ */ E({
2465
+ }), yl = /* @__PURE__ */ E({
2461
2466
  inheritAttrs: !1,
2462
2467
  __name: "TooltipContent",
2463
2468
  props: {
@@ -2466,9 +2471,9 @@ const vn = { class: "inline-block" }, pn = /* @__PURE__ */ E({
2466
2471
  sideOffset: { default: 4 }
2467
2472
  },
2468
2473
  setup(e) {
2469
- const l = $e(), t = v(() => l.class ?? ""), a = e, n = lt(), o = v(() => n.abierto.value), s = w(null), u = w({ top: 0, left: 0 });
2474
+ const n = $e(), t = v(() => n.class ?? ""), a = e, l = nt(), o = v(() => l.abierto.value), s = w(null), u = w({ top: 0, left: 0 });
2470
2475
  function m() {
2471
- const f = n.disparador.value;
2476
+ const f = l.disparador.value;
2472
2477
  if (!f || !s.value) return;
2473
2478
  const d = f.getBoundingClientRect(), L = s.value.getBoundingClientRect();
2474
2479
  let D = 0, A = 0;
@@ -2502,48 +2507,48 @@ const vn = { class: "inline-block" }, pn = /* @__PURE__ */ E({
2502
2507
  ref_key: "globo",
2503
2508
  ref: s,
2504
2509
  style: re({ position: "fixed", top: `${u.value.top}px`, left: `${u.value.left}px`, zIndex: 50 }),
2505
- class: x([
2510
+ class: h([
2506
2511
  t.value,
2507
2512
  "pointer-events-none rounded-corner border border-secondary bg-ui-bg/80 px-2 py-1 text-sm shadow-md"
2508
2513
  ])
2509
2514
  }, [
2510
2515
  S(f.$slots, "default")
2511
2516
  ], 6), [
2512
- [Re, o.value]
2517
+ [qe, o.value]
2513
2518
  ])
2514
2519
  ]),
2515
2520
  _: 3
2516
2521
  })
2517
2522
  ]));
2518
2523
  }
2519
- }), gn = /* @__PURE__ */ E({
2524
+ }), gl = /* @__PURE__ */ E({
2520
2525
  __name: "TooltipTrigger",
2521
2526
  setup(e) {
2522
- const l = lt(), t = w(null);
2527
+ const n = nt(), t = w(null);
2523
2528
  function a() {
2524
2529
  return t.value ? t.value.firstElementChild ?? t.value : null;
2525
2530
  }
2526
- function n() {
2527
- l.ponerElDisparador(a()), l.abrir();
2531
+ function l() {
2532
+ n.ponerElDisparador(a()), n.abrir();
2528
2533
  }
2529
2534
  return J(() => {
2530
- l.ponerElDisparador(a());
2535
+ n.ponerElDisparador(a());
2531
2536
  }), (o, s) => (i(), r("div", {
2532
2537
  ref_key: "envoltorio",
2533
2538
  ref: t,
2534
2539
  class: "inline-block",
2535
- onMouseenter: n,
2536
- onMouseleave: s[0] || (s[0] = (u) => q(l).cerrar()),
2537
- onFocus: n,
2538
- onBlur: s[1] || (s[1] = (u) => q(l).cerrar())
2540
+ onMouseenter: l,
2541
+ onMouseleave: s[0] || (s[0] = (u) => R(n).cerrar()),
2542
+ onFocus: l,
2543
+ onBlur: s[1] || (s[1] = (u) => R(n).cerrar())
2539
2544
  }, [
2540
2545
  S(o.$slots, "default")
2541
2546
  ], 544));
2542
2547
  }
2543
- }), hn = ["title"], xn = ["src", "alt"], wn = {
2548
+ }), hl = ["title"], xl = ["src", "alt"], wl = {
2544
2549
  key: 0,
2545
2550
  class: "absolute bottom-1 right-1 bg-primary dark:bg-primary-dark text-white text-xs rounded-full w-4 h-4 flex items-center justify-center font-bold animate-bounce"
2546
- }, kn = /* @__PURE__ */ E({
2551
+ }, kl = /* @__PURE__ */ E({
2547
2552
  __name: "TrayIconButton",
2548
2553
  props: {
2549
2554
  icon: {},
@@ -2557,37 +2562,37 @@ const vn = { class: "inline-block" }, pn = /* @__PURE__ */ E({
2557
2562
  customTooltipText: { default: "" }
2558
2563
  },
2559
2564
  emits: ["click"],
2560
- setup(e, { emit: l }) {
2561
- const t = l, a = w(!1), n = () => {
2565
+ setup(e, { emit: n }) {
2566
+ const t = n, a = w(!1), l = () => {
2562
2567
  t("click");
2563
2568
  };
2564
2569
  return (o, s) => (i(), r("div", {
2565
- class: x(["p-1 rounded-corner relative hover:bg-primary dark:hover:bg-primary-dark group transition-all duration-300", e.customClass]),
2570
+ class: h(["p-1 rounded-corner relative hover:bg-primary dark:hover:bg-primary-dark group transition-all duration-300", e.customClass]),
2566
2571
  title: e.tooltip,
2567
- onClick: n,
2572
+ onClick: l,
2568
2573
  onMouseenter: s[0] || (s[0] = (u) => a.value = !0),
2569
2574
  onMouseleave: s[1] || (s[1] = (u) => a.value = !1)
2570
2575
  }, [
2571
2576
  T("img", {
2572
2577
  src: e.icon,
2573
2578
  alt: e.alt,
2574
- class: x(["m-auto h-5.5 w-auto transition-all duration-300", e.iconClass])
2575
- }, null, 10, xn),
2576
- e.badge !== null && e.badge > 0 ? (i(), r("div", wn, V(e.badge), 1)) : h("", !0),
2579
+ class: h(["m-auto h-5.5 w-auto transition-all duration-300", e.iconClass])
2580
+ }, null, 10, xl),
2581
+ e.badge !== null && e.badge > 0 ? (i(), r("div", wl, V(e.badge), 1)) : x("", !0),
2577
2582
  e.showCustomTooltip && e.customTooltipText ? (i(), r("div", {
2578
2583
  key: 1,
2579
- class: x(["absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-corner transition-all duration-300 pointer-events-none background", [
2584
+ class: h(["absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-corner transition-all duration-300 pointer-events-none background", [
2580
2585
  e.tooltipClass,
2581
2586
  {
2582
2587
  "opacity-0 -translate-y-2": !a.value,
2583
2588
  "opacity-100 translate-y-0": a.value
2584
2589
  }
2585
2590
  ]])
2586
- }, V(e.customTooltipText), 3)) : h("", !0),
2591
+ }, V(e.customTooltipText), 3)) : x("", !0),
2587
2592
  S(o.$slots, "default")
2588
- ], 42, hn));
2593
+ ], 42, hl));
2589
2594
  }
2590
- }), $n = [
2595
+ }), $l = [
2591
2596
  Ut,
2592
2597
  He,
2593
2598
  Ne,
@@ -2601,42 +2606,42 @@ const vn = { class: "inline-block" }, pn = /* @__PURE__ */ E({
2601
2606
  za,
2602
2607
  Sa,
2603
2608
  ja,
2604
- qa,
2609
+ Ra,
2605
2610
  Na,
2606
2611
  Ga,
2607
2612
  Ee,
2608
- rl,
2613
+ sn,
2609
2614
  Qe,
2610
2615
  Ua,
2611
- cl,
2612
- hl,
2613
- wl,
2614
- zl,
2615
- Dl,
2616
- Tl,
2617
- Al,
2618
- Vl,
2619
- Il,
2620
- Pl,
2621
- ql,
2622
- Rl,
2623
- Hl,
2624
- Kl,
2625
- Ql,
2626
- Xl,
2627
- ln,
2628
- un,
2629
2616
  dn,
2617
+ xn,
2618
+ kn,
2619
+ Ln,
2620
+ En,
2621
+ Bn,
2622
+ Sn,
2623
+ Mn,
2624
+ On,
2625
+ Fn,
2626
+ qn,
2627
+ Nn,
2628
+ Un,
2629
+ Wn,
2630
+ Yn,
2631
+ Jn,
2632
+ ll,
2633
+ ul,
2634
+ dl,
2630
2635
  Te,
2631
- bn,
2632
- pn,
2633
- yn,
2634
- gn,
2635
- kn
2636
- ], Bn = {
2636
+ bl,
2637
+ pl,
2638
+ yl,
2639
+ gl,
2640
+ kl
2641
+ ], Bl = {
2637
2642
  install(e) {
2638
- $n.forEach((l) => {
2639
- e.component(l.name, l);
2643
+ $l.forEach((n) => {
2644
+ e.component(n.name, n);
2640
2645
  });
2641
2646
  }
2642
2647
  };
@@ -2650,59 +2655,59 @@ export {
2650
2655
  _e as CLAVE_DEL_MENU,
2651
2656
  at as CLAVE_DEL_TOOLTIP,
2652
2657
  Le as CLAVE_DE_LA_BARRA,
2653
- cl as ConfigSection,
2654
- hl as DeviceCard,
2655
- wl as Dialog,
2656
- zl as DialogContent,
2657
- Dl as DialogDescription,
2658
- Tl as DialogFooter,
2659
- Al as DialogHeader,
2660
- Vl as DialogTitle,
2661
- Il as DropdownMenu,
2662
- Pl as DropdownMenuContent,
2663
- ql as DropdownMenuItem,
2664
- Rl as DropdownMenuLabel,
2665
- Hl as DropdownMenuSeparator,
2666
- Kl as DropdownMenuTrigger,
2667
- qa as EmptyState,
2668
- Ql as FormGroup,
2658
+ dn as ConfigSection,
2659
+ xn as DeviceCard,
2660
+ kn as Dialog,
2661
+ Ln as DialogContent,
2662
+ En as DialogDescription,
2663
+ Bn as DialogFooter,
2664
+ Sn as DialogHeader,
2665
+ Mn as DialogTitle,
2666
+ On as DropdownMenu,
2667
+ Fn as DropdownMenuContent,
2668
+ qn as DropdownMenuItem,
2669
+ Nn as DropdownMenuLabel,
2670
+ Un as DropdownMenuSeparator,
2671
+ Wn as DropdownMenuTrigger,
2672
+ Ra as EmptyState,
2673
+ Yn as FormGroup,
2669
2674
  De as LOS_TRES_CONTROLES,
2670
- Xl as ListCard,
2675
+ Jn as ListCard,
2671
2676
  Na as LoadingState,
2672
2677
  Xt as POSICIONES,
2673
2678
  Ga as ProgressBar,
2674
2679
  Ee as SearchField,
2675
- rl as SearchSelect,
2680
+ sn as SearchSelect,
2676
2681
  Yt as SelectField,
2677
2682
  Ut as SideBar,
2678
2683
  He as SideButton,
2679
2684
  Ne as SideGroup,
2680
- ln as SliderControl,
2681
- un as SwitchRow,
2682
- dn as SwitchToggle,
2685
+ ll as SliderControl,
2686
+ ul as SwitchRow,
2687
+ dl as SwitchToggle,
2683
2688
  Te as SwitchTrack,
2684
2689
  xa as TabBar,
2685
2690
  Ge as TabItem,
2686
2691
  Qe as TextInput,
2687
2692
  H as ThemeIcon,
2688
2693
  Ua as ToastArea,
2689
- bn as ToggleControl,
2690
- pn as Tooltip,
2691
- yn as TooltipContent,
2692
- gn as TooltipTrigger,
2693
- kn as TrayIconButton,
2694
+ bl as ToggleControl,
2695
+ pl as Tooltip,
2696
+ yl as TooltipContent,
2697
+ gl as TooltipTrigger,
2698
+ kl as TrayIconButton,
2694
2699
  Ke as WindowControls,
2695
2700
  sa as WindowFrame,
2696
2701
  Ya as buscarOpciones,
2697
- Bn as default,
2702
+ Bl as default,
2698
2703
  Jt as esPosicion,
2699
- Tn as olvidarLosIconosDelTema,
2704
+ Tl as olvidarLosIconosDelTema,
2700
2705
  ke as orientacionDe,
2701
2706
  ea as posicionDe,
2702
2707
  Xe as rolDelTono,
2703
2708
  Ze as usarElDialogo,
2704
2709
  he as usarElMenu,
2705
- lt as usarElTooltip,
2710
+ nt as usarElTooltip,
2706
2711
  me as usarLaBarra,
2707
2712
  ta as usarLaPosicionDeLaBarra
2708
2713
  };